diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17012 |
1 files changed, 17012 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..096c51af7 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,17012 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by Autoconf 2.52. | ||
4 | # | ||
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
6 | # Free Software Foundation, Inc. | ||
7 | # This configure script is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy, distribute and modify it. | ||
9 | |||
10 | # Avoid depending upon Character Ranges. | ||
11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
14 | as_cr_digits='0123456789' | ||
15 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
16 | |||
17 | # Sed expression to map a string onto a valid variable name. | ||
18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
19 | |||
20 | # Sed expression to map a string onto a valid CPP name. | ||
21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
22 | |||
23 | # Be Bourne compatible | ||
24 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
25 | emulate sh | ||
26 | NULLCMD=: | ||
27 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
28 | set -o posix | ||
29 | fi | ||
30 | |||
31 | # Name of the executable. | ||
32 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
33 | |||
34 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
35 | as_expr=expr | ||
36 | else | ||
37 | as_expr=false | ||
38 | fi | ||
39 | |||
40 | rm -f conf$$ conf$$.exe conf$$.file | ||
41 | echo >conf$$.file | ||
42 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
43 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
44 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
45 | if test -f conf$$.exe; then | ||
46 | # Don't use ln at all; we don't have any links | ||
47 | as_ln_s='cp -p' | ||
48 | else | ||
49 | as_ln_s='ln -s' | ||
50 | fi | ||
51 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
52 | as_ln_s=ln | ||
53 | else | ||
54 | as_ln_s='cp -p' | ||
55 | fi | ||
56 | rm -f conf$$ conf$$.exe conf$$.file | ||
57 | |||
58 | as_executable_p="test -f" | ||
59 | |||
60 | # Support unset when possible. | ||
61 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
62 | as_unset=unset | ||
63 | else | ||
64 | as_unset=false | ||
65 | fi | ||
66 | |||
67 | # NLS nuisances. | ||
68 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
69 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
70 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
71 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
72 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
73 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
74 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
75 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
76 | |||
77 | # IFS | ||
78 | # We need space, tab and new line, in precisely that order. | ||
79 | as_nl=' | ||
80 | ' | ||
81 | IFS=" $as_nl" | ||
82 | |||
83 | # CDPATH. | ||
84 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
85 | |||
86 | # Name of the host. | ||
87 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
88 | # so uname gets run too. | ||
89 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
90 | |||
91 | exec 6>&1 | ||
92 | |||
93 | # | ||
94 | # Initializations. | ||
95 | # | ||
96 | ac_default_prefix=/usr/local | ||
97 | cross_compiling=no | ||
98 | subdirs= | ||
99 | MFLAGS= MAKEFLAGS= | ||
100 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
101 | |||
102 | # Maximum number of lines to put in a shell here document. | ||
103 | # This variable seems obsolete. It should probably be removed, and | ||
104 | # only ac_max_sed_lines should be used. | ||
105 | : ${ac_max_here_lines=38} | ||
106 | |||
107 | ac_unique_file="ssh.c" | ||
108 | # Factoring default headers for most tests. | ||
109 | ac_includes_default="\ | ||
110 | #include <stdio.h> | ||
111 | #if HAVE_SYS_TYPES_H | ||
112 | # include <sys/types.h> | ||
113 | #endif | ||
114 | #if HAVE_SYS_STAT_H | ||
115 | # include <sys/stat.h> | ||
116 | #endif | ||
117 | #if STDC_HEADERS | ||
118 | # include <stdlib.h> | ||
119 | # include <stddef.h> | ||
120 | #else | ||
121 | # if HAVE_STDLIB_H | ||
122 | # include <stdlib.h> | ||
123 | # endif | ||
124 | #endif | ||
125 | #if HAVE_STRING_H | ||
126 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
127 | # include <memory.h> | ||
128 | # endif | ||
129 | # include <string.h> | ||
130 | #endif | ||
131 | #if HAVE_STRINGS_H | ||
132 | # include <strings.h> | ||
133 | #endif | ||
134 | #if HAVE_INTTYPES_H | ||
135 | # include <inttypes.h> | ||
136 | #else | ||
137 | # if HAVE_STDINT_H | ||
138 | # include <stdint.h> | ||
139 | # endif | ||
140 | #endif | ||
141 | #if HAVE_UNISTD_H | ||
142 | # include <unistd.h> | ||
143 | #endif" | ||
144 | |||
145 | # Initialize some variables set by options. | ||
146 | ac_init_help= | ||
147 | ac_init_version=false | ||
148 | # The variables have the same names as the options, with | ||
149 | # dashes changed to underlines. | ||
150 | cache_file=/dev/null | ||
151 | exec_prefix=NONE | ||
152 | no_create= | ||
153 | no_recursion= | ||
154 | prefix=NONE | ||
155 | program_prefix=NONE | ||
156 | program_suffix=NONE | ||
157 | program_transform_name=s,x,x, | ||
158 | silent= | ||
159 | site= | ||
160 | srcdir= | ||
161 | verbose= | ||
162 | x_includes=NONE | ||
163 | x_libraries=NONE | ||
164 | |||
165 | # Installation directory options. | ||
166 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
167 | # and all the variables that are supposed to be based on exec_prefix | ||
168 | # by default will actually change. | ||
169 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
170 | bindir='${exec_prefix}/bin' | ||
171 | sbindir='${exec_prefix}/sbin' | ||
172 | libexecdir='${exec_prefix}/libexec' | ||
173 | datadir='${prefix}/share' | ||
174 | sysconfdir='${prefix}/etc' | ||
175 | sharedstatedir='${prefix}/com' | ||
176 | localstatedir='${prefix}/var' | ||
177 | libdir='${exec_prefix}/lib' | ||
178 | includedir='${prefix}/include' | ||
179 | oldincludedir='/usr/include' | ||
180 | infodir='${prefix}/info' | ||
181 | mandir='${prefix}/man' | ||
182 | |||
183 | # Identity of this package. | ||
184 | PACKAGE_NAME= | ||
185 | PACKAGE_TARNAME= | ||
186 | PACKAGE_VERSION= | ||
187 | PACKAGE_STRING= | ||
188 | PACKAGE_BUGREPORT= | ||
189 | |||
190 | ac_prev= | ||
191 | for ac_option | ||
192 | do | ||
193 | # If the previous option needs an argument, assign it. | ||
194 | if test -n "$ac_prev"; then | ||
195 | eval "$ac_prev=\$ac_option" | ||
196 | ac_prev= | ||
197 | continue | ||
198 | fi | ||
199 | |||
200 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
201 | |||
202 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
203 | |||
204 | case $ac_option in | ||
205 | |||
206 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
207 | ac_prev=bindir ;; | ||
208 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
209 | bindir=$ac_optarg ;; | ||
210 | |||
211 | -build | --build | --buil | --bui | --bu) | ||
212 | ac_prev=build_alias ;; | ||
213 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
214 | build_alias=$ac_optarg ;; | ||
215 | |||
216 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
217 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
218 | ac_prev=cache_file ;; | ||
219 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
220 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
221 | cache_file=$ac_optarg ;; | ||
222 | |||
223 | --config-cache | -C) | ||
224 | cache_file=config.cache ;; | ||
225 | |||
226 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
227 | ac_prev=datadir ;; | ||
228 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
229 | | --da=*) | ||
230 | datadir=$ac_optarg ;; | ||
231 | |||
232 | -disable-* | --disable-*) | ||
233 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
234 | # Reject names that are not valid shell variable names. | ||
235 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
237 | { (exit 1); exit 1; }; } | ||
238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
239 | eval "enable_$ac_feature=no" ;; | ||
240 | |||
241 | -enable-* | --enable-*) | ||
242 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
243 | # Reject names that are not valid shell variable names. | ||
244 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
245 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
246 | { (exit 1); exit 1; }; } | ||
247 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
248 | case $ac_option in | ||
249 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
250 | *) ac_optarg=yes ;; | ||
251 | esac | ||
252 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
253 | |||
254 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
255 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
256 | | --exec | --exe | --ex) | ||
257 | ac_prev=exec_prefix ;; | ||
258 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
259 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
260 | | --exec=* | --exe=* | --ex=*) | ||
261 | exec_prefix=$ac_optarg ;; | ||
262 | |||
263 | -gas | --gas | --ga | --g) | ||
264 | # Obsolete; use --with-gas. | ||
265 | with_gas=yes ;; | ||
266 | |||
267 | -help | --help | --hel | --he | -h) | ||
268 | ac_init_help=long ;; | ||
269 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
270 | ac_init_help=recursive ;; | ||
271 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
272 | ac_init_help=short ;; | ||
273 | |||
274 | -host | --host | --hos | --ho) | ||
275 | ac_prev=host_alias ;; | ||
276 | -host=* | --host=* | --hos=* | --ho=*) | ||
277 | host_alias=$ac_optarg ;; | ||
278 | |||
279 | -includedir | --includedir | --includedi | --included | --include \ | ||
280 | | --includ | --inclu | --incl | --inc) | ||
281 | ac_prev=includedir ;; | ||
282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
283 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
284 | includedir=$ac_optarg ;; | ||
285 | |||
286 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
287 | ac_prev=infodir ;; | ||
288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
289 | infodir=$ac_optarg ;; | ||
290 | |||
291 | -libdir | --libdir | --libdi | --libd) | ||
292 | ac_prev=libdir ;; | ||
293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
294 | libdir=$ac_optarg ;; | ||
295 | |||
296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
297 | | --libexe | --libex | --libe) | ||
298 | ac_prev=libexecdir ;; | ||
299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
300 | | --libexe=* | --libex=* | --libe=*) | ||
301 | libexecdir=$ac_optarg ;; | ||
302 | |||
303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
304 | | --localstate | --localstat | --localsta | --localst \ | ||
305 | | --locals | --local | --loca | --loc | --lo) | ||
306 | ac_prev=localstatedir ;; | ||
307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
310 | localstatedir=$ac_optarg ;; | ||
311 | |||
312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
313 | ac_prev=mandir ;; | ||
314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
315 | mandir=$ac_optarg ;; | ||
316 | |||
317 | -nfp | --nfp | --nf) | ||
318 | # Obsolete; use --without-fp. | ||
319 | with_fp=no ;; | ||
320 | |||
321 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
322 | | --no-cr | --no-c) | ||
323 | no_create=yes ;; | ||
324 | |||
325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
327 | no_recursion=yes ;; | ||
328 | |||
329 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
330 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
331 | | --oldin | --oldi | --old | --ol | --o) | ||
332 | ac_prev=oldincludedir ;; | ||
333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
336 | oldincludedir=$ac_optarg ;; | ||
337 | |||
338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
339 | ac_prev=prefix ;; | ||
340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
341 | prefix=$ac_optarg ;; | ||
342 | |||
343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
344 | | --program-pre | --program-pr | --program-p) | ||
345 | ac_prev=program_prefix ;; | ||
346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
348 | program_prefix=$ac_optarg ;; | ||
349 | |||
350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
351 | | --program-suf | --program-su | --program-s) | ||
352 | ac_prev=program_suffix ;; | ||
353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
355 | program_suffix=$ac_optarg ;; | ||
356 | |||
357 | -program-transform-name | --program-transform-name \ | ||
358 | | --program-transform-nam | --program-transform-na \ | ||
359 | | --program-transform-n | --program-transform- \ | ||
360 | | --program-transform | --program-transfor \ | ||
361 | | --program-transfo | --program-transf \ | ||
362 | | --program-trans | --program-tran \ | ||
363 | | --progr-tra | --program-tr | --program-t) | ||
364 | ac_prev=program_transform_name ;; | ||
365 | -program-transform-name=* | --program-transform-name=* \ | ||
366 | | --program-transform-nam=* | --program-transform-na=* \ | ||
367 | | --program-transform-n=* | --program-transform-=* \ | ||
368 | | --program-transform=* | --program-transfor=* \ | ||
369 | | --program-transfo=* | --program-transf=* \ | ||
370 | | --program-trans=* | --program-tran=* \ | ||
371 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
372 | program_transform_name=$ac_optarg ;; | ||
373 | |||
374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
375 | | -silent | --silent | --silen | --sile | --sil) | ||
376 | silent=yes ;; | ||
377 | |||
378 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
379 | ac_prev=sbindir ;; | ||
380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
381 | | --sbi=* | --sb=*) | ||
382 | sbindir=$ac_optarg ;; | ||
383 | |||
384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
386 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
387 | | --sha | --sh) | ||
388 | ac_prev=sharedstatedir ;; | ||
389 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
392 | | --sha=* | --sh=*) | ||
393 | sharedstatedir=$ac_optarg ;; | ||
394 | |||
395 | -site | --site | --sit) | ||
396 | ac_prev=site ;; | ||
397 | -site=* | --site=* | --sit=*) | ||
398 | site=$ac_optarg ;; | ||
399 | |||
400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
401 | ac_prev=srcdir ;; | ||
402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
403 | srcdir=$ac_optarg ;; | ||
404 | |||
405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
406 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
407 | ac_prev=sysconfdir ;; | ||
408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
410 | sysconfdir=$ac_optarg ;; | ||
411 | |||
412 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
413 | ac_prev=target_alias ;; | ||
414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
415 | target_alias=$ac_optarg ;; | ||
416 | |||
417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
418 | verbose=yes ;; | ||
419 | |||
420 | -version | --version | --versio | --versi | --vers | -V) | ||
421 | ac_init_version=: ;; | ||
422 | |||
423 | -with-* | --with-*) | ||
424 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
425 | # Reject names that are not valid shell variable names. | ||
426 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
427 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
428 | { (exit 1); exit 1; }; } | ||
429 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
430 | case $ac_option in | ||
431 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
432 | *) ac_optarg=yes ;; | ||
433 | esac | ||
434 | eval "with_$ac_package='$ac_optarg'" ;; | ||
435 | |||
436 | -without-* | --without-*) | ||
437 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
438 | # Reject names that are not valid shell variable names. | ||
439 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
440 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
441 | { (exit 1); exit 1; }; } | ||
442 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
443 | eval "with_$ac_package=no" ;; | ||
444 | |||
445 | --x) | ||
446 | # Obsolete; use --with-x. | ||
447 | with_x=yes ;; | ||
448 | |||
449 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
450 | | --x-incl | --x-inc | --x-in | --x-i) | ||
451 | ac_prev=x_includes ;; | ||
452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
454 | x_includes=$ac_optarg ;; | ||
455 | |||
456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
458 | ac_prev=x_libraries ;; | ||
459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
461 | x_libraries=$ac_optarg ;; | ||
462 | |||
463 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
464 | Try \`$0 --help' for more information." >&2 | ||
465 | { (exit 1); exit 1; }; } | ||
466 | ;; | ||
467 | |||
468 | *=*) | ||
469 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
470 | # Reject names that are not valid shell variable names. | ||
471 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
472 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
473 | { (exit 1); exit 1; }; } | ||
474 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
475 | eval "$ac_envvar='$ac_optarg'" | ||
476 | export $ac_envvar ;; | ||
477 | |||
478 | *) | ||
479 | # FIXME: should be removed in autoconf 3.0. | ||
480 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
481 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
482 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
483 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
484 | ;; | ||
485 | |||
486 | esac | ||
487 | done | ||
488 | |||
489 | if test -n "$ac_prev"; then | ||
490 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
491 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
492 | { (exit 1); exit 1; }; } | ||
493 | fi | ||
494 | |||
495 | # Be sure to have absolute paths. | ||
496 | for ac_var in exec_prefix prefix | ||
497 | do | ||
498 | eval ac_val=$`echo $ac_var` | ||
499 | case $ac_val in | ||
500 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
501 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | ||
502 | { (exit 1); exit 1; }; };; | ||
503 | esac | ||
504 | done | ||
505 | |||
506 | # Be sure to have absolute paths. | ||
507 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
508 | localstatedir libdir includedir oldincludedir infodir mandir | ||
509 | do | ||
510 | eval ac_val=$`echo $ac_var` | ||
511 | case $ac_val in | ||
512 | [\\/$]* | ?:[\\/]* ) ;; | ||
513 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | ||
514 | { (exit 1); exit 1; }; };; | ||
515 | esac | ||
516 | done | ||
517 | |||
518 | # There might be people who depend on the old broken behavior: `$host' | ||
519 | # used to hold the argument of --host etc. | ||
520 | build=$build_alias | ||
521 | host=$host_alias | ||
522 | target=$target_alias | ||
523 | |||
524 | # FIXME: should be removed in autoconf 3.0. | ||
525 | if test "x$host_alias" != x; then | ||
526 | if test "x$build_alias" = x; then | ||
527 | cross_compiling=maybe | ||
528 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
529 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
530 | elif test "x$build_alias" != "x$host_alias"; then | ||
531 | cross_compiling=yes | ||
532 | fi | ||
533 | fi | ||
534 | |||
535 | ac_tool_prefix= | ||
536 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
537 | |||
538 | test "$silent" = yes && exec 6>/dev/null | ||
539 | |||
540 | # Find the source files, if location was not specified. | ||
541 | if test -z "$srcdir"; then | ||
542 | ac_srcdir_defaulted=yes | ||
543 | # Try the directory containing this script, then its parent. | ||
544 | ac_prog=$0 | ||
545 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | ||
546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
547 | srcdir=$ac_confdir | ||
548 | if test ! -r $srcdir/$ac_unique_file; then | ||
549 | srcdir=.. | ||
550 | fi | ||
551 | else | ||
552 | ac_srcdir_defaulted=no | ||
553 | fi | ||
554 | if test ! -r $srcdir/$ac_unique_file; then | ||
555 | if test "$ac_srcdir_defaulted" = yes; then | ||
556 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 | ||
557 | { (exit 1); exit 1; }; } | ||
558 | else | ||
559 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 | ||
560 | { (exit 1); exit 1; }; } | ||
561 | fi | ||
562 | fi | ||
563 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
564 | ac_env_build_alias_set=${build_alias+set} | ||
565 | ac_env_build_alias_value=$build_alias | ||
566 | ac_cv_env_build_alias_set=${build_alias+set} | ||
567 | ac_cv_env_build_alias_value=$build_alias | ||
568 | ac_env_host_alias_set=${host_alias+set} | ||
569 | ac_env_host_alias_value=$host_alias | ||
570 | ac_cv_env_host_alias_set=${host_alias+set} | ||
571 | ac_cv_env_host_alias_value=$host_alias | ||
572 | ac_env_target_alias_set=${target_alias+set} | ||
573 | ac_env_target_alias_value=$target_alias | ||
574 | ac_cv_env_target_alias_set=${target_alias+set} | ||
575 | ac_cv_env_target_alias_value=$target_alias | ||
576 | ac_env_CC_set=${CC+set} | ||
577 | ac_env_CC_value=$CC | ||
578 | ac_cv_env_CC_set=${CC+set} | ||
579 | ac_cv_env_CC_value=$CC | ||
580 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
581 | ac_env_CFLAGS_value=$CFLAGS | ||
582 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
583 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
584 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
585 | ac_env_LDFLAGS_value=$LDFLAGS | ||
586 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
587 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
588 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
589 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
590 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
591 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
592 | ac_env_CPP_set=${CPP+set} | ||
593 | ac_env_CPP_value=$CPP | ||
594 | ac_cv_env_CPP_set=${CPP+set} | ||
595 | ac_cv_env_CPP_value=$CPP | ||
596 | |||
597 | # | ||
598 | # Report the --help message. | ||
599 | # | ||
600 | if test "$ac_init_help" = "long"; then | ||
601 | # Omit some internal or obsolete options to make the list less imposing. | ||
602 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
603 | cat <<EOF | ||
604 | \`configure' configures this package to adapt to many kinds of systems. | ||
605 | |||
606 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
607 | |||
608 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
609 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
610 | |||
611 | Defaults for the options are specified in brackets. | ||
612 | |||
613 | Configuration: | ||
614 | -h, --help display this help and exit | ||
615 | --help=short display options specific to this package | ||
616 | --help=recursive display the short help of all the included packages | ||
617 | -V, --version display version information and exit | ||
618 | -q, --quiet, --silent do not print \`checking...' messages | ||
619 | --cache-file=FILE cache test results in FILE [disabled] | ||
620 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
621 | -n, --no-create do not create output files | ||
622 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
623 | |||
624 | EOF | ||
625 | |||
626 | cat <<EOF | ||
627 | Installation directories: | ||
628 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
629 | [$ac_default_prefix] | ||
630 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
631 | [PREFIX] | ||
632 | |||
633 | By default, \`make install' will install all the files in | ||
634 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
635 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
636 | for instance \`--prefix=\$HOME'. | ||
637 | |||
638 | For better control, use the options below. | ||
639 | |||
640 | Fine tuning of the installation directories: | ||
641 | --bindir=DIR user executables [EPREFIX/bin] | ||
642 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
643 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
644 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
645 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
646 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
647 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
648 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
649 | --includedir=DIR C header files [PREFIX/include] | ||
650 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
651 | --infodir=DIR info documentation [PREFIX/info] | ||
652 | --mandir=DIR man documentation [PREFIX/man] | ||
653 | EOF | ||
654 | |||
655 | cat <<\EOF | ||
656 | |||
657 | System types: | ||
658 | --build=BUILD configure for building on BUILD [guessed] | ||
659 | --host=HOST build programs to run on HOST [BUILD] | ||
660 | EOF | ||
661 | fi | ||
662 | |||
663 | if test -n "$ac_init_help"; then | ||
664 | |||
665 | cat <<\EOF | ||
666 | |||
667 | Optional Features: | ||
668 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
669 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
670 | --disable-largefile omit support for large files | ||
671 | --disable-strip Disable calling strip(1) on install | ||
672 | --disable-lastlog disable use of lastlog even if detected no | ||
673 | --disable-utmp disable use of utmp even if detected no | ||
674 | --disable-utmpx disable use of utmpx even if detected no | ||
675 | --disable-wtmp disable use of wtmp even if detected no | ||
676 | --disable-wtmpx disable use of wtmpx even if detected no | ||
677 | --disable-libutil disable use of libutil (login() etc.) no | ||
678 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
679 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
680 | |||
681 | Optional Packages: | ||
682 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
683 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
684 | --with-osfsia Enable Digital Unix SIA | ||
685 | --with-cflags Specify additional flags to pass to compiler | ||
686 | --with-cppflags Specify additional flags to pass to preprocessor | ||
687 | --with-ldflags Specify additional flags to pass to linker | ||
688 | --with-libs Specify additional libraries to link with | ||
689 | --without-rpath Disable auto-added -R linker paths | ||
690 | --with-zlib=PATH Use zlib in PATH | ||
691 | --with-skey[=PATH] Enable S/Key support | ||
692 | (optionally in PATH) | ||
693 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
694 | (optionally in PATH) | ||
695 | --with-pam Enable PAM support | ||
696 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
697 | --with-rand-helper Use subprocess to gather strong randomness | ||
698 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
699 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
700 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
701 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
702 | --with-sectok Enable smartcard support using libsectok | ||
703 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
704 | --with-dns Support for fetching keys from DNS (experimental) | ||
705 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
706 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
707 | --with-xauth=PATH Specify path to xauth program | ||
708 | --with-mantype=man|cat|doc Set man page type | ||
709 | --with-md5-passwords Enable use of MD5 passwords | ||
710 | --without-shadow Disable shadow password support | ||
711 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
712 | --with-default-path= Specify default \$PATH environment for server | ||
713 | --with-superuser-path= Specify different path for super-user | ||
714 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
715 | --with-bsd-auth Enable BSD auth support | ||
716 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
717 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
718 | |||
719 | Some influential environment variables: | ||
720 | CC C compiler command | ||
721 | CFLAGS C compiler flags | ||
722 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
723 | nonstandard directory <lib dir> | ||
724 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
725 | headers in a nonstandard directory <include dir> | ||
726 | CPP C preprocessor | ||
727 | |||
728 | Use these variables to override the choices made by `configure' or to help | ||
729 | it to find libraries and programs with nonstandard names/locations. | ||
730 | |||
731 | EOF | ||
732 | fi | ||
733 | |||
734 | if test "$ac_init_help" = "recursive"; then | ||
735 | # If there are subdirs, report their specific --help. | ||
736 | ac_popdir=`pwd` | ||
737 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | ||
738 | cd $ac_subdir | ||
739 | # A "../" for each directory in /$ac_subdir. | ||
740 | ac_dots=`echo $ac_subdir | | ||
741 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | ||
742 | |||
743 | case $srcdir in | ||
744 | .) # No --srcdir option. We are building in place. | ||
745 | ac_sub_srcdir=$srcdir ;; | ||
746 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
747 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | ||
748 | *) # Relative path. | ||
749 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | ||
750 | esac | ||
751 | |||
752 | # Check for guested configure; otherwise get Cygnus style configure. | ||
753 | if test -f $ac_sub_srcdir/configure.gnu; then | ||
754 | echo | ||
755 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | ||
756 | elif test -f $ac_sub_srcdir/configure; then | ||
757 | echo | ||
758 | $SHELL $ac_sub_srcdir/configure --help=recursive | ||
759 | elif test -f $ac_sub_srcdir/configure.ac || | ||
760 | test -f $ac_sub_srcdir/configure.in; then | ||
761 | echo | ||
762 | $ac_configure --help | ||
763 | else | ||
764 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | ||
765 | fi | ||
766 | cd $ac_popdir | ||
767 | done | ||
768 | fi | ||
769 | |||
770 | test -n "$ac_init_help" && exit 0 | ||
771 | if $ac_init_version; then | ||
772 | cat <<\EOF | ||
773 | |||
774 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
775 | Free Software Foundation, Inc. | ||
776 | This configure script is free software; the Free Software Foundation | ||
777 | gives unlimited permission to copy, distribute and modify it. | ||
778 | EOF | ||
779 | exit 0 | ||
780 | fi | ||
781 | exec 5>config.log | ||
782 | cat >&5 <<EOF | ||
783 | This file contains any messages produced by compilers while | ||
784 | running configure, to aid debugging if configure makes a mistake. | ||
785 | |||
786 | It was created by $as_me, which was | ||
787 | generated by GNU Autoconf 2.52. Invocation command line was | ||
788 | |||
789 | $ $0 $@ | ||
790 | |||
791 | EOF | ||
792 | { | ||
793 | cat <<_ASUNAME | ||
794 | ## ---------- ## | ||
795 | ## Platform. ## | ||
796 | ## ---------- ## | ||
797 | |||
798 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
799 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
800 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
801 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
802 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
803 | |||
804 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
805 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
806 | |||
807 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
808 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
809 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
810 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
811 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
812 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
813 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
814 | |||
815 | PATH = $PATH | ||
816 | |||
817 | _ASUNAME | ||
818 | } >&5 | ||
819 | |||
820 | cat >&5 <<EOF | ||
821 | ## ------------ ## | ||
822 | ## Core tests. ## | ||
823 | ## ------------ ## | ||
824 | |||
825 | EOF | ||
826 | |||
827 | # Keep a trace of the command line. | ||
828 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
829 | # Also quote any args containing shell meta-characters. | ||
830 | ac_configure_args= | ||
831 | ac_sep= | ||
832 | for ac_arg | ||
833 | do | ||
834 | case $ac_arg in | ||
835 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
836 | | --no-cr | --no-c) ;; | ||
837 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
838 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
839 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
840 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | ||
841 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
842 | ac_sep=" " ;; | ||
843 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | ||
844 | ac_sep=" " ;; | ||
845 | esac | ||
846 | # Get rid of the leading space. | ||
847 | done | ||
848 | |||
849 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
850 | # config.log. We remove comments because anyway the quotes in there | ||
851 | # would cause problems or look ugly. | ||
852 | trap 'exit_status=$? | ||
853 | # Save into config.log some information that might help in debugging. | ||
854 | echo >&5 | ||
855 | echo "## ----------------- ##" >&5 | ||
856 | echo "## Cache variables. ##" >&5 | ||
857 | echo "## ----------------- ##" >&5 | ||
858 | echo >&5 | ||
859 | # The following way of writing the cache mishandles newlines in values, | ||
860 | { | ||
861 | (set) 2>&1 | | ||
862 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
863 | *ac_space=\ *) | ||
864 | sed -n \ | ||
865 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
866 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
867 | ;; | ||
868 | *) | ||
869 | sed -n \ | ||
870 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
871 | ;; | ||
872 | esac; | ||
873 | } >&5 | ||
874 | sed "/^$/d" confdefs.h >conftest.log | ||
875 | if test -s conftest.log; then | ||
876 | echo >&5 | ||
877 | echo "## ------------ ##" >&5 | ||
878 | echo "## confdefs.h. ##" >&5 | ||
879 | echo "## ------------ ##" >&5 | ||
880 | echo >&5 | ||
881 | cat conftest.log >&5 | ||
882 | fi | ||
883 | (echo; echo) >&5 | ||
884 | test "$ac_signal" != 0 && | ||
885 | echo "$as_me: caught signal $ac_signal" >&5 | ||
886 | echo "$as_me: exit $exit_status" >&5 | ||
887 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | ||
888 | exit $exit_status | ||
889 | ' 0 | ||
890 | for ac_signal in 1 2 13 15; do | ||
891 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
892 | done | ||
893 | ac_signal=0 | ||
894 | |||
895 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
896 | rm -rf conftest* confdefs.h | ||
897 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
898 | echo >confdefs.h | ||
899 | |||
900 | # Let the site file select an alternate cache file if it wants to. | ||
901 | # Prefer explicitly selected file to automatically selected ones. | ||
902 | if test -z "$CONFIG_SITE"; then | ||
903 | if test "x$prefix" != xNONE; then | ||
904 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
905 | else | ||
906 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
907 | fi | ||
908 | fi | ||
909 | for ac_site_file in $CONFIG_SITE; do | ||
910 | if test -r "$ac_site_file"; then | ||
911 | { echo "$as_me:911: loading site script $ac_site_file" >&5 | ||
912 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
913 | cat "$ac_site_file" >&5 | ||
914 | . "$ac_site_file" | ||
915 | fi | ||
916 | done | ||
917 | |||
918 | if test -r "$cache_file"; then | ||
919 | # Some versions of bash will fail to source /dev/null (special | ||
920 | # files actually), so we avoid doing that. | ||
921 | if test -f "$cache_file"; then | ||
922 | { echo "$as_me:922: loading cache $cache_file" >&5 | ||
923 | echo "$as_me: loading cache $cache_file" >&6;} | ||
924 | case $cache_file in | ||
925 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
926 | *) . ./$cache_file;; | ||
927 | esac | ||
928 | fi | ||
929 | else | ||
930 | { echo "$as_me:930: creating cache $cache_file" >&5 | ||
931 | echo "$as_me: creating cache $cache_file" >&6;} | ||
932 | >$cache_file | ||
933 | fi | ||
934 | |||
935 | # Check that the precious variables saved in the cache have kept the same | ||
936 | # value. | ||
937 | ac_cache_corrupted=false | ||
938 | for ac_var in `(set) 2>&1 | | ||
939 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
940 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
941 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
942 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
943 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
944 | case $ac_old_set,$ac_new_set in | ||
945 | set,) | ||
946 | { echo "$as_me:946: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
947 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
948 | ac_cache_corrupted=: ;; | ||
949 | ,set) | ||
950 | { echo "$as_me:950: error: \`$ac_var' was not set in the previous run" >&5 | ||
951 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
952 | ac_cache_corrupted=: ;; | ||
953 | ,);; | ||
954 | *) | ||
955 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
956 | { echo "$as_me:956: error: \`$ac_var' has changed since the previous run:" >&5 | ||
957 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
958 | { echo "$as_me:958: former value: $ac_old_val" >&5 | ||
959 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
960 | { echo "$as_me:960: current value: $ac_new_val" >&5 | ||
961 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
962 | ac_cache_corrupted=: | ||
963 | fi;; | ||
964 | esac | ||
965 | # Pass precious variables to config.status. It doesn't matter if | ||
966 | # we pass some twice (in addition to the command line arguments). | ||
967 | if test "$ac_new_set" = set; then | ||
968 | case $ac_new_val in | ||
969 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
970 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | ||
971 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
972 | ;; | ||
973 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | ||
974 | ;; | ||
975 | esac | ||
976 | fi | ||
977 | done | ||
978 | if $ac_cache_corrupted; then | ||
979 | { echo "$as_me:979: error: changes in the environment can compromise the build" >&5 | ||
980 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
981 | { { echo "$as_me:981: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
982 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
983 | { (exit 1); exit 1; }; } | ||
984 | fi | ||
985 | |||
986 | ac_ext=c | ||
987 | ac_cpp='$CPP $CPPFLAGS' | ||
988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
991 | |||
992 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
993 | *c*,-n*) ECHO_N= ECHO_C=' | ||
994 | ' ECHO_T=' ' ;; | ||
995 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
996 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
997 | esac | ||
998 | echo "#! $SHELL" >conftest.sh | ||
999 | echo "exit 0" >>conftest.sh | ||
1000 | chmod +x conftest.sh | ||
1001 | if { (echo "$as_me:1001: PATH=\".;.\"; conftest.sh") >&5 | ||
1002 | (PATH=".;."; conftest.sh) 2>&5 | ||
1003 | ac_status=$? | ||
1004 | echo "$as_me:1004: \$? = $ac_status" >&5 | ||
1005 | (exit $ac_status); }; then | ||
1006 | ac_path_separator=';' | ||
1007 | else | ||
1008 | ac_path_separator=: | ||
1009 | fi | ||
1010 | PATH_SEPARATOR="$ac_path_separator" | ||
1011 | rm -f conftest.sh | ||
1012 | |||
1013 | ac_config_headers="$ac_config_headers config.h" | ||
1014 | |||
1015 | ac_ext=c | ||
1016 | ac_cpp='$CPP $CPPFLAGS' | ||
1017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1020 | if test -n "$ac_tool_prefix"; then | ||
1021 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1022 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1023 | echo "$as_me:1023: checking for $ac_word" >&5 | ||
1024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1025 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1027 | else | ||
1028 | if test -n "$CC"; then | ||
1029 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1030 | else | ||
1031 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1032 | ac_dummy="$PATH" | ||
1033 | for ac_dir in $ac_dummy; do | ||
1034 | IFS=$ac_save_IFS | ||
1035 | test -z "$ac_dir" && ac_dir=. | ||
1036 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1037 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1038 | echo "$as_me:1038: found $ac_dir/$ac_word" >&5 | ||
1039 | break | ||
1040 | done | ||
1041 | |||
1042 | fi | ||
1043 | fi | ||
1044 | CC=$ac_cv_prog_CC | ||
1045 | if test -n "$CC"; then | ||
1046 | echo "$as_me:1046: result: $CC" >&5 | ||
1047 | echo "${ECHO_T}$CC" >&6 | ||
1048 | else | ||
1049 | echo "$as_me:1049: result: no" >&5 | ||
1050 | echo "${ECHO_T}no" >&6 | ||
1051 | fi | ||
1052 | |||
1053 | fi | ||
1054 | if test -z "$ac_cv_prog_CC"; then | ||
1055 | ac_ct_CC=$CC | ||
1056 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1057 | set dummy gcc; ac_word=$2 | ||
1058 | echo "$as_me:1058: checking for $ac_word" >&5 | ||
1059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1060 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1062 | else | ||
1063 | if test -n "$ac_ct_CC"; then | ||
1064 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1065 | else | ||
1066 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1067 | ac_dummy="$PATH" | ||
1068 | for ac_dir in $ac_dummy; do | ||
1069 | IFS=$ac_save_IFS | ||
1070 | test -z "$ac_dir" && ac_dir=. | ||
1071 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1072 | ac_cv_prog_ac_ct_CC="gcc" | ||
1073 | echo "$as_me:1073: found $ac_dir/$ac_word" >&5 | ||
1074 | break | ||
1075 | done | ||
1076 | |||
1077 | fi | ||
1078 | fi | ||
1079 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1080 | if test -n "$ac_ct_CC"; then | ||
1081 | echo "$as_me:1081: result: $ac_ct_CC" >&5 | ||
1082 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1083 | else | ||
1084 | echo "$as_me:1084: result: no" >&5 | ||
1085 | echo "${ECHO_T}no" >&6 | ||
1086 | fi | ||
1087 | |||
1088 | CC=$ac_ct_CC | ||
1089 | else | ||
1090 | CC="$ac_cv_prog_CC" | ||
1091 | fi | ||
1092 | |||
1093 | if test -z "$CC"; then | ||
1094 | if test -n "$ac_tool_prefix"; then | ||
1095 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1096 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1097 | echo "$as_me:1097: checking for $ac_word" >&5 | ||
1098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1099 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1101 | else | ||
1102 | if test -n "$CC"; then | ||
1103 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1104 | else | ||
1105 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1106 | ac_dummy="$PATH" | ||
1107 | for ac_dir in $ac_dummy; do | ||
1108 | IFS=$ac_save_IFS | ||
1109 | test -z "$ac_dir" && ac_dir=. | ||
1110 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1111 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1112 | echo "$as_me:1112: found $ac_dir/$ac_word" >&5 | ||
1113 | break | ||
1114 | done | ||
1115 | |||
1116 | fi | ||
1117 | fi | ||
1118 | CC=$ac_cv_prog_CC | ||
1119 | if test -n "$CC"; then | ||
1120 | echo "$as_me:1120: result: $CC" >&5 | ||
1121 | echo "${ECHO_T}$CC" >&6 | ||
1122 | else | ||
1123 | echo "$as_me:1123: result: no" >&5 | ||
1124 | echo "${ECHO_T}no" >&6 | ||
1125 | fi | ||
1126 | |||
1127 | fi | ||
1128 | if test -z "$ac_cv_prog_CC"; then | ||
1129 | ac_ct_CC=$CC | ||
1130 | # Extract the first word of "cc", so it can be a program name with args. | ||
1131 | set dummy cc; ac_word=$2 | ||
1132 | echo "$as_me:1132: checking for $ac_word" >&5 | ||
1133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1134 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1136 | else | ||
1137 | if test -n "$ac_ct_CC"; then | ||
1138 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1139 | else | ||
1140 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1141 | ac_dummy="$PATH" | ||
1142 | for ac_dir in $ac_dummy; do | ||
1143 | IFS=$ac_save_IFS | ||
1144 | test -z "$ac_dir" && ac_dir=. | ||
1145 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1146 | ac_cv_prog_ac_ct_CC="cc" | ||
1147 | echo "$as_me:1147: found $ac_dir/$ac_word" >&5 | ||
1148 | break | ||
1149 | done | ||
1150 | |||
1151 | fi | ||
1152 | fi | ||
1153 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1154 | if test -n "$ac_ct_CC"; then | ||
1155 | echo "$as_me:1155: result: $ac_ct_CC" >&5 | ||
1156 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1157 | else | ||
1158 | echo "$as_me:1158: result: no" >&5 | ||
1159 | echo "${ECHO_T}no" >&6 | ||
1160 | fi | ||
1161 | |||
1162 | CC=$ac_ct_CC | ||
1163 | else | ||
1164 | CC="$ac_cv_prog_CC" | ||
1165 | fi | ||
1166 | |||
1167 | fi | ||
1168 | if test -z "$CC"; then | ||
1169 | # Extract the first word of "cc", so it can be a program name with args. | ||
1170 | set dummy cc; ac_word=$2 | ||
1171 | echo "$as_me:1171: checking for $ac_word" >&5 | ||
1172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1173 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1175 | else | ||
1176 | if test -n "$CC"; then | ||
1177 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1178 | else | ||
1179 | ac_prog_rejected=no | ||
1180 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1181 | ac_dummy="$PATH" | ||
1182 | for ac_dir in $ac_dummy; do | ||
1183 | IFS=$ac_save_IFS | ||
1184 | test -z "$ac_dir" && ac_dir=. | ||
1185 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1186 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
1187 | ac_prog_rejected=yes | ||
1188 | continue | ||
1189 | fi | ||
1190 | ac_cv_prog_CC="cc" | ||
1191 | echo "$as_me:1191: found $ac_dir/$ac_word" >&5 | ||
1192 | break | ||
1193 | done | ||
1194 | |||
1195 | if test $ac_prog_rejected = yes; then | ||
1196 | # We found a bogon in the path, so make sure we never use it. | ||
1197 | set dummy $ac_cv_prog_CC | ||
1198 | shift | ||
1199 | if test $# != 0; then | ||
1200 | # We chose a different compiler from the bogus one. | ||
1201 | # However, it has the same basename, so the bogon will be chosen | ||
1202 | # first if we set CC to just the basename; use the full file name. | ||
1203 | shift | ||
1204 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | ||
1205 | shift | ||
1206 | ac_cv_prog_CC="$@" | ||
1207 | fi | ||
1208 | fi | ||
1209 | fi | ||
1210 | fi | ||
1211 | CC=$ac_cv_prog_CC | ||
1212 | if test -n "$CC"; then | ||
1213 | echo "$as_me:1213: result: $CC" >&5 | ||
1214 | echo "${ECHO_T}$CC" >&6 | ||
1215 | else | ||
1216 | echo "$as_me:1216: result: no" >&5 | ||
1217 | echo "${ECHO_T}no" >&6 | ||
1218 | fi | ||
1219 | |||
1220 | fi | ||
1221 | if test -z "$CC"; then | ||
1222 | if test -n "$ac_tool_prefix"; then | ||
1223 | for ac_prog in cl | ||
1224 | do | ||
1225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1227 | echo "$as_me:1227: checking for $ac_word" >&5 | ||
1228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1229 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1231 | else | ||
1232 | if test -n "$CC"; then | ||
1233 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1234 | else | ||
1235 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1236 | ac_dummy="$PATH" | ||
1237 | for ac_dir in $ac_dummy; do | ||
1238 | IFS=$ac_save_IFS | ||
1239 | test -z "$ac_dir" && ac_dir=. | ||
1240 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1241 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1242 | echo "$as_me:1242: found $ac_dir/$ac_word" >&5 | ||
1243 | break | ||
1244 | done | ||
1245 | |||
1246 | fi | ||
1247 | fi | ||
1248 | CC=$ac_cv_prog_CC | ||
1249 | if test -n "$CC"; then | ||
1250 | echo "$as_me:1250: result: $CC" >&5 | ||
1251 | echo "${ECHO_T}$CC" >&6 | ||
1252 | else | ||
1253 | echo "$as_me:1253: result: no" >&5 | ||
1254 | echo "${ECHO_T}no" >&6 | ||
1255 | fi | ||
1256 | |||
1257 | test -n "$CC" && break | ||
1258 | done | ||
1259 | fi | ||
1260 | if test -z "$CC"; then | ||
1261 | ac_ct_CC=$CC | ||
1262 | for ac_prog in cl | ||
1263 | do | ||
1264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1265 | set dummy $ac_prog; ac_word=$2 | ||
1266 | echo "$as_me:1266: checking for $ac_word" >&5 | ||
1267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1268 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1270 | else | ||
1271 | if test -n "$ac_ct_CC"; then | ||
1272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1273 | else | ||
1274 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1275 | ac_dummy="$PATH" | ||
1276 | for ac_dir in $ac_dummy; do | ||
1277 | IFS=$ac_save_IFS | ||
1278 | test -z "$ac_dir" && ac_dir=. | ||
1279 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1280 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1281 | echo "$as_me:1281: found $ac_dir/$ac_word" >&5 | ||
1282 | break | ||
1283 | done | ||
1284 | |||
1285 | fi | ||
1286 | fi | ||
1287 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1288 | if test -n "$ac_ct_CC"; then | ||
1289 | echo "$as_me:1289: result: $ac_ct_CC" >&5 | ||
1290 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1291 | else | ||
1292 | echo "$as_me:1292: result: no" >&5 | ||
1293 | echo "${ECHO_T}no" >&6 | ||
1294 | fi | ||
1295 | |||
1296 | test -n "$ac_ct_CC" && break | ||
1297 | done | ||
1298 | |||
1299 | CC=$ac_ct_CC | ||
1300 | fi | ||
1301 | |||
1302 | fi | ||
1303 | |||
1304 | test -z "$CC" && { { echo "$as_me:1304: error: no acceptable cc found in \$PATH" >&5 | ||
1305 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | ||
1306 | { (exit 1); exit 1; }; } | ||
1307 | |||
1308 | # Provide some information about the compiler. | ||
1309 | echo "$as_me:1309:" \ | ||
1310 | "checking for C compiler version" >&5 | ||
1311 | ac_compiler=`set X $ac_compile; echo $2` | ||
1312 | { (eval echo "$as_me:1312: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1313 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1314 | ac_status=$? | ||
1315 | echo "$as_me:1315: \$? = $ac_status" >&5 | ||
1316 | (exit $ac_status); } | ||
1317 | { (eval echo "$as_me:1317: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1318 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1319 | ac_status=$? | ||
1320 | echo "$as_me:1320: \$? = $ac_status" >&5 | ||
1321 | (exit $ac_status); } | ||
1322 | { (eval echo "$as_me:1322: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1323 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1324 | ac_status=$? | ||
1325 | echo "$as_me:1325: \$? = $ac_status" >&5 | ||
1326 | (exit $ac_status); } | ||
1327 | |||
1328 | cat >conftest.$ac_ext <<_ACEOF | ||
1329 | #line 1329 "configure" | ||
1330 | #include "confdefs.h" | ||
1331 | |||
1332 | int | ||
1333 | main () | ||
1334 | { | ||
1335 | |||
1336 | ; | ||
1337 | return 0; | ||
1338 | } | ||
1339 | _ACEOF | ||
1340 | ac_clean_files_save=$ac_clean_files | ||
1341 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1342 | # Try to create an executable without -o first, disregard a.out. | ||
1343 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1344 | # of exeext. | ||
1345 | echo "$as_me:1345: checking for C compiler default output" >&5 | ||
1346 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1347 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1348 | if { (eval echo "$as_me:1348: \"$ac_link_default\"") >&5 | ||
1349 | (eval $ac_link_default) 2>&5 | ||
1350 | ac_status=$? | ||
1351 | echo "$as_me:1351: \$? = $ac_status" >&5 | ||
1352 | (exit $ac_status); }; then | ||
1353 | # Find the output, starting from the most likely. This scheme is | ||
1354 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1355 | # resort. | ||
1356 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | ||
1357 | ls a.out conftest 2>/dev/null; | ||
1358 | ls a.* conftest.* 2>/dev/null`; do | ||
1359 | case $ac_file in | ||
1360 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1361 | a.out ) # We found the default executable, but exeext='' is most | ||
1362 | # certainly right. | ||
1363 | break;; | ||
1364 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1365 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1366 | export ac_cv_exeext | ||
1367 | break;; | ||
1368 | * ) break;; | ||
1369 | esac | ||
1370 | done | ||
1371 | else | ||
1372 | echo "$as_me: failed program was:" >&5 | ||
1373 | cat conftest.$ac_ext >&5 | ||
1374 | { { echo "$as_me:1374: error: C compiler cannot create executables" >&5 | ||
1375 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1376 | { (exit 77); exit 77; }; } | ||
1377 | fi | ||
1378 | |||
1379 | ac_exeext=$ac_cv_exeext | ||
1380 | echo "$as_me:1380: result: $ac_file" >&5 | ||
1381 | echo "${ECHO_T}$ac_file" >&6 | ||
1382 | |||
1383 | # Check the compiler produces executables we can run. If not, either | ||
1384 | # the compiler is broken, or we cross compile. | ||
1385 | echo "$as_me:1385: checking whether the C compiler works" >&5 | ||
1386 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1387 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1388 | # If not cross compiling, check that we can run a simple program. | ||
1389 | if test "$cross_compiling" != yes; then | ||
1390 | if { ac_try='./$ac_file' | ||
1391 | { (eval echo "$as_me:1391: \"$ac_try\"") >&5 | ||
1392 | (eval $ac_try) 2>&5 | ||
1393 | ac_status=$? | ||
1394 | echo "$as_me:1394: \$? = $ac_status" >&5 | ||
1395 | (exit $ac_status); }; }; then | ||
1396 | cross_compiling=no | ||
1397 | else | ||
1398 | if test "$cross_compiling" = maybe; then | ||
1399 | cross_compiling=yes | ||
1400 | else | ||
1401 | { { echo "$as_me:1401: error: cannot run C compiled programs. | ||
1402 | If you meant to cross compile, use \`--host'." >&5 | ||
1403 | echo "$as_me: error: cannot run C compiled programs. | ||
1404 | If you meant to cross compile, use \`--host'." >&2;} | ||
1405 | { (exit 1); exit 1; }; } | ||
1406 | fi | ||
1407 | fi | ||
1408 | fi | ||
1409 | echo "$as_me:1409: result: yes" >&5 | ||
1410 | echo "${ECHO_T}yes" >&6 | ||
1411 | |||
1412 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1413 | ac_clean_files=$ac_clean_files_save | ||
1414 | # Check the compiler produces executables we can run. If not, either | ||
1415 | # the compiler is broken, or we cross compile. | ||
1416 | echo "$as_me:1416: checking whether we are cross compiling" >&5 | ||
1417 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1418 | echo "$as_me:1418: result: $cross_compiling" >&5 | ||
1419 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1420 | |||
1421 | echo "$as_me:1421: checking for executable suffix" >&5 | ||
1422 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | ||
1423 | if { (eval echo "$as_me:1423: \"$ac_link\"") >&5 | ||
1424 | (eval $ac_link) 2>&5 | ||
1425 | ac_status=$? | ||
1426 | echo "$as_me:1426: \$? = $ac_status" >&5 | ||
1427 | (exit $ac_status); }; then | ||
1428 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1429 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1430 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1431 | # `rm'. | ||
1432 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1433 | case $ac_file in | ||
1434 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1435 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1436 | export ac_cv_exeext | ||
1437 | break;; | ||
1438 | * ) break;; | ||
1439 | esac | ||
1440 | done | ||
1441 | else | ||
1442 | { { echo "$as_me:1442: error: cannot compute EXEEXT: cannot compile and link" >&5 | ||
1443 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | ||
1444 | { (exit 1); exit 1; }; } | ||
1445 | fi | ||
1446 | |||
1447 | rm -f conftest$ac_cv_exeext | ||
1448 | echo "$as_me:1448: result: $ac_cv_exeext" >&5 | ||
1449 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1450 | |||
1451 | rm -f conftest.$ac_ext | ||
1452 | EXEEXT=$ac_cv_exeext | ||
1453 | ac_exeext=$EXEEXT | ||
1454 | echo "$as_me:1454: checking for object suffix" >&5 | ||
1455 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | ||
1456 | if test "${ac_cv_objext+set}" = set; then | ||
1457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1458 | else | ||
1459 | cat >conftest.$ac_ext <<_ACEOF | ||
1460 | #line 1460 "configure" | ||
1461 | #include "confdefs.h" | ||
1462 | |||
1463 | int | ||
1464 | main () | ||
1465 | { | ||
1466 | |||
1467 | ; | ||
1468 | return 0; | ||
1469 | } | ||
1470 | _ACEOF | ||
1471 | rm -f conftest.o conftest.obj | ||
1472 | if { (eval echo "$as_me:1472: \"$ac_compile\"") >&5 | ||
1473 | (eval $ac_compile) 2>&5 | ||
1474 | ac_status=$? | ||
1475 | echo "$as_me:1475: \$? = $ac_status" >&5 | ||
1476 | (exit $ac_status); }; then | ||
1477 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1478 | case $ac_file in | ||
1479 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1480 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1481 | break;; | ||
1482 | esac | ||
1483 | done | ||
1484 | else | ||
1485 | echo "$as_me: failed program was:" >&5 | ||
1486 | cat conftest.$ac_ext >&5 | ||
1487 | { { echo "$as_me:1487: error: cannot compute OBJEXT: cannot compile" >&5 | ||
1488 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | ||
1489 | { (exit 1); exit 1; }; } | ||
1490 | fi | ||
1491 | |||
1492 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1493 | fi | ||
1494 | echo "$as_me:1494: result: $ac_cv_objext" >&5 | ||
1495 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1496 | OBJEXT=$ac_cv_objext | ||
1497 | ac_objext=$OBJEXT | ||
1498 | echo "$as_me:1498: checking whether we are using the GNU C compiler" >&5 | ||
1499 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1500 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1502 | else | ||
1503 | cat >conftest.$ac_ext <<_ACEOF | ||
1504 | #line 1504 "configure" | ||
1505 | #include "confdefs.h" | ||
1506 | |||
1507 | int | ||
1508 | main () | ||
1509 | { | ||
1510 | #ifndef __GNUC__ | ||
1511 | choke me | ||
1512 | #endif | ||
1513 | |||
1514 | ; | ||
1515 | return 0; | ||
1516 | } | ||
1517 | _ACEOF | ||
1518 | rm -f conftest.$ac_objext | ||
1519 | if { (eval echo "$as_me:1519: \"$ac_compile\"") >&5 | ||
1520 | (eval $ac_compile) 2>&5 | ||
1521 | ac_status=$? | ||
1522 | echo "$as_me:1522: \$? = $ac_status" >&5 | ||
1523 | (exit $ac_status); } && | ||
1524 | { ac_try='test -s conftest.$ac_objext' | ||
1525 | { (eval echo "$as_me:1525: \"$ac_try\"") >&5 | ||
1526 | (eval $ac_try) 2>&5 | ||
1527 | ac_status=$? | ||
1528 | echo "$as_me:1528: \$? = $ac_status" >&5 | ||
1529 | (exit $ac_status); }; }; then | ||
1530 | ac_compiler_gnu=yes | ||
1531 | else | ||
1532 | echo "$as_me: failed program was:" >&5 | ||
1533 | cat conftest.$ac_ext >&5 | ||
1534 | ac_compiler_gnu=no | ||
1535 | fi | ||
1536 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1537 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1538 | |||
1539 | fi | ||
1540 | echo "$as_me:1540: result: $ac_cv_c_compiler_gnu" >&5 | ||
1541 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1542 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1543 | ac_test_CFLAGS=${CFLAGS+set} | ||
1544 | ac_save_CFLAGS=$CFLAGS | ||
1545 | CFLAGS="-g" | ||
1546 | echo "$as_me:1546: checking whether $CC accepts -g" >&5 | ||
1547 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1548 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1550 | else | ||
1551 | cat >conftest.$ac_ext <<_ACEOF | ||
1552 | #line 1552 "configure" | ||
1553 | #include "confdefs.h" | ||
1554 | |||
1555 | int | ||
1556 | main () | ||
1557 | { | ||
1558 | |||
1559 | ; | ||
1560 | return 0; | ||
1561 | } | ||
1562 | _ACEOF | ||
1563 | rm -f conftest.$ac_objext | ||
1564 | if { (eval echo "$as_me:1564: \"$ac_compile\"") >&5 | ||
1565 | (eval $ac_compile) 2>&5 | ||
1566 | ac_status=$? | ||
1567 | echo "$as_me:1567: \$? = $ac_status" >&5 | ||
1568 | (exit $ac_status); } && | ||
1569 | { ac_try='test -s conftest.$ac_objext' | ||
1570 | { (eval echo "$as_me:1570: \"$ac_try\"") >&5 | ||
1571 | (eval $ac_try) 2>&5 | ||
1572 | ac_status=$? | ||
1573 | echo "$as_me:1573: \$? = $ac_status" >&5 | ||
1574 | (exit $ac_status); }; }; then | ||
1575 | ac_cv_prog_cc_g=yes | ||
1576 | else | ||
1577 | echo "$as_me: failed program was:" >&5 | ||
1578 | cat conftest.$ac_ext >&5 | ||
1579 | ac_cv_prog_cc_g=no | ||
1580 | fi | ||
1581 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1582 | fi | ||
1583 | echo "$as_me:1583: result: $ac_cv_prog_cc_g" >&5 | ||
1584 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1585 | if test "$ac_test_CFLAGS" = set; then | ||
1586 | CFLAGS=$ac_save_CFLAGS | ||
1587 | elif test $ac_cv_prog_cc_g = yes; then | ||
1588 | if test "$GCC" = yes; then | ||
1589 | CFLAGS="-g -O2" | ||
1590 | else | ||
1591 | CFLAGS="-g" | ||
1592 | fi | ||
1593 | else | ||
1594 | if test "$GCC" = yes; then | ||
1595 | CFLAGS="-O2" | ||
1596 | else | ||
1597 | CFLAGS= | ||
1598 | fi | ||
1599 | fi | ||
1600 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1601 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1602 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1603 | # the declaration of exit, since it's the most demanding environment. | ||
1604 | cat >conftest.$ac_ext <<_ACEOF | ||
1605 | #ifndef __cplusplus | ||
1606 | choke me | ||
1607 | #endif | ||
1608 | _ACEOF | ||
1609 | rm -f conftest.$ac_objext | ||
1610 | if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5 | ||
1611 | (eval $ac_compile) 2>&5 | ||
1612 | ac_status=$? | ||
1613 | echo "$as_me:1613: \$? = $ac_status" >&5 | ||
1614 | (exit $ac_status); } && | ||
1615 | { ac_try='test -s conftest.$ac_objext' | ||
1616 | { (eval echo "$as_me:1616: \"$ac_try\"") >&5 | ||
1617 | (eval $ac_try) 2>&5 | ||
1618 | ac_status=$? | ||
1619 | echo "$as_me:1619: \$? = $ac_status" >&5 | ||
1620 | (exit $ac_status); }; }; then | ||
1621 | for ac_declaration in \ | ||
1622 | ''\ | ||
1623 | '#include <stdlib.h>' \ | ||
1624 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1625 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1626 | 'extern "C" void exit (int) throw ();' \ | ||
1627 | 'extern "C" void exit (int);' \ | ||
1628 | 'void exit (int);' | ||
1629 | do | ||
1630 | cat >conftest.$ac_ext <<_ACEOF | ||
1631 | #line 1631 "configure" | ||
1632 | #include "confdefs.h" | ||
1633 | #include <stdlib.h> | ||
1634 | $ac_declaration | ||
1635 | int | ||
1636 | main () | ||
1637 | { | ||
1638 | exit (42); | ||
1639 | ; | ||
1640 | return 0; | ||
1641 | } | ||
1642 | _ACEOF | ||
1643 | rm -f conftest.$ac_objext | ||
1644 | if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5 | ||
1645 | (eval $ac_compile) 2>&5 | ||
1646 | ac_status=$? | ||
1647 | echo "$as_me:1647: \$? = $ac_status" >&5 | ||
1648 | (exit $ac_status); } && | ||
1649 | { ac_try='test -s conftest.$ac_objext' | ||
1650 | { (eval echo "$as_me:1650: \"$ac_try\"") >&5 | ||
1651 | (eval $ac_try) 2>&5 | ||
1652 | ac_status=$? | ||
1653 | echo "$as_me:1653: \$? = $ac_status" >&5 | ||
1654 | (exit $ac_status); }; }; then | ||
1655 | : | ||
1656 | else | ||
1657 | echo "$as_me: failed program was:" >&5 | ||
1658 | cat conftest.$ac_ext >&5 | ||
1659 | continue | ||
1660 | fi | ||
1661 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1662 | cat >conftest.$ac_ext <<_ACEOF | ||
1663 | #line 1663 "configure" | ||
1664 | #include "confdefs.h" | ||
1665 | $ac_declaration | ||
1666 | int | ||
1667 | main () | ||
1668 | { | ||
1669 | exit (42); | ||
1670 | ; | ||
1671 | return 0; | ||
1672 | } | ||
1673 | _ACEOF | ||
1674 | rm -f conftest.$ac_objext | ||
1675 | if { (eval echo "$as_me:1675: \"$ac_compile\"") >&5 | ||
1676 | (eval $ac_compile) 2>&5 | ||
1677 | ac_status=$? | ||
1678 | echo "$as_me:1678: \$? = $ac_status" >&5 | ||
1679 | (exit $ac_status); } && | ||
1680 | { ac_try='test -s conftest.$ac_objext' | ||
1681 | { (eval echo "$as_me:1681: \"$ac_try\"") >&5 | ||
1682 | (eval $ac_try) 2>&5 | ||
1683 | ac_status=$? | ||
1684 | echo "$as_me:1684: \$? = $ac_status" >&5 | ||
1685 | (exit $ac_status); }; }; then | ||
1686 | break | ||
1687 | else | ||
1688 | echo "$as_me: failed program was:" >&5 | ||
1689 | cat conftest.$ac_ext >&5 | ||
1690 | fi | ||
1691 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1692 | done | ||
1693 | rm -f conftest* | ||
1694 | if test -n "$ac_declaration"; then | ||
1695 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1696 | echo $ac_declaration >>confdefs.h | ||
1697 | echo '#endif' >>confdefs.h | ||
1698 | fi | ||
1699 | |||
1700 | else | ||
1701 | echo "$as_me: failed program was:" >&5 | ||
1702 | cat conftest.$ac_ext >&5 | ||
1703 | fi | ||
1704 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1705 | ac_ext=c | ||
1706 | ac_cpp='$CPP $CPPFLAGS' | ||
1707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1710 | |||
1711 | ac_aux_dir= | ||
1712 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
1713 | if test -f $ac_dir/install-sh; then | ||
1714 | ac_aux_dir=$ac_dir | ||
1715 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1716 | break | ||
1717 | elif test -f $ac_dir/install.sh; then | ||
1718 | ac_aux_dir=$ac_dir | ||
1719 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1720 | break | ||
1721 | elif test -f $ac_dir/shtool; then | ||
1722 | ac_aux_dir=$ac_dir | ||
1723 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1724 | break | ||
1725 | fi | ||
1726 | done | ||
1727 | if test -z "$ac_aux_dir"; then | ||
1728 | { { echo "$as_me:1728: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
1729 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
1730 | { (exit 1); exit 1; }; } | ||
1731 | fi | ||
1732 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
1733 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
1734 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
1735 | |||
1736 | # Make sure we can run config.sub. | ||
1737 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
1738 | { { echo "$as_me:1738: error: cannot run $ac_config_sub" >&5 | ||
1739 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
1740 | { (exit 1); exit 1; }; } | ||
1741 | |||
1742 | echo "$as_me:1742: checking build system type" >&5 | ||
1743 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
1744 | if test "${ac_cv_build+set}" = set; then | ||
1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1746 | else | ||
1747 | ac_cv_build_alias=$build_alias | ||
1748 | test -z "$ac_cv_build_alias" && | ||
1749 | ac_cv_build_alias=`$ac_config_guess` | ||
1750 | test -z "$ac_cv_build_alias" && | ||
1751 | { { echo "$as_me:1751: error: cannot guess build type; you must specify one" >&5 | ||
1752 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
1753 | { (exit 1); exit 1; }; } | ||
1754 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
1755 | { { echo "$as_me:1755: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | ||
1756 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | ||
1757 | { (exit 1); exit 1; }; } | ||
1758 | |||
1759 | fi | ||
1760 | echo "$as_me:1760: result: $ac_cv_build" >&5 | ||
1761 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
1762 | build=$ac_cv_build | ||
1763 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1764 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1765 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1766 | |||
1767 | echo "$as_me:1767: checking host system type" >&5 | ||
1768 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
1769 | if test "${ac_cv_host+set}" = set; then | ||
1770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1771 | else | ||
1772 | ac_cv_host_alias=$host_alias | ||
1773 | test -z "$ac_cv_host_alias" && | ||
1774 | ac_cv_host_alias=$ac_cv_build_alias | ||
1775 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
1776 | { { echo "$as_me:1776: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
1777 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
1778 | { (exit 1); exit 1; }; } | ||
1779 | |||
1780 | fi | ||
1781 | echo "$as_me:1781: result: $ac_cv_host" >&5 | ||
1782 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
1783 | host=$ac_cv_host | ||
1784 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1785 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1786 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1787 | |||
1788 | echo "$as_me:1788: checking whether byte ordering is bigendian" >&5 | ||
1789 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
1790 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1792 | else | ||
1793 | ac_cv_c_bigendian=unknown | ||
1794 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
1795 | cat >conftest.$ac_ext <<_ACEOF | ||
1796 | #line 1796 "configure" | ||
1797 | #include "confdefs.h" | ||
1798 | #include <sys/types.h> | ||
1799 | #include <sys/param.h> | ||
1800 | |||
1801 | int | ||
1802 | main () | ||
1803 | { | ||
1804 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
1805 | bogus endian macros | ||
1806 | #endif | ||
1807 | |||
1808 | ; | ||
1809 | return 0; | ||
1810 | } | ||
1811 | _ACEOF | ||
1812 | rm -f conftest.$ac_objext | ||
1813 | if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5 | ||
1814 | (eval $ac_compile) 2>&5 | ||
1815 | ac_status=$? | ||
1816 | echo "$as_me:1816: \$? = $ac_status" >&5 | ||
1817 | (exit $ac_status); } && | ||
1818 | { ac_try='test -s conftest.$ac_objext' | ||
1819 | { (eval echo "$as_me:1819: \"$ac_try\"") >&5 | ||
1820 | (eval $ac_try) 2>&5 | ||
1821 | ac_status=$? | ||
1822 | echo "$as_me:1822: \$? = $ac_status" >&5 | ||
1823 | (exit $ac_status); }; }; then | ||
1824 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
1825 | cat >conftest.$ac_ext <<_ACEOF | ||
1826 | #line 1826 "configure" | ||
1827 | #include "confdefs.h" | ||
1828 | #include <sys/types.h> | ||
1829 | #include <sys/param.h> | ||
1830 | |||
1831 | int | ||
1832 | main () | ||
1833 | { | ||
1834 | #if BYTE_ORDER != BIG_ENDIAN | ||
1835 | not big endian | ||
1836 | #endif | ||
1837 | |||
1838 | ; | ||
1839 | return 0; | ||
1840 | } | ||
1841 | _ACEOF | ||
1842 | rm -f conftest.$ac_objext | ||
1843 | if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5 | ||
1844 | (eval $ac_compile) 2>&5 | ||
1845 | ac_status=$? | ||
1846 | echo "$as_me:1846: \$? = $ac_status" >&5 | ||
1847 | (exit $ac_status); } && | ||
1848 | { ac_try='test -s conftest.$ac_objext' | ||
1849 | { (eval echo "$as_me:1849: \"$ac_try\"") >&5 | ||
1850 | (eval $ac_try) 2>&5 | ||
1851 | ac_status=$? | ||
1852 | echo "$as_me:1852: \$? = $ac_status" >&5 | ||
1853 | (exit $ac_status); }; }; then | ||
1854 | ac_cv_c_bigendian=yes | ||
1855 | else | ||
1856 | echo "$as_me: failed program was:" >&5 | ||
1857 | cat conftest.$ac_ext >&5 | ||
1858 | ac_cv_c_bigendian=no | ||
1859 | fi | ||
1860 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1861 | else | ||
1862 | echo "$as_me: failed program was:" >&5 | ||
1863 | cat conftest.$ac_ext >&5 | ||
1864 | fi | ||
1865 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1866 | if test $ac_cv_c_bigendian = unknown; then | ||
1867 | if test "$cross_compiling" = yes; then | ||
1868 | { { echo "$as_me:1868: error: cannot run test program while cross compiling" >&5 | ||
1869 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
1870 | { (exit 1); exit 1; }; } | ||
1871 | else | ||
1872 | cat >conftest.$ac_ext <<_ACEOF | ||
1873 | #line 1873 "configure" | ||
1874 | #include "confdefs.h" | ||
1875 | int | ||
1876 | main () | ||
1877 | { | ||
1878 | /* Are we little or big endian? From Harbison&Steele. */ | ||
1879 | union | ||
1880 | { | ||
1881 | long l; | ||
1882 | char c[sizeof (long)]; | ||
1883 | } u; | ||
1884 | u.l = 1; | ||
1885 | exit (u.c[sizeof (long) - 1] == 1); | ||
1886 | } | ||
1887 | _ACEOF | ||
1888 | rm -f conftest$ac_exeext | ||
1889 | if { (eval echo "$as_me:1889: \"$ac_link\"") >&5 | ||
1890 | (eval $ac_link) 2>&5 | ||
1891 | ac_status=$? | ||
1892 | echo "$as_me:1892: \$? = $ac_status" >&5 | ||
1893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
1894 | { (eval echo "$as_me:1894: \"$ac_try\"") >&5 | ||
1895 | (eval $ac_try) 2>&5 | ||
1896 | ac_status=$? | ||
1897 | echo "$as_me:1897: \$? = $ac_status" >&5 | ||
1898 | (exit $ac_status); }; }; then | ||
1899 | ac_cv_c_bigendian=no | ||
1900 | else | ||
1901 | echo "$as_me: program exited with status $ac_status" >&5 | ||
1902 | echo "$as_me: failed program was:" >&5 | ||
1903 | cat conftest.$ac_ext >&5 | ||
1904 | ac_cv_c_bigendian=yes | ||
1905 | fi | ||
1906 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
1907 | fi | ||
1908 | fi | ||
1909 | fi | ||
1910 | echo "$as_me:1910: result: $ac_cv_c_bigendian" >&5 | ||
1911 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
1912 | if test $ac_cv_c_bigendian = yes; then | ||
1913 | |||
1914 | cat >>confdefs.h <<\EOF | ||
1915 | #define WORDS_BIGENDIAN 1 | ||
1916 | EOF | ||
1917 | |||
1918 | fi | ||
1919 | |||
1920 | # Checks for programs. | ||
1921 | for ac_prog in mawk gawk nawk awk | ||
1922 | do | ||
1923 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1924 | set dummy $ac_prog; ac_word=$2 | ||
1925 | echo "$as_me:1925: checking for $ac_word" >&5 | ||
1926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1927 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1929 | else | ||
1930 | if test -n "$AWK"; then | ||
1931 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1932 | else | ||
1933 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1934 | ac_dummy="$PATH" | ||
1935 | for ac_dir in $ac_dummy; do | ||
1936 | IFS=$ac_save_IFS | ||
1937 | test -z "$ac_dir" && ac_dir=. | ||
1938 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1939 | ac_cv_prog_AWK="$ac_prog" | ||
1940 | echo "$as_me:1940: found $ac_dir/$ac_word" >&5 | ||
1941 | break | ||
1942 | done | ||
1943 | |||
1944 | fi | ||
1945 | fi | ||
1946 | AWK=$ac_cv_prog_AWK | ||
1947 | if test -n "$AWK"; then | ||
1948 | echo "$as_me:1948: result: $AWK" >&5 | ||
1949 | echo "${ECHO_T}$AWK" >&6 | ||
1950 | else | ||
1951 | echo "$as_me:1951: result: no" >&5 | ||
1952 | echo "${ECHO_T}no" >&6 | ||
1953 | fi | ||
1954 | |||
1955 | test -n "$AWK" && break | ||
1956 | done | ||
1957 | |||
1958 | ac_ext=c | ||
1959 | ac_cpp='$CPP $CPPFLAGS' | ||
1960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1963 | echo "$as_me:1963: checking how to run the C preprocessor" >&5 | ||
1964 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
1965 | # On Suns, sometimes $CPP names a directory. | ||
1966 | if test -n "$CPP" && test -d "$CPP"; then | ||
1967 | CPP= | ||
1968 | fi | ||
1969 | if test -z "$CPP"; then | ||
1970 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1972 | else | ||
1973 | # Double quotes because CPP needs to be expanded | ||
1974 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
1975 | do | ||
1976 | ac_preproc_ok=false | ||
1977 | for ac_c_preproc_warn_flag in '' yes | ||
1978 | do | ||
1979 | # Use a header file that comes with gcc, so configuring glibc | ||
1980 | # with a fresh cross-compiler works. | ||
1981 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
1982 | # not just through cpp. "Syntax error" is here to catch this case. | ||
1983 | cat >conftest.$ac_ext <<_ACEOF | ||
1984 | #line 1984 "configure" | ||
1985 | #include "confdefs.h" | ||
1986 | #include <assert.h> | ||
1987 | Syntax error | ||
1988 | _ACEOF | ||
1989 | if { (eval echo "$as_me:1989: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
1990 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
1991 | ac_status=$? | ||
1992 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
1993 | rm -f conftest.er1 | ||
1994 | cat conftest.err >&5 | ||
1995 | echo "$as_me:1995: \$? = $ac_status" >&5 | ||
1996 | (exit $ac_status); } >/dev/null; then | ||
1997 | if test -s conftest.err; then | ||
1998 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
1999 | else | ||
2000 | ac_cpp_err= | ||
2001 | fi | ||
2002 | else | ||
2003 | ac_cpp_err=yes | ||
2004 | fi | ||
2005 | if test -z "$ac_cpp_err"; then | ||
2006 | : | ||
2007 | else | ||
2008 | echo "$as_me: failed program was:" >&5 | ||
2009 | cat conftest.$ac_ext >&5 | ||
2010 | # Broken: fails on valid input. | ||
2011 | continue | ||
2012 | fi | ||
2013 | rm -f conftest.err conftest.$ac_ext | ||
2014 | |||
2015 | # OK, works on sane cases. Now check whether non-existent headers | ||
2016 | # can be detected and how. | ||
2017 | cat >conftest.$ac_ext <<_ACEOF | ||
2018 | #line 2018 "configure" | ||
2019 | #include "confdefs.h" | ||
2020 | #include <ac_nonexistent.h> | ||
2021 | _ACEOF | ||
2022 | if { (eval echo "$as_me:2022: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2024 | ac_status=$? | ||
2025 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2026 | rm -f conftest.er1 | ||
2027 | cat conftest.err >&5 | ||
2028 | echo "$as_me:2028: \$? = $ac_status" >&5 | ||
2029 | (exit $ac_status); } >/dev/null; then | ||
2030 | if test -s conftest.err; then | ||
2031 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2032 | else | ||
2033 | ac_cpp_err= | ||
2034 | fi | ||
2035 | else | ||
2036 | ac_cpp_err=yes | ||
2037 | fi | ||
2038 | if test -z "$ac_cpp_err"; then | ||
2039 | # Broken: success on invalid input. | ||
2040 | continue | ||
2041 | else | ||
2042 | echo "$as_me: failed program was:" >&5 | ||
2043 | cat conftest.$ac_ext >&5 | ||
2044 | # Passes both tests. | ||
2045 | ac_preproc_ok=: | ||
2046 | break | ||
2047 | fi | ||
2048 | rm -f conftest.err conftest.$ac_ext | ||
2049 | |||
2050 | done | ||
2051 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2052 | rm -f conftest.err conftest.$ac_ext | ||
2053 | if $ac_preproc_ok; then | ||
2054 | break | ||
2055 | fi | ||
2056 | |||
2057 | done | ||
2058 | ac_cv_prog_CPP=$CPP | ||
2059 | |||
2060 | fi | ||
2061 | CPP=$ac_cv_prog_CPP | ||
2062 | else | ||
2063 | ac_cv_prog_CPP=$CPP | ||
2064 | fi | ||
2065 | echo "$as_me:2065: result: $CPP" >&5 | ||
2066 | echo "${ECHO_T}$CPP" >&6 | ||
2067 | ac_preproc_ok=false | ||
2068 | for ac_c_preproc_warn_flag in '' yes | ||
2069 | do | ||
2070 | # Use a header file that comes with gcc, so configuring glibc | ||
2071 | # with a fresh cross-compiler works. | ||
2072 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2073 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2074 | cat >conftest.$ac_ext <<_ACEOF | ||
2075 | #line 2075 "configure" | ||
2076 | #include "confdefs.h" | ||
2077 | #include <assert.h> | ||
2078 | Syntax error | ||
2079 | _ACEOF | ||
2080 | if { (eval echo "$as_me:2080: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2082 | ac_status=$? | ||
2083 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2084 | rm -f conftest.er1 | ||
2085 | cat conftest.err >&5 | ||
2086 | echo "$as_me:2086: \$? = $ac_status" >&5 | ||
2087 | (exit $ac_status); } >/dev/null; then | ||
2088 | if test -s conftest.err; then | ||
2089 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2090 | else | ||
2091 | ac_cpp_err= | ||
2092 | fi | ||
2093 | else | ||
2094 | ac_cpp_err=yes | ||
2095 | fi | ||
2096 | if test -z "$ac_cpp_err"; then | ||
2097 | : | ||
2098 | else | ||
2099 | echo "$as_me: failed program was:" >&5 | ||
2100 | cat conftest.$ac_ext >&5 | ||
2101 | # Broken: fails on valid input. | ||
2102 | continue | ||
2103 | fi | ||
2104 | rm -f conftest.err conftest.$ac_ext | ||
2105 | |||
2106 | # OK, works on sane cases. Now check whether non-existent headers | ||
2107 | # can be detected and how. | ||
2108 | cat >conftest.$ac_ext <<_ACEOF | ||
2109 | #line 2109 "configure" | ||
2110 | #include "confdefs.h" | ||
2111 | #include <ac_nonexistent.h> | ||
2112 | _ACEOF | ||
2113 | if { (eval echo "$as_me:2113: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2115 | ac_status=$? | ||
2116 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2117 | rm -f conftest.er1 | ||
2118 | cat conftest.err >&5 | ||
2119 | echo "$as_me:2119: \$? = $ac_status" >&5 | ||
2120 | (exit $ac_status); } >/dev/null; then | ||
2121 | if test -s conftest.err; then | ||
2122 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2123 | else | ||
2124 | ac_cpp_err= | ||
2125 | fi | ||
2126 | else | ||
2127 | ac_cpp_err=yes | ||
2128 | fi | ||
2129 | if test -z "$ac_cpp_err"; then | ||
2130 | # Broken: success on invalid input. | ||
2131 | continue | ||
2132 | else | ||
2133 | echo "$as_me: failed program was:" >&5 | ||
2134 | cat conftest.$ac_ext >&5 | ||
2135 | # Passes both tests. | ||
2136 | ac_preproc_ok=: | ||
2137 | break | ||
2138 | fi | ||
2139 | rm -f conftest.err conftest.$ac_ext | ||
2140 | |||
2141 | done | ||
2142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2143 | rm -f conftest.err conftest.$ac_ext | ||
2144 | if $ac_preproc_ok; then | ||
2145 | : | ||
2146 | else | ||
2147 | { { echo "$as_me:2147: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2148 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2149 | { (exit 1); exit 1; }; } | ||
2150 | fi | ||
2151 | |||
2152 | ac_ext=c | ||
2153 | ac_cpp='$CPP $CPPFLAGS' | ||
2154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2157 | |||
2158 | if test -n "$ac_tool_prefix"; then | ||
2159 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2160 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2161 | echo "$as_me:2161: checking for $ac_word" >&5 | ||
2162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2163 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2165 | else | ||
2166 | if test -n "$RANLIB"; then | ||
2167 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2168 | else | ||
2169 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2170 | ac_dummy="$PATH" | ||
2171 | for ac_dir in $ac_dummy; do | ||
2172 | IFS=$ac_save_IFS | ||
2173 | test -z "$ac_dir" && ac_dir=. | ||
2174 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2175 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2176 | echo "$as_me:2176: found $ac_dir/$ac_word" >&5 | ||
2177 | break | ||
2178 | done | ||
2179 | |||
2180 | fi | ||
2181 | fi | ||
2182 | RANLIB=$ac_cv_prog_RANLIB | ||
2183 | if test -n "$RANLIB"; then | ||
2184 | echo "$as_me:2184: result: $RANLIB" >&5 | ||
2185 | echo "${ECHO_T}$RANLIB" >&6 | ||
2186 | else | ||
2187 | echo "$as_me:2187: result: no" >&5 | ||
2188 | echo "${ECHO_T}no" >&6 | ||
2189 | fi | ||
2190 | |||
2191 | fi | ||
2192 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2193 | ac_ct_RANLIB=$RANLIB | ||
2194 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2195 | set dummy ranlib; ac_word=$2 | ||
2196 | echo "$as_me:2196: checking for $ac_word" >&5 | ||
2197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2198 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2200 | else | ||
2201 | if test -n "$ac_ct_RANLIB"; then | ||
2202 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2203 | else | ||
2204 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2205 | ac_dummy="$PATH" | ||
2206 | for ac_dir in $ac_dummy; do | ||
2207 | IFS=$ac_save_IFS | ||
2208 | test -z "$ac_dir" && ac_dir=. | ||
2209 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2210 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2211 | echo "$as_me:2211: found $ac_dir/$ac_word" >&5 | ||
2212 | break | ||
2213 | done | ||
2214 | |||
2215 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2216 | fi | ||
2217 | fi | ||
2218 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2219 | if test -n "$ac_ct_RANLIB"; then | ||
2220 | echo "$as_me:2220: result: $ac_ct_RANLIB" >&5 | ||
2221 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2222 | else | ||
2223 | echo "$as_me:2223: result: no" >&5 | ||
2224 | echo "${ECHO_T}no" >&6 | ||
2225 | fi | ||
2226 | |||
2227 | RANLIB=$ac_ct_RANLIB | ||
2228 | else | ||
2229 | RANLIB="$ac_cv_prog_RANLIB" | ||
2230 | fi | ||
2231 | |||
2232 | # Find a good install program. We prefer a C program (faster), | ||
2233 | # so one script is as good as another. But avoid the broken or | ||
2234 | # incompatible versions: | ||
2235 | # SysV /etc/install, /usr/sbin/install | ||
2236 | # SunOS /usr/etc/install | ||
2237 | # IRIX /sbin/install | ||
2238 | # AIX /bin/install | ||
2239 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2240 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2241 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2242 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2243 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2244 | echo "$as_me:2244: checking for a BSD compatible install" >&5 | ||
2245 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | ||
2246 | if test -z "$INSTALL"; then | ||
2247 | if test "${ac_cv_path_install+set}" = set; then | ||
2248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2249 | else | ||
2250 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2251 | for ac_dir in $PATH; do | ||
2252 | IFS=$ac_save_IFS | ||
2253 | # Account for people who put trailing slashes in PATH elements. | ||
2254 | case $ac_dir/ in | ||
2255 | / | ./ | .// | /cC/* \ | ||
2256 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | ||
2257 | | /usr/ucb/* ) ;; | ||
2258 | *) | ||
2259 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2260 | # Don't use installbsd from OSF since it installs stuff as root | ||
2261 | # by default. | ||
2262 | for ac_prog in ginstall scoinst install; do | ||
2263 | if $as_executable_p "$ac_dir/$ac_prog"; then | ||
2264 | if test $ac_prog = install && | ||
2265 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2266 | # AIX install. It has an incompatible calling convention. | ||
2267 | : | ||
2268 | elif test $ac_prog = install && | ||
2269 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2270 | # program-specific install script used by HP pwplus--don't use. | ||
2271 | : | ||
2272 | else | ||
2273 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
2274 | break 2 | ||
2275 | fi | ||
2276 | fi | ||
2277 | done | ||
2278 | ;; | ||
2279 | esac | ||
2280 | done | ||
2281 | |||
2282 | fi | ||
2283 | if test "${ac_cv_path_install+set}" = set; then | ||
2284 | INSTALL=$ac_cv_path_install | ||
2285 | else | ||
2286 | # As a last resort, use the slow shell script. We don't cache a | ||
2287 | # path for INSTALL within a source directory, because that will | ||
2288 | # break other packages using the cache if that directory is | ||
2289 | # removed, or if the path is relative. | ||
2290 | INSTALL=$ac_install_sh | ||
2291 | fi | ||
2292 | fi | ||
2293 | echo "$as_me:2293: result: $INSTALL" >&5 | ||
2294 | echo "${ECHO_T}$INSTALL" >&6 | ||
2295 | |||
2296 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2297 | # It thinks the first close brace ends the variable substitution. | ||
2298 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2299 | |||
2300 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2301 | |||
2302 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2303 | |||
2304 | # Extract the first word of "ar", so it can be a program name with args. | ||
2305 | set dummy ar; ac_word=$2 | ||
2306 | echo "$as_me:2306: checking for $ac_word" >&5 | ||
2307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2308 | if test "${ac_cv_path_AR+set}" = set; then | ||
2309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2310 | else | ||
2311 | case $AR in | ||
2312 | [\\/]* | ?:[\\/]*) | ||
2313 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2314 | ;; | ||
2315 | *) | ||
2316 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2317 | ac_dummy="$PATH" | ||
2318 | for ac_dir in $ac_dummy; do | ||
2319 | IFS=$ac_save_IFS | ||
2320 | test -z "$ac_dir" && ac_dir=. | ||
2321 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2322 | ac_cv_path_AR="$ac_dir/$ac_word" | ||
2323 | echo "$as_me:2323: found $ac_dir/$ac_word" >&5 | ||
2324 | break | ||
2325 | fi | ||
2326 | done | ||
2327 | |||
2328 | ;; | ||
2329 | esac | ||
2330 | fi | ||
2331 | AR=$ac_cv_path_AR | ||
2332 | |||
2333 | if test -n "$AR"; then | ||
2334 | echo "$as_me:2334: result: $AR" >&5 | ||
2335 | echo "${ECHO_T}$AR" >&6 | ||
2336 | else | ||
2337 | echo "$as_me:2337: result: no" >&5 | ||
2338 | echo "${ECHO_T}no" >&6 | ||
2339 | fi | ||
2340 | |||
2341 | for ac_prog in perl5 perl | ||
2342 | do | ||
2343 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2344 | set dummy $ac_prog; ac_word=$2 | ||
2345 | echo "$as_me:2345: checking for $ac_word" >&5 | ||
2346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2347 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2349 | else | ||
2350 | case $PERL in | ||
2351 | [\\/]* | ?:[\\/]*) | ||
2352 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2353 | ;; | ||
2354 | *) | ||
2355 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2356 | ac_dummy="$PATH" | ||
2357 | for ac_dir in $ac_dummy; do | ||
2358 | IFS=$ac_save_IFS | ||
2359 | test -z "$ac_dir" && ac_dir=. | ||
2360 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2361 | ac_cv_path_PERL="$ac_dir/$ac_word" | ||
2362 | echo "$as_me:2362: found $ac_dir/$ac_word" >&5 | ||
2363 | break | ||
2364 | fi | ||
2365 | done | ||
2366 | |||
2367 | ;; | ||
2368 | esac | ||
2369 | fi | ||
2370 | PERL=$ac_cv_path_PERL | ||
2371 | |||
2372 | if test -n "$PERL"; then | ||
2373 | echo "$as_me:2373: result: $PERL" >&5 | ||
2374 | echo "${ECHO_T}$PERL" >&6 | ||
2375 | else | ||
2376 | echo "$as_me:2376: result: no" >&5 | ||
2377 | echo "${ECHO_T}no" >&6 | ||
2378 | fi | ||
2379 | |||
2380 | test -n "$PERL" && break | ||
2381 | done | ||
2382 | |||
2383 | # Extract the first word of "sed", so it can be a program name with args. | ||
2384 | set dummy sed; ac_word=$2 | ||
2385 | echo "$as_me:2385: checking for $ac_word" >&5 | ||
2386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2387 | if test "${ac_cv_path_SED+set}" = set; then | ||
2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2389 | else | ||
2390 | case $SED in | ||
2391 | [\\/]* | ?:[\\/]*) | ||
2392 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2393 | ;; | ||
2394 | *) | ||
2395 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2396 | ac_dummy="$PATH" | ||
2397 | for ac_dir in $ac_dummy; do | ||
2398 | IFS=$ac_save_IFS | ||
2399 | test -z "$ac_dir" && ac_dir=. | ||
2400 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2401 | ac_cv_path_SED="$ac_dir/$ac_word" | ||
2402 | echo "$as_me:2402: found $ac_dir/$ac_word" >&5 | ||
2403 | break | ||
2404 | fi | ||
2405 | done | ||
2406 | |||
2407 | ;; | ||
2408 | esac | ||
2409 | fi | ||
2410 | SED=$ac_cv_path_SED | ||
2411 | |||
2412 | if test -n "$SED"; then | ||
2413 | echo "$as_me:2413: result: $SED" >&5 | ||
2414 | echo "${ECHO_T}$SED" >&6 | ||
2415 | else | ||
2416 | echo "$as_me:2416: result: no" >&5 | ||
2417 | echo "${ECHO_T}no" >&6 | ||
2418 | fi | ||
2419 | |||
2420 | # Extract the first word of "ent", so it can be a program name with args. | ||
2421 | set dummy ent; ac_word=$2 | ||
2422 | echo "$as_me:2422: checking for $ac_word" >&5 | ||
2423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2424 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2426 | else | ||
2427 | case $ENT in | ||
2428 | [\\/]* | ?:[\\/]*) | ||
2429 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2430 | ;; | ||
2431 | *) | ||
2432 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2433 | ac_dummy="$PATH" | ||
2434 | for ac_dir in $ac_dummy; do | ||
2435 | IFS=$ac_save_IFS | ||
2436 | test -z "$ac_dir" && ac_dir=. | ||
2437 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2438 | ac_cv_path_ENT="$ac_dir/$ac_word" | ||
2439 | echo "$as_me:2439: found $ac_dir/$ac_word" >&5 | ||
2440 | break | ||
2441 | fi | ||
2442 | done | ||
2443 | |||
2444 | ;; | ||
2445 | esac | ||
2446 | fi | ||
2447 | ENT=$ac_cv_path_ENT | ||
2448 | |||
2449 | if test -n "$ENT"; then | ||
2450 | echo "$as_me:2450: result: $ENT" >&5 | ||
2451 | echo "${ECHO_T}$ENT" >&6 | ||
2452 | else | ||
2453 | echo "$as_me:2453: result: no" >&5 | ||
2454 | echo "${ECHO_T}no" >&6 | ||
2455 | fi | ||
2456 | |||
2457 | # Extract the first word of "bash", so it can be a program name with args. | ||
2458 | set dummy bash; ac_word=$2 | ||
2459 | echo "$as_me:2459: checking for $ac_word" >&5 | ||
2460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2461 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2463 | else | ||
2464 | case $TEST_MINUS_S_SH in | ||
2465 | [\\/]* | ?:[\\/]*) | ||
2466 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2467 | ;; | ||
2468 | *) | ||
2469 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2470 | ac_dummy="$PATH" | ||
2471 | for ac_dir in $ac_dummy; do | ||
2472 | IFS=$ac_save_IFS | ||
2473 | test -z "$ac_dir" && ac_dir=. | ||
2474 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2475 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2476 | echo "$as_me:2476: found $ac_dir/$ac_word" >&5 | ||
2477 | break | ||
2478 | fi | ||
2479 | done | ||
2480 | |||
2481 | ;; | ||
2482 | esac | ||
2483 | fi | ||
2484 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2485 | |||
2486 | if test -n "$TEST_MINUS_S_SH"; then | ||
2487 | echo "$as_me:2487: result: $TEST_MINUS_S_SH" >&5 | ||
2488 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2489 | else | ||
2490 | echo "$as_me:2490: result: no" >&5 | ||
2491 | echo "${ECHO_T}no" >&6 | ||
2492 | fi | ||
2493 | |||
2494 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2495 | set dummy ksh; ac_word=$2 | ||
2496 | echo "$as_me:2496: checking for $ac_word" >&5 | ||
2497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2498 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2500 | else | ||
2501 | case $TEST_MINUS_S_SH in | ||
2502 | [\\/]* | ?:[\\/]*) | ||
2503 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2504 | ;; | ||
2505 | *) | ||
2506 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2507 | ac_dummy="$PATH" | ||
2508 | for ac_dir in $ac_dummy; do | ||
2509 | IFS=$ac_save_IFS | ||
2510 | test -z "$ac_dir" && ac_dir=. | ||
2511 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2512 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2513 | echo "$as_me:2513: found $ac_dir/$ac_word" >&5 | ||
2514 | break | ||
2515 | fi | ||
2516 | done | ||
2517 | |||
2518 | ;; | ||
2519 | esac | ||
2520 | fi | ||
2521 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2522 | |||
2523 | if test -n "$TEST_MINUS_S_SH"; then | ||
2524 | echo "$as_me:2524: result: $TEST_MINUS_S_SH" >&5 | ||
2525 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2526 | else | ||
2527 | echo "$as_me:2527: result: no" >&5 | ||
2528 | echo "${ECHO_T}no" >&6 | ||
2529 | fi | ||
2530 | |||
2531 | # Extract the first word of "sh", so it can be a program name with args. | ||
2532 | set dummy sh; ac_word=$2 | ||
2533 | echo "$as_me:2533: checking for $ac_word" >&5 | ||
2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2535 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2537 | else | ||
2538 | case $TEST_MINUS_S_SH in | ||
2539 | [\\/]* | ?:[\\/]*) | ||
2540 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2541 | ;; | ||
2542 | *) | ||
2543 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2544 | ac_dummy="$PATH" | ||
2545 | for ac_dir in $ac_dummy; do | ||
2546 | IFS=$ac_save_IFS | ||
2547 | test -z "$ac_dir" && ac_dir=. | ||
2548 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2549 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2550 | echo "$as_me:2550: found $ac_dir/$ac_word" >&5 | ||
2551 | break | ||
2552 | fi | ||
2553 | done | ||
2554 | |||
2555 | ;; | ||
2556 | esac | ||
2557 | fi | ||
2558 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2559 | |||
2560 | if test -n "$TEST_MINUS_S_SH"; then | ||
2561 | echo "$as_me:2561: result: $TEST_MINUS_S_SH" >&5 | ||
2562 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2563 | else | ||
2564 | echo "$as_me:2564: result: no" >&5 | ||
2565 | echo "${ECHO_T}no" >&6 | ||
2566 | fi | ||
2567 | |||
2568 | # Extract the first word of "sh", so it can be a program name with args. | ||
2569 | set dummy sh; ac_word=$2 | ||
2570 | echo "$as_me:2570: checking for $ac_word" >&5 | ||
2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2572 | if test "${ac_cv_path_SH+set}" = set; then | ||
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2574 | else | ||
2575 | case $SH in | ||
2576 | [\\/]* | ?:[\\/]*) | ||
2577 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2578 | ;; | ||
2579 | *) | ||
2580 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2581 | ac_dummy="$PATH" | ||
2582 | for ac_dir in $ac_dummy; do | ||
2583 | IFS=$ac_save_IFS | ||
2584 | test -z "$ac_dir" && ac_dir=. | ||
2585 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2586 | ac_cv_path_SH="$ac_dir/$ac_word" | ||
2587 | echo "$as_me:2587: found $ac_dir/$ac_word" >&5 | ||
2588 | break | ||
2589 | fi | ||
2590 | done | ||
2591 | |||
2592 | ;; | ||
2593 | esac | ||
2594 | fi | ||
2595 | SH=$ac_cv_path_SH | ||
2596 | |||
2597 | if test -n "$SH"; then | ||
2598 | echo "$as_me:2598: result: $SH" >&5 | ||
2599 | echo "${ECHO_T}$SH" >&6 | ||
2600 | else | ||
2601 | echo "$as_me:2601: result: no" >&5 | ||
2602 | echo "${ECHO_T}no" >&6 | ||
2603 | fi | ||
2604 | |||
2605 | # System features | ||
2606 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2607 | if test "${enable_largefile+set}" = set; then | ||
2608 | enableval="$enable_largefile" | ||
2609 | |||
2610 | fi; | ||
2611 | if test "$enable_largefile" != no; then | ||
2612 | |||
2613 | echo "$as_me:2613: checking for special C compiler options needed for large files" >&5 | ||
2614 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2615 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2617 | else | ||
2618 | ac_cv_sys_largefile_CC=no | ||
2619 | if test "$GCC" != yes; then | ||
2620 | ac_save_CC=$CC | ||
2621 | while :; do | ||
2622 | # IRIX 6.2 and later do not support large files by default, | ||
2623 | # so use the C compiler's -n32 option if that helps. | ||
2624 | cat >conftest.$ac_ext <<_ACEOF | ||
2625 | #line 2625 "configure" | ||
2626 | #include "confdefs.h" | ||
2627 | #include <sys/types.h> | ||
2628 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2629 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2630 | since some C++ compilers masquerading as C compilers | ||
2631 | incorrectly reject 9223372036854775807. */ | ||
2632 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2633 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2634 | && LARGE_OFF_T % 2147483647 == 1) | ||
2635 | ? 1 : -1]; | ||
2636 | int | ||
2637 | main () | ||
2638 | { | ||
2639 | |||
2640 | ; | ||
2641 | return 0; | ||
2642 | } | ||
2643 | _ACEOF | ||
2644 | rm -f conftest.$ac_objext | ||
2645 | if { (eval echo "$as_me:2645: \"$ac_compile\"") >&5 | ||
2646 | (eval $ac_compile) 2>&5 | ||
2647 | ac_status=$? | ||
2648 | echo "$as_me:2648: \$? = $ac_status" >&5 | ||
2649 | (exit $ac_status); } && | ||
2650 | { ac_try='test -s conftest.$ac_objext' | ||
2651 | { (eval echo "$as_me:2651: \"$ac_try\"") >&5 | ||
2652 | (eval $ac_try) 2>&5 | ||
2653 | ac_status=$? | ||
2654 | echo "$as_me:2654: \$? = $ac_status" >&5 | ||
2655 | (exit $ac_status); }; }; then | ||
2656 | break | ||
2657 | else | ||
2658 | echo "$as_me: failed program was:" >&5 | ||
2659 | cat conftest.$ac_ext >&5 | ||
2660 | fi | ||
2661 | rm -f conftest.$ac_objext | ||
2662 | CC="$CC -n32" | ||
2663 | rm -f conftest.$ac_objext | ||
2664 | if { (eval echo "$as_me:2664: \"$ac_compile\"") >&5 | ||
2665 | (eval $ac_compile) 2>&5 | ||
2666 | ac_status=$? | ||
2667 | echo "$as_me:2667: \$? = $ac_status" >&5 | ||
2668 | (exit $ac_status); } && | ||
2669 | { ac_try='test -s conftest.$ac_objext' | ||
2670 | { (eval echo "$as_me:2670: \"$ac_try\"") >&5 | ||
2671 | (eval $ac_try) 2>&5 | ||
2672 | ac_status=$? | ||
2673 | echo "$as_me:2673: \$? = $ac_status" >&5 | ||
2674 | (exit $ac_status); }; }; then | ||
2675 | ac_cv_sys_largefile_CC=' -n32'; break | ||
2676 | else | ||
2677 | echo "$as_me: failed program was:" >&5 | ||
2678 | cat conftest.$ac_ext >&5 | ||
2679 | fi | ||
2680 | rm -f conftest.$ac_objext | ||
2681 | break | ||
2682 | done | ||
2683 | CC=$ac_save_CC | ||
2684 | rm -f conftest.$ac_ext | ||
2685 | fi | ||
2686 | fi | ||
2687 | echo "$as_me:2687: result: $ac_cv_sys_largefile_CC" >&5 | ||
2688 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
2689 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
2690 | CC=$CC$ac_cv_sys_largefile_CC | ||
2691 | fi | ||
2692 | |||
2693 | echo "$as_me:2693: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
2694 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
2695 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2697 | else | ||
2698 | while :; do | ||
2699 | ac_cv_sys_file_offset_bits=no | ||
2700 | cat >conftest.$ac_ext <<_ACEOF | ||
2701 | #line 2701 "configure" | ||
2702 | #include "confdefs.h" | ||
2703 | #include <sys/types.h> | ||
2704 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2705 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2706 | since some C++ compilers masquerading as C compilers | ||
2707 | incorrectly reject 9223372036854775807. */ | ||
2708 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2709 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2710 | && LARGE_OFF_T % 2147483647 == 1) | ||
2711 | ? 1 : -1]; | ||
2712 | int | ||
2713 | main () | ||
2714 | { | ||
2715 | |||
2716 | ; | ||
2717 | return 0; | ||
2718 | } | ||
2719 | _ACEOF | ||
2720 | rm -f conftest.$ac_objext | ||
2721 | if { (eval echo "$as_me:2721: \"$ac_compile\"") >&5 | ||
2722 | (eval $ac_compile) 2>&5 | ||
2723 | ac_status=$? | ||
2724 | echo "$as_me:2724: \$? = $ac_status" >&5 | ||
2725 | (exit $ac_status); } && | ||
2726 | { ac_try='test -s conftest.$ac_objext' | ||
2727 | { (eval echo "$as_me:2727: \"$ac_try\"") >&5 | ||
2728 | (eval $ac_try) 2>&5 | ||
2729 | ac_status=$? | ||
2730 | echo "$as_me:2730: \$? = $ac_status" >&5 | ||
2731 | (exit $ac_status); }; }; then | ||
2732 | break | ||
2733 | else | ||
2734 | echo "$as_me: failed program was:" >&5 | ||
2735 | cat conftest.$ac_ext >&5 | ||
2736 | fi | ||
2737 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2738 | cat >conftest.$ac_ext <<_ACEOF | ||
2739 | #line 2739 "configure" | ||
2740 | #include "confdefs.h" | ||
2741 | #define _FILE_OFFSET_BITS 64 | ||
2742 | #include <sys/types.h> | ||
2743 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2744 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2745 | since some C++ compilers masquerading as C compilers | ||
2746 | incorrectly reject 9223372036854775807. */ | ||
2747 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2748 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2749 | && LARGE_OFF_T % 2147483647 == 1) | ||
2750 | ? 1 : -1]; | ||
2751 | int | ||
2752 | main () | ||
2753 | { | ||
2754 | |||
2755 | ; | ||
2756 | return 0; | ||
2757 | } | ||
2758 | _ACEOF | ||
2759 | rm -f conftest.$ac_objext | ||
2760 | if { (eval echo "$as_me:2760: \"$ac_compile\"") >&5 | ||
2761 | (eval $ac_compile) 2>&5 | ||
2762 | ac_status=$? | ||
2763 | echo "$as_me:2763: \$? = $ac_status" >&5 | ||
2764 | (exit $ac_status); } && | ||
2765 | { ac_try='test -s conftest.$ac_objext' | ||
2766 | { (eval echo "$as_me:2766: \"$ac_try\"") >&5 | ||
2767 | (eval $ac_try) 2>&5 | ||
2768 | ac_status=$? | ||
2769 | echo "$as_me:2769: \$? = $ac_status" >&5 | ||
2770 | (exit $ac_status); }; }; then | ||
2771 | ac_cv_sys_file_offset_bits=64; break | ||
2772 | else | ||
2773 | echo "$as_me: failed program was:" >&5 | ||
2774 | cat conftest.$ac_ext >&5 | ||
2775 | fi | ||
2776 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2777 | break | ||
2778 | done | ||
2779 | fi | ||
2780 | echo "$as_me:2780: result: $ac_cv_sys_file_offset_bits" >&5 | ||
2781 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
2782 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
2783 | |||
2784 | cat >>confdefs.h <<EOF | ||
2785 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
2786 | EOF | ||
2787 | |||
2788 | fi | ||
2789 | rm -f conftest* | ||
2790 | echo "$as_me:2790: checking for _LARGE_FILES value needed for large files" >&5 | ||
2791 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
2792 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
2793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2794 | else | ||
2795 | while :; do | ||
2796 | ac_cv_sys_large_files=no | ||
2797 | cat >conftest.$ac_ext <<_ACEOF | ||
2798 | #line 2798 "configure" | ||
2799 | #include "confdefs.h" | ||
2800 | #include <sys/types.h> | ||
2801 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2802 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2803 | since some C++ compilers masquerading as C compilers | ||
2804 | incorrectly reject 9223372036854775807. */ | ||
2805 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2806 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2807 | && LARGE_OFF_T % 2147483647 == 1) | ||
2808 | ? 1 : -1]; | ||
2809 | int | ||
2810 | main () | ||
2811 | { | ||
2812 | |||
2813 | ; | ||
2814 | return 0; | ||
2815 | } | ||
2816 | _ACEOF | ||
2817 | rm -f conftest.$ac_objext | ||
2818 | if { (eval echo "$as_me:2818: \"$ac_compile\"") >&5 | ||
2819 | (eval $ac_compile) 2>&5 | ||
2820 | ac_status=$? | ||
2821 | echo "$as_me:2821: \$? = $ac_status" >&5 | ||
2822 | (exit $ac_status); } && | ||
2823 | { ac_try='test -s conftest.$ac_objext' | ||
2824 | { (eval echo "$as_me:2824: \"$ac_try\"") >&5 | ||
2825 | (eval $ac_try) 2>&5 | ||
2826 | ac_status=$? | ||
2827 | echo "$as_me:2827: \$? = $ac_status" >&5 | ||
2828 | (exit $ac_status); }; }; then | ||
2829 | break | ||
2830 | else | ||
2831 | echo "$as_me: failed program was:" >&5 | ||
2832 | cat conftest.$ac_ext >&5 | ||
2833 | fi | ||
2834 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2835 | cat >conftest.$ac_ext <<_ACEOF | ||
2836 | #line 2836 "configure" | ||
2837 | #include "confdefs.h" | ||
2838 | #define _LARGE_FILES 1 | ||
2839 | #include <sys/types.h> | ||
2840 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2841 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2842 | since some C++ compilers masquerading as C compilers | ||
2843 | incorrectly reject 9223372036854775807. */ | ||
2844 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2845 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2846 | && LARGE_OFF_T % 2147483647 == 1) | ||
2847 | ? 1 : -1]; | ||
2848 | int | ||
2849 | main () | ||
2850 | { | ||
2851 | |||
2852 | ; | ||
2853 | return 0; | ||
2854 | } | ||
2855 | _ACEOF | ||
2856 | rm -f conftest.$ac_objext | ||
2857 | if { (eval echo "$as_me:2857: \"$ac_compile\"") >&5 | ||
2858 | (eval $ac_compile) 2>&5 | ||
2859 | ac_status=$? | ||
2860 | echo "$as_me:2860: \$? = $ac_status" >&5 | ||
2861 | (exit $ac_status); } && | ||
2862 | { ac_try='test -s conftest.$ac_objext' | ||
2863 | { (eval echo "$as_me:2863: \"$ac_try\"") >&5 | ||
2864 | (eval $ac_try) 2>&5 | ||
2865 | ac_status=$? | ||
2866 | echo "$as_me:2866: \$? = $ac_status" >&5 | ||
2867 | (exit $ac_status); }; }; then | ||
2868 | ac_cv_sys_large_files=1; break | ||
2869 | else | ||
2870 | echo "$as_me: failed program was:" >&5 | ||
2871 | cat conftest.$ac_ext >&5 | ||
2872 | fi | ||
2873 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2874 | break | ||
2875 | done | ||
2876 | fi | ||
2877 | echo "$as_me:2877: result: $ac_cv_sys_large_files" >&5 | ||
2878 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
2879 | if test "$ac_cv_sys_large_files" != no; then | ||
2880 | |||
2881 | cat >>confdefs.h <<EOF | ||
2882 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
2883 | EOF | ||
2884 | |||
2885 | fi | ||
2886 | rm -f conftest* | ||
2887 | fi | ||
2888 | |||
2889 | if test -z "$AR" ; then | ||
2890 | { { echo "$as_me:2890: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
2891 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
2892 | { (exit 1); exit 1; }; } | ||
2893 | fi | ||
2894 | |||
2895 | # Use LOGIN_PROGRAM from environment if possible | ||
2896 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
2897 | cat >>confdefs.h <<EOF | ||
2898 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
2899 | EOF | ||
2900 | |||
2901 | else | ||
2902 | # Search for login | ||
2903 | # Extract the first word of "login", so it can be a program name with args. | ||
2904 | set dummy login; ac_word=$2 | ||
2905 | echo "$as_me:2905: checking for $ac_word" >&5 | ||
2906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2907 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2909 | else | ||
2910 | case $LOGIN_PROGRAM_FALLBACK in | ||
2911 | [\\/]* | ?:[\\/]*) | ||
2912 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
2913 | ;; | ||
2914 | *) | ||
2915 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2916 | ac_dummy="$PATH" | ||
2917 | for ac_dir in $ac_dummy; do | ||
2918 | IFS=$ac_save_IFS | ||
2919 | test -z "$ac_dir" && ac_dir=. | ||
2920 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2921 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word" | ||
2922 | echo "$as_me:2922: found $ac_dir/$ac_word" >&5 | ||
2923 | break | ||
2924 | fi | ||
2925 | done | ||
2926 | |||
2927 | ;; | ||
2928 | esac | ||
2929 | fi | ||
2930 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
2931 | |||
2932 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
2933 | echo "$as_me:2933: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
2934 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
2935 | else | ||
2936 | echo "$as_me:2936: result: no" >&5 | ||
2937 | echo "${ECHO_T}no" >&6 | ||
2938 | fi | ||
2939 | |||
2940 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
2941 | cat >>confdefs.h <<EOF | ||
2942 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
2943 | EOF | ||
2944 | |||
2945 | fi | ||
2946 | fi | ||
2947 | |||
2948 | if test -z "$LD" ; then | ||
2949 | LD=$CC | ||
2950 | fi | ||
2951 | |||
2952 | echo "$as_me:2952: checking for $CC option to accept ANSI C" >&5 | ||
2953 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2954 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2956 | else | ||
2957 | ac_cv_prog_cc_stdc=no | ||
2958 | ac_save_CC=$CC | ||
2959 | cat >conftest.$ac_ext <<_ACEOF | ||
2960 | #line 2960 "configure" | ||
2961 | #include "confdefs.h" | ||
2962 | #include <stdarg.h> | ||
2963 | #include <stdio.h> | ||
2964 | #include <sys/types.h> | ||
2965 | #include <sys/stat.h> | ||
2966 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2967 | struct buf { int x; }; | ||
2968 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2969 | static char *e (p, i) | ||
2970 | char **p; | ||
2971 | int i; | ||
2972 | { | ||
2973 | return p[i]; | ||
2974 | } | ||
2975 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2976 | { | ||
2977 | char *s; | ||
2978 | va_list v; | ||
2979 | va_start (v,p); | ||
2980 | s = g (p, va_arg (v,int)); | ||
2981 | va_end (v); | ||
2982 | return s; | ||
2983 | } | ||
2984 | int test (int i, double x); | ||
2985 | struct s1 {int (*f) (int a);}; | ||
2986 | struct s2 {int (*f) (double a);}; | ||
2987 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2988 | int argc; | ||
2989 | char **argv; | ||
2990 | int | ||
2991 | main () | ||
2992 | { | ||
2993 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2994 | ; | ||
2995 | return 0; | ||
2996 | } | ||
2997 | _ACEOF | ||
2998 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2999 | # breaks some systems' header files. | ||
3000 | # AIX -qlanglvl=ansi | ||
3001 | # Ultrix and OSF/1 -std1 | ||
3002 | # HP-UX 10.20 and later -Ae | ||
3003 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3004 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3005 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3006 | do | ||
3007 | CC="$ac_save_CC $ac_arg" | ||
3008 | rm -f conftest.$ac_objext | ||
3009 | if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5 | ||
3010 | (eval $ac_compile) 2>&5 | ||
3011 | ac_status=$? | ||
3012 | echo "$as_me:3012: \$? = $ac_status" >&5 | ||
3013 | (exit $ac_status); } && | ||
3014 | { ac_try='test -s conftest.$ac_objext' | ||
3015 | { (eval echo "$as_me:3015: \"$ac_try\"") >&5 | ||
3016 | (eval $ac_try) 2>&5 | ||
3017 | ac_status=$? | ||
3018 | echo "$as_me:3018: \$? = $ac_status" >&5 | ||
3019 | (exit $ac_status); }; }; then | ||
3020 | ac_cv_prog_cc_stdc=$ac_arg | ||
3021 | break | ||
3022 | else | ||
3023 | echo "$as_me: failed program was:" >&5 | ||
3024 | cat conftest.$ac_ext >&5 | ||
3025 | fi | ||
3026 | rm -f conftest.$ac_objext | ||
3027 | done | ||
3028 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3029 | CC=$ac_save_CC | ||
3030 | |||
3031 | fi | ||
3032 | |||
3033 | case "x$ac_cv_prog_cc_stdc" in | ||
3034 | x|xno) | ||
3035 | echo "$as_me:3035: result: none needed" >&5 | ||
3036 | echo "${ECHO_T}none needed" >&6 ;; | ||
3037 | *) | ||
3038 | echo "$as_me:3038: result: $ac_cv_prog_cc_stdc" >&5 | ||
3039 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3040 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3041 | esac | ||
3042 | |||
3043 | echo "$as_me:3043: checking for inline" >&5 | ||
3044 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3045 | if test "${ac_cv_c_inline+set}" = set; then | ||
3046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3047 | else | ||
3048 | ac_cv_c_inline=no | ||
3049 | for ac_kw in inline __inline__ __inline; do | ||
3050 | cat >conftest.$ac_ext <<_ACEOF | ||
3051 | #line 3051 "configure" | ||
3052 | #include "confdefs.h" | ||
3053 | #ifndef __cplusplus | ||
3054 | static $ac_kw int static_foo () {return 0; } | ||
3055 | $ac_kw int foo () {return 0; } | ||
3056 | #endif | ||
3057 | |||
3058 | _ACEOF | ||
3059 | rm -f conftest.$ac_objext | ||
3060 | if { (eval echo "$as_me:3060: \"$ac_compile\"") >&5 | ||
3061 | (eval $ac_compile) 2>&5 | ||
3062 | ac_status=$? | ||
3063 | echo "$as_me:3063: \$? = $ac_status" >&5 | ||
3064 | (exit $ac_status); } && | ||
3065 | { ac_try='test -s conftest.$ac_objext' | ||
3066 | { (eval echo "$as_me:3066: \"$ac_try\"") >&5 | ||
3067 | (eval $ac_try) 2>&5 | ||
3068 | ac_status=$? | ||
3069 | echo "$as_me:3069: \$? = $ac_status" >&5 | ||
3070 | (exit $ac_status); }; }; then | ||
3071 | ac_cv_c_inline=$ac_kw; break | ||
3072 | else | ||
3073 | echo "$as_me: failed program was:" >&5 | ||
3074 | cat conftest.$ac_ext >&5 | ||
3075 | fi | ||
3076 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3077 | done | ||
3078 | |||
3079 | fi | ||
3080 | echo "$as_me:3080: result: $ac_cv_c_inline" >&5 | ||
3081 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3082 | case $ac_cv_c_inline in | ||
3083 | inline | yes) ;; | ||
3084 | no) | ||
3085 | cat >>confdefs.h <<\EOF | ||
3086 | #define inline | ||
3087 | EOF | ||
3088 | ;; | ||
3089 | *) cat >>confdefs.h <<EOF | ||
3090 | #define inline $ac_cv_c_inline | ||
3091 | EOF | ||
3092 | ;; | ||
3093 | esac | ||
3094 | |||
3095 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3096 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3097 | fi | ||
3098 | |||
3099 | # Check for some target-specific stuff | ||
3100 | case "$host" in | ||
3101 | *-*-aix*) | ||
3102 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3103 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3104 | echo "$as_me:3104: checking how to specify blibpath for linker ($LD)" >&5 | ||
3105 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
3106 | if (test -z "$blibpath"); then | ||
3107 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3108 | fi | ||
3109 | saved_LDFLAGS="$LDFLAGS" | ||
3110 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
3111 | if (test -z "$blibflags"); then | ||
3112 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
3113 | cat >conftest.$ac_ext <<_ACEOF | ||
3114 | #line 3114 "configure" | ||
3115 | #include "confdefs.h" | ||
3116 | |||
3117 | int | ||
3118 | main () | ||
3119 | { | ||
3120 | |||
3121 | ; | ||
3122 | return 0; | ||
3123 | } | ||
3124 | _ACEOF | ||
3125 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3126 | if { (eval echo "$as_me:3126: \"$ac_link\"") >&5 | ||
3127 | (eval $ac_link) 2>&5 | ||
3128 | ac_status=$? | ||
3129 | echo "$as_me:3129: \$? = $ac_status" >&5 | ||
3130 | (exit $ac_status); } && | ||
3131 | { ac_try='test -s conftest$ac_exeext' | ||
3132 | { (eval echo "$as_me:3132: \"$ac_try\"") >&5 | ||
3133 | (eval $ac_try) 2>&5 | ||
3134 | ac_status=$? | ||
3135 | echo "$as_me:3135: \$? = $ac_status" >&5 | ||
3136 | (exit $ac_status); }; }; then | ||
3137 | blibflags=$tryflags | ||
3138 | else | ||
3139 | echo "$as_me: failed program was:" >&5 | ||
3140 | cat conftest.$ac_ext >&5 | ||
3141 | fi | ||
3142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3143 | fi | ||
3144 | done | ||
3145 | if (test -z "$blibflags"); then | ||
3146 | echo "$as_me:3146: result: not found" >&5 | ||
3147 | echo "${ECHO_T}not found" >&6 | ||
3148 | { { echo "$as_me:3148: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
3149 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
3150 | { (exit 1); exit 1; }; } | ||
3151 | else | ||
3152 | echo "$as_me:3152: result: $blibflags" >&5 | ||
3153 | echo "${ECHO_T}$blibflags" >&6 | ||
3154 | fi | ||
3155 | LDFLAGS="$saved_LDFLAGS" | ||
3156 | echo "$as_me:3156: checking for authenticate" >&5 | ||
3157 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3158 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3160 | else | ||
3161 | cat >conftest.$ac_ext <<_ACEOF | ||
3162 | #line 3162 "configure" | ||
3163 | #include "confdefs.h" | ||
3164 | /* System header to define __stub macros and hopefully few prototypes, | ||
3165 | which can conflict with char authenticate (); below. */ | ||
3166 | #include <assert.h> | ||
3167 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3168 | #ifdef __cplusplus | ||
3169 | extern "C" | ||
3170 | #endif | ||
3171 | /* We use char because int might match the return type of a gcc2 | ||
3172 | builtin and then its argument prototype would still apply. */ | ||
3173 | char authenticate (); | ||
3174 | char (*f) (); | ||
3175 | |||
3176 | int | ||
3177 | main () | ||
3178 | { | ||
3179 | /* The GNU C library defines this for functions which it implements | ||
3180 | to always fail with ENOSYS. Some functions are actually named | ||
3181 | something starting with __ and the normal name is an alias. */ | ||
3182 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3183 | choke me | ||
3184 | #else | ||
3185 | f = authenticate; | ||
3186 | #endif | ||
3187 | |||
3188 | ; | ||
3189 | return 0; | ||
3190 | } | ||
3191 | _ACEOF | ||
3192 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3193 | if { (eval echo "$as_me:3193: \"$ac_link\"") >&5 | ||
3194 | (eval $ac_link) 2>&5 | ||
3195 | ac_status=$? | ||
3196 | echo "$as_me:3196: \$? = $ac_status" >&5 | ||
3197 | (exit $ac_status); } && | ||
3198 | { ac_try='test -s conftest$ac_exeext' | ||
3199 | { (eval echo "$as_me:3199: \"$ac_try\"") >&5 | ||
3200 | (eval $ac_try) 2>&5 | ||
3201 | ac_status=$? | ||
3202 | echo "$as_me:3202: \$? = $ac_status" >&5 | ||
3203 | (exit $ac_status); }; }; then | ||
3204 | ac_cv_func_authenticate=yes | ||
3205 | else | ||
3206 | echo "$as_me: failed program was:" >&5 | ||
3207 | cat conftest.$ac_ext >&5 | ||
3208 | ac_cv_func_authenticate=no | ||
3209 | fi | ||
3210 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3211 | fi | ||
3212 | echo "$as_me:3212: result: $ac_cv_func_authenticate" >&5 | ||
3213 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3214 | if test $ac_cv_func_authenticate = yes; then | ||
3215 | cat >>confdefs.h <<\EOF | ||
3216 | #define WITH_AIXAUTHENTICATE 1 | ||
3217 | EOF | ||
3218 | |||
3219 | else | ||
3220 | echo "$as_me:3220: checking for authenticate in -ls" >&5 | ||
3221 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3222 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3224 | else | ||
3225 | ac_check_lib_save_LIBS=$LIBS | ||
3226 | LIBS="-ls $LIBS" | ||
3227 | cat >conftest.$ac_ext <<_ACEOF | ||
3228 | #line 3228 "configure" | ||
3229 | #include "confdefs.h" | ||
3230 | |||
3231 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3232 | #ifdef __cplusplus | ||
3233 | extern "C" | ||
3234 | #endif | ||
3235 | /* We use char because int might match the return type of a gcc2 | ||
3236 | builtin and then its argument prototype would still apply. */ | ||
3237 | char authenticate (); | ||
3238 | int | ||
3239 | main () | ||
3240 | { | ||
3241 | authenticate (); | ||
3242 | ; | ||
3243 | return 0; | ||
3244 | } | ||
3245 | _ACEOF | ||
3246 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3247 | if { (eval echo "$as_me:3247: \"$ac_link\"") >&5 | ||
3248 | (eval $ac_link) 2>&5 | ||
3249 | ac_status=$? | ||
3250 | echo "$as_me:3250: \$? = $ac_status" >&5 | ||
3251 | (exit $ac_status); } && | ||
3252 | { ac_try='test -s conftest$ac_exeext' | ||
3253 | { (eval echo "$as_me:3253: \"$ac_try\"") >&5 | ||
3254 | (eval $ac_try) 2>&5 | ||
3255 | ac_status=$? | ||
3256 | echo "$as_me:3256: \$? = $ac_status" >&5 | ||
3257 | (exit $ac_status); }; }; then | ||
3258 | ac_cv_lib_s_authenticate=yes | ||
3259 | else | ||
3260 | echo "$as_me: failed program was:" >&5 | ||
3261 | cat conftest.$ac_ext >&5 | ||
3262 | ac_cv_lib_s_authenticate=no | ||
3263 | fi | ||
3264 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3265 | LIBS=$ac_check_lib_save_LIBS | ||
3266 | fi | ||
3267 | echo "$as_me:3267: result: $ac_cv_lib_s_authenticate" >&5 | ||
3268 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3269 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3270 | cat >>confdefs.h <<\EOF | ||
3271 | #define WITH_AIXAUTHENTICATE 1 | ||
3272 | EOF | ||
3273 | |||
3274 | LIBS="$LIBS -ls" | ||
3275 | |||
3276 | fi | ||
3277 | |||
3278 | fi | ||
3279 | |||
3280 | echo "$as_me:3280: checking whether loginfailed is declared" >&5 | ||
3281 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
3282 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3284 | else | ||
3285 | cat >conftest.$ac_ext <<_ACEOF | ||
3286 | #line 3286 "configure" | ||
3287 | #include "confdefs.h" | ||
3288 | #include <usersec.h> | ||
3289 | |||
3290 | int | ||
3291 | main () | ||
3292 | { | ||
3293 | #ifndef loginfailed | ||
3294 | char *p = (char *) loginfailed; | ||
3295 | #endif | ||
3296 | |||
3297 | ; | ||
3298 | return 0; | ||
3299 | } | ||
3300 | _ACEOF | ||
3301 | rm -f conftest.$ac_objext | ||
3302 | if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5 | ||
3303 | (eval $ac_compile) 2>&5 | ||
3304 | ac_status=$? | ||
3305 | echo "$as_me:3305: \$? = $ac_status" >&5 | ||
3306 | (exit $ac_status); } && | ||
3307 | { ac_try='test -s conftest.$ac_objext' | ||
3308 | { (eval echo "$as_me:3308: \"$ac_try\"") >&5 | ||
3309 | (eval $ac_try) 2>&5 | ||
3310 | ac_status=$? | ||
3311 | echo "$as_me:3311: \$? = $ac_status" >&5 | ||
3312 | (exit $ac_status); }; }; then | ||
3313 | ac_cv_have_decl_loginfailed=yes | ||
3314 | else | ||
3315 | echo "$as_me: failed program was:" >&5 | ||
3316 | cat conftest.$ac_ext >&5 | ||
3317 | ac_cv_have_decl_loginfailed=no | ||
3318 | fi | ||
3319 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3320 | fi | ||
3321 | echo "$as_me:3321: result: $ac_cv_have_decl_loginfailed" >&5 | ||
3322 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
3323 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
3324 | echo "$as_me:3324: checking if loginfailed takes 4 arguments" >&5 | ||
3325 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
3326 | cat >conftest.$ac_ext <<_ACEOF | ||
3327 | #line 3327 "configure" | ||
3328 | #include "confdefs.h" | ||
3329 | #include <usersec.h> | ||
3330 | int | ||
3331 | main () | ||
3332 | { | ||
3333 | (void)loginfailed("user","host","tty",0); | ||
3334 | ; | ||
3335 | return 0; | ||
3336 | } | ||
3337 | _ACEOF | ||
3338 | rm -f conftest.$ac_objext | ||
3339 | if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5 | ||
3340 | (eval $ac_compile) 2>&5 | ||
3341 | ac_status=$? | ||
3342 | echo "$as_me:3342: \$? = $ac_status" >&5 | ||
3343 | (exit $ac_status); } && | ||
3344 | { ac_try='test -s conftest.$ac_objext' | ||
3345 | { (eval echo "$as_me:3345: \"$ac_try\"") >&5 | ||
3346 | (eval $ac_try) 2>&5 | ||
3347 | ac_status=$? | ||
3348 | echo "$as_me:3348: \$? = $ac_status" >&5 | ||
3349 | (exit $ac_status); }; }; then | ||
3350 | echo "$as_me:3350: result: yes" >&5 | ||
3351 | echo "${ECHO_T}yes" >&6 | ||
3352 | cat >>confdefs.h <<\EOF | ||
3353 | #define AIX_LOGINFAILED_4ARG 1 | ||
3354 | EOF | ||
3355 | |||
3356 | else | ||
3357 | echo "$as_me: failed program was:" >&5 | ||
3358 | cat conftest.$ac_ext >&5 | ||
3359 | echo "$as_me:3359: result: no" >&5 | ||
3360 | echo "${ECHO_T}no" >&6 | ||
3361 | |||
3362 | fi | ||
3363 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3364 | fi | ||
3365 | |||
3366 | for ac_func in setauthdb | ||
3367 | do | ||
3368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
3369 | echo "$as_me:3369: checking for $ac_func" >&5 | ||
3370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
3371 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3373 | else | ||
3374 | cat >conftest.$ac_ext <<_ACEOF | ||
3375 | #line 3375 "configure" | ||
3376 | #include "confdefs.h" | ||
3377 | /* System header to define __stub macros and hopefully few prototypes, | ||
3378 | which can conflict with char $ac_func (); below. */ | ||
3379 | #include <assert.h> | ||
3380 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3381 | #ifdef __cplusplus | ||
3382 | extern "C" | ||
3383 | #endif | ||
3384 | /* We use char because int might match the return type of a gcc2 | ||
3385 | builtin and then its argument prototype would still apply. */ | ||
3386 | char $ac_func (); | ||
3387 | char (*f) (); | ||
3388 | |||
3389 | int | ||
3390 | main () | ||
3391 | { | ||
3392 | /* The GNU C library defines this for functions which it implements | ||
3393 | to always fail with ENOSYS. Some functions are actually named | ||
3394 | something starting with __ and the normal name is an alias. */ | ||
3395 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
3396 | choke me | ||
3397 | #else | ||
3398 | f = $ac_func; | ||
3399 | #endif | ||
3400 | |||
3401 | ; | ||
3402 | return 0; | ||
3403 | } | ||
3404 | _ACEOF | ||
3405 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3406 | if { (eval echo "$as_me:3406: \"$ac_link\"") >&5 | ||
3407 | (eval $ac_link) 2>&5 | ||
3408 | ac_status=$? | ||
3409 | echo "$as_me:3409: \$? = $ac_status" >&5 | ||
3410 | (exit $ac_status); } && | ||
3411 | { ac_try='test -s conftest$ac_exeext' | ||
3412 | { (eval echo "$as_me:3412: \"$ac_try\"") >&5 | ||
3413 | (eval $ac_try) 2>&5 | ||
3414 | ac_status=$? | ||
3415 | echo "$as_me:3415: \$? = $ac_status" >&5 | ||
3416 | (exit $ac_status); }; }; then | ||
3417 | eval "$as_ac_var=yes" | ||
3418 | else | ||
3419 | echo "$as_me: failed program was:" >&5 | ||
3420 | cat conftest.$ac_ext >&5 | ||
3421 | eval "$as_ac_var=no" | ||
3422 | fi | ||
3423 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3424 | fi | ||
3425 | echo "$as_me:3425: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
3426 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
3427 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
3428 | cat >>confdefs.h <<EOF | ||
3429 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
3430 | EOF | ||
3431 | |||
3432 | fi | ||
3433 | done | ||
3434 | |||
3435 | cat >>confdefs.h <<\EOF | ||
3436 | #define BROKEN_GETADDRINFO 1 | ||
3437 | EOF | ||
3438 | |||
3439 | cat >>confdefs.h <<\EOF | ||
3440 | #define BROKEN_REALPATH 1 | ||
3441 | EOF | ||
3442 | |||
3443 | cat >>confdefs.h <<\EOF | ||
3444 | #define SETEUID_BREAKS_SETUID 1 | ||
3445 | EOF | ||
3446 | |||
3447 | cat >>confdefs.h <<\EOF | ||
3448 | #define BROKEN_SETREUID 1 | ||
3449 | EOF | ||
3450 | |||
3451 | cat >>confdefs.h <<\EOF | ||
3452 | #define BROKEN_SETREGID 1 | ||
3453 | EOF | ||
3454 | |||
3455 | cat >>confdefs.h <<\EOF | ||
3456 | #define DISABLE_LASTLOG 1 | ||
3457 | EOF | ||
3458 | |||
3459 | cat >>confdefs.h <<\EOF | ||
3460 | #define LOGIN_NEEDS_UTMPX 1 | ||
3461 | EOF | ||
3462 | |||
3463 | cat >>confdefs.h <<\EOF | ||
3464 | #define SPT_TYPE SPT_REUSEARGV | ||
3465 | EOF | ||
3466 | |||
3467 | ;; | ||
3468 | *-*-cygwin*) | ||
3469 | check_for_libcrypt_later=1 | ||
3470 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3471 | cat >>confdefs.h <<\EOF | ||
3472 | #define HAVE_CYGWIN 1 | ||
3473 | EOF | ||
3474 | |||
3475 | cat >>confdefs.h <<\EOF | ||
3476 | #define USE_PIPES 1 | ||
3477 | EOF | ||
3478 | |||
3479 | cat >>confdefs.h <<\EOF | ||
3480 | #define DISABLE_SHADOW 1 | ||
3481 | EOF | ||
3482 | |||
3483 | cat >>confdefs.h <<\EOF | ||
3484 | #define IP_TOS_IS_BROKEN 1 | ||
3485 | EOF | ||
3486 | |||
3487 | cat >>confdefs.h <<\EOF | ||
3488 | #define NO_X11_UNIX_SOCKETS 1 | ||
3489 | EOF | ||
3490 | |||
3491 | cat >>confdefs.h <<\EOF | ||
3492 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3493 | EOF | ||
3494 | |||
3495 | cat >>confdefs.h <<\EOF | ||
3496 | #define DISABLE_FD_PASSING 1 | ||
3497 | EOF | ||
3498 | |||
3499 | cat >>confdefs.h <<\EOF | ||
3500 | #define SETGROUPS_NOOP 1 | ||
3501 | EOF | ||
3502 | |||
3503 | ;; | ||
3504 | *-*-dgux*) | ||
3505 | cat >>confdefs.h <<\EOF | ||
3506 | #define IP_TOS_IS_BROKEN 1 | ||
3507 | EOF | ||
3508 | |||
3509 | ;; | ||
3510 | *-*-darwin*) | ||
3511 | echo "$as_me:3511: checking if we have working getaddrinfo" >&5 | ||
3512 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3513 | if test "$cross_compiling" = yes; then | ||
3514 | echo "$as_me:3514: result: assume it is working" >&5 | ||
3515 | echo "${ECHO_T}assume it is working" >&6 | ||
3516 | else | ||
3517 | cat >conftest.$ac_ext <<_ACEOF | ||
3518 | #line 3518 "configure" | ||
3519 | #include "confdefs.h" | ||
3520 | #include <mach-o/dyld.h> | ||
3521 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3522 | exit(0); | ||
3523 | else | ||
3524 | exit(1); | ||
3525 | } | ||
3526 | _ACEOF | ||
3527 | rm -f conftest$ac_exeext | ||
3528 | if { (eval echo "$as_me:3528: \"$ac_link\"") >&5 | ||
3529 | (eval $ac_link) 2>&5 | ||
3530 | ac_status=$? | ||
3531 | echo "$as_me:3531: \$? = $ac_status" >&5 | ||
3532 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3533 | { (eval echo "$as_me:3533: \"$ac_try\"") >&5 | ||
3534 | (eval $ac_try) 2>&5 | ||
3535 | ac_status=$? | ||
3536 | echo "$as_me:3536: \$? = $ac_status" >&5 | ||
3537 | (exit $ac_status); }; }; then | ||
3538 | echo "$as_me:3538: result: working" >&5 | ||
3539 | echo "${ECHO_T}working" >&6 | ||
3540 | else | ||
3541 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3542 | echo "$as_me: failed program was:" >&5 | ||
3543 | cat conftest.$ac_ext >&5 | ||
3544 | echo "$as_me:3544: result: buggy" >&5 | ||
3545 | echo "${ECHO_T}buggy" >&6 | ||
3546 | cat >>confdefs.h <<\EOF | ||
3547 | #define BROKEN_GETADDRINFO 1 | ||
3548 | EOF | ||
3549 | |||
3550 | fi | ||
3551 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3552 | fi | ||
3553 | ;; | ||
3554 | *-*-hpux10.26) | ||
3555 | if test -z "$GCC"; then | ||
3556 | CFLAGS="$CFLAGS -Ae" | ||
3557 | fi | ||
3558 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3559 | IPADDR_IN_DISPLAY=yes | ||
3560 | cat >>confdefs.h <<\EOF | ||
3561 | #define HAVE_SECUREWARE 1 | ||
3562 | EOF | ||
3563 | |||
3564 | cat >>confdefs.h <<\EOF | ||
3565 | #define USE_PIPES 1 | ||
3566 | EOF | ||
3567 | |||
3568 | cat >>confdefs.h <<\EOF | ||
3569 | #define LOGIN_NO_ENDOPT 1 | ||
3570 | EOF | ||
3571 | |||
3572 | cat >>confdefs.h <<\EOF | ||
3573 | #define LOGIN_NEEDS_UTMPX 1 | ||
3574 | EOF | ||
3575 | |||
3576 | cat >>confdefs.h <<\EOF | ||
3577 | #define DISABLE_SHADOW 1 | ||
3578 | EOF | ||
3579 | |||
3580 | cat >>confdefs.h <<\EOF | ||
3581 | #define DISABLE_UTMP 1 | ||
3582 | EOF | ||
3583 | |||
3584 | cat >>confdefs.h <<\EOF | ||
3585 | #define LOCKED_PASSWD_STRING "*" | ||
3586 | EOF | ||
3587 | |||
3588 | cat >>confdefs.h <<\EOF | ||
3589 | #define SPT_TYPE SPT_PSTAT | ||
3590 | EOF | ||
3591 | |||
3592 | LIBS="$LIBS -lsec -lsecpw" | ||
3593 | |||
3594 | echo "$as_me:3594: checking for t_error in -lxnet" >&5 | ||
3595 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3596 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3598 | else | ||
3599 | ac_check_lib_save_LIBS=$LIBS | ||
3600 | LIBS="-lxnet $LIBS" | ||
3601 | cat >conftest.$ac_ext <<_ACEOF | ||
3602 | #line 3602 "configure" | ||
3603 | #include "confdefs.h" | ||
3604 | |||
3605 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3606 | #ifdef __cplusplus | ||
3607 | extern "C" | ||
3608 | #endif | ||
3609 | /* We use char because int might match the return type of a gcc2 | ||
3610 | builtin and then its argument prototype would still apply. */ | ||
3611 | char t_error (); | ||
3612 | int | ||
3613 | main () | ||
3614 | { | ||
3615 | t_error (); | ||
3616 | ; | ||
3617 | return 0; | ||
3618 | } | ||
3619 | _ACEOF | ||
3620 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3621 | if { (eval echo "$as_me:3621: \"$ac_link\"") >&5 | ||
3622 | (eval $ac_link) 2>&5 | ||
3623 | ac_status=$? | ||
3624 | echo "$as_me:3624: \$? = $ac_status" >&5 | ||
3625 | (exit $ac_status); } && | ||
3626 | { ac_try='test -s conftest$ac_exeext' | ||
3627 | { (eval echo "$as_me:3627: \"$ac_try\"") >&5 | ||
3628 | (eval $ac_try) 2>&5 | ||
3629 | ac_status=$? | ||
3630 | echo "$as_me:3630: \$? = $ac_status" >&5 | ||
3631 | (exit $ac_status); }; }; then | ||
3632 | ac_cv_lib_xnet_t_error=yes | ||
3633 | else | ||
3634 | echo "$as_me: failed program was:" >&5 | ||
3635 | cat conftest.$ac_ext >&5 | ||
3636 | ac_cv_lib_xnet_t_error=no | ||
3637 | fi | ||
3638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3639 | LIBS=$ac_check_lib_save_LIBS | ||
3640 | fi | ||
3641 | echo "$as_me:3641: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3642 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3643 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3644 | cat >>confdefs.h <<EOF | ||
3645 | #define HAVE_LIBXNET 1 | ||
3646 | EOF | ||
3647 | |||
3648 | LIBS="-lxnet $LIBS" | ||
3649 | |||
3650 | else | ||
3651 | { { echo "$as_me:3651: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3652 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3653 | { (exit 1); exit 1; }; } | ||
3654 | fi | ||
3655 | |||
3656 | disable_ptmx_check=yes | ||
3657 | ;; | ||
3658 | *-*-hpux10*) | ||
3659 | if test -z "$GCC"; then | ||
3660 | CFLAGS="$CFLAGS -Ae" | ||
3661 | fi | ||
3662 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3663 | IPADDR_IN_DISPLAY=yes | ||
3664 | cat >>confdefs.h <<\EOF | ||
3665 | #define USE_PIPES 1 | ||
3666 | EOF | ||
3667 | |||
3668 | cat >>confdefs.h <<\EOF | ||
3669 | #define LOGIN_NO_ENDOPT 1 | ||
3670 | EOF | ||
3671 | |||
3672 | cat >>confdefs.h <<\EOF | ||
3673 | #define LOGIN_NEEDS_UTMPX 1 | ||
3674 | EOF | ||
3675 | |||
3676 | cat >>confdefs.h <<\EOF | ||
3677 | #define DISABLE_SHADOW 1 | ||
3678 | EOF | ||
3679 | |||
3680 | cat >>confdefs.h <<\EOF | ||
3681 | #define DISABLE_UTMP 1 | ||
3682 | EOF | ||
3683 | |||
3684 | cat >>confdefs.h <<\EOF | ||
3685 | #define LOCKED_PASSWD_STRING "*" | ||
3686 | EOF | ||
3687 | |||
3688 | cat >>confdefs.h <<\EOF | ||
3689 | #define SPT_TYPE SPT_PSTAT | ||
3690 | EOF | ||
3691 | |||
3692 | LIBS="$LIBS -lsec" | ||
3693 | |||
3694 | echo "$as_me:3694: checking for t_error in -lxnet" >&5 | ||
3695 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3696 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3698 | else | ||
3699 | ac_check_lib_save_LIBS=$LIBS | ||
3700 | LIBS="-lxnet $LIBS" | ||
3701 | cat >conftest.$ac_ext <<_ACEOF | ||
3702 | #line 3702 "configure" | ||
3703 | #include "confdefs.h" | ||
3704 | |||
3705 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3706 | #ifdef __cplusplus | ||
3707 | extern "C" | ||
3708 | #endif | ||
3709 | /* We use char because int might match the return type of a gcc2 | ||
3710 | builtin and then its argument prototype would still apply. */ | ||
3711 | char t_error (); | ||
3712 | int | ||
3713 | main () | ||
3714 | { | ||
3715 | t_error (); | ||
3716 | ; | ||
3717 | return 0; | ||
3718 | } | ||
3719 | _ACEOF | ||
3720 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3721 | if { (eval echo "$as_me:3721: \"$ac_link\"") >&5 | ||
3722 | (eval $ac_link) 2>&5 | ||
3723 | ac_status=$? | ||
3724 | echo "$as_me:3724: \$? = $ac_status" >&5 | ||
3725 | (exit $ac_status); } && | ||
3726 | { ac_try='test -s conftest$ac_exeext' | ||
3727 | { (eval echo "$as_me:3727: \"$ac_try\"") >&5 | ||
3728 | (eval $ac_try) 2>&5 | ||
3729 | ac_status=$? | ||
3730 | echo "$as_me:3730: \$? = $ac_status" >&5 | ||
3731 | (exit $ac_status); }; }; then | ||
3732 | ac_cv_lib_xnet_t_error=yes | ||
3733 | else | ||
3734 | echo "$as_me: failed program was:" >&5 | ||
3735 | cat conftest.$ac_ext >&5 | ||
3736 | ac_cv_lib_xnet_t_error=no | ||
3737 | fi | ||
3738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3739 | LIBS=$ac_check_lib_save_LIBS | ||
3740 | fi | ||
3741 | echo "$as_me:3741: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3742 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3743 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3744 | cat >>confdefs.h <<EOF | ||
3745 | #define HAVE_LIBXNET 1 | ||
3746 | EOF | ||
3747 | |||
3748 | LIBS="-lxnet $LIBS" | ||
3749 | |||
3750 | else | ||
3751 | { { echo "$as_me:3751: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3752 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3753 | { (exit 1); exit 1; }; } | ||
3754 | fi | ||
3755 | |||
3756 | ;; | ||
3757 | *-*-hpux11*) | ||
3758 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3759 | IPADDR_IN_DISPLAY=yes | ||
3760 | cat >>confdefs.h <<\EOF | ||
3761 | #define PAM_SUN_CODEBASE 1 | ||
3762 | EOF | ||
3763 | |||
3764 | cat >>confdefs.h <<\EOF | ||
3765 | #define USE_PIPES 1 | ||
3766 | EOF | ||
3767 | |||
3768 | cat >>confdefs.h <<\EOF | ||
3769 | #define LOGIN_NO_ENDOPT 1 | ||
3770 | EOF | ||
3771 | |||
3772 | cat >>confdefs.h <<\EOF | ||
3773 | #define LOGIN_NEEDS_UTMPX 1 | ||
3774 | EOF | ||
3775 | |||
3776 | cat >>confdefs.h <<\EOF | ||
3777 | #define DISABLE_SHADOW 1 | ||
3778 | EOF | ||
3779 | |||
3780 | cat >>confdefs.h <<\EOF | ||
3781 | #define DISABLE_UTMP 1 | ||
3782 | EOF | ||
3783 | |||
3784 | cat >>confdefs.h <<\EOF | ||
3785 | #define LOCKED_PASSWD_STRING "*" | ||
3786 | EOF | ||
3787 | |||
3788 | cat >>confdefs.h <<\EOF | ||
3789 | #define SPT_TYPE SPT_PSTAT | ||
3790 | EOF | ||
3791 | |||
3792 | LIBS="$LIBS -lsec" | ||
3793 | |||
3794 | echo "$as_me:3794: checking for t_error in -lxnet" >&5 | ||
3795 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3796 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3798 | else | ||
3799 | ac_check_lib_save_LIBS=$LIBS | ||
3800 | LIBS="-lxnet $LIBS" | ||
3801 | cat >conftest.$ac_ext <<_ACEOF | ||
3802 | #line 3802 "configure" | ||
3803 | #include "confdefs.h" | ||
3804 | |||
3805 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3806 | #ifdef __cplusplus | ||
3807 | extern "C" | ||
3808 | #endif | ||
3809 | /* We use char because int might match the return type of a gcc2 | ||
3810 | builtin and then its argument prototype would still apply. */ | ||
3811 | char t_error (); | ||
3812 | int | ||
3813 | main () | ||
3814 | { | ||
3815 | t_error (); | ||
3816 | ; | ||
3817 | return 0; | ||
3818 | } | ||
3819 | _ACEOF | ||
3820 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3821 | if { (eval echo "$as_me:3821: \"$ac_link\"") >&5 | ||
3822 | (eval $ac_link) 2>&5 | ||
3823 | ac_status=$? | ||
3824 | echo "$as_me:3824: \$? = $ac_status" >&5 | ||
3825 | (exit $ac_status); } && | ||
3826 | { ac_try='test -s conftest$ac_exeext' | ||
3827 | { (eval echo "$as_me:3827: \"$ac_try\"") >&5 | ||
3828 | (eval $ac_try) 2>&5 | ||
3829 | ac_status=$? | ||
3830 | echo "$as_me:3830: \$? = $ac_status" >&5 | ||
3831 | (exit $ac_status); }; }; then | ||
3832 | ac_cv_lib_xnet_t_error=yes | ||
3833 | else | ||
3834 | echo "$as_me: failed program was:" >&5 | ||
3835 | cat conftest.$ac_ext >&5 | ||
3836 | ac_cv_lib_xnet_t_error=no | ||
3837 | fi | ||
3838 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3839 | LIBS=$ac_check_lib_save_LIBS | ||
3840 | fi | ||
3841 | echo "$as_me:3841: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3842 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3843 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3844 | cat >>confdefs.h <<EOF | ||
3845 | #define HAVE_LIBXNET 1 | ||
3846 | EOF | ||
3847 | |||
3848 | LIBS="-lxnet $LIBS" | ||
3849 | |||
3850 | else | ||
3851 | { { echo "$as_me:3851: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3852 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3853 | { (exit 1); exit 1; }; } | ||
3854 | fi | ||
3855 | |||
3856 | ;; | ||
3857 | *-*-irix5*) | ||
3858 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3859 | LDFLAGS="$LDFLAGS" | ||
3860 | PATH="$PATH:/usr/etc" | ||
3861 | cat >>confdefs.h <<\EOF | ||
3862 | #define BROKEN_INET_NTOA 1 | ||
3863 | EOF | ||
3864 | |||
3865 | cat >>confdefs.h <<\EOF | ||
3866 | #define WITH_ABBREV_NO_TTY 1 | ||
3867 | EOF | ||
3868 | |||
3869 | cat >>confdefs.h <<\EOF | ||
3870 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3871 | EOF | ||
3872 | |||
3873 | ;; | ||
3874 | *-*-irix6*) | ||
3875 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3876 | LDFLAGS="$LDFLAGS" | ||
3877 | PATH="$PATH:/usr/etc" | ||
3878 | cat >>confdefs.h <<\EOF | ||
3879 | #define WITH_IRIX_ARRAY 1 | ||
3880 | EOF | ||
3881 | |||
3882 | cat >>confdefs.h <<\EOF | ||
3883 | #define WITH_IRIX_PROJECT 1 | ||
3884 | EOF | ||
3885 | |||
3886 | cat >>confdefs.h <<\EOF | ||
3887 | #define WITH_IRIX_AUDIT 1 | ||
3888 | EOF | ||
3889 | |||
3890 | echo "$as_me:3890: checking for jlimit_startjob" >&5 | ||
3891 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
3892 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
3893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3894 | else | ||
3895 | cat >conftest.$ac_ext <<_ACEOF | ||
3896 | #line 3896 "configure" | ||
3897 | #include "confdefs.h" | ||
3898 | /* System header to define __stub macros and hopefully few prototypes, | ||
3899 | which can conflict with char jlimit_startjob (); below. */ | ||
3900 | #include <assert.h> | ||
3901 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3902 | #ifdef __cplusplus | ||
3903 | extern "C" | ||
3904 | #endif | ||
3905 | /* We use char because int might match the return type of a gcc2 | ||
3906 | builtin and then its argument prototype would still apply. */ | ||
3907 | char jlimit_startjob (); | ||
3908 | char (*f) (); | ||
3909 | |||
3910 | int | ||
3911 | main () | ||
3912 | { | ||
3913 | /* The GNU C library defines this for functions which it implements | ||
3914 | to always fail with ENOSYS. Some functions are actually named | ||
3915 | something starting with __ and the normal name is an alias. */ | ||
3916 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
3917 | choke me | ||
3918 | #else | ||
3919 | f = jlimit_startjob; | ||
3920 | #endif | ||
3921 | |||
3922 | ; | ||
3923 | return 0; | ||
3924 | } | ||
3925 | _ACEOF | ||
3926 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3927 | if { (eval echo "$as_me:3927: \"$ac_link\"") >&5 | ||
3928 | (eval $ac_link) 2>&5 | ||
3929 | ac_status=$? | ||
3930 | echo "$as_me:3930: \$? = $ac_status" >&5 | ||
3931 | (exit $ac_status); } && | ||
3932 | { ac_try='test -s conftest$ac_exeext' | ||
3933 | { (eval echo "$as_me:3933: \"$ac_try\"") >&5 | ||
3934 | (eval $ac_try) 2>&5 | ||
3935 | ac_status=$? | ||
3936 | echo "$as_me:3936: \$? = $ac_status" >&5 | ||
3937 | (exit $ac_status); }; }; then | ||
3938 | ac_cv_func_jlimit_startjob=yes | ||
3939 | else | ||
3940 | echo "$as_me: failed program was:" >&5 | ||
3941 | cat conftest.$ac_ext >&5 | ||
3942 | ac_cv_func_jlimit_startjob=no | ||
3943 | fi | ||
3944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3945 | fi | ||
3946 | echo "$as_me:3946: result: $ac_cv_func_jlimit_startjob" >&5 | ||
3947 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
3948 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
3949 | cat >>confdefs.h <<\EOF | ||
3950 | #define WITH_IRIX_JOBS 1 | ||
3951 | EOF | ||
3952 | |||
3953 | fi | ||
3954 | |||
3955 | cat >>confdefs.h <<\EOF | ||
3956 | #define BROKEN_INET_NTOA 1 | ||
3957 | EOF | ||
3958 | |||
3959 | cat >>confdefs.h <<\EOF | ||
3960 | #define WITH_ABBREV_NO_TTY 1 | ||
3961 | EOF | ||
3962 | |||
3963 | cat >>confdefs.h <<\EOF | ||
3964 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3965 | EOF | ||
3966 | |||
3967 | ;; | ||
3968 | *-*-linux*) | ||
3969 | no_dev_ptmx=1 | ||
3970 | check_for_libcrypt_later=1 | ||
3971 | check_for_openpty_ctty_bug=1 | ||
3972 | cat >>confdefs.h <<\EOF | ||
3973 | #define DONT_TRY_OTHER_AF 1 | ||
3974 | EOF | ||
3975 | |||
3976 | cat >>confdefs.h <<\EOF | ||
3977 | #define PAM_TTY_KLUDGE 1 | ||
3978 | EOF | ||
3979 | |||
3980 | cat >>confdefs.h <<\EOF | ||
3981 | #define LOCKED_PASSWD_PREFIX "!!" | ||
3982 | EOF | ||
3983 | |||
3984 | cat >>confdefs.h <<\EOF | ||
3985 | #define SPT_TYPE SPT_REUSEARGV | ||
3986 | EOF | ||
3987 | |||
3988 | inet6_default_4in6=yes | ||
3989 | case `uname -r` in | ||
3990 | 1.*|2.0.*) | ||
3991 | cat >>confdefs.h <<\EOF | ||
3992 | #define BROKEN_CMSG_TYPE 1 | ||
3993 | EOF | ||
3994 | |||
3995 | ;; | ||
3996 | esac | ||
3997 | ;; | ||
3998 | mips-sony-bsd|mips-sony-newsos4) | ||
3999 | cat >>confdefs.h <<\EOF | ||
4000 | #define HAVE_NEWS4 1 | ||
4001 | EOF | ||
4002 | |||
4003 | SONY=1 | ||
4004 | ;; | ||
4005 | *-*-netbsd*) | ||
4006 | check_for_libcrypt_before=1 | ||
4007 | need_dash_r=1 | ||
4008 | ;; | ||
4009 | *-*-freebsd*) | ||
4010 | check_for_libcrypt_later=1 | ||
4011 | ;; | ||
4012 | *-next-*) | ||
4013 | conf_lastlog_location="/usr/adm/lastlog" | ||
4014 | conf_utmp_location=/etc/utmp | ||
4015 | conf_wtmp_location=/usr/adm/wtmp | ||
4016 | MAIL=/usr/spool/mail | ||
4017 | cat >>confdefs.h <<\EOF | ||
4018 | #define HAVE_NEXT 1 | ||
4019 | EOF | ||
4020 | |||
4021 | cat >>confdefs.h <<\EOF | ||
4022 | #define BROKEN_REALPATH 1 | ||
4023 | EOF | ||
4024 | |||
4025 | cat >>confdefs.h <<\EOF | ||
4026 | #define USE_PIPES 1 | ||
4027 | EOF | ||
4028 | |||
4029 | cat >>confdefs.h <<\EOF | ||
4030 | #define BROKEN_SAVED_UIDS 1 | ||
4031 | EOF | ||
4032 | |||
4033 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4034 | CFLAGS="$CFLAGS" | ||
4035 | ;; | ||
4036 | *-*-solaris*) | ||
4037 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4038 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
4039 | need_dash_r=1 | ||
4040 | cat >>confdefs.h <<\EOF | ||
4041 | #define PAM_SUN_CODEBASE 1 | ||
4042 | EOF | ||
4043 | |||
4044 | cat >>confdefs.h <<\EOF | ||
4045 | #define LOGIN_NEEDS_UTMPX 1 | ||
4046 | EOF | ||
4047 | |||
4048 | cat >>confdefs.h <<\EOF | ||
4049 | #define LOGIN_NEEDS_TERM 1 | ||
4050 | EOF | ||
4051 | |||
4052 | cat >>confdefs.h <<\EOF | ||
4053 | #define PAM_TTY_KLUDGE 1 | ||
4054 | EOF | ||
4055 | |||
4056 | cat >>confdefs.h <<\EOF | ||
4057 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4058 | EOF | ||
4059 | |||
4060 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
4061 | cat >>confdefs.h <<\EOF | ||
4062 | #define SSHD_ACQUIRES_CTTY 1 | ||
4063 | EOF | ||
4064 | |||
4065 | external_path_file=/etc/default/login | ||
4066 | # hardwire lastlog location (can't detect it on some versions) | ||
4067 | conf_lastlog_location="/var/adm/lastlog" | ||
4068 | echo "$as_me:4068: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4069 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4070 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4071 | if test "$sol2ver" -ge 8; then | ||
4072 | echo "$as_me:4072: result: yes" >&5 | ||
4073 | echo "${ECHO_T}yes" >&6 | ||
4074 | cat >>confdefs.h <<\EOF | ||
4075 | #define DISABLE_UTMP 1 | ||
4076 | EOF | ||
4077 | |||
4078 | cat >>confdefs.h <<\EOF | ||
4079 | #define DISABLE_WTMP 1 | ||
4080 | EOF | ||
4081 | |||
4082 | else | ||
4083 | echo "$as_me:4083: result: no" >&5 | ||
4084 | echo "${ECHO_T}no" >&6 | ||
4085 | fi | ||
4086 | ;; | ||
4087 | *-*-sunos4*) | ||
4088 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4089 | |||
4090 | for ac_func in getpwanam | ||
4091 | do | ||
4092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4093 | echo "$as_me:4093: checking for $ac_func" >&5 | ||
4094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4095 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4097 | else | ||
4098 | cat >conftest.$ac_ext <<_ACEOF | ||
4099 | #line 4099 "configure" | ||
4100 | #include "confdefs.h" | ||
4101 | /* System header to define __stub macros and hopefully few prototypes, | ||
4102 | which can conflict with char $ac_func (); below. */ | ||
4103 | #include <assert.h> | ||
4104 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4105 | #ifdef __cplusplus | ||
4106 | extern "C" | ||
4107 | #endif | ||
4108 | /* We use char because int might match the return type of a gcc2 | ||
4109 | builtin and then its argument prototype would still apply. */ | ||
4110 | char $ac_func (); | ||
4111 | char (*f) (); | ||
4112 | |||
4113 | int | ||
4114 | main () | ||
4115 | { | ||
4116 | /* The GNU C library defines this for functions which it implements | ||
4117 | to always fail with ENOSYS. Some functions are actually named | ||
4118 | something starting with __ and the normal name is an alias. */ | ||
4119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4120 | choke me | ||
4121 | #else | ||
4122 | f = $ac_func; | ||
4123 | #endif | ||
4124 | |||
4125 | ; | ||
4126 | return 0; | ||
4127 | } | ||
4128 | _ACEOF | ||
4129 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4130 | if { (eval echo "$as_me:4130: \"$ac_link\"") >&5 | ||
4131 | (eval $ac_link) 2>&5 | ||
4132 | ac_status=$? | ||
4133 | echo "$as_me:4133: \$? = $ac_status" >&5 | ||
4134 | (exit $ac_status); } && | ||
4135 | { ac_try='test -s conftest$ac_exeext' | ||
4136 | { (eval echo "$as_me:4136: \"$ac_try\"") >&5 | ||
4137 | (eval $ac_try) 2>&5 | ||
4138 | ac_status=$? | ||
4139 | echo "$as_me:4139: \$? = $ac_status" >&5 | ||
4140 | (exit $ac_status); }; }; then | ||
4141 | eval "$as_ac_var=yes" | ||
4142 | else | ||
4143 | echo "$as_me: failed program was:" >&5 | ||
4144 | cat conftest.$ac_ext >&5 | ||
4145 | eval "$as_ac_var=no" | ||
4146 | fi | ||
4147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4148 | fi | ||
4149 | echo "$as_me:4149: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4151 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4152 | cat >>confdefs.h <<EOF | ||
4153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4154 | EOF | ||
4155 | |||
4156 | fi | ||
4157 | done | ||
4158 | |||
4159 | cat >>confdefs.h <<\EOF | ||
4160 | #define PAM_SUN_CODEBASE 1 | ||
4161 | EOF | ||
4162 | |||
4163 | conf_utmp_location=/etc/utmp | ||
4164 | conf_wtmp_location=/var/adm/wtmp | ||
4165 | conf_lastlog_location=/var/adm/lastlog | ||
4166 | cat >>confdefs.h <<\EOF | ||
4167 | #define USE_PIPES 1 | ||
4168 | EOF | ||
4169 | |||
4170 | ;; | ||
4171 | *-ncr-sysv*) | ||
4172 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4173 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4174 | LIBS="$LIBS -lc89" | ||
4175 | cat >>confdefs.h <<\EOF | ||
4176 | #define USE_PIPES 1 | ||
4177 | EOF | ||
4178 | |||
4179 | cat >>confdefs.h <<\EOF | ||
4180 | #define SSHD_ACQUIRES_CTTY 1 | ||
4181 | EOF | ||
4182 | |||
4183 | ;; | ||
4184 | *-sni-sysv*) | ||
4185 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4186 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4187 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4188 | IPADDR_IN_DISPLAY=yes | ||
4189 | cat >>confdefs.h <<\EOF | ||
4190 | #define USE_PIPES 1 | ||
4191 | EOF | ||
4192 | |||
4193 | cat >>confdefs.h <<\EOF | ||
4194 | #define IP_TOS_IS_BROKEN 1 | ||
4195 | EOF | ||
4196 | |||
4197 | cat >>confdefs.h <<\EOF | ||
4198 | #define SSHD_ACQUIRES_CTTY 1 | ||
4199 | EOF | ||
4200 | |||
4201 | external_path_file=/etc/default/login | ||
4202 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4203 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4204 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4205 | ;; | ||
4206 | *-*-sysv4.2*) | ||
4207 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4208 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4209 | cat >>confdefs.h <<\EOF | ||
4210 | #define USE_PIPES 1 | ||
4211 | EOF | ||
4212 | |||
4213 | cat >>confdefs.h <<\EOF | ||
4214 | #define SETEUID_BREAKS_SETUID 1 | ||
4215 | EOF | ||
4216 | |||
4217 | cat >>confdefs.h <<\EOF | ||
4218 | #define BROKEN_SETREUID 1 | ||
4219 | EOF | ||
4220 | |||
4221 | cat >>confdefs.h <<\EOF | ||
4222 | #define BROKEN_SETREGID 1 | ||
4223 | EOF | ||
4224 | |||
4225 | ;; | ||
4226 | *-*-sysv5*) | ||
4227 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4228 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4229 | cat >>confdefs.h <<\EOF | ||
4230 | #define USE_PIPES 1 | ||
4231 | EOF | ||
4232 | |||
4233 | cat >>confdefs.h <<\EOF | ||
4234 | #define SETEUID_BREAKS_SETUID 1 | ||
4235 | EOF | ||
4236 | |||
4237 | cat >>confdefs.h <<\EOF | ||
4238 | #define BROKEN_SETREUID 1 | ||
4239 | EOF | ||
4240 | |||
4241 | cat >>confdefs.h <<\EOF | ||
4242 | #define BROKEN_SETREGID 1 | ||
4243 | EOF | ||
4244 | |||
4245 | ;; | ||
4246 | *-*-sysv*) | ||
4247 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4248 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4249 | ;; | ||
4250 | *-*-sco3.2v4*) | ||
4251 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4252 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4253 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4254 | RANLIB=true | ||
4255 | no_dev_ptmx=1 | ||
4256 | cat >>confdefs.h <<\EOF | ||
4257 | #define BROKEN_SYS_TERMIO_H 1 | ||
4258 | EOF | ||
4259 | |||
4260 | cat >>confdefs.h <<\EOF | ||
4261 | #define USE_PIPES 1 | ||
4262 | EOF | ||
4263 | |||
4264 | cat >>confdefs.h <<\EOF | ||
4265 | #define HAVE_SECUREWARE 1 | ||
4266 | EOF | ||
4267 | |||
4268 | cat >>confdefs.h <<\EOF | ||
4269 | #define DISABLE_SHADOW 1 | ||
4270 | EOF | ||
4271 | |||
4272 | cat >>confdefs.h <<\EOF | ||
4273 | #define BROKEN_SAVED_UIDS 1 | ||
4274 | EOF | ||
4275 | |||
4276 | cat >>confdefs.h <<\EOF | ||
4277 | #define WITH_ABBREV_NO_TTY 1 | ||
4278 | EOF | ||
4279 | |||
4280 | for ac_func in getluid setluid | ||
4281 | do | ||
4282 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4283 | echo "$as_me:4283: checking for $ac_func" >&5 | ||
4284 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4285 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4287 | else | ||
4288 | cat >conftest.$ac_ext <<_ACEOF | ||
4289 | #line 4289 "configure" | ||
4290 | #include "confdefs.h" | ||
4291 | /* System header to define __stub macros and hopefully few prototypes, | ||
4292 | which can conflict with char $ac_func (); below. */ | ||
4293 | #include <assert.h> | ||
4294 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4295 | #ifdef __cplusplus | ||
4296 | extern "C" | ||
4297 | #endif | ||
4298 | /* We use char because int might match the return type of a gcc2 | ||
4299 | builtin and then its argument prototype would still apply. */ | ||
4300 | char $ac_func (); | ||
4301 | char (*f) (); | ||
4302 | |||
4303 | int | ||
4304 | main () | ||
4305 | { | ||
4306 | /* The GNU C library defines this for functions which it implements | ||
4307 | to always fail with ENOSYS. Some functions are actually named | ||
4308 | something starting with __ and the normal name is an alias. */ | ||
4309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4310 | choke me | ||
4311 | #else | ||
4312 | f = $ac_func; | ||
4313 | #endif | ||
4314 | |||
4315 | ; | ||
4316 | return 0; | ||
4317 | } | ||
4318 | _ACEOF | ||
4319 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4320 | if { (eval echo "$as_me:4320: \"$ac_link\"") >&5 | ||
4321 | (eval $ac_link) 2>&5 | ||
4322 | ac_status=$? | ||
4323 | echo "$as_me:4323: \$? = $ac_status" >&5 | ||
4324 | (exit $ac_status); } && | ||
4325 | { ac_try='test -s conftest$ac_exeext' | ||
4326 | { (eval echo "$as_me:4326: \"$ac_try\"") >&5 | ||
4327 | (eval $ac_try) 2>&5 | ||
4328 | ac_status=$? | ||
4329 | echo "$as_me:4329: \$? = $ac_status" >&5 | ||
4330 | (exit $ac_status); }; }; then | ||
4331 | eval "$as_ac_var=yes" | ||
4332 | else | ||
4333 | echo "$as_me: failed program was:" >&5 | ||
4334 | cat conftest.$ac_ext >&5 | ||
4335 | eval "$as_ac_var=no" | ||
4336 | fi | ||
4337 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4338 | fi | ||
4339 | echo "$as_me:4339: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4340 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4342 | cat >>confdefs.h <<EOF | ||
4343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4344 | EOF | ||
4345 | |||
4346 | fi | ||
4347 | done | ||
4348 | |||
4349 | MANTYPE=man | ||
4350 | do_sco3_extra_lib_check=yes | ||
4351 | ;; | ||
4352 | *-*-sco3.2v5*) | ||
4353 | if test -z "$GCC"; then | ||
4354 | CFLAGS="$CFLAGS -belf" | ||
4355 | fi | ||
4356 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4357 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4358 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4359 | no_dev_ptmx=1 | ||
4360 | cat >>confdefs.h <<\EOF | ||
4361 | #define USE_PIPES 1 | ||
4362 | EOF | ||
4363 | |||
4364 | cat >>confdefs.h <<\EOF | ||
4365 | #define HAVE_SECUREWARE 1 | ||
4366 | EOF | ||
4367 | |||
4368 | cat >>confdefs.h <<\EOF | ||
4369 | #define DISABLE_SHADOW 1 | ||
4370 | EOF | ||
4371 | |||
4372 | cat >>confdefs.h <<\EOF | ||
4373 | #define DISABLE_FD_PASSING 1 | ||
4374 | EOF | ||
4375 | |||
4376 | cat >>confdefs.h <<\EOF | ||
4377 | #define SETEUID_BREAKS_SETUID 1 | ||
4378 | EOF | ||
4379 | |||
4380 | cat >>confdefs.h <<\EOF | ||
4381 | #define BROKEN_SETREUID 1 | ||
4382 | EOF | ||
4383 | |||
4384 | cat >>confdefs.h <<\EOF | ||
4385 | #define BROKEN_SETREGID 1 | ||
4386 | EOF | ||
4387 | |||
4388 | cat >>confdefs.h <<\EOF | ||
4389 | #define WITH_ABBREV_NO_TTY 1 | ||
4390 | EOF | ||
4391 | |||
4392 | for ac_func in getluid setluid | ||
4393 | do | ||
4394 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4395 | echo "$as_me:4395: checking for $ac_func" >&5 | ||
4396 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4397 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4399 | else | ||
4400 | cat >conftest.$ac_ext <<_ACEOF | ||
4401 | #line 4401 "configure" | ||
4402 | #include "confdefs.h" | ||
4403 | /* System header to define __stub macros and hopefully few prototypes, | ||
4404 | which can conflict with char $ac_func (); below. */ | ||
4405 | #include <assert.h> | ||
4406 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4407 | #ifdef __cplusplus | ||
4408 | extern "C" | ||
4409 | #endif | ||
4410 | /* We use char because int might match the return type of a gcc2 | ||
4411 | builtin and then its argument prototype would still apply. */ | ||
4412 | char $ac_func (); | ||
4413 | char (*f) (); | ||
4414 | |||
4415 | int | ||
4416 | main () | ||
4417 | { | ||
4418 | /* The GNU C library defines this for functions which it implements | ||
4419 | to always fail with ENOSYS. Some functions are actually named | ||
4420 | something starting with __ and the normal name is an alias. */ | ||
4421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4422 | choke me | ||
4423 | #else | ||
4424 | f = $ac_func; | ||
4425 | #endif | ||
4426 | |||
4427 | ; | ||
4428 | return 0; | ||
4429 | } | ||
4430 | _ACEOF | ||
4431 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4432 | if { (eval echo "$as_me:4432: \"$ac_link\"") >&5 | ||
4433 | (eval $ac_link) 2>&5 | ||
4434 | ac_status=$? | ||
4435 | echo "$as_me:4435: \$? = $ac_status" >&5 | ||
4436 | (exit $ac_status); } && | ||
4437 | { ac_try='test -s conftest$ac_exeext' | ||
4438 | { (eval echo "$as_me:4438: \"$ac_try\"") >&5 | ||
4439 | (eval $ac_try) 2>&5 | ||
4440 | ac_status=$? | ||
4441 | echo "$as_me:4441: \$? = $ac_status" >&5 | ||
4442 | (exit $ac_status); }; }; then | ||
4443 | eval "$as_ac_var=yes" | ||
4444 | else | ||
4445 | echo "$as_me: failed program was:" >&5 | ||
4446 | cat conftest.$ac_ext >&5 | ||
4447 | eval "$as_ac_var=no" | ||
4448 | fi | ||
4449 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4450 | fi | ||
4451 | echo "$as_me:4451: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4452 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4453 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4454 | cat >>confdefs.h <<EOF | ||
4455 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4456 | EOF | ||
4457 | |||
4458 | fi | ||
4459 | done | ||
4460 | |||
4461 | MANTYPE=man | ||
4462 | ;; | ||
4463 | *-*-unicosmk*) | ||
4464 | cat >>confdefs.h <<\EOF | ||
4465 | #define USE_PIPES 1 | ||
4466 | EOF | ||
4467 | |||
4468 | cat >>confdefs.h <<\EOF | ||
4469 | #define DISABLE_FD_PASSING 1 | ||
4470 | EOF | ||
4471 | |||
4472 | LDFLAGS="$LDFLAGS" | ||
4473 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4474 | MANTYPE=cat | ||
4475 | ;; | ||
4476 | *-*-unicosmp*) | ||
4477 | cat >>confdefs.h <<\EOF | ||
4478 | #define WITH_ABBREV_NO_TTY 1 | ||
4479 | EOF | ||
4480 | |||
4481 | cat >>confdefs.h <<\EOF | ||
4482 | #define USE_PIPES 1 | ||
4483 | EOF | ||
4484 | |||
4485 | cat >>confdefs.h <<\EOF | ||
4486 | #define DISABLE_FD_PASSING 1 | ||
4487 | EOF | ||
4488 | |||
4489 | LDFLAGS="$LDFLAGS" | ||
4490 | LIBS="$LIBS -lgen -lacid" | ||
4491 | MANTYPE=cat | ||
4492 | ;; | ||
4493 | *-*-unicos*) | ||
4494 | cat >>confdefs.h <<\EOF | ||
4495 | #define USE_PIPES 1 | ||
4496 | EOF | ||
4497 | |||
4498 | cat >>confdefs.h <<\EOF | ||
4499 | #define DISABLE_FD_PASSING 1 | ||
4500 | EOF | ||
4501 | |||
4502 | cat >>confdefs.h <<\EOF | ||
4503 | #define NO_SSH_LASTLOG 1 | ||
4504 | EOF | ||
4505 | |||
4506 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4507 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4508 | MANTYPE=cat | ||
4509 | ;; | ||
4510 | *-dec-osf*) | ||
4511 | echo "$as_me:4511: checking for Digital Unix SIA" >&5 | ||
4512 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4513 | no_osfsia="" | ||
4514 | |||
4515 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4516 | if test "${with_osfsia+set}" = set; then | ||
4517 | withval="$with_osfsia" | ||
4518 | |||
4519 | if test "x$withval" = "xno" ; then | ||
4520 | echo "$as_me:4520: result: disabled" >&5 | ||
4521 | echo "${ECHO_T}disabled" >&6 | ||
4522 | no_osfsia=1 | ||
4523 | fi | ||
4524 | |||
4525 | fi; | ||
4526 | if test -z "$no_osfsia" ; then | ||
4527 | if test -f /etc/sia/matrix.conf; then | ||
4528 | echo "$as_me:4528: result: yes" >&5 | ||
4529 | echo "${ECHO_T}yes" >&6 | ||
4530 | cat >>confdefs.h <<\EOF | ||
4531 | #define HAVE_OSF_SIA 1 | ||
4532 | EOF | ||
4533 | |||
4534 | cat >>confdefs.h <<\EOF | ||
4535 | #define DISABLE_LOGIN 1 | ||
4536 | EOF | ||
4537 | |||
4538 | cat >>confdefs.h <<\EOF | ||
4539 | #define DISABLE_FD_PASSING 1 | ||
4540 | EOF | ||
4541 | |||
4542 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4543 | else | ||
4544 | echo "$as_me:4544: result: no" >&5 | ||
4545 | echo "${ECHO_T}no" >&6 | ||
4546 | fi | ||
4547 | fi | ||
4548 | cat >>confdefs.h <<\EOF | ||
4549 | #define DISABLE_FD_PASSING 1 | ||
4550 | EOF | ||
4551 | |||
4552 | cat >>confdefs.h <<\EOF | ||
4553 | #define BROKEN_GETADDRINFO 1 | ||
4554 | EOF | ||
4555 | |||
4556 | cat >>confdefs.h <<\EOF | ||
4557 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
4558 | EOF | ||
4559 | |||
4560 | ;; | ||
4561 | |||
4562 | *-*-nto-qnx) | ||
4563 | cat >>confdefs.h <<\EOF | ||
4564 | #define USE_PIPES 1 | ||
4565 | EOF | ||
4566 | |||
4567 | cat >>confdefs.h <<\EOF | ||
4568 | #define NO_X11_UNIX_SOCKETS 1 | ||
4569 | EOF | ||
4570 | |||
4571 | cat >>confdefs.h <<\EOF | ||
4572 | #define MISSING_NFDBITS 1 | ||
4573 | EOF | ||
4574 | |||
4575 | cat >>confdefs.h <<\EOF | ||
4576 | #define MISSING_HOWMANY 1 | ||
4577 | EOF | ||
4578 | |||
4579 | cat >>confdefs.h <<\EOF | ||
4580 | #define MISSING_FD_MASK 1 | ||
4581 | EOF | ||
4582 | |||
4583 | ;; | ||
4584 | esac | ||
4585 | |||
4586 | # Allow user to specify flags | ||
4587 | |||
4588 | # Check whether --with-cflags or --without-cflags was given. | ||
4589 | if test "${with_cflags+set}" = set; then | ||
4590 | withval="$with_cflags" | ||
4591 | |||
4592 | if test "x$withval" != "xno" ; then | ||
4593 | CFLAGS="$CFLAGS $withval" | ||
4594 | fi | ||
4595 | |||
4596 | fi; | ||
4597 | |||
4598 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4599 | if test "${with_cppflags+set}" = set; then | ||
4600 | withval="$with_cppflags" | ||
4601 | |||
4602 | if test "x$withval" != "xno"; then | ||
4603 | CPPFLAGS="$CPPFLAGS $withval" | ||
4604 | fi | ||
4605 | |||
4606 | fi; | ||
4607 | |||
4608 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4609 | if test "${with_ldflags+set}" = set; then | ||
4610 | withval="$with_ldflags" | ||
4611 | |||
4612 | if test "x$withval" != "xno" ; then | ||
4613 | LDFLAGS="$LDFLAGS $withval" | ||
4614 | fi | ||
4615 | |||
4616 | fi; | ||
4617 | |||
4618 | # Check whether --with-libs or --without-libs was given. | ||
4619 | if test "${with_libs+set}" = set; then | ||
4620 | withval="$with_libs" | ||
4621 | |||
4622 | if test "x$withval" != "xno" ; then | ||
4623 | LIBS="$LIBS $withval" | ||
4624 | fi | ||
4625 | |||
4626 | fi; | ||
4627 | |||
4628 | echo "$as_me:4628: checking compiler and flags for sanity" >&5 | ||
4629 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
4630 | if test "$cross_compiling" = yes; then | ||
4631 | { { echo "$as_me:4631: error: cannot run test program while cross compiling" >&5 | ||
4632 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
4633 | { (exit 1); exit 1; }; } | ||
4634 | else | ||
4635 | cat >conftest.$ac_ext <<_ACEOF | ||
4636 | #line 4636 "configure" | ||
4637 | #include "confdefs.h" | ||
4638 | |||
4639 | #include <stdio.h> | ||
4640 | int main(){exit(0);} | ||
4641 | |||
4642 | _ACEOF | ||
4643 | rm -f conftest$ac_exeext | ||
4644 | if { (eval echo "$as_me:4644: \"$ac_link\"") >&5 | ||
4645 | (eval $ac_link) 2>&5 | ||
4646 | ac_status=$? | ||
4647 | echo "$as_me:4647: \$? = $ac_status" >&5 | ||
4648 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4649 | { (eval echo "$as_me:4649: \"$ac_try\"") >&5 | ||
4650 | (eval $ac_try) 2>&5 | ||
4651 | ac_status=$? | ||
4652 | echo "$as_me:4652: \$? = $ac_status" >&5 | ||
4653 | (exit $ac_status); }; }; then | ||
4654 | echo "$as_me:4654: result: yes" >&5 | ||
4655 | echo "${ECHO_T}yes" >&6 | ||
4656 | else | ||
4657 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4658 | echo "$as_me: failed program was:" >&5 | ||
4659 | cat conftest.$ac_ext >&5 | ||
4660 | |||
4661 | echo "$as_me:4661: result: no" >&5 | ||
4662 | echo "${ECHO_T}no" >&6 | ||
4663 | { { echo "$as_me:4663: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
4664 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
4665 | { (exit 1); exit 1; }; } | ||
4666 | |||
4667 | fi | ||
4668 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4669 | fi | ||
4670 | |||
4671 | # Checks for header files. | ||
4672 | |||
4673 | for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \ | ||
4674 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
4675 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4676 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
4677 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4678 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ | ||
4679 | sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | ||
4680 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
4681 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
4682 | util.h utime.h utmp.h utmpx.h | ||
4683 | do | ||
4684 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4685 | echo "$as_me:4685: checking for $ac_header" >&5 | ||
4686 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4689 | else | ||
4690 | cat >conftest.$ac_ext <<_ACEOF | ||
4691 | #line 4691 "configure" | ||
4692 | #include "confdefs.h" | ||
4693 | #include <$ac_header> | ||
4694 | _ACEOF | ||
4695 | if { (eval echo "$as_me:4695: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4697 | ac_status=$? | ||
4698 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4699 | rm -f conftest.er1 | ||
4700 | cat conftest.err >&5 | ||
4701 | echo "$as_me:4701: \$? = $ac_status" >&5 | ||
4702 | (exit $ac_status); } >/dev/null; then | ||
4703 | if test -s conftest.err; then | ||
4704 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4705 | else | ||
4706 | ac_cpp_err= | ||
4707 | fi | ||
4708 | else | ||
4709 | ac_cpp_err=yes | ||
4710 | fi | ||
4711 | if test -z "$ac_cpp_err"; then | ||
4712 | eval "$as_ac_Header=yes" | ||
4713 | else | ||
4714 | echo "$as_me: failed program was:" >&5 | ||
4715 | cat conftest.$ac_ext >&5 | ||
4716 | eval "$as_ac_Header=no" | ||
4717 | fi | ||
4718 | rm -f conftest.err conftest.$ac_ext | ||
4719 | fi | ||
4720 | echo "$as_me:4720: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4722 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4723 | cat >>confdefs.h <<EOF | ||
4724 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4725 | EOF | ||
4726 | |||
4727 | fi | ||
4728 | done | ||
4729 | |||
4730 | # Checks for libraries. | ||
4731 | echo "$as_me:4731: checking for yp_match" >&5 | ||
4732 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
4733 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4735 | else | ||
4736 | cat >conftest.$ac_ext <<_ACEOF | ||
4737 | #line 4737 "configure" | ||
4738 | #include "confdefs.h" | ||
4739 | /* System header to define __stub macros and hopefully few prototypes, | ||
4740 | which can conflict with char yp_match (); below. */ | ||
4741 | #include <assert.h> | ||
4742 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4743 | #ifdef __cplusplus | ||
4744 | extern "C" | ||
4745 | #endif | ||
4746 | /* We use char because int might match the return type of a gcc2 | ||
4747 | builtin and then its argument prototype would still apply. */ | ||
4748 | char yp_match (); | ||
4749 | char (*f) (); | ||
4750 | |||
4751 | int | ||
4752 | main () | ||
4753 | { | ||
4754 | /* The GNU C library defines this for functions which it implements | ||
4755 | to always fail with ENOSYS. Some functions are actually named | ||
4756 | something starting with __ and the normal name is an alias. */ | ||
4757 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
4758 | choke me | ||
4759 | #else | ||
4760 | f = yp_match; | ||
4761 | #endif | ||
4762 | |||
4763 | ; | ||
4764 | return 0; | ||
4765 | } | ||
4766 | _ACEOF | ||
4767 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4768 | if { (eval echo "$as_me:4768: \"$ac_link\"") >&5 | ||
4769 | (eval $ac_link) 2>&5 | ||
4770 | ac_status=$? | ||
4771 | echo "$as_me:4771: \$? = $ac_status" >&5 | ||
4772 | (exit $ac_status); } && | ||
4773 | { ac_try='test -s conftest$ac_exeext' | ||
4774 | { (eval echo "$as_me:4774: \"$ac_try\"") >&5 | ||
4775 | (eval $ac_try) 2>&5 | ||
4776 | ac_status=$? | ||
4777 | echo "$as_me:4777: \$? = $ac_status" >&5 | ||
4778 | (exit $ac_status); }; }; then | ||
4779 | ac_cv_func_yp_match=yes | ||
4780 | else | ||
4781 | echo "$as_me: failed program was:" >&5 | ||
4782 | cat conftest.$ac_ext >&5 | ||
4783 | ac_cv_func_yp_match=no | ||
4784 | fi | ||
4785 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4786 | fi | ||
4787 | echo "$as_me:4787: result: $ac_cv_func_yp_match" >&5 | ||
4788 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
4789 | if test $ac_cv_func_yp_match = yes; then | ||
4790 | : | ||
4791 | else | ||
4792 | |||
4793 | echo "$as_me:4793: checking for yp_match in -lnsl" >&5 | ||
4794 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
4795 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4797 | else | ||
4798 | ac_check_lib_save_LIBS=$LIBS | ||
4799 | LIBS="-lnsl $LIBS" | ||
4800 | cat >conftest.$ac_ext <<_ACEOF | ||
4801 | #line 4801 "configure" | ||
4802 | #include "confdefs.h" | ||
4803 | |||
4804 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4805 | #ifdef __cplusplus | ||
4806 | extern "C" | ||
4807 | #endif | ||
4808 | /* We use char because int might match the return type of a gcc2 | ||
4809 | builtin and then its argument prototype would still apply. */ | ||
4810 | char yp_match (); | ||
4811 | int | ||
4812 | main () | ||
4813 | { | ||
4814 | yp_match (); | ||
4815 | ; | ||
4816 | return 0; | ||
4817 | } | ||
4818 | _ACEOF | ||
4819 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4820 | if { (eval echo "$as_me:4820: \"$ac_link\"") >&5 | ||
4821 | (eval $ac_link) 2>&5 | ||
4822 | ac_status=$? | ||
4823 | echo "$as_me:4823: \$? = $ac_status" >&5 | ||
4824 | (exit $ac_status); } && | ||
4825 | { ac_try='test -s conftest$ac_exeext' | ||
4826 | { (eval echo "$as_me:4826: \"$ac_try\"") >&5 | ||
4827 | (eval $ac_try) 2>&5 | ||
4828 | ac_status=$? | ||
4829 | echo "$as_me:4829: \$? = $ac_status" >&5 | ||
4830 | (exit $ac_status); }; }; then | ||
4831 | ac_cv_lib_nsl_yp_match=yes | ||
4832 | else | ||
4833 | echo "$as_me: failed program was:" >&5 | ||
4834 | cat conftest.$ac_ext >&5 | ||
4835 | ac_cv_lib_nsl_yp_match=no | ||
4836 | fi | ||
4837 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4838 | LIBS=$ac_check_lib_save_LIBS | ||
4839 | fi | ||
4840 | echo "$as_me:4840: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
4841 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
4842 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
4843 | cat >>confdefs.h <<EOF | ||
4844 | #define HAVE_LIBNSL 1 | ||
4845 | EOF | ||
4846 | |||
4847 | LIBS="-lnsl $LIBS" | ||
4848 | |||
4849 | fi | ||
4850 | |||
4851 | fi | ||
4852 | |||
4853 | echo "$as_me:4853: checking for setsockopt" >&5 | ||
4854 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
4855 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4857 | else | ||
4858 | cat >conftest.$ac_ext <<_ACEOF | ||
4859 | #line 4859 "configure" | ||
4860 | #include "confdefs.h" | ||
4861 | /* System header to define __stub macros and hopefully few prototypes, | ||
4862 | which can conflict with char setsockopt (); below. */ | ||
4863 | #include <assert.h> | ||
4864 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4865 | #ifdef __cplusplus | ||
4866 | extern "C" | ||
4867 | #endif | ||
4868 | /* We use char because int might match the return type of a gcc2 | ||
4869 | builtin and then its argument prototype would still apply. */ | ||
4870 | char setsockopt (); | ||
4871 | char (*f) (); | ||
4872 | |||
4873 | int | ||
4874 | main () | ||
4875 | { | ||
4876 | /* The GNU C library defines this for functions which it implements | ||
4877 | to always fail with ENOSYS. Some functions are actually named | ||
4878 | something starting with __ and the normal name is an alias. */ | ||
4879 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
4880 | choke me | ||
4881 | #else | ||
4882 | f = setsockopt; | ||
4883 | #endif | ||
4884 | |||
4885 | ; | ||
4886 | return 0; | ||
4887 | } | ||
4888 | _ACEOF | ||
4889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4890 | if { (eval echo "$as_me:4890: \"$ac_link\"") >&5 | ||
4891 | (eval $ac_link) 2>&5 | ||
4892 | ac_status=$? | ||
4893 | echo "$as_me:4893: \$? = $ac_status" >&5 | ||
4894 | (exit $ac_status); } && | ||
4895 | { ac_try='test -s conftest$ac_exeext' | ||
4896 | { (eval echo "$as_me:4896: \"$ac_try\"") >&5 | ||
4897 | (eval $ac_try) 2>&5 | ||
4898 | ac_status=$? | ||
4899 | echo "$as_me:4899: \$? = $ac_status" >&5 | ||
4900 | (exit $ac_status); }; }; then | ||
4901 | ac_cv_func_setsockopt=yes | ||
4902 | else | ||
4903 | echo "$as_me: failed program was:" >&5 | ||
4904 | cat conftest.$ac_ext >&5 | ||
4905 | ac_cv_func_setsockopt=no | ||
4906 | fi | ||
4907 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4908 | fi | ||
4909 | echo "$as_me:4909: result: $ac_cv_func_setsockopt" >&5 | ||
4910 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
4911 | if test $ac_cv_func_setsockopt = yes; then | ||
4912 | : | ||
4913 | else | ||
4914 | |||
4915 | echo "$as_me:4915: checking for setsockopt in -lsocket" >&5 | ||
4916 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
4917 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4919 | else | ||
4920 | ac_check_lib_save_LIBS=$LIBS | ||
4921 | LIBS="-lsocket $LIBS" | ||
4922 | cat >conftest.$ac_ext <<_ACEOF | ||
4923 | #line 4923 "configure" | ||
4924 | #include "confdefs.h" | ||
4925 | |||
4926 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4927 | #ifdef __cplusplus | ||
4928 | extern "C" | ||
4929 | #endif | ||
4930 | /* We use char because int might match the return type of a gcc2 | ||
4931 | builtin and then its argument prototype would still apply. */ | ||
4932 | char setsockopt (); | ||
4933 | int | ||
4934 | main () | ||
4935 | { | ||
4936 | setsockopt (); | ||
4937 | ; | ||
4938 | return 0; | ||
4939 | } | ||
4940 | _ACEOF | ||
4941 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4942 | if { (eval echo "$as_me:4942: \"$ac_link\"") >&5 | ||
4943 | (eval $ac_link) 2>&5 | ||
4944 | ac_status=$? | ||
4945 | echo "$as_me:4945: \$? = $ac_status" >&5 | ||
4946 | (exit $ac_status); } && | ||
4947 | { ac_try='test -s conftest$ac_exeext' | ||
4948 | { (eval echo "$as_me:4948: \"$ac_try\"") >&5 | ||
4949 | (eval $ac_try) 2>&5 | ||
4950 | ac_status=$? | ||
4951 | echo "$as_me:4951: \$? = $ac_status" >&5 | ||
4952 | (exit $ac_status); }; }; then | ||
4953 | ac_cv_lib_socket_setsockopt=yes | ||
4954 | else | ||
4955 | echo "$as_me: failed program was:" >&5 | ||
4956 | cat conftest.$ac_ext >&5 | ||
4957 | ac_cv_lib_socket_setsockopt=no | ||
4958 | fi | ||
4959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4960 | LIBS=$ac_check_lib_save_LIBS | ||
4961 | fi | ||
4962 | echo "$as_me:4962: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
4963 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
4964 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
4965 | cat >>confdefs.h <<EOF | ||
4966 | #define HAVE_LIBSOCKET 1 | ||
4967 | EOF | ||
4968 | |||
4969 | LIBS="-lsocket $LIBS" | ||
4970 | |||
4971 | fi | ||
4972 | |||
4973 | fi | ||
4974 | |||
4975 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
4976 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
4977 | echo "$as_me:4977: checking for innetgr in -lrpc" >&5 | ||
4978 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
4979 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4981 | else | ||
4982 | ac_check_lib_save_LIBS=$LIBS | ||
4983 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
4984 | cat >conftest.$ac_ext <<_ACEOF | ||
4985 | #line 4985 "configure" | ||
4986 | #include "confdefs.h" | ||
4987 | |||
4988 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4989 | #ifdef __cplusplus | ||
4990 | extern "C" | ||
4991 | #endif | ||
4992 | /* We use char because int might match the return type of a gcc2 | ||
4993 | builtin and then its argument prototype would still apply. */ | ||
4994 | char innetgr (); | ||
4995 | int | ||
4996 | main () | ||
4997 | { | ||
4998 | innetgr (); | ||
4999 | ; | ||
5000 | return 0; | ||
5001 | } | ||
5002 | _ACEOF | ||
5003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5004 | if { (eval echo "$as_me:5004: \"$ac_link\"") >&5 | ||
5005 | (eval $ac_link) 2>&5 | ||
5006 | ac_status=$? | ||
5007 | echo "$as_me:5007: \$? = $ac_status" >&5 | ||
5008 | (exit $ac_status); } && | ||
5009 | { ac_try='test -s conftest$ac_exeext' | ||
5010 | { (eval echo "$as_me:5010: \"$ac_try\"") >&5 | ||
5011 | (eval $ac_try) 2>&5 | ||
5012 | ac_status=$? | ||
5013 | echo "$as_me:5013: \$? = $ac_status" >&5 | ||
5014 | (exit $ac_status); }; }; then | ||
5015 | ac_cv_lib_rpc_innetgr=yes | ||
5016 | else | ||
5017 | echo "$as_me: failed program was:" >&5 | ||
5018 | cat conftest.$ac_ext >&5 | ||
5019 | ac_cv_lib_rpc_innetgr=no | ||
5020 | fi | ||
5021 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5022 | LIBS=$ac_check_lib_save_LIBS | ||
5023 | fi | ||
5024 | echo "$as_me:5024: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5025 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5026 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5027 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5028 | fi | ||
5029 | |||
5030 | fi | ||
5031 | fi | ||
5032 | |||
5033 | for ac_func in dirname | ||
5034 | do | ||
5035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5036 | echo "$as_me:5036: checking for $ac_func" >&5 | ||
5037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5038 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5040 | else | ||
5041 | cat >conftest.$ac_ext <<_ACEOF | ||
5042 | #line 5042 "configure" | ||
5043 | #include "confdefs.h" | ||
5044 | /* System header to define __stub macros and hopefully few prototypes, | ||
5045 | which can conflict with char $ac_func (); below. */ | ||
5046 | #include <assert.h> | ||
5047 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5048 | #ifdef __cplusplus | ||
5049 | extern "C" | ||
5050 | #endif | ||
5051 | /* We use char because int might match the return type of a gcc2 | ||
5052 | builtin and then its argument prototype would still apply. */ | ||
5053 | char $ac_func (); | ||
5054 | char (*f) (); | ||
5055 | |||
5056 | int | ||
5057 | main () | ||
5058 | { | ||
5059 | /* The GNU C library defines this for functions which it implements | ||
5060 | to always fail with ENOSYS. Some functions are actually named | ||
5061 | something starting with __ and the normal name is an alias. */ | ||
5062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5063 | choke me | ||
5064 | #else | ||
5065 | f = $ac_func; | ||
5066 | #endif | ||
5067 | |||
5068 | ; | ||
5069 | return 0; | ||
5070 | } | ||
5071 | _ACEOF | ||
5072 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5073 | if { (eval echo "$as_me:5073: \"$ac_link\"") >&5 | ||
5074 | (eval $ac_link) 2>&5 | ||
5075 | ac_status=$? | ||
5076 | echo "$as_me:5076: \$? = $ac_status" >&5 | ||
5077 | (exit $ac_status); } && | ||
5078 | { ac_try='test -s conftest$ac_exeext' | ||
5079 | { (eval echo "$as_me:5079: \"$ac_try\"") >&5 | ||
5080 | (eval $ac_try) 2>&5 | ||
5081 | ac_status=$? | ||
5082 | echo "$as_me:5082: \$? = $ac_status" >&5 | ||
5083 | (exit $ac_status); }; }; then | ||
5084 | eval "$as_ac_var=yes" | ||
5085 | else | ||
5086 | echo "$as_me: failed program was:" >&5 | ||
5087 | cat conftest.$ac_ext >&5 | ||
5088 | eval "$as_ac_var=no" | ||
5089 | fi | ||
5090 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5091 | fi | ||
5092 | echo "$as_me:5092: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5093 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5094 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5095 | cat >>confdefs.h <<EOF | ||
5096 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5097 | EOF | ||
5098 | |||
5099 | for ac_header in libgen.h | ||
5100 | do | ||
5101 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5102 | echo "$as_me:5102: checking for $ac_header" >&5 | ||
5103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5106 | else | ||
5107 | cat >conftest.$ac_ext <<_ACEOF | ||
5108 | #line 5108 "configure" | ||
5109 | #include "confdefs.h" | ||
5110 | #include <$ac_header> | ||
5111 | _ACEOF | ||
5112 | if { (eval echo "$as_me:5112: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5114 | ac_status=$? | ||
5115 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5116 | rm -f conftest.er1 | ||
5117 | cat conftest.err >&5 | ||
5118 | echo "$as_me:5118: \$? = $ac_status" >&5 | ||
5119 | (exit $ac_status); } >/dev/null; then | ||
5120 | if test -s conftest.err; then | ||
5121 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5122 | else | ||
5123 | ac_cpp_err= | ||
5124 | fi | ||
5125 | else | ||
5126 | ac_cpp_err=yes | ||
5127 | fi | ||
5128 | if test -z "$ac_cpp_err"; then | ||
5129 | eval "$as_ac_Header=yes" | ||
5130 | else | ||
5131 | echo "$as_me: failed program was:" >&5 | ||
5132 | cat conftest.$ac_ext >&5 | ||
5133 | eval "$as_ac_Header=no" | ||
5134 | fi | ||
5135 | rm -f conftest.err conftest.$ac_ext | ||
5136 | fi | ||
5137 | echo "$as_me:5137: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5140 | cat >>confdefs.h <<EOF | ||
5141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5142 | EOF | ||
5143 | |||
5144 | fi | ||
5145 | done | ||
5146 | |||
5147 | else | ||
5148 | |||
5149 | echo "$as_me:5149: checking for dirname in -lgen" >&5 | ||
5150 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
5151 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5153 | else | ||
5154 | ac_check_lib_save_LIBS=$LIBS | ||
5155 | LIBS="-lgen $LIBS" | ||
5156 | cat >conftest.$ac_ext <<_ACEOF | ||
5157 | #line 5157 "configure" | ||
5158 | #include "confdefs.h" | ||
5159 | |||
5160 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5161 | #ifdef __cplusplus | ||
5162 | extern "C" | ||
5163 | #endif | ||
5164 | /* We use char because int might match the return type of a gcc2 | ||
5165 | builtin and then its argument prototype would still apply. */ | ||
5166 | char dirname (); | ||
5167 | int | ||
5168 | main () | ||
5169 | { | ||
5170 | dirname (); | ||
5171 | ; | ||
5172 | return 0; | ||
5173 | } | ||
5174 | _ACEOF | ||
5175 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5176 | if { (eval echo "$as_me:5176: \"$ac_link\"") >&5 | ||
5177 | (eval $ac_link) 2>&5 | ||
5178 | ac_status=$? | ||
5179 | echo "$as_me:5179: \$? = $ac_status" >&5 | ||
5180 | (exit $ac_status); } && | ||
5181 | { ac_try='test -s conftest$ac_exeext' | ||
5182 | { (eval echo "$as_me:5182: \"$ac_try\"") >&5 | ||
5183 | (eval $ac_try) 2>&5 | ||
5184 | ac_status=$? | ||
5185 | echo "$as_me:5185: \$? = $ac_status" >&5 | ||
5186 | (exit $ac_status); }; }; then | ||
5187 | ac_cv_lib_gen_dirname=yes | ||
5188 | else | ||
5189 | echo "$as_me: failed program was:" >&5 | ||
5190 | cat conftest.$ac_ext >&5 | ||
5191 | ac_cv_lib_gen_dirname=no | ||
5192 | fi | ||
5193 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5194 | LIBS=$ac_check_lib_save_LIBS | ||
5195 | fi | ||
5196 | echo "$as_me:5196: result: $ac_cv_lib_gen_dirname" >&5 | ||
5197 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
5198 | if test $ac_cv_lib_gen_dirname = yes; then | ||
5199 | |||
5200 | echo "$as_me:5200: checking for broken dirname" >&5 | ||
5201 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
5202 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
5203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5204 | else | ||
5205 | |||
5206 | save_LIBS="$LIBS" | ||
5207 | LIBS="$LIBS -lgen" | ||
5208 | if test "$cross_compiling" = yes; then | ||
5209 | { { echo "$as_me:5209: error: cannot run test program while cross compiling" >&5 | ||
5210 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5211 | { (exit 1); exit 1; }; } | ||
5212 | else | ||
5213 | cat >conftest.$ac_ext <<_ACEOF | ||
5214 | #line 5214 "configure" | ||
5215 | #include "confdefs.h" | ||
5216 | |||
5217 | #include <libgen.h> | ||
5218 | #include <string.h> | ||
5219 | |||
5220 | int main(int argc, char **argv) { | ||
5221 | char *s, buf[32]; | ||
5222 | |||
5223 | strncpy(buf,"/etc", 32); | ||
5224 | s = dirname(buf); | ||
5225 | if (!s || strncmp(s, "/", 32) != 0) { | ||
5226 | exit(1); | ||
5227 | } else { | ||
5228 | exit(0); | ||
5229 | } | ||
5230 | } | ||
5231 | |||
5232 | _ACEOF | ||
5233 | rm -f conftest$ac_exeext | ||
5234 | if { (eval echo "$as_me:5234: \"$ac_link\"") >&5 | ||
5235 | (eval $ac_link) 2>&5 | ||
5236 | ac_status=$? | ||
5237 | echo "$as_me:5237: \$? = $ac_status" >&5 | ||
5238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5239 | { (eval echo "$as_me:5239: \"$ac_try\"") >&5 | ||
5240 | (eval $ac_try) 2>&5 | ||
5241 | ac_status=$? | ||
5242 | echo "$as_me:5242: \$? = $ac_status" >&5 | ||
5243 | (exit $ac_status); }; }; then | ||
5244 | ac_cv_have_broken_dirname="no" | ||
5245 | else | ||
5246 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5247 | echo "$as_me: failed program was:" >&5 | ||
5248 | cat conftest.$ac_ext >&5 | ||
5249 | ac_cv_have_broken_dirname="yes" | ||
5250 | |||
5251 | fi | ||
5252 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5253 | fi | ||
5254 | LIBS="$save_LIBS" | ||
5255 | |||
5256 | fi | ||
5257 | echo "$as_me:5257: result: $ac_cv_have_broken_dirname" >&5 | ||
5258 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
5259 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
5260 | LIBS="$LIBS -lgen" | ||
5261 | cat >>confdefs.h <<\EOF | ||
5262 | #define HAVE_DIRNAME 1 | ||
5263 | EOF | ||
5264 | |||
5265 | for ac_header in libgen.h | ||
5266 | do | ||
5267 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5268 | echo "$as_me:5268: checking for $ac_header" >&5 | ||
5269 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5270 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5272 | else | ||
5273 | cat >conftest.$ac_ext <<_ACEOF | ||
5274 | #line 5274 "configure" | ||
5275 | #include "confdefs.h" | ||
5276 | #include <$ac_header> | ||
5277 | _ACEOF | ||
5278 | if { (eval echo "$as_me:5278: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5279 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5280 | ac_status=$? | ||
5281 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5282 | rm -f conftest.er1 | ||
5283 | cat conftest.err >&5 | ||
5284 | echo "$as_me:5284: \$? = $ac_status" >&5 | ||
5285 | (exit $ac_status); } >/dev/null; then | ||
5286 | if test -s conftest.err; then | ||
5287 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5288 | else | ||
5289 | ac_cpp_err= | ||
5290 | fi | ||
5291 | else | ||
5292 | ac_cpp_err=yes | ||
5293 | fi | ||
5294 | if test -z "$ac_cpp_err"; then | ||
5295 | eval "$as_ac_Header=yes" | ||
5296 | else | ||
5297 | echo "$as_me: failed program was:" >&5 | ||
5298 | cat conftest.$ac_ext >&5 | ||
5299 | eval "$as_ac_Header=no" | ||
5300 | fi | ||
5301 | rm -f conftest.err conftest.$ac_ext | ||
5302 | fi | ||
5303 | echo "$as_me:5303: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5304 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5305 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5306 | cat >>confdefs.h <<EOF | ||
5307 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5308 | EOF | ||
5309 | |||
5310 | fi | ||
5311 | done | ||
5312 | |||
5313 | fi | ||
5314 | |||
5315 | fi | ||
5316 | |||
5317 | fi | ||
5318 | done | ||
5319 | |||
5320 | echo "$as_me:5320: checking for getspnam" >&5 | ||
5321 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5322 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5324 | else | ||
5325 | cat >conftest.$ac_ext <<_ACEOF | ||
5326 | #line 5326 "configure" | ||
5327 | #include "confdefs.h" | ||
5328 | /* System header to define __stub macros and hopefully few prototypes, | ||
5329 | which can conflict with char getspnam (); below. */ | ||
5330 | #include <assert.h> | ||
5331 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5332 | #ifdef __cplusplus | ||
5333 | extern "C" | ||
5334 | #endif | ||
5335 | /* We use char because int might match the return type of a gcc2 | ||
5336 | builtin and then its argument prototype would still apply. */ | ||
5337 | char getspnam (); | ||
5338 | char (*f) (); | ||
5339 | |||
5340 | int | ||
5341 | main () | ||
5342 | { | ||
5343 | /* The GNU C library defines this for functions which it implements | ||
5344 | to always fail with ENOSYS. Some functions are actually named | ||
5345 | something starting with __ and the normal name is an alias. */ | ||
5346 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5347 | choke me | ||
5348 | #else | ||
5349 | f = getspnam; | ||
5350 | #endif | ||
5351 | |||
5352 | ; | ||
5353 | return 0; | ||
5354 | } | ||
5355 | _ACEOF | ||
5356 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5357 | if { (eval echo "$as_me:5357: \"$ac_link\"") >&5 | ||
5358 | (eval $ac_link) 2>&5 | ||
5359 | ac_status=$? | ||
5360 | echo "$as_me:5360: \$? = $ac_status" >&5 | ||
5361 | (exit $ac_status); } && | ||
5362 | { ac_try='test -s conftest$ac_exeext' | ||
5363 | { (eval echo "$as_me:5363: \"$ac_try\"") >&5 | ||
5364 | (eval $ac_try) 2>&5 | ||
5365 | ac_status=$? | ||
5366 | echo "$as_me:5366: \$? = $ac_status" >&5 | ||
5367 | (exit $ac_status); }; }; then | ||
5368 | ac_cv_func_getspnam=yes | ||
5369 | else | ||
5370 | echo "$as_me: failed program was:" >&5 | ||
5371 | cat conftest.$ac_ext >&5 | ||
5372 | ac_cv_func_getspnam=no | ||
5373 | fi | ||
5374 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5375 | fi | ||
5376 | echo "$as_me:5376: result: $ac_cv_func_getspnam" >&5 | ||
5377 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5378 | if test $ac_cv_func_getspnam = yes; then | ||
5379 | : | ||
5380 | else | ||
5381 | echo "$as_me:5381: checking for getspnam in -lgen" >&5 | ||
5382 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5383 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5385 | else | ||
5386 | ac_check_lib_save_LIBS=$LIBS | ||
5387 | LIBS="-lgen $LIBS" | ||
5388 | cat >conftest.$ac_ext <<_ACEOF | ||
5389 | #line 5389 "configure" | ||
5390 | #include "confdefs.h" | ||
5391 | |||
5392 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5393 | #ifdef __cplusplus | ||
5394 | extern "C" | ||
5395 | #endif | ||
5396 | /* We use char because int might match the return type of a gcc2 | ||
5397 | builtin and then its argument prototype would still apply. */ | ||
5398 | char getspnam (); | ||
5399 | int | ||
5400 | main () | ||
5401 | { | ||
5402 | getspnam (); | ||
5403 | ; | ||
5404 | return 0; | ||
5405 | } | ||
5406 | _ACEOF | ||
5407 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5408 | if { (eval echo "$as_me:5408: \"$ac_link\"") >&5 | ||
5409 | (eval $ac_link) 2>&5 | ||
5410 | ac_status=$? | ||
5411 | echo "$as_me:5411: \$? = $ac_status" >&5 | ||
5412 | (exit $ac_status); } && | ||
5413 | { ac_try='test -s conftest$ac_exeext' | ||
5414 | { (eval echo "$as_me:5414: \"$ac_try\"") >&5 | ||
5415 | (eval $ac_try) 2>&5 | ||
5416 | ac_status=$? | ||
5417 | echo "$as_me:5417: \$? = $ac_status" >&5 | ||
5418 | (exit $ac_status); }; }; then | ||
5419 | ac_cv_lib_gen_getspnam=yes | ||
5420 | else | ||
5421 | echo "$as_me: failed program was:" >&5 | ||
5422 | cat conftest.$ac_ext >&5 | ||
5423 | ac_cv_lib_gen_getspnam=no | ||
5424 | fi | ||
5425 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5426 | LIBS=$ac_check_lib_save_LIBS | ||
5427 | fi | ||
5428 | echo "$as_me:5428: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5429 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5430 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5431 | LIBS="$LIBS -lgen" | ||
5432 | fi | ||
5433 | |||
5434 | fi | ||
5435 | |||
5436 | echo "$as_me:5436: checking for library containing basename" >&5 | ||
5437 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
5438 | if test "${ac_cv_search_basename+set}" = set; then | ||
5439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5440 | else | ||
5441 | ac_func_search_save_LIBS=$LIBS | ||
5442 | ac_cv_search_basename=no | ||
5443 | cat >conftest.$ac_ext <<_ACEOF | ||
5444 | #line 5444 "configure" | ||
5445 | #include "confdefs.h" | ||
5446 | |||
5447 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5448 | #ifdef __cplusplus | ||
5449 | extern "C" | ||
5450 | #endif | ||
5451 | /* We use char because int might match the return type of a gcc2 | ||
5452 | builtin and then its argument prototype would still apply. */ | ||
5453 | char basename (); | ||
5454 | int | ||
5455 | main () | ||
5456 | { | ||
5457 | basename (); | ||
5458 | ; | ||
5459 | return 0; | ||
5460 | } | ||
5461 | _ACEOF | ||
5462 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5463 | if { (eval echo "$as_me:5463: \"$ac_link\"") >&5 | ||
5464 | (eval $ac_link) 2>&5 | ||
5465 | ac_status=$? | ||
5466 | echo "$as_me:5466: \$? = $ac_status" >&5 | ||
5467 | (exit $ac_status); } && | ||
5468 | { ac_try='test -s conftest$ac_exeext' | ||
5469 | { (eval echo "$as_me:5469: \"$ac_try\"") >&5 | ||
5470 | (eval $ac_try) 2>&5 | ||
5471 | ac_status=$? | ||
5472 | echo "$as_me:5472: \$? = $ac_status" >&5 | ||
5473 | (exit $ac_status); }; }; then | ||
5474 | ac_cv_search_basename="none required" | ||
5475 | else | ||
5476 | echo "$as_me: failed program was:" >&5 | ||
5477 | cat conftest.$ac_ext >&5 | ||
5478 | fi | ||
5479 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5480 | if test "$ac_cv_search_basename" = no; then | ||
5481 | for ac_lib in gen; do | ||
5482 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5483 | cat >conftest.$ac_ext <<_ACEOF | ||
5484 | #line 5484 "configure" | ||
5485 | #include "confdefs.h" | ||
5486 | |||
5487 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5488 | #ifdef __cplusplus | ||
5489 | extern "C" | ||
5490 | #endif | ||
5491 | /* We use char because int might match the return type of a gcc2 | ||
5492 | builtin and then its argument prototype would still apply. */ | ||
5493 | char basename (); | ||
5494 | int | ||
5495 | main () | ||
5496 | { | ||
5497 | basename (); | ||
5498 | ; | ||
5499 | return 0; | ||
5500 | } | ||
5501 | _ACEOF | ||
5502 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5503 | if { (eval echo "$as_me:5503: \"$ac_link\"") >&5 | ||
5504 | (eval $ac_link) 2>&5 | ||
5505 | ac_status=$? | ||
5506 | echo "$as_me:5506: \$? = $ac_status" >&5 | ||
5507 | (exit $ac_status); } && | ||
5508 | { ac_try='test -s conftest$ac_exeext' | ||
5509 | { (eval echo "$as_me:5509: \"$ac_try\"") >&5 | ||
5510 | (eval $ac_try) 2>&5 | ||
5511 | ac_status=$? | ||
5512 | echo "$as_me:5512: \$? = $ac_status" >&5 | ||
5513 | (exit $ac_status); }; }; then | ||
5514 | ac_cv_search_basename="-l$ac_lib" | ||
5515 | break | ||
5516 | else | ||
5517 | echo "$as_me: failed program was:" >&5 | ||
5518 | cat conftest.$ac_ext >&5 | ||
5519 | fi | ||
5520 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5521 | done | ||
5522 | fi | ||
5523 | LIBS=$ac_func_search_save_LIBS | ||
5524 | fi | ||
5525 | echo "$as_me:5525: result: $ac_cv_search_basename" >&5 | ||
5526 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
5527 | if test "$ac_cv_search_basename" != no; then | ||
5528 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
5529 | cat >>confdefs.h <<\EOF | ||
5530 | #define HAVE_BASENAME 1 | ||
5531 | EOF | ||
5532 | |||
5533 | fi | ||
5534 | |||
5535 | # Check whether --with-rpath or --without-rpath was given. | ||
5536 | if test "${with_rpath+set}" = set; then | ||
5537 | withval="$with_rpath" | ||
5538 | |||
5539 | if test "x$withval" = "xno" ; then | ||
5540 | need_dash_r="" | ||
5541 | fi | ||
5542 | if test "x$withval" = "xyes" ; then | ||
5543 | need_dash_r=1 | ||
5544 | fi | ||
5545 | |||
5546 | fi; | ||
5547 | |||
5548 | # Check whether --with-zlib or --without-zlib was given. | ||
5549 | if test "${with_zlib+set}" = set; then | ||
5550 | withval="$with_zlib" | ||
5551 | |||
5552 | if test "x$withval" = "xno" ; then | ||
5553 | { { echo "$as_me:5553: error: *** zlib is required ***" >&5 | ||
5554 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5555 | { (exit 1); exit 1; }; } | ||
5556 | fi | ||
5557 | if test -d "$withval/lib"; then | ||
5558 | if test -n "${need_dash_r}"; then | ||
5559 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5560 | else | ||
5561 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5562 | fi | ||
5563 | else | ||
5564 | if test -n "${need_dash_r}"; then | ||
5565 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5566 | else | ||
5567 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5568 | fi | ||
5569 | fi | ||
5570 | if test -d "$withval/include"; then | ||
5571 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5572 | else | ||
5573 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5574 | fi | ||
5575 | |||
5576 | fi; | ||
5577 | |||
5578 | echo "$as_me:5578: checking for deflate in -lz" >&5 | ||
5579 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5580 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5582 | else | ||
5583 | ac_check_lib_save_LIBS=$LIBS | ||
5584 | LIBS="-lz $LIBS" | ||
5585 | cat >conftest.$ac_ext <<_ACEOF | ||
5586 | #line 5586 "configure" | ||
5587 | #include "confdefs.h" | ||
5588 | |||
5589 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5590 | #ifdef __cplusplus | ||
5591 | extern "C" | ||
5592 | #endif | ||
5593 | /* We use char because int might match the return type of a gcc2 | ||
5594 | builtin and then its argument prototype would still apply. */ | ||
5595 | char deflate (); | ||
5596 | int | ||
5597 | main () | ||
5598 | { | ||
5599 | deflate (); | ||
5600 | ; | ||
5601 | return 0; | ||
5602 | } | ||
5603 | _ACEOF | ||
5604 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5605 | if { (eval echo "$as_me:5605: \"$ac_link\"") >&5 | ||
5606 | (eval $ac_link) 2>&5 | ||
5607 | ac_status=$? | ||
5608 | echo "$as_me:5608: \$? = $ac_status" >&5 | ||
5609 | (exit $ac_status); } && | ||
5610 | { ac_try='test -s conftest$ac_exeext' | ||
5611 | { (eval echo "$as_me:5611: \"$ac_try\"") >&5 | ||
5612 | (eval $ac_try) 2>&5 | ||
5613 | ac_status=$? | ||
5614 | echo "$as_me:5614: \$? = $ac_status" >&5 | ||
5615 | (exit $ac_status); }; }; then | ||
5616 | ac_cv_lib_z_deflate=yes | ||
5617 | else | ||
5618 | echo "$as_me: failed program was:" >&5 | ||
5619 | cat conftest.$ac_ext >&5 | ||
5620 | ac_cv_lib_z_deflate=no | ||
5621 | fi | ||
5622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5623 | LIBS=$ac_check_lib_save_LIBS | ||
5624 | fi | ||
5625 | echo "$as_me:5625: result: $ac_cv_lib_z_deflate" >&5 | ||
5626 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5627 | if test $ac_cv_lib_z_deflate = yes; then | ||
5628 | cat >>confdefs.h <<EOF | ||
5629 | #define HAVE_LIBZ 1 | ||
5630 | EOF | ||
5631 | |||
5632 | LIBS="-lz $LIBS" | ||
5633 | |||
5634 | else | ||
5635 | { { echo "$as_me:5635: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5636 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5637 | { (exit 1); exit 1; }; } | ||
5638 | fi | ||
5639 | |||
5640 | echo "$as_me:5640: checking for strcasecmp" >&5 | ||
5641 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5642 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5644 | else | ||
5645 | cat >conftest.$ac_ext <<_ACEOF | ||
5646 | #line 5646 "configure" | ||
5647 | #include "confdefs.h" | ||
5648 | /* System header to define __stub macros and hopefully few prototypes, | ||
5649 | which can conflict with char strcasecmp (); below. */ | ||
5650 | #include <assert.h> | ||
5651 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5652 | #ifdef __cplusplus | ||
5653 | extern "C" | ||
5654 | #endif | ||
5655 | /* We use char because int might match the return type of a gcc2 | ||
5656 | builtin and then its argument prototype would still apply. */ | ||
5657 | char strcasecmp (); | ||
5658 | char (*f) (); | ||
5659 | |||
5660 | int | ||
5661 | main () | ||
5662 | { | ||
5663 | /* The GNU C library defines this for functions which it implements | ||
5664 | to always fail with ENOSYS. Some functions are actually named | ||
5665 | something starting with __ and the normal name is an alias. */ | ||
5666 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5667 | choke me | ||
5668 | #else | ||
5669 | f = strcasecmp; | ||
5670 | #endif | ||
5671 | |||
5672 | ; | ||
5673 | return 0; | ||
5674 | } | ||
5675 | _ACEOF | ||
5676 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5677 | if { (eval echo "$as_me:5677: \"$ac_link\"") >&5 | ||
5678 | (eval $ac_link) 2>&5 | ||
5679 | ac_status=$? | ||
5680 | echo "$as_me:5680: \$? = $ac_status" >&5 | ||
5681 | (exit $ac_status); } && | ||
5682 | { ac_try='test -s conftest$ac_exeext' | ||
5683 | { (eval echo "$as_me:5683: \"$ac_try\"") >&5 | ||
5684 | (eval $ac_try) 2>&5 | ||
5685 | ac_status=$? | ||
5686 | echo "$as_me:5686: \$? = $ac_status" >&5 | ||
5687 | (exit $ac_status); }; }; then | ||
5688 | ac_cv_func_strcasecmp=yes | ||
5689 | else | ||
5690 | echo "$as_me: failed program was:" >&5 | ||
5691 | cat conftest.$ac_ext >&5 | ||
5692 | ac_cv_func_strcasecmp=no | ||
5693 | fi | ||
5694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5695 | fi | ||
5696 | echo "$as_me:5696: result: $ac_cv_func_strcasecmp" >&5 | ||
5697 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5698 | if test $ac_cv_func_strcasecmp = yes; then | ||
5699 | : | ||
5700 | else | ||
5701 | echo "$as_me:5701: checking for strcasecmp in -lresolv" >&5 | ||
5702 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5703 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5705 | else | ||
5706 | ac_check_lib_save_LIBS=$LIBS | ||
5707 | LIBS="-lresolv $LIBS" | ||
5708 | cat >conftest.$ac_ext <<_ACEOF | ||
5709 | #line 5709 "configure" | ||
5710 | #include "confdefs.h" | ||
5711 | |||
5712 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5713 | #ifdef __cplusplus | ||
5714 | extern "C" | ||
5715 | #endif | ||
5716 | /* We use char because int might match the return type of a gcc2 | ||
5717 | builtin and then its argument prototype would still apply. */ | ||
5718 | char strcasecmp (); | ||
5719 | int | ||
5720 | main () | ||
5721 | { | ||
5722 | strcasecmp (); | ||
5723 | ; | ||
5724 | return 0; | ||
5725 | } | ||
5726 | _ACEOF | ||
5727 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5728 | if { (eval echo "$as_me:5728: \"$ac_link\"") >&5 | ||
5729 | (eval $ac_link) 2>&5 | ||
5730 | ac_status=$? | ||
5731 | echo "$as_me:5731: \$? = $ac_status" >&5 | ||
5732 | (exit $ac_status); } && | ||
5733 | { ac_try='test -s conftest$ac_exeext' | ||
5734 | { (eval echo "$as_me:5734: \"$ac_try\"") >&5 | ||
5735 | (eval $ac_try) 2>&5 | ||
5736 | ac_status=$? | ||
5737 | echo "$as_me:5737: \$? = $ac_status" >&5 | ||
5738 | (exit $ac_status); }; }; then | ||
5739 | ac_cv_lib_resolv_strcasecmp=yes | ||
5740 | else | ||
5741 | echo "$as_me: failed program was:" >&5 | ||
5742 | cat conftest.$ac_ext >&5 | ||
5743 | ac_cv_lib_resolv_strcasecmp=no | ||
5744 | fi | ||
5745 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5746 | LIBS=$ac_check_lib_save_LIBS | ||
5747 | fi | ||
5748 | echo "$as_me:5748: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5749 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5750 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5751 | LIBS="$LIBS -lresolv" | ||
5752 | fi | ||
5753 | |||
5754 | fi | ||
5755 | |||
5756 | echo "$as_me:5756: checking for utimes" >&5 | ||
5757 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5758 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5760 | else | ||
5761 | cat >conftest.$ac_ext <<_ACEOF | ||
5762 | #line 5762 "configure" | ||
5763 | #include "confdefs.h" | ||
5764 | /* System header to define __stub macros and hopefully few prototypes, | ||
5765 | which can conflict with char utimes (); below. */ | ||
5766 | #include <assert.h> | ||
5767 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5768 | #ifdef __cplusplus | ||
5769 | extern "C" | ||
5770 | #endif | ||
5771 | /* We use char because int might match the return type of a gcc2 | ||
5772 | builtin and then its argument prototype would still apply. */ | ||
5773 | char utimes (); | ||
5774 | char (*f) (); | ||
5775 | |||
5776 | int | ||
5777 | main () | ||
5778 | { | ||
5779 | /* The GNU C library defines this for functions which it implements | ||
5780 | to always fail with ENOSYS. Some functions are actually named | ||
5781 | something starting with __ and the normal name is an alias. */ | ||
5782 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5783 | choke me | ||
5784 | #else | ||
5785 | f = utimes; | ||
5786 | #endif | ||
5787 | |||
5788 | ; | ||
5789 | return 0; | ||
5790 | } | ||
5791 | _ACEOF | ||
5792 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5793 | if { (eval echo "$as_me:5793: \"$ac_link\"") >&5 | ||
5794 | (eval $ac_link) 2>&5 | ||
5795 | ac_status=$? | ||
5796 | echo "$as_me:5796: \$? = $ac_status" >&5 | ||
5797 | (exit $ac_status); } && | ||
5798 | { ac_try='test -s conftest$ac_exeext' | ||
5799 | { (eval echo "$as_me:5799: \"$ac_try\"") >&5 | ||
5800 | (eval $ac_try) 2>&5 | ||
5801 | ac_status=$? | ||
5802 | echo "$as_me:5802: \$? = $ac_status" >&5 | ||
5803 | (exit $ac_status); }; }; then | ||
5804 | ac_cv_func_utimes=yes | ||
5805 | else | ||
5806 | echo "$as_me: failed program was:" >&5 | ||
5807 | cat conftest.$ac_ext >&5 | ||
5808 | ac_cv_func_utimes=no | ||
5809 | fi | ||
5810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5811 | fi | ||
5812 | echo "$as_me:5812: result: $ac_cv_func_utimes" >&5 | ||
5813 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5814 | if test $ac_cv_func_utimes = yes; then | ||
5815 | : | ||
5816 | else | ||
5817 | echo "$as_me:5817: checking for utimes in -lc89" >&5 | ||
5818 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5819 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5821 | else | ||
5822 | ac_check_lib_save_LIBS=$LIBS | ||
5823 | LIBS="-lc89 $LIBS" | ||
5824 | cat >conftest.$ac_ext <<_ACEOF | ||
5825 | #line 5825 "configure" | ||
5826 | #include "confdefs.h" | ||
5827 | |||
5828 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5829 | #ifdef __cplusplus | ||
5830 | extern "C" | ||
5831 | #endif | ||
5832 | /* We use char because int might match the return type of a gcc2 | ||
5833 | builtin and then its argument prototype would still apply. */ | ||
5834 | char utimes (); | ||
5835 | int | ||
5836 | main () | ||
5837 | { | ||
5838 | utimes (); | ||
5839 | ; | ||
5840 | return 0; | ||
5841 | } | ||
5842 | _ACEOF | ||
5843 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5844 | if { (eval echo "$as_me:5844: \"$ac_link\"") >&5 | ||
5845 | (eval $ac_link) 2>&5 | ||
5846 | ac_status=$? | ||
5847 | echo "$as_me:5847: \$? = $ac_status" >&5 | ||
5848 | (exit $ac_status); } && | ||
5849 | { ac_try='test -s conftest$ac_exeext' | ||
5850 | { (eval echo "$as_me:5850: \"$ac_try\"") >&5 | ||
5851 | (eval $ac_try) 2>&5 | ||
5852 | ac_status=$? | ||
5853 | echo "$as_me:5853: \$? = $ac_status" >&5 | ||
5854 | (exit $ac_status); }; }; then | ||
5855 | ac_cv_lib_c89_utimes=yes | ||
5856 | else | ||
5857 | echo "$as_me: failed program was:" >&5 | ||
5858 | cat conftest.$ac_ext >&5 | ||
5859 | ac_cv_lib_c89_utimes=no | ||
5860 | fi | ||
5861 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5862 | LIBS=$ac_check_lib_save_LIBS | ||
5863 | fi | ||
5864 | echo "$as_me:5864: result: $ac_cv_lib_c89_utimes" >&5 | ||
5865 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
5866 | if test $ac_cv_lib_c89_utimes = yes; then | ||
5867 | cat >>confdefs.h <<\EOF | ||
5868 | #define HAVE_UTIMES 1 | ||
5869 | EOF | ||
5870 | |||
5871 | LIBS="$LIBS -lc89" | ||
5872 | fi | ||
5873 | |||
5874 | fi | ||
5875 | |||
5876 | for ac_header in libutil.h | ||
5877 | do | ||
5878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5879 | echo "$as_me:5879: checking for $ac_header" >&5 | ||
5880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5883 | else | ||
5884 | cat >conftest.$ac_ext <<_ACEOF | ||
5885 | #line 5885 "configure" | ||
5886 | #include "confdefs.h" | ||
5887 | #include <$ac_header> | ||
5888 | _ACEOF | ||
5889 | if { (eval echo "$as_me:5889: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5890 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5891 | ac_status=$? | ||
5892 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5893 | rm -f conftest.er1 | ||
5894 | cat conftest.err >&5 | ||
5895 | echo "$as_me:5895: \$? = $ac_status" >&5 | ||
5896 | (exit $ac_status); } >/dev/null; then | ||
5897 | if test -s conftest.err; then | ||
5898 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5899 | else | ||
5900 | ac_cpp_err= | ||
5901 | fi | ||
5902 | else | ||
5903 | ac_cpp_err=yes | ||
5904 | fi | ||
5905 | if test -z "$ac_cpp_err"; then | ||
5906 | eval "$as_ac_Header=yes" | ||
5907 | else | ||
5908 | echo "$as_me: failed program was:" >&5 | ||
5909 | cat conftest.$ac_ext >&5 | ||
5910 | eval "$as_ac_Header=no" | ||
5911 | fi | ||
5912 | rm -f conftest.err conftest.$ac_ext | ||
5913 | fi | ||
5914 | echo "$as_me:5914: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5916 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5917 | cat >>confdefs.h <<EOF | ||
5918 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5919 | EOF | ||
5920 | |||
5921 | fi | ||
5922 | done | ||
5923 | |||
5924 | echo "$as_me:5924: checking for library containing login" >&5 | ||
5925 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
5926 | if test "${ac_cv_search_login+set}" = set; then | ||
5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5928 | else | ||
5929 | ac_func_search_save_LIBS=$LIBS | ||
5930 | ac_cv_search_login=no | ||
5931 | cat >conftest.$ac_ext <<_ACEOF | ||
5932 | #line 5932 "configure" | ||
5933 | #include "confdefs.h" | ||
5934 | |||
5935 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5936 | #ifdef __cplusplus | ||
5937 | extern "C" | ||
5938 | #endif | ||
5939 | /* We use char because int might match the return type of a gcc2 | ||
5940 | builtin and then its argument prototype would still apply. */ | ||
5941 | char login (); | ||
5942 | int | ||
5943 | main () | ||
5944 | { | ||
5945 | login (); | ||
5946 | ; | ||
5947 | return 0; | ||
5948 | } | ||
5949 | _ACEOF | ||
5950 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5951 | if { (eval echo "$as_me:5951: \"$ac_link\"") >&5 | ||
5952 | (eval $ac_link) 2>&5 | ||
5953 | ac_status=$? | ||
5954 | echo "$as_me:5954: \$? = $ac_status" >&5 | ||
5955 | (exit $ac_status); } && | ||
5956 | { ac_try='test -s conftest$ac_exeext' | ||
5957 | { (eval echo "$as_me:5957: \"$ac_try\"") >&5 | ||
5958 | (eval $ac_try) 2>&5 | ||
5959 | ac_status=$? | ||
5960 | echo "$as_me:5960: \$? = $ac_status" >&5 | ||
5961 | (exit $ac_status); }; }; then | ||
5962 | ac_cv_search_login="none required" | ||
5963 | else | ||
5964 | echo "$as_me: failed program was:" >&5 | ||
5965 | cat conftest.$ac_ext >&5 | ||
5966 | fi | ||
5967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5968 | if test "$ac_cv_search_login" = no; then | ||
5969 | for ac_lib in util bsd; do | ||
5970 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5971 | cat >conftest.$ac_ext <<_ACEOF | ||
5972 | #line 5972 "configure" | ||
5973 | #include "confdefs.h" | ||
5974 | |||
5975 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5976 | #ifdef __cplusplus | ||
5977 | extern "C" | ||
5978 | #endif | ||
5979 | /* We use char because int might match the return type of a gcc2 | ||
5980 | builtin and then its argument prototype would still apply. */ | ||
5981 | char login (); | ||
5982 | int | ||
5983 | main () | ||
5984 | { | ||
5985 | login (); | ||
5986 | ; | ||
5987 | return 0; | ||
5988 | } | ||
5989 | _ACEOF | ||
5990 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5991 | if { (eval echo "$as_me:5991: \"$ac_link\"") >&5 | ||
5992 | (eval $ac_link) 2>&5 | ||
5993 | ac_status=$? | ||
5994 | echo "$as_me:5994: \$? = $ac_status" >&5 | ||
5995 | (exit $ac_status); } && | ||
5996 | { ac_try='test -s conftest$ac_exeext' | ||
5997 | { (eval echo "$as_me:5997: \"$ac_try\"") >&5 | ||
5998 | (eval $ac_try) 2>&5 | ||
5999 | ac_status=$? | ||
6000 | echo "$as_me:6000: \$? = $ac_status" >&5 | ||
6001 | (exit $ac_status); }; }; then | ||
6002 | ac_cv_search_login="-l$ac_lib" | ||
6003 | break | ||
6004 | else | ||
6005 | echo "$as_me: failed program was:" >&5 | ||
6006 | cat conftest.$ac_ext >&5 | ||
6007 | fi | ||
6008 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6009 | done | ||
6010 | fi | ||
6011 | LIBS=$ac_func_search_save_LIBS | ||
6012 | fi | ||
6013 | echo "$as_me:6013: result: $ac_cv_search_login" >&5 | ||
6014 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6015 | if test "$ac_cv_search_login" != no; then | ||
6016 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6017 | cat >>confdefs.h <<\EOF | ||
6018 | #define HAVE_LOGIN 1 | ||
6019 | EOF | ||
6020 | |||
6021 | fi | ||
6022 | |||
6023 | for ac_func in logout updwtmp logwtmp | ||
6024 | do | ||
6025 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6026 | echo "$as_me:6026: checking for $ac_func" >&5 | ||
6027 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6028 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6030 | else | ||
6031 | cat >conftest.$ac_ext <<_ACEOF | ||
6032 | #line 6032 "configure" | ||
6033 | #include "confdefs.h" | ||
6034 | /* System header to define __stub macros and hopefully few prototypes, | ||
6035 | which can conflict with char $ac_func (); below. */ | ||
6036 | #include <assert.h> | ||
6037 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6038 | #ifdef __cplusplus | ||
6039 | extern "C" | ||
6040 | #endif | ||
6041 | /* We use char because int might match the return type of a gcc2 | ||
6042 | builtin and then its argument prototype would still apply. */ | ||
6043 | char $ac_func (); | ||
6044 | char (*f) (); | ||
6045 | |||
6046 | int | ||
6047 | main () | ||
6048 | { | ||
6049 | /* The GNU C library defines this for functions which it implements | ||
6050 | to always fail with ENOSYS. Some functions are actually named | ||
6051 | something starting with __ and the normal name is an alias. */ | ||
6052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6053 | choke me | ||
6054 | #else | ||
6055 | f = $ac_func; | ||
6056 | #endif | ||
6057 | |||
6058 | ; | ||
6059 | return 0; | ||
6060 | } | ||
6061 | _ACEOF | ||
6062 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6063 | if { (eval echo "$as_me:6063: \"$ac_link\"") >&5 | ||
6064 | (eval $ac_link) 2>&5 | ||
6065 | ac_status=$? | ||
6066 | echo "$as_me:6066: \$? = $ac_status" >&5 | ||
6067 | (exit $ac_status); } && | ||
6068 | { ac_try='test -s conftest$ac_exeext' | ||
6069 | { (eval echo "$as_me:6069: \"$ac_try\"") >&5 | ||
6070 | (eval $ac_try) 2>&5 | ||
6071 | ac_status=$? | ||
6072 | echo "$as_me:6072: \$? = $ac_status" >&5 | ||
6073 | (exit $ac_status); }; }; then | ||
6074 | eval "$as_ac_var=yes" | ||
6075 | else | ||
6076 | echo "$as_me: failed program was:" >&5 | ||
6077 | cat conftest.$ac_ext >&5 | ||
6078 | eval "$as_ac_var=no" | ||
6079 | fi | ||
6080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6081 | fi | ||
6082 | echo "$as_me:6082: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6083 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6084 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6085 | cat >>confdefs.h <<EOF | ||
6086 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6087 | EOF | ||
6088 | |||
6089 | fi | ||
6090 | done | ||
6091 | |||
6092 | for ac_func in strftime | ||
6093 | do | ||
6094 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6095 | echo "$as_me:6095: checking for $ac_func" >&5 | ||
6096 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6097 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6099 | else | ||
6100 | cat >conftest.$ac_ext <<_ACEOF | ||
6101 | #line 6101 "configure" | ||
6102 | #include "confdefs.h" | ||
6103 | /* System header to define __stub macros and hopefully few prototypes, | ||
6104 | which can conflict with char $ac_func (); below. */ | ||
6105 | #include <assert.h> | ||
6106 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6107 | #ifdef __cplusplus | ||
6108 | extern "C" | ||
6109 | #endif | ||
6110 | /* We use char because int might match the return type of a gcc2 | ||
6111 | builtin and then its argument prototype would still apply. */ | ||
6112 | char $ac_func (); | ||
6113 | char (*f) (); | ||
6114 | |||
6115 | int | ||
6116 | main () | ||
6117 | { | ||
6118 | /* The GNU C library defines this for functions which it implements | ||
6119 | to always fail with ENOSYS. Some functions are actually named | ||
6120 | something starting with __ and the normal name is an alias. */ | ||
6121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6122 | choke me | ||
6123 | #else | ||
6124 | f = $ac_func; | ||
6125 | #endif | ||
6126 | |||
6127 | ; | ||
6128 | return 0; | ||
6129 | } | ||
6130 | _ACEOF | ||
6131 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6132 | if { (eval echo "$as_me:6132: \"$ac_link\"") >&5 | ||
6133 | (eval $ac_link) 2>&5 | ||
6134 | ac_status=$? | ||
6135 | echo "$as_me:6135: \$? = $ac_status" >&5 | ||
6136 | (exit $ac_status); } && | ||
6137 | { ac_try='test -s conftest$ac_exeext' | ||
6138 | { (eval echo "$as_me:6138: \"$ac_try\"") >&5 | ||
6139 | (eval $ac_try) 2>&5 | ||
6140 | ac_status=$? | ||
6141 | echo "$as_me:6141: \$? = $ac_status" >&5 | ||
6142 | (exit $ac_status); }; }; then | ||
6143 | eval "$as_ac_var=yes" | ||
6144 | else | ||
6145 | echo "$as_me: failed program was:" >&5 | ||
6146 | cat conftest.$ac_ext >&5 | ||
6147 | eval "$as_ac_var=no" | ||
6148 | fi | ||
6149 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6150 | fi | ||
6151 | echo "$as_me:6151: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6152 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6153 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6154 | cat >>confdefs.h <<EOF | ||
6155 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6156 | EOF | ||
6157 | |||
6158 | else | ||
6159 | # strftime is in -lintl on SCO UNIX. | ||
6160 | echo "$as_me:6160: checking for strftime in -lintl" >&5 | ||
6161 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6162 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6164 | else | ||
6165 | ac_check_lib_save_LIBS=$LIBS | ||
6166 | LIBS="-lintl $LIBS" | ||
6167 | cat >conftest.$ac_ext <<_ACEOF | ||
6168 | #line 6168 "configure" | ||
6169 | #include "confdefs.h" | ||
6170 | |||
6171 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6172 | #ifdef __cplusplus | ||
6173 | extern "C" | ||
6174 | #endif | ||
6175 | /* We use char because int might match the return type of a gcc2 | ||
6176 | builtin and then its argument prototype would still apply. */ | ||
6177 | char strftime (); | ||
6178 | int | ||
6179 | main () | ||
6180 | { | ||
6181 | strftime (); | ||
6182 | ; | ||
6183 | return 0; | ||
6184 | } | ||
6185 | _ACEOF | ||
6186 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6187 | if { (eval echo "$as_me:6187: \"$ac_link\"") >&5 | ||
6188 | (eval $ac_link) 2>&5 | ||
6189 | ac_status=$? | ||
6190 | echo "$as_me:6190: \$? = $ac_status" >&5 | ||
6191 | (exit $ac_status); } && | ||
6192 | { ac_try='test -s conftest$ac_exeext' | ||
6193 | { (eval echo "$as_me:6193: \"$ac_try\"") >&5 | ||
6194 | (eval $ac_try) 2>&5 | ||
6195 | ac_status=$? | ||
6196 | echo "$as_me:6196: \$? = $ac_status" >&5 | ||
6197 | (exit $ac_status); }; }; then | ||
6198 | ac_cv_lib_intl_strftime=yes | ||
6199 | else | ||
6200 | echo "$as_me: failed program was:" >&5 | ||
6201 | cat conftest.$ac_ext >&5 | ||
6202 | ac_cv_lib_intl_strftime=no | ||
6203 | fi | ||
6204 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6205 | LIBS=$ac_check_lib_save_LIBS | ||
6206 | fi | ||
6207 | echo "$as_me:6207: result: $ac_cv_lib_intl_strftime" >&5 | ||
6208 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6209 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6210 | cat >>confdefs.h <<\EOF | ||
6211 | #define HAVE_STRFTIME 1 | ||
6212 | EOF | ||
6213 | |||
6214 | LIBS="-lintl $LIBS" | ||
6215 | fi | ||
6216 | |||
6217 | fi | ||
6218 | done | ||
6219 | |||
6220 | # Check for ALTDIRFUNC glob() extension | ||
6221 | echo "$as_me:6221: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6222 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6223 | cat >conftest.$ac_ext <<_ACEOF | ||
6224 | #line 6224 "configure" | ||
6225 | #include "confdefs.h" | ||
6226 | |||
6227 | #include <glob.h> | ||
6228 | #ifdef GLOB_ALTDIRFUNC | ||
6229 | FOUNDIT | ||
6230 | #endif | ||
6231 | |||
6232 | _ACEOF | ||
6233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6234 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6235 | |||
6236 | cat >>confdefs.h <<\EOF | ||
6237 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6238 | EOF | ||
6239 | |||
6240 | echo "$as_me:6240: result: yes" >&5 | ||
6241 | echo "${ECHO_T}yes" >&6 | ||
6242 | |||
6243 | else | ||
6244 | |||
6245 | echo "$as_me:6245: result: no" >&5 | ||
6246 | echo "${ECHO_T}no" >&6 | ||
6247 | |||
6248 | fi | ||
6249 | rm -f conftest* | ||
6250 | |||
6251 | # Check for g.gl_matchc glob() extension | ||
6252 | echo "$as_me:6252: checking for gl_matchc field in glob_t" >&5 | ||
6253 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6254 | cat >conftest.$ac_ext <<_ACEOF | ||
6255 | #line 6255 "configure" | ||
6256 | #include "confdefs.h" | ||
6257 | |||
6258 | #include <glob.h> | ||
6259 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6260 | |||
6261 | _ACEOF | ||
6262 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6263 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6264 | |||
6265 | cat >>confdefs.h <<\EOF | ||
6266 | #define GLOB_HAS_GL_MATCHC 1 | ||
6267 | EOF | ||
6268 | |||
6269 | echo "$as_me:6269: result: yes" >&5 | ||
6270 | echo "${ECHO_T}yes" >&6 | ||
6271 | |||
6272 | else | ||
6273 | |||
6274 | echo "$as_me:6274: result: no" >&5 | ||
6275 | echo "${ECHO_T}no" >&6 | ||
6276 | |||
6277 | fi | ||
6278 | rm -f conftest* | ||
6279 | |||
6280 | echo "$as_me:6280: checking whether struct dirent allocates space for d_name" >&5 | ||
6281 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6282 | if test "$cross_compiling" = yes; then | ||
6283 | { { echo "$as_me:6283: error: cannot run test program while cross compiling" >&5 | ||
6284 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6285 | { (exit 1); exit 1; }; } | ||
6286 | else | ||
6287 | cat >conftest.$ac_ext <<_ACEOF | ||
6288 | #line 6288 "configure" | ||
6289 | #include "confdefs.h" | ||
6290 | |||
6291 | #include <sys/types.h> | ||
6292 | #include <dirent.h> | ||
6293 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6294 | |||
6295 | _ACEOF | ||
6296 | rm -f conftest$ac_exeext | ||
6297 | if { (eval echo "$as_me:6297: \"$ac_link\"") >&5 | ||
6298 | (eval $ac_link) 2>&5 | ||
6299 | ac_status=$? | ||
6300 | echo "$as_me:6300: \$? = $ac_status" >&5 | ||
6301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6302 | { (eval echo "$as_me:6302: \"$ac_try\"") >&5 | ||
6303 | (eval $ac_try) 2>&5 | ||
6304 | ac_status=$? | ||
6305 | echo "$as_me:6305: \$? = $ac_status" >&5 | ||
6306 | (exit $ac_status); }; }; then | ||
6307 | echo "$as_me:6307: result: yes" >&5 | ||
6308 | echo "${ECHO_T}yes" >&6 | ||
6309 | else | ||
6310 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6311 | echo "$as_me: failed program was:" >&5 | ||
6312 | cat conftest.$ac_ext >&5 | ||
6313 | |||
6314 | echo "$as_me:6314: result: no" >&5 | ||
6315 | echo "${ECHO_T}no" >&6 | ||
6316 | cat >>confdefs.h <<\EOF | ||
6317 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6318 | EOF | ||
6319 | |||
6320 | fi | ||
6321 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6322 | fi | ||
6323 | |||
6324 | # Check whether user wants S/Key support | ||
6325 | SKEY_MSG="no" | ||
6326 | |||
6327 | # Check whether --with-skey or --without-skey was given. | ||
6328 | if test "${with_skey+set}" = set; then | ||
6329 | withval="$with_skey" | ||
6330 | |||
6331 | if test "x$withval" != "xno" ; then | ||
6332 | |||
6333 | if test "x$withval" != "xyes" ; then | ||
6334 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6335 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6336 | fi | ||
6337 | |||
6338 | cat >>confdefs.h <<\EOF | ||
6339 | #define SKEY 1 | ||
6340 | EOF | ||
6341 | |||
6342 | LIBS="-lskey $LIBS" | ||
6343 | SKEY_MSG="yes" | ||
6344 | |||
6345 | echo "$as_me:6345: checking for s/key support" >&5 | ||
6346 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6347 | if test "$cross_compiling" = yes; then | ||
6348 | { { echo "$as_me:6348: error: cannot run test program while cross compiling" >&5 | ||
6349 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6350 | { (exit 1); exit 1; }; } | ||
6351 | else | ||
6352 | cat >conftest.$ac_ext <<_ACEOF | ||
6353 | #line 6353 "configure" | ||
6354 | #include "confdefs.h" | ||
6355 | |||
6356 | #include <stdio.h> | ||
6357 | #include <skey.h> | ||
6358 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6359 | |||
6360 | _ACEOF | ||
6361 | rm -f conftest$ac_exeext | ||
6362 | if { (eval echo "$as_me:6362: \"$ac_link\"") >&5 | ||
6363 | (eval $ac_link) 2>&5 | ||
6364 | ac_status=$? | ||
6365 | echo "$as_me:6365: \$? = $ac_status" >&5 | ||
6366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6367 | { (eval echo "$as_me:6367: \"$ac_try\"") >&5 | ||
6368 | (eval $ac_try) 2>&5 | ||
6369 | ac_status=$? | ||
6370 | echo "$as_me:6370: \$? = $ac_status" >&5 | ||
6371 | (exit $ac_status); }; }; then | ||
6372 | echo "$as_me:6372: result: yes" >&5 | ||
6373 | echo "${ECHO_T}yes" >&6 | ||
6374 | else | ||
6375 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6376 | echo "$as_me: failed program was:" >&5 | ||
6377 | cat conftest.$ac_ext >&5 | ||
6378 | |||
6379 | echo "$as_me:6379: result: no" >&5 | ||
6380 | echo "${ECHO_T}no" >&6 | ||
6381 | { { echo "$as_me:6381: error: ** Incomplete or missing s/key libraries." >&5 | ||
6382 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6383 | { (exit 1); exit 1; }; } | ||
6384 | |||
6385 | fi | ||
6386 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6387 | fi | ||
6388 | fi | ||
6389 | |||
6390 | fi; | ||
6391 | |||
6392 | # Check whether user wants TCP wrappers support | ||
6393 | TCPW_MSG="no" | ||
6394 | |||
6395 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6396 | if test "${with_tcp_wrappers+set}" = set; then | ||
6397 | withval="$with_tcp_wrappers" | ||
6398 | |||
6399 | if test "x$withval" != "xno" ; then | ||
6400 | saved_LIBS="$LIBS" | ||
6401 | saved_LDFLAGS="$LDFLAGS" | ||
6402 | saved_CPPFLAGS="$CPPFLAGS" | ||
6403 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6404 | if test -d "${withval}/lib"; then | ||
6405 | if test -n "${need_dash_r}"; then | ||
6406 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6407 | else | ||
6408 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6409 | fi | ||
6410 | else | ||
6411 | if test -n "${need_dash_r}"; then | ||
6412 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6413 | else | ||
6414 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6415 | fi | ||
6416 | fi | ||
6417 | if test -d "${withval}/include"; then | ||
6418 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6419 | else | ||
6420 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6421 | fi | ||
6422 | fi | ||
6423 | LIBWRAP="-lwrap" | ||
6424 | LIBS="$LIBWRAP $LIBS" | ||
6425 | echo "$as_me:6425: checking for libwrap" >&5 | ||
6426 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6427 | cat >conftest.$ac_ext <<_ACEOF | ||
6428 | #line 6428 "configure" | ||
6429 | #include "confdefs.h" | ||
6430 | |||
6431 | #include <tcpd.h> | ||
6432 | int deny_severity = 0, allow_severity = 0; | ||
6433 | |||
6434 | int | ||
6435 | main () | ||
6436 | { | ||
6437 | hosts_access(0); | ||
6438 | ; | ||
6439 | return 0; | ||
6440 | } | ||
6441 | _ACEOF | ||
6442 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6443 | if { (eval echo "$as_me:6443: \"$ac_link\"") >&5 | ||
6444 | (eval $ac_link) 2>&5 | ||
6445 | ac_status=$? | ||
6446 | echo "$as_me:6446: \$? = $ac_status" >&5 | ||
6447 | (exit $ac_status); } && | ||
6448 | { ac_try='test -s conftest$ac_exeext' | ||
6449 | { (eval echo "$as_me:6449: \"$ac_try\"") >&5 | ||
6450 | (eval $ac_try) 2>&5 | ||
6451 | ac_status=$? | ||
6452 | echo "$as_me:6452: \$? = $ac_status" >&5 | ||
6453 | (exit $ac_status); }; }; then | ||
6454 | |||
6455 | echo "$as_me:6455: result: yes" >&5 | ||
6456 | echo "${ECHO_T}yes" >&6 | ||
6457 | cat >>confdefs.h <<\EOF | ||
6458 | #define LIBWRAP 1 | ||
6459 | EOF | ||
6460 | |||
6461 | TCPW_MSG="yes" | ||
6462 | |||
6463 | else | ||
6464 | echo "$as_me: failed program was:" >&5 | ||
6465 | cat conftest.$ac_ext >&5 | ||
6466 | |||
6467 | { { echo "$as_me:6467: error: *** libwrap missing" >&5 | ||
6468 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6469 | { (exit 1); exit 1; }; } | ||
6470 | |||
6471 | fi | ||
6472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6473 | LIBS="$saved_LIBS" | ||
6474 | fi | ||
6475 | |||
6476 | fi; | ||
6477 | |||
6478 | for ac_func in \ | ||
6479 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename \ | ||
6480 | bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6481 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6482 | getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
6483 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6484 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
6485 | pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
6486 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
6487 | setproctitle setregid setresgid setresuid setreuid setrlimit \ | ||
6488 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
6489 | strlcat strlcpy strmode strnvis sysconf tcgetpgrp \ | ||
6490 | truncate utimes vhangup vsnprintf waitpid \ | ||
6491 | |||
6492 | do | ||
6493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6494 | echo "$as_me:6494: checking for $ac_func" >&5 | ||
6495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6496 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6498 | else | ||
6499 | cat >conftest.$ac_ext <<_ACEOF | ||
6500 | #line 6500 "configure" | ||
6501 | #include "confdefs.h" | ||
6502 | /* System header to define __stub macros and hopefully few prototypes, | ||
6503 | which can conflict with char $ac_func (); below. */ | ||
6504 | #include <assert.h> | ||
6505 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6506 | #ifdef __cplusplus | ||
6507 | extern "C" | ||
6508 | #endif | ||
6509 | /* We use char because int might match the return type of a gcc2 | ||
6510 | builtin and then its argument prototype would still apply. */ | ||
6511 | char $ac_func (); | ||
6512 | char (*f) (); | ||
6513 | |||
6514 | int | ||
6515 | main () | ||
6516 | { | ||
6517 | /* The GNU C library defines this for functions which it implements | ||
6518 | to always fail with ENOSYS. Some functions are actually named | ||
6519 | something starting with __ and the normal name is an alias. */ | ||
6520 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6521 | choke me | ||
6522 | #else | ||
6523 | f = $ac_func; | ||
6524 | #endif | ||
6525 | |||
6526 | ; | ||
6527 | return 0; | ||
6528 | } | ||
6529 | _ACEOF | ||
6530 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6531 | if { (eval echo "$as_me:6531: \"$ac_link\"") >&5 | ||
6532 | (eval $ac_link) 2>&5 | ||
6533 | ac_status=$? | ||
6534 | echo "$as_me:6534: \$? = $ac_status" >&5 | ||
6535 | (exit $ac_status); } && | ||
6536 | { ac_try='test -s conftest$ac_exeext' | ||
6537 | { (eval echo "$as_me:6537: \"$ac_try\"") >&5 | ||
6538 | (eval $ac_try) 2>&5 | ||
6539 | ac_status=$? | ||
6540 | echo "$as_me:6540: \$? = $ac_status" >&5 | ||
6541 | (exit $ac_status); }; }; then | ||
6542 | eval "$as_ac_var=yes" | ||
6543 | else | ||
6544 | echo "$as_me: failed program was:" >&5 | ||
6545 | cat conftest.$ac_ext >&5 | ||
6546 | eval "$as_ac_var=no" | ||
6547 | fi | ||
6548 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6549 | fi | ||
6550 | echo "$as_me:6550: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6551 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6552 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6553 | cat >>confdefs.h <<EOF | ||
6554 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6555 | EOF | ||
6556 | |||
6557 | fi | ||
6558 | done | ||
6559 | |||
6560 | echo "$as_me:6560: checking for library containing nanosleep" >&5 | ||
6561 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
6562 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6564 | else | ||
6565 | ac_func_search_save_LIBS=$LIBS | ||
6566 | ac_cv_search_nanosleep=no | ||
6567 | cat >conftest.$ac_ext <<_ACEOF | ||
6568 | #line 6568 "configure" | ||
6569 | #include "confdefs.h" | ||
6570 | |||
6571 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6572 | #ifdef __cplusplus | ||
6573 | extern "C" | ||
6574 | #endif | ||
6575 | /* We use char because int might match the return type of a gcc2 | ||
6576 | builtin and then its argument prototype would still apply. */ | ||
6577 | char nanosleep (); | ||
6578 | int | ||
6579 | main () | ||
6580 | { | ||
6581 | nanosleep (); | ||
6582 | ; | ||
6583 | return 0; | ||
6584 | } | ||
6585 | _ACEOF | ||
6586 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6587 | if { (eval echo "$as_me:6587: \"$ac_link\"") >&5 | ||
6588 | (eval $ac_link) 2>&5 | ||
6589 | ac_status=$? | ||
6590 | echo "$as_me:6590: \$? = $ac_status" >&5 | ||
6591 | (exit $ac_status); } && | ||
6592 | { ac_try='test -s conftest$ac_exeext' | ||
6593 | { (eval echo "$as_me:6593: \"$ac_try\"") >&5 | ||
6594 | (eval $ac_try) 2>&5 | ||
6595 | ac_status=$? | ||
6596 | echo "$as_me:6596: \$? = $ac_status" >&5 | ||
6597 | (exit $ac_status); }; }; then | ||
6598 | ac_cv_search_nanosleep="none required" | ||
6599 | else | ||
6600 | echo "$as_me: failed program was:" >&5 | ||
6601 | cat conftest.$ac_ext >&5 | ||
6602 | fi | ||
6603 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6604 | if test "$ac_cv_search_nanosleep" = no; then | ||
6605 | for ac_lib in rt posix4; do | ||
6606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6607 | cat >conftest.$ac_ext <<_ACEOF | ||
6608 | #line 6608 "configure" | ||
6609 | #include "confdefs.h" | ||
6610 | |||
6611 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6612 | #ifdef __cplusplus | ||
6613 | extern "C" | ||
6614 | #endif | ||
6615 | /* We use char because int might match the return type of a gcc2 | ||
6616 | builtin and then its argument prototype would still apply. */ | ||
6617 | char nanosleep (); | ||
6618 | int | ||
6619 | main () | ||
6620 | { | ||
6621 | nanosleep (); | ||
6622 | ; | ||
6623 | return 0; | ||
6624 | } | ||
6625 | _ACEOF | ||
6626 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6627 | if { (eval echo "$as_me:6627: \"$ac_link\"") >&5 | ||
6628 | (eval $ac_link) 2>&5 | ||
6629 | ac_status=$? | ||
6630 | echo "$as_me:6630: \$? = $ac_status" >&5 | ||
6631 | (exit $ac_status); } && | ||
6632 | { ac_try='test -s conftest$ac_exeext' | ||
6633 | { (eval echo "$as_me:6633: \"$ac_try\"") >&5 | ||
6634 | (eval $ac_try) 2>&5 | ||
6635 | ac_status=$? | ||
6636 | echo "$as_me:6636: \$? = $ac_status" >&5 | ||
6637 | (exit $ac_status); }; }; then | ||
6638 | ac_cv_search_nanosleep="-l$ac_lib" | ||
6639 | break | ||
6640 | else | ||
6641 | echo "$as_me: failed program was:" >&5 | ||
6642 | cat conftest.$ac_ext >&5 | ||
6643 | fi | ||
6644 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6645 | done | ||
6646 | fi | ||
6647 | LIBS=$ac_func_search_save_LIBS | ||
6648 | fi | ||
6649 | echo "$as_me:6649: result: $ac_cv_search_nanosleep" >&5 | ||
6650 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
6651 | if test "$ac_cv_search_nanosleep" != no; then | ||
6652 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
6653 | cat >>confdefs.h <<\EOF | ||
6654 | #define HAVE_NANOSLEEP 1 | ||
6655 | EOF | ||
6656 | |||
6657 | fi | ||
6658 | |||
6659 | echo "$as_me:6659: checking for ANSI C header files" >&5 | ||
6660 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6661 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6663 | else | ||
6664 | cat >conftest.$ac_ext <<_ACEOF | ||
6665 | #line 6665 "configure" | ||
6666 | #include "confdefs.h" | ||
6667 | #include <stdlib.h> | ||
6668 | #include <stdarg.h> | ||
6669 | #include <string.h> | ||
6670 | #include <float.h> | ||
6671 | |||
6672 | _ACEOF | ||
6673 | if { (eval echo "$as_me:6673: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6675 | ac_status=$? | ||
6676 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6677 | rm -f conftest.er1 | ||
6678 | cat conftest.err >&5 | ||
6679 | echo "$as_me:6679: \$? = $ac_status" >&5 | ||
6680 | (exit $ac_status); } >/dev/null; then | ||
6681 | if test -s conftest.err; then | ||
6682 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6683 | else | ||
6684 | ac_cpp_err= | ||
6685 | fi | ||
6686 | else | ||
6687 | ac_cpp_err=yes | ||
6688 | fi | ||
6689 | if test -z "$ac_cpp_err"; then | ||
6690 | ac_cv_header_stdc=yes | ||
6691 | else | ||
6692 | echo "$as_me: failed program was:" >&5 | ||
6693 | cat conftest.$ac_ext >&5 | ||
6694 | ac_cv_header_stdc=no | ||
6695 | fi | ||
6696 | rm -f conftest.err conftest.$ac_ext | ||
6697 | |||
6698 | if test $ac_cv_header_stdc = yes; then | ||
6699 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6700 | cat >conftest.$ac_ext <<_ACEOF | ||
6701 | #line 6701 "configure" | ||
6702 | #include "confdefs.h" | ||
6703 | #include <string.h> | ||
6704 | |||
6705 | _ACEOF | ||
6706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6707 | egrep "memchr" >/dev/null 2>&1; then | ||
6708 | : | ||
6709 | else | ||
6710 | ac_cv_header_stdc=no | ||
6711 | fi | ||
6712 | rm -f conftest* | ||
6713 | |||
6714 | fi | ||
6715 | |||
6716 | if test $ac_cv_header_stdc = yes; then | ||
6717 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6718 | cat >conftest.$ac_ext <<_ACEOF | ||
6719 | #line 6719 "configure" | ||
6720 | #include "confdefs.h" | ||
6721 | #include <stdlib.h> | ||
6722 | |||
6723 | _ACEOF | ||
6724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6725 | egrep "free" >/dev/null 2>&1; then | ||
6726 | : | ||
6727 | else | ||
6728 | ac_cv_header_stdc=no | ||
6729 | fi | ||
6730 | rm -f conftest* | ||
6731 | |||
6732 | fi | ||
6733 | |||
6734 | if test $ac_cv_header_stdc = yes; then | ||
6735 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6736 | if test "$cross_compiling" = yes; then | ||
6737 | : | ||
6738 | else | ||
6739 | cat >conftest.$ac_ext <<_ACEOF | ||
6740 | #line 6740 "configure" | ||
6741 | #include "confdefs.h" | ||
6742 | #include <ctype.h> | ||
6743 | #if ((' ' & 0x0FF) == 0x020) | ||
6744 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6745 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6746 | #else | ||
6747 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
6748 | || ('j' <= (c) && (c) <= 'r') \ | ||
6749 | || ('s' <= (c) && (c) <= 'z')) | ||
6750 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6751 | #endif | ||
6752 | |||
6753 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6754 | int | ||
6755 | main () | ||
6756 | { | ||
6757 | int i; | ||
6758 | for (i = 0; i < 256; i++) | ||
6759 | if (XOR (islower (i), ISLOWER (i)) | ||
6760 | || toupper (i) != TOUPPER (i)) | ||
6761 | exit(2); | ||
6762 | exit (0); | ||
6763 | } | ||
6764 | _ACEOF | ||
6765 | rm -f conftest$ac_exeext | ||
6766 | if { (eval echo "$as_me:6766: \"$ac_link\"") >&5 | ||
6767 | (eval $ac_link) 2>&5 | ||
6768 | ac_status=$? | ||
6769 | echo "$as_me:6769: \$? = $ac_status" >&5 | ||
6770 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6771 | { (eval echo "$as_me:6771: \"$ac_try\"") >&5 | ||
6772 | (eval $ac_try) 2>&5 | ||
6773 | ac_status=$? | ||
6774 | echo "$as_me:6774: \$? = $ac_status" >&5 | ||
6775 | (exit $ac_status); }; }; then | ||
6776 | : | ||
6777 | else | ||
6778 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6779 | echo "$as_me: failed program was:" >&5 | ||
6780 | cat conftest.$ac_ext >&5 | ||
6781 | ac_cv_header_stdc=no | ||
6782 | fi | ||
6783 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6784 | fi | ||
6785 | fi | ||
6786 | fi | ||
6787 | echo "$as_me:6787: result: $ac_cv_header_stdc" >&5 | ||
6788 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6789 | if test $ac_cv_header_stdc = yes; then | ||
6790 | |||
6791 | cat >>confdefs.h <<\EOF | ||
6792 | #define STDC_HEADERS 1 | ||
6793 | EOF | ||
6794 | |||
6795 | fi | ||
6796 | |||
6797 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6798 | |||
6799 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6800 | inttypes.h stdint.h unistd.h | ||
6801 | do | ||
6802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6803 | echo "$as_me:6803: checking for $ac_header" >&5 | ||
6804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6807 | else | ||
6808 | cat >conftest.$ac_ext <<_ACEOF | ||
6809 | #line 6809 "configure" | ||
6810 | #include "confdefs.h" | ||
6811 | $ac_includes_default | ||
6812 | #include <$ac_header> | ||
6813 | _ACEOF | ||
6814 | rm -f conftest.$ac_objext | ||
6815 | if { (eval echo "$as_me:6815: \"$ac_compile\"") >&5 | ||
6816 | (eval $ac_compile) 2>&5 | ||
6817 | ac_status=$? | ||
6818 | echo "$as_me:6818: \$? = $ac_status" >&5 | ||
6819 | (exit $ac_status); } && | ||
6820 | { ac_try='test -s conftest.$ac_objext' | ||
6821 | { (eval echo "$as_me:6821: \"$ac_try\"") >&5 | ||
6822 | (eval $ac_try) 2>&5 | ||
6823 | ac_status=$? | ||
6824 | echo "$as_me:6824: \$? = $ac_status" >&5 | ||
6825 | (exit $ac_status); }; }; then | ||
6826 | eval "$as_ac_Header=yes" | ||
6827 | else | ||
6828 | echo "$as_me: failed program was:" >&5 | ||
6829 | cat conftest.$ac_ext >&5 | ||
6830 | eval "$as_ac_Header=no" | ||
6831 | fi | ||
6832 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6833 | fi | ||
6834 | echo "$as_me:6834: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6837 | cat >>confdefs.h <<EOF | ||
6838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6839 | EOF | ||
6840 | |||
6841 | fi | ||
6842 | done | ||
6843 | |||
6844 | echo "$as_me:6844: checking whether strsep is declared" >&5 | ||
6845 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
6846 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6848 | else | ||
6849 | cat >conftest.$ac_ext <<_ACEOF | ||
6850 | #line 6850 "configure" | ||
6851 | #include "confdefs.h" | ||
6852 | $ac_includes_default | ||
6853 | int | ||
6854 | main () | ||
6855 | { | ||
6856 | #ifndef strsep | ||
6857 | char *p = (char *) strsep; | ||
6858 | #endif | ||
6859 | |||
6860 | ; | ||
6861 | return 0; | ||
6862 | } | ||
6863 | _ACEOF | ||
6864 | rm -f conftest.$ac_objext | ||
6865 | if { (eval echo "$as_me:6865: \"$ac_compile\"") >&5 | ||
6866 | (eval $ac_compile) 2>&5 | ||
6867 | ac_status=$? | ||
6868 | echo "$as_me:6868: \$? = $ac_status" >&5 | ||
6869 | (exit $ac_status); } && | ||
6870 | { ac_try='test -s conftest.$ac_objext' | ||
6871 | { (eval echo "$as_me:6871: \"$ac_try\"") >&5 | ||
6872 | (eval $ac_try) 2>&5 | ||
6873 | ac_status=$? | ||
6874 | echo "$as_me:6874: \$? = $ac_status" >&5 | ||
6875 | (exit $ac_status); }; }; then | ||
6876 | ac_cv_have_decl_strsep=yes | ||
6877 | else | ||
6878 | echo "$as_me: failed program was:" >&5 | ||
6879 | cat conftest.$ac_ext >&5 | ||
6880 | ac_cv_have_decl_strsep=no | ||
6881 | fi | ||
6882 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6883 | fi | ||
6884 | echo "$as_me:6884: result: $ac_cv_have_decl_strsep" >&5 | ||
6885 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
6886 | if test $ac_cv_have_decl_strsep = yes; then | ||
6887 | |||
6888 | for ac_func in strsep | ||
6889 | do | ||
6890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6891 | echo "$as_me:6891: checking for $ac_func" >&5 | ||
6892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6893 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6895 | else | ||
6896 | cat >conftest.$ac_ext <<_ACEOF | ||
6897 | #line 6897 "configure" | ||
6898 | #include "confdefs.h" | ||
6899 | /* System header to define __stub macros and hopefully few prototypes, | ||
6900 | which can conflict with char $ac_func (); below. */ | ||
6901 | #include <assert.h> | ||
6902 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6903 | #ifdef __cplusplus | ||
6904 | extern "C" | ||
6905 | #endif | ||
6906 | /* We use char because int might match the return type of a gcc2 | ||
6907 | builtin and then its argument prototype would still apply. */ | ||
6908 | char $ac_func (); | ||
6909 | char (*f) (); | ||
6910 | |||
6911 | int | ||
6912 | main () | ||
6913 | { | ||
6914 | /* The GNU C library defines this for functions which it implements | ||
6915 | to always fail with ENOSYS. Some functions are actually named | ||
6916 | something starting with __ and the normal name is an alias. */ | ||
6917 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6918 | choke me | ||
6919 | #else | ||
6920 | f = $ac_func; | ||
6921 | #endif | ||
6922 | |||
6923 | ; | ||
6924 | return 0; | ||
6925 | } | ||
6926 | _ACEOF | ||
6927 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6928 | if { (eval echo "$as_me:6928: \"$ac_link\"") >&5 | ||
6929 | (eval $ac_link) 2>&5 | ||
6930 | ac_status=$? | ||
6931 | echo "$as_me:6931: \$? = $ac_status" >&5 | ||
6932 | (exit $ac_status); } && | ||
6933 | { ac_try='test -s conftest$ac_exeext' | ||
6934 | { (eval echo "$as_me:6934: \"$ac_try\"") >&5 | ||
6935 | (eval $ac_try) 2>&5 | ||
6936 | ac_status=$? | ||
6937 | echo "$as_me:6937: \$? = $ac_status" >&5 | ||
6938 | (exit $ac_status); }; }; then | ||
6939 | eval "$as_ac_var=yes" | ||
6940 | else | ||
6941 | echo "$as_me: failed program was:" >&5 | ||
6942 | cat conftest.$ac_ext >&5 | ||
6943 | eval "$as_ac_var=no" | ||
6944 | fi | ||
6945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6946 | fi | ||
6947 | echo "$as_me:6947: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6948 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6949 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6950 | cat >>confdefs.h <<EOF | ||
6951 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6952 | EOF | ||
6953 | |||
6954 | fi | ||
6955 | done | ||
6956 | |||
6957 | fi | ||
6958 | |||
6959 | echo "$as_me:6959: checking whether getrusage is declared" >&5 | ||
6960 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
6961 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
6962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6963 | else | ||
6964 | cat >conftest.$ac_ext <<_ACEOF | ||
6965 | #line 6965 "configure" | ||
6966 | #include "confdefs.h" | ||
6967 | $ac_includes_default | ||
6968 | int | ||
6969 | main () | ||
6970 | { | ||
6971 | #ifndef getrusage | ||
6972 | char *p = (char *) getrusage; | ||
6973 | #endif | ||
6974 | |||
6975 | ; | ||
6976 | return 0; | ||
6977 | } | ||
6978 | _ACEOF | ||
6979 | rm -f conftest.$ac_objext | ||
6980 | if { (eval echo "$as_me:6980: \"$ac_compile\"") >&5 | ||
6981 | (eval $ac_compile) 2>&5 | ||
6982 | ac_status=$? | ||
6983 | echo "$as_me:6983: \$? = $ac_status" >&5 | ||
6984 | (exit $ac_status); } && | ||
6985 | { ac_try='test -s conftest.$ac_objext' | ||
6986 | { (eval echo "$as_me:6986: \"$ac_try\"") >&5 | ||
6987 | (eval $ac_try) 2>&5 | ||
6988 | ac_status=$? | ||
6989 | echo "$as_me:6989: \$? = $ac_status" >&5 | ||
6990 | (exit $ac_status); }; }; then | ||
6991 | ac_cv_have_decl_getrusage=yes | ||
6992 | else | ||
6993 | echo "$as_me: failed program was:" >&5 | ||
6994 | cat conftest.$ac_ext >&5 | ||
6995 | ac_cv_have_decl_getrusage=no | ||
6996 | fi | ||
6997 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6998 | fi | ||
6999 | echo "$as_me:6999: result: $ac_cv_have_decl_getrusage" >&5 | ||
7000 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
7001 | if test $ac_cv_have_decl_getrusage = yes; then | ||
7002 | |||
7003 | for ac_func in getrusage | ||
7004 | do | ||
7005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7006 | echo "$as_me:7006: checking for $ac_func" >&5 | ||
7007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7008 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7010 | else | ||
7011 | cat >conftest.$ac_ext <<_ACEOF | ||
7012 | #line 7012 "configure" | ||
7013 | #include "confdefs.h" | ||
7014 | /* System header to define __stub macros and hopefully few prototypes, | ||
7015 | which can conflict with char $ac_func (); below. */ | ||
7016 | #include <assert.h> | ||
7017 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7018 | #ifdef __cplusplus | ||
7019 | extern "C" | ||
7020 | #endif | ||
7021 | /* We use char because int might match the return type of a gcc2 | ||
7022 | builtin and then its argument prototype would still apply. */ | ||
7023 | char $ac_func (); | ||
7024 | char (*f) (); | ||
7025 | |||
7026 | int | ||
7027 | main () | ||
7028 | { | ||
7029 | /* The GNU C library defines this for functions which it implements | ||
7030 | to always fail with ENOSYS. Some functions are actually named | ||
7031 | something starting with __ and the normal name is an alias. */ | ||
7032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7033 | choke me | ||
7034 | #else | ||
7035 | f = $ac_func; | ||
7036 | #endif | ||
7037 | |||
7038 | ; | ||
7039 | return 0; | ||
7040 | } | ||
7041 | _ACEOF | ||
7042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7043 | if { (eval echo "$as_me:7043: \"$ac_link\"") >&5 | ||
7044 | (eval $ac_link) 2>&5 | ||
7045 | ac_status=$? | ||
7046 | echo "$as_me:7046: \$? = $ac_status" >&5 | ||
7047 | (exit $ac_status); } && | ||
7048 | { ac_try='test -s conftest$ac_exeext' | ||
7049 | { (eval echo "$as_me:7049: \"$ac_try\"") >&5 | ||
7050 | (eval $ac_try) 2>&5 | ||
7051 | ac_status=$? | ||
7052 | echo "$as_me:7052: \$? = $ac_status" >&5 | ||
7053 | (exit $ac_status); }; }; then | ||
7054 | eval "$as_ac_var=yes" | ||
7055 | else | ||
7056 | echo "$as_me: failed program was:" >&5 | ||
7057 | cat conftest.$ac_ext >&5 | ||
7058 | eval "$as_ac_var=no" | ||
7059 | fi | ||
7060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7061 | fi | ||
7062 | echo "$as_me:7062: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7065 | cat >>confdefs.h <<EOF | ||
7066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7067 | EOF | ||
7068 | |||
7069 | fi | ||
7070 | done | ||
7071 | |||
7072 | fi | ||
7073 | |||
7074 | echo "$as_me:7074: checking whether tcsendbreak is declared" >&5 | ||
7075 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
7076 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
7077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7078 | else | ||
7079 | cat >conftest.$ac_ext <<_ACEOF | ||
7080 | #line 7080 "configure" | ||
7081 | #include "confdefs.h" | ||
7082 | #include <termios.h> | ||
7083 | |||
7084 | int | ||
7085 | main () | ||
7086 | { | ||
7087 | #ifndef tcsendbreak | ||
7088 | char *p = (char *) tcsendbreak; | ||
7089 | #endif | ||
7090 | |||
7091 | ; | ||
7092 | return 0; | ||
7093 | } | ||
7094 | _ACEOF | ||
7095 | rm -f conftest.$ac_objext | ||
7096 | if { (eval echo "$as_me:7096: \"$ac_compile\"") >&5 | ||
7097 | (eval $ac_compile) 2>&5 | ||
7098 | ac_status=$? | ||
7099 | echo "$as_me:7099: \$? = $ac_status" >&5 | ||
7100 | (exit $ac_status); } && | ||
7101 | { ac_try='test -s conftest.$ac_objext' | ||
7102 | { (eval echo "$as_me:7102: \"$ac_try\"") >&5 | ||
7103 | (eval $ac_try) 2>&5 | ||
7104 | ac_status=$? | ||
7105 | echo "$as_me:7105: \$? = $ac_status" >&5 | ||
7106 | (exit $ac_status); }; }; then | ||
7107 | ac_cv_have_decl_tcsendbreak=yes | ||
7108 | else | ||
7109 | echo "$as_me: failed program was:" >&5 | ||
7110 | cat conftest.$ac_ext >&5 | ||
7111 | ac_cv_have_decl_tcsendbreak=no | ||
7112 | fi | ||
7113 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7114 | fi | ||
7115 | echo "$as_me:7115: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
7116 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
7117 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
7118 | cat >>confdefs.h <<\EOF | ||
7119 | #define HAVE_TCSENDBREAK 1 | ||
7120 | EOF | ||
7121 | |||
7122 | else | ||
7123 | |||
7124 | for ac_func in tcsendbreak | ||
7125 | do | ||
7126 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7127 | echo "$as_me:7127: checking for $ac_func" >&5 | ||
7128 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7129 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7131 | else | ||
7132 | cat >conftest.$ac_ext <<_ACEOF | ||
7133 | #line 7133 "configure" | ||
7134 | #include "confdefs.h" | ||
7135 | /* System header to define __stub macros and hopefully few prototypes, | ||
7136 | which can conflict with char $ac_func (); below. */ | ||
7137 | #include <assert.h> | ||
7138 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7139 | #ifdef __cplusplus | ||
7140 | extern "C" | ||
7141 | #endif | ||
7142 | /* We use char because int might match the return type of a gcc2 | ||
7143 | builtin and then its argument prototype would still apply. */ | ||
7144 | char $ac_func (); | ||
7145 | char (*f) (); | ||
7146 | |||
7147 | int | ||
7148 | main () | ||
7149 | { | ||
7150 | /* The GNU C library defines this for functions which it implements | ||
7151 | to always fail with ENOSYS. Some functions are actually named | ||
7152 | something starting with __ and the normal name is an alias. */ | ||
7153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7154 | choke me | ||
7155 | #else | ||
7156 | f = $ac_func; | ||
7157 | #endif | ||
7158 | |||
7159 | ; | ||
7160 | return 0; | ||
7161 | } | ||
7162 | _ACEOF | ||
7163 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7164 | if { (eval echo "$as_me:7164: \"$ac_link\"") >&5 | ||
7165 | (eval $ac_link) 2>&5 | ||
7166 | ac_status=$? | ||
7167 | echo "$as_me:7167: \$? = $ac_status" >&5 | ||
7168 | (exit $ac_status); } && | ||
7169 | { ac_try='test -s conftest$ac_exeext' | ||
7170 | { (eval echo "$as_me:7170: \"$ac_try\"") >&5 | ||
7171 | (eval $ac_try) 2>&5 | ||
7172 | ac_status=$? | ||
7173 | echo "$as_me:7173: \$? = $ac_status" >&5 | ||
7174 | (exit $ac_status); }; }; then | ||
7175 | eval "$as_ac_var=yes" | ||
7176 | else | ||
7177 | echo "$as_me: failed program was:" >&5 | ||
7178 | cat conftest.$ac_ext >&5 | ||
7179 | eval "$as_ac_var=no" | ||
7180 | fi | ||
7181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7182 | fi | ||
7183 | echo "$as_me:7183: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7184 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7185 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7186 | cat >>confdefs.h <<EOF | ||
7187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7188 | EOF | ||
7189 | |||
7190 | fi | ||
7191 | done | ||
7192 | |||
7193 | fi | ||
7194 | |||
7195 | for ac_func in gettimeofday time | ||
7196 | do | ||
7197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7198 | echo "$as_me:7198: checking for $ac_func" >&5 | ||
7199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7202 | else | ||
7203 | cat >conftest.$ac_ext <<_ACEOF | ||
7204 | #line 7204 "configure" | ||
7205 | #include "confdefs.h" | ||
7206 | /* System header to define __stub macros and hopefully few prototypes, | ||
7207 | which can conflict with char $ac_func (); below. */ | ||
7208 | #include <assert.h> | ||
7209 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7210 | #ifdef __cplusplus | ||
7211 | extern "C" | ||
7212 | #endif | ||
7213 | /* We use char because int might match the return type of a gcc2 | ||
7214 | builtin and then its argument prototype would still apply. */ | ||
7215 | char $ac_func (); | ||
7216 | char (*f) (); | ||
7217 | |||
7218 | int | ||
7219 | main () | ||
7220 | { | ||
7221 | /* The GNU C library defines this for functions which it implements | ||
7222 | to always fail with ENOSYS. Some functions are actually named | ||
7223 | something starting with __ and the normal name is an alias. */ | ||
7224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7225 | choke me | ||
7226 | #else | ||
7227 | f = $ac_func; | ||
7228 | #endif | ||
7229 | |||
7230 | ; | ||
7231 | return 0; | ||
7232 | } | ||
7233 | _ACEOF | ||
7234 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7235 | if { (eval echo "$as_me:7235: \"$ac_link\"") >&5 | ||
7236 | (eval $ac_link) 2>&5 | ||
7237 | ac_status=$? | ||
7238 | echo "$as_me:7238: \$? = $ac_status" >&5 | ||
7239 | (exit $ac_status); } && | ||
7240 | { ac_try='test -s conftest$ac_exeext' | ||
7241 | { (eval echo "$as_me:7241: \"$ac_try\"") >&5 | ||
7242 | (eval $ac_try) 2>&5 | ||
7243 | ac_status=$? | ||
7244 | echo "$as_me:7244: \$? = $ac_status" >&5 | ||
7245 | (exit $ac_status); }; }; then | ||
7246 | eval "$as_ac_var=yes" | ||
7247 | else | ||
7248 | echo "$as_me: failed program was:" >&5 | ||
7249 | cat conftest.$ac_ext >&5 | ||
7250 | eval "$as_ac_var=no" | ||
7251 | fi | ||
7252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7253 | fi | ||
7254 | echo "$as_me:7254: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7256 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7257 | cat >>confdefs.h <<EOF | ||
7258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7259 | EOF | ||
7260 | |||
7261 | fi | ||
7262 | done | ||
7263 | |||
7264 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7265 | do | ||
7266 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7267 | echo "$as_me:7267: checking for $ac_func" >&5 | ||
7268 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7269 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7271 | else | ||
7272 | cat >conftest.$ac_ext <<_ACEOF | ||
7273 | #line 7273 "configure" | ||
7274 | #include "confdefs.h" | ||
7275 | /* System header to define __stub macros and hopefully few prototypes, | ||
7276 | which can conflict with char $ac_func (); below. */ | ||
7277 | #include <assert.h> | ||
7278 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7279 | #ifdef __cplusplus | ||
7280 | extern "C" | ||
7281 | #endif | ||
7282 | /* We use char because int might match the return type of a gcc2 | ||
7283 | builtin and then its argument prototype would still apply. */ | ||
7284 | char $ac_func (); | ||
7285 | char (*f) (); | ||
7286 | |||
7287 | int | ||
7288 | main () | ||
7289 | { | ||
7290 | /* The GNU C library defines this for functions which it implements | ||
7291 | to always fail with ENOSYS. Some functions are actually named | ||
7292 | something starting with __ and the normal name is an alias. */ | ||
7293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7294 | choke me | ||
7295 | #else | ||
7296 | f = $ac_func; | ||
7297 | #endif | ||
7298 | |||
7299 | ; | ||
7300 | return 0; | ||
7301 | } | ||
7302 | _ACEOF | ||
7303 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7304 | if { (eval echo "$as_me:7304: \"$ac_link\"") >&5 | ||
7305 | (eval $ac_link) 2>&5 | ||
7306 | ac_status=$? | ||
7307 | echo "$as_me:7307: \$? = $ac_status" >&5 | ||
7308 | (exit $ac_status); } && | ||
7309 | { ac_try='test -s conftest$ac_exeext' | ||
7310 | { (eval echo "$as_me:7310: \"$ac_try\"") >&5 | ||
7311 | (eval $ac_try) 2>&5 | ||
7312 | ac_status=$? | ||
7313 | echo "$as_me:7313: \$? = $ac_status" >&5 | ||
7314 | (exit $ac_status); }; }; then | ||
7315 | eval "$as_ac_var=yes" | ||
7316 | else | ||
7317 | echo "$as_me: failed program was:" >&5 | ||
7318 | cat conftest.$ac_ext >&5 | ||
7319 | eval "$as_ac_var=no" | ||
7320 | fi | ||
7321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7322 | fi | ||
7323 | echo "$as_me:7323: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7326 | cat >>confdefs.h <<EOF | ||
7327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7328 | EOF | ||
7329 | |||
7330 | fi | ||
7331 | done | ||
7332 | |||
7333 | for ac_func in utmpname | ||
7334 | do | ||
7335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7336 | echo "$as_me:7336: checking for $ac_func" >&5 | ||
7337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7338 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7340 | else | ||
7341 | cat >conftest.$ac_ext <<_ACEOF | ||
7342 | #line 7342 "configure" | ||
7343 | #include "confdefs.h" | ||
7344 | /* System header to define __stub macros and hopefully few prototypes, | ||
7345 | which can conflict with char $ac_func (); below. */ | ||
7346 | #include <assert.h> | ||
7347 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7348 | #ifdef __cplusplus | ||
7349 | extern "C" | ||
7350 | #endif | ||
7351 | /* We use char because int might match the return type of a gcc2 | ||
7352 | builtin and then its argument prototype would still apply. */ | ||
7353 | char $ac_func (); | ||
7354 | char (*f) (); | ||
7355 | |||
7356 | int | ||
7357 | main () | ||
7358 | { | ||
7359 | /* The GNU C library defines this for functions which it implements | ||
7360 | to always fail with ENOSYS. Some functions are actually named | ||
7361 | something starting with __ and the normal name is an alias. */ | ||
7362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7363 | choke me | ||
7364 | #else | ||
7365 | f = $ac_func; | ||
7366 | #endif | ||
7367 | |||
7368 | ; | ||
7369 | return 0; | ||
7370 | } | ||
7371 | _ACEOF | ||
7372 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7373 | if { (eval echo "$as_me:7373: \"$ac_link\"") >&5 | ||
7374 | (eval $ac_link) 2>&5 | ||
7375 | ac_status=$? | ||
7376 | echo "$as_me:7376: \$? = $ac_status" >&5 | ||
7377 | (exit $ac_status); } && | ||
7378 | { ac_try='test -s conftest$ac_exeext' | ||
7379 | { (eval echo "$as_me:7379: \"$ac_try\"") >&5 | ||
7380 | (eval $ac_try) 2>&5 | ||
7381 | ac_status=$? | ||
7382 | echo "$as_me:7382: \$? = $ac_status" >&5 | ||
7383 | (exit $ac_status); }; }; then | ||
7384 | eval "$as_ac_var=yes" | ||
7385 | else | ||
7386 | echo "$as_me: failed program was:" >&5 | ||
7387 | cat conftest.$ac_ext >&5 | ||
7388 | eval "$as_ac_var=no" | ||
7389 | fi | ||
7390 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7391 | fi | ||
7392 | echo "$as_me:7392: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7395 | cat >>confdefs.h <<EOF | ||
7396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7397 | EOF | ||
7398 | |||
7399 | fi | ||
7400 | done | ||
7401 | |||
7402 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7403 | do | ||
7404 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7405 | echo "$as_me:7405: checking for $ac_func" >&5 | ||
7406 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7407 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7409 | else | ||
7410 | cat >conftest.$ac_ext <<_ACEOF | ||
7411 | #line 7411 "configure" | ||
7412 | #include "confdefs.h" | ||
7413 | /* System header to define __stub macros and hopefully few prototypes, | ||
7414 | which can conflict with char $ac_func (); below. */ | ||
7415 | #include <assert.h> | ||
7416 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7417 | #ifdef __cplusplus | ||
7418 | extern "C" | ||
7419 | #endif | ||
7420 | /* We use char because int might match the return type of a gcc2 | ||
7421 | builtin and then its argument prototype would still apply. */ | ||
7422 | char $ac_func (); | ||
7423 | char (*f) (); | ||
7424 | |||
7425 | int | ||
7426 | main () | ||
7427 | { | ||
7428 | /* The GNU C library defines this for functions which it implements | ||
7429 | to always fail with ENOSYS. Some functions are actually named | ||
7430 | something starting with __ and the normal name is an alias. */ | ||
7431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7432 | choke me | ||
7433 | #else | ||
7434 | f = $ac_func; | ||
7435 | #endif | ||
7436 | |||
7437 | ; | ||
7438 | return 0; | ||
7439 | } | ||
7440 | _ACEOF | ||
7441 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7442 | if { (eval echo "$as_me:7442: \"$ac_link\"") >&5 | ||
7443 | (eval $ac_link) 2>&5 | ||
7444 | ac_status=$? | ||
7445 | echo "$as_me:7445: \$? = $ac_status" >&5 | ||
7446 | (exit $ac_status); } && | ||
7447 | { ac_try='test -s conftest$ac_exeext' | ||
7448 | { (eval echo "$as_me:7448: \"$ac_try\"") >&5 | ||
7449 | (eval $ac_try) 2>&5 | ||
7450 | ac_status=$? | ||
7451 | echo "$as_me:7451: \$? = $ac_status" >&5 | ||
7452 | (exit $ac_status); }; }; then | ||
7453 | eval "$as_ac_var=yes" | ||
7454 | else | ||
7455 | echo "$as_me: failed program was:" >&5 | ||
7456 | cat conftest.$ac_ext >&5 | ||
7457 | eval "$as_ac_var=no" | ||
7458 | fi | ||
7459 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7460 | fi | ||
7461 | echo "$as_me:7461: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7462 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7463 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7464 | cat >>confdefs.h <<EOF | ||
7465 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7466 | EOF | ||
7467 | |||
7468 | fi | ||
7469 | done | ||
7470 | |||
7471 | for ac_func in setutxent utmpxname | ||
7472 | do | ||
7473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7474 | echo "$as_me:7474: checking for $ac_func" >&5 | ||
7475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7476 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7478 | else | ||
7479 | cat >conftest.$ac_ext <<_ACEOF | ||
7480 | #line 7480 "configure" | ||
7481 | #include "confdefs.h" | ||
7482 | /* System header to define __stub macros and hopefully few prototypes, | ||
7483 | which can conflict with char $ac_func (); below. */ | ||
7484 | #include <assert.h> | ||
7485 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7486 | #ifdef __cplusplus | ||
7487 | extern "C" | ||
7488 | #endif | ||
7489 | /* We use char because int might match the return type of a gcc2 | ||
7490 | builtin and then its argument prototype would still apply. */ | ||
7491 | char $ac_func (); | ||
7492 | char (*f) (); | ||
7493 | |||
7494 | int | ||
7495 | main () | ||
7496 | { | ||
7497 | /* The GNU C library defines this for functions which it implements | ||
7498 | to always fail with ENOSYS. Some functions are actually named | ||
7499 | something starting with __ and the normal name is an alias. */ | ||
7500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7501 | choke me | ||
7502 | #else | ||
7503 | f = $ac_func; | ||
7504 | #endif | ||
7505 | |||
7506 | ; | ||
7507 | return 0; | ||
7508 | } | ||
7509 | _ACEOF | ||
7510 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7511 | if { (eval echo "$as_me:7511: \"$ac_link\"") >&5 | ||
7512 | (eval $ac_link) 2>&5 | ||
7513 | ac_status=$? | ||
7514 | echo "$as_me:7514: \$? = $ac_status" >&5 | ||
7515 | (exit $ac_status); } && | ||
7516 | { ac_try='test -s conftest$ac_exeext' | ||
7517 | { (eval echo "$as_me:7517: \"$ac_try\"") >&5 | ||
7518 | (eval $ac_try) 2>&5 | ||
7519 | ac_status=$? | ||
7520 | echo "$as_me:7520: \$? = $ac_status" >&5 | ||
7521 | (exit $ac_status); }; }; then | ||
7522 | eval "$as_ac_var=yes" | ||
7523 | else | ||
7524 | echo "$as_me: failed program was:" >&5 | ||
7525 | cat conftest.$ac_ext >&5 | ||
7526 | eval "$as_ac_var=no" | ||
7527 | fi | ||
7528 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7529 | fi | ||
7530 | echo "$as_me:7530: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7533 | cat >>confdefs.h <<EOF | ||
7534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7535 | EOF | ||
7536 | |||
7537 | fi | ||
7538 | done | ||
7539 | |||
7540 | echo "$as_me:7540: checking for daemon" >&5 | ||
7541 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7542 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7544 | else | ||
7545 | cat >conftest.$ac_ext <<_ACEOF | ||
7546 | #line 7546 "configure" | ||
7547 | #include "confdefs.h" | ||
7548 | /* System header to define __stub macros and hopefully few prototypes, | ||
7549 | which can conflict with char daemon (); below. */ | ||
7550 | #include <assert.h> | ||
7551 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7552 | #ifdef __cplusplus | ||
7553 | extern "C" | ||
7554 | #endif | ||
7555 | /* We use char because int might match the return type of a gcc2 | ||
7556 | builtin and then its argument prototype would still apply. */ | ||
7557 | char daemon (); | ||
7558 | char (*f) (); | ||
7559 | |||
7560 | int | ||
7561 | main () | ||
7562 | { | ||
7563 | /* The GNU C library defines this for functions which it implements | ||
7564 | to always fail with ENOSYS. Some functions are actually named | ||
7565 | something starting with __ and the normal name is an alias. */ | ||
7566 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
7567 | choke me | ||
7568 | #else | ||
7569 | f = daemon; | ||
7570 | #endif | ||
7571 | |||
7572 | ; | ||
7573 | return 0; | ||
7574 | } | ||
7575 | _ACEOF | ||
7576 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7577 | if { (eval echo "$as_me:7577: \"$ac_link\"") >&5 | ||
7578 | (eval $ac_link) 2>&5 | ||
7579 | ac_status=$? | ||
7580 | echo "$as_me:7580: \$? = $ac_status" >&5 | ||
7581 | (exit $ac_status); } && | ||
7582 | { ac_try='test -s conftest$ac_exeext' | ||
7583 | { (eval echo "$as_me:7583: \"$ac_try\"") >&5 | ||
7584 | (eval $ac_try) 2>&5 | ||
7585 | ac_status=$? | ||
7586 | echo "$as_me:7586: \$? = $ac_status" >&5 | ||
7587 | (exit $ac_status); }; }; then | ||
7588 | ac_cv_func_daemon=yes | ||
7589 | else | ||
7590 | echo "$as_me: failed program was:" >&5 | ||
7591 | cat conftest.$ac_ext >&5 | ||
7592 | ac_cv_func_daemon=no | ||
7593 | fi | ||
7594 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7595 | fi | ||
7596 | echo "$as_me:7596: result: $ac_cv_func_daemon" >&5 | ||
7597 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
7598 | if test $ac_cv_func_daemon = yes; then | ||
7599 | cat >>confdefs.h <<\EOF | ||
7600 | #define HAVE_DAEMON 1 | ||
7601 | EOF | ||
7602 | |||
7603 | else | ||
7604 | echo "$as_me:7604: checking for daemon in -lbsd" >&5 | ||
7605 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
7606 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
7607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7608 | else | ||
7609 | ac_check_lib_save_LIBS=$LIBS | ||
7610 | LIBS="-lbsd $LIBS" | ||
7611 | cat >conftest.$ac_ext <<_ACEOF | ||
7612 | #line 7612 "configure" | ||
7613 | #include "confdefs.h" | ||
7614 | |||
7615 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7616 | #ifdef __cplusplus | ||
7617 | extern "C" | ||
7618 | #endif | ||
7619 | /* We use char because int might match the return type of a gcc2 | ||
7620 | builtin and then its argument prototype would still apply. */ | ||
7621 | char daemon (); | ||
7622 | int | ||
7623 | main () | ||
7624 | { | ||
7625 | daemon (); | ||
7626 | ; | ||
7627 | return 0; | ||
7628 | } | ||
7629 | _ACEOF | ||
7630 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7631 | if { (eval echo "$as_me:7631: \"$ac_link\"") >&5 | ||
7632 | (eval $ac_link) 2>&5 | ||
7633 | ac_status=$? | ||
7634 | echo "$as_me:7634: \$? = $ac_status" >&5 | ||
7635 | (exit $ac_status); } && | ||
7636 | { ac_try='test -s conftest$ac_exeext' | ||
7637 | { (eval echo "$as_me:7637: \"$ac_try\"") >&5 | ||
7638 | (eval $ac_try) 2>&5 | ||
7639 | ac_status=$? | ||
7640 | echo "$as_me:7640: \$? = $ac_status" >&5 | ||
7641 | (exit $ac_status); }; }; then | ||
7642 | ac_cv_lib_bsd_daemon=yes | ||
7643 | else | ||
7644 | echo "$as_me: failed program was:" >&5 | ||
7645 | cat conftest.$ac_ext >&5 | ||
7646 | ac_cv_lib_bsd_daemon=no | ||
7647 | fi | ||
7648 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7649 | LIBS=$ac_check_lib_save_LIBS | ||
7650 | fi | ||
7651 | echo "$as_me:7651: result: $ac_cv_lib_bsd_daemon" >&5 | ||
7652 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
7653 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
7654 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF | ||
7655 | #define HAVE_DAEMON 1 | ||
7656 | EOF | ||
7657 | |||
7658 | fi | ||
7659 | |||
7660 | fi | ||
7661 | |||
7662 | echo "$as_me:7662: checking for getpagesize" >&5 | ||
7663 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
7664 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7666 | else | ||
7667 | cat >conftest.$ac_ext <<_ACEOF | ||
7668 | #line 7668 "configure" | ||
7669 | #include "confdefs.h" | ||
7670 | /* System header to define __stub macros and hopefully few prototypes, | ||
7671 | which can conflict with char getpagesize (); below. */ | ||
7672 | #include <assert.h> | ||
7673 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7674 | #ifdef __cplusplus | ||
7675 | extern "C" | ||
7676 | #endif | ||
7677 | /* We use char because int might match the return type of a gcc2 | ||
7678 | builtin and then its argument prototype would still apply. */ | ||
7679 | char getpagesize (); | ||
7680 | char (*f) (); | ||
7681 | |||
7682 | int | ||
7683 | main () | ||
7684 | { | ||
7685 | /* The GNU C library defines this for functions which it implements | ||
7686 | to always fail with ENOSYS. Some functions are actually named | ||
7687 | something starting with __ and the normal name is an alias. */ | ||
7688 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
7689 | choke me | ||
7690 | #else | ||
7691 | f = getpagesize; | ||
7692 | #endif | ||
7693 | |||
7694 | ; | ||
7695 | return 0; | ||
7696 | } | ||
7697 | _ACEOF | ||
7698 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7699 | if { (eval echo "$as_me:7699: \"$ac_link\"") >&5 | ||
7700 | (eval $ac_link) 2>&5 | ||
7701 | ac_status=$? | ||
7702 | echo "$as_me:7702: \$? = $ac_status" >&5 | ||
7703 | (exit $ac_status); } && | ||
7704 | { ac_try='test -s conftest$ac_exeext' | ||
7705 | { (eval echo "$as_me:7705: \"$ac_try\"") >&5 | ||
7706 | (eval $ac_try) 2>&5 | ||
7707 | ac_status=$? | ||
7708 | echo "$as_me:7708: \$? = $ac_status" >&5 | ||
7709 | (exit $ac_status); }; }; then | ||
7710 | ac_cv_func_getpagesize=yes | ||
7711 | else | ||
7712 | echo "$as_me: failed program was:" >&5 | ||
7713 | cat conftest.$ac_ext >&5 | ||
7714 | ac_cv_func_getpagesize=no | ||
7715 | fi | ||
7716 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7717 | fi | ||
7718 | echo "$as_me:7718: result: $ac_cv_func_getpagesize" >&5 | ||
7719 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
7720 | if test $ac_cv_func_getpagesize = yes; then | ||
7721 | cat >>confdefs.h <<\EOF | ||
7722 | #define HAVE_GETPAGESIZE 1 | ||
7723 | EOF | ||
7724 | |||
7725 | else | ||
7726 | echo "$as_me:7726: checking for getpagesize in -lucb" >&5 | ||
7727 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
7728 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7730 | else | ||
7731 | ac_check_lib_save_LIBS=$LIBS | ||
7732 | LIBS="-lucb $LIBS" | ||
7733 | cat >conftest.$ac_ext <<_ACEOF | ||
7734 | #line 7734 "configure" | ||
7735 | #include "confdefs.h" | ||
7736 | |||
7737 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7738 | #ifdef __cplusplus | ||
7739 | extern "C" | ||
7740 | #endif | ||
7741 | /* We use char because int might match the return type of a gcc2 | ||
7742 | builtin and then its argument prototype would still apply. */ | ||
7743 | char getpagesize (); | ||
7744 | int | ||
7745 | main () | ||
7746 | { | ||
7747 | getpagesize (); | ||
7748 | ; | ||
7749 | return 0; | ||
7750 | } | ||
7751 | _ACEOF | ||
7752 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7753 | if { (eval echo "$as_me:7753: \"$ac_link\"") >&5 | ||
7754 | (eval $ac_link) 2>&5 | ||
7755 | ac_status=$? | ||
7756 | echo "$as_me:7756: \$? = $ac_status" >&5 | ||
7757 | (exit $ac_status); } && | ||
7758 | { ac_try='test -s conftest$ac_exeext' | ||
7759 | { (eval echo "$as_me:7759: \"$ac_try\"") >&5 | ||
7760 | (eval $ac_try) 2>&5 | ||
7761 | ac_status=$? | ||
7762 | echo "$as_me:7762: \$? = $ac_status" >&5 | ||
7763 | (exit $ac_status); }; }; then | ||
7764 | ac_cv_lib_ucb_getpagesize=yes | ||
7765 | else | ||
7766 | echo "$as_me: failed program was:" >&5 | ||
7767 | cat conftest.$ac_ext >&5 | ||
7768 | ac_cv_lib_ucb_getpagesize=no | ||
7769 | fi | ||
7770 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7771 | LIBS=$ac_check_lib_save_LIBS | ||
7772 | fi | ||
7773 | echo "$as_me:7773: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
7774 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
7775 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
7776 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF | ||
7777 | #define HAVE_GETPAGESIZE 1 | ||
7778 | EOF | ||
7779 | |||
7780 | fi | ||
7781 | |||
7782 | fi | ||
7783 | |||
7784 | # Check for broken snprintf | ||
7785 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
7786 | echo "$as_me:7786: checking whether snprintf correctly terminates long strings" >&5 | ||
7787 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
7788 | if test "$cross_compiling" = yes; then | ||
7789 | { { echo "$as_me:7789: error: cannot run test program while cross compiling" >&5 | ||
7790 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7791 | { (exit 1); exit 1; }; } | ||
7792 | else | ||
7793 | cat >conftest.$ac_ext <<_ACEOF | ||
7794 | #line 7794 "configure" | ||
7795 | #include "confdefs.h" | ||
7796 | |||
7797 | #include <stdio.h> | ||
7798 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
7799 | |||
7800 | _ACEOF | ||
7801 | rm -f conftest$ac_exeext | ||
7802 | if { (eval echo "$as_me:7802: \"$ac_link\"") >&5 | ||
7803 | (eval $ac_link) 2>&5 | ||
7804 | ac_status=$? | ||
7805 | echo "$as_me:7805: \$? = $ac_status" >&5 | ||
7806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7807 | { (eval echo "$as_me:7807: \"$ac_try\"") >&5 | ||
7808 | (eval $ac_try) 2>&5 | ||
7809 | ac_status=$? | ||
7810 | echo "$as_me:7810: \$? = $ac_status" >&5 | ||
7811 | (exit $ac_status); }; }; then | ||
7812 | echo "$as_me:7812: result: yes" >&5 | ||
7813 | echo "${ECHO_T}yes" >&6 | ||
7814 | else | ||
7815 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7816 | echo "$as_me: failed program was:" >&5 | ||
7817 | cat conftest.$ac_ext >&5 | ||
7818 | |||
7819 | echo "$as_me:7819: result: no" >&5 | ||
7820 | echo "${ECHO_T}no" >&6 | ||
7821 | cat >>confdefs.h <<\EOF | ||
7822 | #define BROKEN_SNPRINTF 1 | ||
7823 | EOF | ||
7824 | |||
7825 | { echo "$as_me:7825: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
7826 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
7827 | |||
7828 | fi | ||
7829 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7830 | fi | ||
7831 | fi | ||
7832 | |||
7833 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
7834 | echo "$as_me:7834: checking for (overly) strict mkstemp" >&5 | ||
7835 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
7836 | if test "$cross_compiling" = yes; then | ||
7837 | |||
7838 | echo "$as_me:7838: result: yes" >&5 | ||
7839 | echo "${ECHO_T}yes" >&6 | ||
7840 | cat >>confdefs.h <<\EOF | ||
7841 | #define HAVE_STRICT_MKSTEMP 1 | ||
7842 | EOF | ||
7843 | |||
7844 | else | ||
7845 | cat >conftest.$ac_ext <<_ACEOF | ||
7846 | #line 7846 "configure" | ||
7847 | #include "confdefs.h" | ||
7848 | |||
7849 | #include <stdlib.h> | ||
7850 | main() { char template[]="conftest.mkstemp-test"; | ||
7851 | if (mkstemp(template) == -1) | ||
7852 | exit(1); | ||
7853 | unlink(template); exit(0); | ||
7854 | } | ||
7855 | |||
7856 | _ACEOF | ||
7857 | rm -f conftest$ac_exeext | ||
7858 | if { (eval echo "$as_me:7858: \"$ac_link\"") >&5 | ||
7859 | (eval $ac_link) 2>&5 | ||
7860 | ac_status=$? | ||
7861 | echo "$as_me:7861: \$? = $ac_status" >&5 | ||
7862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7863 | { (eval echo "$as_me:7863: \"$ac_try\"") >&5 | ||
7864 | (eval $ac_try) 2>&5 | ||
7865 | ac_status=$? | ||
7866 | echo "$as_me:7866: \$? = $ac_status" >&5 | ||
7867 | (exit $ac_status); }; }; then | ||
7868 | |||
7869 | echo "$as_me:7869: result: no" >&5 | ||
7870 | echo "${ECHO_T}no" >&6 | ||
7871 | |||
7872 | else | ||
7873 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7874 | echo "$as_me: failed program was:" >&5 | ||
7875 | cat conftest.$ac_ext >&5 | ||
7876 | |||
7877 | echo "$as_me:7877: result: yes" >&5 | ||
7878 | echo "${ECHO_T}yes" >&6 | ||
7879 | cat >>confdefs.h <<\EOF | ||
7880 | #define HAVE_STRICT_MKSTEMP 1 | ||
7881 | EOF | ||
7882 | |||
7883 | fi | ||
7884 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7885 | fi | ||
7886 | fi | ||
7887 | |||
7888 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
7889 | echo "$as_me:7889: checking if openpty correctly handles controlling tty" >&5 | ||
7890 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
7891 | if test "$cross_compiling" = yes; then | ||
7892 | { { echo "$as_me:7892: error: cannot run test program while cross compiling" >&5 | ||
7893 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7894 | { (exit 1); exit 1; }; } | ||
7895 | else | ||
7896 | cat >conftest.$ac_ext <<_ACEOF | ||
7897 | #line 7897 "configure" | ||
7898 | #include "confdefs.h" | ||
7899 | |||
7900 | #include <stdio.h> | ||
7901 | #include <sys/fcntl.h> | ||
7902 | #include <sys/types.h> | ||
7903 | #include <sys/wait.h> | ||
7904 | |||
7905 | int | ||
7906 | main() | ||
7907 | { | ||
7908 | pid_t pid; | ||
7909 | int fd, ptyfd, ttyfd, status; | ||
7910 | |||
7911 | pid = fork(); | ||
7912 | if (pid < 0) { /* failed */ | ||
7913 | exit(1); | ||
7914 | } else if (pid > 0) { /* parent */ | ||
7915 | waitpid(pid, &status, 0); | ||
7916 | if (WIFEXITED(status)) | ||
7917 | exit(WEXITSTATUS(status)); | ||
7918 | else | ||
7919 | exit(2); | ||
7920 | } else { /* child */ | ||
7921 | close(0); close(1); close(2); | ||
7922 | setsid(); | ||
7923 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
7924 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
7925 | if (fd >= 0) | ||
7926 | exit(3); /* Acquired ctty: broken */ | ||
7927 | else | ||
7928 | exit(0); /* Did not acquire ctty: OK */ | ||
7929 | } | ||
7930 | } | ||
7931 | |||
7932 | _ACEOF | ||
7933 | rm -f conftest$ac_exeext | ||
7934 | if { (eval echo "$as_me:7934: \"$ac_link\"") >&5 | ||
7935 | (eval $ac_link) 2>&5 | ||
7936 | ac_status=$? | ||
7937 | echo "$as_me:7937: \$? = $ac_status" >&5 | ||
7938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7939 | { (eval echo "$as_me:7939: \"$ac_try\"") >&5 | ||
7940 | (eval $ac_try) 2>&5 | ||
7941 | ac_status=$? | ||
7942 | echo "$as_me:7942: \$? = $ac_status" >&5 | ||
7943 | (exit $ac_status); }; }; then | ||
7944 | |||
7945 | echo "$as_me:7945: result: yes" >&5 | ||
7946 | echo "${ECHO_T}yes" >&6 | ||
7947 | |||
7948 | else | ||
7949 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7950 | echo "$as_me: failed program was:" >&5 | ||
7951 | cat conftest.$ac_ext >&5 | ||
7952 | |||
7953 | echo "$as_me:7953: result: no" >&5 | ||
7954 | echo "${ECHO_T}no" >&6 | ||
7955 | cat >>confdefs.h <<\EOF | ||
7956 | #define SSHD_ACQUIRES_CTTY 1 | ||
7957 | EOF | ||
7958 | |||
7959 | fi | ||
7960 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7961 | fi | ||
7962 | fi | ||
7963 | |||
7964 | echo "$as_me:7964: checking whether getpgrp takes no argument" >&5 | ||
7965 | echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6 | ||
7966 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7968 | else | ||
7969 | # Use it with a single arg. | ||
7970 | cat >conftest.$ac_ext <<_ACEOF | ||
7971 | #line 7971 "configure" | ||
7972 | #include "confdefs.h" | ||
7973 | $ac_includes_default | ||
7974 | int | ||
7975 | main () | ||
7976 | { | ||
7977 | getpgrp (0); | ||
7978 | ; | ||
7979 | return 0; | ||
7980 | } | ||
7981 | _ACEOF | ||
7982 | rm -f conftest.$ac_objext | ||
7983 | if { (eval echo "$as_me:7983: \"$ac_compile\"") >&5 | ||
7984 | (eval $ac_compile) 2>&5 | ||
7985 | ac_status=$? | ||
7986 | echo "$as_me:7986: \$? = $ac_status" >&5 | ||
7987 | (exit $ac_status); } && | ||
7988 | { ac_try='test -s conftest.$ac_objext' | ||
7989 | { (eval echo "$as_me:7989: \"$ac_try\"") >&5 | ||
7990 | (eval $ac_try) 2>&5 | ||
7991 | ac_status=$? | ||
7992 | echo "$as_me:7992: \$? = $ac_status" >&5 | ||
7993 | (exit $ac_status); }; }; then | ||
7994 | ac_func_getpgrp_1=yes | ||
7995 | else | ||
7996 | echo "$as_me: failed program was:" >&5 | ||
7997 | cat conftest.$ac_ext >&5 | ||
7998 | ac_func_getpgrp_1=no | ||
7999 | fi | ||
8000 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8001 | # Use it with no arg. | ||
8002 | cat >conftest.$ac_ext <<_ACEOF | ||
8003 | #line 8003 "configure" | ||
8004 | #include "confdefs.h" | ||
8005 | $ac_includes_default | ||
8006 | int | ||
8007 | main () | ||
8008 | { | ||
8009 | getpgrp (); | ||
8010 | ; | ||
8011 | return 0; | ||
8012 | } | ||
8013 | _ACEOF | ||
8014 | rm -f conftest.$ac_objext | ||
8015 | if { (eval echo "$as_me:8015: \"$ac_compile\"") >&5 | ||
8016 | (eval $ac_compile) 2>&5 | ||
8017 | ac_status=$? | ||
8018 | echo "$as_me:8018: \$? = $ac_status" >&5 | ||
8019 | (exit $ac_status); } && | ||
8020 | { ac_try='test -s conftest.$ac_objext' | ||
8021 | { (eval echo "$as_me:8021: \"$ac_try\"") >&5 | ||
8022 | (eval $ac_try) 2>&5 | ||
8023 | ac_status=$? | ||
8024 | echo "$as_me:8024: \$? = $ac_status" >&5 | ||
8025 | (exit $ac_status); }; }; then | ||
8026 | ac_func_getpgrp_0=yes | ||
8027 | else | ||
8028 | echo "$as_me: failed program was:" >&5 | ||
8029 | cat conftest.$ac_ext >&5 | ||
8030 | ac_func_getpgrp_0=no | ||
8031 | fi | ||
8032 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8033 | # If both static checks agree, we are done. | ||
8034 | case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in | ||
8035 | yes:no) ac_cv_func_getpgrp_void=yes;; | ||
8036 | no:yes) ac_cv_func_getpgrp_void=false;; | ||
8037 | *) if test "$cross_compiling" = yes; then | ||
8038 | { { echo "$as_me:8038: error: cannot check getpgrp if cross compiling" >&5 | ||
8039 | echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;} | ||
8040 | { (exit 1); exit 1; }; } | ||
8041 | else | ||
8042 | cat >conftest.$ac_ext <<_ACEOF | ||
8043 | #line 8043 "configure" | ||
8044 | #include "confdefs.h" | ||
8045 | $ac_includes_default | ||
8046 | |||
8047 | /* | ||
8048 | * If this system has a BSD-style getpgrp(), | ||
8049 | * which takes a pid argument, exit unsuccessfully. | ||
8050 | * | ||
8051 | * Snarfed from Chet Ramey's bash pgrp.c test program | ||
8052 | */ | ||
8053 | |||
8054 | int pid; | ||
8055 | int pg1, pg2, pg3, pg4; | ||
8056 | int ng, np, s, child; | ||
8057 | |||
8058 | int | ||
8059 | main () | ||
8060 | { | ||
8061 | pid = getpid (); | ||
8062 | pg1 = getpgrp (0); | ||
8063 | pg2 = getpgrp (); | ||
8064 | pg3 = getpgrp (pid); | ||
8065 | pg4 = getpgrp (1); | ||
8066 | |||
8067 | /* If all of these values are the same, it's pretty sure that we're | ||
8068 | on a system that ignores getpgrp's first argument. */ | ||
8069 | if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | ||
8070 | exit (0); | ||
8071 | |||
8072 | child = fork (); | ||
8073 | if (child < 0) | ||
8074 | exit(1); | ||
8075 | else if (child == 0) | ||
8076 | { | ||
8077 | np = getpid (); | ||
8078 | /* If this is Sys V, this will not work; pgrp will be set to np | ||
8079 | because setpgrp just changes a pgrp to be the same as the | ||
8080 | pid. */ | ||
8081 | setpgrp (np, pg1); | ||
8082 | ng = getpgrp (0); /* Same result for Sys V and BSD */ | ||
8083 | if (ng == pg1) | ||
8084 | exit (1); | ||
8085 | else | ||
8086 | exit (0); | ||
8087 | } | ||
8088 | else | ||
8089 | { | ||
8090 | wait (&s); | ||
8091 | exit (s>>8); | ||
8092 | } | ||
8093 | } | ||
8094 | |||
8095 | _ACEOF | ||
8096 | rm -f conftest$ac_exeext | ||
8097 | if { (eval echo "$as_me:8097: \"$ac_link\"") >&5 | ||
8098 | (eval $ac_link) 2>&5 | ||
8099 | ac_status=$? | ||
8100 | echo "$as_me:8100: \$? = $ac_status" >&5 | ||
8101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8102 | { (eval echo "$as_me:8102: \"$ac_try\"") >&5 | ||
8103 | (eval $ac_try) 2>&5 | ||
8104 | ac_status=$? | ||
8105 | echo "$as_me:8105: \$? = $ac_status" >&5 | ||
8106 | (exit $ac_status); }; }; then | ||
8107 | ac_cv_func_getpgrp_void=yes | ||
8108 | else | ||
8109 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8110 | echo "$as_me: failed program was:" >&5 | ||
8111 | cat conftest.$ac_ext >&5 | ||
8112 | ac_cv_func_getpgrp_void=no | ||
8113 | fi | ||
8114 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8115 | fi;; | ||
8116 | esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 | ||
8117 | |||
8118 | fi | ||
8119 | echo "$as_me:8119: result: $ac_cv_func_getpgrp_void" >&5 | ||
8120 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8121 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8122 | |||
8123 | cat >>confdefs.h <<\EOF | ||
8124 | #define GETPGRP_VOID 1 | ||
8125 | EOF | ||
8126 | |||
8127 | fi | ||
8128 | |||
8129 | # Check for PAM libs | ||
8130 | PAM_MSG="no" | ||
8131 | |||
8132 | # Check whether --with-pam or --without-pam was given. | ||
8133 | if test "${with_pam+set}" = set; then | ||
8134 | withval="$with_pam" | ||
8135 | |||
8136 | if test "x$withval" != "xno" ; then | ||
8137 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
8138 | { { echo "$as_me:8138: error: PAM headers not found" >&5 | ||
8139 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8140 | { (exit 1); exit 1; }; } | ||
8141 | fi | ||
8142 | |||
8143 | echo "$as_me:8143: checking for dlopen in -ldl" >&5 | ||
8144 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8145 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8147 | else | ||
8148 | ac_check_lib_save_LIBS=$LIBS | ||
8149 | LIBS="-ldl $LIBS" | ||
8150 | cat >conftest.$ac_ext <<_ACEOF | ||
8151 | #line 8151 "configure" | ||
8152 | #include "confdefs.h" | ||
8153 | |||
8154 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8155 | #ifdef __cplusplus | ||
8156 | extern "C" | ||
8157 | #endif | ||
8158 | /* We use char because int might match the return type of a gcc2 | ||
8159 | builtin and then its argument prototype would still apply. */ | ||
8160 | char dlopen (); | ||
8161 | int | ||
8162 | main () | ||
8163 | { | ||
8164 | dlopen (); | ||
8165 | ; | ||
8166 | return 0; | ||
8167 | } | ||
8168 | _ACEOF | ||
8169 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8170 | if { (eval echo "$as_me:8170: \"$ac_link\"") >&5 | ||
8171 | (eval $ac_link) 2>&5 | ||
8172 | ac_status=$? | ||
8173 | echo "$as_me:8173: \$? = $ac_status" >&5 | ||
8174 | (exit $ac_status); } && | ||
8175 | { ac_try='test -s conftest$ac_exeext' | ||
8176 | { (eval echo "$as_me:8176: \"$ac_try\"") >&5 | ||
8177 | (eval $ac_try) 2>&5 | ||
8178 | ac_status=$? | ||
8179 | echo "$as_me:8179: \$? = $ac_status" >&5 | ||
8180 | (exit $ac_status); }; }; then | ||
8181 | ac_cv_lib_dl_dlopen=yes | ||
8182 | else | ||
8183 | echo "$as_me: failed program was:" >&5 | ||
8184 | cat conftest.$ac_ext >&5 | ||
8185 | ac_cv_lib_dl_dlopen=no | ||
8186 | fi | ||
8187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8188 | LIBS=$ac_check_lib_save_LIBS | ||
8189 | fi | ||
8190 | echo "$as_me:8190: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8191 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8192 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8193 | cat >>confdefs.h <<EOF | ||
8194 | #define HAVE_LIBDL 1 | ||
8195 | EOF | ||
8196 | |||
8197 | LIBS="-ldl $LIBS" | ||
8198 | |||
8199 | fi | ||
8200 | |||
8201 | echo "$as_me:8201: checking for pam_set_item in -lpam" >&5 | ||
8202 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8203 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8205 | else | ||
8206 | ac_check_lib_save_LIBS=$LIBS | ||
8207 | LIBS="-lpam $LIBS" | ||
8208 | cat >conftest.$ac_ext <<_ACEOF | ||
8209 | #line 8209 "configure" | ||
8210 | #include "confdefs.h" | ||
8211 | |||
8212 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8213 | #ifdef __cplusplus | ||
8214 | extern "C" | ||
8215 | #endif | ||
8216 | /* We use char because int might match the return type of a gcc2 | ||
8217 | builtin and then its argument prototype would still apply. */ | ||
8218 | char pam_set_item (); | ||
8219 | int | ||
8220 | main () | ||
8221 | { | ||
8222 | pam_set_item (); | ||
8223 | ; | ||
8224 | return 0; | ||
8225 | } | ||
8226 | _ACEOF | ||
8227 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8228 | if { (eval echo "$as_me:8228: \"$ac_link\"") >&5 | ||
8229 | (eval $ac_link) 2>&5 | ||
8230 | ac_status=$? | ||
8231 | echo "$as_me:8231: \$? = $ac_status" >&5 | ||
8232 | (exit $ac_status); } && | ||
8233 | { ac_try='test -s conftest$ac_exeext' | ||
8234 | { (eval echo "$as_me:8234: \"$ac_try\"") >&5 | ||
8235 | (eval $ac_try) 2>&5 | ||
8236 | ac_status=$? | ||
8237 | echo "$as_me:8237: \$? = $ac_status" >&5 | ||
8238 | (exit $ac_status); }; }; then | ||
8239 | ac_cv_lib_pam_pam_set_item=yes | ||
8240 | else | ||
8241 | echo "$as_me: failed program was:" >&5 | ||
8242 | cat conftest.$ac_ext >&5 | ||
8243 | ac_cv_lib_pam_pam_set_item=no | ||
8244 | fi | ||
8245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8246 | LIBS=$ac_check_lib_save_LIBS | ||
8247 | fi | ||
8248 | echo "$as_me:8248: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8249 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8250 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8251 | cat >>confdefs.h <<EOF | ||
8252 | #define HAVE_LIBPAM 1 | ||
8253 | EOF | ||
8254 | |||
8255 | LIBS="-lpam $LIBS" | ||
8256 | |||
8257 | else | ||
8258 | { { echo "$as_me:8258: error: *** libpam missing" >&5 | ||
8259 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8260 | { (exit 1); exit 1; }; } | ||
8261 | fi | ||
8262 | |||
8263 | for ac_func in pam_getenvlist | ||
8264 | do | ||
8265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8266 | echo "$as_me:8266: checking for $ac_func" >&5 | ||
8267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8268 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8270 | else | ||
8271 | cat >conftest.$ac_ext <<_ACEOF | ||
8272 | #line 8272 "configure" | ||
8273 | #include "confdefs.h" | ||
8274 | /* System header to define __stub macros and hopefully few prototypes, | ||
8275 | which can conflict with char $ac_func (); below. */ | ||
8276 | #include <assert.h> | ||
8277 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8278 | #ifdef __cplusplus | ||
8279 | extern "C" | ||
8280 | #endif | ||
8281 | /* We use char because int might match the return type of a gcc2 | ||
8282 | builtin and then its argument prototype would still apply. */ | ||
8283 | char $ac_func (); | ||
8284 | char (*f) (); | ||
8285 | |||
8286 | int | ||
8287 | main () | ||
8288 | { | ||
8289 | /* The GNU C library defines this for functions which it implements | ||
8290 | to always fail with ENOSYS. Some functions are actually named | ||
8291 | something starting with __ and the normal name is an alias. */ | ||
8292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8293 | choke me | ||
8294 | #else | ||
8295 | f = $ac_func; | ||
8296 | #endif | ||
8297 | |||
8298 | ; | ||
8299 | return 0; | ||
8300 | } | ||
8301 | _ACEOF | ||
8302 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8303 | if { (eval echo "$as_me:8303: \"$ac_link\"") >&5 | ||
8304 | (eval $ac_link) 2>&5 | ||
8305 | ac_status=$? | ||
8306 | echo "$as_me:8306: \$? = $ac_status" >&5 | ||
8307 | (exit $ac_status); } && | ||
8308 | { ac_try='test -s conftest$ac_exeext' | ||
8309 | { (eval echo "$as_me:8309: \"$ac_try\"") >&5 | ||
8310 | (eval $ac_try) 2>&5 | ||
8311 | ac_status=$? | ||
8312 | echo "$as_me:8312: \$? = $ac_status" >&5 | ||
8313 | (exit $ac_status); }; }; then | ||
8314 | eval "$as_ac_var=yes" | ||
8315 | else | ||
8316 | echo "$as_me: failed program was:" >&5 | ||
8317 | cat conftest.$ac_ext >&5 | ||
8318 | eval "$as_ac_var=no" | ||
8319 | fi | ||
8320 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8321 | fi | ||
8322 | echo "$as_me:8322: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8325 | cat >>confdefs.h <<EOF | ||
8326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8327 | EOF | ||
8328 | |||
8329 | fi | ||
8330 | done | ||
8331 | |||
8332 | for ac_func in pam_putenv | ||
8333 | do | ||
8334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8335 | echo "$as_me:8335: checking for $ac_func" >&5 | ||
8336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8337 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8339 | else | ||
8340 | cat >conftest.$ac_ext <<_ACEOF | ||
8341 | #line 8341 "configure" | ||
8342 | #include "confdefs.h" | ||
8343 | /* System header to define __stub macros and hopefully few prototypes, | ||
8344 | which can conflict with char $ac_func (); below. */ | ||
8345 | #include <assert.h> | ||
8346 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8347 | #ifdef __cplusplus | ||
8348 | extern "C" | ||
8349 | #endif | ||
8350 | /* We use char because int might match the return type of a gcc2 | ||
8351 | builtin and then its argument prototype would still apply. */ | ||
8352 | char $ac_func (); | ||
8353 | char (*f) (); | ||
8354 | |||
8355 | int | ||
8356 | main () | ||
8357 | { | ||
8358 | /* The GNU C library defines this for functions which it implements | ||
8359 | to always fail with ENOSYS. Some functions are actually named | ||
8360 | something starting with __ and the normal name is an alias. */ | ||
8361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8362 | choke me | ||
8363 | #else | ||
8364 | f = $ac_func; | ||
8365 | #endif | ||
8366 | |||
8367 | ; | ||
8368 | return 0; | ||
8369 | } | ||
8370 | _ACEOF | ||
8371 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8372 | if { (eval echo "$as_me:8372: \"$ac_link\"") >&5 | ||
8373 | (eval $ac_link) 2>&5 | ||
8374 | ac_status=$? | ||
8375 | echo "$as_me:8375: \$? = $ac_status" >&5 | ||
8376 | (exit $ac_status); } && | ||
8377 | { ac_try='test -s conftest$ac_exeext' | ||
8378 | { (eval echo "$as_me:8378: \"$ac_try\"") >&5 | ||
8379 | (eval $ac_try) 2>&5 | ||
8380 | ac_status=$? | ||
8381 | echo "$as_me:8381: \$? = $ac_status" >&5 | ||
8382 | (exit $ac_status); }; }; then | ||
8383 | eval "$as_ac_var=yes" | ||
8384 | else | ||
8385 | echo "$as_me: failed program was:" >&5 | ||
8386 | cat conftest.$ac_ext >&5 | ||
8387 | eval "$as_ac_var=no" | ||
8388 | fi | ||
8389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8390 | fi | ||
8391 | echo "$as_me:8391: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8392 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8393 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8394 | cat >>confdefs.h <<EOF | ||
8395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8396 | EOF | ||
8397 | |||
8398 | fi | ||
8399 | done | ||
8400 | |||
8401 | disable_shadow=yes | ||
8402 | PAM_MSG="yes" | ||
8403 | |||
8404 | cat >>confdefs.h <<\EOF | ||
8405 | #define USE_PAM 1 | ||
8406 | EOF | ||
8407 | |||
8408 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8409 | LIBPAM="-lpam -ldl" | ||
8410 | else | ||
8411 | LIBPAM="-lpam" | ||
8412 | fi | ||
8413 | |||
8414 | fi | ||
8415 | |||
8416 | fi; | ||
8417 | |||
8418 | # Check for older PAM | ||
8419 | if test "x$PAM_MSG" = "xyes" ; then | ||
8420 | # Check PAM strerror arguments (old PAM) | ||
8421 | echo "$as_me:8421: checking whether pam_strerror takes only one argument" >&5 | ||
8422 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8423 | cat >conftest.$ac_ext <<_ACEOF | ||
8424 | #line 8424 "configure" | ||
8425 | #include "confdefs.h" | ||
8426 | |||
8427 | #include <stdlib.h> | ||
8428 | #include <security/pam_appl.h> | ||
8429 | |||
8430 | int | ||
8431 | main () | ||
8432 | { | ||
8433 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8434 | ; | ||
8435 | return 0; | ||
8436 | } | ||
8437 | _ACEOF | ||
8438 | rm -f conftest.$ac_objext | ||
8439 | if { (eval echo "$as_me:8439: \"$ac_compile\"") >&5 | ||
8440 | (eval $ac_compile) 2>&5 | ||
8441 | ac_status=$? | ||
8442 | echo "$as_me:8442: \$? = $ac_status" >&5 | ||
8443 | (exit $ac_status); } && | ||
8444 | { ac_try='test -s conftest.$ac_objext' | ||
8445 | { (eval echo "$as_me:8445: \"$ac_try\"") >&5 | ||
8446 | (eval $ac_try) 2>&5 | ||
8447 | ac_status=$? | ||
8448 | echo "$as_me:8448: \$? = $ac_status" >&5 | ||
8449 | (exit $ac_status); }; }; then | ||
8450 | echo "$as_me:8450: result: no" >&5 | ||
8451 | echo "${ECHO_T}no" >&6 | ||
8452 | else | ||
8453 | echo "$as_me: failed program was:" >&5 | ||
8454 | cat conftest.$ac_ext >&5 | ||
8455 | |||
8456 | cat >>confdefs.h <<\EOF | ||
8457 | #define HAVE_OLD_PAM 1 | ||
8458 | EOF | ||
8459 | |||
8460 | echo "$as_me:8460: result: yes" >&5 | ||
8461 | echo "${ECHO_T}yes" >&6 | ||
8462 | PAM_MSG="yes (old library)" | ||
8463 | |||
8464 | fi | ||
8465 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8466 | fi | ||
8467 | |||
8468 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
8469 | # because the system crypt() is more featureful. | ||
8470 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
8471 | |||
8472 | echo "$as_me:8472: checking for crypt in -lcrypt" >&5 | ||
8473 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8474 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8476 | else | ||
8477 | ac_check_lib_save_LIBS=$LIBS | ||
8478 | LIBS="-lcrypt $LIBS" | ||
8479 | cat >conftest.$ac_ext <<_ACEOF | ||
8480 | #line 8480 "configure" | ||
8481 | #include "confdefs.h" | ||
8482 | |||
8483 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8484 | #ifdef __cplusplus | ||
8485 | extern "C" | ||
8486 | #endif | ||
8487 | /* We use char because int might match the return type of a gcc2 | ||
8488 | builtin and then its argument prototype would still apply. */ | ||
8489 | char crypt (); | ||
8490 | int | ||
8491 | main () | ||
8492 | { | ||
8493 | crypt (); | ||
8494 | ; | ||
8495 | return 0; | ||
8496 | } | ||
8497 | _ACEOF | ||
8498 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8499 | if { (eval echo "$as_me:8499: \"$ac_link\"") >&5 | ||
8500 | (eval $ac_link) 2>&5 | ||
8501 | ac_status=$? | ||
8502 | echo "$as_me:8502: \$? = $ac_status" >&5 | ||
8503 | (exit $ac_status); } && | ||
8504 | { ac_try='test -s conftest$ac_exeext' | ||
8505 | { (eval echo "$as_me:8505: \"$ac_try\"") >&5 | ||
8506 | (eval $ac_try) 2>&5 | ||
8507 | ac_status=$? | ||
8508 | echo "$as_me:8508: \$? = $ac_status" >&5 | ||
8509 | (exit $ac_status); }; }; then | ||
8510 | ac_cv_lib_crypt_crypt=yes | ||
8511 | else | ||
8512 | echo "$as_me: failed program was:" >&5 | ||
8513 | cat conftest.$ac_ext >&5 | ||
8514 | ac_cv_lib_crypt_crypt=no | ||
8515 | fi | ||
8516 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8517 | LIBS=$ac_check_lib_save_LIBS | ||
8518 | fi | ||
8519 | echo "$as_me:8519: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8520 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8521 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8522 | cat >>confdefs.h <<EOF | ||
8523 | #define HAVE_LIBCRYPT 1 | ||
8524 | EOF | ||
8525 | |||
8526 | LIBS="-lcrypt $LIBS" | ||
8527 | |||
8528 | fi | ||
8529 | |||
8530 | fi | ||
8531 | |||
8532 | # Search for OpenSSL | ||
8533 | saved_CPPFLAGS="$CPPFLAGS" | ||
8534 | saved_LDFLAGS="$LDFLAGS" | ||
8535 | |||
8536 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8537 | if test "${with_ssl_dir+set}" = set; then | ||
8538 | withval="$with_ssl_dir" | ||
8539 | |||
8540 | if test "x$withval" != "xno" ; then | ||
8541 | if test -d "$withval/lib"; then | ||
8542 | if test -n "${need_dash_r}"; then | ||
8543 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8544 | else | ||
8545 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8546 | fi | ||
8547 | else | ||
8548 | if test -n "${need_dash_r}"; then | ||
8549 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8550 | else | ||
8551 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8552 | fi | ||
8553 | fi | ||
8554 | if test -d "$withval/include"; then | ||
8555 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8556 | else | ||
8557 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8558 | fi | ||
8559 | fi | ||
8560 | |||
8561 | fi; | ||
8562 | LIBS="$LIBS -lcrypto" | ||
8563 | cat >conftest.$ac_ext <<_ACEOF | ||
8564 | #line 8564 "configure" | ||
8565 | #include "confdefs.h" | ||
8566 | |||
8567 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8568 | #ifdef __cplusplus | ||
8569 | extern "C" | ||
8570 | #endif | ||
8571 | /* We use char because int might match the return type of a gcc2 | ||
8572 | builtin and then its argument prototype would still apply. */ | ||
8573 | char RAND_add (); | ||
8574 | int | ||
8575 | main () | ||
8576 | { | ||
8577 | RAND_add (); | ||
8578 | ; | ||
8579 | return 0; | ||
8580 | } | ||
8581 | _ACEOF | ||
8582 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8583 | if { (eval echo "$as_me:8583: \"$ac_link\"") >&5 | ||
8584 | (eval $ac_link) 2>&5 | ||
8585 | ac_status=$? | ||
8586 | echo "$as_me:8586: \$? = $ac_status" >&5 | ||
8587 | (exit $ac_status); } && | ||
8588 | { ac_try='test -s conftest$ac_exeext' | ||
8589 | { (eval echo "$as_me:8589: \"$ac_try\"") >&5 | ||
8590 | (eval $ac_try) 2>&5 | ||
8591 | ac_status=$? | ||
8592 | echo "$as_me:8592: \$? = $ac_status" >&5 | ||
8593 | (exit $ac_status); }; }; then | ||
8594 | cat >>confdefs.h <<\EOF | ||
8595 | #define HAVE_OPENSSL 1 | ||
8596 | EOF | ||
8597 | |||
8598 | else | ||
8599 | echo "$as_me: failed program was:" >&5 | ||
8600 | cat conftest.$ac_ext >&5 | ||
8601 | |||
8602 | if test -n "${need_dash_r}"; then | ||
8603 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8604 | else | ||
8605 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8606 | fi | ||
8607 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8608 | cat >conftest.$ac_ext <<_ACEOF | ||
8609 | #line 8609 "configure" | ||
8610 | #include "confdefs.h" | ||
8611 | |||
8612 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8613 | #ifdef __cplusplus | ||
8614 | extern "C" | ||
8615 | #endif | ||
8616 | /* We use char because int might match the return type of a gcc2 | ||
8617 | builtin and then its argument prototype would still apply. */ | ||
8618 | char RAND_add (); | ||
8619 | int | ||
8620 | main () | ||
8621 | { | ||
8622 | RAND_add (); | ||
8623 | ; | ||
8624 | return 0; | ||
8625 | } | ||
8626 | _ACEOF | ||
8627 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8628 | if { (eval echo "$as_me:8628: \"$ac_link\"") >&5 | ||
8629 | (eval $ac_link) 2>&5 | ||
8630 | ac_status=$? | ||
8631 | echo "$as_me:8631: \$? = $ac_status" >&5 | ||
8632 | (exit $ac_status); } && | ||
8633 | { ac_try='test -s conftest$ac_exeext' | ||
8634 | { (eval echo "$as_me:8634: \"$ac_try\"") >&5 | ||
8635 | (eval $ac_try) 2>&5 | ||
8636 | ac_status=$? | ||
8637 | echo "$as_me:8637: \$? = $ac_status" >&5 | ||
8638 | (exit $ac_status); }; }; then | ||
8639 | cat >>confdefs.h <<\EOF | ||
8640 | #define HAVE_OPENSSL 1 | ||
8641 | EOF | ||
8642 | |||
8643 | else | ||
8644 | echo "$as_me: failed program was:" >&5 | ||
8645 | cat conftest.$ac_ext >&5 | ||
8646 | |||
8647 | { { echo "$as_me:8647: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8648 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8649 | { (exit 1); exit 1; }; } | ||
8650 | |||
8651 | fi | ||
8652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8653 | |||
8654 | fi | ||
8655 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8656 | |||
8657 | # Determine OpenSSL header version | ||
8658 | echo "$as_me:8658: checking OpenSSL header version" >&5 | ||
8659 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
8660 | if test "$cross_compiling" = yes; then | ||
8661 | { { echo "$as_me:8661: error: cannot run test program while cross compiling" >&5 | ||
8662 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8663 | { (exit 1); exit 1; }; } | ||
8664 | else | ||
8665 | cat >conftest.$ac_ext <<_ACEOF | ||
8666 | #line 8666 "configure" | ||
8667 | #include "confdefs.h" | ||
8668 | |||
8669 | #include <stdio.h> | ||
8670 | #include <string.h> | ||
8671 | #include <openssl/opensslv.h> | ||
8672 | #define DATA "conftest.sslincver" | ||
8673 | int main(void) { | ||
8674 | FILE *fd; | ||
8675 | int rc; | ||
8676 | |||
8677 | fd = fopen(DATA,"w"); | ||
8678 | if(fd == NULL) | ||
8679 | exit(1); | ||
8680 | |||
8681 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
8682 | exit(1); | ||
8683 | |||
8684 | exit(0); | ||
8685 | } | ||
8686 | |||
8687 | _ACEOF | ||
8688 | rm -f conftest$ac_exeext | ||
8689 | if { (eval echo "$as_me:8689: \"$ac_link\"") >&5 | ||
8690 | (eval $ac_link) 2>&5 | ||
8691 | ac_status=$? | ||
8692 | echo "$as_me:8692: \$? = $ac_status" >&5 | ||
8693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8694 | { (eval echo "$as_me:8694: \"$ac_try\"") >&5 | ||
8695 | (eval $ac_try) 2>&5 | ||
8696 | ac_status=$? | ||
8697 | echo "$as_me:8697: \$? = $ac_status" >&5 | ||
8698 | (exit $ac_status); }; }; then | ||
8699 | |||
8700 | ssl_header_ver=`cat conftest.sslincver` | ||
8701 | echo "$as_me:8701: result: $ssl_header_ver" >&5 | ||
8702 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
8703 | |||
8704 | else | ||
8705 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8706 | echo "$as_me: failed program was:" >&5 | ||
8707 | cat conftest.$ac_ext >&5 | ||
8708 | |||
8709 | echo "$as_me:8709: result: not found" >&5 | ||
8710 | echo "${ECHO_T}not found" >&6 | ||
8711 | { { echo "$as_me:8711: error: OpenSSL version header not found." >&5 | ||
8712 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
8713 | { (exit 1); exit 1; }; } | ||
8714 | |||
8715 | fi | ||
8716 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8717 | fi | ||
8718 | |||
8719 | # Determine OpenSSL library version | ||
8720 | echo "$as_me:8720: checking OpenSSL library version" >&5 | ||
8721 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
8722 | if test "$cross_compiling" = yes; then | ||
8723 | { { echo "$as_me:8723: error: cannot run test program while cross compiling" >&5 | ||
8724 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8725 | { (exit 1); exit 1; }; } | ||
8726 | else | ||
8727 | cat >conftest.$ac_ext <<_ACEOF | ||
8728 | #line 8728 "configure" | ||
8729 | #include "confdefs.h" | ||
8730 | |||
8731 | #include <stdio.h> | ||
8732 | #include <string.h> | ||
8733 | #include <openssl/opensslv.h> | ||
8734 | #include <openssl/crypto.h> | ||
8735 | #define DATA "conftest.ssllibver" | ||
8736 | int main(void) { | ||
8737 | FILE *fd; | ||
8738 | int rc; | ||
8739 | |||
8740 | fd = fopen(DATA,"w"); | ||
8741 | if(fd == NULL) | ||
8742 | exit(1); | ||
8743 | |||
8744 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
8745 | exit(1); | ||
8746 | |||
8747 | exit(0); | ||
8748 | } | ||
8749 | |||
8750 | _ACEOF | ||
8751 | rm -f conftest$ac_exeext | ||
8752 | if { (eval echo "$as_me:8752: \"$ac_link\"") >&5 | ||
8753 | (eval $ac_link) 2>&5 | ||
8754 | ac_status=$? | ||
8755 | echo "$as_me:8755: \$? = $ac_status" >&5 | ||
8756 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8757 | { (eval echo "$as_me:8757: \"$ac_try\"") >&5 | ||
8758 | (eval $ac_try) 2>&5 | ||
8759 | ac_status=$? | ||
8760 | echo "$as_me:8760: \$? = $ac_status" >&5 | ||
8761 | (exit $ac_status); }; }; then | ||
8762 | |||
8763 | ssl_library_ver=`cat conftest.ssllibver` | ||
8764 | echo "$as_me:8764: result: $ssl_library_ver" >&5 | ||
8765 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
8766 | |||
8767 | else | ||
8768 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8769 | echo "$as_me: failed program was:" >&5 | ||
8770 | cat conftest.$ac_ext >&5 | ||
8771 | |||
8772 | echo "$as_me:8772: result: not found" >&5 | ||
8773 | echo "${ECHO_T}not found" >&6 | ||
8774 | { { echo "$as_me:8774: error: OpenSSL library not found." >&5 | ||
8775 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
8776 | { (exit 1); exit 1; }; } | ||
8777 | |||
8778 | fi | ||
8779 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8780 | fi | ||
8781 | |||
8782 | # Sanity check OpenSSL headers | ||
8783 | echo "$as_me:8783: checking whether OpenSSL's headers match the library" >&5 | ||
8784 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
8785 | if test "$cross_compiling" = yes; then | ||
8786 | { { echo "$as_me:8786: error: cannot run test program while cross compiling" >&5 | ||
8787 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8788 | { (exit 1); exit 1; }; } | ||
8789 | else | ||
8790 | cat >conftest.$ac_ext <<_ACEOF | ||
8791 | #line 8791 "configure" | ||
8792 | #include "confdefs.h" | ||
8793 | |||
8794 | #include <string.h> | ||
8795 | #include <openssl/opensslv.h> | ||
8796 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
8797 | |||
8798 | _ACEOF | ||
8799 | rm -f conftest$ac_exeext | ||
8800 | if { (eval echo "$as_me:8800: \"$ac_link\"") >&5 | ||
8801 | (eval $ac_link) 2>&5 | ||
8802 | ac_status=$? | ||
8803 | echo "$as_me:8803: \$? = $ac_status" >&5 | ||
8804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8805 | { (eval echo "$as_me:8805: \"$ac_try\"") >&5 | ||
8806 | (eval $ac_try) 2>&5 | ||
8807 | ac_status=$? | ||
8808 | echo "$as_me:8808: \$? = $ac_status" >&5 | ||
8809 | (exit $ac_status); }; }; then | ||
8810 | |||
8811 | echo "$as_me:8811: result: yes" >&5 | ||
8812 | echo "${ECHO_T}yes" >&6 | ||
8813 | |||
8814 | else | ||
8815 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8816 | echo "$as_me: failed program was:" >&5 | ||
8817 | cat conftest.$ac_ext >&5 | ||
8818 | |||
8819 | echo "$as_me:8819: result: no" >&5 | ||
8820 | echo "${ECHO_T}no" >&6 | ||
8821 | { { echo "$as_me:8821: error: Your OpenSSL headers do not match your library. | ||
8822 | Check config.log for details. | ||
8823 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
8824 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
8825 | Check config.log for details. | ||
8826 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
8827 | { (exit 1); exit 1; }; } | ||
8828 | |||
8829 | fi | ||
8830 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8831 | fi | ||
8832 | |||
8833 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
8834 | # version in OpenSSL. Skip this for PAM | ||
8835 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
8836 | echo "$as_me:8836: checking for crypt in -lcrypt" >&5 | ||
8837 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8838 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8840 | else | ||
8841 | ac_check_lib_save_LIBS=$LIBS | ||
8842 | LIBS="-lcrypt $LIBS" | ||
8843 | cat >conftest.$ac_ext <<_ACEOF | ||
8844 | #line 8844 "configure" | ||
8845 | #include "confdefs.h" | ||
8846 | |||
8847 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8848 | #ifdef __cplusplus | ||
8849 | extern "C" | ||
8850 | #endif | ||
8851 | /* We use char because int might match the return type of a gcc2 | ||
8852 | builtin and then its argument prototype would still apply. */ | ||
8853 | char crypt (); | ||
8854 | int | ||
8855 | main () | ||
8856 | { | ||
8857 | crypt (); | ||
8858 | ; | ||
8859 | return 0; | ||
8860 | } | ||
8861 | _ACEOF | ||
8862 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8863 | if { (eval echo "$as_me:8863: \"$ac_link\"") >&5 | ||
8864 | (eval $ac_link) 2>&5 | ||
8865 | ac_status=$? | ||
8866 | echo "$as_me:8866: \$? = $ac_status" >&5 | ||
8867 | (exit $ac_status); } && | ||
8868 | { ac_try='test -s conftest$ac_exeext' | ||
8869 | { (eval echo "$as_me:8869: \"$ac_try\"") >&5 | ||
8870 | (eval $ac_try) 2>&5 | ||
8871 | ac_status=$? | ||
8872 | echo "$as_me:8872: \$? = $ac_status" >&5 | ||
8873 | (exit $ac_status); }; }; then | ||
8874 | ac_cv_lib_crypt_crypt=yes | ||
8875 | else | ||
8876 | echo "$as_me: failed program was:" >&5 | ||
8877 | cat conftest.$ac_ext >&5 | ||
8878 | ac_cv_lib_crypt_crypt=no | ||
8879 | fi | ||
8880 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8881 | LIBS=$ac_check_lib_save_LIBS | ||
8882 | fi | ||
8883 | echo "$as_me:8883: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8884 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8885 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8886 | LIBS="$LIBS -lcrypt" | ||
8887 | fi | ||
8888 | |||
8889 | fi | ||
8890 | |||
8891 | ### Configure cryptographic random number support | ||
8892 | |||
8893 | # Check wheter OpenSSL seeds itself | ||
8894 | echo "$as_me:8894: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
8895 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
8896 | if test "$cross_compiling" = yes; then | ||
8897 | { { echo "$as_me:8897: error: cannot run test program while cross compiling" >&5 | ||
8898 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8899 | { (exit 1); exit 1; }; } | ||
8900 | else | ||
8901 | cat >conftest.$ac_ext <<_ACEOF | ||
8902 | #line 8902 "configure" | ||
8903 | #include "confdefs.h" | ||
8904 | |||
8905 | #include <string.h> | ||
8906 | #include <openssl/rand.h> | ||
8907 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
8908 | |||
8909 | _ACEOF | ||
8910 | rm -f conftest$ac_exeext | ||
8911 | if { (eval echo "$as_me:8911: \"$ac_link\"") >&5 | ||
8912 | (eval $ac_link) 2>&5 | ||
8913 | ac_status=$? | ||
8914 | echo "$as_me:8914: \$? = $ac_status" >&5 | ||
8915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8916 | { (eval echo "$as_me:8916: \"$ac_try\"") >&5 | ||
8917 | (eval $ac_try) 2>&5 | ||
8918 | ac_status=$? | ||
8919 | echo "$as_me:8919: \$? = $ac_status" >&5 | ||
8920 | (exit $ac_status); }; }; then | ||
8921 | |||
8922 | OPENSSL_SEEDS_ITSELF=yes | ||
8923 | echo "$as_me:8923: result: yes" >&5 | ||
8924 | echo "${ECHO_T}yes" >&6 | ||
8925 | |||
8926 | else | ||
8927 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8928 | echo "$as_me: failed program was:" >&5 | ||
8929 | cat conftest.$ac_ext >&5 | ||
8930 | |||
8931 | echo "$as_me:8931: result: no" >&5 | ||
8932 | echo "${ECHO_T}no" >&6 | ||
8933 | # Default to use of the rand helper if OpenSSL doesn't | ||
8934 | # seed itself | ||
8935 | USE_RAND_HELPER=yes | ||
8936 | |||
8937 | fi | ||
8938 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8939 | fi | ||
8940 | |||
8941 | # Do we want to force the use of the rand helper? | ||
8942 | |||
8943 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
8944 | if test "${with_rand_helper+set}" = set; then | ||
8945 | withval="$with_rand_helper" | ||
8946 | |||
8947 | if test "x$withval" = "xno" ; then | ||
8948 | # Force use of OpenSSL's internal RNG, even if | ||
8949 | # the previous test showed it to be unseeded. | ||
8950 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
8951 | { echo "$as_me:8951: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
8952 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
8953 | OPENSSL_SEEDS_ITSELF=yes | ||
8954 | USE_RAND_HELPER="" | ||
8955 | fi | ||
8956 | else | ||
8957 | USE_RAND_HELPER=yes | ||
8958 | fi | ||
8959 | |||
8960 | fi; | ||
8961 | |||
8962 | # Which randomness source do we use? | ||
8963 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
8964 | # OpenSSL only | ||
8965 | cat >>confdefs.h <<\EOF | ||
8966 | #define OPENSSL_PRNG_ONLY 1 | ||
8967 | EOF | ||
8968 | |||
8969 | RAND_MSG="OpenSSL internal ONLY" | ||
8970 | INSTALL_SSH_RAND_HELPER="" | ||
8971 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
8972 | # install rand helper | ||
8973 | RAND_MSG="ssh-rand-helper" | ||
8974 | INSTALL_SSH_RAND_HELPER="yes" | ||
8975 | fi | ||
8976 | |||
8977 | ### Configuration of ssh-rand-helper | ||
8978 | |||
8979 | # PRNGD TCP socket | ||
8980 | |||
8981 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
8982 | if test "${with_prngd_port+set}" = set; then | ||
8983 | withval="$with_prngd_port" | ||
8984 | |||
8985 | case "$withval" in | ||
8986 | no) | ||
8987 | withval="" | ||
8988 | ;; | ||
8989 | [0-9]*) | ||
8990 | ;; | ||
8991 | *) | ||
8992 | { { echo "$as_me:8992: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
8993 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
8994 | { (exit 1); exit 1; }; } | ||
8995 | ;; | ||
8996 | esac | ||
8997 | if test ! -z "$withval" ; then | ||
8998 | PRNGD_PORT="$withval" | ||
8999 | cat >>confdefs.h <<EOF | ||
9000 | #define PRNGD_PORT $PRNGD_PORT | ||
9001 | EOF | ||
9002 | |||
9003 | fi | ||
9004 | |||
9005 | fi; | ||
9006 | |||
9007 | # PRNGD Unix domain socket | ||
9008 | |||
9009 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9010 | if test "${with_prngd_socket+set}" = set; then | ||
9011 | withval="$with_prngd_socket" | ||
9012 | |||
9013 | case "$withval" in | ||
9014 | yes) | ||
9015 | withval="/var/run/egd-pool" | ||
9016 | ;; | ||
9017 | no) | ||
9018 | withval="" | ||
9019 | ;; | ||
9020 | /*) | ||
9021 | ;; | ||
9022 | *) | ||
9023 | { { echo "$as_me:9023: error: You must specify an absolute path to the entropy socket" >&5 | ||
9024 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9025 | { (exit 1); exit 1; }; } | ||
9026 | ;; | ||
9027 | esac | ||
9028 | |||
9029 | if test ! -z "$withval" ; then | ||
9030 | if test ! -z "$PRNGD_PORT" ; then | ||
9031 | { { echo "$as_me:9031: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9032 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9033 | { (exit 1); exit 1; }; } | ||
9034 | fi | ||
9035 | if test ! -r "$withval" ; then | ||
9036 | { echo "$as_me:9036: WARNING: Entropy socket is not readable" >&5 | ||
9037 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9038 | fi | ||
9039 | PRNGD_SOCKET="$withval" | ||
9040 | cat >>confdefs.h <<EOF | ||
9041 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9042 | EOF | ||
9043 | |||
9044 | fi | ||
9045 | |||
9046 | else | ||
9047 | |||
9048 | # Check for existing socket only if we don't have a random device already | ||
9049 | if test "$USE_RAND_HELPER" = yes ; then | ||
9050 | echo "$as_me:9050: checking for PRNGD/EGD socket" >&5 | ||
9051 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9052 | # Insert other locations here | ||
9053 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9054 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9055 | PRNGD_SOCKET="$sock" | ||
9056 | cat >>confdefs.h <<EOF | ||
9057 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9058 | EOF | ||
9059 | |||
9060 | break; | ||
9061 | fi | ||
9062 | done | ||
9063 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9064 | echo "$as_me:9064: result: $PRNGD_SOCKET" >&5 | ||
9065 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9066 | else | ||
9067 | echo "$as_me:9067: result: not found" >&5 | ||
9068 | echo "${ECHO_T}not found" >&6 | ||
9069 | fi | ||
9070 | fi | ||
9071 | |||
9072 | fi; | ||
9073 | |||
9074 | # Change default command timeout for hashing entropy source | ||
9075 | entropy_timeout=200 | ||
9076 | |||
9077 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9078 | if test "${with_entropy_timeout+set}" = set; then | ||
9079 | withval="$with_entropy_timeout" | ||
9080 | |||
9081 | if test "x$withval" != "xno" ; then | ||
9082 | entropy_timeout=$withval | ||
9083 | fi | ||
9084 | |||
9085 | fi; | ||
9086 | cat >>confdefs.h <<EOF | ||
9087 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9088 | EOF | ||
9089 | |||
9090 | SSH_PRIVSEP_USER=sshd | ||
9091 | |||
9092 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9093 | if test "${with_privsep_user+set}" = set; then | ||
9094 | withval="$with_privsep_user" | ||
9095 | |||
9096 | if test -n "$withval"; then | ||
9097 | SSH_PRIVSEP_USER=$withval | ||
9098 | fi | ||
9099 | |||
9100 | fi; | ||
9101 | cat >>confdefs.h <<EOF | ||
9102 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9103 | EOF | ||
9104 | |||
9105 | # We do this little dance with the search path to insure | ||
9106 | # that programs that we select for use by installed programs | ||
9107 | # (which may be run by the super-user) come from trusted | ||
9108 | # locations before they come from the user's private area. | ||
9109 | # This should help avoid accidentally configuring some | ||
9110 | # random version of a program in someone's personal bin. | ||
9111 | |||
9112 | OPATH=$PATH | ||
9113 | PATH=/bin:/usr/bin | ||
9114 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9115 | test -d /sbin && PATH=$PATH:/sbin | ||
9116 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9117 | PATH=$PATH:/etc:$OPATH | ||
9118 | |||
9119 | # These programs are used by the command hashing source to gather entropy | ||
9120 | |||
9121 | # Extract the first word of "ls", so it can be a program name with args. | ||
9122 | set dummy ls; ac_word=$2 | ||
9123 | echo "$as_me:9123: checking for $ac_word" >&5 | ||
9124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9125 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9127 | else | ||
9128 | case $PROG_LS in | ||
9129 | [\\/]* | ?:[\\/]*) | ||
9130 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9131 | ;; | ||
9132 | *) | ||
9133 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9134 | ac_dummy="$PATH" | ||
9135 | for ac_dir in $ac_dummy; do | ||
9136 | IFS=$ac_save_IFS | ||
9137 | test -z "$ac_dir" && ac_dir=. | ||
9138 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9139 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
9140 | echo "$as_me:9140: found $ac_dir/$ac_word" >&5 | ||
9141 | break | ||
9142 | fi | ||
9143 | done | ||
9144 | |||
9145 | ;; | ||
9146 | esac | ||
9147 | fi | ||
9148 | PROG_LS=$ac_cv_path_PROG_LS | ||
9149 | |||
9150 | if test -n "$PROG_LS"; then | ||
9151 | echo "$as_me:9151: result: $PROG_LS" >&5 | ||
9152 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9153 | else | ||
9154 | echo "$as_me:9154: result: no" >&5 | ||
9155 | echo "${ECHO_T}no" >&6 | ||
9156 | fi | ||
9157 | |||
9158 | if test -z "$PROG_LS" ; then | ||
9159 | PROG_LS="undef" | ||
9160 | fi | ||
9161 | |||
9162 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9163 | set dummy netstat; ac_word=$2 | ||
9164 | echo "$as_me:9164: checking for $ac_word" >&5 | ||
9165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9166 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9168 | else | ||
9169 | case $PROG_NETSTAT in | ||
9170 | [\\/]* | ?:[\\/]*) | ||
9171 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9172 | ;; | ||
9173 | *) | ||
9174 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9175 | ac_dummy="$PATH" | ||
9176 | for ac_dir in $ac_dummy; do | ||
9177 | IFS=$ac_save_IFS | ||
9178 | test -z "$ac_dir" && ac_dir=. | ||
9179 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9180 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
9181 | echo "$as_me:9181: found $ac_dir/$ac_word" >&5 | ||
9182 | break | ||
9183 | fi | ||
9184 | done | ||
9185 | |||
9186 | ;; | ||
9187 | esac | ||
9188 | fi | ||
9189 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9190 | |||
9191 | if test -n "$PROG_NETSTAT"; then | ||
9192 | echo "$as_me:9192: result: $PROG_NETSTAT" >&5 | ||
9193 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9194 | else | ||
9195 | echo "$as_me:9195: result: no" >&5 | ||
9196 | echo "${ECHO_T}no" >&6 | ||
9197 | fi | ||
9198 | |||
9199 | if test -z "$PROG_NETSTAT" ; then | ||
9200 | PROG_NETSTAT="undef" | ||
9201 | fi | ||
9202 | |||
9203 | # Extract the first word of "arp", so it can be a program name with args. | ||
9204 | set dummy arp; ac_word=$2 | ||
9205 | echo "$as_me:9205: checking for $ac_word" >&5 | ||
9206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9207 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9209 | else | ||
9210 | case $PROG_ARP in | ||
9211 | [\\/]* | ?:[\\/]*) | ||
9212 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9213 | ;; | ||
9214 | *) | ||
9215 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9216 | ac_dummy="$PATH" | ||
9217 | for ac_dir in $ac_dummy; do | ||
9218 | IFS=$ac_save_IFS | ||
9219 | test -z "$ac_dir" && ac_dir=. | ||
9220 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9221 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
9222 | echo "$as_me:9222: found $ac_dir/$ac_word" >&5 | ||
9223 | break | ||
9224 | fi | ||
9225 | done | ||
9226 | |||
9227 | ;; | ||
9228 | esac | ||
9229 | fi | ||
9230 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9231 | |||
9232 | if test -n "$PROG_ARP"; then | ||
9233 | echo "$as_me:9233: result: $PROG_ARP" >&5 | ||
9234 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9235 | else | ||
9236 | echo "$as_me:9236: result: no" >&5 | ||
9237 | echo "${ECHO_T}no" >&6 | ||
9238 | fi | ||
9239 | |||
9240 | if test -z "$PROG_ARP" ; then | ||
9241 | PROG_ARP="undef" | ||
9242 | fi | ||
9243 | |||
9244 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9245 | set dummy ifconfig; ac_word=$2 | ||
9246 | echo "$as_me:9246: checking for $ac_word" >&5 | ||
9247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9248 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9250 | else | ||
9251 | case $PROG_IFCONFIG in | ||
9252 | [\\/]* | ?:[\\/]*) | ||
9253 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9254 | ;; | ||
9255 | *) | ||
9256 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9257 | ac_dummy="$PATH" | ||
9258 | for ac_dir in $ac_dummy; do | ||
9259 | IFS=$ac_save_IFS | ||
9260 | test -z "$ac_dir" && ac_dir=. | ||
9261 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9262 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
9263 | echo "$as_me:9263: found $ac_dir/$ac_word" >&5 | ||
9264 | break | ||
9265 | fi | ||
9266 | done | ||
9267 | |||
9268 | ;; | ||
9269 | esac | ||
9270 | fi | ||
9271 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
9272 | |||
9273 | if test -n "$PROG_IFCONFIG"; then | ||
9274 | echo "$as_me:9274: result: $PROG_IFCONFIG" >&5 | ||
9275 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
9276 | else | ||
9277 | echo "$as_me:9277: result: no" >&5 | ||
9278 | echo "${ECHO_T}no" >&6 | ||
9279 | fi | ||
9280 | |||
9281 | if test -z "$PROG_IFCONFIG" ; then | ||
9282 | PROG_IFCONFIG="undef" | ||
9283 | fi | ||
9284 | |||
9285 | # Extract the first word of "jstat", so it can be a program name with args. | ||
9286 | set dummy jstat; ac_word=$2 | ||
9287 | echo "$as_me:9287: checking for $ac_word" >&5 | ||
9288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9289 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
9290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9291 | else | ||
9292 | case $PROG_JSTAT in | ||
9293 | [\\/]* | ?:[\\/]*) | ||
9294 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
9295 | ;; | ||
9296 | *) | ||
9297 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9298 | ac_dummy="$PATH" | ||
9299 | for ac_dir in $ac_dummy; do | ||
9300 | IFS=$ac_save_IFS | ||
9301 | test -z "$ac_dir" && ac_dir=. | ||
9302 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9303 | ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word" | ||
9304 | echo "$as_me:9304: found $ac_dir/$ac_word" >&5 | ||
9305 | break | ||
9306 | fi | ||
9307 | done | ||
9308 | |||
9309 | ;; | ||
9310 | esac | ||
9311 | fi | ||
9312 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
9313 | |||
9314 | if test -n "$PROG_JSTAT"; then | ||
9315 | echo "$as_me:9315: result: $PROG_JSTAT" >&5 | ||
9316 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
9317 | else | ||
9318 | echo "$as_me:9318: result: no" >&5 | ||
9319 | echo "${ECHO_T}no" >&6 | ||
9320 | fi | ||
9321 | |||
9322 | if test -z "$PROG_JSTAT" ; then | ||
9323 | PROG_JSTAT="undef" | ||
9324 | fi | ||
9325 | |||
9326 | # Extract the first word of "ps", so it can be a program name with args. | ||
9327 | set dummy ps; ac_word=$2 | ||
9328 | echo "$as_me:9328: checking for $ac_word" >&5 | ||
9329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9330 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9332 | else | ||
9333 | case $PROG_PS in | ||
9334 | [\\/]* | ?:[\\/]*) | ||
9335 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
9336 | ;; | ||
9337 | *) | ||
9338 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9339 | ac_dummy="$PATH" | ||
9340 | for ac_dir in $ac_dummy; do | ||
9341 | IFS=$ac_save_IFS | ||
9342 | test -z "$ac_dir" && ac_dir=. | ||
9343 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9344 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
9345 | echo "$as_me:9345: found $ac_dir/$ac_word" >&5 | ||
9346 | break | ||
9347 | fi | ||
9348 | done | ||
9349 | |||
9350 | ;; | ||
9351 | esac | ||
9352 | fi | ||
9353 | PROG_PS=$ac_cv_path_PROG_PS | ||
9354 | |||
9355 | if test -n "$PROG_PS"; then | ||
9356 | echo "$as_me:9356: result: $PROG_PS" >&5 | ||
9357 | echo "${ECHO_T}$PROG_PS" >&6 | ||
9358 | else | ||
9359 | echo "$as_me:9359: result: no" >&5 | ||
9360 | echo "${ECHO_T}no" >&6 | ||
9361 | fi | ||
9362 | |||
9363 | if test -z "$PROG_PS" ; then | ||
9364 | PROG_PS="undef" | ||
9365 | fi | ||
9366 | |||
9367 | # Extract the first word of "sar", so it can be a program name with args. | ||
9368 | set dummy sar; ac_word=$2 | ||
9369 | echo "$as_me:9369: checking for $ac_word" >&5 | ||
9370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9371 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
9372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9373 | else | ||
9374 | case $PROG_SAR in | ||
9375 | [\\/]* | ?:[\\/]*) | ||
9376 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
9377 | ;; | ||
9378 | *) | ||
9379 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9380 | ac_dummy="$PATH" | ||
9381 | for ac_dir in $ac_dummy; do | ||
9382 | IFS=$ac_save_IFS | ||
9383 | test -z "$ac_dir" && ac_dir=. | ||
9384 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9385 | ac_cv_path_PROG_SAR="$ac_dir/$ac_word" | ||
9386 | echo "$as_me:9386: found $ac_dir/$ac_word" >&5 | ||
9387 | break | ||
9388 | fi | ||
9389 | done | ||
9390 | |||
9391 | ;; | ||
9392 | esac | ||
9393 | fi | ||
9394 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
9395 | |||
9396 | if test -n "$PROG_SAR"; then | ||
9397 | echo "$as_me:9397: result: $PROG_SAR" >&5 | ||
9398 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
9399 | else | ||
9400 | echo "$as_me:9400: result: no" >&5 | ||
9401 | echo "${ECHO_T}no" >&6 | ||
9402 | fi | ||
9403 | |||
9404 | if test -z "$PROG_SAR" ; then | ||
9405 | PROG_SAR="undef" | ||
9406 | fi | ||
9407 | |||
9408 | # Extract the first word of "w", so it can be a program name with args. | ||
9409 | set dummy w; ac_word=$2 | ||
9410 | echo "$as_me:9410: checking for $ac_word" >&5 | ||
9411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9412 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
9413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9414 | else | ||
9415 | case $PROG_W in | ||
9416 | [\\/]* | ?:[\\/]*) | ||
9417 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
9418 | ;; | ||
9419 | *) | ||
9420 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9421 | ac_dummy="$PATH" | ||
9422 | for ac_dir in $ac_dummy; do | ||
9423 | IFS=$ac_save_IFS | ||
9424 | test -z "$ac_dir" && ac_dir=. | ||
9425 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9426 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
9427 | echo "$as_me:9427: found $ac_dir/$ac_word" >&5 | ||
9428 | break | ||
9429 | fi | ||
9430 | done | ||
9431 | |||
9432 | ;; | ||
9433 | esac | ||
9434 | fi | ||
9435 | PROG_W=$ac_cv_path_PROG_W | ||
9436 | |||
9437 | if test -n "$PROG_W"; then | ||
9438 | echo "$as_me:9438: result: $PROG_W" >&5 | ||
9439 | echo "${ECHO_T}$PROG_W" >&6 | ||
9440 | else | ||
9441 | echo "$as_me:9441: result: no" >&5 | ||
9442 | echo "${ECHO_T}no" >&6 | ||
9443 | fi | ||
9444 | |||
9445 | if test -z "$PROG_W" ; then | ||
9446 | PROG_W="undef" | ||
9447 | fi | ||
9448 | |||
9449 | # Extract the first word of "who", so it can be a program name with args. | ||
9450 | set dummy who; ac_word=$2 | ||
9451 | echo "$as_me:9451: checking for $ac_word" >&5 | ||
9452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9453 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
9454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9455 | else | ||
9456 | case $PROG_WHO in | ||
9457 | [\\/]* | ?:[\\/]*) | ||
9458 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
9459 | ;; | ||
9460 | *) | ||
9461 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9462 | ac_dummy="$PATH" | ||
9463 | for ac_dir in $ac_dummy; do | ||
9464 | IFS=$ac_save_IFS | ||
9465 | test -z "$ac_dir" && ac_dir=. | ||
9466 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9467 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
9468 | echo "$as_me:9468: found $ac_dir/$ac_word" >&5 | ||
9469 | break | ||
9470 | fi | ||
9471 | done | ||
9472 | |||
9473 | ;; | ||
9474 | esac | ||
9475 | fi | ||
9476 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
9477 | |||
9478 | if test -n "$PROG_WHO"; then | ||
9479 | echo "$as_me:9479: result: $PROG_WHO" >&5 | ||
9480 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
9481 | else | ||
9482 | echo "$as_me:9482: result: no" >&5 | ||
9483 | echo "${ECHO_T}no" >&6 | ||
9484 | fi | ||
9485 | |||
9486 | if test -z "$PROG_WHO" ; then | ||
9487 | PROG_WHO="undef" | ||
9488 | fi | ||
9489 | |||
9490 | # Extract the first word of "last", so it can be a program name with args. | ||
9491 | set dummy last; ac_word=$2 | ||
9492 | echo "$as_me:9492: checking for $ac_word" >&5 | ||
9493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9494 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
9495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9496 | else | ||
9497 | case $PROG_LAST in | ||
9498 | [\\/]* | ?:[\\/]*) | ||
9499 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9500 | ;; | ||
9501 | *) | ||
9502 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9503 | ac_dummy="$PATH" | ||
9504 | for ac_dir in $ac_dummy; do | ||
9505 | IFS=$ac_save_IFS | ||
9506 | test -z "$ac_dir" && ac_dir=. | ||
9507 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9508 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
9509 | echo "$as_me:9509: found $ac_dir/$ac_word" >&5 | ||
9510 | break | ||
9511 | fi | ||
9512 | done | ||
9513 | |||
9514 | ;; | ||
9515 | esac | ||
9516 | fi | ||
9517 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9518 | |||
9519 | if test -n "$PROG_LAST"; then | ||
9520 | echo "$as_me:9520: result: $PROG_LAST" >&5 | ||
9521 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9522 | else | ||
9523 | echo "$as_me:9523: result: no" >&5 | ||
9524 | echo "${ECHO_T}no" >&6 | ||
9525 | fi | ||
9526 | |||
9527 | if test -z "$PROG_LAST" ; then | ||
9528 | PROG_LAST="undef" | ||
9529 | fi | ||
9530 | |||
9531 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9532 | set dummy lastlog; ac_word=$2 | ||
9533 | echo "$as_me:9533: checking for $ac_word" >&5 | ||
9534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9535 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9537 | else | ||
9538 | case $PROG_LASTLOG in | ||
9539 | [\\/]* | ?:[\\/]*) | ||
9540 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9541 | ;; | ||
9542 | *) | ||
9543 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9544 | ac_dummy="$PATH" | ||
9545 | for ac_dir in $ac_dummy; do | ||
9546 | IFS=$ac_save_IFS | ||
9547 | test -z "$ac_dir" && ac_dir=. | ||
9548 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9549 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
9550 | echo "$as_me:9550: found $ac_dir/$ac_word" >&5 | ||
9551 | break | ||
9552 | fi | ||
9553 | done | ||
9554 | |||
9555 | ;; | ||
9556 | esac | ||
9557 | fi | ||
9558 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9559 | |||
9560 | if test -n "$PROG_LASTLOG"; then | ||
9561 | echo "$as_me:9561: result: $PROG_LASTLOG" >&5 | ||
9562 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9563 | else | ||
9564 | echo "$as_me:9564: result: no" >&5 | ||
9565 | echo "${ECHO_T}no" >&6 | ||
9566 | fi | ||
9567 | |||
9568 | if test -z "$PROG_LASTLOG" ; then | ||
9569 | PROG_LASTLOG="undef" | ||
9570 | fi | ||
9571 | |||
9572 | # Extract the first word of "df", so it can be a program name with args. | ||
9573 | set dummy df; ac_word=$2 | ||
9574 | echo "$as_me:9574: checking for $ac_word" >&5 | ||
9575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9576 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9578 | else | ||
9579 | case $PROG_DF in | ||
9580 | [\\/]* | ?:[\\/]*) | ||
9581 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9582 | ;; | ||
9583 | *) | ||
9584 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9585 | ac_dummy="$PATH" | ||
9586 | for ac_dir in $ac_dummy; do | ||
9587 | IFS=$ac_save_IFS | ||
9588 | test -z "$ac_dir" && ac_dir=. | ||
9589 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9590 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
9591 | echo "$as_me:9591: found $ac_dir/$ac_word" >&5 | ||
9592 | break | ||
9593 | fi | ||
9594 | done | ||
9595 | |||
9596 | ;; | ||
9597 | esac | ||
9598 | fi | ||
9599 | PROG_DF=$ac_cv_path_PROG_DF | ||
9600 | |||
9601 | if test -n "$PROG_DF"; then | ||
9602 | echo "$as_me:9602: result: $PROG_DF" >&5 | ||
9603 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9604 | else | ||
9605 | echo "$as_me:9605: result: no" >&5 | ||
9606 | echo "${ECHO_T}no" >&6 | ||
9607 | fi | ||
9608 | |||
9609 | if test -z "$PROG_DF" ; then | ||
9610 | PROG_DF="undef" | ||
9611 | fi | ||
9612 | |||
9613 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9614 | set dummy vmstat; ac_word=$2 | ||
9615 | echo "$as_me:9615: checking for $ac_word" >&5 | ||
9616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9617 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9619 | else | ||
9620 | case $PROG_VMSTAT in | ||
9621 | [\\/]* | ?:[\\/]*) | ||
9622 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9623 | ;; | ||
9624 | *) | ||
9625 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9626 | ac_dummy="$PATH" | ||
9627 | for ac_dir in $ac_dummy; do | ||
9628 | IFS=$ac_save_IFS | ||
9629 | test -z "$ac_dir" && ac_dir=. | ||
9630 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9631 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
9632 | echo "$as_me:9632: found $ac_dir/$ac_word" >&5 | ||
9633 | break | ||
9634 | fi | ||
9635 | done | ||
9636 | |||
9637 | ;; | ||
9638 | esac | ||
9639 | fi | ||
9640 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9641 | |||
9642 | if test -n "$PROG_VMSTAT"; then | ||
9643 | echo "$as_me:9643: result: $PROG_VMSTAT" >&5 | ||
9644 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9645 | else | ||
9646 | echo "$as_me:9646: result: no" >&5 | ||
9647 | echo "${ECHO_T}no" >&6 | ||
9648 | fi | ||
9649 | |||
9650 | if test -z "$PROG_VMSTAT" ; then | ||
9651 | PROG_VMSTAT="undef" | ||
9652 | fi | ||
9653 | |||
9654 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9655 | set dummy uptime; ac_word=$2 | ||
9656 | echo "$as_me:9656: checking for $ac_word" >&5 | ||
9657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9658 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9660 | else | ||
9661 | case $PROG_UPTIME in | ||
9662 | [\\/]* | ?:[\\/]*) | ||
9663 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
9664 | ;; | ||
9665 | *) | ||
9666 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9667 | ac_dummy="$PATH" | ||
9668 | for ac_dir in $ac_dummy; do | ||
9669 | IFS=$ac_save_IFS | ||
9670 | test -z "$ac_dir" && ac_dir=. | ||
9671 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9672 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
9673 | echo "$as_me:9673: found $ac_dir/$ac_word" >&5 | ||
9674 | break | ||
9675 | fi | ||
9676 | done | ||
9677 | |||
9678 | ;; | ||
9679 | esac | ||
9680 | fi | ||
9681 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
9682 | |||
9683 | if test -n "$PROG_UPTIME"; then | ||
9684 | echo "$as_me:9684: result: $PROG_UPTIME" >&5 | ||
9685 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
9686 | else | ||
9687 | echo "$as_me:9687: result: no" >&5 | ||
9688 | echo "${ECHO_T}no" >&6 | ||
9689 | fi | ||
9690 | |||
9691 | if test -z "$PROG_UPTIME" ; then | ||
9692 | PROG_UPTIME="undef" | ||
9693 | fi | ||
9694 | |||
9695 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
9696 | set dummy ipcs; ac_word=$2 | ||
9697 | echo "$as_me:9697: checking for $ac_word" >&5 | ||
9698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9699 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
9700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9701 | else | ||
9702 | case $PROG_IPCS in | ||
9703 | [\\/]* | ?:[\\/]*) | ||
9704 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
9705 | ;; | ||
9706 | *) | ||
9707 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9708 | ac_dummy="$PATH" | ||
9709 | for ac_dir in $ac_dummy; do | ||
9710 | IFS=$ac_save_IFS | ||
9711 | test -z "$ac_dir" && ac_dir=. | ||
9712 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9713 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
9714 | echo "$as_me:9714: found $ac_dir/$ac_word" >&5 | ||
9715 | break | ||
9716 | fi | ||
9717 | done | ||
9718 | |||
9719 | ;; | ||
9720 | esac | ||
9721 | fi | ||
9722 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
9723 | |||
9724 | if test -n "$PROG_IPCS"; then | ||
9725 | echo "$as_me:9725: result: $PROG_IPCS" >&5 | ||
9726 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
9727 | else | ||
9728 | echo "$as_me:9728: result: no" >&5 | ||
9729 | echo "${ECHO_T}no" >&6 | ||
9730 | fi | ||
9731 | |||
9732 | if test -z "$PROG_IPCS" ; then | ||
9733 | PROG_IPCS="undef" | ||
9734 | fi | ||
9735 | |||
9736 | # Extract the first word of "tail", so it can be a program name with args. | ||
9737 | set dummy tail; ac_word=$2 | ||
9738 | echo "$as_me:9738: checking for $ac_word" >&5 | ||
9739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9740 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
9741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9742 | else | ||
9743 | case $PROG_TAIL in | ||
9744 | [\\/]* | ?:[\\/]*) | ||
9745 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
9746 | ;; | ||
9747 | *) | ||
9748 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9749 | ac_dummy="$PATH" | ||
9750 | for ac_dir in $ac_dummy; do | ||
9751 | IFS=$ac_save_IFS | ||
9752 | test -z "$ac_dir" && ac_dir=. | ||
9753 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9754 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
9755 | echo "$as_me:9755: found $ac_dir/$ac_word" >&5 | ||
9756 | break | ||
9757 | fi | ||
9758 | done | ||
9759 | |||
9760 | ;; | ||
9761 | esac | ||
9762 | fi | ||
9763 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
9764 | |||
9765 | if test -n "$PROG_TAIL"; then | ||
9766 | echo "$as_me:9766: result: $PROG_TAIL" >&5 | ||
9767 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
9768 | else | ||
9769 | echo "$as_me:9769: result: no" >&5 | ||
9770 | echo "${ECHO_T}no" >&6 | ||
9771 | fi | ||
9772 | |||
9773 | if test -z "$PROG_TAIL" ; then | ||
9774 | PROG_TAIL="undef" | ||
9775 | fi | ||
9776 | |||
9777 | # restore PATH | ||
9778 | PATH=$OPATH | ||
9779 | |||
9780 | # Where does ssh-rand-helper get its randomness from? | ||
9781 | INSTALL_SSH_PRNG_CMDS="" | ||
9782 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
9783 | if test ! -z "$PRNGD_PORT" ; then | ||
9784 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
9785 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
9786 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
9787 | else | ||
9788 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
9789 | RAND_HELPER_CMDHASH=yes | ||
9790 | INSTALL_SSH_PRNG_CMDS="yes" | ||
9791 | fi | ||
9792 | fi | ||
9793 | |||
9794 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
9795 | if test ! -z "$SONY" ; then | ||
9796 | LIBS="$LIBS -liberty"; | ||
9797 | fi | ||
9798 | |||
9799 | # Checks for data types | ||
9800 | echo "$as_me:9800: checking for char" >&5 | ||
9801 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
9802 | if test "${ac_cv_type_char+set}" = set; then | ||
9803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9804 | else | ||
9805 | cat >conftest.$ac_ext <<_ACEOF | ||
9806 | #line 9806 "configure" | ||
9807 | #include "confdefs.h" | ||
9808 | $ac_includes_default | ||
9809 | int | ||
9810 | main () | ||
9811 | { | ||
9812 | if ((char *) 0) | ||
9813 | return 0; | ||
9814 | if (sizeof (char)) | ||
9815 | return 0; | ||
9816 | ; | ||
9817 | return 0; | ||
9818 | } | ||
9819 | _ACEOF | ||
9820 | rm -f conftest.$ac_objext | ||
9821 | if { (eval echo "$as_me:9821: \"$ac_compile\"") >&5 | ||
9822 | (eval $ac_compile) 2>&5 | ||
9823 | ac_status=$? | ||
9824 | echo "$as_me:9824: \$? = $ac_status" >&5 | ||
9825 | (exit $ac_status); } && | ||
9826 | { ac_try='test -s conftest.$ac_objext' | ||
9827 | { (eval echo "$as_me:9827: \"$ac_try\"") >&5 | ||
9828 | (eval $ac_try) 2>&5 | ||
9829 | ac_status=$? | ||
9830 | echo "$as_me:9830: \$? = $ac_status" >&5 | ||
9831 | (exit $ac_status); }; }; then | ||
9832 | ac_cv_type_char=yes | ||
9833 | else | ||
9834 | echo "$as_me: failed program was:" >&5 | ||
9835 | cat conftest.$ac_ext >&5 | ||
9836 | ac_cv_type_char=no | ||
9837 | fi | ||
9838 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9839 | fi | ||
9840 | echo "$as_me:9840: result: $ac_cv_type_char" >&5 | ||
9841 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
9842 | |||
9843 | echo "$as_me:9843: checking size of char" >&5 | ||
9844 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
9845 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
9846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9847 | else | ||
9848 | if test "$ac_cv_type_char" = yes; then | ||
9849 | if test "$cross_compiling" = yes; then | ||
9850 | # Depending upon the size, compute the lo and hi bounds. | ||
9851 | cat >conftest.$ac_ext <<_ACEOF | ||
9852 | #line 9852 "configure" | ||
9853 | #include "confdefs.h" | ||
9854 | $ac_includes_default | ||
9855 | int | ||
9856 | main () | ||
9857 | { | ||
9858 | int _array_ [1 - 2 * !((sizeof (char)) >= 0)] | ||
9859 | ; | ||
9860 | return 0; | ||
9861 | } | ||
9862 | _ACEOF | ||
9863 | rm -f conftest.$ac_objext | ||
9864 | if { (eval echo "$as_me:9864: \"$ac_compile\"") >&5 | ||
9865 | (eval $ac_compile) 2>&5 | ||
9866 | ac_status=$? | ||
9867 | echo "$as_me:9867: \$? = $ac_status" >&5 | ||
9868 | (exit $ac_status); } && | ||
9869 | { ac_try='test -s conftest.$ac_objext' | ||
9870 | { (eval echo "$as_me:9870: \"$ac_try\"") >&5 | ||
9871 | (eval $ac_try) 2>&5 | ||
9872 | ac_status=$? | ||
9873 | echo "$as_me:9873: \$? = $ac_status" >&5 | ||
9874 | (exit $ac_status); }; }; then | ||
9875 | ac_lo=0 ac_mid=0 | ||
9876 | while :; do | ||
9877 | cat >conftest.$ac_ext <<_ACEOF | ||
9878 | #line 9878 "configure" | ||
9879 | #include "confdefs.h" | ||
9880 | $ac_includes_default | ||
9881 | int | ||
9882 | main () | ||
9883 | { | ||
9884 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
9885 | ; | ||
9886 | return 0; | ||
9887 | } | ||
9888 | _ACEOF | ||
9889 | rm -f conftest.$ac_objext | ||
9890 | if { (eval echo "$as_me:9890: \"$ac_compile\"") >&5 | ||
9891 | (eval $ac_compile) 2>&5 | ||
9892 | ac_status=$? | ||
9893 | echo "$as_me:9893: \$? = $ac_status" >&5 | ||
9894 | (exit $ac_status); } && | ||
9895 | { ac_try='test -s conftest.$ac_objext' | ||
9896 | { (eval echo "$as_me:9896: \"$ac_try\"") >&5 | ||
9897 | (eval $ac_try) 2>&5 | ||
9898 | ac_status=$? | ||
9899 | echo "$as_me:9899: \$? = $ac_status" >&5 | ||
9900 | (exit $ac_status); }; }; then | ||
9901 | ac_hi=$ac_mid; break | ||
9902 | else | ||
9903 | echo "$as_me: failed program was:" >&5 | ||
9904 | cat conftest.$ac_ext >&5 | ||
9905 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9906 | fi | ||
9907 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9908 | done | ||
9909 | else | ||
9910 | echo "$as_me: failed program was:" >&5 | ||
9911 | cat conftest.$ac_ext >&5 | ||
9912 | ac_hi=-1 ac_mid=-1 | ||
9913 | while :; do | ||
9914 | cat >conftest.$ac_ext <<_ACEOF | ||
9915 | #line 9915 "configure" | ||
9916 | #include "confdefs.h" | ||
9917 | $ac_includes_default | ||
9918 | int | ||
9919 | main () | ||
9920 | { | ||
9921 | int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)] | ||
9922 | ; | ||
9923 | return 0; | ||
9924 | } | ||
9925 | _ACEOF | ||
9926 | rm -f conftest.$ac_objext | ||
9927 | if { (eval echo "$as_me:9927: \"$ac_compile\"") >&5 | ||
9928 | (eval $ac_compile) 2>&5 | ||
9929 | ac_status=$? | ||
9930 | echo "$as_me:9930: \$? = $ac_status" >&5 | ||
9931 | (exit $ac_status); } && | ||
9932 | { ac_try='test -s conftest.$ac_objext' | ||
9933 | { (eval echo "$as_me:9933: \"$ac_try\"") >&5 | ||
9934 | (eval $ac_try) 2>&5 | ||
9935 | ac_status=$? | ||
9936 | echo "$as_me:9936: \$? = $ac_status" >&5 | ||
9937 | (exit $ac_status); }; }; then | ||
9938 | ac_lo=$ac_mid; break | ||
9939 | else | ||
9940 | echo "$as_me: failed program was:" >&5 | ||
9941 | cat conftest.$ac_ext >&5 | ||
9942 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
9943 | fi | ||
9944 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9945 | done | ||
9946 | fi | ||
9947 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9948 | # Binary search between lo and hi bounds. | ||
9949 | while test "x$ac_lo" != "x$ac_hi"; do | ||
9950 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
9951 | cat >conftest.$ac_ext <<_ACEOF | ||
9952 | #line 9952 "configure" | ||
9953 | #include "confdefs.h" | ||
9954 | $ac_includes_default | ||
9955 | int | ||
9956 | main () | ||
9957 | { | ||
9958 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
9959 | ; | ||
9960 | return 0; | ||
9961 | } | ||
9962 | _ACEOF | ||
9963 | rm -f conftest.$ac_objext | ||
9964 | if { (eval echo "$as_me:9964: \"$ac_compile\"") >&5 | ||
9965 | (eval $ac_compile) 2>&5 | ||
9966 | ac_status=$? | ||
9967 | echo "$as_me:9967: \$? = $ac_status" >&5 | ||
9968 | (exit $ac_status); } && | ||
9969 | { ac_try='test -s conftest.$ac_objext' | ||
9970 | { (eval echo "$as_me:9970: \"$ac_try\"") >&5 | ||
9971 | (eval $ac_try) 2>&5 | ||
9972 | ac_status=$? | ||
9973 | echo "$as_me:9973: \$? = $ac_status" >&5 | ||
9974 | (exit $ac_status); }; }; then | ||
9975 | ac_hi=$ac_mid | ||
9976 | else | ||
9977 | echo "$as_me: failed program was:" >&5 | ||
9978 | cat conftest.$ac_ext >&5 | ||
9979 | ac_lo=`expr $ac_mid + 1` | ||
9980 | fi | ||
9981 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9982 | done | ||
9983 | ac_cv_sizeof_char=$ac_lo | ||
9984 | else | ||
9985 | if test "$cross_compiling" = yes; then | ||
9986 | { { echo "$as_me:9986: error: cannot run test program while cross compiling" >&5 | ||
9987 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9988 | { (exit 1); exit 1; }; } | ||
9989 | else | ||
9990 | cat >conftest.$ac_ext <<_ACEOF | ||
9991 | #line 9991 "configure" | ||
9992 | #include "confdefs.h" | ||
9993 | $ac_includes_default | ||
9994 | int | ||
9995 | main () | ||
9996 | { | ||
9997 | FILE *f = fopen ("conftest.val", "w"); | ||
9998 | if (!f) | ||
9999 | exit (1); | ||
10000 | fprintf (f, "%d", (sizeof (char))); | ||
10001 | fclose (f); | ||
10002 | ; | ||
10003 | return 0; | ||
10004 | } | ||
10005 | _ACEOF | ||
10006 | rm -f conftest$ac_exeext | ||
10007 | if { (eval echo "$as_me:10007: \"$ac_link\"") >&5 | ||
10008 | (eval $ac_link) 2>&5 | ||
10009 | ac_status=$? | ||
10010 | echo "$as_me:10010: \$? = $ac_status" >&5 | ||
10011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10012 | { (eval echo "$as_me:10012: \"$ac_try\"") >&5 | ||
10013 | (eval $ac_try) 2>&5 | ||
10014 | ac_status=$? | ||
10015 | echo "$as_me:10015: \$? = $ac_status" >&5 | ||
10016 | (exit $ac_status); }; }; then | ||
10017 | ac_cv_sizeof_char=`cat conftest.val` | ||
10018 | else | ||
10019 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10020 | echo "$as_me: failed program was:" >&5 | ||
10021 | cat conftest.$ac_ext >&5 | ||
10022 | fi | ||
10023 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10024 | fi | ||
10025 | fi | ||
10026 | rm -f conftest.val | ||
10027 | else | ||
10028 | ac_cv_sizeof_char=0 | ||
10029 | fi | ||
10030 | fi | ||
10031 | echo "$as_me:10031: result: $ac_cv_sizeof_char" >&5 | ||
10032 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10033 | cat >>confdefs.h <<EOF | ||
10034 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10035 | EOF | ||
10036 | |||
10037 | echo "$as_me:10037: checking for short int" >&5 | ||
10038 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10039 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10041 | else | ||
10042 | cat >conftest.$ac_ext <<_ACEOF | ||
10043 | #line 10043 "configure" | ||
10044 | #include "confdefs.h" | ||
10045 | $ac_includes_default | ||
10046 | int | ||
10047 | main () | ||
10048 | { | ||
10049 | if ((short int *) 0) | ||
10050 | return 0; | ||
10051 | if (sizeof (short int)) | ||
10052 | return 0; | ||
10053 | ; | ||
10054 | return 0; | ||
10055 | } | ||
10056 | _ACEOF | ||
10057 | rm -f conftest.$ac_objext | ||
10058 | if { (eval echo "$as_me:10058: \"$ac_compile\"") >&5 | ||
10059 | (eval $ac_compile) 2>&5 | ||
10060 | ac_status=$? | ||
10061 | echo "$as_me:10061: \$? = $ac_status" >&5 | ||
10062 | (exit $ac_status); } && | ||
10063 | { ac_try='test -s conftest.$ac_objext' | ||
10064 | { (eval echo "$as_me:10064: \"$ac_try\"") >&5 | ||
10065 | (eval $ac_try) 2>&5 | ||
10066 | ac_status=$? | ||
10067 | echo "$as_me:10067: \$? = $ac_status" >&5 | ||
10068 | (exit $ac_status); }; }; then | ||
10069 | ac_cv_type_short_int=yes | ||
10070 | else | ||
10071 | echo "$as_me: failed program was:" >&5 | ||
10072 | cat conftest.$ac_ext >&5 | ||
10073 | ac_cv_type_short_int=no | ||
10074 | fi | ||
10075 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10076 | fi | ||
10077 | echo "$as_me:10077: result: $ac_cv_type_short_int" >&5 | ||
10078 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10079 | |||
10080 | echo "$as_me:10080: checking size of short int" >&5 | ||
10081 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10082 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10084 | else | ||
10085 | if test "$ac_cv_type_short_int" = yes; then | ||
10086 | if test "$cross_compiling" = yes; then | ||
10087 | # Depending upon the size, compute the lo and hi bounds. | ||
10088 | cat >conftest.$ac_ext <<_ACEOF | ||
10089 | #line 10089 "configure" | ||
10090 | #include "confdefs.h" | ||
10091 | $ac_includes_default | ||
10092 | int | ||
10093 | main () | ||
10094 | { | ||
10095 | int _array_ [1 - 2 * !((sizeof (short int)) >= 0)] | ||
10096 | ; | ||
10097 | return 0; | ||
10098 | } | ||
10099 | _ACEOF | ||
10100 | rm -f conftest.$ac_objext | ||
10101 | if { (eval echo "$as_me:10101: \"$ac_compile\"") >&5 | ||
10102 | (eval $ac_compile) 2>&5 | ||
10103 | ac_status=$? | ||
10104 | echo "$as_me:10104: \$? = $ac_status" >&5 | ||
10105 | (exit $ac_status); } && | ||
10106 | { ac_try='test -s conftest.$ac_objext' | ||
10107 | { (eval echo "$as_me:10107: \"$ac_try\"") >&5 | ||
10108 | (eval $ac_try) 2>&5 | ||
10109 | ac_status=$? | ||
10110 | echo "$as_me:10110: \$? = $ac_status" >&5 | ||
10111 | (exit $ac_status); }; }; then | ||
10112 | ac_lo=0 ac_mid=0 | ||
10113 | while :; do | ||
10114 | cat >conftest.$ac_ext <<_ACEOF | ||
10115 | #line 10115 "configure" | ||
10116 | #include "confdefs.h" | ||
10117 | $ac_includes_default | ||
10118 | int | ||
10119 | main () | ||
10120 | { | ||
10121 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10122 | ; | ||
10123 | return 0; | ||
10124 | } | ||
10125 | _ACEOF | ||
10126 | rm -f conftest.$ac_objext | ||
10127 | if { (eval echo "$as_me:10127: \"$ac_compile\"") >&5 | ||
10128 | (eval $ac_compile) 2>&5 | ||
10129 | ac_status=$? | ||
10130 | echo "$as_me:10130: \$? = $ac_status" >&5 | ||
10131 | (exit $ac_status); } && | ||
10132 | { ac_try='test -s conftest.$ac_objext' | ||
10133 | { (eval echo "$as_me:10133: \"$ac_try\"") >&5 | ||
10134 | (eval $ac_try) 2>&5 | ||
10135 | ac_status=$? | ||
10136 | echo "$as_me:10136: \$? = $ac_status" >&5 | ||
10137 | (exit $ac_status); }; }; then | ||
10138 | ac_hi=$ac_mid; break | ||
10139 | else | ||
10140 | echo "$as_me: failed program was:" >&5 | ||
10141 | cat conftest.$ac_ext >&5 | ||
10142 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10143 | fi | ||
10144 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10145 | done | ||
10146 | else | ||
10147 | echo "$as_me: failed program was:" >&5 | ||
10148 | cat conftest.$ac_ext >&5 | ||
10149 | ac_hi=-1 ac_mid=-1 | ||
10150 | while :; do | ||
10151 | cat >conftest.$ac_ext <<_ACEOF | ||
10152 | #line 10152 "configure" | ||
10153 | #include "confdefs.h" | ||
10154 | $ac_includes_default | ||
10155 | int | ||
10156 | main () | ||
10157 | { | ||
10158 | int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)] | ||
10159 | ; | ||
10160 | return 0; | ||
10161 | } | ||
10162 | _ACEOF | ||
10163 | rm -f conftest.$ac_objext | ||
10164 | if { (eval echo "$as_me:10164: \"$ac_compile\"") >&5 | ||
10165 | (eval $ac_compile) 2>&5 | ||
10166 | ac_status=$? | ||
10167 | echo "$as_me:10167: \$? = $ac_status" >&5 | ||
10168 | (exit $ac_status); } && | ||
10169 | { ac_try='test -s conftest.$ac_objext' | ||
10170 | { (eval echo "$as_me:10170: \"$ac_try\"") >&5 | ||
10171 | (eval $ac_try) 2>&5 | ||
10172 | ac_status=$? | ||
10173 | echo "$as_me:10173: \$? = $ac_status" >&5 | ||
10174 | (exit $ac_status); }; }; then | ||
10175 | ac_lo=$ac_mid; break | ||
10176 | else | ||
10177 | echo "$as_me: failed program was:" >&5 | ||
10178 | cat conftest.$ac_ext >&5 | ||
10179 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10180 | fi | ||
10181 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10182 | done | ||
10183 | fi | ||
10184 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10185 | # Binary search between lo and hi bounds. | ||
10186 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10187 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10188 | cat >conftest.$ac_ext <<_ACEOF | ||
10189 | #line 10189 "configure" | ||
10190 | #include "confdefs.h" | ||
10191 | $ac_includes_default | ||
10192 | int | ||
10193 | main () | ||
10194 | { | ||
10195 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10196 | ; | ||
10197 | return 0; | ||
10198 | } | ||
10199 | _ACEOF | ||
10200 | rm -f conftest.$ac_objext | ||
10201 | if { (eval echo "$as_me:10201: \"$ac_compile\"") >&5 | ||
10202 | (eval $ac_compile) 2>&5 | ||
10203 | ac_status=$? | ||
10204 | echo "$as_me:10204: \$? = $ac_status" >&5 | ||
10205 | (exit $ac_status); } && | ||
10206 | { ac_try='test -s conftest.$ac_objext' | ||
10207 | { (eval echo "$as_me:10207: \"$ac_try\"") >&5 | ||
10208 | (eval $ac_try) 2>&5 | ||
10209 | ac_status=$? | ||
10210 | echo "$as_me:10210: \$? = $ac_status" >&5 | ||
10211 | (exit $ac_status); }; }; then | ||
10212 | ac_hi=$ac_mid | ||
10213 | else | ||
10214 | echo "$as_me: failed program was:" >&5 | ||
10215 | cat conftest.$ac_ext >&5 | ||
10216 | ac_lo=`expr $ac_mid + 1` | ||
10217 | fi | ||
10218 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10219 | done | ||
10220 | ac_cv_sizeof_short_int=$ac_lo | ||
10221 | else | ||
10222 | if test "$cross_compiling" = yes; then | ||
10223 | { { echo "$as_me:10223: error: cannot run test program while cross compiling" >&5 | ||
10224 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10225 | { (exit 1); exit 1; }; } | ||
10226 | else | ||
10227 | cat >conftest.$ac_ext <<_ACEOF | ||
10228 | #line 10228 "configure" | ||
10229 | #include "confdefs.h" | ||
10230 | $ac_includes_default | ||
10231 | int | ||
10232 | main () | ||
10233 | { | ||
10234 | FILE *f = fopen ("conftest.val", "w"); | ||
10235 | if (!f) | ||
10236 | exit (1); | ||
10237 | fprintf (f, "%d", (sizeof (short int))); | ||
10238 | fclose (f); | ||
10239 | ; | ||
10240 | return 0; | ||
10241 | } | ||
10242 | _ACEOF | ||
10243 | rm -f conftest$ac_exeext | ||
10244 | if { (eval echo "$as_me:10244: \"$ac_link\"") >&5 | ||
10245 | (eval $ac_link) 2>&5 | ||
10246 | ac_status=$? | ||
10247 | echo "$as_me:10247: \$? = $ac_status" >&5 | ||
10248 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10249 | { (eval echo "$as_me:10249: \"$ac_try\"") >&5 | ||
10250 | (eval $ac_try) 2>&5 | ||
10251 | ac_status=$? | ||
10252 | echo "$as_me:10252: \$? = $ac_status" >&5 | ||
10253 | (exit $ac_status); }; }; then | ||
10254 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10255 | else | ||
10256 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10257 | echo "$as_me: failed program was:" >&5 | ||
10258 | cat conftest.$ac_ext >&5 | ||
10259 | fi | ||
10260 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10261 | fi | ||
10262 | fi | ||
10263 | rm -f conftest.val | ||
10264 | else | ||
10265 | ac_cv_sizeof_short_int=0 | ||
10266 | fi | ||
10267 | fi | ||
10268 | echo "$as_me:10268: result: $ac_cv_sizeof_short_int" >&5 | ||
10269 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10270 | cat >>confdefs.h <<EOF | ||
10271 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10272 | EOF | ||
10273 | |||
10274 | echo "$as_me:10274: checking for int" >&5 | ||
10275 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10276 | if test "${ac_cv_type_int+set}" = set; then | ||
10277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10278 | else | ||
10279 | cat >conftest.$ac_ext <<_ACEOF | ||
10280 | #line 10280 "configure" | ||
10281 | #include "confdefs.h" | ||
10282 | $ac_includes_default | ||
10283 | int | ||
10284 | main () | ||
10285 | { | ||
10286 | if ((int *) 0) | ||
10287 | return 0; | ||
10288 | if (sizeof (int)) | ||
10289 | return 0; | ||
10290 | ; | ||
10291 | return 0; | ||
10292 | } | ||
10293 | _ACEOF | ||
10294 | rm -f conftest.$ac_objext | ||
10295 | if { (eval echo "$as_me:10295: \"$ac_compile\"") >&5 | ||
10296 | (eval $ac_compile) 2>&5 | ||
10297 | ac_status=$? | ||
10298 | echo "$as_me:10298: \$? = $ac_status" >&5 | ||
10299 | (exit $ac_status); } && | ||
10300 | { ac_try='test -s conftest.$ac_objext' | ||
10301 | { (eval echo "$as_me:10301: \"$ac_try\"") >&5 | ||
10302 | (eval $ac_try) 2>&5 | ||
10303 | ac_status=$? | ||
10304 | echo "$as_me:10304: \$? = $ac_status" >&5 | ||
10305 | (exit $ac_status); }; }; then | ||
10306 | ac_cv_type_int=yes | ||
10307 | else | ||
10308 | echo "$as_me: failed program was:" >&5 | ||
10309 | cat conftest.$ac_ext >&5 | ||
10310 | ac_cv_type_int=no | ||
10311 | fi | ||
10312 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10313 | fi | ||
10314 | echo "$as_me:10314: result: $ac_cv_type_int" >&5 | ||
10315 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10316 | |||
10317 | echo "$as_me:10317: checking size of int" >&5 | ||
10318 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10319 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10321 | else | ||
10322 | if test "$ac_cv_type_int" = yes; then | ||
10323 | if test "$cross_compiling" = yes; then | ||
10324 | # Depending upon the size, compute the lo and hi bounds. | ||
10325 | cat >conftest.$ac_ext <<_ACEOF | ||
10326 | #line 10326 "configure" | ||
10327 | #include "confdefs.h" | ||
10328 | $ac_includes_default | ||
10329 | int | ||
10330 | main () | ||
10331 | { | ||
10332 | int _array_ [1 - 2 * !((sizeof (int)) >= 0)] | ||
10333 | ; | ||
10334 | return 0; | ||
10335 | } | ||
10336 | _ACEOF | ||
10337 | rm -f conftest.$ac_objext | ||
10338 | if { (eval echo "$as_me:10338: \"$ac_compile\"") >&5 | ||
10339 | (eval $ac_compile) 2>&5 | ||
10340 | ac_status=$? | ||
10341 | echo "$as_me:10341: \$? = $ac_status" >&5 | ||
10342 | (exit $ac_status); } && | ||
10343 | { ac_try='test -s conftest.$ac_objext' | ||
10344 | { (eval echo "$as_me:10344: \"$ac_try\"") >&5 | ||
10345 | (eval $ac_try) 2>&5 | ||
10346 | ac_status=$? | ||
10347 | echo "$as_me:10347: \$? = $ac_status" >&5 | ||
10348 | (exit $ac_status); }; }; then | ||
10349 | ac_lo=0 ac_mid=0 | ||
10350 | while :; do | ||
10351 | cat >conftest.$ac_ext <<_ACEOF | ||
10352 | #line 10352 "configure" | ||
10353 | #include "confdefs.h" | ||
10354 | $ac_includes_default | ||
10355 | int | ||
10356 | main () | ||
10357 | { | ||
10358 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
10359 | ; | ||
10360 | return 0; | ||
10361 | } | ||
10362 | _ACEOF | ||
10363 | rm -f conftest.$ac_objext | ||
10364 | if { (eval echo "$as_me:10364: \"$ac_compile\"") >&5 | ||
10365 | (eval $ac_compile) 2>&5 | ||
10366 | ac_status=$? | ||
10367 | echo "$as_me:10367: \$? = $ac_status" >&5 | ||
10368 | (exit $ac_status); } && | ||
10369 | { ac_try='test -s conftest.$ac_objext' | ||
10370 | { (eval echo "$as_me:10370: \"$ac_try\"") >&5 | ||
10371 | (eval $ac_try) 2>&5 | ||
10372 | ac_status=$? | ||
10373 | echo "$as_me:10373: \$? = $ac_status" >&5 | ||
10374 | (exit $ac_status); }; }; then | ||
10375 | ac_hi=$ac_mid; break | ||
10376 | else | ||
10377 | echo "$as_me: failed program was:" >&5 | ||
10378 | cat conftest.$ac_ext >&5 | ||
10379 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10380 | fi | ||
10381 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10382 | done | ||
10383 | else | ||
10384 | echo "$as_me: failed program was:" >&5 | ||
10385 | cat conftest.$ac_ext >&5 | ||
10386 | ac_hi=-1 ac_mid=-1 | ||
10387 | while :; do | ||
10388 | cat >conftest.$ac_ext <<_ACEOF | ||
10389 | #line 10389 "configure" | ||
10390 | #include "confdefs.h" | ||
10391 | $ac_includes_default | ||
10392 | int | ||
10393 | main () | ||
10394 | { | ||
10395 | int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] | ||
10396 | ; | ||
10397 | return 0; | ||
10398 | } | ||
10399 | _ACEOF | ||
10400 | rm -f conftest.$ac_objext | ||
10401 | if { (eval echo "$as_me:10401: \"$ac_compile\"") >&5 | ||
10402 | (eval $ac_compile) 2>&5 | ||
10403 | ac_status=$? | ||
10404 | echo "$as_me:10404: \$? = $ac_status" >&5 | ||
10405 | (exit $ac_status); } && | ||
10406 | { ac_try='test -s conftest.$ac_objext' | ||
10407 | { (eval echo "$as_me:10407: \"$ac_try\"") >&5 | ||
10408 | (eval $ac_try) 2>&5 | ||
10409 | ac_status=$? | ||
10410 | echo "$as_me:10410: \$? = $ac_status" >&5 | ||
10411 | (exit $ac_status); }; }; then | ||
10412 | ac_lo=$ac_mid; break | ||
10413 | else | ||
10414 | echo "$as_me: failed program was:" >&5 | ||
10415 | cat conftest.$ac_ext >&5 | ||
10416 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10417 | fi | ||
10418 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10419 | done | ||
10420 | fi | ||
10421 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10422 | # Binary search between lo and hi bounds. | ||
10423 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10424 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10425 | cat >conftest.$ac_ext <<_ACEOF | ||
10426 | #line 10426 "configure" | ||
10427 | #include "confdefs.h" | ||
10428 | $ac_includes_default | ||
10429 | int | ||
10430 | main () | ||
10431 | { | ||
10432 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
10433 | ; | ||
10434 | return 0; | ||
10435 | } | ||
10436 | _ACEOF | ||
10437 | rm -f conftest.$ac_objext | ||
10438 | if { (eval echo "$as_me:10438: \"$ac_compile\"") >&5 | ||
10439 | (eval $ac_compile) 2>&5 | ||
10440 | ac_status=$? | ||
10441 | echo "$as_me:10441: \$? = $ac_status" >&5 | ||
10442 | (exit $ac_status); } && | ||
10443 | { ac_try='test -s conftest.$ac_objext' | ||
10444 | { (eval echo "$as_me:10444: \"$ac_try\"") >&5 | ||
10445 | (eval $ac_try) 2>&5 | ||
10446 | ac_status=$? | ||
10447 | echo "$as_me:10447: \$? = $ac_status" >&5 | ||
10448 | (exit $ac_status); }; }; then | ||
10449 | ac_hi=$ac_mid | ||
10450 | else | ||
10451 | echo "$as_me: failed program was:" >&5 | ||
10452 | cat conftest.$ac_ext >&5 | ||
10453 | ac_lo=`expr $ac_mid + 1` | ||
10454 | fi | ||
10455 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10456 | done | ||
10457 | ac_cv_sizeof_int=$ac_lo | ||
10458 | else | ||
10459 | if test "$cross_compiling" = yes; then | ||
10460 | { { echo "$as_me:10460: error: cannot run test program while cross compiling" >&5 | ||
10461 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10462 | { (exit 1); exit 1; }; } | ||
10463 | else | ||
10464 | cat >conftest.$ac_ext <<_ACEOF | ||
10465 | #line 10465 "configure" | ||
10466 | #include "confdefs.h" | ||
10467 | $ac_includes_default | ||
10468 | int | ||
10469 | main () | ||
10470 | { | ||
10471 | FILE *f = fopen ("conftest.val", "w"); | ||
10472 | if (!f) | ||
10473 | exit (1); | ||
10474 | fprintf (f, "%d", (sizeof (int))); | ||
10475 | fclose (f); | ||
10476 | ; | ||
10477 | return 0; | ||
10478 | } | ||
10479 | _ACEOF | ||
10480 | rm -f conftest$ac_exeext | ||
10481 | if { (eval echo "$as_me:10481: \"$ac_link\"") >&5 | ||
10482 | (eval $ac_link) 2>&5 | ||
10483 | ac_status=$? | ||
10484 | echo "$as_me:10484: \$? = $ac_status" >&5 | ||
10485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10486 | { (eval echo "$as_me:10486: \"$ac_try\"") >&5 | ||
10487 | (eval $ac_try) 2>&5 | ||
10488 | ac_status=$? | ||
10489 | echo "$as_me:10489: \$? = $ac_status" >&5 | ||
10490 | (exit $ac_status); }; }; then | ||
10491 | ac_cv_sizeof_int=`cat conftest.val` | ||
10492 | else | ||
10493 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10494 | echo "$as_me: failed program was:" >&5 | ||
10495 | cat conftest.$ac_ext >&5 | ||
10496 | fi | ||
10497 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10498 | fi | ||
10499 | fi | ||
10500 | rm -f conftest.val | ||
10501 | else | ||
10502 | ac_cv_sizeof_int=0 | ||
10503 | fi | ||
10504 | fi | ||
10505 | echo "$as_me:10505: result: $ac_cv_sizeof_int" >&5 | ||
10506 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
10507 | cat >>confdefs.h <<EOF | ||
10508 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
10509 | EOF | ||
10510 | |||
10511 | echo "$as_me:10511: checking for long int" >&5 | ||
10512 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
10513 | if test "${ac_cv_type_long_int+set}" = set; then | ||
10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10515 | else | ||
10516 | cat >conftest.$ac_ext <<_ACEOF | ||
10517 | #line 10517 "configure" | ||
10518 | #include "confdefs.h" | ||
10519 | $ac_includes_default | ||
10520 | int | ||
10521 | main () | ||
10522 | { | ||
10523 | if ((long int *) 0) | ||
10524 | return 0; | ||
10525 | if (sizeof (long int)) | ||
10526 | return 0; | ||
10527 | ; | ||
10528 | return 0; | ||
10529 | } | ||
10530 | _ACEOF | ||
10531 | rm -f conftest.$ac_objext | ||
10532 | if { (eval echo "$as_me:10532: \"$ac_compile\"") >&5 | ||
10533 | (eval $ac_compile) 2>&5 | ||
10534 | ac_status=$? | ||
10535 | echo "$as_me:10535: \$? = $ac_status" >&5 | ||
10536 | (exit $ac_status); } && | ||
10537 | { ac_try='test -s conftest.$ac_objext' | ||
10538 | { (eval echo "$as_me:10538: \"$ac_try\"") >&5 | ||
10539 | (eval $ac_try) 2>&5 | ||
10540 | ac_status=$? | ||
10541 | echo "$as_me:10541: \$? = $ac_status" >&5 | ||
10542 | (exit $ac_status); }; }; then | ||
10543 | ac_cv_type_long_int=yes | ||
10544 | else | ||
10545 | echo "$as_me: failed program was:" >&5 | ||
10546 | cat conftest.$ac_ext >&5 | ||
10547 | ac_cv_type_long_int=no | ||
10548 | fi | ||
10549 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10550 | fi | ||
10551 | echo "$as_me:10551: result: $ac_cv_type_long_int" >&5 | ||
10552 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
10553 | |||
10554 | echo "$as_me:10554: checking size of long int" >&5 | ||
10555 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
10556 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
10557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10558 | else | ||
10559 | if test "$ac_cv_type_long_int" = yes; then | ||
10560 | if test "$cross_compiling" = yes; then | ||
10561 | # Depending upon the size, compute the lo and hi bounds. | ||
10562 | cat >conftest.$ac_ext <<_ACEOF | ||
10563 | #line 10563 "configure" | ||
10564 | #include "confdefs.h" | ||
10565 | $ac_includes_default | ||
10566 | int | ||
10567 | main () | ||
10568 | { | ||
10569 | int _array_ [1 - 2 * !((sizeof (long int)) >= 0)] | ||
10570 | ; | ||
10571 | return 0; | ||
10572 | } | ||
10573 | _ACEOF | ||
10574 | rm -f conftest.$ac_objext | ||
10575 | if { (eval echo "$as_me:10575: \"$ac_compile\"") >&5 | ||
10576 | (eval $ac_compile) 2>&5 | ||
10577 | ac_status=$? | ||
10578 | echo "$as_me:10578: \$? = $ac_status" >&5 | ||
10579 | (exit $ac_status); } && | ||
10580 | { ac_try='test -s conftest.$ac_objext' | ||
10581 | { (eval echo "$as_me:10581: \"$ac_try\"") >&5 | ||
10582 | (eval $ac_try) 2>&5 | ||
10583 | ac_status=$? | ||
10584 | echo "$as_me:10584: \$? = $ac_status" >&5 | ||
10585 | (exit $ac_status); }; }; then | ||
10586 | ac_lo=0 ac_mid=0 | ||
10587 | while :; do | ||
10588 | cat >conftest.$ac_ext <<_ACEOF | ||
10589 | #line 10589 "configure" | ||
10590 | #include "confdefs.h" | ||
10591 | $ac_includes_default | ||
10592 | int | ||
10593 | main () | ||
10594 | { | ||
10595 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
10596 | ; | ||
10597 | return 0; | ||
10598 | } | ||
10599 | _ACEOF | ||
10600 | rm -f conftest.$ac_objext | ||
10601 | if { (eval echo "$as_me:10601: \"$ac_compile\"") >&5 | ||
10602 | (eval $ac_compile) 2>&5 | ||
10603 | ac_status=$? | ||
10604 | echo "$as_me:10604: \$? = $ac_status" >&5 | ||
10605 | (exit $ac_status); } && | ||
10606 | { ac_try='test -s conftest.$ac_objext' | ||
10607 | { (eval echo "$as_me:10607: \"$ac_try\"") >&5 | ||
10608 | (eval $ac_try) 2>&5 | ||
10609 | ac_status=$? | ||
10610 | echo "$as_me:10610: \$? = $ac_status" >&5 | ||
10611 | (exit $ac_status); }; }; then | ||
10612 | ac_hi=$ac_mid; break | ||
10613 | else | ||
10614 | echo "$as_me: failed program was:" >&5 | ||
10615 | cat conftest.$ac_ext >&5 | ||
10616 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10617 | fi | ||
10618 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10619 | done | ||
10620 | else | ||
10621 | echo "$as_me: failed program was:" >&5 | ||
10622 | cat conftest.$ac_ext >&5 | ||
10623 | ac_hi=-1 ac_mid=-1 | ||
10624 | while :; do | ||
10625 | cat >conftest.$ac_ext <<_ACEOF | ||
10626 | #line 10626 "configure" | ||
10627 | #include "confdefs.h" | ||
10628 | $ac_includes_default | ||
10629 | int | ||
10630 | main () | ||
10631 | { | ||
10632 | int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)] | ||
10633 | ; | ||
10634 | return 0; | ||
10635 | } | ||
10636 | _ACEOF | ||
10637 | rm -f conftest.$ac_objext | ||
10638 | if { (eval echo "$as_me:10638: \"$ac_compile\"") >&5 | ||
10639 | (eval $ac_compile) 2>&5 | ||
10640 | ac_status=$? | ||
10641 | echo "$as_me:10641: \$? = $ac_status" >&5 | ||
10642 | (exit $ac_status); } && | ||
10643 | { ac_try='test -s conftest.$ac_objext' | ||
10644 | { (eval echo "$as_me:10644: \"$ac_try\"") >&5 | ||
10645 | (eval $ac_try) 2>&5 | ||
10646 | ac_status=$? | ||
10647 | echo "$as_me:10647: \$? = $ac_status" >&5 | ||
10648 | (exit $ac_status); }; }; then | ||
10649 | ac_lo=$ac_mid; break | ||
10650 | else | ||
10651 | echo "$as_me: failed program was:" >&5 | ||
10652 | cat conftest.$ac_ext >&5 | ||
10653 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10654 | fi | ||
10655 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10656 | done | ||
10657 | fi | ||
10658 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10659 | # Binary search between lo and hi bounds. | ||
10660 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10661 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10662 | cat >conftest.$ac_ext <<_ACEOF | ||
10663 | #line 10663 "configure" | ||
10664 | #include "confdefs.h" | ||
10665 | $ac_includes_default | ||
10666 | int | ||
10667 | main () | ||
10668 | { | ||
10669 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
10670 | ; | ||
10671 | return 0; | ||
10672 | } | ||
10673 | _ACEOF | ||
10674 | rm -f conftest.$ac_objext | ||
10675 | if { (eval echo "$as_me:10675: \"$ac_compile\"") >&5 | ||
10676 | (eval $ac_compile) 2>&5 | ||
10677 | ac_status=$? | ||
10678 | echo "$as_me:10678: \$? = $ac_status" >&5 | ||
10679 | (exit $ac_status); } && | ||
10680 | { ac_try='test -s conftest.$ac_objext' | ||
10681 | { (eval echo "$as_me:10681: \"$ac_try\"") >&5 | ||
10682 | (eval $ac_try) 2>&5 | ||
10683 | ac_status=$? | ||
10684 | echo "$as_me:10684: \$? = $ac_status" >&5 | ||
10685 | (exit $ac_status); }; }; then | ||
10686 | ac_hi=$ac_mid | ||
10687 | else | ||
10688 | echo "$as_me: failed program was:" >&5 | ||
10689 | cat conftest.$ac_ext >&5 | ||
10690 | ac_lo=`expr $ac_mid + 1` | ||
10691 | fi | ||
10692 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10693 | done | ||
10694 | ac_cv_sizeof_long_int=$ac_lo | ||
10695 | else | ||
10696 | if test "$cross_compiling" = yes; then | ||
10697 | { { echo "$as_me:10697: error: cannot run test program while cross compiling" >&5 | ||
10698 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10699 | { (exit 1); exit 1; }; } | ||
10700 | else | ||
10701 | cat >conftest.$ac_ext <<_ACEOF | ||
10702 | #line 10702 "configure" | ||
10703 | #include "confdefs.h" | ||
10704 | $ac_includes_default | ||
10705 | int | ||
10706 | main () | ||
10707 | { | ||
10708 | FILE *f = fopen ("conftest.val", "w"); | ||
10709 | if (!f) | ||
10710 | exit (1); | ||
10711 | fprintf (f, "%d", (sizeof (long int))); | ||
10712 | fclose (f); | ||
10713 | ; | ||
10714 | return 0; | ||
10715 | } | ||
10716 | _ACEOF | ||
10717 | rm -f conftest$ac_exeext | ||
10718 | if { (eval echo "$as_me:10718: \"$ac_link\"") >&5 | ||
10719 | (eval $ac_link) 2>&5 | ||
10720 | ac_status=$? | ||
10721 | echo "$as_me:10721: \$? = $ac_status" >&5 | ||
10722 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10723 | { (eval echo "$as_me:10723: \"$ac_try\"") >&5 | ||
10724 | (eval $ac_try) 2>&5 | ||
10725 | ac_status=$? | ||
10726 | echo "$as_me:10726: \$? = $ac_status" >&5 | ||
10727 | (exit $ac_status); }; }; then | ||
10728 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
10729 | else | ||
10730 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10731 | echo "$as_me: failed program was:" >&5 | ||
10732 | cat conftest.$ac_ext >&5 | ||
10733 | fi | ||
10734 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10735 | fi | ||
10736 | fi | ||
10737 | rm -f conftest.val | ||
10738 | else | ||
10739 | ac_cv_sizeof_long_int=0 | ||
10740 | fi | ||
10741 | fi | ||
10742 | echo "$as_me:10742: result: $ac_cv_sizeof_long_int" >&5 | ||
10743 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
10744 | cat >>confdefs.h <<EOF | ||
10745 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
10746 | EOF | ||
10747 | |||
10748 | echo "$as_me:10748: checking for long long int" >&5 | ||
10749 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
10750 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10752 | else | ||
10753 | cat >conftest.$ac_ext <<_ACEOF | ||
10754 | #line 10754 "configure" | ||
10755 | #include "confdefs.h" | ||
10756 | $ac_includes_default | ||
10757 | int | ||
10758 | main () | ||
10759 | { | ||
10760 | if ((long long int *) 0) | ||
10761 | return 0; | ||
10762 | if (sizeof (long long int)) | ||
10763 | return 0; | ||
10764 | ; | ||
10765 | return 0; | ||
10766 | } | ||
10767 | _ACEOF | ||
10768 | rm -f conftest.$ac_objext | ||
10769 | if { (eval echo "$as_me:10769: \"$ac_compile\"") >&5 | ||
10770 | (eval $ac_compile) 2>&5 | ||
10771 | ac_status=$? | ||
10772 | echo "$as_me:10772: \$? = $ac_status" >&5 | ||
10773 | (exit $ac_status); } && | ||
10774 | { ac_try='test -s conftest.$ac_objext' | ||
10775 | { (eval echo "$as_me:10775: \"$ac_try\"") >&5 | ||
10776 | (eval $ac_try) 2>&5 | ||
10777 | ac_status=$? | ||
10778 | echo "$as_me:10778: \$? = $ac_status" >&5 | ||
10779 | (exit $ac_status); }; }; then | ||
10780 | ac_cv_type_long_long_int=yes | ||
10781 | else | ||
10782 | echo "$as_me: failed program was:" >&5 | ||
10783 | cat conftest.$ac_ext >&5 | ||
10784 | ac_cv_type_long_long_int=no | ||
10785 | fi | ||
10786 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10787 | fi | ||
10788 | echo "$as_me:10788: result: $ac_cv_type_long_long_int" >&5 | ||
10789 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
10790 | |||
10791 | echo "$as_me:10791: checking size of long long int" >&5 | ||
10792 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
10793 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
10794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10795 | else | ||
10796 | if test "$ac_cv_type_long_long_int" = yes; then | ||
10797 | if test "$cross_compiling" = yes; then | ||
10798 | # Depending upon the size, compute the lo and hi bounds. | ||
10799 | cat >conftest.$ac_ext <<_ACEOF | ||
10800 | #line 10800 "configure" | ||
10801 | #include "confdefs.h" | ||
10802 | $ac_includes_default | ||
10803 | int | ||
10804 | main () | ||
10805 | { | ||
10806 | int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)] | ||
10807 | ; | ||
10808 | return 0; | ||
10809 | } | ||
10810 | _ACEOF | ||
10811 | rm -f conftest.$ac_objext | ||
10812 | if { (eval echo "$as_me:10812: \"$ac_compile\"") >&5 | ||
10813 | (eval $ac_compile) 2>&5 | ||
10814 | ac_status=$? | ||
10815 | echo "$as_me:10815: \$? = $ac_status" >&5 | ||
10816 | (exit $ac_status); } && | ||
10817 | { ac_try='test -s conftest.$ac_objext' | ||
10818 | { (eval echo "$as_me:10818: \"$ac_try\"") >&5 | ||
10819 | (eval $ac_try) 2>&5 | ||
10820 | ac_status=$? | ||
10821 | echo "$as_me:10821: \$? = $ac_status" >&5 | ||
10822 | (exit $ac_status); }; }; then | ||
10823 | ac_lo=0 ac_mid=0 | ||
10824 | while :; do | ||
10825 | cat >conftest.$ac_ext <<_ACEOF | ||
10826 | #line 10826 "configure" | ||
10827 | #include "confdefs.h" | ||
10828 | $ac_includes_default | ||
10829 | int | ||
10830 | main () | ||
10831 | { | ||
10832 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
10833 | ; | ||
10834 | return 0; | ||
10835 | } | ||
10836 | _ACEOF | ||
10837 | rm -f conftest.$ac_objext | ||
10838 | if { (eval echo "$as_me:10838: \"$ac_compile\"") >&5 | ||
10839 | (eval $ac_compile) 2>&5 | ||
10840 | ac_status=$? | ||
10841 | echo "$as_me:10841: \$? = $ac_status" >&5 | ||
10842 | (exit $ac_status); } && | ||
10843 | { ac_try='test -s conftest.$ac_objext' | ||
10844 | { (eval echo "$as_me:10844: \"$ac_try\"") >&5 | ||
10845 | (eval $ac_try) 2>&5 | ||
10846 | ac_status=$? | ||
10847 | echo "$as_me:10847: \$? = $ac_status" >&5 | ||
10848 | (exit $ac_status); }; }; then | ||
10849 | ac_hi=$ac_mid; break | ||
10850 | else | ||
10851 | echo "$as_me: failed program was:" >&5 | ||
10852 | cat conftest.$ac_ext >&5 | ||
10853 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10854 | fi | ||
10855 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10856 | done | ||
10857 | else | ||
10858 | echo "$as_me: failed program was:" >&5 | ||
10859 | cat conftest.$ac_ext >&5 | ||
10860 | ac_hi=-1 ac_mid=-1 | ||
10861 | while :; do | ||
10862 | cat >conftest.$ac_ext <<_ACEOF | ||
10863 | #line 10863 "configure" | ||
10864 | #include "confdefs.h" | ||
10865 | $ac_includes_default | ||
10866 | int | ||
10867 | main () | ||
10868 | { | ||
10869 | int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)] | ||
10870 | ; | ||
10871 | return 0; | ||
10872 | } | ||
10873 | _ACEOF | ||
10874 | rm -f conftest.$ac_objext | ||
10875 | if { (eval echo "$as_me:10875: \"$ac_compile\"") >&5 | ||
10876 | (eval $ac_compile) 2>&5 | ||
10877 | ac_status=$? | ||
10878 | echo "$as_me:10878: \$? = $ac_status" >&5 | ||
10879 | (exit $ac_status); } && | ||
10880 | { ac_try='test -s conftest.$ac_objext' | ||
10881 | { (eval echo "$as_me:10881: \"$ac_try\"") >&5 | ||
10882 | (eval $ac_try) 2>&5 | ||
10883 | ac_status=$? | ||
10884 | echo "$as_me:10884: \$? = $ac_status" >&5 | ||
10885 | (exit $ac_status); }; }; then | ||
10886 | ac_lo=$ac_mid; break | ||
10887 | else | ||
10888 | echo "$as_me: failed program was:" >&5 | ||
10889 | cat conftest.$ac_ext >&5 | ||
10890 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10891 | fi | ||
10892 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10893 | done | ||
10894 | fi | ||
10895 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10896 | # Binary search between lo and hi bounds. | ||
10897 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10898 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10899 | cat >conftest.$ac_ext <<_ACEOF | ||
10900 | #line 10900 "configure" | ||
10901 | #include "confdefs.h" | ||
10902 | $ac_includes_default | ||
10903 | int | ||
10904 | main () | ||
10905 | { | ||
10906 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
10907 | ; | ||
10908 | return 0; | ||
10909 | } | ||
10910 | _ACEOF | ||
10911 | rm -f conftest.$ac_objext | ||
10912 | if { (eval echo "$as_me:10912: \"$ac_compile\"") >&5 | ||
10913 | (eval $ac_compile) 2>&5 | ||
10914 | ac_status=$? | ||
10915 | echo "$as_me:10915: \$? = $ac_status" >&5 | ||
10916 | (exit $ac_status); } && | ||
10917 | { ac_try='test -s conftest.$ac_objext' | ||
10918 | { (eval echo "$as_me:10918: \"$ac_try\"") >&5 | ||
10919 | (eval $ac_try) 2>&5 | ||
10920 | ac_status=$? | ||
10921 | echo "$as_me:10921: \$? = $ac_status" >&5 | ||
10922 | (exit $ac_status); }; }; then | ||
10923 | ac_hi=$ac_mid | ||
10924 | else | ||
10925 | echo "$as_me: failed program was:" >&5 | ||
10926 | cat conftest.$ac_ext >&5 | ||
10927 | ac_lo=`expr $ac_mid + 1` | ||
10928 | fi | ||
10929 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10930 | done | ||
10931 | ac_cv_sizeof_long_long_int=$ac_lo | ||
10932 | else | ||
10933 | if test "$cross_compiling" = yes; then | ||
10934 | { { echo "$as_me:10934: error: cannot run test program while cross compiling" >&5 | ||
10935 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10936 | { (exit 1); exit 1; }; } | ||
10937 | else | ||
10938 | cat >conftest.$ac_ext <<_ACEOF | ||
10939 | #line 10939 "configure" | ||
10940 | #include "confdefs.h" | ||
10941 | $ac_includes_default | ||
10942 | int | ||
10943 | main () | ||
10944 | { | ||
10945 | FILE *f = fopen ("conftest.val", "w"); | ||
10946 | if (!f) | ||
10947 | exit (1); | ||
10948 | fprintf (f, "%d", (sizeof (long long int))); | ||
10949 | fclose (f); | ||
10950 | ; | ||
10951 | return 0; | ||
10952 | } | ||
10953 | _ACEOF | ||
10954 | rm -f conftest$ac_exeext | ||
10955 | if { (eval echo "$as_me:10955: \"$ac_link\"") >&5 | ||
10956 | (eval $ac_link) 2>&5 | ||
10957 | ac_status=$? | ||
10958 | echo "$as_me:10958: \$? = $ac_status" >&5 | ||
10959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10960 | { (eval echo "$as_me:10960: \"$ac_try\"") >&5 | ||
10961 | (eval $ac_try) 2>&5 | ||
10962 | ac_status=$? | ||
10963 | echo "$as_me:10963: \$? = $ac_status" >&5 | ||
10964 | (exit $ac_status); }; }; then | ||
10965 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
10966 | else | ||
10967 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10968 | echo "$as_me: failed program was:" >&5 | ||
10969 | cat conftest.$ac_ext >&5 | ||
10970 | fi | ||
10971 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10972 | fi | ||
10973 | fi | ||
10974 | rm -f conftest.val | ||
10975 | else | ||
10976 | ac_cv_sizeof_long_long_int=0 | ||
10977 | fi | ||
10978 | fi | ||
10979 | echo "$as_me:10979: result: $ac_cv_sizeof_long_long_int" >&5 | ||
10980 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
10981 | cat >>confdefs.h <<EOF | ||
10982 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
10983 | EOF | ||
10984 | |||
10985 | # Sanity check long long for some platforms (AIX) | ||
10986 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
10987 | ac_cv_sizeof_long_long_int=0 | ||
10988 | fi | ||
10989 | |||
10990 | # More checks for data types | ||
10991 | echo "$as_me:10991: checking for u_int type" >&5 | ||
10992 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
10993 | if test "${ac_cv_have_u_int+set}" = set; then | ||
10994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10995 | else | ||
10996 | |||
10997 | cat >conftest.$ac_ext <<_ACEOF | ||
10998 | #line 10998 "configure" | ||
10999 | #include "confdefs.h" | ||
11000 | #include <sys/types.h> | ||
11001 | int | ||
11002 | main () | ||
11003 | { | ||
11004 | u_int a; a = 1; | ||
11005 | ; | ||
11006 | return 0; | ||
11007 | } | ||
11008 | _ACEOF | ||
11009 | rm -f conftest.$ac_objext | ||
11010 | if { (eval echo "$as_me:11010: \"$ac_compile\"") >&5 | ||
11011 | (eval $ac_compile) 2>&5 | ||
11012 | ac_status=$? | ||
11013 | echo "$as_me:11013: \$? = $ac_status" >&5 | ||
11014 | (exit $ac_status); } && | ||
11015 | { ac_try='test -s conftest.$ac_objext' | ||
11016 | { (eval echo "$as_me:11016: \"$ac_try\"") >&5 | ||
11017 | (eval $ac_try) 2>&5 | ||
11018 | ac_status=$? | ||
11019 | echo "$as_me:11019: \$? = $ac_status" >&5 | ||
11020 | (exit $ac_status); }; }; then | ||
11021 | ac_cv_have_u_int="yes" | ||
11022 | else | ||
11023 | echo "$as_me: failed program was:" >&5 | ||
11024 | cat conftest.$ac_ext >&5 | ||
11025 | ac_cv_have_u_int="no" | ||
11026 | |||
11027 | fi | ||
11028 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11029 | |||
11030 | fi | ||
11031 | echo "$as_me:11031: result: $ac_cv_have_u_int" >&5 | ||
11032 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11033 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11034 | cat >>confdefs.h <<\EOF | ||
11035 | #define HAVE_U_INT 1 | ||
11036 | EOF | ||
11037 | |||
11038 | have_u_int=1 | ||
11039 | fi | ||
11040 | |||
11041 | echo "$as_me:11041: checking for intXX_t types" >&5 | ||
11042 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11043 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11045 | else | ||
11046 | |||
11047 | cat >conftest.$ac_ext <<_ACEOF | ||
11048 | #line 11048 "configure" | ||
11049 | #include "confdefs.h" | ||
11050 | #include <sys/types.h> | ||
11051 | int | ||
11052 | main () | ||
11053 | { | ||
11054 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11055 | ; | ||
11056 | return 0; | ||
11057 | } | ||
11058 | _ACEOF | ||
11059 | rm -f conftest.$ac_objext | ||
11060 | if { (eval echo "$as_me:11060: \"$ac_compile\"") >&5 | ||
11061 | (eval $ac_compile) 2>&5 | ||
11062 | ac_status=$? | ||
11063 | echo "$as_me:11063: \$? = $ac_status" >&5 | ||
11064 | (exit $ac_status); } && | ||
11065 | { ac_try='test -s conftest.$ac_objext' | ||
11066 | { (eval echo "$as_me:11066: \"$ac_try\"") >&5 | ||
11067 | (eval $ac_try) 2>&5 | ||
11068 | ac_status=$? | ||
11069 | echo "$as_me:11069: \$? = $ac_status" >&5 | ||
11070 | (exit $ac_status); }; }; then | ||
11071 | ac_cv_have_intxx_t="yes" | ||
11072 | else | ||
11073 | echo "$as_me: failed program was:" >&5 | ||
11074 | cat conftest.$ac_ext >&5 | ||
11075 | ac_cv_have_intxx_t="no" | ||
11076 | |||
11077 | fi | ||
11078 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11079 | |||
11080 | fi | ||
11081 | echo "$as_me:11081: result: $ac_cv_have_intxx_t" >&5 | ||
11082 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11083 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11084 | cat >>confdefs.h <<\EOF | ||
11085 | #define HAVE_INTXX_T 1 | ||
11086 | EOF | ||
11087 | |||
11088 | have_intxx_t=1 | ||
11089 | fi | ||
11090 | |||
11091 | if (test -z "$have_intxx_t" && \ | ||
11092 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11093 | then | ||
11094 | echo "$as_me:11094: checking for intXX_t types in stdint.h" >&5 | ||
11095 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11096 | cat >conftest.$ac_ext <<_ACEOF | ||
11097 | #line 11097 "configure" | ||
11098 | #include "confdefs.h" | ||
11099 | #include <stdint.h> | ||
11100 | int | ||
11101 | main () | ||
11102 | { | ||
11103 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11104 | ; | ||
11105 | return 0; | ||
11106 | } | ||
11107 | _ACEOF | ||
11108 | rm -f conftest.$ac_objext | ||
11109 | if { (eval echo "$as_me:11109: \"$ac_compile\"") >&5 | ||
11110 | (eval $ac_compile) 2>&5 | ||
11111 | ac_status=$? | ||
11112 | echo "$as_me:11112: \$? = $ac_status" >&5 | ||
11113 | (exit $ac_status); } && | ||
11114 | { ac_try='test -s conftest.$ac_objext' | ||
11115 | { (eval echo "$as_me:11115: \"$ac_try\"") >&5 | ||
11116 | (eval $ac_try) 2>&5 | ||
11117 | ac_status=$? | ||
11118 | echo "$as_me:11118: \$? = $ac_status" >&5 | ||
11119 | (exit $ac_status); }; }; then | ||
11120 | |||
11121 | cat >>confdefs.h <<\EOF | ||
11122 | #define HAVE_INTXX_T 1 | ||
11123 | EOF | ||
11124 | |||
11125 | echo "$as_me:11125: result: yes" >&5 | ||
11126 | echo "${ECHO_T}yes" >&6 | ||
11127 | |||
11128 | else | ||
11129 | echo "$as_me: failed program was:" >&5 | ||
11130 | cat conftest.$ac_ext >&5 | ||
11131 | echo "$as_me:11131: result: no" >&5 | ||
11132 | echo "${ECHO_T}no" >&6 | ||
11133 | |||
11134 | fi | ||
11135 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11136 | fi | ||
11137 | |||
11138 | echo "$as_me:11138: checking for int64_t type" >&5 | ||
11139 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
11140 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
11141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11142 | else | ||
11143 | |||
11144 | cat >conftest.$ac_ext <<_ACEOF | ||
11145 | #line 11145 "configure" | ||
11146 | #include "confdefs.h" | ||
11147 | |||
11148 | #include <sys/types.h> | ||
11149 | #ifdef HAVE_STDINT_H | ||
11150 | # include <stdint.h> | ||
11151 | #endif | ||
11152 | #include <sys/socket.h> | ||
11153 | #ifdef HAVE_SYS_BITYPES_H | ||
11154 | # include <sys/bitypes.h> | ||
11155 | #endif | ||
11156 | |||
11157 | int | ||
11158 | main () | ||
11159 | { | ||
11160 | int64_t a; a = 1; | ||
11161 | ; | ||
11162 | return 0; | ||
11163 | } | ||
11164 | _ACEOF | ||
11165 | rm -f conftest.$ac_objext | ||
11166 | if { (eval echo "$as_me:11166: \"$ac_compile\"") >&5 | ||
11167 | (eval $ac_compile) 2>&5 | ||
11168 | ac_status=$? | ||
11169 | echo "$as_me:11169: \$? = $ac_status" >&5 | ||
11170 | (exit $ac_status); } && | ||
11171 | { ac_try='test -s conftest.$ac_objext' | ||
11172 | { (eval echo "$as_me:11172: \"$ac_try\"") >&5 | ||
11173 | (eval $ac_try) 2>&5 | ||
11174 | ac_status=$? | ||
11175 | echo "$as_me:11175: \$? = $ac_status" >&5 | ||
11176 | (exit $ac_status); }; }; then | ||
11177 | ac_cv_have_int64_t="yes" | ||
11178 | else | ||
11179 | echo "$as_me: failed program was:" >&5 | ||
11180 | cat conftest.$ac_ext >&5 | ||
11181 | ac_cv_have_int64_t="no" | ||
11182 | |||
11183 | fi | ||
11184 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11185 | |||
11186 | fi | ||
11187 | echo "$as_me:11187: result: $ac_cv_have_int64_t" >&5 | ||
11188 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
11189 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
11190 | cat >>confdefs.h <<\EOF | ||
11191 | #define HAVE_INT64_T 1 | ||
11192 | EOF | ||
11193 | |||
11194 | fi | ||
11195 | |||
11196 | echo "$as_me:11196: checking for u_intXX_t types" >&5 | ||
11197 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
11198 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
11199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11200 | else | ||
11201 | |||
11202 | cat >conftest.$ac_ext <<_ACEOF | ||
11203 | #line 11203 "configure" | ||
11204 | #include "confdefs.h" | ||
11205 | #include <sys/types.h> | ||
11206 | int | ||
11207 | main () | ||
11208 | { | ||
11209 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11210 | ; | ||
11211 | return 0; | ||
11212 | } | ||
11213 | _ACEOF | ||
11214 | rm -f conftest.$ac_objext | ||
11215 | if { (eval echo "$as_me:11215: \"$ac_compile\"") >&5 | ||
11216 | (eval $ac_compile) 2>&5 | ||
11217 | ac_status=$? | ||
11218 | echo "$as_me:11218: \$? = $ac_status" >&5 | ||
11219 | (exit $ac_status); } && | ||
11220 | { ac_try='test -s conftest.$ac_objext' | ||
11221 | { (eval echo "$as_me:11221: \"$ac_try\"") >&5 | ||
11222 | (eval $ac_try) 2>&5 | ||
11223 | ac_status=$? | ||
11224 | echo "$as_me:11224: \$? = $ac_status" >&5 | ||
11225 | (exit $ac_status); }; }; then | ||
11226 | ac_cv_have_u_intxx_t="yes" | ||
11227 | else | ||
11228 | echo "$as_me: failed program was:" >&5 | ||
11229 | cat conftest.$ac_ext >&5 | ||
11230 | ac_cv_have_u_intxx_t="no" | ||
11231 | |||
11232 | fi | ||
11233 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11234 | |||
11235 | fi | ||
11236 | echo "$as_me:11236: result: $ac_cv_have_u_intxx_t" >&5 | ||
11237 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
11238 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
11239 | cat >>confdefs.h <<\EOF | ||
11240 | #define HAVE_U_INTXX_T 1 | ||
11241 | EOF | ||
11242 | |||
11243 | have_u_intxx_t=1 | ||
11244 | fi | ||
11245 | |||
11246 | if test -z "$have_u_intxx_t" ; then | ||
11247 | echo "$as_me:11247: checking for u_intXX_t types in sys/socket.h" >&5 | ||
11248 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
11249 | cat >conftest.$ac_ext <<_ACEOF | ||
11250 | #line 11250 "configure" | ||
11251 | #include "confdefs.h" | ||
11252 | #include <sys/socket.h> | ||
11253 | int | ||
11254 | main () | ||
11255 | { | ||
11256 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11257 | ; | ||
11258 | return 0; | ||
11259 | } | ||
11260 | _ACEOF | ||
11261 | rm -f conftest.$ac_objext | ||
11262 | if { (eval echo "$as_me:11262: \"$ac_compile\"") >&5 | ||
11263 | (eval $ac_compile) 2>&5 | ||
11264 | ac_status=$? | ||
11265 | echo "$as_me:11265: \$? = $ac_status" >&5 | ||
11266 | (exit $ac_status); } && | ||
11267 | { ac_try='test -s conftest.$ac_objext' | ||
11268 | { (eval echo "$as_me:11268: \"$ac_try\"") >&5 | ||
11269 | (eval $ac_try) 2>&5 | ||
11270 | ac_status=$? | ||
11271 | echo "$as_me:11271: \$? = $ac_status" >&5 | ||
11272 | (exit $ac_status); }; }; then | ||
11273 | |||
11274 | cat >>confdefs.h <<\EOF | ||
11275 | #define HAVE_U_INTXX_T 1 | ||
11276 | EOF | ||
11277 | |||
11278 | echo "$as_me:11278: result: yes" >&5 | ||
11279 | echo "${ECHO_T}yes" >&6 | ||
11280 | |||
11281 | else | ||
11282 | echo "$as_me: failed program was:" >&5 | ||
11283 | cat conftest.$ac_ext >&5 | ||
11284 | echo "$as_me:11284: result: no" >&5 | ||
11285 | echo "${ECHO_T}no" >&6 | ||
11286 | |||
11287 | fi | ||
11288 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11289 | fi | ||
11290 | |||
11291 | echo "$as_me:11291: checking for u_int64_t types" >&5 | ||
11292 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
11293 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
11294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11295 | else | ||
11296 | |||
11297 | cat >conftest.$ac_ext <<_ACEOF | ||
11298 | #line 11298 "configure" | ||
11299 | #include "confdefs.h" | ||
11300 | #include <sys/types.h> | ||
11301 | int | ||
11302 | main () | ||
11303 | { | ||
11304 | u_int64_t a; a = 1; | ||
11305 | ; | ||
11306 | return 0; | ||
11307 | } | ||
11308 | _ACEOF | ||
11309 | rm -f conftest.$ac_objext | ||
11310 | if { (eval echo "$as_me:11310: \"$ac_compile\"") >&5 | ||
11311 | (eval $ac_compile) 2>&5 | ||
11312 | ac_status=$? | ||
11313 | echo "$as_me:11313: \$? = $ac_status" >&5 | ||
11314 | (exit $ac_status); } && | ||
11315 | { ac_try='test -s conftest.$ac_objext' | ||
11316 | { (eval echo "$as_me:11316: \"$ac_try\"") >&5 | ||
11317 | (eval $ac_try) 2>&5 | ||
11318 | ac_status=$? | ||
11319 | echo "$as_me:11319: \$? = $ac_status" >&5 | ||
11320 | (exit $ac_status); }; }; then | ||
11321 | ac_cv_have_u_int64_t="yes" | ||
11322 | else | ||
11323 | echo "$as_me: failed program was:" >&5 | ||
11324 | cat conftest.$ac_ext >&5 | ||
11325 | ac_cv_have_u_int64_t="no" | ||
11326 | |||
11327 | fi | ||
11328 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11329 | |||
11330 | fi | ||
11331 | echo "$as_me:11331: result: $ac_cv_have_u_int64_t" >&5 | ||
11332 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
11333 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
11334 | cat >>confdefs.h <<\EOF | ||
11335 | #define HAVE_U_INT64_T 1 | ||
11336 | EOF | ||
11337 | |||
11338 | have_u_int64_t=1 | ||
11339 | fi | ||
11340 | |||
11341 | if test -z "$have_u_int64_t" ; then | ||
11342 | echo "$as_me:11342: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
11343 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
11344 | cat >conftest.$ac_ext <<_ACEOF | ||
11345 | #line 11345 "configure" | ||
11346 | #include "confdefs.h" | ||
11347 | #include <sys/bitypes.h> | ||
11348 | int | ||
11349 | main () | ||
11350 | { | ||
11351 | u_int64_t a; a = 1 | ||
11352 | ; | ||
11353 | return 0; | ||
11354 | } | ||
11355 | _ACEOF | ||
11356 | rm -f conftest.$ac_objext | ||
11357 | if { (eval echo "$as_me:11357: \"$ac_compile\"") >&5 | ||
11358 | (eval $ac_compile) 2>&5 | ||
11359 | ac_status=$? | ||
11360 | echo "$as_me:11360: \$? = $ac_status" >&5 | ||
11361 | (exit $ac_status); } && | ||
11362 | { ac_try='test -s conftest.$ac_objext' | ||
11363 | { (eval echo "$as_me:11363: \"$ac_try\"") >&5 | ||
11364 | (eval $ac_try) 2>&5 | ||
11365 | ac_status=$? | ||
11366 | echo "$as_me:11366: \$? = $ac_status" >&5 | ||
11367 | (exit $ac_status); }; }; then | ||
11368 | |||
11369 | cat >>confdefs.h <<\EOF | ||
11370 | #define HAVE_U_INT64_T 1 | ||
11371 | EOF | ||
11372 | |||
11373 | echo "$as_me:11373: result: yes" >&5 | ||
11374 | echo "${ECHO_T}yes" >&6 | ||
11375 | |||
11376 | else | ||
11377 | echo "$as_me: failed program was:" >&5 | ||
11378 | cat conftest.$ac_ext >&5 | ||
11379 | echo "$as_me:11379: result: no" >&5 | ||
11380 | echo "${ECHO_T}no" >&6 | ||
11381 | |||
11382 | fi | ||
11383 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11384 | fi | ||
11385 | |||
11386 | if test -z "$have_u_intxx_t" ; then | ||
11387 | echo "$as_me:11387: checking for uintXX_t types" >&5 | ||
11388 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
11389 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
11390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11391 | else | ||
11392 | |||
11393 | cat >conftest.$ac_ext <<_ACEOF | ||
11394 | #line 11394 "configure" | ||
11395 | #include "confdefs.h" | ||
11396 | |||
11397 | #include <sys/types.h> | ||
11398 | |||
11399 | int | ||
11400 | main () | ||
11401 | { | ||
11402 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11403 | ; | ||
11404 | return 0; | ||
11405 | } | ||
11406 | _ACEOF | ||
11407 | rm -f conftest.$ac_objext | ||
11408 | if { (eval echo "$as_me:11408: \"$ac_compile\"") >&5 | ||
11409 | (eval $ac_compile) 2>&5 | ||
11410 | ac_status=$? | ||
11411 | echo "$as_me:11411: \$? = $ac_status" >&5 | ||
11412 | (exit $ac_status); } && | ||
11413 | { ac_try='test -s conftest.$ac_objext' | ||
11414 | { (eval echo "$as_me:11414: \"$ac_try\"") >&5 | ||
11415 | (eval $ac_try) 2>&5 | ||
11416 | ac_status=$? | ||
11417 | echo "$as_me:11417: \$? = $ac_status" >&5 | ||
11418 | (exit $ac_status); }; }; then | ||
11419 | ac_cv_have_uintxx_t="yes" | ||
11420 | else | ||
11421 | echo "$as_me: failed program was:" >&5 | ||
11422 | cat conftest.$ac_ext >&5 | ||
11423 | ac_cv_have_uintxx_t="no" | ||
11424 | |||
11425 | fi | ||
11426 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11427 | |||
11428 | fi | ||
11429 | echo "$as_me:11429: result: $ac_cv_have_uintxx_t" >&5 | ||
11430 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
11431 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
11432 | cat >>confdefs.h <<\EOF | ||
11433 | #define HAVE_UINTXX_T 1 | ||
11434 | EOF | ||
11435 | |||
11436 | fi | ||
11437 | fi | ||
11438 | |||
11439 | if test -z "$have_uintxx_t" ; then | ||
11440 | echo "$as_me:11440: checking for uintXX_t types in stdint.h" >&5 | ||
11441 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
11442 | cat >conftest.$ac_ext <<_ACEOF | ||
11443 | #line 11443 "configure" | ||
11444 | #include "confdefs.h" | ||
11445 | #include <stdint.h> | ||
11446 | int | ||
11447 | main () | ||
11448 | { | ||
11449 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
11450 | ; | ||
11451 | return 0; | ||
11452 | } | ||
11453 | _ACEOF | ||
11454 | rm -f conftest.$ac_objext | ||
11455 | if { (eval echo "$as_me:11455: \"$ac_compile\"") >&5 | ||
11456 | (eval $ac_compile) 2>&5 | ||
11457 | ac_status=$? | ||
11458 | echo "$as_me:11458: \$? = $ac_status" >&5 | ||
11459 | (exit $ac_status); } && | ||
11460 | { ac_try='test -s conftest.$ac_objext' | ||
11461 | { (eval echo "$as_me:11461: \"$ac_try\"") >&5 | ||
11462 | (eval $ac_try) 2>&5 | ||
11463 | ac_status=$? | ||
11464 | echo "$as_me:11464: \$? = $ac_status" >&5 | ||
11465 | (exit $ac_status); }; }; then | ||
11466 | |||
11467 | cat >>confdefs.h <<\EOF | ||
11468 | #define HAVE_UINTXX_T 1 | ||
11469 | EOF | ||
11470 | |||
11471 | echo "$as_me:11471: result: yes" >&5 | ||
11472 | echo "${ECHO_T}yes" >&6 | ||
11473 | |||
11474 | else | ||
11475 | echo "$as_me: failed program was:" >&5 | ||
11476 | cat conftest.$ac_ext >&5 | ||
11477 | echo "$as_me:11477: result: no" >&5 | ||
11478 | echo "${ECHO_T}no" >&6 | ||
11479 | |||
11480 | fi | ||
11481 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11482 | fi | ||
11483 | |||
11484 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
11485 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
11486 | then | ||
11487 | echo "$as_me:11487: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
11488 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
11489 | cat >conftest.$ac_ext <<_ACEOF | ||
11490 | #line 11490 "configure" | ||
11491 | #include "confdefs.h" | ||
11492 | |||
11493 | #include <sys/bitypes.h> | ||
11494 | |||
11495 | int | ||
11496 | main () | ||
11497 | { | ||
11498 | |||
11499 | int8_t a; int16_t b; int32_t c; | ||
11500 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
11501 | a = b = c = e = f = g = 1; | ||
11502 | |||
11503 | ; | ||
11504 | return 0; | ||
11505 | } | ||
11506 | _ACEOF | ||
11507 | rm -f conftest.$ac_objext | ||
11508 | if { (eval echo "$as_me:11508: \"$ac_compile\"") >&5 | ||
11509 | (eval $ac_compile) 2>&5 | ||
11510 | ac_status=$? | ||
11511 | echo "$as_me:11511: \$? = $ac_status" >&5 | ||
11512 | (exit $ac_status); } && | ||
11513 | { ac_try='test -s conftest.$ac_objext' | ||
11514 | { (eval echo "$as_me:11514: \"$ac_try\"") >&5 | ||
11515 | (eval $ac_try) 2>&5 | ||
11516 | ac_status=$? | ||
11517 | echo "$as_me:11517: \$? = $ac_status" >&5 | ||
11518 | (exit $ac_status); }; }; then | ||
11519 | |||
11520 | cat >>confdefs.h <<\EOF | ||
11521 | #define HAVE_U_INTXX_T 1 | ||
11522 | EOF | ||
11523 | |||
11524 | cat >>confdefs.h <<\EOF | ||
11525 | #define HAVE_INTXX_T 1 | ||
11526 | EOF | ||
11527 | |||
11528 | echo "$as_me:11528: result: yes" >&5 | ||
11529 | echo "${ECHO_T}yes" >&6 | ||
11530 | |||
11531 | else | ||
11532 | echo "$as_me: failed program was:" >&5 | ||
11533 | cat conftest.$ac_ext >&5 | ||
11534 | echo "$as_me:11534: result: no" >&5 | ||
11535 | echo "${ECHO_T}no" >&6 | ||
11536 | |||
11537 | fi | ||
11538 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11539 | fi | ||
11540 | |||
11541 | echo "$as_me:11541: checking for u_char" >&5 | ||
11542 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
11543 | if test "${ac_cv_have_u_char+set}" = set; then | ||
11544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11545 | else | ||
11546 | |||
11547 | cat >conftest.$ac_ext <<_ACEOF | ||
11548 | #line 11548 "configure" | ||
11549 | #include "confdefs.h" | ||
11550 | |||
11551 | #include <sys/types.h> | ||
11552 | |||
11553 | int | ||
11554 | main () | ||
11555 | { | ||
11556 | u_char foo; foo = 125; | ||
11557 | ; | ||
11558 | return 0; | ||
11559 | } | ||
11560 | _ACEOF | ||
11561 | rm -f conftest.$ac_objext | ||
11562 | if { (eval echo "$as_me:11562: \"$ac_compile\"") >&5 | ||
11563 | (eval $ac_compile) 2>&5 | ||
11564 | ac_status=$? | ||
11565 | echo "$as_me:11565: \$? = $ac_status" >&5 | ||
11566 | (exit $ac_status); } && | ||
11567 | { ac_try='test -s conftest.$ac_objext' | ||
11568 | { (eval echo "$as_me:11568: \"$ac_try\"") >&5 | ||
11569 | (eval $ac_try) 2>&5 | ||
11570 | ac_status=$? | ||
11571 | echo "$as_me:11571: \$? = $ac_status" >&5 | ||
11572 | (exit $ac_status); }; }; then | ||
11573 | ac_cv_have_u_char="yes" | ||
11574 | else | ||
11575 | echo "$as_me: failed program was:" >&5 | ||
11576 | cat conftest.$ac_ext >&5 | ||
11577 | ac_cv_have_u_char="no" | ||
11578 | |||
11579 | fi | ||
11580 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11581 | |||
11582 | fi | ||
11583 | echo "$as_me:11583: result: $ac_cv_have_u_char" >&5 | ||
11584 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
11585 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
11586 | cat >>confdefs.h <<\EOF | ||
11587 | #define HAVE_U_CHAR 1 | ||
11588 | EOF | ||
11589 | |||
11590 | fi | ||
11591 | |||
11592 | echo "$as_me:11592: checking for socklen_t" >&5 | ||
11593 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
11594 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
11595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11596 | else | ||
11597 | cat >conftest.$ac_ext <<_ACEOF | ||
11598 | #line 11598 "configure" | ||
11599 | #include "confdefs.h" | ||
11600 | #include <sys/types.h> | ||
11601 | #include <sys/socket.h> | ||
11602 | |||
11603 | int | ||
11604 | main () | ||
11605 | { | ||
11606 | if ((socklen_t *) 0) | ||
11607 | return 0; | ||
11608 | if (sizeof (socklen_t)) | ||
11609 | return 0; | ||
11610 | ; | ||
11611 | return 0; | ||
11612 | } | ||
11613 | _ACEOF | ||
11614 | rm -f conftest.$ac_objext | ||
11615 | if { (eval echo "$as_me:11615: \"$ac_compile\"") >&5 | ||
11616 | (eval $ac_compile) 2>&5 | ||
11617 | ac_status=$? | ||
11618 | echo "$as_me:11618: \$? = $ac_status" >&5 | ||
11619 | (exit $ac_status); } && | ||
11620 | { ac_try='test -s conftest.$ac_objext' | ||
11621 | { (eval echo "$as_me:11621: \"$ac_try\"") >&5 | ||
11622 | (eval $ac_try) 2>&5 | ||
11623 | ac_status=$? | ||
11624 | echo "$as_me:11624: \$? = $ac_status" >&5 | ||
11625 | (exit $ac_status); }; }; then | ||
11626 | ac_cv_type_socklen_t=yes | ||
11627 | else | ||
11628 | echo "$as_me: failed program was:" >&5 | ||
11629 | cat conftest.$ac_ext >&5 | ||
11630 | ac_cv_type_socklen_t=no | ||
11631 | fi | ||
11632 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11633 | fi | ||
11634 | echo "$as_me:11634: result: $ac_cv_type_socklen_t" >&5 | ||
11635 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
11636 | if test $ac_cv_type_socklen_t = yes; then | ||
11637 | : | ||
11638 | else | ||
11639 | |||
11640 | echo "$as_me:11640: checking for socklen_t equivalent" >&5 | ||
11641 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
11642 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
11643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11644 | else | ||
11645 | |||
11646 | # Systems have either "struct sockaddr *" or | ||
11647 | # "void *" as the second argument to getpeername | ||
11648 | curl_cv_socklen_t_equiv= | ||
11649 | for arg2 in "struct sockaddr" void; do | ||
11650 | for t in int size_t unsigned long "unsigned long"; do | ||
11651 | cat >conftest.$ac_ext <<_ACEOF | ||
11652 | #line 11652 "configure" | ||
11653 | #include "confdefs.h" | ||
11654 | |||
11655 | #include <sys/types.h> | ||
11656 | #include <sys/socket.h> | ||
11657 | |||
11658 | int getpeername (int, $arg2 *, $t *); | ||
11659 | |||
11660 | int | ||
11661 | main () | ||
11662 | { | ||
11663 | |||
11664 | $t len; | ||
11665 | getpeername(0,0,&len); | ||
11666 | |||
11667 | ; | ||
11668 | return 0; | ||
11669 | } | ||
11670 | _ACEOF | ||
11671 | rm -f conftest.$ac_objext | ||
11672 | if { (eval echo "$as_me:11672: \"$ac_compile\"") >&5 | ||
11673 | (eval $ac_compile) 2>&5 | ||
11674 | ac_status=$? | ||
11675 | echo "$as_me:11675: \$? = $ac_status" >&5 | ||
11676 | (exit $ac_status); } && | ||
11677 | { ac_try='test -s conftest.$ac_objext' | ||
11678 | { (eval echo "$as_me:11678: \"$ac_try\"") >&5 | ||
11679 | (eval $ac_try) 2>&5 | ||
11680 | ac_status=$? | ||
11681 | echo "$as_me:11681: \$? = $ac_status" >&5 | ||
11682 | (exit $ac_status); }; }; then | ||
11683 | |||
11684 | curl_cv_socklen_t_equiv="$t" | ||
11685 | break | ||
11686 | |||
11687 | else | ||
11688 | echo "$as_me: failed program was:" >&5 | ||
11689 | cat conftest.$ac_ext >&5 | ||
11690 | fi | ||
11691 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11692 | done | ||
11693 | done | ||
11694 | |||
11695 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
11696 | { { echo "$as_me:11696: error: Cannot find a type to use in place of socklen_t" >&5 | ||
11697 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
11698 | { (exit 1); exit 1; }; } | ||
11699 | fi | ||
11700 | |||
11701 | fi | ||
11702 | |||
11703 | echo "$as_me:11703: result: $curl_cv_socklen_t_equiv" >&5 | ||
11704 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
11705 | |||
11706 | cat >>confdefs.h <<EOF | ||
11707 | #define socklen_t $curl_cv_socklen_t_equiv | ||
11708 | EOF | ||
11709 | |||
11710 | fi | ||
11711 | |||
11712 | echo "$as_me:11712: checking for sig_atomic_t" >&5 | ||
11713 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
11714 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11716 | else | ||
11717 | cat >conftest.$ac_ext <<_ACEOF | ||
11718 | #line 11718 "configure" | ||
11719 | #include "confdefs.h" | ||
11720 | #include <signal.h> | ||
11721 | |||
11722 | int | ||
11723 | main () | ||
11724 | { | ||
11725 | if ((sig_atomic_t *) 0) | ||
11726 | return 0; | ||
11727 | if (sizeof (sig_atomic_t)) | ||
11728 | return 0; | ||
11729 | ; | ||
11730 | return 0; | ||
11731 | } | ||
11732 | _ACEOF | ||
11733 | rm -f conftest.$ac_objext | ||
11734 | if { (eval echo "$as_me:11734: \"$ac_compile\"") >&5 | ||
11735 | (eval $ac_compile) 2>&5 | ||
11736 | ac_status=$? | ||
11737 | echo "$as_me:11737: \$? = $ac_status" >&5 | ||
11738 | (exit $ac_status); } && | ||
11739 | { ac_try='test -s conftest.$ac_objext' | ||
11740 | { (eval echo "$as_me:11740: \"$ac_try\"") >&5 | ||
11741 | (eval $ac_try) 2>&5 | ||
11742 | ac_status=$? | ||
11743 | echo "$as_me:11743: \$? = $ac_status" >&5 | ||
11744 | (exit $ac_status); }; }; then | ||
11745 | ac_cv_type_sig_atomic_t=yes | ||
11746 | else | ||
11747 | echo "$as_me: failed program was:" >&5 | ||
11748 | cat conftest.$ac_ext >&5 | ||
11749 | ac_cv_type_sig_atomic_t=no | ||
11750 | fi | ||
11751 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11752 | fi | ||
11753 | echo "$as_me:11753: result: $ac_cv_type_sig_atomic_t" >&5 | ||
11754 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
11755 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
11756 | |||
11757 | cat >>confdefs.h <<EOF | ||
11758 | #define HAVE_SIG_ATOMIC_T 1 | ||
11759 | EOF | ||
11760 | |||
11761 | fi | ||
11762 | |||
11763 | echo "$as_me:11763: checking for size_t" >&5 | ||
11764 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
11765 | if test "${ac_cv_have_size_t+set}" = set; then | ||
11766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11767 | else | ||
11768 | |||
11769 | cat >conftest.$ac_ext <<_ACEOF | ||
11770 | #line 11770 "configure" | ||
11771 | #include "confdefs.h" | ||
11772 | |||
11773 | #include <sys/types.h> | ||
11774 | |||
11775 | int | ||
11776 | main () | ||
11777 | { | ||
11778 | size_t foo; foo = 1235; | ||
11779 | ; | ||
11780 | return 0; | ||
11781 | } | ||
11782 | _ACEOF | ||
11783 | rm -f conftest.$ac_objext | ||
11784 | if { (eval echo "$as_me:11784: \"$ac_compile\"") >&5 | ||
11785 | (eval $ac_compile) 2>&5 | ||
11786 | ac_status=$? | ||
11787 | echo "$as_me:11787: \$? = $ac_status" >&5 | ||
11788 | (exit $ac_status); } && | ||
11789 | { ac_try='test -s conftest.$ac_objext' | ||
11790 | { (eval echo "$as_me:11790: \"$ac_try\"") >&5 | ||
11791 | (eval $ac_try) 2>&5 | ||
11792 | ac_status=$? | ||
11793 | echo "$as_me:11793: \$? = $ac_status" >&5 | ||
11794 | (exit $ac_status); }; }; then | ||
11795 | ac_cv_have_size_t="yes" | ||
11796 | else | ||
11797 | echo "$as_me: failed program was:" >&5 | ||
11798 | cat conftest.$ac_ext >&5 | ||
11799 | ac_cv_have_size_t="no" | ||
11800 | |||
11801 | fi | ||
11802 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11803 | |||
11804 | fi | ||
11805 | echo "$as_me:11805: result: $ac_cv_have_size_t" >&5 | ||
11806 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
11807 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
11808 | cat >>confdefs.h <<\EOF | ||
11809 | #define HAVE_SIZE_T 1 | ||
11810 | EOF | ||
11811 | |||
11812 | fi | ||
11813 | |||
11814 | echo "$as_me:11814: checking for ssize_t" >&5 | ||
11815 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
11816 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
11817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11818 | else | ||
11819 | |||
11820 | cat >conftest.$ac_ext <<_ACEOF | ||
11821 | #line 11821 "configure" | ||
11822 | #include "confdefs.h" | ||
11823 | |||
11824 | #include <sys/types.h> | ||
11825 | |||
11826 | int | ||
11827 | main () | ||
11828 | { | ||
11829 | ssize_t foo; foo = 1235; | ||
11830 | ; | ||
11831 | return 0; | ||
11832 | } | ||
11833 | _ACEOF | ||
11834 | rm -f conftest.$ac_objext | ||
11835 | if { (eval echo "$as_me:11835: \"$ac_compile\"") >&5 | ||
11836 | (eval $ac_compile) 2>&5 | ||
11837 | ac_status=$? | ||
11838 | echo "$as_me:11838: \$? = $ac_status" >&5 | ||
11839 | (exit $ac_status); } && | ||
11840 | { ac_try='test -s conftest.$ac_objext' | ||
11841 | { (eval echo "$as_me:11841: \"$ac_try\"") >&5 | ||
11842 | (eval $ac_try) 2>&5 | ||
11843 | ac_status=$? | ||
11844 | echo "$as_me:11844: \$? = $ac_status" >&5 | ||
11845 | (exit $ac_status); }; }; then | ||
11846 | ac_cv_have_ssize_t="yes" | ||
11847 | else | ||
11848 | echo "$as_me: failed program was:" >&5 | ||
11849 | cat conftest.$ac_ext >&5 | ||
11850 | ac_cv_have_ssize_t="no" | ||
11851 | |||
11852 | fi | ||
11853 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11854 | |||
11855 | fi | ||
11856 | echo "$as_me:11856: result: $ac_cv_have_ssize_t" >&5 | ||
11857 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
11858 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
11859 | cat >>confdefs.h <<\EOF | ||
11860 | #define HAVE_SSIZE_T 1 | ||
11861 | EOF | ||
11862 | |||
11863 | fi | ||
11864 | |||
11865 | echo "$as_me:11865: checking for clock_t" >&5 | ||
11866 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
11867 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
11868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11869 | else | ||
11870 | |||
11871 | cat >conftest.$ac_ext <<_ACEOF | ||
11872 | #line 11872 "configure" | ||
11873 | #include "confdefs.h" | ||
11874 | |||
11875 | #include <time.h> | ||
11876 | |||
11877 | int | ||
11878 | main () | ||
11879 | { | ||
11880 | clock_t foo; foo = 1235; | ||
11881 | ; | ||
11882 | return 0; | ||
11883 | } | ||
11884 | _ACEOF | ||
11885 | rm -f conftest.$ac_objext | ||
11886 | if { (eval echo "$as_me:11886: \"$ac_compile\"") >&5 | ||
11887 | (eval $ac_compile) 2>&5 | ||
11888 | ac_status=$? | ||
11889 | echo "$as_me:11889: \$? = $ac_status" >&5 | ||
11890 | (exit $ac_status); } && | ||
11891 | { ac_try='test -s conftest.$ac_objext' | ||
11892 | { (eval echo "$as_me:11892: \"$ac_try\"") >&5 | ||
11893 | (eval $ac_try) 2>&5 | ||
11894 | ac_status=$? | ||
11895 | echo "$as_me:11895: \$? = $ac_status" >&5 | ||
11896 | (exit $ac_status); }; }; then | ||
11897 | ac_cv_have_clock_t="yes" | ||
11898 | else | ||
11899 | echo "$as_me: failed program was:" >&5 | ||
11900 | cat conftest.$ac_ext >&5 | ||
11901 | ac_cv_have_clock_t="no" | ||
11902 | |||
11903 | fi | ||
11904 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11905 | |||
11906 | fi | ||
11907 | echo "$as_me:11907: result: $ac_cv_have_clock_t" >&5 | ||
11908 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
11909 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
11910 | cat >>confdefs.h <<\EOF | ||
11911 | #define HAVE_CLOCK_T 1 | ||
11912 | EOF | ||
11913 | |||
11914 | fi | ||
11915 | |||
11916 | echo "$as_me:11916: checking for sa_family_t" >&5 | ||
11917 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
11918 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11920 | else | ||
11921 | |||
11922 | cat >conftest.$ac_ext <<_ACEOF | ||
11923 | #line 11923 "configure" | ||
11924 | #include "confdefs.h" | ||
11925 | |||
11926 | #include <sys/types.h> | ||
11927 | #include <sys/socket.h> | ||
11928 | |||
11929 | int | ||
11930 | main () | ||
11931 | { | ||
11932 | sa_family_t foo; foo = 1235; | ||
11933 | ; | ||
11934 | return 0; | ||
11935 | } | ||
11936 | _ACEOF | ||
11937 | rm -f conftest.$ac_objext | ||
11938 | if { (eval echo "$as_me:11938: \"$ac_compile\"") >&5 | ||
11939 | (eval $ac_compile) 2>&5 | ||
11940 | ac_status=$? | ||
11941 | echo "$as_me:11941: \$? = $ac_status" >&5 | ||
11942 | (exit $ac_status); } && | ||
11943 | { ac_try='test -s conftest.$ac_objext' | ||
11944 | { (eval echo "$as_me:11944: \"$ac_try\"") >&5 | ||
11945 | (eval $ac_try) 2>&5 | ||
11946 | ac_status=$? | ||
11947 | echo "$as_me:11947: \$? = $ac_status" >&5 | ||
11948 | (exit $ac_status); }; }; then | ||
11949 | ac_cv_have_sa_family_t="yes" | ||
11950 | else | ||
11951 | echo "$as_me: failed program was:" >&5 | ||
11952 | cat conftest.$ac_ext >&5 | ||
11953 | cat >conftest.$ac_ext <<_ACEOF | ||
11954 | #line 11954 "configure" | ||
11955 | #include "confdefs.h" | ||
11956 | |||
11957 | #include <sys/types.h> | ||
11958 | #include <sys/socket.h> | ||
11959 | #include <netinet/in.h> | ||
11960 | |||
11961 | int | ||
11962 | main () | ||
11963 | { | ||
11964 | sa_family_t foo; foo = 1235; | ||
11965 | ; | ||
11966 | return 0; | ||
11967 | } | ||
11968 | _ACEOF | ||
11969 | rm -f conftest.$ac_objext | ||
11970 | if { (eval echo "$as_me:11970: \"$ac_compile\"") >&5 | ||
11971 | (eval $ac_compile) 2>&5 | ||
11972 | ac_status=$? | ||
11973 | echo "$as_me:11973: \$? = $ac_status" >&5 | ||
11974 | (exit $ac_status); } && | ||
11975 | { ac_try='test -s conftest.$ac_objext' | ||
11976 | { (eval echo "$as_me:11976: \"$ac_try\"") >&5 | ||
11977 | (eval $ac_try) 2>&5 | ||
11978 | ac_status=$? | ||
11979 | echo "$as_me:11979: \$? = $ac_status" >&5 | ||
11980 | (exit $ac_status); }; }; then | ||
11981 | ac_cv_have_sa_family_t="yes" | ||
11982 | else | ||
11983 | echo "$as_me: failed program was:" >&5 | ||
11984 | cat conftest.$ac_ext >&5 | ||
11985 | ac_cv_have_sa_family_t="no" | ||
11986 | |||
11987 | fi | ||
11988 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11989 | |||
11990 | fi | ||
11991 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11992 | |||
11993 | fi | ||
11994 | echo "$as_me:11994: result: $ac_cv_have_sa_family_t" >&5 | ||
11995 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
11996 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
11997 | cat >>confdefs.h <<\EOF | ||
11998 | #define HAVE_SA_FAMILY_T 1 | ||
11999 | EOF | ||
12000 | |||
12001 | fi | ||
12002 | |||
12003 | echo "$as_me:12003: checking for pid_t" >&5 | ||
12004 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12005 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12007 | else | ||
12008 | |||
12009 | cat >conftest.$ac_ext <<_ACEOF | ||
12010 | #line 12010 "configure" | ||
12011 | #include "confdefs.h" | ||
12012 | |||
12013 | #include <sys/types.h> | ||
12014 | |||
12015 | int | ||
12016 | main () | ||
12017 | { | ||
12018 | pid_t foo; foo = 1235; | ||
12019 | ; | ||
12020 | return 0; | ||
12021 | } | ||
12022 | _ACEOF | ||
12023 | rm -f conftest.$ac_objext | ||
12024 | if { (eval echo "$as_me:12024: \"$ac_compile\"") >&5 | ||
12025 | (eval $ac_compile) 2>&5 | ||
12026 | ac_status=$? | ||
12027 | echo "$as_me:12027: \$? = $ac_status" >&5 | ||
12028 | (exit $ac_status); } && | ||
12029 | { ac_try='test -s conftest.$ac_objext' | ||
12030 | { (eval echo "$as_me:12030: \"$ac_try\"") >&5 | ||
12031 | (eval $ac_try) 2>&5 | ||
12032 | ac_status=$? | ||
12033 | echo "$as_me:12033: \$? = $ac_status" >&5 | ||
12034 | (exit $ac_status); }; }; then | ||
12035 | ac_cv_have_pid_t="yes" | ||
12036 | else | ||
12037 | echo "$as_me: failed program was:" >&5 | ||
12038 | cat conftest.$ac_ext >&5 | ||
12039 | ac_cv_have_pid_t="no" | ||
12040 | |||
12041 | fi | ||
12042 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12043 | |||
12044 | fi | ||
12045 | echo "$as_me:12045: result: $ac_cv_have_pid_t" >&5 | ||
12046 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12047 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12048 | cat >>confdefs.h <<\EOF | ||
12049 | #define HAVE_PID_T 1 | ||
12050 | EOF | ||
12051 | |||
12052 | fi | ||
12053 | |||
12054 | echo "$as_me:12054: checking for mode_t" >&5 | ||
12055 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12056 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12058 | else | ||
12059 | |||
12060 | cat >conftest.$ac_ext <<_ACEOF | ||
12061 | #line 12061 "configure" | ||
12062 | #include "confdefs.h" | ||
12063 | |||
12064 | #include <sys/types.h> | ||
12065 | |||
12066 | int | ||
12067 | main () | ||
12068 | { | ||
12069 | mode_t foo; foo = 1235; | ||
12070 | ; | ||
12071 | return 0; | ||
12072 | } | ||
12073 | _ACEOF | ||
12074 | rm -f conftest.$ac_objext | ||
12075 | if { (eval echo "$as_me:12075: \"$ac_compile\"") >&5 | ||
12076 | (eval $ac_compile) 2>&5 | ||
12077 | ac_status=$? | ||
12078 | echo "$as_me:12078: \$? = $ac_status" >&5 | ||
12079 | (exit $ac_status); } && | ||
12080 | { ac_try='test -s conftest.$ac_objext' | ||
12081 | { (eval echo "$as_me:12081: \"$ac_try\"") >&5 | ||
12082 | (eval $ac_try) 2>&5 | ||
12083 | ac_status=$? | ||
12084 | echo "$as_me:12084: \$? = $ac_status" >&5 | ||
12085 | (exit $ac_status); }; }; then | ||
12086 | ac_cv_have_mode_t="yes" | ||
12087 | else | ||
12088 | echo "$as_me: failed program was:" >&5 | ||
12089 | cat conftest.$ac_ext >&5 | ||
12090 | ac_cv_have_mode_t="no" | ||
12091 | |||
12092 | fi | ||
12093 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12094 | |||
12095 | fi | ||
12096 | echo "$as_me:12096: result: $ac_cv_have_mode_t" >&5 | ||
12097 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12098 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12099 | cat >>confdefs.h <<\EOF | ||
12100 | #define HAVE_MODE_T 1 | ||
12101 | EOF | ||
12102 | |||
12103 | fi | ||
12104 | |||
12105 | echo "$as_me:12105: checking for struct sockaddr_storage" >&5 | ||
12106 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12107 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12109 | else | ||
12110 | |||
12111 | cat >conftest.$ac_ext <<_ACEOF | ||
12112 | #line 12112 "configure" | ||
12113 | #include "confdefs.h" | ||
12114 | |||
12115 | #include <sys/types.h> | ||
12116 | #include <sys/socket.h> | ||
12117 | |||
12118 | int | ||
12119 | main () | ||
12120 | { | ||
12121 | struct sockaddr_storage s; | ||
12122 | ; | ||
12123 | return 0; | ||
12124 | } | ||
12125 | _ACEOF | ||
12126 | rm -f conftest.$ac_objext | ||
12127 | if { (eval echo "$as_me:12127: \"$ac_compile\"") >&5 | ||
12128 | (eval $ac_compile) 2>&5 | ||
12129 | ac_status=$? | ||
12130 | echo "$as_me:12130: \$? = $ac_status" >&5 | ||
12131 | (exit $ac_status); } && | ||
12132 | { ac_try='test -s conftest.$ac_objext' | ||
12133 | { (eval echo "$as_me:12133: \"$ac_try\"") >&5 | ||
12134 | (eval $ac_try) 2>&5 | ||
12135 | ac_status=$? | ||
12136 | echo "$as_me:12136: \$? = $ac_status" >&5 | ||
12137 | (exit $ac_status); }; }; then | ||
12138 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12139 | else | ||
12140 | echo "$as_me: failed program was:" >&5 | ||
12141 | cat conftest.$ac_ext >&5 | ||
12142 | ac_cv_have_struct_sockaddr_storage="no" | ||
12143 | |||
12144 | fi | ||
12145 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12146 | |||
12147 | fi | ||
12148 | echo "$as_me:12148: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12149 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
12150 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12151 | cat >>confdefs.h <<\EOF | ||
12152 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
12153 | EOF | ||
12154 | |||
12155 | fi | ||
12156 | |||
12157 | echo "$as_me:12157: checking for struct sockaddr_in6" >&5 | ||
12158 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
12159 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
12160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12161 | else | ||
12162 | |||
12163 | cat >conftest.$ac_ext <<_ACEOF | ||
12164 | #line 12164 "configure" | ||
12165 | #include "confdefs.h" | ||
12166 | |||
12167 | #include <sys/types.h> | ||
12168 | #include <netinet/in.h> | ||
12169 | |||
12170 | int | ||
12171 | main () | ||
12172 | { | ||
12173 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12174 | ; | ||
12175 | return 0; | ||
12176 | } | ||
12177 | _ACEOF | ||
12178 | rm -f conftest.$ac_objext | ||
12179 | if { (eval echo "$as_me:12179: \"$ac_compile\"") >&5 | ||
12180 | (eval $ac_compile) 2>&5 | ||
12181 | ac_status=$? | ||
12182 | echo "$as_me:12182: \$? = $ac_status" >&5 | ||
12183 | (exit $ac_status); } && | ||
12184 | { ac_try='test -s conftest.$ac_objext' | ||
12185 | { (eval echo "$as_me:12185: \"$ac_try\"") >&5 | ||
12186 | (eval $ac_try) 2>&5 | ||
12187 | ac_status=$? | ||
12188 | echo "$as_me:12188: \$? = $ac_status" >&5 | ||
12189 | (exit $ac_status); }; }; then | ||
12190 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12191 | else | ||
12192 | echo "$as_me: failed program was:" >&5 | ||
12193 | cat conftest.$ac_ext >&5 | ||
12194 | ac_cv_have_struct_sockaddr_in6="no" | ||
12195 | |||
12196 | fi | ||
12197 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12198 | |||
12199 | fi | ||
12200 | echo "$as_me:12200: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
12201 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
12202 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
12203 | cat >>confdefs.h <<\EOF | ||
12204 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
12205 | EOF | ||
12206 | |||
12207 | fi | ||
12208 | |||
12209 | echo "$as_me:12209: checking for struct in6_addr" >&5 | ||
12210 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
12211 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12213 | else | ||
12214 | |||
12215 | cat >conftest.$ac_ext <<_ACEOF | ||
12216 | #line 12216 "configure" | ||
12217 | #include "confdefs.h" | ||
12218 | |||
12219 | #include <sys/types.h> | ||
12220 | #include <netinet/in.h> | ||
12221 | |||
12222 | int | ||
12223 | main () | ||
12224 | { | ||
12225 | struct in6_addr s; s.s6_addr[0] = 0; | ||
12226 | ; | ||
12227 | return 0; | ||
12228 | } | ||
12229 | _ACEOF | ||
12230 | rm -f conftest.$ac_objext | ||
12231 | if { (eval echo "$as_me:12231: \"$ac_compile\"") >&5 | ||
12232 | (eval $ac_compile) 2>&5 | ||
12233 | ac_status=$? | ||
12234 | echo "$as_me:12234: \$? = $ac_status" >&5 | ||
12235 | (exit $ac_status); } && | ||
12236 | { ac_try='test -s conftest.$ac_objext' | ||
12237 | { (eval echo "$as_me:12237: \"$ac_try\"") >&5 | ||
12238 | (eval $ac_try) 2>&5 | ||
12239 | ac_status=$? | ||
12240 | echo "$as_me:12240: \$? = $ac_status" >&5 | ||
12241 | (exit $ac_status); }; }; then | ||
12242 | ac_cv_have_struct_in6_addr="yes" | ||
12243 | else | ||
12244 | echo "$as_me: failed program was:" >&5 | ||
12245 | cat conftest.$ac_ext >&5 | ||
12246 | ac_cv_have_struct_in6_addr="no" | ||
12247 | |||
12248 | fi | ||
12249 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12250 | |||
12251 | fi | ||
12252 | echo "$as_me:12252: result: $ac_cv_have_struct_in6_addr" >&5 | ||
12253 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
12254 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
12255 | cat >>confdefs.h <<\EOF | ||
12256 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
12257 | EOF | ||
12258 | |||
12259 | fi | ||
12260 | |||
12261 | echo "$as_me:12261: checking for struct addrinfo" >&5 | ||
12262 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
12263 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
12264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12265 | else | ||
12266 | |||
12267 | cat >conftest.$ac_ext <<_ACEOF | ||
12268 | #line 12268 "configure" | ||
12269 | #include "confdefs.h" | ||
12270 | |||
12271 | #include <sys/types.h> | ||
12272 | #include <sys/socket.h> | ||
12273 | #include <netdb.h> | ||
12274 | |||
12275 | int | ||
12276 | main () | ||
12277 | { | ||
12278 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
12279 | ; | ||
12280 | return 0; | ||
12281 | } | ||
12282 | _ACEOF | ||
12283 | rm -f conftest.$ac_objext | ||
12284 | if { (eval echo "$as_me:12284: \"$ac_compile\"") >&5 | ||
12285 | (eval $ac_compile) 2>&5 | ||
12286 | ac_status=$? | ||
12287 | echo "$as_me:12287: \$? = $ac_status" >&5 | ||
12288 | (exit $ac_status); } && | ||
12289 | { ac_try='test -s conftest.$ac_objext' | ||
12290 | { (eval echo "$as_me:12290: \"$ac_try\"") >&5 | ||
12291 | (eval $ac_try) 2>&5 | ||
12292 | ac_status=$? | ||
12293 | echo "$as_me:12293: \$? = $ac_status" >&5 | ||
12294 | (exit $ac_status); }; }; then | ||
12295 | ac_cv_have_struct_addrinfo="yes" | ||
12296 | else | ||
12297 | echo "$as_me: failed program was:" >&5 | ||
12298 | cat conftest.$ac_ext >&5 | ||
12299 | ac_cv_have_struct_addrinfo="no" | ||
12300 | |||
12301 | fi | ||
12302 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12303 | |||
12304 | fi | ||
12305 | echo "$as_me:12305: result: $ac_cv_have_struct_addrinfo" >&5 | ||
12306 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
12307 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
12308 | cat >>confdefs.h <<\EOF | ||
12309 | #define HAVE_STRUCT_ADDRINFO 1 | ||
12310 | EOF | ||
12311 | |||
12312 | fi | ||
12313 | |||
12314 | echo "$as_me:12314: checking for struct timeval" >&5 | ||
12315 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
12316 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
12317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12318 | else | ||
12319 | |||
12320 | cat >conftest.$ac_ext <<_ACEOF | ||
12321 | #line 12321 "configure" | ||
12322 | #include "confdefs.h" | ||
12323 | #include <sys/time.h> | ||
12324 | int | ||
12325 | main () | ||
12326 | { | ||
12327 | struct timeval tv; tv.tv_sec = 1; | ||
12328 | ; | ||
12329 | return 0; | ||
12330 | } | ||
12331 | _ACEOF | ||
12332 | rm -f conftest.$ac_objext | ||
12333 | if { (eval echo "$as_me:12333: \"$ac_compile\"") >&5 | ||
12334 | (eval $ac_compile) 2>&5 | ||
12335 | ac_status=$? | ||
12336 | echo "$as_me:12336: \$? = $ac_status" >&5 | ||
12337 | (exit $ac_status); } && | ||
12338 | { ac_try='test -s conftest.$ac_objext' | ||
12339 | { (eval echo "$as_me:12339: \"$ac_try\"") >&5 | ||
12340 | (eval $ac_try) 2>&5 | ||
12341 | ac_status=$? | ||
12342 | echo "$as_me:12342: \$? = $ac_status" >&5 | ||
12343 | (exit $ac_status); }; }; then | ||
12344 | ac_cv_have_struct_timeval="yes" | ||
12345 | else | ||
12346 | echo "$as_me: failed program was:" >&5 | ||
12347 | cat conftest.$ac_ext >&5 | ||
12348 | ac_cv_have_struct_timeval="no" | ||
12349 | |||
12350 | fi | ||
12351 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12352 | |||
12353 | fi | ||
12354 | echo "$as_me:12354: result: $ac_cv_have_struct_timeval" >&5 | ||
12355 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
12356 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
12357 | cat >>confdefs.h <<\EOF | ||
12358 | #define HAVE_STRUCT_TIMEVAL 1 | ||
12359 | EOF | ||
12360 | |||
12361 | have_struct_timeval=1 | ||
12362 | fi | ||
12363 | |||
12364 | echo "$as_me:12364: checking for struct timespec" >&5 | ||
12365 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
12366 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
12367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12368 | else | ||
12369 | cat >conftest.$ac_ext <<_ACEOF | ||
12370 | #line 12370 "configure" | ||
12371 | #include "confdefs.h" | ||
12372 | $ac_includes_default | ||
12373 | int | ||
12374 | main () | ||
12375 | { | ||
12376 | if ((struct timespec *) 0) | ||
12377 | return 0; | ||
12378 | if (sizeof (struct timespec)) | ||
12379 | return 0; | ||
12380 | ; | ||
12381 | return 0; | ||
12382 | } | ||
12383 | _ACEOF | ||
12384 | rm -f conftest.$ac_objext | ||
12385 | if { (eval echo "$as_me:12385: \"$ac_compile\"") >&5 | ||
12386 | (eval $ac_compile) 2>&5 | ||
12387 | ac_status=$? | ||
12388 | echo "$as_me:12388: \$? = $ac_status" >&5 | ||
12389 | (exit $ac_status); } && | ||
12390 | { ac_try='test -s conftest.$ac_objext' | ||
12391 | { (eval echo "$as_me:12391: \"$ac_try\"") >&5 | ||
12392 | (eval $ac_try) 2>&5 | ||
12393 | ac_status=$? | ||
12394 | echo "$as_me:12394: \$? = $ac_status" >&5 | ||
12395 | (exit $ac_status); }; }; then | ||
12396 | ac_cv_type_struct_timespec=yes | ||
12397 | else | ||
12398 | echo "$as_me: failed program was:" >&5 | ||
12399 | cat conftest.$ac_ext >&5 | ||
12400 | ac_cv_type_struct_timespec=no | ||
12401 | fi | ||
12402 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12403 | fi | ||
12404 | echo "$as_me:12404: result: $ac_cv_type_struct_timespec" >&5 | ||
12405 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
12406 | if test $ac_cv_type_struct_timespec = yes; then | ||
12407 | |||
12408 | cat >>confdefs.h <<EOF | ||
12409 | #define HAVE_STRUCT_TIMESPEC 1 | ||
12410 | EOF | ||
12411 | |||
12412 | fi | ||
12413 | |||
12414 | # We need int64_t or else certian parts of the compile will fail. | ||
12415 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
12416 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
12417 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
12418 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
12419 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
12420 | echo "" | ||
12421 | exit 1; | ||
12422 | else | ||
12423 | if test "$cross_compiling" = yes; then | ||
12424 | { { echo "$as_me:12424: error: cannot run test program while cross compiling" >&5 | ||
12425 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
12426 | { (exit 1); exit 1; }; } | ||
12427 | else | ||
12428 | cat >conftest.$ac_ext <<_ACEOF | ||
12429 | #line 12429 "configure" | ||
12430 | #include "confdefs.h" | ||
12431 | |||
12432 | #include <stdio.h> | ||
12433 | #include <string.h> | ||
12434 | #ifdef HAVE_SNPRINTF | ||
12435 | main() | ||
12436 | { | ||
12437 | char buf[50]; | ||
12438 | char expected_out[50]; | ||
12439 | int mazsize = 50 ; | ||
12440 | #if (SIZEOF_LONG_INT == 8) | ||
12441 | long int num = 0x7fffffffffffffff; | ||
12442 | #else | ||
12443 | long long num = 0x7fffffffffffffffll; | ||
12444 | #endif | ||
12445 | strcpy(expected_out, "9223372036854775807"); | ||
12446 | snprintf(buf, mazsize, "%lld", num); | ||
12447 | if(strcmp(buf, expected_out) != 0) | ||
12448 | exit(1); | ||
12449 | exit(0); | ||
12450 | } | ||
12451 | #else | ||
12452 | main() { exit(0); } | ||
12453 | #endif | ||
12454 | |||
12455 | _ACEOF | ||
12456 | rm -f conftest$ac_exeext | ||
12457 | if { (eval echo "$as_me:12457: \"$ac_link\"") >&5 | ||
12458 | (eval $ac_link) 2>&5 | ||
12459 | ac_status=$? | ||
12460 | echo "$as_me:12460: \$? = $ac_status" >&5 | ||
12461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12462 | { (eval echo "$as_me:12462: \"$ac_try\"") >&5 | ||
12463 | (eval $ac_try) 2>&5 | ||
12464 | ac_status=$? | ||
12465 | echo "$as_me:12465: \$? = $ac_status" >&5 | ||
12466 | (exit $ac_status); }; }; then | ||
12467 | true | ||
12468 | else | ||
12469 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12470 | echo "$as_me: failed program was:" >&5 | ||
12471 | cat conftest.$ac_ext >&5 | ||
12472 | cat >>confdefs.h <<\EOF | ||
12473 | #define BROKEN_SNPRINTF 1 | ||
12474 | EOF | ||
12475 | |||
12476 | fi | ||
12477 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12478 | fi | ||
12479 | fi | ||
12480 | |||
12481 | # look for field 'ut_host' in header 'utmp.h' | ||
12482 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12483 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12484 | echo "$as_me:12484: checking for ut_host field in utmp.h" >&5 | ||
12485 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
12486 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12488 | else | ||
12489 | |||
12490 | cat >conftest.$ac_ext <<_ACEOF | ||
12491 | #line 12491 "configure" | ||
12492 | #include "confdefs.h" | ||
12493 | #include <utmp.h> | ||
12494 | |||
12495 | _ACEOF | ||
12496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12497 | egrep "ut_host" >/dev/null 2>&1; then | ||
12498 | eval "$ossh_varname=yes" | ||
12499 | else | ||
12500 | eval "$ossh_varname=no" | ||
12501 | fi | ||
12502 | rm -f conftest* | ||
12503 | |||
12504 | fi | ||
12505 | |||
12506 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12507 | if test -n "`echo $ossh_varname`"; then | ||
12508 | echo "$as_me:12508: result: $ossh_result" >&5 | ||
12509 | echo "${ECHO_T}$ossh_result" >&6 | ||
12510 | if test "x$ossh_result" = "xyes"; then | ||
12511 | cat >>confdefs.h <<\EOF | ||
12512 | #define HAVE_HOST_IN_UTMP 1 | ||
12513 | EOF | ||
12514 | |||
12515 | fi | ||
12516 | else | ||
12517 | echo "$as_me:12517: result: no" >&5 | ||
12518 | echo "${ECHO_T}no" >&6 | ||
12519 | fi | ||
12520 | |||
12521 | # look for field 'ut_host' in header 'utmpx.h' | ||
12522 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12523 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
12524 | echo "$as_me:12524: checking for ut_host field in utmpx.h" >&5 | ||
12525 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
12526 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12528 | else | ||
12529 | |||
12530 | cat >conftest.$ac_ext <<_ACEOF | ||
12531 | #line 12531 "configure" | ||
12532 | #include "confdefs.h" | ||
12533 | #include <utmpx.h> | ||
12534 | |||
12535 | _ACEOF | ||
12536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12537 | egrep "ut_host" >/dev/null 2>&1; then | ||
12538 | eval "$ossh_varname=yes" | ||
12539 | else | ||
12540 | eval "$ossh_varname=no" | ||
12541 | fi | ||
12542 | rm -f conftest* | ||
12543 | |||
12544 | fi | ||
12545 | |||
12546 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12547 | if test -n "`echo $ossh_varname`"; then | ||
12548 | echo "$as_me:12548: result: $ossh_result" >&5 | ||
12549 | echo "${ECHO_T}$ossh_result" >&6 | ||
12550 | if test "x$ossh_result" = "xyes"; then | ||
12551 | cat >>confdefs.h <<\EOF | ||
12552 | #define HAVE_HOST_IN_UTMPX 1 | ||
12553 | EOF | ||
12554 | |||
12555 | fi | ||
12556 | else | ||
12557 | echo "$as_me:12557: result: no" >&5 | ||
12558 | echo "${ECHO_T}no" >&6 | ||
12559 | fi | ||
12560 | |||
12561 | # look for field 'syslen' in header 'utmpx.h' | ||
12562 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12563 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
12564 | echo "$as_me:12564: checking for syslen field in utmpx.h" >&5 | ||
12565 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
12566 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12568 | else | ||
12569 | |||
12570 | cat >conftest.$ac_ext <<_ACEOF | ||
12571 | #line 12571 "configure" | ||
12572 | #include "confdefs.h" | ||
12573 | #include <utmpx.h> | ||
12574 | |||
12575 | _ACEOF | ||
12576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12577 | egrep "syslen" >/dev/null 2>&1; then | ||
12578 | eval "$ossh_varname=yes" | ||
12579 | else | ||
12580 | eval "$ossh_varname=no" | ||
12581 | fi | ||
12582 | rm -f conftest* | ||
12583 | |||
12584 | fi | ||
12585 | |||
12586 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12587 | if test -n "`echo $ossh_varname`"; then | ||
12588 | echo "$as_me:12588: result: $ossh_result" >&5 | ||
12589 | echo "${ECHO_T}$ossh_result" >&6 | ||
12590 | if test "x$ossh_result" = "xyes"; then | ||
12591 | cat >>confdefs.h <<\EOF | ||
12592 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
12593 | EOF | ||
12594 | |||
12595 | fi | ||
12596 | else | ||
12597 | echo "$as_me:12597: result: no" >&5 | ||
12598 | echo "${ECHO_T}no" >&6 | ||
12599 | fi | ||
12600 | |||
12601 | # look for field 'ut_pid' in header 'utmp.h' | ||
12602 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12603 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
12604 | echo "$as_me:12604: checking for ut_pid field in utmp.h" >&5 | ||
12605 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
12606 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12608 | else | ||
12609 | |||
12610 | cat >conftest.$ac_ext <<_ACEOF | ||
12611 | #line 12611 "configure" | ||
12612 | #include "confdefs.h" | ||
12613 | #include <utmp.h> | ||
12614 | |||
12615 | _ACEOF | ||
12616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12617 | egrep "ut_pid" >/dev/null 2>&1; then | ||
12618 | eval "$ossh_varname=yes" | ||
12619 | else | ||
12620 | eval "$ossh_varname=no" | ||
12621 | fi | ||
12622 | rm -f conftest* | ||
12623 | |||
12624 | fi | ||
12625 | |||
12626 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12627 | if test -n "`echo $ossh_varname`"; then | ||
12628 | echo "$as_me:12628: result: $ossh_result" >&5 | ||
12629 | echo "${ECHO_T}$ossh_result" >&6 | ||
12630 | if test "x$ossh_result" = "xyes"; then | ||
12631 | cat >>confdefs.h <<\EOF | ||
12632 | #define HAVE_PID_IN_UTMP 1 | ||
12633 | EOF | ||
12634 | |||
12635 | fi | ||
12636 | else | ||
12637 | echo "$as_me:12637: result: no" >&5 | ||
12638 | echo "${ECHO_T}no" >&6 | ||
12639 | fi | ||
12640 | |||
12641 | # look for field 'ut_type' in header 'utmp.h' | ||
12642 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12643 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
12644 | echo "$as_me:12644: checking for ut_type field in utmp.h" >&5 | ||
12645 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
12646 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12648 | else | ||
12649 | |||
12650 | cat >conftest.$ac_ext <<_ACEOF | ||
12651 | #line 12651 "configure" | ||
12652 | #include "confdefs.h" | ||
12653 | #include <utmp.h> | ||
12654 | |||
12655 | _ACEOF | ||
12656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12657 | egrep "ut_type" >/dev/null 2>&1; then | ||
12658 | eval "$ossh_varname=yes" | ||
12659 | else | ||
12660 | eval "$ossh_varname=no" | ||
12661 | fi | ||
12662 | rm -f conftest* | ||
12663 | |||
12664 | fi | ||
12665 | |||
12666 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12667 | if test -n "`echo $ossh_varname`"; then | ||
12668 | echo "$as_me:12668: result: $ossh_result" >&5 | ||
12669 | echo "${ECHO_T}$ossh_result" >&6 | ||
12670 | if test "x$ossh_result" = "xyes"; then | ||
12671 | cat >>confdefs.h <<\EOF | ||
12672 | #define HAVE_TYPE_IN_UTMP 1 | ||
12673 | EOF | ||
12674 | |||
12675 | fi | ||
12676 | else | ||
12677 | echo "$as_me:12677: result: no" >&5 | ||
12678 | echo "${ECHO_T}no" >&6 | ||
12679 | fi | ||
12680 | |||
12681 | # look for field 'ut_type' in header 'utmpx.h' | ||
12682 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12683 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
12684 | echo "$as_me:12684: checking for ut_type field in utmpx.h" >&5 | ||
12685 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
12686 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12688 | else | ||
12689 | |||
12690 | cat >conftest.$ac_ext <<_ACEOF | ||
12691 | #line 12691 "configure" | ||
12692 | #include "confdefs.h" | ||
12693 | #include <utmpx.h> | ||
12694 | |||
12695 | _ACEOF | ||
12696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12697 | egrep "ut_type" >/dev/null 2>&1; then | ||
12698 | eval "$ossh_varname=yes" | ||
12699 | else | ||
12700 | eval "$ossh_varname=no" | ||
12701 | fi | ||
12702 | rm -f conftest* | ||
12703 | |||
12704 | fi | ||
12705 | |||
12706 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12707 | if test -n "`echo $ossh_varname`"; then | ||
12708 | echo "$as_me:12708: result: $ossh_result" >&5 | ||
12709 | echo "${ECHO_T}$ossh_result" >&6 | ||
12710 | if test "x$ossh_result" = "xyes"; then | ||
12711 | cat >>confdefs.h <<\EOF | ||
12712 | #define HAVE_TYPE_IN_UTMPX 1 | ||
12713 | EOF | ||
12714 | |||
12715 | fi | ||
12716 | else | ||
12717 | echo "$as_me:12717: result: no" >&5 | ||
12718 | echo "${ECHO_T}no" >&6 | ||
12719 | fi | ||
12720 | |||
12721 | # look for field 'ut_tv' in header 'utmp.h' | ||
12722 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12723 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
12724 | echo "$as_me:12724: checking for ut_tv field in utmp.h" >&5 | ||
12725 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
12726 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12728 | else | ||
12729 | |||
12730 | cat >conftest.$ac_ext <<_ACEOF | ||
12731 | #line 12731 "configure" | ||
12732 | #include "confdefs.h" | ||
12733 | #include <utmp.h> | ||
12734 | |||
12735 | _ACEOF | ||
12736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12737 | egrep "ut_tv" >/dev/null 2>&1; then | ||
12738 | eval "$ossh_varname=yes" | ||
12739 | else | ||
12740 | eval "$ossh_varname=no" | ||
12741 | fi | ||
12742 | rm -f conftest* | ||
12743 | |||
12744 | fi | ||
12745 | |||
12746 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12747 | if test -n "`echo $ossh_varname`"; then | ||
12748 | echo "$as_me:12748: result: $ossh_result" >&5 | ||
12749 | echo "${ECHO_T}$ossh_result" >&6 | ||
12750 | if test "x$ossh_result" = "xyes"; then | ||
12751 | cat >>confdefs.h <<\EOF | ||
12752 | #define HAVE_TV_IN_UTMP 1 | ||
12753 | EOF | ||
12754 | |||
12755 | fi | ||
12756 | else | ||
12757 | echo "$as_me:12757: result: no" >&5 | ||
12758 | echo "${ECHO_T}no" >&6 | ||
12759 | fi | ||
12760 | |||
12761 | # look for field 'ut_id' in header 'utmp.h' | ||
12762 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12763 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
12764 | echo "$as_me:12764: checking for ut_id field in utmp.h" >&5 | ||
12765 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
12766 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12768 | else | ||
12769 | |||
12770 | cat >conftest.$ac_ext <<_ACEOF | ||
12771 | #line 12771 "configure" | ||
12772 | #include "confdefs.h" | ||
12773 | #include <utmp.h> | ||
12774 | |||
12775 | _ACEOF | ||
12776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12777 | egrep "ut_id" >/dev/null 2>&1; then | ||
12778 | eval "$ossh_varname=yes" | ||
12779 | else | ||
12780 | eval "$ossh_varname=no" | ||
12781 | fi | ||
12782 | rm -f conftest* | ||
12783 | |||
12784 | fi | ||
12785 | |||
12786 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12787 | if test -n "`echo $ossh_varname`"; then | ||
12788 | echo "$as_me:12788: result: $ossh_result" >&5 | ||
12789 | echo "${ECHO_T}$ossh_result" >&6 | ||
12790 | if test "x$ossh_result" = "xyes"; then | ||
12791 | cat >>confdefs.h <<\EOF | ||
12792 | #define HAVE_ID_IN_UTMP 1 | ||
12793 | EOF | ||
12794 | |||
12795 | fi | ||
12796 | else | ||
12797 | echo "$as_me:12797: result: no" >&5 | ||
12798 | echo "${ECHO_T}no" >&6 | ||
12799 | fi | ||
12800 | |||
12801 | # look for field 'ut_id' in header 'utmpx.h' | ||
12802 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12803 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
12804 | echo "$as_me:12804: checking for ut_id field in utmpx.h" >&5 | ||
12805 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
12806 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12808 | else | ||
12809 | |||
12810 | cat >conftest.$ac_ext <<_ACEOF | ||
12811 | #line 12811 "configure" | ||
12812 | #include "confdefs.h" | ||
12813 | #include <utmpx.h> | ||
12814 | |||
12815 | _ACEOF | ||
12816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12817 | egrep "ut_id" >/dev/null 2>&1; then | ||
12818 | eval "$ossh_varname=yes" | ||
12819 | else | ||
12820 | eval "$ossh_varname=no" | ||
12821 | fi | ||
12822 | rm -f conftest* | ||
12823 | |||
12824 | fi | ||
12825 | |||
12826 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12827 | if test -n "`echo $ossh_varname`"; then | ||
12828 | echo "$as_me:12828: result: $ossh_result" >&5 | ||
12829 | echo "${ECHO_T}$ossh_result" >&6 | ||
12830 | if test "x$ossh_result" = "xyes"; then | ||
12831 | cat >>confdefs.h <<\EOF | ||
12832 | #define HAVE_ID_IN_UTMPX 1 | ||
12833 | EOF | ||
12834 | |||
12835 | fi | ||
12836 | else | ||
12837 | echo "$as_me:12837: result: no" >&5 | ||
12838 | echo "${ECHO_T}no" >&6 | ||
12839 | fi | ||
12840 | |||
12841 | # look for field 'ut_addr' in header 'utmp.h' | ||
12842 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12843 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
12844 | echo "$as_me:12844: checking for ut_addr field in utmp.h" >&5 | ||
12845 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
12846 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12848 | else | ||
12849 | |||
12850 | cat >conftest.$ac_ext <<_ACEOF | ||
12851 | #line 12851 "configure" | ||
12852 | #include "confdefs.h" | ||
12853 | #include <utmp.h> | ||
12854 | |||
12855 | _ACEOF | ||
12856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12857 | egrep "ut_addr" >/dev/null 2>&1; then | ||
12858 | eval "$ossh_varname=yes" | ||
12859 | else | ||
12860 | eval "$ossh_varname=no" | ||
12861 | fi | ||
12862 | rm -f conftest* | ||
12863 | |||
12864 | fi | ||
12865 | |||
12866 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12867 | if test -n "`echo $ossh_varname`"; then | ||
12868 | echo "$as_me:12868: result: $ossh_result" >&5 | ||
12869 | echo "${ECHO_T}$ossh_result" >&6 | ||
12870 | if test "x$ossh_result" = "xyes"; then | ||
12871 | cat >>confdefs.h <<\EOF | ||
12872 | #define HAVE_ADDR_IN_UTMP 1 | ||
12873 | EOF | ||
12874 | |||
12875 | fi | ||
12876 | else | ||
12877 | echo "$as_me:12877: result: no" >&5 | ||
12878 | echo "${ECHO_T}no" >&6 | ||
12879 | fi | ||
12880 | |||
12881 | # look for field 'ut_addr' in header 'utmpx.h' | ||
12882 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12883 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
12884 | echo "$as_me:12884: checking for ut_addr field in utmpx.h" >&5 | ||
12885 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
12886 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12888 | else | ||
12889 | |||
12890 | cat >conftest.$ac_ext <<_ACEOF | ||
12891 | #line 12891 "configure" | ||
12892 | #include "confdefs.h" | ||
12893 | #include <utmpx.h> | ||
12894 | |||
12895 | _ACEOF | ||
12896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12897 | egrep "ut_addr" >/dev/null 2>&1; then | ||
12898 | eval "$ossh_varname=yes" | ||
12899 | else | ||
12900 | eval "$ossh_varname=no" | ||
12901 | fi | ||
12902 | rm -f conftest* | ||
12903 | |||
12904 | fi | ||
12905 | |||
12906 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12907 | if test -n "`echo $ossh_varname`"; then | ||
12908 | echo "$as_me:12908: result: $ossh_result" >&5 | ||
12909 | echo "${ECHO_T}$ossh_result" >&6 | ||
12910 | if test "x$ossh_result" = "xyes"; then | ||
12911 | cat >>confdefs.h <<\EOF | ||
12912 | #define HAVE_ADDR_IN_UTMPX 1 | ||
12913 | EOF | ||
12914 | |||
12915 | fi | ||
12916 | else | ||
12917 | echo "$as_me:12917: result: no" >&5 | ||
12918 | echo "${ECHO_T}no" >&6 | ||
12919 | fi | ||
12920 | |||
12921 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
12922 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
12923 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
12924 | echo "$as_me:12924: checking for ut_addr_v6 field in utmp.h" >&5 | ||
12925 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
12926 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12928 | else | ||
12929 | |||
12930 | cat >conftest.$ac_ext <<_ACEOF | ||
12931 | #line 12931 "configure" | ||
12932 | #include "confdefs.h" | ||
12933 | #include <utmp.h> | ||
12934 | |||
12935 | _ACEOF | ||
12936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12937 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
12938 | eval "$ossh_varname=yes" | ||
12939 | else | ||
12940 | eval "$ossh_varname=no" | ||
12941 | fi | ||
12942 | rm -f conftest* | ||
12943 | |||
12944 | fi | ||
12945 | |||
12946 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12947 | if test -n "`echo $ossh_varname`"; then | ||
12948 | echo "$as_me:12948: result: $ossh_result" >&5 | ||
12949 | echo "${ECHO_T}$ossh_result" >&6 | ||
12950 | if test "x$ossh_result" = "xyes"; then | ||
12951 | cat >>confdefs.h <<\EOF | ||
12952 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
12953 | EOF | ||
12954 | |||
12955 | fi | ||
12956 | else | ||
12957 | echo "$as_me:12957: result: no" >&5 | ||
12958 | echo "${ECHO_T}no" >&6 | ||
12959 | fi | ||
12960 | |||
12961 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
12962 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
12963 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
12964 | echo "$as_me:12964: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
12965 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
12966 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
12967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12968 | else | ||
12969 | |||
12970 | cat >conftest.$ac_ext <<_ACEOF | ||
12971 | #line 12971 "configure" | ||
12972 | #include "confdefs.h" | ||
12973 | #include <utmpx.h> | ||
12974 | |||
12975 | _ACEOF | ||
12976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12977 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
12978 | eval "$ossh_varname=yes" | ||
12979 | else | ||
12980 | eval "$ossh_varname=no" | ||
12981 | fi | ||
12982 | rm -f conftest* | ||
12983 | |||
12984 | fi | ||
12985 | |||
12986 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
12987 | if test -n "`echo $ossh_varname`"; then | ||
12988 | echo "$as_me:12988: result: $ossh_result" >&5 | ||
12989 | echo "${ECHO_T}$ossh_result" >&6 | ||
12990 | if test "x$ossh_result" = "xyes"; then | ||
12991 | cat >>confdefs.h <<\EOF | ||
12992 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
12993 | EOF | ||
12994 | |||
12995 | fi | ||
12996 | else | ||
12997 | echo "$as_me:12997: result: no" >&5 | ||
12998 | echo "${ECHO_T}no" >&6 | ||
12999 | fi | ||
13000 | |||
13001 | # look for field 'ut_exit' in header 'utmp.h' | ||
13002 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13003 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13004 | echo "$as_me:13004: checking for ut_exit field in utmp.h" >&5 | ||
13005 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13006 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13008 | else | ||
13009 | |||
13010 | cat >conftest.$ac_ext <<_ACEOF | ||
13011 | #line 13011 "configure" | ||
13012 | #include "confdefs.h" | ||
13013 | #include <utmp.h> | ||
13014 | |||
13015 | _ACEOF | ||
13016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13017 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13018 | eval "$ossh_varname=yes" | ||
13019 | else | ||
13020 | eval "$ossh_varname=no" | ||
13021 | fi | ||
13022 | rm -f conftest* | ||
13023 | |||
13024 | fi | ||
13025 | |||
13026 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13027 | if test -n "`echo $ossh_varname`"; then | ||
13028 | echo "$as_me:13028: result: $ossh_result" >&5 | ||
13029 | echo "${ECHO_T}$ossh_result" >&6 | ||
13030 | if test "x$ossh_result" = "xyes"; then | ||
13031 | cat >>confdefs.h <<\EOF | ||
13032 | #define HAVE_EXIT_IN_UTMP 1 | ||
13033 | EOF | ||
13034 | |||
13035 | fi | ||
13036 | else | ||
13037 | echo "$as_me:13037: result: no" >&5 | ||
13038 | echo "${ECHO_T}no" >&6 | ||
13039 | fi | ||
13040 | |||
13041 | # look for field 'ut_time' in header 'utmp.h' | ||
13042 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13043 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13044 | echo "$as_me:13044: checking for ut_time field in utmp.h" >&5 | ||
13045 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13046 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13048 | else | ||
13049 | |||
13050 | cat >conftest.$ac_ext <<_ACEOF | ||
13051 | #line 13051 "configure" | ||
13052 | #include "confdefs.h" | ||
13053 | #include <utmp.h> | ||
13054 | |||
13055 | _ACEOF | ||
13056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13057 | egrep "ut_time" >/dev/null 2>&1; then | ||
13058 | eval "$ossh_varname=yes" | ||
13059 | else | ||
13060 | eval "$ossh_varname=no" | ||
13061 | fi | ||
13062 | rm -f conftest* | ||
13063 | |||
13064 | fi | ||
13065 | |||
13066 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13067 | if test -n "`echo $ossh_varname`"; then | ||
13068 | echo "$as_me:13068: result: $ossh_result" >&5 | ||
13069 | echo "${ECHO_T}$ossh_result" >&6 | ||
13070 | if test "x$ossh_result" = "xyes"; then | ||
13071 | cat >>confdefs.h <<\EOF | ||
13072 | #define HAVE_TIME_IN_UTMP 1 | ||
13073 | EOF | ||
13074 | |||
13075 | fi | ||
13076 | else | ||
13077 | echo "$as_me:13077: result: no" >&5 | ||
13078 | echo "${ECHO_T}no" >&6 | ||
13079 | fi | ||
13080 | |||
13081 | # look for field 'ut_time' in header 'utmpx.h' | ||
13082 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13083 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13084 | echo "$as_me:13084: checking for ut_time field in utmpx.h" >&5 | ||
13085 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13086 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13088 | else | ||
13089 | |||
13090 | cat >conftest.$ac_ext <<_ACEOF | ||
13091 | #line 13091 "configure" | ||
13092 | #include "confdefs.h" | ||
13093 | #include <utmpx.h> | ||
13094 | |||
13095 | _ACEOF | ||
13096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13097 | egrep "ut_time" >/dev/null 2>&1; then | ||
13098 | eval "$ossh_varname=yes" | ||
13099 | else | ||
13100 | eval "$ossh_varname=no" | ||
13101 | fi | ||
13102 | rm -f conftest* | ||
13103 | |||
13104 | fi | ||
13105 | |||
13106 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13107 | if test -n "`echo $ossh_varname`"; then | ||
13108 | echo "$as_me:13108: result: $ossh_result" >&5 | ||
13109 | echo "${ECHO_T}$ossh_result" >&6 | ||
13110 | if test "x$ossh_result" = "xyes"; then | ||
13111 | cat >>confdefs.h <<\EOF | ||
13112 | #define HAVE_TIME_IN_UTMPX 1 | ||
13113 | EOF | ||
13114 | |||
13115 | fi | ||
13116 | else | ||
13117 | echo "$as_me:13117: result: no" >&5 | ||
13118 | echo "${ECHO_T}no" >&6 | ||
13119 | fi | ||
13120 | |||
13121 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13122 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13123 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13124 | echo "$as_me:13124: checking for ut_tv field in utmpx.h" >&5 | ||
13125 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
13126 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13128 | else | ||
13129 | |||
13130 | cat >conftest.$ac_ext <<_ACEOF | ||
13131 | #line 13131 "configure" | ||
13132 | #include "confdefs.h" | ||
13133 | #include <utmpx.h> | ||
13134 | |||
13135 | _ACEOF | ||
13136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13137 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13138 | eval "$ossh_varname=yes" | ||
13139 | else | ||
13140 | eval "$ossh_varname=no" | ||
13141 | fi | ||
13142 | rm -f conftest* | ||
13143 | |||
13144 | fi | ||
13145 | |||
13146 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13147 | if test -n "`echo $ossh_varname`"; then | ||
13148 | echo "$as_me:13148: result: $ossh_result" >&5 | ||
13149 | echo "${ECHO_T}$ossh_result" >&6 | ||
13150 | if test "x$ossh_result" = "xyes"; then | ||
13151 | cat >>confdefs.h <<\EOF | ||
13152 | #define HAVE_TV_IN_UTMPX 1 | ||
13153 | EOF | ||
13154 | |||
13155 | fi | ||
13156 | else | ||
13157 | echo "$as_me:13157: result: no" >&5 | ||
13158 | echo "${ECHO_T}no" >&6 | ||
13159 | fi | ||
13160 | |||
13161 | echo "$as_me:13161: checking for struct stat.st_blksize" >&5 | ||
13162 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
13163 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13165 | else | ||
13166 | cat >conftest.$ac_ext <<_ACEOF | ||
13167 | #line 13167 "configure" | ||
13168 | #include "confdefs.h" | ||
13169 | $ac_includes_default | ||
13170 | int | ||
13171 | main () | ||
13172 | { | ||
13173 | static struct stat ac_aggr; | ||
13174 | if (ac_aggr.st_blksize) | ||
13175 | return 0; | ||
13176 | ; | ||
13177 | return 0; | ||
13178 | } | ||
13179 | _ACEOF | ||
13180 | rm -f conftest.$ac_objext | ||
13181 | if { (eval echo "$as_me:13181: \"$ac_compile\"") >&5 | ||
13182 | (eval $ac_compile) 2>&5 | ||
13183 | ac_status=$? | ||
13184 | echo "$as_me:13184: \$? = $ac_status" >&5 | ||
13185 | (exit $ac_status); } && | ||
13186 | { ac_try='test -s conftest.$ac_objext' | ||
13187 | { (eval echo "$as_me:13187: \"$ac_try\"") >&5 | ||
13188 | (eval $ac_try) 2>&5 | ||
13189 | ac_status=$? | ||
13190 | echo "$as_me:13190: \$? = $ac_status" >&5 | ||
13191 | (exit $ac_status); }; }; then | ||
13192 | ac_cv_member_struct_stat_st_blksize=yes | ||
13193 | else | ||
13194 | echo "$as_me: failed program was:" >&5 | ||
13195 | cat conftest.$ac_ext >&5 | ||
13196 | ac_cv_member_struct_stat_st_blksize=no | ||
13197 | fi | ||
13198 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13199 | fi | ||
13200 | echo "$as_me:13200: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
13201 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
13202 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
13203 | |||
13204 | cat >>confdefs.h <<EOF | ||
13205 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13206 | EOF | ||
13207 | |||
13208 | fi | ||
13209 | |||
13210 | echo "$as_me:13210: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13211 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13212 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13214 | else | ||
13215 | |||
13216 | cat >conftest.$ac_ext <<_ACEOF | ||
13217 | #line 13217 "configure" | ||
13218 | #include "confdefs.h" | ||
13219 | |||
13220 | #include <sys/types.h> | ||
13221 | #include <sys/socket.h> | ||
13222 | |||
13223 | int | ||
13224 | main () | ||
13225 | { | ||
13226 | struct sockaddr_storage s; s.ss_family = 1; | ||
13227 | ; | ||
13228 | return 0; | ||
13229 | } | ||
13230 | _ACEOF | ||
13231 | rm -f conftest.$ac_objext | ||
13232 | if { (eval echo "$as_me:13232: \"$ac_compile\"") >&5 | ||
13233 | (eval $ac_compile) 2>&5 | ||
13234 | ac_status=$? | ||
13235 | echo "$as_me:13235: \$? = $ac_status" >&5 | ||
13236 | (exit $ac_status); } && | ||
13237 | { ac_try='test -s conftest.$ac_objext' | ||
13238 | { (eval echo "$as_me:13238: \"$ac_try\"") >&5 | ||
13239 | (eval $ac_try) 2>&5 | ||
13240 | ac_status=$? | ||
13241 | echo "$as_me:13241: \$? = $ac_status" >&5 | ||
13242 | (exit $ac_status); }; }; then | ||
13243 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13244 | else | ||
13245 | echo "$as_me: failed program was:" >&5 | ||
13246 | cat conftest.$ac_ext >&5 | ||
13247 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13248 | fi | ||
13249 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13250 | |||
13251 | fi | ||
13252 | echo "$as_me:13252: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
13253 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
13254 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
13255 | cat >>confdefs.h <<\EOF | ||
13256 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
13257 | EOF | ||
13258 | |||
13259 | fi | ||
13260 | |||
13261 | echo "$as_me:13261: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
13262 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13263 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
13264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13265 | else | ||
13266 | |||
13267 | cat >conftest.$ac_ext <<_ACEOF | ||
13268 | #line 13268 "configure" | ||
13269 | #include "confdefs.h" | ||
13270 | |||
13271 | #include <sys/types.h> | ||
13272 | #include <sys/socket.h> | ||
13273 | |||
13274 | int | ||
13275 | main () | ||
13276 | { | ||
13277 | struct sockaddr_storage s; s.__ss_family = 1; | ||
13278 | ; | ||
13279 | return 0; | ||
13280 | } | ||
13281 | _ACEOF | ||
13282 | rm -f conftest.$ac_objext | ||
13283 | if { (eval echo "$as_me:13283: \"$ac_compile\"") >&5 | ||
13284 | (eval $ac_compile) 2>&5 | ||
13285 | ac_status=$? | ||
13286 | echo "$as_me:13286: \$? = $ac_status" >&5 | ||
13287 | (exit $ac_status); } && | ||
13288 | { ac_try='test -s conftest.$ac_objext' | ||
13289 | { (eval echo "$as_me:13289: \"$ac_try\"") >&5 | ||
13290 | (eval $ac_try) 2>&5 | ||
13291 | ac_status=$? | ||
13292 | echo "$as_me:13292: \$? = $ac_status" >&5 | ||
13293 | (exit $ac_status); }; }; then | ||
13294 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
13295 | else | ||
13296 | echo "$as_me: failed program was:" >&5 | ||
13297 | cat conftest.$ac_ext >&5 | ||
13298 | ac_cv_have___ss_family_in_struct_ss="no" | ||
13299 | |||
13300 | fi | ||
13301 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13302 | |||
13303 | fi | ||
13304 | echo "$as_me:13304: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
13305 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
13306 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
13307 | cat >>confdefs.h <<\EOF | ||
13308 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
13309 | EOF | ||
13310 | |||
13311 | fi | ||
13312 | |||
13313 | echo "$as_me:13313: checking for pw_class field in struct passwd" >&5 | ||
13314 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
13315 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
13316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13317 | else | ||
13318 | |||
13319 | cat >conftest.$ac_ext <<_ACEOF | ||
13320 | #line 13320 "configure" | ||
13321 | #include "confdefs.h" | ||
13322 | |||
13323 | #include <pwd.h> | ||
13324 | |||
13325 | int | ||
13326 | main () | ||
13327 | { | ||
13328 | struct passwd p; p.pw_class = 0; | ||
13329 | ; | ||
13330 | return 0; | ||
13331 | } | ||
13332 | _ACEOF | ||
13333 | rm -f conftest.$ac_objext | ||
13334 | if { (eval echo "$as_me:13334: \"$ac_compile\"") >&5 | ||
13335 | (eval $ac_compile) 2>&5 | ||
13336 | ac_status=$? | ||
13337 | echo "$as_me:13337: \$? = $ac_status" >&5 | ||
13338 | (exit $ac_status); } && | ||
13339 | { ac_try='test -s conftest.$ac_objext' | ||
13340 | { (eval echo "$as_me:13340: \"$ac_try\"") >&5 | ||
13341 | (eval $ac_try) 2>&5 | ||
13342 | ac_status=$? | ||
13343 | echo "$as_me:13343: \$? = $ac_status" >&5 | ||
13344 | (exit $ac_status); }; }; then | ||
13345 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
13346 | else | ||
13347 | echo "$as_me: failed program was:" >&5 | ||
13348 | cat conftest.$ac_ext >&5 | ||
13349 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
13350 | |||
13351 | fi | ||
13352 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13353 | |||
13354 | fi | ||
13355 | echo "$as_me:13355: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
13356 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
13357 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
13358 | cat >>confdefs.h <<\EOF | ||
13359 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
13360 | EOF | ||
13361 | |||
13362 | fi | ||
13363 | |||
13364 | echo "$as_me:13364: checking for pw_expire field in struct passwd" >&5 | ||
13365 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
13366 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
13367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13368 | else | ||
13369 | |||
13370 | cat >conftest.$ac_ext <<_ACEOF | ||
13371 | #line 13371 "configure" | ||
13372 | #include "confdefs.h" | ||
13373 | |||
13374 | #include <pwd.h> | ||
13375 | |||
13376 | int | ||
13377 | main () | ||
13378 | { | ||
13379 | struct passwd p; p.pw_expire = 0; | ||
13380 | ; | ||
13381 | return 0; | ||
13382 | } | ||
13383 | _ACEOF | ||
13384 | rm -f conftest.$ac_objext | ||
13385 | if { (eval echo "$as_me:13385: \"$ac_compile\"") >&5 | ||
13386 | (eval $ac_compile) 2>&5 | ||
13387 | ac_status=$? | ||
13388 | echo "$as_me:13388: \$? = $ac_status" >&5 | ||
13389 | (exit $ac_status); } && | ||
13390 | { ac_try='test -s conftest.$ac_objext' | ||
13391 | { (eval echo "$as_me:13391: \"$ac_try\"") >&5 | ||
13392 | (eval $ac_try) 2>&5 | ||
13393 | ac_status=$? | ||
13394 | echo "$as_me:13394: \$? = $ac_status" >&5 | ||
13395 | (exit $ac_status); }; }; then | ||
13396 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
13397 | else | ||
13398 | echo "$as_me: failed program was:" >&5 | ||
13399 | cat conftest.$ac_ext >&5 | ||
13400 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
13401 | |||
13402 | fi | ||
13403 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13404 | |||
13405 | fi | ||
13406 | echo "$as_me:13406: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
13407 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
13408 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
13409 | cat >>confdefs.h <<\EOF | ||
13410 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
13411 | EOF | ||
13412 | |||
13413 | fi | ||
13414 | |||
13415 | echo "$as_me:13415: checking for pw_change field in struct passwd" >&5 | ||
13416 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
13417 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
13418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13419 | else | ||
13420 | |||
13421 | cat >conftest.$ac_ext <<_ACEOF | ||
13422 | #line 13422 "configure" | ||
13423 | #include "confdefs.h" | ||
13424 | |||
13425 | #include <pwd.h> | ||
13426 | |||
13427 | int | ||
13428 | main () | ||
13429 | { | ||
13430 | struct passwd p; p.pw_change = 0; | ||
13431 | ; | ||
13432 | return 0; | ||
13433 | } | ||
13434 | _ACEOF | ||
13435 | rm -f conftest.$ac_objext | ||
13436 | if { (eval echo "$as_me:13436: \"$ac_compile\"") >&5 | ||
13437 | (eval $ac_compile) 2>&5 | ||
13438 | ac_status=$? | ||
13439 | echo "$as_me:13439: \$? = $ac_status" >&5 | ||
13440 | (exit $ac_status); } && | ||
13441 | { ac_try='test -s conftest.$ac_objext' | ||
13442 | { (eval echo "$as_me:13442: \"$ac_try\"") >&5 | ||
13443 | (eval $ac_try) 2>&5 | ||
13444 | ac_status=$? | ||
13445 | echo "$as_me:13445: \$? = $ac_status" >&5 | ||
13446 | (exit $ac_status); }; }; then | ||
13447 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
13448 | else | ||
13449 | echo "$as_me: failed program was:" >&5 | ||
13450 | cat conftest.$ac_ext >&5 | ||
13451 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
13452 | |||
13453 | fi | ||
13454 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13455 | |||
13456 | fi | ||
13457 | echo "$as_me:13457: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
13458 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
13459 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
13460 | cat >>confdefs.h <<\EOF | ||
13461 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
13462 | EOF | ||
13463 | |||
13464 | fi | ||
13465 | |||
13466 | echo "$as_me:13466: checking for msg_accrights field in struct msghdr" >&5 | ||
13467 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
13468 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
13469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13470 | else | ||
13471 | |||
13472 | if test "$cross_compiling" = yes; then | ||
13473 | { { echo "$as_me:13473: error: cannot run test program while cross compiling" >&5 | ||
13474 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13475 | { (exit 1); exit 1; }; } | ||
13476 | else | ||
13477 | cat >conftest.$ac_ext <<_ACEOF | ||
13478 | #line 13478 "configure" | ||
13479 | #include "confdefs.h" | ||
13480 | |||
13481 | #include <sys/types.h> | ||
13482 | #include <sys/socket.h> | ||
13483 | #include <sys/uio.h> | ||
13484 | int main() { | ||
13485 | #ifdef msg_accrights | ||
13486 | exit(1); | ||
13487 | #endif | ||
13488 | struct msghdr m; | ||
13489 | m.msg_accrights = 0; | ||
13490 | exit(0); | ||
13491 | } | ||
13492 | |||
13493 | _ACEOF | ||
13494 | rm -f conftest$ac_exeext | ||
13495 | if { (eval echo "$as_me:13495: \"$ac_link\"") >&5 | ||
13496 | (eval $ac_link) 2>&5 | ||
13497 | ac_status=$? | ||
13498 | echo "$as_me:13498: \$? = $ac_status" >&5 | ||
13499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13500 | { (eval echo "$as_me:13500: \"$ac_try\"") >&5 | ||
13501 | (eval $ac_try) 2>&5 | ||
13502 | ac_status=$? | ||
13503 | echo "$as_me:13503: \$? = $ac_status" >&5 | ||
13504 | (exit $ac_status); }; }; then | ||
13505 | ac_cv_have_accrights_in_msghdr="yes" | ||
13506 | else | ||
13507 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13508 | echo "$as_me: failed program was:" >&5 | ||
13509 | cat conftest.$ac_ext >&5 | ||
13510 | ac_cv_have_accrights_in_msghdr="no" | ||
13511 | |||
13512 | fi | ||
13513 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13514 | fi | ||
13515 | |||
13516 | fi | ||
13517 | echo "$as_me:13517: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
13518 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
13519 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
13520 | cat >>confdefs.h <<\EOF | ||
13521 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
13522 | EOF | ||
13523 | |||
13524 | fi | ||
13525 | |||
13526 | echo "$as_me:13526: checking for msg_control field in struct msghdr" >&5 | ||
13527 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
13528 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13530 | else | ||
13531 | |||
13532 | if test "$cross_compiling" = yes; then | ||
13533 | { { echo "$as_me:13533: error: cannot run test program while cross compiling" >&5 | ||
13534 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13535 | { (exit 1); exit 1; }; } | ||
13536 | else | ||
13537 | cat >conftest.$ac_ext <<_ACEOF | ||
13538 | #line 13538 "configure" | ||
13539 | #include "confdefs.h" | ||
13540 | |||
13541 | #include <sys/types.h> | ||
13542 | #include <sys/socket.h> | ||
13543 | #include <sys/uio.h> | ||
13544 | int main() { | ||
13545 | #ifdef msg_control | ||
13546 | exit(1); | ||
13547 | #endif | ||
13548 | struct msghdr m; | ||
13549 | m.msg_control = 0; | ||
13550 | exit(0); | ||
13551 | } | ||
13552 | |||
13553 | _ACEOF | ||
13554 | rm -f conftest$ac_exeext | ||
13555 | if { (eval echo "$as_me:13555: \"$ac_link\"") >&5 | ||
13556 | (eval $ac_link) 2>&5 | ||
13557 | ac_status=$? | ||
13558 | echo "$as_me:13558: \$? = $ac_status" >&5 | ||
13559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13560 | { (eval echo "$as_me:13560: \"$ac_try\"") >&5 | ||
13561 | (eval $ac_try) 2>&5 | ||
13562 | ac_status=$? | ||
13563 | echo "$as_me:13563: \$? = $ac_status" >&5 | ||
13564 | (exit $ac_status); }; }; then | ||
13565 | ac_cv_have_control_in_msghdr="yes" | ||
13566 | else | ||
13567 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13568 | echo "$as_me: failed program was:" >&5 | ||
13569 | cat conftest.$ac_ext >&5 | ||
13570 | ac_cv_have_control_in_msghdr="no" | ||
13571 | |||
13572 | fi | ||
13573 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13574 | fi | ||
13575 | |||
13576 | fi | ||
13577 | echo "$as_me:13577: result: $ac_cv_have_control_in_msghdr" >&5 | ||
13578 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
13579 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
13580 | cat >>confdefs.h <<\EOF | ||
13581 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
13582 | EOF | ||
13583 | |||
13584 | fi | ||
13585 | |||
13586 | echo "$as_me:13586: checking if libc defines __progname" >&5 | ||
13587 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
13588 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
13589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13590 | else | ||
13591 | |||
13592 | cat >conftest.$ac_ext <<_ACEOF | ||
13593 | #line 13593 "configure" | ||
13594 | #include "confdefs.h" | ||
13595 | |||
13596 | int | ||
13597 | main () | ||
13598 | { | ||
13599 | extern char *__progname; printf("%s", __progname); | ||
13600 | ; | ||
13601 | return 0; | ||
13602 | } | ||
13603 | _ACEOF | ||
13604 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13605 | if { (eval echo "$as_me:13605: \"$ac_link\"") >&5 | ||
13606 | (eval $ac_link) 2>&5 | ||
13607 | ac_status=$? | ||
13608 | echo "$as_me:13608: \$? = $ac_status" >&5 | ||
13609 | (exit $ac_status); } && | ||
13610 | { ac_try='test -s conftest$ac_exeext' | ||
13611 | { (eval echo "$as_me:13611: \"$ac_try\"") >&5 | ||
13612 | (eval $ac_try) 2>&5 | ||
13613 | ac_status=$? | ||
13614 | echo "$as_me:13614: \$? = $ac_status" >&5 | ||
13615 | (exit $ac_status); }; }; then | ||
13616 | ac_cv_libc_defines___progname="yes" | ||
13617 | else | ||
13618 | echo "$as_me: failed program was:" >&5 | ||
13619 | cat conftest.$ac_ext >&5 | ||
13620 | ac_cv_libc_defines___progname="no" | ||
13621 | |||
13622 | fi | ||
13623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13624 | |||
13625 | fi | ||
13626 | echo "$as_me:13626: result: $ac_cv_libc_defines___progname" >&5 | ||
13627 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
13628 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
13629 | cat >>confdefs.h <<\EOF | ||
13630 | #define HAVE___PROGNAME 1 | ||
13631 | EOF | ||
13632 | |||
13633 | fi | ||
13634 | |||
13635 | echo "$as_me:13635: checking whether $CC implements __FUNCTION__" >&5 | ||
13636 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
13637 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
13638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13639 | else | ||
13640 | |||
13641 | cat >conftest.$ac_ext <<_ACEOF | ||
13642 | #line 13642 "configure" | ||
13643 | #include "confdefs.h" | ||
13644 | |||
13645 | #include <stdio.h> | ||
13646 | |||
13647 | int | ||
13648 | main () | ||
13649 | { | ||
13650 | printf("%s", __FUNCTION__); | ||
13651 | ; | ||
13652 | return 0; | ||
13653 | } | ||
13654 | _ACEOF | ||
13655 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13656 | if { (eval echo "$as_me:13656: \"$ac_link\"") >&5 | ||
13657 | (eval $ac_link) 2>&5 | ||
13658 | ac_status=$? | ||
13659 | echo "$as_me:13659: \$? = $ac_status" >&5 | ||
13660 | (exit $ac_status); } && | ||
13661 | { ac_try='test -s conftest$ac_exeext' | ||
13662 | { (eval echo "$as_me:13662: \"$ac_try\"") >&5 | ||
13663 | (eval $ac_try) 2>&5 | ||
13664 | ac_status=$? | ||
13665 | echo "$as_me:13665: \$? = $ac_status" >&5 | ||
13666 | (exit $ac_status); }; }; then | ||
13667 | ac_cv_cc_implements___FUNCTION__="yes" | ||
13668 | else | ||
13669 | echo "$as_me: failed program was:" >&5 | ||
13670 | cat conftest.$ac_ext >&5 | ||
13671 | ac_cv_cc_implements___FUNCTION__="no" | ||
13672 | |||
13673 | fi | ||
13674 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13675 | |||
13676 | fi | ||
13677 | echo "$as_me:13677: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
13678 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
13679 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
13680 | cat >>confdefs.h <<\EOF | ||
13681 | #define HAVE___FUNCTION__ 1 | ||
13682 | EOF | ||
13683 | |||
13684 | fi | ||
13685 | |||
13686 | echo "$as_me:13686: checking whether $CC implements __func__" >&5 | ||
13687 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
13688 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
13689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13690 | else | ||
13691 | |||
13692 | cat >conftest.$ac_ext <<_ACEOF | ||
13693 | #line 13693 "configure" | ||
13694 | #include "confdefs.h" | ||
13695 | |||
13696 | #include <stdio.h> | ||
13697 | |||
13698 | int | ||
13699 | main () | ||
13700 | { | ||
13701 | printf("%s", __func__); | ||
13702 | ; | ||
13703 | return 0; | ||
13704 | } | ||
13705 | _ACEOF | ||
13706 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13707 | if { (eval echo "$as_me:13707: \"$ac_link\"") >&5 | ||
13708 | (eval $ac_link) 2>&5 | ||
13709 | ac_status=$? | ||
13710 | echo "$as_me:13710: \$? = $ac_status" >&5 | ||
13711 | (exit $ac_status); } && | ||
13712 | { ac_try='test -s conftest$ac_exeext' | ||
13713 | { (eval echo "$as_me:13713: \"$ac_try\"") >&5 | ||
13714 | (eval $ac_try) 2>&5 | ||
13715 | ac_status=$? | ||
13716 | echo "$as_me:13716: \$? = $ac_status" >&5 | ||
13717 | (exit $ac_status); }; }; then | ||
13718 | ac_cv_cc_implements___func__="yes" | ||
13719 | else | ||
13720 | echo "$as_me: failed program was:" >&5 | ||
13721 | cat conftest.$ac_ext >&5 | ||
13722 | ac_cv_cc_implements___func__="no" | ||
13723 | |||
13724 | fi | ||
13725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13726 | |||
13727 | fi | ||
13728 | echo "$as_me:13728: result: $ac_cv_cc_implements___func__" >&5 | ||
13729 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
13730 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
13731 | cat >>confdefs.h <<\EOF | ||
13732 | #define HAVE___func__ 1 | ||
13733 | EOF | ||
13734 | |||
13735 | fi | ||
13736 | |||
13737 | echo "$as_me:13737: checking whether getopt has optreset support" >&5 | ||
13738 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
13739 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
13740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13741 | else | ||
13742 | |||
13743 | cat >conftest.$ac_ext <<_ACEOF | ||
13744 | #line 13744 "configure" | ||
13745 | #include "confdefs.h" | ||
13746 | |||
13747 | #include <getopt.h> | ||
13748 | |||
13749 | int | ||
13750 | main () | ||
13751 | { | ||
13752 | extern int optreset; optreset = 0; | ||
13753 | ; | ||
13754 | return 0; | ||
13755 | } | ||
13756 | _ACEOF | ||
13757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13758 | if { (eval echo "$as_me:13758: \"$ac_link\"") >&5 | ||
13759 | (eval $ac_link) 2>&5 | ||
13760 | ac_status=$? | ||
13761 | echo "$as_me:13761: \$? = $ac_status" >&5 | ||
13762 | (exit $ac_status); } && | ||
13763 | { ac_try='test -s conftest$ac_exeext' | ||
13764 | { (eval echo "$as_me:13764: \"$ac_try\"") >&5 | ||
13765 | (eval $ac_try) 2>&5 | ||
13766 | ac_status=$? | ||
13767 | echo "$as_me:13767: \$? = $ac_status" >&5 | ||
13768 | (exit $ac_status); }; }; then | ||
13769 | ac_cv_have_getopt_optreset="yes" | ||
13770 | else | ||
13771 | echo "$as_me: failed program was:" >&5 | ||
13772 | cat conftest.$ac_ext >&5 | ||
13773 | ac_cv_have_getopt_optreset="no" | ||
13774 | |||
13775 | fi | ||
13776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13777 | |||
13778 | fi | ||
13779 | echo "$as_me:13779: result: $ac_cv_have_getopt_optreset" >&5 | ||
13780 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
13781 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
13782 | cat >>confdefs.h <<\EOF | ||
13783 | #define HAVE_GETOPT_OPTRESET 1 | ||
13784 | EOF | ||
13785 | |||
13786 | fi | ||
13787 | |||
13788 | echo "$as_me:13788: checking if libc defines sys_errlist" >&5 | ||
13789 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
13790 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
13791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13792 | else | ||
13793 | |||
13794 | cat >conftest.$ac_ext <<_ACEOF | ||
13795 | #line 13795 "configure" | ||
13796 | #include "confdefs.h" | ||
13797 | |||
13798 | int | ||
13799 | main () | ||
13800 | { | ||
13801 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
13802 | ; | ||
13803 | return 0; | ||
13804 | } | ||
13805 | _ACEOF | ||
13806 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13807 | if { (eval echo "$as_me:13807: \"$ac_link\"") >&5 | ||
13808 | (eval $ac_link) 2>&5 | ||
13809 | ac_status=$? | ||
13810 | echo "$as_me:13810: \$? = $ac_status" >&5 | ||
13811 | (exit $ac_status); } && | ||
13812 | { ac_try='test -s conftest$ac_exeext' | ||
13813 | { (eval echo "$as_me:13813: \"$ac_try\"") >&5 | ||
13814 | (eval $ac_try) 2>&5 | ||
13815 | ac_status=$? | ||
13816 | echo "$as_me:13816: \$? = $ac_status" >&5 | ||
13817 | (exit $ac_status); }; }; then | ||
13818 | ac_cv_libc_defines_sys_errlist="yes" | ||
13819 | else | ||
13820 | echo "$as_me: failed program was:" >&5 | ||
13821 | cat conftest.$ac_ext >&5 | ||
13822 | ac_cv_libc_defines_sys_errlist="no" | ||
13823 | |||
13824 | fi | ||
13825 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13826 | |||
13827 | fi | ||
13828 | echo "$as_me:13828: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
13829 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
13830 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
13831 | cat >>confdefs.h <<\EOF | ||
13832 | #define HAVE_SYS_ERRLIST 1 | ||
13833 | EOF | ||
13834 | |||
13835 | fi | ||
13836 | |||
13837 | echo "$as_me:13837: checking if libc defines sys_nerr" >&5 | ||
13838 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
13839 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
13840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13841 | else | ||
13842 | |||
13843 | cat >conftest.$ac_ext <<_ACEOF | ||
13844 | #line 13844 "configure" | ||
13845 | #include "confdefs.h" | ||
13846 | |||
13847 | int | ||
13848 | main () | ||
13849 | { | ||
13850 | extern int sys_nerr; printf("%i", sys_nerr); | ||
13851 | ; | ||
13852 | return 0; | ||
13853 | } | ||
13854 | _ACEOF | ||
13855 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13856 | if { (eval echo "$as_me:13856: \"$ac_link\"") >&5 | ||
13857 | (eval $ac_link) 2>&5 | ||
13858 | ac_status=$? | ||
13859 | echo "$as_me:13859: \$? = $ac_status" >&5 | ||
13860 | (exit $ac_status); } && | ||
13861 | { ac_try='test -s conftest$ac_exeext' | ||
13862 | { (eval echo "$as_me:13862: \"$ac_try\"") >&5 | ||
13863 | (eval $ac_try) 2>&5 | ||
13864 | ac_status=$? | ||
13865 | echo "$as_me:13865: \$? = $ac_status" >&5 | ||
13866 | (exit $ac_status); }; }; then | ||
13867 | ac_cv_libc_defines_sys_nerr="yes" | ||
13868 | else | ||
13869 | echo "$as_me: failed program was:" >&5 | ||
13870 | cat conftest.$ac_ext >&5 | ||
13871 | ac_cv_libc_defines_sys_nerr="no" | ||
13872 | |||
13873 | fi | ||
13874 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
13875 | |||
13876 | fi | ||
13877 | echo "$as_me:13877: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
13878 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
13879 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
13880 | cat >>confdefs.h <<\EOF | ||
13881 | #define HAVE_SYS_NERR 1 | ||
13882 | EOF | ||
13883 | |||
13884 | fi | ||
13885 | |||
13886 | SCARD_MSG="no" | ||
13887 | # Check whether user wants sectok support | ||
13888 | |||
13889 | # Check whether --with-sectok or --without-sectok was given. | ||
13890 | if test "${with_sectok+set}" = set; then | ||
13891 | withval="$with_sectok" | ||
13892 | |||
13893 | if test "x$withval" != "xno" ; then | ||
13894 | if test "x$withval" != "xyes" ; then | ||
13895 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
13896 | LDFLAGS="$LDFLAGS -L${withval}" | ||
13897 | if test ! -z "$need_dash_r" ; then | ||
13898 | LDFLAGS="$LDFLAGS -R${withval}" | ||
13899 | fi | ||
13900 | if test ! -z "$blibpath" ; then | ||
13901 | blibpath="$blibpath:${withval}" | ||
13902 | fi | ||
13903 | fi | ||
13904 | |||
13905 | for ac_header in sectok.h | ||
13906 | do | ||
13907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13908 | echo "$as_me:13908: checking for $ac_header" >&5 | ||
13909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
13910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
13911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13912 | else | ||
13913 | cat >conftest.$ac_ext <<_ACEOF | ||
13914 | #line 13914 "configure" | ||
13915 | #include "confdefs.h" | ||
13916 | #include <$ac_header> | ||
13917 | _ACEOF | ||
13918 | if { (eval echo "$as_me:13918: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
13919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
13920 | ac_status=$? | ||
13921 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
13922 | rm -f conftest.er1 | ||
13923 | cat conftest.err >&5 | ||
13924 | echo "$as_me:13924: \$? = $ac_status" >&5 | ||
13925 | (exit $ac_status); } >/dev/null; then | ||
13926 | if test -s conftest.err; then | ||
13927 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
13928 | else | ||
13929 | ac_cpp_err= | ||
13930 | fi | ||
13931 | else | ||
13932 | ac_cpp_err=yes | ||
13933 | fi | ||
13934 | if test -z "$ac_cpp_err"; then | ||
13935 | eval "$as_ac_Header=yes" | ||
13936 | else | ||
13937 | echo "$as_me: failed program was:" >&5 | ||
13938 | cat conftest.$ac_ext >&5 | ||
13939 | eval "$as_ac_Header=no" | ||
13940 | fi | ||
13941 | rm -f conftest.err conftest.$ac_ext | ||
13942 | fi | ||
13943 | echo "$as_me:13943: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
13944 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
13945 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13946 | cat >>confdefs.h <<EOF | ||
13947 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13948 | EOF | ||
13949 | |||
13950 | fi | ||
13951 | done | ||
13952 | |||
13953 | if test "$ac_cv_header_sectok_h" != yes; then | ||
13954 | { { echo "$as_me:13954: error: Can't find sectok.h" >&5 | ||
13955 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
13956 | { (exit 1); exit 1; }; } | ||
13957 | fi | ||
13958 | |||
13959 | echo "$as_me:13959: checking for sectok_open in -lsectok" >&5 | ||
13960 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
13961 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
13962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13963 | else | ||
13964 | ac_check_lib_save_LIBS=$LIBS | ||
13965 | LIBS="-lsectok $LIBS" | ||
13966 | cat >conftest.$ac_ext <<_ACEOF | ||
13967 | #line 13967 "configure" | ||
13968 | #include "confdefs.h" | ||
13969 | |||
13970 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13971 | #ifdef __cplusplus | ||
13972 | extern "C" | ||
13973 | #endif | ||
13974 | /* We use char because int might match the return type of a gcc2 | ||
13975 | builtin and then its argument prototype would still apply. */ | ||
13976 | char sectok_open (); | ||
13977 | int | ||
13978 | main () | ||
13979 | { | ||
13980 | sectok_open (); | ||
13981 | ; | ||
13982 | return 0; | ||
13983 | } | ||
13984 | _ACEOF | ||
13985 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13986 | if { (eval echo "$as_me:13986: \"$ac_link\"") >&5 | ||
13987 | (eval $ac_link) 2>&5 | ||
13988 | ac_status=$? | ||
13989 | echo "$as_me:13989: \$? = $ac_status" >&5 | ||
13990 | (exit $ac_status); } && | ||
13991 | { ac_try='test -s conftest$ac_exeext' | ||
13992 | { (eval echo "$as_me:13992: \"$ac_try\"") >&5 | ||
13993 | (eval $ac_try) 2>&5 | ||
13994 | ac_status=$? | ||
13995 | echo "$as_me:13995: \$? = $ac_status" >&5 | ||
13996 | (exit $ac_status); }; }; then | ||
13997 | ac_cv_lib_sectok_sectok_open=yes | ||
13998 | else | ||
13999 | echo "$as_me: failed program was:" >&5 | ||
14000 | cat conftest.$ac_ext >&5 | ||
14001 | ac_cv_lib_sectok_sectok_open=no | ||
14002 | fi | ||
14003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14004 | LIBS=$ac_check_lib_save_LIBS | ||
14005 | fi | ||
14006 | echo "$as_me:14006: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14007 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14008 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14009 | cat >>confdefs.h <<EOF | ||
14010 | #define HAVE_LIBSECTOK 1 | ||
14011 | EOF | ||
14012 | |||
14013 | LIBS="-lsectok $LIBS" | ||
14014 | |||
14015 | fi | ||
14016 | |||
14017 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14018 | { { echo "$as_me:14018: error: Can't find libsectok" >&5 | ||
14019 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14020 | { (exit 1); exit 1; }; } | ||
14021 | fi | ||
14022 | cat >>confdefs.h <<\EOF | ||
14023 | #define SMARTCARD 1 | ||
14024 | EOF | ||
14025 | |||
14026 | cat >>confdefs.h <<\EOF | ||
14027 | #define USE_SECTOK 1 | ||
14028 | EOF | ||
14029 | |||
14030 | SCARD_MSG="yes, using sectok" | ||
14031 | fi | ||
14032 | |||
14033 | fi; | ||
14034 | |||
14035 | # Check whether user wants OpenSC support | ||
14036 | |||
14037 | # Check whether --with-opensc or --without-opensc was given. | ||
14038 | if test "${with_opensc+set}" = set; then | ||
14039 | withval="$with_opensc" | ||
14040 | opensc_config_prefix="$withval" | ||
14041 | else | ||
14042 | opensc_config_prefix="" | ||
14043 | fi; | ||
14044 | if test x$opensc_config_prefix != x ; then | ||
14045 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14046 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14047 | set dummy opensc-config; ac_word=$2 | ||
14048 | echo "$as_me:14048: checking for $ac_word" >&5 | ||
14049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14050 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14052 | else | ||
14053 | case $OPENSC_CONFIG in | ||
14054 | [\\/]* | ?:[\\/]*) | ||
14055 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14056 | ;; | ||
14057 | *) | ||
14058 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
14059 | ac_dummy="$PATH" | ||
14060 | for ac_dir in $ac_dummy; do | ||
14061 | IFS=$ac_save_IFS | ||
14062 | test -z "$ac_dir" && ac_dir=. | ||
14063 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
14064 | ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word" | ||
14065 | echo "$as_me:14065: found $ac_dir/$ac_word" >&5 | ||
14066 | break | ||
14067 | fi | ||
14068 | done | ||
14069 | |||
14070 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14071 | ;; | ||
14072 | esac | ||
14073 | fi | ||
14074 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14075 | |||
14076 | if test -n "$OPENSC_CONFIG"; then | ||
14077 | echo "$as_me:14077: result: $OPENSC_CONFIG" >&5 | ||
14078 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14079 | else | ||
14080 | echo "$as_me:14080: result: no" >&5 | ||
14081 | echo "${ECHO_T}no" >&6 | ||
14082 | fi | ||
14083 | |||
14084 | if test "$OPENSC_CONFIG" != "no"; then | ||
14085 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14086 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14087 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14088 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14089 | cat >>confdefs.h <<\EOF | ||
14090 | #define SMARTCARD 1 | ||
14091 | EOF | ||
14092 | |||
14093 | cat >>confdefs.h <<\EOF | ||
14094 | #define USE_OPENSC 1 | ||
14095 | EOF | ||
14096 | |||
14097 | SCARD_MSG="yes, using OpenSC" | ||
14098 | fi | ||
14099 | fi | ||
14100 | |||
14101 | # Check whether user wants DNS support | ||
14102 | DNS_MSG="no" | ||
14103 | |||
14104 | # Check whether --with-dns or --without-dns was given. | ||
14105 | if test "${with_dns+set}" = set; then | ||
14106 | withval="$with_dns" | ||
14107 | |||
14108 | if test "x$withval" != "xno" ; then | ||
14109 | DNS_MSG="yes" | ||
14110 | cat >>confdefs.h <<\EOF | ||
14111 | #define DNS 1 | ||
14112 | EOF | ||
14113 | |||
14114 | echo "$as_me:14114: checking for library containing getrrsetbyname" >&5 | ||
14115 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
14116 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14118 | else | ||
14119 | ac_func_search_save_LIBS=$LIBS | ||
14120 | ac_cv_search_getrrsetbyname=no | ||
14121 | cat >conftest.$ac_ext <<_ACEOF | ||
14122 | #line 14122 "configure" | ||
14123 | #include "confdefs.h" | ||
14124 | |||
14125 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14126 | #ifdef __cplusplus | ||
14127 | extern "C" | ||
14128 | #endif | ||
14129 | /* We use char because int might match the return type of a gcc2 | ||
14130 | builtin and then its argument prototype would still apply. */ | ||
14131 | char getrrsetbyname (); | ||
14132 | int | ||
14133 | main () | ||
14134 | { | ||
14135 | getrrsetbyname (); | ||
14136 | ; | ||
14137 | return 0; | ||
14138 | } | ||
14139 | _ACEOF | ||
14140 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14141 | if { (eval echo "$as_me:14141: \"$ac_link\"") >&5 | ||
14142 | (eval $ac_link) 2>&5 | ||
14143 | ac_status=$? | ||
14144 | echo "$as_me:14144: \$? = $ac_status" >&5 | ||
14145 | (exit $ac_status); } && | ||
14146 | { ac_try='test -s conftest$ac_exeext' | ||
14147 | { (eval echo "$as_me:14147: \"$ac_try\"") >&5 | ||
14148 | (eval $ac_try) 2>&5 | ||
14149 | ac_status=$? | ||
14150 | echo "$as_me:14150: \$? = $ac_status" >&5 | ||
14151 | (exit $ac_status); }; }; then | ||
14152 | ac_cv_search_getrrsetbyname="none required" | ||
14153 | else | ||
14154 | echo "$as_me: failed program was:" >&5 | ||
14155 | cat conftest.$ac_ext >&5 | ||
14156 | fi | ||
14157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14158 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
14159 | for ac_lib in resolv; do | ||
14160 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14161 | cat >conftest.$ac_ext <<_ACEOF | ||
14162 | #line 14162 "configure" | ||
14163 | #include "confdefs.h" | ||
14164 | |||
14165 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14166 | #ifdef __cplusplus | ||
14167 | extern "C" | ||
14168 | #endif | ||
14169 | /* We use char because int might match the return type of a gcc2 | ||
14170 | builtin and then its argument prototype would still apply. */ | ||
14171 | char getrrsetbyname (); | ||
14172 | int | ||
14173 | main () | ||
14174 | { | ||
14175 | getrrsetbyname (); | ||
14176 | ; | ||
14177 | return 0; | ||
14178 | } | ||
14179 | _ACEOF | ||
14180 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14181 | if { (eval echo "$as_me:14181: \"$ac_link\"") >&5 | ||
14182 | (eval $ac_link) 2>&5 | ||
14183 | ac_status=$? | ||
14184 | echo "$as_me:14184: \$? = $ac_status" >&5 | ||
14185 | (exit $ac_status); } && | ||
14186 | { ac_try='test -s conftest$ac_exeext' | ||
14187 | { (eval echo "$as_me:14187: \"$ac_try\"") >&5 | ||
14188 | (eval $ac_try) 2>&5 | ||
14189 | ac_status=$? | ||
14190 | echo "$as_me:14190: \$? = $ac_status" >&5 | ||
14191 | (exit $ac_status); }; }; then | ||
14192 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
14193 | break | ||
14194 | else | ||
14195 | echo "$as_me: failed program was:" >&5 | ||
14196 | cat conftest.$ac_ext >&5 | ||
14197 | fi | ||
14198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14199 | done | ||
14200 | fi | ||
14201 | LIBS=$ac_func_search_save_LIBS | ||
14202 | fi | ||
14203 | echo "$as_me:14203: result: $ac_cv_search_getrrsetbyname" >&5 | ||
14204 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
14205 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
14206 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
14207 | cat >>confdefs.h <<\EOF | ||
14208 | #define HAVE_GETRRSETBYNAME 1 | ||
14209 | EOF | ||
14210 | |||
14211 | else | ||
14212 | |||
14213 | # Needed by our getrrsetbyname() | ||
14214 | echo "$as_me:14214: checking for library containing res_query" >&5 | ||
14215 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
14216 | if test "${ac_cv_search_res_query+set}" = set; then | ||
14217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14218 | else | ||
14219 | ac_func_search_save_LIBS=$LIBS | ||
14220 | ac_cv_search_res_query=no | ||
14221 | cat >conftest.$ac_ext <<_ACEOF | ||
14222 | #line 14222 "configure" | ||
14223 | #include "confdefs.h" | ||
14224 | |||
14225 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14226 | #ifdef __cplusplus | ||
14227 | extern "C" | ||
14228 | #endif | ||
14229 | /* We use char because int might match the return type of a gcc2 | ||
14230 | builtin and then its argument prototype would still apply. */ | ||
14231 | char res_query (); | ||
14232 | int | ||
14233 | main () | ||
14234 | { | ||
14235 | res_query (); | ||
14236 | ; | ||
14237 | return 0; | ||
14238 | } | ||
14239 | _ACEOF | ||
14240 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14241 | if { (eval echo "$as_me:14241: \"$ac_link\"") >&5 | ||
14242 | (eval $ac_link) 2>&5 | ||
14243 | ac_status=$? | ||
14244 | echo "$as_me:14244: \$? = $ac_status" >&5 | ||
14245 | (exit $ac_status); } && | ||
14246 | { ac_try='test -s conftest$ac_exeext' | ||
14247 | { (eval echo "$as_me:14247: \"$ac_try\"") >&5 | ||
14248 | (eval $ac_try) 2>&5 | ||
14249 | ac_status=$? | ||
14250 | echo "$as_me:14250: \$? = $ac_status" >&5 | ||
14251 | (exit $ac_status); }; }; then | ||
14252 | ac_cv_search_res_query="none required" | ||
14253 | else | ||
14254 | echo "$as_me: failed program was:" >&5 | ||
14255 | cat conftest.$ac_ext >&5 | ||
14256 | fi | ||
14257 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14258 | if test "$ac_cv_search_res_query" = no; then | ||
14259 | for ac_lib in resolv; do | ||
14260 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14261 | cat >conftest.$ac_ext <<_ACEOF | ||
14262 | #line 14262 "configure" | ||
14263 | #include "confdefs.h" | ||
14264 | |||
14265 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14266 | #ifdef __cplusplus | ||
14267 | extern "C" | ||
14268 | #endif | ||
14269 | /* We use char because int might match the return type of a gcc2 | ||
14270 | builtin and then its argument prototype would still apply. */ | ||
14271 | char res_query (); | ||
14272 | int | ||
14273 | main () | ||
14274 | { | ||
14275 | res_query (); | ||
14276 | ; | ||
14277 | return 0; | ||
14278 | } | ||
14279 | _ACEOF | ||
14280 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14281 | if { (eval echo "$as_me:14281: \"$ac_link\"") >&5 | ||
14282 | (eval $ac_link) 2>&5 | ||
14283 | ac_status=$? | ||
14284 | echo "$as_me:14284: \$? = $ac_status" >&5 | ||
14285 | (exit $ac_status); } && | ||
14286 | { ac_try='test -s conftest$ac_exeext' | ||
14287 | { (eval echo "$as_me:14287: \"$ac_try\"") >&5 | ||
14288 | (eval $ac_try) 2>&5 | ||
14289 | ac_status=$? | ||
14290 | echo "$as_me:14290: \$? = $ac_status" >&5 | ||
14291 | (exit $ac_status); }; }; then | ||
14292 | ac_cv_search_res_query="-l$ac_lib" | ||
14293 | break | ||
14294 | else | ||
14295 | echo "$as_me: failed program was:" >&5 | ||
14296 | cat conftest.$ac_ext >&5 | ||
14297 | fi | ||
14298 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14299 | done | ||
14300 | fi | ||
14301 | LIBS=$ac_func_search_save_LIBS | ||
14302 | fi | ||
14303 | echo "$as_me:14303: result: $ac_cv_search_res_query" >&5 | ||
14304 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
14305 | if test "$ac_cv_search_res_query" != no; then | ||
14306 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
14307 | |||
14308 | fi | ||
14309 | |||
14310 | echo "$as_me:14310: checking for library containing dn_expand" >&5 | ||
14311 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
14312 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
14313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14314 | else | ||
14315 | ac_func_search_save_LIBS=$LIBS | ||
14316 | ac_cv_search_dn_expand=no | ||
14317 | cat >conftest.$ac_ext <<_ACEOF | ||
14318 | #line 14318 "configure" | ||
14319 | #include "confdefs.h" | ||
14320 | |||
14321 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14322 | #ifdef __cplusplus | ||
14323 | extern "C" | ||
14324 | #endif | ||
14325 | /* We use char because int might match the return type of a gcc2 | ||
14326 | builtin and then its argument prototype would still apply. */ | ||
14327 | char dn_expand (); | ||
14328 | int | ||
14329 | main () | ||
14330 | { | ||
14331 | dn_expand (); | ||
14332 | ; | ||
14333 | return 0; | ||
14334 | } | ||
14335 | _ACEOF | ||
14336 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14337 | if { (eval echo "$as_me:14337: \"$ac_link\"") >&5 | ||
14338 | (eval $ac_link) 2>&5 | ||
14339 | ac_status=$? | ||
14340 | echo "$as_me:14340: \$? = $ac_status" >&5 | ||
14341 | (exit $ac_status); } && | ||
14342 | { ac_try='test -s conftest$ac_exeext' | ||
14343 | { (eval echo "$as_me:14343: \"$ac_try\"") >&5 | ||
14344 | (eval $ac_try) 2>&5 | ||
14345 | ac_status=$? | ||
14346 | echo "$as_me:14346: \$? = $ac_status" >&5 | ||
14347 | (exit $ac_status); }; }; then | ||
14348 | ac_cv_search_dn_expand="none required" | ||
14349 | else | ||
14350 | echo "$as_me: failed program was:" >&5 | ||
14351 | cat conftest.$ac_ext >&5 | ||
14352 | fi | ||
14353 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14354 | if test "$ac_cv_search_dn_expand" = no; then | ||
14355 | for ac_lib in resolv; do | ||
14356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14357 | cat >conftest.$ac_ext <<_ACEOF | ||
14358 | #line 14358 "configure" | ||
14359 | #include "confdefs.h" | ||
14360 | |||
14361 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14362 | #ifdef __cplusplus | ||
14363 | extern "C" | ||
14364 | #endif | ||
14365 | /* We use char because int might match the return type of a gcc2 | ||
14366 | builtin and then its argument prototype would still apply. */ | ||
14367 | char dn_expand (); | ||
14368 | int | ||
14369 | main () | ||
14370 | { | ||
14371 | dn_expand (); | ||
14372 | ; | ||
14373 | return 0; | ||
14374 | } | ||
14375 | _ACEOF | ||
14376 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14377 | if { (eval echo "$as_me:14377: \"$ac_link\"") >&5 | ||
14378 | (eval $ac_link) 2>&5 | ||
14379 | ac_status=$? | ||
14380 | echo "$as_me:14380: \$? = $ac_status" >&5 | ||
14381 | (exit $ac_status); } && | ||
14382 | { ac_try='test -s conftest$ac_exeext' | ||
14383 | { (eval echo "$as_me:14383: \"$ac_try\"") >&5 | ||
14384 | (eval $ac_try) 2>&5 | ||
14385 | ac_status=$? | ||
14386 | echo "$as_me:14386: \$? = $ac_status" >&5 | ||
14387 | (exit $ac_status); }; }; then | ||
14388 | ac_cv_search_dn_expand="-l$ac_lib" | ||
14389 | break | ||
14390 | else | ||
14391 | echo "$as_me: failed program was:" >&5 | ||
14392 | cat conftest.$ac_ext >&5 | ||
14393 | fi | ||
14394 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14395 | done | ||
14396 | fi | ||
14397 | LIBS=$ac_func_search_save_LIBS | ||
14398 | fi | ||
14399 | echo "$as_me:14399: result: $ac_cv_search_dn_expand" >&5 | ||
14400 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
14401 | if test "$ac_cv_search_dn_expand" != no; then | ||
14402 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
14403 | |||
14404 | fi | ||
14405 | |||
14406 | for ac_func in _getshort _getlong | ||
14407 | do | ||
14408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14409 | echo "$as_me:14409: checking for $ac_func" >&5 | ||
14410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
14411 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14413 | else | ||
14414 | cat >conftest.$ac_ext <<_ACEOF | ||
14415 | #line 14415 "configure" | ||
14416 | #include "confdefs.h" | ||
14417 | /* System header to define __stub macros and hopefully few prototypes, | ||
14418 | which can conflict with char $ac_func (); below. */ | ||
14419 | #include <assert.h> | ||
14420 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14421 | #ifdef __cplusplus | ||
14422 | extern "C" | ||
14423 | #endif | ||
14424 | /* We use char because int might match the return type of a gcc2 | ||
14425 | builtin and then its argument prototype would still apply. */ | ||
14426 | char $ac_func (); | ||
14427 | char (*f) (); | ||
14428 | |||
14429 | int | ||
14430 | main () | ||
14431 | { | ||
14432 | /* The GNU C library defines this for functions which it implements | ||
14433 | to always fail with ENOSYS. Some functions are actually named | ||
14434 | something starting with __ and the normal name is an alias. */ | ||
14435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
14436 | choke me | ||
14437 | #else | ||
14438 | f = $ac_func; | ||
14439 | #endif | ||
14440 | |||
14441 | ; | ||
14442 | return 0; | ||
14443 | } | ||
14444 | _ACEOF | ||
14445 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14446 | if { (eval echo "$as_me:14446: \"$ac_link\"") >&5 | ||
14447 | (eval $ac_link) 2>&5 | ||
14448 | ac_status=$? | ||
14449 | echo "$as_me:14449: \$? = $ac_status" >&5 | ||
14450 | (exit $ac_status); } && | ||
14451 | { ac_try='test -s conftest$ac_exeext' | ||
14452 | { (eval echo "$as_me:14452: \"$ac_try\"") >&5 | ||
14453 | (eval $ac_try) 2>&5 | ||
14454 | ac_status=$? | ||
14455 | echo "$as_me:14455: \$? = $ac_status" >&5 | ||
14456 | (exit $ac_status); }; }; then | ||
14457 | eval "$as_ac_var=yes" | ||
14458 | else | ||
14459 | echo "$as_me: failed program was:" >&5 | ||
14460 | cat conftest.$ac_ext >&5 | ||
14461 | eval "$as_ac_var=no" | ||
14462 | fi | ||
14463 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14464 | fi | ||
14465 | echo "$as_me:14465: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
14466 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
14467 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14468 | cat >>confdefs.h <<EOF | ||
14469 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14470 | EOF | ||
14471 | |||
14472 | fi | ||
14473 | done | ||
14474 | |||
14475 | echo "$as_me:14475: checking for HEADER.ad" >&5 | ||
14476 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
14477 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
14478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14479 | else | ||
14480 | cat >conftest.$ac_ext <<_ACEOF | ||
14481 | #line 14481 "configure" | ||
14482 | #include "confdefs.h" | ||
14483 | #include <arpa/nameser.h> | ||
14484 | |||
14485 | int | ||
14486 | main () | ||
14487 | { | ||
14488 | static HEADER ac_aggr; | ||
14489 | if (ac_aggr.ad) | ||
14490 | return 0; | ||
14491 | ; | ||
14492 | return 0; | ||
14493 | } | ||
14494 | _ACEOF | ||
14495 | rm -f conftest.$ac_objext | ||
14496 | if { (eval echo "$as_me:14496: \"$ac_compile\"") >&5 | ||
14497 | (eval $ac_compile) 2>&5 | ||
14498 | ac_status=$? | ||
14499 | echo "$as_me:14499: \$? = $ac_status" >&5 | ||
14500 | (exit $ac_status); } && | ||
14501 | { ac_try='test -s conftest.$ac_objext' | ||
14502 | { (eval echo "$as_me:14502: \"$ac_try\"") >&5 | ||
14503 | (eval $ac_try) 2>&5 | ||
14504 | ac_status=$? | ||
14505 | echo "$as_me:14505: \$? = $ac_status" >&5 | ||
14506 | (exit $ac_status); }; }; then | ||
14507 | ac_cv_member_HEADER_ad=yes | ||
14508 | else | ||
14509 | echo "$as_me: failed program was:" >&5 | ||
14510 | cat conftest.$ac_ext >&5 | ||
14511 | ac_cv_member_HEADER_ad=no | ||
14512 | fi | ||
14513 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14514 | fi | ||
14515 | echo "$as_me:14515: result: $ac_cv_member_HEADER_ad" >&5 | ||
14516 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
14517 | if test $ac_cv_member_HEADER_ad = yes; then | ||
14518 | cat >>confdefs.h <<\EOF | ||
14519 | #define HAVE_HEADER_AD 1 | ||
14520 | EOF | ||
14521 | |||
14522 | fi | ||
14523 | |||
14524 | fi | ||
14525 | |||
14526 | fi | ||
14527 | |||
14528 | fi; | ||
14529 | |||
14530 | # Check whether user wants Kerberos 5 support | ||
14531 | KRB5_MSG="no" | ||
14532 | |||
14533 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
14534 | if test "${with_kerberos5+set}" = set; then | ||
14535 | withval="$with_kerberos5" | ||
14536 | |||
14537 | if test "x$withval" != "xno" ; then | ||
14538 | if test "x$withval" = "xyes" ; then | ||
14539 | KRB5ROOT="/usr/local" | ||
14540 | else | ||
14541 | KRB5ROOT=${withval} | ||
14542 | fi | ||
14543 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
14544 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
14545 | cat >>confdefs.h <<\EOF | ||
14546 | #define KRB5 1 | ||
14547 | EOF | ||
14548 | |||
14549 | KRB5_MSG="yes" | ||
14550 | echo "$as_me:14550: checking whether we are using Heimdal" >&5 | ||
14551 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
14552 | cat >conftest.$ac_ext <<_ACEOF | ||
14553 | #line 14553 "configure" | ||
14554 | #include "confdefs.h" | ||
14555 | #include <krb5.h> | ||
14556 | int | ||
14557 | main () | ||
14558 | { | ||
14559 | char *tmp = heimdal_version; | ||
14560 | ; | ||
14561 | return 0; | ||
14562 | } | ||
14563 | _ACEOF | ||
14564 | rm -f conftest.$ac_objext | ||
14565 | if { (eval echo "$as_me:14565: \"$ac_compile\"") >&5 | ||
14566 | (eval $ac_compile) 2>&5 | ||
14567 | ac_status=$? | ||
14568 | echo "$as_me:14568: \$? = $ac_status" >&5 | ||
14569 | (exit $ac_status); } && | ||
14570 | { ac_try='test -s conftest.$ac_objext' | ||
14571 | { (eval echo "$as_me:14571: \"$ac_try\"") >&5 | ||
14572 | (eval $ac_try) 2>&5 | ||
14573 | ac_status=$? | ||
14574 | echo "$as_me:14574: \$? = $ac_status" >&5 | ||
14575 | (exit $ac_status); }; }; then | ||
14576 | echo "$as_me:14576: result: yes" >&5 | ||
14577 | echo "${ECHO_T}yes" >&6 | ||
14578 | cat >>confdefs.h <<\EOF | ||
14579 | #define HEIMDAL 1 | ||
14580 | EOF | ||
14581 | |||
14582 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
14583 | |||
14584 | else | ||
14585 | echo "$as_me: failed program was:" >&5 | ||
14586 | cat conftest.$ac_ext >&5 | ||
14587 | echo "$as_me:14587: result: no" >&5 | ||
14588 | echo "${ECHO_T}no" >&6 | ||
14589 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
14590 | |||
14591 | fi | ||
14592 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14593 | if test ! -z "$need_dash_r" ; then | ||
14594 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
14595 | fi | ||
14596 | if test ! -z "$blibpath" ; then | ||
14597 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
14598 | fi | ||
14599 | echo "$as_me:14599: checking for library containing dn_expand" >&5 | ||
14600 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
14601 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
14602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14603 | else | ||
14604 | ac_func_search_save_LIBS=$LIBS | ||
14605 | ac_cv_search_dn_expand=no | ||
14606 | cat >conftest.$ac_ext <<_ACEOF | ||
14607 | #line 14607 "configure" | ||
14608 | #include "confdefs.h" | ||
14609 | |||
14610 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14611 | #ifdef __cplusplus | ||
14612 | extern "C" | ||
14613 | #endif | ||
14614 | /* We use char because int might match the return type of a gcc2 | ||
14615 | builtin and then its argument prototype would still apply. */ | ||
14616 | char dn_expand (); | ||
14617 | int | ||
14618 | main () | ||
14619 | { | ||
14620 | dn_expand (); | ||
14621 | ; | ||
14622 | return 0; | ||
14623 | } | ||
14624 | _ACEOF | ||
14625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14626 | if { (eval echo "$as_me:14626: \"$ac_link\"") >&5 | ||
14627 | (eval $ac_link) 2>&5 | ||
14628 | ac_status=$? | ||
14629 | echo "$as_me:14629: \$? = $ac_status" >&5 | ||
14630 | (exit $ac_status); } && | ||
14631 | { ac_try='test -s conftest$ac_exeext' | ||
14632 | { (eval echo "$as_me:14632: \"$ac_try\"") >&5 | ||
14633 | (eval $ac_try) 2>&5 | ||
14634 | ac_status=$? | ||
14635 | echo "$as_me:14635: \$? = $ac_status" >&5 | ||
14636 | (exit $ac_status); }; }; then | ||
14637 | ac_cv_search_dn_expand="none required" | ||
14638 | else | ||
14639 | echo "$as_me: failed program was:" >&5 | ||
14640 | cat conftest.$ac_ext >&5 | ||
14641 | fi | ||
14642 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14643 | if test "$ac_cv_search_dn_expand" = no; then | ||
14644 | for ac_lib in resolv; do | ||
14645 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14646 | cat >conftest.$ac_ext <<_ACEOF | ||
14647 | #line 14647 "configure" | ||
14648 | #include "confdefs.h" | ||
14649 | |||
14650 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14651 | #ifdef __cplusplus | ||
14652 | extern "C" | ||
14653 | #endif | ||
14654 | /* We use char because int might match the return type of a gcc2 | ||
14655 | builtin and then its argument prototype would still apply. */ | ||
14656 | char dn_expand (); | ||
14657 | int | ||
14658 | main () | ||
14659 | { | ||
14660 | dn_expand (); | ||
14661 | ; | ||
14662 | return 0; | ||
14663 | } | ||
14664 | _ACEOF | ||
14665 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14666 | if { (eval echo "$as_me:14666: \"$ac_link\"") >&5 | ||
14667 | (eval $ac_link) 2>&5 | ||
14668 | ac_status=$? | ||
14669 | echo "$as_me:14669: \$? = $ac_status" >&5 | ||
14670 | (exit $ac_status); } && | ||
14671 | { ac_try='test -s conftest$ac_exeext' | ||
14672 | { (eval echo "$as_me:14672: \"$ac_try\"") >&5 | ||
14673 | (eval $ac_try) 2>&5 | ||
14674 | ac_status=$? | ||
14675 | echo "$as_me:14675: \$? = $ac_status" >&5 | ||
14676 | (exit $ac_status); }; }; then | ||
14677 | ac_cv_search_dn_expand="-l$ac_lib" | ||
14678 | break | ||
14679 | else | ||
14680 | echo "$as_me: failed program was:" >&5 | ||
14681 | cat conftest.$ac_ext >&5 | ||
14682 | fi | ||
14683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14684 | done | ||
14685 | fi | ||
14686 | LIBS=$ac_func_search_save_LIBS | ||
14687 | fi | ||
14688 | echo "$as_me:14688: result: $ac_cv_search_dn_expand" >&5 | ||
14689 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
14690 | if test "$ac_cv_search_dn_expand" != no; then | ||
14691 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
14692 | |||
14693 | fi | ||
14694 | |||
14695 | echo "$as_me:14695: checking for gss_init_sec_context in -lgssapi" >&5 | ||
14696 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
14697 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
14698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14699 | else | ||
14700 | ac_check_lib_save_LIBS=$LIBS | ||
14701 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
14702 | cat >conftest.$ac_ext <<_ACEOF | ||
14703 | #line 14703 "configure" | ||
14704 | #include "confdefs.h" | ||
14705 | |||
14706 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14707 | #ifdef __cplusplus | ||
14708 | extern "C" | ||
14709 | #endif | ||
14710 | /* We use char because int might match the return type of a gcc2 | ||
14711 | builtin and then its argument prototype would still apply. */ | ||
14712 | char gss_init_sec_context (); | ||
14713 | int | ||
14714 | main () | ||
14715 | { | ||
14716 | gss_init_sec_context (); | ||
14717 | ; | ||
14718 | return 0; | ||
14719 | } | ||
14720 | _ACEOF | ||
14721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14722 | if { (eval echo "$as_me:14722: \"$ac_link\"") >&5 | ||
14723 | (eval $ac_link) 2>&5 | ||
14724 | ac_status=$? | ||
14725 | echo "$as_me:14725: \$? = $ac_status" >&5 | ||
14726 | (exit $ac_status); } && | ||
14727 | { ac_try='test -s conftest$ac_exeext' | ||
14728 | { (eval echo "$as_me:14728: \"$ac_try\"") >&5 | ||
14729 | (eval $ac_try) 2>&5 | ||
14730 | ac_status=$? | ||
14731 | echo "$as_me:14731: \$? = $ac_status" >&5 | ||
14732 | (exit $ac_status); }; }; then | ||
14733 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
14734 | else | ||
14735 | echo "$as_me: failed program was:" >&5 | ||
14736 | cat conftest.$ac_ext >&5 | ||
14737 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
14738 | fi | ||
14739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14740 | LIBS=$ac_check_lib_save_LIBS | ||
14741 | fi | ||
14742 | echo "$as_me:14742: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
14743 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
14744 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
14745 | cat >>confdefs.h <<\EOF | ||
14746 | #define GSSAPI 1 | ||
14747 | EOF | ||
14748 | |||
14749 | K5LIBS="-lgssapi $K5LIBS" | ||
14750 | else | ||
14751 | echo "$as_me:14751: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
14752 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
14753 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14755 | else | ||
14756 | ac_check_lib_save_LIBS=$LIBS | ||
14757 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
14758 | cat >conftest.$ac_ext <<_ACEOF | ||
14759 | #line 14759 "configure" | ||
14760 | #include "confdefs.h" | ||
14761 | |||
14762 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14763 | #ifdef __cplusplus | ||
14764 | extern "C" | ||
14765 | #endif | ||
14766 | /* We use char because int might match the return type of a gcc2 | ||
14767 | builtin and then its argument prototype would still apply. */ | ||
14768 | char gss_init_sec_context (); | ||
14769 | int | ||
14770 | main () | ||
14771 | { | ||
14772 | gss_init_sec_context (); | ||
14773 | ; | ||
14774 | return 0; | ||
14775 | } | ||
14776 | _ACEOF | ||
14777 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14778 | if { (eval echo "$as_me:14778: \"$ac_link\"") >&5 | ||
14779 | (eval $ac_link) 2>&5 | ||
14780 | ac_status=$? | ||
14781 | echo "$as_me:14781: \$? = $ac_status" >&5 | ||
14782 | (exit $ac_status); } && | ||
14783 | { ac_try='test -s conftest$ac_exeext' | ||
14784 | { (eval echo "$as_me:14784: \"$ac_try\"") >&5 | ||
14785 | (eval $ac_try) 2>&5 | ||
14786 | ac_status=$? | ||
14787 | echo "$as_me:14787: \$? = $ac_status" >&5 | ||
14788 | (exit $ac_status); }; }; then | ||
14789 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
14790 | else | ||
14791 | echo "$as_me: failed program was:" >&5 | ||
14792 | cat conftest.$ac_ext >&5 | ||
14793 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
14794 | fi | ||
14795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14796 | LIBS=$ac_check_lib_save_LIBS | ||
14797 | fi | ||
14798 | echo "$as_me:14798: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
14799 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
14800 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
14801 | cat >>confdefs.h <<\EOF | ||
14802 | #define GSSAPI 1 | ||
14803 | EOF | ||
14804 | |||
14805 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
14806 | else | ||
14807 | { echo "$as_me:14807: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
14808 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
14809 | fi | ||
14810 | |||
14811 | fi | ||
14812 | |||
14813 | echo "$as_me:14813: checking for gssapi.h" >&5 | ||
14814 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
14815 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
14816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14817 | else | ||
14818 | cat >conftest.$ac_ext <<_ACEOF | ||
14819 | #line 14819 "configure" | ||
14820 | #include "confdefs.h" | ||
14821 | #include <gssapi.h> | ||
14822 | _ACEOF | ||
14823 | if { (eval echo "$as_me:14823: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14825 | ac_status=$? | ||
14826 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14827 | rm -f conftest.er1 | ||
14828 | cat conftest.err >&5 | ||
14829 | echo "$as_me:14829: \$? = $ac_status" >&5 | ||
14830 | (exit $ac_status); } >/dev/null; then | ||
14831 | if test -s conftest.err; then | ||
14832 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14833 | else | ||
14834 | ac_cpp_err= | ||
14835 | fi | ||
14836 | else | ||
14837 | ac_cpp_err=yes | ||
14838 | fi | ||
14839 | if test -z "$ac_cpp_err"; then | ||
14840 | ac_cv_header_gssapi_h=yes | ||
14841 | else | ||
14842 | echo "$as_me: failed program was:" >&5 | ||
14843 | cat conftest.$ac_ext >&5 | ||
14844 | ac_cv_header_gssapi_h=no | ||
14845 | fi | ||
14846 | rm -f conftest.err conftest.$ac_ext | ||
14847 | fi | ||
14848 | echo "$as_me:14848: result: $ac_cv_header_gssapi_h" >&5 | ||
14849 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
14850 | if test $ac_cv_header_gssapi_h = yes; then | ||
14851 | : | ||
14852 | else | ||
14853 | unset ac_cv_header_gssapi_h | ||
14854 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
14855 | |||
14856 | for ac_header in gssapi.h | ||
14857 | do | ||
14858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14859 | echo "$as_me:14859: checking for $ac_header" >&5 | ||
14860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14863 | else | ||
14864 | cat >conftest.$ac_ext <<_ACEOF | ||
14865 | #line 14865 "configure" | ||
14866 | #include "confdefs.h" | ||
14867 | #include <$ac_header> | ||
14868 | _ACEOF | ||
14869 | if { (eval echo "$as_me:14869: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14871 | ac_status=$? | ||
14872 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14873 | rm -f conftest.er1 | ||
14874 | cat conftest.err >&5 | ||
14875 | echo "$as_me:14875: \$? = $ac_status" >&5 | ||
14876 | (exit $ac_status); } >/dev/null; then | ||
14877 | if test -s conftest.err; then | ||
14878 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14879 | else | ||
14880 | ac_cpp_err= | ||
14881 | fi | ||
14882 | else | ||
14883 | ac_cpp_err=yes | ||
14884 | fi | ||
14885 | if test -z "$ac_cpp_err"; then | ||
14886 | eval "$as_ac_Header=yes" | ||
14887 | else | ||
14888 | echo "$as_me: failed program was:" >&5 | ||
14889 | cat conftest.$ac_ext >&5 | ||
14890 | eval "$as_ac_Header=no" | ||
14891 | fi | ||
14892 | rm -f conftest.err conftest.$ac_ext | ||
14893 | fi | ||
14894 | echo "$as_me:14894: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14897 | cat >>confdefs.h <<EOF | ||
14898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14899 | EOF | ||
14900 | |||
14901 | else | ||
14902 | { echo "$as_me:14902: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
14903 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
14904 | |||
14905 | fi | ||
14906 | done | ||
14907 | |||
14908 | fi | ||
14909 | |||
14910 | oldCPP="$CPPFLAGS" | ||
14911 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
14912 | echo "$as_me:14912: checking for gssapi_krb5.h" >&5 | ||
14913 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
14914 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
14915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14916 | else | ||
14917 | cat >conftest.$ac_ext <<_ACEOF | ||
14918 | #line 14918 "configure" | ||
14919 | #include "confdefs.h" | ||
14920 | #include <gssapi_krb5.h> | ||
14921 | _ACEOF | ||
14922 | if { (eval echo "$as_me:14922: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14923 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14924 | ac_status=$? | ||
14925 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14926 | rm -f conftest.er1 | ||
14927 | cat conftest.err >&5 | ||
14928 | echo "$as_me:14928: \$? = $ac_status" >&5 | ||
14929 | (exit $ac_status); } >/dev/null; then | ||
14930 | if test -s conftest.err; then | ||
14931 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14932 | else | ||
14933 | ac_cpp_err= | ||
14934 | fi | ||
14935 | else | ||
14936 | ac_cpp_err=yes | ||
14937 | fi | ||
14938 | if test -z "$ac_cpp_err"; then | ||
14939 | ac_cv_header_gssapi_krb5_h=yes | ||
14940 | else | ||
14941 | echo "$as_me: failed program was:" >&5 | ||
14942 | cat conftest.$ac_ext >&5 | ||
14943 | ac_cv_header_gssapi_krb5_h=no | ||
14944 | fi | ||
14945 | rm -f conftest.err conftest.$ac_ext | ||
14946 | fi | ||
14947 | echo "$as_me:14947: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
14948 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
14949 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
14950 | : | ||
14951 | else | ||
14952 | CPPFLAGS="$oldCPP" | ||
14953 | fi | ||
14954 | |||
14955 | KRB5=yes | ||
14956 | fi | ||
14957 | |||
14958 | fi; | ||
14959 | LIBS="$LIBS $K5LIBS" | ||
14960 | |||
14961 | # Looking for programs, paths and files | ||
14962 | |||
14963 | PRIVSEP_PATH=/var/empty | ||
14964 | |||
14965 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
14966 | if test "${with_privsep_path+set}" = set; then | ||
14967 | withval="$with_privsep_path" | ||
14968 | |||
14969 | if test "x$withval" != "$no" ; then | ||
14970 | PRIVSEP_PATH=$withval | ||
14971 | fi | ||
14972 | |||
14973 | fi; | ||
14974 | |||
14975 | # Check whether --with-xauth or --without-xauth was given. | ||
14976 | if test "${with_xauth+set}" = set; then | ||
14977 | withval="$with_xauth" | ||
14978 | |||
14979 | if test "x$withval" != "xno" ; then | ||
14980 | xauth_path=$withval | ||
14981 | fi | ||
14982 | |||
14983 | else | ||
14984 | |||
14985 | TestPath="$PATH" | ||
14986 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
14987 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
14988 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
14989 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
14990 | # Extract the first word of "xauth", so it can be a program name with args. | ||
14991 | set dummy xauth; ac_word=$2 | ||
14992 | echo "$as_me:14992: checking for $ac_word" >&5 | ||
14993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14994 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
14995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14996 | else | ||
14997 | case $xauth_path in | ||
14998 | [\\/]* | ?:[\\/]*) | ||
14999 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15000 | ;; | ||
15001 | *) | ||
15002 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
15003 | ac_dummy="$TestPath" | ||
15004 | for ac_dir in $ac_dummy; do | ||
15005 | IFS=$ac_save_IFS | ||
15006 | test -z "$ac_dir" && ac_dir=. | ||
15007 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
15008 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
15009 | echo "$as_me:15009: found $ac_dir/$ac_word" >&5 | ||
15010 | break | ||
15011 | fi | ||
15012 | done | ||
15013 | |||
15014 | ;; | ||
15015 | esac | ||
15016 | fi | ||
15017 | xauth_path=$ac_cv_path_xauth_path | ||
15018 | |||
15019 | if test -n "$xauth_path"; then | ||
15020 | echo "$as_me:15020: result: $xauth_path" >&5 | ||
15021 | echo "${ECHO_T}$xauth_path" >&6 | ||
15022 | else | ||
15023 | echo "$as_me:15023: result: no" >&5 | ||
15024 | echo "${ECHO_T}no" >&6 | ||
15025 | fi | ||
15026 | |||
15027 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
15028 | xauth_path="/usr/openwin/bin/xauth" | ||
15029 | fi | ||
15030 | |||
15031 | fi; | ||
15032 | |||
15033 | STRIP_OPT=-s | ||
15034 | # Check whether --enable-strip or --disable-strip was given. | ||
15035 | if test "${enable_strip+set}" = set; then | ||
15036 | enableval="$enable_strip" | ||
15037 | |||
15038 | if test "x$enableval" = "xno" ; then | ||
15039 | STRIP_OPT= | ||
15040 | fi | ||
15041 | |||
15042 | fi; | ||
15043 | |||
15044 | if test -z "$xauth_path" ; then | ||
15045 | XAUTH_PATH="undefined" | ||
15046 | |||
15047 | else | ||
15048 | cat >>confdefs.h <<EOF | ||
15049 | #define XAUTH_PATH "$xauth_path" | ||
15050 | EOF | ||
15051 | |||
15052 | XAUTH_PATH=$xauth_path | ||
15053 | |||
15054 | fi | ||
15055 | |||
15056 | # Check for mail directory (last resort if we cannot get it from headers) | ||
15057 | if test ! -z "$MAIL" ; then | ||
15058 | maildir=`dirname $MAIL` | ||
15059 | cat >>confdefs.h <<EOF | ||
15060 | #define MAIL_DIRECTORY "$maildir" | ||
15061 | EOF | ||
15062 | |||
15063 | fi | ||
15064 | |||
15065 | if test -z "$no_dev_ptmx" ; then | ||
15066 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
15067 | echo "$as_me:15067: checking for \"/dev/ptmx\"" >&5 | ||
15068 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
15069 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
15070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15071 | else | ||
15072 | test "$cross_compiling" = yes && | ||
15073 | { { echo "$as_me:15073: error: cannot check for file existence when cross compiling" >&5 | ||
15074 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15075 | { (exit 1); exit 1; }; } | ||
15076 | if test -r ""/dev/ptmx""; then | ||
15077 | ac_cv_file___dev_ptmx_=yes | ||
15078 | else | ||
15079 | ac_cv_file___dev_ptmx_=no | ||
15080 | fi | ||
15081 | fi | ||
15082 | echo "$as_me:15082: result: $ac_cv_file___dev_ptmx_" >&5 | ||
15083 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
15084 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
15085 | |||
15086 | cat >>confdefs.h <<EOF | ||
15087 | #define HAVE_DEV_PTMX 1 | ||
15088 | EOF | ||
15089 | |||
15090 | have_dev_ptmx=1 | ||
15091 | |||
15092 | fi | ||
15093 | |||
15094 | fi | ||
15095 | fi | ||
15096 | echo "$as_me:15096: checking for \"/dev/ptc\"" >&5 | ||
15097 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
15098 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
15099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15100 | else | ||
15101 | test "$cross_compiling" = yes && | ||
15102 | { { echo "$as_me:15102: error: cannot check for file existence when cross compiling" >&5 | ||
15103 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15104 | { (exit 1); exit 1; }; } | ||
15105 | if test -r ""/dev/ptc""; then | ||
15106 | ac_cv_file___dev_ptc_=yes | ||
15107 | else | ||
15108 | ac_cv_file___dev_ptc_=no | ||
15109 | fi | ||
15110 | fi | ||
15111 | echo "$as_me:15111: result: $ac_cv_file___dev_ptc_" >&5 | ||
15112 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
15113 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
15114 | |||
15115 | cat >>confdefs.h <<EOF | ||
15116 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
15117 | EOF | ||
15118 | |||
15119 | have_dev_ptc=1 | ||
15120 | |||
15121 | fi | ||
15122 | |||
15123 | # Options from here on. Some of these are preset by platform above | ||
15124 | |||
15125 | # Check whether --with-mantype or --without-mantype was given. | ||
15126 | if test "${with_mantype+set}" = set; then | ||
15127 | withval="$with_mantype" | ||
15128 | |||
15129 | case "$withval" in | ||
15130 | man|cat|doc) | ||
15131 | MANTYPE=$withval | ||
15132 | ;; | ||
15133 | *) | ||
15134 | { { echo "$as_me:15134: error: invalid man type: $withval" >&5 | ||
15135 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
15136 | { (exit 1); exit 1; }; } | ||
15137 | ;; | ||
15138 | esac | ||
15139 | |||
15140 | fi; | ||
15141 | if test -z "$MANTYPE"; then | ||
15142 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
15143 | for ac_prog in nroff awf | ||
15144 | do | ||
15145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
15146 | set dummy $ac_prog; ac_word=$2 | ||
15147 | echo "$as_me:15147: checking for $ac_word" >&5 | ||
15148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15149 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
15150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15151 | else | ||
15152 | case $NROFF in | ||
15153 | [\\/]* | ?:[\\/]*) | ||
15154 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
15155 | ;; | ||
15156 | *) | ||
15157 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
15158 | ac_dummy="$TestPath" | ||
15159 | for ac_dir in $ac_dummy; do | ||
15160 | IFS=$ac_save_IFS | ||
15161 | test -z "$ac_dir" && ac_dir=. | ||
15162 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
15163 | ac_cv_path_NROFF="$ac_dir/$ac_word" | ||
15164 | echo "$as_me:15164: found $ac_dir/$ac_word" >&5 | ||
15165 | break | ||
15166 | fi | ||
15167 | done | ||
15168 | |||
15169 | ;; | ||
15170 | esac | ||
15171 | fi | ||
15172 | NROFF=$ac_cv_path_NROFF | ||
15173 | |||
15174 | if test -n "$NROFF"; then | ||
15175 | echo "$as_me:15175: result: $NROFF" >&5 | ||
15176 | echo "${ECHO_T}$NROFF" >&6 | ||
15177 | else | ||
15178 | echo "$as_me:15178: result: no" >&5 | ||
15179 | echo "${ECHO_T}no" >&6 | ||
15180 | fi | ||
15181 | |||
15182 | test -n "$NROFF" && break | ||
15183 | done | ||
15184 | test -n "$NROFF" || NROFF="/bin/false" | ||
15185 | |||
15186 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15187 | MANTYPE=doc | ||
15188 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
15189 | MANTYPE=man | ||
15190 | else | ||
15191 | MANTYPE=cat | ||
15192 | fi | ||
15193 | fi | ||
15194 | |||
15195 | if test "$MANTYPE" = "doc"; then | ||
15196 | mansubdir=man; | ||
15197 | else | ||
15198 | mansubdir=$MANTYPE; | ||
15199 | fi | ||
15200 | |||
15201 | # Check whether to enable MD5 passwords | ||
15202 | MD5_MSG="no" | ||
15203 | |||
15204 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
15205 | if test "${with_md5_passwords+set}" = set; then | ||
15206 | withval="$with_md5_passwords" | ||
15207 | |||
15208 | if test "x$withval" != "xno" ; then | ||
15209 | cat >>confdefs.h <<\EOF | ||
15210 | #define HAVE_MD5_PASSWORDS 1 | ||
15211 | EOF | ||
15212 | |||
15213 | MD5_MSG="yes" | ||
15214 | fi | ||
15215 | |||
15216 | fi; | ||
15217 | |||
15218 | # Whether to disable shadow password support | ||
15219 | |||
15220 | # Check whether --with-shadow or --without-shadow was given. | ||
15221 | if test "${with_shadow+set}" = set; then | ||
15222 | withval="$with_shadow" | ||
15223 | |||
15224 | if test "x$withval" = "xno" ; then | ||
15225 | cat >>confdefs.h <<\EOF | ||
15226 | #define DISABLE_SHADOW 1 | ||
15227 | EOF | ||
15228 | |||
15229 | disable_shadow=yes | ||
15230 | fi | ||
15231 | |||
15232 | fi; | ||
15233 | |||
15234 | if test -z "$disable_shadow" ; then | ||
15235 | echo "$as_me:15235: checking if the systems has expire shadow information" >&5 | ||
15236 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
15237 | cat >conftest.$ac_ext <<_ACEOF | ||
15238 | #line 15238 "configure" | ||
15239 | #include "confdefs.h" | ||
15240 | |||
15241 | #include <sys/types.h> | ||
15242 | #include <shadow.h> | ||
15243 | struct spwd sp; | ||
15244 | |||
15245 | int | ||
15246 | main () | ||
15247 | { | ||
15248 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
15249 | ; | ||
15250 | return 0; | ||
15251 | } | ||
15252 | _ACEOF | ||
15253 | rm -f conftest.$ac_objext | ||
15254 | if { (eval echo "$as_me:15254: \"$ac_compile\"") >&5 | ||
15255 | (eval $ac_compile) 2>&5 | ||
15256 | ac_status=$? | ||
15257 | echo "$as_me:15257: \$? = $ac_status" >&5 | ||
15258 | (exit $ac_status); } && | ||
15259 | { ac_try='test -s conftest.$ac_objext' | ||
15260 | { (eval echo "$as_me:15260: \"$ac_try\"") >&5 | ||
15261 | (eval $ac_try) 2>&5 | ||
15262 | ac_status=$? | ||
15263 | echo "$as_me:15263: \$? = $ac_status" >&5 | ||
15264 | (exit $ac_status); }; }; then | ||
15265 | sp_expire_available=yes | ||
15266 | else | ||
15267 | echo "$as_me: failed program was:" >&5 | ||
15268 | cat conftest.$ac_ext >&5 | ||
15269 | |||
15270 | fi | ||
15271 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15272 | |||
15273 | if test "x$sp_expire_available" = "xyes" ; then | ||
15274 | echo "$as_me:15274: result: yes" >&5 | ||
15275 | echo "${ECHO_T}yes" >&6 | ||
15276 | cat >>confdefs.h <<\EOF | ||
15277 | #define HAS_SHADOW_EXPIRE 1 | ||
15278 | EOF | ||
15279 | |||
15280 | else | ||
15281 | echo "$as_me:15281: result: no" >&5 | ||
15282 | echo "${ECHO_T}no" >&6 | ||
15283 | fi | ||
15284 | fi | ||
15285 | |||
15286 | # Use ip address instead of hostname in $DISPLAY | ||
15287 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
15288 | DISPLAY_HACK_MSG="yes" | ||
15289 | cat >>confdefs.h <<\EOF | ||
15290 | #define IPADDR_IN_DISPLAY 1 | ||
15291 | EOF | ||
15292 | |||
15293 | else | ||
15294 | DISPLAY_HACK_MSG="no" | ||
15295 | |||
15296 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
15297 | if test "${with_ipaddr_display+set}" = set; then | ||
15298 | withval="$with_ipaddr_display" | ||
15299 | |||
15300 | if test "x$withval" != "xno" ; then | ||
15301 | cat >>confdefs.h <<\EOF | ||
15302 | #define IPADDR_IN_DISPLAY 1 | ||
15303 | EOF | ||
15304 | |||
15305 | DISPLAY_HACK_MSG="yes" | ||
15306 | fi | ||
15307 | |||
15308 | fi; | ||
15309 | fi | ||
15310 | |||
15311 | # check for /etc/default/login and use it if present. | ||
15312 | echo "$as_me:15312: checking for \"/etc/default/login\"" >&5 | ||
15313 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
15314 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15316 | else | ||
15317 | test "$cross_compiling" = yes && | ||
15318 | { { echo "$as_me:15318: error: cannot check for file existence when cross compiling" >&5 | ||
15319 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
15320 | { (exit 1); exit 1; }; } | ||
15321 | if test -r ""/etc/default/login""; then | ||
15322 | ac_cv_file___etc_default_login_=yes | ||
15323 | else | ||
15324 | ac_cv_file___etc_default_login_=no | ||
15325 | fi | ||
15326 | fi | ||
15327 | echo "$as_me:15327: result: $ac_cv_file___etc_default_login_" >&5 | ||
15328 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
15329 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
15330 | external_path_file=/etc/default/login | ||
15331 | fi | ||
15332 | |||
15333 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
15334 | cat >>confdefs.h <<\EOF | ||
15335 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
15336 | EOF | ||
15337 | |||
15338 | fi | ||
15339 | |||
15340 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
15341 | $ac_cv_header_login_cap_h = "yes" ; then | ||
15342 | external_path_file=/etc/login.conf | ||
15343 | fi | ||
15344 | |||
15345 | # Whether to mess with the default path | ||
15346 | SERVER_PATH_MSG="(default)" | ||
15347 | |||
15348 | # Check whether --with-default-path or --without-default-path was given. | ||
15349 | if test "${with_default_path+set}" = set; then | ||
15350 | withval="$with_default_path" | ||
15351 | |||
15352 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
15353 | { echo "$as_me:15353: WARNING: | ||
15354 | --with-default-path=PATH has no effect on this system. | ||
15355 | Edit /etc/login.conf instead." >&5 | ||
15356 | echo "$as_me: WARNING: | ||
15357 | --with-default-path=PATH has no effect on this system. | ||
15358 | Edit /etc/login.conf instead." >&2;} | ||
15359 | elif test "x$withval" != "xno" ; then | ||
15360 | if test ! -z "$external_path_file" ; then | ||
15361 | { echo "$as_me:15361: WARNING: | ||
15362 | --with-default-path=PATH will only be used if PATH is not defined in | ||
15363 | $external_path_file ." >&5 | ||
15364 | echo "$as_me: WARNING: | ||
15365 | --with-default-path=PATH will only be used if PATH is not defined in | ||
15366 | $external_path_file ." >&2;} | ||
15367 | fi | ||
15368 | user_path="$withval" | ||
15369 | SERVER_PATH_MSG="$withval" | ||
15370 | fi | ||
15371 | |||
15372 | else | ||
15373 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
15374 | { echo "$as_me:15374: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
15375 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
15376 | else | ||
15377 | if test ! -z "$external_path_file" ; then | ||
15378 | { echo "$as_me:15378: WARNING: | ||
15379 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
15380 | otherwise scp will not work." >&5 | ||
15381 | echo "$as_me: WARNING: | ||
15382 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
15383 | otherwise scp will not work." >&2;} | ||
15384 | fi | ||
15385 | if test "$cross_compiling" = yes; then | ||
15386 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15387 | |||
15388 | else | ||
15389 | cat >conftest.$ac_ext <<_ACEOF | ||
15390 | #line 15390 "configure" | ||
15391 | #include "confdefs.h" | ||
15392 | |||
15393 | /* find out what STDPATH is */ | ||
15394 | #include <stdio.h> | ||
15395 | #ifdef HAVE_PATHS_H | ||
15396 | # include <paths.h> | ||
15397 | #endif | ||
15398 | #ifndef _PATH_STDPATH | ||
15399 | # ifdef _PATH_USERPATH /* Irix */ | ||
15400 | # define _PATH_STDPATH _PATH_USERPATH | ||
15401 | # else | ||
15402 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
15403 | # endif | ||
15404 | #endif | ||
15405 | #include <sys/types.h> | ||
15406 | #include <sys/stat.h> | ||
15407 | #include <fcntl.h> | ||
15408 | #define DATA "conftest.stdpath" | ||
15409 | |||
15410 | main() | ||
15411 | { | ||
15412 | FILE *fd; | ||
15413 | int rc; | ||
15414 | |||
15415 | fd = fopen(DATA,"w"); | ||
15416 | if(fd == NULL) | ||
15417 | exit(1); | ||
15418 | |||
15419 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
15420 | exit(1); | ||
15421 | |||
15422 | exit(0); | ||
15423 | } | ||
15424 | |||
15425 | _ACEOF | ||
15426 | rm -f conftest$ac_exeext | ||
15427 | if { (eval echo "$as_me:15427: \"$ac_link\"") >&5 | ||
15428 | (eval $ac_link) 2>&5 | ||
15429 | ac_status=$? | ||
15430 | echo "$as_me:15430: \$? = $ac_status" >&5 | ||
15431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15432 | { (eval echo "$as_me:15432: \"$ac_try\"") >&5 | ||
15433 | (eval $ac_try) 2>&5 | ||
15434 | ac_status=$? | ||
15435 | echo "$as_me:15435: \$? = $ac_status" >&5 | ||
15436 | (exit $ac_status); }; }; then | ||
15437 | user_path=`cat conftest.stdpath` | ||
15438 | else | ||
15439 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15440 | echo "$as_me: failed program was:" >&5 | ||
15441 | cat conftest.$ac_ext >&5 | ||
15442 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
15443 | fi | ||
15444 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15445 | fi | ||
15446 | # make sure $bindir is in USER_PATH so scp will work | ||
15447 | t_bindir=`eval echo ${bindir}` | ||
15448 | case $t_bindir in | ||
15449 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
15450 | esac | ||
15451 | case $t_bindir in | ||
15452 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15453 | esac | ||
15454 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
15455 | if test $? -ne 0 ; then | ||
15456 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
15457 | if test $? -ne 0 ; then | ||
15458 | user_path=$user_path:$t_bindir | ||
15459 | echo "$as_me:15459: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
15460 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
15461 | fi | ||
15462 | fi | ||
15463 | fi | ||
15464 | |||
15465 | fi; | ||
15466 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
15467 | cat >>confdefs.h <<EOF | ||
15468 | #define USER_PATH "$user_path" | ||
15469 | EOF | ||
15470 | |||
15471 | fi | ||
15472 | |||
15473 | # Set superuser path separately to user path | ||
15474 | |||
15475 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
15476 | if test "${with_superuser_path+set}" = set; then | ||
15477 | withval="$with_superuser_path" | ||
15478 | |||
15479 | if test "x$withval" != "xno" ; then | ||
15480 | cat >>confdefs.h <<EOF | ||
15481 | #define SUPERUSER_PATH "$withval" | ||
15482 | EOF | ||
15483 | |||
15484 | superuser_path=$withval | ||
15485 | fi | ||
15486 | |||
15487 | fi; | ||
15488 | |||
15489 | echo "$as_me:15489: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
15490 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
15491 | IPV4_IN6_HACK_MSG="no" | ||
15492 | |||
15493 | # Check whether --with-4in6 or --without-4in6 was given. | ||
15494 | if test "${with_4in6+set}" = set; then | ||
15495 | withval="$with_4in6" | ||
15496 | |||
15497 | if test "x$withval" != "xno" ; then | ||
15498 | echo "$as_me:15498: result: yes" >&5 | ||
15499 | echo "${ECHO_T}yes" >&6 | ||
15500 | cat >>confdefs.h <<\EOF | ||
15501 | #define IPV4_IN_IPV6 1 | ||
15502 | EOF | ||
15503 | |||
15504 | IPV4_IN6_HACK_MSG="yes" | ||
15505 | else | ||
15506 | echo "$as_me:15506: result: no" >&5 | ||
15507 | echo "${ECHO_T}no" >&6 | ||
15508 | fi | ||
15509 | |||
15510 | else | ||
15511 | |||
15512 | if test "x$inet6_default_4in6" = "xyes"; then | ||
15513 | echo "$as_me:15513: result: yes (default)" >&5 | ||
15514 | echo "${ECHO_T}yes (default)" >&6 | ||
15515 | cat >>confdefs.h <<\EOF | ||
15516 | #define IPV4_IN_IPV6 1 | ||
15517 | EOF | ||
15518 | |||
15519 | IPV4_IN6_HACK_MSG="yes" | ||
15520 | else | ||
15521 | echo "$as_me:15521: result: no (default)" >&5 | ||
15522 | echo "${ECHO_T}no (default)" >&6 | ||
15523 | fi | ||
15524 | |||
15525 | fi; | ||
15526 | |||
15527 | # Whether to enable BSD auth support | ||
15528 | BSD_AUTH_MSG=no | ||
15529 | |||
15530 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
15531 | if test "${with_bsd_auth+set}" = set; then | ||
15532 | withval="$with_bsd_auth" | ||
15533 | |||
15534 | if test "x$withval" != "xno" ; then | ||
15535 | cat >>confdefs.h <<\EOF | ||
15536 | #define BSD_AUTH 1 | ||
15537 | EOF | ||
15538 | |||
15539 | BSD_AUTH_MSG=yes | ||
15540 | fi | ||
15541 | |||
15542 | fi; | ||
15543 | |||
15544 | # Where to place sshd.pid | ||
15545 | piddir=/var/run | ||
15546 | # make sure the directory exists | ||
15547 | if test ! -d $piddir ; then | ||
15548 | piddir=`eval echo ${sysconfdir}` | ||
15549 | case $piddir in | ||
15550 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
15551 | esac | ||
15552 | fi | ||
15553 | |||
15554 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
15555 | if test "${with_pid_dir+set}" = set; then | ||
15556 | withval="$with_pid_dir" | ||
15557 | |||
15558 | if test "x$withval" != "xno" ; then | ||
15559 | piddir=$withval | ||
15560 | if test ! -d $piddir ; then | ||
15561 | { echo "$as_me:15561: WARNING: ** no $piddir directory on this system **" >&5 | ||
15562 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
15563 | fi | ||
15564 | fi | ||
15565 | |||
15566 | fi; | ||
15567 | |||
15568 | cat >>confdefs.h <<EOF | ||
15569 | #define _PATH_SSH_PIDDIR "$piddir" | ||
15570 | EOF | ||
15571 | |||
15572 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
15573 | if test "${enable_lastlog+set}" = set; then | ||
15574 | enableval="$enable_lastlog" | ||
15575 | |||
15576 | if test "x$enableval" = "xno" ; then | ||
15577 | cat >>confdefs.h <<\EOF | ||
15578 | #define DISABLE_LASTLOG 1 | ||
15579 | EOF | ||
15580 | |||
15581 | fi | ||
15582 | |||
15583 | fi; | ||
15584 | # Check whether --enable-utmp or --disable-utmp was given. | ||
15585 | if test "${enable_utmp+set}" = set; then | ||
15586 | enableval="$enable_utmp" | ||
15587 | |||
15588 | if test "x$enableval" = "xno" ; then | ||
15589 | cat >>confdefs.h <<\EOF | ||
15590 | #define DISABLE_UTMP 1 | ||
15591 | EOF | ||
15592 | |||
15593 | fi | ||
15594 | |||
15595 | fi; | ||
15596 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
15597 | if test "${enable_utmpx+set}" = set; then | ||
15598 | enableval="$enable_utmpx" | ||
15599 | |||
15600 | if test "x$enableval" = "xno" ; then | ||
15601 | cat >>confdefs.h <<\EOF | ||
15602 | #define DISABLE_UTMPX 1 | ||
15603 | EOF | ||
15604 | |||
15605 | fi | ||
15606 | |||
15607 | fi; | ||
15608 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
15609 | if test "${enable_wtmp+set}" = set; then | ||
15610 | enableval="$enable_wtmp" | ||
15611 | |||
15612 | if test "x$enableval" = "xno" ; then | ||
15613 | cat >>confdefs.h <<\EOF | ||
15614 | #define DISABLE_WTMP 1 | ||
15615 | EOF | ||
15616 | |||
15617 | fi | ||
15618 | |||
15619 | fi; | ||
15620 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
15621 | if test "${enable_wtmpx+set}" = set; then | ||
15622 | enableval="$enable_wtmpx" | ||
15623 | |||
15624 | if test "x$enableval" = "xno" ; then | ||
15625 | cat >>confdefs.h <<\EOF | ||
15626 | #define DISABLE_WTMPX 1 | ||
15627 | EOF | ||
15628 | |||
15629 | fi | ||
15630 | |||
15631 | fi; | ||
15632 | # Check whether --enable-libutil or --disable-libutil was given. | ||
15633 | if test "${enable_libutil+set}" = set; then | ||
15634 | enableval="$enable_libutil" | ||
15635 | |||
15636 | if test "x$enableval" = "xno" ; then | ||
15637 | cat >>confdefs.h <<\EOF | ||
15638 | #define DISABLE_LOGIN 1 | ||
15639 | EOF | ||
15640 | |||
15641 | fi | ||
15642 | |||
15643 | fi; | ||
15644 | # Check whether --enable-pututline or --disable-pututline was given. | ||
15645 | if test "${enable_pututline+set}" = set; then | ||
15646 | enableval="$enable_pututline" | ||
15647 | |||
15648 | if test "x$enableval" = "xno" ; then | ||
15649 | cat >>confdefs.h <<\EOF | ||
15650 | #define DISABLE_PUTUTLINE 1 | ||
15651 | EOF | ||
15652 | |||
15653 | fi | ||
15654 | |||
15655 | fi; | ||
15656 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
15657 | if test "${enable_pututxline+set}" = set; then | ||
15658 | enableval="$enable_pututxline" | ||
15659 | |||
15660 | if test "x$enableval" = "xno" ; then | ||
15661 | cat >>confdefs.h <<\EOF | ||
15662 | #define DISABLE_PUTUTXLINE 1 | ||
15663 | EOF | ||
15664 | |||
15665 | fi | ||
15666 | |||
15667 | fi; | ||
15668 | |||
15669 | # Check whether --with-lastlog or --without-lastlog was given. | ||
15670 | if test "${with_lastlog+set}" = set; then | ||
15671 | withval="$with_lastlog" | ||
15672 | |||
15673 | if test "x$withval" = "xno" ; then | ||
15674 | cat >>confdefs.h <<\EOF | ||
15675 | #define DISABLE_LASTLOG 1 | ||
15676 | EOF | ||
15677 | |||
15678 | else | ||
15679 | conf_lastlog_location=$withval | ||
15680 | fi | ||
15681 | |||
15682 | fi; | ||
15683 | |||
15684 | echo "$as_me:15684: checking if your system defines LASTLOG_FILE" >&5 | ||
15685 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
15686 | cat >conftest.$ac_ext <<_ACEOF | ||
15687 | #line 15687 "configure" | ||
15688 | #include "confdefs.h" | ||
15689 | |||
15690 | #include <sys/types.h> | ||
15691 | #include <utmp.h> | ||
15692 | #ifdef HAVE_LASTLOG_H | ||
15693 | # include <lastlog.h> | ||
15694 | #endif | ||
15695 | #ifdef HAVE_PATHS_H | ||
15696 | # include <paths.h> | ||
15697 | #endif | ||
15698 | #ifdef HAVE_LOGIN_H | ||
15699 | # include <login.h> | ||
15700 | #endif | ||
15701 | |||
15702 | int | ||
15703 | main () | ||
15704 | { | ||
15705 | char *lastlog = LASTLOG_FILE; | ||
15706 | ; | ||
15707 | return 0; | ||
15708 | } | ||
15709 | _ACEOF | ||
15710 | rm -f conftest.$ac_objext | ||
15711 | if { (eval echo "$as_me:15711: \"$ac_compile\"") >&5 | ||
15712 | (eval $ac_compile) 2>&5 | ||
15713 | ac_status=$? | ||
15714 | echo "$as_me:15714: \$? = $ac_status" >&5 | ||
15715 | (exit $ac_status); } && | ||
15716 | { ac_try='test -s conftest.$ac_objext' | ||
15717 | { (eval echo "$as_me:15717: \"$ac_try\"") >&5 | ||
15718 | (eval $ac_try) 2>&5 | ||
15719 | ac_status=$? | ||
15720 | echo "$as_me:15720: \$? = $ac_status" >&5 | ||
15721 | (exit $ac_status); }; }; then | ||
15722 | echo "$as_me:15722: result: yes" >&5 | ||
15723 | echo "${ECHO_T}yes" >&6 | ||
15724 | else | ||
15725 | echo "$as_me: failed program was:" >&5 | ||
15726 | cat conftest.$ac_ext >&5 | ||
15727 | |||
15728 | echo "$as_me:15728: result: no" >&5 | ||
15729 | echo "${ECHO_T}no" >&6 | ||
15730 | echo "$as_me:15730: checking if your system defines _PATH_LASTLOG" >&5 | ||
15731 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
15732 | cat >conftest.$ac_ext <<_ACEOF | ||
15733 | #line 15733 "configure" | ||
15734 | #include "confdefs.h" | ||
15735 | |||
15736 | #include <sys/types.h> | ||
15737 | #include <utmp.h> | ||
15738 | #ifdef HAVE_LASTLOG_H | ||
15739 | # include <lastlog.h> | ||
15740 | #endif | ||
15741 | #ifdef HAVE_PATHS_H | ||
15742 | # include <paths.h> | ||
15743 | #endif | ||
15744 | |||
15745 | int | ||
15746 | main () | ||
15747 | { | ||
15748 | char *lastlog = _PATH_LASTLOG; | ||
15749 | ; | ||
15750 | return 0; | ||
15751 | } | ||
15752 | _ACEOF | ||
15753 | rm -f conftest.$ac_objext | ||
15754 | if { (eval echo "$as_me:15754: \"$ac_compile\"") >&5 | ||
15755 | (eval $ac_compile) 2>&5 | ||
15756 | ac_status=$? | ||
15757 | echo "$as_me:15757: \$? = $ac_status" >&5 | ||
15758 | (exit $ac_status); } && | ||
15759 | { ac_try='test -s conftest.$ac_objext' | ||
15760 | { (eval echo "$as_me:15760: \"$ac_try\"") >&5 | ||
15761 | (eval $ac_try) 2>&5 | ||
15762 | ac_status=$? | ||
15763 | echo "$as_me:15763: \$? = $ac_status" >&5 | ||
15764 | (exit $ac_status); }; }; then | ||
15765 | echo "$as_me:15765: result: yes" >&5 | ||
15766 | echo "${ECHO_T}yes" >&6 | ||
15767 | else | ||
15768 | echo "$as_me: failed program was:" >&5 | ||
15769 | cat conftest.$ac_ext >&5 | ||
15770 | |||
15771 | echo "$as_me:15771: result: no" >&5 | ||
15772 | echo "${ECHO_T}no" >&6 | ||
15773 | system_lastlog_path=no | ||
15774 | |||
15775 | fi | ||
15776 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15777 | |||
15778 | fi | ||
15779 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15780 | |||
15781 | if test -z "$conf_lastlog_location"; then | ||
15782 | if test x"$system_lastlog_path" = x"no" ; then | ||
15783 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
15784 | if (test -d "$f" || test -f "$f") ; then | ||
15785 | conf_lastlog_location=$f | ||
15786 | fi | ||
15787 | done | ||
15788 | if test -z "$conf_lastlog_location"; then | ||
15789 | { echo "$as_me:15789: WARNING: ** Cannot find lastlog **" >&5 | ||
15790 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
15791 | fi | ||
15792 | fi | ||
15793 | fi | ||
15794 | |||
15795 | if test -n "$conf_lastlog_location"; then | ||
15796 | cat >>confdefs.h <<EOF | ||
15797 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
15798 | EOF | ||
15799 | |||
15800 | fi | ||
15801 | |||
15802 | echo "$as_me:15802: checking if your system defines UTMP_FILE" >&5 | ||
15803 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
15804 | cat >conftest.$ac_ext <<_ACEOF | ||
15805 | #line 15805 "configure" | ||
15806 | #include "confdefs.h" | ||
15807 | |||
15808 | #include <sys/types.h> | ||
15809 | #include <utmp.h> | ||
15810 | #ifdef HAVE_PATHS_H | ||
15811 | # include <paths.h> | ||
15812 | #endif | ||
15813 | |||
15814 | int | ||
15815 | main () | ||
15816 | { | ||
15817 | char *utmp = UTMP_FILE; | ||
15818 | ; | ||
15819 | return 0; | ||
15820 | } | ||
15821 | _ACEOF | ||
15822 | rm -f conftest.$ac_objext | ||
15823 | if { (eval echo "$as_me:15823: \"$ac_compile\"") >&5 | ||
15824 | (eval $ac_compile) 2>&5 | ||
15825 | ac_status=$? | ||
15826 | echo "$as_me:15826: \$? = $ac_status" >&5 | ||
15827 | (exit $ac_status); } && | ||
15828 | { ac_try='test -s conftest.$ac_objext' | ||
15829 | { (eval echo "$as_me:15829: \"$ac_try\"") >&5 | ||
15830 | (eval $ac_try) 2>&5 | ||
15831 | ac_status=$? | ||
15832 | echo "$as_me:15832: \$? = $ac_status" >&5 | ||
15833 | (exit $ac_status); }; }; then | ||
15834 | echo "$as_me:15834: result: yes" >&5 | ||
15835 | echo "${ECHO_T}yes" >&6 | ||
15836 | else | ||
15837 | echo "$as_me: failed program was:" >&5 | ||
15838 | cat conftest.$ac_ext >&5 | ||
15839 | echo "$as_me:15839: result: no" >&5 | ||
15840 | echo "${ECHO_T}no" >&6 | ||
15841 | system_utmp_path=no | ||
15842 | |||
15843 | fi | ||
15844 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15845 | if test -z "$conf_utmp_location"; then | ||
15846 | if test x"$system_utmp_path" = x"no" ; then | ||
15847 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
15848 | if test -f $f ; then | ||
15849 | conf_utmp_location=$f | ||
15850 | fi | ||
15851 | done | ||
15852 | if test -z "$conf_utmp_location"; then | ||
15853 | cat >>confdefs.h <<\EOF | ||
15854 | #define DISABLE_UTMP 1 | ||
15855 | EOF | ||
15856 | |||
15857 | fi | ||
15858 | fi | ||
15859 | fi | ||
15860 | if test -n "$conf_utmp_location"; then | ||
15861 | cat >>confdefs.h <<EOF | ||
15862 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
15863 | EOF | ||
15864 | |||
15865 | fi | ||
15866 | |||
15867 | echo "$as_me:15867: checking if your system defines WTMP_FILE" >&5 | ||
15868 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
15869 | cat >conftest.$ac_ext <<_ACEOF | ||
15870 | #line 15870 "configure" | ||
15871 | #include "confdefs.h" | ||
15872 | |||
15873 | #include <sys/types.h> | ||
15874 | #include <utmp.h> | ||
15875 | #ifdef HAVE_PATHS_H | ||
15876 | # include <paths.h> | ||
15877 | #endif | ||
15878 | |||
15879 | int | ||
15880 | main () | ||
15881 | { | ||
15882 | char *wtmp = WTMP_FILE; | ||
15883 | ; | ||
15884 | return 0; | ||
15885 | } | ||
15886 | _ACEOF | ||
15887 | rm -f conftest.$ac_objext | ||
15888 | if { (eval echo "$as_me:15888: \"$ac_compile\"") >&5 | ||
15889 | (eval $ac_compile) 2>&5 | ||
15890 | ac_status=$? | ||
15891 | echo "$as_me:15891: \$? = $ac_status" >&5 | ||
15892 | (exit $ac_status); } && | ||
15893 | { ac_try='test -s conftest.$ac_objext' | ||
15894 | { (eval echo "$as_me:15894: \"$ac_try\"") >&5 | ||
15895 | (eval $ac_try) 2>&5 | ||
15896 | ac_status=$? | ||
15897 | echo "$as_me:15897: \$? = $ac_status" >&5 | ||
15898 | (exit $ac_status); }; }; then | ||
15899 | echo "$as_me:15899: result: yes" >&5 | ||
15900 | echo "${ECHO_T}yes" >&6 | ||
15901 | else | ||
15902 | echo "$as_me: failed program was:" >&5 | ||
15903 | cat conftest.$ac_ext >&5 | ||
15904 | echo "$as_me:15904: result: no" >&5 | ||
15905 | echo "${ECHO_T}no" >&6 | ||
15906 | system_wtmp_path=no | ||
15907 | |||
15908 | fi | ||
15909 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15910 | if test -z "$conf_wtmp_location"; then | ||
15911 | if test x"$system_wtmp_path" = x"no" ; then | ||
15912 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
15913 | if test -f $f ; then | ||
15914 | conf_wtmp_location=$f | ||
15915 | fi | ||
15916 | done | ||
15917 | if test -z "$conf_wtmp_location"; then | ||
15918 | cat >>confdefs.h <<\EOF | ||
15919 | #define DISABLE_WTMP 1 | ||
15920 | EOF | ||
15921 | |||
15922 | fi | ||
15923 | fi | ||
15924 | fi | ||
15925 | if test -n "$conf_wtmp_location"; then | ||
15926 | cat >>confdefs.h <<EOF | ||
15927 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
15928 | EOF | ||
15929 | |||
15930 | fi | ||
15931 | |||
15932 | echo "$as_me:15932: checking if your system defines UTMPX_FILE" >&5 | ||
15933 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
15934 | cat >conftest.$ac_ext <<_ACEOF | ||
15935 | #line 15935 "configure" | ||
15936 | #include "confdefs.h" | ||
15937 | |||
15938 | #include <sys/types.h> | ||
15939 | #include <utmp.h> | ||
15940 | #ifdef HAVE_UTMPX_H | ||
15941 | #include <utmpx.h> | ||
15942 | #endif | ||
15943 | #ifdef HAVE_PATHS_H | ||
15944 | # include <paths.h> | ||
15945 | #endif | ||
15946 | |||
15947 | int | ||
15948 | main () | ||
15949 | { | ||
15950 | char *utmpx = UTMPX_FILE; | ||
15951 | ; | ||
15952 | return 0; | ||
15953 | } | ||
15954 | _ACEOF | ||
15955 | rm -f conftest.$ac_objext | ||
15956 | if { (eval echo "$as_me:15956: \"$ac_compile\"") >&5 | ||
15957 | (eval $ac_compile) 2>&5 | ||
15958 | ac_status=$? | ||
15959 | echo "$as_me:15959: \$? = $ac_status" >&5 | ||
15960 | (exit $ac_status); } && | ||
15961 | { ac_try='test -s conftest.$ac_objext' | ||
15962 | { (eval echo "$as_me:15962: \"$ac_try\"") >&5 | ||
15963 | (eval $ac_try) 2>&5 | ||
15964 | ac_status=$? | ||
15965 | echo "$as_me:15965: \$? = $ac_status" >&5 | ||
15966 | (exit $ac_status); }; }; then | ||
15967 | echo "$as_me:15967: result: yes" >&5 | ||
15968 | echo "${ECHO_T}yes" >&6 | ||
15969 | else | ||
15970 | echo "$as_me: failed program was:" >&5 | ||
15971 | cat conftest.$ac_ext >&5 | ||
15972 | echo "$as_me:15972: result: no" >&5 | ||
15973 | echo "${ECHO_T}no" >&6 | ||
15974 | system_utmpx_path=no | ||
15975 | |||
15976 | fi | ||
15977 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15978 | if test -z "$conf_utmpx_location"; then | ||
15979 | if test x"$system_utmpx_path" = x"no" ; then | ||
15980 | cat >>confdefs.h <<\EOF | ||
15981 | #define DISABLE_UTMPX 1 | ||
15982 | EOF | ||
15983 | |||
15984 | fi | ||
15985 | else | ||
15986 | cat >>confdefs.h <<EOF | ||
15987 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
15988 | EOF | ||
15989 | |||
15990 | fi | ||
15991 | |||
15992 | echo "$as_me:15992: checking if your system defines WTMPX_FILE" >&5 | ||
15993 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
15994 | cat >conftest.$ac_ext <<_ACEOF | ||
15995 | #line 15995 "configure" | ||
15996 | #include "confdefs.h" | ||
15997 | |||
15998 | #include <sys/types.h> | ||
15999 | #include <utmp.h> | ||
16000 | #ifdef HAVE_UTMPX_H | ||
16001 | #include <utmpx.h> | ||
16002 | #endif | ||
16003 | #ifdef HAVE_PATHS_H | ||
16004 | # include <paths.h> | ||
16005 | #endif | ||
16006 | |||
16007 | int | ||
16008 | main () | ||
16009 | { | ||
16010 | char *wtmpx = WTMPX_FILE; | ||
16011 | ; | ||
16012 | return 0; | ||
16013 | } | ||
16014 | _ACEOF | ||
16015 | rm -f conftest.$ac_objext | ||
16016 | if { (eval echo "$as_me:16016: \"$ac_compile\"") >&5 | ||
16017 | (eval $ac_compile) 2>&5 | ||
16018 | ac_status=$? | ||
16019 | echo "$as_me:16019: \$? = $ac_status" >&5 | ||
16020 | (exit $ac_status); } && | ||
16021 | { ac_try='test -s conftest.$ac_objext' | ||
16022 | { (eval echo "$as_me:16022: \"$ac_try\"") >&5 | ||
16023 | (eval $ac_try) 2>&5 | ||
16024 | ac_status=$? | ||
16025 | echo "$as_me:16025: \$? = $ac_status" >&5 | ||
16026 | (exit $ac_status); }; }; then | ||
16027 | echo "$as_me:16027: result: yes" >&5 | ||
16028 | echo "${ECHO_T}yes" >&6 | ||
16029 | else | ||
16030 | echo "$as_me: failed program was:" >&5 | ||
16031 | cat conftest.$ac_ext >&5 | ||
16032 | echo "$as_me:16032: result: no" >&5 | ||
16033 | echo "${ECHO_T}no" >&6 | ||
16034 | system_wtmpx_path=no | ||
16035 | |||
16036 | fi | ||
16037 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16038 | if test -z "$conf_wtmpx_location"; then | ||
16039 | if test x"$system_wtmpx_path" = x"no" ; then | ||
16040 | cat >>confdefs.h <<\EOF | ||
16041 | #define DISABLE_WTMPX 1 | ||
16042 | EOF | ||
16043 | |||
16044 | fi | ||
16045 | else | ||
16046 | cat >>confdefs.h <<EOF | ||
16047 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
16048 | EOF | ||
16049 | |||
16050 | fi | ||
16051 | |||
16052 | if test ! -z "$blibpath" ; then | ||
16053 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
16054 | { echo "$as_me:16054: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
16055 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
16056 | fi | ||
16057 | |||
16058 | if test "$PAM_MSG" = yes ; then | ||
16059 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
16060 | fi | ||
16061 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
16062 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
16063 | fi | ||
16064 | |||
16065 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
16066 | |||
16067 | cat >confcache <<\_ACEOF | ||
16068 | # This file is a shell script that caches the results of configure | ||
16069 | # tests run on this system so they can be shared between configure | ||
16070 | # scripts and configure runs, see configure's option --config-cache. | ||
16071 | # It is not useful on other systems. If it contains results you don't | ||
16072 | # want to keep, you may remove or edit it. | ||
16073 | # | ||
16074 | # config.status only pays attention to the cache file if you give it | ||
16075 | # the --recheck option to rerun configure. | ||
16076 | # | ||
16077 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
16078 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
16079 | # following values. | ||
16080 | |||
16081 | _ACEOF | ||
16082 | |||
16083 | # The following way of writing the cache mishandles newlines in values, | ||
16084 | # but we know of no workaround that is simple, portable, and efficient. | ||
16085 | # So, don't put newlines in cache variables' values. | ||
16086 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
16087 | # and sets the high bit in the cache file unless we assign to the vars. | ||
16088 | { | ||
16089 | (set) 2>&1 | | ||
16090 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
16091 | *ac_space=\ *) | ||
16092 | # `set' does not quote correctly, so add quotes (double-quote | ||
16093 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
16094 | sed -n \ | ||
16095 | "s/'/'\\\\''/g; | ||
16096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
16097 | ;; | ||
16098 | *) | ||
16099 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
16100 | sed -n \ | ||
16101 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
16102 | ;; | ||
16103 | esac; | ||
16104 | } | | ||
16105 | sed ' | ||
16106 | t clear | ||
16107 | : clear | ||
16108 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
16109 | t end | ||
16110 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
16111 | : end' >>confcache | ||
16112 | if cmp -s $cache_file confcache; then :; else | ||
16113 | if test -w $cache_file; then | ||
16114 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
16115 | cat confcache >$cache_file | ||
16116 | else | ||
16117 | echo "not updating unwritable cache $cache_file" | ||
16118 | fi | ||
16119 | fi | ||
16120 | rm -f confcache | ||
16121 | |||
16122 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
16123 | # Let make expand exec_prefix. | ||
16124 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
16125 | |||
16126 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
16127 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
16128 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
16129 | # (actually we leave an empty line to preserve line numbers). | ||
16130 | if test "x$srcdir" = x.; then | ||
16131 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
16132 | s/:*\$(srcdir):*/:/; | ||
16133 | s/:*\${srcdir}:*/:/; | ||
16134 | s/:*@srcdir@:*/:/; | ||
16135 | s/^\([^=]*=[ ]*\):*/\1/; | ||
16136 | s/:*$//; | ||
16137 | s/^[^=]*=[ ]*$//; | ||
16138 | }' | ||
16139 | fi | ||
16140 | |||
16141 | DEFS=-DHAVE_CONFIG_H | ||
16142 | |||
16143 | : ${CONFIG_STATUS=./config.status} | ||
16144 | ac_clean_files_save=$ac_clean_files | ||
16145 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
16146 | { echo "$as_me:16146: creating $CONFIG_STATUS" >&5 | ||
16147 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
16148 | cat >$CONFIG_STATUS <<_ACEOF | ||
16149 | #! $SHELL | ||
16150 | # Generated automatically by configure. | ||
16151 | # Run this file to recreate the current configuration. | ||
16152 | # Compiler output produced by configure, useful for debugging | ||
16153 | # configure, is in config.log if it exists. | ||
16154 | |||
16155 | debug=false | ||
16156 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
16157 | ac_cs_invocation="\$0 \$@" | ||
16158 | |||
16159 | _ACEOF | ||
16160 | |||
16161 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
16162 | # Be Bourne compatible | ||
16163 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16164 | emulate sh | ||
16165 | NULLCMD=: | ||
16166 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
16167 | set -o posix | ||
16168 | fi | ||
16169 | |||
16170 | # Name of the executable. | ||
16171 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
16172 | |||
16173 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
16174 | as_expr=expr | ||
16175 | else | ||
16176 | as_expr=false | ||
16177 | fi | ||
16178 | |||
16179 | rm -f conf$$ conf$$.exe conf$$.file | ||
16180 | echo >conf$$.file | ||
16181 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
16182 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
16183 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
16184 | if test -f conf$$.exe; then | ||
16185 | # Don't use ln at all; we don't have any links | ||
16186 | as_ln_s='cp -p' | ||
16187 | else | ||
16188 | as_ln_s='ln -s' | ||
16189 | fi | ||
16190 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
16191 | as_ln_s=ln | ||
16192 | else | ||
16193 | as_ln_s='cp -p' | ||
16194 | fi | ||
16195 | rm -f conf$$ conf$$.exe conf$$.file | ||
16196 | |||
16197 | as_executable_p="test -f" | ||
16198 | |||
16199 | # Support unset when possible. | ||
16200 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
16201 | as_unset=unset | ||
16202 | else | ||
16203 | as_unset=false | ||
16204 | fi | ||
16205 | |||
16206 | # NLS nuisances. | ||
16207 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
16208 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
16209 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
16210 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
16211 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
16212 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
16213 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
16214 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
16215 | |||
16216 | # IFS | ||
16217 | # We need space, tab and new line, in precisely that order. | ||
16218 | as_nl=' | ||
16219 | ' | ||
16220 | IFS=" $as_nl" | ||
16221 | |||
16222 | # CDPATH. | ||
16223 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
16224 | |||
16225 | exec 6>&1 | ||
16226 | |||
16227 | _ACEOF | ||
16228 | |||
16229 | # Files that config.status was made for. | ||
16230 | if test -n "$ac_config_files"; then | ||
16231 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
16232 | fi | ||
16233 | |||
16234 | if test -n "$ac_config_headers"; then | ||
16235 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
16236 | fi | ||
16237 | |||
16238 | if test -n "$ac_config_links"; then | ||
16239 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
16240 | fi | ||
16241 | |||
16242 | if test -n "$ac_config_commands"; then | ||
16243 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
16244 | fi | ||
16245 | |||
16246 | cat >>$CONFIG_STATUS <<\EOF | ||
16247 | |||
16248 | ac_cs_usage="\ | ||
16249 | \`$as_me' instantiates files from templates according to the | ||
16250 | current configuration. | ||
16251 | |||
16252 | Usage: $0 [OPTIONS] [FILE]... | ||
16253 | |||
16254 | -h, --help print this help, then exit | ||
16255 | -V, --version print version number, then exit | ||
16256 | -d, --debug don't remove temporary files | ||
16257 | --recheck update $as_me by reconfiguring in the same conditions | ||
16258 | --file=FILE[:TEMPLATE] | ||
16259 | instantiate the configuration file FILE | ||
16260 | --header=FILE[:TEMPLATE] | ||
16261 | instantiate the configuration header FILE | ||
16262 | |||
16263 | Configuration files: | ||
16264 | $config_files | ||
16265 | |||
16266 | Configuration headers: | ||
16267 | $config_headers | ||
16268 | |||
16269 | Report bugs to <bug-autoconf@gnu.org>." | ||
16270 | EOF | ||
16271 | |||
16272 | cat >>$CONFIG_STATUS <<EOF | ||
16273 | ac_cs_version="\\ | ||
16274 | config.status | ||
16275 | configured by $0, generated by GNU Autoconf 2.52, | ||
16276 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
16277 | |||
16278 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
16279 | Free Software Foundation, Inc. | ||
16280 | This config.status script is free software; the Free Software Foundation | ||
16281 | gives unlimited permission to copy, distribute and modify it." | ||
16282 | srcdir=$srcdir | ||
16283 | INSTALL="$INSTALL" | ||
16284 | EOF | ||
16285 | |||
16286 | cat >>$CONFIG_STATUS <<\EOF | ||
16287 | # If no file are specified by the user, then we need to provide default | ||
16288 | # value. By we need to know if files were specified by the user. | ||
16289 | ac_need_defaults=: | ||
16290 | while test $# != 0 | ||
16291 | do | ||
16292 | case $1 in | ||
16293 | --*=*) | ||
16294 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
16295 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
16296 | shift | ||
16297 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
16298 | shift | ||
16299 | ;; | ||
16300 | -*);; | ||
16301 | *) # This is not an option, so the user has probably given explicit | ||
16302 | # arguments. | ||
16303 | ac_need_defaults=false;; | ||
16304 | esac | ||
16305 | |||
16306 | case $1 in | ||
16307 | # Handling of the options. | ||
16308 | EOF | ||
16309 | cat >>$CONFIG_STATUS <<EOF | ||
16310 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
16311 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
16312 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
16313 | EOF | ||
16314 | cat >>$CONFIG_STATUS <<\EOF | ||
16315 | --version | --vers* | -V ) | ||
16316 | echo "$ac_cs_version"; exit 0 ;; | ||
16317 | --he | --h) | ||
16318 | # Conflict between --help and --header | ||
16319 | { { echo "$as_me:16319: error: ambiguous option: $1 | ||
16320 | Try \`$0 --help' for more information." >&5 | ||
16321 | echo "$as_me: error: ambiguous option: $1 | ||
16322 | Try \`$0 --help' for more information." >&2;} | ||
16323 | { (exit 1); exit 1; }; };; | ||
16324 | --help | --hel | -h ) | ||
16325 | echo "$ac_cs_usage"; exit 0 ;; | ||
16326 | --debug | --d* | -d ) | ||
16327 | debug=: ;; | ||
16328 | --file | --fil | --fi | --f ) | ||
16329 | shift | ||
16330 | CONFIG_FILES="$CONFIG_FILES $1" | ||
16331 | ac_need_defaults=false;; | ||
16332 | --header | --heade | --head | --hea ) | ||
16333 | shift | ||
16334 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
16335 | ac_need_defaults=false;; | ||
16336 | |||
16337 | # This is an error. | ||
16338 | -*) { { echo "$as_me:16338: error: unrecognized option: $1 | ||
16339 | Try \`$0 --help' for more information." >&5 | ||
16340 | echo "$as_me: error: unrecognized option: $1 | ||
16341 | Try \`$0 --help' for more information." >&2;} | ||
16342 | { (exit 1); exit 1; }; } ;; | ||
16343 | |||
16344 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
16345 | |||
16346 | esac | ||
16347 | shift | ||
16348 | done | ||
16349 | |||
16350 | exec 5>>config.log | ||
16351 | cat >&5 << _ACEOF | ||
16352 | |||
16353 | ## ----------------------- ## | ||
16354 | ## Running config.status. ## | ||
16355 | ## ----------------------- ## | ||
16356 | |||
16357 | This file was extended by $as_me 2.52, executed with | ||
16358 | CONFIG_FILES = $CONFIG_FILES | ||
16359 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
16360 | CONFIG_LINKS = $CONFIG_LINKS | ||
16361 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
16362 | > $ac_cs_invocation | ||
16363 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
16364 | |||
16365 | _ACEOF | ||
16366 | EOF | ||
16367 | |||
16368 | cat >>$CONFIG_STATUS <<\EOF | ||
16369 | for ac_config_target in $ac_config_targets | ||
16370 | do | ||
16371 | case "$ac_config_target" in | ||
16372 | # Handling of arguments. | ||
16373 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
16374 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
16375 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
16376 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
16377 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
16378 | *) { { echo "$as_me:16378: error: invalid argument: $ac_config_target" >&5 | ||
16379 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
16380 | { (exit 1); exit 1; }; };; | ||
16381 | esac | ||
16382 | done | ||
16383 | |||
16384 | # If the user did not use the arguments to specify the items to instantiate, | ||
16385 | # then the envvar interface is used. Set only those that are not. | ||
16386 | # We use the long form for the default assignment because of an extremely | ||
16387 | # bizarre bug on SunOS 4.1.3. | ||
16388 | if $ac_need_defaults; then | ||
16389 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
16390 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
16391 | fi | ||
16392 | |||
16393 | # Create a temporary directory, and hook for its removal unless debugging. | ||
16394 | $debug || | ||
16395 | { | ||
16396 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
16397 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
16398 | } | ||
16399 | |||
16400 | # Create a (secure) tmp directory for tmp files. | ||
16401 | : ${TMPDIR=/tmp} | ||
16402 | { | ||
16403 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
16404 | test -n "$tmp" && test -d "$tmp" | ||
16405 | } || | ||
16406 | { | ||
16407 | tmp=$TMPDIR/cs$$-$RANDOM | ||
16408 | (umask 077 && mkdir $tmp) | ||
16409 | } || | ||
16410 | { | ||
16411 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
16412 | { (exit 1); exit 1; } | ||
16413 | } | ||
16414 | |||
16415 | EOF | ||
16416 | |||
16417 | cat >>$CONFIG_STATUS <<EOF | ||
16418 | |||
16419 | # | ||
16420 | # CONFIG_FILES section. | ||
16421 | # | ||
16422 | |||
16423 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
16424 | # This happens for instance when ./config.status config.h | ||
16425 | if test -n "\$CONFIG_FILES"; then | ||
16426 | # Protect against being on the right side of a sed subst in config.status. | ||
16427 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
16428 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
16429 | s,@SHELL@,$SHELL,;t t | ||
16430 | s,@exec_prefix@,$exec_prefix,;t t | ||
16431 | s,@prefix@,$prefix,;t t | ||
16432 | s,@program_transform_name@,$program_transform_name,;t t | ||
16433 | s,@bindir@,$bindir,;t t | ||
16434 | s,@sbindir@,$sbindir,;t t | ||
16435 | s,@libexecdir@,$libexecdir,;t t | ||
16436 | s,@datadir@,$datadir,;t t | ||
16437 | s,@sysconfdir@,$sysconfdir,;t t | ||
16438 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
16439 | s,@localstatedir@,$localstatedir,;t t | ||
16440 | s,@libdir@,$libdir,;t t | ||
16441 | s,@includedir@,$includedir,;t t | ||
16442 | s,@oldincludedir@,$oldincludedir,;t t | ||
16443 | s,@infodir@,$infodir,;t t | ||
16444 | s,@mandir@,$mandir,;t t | ||
16445 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
16446 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
16447 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
16448 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
16449 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
16450 | s,@build_alias@,$build_alias,;t t | ||
16451 | s,@host_alias@,$host_alias,;t t | ||
16452 | s,@target_alias@,$target_alias,;t t | ||
16453 | s,@ECHO_C@,$ECHO_C,;t t | ||
16454 | s,@ECHO_N@,$ECHO_N,;t t | ||
16455 | s,@ECHO_T@,$ECHO_T,;t t | ||
16456 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
16457 | s,@DEFS@,$DEFS,;t t | ||
16458 | s,@LIBS@,$LIBS,;t t | ||
16459 | s,@CC@,$CC,;t t | ||
16460 | s,@CFLAGS@,$CFLAGS,;t t | ||
16461 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
16462 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
16463 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
16464 | s,@EXEEXT@,$EXEEXT,;t t | ||
16465 | s,@OBJEXT@,$OBJEXT,;t t | ||
16466 | s,@build@,$build,;t t | ||
16467 | s,@build_cpu@,$build_cpu,;t t | ||
16468 | s,@build_vendor@,$build_vendor,;t t | ||
16469 | s,@build_os@,$build_os,;t t | ||
16470 | s,@host@,$host,;t t | ||
16471 | s,@host_cpu@,$host_cpu,;t t | ||
16472 | s,@host_vendor@,$host_vendor,;t t | ||
16473 | s,@host_os@,$host_os,;t t | ||
16474 | s,@AWK@,$AWK,;t t | ||
16475 | s,@CPP@,$CPP,;t t | ||
16476 | s,@RANLIB@,$RANLIB,;t t | ||
16477 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
16478 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
16479 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
16480 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
16481 | s,@AR@,$AR,;t t | ||
16482 | s,@PERL@,$PERL,;t t | ||
16483 | s,@SED@,$SED,;t t | ||
16484 | s,@ENT@,$ENT,;t t | ||
16485 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
16486 | s,@SH@,$SH,;t t | ||
16487 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
16488 | s,@LD@,$LD,;t t | ||
16489 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
16490 | s,@LIBPAM@,$LIBPAM,;t t | ||
16491 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
16492 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
16493 | s,@PROG_LS@,$PROG_LS,;t t | ||
16494 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
16495 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
16496 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
16497 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
16498 | s,@PROG_PS@,$PROG_PS,;t t | ||
16499 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
16500 | s,@PROG_W@,$PROG_W,;t t | ||
16501 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
16502 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
16503 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
16504 | s,@PROG_DF@,$PROG_DF,;t t | ||
16505 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
16506 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
16507 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
16508 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
16509 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
16510 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
16511 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
16512 | s,@xauth_path@,$xauth_path,;t t | ||
16513 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
16514 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
16515 | s,@NROFF@,$NROFF,;t t | ||
16516 | s,@MANTYPE@,$MANTYPE,;t t | ||
16517 | s,@mansubdir@,$mansubdir,;t t | ||
16518 | s,@user_path@,$user_path,;t t | ||
16519 | s,@piddir@,$piddir,;t t | ||
16520 | CEOF | ||
16521 | |||
16522 | EOF | ||
16523 | |||
16524 | cat >>$CONFIG_STATUS <<\EOF | ||
16525 | # Split the substitutions into bite-sized pieces for seds with | ||
16526 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
16527 | ac_max_sed_lines=48 | ||
16528 | ac_sed_frag=1 # Number of current file. | ||
16529 | ac_beg=1 # First line for current file. | ||
16530 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
16531 | ac_more_lines=: | ||
16532 | ac_sed_cmds= | ||
16533 | while $ac_more_lines; do | ||
16534 | if test $ac_beg -gt 1; then | ||
16535 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
16536 | else | ||
16537 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
16538 | fi | ||
16539 | if test ! -s $tmp/subs.frag; then | ||
16540 | ac_more_lines=false | ||
16541 | else | ||
16542 | # The purpose of the label and of the branching condition is to | ||
16543 | # speed up the sed processing (if there are no `@' at all, there | ||
16544 | # is no need to browse any of the substitutions). | ||
16545 | # These are the two extra sed commands mentioned above. | ||
16546 | (echo ':t | ||
16547 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
16548 | if test -z "$ac_sed_cmds"; then | ||
16549 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
16550 | else | ||
16551 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
16552 | fi | ||
16553 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
16554 | ac_beg=$ac_end | ||
16555 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
16556 | fi | ||
16557 | done | ||
16558 | if test -z "$ac_sed_cmds"; then | ||
16559 | ac_sed_cmds=cat | ||
16560 | fi | ||
16561 | fi # test -n "$CONFIG_FILES" | ||
16562 | |||
16563 | EOF | ||
16564 | cat >>$CONFIG_STATUS <<\EOF | ||
16565 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
16566 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
16567 | case $ac_file in | ||
16568 | - | *:- | *:-:* ) # input from stdin | ||
16569 | cat >$tmp/stdin | ||
16570 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16571 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16572 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16573 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16574 | * ) ac_file_in=$ac_file.in ;; | ||
16575 | esac | ||
16576 | |||
16577 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
16578 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16579 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
16580 | X"$ac_file" : 'X\(//\)$' \| \ | ||
16581 | X"$ac_file" : 'X\(/\)' \| \ | ||
16582 | . : '\(.\)' 2>/dev/null || | ||
16583 | echo X"$ac_file" | | ||
16584 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
16585 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
16586 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
16587 | /^X\(\/\).*/{ s//\1/; q; } | ||
16588 | s/.*/./; q'` | ||
16589 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
16590 | { case "$ac_dir" in | ||
16591 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
16592 | *) as_incr_dir=.;; | ||
16593 | esac | ||
16594 | as_dummy="$ac_dir" | ||
16595 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
16596 | case $as_mkdir_dir in | ||
16597 | # Skip DOS drivespec | ||
16598 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
16599 | *) | ||
16600 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
16601 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
16602 | ;; | ||
16603 | esac | ||
16604 | done; } | ||
16605 | |||
16606 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | ||
16607 | # A "../" for each directory in $ac_dir_suffix. | ||
16608 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | ||
16609 | else | ||
16610 | ac_dir_suffix= ac_dots= | ||
16611 | fi | ||
16612 | |||
16613 | case $srcdir in | ||
16614 | .) ac_srcdir=. | ||
16615 | if test -z "$ac_dots"; then | ||
16616 | ac_top_srcdir=. | ||
16617 | else | ||
16618 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | ||
16619 | fi ;; | ||
16620 | [\\/]* | ?:[\\/]* ) | ||
16621 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
16622 | ac_top_srcdir=$srcdir ;; | ||
16623 | *) # Relative path. | ||
16624 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | ||
16625 | ac_top_srcdir=$ac_dots$srcdir ;; | ||
16626 | esac | ||
16627 | |||
16628 | case $INSTALL in | ||
16629 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
16630 | *) ac_INSTALL=$ac_dots$INSTALL ;; | ||
16631 | esac | ||
16632 | |||
16633 | if test x"$ac_file" != x-; then | ||
16634 | { echo "$as_me:16634: creating $ac_file" >&5 | ||
16635 | echo "$as_me: creating $ac_file" >&6;} | ||
16636 | rm -f "$ac_file" | ||
16637 | fi | ||
16638 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
16639 | # use $as_me), people would be surprised to read: | ||
16640 | # /* config.h. Generated automatically by config.status. */ | ||
16641 | configure_input="Generated automatically from `echo $ac_file_in | | ||
16642 | sed 's,.*/,,'` by configure." | ||
16643 | |||
16644 | # First look for the input files in the build tree, otherwise in the | ||
16645 | # src tree. | ||
16646 | ac_file_inputs=`IFS=: | ||
16647 | for f in $ac_file_in; do | ||
16648 | case $f in | ||
16649 | -) echo $tmp/stdin ;; | ||
16650 | [\\/$]*) | ||
16651 | # Absolute (can't be DOS-style, as IFS=:) | ||
16652 | test -f "$f" || { { echo "$as_me:16652: error: cannot find input file: $f" >&5 | ||
16653 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16654 | { (exit 1); exit 1; }; } | ||
16655 | echo $f;; | ||
16656 | *) # Relative | ||
16657 | if test -f "$f"; then | ||
16658 | # Build tree | ||
16659 | echo $f | ||
16660 | elif test -f "$srcdir/$f"; then | ||
16661 | # Source tree | ||
16662 | echo $srcdir/$f | ||
16663 | else | ||
16664 | # /dev/null tree | ||
16665 | { { echo "$as_me:16665: error: cannot find input file: $f" >&5 | ||
16666 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16667 | { (exit 1); exit 1; }; } | ||
16668 | fi;; | ||
16669 | esac | ||
16670 | done` || { (exit 1); exit 1; } | ||
16671 | EOF | ||
16672 | cat >>$CONFIG_STATUS <<EOF | ||
16673 | sed "$ac_vpsub | ||
16674 | $extrasub | ||
16675 | EOF | ||
16676 | cat >>$CONFIG_STATUS <<\EOF | ||
16677 | :t | ||
16678 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
16679 | s,@configure_input@,$configure_input,;t t | ||
16680 | s,@srcdir@,$ac_srcdir,;t t | ||
16681 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
16682 | s,@INSTALL@,$ac_INSTALL,;t t | ||
16683 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
16684 | rm -f $tmp/stdin | ||
16685 | if test x"$ac_file" != x-; then | ||
16686 | mv $tmp/out $ac_file | ||
16687 | else | ||
16688 | cat $tmp/out | ||
16689 | rm -f $tmp/out | ||
16690 | fi | ||
16691 | |||
16692 | done | ||
16693 | EOF | ||
16694 | cat >>$CONFIG_STATUS <<\EOF | ||
16695 | |||
16696 | # | ||
16697 | # CONFIG_HEADER section. | ||
16698 | # | ||
16699 | |||
16700 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
16701 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
16702 | # | ||
16703 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
16704 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
16705 | ac_dB='[ ].*$,\1#\2' | ||
16706 | ac_dC=' ' | ||
16707 | ac_dD=',;t' | ||
16708 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
16709 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
16710 | ac_uB='$,\1#\2define\3' | ||
16711 | ac_uC=' ' | ||
16712 | ac_uD=',;t' | ||
16713 | |||
16714 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
16715 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
16716 | case $ac_file in | ||
16717 | - | *:- | *:-:* ) # input from stdin | ||
16718 | cat >$tmp/stdin | ||
16719 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16720 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16721 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
16722 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
16723 | * ) ac_file_in=$ac_file.in ;; | ||
16724 | esac | ||
16725 | |||
16726 | test x"$ac_file" != x- && { echo "$as_me:16726: creating $ac_file" >&5 | ||
16727 | echo "$as_me: creating $ac_file" >&6;} | ||
16728 | |||
16729 | # First look for the input files in the build tree, otherwise in the | ||
16730 | # src tree. | ||
16731 | ac_file_inputs=`IFS=: | ||
16732 | for f in $ac_file_in; do | ||
16733 | case $f in | ||
16734 | -) echo $tmp/stdin ;; | ||
16735 | [\\/$]*) | ||
16736 | # Absolute (can't be DOS-style, as IFS=:) | ||
16737 | test -f "$f" || { { echo "$as_me:16737: error: cannot find input file: $f" >&5 | ||
16738 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16739 | { (exit 1); exit 1; }; } | ||
16740 | echo $f;; | ||
16741 | *) # Relative | ||
16742 | if test -f "$f"; then | ||
16743 | # Build tree | ||
16744 | echo $f | ||
16745 | elif test -f "$srcdir/$f"; then | ||
16746 | # Source tree | ||
16747 | echo $srcdir/$f | ||
16748 | else | ||
16749 | # /dev/null tree | ||
16750 | { { echo "$as_me:16750: error: cannot find input file: $f" >&5 | ||
16751 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
16752 | { (exit 1); exit 1; }; } | ||
16753 | fi;; | ||
16754 | esac | ||
16755 | done` || { (exit 1); exit 1; } | ||
16756 | # Remove the trailing spaces. | ||
16757 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
16758 | |||
16759 | EOF | ||
16760 | |||
16761 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
16762 | # `conftest.undefs', that substitutes the proper values into | ||
16763 | # config.h.in to produce config.h. The first handles `#define' | ||
16764 | # templates, and the second `#undef' templates. | ||
16765 | # And first: Protect against being on the right side of a sed subst in | ||
16766 | # config.status. Protect against being in an unquoted here document | ||
16767 | # in config.status. | ||
16768 | rm -f conftest.defines conftest.undefs | ||
16769 | # Using a here document instead of a string reduces the quoting nightmare. | ||
16770 | # Putting comments in sed scripts is not portable. | ||
16771 | # | ||
16772 | # `end' is used to avoid that the second main sed command (meant for | ||
16773 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
16774 | # See the Autoconf documentation for `clear'. | ||
16775 | cat >confdef2sed.sed <<\EOF | ||
16776 | s/[\\&,]/\\&/g | ||
16777 | s,[\\$`],\\&,g | ||
16778 | t clear | ||
16779 | : clear | ||
16780 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
16781 | t end | ||
16782 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
16783 | : end | ||
16784 | EOF | ||
16785 | # If some macros were called several times there might be several times | ||
16786 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
16787 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
16788 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
16789 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
16790 | rm -f confdef2sed.sed | ||
16791 | |||
16792 | # This sed command replaces #undef with comments. This is necessary, for | ||
16793 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
16794 | # on some systems where configure will not decide to define it. | ||
16795 | cat >>conftest.undefs <<\EOF | ||
16796 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
16797 | EOF | ||
16798 | |||
16799 | # Break up conftest.defines because some shells have a limit on the size | ||
16800 | # of here documents, and old seds have small limits too (100 cmds). | ||
16801 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
16802 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
16803 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
16804 | echo ' :' >>$CONFIG_STATUS | ||
16805 | rm -f conftest.tail | ||
16806 | while grep . conftest.defines >/dev/null | ||
16807 | do | ||
16808 | # Write a limited-size here document to $tmp/defines.sed. | ||
16809 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
16810 | # Speed up: don't consider the non `#define' lines. | ||
16811 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
16812 | # Work around the forget-to-reset-the-flag bug. | ||
16813 | echo 't clr' >>$CONFIG_STATUS | ||
16814 | echo ': clr' >>$CONFIG_STATUS | ||
16815 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
16816 | echo 'CEOF | ||
16817 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
16818 | rm -f $tmp/in | ||
16819 | mv $tmp/out $tmp/in | ||
16820 | ' >>$CONFIG_STATUS | ||
16821 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
16822 | rm -f conftest.defines | ||
16823 | mv conftest.tail conftest.defines | ||
16824 | done | ||
16825 | rm -f conftest.defines | ||
16826 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
16827 | echo >>$CONFIG_STATUS | ||
16828 | |||
16829 | # Break up conftest.undefs because some shells have a limit on the size | ||
16830 | # of here documents, and old seds have small limits too (100 cmds). | ||
16831 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
16832 | rm -f conftest.tail | ||
16833 | while grep . conftest.undefs >/dev/null | ||
16834 | do | ||
16835 | # Write a limited-size here document to $tmp/undefs.sed. | ||
16836 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
16837 | # Speed up: don't consider the non `#undef' | ||
16838 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
16839 | # Work around the forget-to-reset-the-flag bug. | ||
16840 | echo 't clr' >>$CONFIG_STATUS | ||
16841 | echo ': clr' >>$CONFIG_STATUS | ||
16842 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
16843 | echo 'CEOF | ||
16844 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
16845 | rm -f $tmp/in | ||
16846 | mv $tmp/out $tmp/in | ||
16847 | ' >>$CONFIG_STATUS | ||
16848 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
16849 | rm -f conftest.undefs | ||
16850 | mv conftest.tail conftest.undefs | ||
16851 | done | ||
16852 | rm -f conftest.undefs | ||
16853 | |||
16854 | cat >>$CONFIG_STATUS <<\EOF | ||
16855 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
16856 | # use $as_me), people would be surprised to read: | ||
16857 | # /* config.h. Generated automatically by config.status. */ | ||
16858 | if test x"$ac_file" = x-; then | ||
16859 | echo "/* Generated automatically by configure. */" >$tmp/config.h | ||
16860 | else | ||
16861 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | ||
16862 | fi | ||
16863 | cat $tmp/in >>$tmp/config.h | ||
16864 | rm -f $tmp/in | ||
16865 | if test x"$ac_file" != x-; then | ||
16866 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
16867 | { echo "$as_me:16867: $ac_file is unchanged" >&5 | ||
16868 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
16869 | else | ||
16870 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
16871 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
16872 | X"$ac_file" : 'X\(//\)$' \| \ | ||
16873 | X"$ac_file" : 'X\(/\)' \| \ | ||
16874 | . : '\(.\)' 2>/dev/null || | ||
16875 | echo X"$ac_file" | | ||
16876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
16877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
16878 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
16879 | /^X\(\/\).*/{ s//\1/; q; } | ||
16880 | s/.*/./; q'` | ||
16881 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
16882 | { case "$ac_dir" in | ||
16883 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
16884 | *) as_incr_dir=.;; | ||
16885 | esac | ||
16886 | as_dummy="$ac_dir" | ||
16887 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
16888 | case $as_mkdir_dir in | ||
16889 | # Skip DOS drivespec | ||
16890 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
16891 | *) | ||
16892 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
16893 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
16894 | ;; | ||
16895 | esac | ||
16896 | done; } | ||
16897 | |||
16898 | fi | ||
16899 | rm -f $ac_file | ||
16900 | mv $tmp/config.h $ac_file | ||
16901 | fi | ||
16902 | else | ||
16903 | cat $tmp/config.h | ||
16904 | rm -f $tmp/config.h | ||
16905 | fi | ||
16906 | done | ||
16907 | EOF | ||
16908 | |||
16909 | cat >>$CONFIG_STATUS <<\EOF | ||
16910 | |||
16911 | { (exit 0); exit 0; } | ||
16912 | EOF | ||
16913 | chmod +x $CONFIG_STATUS | ||
16914 | ac_clean_files=$ac_clean_files_save | ||
16915 | |||
16916 | # configure is writing to config.log, and then calls config.status. | ||
16917 | # config.status does its own redirection, appending to config.log. | ||
16918 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
16919 | # by configure, so config.status won't be able to write to it; its | ||
16920 | # output is simply discarded. So we exec the FD to /dev/null, | ||
16921 | # effectively closing config.log, so it can be properly (re)opened and | ||
16922 | # appended to by config.status. When coming back to configure, we | ||
16923 | # need to make the FD available again. | ||
16924 | if test "$no_create" != yes; then | ||
16925 | ac_cs_success=: | ||
16926 | exec 5>/dev/null | ||
16927 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
16928 | exec 5>>config.log | ||
16929 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
16930 | # would make configure fail if this is the last instruction. | ||
16931 | $ac_cs_success || { (exit 1); exit 1; } | ||
16932 | fi | ||
16933 | |||
16934 | # Print summary of options | ||
16935 | |||
16936 | # Someone please show me a better way :) | ||
16937 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
16938 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
16939 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
16940 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
16941 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
16942 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
16943 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
16944 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
16945 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
16946 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
16947 | |||
16948 | echo "" | ||
16949 | echo "OpenSSH has been configured with the following options:" | ||
16950 | echo " User binaries: $B" | ||
16951 | echo " System binaries: $C" | ||
16952 | echo " Configuration files: $D" | ||
16953 | echo " Askpass program: $E" | ||
16954 | echo " Manual pages: $F" | ||
16955 | echo " PID file: $G" | ||
16956 | echo " Privilege separation chroot path: $H" | ||
16957 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16958 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
16959 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
16960 | else | ||
16961 | echo " sshd default user PATH: $I" | ||
16962 | if test ! -z "$external_path_file"; then | ||
16963 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
16964 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
16965 | fi | ||
16966 | fi | ||
16967 | if test ! -z "$superuser_path" ; then | ||
16968 | echo " sshd superuser user PATH: $J" | ||
16969 | fi | ||
16970 | echo " Manpage format: $MANTYPE" | ||
16971 | echo " DNS support: $DNS_MSG" | ||
16972 | echo " PAM support: $PAM_MSG" | ||
16973 | echo " KerberosV support: $KRB5_MSG" | ||
16974 | echo " Smartcard support: $SCARD_MSG" | ||
16975 | echo " S/KEY support: $SKEY_MSG" | ||
16976 | echo " TCP Wrappers support: $TCPW_MSG" | ||
16977 | echo " MD5 password support: $MD5_MSG" | ||
16978 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
16979 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
16980 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
16981 | echo " Random number source: $RAND_MSG" | ||
16982 | if test ! -z "$USE_RAND_HELPER" ; then | ||
16983 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
16984 | fi | ||
16985 | |||
16986 | echo "" | ||
16987 | |||
16988 | echo " Host: ${host}" | ||
16989 | echo " Compiler: ${CC}" | ||
16990 | echo " Compiler flags: ${CFLAGS}" | ||
16991 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
16992 | echo " Linker flags: ${LDFLAGS}" | ||
16993 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
16994 | |||
16995 | echo "" | ||
16996 | |||
16997 | if test "x$PAM_MSG" = "xyes" ; then | ||
16998 | echo "PAM is enabled. You may need to install a PAM control file " | ||
16999 | echo "for sshd, otherwise password authentication may fail. " | ||
17000 | echo "Example PAM control files can be found in the contrib/ " | ||
17001 | echo "subdirectory" | ||
17002 | echo "" | ||
17003 | fi | ||
17004 | |||
17005 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
17006 | echo "WARNING: you are using the builtin random number collection " | ||
17007 | echo "service. Please read WARNING.RNG and request that your OS " | ||
17008 | echo "vendor includes kernel-based random number collection in " | ||
17009 | echo "future versions of your OS." | ||
17010 | echo "" | ||
17011 | fi | ||
17012 | |||