diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18044 |
1 files changed, 18044 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..c39957b7c --- /dev/null +++ b/configure | |||
@@ -0,0 +1,18044 @@ | |||
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-etc-default-login Disable using PATH from /etc/default/login no | ||
673 | --disable-lastlog disable use of lastlog even if detected no | ||
674 | --disable-utmp disable use of utmp even if detected no | ||
675 | --disable-utmpx disable use of utmpx even if detected no | ||
676 | --disable-wtmp disable use of wtmp even if detected no | ||
677 | --disable-wtmpx disable use of wtmpx even if detected no | ||
678 | --disable-libutil disable use of libutil (login() etc.) no | ||
679 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
680 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
681 | |||
682 | Optional Packages: | ||
683 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
684 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
685 | --without-rpath Disable auto-added -R linker paths | ||
686 | --with-osfsia Enable Digital Unix SIA | ||
687 | --with-cflags Specify additional flags to pass to compiler | ||
688 | --with-cppflags Specify additional flags to pass to preprocessor | ||
689 | --with-ldflags Specify additional flags to pass to linker | ||
690 | --with-libs Specify additional libraries to link with | ||
691 | --with-zlib=PATH Use zlib in PATH | ||
692 | --without-zlib-version-check Disable zlib version check | ||
693 | --with-skey[=PATH] Enable S/Key support | ||
694 | (optionally in PATH) | ||
695 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
696 | (optionally in PATH) | ||
697 | --with-pam Enable PAM support | ||
698 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
699 | --with-rand-helper Use subprocess to gather strong randomness | ||
700 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
701 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
702 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
703 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
704 | --with-sectok Enable smartcard support using libsectok | ||
705 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
706 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
707 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
708 | --with-xauth=PATH Specify path to xauth program | ||
709 | --with-mantype=man|cat|doc Set man page type | ||
710 | --with-md5-passwords Enable use of MD5 passwords | ||
711 | --without-shadow Disable shadow password support | ||
712 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
713 | --with-default-path= Specify default \$PATH environment for server | ||
714 | --with-superuser-path= Specify different path for super-user | ||
715 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
716 | --with-bsd-auth Enable BSD auth support | ||
717 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
718 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
719 | |||
720 | Some influential environment variables: | ||
721 | CC C compiler command | ||
722 | CFLAGS C compiler flags | ||
723 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
724 | nonstandard directory <lib dir> | ||
725 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
726 | headers in a nonstandard directory <include dir> | ||
727 | CPP C preprocessor | ||
728 | |||
729 | Use these variables to override the choices made by `configure' or to help | ||
730 | it to find libraries and programs with nonstandard names/locations. | ||
731 | |||
732 | EOF | ||
733 | fi | ||
734 | |||
735 | if test "$ac_init_help" = "recursive"; then | ||
736 | # If there are subdirs, report their specific --help. | ||
737 | ac_popdir=`pwd` | ||
738 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | ||
739 | cd $ac_subdir | ||
740 | # A "../" for each directory in /$ac_subdir. | ||
741 | ac_dots=`echo $ac_subdir | | ||
742 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | ||
743 | |||
744 | case $srcdir in | ||
745 | .) # No --srcdir option. We are building in place. | ||
746 | ac_sub_srcdir=$srcdir ;; | ||
747 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
748 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | ||
749 | *) # Relative path. | ||
750 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | ||
751 | esac | ||
752 | |||
753 | # Check for guested configure; otherwise get Cygnus style configure. | ||
754 | if test -f $ac_sub_srcdir/configure.gnu; then | ||
755 | echo | ||
756 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | ||
757 | elif test -f $ac_sub_srcdir/configure; then | ||
758 | echo | ||
759 | $SHELL $ac_sub_srcdir/configure --help=recursive | ||
760 | elif test -f $ac_sub_srcdir/configure.ac || | ||
761 | test -f $ac_sub_srcdir/configure.in; then | ||
762 | echo | ||
763 | $ac_configure --help | ||
764 | else | ||
765 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | ||
766 | fi | ||
767 | cd $ac_popdir | ||
768 | done | ||
769 | fi | ||
770 | |||
771 | test -n "$ac_init_help" && exit 0 | ||
772 | if $ac_init_version; then | ||
773 | cat <<\EOF | ||
774 | |||
775 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
776 | Free Software Foundation, Inc. | ||
777 | This configure script is free software; the Free Software Foundation | ||
778 | gives unlimited permission to copy, distribute and modify it. | ||
779 | EOF | ||
780 | exit 0 | ||
781 | fi | ||
782 | exec 5>config.log | ||
783 | cat >&5 <<EOF | ||
784 | This file contains any messages produced by compilers while | ||
785 | running configure, to aid debugging if configure makes a mistake. | ||
786 | |||
787 | It was created by $as_me, which was | ||
788 | generated by GNU Autoconf 2.52. Invocation command line was | ||
789 | |||
790 | $ $0 $@ | ||
791 | |||
792 | EOF | ||
793 | { | ||
794 | cat <<_ASUNAME | ||
795 | ## ---------- ## | ||
796 | ## Platform. ## | ||
797 | ## ---------- ## | ||
798 | |||
799 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
800 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
801 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
802 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
803 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
804 | |||
805 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
806 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
807 | |||
808 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
809 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
810 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
811 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
812 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
813 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
814 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
815 | |||
816 | PATH = $PATH | ||
817 | |||
818 | _ASUNAME | ||
819 | } >&5 | ||
820 | |||
821 | cat >&5 <<EOF | ||
822 | ## ------------ ## | ||
823 | ## Core tests. ## | ||
824 | ## ------------ ## | ||
825 | |||
826 | EOF | ||
827 | |||
828 | # Keep a trace of the command line. | ||
829 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
830 | # Also quote any args containing shell meta-characters. | ||
831 | ac_configure_args= | ||
832 | ac_sep= | ||
833 | for ac_arg | ||
834 | do | ||
835 | case $ac_arg in | ||
836 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
837 | | --no-cr | --no-c) ;; | ||
838 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
839 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
840 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
841 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | ||
842 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
843 | ac_sep=" " ;; | ||
844 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | ||
845 | ac_sep=" " ;; | ||
846 | esac | ||
847 | # Get rid of the leading space. | ||
848 | done | ||
849 | |||
850 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
851 | # config.log. We remove comments because anyway the quotes in there | ||
852 | # would cause problems or look ugly. | ||
853 | trap 'exit_status=$? | ||
854 | # Save into config.log some information that might help in debugging. | ||
855 | echo >&5 | ||
856 | echo "## ----------------- ##" >&5 | ||
857 | echo "## Cache variables. ##" >&5 | ||
858 | echo "## ----------------- ##" >&5 | ||
859 | echo >&5 | ||
860 | # The following way of writing the cache mishandles newlines in values, | ||
861 | { | ||
862 | (set) 2>&1 | | ||
863 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
864 | *ac_space=\ *) | ||
865 | sed -n \ | ||
866 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
867 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
868 | ;; | ||
869 | *) | ||
870 | sed -n \ | ||
871 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
872 | ;; | ||
873 | esac; | ||
874 | } >&5 | ||
875 | sed "/^$/d" confdefs.h >conftest.log | ||
876 | if test -s conftest.log; then | ||
877 | echo >&5 | ||
878 | echo "## ------------ ##" >&5 | ||
879 | echo "## confdefs.h. ##" >&5 | ||
880 | echo "## ------------ ##" >&5 | ||
881 | echo >&5 | ||
882 | cat conftest.log >&5 | ||
883 | fi | ||
884 | (echo; echo) >&5 | ||
885 | test "$ac_signal" != 0 && | ||
886 | echo "$as_me: caught signal $ac_signal" >&5 | ||
887 | echo "$as_me: exit $exit_status" >&5 | ||
888 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | ||
889 | exit $exit_status | ||
890 | ' 0 | ||
891 | for ac_signal in 1 2 13 15; do | ||
892 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
893 | done | ||
894 | ac_signal=0 | ||
895 | |||
896 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
897 | rm -rf conftest* confdefs.h | ||
898 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
899 | echo >confdefs.h | ||
900 | |||
901 | # Let the site file select an alternate cache file if it wants to. | ||
902 | # Prefer explicitly selected file to automatically selected ones. | ||
903 | if test -z "$CONFIG_SITE"; then | ||
904 | if test "x$prefix" != xNONE; then | ||
905 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
906 | else | ||
907 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
908 | fi | ||
909 | fi | ||
910 | for ac_site_file in $CONFIG_SITE; do | ||
911 | if test -r "$ac_site_file"; then | ||
912 | { echo "$as_me:912: loading site script $ac_site_file" >&5 | ||
913 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
914 | cat "$ac_site_file" >&5 | ||
915 | . "$ac_site_file" | ||
916 | fi | ||
917 | done | ||
918 | |||
919 | if test -r "$cache_file"; then | ||
920 | # Some versions of bash will fail to source /dev/null (special | ||
921 | # files actually), so we avoid doing that. | ||
922 | if test -f "$cache_file"; then | ||
923 | { echo "$as_me:923: loading cache $cache_file" >&5 | ||
924 | echo "$as_me: loading cache $cache_file" >&6;} | ||
925 | case $cache_file in | ||
926 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
927 | *) . ./$cache_file;; | ||
928 | esac | ||
929 | fi | ||
930 | else | ||
931 | { echo "$as_me:931: creating cache $cache_file" >&5 | ||
932 | echo "$as_me: creating cache $cache_file" >&6;} | ||
933 | >$cache_file | ||
934 | fi | ||
935 | |||
936 | # Check that the precious variables saved in the cache have kept the same | ||
937 | # value. | ||
938 | ac_cache_corrupted=false | ||
939 | for ac_var in `(set) 2>&1 | | ||
940 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
941 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
942 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
943 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
944 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
945 | case $ac_old_set,$ac_new_set in | ||
946 | set,) | ||
947 | { echo "$as_me:947: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
948 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
949 | ac_cache_corrupted=: ;; | ||
950 | ,set) | ||
951 | { echo "$as_me:951: error: \`$ac_var' was not set in the previous run" >&5 | ||
952 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
953 | ac_cache_corrupted=: ;; | ||
954 | ,);; | ||
955 | *) | ||
956 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
957 | { echo "$as_me:957: error: \`$ac_var' has changed since the previous run:" >&5 | ||
958 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
959 | { echo "$as_me:959: former value: $ac_old_val" >&5 | ||
960 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
961 | { echo "$as_me:961: current value: $ac_new_val" >&5 | ||
962 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
963 | ac_cache_corrupted=: | ||
964 | fi;; | ||
965 | esac | ||
966 | # Pass precious variables to config.status. It doesn't matter if | ||
967 | # we pass some twice (in addition to the command line arguments). | ||
968 | if test "$ac_new_set" = set; then | ||
969 | case $ac_new_val in | ||
970 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
971 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | ||
972 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
973 | ;; | ||
974 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | ||
975 | ;; | ||
976 | esac | ||
977 | fi | ||
978 | done | ||
979 | if $ac_cache_corrupted; then | ||
980 | { echo "$as_me:980: error: changes in the environment can compromise the build" >&5 | ||
981 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
982 | { { echo "$as_me:982: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
983 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
984 | { (exit 1); exit 1; }; } | ||
985 | fi | ||
986 | |||
987 | ac_ext=c | ||
988 | ac_cpp='$CPP $CPPFLAGS' | ||
989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
992 | |||
993 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
994 | *c*,-n*) ECHO_N= ECHO_C=' | ||
995 | ' ECHO_T=' ' ;; | ||
996 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
997 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
998 | esac | ||
999 | echo "#! $SHELL" >conftest.sh | ||
1000 | echo "exit 0" >>conftest.sh | ||
1001 | chmod +x conftest.sh | ||
1002 | if { (echo "$as_me:1002: PATH=\".;.\"; conftest.sh") >&5 | ||
1003 | (PATH=".;."; conftest.sh) 2>&5 | ||
1004 | ac_status=$? | ||
1005 | echo "$as_me:1005: \$? = $ac_status" >&5 | ||
1006 | (exit $ac_status); }; then | ||
1007 | ac_path_separator=';' | ||
1008 | else | ||
1009 | ac_path_separator=: | ||
1010 | fi | ||
1011 | PATH_SEPARATOR="$ac_path_separator" | ||
1012 | rm -f conftest.sh | ||
1013 | |||
1014 | ac_config_headers="$ac_config_headers config.h" | ||
1015 | |||
1016 | ac_ext=c | ||
1017 | ac_cpp='$CPP $CPPFLAGS' | ||
1018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1021 | if test -n "$ac_tool_prefix"; then | ||
1022 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1023 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1024 | echo "$as_me:1024: checking for $ac_word" >&5 | ||
1025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1026 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1028 | else | ||
1029 | if test -n "$CC"; then | ||
1030 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1031 | else | ||
1032 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1033 | ac_dummy="$PATH" | ||
1034 | for ac_dir in $ac_dummy; do | ||
1035 | IFS=$ac_save_IFS | ||
1036 | test -z "$ac_dir" && ac_dir=. | ||
1037 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1038 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1039 | echo "$as_me:1039: found $ac_dir/$ac_word" >&5 | ||
1040 | break | ||
1041 | done | ||
1042 | |||
1043 | fi | ||
1044 | fi | ||
1045 | CC=$ac_cv_prog_CC | ||
1046 | if test -n "$CC"; then | ||
1047 | echo "$as_me:1047: result: $CC" >&5 | ||
1048 | echo "${ECHO_T}$CC" >&6 | ||
1049 | else | ||
1050 | echo "$as_me:1050: result: no" >&5 | ||
1051 | echo "${ECHO_T}no" >&6 | ||
1052 | fi | ||
1053 | |||
1054 | fi | ||
1055 | if test -z "$ac_cv_prog_CC"; then | ||
1056 | ac_ct_CC=$CC | ||
1057 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1058 | set dummy gcc; ac_word=$2 | ||
1059 | echo "$as_me:1059: checking for $ac_word" >&5 | ||
1060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1063 | else | ||
1064 | if test -n "$ac_ct_CC"; then | ||
1065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1066 | else | ||
1067 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1068 | ac_dummy="$PATH" | ||
1069 | for ac_dir in $ac_dummy; do | ||
1070 | IFS=$ac_save_IFS | ||
1071 | test -z "$ac_dir" && ac_dir=. | ||
1072 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1073 | ac_cv_prog_ac_ct_CC="gcc" | ||
1074 | echo "$as_me:1074: found $ac_dir/$ac_word" >&5 | ||
1075 | break | ||
1076 | done | ||
1077 | |||
1078 | fi | ||
1079 | fi | ||
1080 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1081 | if test -n "$ac_ct_CC"; then | ||
1082 | echo "$as_me:1082: result: $ac_ct_CC" >&5 | ||
1083 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1084 | else | ||
1085 | echo "$as_me:1085: result: no" >&5 | ||
1086 | echo "${ECHO_T}no" >&6 | ||
1087 | fi | ||
1088 | |||
1089 | CC=$ac_ct_CC | ||
1090 | else | ||
1091 | CC="$ac_cv_prog_CC" | ||
1092 | fi | ||
1093 | |||
1094 | if test -z "$CC"; then | ||
1095 | if test -n "$ac_tool_prefix"; then | ||
1096 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1097 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1098 | echo "$as_me:1098: checking for $ac_word" >&5 | ||
1099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1100 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1102 | else | ||
1103 | if test -n "$CC"; then | ||
1104 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1105 | else | ||
1106 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1107 | ac_dummy="$PATH" | ||
1108 | for ac_dir in $ac_dummy; do | ||
1109 | IFS=$ac_save_IFS | ||
1110 | test -z "$ac_dir" && ac_dir=. | ||
1111 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1112 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1113 | echo "$as_me:1113: found $ac_dir/$ac_word" >&5 | ||
1114 | break | ||
1115 | done | ||
1116 | |||
1117 | fi | ||
1118 | fi | ||
1119 | CC=$ac_cv_prog_CC | ||
1120 | if test -n "$CC"; then | ||
1121 | echo "$as_me:1121: result: $CC" >&5 | ||
1122 | echo "${ECHO_T}$CC" >&6 | ||
1123 | else | ||
1124 | echo "$as_me:1124: result: no" >&5 | ||
1125 | echo "${ECHO_T}no" >&6 | ||
1126 | fi | ||
1127 | |||
1128 | fi | ||
1129 | if test -z "$ac_cv_prog_CC"; then | ||
1130 | ac_ct_CC=$CC | ||
1131 | # Extract the first word of "cc", so it can be a program name with args. | ||
1132 | set dummy cc; ac_word=$2 | ||
1133 | echo "$as_me:1133: checking for $ac_word" >&5 | ||
1134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1137 | else | ||
1138 | if test -n "$ac_ct_CC"; then | ||
1139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1140 | else | ||
1141 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1142 | ac_dummy="$PATH" | ||
1143 | for ac_dir in $ac_dummy; do | ||
1144 | IFS=$ac_save_IFS | ||
1145 | test -z "$ac_dir" && ac_dir=. | ||
1146 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1147 | ac_cv_prog_ac_ct_CC="cc" | ||
1148 | echo "$as_me:1148: found $ac_dir/$ac_word" >&5 | ||
1149 | break | ||
1150 | done | ||
1151 | |||
1152 | fi | ||
1153 | fi | ||
1154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1155 | if test -n "$ac_ct_CC"; then | ||
1156 | echo "$as_me:1156: result: $ac_ct_CC" >&5 | ||
1157 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1158 | else | ||
1159 | echo "$as_me:1159: result: no" >&5 | ||
1160 | echo "${ECHO_T}no" >&6 | ||
1161 | fi | ||
1162 | |||
1163 | CC=$ac_ct_CC | ||
1164 | else | ||
1165 | CC="$ac_cv_prog_CC" | ||
1166 | fi | ||
1167 | |||
1168 | fi | ||
1169 | if test -z "$CC"; then | ||
1170 | # Extract the first word of "cc", so it can be a program name with args. | ||
1171 | set dummy cc; ac_word=$2 | ||
1172 | echo "$as_me:1172: checking for $ac_word" >&5 | ||
1173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1174 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1176 | else | ||
1177 | if test -n "$CC"; then | ||
1178 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1179 | else | ||
1180 | ac_prog_rejected=no | ||
1181 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1182 | ac_dummy="$PATH" | ||
1183 | for ac_dir in $ac_dummy; do | ||
1184 | IFS=$ac_save_IFS | ||
1185 | test -z "$ac_dir" && ac_dir=. | ||
1186 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1187 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
1188 | ac_prog_rejected=yes | ||
1189 | continue | ||
1190 | fi | ||
1191 | ac_cv_prog_CC="cc" | ||
1192 | echo "$as_me:1192: found $ac_dir/$ac_word" >&5 | ||
1193 | break | ||
1194 | done | ||
1195 | |||
1196 | if test $ac_prog_rejected = yes; then | ||
1197 | # We found a bogon in the path, so make sure we never use it. | ||
1198 | set dummy $ac_cv_prog_CC | ||
1199 | shift | ||
1200 | if test $# != 0; then | ||
1201 | # We chose a different compiler from the bogus one. | ||
1202 | # However, it has the same basename, so the bogon will be chosen | ||
1203 | # first if we set CC to just the basename; use the full file name. | ||
1204 | shift | ||
1205 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | ||
1206 | shift | ||
1207 | ac_cv_prog_CC="$@" | ||
1208 | fi | ||
1209 | fi | ||
1210 | fi | ||
1211 | fi | ||
1212 | CC=$ac_cv_prog_CC | ||
1213 | if test -n "$CC"; then | ||
1214 | echo "$as_me:1214: result: $CC" >&5 | ||
1215 | echo "${ECHO_T}$CC" >&6 | ||
1216 | else | ||
1217 | echo "$as_me:1217: result: no" >&5 | ||
1218 | echo "${ECHO_T}no" >&6 | ||
1219 | fi | ||
1220 | |||
1221 | fi | ||
1222 | if test -z "$CC"; then | ||
1223 | if test -n "$ac_tool_prefix"; then | ||
1224 | for ac_prog in cl | ||
1225 | do | ||
1226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1228 | echo "$as_me:1228: checking for $ac_word" >&5 | ||
1229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1230 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1232 | else | ||
1233 | if test -n "$CC"; then | ||
1234 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1235 | else | ||
1236 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1237 | ac_dummy="$PATH" | ||
1238 | for ac_dir in $ac_dummy; do | ||
1239 | IFS=$ac_save_IFS | ||
1240 | test -z "$ac_dir" && ac_dir=. | ||
1241 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1243 | echo "$as_me:1243: found $ac_dir/$ac_word" >&5 | ||
1244 | break | ||
1245 | done | ||
1246 | |||
1247 | fi | ||
1248 | fi | ||
1249 | CC=$ac_cv_prog_CC | ||
1250 | if test -n "$CC"; then | ||
1251 | echo "$as_me:1251: result: $CC" >&5 | ||
1252 | echo "${ECHO_T}$CC" >&6 | ||
1253 | else | ||
1254 | echo "$as_me:1254: result: no" >&5 | ||
1255 | echo "${ECHO_T}no" >&6 | ||
1256 | fi | ||
1257 | |||
1258 | test -n "$CC" && break | ||
1259 | done | ||
1260 | fi | ||
1261 | if test -z "$CC"; then | ||
1262 | ac_ct_CC=$CC | ||
1263 | for ac_prog in cl | ||
1264 | do | ||
1265 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1266 | set dummy $ac_prog; ac_word=$2 | ||
1267 | echo "$as_me:1267: checking for $ac_word" >&5 | ||
1268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1271 | else | ||
1272 | if test -n "$ac_ct_CC"; then | ||
1273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1274 | else | ||
1275 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1276 | ac_dummy="$PATH" | ||
1277 | for ac_dir in $ac_dummy; do | ||
1278 | IFS=$ac_save_IFS | ||
1279 | test -z "$ac_dir" && ac_dir=. | ||
1280 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1281 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1282 | echo "$as_me:1282: found $ac_dir/$ac_word" >&5 | ||
1283 | break | ||
1284 | done | ||
1285 | |||
1286 | fi | ||
1287 | fi | ||
1288 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1289 | if test -n "$ac_ct_CC"; then | ||
1290 | echo "$as_me:1290: result: $ac_ct_CC" >&5 | ||
1291 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1292 | else | ||
1293 | echo "$as_me:1293: result: no" >&5 | ||
1294 | echo "${ECHO_T}no" >&6 | ||
1295 | fi | ||
1296 | |||
1297 | test -n "$ac_ct_CC" && break | ||
1298 | done | ||
1299 | |||
1300 | CC=$ac_ct_CC | ||
1301 | fi | ||
1302 | |||
1303 | fi | ||
1304 | |||
1305 | test -z "$CC" && { { echo "$as_me:1305: error: no acceptable cc found in \$PATH" >&5 | ||
1306 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | ||
1307 | { (exit 1); exit 1; }; } | ||
1308 | |||
1309 | # Provide some information about the compiler. | ||
1310 | echo "$as_me:1310:" \ | ||
1311 | "checking for C compiler version" >&5 | ||
1312 | ac_compiler=`set X $ac_compile; echo $2` | ||
1313 | { (eval echo "$as_me:1313: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1314 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1315 | ac_status=$? | ||
1316 | echo "$as_me:1316: \$? = $ac_status" >&5 | ||
1317 | (exit $ac_status); } | ||
1318 | { (eval echo "$as_me:1318: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1319 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1320 | ac_status=$? | ||
1321 | echo "$as_me:1321: \$? = $ac_status" >&5 | ||
1322 | (exit $ac_status); } | ||
1323 | { (eval echo "$as_me:1323: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1324 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1325 | ac_status=$? | ||
1326 | echo "$as_me:1326: \$? = $ac_status" >&5 | ||
1327 | (exit $ac_status); } | ||
1328 | |||
1329 | cat >conftest.$ac_ext <<_ACEOF | ||
1330 | #line 1330 "configure" | ||
1331 | #include "confdefs.h" | ||
1332 | |||
1333 | int | ||
1334 | main () | ||
1335 | { | ||
1336 | |||
1337 | ; | ||
1338 | return 0; | ||
1339 | } | ||
1340 | _ACEOF | ||
1341 | ac_clean_files_save=$ac_clean_files | ||
1342 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1343 | # Try to create an executable without -o first, disregard a.out. | ||
1344 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1345 | # of exeext. | ||
1346 | echo "$as_me:1346: checking for C compiler default output" >&5 | ||
1347 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1348 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1349 | if { (eval echo "$as_me:1349: \"$ac_link_default\"") >&5 | ||
1350 | (eval $ac_link_default) 2>&5 | ||
1351 | ac_status=$? | ||
1352 | echo "$as_me:1352: \$? = $ac_status" >&5 | ||
1353 | (exit $ac_status); }; then | ||
1354 | # Find the output, starting from the most likely. This scheme is | ||
1355 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1356 | # resort. | ||
1357 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | ||
1358 | ls a.out conftest 2>/dev/null; | ||
1359 | ls a.* conftest.* 2>/dev/null`; do | ||
1360 | case $ac_file in | ||
1361 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1362 | a.out ) # We found the default executable, but exeext='' is most | ||
1363 | # certainly right. | ||
1364 | break;; | ||
1365 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1366 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1367 | export ac_cv_exeext | ||
1368 | break;; | ||
1369 | * ) break;; | ||
1370 | esac | ||
1371 | done | ||
1372 | else | ||
1373 | echo "$as_me: failed program was:" >&5 | ||
1374 | cat conftest.$ac_ext >&5 | ||
1375 | { { echo "$as_me:1375: error: C compiler cannot create executables" >&5 | ||
1376 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1377 | { (exit 77); exit 77; }; } | ||
1378 | fi | ||
1379 | |||
1380 | ac_exeext=$ac_cv_exeext | ||
1381 | echo "$as_me:1381: result: $ac_file" >&5 | ||
1382 | echo "${ECHO_T}$ac_file" >&6 | ||
1383 | |||
1384 | # Check the compiler produces executables we can run. If not, either | ||
1385 | # the compiler is broken, or we cross compile. | ||
1386 | echo "$as_me:1386: checking whether the C compiler works" >&5 | ||
1387 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1388 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1389 | # If not cross compiling, check that we can run a simple program. | ||
1390 | if test "$cross_compiling" != yes; then | ||
1391 | if { ac_try='./$ac_file' | ||
1392 | { (eval echo "$as_me:1392: \"$ac_try\"") >&5 | ||
1393 | (eval $ac_try) 2>&5 | ||
1394 | ac_status=$? | ||
1395 | echo "$as_me:1395: \$? = $ac_status" >&5 | ||
1396 | (exit $ac_status); }; }; then | ||
1397 | cross_compiling=no | ||
1398 | else | ||
1399 | if test "$cross_compiling" = maybe; then | ||
1400 | cross_compiling=yes | ||
1401 | else | ||
1402 | { { echo "$as_me:1402: error: cannot run C compiled programs. | ||
1403 | If you meant to cross compile, use \`--host'." >&5 | ||
1404 | echo "$as_me: error: cannot run C compiled programs. | ||
1405 | If you meant to cross compile, use \`--host'." >&2;} | ||
1406 | { (exit 1); exit 1; }; } | ||
1407 | fi | ||
1408 | fi | ||
1409 | fi | ||
1410 | echo "$as_me:1410: result: yes" >&5 | ||
1411 | echo "${ECHO_T}yes" >&6 | ||
1412 | |||
1413 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1414 | ac_clean_files=$ac_clean_files_save | ||
1415 | # Check the compiler produces executables we can run. If not, either | ||
1416 | # the compiler is broken, or we cross compile. | ||
1417 | echo "$as_me:1417: checking whether we are cross compiling" >&5 | ||
1418 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1419 | echo "$as_me:1419: result: $cross_compiling" >&5 | ||
1420 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1421 | |||
1422 | echo "$as_me:1422: checking for executable suffix" >&5 | ||
1423 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | ||
1424 | if { (eval echo "$as_me:1424: \"$ac_link\"") >&5 | ||
1425 | (eval $ac_link) 2>&5 | ||
1426 | ac_status=$? | ||
1427 | echo "$as_me:1427: \$? = $ac_status" >&5 | ||
1428 | (exit $ac_status); }; then | ||
1429 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1430 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1431 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1432 | # `rm'. | ||
1433 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1434 | case $ac_file in | ||
1435 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1436 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1437 | export ac_cv_exeext | ||
1438 | break;; | ||
1439 | * ) break;; | ||
1440 | esac | ||
1441 | done | ||
1442 | else | ||
1443 | { { echo "$as_me:1443: error: cannot compute EXEEXT: cannot compile and link" >&5 | ||
1444 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | ||
1445 | { (exit 1); exit 1; }; } | ||
1446 | fi | ||
1447 | |||
1448 | rm -f conftest$ac_cv_exeext | ||
1449 | echo "$as_me:1449: result: $ac_cv_exeext" >&5 | ||
1450 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1451 | |||
1452 | rm -f conftest.$ac_ext | ||
1453 | EXEEXT=$ac_cv_exeext | ||
1454 | ac_exeext=$EXEEXT | ||
1455 | echo "$as_me:1455: checking for object suffix" >&5 | ||
1456 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | ||
1457 | if test "${ac_cv_objext+set}" = set; then | ||
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1459 | else | ||
1460 | cat >conftest.$ac_ext <<_ACEOF | ||
1461 | #line 1461 "configure" | ||
1462 | #include "confdefs.h" | ||
1463 | |||
1464 | int | ||
1465 | main () | ||
1466 | { | ||
1467 | |||
1468 | ; | ||
1469 | return 0; | ||
1470 | } | ||
1471 | _ACEOF | ||
1472 | rm -f conftest.o conftest.obj | ||
1473 | if { (eval echo "$as_me:1473: \"$ac_compile\"") >&5 | ||
1474 | (eval $ac_compile) 2>&5 | ||
1475 | ac_status=$? | ||
1476 | echo "$as_me:1476: \$? = $ac_status" >&5 | ||
1477 | (exit $ac_status); }; then | ||
1478 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1479 | case $ac_file in | ||
1480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1481 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1482 | break;; | ||
1483 | esac | ||
1484 | done | ||
1485 | else | ||
1486 | echo "$as_me: failed program was:" >&5 | ||
1487 | cat conftest.$ac_ext >&5 | ||
1488 | { { echo "$as_me:1488: error: cannot compute OBJEXT: cannot compile" >&5 | ||
1489 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | ||
1490 | { (exit 1); exit 1; }; } | ||
1491 | fi | ||
1492 | |||
1493 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1494 | fi | ||
1495 | echo "$as_me:1495: result: $ac_cv_objext" >&5 | ||
1496 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1497 | OBJEXT=$ac_cv_objext | ||
1498 | ac_objext=$OBJEXT | ||
1499 | echo "$as_me:1499: checking whether we are using the GNU C compiler" >&5 | ||
1500 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1501 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1503 | else | ||
1504 | cat >conftest.$ac_ext <<_ACEOF | ||
1505 | #line 1505 "configure" | ||
1506 | #include "confdefs.h" | ||
1507 | |||
1508 | int | ||
1509 | main () | ||
1510 | { | ||
1511 | #ifndef __GNUC__ | ||
1512 | choke me | ||
1513 | #endif | ||
1514 | |||
1515 | ; | ||
1516 | return 0; | ||
1517 | } | ||
1518 | _ACEOF | ||
1519 | rm -f conftest.$ac_objext | ||
1520 | if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5 | ||
1521 | (eval $ac_compile) 2>&5 | ||
1522 | ac_status=$? | ||
1523 | echo "$as_me:1523: \$? = $ac_status" >&5 | ||
1524 | (exit $ac_status); } && | ||
1525 | { ac_try='test -s conftest.$ac_objext' | ||
1526 | { (eval echo "$as_me:1526: \"$ac_try\"") >&5 | ||
1527 | (eval $ac_try) 2>&5 | ||
1528 | ac_status=$? | ||
1529 | echo "$as_me:1529: \$? = $ac_status" >&5 | ||
1530 | (exit $ac_status); }; }; then | ||
1531 | ac_compiler_gnu=yes | ||
1532 | else | ||
1533 | echo "$as_me: failed program was:" >&5 | ||
1534 | cat conftest.$ac_ext >&5 | ||
1535 | ac_compiler_gnu=no | ||
1536 | fi | ||
1537 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1538 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1539 | |||
1540 | fi | ||
1541 | echo "$as_me:1541: result: $ac_cv_c_compiler_gnu" >&5 | ||
1542 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1543 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1544 | ac_test_CFLAGS=${CFLAGS+set} | ||
1545 | ac_save_CFLAGS=$CFLAGS | ||
1546 | CFLAGS="-g" | ||
1547 | echo "$as_me:1547: checking whether $CC accepts -g" >&5 | ||
1548 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1549 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1551 | else | ||
1552 | cat >conftest.$ac_ext <<_ACEOF | ||
1553 | #line 1553 "configure" | ||
1554 | #include "confdefs.h" | ||
1555 | |||
1556 | int | ||
1557 | main () | ||
1558 | { | ||
1559 | |||
1560 | ; | ||
1561 | return 0; | ||
1562 | } | ||
1563 | _ACEOF | ||
1564 | rm -f conftest.$ac_objext | ||
1565 | if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5 | ||
1566 | (eval $ac_compile) 2>&5 | ||
1567 | ac_status=$? | ||
1568 | echo "$as_me:1568: \$? = $ac_status" >&5 | ||
1569 | (exit $ac_status); } && | ||
1570 | { ac_try='test -s conftest.$ac_objext' | ||
1571 | { (eval echo "$as_me:1571: \"$ac_try\"") >&5 | ||
1572 | (eval $ac_try) 2>&5 | ||
1573 | ac_status=$? | ||
1574 | echo "$as_me:1574: \$? = $ac_status" >&5 | ||
1575 | (exit $ac_status); }; }; then | ||
1576 | ac_cv_prog_cc_g=yes | ||
1577 | else | ||
1578 | echo "$as_me: failed program was:" >&5 | ||
1579 | cat conftest.$ac_ext >&5 | ||
1580 | ac_cv_prog_cc_g=no | ||
1581 | fi | ||
1582 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1583 | fi | ||
1584 | echo "$as_me:1584: result: $ac_cv_prog_cc_g" >&5 | ||
1585 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1586 | if test "$ac_test_CFLAGS" = set; then | ||
1587 | CFLAGS=$ac_save_CFLAGS | ||
1588 | elif test $ac_cv_prog_cc_g = yes; then | ||
1589 | if test "$GCC" = yes; then | ||
1590 | CFLAGS="-g -O2" | ||
1591 | else | ||
1592 | CFLAGS="-g" | ||
1593 | fi | ||
1594 | else | ||
1595 | if test "$GCC" = yes; then | ||
1596 | CFLAGS="-O2" | ||
1597 | else | ||
1598 | CFLAGS= | ||
1599 | fi | ||
1600 | fi | ||
1601 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1602 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1603 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1604 | # the declaration of exit, since it's the most demanding environment. | ||
1605 | cat >conftest.$ac_ext <<_ACEOF | ||
1606 | #ifndef __cplusplus | ||
1607 | choke me | ||
1608 | #endif | ||
1609 | _ACEOF | ||
1610 | rm -f conftest.$ac_objext | ||
1611 | if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5 | ||
1612 | (eval $ac_compile) 2>&5 | ||
1613 | ac_status=$? | ||
1614 | echo "$as_me:1614: \$? = $ac_status" >&5 | ||
1615 | (exit $ac_status); } && | ||
1616 | { ac_try='test -s conftest.$ac_objext' | ||
1617 | { (eval echo "$as_me:1617: \"$ac_try\"") >&5 | ||
1618 | (eval $ac_try) 2>&5 | ||
1619 | ac_status=$? | ||
1620 | echo "$as_me:1620: \$? = $ac_status" >&5 | ||
1621 | (exit $ac_status); }; }; then | ||
1622 | for ac_declaration in \ | ||
1623 | ''\ | ||
1624 | '#include <stdlib.h>' \ | ||
1625 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1626 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1627 | 'extern "C" void exit (int) throw ();' \ | ||
1628 | 'extern "C" void exit (int);' \ | ||
1629 | 'void exit (int);' | ||
1630 | do | ||
1631 | cat >conftest.$ac_ext <<_ACEOF | ||
1632 | #line 1632 "configure" | ||
1633 | #include "confdefs.h" | ||
1634 | #include <stdlib.h> | ||
1635 | $ac_declaration | ||
1636 | int | ||
1637 | main () | ||
1638 | { | ||
1639 | exit (42); | ||
1640 | ; | ||
1641 | return 0; | ||
1642 | } | ||
1643 | _ACEOF | ||
1644 | rm -f conftest.$ac_objext | ||
1645 | if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5 | ||
1646 | (eval $ac_compile) 2>&5 | ||
1647 | ac_status=$? | ||
1648 | echo "$as_me:1648: \$? = $ac_status" >&5 | ||
1649 | (exit $ac_status); } && | ||
1650 | { ac_try='test -s conftest.$ac_objext' | ||
1651 | { (eval echo "$as_me:1651: \"$ac_try\"") >&5 | ||
1652 | (eval $ac_try) 2>&5 | ||
1653 | ac_status=$? | ||
1654 | echo "$as_me:1654: \$? = $ac_status" >&5 | ||
1655 | (exit $ac_status); }; }; then | ||
1656 | : | ||
1657 | else | ||
1658 | echo "$as_me: failed program was:" >&5 | ||
1659 | cat conftest.$ac_ext >&5 | ||
1660 | continue | ||
1661 | fi | ||
1662 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1663 | cat >conftest.$ac_ext <<_ACEOF | ||
1664 | #line 1664 "configure" | ||
1665 | #include "confdefs.h" | ||
1666 | $ac_declaration | ||
1667 | int | ||
1668 | main () | ||
1669 | { | ||
1670 | exit (42); | ||
1671 | ; | ||
1672 | return 0; | ||
1673 | } | ||
1674 | _ACEOF | ||
1675 | rm -f conftest.$ac_objext | ||
1676 | if { (eval echo "$as_me:1676: \"$ac_compile\"") >&5 | ||
1677 | (eval $ac_compile) 2>&5 | ||
1678 | ac_status=$? | ||
1679 | echo "$as_me:1679: \$? = $ac_status" >&5 | ||
1680 | (exit $ac_status); } && | ||
1681 | { ac_try='test -s conftest.$ac_objext' | ||
1682 | { (eval echo "$as_me:1682: \"$ac_try\"") >&5 | ||
1683 | (eval $ac_try) 2>&5 | ||
1684 | ac_status=$? | ||
1685 | echo "$as_me:1685: \$? = $ac_status" >&5 | ||
1686 | (exit $ac_status); }; }; then | ||
1687 | break | ||
1688 | else | ||
1689 | echo "$as_me: failed program was:" >&5 | ||
1690 | cat conftest.$ac_ext >&5 | ||
1691 | fi | ||
1692 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1693 | done | ||
1694 | rm -f conftest* | ||
1695 | if test -n "$ac_declaration"; then | ||
1696 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1697 | echo $ac_declaration >>confdefs.h | ||
1698 | echo '#endif' >>confdefs.h | ||
1699 | fi | ||
1700 | |||
1701 | else | ||
1702 | echo "$as_me: failed program was:" >&5 | ||
1703 | cat conftest.$ac_ext >&5 | ||
1704 | fi | ||
1705 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1706 | ac_ext=c | ||
1707 | ac_cpp='$CPP $CPPFLAGS' | ||
1708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1711 | |||
1712 | ac_aux_dir= | ||
1713 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
1714 | if test -f $ac_dir/install-sh; then | ||
1715 | ac_aux_dir=$ac_dir | ||
1716 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1717 | break | ||
1718 | elif test -f $ac_dir/install.sh; then | ||
1719 | ac_aux_dir=$ac_dir | ||
1720 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1721 | break | ||
1722 | elif test -f $ac_dir/shtool; then | ||
1723 | ac_aux_dir=$ac_dir | ||
1724 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1725 | break | ||
1726 | fi | ||
1727 | done | ||
1728 | if test -z "$ac_aux_dir"; then | ||
1729 | { { echo "$as_me:1729: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
1730 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
1731 | { (exit 1); exit 1; }; } | ||
1732 | fi | ||
1733 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
1734 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
1735 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
1736 | |||
1737 | # Make sure we can run config.sub. | ||
1738 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
1739 | { { echo "$as_me:1739: error: cannot run $ac_config_sub" >&5 | ||
1740 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
1741 | { (exit 1); exit 1; }; } | ||
1742 | |||
1743 | echo "$as_me:1743: checking build system type" >&5 | ||
1744 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
1745 | if test "${ac_cv_build+set}" = set; then | ||
1746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1747 | else | ||
1748 | ac_cv_build_alias=$build_alias | ||
1749 | test -z "$ac_cv_build_alias" && | ||
1750 | ac_cv_build_alias=`$ac_config_guess` | ||
1751 | test -z "$ac_cv_build_alias" && | ||
1752 | { { echo "$as_me:1752: error: cannot guess build type; you must specify one" >&5 | ||
1753 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
1754 | { (exit 1); exit 1; }; } | ||
1755 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
1756 | { { echo "$as_me:1756: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | ||
1757 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | ||
1758 | { (exit 1); exit 1; }; } | ||
1759 | |||
1760 | fi | ||
1761 | echo "$as_me:1761: result: $ac_cv_build" >&5 | ||
1762 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
1763 | build=$ac_cv_build | ||
1764 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1765 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1766 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1767 | |||
1768 | echo "$as_me:1768: checking host system type" >&5 | ||
1769 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
1770 | if test "${ac_cv_host+set}" = set; then | ||
1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1772 | else | ||
1773 | ac_cv_host_alias=$host_alias | ||
1774 | test -z "$ac_cv_host_alias" && | ||
1775 | ac_cv_host_alias=$ac_cv_build_alias | ||
1776 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
1777 | { { echo "$as_me:1777: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
1778 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
1779 | { (exit 1); exit 1; }; } | ||
1780 | |||
1781 | fi | ||
1782 | echo "$as_me:1782: result: $ac_cv_host" >&5 | ||
1783 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
1784 | host=$ac_cv_host | ||
1785 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1786 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1787 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1788 | |||
1789 | echo "$as_me:1789: checking whether byte ordering is bigendian" >&5 | ||
1790 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
1791 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
1792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1793 | else | ||
1794 | ac_cv_c_bigendian=unknown | ||
1795 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
1796 | cat >conftest.$ac_ext <<_ACEOF | ||
1797 | #line 1797 "configure" | ||
1798 | #include "confdefs.h" | ||
1799 | #include <sys/types.h> | ||
1800 | #include <sys/param.h> | ||
1801 | |||
1802 | int | ||
1803 | main () | ||
1804 | { | ||
1805 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
1806 | bogus endian macros | ||
1807 | #endif | ||
1808 | |||
1809 | ; | ||
1810 | return 0; | ||
1811 | } | ||
1812 | _ACEOF | ||
1813 | rm -f conftest.$ac_objext | ||
1814 | if { (eval echo "$as_me:1814: \"$ac_compile\"") >&5 | ||
1815 | (eval $ac_compile) 2>&5 | ||
1816 | ac_status=$? | ||
1817 | echo "$as_me:1817: \$? = $ac_status" >&5 | ||
1818 | (exit $ac_status); } && | ||
1819 | { ac_try='test -s conftest.$ac_objext' | ||
1820 | { (eval echo "$as_me:1820: \"$ac_try\"") >&5 | ||
1821 | (eval $ac_try) 2>&5 | ||
1822 | ac_status=$? | ||
1823 | echo "$as_me:1823: \$? = $ac_status" >&5 | ||
1824 | (exit $ac_status); }; }; then | ||
1825 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
1826 | cat >conftest.$ac_ext <<_ACEOF | ||
1827 | #line 1827 "configure" | ||
1828 | #include "confdefs.h" | ||
1829 | #include <sys/types.h> | ||
1830 | #include <sys/param.h> | ||
1831 | |||
1832 | int | ||
1833 | main () | ||
1834 | { | ||
1835 | #if BYTE_ORDER != BIG_ENDIAN | ||
1836 | not big endian | ||
1837 | #endif | ||
1838 | |||
1839 | ; | ||
1840 | return 0; | ||
1841 | } | ||
1842 | _ACEOF | ||
1843 | rm -f conftest.$ac_objext | ||
1844 | if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 | ||
1845 | (eval $ac_compile) 2>&5 | ||
1846 | ac_status=$? | ||
1847 | echo "$as_me:1847: \$? = $ac_status" >&5 | ||
1848 | (exit $ac_status); } && | ||
1849 | { ac_try='test -s conftest.$ac_objext' | ||
1850 | { (eval echo "$as_me:1850: \"$ac_try\"") >&5 | ||
1851 | (eval $ac_try) 2>&5 | ||
1852 | ac_status=$? | ||
1853 | echo "$as_me:1853: \$? = $ac_status" >&5 | ||
1854 | (exit $ac_status); }; }; then | ||
1855 | ac_cv_c_bigendian=yes | ||
1856 | else | ||
1857 | echo "$as_me: failed program was:" >&5 | ||
1858 | cat conftest.$ac_ext >&5 | ||
1859 | ac_cv_c_bigendian=no | ||
1860 | fi | ||
1861 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1862 | else | ||
1863 | echo "$as_me: failed program was:" >&5 | ||
1864 | cat conftest.$ac_ext >&5 | ||
1865 | fi | ||
1866 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1867 | if test $ac_cv_c_bigendian = unknown; then | ||
1868 | if test "$cross_compiling" = yes; then | ||
1869 | { { echo "$as_me:1869: error: cannot run test program while cross compiling" >&5 | ||
1870 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
1871 | { (exit 1); exit 1; }; } | ||
1872 | else | ||
1873 | cat >conftest.$ac_ext <<_ACEOF | ||
1874 | #line 1874 "configure" | ||
1875 | #include "confdefs.h" | ||
1876 | int | ||
1877 | main () | ||
1878 | { | ||
1879 | /* Are we little or big endian? From Harbison&Steele. */ | ||
1880 | union | ||
1881 | { | ||
1882 | long l; | ||
1883 | char c[sizeof (long)]; | ||
1884 | } u; | ||
1885 | u.l = 1; | ||
1886 | exit (u.c[sizeof (long) - 1] == 1); | ||
1887 | } | ||
1888 | _ACEOF | ||
1889 | rm -f conftest$ac_exeext | ||
1890 | if { (eval echo "$as_me:1890: \"$ac_link\"") >&5 | ||
1891 | (eval $ac_link) 2>&5 | ||
1892 | ac_status=$? | ||
1893 | echo "$as_me:1893: \$? = $ac_status" >&5 | ||
1894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
1895 | { (eval echo "$as_me:1895: \"$ac_try\"") >&5 | ||
1896 | (eval $ac_try) 2>&5 | ||
1897 | ac_status=$? | ||
1898 | echo "$as_me:1898: \$? = $ac_status" >&5 | ||
1899 | (exit $ac_status); }; }; then | ||
1900 | ac_cv_c_bigendian=no | ||
1901 | else | ||
1902 | echo "$as_me: program exited with status $ac_status" >&5 | ||
1903 | echo "$as_me: failed program was:" >&5 | ||
1904 | cat conftest.$ac_ext >&5 | ||
1905 | ac_cv_c_bigendian=yes | ||
1906 | fi | ||
1907 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
1908 | fi | ||
1909 | fi | ||
1910 | fi | ||
1911 | echo "$as_me:1911: result: $ac_cv_c_bigendian" >&5 | ||
1912 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
1913 | if test $ac_cv_c_bigendian = yes; then | ||
1914 | |||
1915 | cat >>confdefs.h <<\EOF | ||
1916 | #define WORDS_BIGENDIAN 1 | ||
1917 | EOF | ||
1918 | |||
1919 | fi | ||
1920 | |||
1921 | # Checks for programs. | ||
1922 | for ac_prog in mawk gawk nawk awk | ||
1923 | do | ||
1924 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1925 | set dummy $ac_prog; ac_word=$2 | ||
1926 | echo "$as_me:1926: checking for $ac_word" >&5 | ||
1927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1928 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1930 | else | ||
1931 | if test -n "$AWK"; then | ||
1932 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1933 | else | ||
1934 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
1935 | ac_dummy="$PATH" | ||
1936 | for ac_dir in $ac_dummy; do | ||
1937 | IFS=$ac_save_IFS | ||
1938 | test -z "$ac_dir" && ac_dir=. | ||
1939 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
1940 | ac_cv_prog_AWK="$ac_prog" | ||
1941 | echo "$as_me:1941: found $ac_dir/$ac_word" >&5 | ||
1942 | break | ||
1943 | done | ||
1944 | |||
1945 | fi | ||
1946 | fi | ||
1947 | AWK=$ac_cv_prog_AWK | ||
1948 | if test -n "$AWK"; then | ||
1949 | echo "$as_me:1949: result: $AWK" >&5 | ||
1950 | echo "${ECHO_T}$AWK" >&6 | ||
1951 | else | ||
1952 | echo "$as_me:1952: result: no" >&5 | ||
1953 | echo "${ECHO_T}no" >&6 | ||
1954 | fi | ||
1955 | |||
1956 | test -n "$AWK" && break | ||
1957 | done | ||
1958 | |||
1959 | ac_ext=c | ||
1960 | ac_cpp='$CPP $CPPFLAGS' | ||
1961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1964 | echo "$as_me:1964: checking how to run the C preprocessor" >&5 | ||
1965 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
1966 | # On Suns, sometimes $CPP names a directory. | ||
1967 | if test -n "$CPP" && test -d "$CPP"; then | ||
1968 | CPP= | ||
1969 | fi | ||
1970 | if test -z "$CPP"; then | ||
1971 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1973 | else | ||
1974 | # Double quotes because CPP needs to be expanded | ||
1975 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
1976 | do | ||
1977 | ac_preproc_ok=false | ||
1978 | for ac_c_preproc_warn_flag in '' yes | ||
1979 | do | ||
1980 | # Use a header file that comes with gcc, so configuring glibc | ||
1981 | # with a fresh cross-compiler works. | ||
1982 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
1983 | # not just through cpp. "Syntax error" is here to catch this case. | ||
1984 | cat >conftest.$ac_ext <<_ACEOF | ||
1985 | #line 1985 "configure" | ||
1986 | #include "confdefs.h" | ||
1987 | #include <assert.h> | ||
1988 | Syntax error | ||
1989 | _ACEOF | ||
1990 | if { (eval echo "$as_me:1990: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
1991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
1992 | ac_status=$? | ||
1993 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
1994 | rm -f conftest.er1 | ||
1995 | cat conftest.err >&5 | ||
1996 | echo "$as_me:1996: \$? = $ac_status" >&5 | ||
1997 | (exit $ac_status); } >/dev/null; then | ||
1998 | if test -s conftest.err; then | ||
1999 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2000 | else | ||
2001 | ac_cpp_err= | ||
2002 | fi | ||
2003 | else | ||
2004 | ac_cpp_err=yes | ||
2005 | fi | ||
2006 | if test -z "$ac_cpp_err"; then | ||
2007 | : | ||
2008 | else | ||
2009 | echo "$as_me: failed program was:" >&5 | ||
2010 | cat conftest.$ac_ext >&5 | ||
2011 | # Broken: fails on valid input. | ||
2012 | continue | ||
2013 | fi | ||
2014 | rm -f conftest.err conftest.$ac_ext | ||
2015 | |||
2016 | # OK, works on sane cases. Now check whether non-existent headers | ||
2017 | # can be detected and how. | ||
2018 | cat >conftest.$ac_ext <<_ACEOF | ||
2019 | #line 2019 "configure" | ||
2020 | #include "confdefs.h" | ||
2021 | #include <ac_nonexistent.h> | ||
2022 | _ACEOF | ||
2023 | if { (eval echo "$as_me:2023: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2025 | ac_status=$? | ||
2026 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2027 | rm -f conftest.er1 | ||
2028 | cat conftest.err >&5 | ||
2029 | echo "$as_me:2029: \$? = $ac_status" >&5 | ||
2030 | (exit $ac_status); } >/dev/null; then | ||
2031 | if test -s conftest.err; then | ||
2032 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2033 | else | ||
2034 | ac_cpp_err= | ||
2035 | fi | ||
2036 | else | ||
2037 | ac_cpp_err=yes | ||
2038 | fi | ||
2039 | if test -z "$ac_cpp_err"; then | ||
2040 | # Broken: success on invalid input. | ||
2041 | continue | ||
2042 | else | ||
2043 | echo "$as_me: failed program was:" >&5 | ||
2044 | cat conftest.$ac_ext >&5 | ||
2045 | # Passes both tests. | ||
2046 | ac_preproc_ok=: | ||
2047 | break | ||
2048 | fi | ||
2049 | rm -f conftest.err conftest.$ac_ext | ||
2050 | |||
2051 | done | ||
2052 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2053 | rm -f conftest.err conftest.$ac_ext | ||
2054 | if $ac_preproc_ok; then | ||
2055 | break | ||
2056 | fi | ||
2057 | |||
2058 | done | ||
2059 | ac_cv_prog_CPP=$CPP | ||
2060 | |||
2061 | fi | ||
2062 | CPP=$ac_cv_prog_CPP | ||
2063 | else | ||
2064 | ac_cv_prog_CPP=$CPP | ||
2065 | fi | ||
2066 | echo "$as_me:2066: result: $CPP" >&5 | ||
2067 | echo "${ECHO_T}$CPP" >&6 | ||
2068 | ac_preproc_ok=false | ||
2069 | for ac_c_preproc_warn_flag in '' yes | ||
2070 | do | ||
2071 | # Use a header file that comes with gcc, so configuring glibc | ||
2072 | # with a fresh cross-compiler works. | ||
2073 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2074 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2075 | cat >conftest.$ac_ext <<_ACEOF | ||
2076 | #line 2076 "configure" | ||
2077 | #include "confdefs.h" | ||
2078 | #include <assert.h> | ||
2079 | Syntax error | ||
2080 | _ACEOF | ||
2081 | if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2083 | ac_status=$? | ||
2084 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2085 | rm -f conftest.er1 | ||
2086 | cat conftest.err >&5 | ||
2087 | echo "$as_me:2087: \$? = $ac_status" >&5 | ||
2088 | (exit $ac_status); } >/dev/null; then | ||
2089 | if test -s conftest.err; then | ||
2090 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2091 | else | ||
2092 | ac_cpp_err= | ||
2093 | fi | ||
2094 | else | ||
2095 | ac_cpp_err=yes | ||
2096 | fi | ||
2097 | if test -z "$ac_cpp_err"; then | ||
2098 | : | ||
2099 | else | ||
2100 | echo "$as_me: failed program was:" >&5 | ||
2101 | cat conftest.$ac_ext >&5 | ||
2102 | # Broken: fails on valid input. | ||
2103 | continue | ||
2104 | fi | ||
2105 | rm -f conftest.err conftest.$ac_ext | ||
2106 | |||
2107 | # OK, works on sane cases. Now check whether non-existent headers | ||
2108 | # can be detected and how. | ||
2109 | cat >conftest.$ac_ext <<_ACEOF | ||
2110 | #line 2110 "configure" | ||
2111 | #include "confdefs.h" | ||
2112 | #include <ac_nonexistent.h> | ||
2113 | _ACEOF | ||
2114 | if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2116 | ac_status=$? | ||
2117 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2118 | rm -f conftest.er1 | ||
2119 | cat conftest.err >&5 | ||
2120 | echo "$as_me:2120: \$? = $ac_status" >&5 | ||
2121 | (exit $ac_status); } >/dev/null; then | ||
2122 | if test -s conftest.err; then | ||
2123 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2124 | else | ||
2125 | ac_cpp_err= | ||
2126 | fi | ||
2127 | else | ||
2128 | ac_cpp_err=yes | ||
2129 | fi | ||
2130 | if test -z "$ac_cpp_err"; then | ||
2131 | # Broken: success on invalid input. | ||
2132 | continue | ||
2133 | else | ||
2134 | echo "$as_me: failed program was:" >&5 | ||
2135 | cat conftest.$ac_ext >&5 | ||
2136 | # Passes both tests. | ||
2137 | ac_preproc_ok=: | ||
2138 | break | ||
2139 | fi | ||
2140 | rm -f conftest.err conftest.$ac_ext | ||
2141 | |||
2142 | done | ||
2143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2144 | rm -f conftest.err conftest.$ac_ext | ||
2145 | if $ac_preproc_ok; then | ||
2146 | : | ||
2147 | else | ||
2148 | { { echo "$as_me:2148: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2149 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2150 | { (exit 1); exit 1; }; } | ||
2151 | fi | ||
2152 | |||
2153 | ac_ext=c | ||
2154 | ac_cpp='$CPP $CPPFLAGS' | ||
2155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2158 | |||
2159 | if test -n "$ac_tool_prefix"; then | ||
2160 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2161 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2162 | echo "$as_me:2162: checking for $ac_word" >&5 | ||
2163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2164 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2166 | else | ||
2167 | if test -n "$RANLIB"; then | ||
2168 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2169 | else | ||
2170 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2171 | ac_dummy="$PATH" | ||
2172 | for ac_dir in $ac_dummy; do | ||
2173 | IFS=$ac_save_IFS | ||
2174 | test -z "$ac_dir" && ac_dir=. | ||
2175 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2176 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2177 | echo "$as_me:2177: found $ac_dir/$ac_word" >&5 | ||
2178 | break | ||
2179 | done | ||
2180 | |||
2181 | fi | ||
2182 | fi | ||
2183 | RANLIB=$ac_cv_prog_RANLIB | ||
2184 | if test -n "$RANLIB"; then | ||
2185 | echo "$as_me:2185: result: $RANLIB" >&5 | ||
2186 | echo "${ECHO_T}$RANLIB" >&6 | ||
2187 | else | ||
2188 | echo "$as_me:2188: result: no" >&5 | ||
2189 | echo "${ECHO_T}no" >&6 | ||
2190 | fi | ||
2191 | |||
2192 | fi | ||
2193 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2194 | ac_ct_RANLIB=$RANLIB | ||
2195 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2196 | set dummy ranlib; ac_word=$2 | ||
2197 | echo "$as_me:2197: checking for $ac_word" >&5 | ||
2198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2199 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2201 | else | ||
2202 | if test -n "$ac_ct_RANLIB"; then | ||
2203 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2204 | else | ||
2205 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2206 | ac_dummy="$PATH" | ||
2207 | for ac_dir in $ac_dummy; do | ||
2208 | IFS=$ac_save_IFS | ||
2209 | test -z "$ac_dir" && ac_dir=. | ||
2210 | $as_executable_p "$ac_dir/$ac_word" || continue | ||
2211 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2212 | echo "$as_me:2212: found $ac_dir/$ac_word" >&5 | ||
2213 | break | ||
2214 | done | ||
2215 | |||
2216 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2217 | fi | ||
2218 | fi | ||
2219 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2220 | if test -n "$ac_ct_RANLIB"; then | ||
2221 | echo "$as_me:2221: result: $ac_ct_RANLIB" >&5 | ||
2222 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2223 | else | ||
2224 | echo "$as_me:2224: result: no" >&5 | ||
2225 | echo "${ECHO_T}no" >&6 | ||
2226 | fi | ||
2227 | |||
2228 | RANLIB=$ac_ct_RANLIB | ||
2229 | else | ||
2230 | RANLIB="$ac_cv_prog_RANLIB" | ||
2231 | fi | ||
2232 | |||
2233 | # Find a good install program. We prefer a C program (faster), | ||
2234 | # so one script is as good as another. But avoid the broken or | ||
2235 | # incompatible versions: | ||
2236 | # SysV /etc/install, /usr/sbin/install | ||
2237 | # SunOS /usr/etc/install | ||
2238 | # IRIX /sbin/install | ||
2239 | # AIX /bin/install | ||
2240 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2241 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2242 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2243 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2244 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2245 | echo "$as_me:2245: checking for a BSD compatible install" >&5 | ||
2246 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | ||
2247 | if test -z "$INSTALL"; then | ||
2248 | if test "${ac_cv_path_install+set}" = set; then | ||
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2250 | else | ||
2251 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2252 | for ac_dir in $PATH; do | ||
2253 | IFS=$ac_save_IFS | ||
2254 | # Account for people who put trailing slashes in PATH elements. | ||
2255 | case $ac_dir/ in | ||
2256 | / | ./ | .// | /cC/* \ | ||
2257 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | ||
2258 | | /usr/ucb/* ) ;; | ||
2259 | *) | ||
2260 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2261 | # Don't use installbsd from OSF since it installs stuff as root | ||
2262 | # by default. | ||
2263 | for ac_prog in ginstall scoinst install; do | ||
2264 | if $as_executable_p "$ac_dir/$ac_prog"; then | ||
2265 | if test $ac_prog = install && | ||
2266 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2267 | # AIX install. It has an incompatible calling convention. | ||
2268 | : | ||
2269 | elif test $ac_prog = install && | ||
2270 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | ||
2271 | # program-specific install script used by HP pwplus--don't use. | ||
2272 | : | ||
2273 | else | ||
2274 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
2275 | break 2 | ||
2276 | fi | ||
2277 | fi | ||
2278 | done | ||
2279 | ;; | ||
2280 | esac | ||
2281 | done | ||
2282 | |||
2283 | fi | ||
2284 | if test "${ac_cv_path_install+set}" = set; then | ||
2285 | INSTALL=$ac_cv_path_install | ||
2286 | else | ||
2287 | # As a last resort, use the slow shell script. We don't cache a | ||
2288 | # path for INSTALL within a source directory, because that will | ||
2289 | # break other packages using the cache if that directory is | ||
2290 | # removed, or if the path is relative. | ||
2291 | INSTALL=$ac_install_sh | ||
2292 | fi | ||
2293 | fi | ||
2294 | echo "$as_me:2294: result: $INSTALL" >&5 | ||
2295 | echo "${ECHO_T}$INSTALL" >&6 | ||
2296 | |||
2297 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2298 | # It thinks the first close brace ends the variable substitution. | ||
2299 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2300 | |||
2301 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2302 | |||
2303 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2304 | |||
2305 | # Extract the first word of "ar", so it can be a program name with args. | ||
2306 | set dummy ar; ac_word=$2 | ||
2307 | echo "$as_me:2307: checking for $ac_word" >&5 | ||
2308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2309 | if test "${ac_cv_path_AR+set}" = set; then | ||
2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2311 | else | ||
2312 | case $AR in | ||
2313 | [\\/]* | ?:[\\/]*) | ||
2314 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2315 | ;; | ||
2316 | *) | ||
2317 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2318 | ac_dummy="$PATH" | ||
2319 | for ac_dir in $ac_dummy; do | ||
2320 | IFS=$ac_save_IFS | ||
2321 | test -z "$ac_dir" && ac_dir=. | ||
2322 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2323 | ac_cv_path_AR="$ac_dir/$ac_word" | ||
2324 | echo "$as_me:2324: found $ac_dir/$ac_word" >&5 | ||
2325 | break | ||
2326 | fi | ||
2327 | done | ||
2328 | |||
2329 | ;; | ||
2330 | esac | ||
2331 | fi | ||
2332 | AR=$ac_cv_path_AR | ||
2333 | |||
2334 | if test -n "$AR"; then | ||
2335 | echo "$as_me:2335: result: $AR" >&5 | ||
2336 | echo "${ECHO_T}$AR" >&6 | ||
2337 | else | ||
2338 | echo "$as_me:2338: result: no" >&5 | ||
2339 | echo "${ECHO_T}no" >&6 | ||
2340 | fi | ||
2341 | |||
2342 | for ac_prog in perl5 perl | ||
2343 | do | ||
2344 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2345 | set dummy $ac_prog; ac_word=$2 | ||
2346 | echo "$as_me:2346: checking for $ac_word" >&5 | ||
2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2348 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2350 | else | ||
2351 | case $PERL in | ||
2352 | [\\/]* | ?:[\\/]*) | ||
2353 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2354 | ;; | ||
2355 | *) | ||
2356 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2357 | ac_dummy="$PATH" | ||
2358 | for ac_dir in $ac_dummy; do | ||
2359 | IFS=$ac_save_IFS | ||
2360 | test -z "$ac_dir" && ac_dir=. | ||
2361 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2362 | ac_cv_path_PERL="$ac_dir/$ac_word" | ||
2363 | echo "$as_me:2363: found $ac_dir/$ac_word" >&5 | ||
2364 | break | ||
2365 | fi | ||
2366 | done | ||
2367 | |||
2368 | ;; | ||
2369 | esac | ||
2370 | fi | ||
2371 | PERL=$ac_cv_path_PERL | ||
2372 | |||
2373 | if test -n "$PERL"; then | ||
2374 | echo "$as_me:2374: result: $PERL" >&5 | ||
2375 | echo "${ECHO_T}$PERL" >&6 | ||
2376 | else | ||
2377 | echo "$as_me:2377: result: no" >&5 | ||
2378 | echo "${ECHO_T}no" >&6 | ||
2379 | fi | ||
2380 | |||
2381 | test -n "$PERL" && break | ||
2382 | done | ||
2383 | |||
2384 | # Extract the first word of "sed", so it can be a program name with args. | ||
2385 | set dummy sed; ac_word=$2 | ||
2386 | echo "$as_me:2386: checking for $ac_word" >&5 | ||
2387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2388 | if test "${ac_cv_path_SED+set}" = set; then | ||
2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2390 | else | ||
2391 | case $SED in | ||
2392 | [\\/]* | ?:[\\/]*) | ||
2393 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2394 | ;; | ||
2395 | *) | ||
2396 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2397 | ac_dummy="$PATH" | ||
2398 | for ac_dir in $ac_dummy; do | ||
2399 | IFS=$ac_save_IFS | ||
2400 | test -z "$ac_dir" && ac_dir=. | ||
2401 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2402 | ac_cv_path_SED="$ac_dir/$ac_word" | ||
2403 | echo "$as_me:2403: found $ac_dir/$ac_word" >&5 | ||
2404 | break | ||
2405 | fi | ||
2406 | done | ||
2407 | |||
2408 | ;; | ||
2409 | esac | ||
2410 | fi | ||
2411 | SED=$ac_cv_path_SED | ||
2412 | |||
2413 | if test -n "$SED"; then | ||
2414 | echo "$as_me:2414: result: $SED" >&5 | ||
2415 | echo "${ECHO_T}$SED" >&6 | ||
2416 | else | ||
2417 | echo "$as_me:2417: result: no" >&5 | ||
2418 | echo "${ECHO_T}no" >&6 | ||
2419 | fi | ||
2420 | |||
2421 | # Extract the first word of "ent", so it can be a program name with args. | ||
2422 | set dummy ent; ac_word=$2 | ||
2423 | echo "$as_me:2423: checking for $ac_word" >&5 | ||
2424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2425 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2427 | else | ||
2428 | case $ENT in | ||
2429 | [\\/]* | ?:[\\/]*) | ||
2430 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2431 | ;; | ||
2432 | *) | ||
2433 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2434 | ac_dummy="$PATH" | ||
2435 | for ac_dir in $ac_dummy; do | ||
2436 | IFS=$ac_save_IFS | ||
2437 | test -z "$ac_dir" && ac_dir=. | ||
2438 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2439 | ac_cv_path_ENT="$ac_dir/$ac_word" | ||
2440 | echo "$as_me:2440: found $ac_dir/$ac_word" >&5 | ||
2441 | break | ||
2442 | fi | ||
2443 | done | ||
2444 | |||
2445 | ;; | ||
2446 | esac | ||
2447 | fi | ||
2448 | ENT=$ac_cv_path_ENT | ||
2449 | |||
2450 | if test -n "$ENT"; then | ||
2451 | echo "$as_me:2451: result: $ENT" >&5 | ||
2452 | echo "${ECHO_T}$ENT" >&6 | ||
2453 | else | ||
2454 | echo "$as_me:2454: result: no" >&5 | ||
2455 | echo "${ECHO_T}no" >&6 | ||
2456 | fi | ||
2457 | |||
2458 | # Extract the first word of "bash", so it can be a program name with args. | ||
2459 | set dummy bash; ac_word=$2 | ||
2460 | echo "$as_me:2460: checking for $ac_word" >&5 | ||
2461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2462 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2464 | else | ||
2465 | case $TEST_MINUS_S_SH in | ||
2466 | [\\/]* | ?:[\\/]*) | ||
2467 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2468 | ;; | ||
2469 | *) | ||
2470 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2471 | ac_dummy="$PATH" | ||
2472 | for ac_dir in $ac_dummy; do | ||
2473 | IFS=$ac_save_IFS | ||
2474 | test -z "$ac_dir" && ac_dir=. | ||
2475 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2476 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2477 | echo "$as_me:2477: found $ac_dir/$ac_word" >&5 | ||
2478 | break | ||
2479 | fi | ||
2480 | done | ||
2481 | |||
2482 | ;; | ||
2483 | esac | ||
2484 | fi | ||
2485 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2486 | |||
2487 | if test -n "$TEST_MINUS_S_SH"; then | ||
2488 | echo "$as_me:2488: result: $TEST_MINUS_S_SH" >&5 | ||
2489 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2490 | else | ||
2491 | echo "$as_me:2491: result: no" >&5 | ||
2492 | echo "${ECHO_T}no" >&6 | ||
2493 | fi | ||
2494 | |||
2495 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2496 | set dummy ksh; ac_word=$2 | ||
2497 | echo "$as_me:2497: checking for $ac_word" >&5 | ||
2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2499 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2501 | else | ||
2502 | case $TEST_MINUS_S_SH in | ||
2503 | [\\/]* | ?:[\\/]*) | ||
2504 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2505 | ;; | ||
2506 | *) | ||
2507 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2508 | ac_dummy="$PATH" | ||
2509 | for ac_dir in $ac_dummy; do | ||
2510 | IFS=$ac_save_IFS | ||
2511 | test -z "$ac_dir" && ac_dir=. | ||
2512 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2513 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2514 | echo "$as_me:2514: found $ac_dir/$ac_word" >&5 | ||
2515 | break | ||
2516 | fi | ||
2517 | done | ||
2518 | |||
2519 | ;; | ||
2520 | esac | ||
2521 | fi | ||
2522 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2523 | |||
2524 | if test -n "$TEST_MINUS_S_SH"; then | ||
2525 | echo "$as_me:2525: result: $TEST_MINUS_S_SH" >&5 | ||
2526 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2527 | else | ||
2528 | echo "$as_me:2528: result: no" >&5 | ||
2529 | echo "${ECHO_T}no" >&6 | ||
2530 | fi | ||
2531 | |||
2532 | # Extract the first word of "sh", so it can be a program name with args. | ||
2533 | set dummy sh; ac_word=$2 | ||
2534 | echo "$as_me:2534: checking for $ac_word" >&5 | ||
2535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2536 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2538 | else | ||
2539 | case $TEST_MINUS_S_SH in | ||
2540 | [\\/]* | ?:[\\/]*) | ||
2541 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2542 | ;; | ||
2543 | *) | ||
2544 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2545 | ac_dummy="$PATH" | ||
2546 | for ac_dir in $ac_dummy; do | ||
2547 | IFS=$ac_save_IFS | ||
2548 | test -z "$ac_dir" && ac_dir=. | ||
2549 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2550 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
2551 | echo "$as_me:2551: found $ac_dir/$ac_word" >&5 | ||
2552 | break | ||
2553 | fi | ||
2554 | done | ||
2555 | |||
2556 | ;; | ||
2557 | esac | ||
2558 | fi | ||
2559 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2560 | |||
2561 | if test -n "$TEST_MINUS_S_SH"; then | ||
2562 | echo "$as_me:2562: result: $TEST_MINUS_S_SH" >&5 | ||
2563 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2564 | else | ||
2565 | echo "$as_me:2565: result: no" >&5 | ||
2566 | echo "${ECHO_T}no" >&6 | ||
2567 | fi | ||
2568 | |||
2569 | # Extract the first word of "sh", so it can be a program name with args. | ||
2570 | set dummy sh; ac_word=$2 | ||
2571 | echo "$as_me:2571: checking for $ac_word" >&5 | ||
2572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2573 | if test "${ac_cv_path_SH+set}" = set; then | ||
2574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2575 | else | ||
2576 | case $SH in | ||
2577 | [\\/]* | ?:[\\/]*) | ||
2578 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2579 | ;; | ||
2580 | *) | ||
2581 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2582 | ac_dummy="$PATH" | ||
2583 | for ac_dir in $ac_dummy; do | ||
2584 | IFS=$ac_save_IFS | ||
2585 | test -z "$ac_dir" && ac_dir=. | ||
2586 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2587 | ac_cv_path_SH="$ac_dir/$ac_word" | ||
2588 | echo "$as_me:2588: found $ac_dir/$ac_word" >&5 | ||
2589 | break | ||
2590 | fi | ||
2591 | done | ||
2592 | |||
2593 | ;; | ||
2594 | esac | ||
2595 | fi | ||
2596 | SH=$ac_cv_path_SH | ||
2597 | |||
2598 | if test -n "$SH"; then | ||
2599 | echo "$as_me:2599: result: $SH" >&5 | ||
2600 | echo "${ECHO_T}$SH" >&6 | ||
2601 | else | ||
2602 | echo "$as_me:2602: result: no" >&5 | ||
2603 | echo "${ECHO_T}no" >&6 | ||
2604 | fi | ||
2605 | |||
2606 | # System features | ||
2607 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2608 | if test "${enable_largefile+set}" = set; then | ||
2609 | enableval="$enable_largefile" | ||
2610 | |||
2611 | fi; | ||
2612 | if test "$enable_largefile" != no; then | ||
2613 | |||
2614 | echo "$as_me:2614: checking for special C compiler options needed for large files" >&5 | ||
2615 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2616 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2618 | else | ||
2619 | ac_cv_sys_largefile_CC=no | ||
2620 | if test "$GCC" != yes; then | ||
2621 | ac_save_CC=$CC | ||
2622 | while :; do | ||
2623 | # IRIX 6.2 and later do not support large files by default, | ||
2624 | # so use the C compiler's -n32 option if that helps. | ||
2625 | cat >conftest.$ac_ext <<_ACEOF | ||
2626 | #line 2626 "configure" | ||
2627 | #include "confdefs.h" | ||
2628 | #include <sys/types.h> | ||
2629 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2630 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2631 | since some C++ compilers masquerading as C compilers | ||
2632 | incorrectly reject 9223372036854775807. */ | ||
2633 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2634 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2635 | && LARGE_OFF_T % 2147483647 == 1) | ||
2636 | ? 1 : -1]; | ||
2637 | int | ||
2638 | main () | ||
2639 | { | ||
2640 | |||
2641 | ; | ||
2642 | return 0; | ||
2643 | } | ||
2644 | _ACEOF | ||
2645 | rm -f conftest.$ac_objext | ||
2646 | if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 | ||
2647 | (eval $ac_compile) 2>&5 | ||
2648 | ac_status=$? | ||
2649 | echo "$as_me:2649: \$? = $ac_status" >&5 | ||
2650 | (exit $ac_status); } && | ||
2651 | { ac_try='test -s conftest.$ac_objext' | ||
2652 | { (eval echo "$as_me:2652: \"$ac_try\"") >&5 | ||
2653 | (eval $ac_try) 2>&5 | ||
2654 | ac_status=$? | ||
2655 | echo "$as_me:2655: \$? = $ac_status" >&5 | ||
2656 | (exit $ac_status); }; }; then | ||
2657 | break | ||
2658 | else | ||
2659 | echo "$as_me: failed program was:" >&5 | ||
2660 | cat conftest.$ac_ext >&5 | ||
2661 | fi | ||
2662 | rm -f conftest.$ac_objext | ||
2663 | CC="$CC -n32" | ||
2664 | rm -f conftest.$ac_objext | ||
2665 | if { (eval echo "$as_me:2665: \"$ac_compile\"") >&5 | ||
2666 | (eval $ac_compile) 2>&5 | ||
2667 | ac_status=$? | ||
2668 | echo "$as_me:2668: \$? = $ac_status" >&5 | ||
2669 | (exit $ac_status); } && | ||
2670 | { ac_try='test -s conftest.$ac_objext' | ||
2671 | { (eval echo "$as_me:2671: \"$ac_try\"") >&5 | ||
2672 | (eval $ac_try) 2>&5 | ||
2673 | ac_status=$? | ||
2674 | echo "$as_me:2674: \$? = $ac_status" >&5 | ||
2675 | (exit $ac_status); }; }; then | ||
2676 | ac_cv_sys_largefile_CC=' -n32'; break | ||
2677 | else | ||
2678 | echo "$as_me: failed program was:" >&5 | ||
2679 | cat conftest.$ac_ext >&5 | ||
2680 | fi | ||
2681 | rm -f conftest.$ac_objext | ||
2682 | break | ||
2683 | done | ||
2684 | CC=$ac_save_CC | ||
2685 | rm -f conftest.$ac_ext | ||
2686 | fi | ||
2687 | fi | ||
2688 | echo "$as_me:2688: result: $ac_cv_sys_largefile_CC" >&5 | ||
2689 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
2690 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
2691 | CC=$CC$ac_cv_sys_largefile_CC | ||
2692 | fi | ||
2693 | |||
2694 | echo "$as_me:2694: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
2695 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
2696 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2698 | else | ||
2699 | while :; do | ||
2700 | ac_cv_sys_file_offset_bits=no | ||
2701 | cat >conftest.$ac_ext <<_ACEOF | ||
2702 | #line 2702 "configure" | ||
2703 | #include "confdefs.h" | ||
2704 | #include <sys/types.h> | ||
2705 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2706 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2707 | since some C++ compilers masquerading as C compilers | ||
2708 | incorrectly reject 9223372036854775807. */ | ||
2709 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2710 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2711 | && LARGE_OFF_T % 2147483647 == 1) | ||
2712 | ? 1 : -1]; | ||
2713 | int | ||
2714 | main () | ||
2715 | { | ||
2716 | |||
2717 | ; | ||
2718 | return 0; | ||
2719 | } | ||
2720 | _ACEOF | ||
2721 | rm -f conftest.$ac_objext | ||
2722 | if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5 | ||
2723 | (eval $ac_compile) 2>&5 | ||
2724 | ac_status=$? | ||
2725 | echo "$as_me:2725: \$? = $ac_status" >&5 | ||
2726 | (exit $ac_status); } && | ||
2727 | { ac_try='test -s conftest.$ac_objext' | ||
2728 | { (eval echo "$as_me:2728: \"$ac_try\"") >&5 | ||
2729 | (eval $ac_try) 2>&5 | ||
2730 | ac_status=$? | ||
2731 | echo "$as_me:2731: \$? = $ac_status" >&5 | ||
2732 | (exit $ac_status); }; }; then | ||
2733 | break | ||
2734 | else | ||
2735 | echo "$as_me: failed program was:" >&5 | ||
2736 | cat conftest.$ac_ext >&5 | ||
2737 | fi | ||
2738 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2739 | cat >conftest.$ac_ext <<_ACEOF | ||
2740 | #line 2740 "configure" | ||
2741 | #include "confdefs.h" | ||
2742 | #define _FILE_OFFSET_BITS 64 | ||
2743 | #include <sys/types.h> | ||
2744 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2745 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2746 | since some C++ compilers masquerading as C compilers | ||
2747 | incorrectly reject 9223372036854775807. */ | ||
2748 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2749 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2750 | && LARGE_OFF_T % 2147483647 == 1) | ||
2751 | ? 1 : -1]; | ||
2752 | int | ||
2753 | main () | ||
2754 | { | ||
2755 | |||
2756 | ; | ||
2757 | return 0; | ||
2758 | } | ||
2759 | _ACEOF | ||
2760 | rm -f conftest.$ac_objext | ||
2761 | if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5 | ||
2762 | (eval $ac_compile) 2>&5 | ||
2763 | ac_status=$? | ||
2764 | echo "$as_me:2764: \$? = $ac_status" >&5 | ||
2765 | (exit $ac_status); } && | ||
2766 | { ac_try='test -s conftest.$ac_objext' | ||
2767 | { (eval echo "$as_me:2767: \"$ac_try\"") >&5 | ||
2768 | (eval $ac_try) 2>&5 | ||
2769 | ac_status=$? | ||
2770 | echo "$as_me:2770: \$? = $ac_status" >&5 | ||
2771 | (exit $ac_status); }; }; then | ||
2772 | ac_cv_sys_file_offset_bits=64; break | ||
2773 | else | ||
2774 | echo "$as_me: failed program was:" >&5 | ||
2775 | cat conftest.$ac_ext >&5 | ||
2776 | fi | ||
2777 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2778 | break | ||
2779 | done | ||
2780 | fi | ||
2781 | echo "$as_me:2781: result: $ac_cv_sys_file_offset_bits" >&5 | ||
2782 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
2783 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
2784 | |||
2785 | cat >>confdefs.h <<EOF | ||
2786 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
2787 | EOF | ||
2788 | |||
2789 | fi | ||
2790 | rm -f conftest* | ||
2791 | echo "$as_me:2791: checking for _LARGE_FILES value needed for large files" >&5 | ||
2792 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
2793 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
2794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2795 | else | ||
2796 | while :; do | ||
2797 | ac_cv_sys_large_files=no | ||
2798 | cat >conftest.$ac_ext <<_ACEOF | ||
2799 | #line 2799 "configure" | ||
2800 | #include "confdefs.h" | ||
2801 | #include <sys/types.h> | ||
2802 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2803 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2804 | since some C++ compilers masquerading as C compilers | ||
2805 | incorrectly reject 9223372036854775807. */ | ||
2806 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2807 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2808 | && LARGE_OFF_T % 2147483647 == 1) | ||
2809 | ? 1 : -1]; | ||
2810 | int | ||
2811 | main () | ||
2812 | { | ||
2813 | |||
2814 | ; | ||
2815 | return 0; | ||
2816 | } | ||
2817 | _ACEOF | ||
2818 | rm -f conftest.$ac_objext | ||
2819 | if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5 | ||
2820 | (eval $ac_compile) 2>&5 | ||
2821 | ac_status=$? | ||
2822 | echo "$as_me:2822: \$? = $ac_status" >&5 | ||
2823 | (exit $ac_status); } && | ||
2824 | { ac_try='test -s conftest.$ac_objext' | ||
2825 | { (eval echo "$as_me:2825: \"$ac_try\"") >&5 | ||
2826 | (eval $ac_try) 2>&5 | ||
2827 | ac_status=$? | ||
2828 | echo "$as_me:2828: \$? = $ac_status" >&5 | ||
2829 | (exit $ac_status); }; }; then | ||
2830 | break | ||
2831 | else | ||
2832 | echo "$as_me: failed program was:" >&5 | ||
2833 | cat conftest.$ac_ext >&5 | ||
2834 | fi | ||
2835 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2836 | cat >conftest.$ac_ext <<_ACEOF | ||
2837 | #line 2837 "configure" | ||
2838 | #include "confdefs.h" | ||
2839 | #define _LARGE_FILES 1 | ||
2840 | #include <sys/types.h> | ||
2841 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2842 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2843 | since some C++ compilers masquerading as C compilers | ||
2844 | incorrectly reject 9223372036854775807. */ | ||
2845 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2846 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2847 | && LARGE_OFF_T % 2147483647 == 1) | ||
2848 | ? 1 : -1]; | ||
2849 | int | ||
2850 | main () | ||
2851 | { | ||
2852 | |||
2853 | ; | ||
2854 | return 0; | ||
2855 | } | ||
2856 | _ACEOF | ||
2857 | rm -f conftest.$ac_objext | ||
2858 | if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5 | ||
2859 | (eval $ac_compile) 2>&5 | ||
2860 | ac_status=$? | ||
2861 | echo "$as_me:2861: \$? = $ac_status" >&5 | ||
2862 | (exit $ac_status); } && | ||
2863 | { ac_try='test -s conftest.$ac_objext' | ||
2864 | { (eval echo "$as_me:2864: \"$ac_try\"") >&5 | ||
2865 | (eval $ac_try) 2>&5 | ||
2866 | ac_status=$? | ||
2867 | echo "$as_me:2867: \$? = $ac_status" >&5 | ||
2868 | (exit $ac_status); }; }; then | ||
2869 | ac_cv_sys_large_files=1; break | ||
2870 | else | ||
2871 | echo "$as_me: failed program was:" >&5 | ||
2872 | cat conftest.$ac_ext >&5 | ||
2873 | fi | ||
2874 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2875 | break | ||
2876 | done | ||
2877 | fi | ||
2878 | echo "$as_me:2878: result: $ac_cv_sys_large_files" >&5 | ||
2879 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
2880 | if test "$ac_cv_sys_large_files" != no; then | ||
2881 | |||
2882 | cat >>confdefs.h <<EOF | ||
2883 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
2884 | EOF | ||
2885 | |||
2886 | fi | ||
2887 | rm -f conftest* | ||
2888 | fi | ||
2889 | |||
2890 | if test -z "$AR" ; then | ||
2891 | { { echo "$as_me:2891: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
2892 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
2893 | { (exit 1); exit 1; }; } | ||
2894 | fi | ||
2895 | |||
2896 | # Use LOGIN_PROGRAM from environment if possible | ||
2897 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
2898 | cat >>confdefs.h <<EOF | ||
2899 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
2900 | EOF | ||
2901 | |||
2902 | else | ||
2903 | # Search for login | ||
2904 | # Extract the first word of "login", so it can be a program name with args. | ||
2905 | set dummy login; ac_word=$2 | ||
2906 | echo "$as_me:2906: checking for $ac_word" >&5 | ||
2907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2908 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2910 | else | ||
2911 | case $LOGIN_PROGRAM_FALLBACK in | ||
2912 | [\\/]* | ?:[\\/]*) | ||
2913 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
2914 | ;; | ||
2915 | *) | ||
2916 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2917 | ac_dummy="$PATH" | ||
2918 | for ac_dir in $ac_dummy; do | ||
2919 | IFS=$ac_save_IFS | ||
2920 | test -z "$ac_dir" && ac_dir=. | ||
2921 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2922 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word" | ||
2923 | echo "$as_me:2923: found $ac_dir/$ac_word" >&5 | ||
2924 | break | ||
2925 | fi | ||
2926 | done | ||
2927 | |||
2928 | ;; | ||
2929 | esac | ||
2930 | fi | ||
2931 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
2932 | |||
2933 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
2934 | echo "$as_me:2934: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
2935 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
2936 | else | ||
2937 | echo "$as_me:2937: result: no" >&5 | ||
2938 | echo "${ECHO_T}no" >&6 | ||
2939 | fi | ||
2940 | |||
2941 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
2942 | cat >>confdefs.h <<EOF | ||
2943 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
2944 | EOF | ||
2945 | |||
2946 | fi | ||
2947 | fi | ||
2948 | |||
2949 | # Extract the first word of "passwd", so it can be a program name with args. | ||
2950 | set dummy passwd; ac_word=$2 | ||
2951 | echo "$as_me:2951: checking for $ac_word" >&5 | ||
2952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2953 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
2954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2955 | else | ||
2956 | case $PATH_PASSWD_PROG in | ||
2957 | [\\/]* | ?:[\\/]*) | ||
2958 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
2959 | ;; | ||
2960 | *) | ||
2961 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
2962 | ac_dummy="$PATH" | ||
2963 | for ac_dir in $ac_dummy; do | ||
2964 | IFS=$ac_save_IFS | ||
2965 | test -z "$ac_dir" && ac_dir=. | ||
2966 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
2967 | ac_cv_path_PATH_PASSWD_PROG="$ac_dir/$ac_word" | ||
2968 | echo "$as_me:2968: found $ac_dir/$ac_word" >&5 | ||
2969 | break | ||
2970 | fi | ||
2971 | done | ||
2972 | |||
2973 | ;; | ||
2974 | esac | ||
2975 | fi | ||
2976 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
2977 | |||
2978 | if test -n "$PATH_PASSWD_PROG"; then | ||
2979 | echo "$as_me:2979: result: $PATH_PASSWD_PROG" >&5 | ||
2980 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
2981 | else | ||
2982 | echo "$as_me:2982: result: no" >&5 | ||
2983 | echo "${ECHO_T}no" >&6 | ||
2984 | fi | ||
2985 | |||
2986 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
2987 | cat >>confdefs.h <<EOF | ||
2988 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
2989 | EOF | ||
2990 | |||
2991 | fi | ||
2992 | |||
2993 | if test -z "$LD" ; then | ||
2994 | LD=$CC | ||
2995 | fi | ||
2996 | |||
2997 | echo "$as_me:2997: checking for $CC option to accept ANSI C" >&5 | ||
2998 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2999 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3001 | else | ||
3002 | ac_cv_prog_cc_stdc=no | ||
3003 | ac_save_CC=$CC | ||
3004 | cat >conftest.$ac_ext <<_ACEOF | ||
3005 | #line 3005 "configure" | ||
3006 | #include "confdefs.h" | ||
3007 | #include <stdarg.h> | ||
3008 | #include <stdio.h> | ||
3009 | #include <sys/types.h> | ||
3010 | #include <sys/stat.h> | ||
3011 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3012 | struct buf { int x; }; | ||
3013 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3014 | static char *e (p, i) | ||
3015 | char **p; | ||
3016 | int i; | ||
3017 | { | ||
3018 | return p[i]; | ||
3019 | } | ||
3020 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3021 | { | ||
3022 | char *s; | ||
3023 | va_list v; | ||
3024 | va_start (v,p); | ||
3025 | s = g (p, va_arg (v,int)); | ||
3026 | va_end (v); | ||
3027 | return s; | ||
3028 | } | ||
3029 | int test (int i, double x); | ||
3030 | struct s1 {int (*f) (int a);}; | ||
3031 | struct s2 {int (*f) (double a);}; | ||
3032 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3033 | int argc; | ||
3034 | char **argv; | ||
3035 | int | ||
3036 | main () | ||
3037 | { | ||
3038 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3039 | ; | ||
3040 | return 0; | ||
3041 | } | ||
3042 | _ACEOF | ||
3043 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3044 | # breaks some systems' header files. | ||
3045 | # AIX -qlanglvl=ansi | ||
3046 | # Ultrix and OSF/1 -std1 | ||
3047 | # HP-UX 10.20 and later -Ae | ||
3048 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3049 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3050 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3051 | do | ||
3052 | CC="$ac_save_CC $ac_arg" | ||
3053 | rm -f conftest.$ac_objext | ||
3054 | if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5 | ||
3055 | (eval $ac_compile) 2>&5 | ||
3056 | ac_status=$? | ||
3057 | echo "$as_me:3057: \$? = $ac_status" >&5 | ||
3058 | (exit $ac_status); } && | ||
3059 | { ac_try='test -s conftest.$ac_objext' | ||
3060 | { (eval echo "$as_me:3060: \"$ac_try\"") >&5 | ||
3061 | (eval $ac_try) 2>&5 | ||
3062 | ac_status=$? | ||
3063 | echo "$as_me:3063: \$? = $ac_status" >&5 | ||
3064 | (exit $ac_status); }; }; then | ||
3065 | ac_cv_prog_cc_stdc=$ac_arg | ||
3066 | break | ||
3067 | else | ||
3068 | echo "$as_me: failed program was:" >&5 | ||
3069 | cat conftest.$ac_ext >&5 | ||
3070 | fi | ||
3071 | rm -f conftest.$ac_objext | ||
3072 | done | ||
3073 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3074 | CC=$ac_save_CC | ||
3075 | |||
3076 | fi | ||
3077 | |||
3078 | case "x$ac_cv_prog_cc_stdc" in | ||
3079 | x|xno) | ||
3080 | echo "$as_me:3080: result: none needed" >&5 | ||
3081 | echo "${ECHO_T}none needed" >&6 ;; | ||
3082 | *) | ||
3083 | echo "$as_me:3083: result: $ac_cv_prog_cc_stdc" >&5 | ||
3084 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3085 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3086 | esac | ||
3087 | |||
3088 | echo "$as_me:3088: checking for inline" >&5 | ||
3089 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3090 | if test "${ac_cv_c_inline+set}" = set; then | ||
3091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3092 | else | ||
3093 | ac_cv_c_inline=no | ||
3094 | for ac_kw in inline __inline__ __inline; do | ||
3095 | cat >conftest.$ac_ext <<_ACEOF | ||
3096 | #line 3096 "configure" | ||
3097 | #include "confdefs.h" | ||
3098 | #ifndef __cplusplus | ||
3099 | static $ac_kw int static_foo () {return 0; } | ||
3100 | $ac_kw int foo () {return 0; } | ||
3101 | #endif | ||
3102 | |||
3103 | _ACEOF | ||
3104 | rm -f conftest.$ac_objext | ||
3105 | if { (eval echo "$as_me:3105: \"$ac_compile\"") >&5 | ||
3106 | (eval $ac_compile) 2>&5 | ||
3107 | ac_status=$? | ||
3108 | echo "$as_me:3108: \$? = $ac_status" >&5 | ||
3109 | (exit $ac_status); } && | ||
3110 | { ac_try='test -s conftest.$ac_objext' | ||
3111 | { (eval echo "$as_me:3111: \"$ac_try\"") >&5 | ||
3112 | (eval $ac_try) 2>&5 | ||
3113 | ac_status=$? | ||
3114 | echo "$as_me:3114: \$? = $ac_status" >&5 | ||
3115 | (exit $ac_status); }; }; then | ||
3116 | ac_cv_c_inline=$ac_kw; break | ||
3117 | else | ||
3118 | echo "$as_me: failed program was:" >&5 | ||
3119 | cat conftest.$ac_ext >&5 | ||
3120 | fi | ||
3121 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3122 | done | ||
3123 | |||
3124 | fi | ||
3125 | echo "$as_me:3125: result: $ac_cv_c_inline" >&5 | ||
3126 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3127 | case $ac_cv_c_inline in | ||
3128 | inline | yes) ;; | ||
3129 | no) | ||
3130 | cat >>confdefs.h <<\EOF | ||
3131 | #define inline | ||
3132 | EOF | ||
3133 | ;; | ||
3134 | *) cat >>confdefs.h <<EOF | ||
3135 | #define inline $ac_cv_c_inline | ||
3136 | EOF | ||
3137 | ;; | ||
3138 | esac | ||
3139 | |||
3140 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3141 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3142 | fi | ||
3143 | |||
3144 | # Check whether --with-rpath or --without-rpath was given. | ||
3145 | if test "${with_rpath+set}" = set; then | ||
3146 | withval="$with_rpath" | ||
3147 | |||
3148 | if test "x$withval" = "xno" ; then | ||
3149 | need_dash_r="" | ||
3150 | fi | ||
3151 | if test "x$withval" = "xyes" ; then | ||
3152 | need_dash_r=1 | ||
3153 | fi | ||
3154 | |||
3155 | fi; | ||
3156 | |||
3157 | # Check for some target-specific stuff | ||
3158 | case "$host" in | ||
3159 | *-*-aix*) | ||
3160 | echo "$as_me:3160: checking how to specify blibpath for linker ($LD)" >&5 | ||
3161 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
3162 | if (test -z "$blibpath"); then | ||
3163 | blibpath="/usr/lib:/lib" | ||
3164 | fi | ||
3165 | saved_LDFLAGS="$LDFLAGS" | ||
3166 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
3167 | if (test -z "$blibflags"); then | ||
3168 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
3169 | cat >conftest.$ac_ext <<_ACEOF | ||
3170 | #line 3170 "configure" | ||
3171 | #include "confdefs.h" | ||
3172 | |||
3173 | int | ||
3174 | main () | ||
3175 | { | ||
3176 | |||
3177 | ; | ||
3178 | return 0; | ||
3179 | } | ||
3180 | _ACEOF | ||
3181 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3182 | if { (eval echo "$as_me:3182: \"$ac_link\"") >&5 | ||
3183 | (eval $ac_link) 2>&5 | ||
3184 | ac_status=$? | ||
3185 | echo "$as_me:3185: \$? = $ac_status" >&5 | ||
3186 | (exit $ac_status); } && | ||
3187 | { ac_try='test -s conftest$ac_exeext' | ||
3188 | { (eval echo "$as_me:3188: \"$ac_try\"") >&5 | ||
3189 | (eval $ac_try) 2>&5 | ||
3190 | ac_status=$? | ||
3191 | echo "$as_me:3191: \$? = $ac_status" >&5 | ||
3192 | (exit $ac_status); }; }; then | ||
3193 | blibflags=$tryflags | ||
3194 | else | ||
3195 | echo "$as_me: failed program was:" >&5 | ||
3196 | cat conftest.$ac_ext >&5 | ||
3197 | fi | ||
3198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3199 | fi | ||
3200 | done | ||
3201 | if (test -z "$blibflags"); then | ||
3202 | echo "$as_me:3202: result: not found" >&5 | ||
3203 | echo "${ECHO_T}not found" >&6 | ||
3204 | { { echo "$as_me:3204: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
3205 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
3206 | { (exit 1); exit 1; }; } | ||
3207 | else | ||
3208 | echo "$as_me:3208: result: $blibflags" >&5 | ||
3209 | echo "${ECHO_T}$blibflags" >&6 | ||
3210 | fi | ||
3211 | LDFLAGS="$saved_LDFLAGS" | ||
3212 | echo "$as_me:3212: checking for authenticate" >&5 | ||
3213 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3214 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3216 | else | ||
3217 | cat >conftest.$ac_ext <<_ACEOF | ||
3218 | #line 3218 "configure" | ||
3219 | #include "confdefs.h" | ||
3220 | /* System header to define __stub macros and hopefully few prototypes, | ||
3221 | which can conflict with char authenticate (); below. */ | ||
3222 | #include <assert.h> | ||
3223 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3224 | #ifdef __cplusplus | ||
3225 | extern "C" | ||
3226 | #endif | ||
3227 | /* We use char because int might match the return type of a gcc2 | ||
3228 | builtin and then its argument prototype would still apply. */ | ||
3229 | char authenticate (); | ||
3230 | char (*f) (); | ||
3231 | |||
3232 | int | ||
3233 | main () | ||
3234 | { | ||
3235 | /* The GNU C library defines this for functions which it implements | ||
3236 | to always fail with ENOSYS. Some functions are actually named | ||
3237 | something starting with __ and the normal name is an alias. */ | ||
3238 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3239 | choke me | ||
3240 | #else | ||
3241 | f = authenticate; | ||
3242 | #endif | ||
3243 | |||
3244 | ; | ||
3245 | return 0; | ||
3246 | } | ||
3247 | _ACEOF | ||
3248 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3249 | if { (eval echo "$as_me:3249: \"$ac_link\"") >&5 | ||
3250 | (eval $ac_link) 2>&5 | ||
3251 | ac_status=$? | ||
3252 | echo "$as_me:3252: \$? = $ac_status" >&5 | ||
3253 | (exit $ac_status); } && | ||
3254 | { ac_try='test -s conftest$ac_exeext' | ||
3255 | { (eval echo "$as_me:3255: \"$ac_try\"") >&5 | ||
3256 | (eval $ac_try) 2>&5 | ||
3257 | ac_status=$? | ||
3258 | echo "$as_me:3258: \$? = $ac_status" >&5 | ||
3259 | (exit $ac_status); }; }; then | ||
3260 | ac_cv_func_authenticate=yes | ||
3261 | else | ||
3262 | echo "$as_me: failed program was:" >&5 | ||
3263 | cat conftest.$ac_ext >&5 | ||
3264 | ac_cv_func_authenticate=no | ||
3265 | fi | ||
3266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3267 | fi | ||
3268 | echo "$as_me:3268: result: $ac_cv_func_authenticate" >&5 | ||
3269 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3270 | if test $ac_cv_func_authenticate = yes; then | ||
3271 | cat >>confdefs.h <<\EOF | ||
3272 | #define WITH_AIXAUTHENTICATE 1 | ||
3273 | EOF | ||
3274 | |||
3275 | else | ||
3276 | echo "$as_me:3276: checking for authenticate in -ls" >&5 | ||
3277 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3278 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3280 | else | ||
3281 | ac_check_lib_save_LIBS=$LIBS | ||
3282 | LIBS="-ls $LIBS" | ||
3283 | cat >conftest.$ac_ext <<_ACEOF | ||
3284 | #line 3284 "configure" | ||
3285 | #include "confdefs.h" | ||
3286 | |||
3287 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3288 | #ifdef __cplusplus | ||
3289 | extern "C" | ||
3290 | #endif | ||
3291 | /* We use char because int might match the return type of a gcc2 | ||
3292 | builtin and then its argument prototype would still apply. */ | ||
3293 | char authenticate (); | ||
3294 | int | ||
3295 | main () | ||
3296 | { | ||
3297 | authenticate (); | ||
3298 | ; | ||
3299 | return 0; | ||
3300 | } | ||
3301 | _ACEOF | ||
3302 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3303 | if { (eval echo "$as_me:3303: \"$ac_link\"") >&5 | ||
3304 | (eval $ac_link) 2>&5 | ||
3305 | ac_status=$? | ||
3306 | echo "$as_me:3306: \$? = $ac_status" >&5 | ||
3307 | (exit $ac_status); } && | ||
3308 | { ac_try='test -s conftest$ac_exeext' | ||
3309 | { (eval echo "$as_me:3309: \"$ac_try\"") >&5 | ||
3310 | (eval $ac_try) 2>&5 | ||
3311 | ac_status=$? | ||
3312 | echo "$as_me:3312: \$? = $ac_status" >&5 | ||
3313 | (exit $ac_status); }; }; then | ||
3314 | ac_cv_lib_s_authenticate=yes | ||
3315 | else | ||
3316 | echo "$as_me: failed program was:" >&5 | ||
3317 | cat conftest.$ac_ext >&5 | ||
3318 | ac_cv_lib_s_authenticate=no | ||
3319 | fi | ||
3320 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3321 | LIBS=$ac_check_lib_save_LIBS | ||
3322 | fi | ||
3323 | echo "$as_me:3323: result: $ac_cv_lib_s_authenticate" >&5 | ||
3324 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3325 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3326 | cat >>confdefs.h <<\EOF | ||
3327 | #define WITH_AIXAUTHENTICATE 1 | ||
3328 | EOF | ||
3329 | |||
3330 | LIBS="$LIBS -ls" | ||
3331 | |||
3332 | fi | ||
3333 | |||
3334 | fi | ||
3335 | |||
3336 | echo "$as_me:3336: checking whether loginfailed is declared" >&5 | ||
3337 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
3338 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
3339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3340 | else | ||
3341 | cat >conftest.$ac_ext <<_ACEOF | ||
3342 | #line 3342 "configure" | ||
3343 | #include "confdefs.h" | ||
3344 | #include <usersec.h> | ||
3345 | |||
3346 | int | ||
3347 | main () | ||
3348 | { | ||
3349 | #ifndef loginfailed | ||
3350 | char *p = (char *) loginfailed; | ||
3351 | #endif | ||
3352 | |||
3353 | ; | ||
3354 | return 0; | ||
3355 | } | ||
3356 | _ACEOF | ||
3357 | rm -f conftest.$ac_objext | ||
3358 | if { (eval echo "$as_me:3358: \"$ac_compile\"") >&5 | ||
3359 | (eval $ac_compile) 2>&5 | ||
3360 | ac_status=$? | ||
3361 | echo "$as_me:3361: \$? = $ac_status" >&5 | ||
3362 | (exit $ac_status); } && | ||
3363 | { ac_try='test -s conftest.$ac_objext' | ||
3364 | { (eval echo "$as_me:3364: \"$ac_try\"") >&5 | ||
3365 | (eval $ac_try) 2>&5 | ||
3366 | ac_status=$? | ||
3367 | echo "$as_me:3367: \$? = $ac_status" >&5 | ||
3368 | (exit $ac_status); }; }; then | ||
3369 | ac_cv_have_decl_loginfailed=yes | ||
3370 | else | ||
3371 | echo "$as_me: failed program was:" >&5 | ||
3372 | cat conftest.$ac_ext >&5 | ||
3373 | ac_cv_have_decl_loginfailed=no | ||
3374 | fi | ||
3375 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3376 | fi | ||
3377 | echo "$as_me:3377: result: $ac_cv_have_decl_loginfailed" >&5 | ||
3378 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
3379 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
3380 | echo "$as_me:3380: checking if loginfailed takes 4 arguments" >&5 | ||
3381 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
3382 | cat >conftest.$ac_ext <<_ACEOF | ||
3383 | #line 3383 "configure" | ||
3384 | #include "confdefs.h" | ||
3385 | #include <usersec.h> | ||
3386 | int | ||
3387 | main () | ||
3388 | { | ||
3389 | (void)loginfailed("user","host","tty",0); | ||
3390 | ; | ||
3391 | return 0; | ||
3392 | } | ||
3393 | _ACEOF | ||
3394 | rm -f conftest.$ac_objext | ||
3395 | if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5 | ||
3396 | (eval $ac_compile) 2>&5 | ||
3397 | ac_status=$? | ||
3398 | echo "$as_me:3398: \$? = $ac_status" >&5 | ||
3399 | (exit $ac_status); } && | ||
3400 | { ac_try='test -s conftest.$ac_objext' | ||
3401 | { (eval echo "$as_me:3401: \"$ac_try\"") >&5 | ||
3402 | (eval $ac_try) 2>&5 | ||
3403 | ac_status=$? | ||
3404 | echo "$as_me:3404: \$? = $ac_status" >&5 | ||
3405 | (exit $ac_status); }; }; then | ||
3406 | echo "$as_me:3406: result: yes" >&5 | ||
3407 | echo "${ECHO_T}yes" >&6 | ||
3408 | cat >>confdefs.h <<\EOF | ||
3409 | #define AIX_LOGINFAILED_4ARG 1 | ||
3410 | EOF | ||
3411 | |||
3412 | else | ||
3413 | echo "$as_me: failed program was:" >&5 | ||
3414 | cat conftest.$ac_ext >&5 | ||
3415 | echo "$as_me:3415: result: no" >&5 | ||
3416 | echo "${ECHO_T}no" >&6 | ||
3417 | |||
3418 | fi | ||
3419 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3420 | fi | ||
3421 | |||
3422 | for ac_func in setauthdb | ||
3423 | do | ||
3424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
3425 | echo "$as_me:3425: checking for $ac_func" >&5 | ||
3426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
3427 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3429 | else | ||
3430 | cat >conftest.$ac_ext <<_ACEOF | ||
3431 | #line 3431 "configure" | ||
3432 | #include "confdefs.h" | ||
3433 | /* System header to define __stub macros and hopefully few prototypes, | ||
3434 | which can conflict with char $ac_func (); below. */ | ||
3435 | #include <assert.h> | ||
3436 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3437 | #ifdef __cplusplus | ||
3438 | extern "C" | ||
3439 | #endif | ||
3440 | /* We use char because int might match the return type of a gcc2 | ||
3441 | builtin and then its argument prototype would still apply. */ | ||
3442 | char $ac_func (); | ||
3443 | char (*f) (); | ||
3444 | |||
3445 | int | ||
3446 | main () | ||
3447 | { | ||
3448 | /* The GNU C library defines this for functions which it implements | ||
3449 | to always fail with ENOSYS. Some functions are actually named | ||
3450 | something starting with __ and the normal name is an alias. */ | ||
3451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
3452 | choke me | ||
3453 | #else | ||
3454 | f = $ac_func; | ||
3455 | #endif | ||
3456 | |||
3457 | ; | ||
3458 | return 0; | ||
3459 | } | ||
3460 | _ACEOF | ||
3461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3462 | if { (eval echo "$as_me:3462: \"$ac_link\"") >&5 | ||
3463 | (eval $ac_link) 2>&5 | ||
3464 | ac_status=$? | ||
3465 | echo "$as_me:3465: \$? = $ac_status" >&5 | ||
3466 | (exit $ac_status); } && | ||
3467 | { ac_try='test -s conftest$ac_exeext' | ||
3468 | { (eval echo "$as_me:3468: \"$ac_try\"") >&5 | ||
3469 | (eval $ac_try) 2>&5 | ||
3470 | ac_status=$? | ||
3471 | echo "$as_me:3471: \$? = $ac_status" >&5 | ||
3472 | (exit $ac_status); }; }; then | ||
3473 | eval "$as_ac_var=yes" | ||
3474 | else | ||
3475 | echo "$as_me: failed program was:" >&5 | ||
3476 | cat conftest.$ac_ext >&5 | ||
3477 | eval "$as_ac_var=no" | ||
3478 | fi | ||
3479 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3480 | fi | ||
3481 | echo "$as_me:3481: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
3482 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
3483 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
3484 | cat >>confdefs.h <<EOF | ||
3485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
3486 | EOF | ||
3487 | |||
3488 | fi | ||
3489 | done | ||
3490 | |||
3491 | cat >>confdefs.h <<\EOF | ||
3492 | #define BROKEN_GETADDRINFO 1 | ||
3493 | EOF | ||
3494 | |||
3495 | cat >>confdefs.h <<\EOF | ||
3496 | #define BROKEN_REALPATH 1 | ||
3497 | EOF | ||
3498 | |||
3499 | cat >>confdefs.h <<\EOF | ||
3500 | #define SETEUID_BREAKS_SETUID 1 | ||
3501 | EOF | ||
3502 | |||
3503 | cat >>confdefs.h <<\EOF | ||
3504 | #define BROKEN_SETREUID 1 | ||
3505 | EOF | ||
3506 | |||
3507 | cat >>confdefs.h <<\EOF | ||
3508 | #define BROKEN_SETREGID 1 | ||
3509 | EOF | ||
3510 | |||
3511 | cat >>confdefs.h <<\EOF | ||
3512 | #define DISABLE_LASTLOG 1 | ||
3513 | EOF | ||
3514 | |||
3515 | cat >>confdefs.h <<\EOF | ||
3516 | #define LOGIN_NEEDS_UTMPX 1 | ||
3517 | EOF | ||
3518 | |||
3519 | cat >>confdefs.h <<\EOF | ||
3520 | #define SPT_TYPE SPT_REUSEARGV | ||
3521 | EOF | ||
3522 | |||
3523 | ;; | ||
3524 | *-*-cygwin*) | ||
3525 | check_for_libcrypt_later=1 | ||
3526 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3527 | cat >>confdefs.h <<\EOF | ||
3528 | #define HAVE_CYGWIN 1 | ||
3529 | EOF | ||
3530 | |||
3531 | cat >>confdefs.h <<\EOF | ||
3532 | #define USE_PIPES 1 | ||
3533 | EOF | ||
3534 | |||
3535 | cat >>confdefs.h <<\EOF | ||
3536 | #define DISABLE_SHADOW 1 | ||
3537 | EOF | ||
3538 | |||
3539 | cat >>confdefs.h <<\EOF | ||
3540 | #define IP_TOS_IS_BROKEN 1 | ||
3541 | EOF | ||
3542 | |||
3543 | cat >>confdefs.h <<\EOF | ||
3544 | #define NO_X11_UNIX_SOCKETS 1 | ||
3545 | EOF | ||
3546 | |||
3547 | cat >>confdefs.h <<\EOF | ||
3548 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3549 | EOF | ||
3550 | |||
3551 | cat >>confdefs.h <<\EOF | ||
3552 | #define DISABLE_FD_PASSING 1 | ||
3553 | EOF | ||
3554 | |||
3555 | cat >>confdefs.h <<\EOF | ||
3556 | #define SETGROUPS_NOOP 1 | ||
3557 | EOF | ||
3558 | |||
3559 | ;; | ||
3560 | *-*-dgux*) | ||
3561 | cat >>confdefs.h <<\EOF | ||
3562 | #define IP_TOS_IS_BROKEN 1 | ||
3563 | EOF | ||
3564 | |||
3565 | cat >>confdefs.h <<\EOF | ||
3566 | #define SETEUID_BREAKS_SETUID 1 | ||
3567 | EOF | ||
3568 | |||
3569 | cat >>confdefs.h <<\EOF | ||
3570 | #define BROKEN_SETREUID 1 | ||
3571 | EOF | ||
3572 | |||
3573 | cat >>confdefs.h <<\EOF | ||
3574 | #define BROKEN_SETREGID 1 | ||
3575 | EOF | ||
3576 | |||
3577 | ;; | ||
3578 | *-*-darwin*) | ||
3579 | echo "$as_me:3579: checking if we have working getaddrinfo" >&5 | ||
3580 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3581 | if test "$cross_compiling" = yes; then | ||
3582 | echo "$as_me:3582: result: assume it is working" >&5 | ||
3583 | echo "${ECHO_T}assume it is working" >&6 | ||
3584 | else | ||
3585 | cat >conftest.$ac_ext <<_ACEOF | ||
3586 | #line 3586 "configure" | ||
3587 | #include "confdefs.h" | ||
3588 | #include <mach-o/dyld.h> | ||
3589 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3590 | exit(0); | ||
3591 | else | ||
3592 | exit(1); | ||
3593 | } | ||
3594 | _ACEOF | ||
3595 | rm -f conftest$ac_exeext | ||
3596 | if { (eval echo "$as_me:3596: \"$ac_link\"") >&5 | ||
3597 | (eval $ac_link) 2>&5 | ||
3598 | ac_status=$? | ||
3599 | echo "$as_me:3599: \$? = $ac_status" >&5 | ||
3600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3601 | { (eval echo "$as_me:3601: \"$ac_try\"") >&5 | ||
3602 | (eval $ac_try) 2>&5 | ||
3603 | ac_status=$? | ||
3604 | echo "$as_me:3604: \$? = $ac_status" >&5 | ||
3605 | (exit $ac_status); }; }; then | ||
3606 | echo "$as_me:3606: result: working" >&5 | ||
3607 | echo "${ECHO_T}working" >&6 | ||
3608 | else | ||
3609 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3610 | echo "$as_me: failed program was:" >&5 | ||
3611 | cat conftest.$ac_ext >&5 | ||
3612 | echo "$as_me:3612: result: buggy" >&5 | ||
3613 | echo "${ECHO_T}buggy" >&6 | ||
3614 | cat >>confdefs.h <<\EOF | ||
3615 | #define BROKEN_GETADDRINFO 1 | ||
3616 | EOF | ||
3617 | |||
3618 | fi | ||
3619 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3620 | fi | ||
3621 | cat >>confdefs.h <<\EOF | ||
3622 | #define SETEUID_BREAKS_SETUID 1 | ||
3623 | EOF | ||
3624 | |||
3625 | cat >>confdefs.h <<\EOF | ||
3626 | #define BROKEN_SETREUID 1 | ||
3627 | EOF | ||
3628 | |||
3629 | cat >>confdefs.h <<\EOF | ||
3630 | #define BROKEN_SETREGID 1 | ||
3631 | EOF | ||
3632 | |||
3633 | cat >>confdefs.h <<EOF | ||
3634 | #define BIND_8_COMPAT 1 | ||
3635 | EOF | ||
3636 | |||
3637 | ;; | ||
3638 | *-*-hpux10.26) | ||
3639 | if test -z "$GCC"; then | ||
3640 | CFLAGS="$CFLAGS -Ae" | ||
3641 | fi | ||
3642 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3643 | IPADDR_IN_DISPLAY=yes | ||
3644 | cat >>confdefs.h <<\EOF | ||
3645 | #define HAVE_SECUREWARE 1 | ||
3646 | EOF | ||
3647 | |||
3648 | cat >>confdefs.h <<\EOF | ||
3649 | #define USE_PIPES 1 | ||
3650 | EOF | ||
3651 | |||
3652 | cat >>confdefs.h <<\EOF | ||
3653 | #define LOGIN_NO_ENDOPT 1 | ||
3654 | EOF | ||
3655 | |||
3656 | cat >>confdefs.h <<\EOF | ||
3657 | #define LOGIN_NEEDS_UTMPX 1 | ||
3658 | EOF | ||
3659 | |||
3660 | cat >>confdefs.h <<\EOF | ||
3661 | #define LOCKED_PASSWD_STRING "*" | ||
3662 | EOF | ||
3663 | |||
3664 | cat >>confdefs.h <<\EOF | ||
3665 | #define SPT_TYPE SPT_PSTAT | ||
3666 | EOF | ||
3667 | |||
3668 | LIBS="$LIBS -lsec -lsecpw" | ||
3669 | |||
3670 | echo "$as_me:3670: checking for t_error in -lxnet" >&5 | ||
3671 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3672 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3674 | else | ||
3675 | ac_check_lib_save_LIBS=$LIBS | ||
3676 | LIBS="-lxnet $LIBS" | ||
3677 | cat >conftest.$ac_ext <<_ACEOF | ||
3678 | #line 3678 "configure" | ||
3679 | #include "confdefs.h" | ||
3680 | |||
3681 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3682 | #ifdef __cplusplus | ||
3683 | extern "C" | ||
3684 | #endif | ||
3685 | /* We use char because int might match the return type of a gcc2 | ||
3686 | builtin and then its argument prototype would still apply. */ | ||
3687 | char t_error (); | ||
3688 | int | ||
3689 | main () | ||
3690 | { | ||
3691 | t_error (); | ||
3692 | ; | ||
3693 | return 0; | ||
3694 | } | ||
3695 | _ACEOF | ||
3696 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3697 | if { (eval echo "$as_me:3697: \"$ac_link\"") >&5 | ||
3698 | (eval $ac_link) 2>&5 | ||
3699 | ac_status=$? | ||
3700 | echo "$as_me:3700: \$? = $ac_status" >&5 | ||
3701 | (exit $ac_status); } && | ||
3702 | { ac_try='test -s conftest$ac_exeext' | ||
3703 | { (eval echo "$as_me:3703: \"$ac_try\"") >&5 | ||
3704 | (eval $ac_try) 2>&5 | ||
3705 | ac_status=$? | ||
3706 | echo "$as_me:3706: \$? = $ac_status" >&5 | ||
3707 | (exit $ac_status); }; }; then | ||
3708 | ac_cv_lib_xnet_t_error=yes | ||
3709 | else | ||
3710 | echo "$as_me: failed program was:" >&5 | ||
3711 | cat conftest.$ac_ext >&5 | ||
3712 | ac_cv_lib_xnet_t_error=no | ||
3713 | fi | ||
3714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3715 | LIBS=$ac_check_lib_save_LIBS | ||
3716 | fi | ||
3717 | echo "$as_me:3717: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3718 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3719 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3720 | cat >>confdefs.h <<EOF | ||
3721 | #define HAVE_LIBXNET 1 | ||
3722 | EOF | ||
3723 | |||
3724 | LIBS="-lxnet $LIBS" | ||
3725 | |||
3726 | else | ||
3727 | { { echo "$as_me:3727: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3728 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3729 | { (exit 1); exit 1; }; } | ||
3730 | fi | ||
3731 | |||
3732 | disable_ptmx_check=yes | ||
3733 | ;; | ||
3734 | *-*-hpux10*) | ||
3735 | if test -z "$GCC"; then | ||
3736 | CFLAGS="$CFLAGS -Ae" | ||
3737 | fi | ||
3738 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3739 | IPADDR_IN_DISPLAY=yes | ||
3740 | cat >>confdefs.h <<\EOF | ||
3741 | #define USE_PIPES 1 | ||
3742 | EOF | ||
3743 | |||
3744 | cat >>confdefs.h <<\EOF | ||
3745 | #define LOGIN_NO_ENDOPT 1 | ||
3746 | EOF | ||
3747 | |||
3748 | cat >>confdefs.h <<\EOF | ||
3749 | #define LOGIN_NEEDS_UTMPX 1 | ||
3750 | EOF | ||
3751 | |||
3752 | cat >>confdefs.h <<\EOF | ||
3753 | #define LOCKED_PASSWD_STRING "*" | ||
3754 | EOF | ||
3755 | |||
3756 | cat >>confdefs.h <<\EOF | ||
3757 | #define SPT_TYPE SPT_PSTAT | ||
3758 | EOF | ||
3759 | |||
3760 | LIBS="$LIBS -lsec" | ||
3761 | |||
3762 | echo "$as_me:3762: checking for t_error in -lxnet" >&5 | ||
3763 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3764 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3766 | else | ||
3767 | ac_check_lib_save_LIBS=$LIBS | ||
3768 | LIBS="-lxnet $LIBS" | ||
3769 | cat >conftest.$ac_ext <<_ACEOF | ||
3770 | #line 3770 "configure" | ||
3771 | #include "confdefs.h" | ||
3772 | |||
3773 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3774 | #ifdef __cplusplus | ||
3775 | extern "C" | ||
3776 | #endif | ||
3777 | /* We use char because int might match the return type of a gcc2 | ||
3778 | builtin and then its argument prototype would still apply. */ | ||
3779 | char t_error (); | ||
3780 | int | ||
3781 | main () | ||
3782 | { | ||
3783 | t_error (); | ||
3784 | ; | ||
3785 | return 0; | ||
3786 | } | ||
3787 | _ACEOF | ||
3788 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3789 | if { (eval echo "$as_me:3789: \"$ac_link\"") >&5 | ||
3790 | (eval $ac_link) 2>&5 | ||
3791 | ac_status=$? | ||
3792 | echo "$as_me:3792: \$? = $ac_status" >&5 | ||
3793 | (exit $ac_status); } && | ||
3794 | { ac_try='test -s conftest$ac_exeext' | ||
3795 | { (eval echo "$as_me:3795: \"$ac_try\"") >&5 | ||
3796 | (eval $ac_try) 2>&5 | ||
3797 | ac_status=$? | ||
3798 | echo "$as_me:3798: \$? = $ac_status" >&5 | ||
3799 | (exit $ac_status); }; }; then | ||
3800 | ac_cv_lib_xnet_t_error=yes | ||
3801 | else | ||
3802 | echo "$as_me: failed program was:" >&5 | ||
3803 | cat conftest.$ac_ext >&5 | ||
3804 | ac_cv_lib_xnet_t_error=no | ||
3805 | fi | ||
3806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3807 | LIBS=$ac_check_lib_save_LIBS | ||
3808 | fi | ||
3809 | echo "$as_me:3809: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3810 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3811 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3812 | cat >>confdefs.h <<EOF | ||
3813 | #define HAVE_LIBXNET 1 | ||
3814 | EOF | ||
3815 | |||
3816 | LIBS="-lxnet $LIBS" | ||
3817 | |||
3818 | else | ||
3819 | { { echo "$as_me:3819: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3820 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3821 | { (exit 1); exit 1; }; } | ||
3822 | fi | ||
3823 | |||
3824 | ;; | ||
3825 | *-*-hpux11*) | ||
3826 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3827 | IPADDR_IN_DISPLAY=yes | ||
3828 | cat >>confdefs.h <<\EOF | ||
3829 | #define PAM_SUN_CODEBASE 1 | ||
3830 | EOF | ||
3831 | |||
3832 | cat >>confdefs.h <<\EOF | ||
3833 | #define USE_PIPES 1 | ||
3834 | EOF | ||
3835 | |||
3836 | cat >>confdefs.h <<\EOF | ||
3837 | #define LOGIN_NO_ENDOPT 1 | ||
3838 | EOF | ||
3839 | |||
3840 | cat >>confdefs.h <<\EOF | ||
3841 | #define LOGIN_NEEDS_UTMPX 1 | ||
3842 | EOF | ||
3843 | |||
3844 | cat >>confdefs.h <<\EOF | ||
3845 | #define DISABLE_UTMP 1 | ||
3846 | EOF | ||
3847 | |||
3848 | cat >>confdefs.h <<\EOF | ||
3849 | #define LOCKED_PASSWD_STRING "*" | ||
3850 | EOF | ||
3851 | |||
3852 | cat >>confdefs.h <<\EOF | ||
3853 | #define SPT_TYPE SPT_PSTAT | ||
3854 | EOF | ||
3855 | |||
3856 | case "$host" in | ||
3857 | *-*-hpux11.11*) | ||
3858 | cat >>confdefs.h <<\EOF | ||
3859 | #define BROKEN_GETADDRINFO 1 | ||
3860 | EOF | ||
3861 | ;; | ||
3862 | esac | ||
3863 | LIBS="$LIBS -lsec" | ||
3864 | |||
3865 | echo "$as_me:3865: checking for t_error in -lxnet" >&5 | ||
3866 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3867 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3869 | else | ||
3870 | ac_check_lib_save_LIBS=$LIBS | ||
3871 | LIBS="-lxnet $LIBS" | ||
3872 | cat >conftest.$ac_ext <<_ACEOF | ||
3873 | #line 3873 "configure" | ||
3874 | #include "confdefs.h" | ||
3875 | |||
3876 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3877 | #ifdef __cplusplus | ||
3878 | extern "C" | ||
3879 | #endif | ||
3880 | /* We use char because int might match the return type of a gcc2 | ||
3881 | builtin and then its argument prototype would still apply. */ | ||
3882 | char t_error (); | ||
3883 | int | ||
3884 | main () | ||
3885 | { | ||
3886 | t_error (); | ||
3887 | ; | ||
3888 | return 0; | ||
3889 | } | ||
3890 | _ACEOF | ||
3891 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3892 | if { (eval echo "$as_me:3892: \"$ac_link\"") >&5 | ||
3893 | (eval $ac_link) 2>&5 | ||
3894 | ac_status=$? | ||
3895 | echo "$as_me:3895: \$? = $ac_status" >&5 | ||
3896 | (exit $ac_status); } && | ||
3897 | { ac_try='test -s conftest$ac_exeext' | ||
3898 | { (eval echo "$as_me:3898: \"$ac_try\"") >&5 | ||
3899 | (eval $ac_try) 2>&5 | ||
3900 | ac_status=$? | ||
3901 | echo "$as_me:3901: \$? = $ac_status" >&5 | ||
3902 | (exit $ac_status); }; }; then | ||
3903 | ac_cv_lib_xnet_t_error=yes | ||
3904 | else | ||
3905 | echo "$as_me: failed program was:" >&5 | ||
3906 | cat conftest.$ac_ext >&5 | ||
3907 | ac_cv_lib_xnet_t_error=no | ||
3908 | fi | ||
3909 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3910 | LIBS=$ac_check_lib_save_LIBS | ||
3911 | fi | ||
3912 | echo "$as_me:3912: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3913 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3914 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3915 | cat >>confdefs.h <<EOF | ||
3916 | #define HAVE_LIBXNET 1 | ||
3917 | EOF | ||
3918 | |||
3919 | LIBS="-lxnet $LIBS" | ||
3920 | |||
3921 | else | ||
3922 | { { echo "$as_me:3922: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3923 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3924 | { (exit 1); exit 1; }; } | ||
3925 | fi | ||
3926 | |||
3927 | ;; | ||
3928 | *-*-irix5*) | ||
3929 | PATH="$PATH:/usr/etc" | ||
3930 | cat >>confdefs.h <<\EOF | ||
3931 | #define BROKEN_INET_NTOA 1 | ||
3932 | EOF | ||
3933 | |||
3934 | cat >>confdefs.h <<\EOF | ||
3935 | #define SETEUID_BREAKS_SETUID 1 | ||
3936 | EOF | ||
3937 | |||
3938 | cat >>confdefs.h <<\EOF | ||
3939 | #define BROKEN_SETREUID 1 | ||
3940 | EOF | ||
3941 | |||
3942 | cat >>confdefs.h <<\EOF | ||
3943 | #define BROKEN_SETREGID 1 | ||
3944 | EOF | ||
3945 | |||
3946 | cat >>confdefs.h <<\EOF | ||
3947 | #define WITH_ABBREV_NO_TTY 1 | ||
3948 | EOF | ||
3949 | |||
3950 | cat >>confdefs.h <<\EOF | ||
3951 | #define LOCKED_PASSWD_STRING "*LK*" | ||
3952 | EOF | ||
3953 | |||
3954 | ;; | ||
3955 | *-*-irix6*) | ||
3956 | PATH="$PATH:/usr/etc" | ||
3957 | cat >>confdefs.h <<\EOF | ||
3958 | #define WITH_IRIX_ARRAY 1 | ||
3959 | EOF | ||
3960 | |||
3961 | cat >>confdefs.h <<\EOF | ||
3962 | #define WITH_IRIX_PROJECT 1 | ||
3963 | EOF | ||
3964 | |||
3965 | cat >>confdefs.h <<\EOF | ||
3966 | #define WITH_IRIX_AUDIT 1 | ||
3967 | EOF | ||
3968 | |||
3969 | echo "$as_me:3969: checking for jlimit_startjob" >&5 | ||
3970 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
3971 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3973 | else | ||
3974 | cat >conftest.$ac_ext <<_ACEOF | ||
3975 | #line 3975 "configure" | ||
3976 | #include "confdefs.h" | ||
3977 | /* System header to define __stub macros and hopefully few prototypes, | ||
3978 | which can conflict with char jlimit_startjob (); below. */ | ||
3979 | #include <assert.h> | ||
3980 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3981 | #ifdef __cplusplus | ||
3982 | extern "C" | ||
3983 | #endif | ||
3984 | /* We use char because int might match the return type of a gcc2 | ||
3985 | builtin and then its argument prototype would still apply. */ | ||
3986 | char jlimit_startjob (); | ||
3987 | char (*f) (); | ||
3988 | |||
3989 | int | ||
3990 | main () | ||
3991 | { | ||
3992 | /* The GNU C library defines this for functions which it implements | ||
3993 | to always fail with ENOSYS. Some functions are actually named | ||
3994 | something starting with __ and the normal name is an alias. */ | ||
3995 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
3996 | choke me | ||
3997 | #else | ||
3998 | f = jlimit_startjob; | ||
3999 | #endif | ||
4000 | |||
4001 | ; | ||
4002 | return 0; | ||
4003 | } | ||
4004 | _ACEOF | ||
4005 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4006 | if { (eval echo "$as_me:4006: \"$ac_link\"") >&5 | ||
4007 | (eval $ac_link) 2>&5 | ||
4008 | ac_status=$? | ||
4009 | echo "$as_me:4009: \$? = $ac_status" >&5 | ||
4010 | (exit $ac_status); } && | ||
4011 | { ac_try='test -s conftest$ac_exeext' | ||
4012 | { (eval echo "$as_me:4012: \"$ac_try\"") >&5 | ||
4013 | (eval $ac_try) 2>&5 | ||
4014 | ac_status=$? | ||
4015 | echo "$as_me:4015: \$? = $ac_status" >&5 | ||
4016 | (exit $ac_status); }; }; then | ||
4017 | ac_cv_func_jlimit_startjob=yes | ||
4018 | else | ||
4019 | echo "$as_me: failed program was:" >&5 | ||
4020 | cat conftest.$ac_ext >&5 | ||
4021 | ac_cv_func_jlimit_startjob=no | ||
4022 | fi | ||
4023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4024 | fi | ||
4025 | echo "$as_me:4025: result: $ac_cv_func_jlimit_startjob" >&5 | ||
4026 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
4027 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
4028 | cat >>confdefs.h <<\EOF | ||
4029 | #define WITH_IRIX_JOBS 1 | ||
4030 | EOF | ||
4031 | |||
4032 | fi | ||
4033 | |||
4034 | cat >>confdefs.h <<\EOF | ||
4035 | #define BROKEN_INET_NTOA 1 | ||
4036 | EOF | ||
4037 | |||
4038 | cat >>confdefs.h <<\EOF | ||
4039 | #define SETEUID_BREAKS_SETUID 1 | ||
4040 | EOF | ||
4041 | |||
4042 | cat >>confdefs.h <<\EOF | ||
4043 | #define BROKEN_SETREUID 1 | ||
4044 | EOF | ||
4045 | |||
4046 | cat >>confdefs.h <<\EOF | ||
4047 | #define BROKEN_SETREGID 1 | ||
4048 | EOF | ||
4049 | |||
4050 | cat >>confdefs.h <<\EOF | ||
4051 | #define WITH_ABBREV_NO_TTY 1 | ||
4052 | EOF | ||
4053 | |||
4054 | cat >>confdefs.h <<\EOF | ||
4055 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4056 | EOF | ||
4057 | |||
4058 | ;; | ||
4059 | *-*-linux*) | ||
4060 | no_dev_ptmx=1 | ||
4061 | check_for_libcrypt_later=1 | ||
4062 | check_for_openpty_ctty_bug=1 | ||
4063 | cat >>confdefs.h <<\EOF | ||
4064 | #define DONT_TRY_OTHER_AF 1 | ||
4065 | EOF | ||
4066 | |||
4067 | cat >>confdefs.h <<\EOF | ||
4068 | #define PAM_TTY_KLUDGE 1 | ||
4069 | EOF | ||
4070 | |||
4071 | cat >>confdefs.h <<\EOF | ||
4072 | #define LOCKED_PASSWD_PREFIX "!!" | ||
4073 | EOF | ||
4074 | |||
4075 | cat >>confdefs.h <<\EOF | ||
4076 | #define SPT_TYPE SPT_REUSEARGV | ||
4077 | EOF | ||
4078 | |||
4079 | inet6_default_4in6=yes | ||
4080 | case `uname -r` in | ||
4081 | 1.*|2.0.*) | ||
4082 | cat >>confdefs.h <<\EOF | ||
4083 | #define BROKEN_CMSG_TYPE 1 | ||
4084 | EOF | ||
4085 | |||
4086 | ;; | ||
4087 | esac | ||
4088 | ;; | ||
4089 | mips-sony-bsd|mips-sony-newsos4) | ||
4090 | cat >>confdefs.h <<\EOF | ||
4091 | #define HAVE_NEWS4 1 | ||
4092 | EOF | ||
4093 | |||
4094 | SONY=1 | ||
4095 | ;; | ||
4096 | *-*-netbsd*) | ||
4097 | check_for_libcrypt_before=1 | ||
4098 | if test "x$withval" != "xno" ; then | ||
4099 | need_dash_r=1 | ||
4100 | fi | ||
4101 | ;; | ||
4102 | *-*-freebsd*) | ||
4103 | check_for_libcrypt_later=1 | ||
4104 | ;; | ||
4105 | *-*-bsdi*) | ||
4106 | cat >>confdefs.h <<\EOF | ||
4107 | #define SETEUID_BREAKS_SETUID 1 | ||
4108 | EOF | ||
4109 | |||
4110 | cat >>confdefs.h <<\EOF | ||
4111 | #define BROKEN_SETREUID 1 | ||
4112 | EOF | ||
4113 | |||
4114 | cat >>confdefs.h <<\EOF | ||
4115 | #define BROKEN_SETREGID 1 | ||
4116 | EOF | ||
4117 | |||
4118 | ;; | ||
4119 | *-next-*) | ||
4120 | conf_lastlog_location="/usr/adm/lastlog" | ||
4121 | conf_utmp_location=/etc/utmp | ||
4122 | conf_wtmp_location=/usr/adm/wtmp | ||
4123 | MAIL=/usr/spool/mail | ||
4124 | cat >>confdefs.h <<\EOF | ||
4125 | #define HAVE_NEXT 1 | ||
4126 | EOF | ||
4127 | |||
4128 | cat >>confdefs.h <<\EOF | ||
4129 | #define BROKEN_REALPATH 1 | ||
4130 | EOF | ||
4131 | |||
4132 | cat >>confdefs.h <<\EOF | ||
4133 | #define USE_PIPES 1 | ||
4134 | EOF | ||
4135 | |||
4136 | cat >>confdefs.h <<\EOF | ||
4137 | #define BROKEN_SAVED_UIDS 1 | ||
4138 | EOF | ||
4139 | |||
4140 | ;; | ||
4141 | *-*-solaris*) | ||
4142 | cat >>confdefs.h <<\EOF | ||
4143 | #define PAM_SUN_CODEBASE 1 | ||
4144 | EOF | ||
4145 | |||
4146 | cat >>confdefs.h <<\EOF | ||
4147 | #define LOGIN_NEEDS_UTMPX 1 | ||
4148 | EOF | ||
4149 | |||
4150 | cat >>confdefs.h <<\EOF | ||
4151 | #define LOGIN_NEEDS_TERM 1 | ||
4152 | EOF | ||
4153 | |||
4154 | cat >>confdefs.h <<\EOF | ||
4155 | #define PAM_TTY_KLUDGE 1 | ||
4156 | EOF | ||
4157 | |||
4158 | cat >>confdefs.h <<\EOF | ||
4159 | #define LOCKED_PASSWD_STRING "*LK*" | ||
4160 | EOF | ||
4161 | |||
4162 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
4163 | cat >>confdefs.h <<\EOF | ||
4164 | #define SSHD_ACQUIRES_CTTY 1 | ||
4165 | EOF | ||
4166 | |||
4167 | external_path_file=/etc/default/login | ||
4168 | # hardwire lastlog location (can't detect it on some versions) | ||
4169 | conf_lastlog_location="/var/adm/lastlog" | ||
4170 | echo "$as_me:4170: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4171 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4172 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4173 | if test "$sol2ver" -ge 8; then | ||
4174 | echo "$as_me:4174: result: yes" >&5 | ||
4175 | echo "${ECHO_T}yes" >&6 | ||
4176 | cat >>confdefs.h <<\EOF | ||
4177 | #define DISABLE_UTMP 1 | ||
4178 | EOF | ||
4179 | |||
4180 | cat >>confdefs.h <<\EOF | ||
4181 | #define DISABLE_WTMP 1 | ||
4182 | EOF | ||
4183 | |||
4184 | else | ||
4185 | echo "$as_me:4185: result: no" >&5 | ||
4186 | echo "${ECHO_T}no" >&6 | ||
4187 | fi | ||
4188 | ;; | ||
4189 | *-*-sunos4*) | ||
4190 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4191 | |||
4192 | for ac_func in getpwanam | ||
4193 | do | ||
4194 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4195 | echo "$as_me:4195: checking for $ac_func" >&5 | ||
4196 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4197 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4199 | else | ||
4200 | cat >conftest.$ac_ext <<_ACEOF | ||
4201 | #line 4201 "configure" | ||
4202 | #include "confdefs.h" | ||
4203 | /* System header to define __stub macros and hopefully few prototypes, | ||
4204 | which can conflict with char $ac_func (); below. */ | ||
4205 | #include <assert.h> | ||
4206 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4207 | #ifdef __cplusplus | ||
4208 | extern "C" | ||
4209 | #endif | ||
4210 | /* We use char because int might match the return type of a gcc2 | ||
4211 | builtin and then its argument prototype would still apply. */ | ||
4212 | char $ac_func (); | ||
4213 | char (*f) (); | ||
4214 | |||
4215 | int | ||
4216 | main () | ||
4217 | { | ||
4218 | /* The GNU C library defines this for functions which it implements | ||
4219 | to always fail with ENOSYS. Some functions are actually named | ||
4220 | something starting with __ and the normal name is an alias. */ | ||
4221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4222 | choke me | ||
4223 | #else | ||
4224 | f = $ac_func; | ||
4225 | #endif | ||
4226 | |||
4227 | ; | ||
4228 | return 0; | ||
4229 | } | ||
4230 | _ACEOF | ||
4231 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4232 | if { (eval echo "$as_me:4232: \"$ac_link\"") >&5 | ||
4233 | (eval $ac_link) 2>&5 | ||
4234 | ac_status=$? | ||
4235 | echo "$as_me:4235: \$? = $ac_status" >&5 | ||
4236 | (exit $ac_status); } && | ||
4237 | { ac_try='test -s conftest$ac_exeext' | ||
4238 | { (eval echo "$as_me:4238: \"$ac_try\"") >&5 | ||
4239 | (eval $ac_try) 2>&5 | ||
4240 | ac_status=$? | ||
4241 | echo "$as_me:4241: \$? = $ac_status" >&5 | ||
4242 | (exit $ac_status); }; }; then | ||
4243 | eval "$as_ac_var=yes" | ||
4244 | else | ||
4245 | echo "$as_me: failed program was:" >&5 | ||
4246 | cat conftest.$ac_ext >&5 | ||
4247 | eval "$as_ac_var=no" | ||
4248 | fi | ||
4249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4250 | fi | ||
4251 | echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4252 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4253 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4254 | cat >>confdefs.h <<EOF | ||
4255 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4256 | EOF | ||
4257 | |||
4258 | fi | ||
4259 | done | ||
4260 | |||
4261 | cat >>confdefs.h <<\EOF | ||
4262 | #define PAM_SUN_CODEBASE 1 | ||
4263 | EOF | ||
4264 | |||
4265 | conf_utmp_location=/etc/utmp | ||
4266 | conf_wtmp_location=/var/adm/wtmp | ||
4267 | conf_lastlog_location=/var/adm/lastlog | ||
4268 | cat >>confdefs.h <<\EOF | ||
4269 | #define USE_PIPES 1 | ||
4270 | EOF | ||
4271 | |||
4272 | ;; | ||
4273 | *-ncr-sysv*) | ||
4274 | LIBS="$LIBS -lc89" | ||
4275 | cat >>confdefs.h <<\EOF | ||
4276 | #define USE_PIPES 1 | ||
4277 | EOF | ||
4278 | |||
4279 | cat >>confdefs.h <<\EOF | ||
4280 | #define SSHD_ACQUIRES_CTTY 1 | ||
4281 | EOF | ||
4282 | |||
4283 | cat >>confdefs.h <<\EOF | ||
4284 | #define SETEUID_BREAKS_SETUID 1 | ||
4285 | EOF | ||
4286 | |||
4287 | cat >>confdefs.h <<\EOF | ||
4288 | #define BROKEN_SETREUID 1 | ||
4289 | EOF | ||
4290 | |||
4291 | cat >>confdefs.h <<\EOF | ||
4292 | #define BROKEN_SETREGID 1 | ||
4293 | EOF | ||
4294 | |||
4295 | ;; | ||
4296 | *-sni-sysv*) | ||
4297 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4298 | |||
4299 | echo "$as_me:4299: checking for dlsym in -ldl" >&5 | ||
4300 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
4301 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
4302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4303 | else | ||
4304 | ac_check_lib_save_LIBS=$LIBS | ||
4305 | LIBS="-ldl $LIBS" | ||
4306 | cat >conftest.$ac_ext <<_ACEOF | ||
4307 | #line 4307 "configure" | ||
4308 | #include "confdefs.h" | ||
4309 | |||
4310 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4311 | #ifdef __cplusplus | ||
4312 | extern "C" | ||
4313 | #endif | ||
4314 | /* We use char because int might match the return type of a gcc2 | ||
4315 | builtin and then its argument prototype would still apply. */ | ||
4316 | char dlsym (); | ||
4317 | int | ||
4318 | main () | ||
4319 | { | ||
4320 | dlsym (); | ||
4321 | ; | ||
4322 | return 0; | ||
4323 | } | ||
4324 | _ACEOF | ||
4325 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4326 | if { (eval echo "$as_me:4326: \"$ac_link\"") >&5 | ||
4327 | (eval $ac_link) 2>&5 | ||
4328 | ac_status=$? | ||
4329 | echo "$as_me:4329: \$? = $ac_status" >&5 | ||
4330 | (exit $ac_status); } && | ||
4331 | { ac_try='test -s conftest$ac_exeext' | ||
4332 | { (eval echo "$as_me:4332: \"$ac_try\"") >&5 | ||
4333 | (eval $ac_try) 2>&5 | ||
4334 | ac_status=$? | ||
4335 | echo "$as_me:4335: \$? = $ac_status" >&5 | ||
4336 | (exit $ac_status); }; }; then | ||
4337 | ac_cv_lib_dl_dlsym=yes | ||
4338 | else | ||
4339 | echo "$as_me: failed program was:" >&5 | ||
4340 | cat conftest.$ac_ext >&5 | ||
4341 | ac_cv_lib_dl_dlsym=no | ||
4342 | fi | ||
4343 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4344 | LIBS=$ac_check_lib_save_LIBS | ||
4345 | fi | ||
4346 | echo "$as_me:4346: result: $ac_cv_lib_dl_dlsym" >&5 | ||
4347 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
4348 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
4349 | cat >>confdefs.h <<EOF | ||
4350 | #define HAVE_LIBDL 1 | ||
4351 | EOF | ||
4352 | |||
4353 | LIBS="-ldl $LIBS" | ||
4354 | |||
4355 | fi | ||
4356 | |||
4357 | IPADDR_IN_DISPLAY=yes | ||
4358 | cat >>confdefs.h <<\EOF | ||
4359 | #define USE_PIPES 1 | ||
4360 | EOF | ||
4361 | |||
4362 | cat >>confdefs.h <<\EOF | ||
4363 | #define IP_TOS_IS_BROKEN 1 | ||
4364 | EOF | ||
4365 | |||
4366 | cat >>confdefs.h <<\EOF | ||
4367 | #define SETEUID_BREAKS_SETUID 1 | ||
4368 | EOF | ||
4369 | |||
4370 | cat >>confdefs.h <<\EOF | ||
4371 | #define BROKEN_SETREUID 1 | ||
4372 | EOF | ||
4373 | |||
4374 | cat >>confdefs.h <<\EOF | ||
4375 | #define BROKEN_SETREGID 1 | ||
4376 | EOF | ||
4377 | |||
4378 | cat >>confdefs.h <<\EOF | ||
4379 | #define SSHD_ACQUIRES_CTTY 1 | ||
4380 | EOF | ||
4381 | |||
4382 | external_path_file=/etc/default/login | ||
4383 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4384 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4385 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4386 | ;; | ||
4387 | *-*-sysv4.2*) | ||
4388 | cat >>confdefs.h <<\EOF | ||
4389 | #define USE_PIPES 1 | ||
4390 | EOF | ||
4391 | |||
4392 | cat >>confdefs.h <<\EOF | ||
4393 | #define SETEUID_BREAKS_SETUID 1 | ||
4394 | EOF | ||
4395 | |||
4396 | cat >>confdefs.h <<\EOF | ||
4397 | #define BROKEN_SETREUID 1 | ||
4398 | EOF | ||
4399 | |||
4400 | cat >>confdefs.h <<\EOF | ||
4401 | #define BROKEN_SETREGID 1 | ||
4402 | EOF | ||
4403 | |||
4404 | ;; | ||
4405 | *-*-sysv5*) | ||
4406 | cat >>confdefs.h <<\EOF | ||
4407 | #define USE_PIPES 1 | ||
4408 | EOF | ||
4409 | |||
4410 | cat >>confdefs.h <<\EOF | ||
4411 | #define SETEUID_BREAKS_SETUID 1 | ||
4412 | EOF | ||
4413 | |||
4414 | cat >>confdefs.h <<\EOF | ||
4415 | #define BROKEN_SETREUID 1 | ||
4416 | EOF | ||
4417 | |||
4418 | cat >>confdefs.h <<\EOF | ||
4419 | #define BROKEN_SETREGID 1 | ||
4420 | EOF | ||
4421 | |||
4422 | ;; | ||
4423 | *-*-sysv*) | ||
4424 | ;; | ||
4425 | *-*-sco3.2v4*) | ||
4426 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize" | ||
4427 | LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm" | ||
4428 | RANLIB=true | ||
4429 | no_dev_ptmx=1 | ||
4430 | cat >>confdefs.h <<\EOF | ||
4431 | #define BROKEN_SYS_TERMIO_H 1 | ||
4432 | EOF | ||
4433 | |||
4434 | cat >>confdefs.h <<\EOF | ||
4435 | #define USE_PIPES 1 | ||
4436 | EOF | ||
4437 | |||
4438 | cat >>confdefs.h <<\EOF | ||
4439 | #define HAVE_SECUREWARE 1 | ||
4440 | EOF | ||
4441 | |||
4442 | cat >>confdefs.h <<\EOF | ||
4443 | #define DISABLE_SHADOW 1 | ||
4444 | EOF | ||
4445 | |||
4446 | cat >>confdefs.h <<\EOF | ||
4447 | #define BROKEN_SAVED_UIDS 1 | ||
4448 | EOF | ||
4449 | |||
4450 | cat >>confdefs.h <<\EOF | ||
4451 | #define WITH_ABBREV_NO_TTY 1 | ||
4452 | EOF | ||
4453 | |||
4454 | for ac_func in getluid setluid | ||
4455 | do | ||
4456 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4457 | echo "$as_me:4457: checking for $ac_func" >&5 | ||
4458 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4459 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4461 | else | ||
4462 | cat >conftest.$ac_ext <<_ACEOF | ||
4463 | #line 4463 "configure" | ||
4464 | #include "confdefs.h" | ||
4465 | /* System header to define __stub macros and hopefully few prototypes, | ||
4466 | which can conflict with char $ac_func (); below. */ | ||
4467 | #include <assert.h> | ||
4468 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4469 | #ifdef __cplusplus | ||
4470 | extern "C" | ||
4471 | #endif | ||
4472 | /* We use char because int might match the return type of a gcc2 | ||
4473 | builtin and then its argument prototype would still apply. */ | ||
4474 | char $ac_func (); | ||
4475 | char (*f) (); | ||
4476 | |||
4477 | int | ||
4478 | main () | ||
4479 | { | ||
4480 | /* The GNU C library defines this for functions which it implements | ||
4481 | to always fail with ENOSYS. Some functions are actually named | ||
4482 | something starting with __ and the normal name is an alias. */ | ||
4483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4484 | choke me | ||
4485 | #else | ||
4486 | f = $ac_func; | ||
4487 | #endif | ||
4488 | |||
4489 | ; | ||
4490 | return 0; | ||
4491 | } | ||
4492 | _ACEOF | ||
4493 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4494 | if { (eval echo "$as_me:4494: \"$ac_link\"") >&5 | ||
4495 | (eval $ac_link) 2>&5 | ||
4496 | ac_status=$? | ||
4497 | echo "$as_me:4497: \$? = $ac_status" >&5 | ||
4498 | (exit $ac_status); } && | ||
4499 | { ac_try='test -s conftest$ac_exeext' | ||
4500 | { (eval echo "$as_me:4500: \"$ac_try\"") >&5 | ||
4501 | (eval $ac_try) 2>&5 | ||
4502 | ac_status=$? | ||
4503 | echo "$as_me:4503: \$? = $ac_status" >&5 | ||
4504 | (exit $ac_status); }; }; then | ||
4505 | eval "$as_ac_var=yes" | ||
4506 | else | ||
4507 | echo "$as_me: failed program was:" >&5 | ||
4508 | cat conftest.$ac_ext >&5 | ||
4509 | eval "$as_ac_var=no" | ||
4510 | fi | ||
4511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4512 | fi | ||
4513 | echo "$as_me:4513: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4514 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4515 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4516 | cat >>confdefs.h <<EOF | ||
4517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4518 | EOF | ||
4519 | |||
4520 | fi | ||
4521 | done | ||
4522 | |||
4523 | MANTYPE=man | ||
4524 | do_sco3_extra_lib_check=yes | ||
4525 | ;; | ||
4526 | *-*-sco3.2v5*) | ||
4527 | if test -z "$GCC"; then | ||
4528 | CFLAGS="$CFLAGS -belf" | ||
4529 | fi | ||
4530 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4531 | no_dev_ptmx=1 | ||
4532 | cat >>confdefs.h <<\EOF | ||
4533 | #define USE_PIPES 1 | ||
4534 | EOF | ||
4535 | |||
4536 | cat >>confdefs.h <<\EOF | ||
4537 | #define HAVE_SECUREWARE 1 | ||
4538 | EOF | ||
4539 | |||
4540 | cat >>confdefs.h <<\EOF | ||
4541 | #define DISABLE_SHADOW 1 | ||
4542 | EOF | ||
4543 | |||
4544 | cat >>confdefs.h <<\EOF | ||
4545 | #define DISABLE_FD_PASSING 1 | ||
4546 | EOF | ||
4547 | |||
4548 | cat >>confdefs.h <<\EOF | ||
4549 | #define SETEUID_BREAKS_SETUID 1 | ||
4550 | EOF | ||
4551 | |||
4552 | cat >>confdefs.h <<\EOF | ||
4553 | #define BROKEN_SETREUID 1 | ||
4554 | EOF | ||
4555 | |||
4556 | cat >>confdefs.h <<\EOF | ||
4557 | #define BROKEN_SETREGID 1 | ||
4558 | EOF | ||
4559 | |||
4560 | cat >>confdefs.h <<\EOF | ||
4561 | #define WITH_ABBREV_NO_TTY 1 | ||
4562 | EOF | ||
4563 | |||
4564 | for ac_func in getluid setluid | ||
4565 | do | ||
4566 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4567 | echo "$as_me:4567: checking for $ac_func" >&5 | ||
4568 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4569 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4571 | else | ||
4572 | cat >conftest.$ac_ext <<_ACEOF | ||
4573 | #line 4573 "configure" | ||
4574 | #include "confdefs.h" | ||
4575 | /* System header to define __stub macros and hopefully few prototypes, | ||
4576 | which can conflict with char $ac_func (); below. */ | ||
4577 | #include <assert.h> | ||
4578 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4579 | #ifdef __cplusplus | ||
4580 | extern "C" | ||
4581 | #endif | ||
4582 | /* We use char because int might match the return type of a gcc2 | ||
4583 | builtin and then its argument prototype would still apply. */ | ||
4584 | char $ac_func (); | ||
4585 | char (*f) (); | ||
4586 | |||
4587 | int | ||
4588 | main () | ||
4589 | { | ||
4590 | /* The GNU C library defines this for functions which it implements | ||
4591 | to always fail with ENOSYS. Some functions are actually named | ||
4592 | something starting with __ and the normal name is an alias. */ | ||
4593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4594 | choke me | ||
4595 | #else | ||
4596 | f = $ac_func; | ||
4597 | #endif | ||
4598 | |||
4599 | ; | ||
4600 | return 0; | ||
4601 | } | ||
4602 | _ACEOF | ||
4603 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4604 | if { (eval echo "$as_me:4604: \"$ac_link\"") >&5 | ||
4605 | (eval $ac_link) 2>&5 | ||
4606 | ac_status=$? | ||
4607 | echo "$as_me:4607: \$? = $ac_status" >&5 | ||
4608 | (exit $ac_status); } && | ||
4609 | { ac_try='test -s conftest$ac_exeext' | ||
4610 | { (eval echo "$as_me:4610: \"$ac_try\"") >&5 | ||
4611 | (eval $ac_try) 2>&5 | ||
4612 | ac_status=$? | ||
4613 | echo "$as_me:4613: \$? = $ac_status" >&5 | ||
4614 | (exit $ac_status); }; }; then | ||
4615 | eval "$as_ac_var=yes" | ||
4616 | else | ||
4617 | echo "$as_me: failed program was:" >&5 | ||
4618 | cat conftest.$ac_ext >&5 | ||
4619 | eval "$as_ac_var=no" | ||
4620 | fi | ||
4621 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4622 | fi | ||
4623 | echo "$as_me:4623: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4624 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4625 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4626 | cat >>confdefs.h <<EOF | ||
4627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4628 | EOF | ||
4629 | |||
4630 | fi | ||
4631 | done | ||
4632 | |||
4633 | MANTYPE=man | ||
4634 | ;; | ||
4635 | *-*-unicosmk*) | ||
4636 | cat >>confdefs.h <<\EOF | ||
4637 | #define NO_SSH_LASTLOG 1 | ||
4638 | EOF | ||
4639 | |||
4640 | cat >>confdefs.h <<\EOF | ||
4641 | #define SETEUID_BREAKS_SETUID 1 | ||
4642 | EOF | ||
4643 | |||
4644 | cat >>confdefs.h <<\EOF | ||
4645 | #define BROKEN_SETREUID 1 | ||
4646 | EOF | ||
4647 | |||
4648 | cat >>confdefs.h <<\EOF | ||
4649 | #define BROKEN_SETREGID 1 | ||
4650 | EOF | ||
4651 | |||
4652 | cat >>confdefs.h <<\EOF | ||
4653 | #define USE_PIPES 1 | ||
4654 | EOF | ||
4655 | |||
4656 | cat >>confdefs.h <<\EOF | ||
4657 | #define DISABLE_FD_PASSING 1 | ||
4658 | EOF | ||
4659 | |||
4660 | LDFLAGS="$LDFLAGS" | ||
4661 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4662 | MANTYPE=cat | ||
4663 | ;; | ||
4664 | *-*-unicosmp*) | ||
4665 | cat >>confdefs.h <<\EOF | ||
4666 | #define SETEUID_BREAKS_SETUID 1 | ||
4667 | EOF | ||
4668 | |||
4669 | cat >>confdefs.h <<\EOF | ||
4670 | #define BROKEN_SETREUID 1 | ||
4671 | EOF | ||
4672 | |||
4673 | cat >>confdefs.h <<\EOF | ||
4674 | #define BROKEN_SETREGID 1 | ||
4675 | EOF | ||
4676 | |||
4677 | cat >>confdefs.h <<\EOF | ||
4678 | #define WITH_ABBREV_NO_TTY 1 | ||
4679 | EOF | ||
4680 | |||
4681 | cat >>confdefs.h <<\EOF | ||
4682 | #define USE_PIPES 1 | ||
4683 | EOF | ||
4684 | |||
4685 | cat >>confdefs.h <<\EOF | ||
4686 | #define DISABLE_FD_PASSING 1 | ||
4687 | EOF | ||
4688 | |||
4689 | LDFLAGS="$LDFLAGS" | ||
4690 | LIBS="$LIBS -lgen -lacid -ldb" | ||
4691 | MANTYPE=cat | ||
4692 | ;; | ||
4693 | *-*-unicos*) | ||
4694 | cat >>confdefs.h <<\EOF | ||
4695 | #define SETEUID_BREAKS_SETUID 1 | ||
4696 | EOF | ||
4697 | |||
4698 | cat >>confdefs.h <<\EOF | ||
4699 | #define BROKEN_SETREUID 1 | ||
4700 | EOF | ||
4701 | |||
4702 | cat >>confdefs.h <<\EOF | ||
4703 | #define BROKEN_SETREGID 1 | ||
4704 | EOF | ||
4705 | |||
4706 | cat >>confdefs.h <<\EOF | ||
4707 | #define USE_PIPES 1 | ||
4708 | EOF | ||
4709 | |||
4710 | cat >>confdefs.h <<\EOF | ||
4711 | #define DISABLE_FD_PASSING 1 | ||
4712 | EOF | ||
4713 | |||
4714 | cat >>confdefs.h <<\EOF | ||
4715 | #define NO_SSH_LASTLOG 1 | ||
4716 | EOF | ||
4717 | |||
4718 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4719 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4720 | MANTYPE=cat | ||
4721 | ;; | ||
4722 | *-dec-osf*) | ||
4723 | echo "$as_me:4723: checking for Digital Unix SIA" >&5 | ||
4724 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4725 | no_osfsia="" | ||
4726 | |||
4727 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4728 | if test "${with_osfsia+set}" = set; then | ||
4729 | withval="$with_osfsia" | ||
4730 | |||
4731 | if test "x$withval" = "xno" ; then | ||
4732 | echo "$as_me:4732: result: disabled" >&5 | ||
4733 | echo "${ECHO_T}disabled" >&6 | ||
4734 | no_osfsia=1 | ||
4735 | fi | ||
4736 | |||
4737 | fi; | ||
4738 | if test -z "$no_osfsia" ; then | ||
4739 | if test -f /etc/sia/matrix.conf; then | ||
4740 | echo "$as_me:4740: result: yes" >&5 | ||
4741 | echo "${ECHO_T}yes" >&6 | ||
4742 | cat >>confdefs.h <<\EOF | ||
4743 | #define HAVE_OSF_SIA 1 | ||
4744 | EOF | ||
4745 | |||
4746 | cat >>confdefs.h <<\EOF | ||
4747 | #define DISABLE_LOGIN 1 | ||
4748 | EOF | ||
4749 | |||
4750 | cat >>confdefs.h <<\EOF | ||
4751 | #define DISABLE_FD_PASSING 1 | ||
4752 | EOF | ||
4753 | |||
4754 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4755 | else | ||
4756 | echo "$as_me:4756: result: no" >&5 | ||
4757 | echo "${ECHO_T}no" >&6 | ||
4758 | cat >>confdefs.h <<\EOF | ||
4759 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
4760 | EOF | ||
4761 | |||
4762 | fi | ||
4763 | fi | ||
4764 | cat >>confdefs.h <<\EOF | ||
4765 | #define BROKEN_GETADDRINFO 1 | ||
4766 | EOF | ||
4767 | |||
4768 | cat >>confdefs.h <<\EOF | ||
4769 | #define SETEUID_BREAKS_SETUID 1 | ||
4770 | EOF | ||
4771 | |||
4772 | cat >>confdefs.h <<\EOF | ||
4773 | #define BROKEN_SETREUID 1 | ||
4774 | EOF | ||
4775 | |||
4776 | cat >>confdefs.h <<\EOF | ||
4777 | #define BROKEN_SETREGID 1 | ||
4778 | EOF | ||
4779 | |||
4780 | ;; | ||
4781 | |||
4782 | *-*-nto-qnx) | ||
4783 | cat >>confdefs.h <<\EOF | ||
4784 | #define USE_PIPES 1 | ||
4785 | EOF | ||
4786 | |||
4787 | cat >>confdefs.h <<\EOF | ||
4788 | #define NO_X11_UNIX_SOCKETS 1 | ||
4789 | EOF | ||
4790 | |||
4791 | cat >>confdefs.h <<\EOF | ||
4792 | #define MISSING_NFDBITS 1 | ||
4793 | EOF | ||
4794 | |||
4795 | cat >>confdefs.h <<\EOF | ||
4796 | #define MISSING_HOWMANY 1 | ||
4797 | EOF | ||
4798 | |||
4799 | cat >>confdefs.h <<\EOF | ||
4800 | #define MISSING_FD_MASK 1 | ||
4801 | EOF | ||
4802 | |||
4803 | ;; | ||
4804 | esac | ||
4805 | |||
4806 | # Allow user to specify flags | ||
4807 | |||
4808 | # Check whether --with-cflags or --without-cflags was given. | ||
4809 | if test "${with_cflags+set}" = set; then | ||
4810 | withval="$with_cflags" | ||
4811 | |||
4812 | if test "x$withval" != "xno" ; then | ||
4813 | CFLAGS="$CFLAGS $withval" | ||
4814 | fi | ||
4815 | |||
4816 | fi; | ||
4817 | |||
4818 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4819 | if test "${with_cppflags+set}" = set; then | ||
4820 | withval="$with_cppflags" | ||
4821 | |||
4822 | if test "x$withval" != "xno"; then | ||
4823 | CPPFLAGS="$CPPFLAGS $withval" | ||
4824 | fi | ||
4825 | |||
4826 | fi; | ||
4827 | |||
4828 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4829 | if test "${with_ldflags+set}" = set; then | ||
4830 | withval="$with_ldflags" | ||
4831 | |||
4832 | if test "x$withval" != "xno" ; then | ||
4833 | LDFLAGS="$LDFLAGS $withval" | ||
4834 | fi | ||
4835 | |||
4836 | fi; | ||
4837 | |||
4838 | # Check whether --with-libs or --without-libs was given. | ||
4839 | if test "${with_libs+set}" = set; then | ||
4840 | withval="$with_libs" | ||
4841 | |||
4842 | if test "x$withval" != "xno" ; then | ||
4843 | LIBS="$LIBS $withval" | ||
4844 | fi | ||
4845 | |||
4846 | fi; | ||
4847 | |||
4848 | echo "$as_me:4848: checking compiler and flags for sanity" >&5 | ||
4849 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
4850 | if test "$cross_compiling" = yes; then | ||
4851 | { { echo "$as_me:4851: error: cannot run test program while cross compiling" >&5 | ||
4852 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
4853 | { (exit 1); exit 1; }; } | ||
4854 | else | ||
4855 | cat >conftest.$ac_ext <<_ACEOF | ||
4856 | #line 4856 "configure" | ||
4857 | #include "confdefs.h" | ||
4858 | |||
4859 | #include <stdio.h> | ||
4860 | int main(){exit(0);} | ||
4861 | |||
4862 | _ACEOF | ||
4863 | rm -f conftest$ac_exeext | ||
4864 | if { (eval echo "$as_me:4864: \"$ac_link\"") >&5 | ||
4865 | (eval $ac_link) 2>&5 | ||
4866 | ac_status=$? | ||
4867 | echo "$as_me:4867: \$? = $ac_status" >&5 | ||
4868 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4869 | { (eval echo "$as_me:4869: \"$ac_try\"") >&5 | ||
4870 | (eval $ac_try) 2>&5 | ||
4871 | ac_status=$? | ||
4872 | echo "$as_me:4872: \$? = $ac_status" >&5 | ||
4873 | (exit $ac_status); }; }; then | ||
4874 | echo "$as_me:4874: result: yes" >&5 | ||
4875 | echo "${ECHO_T}yes" >&6 | ||
4876 | else | ||
4877 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4878 | echo "$as_me: failed program was:" >&5 | ||
4879 | cat conftest.$ac_ext >&5 | ||
4880 | |||
4881 | echo "$as_me:4881: result: no" >&5 | ||
4882 | echo "${ECHO_T}no" >&6 | ||
4883 | { { echo "$as_me:4883: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
4884 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
4885 | { (exit 1); exit 1; }; } | ||
4886 | |||
4887 | fi | ||
4888 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4889 | fi | ||
4890 | |||
4891 | # Checks for header files. | ||
4892 | |||
4893 | for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \ | ||
4894 | getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
4895 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
4896 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ | ||
4897 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
4898 | strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \ | ||
4899 | sys/cdefs.h sys/mman.h sys/pstat.h sys/ptms.h sys/select.h sys/stat.h \ | ||
4900 | sys/stream.h sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
4901 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
4902 | util.h utime.h utmp.h utmpx.h vis.h | ||
4903 | do | ||
4904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4905 | echo "$as_me:4905: checking for $ac_header" >&5 | ||
4906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4909 | else | ||
4910 | cat >conftest.$ac_ext <<_ACEOF | ||
4911 | #line 4911 "configure" | ||
4912 | #include "confdefs.h" | ||
4913 | #include <$ac_header> | ||
4914 | _ACEOF | ||
4915 | if { (eval echo "$as_me:4915: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4917 | ac_status=$? | ||
4918 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4919 | rm -f conftest.er1 | ||
4920 | cat conftest.err >&5 | ||
4921 | echo "$as_me:4921: \$? = $ac_status" >&5 | ||
4922 | (exit $ac_status); } >/dev/null; then | ||
4923 | if test -s conftest.err; then | ||
4924 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4925 | else | ||
4926 | ac_cpp_err= | ||
4927 | fi | ||
4928 | else | ||
4929 | ac_cpp_err=yes | ||
4930 | fi | ||
4931 | if test -z "$ac_cpp_err"; then | ||
4932 | eval "$as_ac_Header=yes" | ||
4933 | else | ||
4934 | echo "$as_me: failed program was:" >&5 | ||
4935 | cat conftest.$ac_ext >&5 | ||
4936 | eval "$as_ac_Header=no" | ||
4937 | fi | ||
4938 | rm -f conftest.err conftest.$ac_ext | ||
4939 | fi | ||
4940 | echo "$as_me:4940: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4943 | cat >>confdefs.h <<EOF | ||
4944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4945 | EOF | ||
4946 | |||
4947 | fi | ||
4948 | done | ||
4949 | |||
4950 | # Checks for libraries. | ||
4951 | echo "$as_me:4951: checking for yp_match" >&5 | ||
4952 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
4953 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
4954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4955 | else | ||
4956 | cat >conftest.$ac_ext <<_ACEOF | ||
4957 | #line 4957 "configure" | ||
4958 | #include "confdefs.h" | ||
4959 | /* System header to define __stub macros and hopefully few prototypes, | ||
4960 | which can conflict with char yp_match (); below. */ | ||
4961 | #include <assert.h> | ||
4962 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4963 | #ifdef __cplusplus | ||
4964 | extern "C" | ||
4965 | #endif | ||
4966 | /* We use char because int might match the return type of a gcc2 | ||
4967 | builtin and then its argument prototype would still apply. */ | ||
4968 | char yp_match (); | ||
4969 | char (*f) (); | ||
4970 | |||
4971 | int | ||
4972 | main () | ||
4973 | { | ||
4974 | /* The GNU C library defines this for functions which it implements | ||
4975 | to always fail with ENOSYS. Some functions are actually named | ||
4976 | something starting with __ and the normal name is an alias. */ | ||
4977 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
4978 | choke me | ||
4979 | #else | ||
4980 | f = yp_match; | ||
4981 | #endif | ||
4982 | |||
4983 | ; | ||
4984 | return 0; | ||
4985 | } | ||
4986 | _ACEOF | ||
4987 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4988 | if { (eval echo "$as_me:4988: \"$ac_link\"") >&5 | ||
4989 | (eval $ac_link) 2>&5 | ||
4990 | ac_status=$? | ||
4991 | echo "$as_me:4991: \$? = $ac_status" >&5 | ||
4992 | (exit $ac_status); } && | ||
4993 | { ac_try='test -s conftest$ac_exeext' | ||
4994 | { (eval echo "$as_me:4994: \"$ac_try\"") >&5 | ||
4995 | (eval $ac_try) 2>&5 | ||
4996 | ac_status=$? | ||
4997 | echo "$as_me:4997: \$? = $ac_status" >&5 | ||
4998 | (exit $ac_status); }; }; then | ||
4999 | ac_cv_func_yp_match=yes | ||
5000 | else | ||
5001 | echo "$as_me: failed program was:" >&5 | ||
5002 | cat conftest.$ac_ext >&5 | ||
5003 | ac_cv_func_yp_match=no | ||
5004 | fi | ||
5005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5006 | fi | ||
5007 | echo "$as_me:5007: result: $ac_cv_func_yp_match" >&5 | ||
5008 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
5009 | if test $ac_cv_func_yp_match = yes; then | ||
5010 | : | ||
5011 | else | ||
5012 | |||
5013 | echo "$as_me:5013: checking for yp_match in -lnsl" >&5 | ||
5014 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
5015 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
5016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5017 | else | ||
5018 | ac_check_lib_save_LIBS=$LIBS | ||
5019 | LIBS="-lnsl $LIBS" | ||
5020 | cat >conftest.$ac_ext <<_ACEOF | ||
5021 | #line 5021 "configure" | ||
5022 | #include "confdefs.h" | ||
5023 | |||
5024 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5025 | #ifdef __cplusplus | ||
5026 | extern "C" | ||
5027 | #endif | ||
5028 | /* We use char because int might match the return type of a gcc2 | ||
5029 | builtin and then its argument prototype would still apply. */ | ||
5030 | char yp_match (); | ||
5031 | int | ||
5032 | main () | ||
5033 | { | ||
5034 | yp_match (); | ||
5035 | ; | ||
5036 | return 0; | ||
5037 | } | ||
5038 | _ACEOF | ||
5039 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5040 | if { (eval echo "$as_me:5040: \"$ac_link\"") >&5 | ||
5041 | (eval $ac_link) 2>&5 | ||
5042 | ac_status=$? | ||
5043 | echo "$as_me:5043: \$? = $ac_status" >&5 | ||
5044 | (exit $ac_status); } && | ||
5045 | { ac_try='test -s conftest$ac_exeext' | ||
5046 | { (eval echo "$as_me:5046: \"$ac_try\"") >&5 | ||
5047 | (eval $ac_try) 2>&5 | ||
5048 | ac_status=$? | ||
5049 | echo "$as_me:5049: \$? = $ac_status" >&5 | ||
5050 | (exit $ac_status); }; }; then | ||
5051 | ac_cv_lib_nsl_yp_match=yes | ||
5052 | else | ||
5053 | echo "$as_me: failed program was:" >&5 | ||
5054 | cat conftest.$ac_ext >&5 | ||
5055 | ac_cv_lib_nsl_yp_match=no | ||
5056 | fi | ||
5057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5058 | LIBS=$ac_check_lib_save_LIBS | ||
5059 | fi | ||
5060 | echo "$as_me:5060: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
5061 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
5062 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
5063 | cat >>confdefs.h <<EOF | ||
5064 | #define HAVE_LIBNSL 1 | ||
5065 | EOF | ||
5066 | |||
5067 | LIBS="-lnsl $LIBS" | ||
5068 | |||
5069 | fi | ||
5070 | |||
5071 | fi | ||
5072 | |||
5073 | echo "$as_me:5073: checking for setsockopt" >&5 | ||
5074 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
5075 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
5076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5077 | else | ||
5078 | cat >conftest.$ac_ext <<_ACEOF | ||
5079 | #line 5079 "configure" | ||
5080 | #include "confdefs.h" | ||
5081 | /* System header to define __stub macros and hopefully few prototypes, | ||
5082 | which can conflict with char setsockopt (); below. */ | ||
5083 | #include <assert.h> | ||
5084 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5085 | #ifdef __cplusplus | ||
5086 | extern "C" | ||
5087 | #endif | ||
5088 | /* We use char because int might match the return type of a gcc2 | ||
5089 | builtin and then its argument prototype would still apply. */ | ||
5090 | char setsockopt (); | ||
5091 | char (*f) (); | ||
5092 | |||
5093 | int | ||
5094 | main () | ||
5095 | { | ||
5096 | /* The GNU C library defines this for functions which it implements | ||
5097 | to always fail with ENOSYS. Some functions are actually named | ||
5098 | something starting with __ and the normal name is an alias. */ | ||
5099 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
5100 | choke me | ||
5101 | #else | ||
5102 | f = setsockopt; | ||
5103 | #endif | ||
5104 | |||
5105 | ; | ||
5106 | return 0; | ||
5107 | } | ||
5108 | _ACEOF | ||
5109 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5110 | if { (eval echo "$as_me:5110: \"$ac_link\"") >&5 | ||
5111 | (eval $ac_link) 2>&5 | ||
5112 | ac_status=$? | ||
5113 | echo "$as_me:5113: \$? = $ac_status" >&5 | ||
5114 | (exit $ac_status); } && | ||
5115 | { ac_try='test -s conftest$ac_exeext' | ||
5116 | { (eval echo "$as_me:5116: \"$ac_try\"") >&5 | ||
5117 | (eval $ac_try) 2>&5 | ||
5118 | ac_status=$? | ||
5119 | echo "$as_me:5119: \$? = $ac_status" >&5 | ||
5120 | (exit $ac_status); }; }; then | ||
5121 | ac_cv_func_setsockopt=yes | ||
5122 | else | ||
5123 | echo "$as_me: failed program was:" >&5 | ||
5124 | cat conftest.$ac_ext >&5 | ||
5125 | ac_cv_func_setsockopt=no | ||
5126 | fi | ||
5127 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5128 | fi | ||
5129 | echo "$as_me:5129: result: $ac_cv_func_setsockopt" >&5 | ||
5130 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5131 | if test $ac_cv_func_setsockopt = yes; then | ||
5132 | : | ||
5133 | else | ||
5134 | |||
5135 | echo "$as_me:5135: checking for setsockopt in -lsocket" >&5 | ||
5136 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5137 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5139 | else | ||
5140 | ac_check_lib_save_LIBS=$LIBS | ||
5141 | LIBS="-lsocket $LIBS" | ||
5142 | cat >conftest.$ac_ext <<_ACEOF | ||
5143 | #line 5143 "configure" | ||
5144 | #include "confdefs.h" | ||
5145 | |||
5146 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5147 | #ifdef __cplusplus | ||
5148 | extern "C" | ||
5149 | #endif | ||
5150 | /* We use char because int might match the return type of a gcc2 | ||
5151 | builtin and then its argument prototype would still apply. */ | ||
5152 | char setsockopt (); | ||
5153 | int | ||
5154 | main () | ||
5155 | { | ||
5156 | setsockopt (); | ||
5157 | ; | ||
5158 | return 0; | ||
5159 | } | ||
5160 | _ACEOF | ||
5161 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5162 | if { (eval echo "$as_me:5162: \"$ac_link\"") >&5 | ||
5163 | (eval $ac_link) 2>&5 | ||
5164 | ac_status=$? | ||
5165 | echo "$as_me:5165: \$? = $ac_status" >&5 | ||
5166 | (exit $ac_status); } && | ||
5167 | { ac_try='test -s conftest$ac_exeext' | ||
5168 | { (eval echo "$as_me:5168: \"$ac_try\"") >&5 | ||
5169 | (eval $ac_try) 2>&5 | ||
5170 | ac_status=$? | ||
5171 | echo "$as_me:5171: \$? = $ac_status" >&5 | ||
5172 | (exit $ac_status); }; }; then | ||
5173 | ac_cv_lib_socket_setsockopt=yes | ||
5174 | else | ||
5175 | echo "$as_me: failed program was:" >&5 | ||
5176 | cat conftest.$ac_ext >&5 | ||
5177 | ac_cv_lib_socket_setsockopt=no | ||
5178 | fi | ||
5179 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5180 | LIBS=$ac_check_lib_save_LIBS | ||
5181 | fi | ||
5182 | echo "$as_me:5182: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5183 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5184 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5185 | cat >>confdefs.h <<EOF | ||
5186 | #define HAVE_LIBSOCKET 1 | ||
5187 | EOF | ||
5188 | |||
5189 | LIBS="-lsocket $LIBS" | ||
5190 | |||
5191 | fi | ||
5192 | |||
5193 | fi | ||
5194 | |||
5195 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5196 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5197 | echo "$as_me:5197: checking for innetgr in -lrpc" >&5 | ||
5198 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5199 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5201 | else | ||
5202 | ac_check_lib_save_LIBS=$LIBS | ||
5203 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5204 | cat >conftest.$ac_ext <<_ACEOF | ||
5205 | #line 5205 "configure" | ||
5206 | #include "confdefs.h" | ||
5207 | |||
5208 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5209 | #ifdef __cplusplus | ||
5210 | extern "C" | ||
5211 | #endif | ||
5212 | /* We use char because int might match the return type of a gcc2 | ||
5213 | builtin and then its argument prototype would still apply. */ | ||
5214 | char innetgr (); | ||
5215 | int | ||
5216 | main () | ||
5217 | { | ||
5218 | innetgr (); | ||
5219 | ; | ||
5220 | return 0; | ||
5221 | } | ||
5222 | _ACEOF | ||
5223 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5224 | if { (eval echo "$as_me:5224: \"$ac_link\"") >&5 | ||
5225 | (eval $ac_link) 2>&5 | ||
5226 | ac_status=$? | ||
5227 | echo "$as_me:5227: \$? = $ac_status" >&5 | ||
5228 | (exit $ac_status); } && | ||
5229 | { ac_try='test -s conftest$ac_exeext' | ||
5230 | { (eval echo "$as_me:5230: \"$ac_try\"") >&5 | ||
5231 | (eval $ac_try) 2>&5 | ||
5232 | ac_status=$? | ||
5233 | echo "$as_me:5233: \$? = $ac_status" >&5 | ||
5234 | (exit $ac_status); }; }; then | ||
5235 | ac_cv_lib_rpc_innetgr=yes | ||
5236 | else | ||
5237 | echo "$as_me: failed program was:" >&5 | ||
5238 | cat conftest.$ac_ext >&5 | ||
5239 | ac_cv_lib_rpc_innetgr=no | ||
5240 | fi | ||
5241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5242 | LIBS=$ac_check_lib_save_LIBS | ||
5243 | fi | ||
5244 | echo "$as_me:5244: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5245 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5246 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5247 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5248 | fi | ||
5249 | |||
5250 | fi | ||
5251 | fi | ||
5252 | |||
5253 | for ac_func in dirname | ||
5254 | do | ||
5255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5256 | echo "$as_me:5256: checking for $ac_func" >&5 | ||
5257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5258 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5260 | else | ||
5261 | cat >conftest.$ac_ext <<_ACEOF | ||
5262 | #line 5262 "configure" | ||
5263 | #include "confdefs.h" | ||
5264 | /* System header to define __stub macros and hopefully few prototypes, | ||
5265 | which can conflict with char $ac_func (); below. */ | ||
5266 | #include <assert.h> | ||
5267 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5268 | #ifdef __cplusplus | ||
5269 | extern "C" | ||
5270 | #endif | ||
5271 | /* We use char because int might match the return type of a gcc2 | ||
5272 | builtin and then its argument prototype would still apply. */ | ||
5273 | char $ac_func (); | ||
5274 | char (*f) (); | ||
5275 | |||
5276 | int | ||
5277 | main () | ||
5278 | { | ||
5279 | /* The GNU C library defines this for functions which it implements | ||
5280 | to always fail with ENOSYS. Some functions are actually named | ||
5281 | something starting with __ and the normal name is an alias. */ | ||
5282 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5283 | choke me | ||
5284 | #else | ||
5285 | f = $ac_func; | ||
5286 | #endif | ||
5287 | |||
5288 | ; | ||
5289 | return 0; | ||
5290 | } | ||
5291 | _ACEOF | ||
5292 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5293 | if { (eval echo "$as_me:5293: \"$ac_link\"") >&5 | ||
5294 | (eval $ac_link) 2>&5 | ||
5295 | ac_status=$? | ||
5296 | echo "$as_me:5296: \$? = $ac_status" >&5 | ||
5297 | (exit $ac_status); } && | ||
5298 | { ac_try='test -s conftest$ac_exeext' | ||
5299 | { (eval echo "$as_me:5299: \"$ac_try\"") >&5 | ||
5300 | (eval $ac_try) 2>&5 | ||
5301 | ac_status=$? | ||
5302 | echo "$as_me:5302: \$? = $ac_status" >&5 | ||
5303 | (exit $ac_status); }; }; then | ||
5304 | eval "$as_ac_var=yes" | ||
5305 | else | ||
5306 | echo "$as_me: failed program was:" >&5 | ||
5307 | cat conftest.$ac_ext >&5 | ||
5308 | eval "$as_ac_var=no" | ||
5309 | fi | ||
5310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5311 | fi | ||
5312 | echo "$as_me:5312: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5313 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5314 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5315 | cat >>confdefs.h <<EOF | ||
5316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5317 | EOF | ||
5318 | |||
5319 | for ac_header in libgen.h | ||
5320 | do | ||
5321 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5322 | echo "$as_me:5322: checking for $ac_header" >&5 | ||
5323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5326 | else | ||
5327 | cat >conftest.$ac_ext <<_ACEOF | ||
5328 | #line 5328 "configure" | ||
5329 | #include "confdefs.h" | ||
5330 | #include <$ac_header> | ||
5331 | _ACEOF | ||
5332 | if { (eval echo "$as_me:5332: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5333 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5334 | ac_status=$? | ||
5335 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5336 | rm -f conftest.er1 | ||
5337 | cat conftest.err >&5 | ||
5338 | echo "$as_me:5338: \$? = $ac_status" >&5 | ||
5339 | (exit $ac_status); } >/dev/null; then | ||
5340 | if test -s conftest.err; then | ||
5341 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5342 | else | ||
5343 | ac_cpp_err= | ||
5344 | fi | ||
5345 | else | ||
5346 | ac_cpp_err=yes | ||
5347 | fi | ||
5348 | if test -z "$ac_cpp_err"; then | ||
5349 | eval "$as_ac_Header=yes" | ||
5350 | else | ||
5351 | echo "$as_me: failed program was:" >&5 | ||
5352 | cat conftest.$ac_ext >&5 | ||
5353 | eval "$as_ac_Header=no" | ||
5354 | fi | ||
5355 | rm -f conftest.err conftest.$ac_ext | ||
5356 | fi | ||
5357 | echo "$as_me:5357: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5360 | cat >>confdefs.h <<EOF | ||
5361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5362 | EOF | ||
5363 | |||
5364 | fi | ||
5365 | done | ||
5366 | |||
5367 | else | ||
5368 | |||
5369 | echo "$as_me:5369: checking for dirname in -lgen" >&5 | ||
5370 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
5371 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
5372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5373 | else | ||
5374 | ac_check_lib_save_LIBS=$LIBS | ||
5375 | LIBS="-lgen $LIBS" | ||
5376 | cat >conftest.$ac_ext <<_ACEOF | ||
5377 | #line 5377 "configure" | ||
5378 | #include "confdefs.h" | ||
5379 | |||
5380 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5381 | #ifdef __cplusplus | ||
5382 | extern "C" | ||
5383 | #endif | ||
5384 | /* We use char because int might match the return type of a gcc2 | ||
5385 | builtin and then its argument prototype would still apply. */ | ||
5386 | char dirname (); | ||
5387 | int | ||
5388 | main () | ||
5389 | { | ||
5390 | dirname (); | ||
5391 | ; | ||
5392 | return 0; | ||
5393 | } | ||
5394 | _ACEOF | ||
5395 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5396 | if { (eval echo "$as_me:5396: \"$ac_link\"") >&5 | ||
5397 | (eval $ac_link) 2>&5 | ||
5398 | ac_status=$? | ||
5399 | echo "$as_me:5399: \$? = $ac_status" >&5 | ||
5400 | (exit $ac_status); } && | ||
5401 | { ac_try='test -s conftest$ac_exeext' | ||
5402 | { (eval echo "$as_me:5402: \"$ac_try\"") >&5 | ||
5403 | (eval $ac_try) 2>&5 | ||
5404 | ac_status=$? | ||
5405 | echo "$as_me:5405: \$? = $ac_status" >&5 | ||
5406 | (exit $ac_status); }; }; then | ||
5407 | ac_cv_lib_gen_dirname=yes | ||
5408 | else | ||
5409 | echo "$as_me: failed program was:" >&5 | ||
5410 | cat conftest.$ac_ext >&5 | ||
5411 | ac_cv_lib_gen_dirname=no | ||
5412 | fi | ||
5413 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5414 | LIBS=$ac_check_lib_save_LIBS | ||
5415 | fi | ||
5416 | echo "$as_me:5416: result: $ac_cv_lib_gen_dirname" >&5 | ||
5417 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
5418 | if test $ac_cv_lib_gen_dirname = yes; then | ||
5419 | |||
5420 | echo "$as_me:5420: checking for broken dirname" >&5 | ||
5421 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
5422 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5424 | else | ||
5425 | |||
5426 | save_LIBS="$LIBS" | ||
5427 | LIBS="$LIBS -lgen" | ||
5428 | if test "$cross_compiling" = yes; then | ||
5429 | { { echo "$as_me:5429: error: cannot run test program while cross compiling" >&5 | ||
5430 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5431 | { (exit 1); exit 1; }; } | ||
5432 | else | ||
5433 | cat >conftest.$ac_ext <<_ACEOF | ||
5434 | #line 5434 "configure" | ||
5435 | #include "confdefs.h" | ||
5436 | |||
5437 | #include <libgen.h> | ||
5438 | #include <string.h> | ||
5439 | |||
5440 | int main(int argc, char **argv) { | ||
5441 | char *s, buf[32]; | ||
5442 | |||
5443 | strncpy(buf,"/etc", 32); | ||
5444 | s = dirname(buf); | ||
5445 | if (!s || strncmp(s, "/", 32) != 0) { | ||
5446 | exit(1); | ||
5447 | } else { | ||
5448 | exit(0); | ||
5449 | } | ||
5450 | } | ||
5451 | |||
5452 | _ACEOF | ||
5453 | rm -f conftest$ac_exeext | ||
5454 | if { (eval echo "$as_me:5454: \"$ac_link\"") >&5 | ||
5455 | (eval $ac_link) 2>&5 | ||
5456 | ac_status=$? | ||
5457 | echo "$as_me:5457: \$? = $ac_status" >&5 | ||
5458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5459 | { (eval echo "$as_me:5459: \"$ac_try\"") >&5 | ||
5460 | (eval $ac_try) 2>&5 | ||
5461 | ac_status=$? | ||
5462 | echo "$as_me:5462: \$? = $ac_status" >&5 | ||
5463 | (exit $ac_status); }; }; then | ||
5464 | ac_cv_have_broken_dirname="no" | ||
5465 | else | ||
5466 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5467 | echo "$as_me: failed program was:" >&5 | ||
5468 | cat conftest.$ac_ext >&5 | ||
5469 | ac_cv_have_broken_dirname="yes" | ||
5470 | |||
5471 | fi | ||
5472 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5473 | fi | ||
5474 | LIBS="$save_LIBS" | ||
5475 | |||
5476 | fi | ||
5477 | echo "$as_me:5477: result: $ac_cv_have_broken_dirname" >&5 | ||
5478 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
5479 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
5480 | LIBS="$LIBS -lgen" | ||
5481 | cat >>confdefs.h <<\EOF | ||
5482 | #define HAVE_DIRNAME 1 | ||
5483 | EOF | ||
5484 | |||
5485 | for ac_header in libgen.h | ||
5486 | do | ||
5487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5488 | echo "$as_me:5488: checking for $ac_header" >&5 | ||
5489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5492 | else | ||
5493 | cat >conftest.$ac_ext <<_ACEOF | ||
5494 | #line 5494 "configure" | ||
5495 | #include "confdefs.h" | ||
5496 | #include <$ac_header> | ||
5497 | _ACEOF | ||
5498 | if { (eval echo "$as_me:5498: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5500 | ac_status=$? | ||
5501 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5502 | rm -f conftest.er1 | ||
5503 | cat conftest.err >&5 | ||
5504 | echo "$as_me:5504: \$? = $ac_status" >&5 | ||
5505 | (exit $ac_status); } >/dev/null; then | ||
5506 | if test -s conftest.err; then | ||
5507 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5508 | else | ||
5509 | ac_cpp_err= | ||
5510 | fi | ||
5511 | else | ||
5512 | ac_cpp_err=yes | ||
5513 | fi | ||
5514 | if test -z "$ac_cpp_err"; then | ||
5515 | eval "$as_ac_Header=yes" | ||
5516 | else | ||
5517 | echo "$as_me: failed program was:" >&5 | ||
5518 | cat conftest.$ac_ext >&5 | ||
5519 | eval "$as_ac_Header=no" | ||
5520 | fi | ||
5521 | rm -f conftest.err conftest.$ac_ext | ||
5522 | fi | ||
5523 | echo "$as_me:5523: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5525 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5526 | cat >>confdefs.h <<EOF | ||
5527 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5528 | EOF | ||
5529 | |||
5530 | fi | ||
5531 | done | ||
5532 | |||
5533 | fi | ||
5534 | |||
5535 | fi | ||
5536 | |||
5537 | fi | ||
5538 | done | ||
5539 | |||
5540 | echo "$as_me:5540: checking for getspnam" >&5 | ||
5541 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5542 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5544 | else | ||
5545 | cat >conftest.$ac_ext <<_ACEOF | ||
5546 | #line 5546 "configure" | ||
5547 | #include "confdefs.h" | ||
5548 | /* System header to define __stub macros and hopefully few prototypes, | ||
5549 | which can conflict with char getspnam (); below. */ | ||
5550 | #include <assert.h> | ||
5551 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5552 | #ifdef __cplusplus | ||
5553 | extern "C" | ||
5554 | #endif | ||
5555 | /* We use char because int might match the return type of a gcc2 | ||
5556 | builtin and then its argument prototype would still apply. */ | ||
5557 | char getspnam (); | ||
5558 | char (*f) (); | ||
5559 | |||
5560 | int | ||
5561 | main () | ||
5562 | { | ||
5563 | /* The GNU C library defines this for functions which it implements | ||
5564 | to always fail with ENOSYS. Some functions are actually named | ||
5565 | something starting with __ and the normal name is an alias. */ | ||
5566 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5567 | choke me | ||
5568 | #else | ||
5569 | f = getspnam; | ||
5570 | #endif | ||
5571 | |||
5572 | ; | ||
5573 | return 0; | ||
5574 | } | ||
5575 | _ACEOF | ||
5576 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5577 | if { (eval echo "$as_me:5577: \"$ac_link\"") >&5 | ||
5578 | (eval $ac_link) 2>&5 | ||
5579 | ac_status=$? | ||
5580 | echo "$as_me:5580: \$? = $ac_status" >&5 | ||
5581 | (exit $ac_status); } && | ||
5582 | { ac_try='test -s conftest$ac_exeext' | ||
5583 | { (eval echo "$as_me:5583: \"$ac_try\"") >&5 | ||
5584 | (eval $ac_try) 2>&5 | ||
5585 | ac_status=$? | ||
5586 | echo "$as_me:5586: \$? = $ac_status" >&5 | ||
5587 | (exit $ac_status); }; }; then | ||
5588 | ac_cv_func_getspnam=yes | ||
5589 | else | ||
5590 | echo "$as_me: failed program was:" >&5 | ||
5591 | cat conftest.$ac_ext >&5 | ||
5592 | ac_cv_func_getspnam=no | ||
5593 | fi | ||
5594 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5595 | fi | ||
5596 | echo "$as_me:5596: result: $ac_cv_func_getspnam" >&5 | ||
5597 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5598 | if test $ac_cv_func_getspnam = yes; then | ||
5599 | : | ||
5600 | else | ||
5601 | echo "$as_me:5601: checking for getspnam in -lgen" >&5 | ||
5602 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5603 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5605 | else | ||
5606 | ac_check_lib_save_LIBS=$LIBS | ||
5607 | LIBS="-lgen $LIBS" | ||
5608 | cat >conftest.$ac_ext <<_ACEOF | ||
5609 | #line 5609 "configure" | ||
5610 | #include "confdefs.h" | ||
5611 | |||
5612 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5613 | #ifdef __cplusplus | ||
5614 | extern "C" | ||
5615 | #endif | ||
5616 | /* We use char because int might match the return type of a gcc2 | ||
5617 | builtin and then its argument prototype would still apply. */ | ||
5618 | char getspnam (); | ||
5619 | int | ||
5620 | main () | ||
5621 | { | ||
5622 | getspnam (); | ||
5623 | ; | ||
5624 | return 0; | ||
5625 | } | ||
5626 | _ACEOF | ||
5627 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5628 | if { (eval echo "$as_me:5628: \"$ac_link\"") >&5 | ||
5629 | (eval $ac_link) 2>&5 | ||
5630 | ac_status=$? | ||
5631 | echo "$as_me:5631: \$? = $ac_status" >&5 | ||
5632 | (exit $ac_status); } && | ||
5633 | { ac_try='test -s conftest$ac_exeext' | ||
5634 | { (eval echo "$as_me:5634: \"$ac_try\"") >&5 | ||
5635 | (eval $ac_try) 2>&5 | ||
5636 | ac_status=$? | ||
5637 | echo "$as_me:5637: \$? = $ac_status" >&5 | ||
5638 | (exit $ac_status); }; }; then | ||
5639 | ac_cv_lib_gen_getspnam=yes | ||
5640 | else | ||
5641 | echo "$as_me: failed program was:" >&5 | ||
5642 | cat conftest.$ac_ext >&5 | ||
5643 | ac_cv_lib_gen_getspnam=no | ||
5644 | fi | ||
5645 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5646 | LIBS=$ac_check_lib_save_LIBS | ||
5647 | fi | ||
5648 | echo "$as_me:5648: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5649 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5650 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5651 | LIBS="$LIBS -lgen" | ||
5652 | fi | ||
5653 | |||
5654 | fi | ||
5655 | |||
5656 | echo "$as_me:5656: checking for library containing basename" >&5 | ||
5657 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
5658 | if test "${ac_cv_search_basename+set}" = set; then | ||
5659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5660 | else | ||
5661 | ac_func_search_save_LIBS=$LIBS | ||
5662 | ac_cv_search_basename=no | ||
5663 | cat >conftest.$ac_ext <<_ACEOF | ||
5664 | #line 5664 "configure" | ||
5665 | #include "confdefs.h" | ||
5666 | |||
5667 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5668 | #ifdef __cplusplus | ||
5669 | extern "C" | ||
5670 | #endif | ||
5671 | /* We use char because int might match the return type of a gcc2 | ||
5672 | builtin and then its argument prototype would still apply. */ | ||
5673 | char basename (); | ||
5674 | int | ||
5675 | main () | ||
5676 | { | ||
5677 | basename (); | ||
5678 | ; | ||
5679 | return 0; | ||
5680 | } | ||
5681 | _ACEOF | ||
5682 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5683 | if { (eval echo "$as_me:5683: \"$ac_link\"") >&5 | ||
5684 | (eval $ac_link) 2>&5 | ||
5685 | ac_status=$? | ||
5686 | echo "$as_me:5686: \$? = $ac_status" >&5 | ||
5687 | (exit $ac_status); } && | ||
5688 | { ac_try='test -s conftest$ac_exeext' | ||
5689 | { (eval echo "$as_me:5689: \"$ac_try\"") >&5 | ||
5690 | (eval $ac_try) 2>&5 | ||
5691 | ac_status=$? | ||
5692 | echo "$as_me:5692: \$? = $ac_status" >&5 | ||
5693 | (exit $ac_status); }; }; then | ||
5694 | ac_cv_search_basename="none required" | ||
5695 | else | ||
5696 | echo "$as_me: failed program was:" >&5 | ||
5697 | cat conftest.$ac_ext >&5 | ||
5698 | fi | ||
5699 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5700 | if test "$ac_cv_search_basename" = no; then | ||
5701 | for ac_lib in gen; do | ||
5702 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
5703 | cat >conftest.$ac_ext <<_ACEOF | ||
5704 | #line 5704 "configure" | ||
5705 | #include "confdefs.h" | ||
5706 | |||
5707 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5708 | #ifdef __cplusplus | ||
5709 | extern "C" | ||
5710 | #endif | ||
5711 | /* We use char because int might match the return type of a gcc2 | ||
5712 | builtin and then its argument prototype would still apply. */ | ||
5713 | char basename (); | ||
5714 | int | ||
5715 | main () | ||
5716 | { | ||
5717 | basename (); | ||
5718 | ; | ||
5719 | return 0; | ||
5720 | } | ||
5721 | _ACEOF | ||
5722 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5723 | if { (eval echo "$as_me:5723: \"$ac_link\"") >&5 | ||
5724 | (eval $ac_link) 2>&5 | ||
5725 | ac_status=$? | ||
5726 | echo "$as_me:5726: \$? = $ac_status" >&5 | ||
5727 | (exit $ac_status); } && | ||
5728 | { ac_try='test -s conftest$ac_exeext' | ||
5729 | { (eval echo "$as_me:5729: \"$ac_try\"") >&5 | ||
5730 | (eval $ac_try) 2>&5 | ||
5731 | ac_status=$? | ||
5732 | echo "$as_me:5732: \$? = $ac_status" >&5 | ||
5733 | (exit $ac_status); }; }; then | ||
5734 | ac_cv_search_basename="-l$ac_lib" | ||
5735 | break | ||
5736 | else | ||
5737 | echo "$as_me: failed program was:" >&5 | ||
5738 | cat conftest.$ac_ext >&5 | ||
5739 | fi | ||
5740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5741 | done | ||
5742 | fi | ||
5743 | LIBS=$ac_func_search_save_LIBS | ||
5744 | fi | ||
5745 | echo "$as_me:5745: result: $ac_cv_search_basename" >&5 | ||
5746 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
5747 | if test "$ac_cv_search_basename" != no; then | ||
5748 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
5749 | cat >>confdefs.h <<\EOF | ||
5750 | #define HAVE_BASENAME 1 | ||
5751 | EOF | ||
5752 | |||
5753 | fi | ||
5754 | |||
5755 | # Check whether --with-zlib or --without-zlib was given. | ||
5756 | if test "${with_zlib+set}" = set; then | ||
5757 | withval="$with_zlib" | ||
5758 | |||
5759 | if test "x$withval" = "xno" ; then | ||
5760 | { { echo "$as_me:5760: error: *** zlib is required ***" >&5 | ||
5761 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5762 | { (exit 1); exit 1; }; } | ||
5763 | fi | ||
5764 | if test -d "$withval/lib"; then | ||
5765 | if test -n "${need_dash_r}"; then | ||
5766 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5767 | else | ||
5768 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5769 | fi | ||
5770 | else | ||
5771 | if test -n "${need_dash_r}"; then | ||
5772 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5773 | else | ||
5774 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5775 | fi | ||
5776 | fi | ||
5777 | if test -d "$withval/include"; then | ||
5778 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5779 | else | ||
5780 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5781 | fi | ||
5782 | |||
5783 | fi; | ||
5784 | |||
5785 | echo "$as_me:5785: checking for deflate in -lz" >&5 | ||
5786 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5787 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5789 | else | ||
5790 | ac_check_lib_save_LIBS=$LIBS | ||
5791 | LIBS="-lz $LIBS" | ||
5792 | cat >conftest.$ac_ext <<_ACEOF | ||
5793 | #line 5793 "configure" | ||
5794 | #include "confdefs.h" | ||
5795 | |||
5796 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5797 | #ifdef __cplusplus | ||
5798 | extern "C" | ||
5799 | #endif | ||
5800 | /* We use char because int might match the return type of a gcc2 | ||
5801 | builtin and then its argument prototype would still apply. */ | ||
5802 | char deflate (); | ||
5803 | int | ||
5804 | main () | ||
5805 | { | ||
5806 | deflate (); | ||
5807 | ; | ||
5808 | return 0; | ||
5809 | } | ||
5810 | _ACEOF | ||
5811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5812 | if { (eval echo "$as_me:5812: \"$ac_link\"") >&5 | ||
5813 | (eval $ac_link) 2>&5 | ||
5814 | ac_status=$? | ||
5815 | echo "$as_me:5815: \$? = $ac_status" >&5 | ||
5816 | (exit $ac_status); } && | ||
5817 | { ac_try='test -s conftest$ac_exeext' | ||
5818 | { (eval echo "$as_me:5818: \"$ac_try\"") >&5 | ||
5819 | (eval $ac_try) 2>&5 | ||
5820 | ac_status=$? | ||
5821 | echo "$as_me:5821: \$? = $ac_status" >&5 | ||
5822 | (exit $ac_status); }; }; then | ||
5823 | ac_cv_lib_z_deflate=yes | ||
5824 | else | ||
5825 | echo "$as_me: failed program was:" >&5 | ||
5826 | cat conftest.$ac_ext >&5 | ||
5827 | ac_cv_lib_z_deflate=no | ||
5828 | fi | ||
5829 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5830 | LIBS=$ac_check_lib_save_LIBS | ||
5831 | fi | ||
5832 | echo "$as_me:5832: result: $ac_cv_lib_z_deflate" >&5 | ||
5833 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5834 | if test $ac_cv_lib_z_deflate = yes; then | ||
5835 | cat >>confdefs.h <<EOF | ||
5836 | #define HAVE_LIBZ 1 | ||
5837 | EOF | ||
5838 | |||
5839 | LIBS="-lz $LIBS" | ||
5840 | |||
5841 | else | ||
5842 | |||
5843 | saved_CPPFLAGS="$CPPFLAGS" | ||
5844 | saved_LDFLAGS="$LDFLAGS" | ||
5845 | save_LIBS="$LIBS" | ||
5846 | if test -n "${need_dash_r}"; then | ||
5847 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
5848 | else | ||
5849 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
5850 | fi | ||
5851 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
5852 | LIBS="$LIBS -lz" | ||
5853 | cat >conftest.$ac_ext <<_ACEOF | ||
5854 | #line 5854 "configure" | ||
5855 | #include "confdefs.h" | ||
5856 | |||
5857 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5858 | #ifdef __cplusplus | ||
5859 | extern "C" | ||
5860 | #endif | ||
5861 | /* We use char because int might match the return type of a gcc2 | ||
5862 | builtin and then its argument prototype would still apply. */ | ||
5863 | char deflate (); | ||
5864 | int | ||
5865 | main () | ||
5866 | { | ||
5867 | deflate (); | ||
5868 | ; | ||
5869 | return 0; | ||
5870 | } | ||
5871 | _ACEOF | ||
5872 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5873 | if { (eval echo "$as_me:5873: \"$ac_link\"") >&5 | ||
5874 | (eval $ac_link) 2>&5 | ||
5875 | ac_status=$? | ||
5876 | echo "$as_me:5876: \$? = $ac_status" >&5 | ||
5877 | (exit $ac_status); } && | ||
5878 | { ac_try='test -s conftest$ac_exeext' | ||
5879 | { (eval echo "$as_me:5879: \"$ac_try\"") >&5 | ||
5880 | (eval $ac_try) 2>&5 | ||
5881 | ac_status=$? | ||
5882 | echo "$as_me:5882: \$? = $ac_status" >&5 | ||
5883 | (exit $ac_status); }; }; then | ||
5884 | cat >>confdefs.h <<\EOF | ||
5885 | #define HAVE_LIBZ 1 | ||
5886 | EOF | ||
5887 | |||
5888 | else | ||
5889 | echo "$as_me: failed program was:" >&5 | ||
5890 | cat conftest.$ac_ext >&5 | ||
5891 | |||
5892 | { { echo "$as_me:5892: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5893 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5894 | { (exit 1); exit 1; }; } | ||
5895 | |||
5896 | fi | ||
5897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5898 | |||
5899 | fi | ||
5900 | |||
5901 | echo "$as_me:5901: checking for zlib.h" >&5 | ||
5902 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
5903 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
5904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5905 | else | ||
5906 | cat >conftest.$ac_ext <<_ACEOF | ||
5907 | #line 5907 "configure" | ||
5908 | #include "confdefs.h" | ||
5909 | #include <zlib.h> | ||
5910 | _ACEOF | ||
5911 | if { (eval echo "$as_me:5911: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5913 | ac_status=$? | ||
5914 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5915 | rm -f conftest.er1 | ||
5916 | cat conftest.err >&5 | ||
5917 | echo "$as_me:5917: \$? = $ac_status" >&5 | ||
5918 | (exit $ac_status); } >/dev/null; then | ||
5919 | if test -s conftest.err; then | ||
5920 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5921 | else | ||
5922 | ac_cpp_err= | ||
5923 | fi | ||
5924 | else | ||
5925 | ac_cpp_err=yes | ||
5926 | fi | ||
5927 | if test -z "$ac_cpp_err"; then | ||
5928 | ac_cv_header_zlib_h=yes | ||
5929 | else | ||
5930 | echo "$as_me: failed program was:" >&5 | ||
5931 | cat conftest.$ac_ext >&5 | ||
5932 | ac_cv_header_zlib_h=no | ||
5933 | fi | ||
5934 | rm -f conftest.err conftest.$ac_ext | ||
5935 | fi | ||
5936 | echo "$as_me:5936: result: $ac_cv_header_zlib_h" >&5 | ||
5937 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
5938 | if test $ac_cv_header_zlib_h = yes; then | ||
5939 | : | ||
5940 | else | ||
5941 | { { echo "$as_me:5941: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
5942 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
5943 | { (exit 1); exit 1; }; } | ||
5944 | fi | ||
5945 | |||
5946 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
5947 | if test "${with_zlib_version_check+set}" = set; then | ||
5948 | withval="$with_zlib_version_check" | ||
5949 | if test "x$withval" = "xno" ; then | ||
5950 | zlib_check_nonfatal=1 | ||
5951 | fi | ||
5952 | |||
5953 | fi; | ||
5954 | |||
5955 | echo "$as_me:5955: checking for zlib 1.1.4 or greater" >&5 | ||
5956 | echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6 | ||
5957 | if test "$cross_compiling" = yes; then | ||
5958 | { { echo "$as_me:5958: error: cannot run test program while cross compiling" >&5 | ||
5959 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
5960 | { (exit 1); exit 1; }; } | ||
5961 | else | ||
5962 | cat >conftest.$ac_ext <<_ACEOF | ||
5963 | #line 5963 "configure" | ||
5964 | #include "confdefs.h" | ||
5965 | |||
5966 | #include <zlib.h> | ||
5967 | int main() | ||
5968 | { | ||
5969 | int a, b, c, v; | ||
5970 | if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3) | ||
5971 | exit(1); | ||
5972 | v = a*1000000 + b*1000 + c; | ||
5973 | if (v >= 1001004) | ||
5974 | exit(0); | ||
5975 | exit(2); | ||
5976 | } | ||
5977 | |||
5978 | _ACEOF | ||
5979 | rm -f conftest$ac_exeext | ||
5980 | if { (eval echo "$as_me:5980: \"$ac_link\"") >&5 | ||
5981 | (eval $ac_link) 2>&5 | ||
5982 | ac_status=$? | ||
5983 | echo "$as_me:5983: \$? = $ac_status" >&5 | ||
5984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5985 | { (eval echo "$as_me:5985: \"$ac_try\"") >&5 | ||
5986 | (eval $ac_try) 2>&5 | ||
5987 | ac_status=$? | ||
5988 | echo "$as_me:5988: \$? = $ac_status" >&5 | ||
5989 | (exit $ac_status); }; }; then | ||
5990 | echo "$as_me:5990: result: yes" >&5 | ||
5991 | echo "${ECHO_T}yes" >&6 | ||
5992 | else | ||
5993 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5994 | echo "$as_me: failed program was:" >&5 | ||
5995 | cat conftest.$ac_ext >&5 | ||
5996 | echo "$as_me:5996: result: no" >&5 | ||
5997 | echo "${ECHO_T}no" >&6 | ||
5998 | if test -z "$zlib_check_nonfatal" ; then | ||
5999 | { { echo "$as_me:5999: error: *** zlib too old - check config.log *** | ||
6000 | Your reported zlib version has known security problems. It's possible your | ||
6001 | vendor has fixed these problems without changing the version number. If you | ||
6002 | are sure this is the case, you can disable the check by running | ||
6003 | \"./configure --without-zlib-version-check\". | ||
6004 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5 | ||
6005 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
6006 | Your reported zlib version has known security problems. It's possible your | ||
6007 | vendor has fixed these problems without changing the version number. If you | ||
6008 | are sure this is the case, you can disable the check by running | ||
6009 | \"./configure --without-zlib-version-check\". | ||
6010 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;} | ||
6011 | { (exit 1); exit 1; }; } | ||
6012 | else | ||
6013 | { echo "$as_me:6013: WARNING: zlib version may have security problems" >&5 | ||
6014 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
6015 | fi | ||
6016 | |||
6017 | fi | ||
6018 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6019 | fi | ||
6020 | |||
6021 | echo "$as_me:6021: checking for strcasecmp" >&5 | ||
6022 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
6023 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6025 | else | ||
6026 | cat >conftest.$ac_ext <<_ACEOF | ||
6027 | #line 6027 "configure" | ||
6028 | #include "confdefs.h" | ||
6029 | /* System header to define __stub macros and hopefully few prototypes, | ||
6030 | which can conflict with char strcasecmp (); below. */ | ||
6031 | #include <assert.h> | ||
6032 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6033 | #ifdef __cplusplus | ||
6034 | extern "C" | ||
6035 | #endif | ||
6036 | /* We use char because int might match the return type of a gcc2 | ||
6037 | builtin and then its argument prototype would still apply. */ | ||
6038 | char strcasecmp (); | ||
6039 | char (*f) (); | ||
6040 | |||
6041 | int | ||
6042 | main () | ||
6043 | { | ||
6044 | /* The GNU C library defines this for functions which it implements | ||
6045 | to always fail with ENOSYS. Some functions are actually named | ||
6046 | something starting with __ and the normal name is an alias. */ | ||
6047 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
6048 | choke me | ||
6049 | #else | ||
6050 | f = strcasecmp; | ||
6051 | #endif | ||
6052 | |||
6053 | ; | ||
6054 | return 0; | ||
6055 | } | ||
6056 | _ACEOF | ||
6057 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6058 | if { (eval echo "$as_me:6058: \"$ac_link\"") >&5 | ||
6059 | (eval $ac_link) 2>&5 | ||
6060 | ac_status=$? | ||
6061 | echo "$as_me:6061: \$? = $ac_status" >&5 | ||
6062 | (exit $ac_status); } && | ||
6063 | { ac_try='test -s conftest$ac_exeext' | ||
6064 | { (eval echo "$as_me:6064: \"$ac_try\"") >&5 | ||
6065 | (eval $ac_try) 2>&5 | ||
6066 | ac_status=$? | ||
6067 | echo "$as_me:6067: \$? = $ac_status" >&5 | ||
6068 | (exit $ac_status); }; }; then | ||
6069 | ac_cv_func_strcasecmp=yes | ||
6070 | else | ||
6071 | echo "$as_me: failed program was:" >&5 | ||
6072 | cat conftest.$ac_ext >&5 | ||
6073 | ac_cv_func_strcasecmp=no | ||
6074 | fi | ||
6075 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6076 | fi | ||
6077 | echo "$as_me:6077: result: $ac_cv_func_strcasecmp" >&5 | ||
6078 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
6079 | if test $ac_cv_func_strcasecmp = yes; then | ||
6080 | : | ||
6081 | else | ||
6082 | echo "$as_me:6082: checking for strcasecmp in -lresolv" >&5 | ||
6083 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
6084 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6086 | else | ||
6087 | ac_check_lib_save_LIBS=$LIBS | ||
6088 | LIBS="-lresolv $LIBS" | ||
6089 | cat >conftest.$ac_ext <<_ACEOF | ||
6090 | #line 6090 "configure" | ||
6091 | #include "confdefs.h" | ||
6092 | |||
6093 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6094 | #ifdef __cplusplus | ||
6095 | extern "C" | ||
6096 | #endif | ||
6097 | /* We use char because int might match the return type of a gcc2 | ||
6098 | builtin and then its argument prototype would still apply. */ | ||
6099 | char strcasecmp (); | ||
6100 | int | ||
6101 | main () | ||
6102 | { | ||
6103 | strcasecmp (); | ||
6104 | ; | ||
6105 | return 0; | ||
6106 | } | ||
6107 | _ACEOF | ||
6108 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6109 | if { (eval echo "$as_me:6109: \"$ac_link\"") >&5 | ||
6110 | (eval $ac_link) 2>&5 | ||
6111 | ac_status=$? | ||
6112 | echo "$as_me:6112: \$? = $ac_status" >&5 | ||
6113 | (exit $ac_status); } && | ||
6114 | { ac_try='test -s conftest$ac_exeext' | ||
6115 | { (eval echo "$as_me:6115: \"$ac_try\"") >&5 | ||
6116 | (eval $ac_try) 2>&5 | ||
6117 | ac_status=$? | ||
6118 | echo "$as_me:6118: \$? = $ac_status" >&5 | ||
6119 | (exit $ac_status); }; }; then | ||
6120 | ac_cv_lib_resolv_strcasecmp=yes | ||
6121 | else | ||
6122 | echo "$as_me: failed program was:" >&5 | ||
6123 | cat conftest.$ac_ext >&5 | ||
6124 | ac_cv_lib_resolv_strcasecmp=no | ||
6125 | fi | ||
6126 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6127 | LIBS=$ac_check_lib_save_LIBS | ||
6128 | fi | ||
6129 | echo "$as_me:6129: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
6130 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
6131 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
6132 | LIBS="$LIBS -lresolv" | ||
6133 | fi | ||
6134 | |||
6135 | fi | ||
6136 | |||
6137 | echo "$as_me:6137: checking for utimes" >&5 | ||
6138 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
6139 | if test "${ac_cv_func_utimes+set}" = set; then | ||
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6141 | else | ||
6142 | cat >conftest.$ac_ext <<_ACEOF | ||
6143 | #line 6143 "configure" | ||
6144 | #include "confdefs.h" | ||
6145 | /* System header to define __stub macros and hopefully few prototypes, | ||
6146 | which can conflict with char utimes (); below. */ | ||
6147 | #include <assert.h> | ||
6148 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6149 | #ifdef __cplusplus | ||
6150 | extern "C" | ||
6151 | #endif | ||
6152 | /* We use char because int might match the return type of a gcc2 | ||
6153 | builtin and then its argument prototype would still apply. */ | ||
6154 | char utimes (); | ||
6155 | char (*f) (); | ||
6156 | |||
6157 | int | ||
6158 | main () | ||
6159 | { | ||
6160 | /* The GNU C library defines this for functions which it implements | ||
6161 | to always fail with ENOSYS. Some functions are actually named | ||
6162 | something starting with __ and the normal name is an alias. */ | ||
6163 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
6164 | choke me | ||
6165 | #else | ||
6166 | f = utimes; | ||
6167 | #endif | ||
6168 | |||
6169 | ; | ||
6170 | return 0; | ||
6171 | } | ||
6172 | _ACEOF | ||
6173 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6174 | if { (eval echo "$as_me:6174: \"$ac_link\"") >&5 | ||
6175 | (eval $ac_link) 2>&5 | ||
6176 | ac_status=$? | ||
6177 | echo "$as_me:6177: \$? = $ac_status" >&5 | ||
6178 | (exit $ac_status); } && | ||
6179 | { ac_try='test -s conftest$ac_exeext' | ||
6180 | { (eval echo "$as_me:6180: \"$ac_try\"") >&5 | ||
6181 | (eval $ac_try) 2>&5 | ||
6182 | ac_status=$? | ||
6183 | echo "$as_me:6183: \$? = $ac_status" >&5 | ||
6184 | (exit $ac_status); }; }; then | ||
6185 | ac_cv_func_utimes=yes | ||
6186 | else | ||
6187 | echo "$as_me: failed program was:" >&5 | ||
6188 | cat conftest.$ac_ext >&5 | ||
6189 | ac_cv_func_utimes=no | ||
6190 | fi | ||
6191 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6192 | fi | ||
6193 | echo "$as_me:6193: result: $ac_cv_func_utimes" >&5 | ||
6194 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
6195 | if test $ac_cv_func_utimes = yes; then | ||
6196 | : | ||
6197 | else | ||
6198 | echo "$as_me:6198: checking for utimes in -lc89" >&5 | ||
6199 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
6200 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6202 | else | ||
6203 | ac_check_lib_save_LIBS=$LIBS | ||
6204 | LIBS="-lc89 $LIBS" | ||
6205 | cat >conftest.$ac_ext <<_ACEOF | ||
6206 | #line 6206 "configure" | ||
6207 | #include "confdefs.h" | ||
6208 | |||
6209 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6210 | #ifdef __cplusplus | ||
6211 | extern "C" | ||
6212 | #endif | ||
6213 | /* We use char because int might match the return type of a gcc2 | ||
6214 | builtin and then its argument prototype would still apply. */ | ||
6215 | char utimes (); | ||
6216 | int | ||
6217 | main () | ||
6218 | { | ||
6219 | utimes (); | ||
6220 | ; | ||
6221 | return 0; | ||
6222 | } | ||
6223 | _ACEOF | ||
6224 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6225 | if { (eval echo "$as_me:6225: \"$ac_link\"") >&5 | ||
6226 | (eval $ac_link) 2>&5 | ||
6227 | ac_status=$? | ||
6228 | echo "$as_me:6228: \$? = $ac_status" >&5 | ||
6229 | (exit $ac_status); } && | ||
6230 | { ac_try='test -s conftest$ac_exeext' | ||
6231 | { (eval echo "$as_me:6231: \"$ac_try\"") >&5 | ||
6232 | (eval $ac_try) 2>&5 | ||
6233 | ac_status=$? | ||
6234 | echo "$as_me:6234: \$? = $ac_status" >&5 | ||
6235 | (exit $ac_status); }; }; then | ||
6236 | ac_cv_lib_c89_utimes=yes | ||
6237 | else | ||
6238 | echo "$as_me: failed program was:" >&5 | ||
6239 | cat conftest.$ac_ext >&5 | ||
6240 | ac_cv_lib_c89_utimes=no | ||
6241 | fi | ||
6242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6243 | LIBS=$ac_check_lib_save_LIBS | ||
6244 | fi | ||
6245 | echo "$as_me:6245: result: $ac_cv_lib_c89_utimes" >&5 | ||
6246 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
6247 | if test $ac_cv_lib_c89_utimes = yes; then | ||
6248 | cat >>confdefs.h <<\EOF | ||
6249 | #define HAVE_UTIMES 1 | ||
6250 | EOF | ||
6251 | |||
6252 | LIBS="$LIBS -lc89" | ||
6253 | fi | ||
6254 | |||
6255 | fi | ||
6256 | |||
6257 | for ac_header in libutil.h | ||
6258 | do | ||
6259 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6260 | echo "$as_me:6260: checking for $ac_header" >&5 | ||
6261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6264 | else | ||
6265 | cat >conftest.$ac_ext <<_ACEOF | ||
6266 | #line 6266 "configure" | ||
6267 | #include "confdefs.h" | ||
6268 | #include <$ac_header> | ||
6269 | _ACEOF | ||
6270 | if { (eval echo "$as_me:6270: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6272 | ac_status=$? | ||
6273 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6274 | rm -f conftest.er1 | ||
6275 | cat conftest.err >&5 | ||
6276 | echo "$as_me:6276: \$? = $ac_status" >&5 | ||
6277 | (exit $ac_status); } >/dev/null; then | ||
6278 | if test -s conftest.err; then | ||
6279 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6280 | else | ||
6281 | ac_cpp_err= | ||
6282 | fi | ||
6283 | else | ||
6284 | ac_cpp_err=yes | ||
6285 | fi | ||
6286 | if test -z "$ac_cpp_err"; then | ||
6287 | eval "$as_ac_Header=yes" | ||
6288 | else | ||
6289 | echo "$as_me: failed program was:" >&5 | ||
6290 | cat conftest.$ac_ext >&5 | ||
6291 | eval "$as_ac_Header=no" | ||
6292 | fi | ||
6293 | rm -f conftest.err conftest.$ac_ext | ||
6294 | fi | ||
6295 | echo "$as_me:6295: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6296 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6298 | cat >>confdefs.h <<EOF | ||
6299 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6300 | EOF | ||
6301 | |||
6302 | fi | ||
6303 | done | ||
6304 | |||
6305 | echo "$as_me:6305: checking for library containing login" >&5 | ||
6306 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
6307 | if test "${ac_cv_search_login+set}" = set; then | ||
6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6309 | else | ||
6310 | ac_func_search_save_LIBS=$LIBS | ||
6311 | ac_cv_search_login=no | ||
6312 | cat >conftest.$ac_ext <<_ACEOF | ||
6313 | #line 6313 "configure" | ||
6314 | #include "confdefs.h" | ||
6315 | |||
6316 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6317 | #ifdef __cplusplus | ||
6318 | extern "C" | ||
6319 | #endif | ||
6320 | /* We use char because int might match the return type of a gcc2 | ||
6321 | builtin and then its argument prototype would still apply. */ | ||
6322 | char login (); | ||
6323 | int | ||
6324 | main () | ||
6325 | { | ||
6326 | login (); | ||
6327 | ; | ||
6328 | return 0; | ||
6329 | } | ||
6330 | _ACEOF | ||
6331 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6332 | if { (eval echo "$as_me:6332: \"$ac_link\"") >&5 | ||
6333 | (eval $ac_link) 2>&5 | ||
6334 | ac_status=$? | ||
6335 | echo "$as_me:6335: \$? = $ac_status" >&5 | ||
6336 | (exit $ac_status); } && | ||
6337 | { ac_try='test -s conftest$ac_exeext' | ||
6338 | { (eval echo "$as_me:6338: \"$ac_try\"") >&5 | ||
6339 | (eval $ac_try) 2>&5 | ||
6340 | ac_status=$? | ||
6341 | echo "$as_me:6341: \$? = $ac_status" >&5 | ||
6342 | (exit $ac_status); }; }; then | ||
6343 | ac_cv_search_login="none required" | ||
6344 | else | ||
6345 | echo "$as_me: failed program was:" >&5 | ||
6346 | cat conftest.$ac_ext >&5 | ||
6347 | fi | ||
6348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6349 | if test "$ac_cv_search_login" = no; then | ||
6350 | for ac_lib in util bsd; do | ||
6351 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6352 | cat >conftest.$ac_ext <<_ACEOF | ||
6353 | #line 6353 "configure" | ||
6354 | #include "confdefs.h" | ||
6355 | |||
6356 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6357 | #ifdef __cplusplus | ||
6358 | extern "C" | ||
6359 | #endif | ||
6360 | /* We use char because int might match the return type of a gcc2 | ||
6361 | builtin and then its argument prototype would still apply. */ | ||
6362 | char login (); | ||
6363 | int | ||
6364 | main () | ||
6365 | { | ||
6366 | login (); | ||
6367 | ; | ||
6368 | return 0; | ||
6369 | } | ||
6370 | _ACEOF | ||
6371 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6372 | if { (eval echo "$as_me:6372: \"$ac_link\"") >&5 | ||
6373 | (eval $ac_link) 2>&5 | ||
6374 | ac_status=$? | ||
6375 | echo "$as_me:6375: \$? = $ac_status" >&5 | ||
6376 | (exit $ac_status); } && | ||
6377 | { ac_try='test -s conftest$ac_exeext' | ||
6378 | { (eval echo "$as_me:6378: \"$ac_try\"") >&5 | ||
6379 | (eval $ac_try) 2>&5 | ||
6380 | ac_status=$? | ||
6381 | echo "$as_me:6381: \$? = $ac_status" >&5 | ||
6382 | (exit $ac_status); }; }; then | ||
6383 | ac_cv_search_login="-l$ac_lib" | ||
6384 | break | ||
6385 | else | ||
6386 | echo "$as_me: failed program was:" >&5 | ||
6387 | cat conftest.$ac_ext >&5 | ||
6388 | fi | ||
6389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6390 | done | ||
6391 | fi | ||
6392 | LIBS=$ac_func_search_save_LIBS | ||
6393 | fi | ||
6394 | echo "$as_me:6394: result: $ac_cv_search_login" >&5 | ||
6395 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6396 | if test "$ac_cv_search_login" != no; then | ||
6397 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6398 | cat >>confdefs.h <<\EOF | ||
6399 | #define HAVE_LOGIN 1 | ||
6400 | EOF | ||
6401 | |||
6402 | fi | ||
6403 | |||
6404 | for ac_func in logout updwtmp logwtmp | ||
6405 | do | ||
6406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6407 | echo "$as_me:6407: checking for $ac_func" >&5 | ||
6408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6409 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6411 | else | ||
6412 | cat >conftest.$ac_ext <<_ACEOF | ||
6413 | #line 6413 "configure" | ||
6414 | #include "confdefs.h" | ||
6415 | /* System header to define __stub macros and hopefully few prototypes, | ||
6416 | which can conflict with char $ac_func (); below. */ | ||
6417 | #include <assert.h> | ||
6418 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6419 | #ifdef __cplusplus | ||
6420 | extern "C" | ||
6421 | #endif | ||
6422 | /* We use char because int might match the return type of a gcc2 | ||
6423 | builtin and then its argument prototype would still apply. */ | ||
6424 | char $ac_func (); | ||
6425 | char (*f) (); | ||
6426 | |||
6427 | int | ||
6428 | main () | ||
6429 | { | ||
6430 | /* The GNU C library defines this for functions which it implements | ||
6431 | to always fail with ENOSYS. Some functions are actually named | ||
6432 | something starting with __ and the normal name is an alias. */ | ||
6433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6434 | choke me | ||
6435 | #else | ||
6436 | f = $ac_func; | ||
6437 | #endif | ||
6438 | |||
6439 | ; | ||
6440 | return 0; | ||
6441 | } | ||
6442 | _ACEOF | ||
6443 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6444 | if { (eval echo "$as_me:6444: \"$ac_link\"") >&5 | ||
6445 | (eval $ac_link) 2>&5 | ||
6446 | ac_status=$? | ||
6447 | echo "$as_me:6447: \$? = $ac_status" >&5 | ||
6448 | (exit $ac_status); } && | ||
6449 | { ac_try='test -s conftest$ac_exeext' | ||
6450 | { (eval echo "$as_me:6450: \"$ac_try\"") >&5 | ||
6451 | (eval $ac_try) 2>&5 | ||
6452 | ac_status=$? | ||
6453 | echo "$as_me:6453: \$? = $ac_status" >&5 | ||
6454 | (exit $ac_status); }; }; then | ||
6455 | eval "$as_ac_var=yes" | ||
6456 | else | ||
6457 | echo "$as_me: failed program was:" >&5 | ||
6458 | cat conftest.$ac_ext >&5 | ||
6459 | eval "$as_ac_var=no" | ||
6460 | fi | ||
6461 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6462 | fi | ||
6463 | echo "$as_me:6463: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6464 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6465 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6466 | cat >>confdefs.h <<EOF | ||
6467 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6468 | EOF | ||
6469 | |||
6470 | fi | ||
6471 | done | ||
6472 | |||
6473 | for ac_func in strftime | ||
6474 | do | ||
6475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6476 | echo "$as_me:6476: checking for $ac_func" >&5 | ||
6477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6478 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6480 | else | ||
6481 | cat >conftest.$ac_ext <<_ACEOF | ||
6482 | #line 6482 "configure" | ||
6483 | #include "confdefs.h" | ||
6484 | /* System header to define __stub macros and hopefully few prototypes, | ||
6485 | which can conflict with char $ac_func (); below. */ | ||
6486 | #include <assert.h> | ||
6487 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6488 | #ifdef __cplusplus | ||
6489 | extern "C" | ||
6490 | #endif | ||
6491 | /* We use char because int might match the return type of a gcc2 | ||
6492 | builtin and then its argument prototype would still apply. */ | ||
6493 | char $ac_func (); | ||
6494 | char (*f) (); | ||
6495 | |||
6496 | int | ||
6497 | main () | ||
6498 | { | ||
6499 | /* The GNU C library defines this for functions which it implements | ||
6500 | to always fail with ENOSYS. Some functions are actually named | ||
6501 | something starting with __ and the normal name is an alias. */ | ||
6502 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6503 | choke me | ||
6504 | #else | ||
6505 | f = $ac_func; | ||
6506 | #endif | ||
6507 | |||
6508 | ; | ||
6509 | return 0; | ||
6510 | } | ||
6511 | _ACEOF | ||
6512 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6513 | if { (eval echo "$as_me:6513: \"$ac_link\"") >&5 | ||
6514 | (eval $ac_link) 2>&5 | ||
6515 | ac_status=$? | ||
6516 | echo "$as_me:6516: \$? = $ac_status" >&5 | ||
6517 | (exit $ac_status); } && | ||
6518 | { ac_try='test -s conftest$ac_exeext' | ||
6519 | { (eval echo "$as_me:6519: \"$ac_try\"") >&5 | ||
6520 | (eval $ac_try) 2>&5 | ||
6521 | ac_status=$? | ||
6522 | echo "$as_me:6522: \$? = $ac_status" >&5 | ||
6523 | (exit $ac_status); }; }; then | ||
6524 | eval "$as_ac_var=yes" | ||
6525 | else | ||
6526 | echo "$as_me: failed program was:" >&5 | ||
6527 | cat conftest.$ac_ext >&5 | ||
6528 | eval "$as_ac_var=no" | ||
6529 | fi | ||
6530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6531 | fi | ||
6532 | echo "$as_me:6532: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6534 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6535 | cat >>confdefs.h <<EOF | ||
6536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6537 | EOF | ||
6538 | |||
6539 | else | ||
6540 | # strftime is in -lintl on SCO UNIX. | ||
6541 | echo "$as_me:6541: checking for strftime in -lintl" >&5 | ||
6542 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6543 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6545 | else | ||
6546 | ac_check_lib_save_LIBS=$LIBS | ||
6547 | LIBS="-lintl $LIBS" | ||
6548 | cat >conftest.$ac_ext <<_ACEOF | ||
6549 | #line 6549 "configure" | ||
6550 | #include "confdefs.h" | ||
6551 | |||
6552 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6553 | #ifdef __cplusplus | ||
6554 | extern "C" | ||
6555 | #endif | ||
6556 | /* We use char because int might match the return type of a gcc2 | ||
6557 | builtin and then its argument prototype would still apply. */ | ||
6558 | char strftime (); | ||
6559 | int | ||
6560 | main () | ||
6561 | { | ||
6562 | strftime (); | ||
6563 | ; | ||
6564 | return 0; | ||
6565 | } | ||
6566 | _ACEOF | ||
6567 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6568 | if { (eval echo "$as_me:6568: \"$ac_link\"") >&5 | ||
6569 | (eval $ac_link) 2>&5 | ||
6570 | ac_status=$? | ||
6571 | echo "$as_me:6571: \$? = $ac_status" >&5 | ||
6572 | (exit $ac_status); } && | ||
6573 | { ac_try='test -s conftest$ac_exeext' | ||
6574 | { (eval echo "$as_me:6574: \"$ac_try\"") >&5 | ||
6575 | (eval $ac_try) 2>&5 | ||
6576 | ac_status=$? | ||
6577 | echo "$as_me:6577: \$? = $ac_status" >&5 | ||
6578 | (exit $ac_status); }; }; then | ||
6579 | ac_cv_lib_intl_strftime=yes | ||
6580 | else | ||
6581 | echo "$as_me: failed program was:" >&5 | ||
6582 | cat conftest.$ac_ext >&5 | ||
6583 | ac_cv_lib_intl_strftime=no | ||
6584 | fi | ||
6585 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6586 | LIBS=$ac_check_lib_save_LIBS | ||
6587 | fi | ||
6588 | echo "$as_me:6588: result: $ac_cv_lib_intl_strftime" >&5 | ||
6589 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6590 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6591 | cat >>confdefs.h <<\EOF | ||
6592 | #define HAVE_STRFTIME 1 | ||
6593 | EOF | ||
6594 | |||
6595 | LIBS="-lintl $LIBS" | ||
6596 | fi | ||
6597 | |||
6598 | fi | ||
6599 | done | ||
6600 | |||
6601 | # Check for ALTDIRFUNC glob() extension | ||
6602 | echo "$as_me:6602: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6603 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6604 | cat >conftest.$ac_ext <<_ACEOF | ||
6605 | #line 6605 "configure" | ||
6606 | #include "confdefs.h" | ||
6607 | |||
6608 | #include <glob.h> | ||
6609 | #ifdef GLOB_ALTDIRFUNC | ||
6610 | FOUNDIT | ||
6611 | #endif | ||
6612 | |||
6613 | _ACEOF | ||
6614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6615 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6616 | |||
6617 | cat >>confdefs.h <<\EOF | ||
6618 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6619 | EOF | ||
6620 | |||
6621 | echo "$as_me:6621: result: yes" >&5 | ||
6622 | echo "${ECHO_T}yes" >&6 | ||
6623 | |||
6624 | else | ||
6625 | |||
6626 | echo "$as_me:6626: result: no" >&5 | ||
6627 | echo "${ECHO_T}no" >&6 | ||
6628 | |||
6629 | fi | ||
6630 | rm -f conftest* | ||
6631 | |||
6632 | # Check for g.gl_matchc glob() extension | ||
6633 | echo "$as_me:6633: checking for gl_matchc field in glob_t" >&5 | ||
6634 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6635 | cat >conftest.$ac_ext <<_ACEOF | ||
6636 | #line 6636 "configure" | ||
6637 | #include "confdefs.h" | ||
6638 | |||
6639 | #include <glob.h> | ||
6640 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6641 | |||
6642 | _ACEOF | ||
6643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6644 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6645 | |||
6646 | cat >>confdefs.h <<\EOF | ||
6647 | #define GLOB_HAS_GL_MATCHC 1 | ||
6648 | EOF | ||
6649 | |||
6650 | echo "$as_me:6650: result: yes" >&5 | ||
6651 | echo "${ECHO_T}yes" >&6 | ||
6652 | |||
6653 | else | ||
6654 | |||
6655 | echo "$as_me:6655: result: no" >&5 | ||
6656 | echo "${ECHO_T}no" >&6 | ||
6657 | |||
6658 | fi | ||
6659 | rm -f conftest* | ||
6660 | |||
6661 | echo "$as_me:6661: checking whether struct dirent allocates space for d_name" >&5 | ||
6662 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6663 | if test "$cross_compiling" = yes; then | ||
6664 | { { echo "$as_me:6664: error: cannot run test program while cross compiling" >&5 | ||
6665 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6666 | { (exit 1); exit 1; }; } | ||
6667 | else | ||
6668 | cat >conftest.$ac_ext <<_ACEOF | ||
6669 | #line 6669 "configure" | ||
6670 | #include "confdefs.h" | ||
6671 | |||
6672 | #include <sys/types.h> | ||
6673 | #include <dirent.h> | ||
6674 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6675 | |||
6676 | _ACEOF | ||
6677 | rm -f conftest$ac_exeext | ||
6678 | if { (eval echo "$as_me:6678: \"$ac_link\"") >&5 | ||
6679 | (eval $ac_link) 2>&5 | ||
6680 | ac_status=$? | ||
6681 | echo "$as_me:6681: \$? = $ac_status" >&5 | ||
6682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6683 | { (eval echo "$as_me:6683: \"$ac_try\"") >&5 | ||
6684 | (eval $ac_try) 2>&5 | ||
6685 | ac_status=$? | ||
6686 | echo "$as_me:6686: \$? = $ac_status" >&5 | ||
6687 | (exit $ac_status); }; }; then | ||
6688 | echo "$as_me:6688: result: yes" >&5 | ||
6689 | echo "${ECHO_T}yes" >&6 | ||
6690 | else | ||
6691 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6692 | echo "$as_me: failed program was:" >&5 | ||
6693 | cat conftest.$ac_ext >&5 | ||
6694 | |||
6695 | echo "$as_me:6695: result: no" >&5 | ||
6696 | echo "${ECHO_T}no" >&6 | ||
6697 | cat >>confdefs.h <<\EOF | ||
6698 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6699 | EOF | ||
6700 | |||
6701 | fi | ||
6702 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6703 | fi | ||
6704 | |||
6705 | # Check whether user wants S/Key support | ||
6706 | SKEY_MSG="no" | ||
6707 | |||
6708 | # Check whether --with-skey or --without-skey was given. | ||
6709 | if test "${with_skey+set}" = set; then | ||
6710 | withval="$with_skey" | ||
6711 | |||
6712 | if test "x$withval" != "xno" ; then | ||
6713 | |||
6714 | if test "x$withval" != "xyes" ; then | ||
6715 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6716 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6717 | fi | ||
6718 | |||
6719 | cat >>confdefs.h <<\EOF | ||
6720 | #define SKEY 1 | ||
6721 | EOF | ||
6722 | |||
6723 | LIBS="-lskey $LIBS" | ||
6724 | SKEY_MSG="yes" | ||
6725 | |||
6726 | echo "$as_me:6726: checking for s/key support" >&5 | ||
6727 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6728 | if test "$cross_compiling" = yes; then | ||
6729 | { { echo "$as_me:6729: error: cannot run test program while cross compiling" >&5 | ||
6730 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6731 | { (exit 1); exit 1; }; } | ||
6732 | else | ||
6733 | cat >conftest.$ac_ext <<_ACEOF | ||
6734 | #line 6734 "configure" | ||
6735 | #include "confdefs.h" | ||
6736 | |||
6737 | #include <stdio.h> | ||
6738 | #include <skey.h> | ||
6739 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6740 | |||
6741 | _ACEOF | ||
6742 | rm -f conftest$ac_exeext | ||
6743 | if { (eval echo "$as_me:6743: \"$ac_link\"") >&5 | ||
6744 | (eval $ac_link) 2>&5 | ||
6745 | ac_status=$? | ||
6746 | echo "$as_me:6746: \$? = $ac_status" >&5 | ||
6747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6748 | { (eval echo "$as_me:6748: \"$ac_try\"") >&5 | ||
6749 | (eval $ac_try) 2>&5 | ||
6750 | ac_status=$? | ||
6751 | echo "$as_me:6751: \$? = $ac_status" >&5 | ||
6752 | (exit $ac_status); }; }; then | ||
6753 | echo "$as_me:6753: result: yes" >&5 | ||
6754 | echo "${ECHO_T}yes" >&6 | ||
6755 | else | ||
6756 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6757 | echo "$as_me: failed program was:" >&5 | ||
6758 | cat conftest.$ac_ext >&5 | ||
6759 | |||
6760 | echo "$as_me:6760: result: no" >&5 | ||
6761 | echo "${ECHO_T}no" >&6 | ||
6762 | { { echo "$as_me:6762: error: ** Incomplete or missing s/key libraries." >&5 | ||
6763 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6764 | { (exit 1); exit 1; }; } | ||
6765 | |||
6766 | fi | ||
6767 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6768 | fi | ||
6769 | fi | ||
6770 | |||
6771 | fi; | ||
6772 | |||
6773 | # Check whether user wants TCP wrappers support | ||
6774 | TCPW_MSG="no" | ||
6775 | |||
6776 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6777 | if test "${with_tcp_wrappers+set}" = set; then | ||
6778 | withval="$with_tcp_wrappers" | ||
6779 | |||
6780 | if test "x$withval" != "xno" ; then | ||
6781 | saved_LIBS="$LIBS" | ||
6782 | saved_LDFLAGS="$LDFLAGS" | ||
6783 | saved_CPPFLAGS="$CPPFLAGS" | ||
6784 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6785 | if test -d "${withval}/lib"; then | ||
6786 | if test -n "${need_dash_r}"; then | ||
6787 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6788 | else | ||
6789 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6790 | fi | ||
6791 | else | ||
6792 | if test -n "${need_dash_r}"; then | ||
6793 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6794 | else | ||
6795 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6796 | fi | ||
6797 | fi | ||
6798 | if test -d "${withval}/include"; then | ||
6799 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6800 | else | ||
6801 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6802 | fi | ||
6803 | fi | ||
6804 | LIBWRAP="-lwrap" | ||
6805 | LIBS="$LIBWRAP $LIBS" | ||
6806 | echo "$as_me:6806: checking for libwrap" >&5 | ||
6807 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6808 | cat >conftest.$ac_ext <<_ACEOF | ||
6809 | #line 6809 "configure" | ||
6810 | #include "confdefs.h" | ||
6811 | |||
6812 | #include <tcpd.h> | ||
6813 | int deny_severity = 0, allow_severity = 0; | ||
6814 | |||
6815 | int | ||
6816 | main () | ||
6817 | { | ||
6818 | hosts_access(0); | ||
6819 | ; | ||
6820 | return 0; | ||
6821 | } | ||
6822 | _ACEOF | ||
6823 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6824 | if { (eval echo "$as_me:6824: \"$ac_link\"") >&5 | ||
6825 | (eval $ac_link) 2>&5 | ||
6826 | ac_status=$? | ||
6827 | echo "$as_me:6827: \$? = $ac_status" >&5 | ||
6828 | (exit $ac_status); } && | ||
6829 | { ac_try='test -s conftest$ac_exeext' | ||
6830 | { (eval echo "$as_me:6830: \"$ac_try\"") >&5 | ||
6831 | (eval $ac_try) 2>&5 | ||
6832 | ac_status=$? | ||
6833 | echo "$as_me:6833: \$? = $ac_status" >&5 | ||
6834 | (exit $ac_status); }; }; then | ||
6835 | |||
6836 | echo "$as_me:6836: result: yes" >&5 | ||
6837 | echo "${ECHO_T}yes" >&6 | ||
6838 | cat >>confdefs.h <<\EOF | ||
6839 | #define LIBWRAP 1 | ||
6840 | EOF | ||
6841 | |||
6842 | TCPW_MSG="yes" | ||
6843 | |||
6844 | else | ||
6845 | echo "$as_me: failed program was:" >&5 | ||
6846 | cat conftest.$ac_ext >&5 | ||
6847 | |||
6848 | { { echo "$as_me:6848: error: *** libwrap missing" >&5 | ||
6849 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6850 | { (exit 1); exit 1; }; } | ||
6851 | |||
6852 | fi | ||
6853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6854 | LIBS="$saved_LIBS" | ||
6855 | fi | ||
6856 | |||
6857 | fi; | ||
6858 | |||
6859 | for ac_func in \ | ||
6860 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton \ | ||
6861 | bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6862 | getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6863 | getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
6864 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6865 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
6866 | pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
6867 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
6868 | setproctitle setregid setreuid setrlimit \ | ||
6869 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
6870 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | ||
6871 | truncate updwtmpx utimes vhangup vsnprintf waitpid \ | ||
6872 | |||
6873 | do | ||
6874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6875 | echo "$as_me:6875: checking for $ac_func" >&5 | ||
6876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6879 | else | ||
6880 | cat >conftest.$ac_ext <<_ACEOF | ||
6881 | #line 6881 "configure" | ||
6882 | #include "confdefs.h" | ||
6883 | /* System header to define __stub macros and hopefully few prototypes, | ||
6884 | which can conflict with char $ac_func (); below. */ | ||
6885 | #include <assert.h> | ||
6886 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6887 | #ifdef __cplusplus | ||
6888 | extern "C" | ||
6889 | #endif | ||
6890 | /* We use char because int might match the return type of a gcc2 | ||
6891 | builtin and then its argument prototype would still apply. */ | ||
6892 | char $ac_func (); | ||
6893 | char (*f) (); | ||
6894 | |||
6895 | int | ||
6896 | main () | ||
6897 | { | ||
6898 | /* The GNU C library defines this for functions which it implements | ||
6899 | to always fail with ENOSYS. Some functions are actually named | ||
6900 | something starting with __ and the normal name is an alias. */ | ||
6901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6902 | choke me | ||
6903 | #else | ||
6904 | f = $ac_func; | ||
6905 | #endif | ||
6906 | |||
6907 | ; | ||
6908 | return 0; | ||
6909 | } | ||
6910 | _ACEOF | ||
6911 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6912 | if { (eval echo "$as_me:6912: \"$ac_link\"") >&5 | ||
6913 | (eval $ac_link) 2>&5 | ||
6914 | ac_status=$? | ||
6915 | echo "$as_me:6915: \$? = $ac_status" >&5 | ||
6916 | (exit $ac_status); } && | ||
6917 | { ac_try='test -s conftest$ac_exeext' | ||
6918 | { (eval echo "$as_me:6918: \"$ac_try\"") >&5 | ||
6919 | (eval $ac_try) 2>&5 | ||
6920 | ac_status=$? | ||
6921 | echo "$as_me:6921: \$? = $ac_status" >&5 | ||
6922 | (exit $ac_status); }; }; then | ||
6923 | eval "$as_ac_var=yes" | ||
6924 | else | ||
6925 | echo "$as_me: failed program was:" >&5 | ||
6926 | cat conftest.$ac_ext >&5 | ||
6927 | eval "$as_ac_var=no" | ||
6928 | fi | ||
6929 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6930 | fi | ||
6931 | echo "$as_me:6931: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6932 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6933 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6934 | cat >>confdefs.h <<EOF | ||
6935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6936 | EOF | ||
6937 | |||
6938 | fi | ||
6939 | done | ||
6940 | |||
6941 | # IRIX has a const char return value for gai_strerror() | ||
6942 | |||
6943 | for ac_func in gai_strerror | ||
6944 | do | ||
6945 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6946 | echo "$as_me:6946: checking for $ac_func" >&5 | ||
6947 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6948 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6950 | else | ||
6951 | cat >conftest.$ac_ext <<_ACEOF | ||
6952 | #line 6952 "configure" | ||
6953 | #include "confdefs.h" | ||
6954 | /* System header to define __stub macros and hopefully few prototypes, | ||
6955 | which can conflict with char $ac_func (); below. */ | ||
6956 | #include <assert.h> | ||
6957 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6958 | #ifdef __cplusplus | ||
6959 | extern "C" | ||
6960 | #endif | ||
6961 | /* We use char because int might match the return type of a gcc2 | ||
6962 | builtin and then its argument prototype would still apply. */ | ||
6963 | char $ac_func (); | ||
6964 | char (*f) (); | ||
6965 | |||
6966 | int | ||
6967 | main () | ||
6968 | { | ||
6969 | /* The GNU C library defines this for functions which it implements | ||
6970 | to always fail with ENOSYS. Some functions are actually named | ||
6971 | something starting with __ and the normal name is an alias. */ | ||
6972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6973 | choke me | ||
6974 | #else | ||
6975 | f = $ac_func; | ||
6976 | #endif | ||
6977 | |||
6978 | ; | ||
6979 | return 0; | ||
6980 | } | ||
6981 | _ACEOF | ||
6982 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6983 | if { (eval echo "$as_me:6983: \"$ac_link\"") >&5 | ||
6984 | (eval $ac_link) 2>&5 | ||
6985 | ac_status=$? | ||
6986 | echo "$as_me:6986: \$? = $ac_status" >&5 | ||
6987 | (exit $ac_status); } && | ||
6988 | { ac_try='test -s conftest$ac_exeext' | ||
6989 | { (eval echo "$as_me:6989: \"$ac_try\"") >&5 | ||
6990 | (eval $ac_try) 2>&5 | ||
6991 | ac_status=$? | ||
6992 | echo "$as_me:6992: \$? = $ac_status" >&5 | ||
6993 | (exit $ac_status); }; }; then | ||
6994 | eval "$as_ac_var=yes" | ||
6995 | else | ||
6996 | echo "$as_me: failed program was:" >&5 | ||
6997 | cat conftest.$ac_ext >&5 | ||
6998 | eval "$as_ac_var=no" | ||
6999 | fi | ||
7000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7001 | fi | ||
7002 | echo "$as_me:7002: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7004 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7005 | cat >>confdefs.h <<EOF | ||
7006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7007 | EOF | ||
7008 | |||
7009 | cat >>confdefs.h <<\EOF | ||
7010 | #define HAVE_GAI_STRERROR 1 | ||
7011 | EOF | ||
7012 | |||
7013 | cat >conftest.$ac_ext <<_ACEOF | ||
7014 | #line 7014 "configure" | ||
7015 | #include "confdefs.h" | ||
7016 | |||
7017 | #include <sys/types.h> | ||
7018 | #include <sys/socket.h> | ||
7019 | #include <netdb.h> | ||
7020 | |||
7021 | const char *gai_strerror(int); | ||
7022 | int | ||
7023 | main () | ||
7024 | { | ||
7025 | |||
7026 | char *str; | ||
7027 | |||
7028 | str = gai_strerror(0); | ||
7029 | ; | ||
7030 | return 0; | ||
7031 | } | ||
7032 | _ACEOF | ||
7033 | rm -f conftest.$ac_objext | ||
7034 | if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5 | ||
7035 | (eval $ac_compile) 2>&5 | ||
7036 | ac_status=$? | ||
7037 | echo "$as_me:7037: \$? = $ac_status" >&5 | ||
7038 | (exit $ac_status); } && | ||
7039 | { ac_try='test -s conftest.$ac_objext' | ||
7040 | { (eval echo "$as_me:7040: \"$ac_try\"") >&5 | ||
7041 | (eval $ac_try) 2>&5 | ||
7042 | ac_status=$? | ||
7043 | echo "$as_me:7043: \$? = $ac_status" >&5 | ||
7044 | (exit $ac_status); }; }; then | ||
7045 | |||
7046 | cat >>confdefs.h <<\EOF | ||
7047 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
7048 | EOF | ||
7049 | |||
7050 | else | ||
7051 | echo "$as_me: failed program was:" >&5 | ||
7052 | cat conftest.$ac_ext >&5 | ||
7053 | fi | ||
7054 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7055 | fi | ||
7056 | done | ||
7057 | |||
7058 | echo "$as_me:7058: checking for library containing nanosleep" >&5 | ||
7059 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
7060 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
7061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7062 | else | ||
7063 | ac_func_search_save_LIBS=$LIBS | ||
7064 | ac_cv_search_nanosleep=no | ||
7065 | cat >conftest.$ac_ext <<_ACEOF | ||
7066 | #line 7066 "configure" | ||
7067 | #include "confdefs.h" | ||
7068 | |||
7069 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7070 | #ifdef __cplusplus | ||
7071 | extern "C" | ||
7072 | #endif | ||
7073 | /* We use char because int might match the return type of a gcc2 | ||
7074 | builtin and then its argument prototype would still apply. */ | ||
7075 | char nanosleep (); | ||
7076 | int | ||
7077 | main () | ||
7078 | { | ||
7079 | nanosleep (); | ||
7080 | ; | ||
7081 | return 0; | ||
7082 | } | ||
7083 | _ACEOF | ||
7084 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7085 | if { (eval echo "$as_me:7085: \"$ac_link\"") >&5 | ||
7086 | (eval $ac_link) 2>&5 | ||
7087 | ac_status=$? | ||
7088 | echo "$as_me:7088: \$? = $ac_status" >&5 | ||
7089 | (exit $ac_status); } && | ||
7090 | { ac_try='test -s conftest$ac_exeext' | ||
7091 | { (eval echo "$as_me:7091: \"$ac_try\"") >&5 | ||
7092 | (eval $ac_try) 2>&5 | ||
7093 | ac_status=$? | ||
7094 | echo "$as_me:7094: \$? = $ac_status" >&5 | ||
7095 | (exit $ac_status); }; }; then | ||
7096 | ac_cv_search_nanosleep="none required" | ||
7097 | else | ||
7098 | echo "$as_me: failed program was:" >&5 | ||
7099 | cat conftest.$ac_ext >&5 | ||
7100 | fi | ||
7101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7102 | if test "$ac_cv_search_nanosleep" = no; then | ||
7103 | for ac_lib in rt posix4; do | ||
7104 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
7105 | cat >conftest.$ac_ext <<_ACEOF | ||
7106 | #line 7106 "configure" | ||
7107 | #include "confdefs.h" | ||
7108 | |||
7109 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7110 | #ifdef __cplusplus | ||
7111 | extern "C" | ||
7112 | #endif | ||
7113 | /* We use char because int might match the return type of a gcc2 | ||
7114 | builtin and then its argument prototype would still apply. */ | ||
7115 | char nanosleep (); | ||
7116 | int | ||
7117 | main () | ||
7118 | { | ||
7119 | nanosleep (); | ||
7120 | ; | ||
7121 | return 0; | ||
7122 | } | ||
7123 | _ACEOF | ||
7124 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7125 | if { (eval echo "$as_me:7125: \"$ac_link\"") >&5 | ||
7126 | (eval $ac_link) 2>&5 | ||
7127 | ac_status=$? | ||
7128 | echo "$as_me:7128: \$? = $ac_status" >&5 | ||
7129 | (exit $ac_status); } && | ||
7130 | { ac_try='test -s conftest$ac_exeext' | ||
7131 | { (eval echo "$as_me:7131: \"$ac_try\"") >&5 | ||
7132 | (eval $ac_try) 2>&5 | ||
7133 | ac_status=$? | ||
7134 | echo "$as_me:7134: \$? = $ac_status" >&5 | ||
7135 | (exit $ac_status); }; }; then | ||
7136 | ac_cv_search_nanosleep="-l$ac_lib" | ||
7137 | break | ||
7138 | else | ||
7139 | echo "$as_me: failed program was:" >&5 | ||
7140 | cat conftest.$ac_ext >&5 | ||
7141 | fi | ||
7142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7143 | done | ||
7144 | fi | ||
7145 | LIBS=$ac_func_search_save_LIBS | ||
7146 | fi | ||
7147 | echo "$as_me:7147: result: $ac_cv_search_nanosleep" >&5 | ||
7148 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
7149 | if test "$ac_cv_search_nanosleep" != no; then | ||
7150 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
7151 | cat >>confdefs.h <<\EOF | ||
7152 | #define HAVE_NANOSLEEP 1 | ||
7153 | EOF | ||
7154 | |||
7155 | fi | ||
7156 | |||
7157 | echo "$as_me:7157: checking for ANSI C header files" >&5 | ||
7158 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
7159 | if test "${ac_cv_header_stdc+set}" = set; then | ||
7160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7161 | else | ||
7162 | cat >conftest.$ac_ext <<_ACEOF | ||
7163 | #line 7163 "configure" | ||
7164 | #include "confdefs.h" | ||
7165 | #include <stdlib.h> | ||
7166 | #include <stdarg.h> | ||
7167 | #include <string.h> | ||
7168 | #include <float.h> | ||
7169 | |||
7170 | _ACEOF | ||
7171 | if { (eval echo "$as_me:7171: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7172 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7173 | ac_status=$? | ||
7174 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7175 | rm -f conftest.er1 | ||
7176 | cat conftest.err >&5 | ||
7177 | echo "$as_me:7177: \$? = $ac_status" >&5 | ||
7178 | (exit $ac_status); } >/dev/null; then | ||
7179 | if test -s conftest.err; then | ||
7180 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7181 | else | ||
7182 | ac_cpp_err= | ||
7183 | fi | ||
7184 | else | ||
7185 | ac_cpp_err=yes | ||
7186 | fi | ||
7187 | if test -z "$ac_cpp_err"; then | ||
7188 | ac_cv_header_stdc=yes | ||
7189 | else | ||
7190 | echo "$as_me: failed program was:" >&5 | ||
7191 | cat conftest.$ac_ext >&5 | ||
7192 | ac_cv_header_stdc=no | ||
7193 | fi | ||
7194 | rm -f conftest.err conftest.$ac_ext | ||
7195 | |||
7196 | if test $ac_cv_header_stdc = yes; then | ||
7197 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
7198 | cat >conftest.$ac_ext <<_ACEOF | ||
7199 | #line 7199 "configure" | ||
7200 | #include "confdefs.h" | ||
7201 | #include <string.h> | ||
7202 | |||
7203 | _ACEOF | ||
7204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7205 | egrep "memchr" >/dev/null 2>&1; then | ||
7206 | : | ||
7207 | else | ||
7208 | ac_cv_header_stdc=no | ||
7209 | fi | ||
7210 | rm -f conftest* | ||
7211 | |||
7212 | fi | ||
7213 | |||
7214 | if test $ac_cv_header_stdc = yes; then | ||
7215 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
7216 | cat >conftest.$ac_ext <<_ACEOF | ||
7217 | #line 7217 "configure" | ||
7218 | #include "confdefs.h" | ||
7219 | #include <stdlib.h> | ||
7220 | |||
7221 | _ACEOF | ||
7222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
7223 | egrep "free" >/dev/null 2>&1; then | ||
7224 | : | ||
7225 | else | ||
7226 | ac_cv_header_stdc=no | ||
7227 | fi | ||
7228 | rm -f conftest* | ||
7229 | |||
7230 | fi | ||
7231 | |||
7232 | if test $ac_cv_header_stdc = yes; then | ||
7233 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
7234 | if test "$cross_compiling" = yes; then | ||
7235 | : | ||
7236 | else | ||
7237 | cat >conftest.$ac_ext <<_ACEOF | ||
7238 | #line 7238 "configure" | ||
7239 | #include "confdefs.h" | ||
7240 | #include <ctype.h> | ||
7241 | #if ((' ' & 0x0FF) == 0x020) | ||
7242 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
7243 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
7244 | #else | ||
7245 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
7246 | || ('j' <= (c) && (c) <= 'r') \ | ||
7247 | || ('s' <= (c) && (c) <= 'z')) | ||
7248 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
7249 | #endif | ||
7250 | |||
7251 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
7252 | int | ||
7253 | main () | ||
7254 | { | ||
7255 | int i; | ||
7256 | for (i = 0; i < 256; i++) | ||
7257 | if (XOR (islower (i), ISLOWER (i)) | ||
7258 | || toupper (i) != TOUPPER (i)) | ||
7259 | exit(2); | ||
7260 | exit (0); | ||
7261 | } | ||
7262 | _ACEOF | ||
7263 | rm -f conftest$ac_exeext | ||
7264 | if { (eval echo "$as_me:7264: \"$ac_link\"") >&5 | ||
7265 | (eval $ac_link) 2>&5 | ||
7266 | ac_status=$? | ||
7267 | echo "$as_me:7267: \$? = $ac_status" >&5 | ||
7268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7269 | { (eval echo "$as_me:7269: \"$ac_try\"") >&5 | ||
7270 | (eval $ac_try) 2>&5 | ||
7271 | ac_status=$? | ||
7272 | echo "$as_me:7272: \$? = $ac_status" >&5 | ||
7273 | (exit $ac_status); }; }; then | ||
7274 | : | ||
7275 | else | ||
7276 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7277 | echo "$as_me: failed program was:" >&5 | ||
7278 | cat conftest.$ac_ext >&5 | ||
7279 | ac_cv_header_stdc=no | ||
7280 | fi | ||
7281 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7282 | fi | ||
7283 | fi | ||
7284 | fi | ||
7285 | echo "$as_me:7285: result: $ac_cv_header_stdc" >&5 | ||
7286 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
7287 | if test $ac_cv_header_stdc = yes; then | ||
7288 | |||
7289 | cat >>confdefs.h <<\EOF | ||
7290 | #define STDC_HEADERS 1 | ||
7291 | EOF | ||
7292 | |||
7293 | fi | ||
7294 | |||
7295 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
7296 | |||
7297 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
7298 | inttypes.h stdint.h unistd.h | ||
7299 | do | ||
7300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7301 | echo "$as_me:7301: checking for $ac_header" >&5 | ||
7302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7305 | else | ||
7306 | cat >conftest.$ac_ext <<_ACEOF | ||
7307 | #line 7307 "configure" | ||
7308 | #include "confdefs.h" | ||
7309 | $ac_includes_default | ||
7310 | #include <$ac_header> | ||
7311 | _ACEOF | ||
7312 | rm -f conftest.$ac_objext | ||
7313 | if { (eval echo "$as_me:7313: \"$ac_compile\"") >&5 | ||
7314 | (eval $ac_compile) 2>&5 | ||
7315 | ac_status=$? | ||
7316 | echo "$as_me:7316: \$? = $ac_status" >&5 | ||
7317 | (exit $ac_status); } && | ||
7318 | { ac_try='test -s conftest.$ac_objext' | ||
7319 | { (eval echo "$as_me:7319: \"$ac_try\"") >&5 | ||
7320 | (eval $ac_try) 2>&5 | ||
7321 | ac_status=$? | ||
7322 | echo "$as_me:7322: \$? = $ac_status" >&5 | ||
7323 | (exit $ac_status); }; }; then | ||
7324 | eval "$as_ac_Header=yes" | ||
7325 | else | ||
7326 | echo "$as_me: failed program was:" >&5 | ||
7327 | cat conftest.$ac_ext >&5 | ||
7328 | eval "$as_ac_Header=no" | ||
7329 | fi | ||
7330 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7331 | fi | ||
7332 | echo "$as_me:7332: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7334 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7335 | cat >>confdefs.h <<EOF | ||
7336 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7337 | EOF | ||
7338 | |||
7339 | fi | ||
7340 | done | ||
7341 | |||
7342 | echo "$as_me:7342: checking whether strsep is declared" >&5 | ||
7343 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7344 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7346 | else | ||
7347 | cat >conftest.$ac_ext <<_ACEOF | ||
7348 | #line 7348 "configure" | ||
7349 | #include "confdefs.h" | ||
7350 | $ac_includes_default | ||
7351 | int | ||
7352 | main () | ||
7353 | { | ||
7354 | #ifndef strsep | ||
7355 | char *p = (char *) strsep; | ||
7356 | #endif | ||
7357 | |||
7358 | ; | ||
7359 | return 0; | ||
7360 | } | ||
7361 | _ACEOF | ||
7362 | rm -f conftest.$ac_objext | ||
7363 | if { (eval echo "$as_me:7363: \"$ac_compile\"") >&5 | ||
7364 | (eval $ac_compile) 2>&5 | ||
7365 | ac_status=$? | ||
7366 | echo "$as_me:7366: \$? = $ac_status" >&5 | ||
7367 | (exit $ac_status); } && | ||
7368 | { ac_try='test -s conftest.$ac_objext' | ||
7369 | { (eval echo "$as_me:7369: \"$ac_try\"") >&5 | ||
7370 | (eval $ac_try) 2>&5 | ||
7371 | ac_status=$? | ||
7372 | echo "$as_me:7372: \$? = $ac_status" >&5 | ||
7373 | (exit $ac_status); }; }; then | ||
7374 | ac_cv_have_decl_strsep=yes | ||
7375 | else | ||
7376 | echo "$as_me: failed program was:" >&5 | ||
7377 | cat conftest.$ac_ext >&5 | ||
7378 | ac_cv_have_decl_strsep=no | ||
7379 | fi | ||
7380 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7381 | fi | ||
7382 | echo "$as_me:7382: result: $ac_cv_have_decl_strsep" >&5 | ||
7383 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7384 | if test $ac_cv_have_decl_strsep = yes; then | ||
7385 | |||
7386 | for ac_func in strsep | ||
7387 | do | ||
7388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7389 | echo "$as_me:7389: checking for $ac_func" >&5 | ||
7390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7391 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7393 | else | ||
7394 | cat >conftest.$ac_ext <<_ACEOF | ||
7395 | #line 7395 "configure" | ||
7396 | #include "confdefs.h" | ||
7397 | /* System header to define __stub macros and hopefully few prototypes, | ||
7398 | which can conflict with char $ac_func (); below. */ | ||
7399 | #include <assert.h> | ||
7400 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7401 | #ifdef __cplusplus | ||
7402 | extern "C" | ||
7403 | #endif | ||
7404 | /* We use char because int might match the return type of a gcc2 | ||
7405 | builtin and then its argument prototype would still apply. */ | ||
7406 | char $ac_func (); | ||
7407 | char (*f) (); | ||
7408 | |||
7409 | int | ||
7410 | main () | ||
7411 | { | ||
7412 | /* The GNU C library defines this for functions which it implements | ||
7413 | to always fail with ENOSYS. Some functions are actually named | ||
7414 | something starting with __ and the normal name is an alias. */ | ||
7415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7416 | choke me | ||
7417 | #else | ||
7418 | f = $ac_func; | ||
7419 | #endif | ||
7420 | |||
7421 | ; | ||
7422 | return 0; | ||
7423 | } | ||
7424 | _ACEOF | ||
7425 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7426 | if { (eval echo "$as_me:7426: \"$ac_link\"") >&5 | ||
7427 | (eval $ac_link) 2>&5 | ||
7428 | ac_status=$? | ||
7429 | echo "$as_me:7429: \$? = $ac_status" >&5 | ||
7430 | (exit $ac_status); } && | ||
7431 | { ac_try='test -s conftest$ac_exeext' | ||
7432 | { (eval echo "$as_me:7432: \"$ac_try\"") >&5 | ||
7433 | (eval $ac_try) 2>&5 | ||
7434 | ac_status=$? | ||
7435 | echo "$as_me:7435: \$? = $ac_status" >&5 | ||
7436 | (exit $ac_status); }; }; then | ||
7437 | eval "$as_ac_var=yes" | ||
7438 | else | ||
7439 | echo "$as_me: failed program was:" >&5 | ||
7440 | cat conftest.$ac_ext >&5 | ||
7441 | eval "$as_ac_var=no" | ||
7442 | fi | ||
7443 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7444 | fi | ||
7445 | echo "$as_me:7445: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7446 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7448 | cat >>confdefs.h <<EOF | ||
7449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7450 | EOF | ||
7451 | |||
7452 | fi | ||
7453 | done | ||
7454 | |||
7455 | fi | ||
7456 | |||
7457 | echo "$as_me:7457: checking whether getrusage is declared" >&5 | ||
7458 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
7459 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7461 | else | ||
7462 | cat >conftest.$ac_ext <<_ACEOF | ||
7463 | #line 7463 "configure" | ||
7464 | #include "confdefs.h" | ||
7465 | $ac_includes_default | ||
7466 | int | ||
7467 | main () | ||
7468 | { | ||
7469 | #ifndef getrusage | ||
7470 | char *p = (char *) getrusage; | ||
7471 | #endif | ||
7472 | |||
7473 | ; | ||
7474 | return 0; | ||
7475 | } | ||
7476 | _ACEOF | ||
7477 | rm -f conftest.$ac_objext | ||
7478 | if { (eval echo "$as_me:7478: \"$ac_compile\"") >&5 | ||
7479 | (eval $ac_compile) 2>&5 | ||
7480 | ac_status=$? | ||
7481 | echo "$as_me:7481: \$? = $ac_status" >&5 | ||
7482 | (exit $ac_status); } && | ||
7483 | { ac_try='test -s conftest.$ac_objext' | ||
7484 | { (eval echo "$as_me:7484: \"$ac_try\"") >&5 | ||
7485 | (eval $ac_try) 2>&5 | ||
7486 | ac_status=$? | ||
7487 | echo "$as_me:7487: \$? = $ac_status" >&5 | ||
7488 | (exit $ac_status); }; }; then | ||
7489 | ac_cv_have_decl_getrusage=yes | ||
7490 | else | ||
7491 | echo "$as_me: failed program was:" >&5 | ||
7492 | cat conftest.$ac_ext >&5 | ||
7493 | ac_cv_have_decl_getrusage=no | ||
7494 | fi | ||
7495 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7496 | fi | ||
7497 | echo "$as_me:7497: result: $ac_cv_have_decl_getrusage" >&5 | ||
7498 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
7499 | if test $ac_cv_have_decl_getrusage = yes; then | ||
7500 | |||
7501 | for ac_func in getrusage | ||
7502 | do | ||
7503 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7504 | echo "$as_me:7504: checking for $ac_func" >&5 | ||
7505 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7506 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7508 | else | ||
7509 | cat >conftest.$ac_ext <<_ACEOF | ||
7510 | #line 7510 "configure" | ||
7511 | #include "confdefs.h" | ||
7512 | /* System header to define __stub macros and hopefully few prototypes, | ||
7513 | which can conflict with char $ac_func (); below. */ | ||
7514 | #include <assert.h> | ||
7515 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7516 | #ifdef __cplusplus | ||
7517 | extern "C" | ||
7518 | #endif | ||
7519 | /* We use char because int might match the return type of a gcc2 | ||
7520 | builtin and then its argument prototype would still apply. */ | ||
7521 | char $ac_func (); | ||
7522 | char (*f) (); | ||
7523 | |||
7524 | int | ||
7525 | main () | ||
7526 | { | ||
7527 | /* The GNU C library defines this for functions which it implements | ||
7528 | to always fail with ENOSYS. Some functions are actually named | ||
7529 | something starting with __ and the normal name is an alias. */ | ||
7530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7531 | choke me | ||
7532 | #else | ||
7533 | f = $ac_func; | ||
7534 | #endif | ||
7535 | |||
7536 | ; | ||
7537 | return 0; | ||
7538 | } | ||
7539 | _ACEOF | ||
7540 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7541 | if { (eval echo "$as_me:7541: \"$ac_link\"") >&5 | ||
7542 | (eval $ac_link) 2>&5 | ||
7543 | ac_status=$? | ||
7544 | echo "$as_me:7544: \$? = $ac_status" >&5 | ||
7545 | (exit $ac_status); } && | ||
7546 | { ac_try='test -s conftest$ac_exeext' | ||
7547 | { (eval echo "$as_me:7547: \"$ac_try\"") >&5 | ||
7548 | (eval $ac_try) 2>&5 | ||
7549 | ac_status=$? | ||
7550 | echo "$as_me:7550: \$? = $ac_status" >&5 | ||
7551 | (exit $ac_status); }; }; then | ||
7552 | eval "$as_ac_var=yes" | ||
7553 | else | ||
7554 | echo "$as_me: failed program was:" >&5 | ||
7555 | cat conftest.$ac_ext >&5 | ||
7556 | eval "$as_ac_var=no" | ||
7557 | fi | ||
7558 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7559 | fi | ||
7560 | echo "$as_me:7560: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7561 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7562 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7563 | cat >>confdefs.h <<EOF | ||
7564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7565 | EOF | ||
7566 | |||
7567 | fi | ||
7568 | done | ||
7569 | |||
7570 | fi | ||
7571 | |||
7572 | echo "$as_me:7572: checking whether tcsendbreak is declared" >&5 | ||
7573 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
7574 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
7575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7576 | else | ||
7577 | cat >conftest.$ac_ext <<_ACEOF | ||
7578 | #line 7578 "configure" | ||
7579 | #include "confdefs.h" | ||
7580 | #include <termios.h> | ||
7581 | |||
7582 | int | ||
7583 | main () | ||
7584 | { | ||
7585 | #ifndef tcsendbreak | ||
7586 | char *p = (char *) tcsendbreak; | ||
7587 | #endif | ||
7588 | |||
7589 | ; | ||
7590 | return 0; | ||
7591 | } | ||
7592 | _ACEOF | ||
7593 | rm -f conftest.$ac_objext | ||
7594 | if { (eval echo "$as_me:7594: \"$ac_compile\"") >&5 | ||
7595 | (eval $ac_compile) 2>&5 | ||
7596 | ac_status=$? | ||
7597 | echo "$as_me:7597: \$? = $ac_status" >&5 | ||
7598 | (exit $ac_status); } && | ||
7599 | { ac_try='test -s conftest.$ac_objext' | ||
7600 | { (eval echo "$as_me:7600: \"$ac_try\"") >&5 | ||
7601 | (eval $ac_try) 2>&5 | ||
7602 | ac_status=$? | ||
7603 | echo "$as_me:7603: \$? = $ac_status" >&5 | ||
7604 | (exit $ac_status); }; }; then | ||
7605 | ac_cv_have_decl_tcsendbreak=yes | ||
7606 | else | ||
7607 | echo "$as_me: failed program was:" >&5 | ||
7608 | cat conftest.$ac_ext >&5 | ||
7609 | ac_cv_have_decl_tcsendbreak=no | ||
7610 | fi | ||
7611 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7612 | fi | ||
7613 | echo "$as_me:7613: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
7614 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
7615 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
7616 | cat >>confdefs.h <<\EOF | ||
7617 | #define HAVE_TCSENDBREAK 1 | ||
7618 | EOF | ||
7619 | |||
7620 | else | ||
7621 | |||
7622 | for ac_func in tcsendbreak | ||
7623 | do | ||
7624 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7625 | echo "$as_me:7625: checking for $ac_func" >&5 | ||
7626 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7627 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7629 | else | ||
7630 | cat >conftest.$ac_ext <<_ACEOF | ||
7631 | #line 7631 "configure" | ||
7632 | #include "confdefs.h" | ||
7633 | /* System header to define __stub macros and hopefully few prototypes, | ||
7634 | which can conflict with char $ac_func (); below. */ | ||
7635 | #include <assert.h> | ||
7636 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7637 | #ifdef __cplusplus | ||
7638 | extern "C" | ||
7639 | #endif | ||
7640 | /* We use char because int might match the return type of a gcc2 | ||
7641 | builtin and then its argument prototype would still apply. */ | ||
7642 | char $ac_func (); | ||
7643 | char (*f) (); | ||
7644 | |||
7645 | int | ||
7646 | main () | ||
7647 | { | ||
7648 | /* The GNU C library defines this for functions which it implements | ||
7649 | to always fail with ENOSYS. Some functions are actually named | ||
7650 | something starting with __ and the normal name is an alias. */ | ||
7651 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7652 | choke me | ||
7653 | #else | ||
7654 | f = $ac_func; | ||
7655 | #endif | ||
7656 | |||
7657 | ; | ||
7658 | return 0; | ||
7659 | } | ||
7660 | _ACEOF | ||
7661 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7662 | if { (eval echo "$as_me:7662: \"$ac_link\"") >&5 | ||
7663 | (eval $ac_link) 2>&5 | ||
7664 | ac_status=$? | ||
7665 | echo "$as_me:7665: \$? = $ac_status" >&5 | ||
7666 | (exit $ac_status); } && | ||
7667 | { ac_try='test -s conftest$ac_exeext' | ||
7668 | { (eval echo "$as_me:7668: \"$ac_try\"") >&5 | ||
7669 | (eval $ac_try) 2>&5 | ||
7670 | ac_status=$? | ||
7671 | echo "$as_me:7671: \$? = $ac_status" >&5 | ||
7672 | (exit $ac_status); }; }; then | ||
7673 | eval "$as_ac_var=yes" | ||
7674 | else | ||
7675 | echo "$as_me: failed program was:" >&5 | ||
7676 | cat conftest.$ac_ext >&5 | ||
7677 | eval "$as_ac_var=no" | ||
7678 | fi | ||
7679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7680 | fi | ||
7681 | echo "$as_me:7681: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7683 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7684 | cat >>confdefs.h <<EOF | ||
7685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7686 | EOF | ||
7687 | |||
7688 | fi | ||
7689 | done | ||
7690 | |||
7691 | fi | ||
7692 | |||
7693 | for ac_func in setresuid | ||
7694 | do | ||
7695 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7696 | echo "$as_me:7696: checking for $ac_func" >&5 | ||
7697 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7698 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7700 | else | ||
7701 | cat >conftest.$ac_ext <<_ACEOF | ||
7702 | #line 7702 "configure" | ||
7703 | #include "confdefs.h" | ||
7704 | /* System header to define __stub macros and hopefully few prototypes, | ||
7705 | which can conflict with char $ac_func (); below. */ | ||
7706 | #include <assert.h> | ||
7707 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7708 | #ifdef __cplusplus | ||
7709 | extern "C" | ||
7710 | #endif | ||
7711 | /* We use char because int might match the return type of a gcc2 | ||
7712 | builtin and then its argument prototype would still apply. */ | ||
7713 | char $ac_func (); | ||
7714 | char (*f) (); | ||
7715 | |||
7716 | int | ||
7717 | main () | ||
7718 | { | ||
7719 | /* The GNU C library defines this for functions which it implements | ||
7720 | to always fail with ENOSYS. Some functions are actually named | ||
7721 | something starting with __ and the normal name is an alias. */ | ||
7722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7723 | choke me | ||
7724 | #else | ||
7725 | f = $ac_func; | ||
7726 | #endif | ||
7727 | |||
7728 | ; | ||
7729 | return 0; | ||
7730 | } | ||
7731 | _ACEOF | ||
7732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7733 | if { (eval echo "$as_me:7733: \"$ac_link\"") >&5 | ||
7734 | (eval $ac_link) 2>&5 | ||
7735 | ac_status=$? | ||
7736 | echo "$as_me:7736: \$? = $ac_status" >&5 | ||
7737 | (exit $ac_status); } && | ||
7738 | { ac_try='test -s conftest$ac_exeext' | ||
7739 | { (eval echo "$as_me:7739: \"$ac_try\"") >&5 | ||
7740 | (eval $ac_try) 2>&5 | ||
7741 | ac_status=$? | ||
7742 | echo "$as_me:7742: \$? = $ac_status" >&5 | ||
7743 | (exit $ac_status); }; }; then | ||
7744 | eval "$as_ac_var=yes" | ||
7745 | else | ||
7746 | echo "$as_me: failed program was:" >&5 | ||
7747 | cat conftest.$ac_ext >&5 | ||
7748 | eval "$as_ac_var=no" | ||
7749 | fi | ||
7750 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7751 | fi | ||
7752 | echo "$as_me:7752: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7754 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7755 | cat >>confdefs.h <<EOF | ||
7756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7757 | EOF | ||
7758 | |||
7759 | echo "$as_me:7759: checking if setresuid seems to work" >&5 | ||
7760 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
7761 | if test "$cross_compiling" = yes; then | ||
7762 | { { echo "$as_me:7762: error: cannot run test program while cross compiling" >&5 | ||
7763 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7764 | { (exit 1); exit 1; }; } | ||
7765 | else | ||
7766 | cat >conftest.$ac_ext <<_ACEOF | ||
7767 | #line 7767 "configure" | ||
7768 | #include "confdefs.h" | ||
7769 | |||
7770 | #include <stdlib.h> | ||
7771 | #include <errno.h> | ||
7772 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
7773 | |||
7774 | _ACEOF | ||
7775 | rm -f conftest$ac_exeext | ||
7776 | if { (eval echo "$as_me:7776: \"$ac_link\"") >&5 | ||
7777 | (eval $ac_link) 2>&5 | ||
7778 | ac_status=$? | ||
7779 | echo "$as_me:7779: \$? = $ac_status" >&5 | ||
7780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7781 | { (eval echo "$as_me:7781: \"$ac_try\"") >&5 | ||
7782 | (eval $ac_try) 2>&5 | ||
7783 | ac_status=$? | ||
7784 | echo "$as_me:7784: \$? = $ac_status" >&5 | ||
7785 | (exit $ac_status); }; }; then | ||
7786 | echo "$as_me:7786: result: yes" >&5 | ||
7787 | echo "${ECHO_T}yes" >&6 | ||
7788 | else | ||
7789 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7790 | echo "$as_me: failed program was:" >&5 | ||
7791 | cat conftest.$ac_ext >&5 | ||
7792 | cat >>confdefs.h <<\EOF | ||
7793 | #define BROKEN_SETRESUID 1 | ||
7794 | EOF | ||
7795 | |||
7796 | echo "$as_me:7796: result: not implemented" >&5 | ||
7797 | echo "${ECHO_T}not implemented" >&6 | ||
7798 | |||
7799 | fi | ||
7800 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7801 | fi | ||
7802 | |||
7803 | fi | ||
7804 | done | ||
7805 | |||
7806 | for ac_func in setresgid | ||
7807 | do | ||
7808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7809 | echo "$as_me:7809: checking for $ac_func" >&5 | ||
7810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7811 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7813 | else | ||
7814 | cat >conftest.$ac_ext <<_ACEOF | ||
7815 | #line 7815 "configure" | ||
7816 | #include "confdefs.h" | ||
7817 | /* System header to define __stub macros and hopefully few prototypes, | ||
7818 | which can conflict with char $ac_func (); below. */ | ||
7819 | #include <assert.h> | ||
7820 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7821 | #ifdef __cplusplus | ||
7822 | extern "C" | ||
7823 | #endif | ||
7824 | /* We use char because int might match the return type of a gcc2 | ||
7825 | builtin and then its argument prototype would still apply. */ | ||
7826 | char $ac_func (); | ||
7827 | char (*f) (); | ||
7828 | |||
7829 | int | ||
7830 | main () | ||
7831 | { | ||
7832 | /* The GNU C library defines this for functions which it implements | ||
7833 | to always fail with ENOSYS. Some functions are actually named | ||
7834 | something starting with __ and the normal name is an alias. */ | ||
7835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7836 | choke me | ||
7837 | #else | ||
7838 | f = $ac_func; | ||
7839 | #endif | ||
7840 | |||
7841 | ; | ||
7842 | return 0; | ||
7843 | } | ||
7844 | _ACEOF | ||
7845 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7846 | if { (eval echo "$as_me:7846: \"$ac_link\"") >&5 | ||
7847 | (eval $ac_link) 2>&5 | ||
7848 | ac_status=$? | ||
7849 | echo "$as_me:7849: \$? = $ac_status" >&5 | ||
7850 | (exit $ac_status); } && | ||
7851 | { ac_try='test -s conftest$ac_exeext' | ||
7852 | { (eval echo "$as_me:7852: \"$ac_try\"") >&5 | ||
7853 | (eval $ac_try) 2>&5 | ||
7854 | ac_status=$? | ||
7855 | echo "$as_me:7855: \$? = $ac_status" >&5 | ||
7856 | (exit $ac_status); }; }; then | ||
7857 | eval "$as_ac_var=yes" | ||
7858 | else | ||
7859 | echo "$as_me: failed program was:" >&5 | ||
7860 | cat conftest.$ac_ext >&5 | ||
7861 | eval "$as_ac_var=no" | ||
7862 | fi | ||
7863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7864 | fi | ||
7865 | echo "$as_me:7865: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7866 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7867 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7868 | cat >>confdefs.h <<EOF | ||
7869 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7870 | EOF | ||
7871 | |||
7872 | echo "$as_me:7872: checking if setresgid seems to work" >&5 | ||
7873 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
7874 | if test "$cross_compiling" = yes; then | ||
7875 | { { echo "$as_me:7875: error: cannot run test program while cross compiling" >&5 | ||
7876 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7877 | { (exit 1); exit 1; }; } | ||
7878 | else | ||
7879 | cat >conftest.$ac_ext <<_ACEOF | ||
7880 | #line 7880 "configure" | ||
7881 | #include "confdefs.h" | ||
7882 | |||
7883 | #include <stdlib.h> | ||
7884 | #include <errno.h> | ||
7885 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
7886 | |||
7887 | _ACEOF | ||
7888 | rm -f conftest$ac_exeext | ||
7889 | if { (eval echo "$as_me:7889: \"$ac_link\"") >&5 | ||
7890 | (eval $ac_link) 2>&5 | ||
7891 | ac_status=$? | ||
7892 | echo "$as_me:7892: \$? = $ac_status" >&5 | ||
7893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7894 | { (eval echo "$as_me:7894: \"$ac_try\"") >&5 | ||
7895 | (eval $ac_try) 2>&5 | ||
7896 | ac_status=$? | ||
7897 | echo "$as_me:7897: \$? = $ac_status" >&5 | ||
7898 | (exit $ac_status); }; }; then | ||
7899 | echo "$as_me:7899: result: yes" >&5 | ||
7900 | echo "${ECHO_T}yes" >&6 | ||
7901 | else | ||
7902 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7903 | echo "$as_me: failed program was:" >&5 | ||
7904 | cat conftest.$ac_ext >&5 | ||
7905 | cat >>confdefs.h <<\EOF | ||
7906 | #define BROKEN_SETRESGID 1 | ||
7907 | EOF | ||
7908 | |||
7909 | echo "$as_me:7909: result: not implemented" >&5 | ||
7910 | echo "${ECHO_T}not implemented" >&6 | ||
7911 | |||
7912 | fi | ||
7913 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7914 | fi | ||
7915 | |||
7916 | fi | ||
7917 | done | ||
7918 | |||
7919 | for ac_func in gettimeofday time | ||
7920 | do | ||
7921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7922 | echo "$as_me:7922: checking for $ac_func" >&5 | ||
7923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7924 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7926 | else | ||
7927 | cat >conftest.$ac_ext <<_ACEOF | ||
7928 | #line 7928 "configure" | ||
7929 | #include "confdefs.h" | ||
7930 | /* System header to define __stub macros and hopefully few prototypes, | ||
7931 | which can conflict with char $ac_func (); below. */ | ||
7932 | #include <assert.h> | ||
7933 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7934 | #ifdef __cplusplus | ||
7935 | extern "C" | ||
7936 | #endif | ||
7937 | /* We use char because int might match the return type of a gcc2 | ||
7938 | builtin and then its argument prototype would still apply. */ | ||
7939 | char $ac_func (); | ||
7940 | char (*f) (); | ||
7941 | |||
7942 | int | ||
7943 | main () | ||
7944 | { | ||
7945 | /* The GNU C library defines this for functions which it implements | ||
7946 | to always fail with ENOSYS. Some functions are actually named | ||
7947 | something starting with __ and the normal name is an alias. */ | ||
7948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7949 | choke me | ||
7950 | #else | ||
7951 | f = $ac_func; | ||
7952 | #endif | ||
7953 | |||
7954 | ; | ||
7955 | return 0; | ||
7956 | } | ||
7957 | _ACEOF | ||
7958 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7959 | if { (eval echo "$as_me:7959: \"$ac_link\"") >&5 | ||
7960 | (eval $ac_link) 2>&5 | ||
7961 | ac_status=$? | ||
7962 | echo "$as_me:7962: \$? = $ac_status" >&5 | ||
7963 | (exit $ac_status); } && | ||
7964 | { ac_try='test -s conftest$ac_exeext' | ||
7965 | { (eval echo "$as_me:7965: \"$ac_try\"") >&5 | ||
7966 | (eval $ac_try) 2>&5 | ||
7967 | ac_status=$? | ||
7968 | echo "$as_me:7968: \$? = $ac_status" >&5 | ||
7969 | (exit $ac_status); }; }; then | ||
7970 | eval "$as_ac_var=yes" | ||
7971 | else | ||
7972 | echo "$as_me: failed program was:" >&5 | ||
7973 | cat conftest.$ac_ext >&5 | ||
7974 | eval "$as_ac_var=no" | ||
7975 | fi | ||
7976 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7977 | fi | ||
7978 | echo "$as_me:7978: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7979 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7980 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7981 | cat >>confdefs.h <<EOF | ||
7982 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7983 | EOF | ||
7984 | |||
7985 | fi | ||
7986 | done | ||
7987 | |||
7988 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7989 | do | ||
7990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7991 | echo "$as_me:7991: checking for $ac_func" >&5 | ||
7992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7993 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7995 | else | ||
7996 | cat >conftest.$ac_ext <<_ACEOF | ||
7997 | #line 7997 "configure" | ||
7998 | #include "confdefs.h" | ||
7999 | /* System header to define __stub macros and hopefully few prototypes, | ||
8000 | which can conflict with char $ac_func (); below. */ | ||
8001 | #include <assert.h> | ||
8002 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8003 | #ifdef __cplusplus | ||
8004 | extern "C" | ||
8005 | #endif | ||
8006 | /* We use char because int might match the return type of a gcc2 | ||
8007 | builtin and then its argument prototype would still apply. */ | ||
8008 | char $ac_func (); | ||
8009 | char (*f) (); | ||
8010 | |||
8011 | int | ||
8012 | main () | ||
8013 | { | ||
8014 | /* The GNU C library defines this for functions which it implements | ||
8015 | to always fail with ENOSYS. Some functions are actually named | ||
8016 | something starting with __ and the normal name is an alias. */ | ||
8017 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8018 | choke me | ||
8019 | #else | ||
8020 | f = $ac_func; | ||
8021 | #endif | ||
8022 | |||
8023 | ; | ||
8024 | return 0; | ||
8025 | } | ||
8026 | _ACEOF | ||
8027 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8028 | if { (eval echo "$as_me:8028: \"$ac_link\"") >&5 | ||
8029 | (eval $ac_link) 2>&5 | ||
8030 | ac_status=$? | ||
8031 | echo "$as_me:8031: \$? = $ac_status" >&5 | ||
8032 | (exit $ac_status); } && | ||
8033 | { ac_try='test -s conftest$ac_exeext' | ||
8034 | { (eval echo "$as_me:8034: \"$ac_try\"") >&5 | ||
8035 | (eval $ac_try) 2>&5 | ||
8036 | ac_status=$? | ||
8037 | echo "$as_me:8037: \$? = $ac_status" >&5 | ||
8038 | (exit $ac_status); }; }; then | ||
8039 | eval "$as_ac_var=yes" | ||
8040 | else | ||
8041 | echo "$as_me: failed program was:" >&5 | ||
8042 | cat conftest.$ac_ext >&5 | ||
8043 | eval "$as_ac_var=no" | ||
8044 | fi | ||
8045 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8046 | fi | ||
8047 | echo "$as_me:8047: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8048 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8049 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8050 | cat >>confdefs.h <<EOF | ||
8051 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8052 | EOF | ||
8053 | |||
8054 | fi | ||
8055 | done | ||
8056 | |||
8057 | for ac_func in utmpname | ||
8058 | do | ||
8059 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8060 | echo "$as_me:8060: checking for $ac_func" >&5 | ||
8061 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8062 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8064 | else | ||
8065 | cat >conftest.$ac_ext <<_ACEOF | ||
8066 | #line 8066 "configure" | ||
8067 | #include "confdefs.h" | ||
8068 | /* System header to define __stub macros and hopefully few prototypes, | ||
8069 | which can conflict with char $ac_func (); below. */ | ||
8070 | #include <assert.h> | ||
8071 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8072 | #ifdef __cplusplus | ||
8073 | extern "C" | ||
8074 | #endif | ||
8075 | /* We use char because int might match the return type of a gcc2 | ||
8076 | builtin and then its argument prototype would still apply. */ | ||
8077 | char $ac_func (); | ||
8078 | char (*f) (); | ||
8079 | |||
8080 | int | ||
8081 | main () | ||
8082 | { | ||
8083 | /* The GNU C library defines this for functions which it implements | ||
8084 | to always fail with ENOSYS. Some functions are actually named | ||
8085 | something starting with __ and the normal name is an alias. */ | ||
8086 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8087 | choke me | ||
8088 | #else | ||
8089 | f = $ac_func; | ||
8090 | #endif | ||
8091 | |||
8092 | ; | ||
8093 | return 0; | ||
8094 | } | ||
8095 | _ACEOF | ||
8096 | rm -f conftest.$ac_objext 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); } && | ||
8102 | { ac_try='test -s conftest$ac_exeext' | ||
8103 | { (eval echo "$as_me:8103: \"$ac_try\"") >&5 | ||
8104 | (eval $ac_try) 2>&5 | ||
8105 | ac_status=$? | ||
8106 | echo "$as_me:8106: \$? = $ac_status" >&5 | ||
8107 | (exit $ac_status); }; }; then | ||
8108 | eval "$as_ac_var=yes" | ||
8109 | else | ||
8110 | echo "$as_me: failed program was:" >&5 | ||
8111 | cat conftest.$ac_ext >&5 | ||
8112 | eval "$as_ac_var=no" | ||
8113 | fi | ||
8114 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8115 | fi | ||
8116 | echo "$as_me:8116: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8117 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8118 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8119 | cat >>confdefs.h <<EOF | ||
8120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8121 | EOF | ||
8122 | |||
8123 | fi | ||
8124 | done | ||
8125 | |||
8126 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
8127 | do | ||
8128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8129 | echo "$as_me:8129: checking for $ac_func" >&5 | ||
8130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8133 | else | ||
8134 | cat >conftest.$ac_ext <<_ACEOF | ||
8135 | #line 8135 "configure" | ||
8136 | #include "confdefs.h" | ||
8137 | /* System header to define __stub macros and hopefully few prototypes, | ||
8138 | which can conflict with char $ac_func (); below. */ | ||
8139 | #include <assert.h> | ||
8140 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8141 | #ifdef __cplusplus | ||
8142 | extern "C" | ||
8143 | #endif | ||
8144 | /* We use char because int might match the return type of a gcc2 | ||
8145 | builtin and then its argument prototype would still apply. */ | ||
8146 | char $ac_func (); | ||
8147 | char (*f) (); | ||
8148 | |||
8149 | int | ||
8150 | main () | ||
8151 | { | ||
8152 | /* The GNU C library defines this for functions which it implements | ||
8153 | to always fail with ENOSYS. Some functions are actually named | ||
8154 | something starting with __ and the normal name is an alias. */ | ||
8155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8156 | choke me | ||
8157 | #else | ||
8158 | f = $ac_func; | ||
8159 | #endif | ||
8160 | |||
8161 | ; | ||
8162 | return 0; | ||
8163 | } | ||
8164 | _ACEOF | ||
8165 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8166 | if { (eval echo "$as_me:8166: \"$ac_link\"") >&5 | ||
8167 | (eval $ac_link) 2>&5 | ||
8168 | ac_status=$? | ||
8169 | echo "$as_me:8169: \$? = $ac_status" >&5 | ||
8170 | (exit $ac_status); } && | ||
8171 | { ac_try='test -s conftest$ac_exeext' | ||
8172 | { (eval echo "$as_me:8172: \"$ac_try\"") >&5 | ||
8173 | (eval $ac_try) 2>&5 | ||
8174 | ac_status=$? | ||
8175 | echo "$as_me:8175: \$? = $ac_status" >&5 | ||
8176 | (exit $ac_status); }; }; then | ||
8177 | eval "$as_ac_var=yes" | ||
8178 | else | ||
8179 | echo "$as_me: failed program was:" >&5 | ||
8180 | cat conftest.$ac_ext >&5 | ||
8181 | eval "$as_ac_var=no" | ||
8182 | fi | ||
8183 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8184 | fi | ||
8185 | echo "$as_me:8185: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8187 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8188 | cat >>confdefs.h <<EOF | ||
8189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8190 | EOF | ||
8191 | |||
8192 | fi | ||
8193 | done | ||
8194 | |||
8195 | for ac_func in setutxent utmpxname | ||
8196 | do | ||
8197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8198 | echo "$as_me:8198: checking for $ac_func" >&5 | ||
8199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8202 | else | ||
8203 | cat >conftest.$ac_ext <<_ACEOF | ||
8204 | #line 8204 "configure" | ||
8205 | #include "confdefs.h" | ||
8206 | /* System header to define __stub macros and hopefully few prototypes, | ||
8207 | which can conflict with char $ac_func (); below. */ | ||
8208 | #include <assert.h> | ||
8209 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8210 | #ifdef __cplusplus | ||
8211 | extern "C" | ||
8212 | #endif | ||
8213 | /* We use char because int might match the return type of a gcc2 | ||
8214 | builtin and then its argument prototype would still apply. */ | ||
8215 | char $ac_func (); | ||
8216 | char (*f) (); | ||
8217 | |||
8218 | int | ||
8219 | main () | ||
8220 | { | ||
8221 | /* The GNU C library defines this for functions which it implements | ||
8222 | to always fail with ENOSYS. Some functions are actually named | ||
8223 | something starting with __ and the normal name is an alias. */ | ||
8224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8225 | choke me | ||
8226 | #else | ||
8227 | f = $ac_func; | ||
8228 | #endif | ||
8229 | |||
8230 | ; | ||
8231 | return 0; | ||
8232 | } | ||
8233 | _ACEOF | ||
8234 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8235 | if { (eval echo "$as_me:8235: \"$ac_link\"") >&5 | ||
8236 | (eval $ac_link) 2>&5 | ||
8237 | ac_status=$? | ||
8238 | echo "$as_me:8238: \$? = $ac_status" >&5 | ||
8239 | (exit $ac_status); } && | ||
8240 | { ac_try='test -s conftest$ac_exeext' | ||
8241 | { (eval echo "$as_me:8241: \"$ac_try\"") >&5 | ||
8242 | (eval $ac_try) 2>&5 | ||
8243 | ac_status=$? | ||
8244 | echo "$as_me:8244: \$? = $ac_status" >&5 | ||
8245 | (exit $ac_status); }; }; then | ||
8246 | eval "$as_ac_var=yes" | ||
8247 | else | ||
8248 | echo "$as_me: failed program was:" >&5 | ||
8249 | cat conftest.$ac_ext >&5 | ||
8250 | eval "$as_ac_var=no" | ||
8251 | fi | ||
8252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8253 | fi | ||
8254 | echo "$as_me:8254: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8256 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8257 | cat >>confdefs.h <<EOF | ||
8258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8259 | EOF | ||
8260 | |||
8261 | fi | ||
8262 | done | ||
8263 | |||
8264 | echo "$as_me:8264: checking for daemon" >&5 | ||
8265 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
8266 | if test "${ac_cv_func_daemon+set}" = set; then | ||
8267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8268 | else | ||
8269 | cat >conftest.$ac_ext <<_ACEOF | ||
8270 | #line 8270 "configure" | ||
8271 | #include "confdefs.h" | ||
8272 | /* System header to define __stub macros and hopefully few prototypes, | ||
8273 | which can conflict with char daemon (); below. */ | ||
8274 | #include <assert.h> | ||
8275 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8276 | #ifdef __cplusplus | ||
8277 | extern "C" | ||
8278 | #endif | ||
8279 | /* We use char because int might match the return type of a gcc2 | ||
8280 | builtin and then its argument prototype would still apply. */ | ||
8281 | char daemon (); | ||
8282 | char (*f) (); | ||
8283 | |||
8284 | int | ||
8285 | main () | ||
8286 | { | ||
8287 | /* The GNU C library defines this for functions which it implements | ||
8288 | to always fail with ENOSYS. Some functions are actually named | ||
8289 | something starting with __ and the normal name is an alias. */ | ||
8290 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
8291 | choke me | ||
8292 | #else | ||
8293 | f = daemon; | ||
8294 | #endif | ||
8295 | |||
8296 | ; | ||
8297 | return 0; | ||
8298 | } | ||
8299 | _ACEOF | ||
8300 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8301 | if { (eval echo "$as_me:8301: \"$ac_link\"") >&5 | ||
8302 | (eval $ac_link) 2>&5 | ||
8303 | ac_status=$? | ||
8304 | echo "$as_me:8304: \$? = $ac_status" >&5 | ||
8305 | (exit $ac_status); } && | ||
8306 | { ac_try='test -s conftest$ac_exeext' | ||
8307 | { (eval echo "$as_me:8307: \"$ac_try\"") >&5 | ||
8308 | (eval $ac_try) 2>&5 | ||
8309 | ac_status=$? | ||
8310 | echo "$as_me:8310: \$? = $ac_status" >&5 | ||
8311 | (exit $ac_status); }; }; then | ||
8312 | ac_cv_func_daemon=yes | ||
8313 | else | ||
8314 | echo "$as_me: failed program was:" >&5 | ||
8315 | cat conftest.$ac_ext >&5 | ||
8316 | ac_cv_func_daemon=no | ||
8317 | fi | ||
8318 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8319 | fi | ||
8320 | echo "$as_me:8320: result: $ac_cv_func_daemon" >&5 | ||
8321 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
8322 | if test $ac_cv_func_daemon = yes; then | ||
8323 | cat >>confdefs.h <<\EOF | ||
8324 | #define HAVE_DAEMON 1 | ||
8325 | EOF | ||
8326 | |||
8327 | else | ||
8328 | echo "$as_me:8328: checking for daemon in -lbsd" >&5 | ||
8329 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
8330 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
8331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8332 | else | ||
8333 | ac_check_lib_save_LIBS=$LIBS | ||
8334 | LIBS="-lbsd $LIBS" | ||
8335 | cat >conftest.$ac_ext <<_ACEOF | ||
8336 | #line 8336 "configure" | ||
8337 | #include "confdefs.h" | ||
8338 | |||
8339 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8340 | #ifdef __cplusplus | ||
8341 | extern "C" | ||
8342 | #endif | ||
8343 | /* We use char because int might match the return type of a gcc2 | ||
8344 | builtin and then its argument prototype would still apply. */ | ||
8345 | char daemon (); | ||
8346 | int | ||
8347 | main () | ||
8348 | { | ||
8349 | daemon (); | ||
8350 | ; | ||
8351 | return 0; | ||
8352 | } | ||
8353 | _ACEOF | ||
8354 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8355 | if { (eval echo "$as_me:8355: \"$ac_link\"") >&5 | ||
8356 | (eval $ac_link) 2>&5 | ||
8357 | ac_status=$? | ||
8358 | echo "$as_me:8358: \$? = $ac_status" >&5 | ||
8359 | (exit $ac_status); } && | ||
8360 | { ac_try='test -s conftest$ac_exeext' | ||
8361 | { (eval echo "$as_me:8361: \"$ac_try\"") >&5 | ||
8362 | (eval $ac_try) 2>&5 | ||
8363 | ac_status=$? | ||
8364 | echo "$as_me:8364: \$? = $ac_status" >&5 | ||
8365 | (exit $ac_status); }; }; then | ||
8366 | ac_cv_lib_bsd_daemon=yes | ||
8367 | else | ||
8368 | echo "$as_me: failed program was:" >&5 | ||
8369 | cat conftest.$ac_ext >&5 | ||
8370 | ac_cv_lib_bsd_daemon=no | ||
8371 | fi | ||
8372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8373 | LIBS=$ac_check_lib_save_LIBS | ||
8374 | fi | ||
8375 | echo "$as_me:8375: result: $ac_cv_lib_bsd_daemon" >&5 | ||
8376 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
8377 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
8378 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF | ||
8379 | #define HAVE_DAEMON 1 | ||
8380 | EOF | ||
8381 | |||
8382 | fi | ||
8383 | |||
8384 | fi | ||
8385 | |||
8386 | echo "$as_me:8386: checking for getpagesize" >&5 | ||
8387 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
8388 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8390 | else | ||
8391 | cat >conftest.$ac_ext <<_ACEOF | ||
8392 | #line 8392 "configure" | ||
8393 | #include "confdefs.h" | ||
8394 | /* System header to define __stub macros and hopefully few prototypes, | ||
8395 | which can conflict with char getpagesize (); below. */ | ||
8396 | #include <assert.h> | ||
8397 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8398 | #ifdef __cplusplus | ||
8399 | extern "C" | ||
8400 | #endif | ||
8401 | /* We use char because int might match the return type of a gcc2 | ||
8402 | builtin and then its argument prototype would still apply. */ | ||
8403 | char getpagesize (); | ||
8404 | char (*f) (); | ||
8405 | |||
8406 | int | ||
8407 | main () | ||
8408 | { | ||
8409 | /* The GNU C library defines this for functions which it implements | ||
8410 | to always fail with ENOSYS. Some functions are actually named | ||
8411 | something starting with __ and the normal name is an alias. */ | ||
8412 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
8413 | choke me | ||
8414 | #else | ||
8415 | f = getpagesize; | ||
8416 | #endif | ||
8417 | |||
8418 | ; | ||
8419 | return 0; | ||
8420 | } | ||
8421 | _ACEOF | ||
8422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8423 | if { (eval echo "$as_me:8423: \"$ac_link\"") >&5 | ||
8424 | (eval $ac_link) 2>&5 | ||
8425 | ac_status=$? | ||
8426 | echo "$as_me:8426: \$? = $ac_status" >&5 | ||
8427 | (exit $ac_status); } && | ||
8428 | { ac_try='test -s conftest$ac_exeext' | ||
8429 | { (eval echo "$as_me:8429: \"$ac_try\"") >&5 | ||
8430 | (eval $ac_try) 2>&5 | ||
8431 | ac_status=$? | ||
8432 | echo "$as_me:8432: \$? = $ac_status" >&5 | ||
8433 | (exit $ac_status); }; }; then | ||
8434 | ac_cv_func_getpagesize=yes | ||
8435 | else | ||
8436 | echo "$as_me: failed program was:" >&5 | ||
8437 | cat conftest.$ac_ext >&5 | ||
8438 | ac_cv_func_getpagesize=no | ||
8439 | fi | ||
8440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8441 | fi | ||
8442 | echo "$as_me:8442: result: $ac_cv_func_getpagesize" >&5 | ||
8443 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
8444 | if test $ac_cv_func_getpagesize = yes; then | ||
8445 | cat >>confdefs.h <<\EOF | ||
8446 | #define HAVE_GETPAGESIZE 1 | ||
8447 | EOF | ||
8448 | |||
8449 | else | ||
8450 | echo "$as_me:8450: checking for getpagesize in -lucb" >&5 | ||
8451 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
8452 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
8453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8454 | else | ||
8455 | ac_check_lib_save_LIBS=$LIBS | ||
8456 | LIBS="-lucb $LIBS" | ||
8457 | cat >conftest.$ac_ext <<_ACEOF | ||
8458 | #line 8458 "configure" | ||
8459 | #include "confdefs.h" | ||
8460 | |||
8461 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8462 | #ifdef __cplusplus | ||
8463 | extern "C" | ||
8464 | #endif | ||
8465 | /* We use char because int might match the return type of a gcc2 | ||
8466 | builtin and then its argument prototype would still apply. */ | ||
8467 | char getpagesize (); | ||
8468 | int | ||
8469 | main () | ||
8470 | { | ||
8471 | getpagesize (); | ||
8472 | ; | ||
8473 | return 0; | ||
8474 | } | ||
8475 | _ACEOF | ||
8476 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8477 | if { (eval echo "$as_me:8477: \"$ac_link\"") >&5 | ||
8478 | (eval $ac_link) 2>&5 | ||
8479 | ac_status=$? | ||
8480 | echo "$as_me:8480: \$? = $ac_status" >&5 | ||
8481 | (exit $ac_status); } && | ||
8482 | { ac_try='test -s conftest$ac_exeext' | ||
8483 | { (eval echo "$as_me:8483: \"$ac_try\"") >&5 | ||
8484 | (eval $ac_try) 2>&5 | ||
8485 | ac_status=$? | ||
8486 | echo "$as_me:8486: \$? = $ac_status" >&5 | ||
8487 | (exit $ac_status); }; }; then | ||
8488 | ac_cv_lib_ucb_getpagesize=yes | ||
8489 | else | ||
8490 | echo "$as_me: failed program was:" >&5 | ||
8491 | cat conftest.$ac_ext >&5 | ||
8492 | ac_cv_lib_ucb_getpagesize=no | ||
8493 | fi | ||
8494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8495 | LIBS=$ac_check_lib_save_LIBS | ||
8496 | fi | ||
8497 | echo "$as_me:8497: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
8498 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
8499 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
8500 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF | ||
8501 | #define HAVE_GETPAGESIZE 1 | ||
8502 | EOF | ||
8503 | |||
8504 | fi | ||
8505 | |||
8506 | fi | ||
8507 | |||
8508 | # Check for broken snprintf | ||
8509 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
8510 | echo "$as_me:8510: checking whether snprintf correctly terminates long strings" >&5 | ||
8511 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
8512 | if test "$cross_compiling" = yes; then | ||
8513 | { { echo "$as_me:8513: error: cannot run test program while cross compiling" >&5 | ||
8514 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8515 | { (exit 1); exit 1; }; } | ||
8516 | else | ||
8517 | cat >conftest.$ac_ext <<_ACEOF | ||
8518 | #line 8518 "configure" | ||
8519 | #include "confdefs.h" | ||
8520 | |||
8521 | #include <stdio.h> | ||
8522 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
8523 | |||
8524 | _ACEOF | ||
8525 | rm -f conftest$ac_exeext | ||
8526 | if { (eval echo "$as_me:8526: \"$ac_link\"") >&5 | ||
8527 | (eval $ac_link) 2>&5 | ||
8528 | ac_status=$? | ||
8529 | echo "$as_me:8529: \$? = $ac_status" >&5 | ||
8530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8531 | { (eval echo "$as_me:8531: \"$ac_try\"") >&5 | ||
8532 | (eval $ac_try) 2>&5 | ||
8533 | ac_status=$? | ||
8534 | echo "$as_me:8534: \$? = $ac_status" >&5 | ||
8535 | (exit $ac_status); }; }; then | ||
8536 | echo "$as_me:8536: result: yes" >&5 | ||
8537 | echo "${ECHO_T}yes" >&6 | ||
8538 | else | ||
8539 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8540 | echo "$as_me: failed program was:" >&5 | ||
8541 | cat conftest.$ac_ext >&5 | ||
8542 | |||
8543 | echo "$as_me:8543: result: no" >&5 | ||
8544 | echo "${ECHO_T}no" >&6 | ||
8545 | cat >>confdefs.h <<\EOF | ||
8546 | #define BROKEN_SNPRINTF 1 | ||
8547 | EOF | ||
8548 | |||
8549 | { echo "$as_me:8549: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
8550 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
8551 | |||
8552 | fi | ||
8553 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8554 | fi | ||
8555 | fi | ||
8556 | |||
8557 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8558 | echo "$as_me:8558: checking for (overly) strict mkstemp" >&5 | ||
8559 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8560 | if test "$cross_compiling" = yes; then | ||
8561 | |||
8562 | echo "$as_me:8562: result: yes" >&5 | ||
8563 | echo "${ECHO_T}yes" >&6 | ||
8564 | cat >>confdefs.h <<\EOF | ||
8565 | #define HAVE_STRICT_MKSTEMP 1 | ||
8566 | EOF | ||
8567 | |||
8568 | else | ||
8569 | cat >conftest.$ac_ext <<_ACEOF | ||
8570 | #line 8570 "configure" | ||
8571 | #include "confdefs.h" | ||
8572 | |||
8573 | #include <stdlib.h> | ||
8574 | main() { char template[]="conftest.mkstemp-test"; | ||
8575 | if (mkstemp(template) == -1) | ||
8576 | exit(1); | ||
8577 | unlink(template); exit(0); | ||
8578 | } | ||
8579 | |||
8580 | _ACEOF | ||
8581 | rm -f conftest$ac_exeext | ||
8582 | if { (eval echo "$as_me:8582: \"$ac_link\"") >&5 | ||
8583 | (eval $ac_link) 2>&5 | ||
8584 | ac_status=$? | ||
8585 | echo "$as_me:8585: \$? = $ac_status" >&5 | ||
8586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8587 | { (eval echo "$as_me:8587: \"$ac_try\"") >&5 | ||
8588 | (eval $ac_try) 2>&5 | ||
8589 | ac_status=$? | ||
8590 | echo "$as_me:8590: \$? = $ac_status" >&5 | ||
8591 | (exit $ac_status); }; }; then | ||
8592 | |||
8593 | echo "$as_me:8593: result: no" >&5 | ||
8594 | echo "${ECHO_T}no" >&6 | ||
8595 | |||
8596 | else | ||
8597 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8598 | echo "$as_me: failed program was:" >&5 | ||
8599 | cat conftest.$ac_ext >&5 | ||
8600 | |||
8601 | echo "$as_me:8601: result: yes" >&5 | ||
8602 | echo "${ECHO_T}yes" >&6 | ||
8603 | cat >>confdefs.h <<\EOF | ||
8604 | #define HAVE_STRICT_MKSTEMP 1 | ||
8605 | EOF | ||
8606 | |||
8607 | fi | ||
8608 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8609 | fi | ||
8610 | fi | ||
8611 | |||
8612 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
8613 | echo "$as_me:8613: checking if openpty correctly handles controlling tty" >&5 | ||
8614 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
8615 | if test "$cross_compiling" = yes; then | ||
8616 | { { echo "$as_me:8616: error: cannot run test program while cross compiling" >&5 | ||
8617 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8618 | { (exit 1); exit 1; }; } | ||
8619 | else | ||
8620 | cat >conftest.$ac_ext <<_ACEOF | ||
8621 | #line 8621 "configure" | ||
8622 | #include "confdefs.h" | ||
8623 | |||
8624 | #include <stdio.h> | ||
8625 | #include <sys/fcntl.h> | ||
8626 | #include <sys/types.h> | ||
8627 | #include <sys/wait.h> | ||
8628 | |||
8629 | int | ||
8630 | main() | ||
8631 | { | ||
8632 | pid_t pid; | ||
8633 | int fd, ptyfd, ttyfd, status; | ||
8634 | |||
8635 | pid = fork(); | ||
8636 | if (pid < 0) { /* failed */ | ||
8637 | exit(1); | ||
8638 | } else if (pid > 0) { /* parent */ | ||
8639 | waitpid(pid, &status, 0); | ||
8640 | if (WIFEXITED(status)) | ||
8641 | exit(WEXITSTATUS(status)); | ||
8642 | else | ||
8643 | exit(2); | ||
8644 | } else { /* child */ | ||
8645 | close(0); close(1); close(2); | ||
8646 | setsid(); | ||
8647 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
8648 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
8649 | if (fd >= 0) | ||
8650 | exit(3); /* Acquired ctty: broken */ | ||
8651 | else | ||
8652 | exit(0); /* Did not acquire ctty: OK */ | ||
8653 | } | ||
8654 | } | ||
8655 | |||
8656 | _ACEOF | ||
8657 | rm -f conftest$ac_exeext | ||
8658 | if { (eval echo "$as_me:8658: \"$ac_link\"") >&5 | ||
8659 | (eval $ac_link) 2>&5 | ||
8660 | ac_status=$? | ||
8661 | echo "$as_me:8661: \$? = $ac_status" >&5 | ||
8662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8663 | { (eval echo "$as_me:8663: \"$ac_try\"") >&5 | ||
8664 | (eval $ac_try) 2>&5 | ||
8665 | ac_status=$? | ||
8666 | echo "$as_me:8666: \$? = $ac_status" >&5 | ||
8667 | (exit $ac_status); }; }; then | ||
8668 | |||
8669 | echo "$as_me:8669: result: yes" >&5 | ||
8670 | echo "${ECHO_T}yes" >&6 | ||
8671 | |||
8672 | else | ||
8673 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8674 | echo "$as_me: failed program was:" >&5 | ||
8675 | cat conftest.$ac_ext >&5 | ||
8676 | |||
8677 | echo "$as_me:8677: result: no" >&5 | ||
8678 | echo "${ECHO_T}no" >&6 | ||
8679 | cat >>confdefs.h <<\EOF | ||
8680 | #define SSHD_ACQUIRES_CTTY 1 | ||
8681 | EOF | ||
8682 | |||
8683 | fi | ||
8684 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8685 | fi | ||
8686 | fi | ||
8687 | |||
8688 | echo "$as_me:8688: checking whether getpgrp takes no argument" >&5 | ||
8689 | echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6 | ||
8690 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
8691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8692 | else | ||
8693 | # Use it with a single arg. | ||
8694 | cat >conftest.$ac_ext <<_ACEOF | ||
8695 | #line 8695 "configure" | ||
8696 | #include "confdefs.h" | ||
8697 | $ac_includes_default | ||
8698 | int | ||
8699 | main () | ||
8700 | { | ||
8701 | getpgrp (0); | ||
8702 | ; | ||
8703 | return 0; | ||
8704 | } | ||
8705 | _ACEOF | ||
8706 | rm -f conftest.$ac_objext | ||
8707 | if { (eval echo "$as_me:8707: \"$ac_compile\"") >&5 | ||
8708 | (eval $ac_compile) 2>&5 | ||
8709 | ac_status=$? | ||
8710 | echo "$as_me:8710: \$? = $ac_status" >&5 | ||
8711 | (exit $ac_status); } && | ||
8712 | { ac_try='test -s conftest.$ac_objext' | ||
8713 | { (eval echo "$as_me:8713: \"$ac_try\"") >&5 | ||
8714 | (eval $ac_try) 2>&5 | ||
8715 | ac_status=$? | ||
8716 | echo "$as_me:8716: \$? = $ac_status" >&5 | ||
8717 | (exit $ac_status); }; }; then | ||
8718 | ac_func_getpgrp_1=yes | ||
8719 | else | ||
8720 | echo "$as_me: failed program was:" >&5 | ||
8721 | cat conftest.$ac_ext >&5 | ||
8722 | ac_func_getpgrp_1=no | ||
8723 | fi | ||
8724 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8725 | # Use it with no arg. | ||
8726 | cat >conftest.$ac_ext <<_ACEOF | ||
8727 | #line 8727 "configure" | ||
8728 | #include "confdefs.h" | ||
8729 | $ac_includes_default | ||
8730 | int | ||
8731 | main () | ||
8732 | { | ||
8733 | getpgrp (); | ||
8734 | ; | ||
8735 | return 0; | ||
8736 | } | ||
8737 | _ACEOF | ||
8738 | rm -f conftest.$ac_objext | ||
8739 | if { (eval echo "$as_me:8739: \"$ac_compile\"") >&5 | ||
8740 | (eval $ac_compile) 2>&5 | ||
8741 | ac_status=$? | ||
8742 | echo "$as_me:8742: \$? = $ac_status" >&5 | ||
8743 | (exit $ac_status); } && | ||
8744 | { ac_try='test -s conftest.$ac_objext' | ||
8745 | { (eval echo "$as_me:8745: \"$ac_try\"") >&5 | ||
8746 | (eval $ac_try) 2>&5 | ||
8747 | ac_status=$? | ||
8748 | echo "$as_me:8748: \$? = $ac_status" >&5 | ||
8749 | (exit $ac_status); }; }; then | ||
8750 | ac_func_getpgrp_0=yes | ||
8751 | else | ||
8752 | echo "$as_me: failed program was:" >&5 | ||
8753 | cat conftest.$ac_ext >&5 | ||
8754 | ac_func_getpgrp_0=no | ||
8755 | fi | ||
8756 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8757 | # If both static checks agree, we are done. | ||
8758 | case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in | ||
8759 | yes:no) ac_cv_func_getpgrp_void=yes;; | ||
8760 | no:yes) ac_cv_func_getpgrp_void=false;; | ||
8761 | *) if test "$cross_compiling" = yes; then | ||
8762 | { { echo "$as_me:8762: error: cannot check getpgrp if cross compiling" >&5 | ||
8763 | echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;} | ||
8764 | { (exit 1); exit 1; }; } | ||
8765 | else | ||
8766 | cat >conftest.$ac_ext <<_ACEOF | ||
8767 | #line 8767 "configure" | ||
8768 | #include "confdefs.h" | ||
8769 | $ac_includes_default | ||
8770 | |||
8771 | /* | ||
8772 | * If this system has a BSD-style getpgrp(), | ||
8773 | * which takes a pid argument, exit unsuccessfully. | ||
8774 | * | ||
8775 | * Snarfed from Chet Ramey's bash pgrp.c test program | ||
8776 | */ | ||
8777 | |||
8778 | int pid; | ||
8779 | int pg1, pg2, pg3, pg4; | ||
8780 | int ng, np, s, child; | ||
8781 | |||
8782 | int | ||
8783 | main () | ||
8784 | { | ||
8785 | pid = getpid (); | ||
8786 | pg1 = getpgrp (0); | ||
8787 | pg2 = getpgrp (); | ||
8788 | pg3 = getpgrp (pid); | ||
8789 | pg4 = getpgrp (1); | ||
8790 | |||
8791 | /* If all of these values are the same, it's pretty sure that we're | ||
8792 | on a system that ignores getpgrp's first argument. */ | ||
8793 | if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | ||
8794 | exit (0); | ||
8795 | |||
8796 | child = fork (); | ||
8797 | if (child < 0) | ||
8798 | exit(1); | ||
8799 | else if (child == 0) | ||
8800 | { | ||
8801 | np = getpid (); | ||
8802 | /* If this is Sys V, this will not work; pgrp will be set to np | ||
8803 | because setpgrp just changes a pgrp to be the same as the | ||
8804 | pid. */ | ||
8805 | setpgrp (np, pg1); | ||
8806 | ng = getpgrp (0); /* Same result for Sys V and BSD */ | ||
8807 | if (ng == pg1) | ||
8808 | exit (1); | ||
8809 | else | ||
8810 | exit (0); | ||
8811 | } | ||
8812 | else | ||
8813 | { | ||
8814 | wait (&s); | ||
8815 | exit (s>>8); | ||
8816 | } | ||
8817 | } | ||
8818 | |||
8819 | _ACEOF | ||
8820 | rm -f conftest$ac_exeext | ||
8821 | if { (eval echo "$as_me:8821: \"$ac_link\"") >&5 | ||
8822 | (eval $ac_link) 2>&5 | ||
8823 | ac_status=$? | ||
8824 | echo "$as_me:8824: \$? = $ac_status" >&5 | ||
8825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8826 | { (eval echo "$as_me:8826: \"$ac_try\"") >&5 | ||
8827 | (eval $ac_try) 2>&5 | ||
8828 | ac_status=$? | ||
8829 | echo "$as_me:8829: \$? = $ac_status" >&5 | ||
8830 | (exit $ac_status); }; }; then | ||
8831 | ac_cv_func_getpgrp_void=yes | ||
8832 | else | ||
8833 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8834 | echo "$as_me: failed program was:" >&5 | ||
8835 | cat conftest.$ac_ext >&5 | ||
8836 | ac_cv_func_getpgrp_void=no | ||
8837 | fi | ||
8838 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8839 | fi;; | ||
8840 | esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 | ||
8841 | |||
8842 | fi | ||
8843 | echo "$as_me:8843: result: $ac_cv_func_getpgrp_void" >&5 | ||
8844 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8845 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8846 | |||
8847 | cat >>confdefs.h <<\EOF | ||
8848 | #define GETPGRP_VOID 1 | ||
8849 | EOF | ||
8850 | |||
8851 | fi | ||
8852 | |||
8853 | # Check for PAM libs | ||
8854 | PAM_MSG="no" | ||
8855 | |||
8856 | # Check whether --with-pam or --without-pam was given. | ||
8857 | if test "${with_pam+set}" = set; then | ||
8858 | withval="$with_pam" | ||
8859 | |||
8860 | if test "x$withval" != "xno" ; then | ||
8861 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
8862 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
8863 | { { echo "$as_me:8863: error: PAM headers not found" >&5 | ||
8864 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8865 | { (exit 1); exit 1; }; } | ||
8866 | fi | ||
8867 | |||
8868 | echo "$as_me:8868: checking for dlopen in -ldl" >&5 | ||
8869 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8870 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8872 | else | ||
8873 | ac_check_lib_save_LIBS=$LIBS | ||
8874 | LIBS="-ldl $LIBS" | ||
8875 | cat >conftest.$ac_ext <<_ACEOF | ||
8876 | #line 8876 "configure" | ||
8877 | #include "confdefs.h" | ||
8878 | |||
8879 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8880 | #ifdef __cplusplus | ||
8881 | extern "C" | ||
8882 | #endif | ||
8883 | /* We use char because int might match the return type of a gcc2 | ||
8884 | builtin and then its argument prototype would still apply. */ | ||
8885 | char dlopen (); | ||
8886 | int | ||
8887 | main () | ||
8888 | { | ||
8889 | dlopen (); | ||
8890 | ; | ||
8891 | return 0; | ||
8892 | } | ||
8893 | _ACEOF | ||
8894 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8895 | if { (eval echo "$as_me:8895: \"$ac_link\"") >&5 | ||
8896 | (eval $ac_link) 2>&5 | ||
8897 | ac_status=$? | ||
8898 | echo "$as_me:8898: \$? = $ac_status" >&5 | ||
8899 | (exit $ac_status); } && | ||
8900 | { ac_try='test -s conftest$ac_exeext' | ||
8901 | { (eval echo "$as_me:8901: \"$ac_try\"") >&5 | ||
8902 | (eval $ac_try) 2>&5 | ||
8903 | ac_status=$? | ||
8904 | echo "$as_me:8904: \$? = $ac_status" >&5 | ||
8905 | (exit $ac_status); }; }; then | ||
8906 | ac_cv_lib_dl_dlopen=yes | ||
8907 | else | ||
8908 | echo "$as_me: failed program was:" >&5 | ||
8909 | cat conftest.$ac_ext >&5 | ||
8910 | ac_cv_lib_dl_dlopen=no | ||
8911 | fi | ||
8912 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8913 | LIBS=$ac_check_lib_save_LIBS | ||
8914 | fi | ||
8915 | echo "$as_me:8915: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8916 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8917 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8918 | cat >>confdefs.h <<EOF | ||
8919 | #define HAVE_LIBDL 1 | ||
8920 | EOF | ||
8921 | |||
8922 | LIBS="-ldl $LIBS" | ||
8923 | |||
8924 | fi | ||
8925 | |||
8926 | echo "$as_me:8926: checking for pam_set_item in -lpam" >&5 | ||
8927 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8928 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8930 | else | ||
8931 | ac_check_lib_save_LIBS=$LIBS | ||
8932 | LIBS="-lpam $LIBS" | ||
8933 | cat >conftest.$ac_ext <<_ACEOF | ||
8934 | #line 8934 "configure" | ||
8935 | #include "confdefs.h" | ||
8936 | |||
8937 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8938 | #ifdef __cplusplus | ||
8939 | extern "C" | ||
8940 | #endif | ||
8941 | /* We use char because int might match the return type of a gcc2 | ||
8942 | builtin and then its argument prototype would still apply. */ | ||
8943 | char pam_set_item (); | ||
8944 | int | ||
8945 | main () | ||
8946 | { | ||
8947 | pam_set_item (); | ||
8948 | ; | ||
8949 | return 0; | ||
8950 | } | ||
8951 | _ACEOF | ||
8952 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8953 | if { (eval echo "$as_me:8953: \"$ac_link\"") >&5 | ||
8954 | (eval $ac_link) 2>&5 | ||
8955 | ac_status=$? | ||
8956 | echo "$as_me:8956: \$? = $ac_status" >&5 | ||
8957 | (exit $ac_status); } && | ||
8958 | { ac_try='test -s conftest$ac_exeext' | ||
8959 | { (eval echo "$as_me:8959: \"$ac_try\"") >&5 | ||
8960 | (eval $ac_try) 2>&5 | ||
8961 | ac_status=$? | ||
8962 | echo "$as_me:8962: \$? = $ac_status" >&5 | ||
8963 | (exit $ac_status); }; }; then | ||
8964 | ac_cv_lib_pam_pam_set_item=yes | ||
8965 | else | ||
8966 | echo "$as_me: failed program was:" >&5 | ||
8967 | cat conftest.$ac_ext >&5 | ||
8968 | ac_cv_lib_pam_pam_set_item=no | ||
8969 | fi | ||
8970 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8971 | LIBS=$ac_check_lib_save_LIBS | ||
8972 | fi | ||
8973 | echo "$as_me:8973: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8974 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8975 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8976 | cat >>confdefs.h <<EOF | ||
8977 | #define HAVE_LIBPAM 1 | ||
8978 | EOF | ||
8979 | |||
8980 | LIBS="-lpam $LIBS" | ||
8981 | |||
8982 | else | ||
8983 | { { echo "$as_me:8983: error: *** libpam missing" >&5 | ||
8984 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8985 | { (exit 1); exit 1; }; } | ||
8986 | fi | ||
8987 | |||
8988 | for ac_func in pam_getenvlist | ||
8989 | do | ||
8990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8991 | echo "$as_me:8991: checking for $ac_func" >&5 | ||
8992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8993 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8995 | else | ||
8996 | cat >conftest.$ac_ext <<_ACEOF | ||
8997 | #line 8997 "configure" | ||
8998 | #include "confdefs.h" | ||
8999 | /* System header to define __stub macros and hopefully few prototypes, | ||
9000 | which can conflict with char $ac_func (); below. */ | ||
9001 | #include <assert.h> | ||
9002 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9003 | #ifdef __cplusplus | ||
9004 | extern "C" | ||
9005 | #endif | ||
9006 | /* We use char because int might match the return type of a gcc2 | ||
9007 | builtin and then its argument prototype would still apply. */ | ||
9008 | char $ac_func (); | ||
9009 | char (*f) (); | ||
9010 | |||
9011 | int | ||
9012 | main () | ||
9013 | { | ||
9014 | /* The GNU C library defines this for functions which it implements | ||
9015 | to always fail with ENOSYS. Some functions are actually named | ||
9016 | something starting with __ and the normal name is an alias. */ | ||
9017 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9018 | choke me | ||
9019 | #else | ||
9020 | f = $ac_func; | ||
9021 | #endif | ||
9022 | |||
9023 | ; | ||
9024 | return 0; | ||
9025 | } | ||
9026 | _ACEOF | ||
9027 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9028 | if { (eval echo "$as_me:9028: \"$ac_link\"") >&5 | ||
9029 | (eval $ac_link) 2>&5 | ||
9030 | ac_status=$? | ||
9031 | echo "$as_me:9031: \$? = $ac_status" >&5 | ||
9032 | (exit $ac_status); } && | ||
9033 | { ac_try='test -s conftest$ac_exeext' | ||
9034 | { (eval echo "$as_me:9034: \"$ac_try\"") >&5 | ||
9035 | (eval $ac_try) 2>&5 | ||
9036 | ac_status=$? | ||
9037 | echo "$as_me:9037: \$? = $ac_status" >&5 | ||
9038 | (exit $ac_status); }; }; then | ||
9039 | eval "$as_ac_var=yes" | ||
9040 | else | ||
9041 | echo "$as_me: failed program was:" >&5 | ||
9042 | cat conftest.$ac_ext >&5 | ||
9043 | eval "$as_ac_var=no" | ||
9044 | fi | ||
9045 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9046 | fi | ||
9047 | echo "$as_me:9047: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9048 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9049 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9050 | cat >>confdefs.h <<EOF | ||
9051 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9052 | EOF | ||
9053 | |||
9054 | fi | ||
9055 | done | ||
9056 | |||
9057 | for ac_func in pam_putenv | ||
9058 | do | ||
9059 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9060 | echo "$as_me:9060: checking for $ac_func" >&5 | ||
9061 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9062 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9064 | else | ||
9065 | cat >conftest.$ac_ext <<_ACEOF | ||
9066 | #line 9066 "configure" | ||
9067 | #include "confdefs.h" | ||
9068 | /* System header to define __stub macros and hopefully few prototypes, | ||
9069 | which can conflict with char $ac_func (); below. */ | ||
9070 | #include <assert.h> | ||
9071 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9072 | #ifdef __cplusplus | ||
9073 | extern "C" | ||
9074 | #endif | ||
9075 | /* We use char because int might match the return type of a gcc2 | ||
9076 | builtin and then its argument prototype would still apply. */ | ||
9077 | char $ac_func (); | ||
9078 | char (*f) (); | ||
9079 | |||
9080 | int | ||
9081 | main () | ||
9082 | { | ||
9083 | /* The GNU C library defines this for functions which it implements | ||
9084 | to always fail with ENOSYS. Some functions are actually named | ||
9085 | something starting with __ and the normal name is an alias. */ | ||
9086 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9087 | choke me | ||
9088 | #else | ||
9089 | f = $ac_func; | ||
9090 | #endif | ||
9091 | |||
9092 | ; | ||
9093 | return 0; | ||
9094 | } | ||
9095 | _ACEOF | ||
9096 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9097 | if { (eval echo "$as_me:9097: \"$ac_link\"") >&5 | ||
9098 | (eval $ac_link) 2>&5 | ||
9099 | ac_status=$? | ||
9100 | echo "$as_me:9100: \$? = $ac_status" >&5 | ||
9101 | (exit $ac_status); } && | ||
9102 | { ac_try='test -s conftest$ac_exeext' | ||
9103 | { (eval echo "$as_me:9103: \"$ac_try\"") >&5 | ||
9104 | (eval $ac_try) 2>&5 | ||
9105 | ac_status=$? | ||
9106 | echo "$as_me:9106: \$? = $ac_status" >&5 | ||
9107 | (exit $ac_status); }; }; then | ||
9108 | eval "$as_ac_var=yes" | ||
9109 | else | ||
9110 | echo "$as_me: failed program was:" >&5 | ||
9111 | cat conftest.$ac_ext >&5 | ||
9112 | eval "$as_ac_var=no" | ||
9113 | fi | ||
9114 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9115 | fi | ||
9116 | echo "$as_me:9116: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9117 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9118 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9119 | cat >>confdefs.h <<EOF | ||
9120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9121 | EOF | ||
9122 | |||
9123 | fi | ||
9124 | done | ||
9125 | |||
9126 | PAM_MSG="yes" | ||
9127 | |||
9128 | cat >>confdefs.h <<\EOF | ||
9129 | #define USE_PAM 1 | ||
9130 | EOF | ||
9131 | |||
9132 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9133 | LIBPAM="-lpam -ldl" | ||
9134 | else | ||
9135 | LIBPAM="-lpam" | ||
9136 | fi | ||
9137 | |||
9138 | fi | ||
9139 | |||
9140 | fi; | ||
9141 | |||
9142 | # Check for older PAM | ||
9143 | if test "x$PAM_MSG" = "xyes" ; then | ||
9144 | # Check PAM strerror arguments (old PAM) | ||
9145 | echo "$as_me:9145: checking whether pam_strerror takes only one argument" >&5 | ||
9146 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
9147 | cat >conftest.$ac_ext <<_ACEOF | ||
9148 | #line 9148 "configure" | ||
9149 | #include "confdefs.h" | ||
9150 | |||
9151 | #include <stdlib.h> | ||
9152 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
9153 | #include <security/pam_appl.h> | ||
9154 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
9155 | #include <pam/pam_appl.h> | ||
9156 | #endif | ||
9157 | |||
9158 | int | ||
9159 | main () | ||
9160 | { | ||
9161 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
9162 | ; | ||
9163 | return 0; | ||
9164 | } | ||
9165 | _ACEOF | ||
9166 | rm -f conftest.$ac_objext | ||
9167 | if { (eval echo "$as_me:9167: \"$ac_compile\"") >&5 | ||
9168 | (eval $ac_compile) 2>&5 | ||
9169 | ac_status=$? | ||
9170 | echo "$as_me:9170: \$? = $ac_status" >&5 | ||
9171 | (exit $ac_status); } && | ||
9172 | { ac_try='test -s conftest.$ac_objext' | ||
9173 | { (eval echo "$as_me:9173: \"$ac_try\"") >&5 | ||
9174 | (eval $ac_try) 2>&5 | ||
9175 | ac_status=$? | ||
9176 | echo "$as_me:9176: \$? = $ac_status" >&5 | ||
9177 | (exit $ac_status); }; }; then | ||
9178 | echo "$as_me:9178: result: no" >&5 | ||
9179 | echo "${ECHO_T}no" >&6 | ||
9180 | else | ||
9181 | echo "$as_me: failed program was:" >&5 | ||
9182 | cat conftest.$ac_ext >&5 | ||
9183 | |||
9184 | cat >>confdefs.h <<\EOF | ||
9185 | #define HAVE_OLD_PAM 1 | ||
9186 | EOF | ||
9187 | |||
9188 | echo "$as_me:9188: result: yes" >&5 | ||
9189 | echo "${ECHO_T}yes" >&6 | ||
9190 | PAM_MSG="yes (old library)" | ||
9191 | |||
9192 | fi | ||
9193 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
9194 | fi | ||
9195 | |||
9196 | # Search for OpenSSL | ||
9197 | saved_CPPFLAGS="$CPPFLAGS" | ||
9198 | saved_LDFLAGS="$LDFLAGS" | ||
9199 | |||
9200 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
9201 | if test "${with_ssl_dir+set}" = set; then | ||
9202 | withval="$with_ssl_dir" | ||
9203 | |||
9204 | if test "x$withval" != "xno" ; then | ||
9205 | if test -d "$withval/lib"; then | ||
9206 | if test -n "${need_dash_r}"; then | ||
9207 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9208 | else | ||
9209 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9210 | fi | ||
9211 | else | ||
9212 | if test -n "${need_dash_r}"; then | ||
9213 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9214 | else | ||
9215 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9216 | fi | ||
9217 | fi | ||
9218 | if test -d "$withval/include"; then | ||
9219 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9220 | else | ||
9221 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9222 | fi | ||
9223 | fi | ||
9224 | |||
9225 | fi; | ||
9226 | LIBS="-lcrypto $LIBS" | ||
9227 | cat >conftest.$ac_ext <<_ACEOF | ||
9228 | #line 9228 "configure" | ||
9229 | #include "confdefs.h" | ||
9230 | |||
9231 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9232 | #ifdef __cplusplus | ||
9233 | extern "C" | ||
9234 | #endif | ||
9235 | /* We use char because int might match the return type of a gcc2 | ||
9236 | builtin and then its argument prototype would still apply. */ | ||
9237 | char RAND_add (); | ||
9238 | int | ||
9239 | main () | ||
9240 | { | ||
9241 | RAND_add (); | ||
9242 | ; | ||
9243 | return 0; | ||
9244 | } | ||
9245 | _ACEOF | ||
9246 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9247 | if { (eval echo "$as_me:9247: \"$ac_link\"") >&5 | ||
9248 | (eval $ac_link) 2>&5 | ||
9249 | ac_status=$? | ||
9250 | echo "$as_me:9250: \$? = $ac_status" >&5 | ||
9251 | (exit $ac_status); } && | ||
9252 | { ac_try='test -s conftest$ac_exeext' | ||
9253 | { (eval echo "$as_me:9253: \"$ac_try\"") >&5 | ||
9254 | (eval $ac_try) 2>&5 | ||
9255 | ac_status=$? | ||
9256 | echo "$as_me:9256: \$? = $ac_status" >&5 | ||
9257 | (exit $ac_status); }; }; then | ||
9258 | cat >>confdefs.h <<\EOF | ||
9259 | #define HAVE_OPENSSL 1 | ||
9260 | EOF | ||
9261 | |||
9262 | else | ||
9263 | echo "$as_me: failed program was:" >&5 | ||
9264 | cat conftest.$ac_ext >&5 | ||
9265 | |||
9266 | if test -n "${need_dash_r}"; then | ||
9267 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
9268 | else | ||
9269 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
9270 | fi | ||
9271 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
9272 | cat >conftest.$ac_ext <<_ACEOF | ||
9273 | #line 9273 "configure" | ||
9274 | #include "confdefs.h" | ||
9275 | |||
9276 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9277 | #ifdef __cplusplus | ||
9278 | extern "C" | ||
9279 | #endif | ||
9280 | /* We use char because int might match the return type of a gcc2 | ||
9281 | builtin and then its argument prototype would still apply. */ | ||
9282 | char RAND_add (); | ||
9283 | int | ||
9284 | main () | ||
9285 | { | ||
9286 | RAND_add (); | ||
9287 | ; | ||
9288 | return 0; | ||
9289 | } | ||
9290 | _ACEOF | ||
9291 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9292 | if { (eval echo "$as_me:9292: \"$ac_link\"") >&5 | ||
9293 | (eval $ac_link) 2>&5 | ||
9294 | ac_status=$? | ||
9295 | echo "$as_me:9295: \$? = $ac_status" >&5 | ||
9296 | (exit $ac_status); } && | ||
9297 | { ac_try='test -s conftest$ac_exeext' | ||
9298 | { (eval echo "$as_me:9298: \"$ac_try\"") >&5 | ||
9299 | (eval $ac_try) 2>&5 | ||
9300 | ac_status=$? | ||
9301 | echo "$as_me:9301: \$? = $ac_status" >&5 | ||
9302 | (exit $ac_status); }; }; then | ||
9303 | cat >>confdefs.h <<\EOF | ||
9304 | #define HAVE_OPENSSL 1 | ||
9305 | EOF | ||
9306 | |||
9307 | else | ||
9308 | echo "$as_me: failed program was:" >&5 | ||
9309 | cat conftest.$ac_ext >&5 | ||
9310 | |||
9311 | { { echo "$as_me:9311: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
9312 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
9313 | { (exit 1); exit 1; }; } | ||
9314 | |||
9315 | fi | ||
9316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9317 | |||
9318 | fi | ||
9319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9320 | |||
9321 | # Determine OpenSSL header version | ||
9322 | echo "$as_me:9322: checking OpenSSL header version" >&5 | ||
9323 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
9324 | if test "$cross_compiling" = yes; then | ||
9325 | { { echo "$as_me:9325: error: cannot run test program while cross compiling" >&5 | ||
9326 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9327 | { (exit 1); exit 1; }; } | ||
9328 | else | ||
9329 | cat >conftest.$ac_ext <<_ACEOF | ||
9330 | #line 9330 "configure" | ||
9331 | #include "confdefs.h" | ||
9332 | |||
9333 | #include <stdio.h> | ||
9334 | #include <string.h> | ||
9335 | #include <openssl/opensslv.h> | ||
9336 | #define DATA "conftest.sslincver" | ||
9337 | int main(void) { | ||
9338 | FILE *fd; | ||
9339 | int rc; | ||
9340 | |||
9341 | fd = fopen(DATA,"w"); | ||
9342 | if(fd == NULL) | ||
9343 | exit(1); | ||
9344 | |||
9345 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
9346 | exit(1); | ||
9347 | |||
9348 | exit(0); | ||
9349 | } | ||
9350 | |||
9351 | _ACEOF | ||
9352 | rm -f conftest$ac_exeext | ||
9353 | if { (eval echo "$as_me:9353: \"$ac_link\"") >&5 | ||
9354 | (eval $ac_link) 2>&5 | ||
9355 | ac_status=$? | ||
9356 | echo "$as_me:9356: \$? = $ac_status" >&5 | ||
9357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9358 | { (eval echo "$as_me:9358: \"$ac_try\"") >&5 | ||
9359 | (eval $ac_try) 2>&5 | ||
9360 | ac_status=$? | ||
9361 | echo "$as_me:9361: \$? = $ac_status" >&5 | ||
9362 | (exit $ac_status); }; }; then | ||
9363 | |||
9364 | ssl_header_ver=`cat conftest.sslincver` | ||
9365 | echo "$as_me:9365: result: $ssl_header_ver" >&5 | ||
9366 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
9367 | |||
9368 | else | ||
9369 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9370 | echo "$as_me: failed program was:" >&5 | ||
9371 | cat conftest.$ac_ext >&5 | ||
9372 | |||
9373 | echo "$as_me:9373: result: not found" >&5 | ||
9374 | echo "${ECHO_T}not found" >&6 | ||
9375 | { { echo "$as_me:9375: error: OpenSSL version header not found." >&5 | ||
9376 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
9377 | { (exit 1); exit 1; }; } | ||
9378 | |||
9379 | fi | ||
9380 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9381 | fi | ||
9382 | |||
9383 | # Determine OpenSSL library version | ||
9384 | echo "$as_me:9384: checking OpenSSL library version" >&5 | ||
9385 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
9386 | if test "$cross_compiling" = yes; then | ||
9387 | { { echo "$as_me:9387: error: cannot run test program while cross compiling" >&5 | ||
9388 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9389 | { (exit 1); exit 1; }; } | ||
9390 | else | ||
9391 | cat >conftest.$ac_ext <<_ACEOF | ||
9392 | #line 9392 "configure" | ||
9393 | #include "confdefs.h" | ||
9394 | |||
9395 | #include <stdio.h> | ||
9396 | #include <string.h> | ||
9397 | #include <openssl/opensslv.h> | ||
9398 | #include <openssl/crypto.h> | ||
9399 | #define DATA "conftest.ssllibver" | ||
9400 | int main(void) { | ||
9401 | FILE *fd; | ||
9402 | int rc; | ||
9403 | |||
9404 | fd = fopen(DATA,"w"); | ||
9405 | if(fd == NULL) | ||
9406 | exit(1); | ||
9407 | |||
9408 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
9409 | exit(1); | ||
9410 | |||
9411 | exit(0); | ||
9412 | } | ||
9413 | |||
9414 | _ACEOF | ||
9415 | rm -f conftest$ac_exeext | ||
9416 | if { (eval echo "$as_me:9416: \"$ac_link\"") >&5 | ||
9417 | (eval $ac_link) 2>&5 | ||
9418 | ac_status=$? | ||
9419 | echo "$as_me:9419: \$? = $ac_status" >&5 | ||
9420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9421 | { (eval echo "$as_me:9421: \"$ac_try\"") >&5 | ||
9422 | (eval $ac_try) 2>&5 | ||
9423 | ac_status=$? | ||
9424 | echo "$as_me:9424: \$? = $ac_status" >&5 | ||
9425 | (exit $ac_status); }; }; then | ||
9426 | |||
9427 | ssl_library_ver=`cat conftest.ssllibver` | ||
9428 | echo "$as_me:9428: result: $ssl_library_ver" >&5 | ||
9429 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
9430 | |||
9431 | else | ||
9432 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9433 | echo "$as_me: failed program was:" >&5 | ||
9434 | cat conftest.$ac_ext >&5 | ||
9435 | |||
9436 | echo "$as_me:9436: result: not found" >&5 | ||
9437 | echo "${ECHO_T}not found" >&6 | ||
9438 | { { echo "$as_me:9438: error: OpenSSL library not found." >&5 | ||
9439 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
9440 | { (exit 1); exit 1; }; } | ||
9441 | |||
9442 | fi | ||
9443 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9444 | fi | ||
9445 | |||
9446 | # Sanity check OpenSSL headers | ||
9447 | echo "$as_me:9447: checking whether OpenSSL's headers match the library" >&5 | ||
9448 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
9449 | if test "$cross_compiling" = yes; then | ||
9450 | { { echo "$as_me:9450: error: cannot run test program while cross compiling" >&5 | ||
9451 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9452 | { (exit 1); exit 1; }; } | ||
9453 | else | ||
9454 | cat >conftest.$ac_ext <<_ACEOF | ||
9455 | #line 9455 "configure" | ||
9456 | #include "confdefs.h" | ||
9457 | |||
9458 | #include <string.h> | ||
9459 | #include <openssl/opensslv.h> | ||
9460 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
9461 | |||
9462 | _ACEOF | ||
9463 | rm -f conftest$ac_exeext | ||
9464 | if { (eval echo "$as_me:9464: \"$ac_link\"") >&5 | ||
9465 | (eval $ac_link) 2>&5 | ||
9466 | ac_status=$? | ||
9467 | echo "$as_me:9467: \$? = $ac_status" >&5 | ||
9468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9469 | { (eval echo "$as_me:9469: \"$ac_try\"") >&5 | ||
9470 | (eval $ac_try) 2>&5 | ||
9471 | ac_status=$? | ||
9472 | echo "$as_me:9472: \$? = $ac_status" >&5 | ||
9473 | (exit $ac_status); }; }; then | ||
9474 | |||
9475 | echo "$as_me:9475: result: yes" >&5 | ||
9476 | echo "${ECHO_T}yes" >&6 | ||
9477 | |||
9478 | else | ||
9479 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9480 | echo "$as_me: failed program was:" >&5 | ||
9481 | cat conftest.$ac_ext >&5 | ||
9482 | |||
9483 | echo "$as_me:9483: result: no" >&5 | ||
9484 | echo "${ECHO_T}no" >&6 | ||
9485 | { { echo "$as_me:9485: error: Your OpenSSL headers do not match your library. | ||
9486 | Check config.log for details. | ||
9487 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
9488 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
9489 | Check config.log for details. | ||
9490 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
9491 | { (exit 1); exit 1; }; } | ||
9492 | |||
9493 | fi | ||
9494 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9495 | fi | ||
9496 | |||
9497 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
9498 | # because the system crypt() is more featureful. | ||
9499 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
9500 | |||
9501 | echo "$as_me:9501: checking for crypt in -lcrypt" >&5 | ||
9502 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9503 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9505 | else | ||
9506 | ac_check_lib_save_LIBS=$LIBS | ||
9507 | LIBS="-lcrypt $LIBS" | ||
9508 | cat >conftest.$ac_ext <<_ACEOF | ||
9509 | #line 9509 "configure" | ||
9510 | #include "confdefs.h" | ||
9511 | |||
9512 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9513 | #ifdef __cplusplus | ||
9514 | extern "C" | ||
9515 | #endif | ||
9516 | /* We use char because int might match the return type of a gcc2 | ||
9517 | builtin and then its argument prototype would still apply. */ | ||
9518 | char crypt (); | ||
9519 | int | ||
9520 | main () | ||
9521 | { | ||
9522 | crypt (); | ||
9523 | ; | ||
9524 | return 0; | ||
9525 | } | ||
9526 | _ACEOF | ||
9527 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9528 | if { (eval echo "$as_me:9528: \"$ac_link\"") >&5 | ||
9529 | (eval $ac_link) 2>&5 | ||
9530 | ac_status=$? | ||
9531 | echo "$as_me:9531: \$? = $ac_status" >&5 | ||
9532 | (exit $ac_status); } && | ||
9533 | { ac_try='test -s conftest$ac_exeext' | ||
9534 | { (eval echo "$as_me:9534: \"$ac_try\"") >&5 | ||
9535 | (eval $ac_try) 2>&5 | ||
9536 | ac_status=$? | ||
9537 | echo "$as_me:9537: \$? = $ac_status" >&5 | ||
9538 | (exit $ac_status); }; }; then | ||
9539 | ac_cv_lib_crypt_crypt=yes | ||
9540 | else | ||
9541 | echo "$as_me: failed program was:" >&5 | ||
9542 | cat conftest.$ac_ext >&5 | ||
9543 | ac_cv_lib_crypt_crypt=no | ||
9544 | fi | ||
9545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9546 | LIBS=$ac_check_lib_save_LIBS | ||
9547 | fi | ||
9548 | echo "$as_me:9548: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9549 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9550 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9551 | cat >>confdefs.h <<EOF | ||
9552 | #define HAVE_LIBCRYPT 1 | ||
9553 | EOF | ||
9554 | |||
9555 | LIBS="-lcrypt $LIBS" | ||
9556 | |||
9557 | fi | ||
9558 | |||
9559 | fi | ||
9560 | |||
9561 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
9562 | # version in OpenSSL. | ||
9563 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
9564 | echo "$as_me:9564: checking for crypt in -lcrypt" >&5 | ||
9565 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9566 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9568 | else | ||
9569 | ac_check_lib_save_LIBS=$LIBS | ||
9570 | LIBS="-lcrypt $LIBS" | ||
9571 | cat >conftest.$ac_ext <<_ACEOF | ||
9572 | #line 9572 "configure" | ||
9573 | #include "confdefs.h" | ||
9574 | |||
9575 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9576 | #ifdef __cplusplus | ||
9577 | extern "C" | ||
9578 | #endif | ||
9579 | /* We use char because int might match the return type of a gcc2 | ||
9580 | builtin and then its argument prototype would still apply. */ | ||
9581 | char crypt (); | ||
9582 | int | ||
9583 | main () | ||
9584 | { | ||
9585 | crypt (); | ||
9586 | ; | ||
9587 | return 0; | ||
9588 | } | ||
9589 | _ACEOF | ||
9590 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9591 | if { (eval echo "$as_me:9591: \"$ac_link\"") >&5 | ||
9592 | (eval $ac_link) 2>&5 | ||
9593 | ac_status=$? | ||
9594 | echo "$as_me:9594: \$? = $ac_status" >&5 | ||
9595 | (exit $ac_status); } && | ||
9596 | { ac_try='test -s conftest$ac_exeext' | ||
9597 | { (eval echo "$as_me:9597: \"$ac_try\"") >&5 | ||
9598 | (eval $ac_try) 2>&5 | ||
9599 | ac_status=$? | ||
9600 | echo "$as_me:9600: \$? = $ac_status" >&5 | ||
9601 | (exit $ac_status); }; }; then | ||
9602 | ac_cv_lib_crypt_crypt=yes | ||
9603 | else | ||
9604 | echo "$as_me: failed program was:" >&5 | ||
9605 | cat conftest.$ac_ext >&5 | ||
9606 | ac_cv_lib_crypt_crypt=no | ||
9607 | fi | ||
9608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9609 | LIBS=$ac_check_lib_save_LIBS | ||
9610 | fi | ||
9611 | echo "$as_me:9611: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9612 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9613 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9614 | LIBS="$LIBS -lcrypt" | ||
9615 | fi | ||
9616 | |||
9617 | fi | ||
9618 | |||
9619 | ### Configure cryptographic random number support | ||
9620 | |||
9621 | # Check wheter OpenSSL seeds itself | ||
9622 | echo "$as_me:9622: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
9623 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
9624 | if test "$cross_compiling" = yes; then | ||
9625 | { { echo "$as_me:9625: error: cannot run test program while cross compiling" >&5 | ||
9626 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9627 | { (exit 1); exit 1; }; } | ||
9628 | else | ||
9629 | cat >conftest.$ac_ext <<_ACEOF | ||
9630 | #line 9630 "configure" | ||
9631 | #include "confdefs.h" | ||
9632 | |||
9633 | #include <string.h> | ||
9634 | #include <openssl/rand.h> | ||
9635 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
9636 | |||
9637 | _ACEOF | ||
9638 | rm -f conftest$ac_exeext | ||
9639 | if { (eval echo "$as_me:9639: \"$ac_link\"") >&5 | ||
9640 | (eval $ac_link) 2>&5 | ||
9641 | ac_status=$? | ||
9642 | echo "$as_me:9642: \$? = $ac_status" >&5 | ||
9643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9644 | { (eval echo "$as_me:9644: \"$ac_try\"") >&5 | ||
9645 | (eval $ac_try) 2>&5 | ||
9646 | ac_status=$? | ||
9647 | echo "$as_me:9647: \$? = $ac_status" >&5 | ||
9648 | (exit $ac_status); }; }; then | ||
9649 | |||
9650 | OPENSSL_SEEDS_ITSELF=yes | ||
9651 | echo "$as_me:9651: result: yes" >&5 | ||
9652 | echo "${ECHO_T}yes" >&6 | ||
9653 | |||
9654 | else | ||
9655 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9656 | echo "$as_me: failed program was:" >&5 | ||
9657 | cat conftest.$ac_ext >&5 | ||
9658 | |||
9659 | echo "$as_me:9659: result: no" >&5 | ||
9660 | echo "${ECHO_T}no" >&6 | ||
9661 | # Default to use of the rand helper if OpenSSL doesn't | ||
9662 | # seed itself | ||
9663 | USE_RAND_HELPER=yes | ||
9664 | |||
9665 | fi | ||
9666 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9667 | fi | ||
9668 | |||
9669 | # Do we want to force the use of the rand helper? | ||
9670 | |||
9671 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
9672 | if test "${with_rand_helper+set}" = set; then | ||
9673 | withval="$with_rand_helper" | ||
9674 | |||
9675 | if test "x$withval" = "xno" ; then | ||
9676 | # Force use of OpenSSL's internal RNG, even if | ||
9677 | # the previous test showed it to be unseeded. | ||
9678 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
9679 | { echo "$as_me:9679: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
9680 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
9681 | OPENSSL_SEEDS_ITSELF=yes | ||
9682 | USE_RAND_HELPER="" | ||
9683 | fi | ||
9684 | else | ||
9685 | USE_RAND_HELPER=yes | ||
9686 | fi | ||
9687 | |||
9688 | fi; | ||
9689 | |||
9690 | # Which randomness source do we use? | ||
9691 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
9692 | # OpenSSL only | ||
9693 | cat >>confdefs.h <<\EOF | ||
9694 | #define OPENSSL_PRNG_ONLY 1 | ||
9695 | EOF | ||
9696 | |||
9697 | RAND_MSG="OpenSSL internal ONLY" | ||
9698 | INSTALL_SSH_RAND_HELPER="" | ||
9699 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
9700 | # install rand helper | ||
9701 | RAND_MSG="ssh-rand-helper" | ||
9702 | INSTALL_SSH_RAND_HELPER="yes" | ||
9703 | fi | ||
9704 | |||
9705 | ### Configuration of ssh-rand-helper | ||
9706 | |||
9707 | # PRNGD TCP socket | ||
9708 | |||
9709 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
9710 | if test "${with_prngd_port+set}" = set; then | ||
9711 | withval="$with_prngd_port" | ||
9712 | |||
9713 | case "$withval" in | ||
9714 | no) | ||
9715 | withval="" | ||
9716 | ;; | ||
9717 | [0-9]*) | ||
9718 | ;; | ||
9719 | *) | ||
9720 | { { echo "$as_me:9720: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
9721 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
9722 | { (exit 1); exit 1; }; } | ||
9723 | ;; | ||
9724 | esac | ||
9725 | if test ! -z "$withval" ; then | ||
9726 | PRNGD_PORT="$withval" | ||
9727 | cat >>confdefs.h <<EOF | ||
9728 | #define PRNGD_PORT $PRNGD_PORT | ||
9729 | EOF | ||
9730 | |||
9731 | fi | ||
9732 | |||
9733 | fi; | ||
9734 | |||
9735 | # PRNGD Unix domain socket | ||
9736 | |||
9737 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9738 | if test "${with_prngd_socket+set}" = set; then | ||
9739 | withval="$with_prngd_socket" | ||
9740 | |||
9741 | case "$withval" in | ||
9742 | yes) | ||
9743 | withval="/var/run/egd-pool" | ||
9744 | ;; | ||
9745 | no) | ||
9746 | withval="" | ||
9747 | ;; | ||
9748 | /*) | ||
9749 | ;; | ||
9750 | *) | ||
9751 | { { echo "$as_me:9751: error: You must specify an absolute path to the entropy socket" >&5 | ||
9752 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9753 | { (exit 1); exit 1; }; } | ||
9754 | ;; | ||
9755 | esac | ||
9756 | |||
9757 | if test ! -z "$withval" ; then | ||
9758 | if test ! -z "$PRNGD_PORT" ; then | ||
9759 | { { echo "$as_me:9759: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9760 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9761 | { (exit 1); exit 1; }; } | ||
9762 | fi | ||
9763 | if test ! -r "$withval" ; then | ||
9764 | { echo "$as_me:9764: WARNING: Entropy socket is not readable" >&5 | ||
9765 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9766 | fi | ||
9767 | PRNGD_SOCKET="$withval" | ||
9768 | cat >>confdefs.h <<EOF | ||
9769 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9770 | EOF | ||
9771 | |||
9772 | fi | ||
9773 | |||
9774 | else | ||
9775 | |||
9776 | # Check for existing socket only if we don't have a random device already | ||
9777 | if test "$USE_RAND_HELPER" = yes ; then | ||
9778 | echo "$as_me:9778: checking for PRNGD/EGD socket" >&5 | ||
9779 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9780 | # Insert other locations here | ||
9781 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9782 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9783 | PRNGD_SOCKET="$sock" | ||
9784 | cat >>confdefs.h <<EOF | ||
9785 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9786 | EOF | ||
9787 | |||
9788 | break; | ||
9789 | fi | ||
9790 | done | ||
9791 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9792 | echo "$as_me:9792: result: $PRNGD_SOCKET" >&5 | ||
9793 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9794 | else | ||
9795 | echo "$as_me:9795: result: not found" >&5 | ||
9796 | echo "${ECHO_T}not found" >&6 | ||
9797 | fi | ||
9798 | fi | ||
9799 | |||
9800 | fi; | ||
9801 | |||
9802 | # Change default command timeout for hashing entropy source | ||
9803 | entropy_timeout=200 | ||
9804 | |||
9805 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9806 | if test "${with_entropy_timeout+set}" = set; then | ||
9807 | withval="$with_entropy_timeout" | ||
9808 | |||
9809 | if test "x$withval" != "xno" ; then | ||
9810 | entropy_timeout=$withval | ||
9811 | fi | ||
9812 | |||
9813 | fi; | ||
9814 | cat >>confdefs.h <<EOF | ||
9815 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9816 | EOF | ||
9817 | |||
9818 | SSH_PRIVSEP_USER=sshd | ||
9819 | |||
9820 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9821 | if test "${with_privsep_user+set}" = set; then | ||
9822 | withval="$with_privsep_user" | ||
9823 | |||
9824 | if test -n "$withval"; then | ||
9825 | SSH_PRIVSEP_USER=$withval | ||
9826 | fi | ||
9827 | |||
9828 | fi; | ||
9829 | cat >>confdefs.h <<EOF | ||
9830 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9831 | EOF | ||
9832 | |||
9833 | # We do this little dance with the search path to insure | ||
9834 | # that programs that we select for use by installed programs | ||
9835 | # (which may be run by the super-user) come from trusted | ||
9836 | # locations before they come from the user's private area. | ||
9837 | # This should help avoid accidentally configuring some | ||
9838 | # random version of a program in someone's personal bin. | ||
9839 | |||
9840 | OPATH=$PATH | ||
9841 | PATH=/bin:/usr/bin | ||
9842 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9843 | test -d /sbin && PATH=$PATH:/sbin | ||
9844 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9845 | PATH=$PATH:/etc:$OPATH | ||
9846 | |||
9847 | # These programs are used by the command hashing source to gather entropy | ||
9848 | |||
9849 | # Extract the first word of "ls", so it can be a program name with args. | ||
9850 | set dummy ls; ac_word=$2 | ||
9851 | echo "$as_me:9851: checking for $ac_word" >&5 | ||
9852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9853 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9855 | else | ||
9856 | case $PROG_LS in | ||
9857 | [\\/]* | ?:[\\/]*) | ||
9858 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9859 | ;; | ||
9860 | *) | ||
9861 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9862 | ac_dummy="$PATH" | ||
9863 | for ac_dir in $ac_dummy; do | ||
9864 | IFS=$ac_save_IFS | ||
9865 | test -z "$ac_dir" && ac_dir=. | ||
9866 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9867 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
9868 | echo "$as_me:9868: found $ac_dir/$ac_word" >&5 | ||
9869 | break | ||
9870 | fi | ||
9871 | done | ||
9872 | |||
9873 | ;; | ||
9874 | esac | ||
9875 | fi | ||
9876 | PROG_LS=$ac_cv_path_PROG_LS | ||
9877 | |||
9878 | if test -n "$PROG_LS"; then | ||
9879 | echo "$as_me:9879: result: $PROG_LS" >&5 | ||
9880 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9881 | else | ||
9882 | echo "$as_me:9882: result: no" >&5 | ||
9883 | echo "${ECHO_T}no" >&6 | ||
9884 | fi | ||
9885 | |||
9886 | if test -z "$PROG_LS" ; then | ||
9887 | PROG_LS="undef" | ||
9888 | fi | ||
9889 | |||
9890 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9891 | set dummy netstat; ac_word=$2 | ||
9892 | echo "$as_me:9892: checking for $ac_word" >&5 | ||
9893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9894 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9896 | else | ||
9897 | case $PROG_NETSTAT in | ||
9898 | [\\/]* | ?:[\\/]*) | ||
9899 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9900 | ;; | ||
9901 | *) | ||
9902 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9903 | ac_dummy="$PATH" | ||
9904 | for ac_dir in $ac_dummy; do | ||
9905 | IFS=$ac_save_IFS | ||
9906 | test -z "$ac_dir" && ac_dir=. | ||
9907 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9908 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
9909 | echo "$as_me:9909: found $ac_dir/$ac_word" >&5 | ||
9910 | break | ||
9911 | fi | ||
9912 | done | ||
9913 | |||
9914 | ;; | ||
9915 | esac | ||
9916 | fi | ||
9917 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9918 | |||
9919 | if test -n "$PROG_NETSTAT"; then | ||
9920 | echo "$as_me:9920: result: $PROG_NETSTAT" >&5 | ||
9921 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9922 | else | ||
9923 | echo "$as_me:9923: result: no" >&5 | ||
9924 | echo "${ECHO_T}no" >&6 | ||
9925 | fi | ||
9926 | |||
9927 | if test -z "$PROG_NETSTAT" ; then | ||
9928 | PROG_NETSTAT="undef" | ||
9929 | fi | ||
9930 | |||
9931 | # Extract the first word of "arp", so it can be a program name with args. | ||
9932 | set dummy arp; ac_word=$2 | ||
9933 | echo "$as_me:9933: checking for $ac_word" >&5 | ||
9934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9935 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9937 | else | ||
9938 | case $PROG_ARP in | ||
9939 | [\\/]* | ?:[\\/]*) | ||
9940 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9941 | ;; | ||
9942 | *) | ||
9943 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9944 | ac_dummy="$PATH" | ||
9945 | for ac_dir in $ac_dummy; do | ||
9946 | IFS=$ac_save_IFS | ||
9947 | test -z "$ac_dir" && ac_dir=. | ||
9948 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9949 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
9950 | echo "$as_me:9950: found $ac_dir/$ac_word" >&5 | ||
9951 | break | ||
9952 | fi | ||
9953 | done | ||
9954 | |||
9955 | ;; | ||
9956 | esac | ||
9957 | fi | ||
9958 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9959 | |||
9960 | if test -n "$PROG_ARP"; then | ||
9961 | echo "$as_me:9961: result: $PROG_ARP" >&5 | ||
9962 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9963 | else | ||
9964 | echo "$as_me:9964: result: no" >&5 | ||
9965 | echo "${ECHO_T}no" >&6 | ||
9966 | fi | ||
9967 | |||
9968 | if test -z "$PROG_ARP" ; then | ||
9969 | PROG_ARP="undef" | ||
9970 | fi | ||
9971 | |||
9972 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9973 | set dummy ifconfig; ac_word=$2 | ||
9974 | echo "$as_me:9974: checking for $ac_word" >&5 | ||
9975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9976 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9978 | else | ||
9979 | case $PROG_IFCONFIG in | ||
9980 | [\\/]* | ?:[\\/]*) | ||
9981 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9982 | ;; | ||
9983 | *) | ||
9984 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
9985 | ac_dummy="$PATH" | ||
9986 | for ac_dir in $ac_dummy; do | ||
9987 | IFS=$ac_save_IFS | ||
9988 | test -z "$ac_dir" && ac_dir=. | ||
9989 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
9990 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
9991 | echo "$as_me:9991: found $ac_dir/$ac_word" >&5 | ||
9992 | break | ||
9993 | fi | ||
9994 | done | ||
9995 | |||
9996 | ;; | ||
9997 | esac | ||
9998 | fi | ||
9999 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
10000 | |||
10001 | if test -n "$PROG_IFCONFIG"; then | ||
10002 | echo "$as_me:10002: result: $PROG_IFCONFIG" >&5 | ||
10003 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
10004 | else | ||
10005 | echo "$as_me:10005: result: no" >&5 | ||
10006 | echo "${ECHO_T}no" >&6 | ||
10007 | fi | ||
10008 | |||
10009 | if test -z "$PROG_IFCONFIG" ; then | ||
10010 | PROG_IFCONFIG="undef" | ||
10011 | fi | ||
10012 | |||
10013 | # Extract the first word of "jstat", so it can be a program name with args. | ||
10014 | set dummy jstat; ac_word=$2 | ||
10015 | echo "$as_me:10015: checking for $ac_word" >&5 | ||
10016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10017 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10019 | else | ||
10020 | case $PROG_JSTAT in | ||
10021 | [\\/]* | ?:[\\/]*) | ||
10022 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
10023 | ;; | ||
10024 | *) | ||
10025 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10026 | ac_dummy="$PATH" | ||
10027 | for ac_dir in $ac_dummy; do | ||
10028 | IFS=$ac_save_IFS | ||
10029 | test -z "$ac_dir" && ac_dir=. | ||
10030 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10031 | ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word" | ||
10032 | echo "$as_me:10032: found $ac_dir/$ac_word" >&5 | ||
10033 | break | ||
10034 | fi | ||
10035 | done | ||
10036 | |||
10037 | ;; | ||
10038 | esac | ||
10039 | fi | ||
10040 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
10041 | |||
10042 | if test -n "$PROG_JSTAT"; then | ||
10043 | echo "$as_me:10043: result: $PROG_JSTAT" >&5 | ||
10044 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
10045 | else | ||
10046 | echo "$as_me:10046: result: no" >&5 | ||
10047 | echo "${ECHO_T}no" >&6 | ||
10048 | fi | ||
10049 | |||
10050 | if test -z "$PROG_JSTAT" ; then | ||
10051 | PROG_JSTAT="undef" | ||
10052 | fi | ||
10053 | |||
10054 | # Extract the first word of "ps", so it can be a program name with args. | ||
10055 | set dummy ps; ac_word=$2 | ||
10056 | echo "$as_me:10056: checking for $ac_word" >&5 | ||
10057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10058 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
10059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10060 | else | ||
10061 | case $PROG_PS in | ||
10062 | [\\/]* | ?:[\\/]*) | ||
10063 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
10064 | ;; | ||
10065 | *) | ||
10066 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10067 | ac_dummy="$PATH" | ||
10068 | for ac_dir in $ac_dummy; do | ||
10069 | IFS=$ac_save_IFS | ||
10070 | test -z "$ac_dir" && ac_dir=. | ||
10071 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10072 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
10073 | echo "$as_me:10073: found $ac_dir/$ac_word" >&5 | ||
10074 | break | ||
10075 | fi | ||
10076 | done | ||
10077 | |||
10078 | ;; | ||
10079 | esac | ||
10080 | fi | ||
10081 | PROG_PS=$ac_cv_path_PROG_PS | ||
10082 | |||
10083 | if test -n "$PROG_PS"; then | ||
10084 | echo "$as_me:10084: result: $PROG_PS" >&5 | ||
10085 | echo "${ECHO_T}$PROG_PS" >&6 | ||
10086 | else | ||
10087 | echo "$as_me:10087: result: no" >&5 | ||
10088 | echo "${ECHO_T}no" >&6 | ||
10089 | fi | ||
10090 | |||
10091 | if test -z "$PROG_PS" ; then | ||
10092 | PROG_PS="undef" | ||
10093 | fi | ||
10094 | |||
10095 | # Extract the first word of "sar", so it can be a program name with args. | ||
10096 | set dummy sar; ac_word=$2 | ||
10097 | echo "$as_me:10097: checking for $ac_word" >&5 | ||
10098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10099 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10101 | else | ||
10102 | case $PROG_SAR in | ||
10103 | [\\/]* | ?:[\\/]*) | ||
10104 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
10105 | ;; | ||
10106 | *) | ||
10107 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10108 | ac_dummy="$PATH" | ||
10109 | for ac_dir in $ac_dummy; do | ||
10110 | IFS=$ac_save_IFS | ||
10111 | test -z "$ac_dir" && ac_dir=. | ||
10112 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10113 | ac_cv_path_PROG_SAR="$ac_dir/$ac_word" | ||
10114 | echo "$as_me:10114: found $ac_dir/$ac_word" >&5 | ||
10115 | break | ||
10116 | fi | ||
10117 | done | ||
10118 | |||
10119 | ;; | ||
10120 | esac | ||
10121 | fi | ||
10122 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
10123 | |||
10124 | if test -n "$PROG_SAR"; then | ||
10125 | echo "$as_me:10125: result: $PROG_SAR" >&5 | ||
10126 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
10127 | else | ||
10128 | echo "$as_me:10128: result: no" >&5 | ||
10129 | echo "${ECHO_T}no" >&6 | ||
10130 | fi | ||
10131 | |||
10132 | if test -z "$PROG_SAR" ; then | ||
10133 | PROG_SAR="undef" | ||
10134 | fi | ||
10135 | |||
10136 | # Extract the first word of "w", so it can be a program name with args. | ||
10137 | set dummy w; ac_word=$2 | ||
10138 | echo "$as_me:10138: checking for $ac_word" >&5 | ||
10139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10140 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
10141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10142 | else | ||
10143 | case $PROG_W in | ||
10144 | [\\/]* | ?:[\\/]*) | ||
10145 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
10146 | ;; | ||
10147 | *) | ||
10148 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10149 | ac_dummy="$PATH" | ||
10150 | for ac_dir in $ac_dummy; do | ||
10151 | IFS=$ac_save_IFS | ||
10152 | test -z "$ac_dir" && ac_dir=. | ||
10153 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10154 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
10155 | echo "$as_me:10155: found $ac_dir/$ac_word" >&5 | ||
10156 | break | ||
10157 | fi | ||
10158 | done | ||
10159 | |||
10160 | ;; | ||
10161 | esac | ||
10162 | fi | ||
10163 | PROG_W=$ac_cv_path_PROG_W | ||
10164 | |||
10165 | if test -n "$PROG_W"; then | ||
10166 | echo "$as_me:10166: result: $PROG_W" >&5 | ||
10167 | echo "${ECHO_T}$PROG_W" >&6 | ||
10168 | else | ||
10169 | echo "$as_me:10169: result: no" >&5 | ||
10170 | echo "${ECHO_T}no" >&6 | ||
10171 | fi | ||
10172 | |||
10173 | if test -z "$PROG_W" ; then | ||
10174 | PROG_W="undef" | ||
10175 | fi | ||
10176 | |||
10177 | # Extract the first word of "who", so it can be a program name with args. | ||
10178 | set dummy who; ac_word=$2 | ||
10179 | echo "$as_me:10179: checking for $ac_word" >&5 | ||
10180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10181 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10183 | else | ||
10184 | case $PROG_WHO in | ||
10185 | [\\/]* | ?:[\\/]*) | ||
10186 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
10187 | ;; | ||
10188 | *) | ||
10189 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10190 | ac_dummy="$PATH" | ||
10191 | for ac_dir in $ac_dummy; do | ||
10192 | IFS=$ac_save_IFS | ||
10193 | test -z "$ac_dir" && ac_dir=. | ||
10194 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10195 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
10196 | echo "$as_me:10196: found $ac_dir/$ac_word" >&5 | ||
10197 | break | ||
10198 | fi | ||
10199 | done | ||
10200 | |||
10201 | ;; | ||
10202 | esac | ||
10203 | fi | ||
10204 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
10205 | |||
10206 | if test -n "$PROG_WHO"; then | ||
10207 | echo "$as_me:10207: result: $PROG_WHO" >&5 | ||
10208 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
10209 | else | ||
10210 | echo "$as_me:10210: result: no" >&5 | ||
10211 | echo "${ECHO_T}no" >&6 | ||
10212 | fi | ||
10213 | |||
10214 | if test -z "$PROG_WHO" ; then | ||
10215 | PROG_WHO="undef" | ||
10216 | fi | ||
10217 | |||
10218 | # Extract the first word of "last", so it can be a program name with args. | ||
10219 | set dummy last; ac_word=$2 | ||
10220 | echo "$as_me:10220: checking for $ac_word" >&5 | ||
10221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10222 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10224 | else | ||
10225 | case $PROG_LAST in | ||
10226 | [\\/]* | ?:[\\/]*) | ||
10227 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
10228 | ;; | ||
10229 | *) | ||
10230 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10231 | ac_dummy="$PATH" | ||
10232 | for ac_dir in $ac_dummy; do | ||
10233 | IFS=$ac_save_IFS | ||
10234 | test -z "$ac_dir" && ac_dir=. | ||
10235 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10236 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
10237 | echo "$as_me:10237: found $ac_dir/$ac_word" >&5 | ||
10238 | break | ||
10239 | fi | ||
10240 | done | ||
10241 | |||
10242 | ;; | ||
10243 | esac | ||
10244 | fi | ||
10245 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
10246 | |||
10247 | if test -n "$PROG_LAST"; then | ||
10248 | echo "$as_me:10248: result: $PROG_LAST" >&5 | ||
10249 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
10250 | else | ||
10251 | echo "$as_me:10251: result: no" >&5 | ||
10252 | echo "${ECHO_T}no" >&6 | ||
10253 | fi | ||
10254 | |||
10255 | if test -z "$PROG_LAST" ; then | ||
10256 | PROG_LAST="undef" | ||
10257 | fi | ||
10258 | |||
10259 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
10260 | set dummy lastlog; ac_word=$2 | ||
10261 | echo "$as_me:10261: checking for $ac_word" >&5 | ||
10262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10263 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
10264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10265 | else | ||
10266 | case $PROG_LASTLOG in | ||
10267 | [\\/]* | ?:[\\/]*) | ||
10268 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
10269 | ;; | ||
10270 | *) | ||
10271 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10272 | ac_dummy="$PATH" | ||
10273 | for ac_dir in $ac_dummy; do | ||
10274 | IFS=$ac_save_IFS | ||
10275 | test -z "$ac_dir" && ac_dir=. | ||
10276 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10277 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
10278 | echo "$as_me:10278: found $ac_dir/$ac_word" >&5 | ||
10279 | break | ||
10280 | fi | ||
10281 | done | ||
10282 | |||
10283 | ;; | ||
10284 | esac | ||
10285 | fi | ||
10286 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
10287 | |||
10288 | if test -n "$PROG_LASTLOG"; then | ||
10289 | echo "$as_me:10289: result: $PROG_LASTLOG" >&5 | ||
10290 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
10291 | else | ||
10292 | echo "$as_me:10292: result: no" >&5 | ||
10293 | echo "${ECHO_T}no" >&6 | ||
10294 | fi | ||
10295 | |||
10296 | if test -z "$PROG_LASTLOG" ; then | ||
10297 | PROG_LASTLOG="undef" | ||
10298 | fi | ||
10299 | |||
10300 | # Extract the first word of "df", so it can be a program name with args. | ||
10301 | set dummy df; ac_word=$2 | ||
10302 | echo "$as_me:10302: checking for $ac_word" >&5 | ||
10303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10304 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10306 | else | ||
10307 | case $PROG_DF in | ||
10308 | [\\/]* | ?:[\\/]*) | ||
10309 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
10310 | ;; | ||
10311 | *) | ||
10312 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10313 | ac_dummy="$PATH" | ||
10314 | for ac_dir in $ac_dummy; do | ||
10315 | IFS=$ac_save_IFS | ||
10316 | test -z "$ac_dir" && ac_dir=. | ||
10317 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10318 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
10319 | echo "$as_me:10319: found $ac_dir/$ac_word" >&5 | ||
10320 | break | ||
10321 | fi | ||
10322 | done | ||
10323 | |||
10324 | ;; | ||
10325 | esac | ||
10326 | fi | ||
10327 | PROG_DF=$ac_cv_path_PROG_DF | ||
10328 | |||
10329 | if test -n "$PROG_DF"; then | ||
10330 | echo "$as_me:10330: result: $PROG_DF" >&5 | ||
10331 | echo "${ECHO_T}$PROG_DF" >&6 | ||
10332 | else | ||
10333 | echo "$as_me:10333: result: no" >&5 | ||
10334 | echo "${ECHO_T}no" >&6 | ||
10335 | fi | ||
10336 | |||
10337 | if test -z "$PROG_DF" ; then | ||
10338 | PROG_DF="undef" | ||
10339 | fi | ||
10340 | |||
10341 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
10342 | set dummy vmstat; ac_word=$2 | ||
10343 | echo "$as_me:10343: checking for $ac_word" >&5 | ||
10344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10345 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
10346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10347 | else | ||
10348 | case $PROG_VMSTAT in | ||
10349 | [\\/]* | ?:[\\/]*) | ||
10350 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
10351 | ;; | ||
10352 | *) | ||
10353 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10354 | ac_dummy="$PATH" | ||
10355 | for ac_dir in $ac_dummy; do | ||
10356 | IFS=$ac_save_IFS | ||
10357 | test -z "$ac_dir" && ac_dir=. | ||
10358 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10359 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
10360 | echo "$as_me:10360: found $ac_dir/$ac_word" >&5 | ||
10361 | break | ||
10362 | fi | ||
10363 | done | ||
10364 | |||
10365 | ;; | ||
10366 | esac | ||
10367 | fi | ||
10368 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
10369 | |||
10370 | if test -n "$PROG_VMSTAT"; then | ||
10371 | echo "$as_me:10371: result: $PROG_VMSTAT" >&5 | ||
10372 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
10373 | else | ||
10374 | echo "$as_me:10374: result: no" >&5 | ||
10375 | echo "${ECHO_T}no" >&6 | ||
10376 | fi | ||
10377 | |||
10378 | if test -z "$PROG_VMSTAT" ; then | ||
10379 | PROG_VMSTAT="undef" | ||
10380 | fi | ||
10381 | |||
10382 | # Extract the first word of "uptime", so it can be a program name with args. | ||
10383 | set dummy uptime; ac_word=$2 | ||
10384 | echo "$as_me:10384: checking for $ac_word" >&5 | ||
10385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10386 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
10387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10388 | else | ||
10389 | case $PROG_UPTIME in | ||
10390 | [\\/]* | ?:[\\/]*) | ||
10391 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
10392 | ;; | ||
10393 | *) | ||
10394 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10395 | ac_dummy="$PATH" | ||
10396 | for ac_dir in $ac_dummy; do | ||
10397 | IFS=$ac_save_IFS | ||
10398 | test -z "$ac_dir" && ac_dir=. | ||
10399 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10400 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
10401 | echo "$as_me:10401: found $ac_dir/$ac_word" >&5 | ||
10402 | break | ||
10403 | fi | ||
10404 | done | ||
10405 | |||
10406 | ;; | ||
10407 | esac | ||
10408 | fi | ||
10409 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
10410 | |||
10411 | if test -n "$PROG_UPTIME"; then | ||
10412 | echo "$as_me:10412: result: $PROG_UPTIME" >&5 | ||
10413 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
10414 | else | ||
10415 | echo "$as_me:10415: result: no" >&5 | ||
10416 | echo "${ECHO_T}no" >&6 | ||
10417 | fi | ||
10418 | |||
10419 | if test -z "$PROG_UPTIME" ; then | ||
10420 | PROG_UPTIME="undef" | ||
10421 | fi | ||
10422 | |||
10423 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
10424 | set dummy ipcs; ac_word=$2 | ||
10425 | echo "$as_me:10425: checking for $ac_word" >&5 | ||
10426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10427 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10429 | else | ||
10430 | case $PROG_IPCS in | ||
10431 | [\\/]* | ?:[\\/]*) | ||
10432 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
10433 | ;; | ||
10434 | *) | ||
10435 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10436 | ac_dummy="$PATH" | ||
10437 | for ac_dir in $ac_dummy; do | ||
10438 | IFS=$ac_save_IFS | ||
10439 | test -z "$ac_dir" && ac_dir=. | ||
10440 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10441 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
10442 | echo "$as_me:10442: found $ac_dir/$ac_word" >&5 | ||
10443 | break | ||
10444 | fi | ||
10445 | done | ||
10446 | |||
10447 | ;; | ||
10448 | esac | ||
10449 | fi | ||
10450 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
10451 | |||
10452 | if test -n "$PROG_IPCS"; then | ||
10453 | echo "$as_me:10453: result: $PROG_IPCS" >&5 | ||
10454 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
10455 | else | ||
10456 | echo "$as_me:10456: result: no" >&5 | ||
10457 | echo "${ECHO_T}no" >&6 | ||
10458 | fi | ||
10459 | |||
10460 | if test -z "$PROG_IPCS" ; then | ||
10461 | PROG_IPCS="undef" | ||
10462 | fi | ||
10463 | |||
10464 | # Extract the first word of "tail", so it can be a program name with args. | ||
10465 | set dummy tail; ac_word=$2 | ||
10466 | echo "$as_me:10466: checking for $ac_word" >&5 | ||
10467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10468 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10470 | else | ||
10471 | case $PROG_TAIL in | ||
10472 | [\\/]* | ?:[\\/]*) | ||
10473 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
10474 | ;; | ||
10475 | *) | ||
10476 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
10477 | ac_dummy="$PATH" | ||
10478 | for ac_dir in $ac_dummy; do | ||
10479 | IFS=$ac_save_IFS | ||
10480 | test -z "$ac_dir" && ac_dir=. | ||
10481 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
10482 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
10483 | echo "$as_me:10483: found $ac_dir/$ac_word" >&5 | ||
10484 | break | ||
10485 | fi | ||
10486 | done | ||
10487 | |||
10488 | ;; | ||
10489 | esac | ||
10490 | fi | ||
10491 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
10492 | |||
10493 | if test -n "$PROG_TAIL"; then | ||
10494 | echo "$as_me:10494: result: $PROG_TAIL" >&5 | ||
10495 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
10496 | else | ||
10497 | echo "$as_me:10497: result: no" >&5 | ||
10498 | echo "${ECHO_T}no" >&6 | ||
10499 | fi | ||
10500 | |||
10501 | if test -z "$PROG_TAIL" ; then | ||
10502 | PROG_TAIL="undef" | ||
10503 | fi | ||
10504 | |||
10505 | # restore PATH | ||
10506 | PATH=$OPATH | ||
10507 | |||
10508 | # Where does ssh-rand-helper get its randomness from? | ||
10509 | INSTALL_SSH_PRNG_CMDS="" | ||
10510 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
10511 | if test ! -z "$PRNGD_PORT" ; then | ||
10512 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
10513 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
10514 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
10515 | else | ||
10516 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
10517 | RAND_HELPER_CMDHASH=yes | ||
10518 | INSTALL_SSH_PRNG_CMDS="yes" | ||
10519 | fi | ||
10520 | fi | ||
10521 | |||
10522 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
10523 | if test ! -z "$SONY" ; then | ||
10524 | LIBS="$LIBS -liberty"; | ||
10525 | fi | ||
10526 | |||
10527 | # Checks for data types | ||
10528 | echo "$as_me:10528: checking for char" >&5 | ||
10529 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
10530 | if test "${ac_cv_type_char+set}" = set; then | ||
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10532 | else | ||
10533 | cat >conftest.$ac_ext <<_ACEOF | ||
10534 | #line 10534 "configure" | ||
10535 | #include "confdefs.h" | ||
10536 | $ac_includes_default | ||
10537 | int | ||
10538 | main () | ||
10539 | { | ||
10540 | if ((char *) 0) | ||
10541 | return 0; | ||
10542 | if (sizeof (char)) | ||
10543 | return 0; | ||
10544 | ; | ||
10545 | return 0; | ||
10546 | } | ||
10547 | _ACEOF | ||
10548 | rm -f conftest.$ac_objext | ||
10549 | if { (eval echo "$as_me:10549: \"$ac_compile\"") >&5 | ||
10550 | (eval $ac_compile) 2>&5 | ||
10551 | ac_status=$? | ||
10552 | echo "$as_me:10552: \$? = $ac_status" >&5 | ||
10553 | (exit $ac_status); } && | ||
10554 | { ac_try='test -s conftest.$ac_objext' | ||
10555 | { (eval echo "$as_me:10555: \"$ac_try\"") >&5 | ||
10556 | (eval $ac_try) 2>&5 | ||
10557 | ac_status=$? | ||
10558 | echo "$as_me:10558: \$? = $ac_status" >&5 | ||
10559 | (exit $ac_status); }; }; then | ||
10560 | ac_cv_type_char=yes | ||
10561 | else | ||
10562 | echo "$as_me: failed program was:" >&5 | ||
10563 | cat conftest.$ac_ext >&5 | ||
10564 | ac_cv_type_char=no | ||
10565 | fi | ||
10566 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10567 | fi | ||
10568 | echo "$as_me:10568: result: $ac_cv_type_char" >&5 | ||
10569 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
10570 | |||
10571 | echo "$as_me:10571: checking size of char" >&5 | ||
10572 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
10573 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
10574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10575 | else | ||
10576 | if test "$ac_cv_type_char" = yes; then | ||
10577 | if test "$cross_compiling" = yes; then | ||
10578 | # Depending upon the size, compute the lo and hi bounds. | ||
10579 | cat >conftest.$ac_ext <<_ACEOF | ||
10580 | #line 10580 "configure" | ||
10581 | #include "confdefs.h" | ||
10582 | $ac_includes_default | ||
10583 | int | ||
10584 | main () | ||
10585 | { | ||
10586 | int _array_ [1 - 2 * !((sizeof (char)) >= 0)] | ||
10587 | ; | ||
10588 | return 0; | ||
10589 | } | ||
10590 | _ACEOF | ||
10591 | rm -f conftest.$ac_objext | ||
10592 | if { (eval echo "$as_me:10592: \"$ac_compile\"") >&5 | ||
10593 | (eval $ac_compile) 2>&5 | ||
10594 | ac_status=$? | ||
10595 | echo "$as_me:10595: \$? = $ac_status" >&5 | ||
10596 | (exit $ac_status); } && | ||
10597 | { ac_try='test -s conftest.$ac_objext' | ||
10598 | { (eval echo "$as_me:10598: \"$ac_try\"") >&5 | ||
10599 | (eval $ac_try) 2>&5 | ||
10600 | ac_status=$? | ||
10601 | echo "$as_me:10601: \$? = $ac_status" >&5 | ||
10602 | (exit $ac_status); }; }; then | ||
10603 | ac_lo=0 ac_mid=0 | ||
10604 | while :; do | ||
10605 | cat >conftest.$ac_ext <<_ACEOF | ||
10606 | #line 10606 "configure" | ||
10607 | #include "confdefs.h" | ||
10608 | $ac_includes_default | ||
10609 | int | ||
10610 | main () | ||
10611 | { | ||
10612 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10613 | ; | ||
10614 | return 0; | ||
10615 | } | ||
10616 | _ACEOF | ||
10617 | rm -f conftest.$ac_objext | ||
10618 | if { (eval echo "$as_me:10618: \"$ac_compile\"") >&5 | ||
10619 | (eval $ac_compile) 2>&5 | ||
10620 | ac_status=$? | ||
10621 | echo "$as_me:10621: \$? = $ac_status" >&5 | ||
10622 | (exit $ac_status); } && | ||
10623 | { ac_try='test -s conftest.$ac_objext' | ||
10624 | { (eval echo "$as_me:10624: \"$ac_try\"") >&5 | ||
10625 | (eval $ac_try) 2>&5 | ||
10626 | ac_status=$? | ||
10627 | echo "$as_me:10627: \$? = $ac_status" >&5 | ||
10628 | (exit $ac_status); }; }; then | ||
10629 | ac_hi=$ac_mid; break | ||
10630 | else | ||
10631 | echo "$as_me: failed program was:" >&5 | ||
10632 | cat conftest.$ac_ext >&5 | ||
10633 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10634 | fi | ||
10635 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10636 | done | ||
10637 | else | ||
10638 | echo "$as_me: failed program was:" >&5 | ||
10639 | cat conftest.$ac_ext >&5 | ||
10640 | ac_hi=-1 ac_mid=-1 | ||
10641 | while :; do | ||
10642 | cat >conftest.$ac_ext <<_ACEOF | ||
10643 | #line 10643 "configure" | ||
10644 | #include "confdefs.h" | ||
10645 | $ac_includes_default | ||
10646 | int | ||
10647 | main () | ||
10648 | { | ||
10649 | int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)] | ||
10650 | ; | ||
10651 | return 0; | ||
10652 | } | ||
10653 | _ACEOF | ||
10654 | rm -f conftest.$ac_objext | ||
10655 | if { (eval echo "$as_me:10655: \"$ac_compile\"") >&5 | ||
10656 | (eval $ac_compile) 2>&5 | ||
10657 | ac_status=$? | ||
10658 | echo "$as_me:10658: \$? = $ac_status" >&5 | ||
10659 | (exit $ac_status); } && | ||
10660 | { ac_try='test -s conftest.$ac_objext' | ||
10661 | { (eval echo "$as_me:10661: \"$ac_try\"") >&5 | ||
10662 | (eval $ac_try) 2>&5 | ||
10663 | ac_status=$? | ||
10664 | echo "$as_me:10664: \$? = $ac_status" >&5 | ||
10665 | (exit $ac_status); }; }; then | ||
10666 | ac_lo=$ac_mid; break | ||
10667 | else | ||
10668 | echo "$as_me: failed program was:" >&5 | ||
10669 | cat conftest.$ac_ext >&5 | ||
10670 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10671 | fi | ||
10672 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10673 | done | ||
10674 | fi | ||
10675 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10676 | # Binary search between lo and hi bounds. | ||
10677 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10678 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10679 | cat >conftest.$ac_ext <<_ACEOF | ||
10680 | #line 10680 "configure" | ||
10681 | #include "confdefs.h" | ||
10682 | $ac_includes_default | ||
10683 | int | ||
10684 | main () | ||
10685 | { | ||
10686 | int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)] | ||
10687 | ; | ||
10688 | return 0; | ||
10689 | } | ||
10690 | _ACEOF | ||
10691 | rm -f conftest.$ac_objext | ||
10692 | if { (eval echo "$as_me:10692: \"$ac_compile\"") >&5 | ||
10693 | (eval $ac_compile) 2>&5 | ||
10694 | ac_status=$? | ||
10695 | echo "$as_me:10695: \$? = $ac_status" >&5 | ||
10696 | (exit $ac_status); } && | ||
10697 | { ac_try='test -s conftest.$ac_objext' | ||
10698 | { (eval echo "$as_me:10698: \"$ac_try\"") >&5 | ||
10699 | (eval $ac_try) 2>&5 | ||
10700 | ac_status=$? | ||
10701 | echo "$as_me:10701: \$? = $ac_status" >&5 | ||
10702 | (exit $ac_status); }; }; then | ||
10703 | ac_hi=$ac_mid | ||
10704 | else | ||
10705 | echo "$as_me: failed program was:" >&5 | ||
10706 | cat conftest.$ac_ext >&5 | ||
10707 | ac_lo=`expr $ac_mid + 1` | ||
10708 | fi | ||
10709 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10710 | done | ||
10711 | ac_cv_sizeof_char=$ac_lo | ||
10712 | else | ||
10713 | if test "$cross_compiling" = yes; then | ||
10714 | { { echo "$as_me:10714: error: cannot run test program while cross compiling" >&5 | ||
10715 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10716 | { (exit 1); exit 1; }; } | ||
10717 | else | ||
10718 | cat >conftest.$ac_ext <<_ACEOF | ||
10719 | #line 10719 "configure" | ||
10720 | #include "confdefs.h" | ||
10721 | $ac_includes_default | ||
10722 | int | ||
10723 | main () | ||
10724 | { | ||
10725 | FILE *f = fopen ("conftest.val", "w"); | ||
10726 | if (!f) | ||
10727 | exit (1); | ||
10728 | fprintf (f, "%d", (sizeof (char))); | ||
10729 | fclose (f); | ||
10730 | ; | ||
10731 | return 0; | ||
10732 | } | ||
10733 | _ACEOF | ||
10734 | rm -f conftest$ac_exeext | ||
10735 | if { (eval echo "$as_me:10735: \"$ac_link\"") >&5 | ||
10736 | (eval $ac_link) 2>&5 | ||
10737 | ac_status=$? | ||
10738 | echo "$as_me:10738: \$? = $ac_status" >&5 | ||
10739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10740 | { (eval echo "$as_me:10740: \"$ac_try\"") >&5 | ||
10741 | (eval $ac_try) 2>&5 | ||
10742 | ac_status=$? | ||
10743 | echo "$as_me:10743: \$? = $ac_status" >&5 | ||
10744 | (exit $ac_status); }; }; then | ||
10745 | ac_cv_sizeof_char=`cat conftest.val` | ||
10746 | else | ||
10747 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10748 | echo "$as_me: failed program was:" >&5 | ||
10749 | cat conftest.$ac_ext >&5 | ||
10750 | fi | ||
10751 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10752 | fi | ||
10753 | fi | ||
10754 | rm -f conftest.val | ||
10755 | else | ||
10756 | ac_cv_sizeof_char=0 | ||
10757 | fi | ||
10758 | fi | ||
10759 | echo "$as_me:10759: result: $ac_cv_sizeof_char" >&5 | ||
10760 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10761 | cat >>confdefs.h <<EOF | ||
10762 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10763 | EOF | ||
10764 | |||
10765 | echo "$as_me:10765: checking for short int" >&5 | ||
10766 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10767 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10769 | else | ||
10770 | cat >conftest.$ac_ext <<_ACEOF | ||
10771 | #line 10771 "configure" | ||
10772 | #include "confdefs.h" | ||
10773 | $ac_includes_default | ||
10774 | int | ||
10775 | main () | ||
10776 | { | ||
10777 | if ((short int *) 0) | ||
10778 | return 0; | ||
10779 | if (sizeof (short int)) | ||
10780 | return 0; | ||
10781 | ; | ||
10782 | return 0; | ||
10783 | } | ||
10784 | _ACEOF | ||
10785 | rm -f conftest.$ac_objext | ||
10786 | if { (eval echo "$as_me:10786: \"$ac_compile\"") >&5 | ||
10787 | (eval $ac_compile) 2>&5 | ||
10788 | ac_status=$? | ||
10789 | echo "$as_me:10789: \$? = $ac_status" >&5 | ||
10790 | (exit $ac_status); } && | ||
10791 | { ac_try='test -s conftest.$ac_objext' | ||
10792 | { (eval echo "$as_me:10792: \"$ac_try\"") >&5 | ||
10793 | (eval $ac_try) 2>&5 | ||
10794 | ac_status=$? | ||
10795 | echo "$as_me:10795: \$? = $ac_status" >&5 | ||
10796 | (exit $ac_status); }; }; then | ||
10797 | ac_cv_type_short_int=yes | ||
10798 | else | ||
10799 | echo "$as_me: failed program was:" >&5 | ||
10800 | cat conftest.$ac_ext >&5 | ||
10801 | ac_cv_type_short_int=no | ||
10802 | fi | ||
10803 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10804 | fi | ||
10805 | echo "$as_me:10805: result: $ac_cv_type_short_int" >&5 | ||
10806 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10807 | |||
10808 | echo "$as_me:10808: checking size of short int" >&5 | ||
10809 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10810 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10812 | else | ||
10813 | if test "$ac_cv_type_short_int" = yes; then | ||
10814 | if test "$cross_compiling" = yes; then | ||
10815 | # Depending upon the size, compute the lo and hi bounds. | ||
10816 | cat >conftest.$ac_ext <<_ACEOF | ||
10817 | #line 10817 "configure" | ||
10818 | #include "confdefs.h" | ||
10819 | $ac_includes_default | ||
10820 | int | ||
10821 | main () | ||
10822 | { | ||
10823 | int _array_ [1 - 2 * !((sizeof (short int)) >= 0)] | ||
10824 | ; | ||
10825 | return 0; | ||
10826 | } | ||
10827 | _ACEOF | ||
10828 | rm -f conftest.$ac_objext | ||
10829 | if { (eval echo "$as_me:10829: \"$ac_compile\"") >&5 | ||
10830 | (eval $ac_compile) 2>&5 | ||
10831 | ac_status=$? | ||
10832 | echo "$as_me:10832: \$? = $ac_status" >&5 | ||
10833 | (exit $ac_status); } && | ||
10834 | { ac_try='test -s conftest.$ac_objext' | ||
10835 | { (eval echo "$as_me:10835: \"$ac_try\"") >&5 | ||
10836 | (eval $ac_try) 2>&5 | ||
10837 | ac_status=$? | ||
10838 | echo "$as_me:10838: \$? = $ac_status" >&5 | ||
10839 | (exit $ac_status); }; }; then | ||
10840 | ac_lo=0 ac_mid=0 | ||
10841 | while :; do | ||
10842 | cat >conftest.$ac_ext <<_ACEOF | ||
10843 | #line 10843 "configure" | ||
10844 | #include "confdefs.h" | ||
10845 | $ac_includes_default | ||
10846 | int | ||
10847 | main () | ||
10848 | { | ||
10849 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10850 | ; | ||
10851 | return 0; | ||
10852 | } | ||
10853 | _ACEOF | ||
10854 | rm -f conftest.$ac_objext | ||
10855 | if { (eval echo "$as_me:10855: \"$ac_compile\"") >&5 | ||
10856 | (eval $ac_compile) 2>&5 | ||
10857 | ac_status=$? | ||
10858 | echo "$as_me:10858: \$? = $ac_status" >&5 | ||
10859 | (exit $ac_status); } && | ||
10860 | { ac_try='test -s conftest.$ac_objext' | ||
10861 | { (eval echo "$as_me:10861: \"$ac_try\"") >&5 | ||
10862 | (eval $ac_try) 2>&5 | ||
10863 | ac_status=$? | ||
10864 | echo "$as_me:10864: \$? = $ac_status" >&5 | ||
10865 | (exit $ac_status); }; }; then | ||
10866 | ac_hi=$ac_mid; break | ||
10867 | else | ||
10868 | echo "$as_me: failed program was:" >&5 | ||
10869 | cat conftest.$ac_ext >&5 | ||
10870 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10871 | fi | ||
10872 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10873 | done | ||
10874 | else | ||
10875 | echo "$as_me: failed program was:" >&5 | ||
10876 | cat conftest.$ac_ext >&5 | ||
10877 | ac_hi=-1 ac_mid=-1 | ||
10878 | while :; do | ||
10879 | cat >conftest.$ac_ext <<_ACEOF | ||
10880 | #line 10880 "configure" | ||
10881 | #include "confdefs.h" | ||
10882 | $ac_includes_default | ||
10883 | int | ||
10884 | main () | ||
10885 | { | ||
10886 | int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)] | ||
10887 | ; | ||
10888 | return 0; | ||
10889 | } | ||
10890 | _ACEOF | ||
10891 | rm -f conftest.$ac_objext | ||
10892 | if { (eval echo "$as_me:10892: \"$ac_compile\"") >&5 | ||
10893 | (eval $ac_compile) 2>&5 | ||
10894 | ac_status=$? | ||
10895 | echo "$as_me:10895: \$? = $ac_status" >&5 | ||
10896 | (exit $ac_status); } && | ||
10897 | { ac_try='test -s conftest.$ac_objext' | ||
10898 | { (eval echo "$as_me:10898: \"$ac_try\"") >&5 | ||
10899 | (eval $ac_try) 2>&5 | ||
10900 | ac_status=$? | ||
10901 | echo "$as_me:10901: \$? = $ac_status" >&5 | ||
10902 | (exit $ac_status); }; }; then | ||
10903 | ac_lo=$ac_mid; break | ||
10904 | else | ||
10905 | echo "$as_me: failed program was:" >&5 | ||
10906 | cat conftest.$ac_ext >&5 | ||
10907 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
10908 | fi | ||
10909 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10910 | done | ||
10911 | fi | ||
10912 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10913 | # Binary search between lo and hi bounds. | ||
10914 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10915 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10916 | cat >conftest.$ac_ext <<_ACEOF | ||
10917 | #line 10917 "configure" | ||
10918 | #include "confdefs.h" | ||
10919 | $ac_includes_default | ||
10920 | int | ||
10921 | main () | ||
10922 | { | ||
10923 | int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)] | ||
10924 | ; | ||
10925 | return 0; | ||
10926 | } | ||
10927 | _ACEOF | ||
10928 | rm -f conftest.$ac_objext | ||
10929 | if { (eval echo "$as_me:10929: \"$ac_compile\"") >&5 | ||
10930 | (eval $ac_compile) 2>&5 | ||
10931 | ac_status=$? | ||
10932 | echo "$as_me:10932: \$? = $ac_status" >&5 | ||
10933 | (exit $ac_status); } && | ||
10934 | { ac_try='test -s conftest.$ac_objext' | ||
10935 | { (eval echo "$as_me:10935: \"$ac_try\"") >&5 | ||
10936 | (eval $ac_try) 2>&5 | ||
10937 | ac_status=$? | ||
10938 | echo "$as_me:10938: \$? = $ac_status" >&5 | ||
10939 | (exit $ac_status); }; }; then | ||
10940 | ac_hi=$ac_mid | ||
10941 | else | ||
10942 | echo "$as_me: failed program was:" >&5 | ||
10943 | cat conftest.$ac_ext >&5 | ||
10944 | ac_lo=`expr $ac_mid + 1` | ||
10945 | fi | ||
10946 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10947 | done | ||
10948 | ac_cv_sizeof_short_int=$ac_lo | ||
10949 | else | ||
10950 | if test "$cross_compiling" = yes; then | ||
10951 | { { echo "$as_me:10951: error: cannot run test program while cross compiling" >&5 | ||
10952 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10953 | { (exit 1); exit 1; }; } | ||
10954 | else | ||
10955 | cat >conftest.$ac_ext <<_ACEOF | ||
10956 | #line 10956 "configure" | ||
10957 | #include "confdefs.h" | ||
10958 | $ac_includes_default | ||
10959 | int | ||
10960 | main () | ||
10961 | { | ||
10962 | FILE *f = fopen ("conftest.val", "w"); | ||
10963 | if (!f) | ||
10964 | exit (1); | ||
10965 | fprintf (f, "%d", (sizeof (short int))); | ||
10966 | fclose (f); | ||
10967 | ; | ||
10968 | return 0; | ||
10969 | } | ||
10970 | _ACEOF | ||
10971 | rm -f conftest$ac_exeext | ||
10972 | if { (eval echo "$as_me:10972: \"$ac_link\"") >&5 | ||
10973 | (eval $ac_link) 2>&5 | ||
10974 | ac_status=$? | ||
10975 | echo "$as_me:10975: \$? = $ac_status" >&5 | ||
10976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10977 | { (eval echo "$as_me:10977: \"$ac_try\"") >&5 | ||
10978 | (eval $ac_try) 2>&5 | ||
10979 | ac_status=$? | ||
10980 | echo "$as_me:10980: \$? = $ac_status" >&5 | ||
10981 | (exit $ac_status); }; }; then | ||
10982 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10983 | else | ||
10984 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10985 | echo "$as_me: failed program was:" >&5 | ||
10986 | cat conftest.$ac_ext >&5 | ||
10987 | fi | ||
10988 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10989 | fi | ||
10990 | fi | ||
10991 | rm -f conftest.val | ||
10992 | else | ||
10993 | ac_cv_sizeof_short_int=0 | ||
10994 | fi | ||
10995 | fi | ||
10996 | echo "$as_me:10996: result: $ac_cv_sizeof_short_int" >&5 | ||
10997 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10998 | cat >>confdefs.h <<EOF | ||
10999 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
11000 | EOF | ||
11001 | |||
11002 | echo "$as_me:11002: checking for int" >&5 | ||
11003 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
11004 | if test "${ac_cv_type_int+set}" = set; then | ||
11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11006 | else | ||
11007 | cat >conftest.$ac_ext <<_ACEOF | ||
11008 | #line 11008 "configure" | ||
11009 | #include "confdefs.h" | ||
11010 | $ac_includes_default | ||
11011 | int | ||
11012 | main () | ||
11013 | { | ||
11014 | if ((int *) 0) | ||
11015 | return 0; | ||
11016 | if (sizeof (int)) | ||
11017 | return 0; | ||
11018 | ; | ||
11019 | return 0; | ||
11020 | } | ||
11021 | _ACEOF | ||
11022 | rm -f conftest.$ac_objext | ||
11023 | if { (eval echo "$as_me:11023: \"$ac_compile\"") >&5 | ||
11024 | (eval $ac_compile) 2>&5 | ||
11025 | ac_status=$? | ||
11026 | echo "$as_me:11026: \$? = $ac_status" >&5 | ||
11027 | (exit $ac_status); } && | ||
11028 | { ac_try='test -s conftest.$ac_objext' | ||
11029 | { (eval echo "$as_me:11029: \"$ac_try\"") >&5 | ||
11030 | (eval $ac_try) 2>&5 | ||
11031 | ac_status=$? | ||
11032 | echo "$as_me:11032: \$? = $ac_status" >&5 | ||
11033 | (exit $ac_status); }; }; then | ||
11034 | ac_cv_type_int=yes | ||
11035 | else | ||
11036 | echo "$as_me: failed program was:" >&5 | ||
11037 | cat conftest.$ac_ext >&5 | ||
11038 | ac_cv_type_int=no | ||
11039 | fi | ||
11040 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11041 | fi | ||
11042 | echo "$as_me:11042: result: $ac_cv_type_int" >&5 | ||
11043 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
11044 | |||
11045 | echo "$as_me:11045: checking size of int" >&5 | ||
11046 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
11047 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11049 | else | ||
11050 | if test "$ac_cv_type_int" = yes; then | ||
11051 | if test "$cross_compiling" = yes; then | ||
11052 | # Depending upon the size, compute the lo and hi bounds. | ||
11053 | cat >conftest.$ac_ext <<_ACEOF | ||
11054 | #line 11054 "configure" | ||
11055 | #include "confdefs.h" | ||
11056 | $ac_includes_default | ||
11057 | int | ||
11058 | main () | ||
11059 | { | ||
11060 | int _array_ [1 - 2 * !((sizeof (int)) >= 0)] | ||
11061 | ; | ||
11062 | return 0; | ||
11063 | } | ||
11064 | _ACEOF | ||
11065 | rm -f conftest.$ac_objext | ||
11066 | if { (eval echo "$as_me:11066: \"$ac_compile\"") >&5 | ||
11067 | (eval $ac_compile) 2>&5 | ||
11068 | ac_status=$? | ||
11069 | echo "$as_me:11069: \$? = $ac_status" >&5 | ||
11070 | (exit $ac_status); } && | ||
11071 | { ac_try='test -s conftest.$ac_objext' | ||
11072 | { (eval echo "$as_me:11072: \"$ac_try\"") >&5 | ||
11073 | (eval $ac_try) 2>&5 | ||
11074 | ac_status=$? | ||
11075 | echo "$as_me:11075: \$? = $ac_status" >&5 | ||
11076 | (exit $ac_status); }; }; then | ||
11077 | ac_lo=0 ac_mid=0 | ||
11078 | while :; do | ||
11079 | cat >conftest.$ac_ext <<_ACEOF | ||
11080 | #line 11080 "configure" | ||
11081 | #include "confdefs.h" | ||
11082 | $ac_includes_default | ||
11083 | int | ||
11084 | main () | ||
11085 | { | ||
11086 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
11087 | ; | ||
11088 | return 0; | ||
11089 | } | ||
11090 | _ACEOF | ||
11091 | rm -f conftest.$ac_objext | ||
11092 | if { (eval echo "$as_me:11092: \"$ac_compile\"") >&5 | ||
11093 | (eval $ac_compile) 2>&5 | ||
11094 | ac_status=$? | ||
11095 | echo "$as_me:11095: \$? = $ac_status" >&5 | ||
11096 | (exit $ac_status); } && | ||
11097 | { ac_try='test -s conftest.$ac_objext' | ||
11098 | { (eval echo "$as_me:11098: \"$ac_try\"") >&5 | ||
11099 | (eval $ac_try) 2>&5 | ||
11100 | ac_status=$? | ||
11101 | echo "$as_me:11101: \$? = $ac_status" >&5 | ||
11102 | (exit $ac_status); }; }; then | ||
11103 | ac_hi=$ac_mid; break | ||
11104 | else | ||
11105 | echo "$as_me: failed program was:" >&5 | ||
11106 | cat conftest.$ac_ext >&5 | ||
11107 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11108 | fi | ||
11109 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11110 | done | ||
11111 | else | ||
11112 | echo "$as_me: failed program was:" >&5 | ||
11113 | cat conftest.$ac_ext >&5 | ||
11114 | ac_hi=-1 ac_mid=-1 | ||
11115 | while :; do | ||
11116 | cat >conftest.$ac_ext <<_ACEOF | ||
11117 | #line 11117 "configure" | ||
11118 | #include "confdefs.h" | ||
11119 | $ac_includes_default | ||
11120 | int | ||
11121 | main () | ||
11122 | { | ||
11123 | int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] | ||
11124 | ; | ||
11125 | return 0; | ||
11126 | } | ||
11127 | _ACEOF | ||
11128 | rm -f conftest.$ac_objext | ||
11129 | if { (eval echo "$as_me:11129: \"$ac_compile\"") >&5 | ||
11130 | (eval $ac_compile) 2>&5 | ||
11131 | ac_status=$? | ||
11132 | echo "$as_me:11132: \$? = $ac_status" >&5 | ||
11133 | (exit $ac_status); } && | ||
11134 | { ac_try='test -s conftest.$ac_objext' | ||
11135 | { (eval echo "$as_me:11135: \"$ac_try\"") >&5 | ||
11136 | (eval $ac_try) 2>&5 | ||
11137 | ac_status=$? | ||
11138 | echo "$as_me:11138: \$? = $ac_status" >&5 | ||
11139 | (exit $ac_status); }; }; then | ||
11140 | ac_lo=$ac_mid; break | ||
11141 | else | ||
11142 | echo "$as_me: failed program was:" >&5 | ||
11143 | cat conftest.$ac_ext >&5 | ||
11144 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11145 | fi | ||
11146 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11147 | done | ||
11148 | fi | ||
11149 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11150 | # Binary search between lo and hi bounds. | ||
11151 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11152 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11153 | cat >conftest.$ac_ext <<_ACEOF | ||
11154 | #line 11154 "configure" | ||
11155 | #include "confdefs.h" | ||
11156 | $ac_includes_default | ||
11157 | int | ||
11158 | main () | ||
11159 | { | ||
11160 | int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] | ||
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_hi=$ac_mid | ||
11178 | else | ||
11179 | echo "$as_me: failed program was:" >&5 | ||
11180 | cat conftest.$ac_ext >&5 | ||
11181 | ac_lo=`expr $ac_mid + 1` | ||
11182 | fi | ||
11183 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11184 | done | ||
11185 | ac_cv_sizeof_int=$ac_lo | ||
11186 | else | ||
11187 | if test "$cross_compiling" = yes; then | ||
11188 | { { echo "$as_me:11188: error: cannot run test program while cross compiling" >&5 | ||
11189 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11190 | { (exit 1); exit 1; }; } | ||
11191 | else | ||
11192 | cat >conftest.$ac_ext <<_ACEOF | ||
11193 | #line 11193 "configure" | ||
11194 | #include "confdefs.h" | ||
11195 | $ac_includes_default | ||
11196 | int | ||
11197 | main () | ||
11198 | { | ||
11199 | FILE *f = fopen ("conftest.val", "w"); | ||
11200 | if (!f) | ||
11201 | exit (1); | ||
11202 | fprintf (f, "%d", (sizeof (int))); | ||
11203 | fclose (f); | ||
11204 | ; | ||
11205 | return 0; | ||
11206 | } | ||
11207 | _ACEOF | ||
11208 | rm -f conftest$ac_exeext | ||
11209 | if { (eval echo "$as_me:11209: \"$ac_link\"") >&5 | ||
11210 | (eval $ac_link) 2>&5 | ||
11211 | ac_status=$? | ||
11212 | echo "$as_me:11212: \$? = $ac_status" >&5 | ||
11213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11214 | { (eval echo "$as_me:11214: \"$ac_try\"") >&5 | ||
11215 | (eval $ac_try) 2>&5 | ||
11216 | ac_status=$? | ||
11217 | echo "$as_me:11217: \$? = $ac_status" >&5 | ||
11218 | (exit $ac_status); }; }; then | ||
11219 | ac_cv_sizeof_int=`cat conftest.val` | ||
11220 | else | ||
11221 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11222 | echo "$as_me: failed program was:" >&5 | ||
11223 | cat conftest.$ac_ext >&5 | ||
11224 | fi | ||
11225 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11226 | fi | ||
11227 | fi | ||
11228 | rm -f conftest.val | ||
11229 | else | ||
11230 | ac_cv_sizeof_int=0 | ||
11231 | fi | ||
11232 | fi | ||
11233 | echo "$as_me:11233: result: $ac_cv_sizeof_int" >&5 | ||
11234 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
11235 | cat >>confdefs.h <<EOF | ||
11236 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
11237 | EOF | ||
11238 | |||
11239 | echo "$as_me:11239: checking for long int" >&5 | ||
11240 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
11241 | if test "${ac_cv_type_long_int+set}" = set; then | ||
11242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11243 | else | ||
11244 | cat >conftest.$ac_ext <<_ACEOF | ||
11245 | #line 11245 "configure" | ||
11246 | #include "confdefs.h" | ||
11247 | $ac_includes_default | ||
11248 | int | ||
11249 | main () | ||
11250 | { | ||
11251 | if ((long int *) 0) | ||
11252 | return 0; | ||
11253 | if (sizeof (long int)) | ||
11254 | return 0; | ||
11255 | ; | ||
11256 | return 0; | ||
11257 | } | ||
11258 | _ACEOF | ||
11259 | rm -f conftest.$ac_objext | ||
11260 | if { (eval echo "$as_me:11260: \"$ac_compile\"") >&5 | ||
11261 | (eval $ac_compile) 2>&5 | ||
11262 | ac_status=$? | ||
11263 | echo "$as_me:11263: \$? = $ac_status" >&5 | ||
11264 | (exit $ac_status); } && | ||
11265 | { ac_try='test -s conftest.$ac_objext' | ||
11266 | { (eval echo "$as_me:11266: \"$ac_try\"") >&5 | ||
11267 | (eval $ac_try) 2>&5 | ||
11268 | ac_status=$? | ||
11269 | echo "$as_me:11269: \$? = $ac_status" >&5 | ||
11270 | (exit $ac_status); }; }; then | ||
11271 | ac_cv_type_long_int=yes | ||
11272 | else | ||
11273 | echo "$as_me: failed program was:" >&5 | ||
11274 | cat conftest.$ac_ext >&5 | ||
11275 | ac_cv_type_long_int=no | ||
11276 | fi | ||
11277 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11278 | fi | ||
11279 | echo "$as_me:11279: result: $ac_cv_type_long_int" >&5 | ||
11280 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
11281 | |||
11282 | echo "$as_me:11282: checking size of long int" >&5 | ||
11283 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
11284 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
11285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11286 | else | ||
11287 | if test "$ac_cv_type_long_int" = yes; then | ||
11288 | if test "$cross_compiling" = yes; then | ||
11289 | # Depending upon the size, compute the lo and hi bounds. | ||
11290 | cat >conftest.$ac_ext <<_ACEOF | ||
11291 | #line 11291 "configure" | ||
11292 | #include "confdefs.h" | ||
11293 | $ac_includes_default | ||
11294 | int | ||
11295 | main () | ||
11296 | { | ||
11297 | int _array_ [1 - 2 * !((sizeof (long int)) >= 0)] | ||
11298 | ; | ||
11299 | return 0; | ||
11300 | } | ||
11301 | _ACEOF | ||
11302 | rm -f conftest.$ac_objext | ||
11303 | if { (eval echo "$as_me:11303: \"$ac_compile\"") >&5 | ||
11304 | (eval $ac_compile) 2>&5 | ||
11305 | ac_status=$? | ||
11306 | echo "$as_me:11306: \$? = $ac_status" >&5 | ||
11307 | (exit $ac_status); } && | ||
11308 | { ac_try='test -s conftest.$ac_objext' | ||
11309 | { (eval echo "$as_me:11309: \"$ac_try\"") >&5 | ||
11310 | (eval $ac_try) 2>&5 | ||
11311 | ac_status=$? | ||
11312 | echo "$as_me:11312: \$? = $ac_status" >&5 | ||
11313 | (exit $ac_status); }; }; then | ||
11314 | ac_lo=0 ac_mid=0 | ||
11315 | while :; do | ||
11316 | cat >conftest.$ac_ext <<_ACEOF | ||
11317 | #line 11317 "configure" | ||
11318 | #include "confdefs.h" | ||
11319 | $ac_includes_default | ||
11320 | int | ||
11321 | main () | ||
11322 | { | ||
11323 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
11324 | ; | ||
11325 | return 0; | ||
11326 | } | ||
11327 | _ACEOF | ||
11328 | rm -f conftest.$ac_objext | ||
11329 | if { (eval echo "$as_me:11329: \"$ac_compile\"") >&5 | ||
11330 | (eval $ac_compile) 2>&5 | ||
11331 | ac_status=$? | ||
11332 | echo "$as_me:11332: \$? = $ac_status" >&5 | ||
11333 | (exit $ac_status); } && | ||
11334 | { ac_try='test -s conftest.$ac_objext' | ||
11335 | { (eval echo "$as_me:11335: \"$ac_try\"") >&5 | ||
11336 | (eval $ac_try) 2>&5 | ||
11337 | ac_status=$? | ||
11338 | echo "$as_me:11338: \$? = $ac_status" >&5 | ||
11339 | (exit $ac_status); }; }; then | ||
11340 | ac_hi=$ac_mid; break | ||
11341 | else | ||
11342 | echo "$as_me: failed program was:" >&5 | ||
11343 | cat conftest.$ac_ext >&5 | ||
11344 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11345 | fi | ||
11346 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11347 | done | ||
11348 | else | ||
11349 | echo "$as_me: failed program was:" >&5 | ||
11350 | cat conftest.$ac_ext >&5 | ||
11351 | ac_hi=-1 ac_mid=-1 | ||
11352 | while :; do | ||
11353 | cat >conftest.$ac_ext <<_ACEOF | ||
11354 | #line 11354 "configure" | ||
11355 | #include "confdefs.h" | ||
11356 | $ac_includes_default | ||
11357 | int | ||
11358 | main () | ||
11359 | { | ||
11360 | int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)] | ||
11361 | ; | ||
11362 | return 0; | ||
11363 | } | ||
11364 | _ACEOF | ||
11365 | rm -f conftest.$ac_objext | ||
11366 | if { (eval echo "$as_me:11366: \"$ac_compile\"") >&5 | ||
11367 | (eval $ac_compile) 2>&5 | ||
11368 | ac_status=$? | ||
11369 | echo "$as_me:11369: \$? = $ac_status" >&5 | ||
11370 | (exit $ac_status); } && | ||
11371 | { ac_try='test -s conftest.$ac_objext' | ||
11372 | { (eval echo "$as_me:11372: \"$ac_try\"") >&5 | ||
11373 | (eval $ac_try) 2>&5 | ||
11374 | ac_status=$? | ||
11375 | echo "$as_me:11375: \$? = $ac_status" >&5 | ||
11376 | (exit $ac_status); }; }; then | ||
11377 | ac_lo=$ac_mid; break | ||
11378 | else | ||
11379 | echo "$as_me: failed program was:" >&5 | ||
11380 | cat conftest.$ac_ext >&5 | ||
11381 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11382 | fi | ||
11383 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11384 | done | ||
11385 | fi | ||
11386 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11387 | # Binary search between lo and hi bounds. | ||
11388 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11389 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11390 | cat >conftest.$ac_ext <<_ACEOF | ||
11391 | #line 11391 "configure" | ||
11392 | #include "confdefs.h" | ||
11393 | $ac_includes_default | ||
11394 | int | ||
11395 | main () | ||
11396 | { | ||
11397 | int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)] | ||
11398 | ; | ||
11399 | return 0; | ||
11400 | } | ||
11401 | _ACEOF | ||
11402 | rm -f conftest.$ac_objext | ||
11403 | if { (eval echo "$as_me:11403: \"$ac_compile\"") >&5 | ||
11404 | (eval $ac_compile) 2>&5 | ||
11405 | ac_status=$? | ||
11406 | echo "$as_me:11406: \$? = $ac_status" >&5 | ||
11407 | (exit $ac_status); } && | ||
11408 | { ac_try='test -s conftest.$ac_objext' | ||
11409 | { (eval echo "$as_me:11409: \"$ac_try\"") >&5 | ||
11410 | (eval $ac_try) 2>&5 | ||
11411 | ac_status=$? | ||
11412 | echo "$as_me:11412: \$? = $ac_status" >&5 | ||
11413 | (exit $ac_status); }; }; then | ||
11414 | ac_hi=$ac_mid | ||
11415 | else | ||
11416 | echo "$as_me: failed program was:" >&5 | ||
11417 | cat conftest.$ac_ext >&5 | ||
11418 | ac_lo=`expr $ac_mid + 1` | ||
11419 | fi | ||
11420 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11421 | done | ||
11422 | ac_cv_sizeof_long_int=$ac_lo | ||
11423 | else | ||
11424 | if test "$cross_compiling" = yes; then | ||
11425 | { { echo "$as_me:11425: error: cannot run test program while cross compiling" >&5 | ||
11426 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11427 | { (exit 1); exit 1; }; } | ||
11428 | else | ||
11429 | cat >conftest.$ac_ext <<_ACEOF | ||
11430 | #line 11430 "configure" | ||
11431 | #include "confdefs.h" | ||
11432 | $ac_includes_default | ||
11433 | int | ||
11434 | main () | ||
11435 | { | ||
11436 | FILE *f = fopen ("conftest.val", "w"); | ||
11437 | if (!f) | ||
11438 | exit (1); | ||
11439 | fprintf (f, "%d", (sizeof (long int))); | ||
11440 | fclose (f); | ||
11441 | ; | ||
11442 | return 0; | ||
11443 | } | ||
11444 | _ACEOF | ||
11445 | rm -f conftest$ac_exeext | ||
11446 | if { (eval echo "$as_me:11446: \"$ac_link\"") >&5 | ||
11447 | (eval $ac_link) 2>&5 | ||
11448 | ac_status=$? | ||
11449 | echo "$as_me:11449: \$? = $ac_status" >&5 | ||
11450 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11451 | { (eval echo "$as_me:11451: \"$ac_try\"") >&5 | ||
11452 | (eval $ac_try) 2>&5 | ||
11453 | ac_status=$? | ||
11454 | echo "$as_me:11454: \$? = $ac_status" >&5 | ||
11455 | (exit $ac_status); }; }; then | ||
11456 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
11457 | else | ||
11458 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11459 | echo "$as_me: failed program was:" >&5 | ||
11460 | cat conftest.$ac_ext >&5 | ||
11461 | fi | ||
11462 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11463 | fi | ||
11464 | fi | ||
11465 | rm -f conftest.val | ||
11466 | else | ||
11467 | ac_cv_sizeof_long_int=0 | ||
11468 | fi | ||
11469 | fi | ||
11470 | echo "$as_me:11470: result: $ac_cv_sizeof_long_int" >&5 | ||
11471 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
11472 | cat >>confdefs.h <<EOF | ||
11473 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11474 | EOF | ||
11475 | |||
11476 | echo "$as_me:11476: checking for long long int" >&5 | ||
11477 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
11478 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
11479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11480 | else | ||
11481 | cat >conftest.$ac_ext <<_ACEOF | ||
11482 | #line 11482 "configure" | ||
11483 | #include "confdefs.h" | ||
11484 | $ac_includes_default | ||
11485 | int | ||
11486 | main () | ||
11487 | { | ||
11488 | if ((long long int *) 0) | ||
11489 | return 0; | ||
11490 | if (sizeof (long long int)) | ||
11491 | return 0; | ||
11492 | ; | ||
11493 | return 0; | ||
11494 | } | ||
11495 | _ACEOF | ||
11496 | rm -f conftest.$ac_objext | ||
11497 | if { (eval echo "$as_me:11497: \"$ac_compile\"") >&5 | ||
11498 | (eval $ac_compile) 2>&5 | ||
11499 | ac_status=$? | ||
11500 | echo "$as_me:11500: \$? = $ac_status" >&5 | ||
11501 | (exit $ac_status); } && | ||
11502 | { ac_try='test -s conftest.$ac_objext' | ||
11503 | { (eval echo "$as_me:11503: \"$ac_try\"") >&5 | ||
11504 | (eval $ac_try) 2>&5 | ||
11505 | ac_status=$? | ||
11506 | echo "$as_me:11506: \$? = $ac_status" >&5 | ||
11507 | (exit $ac_status); }; }; then | ||
11508 | ac_cv_type_long_long_int=yes | ||
11509 | else | ||
11510 | echo "$as_me: failed program was:" >&5 | ||
11511 | cat conftest.$ac_ext >&5 | ||
11512 | ac_cv_type_long_long_int=no | ||
11513 | fi | ||
11514 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11515 | fi | ||
11516 | echo "$as_me:11516: result: $ac_cv_type_long_long_int" >&5 | ||
11517 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
11518 | |||
11519 | echo "$as_me:11519: checking size of long long int" >&5 | ||
11520 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
11521 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
11522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11523 | else | ||
11524 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11525 | if test "$cross_compiling" = yes; then | ||
11526 | # Depending upon the size, compute the lo and hi bounds. | ||
11527 | cat >conftest.$ac_ext <<_ACEOF | ||
11528 | #line 11528 "configure" | ||
11529 | #include "confdefs.h" | ||
11530 | $ac_includes_default | ||
11531 | int | ||
11532 | main () | ||
11533 | { | ||
11534 | int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)] | ||
11535 | ; | ||
11536 | return 0; | ||
11537 | } | ||
11538 | _ACEOF | ||
11539 | rm -f conftest.$ac_objext | ||
11540 | if { (eval echo "$as_me:11540: \"$ac_compile\"") >&5 | ||
11541 | (eval $ac_compile) 2>&5 | ||
11542 | ac_status=$? | ||
11543 | echo "$as_me:11543: \$? = $ac_status" >&5 | ||
11544 | (exit $ac_status); } && | ||
11545 | { ac_try='test -s conftest.$ac_objext' | ||
11546 | { (eval echo "$as_me:11546: \"$ac_try\"") >&5 | ||
11547 | (eval $ac_try) 2>&5 | ||
11548 | ac_status=$? | ||
11549 | echo "$as_me:11549: \$? = $ac_status" >&5 | ||
11550 | (exit $ac_status); }; }; then | ||
11551 | ac_lo=0 ac_mid=0 | ||
11552 | while :; do | ||
11553 | cat >conftest.$ac_ext <<_ACEOF | ||
11554 | #line 11554 "configure" | ||
11555 | #include "confdefs.h" | ||
11556 | $ac_includes_default | ||
11557 | int | ||
11558 | main () | ||
11559 | { | ||
11560 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11561 | ; | ||
11562 | return 0; | ||
11563 | } | ||
11564 | _ACEOF | ||
11565 | rm -f conftest.$ac_objext | ||
11566 | if { (eval echo "$as_me:11566: \"$ac_compile\"") >&5 | ||
11567 | (eval $ac_compile) 2>&5 | ||
11568 | ac_status=$? | ||
11569 | echo "$as_me:11569: \$? = $ac_status" >&5 | ||
11570 | (exit $ac_status); } && | ||
11571 | { ac_try='test -s conftest.$ac_objext' | ||
11572 | { (eval echo "$as_me:11572: \"$ac_try\"") >&5 | ||
11573 | (eval $ac_try) 2>&5 | ||
11574 | ac_status=$? | ||
11575 | echo "$as_me:11575: \$? = $ac_status" >&5 | ||
11576 | (exit $ac_status); }; }; then | ||
11577 | ac_hi=$ac_mid; break | ||
11578 | else | ||
11579 | echo "$as_me: failed program was:" >&5 | ||
11580 | cat conftest.$ac_ext >&5 | ||
11581 | ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11582 | fi | ||
11583 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11584 | done | ||
11585 | else | ||
11586 | echo "$as_me: failed program was:" >&5 | ||
11587 | cat conftest.$ac_ext >&5 | ||
11588 | ac_hi=-1 ac_mid=-1 | ||
11589 | while :; do | ||
11590 | cat >conftest.$ac_ext <<_ACEOF | ||
11591 | #line 11591 "configure" | ||
11592 | #include "confdefs.h" | ||
11593 | $ac_includes_default | ||
11594 | int | ||
11595 | main () | ||
11596 | { | ||
11597 | int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)] | ||
11598 | ; | ||
11599 | return 0; | ||
11600 | } | ||
11601 | _ACEOF | ||
11602 | rm -f conftest.$ac_objext | ||
11603 | if { (eval echo "$as_me:11603: \"$ac_compile\"") >&5 | ||
11604 | (eval $ac_compile) 2>&5 | ||
11605 | ac_status=$? | ||
11606 | echo "$as_me:11606: \$? = $ac_status" >&5 | ||
11607 | (exit $ac_status); } && | ||
11608 | { ac_try='test -s conftest.$ac_objext' | ||
11609 | { (eval echo "$as_me:11609: \"$ac_try\"") >&5 | ||
11610 | (eval $ac_try) 2>&5 | ||
11611 | ac_status=$? | ||
11612 | echo "$as_me:11612: \$? = $ac_status" >&5 | ||
11613 | (exit $ac_status); }; }; then | ||
11614 | ac_lo=$ac_mid; break | ||
11615 | else | ||
11616 | echo "$as_me: failed program was:" >&5 | ||
11617 | cat conftest.$ac_ext >&5 | ||
11618 | ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` | ||
11619 | fi | ||
11620 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11621 | done | ||
11622 | fi | ||
11623 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11624 | # Binary search between lo and hi bounds. | ||
11625 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11626 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11627 | cat >conftest.$ac_ext <<_ACEOF | ||
11628 | #line 11628 "configure" | ||
11629 | #include "confdefs.h" | ||
11630 | $ac_includes_default | ||
11631 | int | ||
11632 | main () | ||
11633 | { | ||
11634 | int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)] | ||
11635 | ; | ||
11636 | return 0; | ||
11637 | } | ||
11638 | _ACEOF | ||
11639 | rm -f conftest.$ac_objext | ||
11640 | if { (eval echo "$as_me:11640: \"$ac_compile\"") >&5 | ||
11641 | (eval $ac_compile) 2>&5 | ||
11642 | ac_status=$? | ||
11643 | echo "$as_me:11643: \$? = $ac_status" >&5 | ||
11644 | (exit $ac_status); } && | ||
11645 | { ac_try='test -s conftest.$ac_objext' | ||
11646 | { (eval echo "$as_me:11646: \"$ac_try\"") >&5 | ||
11647 | (eval $ac_try) 2>&5 | ||
11648 | ac_status=$? | ||
11649 | echo "$as_me:11649: \$? = $ac_status" >&5 | ||
11650 | (exit $ac_status); }; }; then | ||
11651 | ac_hi=$ac_mid | ||
11652 | else | ||
11653 | echo "$as_me: failed program was:" >&5 | ||
11654 | cat conftest.$ac_ext >&5 | ||
11655 | ac_lo=`expr $ac_mid + 1` | ||
11656 | fi | ||
11657 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11658 | done | ||
11659 | ac_cv_sizeof_long_long_int=$ac_lo | ||
11660 | else | ||
11661 | if test "$cross_compiling" = yes; then | ||
11662 | { { echo "$as_me:11662: error: cannot run test program while cross compiling" >&5 | ||
11663 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11664 | { (exit 1); exit 1; }; } | ||
11665 | else | ||
11666 | cat >conftest.$ac_ext <<_ACEOF | ||
11667 | #line 11667 "configure" | ||
11668 | #include "confdefs.h" | ||
11669 | $ac_includes_default | ||
11670 | int | ||
11671 | main () | ||
11672 | { | ||
11673 | FILE *f = fopen ("conftest.val", "w"); | ||
11674 | if (!f) | ||
11675 | exit (1); | ||
11676 | fprintf (f, "%d", (sizeof (long long int))); | ||
11677 | fclose (f); | ||
11678 | ; | ||
11679 | return 0; | ||
11680 | } | ||
11681 | _ACEOF | ||
11682 | rm -f conftest$ac_exeext | ||
11683 | if { (eval echo "$as_me:11683: \"$ac_link\"") >&5 | ||
11684 | (eval $ac_link) 2>&5 | ||
11685 | ac_status=$? | ||
11686 | echo "$as_me:11686: \$? = $ac_status" >&5 | ||
11687 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11688 | { (eval echo "$as_me:11688: \"$ac_try\"") >&5 | ||
11689 | (eval $ac_try) 2>&5 | ||
11690 | ac_status=$? | ||
11691 | echo "$as_me:11691: \$? = $ac_status" >&5 | ||
11692 | (exit $ac_status); }; }; then | ||
11693 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11694 | else | ||
11695 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11696 | echo "$as_me: failed program was:" >&5 | ||
11697 | cat conftest.$ac_ext >&5 | ||
11698 | fi | ||
11699 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11700 | fi | ||
11701 | fi | ||
11702 | rm -f conftest.val | ||
11703 | else | ||
11704 | ac_cv_sizeof_long_long_int=0 | ||
11705 | fi | ||
11706 | fi | ||
11707 | echo "$as_me:11707: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11708 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11709 | cat >>confdefs.h <<EOF | ||
11710 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11711 | EOF | ||
11712 | |||
11713 | # Sanity check long long for some platforms (AIX) | ||
11714 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11715 | ac_cv_sizeof_long_long_int=0 | ||
11716 | fi | ||
11717 | |||
11718 | # More checks for data types | ||
11719 | echo "$as_me:11719: checking for u_int type" >&5 | ||
11720 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11721 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11723 | else | ||
11724 | |||
11725 | cat >conftest.$ac_ext <<_ACEOF | ||
11726 | #line 11726 "configure" | ||
11727 | #include "confdefs.h" | ||
11728 | #include <sys/types.h> | ||
11729 | int | ||
11730 | main () | ||
11731 | { | ||
11732 | u_int a; a = 1; | ||
11733 | ; | ||
11734 | return 0; | ||
11735 | } | ||
11736 | _ACEOF | ||
11737 | rm -f conftest.$ac_objext | ||
11738 | if { (eval echo "$as_me:11738: \"$ac_compile\"") >&5 | ||
11739 | (eval $ac_compile) 2>&5 | ||
11740 | ac_status=$? | ||
11741 | echo "$as_me:11741: \$? = $ac_status" >&5 | ||
11742 | (exit $ac_status); } && | ||
11743 | { ac_try='test -s conftest.$ac_objext' | ||
11744 | { (eval echo "$as_me:11744: \"$ac_try\"") >&5 | ||
11745 | (eval $ac_try) 2>&5 | ||
11746 | ac_status=$? | ||
11747 | echo "$as_me:11747: \$? = $ac_status" >&5 | ||
11748 | (exit $ac_status); }; }; then | ||
11749 | ac_cv_have_u_int="yes" | ||
11750 | else | ||
11751 | echo "$as_me: failed program was:" >&5 | ||
11752 | cat conftest.$ac_ext >&5 | ||
11753 | ac_cv_have_u_int="no" | ||
11754 | |||
11755 | fi | ||
11756 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11757 | |||
11758 | fi | ||
11759 | echo "$as_me:11759: result: $ac_cv_have_u_int" >&5 | ||
11760 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
11761 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
11762 | cat >>confdefs.h <<\EOF | ||
11763 | #define HAVE_U_INT 1 | ||
11764 | EOF | ||
11765 | |||
11766 | have_u_int=1 | ||
11767 | fi | ||
11768 | |||
11769 | echo "$as_me:11769: checking for intXX_t types" >&5 | ||
11770 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
11771 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
11772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11773 | else | ||
11774 | |||
11775 | cat >conftest.$ac_ext <<_ACEOF | ||
11776 | #line 11776 "configure" | ||
11777 | #include "confdefs.h" | ||
11778 | #include <sys/types.h> | ||
11779 | int | ||
11780 | main () | ||
11781 | { | ||
11782 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11783 | ; | ||
11784 | return 0; | ||
11785 | } | ||
11786 | _ACEOF | ||
11787 | rm -f conftest.$ac_objext | ||
11788 | if { (eval echo "$as_me:11788: \"$ac_compile\"") >&5 | ||
11789 | (eval $ac_compile) 2>&5 | ||
11790 | ac_status=$? | ||
11791 | echo "$as_me:11791: \$? = $ac_status" >&5 | ||
11792 | (exit $ac_status); } && | ||
11793 | { ac_try='test -s conftest.$ac_objext' | ||
11794 | { (eval echo "$as_me:11794: \"$ac_try\"") >&5 | ||
11795 | (eval $ac_try) 2>&5 | ||
11796 | ac_status=$? | ||
11797 | echo "$as_me:11797: \$? = $ac_status" >&5 | ||
11798 | (exit $ac_status); }; }; then | ||
11799 | ac_cv_have_intxx_t="yes" | ||
11800 | else | ||
11801 | echo "$as_me: failed program was:" >&5 | ||
11802 | cat conftest.$ac_ext >&5 | ||
11803 | ac_cv_have_intxx_t="no" | ||
11804 | |||
11805 | fi | ||
11806 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11807 | |||
11808 | fi | ||
11809 | echo "$as_me:11809: result: $ac_cv_have_intxx_t" >&5 | ||
11810 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
11811 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
11812 | cat >>confdefs.h <<\EOF | ||
11813 | #define HAVE_INTXX_T 1 | ||
11814 | EOF | ||
11815 | |||
11816 | have_intxx_t=1 | ||
11817 | fi | ||
11818 | |||
11819 | if (test -z "$have_intxx_t" && \ | ||
11820 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
11821 | then | ||
11822 | echo "$as_me:11822: checking for intXX_t types in stdint.h" >&5 | ||
11823 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
11824 | cat >conftest.$ac_ext <<_ACEOF | ||
11825 | #line 11825 "configure" | ||
11826 | #include "confdefs.h" | ||
11827 | #include <stdint.h> | ||
11828 | int | ||
11829 | main () | ||
11830 | { | ||
11831 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
11832 | ; | ||
11833 | return 0; | ||
11834 | } | ||
11835 | _ACEOF | ||
11836 | rm -f conftest.$ac_objext | ||
11837 | if { (eval echo "$as_me:11837: \"$ac_compile\"") >&5 | ||
11838 | (eval $ac_compile) 2>&5 | ||
11839 | ac_status=$? | ||
11840 | echo "$as_me:11840: \$? = $ac_status" >&5 | ||
11841 | (exit $ac_status); } && | ||
11842 | { ac_try='test -s conftest.$ac_objext' | ||
11843 | { (eval echo "$as_me:11843: \"$ac_try\"") >&5 | ||
11844 | (eval $ac_try) 2>&5 | ||
11845 | ac_status=$? | ||
11846 | echo "$as_me:11846: \$? = $ac_status" >&5 | ||
11847 | (exit $ac_status); }; }; then | ||
11848 | |||
11849 | cat >>confdefs.h <<\EOF | ||
11850 | #define HAVE_INTXX_T 1 | ||
11851 | EOF | ||
11852 | |||
11853 | echo "$as_me:11853: result: yes" >&5 | ||
11854 | echo "${ECHO_T}yes" >&6 | ||
11855 | |||
11856 | else | ||
11857 | echo "$as_me: failed program was:" >&5 | ||
11858 | cat conftest.$ac_ext >&5 | ||
11859 | echo "$as_me:11859: result: no" >&5 | ||
11860 | echo "${ECHO_T}no" >&6 | ||
11861 | |||
11862 | fi | ||
11863 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11864 | fi | ||
11865 | |||
11866 | echo "$as_me:11866: checking for int64_t type" >&5 | ||
11867 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
11868 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
11869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11870 | else | ||
11871 | |||
11872 | cat >conftest.$ac_ext <<_ACEOF | ||
11873 | #line 11873 "configure" | ||
11874 | #include "confdefs.h" | ||
11875 | |||
11876 | #include <sys/types.h> | ||
11877 | #ifdef HAVE_STDINT_H | ||
11878 | # include <stdint.h> | ||
11879 | #endif | ||
11880 | #include <sys/socket.h> | ||
11881 | #ifdef HAVE_SYS_BITYPES_H | ||
11882 | # include <sys/bitypes.h> | ||
11883 | #endif | ||
11884 | |||
11885 | int | ||
11886 | main () | ||
11887 | { | ||
11888 | int64_t a; a = 1; | ||
11889 | ; | ||
11890 | return 0; | ||
11891 | } | ||
11892 | _ACEOF | ||
11893 | rm -f conftest.$ac_objext | ||
11894 | if { (eval echo "$as_me:11894: \"$ac_compile\"") >&5 | ||
11895 | (eval $ac_compile) 2>&5 | ||
11896 | ac_status=$? | ||
11897 | echo "$as_me:11897: \$? = $ac_status" >&5 | ||
11898 | (exit $ac_status); } && | ||
11899 | { ac_try='test -s conftest.$ac_objext' | ||
11900 | { (eval echo "$as_me:11900: \"$ac_try\"") >&5 | ||
11901 | (eval $ac_try) 2>&5 | ||
11902 | ac_status=$? | ||
11903 | echo "$as_me:11903: \$? = $ac_status" >&5 | ||
11904 | (exit $ac_status); }; }; then | ||
11905 | ac_cv_have_int64_t="yes" | ||
11906 | else | ||
11907 | echo "$as_me: failed program was:" >&5 | ||
11908 | cat conftest.$ac_ext >&5 | ||
11909 | ac_cv_have_int64_t="no" | ||
11910 | |||
11911 | fi | ||
11912 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11913 | |||
11914 | fi | ||
11915 | echo "$as_me:11915: result: $ac_cv_have_int64_t" >&5 | ||
11916 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
11917 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
11918 | cat >>confdefs.h <<\EOF | ||
11919 | #define HAVE_INT64_T 1 | ||
11920 | EOF | ||
11921 | |||
11922 | fi | ||
11923 | |||
11924 | echo "$as_me:11924: checking for u_intXX_t types" >&5 | ||
11925 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
11926 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11928 | else | ||
11929 | |||
11930 | cat >conftest.$ac_ext <<_ACEOF | ||
11931 | #line 11931 "configure" | ||
11932 | #include "confdefs.h" | ||
11933 | #include <sys/types.h> | ||
11934 | int | ||
11935 | main () | ||
11936 | { | ||
11937 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11938 | ; | ||
11939 | return 0; | ||
11940 | } | ||
11941 | _ACEOF | ||
11942 | rm -f conftest.$ac_objext | ||
11943 | if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5 | ||
11944 | (eval $ac_compile) 2>&5 | ||
11945 | ac_status=$? | ||
11946 | echo "$as_me:11946: \$? = $ac_status" >&5 | ||
11947 | (exit $ac_status); } && | ||
11948 | { ac_try='test -s conftest.$ac_objext' | ||
11949 | { (eval echo "$as_me:11949: \"$ac_try\"") >&5 | ||
11950 | (eval $ac_try) 2>&5 | ||
11951 | ac_status=$? | ||
11952 | echo "$as_me:11952: \$? = $ac_status" >&5 | ||
11953 | (exit $ac_status); }; }; then | ||
11954 | ac_cv_have_u_intxx_t="yes" | ||
11955 | else | ||
11956 | echo "$as_me: failed program was:" >&5 | ||
11957 | cat conftest.$ac_ext >&5 | ||
11958 | ac_cv_have_u_intxx_t="no" | ||
11959 | |||
11960 | fi | ||
11961 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11962 | |||
11963 | fi | ||
11964 | echo "$as_me:11964: result: $ac_cv_have_u_intxx_t" >&5 | ||
11965 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
11966 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
11967 | cat >>confdefs.h <<\EOF | ||
11968 | #define HAVE_U_INTXX_T 1 | ||
11969 | EOF | ||
11970 | |||
11971 | have_u_intxx_t=1 | ||
11972 | fi | ||
11973 | |||
11974 | if test -z "$have_u_intxx_t" ; then | ||
11975 | echo "$as_me:11975: checking for u_intXX_t types in sys/socket.h" >&5 | ||
11976 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
11977 | cat >conftest.$ac_ext <<_ACEOF | ||
11978 | #line 11978 "configure" | ||
11979 | #include "confdefs.h" | ||
11980 | #include <sys/socket.h> | ||
11981 | int | ||
11982 | main () | ||
11983 | { | ||
11984 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
11985 | ; | ||
11986 | return 0; | ||
11987 | } | ||
11988 | _ACEOF | ||
11989 | rm -f conftest.$ac_objext | ||
11990 | if { (eval echo "$as_me:11990: \"$ac_compile\"") >&5 | ||
11991 | (eval $ac_compile) 2>&5 | ||
11992 | ac_status=$? | ||
11993 | echo "$as_me:11993: \$? = $ac_status" >&5 | ||
11994 | (exit $ac_status); } && | ||
11995 | { ac_try='test -s conftest.$ac_objext' | ||
11996 | { (eval echo "$as_me:11996: \"$ac_try\"") >&5 | ||
11997 | (eval $ac_try) 2>&5 | ||
11998 | ac_status=$? | ||
11999 | echo "$as_me:11999: \$? = $ac_status" >&5 | ||
12000 | (exit $ac_status); }; }; then | ||
12001 | |||
12002 | cat >>confdefs.h <<\EOF | ||
12003 | #define HAVE_U_INTXX_T 1 | ||
12004 | EOF | ||
12005 | |||
12006 | echo "$as_me:12006: result: yes" >&5 | ||
12007 | echo "${ECHO_T}yes" >&6 | ||
12008 | |||
12009 | else | ||
12010 | echo "$as_me: failed program was:" >&5 | ||
12011 | cat conftest.$ac_ext >&5 | ||
12012 | echo "$as_me:12012: result: no" >&5 | ||
12013 | echo "${ECHO_T}no" >&6 | ||
12014 | |||
12015 | fi | ||
12016 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12017 | fi | ||
12018 | |||
12019 | echo "$as_me:12019: checking for u_int64_t types" >&5 | ||
12020 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
12021 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
12022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12023 | else | ||
12024 | |||
12025 | cat >conftest.$ac_ext <<_ACEOF | ||
12026 | #line 12026 "configure" | ||
12027 | #include "confdefs.h" | ||
12028 | #include <sys/types.h> | ||
12029 | int | ||
12030 | main () | ||
12031 | { | ||
12032 | u_int64_t a; a = 1; | ||
12033 | ; | ||
12034 | return 0; | ||
12035 | } | ||
12036 | _ACEOF | ||
12037 | rm -f conftest.$ac_objext | ||
12038 | if { (eval echo "$as_me:12038: \"$ac_compile\"") >&5 | ||
12039 | (eval $ac_compile) 2>&5 | ||
12040 | ac_status=$? | ||
12041 | echo "$as_me:12041: \$? = $ac_status" >&5 | ||
12042 | (exit $ac_status); } && | ||
12043 | { ac_try='test -s conftest.$ac_objext' | ||
12044 | { (eval echo "$as_me:12044: \"$ac_try\"") >&5 | ||
12045 | (eval $ac_try) 2>&5 | ||
12046 | ac_status=$? | ||
12047 | echo "$as_me:12047: \$? = $ac_status" >&5 | ||
12048 | (exit $ac_status); }; }; then | ||
12049 | ac_cv_have_u_int64_t="yes" | ||
12050 | else | ||
12051 | echo "$as_me: failed program was:" >&5 | ||
12052 | cat conftest.$ac_ext >&5 | ||
12053 | ac_cv_have_u_int64_t="no" | ||
12054 | |||
12055 | fi | ||
12056 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12057 | |||
12058 | fi | ||
12059 | echo "$as_me:12059: result: $ac_cv_have_u_int64_t" >&5 | ||
12060 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
12061 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12062 | cat >>confdefs.h <<\EOF | ||
12063 | #define HAVE_U_INT64_T 1 | ||
12064 | EOF | ||
12065 | |||
12066 | have_u_int64_t=1 | ||
12067 | fi | ||
12068 | |||
12069 | if test -z "$have_u_int64_t" ; then | ||
12070 | echo "$as_me:12070: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12071 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
12072 | cat >conftest.$ac_ext <<_ACEOF | ||
12073 | #line 12073 "configure" | ||
12074 | #include "confdefs.h" | ||
12075 | #include <sys/bitypes.h> | ||
12076 | int | ||
12077 | main () | ||
12078 | { | ||
12079 | u_int64_t a; a = 1 | ||
12080 | ; | ||
12081 | return 0; | ||
12082 | } | ||
12083 | _ACEOF | ||
12084 | rm -f conftest.$ac_objext | ||
12085 | if { (eval echo "$as_me:12085: \"$ac_compile\"") >&5 | ||
12086 | (eval $ac_compile) 2>&5 | ||
12087 | ac_status=$? | ||
12088 | echo "$as_me:12088: \$? = $ac_status" >&5 | ||
12089 | (exit $ac_status); } && | ||
12090 | { ac_try='test -s conftest.$ac_objext' | ||
12091 | { (eval echo "$as_me:12091: \"$ac_try\"") >&5 | ||
12092 | (eval $ac_try) 2>&5 | ||
12093 | ac_status=$? | ||
12094 | echo "$as_me:12094: \$? = $ac_status" >&5 | ||
12095 | (exit $ac_status); }; }; then | ||
12096 | |||
12097 | cat >>confdefs.h <<\EOF | ||
12098 | #define HAVE_U_INT64_T 1 | ||
12099 | EOF | ||
12100 | |||
12101 | echo "$as_me:12101: result: yes" >&5 | ||
12102 | echo "${ECHO_T}yes" >&6 | ||
12103 | |||
12104 | else | ||
12105 | echo "$as_me: failed program was:" >&5 | ||
12106 | cat conftest.$ac_ext >&5 | ||
12107 | echo "$as_me:12107: result: no" >&5 | ||
12108 | echo "${ECHO_T}no" >&6 | ||
12109 | |||
12110 | fi | ||
12111 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12112 | fi | ||
12113 | |||
12114 | if test -z "$have_u_intxx_t" ; then | ||
12115 | echo "$as_me:12115: checking for uintXX_t types" >&5 | ||
12116 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
12117 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
12118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12119 | else | ||
12120 | |||
12121 | cat >conftest.$ac_ext <<_ACEOF | ||
12122 | #line 12122 "configure" | ||
12123 | #include "confdefs.h" | ||
12124 | |||
12125 | #include <sys/types.h> | ||
12126 | |||
12127 | int | ||
12128 | main () | ||
12129 | { | ||
12130 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12131 | ; | ||
12132 | return 0; | ||
12133 | } | ||
12134 | _ACEOF | ||
12135 | rm -f conftest.$ac_objext | ||
12136 | if { (eval echo "$as_me:12136: \"$ac_compile\"") >&5 | ||
12137 | (eval $ac_compile) 2>&5 | ||
12138 | ac_status=$? | ||
12139 | echo "$as_me:12139: \$? = $ac_status" >&5 | ||
12140 | (exit $ac_status); } && | ||
12141 | { ac_try='test -s conftest.$ac_objext' | ||
12142 | { (eval echo "$as_me:12142: \"$ac_try\"") >&5 | ||
12143 | (eval $ac_try) 2>&5 | ||
12144 | ac_status=$? | ||
12145 | echo "$as_me:12145: \$? = $ac_status" >&5 | ||
12146 | (exit $ac_status); }; }; then | ||
12147 | ac_cv_have_uintxx_t="yes" | ||
12148 | else | ||
12149 | echo "$as_me: failed program was:" >&5 | ||
12150 | cat conftest.$ac_ext >&5 | ||
12151 | ac_cv_have_uintxx_t="no" | ||
12152 | |||
12153 | fi | ||
12154 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12155 | |||
12156 | fi | ||
12157 | echo "$as_me:12157: result: $ac_cv_have_uintxx_t" >&5 | ||
12158 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
12159 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12160 | cat >>confdefs.h <<\EOF | ||
12161 | #define HAVE_UINTXX_T 1 | ||
12162 | EOF | ||
12163 | |||
12164 | fi | ||
12165 | fi | ||
12166 | |||
12167 | if test -z "$have_uintxx_t" ; then | ||
12168 | echo "$as_me:12168: checking for uintXX_t types in stdint.h" >&5 | ||
12169 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
12170 | cat >conftest.$ac_ext <<_ACEOF | ||
12171 | #line 12171 "configure" | ||
12172 | #include "confdefs.h" | ||
12173 | #include <stdint.h> | ||
12174 | int | ||
12175 | main () | ||
12176 | { | ||
12177 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12178 | ; | ||
12179 | return 0; | ||
12180 | } | ||
12181 | _ACEOF | ||
12182 | rm -f conftest.$ac_objext | ||
12183 | if { (eval echo "$as_me:12183: \"$ac_compile\"") >&5 | ||
12184 | (eval $ac_compile) 2>&5 | ||
12185 | ac_status=$? | ||
12186 | echo "$as_me:12186: \$? = $ac_status" >&5 | ||
12187 | (exit $ac_status); } && | ||
12188 | { ac_try='test -s conftest.$ac_objext' | ||
12189 | { (eval echo "$as_me:12189: \"$ac_try\"") >&5 | ||
12190 | (eval $ac_try) 2>&5 | ||
12191 | ac_status=$? | ||
12192 | echo "$as_me:12192: \$? = $ac_status" >&5 | ||
12193 | (exit $ac_status); }; }; then | ||
12194 | |||
12195 | cat >>confdefs.h <<\EOF | ||
12196 | #define HAVE_UINTXX_T 1 | ||
12197 | EOF | ||
12198 | |||
12199 | echo "$as_me:12199: result: yes" >&5 | ||
12200 | echo "${ECHO_T}yes" >&6 | ||
12201 | |||
12202 | else | ||
12203 | echo "$as_me: failed program was:" >&5 | ||
12204 | cat conftest.$ac_ext >&5 | ||
12205 | echo "$as_me:12205: result: no" >&5 | ||
12206 | echo "${ECHO_T}no" >&6 | ||
12207 | |||
12208 | fi | ||
12209 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12210 | fi | ||
12211 | |||
12212 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12213 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12214 | then | ||
12215 | echo "$as_me:12215: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12216 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
12217 | cat >conftest.$ac_ext <<_ACEOF | ||
12218 | #line 12218 "configure" | ||
12219 | #include "confdefs.h" | ||
12220 | |||
12221 | #include <sys/bitypes.h> | ||
12222 | |||
12223 | int | ||
12224 | main () | ||
12225 | { | ||
12226 | |||
12227 | int8_t a; int16_t b; int32_t c; | ||
12228 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12229 | a = b = c = e = f = g = 1; | ||
12230 | |||
12231 | ; | ||
12232 | return 0; | ||
12233 | } | ||
12234 | _ACEOF | ||
12235 | rm -f conftest.$ac_objext | ||
12236 | if { (eval echo "$as_me:12236: \"$ac_compile\"") >&5 | ||
12237 | (eval $ac_compile) 2>&5 | ||
12238 | ac_status=$? | ||
12239 | echo "$as_me:12239: \$? = $ac_status" >&5 | ||
12240 | (exit $ac_status); } && | ||
12241 | { ac_try='test -s conftest.$ac_objext' | ||
12242 | { (eval echo "$as_me:12242: \"$ac_try\"") >&5 | ||
12243 | (eval $ac_try) 2>&5 | ||
12244 | ac_status=$? | ||
12245 | echo "$as_me:12245: \$? = $ac_status" >&5 | ||
12246 | (exit $ac_status); }; }; then | ||
12247 | |||
12248 | cat >>confdefs.h <<\EOF | ||
12249 | #define HAVE_U_INTXX_T 1 | ||
12250 | EOF | ||
12251 | |||
12252 | cat >>confdefs.h <<\EOF | ||
12253 | #define HAVE_INTXX_T 1 | ||
12254 | EOF | ||
12255 | |||
12256 | echo "$as_me:12256: result: yes" >&5 | ||
12257 | echo "${ECHO_T}yes" >&6 | ||
12258 | |||
12259 | else | ||
12260 | echo "$as_me: failed program was:" >&5 | ||
12261 | cat conftest.$ac_ext >&5 | ||
12262 | echo "$as_me:12262: result: no" >&5 | ||
12263 | echo "${ECHO_T}no" >&6 | ||
12264 | |||
12265 | fi | ||
12266 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12267 | fi | ||
12268 | |||
12269 | echo "$as_me:12269: checking for u_char" >&5 | ||
12270 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
12271 | if test "${ac_cv_have_u_char+set}" = set; then | ||
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12273 | else | ||
12274 | |||
12275 | cat >conftest.$ac_ext <<_ACEOF | ||
12276 | #line 12276 "configure" | ||
12277 | #include "confdefs.h" | ||
12278 | |||
12279 | #include <sys/types.h> | ||
12280 | |||
12281 | int | ||
12282 | main () | ||
12283 | { | ||
12284 | u_char foo; foo = 125; | ||
12285 | ; | ||
12286 | return 0; | ||
12287 | } | ||
12288 | _ACEOF | ||
12289 | rm -f conftest.$ac_objext | ||
12290 | if { (eval echo "$as_me:12290: \"$ac_compile\"") >&5 | ||
12291 | (eval $ac_compile) 2>&5 | ||
12292 | ac_status=$? | ||
12293 | echo "$as_me:12293: \$? = $ac_status" >&5 | ||
12294 | (exit $ac_status); } && | ||
12295 | { ac_try='test -s conftest.$ac_objext' | ||
12296 | { (eval echo "$as_me:12296: \"$ac_try\"") >&5 | ||
12297 | (eval $ac_try) 2>&5 | ||
12298 | ac_status=$? | ||
12299 | echo "$as_me:12299: \$? = $ac_status" >&5 | ||
12300 | (exit $ac_status); }; }; then | ||
12301 | ac_cv_have_u_char="yes" | ||
12302 | else | ||
12303 | echo "$as_me: failed program was:" >&5 | ||
12304 | cat conftest.$ac_ext >&5 | ||
12305 | ac_cv_have_u_char="no" | ||
12306 | |||
12307 | fi | ||
12308 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12309 | |||
12310 | fi | ||
12311 | echo "$as_me:12311: result: $ac_cv_have_u_char" >&5 | ||
12312 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
12313 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12314 | cat >>confdefs.h <<\EOF | ||
12315 | #define HAVE_U_CHAR 1 | ||
12316 | EOF | ||
12317 | |||
12318 | fi | ||
12319 | |||
12320 | echo "$as_me:12320: checking for socklen_t" >&5 | ||
12321 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
12322 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
12323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12324 | else | ||
12325 | cat >conftest.$ac_ext <<_ACEOF | ||
12326 | #line 12326 "configure" | ||
12327 | #include "confdefs.h" | ||
12328 | #include <sys/types.h> | ||
12329 | #include <sys/socket.h> | ||
12330 | |||
12331 | int | ||
12332 | main () | ||
12333 | { | ||
12334 | if ((socklen_t *) 0) | ||
12335 | return 0; | ||
12336 | if (sizeof (socklen_t)) | ||
12337 | return 0; | ||
12338 | ; | ||
12339 | return 0; | ||
12340 | } | ||
12341 | _ACEOF | ||
12342 | rm -f conftest.$ac_objext | ||
12343 | if { (eval echo "$as_me:12343: \"$ac_compile\"") >&5 | ||
12344 | (eval $ac_compile) 2>&5 | ||
12345 | ac_status=$? | ||
12346 | echo "$as_me:12346: \$? = $ac_status" >&5 | ||
12347 | (exit $ac_status); } && | ||
12348 | { ac_try='test -s conftest.$ac_objext' | ||
12349 | { (eval echo "$as_me:12349: \"$ac_try\"") >&5 | ||
12350 | (eval $ac_try) 2>&5 | ||
12351 | ac_status=$? | ||
12352 | echo "$as_me:12352: \$? = $ac_status" >&5 | ||
12353 | (exit $ac_status); }; }; then | ||
12354 | ac_cv_type_socklen_t=yes | ||
12355 | else | ||
12356 | echo "$as_me: failed program was:" >&5 | ||
12357 | cat conftest.$ac_ext >&5 | ||
12358 | ac_cv_type_socklen_t=no | ||
12359 | fi | ||
12360 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12361 | fi | ||
12362 | echo "$as_me:12362: result: $ac_cv_type_socklen_t" >&5 | ||
12363 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
12364 | if test $ac_cv_type_socklen_t = yes; then | ||
12365 | : | ||
12366 | else | ||
12367 | |||
12368 | echo "$as_me:12368: checking for socklen_t equivalent" >&5 | ||
12369 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
12370 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12372 | else | ||
12373 | |||
12374 | # Systems have either "struct sockaddr *" or | ||
12375 | # "void *" as the second argument to getpeername | ||
12376 | curl_cv_socklen_t_equiv= | ||
12377 | for arg2 in "struct sockaddr" void; do | ||
12378 | for t in int size_t unsigned long "unsigned long"; do | ||
12379 | cat >conftest.$ac_ext <<_ACEOF | ||
12380 | #line 12380 "configure" | ||
12381 | #include "confdefs.h" | ||
12382 | |||
12383 | #include <sys/types.h> | ||
12384 | #include <sys/socket.h> | ||
12385 | |||
12386 | int getpeername (int, $arg2 *, $t *); | ||
12387 | |||
12388 | int | ||
12389 | main () | ||
12390 | { | ||
12391 | |||
12392 | $t len; | ||
12393 | getpeername(0,0,&len); | ||
12394 | |||
12395 | ; | ||
12396 | return 0; | ||
12397 | } | ||
12398 | _ACEOF | ||
12399 | rm -f conftest.$ac_objext | ||
12400 | if { (eval echo "$as_me:12400: \"$ac_compile\"") >&5 | ||
12401 | (eval $ac_compile) 2>&5 | ||
12402 | ac_status=$? | ||
12403 | echo "$as_me:12403: \$? = $ac_status" >&5 | ||
12404 | (exit $ac_status); } && | ||
12405 | { ac_try='test -s conftest.$ac_objext' | ||
12406 | { (eval echo "$as_me:12406: \"$ac_try\"") >&5 | ||
12407 | (eval $ac_try) 2>&5 | ||
12408 | ac_status=$? | ||
12409 | echo "$as_me:12409: \$? = $ac_status" >&5 | ||
12410 | (exit $ac_status); }; }; then | ||
12411 | |||
12412 | curl_cv_socklen_t_equiv="$t" | ||
12413 | break | ||
12414 | |||
12415 | else | ||
12416 | echo "$as_me: failed program was:" >&5 | ||
12417 | cat conftest.$ac_ext >&5 | ||
12418 | fi | ||
12419 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12420 | done | ||
12421 | done | ||
12422 | |||
12423 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12424 | { { echo "$as_me:12424: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12425 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12426 | { (exit 1); exit 1; }; } | ||
12427 | fi | ||
12428 | |||
12429 | fi | ||
12430 | |||
12431 | echo "$as_me:12431: result: $curl_cv_socklen_t_equiv" >&5 | ||
12432 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12433 | |||
12434 | cat >>confdefs.h <<EOF | ||
12435 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12436 | EOF | ||
12437 | |||
12438 | fi | ||
12439 | |||
12440 | echo "$as_me:12440: checking for sig_atomic_t" >&5 | ||
12441 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12442 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12444 | else | ||
12445 | cat >conftest.$ac_ext <<_ACEOF | ||
12446 | #line 12446 "configure" | ||
12447 | #include "confdefs.h" | ||
12448 | #include <signal.h> | ||
12449 | |||
12450 | int | ||
12451 | main () | ||
12452 | { | ||
12453 | if ((sig_atomic_t *) 0) | ||
12454 | return 0; | ||
12455 | if (sizeof (sig_atomic_t)) | ||
12456 | return 0; | ||
12457 | ; | ||
12458 | return 0; | ||
12459 | } | ||
12460 | _ACEOF | ||
12461 | rm -f conftest.$ac_objext | ||
12462 | if { (eval echo "$as_me:12462: \"$ac_compile\"") >&5 | ||
12463 | (eval $ac_compile) 2>&5 | ||
12464 | ac_status=$? | ||
12465 | echo "$as_me:12465: \$? = $ac_status" >&5 | ||
12466 | (exit $ac_status); } && | ||
12467 | { ac_try='test -s conftest.$ac_objext' | ||
12468 | { (eval echo "$as_me:12468: \"$ac_try\"") >&5 | ||
12469 | (eval $ac_try) 2>&5 | ||
12470 | ac_status=$? | ||
12471 | echo "$as_me:12471: \$? = $ac_status" >&5 | ||
12472 | (exit $ac_status); }; }; then | ||
12473 | ac_cv_type_sig_atomic_t=yes | ||
12474 | else | ||
12475 | echo "$as_me: failed program was:" >&5 | ||
12476 | cat conftest.$ac_ext >&5 | ||
12477 | ac_cv_type_sig_atomic_t=no | ||
12478 | fi | ||
12479 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12480 | fi | ||
12481 | echo "$as_me:12481: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12482 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12483 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12484 | |||
12485 | cat >>confdefs.h <<EOF | ||
12486 | #define HAVE_SIG_ATOMIC_T 1 | ||
12487 | EOF | ||
12488 | |||
12489 | fi | ||
12490 | |||
12491 | echo "$as_me:12491: checking for size_t" >&5 | ||
12492 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12493 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12495 | else | ||
12496 | |||
12497 | cat >conftest.$ac_ext <<_ACEOF | ||
12498 | #line 12498 "configure" | ||
12499 | #include "confdefs.h" | ||
12500 | |||
12501 | #include <sys/types.h> | ||
12502 | |||
12503 | int | ||
12504 | main () | ||
12505 | { | ||
12506 | size_t foo; foo = 1235; | ||
12507 | ; | ||
12508 | return 0; | ||
12509 | } | ||
12510 | _ACEOF | ||
12511 | rm -f conftest.$ac_objext | ||
12512 | if { (eval echo "$as_me:12512: \"$ac_compile\"") >&5 | ||
12513 | (eval $ac_compile) 2>&5 | ||
12514 | ac_status=$? | ||
12515 | echo "$as_me:12515: \$? = $ac_status" >&5 | ||
12516 | (exit $ac_status); } && | ||
12517 | { ac_try='test -s conftest.$ac_objext' | ||
12518 | { (eval echo "$as_me:12518: \"$ac_try\"") >&5 | ||
12519 | (eval $ac_try) 2>&5 | ||
12520 | ac_status=$? | ||
12521 | echo "$as_me:12521: \$? = $ac_status" >&5 | ||
12522 | (exit $ac_status); }; }; then | ||
12523 | ac_cv_have_size_t="yes" | ||
12524 | else | ||
12525 | echo "$as_me: failed program was:" >&5 | ||
12526 | cat conftest.$ac_ext >&5 | ||
12527 | ac_cv_have_size_t="no" | ||
12528 | |||
12529 | fi | ||
12530 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12531 | |||
12532 | fi | ||
12533 | echo "$as_me:12533: result: $ac_cv_have_size_t" >&5 | ||
12534 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12535 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12536 | cat >>confdefs.h <<\EOF | ||
12537 | #define HAVE_SIZE_T 1 | ||
12538 | EOF | ||
12539 | |||
12540 | fi | ||
12541 | |||
12542 | echo "$as_me:12542: checking for ssize_t" >&5 | ||
12543 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12544 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12546 | else | ||
12547 | |||
12548 | cat >conftest.$ac_ext <<_ACEOF | ||
12549 | #line 12549 "configure" | ||
12550 | #include "confdefs.h" | ||
12551 | |||
12552 | #include <sys/types.h> | ||
12553 | |||
12554 | int | ||
12555 | main () | ||
12556 | { | ||
12557 | ssize_t foo; foo = 1235; | ||
12558 | ; | ||
12559 | return 0; | ||
12560 | } | ||
12561 | _ACEOF | ||
12562 | rm -f conftest.$ac_objext | ||
12563 | if { (eval echo "$as_me:12563: \"$ac_compile\"") >&5 | ||
12564 | (eval $ac_compile) 2>&5 | ||
12565 | ac_status=$? | ||
12566 | echo "$as_me:12566: \$? = $ac_status" >&5 | ||
12567 | (exit $ac_status); } && | ||
12568 | { ac_try='test -s conftest.$ac_objext' | ||
12569 | { (eval echo "$as_me:12569: \"$ac_try\"") >&5 | ||
12570 | (eval $ac_try) 2>&5 | ||
12571 | ac_status=$? | ||
12572 | echo "$as_me:12572: \$? = $ac_status" >&5 | ||
12573 | (exit $ac_status); }; }; then | ||
12574 | ac_cv_have_ssize_t="yes" | ||
12575 | else | ||
12576 | echo "$as_me: failed program was:" >&5 | ||
12577 | cat conftest.$ac_ext >&5 | ||
12578 | ac_cv_have_ssize_t="no" | ||
12579 | |||
12580 | fi | ||
12581 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12582 | |||
12583 | fi | ||
12584 | echo "$as_me:12584: result: $ac_cv_have_ssize_t" >&5 | ||
12585 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12586 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12587 | cat >>confdefs.h <<\EOF | ||
12588 | #define HAVE_SSIZE_T 1 | ||
12589 | EOF | ||
12590 | |||
12591 | fi | ||
12592 | |||
12593 | echo "$as_me:12593: checking for clock_t" >&5 | ||
12594 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12595 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12597 | else | ||
12598 | |||
12599 | cat >conftest.$ac_ext <<_ACEOF | ||
12600 | #line 12600 "configure" | ||
12601 | #include "confdefs.h" | ||
12602 | |||
12603 | #include <time.h> | ||
12604 | |||
12605 | int | ||
12606 | main () | ||
12607 | { | ||
12608 | clock_t foo; foo = 1235; | ||
12609 | ; | ||
12610 | return 0; | ||
12611 | } | ||
12612 | _ACEOF | ||
12613 | rm -f conftest.$ac_objext | ||
12614 | if { (eval echo "$as_me:12614: \"$ac_compile\"") >&5 | ||
12615 | (eval $ac_compile) 2>&5 | ||
12616 | ac_status=$? | ||
12617 | echo "$as_me:12617: \$? = $ac_status" >&5 | ||
12618 | (exit $ac_status); } && | ||
12619 | { ac_try='test -s conftest.$ac_objext' | ||
12620 | { (eval echo "$as_me:12620: \"$ac_try\"") >&5 | ||
12621 | (eval $ac_try) 2>&5 | ||
12622 | ac_status=$? | ||
12623 | echo "$as_me:12623: \$? = $ac_status" >&5 | ||
12624 | (exit $ac_status); }; }; then | ||
12625 | ac_cv_have_clock_t="yes" | ||
12626 | else | ||
12627 | echo "$as_me: failed program was:" >&5 | ||
12628 | cat conftest.$ac_ext >&5 | ||
12629 | ac_cv_have_clock_t="no" | ||
12630 | |||
12631 | fi | ||
12632 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12633 | |||
12634 | fi | ||
12635 | echo "$as_me:12635: result: $ac_cv_have_clock_t" >&5 | ||
12636 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12637 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12638 | cat >>confdefs.h <<\EOF | ||
12639 | #define HAVE_CLOCK_T 1 | ||
12640 | EOF | ||
12641 | |||
12642 | fi | ||
12643 | |||
12644 | echo "$as_me:12644: checking for sa_family_t" >&5 | ||
12645 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
12646 | if test "${ac_cv_have_sa_family_t+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 | |||
12654 | #include <sys/types.h> | ||
12655 | #include <sys/socket.h> | ||
12656 | |||
12657 | int | ||
12658 | main () | ||
12659 | { | ||
12660 | sa_family_t foo; foo = 1235; | ||
12661 | ; | ||
12662 | return 0; | ||
12663 | } | ||
12664 | _ACEOF | ||
12665 | rm -f conftest.$ac_objext | ||
12666 | if { (eval echo "$as_me:12666: \"$ac_compile\"") >&5 | ||
12667 | (eval $ac_compile) 2>&5 | ||
12668 | ac_status=$? | ||
12669 | echo "$as_me:12669: \$? = $ac_status" >&5 | ||
12670 | (exit $ac_status); } && | ||
12671 | { ac_try='test -s conftest.$ac_objext' | ||
12672 | { (eval echo "$as_me:12672: \"$ac_try\"") >&5 | ||
12673 | (eval $ac_try) 2>&5 | ||
12674 | ac_status=$? | ||
12675 | echo "$as_me:12675: \$? = $ac_status" >&5 | ||
12676 | (exit $ac_status); }; }; then | ||
12677 | ac_cv_have_sa_family_t="yes" | ||
12678 | else | ||
12679 | echo "$as_me: failed program was:" >&5 | ||
12680 | cat conftest.$ac_ext >&5 | ||
12681 | cat >conftest.$ac_ext <<_ACEOF | ||
12682 | #line 12682 "configure" | ||
12683 | #include "confdefs.h" | ||
12684 | |||
12685 | #include <sys/types.h> | ||
12686 | #include <sys/socket.h> | ||
12687 | #include <netinet/in.h> | ||
12688 | |||
12689 | int | ||
12690 | main () | ||
12691 | { | ||
12692 | sa_family_t foo; foo = 1235; | ||
12693 | ; | ||
12694 | return 0; | ||
12695 | } | ||
12696 | _ACEOF | ||
12697 | rm -f conftest.$ac_objext | ||
12698 | if { (eval echo "$as_me:12698: \"$ac_compile\"") >&5 | ||
12699 | (eval $ac_compile) 2>&5 | ||
12700 | ac_status=$? | ||
12701 | echo "$as_me:12701: \$? = $ac_status" >&5 | ||
12702 | (exit $ac_status); } && | ||
12703 | { ac_try='test -s conftest.$ac_objext' | ||
12704 | { (eval echo "$as_me:12704: \"$ac_try\"") >&5 | ||
12705 | (eval $ac_try) 2>&5 | ||
12706 | ac_status=$? | ||
12707 | echo "$as_me:12707: \$? = $ac_status" >&5 | ||
12708 | (exit $ac_status); }; }; then | ||
12709 | ac_cv_have_sa_family_t="yes" | ||
12710 | else | ||
12711 | echo "$as_me: failed program was:" >&5 | ||
12712 | cat conftest.$ac_ext >&5 | ||
12713 | ac_cv_have_sa_family_t="no" | ||
12714 | |||
12715 | fi | ||
12716 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12717 | |||
12718 | fi | ||
12719 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12720 | |||
12721 | fi | ||
12722 | echo "$as_me:12722: result: $ac_cv_have_sa_family_t" >&5 | ||
12723 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
12724 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
12725 | cat >>confdefs.h <<\EOF | ||
12726 | #define HAVE_SA_FAMILY_T 1 | ||
12727 | EOF | ||
12728 | |||
12729 | fi | ||
12730 | |||
12731 | echo "$as_me:12731: checking for pid_t" >&5 | ||
12732 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
12733 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
12734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12735 | else | ||
12736 | |||
12737 | cat >conftest.$ac_ext <<_ACEOF | ||
12738 | #line 12738 "configure" | ||
12739 | #include "confdefs.h" | ||
12740 | |||
12741 | #include <sys/types.h> | ||
12742 | |||
12743 | int | ||
12744 | main () | ||
12745 | { | ||
12746 | pid_t foo; foo = 1235; | ||
12747 | ; | ||
12748 | return 0; | ||
12749 | } | ||
12750 | _ACEOF | ||
12751 | rm -f conftest.$ac_objext | ||
12752 | if { (eval echo "$as_me:12752: \"$ac_compile\"") >&5 | ||
12753 | (eval $ac_compile) 2>&5 | ||
12754 | ac_status=$? | ||
12755 | echo "$as_me:12755: \$? = $ac_status" >&5 | ||
12756 | (exit $ac_status); } && | ||
12757 | { ac_try='test -s conftest.$ac_objext' | ||
12758 | { (eval echo "$as_me:12758: \"$ac_try\"") >&5 | ||
12759 | (eval $ac_try) 2>&5 | ||
12760 | ac_status=$? | ||
12761 | echo "$as_me:12761: \$? = $ac_status" >&5 | ||
12762 | (exit $ac_status); }; }; then | ||
12763 | ac_cv_have_pid_t="yes" | ||
12764 | else | ||
12765 | echo "$as_me: failed program was:" >&5 | ||
12766 | cat conftest.$ac_ext >&5 | ||
12767 | ac_cv_have_pid_t="no" | ||
12768 | |||
12769 | fi | ||
12770 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12771 | |||
12772 | fi | ||
12773 | echo "$as_me:12773: result: $ac_cv_have_pid_t" >&5 | ||
12774 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
12775 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
12776 | cat >>confdefs.h <<\EOF | ||
12777 | #define HAVE_PID_T 1 | ||
12778 | EOF | ||
12779 | |||
12780 | fi | ||
12781 | |||
12782 | echo "$as_me:12782: checking for mode_t" >&5 | ||
12783 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
12784 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12786 | else | ||
12787 | |||
12788 | cat >conftest.$ac_ext <<_ACEOF | ||
12789 | #line 12789 "configure" | ||
12790 | #include "confdefs.h" | ||
12791 | |||
12792 | #include <sys/types.h> | ||
12793 | |||
12794 | int | ||
12795 | main () | ||
12796 | { | ||
12797 | mode_t foo; foo = 1235; | ||
12798 | ; | ||
12799 | return 0; | ||
12800 | } | ||
12801 | _ACEOF | ||
12802 | rm -f conftest.$ac_objext | ||
12803 | if { (eval echo "$as_me:12803: \"$ac_compile\"") >&5 | ||
12804 | (eval $ac_compile) 2>&5 | ||
12805 | ac_status=$? | ||
12806 | echo "$as_me:12806: \$? = $ac_status" >&5 | ||
12807 | (exit $ac_status); } && | ||
12808 | { ac_try='test -s conftest.$ac_objext' | ||
12809 | { (eval echo "$as_me:12809: \"$ac_try\"") >&5 | ||
12810 | (eval $ac_try) 2>&5 | ||
12811 | ac_status=$? | ||
12812 | echo "$as_me:12812: \$? = $ac_status" >&5 | ||
12813 | (exit $ac_status); }; }; then | ||
12814 | ac_cv_have_mode_t="yes" | ||
12815 | else | ||
12816 | echo "$as_me: failed program was:" >&5 | ||
12817 | cat conftest.$ac_ext >&5 | ||
12818 | ac_cv_have_mode_t="no" | ||
12819 | |||
12820 | fi | ||
12821 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12822 | |||
12823 | fi | ||
12824 | echo "$as_me:12824: result: $ac_cv_have_mode_t" >&5 | ||
12825 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
12826 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
12827 | cat >>confdefs.h <<\EOF | ||
12828 | #define HAVE_MODE_T 1 | ||
12829 | EOF | ||
12830 | |||
12831 | fi | ||
12832 | |||
12833 | echo "$as_me:12833: checking for struct sockaddr_storage" >&5 | ||
12834 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
12835 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
12836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12837 | else | ||
12838 | |||
12839 | cat >conftest.$ac_ext <<_ACEOF | ||
12840 | #line 12840 "configure" | ||
12841 | #include "confdefs.h" | ||
12842 | |||
12843 | #include <sys/types.h> | ||
12844 | #include <sys/socket.h> | ||
12845 | |||
12846 | int | ||
12847 | main () | ||
12848 | { | ||
12849 | struct sockaddr_storage s; | ||
12850 | ; | ||
12851 | return 0; | ||
12852 | } | ||
12853 | _ACEOF | ||
12854 | rm -f conftest.$ac_objext | ||
12855 | if { (eval echo "$as_me:12855: \"$ac_compile\"") >&5 | ||
12856 | (eval $ac_compile) 2>&5 | ||
12857 | ac_status=$? | ||
12858 | echo "$as_me:12858: \$? = $ac_status" >&5 | ||
12859 | (exit $ac_status); } && | ||
12860 | { ac_try='test -s conftest.$ac_objext' | ||
12861 | { (eval echo "$as_me:12861: \"$ac_try\"") >&5 | ||
12862 | (eval $ac_try) 2>&5 | ||
12863 | ac_status=$? | ||
12864 | echo "$as_me:12864: \$? = $ac_status" >&5 | ||
12865 | (exit $ac_status); }; }; then | ||
12866 | ac_cv_have_struct_sockaddr_storage="yes" | ||
12867 | else | ||
12868 | echo "$as_me: failed program was:" >&5 | ||
12869 | cat conftest.$ac_ext >&5 | ||
12870 | ac_cv_have_struct_sockaddr_storage="no" | ||
12871 | |||
12872 | fi | ||
12873 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12874 | |||
12875 | fi | ||
12876 | echo "$as_me:12876: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
12877 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
12878 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
12879 | cat >>confdefs.h <<\EOF | ||
12880 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
12881 | EOF | ||
12882 | |||
12883 | fi | ||
12884 | |||
12885 | echo "$as_me:12885: checking for struct sockaddr_in6" >&5 | ||
12886 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
12887 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12889 | else | ||
12890 | |||
12891 | cat >conftest.$ac_ext <<_ACEOF | ||
12892 | #line 12892 "configure" | ||
12893 | #include "confdefs.h" | ||
12894 | |||
12895 | #include <sys/types.h> | ||
12896 | #include <netinet/in.h> | ||
12897 | |||
12898 | int | ||
12899 | main () | ||
12900 | { | ||
12901 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
12902 | ; | ||
12903 | return 0; | ||
12904 | } | ||
12905 | _ACEOF | ||
12906 | rm -f conftest.$ac_objext | ||
12907 | if { (eval echo "$as_me:12907: \"$ac_compile\"") >&5 | ||
12908 | (eval $ac_compile) 2>&5 | ||
12909 | ac_status=$? | ||
12910 | echo "$as_me:12910: \$? = $ac_status" >&5 | ||
12911 | (exit $ac_status); } && | ||
12912 | { ac_try='test -s conftest.$ac_objext' | ||
12913 | { (eval echo "$as_me:12913: \"$ac_try\"") >&5 | ||
12914 | (eval $ac_try) 2>&5 | ||
12915 | ac_status=$? | ||
12916 | echo "$as_me:12916: \$? = $ac_status" >&5 | ||
12917 | (exit $ac_status); }; }; then | ||
12918 | ac_cv_have_struct_sockaddr_in6="yes" | ||
12919 | else | ||
12920 | echo "$as_me: failed program was:" >&5 | ||
12921 | cat conftest.$ac_ext >&5 | ||
12922 | ac_cv_have_struct_sockaddr_in6="no" | ||
12923 | |||
12924 | fi | ||
12925 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12926 | |||
12927 | fi | ||
12928 | echo "$as_me:12928: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
12929 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
12930 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
12931 | cat >>confdefs.h <<\EOF | ||
12932 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
12933 | EOF | ||
12934 | |||
12935 | fi | ||
12936 | |||
12937 | echo "$as_me:12937: checking for struct in6_addr" >&5 | ||
12938 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
12939 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
12940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12941 | else | ||
12942 | |||
12943 | cat >conftest.$ac_ext <<_ACEOF | ||
12944 | #line 12944 "configure" | ||
12945 | #include "confdefs.h" | ||
12946 | |||
12947 | #include <sys/types.h> | ||
12948 | #include <netinet/in.h> | ||
12949 | |||
12950 | int | ||
12951 | main () | ||
12952 | { | ||
12953 | struct in6_addr s; s.s6_addr[0] = 0; | ||
12954 | ; | ||
12955 | return 0; | ||
12956 | } | ||
12957 | _ACEOF | ||
12958 | rm -f conftest.$ac_objext | ||
12959 | if { (eval echo "$as_me:12959: \"$ac_compile\"") >&5 | ||
12960 | (eval $ac_compile) 2>&5 | ||
12961 | ac_status=$? | ||
12962 | echo "$as_me:12962: \$? = $ac_status" >&5 | ||
12963 | (exit $ac_status); } && | ||
12964 | { ac_try='test -s conftest.$ac_objext' | ||
12965 | { (eval echo "$as_me:12965: \"$ac_try\"") >&5 | ||
12966 | (eval $ac_try) 2>&5 | ||
12967 | ac_status=$? | ||
12968 | echo "$as_me:12968: \$? = $ac_status" >&5 | ||
12969 | (exit $ac_status); }; }; then | ||
12970 | ac_cv_have_struct_in6_addr="yes" | ||
12971 | else | ||
12972 | echo "$as_me: failed program was:" >&5 | ||
12973 | cat conftest.$ac_ext >&5 | ||
12974 | ac_cv_have_struct_in6_addr="no" | ||
12975 | |||
12976 | fi | ||
12977 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12978 | |||
12979 | fi | ||
12980 | echo "$as_me:12980: result: $ac_cv_have_struct_in6_addr" >&5 | ||
12981 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
12982 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
12983 | cat >>confdefs.h <<\EOF | ||
12984 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
12985 | EOF | ||
12986 | |||
12987 | fi | ||
12988 | |||
12989 | echo "$as_me:12989: checking for struct addrinfo" >&5 | ||
12990 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
12991 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
12992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12993 | else | ||
12994 | |||
12995 | cat >conftest.$ac_ext <<_ACEOF | ||
12996 | #line 12996 "configure" | ||
12997 | #include "confdefs.h" | ||
12998 | |||
12999 | #include <sys/types.h> | ||
13000 | #include <sys/socket.h> | ||
13001 | #include <netdb.h> | ||
13002 | |||
13003 | int | ||
13004 | main () | ||
13005 | { | ||
13006 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13007 | ; | ||
13008 | return 0; | ||
13009 | } | ||
13010 | _ACEOF | ||
13011 | rm -f conftest.$ac_objext | ||
13012 | if { (eval echo "$as_me:13012: \"$ac_compile\"") >&5 | ||
13013 | (eval $ac_compile) 2>&5 | ||
13014 | ac_status=$? | ||
13015 | echo "$as_me:13015: \$? = $ac_status" >&5 | ||
13016 | (exit $ac_status); } && | ||
13017 | { ac_try='test -s conftest.$ac_objext' | ||
13018 | { (eval echo "$as_me:13018: \"$ac_try\"") >&5 | ||
13019 | (eval $ac_try) 2>&5 | ||
13020 | ac_status=$? | ||
13021 | echo "$as_me:13021: \$? = $ac_status" >&5 | ||
13022 | (exit $ac_status); }; }; then | ||
13023 | ac_cv_have_struct_addrinfo="yes" | ||
13024 | else | ||
13025 | echo "$as_me: failed program was:" >&5 | ||
13026 | cat conftest.$ac_ext >&5 | ||
13027 | ac_cv_have_struct_addrinfo="no" | ||
13028 | |||
13029 | fi | ||
13030 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13031 | |||
13032 | fi | ||
13033 | echo "$as_me:13033: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13034 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
13035 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13036 | cat >>confdefs.h <<\EOF | ||
13037 | #define HAVE_STRUCT_ADDRINFO 1 | ||
13038 | EOF | ||
13039 | |||
13040 | fi | ||
13041 | |||
13042 | echo "$as_me:13042: checking for struct timeval" >&5 | ||
13043 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
13044 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
13045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13046 | else | ||
13047 | |||
13048 | cat >conftest.$ac_ext <<_ACEOF | ||
13049 | #line 13049 "configure" | ||
13050 | #include "confdefs.h" | ||
13051 | #include <sys/time.h> | ||
13052 | int | ||
13053 | main () | ||
13054 | { | ||
13055 | struct timeval tv; tv.tv_sec = 1; | ||
13056 | ; | ||
13057 | return 0; | ||
13058 | } | ||
13059 | _ACEOF | ||
13060 | rm -f conftest.$ac_objext | ||
13061 | if { (eval echo "$as_me:13061: \"$ac_compile\"") >&5 | ||
13062 | (eval $ac_compile) 2>&5 | ||
13063 | ac_status=$? | ||
13064 | echo "$as_me:13064: \$? = $ac_status" >&5 | ||
13065 | (exit $ac_status); } && | ||
13066 | { ac_try='test -s conftest.$ac_objext' | ||
13067 | { (eval echo "$as_me:13067: \"$ac_try\"") >&5 | ||
13068 | (eval $ac_try) 2>&5 | ||
13069 | ac_status=$? | ||
13070 | echo "$as_me:13070: \$? = $ac_status" >&5 | ||
13071 | (exit $ac_status); }; }; then | ||
13072 | ac_cv_have_struct_timeval="yes" | ||
13073 | else | ||
13074 | echo "$as_me: failed program was:" >&5 | ||
13075 | cat conftest.$ac_ext >&5 | ||
13076 | ac_cv_have_struct_timeval="no" | ||
13077 | |||
13078 | fi | ||
13079 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13080 | |||
13081 | fi | ||
13082 | echo "$as_me:13082: result: $ac_cv_have_struct_timeval" >&5 | ||
13083 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
13084 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13085 | cat >>confdefs.h <<\EOF | ||
13086 | #define HAVE_STRUCT_TIMEVAL 1 | ||
13087 | EOF | ||
13088 | |||
13089 | have_struct_timeval=1 | ||
13090 | fi | ||
13091 | |||
13092 | echo "$as_me:13092: checking for struct timespec" >&5 | ||
13093 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
13094 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
13095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13096 | else | ||
13097 | cat >conftest.$ac_ext <<_ACEOF | ||
13098 | #line 13098 "configure" | ||
13099 | #include "confdefs.h" | ||
13100 | $ac_includes_default | ||
13101 | int | ||
13102 | main () | ||
13103 | { | ||
13104 | if ((struct timespec *) 0) | ||
13105 | return 0; | ||
13106 | if (sizeof (struct timespec)) | ||
13107 | return 0; | ||
13108 | ; | ||
13109 | return 0; | ||
13110 | } | ||
13111 | _ACEOF | ||
13112 | rm -f conftest.$ac_objext | ||
13113 | if { (eval echo "$as_me:13113: \"$ac_compile\"") >&5 | ||
13114 | (eval $ac_compile) 2>&5 | ||
13115 | ac_status=$? | ||
13116 | echo "$as_me:13116: \$? = $ac_status" >&5 | ||
13117 | (exit $ac_status); } && | ||
13118 | { ac_try='test -s conftest.$ac_objext' | ||
13119 | { (eval echo "$as_me:13119: \"$ac_try\"") >&5 | ||
13120 | (eval $ac_try) 2>&5 | ||
13121 | ac_status=$? | ||
13122 | echo "$as_me:13122: \$? = $ac_status" >&5 | ||
13123 | (exit $ac_status); }; }; then | ||
13124 | ac_cv_type_struct_timespec=yes | ||
13125 | else | ||
13126 | echo "$as_me: failed program was:" >&5 | ||
13127 | cat conftest.$ac_ext >&5 | ||
13128 | ac_cv_type_struct_timespec=no | ||
13129 | fi | ||
13130 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13131 | fi | ||
13132 | echo "$as_me:13132: result: $ac_cv_type_struct_timespec" >&5 | ||
13133 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
13134 | if test $ac_cv_type_struct_timespec = yes; then | ||
13135 | |||
13136 | cat >>confdefs.h <<EOF | ||
13137 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13138 | EOF | ||
13139 | |||
13140 | fi | ||
13141 | |||
13142 | # We need int64_t or else certian parts of the compile will fail. | ||
13143 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
13144 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
13145 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13146 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13147 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13148 | echo "" | ||
13149 | exit 1; | ||
13150 | else | ||
13151 | if test "$cross_compiling" = yes; then | ||
13152 | { { echo "$as_me:13152: error: cannot run test program while cross compiling" >&5 | ||
13153 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13154 | { (exit 1); exit 1; }; } | ||
13155 | else | ||
13156 | cat >conftest.$ac_ext <<_ACEOF | ||
13157 | #line 13157 "configure" | ||
13158 | #include "confdefs.h" | ||
13159 | |||
13160 | #include <stdio.h> | ||
13161 | #include <string.h> | ||
13162 | #ifdef HAVE_SNPRINTF | ||
13163 | main() | ||
13164 | { | ||
13165 | char buf[50]; | ||
13166 | char expected_out[50]; | ||
13167 | int mazsize = 50 ; | ||
13168 | #if (SIZEOF_LONG_INT == 8) | ||
13169 | long int num = 0x7fffffffffffffff; | ||
13170 | #else | ||
13171 | long long num = 0x7fffffffffffffffll; | ||
13172 | #endif | ||
13173 | strcpy(expected_out, "9223372036854775807"); | ||
13174 | snprintf(buf, mazsize, "%lld", num); | ||
13175 | if(strcmp(buf, expected_out) != 0) | ||
13176 | exit(1); | ||
13177 | exit(0); | ||
13178 | } | ||
13179 | #else | ||
13180 | main() { exit(0); } | ||
13181 | #endif | ||
13182 | |||
13183 | _ACEOF | ||
13184 | rm -f conftest$ac_exeext | ||
13185 | if { (eval echo "$as_me:13185: \"$ac_link\"") >&5 | ||
13186 | (eval $ac_link) 2>&5 | ||
13187 | ac_status=$? | ||
13188 | echo "$as_me:13188: \$? = $ac_status" >&5 | ||
13189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13190 | { (eval echo "$as_me:13190: \"$ac_try\"") >&5 | ||
13191 | (eval $ac_try) 2>&5 | ||
13192 | ac_status=$? | ||
13193 | echo "$as_me:13193: \$? = $ac_status" >&5 | ||
13194 | (exit $ac_status); }; }; then | ||
13195 | true | ||
13196 | else | ||
13197 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13198 | echo "$as_me: failed program was:" >&5 | ||
13199 | cat conftest.$ac_ext >&5 | ||
13200 | cat >>confdefs.h <<\EOF | ||
13201 | #define BROKEN_SNPRINTF 1 | ||
13202 | EOF | ||
13203 | |||
13204 | fi | ||
13205 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13206 | fi | ||
13207 | fi | ||
13208 | |||
13209 | # look for field 'ut_host' in header 'utmp.h' | ||
13210 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13211 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13212 | echo "$as_me:13212: checking for ut_host field in utmp.h" >&5 | ||
13213 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
13214 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13216 | else | ||
13217 | |||
13218 | cat >conftest.$ac_ext <<_ACEOF | ||
13219 | #line 13219 "configure" | ||
13220 | #include "confdefs.h" | ||
13221 | #include <utmp.h> | ||
13222 | |||
13223 | _ACEOF | ||
13224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13225 | egrep "ut_host" >/dev/null 2>&1; then | ||
13226 | eval "$ossh_varname=yes" | ||
13227 | else | ||
13228 | eval "$ossh_varname=no" | ||
13229 | fi | ||
13230 | rm -f conftest* | ||
13231 | |||
13232 | fi | ||
13233 | |||
13234 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13235 | if test -n "`echo $ossh_varname`"; then | ||
13236 | echo "$as_me:13236: result: $ossh_result" >&5 | ||
13237 | echo "${ECHO_T}$ossh_result" >&6 | ||
13238 | if test "x$ossh_result" = "xyes"; then | ||
13239 | cat >>confdefs.h <<\EOF | ||
13240 | #define HAVE_HOST_IN_UTMP 1 | ||
13241 | EOF | ||
13242 | |||
13243 | fi | ||
13244 | else | ||
13245 | echo "$as_me:13245: result: no" >&5 | ||
13246 | echo "${ECHO_T}no" >&6 | ||
13247 | fi | ||
13248 | |||
13249 | # look for field 'ut_host' in header 'utmpx.h' | ||
13250 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13251 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13252 | echo "$as_me:13252: checking for ut_host field in utmpx.h" >&5 | ||
13253 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
13254 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13256 | else | ||
13257 | |||
13258 | cat >conftest.$ac_ext <<_ACEOF | ||
13259 | #line 13259 "configure" | ||
13260 | #include "confdefs.h" | ||
13261 | #include <utmpx.h> | ||
13262 | |||
13263 | _ACEOF | ||
13264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13265 | egrep "ut_host" >/dev/null 2>&1; then | ||
13266 | eval "$ossh_varname=yes" | ||
13267 | else | ||
13268 | eval "$ossh_varname=no" | ||
13269 | fi | ||
13270 | rm -f conftest* | ||
13271 | |||
13272 | fi | ||
13273 | |||
13274 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13275 | if test -n "`echo $ossh_varname`"; then | ||
13276 | echo "$as_me:13276: result: $ossh_result" >&5 | ||
13277 | echo "${ECHO_T}$ossh_result" >&6 | ||
13278 | if test "x$ossh_result" = "xyes"; then | ||
13279 | cat >>confdefs.h <<\EOF | ||
13280 | #define HAVE_HOST_IN_UTMPX 1 | ||
13281 | EOF | ||
13282 | |||
13283 | fi | ||
13284 | else | ||
13285 | echo "$as_me:13285: result: no" >&5 | ||
13286 | echo "${ECHO_T}no" >&6 | ||
13287 | fi | ||
13288 | |||
13289 | # look for field 'syslen' in header 'utmpx.h' | ||
13290 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13291 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13292 | echo "$as_me:13292: checking for syslen field in utmpx.h" >&5 | ||
13293 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
13294 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13296 | else | ||
13297 | |||
13298 | cat >conftest.$ac_ext <<_ACEOF | ||
13299 | #line 13299 "configure" | ||
13300 | #include "confdefs.h" | ||
13301 | #include <utmpx.h> | ||
13302 | |||
13303 | _ACEOF | ||
13304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13305 | egrep "syslen" >/dev/null 2>&1; then | ||
13306 | eval "$ossh_varname=yes" | ||
13307 | else | ||
13308 | eval "$ossh_varname=no" | ||
13309 | fi | ||
13310 | rm -f conftest* | ||
13311 | |||
13312 | fi | ||
13313 | |||
13314 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13315 | if test -n "`echo $ossh_varname`"; then | ||
13316 | echo "$as_me:13316: result: $ossh_result" >&5 | ||
13317 | echo "${ECHO_T}$ossh_result" >&6 | ||
13318 | if test "x$ossh_result" = "xyes"; then | ||
13319 | cat >>confdefs.h <<\EOF | ||
13320 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
13321 | EOF | ||
13322 | |||
13323 | fi | ||
13324 | else | ||
13325 | echo "$as_me:13325: result: no" >&5 | ||
13326 | echo "${ECHO_T}no" >&6 | ||
13327 | fi | ||
13328 | |||
13329 | # look for field 'ut_pid' in header 'utmp.h' | ||
13330 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13331 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13332 | echo "$as_me:13332: checking for ut_pid field in utmp.h" >&5 | ||
13333 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
13334 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13336 | else | ||
13337 | |||
13338 | cat >conftest.$ac_ext <<_ACEOF | ||
13339 | #line 13339 "configure" | ||
13340 | #include "confdefs.h" | ||
13341 | #include <utmp.h> | ||
13342 | |||
13343 | _ACEOF | ||
13344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13345 | egrep "ut_pid" >/dev/null 2>&1; then | ||
13346 | eval "$ossh_varname=yes" | ||
13347 | else | ||
13348 | eval "$ossh_varname=no" | ||
13349 | fi | ||
13350 | rm -f conftest* | ||
13351 | |||
13352 | fi | ||
13353 | |||
13354 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13355 | if test -n "`echo $ossh_varname`"; then | ||
13356 | echo "$as_me:13356: result: $ossh_result" >&5 | ||
13357 | echo "${ECHO_T}$ossh_result" >&6 | ||
13358 | if test "x$ossh_result" = "xyes"; then | ||
13359 | cat >>confdefs.h <<\EOF | ||
13360 | #define HAVE_PID_IN_UTMP 1 | ||
13361 | EOF | ||
13362 | |||
13363 | fi | ||
13364 | else | ||
13365 | echo "$as_me:13365: result: no" >&5 | ||
13366 | echo "${ECHO_T}no" >&6 | ||
13367 | fi | ||
13368 | |||
13369 | # look for field 'ut_type' in header 'utmp.h' | ||
13370 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13371 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13372 | echo "$as_me:13372: checking for ut_type field in utmp.h" >&5 | ||
13373 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13374 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13376 | else | ||
13377 | |||
13378 | cat >conftest.$ac_ext <<_ACEOF | ||
13379 | #line 13379 "configure" | ||
13380 | #include "confdefs.h" | ||
13381 | #include <utmp.h> | ||
13382 | |||
13383 | _ACEOF | ||
13384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13385 | egrep "ut_type" >/dev/null 2>&1; then | ||
13386 | eval "$ossh_varname=yes" | ||
13387 | else | ||
13388 | eval "$ossh_varname=no" | ||
13389 | fi | ||
13390 | rm -f conftest* | ||
13391 | |||
13392 | fi | ||
13393 | |||
13394 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13395 | if test -n "`echo $ossh_varname`"; then | ||
13396 | echo "$as_me:13396: result: $ossh_result" >&5 | ||
13397 | echo "${ECHO_T}$ossh_result" >&6 | ||
13398 | if test "x$ossh_result" = "xyes"; then | ||
13399 | cat >>confdefs.h <<\EOF | ||
13400 | #define HAVE_TYPE_IN_UTMP 1 | ||
13401 | EOF | ||
13402 | |||
13403 | fi | ||
13404 | else | ||
13405 | echo "$as_me:13405: result: no" >&5 | ||
13406 | echo "${ECHO_T}no" >&6 | ||
13407 | fi | ||
13408 | |||
13409 | # look for field 'ut_type' in header 'utmpx.h' | ||
13410 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13411 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13412 | echo "$as_me:13412: checking for ut_type field in utmpx.h" >&5 | ||
13413 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13414 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13416 | else | ||
13417 | |||
13418 | cat >conftest.$ac_ext <<_ACEOF | ||
13419 | #line 13419 "configure" | ||
13420 | #include "confdefs.h" | ||
13421 | #include <utmpx.h> | ||
13422 | |||
13423 | _ACEOF | ||
13424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13425 | egrep "ut_type" >/dev/null 2>&1; then | ||
13426 | eval "$ossh_varname=yes" | ||
13427 | else | ||
13428 | eval "$ossh_varname=no" | ||
13429 | fi | ||
13430 | rm -f conftest* | ||
13431 | |||
13432 | fi | ||
13433 | |||
13434 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13435 | if test -n "`echo $ossh_varname`"; then | ||
13436 | echo "$as_me:13436: result: $ossh_result" >&5 | ||
13437 | echo "${ECHO_T}$ossh_result" >&6 | ||
13438 | if test "x$ossh_result" = "xyes"; then | ||
13439 | cat >>confdefs.h <<\EOF | ||
13440 | #define HAVE_TYPE_IN_UTMPX 1 | ||
13441 | EOF | ||
13442 | |||
13443 | fi | ||
13444 | else | ||
13445 | echo "$as_me:13445: result: no" >&5 | ||
13446 | echo "${ECHO_T}no" >&6 | ||
13447 | fi | ||
13448 | |||
13449 | # look for field 'ut_tv' in header 'utmp.h' | ||
13450 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13451 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13452 | echo "$as_me:13452: checking for ut_tv field in utmp.h" >&5 | ||
13453 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
13454 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13456 | else | ||
13457 | |||
13458 | cat >conftest.$ac_ext <<_ACEOF | ||
13459 | #line 13459 "configure" | ||
13460 | #include "confdefs.h" | ||
13461 | #include <utmp.h> | ||
13462 | |||
13463 | _ACEOF | ||
13464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13465 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13466 | eval "$ossh_varname=yes" | ||
13467 | else | ||
13468 | eval "$ossh_varname=no" | ||
13469 | fi | ||
13470 | rm -f conftest* | ||
13471 | |||
13472 | fi | ||
13473 | |||
13474 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13475 | if test -n "`echo $ossh_varname`"; then | ||
13476 | echo "$as_me:13476: result: $ossh_result" >&5 | ||
13477 | echo "${ECHO_T}$ossh_result" >&6 | ||
13478 | if test "x$ossh_result" = "xyes"; then | ||
13479 | cat >>confdefs.h <<\EOF | ||
13480 | #define HAVE_TV_IN_UTMP 1 | ||
13481 | EOF | ||
13482 | |||
13483 | fi | ||
13484 | else | ||
13485 | echo "$as_me:13485: result: no" >&5 | ||
13486 | echo "${ECHO_T}no" >&6 | ||
13487 | fi | ||
13488 | |||
13489 | # look for field 'ut_id' in header 'utmp.h' | ||
13490 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13491 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13492 | echo "$as_me:13492: checking for ut_id field in utmp.h" >&5 | ||
13493 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13494 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13496 | else | ||
13497 | |||
13498 | cat >conftest.$ac_ext <<_ACEOF | ||
13499 | #line 13499 "configure" | ||
13500 | #include "confdefs.h" | ||
13501 | #include <utmp.h> | ||
13502 | |||
13503 | _ACEOF | ||
13504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13505 | egrep "ut_id" >/dev/null 2>&1; then | ||
13506 | eval "$ossh_varname=yes" | ||
13507 | else | ||
13508 | eval "$ossh_varname=no" | ||
13509 | fi | ||
13510 | rm -f conftest* | ||
13511 | |||
13512 | fi | ||
13513 | |||
13514 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13515 | if test -n "`echo $ossh_varname`"; then | ||
13516 | echo "$as_me:13516: result: $ossh_result" >&5 | ||
13517 | echo "${ECHO_T}$ossh_result" >&6 | ||
13518 | if test "x$ossh_result" = "xyes"; then | ||
13519 | cat >>confdefs.h <<\EOF | ||
13520 | #define HAVE_ID_IN_UTMP 1 | ||
13521 | EOF | ||
13522 | |||
13523 | fi | ||
13524 | else | ||
13525 | echo "$as_me:13525: result: no" >&5 | ||
13526 | echo "${ECHO_T}no" >&6 | ||
13527 | fi | ||
13528 | |||
13529 | # look for field 'ut_id' in header 'utmpx.h' | ||
13530 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13531 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13532 | echo "$as_me:13532: checking for ut_id field in utmpx.h" >&5 | ||
13533 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13534 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13536 | else | ||
13537 | |||
13538 | cat >conftest.$ac_ext <<_ACEOF | ||
13539 | #line 13539 "configure" | ||
13540 | #include "confdefs.h" | ||
13541 | #include <utmpx.h> | ||
13542 | |||
13543 | _ACEOF | ||
13544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13545 | egrep "ut_id" >/dev/null 2>&1; then | ||
13546 | eval "$ossh_varname=yes" | ||
13547 | else | ||
13548 | eval "$ossh_varname=no" | ||
13549 | fi | ||
13550 | rm -f conftest* | ||
13551 | |||
13552 | fi | ||
13553 | |||
13554 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13555 | if test -n "`echo $ossh_varname`"; then | ||
13556 | echo "$as_me:13556: result: $ossh_result" >&5 | ||
13557 | echo "${ECHO_T}$ossh_result" >&6 | ||
13558 | if test "x$ossh_result" = "xyes"; then | ||
13559 | cat >>confdefs.h <<\EOF | ||
13560 | #define HAVE_ID_IN_UTMPX 1 | ||
13561 | EOF | ||
13562 | |||
13563 | fi | ||
13564 | else | ||
13565 | echo "$as_me:13565: result: no" >&5 | ||
13566 | echo "${ECHO_T}no" >&6 | ||
13567 | fi | ||
13568 | |||
13569 | # look for field 'ut_addr' in header 'utmp.h' | ||
13570 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13571 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13572 | echo "$as_me:13572: checking for ut_addr field in utmp.h" >&5 | ||
13573 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
13574 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13576 | else | ||
13577 | |||
13578 | cat >conftest.$ac_ext <<_ACEOF | ||
13579 | #line 13579 "configure" | ||
13580 | #include "confdefs.h" | ||
13581 | #include <utmp.h> | ||
13582 | |||
13583 | _ACEOF | ||
13584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13585 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13586 | eval "$ossh_varname=yes" | ||
13587 | else | ||
13588 | eval "$ossh_varname=no" | ||
13589 | fi | ||
13590 | rm -f conftest* | ||
13591 | |||
13592 | fi | ||
13593 | |||
13594 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13595 | if test -n "`echo $ossh_varname`"; then | ||
13596 | echo "$as_me:13596: result: $ossh_result" >&5 | ||
13597 | echo "${ECHO_T}$ossh_result" >&6 | ||
13598 | if test "x$ossh_result" = "xyes"; then | ||
13599 | cat >>confdefs.h <<\EOF | ||
13600 | #define HAVE_ADDR_IN_UTMP 1 | ||
13601 | EOF | ||
13602 | |||
13603 | fi | ||
13604 | else | ||
13605 | echo "$as_me:13605: result: no" >&5 | ||
13606 | echo "${ECHO_T}no" >&6 | ||
13607 | fi | ||
13608 | |||
13609 | # look for field 'ut_addr' in header 'utmpx.h' | ||
13610 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13611 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13612 | echo "$as_me:13612: checking for ut_addr field in utmpx.h" >&5 | ||
13613 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
13614 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13616 | else | ||
13617 | |||
13618 | cat >conftest.$ac_ext <<_ACEOF | ||
13619 | #line 13619 "configure" | ||
13620 | #include "confdefs.h" | ||
13621 | #include <utmpx.h> | ||
13622 | |||
13623 | _ACEOF | ||
13624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13625 | egrep "ut_addr" >/dev/null 2>&1; then | ||
13626 | eval "$ossh_varname=yes" | ||
13627 | else | ||
13628 | eval "$ossh_varname=no" | ||
13629 | fi | ||
13630 | rm -f conftest* | ||
13631 | |||
13632 | fi | ||
13633 | |||
13634 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13635 | if test -n "`echo $ossh_varname`"; then | ||
13636 | echo "$as_me:13636: result: $ossh_result" >&5 | ||
13637 | echo "${ECHO_T}$ossh_result" >&6 | ||
13638 | if test "x$ossh_result" = "xyes"; then | ||
13639 | cat >>confdefs.h <<\EOF | ||
13640 | #define HAVE_ADDR_IN_UTMPX 1 | ||
13641 | EOF | ||
13642 | |||
13643 | fi | ||
13644 | else | ||
13645 | echo "$as_me:13645: result: no" >&5 | ||
13646 | echo "${ECHO_T}no" >&6 | ||
13647 | fi | ||
13648 | |||
13649 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
13650 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13651 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13652 | echo "$as_me:13652: checking for ut_addr_v6 field in utmp.h" >&5 | ||
13653 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
13654 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13656 | else | ||
13657 | |||
13658 | cat >conftest.$ac_ext <<_ACEOF | ||
13659 | #line 13659 "configure" | ||
13660 | #include "confdefs.h" | ||
13661 | #include <utmp.h> | ||
13662 | |||
13663 | _ACEOF | ||
13664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13665 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13666 | eval "$ossh_varname=yes" | ||
13667 | else | ||
13668 | eval "$ossh_varname=no" | ||
13669 | fi | ||
13670 | rm -f conftest* | ||
13671 | |||
13672 | fi | ||
13673 | |||
13674 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13675 | if test -n "`echo $ossh_varname`"; then | ||
13676 | echo "$as_me:13676: result: $ossh_result" >&5 | ||
13677 | echo "${ECHO_T}$ossh_result" >&6 | ||
13678 | if test "x$ossh_result" = "xyes"; then | ||
13679 | cat >>confdefs.h <<\EOF | ||
13680 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
13681 | EOF | ||
13682 | |||
13683 | fi | ||
13684 | else | ||
13685 | echo "$as_me:13685: result: no" >&5 | ||
13686 | echo "${ECHO_T}no" >&6 | ||
13687 | fi | ||
13688 | |||
13689 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
13690 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13691 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
13692 | echo "$as_me:13692: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
13693 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
13694 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13696 | else | ||
13697 | |||
13698 | cat >conftest.$ac_ext <<_ACEOF | ||
13699 | #line 13699 "configure" | ||
13700 | #include "confdefs.h" | ||
13701 | #include <utmpx.h> | ||
13702 | |||
13703 | _ACEOF | ||
13704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13705 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
13706 | eval "$ossh_varname=yes" | ||
13707 | else | ||
13708 | eval "$ossh_varname=no" | ||
13709 | fi | ||
13710 | rm -f conftest* | ||
13711 | |||
13712 | fi | ||
13713 | |||
13714 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13715 | if test -n "`echo $ossh_varname`"; then | ||
13716 | echo "$as_me:13716: result: $ossh_result" >&5 | ||
13717 | echo "${ECHO_T}$ossh_result" >&6 | ||
13718 | if test "x$ossh_result" = "xyes"; then | ||
13719 | cat >>confdefs.h <<\EOF | ||
13720 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
13721 | EOF | ||
13722 | |||
13723 | fi | ||
13724 | else | ||
13725 | echo "$as_me:13725: result: no" >&5 | ||
13726 | echo "${ECHO_T}no" >&6 | ||
13727 | fi | ||
13728 | |||
13729 | # look for field 'ut_exit' in header 'utmp.h' | ||
13730 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13731 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
13732 | echo "$as_me:13732: checking for ut_exit field in utmp.h" >&5 | ||
13733 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
13734 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13736 | else | ||
13737 | |||
13738 | cat >conftest.$ac_ext <<_ACEOF | ||
13739 | #line 13739 "configure" | ||
13740 | #include "confdefs.h" | ||
13741 | #include <utmp.h> | ||
13742 | |||
13743 | _ACEOF | ||
13744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13745 | egrep "ut_exit" >/dev/null 2>&1; then | ||
13746 | eval "$ossh_varname=yes" | ||
13747 | else | ||
13748 | eval "$ossh_varname=no" | ||
13749 | fi | ||
13750 | rm -f conftest* | ||
13751 | |||
13752 | fi | ||
13753 | |||
13754 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13755 | if test -n "`echo $ossh_varname`"; then | ||
13756 | echo "$as_me:13756: result: $ossh_result" >&5 | ||
13757 | echo "${ECHO_T}$ossh_result" >&6 | ||
13758 | if test "x$ossh_result" = "xyes"; then | ||
13759 | cat >>confdefs.h <<\EOF | ||
13760 | #define HAVE_EXIT_IN_UTMP 1 | ||
13761 | EOF | ||
13762 | |||
13763 | fi | ||
13764 | else | ||
13765 | echo "$as_me:13765: result: no" >&5 | ||
13766 | echo "${ECHO_T}no" >&6 | ||
13767 | fi | ||
13768 | |||
13769 | # look for field 'ut_time' in header 'utmp.h' | ||
13770 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13771 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13772 | echo "$as_me:13772: checking for ut_time field in utmp.h" >&5 | ||
13773 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
13774 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13776 | else | ||
13777 | |||
13778 | cat >conftest.$ac_ext <<_ACEOF | ||
13779 | #line 13779 "configure" | ||
13780 | #include "confdefs.h" | ||
13781 | #include <utmp.h> | ||
13782 | |||
13783 | _ACEOF | ||
13784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13785 | egrep "ut_time" >/dev/null 2>&1; then | ||
13786 | eval "$ossh_varname=yes" | ||
13787 | else | ||
13788 | eval "$ossh_varname=no" | ||
13789 | fi | ||
13790 | rm -f conftest* | ||
13791 | |||
13792 | fi | ||
13793 | |||
13794 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13795 | if test -n "`echo $ossh_varname`"; then | ||
13796 | echo "$as_me:13796: result: $ossh_result" >&5 | ||
13797 | echo "${ECHO_T}$ossh_result" >&6 | ||
13798 | if test "x$ossh_result" = "xyes"; then | ||
13799 | cat >>confdefs.h <<\EOF | ||
13800 | #define HAVE_TIME_IN_UTMP 1 | ||
13801 | EOF | ||
13802 | |||
13803 | fi | ||
13804 | else | ||
13805 | echo "$as_me:13805: result: no" >&5 | ||
13806 | echo "${ECHO_T}no" >&6 | ||
13807 | fi | ||
13808 | |||
13809 | # look for field 'ut_time' in header 'utmpx.h' | ||
13810 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13811 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
13812 | echo "$as_me:13812: checking for ut_time field in utmpx.h" >&5 | ||
13813 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
13814 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13816 | else | ||
13817 | |||
13818 | cat >conftest.$ac_ext <<_ACEOF | ||
13819 | #line 13819 "configure" | ||
13820 | #include "confdefs.h" | ||
13821 | #include <utmpx.h> | ||
13822 | |||
13823 | _ACEOF | ||
13824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13825 | egrep "ut_time" >/dev/null 2>&1; then | ||
13826 | eval "$ossh_varname=yes" | ||
13827 | else | ||
13828 | eval "$ossh_varname=no" | ||
13829 | fi | ||
13830 | rm -f conftest* | ||
13831 | |||
13832 | fi | ||
13833 | |||
13834 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13835 | if test -n "`echo $ossh_varname`"; then | ||
13836 | echo "$as_me:13836: result: $ossh_result" >&5 | ||
13837 | echo "${ECHO_T}$ossh_result" >&6 | ||
13838 | if test "x$ossh_result" = "xyes"; then | ||
13839 | cat >>confdefs.h <<\EOF | ||
13840 | #define HAVE_TIME_IN_UTMPX 1 | ||
13841 | EOF | ||
13842 | |||
13843 | fi | ||
13844 | else | ||
13845 | echo "$as_me:13845: result: no" >&5 | ||
13846 | echo "${ECHO_T}no" >&6 | ||
13847 | fi | ||
13848 | |||
13849 | # look for field 'ut_tv' in header 'utmpx.h' | ||
13850 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13851 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13852 | echo "$as_me:13852: checking for ut_tv field in utmpx.h" >&5 | ||
13853 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
13854 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13856 | else | ||
13857 | |||
13858 | cat >conftest.$ac_ext <<_ACEOF | ||
13859 | #line 13859 "configure" | ||
13860 | #include "confdefs.h" | ||
13861 | #include <utmpx.h> | ||
13862 | |||
13863 | _ACEOF | ||
13864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13865 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13866 | eval "$ossh_varname=yes" | ||
13867 | else | ||
13868 | eval "$ossh_varname=no" | ||
13869 | fi | ||
13870 | rm -f conftest* | ||
13871 | |||
13872 | fi | ||
13873 | |||
13874 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13875 | if test -n "`echo $ossh_varname`"; then | ||
13876 | echo "$as_me:13876: result: $ossh_result" >&5 | ||
13877 | echo "${ECHO_T}$ossh_result" >&6 | ||
13878 | if test "x$ossh_result" = "xyes"; then | ||
13879 | cat >>confdefs.h <<\EOF | ||
13880 | #define HAVE_TV_IN_UTMPX 1 | ||
13881 | EOF | ||
13882 | |||
13883 | fi | ||
13884 | else | ||
13885 | echo "$as_me:13885: result: no" >&5 | ||
13886 | echo "${ECHO_T}no" >&6 | ||
13887 | fi | ||
13888 | |||
13889 | echo "$as_me:13889: checking for struct stat.st_blksize" >&5 | ||
13890 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
13891 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13893 | else | ||
13894 | cat >conftest.$ac_ext <<_ACEOF | ||
13895 | #line 13895 "configure" | ||
13896 | #include "confdefs.h" | ||
13897 | $ac_includes_default | ||
13898 | int | ||
13899 | main () | ||
13900 | { | ||
13901 | static struct stat ac_aggr; | ||
13902 | if (ac_aggr.st_blksize) | ||
13903 | return 0; | ||
13904 | ; | ||
13905 | return 0; | ||
13906 | } | ||
13907 | _ACEOF | ||
13908 | rm -f conftest.$ac_objext | ||
13909 | if { (eval echo "$as_me:13909: \"$ac_compile\"") >&5 | ||
13910 | (eval $ac_compile) 2>&5 | ||
13911 | ac_status=$? | ||
13912 | echo "$as_me:13912: \$? = $ac_status" >&5 | ||
13913 | (exit $ac_status); } && | ||
13914 | { ac_try='test -s conftest.$ac_objext' | ||
13915 | { (eval echo "$as_me:13915: \"$ac_try\"") >&5 | ||
13916 | (eval $ac_try) 2>&5 | ||
13917 | ac_status=$? | ||
13918 | echo "$as_me:13918: \$? = $ac_status" >&5 | ||
13919 | (exit $ac_status); }; }; then | ||
13920 | ac_cv_member_struct_stat_st_blksize=yes | ||
13921 | else | ||
13922 | echo "$as_me: failed program was:" >&5 | ||
13923 | cat conftest.$ac_ext >&5 | ||
13924 | ac_cv_member_struct_stat_st_blksize=no | ||
13925 | fi | ||
13926 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13927 | fi | ||
13928 | echo "$as_me:13928: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
13929 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
13930 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
13931 | |||
13932 | cat >>confdefs.h <<EOF | ||
13933 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
13934 | EOF | ||
13935 | |||
13936 | fi | ||
13937 | |||
13938 | echo "$as_me:13938: checking for ss_family field in struct sockaddr_storage" >&5 | ||
13939 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13940 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
13941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13942 | else | ||
13943 | |||
13944 | cat >conftest.$ac_ext <<_ACEOF | ||
13945 | #line 13945 "configure" | ||
13946 | #include "confdefs.h" | ||
13947 | |||
13948 | #include <sys/types.h> | ||
13949 | #include <sys/socket.h> | ||
13950 | |||
13951 | int | ||
13952 | main () | ||
13953 | { | ||
13954 | struct sockaddr_storage s; s.ss_family = 1; | ||
13955 | ; | ||
13956 | return 0; | ||
13957 | } | ||
13958 | _ACEOF | ||
13959 | rm -f conftest.$ac_objext | ||
13960 | if { (eval echo "$as_me:13960: \"$ac_compile\"") >&5 | ||
13961 | (eval $ac_compile) 2>&5 | ||
13962 | ac_status=$? | ||
13963 | echo "$as_me:13963: \$? = $ac_status" >&5 | ||
13964 | (exit $ac_status); } && | ||
13965 | { ac_try='test -s conftest.$ac_objext' | ||
13966 | { (eval echo "$as_me:13966: \"$ac_try\"") >&5 | ||
13967 | (eval $ac_try) 2>&5 | ||
13968 | ac_status=$? | ||
13969 | echo "$as_me:13969: \$? = $ac_status" >&5 | ||
13970 | (exit $ac_status); }; }; then | ||
13971 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
13972 | else | ||
13973 | echo "$as_me: failed program was:" >&5 | ||
13974 | cat conftest.$ac_ext >&5 | ||
13975 | ac_cv_have_ss_family_in_struct_ss="no" | ||
13976 | fi | ||
13977 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13978 | |||
13979 | fi | ||
13980 | echo "$as_me:13980: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
13981 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
13982 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
13983 | cat >>confdefs.h <<\EOF | ||
13984 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
13985 | EOF | ||
13986 | |||
13987 | fi | ||
13988 | |||
13989 | echo "$as_me:13989: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
13990 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
13991 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
13992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13993 | else | ||
13994 | |||
13995 | cat >conftest.$ac_ext <<_ACEOF | ||
13996 | #line 13996 "configure" | ||
13997 | #include "confdefs.h" | ||
13998 | |||
13999 | #include <sys/types.h> | ||
14000 | #include <sys/socket.h> | ||
14001 | |||
14002 | int | ||
14003 | main () | ||
14004 | { | ||
14005 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14006 | ; | ||
14007 | return 0; | ||
14008 | } | ||
14009 | _ACEOF | ||
14010 | rm -f conftest.$ac_objext | ||
14011 | if { (eval echo "$as_me:14011: \"$ac_compile\"") >&5 | ||
14012 | (eval $ac_compile) 2>&5 | ||
14013 | ac_status=$? | ||
14014 | echo "$as_me:14014: \$? = $ac_status" >&5 | ||
14015 | (exit $ac_status); } && | ||
14016 | { ac_try='test -s conftest.$ac_objext' | ||
14017 | { (eval echo "$as_me:14017: \"$ac_try\"") >&5 | ||
14018 | (eval $ac_try) 2>&5 | ||
14019 | ac_status=$? | ||
14020 | echo "$as_me:14020: \$? = $ac_status" >&5 | ||
14021 | (exit $ac_status); }; }; then | ||
14022 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14023 | else | ||
14024 | echo "$as_me: failed program was:" >&5 | ||
14025 | cat conftest.$ac_ext >&5 | ||
14026 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14027 | |||
14028 | fi | ||
14029 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14030 | |||
14031 | fi | ||
14032 | echo "$as_me:14032: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14033 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
14034 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14035 | cat >>confdefs.h <<\EOF | ||
14036 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
14037 | EOF | ||
14038 | |||
14039 | fi | ||
14040 | |||
14041 | echo "$as_me:14041: checking for pw_class field in struct passwd" >&5 | ||
14042 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
14043 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
14044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14045 | else | ||
14046 | |||
14047 | cat >conftest.$ac_ext <<_ACEOF | ||
14048 | #line 14048 "configure" | ||
14049 | #include "confdefs.h" | ||
14050 | |||
14051 | #include <pwd.h> | ||
14052 | |||
14053 | int | ||
14054 | main () | ||
14055 | { | ||
14056 | struct passwd p; p.pw_class = 0; | ||
14057 | ; | ||
14058 | return 0; | ||
14059 | } | ||
14060 | _ACEOF | ||
14061 | rm -f conftest.$ac_objext | ||
14062 | if { (eval echo "$as_me:14062: \"$ac_compile\"") >&5 | ||
14063 | (eval $ac_compile) 2>&5 | ||
14064 | ac_status=$? | ||
14065 | echo "$as_me:14065: \$? = $ac_status" >&5 | ||
14066 | (exit $ac_status); } && | ||
14067 | { ac_try='test -s conftest.$ac_objext' | ||
14068 | { (eval echo "$as_me:14068: \"$ac_try\"") >&5 | ||
14069 | (eval $ac_try) 2>&5 | ||
14070 | ac_status=$? | ||
14071 | echo "$as_me:14071: \$? = $ac_status" >&5 | ||
14072 | (exit $ac_status); }; }; then | ||
14073 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14074 | else | ||
14075 | echo "$as_me: failed program was:" >&5 | ||
14076 | cat conftest.$ac_ext >&5 | ||
14077 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14078 | |||
14079 | fi | ||
14080 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14081 | |||
14082 | fi | ||
14083 | echo "$as_me:14083: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14084 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
14085 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14086 | cat >>confdefs.h <<\EOF | ||
14087 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
14088 | EOF | ||
14089 | |||
14090 | fi | ||
14091 | |||
14092 | echo "$as_me:14092: checking for pw_expire field in struct passwd" >&5 | ||
14093 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
14094 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
14095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14096 | else | ||
14097 | |||
14098 | cat >conftest.$ac_ext <<_ACEOF | ||
14099 | #line 14099 "configure" | ||
14100 | #include "confdefs.h" | ||
14101 | |||
14102 | #include <pwd.h> | ||
14103 | |||
14104 | int | ||
14105 | main () | ||
14106 | { | ||
14107 | struct passwd p; p.pw_expire = 0; | ||
14108 | ; | ||
14109 | return 0; | ||
14110 | } | ||
14111 | _ACEOF | ||
14112 | rm -f conftest.$ac_objext | ||
14113 | if { (eval echo "$as_me:14113: \"$ac_compile\"") >&5 | ||
14114 | (eval $ac_compile) 2>&5 | ||
14115 | ac_status=$? | ||
14116 | echo "$as_me:14116: \$? = $ac_status" >&5 | ||
14117 | (exit $ac_status); } && | ||
14118 | { ac_try='test -s conftest.$ac_objext' | ||
14119 | { (eval echo "$as_me:14119: \"$ac_try\"") >&5 | ||
14120 | (eval $ac_try) 2>&5 | ||
14121 | ac_status=$? | ||
14122 | echo "$as_me:14122: \$? = $ac_status" >&5 | ||
14123 | (exit $ac_status); }; }; then | ||
14124 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14125 | else | ||
14126 | echo "$as_me: failed program was:" >&5 | ||
14127 | cat conftest.$ac_ext >&5 | ||
14128 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14129 | |||
14130 | fi | ||
14131 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14132 | |||
14133 | fi | ||
14134 | echo "$as_me:14134: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14135 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
14136 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14137 | cat >>confdefs.h <<\EOF | ||
14138 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
14139 | EOF | ||
14140 | |||
14141 | fi | ||
14142 | |||
14143 | echo "$as_me:14143: checking for pw_change field in struct passwd" >&5 | ||
14144 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
14145 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14147 | else | ||
14148 | |||
14149 | cat >conftest.$ac_ext <<_ACEOF | ||
14150 | #line 14150 "configure" | ||
14151 | #include "confdefs.h" | ||
14152 | |||
14153 | #include <pwd.h> | ||
14154 | |||
14155 | int | ||
14156 | main () | ||
14157 | { | ||
14158 | struct passwd p; p.pw_change = 0; | ||
14159 | ; | ||
14160 | return 0; | ||
14161 | } | ||
14162 | _ACEOF | ||
14163 | rm -f conftest.$ac_objext | ||
14164 | if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5 | ||
14165 | (eval $ac_compile) 2>&5 | ||
14166 | ac_status=$? | ||
14167 | echo "$as_me:14167: \$? = $ac_status" >&5 | ||
14168 | (exit $ac_status); } && | ||
14169 | { ac_try='test -s conftest.$ac_objext' | ||
14170 | { (eval echo "$as_me:14170: \"$ac_try\"") >&5 | ||
14171 | (eval $ac_try) 2>&5 | ||
14172 | ac_status=$? | ||
14173 | echo "$as_me:14173: \$? = $ac_status" >&5 | ||
14174 | (exit $ac_status); }; }; then | ||
14175 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14176 | else | ||
14177 | echo "$as_me: failed program was:" >&5 | ||
14178 | cat conftest.$ac_ext >&5 | ||
14179 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14180 | |||
14181 | fi | ||
14182 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14183 | |||
14184 | fi | ||
14185 | echo "$as_me:14185: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14186 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
14187 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14188 | cat >>confdefs.h <<\EOF | ||
14189 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
14190 | EOF | ||
14191 | |||
14192 | fi | ||
14193 | |||
14194 | echo "$as_me:14194: checking for msg_accrights field in struct msghdr" >&5 | ||
14195 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
14196 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
14197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14198 | else | ||
14199 | |||
14200 | if test "$cross_compiling" = yes; then | ||
14201 | { { echo "$as_me:14201: error: cannot run test program while cross compiling" >&5 | ||
14202 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14203 | { (exit 1); exit 1; }; } | ||
14204 | else | ||
14205 | cat >conftest.$ac_ext <<_ACEOF | ||
14206 | #line 14206 "configure" | ||
14207 | #include "confdefs.h" | ||
14208 | |||
14209 | #include <sys/types.h> | ||
14210 | #include <sys/socket.h> | ||
14211 | #include <sys/uio.h> | ||
14212 | int main() { | ||
14213 | #ifdef msg_accrights | ||
14214 | exit(1); | ||
14215 | #endif | ||
14216 | struct msghdr m; | ||
14217 | m.msg_accrights = 0; | ||
14218 | exit(0); | ||
14219 | } | ||
14220 | |||
14221 | _ACEOF | ||
14222 | rm -f conftest$ac_exeext | ||
14223 | if { (eval echo "$as_me:14223: \"$ac_link\"") >&5 | ||
14224 | (eval $ac_link) 2>&5 | ||
14225 | ac_status=$? | ||
14226 | echo "$as_me:14226: \$? = $ac_status" >&5 | ||
14227 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14228 | { (eval echo "$as_me:14228: \"$ac_try\"") >&5 | ||
14229 | (eval $ac_try) 2>&5 | ||
14230 | ac_status=$? | ||
14231 | echo "$as_me:14231: \$? = $ac_status" >&5 | ||
14232 | (exit $ac_status); }; }; then | ||
14233 | ac_cv_have_accrights_in_msghdr="yes" | ||
14234 | else | ||
14235 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14236 | echo "$as_me: failed program was:" >&5 | ||
14237 | cat conftest.$ac_ext >&5 | ||
14238 | ac_cv_have_accrights_in_msghdr="no" | ||
14239 | |||
14240 | fi | ||
14241 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14242 | fi | ||
14243 | |||
14244 | fi | ||
14245 | echo "$as_me:14245: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14246 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
14247 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14248 | cat >>confdefs.h <<\EOF | ||
14249 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
14250 | EOF | ||
14251 | |||
14252 | fi | ||
14253 | |||
14254 | echo "$as_me:14254: checking for msg_control field in struct msghdr" >&5 | ||
14255 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
14256 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
14257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14258 | else | ||
14259 | |||
14260 | if test "$cross_compiling" = yes; then | ||
14261 | { { echo "$as_me:14261: error: cannot run test program while cross compiling" >&5 | ||
14262 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14263 | { (exit 1); exit 1; }; } | ||
14264 | else | ||
14265 | cat >conftest.$ac_ext <<_ACEOF | ||
14266 | #line 14266 "configure" | ||
14267 | #include "confdefs.h" | ||
14268 | |||
14269 | #include <sys/types.h> | ||
14270 | #include <sys/socket.h> | ||
14271 | #include <sys/uio.h> | ||
14272 | int main() { | ||
14273 | #ifdef msg_control | ||
14274 | exit(1); | ||
14275 | #endif | ||
14276 | struct msghdr m; | ||
14277 | m.msg_control = 0; | ||
14278 | exit(0); | ||
14279 | } | ||
14280 | |||
14281 | _ACEOF | ||
14282 | rm -f conftest$ac_exeext | ||
14283 | if { (eval echo "$as_me:14283: \"$ac_link\"") >&5 | ||
14284 | (eval $ac_link) 2>&5 | ||
14285 | ac_status=$? | ||
14286 | echo "$as_me:14286: \$? = $ac_status" >&5 | ||
14287 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14288 | { (eval echo "$as_me:14288: \"$ac_try\"") >&5 | ||
14289 | (eval $ac_try) 2>&5 | ||
14290 | ac_status=$? | ||
14291 | echo "$as_me:14291: \$? = $ac_status" >&5 | ||
14292 | (exit $ac_status); }; }; then | ||
14293 | ac_cv_have_control_in_msghdr="yes" | ||
14294 | else | ||
14295 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14296 | echo "$as_me: failed program was:" >&5 | ||
14297 | cat conftest.$ac_ext >&5 | ||
14298 | ac_cv_have_control_in_msghdr="no" | ||
14299 | |||
14300 | fi | ||
14301 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14302 | fi | ||
14303 | |||
14304 | fi | ||
14305 | echo "$as_me:14305: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14306 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14307 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14308 | cat >>confdefs.h <<\EOF | ||
14309 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
14310 | EOF | ||
14311 | |||
14312 | fi | ||
14313 | |||
14314 | echo "$as_me:14314: checking if libc defines __progname" >&5 | ||
14315 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14316 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14318 | else | ||
14319 | |||
14320 | cat >conftest.$ac_ext <<_ACEOF | ||
14321 | #line 14321 "configure" | ||
14322 | #include "confdefs.h" | ||
14323 | |||
14324 | int | ||
14325 | main () | ||
14326 | { | ||
14327 | extern char *__progname; printf("%s", __progname); | ||
14328 | ; | ||
14329 | return 0; | ||
14330 | } | ||
14331 | _ACEOF | ||
14332 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14333 | if { (eval echo "$as_me:14333: \"$ac_link\"") >&5 | ||
14334 | (eval $ac_link) 2>&5 | ||
14335 | ac_status=$? | ||
14336 | echo "$as_me:14336: \$? = $ac_status" >&5 | ||
14337 | (exit $ac_status); } && | ||
14338 | { ac_try='test -s conftest$ac_exeext' | ||
14339 | { (eval echo "$as_me:14339: \"$ac_try\"") >&5 | ||
14340 | (eval $ac_try) 2>&5 | ||
14341 | ac_status=$? | ||
14342 | echo "$as_me:14342: \$? = $ac_status" >&5 | ||
14343 | (exit $ac_status); }; }; then | ||
14344 | ac_cv_libc_defines___progname="yes" | ||
14345 | else | ||
14346 | echo "$as_me: failed program was:" >&5 | ||
14347 | cat conftest.$ac_ext >&5 | ||
14348 | ac_cv_libc_defines___progname="no" | ||
14349 | |||
14350 | fi | ||
14351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14352 | |||
14353 | fi | ||
14354 | echo "$as_me:14354: result: $ac_cv_libc_defines___progname" >&5 | ||
14355 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14356 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14357 | cat >>confdefs.h <<\EOF | ||
14358 | #define HAVE___PROGNAME 1 | ||
14359 | EOF | ||
14360 | |||
14361 | fi | ||
14362 | |||
14363 | echo "$as_me:14363: checking whether $CC implements __FUNCTION__" >&5 | ||
14364 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14365 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14367 | else | ||
14368 | |||
14369 | cat >conftest.$ac_ext <<_ACEOF | ||
14370 | #line 14370 "configure" | ||
14371 | #include "confdefs.h" | ||
14372 | |||
14373 | #include <stdio.h> | ||
14374 | |||
14375 | int | ||
14376 | main () | ||
14377 | { | ||
14378 | printf("%s", __FUNCTION__); | ||
14379 | ; | ||
14380 | return 0; | ||
14381 | } | ||
14382 | _ACEOF | ||
14383 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14384 | if { (eval echo "$as_me:14384: \"$ac_link\"") >&5 | ||
14385 | (eval $ac_link) 2>&5 | ||
14386 | ac_status=$? | ||
14387 | echo "$as_me:14387: \$? = $ac_status" >&5 | ||
14388 | (exit $ac_status); } && | ||
14389 | { ac_try='test -s conftest$ac_exeext' | ||
14390 | { (eval echo "$as_me:14390: \"$ac_try\"") >&5 | ||
14391 | (eval $ac_try) 2>&5 | ||
14392 | ac_status=$? | ||
14393 | echo "$as_me:14393: \$? = $ac_status" >&5 | ||
14394 | (exit $ac_status); }; }; then | ||
14395 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14396 | else | ||
14397 | echo "$as_me: failed program was:" >&5 | ||
14398 | cat conftest.$ac_ext >&5 | ||
14399 | ac_cv_cc_implements___FUNCTION__="no" | ||
14400 | |||
14401 | fi | ||
14402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14403 | |||
14404 | fi | ||
14405 | echo "$as_me:14405: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14406 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14407 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14408 | cat >>confdefs.h <<\EOF | ||
14409 | #define HAVE___FUNCTION__ 1 | ||
14410 | EOF | ||
14411 | |||
14412 | fi | ||
14413 | |||
14414 | echo "$as_me:14414: checking whether $CC implements __func__" >&5 | ||
14415 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14416 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14418 | else | ||
14419 | |||
14420 | cat >conftest.$ac_ext <<_ACEOF | ||
14421 | #line 14421 "configure" | ||
14422 | #include "confdefs.h" | ||
14423 | |||
14424 | #include <stdio.h> | ||
14425 | |||
14426 | int | ||
14427 | main () | ||
14428 | { | ||
14429 | printf("%s", __func__); | ||
14430 | ; | ||
14431 | return 0; | ||
14432 | } | ||
14433 | _ACEOF | ||
14434 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14435 | if { (eval echo "$as_me:14435: \"$ac_link\"") >&5 | ||
14436 | (eval $ac_link) 2>&5 | ||
14437 | ac_status=$? | ||
14438 | echo "$as_me:14438: \$? = $ac_status" >&5 | ||
14439 | (exit $ac_status); } && | ||
14440 | { ac_try='test -s conftest$ac_exeext' | ||
14441 | { (eval echo "$as_me:14441: \"$ac_try\"") >&5 | ||
14442 | (eval $ac_try) 2>&5 | ||
14443 | ac_status=$? | ||
14444 | echo "$as_me:14444: \$? = $ac_status" >&5 | ||
14445 | (exit $ac_status); }; }; then | ||
14446 | ac_cv_cc_implements___func__="yes" | ||
14447 | else | ||
14448 | echo "$as_me: failed program was:" >&5 | ||
14449 | cat conftest.$ac_ext >&5 | ||
14450 | ac_cv_cc_implements___func__="no" | ||
14451 | |||
14452 | fi | ||
14453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14454 | |||
14455 | fi | ||
14456 | echo "$as_me:14456: result: $ac_cv_cc_implements___func__" >&5 | ||
14457 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14458 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14459 | cat >>confdefs.h <<\EOF | ||
14460 | #define HAVE___func__ 1 | ||
14461 | EOF | ||
14462 | |||
14463 | fi | ||
14464 | |||
14465 | echo "$as_me:14465: checking whether getopt has optreset support" >&5 | ||
14466 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14467 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14469 | else | ||
14470 | |||
14471 | cat >conftest.$ac_ext <<_ACEOF | ||
14472 | #line 14472 "configure" | ||
14473 | #include "confdefs.h" | ||
14474 | |||
14475 | #include <getopt.h> | ||
14476 | |||
14477 | int | ||
14478 | main () | ||
14479 | { | ||
14480 | extern int optreset; optreset = 0; | ||
14481 | ; | ||
14482 | return 0; | ||
14483 | } | ||
14484 | _ACEOF | ||
14485 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14486 | if { (eval echo "$as_me:14486: \"$ac_link\"") >&5 | ||
14487 | (eval $ac_link) 2>&5 | ||
14488 | ac_status=$? | ||
14489 | echo "$as_me:14489: \$? = $ac_status" >&5 | ||
14490 | (exit $ac_status); } && | ||
14491 | { ac_try='test -s conftest$ac_exeext' | ||
14492 | { (eval echo "$as_me:14492: \"$ac_try\"") >&5 | ||
14493 | (eval $ac_try) 2>&5 | ||
14494 | ac_status=$? | ||
14495 | echo "$as_me:14495: \$? = $ac_status" >&5 | ||
14496 | (exit $ac_status); }; }; then | ||
14497 | ac_cv_have_getopt_optreset="yes" | ||
14498 | else | ||
14499 | echo "$as_me: failed program was:" >&5 | ||
14500 | cat conftest.$ac_ext >&5 | ||
14501 | ac_cv_have_getopt_optreset="no" | ||
14502 | |||
14503 | fi | ||
14504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14505 | |||
14506 | fi | ||
14507 | echo "$as_me:14507: result: $ac_cv_have_getopt_optreset" >&5 | ||
14508 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
14509 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14510 | cat >>confdefs.h <<\EOF | ||
14511 | #define HAVE_GETOPT_OPTRESET 1 | ||
14512 | EOF | ||
14513 | |||
14514 | fi | ||
14515 | |||
14516 | echo "$as_me:14516: checking if libc defines sys_errlist" >&5 | ||
14517 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
14518 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
14519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14520 | else | ||
14521 | |||
14522 | cat >conftest.$ac_ext <<_ACEOF | ||
14523 | #line 14523 "configure" | ||
14524 | #include "confdefs.h" | ||
14525 | |||
14526 | int | ||
14527 | main () | ||
14528 | { | ||
14529 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14530 | ; | ||
14531 | return 0; | ||
14532 | } | ||
14533 | _ACEOF | ||
14534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14535 | if { (eval echo "$as_me:14535: \"$ac_link\"") >&5 | ||
14536 | (eval $ac_link) 2>&5 | ||
14537 | ac_status=$? | ||
14538 | echo "$as_me:14538: \$? = $ac_status" >&5 | ||
14539 | (exit $ac_status); } && | ||
14540 | { ac_try='test -s conftest$ac_exeext' | ||
14541 | { (eval echo "$as_me:14541: \"$ac_try\"") >&5 | ||
14542 | (eval $ac_try) 2>&5 | ||
14543 | ac_status=$? | ||
14544 | echo "$as_me:14544: \$? = $ac_status" >&5 | ||
14545 | (exit $ac_status); }; }; then | ||
14546 | ac_cv_libc_defines_sys_errlist="yes" | ||
14547 | else | ||
14548 | echo "$as_me: failed program was:" >&5 | ||
14549 | cat conftest.$ac_ext >&5 | ||
14550 | ac_cv_libc_defines_sys_errlist="no" | ||
14551 | |||
14552 | fi | ||
14553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14554 | |||
14555 | fi | ||
14556 | echo "$as_me:14556: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14557 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
14558 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14559 | cat >>confdefs.h <<\EOF | ||
14560 | #define HAVE_SYS_ERRLIST 1 | ||
14561 | EOF | ||
14562 | |||
14563 | fi | ||
14564 | |||
14565 | echo "$as_me:14565: checking if libc defines sys_nerr" >&5 | ||
14566 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
14567 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14569 | else | ||
14570 | |||
14571 | cat >conftest.$ac_ext <<_ACEOF | ||
14572 | #line 14572 "configure" | ||
14573 | #include "confdefs.h" | ||
14574 | |||
14575 | int | ||
14576 | main () | ||
14577 | { | ||
14578 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14579 | ; | ||
14580 | return 0; | ||
14581 | } | ||
14582 | _ACEOF | ||
14583 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14584 | if { (eval echo "$as_me:14584: \"$ac_link\"") >&5 | ||
14585 | (eval $ac_link) 2>&5 | ||
14586 | ac_status=$? | ||
14587 | echo "$as_me:14587: \$? = $ac_status" >&5 | ||
14588 | (exit $ac_status); } && | ||
14589 | { ac_try='test -s conftest$ac_exeext' | ||
14590 | { (eval echo "$as_me:14590: \"$ac_try\"") >&5 | ||
14591 | (eval $ac_try) 2>&5 | ||
14592 | ac_status=$? | ||
14593 | echo "$as_me:14593: \$? = $ac_status" >&5 | ||
14594 | (exit $ac_status); }; }; then | ||
14595 | ac_cv_libc_defines_sys_nerr="yes" | ||
14596 | else | ||
14597 | echo "$as_me: failed program was:" >&5 | ||
14598 | cat conftest.$ac_ext >&5 | ||
14599 | ac_cv_libc_defines_sys_nerr="no" | ||
14600 | |||
14601 | fi | ||
14602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14603 | |||
14604 | fi | ||
14605 | echo "$as_me:14605: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14606 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
14607 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14608 | cat >>confdefs.h <<\EOF | ||
14609 | #define HAVE_SYS_NERR 1 | ||
14610 | EOF | ||
14611 | |||
14612 | fi | ||
14613 | |||
14614 | SCARD_MSG="no" | ||
14615 | # Check whether user wants sectok support | ||
14616 | |||
14617 | # Check whether --with-sectok or --without-sectok was given. | ||
14618 | if test "${with_sectok+set}" = set; then | ||
14619 | withval="$with_sectok" | ||
14620 | |||
14621 | if test "x$withval" != "xno" ; then | ||
14622 | if test "x$withval" != "xyes" ; then | ||
14623 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
14624 | LDFLAGS="$LDFLAGS -L${withval}" | ||
14625 | if test ! -z "$need_dash_r" ; then | ||
14626 | LDFLAGS="$LDFLAGS -R${withval}" | ||
14627 | fi | ||
14628 | if test ! -z "$blibpath" ; then | ||
14629 | blibpath="$blibpath:${withval}" | ||
14630 | fi | ||
14631 | fi | ||
14632 | |||
14633 | for ac_header in sectok.h | ||
14634 | do | ||
14635 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
14636 | echo "$as_me:14636: checking for $ac_header" >&5 | ||
14637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
14638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
14639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14640 | else | ||
14641 | cat >conftest.$ac_ext <<_ACEOF | ||
14642 | #line 14642 "configure" | ||
14643 | #include "confdefs.h" | ||
14644 | #include <$ac_header> | ||
14645 | _ACEOF | ||
14646 | if { (eval echo "$as_me:14646: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
14647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
14648 | ac_status=$? | ||
14649 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
14650 | rm -f conftest.er1 | ||
14651 | cat conftest.err >&5 | ||
14652 | echo "$as_me:14652: \$? = $ac_status" >&5 | ||
14653 | (exit $ac_status); } >/dev/null; then | ||
14654 | if test -s conftest.err; then | ||
14655 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
14656 | else | ||
14657 | ac_cpp_err= | ||
14658 | fi | ||
14659 | else | ||
14660 | ac_cpp_err=yes | ||
14661 | fi | ||
14662 | if test -z "$ac_cpp_err"; then | ||
14663 | eval "$as_ac_Header=yes" | ||
14664 | else | ||
14665 | echo "$as_me: failed program was:" >&5 | ||
14666 | cat conftest.$ac_ext >&5 | ||
14667 | eval "$as_ac_Header=no" | ||
14668 | fi | ||
14669 | rm -f conftest.err conftest.$ac_ext | ||
14670 | fi | ||
14671 | echo "$as_me:14671: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
14672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
14673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
14674 | cat >>confdefs.h <<EOF | ||
14675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
14676 | EOF | ||
14677 | |||
14678 | fi | ||
14679 | done | ||
14680 | |||
14681 | if test "$ac_cv_header_sectok_h" != yes; then | ||
14682 | { { echo "$as_me:14682: error: Can't find sectok.h" >&5 | ||
14683 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
14684 | { (exit 1); exit 1; }; } | ||
14685 | fi | ||
14686 | |||
14687 | echo "$as_me:14687: checking for sectok_open in -lsectok" >&5 | ||
14688 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
14689 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
14690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14691 | else | ||
14692 | ac_check_lib_save_LIBS=$LIBS | ||
14693 | LIBS="-lsectok $LIBS" | ||
14694 | cat >conftest.$ac_ext <<_ACEOF | ||
14695 | #line 14695 "configure" | ||
14696 | #include "confdefs.h" | ||
14697 | |||
14698 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14699 | #ifdef __cplusplus | ||
14700 | extern "C" | ||
14701 | #endif | ||
14702 | /* We use char because int might match the return type of a gcc2 | ||
14703 | builtin and then its argument prototype would still apply. */ | ||
14704 | char sectok_open (); | ||
14705 | int | ||
14706 | main () | ||
14707 | { | ||
14708 | sectok_open (); | ||
14709 | ; | ||
14710 | return 0; | ||
14711 | } | ||
14712 | _ACEOF | ||
14713 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14714 | if { (eval echo "$as_me:14714: \"$ac_link\"") >&5 | ||
14715 | (eval $ac_link) 2>&5 | ||
14716 | ac_status=$? | ||
14717 | echo "$as_me:14717: \$? = $ac_status" >&5 | ||
14718 | (exit $ac_status); } && | ||
14719 | { ac_try='test -s conftest$ac_exeext' | ||
14720 | { (eval echo "$as_me:14720: \"$ac_try\"") >&5 | ||
14721 | (eval $ac_try) 2>&5 | ||
14722 | ac_status=$? | ||
14723 | echo "$as_me:14723: \$? = $ac_status" >&5 | ||
14724 | (exit $ac_status); }; }; then | ||
14725 | ac_cv_lib_sectok_sectok_open=yes | ||
14726 | else | ||
14727 | echo "$as_me: failed program was:" >&5 | ||
14728 | cat conftest.$ac_ext >&5 | ||
14729 | ac_cv_lib_sectok_sectok_open=no | ||
14730 | fi | ||
14731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14732 | LIBS=$ac_check_lib_save_LIBS | ||
14733 | fi | ||
14734 | echo "$as_me:14734: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
14735 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
14736 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
14737 | cat >>confdefs.h <<EOF | ||
14738 | #define HAVE_LIBSECTOK 1 | ||
14739 | EOF | ||
14740 | |||
14741 | LIBS="-lsectok $LIBS" | ||
14742 | |||
14743 | fi | ||
14744 | |||
14745 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
14746 | { { echo "$as_me:14746: error: Can't find libsectok" >&5 | ||
14747 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
14748 | { (exit 1); exit 1; }; } | ||
14749 | fi | ||
14750 | cat >>confdefs.h <<\EOF | ||
14751 | #define SMARTCARD 1 | ||
14752 | EOF | ||
14753 | |||
14754 | cat >>confdefs.h <<\EOF | ||
14755 | #define USE_SECTOK 1 | ||
14756 | EOF | ||
14757 | |||
14758 | SCARD_MSG="yes, using sectok" | ||
14759 | fi | ||
14760 | |||
14761 | fi; | ||
14762 | |||
14763 | # Check whether user wants OpenSC support | ||
14764 | |||
14765 | # Check whether --with-opensc or --without-opensc was given. | ||
14766 | if test "${with_opensc+set}" = set; then | ||
14767 | withval="$with_opensc" | ||
14768 | opensc_config_prefix="$withval" | ||
14769 | else | ||
14770 | opensc_config_prefix="" | ||
14771 | fi; | ||
14772 | if test x$opensc_config_prefix != x ; then | ||
14773 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
14774 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
14775 | set dummy opensc-config; ac_word=$2 | ||
14776 | echo "$as_me:14776: checking for $ac_word" >&5 | ||
14777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14778 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
14779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14780 | else | ||
14781 | case $OPENSC_CONFIG in | ||
14782 | [\\/]* | ?:[\\/]*) | ||
14783 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
14784 | ;; | ||
14785 | *) | ||
14786 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
14787 | ac_dummy="$PATH" | ||
14788 | for ac_dir in $ac_dummy; do | ||
14789 | IFS=$ac_save_IFS | ||
14790 | test -z "$ac_dir" && ac_dir=. | ||
14791 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
14792 | ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word" | ||
14793 | echo "$as_me:14793: found $ac_dir/$ac_word" >&5 | ||
14794 | break | ||
14795 | fi | ||
14796 | done | ||
14797 | |||
14798 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
14799 | ;; | ||
14800 | esac | ||
14801 | fi | ||
14802 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
14803 | |||
14804 | if test -n "$OPENSC_CONFIG"; then | ||
14805 | echo "$as_me:14805: result: $OPENSC_CONFIG" >&5 | ||
14806 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
14807 | else | ||
14808 | echo "$as_me:14808: result: no" >&5 | ||
14809 | echo "${ECHO_T}no" >&6 | ||
14810 | fi | ||
14811 | |||
14812 | if test "$OPENSC_CONFIG" != "no"; then | ||
14813 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
14814 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
14815 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
14816 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
14817 | cat >>confdefs.h <<\EOF | ||
14818 | #define SMARTCARD 1 | ||
14819 | EOF | ||
14820 | |||
14821 | cat >>confdefs.h <<\EOF | ||
14822 | #define USE_OPENSC 1 | ||
14823 | EOF | ||
14824 | |||
14825 | SCARD_MSG="yes, using OpenSC" | ||
14826 | fi | ||
14827 | fi | ||
14828 | |||
14829 | # Check libraries needed by DNS fingerprint support | ||
14830 | echo "$as_me:14830: checking for library containing getrrsetbyname" >&5 | ||
14831 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
14832 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
14833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14834 | else | ||
14835 | ac_func_search_save_LIBS=$LIBS | ||
14836 | ac_cv_search_getrrsetbyname=no | ||
14837 | cat >conftest.$ac_ext <<_ACEOF | ||
14838 | #line 14838 "configure" | ||
14839 | #include "confdefs.h" | ||
14840 | |||
14841 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14842 | #ifdef __cplusplus | ||
14843 | extern "C" | ||
14844 | #endif | ||
14845 | /* We use char because int might match the return type of a gcc2 | ||
14846 | builtin and then its argument prototype would still apply. */ | ||
14847 | char getrrsetbyname (); | ||
14848 | int | ||
14849 | main () | ||
14850 | { | ||
14851 | getrrsetbyname (); | ||
14852 | ; | ||
14853 | return 0; | ||
14854 | } | ||
14855 | _ACEOF | ||
14856 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14857 | if { (eval echo "$as_me:14857: \"$ac_link\"") >&5 | ||
14858 | (eval $ac_link) 2>&5 | ||
14859 | ac_status=$? | ||
14860 | echo "$as_me:14860: \$? = $ac_status" >&5 | ||
14861 | (exit $ac_status); } && | ||
14862 | { ac_try='test -s conftest$ac_exeext' | ||
14863 | { (eval echo "$as_me:14863: \"$ac_try\"") >&5 | ||
14864 | (eval $ac_try) 2>&5 | ||
14865 | ac_status=$? | ||
14866 | echo "$as_me:14866: \$? = $ac_status" >&5 | ||
14867 | (exit $ac_status); }; }; then | ||
14868 | ac_cv_search_getrrsetbyname="none required" | ||
14869 | else | ||
14870 | echo "$as_me: failed program was:" >&5 | ||
14871 | cat conftest.$ac_ext >&5 | ||
14872 | fi | ||
14873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14874 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
14875 | for ac_lib in resolv; do | ||
14876 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14877 | cat >conftest.$ac_ext <<_ACEOF | ||
14878 | #line 14878 "configure" | ||
14879 | #include "confdefs.h" | ||
14880 | |||
14881 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14882 | #ifdef __cplusplus | ||
14883 | extern "C" | ||
14884 | #endif | ||
14885 | /* We use char because int might match the return type of a gcc2 | ||
14886 | builtin and then its argument prototype would still apply. */ | ||
14887 | char getrrsetbyname (); | ||
14888 | int | ||
14889 | main () | ||
14890 | { | ||
14891 | getrrsetbyname (); | ||
14892 | ; | ||
14893 | return 0; | ||
14894 | } | ||
14895 | _ACEOF | ||
14896 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14897 | if { (eval echo "$as_me:14897: \"$ac_link\"") >&5 | ||
14898 | (eval $ac_link) 2>&5 | ||
14899 | ac_status=$? | ||
14900 | echo "$as_me:14900: \$? = $ac_status" >&5 | ||
14901 | (exit $ac_status); } && | ||
14902 | { ac_try='test -s conftest$ac_exeext' | ||
14903 | { (eval echo "$as_me:14903: \"$ac_try\"") >&5 | ||
14904 | (eval $ac_try) 2>&5 | ||
14905 | ac_status=$? | ||
14906 | echo "$as_me:14906: \$? = $ac_status" >&5 | ||
14907 | (exit $ac_status); }; }; then | ||
14908 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
14909 | break | ||
14910 | else | ||
14911 | echo "$as_me: failed program was:" >&5 | ||
14912 | cat conftest.$ac_ext >&5 | ||
14913 | fi | ||
14914 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14915 | done | ||
14916 | fi | ||
14917 | LIBS=$ac_func_search_save_LIBS | ||
14918 | fi | ||
14919 | echo "$as_me:14919: result: $ac_cv_search_getrrsetbyname" >&5 | ||
14920 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
14921 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
14922 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
14923 | cat >>confdefs.h <<\EOF | ||
14924 | #define HAVE_GETRRSETBYNAME 1 | ||
14925 | EOF | ||
14926 | |||
14927 | else | ||
14928 | |||
14929 | # Needed by our getrrsetbyname() | ||
14930 | echo "$as_me:14930: checking for library containing res_query" >&5 | ||
14931 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
14932 | if test "${ac_cv_search_res_query+set}" = set; then | ||
14933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14934 | else | ||
14935 | ac_func_search_save_LIBS=$LIBS | ||
14936 | ac_cv_search_res_query=no | ||
14937 | cat >conftest.$ac_ext <<_ACEOF | ||
14938 | #line 14938 "configure" | ||
14939 | #include "confdefs.h" | ||
14940 | |||
14941 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14942 | #ifdef __cplusplus | ||
14943 | extern "C" | ||
14944 | #endif | ||
14945 | /* We use char because int might match the return type of a gcc2 | ||
14946 | builtin and then its argument prototype would still apply. */ | ||
14947 | char res_query (); | ||
14948 | int | ||
14949 | main () | ||
14950 | { | ||
14951 | res_query (); | ||
14952 | ; | ||
14953 | return 0; | ||
14954 | } | ||
14955 | _ACEOF | ||
14956 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14957 | if { (eval echo "$as_me:14957: \"$ac_link\"") >&5 | ||
14958 | (eval $ac_link) 2>&5 | ||
14959 | ac_status=$? | ||
14960 | echo "$as_me:14960: \$? = $ac_status" >&5 | ||
14961 | (exit $ac_status); } && | ||
14962 | { ac_try='test -s conftest$ac_exeext' | ||
14963 | { (eval echo "$as_me:14963: \"$ac_try\"") >&5 | ||
14964 | (eval $ac_try) 2>&5 | ||
14965 | ac_status=$? | ||
14966 | echo "$as_me:14966: \$? = $ac_status" >&5 | ||
14967 | (exit $ac_status); }; }; then | ||
14968 | ac_cv_search_res_query="none required" | ||
14969 | else | ||
14970 | echo "$as_me: failed program was:" >&5 | ||
14971 | cat conftest.$ac_ext >&5 | ||
14972 | fi | ||
14973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14974 | if test "$ac_cv_search_res_query" = no; then | ||
14975 | for ac_lib in resolv; do | ||
14976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14977 | cat >conftest.$ac_ext <<_ACEOF | ||
14978 | #line 14978 "configure" | ||
14979 | #include "confdefs.h" | ||
14980 | |||
14981 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14982 | #ifdef __cplusplus | ||
14983 | extern "C" | ||
14984 | #endif | ||
14985 | /* We use char because int might match the return type of a gcc2 | ||
14986 | builtin and then its argument prototype would still apply. */ | ||
14987 | char res_query (); | ||
14988 | int | ||
14989 | main () | ||
14990 | { | ||
14991 | res_query (); | ||
14992 | ; | ||
14993 | return 0; | ||
14994 | } | ||
14995 | _ACEOF | ||
14996 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14997 | if { (eval echo "$as_me:14997: \"$ac_link\"") >&5 | ||
14998 | (eval $ac_link) 2>&5 | ||
14999 | ac_status=$? | ||
15000 | echo "$as_me:15000: \$? = $ac_status" >&5 | ||
15001 | (exit $ac_status); } && | ||
15002 | { ac_try='test -s conftest$ac_exeext' | ||
15003 | { (eval echo "$as_me:15003: \"$ac_try\"") >&5 | ||
15004 | (eval $ac_try) 2>&5 | ||
15005 | ac_status=$? | ||
15006 | echo "$as_me:15006: \$? = $ac_status" >&5 | ||
15007 | (exit $ac_status); }; }; then | ||
15008 | ac_cv_search_res_query="-l$ac_lib" | ||
15009 | break | ||
15010 | else | ||
15011 | echo "$as_me: failed program was:" >&5 | ||
15012 | cat conftest.$ac_ext >&5 | ||
15013 | fi | ||
15014 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15015 | done | ||
15016 | fi | ||
15017 | LIBS=$ac_func_search_save_LIBS | ||
15018 | fi | ||
15019 | echo "$as_me:15019: result: $ac_cv_search_res_query" >&5 | ||
15020 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
15021 | if test "$ac_cv_search_res_query" != no; then | ||
15022 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
15023 | |||
15024 | fi | ||
15025 | |||
15026 | echo "$as_me:15026: checking for library containing dn_expand" >&5 | ||
15027 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
15028 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
15029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15030 | else | ||
15031 | ac_func_search_save_LIBS=$LIBS | ||
15032 | ac_cv_search_dn_expand=no | ||
15033 | cat >conftest.$ac_ext <<_ACEOF | ||
15034 | #line 15034 "configure" | ||
15035 | #include "confdefs.h" | ||
15036 | |||
15037 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15038 | #ifdef __cplusplus | ||
15039 | extern "C" | ||
15040 | #endif | ||
15041 | /* We use char because int might match the return type of a gcc2 | ||
15042 | builtin and then its argument prototype would still apply. */ | ||
15043 | char dn_expand (); | ||
15044 | int | ||
15045 | main () | ||
15046 | { | ||
15047 | dn_expand (); | ||
15048 | ; | ||
15049 | return 0; | ||
15050 | } | ||
15051 | _ACEOF | ||
15052 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15053 | if { (eval echo "$as_me:15053: \"$ac_link\"") >&5 | ||
15054 | (eval $ac_link) 2>&5 | ||
15055 | ac_status=$? | ||
15056 | echo "$as_me:15056: \$? = $ac_status" >&5 | ||
15057 | (exit $ac_status); } && | ||
15058 | { ac_try='test -s conftest$ac_exeext' | ||
15059 | { (eval echo "$as_me:15059: \"$ac_try\"") >&5 | ||
15060 | (eval $ac_try) 2>&5 | ||
15061 | ac_status=$? | ||
15062 | echo "$as_me:15062: \$? = $ac_status" >&5 | ||
15063 | (exit $ac_status); }; }; then | ||
15064 | ac_cv_search_dn_expand="none required" | ||
15065 | else | ||
15066 | echo "$as_me: failed program was:" >&5 | ||
15067 | cat conftest.$ac_ext >&5 | ||
15068 | fi | ||
15069 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15070 | if test "$ac_cv_search_dn_expand" = no; then | ||
15071 | for ac_lib in resolv; do | ||
15072 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15073 | cat >conftest.$ac_ext <<_ACEOF | ||
15074 | #line 15074 "configure" | ||
15075 | #include "confdefs.h" | ||
15076 | |||
15077 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15078 | #ifdef __cplusplus | ||
15079 | extern "C" | ||
15080 | #endif | ||
15081 | /* We use char because int might match the return type of a gcc2 | ||
15082 | builtin and then its argument prototype would still apply. */ | ||
15083 | char dn_expand (); | ||
15084 | int | ||
15085 | main () | ||
15086 | { | ||
15087 | dn_expand (); | ||
15088 | ; | ||
15089 | return 0; | ||
15090 | } | ||
15091 | _ACEOF | ||
15092 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15093 | if { (eval echo "$as_me:15093: \"$ac_link\"") >&5 | ||
15094 | (eval $ac_link) 2>&5 | ||
15095 | ac_status=$? | ||
15096 | echo "$as_me:15096: \$? = $ac_status" >&5 | ||
15097 | (exit $ac_status); } && | ||
15098 | { ac_try='test -s conftest$ac_exeext' | ||
15099 | { (eval echo "$as_me:15099: \"$ac_try\"") >&5 | ||
15100 | (eval $ac_try) 2>&5 | ||
15101 | ac_status=$? | ||
15102 | echo "$as_me:15102: \$? = $ac_status" >&5 | ||
15103 | (exit $ac_status); }; }; then | ||
15104 | ac_cv_search_dn_expand="-l$ac_lib" | ||
15105 | break | ||
15106 | else | ||
15107 | echo "$as_me: failed program was:" >&5 | ||
15108 | cat conftest.$ac_ext >&5 | ||
15109 | fi | ||
15110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15111 | done | ||
15112 | fi | ||
15113 | LIBS=$ac_func_search_save_LIBS | ||
15114 | fi | ||
15115 | echo "$as_me:15115: result: $ac_cv_search_dn_expand" >&5 | ||
15116 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
15117 | if test "$ac_cv_search_dn_expand" != no; then | ||
15118 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
15119 | |||
15120 | fi | ||
15121 | |||
15122 | for ac_func in _getshort _getlong | ||
15123 | do | ||
15124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15125 | echo "$as_me:15125: checking for $ac_func" >&5 | ||
15126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
15127 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
15128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15129 | else | ||
15130 | cat >conftest.$ac_ext <<_ACEOF | ||
15131 | #line 15131 "configure" | ||
15132 | #include "confdefs.h" | ||
15133 | /* System header to define __stub macros and hopefully few prototypes, | ||
15134 | which can conflict with char $ac_func (); below. */ | ||
15135 | #include <assert.h> | ||
15136 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15137 | #ifdef __cplusplus | ||
15138 | extern "C" | ||
15139 | #endif | ||
15140 | /* We use char because int might match the return type of a gcc2 | ||
15141 | builtin and then its argument prototype would still apply. */ | ||
15142 | char $ac_func (); | ||
15143 | char (*f) (); | ||
15144 | |||
15145 | int | ||
15146 | main () | ||
15147 | { | ||
15148 | /* The GNU C library defines this for functions which it implements | ||
15149 | to always fail with ENOSYS. Some functions are actually named | ||
15150 | something starting with __ and the normal name is an alias. */ | ||
15151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
15152 | choke me | ||
15153 | #else | ||
15154 | f = $ac_func; | ||
15155 | #endif | ||
15156 | |||
15157 | ; | ||
15158 | return 0; | ||
15159 | } | ||
15160 | _ACEOF | ||
15161 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15162 | if { (eval echo "$as_me:15162: \"$ac_link\"") >&5 | ||
15163 | (eval $ac_link) 2>&5 | ||
15164 | ac_status=$? | ||
15165 | echo "$as_me:15165: \$? = $ac_status" >&5 | ||
15166 | (exit $ac_status); } && | ||
15167 | { ac_try='test -s conftest$ac_exeext' | ||
15168 | { (eval echo "$as_me:15168: \"$ac_try\"") >&5 | ||
15169 | (eval $ac_try) 2>&5 | ||
15170 | ac_status=$? | ||
15171 | echo "$as_me:15171: \$? = $ac_status" >&5 | ||
15172 | (exit $ac_status); }; }; then | ||
15173 | eval "$as_ac_var=yes" | ||
15174 | else | ||
15175 | echo "$as_me: failed program was:" >&5 | ||
15176 | cat conftest.$ac_ext >&5 | ||
15177 | eval "$as_ac_var=no" | ||
15178 | fi | ||
15179 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15180 | fi | ||
15181 | echo "$as_me:15181: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
15182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
15183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15184 | cat >>confdefs.h <<EOF | ||
15185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15186 | EOF | ||
15187 | |||
15188 | fi | ||
15189 | done | ||
15190 | |||
15191 | echo "$as_me:15191: checking for HEADER.ad" >&5 | ||
15192 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
15193 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
15194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15195 | else | ||
15196 | cat >conftest.$ac_ext <<_ACEOF | ||
15197 | #line 15197 "configure" | ||
15198 | #include "confdefs.h" | ||
15199 | #include <arpa/nameser.h> | ||
15200 | |||
15201 | int | ||
15202 | main () | ||
15203 | { | ||
15204 | static HEADER ac_aggr; | ||
15205 | if (ac_aggr.ad) | ||
15206 | return 0; | ||
15207 | ; | ||
15208 | return 0; | ||
15209 | } | ||
15210 | _ACEOF | ||
15211 | rm -f conftest.$ac_objext | ||
15212 | if { (eval echo "$as_me:15212: \"$ac_compile\"") >&5 | ||
15213 | (eval $ac_compile) 2>&5 | ||
15214 | ac_status=$? | ||
15215 | echo "$as_me:15215: \$? = $ac_status" >&5 | ||
15216 | (exit $ac_status); } && | ||
15217 | { ac_try='test -s conftest.$ac_objext' | ||
15218 | { (eval echo "$as_me:15218: \"$ac_try\"") >&5 | ||
15219 | (eval $ac_try) 2>&5 | ||
15220 | ac_status=$? | ||
15221 | echo "$as_me:15221: \$? = $ac_status" >&5 | ||
15222 | (exit $ac_status); }; }; then | ||
15223 | ac_cv_member_HEADER_ad=yes | ||
15224 | else | ||
15225 | echo "$as_me: failed program was:" >&5 | ||
15226 | cat conftest.$ac_ext >&5 | ||
15227 | ac_cv_member_HEADER_ad=no | ||
15228 | fi | ||
15229 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15230 | fi | ||
15231 | echo "$as_me:15231: result: $ac_cv_member_HEADER_ad" >&5 | ||
15232 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
15233 | if test $ac_cv_member_HEADER_ad = yes; then | ||
15234 | cat >>confdefs.h <<\EOF | ||
15235 | #define HAVE_HEADER_AD 1 | ||
15236 | EOF | ||
15237 | |||
15238 | fi | ||
15239 | |||
15240 | fi | ||
15241 | |||
15242 | # Check whether user wants Kerberos 5 support | ||
15243 | KRB5_MSG="no" | ||
15244 | |||
15245 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
15246 | if test "${with_kerberos5+set}" = set; then | ||
15247 | withval="$with_kerberos5" | ||
15248 | if test "x$withval" != "xno" ; then | ||
15249 | if test "x$withval" = "xyes" ; then | ||
15250 | KRB5ROOT="/usr/local" | ||
15251 | else | ||
15252 | KRB5ROOT=${withval} | ||
15253 | fi | ||
15254 | |||
15255 | cat >>confdefs.h <<\EOF | ||
15256 | #define KRB5 1 | ||
15257 | EOF | ||
15258 | |||
15259 | KRB5_MSG="yes" | ||
15260 | |||
15261 | echo "$as_me:15261: checking for krb5-config" >&5 | ||
15262 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
15263 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
15264 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
15265 | echo "$as_me:15265: result: $KRB5CONF" >&5 | ||
15266 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
15267 | |||
15268 | echo "$as_me:15268: checking for gssapi support" >&5 | ||
15269 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
15270 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
15271 | echo "$as_me:15271: result: yes" >&5 | ||
15272 | echo "${ECHO_T}yes" >&6 | ||
15273 | cat >>confdefs.h <<\EOF | ||
15274 | #define GSSAPI 1 | ||
15275 | EOF | ||
15276 | |||
15277 | k5confopts=gssapi | ||
15278 | else | ||
15279 | echo "$as_me:15279: result: no" >&5 | ||
15280 | echo "${ECHO_T}no" >&6 | ||
15281 | k5confopts="" | ||
15282 | fi | ||
15283 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
15284 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
15285 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
15286 | echo "$as_me:15286: checking whether we are using Heimdal" >&5 | ||
15287 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15288 | cat >conftest.$ac_ext <<_ACEOF | ||
15289 | #line 15289 "configure" | ||
15290 | #include "confdefs.h" | ||
15291 | #include <krb5.h> | ||
15292 | int | ||
15293 | main () | ||
15294 | { | ||
15295 | char *tmp = heimdal_version; | ||
15296 | ; | ||
15297 | return 0; | ||
15298 | } | ||
15299 | _ACEOF | ||
15300 | rm -f conftest.$ac_objext | ||
15301 | if { (eval echo "$as_me:15301: \"$ac_compile\"") >&5 | ||
15302 | (eval $ac_compile) 2>&5 | ||
15303 | ac_status=$? | ||
15304 | echo "$as_me:15304: \$? = $ac_status" >&5 | ||
15305 | (exit $ac_status); } && | ||
15306 | { ac_try='test -s conftest.$ac_objext' | ||
15307 | { (eval echo "$as_me:15307: \"$ac_try\"") >&5 | ||
15308 | (eval $ac_try) 2>&5 | ||
15309 | ac_status=$? | ||
15310 | echo "$as_me:15310: \$? = $ac_status" >&5 | ||
15311 | (exit $ac_status); }; }; then | ||
15312 | echo "$as_me:15312: result: yes" >&5 | ||
15313 | echo "${ECHO_T}yes" >&6 | ||
15314 | cat >>confdefs.h <<\EOF | ||
15315 | #define HEIMDAL 1 | ||
15316 | EOF | ||
15317 | |||
15318 | else | ||
15319 | echo "$as_me: failed program was:" >&5 | ||
15320 | cat conftest.$ac_ext >&5 | ||
15321 | echo "$as_me:15321: result: no" >&5 | ||
15322 | echo "${ECHO_T}no" >&6 | ||
15323 | |||
15324 | fi | ||
15325 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15326 | else | ||
15327 | echo "$as_me:15327: result: no" >&5 | ||
15328 | echo "${ECHO_T}no" >&6 | ||
15329 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15330 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15331 | echo "$as_me:15331: checking whether we are using Heimdal" >&5 | ||
15332 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15333 | cat >conftest.$ac_ext <<_ACEOF | ||
15334 | #line 15334 "configure" | ||
15335 | #include "confdefs.h" | ||
15336 | #include <krb5.h> | ||
15337 | int | ||
15338 | main () | ||
15339 | { | ||
15340 | char *tmp = heimdal_version; | ||
15341 | ; | ||
15342 | return 0; | ||
15343 | } | ||
15344 | _ACEOF | ||
15345 | rm -f conftest.$ac_objext | ||
15346 | if { (eval echo "$as_me:15346: \"$ac_compile\"") >&5 | ||
15347 | (eval $ac_compile) 2>&5 | ||
15348 | ac_status=$? | ||
15349 | echo "$as_me:15349: \$? = $ac_status" >&5 | ||
15350 | (exit $ac_status); } && | ||
15351 | { ac_try='test -s conftest.$ac_objext' | ||
15352 | { (eval echo "$as_me:15352: \"$ac_try\"") >&5 | ||
15353 | (eval $ac_try) 2>&5 | ||
15354 | ac_status=$? | ||
15355 | echo "$as_me:15355: \$? = $ac_status" >&5 | ||
15356 | (exit $ac_status); }; }; then | ||
15357 | echo "$as_me:15357: result: yes" >&5 | ||
15358 | echo "${ECHO_T}yes" >&6 | ||
15359 | cat >>confdefs.h <<\EOF | ||
15360 | #define HEIMDAL 1 | ||
15361 | EOF | ||
15362 | |||
15363 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
15364 | |||
15365 | else | ||
15366 | echo "$as_me: failed program was:" >&5 | ||
15367 | cat conftest.$ac_ext >&5 | ||
15368 | echo "$as_me:15368: result: no" >&5 | ||
15369 | echo "${ECHO_T}no" >&6 | ||
15370 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15371 | |||
15372 | fi | ||
15373 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15374 | echo "$as_me:15374: checking for library containing dn_expand" >&5 | ||
15375 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
15376 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
15377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15378 | else | ||
15379 | ac_func_search_save_LIBS=$LIBS | ||
15380 | ac_cv_search_dn_expand=no | ||
15381 | cat >conftest.$ac_ext <<_ACEOF | ||
15382 | #line 15382 "configure" | ||
15383 | #include "confdefs.h" | ||
15384 | |||
15385 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15386 | #ifdef __cplusplus | ||
15387 | extern "C" | ||
15388 | #endif | ||
15389 | /* We use char because int might match the return type of a gcc2 | ||
15390 | builtin and then its argument prototype would still apply. */ | ||
15391 | char dn_expand (); | ||
15392 | int | ||
15393 | main () | ||
15394 | { | ||
15395 | dn_expand (); | ||
15396 | ; | ||
15397 | return 0; | ||
15398 | } | ||
15399 | _ACEOF | ||
15400 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15401 | if { (eval echo "$as_me:15401: \"$ac_link\"") >&5 | ||
15402 | (eval $ac_link) 2>&5 | ||
15403 | ac_status=$? | ||
15404 | echo "$as_me:15404: \$? = $ac_status" >&5 | ||
15405 | (exit $ac_status); } && | ||
15406 | { ac_try='test -s conftest$ac_exeext' | ||
15407 | { (eval echo "$as_me:15407: \"$ac_try\"") >&5 | ||
15408 | (eval $ac_try) 2>&5 | ||
15409 | ac_status=$? | ||
15410 | echo "$as_me:15410: \$? = $ac_status" >&5 | ||
15411 | (exit $ac_status); }; }; then | ||
15412 | ac_cv_search_dn_expand="none required" | ||
15413 | else | ||
15414 | echo "$as_me: failed program was:" >&5 | ||
15415 | cat conftest.$ac_ext >&5 | ||
15416 | fi | ||
15417 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15418 | if test "$ac_cv_search_dn_expand" = no; then | ||
15419 | for ac_lib in resolv; do | ||
15420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15421 | cat >conftest.$ac_ext <<_ACEOF | ||
15422 | #line 15422 "configure" | ||
15423 | #include "confdefs.h" | ||
15424 | |||
15425 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15426 | #ifdef __cplusplus | ||
15427 | extern "C" | ||
15428 | #endif | ||
15429 | /* We use char because int might match the return type of a gcc2 | ||
15430 | builtin and then its argument prototype would still apply. */ | ||
15431 | char dn_expand (); | ||
15432 | int | ||
15433 | main () | ||
15434 | { | ||
15435 | dn_expand (); | ||
15436 | ; | ||
15437 | return 0; | ||
15438 | } | ||
15439 | _ACEOF | ||
15440 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15441 | if { (eval echo "$as_me:15441: \"$ac_link\"") >&5 | ||
15442 | (eval $ac_link) 2>&5 | ||
15443 | ac_status=$? | ||
15444 | echo "$as_me:15444: \$? = $ac_status" >&5 | ||
15445 | (exit $ac_status); } && | ||
15446 | { ac_try='test -s conftest$ac_exeext' | ||
15447 | { (eval echo "$as_me:15447: \"$ac_try\"") >&5 | ||
15448 | (eval $ac_try) 2>&5 | ||
15449 | ac_status=$? | ||
15450 | echo "$as_me:15450: \$? = $ac_status" >&5 | ||
15451 | (exit $ac_status); }; }; then | ||
15452 | ac_cv_search_dn_expand="-l$ac_lib" | ||
15453 | break | ||
15454 | else | ||
15455 | echo "$as_me: failed program was:" >&5 | ||
15456 | cat conftest.$ac_ext >&5 | ||
15457 | fi | ||
15458 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15459 | done | ||
15460 | fi | ||
15461 | LIBS=$ac_func_search_save_LIBS | ||
15462 | fi | ||
15463 | echo "$as_me:15463: result: $ac_cv_search_dn_expand" >&5 | ||
15464 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
15465 | if test "$ac_cv_search_dn_expand" != no; then | ||
15466 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
15467 | |||
15468 | fi | ||
15469 | |||
15470 | echo "$as_me:15470: checking for gss_init_sec_context in -lgssapi" >&5 | ||
15471 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
15472 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
15473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15474 | else | ||
15475 | ac_check_lib_save_LIBS=$LIBS | ||
15476 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
15477 | cat >conftest.$ac_ext <<_ACEOF | ||
15478 | #line 15478 "configure" | ||
15479 | #include "confdefs.h" | ||
15480 | |||
15481 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15482 | #ifdef __cplusplus | ||
15483 | extern "C" | ||
15484 | #endif | ||
15485 | /* We use char because int might match the return type of a gcc2 | ||
15486 | builtin and then its argument prototype would still apply. */ | ||
15487 | char gss_init_sec_context (); | ||
15488 | int | ||
15489 | main () | ||
15490 | { | ||
15491 | gss_init_sec_context (); | ||
15492 | ; | ||
15493 | return 0; | ||
15494 | } | ||
15495 | _ACEOF | ||
15496 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15497 | if { (eval echo "$as_me:15497: \"$ac_link\"") >&5 | ||
15498 | (eval $ac_link) 2>&5 | ||
15499 | ac_status=$? | ||
15500 | echo "$as_me:15500: \$? = $ac_status" >&5 | ||
15501 | (exit $ac_status); } && | ||
15502 | { ac_try='test -s conftest$ac_exeext' | ||
15503 | { (eval echo "$as_me:15503: \"$ac_try\"") >&5 | ||
15504 | (eval $ac_try) 2>&5 | ||
15505 | ac_status=$? | ||
15506 | echo "$as_me:15506: \$? = $ac_status" >&5 | ||
15507 | (exit $ac_status); }; }; then | ||
15508 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
15509 | else | ||
15510 | echo "$as_me: failed program was:" >&5 | ||
15511 | cat conftest.$ac_ext >&5 | ||
15512 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
15513 | fi | ||
15514 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15515 | LIBS=$ac_check_lib_save_LIBS | ||
15516 | fi | ||
15517 | echo "$as_me:15517: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
15518 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
15519 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
15520 | cat >>confdefs.h <<\EOF | ||
15521 | #define GSSAPI 1 | ||
15522 | EOF | ||
15523 | |||
15524 | K5LIBS="-lgssapi $K5LIBS" | ||
15525 | else | ||
15526 | echo "$as_me:15526: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
15527 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
15528 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
15529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15530 | else | ||
15531 | ac_check_lib_save_LIBS=$LIBS | ||
15532 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
15533 | cat >conftest.$ac_ext <<_ACEOF | ||
15534 | #line 15534 "configure" | ||
15535 | #include "confdefs.h" | ||
15536 | |||
15537 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15538 | #ifdef __cplusplus | ||
15539 | extern "C" | ||
15540 | #endif | ||
15541 | /* We use char because int might match the return type of a gcc2 | ||
15542 | builtin and then its argument prototype would still apply. */ | ||
15543 | char gss_init_sec_context (); | ||
15544 | int | ||
15545 | main () | ||
15546 | { | ||
15547 | gss_init_sec_context (); | ||
15548 | ; | ||
15549 | return 0; | ||
15550 | } | ||
15551 | _ACEOF | ||
15552 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15553 | if { (eval echo "$as_me:15553: \"$ac_link\"") >&5 | ||
15554 | (eval $ac_link) 2>&5 | ||
15555 | ac_status=$? | ||
15556 | echo "$as_me:15556: \$? = $ac_status" >&5 | ||
15557 | (exit $ac_status); } && | ||
15558 | { ac_try='test -s conftest$ac_exeext' | ||
15559 | { (eval echo "$as_me:15559: \"$ac_try\"") >&5 | ||
15560 | (eval $ac_try) 2>&5 | ||
15561 | ac_status=$? | ||
15562 | echo "$as_me:15562: \$? = $ac_status" >&5 | ||
15563 | (exit $ac_status); }; }; then | ||
15564 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
15565 | else | ||
15566 | echo "$as_me: failed program was:" >&5 | ||
15567 | cat conftest.$ac_ext >&5 | ||
15568 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
15569 | fi | ||
15570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15571 | LIBS=$ac_check_lib_save_LIBS | ||
15572 | fi | ||
15573 | echo "$as_me:15573: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
15574 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
15575 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
15576 | cat >>confdefs.h <<\EOF | ||
15577 | #define GSSAPI 1 | ||
15578 | EOF | ||
15579 | |||
15580 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
15581 | else | ||
15582 | { echo "$as_me:15582: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
15583 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
15584 | fi | ||
15585 | |||
15586 | fi | ||
15587 | |||
15588 | echo "$as_me:15588: checking for gssapi.h" >&5 | ||
15589 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
15590 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
15591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15592 | else | ||
15593 | cat >conftest.$ac_ext <<_ACEOF | ||
15594 | #line 15594 "configure" | ||
15595 | #include "confdefs.h" | ||
15596 | #include <gssapi.h> | ||
15597 | _ACEOF | ||
15598 | if { (eval echo "$as_me:15598: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15600 | ac_status=$? | ||
15601 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15602 | rm -f conftest.er1 | ||
15603 | cat conftest.err >&5 | ||
15604 | echo "$as_me:15604: \$? = $ac_status" >&5 | ||
15605 | (exit $ac_status); } >/dev/null; then | ||
15606 | if test -s conftest.err; then | ||
15607 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15608 | else | ||
15609 | ac_cpp_err= | ||
15610 | fi | ||
15611 | else | ||
15612 | ac_cpp_err=yes | ||
15613 | fi | ||
15614 | if test -z "$ac_cpp_err"; then | ||
15615 | ac_cv_header_gssapi_h=yes | ||
15616 | else | ||
15617 | echo "$as_me: failed program was:" >&5 | ||
15618 | cat conftest.$ac_ext >&5 | ||
15619 | ac_cv_header_gssapi_h=no | ||
15620 | fi | ||
15621 | rm -f conftest.err conftest.$ac_ext | ||
15622 | fi | ||
15623 | echo "$as_me:15623: result: $ac_cv_header_gssapi_h" >&5 | ||
15624 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
15625 | if test $ac_cv_header_gssapi_h = yes; then | ||
15626 | : | ||
15627 | else | ||
15628 | unset ac_cv_header_gssapi_h | ||
15629 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15630 | |||
15631 | for ac_header in gssapi.h | ||
15632 | do | ||
15633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15634 | echo "$as_me:15634: checking for $ac_header" >&5 | ||
15635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15638 | else | ||
15639 | cat >conftest.$ac_ext <<_ACEOF | ||
15640 | #line 15640 "configure" | ||
15641 | #include "confdefs.h" | ||
15642 | #include <$ac_header> | ||
15643 | _ACEOF | ||
15644 | if { (eval echo "$as_me:15644: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15646 | ac_status=$? | ||
15647 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15648 | rm -f conftest.er1 | ||
15649 | cat conftest.err >&5 | ||
15650 | echo "$as_me:15650: \$? = $ac_status" >&5 | ||
15651 | (exit $ac_status); } >/dev/null; then | ||
15652 | if test -s conftest.err; then | ||
15653 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15654 | else | ||
15655 | ac_cpp_err= | ||
15656 | fi | ||
15657 | else | ||
15658 | ac_cpp_err=yes | ||
15659 | fi | ||
15660 | if test -z "$ac_cpp_err"; then | ||
15661 | eval "$as_ac_Header=yes" | ||
15662 | else | ||
15663 | echo "$as_me: failed program was:" >&5 | ||
15664 | cat conftest.$ac_ext >&5 | ||
15665 | eval "$as_ac_Header=no" | ||
15666 | fi | ||
15667 | rm -f conftest.err conftest.$ac_ext | ||
15668 | fi | ||
15669 | echo "$as_me:15669: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15670 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15671 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15672 | cat >>confdefs.h <<EOF | ||
15673 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15674 | EOF | ||
15675 | |||
15676 | else | ||
15677 | { echo "$as_me:15677: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
15678 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
15679 | |||
15680 | fi | ||
15681 | done | ||
15682 | |||
15683 | fi | ||
15684 | |||
15685 | oldCPP="$CPPFLAGS" | ||
15686 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15687 | echo "$as_me:15687: checking for gssapi_krb5.h" >&5 | ||
15688 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
15689 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
15690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15691 | else | ||
15692 | cat >conftest.$ac_ext <<_ACEOF | ||
15693 | #line 15693 "configure" | ||
15694 | #include "confdefs.h" | ||
15695 | #include <gssapi_krb5.h> | ||
15696 | _ACEOF | ||
15697 | if { (eval echo "$as_me:15697: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15699 | ac_status=$? | ||
15700 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15701 | rm -f conftest.er1 | ||
15702 | cat conftest.err >&5 | ||
15703 | echo "$as_me:15703: \$? = $ac_status" >&5 | ||
15704 | (exit $ac_status); } >/dev/null; then | ||
15705 | if test -s conftest.err; then | ||
15706 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15707 | else | ||
15708 | ac_cpp_err= | ||
15709 | fi | ||
15710 | else | ||
15711 | ac_cpp_err=yes | ||
15712 | fi | ||
15713 | if test -z "$ac_cpp_err"; then | ||
15714 | ac_cv_header_gssapi_krb5_h=yes | ||
15715 | else | ||
15716 | echo "$as_me: failed program was:" >&5 | ||
15717 | cat conftest.$ac_ext >&5 | ||
15718 | ac_cv_header_gssapi_krb5_h=no | ||
15719 | fi | ||
15720 | rm -f conftest.err conftest.$ac_ext | ||
15721 | fi | ||
15722 | echo "$as_me:15722: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
15723 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
15724 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
15725 | : | ||
15726 | else | ||
15727 | CPPFLAGS="$oldCPP" | ||
15728 | fi | ||
15729 | |||
15730 | fi | ||
15731 | if test ! -z "$need_dash_r" ; then | ||
15732 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15733 | fi | ||
15734 | if test ! -z "$blibpath" ; then | ||
15735 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15736 | fi | ||
15737 | fi | ||
15738 | |||
15739 | for ac_header in gssapi.h gssapi/gssapi.h | ||
15740 | do | ||
15741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15742 | echo "$as_me:15742: checking for $ac_header" >&5 | ||
15743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15746 | else | ||
15747 | cat >conftest.$ac_ext <<_ACEOF | ||
15748 | #line 15748 "configure" | ||
15749 | #include "confdefs.h" | ||
15750 | #include <$ac_header> | ||
15751 | _ACEOF | ||
15752 | if { (eval echo "$as_me:15752: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15754 | ac_status=$? | ||
15755 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15756 | rm -f conftest.er1 | ||
15757 | cat conftest.err >&5 | ||
15758 | echo "$as_me:15758: \$? = $ac_status" >&5 | ||
15759 | (exit $ac_status); } >/dev/null; then | ||
15760 | if test -s conftest.err; then | ||
15761 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15762 | else | ||
15763 | ac_cpp_err= | ||
15764 | fi | ||
15765 | else | ||
15766 | ac_cpp_err=yes | ||
15767 | fi | ||
15768 | if test -z "$ac_cpp_err"; then | ||
15769 | eval "$as_ac_Header=yes" | ||
15770 | else | ||
15771 | echo "$as_me: failed program was:" >&5 | ||
15772 | cat conftest.$ac_ext >&5 | ||
15773 | eval "$as_ac_Header=no" | ||
15774 | fi | ||
15775 | rm -f conftest.err conftest.$ac_ext | ||
15776 | fi | ||
15777 | echo "$as_me:15777: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15779 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15780 | cat >>confdefs.h <<EOF | ||
15781 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15782 | EOF | ||
15783 | |||
15784 | fi | ||
15785 | done | ||
15786 | |||
15787 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
15788 | do | ||
15789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15790 | echo "$as_me:15790: checking for $ac_header" >&5 | ||
15791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15794 | else | ||
15795 | cat >conftest.$ac_ext <<_ACEOF | ||
15796 | #line 15796 "configure" | ||
15797 | #include "confdefs.h" | ||
15798 | #include <$ac_header> | ||
15799 | _ACEOF | ||
15800 | if { (eval echo "$as_me:15800: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15802 | ac_status=$? | ||
15803 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15804 | rm -f conftest.er1 | ||
15805 | cat conftest.err >&5 | ||
15806 | echo "$as_me:15806: \$? = $ac_status" >&5 | ||
15807 | (exit $ac_status); } >/dev/null; then | ||
15808 | if test -s conftest.err; then | ||
15809 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15810 | else | ||
15811 | ac_cpp_err= | ||
15812 | fi | ||
15813 | else | ||
15814 | ac_cpp_err=yes | ||
15815 | fi | ||
15816 | if test -z "$ac_cpp_err"; then | ||
15817 | eval "$as_ac_Header=yes" | ||
15818 | else | ||
15819 | echo "$as_me: failed program was:" >&5 | ||
15820 | cat conftest.$ac_ext >&5 | ||
15821 | eval "$as_ac_Header=no" | ||
15822 | fi | ||
15823 | rm -f conftest.err conftest.$ac_ext | ||
15824 | fi | ||
15825 | echo "$as_me:15825: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15827 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15828 | cat >>confdefs.h <<EOF | ||
15829 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15830 | EOF | ||
15831 | |||
15832 | fi | ||
15833 | done | ||
15834 | |||
15835 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
15836 | do | ||
15837 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15838 | echo "$as_me:15838: checking for $ac_header" >&5 | ||
15839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15842 | else | ||
15843 | cat >conftest.$ac_ext <<_ACEOF | ||
15844 | #line 15844 "configure" | ||
15845 | #include "confdefs.h" | ||
15846 | #include <$ac_header> | ||
15847 | _ACEOF | ||
15848 | if { (eval echo "$as_me:15848: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15850 | ac_status=$? | ||
15851 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15852 | rm -f conftest.er1 | ||
15853 | cat conftest.err >&5 | ||
15854 | echo "$as_me:15854: \$? = $ac_status" >&5 | ||
15855 | (exit $ac_status); } >/dev/null; then | ||
15856 | if test -s conftest.err; then | ||
15857 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15858 | else | ||
15859 | ac_cpp_err= | ||
15860 | fi | ||
15861 | else | ||
15862 | ac_cpp_err=yes | ||
15863 | fi | ||
15864 | if test -z "$ac_cpp_err"; then | ||
15865 | eval "$as_ac_Header=yes" | ||
15866 | else | ||
15867 | echo "$as_me: failed program was:" >&5 | ||
15868 | cat conftest.$ac_ext >&5 | ||
15869 | eval "$as_ac_Header=no" | ||
15870 | fi | ||
15871 | rm -f conftest.err conftest.$ac_ext | ||
15872 | fi | ||
15873 | echo "$as_me:15873: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15876 | cat >>confdefs.h <<EOF | ||
15877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15878 | EOF | ||
15879 | |||
15880 | fi | ||
15881 | done | ||
15882 | |||
15883 | LIBS="$LIBS $K5LIBS" | ||
15884 | echo "$as_me:15884: checking for library containing k_hasafs" >&5 | ||
15885 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
15886 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
15887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15888 | else | ||
15889 | ac_func_search_save_LIBS=$LIBS | ||
15890 | ac_cv_search_k_hasafs=no | ||
15891 | cat >conftest.$ac_ext <<_ACEOF | ||
15892 | #line 15892 "configure" | ||
15893 | #include "confdefs.h" | ||
15894 | |||
15895 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15896 | #ifdef __cplusplus | ||
15897 | extern "C" | ||
15898 | #endif | ||
15899 | /* We use char because int might match the return type of a gcc2 | ||
15900 | builtin and then its argument prototype would still apply. */ | ||
15901 | char k_hasafs (); | ||
15902 | int | ||
15903 | main () | ||
15904 | { | ||
15905 | k_hasafs (); | ||
15906 | ; | ||
15907 | return 0; | ||
15908 | } | ||
15909 | _ACEOF | ||
15910 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15911 | if { (eval echo "$as_me:15911: \"$ac_link\"") >&5 | ||
15912 | (eval $ac_link) 2>&5 | ||
15913 | ac_status=$? | ||
15914 | echo "$as_me:15914: \$? = $ac_status" >&5 | ||
15915 | (exit $ac_status); } && | ||
15916 | { ac_try='test -s conftest$ac_exeext' | ||
15917 | { (eval echo "$as_me:15917: \"$ac_try\"") >&5 | ||
15918 | (eval $ac_try) 2>&5 | ||
15919 | ac_status=$? | ||
15920 | echo "$as_me:15920: \$? = $ac_status" >&5 | ||
15921 | (exit $ac_status); }; }; then | ||
15922 | ac_cv_search_k_hasafs="none required" | ||
15923 | else | ||
15924 | echo "$as_me: failed program was:" >&5 | ||
15925 | cat conftest.$ac_ext >&5 | ||
15926 | fi | ||
15927 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15928 | if test "$ac_cv_search_k_hasafs" = no; then | ||
15929 | for ac_lib in kafs; do | ||
15930 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15931 | cat >conftest.$ac_ext <<_ACEOF | ||
15932 | #line 15932 "configure" | ||
15933 | #include "confdefs.h" | ||
15934 | |||
15935 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15936 | #ifdef __cplusplus | ||
15937 | extern "C" | ||
15938 | #endif | ||
15939 | /* We use char because int might match the return type of a gcc2 | ||
15940 | builtin and then its argument prototype would still apply. */ | ||
15941 | char k_hasafs (); | ||
15942 | int | ||
15943 | main () | ||
15944 | { | ||
15945 | k_hasafs (); | ||
15946 | ; | ||
15947 | return 0; | ||
15948 | } | ||
15949 | _ACEOF | ||
15950 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15951 | if { (eval echo "$as_me:15951: \"$ac_link\"") >&5 | ||
15952 | (eval $ac_link) 2>&5 | ||
15953 | ac_status=$? | ||
15954 | echo "$as_me:15954: \$? = $ac_status" >&5 | ||
15955 | (exit $ac_status); } && | ||
15956 | { ac_try='test -s conftest$ac_exeext' | ||
15957 | { (eval echo "$as_me:15957: \"$ac_try\"") >&5 | ||
15958 | (eval $ac_try) 2>&5 | ||
15959 | ac_status=$? | ||
15960 | echo "$as_me:15960: \$? = $ac_status" >&5 | ||
15961 | (exit $ac_status); }; }; then | ||
15962 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
15963 | break | ||
15964 | else | ||
15965 | echo "$as_me: failed program was:" >&5 | ||
15966 | cat conftest.$ac_ext >&5 | ||
15967 | fi | ||
15968 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15969 | done | ||
15970 | fi | ||
15971 | LIBS=$ac_func_search_save_LIBS | ||
15972 | fi | ||
15973 | echo "$as_me:15973: result: $ac_cv_search_k_hasafs" >&5 | ||
15974 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
15975 | if test "$ac_cv_search_k_hasafs" != no; then | ||
15976 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
15977 | cat >>confdefs.h <<\EOF | ||
15978 | #define USE_AFS 1 | ||
15979 | EOF | ||
15980 | |||
15981 | fi | ||
15982 | |||
15983 | fi; | ||
15984 | |||
15985 | # Looking for programs, paths and files | ||
15986 | |||
15987 | PRIVSEP_PATH=/var/empty | ||
15988 | |||
15989 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
15990 | if test "${with_privsep_path+set}" = set; then | ||
15991 | withval="$with_privsep_path" | ||
15992 | |||
15993 | if test "x$withval" != "$no" ; then | ||
15994 | PRIVSEP_PATH=$withval | ||
15995 | fi | ||
15996 | |||
15997 | fi; | ||
15998 | |||
15999 | # Check whether --with-xauth or --without-xauth was given. | ||
16000 | if test "${with_xauth+set}" = set; then | ||
16001 | withval="$with_xauth" | ||
16002 | |||
16003 | if test "x$withval" != "xno" ; then | ||
16004 | xauth_path=$withval | ||
16005 | fi | ||
16006 | |||
16007 | else | ||
16008 | |||
16009 | TestPath="$PATH" | ||
16010 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
16011 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
16012 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
16013 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
16014 | # Extract the first word of "xauth", so it can be a program name with args. | ||
16015 | set dummy xauth; ac_word=$2 | ||
16016 | echo "$as_me:16016: checking for $ac_word" >&5 | ||
16017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16018 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
16019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16020 | else | ||
16021 | case $xauth_path in | ||
16022 | [\\/]* | ?:[\\/]*) | ||
16023 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
16024 | ;; | ||
16025 | *) | ||
16026 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
16027 | ac_dummy="$TestPath" | ||
16028 | for ac_dir in $ac_dummy; do | ||
16029 | IFS=$ac_save_IFS | ||
16030 | test -z "$ac_dir" && ac_dir=. | ||
16031 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
16032 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
16033 | echo "$as_me:16033: found $ac_dir/$ac_word" >&5 | ||
16034 | break | ||
16035 | fi | ||
16036 | done | ||
16037 | |||
16038 | ;; | ||
16039 | esac | ||
16040 | fi | ||
16041 | xauth_path=$ac_cv_path_xauth_path | ||
16042 | |||
16043 | if test -n "$xauth_path"; then | ||
16044 | echo "$as_me:16044: result: $xauth_path" >&5 | ||
16045 | echo "${ECHO_T}$xauth_path" >&6 | ||
16046 | else | ||
16047 | echo "$as_me:16047: result: no" >&5 | ||
16048 | echo "${ECHO_T}no" >&6 | ||
16049 | fi | ||
16050 | |||
16051 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
16052 | xauth_path="/usr/openwin/bin/xauth" | ||
16053 | fi | ||
16054 | |||
16055 | fi; | ||
16056 | |||
16057 | STRIP_OPT=-s | ||
16058 | # Check whether --enable-strip or --disable-strip was given. | ||
16059 | if test "${enable_strip+set}" = set; then | ||
16060 | enableval="$enable_strip" | ||
16061 | |||
16062 | if test "x$enableval" = "xno" ; then | ||
16063 | STRIP_OPT= | ||
16064 | fi | ||
16065 | |||
16066 | fi; | ||
16067 | |||
16068 | if test -z "$xauth_path" ; then | ||
16069 | XAUTH_PATH="undefined" | ||
16070 | |||
16071 | else | ||
16072 | cat >>confdefs.h <<EOF | ||
16073 | #define XAUTH_PATH "$xauth_path" | ||
16074 | EOF | ||
16075 | |||
16076 | XAUTH_PATH=$xauth_path | ||
16077 | |||
16078 | fi | ||
16079 | |||
16080 | # Check for mail directory (last resort if we cannot get it from headers) | ||
16081 | if test ! -z "$MAIL" ; then | ||
16082 | maildir=`dirname $MAIL` | ||
16083 | cat >>confdefs.h <<EOF | ||
16084 | #define MAIL_DIRECTORY "$maildir" | ||
16085 | EOF | ||
16086 | |||
16087 | fi | ||
16088 | |||
16089 | if test -z "$no_dev_ptmx" ; then | ||
16090 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
16091 | echo "$as_me:16091: checking for \"/dev/ptmx\"" >&5 | ||
16092 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
16093 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
16094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16095 | else | ||
16096 | test "$cross_compiling" = yes && | ||
16097 | { { echo "$as_me:16097: error: cannot check for file existence when cross compiling" >&5 | ||
16098 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16099 | { (exit 1); exit 1; }; } | ||
16100 | if test -r ""/dev/ptmx""; then | ||
16101 | ac_cv_file___dev_ptmx_=yes | ||
16102 | else | ||
16103 | ac_cv_file___dev_ptmx_=no | ||
16104 | fi | ||
16105 | fi | ||
16106 | echo "$as_me:16106: result: $ac_cv_file___dev_ptmx_" >&5 | ||
16107 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
16108 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
16109 | |||
16110 | cat >>confdefs.h <<EOF | ||
16111 | #define HAVE_DEV_PTMX 1 | ||
16112 | EOF | ||
16113 | |||
16114 | have_dev_ptmx=1 | ||
16115 | |||
16116 | fi | ||
16117 | |||
16118 | fi | ||
16119 | fi | ||
16120 | echo "$as_me:16120: checking for \"/dev/ptc\"" >&5 | ||
16121 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
16122 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
16123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16124 | else | ||
16125 | test "$cross_compiling" = yes && | ||
16126 | { { echo "$as_me:16126: error: cannot check for file existence when cross compiling" >&5 | ||
16127 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16128 | { (exit 1); exit 1; }; } | ||
16129 | if test -r ""/dev/ptc""; then | ||
16130 | ac_cv_file___dev_ptc_=yes | ||
16131 | else | ||
16132 | ac_cv_file___dev_ptc_=no | ||
16133 | fi | ||
16134 | fi | ||
16135 | echo "$as_me:16135: result: $ac_cv_file___dev_ptc_" >&5 | ||
16136 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
16137 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
16138 | |||
16139 | cat >>confdefs.h <<EOF | ||
16140 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
16141 | EOF | ||
16142 | |||
16143 | have_dev_ptc=1 | ||
16144 | |||
16145 | fi | ||
16146 | |||
16147 | # Options from here on. Some of these are preset by platform above | ||
16148 | |||
16149 | # Check whether --with-mantype or --without-mantype was given. | ||
16150 | if test "${with_mantype+set}" = set; then | ||
16151 | withval="$with_mantype" | ||
16152 | |||
16153 | case "$withval" in | ||
16154 | man|cat|doc) | ||
16155 | MANTYPE=$withval | ||
16156 | ;; | ||
16157 | *) | ||
16158 | { { echo "$as_me:16158: error: invalid man type: $withval" >&5 | ||
16159 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
16160 | { (exit 1); exit 1; }; } | ||
16161 | ;; | ||
16162 | esac | ||
16163 | |||
16164 | fi; | ||
16165 | if test -z "$MANTYPE"; then | ||
16166 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
16167 | for ac_prog in nroff awf | ||
16168 | do | ||
16169 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16170 | set dummy $ac_prog; ac_word=$2 | ||
16171 | echo "$as_me:16171: checking for $ac_word" >&5 | ||
16172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16173 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
16174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16175 | else | ||
16176 | case $NROFF in | ||
16177 | [\\/]* | ?:[\\/]*) | ||
16178 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
16179 | ;; | ||
16180 | *) | ||
16181 | ac_save_IFS=$IFS; IFS=$ac_path_separator | ||
16182 | ac_dummy="$TestPath" | ||
16183 | for ac_dir in $ac_dummy; do | ||
16184 | IFS=$ac_save_IFS | ||
16185 | test -z "$ac_dir" && ac_dir=. | ||
16186 | if $as_executable_p "$ac_dir/$ac_word"; then | ||
16187 | ac_cv_path_NROFF="$ac_dir/$ac_word" | ||
16188 | echo "$as_me:16188: found $ac_dir/$ac_word" >&5 | ||
16189 | break | ||
16190 | fi | ||
16191 | done | ||
16192 | |||
16193 | ;; | ||
16194 | esac | ||
16195 | fi | ||
16196 | NROFF=$ac_cv_path_NROFF | ||
16197 | |||
16198 | if test -n "$NROFF"; then | ||
16199 | echo "$as_me:16199: result: $NROFF" >&5 | ||
16200 | echo "${ECHO_T}$NROFF" >&6 | ||
16201 | else | ||
16202 | echo "$as_me:16202: result: no" >&5 | ||
16203 | echo "${ECHO_T}no" >&6 | ||
16204 | fi | ||
16205 | |||
16206 | test -n "$NROFF" && break | ||
16207 | done | ||
16208 | test -n "$NROFF" || NROFF="/bin/false" | ||
16209 | |||
16210 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16211 | MANTYPE=doc | ||
16212 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16213 | MANTYPE=man | ||
16214 | else | ||
16215 | MANTYPE=cat | ||
16216 | fi | ||
16217 | fi | ||
16218 | |||
16219 | if test "$MANTYPE" = "doc"; then | ||
16220 | mansubdir=man; | ||
16221 | else | ||
16222 | mansubdir=$MANTYPE; | ||
16223 | fi | ||
16224 | |||
16225 | # Check whether to enable MD5 passwords | ||
16226 | MD5_MSG="no" | ||
16227 | |||
16228 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
16229 | if test "${with_md5_passwords+set}" = set; then | ||
16230 | withval="$with_md5_passwords" | ||
16231 | |||
16232 | if test "x$withval" != "xno" ; then | ||
16233 | cat >>confdefs.h <<\EOF | ||
16234 | #define HAVE_MD5_PASSWORDS 1 | ||
16235 | EOF | ||
16236 | |||
16237 | MD5_MSG="yes" | ||
16238 | fi | ||
16239 | |||
16240 | fi; | ||
16241 | |||
16242 | # Whether to disable shadow password support | ||
16243 | |||
16244 | # Check whether --with-shadow or --without-shadow was given. | ||
16245 | if test "${with_shadow+set}" = set; then | ||
16246 | withval="$with_shadow" | ||
16247 | |||
16248 | if test "x$withval" = "xno" ; then | ||
16249 | cat >>confdefs.h <<\EOF | ||
16250 | #define DISABLE_SHADOW 1 | ||
16251 | EOF | ||
16252 | |||
16253 | disable_shadow=yes | ||
16254 | fi | ||
16255 | |||
16256 | fi; | ||
16257 | |||
16258 | if test -z "$disable_shadow" ; then | ||
16259 | echo "$as_me:16259: checking if the systems has expire shadow information" >&5 | ||
16260 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
16261 | cat >conftest.$ac_ext <<_ACEOF | ||
16262 | #line 16262 "configure" | ||
16263 | #include "confdefs.h" | ||
16264 | |||
16265 | #include <sys/types.h> | ||
16266 | #include <shadow.h> | ||
16267 | struct spwd sp; | ||
16268 | |||
16269 | int | ||
16270 | main () | ||
16271 | { | ||
16272 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
16273 | ; | ||
16274 | return 0; | ||
16275 | } | ||
16276 | _ACEOF | ||
16277 | rm -f conftest.$ac_objext | ||
16278 | if { (eval echo "$as_me:16278: \"$ac_compile\"") >&5 | ||
16279 | (eval $ac_compile) 2>&5 | ||
16280 | ac_status=$? | ||
16281 | echo "$as_me:16281: \$? = $ac_status" >&5 | ||
16282 | (exit $ac_status); } && | ||
16283 | { ac_try='test -s conftest.$ac_objext' | ||
16284 | { (eval echo "$as_me:16284: \"$ac_try\"") >&5 | ||
16285 | (eval $ac_try) 2>&5 | ||
16286 | ac_status=$? | ||
16287 | echo "$as_me:16287: \$? = $ac_status" >&5 | ||
16288 | (exit $ac_status); }; }; then | ||
16289 | sp_expire_available=yes | ||
16290 | else | ||
16291 | echo "$as_me: failed program was:" >&5 | ||
16292 | cat conftest.$ac_ext >&5 | ||
16293 | |||
16294 | fi | ||
16295 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16296 | |||
16297 | if test "x$sp_expire_available" = "xyes" ; then | ||
16298 | echo "$as_me:16298: result: yes" >&5 | ||
16299 | echo "${ECHO_T}yes" >&6 | ||
16300 | cat >>confdefs.h <<\EOF | ||
16301 | #define HAS_SHADOW_EXPIRE 1 | ||
16302 | EOF | ||
16303 | |||
16304 | else | ||
16305 | echo "$as_me:16305: result: no" >&5 | ||
16306 | echo "${ECHO_T}no" >&6 | ||
16307 | fi | ||
16308 | fi | ||
16309 | |||
16310 | # Use ip address instead of hostname in $DISPLAY | ||
16311 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
16312 | DISPLAY_HACK_MSG="yes" | ||
16313 | cat >>confdefs.h <<\EOF | ||
16314 | #define IPADDR_IN_DISPLAY 1 | ||
16315 | EOF | ||
16316 | |||
16317 | else | ||
16318 | DISPLAY_HACK_MSG="no" | ||
16319 | |||
16320 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
16321 | if test "${with_ipaddr_display+set}" = set; then | ||
16322 | withval="$with_ipaddr_display" | ||
16323 | |||
16324 | if test "x$withval" != "xno" ; then | ||
16325 | cat >>confdefs.h <<\EOF | ||
16326 | #define IPADDR_IN_DISPLAY 1 | ||
16327 | EOF | ||
16328 | |||
16329 | DISPLAY_HACK_MSG="yes" | ||
16330 | fi | ||
16331 | |||
16332 | fi; | ||
16333 | fi | ||
16334 | |||
16335 | # check for /etc/default/login and use it if present. | ||
16336 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
16337 | if test "${enable_etc_default_login+set}" = set; then | ||
16338 | enableval="$enable_etc_default_login" | ||
16339 | |||
16340 | else | ||
16341 | |||
16342 | echo "$as_me:16342: checking for \"/etc/default/login\"" >&5 | ||
16343 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
16344 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
16345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16346 | else | ||
16347 | test "$cross_compiling" = yes && | ||
16348 | { { echo "$as_me:16348: error: cannot check for file existence when cross compiling" >&5 | ||
16349 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16350 | { (exit 1); exit 1; }; } | ||
16351 | if test -r ""/etc/default/login""; then | ||
16352 | ac_cv_file___etc_default_login_=yes | ||
16353 | else | ||
16354 | ac_cv_file___etc_default_login_=no | ||
16355 | fi | ||
16356 | fi | ||
16357 | echo "$as_me:16357: result: $ac_cv_file___etc_default_login_" >&5 | ||
16358 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
16359 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
16360 | external_path_file=/etc/default/login | ||
16361 | fi | ||
16362 | |||
16363 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
16364 | cat >>confdefs.h <<\EOF | ||
16365 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
16366 | EOF | ||
16367 | |||
16368 | fi | ||
16369 | |||
16370 | fi; | ||
16371 | |||
16372 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
16373 | $ac_cv_header_login_cap_h = "yes" ; then | ||
16374 | external_path_file=/etc/login.conf | ||
16375 | fi | ||
16376 | |||
16377 | # Whether to mess with the default path | ||
16378 | SERVER_PATH_MSG="(default)" | ||
16379 | |||
16380 | # Check whether --with-default-path or --without-default-path was given. | ||
16381 | if test "${with_default_path+set}" = set; then | ||
16382 | withval="$with_default_path" | ||
16383 | |||
16384 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16385 | { echo "$as_me:16385: WARNING: | ||
16386 | --with-default-path=PATH has no effect on this system. | ||
16387 | Edit /etc/login.conf instead." >&5 | ||
16388 | echo "$as_me: WARNING: | ||
16389 | --with-default-path=PATH has no effect on this system. | ||
16390 | Edit /etc/login.conf instead." >&2;} | ||
16391 | elif test "x$withval" != "xno" ; then | ||
16392 | if test ! -z "$external_path_file" ; then | ||
16393 | { echo "$as_me:16393: WARNING: | ||
16394 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16395 | $external_path_file ." >&5 | ||
16396 | echo "$as_me: WARNING: | ||
16397 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16398 | $external_path_file ." >&2;} | ||
16399 | fi | ||
16400 | user_path="$withval" | ||
16401 | SERVER_PATH_MSG="$withval" | ||
16402 | fi | ||
16403 | |||
16404 | else | ||
16405 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16406 | { echo "$as_me:16406: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16407 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16408 | else | ||
16409 | if test ! -z "$external_path_file" ; then | ||
16410 | { echo "$as_me:16410: WARNING: | ||
16411 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16412 | otherwise scp will not work." >&5 | ||
16413 | echo "$as_me: WARNING: | ||
16414 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16415 | otherwise scp will not work." >&2;} | ||
16416 | fi | ||
16417 | if test "$cross_compiling" = yes; then | ||
16418 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16419 | |||
16420 | else | ||
16421 | cat >conftest.$ac_ext <<_ACEOF | ||
16422 | #line 16422 "configure" | ||
16423 | #include "confdefs.h" | ||
16424 | |||
16425 | /* find out what STDPATH is */ | ||
16426 | #include <stdio.h> | ||
16427 | #ifdef HAVE_PATHS_H | ||
16428 | # include <paths.h> | ||
16429 | #endif | ||
16430 | #ifndef _PATH_STDPATH | ||
16431 | # ifdef _PATH_USERPATH /* Irix */ | ||
16432 | # define _PATH_STDPATH _PATH_USERPATH | ||
16433 | # else | ||
16434 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16435 | # endif | ||
16436 | #endif | ||
16437 | #include <sys/types.h> | ||
16438 | #include <sys/stat.h> | ||
16439 | #include <fcntl.h> | ||
16440 | #define DATA "conftest.stdpath" | ||
16441 | |||
16442 | main() | ||
16443 | { | ||
16444 | FILE *fd; | ||
16445 | int rc; | ||
16446 | |||
16447 | fd = fopen(DATA,"w"); | ||
16448 | if(fd == NULL) | ||
16449 | exit(1); | ||
16450 | |||
16451 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16452 | exit(1); | ||
16453 | |||
16454 | exit(0); | ||
16455 | } | ||
16456 | |||
16457 | _ACEOF | ||
16458 | rm -f conftest$ac_exeext | ||
16459 | if { (eval echo "$as_me:16459: \"$ac_link\"") >&5 | ||
16460 | (eval $ac_link) 2>&5 | ||
16461 | ac_status=$? | ||
16462 | echo "$as_me:16462: \$? = $ac_status" >&5 | ||
16463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16464 | { (eval echo "$as_me:16464: \"$ac_try\"") >&5 | ||
16465 | (eval $ac_try) 2>&5 | ||
16466 | ac_status=$? | ||
16467 | echo "$as_me:16467: \$? = $ac_status" >&5 | ||
16468 | (exit $ac_status); }; }; then | ||
16469 | user_path=`cat conftest.stdpath` | ||
16470 | else | ||
16471 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16472 | echo "$as_me: failed program was:" >&5 | ||
16473 | cat conftest.$ac_ext >&5 | ||
16474 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16475 | fi | ||
16476 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16477 | fi | ||
16478 | # make sure $bindir is in USER_PATH so scp will work | ||
16479 | t_bindir=`eval echo ${bindir}` | ||
16480 | case $t_bindir in | ||
16481 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16482 | esac | ||
16483 | case $t_bindir in | ||
16484 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16485 | esac | ||
16486 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16487 | if test $? -ne 0 ; then | ||
16488 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16489 | if test $? -ne 0 ; then | ||
16490 | user_path=$user_path:$t_bindir | ||
16491 | echo "$as_me:16491: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16492 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
16493 | fi | ||
16494 | fi | ||
16495 | fi | ||
16496 | |||
16497 | fi; | ||
16498 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
16499 | cat >>confdefs.h <<EOF | ||
16500 | #define USER_PATH "$user_path" | ||
16501 | EOF | ||
16502 | |||
16503 | fi | ||
16504 | |||
16505 | # Set superuser path separately to user path | ||
16506 | |||
16507 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
16508 | if test "${with_superuser_path+set}" = set; then | ||
16509 | withval="$with_superuser_path" | ||
16510 | |||
16511 | if test "x$withval" != "xno" ; then | ||
16512 | cat >>confdefs.h <<EOF | ||
16513 | #define SUPERUSER_PATH "$withval" | ||
16514 | EOF | ||
16515 | |||
16516 | superuser_path=$withval | ||
16517 | fi | ||
16518 | |||
16519 | fi; | ||
16520 | |||
16521 | echo "$as_me:16521: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16522 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
16523 | IPV4_IN6_HACK_MSG="no" | ||
16524 | |||
16525 | # Check whether --with-4in6 or --without-4in6 was given. | ||
16526 | if test "${with_4in6+set}" = set; then | ||
16527 | withval="$with_4in6" | ||
16528 | |||
16529 | if test "x$withval" != "xno" ; then | ||
16530 | echo "$as_me:16530: result: yes" >&5 | ||
16531 | echo "${ECHO_T}yes" >&6 | ||
16532 | cat >>confdefs.h <<\EOF | ||
16533 | #define IPV4_IN_IPV6 1 | ||
16534 | EOF | ||
16535 | |||
16536 | IPV4_IN6_HACK_MSG="yes" | ||
16537 | else | ||
16538 | echo "$as_me:16538: result: no" >&5 | ||
16539 | echo "${ECHO_T}no" >&6 | ||
16540 | fi | ||
16541 | |||
16542 | else | ||
16543 | |||
16544 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16545 | echo "$as_me:16545: result: yes (default)" >&5 | ||
16546 | echo "${ECHO_T}yes (default)" >&6 | ||
16547 | cat >>confdefs.h <<\EOF | ||
16548 | #define IPV4_IN_IPV6 1 | ||
16549 | EOF | ||
16550 | |||
16551 | IPV4_IN6_HACK_MSG="yes" | ||
16552 | else | ||
16553 | echo "$as_me:16553: result: no (default)" >&5 | ||
16554 | echo "${ECHO_T}no (default)" >&6 | ||
16555 | fi | ||
16556 | |||
16557 | fi; | ||
16558 | |||
16559 | # Whether to enable BSD auth support | ||
16560 | BSD_AUTH_MSG=no | ||
16561 | |||
16562 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
16563 | if test "${with_bsd_auth+set}" = set; then | ||
16564 | withval="$with_bsd_auth" | ||
16565 | |||
16566 | if test "x$withval" != "xno" ; then | ||
16567 | cat >>confdefs.h <<\EOF | ||
16568 | #define BSD_AUTH 1 | ||
16569 | EOF | ||
16570 | |||
16571 | BSD_AUTH_MSG=yes | ||
16572 | fi | ||
16573 | |||
16574 | fi; | ||
16575 | |||
16576 | # Where to place sshd.pid | ||
16577 | piddir=/var/run | ||
16578 | # make sure the directory exists | ||
16579 | if test ! -d $piddir ; then | ||
16580 | piddir=`eval echo ${sysconfdir}` | ||
16581 | case $piddir in | ||
16582 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16583 | esac | ||
16584 | fi | ||
16585 | |||
16586 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
16587 | if test "${with_pid_dir+set}" = set; then | ||
16588 | withval="$with_pid_dir" | ||
16589 | |||
16590 | if test "x$withval" != "xno" ; then | ||
16591 | piddir=$withval | ||
16592 | if test ! -d $piddir ; then | ||
16593 | { echo "$as_me:16593: WARNING: ** no $piddir directory on this system **" >&5 | ||
16594 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16595 | fi | ||
16596 | fi | ||
16597 | |||
16598 | fi; | ||
16599 | |||
16600 | cat >>confdefs.h <<EOF | ||
16601 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16602 | EOF | ||
16603 | |||
16604 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
16605 | if test "${enable_lastlog+set}" = set; then | ||
16606 | enableval="$enable_lastlog" | ||
16607 | |||
16608 | if test "x$enableval" = "xno" ; then | ||
16609 | cat >>confdefs.h <<\EOF | ||
16610 | #define DISABLE_LASTLOG 1 | ||
16611 | EOF | ||
16612 | |||
16613 | fi | ||
16614 | |||
16615 | fi; | ||
16616 | # Check whether --enable-utmp or --disable-utmp was given. | ||
16617 | if test "${enable_utmp+set}" = set; then | ||
16618 | enableval="$enable_utmp" | ||
16619 | |||
16620 | if test "x$enableval" = "xno" ; then | ||
16621 | cat >>confdefs.h <<\EOF | ||
16622 | #define DISABLE_UTMP 1 | ||
16623 | EOF | ||
16624 | |||
16625 | fi | ||
16626 | |||
16627 | fi; | ||
16628 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
16629 | if test "${enable_utmpx+set}" = set; then | ||
16630 | enableval="$enable_utmpx" | ||
16631 | |||
16632 | if test "x$enableval" = "xno" ; then | ||
16633 | cat >>confdefs.h <<\EOF | ||
16634 | #define DISABLE_UTMPX 1 | ||
16635 | EOF | ||
16636 | |||
16637 | fi | ||
16638 | |||
16639 | fi; | ||
16640 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
16641 | if test "${enable_wtmp+set}" = set; then | ||
16642 | enableval="$enable_wtmp" | ||
16643 | |||
16644 | if test "x$enableval" = "xno" ; then | ||
16645 | cat >>confdefs.h <<\EOF | ||
16646 | #define DISABLE_WTMP 1 | ||
16647 | EOF | ||
16648 | |||
16649 | fi | ||
16650 | |||
16651 | fi; | ||
16652 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
16653 | if test "${enable_wtmpx+set}" = set; then | ||
16654 | enableval="$enable_wtmpx" | ||
16655 | |||
16656 | if test "x$enableval" = "xno" ; then | ||
16657 | cat >>confdefs.h <<\EOF | ||
16658 | #define DISABLE_WTMPX 1 | ||
16659 | EOF | ||
16660 | |||
16661 | fi | ||
16662 | |||
16663 | fi; | ||
16664 | # Check whether --enable-libutil or --disable-libutil was given. | ||
16665 | if test "${enable_libutil+set}" = set; then | ||
16666 | enableval="$enable_libutil" | ||
16667 | |||
16668 | if test "x$enableval" = "xno" ; then | ||
16669 | cat >>confdefs.h <<\EOF | ||
16670 | #define DISABLE_LOGIN 1 | ||
16671 | EOF | ||
16672 | |||
16673 | fi | ||
16674 | |||
16675 | fi; | ||
16676 | # Check whether --enable-pututline or --disable-pututline was given. | ||
16677 | if test "${enable_pututline+set}" = set; then | ||
16678 | enableval="$enable_pututline" | ||
16679 | |||
16680 | if test "x$enableval" = "xno" ; then | ||
16681 | cat >>confdefs.h <<\EOF | ||
16682 | #define DISABLE_PUTUTLINE 1 | ||
16683 | EOF | ||
16684 | |||
16685 | fi | ||
16686 | |||
16687 | fi; | ||
16688 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
16689 | if test "${enable_pututxline+set}" = set; then | ||
16690 | enableval="$enable_pututxline" | ||
16691 | |||
16692 | if test "x$enableval" = "xno" ; then | ||
16693 | cat >>confdefs.h <<\EOF | ||
16694 | #define DISABLE_PUTUTXLINE 1 | ||
16695 | EOF | ||
16696 | |||
16697 | fi | ||
16698 | |||
16699 | fi; | ||
16700 | |||
16701 | # Check whether --with-lastlog or --without-lastlog was given. | ||
16702 | if test "${with_lastlog+set}" = set; then | ||
16703 | withval="$with_lastlog" | ||
16704 | |||
16705 | if test "x$withval" = "xno" ; then | ||
16706 | cat >>confdefs.h <<\EOF | ||
16707 | #define DISABLE_LASTLOG 1 | ||
16708 | EOF | ||
16709 | |||
16710 | else | ||
16711 | conf_lastlog_location=$withval | ||
16712 | fi | ||
16713 | |||
16714 | fi; | ||
16715 | |||
16716 | echo "$as_me:16716: checking if your system defines LASTLOG_FILE" >&5 | ||
16717 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
16718 | cat >conftest.$ac_ext <<_ACEOF | ||
16719 | #line 16719 "configure" | ||
16720 | #include "confdefs.h" | ||
16721 | |||
16722 | #include <sys/types.h> | ||
16723 | #include <utmp.h> | ||
16724 | #ifdef HAVE_LASTLOG_H | ||
16725 | # include <lastlog.h> | ||
16726 | #endif | ||
16727 | #ifdef HAVE_PATHS_H | ||
16728 | # include <paths.h> | ||
16729 | #endif | ||
16730 | #ifdef HAVE_LOGIN_H | ||
16731 | # include <login.h> | ||
16732 | #endif | ||
16733 | |||
16734 | int | ||
16735 | main () | ||
16736 | { | ||
16737 | char *lastlog = LASTLOG_FILE; | ||
16738 | ; | ||
16739 | return 0; | ||
16740 | } | ||
16741 | _ACEOF | ||
16742 | rm -f conftest.$ac_objext | ||
16743 | if { (eval echo "$as_me:16743: \"$ac_compile\"") >&5 | ||
16744 | (eval $ac_compile) 2>&5 | ||
16745 | ac_status=$? | ||
16746 | echo "$as_me:16746: \$? = $ac_status" >&5 | ||
16747 | (exit $ac_status); } && | ||
16748 | { ac_try='test -s conftest.$ac_objext' | ||
16749 | { (eval echo "$as_me:16749: \"$ac_try\"") >&5 | ||
16750 | (eval $ac_try) 2>&5 | ||
16751 | ac_status=$? | ||
16752 | echo "$as_me:16752: \$? = $ac_status" >&5 | ||
16753 | (exit $ac_status); }; }; then | ||
16754 | echo "$as_me:16754: result: yes" >&5 | ||
16755 | echo "${ECHO_T}yes" >&6 | ||
16756 | else | ||
16757 | echo "$as_me: failed program was:" >&5 | ||
16758 | cat conftest.$ac_ext >&5 | ||
16759 | |||
16760 | echo "$as_me:16760: result: no" >&5 | ||
16761 | echo "${ECHO_T}no" >&6 | ||
16762 | echo "$as_me:16762: checking if your system defines _PATH_LASTLOG" >&5 | ||
16763 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
16764 | cat >conftest.$ac_ext <<_ACEOF | ||
16765 | #line 16765 "configure" | ||
16766 | #include "confdefs.h" | ||
16767 | |||
16768 | #include <sys/types.h> | ||
16769 | #include <utmp.h> | ||
16770 | #ifdef HAVE_LASTLOG_H | ||
16771 | # include <lastlog.h> | ||
16772 | #endif | ||
16773 | #ifdef HAVE_PATHS_H | ||
16774 | # include <paths.h> | ||
16775 | #endif | ||
16776 | |||
16777 | int | ||
16778 | main () | ||
16779 | { | ||
16780 | char *lastlog = _PATH_LASTLOG; | ||
16781 | ; | ||
16782 | return 0; | ||
16783 | } | ||
16784 | _ACEOF | ||
16785 | rm -f conftest.$ac_objext | ||
16786 | if { (eval echo "$as_me:16786: \"$ac_compile\"") >&5 | ||
16787 | (eval $ac_compile) 2>&5 | ||
16788 | ac_status=$? | ||
16789 | echo "$as_me:16789: \$? = $ac_status" >&5 | ||
16790 | (exit $ac_status); } && | ||
16791 | { ac_try='test -s conftest.$ac_objext' | ||
16792 | { (eval echo "$as_me:16792: \"$ac_try\"") >&5 | ||
16793 | (eval $ac_try) 2>&5 | ||
16794 | ac_status=$? | ||
16795 | echo "$as_me:16795: \$? = $ac_status" >&5 | ||
16796 | (exit $ac_status); }; }; then | ||
16797 | echo "$as_me:16797: result: yes" >&5 | ||
16798 | echo "${ECHO_T}yes" >&6 | ||
16799 | else | ||
16800 | echo "$as_me: failed program was:" >&5 | ||
16801 | cat conftest.$ac_ext >&5 | ||
16802 | |||
16803 | echo "$as_me:16803: result: no" >&5 | ||
16804 | echo "${ECHO_T}no" >&6 | ||
16805 | system_lastlog_path=no | ||
16806 | |||
16807 | fi | ||
16808 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16809 | |||
16810 | fi | ||
16811 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16812 | |||
16813 | if test -z "$conf_lastlog_location"; then | ||
16814 | if test x"$system_lastlog_path" = x"no" ; then | ||
16815 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16816 | if (test -d "$f" || test -f "$f") ; then | ||
16817 | conf_lastlog_location=$f | ||
16818 | fi | ||
16819 | done | ||
16820 | if test -z "$conf_lastlog_location"; then | ||
16821 | { echo "$as_me:16821: WARNING: ** Cannot find lastlog **" >&5 | ||
16822 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16823 | fi | ||
16824 | fi | ||
16825 | fi | ||
16826 | |||
16827 | if test -n "$conf_lastlog_location"; then | ||
16828 | cat >>confdefs.h <<EOF | ||
16829 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16830 | EOF | ||
16831 | |||
16832 | fi | ||
16833 | |||
16834 | echo "$as_me:16834: checking if your system defines UTMP_FILE" >&5 | ||
16835 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
16836 | cat >conftest.$ac_ext <<_ACEOF | ||
16837 | #line 16837 "configure" | ||
16838 | #include "confdefs.h" | ||
16839 | |||
16840 | #include <sys/types.h> | ||
16841 | #include <utmp.h> | ||
16842 | #ifdef HAVE_PATHS_H | ||
16843 | # include <paths.h> | ||
16844 | #endif | ||
16845 | |||
16846 | int | ||
16847 | main () | ||
16848 | { | ||
16849 | char *utmp = UTMP_FILE; | ||
16850 | ; | ||
16851 | return 0; | ||
16852 | } | ||
16853 | _ACEOF | ||
16854 | rm -f conftest.$ac_objext | ||
16855 | if { (eval echo "$as_me:16855: \"$ac_compile\"") >&5 | ||
16856 | (eval $ac_compile) 2>&5 | ||
16857 | ac_status=$? | ||
16858 | echo "$as_me:16858: \$? = $ac_status" >&5 | ||
16859 | (exit $ac_status); } && | ||
16860 | { ac_try='test -s conftest.$ac_objext' | ||
16861 | { (eval echo "$as_me:16861: \"$ac_try\"") >&5 | ||
16862 | (eval $ac_try) 2>&5 | ||
16863 | ac_status=$? | ||
16864 | echo "$as_me:16864: \$? = $ac_status" >&5 | ||
16865 | (exit $ac_status); }; }; then | ||
16866 | echo "$as_me:16866: result: yes" >&5 | ||
16867 | echo "${ECHO_T}yes" >&6 | ||
16868 | else | ||
16869 | echo "$as_me: failed program was:" >&5 | ||
16870 | cat conftest.$ac_ext >&5 | ||
16871 | echo "$as_me:16871: result: no" >&5 | ||
16872 | echo "${ECHO_T}no" >&6 | ||
16873 | system_utmp_path=no | ||
16874 | |||
16875 | fi | ||
16876 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16877 | if test -z "$conf_utmp_location"; then | ||
16878 | if test x"$system_utmp_path" = x"no" ; then | ||
16879 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16880 | if test -f $f ; then | ||
16881 | conf_utmp_location=$f | ||
16882 | fi | ||
16883 | done | ||
16884 | if test -z "$conf_utmp_location"; then | ||
16885 | cat >>confdefs.h <<\EOF | ||
16886 | #define DISABLE_UTMP 1 | ||
16887 | EOF | ||
16888 | |||
16889 | fi | ||
16890 | fi | ||
16891 | fi | ||
16892 | if test -n "$conf_utmp_location"; then | ||
16893 | cat >>confdefs.h <<EOF | ||
16894 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16895 | EOF | ||
16896 | |||
16897 | fi | ||
16898 | |||
16899 | echo "$as_me:16899: checking if your system defines WTMP_FILE" >&5 | ||
16900 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
16901 | cat >conftest.$ac_ext <<_ACEOF | ||
16902 | #line 16902 "configure" | ||
16903 | #include "confdefs.h" | ||
16904 | |||
16905 | #include <sys/types.h> | ||
16906 | #include <utmp.h> | ||
16907 | #ifdef HAVE_PATHS_H | ||
16908 | # include <paths.h> | ||
16909 | #endif | ||
16910 | |||
16911 | int | ||
16912 | main () | ||
16913 | { | ||
16914 | char *wtmp = WTMP_FILE; | ||
16915 | ; | ||
16916 | return 0; | ||
16917 | } | ||
16918 | _ACEOF | ||
16919 | rm -f conftest.$ac_objext | ||
16920 | if { (eval echo "$as_me:16920: \"$ac_compile\"") >&5 | ||
16921 | (eval $ac_compile) 2>&5 | ||
16922 | ac_status=$? | ||
16923 | echo "$as_me:16923: \$? = $ac_status" >&5 | ||
16924 | (exit $ac_status); } && | ||
16925 | { ac_try='test -s conftest.$ac_objext' | ||
16926 | { (eval echo "$as_me:16926: \"$ac_try\"") >&5 | ||
16927 | (eval $ac_try) 2>&5 | ||
16928 | ac_status=$? | ||
16929 | echo "$as_me:16929: \$? = $ac_status" >&5 | ||
16930 | (exit $ac_status); }; }; then | ||
16931 | echo "$as_me:16931: result: yes" >&5 | ||
16932 | echo "${ECHO_T}yes" >&6 | ||
16933 | else | ||
16934 | echo "$as_me: failed program was:" >&5 | ||
16935 | cat conftest.$ac_ext >&5 | ||
16936 | echo "$as_me:16936: result: no" >&5 | ||
16937 | echo "${ECHO_T}no" >&6 | ||
16938 | system_wtmp_path=no | ||
16939 | |||
16940 | fi | ||
16941 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16942 | if test -z "$conf_wtmp_location"; then | ||
16943 | if test x"$system_wtmp_path" = x"no" ; then | ||
16944 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16945 | if test -f $f ; then | ||
16946 | conf_wtmp_location=$f | ||
16947 | fi | ||
16948 | done | ||
16949 | if test -z "$conf_wtmp_location"; then | ||
16950 | cat >>confdefs.h <<\EOF | ||
16951 | #define DISABLE_WTMP 1 | ||
16952 | EOF | ||
16953 | |||
16954 | fi | ||
16955 | fi | ||
16956 | fi | ||
16957 | if test -n "$conf_wtmp_location"; then | ||
16958 | cat >>confdefs.h <<EOF | ||
16959 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16960 | EOF | ||
16961 | |||
16962 | fi | ||
16963 | |||
16964 | echo "$as_me:16964: checking if your system defines UTMPX_FILE" >&5 | ||
16965 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
16966 | cat >conftest.$ac_ext <<_ACEOF | ||
16967 | #line 16967 "configure" | ||
16968 | #include "confdefs.h" | ||
16969 | |||
16970 | #include <sys/types.h> | ||
16971 | #include <utmp.h> | ||
16972 | #ifdef HAVE_UTMPX_H | ||
16973 | #include <utmpx.h> | ||
16974 | #endif | ||
16975 | #ifdef HAVE_PATHS_H | ||
16976 | # include <paths.h> | ||
16977 | #endif | ||
16978 | |||
16979 | int | ||
16980 | main () | ||
16981 | { | ||
16982 | char *utmpx = UTMPX_FILE; | ||
16983 | ; | ||
16984 | return 0; | ||
16985 | } | ||
16986 | _ACEOF | ||
16987 | rm -f conftest.$ac_objext | ||
16988 | if { (eval echo "$as_me:16988: \"$ac_compile\"") >&5 | ||
16989 | (eval $ac_compile) 2>&5 | ||
16990 | ac_status=$? | ||
16991 | echo "$as_me:16991: \$? = $ac_status" >&5 | ||
16992 | (exit $ac_status); } && | ||
16993 | { ac_try='test -s conftest.$ac_objext' | ||
16994 | { (eval echo "$as_me:16994: \"$ac_try\"") >&5 | ||
16995 | (eval $ac_try) 2>&5 | ||
16996 | ac_status=$? | ||
16997 | echo "$as_me:16997: \$? = $ac_status" >&5 | ||
16998 | (exit $ac_status); }; }; then | ||
16999 | echo "$as_me:16999: result: yes" >&5 | ||
17000 | echo "${ECHO_T}yes" >&6 | ||
17001 | else | ||
17002 | echo "$as_me: failed program was:" >&5 | ||
17003 | cat conftest.$ac_ext >&5 | ||
17004 | echo "$as_me:17004: result: no" >&5 | ||
17005 | echo "${ECHO_T}no" >&6 | ||
17006 | system_utmpx_path=no | ||
17007 | |||
17008 | fi | ||
17009 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17010 | if test -z "$conf_utmpx_location"; then | ||
17011 | if test x"$system_utmpx_path" = x"no" ; then | ||
17012 | cat >>confdefs.h <<\EOF | ||
17013 | #define DISABLE_UTMPX 1 | ||
17014 | EOF | ||
17015 | |||
17016 | fi | ||
17017 | else | ||
17018 | cat >>confdefs.h <<EOF | ||
17019 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
17020 | EOF | ||
17021 | |||
17022 | fi | ||
17023 | |||
17024 | echo "$as_me:17024: checking if your system defines WTMPX_FILE" >&5 | ||
17025 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
17026 | cat >conftest.$ac_ext <<_ACEOF | ||
17027 | #line 17027 "configure" | ||
17028 | #include "confdefs.h" | ||
17029 | |||
17030 | #include <sys/types.h> | ||
17031 | #include <utmp.h> | ||
17032 | #ifdef HAVE_UTMPX_H | ||
17033 | #include <utmpx.h> | ||
17034 | #endif | ||
17035 | #ifdef HAVE_PATHS_H | ||
17036 | # include <paths.h> | ||
17037 | #endif | ||
17038 | |||
17039 | int | ||
17040 | main () | ||
17041 | { | ||
17042 | char *wtmpx = WTMPX_FILE; | ||
17043 | ; | ||
17044 | return 0; | ||
17045 | } | ||
17046 | _ACEOF | ||
17047 | rm -f conftest.$ac_objext | ||
17048 | if { (eval echo "$as_me:17048: \"$ac_compile\"") >&5 | ||
17049 | (eval $ac_compile) 2>&5 | ||
17050 | ac_status=$? | ||
17051 | echo "$as_me:17051: \$? = $ac_status" >&5 | ||
17052 | (exit $ac_status); } && | ||
17053 | { ac_try='test -s conftest.$ac_objext' | ||
17054 | { (eval echo "$as_me:17054: \"$ac_try\"") >&5 | ||
17055 | (eval $ac_try) 2>&5 | ||
17056 | ac_status=$? | ||
17057 | echo "$as_me:17057: \$? = $ac_status" >&5 | ||
17058 | (exit $ac_status); }; }; then | ||
17059 | echo "$as_me:17059: result: yes" >&5 | ||
17060 | echo "${ECHO_T}yes" >&6 | ||
17061 | else | ||
17062 | echo "$as_me: failed program was:" >&5 | ||
17063 | cat conftest.$ac_ext >&5 | ||
17064 | echo "$as_me:17064: result: no" >&5 | ||
17065 | echo "${ECHO_T}no" >&6 | ||
17066 | system_wtmpx_path=no | ||
17067 | |||
17068 | fi | ||
17069 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17070 | if test -z "$conf_wtmpx_location"; then | ||
17071 | if test x"$system_wtmpx_path" = x"no" ; then | ||
17072 | cat >>confdefs.h <<\EOF | ||
17073 | #define DISABLE_WTMPX 1 | ||
17074 | EOF | ||
17075 | |||
17076 | fi | ||
17077 | else | ||
17078 | cat >>confdefs.h <<EOF | ||
17079 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
17080 | EOF | ||
17081 | |||
17082 | fi | ||
17083 | |||
17084 | if test ! -z "$blibpath" ; then | ||
17085 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
17086 | { echo "$as_me:17086: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
17087 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
17088 | fi | ||
17089 | |||
17090 | if test "$PAM_MSG" = yes ; then | ||
17091 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
17092 | fi | ||
17093 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
17094 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
17095 | fi | ||
17096 | |||
17097 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
17098 | |||
17099 | cat >confcache <<\_ACEOF | ||
17100 | # This file is a shell script that caches the results of configure | ||
17101 | # tests run on this system so they can be shared between configure | ||
17102 | # scripts and configure runs, see configure's option --config-cache. | ||
17103 | # It is not useful on other systems. If it contains results you don't | ||
17104 | # want to keep, you may remove or edit it. | ||
17105 | # | ||
17106 | # config.status only pays attention to the cache file if you give it | ||
17107 | # the --recheck option to rerun configure. | ||
17108 | # | ||
17109 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
17110 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
17111 | # following values. | ||
17112 | |||
17113 | _ACEOF | ||
17114 | |||
17115 | # The following way of writing the cache mishandles newlines in values, | ||
17116 | # but we know of no workaround that is simple, portable, and efficient. | ||
17117 | # So, don't put newlines in cache variables' values. | ||
17118 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
17119 | # and sets the high bit in the cache file unless we assign to the vars. | ||
17120 | { | ||
17121 | (set) 2>&1 | | ||
17122 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
17123 | *ac_space=\ *) | ||
17124 | # `set' does not quote correctly, so add quotes (double-quote | ||
17125 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
17126 | sed -n \ | ||
17127 | "s/'/'\\\\''/g; | ||
17128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
17129 | ;; | ||
17130 | *) | ||
17131 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
17132 | sed -n \ | ||
17133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
17134 | ;; | ||
17135 | esac; | ||
17136 | } | | ||
17137 | sed ' | ||
17138 | t clear | ||
17139 | : clear | ||
17140 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
17141 | t end | ||
17142 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
17143 | : end' >>confcache | ||
17144 | if cmp -s $cache_file confcache; then :; else | ||
17145 | if test -w $cache_file; then | ||
17146 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
17147 | cat confcache >$cache_file | ||
17148 | else | ||
17149 | echo "not updating unwritable cache $cache_file" | ||
17150 | fi | ||
17151 | fi | ||
17152 | rm -f confcache | ||
17153 | |||
17154 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
17155 | # Let make expand exec_prefix. | ||
17156 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
17157 | |||
17158 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
17159 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
17160 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17161 | # (actually we leave an empty line to preserve line numbers). | ||
17162 | if test "x$srcdir" = x.; then | ||
17163 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
17164 | s/:*\$(srcdir):*/:/; | ||
17165 | s/:*\${srcdir}:*/:/; | ||
17166 | s/:*@srcdir@:*/:/; | ||
17167 | s/^\([^=]*=[ ]*\):*/\1/; | ||
17168 | s/:*$//; | ||
17169 | s/^[^=]*=[ ]*$//; | ||
17170 | }' | ||
17171 | fi | ||
17172 | |||
17173 | DEFS=-DHAVE_CONFIG_H | ||
17174 | |||
17175 | : ${CONFIG_STATUS=./config.status} | ||
17176 | ac_clean_files_save=$ac_clean_files | ||
17177 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
17178 | { echo "$as_me:17178: creating $CONFIG_STATUS" >&5 | ||
17179 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
17180 | cat >$CONFIG_STATUS <<_ACEOF | ||
17181 | #! $SHELL | ||
17182 | # Generated automatically by configure. | ||
17183 | # Run this file to recreate the current configuration. | ||
17184 | # Compiler output produced by configure, useful for debugging | ||
17185 | # configure, is in config.log if it exists. | ||
17186 | |||
17187 | debug=false | ||
17188 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
17189 | ac_cs_invocation="\$0 \$@" | ||
17190 | |||
17191 | _ACEOF | ||
17192 | |||
17193 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17194 | # Be Bourne compatible | ||
17195 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17196 | emulate sh | ||
17197 | NULLCMD=: | ||
17198 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
17199 | set -o posix | ||
17200 | fi | ||
17201 | |||
17202 | # Name of the executable. | ||
17203 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | ||
17204 | |||
17205 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
17206 | as_expr=expr | ||
17207 | else | ||
17208 | as_expr=false | ||
17209 | fi | ||
17210 | |||
17211 | rm -f conf$$ conf$$.exe conf$$.file | ||
17212 | echo >conf$$.file | ||
17213 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17214 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
17215 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
17216 | if test -f conf$$.exe; then | ||
17217 | # Don't use ln at all; we don't have any links | ||
17218 | as_ln_s='cp -p' | ||
17219 | else | ||
17220 | as_ln_s='ln -s' | ||
17221 | fi | ||
17222 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17223 | as_ln_s=ln | ||
17224 | else | ||
17225 | as_ln_s='cp -p' | ||
17226 | fi | ||
17227 | rm -f conf$$ conf$$.exe conf$$.file | ||
17228 | |||
17229 | as_executable_p="test -f" | ||
17230 | |||
17231 | # Support unset when possible. | ||
17232 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
17233 | as_unset=unset | ||
17234 | else | ||
17235 | as_unset=false | ||
17236 | fi | ||
17237 | |||
17238 | # NLS nuisances. | ||
17239 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | ||
17240 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | ||
17241 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | ||
17242 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | ||
17243 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | ||
17244 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | ||
17245 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | ||
17246 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | ||
17247 | |||
17248 | # IFS | ||
17249 | # We need space, tab and new line, in precisely that order. | ||
17250 | as_nl=' | ||
17251 | ' | ||
17252 | IFS=" $as_nl" | ||
17253 | |||
17254 | # CDPATH. | ||
17255 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | ||
17256 | |||
17257 | exec 6>&1 | ||
17258 | |||
17259 | _ACEOF | ||
17260 | |||
17261 | # Files that config.status was made for. | ||
17262 | if test -n "$ac_config_files"; then | ||
17263 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
17264 | fi | ||
17265 | |||
17266 | if test -n "$ac_config_headers"; then | ||
17267 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
17268 | fi | ||
17269 | |||
17270 | if test -n "$ac_config_links"; then | ||
17271 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
17272 | fi | ||
17273 | |||
17274 | if test -n "$ac_config_commands"; then | ||
17275 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
17276 | fi | ||
17277 | |||
17278 | cat >>$CONFIG_STATUS <<\EOF | ||
17279 | |||
17280 | ac_cs_usage="\ | ||
17281 | \`$as_me' instantiates files from templates according to the | ||
17282 | current configuration. | ||
17283 | |||
17284 | Usage: $0 [OPTIONS] [FILE]... | ||
17285 | |||
17286 | -h, --help print this help, then exit | ||
17287 | -V, --version print version number, then exit | ||
17288 | -d, --debug don't remove temporary files | ||
17289 | --recheck update $as_me by reconfiguring in the same conditions | ||
17290 | --file=FILE[:TEMPLATE] | ||
17291 | instantiate the configuration file FILE | ||
17292 | --header=FILE[:TEMPLATE] | ||
17293 | instantiate the configuration header FILE | ||
17294 | |||
17295 | Configuration files: | ||
17296 | $config_files | ||
17297 | |||
17298 | Configuration headers: | ||
17299 | $config_headers | ||
17300 | |||
17301 | Report bugs to <bug-autoconf@gnu.org>." | ||
17302 | EOF | ||
17303 | |||
17304 | cat >>$CONFIG_STATUS <<EOF | ||
17305 | ac_cs_version="\\ | ||
17306 | config.status | ||
17307 | configured by $0, generated by GNU Autoconf 2.52, | ||
17308 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
17309 | |||
17310 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
17311 | Free Software Foundation, Inc. | ||
17312 | This config.status script is free software; the Free Software Foundation | ||
17313 | gives unlimited permission to copy, distribute and modify it." | ||
17314 | srcdir=$srcdir | ||
17315 | INSTALL="$INSTALL" | ||
17316 | EOF | ||
17317 | |||
17318 | cat >>$CONFIG_STATUS <<\EOF | ||
17319 | # If no file are specified by the user, then we need to provide default | ||
17320 | # value. By we need to know if files were specified by the user. | ||
17321 | ac_need_defaults=: | ||
17322 | while test $# != 0 | ||
17323 | do | ||
17324 | case $1 in | ||
17325 | --*=*) | ||
17326 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
17327 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
17328 | shift | ||
17329 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
17330 | shift | ||
17331 | ;; | ||
17332 | -*);; | ||
17333 | *) # This is not an option, so the user has probably given explicit | ||
17334 | # arguments. | ||
17335 | ac_need_defaults=false;; | ||
17336 | esac | ||
17337 | |||
17338 | case $1 in | ||
17339 | # Handling of the options. | ||
17340 | EOF | ||
17341 | cat >>$CONFIG_STATUS <<EOF | ||
17342 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17343 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
17344 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
17345 | EOF | ||
17346 | cat >>$CONFIG_STATUS <<\EOF | ||
17347 | --version | --vers* | -V ) | ||
17348 | echo "$ac_cs_version"; exit 0 ;; | ||
17349 | --he | --h) | ||
17350 | # Conflict between --help and --header | ||
17351 | { { echo "$as_me:17351: error: ambiguous option: $1 | ||
17352 | Try \`$0 --help' for more information." >&5 | ||
17353 | echo "$as_me: error: ambiguous option: $1 | ||
17354 | Try \`$0 --help' for more information." >&2;} | ||
17355 | { (exit 1); exit 1; }; };; | ||
17356 | --help | --hel | -h ) | ||
17357 | echo "$ac_cs_usage"; exit 0 ;; | ||
17358 | --debug | --d* | -d ) | ||
17359 | debug=: ;; | ||
17360 | --file | --fil | --fi | --f ) | ||
17361 | shift | ||
17362 | CONFIG_FILES="$CONFIG_FILES $1" | ||
17363 | ac_need_defaults=false;; | ||
17364 | --header | --heade | --head | --hea ) | ||
17365 | shift | ||
17366 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
17367 | ac_need_defaults=false;; | ||
17368 | |||
17369 | # This is an error. | ||
17370 | -*) { { echo "$as_me:17370: error: unrecognized option: $1 | ||
17371 | Try \`$0 --help' for more information." >&5 | ||
17372 | echo "$as_me: error: unrecognized option: $1 | ||
17373 | Try \`$0 --help' for more information." >&2;} | ||
17374 | { (exit 1); exit 1; }; } ;; | ||
17375 | |||
17376 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
17377 | |||
17378 | esac | ||
17379 | shift | ||
17380 | done | ||
17381 | |||
17382 | exec 5>>config.log | ||
17383 | cat >&5 << _ACEOF | ||
17384 | |||
17385 | ## ----------------------- ## | ||
17386 | ## Running config.status. ## | ||
17387 | ## ----------------------- ## | ||
17388 | |||
17389 | This file was extended by $as_me 2.52, executed with | ||
17390 | CONFIG_FILES = $CONFIG_FILES | ||
17391 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17392 | CONFIG_LINKS = $CONFIG_LINKS | ||
17393 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17394 | > $ac_cs_invocation | ||
17395 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
17396 | |||
17397 | _ACEOF | ||
17398 | EOF | ||
17399 | |||
17400 | cat >>$CONFIG_STATUS <<\EOF | ||
17401 | for ac_config_target in $ac_config_targets | ||
17402 | do | ||
17403 | case "$ac_config_target" in | ||
17404 | # Handling of arguments. | ||
17405 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17406 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17407 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
17408 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
17409 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17410 | *) { { echo "$as_me:17410: error: invalid argument: $ac_config_target" >&5 | ||
17411 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
17412 | { (exit 1); exit 1; }; };; | ||
17413 | esac | ||
17414 | done | ||
17415 | |||
17416 | # If the user did not use the arguments to specify the items to instantiate, | ||
17417 | # then the envvar interface is used. Set only those that are not. | ||
17418 | # We use the long form for the default assignment because of an extremely | ||
17419 | # bizarre bug on SunOS 4.1.3. | ||
17420 | if $ac_need_defaults; then | ||
17421 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17422 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17423 | fi | ||
17424 | |||
17425 | # Create a temporary directory, and hook for its removal unless debugging. | ||
17426 | $debug || | ||
17427 | { | ||
17428 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
17429 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
17430 | } | ||
17431 | |||
17432 | # Create a (secure) tmp directory for tmp files. | ||
17433 | : ${TMPDIR=/tmp} | ||
17434 | { | ||
17435 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
17436 | test -n "$tmp" && test -d "$tmp" | ||
17437 | } || | ||
17438 | { | ||
17439 | tmp=$TMPDIR/cs$$-$RANDOM | ||
17440 | (umask 077 && mkdir $tmp) | ||
17441 | } || | ||
17442 | { | ||
17443 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
17444 | { (exit 1); exit 1; } | ||
17445 | } | ||
17446 | |||
17447 | EOF | ||
17448 | |||
17449 | cat >>$CONFIG_STATUS <<EOF | ||
17450 | |||
17451 | # | ||
17452 | # CONFIG_FILES section. | ||
17453 | # | ||
17454 | |||
17455 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
17456 | # This happens for instance when ./config.status config.h | ||
17457 | if test -n "\$CONFIG_FILES"; then | ||
17458 | # Protect against being on the right side of a sed subst in config.status. | ||
17459 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
17460 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
17461 | s,@SHELL@,$SHELL,;t t | ||
17462 | s,@exec_prefix@,$exec_prefix,;t t | ||
17463 | s,@prefix@,$prefix,;t t | ||
17464 | s,@program_transform_name@,$program_transform_name,;t t | ||
17465 | s,@bindir@,$bindir,;t t | ||
17466 | s,@sbindir@,$sbindir,;t t | ||
17467 | s,@libexecdir@,$libexecdir,;t t | ||
17468 | s,@datadir@,$datadir,;t t | ||
17469 | s,@sysconfdir@,$sysconfdir,;t t | ||
17470 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
17471 | s,@localstatedir@,$localstatedir,;t t | ||
17472 | s,@libdir@,$libdir,;t t | ||
17473 | s,@includedir@,$includedir,;t t | ||
17474 | s,@oldincludedir@,$oldincludedir,;t t | ||
17475 | s,@infodir@,$infodir,;t t | ||
17476 | s,@mandir@,$mandir,;t t | ||
17477 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
17478 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
17479 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
17480 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
17481 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
17482 | s,@build_alias@,$build_alias,;t t | ||
17483 | s,@host_alias@,$host_alias,;t t | ||
17484 | s,@target_alias@,$target_alias,;t t | ||
17485 | s,@ECHO_C@,$ECHO_C,;t t | ||
17486 | s,@ECHO_N@,$ECHO_N,;t t | ||
17487 | s,@ECHO_T@,$ECHO_T,;t t | ||
17488 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
17489 | s,@DEFS@,$DEFS,;t t | ||
17490 | s,@LIBS@,$LIBS,;t t | ||
17491 | s,@CC@,$CC,;t t | ||
17492 | s,@CFLAGS@,$CFLAGS,;t t | ||
17493 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
17494 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
17495 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
17496 | s,@EXEEXT@,$EXEEXT,;t t | ||
17497 | s,@OBJEXT@,$OBJEXT,;t t | ||
17498 | s,@build@,$build,;t t | ||
17499 | s,@build_cpu@,$build_cpu,;t t | ||
17500 | s,@build_vendor@,$build_vendor,;t t | ||
17501 | s,@build_os@,$build_os,;t t | ||
17502 | s,@host@,$host,;t t | ||
17503 | s,@host_cpu@,$host_cpu,;t t | ||
17504 | s,@host_vendor@,$host_vendor,;t t | ||
17505 | s,@host_os@,$host_os,;t t | ||
17506 | s,@AWK@,$AWK,;t t | ||
17507 | s,@CPP@,$CPP,;t t | ||
17508 | s,@RANLIB@,$RANLIB,;t t | ||
17509 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
17510 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
17511 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
17512 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
17513 | s,@AR@,$AR,;t t | ||
17514 | s,@PERL@,$PERL,;t t | ||
17515 | s,@SED@,$SED,;t t | ||
17516 | s,@ENT@,$ENT,;t t | ||
17517 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17518 | s,@SH@,$SH,;t t | ||
17519 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17520 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
17521 | s,@LD@,$LD,;t t | ||
17522 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17523 | s,@LIBPAM@,$LIBPAM,;t t | ||
17524 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17525 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17526 | s,@PROG_LS@,$PROG_LS,;t t | ||
17527 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17528 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17529 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17530 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17531 | s,@PROG_PS@,$PROG_PS,;t t | ||
17532 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17533 | s,@PROG_W@,$PROG_W,;t t | ||
17534 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17535 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17536 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17537 | s,@PROG_DF@,$PROG_DF,;t t | ||
17538 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17539 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17540 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17541 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17542 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17543 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17544 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17545 | s,@xauth_path@,$xauth_path,;t t | ||
17546 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
17547 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17548 | s,@NROFF@,$NROFF,;t t | ||
17549 | s,@MANTYPE@,$MANTYPE,;t t | ||
17550 | s,@mansubdir@,$mansubdir,;t t | ||
17551 | s,@user_path@,$user_path,;t t | ||
17552 | s,@piddir@,$piddir,;t t | ||
17553 | CEOF | ||
17554 | |||
17555 | EOF | ||
17556 | |||
17557 | cat >>$CONFIG_STATUS <<\EOF | ||
17558 | # Split the substitutions into bite-sized pieces for seds with | ||
17559 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17560 | ac_max_sed_lines=48 | ||
17561 | ac_sed_frag=1 # Number of current file. | ||
17562 | ac_beg=1 # First line for current file. | ||
17563 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17564 | ac_more_lines=: | ||
17565 | ac_sed_cmds= | ||
17566 | while $ac_more_lines; do | ||
17567 | if test $ac_beg -gt 1; then | ||
17568 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17569 | else | ||
17570 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17571 | fi | ||
17572 | if test ! -s $tmp/subs.frag; then | ||
17573 | ac_more_lines=false | ||
17574 | else | ||
17575 | # The purpose of the label and of the branching condition is to | ||
17576 | # speed up the sed processing (if there are no `@' at all, there | ||
17577 | # is no need to browse any of the substitutions). | ||
17578 | # These are the two extra sed commands mentioned above. | ||
17579 | (echo ':t | ||
17580 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17581 | if test -z "$ac_sed_cmds"; then | ||
17582 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17583 | else | ||
17584 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17585 | fi | ||
17586 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17587 | ac_beg=$ac_end | ||
17588 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17589 | fi | ||
17590 | done | ||
17591 | if test -z "$ac_sed_cmds"; then | ||
17592 | ac_sed_cmds=cat | ||
17593 | fi | ||
17594 | fi # test -n "$CONFIG_FILES" | ||
17595 | |||
17596 | EOF | ||
17597 | cat >>$CONFIG_STATUS <<\EOF | ||
17598 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17599 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17600 | case $ac_file in | ||
17601 | - | *:- | *:-:* ) # input from stdin | ||
17602 | cat >$tmp/stdin | ||
17603 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17604 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17605 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17606 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17607 | * ) ac_file_in=$ac_file.in ;; | ||
17608 | esac | ||
17609 | |||
17610 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17611 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17612 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17613 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17614 | X"$ac_file" : 'X\(/\)' \| \ | ||
17615 | . : '\(.\)' 2>/dev/null || | ||
17616 | echo X"$ac_file" | | ||
17617 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17618 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17619 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17620 | /^X\(\/\).*/{ s//\1/; q; } | ||
17621 | s/.*/./; q'` | ||
17622 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
17623 | { case "$ac_dir" in | ||
17624 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17625 | *) as_incr_dir=.;; | ||
17626 | esac | ||
17627 | as_dummy="$ac_dir" | ||
17628 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17629 | case $as_mkdir_dir in | ||
17630 | # Skip DOS drivespec | ||
17631 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17632 | *) | ||
17633 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17634 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
17635 | ;; | ||
17636 | esac | ||
17637 | done; } | ||
17638 | |||
17639 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | ||
17640 | # A "../" for each directory in $ac_dir_suffix. | ||
17641 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | ||
17642 | else | ||
17643 | ac_dir_suffix= ac_dots= | ||
17644 | fi | ||
17645 | |||
17646 | case $srcdir in | ||
17647 | .) ac_srcdir=. | ||
17648 | if test -z "$ac_dots"; then | ||
17649 | ac_top_srcdir=. | ||
17650 | else | ||
17651 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | ||
17652 | fi ;; | ||
17653 | [\\/]* | ?:[\\/]* ) | ||
17654 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17655 | ac_top_srcdir=$srcdir ;; | ||
17656 | *) # Relative path. | ||
17657 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | ||
17658 | ac_top_srcdir=$ac_dots$srcdir ;; | ||
17659 | esac | ||
17660 | |||
17661 | case $INSTALL in | ||
17662 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17663 | *) ac_INSTALL=$ac_dots$INSTALL ;; | ||
17664 | esac | ||
17665 | |||
17666 | if test x"$ac_file" != x-; then | ||
17667 | { echo "$as_me:17667: creating $ac_file" >&5 | ||
17668 | echo "$as_me: creating $ac_file" >&6;} | ||
17669 | rm -f "$ac_file" | ||
17670 | fi | ||
17671 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17672 | # use $as_me), people would be surprised to read: | ||
17673 | # /* config.h. Generated automatically by config.status. */ | ||
17674 | configure_input="Generated automatically from `echo $ac_file_in | | ||
17675 | sed 's,.*/,,'` by configure." | ||
17676 | |||
17677 | # First look for the input files in the build tree, otherwise in the | ||
17678 | # src tree. | ||
17679 | ac_file_inputs=`IFS=: | ||
17680 | for f in $ac_file_in; do | ||
17681 | case $f in | ||
17682 | -) echo $tmp/stdin ;; | ||
17683 | [\\/$]*) | ||
17684 | # Absolute (can't be DOS-style, as IFS=:) | ||
17685 | test -f "$f" || { { echo "$as_me:17685: error: cannot find input file: $f" >&5 | ||
17686 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17687 | { (exit 1); exit 1; }; } | ||
17688 | echo $f;; | ||
17689 | *) # Relative | ||
17690 | if test -f "$f"; then | ||
17691 | # Build tree | ||
17692 | echo $f | ||
17693 | elif test -f "$srcdir/$f"; then | ||
17694 | # Source tree | ||
17695 | echo $srcdir/$f | ||
17696 | else | ||
17697 | # /dev/null tree | ||
17698 | { { echo "$as_me:17698: error: cannot find input file: $f" >&5 | ||
17699 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17700 | { (exit 1); exit 1; }; } | ||
17701 | fi;; | ||
17702 | esac | ||
17703 | done` || { (exit 1); exit 1; } | ||
17704 | EOF | ||
17705 | cat >>$CONFIG_STATUS <<EOF | ||
17706 | sed "$ac_vpsub | ||
17707 | $extrasub | ||
17708 | EOF | ||
17709 | cat >>$CONFIG_STATUS <<\EOF | ||
17710 | :t | ||
17711 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
17712 | s,@configure_input@,$configure_input,;t t | ||
17713 | s,@srcdir@,$ac_srcdir,;t t | ||
17714 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
17715 | s,@INSTALL@,$ac_INSTALL,;t t | ||
17716 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
17717 | rm -f $tmp/stdin | ||
17718 | if test x"$ac_file" != x-; then | ||
17719 | mv $tmp/out $ac_file | ||
17720 | else | ||
17721 | cat $tmp/out | ||
17722 | rm -f $tmp/out | ||
17723 | fi | ||
17724 | |||
17725 | done | ||
17726 | EOF | ||
17727 | cat >>$CONFIG_STATUS <<\EOF | ||
17728 | |||
17729 | # | ||
17730 | # CONFIG_HEADER section. | ||
17731 | # | ||
17732 | |||
17733 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
17734 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
17735 | # | ||
17736 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
17737 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
17738 | ac_dB='[ ].*$,\1#\2' | ||
17739 | ac_dC=' ' | ||
17740 | ac_dD=',;t' | ||
17741 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
17742 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
17743 | ac_uB='$,\1#\2define\3' | ||
17744 | ac_uC=' ' | ||
17745 | ac_uD=',;t' | ||
17746 | |||
17747 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
17748 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17749 | case $ac_file in | ||
17750 | - | *:- | *:-:* ) # input from stdin | ||
17751 | cat >$tmp/stdin | ||
17752 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17753 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17754 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17755 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17756 | * ) ac_file_in=$ac_file.in ;; | ||
17757 | esac | ||
17758 | |||
17759 | test x"$ac_file" != x- && { echo "$as_me:17759: creating $ac_file" >&5 | ||
17760 | echo "$as_me: creating $ac_file" >&6;} | ||
17761 | |||
17762 | # First look for the input files in the build tree, otherwise in the | ||
17763 | # src tree. | ||
17764 | ac_file_inputs=`IFS=: | ||
17765 | for f in $ac_file_in; do | ||
17766 | case $f in | ||
17767 | -) echo $tmp/stdin ;; | ||
17768 | [\\/$]*) | ||
17769 | # Absolute (can't be DOS-style, as IFS=:) | ||
17770 | test -f "$f" || { { echo "$as_me:17770: error: cannot find input file: $f" >&5 | ||
17771 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17772 | { (exit 1); exit 1; }; } | ||
17773 | echo $f;; | ||
17774 | *) # Relative | ||
17775 | if test -f "$f"; then | ||
17776 | # Build tree | ||
17777 | echo $f | ||
17778 | elif test -f "$srcdir/$f"; then | ||
17779 | # Source tree | ||
17780 | echo $srcdir/$f | ||
17781 | else | ||
17782 | # /dev/null tree | ||
17783 | { { echo "$as_me:17783: error: cannot find input file: $f" >&5 | ||
17784 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17785 | { (exit 1); exit 1; }; } | ||
17786 | fi;; | ||
17787 | esac | ||
17788 | done` || { (exit 1); exit 1; } | ||
17789 | # Remove the trailing spaces. | ||
17790 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
17791 | |||
17792 | EOF | ||
17793 | |||
17794 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
17795 | # `conftest.undefs', that substitutes the proper values into | ||
17796 | # config.h.in to produce config.h. The first handles `#define' | ||
17797 | # templates, and the second `#undef' templates. | ||
17798 | # And first: Protect against being on the right side of a sed subst in | ||
17799 | # config.status. Protect against being in an unquoted here document | ||
17800 | # in config.status. | ||
17801 | rm -f conftest.defines conftest.undefs | ||
17802 | # Using a here document instead of a string reduces the quoting nightmare. | ||
17803 | # Putting comments in sed scripts is not portable. | ||
17804 | # | ||
17805 | # `end' is used to avoid that the second main sed command (meant for | ||
17806 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
17807 | # See the Autoconf documentation for `clear'. | ||
17808 | cat >confdef2sed.sed <<\EOF | ||
17809 | s/[\\&,]/\\&/g | ||
17810 | s,[\\$`],\\&,g | ||
17811 | t clear | ||
17812 | : clear | ||
17813 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | ||
17814 | t end | ||
17815 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
17816 | : end | ||
17817 | EOF | ||
17818 | # If some macros were called several times there might be several times | ||
17819 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
17820 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
17821 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
17822 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
17823 | rm -f confdef2sed.sed | ||
17824 | |||
17825 | # This sed command replaces #undef with comments. This is necessary, for | ||
17826 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
17827 | # on some systems where configure will not decide to define it. | ||
17828 | cat >>conftest.undefs <<\EOF | ||
17829 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
17830 | EOF | ||
17831 | |||
17832 | # Break up conftest.defines because some shells have a limit on the size | ||
17833 | # of here documents, and old seds have small limits too (100 cmds). | ||
17834 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
17835 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
17836 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
17837 | echo ' :' >>$CONFIG_STATUS | ||
17838 | rm -f conftest.tail | ||
17839 | while grep . conftest.defines >/dev/null | ||
17840 | do | ||
17841 | # Write a limited-size here document to $tmp/defines.sed. | ||
17842 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
17843 | # Speed up: don't consider the non `#define' lines. | ||
17844 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
17845 | # Work around the forget-to-reset-the-flag bug. | ||
17846 | echo 't clr' >>$CONFIG_STATUS | ||
17847 | echo ': clr' >>$CONFIG_STATUS | ||
17848 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
17849 | echo 'CEOF | ||
17850 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
17851 | rm -f $tmp/in | ||
17852 | mv $tmp/out $tmp/in | ||
17853 | ' >>$CONFIG_STATUS | ||
17854 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
17855 | rm -f conftest.defines | ||
17856 | mv conftest.tail conftest.defines | ||
17857 | done | ||
17858 | rm -f conftest.defines | ||
17859 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
17860 | echo >>$CONFIG_STATUS | ||
17861 | |||
17862 | # Break up conftest.undefs because some shells have a limit on the size | ||
17863 | # of here documents, and old seds have small limits too (100 cmds). | ||
17864 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
17865 | rm -f conftest.tail | ||
17866 | while grep . conftest.undefs >/dev/null | ||
17867 | do | ||
17868 | # Write a limited-size here document to $tmp/undefs.sed. | ||
17869 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
17870 | # Speed up: don't consider the non `#undef' | ||
17871 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
17872 | # Work around the forget-to-reset-the-flag bug. | ||
17873 | echo 't clr' >>$CONFIG_STATUS | ||
17874 | echo ': clr' >>$CONFIG_STATUS | ||
17875 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
17876 | echo 'CEOF | ||
17877 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
17878 | rm -f $tmp/in | ||
17879 | mv $tmp/out $tmp/in | ||
17880 | ' >>$CONFIG_STATUS | ||
17881 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
17882 | rm -f conftest.undefs | ||
17883 | mv conftest.tail conftest.undefs | ||
17884 | done | ||
17885 | rm -f conftest.undefs | ||
17886 | |||
17887 | cat >>$CONFIG_STATUS <<\EOF | ||
17888 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17889 | # use $as_me), people would be surprised to read: | ||
17890 | # /* config.h. Generated automatically by config.status. */ | ||
17891 | if test x"$ac_file" = x-; then | ||
17892 | echo "/* Generated automatically by configure. */" >$tmp/config.h | ||
17893 | else | ||
17894 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | ||
17895 | fi | ||
17896 | cat $tmp/in >>$tmp/config.h | ||
17897 | rm -f $tmp/in | ||
17898 | if test x"$ac_file" != x-; then | ||
17899 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
17900 | { echo "$as_me:17900: $ac_file is unchanged" >&5 | ||
17901 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
17902 | else | ||
17903 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17904 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17905 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17906 | X"$ac_file" : 'X\(/\)' \| \ | ||
17907 | . : '\(.\)' 2>/dev/null || | ||
17908 | echo X"$ac_file" | | ||
17909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17910 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17911 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17912 | /^X\(\/\).*/{ s//\1/; q; } | ||
17913 | s/.*/./; q'` | ||
17914 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
17915 | { case "$ac_dir" in | ||
17916 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17917 | *) as_incr_dir=.;; | ||
17918 | esac | ||
17919 | as_dummy="$ac_dir" | ||
17920 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17921 | case $as_mkdir_dir in | ||
17922 | # Skip DOS drivespec | ||
17923 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17924 | *) | ||
17925 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17926 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | ||
17927 | ;; | ||
17928 | esac | ||
17929 | done; } | ||
17930 | |||
17931 | fi | ||
17932 | rm -f $ac_file | ||
17933 | mv $tmp/config.h $ac_file | ||
17934 | fi | ||
17935 | else | ||
17936 | cat $tmp/config.h | ||
17937 | rm -f $tmp/config.h | ||
17938 | fi | ||
17939 | done | ||
17940 | EOF | ||
17941 | |||
17942 | cat >>$CONFIG_STATUS <<\EOF | ||
17943 | |||
17944 | { (exit 0); exit 0; } | ||
17945 | EOF | ||
17946 | chmod +x $CONFIG_STATUS | ||
17947 | ac_clean_files=$ac_clean_files_save | ||
17948 | |||
17949 | # configure is writing to config.log, and then calls config.status. | ||
17950 | # config.status does its own redirection, appending to config.log. | ||
17951 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
17952 | # by configure, so config.status won't be able to write to it; its | ||
17953 | # output is simply discarded. So we exec the FD to /dev/null, | ||
17954 | # effectively closing config.log, so it can be properly (re)opened and | ||
17955 | # appended to by config.status. When coming back to configure, we | ||
17956 | # need to make the FD available again. | ||
17957 | if test "$no_create" != yes; then | ||
17958 | ac_cs_success=: | ||
17959 | exec 5>/dev/null | ||
17960 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
17961 | exec 5>>config.log | ||
17962 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
17963 | # would make configure fail if this is the last instruction. | ||
17964 | $ac_cs_success || { (exit 1); exit 1; } | ||
17965 | fi | ||
17966 | |||
17967 | # Print summary of options | ||
17968 | |||
17969 | # Someone please show me a better way :) | ||
17970 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
17971 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
17972 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
17973 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
17974 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
17975 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
17976 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
17977 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
17978 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
17979 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
17980 | |||
17981 | echo "" | ||
17982 | echo "OpenSSH has been configured with the following options:" | ||
17983 | echo " User binaries: $B" | ||
17984 | echo " System binaries: $C" | ||
17985 | echo " Configuration files: $D" | ||
17986 | echo " Askpass program: $E" | ||
17987 | echo " Manual pages: $F" | ||
17988 | echo " PID file: $G" | ||
17989 | echo " Privilege separation chroot path: $H" | ||
17990 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
17991 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
17992 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
17993 | else | ||
17994 | echo " sshd default user PATH: $I" | ||
17995 | if test ! -z "$external_path_file"; then | ||
17996 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
17997 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
17998 | fi | ||
17999 | fi | ||
18000 | if test ! -z "$superuser_path" ; then | ||
18001 | echo " sshd superuser user PATH: $J" | ||
18002 | fi | ||
18003 | echo " Manpage format: $MANTYPE" | ||
18004 | echo " PAM support: $PAM_MSG" | ||
18005 | echo " KerberosV support: $KRB5_MSG" | ||
18006 | echo " Smartcard support: $SCARD_MSG" | ||
18007 | echo " S/KEY support: $SKEY_MSG" | ||
18008 | echo " TCP Wrappers support: $TCPW_MSG" | ||
18009 | echo " MD5 password support: $MD5_MSG" | ||
18010 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
18011 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
18012 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
18013 | echo " Random number source: $RAND_MSG" | ||
18014 | if test ! -z "$USE_RAND_HELPER" ; then | ||
18015 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
18016 | fi | ||
18017 | |||
18018 | echo "" | ||
18019 | |||
18020 | echo " Host: ${host}" | ||
18021 | echo " Compiler: ${CC}" | ||
18022 | echo " Compiler flags: ${CFLAGS}" | ||
18023 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
18024 | echo " Linker flags: ${LDFLAGS}" | ||
18025 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
18026 | |||
18027 | echo "" | ||
18028 | |||
18029 | if test "x$PAM_MSG" = "xyes" ; then | ||
18030 | echo "PAM is enabled. You may need to install a PAM control file " | ||
18031 | echo "for sshd, otherwise password authentication may fail. " | ||
18032 | echo "Example PAM control files can be found in the contrib/ " | ||
18033 | echo "subdirectory" | ||
18034 | echo "" | ||
18035 | fi | ||
18036 | |||
18037 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
18038 | echo "WARNING: you are using the builtin random number collection " | ||
18039 | echo "service. Please read WARNING.RNG and request that your OS " | ||
18040 | echo "vendor includes kernel-based random number collection in " | ||
18041 | echo "future versions of your OS." | ||
18042 | echo "" | ||
18043 | fi | ||
18044 | |||