diff options
-rw-r--r-- | autom4te-2.53.cache/output.0 | 18359 | ||||
-rw-r--r-- | autom4te-2.53.cache/requests | 96 | ||||
-rw-r--r-- | autom4te-2.53.cache/traces.0 | 941 | ||||
-rw-r--r-- | config.h.in | 943 | ||||
-rwxr-xr-x | configure | 18359 | ||||
-rw-r--r-- | contrib/gnome-ssh-askpass.c | 168 | ||||
-rwxr-xr-x[-rw-r--r--] | contrib/solaris/README | 0 | ||||
-rw-r--r-- | openbsd-compat/fake-queue.h | 584 | ||||
-rw-r--r-- | openbsd-compat/tree.h | 667 | ||||
-rw-r--r-- | scard/Ssh.bin | bin | 0 -> 600 bytes | |||
-rw-r--r-- | scp.0 | 93 | ||||
-rw-r--r-- | sftp-server.0 | 27 | ||||
-rw-r--r-- | sftp.0 | 180 | ||||
-rw-r--r-- | ssh-add.0 | 102 | ||||
-rw-r--r-- | ssh-agent.0 | 114 | ||||
-rw-r--r-- | ssh-dss.h | 32 | ||||
-rw-r--r-- | ssh-keygen.0 | 182 | ||||
-rw-r--r-- | ssh-keyscan.0 | 102 | ||||
-rw-r--r-- | ssh-keysign.0 | 42 | ||||
-rw-r--r-- | ssh-rand-helper.0 | 49 | ||||
-rw-r--r-- | ssh-rsa.h | 32 | ||||
-rw-r--r-- | ssh.0 | 614 | ||||
-rw-r--r-- | ssh_config.0 | 400 | ||||
-rw-r--r-- | sshd.0 | 547 | ||||
-rw-r--r-- | sshd_config.0 | 469 |
25 files changed, 43102 insertions, 0 deletions
diff --git a/autom4te-2.53.cache/output.0 b/autom4te-2.53.cache/output.0 new file mode 100644 index 000000000..74f5afd76 --- /dev/null +++ b/autom4te-2.53.cache/output.0 | |||
@@ -0,0 +1,18359 @@ | |||
1 | @%:@! /bin/sh | ||
2 | @%:@ Guess values for system-dependent variables and create Makefiles. | ||
3 | @%:@ Generated by GNU Autoconf 2.53. | ||
4 | @%:@ | ||
5 | @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
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 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
11 | as_expr=expr | ||
12 | else | ||
13 | as_expr=false | ||
14 | fi | ||
15 | |||
16 | |||
17 | ## --------------------- ## | ||
18 | ## M4sh Initialization. ## | ||
19 | ## --------------------- ## | ||
20 | |||
21 | # Be Bourne compatible | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
26 | set -o posix | ||
27 | fi | ||
28 | |||
29 | # NLS nuisances. | ||
30 | # Support unset when possible. | ||
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
32 | as_unset=unset | ||
33 | else | ||
34 | as_unset=false | ||
35 | fi | ||
36 | |||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
39 | { LANG=C; export LANG; } | ||
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
42 | { LC_ALL=C; export LC_ALL; } | ||
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
45 | { LC_TIME=C; export LC_TIME; } | ||
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
48 | { LC_CTYPE=C; export LC_CTYPE; } | ||
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
51 | { LANGUAGE=C; export LANGUAGE; } | ||
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
54 | { LC_COLLATE=C; export LC_COLLATE; } | ||
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
61 | |||
62 | |||
63 | # Name of the executable. | ||
64 | as_me=`(basename "$0") 2>/dev/null || | ||
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
66 | X"$0" : 'X\(//\)$' \| \ | ||
67 | X"$0" : 'X\(/\)$' \| \ | ||
68 | . : '\(.\)' 2>/dev/null || | ||
69 | echo X/"$0" | | ||
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
72 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
73 | s/.*/./; q'` | ||
74 | |||
75 | # PATH needs CR, and LINENO needs CR and PATH. | ||
76 | # Avoid depending upon Character Ranges. | ||
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
80 | as_cr_digits='0123456789' | ||
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
82 | |||
83 | # The user is always right. | ||
84 | if test "${PATH_SEPARATOR+set}" != set; then | ||
85 | echo "#! /bin/sh" >conftest.sh | ||
86 | echo "exit 0" >>conftest.sh | ||
87 | chmod +x conftest.sh | ||
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
89 | PATH_SEPARATOR=';' | ||
90 | else | ||
91 | PATH_SEPARATOR=: | ||
92 | fi | ||
93 | rm -f conftest.sh | ||
94 | fi | ||
95 | |||
96 | |||
97 | as_lineno_1=$LINENO | ||
98 | as_lineno_2=$LINENO | ||
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
102 | # Find who we are. Look in the path if we contain no path at all | ||
103 | # relative or not. | ||
104 | case $0 in | ||
105 | *[\\/]* ) as_myself=$0 ;; | ||
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
107 | for as_dir in $PATH | ||
108 | do | ||
109 | IFS=$as_save_IFS | ||
110 | test -z "$as_dir" && as_dir=. | ||
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
112 | done | ||
113 | |||
114 | ;; | ||
115 | esac | ||
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
117 | # in which case we are not to be found in the path. | ||
118 | if test "x$as_myself" = x; then | ||
119 | as_myself=$0 | ||
120 | fi | ||
121 | if test ! -f "$as_myself"; then | ||
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
123 | { (exit 1); exit 1; }; } | ||
124 | fi | ||
125 | case $CONFIG_SHELL in | ||
126 | '') | ||
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
129 | do | ||
130 | IFS=$as_save_IFS | ||
131 | test -z "$as_dir" && as_dir=. | ||
132 | for as_base in sh bash ksh sh5; do | ||
133 | case $as_dir in | ||
134 | /*) | ||
135 | if ("$as_dir/$as_base" -c ' | ||
136 | as_lineno_1=$LINENO | ||
137 | as_lineno_2=$LINENO | ||
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
141 | CONFIG_SHELL=$as_dir/$as_base | ||
142 | export CONFIG_SHELL | ||
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
144 | fi;; | ||
145 | esac | ||
146 | done | ||
147 | done | ||
148 | ;; | ||
149 | esac | ||
150 | |||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
152 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
153 | # line-number line before each line; the second 'sed' does the real | ||
154 | # work. The second script uses 'N' to pair each line-number line | ||
155 | # with the numbered line, and appends trailing '-' during | ||
156 | # substitution so that $LINENO is not a special case at line end. | ||
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
159 | sed '=' <$as_myself | | ||
160 | sed ' | ||
161 | N | ||
162 | s,$,-, | ||
163 | : loop | ||
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
165 | t loop | ||
166 | s,-$,, | ||
167 | s,^['$as_cr_digits']*\n,, | ||
168 | ' >$as_me.lineno && | ||
169 | chmod +x $as_me.lineno || | ||
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
171 | { (exit 1); exit 1; }; } | ||
172 | |||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
174 | # (the dirname of $[0] is not the place where we might find the | ||
175 | # original and so on. Autoconf is especially sensible to this). | ||
176 | . ./$as_me.lineno | ||
177 | # Exit status is that of the last command. | ||
178 | exit | ||
179 | } | ||
180 | |||
181 | |||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
183 | *c*,-n*) ECHO_N= ECHO_C=' | ||
184 | ' ECHO_T=' ' ;; | ||
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
187 | esac | ||
188 | |||
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
190 | as_expr=expr | ||
191 | else | ||
192 | as_expr=false | ||
193 | fi | ||
194 | |||
195 | rm -f conf$$ conf$$.exe conf$$.file | ||
196 | echo >conf$$.file | ||
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
198 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
200 | if test -f conf$$.exe; then | ||
201 | # Don't use ln at all; we don't have any links | ||
202 | as_ln_s='cp -p' | ||
203 | else | ||
204 | as_ln_s='ln -s' | ||
205 | fi | ||
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
207 | as_ln_s=ln | ||
208 | else | ||
209 | as_ln_s='cp -p' | ||
210 | fi | ||
211 | rm -f conf$$ conf$$.exe conf$$.file | ||
212 | |||
213 | as_executable_p="test -f" | ||
214 | |||
215 | # Sed expression to map a string onto a valid CPP name. | ||
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
217 | |||
218 | # Sed expression to map a string onto a valid variable name. | ||
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
220 | |||
221 | |||
222 | # IFS | ||
223 | # We need space, tab and new line, in precisely that order. | ||
224 | as_nl=' | ||
225 | ' | ||
226 | IFS=" $as_nl" | ||
227 | |||
228 | # CDPATH. | ||
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
230 | |||
231 | |||
232 | # Name of the host. | ||
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
234 | # so uname gets run too. | ||
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
236 | |||
237 | exec 6>&1 | ||
238 | |||
239 | # | ||
240 | # Initializations. | ||
241 | # | ||
242 | ac_default_prefix=/usr/local | ||
243 | cross_compiling=no | ||
244 | subdirs= | ||
245 | MFLAGS= | ||
246 | MAKEFLAGS= | ||
247 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
248 | |||
249 | # Maximum number of lines to put in a shell here document. | ||
250 | # This variable seems obsolete. It should probably be removed, and | ||
251 | # only ac_max_sed_lines should be used. | ||
252 | : ${ac_max_here_lines=38} | ||
253 | |||
254 | # Identity of this package. | ||
255 | PACKAGE_NAME= | ||
256 | PACKAGE_TARNAME= | ||
257 | PACKAGE_VERSION= | ||
258 | PACKAGE_STRING= | ||
259 | PACKAGE_BUGREPORT= | ||
260 | |||
261 | ac_unique_file="ssh.c" | ||
262 | # Factoring default headers for most tests. | ||
263 | ac_includes_default="\ | ||
264 | #include <stdio.h> | ||
265 | #if HAVE_SYS_TYPES_H | ||
266 | # include <sys/types.h> | ||
267 | #endif | ||
268 | #if HAVE_SYS_STAT_H | ||
269 | # include <sys/stat.h> | ||
270 | #endif | ||
271 | #if STDC_HEADERS | ||
272 | # include <stdlib.h> | ||
273 | # include <stddef.h> | ||
274 | #else | ||
275 | # if HAVE_STDLIB_H | ||
276 | # include <stdlib.h> | ||
277 | # endif | ||
278 | #endif | ||
279 | #if HAVE_STRING_H | ||
280 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
281 | # include <memory.h> | ||
282 | # endif | ||
283 | # include <string.h> | ||
284 | #endif | ||
285 | #if HAVE_STRINGS_H | ||
286 | # include <strings.h> | ||
287 | #endif | ||
288 | #if HAVE_INTTYPES_H | ||
289 | # include <inttypes.h> | ||
290 | #else | ||
291 | # if HAVE_STDINT_H | ||
292 | # include <stdint.h> | ||
293 | # endif | ||
294 | #endif | ||
295 | #if HAVE_UNISTD_H | ||
296 | # include <unistd.h> | ||
297 | #endif" | ||
298 | |||
299 | |||
300 | # Initialize some variables set by options. | ||
301 | ac_init_help= | ||
302 | ac_init_version=false | ||
303 | # The variables have the same names as the options, with | ||
304 | # dashes changed to underlines. | ||
305 | cache_file=/dev/null | ||
306 | exec_prefix=NONE | ||
307 | no_create= | ||
308 | no_recursion= | ||
309 | prefix=NONE | ||
310 | program_prefix=NONE | ||
311 | program_suffix=NONE | ||
312 | program_transform_name=s,x,x, | ||
313 | silent= | ||
314 | site= | ||
315 | srcdir= | ||
316 | verbose= | ||
317 | x_includes=NONE | ||
318 | x_libraries=NONE | ||
319 | |||
320 | # Installation directory options. | ||
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
322 | # and all the variables that are supposed to be based on exec_prefix | ||
323 | # by default will actually change. | ||
324 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
325 | bindir='${exec_prefix}/bin' | ||
326 | sbindir='${exec_prefix}/sbin' | ||
327 | libexecdir='${exec_prefix}/libexec' | ||
328 | datadir='${prefix}/share' | ||
329 | sysconfdir='${prefix}/etc' | ||
330 | sharedstatedir='${prefix}/com' | ||
331 | localstatedir='${prefix}/var' | ||
332 | libdir='${exec_prefix}/lib' | ||
333 | includedir='${prefix}/include' | ||
334 | oldincludedir='/usr/include' | ||
335 | infodir='${prefix}/info' | ||
336 | mandir='${prefix}/man' | ||
337 | |||
338 | ac_prev= | ||
339 | for ac_option | ||
340 | do | ||
341 | # If the previous option needs an argument, assign it. | ||
342 | if test -n "$ac_prev"; then | ||
343 | eval "$ac_prev=\$ac_option" | ||
344 | ac_prev= | ||
345 | continue | ||
346 | fi | ||
347 | |||
348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
349 | |||
350 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
351 | |||
352 | case $ac_option in | ||
353 | |||
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
355 | ac_prev=bindir ;; | ||
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
357 | bindir=$ac_optarg ;; | ||
358 | |||
359 | -build | --build | --buil | --bui | --bu) | ||
360 | ac_prev=build_alias ;; | ||
361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
362 | build_alias=$ac_optarg ;; | ||
363 | |||
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
366 | ac_prev=cache_file ;; | ||
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
369 | cache_file=$ac_optarg ;; | ||
370 | |||
371 | --config-cache | -C) | ||
372 | cache_file=config.cache ;; | ||
373 | |||
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
375 | ac_prev=datadir ;; | ||
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
377 | | --da=*) | ||
378 | datadir=$ac_optarg ;; | ||
379 | |||
380 | -disable-* | --disable-*) | ||
381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
382 | # Reject names that are not valid shell variable names. | ||
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
385 | { (exit 1); exit 1; }; } | ||
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
387 | eval "enable_$ac_feature=no" ;; | ||
388 | |||
389 | -enable-* | --enable-*) | ||
390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
391 | # Reject names that are not valid shell variable names. | ||
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
394 | { (exit 1); exit 1; }; } | ||
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
396 | case $ac_option in | ||
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
398 | *) ac_optarg=yes ;; | ||
399 | esac | ||
400 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
401 | |||
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
404 | | --exec | --exe | --ex) | ||
405 | ac_prev=exec_prefix ;; | ||
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
408 | | --exec=* | --exe=* | --ex=*) | ||
409 | exec_prefix=$ac_optarg ;; | ||
410 | |||
411 | -gas | --gas | --ga | --g) | ||
412 | # Obsolete; use --with-gas. | ||
413 | with_gas=yes ;; | ||
414 | |||
415 | -help | --help | --hel | --he | -h) | ||
416 | ac_init_help=long ;; | ||
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
418 | ac_init_help=recursive ;; | ||
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
420 | ac_init_help=short ;; | ||
421 | |||
422 | -host | --host | --hos | --ho) | ||
423 | ac_prev=host_alias ;; | ||
424 | -host=* | --host=* | --hos=* | --ho=*) | ||
425 | host_alias=$ac_optarg ;; | ||
426 | |||
427 | -includedir | --includedir | --includedi | --included | --include \ | ||
428 | | --includ | --inclu | --incl | --inc) | ||
429 | ac_prev=includedir ;; | ||
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
432 | includedir=$ac_optarg ;; | ||
433 | |||
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
435 | ac_prev=infodir ;; | ||
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
437 | infodir=$ac_optarg ;; | ||
438 | |||
439 | -libdir | --libdir | --libdi | --libd) | ||
440 | ac_prev=libdir ;; | ||
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
442 | libdir=$ac_optarg ;; | ||
443 | |||
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
445 | | --libexe | --libex | --libe) | ||
446 | ac_prev=libexecdir ;; | ||
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
448 | | --libexe=* | --libex=* | --libe=*) | ||
449 | libexecdir=$ac_optarg ;; | ||
450 | |||
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
452 | | --localstate | --localstat | --localsta | --localst \ | ||
453 | | --locals | --local | --loca | --loc | --lo) | ||
454 | ac_prev=localstatedir ;; | ||
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
458 | localstatedir=$ac_optarg ;; | ||
459 | |||
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
461 | ac_prev=mandir ;; | ||
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
463 | mandir=$ac_optarg ;; | ||
464 | |||
465 | -nfp | --nfp | --nf) | ||
466 | # Obsolete; use --without-fp. | ||
467 | with_fp=no ;; | ||
468 | |||
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
470 | | --no-cr | --no-c | -n) | ||
471 | no_create=yes ;; | ||
472 | |||
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
475 | no_recursion=yes ;; | ||
476 | |||
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
479 | | --oldin | --oldi | --old | --ol | --o) | ||
480 | ac_prev=oldincludedir ;; | ||
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
484 | oldincludedir=$ac_optarg ;; | ||
485 | |||
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
487 | ac_prev=prefix ;; | ||
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
489 | prefix=$ac_optarg ;; | ||
490 | |||
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
492 | | --program-pre | --program-pr | --program-p) | ||
493 | ac_prev=program_prefix ;; | ||
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
496 | program_prefix=$ac_optarg ;; | ||
497 | |||
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
499 | | --program-suf | --program-su | --program-s) | ||
500 | ac_prev=program_suffix ;; | ||
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
503 | program_suffix=$ac_optarg ;; | ||
504 | |||
505 | -program-transform-name | --program-transform-name \ | ||
506 | | --program-transform-nam | --program-transform-na \ | ||
507 | | --program-transform-n | --program-transform- \ | ||
508 | | --program-transform | --program-transfor \ | ||
509 | | --program-transfo | --program-transf \ | ||
510 | | --program-trans | --program-tran \ | ||
511 | | --progr-tra | --program-tr | --program-t) | ||
512 | ac_prev=program_transform_name ;; | ||
513 | -program-transform-name=* | --program-transform-name=* \ | ||
514 | | --program-transform-nam=* | --program-transform-na=* \ | ||
515 | | --program-transform-n=* | --program-transform-=* \ | ||
516 | | --program-transform=* | --program-transfor=* \ | ||
517 | | --program-transfo=* | --program-transf=* \ | ||
518 | | --program-trans=* | --program-tran=* \ | ||
519 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
520 | program_transform_name=$ac_optarg ;; | ||
521 | |||
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
523 | | -silent | --silent | --silen | --sile | --sil) | ||
524 | silent=yes ;; | ||
525 | |||
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
527 | ac_prev=sbindir ;; | ||
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
529 | | --sbi=* | --sb=*) | ||
530 | sbindir=$ac_optarg ;; | ||
531 | |||
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
534 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
535 | | --sha | --sh) | ||
536 | ac_prev=sharedstatedir ;; | ||
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
540 | | --sha=* | --sh=*) | ||
541 | sharedstatedir=$ac_optarg ;; | ||
542 | |||
543 | -site | --site | --sit) | ||
544 | ac_prev=site ;; | ||
545 | -site=* | --site=* | --sit=*) | ||
546 | site=$ac_optarg ;; | ||
547 | |||
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
549 | ac_prev=srcdir ;; | ||
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
551 | srcdir=$ac_optarg ;; | ||
552 | |||
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
554 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
555 | ac_prev=sysconfdir ;; | ||
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
558 | sysconfdir=$ac_optarg ;; | ||
559 | |||
560 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
561 | ac_prev=target_alias ;; | ||
562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
563 | target_alias=$ac_optarg ;; | ||
564 | |||
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
566 | verbose=yes ;; | ||
567 | |||
568 | -version | --version | --versio | --versi | --vers | -V) | ||
569 | ac_init_version=: ;; | ||
570 | |||
571 | -with-* | --with-*) | ||
572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
573 | # Reject names that are not valid shell variable names. | ||
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
576 | { (exit 1); exit 1; }; } | ||
577 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
578 | case $ac_option in | ||
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
580 | *) ac_optarg=yes ;; | ||
581 | esac | ||
582 | eval "with_$ac_package='$ac_optarg'" ;; | ||
583 | |||
584 | -without-* | --without-*) | ||
585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
586 | # Reject names that are not valid shell variable names. | ||
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
589 | { (exit 1); exit 1; }; } | ||
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
591 | eval "with_$ac_package=no" ;; | ||
592 | |||
593 | --x) | ||
594 | # Obsolete; use --with-x. | ||
595 | with_x=yes ;; | ||
596 | |||
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
598 | | --x-incl | --x-inc | --x-in | --x-i) | ||
599 | ac_prev=x_includes ;; | ||
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
602 | x_includes=$ac_optarg ;; | ||
603 | |||
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
606 | ac_prev=x_libraries ;; | ||
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
609 | x_libraries=$ac_optarg ;; | ||
610 | |||
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
612 | Try \`$0 --help' for more information." >&2 | ||
613 | { (exit 1); exit 1; }; } | ||
614 | ;; | ||
615 | |||
616 | *=*) | ||
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
618 | # Reject names that are not valid shell variable names. | ||
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
621 | { (exit 1); exit 1; }; } | ||
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
623 | eval "$ac_envvar='$ac_optarg'" | ||
624 | export $ac_envvar ;; | ||
625 | |||
626 | *) | ||
627 | # FIXME: should be removed in autoconf 3.0. | ||
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
632 | ;; | ||
633 | |||
634 | esac | ||
635 | done | ||
636 | |||
637 | if test -n "$ac_prev"; then | ||
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
640 | { (exit 1); exit 1; }; } | ||
641 | fi | ||
642 | |||
643 | # Be sure to have absolute paths. | ||
644 | for ac_var in exec_prefix prefix | ||
645 | do | ||
646 | eval ac_val=$`echo $ac_var` | ||
647 | case $ac_val in | ||
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
650 | { (exit 1); exit 1; }; };; | ||
651 | esac | ||
652 | done | ||
653 | |||
654 | # Be sure to have absolute paths. | ||
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
656 | localstatedir libdir includedir oldincludedir infodir mandir | ||
657 | do | ||
658 | eval ac_val=$`echo $ac_var` | ||
659 | case $ac_val in | ||
660 | [\\/$]* | ?:[\\/]* ) ;; | ||
661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
662 | { (exit 1); exit 1; }; };; | ||
663 | esac | ||
664 | done | ||
665 | |||
666 | # There might be people who depend on the old broken behavior: `$host' | ||
667 | # used to hold the argument of --host etc. | ||
668 | # FIXME: To remove some day. | ||
669 | build=$build_alias | ||
670 | host=$host_alias | ||
671 | target=$target_alias | ||
672 | |||
673 | # FIXME: To remove some day. | ||
674 | if test "x$host_alias" != x; then | ||
675 | if test "x$build_alias" = x; then | ||
676 | cross_compiling=maybe | ||
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
678 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
679 | elif test "x$build_alias" != "x$host_alias"; then | ||
680 | cross_compiling=yes | ||
681 | fi | ||
682 | fi | ||
683 | |||
684 | ac_tool_prefix= | ||
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
686 | |||
687 | test "$silent" = yes && exec 6>/dev/null | ||
688 | |||
689 | |||
690 | # Find the source files, if location was not specified. | ||
691 | if test -z "$srcdir"; then | ||
692 | ac_srcdir_defaulted=yes | ||
693 | # Try the directory containing this script, then its parent. | ||
694 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
696 | X"$0" : 'X\(//\)[^/]' \| \ | ||
697 | X"$0" : 'X\(//\)$' \| \ | ||
698 | X"$0" : 'X\(/\)' \| \ | ||
699 | . : '\(.\)' 2>/dev/null || | ||
700 | echo X"$0" | | ||
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
703 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
704 | /^X\(\/\).*/{ s//\1/; q; } | ||
705 | s/.*/./; q'` | ||
706 | srcdir=$ac_confdir | ||
707 | if test ! -r $srcdir/$ac_unique_file; then | ||
708 | srcdir=.. | ||
709 | fi | ||
710 | else | ||
711 | ac_srcdir_defaulted=no | ||
712 | fi | ||
713 | if test ! -r $srcdir/$ac_unique_file; then | ||
714 | if test "$ac_srcdir_defaulted" = yes; then | ||
715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
716 | { (exit 1); exit 1; }; } | ||
717 | else | ||
718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
719 | { (exit 1); exit 1; }; } | ||
720 | fi | ||
721 | fi | ||
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
723 | ac_env_build_alias_set=${build_alias+set} | ||
724 | ac_env_build_alias_value=$build_alias | ||
725 | ac_cv_env_build_alias_set=${build_alias+set} | ||
726 | ac_cv_env_build_alias_value=$build_alias | ||
727 | ac_env_host_alias_set=${host_alias+set} | ||
728 | ac_env_host_alias_value=$host_alias | ||
729 | ac_cv_env_host_alias_set=${host_alias+set} | ||
730 | ac_cv_env_host_alias_value=$host_alias | ||
731 | ac_env_target_alias_set=${target_alias+set} | ||
732 | ac_env_target_alias_value=$target_alias | ||
733 | ac_cv_env_target_alias_set=${target_alias+set} | ||
734 | ac_cv_env_target_alias_value=$target_alias | ||
735 | ac_env_CC_set=${CC+set} | ||
736 | ac_env_CC_value=$CC | ||
737 | ac_cv_env_CC_set=${CC+set} | ||
738 | ac_cv_env_CC_value=$CC | ||
739 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
740 | ac_env_CFLAGS_value=$CFLAGS | ||
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
742 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
744 | ac_env_LDFLAGS_value=$LDFLAGS | ||
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
748 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
751 | ac_env_CPP_set=${CPP+set} | ||
752 | ac_env_CPP_value=$CPP | ||
753 | ac_cv_env_CPP_set=${CPP+set} | ||
754 | ac_cv_env_CPP_value=$CPP | ||
755 | |||
756 | # | ||
757 | # Report the --help message. | ||
758 | # | ||
759 | if test "$ac_init_help" = "long"; then | ||
760 | # Omit some internal or obsolete options to make the list less imposing. | ||
761 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
762 | cat <<_ACEOF | ||
763 | \`configure' configures this package to adapt to many kinds of systems. | ||
764 | |||
765 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
766 | |||
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
768 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
769 | |||
770 | Defaults for the options are specified in brackets. | ||
771 | |||
772 | Configuration: | ||
773 | -h, --help display this help and exit | ||
774 | --help=short display options specific to this package | ||
775 | --help=recursive display the short help of all the included packages | ||
776 | -V, --version display version information and exit | ||
777 | -q, --quiet, --silent do not print \`checking...' messages | ||
778 | --cache-file=FILE cache test results in FILE [disabled] | ||
779 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
780 | -n, --no-create do not create output files | ||
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
782 | |||
783 | _ACEOF | ||
784 | |||
785 | cat <<_ACEOF | ||
786 | Installation directories: | ||
787 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
788 | [$ac_default_prefix] | ||
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
790 | [PREFIX] | ||
791 | |||
792 | By default, \`make install' will install all the files in | ||
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
795 | for instance \`--prefix=\$HOME'. | ||
796 | |||
797 | For better control, use the options below. | ||
798 | |||
799 | Fine tuning of the installation directories: | ||
800 | --bindir=DIR user executables [EPREFIX/bin] | ||
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
802 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
807 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
808 | --includedir=DIR C header files [PREFIX/include] | ||
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
810 | --infodir=DIR info documentation [PREFIX/info] | ||
811 | --mandir=DIR man documentation [PREFIX/man] | ||
812 | _ACEOF | ||
813 | |||
814 | cat <<\_ACEOF | ||
815 | |||
816 | System types: | ||
817 | --build=BUILD configure for building on BUILD [guessed] | ||
818 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
819 | _ACEOF | ||
820 | fi | ||
821 | |||
822 | if test -n "$ac_init_help"; then | ||
823 | |||
824 | cat <<\_ACEOF | ||
825 | |||
826 | Optional Features: | ||
827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
829 | --disable-largefile omit support for large files | ||
830 | --disable-strip Disable calling strip(1) on install | ||
831 | --disable-lastlog disable use of lastlog even if detected no | ||
832 | --disable-utmp disable use of utmp even if detected no | ||
833 | --disable-utmpx disable use of utmpx even if detected no | ||
834 | --disable-wtmp disable use of wtmp even if detected no | ||
835 | --disable-wtmpx disable use of wtmpx even if detected no | ||
836 | --disable-libutil disable use of libutil (login() etc.) no | ||
837 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
838 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
839 | |||
840 | Optional Packages: | ||
841 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
842 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
843 | --with-osfsia Enable Digital Unix SIA | ||
844 | --with-cflags Specify additional flags to pass to compiler | ||
845 | --with-cppflags Specify additional flags to pass to preprocessor | ||
846 | --with-ldflags Specify additional flags to pass to linker | ||
847 | --with-libs Specify additional libraries to link with | ||
848 | --without-rpath Disable auto-added -R linker paths | ||
849 | --with-zlib=PATH Use zlib in PATH | ||
850 | --with-skey[=PATH] Enable S/Key support | ||
851 | (optionally in PATH) | ||
852 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
853 | (optionally in PATH) | ||
854 | --with-pam Enable PAM support | ||
855 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
856 | --with-rand-helper Use subprocess to gather strong randomness | ||
857 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
858 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
859 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
860 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
861 | --with-sectok Enable smartcard support using libsectok | ||
862 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
863 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
864 | --with-kerberos4=PATH Enable Kerberos 4 support | ||
865 | --with-afs=PATH Enable AFS support | ||
866 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
867 | --with-xauth=PATH Specify path to xauth program | ||
868 | --with-mantype=man|cat|doc Set man page type | ||
869 | --with-md5-passwords Enable use of MD5 passwords | ||
870 | --without-shadow Disable shadow password support | ||
871 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
872 | --with-default-path= Specify default \$PATH environment for server | ||
873 | --with-superuser-path= Specify different path for super-user | ||
874 | --with-ipv4-default Use IPv4 by connections unless '-6' specified | ||
875 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
876 | --with-bsd-auth Enable BSD auth support | ||
877 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
878 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
879 | |||
880 | Some influential environment variables: | ||
881 | CC C compiler command | ||
882 | CFLAGS C compiler flags | ||
883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
884 | nonstandard directory <lib dir> | ||
885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
886 | headers in a nonstandard directory <include dir> | ||
887 | CPP C preprocessor | ||
888 | |||
889 | Use these variables to override the choices made by `configure' or to help | ||
890 | it to find libraries and programs with nonstandard names/locations. | ||
891 | |||
892 | _ACEOF | ||
893 | fi | ||
894 | |||
895 | if test "$ac_init_help" = "recursive"; then | ||
896 | # If there are subdirs, report their specific --help. | ||
897 | ac_popdir=`pwd` | ||
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
899 | test -d $ac_dir || continue | ||
900 | ac_builddir=. | ||
901 | |||
902 | if test "$ac_dir" != .; then | ||
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
904 | # A "../" for each directory in $ac_dir_suffix. | ||
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
906 | else | ||
907 | ac_dir_suffix= ac_top_builddir= | ||
908 | fi | ||
909 | |||
910 | case $srcdir in | ||
911 | .) # No --srcdir option. We are building in place. | ||
912 | ac_srcdir=. | ||
913 | if test -z "$ac_top_builddir"; then | ||
914 | ac_top_srcdir=. | ||
915 | else | ||
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
917 | fi ;; | ||
918 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
919 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
920 | ac_top_srcdir=$srcdir ;; | ||
921 | *) # Relative path. | ||
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
924 | esac | ||
925 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
926 | # absolute. | ||
927 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
928 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
929 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
930 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
931 | |||
932 | cd $ac_dir | ||
933 | # Check for guested configure; otherwise get Cygnus style configure. | ||
934 | if test -f $ac_srcdir/configure.gnu; then | ||
935 | echo | ||
936 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
937 | elif test -f $ac_srcdir/configure; then | ||
938 | echo | ||
939 | $SHELL $ac_srcdir/configure --help=recursive | ||
940 | elif test -f $ac_srcdir/configure.ac || | ||
941 | test -f $ac_srcdir/configure.in; then | ||
942 | echo | ||
943 | $ac_configure --help | ||
944 | else | ||
945 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
946 | fi | ||
947 | cd $ac_popdir | ||
948 | done | ||
949 | fi | ||
950 | |||
951 | test -n "$ac_init_help" && exit 0 | ||
952 | if $ac_init_version; then | ||
953 | cat <<\_ACEOF | ||
954 | |||
955 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
956 | Free Software Foundation, Inc. | ||
957 | This configure script is free software; the Free Software Foundation | ||
958 | gives unlimited permission to copy, distribute and modify it. | ||
959 | _ACEOF | ||
960 | exit 0 | ||
961 | fi | ||
962 | exec 5>config.log | ||
963 | cat >&5 <<_ACEOF | ||
964 | This file contains any messages produced by compilers while | ||
965 | running configure, to aid debugging if configure makes a mistake. | ||
966 | |||
967 | It was created by $as_me, which was | ||
968 | generated by GNU Autoconf 2.53. Invocation command line was | ||
969 | |||
970 | $ $0 $@ | ||
971 | |||
972 | _ACEOF | ||
973 | { | ||
974 | cat <<_ASUNAME | ||
975 | @%:@@%:@ --------- @%:@@%:@ | ||
976 | @%:@@%:@ Platform. @%:@@%:@ | ||
977 | @%:@@%:@ --------- @%:@@%:@ | ||
978 | |||
979 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
980 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
981 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
982 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
983 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
984 | |||
985 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
986 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
987 | |||
988 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
989 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
990 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
991 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
992 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
993 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
994 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
995 | |||
996 | _ASUNAME | ||
997 | |||
998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
999 | for as_dir in $PATH | ||
1000 | do | ||
1001 | IFS=$as_save_IFS | ||
1002 | test -z "$as_dir" && as_dir=. | ||
1003 | echo "PATH: $as_dir" | ||
1004 | done | ||
1005 | |||
1006 | } >&5 | ||
1007 | |||
1008 | cat >&5 <<_ACEOF | ||
1009 | |||
1010 | |||
1011 | @%:@@%:@ ----------- @%:@@%:@ | ||
1012 | @%:@@%:@ Core tests. @%:@@%:@ | ||
1013 | @%:@@%:@ ----------- @%:@@%:@ | ||
1014 | |||
1015 | _ACEOF | ||
1016 | |||
1017 | |||
1018 | # Keep a trace of the command line. | ||
1019 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1020 | # Also quote any args containing shell meta-characters. | ||
1021 | ac_configure_args= | ||
1022 | ac_sep= | ||
1023 | for ac_arg | ||
1024 | do | ||
1025 | case $ac_arg in | ||
1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1027 | | --no-cr | --no-c | -n ) continue ;; | ||
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1030 | continue ;; | ||
1031 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1032 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1033 | esac | ||
1034 | case " $ac_configure_args " in | ||
1035 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1036 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1037 | ac_sep=" " ;; | ||
1038 | esac | ||
1039 | # Get rid of the leading space. | ||
1040 | done | ||
1041 | |||
1042 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1043 | # config.log. We remove comments because anyway the quotes in there | ||
1044 | # would cause problems or look ugly. | ||
1045 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1046 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1047 | trap 'exit_status=$? | ||
1048 | # Save into config.log some information that might help in debugging. | ||
1049 | { | ||
1050 | echo | ||
1051 | cat <<\_ASBOX | ||
1052 | @%:@@%:@ ---------------- @%:@@%:@ | ||
1053 | @%:@@%:@ Cache variables. @%:@@%:@ | ||
1054 | @%:@@%:@ ---------------- @%:@@%:@ | ||
1055 | _ASBOX | ||
1056 | echo | ||
1057 | # The following way of writing the cache mishandles newlines in values, | ||
1058 | { | ||
1059 | (set) 2>&1 | | ||
1060 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1061 | *ac_space=\ *) | ||
1062 | sed -n \ | ||
1063 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1064 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1065 | ;; | ||
1066 | *) | ||
1067 | sed -n \ | ||
1068 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1069 | ;; | ||
1070 | esac; | ||
1071 | } | ||
1072 | echo | ||
1073 | if test -s confdefs.h; then | ||
1074 | cat <<\_ASBOX | ||
1075 | @%:@@%:@ ----------- @%:@@%:@ | ||
1076 | @%:@@%:@ confdefs.h. @%:@@%:@ | ||
1077 | @%:@@%:@ ----------- @%:@@%:@ | ||
1078 | _ASBOX | ||
1079 | echo | ||
1080 | sed "/^$/d" confdefs.h | ||
1081 | echo | ||
1082 | fi | ||
1083 | test "$ac_signal" != 0 && | ||
1084 | echo "$as_me: caught signal $ac_signal" | ||
1085 | echo "$as_me: exit $exit_status" | ||
1086 | } >&5 | ||
1087 | rm -f core core.* *.core && | ||
1088 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1089 | exit $exit_status | ||
1090 | ' 0 | ||
1091 | for ac_signal in 1 2 13 15; do | ||
1092 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1093 | done | ||
1094 | ac_signal=0 | ||
1095 | |||
1096 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1097 | rm -rf conftest* confdefs.h | ||
1098 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1099 | echo >confdefs.h | ||
1100 | |||
1101 | # Predefined preprocessor variables. | ||
1102 | |||
1103 | cat >>confdefs.h <<_ACEOF | ||
1104 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" | ||
1105 | _ACEOF | ||
1106 | |||
1107 | |||
1108 | cat >>confdefs.h <<_ACEOF | ||
1109 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1110 | _ACEOF | ||
1111 | |||
1112 | |||
1113 | cat >>confdefs.h <<_ACEOF | ||
1114 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1115 | _ACEOF | ||
1116 | |||
1117 | |||
1118 | cat >>confdefs.h <<_ACEOF | ||
1119 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" | ||
1120 | _ACEOF | ||
1121 | |||
1122 | |||
1123 | cat >>confdefs.h <<_ACEOF | ||
1124 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1125 | _ACEOF | ||
1126 | |||
1127 | |||
1128 | # Let the site file select an alternate cache file if it wants to. | ||
1129 | # Prefer explicitly selected file to automatically selected ones. | ||
1130 | if test -z "$CONFIG_SITE"; then | ||
1131 | if test "x$prefix" != xNONE; then | ||
1132 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1133 | else | ||
1134 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1135 | fi | ||
1136 | fi | ||
1137 | for ac_site_file in $CONFIG_SITE; do | ||
1138 | if test -r "$ac_site_file"; then | ||
1139 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1140 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1141 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1142 | . "$ac_site_file" | ||
1143 | fi | ||
1144 | done | ||
1145 | |||
1146 | if test -r "$cache_file"; then | ||
1147 | # Some versions of bash will fail to source /dev/null (special | ||
1148 | # files actually), so we avoid doing that. | ||
1149 | if test -f "$cache_file"; then | ||
1150 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1151 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1152 | case $cache_file in | ||
1153 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1154 | *) . ./$cache_file;; | ||
1155 | esac | ||
1156 | fi | ||
1157 | else | ||
1158 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1159 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1160 | >$cache_file | ||
1161 | fi | ||
1162 | |||
1163 | # Check that the precious variables saved in the cache have kept the same | ||
1164 | # value. | ||
1165 | ac_cache_corrupted=false | ||
1166 | for ac_var in `(set) 2>&1 | | ||
1167 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1169 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1170 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1171 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1172 | case $ac_old_set,$ac_new_set in | ||
1173 | set,) | ||
1174 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1175 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1176 | ac_cache_corrupted=: ;; | ||
1177 | ,set) | ||
1178 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1179 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1180 | ac_cache_corrupted=: ;; | ||
1181 | ,);; | ||
1182 | *) | ||
1183 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1184 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1185 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1186 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1187 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1188 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1189 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1190 | ac_cache_corrupted=: | ||
1191 | fi;; | ||
1192 | esac | ||
1193 | # Pass precious variables to config.status. | ||
1194 | if test "$ac_new_set" = set; then | ||
1195 | case $ac_new_val in | ||
1196 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1197 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1198 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1199 | esac | ||
1200 | case " $ac_configure_args " in | ||
1201 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1202 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1203 | esac | ||
1204 | fi | ||
1205 | done | ||
1206 | if $ac_cache_corrupted; then | ||
1207 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1208 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1209 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1210 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1211 | { (exit 1); exit 1; }; } | ||
1212 | fi | ||
1213 | |||
1214 | ac_ext=c | ||
1215 | ac_cpp='$CPP $CPPFLAGS' | ||
1216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1219 | |||
1220 | |||
1221 | |||
1222 | |||
1223 | |||
1224 | |||
1225 | |||
1226 | |||
1227 | |||
1228 | |||
1229 | |||
1230 | |||
1231 | |||
1232 | |||
1233 | |||
1234 | |||
1235 | |||
1236 | |||
1237 | |||
1238 | |||
1239 | ac_config_headers="$ac_config_headers config.h" | ||
1240 | |||
1241 | ac_ext=c | ||
1242 | ac_cpp='$CPP $CPPFLAGS' | ||
1243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1246 | if test -n "$ac_tool_prefix"; then | ||
1247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1251 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1253 | else | ||
1254 | if test -n "$CC"; then | ||
1255 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1256 | else | ||
1257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1258 | for as_dir in $PATH | ||
1259 | do | ||
1260 | IFS=$as_save_IFS | ||
1261 | test -z "$as_dir" && as_dir=. | ||
1262 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1266 | break 2 | ||
1267 | fi | ||
1268 | done | ||
1269 | done | ||
1270 | |||
1271 | fi | ||
1272 | fi | ||
1273 | CC=$ac_cv_prog_CC | ||
1274 | if test -n "$CC"; then | ||
1275 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1276 | echo "${ECHO_T}$CC" >&6 | ||
1277 | else | ||
1278 | echo "$as_me:$LINENO: result: no" >&5 | ||
1279 | echo "${ECHO_T}no" >&6 | ||
1280 | fi | ||
1281 | |||
1282 | fi | ||
1283 | if test -z "$ac_cv_prog_CC"; then | ||
1284 | ac_ct_CC=$CC | ||
1285 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1286 | set dummy gcc; ac_word=$2 | ||
1287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1289 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1291 | else | ||
1292 | if test -n "$ac_ct_CC"; then | ||
1293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1294 | else | ||
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1296 | for as_dir in $PATH | ||
1297 | do | ||
1298 | IFS=$as_save_IFS | ||
1299 | test -z "$as_dir" && as_dir=. | ||
1300 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1302 | ac_cv_prog_ac_ct_CC="gcc" | ||
1303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1304 | break 2 | ||
1305 | fi | ||
1306 | done | ||
1307 | done | ||
1308 | |||
1309 | fi | ||
1310 | fi | ||
1311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1312 | if test -n "$ac_ct_CC"; then | ||
1313 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1314 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1315 | else | ||
1316 | echo "$as_me:$LINENO: result: no" >&5 | ||
1317 | echo "${ECHO_T}no" >&6 | ||
1318 | fi | ||
1319 | |||
1320 | CC=$ac_ct_CC | ||
1321 | else | ||
1322 | CC="$ac_cv_prog_CC" | ||
1323 | fi | ||
1324 | |||
1325 | if test -z "$CC"; then | ||
1326 | if test -n "$ac_tool_prefix"; then | ||
1327 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1328 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1331 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1333 | else | ||
1334 | if test -n "$CC"; then | ||
1335 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1336 | else | ||
1337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1338 | for as_dir in $PATH | ||
1339 | do | ||
1340 | IFS=$as_save_IFS | ||
1341 | test -z "$as_dir" && as_dir=. | ||
1342 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1344 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1346 | break 2 | ||
1347 | fi | ||
1348 | done | ||
1349 | done | ||
1350 | |||
1351 | fi | ||
1352 | fi | ||
1353 | CC=$ac_cv_prog_CC | ||
1354 | if test -n "$CC"; then | ||
1355 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1356 | echo "${ECHO_T}$CC" >&6 | ||
1357 | else | ||
1358 | echo "$as_me:$LINENO: result: no" >&5 | ||
1359 | echo "${ECHO_T}no" >&6 | ||
1360 | fi | ||
1361 | |||
1362 | fi | ||
1363 | if test -z "$ac_cv_prog_CC"; then | ||
1364 | ac_ct_CC=$CC | ||
1365 | # Extract the first word of "cc", so it can be a program name with args. | ||
1366 | set dummy cc; ac_word=$2 | ||
1367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1369 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1371 | else | ||
1372 | if test -n "$ac_ct_CC"; then | ||
1373 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1374 | else | ||
1375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1376 | for as_dir in $PATH | ||
1377 | do | ||
1378 | IFS=$as_save_IFS | ||
1379 | test -z "$as_dir" && as_dir=. | ||
1380 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1382 | ac_cv_prog_ac_ct_CC="cc" | ||
1383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1384 | break 2 | ||
1385 | fi | ||
1386 | done | ||
1387 | done | ||
1388 | |||
1389 | fi | ||
1390 | fi | ||
1391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1392 | if test -n "$ac_ct_CC"; then | ||
1393 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1394 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1395 | else | ||
1396 | echo "$as_me:$LINENO: result: no" >&5 | ||
1397 | echo "${ECHO_T}no" >&6 | ||
1398 | fi | ||
1399 | |||
1400 | CC=$ac_ct_CC | ||
1401 | else | ||
1402 | CC="$ac_cv_prog_CC" | ||
1403 | fi | ||
1404 | |||
1405 | fi | ||
1406 | if test -z "$CC"; then | ||
1407 | # Extract the first word of "cc", so it can be a program name with args. | ||
1408 | set dummy cc; ac_word=$2 | ||
1409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1411 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1413 | else | ||
1414 | if test -n "$CC"; then | ||
1415 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1416 | else | ||
1417 | ac_prog_rejected=no | ||
1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1419 | for as_dir in $PATH | ||
1420 | do | ||
1421 | IFS=$as_save_IFS | ||
1422 | test -z "$as_dir" && as_dir=. | ||
1423 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1426 | ac_prog_rejected=yes | ||
1427 | continue | ||
1428 | fi | ||
1429 | ac_cv_prog_CC="cc" | ||
1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1431 | break 2 | ||
1432 | fi | ||
1433 | done | ||
1434 | done | ||
1435 | |||
1436 | if test $ac_prog_rejected = yes; then | ||
1437 | # We found a bogon in the path, so make sure we never use it. | ||
1438 | set dummy $ac_cv_prog_CC | ||
1439 | shift | ||
1440 | if test $@%:@ != 0; then | ||
1441 | # We chose a different compiler from the bogus one. | ||
1442 | # However, it has the same basename, so the bogon will be chosen | ||
1443 | # first if we set CC to just the basename; use the full file name. | ||
1444 | shift | ||
1445 | set dummy "$as_dir/$ac_word" ${1+"$@"} | ||
1446 | shift | ||
1447 | ac_cv_prog_CC="$@" | ||
1448 | fi | ||
1449 | fi | ||
1450 | fi | ||
1451 | fi | ||
1452 | CC=$ac_cv_prog_CC | ||
1453 | if test -n "$CC"; then | ||
1454 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1455 | echo "${ECHO_T}$CC" >&6 | ||
1456 | else | ||
1457 | echo "$as_me:$LINENO: result: no" >&5 | ||
1458 | echo "${ECHO_T}no" >&6 | ||
1459 | fi | ||
1460 | |||
1461 | fi | ||
1462 | if test -z "$CC"; then | ||
1463 | if test -n "$ac_tool_prefix"; then | ||
1464 | for ac_prog in cl | ||
1465 | do | ||
1466 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1467 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1470 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1472 | else | ||
1473 | if test -n "$CC"; then | ||
1474 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1475 | else | ||
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1477 | for as_dir in $PATH | ||
1478 | do | ||
1479 | IFS=$as_save_IFS | ||
1480 | test -z "$as_dir" && as_dir=. | ||
1481 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1483 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1485 | break 2 | ||
1486 | fi | ||
1487 | done | ||
1488 | done | ||
1489 | |||
1490 | fi | ||
1491 | fi | ||
1492 | CC=$ac_cv_prog_CC | ||
1493 | if test -n "$CC"; then | ||
1494 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1495 | echo "${ECHO_T}$CC" >&6 | ||
1496 | else | ||
1497 | echo "$as_me:$LINENO: result: no" >&5 | ||
1498 | echo "${ECHO_T}no" >&6 | ||
1499 | fi | ||
1500 | |||
1501 | test -n "$CC" && break | ||
1502 | done | ||
1503 | fi | ||
1504 | if test -z "$CC"; then | ||
1505 | ac_ct_CC=$CC | ||
1506 | for ac_prog in cl | ||
1507 | do | ||
1508 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1509 | set dummy $ac_prog; ac_word=$2 | ||
1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1514 | else | ||
1515 | if test -n "$ac_ct_CC"; then | ||
1516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1517 | else | ||
1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1519 | for as_dir in $PATH | ||
1520 | do | ||
1521 | IFS=$as_save_IFS | ||
1522 | test -z "$as_dir" && as_dir=. | ||
1523 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1525 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1527 | break 2 | ||
1528 | fi | ||
1529 | done | ||
1530 | done | ||
1531 | |||
1532 | fi | ||
1533 | fi | ||
1534 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1535 | if test -n "$ac_ct_CC"; then | ||
1536 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1537 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1538 | else | ||
1539 | echo "$as_me:$LINENO: result: no" >&5 | ||
1540 | echo "${ECHO_T}no" >&6 | ||
1541 | fi | ||
1542 | |||
1543 | test -n "$ac_ct_CC" && break | ||
1544 | done | ||
1545 | |||
1546 | CC=$ac_ct_CC | ||
1547 | fi | ||
1548 | |||
1549 | fi | ||
1550 | |||
1551 | |||
1552 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | ||
1553 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | ||
1554 | { (exit 1); exit 1; }; } | ||
1555 | |||
1556 | # Provide some information about the compiler. | ||
1557 | echo "$as_me:$LINENO:" \ | ||
1558 | "checking for C compiler version" >&5 | ||
1559 | ac_compiler=`set X $ac_compile; echo $2` | ||
1560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1561 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1562 | ac_status=$? | ||
1563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1564 | (exit $ac_status); } | ||
1565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1566 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1567 | ac_status=$? | ||
1568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1569 | (exit $ac_status); } | ||
1570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1571 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1572 | ac_status=$? | ||
1573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1574 | (exit $ac_status); } | ||
1575 | |||
1576 | cat >conftest.$ac_ext <<_ACEOF | ||
1577 | #line $LINENO "configure" | ||
1578 | #include "confdefs.h" | ||
1579 | |||
1580 | #ifdef F77_DUMMY_MAIN | ||
1581 | # ifdef __cplusplus | ||
1582 | extern "C" | ||
1583 | # endif | ||
1584 | int F77_DUMMY_MAIN() { return 1; } | ||
1585 | #endif | ||
1586 | int | ||
1587 | main () | ||
1588 | { | ||
1589 | |||
1590 | ; | ||
1591 | return 0; | ||
1592 | } | ||
1593 | _ACEOF | ||
1594 | ac_clean_files_save=$ac_clean_files | ||
1595 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1596 | # Try to create an executable without -o first, disregard a.out. | ||
1597 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1598 | # of exeext. | ||
1599 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | ||
1600 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1601 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1602 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1603 | (eval $ac_link_default) 2>&5 | ||
1604 | ac_status=$? | ||
1605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1606 | (exit $ac_status); }; then | ||
1607 | # Find the output, starting from the most likely. This scheme is | ||
1608 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1609 | # resort. | ||
1610 | |||
1611 | # Be careful to initialize this variable, since it used to be cached. | ||
1612 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1613 | ac_cv_exeext= | ||
1614 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | ||
1615 | ls a.out conftest 2>/dev/null; | ||
1616 | ls a.* conftest.* 2>/dev/null`; do | ||
1617 | case $ac_file in | ||
1618 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | ||
1619 | a.out ) # We found the default executable, but exeext='' is most | ||
1620 | # certainly right. | ||
1621 | break;; | ||
1622 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1623 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1624 | export ac_cv_exeext | ||
1625 | break;; | ||
1626 | * ) break;; | ||
1627 | esac | ||
1628 | done | ||
1629 | else | ||
1630 | echo "$as_me: failed program was:" >&5 | ||
1631 | cat conftest.$ac_ext >&5 | ||
1632 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | ||
1633 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1634 | { (exit 77); exit 77; }; } | ||
1635 | fi | ||
1636 | |||
1637 | ac_exeext=$ac_cv_exeext | ||
1638 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1639 | echo "${ECHO_T}$ac_file" >&6 | ||
1640 | |||
1641 | # Check the compiler produces executables we can run. If not, either | ||
1642 | # the compiler is broken, or we cross compile. | ||
1643 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1644 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1645 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1646 | # If not cross compiling, check that we can run a simple program. | ||
1647 | if test "$cross_compiling" != yes; then | ||
1648 | if { ac_try='./$ac_file' | ||
1649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1650 | (eval $ac_try) 2>&5 | ||
1651 | ac_status=$? | ||
1652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1653 | (exit $ac_status); }; }; then | ||
1654 | cross_compiling=no | ||
1655 | else | ||
1656 | if test "$cross_compiling" = maybe; then | ||
1657 | cross_compiling=yes | ||
1658 | else | ||
1659 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1660 | If you meant to cross compile, use \`--host'." >&5 | ||
1661 | echo "$as_me: error: cannot run C compiled programs. | ||
1662 | If you meant to cross compile, use \`--host'." >&2;} | ||
1663 | { (exit 1); exit 1; }; } | ||
1664 | fi | ||
1665 | fi | ||
1666 | fi | ||
1667 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1668 | echo "${ECHO_T}yes" >&6 | ||
1669 | |||
1670 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1671 | ac_clean_files=$ac_clean_files_save | ||
1672 | # Check the compiler produces executables we can run. If not, either | ||
1673 | # the compiler is broken, or we cross compile. | ||
1674 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1675 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1676 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1677 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1678 | |||
1679 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1680 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1682 | (eval $ac_link) 2>&5 | ||
1683 | ac_status=$? | ||
1684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1685 | (exit $ac_status); }; then | ||
1686 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1687 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1688 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1689 | # `rm'. | ||
1690 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1691 | case $ac_file in | ||
1692 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1693 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1694 | export ac_cv_exeext | ||
1695 | break;; | ||
1696 | * ) break;; | ||
1697 | esac | ||
1698 | done | ||
1699 | else | ||
1700 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | ||
1701 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | ||
1702 | { (exit 1); exit 1; }; } | ||
1703 | fi | ||
1704 | |||
1705 | rm -f conftest$ac_cv_exeext | ||
1706 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1707 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1708 | |||
1709 | rm -f conftest.$ac_ext | ||
1710 | EXEEXT=$ac_cv_exeext | ||
1711 | ac_exeext=$EXEEXT | ||
1712 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1713 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1714 | if test "${ac_cv_objext+set}" = set; then | ||
1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1716 | else | ||
1717 | cat >conftest.$ac_ext <<_ACEOF | ||
1718 | #line $LINENO "configure" | ||
1719 | #include "confdefs.h" | ||
1720 | |||
1721 | #ifdef F77_DUMMY_MAIN | ||
1722 | # ifdef __cplusplus | ||
1723 | extern "C" | ||
1724 | # endif | ||
1725 | int F77_DUMMY_MAIN() { return 1; } | ||
1726 | #endif | ||
1727 | int | ||
1728 | main () | ||
1729 | { | ||
1730 | |||
1731 | ; | ||
1732 | return 0; | ||
1733 | } | ||
1734 | _ACEOF | ||
1735 | rm -f conftest.o conftest.obj | ||
1736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1737 | (eval $ac_compile) 2>&5 | ||
1738 | ac_status=$? | ||
1739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1740 | (exit $ac_status); }; then | ||
1741 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1742 | case $ac_file in | ||
1743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1744 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1745 | break;; | ||
1746 | esac | ||
1747 | done | ||
1748 | else | ||
1749 | echo "$as_me: failed program was:" >&5 | ||
1750 | cat conftest.$ac_ext >&5 | ||
1751 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | ||
1752 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | ||
1753 | { (exit 1); exit 1; }; } | ||
1754 | fi | ||
1755 | |||
1756 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1757 | fi | ||
1758 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1759 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1760 | OBJEXT=$ac_cv_objext | ||
1761 | ac_objext=$OBJEXT | ||
1762 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1763 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1764 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1766 | else | ||
1767 | cat >conftest.$ac_ext <<_ACEOF | ||
1768 | #line $LINENO "configure" | ||
1769 | #include "confdefs.h" | ||
1770 | |||
1771 | #ifdef F77_DUMMY_MAIN | ||
1772 | # ifdef __cplusplus | ||
1773 | extern "C" | ||
1774 | # endif | ||
1775 | int F77_DUMMY_MAIN() { return 1; } | ||
1776 | #endif | ||
1777 | int | ||
1778 | main () | ||
1779 | { | ||
1780 | #ifndef __GNUC__ | ||
1781 | choke me | ||
1782 | #endif | ||
1783 | |||
1784 | ; | ||
1785 | return 0; | ||
1786 | } | ||
1787 | _ACEOF | ||
1788 | rm -f conftest.$ac_objext | ||
1789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1790 | (eval $ac_compile) 2>&5 | ||
1791 | ac_status=$? | ||
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1793 | (exit $ac_status); } && | ||
1794 | { ac_try='test -s conftest.$ac_objext' | ||
1795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1796 | (eval $ac_try) 2>&5 | ||
1797 | ac_status=$? | ||
1798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1799 | (exit $ac_status); }; }; then | ||
1800 | ac_compiler_gnu=yes | ||
1801 | else | ||
1802 | echo "$as_me: failed program was:" >&5 | ||
1803 | cat conftest.$ac_ext >&5 | ||
1804 | ac_compiler_gnu=no | ||
1805 | fi | ||
1806 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1807 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1808 | |||
1809 | fi | ||
1810 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1811 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1812 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1813 | ac_test_CFLAGS=${CFLAGS+set} | ||
1814 | ac_save_CFLAGS=$CFLAGS | ||
1815 | CFLAGS="-g" | ||
1816 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1817 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1818 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1820 | else | ||
1821 | cat >conftest.$ac_ext <<_ACEOF | ||
1822 | #line $LINENO "configure" | ||
1823 | #include "confdefs.h" | ||
1824 | |||
1825 | #ifdef F77_DUMMY_MAIN | ||
1826 | # ifdef __cplusplus | ||
1827 | extern "C" | ||
1828 | # endif | ||
1829 | int F77_DUMMY_MAIN() { return 1; } | ||
1830 | #endif | ||
1831 | int | ||
1832 | main () | ||
1833 | { | ||
1834 | |||
1835 | ; | ||
1836 | return 0; | ||
1837 | } | ||
1838 | _ACEOF | ||
1839 | rm -f conftest.$ac_objext | ||
1840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1841 | (eval $ac_compile) 2>&5 | ||
1842 | ac_status=$? | ||
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1844 | (exit $ac_status); } && | ||
1845 | { ac_try='test -s conftest.$ac_objext' | ||
1846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1847 | (eval $ac_try) 2>&5 | ||
1848 | ac_status=$? | ||
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1850 | (exit $ac_status); }; }; then | ||
1851 | ac_cv_prog_cc_g=yes | ||
1852 | else | ||
1853 | echo "$as_me: failed program was:" >&5 | ||
1854 | cat conftest.$ac_ext >&5 | ||
1855 | ac_cv_prog_cc_g=no | ||
1856 | fi | ||
1857 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1858 | fi | ||
1859 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
1860 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1861 | if test "$ac_test_CFLAGS" = set; then | ||
1862 | CFLAGS=$ac_save_CFLAGS | ||
1863 | elif test $ac_cv_prog_cc_g = yes; then | ||
1864 | if test "$GCC" = yes; then | ||
1865 | CFLAGS="-g -O2" | ||
1866 | else | ||
1867 | CFLAGS="-g" | ||
1868 | fi | ||
1869 | else | ||
1870 | if test "$GCC" = yes; then | ||
1871 | CFLAGS="-O2" | ||
1872 | else | ||
1873 | CFLAGS= | ||
1874 | fi | ||
1875 | fi | ||
1876 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1877 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1878 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1879 | # the declaration of exit, since it's the most demanding environment. | ||
1880 | cat >conftest.$ac_ext <<_ACEOF | ||
1881 | @%:@ifndef __cplusplus | ||
1882 | choke me | ||
1883 | @%:@endif | ||
1884 | _ACEOF | ||
1885 | rm -f conftest.$ac_objext | ||
1886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1887 | (eval $ac_compile) 2>&5 | ||
1888 | ac_status=$? | ||
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1890 | (exit $ac_status); } && | ||
1891 | { ac_try='test -s conftest.$ac_objext' | ||
1892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1893 | (eval $ac_try) 2>&5 | ||
1894 | ac_status=$? | ||
1895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1896 | (exit $ac_status); }; }; then | ||
1897 | for ac_declaration in \ | ||
1898 | ''\ | ||
1899 | '#include <stdlib.h>' \ | ||
1900 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1901 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1902 | 'extern "C" void exit (int) throw ();' \ | ||
1903 | 'extern "C" void exit (int);' \ | ||
1904 | 'void exit (int);' | ||
1905 | do | ||
1906 | cat >conftest.$ac_ext <<_ACEOF | ||
1907 | #line $LINENO "configure" | ||
1908 | #include "confdefs.h" | ||
1909 | @%:@include <stdlib.h> | ||
1910 | $ac_declaration | ||
1911 | #ifdef F77_DUMMY_MAIN | ||
1912 | # ifdef __cplusplus | ||
1913 | extern "C" | ||
1914 | # endif | ||
1915 | int F77_DUMMY_MAIN() { return 1; } | ||
1916 | #endif | ||
1917 | int | ||
1918 | main () | ||
1919 | { | ||
1920 | exit (42); | ||
1921 | ; | ||
1922 | return 0; | ||
1923 | } | ||
1924 | _ACEOF | ||
1925 | rm -f conftest.$ac_objext | ||
1926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1927 | (eval $ac_compile) 2>&5 | ||
1928 | ac_status=$? | ||
1929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1930 | (exit $ac_status); } && | ||
1931 | { ac_try='test -s conftest.$ac_objext' | ||
1932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1933 | (eval $ac_try) 2>&5 | ||
1934 | ac_status=$? | ||
1935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1936 | (exit $ac_status); }; }; then | ||
1937 | : | ||
1938 | else | ||
1939 | echo "$as_me: failed program was:" >&5 | ||
1940 | cat conftest.$ac_ext >&5 | ||
1941 | continue | ||
1942 | fi | ||
1943 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1944 | cat >conftest.$ac_ext <<_ACEOF | ||
1945 | #line $LINENO "configure" | ||
1946 | #include "confdefs.h" | ||
1947 | $ac_declaration | ||
1948 | #ifdef F77_DUMMY_MAIN | ||
1949 | # ifdef __cplusplus | ||
1950 | extern "C" | ||
1951 | # endif | ||
1952 | int F77_DUMMY_MAIN() { return 1; } | ||
1953 | #endif | ||
1954 | int | ||
1955 | main () | ||
1956 | { | ||
1957 | exit (42); | ||
1958 | ; | ||
1959 | return 0; | ||
1960 | } | ||
1961 | _ACEOF | ||
1962 | rm -f conftest.$ac_objext | ||
1963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1964 | (eval $ac_compile) 2>&5 | ||
1965 | ac_status=$? | ||
1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1967 | (exit $ac_status); } && | ||
1968 | { ac_try='test -s conftest.$ac_objext' | ||
1969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1970 | (eval $ac_try) 2>&5 | ||
1971 | ac_status=$? | ||
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1973 | (exit $ac_status); }; }; then | ||
1974 | break | ||
1975 | else | ||
1976 | echo "$as_me: failed program was:" >&5 | ||
1977 | cat conftest.$ac_ext >&5 | ||
1978 | fi | ||
1979 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1980 | done | ||
1981 | rm -f conftest* | ||
1982 | if test -n "$ac_declaration"; then | ||
1983 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1984 | echo $ac_declaration >>confdefs.h | ||
1985 | echo '#endif' >>confdefs.h | ||
1986 | fi | ||
1987 | |||
1988 | else | ||
1989 | echo "$as_me: failed program was:" >&5 | ||
1990 | cat conftest.$ac_ext >&5 | ||
1991 | fi | ||
1992 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1993 | ac_ext=c | ||
1994 | ac_cpp='$CPP $CPPFLAGS' | ||
1995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1998 | |||
1999 | ac_aux_dir= | ||
2000 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2001 | if test -f $ac_dir/install-sh; then | ||
2002 | ac_aux_dir=$ac_dir | ||
2003 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2004 | break | ||
2005 | elif test -f $ac_dir/install.sh; then | ||
2006 | ac_aux_dir=$ac_dir | ||
2007 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2008 | break | ||
2009 | elif test -f $ac_dir/shtool; then | ||
2010 | ac_aux_dir=$ac_dir | ||
2011 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2012 | break | ||
2013 | fi | ||
2014 | done | ||
2015 | if test -z "$ac_aux_dir"; then | ||
2016 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2017 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2018 | { (exit 1); exit 1; }; } | ||
2019 | fi | ||
2020 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2021 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2022 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2023 | |||
2024 | # Make sure we can run config.sub. | ||
2025 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2026 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2027 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2028 | { (exit 1); exit 1; }; } | ||
2029 | |||
2030 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2031 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2032 | if test "${ac_cv_build+set}" = set; then | ||
2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2034 | else | ||
2035 | ac_cv_build_alias=$build_alias | ||
2036 | test -z "$ac_cv_build_alias" && | ||
2037 | ac_cv_build_alias=`$ac_config_guess` | ||
2038 | test -z "$ac_cv_build_alias" && | ||
2039 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2040 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2041 | { (exit 1); exit 1; }; } | ||
2042 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2043 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2044 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2045 | { (exit 1); exit 1; }; } | ||
2046 | |||
2047 | fi | ||
2048 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2049 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2050 | build=$ac_cv_build | ||
2051 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2052 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2053 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2054 | |||
2055 | |||
2056 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2057 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2058 | if test "${ac_cv_host+set}" = set; then | ||
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2060 | else | ||
2061 | ac_cv_host_alias=$host_alias | ||
2062 | test -z "$ac_cv_host_alias" && | ||
2063 | ac_cv_host_alias=$ac_cv_build_alias | ||
2064 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2065 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2066 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2067 | { (exit 1); exit 1; }; } | ||
2068 | |||
2069 | fi | ||
2070 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2071 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2072 | host=$ac_cv_host | ||
2073 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2074 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2075 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2076 | |||
2077 | |||
2078 | |||
2079 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2080 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2081 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2083 | else | ||
2084 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2085 | cat >conftest.$ac_ext <<_ACEOF | ||
2086 | #line $LINENO "configure" | ||
2087 | #include "confdefs.h" | ||
2088 | #include <sys/types.h> | ||
2089 | #include <sys/param.h> | ||
2090 | |||
2091 | #ifdef F77_DUMMY_MAIN | ||
2092 | # ifdef __cplusplus | ||
2093 | extern "C" | ||
2094 | # endif | ||
2095 | int F77_DUMMY_MAIN() { return 1; } | ||
2096 | #endif | ||
2097 | int | ||
2098 | main () | ||
2099 | { | ||
2100 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2101 | bogus endian macros | ||
2102 | #endif | ||
2103 | |||
2104 | ; | ||
2105 | return 0; | ||
2106 | } | ||
2107 | _ACEOF | ||
2108 | rm -f conftest.$ac_objext | ||
2109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2110 | (eval $ac_compile) 2>&5 | ||
2111 | ac_status=$? | ||
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2113 | (exit $ac_status); } && | ||
2114 | { ac_try='test -s conftest.$ac_objext' | ||
2115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2116 | (eval $ac_try) 2>&5 | ||
2117 | ac_status=$? | ||
2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2119 | (exit $ac_status); }; }; then | ||
2120 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2121 | cat >conftest.$ac_ext <<_ACEOF | ||
2122 | #line $LINENO "configure" | ||
2123 | #include "confdefs.h" | ||
2124 | #include <sys/types.h> | ||
2125 | #include <sys/param.h> | ||
2126 | |||
2127 | #ifdef F77_DUMMY_MAIN | ||
2128 | # ifdef __cplusplus | ||
2129 | extern "C" | ||
2130 | # endif | ||
2131 | int F77_DUMMY_MAIN() { return 1; } | ||
2132 | #endif | ||
2133 | int | ||
2134 | main () | ||
2135 | { | ||
2136 | #if BYTE_ORDER != BIG_ENDIAN | ||
2137 | not big endian | ||
2138 | #endif | ||
2139 | |||
2140 | ; | ||
2141 | return 0; | ||
2142 | } | ||
2143 | _ACEOF | ||
2144 | rm -f conftest.$ac_objext | ||
2145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2146 | (eval $ac_compile) 2>&5 | ||
2147 | ac_status=$? | ||
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2149 | (exit $ac_status); } && | ||
2150 | { ac_try='test -s conftest.$ac_objext' | ||
2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2152 | (eval $ac_try) 2>&5 | ||
2153 | ac_status=$? | ||
2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2155 | (exit $ac_status); }; }; then | ||
2156 | ac_cv_c_bigendian=yes | ||
2157 | else | ||
2158 | echo "$as_me: failed program was:" >&5 | ||
2159 | cat conftest.$ac_ext >&5 | ||
2160 | ac_cv_c_bigendian=no | ||
2161 | fi | ||
2162 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2163 | else | ||
2164 | echo "$as_me: failed program was:" >&5 | ||
2165 | cat conftest.$ac_ext >&5 | ||
2166 | # It does not; compile a test program. | ||
2167 | if test "$cross_compiling" = yes; then | ||
2168 | # try to guess the endianess by grep'ing values into an object file | ||
2169 | ac_cv_c_bigendian=unknown | ||
2170 | cat >conftest.$ac_ext <<_ACEOF | ||
2171 | #line $LINENO "configure" | ||
2172 | #include "confdefs.h" | ||
2173 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2174 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2175 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2176 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2177 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2178 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2179 | #ifdef F77_DUMMY_MAIN | ||
2180 | # ifdef __cplusplus | ||
2181 | extern "C" | ||
2182 | # endif | ||
2183 | int F77_DUMMY_MAIN() { return 1; } | ||
2184 | #endif | ||
2185 | int | ||
2186 | main () | ||
2187 | { | ||
2188 | _ascii (); _ebcdic (); | ||
2189 | ; | ||
2190 | return 0; | ||
2191 | } | ||
2192 | _ACEOF | ||
2193 | rm -f conftest.$ac_objext | ||
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2195 | (eval $ac_compile) 2>&5 | ||
2196 | ac_status=$? | ||
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2198 | (exit $ac_status); } && | ||
2199 | { ac_try='test -s conftest.$ac_objext' | ||
2200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2201 | (eval $ac_try) 2>&5 | ||
2202 | ac_status=$? | ||
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2204 | (exit $ac_status); }; }; then | ||
2205 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2206 | ac_cv_c_bigendian=yes | ||
2207 | fi | ||
2208 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2209 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2210 | ac_cv_c_bigendian=no | ||
2211 | else | ||
2212 | # finding both strings is unlikely to happen, but who knows? | ||
2213 | ac_cv_c_bigendian=unknown | ||
2214 | fi | ||
2215 | fi | ||
2216 | else | ||
2217 | echo "$as_me: failed program was:" >&5 | ||
2218 | cat conftest.$ac_ext >&5 | ||
2219 | fi | ||
2220 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2221 | else | ||
2222 | cat >conftest.$ac_ext <<_ACEOF | ||
2223 | #line $LINENO "configure" | ||
2224 | #include "confdefs.h" | ||
2225 | int | ||
2226 | main () | ||
2227 | { | ||
2228 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2229 | union | ||
2230 | { | ||
2231 | long l; | ||
2232 | char c[sizeof (long)]; | ||
2233 | } u; | ||
2234 | u.l = 1; | ||
2235 | exit (u.c[sizeof (long) - 1] == 1); | ||
2236 | } | ||
2237 | _ACEOF | ||
2238 | rm -f conftest$ac_exeext | ||
2239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2240 | (eval $ac_link) 2>&5 | ||
2241 | ac_status=$? | ||
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2245 | (eval $ac_try) 2>&5 | ||
2246 | ac_status=$? | ||
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2248 | (exit $ac_status); }; }; then | ||
2249 | ac_cv_c_bigendian=no | ||
2250 | else | ||
2251 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2252 | echo "$as_me: failed program was:" >&5 | ||
2253 | cat conftest.$ac_ext >&5 | ||
2254 | ( exit $ac_status ) | ||
2255 | ac_cv_c_bigendian=yes | ||
2256 | fi | ||
2257 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2258 | fi | ||
2259 | fi | ||
2260 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2261 | fi | ||
2262 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2263 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2264 | case $ac_cv_c_bigendian in | ||
2265 | yes) | ||
2266 | |||
2267 | cat >>confdefs.h <<\_ACEOF | ||
2268 | @%:@define WORDS_BIGENDIAN 1 | ||
2269 | _ACEOF | ||
2270 | ;; | ||
2271 | no) | ||
2272 | ;; | ||
2273 | *) | ||
2274 | { { echo "$as_me:$LINENO: error: unknown endianess | ||
2275 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2276 | echo "$as_me: error: unknown endianess | ||
2277 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2278 | { (exit 1); exit 1; }; } ;; | ||
2279 | esac | ||
2280 | |||
2281 | |||
2282 | # Checks for programs. | ||
2283 | ac_ext=c | ||
2284 | ac_cpp='$CPP $CPPFLAGS' | ||
2285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2288 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2289 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2290 | # On Suns, sometimes $CPP names a directory. | ||
2291 | if test -n "$CPP" && test -d "$CPP"; then | ||
2292 | CPP= | ||
2293 | fi | ||
2294 | if test -z "$CPP"; then | ||
2295 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2297 | else | ||
2298 | # Double quotes because CPP needs to be expanded | ||
2299 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2300 | do | ||
2301 | ac_preproc_ok=false | ||
2302 | for ac_c_preproc_warn_flag in '' yes | ||
2303 | do | ||
2304 | # Use a header file that comes with gcc, so configuring glibc | ||
2305 | # with a fresh cross-compiler works. | ||
2306 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2307 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2308 | cat >conftest.$ac_ext <<_ACEOF | ||
2309 | #line $LINENO "configure" | ||
2310 | #include "confdefs.h" | ||
2311 | @%:@include <assert.h> | ||
2312 | Syntax error | ||
2313 | _ACEOF | ||
2314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2316 | ac_status=$? | ||
2317 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2318 | rm -f conftest.er1 | ||
2319 | cat conftest.err >&5 | ||
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2321 | (exit $ac_status); } >/dev/null; then | ||
2322 | if test -s conftest.err; then | ||
2323 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2324 | else | ||
2325 | ac_cpp_err= | ||
2326 | fi | ||
2327 | else | ||
2328 | ac_cpp_err=yes | ||
2329 | fi | ||
2330 | if test -z "$ac_cpp_err"; then | ||
2331 | : | ||
2332 | else | ||
2333 | echo "$as_me: failed program was:" >&5 | ||
2334 | cat conftest.$ac_ext >&5 | ||
2335 | # Broken: fails on valid input. | ||
2336 | continue | ||
2337 | fi | ||
2338 | rm -f conftest.err conftest.$ac_ext | ||
2339 | |||
2340 | # OK, works on sane cases. Now check whether non-existent headers | ||
2341 | # can be detected and how. | ||
2342 | cat >conftest.$ac_ext <<_ACEOF | ||
2343 | #line $LINENO "configure" | ||
2344 | #include "confdefs.h" | ||
2345 | @%:@include <ac_nonexistent.h> | ||
2346 | _ACEOF | ||
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2349 | ac_status=$? | ||
2350 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2351 | rm -f conftest.er1 | ||
2352 | cat conftest.err >&5 | ||
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2354 | (exit $ac_status); } >/dev/null; then | ||
2355 | if test -s conftest.err; then | ||
2356 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2357 | else | ||
2358 | ac_cpp_err= | ||
2359 | fi | ||
2360 | else | ||
2361 | ac_cpp_err=yes | ||
2362 | fi | ||
2363 | if test -z "$ac_cpp_err"; then | ||
2364 | # Broken: success on invalid input. | ||
2365 | continue | ||
2366 | else | ||
2367 | echo "$as_me: failed program was:" >&5 | ||
2368 | cat conftest.$ac_ext >&5 | ||
2369 | # Passes both tests. | ||
2370 | ac_preproc_ok=: | ||
2371 | break | ||
2372 | fi | ||
2373 | rm -f conftest.err conftest.$ac_ext | ||
2374 | |||
2375 | done | ||
2376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2377 | rm -f conftest.err conftest.$ac_ext | ||
2378 | if $ac_preproc_ok; then | ||
2379 | break | ||
2380 | fi | ||
2381 | |||
2382 | done | ||
2383 | ac_cv_prog_CPP=$CPP | ||
2384 | |||
2385 | fi | ||
2386 | CPP=$ac_cv_prog_CPP | ||
2387 | else | ||
2388 | ac_cv_prog_CPP=$CPP | ||
2389 | fi | ||
2390 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2391 | echo "${ECHO_T}$CPP" >&6 | ||
2392 | ac_preproc_ok=false | ||
2393 | for ac_c_preproc_warn_flag in '' yes | ||
2394 | do | ||
2395 | # Use a header file that comes with gcc, so configuring glibc | ||
2396 | # with a fresh cross-compiler works. | ||
2397 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2398 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2399 | cat >conftest.$ac_ext <<_ACEOF | ||
2400 | #line $LINENO "configure" | ||
2401 | #include "confdefs.h" | ||
2402 | @%:@include <assert.h> | ||
2403 | Syntax error | ||
2404 | _ACEOF | ||
2405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2407 | ac_status=$? | ||
2408 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2409 | rm -f conftest.er1 | ||
2410 | cat conftest.err >&5 | ||
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2412 | (exit $ac_status); } >/dev/null; then | ||
2413 | if test -s conftest.err; then | ||
2414 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2415 | else | ||
2416 | ac_cpp_err= | ||
2417 | fi | ||
2418 | else | ||
2419 | ac_cpp_err=yes | ||
2420 | fi | ||
2421 | if test -z "$ac_cpp_err"; then | ||
2422 | : | ||
2423 | else | ||
2424 | echo "$as_me: failed program was:" >&5 | ||
2425 | cat conftest.$ac_ext >&5 | ||
2426 | # Broken: fails on valid input. | ||
2427 | continue | ||
2428 | fi | ||
2429 | rm -f conftest.err conftest.$ac_ext | ||
2430 | |||
2431 | # OK, works on sane cases. Now check whether non-existent headers | ||
2432 | # can be detected and how. | ||
2433 | cat >conftest.$ac_ext <<_ACEOF | ||
2434 | #line $LINENO "configure" | ||
2435 | #include "confdefs.h" | ||
2436 | @%:@include <ac_nonexistent.h> | ||
2437 | _ACEOF | ||
2438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2440 | ac_status=$? | ||
2441 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2442 | rm -f conftest.er1 | ||
2443 | cat conftest.err >&5 | ||
2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2445 | (exit $ac_status); } >/dev/null; then | ||
2446 | if test -s conftest.err; then | ||
2447 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2448 | else | ||
2449 | ac_cpp_err= | ||
2450 | fi | ||
2451 | else | ||
2452 | ac_cpp_err=yes | ||
2453 | fi | ||
2454 | if test -z "$ac_cpp_err"; then | ||
2455 | # Broken: success on invalid input. | ||
2456 | continue | ||
2457 | else | ||
2458 | echo "$as_me: failed program was:" >&5 | ||
2459 | cat conftest.$ac_ext >&5 | ||
2460 | # Passes both tests. | ||
2461 | ac_preproc_ok=: | ||
2462 | break | ||
2463 | fi | ||
2464 | rm -f conftest.err conftest.$ac_ext | ||
2465 | |||
2466 | done | ||
2467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2468 | rm -f conftest.err conftest.$ac_ext | ||
2469 | if $ac_preproc_ok; then | ||
2470 | : | ||
2471 | else | ||
2472 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2473 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2474 | { (exit 1); exit 1; }; } | ||
2475 | fi | ||
2476 | |||
2477 | ac_ext=c | ||
2478 | ac_cpp='$CPP $CPPFLAGS' | ||
2479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2482 | |||
2483 | if test -n "$ac_tool_prefix"; then | ||
2484 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2485 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2488 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2490 | else | ||
2491 | if test -n "$RANLIB"; then | ||
2492 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2493 | else | ||
2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2495 | for as_dir in $PATH | ||
2496 | do | ||
2497 | IFS=$as_save_IFS | ||
2498 | test -z "$as_dir" && as_dir=. | ||
2499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2501 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2503 | break 2 | ||
2504 | fi | ||
2505 | done | ||
2506 | done | ||
2507 | |||
2508 | fi | ||
2509 | fi | ||
2510 | RANLIB=$ac_cv_prog_RANLIB | ||
2511 | if test -n "$RANLIB"; then | ||
2512 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2513 | echo "${ECHO_T}$RANLIB" >&6 | ||
2514 | else | ||
2515 | echo "$as_me:$LINENO: result: no" >&5 | ||
2516 | echo "${ECHO_T}no" >&6 | ||
2517 | fi | ||
2518 | |||
2519 | fi | ||
2520 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2521 | ac_ct_RANLIB=$RANLIB | ||
2522 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2523 | set dummy ranlib; ac_word=$2 | ||
2524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2526 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2528 | else | ||
2529 | if test -n "$ac_ct_RANLIB"; then | ||
2530 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2531 | else | ||
2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2533 | for as_dir in $PATH | ||
2534 | do | ||
2535 | IFS=$as_save_IFS | ||
2536 | test -z "$as_dir" && as_dir=. | ||
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2539 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2541 | break 2 | ||
2542 | fi | ||
2543 | done | ||
2544 | done | ||
2545 | |||
2546 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2547 | fi | ||
2548 | fi | ||
2549 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2550 | if test -n "$ac_ct_RANLIB"; then | ||
2551 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2552 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2553 | else | ||
2554 | echo "$as_me:$LINENO: result: no" >&5 | ||
2555 | echo "${ECHO_T}no" >&6 | ||
2556 | fi | ||
2557 | |||
2558 | RANLIB=$ac_ct_RANLIB | ||
2559 | else | ||
2560 | RANLIB="$ac_cv_prog_RANLIB" | ||
2561 | fi | ||
2562 | |||
2563 | # Find a good install program. We prefer a C program (faster), | ||
2564 | # so one script is as good as another. But avoid the broken or | ||
2565 | # incompatible versions: | ||
2566 | # SysV /etc/install, /usr/sbin/install | ||
2567 | # SunOS /usr/etc/install | ||
2568 | # IRIX /sbin/install | ||
2569 | # AIX /bin/install | ||
2570 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2574 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2575 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2576 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2577 | if test -z "$INSTALL"; then | ||
2578 | if test "${ac_cv_path_install+set}" = set; then | ||
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2580 | else | ||
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2582 | for as_dir in $PATH | ||
2583 | do | ||
2584 | IFS=$as_save_IFS | ||
2585 | test -z "$as_dir" && as_dir=. | ||
2586 | # Account for people who put trailing slashes in PATH elements. | ||
2587 | case $as_dir/ in | ||
2588 | ./ | .// | /cC/* | \ | ||
2589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2590 | /usr/ucb/* ) ;; | ||
2591 | *) | ||
2592 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2593 | # Don't use installbsd from OSF since it installs stuff as root | ||
2594 | # by default. | ||
2595 | for ac_prog in ginstall scoinst install; do | ||
2596 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2597 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2598 | if test $ac_prog = install && | ||
2599 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2600 | # AIX install. It has an incompatible calling convention. | ||
2601 | : | ||
2602 | elif test $ac_prog = install && | ||
2603 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2604 | # program-specific install script used by HP pwplus--don't use. | ||
2605 | : | ||
2606 | else | ||
2607 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2608 | break 3 | ||
2609 | fi | ||
2610 | fi | ||
2611 | done | ||
2612 | done | ||
2613 | ;; | ||
2614 | esac | ||
2615 | done | ||
2616 | |||
2617 | |||
2618 | fi | ||
2619 | if test "${ac_cv_path_install+set}" = set; then | ||
2620 | INSTALL=$ac_cv_path_install | ||
2621 | else | ||
2622 | # As a last resort, use the slow shell script. We don't cache a | ||
2623 | # path for INSTALL within a source directory, because that will | ||
2624 | # break other packages using the cache if that directory is | ||
2625 | # removed, or if the path is relative. | ||
2626 | INSTALL=$ac_install_sh | ||
2627 | fi | ||
2628 | fi | ||
2629 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2630 | echo "${ECHO_T}$INSTALL" >&6 | ||
2631 | |||
2632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2633 | # It thinks the first close brace ends the variable substitution. | ||
2634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2635 | |||
2636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2637 | |||
2638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2639 | |||
2640 | # Extract the first word of "ar", so it can be a program name with args. | ||
2641 | set dummy ar; ac_word=$2 | ||
2642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2644 | if test "${ac_cv_path_AR+set}" = set; then | ||
2645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2646 | else | ||
2647 | case $AR in | ||
2648 | [\\/]* | ?:[\\/]*) | ||
2649 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2650 | ;; | ||
2651 | *) | ||
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2653 | for as_dir in $PATH | ||
2654 | do | ||
2655 | IFS=$as_save_IFS | ||
2656 | test -z "$as_dir" && as_dir=. | ||
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2659 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
2660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2661 | break 2 | ||
2662 | fi | ||
2663 | done | ||
2664 | done | ||
2665 | |||
2666 | ;; | ||
2667 | esac | ||
2668 | fi | ||
2669 | AR=$ac_cv_path_AR | ||
2670 | |||
2671 | if test -n "$AR"; then | ||
2672 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
2673 | echo "${ECHO_T}$AR" >&6 | ||
2674 | else | ||
2675 | echo "$as_me:$LINENO: result: no" >&5 | ||
2676 | echo "${ECHO_T}no" >&6 | ||
2677 | fi | ||
2678 | |||
2679 | for ac_prog in perl5 perl | ||
2680 | do | ||
2681 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2682 | set dummy $ac_prog; ac_word=$2 | ||
2683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2685 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2687 | else | ||
2688 | case $PERL in | ||
2689 | [\\/]* | ?:[\\/]*) | ||
2690 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2691 | ;; | ||
2692 | *) | ||
2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2694 | for as_dir in $PATH | ||
2695 | do | ||
2696 | IFS=$as_save_IFS | ||
2697 | test -z "$as_dir" && as_dir=. | ||
2698 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2700 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
2701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2702 | break 2 | ||
2703 | fi | ||
2704 | done | ||
2705 | done | ||
2706 | |||
2707 | ;; | ||
2708 | esac | ||
2709 | fi | ||
2710 | PERL=$ac_cv_path_PERL | ||
2711 | |||
2712 | if test -n "$PERL"; then | ||
2713 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
2714 | echo "${ECHO_T}$PERL" >&6 | ||
2715 | else | ||
2716 | echo "$as_me:$LINENO: result: no" >&5 | ||
2717 | echo "${ECHO_T}no" >&6 | ||
2718 | fi | ||
2719 | |||
2720 | test -n "$PERL" && break | ||
2721 | done | ||
2722 | |||
2723 | # Extract the first word of "sed", so it can be a program name with args. | ||
2724 | set dummy sed; ac_word=$2 | ||
2725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2727 | if test "${ac_cv_path_SED+set}" = set; then | ||
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2729 | else | ||
2730 | case $SED in | ||
2731 | [\\/]* | ?:[\\/]*) | ||
2732 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2733 | ;; | ||
2734 | *) | ||
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2736 | for as_dir in $PATH | ||
2737 | do | ||
2738 | IFS=$as_save_IFS | ||
2739 | test -z "$as_dir" && as_dir=. | ||
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2742 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2744 | break 2 | ||
2745 | fi | ||
2746 | done | ||
2747 | done | ||
2748 | |||
2749 | ;; | ||
2750 | esac | ||
2751 | fi | ||
2752 | SED=$ac_cv_path_SED | ||
2753 | |||
2754 | if test -n "$SED"; then | ||
2755 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
2756 | echo "${ECHO_T}$SED" >&6 | ||
2757 | else | ||
2758 | echo "$as_me:$LINENO: result: no" >&5 | ||
2759 | echo "${ECHO_T}no" >&6 | ||
2760 | fi | ||
2761 | |||
2762 | |||
2763 | # Extract the first word of "ent", so it can be a program name with args. | ||
2764 | set dummy ent; ac_word=$2 | ||
2765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2767 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2769 | else | ||
2770 | case $ENT in | ||
2771 | [\\/]* | ?:[\\/]*) | ||
2772 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2773 | ;; | ||
2774 | *) | ||
2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2776 | for as_dir in $PATH | ||
2777 | do | ||
2778 | IFS=$as_save_IFS | ||
2779 | test -z "$as_dir" && as_dir=. | ||
2780 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2782 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
2783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2784 | break 2 | ||
2785 | fi | ||
2786 | done | ||
2787 | done | ||
2788 | |||
2789 | ;; | ||
2790 | esac | ||
2791 | fi | ||
2792 | ENT=$ac_cv_path_ENT | ||
2793 | |||
2794 | if test -n "$ENT"; then | ||
2795 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
2796 | echo "${ECHO_T}$ENT" >&6 | ||
2797 | else | ||
2798 | echo "$as_me:$LINENO: result: no" >&5 | ||
2799 | echo "${ECHO_T}no" >&6 | ||
2800 | fi | ||
2801 | |||
2802 | |||
2803 | # Extract the first word of "bash", so it can be a program name with args. | ||
2804 | set dummy bash; ac_word=$2 | ||
2805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2807 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2809 | else | ||
2810 | case $TEST_MINUS_S_SH in | ||
2811 | [\\/]* | ?:[\\/]*) | ||
2812 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2813 | ;; | ||
2814 | *) | ||
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2816 | for as_dir in $PATH | ||
2817 | do | ||
2818 | IFS=$as_save_IFS | ||
2819 | test -z "$as_dir" && as_dir=. | ||
2820 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2822 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2824 | break 2 | ||
2825 | fi | ||
2826 | done | ||
2827 | done | ||
2828 | |||
2829 | ;; | ||
2830 | esac | ||
2831 | fi | ||
2832 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2833 | |||
2834 | if test -n "$TEST_MINUS_S_SH"; then | ||
2835 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2836 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2837 | else | ||
2838 | echo "$as_me:$LINENO: result: no" >&5 | ||
2839 | echo "${ECHO_T}no" >&6 | ||
2840 | fi | ||
2841 | |||
2842 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2843 | set dummy ksh; ac_word=$2 | ||
2844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2846 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2848 | else | ||
2849 | case $TEST_MINUS_S_SH in | ||
2850 | [\\/]* | ?:[\\/]*) | ||
2851 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2852 | ;; | ||
2853 | *) | ||
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2855 | for as_dir in $PATH | ||
2856 | do | ||
2857 | IFS=$as_save_IFS | ||
2858 | test -z "$as_dir" && as_dir=. | ||
2859 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2861 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2863 | break 2 | ||
2864 | fi | ||
2865 | done | ||
2866 | done | ||
2867 | |||
2868 | ;; | ||
2869 | esac | ||
2870 | fi | ||
2871 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2872 | |||
2873 | if test -n "$TEST_MINUS_S_SH"; then | ||
2874 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2875 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2876 | else | ||
2877 | echo "$as_me:$LINENO: result: no" >&5 | ||
2878 | echo "${ECHO_T}no" >&6 | ||
2879 | fi | ||
2880 | |||
2881 | # Extract the first word of "sh", so it can be a program name with args. | ||
2882 | set dummy sh; ac_word=$2 | ||
2883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2885 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2887 | else | ||
2888 | case $TEST_MINUS_S_SH in | ||
2889 | [\\/]* | ?:[\\/]*) | ||
2890 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2891 | ;; | ||
2892 | *) | ||
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2894 | for as_dir in $PATH | ||
2895 | do | ||
2896 | IFS=$as_save_IFS | ||
2897 | test -z "$as_dir" && as_dir=. | ||
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2900 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2902 | break 2 | ||
2903 | fi | ||
2904 | done | ||
2905 | done | ||
2906 | |||
2907 | ;; | ||
2908 | esac | ||
2909 | fi | ||
2910 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2911 | |||
2912 | if test -n "$TEST_MINUS_S_SH"; then | ||
2913 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2914 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2915 | else | ||
2916 | echo "$as_me:$LINENO: result: no" >&5 | ||
2917 | echo "${ECHO_T}no" >&6 | ||
2918 | fi | ||
2919 | |||
2920 | # Extract the first word of "sh", so it can be a program name with args. | ||
2921 | set dummy sh; ac_word=$2 | ||
2922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2924 | if test "${ac_cv_path_SH+set}" = set; then | ||
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2926 | else | ||
2927 | case $SH in | ||
2928 | [\\/]* | ?:[\\/]*) | ||
2929 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2930 | ;; | ||
2931 | *) | ||
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2933 | for as_dir in $PATH | ||
2934 | do | ||
2935 | IFS=$as_save_IFS | ||
2936 | test -z "$as_dir" && as_dir=. | ||
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2939 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2941 | break 2 | ||
2942 | fi | ||
2943 | done | ||
2944 | done | ||
2945 | |||
2946 | ;; | ||
2947 | esac | ||
2948 | fi | ||
2949 | SH=$ac_cv_path_SH | ||
2950 | |||
2951 | if test -n "$SH"; then | ||
2952 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
2953 | echo "${ECHO_T}$SH" >&6 | ||
2954 | else | ||
2955 | echo "$as_me:$LINENO: result: no" >&5 | ||
2956 | echo "${ECHO_T}no" >&6 | ||
2957 | fi | ||
2958 | |||
2959 | |||
2960 | # System features | ||
2961 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2962 | if test "${enable_largefile+set}" = set; then | ||
2963 | enableval="$enable_largefile" | ||
2964 | |||
2965 | fi; | ||
2966 | if test "$enable_largefile" != no; then | ||
2967 | |||
2968 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
2969 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2970 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2972 | else | ||
2973 | ac_cv_sys_largefile_CC=no | ||
2974 | if test "$GCC" != yes; then | ||
2975 | ac_save_CC=$CC | ||
2976 | while :; do | ||
2977 | # IRIX 6.2 and later do not support large files by default, | ||
2978 | # so use the C compiler's -n32 option if that helps. | ||
2979 | cat >conftest.$ac_ext <<_ACEOF | ||
2980 | #line $LINENO "configure" | ||
2981 | #include "confdefs.h" | ||
2982 | @%:@include <sys/types.h> | ||
2983 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2984 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2985 | since some C++ compilers masquerading as C compilers | ||
2986 | incorrectly reject 9223372036854775807. */ | ||
2987 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2988 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2989 | && LARGE_OFF_T % 2147483647 == 1) | ||
2990 | ? 1 : -1]; | ||
2991 | #ifdef F77_DUMMY_MAIN | ||
2992 | # ifdef __cplusplus | ||
2993 | extern "C" | ||
2994 | # endif | ||
2995 | int F77_DUMMY_MAIN() { return 1; } | ||
2996 | #endif | ||
2997 | int | ||
2998 | main () | ||
2999 | { | ||
3000 | |||
3001 | ; | ||
3002 | return 0; | ||
3003 | } | ||
3004 | _ACEOF | ||
3005 | rm -f conftest.$ac_objext | ||
3006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3007 | (eval $ac_compile) 2>&5 | ||
3008 | ac_status=$? | ||
3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3010 | (exit $ac_status); } && | ||
3011 | { ac_try='test -s conftest.$ac_objext' | ||
3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3013 | (eval $ac_try) 2>&5 | ||
3014 | ac_status=$? | ||
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3016 | (exit $ac_status); }; }; then | ||
3017 | break | ||
3018 | else | ||
3019 | echo "$as_me: failed program was:" >&5 | ||
3020 | cat conftest.$ac_ext >&5 | ||
3021 | fi | ||
3022 | rm -f conftest.$ac_objext | ||
3023 | CC="$CC -n32" | ||
3024 | rm -f conftest.$ac_objext | ||
3025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3026 | (eval $ac_compile) 2>&5 | ||
3027 | ac_status=$? | ||
3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3029 | (exit $ac_status); } && | ||
3030 | { ac_try='test -s conftest.$ac_objext' | ||
3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3032 | (eval $ac_try) 2>&5 | ||
3033 | ac_status=$? | ||
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3035 | (exit $ac_status); }; }; then | ||
3036 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3037 | else | ||
3038 | echo "$as_me: failed program was:" >&5 | ||
3039 | cat conftest.$ac_ext >&5 | ||
3040 | fi | ||
3041 | rm -f conftest.$ac_objext | ||
3042 | break | ||
3043 | done | ||
3044 | CC=$ac_save_CC | ||
3045 | rm -f conftest.$ac_ext | ||
3046 | fi | ||
3047 | fi | ||
3048 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3049 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3050 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3051 | CC=$CC$ac_cv_sys_largefile_CC | ||
3052 | fi | ||
3053 | |||
3054 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3055 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3056 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3058 | else | ||
3059 | while :; do | ||
3060 | ac_cv_sys_file_offset_bits=no | ||
3061 | cat >conftest.$ac_ext <<_ACEOF | ||
3062 | #line $LINENO "configure" | ||
3063 | #include "confdefs.h" | ||
3064 | @%:@include <sys/types.h> | ||
3065 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3066 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3067 | since some C++ compilers masquerading as C compilers | ||
3068 | incorrectly reject 9223372036854775807. */ | ||
3069 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3070 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3071 | && LARGE_OFF_T % 2147483647 == 1) | ||
3072 | ? 1 : -1]; | ||
3073 | #ifdef F77_DUMMY_MAIN | ||
3074 | # ifdef __cplusplus | ||
3075 | extern "C" | ||
3076 | # endif | ||
3077 | int F77_DUMMY_MAIN() { return 1; } | ||
3078 | #endif | ||
3079 | int | ||
3080 | main () | ||
3081 | { | ||
3082 | |||
3083 | ; | ||
3084 | return 0; | ||
3085 | } | ||
3086 | _ACEOF | ||
3087 | rm -f conftest.$ac_objext | ||
3088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3089 | (eval $ac_compile) 2>&5 | ||
3090 | ac_status=$? | ||
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3092 | (exit $ac_status); } && | ||
3093 | { ac_try='test -s conftest.$ac_objext' | ||
3094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3095 | (eval $ac_try) 2>&5 | ||
3096 | ac_status=$? | ||
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3098 | (exit $ac_status); }; }; then | ||
3099 | break | ||
3100 | else | ||
3101 | echo "$as_me: failed program was:" >&5 | ||
3102 | cat conftest.$ac_ext >&5 | ||
3103 | fi | ||
3104 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3105 | cat >conftest.$ac_ext <<_ACEOF | ||
3106 | #line $LINENO "configure" | ||
3107 | #include "confdefs.h" | ||
3108 | @%:@define _FILE_OFFSET_BITS 64 | ||
3109 | @%:@include <sys/types.h> | ||
3110 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3111 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3112 | since some C++ compilers masquerading as C compilers | ||
3113 | incorrectly reject 9223372036854775807. */ | ||
3114 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3115 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3116 | && LARGE_OFF_T % 2147483647 == 1) | ||
3117 | ? 1 : -1]; | ||
3118 | #ifdef F77_DUMMY_MAIN | ||
3119 | # ifdef __cplusplus | ||
3120 | extern "C" | ||
3121 | # endif | ||
3122 | int F77_DUMMY_MAIN() { return 1; } | ||
3123 | #endif | ||
3124 | int | ||
3125 | main () | ||
3126 | { | ||
3127 | |||
3128 | ; | ||
3129 | return 0; | ||
3130 | } | ||
3131 | _ACEOF | ||
3132 | rm -f conftest.$ac_objext | ||
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3134 | (eval $ac_compile) 2>&5 | ||
3135 | ac_status=$? | ||
3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3137 | (exit $ac_status); } && | ||
3138 | { ac_try='test -s conftest.$ac_objext' | ||
3139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3140 | (eval $ac_try) 2>&5 | ||
3141 | ac_status=$? | ||
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3143 | (exit $ac_status); }; }; then | ||
3144 | ac_cv_sys_file_offset_bits=64; break | ||
3145 | else | ||
3146 | echo "$as_me: failed program was:" >&5 | ||
3147 | cat conftest.$ac_ext >&5 | ||
3148 | fi | ||
3149 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3150 | break | ||
3151 | done | ||
3152 | fi | ||
3153 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3154 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3155 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3156 | |||
3157 | cat >>confdefs.h <<_ACEOF | ||
3158 | @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3159 | _ACEOF | ||
3160 | |||
3161 | fi | ||
3162 | rm -f conftest* | ||
3163 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3164 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3165 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3167 | else | ||
3168 | while :; do | ||
3169 | ac_cv_sys_large_files=no | ||
3170 | cat >conftest.$ac_ext <<_ACEOF | ||
3171 | #line $LINENO "configure" | ||
3172 | #include "confdefs.h" | ||
3173 | @%:@include <sys/types.h> | ||
3174 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3175 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3176 | since some C++ compilers masquerading as C compilers | ||
3177 | incorrectly reject 9223372036854775807. */ | ||
3178 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3179 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3180 | && LARGE_OFF_T % 2147483647 == 1) | ||
3181 | ? 1 : -1]; | ||
3182 | #ifdef F77_DUMMY_MAIN | ||
3183 | # ifdef __cplusplus | ||
3184 | extern "C" | ||
3185 | # endif | ||
3186 | int F77_DUMMY_MAIN() { return 1; } | ||
3187 | #endif | ||
3188 | int | ||
3189 | main () | ||
3190 | { | ||
3191 | |||
3192 | ; | ||
3193 | return 0; | ||
3194 | } | ||
3195 | _ACEOF | ||
3196 | rm -f conftest.$ac_objext | ||
3197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3198 | (eval $ac_compile) 2>&5 | ||
3199 | ac_status=$? | ||
3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3201 | (exit $ac_status); } && | ||
3202 | { ac_try='test -s conftest.$ac_objext' | ||
3203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3204 | (eval $ac_try) 2>&5 | ||
3205 | ac_status=$? | ||
3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3207 | (exit $ac_status); }; }; then | ||
3208 | break | ||
3209 | else | ||
3210 | echo "$as_me: failed program was:" >&5 | ||
3211 | cat conftest.$ac_ext >&5 | ||
3212 | fi | ||
3213 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3214 | cat >conftest.$ac_ext <<_ACEOF | ||
3215 | #line $LINENO "configure" | ||
3216 | #include "confdefs.h" | ||
3217 | @%:@define _LARGE_FILES 1 | ||
3218 | @%:@include <sys/types.h> | ||
3219 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3220 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3221 | since some C++ compilers masquerading as C compilers | ||
3222 | incorrectly reject 9223372036854775807. */ | ||
3223 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3224 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3225 | && LARGE_OFF_T % 2147483647 == 1) | ||
3226 | ? 1 : -1]; | ||
3227 | #ifdef F77_DUMMY_MAIN | ||
3228 | # ifdef __cplusplus | ||
3229 | extern "C" | ||
3230 | # endif | ||
3231 | int F77_DUMMY_MAIN() { return 1; } | ||
3232 | #endif | ||
3233 | int | ||
3234 | main () | ||
3235 | { | ||
3236 | |||
3237 | ; | ||
3238 | return 0; | ||
3239 | } | ||
3240 | _ACEOF | ||
3241 | rm -f conftest.$ac_objext | ||
3242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3243 | (eval $ac_compile) 2>&5 | ||
3244 | ac_status=$? | ||
3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3246 | (exit $ac_status); } && | ||
3247 | { ac_try='test -s conftest.$ac_objext' | ||
3248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3249 | (eval $ac_try) 2>&5 | ||
3250 | ac_status=$? | ||
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3252 | (exit $ac_status); }; }; then | ||
3253 | ac_cv_sys_large_files=1; break | ||
3254 | else | ||
3255 | echo "$as_me: failed program was:" >&5 | ||
3256 | cat conftest.$ac_ext >&5 | ||
3257 | fi | ||
3258 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3259 | break | ||
3260 | done | ||
3261 | fi | ||
3262 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3263 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3264 | if test "$ac_cv_sys_large_files" != no; then | ||
3265 | |||
3266 | cat >>confdefs.h <<_ACEOF | ||
3267 | @%:@define _LARGE_FILES $ac_cv_sys_large_files | ||
3268 | _ACEOF | ||
3269 | |||
3270 | fi | ||
3271 | rm -f conftest* | ||
3272 | fi | ||
3273 | |||
3274 | |||
3275 | if test -z "$AR" ; then | ||
3276 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3277 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3278 | { (exit 1); exit 1; }; } | ||
3279 | fi | ||
3280 | |||
3281 | # Use LOGIN_PROGRAM from environment if possible | ||
3282 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3283 | cat >>confdefs.h <<_ACEOF | ||
3284 | @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3285 | _ACEOF | ||
3286 | |||
3287 | else | ||
3288 | # Search for login | ||
3289 | # Extract the first word of "login", so it can be a program name with args. | ||
3290 | set dummy login; ac_word=$2 | ||
3291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3293 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3295 | else | ||
3296 | case $LOGIN_PROGRAM_FALLBACK in | ||
3297 | [\\/]* | ?:[\\/]*) | ||
3298 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3299 | ;; | ||
3300 | *) | ||
3301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3302 | for as_dir in $PATH | ||
3303 | do | ||
3304 | IFS=$as_save_IFS | ||
3305 | test -z "$as_dir" && as_dir=. | ||
3306 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3308 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3310 | break 2 | ||
3311 | fi | ||
3312 | done | ||
3313 | done | ||
3314 | |||
3315 | ;; | ||
3316 | esac | ||
3317 | fi | ||
3318 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3319 | |||
3320 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3321 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3322 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3323 | else | ||
3324 | echo "$as_me:$LINENO: result: no" >&5 | ||
3325 | echo "${ECHO_T}no" >&6 | ||
3326 | fi | ||
3327 | |||
3328 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3329 | cat >>confdefs.h <<_ACEOF | ||
3330 | @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3331 | _ACEOF | ||
3332 | |||
3333 | fi | ||
3334 | fi | ||
3335 | |||
3336 | if test -z "$LD" ; then | ||
3337 | LD=$CC | ||
3338 | fi | ||
3339 | |||
3340 | |||
3341 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
3342 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
3343 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3345 | else | ||
3346 | ac_cv_prog_cc_stdc=no | ||
3347 | ac_save_CC=$CC | ||
3348 | cat >conftest.$ac_ext <<_ACEOF | ||
3349 | #line $LINENO "configure" | ||
3350 | #include "confdefs.h" | ||
3351 | #include <stdarg.h> | ||
3352 | #include <stdio.h> | ||
3353 | #include <sys/types.h> | ||
3354 | #include <sys/stat.h> | ||
3355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3356 | struct buf { int x; }; | ||
3357 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3358 | static char *e (p, i) | ||
3359 | char **p; | ||
3360 | int i; | ||
3361 | { | ||
3362 | return p[i]; | ||
3363 | } | ||
3364 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3365 | { | ||
3366 | char *s; | ||
3367 | va_list v; | ||
3368 | va_start (v,p); | ||
3369 | s = g (p, va_arg (v,int)); | ||
3370 | va_end (v); | ||
3371 | return s; | ||
3372 | } | ||
3373 | int test (int i, double x); | ||
3374 | struct s1 {int (*f) (int a);}; | ||
3375 | struct s2 {int (*f) (double a);}; | ||
3376 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3377 | int argc; | ||
3378 | char **argv; | ||
3379 | #ifdef F77_DUMMY_MAIN | ||
3380 | # ifdef __cplusplus | ||
3381 | extern "C" | ||
3382 | # endif | ||
3383 | int F77_DUMMY_MAIN() { return 1; } | ||
3384 | #endif | ||
3385 | int | ||
3386 | main () | ||
3387 | { | ||
3388 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3389 | ; | ||
3390 | return 0; | ||
3391 | } | ||
3392 | _ACEOF | ||
3393 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3394 | # breaks some systems' header files. | ||
3395 | # AIX -qlanglvl=ansi | ||
3396 | # Ultrix and OSF/1 -std1 | ||
3397 | # HP-UX 10.20 and later -Ae | ||
3398 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3399 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3400 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3401 | do | ||
3402 | CC="$ac_save_CC $ac_arg" | ||
3403 | rm -f conftest.$ac_objext | ||
3404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3405 | (eval $ac_compile) 2>&5 | ||
3406 | ac_status=$? | ||
3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3408 | (exit $ac_status); } && | ||
3409 | { ac_try='test -s conftest.$ac_objext' | ||
3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3411 | (eval $ac_try) 2>&5 | ||
3412 | ac_status=$? | ||
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3414 | (exit $ac_status); }; }; then | ||
3415 | ac_cv_prog_cc_stdc=$ac_arg | ||
3416 | break | ||
3417 | else | ||
3418 | echo "$as_me: failed program was:" >&5 | ||
3419 | cat conftest.$ac_ext >&5 | ||
3420 | fi | ||
3421 | rm -f conftest.$ac_objext | ||
3422 | done | ||
3423 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3424 | CC=$ac_save_CC | ||
3425 | |||
3426 | fi | ||
3427 | |||
3428 | case "x$ac_cv_prog_cc_stdc" in | ||
3429 | x|xno) | ||
3430 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
3431 | echo "${ECHO_T}none needed" >&6 ;; | ||
3432 | *) | ||
3433 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
3434 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3435 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3436 | esac | ||
3437 | |||
3438 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
3439 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3440 | if test "${ac_cv_c_inline+set}" = set; then | ||
3441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3442 | else | ||
3443 | ac_cv_c_inline=no | ||
3444 | for ac_kw in inline __inline__ __inline; do | ||
3445 | cat >conftest.$ac_ext <<_ACEOF | ||
3446 | #line $LINENO "configure" | ||
3447 | #include "confdefs.h" | ||
3448 | #ifndef __cplusplus | ||
3449 | static $ac_kw int static_foo () {return 0; } | ||
3450 | $ac_kw int foo () {return 0; } | ||
3451 | #endif | ||
3452 | |||
3453 | _ACEOF | ||
3454 | rm -f conftest.$ac_objext | ||
3455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3456 | (eval $ac_compile) 2>&5 | ||
3457 | ac_status=$? | ||
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3459 | (exit $ac_status); } && | ||
3460 | { ac_try='test -s conftest.$ac_objext' | ||
3461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3462 | (eval $ac_try) 2>&5 | ||
3463 | ac_status=$? | ||
3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3465 | (exit $ac_status); }; }; then | ||
3466 | ac_cv_c_inline=$ac_kw; break | ||
3467 | else | ||
3468 | echo "$as_me: failed program was:" >&5 | ||
3469 | cat conftest.$ac_ext >&5 | ||
3470 | fi | ||
3471 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3472 | done | ||
3473 | |||
3474 | fi | ||
3475 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3476 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3477 | case $ac_cv_c_inline in | ||
3478 | inline | yes) ;; | ||
3479 | no) | ||
3480 | cat >>confdefs.h <<\_ACEOF | ||
3481 | @%:@define inline | ||
3482 | _ACEOF | ||
3483 | ;; | ||
3484 | *) cat >>confdefs.h <<_ACEOF | ||
3485 | @%:@define inline $ac_cv_c_inline | ||
3486 | _ACEOF | ||
3487 | ;; | ||
3488 | esac | ||
3489 | |||
3490 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3491 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3492 | fi | ||
3493 | |||
3494 | # Check for some target-specific stuff | ||
3495 | case "$host" in | ||
3496 | *-*-aix*) | ||
3497 | AFS_LIBS="-lld" | ||
3498 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3499 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3500 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
3501 | echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5 | ||
3502 | echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6 | ||
3503 | saved_LDFLAGS="$LDFLAGS" | ||
3504 | LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" | ||
3505 | cat >conftest.$ac_ext <<_ACEOF | ||
3506 | #line $LINENO "configure" | ||
3507 | #include "confdefs.h" | ||
3508 | |||
3509 | #ifdef F77_DUMMY_MAIN | ||
3510 | # ifdef __cplusplus | ||
3511 | extern "C" | ||
3512 | # endif | ||
3513 | int F77_DUMMY_MAIN() { return 1; } | ||
3514 | #endif | ||
3515 | int | ||
3516 | main () | ||
3517 | { | ||
3518 | |||
3519 | ; | ||
3520 | return 0; | ||
3521 | } | ||
3522 | _ACEOF | ||
3523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3525 | (eval $ac_link) 2>&5 | ||
3526 | ac_status=$? | ||
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3528 | (exit $ac_status); } && | ||
3529 | { ac_try='test -s conftest$ac_exeext' | ||
3530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3531 | (eval $ac_try) 2>&5 | ||
3532 | ac_status=$? | ||
3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3534 | (exit $ac_status); }; }; then | ||
3535 | |||
3536 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3537 | echo "${ECHO_T}yes" >&6 | ||
3538 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3539 | |||
3540 | else | ||
3541 | echo "$as_me: failed program was:" >&5 | ||
3542 | cat conftest.$ac_ext >&5 | ||
3543 | echo "$as_me:$LINENO: result: no" >&5 | ||
3544 | echo "${ECHO_T}no" >&6 | ||
3545 | |||
3546 | fi | ||
3547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3548 | LDFLAGS="$saved_LDFLAGS" | ||
3549 | fi | ||
3550 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
3551 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3552 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3554 | else | ||
3555 | cat >conftest.$ac_ext <<_ACEOF | ||
3556 | #line $LINENO "configure" | ||
3557 | #include "confdefs.h" | ||
3558 | /* System header to define __stub macros and hopefully few prototypes, | ||
3559 | which can conflict with char authenticate (); below. */ | ||
3560 | #include <assert.h> | ||
3561 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3562 | #ifdef __cplusplus | ||
3563 | extern "C" | ||
3564 | #endif | ||
3565 | /* We use char because int might match the return type of a gcc2 | ||
3566 | builtin and then its argument prototype would still apply. */ | ||
3567 | char authenticate (); | ||
3568 | char (*f) (); | ||
3569 | |||
3570 | #ifdef F77_DUMMY_MAIN | ||
3571 | # ifdef __cplusplus | ||
3572 | extern "C" | ||
3573 | # endif | ||
3574 | int F77_DUMMY_MAIN() { return 1; } | ||
3575 | #endif | ||
3576 | int | ||
3577 | main () | ||
3578 | { | ||
3579 | /* The GNU C library defines this for functions which it implements | ||
3580 | to always fail with ENOSYS. Some functions are actually named | ||
3581 | something starting with __ and the normal name is an alias. */ | ||
3582 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3583 | choke me | ||
3584 | #else | ||
3585 | f = authenticate; | ||
3586 | #endif | ||
3587 | |||
3588 | ; | ||
3589 | return 0; | ||
3590 | } | ||
3591 | _ACEOF | ||
3592 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3594 | (eval $ac_link) 2>&5 | ||
3595 | ac_status=$? | ||
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3597 | (exit $ac_status); } && | ||
3598 | { ac_try='test -s conftest$ac_exeext' | ||
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3600 | (eval $ac_try) 2>&5 | ||
3601 | ac_status=$? | ||
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3603 | (exit $ac_status); }; }; then | ||
3604 | ac_cv_func_authenticate=yes | ||
3605 | else | ||
3606 | echo "$as_me: failed program was:" >&5 | ||
3607 | cat conftest.$ac_ext >&5 | ||
3608 | ac_cv_func_authenticate=no | ||
3609 | fi | ||
3610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3611 | fi | ||
3612 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
3613 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3614 | if test $ac_cv_func_authenticate = yes; then | ||
3615 | cat >>confdefs.h <<\_ACEOF | ||
3616 | @%:@define WITH_AIXAUTHENTICATE 1 | ||
3617 | _ACEOF | ||
3618 | |||
3619 | else | ||
3620 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
3621 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3622 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3624 | else | ||
3625 | ac_check_lib_save_LIBS=$LIBS | ||
3626 | LIBS="-ls $LIBS" | ||
3627 | cat >conftest.$ac_ext <<_ACEOF | ||
3628 | #line $LINENO "configure" | ||
3629 | #include "confdefs.h" | ||
3630 | |||
3631 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3632 | #ifdef __cplusplus | ||
3633 | extern "C" | ||
3634 | #endif | ||
3635 | /* We use char because int might match the return type of a gcc2 | ||
3636 | builtin and then its argument prototype would still apply. */ | ||
3637 | char authenticate (); | ||
3638 | #ifdef F77_DUMMY_MAIN | ||
3639 | # ifdef __cplusplus | ||
3640 | extern "C" | ||
3641 | # endif | ||
3642 | int F77_DUMMY_MAIN() { return 1; } | ||
3643 | #endif | ||
3644 | int | ||
3645 | main () | ||
3646 | { | ||
3647 | authenticate (); | ||
3648 | ; | ||
3649 | return 0; | ||
3650 | } | ||
3651 | _ACEOF | ||
3652 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3654 | (eval $ac_link) 2>&5 | ||
3655 | ac_status=$? | ||
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3657 | (exit $ac_status); } && | ||
3658 | { ac_try='test -s conftest$ac_exeext' | ||
3659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3660 | (eval $ac_try) 2>&5 | ||
3661 | ac_status=$? | ||
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3663 | (exit $ac_status); }; }; then | ||
3664 | ac_cv_lib_s_authenticate=yes | ||
3665 | else | ||
3666 | echo "$as_me: failed program was:" >&5 | ||
3667 | cat conftest.$ac_ext >&5 | ||
3668 | ac_cv_lib_s_authenticate=no | ||
3669 | fi | ||
3670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3671 | LIBS=$ac_check_lib_save_LIBS | ||
3672 | fi | ||
3673 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
3674 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3675 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3676 | cat >>confdefs.h <<\_ACEOF | ||
3677 | @%:@define WITH_AIXAUTHENTICATE 1 | ||
3678 | _ACEOF | ||
3679 | |||
3680 | LIBS="$LIBS -ls" | ||
3681 | |||
3682 | fi | ||
3683 | |||
3684 | |||
3685 | fi | ||
3686 | |||
3687 | cat >>confdefs.h <<\_ACEOF | ||
3688 | @%:@define BROKEN_GETADDRINFO 1 | ||
3689 | _ACEOF | ||
3690 | |||
3691 | cat >>confdefs.h <<\_ACEOF | ||
3692 | @%:@define BROKEN_REALPATH 1 | ||
3693 | _ACEOF | ||
3694 | |||
3695 | cat >>confdefs.h <<\_ACEOF | ||
3696 | @%:@define DISABLE_LASTLOG 1 | ||
3697 | _ACEOF | ||
3698 | |||
3699 | cat >>confdefs.h <<\_ACEOF | ||
3700 | @%:@define LOGIN_NEEDS_UTMPX 1 | ||
3701 | _ACEOF | ||
3702 | |||
3703 | cat >>confdefs.h <<\_ACEOF | ||
3704 | @%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
3705 | _ACEOF | ||
3706 | |||
3707 | cat >>confdefs.h <<\_ACEOF | ||
3708 | @%:@define SETPROCTITLE_PS_PADDING '\0' | ||
3709 | _ACEOF | ||
3710 | |||
3711 | ;; | ||
3712 | *-*-cygwin*) | ||
3713 | check_for_libcrypt_later=1 | ||
3714 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3715 | cat >>confdefs.h <<\_ACEOF | ||
3716 | @%:@define HAVE_CYGWIN 1 | ||
3717 | _ACEOF | ||
3718 | |||
3719 | cat >>confdefs.h <<\_ACEOF | ||
3720 | @%:@define USE_PIPES 1 | ||
3721 | _ACEOF | ||
3722 | |||
3723 | cat >>confdefs.h <<\_ACEOF | ||
3724 | @%:@define DISABLE_SHADOW 1 | ||
3725 | _ACEOF | ||
3726 | |||
3727 | cat >>confdefs.h <<\_ACEOF | ||
3728 | @%:@define IPV4_DEFAULT 1 | ||
3729 | _ACEOF | ||
3730 | |||
3731 | cat >>confdefs.h <<\_ACEOF | ||
3732 | @%:@define IP_TOS_IS_BROKEN 1 | ||
3733 | _ACEOF | ||
3734 | |||
3735 | cat >>confdefs.h <<\_ACEOF | ||
3736 | @%:@define NO_X11_UNIX_SOCKETS 1 | ||
3737 | _ACEOF | ||
3738 | |||
3739 | cat >>confdefs.h <<\_ACEOF | ||
3740 | @%:@define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3741 | _ACEOF | ||
3742 | |||
3743 | cat >>confdefs.h <<\_ACEOF | ||
3744 | @%:@define DISABLE_FD_PASSING 1 | ||
3745 | _ACEOF | ||
3746 | |||
3747 | cat >>confdefs.h <<\_ACEOF | ||
3748 | @%:@define SETGROUPS_NOOP 1 | ||
3749 | _ACEOF | ||
3750 | |||
3751 | ;; | ||
3752 | *-*-dgux*) | ||
3753 | cat >>confdefs.h <<\_ACEOF | ||
3754 | @%:@define IP_TOS_IS_BROKEN 1 | ||
3755 | _ACEOF | ||
3756 | |||
3757 | ;; | ||
3758 | *-*-darwin*) | ||
3759 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
3760 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3761 | if test "$cross_compiling" = yes; then | ||
3762 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
3763 | echo "${ECHO_T}assume it is working" >&6 | ||
3764 | else | ||
3765 | cat >conftest.$ac_ext <<_ACEOF | ||
3766 | #line $LINENO "configure" | ||
3767 | #include "confdefs.h" | ||
3768 | #include <mach-o/dyld.h> | ||
3769 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3770 | exit(0); | ||
3771 | else | ||
3772 | exit(1); | ||
3773 | } | ||
3774 | _ACEOF | ||
3775 | rm -f conftest$ac_exeext | ||
3776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3777 | (eval $ac_link) 2>&5 | ||
3778 | ac_status=$? | ||
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3782 | (eval $ac_try) 2>&5 | ||
3783 | ac_status=$? | ||
3784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3785 | (exit $ac_status); }; }; then | ||
3786 | echo "$as_me:$LINENO: result: working" >&5 | ||
3787 | echo "${ECHO_T}working" >&6 | ||
3788 | else | ||
3789 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3790 | echo "$as_me: failed program was:" >&5 | ||
3791 | cat conftest.$ac_ext >&5 | ||
3792 | ( exit $ac_status ) | ||
3793 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
3794 | echo "${ECHO_T}buggy" >&6 | ||
3795 | cat >>confdefs.h <<\_ACEOF | ||
3796 | @%:@define BROKEN_GETADDRINFO 1 | ||
3797 | _ACEOF | ||
3798 | |||
3799 | fi | ||
3800 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3801 | fi | ||
3802 | ;; | ||
3803 | *-*-hpux10.26) | ||
3804 | if test -z "$GCC"; then | ||
3805 | CFLAGS="$CFLAGS -Ae" | ||
3806 | fi | ||
3807 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3808 | IPADDR_IN_DISPLAY=yes | ||
3809 | cat >>confdefs.h <<\_ACEOF | ||
3810 | @%:@define HAVE_SECUREWARE 1 | ||
3811 | _ACEOF | ||
3812 | |||
3813 | cat >>confdefs.h <<\_ACEOF | ||
3814 | @%:@define USE_PIPES 1 | ||
3815 | _ACEOF | ||
3816 | |||
3817 | cat >>confdefs.h <<\_ACEOF | ||
3818 | @%:@define LOGIN_NO_ENDOPT 1 | ||
3819 | _ACEOF | ||
3820 | |||
3821 | cat >>confdefs.h <<\_ACEOF | ||
3822 | @%:@define LOGIN_NEEDS_UTMPX 1 | ||
3823 | _ACEOF | ||
3824 | |||
3825 | cat >>confdefs.h <<\_ACEOF | ||
3826 | @%:@define DISABLE_SHADOW 1 | ||
3827 | _ACEOF | ||
3828 | |||
3829 | cat >>confdefs.h <<\_ACEOF | ||
3830 | @%:@define DISABLE_UTMP 1 | ||
3831 | _ACEOF | ||
3832 | |||
3833 | cat >>confdefs.h <<\_ACEOF | ||
3834 | @%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
3835 | _ACEOF | ||
3836 | |||
3837 | LIBS="$LIBS -lsec -lsecpw" | ||
3838 | |||
3839 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3840 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3841 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3843 | else | ||
3844 | ac_check_lib_save_LIBS=$LIBS | ||
3845 | LIBS="-lxnet $LIBS" | ||
3846 | cat >conftest.$ac_ext <<_ACEOF | ||
3847 | #line $LINENO "configure" | ||
3848 | #include "confdefs.h" | ||
3849 | |||
3850 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3851 | #ifdef __cplusplus | ||
3852 | extern "C" | ||
3853 | #endif | ||
3854 | /* We use char because int might match the return type of a gcc2 | ||
3855 | builtin and then its argument prototype would still apply. */ | ||
3856 | char t_error (); | ||
3857 | #ifdef F77_DUMMY_MAIN | ||
3858 | # ifdef __cplusplus | ||
3859 | extern "C" | ||
3860 | # endif | ||
3861 | int F77_DUMMY_MAIN() { return 1; } | ||
3862 | #endif | ||
3863 | int | ||
3864 | main () | ||
3865 | { | ||
3866 | t_error (); | ||
3867 | ; | ||
3868 | return 0; | ||
3869 | } | ||
3870 | _ACEOF | ||
3871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3873 | (eval $ac_link) 2>&5 | ||
3874 | ac_status=$? | ||
3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3876 | (exit $ac_status); } && | ||
3877 | { ac_try='test -s conftest$ac_exeext' | ||
3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3879 | (eval $ac_try) 2>&5 | ||
3880 | ac_status=$? | ||
3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3882 | (exit $ac_status); }; }; then | ||
3883 | ac_cv_lib_xnet_t_error=yes | ||
3884 | else | ||
3885 | echo "$as_me: failed program was:" >&5 | ||
3886 | cat conftest.$ac_ext >&5 | ||
3887 | ac_cv_lib_xnet_t_error=no | ||
3888 | fi | ||
3889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3890 | LIBS=$ac_check_lib_save_LIBS | ||
3891 | fi | ||
3892 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3893 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3894 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3895 | cat >>confdefs.h <<_ACEOF | ||
3896 | @%:@define HAVE_LIBXNET 1 | ||
3897 | _ACEOF | ||
3898 | |||
3899 | LIBS="-lxnet $LIBS" | ||
3900 | |||
3901 | else | ||
3902 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3903 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3904 | { (exit 1); exit 1; }; } | ||
3905 | fi | ||
3906 | |||
3907 | disable_ptmx_check=yes | ||
3908 | ;; | ||
3909 | *-*-hpux10*) | ||
3910 | if test -z "$GCC"; then | ||
3911 | CFLAGS="$CFLAGS -Ae" | ||
3912 | fi | ||
3913 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3914 | IPADDR_IN_DISPLAY=yes | ||
3915 | cat >>confdefs.h <<\_ACEOF | ||
3916 | @%:@define USE_PIPES 1 | ||
3917 | _ACEOF | ||
3918 | |||
3919 | cat >>confdefs.h <<\_ACEOF | ||
3920 | @%:@define LOGIN_NO_ENDOPT 1 | ||
3921 | _ACEOF | ||
3922 | |||
3923 | cat >>confdefs.h <<\_ACEOF | ||
3924 | @%:@define LOGIN_NEEDS_UTMPX 1 | ||
3925 | _ACEOF | ||
3926 | |||
3927 | cat >>confdefs.h <<\_ACEOF | ||
3928 | @%:@define DISABLE_SHADOW 1 | ||
3929 | _ACEOF | ||
3930 | |||
3931 | cat >>confdefs.h <<\_ACEOF | ||
3932 | @%:@define DISABLE_UTMP 1 | ||
3933 | _ACEOF | ||
3934 | |||
3935 | cat >>confdefs.h <<\_ACEOF | ||
3936 | @%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
3937 | _ACEOF | ||
3938 | |||
3939 | LIBS="$LIBS -lsec" | ||
3940 | |||
3941 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3942 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3943 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3945 | else | ||
3946 | ac_check_lib_save_LIBS=$LIBS | ||
3947 | LIBS="-lxnet $LIBS" | ||
3948 | cat >conftest.$ac_ext <<_ACEOF | ||
3949 | #line $LINENO "configure" | ||
3950 | #include "confdefs.h" | ||
3951 | |||
3952 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3953 | #ifdef __cplusplus | ||
3954 | extern "C" | ||
3955 | #endif | ||
3956 | /* We use char because int might match the return type of a gcc2 | ||
3957 | builtin and then its argument prototype would still apply. */ | ||
3958 | char t_error (); | ||
3959 | #ifdef F77_DUMMY_MAIN | ||
3960 | # ifdef __cplusplus | ||
3961 | extern "C" | ||
3962 | # endif | ||
3963 | int F77_DUMMY_MAIN() { return 1; } | ||
3964 | #endif | ||
3965 | int | ||
3966 | main () | ||
3967 | { | ||
3968 | t_error (); | ||
3969 | ; | ||
3970 | return 0; | ||
3971 | } | ||
3972 | _ACEOF | ||
3973 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3975 | (eval $ac_link) 2>&5 | ||
3976 | ac_status=$? | ||
3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3978 | (exit $ac_status); } && | ||
3979 | { ac_try='test -s conftest$ac_exeext' | ||
3980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3981 | (eval $ac_try) 2>&5 | ||
3982 | ac_status=$? | ||
3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3984 | (exit $ac_status); }; }; then | ||
3985 | ac_cv_lib_xnet_t_error=yes | ||
3986 | else | ||
3987 | echo "$as_me: failed program was:" >&5 | ||
3988 | cat conftest.$ac_ext >&5 | ||
3989 | ac_cv_lib_xnet_t_error=no | ||
3990 | fi | ||
3991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3992 | LIBS=$ac_check_lib_save_LIBS | ||
3993 | fi | ||
3994 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3995 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3996 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3997 | cat >>confdefs.h <<_ACEOF | ||
3998 | @%:@define HAVE_LIBXNET 1 | ||
3999 | _ACEOF | ||
4000 | |||
4001 | LIBS="-lxnet $LIBS" | ||
4002 | |||
4003 | else | ||
4004 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4005 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4006 | { (exit 1); exit 1; }; } | ||
4007 | fi | ||
4008 | |||
4009 | ;; | ||
4010 | *-*-hpux11*) | ||
4011 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
4012 | IPADDR_IN_DISPLAY=yes | ||
4013 | cat >>confdefs.h <<\_ACEOF | ||
4014 | @%:@define PAM_SUN_CODEBASE 1 | ||
4015 | _ACEOF | ||
4016 | |||
4017 | cat >>confdefs.h <<\_ACEOF | ||
4018 | @%:@define USE_PIPES 1 | ||
4019 | _ACEOF | ||
4020 | |||
4021 | cat >>confdefs.h <<\_ACEOF | ||
4022 | @%:@define LOGIN_NO_ENDOPT 1 | ||
4023 | _ACEOF | ||
4024 | |||
4025 | cat >>confdefs.h <<\_ACEOF | ||
4026 | @%:@define LOGIN_NEEDS_UTMPX 1 | ||
4027 | _ACEOF | ||
4028 | |||
4029 | cat >>confdefs.h <<\_ACEOF | ||
4030 | @%:@define DISABLE_SHADOW 1 | ||
4031 | _ACEOF | ||
4032 | |||
4033 | cat >>confdefs.h <<\_ACEOF | ||
4034 | @%:@define DISABLE_UTMP 1 | ||
4035 | _ACEOF | ||
4036 | |||
4037 | cat >>confdefs.h <<\_ACEOF | ||
4038 | @%:@define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
4039 | _ACEOF | ||
4040 | |||
4041 | LIBS="$LIBS -lsec" | ||
4042 | |||
4043 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
4044 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
4045 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4047 | else | ||
4048 | ac_check_lib_save_LIBS=$LIBS | ||
4049 | LIBS="-lxnet $LIBS" | ||
4050 | cat >conftest.$ac_ext <<_ACEOF | ||
4051 | #line $LINENO "configure" | ||
4052 | #include "confdefs.h" | ||
4053 | |||
4054 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4055 | #ifdef __cplusplus | ||
4056 | extern "C" | ||
4057 | #endif | ||
4058 | /* We use char because int might match the return type of a gcc2 | ||
4059 | builtin and then its argument prototype would still apply. */ | ||
4060 | char t_error (); | ||
4061 | #ifdef F77_DUMMY_MAIN | ||
4062 | # ifdef __cplusplus | ||
4063 | extern "C" | ||
4064 | # endif | ||
4065 | int F77_DUMMY_MAIN() { return 1; } | ||
4066 | #endif | ||
4067 | int | ||
4068 | main () | ||
4069 | { | ||
4070 | t_error (); | ||
4071 | ; | ||
4072 | return 0; | ||
4073 | } | ||
4074 | _ACEOF | ||
4075 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4077 | (eval $ac_link) 2>&5 | ||
4078 | ac_status=$? | ||
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4080 | (exit $ac_status); } && | ||
4081 | { ac_try='test -s conftest$ac_exeext' | ||
4082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4083 | (eval $ac_try) 2>&5 | ||
4084 | ac_status=$? | ||
4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4086 | (exit $ac_status); }; }; then | ||
4087 | ac_cv_lib_xnet_t_error=yes | ||
4088 | else | ||
4089 | echo "$as_me: failed program was:" >&5 | ||
4090 | cat conftest.$ac_ext >&5 | ||
4091 | ac_cv_lib_xnet_t_error=no | ||
4092 | fi | ||
4093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4094 | LIBS=$ac_check_lib_save_LIBS | ||
4095 | fi | ||
4096 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
4097 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
4098 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
4099 | cat >>confdefs.h <<_ACEOF | ||
4100 | @%:@define HAVE_LIBXNET 1 | ||
4101 | _ACEOF | ||
4102 | |||
4103 | LIBS="-lxnet $LIBS" | ||
4104 | |||
4105 | else | ||
4106 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4107 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4108 | { (exit 1); exit 1; }; } | ||
4109 | fi | ||
4110 | |||
4111 | ;; | ||
4112 | *-*-irix5*) | ||
4113 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4114 | LDFLAGS="$LDFLAGS" | ||
4115 | PATH="$PATH:/usr/etc" | ||
4116 | cat >>confdefs.h <<\_ACEOF | ||
4117 | @%:@define BROKEN_INET_NTOA 1 | ||
4118 | _ACEOF | ||
4119 | |||
4120 | cat >>confdefs.h <<\_ACEOF | ||
4121 | @%:@define WITH_ABBREV_NO_TTY 1 | ||
4122 | _ACEOF | ||
4123 | |||
4124 | ;; | ||
4125 | *-*-irix6*) | ||
4126 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4127 | LDFLAGS="$LDFLAGS" | ||
4128 | PATH="$PATH:/usr/etc" | ||
4129 | cat >>confdefs.h <<\_ACEOF | ||
4130 | @%:@define WITH_IRIX_ARRAY 1 | ||
4131 | _ACEOF | ||
4132 | |||
4133 | cat >>confdefs.h <<\_ACEOF | ||
4134 | @%:@define WITH_IRIX_PROJECT 1 | ||
4135 | _ACEOF | ||
4136 | |||
4137 | cat >>confdefs.h <<\_ACEOF | ||
4138 | @%:@define WITH_IRIX_AUDIT 1 | ||
4139 | _ACEOF | ||
4140 | |||
4141 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
4142 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
4143 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
4144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4145 | else | ||
4146 | cat >conftest.$ac_ext <<_ACEOF | ||
4147 | #line $LINENO "configure" | ||
4148 | #include "confdefs.h" | ||
4149 | /* System header to define __stub macros and hopefully few prototypes, | ||
4150 | which can conflict with char jlimit_startjob (); below. */ | ||
4151 | #include <assert.h> | ||
4152 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4153 | #ifdef __cplusplus | ||
4154 | extern "C" | ||
4155 | #endif | ||
4156 | /* We use char because int might match the return type of a gcc2 | ||
4157 | builtin and then its argument prototype would still apply. */ | ||
4158 | char jlimit_startjob (); | ||
4159 | char (*f) (); | ||
4160 | |||
4161 | #ifdef F77_DUMMY_MAIN | ||
4162 | # ifdef __cplusplus | ||
4163 | extern "C" | ||
4164 | # endif | ||
4165 | int F77_DUMMY_MAIN() { return 1; } | ||
4166 | #endif | ||
4167 | int | ||
4168 | main () | ||
4169 | { | ||
4170 | /* The GNU C library defines this for functions which it implements | ||
4171 | to always fail with ENOSYS. Some functions are actually named | ||
4172 | something starting with __ and the normal name is an alias. */ | ||
4173 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
4174 | choke me | ||
4175 | #else | ||
4176 | f = jlimit_startjob; | ||
4177 | #endif | ||
4178 | |||
4179 | ; | ||
4180 | return 0; | ||
4181 | } | ||
4182 | _ACEOF | ||
4183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4185 | (eval $ac_link) 2>&5 | ||
4186 | ac_status=$? | ||
4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4188 | (exit $ac_status); } && | ||
4189 | { ac_try='test -s conftest$ac_exeext' | ||
4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4191 | (eval $ac_try) 2>&5 | ||
4192 | ac_status=$? | ||
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4194 | (exit $ac_status); }; }; then | ||
4195 | ac_cv_func_jlimit_startjob=yes | ||
4196 | else | ||
4197 | echo "$as_me: failed program was:" >&5 | ||
4198 | cat conftest.$ac_ext >&5 | ||
4199 | ac_cv_func_jlimit_startjob=no | ||
4200 | fi | ||
4201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4202 | fi | ||
4203 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
4204 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
4205 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
4206 | cat >>confdefs.h <<\_ACEOF | ||
4207 | @%:@define WITH_IRIX_JOBS 1 | ||
4208 | _ACEOF | ||
4209 | |||
4210 | fi | ||
4211 | |||
4212 | cat >>confdefs.h <<\_ACEOF | ||
4213 | @%:@define BROKEN_INET_NTOA 1 | ||
4214 | _ACEOF | ||
4215 | |||
4216 | cat >>confdefs.h <<\_ACEOF | ||
4217 | @%:@define WITH_ABBREV_NO_TTY 1 | ||
4218 | _ACEOF | ||
4219 | |||
4220 | ;; | ||
4221 | *-*-linux*) | ||
4222 | no_dev_ptmx=1 | ||
4223 | check_for_libcrypt_later=1 | ||
4224 | cat >>confdefs.h <<\_ACEOF | ||
4225 | @%:@define DONT_TRY_OTHER_AF 1 | ||
4226 | _ACEOF | ||
4227 | |||
4228 | cat >>confdefs.h <<\_ACEOF | ||
4229 | @%:@define PAM_TTY_KLUDGE 1 | ||
4230 | _ACEOF | ||
4231 | |||
4232 | cat >>confdefs.h <<\_ACEOF | ||
4233 | @%:@define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
4234 | _ACEOF | ||
4235 | |||
4236 | cat >>confdefs.h <<\_ACEOF | ||
4237 | @%:@define SETPROCTITLE_PS_PADDING '\0' | ||
4238 | _ACEOF | ||
4239 | |||
4240 | inet6_default_4in6=yes | ||
4241 | ;; | ||
4242 | mips-sony-bsd|mips-sony-newsos4) | ||
4243 | cat >>confdefs.h <<\_ACEOF | ||
4244 | @%:@define HAVE_NEWS4 1 | ||
4245 | _ACEOF | ||
4246 | |||
4247 | SONY=1 | ||
4248 | ;; | ||
4249 | *-*-netbsd*) | ||
4250 | check_for_libcrypt_before=1 | ||
4251 | need_dash_r=1 | ||
4252 | ;; | ||
4253 | *-*-freebsd*) | ||
4254 | check_for_libcrypt_later=1 | ||
4255 | ;; | ||
4256 | *-next-*) | ||
4257 | conf_lastlog_location="/usr/adm/lastlog" | ||
4258 | conf_utmp_location=/etc/utmp | ||
4259 | conf_wtmp_location=/usr/adm/wtmp | ||
4260 | MAIL=/usr/spool/mail | ||
4261 | cat >>confdefs.h <<\_ACEOF | ||
4262 | @%:@define HAVE_NEXT 1 | ||
4263 | _ACEOF | ||
4264 | |||
4265 | cat >>confdefs.h <<\_ACEOF | ||
4266 | @%:@define BROKEN_REALPATH 1 | ||
4267 | _ACEOF | ||
4268 | |||
4269 | cat >>confdefs.h <<\_ACEOF | ||
4270 | @%:@define USE_PIPES 1 | ||
4271 | _ACEOF | ||
4272 | |||
4273 | cat >>confdefs.h <<\_ACEOF | ||
4274 | @%:@define BROKEN_SAVED_UIDS 1 | ||
4275 | _ACEOF | ||
4276 | |||
4277 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4278 | CFLAGS="$CFLAGS" | ||
4279 | ;; | ||
4280 | *-*-solaris*) | ||
4281 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4282 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
4283 | need_dash_r=1 | ||
4284 | cat >>confdefs.h <<\_ACEOF | ||
4285 | @%:@define PAM_SUN_CODEBASE 1 | ||
4286 | _ACEOF | ||
4287 | |||
4288 | cat >>confdefs.h <<\_ACEOF | ||
4289 | @%:@define LOGIN_NEEDS_UTMPX 1 | ||
4290 | _ACEOF | ||
4291 | |||
4292 | cat >>confdefs.h <<\_ACEOF | ||
4293 | @%:@define LOGIN_NEEDS_TERM 1 | ||
4294 | _ACEOF | ||
4295 | |||
4296 | cat >>confdefs.h <<\_ACEOF | ||
4297 | @%:@define PAM_TTY_KLUDGE 1 | ||
4298 | _ACEOF | ||
4299 | |||
4300 | cat >>confdefs.h <<\_ACEOF | ||
4301 | @%:@define STREAMS_PUSH_ACQUIRES_CTTY 1 | ||
4302 | _ACEOF | ||
4303 | |||
4304 | # hardwire lastlog location (can't detect it on some versions) | ||
4305 | conf_lastlog_location="/var/adm/lastlog" | ||
4306 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4307 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4308 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4309 | if test "$sol2ver" -ge 8; then | ||
4310 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4311 | echo "${ECHO_T}yes" >&6 | ||
4312 | cat >>confdefs.h <<\_ACEOF | ||
4313 | @%:@define DISABLE_UTMP 1 | ||
4314 | _ACEOF | ||
4315 | |||
4316 | cat >>confdefs.h <<\_ACEOF | ||
4317 | @%:@define DISABLE_WTMP 1 | ||
4318 | _ACEOF | ||
4319 | |||
4320 | else | ||
4321 | echo "$as_me:$LINENO: result: no" >&5 | ||
4322 | echo "${ECHO_T}no" >&6 | ||
4323 | fi | ||
4324 | ;; | ||
4325 | *-*-sunos4*) | ||
4326 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4327 | |||
4328 | for ac_func in getpwanam | ||
4329 | do | ||
4330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4331 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4333 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4335 | else | ||
4336 | cat >conftest.$ac_ext <<_ACEOF | ||
4337 | #line $LINENO "configure" | ||
4338 | #include "confdefs.h" | ||
4339 | /* System header to define __stub macros and hopefully few prototypes, | ||
4340 | which can conflict with char $ac_func (); below. */ | ||
4341 | #include <assert.h> | ||
4342 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4343 | #ifdef __cplusplus | ||
4344 | extern "C" | ||
4345 | #endif | ||
4346 | /* We use char because int might match the return type of a gcc2 | ||
4347 | builtin and then its argument prototype would still apply. */ | ||
4348 | char $ac_func (); | ||
4349 | char (*f) (); | ||
4350 | |||
4351 | #ifdef F77_DUMMY_MAIN | ||
4352 | # ifdef __cplusplus | ||
4353 | extern "C" | ||
4354 | # endif | ||
4355 | int F77_DUMMY_MAIN() { return 1; } | ||
4356 | #endif | ||
4357 | int | ||
4358 | main () | ||
4359 | { | ||
4360 | /* The GNU C library defines this for functions which it implements | ||
4361 | to always fail with ENOSYS. Some functions are actually named | ||
4362 | something starting with __ and the normal name is an alias. */ | ||
4363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4364 | choke me | ||
4365 | #else | ||
4366 | f = $ac_func; | ||
4367 | #endif | ||
4368 | |||
4369 | ; | ||
4370 | return 0; | ||
4371 | } | ||
4372 | _ACEOF | ||
4373 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4375 | (eval $ac_link) 2>&5 | ||
4376 | ac_status=$? | ||
4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4378 | (exit $ac_status); } && | ||
4379 | { ac_try='test -s conftest$ac_exeext' | ||
4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4381 | (eval $ac_try) 2>&5 | ||
4382 | ac_status=$? | ||
4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4384 | (exit $ac_status); }; }; then | ||
4385 | eval "$as_ac_var=yes" | ||
4386 | else | ||
4387 | echo "$as_me: failed program was:" >&5 | ||
4388 | cat conftest.$ac_ext >&5 | ||
4389 | eval "$as_ac_var=no" | ||
4390 | fi | ||
4391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4392 | fi | ||
4393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4395 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4396 | cat >>confdefs.h <<_ACEOF | ||
4397 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4398 | _ACEOF | ||
4399 | |||
4400 | fi | ||
4401 | done | ||
4402 | |||
4403 | cat >>confdefs.h <<\_ACEOF | ||
4404 | @%:@define PAM_SUN_CODEBASE 1 | ||
4405 | _ACEOF | ||
4406 | |||
4407 | conf_utmp_location=/etc/utmp | ||
4408 | conf_wtmp_location=/var/adm/wtmp | ||
4409 | conf_lastlog_location=/var/adm/lastlog | ||
4410 | cat >>confdefs.h <<\_ACEOF | ||
4411 | @%:@define USE_PIPES 1 | ||
4412 | _ACEOF | ||
4413 | |||
4414 | ;; | ||
4415 | *-ncr-sysv*) | ||
4416 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4417 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4418 | LIBS="$LIBS -lc89" | ||
4419 | cat >>confdefs.h <<\_ACEOF | ||
4420 | @%:@define USE_PIPES 1 | ||
4421 | _ACEOF | ||
4422 | |||
4423 | ;; | ||
4424 | *-sni-sysv*) | ||
4425 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4426 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4427 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4428 | IPADDR_IN_DISPLAY=yes | ||
4429 | cat >>confdefs.h <<\_ACEOF | ||
4430 | @%:@define USE_PIPES 1 | ||
4431 | _ACEOF | ||
4432 | |||
4433 | cat >>confdefs.h <<\_ACEOF | ||
4434 | @%:@define IP_TOS_IS_BROKEN 1 | ||
4435 | _ACEOF | ||
4436 | |||
4437 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4438 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4439 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4440 | ;; | ||
4441 | *-*-sysv4.2*) | ||
4442 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4443 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4444 | cat >>confdefs.h <<\_ACEOF | ||
4445 | @%:@define USE_PIPES 1 | ||
4446 | _ACEOF | ||
4447 | |||
4448 | ;; | ||
4449 | *-*-sysv5*) | ||
4450 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4451 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4452 | cat >>confdefs.h <<\_ACEOF | ||
4453 | @%:@define USE_PIPES 1 | ||
4454 | _ACEOF | ||
4455 | |||
4456 | ;; | ||
4457 | *-*-sysv*) | ||
4458 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4459 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4460 | ;; | ||
4461 | *-*-sco3.2v4*) | ||
4462 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4463 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4464 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4465 | RANLIB=true | ||
4466 | no_dev_ptmx=1 | ||
4467 | cat >>confdefs.h <<\_ACEOF | ||
4468 | @%:@define BROKEN_SYS_TERMIO_H 1 | ||
4469 | _ACEOF | ||
4470 | |||
4471 | cat >>confdefs.h <<\_ACEOF | ||
4472 | @%:@define USE_PIPES 1 | ||
4473 | _ACEOF | ||
4474 | |||
4475 | cat >>confdefs.h <<\_ACEOF | ||
4476 | @%:@define HAVE_SECUREWARE 1 | ||
4477 | _ACEOF | ||
4478 | |||
4479 | cat >>confdefs.h <<\_ACEOF | ||
4480 | @%:@define DISABLE_SHADOW 1 | ||
4481 | _ACEOF | ||
4482 | |||
4483 | cat >>confdefs.h <<\_ACEOF | ||
4484 | @%:@define BROKEN_SAVED_UIDS 1 | ||
4485 | _ACEOF | ||
4486 | |||
4487 | |||
4488 | |||
4489 | for ac_func in getluid setluid | ||
4490 | do | ||
4491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4496 | else | ||
4497 | cat >conftest.$ac_ext <<_ACEOF | ||
4498 | #line $LINENO "configure" | ||
4499 | #include "confdefs.h" | ||
4500 | /* System header to define __stub macros and hopefully few prototypes, | ||
4501 | which can conflict with char $ac_func (); below. */ | ||
4502 | #include <assert.h> | ||
4503 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4504 | #ifdef __cplusplus | ||
4505 | extern "C" | ||
4506 | #endif | ||
4507 | /* We use char because int might match the return type of a gcc2 | ||
4508 | builtin and then its argument prototype would still apply. */ | ||
4509 | char $ac_func (); | ||
4510 | char (*f) (); | ||
4511 | |||
4512 | #ifdef F77_DUMMY_MAIN | ||
4513 | # ifdef __cplusplus | ||
4514 | extern "C" | ||
4515 | # endif | ||
4516 | int F77_DUMMY_MAIN() { return 1; } | ||
4517 | #endif | ||
4518 | int | ||
4519 | main () | ||
4520 | { | ||
4521 | /* The GNU C library defines this for functions which it implements | ||
4522 | to always fail with ENOSYS. Some functions are actually named | ||
4523 | something starting with __ and the normal name is an alias. */ | ||
4524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4525 | choke me | ||
4526 | #else | ||
4527 | f = $ac_func; | ||
4528 | #endif | ||
4529 | |||
4530 | ; | ||
4531 | return 0; | ||
4532 | } | ||
4533 | _ACEOF | ||
4534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4536 | (eval $ac_link) 2>&5 | ||
4537 | ac_status=$? | ||
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4539 | (exit $ac_status); } && | ||
4540 | { ac_try='test -s conftest$ac_exeext' | ||
4541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4542 | (eval $ac_try) 2>&5 | ||
4543 | ac_status=$? | ||
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4545 | (exit $ac_status); }; }; then | ||
4546 | eval "$as_ac_var=yes" | ||
4547 | else | ||
4548 | echo "$as_me: failed program was:" >&5 | ||
4549 | cat conftest.$ac_ext >&5 | ||
4550 | eval "$as_ac_var=no" | ||
4551 | fi | ||
4552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4553 | fi | ||
4554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4557 | cat >>confdefs.h <<_ACEOF | ||
4558 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4559 | _ACEOF | ||
4560 | |||
4561 | fi | ||
4562 | done | ||
4563 | |||
4564 | MANTYPE=man | ||
4565 | do_sco3_extra_lib_check=yes | ||
4566 | ;; | ||
4567 | *-*-sco3.2v5*) | ||
4568 | if test -z "$GCC"; then | ||
4569 | CFLAGS="$CFLAGS -belf" | ||
4570 | fi | ||
4571 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4572 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4573 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4574 | no_dev_ptmx=1 | ||
4575 | cat >>confdefs.h <<\_ACEOF | ||
4576 | @%:@define USE_PIPES 1 | ||
4577 | _ACEOF | ||
4578 | |||
4579 | cat >>confdefs.h <<\_ACEOF | ||
4580 | @%:@define HAVE_SECUREWARE 1 | ||
4581 | _ACEOF | ||
4582 | |||
4583 | cat >>confdefs.h <<\_ACEOF | ||
4584 | @%:@define DISABLE_SHADOW 1 | ||
4585 | _ACEOF | ||
4586 | |||
4587 | cat >>confdefs.h <<\_ACEOF | ||
4588 | @%:@define DISABLE_FD_PASSING 1 | ||
4589 | _ACEOF | ||
4590 | |||
4591 | |||
4592 | |||
4593 | for ac_func in getluid setluid | ||
4594 | do | ||
4595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4596 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4598 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4600 | else | ||
4601 | cat >conftest.$ac_ext <<_ACEOF | ||
4602 | #line $LINENO "configure" | ||
4603 | #include "confdefs.h" | ||
4604 | /* System header to define __stub macros and hopefully few prototypes, | ||
4605 | which can conflict with char $ac_func (); below. */ | ||
4606 | #include <assert.h> | ||
4607 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4608 | #ifdef __cplusplus | ||
4609 | extern "C" | ||
4610 | #endif | ||
4611 | /* We use char because int might match the return type of a gcc2 | ||
4612 | builtin and then its argument prototype would still apply. */ | ||
4613 | char $ac_func (); | ||
4614 | char (*f) (); | ||
4615 | |||
4616 | #ifdef F77_DUMMY_MAIN | ||
4617 | # ifdef __cplusplus | ||
4618 | extern "C" | ||
4619 | # endif | ||
4620 | int F77_DUMMY_MAIN() { return 1; } | ||
4621 | #endif | ||
4622 | int | ||
4623 | main () | ||
4624 | { | ||
4625 | /* The GNU C library defines this for functions which it implements | ||
4626 | to always fail with ENOSYS. Some functions are actually named | ||
4627 | something starting with __ and the normal name is an alias. */ | ||
4628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4629 | choke me | ||
4630 | #else | ||
4631 | f = $ac_func; | ||
4632 | #endif | ||
4633 | |||
4634 | ; | ||
4635 | return 0; | ||
4636 | } | ||
4637 | _ACEOF | ||
4638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4640 | (eval $ac_link) 2>&5 | ||
4641 | ac_status=$? | ||
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4643 | (exit $ac_status); } && | ||
4644 | { ac_try='test -s conftest$ac_exeext' | ||
4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4646 | (eval $ac_try) 2>&5 | ||
4647 | ac_status=$? | ||
4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4649 | (exit $ac_status); }; }; then | ||
4650 | eval "$as_ac_var=yes" | ||
4651 | else | ||
4652 | echo "$as_me: failed program was:" >&5 | ||
4653 | cat conftest.$ac_ext >&5 | ||
4654 | eval "$as_ac_var=no" | ||
4655 | fi | ||
4656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4657 | fi | ||
4658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4661 | cat >>confdefs.h <<_ACEOF | ||
4662 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4663 | _ACEOF | ||
4664 | |||
4665 | fi | ||
4666 | done | ||
4667 | |||
4668 | MANTYPE=man | ||
4669 | ;; | ||
4670 | *-*-unicosmk*) | ||
4671 | cat >>confdefs.h <<\_ACEOF | ||
4672 | @%:@define USE_PIPES 1 | ||
4673 | _ACEOF | ||
4674 | |||
4675 | cat >>confdefs.h <<\_ACEOF | ||
4676 | @%:@define DISABLE_FD_PASSING 1 | ||
4677 | _ACEOF | ||
4678 | |||
4679 | LDFLAGS="$LDFLAGS" | ||
4680 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4681 | MANTYPE=cat | ||
4682 | ;; | ||
4683 | *-*-unicos*) | ||
4684 | cat >>confdefs.h <<\_ACEOF | ||
4685 | @%:@define USE_PIPES 1 | ||
4686 | _ACEOF | ||
4687 | |||
4688 | cat >>confdefs.h <<\_ACEOF | ||
4689 | @%:@define DISABLE_FD_PASSING 1 | ||
4690 | _ACEOF | ||
4691 | |||
4692 | cat >>confdefs.h <<\_ACEOF | ||
4693 | @%:@define NO_SSH_LASTLOG 1 | ||
4694 | _ACEOF | ||
4695 | |||
4696 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4697 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4698 | MANTYPE=cat | ||
4699 | ;; | ||
4700 | *-dec-osf*) | ||
4701 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
4702 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4703 | no_osfsia="" | ||
4704 | |||
4705 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4706 | if test "${with_osfsia+set}" = set; then | ||
4707 | withval="$with_osfsia" | ||
4708 | |||
4709 | if test "x$withval" = "xno" ; then | ||
4710 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
4711 | echo "${ECHO_T}disabled" >&6 | ||
4712 | no_osfsia=1 | ||
4713 | fi | ||
4714 | |||
4715 | fi; | ||
4716 | if test -z "$no_osfsia" ; then | ||
4717 | if test -f /etc/sia/matrix.conf; then | ||
4718 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4719 | echo "${ECHO_T}yes" >&6 | ||
4720 | cat >>confdefs.h <<\_ACEOF | ||
4721 | @%:@define HAVE_OSF_SIA 1 | ||
4722 | _ACEOF | ||
4723 | |||
4724 | cat >>confdefs.h <<\_ACEOF | ||
4725 | @%:@define DISABLE_LOGIN 1 | ||
4726 | _ACEOF | ||
4727 | |||
4728 | cat >>confdefs.h <<\_ACEOF | ||
4729 | @%:@define DISABLE_FD_PASSING 1 | ||
4730 | _ACEOF | ||
4731 | |||
4732 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4733 | else | ||
4734 | echo "$as_me:$LINENO: result: no" >&5 | ||
4735 | echo "${ECHO_T}no" >&6 | ||
4736 | fi | ||
4737 | fi | ||
4738 | cat >>confdefs.h <<\_ACEOF | ||
4739 | @%:@define DISABLE_FD_PASSING 1 | ||
4740 | _ACEOF | ||
4741 | |||
4742 | ;; | ||
4743 | |||
4744 | *-*-nto-qnx) | ||
4745 | cat >>confdefs.h <<\_ACEOF | ||
4746 | @%:@define USE_PIPES 1 | ||
4747 | _ACEOF | ||
4748 | |||
4749 | cat >>confdefs.h <<\_ACEOF | ||
4750 | @%:@define NO_X11_UNIX_SOCKETS 1 | ||
4751 | _ACEOF | ||
4752 | |||
4753 | cat >>confdefs.h <<\_ACEOF | ||
4754 | @%:@define MISSING_NFDBITS 1 | ||
4755 | _ACEOF | ||
4756 | |||
4757 | cat >>confdefs.h <<\_ACEOF | ||
4758 | @%:@define MISSING_HOWMANY 1 | ||
4759 | _ACEOF | ||
4760 | |||
4761 | cat >>confdefs.h <<\_ACEOF | ||
4762 | @%:@define MISSING_FD_MASK 1 | ||
4763 | _ACEOF | ||
4764 | |||
4765 | ;; | ||
4766 | esac | ||
4767 | |||
4768 | # Allow user to specify flags | ||
4769 | |||
4770 | # Check whether --with-cflags or --without-cflags was given. | ||
4771 | if test "${with_cflags+set}" = set; then | ||
4772 | withval="$with_cflags" | ||
4773 | |||
4774 | if test "x$withval" != "xno" ; then | ||
4775 | CFLAGS="$CFLAGS $withval" | ||
4776 | fi | ||
4777 | |||
4778 | |||
4779 | fi; | ||
4780 | |||
4781 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4782 | if test "${with_cppflags+set}" = set; then | ||
4783 | withval="$with_cppflags" | ||
4784 | |||
4785 | if test "x$withval" != "xno"; then | ||
4786 | CPPFLAGS="$CPPFLAGS $withval" | ||
4787 | fi | ||
4788 | |||
4789 | |||
4790 | fi; | ||
4791 | |||
4792 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4793 | if test "${with_ldflags+set}" = set; then | ||
4794 | withval="$with_ldflags" | ||
4795 | |||
4796 | if test "x$withval" != "xno" ; then | ||
4797 | LDFLAGS="$LDFLAGS $withval" | ||
4798 | fi | ||
4799 | |||
4800 | |||
4801 | fi; | ||
4802 | |||
4803 | # Check whether --with-libs or --without-libs was given. | ||
4804 | if test "${with_libs+set}" = set; then | ||
4805 | withval="$with_libs" | ||
4806 | |||
4807 | if test "x$withval" != "xno" ; then | ||
4808 | LIBS="$LIBS $withval" | ||
4809 | fi | ||
4810 | |||
4811 | |||
4812 | fi; | ||
4813 | |||
4814 | # Checks for header files. | ||
4815 | |||
4816 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4817 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4818 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4820 | else | ||
4821 | cat >conftest.$ac_ext <<_ACEOF | ||
4822 | #line $LINENO "configure" | ||
4823 | #include "confdefs.h" | ||
4824 | #include <stdlib.h> | ||
4825 | #include <stdarg.h> | ||
4826 | #include <string.h> | ||
4827 | #include <float.h> | ||
4828 | |||
4829 | _ACEOF | ||
4830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4832 | ac_status=$? | ||
4833 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4834 | rm -f conftest.er1 | ||
4835 | cat conftest.err >&5 | ||
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4837 | (exit $ac_status); } >/dev/null; then | ||
4838 | if test -s conftest.err; then | ||
4839 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4840 | else | ||
4841 | ac_cpp_err= | ||
4842 | fi | ||
4843 | else | ||
4844 | ac_cpp_err=yes | ||
4845 | fi | ||
4846 | if test -z "$ac_cpp_err"; then | ||
4847 | ac_cv_header_stdc=yes | ||
4848 | else | ||
4849 | echo "$as_me: failed program was:" >&5 | ||
4850 | cat conftest.$ac_ext >&5 | ||
4851 | ac_cv_header_stdc=no | ||
4852 | fi | ||
4853 | rm -f conftest.err conftest.$ac_ext | ||
4854 | |||
4855 | if test $ac_cv_header_stdc = yes; then | ||
4856 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4857 | cat >conftest.$ac_ext <<_ACEOF | ||
4858 | #line $LINENO "configure" | ||
4859 | #include "confdefs.h" | ||
4860 | #include <string.h> | ||
4861 | |||
4862 | _ACEOF | ||
4863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4864 | egrep "memchr" >/dev/null 2>&1; then | ||
4865 | : | ||
4866 | else | ||
4867 | ac_cv_header_stdc=no | ||
4868 | fi | ||
4869 | rm -f conftest* | ||
4870 | |||
4871 | fi | ||
4872 | |||
4873 | if test $ac_cv_header_stdc = yes; then | ||
4874 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4875 | cat >conftest.$ac_ext <<_ACEOF | ||
4876 | #line $LINENO "configure" | ||
4877 | #include "confdefs.h" | ||
4878 | #include <stdlib.h> | ||
4879 | |||
4880 | _ACEOF | ||
4881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4882 | egrep "free" >/dev/null 2>&1; then | ||
4883 | : | ||
4884 | else | ||
4885 | ac_cv_header_stdc=no | ||
4886 | fi | ||
4887 | rm -f conftest* | ||
4888 | |||
4889 | fi | ||
4890 | |||
4891 | if test $ac_cv_header_stdc = yes; then | ||
4892 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4893 | if test "$cross_compiling" = yes; then | ||
4894 | : | ||
4895 | else | ||
4896 | cat >conftest.$ac_ext <<_ACEOF | ||
4897 | #line $LINENO "configure" | ||
4898 | #include "confdefs.h" | ||
4899 | #include <ctype.h> | ||
4900 | #if ((' ' & 0x0FF) == 0x020) | ||
4901 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4902 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4903 | #else | ||
4904 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
4905 | || ('j' <= (c) && (c) <= 'r') \ | ||
4906 | || ('s' <= (c) && (c) <= 'z')) | ||
4907 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4908 | #endif | ||
4909 | |||
4910 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4911 | int | ||
4912 | main () | ||
4913 | { | ||
4914 | int i; | ||
4915 | for (i = 0; i < 256; i++) | ||
4916 | if (XOR (islower (i), ISLOWER (i)) | ||
4917 | || toupper (i) != TOUPPER (i)) | ||
4918 | exit(2); | ||
4919 | exit (0); | ||
4920 | } | ||
4921 | _ACEOF | ||
4922 | rm -f conftest$ac_exeext | ||
4923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4924 | (eval $ac_link) 2>&5 | ||
4925 | ac_status=$? | ||
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4929 | (eval $ac_try) 2>&5 | ||
4930 | ac_status=$? | ||
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4932 | (exit $ac_status); }; }; then | ||
4933 | : | ||
4934 | else | ||
4935 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4936 | echo "$as_me: failed program was:" >&5 | ||
4937 | cat conftest.$ac_ext >&5 | ||
4938 | ( exit $ac_status ) | ||
4939 | ac_cv_header_stdc=no | ||
4940 | fi | ||
4941 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4942 | fi | ||
4943 | fi | ||
4944 | fi | ||
4945 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4946 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4947 | if test $ac_cv_header_stdc = yes; then | ||
4948 | |||
4949 | cat >>confdefs.h <<\_ACEOF | ||
4950 | @%:@define STDC_HEADERS 1 | ||
4951 | _ACEOF | ||
4952 | |||
4953 | fi | ||
4954 | |||
4955 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4956 | |||
4957 | |||
4958 | |||
4959 | |||
4960 | |||
4961 | |||
4962 | |||
4963 | |||
4964 | |||
4965 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4966 | inttypes.h stdint.h unistd.h | ||
4967 | do | ||
4968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4973 | else | ||
4974 | cat >conftest.$ac_ext <<_ACEOF | ||
4975 | #line $LINENO "configure" | ||
4976 | #include "confdefs.h" | ||
4977 | $ac_includes_default | ||
4978 | |||
4979 | @%:@include <$ac_header> | ||
4980 | _ACEOF | ||
4981 | rm -f conftest.$ac_objext | ||
4982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4983 | (eval $ac_compile) 2>&5 | ||
4984 | ac_status=$? | ||
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4986 | (exit $ac_status); } && | ||
4987 | { ac_try='test -s conftest.$ac_objext' | ||
4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4989 | (eval $ac_try) 2>&5 | ||
4990 | ac_status=$? | ||
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4992 | (exit $ac_status); }; }; then | ||
4993 | eval "$as_ac_Header=yes" | ||
4994 | else | ||
4995 | echo "$as_me: failed program was:" >&5 | ||
4996 | cat conftest.$ac_ext >&5 | ||
4997 | eval "$as_ac_Header=no" | ||
4998 | fi | ||
4999 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5000 | fi | ||
5001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5004 | cat >>confdefs.h <<_ACEOF | ||
5005 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5006 | _ACEOF | ||
5007 | |||
5008 | fi | ||
5009 | |||
5010 | done | ||
5011 | |||
5012 | |||
5013 | |||
5014 | |||
5015 | |||
5016 | |||
5017 | |||
5018 | |||
5019 | |||
5020 | |||
5021 | |||
5022 | |||
5023 | |||
5024 | |||
5025 | |||
5026 | |||
5027 | |||
5028 | |||
5029 | |||
5030 | |||
5031 | |||
5032 | |||
5033 | |||
5034 | |||
5035 | |||
5036 | |||
5037 | |||
5038 | |||
5039 | |||
5040 | |||
5041 | |||
5042 | |||
5043 | |||
5044 | |||
5045 | |||
5046 | |||
5047 | |||
5048 | |||
5049 | |||
5050 | |||
5051 | |||
5052 | |||
5053 | |||
5054 | |||
5055 | |||
5056 | |||
5057 | |||
5058 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | ||
5059 | getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \ | ||
5060 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
5061 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
5062 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
5063 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | ||
5064 | sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | ||
5065 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
5066 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
5067 | util.h utime.h utmp.h utmpx.h | ||
5068 | do | ||
5069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5075 | fi | ||
5076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5078 | else | ||
5079 | # Is the header compilable? | ||
5080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5082 | cat >conftest.$ac_ext <<_ACEOF | ||
5083 | #line $LINENO "configure" | ||
5084 | #include "confdefs.h" | ||
5085 | $ac_includes_default | ||
5086 | @%:@include <$ac_header> | ||
5087 | _ACEOF | ||
5088 | rm -f conftest.$ac_objext | ||
5089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5090 | (eval $ac_compile) 2>&5 | ||
5091 | ac_status=$? | ||
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5093 | (exit $ac_status); } && | ||
5094 | { ac_try='test -s conftest.$ac_objext' | ||
5095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5096 | (eval $ac_try) 2>&5 | ||
5097 | ac_status=$? | ||
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5099 | (exit $ac_status); }; }; then | ||
5100 | ac_header_compiler=yes | ||
5101 | else | ||
5102 | echo "$as_me: failed program was:" >&5 | ||
5103 | cat conftest.$ac_ext >&5 | ||
5104 | ac_header_compiler=no | ||
5105 | fi | ||
5106 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5107 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5108 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5109 | |||
5110 | # Is the header present? | ||
5111 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
5113 | cat >conftest.$ac_ext <<_ACEOF | ||
5114 | #line $LINENO "configure" | ||
5115 | #include "confdefs.h" | ||
5116 | @%:@include <$ac_header> | ||
5117 | _ACEOF | ||
5118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5120 | ac_status=$? | ||
5121 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5122 | rm -f conftest.er1 | ||
5123 | cat conftest.err >&5 | ||
5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5125 | (exit $ac_status); } >/dev/null; then | ||
5126 | if test -s conftest.err; then | ||
5127 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5128 | else | ||
5129 | ac_cpp_err= | ||
5130 | fi | ||
5131 | else | ||
5132 | ac_cpp_err=yes | ||
5133 | fi | ||
5134 | if test -z "$ac_cpp_err"; then | ||
5135 | ac_header_preproc=yes | ||
5136 | else | ||
5137 | echo "$as_me: failed program was:" >&5 | ||
5138 | cat conftest.$ac_ext >&5 | ||
5139 | ac_header_preproc=no | ||
5140 | fi | ||
5141 | rm -f conftest.err conftest.$ac_ext | ||
5142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5143 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
5144 | |||
5145 | # So? What about this header? | ||
5146 | case $ac_header_compiler:$ac_header_preproc in | ||
5147 | yes:no ) | ||
5148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5152 | no:yes ) | ||
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5159 | esac | ||
5160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5164 | else | ||
5165 | eval "$as_ac_Header=$ac_header_preproc" | ||
5166 | fi | ||
5167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5169 | |||
5170 | fi | ||
5171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5172 | cat >>confdefs.h <<_ACEOF | ||
5173 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5174 | _ACEOF | ||
5175 | |||
5176 | fi | ||
5177 | |||
5178 | done | ||
5179 | |||
5180 | |||
5181 | # Checks for libraries. | ||
5182 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
5183 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
5184 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5186 | else | ||
5187 | cat >conftest.$ac_ext <<_ACEOF | ||
5188 | #line $LINENO "configure" | ||
5189 | #include "confdefs.h" | ||
5190 | /* System header to define __stub macros and hopefully few prototypes, | ||
5191 | which can conflict with char yp_match (); below. */ | ||
5192 | #include <assert.h> | ||
5193 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5194 | #ifdef __cplusplus | ||
5195 | extern "C" | ||
5196 | #endif | ||
5197 | /* We use char because int might match the return type of a gcc2 | ||
5198 | builtin and then its argument prototype would still apply. */ | ||
5199 | char yp_match (); | ||
5200 | char (*f) (); | ||
5201 | |||
5202 | #ifdef F77_DUMMY_MAIN | ||
5203 | # ifdef __cplusplus | ||
5204 | extern "C" | ||
5205 | # endif | ||
5206 | int F77_DUMMY_MAIN() { return 1; } | ||
5207 | #endif | ||
5208 | int | ||
5209 | main () | ||
5210 | { | ||
5211 | /* The GNU C library defines this for functions which it implements | ||
5212 | to always fail with ENOSYS. Some functions are actually named | ||
5213 | something starting with __ and the normal name is an alias. */ | ||
5214 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
5215 | choke me | ||
5216 | #else | ||
5217 | f = yp_match; | ||
5218 | #endif | ||
5219 | |||
5220 | ; | ||
5221 | return 0; | ||
5222 | } | ||
5223 | _ACEOF | ||
5224 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5226 | (eval $ac_link) 2>&5 | ||
5227 | ac_status=$? | ||
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5229 | (exit $ac_status); } && | ||
5230 | { ac_try='test -s conftest$ac_exeext' | ||
5231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5232 | (eval $ac_try) 2>&5 | ||
5233 | ac_status=$? | ||
5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5235 | (exit $ac_status); }; }; then | ||
5236 | ac_cv_func_yp_match=yes | ||
5237 | else | ||
5238 | echo "$as_me: failed program was:" >&5 | ||
5239 | cat conftest.$ac_ext >&5 | ||
5240 | ac_cv_func_yp_match=no | ||
5241 | fi | ||
5242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5243 | fi | ||
5244 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
5245 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
5246 | if test $ac_cv_func_yp_match = yes; then | ||
5247 | : | ||
5248 | else | ||
5249 | |||
5250 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
5251 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
5252 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5254 | else | ||
5255 | ac_check_lib_save_LIBS=$LIBS | ||
5256 | LIBS="-lnsl $LIBS" | ||
5257 | cat >conftest.$ac_ext <<_ACEOF | ||
5258 | #line $LINENO "configure" | ||
5259 | #include "confdefs.h" | ||
5260 | |||
5261 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5262 | #ifdef __cplusplus | ||
5263 | extern "C" | ||
5264 | #endif | ||
5265 | /* We use char because int might match the return type of a gcc2 | ||
5266 | builtin and then its argument prototype would still apply. */ | ||
5267 | char yp_match (); | ||
5268 | #ifdef F77_DUMMY_MAIN | ||
5269 | # ifdef __cplusplus | ||
5270 | extern "C" | ||
5271 | # endif | ||
5272 | int F77_DUMMY_MAIN() { return 1; } | ||
5273 | #endif | ||
5274 | int | ||
5275 | main () | ||
5276 | { | ||
5277 | yp_match (); | ||
5278 | ; | ||
5279 | return 0; | ||
5280 | } | ||
5281 | _ACEOF | ||
5282 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5284 | (eval $ac_link) 2>&5 | ||
5285 | ac_status=$? | ||
5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5287 | (exit $ac_status); } && | ||
5288 | { ac_try='test -s conftest$ac_exeext' | ||
5289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5290 | (eval $ac_try) 2>&5 | ||
5291 | ac_status=$? | ||
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5293 | (exit $ac_status); }; }; then | ||
5294 | ac_cv_lib_nsl_yp_match=yes | ||
5295 | else | ||
5296 | echo "$as_me: failed program was:" >&5 | ||
5297 | cat conftest.$ac_ext >&5 | ||
5298 | ac_cv_lib_nsl_yp_match=no | ||
5299 | fi | ||
5300 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5301 | LIBS=$ac_check_lib_save_LIBS | ||
5302 | fi | ||
5303 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
5304 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
5305 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
5306 | cat >>confdefs.h <<_ACEOF | ||
5307 | @%:@define HAVE_LIBNSL 1 | ||
5308 | _ACEOF | ||
5309 | |||
5310 | LIBS="-lnsl $LIBS" | ||
5311 | |||
5312 | fi | ||
5313 | |||
5314 | fi | ||
5315 | |||
5316 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
5317 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
5318 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5320 | else | ||
5321 | cat >conftest.$ac_ext <<_ACEOF | ||
5322 | #line $LINENO "configure" | ||
5323 | #include "confdefs.h" | ||
5324 | /* System header to define __stub macros and hopefully few prototypes, | ||
5325 | which can conflict with char setsockopt (); below. */ | ||
5326 | #include <assert.h> | ||
5327 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5328 | #ifdef __cplusplus | ||
5329 | extern "C" | ||
5330 | #endif | ||
5331 | /* We use char because int might match the return type of a gcc2 | ||
5332 | builtin and then its argument prototype would still apply. */ | ||
5333 | char setsockopt (); | ||
5334 | char (*f) (); | ||
5335 | |||
5336 | #ifdef F77_DUMMY_MAIN | ||
5337 | # ifdef __cplusplus | ||
5338 | extern "C" | ||
5339 | # endif | ||
5340 | int F77_DUMMY_MAIN() { return 1; } | ||
5341 | #endif | ||
5342 | int | ||
5343 | main () | ||
5344 | { | ||
5345 | /* The GNU C library defines this for functions which it implements | ||
5346 | to always fail with ENOSYS. Some functions are actually named | ||
5347 | something starting with __ and the normal name is an alias. */ | ||
5348 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
5349 | choke me | ||
5350 | #else | ||
5351 | f = setsockopt; | ||
5352 | #endif | ||
5353 | |||
5354 | ; | ||
5355 | return 0; | ||
5356 | } | ||
5357 | _ACEOF | ||
5358 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5360 | (eval $ac_link) 2>&5 | ||
5361 | ac_status=$? | ||
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5363 | (exit $ac_status); } && | ||
5364 | { ac_try='test -s conftest$ac_exeext' | ||
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5366 | (eval $ac_try) 2>&5 | ||
5367 | ac_status=$? | ||
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5369 | (exit $ac_status); }; }; then | ||
5370 | ac_cv_func_setsockopt=yes | ||
5371 | else | ||
5372 | echo "$as_me: failed program was:" >&5 | ||
5373 | cat conftest.$ac_ext >&5 | ||
5374 | ac_cv_func_setsockopt=no | ||
5375 | fi | ||
5376 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5377 | fi | ||
5378 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
5379 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5380 | if test $ac_cv_func_setsockopt = yes; then | ||
5381 | : | ||
5382 | else | ||
5383 | |||
5384 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
5385 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5386 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5388 | else | ||
5389 | ac_check_lib_save_LIBS=$LIBS | ||
5390 | LIBS="-lsocket $LIBS" | ||
5391 | cat >conftest.$ac_ext <<_ACEOF | ||
5392 | #line $LINENO "configure" | ||
5393 | #include "confdefs.h" | ||
5394 | |||
5395 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5396 | #ifdef __cplusplus | ||
5397 | extern "C" | ||
5398 | #endif | ||
5399 | /* We use char because int might match the return type of a gcc2 | ||
5400 | builtin and then its argument prototype would still apply. */ | ||
5401 | char setsockopt (); | ||
5402 | #ifdef F77_DUMMY_MAIN | ||
5403 | # ifdef __cplusplus | ||
5404 | extern "C" | ||
5405 | # endif | ||
5406 | int F77_DUMMY_MAIN() { return 1; } | ||
5407 | #endif | ||
5408 | int | ||
5409 | main () | ||
5410 | { | ||
5411 | setsockopt (); | ||
5412 | ; | ||
5413 | return 0; | ||
5414 | } | ||
5415 | _ACEOF | ||
5416 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5418 | (eval $ac_link) 2>&5 | ||
5419 | ac_status=$? | ||
5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5421 | (exit $ac_status); } && | ||
5422 | { ac_try='test -s conftest$ac_exeext' | ||
5423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5424 | (eval $ac_try) 2>&5 | ||
5425 | ac_status=$? | ||
5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5427 | (exit $ac_status); }; }; then | ||
5428 | ac_cv_lib_socket_setsockopt=yes | ||
5429 | else | ||
5430 | echo "$as_me: failed program was:" >&5 | ||
5431 | cat conftest.$ac_ext >&5 | ||
5432 | ac_cv_lib_socket_setsockopt=no | ||
5433 | fi | ||
5434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5435 | LIBS=$ac_check_lib_save_LIBS | ||
5436 | fi | ||
5437 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5438 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5439 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5440 | cat >>confdefs.h <<_ACEOF | ||
5441 | @%:@define HAVE_LIBSOCKET 1 | ||
5442 | _ACEOF | ||
5443 | |||
5444 | LIBS="-lsocket $LIBS" | ||
5445 | |||
5446 | fi | ||
5447 | |||
5448 | fi | ||
5449 | |||
5450 | |||
5451 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5452 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5453 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | ||
5454 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5455 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5457 | else | ||
5458 | ac_check_lib_save_LIBS=$LIBS | ||
5459 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5460 | cat >conftest.$ac_ext <<_ACEOF | ||
5461 | #line $LINENO "configure" | ||
5462 | #include "confdefs.h" | ||
5463 | |||
5464 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5465 | #ifdef __cplusplus | ||
5466 | extern "C" | ||
5467 | #endif | ||
5468 | /* We use char because int might match the return type of a gcc2 | ||
5469 | builtin and then its argument prototype would still apply. */ | ||
5470 | char innetgr (); | ||
5471 | #ifdef F77_DUMMY_MAIN | ||
5472 | # ifdef __cplusplus | ||
5473 | extern "C" | ||
5474 | # endif | ||
5475 | int F77_DUMMY_MAIN() { return 1; } | ||
5476 | #endif | ||
5477 | int | ||
5478 | main () | ||
5479 | { | ||
5480 | innetgr (); | ||
5481 | ; | ||
5482 | return 0; | ||
5483 | } | ||
5484 | _ACEOF | ||
5485 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5487 | (eval $ac_link) 2>&5 | ||
5488 | ac_status=$? | ||
5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5490 | (exit $ac_status); } && | ||
5491 | { ac_try='test -s conftest$ac_exeext' | ||
5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5493 | (eval $ac_try) 2>&5 | ||
5494 | ac_status=$? | ||
5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5496 | (exit $ac_status); }; }; then | ||
5497 | ac_cv_lib_rpc_innetgr=yes | ||
5498 | else | ||
5499 | echo "$as_me: failed program was:" >&5 | ||
5500 | cat conftest.$ac_ext >&5 | ||
5501 | ac_cv_lib_rpc_innetgr=no | ||
5502 | fi | ||
5503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5504 | LIBS=$ac_check_lib_save_LIBS | ||
5505 | fi | ||
5506 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5507 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5508 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5509 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5510 | fi | ||
5511 | |||
5512 | fi | ||
5513 | fi | ||
5514 | |||
5515 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
5516 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5517 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5519 | else | ||
5520 | cat >conftest.$ac_ext <<_ACEOF | ||
5521 | #line $LINENO "configure" | ||
5522 | #include "confdefs.h" | ||
5523 | /* System header to define __stub macros and hopefully few prototypes, | ||
5524 | which can conflict with char getspnam (); below. */ | ||
5525 | #include <assert.h> | ||
5526 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5527 | #ifdef __cplusplus | ||
5528 | extern "C" | ||
5529 | #endif | ||
5530 | /* We use char because int might match the return type of a gcc2 | ||
5531 | builtin and then its argument prototype would still apply. */ | ||
5532 | char getspnam (); | ||
5533 | char (*f) (); | ||
5534 | |||
5535 | #ifdef F77_DUMMY_MAIN | ||
5536 | # ifdef __cplusplus | ||
5537 | extern "C" | ||
5538 | # endif | ||
5539 | int F77_DUMMY_MAIN() { return 1; } | ||
5540 | #endif | ||
5541 | int | ||
5542 | main () | ||
5543 | { | ||
5544 | /* The GNU C library defines this for functions which it implements | ||
5545 | to always fail with ENOSYS. Some functions are actually named | ||
5546 | something starting with __ and the normal name is an alias. */ | ||
5547 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5548 | choke me | ||
5549 | #else | ||
5550 | f = getspnam; | ||
5551 | #endif | ||
5552 | |||
5553 | ; | ||
5554 | return 0; | ||
5555 | } | ||
5556 | _ACEOF | ||
5557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5559 | (eval $ac_link) 2>&5 | ||
5560 | ac_status=$? | ||
5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5562 | (exit $ac_status); } && | ||
5563 | { ac_try='test -s conftest$ac_exeext' | ||
5564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5565 | (eval $ac_try) 2>&5 | ||
5566 | ac_status=$? | ||
5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5568 | (exit $ac_status); }; }; then | ||
5569 | ac_cv_func_getspnam=yes | ||
5570 | else | ||
5571 | echo "$as_me: failed program was:" >&5 | ||
5572 | cat conftest.$ac_ext >&5 | ||
5573 | ac_cv_func_getspnam=no | ||
5574 | fi | ||
5575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5576 | fi | ||
5577 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
5578 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5579 | if test $ac_cv_func_getspnam = yes; then | ||
5580 | : | ||
5581 | else | ||
5582 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
5583 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5584 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5586 | else | ||
5587 | ac_check_lib_save_LIBS=$LIBS | ||
5588 | LIBS="-lgen $LIBS" | ||
5589 | cat >conftest.$ac_ext <<_ACEOF | ||
5590 | #line $LINENO "configure" | ||
5591 | #include "confdefs.h" | ||
5592 | |||
5593 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5594 | #ifdef __cplusplus | ||
5595 | extern "C" | ||
5596 | #endif | ||
5597 | /* We use char because int might match the return type of a gcc2 | ||
5598 | builtin and then its argument prototype would still apply. */ | ||
5599 | char getspnam (); | ||
5600 | #ifdef F77_DUMMY_MAIN | ||
5601 | # ifdef __cplusplus | ||
5602 | extern "C" | ||
5603 | # endif | ||
5604 | int F77_DUMMY_MAIN() { return 1; } | ||
5605 | #endif | ||
5606 | int | ||
5607 | main () | ||
5608 | { | ||
5609 | getspnam (); | ||
5610 | ; | ||
5611 | return 0; | ||
5612 | } | ||
5613 | _ACEOF | ||
5614 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5616 | (eval $ac_link) 2>&5 | ||
5617 | ac_status=$? | ||
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5619 | (exit $ac_status); } && | ||
5620 | { ac_try='test -s conftest$ac_exeext' | ||
5621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5622 | (eval $ac_try) 2>&5 | ||
5623 | ac_status=$? | ||
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5625 | (exit $ac_status); }; }; then | ||
5626 | ac_cv_lib_gen_getspnam=yes | ||
5627 | else | ||
5628 | echo "$as_me: failed program was:" >&5 | ||
5629 | cat conftest.$ac_ext >&5 | ||
5630 | ac_cv_lib_gen_getspnam=no | ||
5631 | fi | ||
5632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5633 | LIBS=$ac_check_lib_save_LIBS | ||
5634 | fi | ||
5635 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5636 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5637 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5638 | LIBS="$LIBS -lgen" | ||
5639 | fi | ||
5640 | |||
5641 | fi | ||
5642 | |||
5643 | |||
5644 | |||
5645 | # Check whether --with-rpath or --without-rpath was given. | ||
5646 | if test "${with_rpath+set}" = set; then | ||
5647 | withval="$with_rpath" | ||
5648 | |||
5649 | if test "x$withval" = "xno" ; then | ||
5650 | need_dash_r="" | ||
5651 | fi | ||
5652 | if test "x$withval" = "xyes" ; then | ||
5653 | need_dash_r=1 | ||
5654 | fi | ||
5655 | |||
5656 | |||
5657 | fi; | ||
5658 | |||
5659 | |||
5660 | # Check whether --with-zlib or --without-zlib was given. | ||
5661 | if test "${with_zlib+set}" = set; then | ||
5662 | withval="$with_zlib" | ||
5663 | |||
5664 | if test "x$withval" = "xno" ; then | ||
5665 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
5666 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5667 | { (exit 1); exit 1; }; } | ||
5668 | fi | ||
5669 | if test -d "$withval/lib"; then | ||
5670 | if test -n "${need_dash_r}"; then | ||
5671 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5672 | else | ||
5673 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5674 | fi | ||
5675 | else | ||
5676 | if test -n "${need_dash_r}"; then | ||
5677 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5678 | else | ||
5679 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5680 | fi | ||
5681 | fi | ||
5682 | if test -d "$withval/include"; then | ||
5683 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5684 | else | ||
5685 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5686 | fi | ||
5687 | |||
5688 | |||
5689 | fi; | ||
5690 | |||
5691 | |||
5692 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
5693 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5694 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5696 | else | ||
5697 | ac_check_lib_save_LIBS=$LIBS | ||
5698 | LIBS="-lz $LIBS" | ||
5699 | cat >conftest.$ac_ext <<_ACEOF | ||
5700 | #line $LINENO "configure" | ||
5701 | #include "confdefs.h" | ||
5702 | |||
5703 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5704 | #ifdef __cplusplus | ||
5705 | extern "C" | ||
5706 | #endif | ||
5707 | /* We use char because int might match the return type of a gcc2 | ||
5708 | builtin and then its argument prototype would still apply. */ | ||
5709 | char deflate (); | ||
5710 | #ifdef F77_DUMMY_MAIN | ||
5711 | # ifdef __cplusplus | ||
5712 | extern "C" | ||
5713 | # endif | ||
5714 | int F77_DUMMY_MAIN() { return 1; } | ||
5715 | #endif | ||
5716 | int | ||
5717 | main () | ||
5718 | { | ||
5719 | deflate (); | ||
5720 | ; | ||
5721 | return 0; | ||
5722 | } | ||
5723 | _ACEOF | ||
5724 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5726 | (eval $ac_link) 2>&5 | ||
5727 | ac_status=$? | ||
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5729 | (exit $ac_status); } && | ||
5730 | { ac_try='test -s conftest$ac_exeext' | ||
5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5732 | (eval $ac_try) 2>&5 | ||
5733 | ac_status=$? | ||
5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5735 | (exit $ac_status); }; }; then | ||
5736 | ac_cv_lib_z_deflate=yes | ||
5737 | else | ||
5738 | echo "$as_me: failed program was:" >&5 | ||
5739 | cat conftest.$ac_ext >&5 | ||
5740 | ac_cv_lib_z_deflate=no | ||
5741 | fi | ||
5742 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5743 | LIBS=$ac_check_lib_save_LIBS | ||
5744 | fi | ||
5745 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
5746 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5747 | if test $ac_cv_lib_z_deflate = yes; then | ||
5748 | cat >>confdefs.h <<_ACEOF | ||
5749 | @%:@define HAVE_LIBZ 1 | ||
5750 | _ACEOF | ||
5751 | |||
5752 | LIBS="-lz $LIBS" | ||
5753 | |||
5754 | else | ||
5755 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5756 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5757 | { (exit 1); exit 1; }; } | ||
5758 | fi | ||
5759 | |||
5760 | |||
5761 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
5762 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5763 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5765 | else | ||
5766 | cat >conftest.$ac_ext <<_ACEOF | ||
5767 | #line $LINENO "configure" | ||
5768 | #include "confdefs.h" | ||
5769 | /* System header to define __stub macros and hopefully few prototypes, | ||
5770 | which can conflict with char strcasecmp (); below. */ | ||
5771 | #include <assert.h> | ||
5772 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5773 | #ifdef __cplusplus | ||
5774 | extern "C" | ||
5775 | #endif | ||
5776 | /* We use char because int might match the return type of a gcc2 | ||
5777 | builtin and then its argument prototype would still apply. */ | ||
5778 | char strcasecmp (); | ||
5779 | char (*f) (); | ||
5780 | |||
5781 | #ifdef F77_DUMMY_MAIN | ||
5782 | # ifdef __cplusplus | ||
5783 | extern "C" | ||
5784 | # endif | ||
5785 | int F77_DUMMY_MAIN() { return 1; } | ||
5786 | #endif | ||
5787 | int | ||
5788 | main () | ||
5789 | { | ||
5790 | /* The GNU C library defines this for functions which it implements | ||
5791 | to always fail with ENOSYS. Some functions are actually named | ||
5792 | something starting with __ and the normal name is an alias. */ | ||
5793 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5794 | choke me | ||
5795 | #else | ||
5796 | f = strcasecmp; | ||
5797 | #endif | ||
5798 | |||
5799 | ; | ||
5800 | return 0; | ||
5801 | } | ||
5802 | _ACEOF | ||
5803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5805 | (eval $ac_link) 2>&5 | ||
5806 | ac_status=$? | ||
5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5808 | (exit $ac_status); } && | ||
5809 | { ac_try='test -s conftest$ac_exeext' | ||
5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5811 | (eval $ac_try) 2>&5 | ||
5812 | ac_status=$? | ||
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5814 | (exit $ac_status); }; }; then | ||
5815 | ac_cv_func_strcasecmp=yes | ||
5816 | else | ||
5817 | echo "$as_me: failed program was:" >&5 | ||
5818 | cat conftest.$ac_ext >&5 | ||
5819 | ac_cv_func_strcasecmp=no | ||
5820 | fi | ||
5821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5822 | fi | ||
5823 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
5824 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5825 | if test $ac_cv_func_strcasecmp = yes; then | ||
5826 | : | ||
5827 | else | ||
5828 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
5829 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5830 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5832 | else | ||
5833 | ac_check_lib_save_LIBS=$LIBS | ||
5834 | LIBS="-lresolv $LIBS" | ||
5835 | cat >conftest.$ac_ext <<_ACEOF | ||
5836 | #line $LINENO "configure" | ||
5837 | #include "confdefs.h" | ||
5838 | |||
5839 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5840 | #ifdef __cplusplus | ||
5841 | extern "C" | ||
5842 | #endif | ||
5843 | /* We use char because int might match the return type of a gcc2 | ||
5844 | builtin and then its argument prototype would still apply. */ | ||
5845 | char strcasecmp (); | ||
5846 | #ifdef F77_DUMMY_MAIN | ||
5847 | # ifdef __cplusplus | ||
5848 | extern "C" | ||
5849 | # endif | ||
5850 | int F77_DUMMY_MAIN() { return 1; } | ||
5851 | #endif | ||
5852 | int | ||
5853 | main () | ||
5854 | { | ||
5855 | strcasecmp (); | ||
5856 | ; | ||
5857 | return 0; | ||
5858 | } | ||
5859 | _ACEOF | ||
5860 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5862 | (eval $ac_link) 2>&5 | ||
5863 | ac_status=$? | ||
5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5865 | (exit $ac_status); } && | ||
5866 | { ac_try='test -s conftest$ac_exeext' | ||
5867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5868 | (eval $ac_try) 2>&5 | ||
5869 | ac_status=$? | ||
5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5871 | (exit $ac_status); }; }; then | ||
5872 | ac_cv_lib_resolv_strcasecmp=yes | ||
5873 | else | ||
5874 | echo "$as_me: failed program was:" >&5 | ||
5875 | cat conftest.$ac_ext >&5 | ||
5876 | ac_cv_lib_resolv_strcasecmp=no | ||
5877 | fi | ||
5878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5879 | LIBS=$ac_check_lib_save_LIBS | ||
5880 | fi | ||
5881 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5882 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5883 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5884 | LIBS="$LIBS -lresolv" | ||
5885 | fi | ||
5886 | |||
5887 | |||
5888 | fi | ||
5889 | |||
5890 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
5891 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5892 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5894 | else | ||
5895 | cat >conftest.$ac_ext <<_ACEOF | ||
5896 | #line $LINENO "configure" | ||
5897 | #include "confdefs.h" | ||
5898 | /* System header to define __stub macros and hopefully few prototypes, | ||
5899 | which can conflict with char utimes (); below. */ | ||
5900 | #include <assert.h> | ||
5901 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5902 | #ifdef __cplusplus | ||
5903 | extern "C" | ||
5904 | #endif | ||
5905 | /* We use char because int might match the return type of a gcc2 | ||
5906 | builtin and then its argument prototype would still apply. */ | ||
5907 | char utimes (); | ||
5908 | char (*f) (); | ||
5909 | |||
5910 | #ifdef F77_DUMMY_MAIN | ||
5911 | # ifdef __cplusplus | ||
5912 | extern "C" | ||
5913 | # endif | ||
5914 | int F77_DUMMY_MAIN() { return 1; } | ||
5915 | #endif | ||
5916 | int | ||
5917 | main () | ||
5918 | { | ||
5919 | /* The GNU C library defines this for functions which it implements | ||
5920 | to always fail with ENOSYS. Some functions are actually named | ||
5921 | something starting with __ and the normal name is an alias. */ | ||
5922 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5923 | choke me | ||
5924 | #else | ||
5925 | f = utimes; | ||
5926 | #endif | ||
5927 | |||
5928 | ; | ||
5929 | return 0; | ||
5930 | } | ||
5931 | _ACEOF | ||
5932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5934 | (eval $ac_link) 2>&5 | ||
5935 | ac_status=$? | ||
5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5937 | (exit $ac_status); } && | ||
5938 | { ac_try='test -s conftest$ac_exeext' | ||
5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5940 | (eval $ac_try) 2>&5 | ||
5941 | ac_status=$? | ||
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5943 | (exit $ac_status); }; }; then | ||
5944 | ac_cv_func_utimes=yes | ||
5945 | else | ||
5946 | echo "$as_me: failed program was:" >&5 | ||
5947 | cat conftest.$ac_ext >&5 | ||
5948 | ac_cv_func_utimes=no | ||
5949 | fi | ||
5950 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5951 | fi | ||
5952 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
5953 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5954 | if test $ac_cv_func_utimes = yes; then | ||
5955 | : | ||
5956 | else | ||
5957 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
5958 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5959 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5961 | else | ||
5962 | ac_check_lib_save_LIBS=$LIBS | ||
5963 | LIBS="-lc89 $LIBS" | ||
5964 | cat >conftest.$ac_ext <<_ACEOF | ||
5965 | #line $LINENO "configure" | ||
5966 | #include "confdefs.h" | ||
5967 | |||
5968 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5969 | #ifdef __cplusplus | ||
5970 | extern "C" | ||
5971 | #endif | ||
5972 | /* We use char because int might match the return type of a gcc2 | ||
5973 | builtin and then its argument prototype would still apply. */ | ||
5974 | char utimes (); | ||
5975 | #ifdef F77_DUMMY_MAIN | ||
5976 | # ifdef __cplusplus | ||
5977 | extern "C" | ||
5978 | # endif | ||
5979 | int F77_DUMMY_MAIN() { return 1; } | ||
5980 | #endif | ||
5981 | int | ||
5982 | main () | ||
5983 | { | ||
5984 | utimes (); | ||
5985 | ; | ||
5986 | return 0; | ||
5987 | } | ||
5988 | _ACEOF | ||
5989 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5991 | (eval $ac_link) 2>&5 | ||
5992 | ac_status=$? | ||
5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5994 | (exit $ac_status); } && | ||
5995 | { ac_try='test -s conftest$ac_exeext' | ||
5996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5997 | (eval $ac_try) 2>&5 | ||
5998 | ac_status=$? | ||
5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6000 | (exit $ac_status); }; }; then | ||
6001 | ac_cv_lib_c89_utimes=yes | ||
6002 | else | ||
6003 | echo "$as_me: failed program was:" >&5 | ||
6004 | cat conftest.$ac_ext >&5 | ||
6005 | ac_cv_lib_c89_utimes=no | ||
6006 | fi | ||
6007 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6008 | LIBS=$ac_check_lib_save_LIBS | ||
6009 | fi | ||
6010 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
6011 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
6012 | if test $ac_cv_lib_c89_utimes = yes; then | ||
6013 | cat >>confdefs.h <<\_ACEOF | ||
6014 | @%:@define HAVE_UTIMES 1 | ||
6015 | _ACEOF | ||
6016 | |||
6017 | LIBS="$LIBS -lc89" | ||
6018 | fi | ||
6019 | |||
6020 | |||
6021 | fi | ||
6022 | |||
6023 | |||
6024 | |||
6025 | for ac_header in libutil.h | ||
6026 | do | ||
6027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6033 | fi | ||
6034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6036 | else | ||
6037 | # Is the header compilable? | ||
6038 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6039 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6040 | cat >conftest.$ac_ext <<_ACEOF | ||
6041 | #line $LINENO "configure" | ||
6042 | #include "confdefs.h" | ||
6043 | $ac_includes_default | ||
6044 | @%:@include <$ac_header> | ||
6045 | _ACEOF | ||
6046 | rm -f conftest.$ac_objext | ||
6047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6048 | (eval $ac_compile) 2>&5 | ||
6049 | ac_status=$? | ||
6050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6051 | (exit $ac_status); } && | ||
6052 | { ac_try='test -s conftest.$ac_objext' | ||
6053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6054 | (eval $ac_try) 2>&5 | ||
6055 | ac_status=$? | ||
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6057 | (exit $ac_status); }; }; then | ||
6058 | ac_header_compiler=yes | ||
6059 | else | ||
6060 | echo "$as_me: failed program was:" >&5 | ||
6061 | cat conftest.$ac_ext >&5 | ||
6062 | ac_header_compiler=no | ||
6063 | fi | ||
6064 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6065 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6066 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6067 | |||
6068 | # Is the header present? | ||
6069 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6070 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6071 | cat >conftest.$ac_ext <<_ACEOF | ||
6072 | #line $LINENO "configure" | ||
6073 | #include "confdefs.h" | ||
6074 | @%:@include <$ac_header> | ||
6075 | _ACEOF | ||
6076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6078 | ac_status=$? | ||
6079 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6080 | rm -f conftest.er1 | ||
6081 | cat conftest.err >&5 | ||
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6083 | (exit $ac_status); } >/dev/null; then | ||
6084 | if test -s conftest.err; then | ||
6085 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6086 | else | ||
6087 | ac_cpp_err= | ||
6088 | fi | ||
6089 | else | ||
6090 | ac_cpp_err=yes | ||
6091 | fi | ||
6092 | if test -z "$ac_cpp_err"; then | ||
6093 | ac_header_preproc=yes | ||
6094 | else | ||
6095 | echo "$as_me: failed program was:" >&5 | ||
6096 | cat conftest.$ac_ext >&5 | ||
6097 | ac_header_preproc=no | ||
6098 | fi | ||
6099 | rm -f conftest.err conftest.$ac_ext | ||
6100 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6101 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6102 | |||
6103 | # So? What about this header? | ||
6104 | case $ac_header_compiler:$ac_header_preproc in | ||
6105 | yes:no ) | ||
6106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6109 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6110 | no:yes ) | ||
6111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6116 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6117 | esac | ||
6118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6122 | else | ||
6123 | eval "$as_ac_Header=$ac_header_preproc" | ||
6124 | fi | ||
6125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6127 | |||
6128 | fi | ||
6129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6130 | cat >>confdefs.h <<_ACEOF | ||
6131 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6132 | _ACEOF | ||
6133 | |||
6134 | fi | ||
6135 | |||
6136 | done | ||
6137 | |||
6138 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
6139 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
6140 | if test "${ac_cv_search_login+set}" = set; then | ||
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6142 | else | ||
6143 | ac_func_search_save_LIBS=$LIBS | ||
6144 | ac_cv_search_login=no | ||
6145 | cat >conftest.$ac_ext <<_ACEOF | ||
6146 | #line $LINENO "configure" | ||
6147 | #include "confdefs.h" | ||
6148 | |||
6149 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6150 | #ifdef __cplusplus | ||
6151 | extern "C" | ||
6152 | #endif | ||
6153 | /* We use char because int might match the return type of a gcc2 | ||
6154 | builtin and then its argument prototype would still apply. */ | ||
6155 | char login (); | ||
6156 | #ifdef F77_DUMMY_MAIN | ||
6157 | # ifdef __cplusplus | ||
6158 | extern "C" | ||
6159 | # endif | ||
6160 | int F77_DUMMY_MAIN() { return 1; } | ||
6161 | #endif | ||
6162 | int | ||
6163 | main () | ||
6164 | { | ||
6165 | login (); | ||
6166 | ; | ||
6167 | return 0; | ||
6168 | } | ||
6169 | _ACEOF | ||
6170 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6172 | (eval $ac_link) 2>&5 | ||
6173 | ac_status=$? | ||
6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6175 | (exit $ac_status); } && | ||
6176 | { ac_try='test -s conftest$ac_exeext' | ||
6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6178 | (eval $ac_try) 2>&5 | ||
6179 | ac_status=$? | ||
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6181 | (exit $ac_status); }; }; then | ||
6182 | ac_cv_search_login="none required" | ||
6183 | else | ||
6184 | echo "$as_me: failed program was:" >&5 | ||
6185 | cat conftest.$ac_ext >&5 | ||
6186 | fi | ||
6187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6188 | if test "$ac_cv_search_login" = no; then | ||
6189 | for ac_lib in util bsd; do | ||
6190 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6191 | cat >conftest.$ac_ext <<_ACEOF | ||
6192 | #line $LINENO "configure" | ||
6193 | #include "confdefs.h" | ||
6194 | |||
6195 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6196 | #ifdef __cplusplus | ||
6197 | extern "C" | ||
6198 | #endif | ||
6199 | /* We use char because int might match the return type of a gcc2 | ||
6200 | builtin and then its argument prototype would still apply. */ | ||
6201 | char login (); | ||
6202 | #ifdef F77_DUMMY_MAIN | ||
6203 | # ifdef __cplusplus | ||
6204 | extern "C" | ||
6205 | # endif | ||
6206 | int F77_DUMMY_MAIN() { return 1; } | ||
6207 | #endif | ||
6208 | int | ||
6209 | main () | ||
6210 | { | ||
6211 | login (); | ||
6212 | ; | ||
6213 | return 0; | ||
6214 | } | ||
6215 | _ACEOF | ||
6216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6218 | (eval $ac_link) 2>&5 | ||
6219 | ac_status=$? | ||
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6221 | (exit $ac_status); } && | ||
6222 | { ac_try='test -s conftest$ac_exeext' | ||
6223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6224 | (eval $ac_try) 2>&5 | ||
6225 | ac_status=$? | ||
6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6227 | (exit $ac_status); }; }; then | ||
6228 | ac_cv_search_login="-l$ac_lib" | ||
6229 | break | ||
6230 | else | ||
6231 | echo "$as_me: failed program was:" >&5 | ||
6232 | cat conftest.$ac_ext >&5 | ||
6233 | fi | ||
6234 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6235 | done | ||
6236 | fi | ||
6237 | LIBS=$ac_func_search_save_LIBS | ||
6238 | fi | ||
6239 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
6240 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6241 | if test "$ac_cv_search_login" != no; then | ||
6242 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6243 | cat >>confdefs.h <<\_ACEOF | ||
6244 | @%:@define HAVE_LOGIN 1 | ||
6245 | _ACEOF | ||
6246 | |||
6247 | fi | ||
6248 | |||
6249 | |||
6250 | |||
6251 | |||
6252 | for ac_func in logout updwtmp logwtmp | ||
6253 | do | ||
6254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6255 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6257 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6259 | else | ||
6260 | cat >conftest.$ac_ext <<_ACEOF | ||
6261 | #line $LINENO "configure" | ||
6262 | #include "confdefs.h" | ||
6263 | /* System header to define __stub macros and hopefully few prototypes, | ||
6264 | which can conflict with char $ac_func (); below. */ | ||
6265 | #include <assert.h> | ||
6266 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6267 | #ifdef __cplusplus | ||
6268 | extern "C" | ||
6269 | #endif | ||
6270 | /* We use char because int might match the return type of a gcc2 | ||
6271 | builtin and then its argument prototype would still apply. */ | ||
6272 | char $ac_func (); | ||
6273 | char (*f) (); | ||
6274 | |||
6275 | #ifdef F77_DUMMY_MAIN | ||
6276 | # ifdef __cplusplus | ||
6277 | extern "C" | ||
6278 | # endif | ||
6279 | int F77_DUMMY_MAIN() { return 1; } | ||
6280 | #endif | ||
6281 | int | ||
6282 | main () | ||
6283 | { | ||
6284 | /* The GNU C library defines this for functions which it implements | ||
6285 | to always fail with ENOSYS. Some functions are actually named | ||
6286 | something starting with __ and the normal name is an alias. */ | ||
6287 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6288 | choke me | ||
6289 | #else | ||
6290 | f = $ac_func; | ||
6291 | #endif | ||
6292 | |||
6293 | ; | ||
6294 | return 0; | ||
6295 | } | ||
6296 | _ACEOF | ||
6297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6299 | (eval $ac_link) 2>&5 | ||
6300 | ac_status=$? | ||
6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6302 | (exit $ac_status); } && | ||
6303 | { ac_try='test -s conftest$ac_exeext' | ||
6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6305 | (eval $ac_try) 2>&5 | ||
6306 | ac_status=$? | ||
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6308 | (exit $ac_status); }; }; then | ||
6309 | eval "$as_ac_var=yes" | ||
6310 | else | ||
6311 | echo "$as_me: failed program was:" >&5 | ||
6312 | cat conftest.$ac_ext >&5 | ||
6313 | eval "$as_ac_var=no" | ||
6314 | fi | ||
6315 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6316 | fi | ||
6317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6318 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6319 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6320 | cat >>confdefs.h <<_ACEOF | ||
6321 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6322 | _ACEOF | ||
6323 | |||
6324 | fi | ||
6325 | done | ||
6326 | |||
6327 | |||
6328 | |||
6329 | for ac_func in strftime | ||
6330 | do | ||
6331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6332 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6334 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6336 | else | ||
6337 | cat >conftest.$ac_ext <<_ACEOF | ||
6338 | #line $LINENO "configure" | ||
6339 | #include "confdefs.h" | ||
6340 | /* System header to define __stub macros and hopefully few prototypes, | ||
6341 | which can conflict with char $ac_func (); below. */ | ||
6342 | #include <assert.h> | ||
6343 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6344 | #ifdef __cplusplus | ||
6345 | extern "C" | ||
6346 | #endif | ||
6347 | /* We use char because int might match the return type of a gcc2 | ||
6348 | builtin and then its argument prototype would still apply. */ | ||
6349 | char $ac_func (); | ||
6350 | char (*f) (); | ||
6351 | |||
6352 | #ifdef F77_DUMMY_MAIN | ||
6353 | # ifdef __cplusplus | ||
6354 | extern "C" | ||
6355 | # endif | ||
6356 | int F77_DUMMY_MAIN() { return 1; } | ||
6357 | #endif | ||
6358 | int | ||
6359 | main () | ||
6360 | { | ||
6361 | /* The GNU C library defines this for functions which it implements | ||
6362 | to always fail with ENOSYS. Some functions are actually named | ||
6363 | something starting with __ and the normal name is an alias. */ | ||
6364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6365 | choke me | ||
6366 | #else | ||
6367 | f = $ac_func; | ||
6368 | #endif | ||
6369 | |||
6370 | ; | ||
6371 | return 0; | ||
6372 | } | ||
6373 | _ACEOF | ||
6374 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6376 | (eval $ac_link) 2>&5 | ||
6377 | ac_status=$? | ||
6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6379 | (exit $ac_status); } && | ||
6380 | { ac_try='test -s conftest$ac_exeext' | ||
6381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6382 | (eval $ac_try) 2>&5 | ||
6383 | ac_status=$? | ||
6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6385 | (exit $ac_status); }; }; then | ||
6386 | eval "$as_ac_var=yes" | ||
6387 | else | ||
6388 | echo "$as_me: failed program was:" >&5 | ||
6389 | cat conftest.$ac_ext >&5 | ||
6390 | eval "$as_ac_var=no" | ||
6391 | fi | ||
6392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6393 | fi | ||
6394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6395 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6397 | cat >>confdefs.h <<_ACEOF | ||
6398 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6399 | _ACEOF | ||
6400 | |||
6401 | else | ||
6402 | # strftime is in -lintl on SCO UNIX. | ||
6403 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
6404 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6405 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6407 | else | ||
6408 | ac_check_lib_save_LIBS=$LIBS | ||
6409 | LIBS="-lintl $LIBS" | ||
6410 | cat >conftest.$ac_ext <<_ACEOF | ||
6411 | #line $LINENO "configure" | ||
6412 | #include "confdefs.h" | ||
6413 | |||
6414 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6415 | #ifdef __cplusplus | ||
6416 | extern "C" | ||
6417 | #endif | ||
6418 | /* We use char because int might match the return type of a gcc2 | ||
6419 | builtin and then its argument prototype would still apply. */ | ||
6420 | char strftime (); | ||
6421 | #ifdef F77_DUMMY_MAIN | ||
6422 | # ifdef __cplusplus | ||
6423 | extern "C" | ||
6424 | # endif | ||
6425 | int F77_DUMMY_MAIN() { return 1; } | ||
6426 | #endif | ||
6427 | int | ||
6428 | main () | ||
6429 | { | ||
6430 | strftime (); | ||
6431 | ; | ||
6432 | return 0; | ||
6433 | } | ||
6434 | _ACEOF | ||
6435 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6437 | (eval $ac_link) 2>&5 | ||
6438 | ac_status=$? | ||
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6440 | (exit $ac_status); } && | ||
6441 | { ac_try='test -s conftest$ac_exeext' | ||
6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6443 | (eval $ac_try) 2>&5 | ||
6444 | ac_status=$? | ||
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6446 | (exit $ac_status); }; }; then | ||
6447 | ac_cv_lib_intl_strftime=yes | ||
6448 | else | ||
6449 | echo "$as_me: failed program was:" >&5 | ||
6450 | cat conftest.$ac_ext >&5 | ||
6451 | ac_cv_lib_intl_strftime=no | ||
6452 | fi | ||
6453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6454 | LIBS=$ac_check_lib_save_LIBS | ||
6455 | fi | ||
6456 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
6457 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6458 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6459 | cat >>confdefs.h <<\_ACEOF | ||
6460 | @%:@define HAVE_STRFTIME 1 | ||
6461 | _ACEOF | ||
6462 | |||
6463 | LIBS="-lintl $LIBS" | ||
6464 | fi | ||
6465 | |||
6466 | fi | ||
6467 | done | ||
6468 | |||
6469 | |||
6470 | # Check for ALTDIRFUNC glob() extension | ||
6471 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6472 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6473 | cat >conftest.$ac_ext <<_ACEOF | ||
6474 | #line $LINENO "configure" | ||
6475 | #include "confdefs.h" | ||
6476 | |||
6477 | #include <glob.h> | ||
6478 | #ifdef GLOB_ALTDIRFUNC | ||
6479 | FOUNDIT | ||
6480 | #endif | ||
6481 | |||
6482 | _ACEOF | ||
6483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6484 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6485 | |||
6486 | cat >>confdefs.h <<\_ACEOF | ||
6487 | @%:@define GLOB_HAS_ALTDIRFUNC 1 | ||
6488 | _ACEOF | ||
6489 | |||
6490 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6491 | echo "${ECHO_T}yes" >&6 | ||
6492 | |||
6493 | else | ||
6494 | |||
6495 | echo "$as_me:$LINENO: result: no" >&5 | ||
6496 | echo "${ECHO_T}no" >&6 | ||
6497 | |||
6498 | |||
6499 | fi | ||
6500 | rm -f conftest* | ||
6501 | |||
6502 | |||
6503 | # Check for g.gl_matchc glob() extension | ||
6504 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
6505 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6506 | cat >conftest.$ac_ext <<_ACEOF | ||
6507 | #line $LINENO "configure" | ||
6508 | #include "confdefs.h" | ||
6509 | |||
6510 | #include <glob.h> | ||
6511 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6512 | |||
6513 | _ACEOF | ||
6514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6515 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6516 | |||
6517 | cat >>confdefs.h <<\_ACEOF | ||
6518 | @%:@define GLOB_HAS_GL_MATCHC 1 | ||
6519 | _ACEOF | ||
6520 | |||
6521 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6522 | echo "${ECHO_T}yes" >&6 | ||
6523 | |||
6524 | else | ||
6525 | |||
6526 | echo "$as_me:$LINENO: result: no" >&5 | ||
6527 | echo "${ECHO_T}no" >&6 | ||
6528 | |||
6529 | |||
6530 | fi | ||
6531 | rm -f conftest* | ||
6532 | |||
6533 | |||
6534 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
6535 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6536 | if test "$cross_compiling" = yes; then | ||
6537 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6538 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6539 | { (exit 1); exit 1; }; } | ||
6540 | else | ||
6541 | cat >conftest.$ac_ext <<_ACEOF | ||
6542 | #line $LINENO "configure" | ||
6543 | #include "confdefs.h" | ||
6544 | |||
6545 | #include <sys/types.h> | ||
6546 | #include <dirent.h> | ||
6547 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6548 | |||
6549 | _ACEOF | ||
6550 | rm -f conftest$ac_exeext | ||
6551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6552 | (eval $ac_link) 2>&5 | ||
6553 | ac_status=$? | ||
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6557 | (eval $ac_try) 2>&5 | ||
6558 | ac_status=$? | ||
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6560 | (exit $ac_status); }; }; then | ||
6561 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6562 | echo "${ECHO_T}yes" >&6 | ||
6563 | else | ||
6564 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6565 | echo "$as_me: failed program was:" >&5 | ||
6566 | cat conftest.$ac_ext >&5 | ||
6567 | ( exit $ac_status ) | ||
6568 | |||
6569 | echo "$as_me:$LINENO: result: no" >&5 | ||
6570 | echo "${ECHO_T}no" >&6 | ||
6571 | cat >>confdefs.h <<\_ACEOF | ||
6572 | @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6573 | _ACEOF | ||
6574 | |||
6575 | |||
6576 | |||
6577 | fi | ||
6578 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6579 | fi | ||
6580 | |||
6581 | # Check whether user wants S/Key support | ||
6582 | SKEY_MSG="no" | ||
6583 | |||
6584 | # Check whether --with-skey or --without-skey was given. | ||
6585 | if test "${with_skey+set}" = set; then | ||
6586 | withval="$with_skey" | ||
6587 | |||
6588 | if test "x$withval" != "xno" ; then | ||
6589 | |||
6590 | if test "x$withval" != "xyes" ; then | ||
6591 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6592 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6593 | fi | ||
6594 | |||
6595 | cat >>confdefs.h <<\_ACEOF | ||
6596 | @%:@define SKEY 1 | ||
6597 | _ACEOF | ||
6598 | |||
6599 | LIBS="-lskey $LIBS" | ||
6600 | SKEY_MSG="yes" | ||
6601 | |||
6602 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
6603 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6604 | if test "$cross_compiling" = yes; then | ||
6605 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6606 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6607 | { (exit 1); exit 1; }; } | ||
6608 | else | ||
6609 | cat >conftest.$ac_ext <<_ACEOF | ||
6610 | #line $LINENO "configure" | ||
6611 | #include "confdefs.h" | ||
6612 | |||
6613 | #include <stdio.h> | ||
6614 | #include <skey.h> | ||
6615 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6616 | |||
6617 | _ACEOF | ||
6618 | rm -f conftest$ac_exeext | ||
6619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6620 | (eval $ac_link) 2>&5 | ||
6621 | ac_status=$? | ||
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6625 | (eval $ac_try) 2>&5 | ||
6626 | ac_status=$? | ||
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6628 | (exit $ac_status); }; }; then | ||
6629 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6630 | echo "${ECHO_T}yes" >&6 | ||
6631 | else | ||
6632 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6633 | echo "$as_me: failed program was:" >&5 | ||
6634 | cat conftest.$ac_ext >&5 | ||
6635 | ( exit $ac_status ) | ||
6636 | |||
6637 | echo "$as_me:$LINENO: result: no" >&5 | ||
6638 | echo "${ECHO_T}no" >&6 | ||
6639 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
6640 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6641 | { (exit 1); exit 1; }; } | ||
6642 | |||
6643 | fi | ||
6644 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6645 | fi | ||
6646 | fi | ||
6647 | |||
6648 | |||
6649 | fi; | ||
6650 | |||
6651 | # Check whether user wants TCP wrappers support | ||
6652 | TCPW_MSG="no" | ||
6653 | |||
6654 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6655 | if test "${with_tcp_wrappers+set}" = set; then | ||
6656 | withval="$with_tcp_wrappers" | ||
6657 | |||
6658 | if test "x$withval" != "xno" ; then | ||
6659 | saved_LIBS="$LIBS" | ||
6660 | saved_LDFLAGS="$LDFLAGS" | ||
6661 | saved_CPPFLAGS="$CPPFLAGS" | ||
6662 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6663 | if test -d "${withval}/lib"; then | ||
6664 | if test -n "${need_dash_r}"; then | ||
6665 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6666 | else | ||
6667 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6668 | fi | ||
6669 | else | ||
6670 | if test -n "${need_dash_r}"; then | ||
6671 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6672 | else | ||
6673 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6674 | fi | ||
6675 | fi | ||
6676 | if test -d "${withval}/include"; then | ||
6677 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6678 | else | ||
6679 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6680 | fi | ||
6681 | fi | ||
6682 | LIBWRAP="-lwrap" | ||
6683 | LIBS="$LIBWRAP $LIBS" | ||
6684 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
6685 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6686 | cat >conftest.$ac_ext <<_ACEOF | ||
6687 | #line $LINENO "configure" | ||
6688 | #include "confdefs.h" | ||
6689 | |||
6690 | #include <tcpd.h> | ||
6691 | int deny_severity = 0, allow_severity = 0; | ||
6692 | |||
6693 | #ifdef F77_DUMMY_MAIN | ||
6694 | # ifdef __cplusplus | ||
6695 | extern "C" | ||
6696 | # endif | ||
6697 | int F77_DUMMY_MAIN() { return 1; } | ||
6698 | #endif | ||
6699 | int | ||
6700 | main () | ||
6701 | { | ||
6702 | hosts_access(0); | ||
6703 | ; | ||
6704 | return 0; | ||
6705 | } | ||
6706 | _ACEOF | ||
6707 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6709 | (eval $ac_link) 2>&5 | ||
6710 | ac_status=$? | ||
6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6712 | (exit $ac_status); } && | ||
6713 | { ac_try='test -s conftest$ac_exeext' | ||
6714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6715 | (eval $ac_try) 2>&5 | ||
6716 | ac_status=$? | ||
6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6718 | (exit $ac_status); }; }; then | ||
6719 | |||
6720 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6721 | echo "${ECHO_T}yes" >&6 | ||
6722 | cat >>confdefs.h <<\_ACEOF | ||
6723 | @%:@define LIBWRAP 1 | ||
6724 | _ACEOF | ||
6725 | |||
6726 | |||
6727 | TCPW_MSG="yes" | ||
6728 | |||
6729 | else | ||
6730 | echo "$as_me: failed program was:" >&5 | ||
6731 | cat conftest.$ac_ext >&5 | ||
6732 | |||
6733 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
6734 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6735 | { (exit 1); exit 1; }; } | ||
6736 | |||
6737 | |||
6738 | fi | ||
6739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6740 | LIBS="$saved_LIBS" | ||
6741 | fi | ||
6742 | |||
6743 | |||
6744 | fi; | ||
6745 | |||
6746 | |||
6747 | |||
6748 | |||
6749 | |||
6750 | |||
6751 | |||
6752 | |||
6753 | |||
6754 | |||
6755 | |||
6756 | |||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | |||
6769 | |||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | |||
6777 | |||
6778 | |||
6779 | |||
6780 | |||
6781 | |||
6782 | |||
6783 | |||
6784 | |||
6785 | |||
6786 | |||
6787 | |||
6788 | |||
6789 | |||
6790 | |||
6791 | |||
6792 | |||
6793 | |||
6794 | |||
6795 | |||
6796 | |||
6797 | |||
6798 | |||
6799 | |||
6800 | |||
6801 | |||
6802 | |||
6803 | |||
6804 | |||
6805 | |||
6806 | |||
6807 | |||
6808 | |||
6809 | |||
6810 | |||
6811 | |||
6812 | |||
6813 | |||
6814 | |||
6815 | |||
6816 | |||
6817 | |||
6818 | |||
6819 | for ac_func in \ | ||
6820 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \ | ||
6821 | bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6822 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6823 | getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ | ||
6824 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6825 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \ | ||
6826 | readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \ | ||
6827 | setegid setenv seteuid setgroups setlogin setpcred setproctitle \ | ||
6828 | setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \ | ||
6829 | snprintf socketpair strerror strlcat strlcpy strmode strnvis \ | ||
6830 | sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \ | ||
6831 | |||
6832 | do | ||
6833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6834 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6836 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6838 | else | ||
6839 | cat >conftest.$ac_ext <<_ACEOF | ||
6840 | #line $LINENO "configure" | ||
6841 | #include "confdefs.h" | ||
6842 | /* System header to define __stub macros and hopefully few prototypes, | ||
6843 | which can conflict with char $ac_func (); below. */ | ||
6844 | #include <assert.h> | ||
6845 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6846 | #ifdef __cplusplus | ||
6847 | extern "C" | ||
6848 | #endif | ||
6849 | /* We use char because int might match the return type of a gcc2 | ||
6850 | builtin and then its argument prototype would still apply. */ | ||
6851 | char $ac_func (); | ||
6852 | char (*f) (); | ||
6853 | |||
6854 | #ifdef F77_DUMMY_MAIN | ||
6855 | # ifdef __cplusplus | ||
6856 | extern "C" | ||
6857 | # endif | ||
6858 | int F77_DUMMY_MAIN() { return 1; } | ||
6859 | #endif | ||
6860 | int | ||
6861 | main () | ||
6862 | { | ||
6863 | /* The GNU C library defines this for functions which it implements | ||
6864 | to always fail with ENOSYS. Some functions are actually named | ||
6865 | something starting with __ and the normal name is an alias. */ | ||
6866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6867 | choke me | ||
6868 | #else | ||
6869 | f = $ac_func; | ||
6870 | #endif | ||
6871 | |||
6872 | ; | ||
6873 | return 0; | ||
6874 | } | ||
6875 | _ACEOF | ||
6876 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6878 | (eval $ac_link) 2>&5 | ||
6879 | ac_status=$? | ||
6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6881 | (exit $ac_status); } && | ||
6882 | { ac_try='test -s conftest$ac_exeext' | ||
6883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6884 | (eval $ac_try) 2>&5 | ||
6885 | ac_status=$? | ||
6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6887 | (exit $ac_status); }; }; then | ||
6888 | eval "$as_ac_var=yes" | ||
6889 | else | ||
6890 | echo "$as_me: failed program was:" >&5 | ||
6891 | cat conftest.$ac_ext >&5 | ||
6892 | eval "$as_ac_var=no" | ||
6893 | fi | ||
6894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6895 | fi | ||
6896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6897 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6899 | cat >>confdefs.h <<_ACEOF | ||
6900 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6901 | _ACEOF | ||
6902 | |||
6903 | fi | ||
6904 | done | ||
6905 | |||
6906 | |||
6907 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
6908 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
6909 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
6910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6911 | else | ||
6912 | ac_func_search_save_LIBS=$LIBS | ||
6913 | ac_cv_search_nanosleep=no | ||
6914 | cat >conftest.$ac_ext <<_ACEOF | ||
6915 | #line $LINENO "configure" | ||
6916 | #include "confdefs.h" | ||
6917 | |||
6918 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6919 | #ifdef __cplusplus | ||
6920 | extern "C" | ||
6921 | #endif | ||
6922 | /* We use char because int might match the return type of a gcc2 | ||
6923 | builtin and then its argument prototype would still apply. */ | ||
6924 | char nanosleep (); | ||
6925 | #ifdef F77_DUMMY_MAIN | ||
6926 | # ifdef __cplusplus | ||
6927 | extern "C" | ||
6928 | # endif | ||
6929 | int F77_DUMMY_MAIN() { return 1; } | ||
6930 | #endif | ||
6931 | int | ||
6932 | main () | ||
6933 | { | ||
6934 | nanosleep (); | ||
6935 | ; | ||
6936 | return 0; | ||
6937 | } | ||
6938 | _ACEOF | ||
6939 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6941 | (eval $ac_link) 2>&5 | ||
6942 | ac_status=$? | ||
6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6944 | (exit $ac_status); } && | ||
6945 | { ac_try='test -s conftest$ac_exeext' | ||
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6947 | (eval $ac_try) 2>&5 | ||
6948 | ac_status=$? | ||
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6950 | (exit $ac_status); }; }; then | ||
6951 | ac_cv_search_nanosleep="none required" | ||
6952 | else | ||
6953 | echo "$as_me: failed program was:" >&5 | ||
6954 | cat conftest.$ac_ext >&5 | ||
6955 | fi | ||
6956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6957 | if test "$ac_cv_search_nanosleep" = no; then | ||
6958 | for ac_lib in rt posix4; do | ||
6959 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6960 | cat >conftest.$ac_ext <<_ACEOF | ||
6961 | #line $LINENO "configure" | ||
6962 | #include "confdefs.h" | ||
6963 | |||
6964 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6965 | #ifdef __cplusplus | ||
6966 | extern "C" | ||
6967 | #endif | ||
6968 | /* We use char because int might match the return type of a gcc2 | ||
6969 | builtin and then its argument prototype would still apply. */ | ||
6970 | char nanosleep (); | ||
6971 | #ifdef F77_DUMMY_MAIN | ||
6972 | # ifdef __cplusplus | ||
6973 | extern "C" | ||
6974 | # endif | ||
6975 | int F77_DUMMY_MAIN() { return 1; } | ||
6976 | #endif | ||
6977 | int | ||
6978 | main () | ||
6979 | { | ||
6980 | nanosleep (); | ||
6981 | ; | ||
6982 | return 0; | ||
6983 | } | ||
6984 | _ACEOF | ||
6985 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6987 | (eval $ac_link) 2>&5 | ||
6988 | ac_status=$? | ||
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6990 | (exit $ac_status); } && | ||
6991 | { ac_try='test -s conftest$ac_exeext' | ||
6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6993 | (eval $ac_try) 2>&5 | ||
6994 | ac_status=$? | ||
6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6996 | (exit $ac_status); }; }; then | ||
6997 | ac_cv_search_nanosleep="-l$ac_lib" | ||
6998 | break | ||
6999 | else | ||
7000 | echo "$as_me: failed program was:" >&5 | ||
7001 | cat conftest.$ac_ext >&5 | ||
7002 | fi | ||
7003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7004 | done | ||
7005 | fi | ||
7006 | LIBS=$ac_func_search_save_LIBS | ||
7007 | fi | ||
7008 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
7009 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
7010 | if test "$ac_cv_search_nanosleep" != no; then | ||
7011 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
7012 | cat >>confdefs.h <<\_ACEOF | ||
7013 | @%:@define HAVE_NANOSLEEP 1 | ||
7014 | _ACEOF | ||
7015 | |||
7016 | fi | ||
7017 | |||
7018 | |||
7019 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
7020 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7021 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7023 | else | ||
7024 | cat >conftest.$ac_ext <<_ACEOF | ||
7025 | #line $LINENO "configure" | ||
7026 | #include "confdefs.h" | ||
7027 | $ac_includes_default | ||
7028 | #ifdef F77_DUMMY_MAIN | ||
7029 | # ifdef __cplusplus | ||
7030 | extern "C" | ||
7031 | # endif | ||
7032 | int F77_DUMMY_MAIN() { return 1; } | ||
7033 | #endif | ||
7034 | int | ||
7035 | main () | ||
7036 | { | ||
7037 | #ifndef strsep | ||
7038 | char *p = (char *) strsep; | ||
7039 | #endif | ||
7040 | |||
7041 | ; | ||
7042 | return 0; | ||
7043 | } | ||
7044 | _ACEOF | ||
7045 | rm -f conftest.$ac_objext | ||
7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7047 | (eval $ac_compile) 2>&5 | ||
7048 | ac_status=$? | ||
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7050 | (exit $ac_status); } && | ||
7051 | { ac_try='test -s conftest.$ac_objext' | ||
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7053 | (eval $ac_try) 2>&5 | ||
7054 | ac_status=$? | ||
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7056 | (exit $ac_status); }; }; then | ||
7057 | ac_cv_have_decl_strsep=yes | ||
7058 | else | ||
7059 | echo "$as_me: failed program was:" >&5 | ||
7060 | cat conftest.$ac_ext >&5 | ||
7061 | ac_cv_have_decl_strsep=no | ||
7062 | fi | ||
7063 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7064 | fi | ||
7065 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
7066 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7067 | if test $ac_cv_have_decl_strsep = yes; then | ||
7068 | |||
7069 | for ac_func in strsep | ||
7070 | do | ||
7071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7074 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7076 | else | ||
7077 | cat >conftest.$ac_ext <<_ACEOF | ||
7078 | #line $LINENO "configure" | ||
7079 | #include "confdefs.h" | ||
7080 | /* System header to define __stub macros and hopefully few prototypes, | ||
7081 | which can conflict with char $ac_func (); below. */ | ||
7082 | #include <assert.h> | ||
7083 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7084 | #ifdef __cplusplus | ||
7085 | extern "C" | ||
7086 | #endif | ||
7087 | /* We use char because int might match the return type of a gcc2 | ||
7088 | builtin and then its argument prototype would still apply. */ | ||
7089 | char $ac_func (); | ||
7090 | char (*f) (); | ||
7091 | |||
7092 | #ifdef F77_DUMMY_MAIN | ||
7093 | # ifdef __cplusplus | ||
7094 | extern "C" | ||
7095 | # endif | ||
7096 | int F77_DUMMY_MAIN() { return 1; } | ||
7097 | #endif | ||
7098 | int | ||
7099 | main () | ||
7100 | { | ||
7101 | /* The GNU C library defines this for functions which it implements | ||
7102 | to always fail with ENOSYS. Some functions are actually named | ||
7103 | something starting with __ and the normal name is an alias. */ | ||
7104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7105 | choke me | ||
7106 | #else | ||
7107 | f = $ac_func; | ||
7108 | #endif | ||
7109 | |||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7116 | (eval $ac_link) 2>&5 | ||
7117 | ac_status=$? | ||
7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7119 | (exit $ac_status); } && | ||
7120 | { ac_try='test -s conftest$ac_exeext' | ||
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7122 | (eval $ac_try) 2>&5 | ||
7123 | ac_status=$? | ||
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7125 | (exit $ac_status); }; }; then | ||
7126 | eval "$as_ac_var=yes" | ||
7127 | else | ||
7128 | echo "$as_me: failed program was:" >&5 | ||
7129 | cat conftest.$ac_ext >&5 | ||
7130 | eval "$as_ac_var=no" | ||
7131 | fi | ||
7132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7133 | fi | ||
7134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7136 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7137 | cat >>confdefs.h <<_ACEOF | ||
7138 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7139 | _ACEOF | ||
7140 | |||
7141 | fi | ||
7142 | done | ||
7143 | |||
7144 | fi | ||
7145 | |||
7146 | |||
7147 | |||
7148 | for ac_func in dirname | ||
7149 | do | ||
7150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7155 | else | ||
7156 | cat >conftest.$ac_ext <<_ACEOF | ||
7157 | #line $LINENO "configure" | ||
7158 | #include "confdefs.h" | ||
7159 | /* System header to define __stub macros and hopefully few prototypes, | ||
7160 | which can conflict with char $ac_func (); below. */ | ||
7161 | #include <assert.h> | ||
7162 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7163 | #ifdef __cplusplus | ||
7164 | extern "C" | ||
7165 | #endif | ||
7166 | /* We use char because int might match the return type of a gcc2 | ||
7167 | builtin and then its argument prototype would still apply. */ | ||
7168 | char $ac_func (); | ||
7169 | char (*f) (); | ||
7170 | |||
7171 | #ifdef F77_DUMMY_MAIN | ||
7172 | # ifdef __cplusplus | ||
7173 | extern "C" | ||
7174 | # endif | ||
7175 | int F77_DUMMY_MAIN() { return 1; } | ||
7176 | #endif | ||
7177 | int | ||
7178 | main () | ||
7179 | { | ||
7180 | /* The GNU C library defines this for functions which it implements | ||
7181 | to always fail with ENOSYS. Some functions are actually named | ||
7182 | something starting with __ and the normal name is an alias. */ | ||
7183 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7184 | choke me | ||
7185 | #else | ||
7186 | f = $ac_func; | ||
7187 | #endif | ||
7188 | |||
7189 | ; | ||
7190 | return 0; | ||
7191 | } | ||
7192 | _ACEOF | ||
7193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7195 | (eval $ac_link) 2>&5 | ||
7196 | ac_status=$? | ||
7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7198 | (exit $ac_status); } && | ||
7199 | { ac_try='test -s conftest$ac_exeext' | ||
7200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7201 | (eval $ac_try) 2>&5 | ||
7202 | ac_status=$? | ||
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7204 | (exit $ac_status); }; }; then | ||
7205 | eval "$as_ac_var=yes" | ||
7206 | else | ||
7207 | echo "$as_me: failed program was:" >&5 | ||
7208 | cat conftest.$ac_ext >&5 | ||
7209 | eval "$as_ac_var=no" | ||
7210 | fi | ||
7211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7212 | fi | ||
7213 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7214 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7215 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7216 | cat >>confdefs.h <<_ACEOF | ||
7217 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7218 | _ACEOF | ||
7219 | |||
7220 | for ac_header in libgen.h | ||
7221 | do | ||
7222 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7224 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7228 | fi | ||
7229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7231 | else | ||
7232 | # Is the header compilable? | ||
7233 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7234 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7235 | cat >conftest.$ac_ext <<_ACEOF | ||
7236 | #line $LINENO "configure" | ||
7237 | #include "confdefs.h" | ||
7238 | $ac_includes_default | ||
7239 | @%:@include <$ac_header> | ||
7240 | _ACEOF | ||
7241 | rm -f conftest.$ac_objext | ||
7242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7243 | (eval $ac_compile) 2>&5 | ||
7244 | ac_status=$? | ||
7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7246 | (exit $ac_status); } && | ||
7247 | { ac_try='test -s conftest.$ac_objext' | ||
7248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7249 | (eval $ac_try) 2>&5 | ||
7250 | ac_status=$? | ||
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7252 | (exit $ac_status); }; }; then | ||
7253 | ac_header_compiler=yes | ||
7254 | else | ||
7255 | echo "$as_me: failed program was:" >&5 | ||
7256 | cat conftest.$ac_ext >&5 | ||
7257 | ac_header_compiler=no | ||
7258 | fi | ||
7259 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7261 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7262 | |||
7263 | # Is the header present? | ||
7264 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7266 | cat >conftest.$ac_ext <<_ACEOF | ||
7267 | #line $LINENO "configure" | ||
7268 | #include "confdefs.h" | ||
7269 | @%:@include <$ac_header> | ||
7270 | _ACEOF | ||
7271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7273 | ac_status=$? | ||
7274 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7275 | rm -f conftest.er1 | ||
7276 | cat conftest.err >&5 | ||
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7278 | (exit $ac_status); } >/dev/null; then | ||
7279 | if test -s conftest.err; then | ||
7280 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7281 | else | ||
7282 | ac_cpp_err= | ||
7283 | fi | ||
7284 | else | ||
7285 | ac_cpp_err=yes | ||
7286 | fi | ||
7287 | if test -z "$ac_cpp_err"; then | ||
7288 | ac_header_preproc=yes | ||
7289 | else | ||
7290 | echo "$as_me: failed program was:" >&5 | ||
7291 | cat conftest.$ac_ext >&5 | ||
7292 | ac_header_preproc=no | ||
7293 | fi | ||
7294 | rm -f conftest.err conftest.$ac_ext | ||
7295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7296 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7297 | |||
7298 | # So? What about this header? | ||
7299 | case $ac_header_compiler:$ac_header_preproc in | ||
7300 | yes:no ) | ||
7301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7305 | no:yes ) | ||
7306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7312 | esac | ||
7313 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7315 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7317 | else | ||
7318 | eval "$as_ac_Header=$ac_header_preproc" | ||
7319 | fi | ||
7320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7322 | |||
7323 | fi | ||
7324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7325 | cat >>confdefs.h <<_ACEOF | ||
7326 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7327 | _ACEOF | ||
7328 | |||
7329 | fi | ||
7330 | |||
7331 | done | ||
7332 | |||
7333 | else | ||
7334 | |||
7335 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7336 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7337 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7339 | else | ||
7340 | ac_check_lib_save_LIBS=$LIBS | ||
7341 | LIBS="-lgen $LIBS" | ||
7342 | cat >conftest.$ac_ext <<_ACEOF | ||
7343 | #line $LINENO "configure" | ||
7344 | #include "confdefs.h" | ||
7345 | |||
7346 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7347 | #ifdef __cplusplus | ||
7348 | extern "C" | ||
7349 | #endif | ||
7350 | /* We use char because int might match the return type of a gcc2 | ||
7351 | builtin and then its argument prototype would still apply. */ | ||
7352 | char dirname (); | ||
7353 | #ifdef F77_DUMMY_MAIN | ||
7354 | # ifdef __cplusplus | ||
7355 | extern "C" | ||
7356 | # endif | ||
7357 | int F77_DUMMY_MAIN() { return 1; } | ||
7358 | #endif | ||
7359 | int | ||
7360 | main () | ||
7361 | { | ||
7362 | dirname (); | ||
7363 | ; | ||
7364 | return 0; | ||
7365 | } | ||
7366 | _ACEOF | ||
7367 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7369 | (eval $ac_link) 2>&5 | ||
7370 | ac_status=$? | ||
7371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7372 | (exit $ac_status); } && | ||
7373 | { ac_try='test -s conftest$ac_exeext' | ||
7374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7375 | (eval $ac_try) 2>&5 | ||
7376 | ac_status=$? | ||
7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7378 | (exit $ac_status); }; }; then | ||
7379 | ac_cv_lib_gen_dirname=yes | ||
7380 | else | ||
7381 | echo "$as_me: failed program was:" >&5 | ||
7382 | cat conftest.$ac_ext >&5 | ||
7383 | ac_cv_lib_gen_dirname=no | ||
7384 | fi | ||
7385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7386 | LIBS=$ac_check_lib_save_LIBS | ||
7387 | fi | ||
7388 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7389 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7390 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7391 | |||
7392 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7393 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7394 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7396 | else | ||
7397 | |||
7398 | save_LIBS="$LIBS" | ||
7399 | LIBS="$LIBS -lgen" | ||
7400 | if test "$cross_compiling" = yes; then | ||
7401 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
7402 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7403 | { (exit 1); exit 1; }; } | ||
7404 | else | ||
7405 | cat >conftest.$ac_ext <<_ACEOF | ||
7406 | #line $LINENO "configure" | ||
7407 | #include "confdefs.h" | ||
7408 | |||
7409 | #include <libgen.h> | ||
7410 | #include <string.h> | ||
7411 | |||
7412 | int main(int argc, char **argv) { | ||
7413 | char *s, buf[32]; | ||
7414 | |||
7415 | strncpy(buf,"/etc", 32); | ||
7416 | s = dirname(buf); | ||
7417 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7418 | exit(1); | ||
7419 | } else { | ||
7420 | exit(0); | ||
7421 | } | ||
7422 | } | ||
7423 | |||
7424 | _ACEOF | ||
7425 | rm -f conftest$ac_exeext | ||
7426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7427 | (eval $ac_link) 2>&5 | ||
7428 | ac_status=$? | ||
7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7432 | (eval $ac_try) 2>&5 | ||
7433 | ac_status=$? | ||
7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7435 | (exit $ac_status); }; }; then | ||
7436 | ac_cv_have_broken_dirname="no" | ||
7437 | else | ||
7438 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7439 | echo "$as_me: failed program was:" >&5 | ||
7440 | cat conftest.$ac_ext >&5 | ||
7441 | ( exit $ac_status ) | ||
7442 | ac_cv_have_broken_dirname="yes" | ||
7443 | |||
7444 | fi | ||
7445 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7446 | fi | ||
7447 | LIBS="$save_LIBS" | ||
7448 | |||
7449 | fi | ||
7450 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7451 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7452 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7453 | LIBS="$LIBS -lgen" | ||
7454 | cat >>confdefs.h <<\_ACEOF | ||
7455 | @%:@define HAVE_DIRNAME 1 | ||
7456 | _ACEOF | ||
7457 | |||
7458 | |||
7459 | for ac_header in libgen.h | ||
7460 | do | ||
7461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7467 | fi | ||
7468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7470 | else | ||
7471 | # Is the header compilable? | ||
7472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7474 | cat >conftest.$ac_ext <<_ACEOF | ||
7475 | #line $LINENO "configure" | ||
7476 | #include "confdefs.h" | ||
7477 | $ac_includes_default | ||
7478 | @%:@include <$ac_header> | ||
7479 | _ACEOF | ||
7480 | rm -f conftest.$ac_objext | ||
7481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7482 | (eval $ac_compile) 2>&5 | ||
7483 | ac_status=$? | ||
7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7485 | (exit $ac_status); } && | ||
7486 | { ac_try='test -s conftest.$ac_objext' | ||
7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7488 | (eval $ac_try) 2>&5 | ||
7489 | ac_status=$? | ||
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7491 | (exit $ac_status); }; }; then | ||
7492 | ac_header_compiler=yes | ||
7493 | else | ||
7494 | echo "$as_me: failed program was:" >&5 | ||
7495 | cat conftest.$ac_ext >&5 | ||
7496 | ac_header_compiler=no | ||
7497 | fi | ||
7498 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7500 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7501 | |||
7502 | # Is the header present? | ||
7503 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7504 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7505 | cat >conftest.$ac_ext <<_ACEOF | ||
7506 | #line $LINENO "configure" | ||
7507 | #include "confdefs.h" | ||
7508 | @%:@include <$ac_header> | ||
7509 | _ACEOF | ||
7510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7512 | ac_status=$? | ||
7513 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7514 | rm -f conftest.er1 | ||
7515 | cat conftest.err >&5 | ||
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7517 | (exit $ac_status); } >/dev/null; then | ||
7518 | if test -s conftest.err; then | ||
7519 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7520 | else | ||
7521 | ac_cpp_err= | ||
7522 | fi | ||
7523 | else | ||
7524 | ac_cpp_err=yes | ||
7525 | fi | ||
7526 | if test -z "$ac_cpp_err"; then | ||
7527 | ac_header_preproc=yes | ||
7528 | else | ||
7529 | echo "$as_me: failed program was:" >&5 | ||
7530 | cat conftest.$ac_ext >&5 | ||
7531 | ac_header_preproc=no | ||
7532 | fi | ||
7533 | rm -f conftest.err conftest.$ac_ext | ||
7534 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7535 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7536 | |||
7537 | # So? What about this header? | ||
7538 | case $ac_header_compiler:$ac_header_preproc in | ||
7539 | yes:no ) | ||
7540 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7541 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7543 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7544 | no:yes ) | ||
7545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7551 | esac | ||
7552 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7556 | else | ||
7557 | eval "$as_ac_Header=$ac_header_preproc" | ||
7558 | fi | ||
7559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7561 | |||
7562 | fi | ||
7563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7564 | cat >>confdefs.h <<_ACEOF | ||
7565 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7566 | _ACEOF | ||
7567 | |||
7568 | fi | ||
7569 | |||
7570 | done | ||
7571 | |||
7572 | fi | ||
7573 | |||
7574 | fi | ||
7575 | |||
7576 | |||
7577 | fi | ||
7578 | done | ||
7579 | |||
7580 | |||
7581 | |||
7582 | |||
7583 | for ac_func in gettimeofday time | ||
7584 | do | ||
7585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7586 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7588 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7590 | else | ||
7591 | cat >conftest.$ac_ext <<_ACEOF | ||
7592 | #line $LINENO "configure" | ||
7593 | #include "confdefs.h" | ||
7594 | /* System header to define __stub macros and hopefully few prototypes, | ||
7595 | which can conflict with char $ac_func (); below. */ | ||
7596 | #include <assert.h> | ||
7597 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7598 | #ifdef __cplusplus | ||
7599 | extern "C" | ||
7600 | #endif | ||
7601 | /* We use char because int might match the return type of a gcc2 | ||
7602 | builtin and then its argument prototype would still apply. */ | ||
7603 | char $ac_func (); | ||
7604 | char (*f) (); | ||
7605 | |||
7606 | #ifdef F77_DUMMY_MAIN | ||
7607 | # ifdef __cplusplus | ||
7608 | extern "C" | ||
7609 | # endif | ||
7610 | int F77_DUMMY_MAIN() { return 1; } | ||
7611 | #endif | ||
7612 | int | ||
7613 | main () | ||
7614 | { | ||
7615 | /* The GNU C library defines this for functions which it implements | ||
7616 | to always fail with ENOSYS. Some functions are actually named | ||
7617 | something starting with __ and the normal name is an alias. */ | ||
7618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7619 | choke me | ||
7620 | #else | ||
7621 | f = $ac_func; | ||
7622 | #endif | ||
7623 | |||
7624 | ; | ||
7625 | return 0; | ||
7626 | } | ||
7627 | _ACEOF | ||
7628 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7630 | (eval $ac_link) 2>&5 | ||
7631 | ac_status=$? | ||
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7633 | (exit $ac_status); } && | ||
7634 | { ac_try='test -s conftest$ac_exeext' | ||
7635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7636 | (eval $ac_try) 2>&5 | ||
7637 | ac_status=$? | ||
7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7639 | (exit $ac_status); }; }; then | ||
7640 | eval "$as_ac_var=yes" | ||
7641 | else | ||
7642 | echo "$as_me: failed program was:" >&5 | ||
7643 | cat conftest.$ac_ext >&5 | ||
7644 | eval "$as_ac_var=no" | ||
7645 | fi | ||
7646 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7647 | fi | ||
7648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7651 | cat >>confdefs.h <<_ACEOF | ||
7652 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7653 | _ACEOF | ||
7654 | |||
7655 | fi | ||
7656 | done | ||
7657 | |||
7658 | |||
7659 | |||
7660 | |||
7661 | |||
7662 | |||
7663 | |||
7664 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7665 | do | ||
7666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7671 | else | ||
7672 | cat >conftest.$ac_ext <<_ACEOF | ||
7673 | #line $LINENO "configure" | ||
7674 | #include "confdefs.h" | ||
7675 | /* System header to define __stub macros and hopefully few prototypes, | ||
7676 | which can conflict with char $ac_func (); below. */ | ||
7677 | #include <assert.h> | ||
7678 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7679 | #ifdef __cplusplus | ||
7680 | extern "C" | ||
7681 | #endif | ||
7682 | /* We use char because int might match the return type of a gcc2 | ||
7683 | builtin and then its argument prototype would still apply. */ | ||
7684 | char $ac_func (); | ||
7685 | char (*f) (); | ||
7686 | |||
7687 | #ifdef F77_DUMMY_MAIN | ||
7688 | # ifdef __cplusplus | ||
7689 | extern "C" | ||
7690 | # endif | ||
7691 | int F77_DUMMY_MAIN() { return 1; } | ||
7692 | #endif | ||
7693 | int | ||
7694 | main () | ||
7695 | { | ||
7696 | /* The GNU C library defines this for functions which it implements | ||
7697 | to always fail with ENOSYS. Some functions are actually named | ||
7698 | something starting with __ and the normal name is an alias. */ | ||
7699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7700 | choke me | ||
7701 | #else | ||
7702 | f = $ac_func; | ||
7703 | #endif | ||
7704 | |||
7705 | ; | ||
7706 | return 0; | ||
7707 | } | ||
7708 | _ACEOF | ||
7709 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7711 | (eval $ac_link) 2>&5 | ||
7712 | ac_status=$? | ||
7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7714 | (exit $ac_status); } && | ||
7715 | { ac_try='test -s conftest$ac_exeext' | ||
7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7717 | (eval $ac_try) 2>&5 | ||
7718 | ac_status=$? | ||
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7720 | (exit $ac_status); }; }; then | ||
7721 | eval "$as_ac_var=yes" | ||
7722 | else | ||
7723 | echo "$as_me: failed program was:" >&5 | ||
7724 | cat conftest.$ac_ext >&5 | ||
7725 | eval "$as_ac_var=no" | ||
7726 | fi | ||
7727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7728 | fi | ||
7729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7732 | cat >>confdefs.h <<_ACEOF | ||
7733 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7734 | _ACEOF | ||
7735 | |||
7736 | fi | ||
7737 | done | ||
7738 | |||
7739 | |||
7740 | for ac_func in utmpname | ||
7741 | do | ||
7742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7745 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7747 | else | ||
7748 | cat >conftest.$ac_ext <<_ACEOF | ||
7749 | #line $LINENO "configure" | ||
7750 | #include "confdefs.h" | ||
7751 | /* System header to define __stub macros and hopefully few prototypes, | ||
7752 | which can conflict with char $ac_func (); below. */ | ||
7753 | #include <assert.h> | ||
7754 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7755 | #ifdef __cplusplus | ||
7756 | extern "C" | ||
7757 | #endif | ||
7758 | /* We use char because int might match the return type of a gcc2 | ||
7759 | builtin and then its argument prototype would still apply. */ | ||
7760 | char $ac_func (); | ||
7761 | char (*f) (); | ||
7762 | |||
7763 | #ifdef F77_DUMMY_MAIN | ||
7764 | # ifdef __cplusplus | ||
7765 | extern "C" | ||
7766 | # endif | ||
7767 | int F77_DUMMY_MAIN() { return 1; } | ||
7768 | #endif | ||
7769 | int | ||
7770 | main () | ||
7771 | { | ||
7772 | /* The GNU C library defines this for functions which it implements | ||
7773 | to always fail with ENOSYS. Some functions are actually named | ||
7774 | something starting with __ and the normal name is an alias. */ | ||
7775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7776 | choke me | ||
7777 | #else | ||
7778 | f = $ac_func; | ||
7779 | #endif | ||
7780 | |||
7781 | ; | ||
7782 | return 0; | ||
7783 | } | ||
7784 | _ACEOF | ||
7785 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7787 | (eval $ac_link) 2>&5 | ||
7788 | ac_status=$? | ||
7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7790 | (exit $ac_status); } && | ||
7791 | { ac_try='test -s conftest$ac_exeext' | ||
7792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7793 | (eval $ac_try) 2>&5 | ||
7794 | ac_status=$? | ||
7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7796 | (exit $ac_status); }; }; then | ||
7797 | eval "$as_ac_var=yes" | ||
7798 | else | ||
7799 | echo "$as_me: failed program was:" >&5 | ||
7800 | cat conftest.$ac_ext >&5 | ||
7801 | eval "$as_ac_var=no" | ||
7802 | fi | ||
7803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7804 | fi | ||
7805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7806 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7807 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7808 | cat >>confdefs.h <<_ACEOF | ||
7809 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7810 | _ACEOF | ||
7811 | |||
7812 | fi | ||
7813 | done | ||
7814 | |||
7815 | |||
7816 | |||
7817 | |||
7818 | |||
7819 | |||
7820 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7821 | do | ||
7822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7823 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7825 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7827 | else | ||
7828 | cat >conftest.$ac_ext <<_ACEOF | ||
7829 | #line $LINENO "configure" | ||
7830 | #include "confdefs.h" | ||
7831 | /* System header to define __stub macros and hopefully few prototypes, | ||
7832 | which can conflict with char $ac_func (); below. */ | ||
7833 | #include <assert.h> | ||
7834 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7835 | #ifdef __cplusplus | ||
7836 | extern "C" | ||
7837 | #endif | ||
7838 | /* We use char because int might match the return type of a gcc2 | ||
7839 | builtin and then its argument prototype would still apply. */ | ||
7840 | char $ac_func (); | ||
7841 | char (*f) (); | ||
7842 | |||
7843 | #ifdef F77_DUMMY_MAIN | ||
7844 | # ifdef __cplusplus | ||
7845 | extern "C" | ||
7846 | # endif | ||
7847 | int F77_DUMMY_MAIN() { return 1; } | ||
7848 | #endif | ||
7849 | int | ||
7850 | main () | ||
7851 | { | ||
7852 | /* The GNU C library defines this for functions which it implements | ||
7853 | to always fail with ENOSYS. Some functions are actually named | ||
7854 | something starting with __ and the normal name is an alias. */ | ||
7855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7856 | choke me | ||
7857 | #else | ||
7858 | f = $ac_func; | ||
7859 | #endif | ||
7860 | |||
7861 | ; | ||
7862 | return 0; | ||
7863 | } | ||
7864 | _ACEOF | ||
7865 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7867 | (eval $ac_link) 2>&5 | ||
7868 | ac_status=$? | ||
7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7870 | (exit $ac_status); } && | ||
7871 | { ac_try='test -s conftest$ac_exeext' | ||
7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7873 | (eval $ac_try) 2>&5 | ||
7874 | ac_status=$? | ||
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7876 | (exit $ac_status); }; }; then | ||
7877 | eval "$as_ac_var=yes" | ||
7878 | else | ||
7879 | echo "$as_me: failed program was:" >&5 | ||
7880 | cat conftest.$ac_ext >&5 | ||
7881 | eval "$as_ac_var=no" | ||
7882 | fi | ||
7883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7884 | fi | ||
7885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7887 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7888 | cat >>confdefs.h <<_ACEOF | ||
7889 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7890 | _ACEOF | ||
7891 | |||
7892 | fi | ||
7893 | done | ||
7894 | |||
7895 | |||
7896 | |||
7897 | for ac_func in setutxent utmpxname | ||
7898 | do | ||
7899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7902 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7904 | else | ||
7905 | cat >conftest.$ac_ext <<_ACEOF | ||
7906 | #line $LINENO "configure" | ||
7907 | #include "confdefs.h" | ||
7908 | /* System header to define __stub macros and hopefully few prototypes, | ||
7909 | which can conflict with char $ac_func (); below. */ | ||
7910 | #include <assert.h> | ||
7911 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7912 | #ifdef __cplusplus | ||
7913 | extern "C" | ||
7914 | #endif | ||
7915 | /* We use char because int might match the return type of a gcc2 | ||
7916 | builtin and then its argument prototype would still apply. */ | ||
7917 | char $ac_func (); | ||
7918 | char (*f) (); | ||
7919 | |||
7920 | #ifdef F77_DUMMY_MAIN | ||
7921 | # ifdef __cplusplus | ||
7922 | extern "C" | ||
7923 | # endif | ||
7924 | int F77_DUMMY_MAIN() { return 1; } | ||
7925 | #endif | ||
7926 | int | ||
7927 | main () | ||
7928 | { | ||
7929 | /* The GNU C library defines this for functions which it implements | ||
7930 | to always fail with ENOSYS. Some functions are actually named | ||
7931 | something starting with __ and the normal name is an alias. */ | ||
7932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7933 | choke me | ||
7934 | #else | ||
7935 | f = $ac_func; | ||
7936 | #endif | ||
7937 | |||
7938 | ; | ||
7939 | return 0; | ||
7940 | } | ||
7941 | _ACEOF | ||
7942 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7944 | (eval $ac_link) 2>&5 | ||
7945 | ac_status=$? | ||
7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7947 | (exit $ac_status); } && | ||
7948 | { ac_try='test -s conftest$ac_exeext' | ||
7949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7950 | (eval $ac_try) 2>&5 | ||
7951 | ac_status=$? | ||
7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7953 | (exit $ac_status); }; }; then | ||
7954 | eval "$as_ac_var=yes" | ||
7955 | else | ||
7956 | echo "$as_me: failed program was:" >&5 | ||
7957 | cat conftest.$ac_ext >&5 | ||
7958 | eval "$as_ac_var=no" | ||
7959 | fi | ||
7960 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7961 | fi | ||
7962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7965 | cat >>confdefs.h <<_ACEOF | ||
7966 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7967 | _ACEOF | ||
7968 | |||
7969 | fi | ||
7970 | done | ||
7971 | |||
7972 | |||
7973 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
7974 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7975 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7977 | else | ||
7978 | cat >conftest.$ac_ext <<_ACEOF | ||
7979 | #line $LINENO "configure" | ||
7980 | #include "confdefs.h" | ||
7981 | /* System header to define __stub macros and hopefully few prototypes, | ||
7982 | which can conflict with char daemon (); below. */ | ||
7983 | #include <assert.h> | ||
7984 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7985 | #ifdef __cplusplus | ||
7986 | extern "C" | ||
7987 | #endif | ||
7988 | /* We use char because int might match the return type of a gcc2 | ||
7989 | builtin and then its argument prototype would still apply. */ | ||
7990 | char daemon (); | ||
7991 | char (*f) (); | ||
7992 | |||
7993 | #ifdef F77_DUMMY_MAIN | ||
7994 | # ifdef __cplusplus | ||
7995 | extern "C" | ||
7996 | # endif | ||
7997 | int F77_DUMMY_MAIN() { return 1; } | ||
7998 | #endif | ||
7999 | int | ||
8000 | main () | ||
8001 | { | ||
8002 | /* The GNU C library defines this for functions which it implements | ||
8003 | to always fail with ENOSYS. Some functions are actually named | ||
8004 | something starting with __ and the normal name is an alias. */ | ||
8005 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
8006 | choke me | ||
8007 | #else | ||
8008 | f = daemon; | ||
8009 | #endif | ||
8010 | |||
8011 | ; | ||
8012 | return 0; | ||
8013 | } | ||
8014 | _ACEOF | ||
8015 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8017 | (eval $ac_link) 2>&5 | ||
8018 | ac_status=$? | ||
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8020 | (exit $ac_status); } && | ||
8021 | { ac_try='test -s conftest$ac_exeext' | ||
8022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8023 | (eval $ac_try) 2>&5 | ||
8024 | ac_status=$? | ||
8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8026 | (exit $ac_status); }; }; then | ||
8027 | ac_cv_func_daemon=yes | ||
8028 | else | ||
8029 | echo "$as_me: failed program was:" >&5 | ||
8030 | cat conftest.$ac_ext >&5 | ||
8031 | ac_cv_func_daemon=no | ||
8032 | fi | ||
8033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8034 | fi | ||
8035 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
8036 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
8037 | if test $ac_cv_func_daemon = yes; then | ||
8038 | cat >>confdefs.h <<\_ACEOF | ||
8039 | @%:@define HAVE_DAEMON 1 | ||
8040 | _ACEOF | ||
8041 | |||
8042 | else | ||
8043 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
8044 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
8045 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8047 | else | ||
8048 | ac_check_lib_save_LIBS=$LIBS | ||
8049 | LIBS="-lbsd $LIBS" | ||
8050 | cat >conftest.$ac_ext <<_ACEOF | ||
8051 | #line $LINENO "configure" | ||
8052 | #include "confdefs.h" | ||
8053 | |||
8054 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8055 | #ifdef __cplusplus | ||
8056 | extern "C" | ||
8057 | #endif | ||
8058 | /* We use char because int might match the return type of a gcc2 | ||
8059 | builtin and then its argument prototype would still apply. */ | ||
8060 | char daemon (); | ||
8061 | #ifdef F77_DUMMY_MAIN | ||
8062 | # ifdef __cplusplus | ||
8063 | extern "C" | ||
8064 | # endif | ||
8065 | int F77_DUMMY_MAIN() { return 1; } | ||
8066 | #endif | ||
8067 | int | ||
8068 | main () | ||
8069 | { | ||
8070 | daemon (); | ||
8071 | ; | ||
8072 | return 0; | ||
8073 | } | ||
8074 | _ACEOF | ||
8075 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8077 | (eval $ac_link) 2>&5 | ||
8078 | ac_status=$? | ||
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8080 | (exit $ac_status); } && | ||
8081 | { ac_try='test -s conftest$ac_exeext' | ||
8082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8083 | (eval $ac_try) 2>&5 | ||
8084 | ac_status=$? | ||
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8086 | (exit $ac_status); }; }; then | ||
8087 | ac_cv_lib_bsd_daemon=yes | ||
8088 | else | ||
8089 | echo "$as_me: failed program was:" >&5 | ||
8090 | cat conftest.$ac_ext >&5 | ||
8091 | ac_cv_lib_bsd_daemon=no | ||
8092 | fi | ||
8093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8094 | LIBS=$ac_check_lib_save_LIBS | ||
8095 | fi | ||
8096 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
8097 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
8098 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
8099 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
8100 | @%:@define HAVE_DAEMON 1 | ||
8101 | _ACEOF | ||
8102 | |||
8103 | fi | ||
8104 | |||
8105 | |||
8106 | fi | ||
8107 | |||
8108 | |||
8109 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
8110 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
8111 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
8112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8113 | else | ||
8114 | cat >conftest.$ac_ext <<_ACEOF | ||
8115 | #line $LINENO "configure" | ||
8116 | #include "confdefs.h" | ||
8117 | /* System header to define __stub macros and hopefully few prototypes, | ||
8118 | which can conflict with char getpagesize (); below. */ | ||
8119 | #include <assert.h> | ||
8120 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8121 | #ifdef __cplusplus | ||
8122 | extern "C" | ||
8123 | #endif | ||
8124 | /* We use char because int might match the return type of a gcc2 | ||
8125 | builtin and then its argument prototype would still apply. */ | ||
8126 | char getpagesize (); | ||
8127 | char (*f) (); | ||
8128 | |||
8129 | #ifdef F77_DUMMY_MAIN | ||
8130 | # ifdef __cplusplus | ||
8131 | extern "C" | ||
8132 | # endif | ||
8133 | int F77_DUMMY_MAIN() { return 1; } | ||
8134 | #endif | ||
8135 | int | ||
8136 | main () | ||
8137 | { | ||
8138 | /* The GNU C library defines this for functions which it implements | ||
8139 | to always fail with ENOSYS. Some functions are actually named | ||
8140 | something starting with __ and the normal name is an alias. */ | ||
8141 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
8142 | choke me | ||
8143 | #else | ||
8144 | f = getpagesize; | ||
8145 | #endif | ||
8146 | |||
8147 | ; | ||
8148 | return 0; | ||
8149 | } | ||
8150 | _ACEOF | ||
8151 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8153 | (eval $ac_link) 2>&5 | ||
8154 | ac_status=$? | ||
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8156 | (exit $ac_status); } && | ||
8157 | { ac_try='test -s conftest$ac_exeext' | ||
8158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8159 | (eval $ac_try) 2>&5 | ||
8160 | ac_status=$? | ||
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8162 | (exit $ac_status); }; }; then | ||
8163 | ac_cv_func_getpagesize=yes | ||
8164 | else | ||
8165 | echo "$as_me: failed program was:" >&5 | ||
8166 | cat conftest.$ac_ext >&5 | ||
8167 | ac_cv_func_getpagesize=no | ||
8168 | fi | ||
8169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8170 | fi | ||
8171 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
8172 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
8173 | if test $ac_cv_func_getpagesize = yes; then | ||
8174 | cat >>confdefs.h <<\_ACEOF | ||
8175 | @%:@define HAVE_GETPAGESIZE 1 | ||
8176 | _ACEOF | ||
8177 | |||
8178 | else | ||
8179 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
8180 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
8181 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
8182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8183 | else | ||
8184 | ac_check_lib_save_LIBS=$LIBS | ||
8185 | LIBS="-lucb $LIBS" | ||
8186 | cat >conftest.$ac_ext <<_ACEOF | ||
8187 | #line $LINENO "configure" | ||
8188 | #include "confdefs.h" | ||
8189 | |||
8190 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8191 | #ifdef __cplusplus | ||
8192 | extern "C" | ||
8193 | #endif | ||
8194 | /* We use char because int might match the return type of a gcc2 | ||
8195 | builtin and then its argument prototype would still apply. */ | ||
8196 | char getpagesize (); | ||
8197 | #ifdef F77_DUMMY_MAIN | ||
8198 | # ifdef __cplusplus | ||
8199 | extern "C" | ||
8200 | # endif | ||
8201 | int F77_DUMMY_MAIN() { return 1; } | ||
8202 | #endif | ||
8203 | int | ||
8204 | main () | ||
8205 | { | ||
8206 | getpagesize (); | ||
8207 | ; | ||
8208 | return 0; | ||
8209 | } | ||
8210 | _ACEOF | ||
8211 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8213 | (eval $ac_link) 2>&5 | ||
8214 | ac_status=$? | ||
8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8216 | (exit $ac_status); } && | ||
8217 | { ac_try='test -s conftest$ac_exeext' | ||
8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8219 | (eval $ac_try) 2>&5 | ||
8220 | ac_status=$? | ||
8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8222 | (exit $ac_status); }; }; then | ||
8223 | ac_cv_lib_ucb_getpagesize=yes | ||
8224 | else | ||
8225 | echo "$as_me: failed program was:" >&5 | ||
8226 | cat conftest.$ac_ext >&5 | ||
8227 | ac_cv_lib_ucb_getpagesize=no | ||
8228 | fi | ||
8229 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8230 | LIBS=$ac_check_lib_save_LIBS | ||
8231 | fi | ||
8232 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
8233 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
8234 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
8235 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
8236 | @%:@define HAVE_GETPAGESIZE 1 | ||
8237 | _ACEOF | ||
8238 | |||
8239 | fi | ||
8240 | |||
8241 | |||
8242 | fi | ||
8243 | |||
8244 | |||
8245 | # Check for broken snprintf | ||
8246 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
8247 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
8248 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
8249 | if test "$cross_compiling" = yes; then | ||
8250 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8251 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8252 | { (exit 1); exit 1; }; } | ||
8253 | else | ||
8254 | cat >conftest.$ac_ext <<_ACEOF | ||
8255 | #line $LINENO "configure" | ||
8256 | #include "confdefs.h" | ||
8257 | |||
8258 | #include <stdio.h> | ||
8259 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
8260 | |||
8261 | _ACEOF | ||
8262 | rm -f conftest$ac_exeext | ||
8263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8264 | (eval $ac_link) 2>&5 | ||
8265 | ac_status=$? | ||
8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8269 | (eval $ac_try) 2>&5 | ||
8270 | ac_status=$? | ||
8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8272 | (exit $ac_status); }; }; then | ||
8273 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8274 | echo "${ECHO_T}yes" >&6 | ||
8275 | else | ||
8276 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8277 | echo "$as_me: failed program was:" >&5 | ||
8278 | cat conftest.$ac_ext >&5 | ||
8279 | ( exit $ac_status ) | ||
8280 | |||
8281 | echo "$as_me:$LINENO: result: no" >&5 | ||
8282 | echo "${ECHO_T}no" >&6 | ||
8283 | cat >>confdefs.h <<\_ACEOF | ||
8284 | @%:@define BROKEN_SNPRINTF 1 | ||
8285 | _ACEOF | ||
8286 | |||
8287 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
8288 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
8289 | |||
8290 | |||
8291 | fi | ||
8292 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8293 | fi | ||
8294 | fi | ||
8295 | |||
8296 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8297 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
8298 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8299 | if test "$cross_compiling" = yes; then | ||
8300 | |||
8301 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8302 | echo "${ECHO_T}yes" >&6 | ||
8303 | cat >>confdefs.h <<\_ACEOF | ||
8304 | @%:@define HAVE_STRICT_MKSTEMP 1 | ||
8305 | _ACEOF | ||
8306 | |||
8307 | |||
8308 | |||
8309 | else | ||
8310 | cat >conftest.$ac_ext <<_ACEOF | ||
8311 | #line $LINENO "configure" | ||
8312 | #include "confdefs.h" | ||
8313 | |||
8314 | #include <stdlib.h> | ||
8315 | main() { char template[]="conftest.mkstemp-test"; | ||
8316 | if (mkstemp(template) == -1) | ||
8317 | exit(1); | ||
8318 | unlink(template); exit(0); | ||
8319 | } | ||
8320 | |||
8321 | _ACEOF | ||
8322 | rm -f conftest$ac_exeext | ||
8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8324 | (eval $ac_link) 2>&5 | ||
8325 | ac_status=$? | ||
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8329 | (eval $ac_try) 2>&5 | ||
8330 | ac_status=$? | ||
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8332 | (exit $ac_status); }; }; then | ||
8333 | |||
8334 | echo "$as_me:$LINENO: result: no" >&5 | ||
8335 | echo "${ECHO_T}no" >&6 | ||
8336 | |||
8337 | else | ||
8338 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8339 | echo "$as_me: failed program was:" >&5 | ||
8340 | cat conftest.$ac_ext >&5 | ||
8341 | ( exit $ac_status ) | ||
8342 | |||
8343 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8344 | echo "${ECHO_T}yes" >&6 | ||
8345 | cat >>confdefs.h <<\_ACEOF | ||
8346 | @%:@define HAVE_STRICT_MKSTEMP 1 | ||
8347 | _ACEOF | ||
8348 | |||
8349 | |||
8350 | fi | ||
8351 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8352 | fi | ||
8353 | fi | ||
8354 | |||
8355 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
8356 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
8357 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8359 | else | ||
8360 | # Use it with a single arg. | ||
8361 | cat >conftest.$ac_ext <<_ACEOF | ||
8362 | #line $LINENO "configure" | ||
8363 | #include "confdefs.h" | ||
8364 | $ac_includes_default | ||
8365 | #ifdef F77_DUMMY_MAIN | ||
8366 | # ifdef __cplusplus | ||
8367 | extern "C" | ||
8368 | # endif | ||
8369 | int F77_DUMMY_MAIN() { return 1; } | ||
8370 | #endif | ||
8371 | int | ||
8372 | main () | ||
8373 | { | ||
8374 | getpgrp (0); | ||
8375 | ; | ||
8376 | return 0; | ||
8377 | } | ||
8378 | _ACEOF | ||
8379 | rm -f conftest.$ac_objext | ||
8380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8381 | (eval $ac_compile) 2>&5 | ||
8382 | ac_status=$? | ||
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8384 | (exit $ac_status); } && | ||
8385 | { ac_try='test -s conftest.$ac_objext' | ||
8386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8387 | (eval $ac_try) 2>&5 | ||
8388 | ac_status=$? | ||
8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8390 | (exit $ac_status); }; }; then | ||
8391 | ac_cv_func_getpgrp_void=no | ||
8392 | else | ||
8393 | echo "$as_me: failed program was:" >&5 | ||
8394 | cat conftest.$ac_ext >&5 | ||
8395 | ac_cv_func_getpgrp_void=yes | ||
8396 | fi | ||
8397 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8398 | |||
8399 | fi | ||
8400 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
8401 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8402 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8403 | |||
8404 | cat >>confdefs.h <<\_ACEOF | ||
8405 | @%:@define GETPGRP_VOID 1 | ||
8406 | _ACEOF | ||
8407 | |||
8408 | fi | ||
8409 | |||
8410 | |||
8411 | # Check for PAM libs | ||
8412 | PAM_MSG="no" | ||
8413 | |||
8414 | # Check whether --with-pam or --without-pam was given. | ||
8415 | if test "${with_pam+set}" = set; then | ||
8416 | withval="$with_pam" | ||
8417 | |||
8418 | if test "x$withval" != "xno" ; then | ||
8419 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
8420 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
8421 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8422 | { (exit 1); exit 1; }; } | ||
8423 | fi | ||
8424 | |||
8425 | |||
8426 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
8427 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8428 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8430 | else | ||
8431 | ac_check_lib_save_LIBS=$LIBS | ||
8432 | LIBS="-ldl $LIBS" | ||
8433 | cat >conftest.$ac_ext <<_ACEOF | ||
8434 | #line $LINENO "configure" | ||
8435 | #include "confdefs.h" | ||
8436 | |||
8437 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8438 | #ifdef __cplusplus | ||
8439 | extern "C" | ||
8440 | #endif | ||
8441 | /* We use char because int might match the return type of a gcc2 | ||
8442 | builtin and then its argument prototype would still apply. */ | ||
8443 | char dlopen (); | ||
8444 | #ifdef F77_DUMMY_MAIN | ||
8445 | # ifdef __cplusplus | ||
8446 | extern "C" | ||
8447 | # endif | ||
8448 | int F77_DUMMY_MAIN() { return 1; } | ||
8449 | #endif | ||
8450 | int | ||
8451 | main () | ||
8452 | { | ||
8453 | dlopen (); | ||
8454 | ; | ||
8455 | return 0; | ||
8456 | } | ||
8457 | _ACEOF | ||
8458 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8460 | (eval $ac_link) 2>&5 | ||
8461 | ac_status=$? | ||
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8463 | (exit $ac_status); } && | ||
8464 | { ac_try='test -s conftest$ac_exeext' | ||
8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8466 | (eval $ac_try) 2>&5 | ||
8467 | ac_status=$? | ||
8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8469 | (exit $ac_status); }; }; then | ||
8470 | ac_cv_lib_dl_dlopen=yes | ||
8471 | else | ||
8472 | echo "$as_me: failed program was:" >&5 | ||
8473 | cat conftest.$ac_ext >&5 | ||
8474 | ac_cv_lib_dl_dlopen=no | ||
8475 | fi | ||
8476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8477 | LIBS=$ac_check_lib_save_LIBS | ||
8478 | fi | ||
8479 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8480 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8481 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8482 | cat >>confdefs.h <<_ACEOF | ||
8483 | @%:@define HAVE_LIBDL 1 | ||
8484 | _ACEOF | ||
8485 | |||
8486 | LIBS="-ldl $LIBS" | ||
8487 | |||
8488 | fi | ||
8489 | |||
8490 | |||
8491 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
8492 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8493 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8495 | else | ||
8496 | ac_check_lib_save_LIBS=$LIBS | ||
8497 | LIBS="-lpam $LIBS" | ||
8498 | cat >conftest.$ac_ext <<_ACEOF | ||
8499 | #line $LINENO "configure" | ||
8500 | #include "confdefs.h" | ||
8501 | |||
8502 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8503 | #ifdef __cplusplus | ||
8504 | extern "C" | ||
8505 | #endif | ||
8506 | /* We use char because int might match the return type of a gcc2 | ||
8507 | builtin and then its argument prototype would still apply. */ | ||
8508 | char pam_set_item (); | ||
8509 | #ifdef F77_DUMMY_MAIN | ||
8510 | # ifdef __cplusplus | ||
8511 | extern "C" | ||
8512 | # endif | ||
8513 | int F77_DUMMY_MAIN() { return 1; } | ||
8514 | #endif | ||
8515 | int | ||
8516 | main () | ||
8517 | { | ||
8518 | pam_set_item (); | ||
8519 | ; | ||
8520 | return 0; | ||
8521 | } | ||
8522 | _ACEOF | ||
8523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8525 | (eval $ac_link) 2>&5 | ||
8526 | ac_status=$? | ||
8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8528 | (exit $ac_status); } && | ||
8529 | { ac_try='test -s conftest$ac_exeext' | ||
8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8531 | (eval $ac_try) 2>&5 | ||
8532 | ac_status=$? | ||
8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8534 | (exit $ac_status); }; }; then | ||
8535 | ac_cv_lib_pam_pam_set_item=yes | ||
8536 | else | ||
8537 | echo "$as_me: failed program was:" >&5 | ||
8538 | cat conftest.$ac_ext >&5 | ||
8539 | ac_cv_lib_pam_pam_set_item=no | ||
8540 | fi | ||
8541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8542 | LIBS=$ac_check_lib_save_LIBS | ||
8543 | fi | ||
8544 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8545 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8546 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8547 | cat >>confdefs.h <<_ACEOF | ||
8548 | @%:@define HAVE_LIBPAM 1 | ||
8549 | _ACEOF | ||
8550 | |||
8551 | LIBS="-lpam $LIBS" | ||
8552 | |||
8553 | else | ||
8554 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
8555 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8556 | { (exit 1); exit 1; }; } | ||
8557 | fi | ||
8558 | |||
8559 | |||
8560 | for ac_func in pam_getenvlist | ||
8561 | do | ||
8562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8563 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8565 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8567 | else | ||
8568 | cat >conftest.$ac_ext <<_ACEOF | ||
8569 | #line $LINENO "configure" | ||
8570 | #include "confdefs.h" | ||
8571 | /* System header to define __stub macros and hopefully few prototypes, | ||
8572 | which can conflict with char $ac_func (); below. */ | ||
8573 | #include <assert.h> | ||
8574 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8575 | #ifdef __cplusplus | ||
8576 | extern "C" | ||
8577 | #endif | ||
8578 | /* We use char because int might match the return type of a gcc2 | ||
8579 | builtin and then its argument prototype would still apply. */ | ||
8580 | char $ac_func (); | ||
8581 | char (*f) (); | ||
8582 | |||
8583 | #ifdef F77_DUMMY_MAIN | ||
8584 | # ifdef __cplusplus | ||
8585 | extern "C" | ||
8586 | # endif | ||
8587 | int F77_DUMMY_MAIN() { return 1; } | ||
8588 | #endif | ||
8589 | int | ||
8590 | main () | ||
8591 | { | ||
8592 | /* The GNU C library defines this for functions which it implements | ||
8593 | to always fail with ENOSYS. Some functions are actually named | ||
8594 | something starting with __ and the normal name is an alias. */ | ||
8595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8596 | choke me | ||
8597 | #else | ||
8598 | f = $ac_func; | ||
8599 | #endif | ||
8600 | |||
8601 | ; | ||
8602 | return 0; | ||
8603 | } | ||
8604 | _ACEOF | ||
8605 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8607 | (eval $ac_link) 2>&5 | ||
8608 | ac_status=$? | ||
8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8610 | (exit $ac_status); } && | ||
8611 | { ac_try='test -s conftest$ac_exeext' | ||
8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8613 | (eval $ac_try) 2>&5 | ||
8614 | ac_status=$? | ||
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8616 | (exit $ac_status); }; }; then | ||
8617 | eval "$as_ac_var=yes" | ||
8618 | else | ||
8619 | echo "$as_me: failed program was:" >&5 | ||
8620 | cat conftest.$ac_ext >&5 | ||
8621 | eval "$as_ac_var=no" | ||
8622 | fi | ||
8623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8624 | fi | ||
8625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8626 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8627 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8628 | cat >>confdefs.h <<_ACEOF | ||
8629 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8630 | _ACEOF | ||
8631 | |||
8632 | fi | ||
8633 | done | ||
8634 | |||
8635 | |||
8636 | disable_shadow=yes | ||
8637 | PAM_MSG="yes" | ||
8638 | |||
8639 | cat >>confdefs.h <<\_ACEOF | ||
8640 | @%:@define USE_PAM 1 | ||
8641 | _ACEOF | ||
8642 | |||
8643 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8644 | LIBPAM="-lpam -ldl" | ||
8645 | else | ||
8646 | LIBPAM="-lpam" | ||
8647 | fi | ||
8648 | |||
8649 | fi | ||
8650 | |||
8651 | |||
8652 | fi; | ||
8653 | |||
8654 | # Check for older PAM | ||
8655 | if test "x$PAM_MSG" = "xyes" ; then | ||
8656 | # Check PAM strerror arguments (old PAM) | ||
8657 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
8658 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8659 | cat >conftest.$ac_ext <<_ACEOF | ||
8660 | #line $LINENO "configure" | ||
8661 | #include "confdefs.h" | ||
8662 | |||
8663 | #include <stdlib.h> | ||
8664 | #include <security/pam_appl.h> | ||
8665 | |||
8666 | #ifdef F77_DUMMY_MAIN | ||
8667 | # ifdef __cplusplus | ||
8668 | extern "C" | ||
8669 | # endif | ||
8670 | int F77_DUMMY_MAIN() { return 1; } | ||
8671 | #endif | ||
8672 | int | ||
8673 | main () | ||
8674 | { | ||
8675 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8676 | ; | ||
8677 | return 0; | ||
8678 | } | ||
8679 | _ACEOF | ||
8680 | rm -f conftest.$ac_objext | ||
8681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8682 | (eval $ac_compile) 2>&5 | ||
8683 | ac_status=$? | ||
8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8685 | (exit $ac_status); } && | ||
8686 | { ac_try='test -s conftest.$ac_objext' | ||
8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8688 | (eval $ac_try) 2>&5 | ||
8689 | ac_status=$? | ||
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8691 | (exit $ac_status); }; }; then | ||
8692 | echo "$as_me:$LINENO: result: no" >&5 | ||
8693 | echo "${ECHO_T}no" >&6 | ||
8694 | else | ||
8695 | echo "$as_me: failed program was:" >&5 | ||
8696 | cat conftest.$ac_ext >&5 | ||
8697 | |||
8698 | cat >>confdefs.h <<\_ACEOF | ||
8699 | @%:@define HAVE_OLD_PAM 1 | ||
8700 | _ACEOF | ||
8701 | |||
8702 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8703 | echo "${ECHO_T}yes" >&6 | ||
8704 | PAM_MSG="yes (old library)" | ||
8705 | |||
8706 | |||
8707 | fi | ||
8708 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8709 | fi | ||
8710 | |||
8711 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
8712 | # because the system crypt() is more featureful. | ||
8713 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
8714 | |||
8715 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
8716 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8717 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8719 | else | ||
8720 | ac_check_lib_save_LIBS=$LIBS | ||
8721 | LIBS="-lcrypt $LIBS" | ||
8722 | cat >conftest.$ac_ext <<_ACEOF | ||
8723 | #line $LINENO "configure" | ||
8724 | #include "confdefs.h" | ||
8725 | |||
8726 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8727 | #ifdef __cplusplus | ||
8728 | extern "C" | ||
8729 | #endif | ||
8730 | /* We use char because int might match the return type of a gcc2 | ||
8731 | builtin and then its argument prototype would still apply. */ | ||
8732 | char crypt (); | ||
8733 | #ifdef F77_DUMMY_MAIN | ||
8734 | # ifdef __cplusplus | ||
8735 | extern "C" | ||
8736 | # endif | ||
8737 | int F77_DUMMY_MAIN() { return 1; } | ||
8738 | #endif | ||
8739 | int | ||
8740 | main () | ||
8741 | { | ||
8742 | crypt (); | ||
8743 | ; | ||
8744 | return 0; | ||
8745 | } | ||
8746 | _ACEOF | ||
8747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8749 | (eval $ac_link) 2>&5 | ||
8750 | ac_status=$? | ||
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8752 | (exit $ac_status); } && | ||
8753 | { ac_try='test -s conftest$ac_exeext' | ||
8754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8755 | (eval $ac_try) 2>&5 | ||
8756 | ac_status=$? | ||
8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8758 | (exit $ac_status); }; }; then | ||
8759 | ac_cv_lib_crypt_crypt=yes | ||
8760 | else | ||
8761 | echo "$as_me: failed program was:" >&5 | ||
8762 | cat conftest.$ac_ext >&5 | ||
8763 | ac_cv_lib_crypt_crypt=no | ||
8764 | fi | ||
8765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8766 | LIBS=$ac_check_lib_save_LIBS | ||
8767 | fi | ||
8768 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8769 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8770 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8771 | cat >>confdefs.h <<_ACEOF | ||
8772 | @%:@define HAVE_LIBCRYPT 1 | ||
8773 | _ACEOF | ||
8774 | |||
8775 | LIBS="-lcrypt $LIBS" | ||
8776 | |||
8777 | fi | ||
8778 | |||
8779 | fi | ||
8780 | |||
8781 | # Search for OpenSSL | ||
8782 | saved_CPPFLAGS="$CPPFLAGS" | ||
8783 | saved_LDFLAGS="$LDFLAGS" | ||
8784 | |||
8785 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8786 | if test "${with_ssl_dir+set}" = set; then | ||
8787 | withval="$with_ssl_dir" | ||
8788 | |||
8789 | if test "x$withval" != "xno" ; then | ||
8790 | if test -d "$withval/lib"; then | ||
8791 | if test -n "${need_dash_r}"; then | ||
8792 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8793 | else | ||
8794 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8795 | fi | ||
8796 | else | ||
8797 | if test -n "${need_dash_r}"; then | ||
8798 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8799 | else | ||
8800 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8801 | fi | ||
8802 | fi | ||
8803 | if test -d "$withval/include"; then | ||
8804 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8805 | else | ||
8806 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8807 | fi | ||
8808 | fi | ||
8809 | |||
8810 | |||
8811 | fi; | ||
8812 | LIBS="$LIBS -lcrypto" | ||
8813 | cat >conftest.$ac_ext <<_ACEOF | ||
8814 | #line $LINENO "configure" | ||
8815 | #include "confdefs.h" | ||
8816 | |||
8817 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8818 | #ifdef __cplusplus | ||
8819 | extern "C" | ||
8820 | #endif | ||
8821 | /* We use char because int might match the return type of a gcc2 | ||
8822 | builtin and then its argument prototype would still apply. */ | ||
8823 | char RAND_add (); | ||
8824 | #ifdef F77_DUMMY_MAIN | ||
8825 | # ifdef __cplusplus | ||
8826 | extern "C" | ||
8827 | # endif | ||
8828 | int F77_DUMMY_MAIN() { return 1; } | ||
8829 | #endif | ||
8830 | int | ||
8831 | main () | ||
8832 | { | ||
8833 | RAND_add (); | ||
8834 | ; | ||
8835 | return 0; | ||
8836 | } | ||
8837 | _ACEOF | ||
8838 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8840 | (eval $ac_link) 2>&5 | ||
8841 | ac_status=$? | ||
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8843 | (exit $ac_status); } && | ||
8844 | { ac_try='test -s conftest$ac_exeext' | ||
8845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8846 | (eval $ac_try) 2>&5 | ||
8847 | ac_status=$? | ||
8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8849 | (exit $ac_status); }; }; then | ||
8850 | cat >>confdefs.h <<\_ACEOF | ||
8851 | @%:@define HAVE_OPENSSL 1 | ||
8852 | _ACEOF | ||
8853 | |||
8854 | else | ||
8855 | echo "$as_me: failed program was:" >&5 | ||
8856 | cat conftest.$ac_ext >&5 | ||
8857 | |||
8858 | if test -n "${need_dash_r}"; then | ||
8859 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8860 | else | ||
8861 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8862 | fi | ||
8863 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8864 | cat >conftest.$ac_ext <<_ACEOF | ||
8865 | #line $LINENO "configure" | ||
8866 | #include "confdefs.h" | ||
8867 | |||
8868 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8869 | #ifdef __cplusplus | ||
8870 | extern "C" | ||
8871 | #endif | ||
8872 | /* We use char because int might match the return type of a gcc2 | ||
8873 | builtin and then its argument prototype would still apply. */ | ||
8874 | char RAND_add (); | ||
8875 | #ifdef F77_DUMMY_MAIN | ||
8876 | # ifdef __cplusplus | ||
8877 | extern "C" | ||
8878 | # endif | ||
8879 | int F77_DUMMY_MAIN() { return 1; } | ||
8880 | #endif | ||
8881 | int | ||
8882 | main () | ||
8883 | { | ||
8884 | RAND_add (); | ||
8885 | ; | ||
8886 | return 0; | ||
8887 | } | ||
8888 | _ACEOF | ||
8889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8891 | (eval $ac_link) 2>&5 | ||
8892 | ac_status=$? | ||
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8894 | (exit $ac_status); } && | ||
8895 | { ac_try='test -s conftest$ac_exeext' | ||
8896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8897 | (eval $ac_try) 2>&5 | ||
8898 | ac_status=$? | ||
8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8900 | (exit $ac_status); }; }; then | ||
8901 | cat >>confdefs.h <<\_ACEOF | ||
8902 | @%:@define HAVE_OPENSSL 1 | ||
8903 | _ACEOF | ||
8904 | |||
8905 | else | ||
8906 | echo "$as_me: failed program was:" >&5 | ||
8907 | cat conftest.$ac_ext >&5 | ||
8908 | |||
8909 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8910 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8911 | { (exit 1); exit 1; }; } | ||
8912 | |||
8913 | |||
8914 | fi | ||
8915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8916 | |||
8917 | |||
8918 | fi | ||
8919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8920 | |||
8921 | # Determine OpenSSL header version | ||
8922 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
8923 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
8924 | if test "$cross_compiling" = yes; then | ||
8925 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8926 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8927 | { (exit 1); exit 1; }; } | ||
8928 | else | ||
8929 | cat >conftest.$ac_ext <<_ACEOF | ||
8930 | #line $LINENO "configure" | ||
8931 | #include "confdefs.h" | ||
8932 | |||
8933 | #include <stdio.h> | ||
8934 | #include <string.h> | ||
8935 | #include <openssl/opensslv.h> | ||
8936 | #define DATA "conftest.sslincver" | ||
8937 | int main(void) { | ||
8938 | FILE *fd; | ||
8939 | int rc; | ||
8940 | |||
8941 | fd = fopen(DATA,"w"); | ||
8942 | if(fd == NULL) | ||
8943 | exit(1); | ||
8944 | |||
8945 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
8946 | exit(1); | ||
8947 | |||
8948 | exit(0); | ||
8949 | } | ||
8950 | |||
8951 | _ACEOF | ||
8952 | rm -f conftest$ac_exeext | ||
8953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8954 | (eval $ac_link) 2>&5 | ||
8955 | ac_status=$? | ||
8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8957 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8959 | (eval $ac_try) 2>&5 | ||
8960 | ac_status=$? | ||
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8962 | (exit $ac_status); }; }; then | ||
8963 | |||
8964 | ssl_header_ver=`cat conftest.sslincver` | ||
8965 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
8966 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
8967 | |||
8968 | else | ||
8969 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8970 | echo "$as_me: failed program was:" >&5 | ||
8971 | cat conftest.$ac_ext >&5 | ||
8972 | ( exit $ac_status ) | ||
8973 | |||
8974 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8975 | echo "${ECHO_T}not found" >&6 | ||
8976 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
8977 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
8978 | { (exit 1); exit 1; }; } | ||
8979 | |||
8980 | |||
8981 | fi | ||
8982 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8983 | fi | ||
8984 | |||
8985 | # Determine OpenSSL library version | ||
8986 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
8987 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
8988 | if test "$cross_compiling" = yes; then | ||
8989 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8990 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8991 | { (exit 1); exit 1; }; } | ||
8992 | else | ||
8993 | cat >conftest.$ac_ext <<_ACEOF | ||
8994 | #line $LINENO "configure" | ||
8995 | #include "confdefs.h" | ||
8996 | |||
8997 | #include <stdio.h> | ||
8998 | #include <string.h> | ||
8999 | #include <openssl/opensslv.h> | ||
9000 | #include <openssl/crypto.h> | ||
9001 | #define DATA "conftest.ssllibver" | ||
9002 | int main(void) { | ||
9003 | FILE *fd; | ||
9004 | int rc; | ||
9005 | |||
9006 | fd = fopen(DATA,"w"); | ||
9007 | if(fd == NULL) | ||
9008 | exit(1); | ||
9009 | |||
9010 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
9011 | exit(1); | ||
9012 | |||
9013 | exit(0); | ||
9014 | } | ||
9015 | |||
9016 | _ACEOF | ||
9017 | rm -f conftest$ac_exeext | ||
9018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9019 | (eval $ac_link) 2>&5 | ||
9020 | ac_status=$? | ||
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9024 | (eval $ac_try) 2>&5 | ||
9025 | ac_status=$? | ||
9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9027 | (exit $ac_status); }; }; then | ||
9028 | |||
9029 | ssl_library_ver=`cat conftest.ssllibver` | ||
9030 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
9031 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
9032 | |||
9033 | else | ||
9034 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9035 | echo "$as_me: failed program was:" >&5 | ||
9036 | cat conftest.$ac_ext >&5 | ||
9037 | ( exit $ac_status ) | ||
9038 | |||
9039 | echo "$as_me:$LINENO: result: not found" >&5 | ||
9040 | echo "${ECHO_T}not found" >&6 | ||
9041 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
9042 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
9043 | { (exit 1); exit 1; }; } | ||
9044 | |||
9045 | |||
9046 | fi | ||
9047 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9048 | fi | ||
9049 | |||
9050 | # Sanity check OpenSSL headers | ||
9051 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
9052 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
9053 | if test "$cross_compiling" = yes; then | ||
9054 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9055 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9056 | { (exit 1); exit 1; }; } | ||
9057 | else | ||
9058 | cat >conftest.$ac_ext <<_ACEOF | ||
9059 | #line $LINENO "configure" | ||
9060 | #include "confdefs.h" | ||
9061 | |||
9062 | #include <string.h> | ||
9063 | #include <openssl/opensslv.h> | ||
9064 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
9065 | |||
9066 | _ACEOF | ||
9067 | rm -f conftest$ac_exeext | ||
9068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9069 | (eval $ac_link) 2>&5 | ||
9070 | ac_status=$? | ||
9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9074 | (eval $ac_try) 2>&5 | ||
9075 | ac_status=$? | ||
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9077 | (exit $ac_status); }; }; then | ||
9078 | |||
9079 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9080 | echo "${ECHO_T}yes" >&6 | ||
9081 | |||
9082 | else | ||
9083 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9084 | echo "$as_me: failed program was:" >&5 | ||
9085 | cat conftest.$ac_ext >&5 | ||
9086 | ( exit $ac_status ) | ||
9087 | |||
9088 | echo "$as_me:$LINENO: result: no" >&5 | ||
9089 | echo "${ECHO_T}no" >&6 | ||
9090 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5 | ||
9091 | echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;} | ||
9092 | { (exit 1); exit 1; }; } | ||
9093 | |||
9094 | |||
9095 | fi | ||
9096 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9097 | fi | ||
9098 | |||
9099 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
9100 | # version in OpenSSL. Skip this for PAM | ||
9101 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | ||
9102 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
9103 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9104 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9106 | else | ||
9107 | ac_check_lib_save_LIBS=$LIBS | ||
9108 | LIBS="-lcrypt $LIBS" | ||
9109 | cat >conftest.$ac_ext <<_ACEOF | ||
9110 | #line $LINENO "configure" | ||
9111 | #include "confdefs.h" | ||
9112 | |||
9113 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9114 | #ifdef __cplusplus | ||
9115 | extern "C" | ||
9116 | #endif | ||
9117 | /* We use char because int might match the return type of a gcc2 | ||
9118 | builtin and then its argument prototype would still apply. */ | ||
9119 | char crypt (); | ||
9120 | #ifdef F77_DUMMY_MAIN | ||
9121 | # ifdef __cplusplus | ||
9122 | extern "C" | ||
9123 | # endif | ||
9124 | int F77_DUMMY_MAIN() { return 1; } | ||
9125 | #endif | ||
9126 | int | ||
9127 | main () | ||
9128 | { | ||
9129 | crypt (); | ||
9130 | ; | ||
9131 | return 0; | ||
9132 | } | ||
9133 | _ACEOF | ||
9134 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9136 | (eval $ac_link) 2>&5 | ||
9137 | ac_status=$? | ||
9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9139 | (exit $ac_status); } && | ||
9140 | { ac_try='test -s conftest$ac_exeext' | ||
9141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9142 | (eval $ac_try) 2>&5 | ||
9143 | ac_status=$? | ||
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9145 | (exit $ac_status); }; }; then | ||
9146 | ac_cv_lib_crypt_crypt=yes | ||
9147 | else | ||
9148 | echo "$as_me: failed program was:" >&5 | ||
9149 | cat conftest.$ac_ext >&5 | ||
9150 | ac_cv_lib_crypt_crypt=no | ||
9151 | fi | ||
9152 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9153 | LIBS=$ac_check_lib_save_LIBS | ||
9154 | fi | ||
9155 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9156 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9157 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9158 | LIBS="$LIBS -lcrypt" | ||
9159 | fi | ||
9160 | |||
9161 | fi | ||
9162 | |||
9163 | |||
9164 | ### Configure cryptographic random number support | ||
9165 | |||
9166 | # Check wheter OpenSSL seeds itself | ||
9167 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
9168 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
9169 | if test "$cross_compiling" = yes; then | ||
9170 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9171 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9172 | { (exit 1); exit 1; }; } | ||
9173 | else | ||
9174 | cat >conftest.$ac_ext <<_ACEOF | ||
9175 | #line $LINENO "configure" | ||
9176 | #include "confdefs.h" | ||
9177 | |||
9178 | #include <string.h> | ||
9179 | #include <openssl/rand.h> | ||
9180 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
9181 | |||
9182 | _ACEOF | ||
9183 | rm -f conftest$ac_exeext | ||
9184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9185 | (eval $ac_link) 2>&5 | ||
9186 | ac_status=$? | ||
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9190 | (eval $ac_try) 2>&5 | ||
9191 | ac_status=$? | ||
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9193 | (exit $ac_status); }; }; then | ||
9194 | |||
9195 | OPENSSL_SEEDS_ITSELF=yes | ||
9196 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9197 | echo "${ECHO_T}yes" >&6 | ||
9198 | |||
9199 | else | ||
9200 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9201 | echo "$as_me: failed program was:" >&5 | ||
9202 | cat conftest.$ac_ext >&5 | ||
9203 | ( exit $ac_status ) | ||
9204 | |||
9205 | echo "$as_me:$LINENO: result: no" >&5 | ||
9206 | echo "${ECHO_T}no" >&6 | ||
9207 | # Default to use of the rand helper if OpenSSL doesn't | ||
9208 | # seed itself | ||
9209 | USE_RAND_HELPER=yes | ||
9210 | |||
9211 | |||
9212 | fi | ||
9213 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9214 | fi | ||
9215 | |||
9216 | |||
9217 | # Do we want to force the use of the rand helper? | ||
9218 | |||
9219 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
9220 | if test "${with_rand_helper+set}" = set; then | ||
9221 | withval="$with_rand_helper" | ||
9222 | |||
9223 | if test "x$withval" = "xno" ; then | ||
9224 | # Force use of OpenSSL's internal RNG, even if | ||
9225 | # the previous test showed it to be unseeded. | ||
9226 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
9227 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
9228 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
9229 | OPENSSL_SEEDS_ITSELF=yes | ||
9230 | USE_RAND_HELPER="" | ||
9231 | fi | ||
9232 | else | ||
9233 | USE_RAND_HELPER=yes | ||
9234 | fi | ||
9235 | |||
9236 | fi; | ||
9237 | |||
9238 | # Which randomness source do we use? | ||
9239 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
9240 | # OpenSSL only | ||
9241 | cat >>confdefs.h <<\_ACEOF | ||
9242 | @%:@define OPENSSL_PRNG_ONLY 1 | ||
9243 | _ACEOF | ||
9244 | |||
9245 | RAND_MSG="OpenSSL internal ONLY" | ||
9246 | INSTALL_SSH_RAND_HELPER="" | ||
9247 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
9248 | # install rand helper | ||
9249 | RAND_MSG="ssh-rand-helper" | ||
9250 | INSTALL_SSH_RAND_HELPER="yes" | ||
9251 | fi | ||
9252 | |||
9253 | |||
9254 | ### Configuration of ssh-rand-helper | ||
9255 | |||
9256 | # PRNGD TCP socket | ||
9257 | |||
9258 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
9259 | if test "${with_prngd_port+set}" = set; then | ||
9260 | withval="$with_prngd_port" | ||
9261 | |||
9262 | case "$withval" in | ||
9263 | no) | ||
9264 | withval="" | ||
9265 | ;; | ||
9266 | [0-9]*) | ||
9267 | ;; | ||
9268 | *) | ||
9269 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
9270 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
9271 | { (exit 1); exit 1; }; } | ||
9272 | ;; | ||
9273 | esac | ||
9274 | if test ! -z "$withval" ; then | ||
9275 | PRNGD_PORT="$withval" | ||
9276 | cat >>confdefs.h <<_ACEOF | ||
9277 | @%:@define PRNGD_PORT $PRNGD_PORT | ||
9278 | _ACEOF | ||
9279 | |||
9280 | fi | ||
9281 | |||
9282 | |||
9283 | fi; | ||
9284 | |||
9285 | # PRNGD Unix domain socket | ||
9286 | |||
9287 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9288 | if test "${with_prngd_socket+set}" = set; then | ||
9289 | withval="$with_prngd_socket" | ||
9290 | |||
9291 | case "$withval" in | ||
9292 | yes) | ||
9293 | withval="/var/run/egd-pool" | ||
9294 | ;; | ||
9295 | no) | ||
9296 | withval="" | ||
9297 | ;; | ||
9298 | /*) | ||
9299 | ;; | ||
9300 | *) | ||
9301 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
9302 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9303 | { (exit 1); exit 1; }; } | ||
9304 | ;; | ||
9305 | esac | ||
9306 | |||
9307 | if test ! -z "$withval" ; then | ||
9308 | if test ! -z "$PRNGD_PORT" ; then | ||
9309 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9310 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9311 | { (exit 1); exit 1; }; } | ||
9312 | fi | ||
9313 | if test ! -r "$withval" ; then | ||
9314 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
9315 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9316 | fi | ||
9317 | PRNGD_SOCKET="$withval" | ||
9318 | cat >>confdefs.h <<_ACEOF | ||
9319 | @%:@define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9320 | _ACEOF | ||
9321 | |||
9322 | fi | ||
9323 | |||
9324 | else | ||
9325 | |||
9326 | # Check for existing socket only if we don't have a random device already | ||
9327 | if test "$USE_RAND_HELPER" = yes ; then | ||
9328 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
9329 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9330 | # Insert other locations here | ||
9331 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9332 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9333 | PRNGD_SOCKET="$sock" | ||
9334 | cat >>confdefs.h <<_ACEOF | ||
9335 | @%:@define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9336 | _ACEOF | ||
9337 | |||
9338 | break; | ||
9339 | fi | ||
9340 | done | ||
9341 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9342 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
9343 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9344 | else | ||
9345 | echo "$as_me:$LINENO: result: not found" >&5 | ||
9346 | echo "${ECHO_T}not found" >&6 | ||
9347 | fi | ||
9348 | fi | ||
9349 | |||
9350 | |||
9351 | fi; | ||
9352 | |||
9353 | # Change default command timeout for hashing entropy source | ||
9354 | entropy_timeout=200 | ||
9355 | |||
9356 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9357 | if test "${with_entropy_timeout+set}" = set; then | ||
9358 | withval="$with_entropy_timeout" | ||
9359 | |||
9360 | if test "x$withval" != "xno" ; then | ||
9361 | entropy_timeout=$withval | ||
9362 | fi | ||
9363 | |||
9364 | |||
9365 | fi; | ||
9366 | cat >>confdefs.h <<_ACEOF | ||
9367 | @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9368 | _ACEOF | ||
9369 | |||
9370 | |||
9371 | SSH_PRIVSEP_USER=sshd | ||
9372 | |||
9373 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9374 | if test "${with_privsep_user+set}" = set; then | ||
9375 | withval="$with_privsep_user" | ||
9376 | |||
9377 | if test -n "$withval"; then | ||
9378 | SSH_PRIVSEP_USER=$withval | ||
9379 | fi | ||
9380 | |||
9381 | |||
9382 | fi; | ||
9383 | cat >>confdefs.h <<_ACEOF | ||
9384 | @%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9385 | _ACEOF | ||
9386 | |||
9387 | |||
9388 | |||
9389 | # We do this little dance with the search path to insure | ||
9390 | # that programs that we select for use by installed programs | ||
9391 | # (which may be run by the super-user) come from trusted | ||
9392 | # locations before they come from the user's private area. | ||
9393 | # This should help avoid accidentally configuring some | ||
9394 | # random version of a program in someone's personal bin. | ||
9395 | |||
9396 | OPATH=$PATH | ||
9397 | PATH=/bin:/usr/bin | ||
9398 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9399 | test -d /sbin && PATH=$PATH:/sbin | ||
9400 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9401 | PATH=$PATH:/etc:$OPATH | ||
9402 | |||
9403 | # These programs are used by the command hashing source to gather entropy | ||
9404 | |||
9405 | # Extract the first word of "ls", so it can be a program name with args. | ||
9406 | set dummy ls; ac_word=$2 | ||
9407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9409 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9411 | else | ||
9412 | case $PROG_LS in | ||
9413 | [\\/]* | ?:[\\/]*) | ||
9414 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9415 | ;; | ||
9416 | *) | ||
9417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9418 | for as_dir in $PATH | ||
9419 | do | ||
9420 | IFS=$as_save_IFS | ||
9421 | test -z "$as_dir" && as_dir=. | ||
9422 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9424 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
9425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9426 | break 2 | ||
9427 | fi | ||
9428 | done | ||
9429 | done | ||
9430 | |||
9431 | ;; | ||
9432 | esac | ||
9433 | fi | ||
9434 | PROG_LS=$ac_cv_path_PROG_LS | ||
9435 | |||
9436 | if test -n "$PROG_LS"; then | ||
9437 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
9438 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9439 | else | ||
9440 | echo "$as_me:$LINENO: result: no" >&5 | ||
9441 | echo "${ECHO_T}no" >&6 | ||
9442 | fi | ||
9443 | |||
9444 | if test -z "$PROG_LS" ; then | ||
9445 | PROG_LS="undef" | ||
9446 | fi | ||
9447 | |||
9448 | |||
9449 | |||
9450 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9451 | set dummy netstat; ac_word=$2 | ||
9452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9454 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9456 | else | ||
9457 | case $PROG_NETSTAT in | ||
9458 | [\\/]* | ?:[\\/]*) | ||
9459 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9460 | ;; | ||
9461 | *) | ||
9462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9463 | for as_dir in $PATH | ||
9464 | do | ||
9465 | IFS=$as_save_IFS | ||
9466 | test -z "$as_dir" && as_dir=. | ||
9467 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9469 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9471 | break 2 | ||
9472 | fi | ||
9473 | done | ||
9474 | done | ||
9475 | |||
9476 | ;; | ||
9477 | esac | ||
9478 | fi | ||
9479 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9480 | |||
9481 | if test -n "$PROG_NETSTAT"; then | ||
9482 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
9483 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9484 | else | ||
9485 | echo "$as_me:$LINENO: result: no" >&5 | ||
9486 | echo "${ECHO_T}no" >&6 | ||
9487 | fi | ||
9488 | |||
9489 | if test -z "$PROG_NETSTAT" ; then | ||
9490 | PROG_NETSTAT="undef" | ||
9491 | fi | ||
9492 | |||
9493 | |||
9494 | |||
9495 | # Extract the first word of "arp", so it can be a program name with args. | ||
9496 | set dummy arp; ac_word=$2 | ||
9497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9499 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9501 | else | ||
9502 | case $PROG_ARP in | ||
9503 | [\\/]* | ?:[\\/]*) | ||
9504 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9505 | ;; | ||
9506 | *) | ||
9507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9508 | for as_dir in $PATH | ||
9509 | do | ||
9510 | IFS=$as_save_IFS | ||
9511 | test -z "$as_dir" && as_dir=. | ||
9512 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9514 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
9515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9516 | break 2 | ||
9517 | fi | ||
9518 | done | ||
9519 | done | ||
9520 | |||
9521 | ;; | ||
9522 | esac | ||
9523 | fi | ||
9524 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9525 | |||
9526 | if test -n "$PROG_ARP"; then | ||
9527 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
9528 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9529 | else | ||
9530 | echo "$as_me:$LINENO: result: no" >&5 | ||
9531 | echo "${ECHO_T}no" >&6 | ||
9532 | fi | ||
9533 | |||
9534 | if test -z "$PROG_ARP" ; then | ||
9535 | PROG_ARP="undef" | ||
9536 | fi | ||
9537 | |||
9538 | |||
9539 | |||
9540 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9541 | set dummy ifconfig; ac_word=$2 | ||
9542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9544 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9546 | else | ||
9547 | case $PROG_IFCONFIG in | ||
9548 | [\\/]* | ?:[\\/]*) | ||
9549 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9550 | ;; | ||
9551 | *) | ||
9552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9553 | for as_dir in $PATH | ||
9554 | do | ||
9555 | IFS=$as_save_IFS | ||
9556 | test -z "$as_dir" && as_dir=. | ||
9557 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9559 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9561 | break 2 | ||
9562 | fi | ||
9563 | done | ||
9564 | done | ||
9565 | |||
9566 | ;; | ||
9567 | esac | ||
9568 | fi | ||
9569 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
9570 | |||
9571 | if test -n "$PROG_IFCONFIG"; then | ||
9572 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
9573 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
9574 | else | ||
9575 | echo "$as_me:$LINENO: result: no" >&5 | ||
9576 | echo "${ECHO_T}no" >&6 | ||
9577 | fi | ||
9578 | |||
9579 | if test -z "$PROG_IFCONFIG" ; then | ||
9580 | PROG_IFCONFIG="undef" | ||
9581 | fi | ||
9582 | |||
9583 | |||
9584 | |||
9585 | # Extract the first word of "jstat", so it can be a program name with args. | ||
9586 | set dummy jstat; ac_word=$2 | ||
9587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9589 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
9590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9591 | else | ||
9592 | case $PROG_JSTAT in | ||
9593 | [\\/]* | ?:[\\/]*) | ||
9594 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
9595 | ;; | ||
9596 | *) | ||
9597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9598 | for as_dir in $PATH | ||
9599 | do | ||
9600 | IFS=$as_save_IFS | ||
9601 | test -z "$as_dir" && as_dir=. | ||
9602 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9604 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9606 | break 2 | ||
9607 | fi | ||
9608 | done | ||
9609 | done | ||
9610 | |||
9611 | ;; | ||
9612 | esac | ||
9613 | fi | ||
9614 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
9615 | |||
9616 | if test -n "$PROG_JSTAT"; then | ||
9617 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
9618 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
9619 | else | ||
9620 | echo "$as_me:$LINENO: result: no" >&5 | ||
9621 | echo "${ECHO_T}no" >&6 | ||
9622 | fi | ||
9623 | |||
9624 | if test -z "$PROG_JSTAT" ; then | ||
9625 | PROG_JSTAT="undef" | ||
9626 | fi | ||
9627 | |||
9628 | |||
9629 | |||
9630 | # Extract the first word of "ps", so it can be a program name with args. | ||
9631 | set dummy ps; ac_word=$2 | ||
9632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9634 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9636 | else | ||
9637 | case $PROG_PS in | ||
9638 | [\\/]* | ?:[\\/]*) | ||
9639 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
9640 | ;; | ||
9641 | *) | ||
9642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9643 | for as_dir in $PATH | ||
9644 | do | ||
9645 | IFS=$as_save_IFS | ||
9646 | test -z "$as_dir" && as_dir=. | ||
9647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9649 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
9650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9651 | break 2 | ||
9652 | fi | ||
9653 | done | ||
9654 | done | ||
9655 | |||
9656 | ;; | ||
9657 | esac | ||
9658 | fi | ||
9659 | PROG_PS=$ac_cv_path_PROG_PS | ||
9660 | |||
9661 | if test -n "$PROG_PS"; then | ||
9662 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
9663 | echo "${ECHO_T}$PROG_PS" >&6 | ||
9664 | else | ||
9665 | echo "$as_me:$LINENO: result: no" >&5 | ||
9666 | echo "${ECHO_T}no" >&6 | ||
9667 | fi | ||
9668 | |||
9669 | if test -z "$PROG_PS" ; then | ||
9670 | PROG_PS="undef" | ||
9671 | fi | ||
9672 | |||
9673 | |||
9674 | |||
9675 | # Extract the first word of "sar", so it can be a program name with args. | ||
9676 | set dummy sar; ac_word=$2 | ||
9677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9679 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
9680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9681 | else | ||
9682 | case $PROG_SAR in | ||
9683 | [\\/]* | ?:[\\/]*) | ||
9684 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
9685 | ;; | ||
9686 | *) | ||
9687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9688 | for as_dir in $PATH | ||
9689 | do | ||
9690 | IFS=$as_save_IFS | ||
9691 | test -z "$as_dir" && as_dir=. | ||
9692 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9694 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
9695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9696 | break 2 | ||
9697 | fi | ||
9698 | done | ||
9699 | done | ||
9700 | |||
9701 | ;; | ||
9702 | esac | ||
9703 | fi | ||
9704 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
9705 | |||
9706 | if test -n "$PROG_SAR"; then | ||
9707 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
9708 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
9709 | else | ||
9710 | echo "$as_me:$LINENO: result: no" >&5 | ||
9711 | echo "${ECHO_T}no" >&6 | ||
9712 | fi | ||
9713 | |||
9714 | if test -z "$PROG_SAR" ; then | ||
9715 | PROG_SAR="undef" | ||
9716 | fi | ||
9717 | |||
9718 | |||
9719 | |||
9720 | # Extract the first word of "w", so it can be a program name with args. | ||
9721 | set dummy w; ac_word=$2 | ||
9722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9724 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9726 | else | ||
9727 | case $PROG_W in | ||
9728 | [\\/]* | ?:[\\/]*) | ||
9729 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
9730 | ;; | ||
9731 | *) | ||
9732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9733 | for as_dir in $PATH | ||
9734 | do | ||
9735 | IFS=$as_save_IFS | ||
9736 | test -z "$as_dir" && as_dir=. | ||
9737 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9739 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
9740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9741 | break 2 | ||
9742 | fi | ||
9743 | done | ||
9744 | done | ||
9745 | |||
9746 | ;; | ||
9747 | esac | ||
9748 | fi | ||
9749 | PROG_W=$ac_cv_path_PROG_W | ||
9750 | |||
9751 | if test -n "$PROG_W"; then | ||
9752 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
9753 | echo "${ECHO_T}$PROG_W" >&6 | ||
9754 | else | ||
9755 | echo "$as_me:$LINENO: result: no" >&5 | ||
9756 | echo "${ECHO_T}no" >&6 | ||
9757 | fi | ||
9758 | |||
9759 | if test -z "$PROG_W" ; then | ||
9760 | PROG_W="undef" | ||
9761 | fi | ||
9762 | |||
9763 | |||
9764 | |||
9765 | # Extract the first word of "who", so it can be a program name with args. | ||
9766 | set dummy who; ac_word=$2 | ||
9767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9769 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9771 | else | ||
9772 | case $PROG_WHO in | ||
9773 | [\\/]* | ?:[\\/]*) | ||
9774 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
9775 | ;; | ||
9776 | *) | ||
9777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9778 | for as_dir in $PATH | ||
9779 | do | ||
9780 | IFS=$as_save_IFS | ||
9781 | test -z "$as_dir" && as_dir=. | ||
9782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9784 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
9785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9786 | break 2 | ||
9787 | fi | ||
9788 | done | ||
9789 | done | ||
9790 | |||
9791 | ;; | ||
9792 | esac | ||
9793 | fi | ||
9794 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
9795 | |||
9796 | if test -n "$PROG_WHO"; then | ||
9797 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
9798 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
9799 | else | ||
9800 | echo "$as_me:$LINENO: result: no" >&5 | ||
9801 | echo "${ECHO_T}no" >&6 | ||
9802 | fi | ||
9803 | |||
9804 | if test -z "$PROG_WHO" ; then | ||
9805 | PROG_WHO="undef" | ||
9806 | fi | ||
9807 | |||
9808 | |||
9809 | |||
9810 | # Extract the first word of "last", so it can be a program name with args. | ||
9811 | set dummy last; ac_word=$2 | ||
9812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9814 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
9815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9816 | else | ||
9817 | case $PROG_LAST in | ||
9818 | [\\/]* | ?:[\\/]*) | ||
9819 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9820 | ;; | ||
9821 | *) | ||
9822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9823 | for as_dir in $PATH | ||
9824 | do | ||
9825 | IFS=$as_save_IFS | ||
9826 | test -z "$as_dir" && as_dir=. | ||
9827 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9829 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
9830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9831 | break 2 | ||
9832 | fi | ||
9833 | done | ||
9834 | done | ||
9835 | |||
9836 | ;; | ||
9837 | esac | ||
9838 | fi | ||
9839 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9840 | |||
9841 | if test -n "$PROG_LAST"; then | ||
9842 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
9843 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9844 | else | ||
9845 | echo "$as_me:$LINENO: result: no" >&5 | ||
9846 | echo "${ECHO_T}no" >&6 | ||
9847 | fi | ||
9848 | |||
9849 | if test -z "$PROG_LAST" ; then | ||
9850 | PROG_LAST="undef" | ||
9851 | fi | ||
9852 | |||
9853 | |||
9854 | |||
9855 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9856 | set dummy lastlog; ac_word=$2 | ||
9857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9859 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9861 | else | ||
9862 | case $PROG_LASTLOG in | ||
9863 | [\\/]* | ?:[\\/]*) | ||
9864 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9865 | ;; | ||
9866 | *) | ||
9867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9868 | for as_dir in $PATH | ||
9869 | do | ||
9870 | IFS=$as_save_IFS | ||
9871 | test -z "$as_dir" && as_dir=. | ||
9872 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9874 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
9875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9876 | break 2 | ||
9877 | fi | ||
9878 | done | ||
9879 | done | ||
9880 | |||
9881 | ;; | ||
9882 | esac | ||
9883 | fi | ||
9884 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9885 | |||
9886 | if test -n "$PROG_LASTLOG"; then | ||
9887 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
9888 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9889 | else | ||
9890 | echo "$as_me:$LINENO: result: no" >&5 | ||
9891 | echo "${ECHO_T}no" >&6 | ||
9892 | fi | ||
9893 | |||
9894 | if test -z "$PROG_LASTLOG" ; then | ||
9895 | PROG_LASTLOG="undef" | ||
9896 | fi | ||
9897 | |||
9898 | |||
9899 | |||
9900 | # Extract the first word of "df", so it can be a program name with args. | ||
9901 | set dummy df; ac_word=$2 | ||
9902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9904 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9906 | else | ||
9907 | case $PROG_DF in | ||
9908 | [\\/]* | ?:[\\/]*) | ||
9909 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9910 | ;; | ||
9911 | *) | ||
9912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9913 | for as_dir in $PATH | ||
9914 | do | ||
9915 | IFS=$as_save_IFS | ||
9916 | test -z "$as_dir" && as_dir=. | ||
9917 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9919 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
9920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9921 | break 2 | ||
9922 | fi | ||
9923 | done | ||
9924 | done | ||
9925 | |||
9926 | ;; | ||
9927 | esac | ||
9928 | fi | ||
9929 | PROG_DF=$ac_cv_path_PROG_DF | ||
9930 | |||
9931 | if test -n "$PROG_DF"; then | ||
9932 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
9933 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9934 | else | ||
9935 | echo "$as_me:$LINENO: result: no" >&5 | ||
9936 | echo "${ECHO_T}no" >&6 | ||
9937 | fi | ||
9938 | |||
9939 | if test -z "$PROG_DF" ; then | ||
9940 | PROG_DF="undef" | ||
9941 | fi | ||
9942 | |||
9943 | |||
9944 | |||
9945 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9946 | set dummy vmstat; ac_word=$2 | ||
9947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9949 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9951 | else | ||
9952 | case $PROG_VMSTAT in | ||
9953 | [\\/]* | ?:[\\/]*) | ||
9954 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9955 | ;; | ||
9956 | *) | ||
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9958 | for as_dir in $PATH | ||
9959 | do | ||
9960 | IFS=$as_save_IFS | ||
9961 | test -z "$as_dir" && as_dir=. | ||
9962 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9964 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9966 | break 2 | ||
9967 | fi | ||
9968 | done | ||
9969 | done | ||
9970 | |||
9971 | ;; | ||
9972 | esac | ||
9973 | fi | ||
9974 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9975 | |||
9976 | if test -n "$PROG_VMSTAT"; then | ||
9977 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
9978 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9979 | else | ||
9980 | echo "$as_me:$LINENO: result: no" >&5 | ||
9981 | echo "${ECHO_T}no" >&6 | ||
9982 | fi | ||
9983 | |||
9984 | if test -z "$PROG_VMSTAT" ; then | ||
9985 | PROG_VMSTAT="undef" | ||
9986 | fi | ||
9987 | |||
9988 | |||
9989 | |||
9990 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9991 | set dummy uptime; ac_word=$2 | ||
9992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9994 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9996 | else | ||
9997 | case $PROG_UPTIME in | ||
9998 | [\\/]* | ?:[\\/]*) | ||
9999 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
10000 | ;; | ||
10001 | *) | ||
10002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10003 | for as_dir in $PATH | ||
10004 | do | ||
10005 | IFS=$as_save_IFS | ||
10006 | test -z "$as_dir" && as_dir=. | ||
10007 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10009 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
10010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10011 | break 2 | ||
10012 | fi | ||
10013 | done | ||
10014 | done | ||
10015 | |||
10016 | ;; | ||
10017 | esac | ||
10018 | fi | ||
10019 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
10020 | |||
10021 | if test -n "$PROG_UPTIME"; then | ||
10022 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
10023 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
10024 | else | ||
10025 | echo "$as_me:$LINENO: result: no" >&5 | ||
10026 | echo "${ECHO_T}no" >&6 | ||
10027 | fi | ||
10028 | |||
10029 | if test -z "$PROG_UPTIME" ; then | ||
10030 | PROG_UPTIME="undef" | ||
10031 | fi | ||
10032 | |||
10033 | |||
10034 | |||
10035 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
10036 | set dummy ipcs; ac_word=$2 | ||
10037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
10038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10039 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
10040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10041 | else | ||
10042 | case $PROG_IPCS in | ||
10043 | [\\/]* | ?:[\\/]*) | ||
10044 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
10045 | ;; | ||
10046 | *) | ||
10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10048 | for as_dir in $PATH | ||
10049 | do | ||
10050 | IFS=$as_save_IFS | ||
10051 | test -z "$as_dir" && as_dir=. | ||
10052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10054 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
10055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10056 | break 2 | ||
10057 | fi | ||
10058 | done | ||
10059 | done | ||
10060 | |||
10061 | ;; | ||
10062 | esac | ||
10063 | fi | ||
10064 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
10065 | |||
10066 | if test -n "$PROG_IPCS"; then | ||
10067 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
10068 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
10069 | else | ||
10070 | echo "$as_me:$LINENO: result: no" >&5 | ||
10071 | echo "${ECHO_T}no" >&6 | ||
10072 | fi | ||
10073 | |||
10074 | if test -z "$PROG_IPCS" ; then | ||
10075 | PROG_IPCS="undef" | ||
10076 | fi | ||
10077 | |||
10078 | |||
10079 | |||
10080 | # Extract the first word of "tail", so it can be a program name with args. | ||
10081 | set dummy tail; ac_word=$2 | ||
10082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
10083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10084 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
10085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10086 | else | ||
10087 | case $PROG_TAIL in | ||
10088 | [\\/]* | ?:[\\/]*) | ||
10089 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
10090 | ;; | ||
10091 | *) | ||
10092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10093 | for as_dir in $PATH | ||
10094 | do | ||
10095 | IFS=$as_save_IFS | ||
10096 | test -z "$as_dir" && as_dir=. | ||
10097 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10099 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
10100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10101 | break 2 | ||
10102 | fi | ||
10103 | done | ||
10104 | done | ||
10105 | |||
10106 | ;; | ||
10107 | esac | ||
10108 | fi | ||
10109 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
10110 | |||
10111 | if test -n "$PROG_TAIL"; then | ||
10112 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
10113 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
10114 | else | ||
10115 | echo "$as_me:$LINENO: result: no" >&5 | ||
10116 | echo "${ECHO_T}no" >&6 | ||
10117 | fi | ||
10118 | |||
10119 | if test -z "$PROG_TAIL" ; then | ||
10120 | PROG_TAIL="undef" | ||
10121 | fi | ||
10122 | |||
10123 | |||
10124 | # restore PATH | ||
10125 | PATH=$OPATH | ||
10126 | |||
10127 | # Where does ssh-rand-helper get its randomness from? | ||
10128 | INSTALL_SSH_PRNG_CMDS="" | ||
10129 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
10130 | if test ! -z "$PRNGD_PORT" ; then | ||
10131 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
10132 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
10133 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
10134 | else | ||
10135 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
10136 | RAND_HELPER_CMDHASH=yes | ||
10137 | INSTALL_SSH_PRNG_CMDS="yes" | ||
10138 | fi | ||
10139 | fi | ||
10140 | |||
10141 | |||
10142 | |||
10143 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
10144 | if test ! -z "$SONY" ; then | ||
10145 | LIBS="$LIBS -liberty"; | ||
10146 | fi | ||
10147 | |||
10148 | # Checks for data types | ||
10149 | echo "$as_me:$LINENO: checking for char" >&5 | ||
10150 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
10151 | if test "${ac_cv_type_char+set}" = set; then | ||
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10153 | else | ||
10154 | cat >conftest.$ac_ext <<_ACEOF | ||
10155 | #line $LINENO "configure" | ||
10156 | #include "confdefs.h" | ||
10157 | $ac_includes_default | ||
10158 | #ifdef F77_DUMMY_MAIN | ||
10159 | # ifdef __cplusplus | ||
10160 | extern "C" | ||
10161 | # endif | ||
10162 | int F77_DUMMY_MAIN() { return 1; } | ||
10163 | #endif | ||
10164 | int | ||
10165 | main () | ||
10166 | { | ||
10167 | if ((char *) 0) | ||
10168 | return 0; | ||
10169 | if (sizeof (char)) | ||
10170 | return 0; | ||
10171 | ; | ||
10172 | return 0; | ||
10173 | } | ||
10174 | _ACEOF | ||
10175 | rm -f conftest.$ac_objext | ||
10176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10177 | (eval $ac_compile) 2>&5 | ||
10178 | ac_status=$? | ||
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10180 | (exit $ac_status); } && | ||
10181 | { ac_try='test -s conftest.$ac_objext' | ||
10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10183 | (eval $ac_try) 2>&5 | ||
10184 | ac_status=$? | ||
10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10186 | (exit $ac_status); }; }; then | ||
10187 | ac_cv_type_char=yes | ||
10188 | else | ||
10189 | echo "$as_me: failed program was:" >&5 | ||
10190 | cat conftest.$ac_ext >&5 | ||
10191 | ac_cv_type_char=no | ||
10192 | fi | ||
10193 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10194 | fi | ||
10195 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
10196 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
10197 | |||
10198 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
10199 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
10200 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
10201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10202 | else | ||
10203 | if test "$ac_cv_type_char" = yes; then | ||
10204 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10205 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10206 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10207 | # This bug is HP SR number 8606223364. | ||
10208 | if test "$cross_compiling" = yes; then | ||
10209 | # Depending upon the size, compute the lo and hi bounds. | ||
10210 | cat >conftest.$ac_ext <<_ACEOF | ||
10211 | #line $LINENO "configure" | ||
10212 | #include "confdefs.h" | ||
10213 | $ac_includes_default | ||
10214 | #ifdef F77_DUMMY_MAIN | ||
10215 | # ifdef __cplusplus | ||
10216 | extern "C" | ||
10217 | # endif | ||
10218 | int F77_DUMMY_MAIN() { return 1; } | ||
10219 | #endif | ||
10220 | int | ||
10221 | main () | ||
10222 | { | ||
10223 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@; | ||
10224 | test_array @<:@0@:>@ = 0 | ||
10225 | |||
10226 | ; | ||
10227 | return 0; | ||
10228 | } | ||
10229 | _ACEOF | ||
10230 | rm -f conftest.$ac_objext | ||
10231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10232 | (eval $ac_compile) 2>&5 | ||
10233 | ac_status=$? | ||
10234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10235 | (exit $ac_status); } && | ||
10236 | { ac_try='test -s conftest.$ac_objext' | ||
10237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10238 | (eval $ac_try) 2>&5 | ||
10239 | ac_status=$? | ||
10240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10241 | (exit $ac_status); }; }; then | ||
10242 | ac_lo=0 ac_mid=0 | ||
10243 | while :; do | ||
10244 | cat >conftest.$ac_ext <<_ACEOF | ||
10245 | #line $LINENO "configure" | ||
10246 | #include "confdefs.h" | ||
10247 | $ac_includes_default | ||
10248 | #ifdef F77_DUMMY_MAIN | ||
10249 | # ifdef __cplusplus | ||
10250 | extern "C" | ||
10251 | # endif | ||
10252 | int F77_DUMMY_MAIN() { return 1; } | ||
10253 | #endif | ||
10254 | int | ||
10255 | main () | ||
10256 | { | ||
10257 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@; | ||
10258 | test_array @<:@0@:>@ = 0 | ||
10259 | |||
10260 | ; | ||
10261 | return 0; | ||
10262 | } | ||
10263 | _ACEOF | ||
10264 | rm -f conftest.$ac_objext | ||
10265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10266 | (eval $ac_compile) 2>&5 | ||
10267 | ac_status=$? | ||
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10269 | (exit $ac_status); } && | ||
10270 | { ac_try='test -s conftest.$ac_objext' | ||
10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10272 | (eval $ac_try) 2>&5 | ||
10273 | ac_status=$? | ||
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10275 | (exit $ac_status); }; }; then | ||
10276 | ac_hi=$ac_mid; break | ||
10277 | else | ||
10278 | echo "$as_me: failed program was:" >&5 | ||
10279 | cat conftest.$ac_ext >&5 | ||
10280 | ac_lo=`expr $ac_mid + 1` | ||
10281 | if test $ac_lo -le $ac_mid; then | ||
10282 | ac_lo= ac_hi= | ||
10283 | break | ||
10284 | fi | ||
10285 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10286 | fi | ||
10287 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10288 | done | ||
10289 | else | ||
10290 | echo "$as_me: failed program was:" >&5 | ||
10291 | cat conftest.$ac_ext >&5 | ||
10292 | cat >conftest.$ac_ext <<_ACEOF | ||
10293 | #line $LINENO "configure" | ||
10294 | #include "confdefs.h" | ||
10295 | $ac_includes_default | ||
10296 | #ifdef F77_DUMMY_MAIN | ||
10297 | # ifdef __cplusplus | ||
10298 | extern "C" | ||
10299 | # endif | ||
10300 | int F77_DUMMY_MAIN() { return 1; } | ||
10301 | #endif | ||
10302 | int | ||
10303 | main () | ||
10304 | { | ||
10305 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@; | ||
10306 | test_array @<:@0@:>@ = 0 | ||
10307 | |||
10308 | ; | ||
10309 | return 0; | ||
10310 | } | ||
10311 | _ACEOF | ||
10312 | rm -f conftest.$ac_objext | ||
10313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10314 | (eval $ac_compile) 2>&5 | ||
10315 | ac_status=$? | ||
10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10317 | (exit $ac_status); } && | ||
10318 | { ac_try='test -s conftest.$ac_objext' | ||
10319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10320 | (eval $ac_try) 2>&5 | ||
10321 | ac_status=$? | ||
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10323 | (exit $ac_status); }; }; then | ||
10324 | ac_hi=-1 ac_mid=-1 | ||
10325 | while :; do | ||
10326 | cat >conftest.$ac_ext <<_ACEOF | ||
10327 | #line $LINENO "configure" | ||
10328 | #include "confdefs.h" | ||
10329 | $ac_includes_default | ||
10330 | #ifdef F77_DUMMY_MAIN | ||
10331 | # ifdef __cplusplus | ||
10332 | extern "C" | ||
10333 | # endif | ||
10334 | int F77_DUMMY_MAIN() { return 1; } | ||
10335 | #endif | ||
10336 | int | ||
10337 | main () | ||
10338 | { | ||
10339 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@; | ||
10340 | test_array @<:@0@:>@ = 0 | ||
10341 | |||
10342 | ; | ||
10343 | return 0; | ||
10344 | } | ||
10345 | _ACEOF | ||
10346 | rm -f conftest.$ac_objext | ||
10347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10348 | (eval $ac_compile) 2>&5 | ||
10349 | ac_status=$? | ||
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10351 | (exit $ac_status); } && | ||
10352 | { ac_try='test -s conftest.$ac_objext' | ||
10353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10354 | (eval $ac_try) 2>&5 | ||
10355 | ac_status=$? | ||
10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10357 | (exit $ac_status); }; }; then | ||
10358 | ac_lo=$ac_mid; break | ||
10359 | else | ||
10360 | echo "$as_me: failed program was:" >&5 | ||
10361 | cat conftest.$ac_ext >&5 | ||
10362 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10363 | if test $ac_mid -le $ac_hi; then | ||
10364 | ac_lo= ac_hi= | ||
10365 | break | ||
10366 | fi | ||
10367 | ac_mid=`expr 2 '*' $ac_mid` | ||
10368 | fi | ||
10369 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10370 | done | ||
10371 | else | ||
10372 | echo "$as_me: failed program was:" >&5 | ||
10373 | cat conftest.$ac_ext >&5 | ||
10374 | ac_lo= ac_hi= | ||
10375 | fi | ||
10376 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10377 | fi | ||
10378 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10379 | # Binary search between lo and hi bounds. | ||
10380 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10381 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10382 | cat >conftest.$ac_ext <<_ACEOF | ||
10383 | #line $LINENO "configure" | ||
10384 | #include "confdefs.h" | ||
10385 | $ac_includes_default | ||
10386 | #ifdef F77_DUMMY_MAIN | ||
10387 | # ifdef __cplusplus | ||
10388 | extern "C" | ||
10389 | # endif | ||
10390 | int F77_DUMMY_MAIN() { return 1; } | ||
10391 | #endif | ||
10392 | int | ||
10393 | main () | ||
10394 | { | ||
10395 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@; | ||
10396 | test_array @<:@0@:>@ = 0 | ||
10397 | |||
10398 | ; | ||
10399 | return 0; | ||
10400 | } | ||
10401 | _ACEOF | ||
10402 | rm -f conftest.$ac_objext | ||
10403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10404 | (eval $ac_compile) 2>&5 | ||
10405 | ac_status=$? | ||
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10407 | (exit $ac_status); } && | ||
10408 | { ac_try='test -s conftest.$ac_objext' | ||
10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10410 | (eval $ac_try) 2>&5 | ||
10411 | ac_status=$? | ||
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10413 | (exit $ac_status); }; }; then | ||
10414 | ac_hi=$ac_mid | ||
10415 | else | ||
10416 | echo "$as_me: failed program was:" >&5 | ||
10417 | cat conftest.$ac_ext >&5 | ||
10418 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10419 | fi | ||
10420 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10421 | done | ||
10422 | case $ac_lo in | ||
10423 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
10424 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10425 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10426 | { (exit 1); exit 1; }; } ;; | ||
10427 | esac | ||
10428 | else | ||
10429 | if test "$cross_compiling" = yes; then | ||
10430 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10431 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10432 | { (exit 1); exit 1; }; } | ||
10433 | else | ||
10434 | cat >conftest.$ac_ext <<_ACEOF | ||
10435 | #line $LINENO "configure" | ||
10436 | #include "confdefs.h" | ||
10437 | $ac_includes_default | ||
10438 | long longval () { return (long) (sizeof (char)); } | ||
10439 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
10440 | @%:@include <stdio.h> | ||
10441 | @%:@include <stdlib.h> | ||
10442 | #ifdef F77_DUMMY_MAIN | ||
10443 | # ifdef __cplusplus | ||
10444 | extern "C" | ||
10445 | # endif | ||
10446 | int F77_DUMMY_MAIN() { return 1; } | ||
10447 | #endif | ||
10448 | int | ||
10449 | main () | ||
10450 | { | ||
10451 | |||
10452 | FILE *f = fopen ("conftest.val", "w"); | ||
10453 | if (! f) | ||
10454 | exit (1); | ||
10455 | if (((long) (sizeof (char))) < 0) | ||
10456 | { | ||
10457 | long i = longval (); | ||
10458 | if (i != ((long) (sizeof (char)))) | ||
10459 | exit (1); | ||
10460 | fprintf (f, "%ld\n", i); | ||
10461 | } | ||
10462 | else | ||
10463 | { | ||
10464 | unsigned long i = ulongval (); | ||
10465 | if (i != ((long) (sizeof (char)))) | ||
10466 | exit (1); | ||
10467 | fprintf (f, "%lu\n", i); | ||
10468 | } | ||
10469 | exit (ferror (f) || fclose (f) != 0); | ||
10470 | |||
10471 | ; | ||
10472 | return 0; | ||
10473 | } | ||
10474 | _ACEOF | ||
10475 | rm -f conftest$ac_exeext | ||
10476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10477 | (eval $ac_link) 2>&5 | ||
10478 | ac_status=$? | ||
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10482 | (eval $ac_try) 2>&5 | ||
10483 | ac_status=$? | ||
10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10485 | (exit $ac_status); }; }; then | ||
10486 | ac_cv_sizeof_char=`cat conftest.val` | ||
10487 | else | ||
10488 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10489 | echo "$as_me: failed program was:" >&5 | ||
10490 | cat conftest.$ac_ext >&5 | ||
10491 | ( exit $ac_status ) | ||
10492 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10493 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10494 | { (exit 1); exit 1; }; } | ||
10495 | fi | ||
10496 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10497 | fi | ||
10498 | fi | ||
10499 | rm -f conftest.val | ||
10500 | else | ||
10501 | ac_cv_sizeof_char=0 | ||
10502 | fi | ||
10503 | fi | ||
10504 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
10505 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10506 | cat >>confdefs.h <<_ACEOF | ||
10507 | @%:@define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10508 | _ACEOF | ||
10509 | |||
10510 | |||
10511 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
10512 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10513 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10515 | else | ||
10516 | cat >conftest.$ac_ext <<_ACEOF | ||
10517 | #line $LINENO "configure" | ||
10518 | #include "confdefs.h" | ||
10519 | $ac_includes_default | ||
10520 | #ifdef F77_DUMMY_MAIN | ||
10521 | # ifdef __cplusplus | ||
10522 | extern "C" | ||
10523 | # endif | ||
10524 | int F77_DUMMY_MAIN() { return 1; } | ||
10525 | #endif | ||
10526 | int | ||
10527 | main () | ||
10528 | { | ||
10529 | if ((short int *) 0) | ||
10530 | return 0; | ||
10531 | if (sizeof (short int)) | ||
10532 | return 0; | ||
10533 | ; | ||
10534 | return 0; | ||
10535 | } | ||
10536 | _ACEOF | ||
10537 | rm -f conftest.$ac_objext | ||
10538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10539 | (eval $ac_compile) 2>&5 | ||
10540 | ac_status=$? | ||
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10542 | (exit $ac_status); } && | ||
10543 | { ac_try='test -s conftest.$ac_objext' | ||
10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10545 | (eval $ac_try) 2>&5 | ||
10546 | ac_status=$? | ||
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10548 | (exit $ac_status); }; }; then | ||
10549 | ac_cv_type_short_int=yes | ||
10550 | else | ||
10551 | echo "$as_me: failed program was:" >&5 | ||
10552 | cat conftest.$ac_ext >&5 | ||
10553 | ac_cv_type_short_int=no | ||
10554 | fi | ||
10555 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10556 | fi | ||
10557 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
10558 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10559 | |||
10560 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
10561 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10562 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10564 | else | ||
10565 | if test "$ac_cv_type_short_int" = yes; then | ||
10566 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10569 | # This bug is HP SR number 8606223364. | ||
10570 | if test "$cross_compiling" = yes; then | ||
10571 | # Depending upon the size, compute the lo and hi bounds. | ||
10572 | cat >conftest.$ac_ext <<_ACEOF | ||
10573 | #line $LINENO "configure" | ||
10574 | #include "confdefs.h" | ||
10575 | $ac_includes_default | ||
10576 | #ifdef F77_DUMMY_MAIN | ||
10577 | # ifdef __cplusplus | ||
10578 | extern "C" | ||
10579 | # endif | ||
10580 | int F77_DUMMY_MAIN() { return 1; } | ||
10581 | #endif | ||
10582 | int | ||
10583 | main () | ||
10584 | { | ||
10585 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@; | ||
10586 | test_array @<:@0@:>@ = 0 | ||
10587 | |||
10588 | ; | ||
10589 | return 0; | ||
10590 | } | ||
10591 | _ACEOF | ||
10592 | rm -f conftest.$ac_objext | ||
10593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10594 | (eval $ac_compile) 2>&5 | ||
10595 | ac_status=$? | ||
10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10597 | (exit $ac_status); } && | ||
10598 | { ac_try='test -s conftest.$ac_objext' | ||
10599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10600 | (eval $ac_try) 2>&5 | ||
10601 | ac_status=$? | ||
10602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10603 | (exit $ac_status); }; }; then | ||
10604 | ac_lo=0 ac_mid=0 | ||
10605 | while :; do | ||
10606 | cat >conftest.$ac_ext <<_ACEOF | ||
10607 | #line $LINENO "configure" | ||
10608 | #include "confdefs.h" | ||
10609 | $ac_includes_default | ||
10610 | #ifdef F77_DUMMY_MAIN | ||
10611 | # ifdef __cplusplus | ||
10612 | extern "C" | ||
10613 | # endif | ||
10614 | int F77_DUMMY_MAIN() { return 1; } | ||
10615 | #endif | ||
10616 | int | ||
10617 | main () | ||
10618 | { | ||
10619 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@; | ||
10620 | test_array @<:@0@:>@ = 0 | ||
10621 | |||
10622 | ; | ||
10623 | return 0; | ||
10624 | } | ||
10625 | _ACEOF | ||
10626 | rm -f conftest.$ac_objext | ||
10627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10628 | (eval $ac_compile) 2>&5 | ||
10629 | ac_status=$? | ||
10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10631 | (exit $ac_status); } && | ||
10632 | { ac_try='test -s conftest.$ac_objext' | ||
10633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10634 | (eval $ac_try) 2>&5 | ||
10635 | ac_status=$? | ||
10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10637 | (exit $ac_status); }; }; then | ||
10638 | ac_hi=$ac_mid; break | ||
10639 | else | ||
10640 | echo "$as_me: failed program was:" >&5 | ||
10641 | cat conftest.$ac_ext >&5 | ||
10642 | ac_lo=`expr $ac_mid + 1` | ||
10643 | if test $ac_lo -le $ac_mid; then | ||
10644 | ac_lo= ac_hi= | ||
10645 | break | ||
10646 | fi | ||
10647 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10648 | fi | ||
10649 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10650 | done | ||
10651 | else | ||
10652 | echo "$as_me: failed program was:" >&5 | ||
10653 | cat conftest.$ac_ext >&5 | ||
10654 | cat >conftest.$ac_ext <<_ACEOF | ||
10655 | #line $LINENO "configure" | ||
10656 | #include "confdefs.h" | ||
10657 | $ac_includes_default | ||
10658 | #ifdef F77_DUMMY_MAIN | ||
10659 | # ifdef __cplusplus | ||
10660 | extern "C" | ||
10661 | # endif | ||
10662 | int F77_DUMMY_MAIN() { return 1; } | ||
10663 | #endif | ||
10664 | int | ||
10665 | main () | ||
10666 | { | ||
10667 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@; | ||
10668 | test_array @<:@0@:>@ = 0 | ||
10669 | |||
10670 | ; | ||
10671 | return 0; | ||
10672 | } | ||
10673 | _ACEOF | ||
10674 | rm -f conftest.$ac_objext | ||
10675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10676 | (eval $ac_compile) 2>&5 | ||
10677 | ac_status=$? | ||
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10679 | (exit $ac_status); } && | ||
10680 | { ac_try='test -s conftest.$ac_objext' | ||
10681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10682 | (eval $ac_try) 2>&5 | ||
10683 | ac_status=$? | ||
10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10685 | (exit $ac_status); }; }; then | ||
10686 | ac_hi=-1 ac_mid=-1 | ||
10687 | while :; do | ||
10688 | cat >conftest.$ac_ext <<_ACEOF | ||
10689 | #line $LINENO "configure" | ||
10690 | #include "confdefs.h" | ||
10691 | $ac_includes_default | ||
10692 | #ifdef F77_DUMMY_MAIN | ||
10693 | # ifdef __cplusplus | ||
10694 | extern "C" | ||
10695 | # endif | ||
10696 | int F77_DUMMY_MAIN() { return 1; } | ||
10697 | #endif | ||
10698 | int | ||
10699 | main () | ||
10700 | { | ||
10701 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@; | ||
10702 | test_array @<:@0@:>@ = 0 | ||
10703 | |||
10704 | ; | ||
10705 | return 0; | ||
10706 | } | ||
10707 | _ACEOF | ||
10708 | rm -f conftest.$ac_objext | ||
10709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10710 | (eval $ac_compile) 2>&5 | ||
10711 | ac_status=$? | ||
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10713 | (exit $ac_status); } && | ||
10714 | { ac_try='test -s conftest.$ac_objext' | ||
10715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10716 | (eval $ac_try) 2>&5 | ||
10717 | ac_status=$? | ||
10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10719 | (exit $ac_status); }; }; then | ||
10720 | ac_lo=$ac_mid; break | ||
10721 | else | ||
10722 | echo "$as_me: failed program was:" >&5 | ||
10723 | cat conftest.$ac_ext >&5 | ||
10724 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10725 | if test $ac_mid -le $ac_hi; then | ||
10726 | ac_lo= ac_hi= | ||
10727 | break | ||
10728 | fi | ||
10729 | ac_mid=`expr 2 '*' $ac_mid` | ||
10730 | fi | ||
10731 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10732 | done | ||
10733 | else | ||
10734 | echo "$as_me: failed program was:" >&5 | ||
10735 | cat conftest.$ac_ext >&5 | ||
10736 | ac_lo= ac_hi= | ||
10737 | fi | ||
10738 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10739 | fi | ||
10740 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10741 | # Binary search between lo and hi bounds. | ||
10742 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10743 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10744 | cat >conftest.$ac_ext <<_ACEOF | ||
10745 | #line $LINENO "configure" | ||
10746 | #include "confdefs.h" | ||
10747 | $ac_includes_default | ||
10748 | #ifdef F77_DUMMY_MAIN | ||
10749 | # ifdef __cplusplus | ||
10750 | extern "C" | ||
10751 | # endif | ||
10752 | int F77_DUMMY_MAIN() { return 1; } | ||
10753 | #endif | ||
10754 | int | ||
10755 | main () | ||
10756 | { | ||
10757 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@; | ||
10758 | test_array @<:@0@:>@ = 0 | ||
10759 | |||
10760 | ; | ||
10761 | return 0; | ||
10762 | } | ||
10763 | _ACEOF | ||
10764 | rm -f conftest.$ac_objext | ||
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10766 | (eval $ac_compile) 2>&5 | ||
10767 | ac_status=$? | ||
10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10769 | (exit $ac_status); } && | ||
10770 | { ac_try='test -s conftest.$ac_objext' | ||
10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10772 | (eval $ac_try) 2>&5 | ||
10773 | ac_status=$? | ||
10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10775 | (exit $ac_status); }; }; then | ||
10776 | ac_hi=$ac_mid | ||
10777 | else | ||
10778 | echo "$as_me: failed program was:" >&5 | ||
10779 | cat conftest.$ac_ext >&5 | ||
10780 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10781 | fi | ||
10782 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10783 | done | ||
10784 | case $ac_lo in | ||
10785 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
10786 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10787 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10788 | { (exit 1); exit 1; }; } ;; | ||
10789 | esac | ||
10790 | else | ||
10791 | if test "$cross_compiling" = yes; then | ||
10792 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10793 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10794 | { (exit 1); exit 1; }; } | ||
10795 | else | ||
10796 | cat >conftest.$ac_ext <<_ACEOF | ||
10797 | #line $LINENO "configure" | ||
10798 | #include "confdefs.h" | ||
10799 | $ac_includes_default | ||
10800 | long longval () { return (long) (sizeof (short int)); } | ||
10801 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
10802 | @%:@include <stdio.h> | ||
10803 | @%:@include <stdlib.h> | ||
10804 | #ifdef F77_DUMMY_MAIN | ||
10805 | # ifdef __cplusplus | ||
10806 | extern "C" | ||
10807 | # endif | ||
10808 | int F77_DUMMY_MAIN() { return 1; } | ||
10809 | #endif | ||
10810 | int | ||
10811 | main () | ||
10812 | { | ||
10813 | |||
10814 | FILE *f = fopen ("conftest.val", "w"); | ||
10815 | if (! f) | ||
10816 | exit (1); | ||
10817 | if (((long) (sizeof (short int))) < 0) | ||
10818 | { | ||
10819 | long i = longval (); | ||
10820 | if (i != ((long) (sizeof (short int)))) | ||
10821 | exit (1); | ||
10822 | fprintf (f, "%ld\n", i); | ||
10823 | } | ||
10824 | else | ||
10825 | { | ||
10826 | unsigned long i = ulongval (); | ||
10827 | if (i != ((long) (sizeof (short int)))) | ||
10828 | exit (1); | ||
10829 | fprintf (f, "%lu\n", i); | ||
10830 | } | ||
10831 | exit (ferror (f) || fclose (f) != 0); | ||
10832 | |||
10833 | ; | ||
10834 | return 0; | ||
10835 | } | ||
10836 | _ACEOF | ||
10837 | rm -f conftest$ac_exeext | ||
10838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10839 | (eval $ac_link) 2>&5 | ||
10840 | ac_status=$? | ||
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10844 | (eval $ac_try) 2>&5 | ||
10845 | ac_status=$? | ||
10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10847 | (exit $ac_status); }; }; then | ||
10848 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10849 | else | ||
10850 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10851 | echo "$as_me: failed program was:" >&5 | ||
10852 | cat conftest.$ac_ext >&5 | ||
10853 | ( exit $ac_status ) | ||
10854 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10855 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10856 | { (exit 1); exit 1; }; } | ||
10857 | fi | ||
10858 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10859 | fi | ||
10860 | fi | ||
10861 | rm -f conftest.val | ||
10862 | else | ||
10863 | ac_cv_sizeof_short_int=0 | ||
10864 | fi | ||
10865 | fi | ||
10866 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
10867 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10868 | cat >>confdefs.h <<_ACEOF | ||
10869 | @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10870 | _ACEOF | ||
10871 | |||
10872 | |||
10873 | echo "$as_me:$LINENO: checking for int" >&5 | ||
10874 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10875 | if test "${ac_cv_type_int+set}" = set; then | ||
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10877 | else | ||
10878 | cat >conftest.$ac_ext <<_ACEOF | ||
10879 | #line $LINENO "configure" | ||
10880 | #include "confdefs.h" | ||
10881 | $ac_includes_default | ||
10882 | #ifdef F77_DUMMY_MAIN | ||
10883 | # ifdef __cplusplus | ||
10884 | extern "C" | ||
10885 | # endif | ||
10886 | int F77_DUMMY_MAIN() { return 1; } | ||
10887 | #endif | ||
10888 | int | ||
10889 | main () | ||
10890 | { | ||
10891 | if ((int *) 0) | ||
10892 | return 0; | ||
10893 | if (sizeof (int)) | ||
10894 | return 0; | ||
10895 | ; | ||
10896 | return 0; | ||
10897 | } | ||
10898 | _ACEOF | ||
10899 | rm -f conftest.$ac_objext | ||
10900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10901 | (eval $ac_compile) 2>&5 | ||
10902 | ac_status=$? | ||
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10904 | (exit $ac_status); } && | ||
10905 | { ac_try='test -s conftest.$ac_objext' | ||
10906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10907 | (eval $ac_try) 2>&5 | ||
10908 | ac_status=$? | ||
10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10910 | (exit $ac_status); }; }; then | ||
10911 | ac_cv_type_int=yes | ||
10912 | else | ||
10913 | echo "$as_me: failed program was:" >&5 | ||
10914 | cat conftest.$ac_ext >&5 | ||
10915 | ac_cv_type_int=no | ||
10916 | fi | ||
10917 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10918 | fi | ||
10919 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
10920 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10921 | |||
10922 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
10923 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10924 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10926 | else | ||
10927 | if test "$ac_cv_type_int" = yes; then | ||
10928 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10929 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10930 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10931 | # This bug is HP SR number 8606223364. | ||
10932 | if test "$cross_compiling" = yes; then | ||
10933 | # Depending upon the size, compute the lo and hi bounds. | ||
10934 | cat >conftest.$ac_ext <<_ACEOF | ||
10935 | #line $LINENO "configure" | ||
10936 | #include "confdefs.h" | ||
10937 | $ac_includes_default | ||
10938 | #ifdef F77_DUMMY_MAIN | ||
10939 | # ifdef __cplusplus | ||
10940 | extern "C" | ||
10941 | # endif | ||
10942 | int F77_DUMMY_MAIN() { return 1; } | ||
10943 | #endif | ||
10944 | int | ||
10945 | main () | ||
10946 | { | ||
10947 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@; | ||
10948 | test_array @<:@0@:>@ = 0 | ||
10949 | |||
10950 | ; | ||
10951 | return 0; | ||
10952 | } | ||
10953 | _ACEOF | ||
10954 | rm -f conftest.$ac_objext | ||
10955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10956 | (eval $ac_compile) 2>&5 | ||
10957 | ac_status=$? | ||
10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10959 | (exit $ac_status); } && | ||
10960 | { ac_try='test -s conftest.$ac_objext' | ||
10961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10962 | (eval $ac_try) 2>&5 | ||
10963 | ac_status=$? | ||
10964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10965 | (exit $ac_status); }; }; then | ||
10966 | ac_lo=0 ac_mid=0 | ||
10967 | while :; do | ||
10968 | cat >conftest.$ac_ext <<_ACEOF | ||
10969 | #line $LINENO "configure" | ||
10970 | #include "confdefs.h" | ||
10971 | $ac_includes_default | ||
10972 | #ifdef F77_DUMMY_MAIN | ||
10973 | # ifdef __cplusplus | ||
10974 | extern "C" | ||
10975 | # endif | ||
10976 | int F77_DUMMY_MAIN() { return 1; } | ||
10977 | #endif | ||
10978 | int | ||
10979 | main () | ||
10980 | { | ||
10981 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@; | ||
10982 | test_array @<:@0@:>@ = 0 | ||
10983 | |||
10984 | ; | ||
10985 | return 0; | ||
10986 | } | ||
10987 | _ACEOF | ||
10988 | rm -f conftest.$ac_objext | ||
10989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10990 | (eval $ac_compile) 2>&5 | ||
10991 | ac_status=$? | ||
10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10993 | (exit $ac_status); } && | ||
10994 | { ac_try='test -s conftest.$ac_objext' | ||
10995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10996 | (eval $ac_try) 2>&5 | ||
10997 | ac_status=$? | ||
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10999 | (exit $ac_status); }; }; then | ||
11000 | ac_hi=$ac_mid; break | ||
11001 | else | ||
11002 | echo "$as_me: failed program was:" >&5 | ||
11003 | cat conftest.$ac_ext >&5 | ||
11004 | ac_lo=`expr $ac_mid + 1` | ||
11005 | if test $ac_lo -le $ac_mid; then | ||
11006 | ac_lo= ac_hi= | ||
11007 | break | ||
11008 | fi | ||
11009 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11010 | fi | ||
11011 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11012 | done | ||
11013 | else | ||
11014 | echo "$as_me: failed program was:" >&5 | ||
11015 | cat conftest.$ac_ext >&5 | ||
11016 | cat >conftest.$ac_ext <<_ACEOF | ||
11017 | #line $LINENO "configure" | ||
11018 | #include "confdefs.h" | ||
11019 | $ac_includes_default | ||
11020 | #ifdef F77_DUMMY_MAIN | ||
11021 | # ifdef __cplusplus | ||
11022 | extern "C" | ||
11023 | # endif | ||
11024 | int F77_DUMMY_MAIN() { return 1; } | ||
11025 | #endif | ||
11026 | int | ||
11027 | main () | ||
11028 | { | ||
11029 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@; | ||
11030 | test_array @<:@0@:>@ = 0 | ||
11031 | |||
11032 | ; | ||
11033 | return 0; | ||
11034 | } | ||
11035 | _ACEOF | ||
11036 | rm -f conftest.$ac_objext | ||
11037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11038 | (eval $ac_compile) 2>&5 | ||
11039 | ac_status=$? | ||
11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11041 | (exit $ac_status); } && | ||
11042 | { ac_try='test -s conftest.$ac_objext' | ||
11043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11044 | (eval $ac_try) 2>&5 | ||
11045 | ac_status=$? | ||
11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11047 | (exit $ac_status); }; }; then | ||
11048 | ac_hi=-1 ac_mid=-1 | ||
11049 | while :; do | ||
11050 | cat >conftest.$ac_ext <<_ACEOF | ||
11051 | #line $LINENO "configure" | ||
11052 | #include "confdefs.h" | ||
11053 | $ac_includes_default | ||
11054 | #ifdef F77_DUMMY_MAIN | ||
11055 | # ifdef __cplusplus | ||
11056 | extern "C" | ||
11057 | # endif | ||
11058 | int F77_DUMMY_MAIN() { return 1; } | ||
11059 | #endif | ||
11060 | int | ||
11061 | main () | ||
11062 | { | ||
11063 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@; | ||
11064 | test_array @<:@0@:>@ = 0 | ||
11065 | |||
11066 | ; | ||
11067 | return 0; | ||
11068 | } | ||
11069 | _ACEOF | ||
11070 | rm -f conftest.$ac_objext | ||
11071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11072 | (eval $ac_compile) 2>&5 | ||
11073 | ac_status=$? | ||
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11075 | (exit $ac_status); } && | ||
11076 | { ac_try='test -s conftest.$ac_objext' | ||
11077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11078 | (eval $ac_try) 2>&5 | ||
11079 | ac_status=$? | ||
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11081 | (exit $ac_status); }; }; then | ||
11082 | ac_lo=$ac_mid; break | ||
11083 | else | ||
11084 | echo "$as_me: failed program was:" >&5 | ||
11085 | cat conftest.$ac_ext >&5 | ||
11086 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11087 | if test $ac_mid -le $ac_hi; then | ||
11088 | ac_lo= ac_hi= | ||
11089 | break | ||
11090 | fi | ||
11091 | ac_mid=`expr 2 '*' $ac_mid` | ||
11092 | fi | ||
11093 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11094 | done | ||
11095 | else | ||
11096 | echo "$as_me: failed program was:" >&5 | ||
11097 | cat conftest.$ac_ext >&5 | ||
11098 | ac_lo= ac_hi= | ||
11099 | fi | ||
11100 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11101 | fi | ||
11102 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11103 | # Binary search between lo and hi bounds. | ||
11104 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11105 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11106 | cat >conftest.$ac_ext <<_ACEOF | ||
11107 | #line $LINENO "configure" | ||
11108 | #include "confdefs.h" | ||
11109 | $ac_includes_default | ||
11110 | #ifdef F77_DUMMY_MAIN | ||
11111 | # ifdef __cplusplus | ||
11112 | extern "C" | ||
11113 | # endif | ||
11114 | int F77_DUMMY_MAIN() { return 1; } | ||
11115 | #endif | ||
11116 | int | ||
11117 | main () | ||
11118 | { | ||
11119 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@; | ||
11120 | test_array @<:@0@:>@ = 0 | ||
11121 | |||
11122 | ; | ||
11123 | return 0; | ||
11124 | } | ||
11125 | _ACEOF | ||
11126 | rm -f conftest.$ac_objext | ||
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11128 | (eval $ac_compile) 2>&5 | ||
11129 | ac_status=$? | ||
11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11131 | (exit $ac_status); } && | ||
11132 | { ac_try='test -s conftest.$ac_objext' | ||
11133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11134 | (eval $ac_try) 2>&5 | ||
11135 | ac_status=$? | ||
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11137 | (exit $ac_status); }; }; then | ||
11138 | ac_hi=$ac_mid | ||
11139 | else | ||
11140 | echo "$as_me: failed program was:" >&5 | ||
11141 | cat conftest.$ac_ext >&5 | ||
11142 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11143 | fi | ||
11144 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11145 | done | ||
11146 | case $ac_lo in | ||
11147 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
11148 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
11149 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
11150 | { (exit 1); exit 1; }; } ;; | ||
11151 | esac | ||
11152 | else | ||
11153 | if test "$cross_compiling" = yes; then | ||
11154 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11155 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11156 | { (exit 1); exit 1; }; } | ||
11157 | else | ||
11158 | cat >conftest.$ac_ext <<_ACEOF | ||
11159 | #line $LINENO "configure" | ||
11160 | #include "confdefs.h" | ||
11161 | $ac_includes_default | ||
11162 | long longval () { return (long) (sizeof (int)); } | ||
11163 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
11164 | @%:@include <stdio.h> | ||
11165 | @%:@include <stdlib.h> | ||
11166 | #ifdef F77_DUMMY_MAIN | ||
11167 | # ifdef __cplusplus | ||
11168 | extern "C" | ||
11169 | # endif | ||
11170 | int F77_DUMMY_MAIN() { return 1; } | ||
11171 | #endif | ||
11172 | int | ||
11173 | main () | ||
11174 | { | ||
11175 | |||
11176 | FILE *f = fopen ("conftest.val", "w"); | ||
11177 | if (! f) | ||
11178 | exit (1); | ||
11179 | if (((long) (sizeof (int))) < 0) | ||
11180 | { | ||
11181 | long i = longval (); | ||
11182 | if (i != ((long) (sizeof (int)))) | ||
11183 | exit (1); | ||
11184 | fprintf (f, "%ld\n", i); | ||
11185 | } | ||
11186 | else | ||
11187 | { | ||
11188 | unsigned long i = ulongval (); | ||
11189 | if (i != ((long) (sizeof (int)))) | ||
11190 | exit (1); | ||
11191 | fprintf (f, "%lu\n", i); | ||
11192 | } | ||
11193 | exit (ferror (f) || fclose (f) != 0); | ||
11194 | |||
11195 | ; | ||
11196 | return 0; | ||
11197 | } | ||
11198 | _ACEOF | ||
11199 | rm -f conftest$ac_exeext | ||
11200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11201 | (eval $ac_link) 2>&5 | ||
11202 | ac_status=$? | ||
11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11206 | (eval $ac_try) 2>&5 | ||
11207 | ac_status=$? | ||
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11209 | (exit $ac_status); }; }; then | ||
11210 | ac_cv_sizeof_int=`cat conftest.val` | ||
11211 | else | ||
11212 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11213 | echo "$as_me: failed program was:" >&5 | ||
11214 | cat conftest.$ac_ext >&5 | ||
11215 | ( exit $ac_status ) | ||
11216 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
11217 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
11218 | { (exit 1); exit 1; }; } | ||
11219 | fi | ||
11220 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11221 | fi | ||
11222 | fi | ||
11223 | rm -f conftest.val | ||
11224 | else | ||
11225 | ac_cv_sizeof_int=0 | ||
11226 | fi | ||
11227 | fi | ||
11228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
11229 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
11230 | cat >>confdefs.h <<_ACEOF | ||
11231 | @%:@define SIZEOF_INT $ac_cv_sizeof_int | ||
11232 | _ACEOF | ||
11233 | |||
11234 | |||
11235 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
11236 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
11237 | if test "${ac_cv_type_long_int+set}" = set; then | ||
11238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11239 | else | ||
11240 | cat >conftest.$ac_ext <<_ACEOF | ||
11241 | #line $LINENO "configure" | ||
11242 | #include "confdefs.h" | ||
11243 | $ac_includes_default | ||
11244 | #ifdef F77_DUMMY_MAIN | ||
11245 | # ifdef __cplusplus | ||
11246 | extern "C" | ||
11247 | # endif | ||
11248 | int F77_DUMMY_MAIN() { return 1; } | ||
11249 | #endif | ||
11250 | int | ||
11251 | main () | ||
11252 | { | ||
11253 | if ((long int *) 0) | ||
11254 | return 0; | ||
11255 | if (sizeof (long int)) | ||
11256 | return 0; | ||
11257 | ; | ||
11258 | return 0; | ||
11259 | } | ||
11260 | _ACEOF | ||
11261 | rm -f conftest.$ac_objext | ||
11262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11263 | (eval $ac_compile) 2>&5 | ||
11264 | ac_status=$? | ||
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11266 | (exit $ac_status); } && | ||
11267 | { ac_try='test -s conftest.$ac_objext' | ||
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11269 | (eval $ac_try) 2>&5 | ||
11270 | ac_status=$? | ||
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11272 | (exit $ac_status); }; }; then | ||
11273 | ac_cv_type_long_int=yes | ||
11274 | else | ||
11275 | echo "$as_me: failed program was:" >&5 | ||
11276 | cat conftest.$ac_ext >&5 | ||
11277 | ac_cv_type_long_int=no | ||
11278 | fi | ||
11279 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11280 | fi | ||
11281 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
11282 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
11283 | |||
11284 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
11285 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
11286 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11288 | else | ||
11289 | if test "$ac_cv_type_long_int" = yes; then | ||
11290 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
11291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11293 | # This bug is HP SR number 8606223364. | ||
11294 | if test "$cross_compiling" = yes; then | ||
11295 | # Depending upon the size, compute the lo and hi bounds. | ||
11296 | cat >conftest.$ac_ext <<_ACEOF | ||
11297 | #line $LINENO "configure" | ||
11298 | #include "confdefs.h" | ||
11299 | $ac_includes_default | ||
11300 | #ifdef F77_DUMMY_MAIN | ||
11301 | # ifdef __cplusplus | ||
11302 | extern "C" | ||
11303 | # endif | ||
11304 | int F77_DUMMY_MAIN() { return 1; } | ||
11305 | #endif | ||
11306 | int | ||
11307 | main () | ||
11308 | { | ||
11309 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@; | ||
11310 | test_array @<:@0@:>@ = 0 | ||
11311 | |||
11312 | ; | ||
11313 | return 0; | ||
11314 | } | ||
11315 | _ACEOF | ||
11316 | rm -f conftest.$ac_objext | ||
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11318 | (eval $ac_compile) 2>&5 | ||
11319 | ac_status=$? | ||
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11321 | (exit $ac_status); } && | ||
11322 | { ac_try='test -s conftest.$ac_objext' | ||
11323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11324 | (eval $ac_try) 2>&5 | ||
11325 | ac_status=$? | ||
11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11327 | (exit $ac_status); }; }; then | ||
11328 | ac_lo=0 ac_mid=0 | ||
11329 | while :; do | ||
11330 | cat >conftest.$ac_ext <<_ACEOF | ||
11331 | #line $LINENO "configure" | ||
11332 | #include "confdefs.h" | ||
11333 | $ac_includes_default | ||
11334 | #ifdef F77_DUMMY_MAIN | ||
11335 | # ifdef __cplusplus | ||
11336 | extern "C" | ||
11337 | # endif | ||
11338 | int F77_DUMMY_MAIN() { return 1; } | ||
11339 | #endif | ||
11340 | int | ||
11341 | main () | ||
11342 | { | ||
11343 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@; | ||
11344 | test_array @<:@0@:>@ = 0 | ||
11345 | |||
11346 | ; | ||
11347 | return 0; | ||
11348 | } | ||
11349 | _ACEOF | ||
11350 | rm -f conftest.$ac_objext | ||
11351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11352 | (eval $ac_compile) 2>&5 | ||
11353 | ac_status=$? | ||
11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11355 | (exit $ac_status); } && | ||
11356 | { ac_try='test -s conftest.$ac_objext' | ||
11357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11358 | (eval $ac_try) 2>&5 | ||
11359 | ac_status=$? | ||
11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11361 | (exit $ac_status); }; }; then | ||
11362 | ac_hi=$ac_mid; break | ||
11363 | else | ||
11364 | echo "$as_me: failed program was:" >&5 | ||
11365 | cat conftest.$ac_ext >&5 | ||
11366 | ac_lo=`expr $ac_mid + 1` | ||
11367 | if test $ac_lo -le $ac_mid; then | ||
11368 | ac_lo= ac_hi= | ||
11369 | break | ||
11370 | fi | ||
11371 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11372 | fi | ||
11373 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11374 | done | ||
11375 | else | ||
11376 | echo "$as_me: failed program was:" >&5 | ||
11377 | cat conftest.$ac_ext >&5 | ||
11378 | cat >conftest.$ac_ext <<_ACEOF | ||
11379 | #line $LINENO "configure" | ||
11380 | #include "confdefs.h" | ||
11381 | $ac_includes_default | ||
11382 | #ifdef F77_DUMMY_MAIN | ||
11383 | # ifdef __cplusplus | ||
11384 | extern "C" | ||
11385 | # endif | ||
11386 | int F77_DUMMY_MAIN() { return 1; } | ||
11387 | #endif | ||
11388 | int | ||
11389 | main () | ||
11390 | { | ||
11391 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@; | ||
11392 | test_array @<:@0@:>@ = 0 | ||
11393 | |||
11394 | ; | ||
11395 | return 0; | ||
11396 | } | ||
11397 | _ACEOF | ||
11398 | rm -f conftest.$ac_objext | ||
11399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11400 | (eval $ac_compile) 2>&5 | ||
11401 | ac_status=$? | ||
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11403 | (exit $ac_status); } && | ||
11404 | { ac_try='test -s conftest.$ac_objext' | ||
11405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11406 | (eval $ac_try) 2>&5 | ||
11407 | ac_status=$? | ||
11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11409 | (exit $ac_status); }; }; then | ||
11410 | ac_hi=-1 ac_mid=-1 | ||
11411 | while :; do | ||
11412 | cat >conftest.$ac_ext <<_ACEOF | ||
11413 | #line $LINENO "configure" | ||
11414 | #include "confdefs.h" | ||
11415 | $ac_includes_default | ||
11416 | #ifdef F77_DUMMY_MAIN | ||
11417 | # ifdef __cplusplus | ||
11418 | extern "C" | ||
11419 | # endif | ||
11420 | int F77_DUMMY_MAIN() { return 1; } | ||
11421 | #endif | ||
11422 | int | ||
11423 | main () | ||
11424 | { | ||
11425 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@; | ||
11426 | test_array @<:@0@:>@ = 0 | ||
11427 | |||
11428 | ; | ||
11429 | return 0; | ||
11430 | } | ||
11431 | _ACEOF | ||
11432 | rm -f conftest.$ac_objext | ||
11433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11434 | (eval $ac_compile) 2>&5 | ||
11435 | ac_status=$? | ||
11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11437 | (exit $ac_status); } && | ||
11438 | { ac_try='test -s conftest.$ac_objext' | ||
11439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11440 | (eval $ac_try) 2>&5 | ||
11441 | ac_status=$? | ||
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11443 | (exit $ac_status); }; }; then | ||
11444 | ac_lo=$ac_mid; break | ||
11445 | else | ||
11446 | echo "$as_me: failed program was:" >&5 | ||
11447 | cat conftest.$ac_ext >&5 | ||
11448 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11449 | if test $ac_mid -le $ac_hi; then | ||
11450 | ac_lo= ac_hi= | ||
11451 | break | ||
11452 | fi | ||
11453 | ac_mid=`expr 2 '*' $ac_mid` | ||
11454 | fi | ||
11455 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11456 | done | ||
11457 | else | ||
11458 | echo "$as_me: failed program was:" >&5 | ||
11459 | cat conftest.$ac_ext >&5 | ||
11460 | ac_lo= ac_hi= | ||
11461 | fi | ||
11462 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11463 | fi | ||
11464 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11465 | # Binary search between lo and hi bounds. | ||
11466 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11467 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11468 | cat >conftest.$ac_ext <<_ACEOF | ||
11469 | #line $LINENO "configure" | ||
11470 | #include "confdefs.h" | ||
11471 | $ac_includes_default | ||
11472 | #ifdef F77_DUMMY_MAIN | ||
11473 | # ifdef __cplusplus | ||
11474 | extern "C" | ||
11475 | # endif | ||
11476 | int F77_DUMMY_MAIN() { return 1; } | ||
11477 | #endif | ||
11478 | int | ||
11479 | main () | ||
11480 | { | ||
11481 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@; | ||
11482 | test_array @<:@0@:>@ = 0 | ||
11483 | |||
11484 | ; | ||
11485 | return 0; | ||
11486 | } | ||
11487 | _ACEOF | ||
11488 | rm -f conftest.$ac_objext | ||
11489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11490 | (eval $ac_compile) 2>&5 | ||
11491 | ac_status=$? | ||
11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11493 | (exit $ac_status); } && | ||
11494 | { ac_try='test -s conftest.$ac_objext' | ||
11495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11496 | (eval $ac_try) 2>&5 | ||
11497 | ac_status=$? | ||
11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11499 | (exit $ac_status); }; }; then | ||
11500 | ac_hi=$ac_mid | ||
11501 | else | ||
11502 | echo "$as_me: failed program was:" >&5 | ||
11503 | cat conftest.$ac_ext >&5 | ||
11504 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11505 | fi | ||
11506 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11507 | done | ||
11508 | case $ac_lo in | ||
11509 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
11510 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11511 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11512 | { (exit 1); exit 1; }; } ;; | ||
11513 | esac | ||
11514 | else | ||
11515 | if test "$cross_compiling" = yes; then | ||
11516 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11517 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11518 | { (exit 1); exit 1; }; } | ||
11519 | else | ||
11520 | cat >conftest.$ac_ext <<_ACEOF | ||
11521 | #line $LINENO "configure" | ||
11522 | #include "confdefs.h" | ||
11523 | $ac_includes_default | ||
11524 | long longval () { return (long) (sizeof (long int)); } | ||
11525 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
11526 | @%:@include <stdio.h> | ||
11527 | @%:@include <stdlib.h> | ||
11528 | #ifdef F77_DUMMY_MAIN | ||
11529 | # ifdef __cplusplus | ||
11530 | extern "C" | ||
11531 | # endif | ||
11532 | int F77_DUMMY_MAIN() { return 1; } | ||
11533 | #endif | ||
11534 | int | ||
11535 | main () | ||
11536 | { | ||
11537 | |||
11538 | FILE *f = fopen ("conftest.val", "w"); | ||
11539 | if (! f) | ||
11540 | exit (1); | ||
11541 | if (((long) (sizeof (long int))) < 0) | ||
11542 | { | ||
11543 | long i = longval (); | ||
11544 | if (i != ((long) (sizeof (long int)))) | ||
11545 | exit (1); | ||
11546 | fprintf (f, "%ld\n", i); | ||
11547 | } | ||
11548 | else | ||
11549 | { | ||
11550 | unsigned long i = ulongval (); | ||
11551 | if (i != ((long) (sizeof (long int)))) | ||
11552 | exit (1); | ||
11553 | fprintf (f, "%lu\n", i); | ||
11554 | } | ||
11555 | exit (ferror (f) || fclose (f) != 0); | ||
11556 | |||
11557 | ; | ||
11558 | return 0; | ||
11559 | } | ||
11560 | _ACEOF | ||
11561 | rm -f conftest$ac_exeext | ||
11562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11563 | (eval $ac_link) 2>&5 | ||
11564 | ac_status=$? | ||
11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11568 | (eval $ac_try) 2>&5 | ||
11569 | ac_status=$? | ||
11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11571 | (exit $ac_status); }; }; then | ||
11572 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
11573 | else | ||
11574 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11575 | echo "$as_me: failed program was:" >&5 | ||
11576 | cat conftest.$ac_ext >&5 | ||
11577 | ( exit $ac_status ) | ||
11578 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11579 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11580 | { (exit 1); exit 1; }; } | ||
11581 | fi | ||
11582 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11583 | fi | ||
11584 | fi | ||
11585 | rm -f conftest.val | ||
11586 | else | ||
11587 | ac_cv_sizeof_long_int=0 | ||
11588 | fi | ||
11589 | fi | ||
11590 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
11591 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
11592 | cat >>confdefs.h <<_ACEOF | ||
11593 | @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11594 | _ACEOF | ||
11595 | |||
11596 | |||
11597 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
11598 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
11599 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
11600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11601 | else | ||
11602 | cat >conftest.$ac_ext <<_ACEOF | ||
11603 | #line $LINENO "configure" | ||
11604 | #include "confdefs.h" | ||
11605 | $ac_includes_default | ||
11606 | #ifdef F77_DUMMY_MAIN | ||
11607 | # ifdef __cplusplus | ||
11608 | extern "C" | ||
11609 | # endif | ||
11610 | int F77_DUMMY_MAIN() { return 1; } | ||
11611 | #endif | ||
11612 | int | ||
11613 | main () | ||
11614 | { | ||
11615 | if ((long long int *) 0) | ||
11616 | return 0; | ||
11617 | if (sizeof (long long int)) | ||
11618 | return 0; | ||
11619 | ; | ||
11620 | return 0; | ||
11621 | } | ||
11622 | _ACEOF | ||
11623 | rm -f conftest.$ac_objext | ||
11624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11625 | (eval $ac_compile) 2>&5 | ||
11626 | ac_status=$? | ||
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11628 | (exit $ac_status); } && | ||
11629 | { ac_try='test -s conftest.$ac_objext' | ||
11630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11631 | (eval $ac_try) 2>&5 | ||
11632 | ac_status=$? | ||
11633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11634 | (exit $ac_status); }; }; then | ||
11635 | ac_cv_type_long_long_int=yes | ||
11636 | else | ||
11637 | echo "$as_me: failed program was:" >&5 | ||
11638 | cat conftest.$ac_ext >&5 | ||
11639 | ac_cv_type_long_long_int=no | ||
11640 | fi | ||
11641 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11642 | fi | ||
11643 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
11644 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
11645 | |||
11646 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
11647 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
11648 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
11649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11650 | else | ||
11651 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11652 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
11653 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11654 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11655 | # This bug is HP SR number 8606223364. | ||
11656 | if test "$cross_compiling" = yes; then | ||
11657 | # Depending upon the size, compute the lo and hi bounds. | ||
11658 | cat >conftest.$ac_ext <<_ACEOF | ||
11659 | #line $LINENO "configure" | ||
11660 | #include "confdefs.h" | ||
11661 | $ac_includes_default | ||
11662 | #ifdef F77_DUMMY_MAIN | ||
11663 | # ifdef __cplusplus | ||
11664 | extern "C" | ||
11665 | # endif | ||
11666 | int F77_DUMMY_MAIN() { return 1; } | ||
11667 | #endif | ||
11668 | int | ||
11669 | main () | ||
11670 | { | ||
11671 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@; | ||
11672 | test_array @<:@0@:>@ = 0 | ||
11673 | |||
11674 | ; | ||
11675 | return 0; | ||
11676 | } | ||
11677 | _ACEOF | ||
11678 | rm -f conftest.$ac_objext | ||
11679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11680 | (eval $ac_compile) 2>&5 | ||
11681 | ac_status=$? | ||
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11683 | (exit $ac_status); } && | ||
11684 | { ac_try='test -s conftest.$ac_objext' | ||
11685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11686 | (eval $ac_try) 2>&5 | ||
11687 | ac_status=$? | ||
11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11689 | (exit $ac_status); }; }; then | ||
11690 | ac_lo=0 ac_mid=0 | ||
11691 | while :; do | ||
11692 | cat >conftest.$ac_ext <<_ACEOF | ||
11693 | #line $LINENO "configure" | ||
11694 | #include "confdefs.h" | ||
11695 | $ac_includes_default | ||
11696 | #ifdef F77_DUMMY_MAIN | ||
11697 | # ifdef __cplusplus | ||
11698 | extern "C" | ||
11699 | # endif | ||
11700 | int F77_DUMMY_MAIN() { return 1; } | ||
11701 | #endif | ||
11702 | int | ||
11703 | main () | ||
11704 | { | ||
11705 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@; | ||
11706 | test_array @<:@0@:>@ = 0 | ||
11707 | |||
11708 | ; | ||
11709 | return 0; | ||
11710 | } | ||
11711 | _ACEOF | ||
11712 | rm -f conftest.$ac_objext | ||
11713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11714 | (eval $ac_compile) 2>&5 | ||
11715 | ac_status=$? | ||
11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11717 | (exit $ac_status); } && | ||
11718 | { ac_try='test -s conftest.$ac_objext' | ||
11719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11720 | (eval $ac_try) 2>&5 | ||
11721 | ac_status=$? | ||
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11723 | (exit $ac_status); }; }; then | ||
11724 | ac_hi=$ac_mid; break | ||
11725 | else | ||
11726 | echo "$as_me: failed program was:" >&5 | ||
11727 | cat conftest.$ac_ext >&5 | ||
11728 | ac_lo=`expr $ac_mid + 1` | ||
11729 | if test $ac_lo -le $ac_mid; then | ||
11730 | ac_lo= ac_hi= | ||
11731 | break | ||
11732 | fi | ||
11733 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11734 | fi | ||
11735 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11736 | done | ||
11737 | else | ||
11738 | echo "$as_me: failed program was:" >&5 | ||
11739 | cat conftest.$ac_ext >&5 | ||
11740 | cat >conftest.$ac_ext <<_ACEOF | ||
11741 | #line $LINENO "configure" | ||
11742 | #include "confdefs.h" | ||
11743 | $ac_includes_default | ||
11744 | #ifdef F77_DUMMY_MAIN | ||
11745 | # ifdef __cplusplus | ||
11746 | extern "C" | ||
11747 | # endif | ||
11748 | int F77_DUMMY_MAIN() { return 1; } | ||
11749 | #endif | ||
11750 | int | ||
11751 | main () | ||
11752 | { | ||
11753 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@; | ||
11754 | test_array @<:@0@:>@ = 0 | ||
11755 | |||
11756 | ; | ||
11757 | return 0; | ||
11758 | } | ||
11759 | _ACEOF | ||
11760 | rm -f conftest.$ac_objext | ||
11761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11762 | (eval $ac_compile) 2>&5 | ||
11763 | ac_status=$? | ||
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11765 | (exit $ac_status); } && | ||
11766 | { ac_try='test -s conftest.$ac_objext' | ||
11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11768 | (eval $ac_try) 2>&5 | ||
11769 | ac_status=$? | ||
11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11771 | (exit $ac_status); }; }; then | ||
11772 | ac_hi=-1 ac_mid=-1 | ||
11773 | while :; do | ||
11774 | cat >conftest.$ac_ext <<_ACEOF | ||
11775 | #line $LINENO "configure" | ||
11776 | #include "confdefs.h" | ||
11777 | $ac_includes_default | ||
11778 | #ifdef F77_DUMMY_MAIN | ||
11779 | # ifdef __cplusplus | ||
11780 | extern "C" | ||
11781 | # endif | ||
11782 | int F77_DUMMY_MAIN() { return 1; } | ||
11783 | #endif | ||
11784 | int | ||
11785 | main () | ||
11786 | { | ||
11787 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@; | ||
11788 | test_array @<:@0@:>@ = 0 | ||
11789 | |||
11790 | ; | ||
11791 | return 0; | ||
11792 | } | ||
11793 | _ACEOF | ||
11794 | rm -f conftest.$ac_objext | ||
11795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11796 | (eval $ac_compile) 2>&5 | ||
11797 | ac_status=$? | ||
11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11799 | (exit $ac_status); } && | ||
11800 | { ac_try='test -s conftest.$ac_objext' | ||
11801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11802 | (eval $ac_try) 2>&5 | ||
11803 | ac_status=$? | ||
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11805 | (exit $ac_status); }; }; then | ||
11806 | ac_lo=$ac_mid; break | ||
11807 | else | ||
11808 | echo "$as_me: failed program was:" >&5 | ||
11809 | cat conftest.$ac_ext >&5 | ||
11810 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11811 | if test $ac_mid -le $ac_hi; then | ||
11812 | ac_lo= ac_hi= | ||
11813 | break | ||
11814 | fi | ||
11815 | ac_mid=`expr 2 '*' $ac_mid` | ||
11816 | fi | ||
11817 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11818 | done | ||
11819 | else | ||
11820 | echo "$as_me: failed program was:" >&5 | ||
11821 | cat conftest.$ac_ext >&5 | ||
11822 | ac_lo= ac_hi= | ||
11823 | fi | ||
11824 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11825 | fi | ||
11826 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11827 | # Binary search between lo and hi bounds. | ||
11828 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11829 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11830 | cat >conftest.$ac_ext <<_ACEOF | ||
11831 | #line $LINENO "configure" | ||
11832 | #include "confdefs.h" | ||
11833 | $ac_includes_default | ||
11834 | #ifdef F77_DUMMY_MAIN | ||
11835 | # ifdef __cplusplus | ||
11836 | extern "C" | ||
11837 | # endif | ||
11838 | int F77_DUMMY_MAIN() { return 1; } | ||
11839 | #endif | ||
11840 | int | ||
11841 | main () | ||
11842 | { | ||
11843 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@; | ||
11844 | test_array @<:@0@:>@ = 0 | ||
11845 | |||
11846 | ; | ||
11847 | return 0; | ||
11848 | } | ||
11849 | _ACEOF | ||
11850 | rm -f conftest.$ac_objext | ||
11851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11852 | (eval $ac_compile) 2>&5 | ||
11853 | ac_status=$? | ||
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11855 | (exit $ac_status); } && | ||
11856 | { ac_try='test -s conftest.$ac_objext' | ||
11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11858 | (eval $ac_try) 2>&5 | ||
11859 | ac_status=$? | ||
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11861 | (exit $ac_status); }; }; then | ||
11862 | ac_hi=$ac_mid | ||
11863 | else | ||
11864 | echo "$as_me: failed program was:" >&5 | ||
11865 | cat conftest.$ac_ext >&5 | ||
11866 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11867 | fi | ||
11868 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11869 | done | ||
11870 | case $ac_lo in | ||
11871 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
11872 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11873 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11874 | { (exit 1); exit 1; }; } ;; | ||
11875 | esac | ||
11876 | else | ||
11877 | if test "$cross_compiling" = yes; then | ||
11878 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11879 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11880 | { (exit 1); exit 1; }; } | ||
11881 | else | ||
11882 | cat >conftest.$ac_ext <<_ACEOF | ||
11883 | #line $LINENO "configure" | ||
11884 | #include "confdefs.h" | ||
11885 | $ac_includes_default | ||
11886 | long longval () { return (long) (sizeof (long long int)); } | ||
11887 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
11888 | @%:@include <stdio.h> | ||
11889 | @%:@include <stdlib.h> | ||
11890 | #ifdef F77_DUMMY_MAIN | ||
11891 | # ifdef __cplusplus | ||
11892 | extern "C" | ||
11893 | # endif | ||
11894 | int F77_DUMMY_MAIN() { return 1; } | ||
11895 | #endif | ||
11896 | int | ||
11897 | main () | ||
11898 | { | ||
11899 | |||
11900 | FILE *f = fopen ("conftest.val", "w"); | ||
11901 | if (! f) | ||
11902 | exit (1); | ||
11903 | if (((long) (sizeof (long long int))) < 0) | ||
11904 | { | ||
11905 | long i = longval (); | ||
11906 | if (i != ((long) (sizeof (long long int)))) | ||
11907 | exit (1); | ||
11908 | fprintf (f, "%ld\n", i); | ||
11909 | } | ||
11910 | else | ||
11911 | { | ||
11912 | unsigned long i = ulongval (); | ||
11913 | if (i != ((long) (sizeof (long long int)))) | ||
11914 | exit (1); | ||
11915 | fprintf (f, "%lu\n", i); | ||
11916 | } | ||
11917 | exit (ferror (f) || fclose (f) != 0); | ||
11918 | |||
11919 | ; | ||
11920 | return 0; | ||
11921 | } | ||
11922 | _ACEOF | ||
11923 | rm -f conftest$ac_exeext | ||
11924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11925 | (eval $ac_link) 2>&5 | ||
11926 | ac_status=$? | ||
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11930 | (eval $ac_try) 2>&5 | ||
11931 | ac_status=$? | ||
11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11933 | (exit $ac_status); }; }; then | ||
11934 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11935 | else | ||
11936 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11937 | echo "$as_me: failed program was:" >&5 | ||
11938 | cat conftest.$ac_ext >&5 | ||
11939 | ( exit $ac_status ) | ||
11940 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11941 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11942 | { (exit 1); exit 1; }; } | ||
11943 | fi | ||
11944 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11945 | fi | ||
11946 | fi | ||
11947 | rm -f conftest.val | ||
11948 | else | ||
11949 | ac_cv_sizeof_long_long_int=0 | ||
11950 | fi | ||
11951 | fi | ||
11952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11953 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11954 | cat >>confdefs.h <<_ACEOF | ||
11955 | @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11956 | _ACEOF | ||
11957 | |||
11958 | |||
11959 | |||
11960 | # Sanity check long long for some platforms (AIX) | ||
11961 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11962 | ac_cv_sizeof_long_long_int=0 | ||
11963 | fi | ||
11964 | |||
11965 | # More checks for data types | ||
11966 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
11967 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11968 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11970 | else | ||
11971 | |||
11972 | cat >conftest.$ac_ext <<_ACEOF | ||
11973 | #line $LINENO "configure" | ||
11974 | #include "confdefs.h" | ||
11975 | #include <sys/types.h> | ||
11976 | #ifdef F77_DUMMY_MAIN | ||
11977 | # ifdef __cplusplus | ||
11978 | extern "C" | ||
11979 | # endif | ||
11980 | int F77_DUMMY_MAIN() { return 1; } | ||
11981 | #endif | ||
11982 | int | ||
11983 | main () | ||
11984 | { | ||
11985 | u_int a; a = 1; | ||
11986 | ; | ||
11987 | return 0; | ||
11988 | } | ||
11989 | _ACEOF | ||
11990 | rm -f conftest.$ac_objext | ||
11991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11992 | (eval $ac_compile) 2>&5 | ||
11993 | ac_status=$? | ||
11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11995 | (exit $ac_status); } && | ||
11996 | { ac_try='test -s conftest.$ac_objext' | ||
11997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11998 | (eval $ac_try) 2>&5 | ||
11999 | ac_status=$? | ||
12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12001 | (exit $ac_status); }; }; then | ||
12002 | ac_cv_have_u_int="yes" | ||
12003 | else | ||
12004 | echo "$as_me: failed program was:" >&5 | ||
12005 | cat conftest.$ac_ext >&5 | ||
12006 | ac_cv_have_u_int="no" | ||
12007 | |||
12008 | fi | ||
12009 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12010 | |||
12011 | fi | ||
12012 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
12013 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
12014 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
12015 | cat >>confdefs.h <<\_ACEOF | ||
12016 | @%:@define HAVE_U_INT 1 | ||
12017 | _ACEOF | ||
12018 | |||
12019 | have_u_int=1 | ||
12020 | fi | ||
12021 | |||
12022 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
12023 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
12024 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12026 | else | ||
12027 | |||
12028 | cat >conftest.$ac_ext <<_ACEOF | ||
12029 | #line $LINENO "configure" | ||
12030 | #include "confdefs.h" | ||
12031 | #include <sys/types.h> | ||
12032 | #ifdef F77_DUMMY_MAIN | ||
12033 | # ifdef __cplusplus | ||
12034 | extern "C" | ||
12035 | # endif | ||
12036 | int F77_DUMMY_MAIN() { return 1; } | ||
12037 | #endif | ||
12038 | int | ||
12039 | main () | ||
12040 | { | ||
12041 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12042 | ; | ||
12043 | return 0; | ||
12044 | } | ||
12045 | _ACEOF | ||
12046 | rm -f conftest.$ac_objext | ||
12047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12048 | (eval $ac_compile) 2>&5 | ||
12049 | ac_status=$? | ||
12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12051 | (exit $ac_status); } && | ||
12052 | { ac_try='test -s conftest.$ac_objext' | ||
12053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12054 | (eval $ac_try) 2>&5 | ||
12055 | ac_status=$? | ||
12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12057 | (exit $ac_status); }; }; then | ||
12058 | ac_cv_have_intxx_t="yes" | ||
12059 | else | ||
12060 | echo "$as_me: failed program was:" >&5 | ||
12061 | cat conftest.$ac_ext >&5 | ||
12062 | ac_cv_have_intxx_t="no" | ||
12063 | |||
12064 | fi | ||
12065 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12066 | |||
12067 | fi | ||
12068 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
12069 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
12070 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
12071 | cat >>confdefs.h <<\_ACEOF | ||
12072 | @%:@define HAVE_INTXX_T 1 | ||
12073 | _ACEOF | ||
12074 | |||
12075 | have_intxx_t=1 | ||
12076 | fi | ||
12077 | |||
12078 | if (test -z "$have_intxx_t" && \ | ||
12079 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
12080 | then | ||
12081 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
12082 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
12083 | cat >conftest.$ac_ext <<_ACEOF | ||
12084 | #line $LINENO "configure" | ||
12085 | #include "confdefs.h" | ||
12086 | #include <stdint.h> | ||
12087 | #ifdef F77_DUMMY_MAIN | ||
12088 | # ifdef __cplusplus | ||
12089 | extern "C" | ||
12090 | # endif | ||
12091 | int F77_DUMMY_MAIN() { return 1; } | ||
12092 | #endif | ||
12093 | int | ||
12094 | main () | ||
12095 | { | ||
12096 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12097 | ; | ||
12098 | return 0; | ||
12099 | } | ||
12100 | _ACEOF | ||
12101 | rm -f conftest.$ac_objext | ||
12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12103 | (eval $ac_compile) 2>&5 | ||
12104 | ac_status=$? | ||
12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12106 | (exit $ac_status); } && | ||
12107 | { ac_try='test -s conftest.$ac_objext' | ||
12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12109 | (eval $ac_try) 2>&5 | ||
12110 | ac_status=$? | ||
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12112 | (exit $ac_status); }; }; then | ||
12113 | |||
12114 | cat >>confdefs.h <<\_ACEOF | ||
12115 | @%:@define HAVE_INTXX_T 1 | ||
12116 | _ACEOF | ||
12117 | |||
12118 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12119 | echo "${ECHO_T}yes" >&6 | ||
12120 | |||
12121 | else | ||
12122 | echo "$as_me: failed program was:" >&5 | ||
12123 | cat conftest.$ac_ext >&5 | ||
12124 | echo "$as_me:$LINENO: result: no" >&5 | ||
12125 | echo "${ECHO_T}no" >&6 | ||
12126 | |||
12127 | fi | ||
12128 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12129 | fi | ||
12130 | |||
12131 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
12132 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
12133 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12135 | else | ||
12136 | |||
12137 | cat >conftest.$ac_ext <<_ACEOF | ||
12138 | #line $LINENO "configure" | ||
12139 | #include "confdefs.h" | ||
12140 | |||
12141 | #include <sys/types.h> | ||
12142 | #ifdef HAVE_STDINT_H | ||
12143 | # include <stdint.h> | ||
12144 | #endif | ||
12145 | #include <sys/socket.h> | ||
12146 | #ifdef HAVE_SYS_BITYPES_H | ||
12147 | # include <sys/bitypes.h> | ||
12148 | #endif | ||
12149 | |||
12150 | #ifdef F77_DUMMY_MAIN | ||
12151 | # ifdef __cplusplus | ||
12152 | extern "C" | ||
12153 | # endif | ||
12154 | int F77_DUMMY_MAIN() { return 1; } | ||
12155 | #endif | ||
12156 | int | ||
12157 | main () | ||
12158 | { | ||
12159 | int64_t a; a = 1; | ||
12160 | ; | ||
12161 | return 0; | ||
12162 | } | ||
12163 | _ACEOF | ||
12164 | rm -f conftest.$ac_objext | ||
12165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12166 | (eval $ac_compile) 2>&5 | ||
12167 | ac_status=$? | ||
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12169 | (exit $ac_status); } && | ||
12170 | { ac_try='test -s conftest.$ac_objext' | ||
12171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12172 | (eval $ac_try) 2>&5 | ||
12173 | ac_status=$? | ||
12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12175 | (exit $ac_status); }; }; then | ||
12176 | ac_cv_have_int64_t="yes" | ||
12177 | else | ||
12178 | echo "$as_me: failed program was:" >&5 | ||
12179 | cat conftest.$ac_ext >&5 | ||
12180 | ac_cv_have_int64_t="no" | ||
12181 | |||
12182 | fi | ||
12183 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12184 | |||
12185 | fi | ||
12186 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
12187 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
12188 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
12189 | cat >>confdefs.h <<\_ACEOF | ||
12190 | @%:@define HAVE_INT64_T 1 | ||
12191 | _ACEOF | ||
12192 | |||
12193 | fi | ||
12194 | |||
12195 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
12196 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
12197 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
12198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12199 | else | ||
12200 | |||
12201 | cat >conftest.$ac_ext <<_ACEOF | ||
12202 | #line $LINENO "configure" | ||
12203 | #include "confdefs.h" | ||
12204 | #include <sys/types.h> | ||
12205 | #ifdef F77_DUMMY_MAIN | ||
12206 | # ifdef __cplusplus | ||
12207 | extern "C" | ||
12208 | # endif | ||
12209 | int F77_DUMMY_MAIN() { return 1; } | ||
12210 | #endif | ||
12211 | int | ||
12212 | main () | ||
12213 | { | ||
12214 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12215 | ; | ||
12216 | return 0; | ||
12217 | } | ||
12218 | _ACEOF | ||
12219 | rm -f conftest.$ac_objext | ||
12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12221 | (eval $ac_compile) 2>&5 | ||
12222 | ac_status=$? | ||
12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12224 | (exit $ac_status); } && | ||
12225 | { ac_try='test -s conftest.$ac_objext' | ||
12226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12227 | (eval $ac_try) 2>&5 | ||
12228 | ac_status=$? | ||
12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12230 | (exit $ac_status); }; }; then | ||
12231 | ac_cv_have_u_intxx_t="yes" | ||
12232 | else | ||
12233 | echo "$as_me: failed program was:" >&5 | ||
12234 | cat conftest.$ac_ext >&5 | ||
12235 | ac_cv_have_u_intxx_t="no" | ||
12236 | |||
12237 | fi | ||
12238 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12239 | |||
12240 | fi | ||
12241 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
12242 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
12243 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
12244 | cat >>confdefs.h <<\_ACEOF | ||
12245 | @%:@define HAVE_U_INTXX_T 1 | ||
12246 | _ACEOF | ||
12247 | |||
12248 | have_u_intxx_t=1 | ||
12249 | fi | ||
12250 | |||
12251 | if test -z "$have_u_intxx_t" ; then | ||
12252 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
12253 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
12254 | cat >conftest.$ac_ext <<_ACEOF | ||
12255 | #line $LINENO "configure" | ||
12256 | #include "confdefs.h" | ||
12257 | #include <sys/socket.h> | ||
12258 | #ifdef F77_DUMMY_MAIN | ||
12259 | # ifdef __cplusplus | ||
12260 | extern "C" | ||
12261 | # endif | ||
12262 | int F77_DUMMY_MAIN() { return 1; } | ||
12263 | #endif | ||
12264 | int | ||
12265 | main () | ||
12266 | { | ||
12267 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12268 | ; | ||
12269 | return 0; | ||
12270 | } | ||
12271 | _ACEOF | ||
12272 | rm -f conftest.$ac_objext | ||
12273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12274 | (eval $ac_compile) 2>&5 | ||
12275 | ac_status=$? | ||
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12277 | (exit $ac_status); } && | ||
12278 | { ac_try='test -s conftest.$ac_objext' | ||
12279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12280 | (eval $ac_try) 2>&5 | ||
12281 | ac_status=$? | ||
12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12283 | (exit $ac_status); }; }; then | ||
12284 | |||
12285 | cat >>confdefs.h <<\_ACEOF | ||
12286 | @%:@define HAVE_U_INTXX_T 1 | ||
12287 | _ACEOF | ||
12288 | |||
12289 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12290 | echo "${ECHO_T}yes" >&6 | ||
12291 | |||
12292 | else | ||
12293 | echo "$as_me: failed program was:" >&5 | ||
12294 | cat conftest.$ac_ext >&5 | ||
12295 | echo "$as_me:$LINENO: result: no" >&5 | ||
12296 | echo "${ECHO_T}no" >&6 | ||
12297 | |||
12298 | fi | ||
12299 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12300 | fi | ||
12301 | |||
12302 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
12303 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
12304 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12306 | else | ||
12307 | |||
12308 | cat >conftest.$ac_ext <<_ACEOF | ||
12309 | #line $LINENO "configure" | ||
12310 | #include "confdefs.h" | ||
12311 | #include <sys/types.h> | ||
12312 | #ifdef F77_DUMMY_MAIN | ||
12313 | # ifdef __cplusplus | ||
12314 | extern "C" | ||
12315 | # endif | ||
12316 | int F77_DUMMY_MAIN() { return 1; } | ||
12317 | #endif | ||
12318 | int | ||
12319 | main () | ||
12320 | { | ||
12321 | u_int64_t a; a = 1; | ||
12322 | ; | ||
12323 | return 0; | ||
12324 | } | ||
12325 | _ACEOF | ||
12326 | rm -f conftest.$ac_objext | ||
12327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12328 | (eval $ac_compile) 2>&5 | ||
12329 | ac_status=$? | ||
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12331 | (exit $ac_status); } && | ||
12332 | { ac_try='test -s conftest.$ac_objext' | ||
12333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12334 | (eval $ac_try) 2>&5 | ||
12335 | ac_status=$? | ||
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12337 | (exit $ac_status); }; }; then | ||
12338 | ac_cv_have_u_int64_t="yes" | ||
12339 | else | ||
12340 | echo "$as_me: failed program was:" >&5 | ||
12341 | cat conftest.$ac_ext >&5 | ||
12342 | ac_cv_have_u_int64_t="no" | ||
12343 | |||
12344 | fi | ||
12345 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12346 | |||
12347 | fi | ||
12348 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
12349 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
12350 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12351 | cat >>confdefs.h <<\_ACEOF | ||
12352 | @%:@define HAVE_U_INT64_T 1 | ||
12353 | _ACEOF | ||
12354 | |||
12355 | have_u_int64_t=1 | ||
12356 | fi | ||
12357 | |||
12358 | if test -z "$have_u_int64_t" ; then | ||
12359 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12360 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
12361 | cat >conftest.$ac_ext <<_ACEOF | ||
12362 | #line $LINENO "configure" | ||
12363 | #include "confdefs.h" | ||
12364 | #include <sys/bitypes.h> | ||
12365 | #ifdef F77_DUMMY_MAIN | ||
12366 | # ifdef __cplusplus | ||
12367 | extern "C" | ||
12368 | # endif | ||
12369 | int F77_DUMMY_MAIN() { return 1; } | ||
12370 | #endif | ||
12371 | int | ||
12372 | main () | ||
12373 | { | ||
12374 | u_int64_t a; a = 1 | ||
12375 | ; | ||
12376 | return 0; | ||
12377 | } | ||
12378 | _ACEOF | ||
12379 | rm -f conftest.$ac_objext | ||
12380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12381 | (eval $ac_compile) 2>&5 | ||
12382 | ac_status=$? | ||
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12384 | (exit $ac_status); } && | ||
12385 | { ac_try='test -s conftest.$ac_objext' | ||
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12387 | (eval $ac_try) 2>&5 | ||
12388 | ac_status=$? | ||
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12390 | (exit $ac_status); }; }; then | ||
12391 | |||
12392 | cat >>confdefs.h <<\_ACEOF | ||
12393 | @%:@define HAVE_U_INT64_T 1 | ||
12394 | _ACEOF | ||
12395 | |||
12396 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12397 | echo "${ECHO_T}yes" >&6 | ||
12398 | |||
12399 | else | ||
12400 | echo "$as_me: failed program was:" >&5 | ||
12401 | cat conftest.$ac_ext >&5 | ||
12402 | echo "$as_me:$LINENO: result: no" >&5 | ||
12403 | echo "${ECHO_T}no" >&6 | ||
12404 | |||
12405 | fi | ||
12406 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12407 | fi | ||
12408 | |||
12409 | if test -z "$have_u_intxx_t" ; then | ||
12410 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
12411 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
12412 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
12413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12414 | else | ||
12415 | |||
12416 | cat >conftest.$ac_ext <<_ACEOF | ||
12417 | #line $LINENO "configure" | ||
12418 | #include "confdefs.h" | ||
12419 | |||
12420 | #include <sys/types.h> | ||
12421 | |||
12422 | #ifdef F77_DUMMY_MAIN | ||
12423 | # ifdef __cplusplus | ||
12424 | extern "C" | ||
12425 | # endif | ||
12426 | int F77_DUMMY_MAIN() { return 1; } | ||
12427 | #endif | ||
12428 | int | ||
12429 | main () | ||
12430 | { | ||
12431 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12432 | ; | ||
12433 | return 0; | ||
12434 | } | ||
12435 | _ACEOF | ||
12436 | rm -f conftest.$ac_objext | ||
12437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12438 | (eval $ac_compile) 2>&5 | ||
12439 | ac_status=$? | ||
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12441 | (exit $ac_status); } && | ||
12442 | { ac_try='test -s conftest.$ac_objext' | ||
12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12444 | (eval $ac_try) 2>&5 | ||
12445 | ac_status=$? | ||
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12447 | (exit $ac_status); }; }; then | ||
12448 | ac_cv_have_uintxx_t="yes" | ||
12449 | else | ||
12450 | echo "$as_me: failed program was:" >&5 | ||
12451 | cat conftest.$ac_ext >&5 | ||
12452 | ac_cv_have_uintxx_t="no" | ||
12453 | |||
12454 | fi | ||
12455 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12456 | |||
12457 | fi | ||
12458 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
12459 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
12460 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12461 | cat >>confdefs.h <<\_ACEOF | ||
12462 | @%:@define HAVE_UINTXX_T 1 | ||
12463 | _ACEOF | ||
12464 | |||
12465 | fi | ||
12466 | fi | ||
12467 | |||
12468 | if test -z "$have_uintxx_t" ; then | ||
12469 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
12470 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
12471 | cat >conftest.$ac_ext <<_ACEOF | ||
12472 | #line $LINENO "configure" | ||
12473 | #include "confdefs.h" | ||
12474 | #include <stdint.h> | ||
12475 | #ifdef F77_DUMMY_MAIN | ||
12476 | # ifdef __cplusplus | ||
12477 | extern "C" | ||
12478 | # endif | ||
12479 | int F77_DUMMY_MAIN() { return 1; } | ||
12480 | #endif | ||
12481 | int | ||
12482 | main () | ||
12483 | { | ||
12484 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12485 | ; | ||
12486 | return 0; | ||
12487 | } | ||
12488 | _ACEOF | ||
12489 | rm -f conftest.$ac_objext | ||
12490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12491 | (eval $ac_compile) 2>&5 | ||
12492 | ac_status=$? | ||
12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12494 | (exit $ac_status); } && | ||
12495 | { ac_try='test -s conftest.$ac_objext' | ||
12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12497 | (eval $ac_try) 2>&5 | ||
12498 | ac_status=$? | ||
12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12500 | (exit $ac_status); }; }; then | ||
12501 | |||
12502 | cat >>confdefs.h <<\_ACEOF | ||
12503 | @%:@define HAVE_UINTXX_T 1 | ||
12504 | _ACEOF | ||
12505 | |||
12506 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12507 | echo "${ECHO_T}yes" >&6 | ||
12508 | |||
12509 | else | ||
12510 | echo "$as_me: failed program was:" >&5 | ||
12511 | cat conftest.$ac_ext >&5 | ||
12512 | echo "$as_me:$LINENO: result: no" >&5 | ||
12513 | echo "${ECHO_T}no" >&6 | ||
12514 | |||
12515 | fi | ||
12516 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12517 | fi | ||
12518 | |||
12519 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12520 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12521 | then | ||
12522 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12523 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
12524 | cat >conftest.$ac_ext <<_ACEOF | ||
12525 | #line $LINENO "configure" | ||
12526 | #include "confdefs.h" | ||
12527 | |||
12528 | #include <sys/bitypes.h> | ||
12529 | |||
12530 | #ifdef F77_DUMMY_MAIN | ||
12531 | # ifdef __cplusplus | ||
12532 | extern "C" | ||
12533 | # endif | ||
12534 | int F77_DUMMY_MAIN() { return 1; } | ||
12535 | #endif | ||
12536 | int | ||
12537 | main () | ||
12538 | { | ||
12539 | |||
12540 | int8_t a; int16_t b; int32_t c; | ||
12541 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12542 | a = b = c = e = f = g = 1; | ||
12543 | |||
12544 | ; | ||
12545 | return 0; | ||
12546 | } | ||
12547 | _ACEOF | ||
12548 | rm -f conftest.$ac_objext | ||
12549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12550 | (eval $ac_compile) 2>&5 | ||
12551 | ac_status=$? | ||
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12553 | (exit $ac_status); } && | ||
12554 | { ac_try='test -s conftest.$ac_objext' | ||
12555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12556 | (eval $ac_try) 2>&5 | ||
12557 | ac_status=$? | ||
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12559 | (exit $ac_status); }; }; then | ||
12560 | |||
12561 | cat >>confdefs.h <<\_ACEOF | ||
12562 | @%:@define HAVE_U_INTXX_T 1 | ||
12563 | _ACEOF | ||
12564 | |||
12565 | cat >>confdefs.h <<\_ACEOF | ||
12566 | @%:@define HAVE_INTXX_T 1 | ||
12567 | _ACEOF | ||
12568 | |||
12569 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12570 | echo "${ECHO_T}yes" >&6 | ||
12571 | |||
12572 | else | ||
12573 | echo "$as_me: failed program was:" >&5 | ||
12574 | cat conftest.$ac_ext >&5 | ||
12575 | echo "$as_me:$LINENO: result: no" >&5 | ||
12576 | echo "${ECHO_T}no" >&6 | ||
12577 | |||
12578 | fi | ||
12579 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12580 | fi | ||
12581 | |||
12582 | |||
12583 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
12584 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
12585 | if test "${ac_cv_have_u_char+set}" = set; then | ||
12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12587 | else | ||
12588 | |||
12589 | cat >conftest.$ac_ext <<_ACEOF | ||
12590 | #line $LINENO "configure" | ||
12591 | #include "confdefs.h" | ||
12592 | |||
12593 | #include <sys/types.h> | ||
12594 | |||
12595 | #ifdef F77_DUMMY_MAIN | ||
12596 | # ifdef __cplusplus | ||
12597 | extern "C" | ||
12598 | # endif | ||
12599 | int F77_DUMMY_MAIN() { return 1; } | ||
12600 | #endif | ||
12601 | int | ||
12602 | main () | ||
12603 | { | ||
12604 | u_char foo; foo = 125; | ||
12605 | ; | ||
12606 | return 0; | ||
12607 | } | ||
12608 | _ACEOF | ||
12609 | rm -f conftest.$ac_objext | ||
12610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12611 | (eval $ac_compile) 2>&5 | ||
12612 | ac_status=$? | ||
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12614 | (exit $ac_status); } && | ||
12615 | { ac_try='test -s conftest.$ac_objext' | ||
12616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12617 | (eval $ac_try) 2>&5 | ||
12618 | ac_status=$? | ||
12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12620 | (exit $ac_status); }; }; then | ||
12621 | ac_cv_have_u_char="yes" | ||
12622 | else | ||
12623 | echo "$as_me: failed program was:" >&5 | ||
12624 | cat conftest.$ac_ext >&5 | ||
12625 | ac_cv_have_u_char="no" | ||
12626 | |||
12627 | fi | ||
12628 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12629 | |||
12630 | fi | ||
12631 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
12632 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
12633 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12634 | cat >>confdefs.h <<\_ACEOF | ||
12635 | @%:@define HAVE_U_CHAR 1 | ||
12636 | _ACEOF | ||
12637 | |||
12638 | fi | ||
12639 | |||
12640 | |||
12641 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
12642 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
12643 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12645 | else | ||
12646 | cat >conftest.$ac_ext <<_ACEOF | ||
12647 | #line $LINENO "configure" | ||
12648 | #include "confdefs.h" | ||
12649 | #include <sys/types.h> | ||
12650 | #include <sys/socket.h> | ||
12651 | |||
12652 | #ifdef F77_DUMMY_MAIN | ||
12653 | # ifdef __cplusplus | ||
12654 | extern "C" | ||
12655 | # endif | ||
12656 | int F77_DUMMY_MAIN() { return 1; } | ||
12657 | #endif | ||
12658 | int | ||
12659 | main () | ||
12660 | { | ||
12661 | if ((socklen_t *) 0) | ||
12662 | return 0; | ||
12663 | if (sizeof (socklen_t)) | ||
12664 | return 0; | ||
12665 | ; | ||
12666 | return 0; | ||
12667 | } | ||
12668 | _ACEOF | ||
12669 | rm -f conftest.$ac_objext | ||
12670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12671 | (eval $ac_compile) 2>&5 | ||
12672 | ac_status=$? | ||
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12674 | (exit $ac_status); } && | ||
12675 | { ac_try='test -s conftest.$ac_objext' | ||
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12677 | (eval $ac_try) 2>&5 | ||
12678 | ac_status=$? | ||
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12680 | (exit $ac_status); }; }; then | ||
12681 | ac_cv_type_socklen_t=yes | ||
12682 | else | ||
12683 | echo "$as_me: failed program was:" >&5 | ||
12684 | cat conftest.$ac_ext >&5 | ||
12685 | ac_cv_type_socklen_t=no | ||
12686 | fi | ||
12687 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12688 | fi | ||
12689 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
12690 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
12691 | if test $ac_cv_type_socklen_t = yes; then | ||
12692 | : | ||
12693 | else | ||
12694 | |||
12695 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
12696 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
12697 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
12698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12699 | else | ||
12700 | |||
12701 | # Systems have either "struct sockaddr *" or | ||
12702 | # "void *" as the second argument to getpeername | ||
12703 | curl_cv_socklen_t_equiv= | ||
12704 | for arg2 in "struct sockaddr" void; do | ||
12705 | for t in int size_t unsigned long "unsigned long"; do | ||
12706 | cat >conftest.$ac_ext <<_ACEOF | ||
12707 | #line $LINENO "configure" | ||
12708 | #include "confdefs.h" | ||
12709 | |||
12710 | #include <sys/types.h> | ||
12711 | #include <sys/socket.h> | ||
12712 | |||
12713 | int getpeername (int, $arg2 *, $t *); | ||
12714 | |||
12715 | #ifdef F77_DUMMY_MAIN | ||
12716 | # ifdef __cplusplus | ||
12717 | extern "C" | ||
12718 | # endif | ||
12719 | int F77_DUMMY_MAIN() { return 1; } | ||
12720 | #endif | ||
12721 | int | ||
12722 | main () | ||
12723 | { | ||
12724 | |||
12725 | $t len; | ||
12726 | getpeername(0,0,&len); | ||
12727 | |||
12728 | ; | ||
12729 | return 0; | ||
12730 | } | ||
12731 | _ACEOF | ||
12732 | rm -f conftest.$ac_objext | ||
12733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12734 | (eval $ac_compile) 2>&5 | ||
12735 | ac_status=$? | ||
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12737 | (exit $ac_status); } && | ||
12738 | { ac_try='test -s conftest.$ac_objext' | ||
12739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12740 | (eval $ac_try) 2>&5 | ||
12741 | ac_status=$? | ||
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12743 | (exit $ac_status); }; }; then | ||
12744 | |||
12745 | curl_cv_socklen_t_equiv="$t" | ||
12746 | break | ||
12747 | |||
12748 | else | ||
12749 | echo "$as_me: failed program was:" >&5 | ||
12750 | cat conftest.$ac_ext >&5 | ||
12751 | fi | ||
12752 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12753 | done | ||
12754 | done | ||
12755 | |||
12756 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12757 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12758 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12759 | { (exit 1); exit 1; }; } | ||
12760 | fi | ||
12761 | |||
12762 | fi | ||
12763 | |||
12764 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
12765 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12766 | |||
12767 | cat >>confdefs.h <<_ACEOF | ||
12768 | @%:@define socklen_t $curl_cv_socklen_t_equiv | ||
12769 | _ACEOF | ||
12770 | |||
12771 | fi | ||
12772 | |||
12773 | |||
12774 | |||
12775 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
12776 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12777 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12779 | else | ||
12780 | cat >conftest.$ac_ext <<_ACEOF | ||
12781 | #line $LINENO "configure" | ||
12782 | #include "confdefs.h" | ||
12783 | #include <signal.h> | ||
12784 | |||
12785 | #ifdef F77_DUMMY_MAIN | ||
12786 | # ifdef __cplusplus | ||
12787 | extern "C" | ||
12788 | # endif | ||
12789 | int F77_DUMMY_MAIN() { return 1; } | ||
12790 | #endif | ||
12791 | int | ||
12792 | main () | ||
12793 | { | ||
12794 | if ((sig_atomic_t *) 0) | ||
12795 | return 0; | ||
12796 | if (sizeof (sig_atomic_t)) | ||
12797 | return 0; | ||
12798 | ; | ||
12799 | return 0; | ||
12800 | } | ||
12801 | _ACEOF | ||
12802 | rm -f conftest.$ac_objext | ||
12803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12804 | (eval $ac_compile) 2>&5 | ||
12805 | ac_status=$? | ||
12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12807 | (exit $ac_status); } && | ||
12808 | { ac_try='test -s conftest.$ac_objext' | ||
12809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12810 | (eval $ac_try) 2>&5 | ||
12811 | ac_status=$? | ||
12812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12813 | (exit $ac_status); }; }; then | ||
12814 | ac_cv_type_sig_atomic_t=yes | ||
12815 | else | ||
12816 | echo "$as_me: failed program was:" >&5 | ||
12817 | cat conftest.$ac_ext >&5 | ||
12818 | ac_cv_type_sig_atomic_t=no | ||
12819 | fi | ||
12820 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12821 | fi | ||
12822 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12823 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12824 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12825 | |||
12826 | cat >>confdefs.h <<_ACEOF | ||
12827 | @%:@define HAVE_SIG_ATOMIC_T 1 | ||
12828 | _ACEOF | ||
12829 | |||
12830 | |||
12831 | fi | ||
12832 | |||
12833 | |||
12834 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
12835 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12836 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12838 | else | ||
12839 | |||
12840 | cat >conftest.$ac_ext <<_ACEOF | ||
12841 | #line $LINENO "configure" | ||
12842 | #include "confdefs.h" | ||
12843 | |||
12844 | #include <sys/types.h> | ||
12845 | |||
12846 | #ifdef F77_DUMMY_MAIN | ||
12847 | # ifdef __cplusplus | ||
12848 | extern "C" | ||
12849 | # endif | ||
12850 | int F77_DUMMY_MAIN() { return 1; } | ||
12851 | #endif | ||
12852 | int | ||
12853 | main () | ||
12854 | { | ||
12855 | size_t foo; foo = 1235; | ||
12856 | ; | ||
12857 | return 0; | ||
12858 | } | ||
12859 | _ACEOF | ||
12860 | rm -f conftest.$ac_objext | ||
12861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12862 | (eval $ac_compile) 2>&5 | ||
12863 | ac_status=$? | ||
12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12865 | (exit $ac_status); } && | ||
12866 | { ac_try='test -s conftest.$ac_objext' | ||
12867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12868 | (eval $ac_try) 2>&5 | ||
12869 | ac_status=$? | ||
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12871 | (exit $ac_status); }; }; then | ||
12872 | ac_cv_have_size_t="yes" | ||
12873 | else | ||
12874 | echo "$as_me: failed program was:" >&5 | ||
12875 | cat conftest.$ac_ext >&5 | ||
12876 | ac_cv_have_size_t="no" | ||
12877 | |||
12878 | fi | ||
12879 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12880 | |||
12881 | fi | ||
12882 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
12883 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12884 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12885 | cat >>confdefs.h <<\_ACEOF | ||
12886 | @%:@define HAVE_SIZE_T 1 | ||
12887 | _ACEOF | ||
12888 | |||
12889 | fi | ||
12890 | |||
12891 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
12892 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12893 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12895 | else | ||
12896 | |||
12897 | cat >conftest.$ac_ext <<_ACEOF | ||
12898 | #line $LINENO "configure" | ||
12899 | #include "confdefs.h" | ||
12900 | |||
12901 | #include <sys/types.h> | ||
12902 | |||
12903 | #ifdef F77_DUMMY_MAIN | ||
12904 | # ifdef __cplusplus | ||
12905 | extern "C" | ||
12906 | # endif | ||
12907 | int F77_DUMMY_MAIN() { return 1; } | ||
12908 | #endif | ||
12909 | int | ||
12910 | main () | ||
12911 | { | ||
12912 | ssize_t foo; foo = 1235; | ||
12913 | ; | ||
12914 | return 0; | ||
12915 | } | ||
12916 | _ACEOF | ||
12917 | rm -f conftest.$ac_objext | ||
12918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12919 | (eval $ac_compile) 2>&5 | ||
12920 | ac_status=$? | ||
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12922 | (exit $ac_status); } && | ||
12923 | { ac_try='test -s conftest.$ac_objext' | ||
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12925 | (eval $ac_try) 2>&5 | ||
12926 | ac_status=$? | ||
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12928 | (exit $ac_status); }; }; then | ||
12929 | ac_cv_have_ssize_t="yes" | ||
12930 | else | ||
12931 | echo "$as_me: failed program was:" >&5 | ||
12932 | cat conftest.$ac_ext >&5 | ||
12933 | ac_cv_have_ssize_t="no" | ||
12934 | |||
12935 | fi | ||
12936 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12937 | |||
12938 | fi | ||
12939 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
12940 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12941 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12942 | cat >>confdefs.h <<\_ACEOF | ||
12943 | @%:@define HAVE_SSIZE_T 1 | ||
12944 | _ACEOF | ||
12945 | |||
12946 | fi | ||
12947 | |||
12948 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
12949 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12950 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12952 | else | ||
12953 | |||
12954 | cat >conftest.$ac_ext <<_ACEOF | ||
12955 | #line $LINENO "configure" | ||
12956 | #include "confdefs.h" | ||
12957 | |||
12958 | #include <time.h> | ||
12959 | |||
12960 | #ifdef F77_DUMMY_MAIN | ||
12961 | # ifdef __cplusplus | ||
12962 | extern "C" | ||
12963 | # endif | ||
12964 | int F77_DUMMY_MAIN() { return 1; } | ||
12965 | #endif | ||
12966 | int | ||
12967 | main () | ||
12968 | { | ||
12969 | clock_t foo; foo = 1235; | ||
12970 | ; | ||
12971 | return 0; | ||
12972 | } | ||
12973 | _ACEOF | ||
12974 | rm -f conftest.$ac_objext | ||
12975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12976 | (eval $ac_compile) 2>&5 | ||
12977 | ac_status=$? | ||
12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12979 | (exit $ac_status); } && | ||
12980 | { ac_try='test -s conftest.$ac_objext' | ||
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12982 | (eval $ac_try) 2>&5 | ||
12983 | ac_status=$? | ||
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12985 | (exit $ac_status); }; }; then | ||
12986 | ac_cv_have_clock_t="yes" | ||
12987 | else | ||
12988 | echo "$as_me: failed program was:" >&5 | ||
12989 | cat conftest.$ac_ext >&5 | ||
12990 | ac_cv_have_clock_t="no" | ||
12991 | |||
12992 | fi | ||
12993 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12994 | |||
12995 | fi | ||
12996 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
12997 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12998 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12999 | cat >>confdefs.h <<\_ACEOF | ||
13000 | @%:@define HAVE_CLOCK_T 1 | ||
13001 | _ACEOF | ||
13002 | |||
13003 | fi | ||
13004 | |||
13005 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
13006 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
13007 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
13008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13009 | else | ||
13010 | |||
13011 | cat >conftest.$ac_ext <<_ACEOF | ||
13012 | #line $LINENO "configure" | ||
13013 | #include "confdefs.h" | ||
13014 | |||
13015 | #include <sys/types.h> | ||
13016 | #include <sys/socket.h> | ||
13017 | |||
13018 | #ifdef F77_DUMMY_MAIN | ||
13019 | # ifdef __cplusplus | ||
13020 | extern "C" | ||
13021 | # endif | ||
13022 | int F77_DUMMY_MAIN() { return 1; } | ||
13023 | #endif | ||
13024 | int | ||
13025 | main () | ||
13026 | { | ||
13027 | sa_family_t foo; foo = 1235; | ||
13028 | ; | ||
13029 | return 0; | ||
13030 | } | ||
13031 | _ACEOF | ||
13032 | rm -f conftest.$ac_objext | ||
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13034 | (eval $ac_compile) 2>&5 | ||
13035 | ac_status=$? | ||
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13037 | (exit $ac_status); } && | ||
13038 | { ac_try='test -s conftest.$ac_objext' | ||
13039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13040 | (eval $ac_try) 2>&5 | ||
13041 | ac_status=$? | ||
13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13043 | (exit $ac_status); }; }; then | ||
13044 | ac_cv_have_sa_family_t="yes" | ||
13045 | else | ||
13046 | echo "$as_me: failed program was:" >&5 | ||
13047 | cat conftest.$ac_ext >&5 | ||
13048 | cat >conftest.$ac_ext <<_ACEOF | ||
13049 | #line $LINENO "configure" | ||
13050 | #include "confdefs.h" | ||
13051 | |||
13052 | #include <sys/types.h> | ||
13053 | #include <sys/socket.h> | ||
13054 | #include <netinet/in.h> | ||
13055 | |||
13056 | #ifdef F77_DUMMY_MAIN | ||
13057 | # ifdef __cplusplus | ||
13058 | extern "C" | ||
13059 | # endif | ||
13060 | int F77_DUMMY_MAIN() { return 1; } | ||
13061 | #endif | ||
13062 | int | ||
13063 | main () | ||
13064 | { | ||
13065 | sa_family_t foo; foo = 1235; | ||
13066 | ; | ||
13067 | return 0; | ||
13068 | } | ||
13069 | _ACEOF | ||
13070 | rm -f conftest.$ac_objext | ||
13071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13072 | (eval $ac_compile) 2>&5 | ||
13073 | ac_status=$? | ||
13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13075 | (exit $ac_status); } && | ||
13076 | { ac_try='test -s conftest.$ac_objext' | ||
13077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13078 | (eval $ac_try) 2>&5 | ||
13079 | ac_status=$? | ||
13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13081 | (exit $ac_status); }; }; then | ||
13082 | ac_cv_have_sa_family_t="yes" | ||
13083 | else | ||
13084 | echo "$as_me: failed program was:" >&5 | ||
13085 | cat conftest.$ac_ext >&5 | ||
13086 | ac_cv_have_sa_family_t="no" | ||
13087 | |||
13088 | fi | ||
13089 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13090 | |||
13091 | fi | ||
13092 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13093 | |||
13094 | fi | ||
13095 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
13096 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
13097 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
13098 | cat >>confdefs.h <<\_ACEOF | ||
13099 | @%:@define HAVE_SA_FAMILY_T 1 | ||
13100 | _ACEOF | ||
13101 | |||
13102 | fi | ||
13103 | |||
13104 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
13105 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
13106 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
13107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13108 | else | ||
13109 | |||
13110 | cat >conftest.$ac_ext <<_ACEOF | ||
13111 | #line $LINENO "configure" | ||
13112 | #include "confdefs.h" | ||
13113 | |||
13114 | #include <sys/types.h> | ||
13115 | |||
13116 | #ifdef F77_DUMMY_MAIN | ||
13117 | # ifdef __cplusplus | ||
13118 | extern "C" | ||
13119 | # endif | ||
13120 | int F77_DUMMY_MAIN() { return 1; } | ||
13121 | #endif | ||
13122 | int | ||
13123 | main () | ||
13124 | { | ||
13125 | pid_t foo; foo = 1235; | ||
13126 | ; | ||
13127 | return 0; | ||
13128 | } | ||
13129 | _ACEOF | ||
13130 | rm -f conftest.$ac_objext | ||
13131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13132 | (eval $ac_compile) 2>&5 | ||
13133 | ac_status=$? | ||
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13135 | (exit $ac_status); } && | ||
13136 | { ac_try='test -s conftest.$ac_objext' | ||
13137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13138 | (eval $ac_try) 2>&5 | ||
13139 | ac_status=$? | ||
13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13141 | (exit $ac_status); }; }; then | ||
13142 | ac_cv_have_pid_t="yes" | ||
13143 | else | ||
13144 | echo "$as_me: failed program was:" >&5 | ||
13145 | cat conftest.$ac_ext >&5 | ||
13146 | ac_cv_have_pid_t="no" | ||
13147 | |||
13148 | fi | ||
13149 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13150 | |||
13151 | fi | ||
13152 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
13153 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
13154 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
13155 | cat >>confdefs.h <<\_ACEOF | ||
13156 | @%:@define HAVE_PID_T 1 | ||
13157 | _ACEOF | ||
13158 | |||
13159 | fi | ||
13160 | |||
13161 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
13162 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
13163 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13165 | else | ||
13166 | |||
13167 | cat >conftest.$ac_ext <<_ACEOF | ||
13168 | #line $LINENO "configure" | ||
13169 | #include "confdefs.h" | ||
13170 | |||
13171 | #include <sys/types.h> | ||
13172 | |||
13173 | #ifdef F77_DUMMY_MAIN | ||
13174 | # ifdef __cplusplus | ||
13175 | extern "C" | ||
13176 | # endif | ||
13177 | int F77_DUMMY_MAIN() { return 1; } | ||
13178 | #endif | ||
13179 | int | ||
13180 | main () | ||
13181 | { | ||
13182 | mode_t foo; foo = 1235; | ||
13183 | ; | ||
13184 | return 0; | ||
13185 | } | ||
13186 | _ACEOF | ||
13187 | rm -f conftest.$ac_objext | ||
13188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13189 | (eval $ac_compile) 2>&5 | ||
13190 | ac_status=$? | ||
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13192 | (exit $ac_status); } && | ||
13193 | { ac_try='test -s conftest.$ac_objext' | ||
13194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13195 | (eval $ac_try) 2>&5 | ||
13196 | ac_status=$? | ||
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13198 | (exit $ac_status); }; }; then | ||
13199 | ac_cv_have_mode_t="yes" | ||
13200 | else | ||
13201 | echo "$as_me: failed program was:" >&5 | ||
13202 | cat conftest.$ac_ext >&5 | ||
13203 | ac_cv_have_mode_t="no" | ||
13204 | |||
13205 | fi | ||
13206 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13207 | |||
13208 | fi | ||
13209 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
13210 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
13211 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
13212 | cat >>confdefs.h <<\_ACEOF | ||
13213 | @%:@define HAVE_MODE_T 1 | ||
13214 | _ACEOF | ||
13215 | |||
13216 | fi | ||
13217 | |||
13218 | |||
13219 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
13220 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
13221 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
13222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13223 | else | ||
13224 | |||
13225 | cat >conftest.$ac_ext <<_ACEOF | ||
13226 | #line $LINENO "configure" | ||
13227 | #include "confdefs.h" | ||
13228 | |||
13229 | #include <sys/types.h> | ||
13230 | #include <sys/socket.h> | ||
13231 | |||
13232 | #ifdef F77_DUMMY_MAIN | ||
13233 | # ifdef __cplusplus | ||
13234 | extern "C" | ||
13235 | # endif | ||
13236 | int F77_DUMMY_MAIN() { return 1; } | ||
13237 | #endif | ||
13238 | int | ||
13239 | main () | ||
13240 | { | ||
13241 | struct sockaddr_storage s; | ||
13242 | ; | ||
13243 | return 0; | ||
13244 | } | ||
13245 | _ACEOF | ||
13246 | rm -f conftest.$ac_objext | ||
13247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13248 | (eval $ac_compile) 2>&5 | ||
13249 | ac_status=$? | ||
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13251 | (exit $ac_status); } && | ||
13252 | { ac_try='test -s conftest.$ac_objext' | ||
13253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13254 | (eval $ac_try) 2>&5 | ||
13255 | ac_status=$? | ||
13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13257 | (exit $ac_status); }; }; then | ||
13258 | ac_cv_have_struct_sockaddr_storage="yes" | ||
13259 | else | ||
13260 | echo "$as_me: failed program was:" >&5 | ||
13261 | cat conftest.$ac_ext >&5 | ||
13262 | ac_cv_have_struct_sockaddr_storage="no" | ||
13263 | |||
13264 | fi | ||
13265 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13266 | |||
13267 | fi | ||
13268 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
13269 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
13270 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
13271 | cat >>confdefs.h <<\_ACEOF | ||
13272 | @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
13273 | _ACEOF | ||
13274 | |||
13275 | fi | ||
13276 | |||
13277 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
13278 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
13279 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
13280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13281 | else | ||
13282 | |||
13283 | cat >conftest.$ac_ext <<_ACEOF | ||
13284 | #line $LINENO "configure" | ||
13285 | #include "confdefs.h" | ||
13286 | |||
13287 | #include <sys/types.h> | ||
13288 | #include <netinet/in.h> | ||
13289 | |||
13290 | #ifdef F77_DUMMY_MAIN | ||
13291 | # ifdef __cplusplus | ||
13292 | extern "C" | ||
13293 | # endif | ||
13294 | int F77_DUMMY_MAIN() { return 1; } | ||
13295 | #endif | ||
13296 | int | ||
13297 | main () | ||
13298 | { | ||
13299 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | rm -f conftest.$ac_objext | ||
13305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13306 | (eval $ac_compile) 2>&5 | ||
13307 | ac_status=$? | ||
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13309 | (exit $ac_status); } && | ||
13310 | { ac_try='test -s conftest.$ac_objext' | ||
13311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13312 | (eval $ac_try) 2>&5 | ||
13313 | ac_status=$? | ||
13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13315 | (exit $ac_status); }; }; then | ||
13316 | ac_cv_have_struct_sockaddr_in6="yes" | ||
13317 | else | ||
13318 | echo "$as_me: failed program was:" >&5 | ||
13319 | cat conftest.$ac_ext >&5 | ||
13320 | ac_cv_have_struct_sockaddr_in6="no" | ||
13321 | |||
13322 | fi | ||
13323 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13324 | |||
13325 | fi | ||
13326 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
13327 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
13328 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
13329 | cat >>confdefs.h <<\_ACEOF | ||
13330 | @%:@define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
13331 | _ACEOF | ||
13332 | |||
13333 | fi | ||
13334 | |||
13335 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
13336 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
13337 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
13338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13339 | else | ||
13340 | |||
13341 | cat >conftest.$ac_ext <<_ACEOF | ||
13342 | #line $LINENO "configure" | ||
13343 | #include "confdefs.h" | ||
13344 | |||
13345 | #include <sys/types.h> | ||
13346 | #include <netinet/in.h> | ||
13347 | |||
13348 | #ifdef F77_DUMMY_MAIN | ||
13349 | # ifdef __cplusplus | ||
13350 | extern "C" | ||
13351 | # endif | ||
13352 | int F77_DUMMY_MAIN() { return 1; } | ||
13353 | #endif | ||
13354 | int | ||
13355 | main () | ||
13356 | { | ||
13357 | struct in6_addr s; s.s6_addr[0] = 0; | ||
13358 | ; | ||
13359 | return 0; | ||
13360 | } | ||
13361 | _ACEOF | ||
13362 | rm -f conftest.$ac_objext | ||
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13364 | (eval $ac_compile) 2>&5 | ||
13365 | ac_status=$? | ||
13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13367 | (exit $ac_status); } && | ||
13368 | { ac_try='test -s conftest.$ac_objext' | ||
13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13370 | (eval $ac_try) 2>&5 | ||
13371 | ac_status=$? | ||
13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13373 | (exit $ac_status); }; }; then | ||
13374 | ac_cv_have_struct_in6_addr="yes" | ||
13375 | else | ||
13376 | echo "$as_me: failed program was:" >&5 | ||
13377 | cat conftest.$ac_ext >&5 | ||
13378 | ac_cv_have_struct_in6_addr="no" | ||
13379 | |||
13380 | fi | ||
13381 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13382 | |||
13383 | fi | ||
13384 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13385 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
13386 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13387 | cat >>confdefs.h <<\_ACEOF | ||
13388 | @%:@define HAVE_STRUCT_IN6_ADDR 1 | ||
13389 | _ACEOF | ||
13390 | |||
13391 | fi | ||
13392 | |||
13393 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
13394 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
13395 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
13396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13397 | else | ||
13398 | |||
13399 | cat >conftest.$ac_ext <<_ACEOF | ||
13400 | #line $LINENO "configure" | ||
13401 | #include "confdefs.h" | ||
13402 | |||
13403 | #include <sys/types.h> | ||
13404 | #include <sys/socket.h> | ||
13405 | #include <netdb.h> | ||
13406 | |||
13407 | #ifdef F77_DUMMY_MAIN | ||
13408 | # ifdef __cplusplus | ||
13409 | extern "C" | ||
13410 | # endif | ||
13411 | int F77_DUMMY_MAIN() { return 1; } | ||
13412 | #endif | ||
13413 | int | ||
13414 | main () | ||
13415 | { | ||
13416 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13417 | ; | ||
13418 | return 0; | ||
13419 | } | ||
13420 | _ACEOF | ||
13421 | rm -f conftest.$ac_objext | ||
13422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13423 | (eval $ac_compile) 2>&5 | ||
13424 | ac_status=$? | ||
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13426 | (exit $ac_status); } && | ||
13427 | { ac_try='test -s conftest.$ac_objext' | ||
13428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13429 | (eval $ac_try) 2>&5 | ||
13430 | ac_status=$? | ||
13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13432 | (exit $ac_status); }; }; then | ||
13433 | ac_cv_have_struct_addrinfo="yes" | ||
13434 | else | ||
13435 | echo "$as_me: failed program was:" >&5 | ||
13436 | cat conftest.$ac_ext >&5 | ||
13437 | ac_cv_have_struct_addrinfo="no" | ||
13438 | |||
13439 | fi | ||
13440 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13441 | |||
13442 | fi | ||
13443 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13444 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
13445 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13446 | cat >>confdefs.h <<\_ACEOF | ||
13447 | @%:@define HAVE_STRUCT_ADDRINFO 1 | ||
13448 | _ACEOF | ||
13449 | |||
13450 | fi | ||
13451 | |||
13452 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
13453 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
13454 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13456 | else | ||
13457 | |||
13458 | cat >conftest.$ac_ext <<_ACEOF | ||
13459 | #line $LINENO "configure" | ||
13460 | #include "confdefs.h" | ||
13461 | #include <sys/time.h> | ||
13462 | #ifdef F77_DUMMY_MAIN | ||
13463 | # ifdef __cplusplus | ||
13464 | extern "C" | ||
13465 | # endif | ||
13466 | int F77_DUMMY_MAIN() { return 1; } | ||
13467 | #endif | ||
13468 | int | ||
13469 | main () | ||
13470 | { | ||
13471 | struct timeval tv; tv.tv_sec = 1; | ||
13472 | ; | ||
13473 | return 0; | ||
13474 | } | ||
13475 | _ACEOF | ||
13476 | rm -f conftest.$ac_objext | ||
13477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13478 | (eval $ac_compile) 2>&5 | ||
13479 | ac_status=$? | ||
13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13481 | (exit $ac_status); } && | ||
13482 | { ac_try='test -s conftest.$ac_objext' | ||
13483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13484 | (eval $ac_try) 2>&5 | ||
13485 | ac_status=$? | ||
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13487 | (exit $ac_status); }; }; then | ||
13488 | ac_cv_have_struct_timeval="yes" | ||
13489 | else | ||
13490 | echo "$as_me: failed program was:" >&5 | ||
13491 | cat conftest.$ac_ext >&5 | ||
13492 | ac_cv_have_struct_timeval="no" | ||
13493 | |||
13494 | fi | ||
13495 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13496 | |||
13497 | fi | ||
13498 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
13499 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
13500 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13501 | cat >>confdefs.h <<\_ACEOF | ||
13502 | @%:@define HAVE_STRUCT_TIMEVAL 1 | ||
13503 | _ACEOF | ||
13504 | |||
13505 | have_struct_timeval=1 | ||
13506 | fi | ||
13507 | |||
13508 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
13509 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
13510 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
13511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13512 | else | ||
13513 | cat >conftest.$ac_ext <<_ACEOF | ||
13514 | #line $LINENO "configure" | ||
13515 | #include "confdefs.h" | ||
13516 | $ac_includes_default | ||
13517 | #ifdef F77_DUMMY_MAIN | ||
13518 | # ifdef __cplusplus | ||
13519 | extern "C" | ||
13520 | # endif | ||
13521 | int F77_DUMMY_MAIN() { return 1; } | ||
13522 | #endif | ||
13523 | int | ||
13524 | main () | ||
13525 | { | ||
13526 | if ((struct timespec *) 0) | ||
13527 | return 0; | ||
13528 | if (sizeof (struct timespec)) | ||
13529 | return 0; | ||
13530 | ; | ||
13531 | return 0; | ||
13532 | } | ||
13533 | _ACEOF | ||
13534 | rm -f conftest.$ac_objext | ||
13535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13536 | (eval $ac_compile) 2>&5 | ||
13537 | ac_status=$? | ||
13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13539 | (exit $ac_status); } && | ||
13540 | { ac_try='test -s conftest.$ac_objext' | ||
13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13542 | (eval $ac_try) 2>&5 | ||
13543 | ac_status=$? | ||
13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13545 | (exit $ac_status); }; }; then | ||
13546 | ac_cv_type_struct_timespec=yes | ||
13547 | else | ||
13548 | echo "$as_me: failed program was:" >&5 | ||
13549 | cat conftest.$ac_ext >&5 | ||
13550 | ac_cv_type_struct_timespec=no | ||
13551 | fi | ||
13552 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13553 | fi | ||
13554 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
13555 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
13556 | if test $ac_cv_type_struct_timespec = yes; then | ||
13557 | |||
13558 | cat >>confdefs.h <<_ACEOF | ||
13559 | @%:@define HAVE_STRUCT_TIMESPEC 1 | ||
13560 | _ACEOF | ||
13561 | |||
13562 | |||
13563 | fi | ||
13564 | |||
13565 | |||
13566 | # We need int64_t or else certian parts of the compile will fail. | ||
13567 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
13568 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
13569 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13570 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13571 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13572 | echo "" | ||
13573 | exit 1; | ||
13574 | else | ||
13575 | if test "$cross_compiling" = yes; then | ||
13576 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
13577 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13578 | { (exit 1); exit 1; }; } | ||
13579 | else | ||
13580 | cat >conftest.$ac_ext <<_ACEOF | ||
13581 | #line $LINENO "configure" | ||
13582 | #include "confdefs.h" | ||
13583 | |||
13584 | #include <stdio.h> | ||
13585 | #include <string.h> | ||
13586 | #ifdef HAVE_SNPRINTF | ||
13587 | main() | ||
13588 | { | ||
13589 | char buf[50]; | ||
13590 | char expected_out[50]; | ||
13591 | int mazsize = 50 ; | ||
13592 | #if (SIZEOF_LONG_INT == 8) | ||
13593 | long int num = 0x7fffffffffffffff; | ||
13594 | #else | ||
13595 | long long num = 0x7fffffffffffffffll; | ||
13596 | #endif | ||
13597 | strcpy(expected_out, "9223372036854775807"); | ||
13598 | snprintf(buf, mazsize, "%lld", num); | ||
13599 | if(strcmp(buf, expected_out) != 0) | ||
13600 | exit(1); | ||
13601 | exit(0); | ||
13602 | } | ||
13603 | #else | ||
13604 | main() { exit(0); } | ||
13605 | #endif | ||
13606 | |||
13607 | _ACEOF | ||
13608 | rm -f conftest$ac_exeext | ||
13609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13610 | (eval $ac_link) 2>&5 | ||
13611 | ac_status=$? | ||
13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13615 | (eval $ac_try) 2>&5 | ||
13616 | ac_status=$? | ||
13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13618 | (exit $ac_status); }; }; then | ||
13619 | true | ||
13620 | else | ||
13621 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13622 | echo "$as_me: failed program was:" >&5 | ||
13623 | cat conftest.$ac_ext >&5 | ||
13624 | ( exit $ac_status ) | ||
13625 | cat >>confdefs.h <<\_ACEOF | ||
13626 | @%:@define BROKEN_SNPRINTF 1 | ||
13627 | _ACEOF | ||
13628 | |||
13629 | |||
13630 | fi | ||
13631 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13632 | fi | ||
13633 | fi | ||
13634 | |||
13635 | |||
13636 | # look for field 'ut_host' in header 'utmp.h' | ||
13637 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13638 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13639 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
13640 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
13641 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13643 | else | ||
13644 | |||
13645 | cat >conftest.$ac_ext <<_ACEOF | ||
13646 | #line $LINENO "configure" | ||
13647 | #include "confdefs.h" | ||
13648 | #include <utmp.h> | ||
13649 | |||
13650 | _ACEOF | ||
13651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13652 | egrep "ut_host" >/dev/null 2>&1; then | ||
13653 | eval "$ossh_varname=yes" | ||
13654 | else | ||
13655 | eval "$ossh_varname=no" | ||
13656 | fi | ||
13657 | rm -f conftest* | ||
13658 | |||
13659 | fi | ||
13660 | |||
13661 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13662 | if test -n "`echo $ossh_varname`"; then | ||
13663 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13664 | echo "${ECHO_T}$ossh_result" >&6 | ||
13665 | if test "x$ossh_result" = "xyes"; then | ||
13666 | cat >>confdefs.h <<\_ACEOF | ||
13667 | @%:@define HAVE_HOST_IN_UTMP 1 | ||
13668 | _ACEOF | ||
13669 | |||
13670 | fi | ||
13671 | else | ||
13672 | echo "$as_me:$LINENO: result: no" >&5 | ||
13673 | echo "${ECHO_T}no" >&6 | ||
13674 | fi | ||
13675 | |||
13676 | |||
13677 | # look for field 'ut_host' in header 'utmpx.h' | ||
13678 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13679 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13680 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
13681 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
13682 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13684 | else | ||
13685 | |||
13686 | cat >conftest.$ac_ext <<_ACEOF | ||
13687 | #line $LINENO "configure" | ||
13688 | #include "confdefs.h" | ||
13689 | #include <utmpx.h> | ||
13690 | |||
13691 | _ACEOF | ||
13692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13693 | egrep "ut_host" >/dev/null 2>&1; then | ||
13694 | eval "$ossh_varname=yes" | ||
13695 | else | ||
13696 | eval "$ossh_varname=no" | ||
13697 | fi | ||
13698 | rm -f conftest* | ||
13699 | |||
13700 | fi | ||
13701 | |||
13702 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13703 | if test -n "`echo $ossh_varname`"; then | ||
13704 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13705 | echo "${ECHO_T}$ossh_result" >&6 | ||
13706 | if test "x$ossh_result" = "xyes"; then | ||
13707 | cat >>confdefs.h <<\_ACEOF | ||
13708 | @%:@define HAVE_HOST_IN_UTMPX 1 | ||
13709 | _ACEOF | ||
13710 | |||
13711 | fi | ||
13712 | else | ||
13713 | echo "$as_me:$LINENO: result: no" >&5 | ||
13714 | echo "${ECHO_T}no" >&6 | ||
13715 | fi | ||
13716 | |||
13717 | |||
13718 | # look for field 'syslen' in header 'utmpx.h' | ||
13719 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13720 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13721 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
13722 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
13723 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13725 | else | ||
13726 | |||
13727 | cat >conftest.$ac_ext <<_ACEOF | ||
13728 | #line $LINENO "configure" | ||
13729 | #include "confdefs.h" | ||
13730 | #include <utmpx.h> | ||
13731 | |||
13732 | _ACEOF | ||
13733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13734 | egrep "syslen" >/dev/null 2>&1; then | ||
13735 | eval "$ossh_varname=yes" | ||
13736 | else | ||
13737 | eval "$ossh_varname=no" | ||
13738 | fi | ||
13739 | rm -f conftest* | ||
13740 | |||
13741 | fi | ||
13742 | |||
13743 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13744 | if test -n "`echo $ossh_varname`"; then | ||
13745 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13746 | echo "${ECHO_T}$ossh_result" >&6 | ||
13747 | if test "x$ossh_result" = "xyes"; then | ||
13748 | cat >>confdefs.h <<\_ACEOF | ||
13749 | @%:@define HAVE_SYSLEN_IN_UTMPX 1 | ||
13750 | _ACEOF | ||
13751 | |||
13752 | fi | ||
13753 | else | ||
13754 | echo "$as_me:$LINENO: result: no" >&5 | ||
13755 | echo "${ECHO_T}no" >&6 | ||
13756 | fi | ||
13757 | |||
13758 | |||
13759 | # look for field 'ut_pid' in header 'utmp.h' | ||
13760 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13761 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13762 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
13763 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
13764 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13766 | else | ||
13767 | |||
13768 | cat >conftest.$ac_ext <<_ACEOF | ||
13769 | #line $LINENO "configure" | ||
13770 | #include "confdefs.h" | ||
13771 | #include <utmp.h> | ||
13772 | |||
13773 | _ACEOF | ||
13774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13775 | egrep "ut_pid" >/dev/null 2>&1; then | ||
13776 | eval "$ossh_varname=yes" | ||
13777 | else | ||
13778 | eval "$ossh_varname=no" | ||
13779 | fi | ||
13780 | rm -f conftest* | ||
13781 | |||
13782 | fi | ||
13783 | |||
13784 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13785 | if test -n "`echo $ossh_varname`"; then | ||
13786 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13787 | echo "${ECHO_T}$ossh_result" >&6 | ||
13788 | if test "x$ossh_result" = "xyes"; then | ||
13789 | cat >>confdefs.h <<\_ACEOF | ||
13790 | @%:@define HAVE_PID_IN_UTMP 1 | ||
13791 | _ACEOF | ||
13792 | |||
13793 | fi | ||
13794 | else | ||
13795 | echo "$as_me:$LINENO: result: no" >&5 | ||
13796 | echo "${ECHO_T}no" >&6 | ||
13797 | fi | ||
13798 | |||
13799 | |||
13800 | # look for field 'ut_type' in header 'utmp.h' | ||
13801 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13802 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13803 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
13804 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13805 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13807 | else | ||
13808 | |||
13809 | cat >conftest.$ac_ext <<_ACEOF | ||
13810 | #line $LINENO "configure" | ||
13811 | #include "confdefs.h" | ||
13812 | #include <utmp.h> | ||
13813 | |||
13814 | _ACEOF | ||
13815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13816 | egrep "ut_type" >/dev/null 2>&1; then | ||
13817 | eval "$ossh_varname=yes" | ||
13818 | else | ||
13819 | eval "$ossh_varname=no" | ||
13820 | fi | ||
13821 | rm -f conftest* | ||
13822 | |||
13823 | fi | ||
13824 | |||
13825 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13826 | if test -n "`echo $ossh_varname`"; then | ||
13827 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13828 | echo "${ECHO_T}$ossh_result" >&6 | ||
13829 | if test "x$ossh_result" = "xyes"; then | ||
13830 | cat >>confdefs.h <<\_ACEOF | ||
13831 | @%:@define HAVE_TYPE_IN_UTMP 1 | ||
13832 | _ACEOF | ||
13833 | |||
13834 | fi | ||
13835 | else | ||
13836 | echo "$as_me:$LINENO: result: no" >&5 | ||
13837 | echo "${ECHO_T}no" >&6 | ||
13838 | fi | ||
13839 | |||
13840 | |||
13841 | # look for field 'ut_type' in header 'utmpx.h' | ||
13842 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13843 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13844 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
13845 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13846 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13848 | else | ||
13849 | |||
13850 | cat >conftest.$ac_ext <<_ACEOF | ||
13851 | #line $LINENO "configure" | ||
13852 | #include "confdefs.h" | ||
13853 | #include <utmpx.h> | ||
13854 | |||
13855 | _ACEOF | ||
13856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13857 | egrep "ut_type" >/dev/null 2>&1; then | ||
13858 | eval "$ossh_varname=yes" | ||
13859 | else | ||
13860 | eval "$ossh_varname=no" | ||
13861 | fi | ||
13862 | rm -f conftest* | ||
13863 | |||
13864 | fi | ||
13865 | |||
13866 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13867 | if test -n "`echo $ossh_varname`"; then | ||
13868 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13869 | echo "${ECHO_T}$ossh_result" >&6 | ||
13870 | if test "x$ossh_result" = "xyes"; then | ||
13871 | cat >>confdefs.h <<\_ACEOF | ||
13872 | @%:@define HAVE_TYPE_IN_UTMPX 1 | ||
13873 | _ACEOF | ||
13874 | |||
13875 | fi | ||
13876 | else | ||
13877 | echo "$as_me:$LINENO: result: no" >&5 | ||
13878 | echo "${ECHO_T}no" >&6 | ||
13879 | fi | ||
13880 | |||
13881 | |||
13882 | # look for field 'ut_tv' in header 'utmp.h' | ||
13883 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13884 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13885 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
13886 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
13887 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13889 | else | ||
13890 | |||
13891 | cat >conftest.$ac_ext <<_ACEOF | ||
13892 | #line $LINENO "configure" | ||
13893 | #include "confdefs.h" | ||
13894 | #include <utmp.h> | ||
13895 | |||
13896 | _ACEOF | ||
13897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13898 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13899 | eval "$ossh_varname=yes" | ||
13900 | else | ||
13901 | eval "$ossh_varname=no" | ||
13902 | fi | ||
13903 | rm -f conftest* | ||
13904 | |||
13905 | fi | ||
13906 | |||
13907 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13908 | if test -n "`echo $ossh_varname`"; then | ||
13909 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13910 | echo "${ECHO_T}$ossh_result" >&6 | ||
13911 | if test "x$ossh_result" = "xyes"; then | ||
13912 | cat >>confdefs.h <<\_ACEOF | ||
13913 | @%:@define HAVE_TV_IN_UTMP 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | else | ||
13918 | echo "$as_me:$LINENO: result: no" >&5 | ||
13919 | echo "${ECHO_T}no" >&6 | ||
13920 | fi | ||
13921 | |||
13922 | |||
13923 | # look for field 'ut_id' in header 'utmp.h' | ||
13924 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13925 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13926 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
13927 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13928 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13930 | else | ||
13931 | |||
13932 | cat >conftest.$ac_ext <<_ACEOF | ||
13933 | #line $LINENO "configure" | ||
13934 | #include "confdefs.h" | ||
13935 | #include <utmp.h> | ||
13936 | |||
13937 | _ACEOF | ||
13938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13939 | egrep "ut_id" >/dev/null 2>&1; then | ||
13940 | eval "$ossh_varname=yes" | ||
13941 | else | ||
13942 | eval "$ossh_varname=no" | ||
13943 | fi | ||
13944 | rm -f conftest* | ||
13945 | |||
13946 | fi | ||
13947 | |||
13948 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13949 | if test -n "`echo $ossh_varname`"; then | ||
13950 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13951 | echo "${ECHO_T}$ossh_result" >&6 | ||
13952 | if test "x$ossh_result" = "xyes"; then | ||
13953 | cat >>confdefs.h <<\_ACEOF | ||
13954 | @%:@define HAVE_ID_IN_UTMP 1 | ||
13955 | _ACEOF | ||
13956 | |||
13957 | fi | ||
13958 | else | ||
13959 | echo "$as_me:$LINENO: result: no" >&5 | ||
13960 | echo "${ECHO_T}no" >&6 | ||
13961 | fi | ||
13962 | |||
13963 | |||
13964 | # look for field 'ut_id' in header 'utmpx.h' | ||
13965 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13966 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13967 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
13968 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13969 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13971 | else | ||
13972 | |||
13973 | cat >conftest.$ac_ext <<_ACEOF | ||
13974 | #line $LINENO "configure" | ||
13975 | #include "confdefs.h" | ||
13976 | #include <utmpx.h> | ||
13977 | |||
13978 | _ACEOF | ||
13979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13980 | egrep "ut_id" >/dev/null 2>&1; then | ||
13981 | eval "$ossh_varname=yes" | ||
13982 | else | ||
13983 | eval "$ossh_varname=no" | ||
13984 | fi | ||
13985 | rm -f conftest* | ||
13986 | |||
13987 | fi | ||
13988 | |||
13989 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13990 | if test -n "`echo $ossh_varname`"; then | ||
13991 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13992 | echo "${ECHO_T}$ossh_result" >&6 | ||
13993 | if test "x$ossh_result" = "xyes"; then | ||
13994 | cat >>confdefs.h <<\_ACEOF | ||
13995 | @%:@define HAVE_ID_IN_UTMPX 1 | ||
13996 | _ACEOF | ||
13997 | |||
13998 | fi | ||
13999 | else | ||
14000 | echo "$as_me:$LINENO: result: no" >&5 | ||
14001 | echo "${ECHO_T}no" >&6 | ||
14002 | fi | ||
14003 | |||
14004 | |||
14005 | # look for field 'ut_addr' in header 'utmp.h' | ||
14006 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14007 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
14008 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
14009 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
14010 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14012 | else | ||
14013 | |||
14014 | cat >conftest.$ac_ext <<_ACEOF | ||
14015 | #line $LINENO "configure" | ||
14016 | #include "confdefs.h" | ||
14017 | #include <utmp.h> | ||
14018 | |||
14019 | _ACEOF | ||
14020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14021 | egrep "ut_addr" >/dev/null 2>&1; then | ||
14022 | eval "$ossh_varname=yes" | ||
14023 | else | ||
14024 | eval "$ossh_varname=no" | ||
14025 | fi | ||
14026 | rm -f conftest* | ||
14027 | |||
14028 | fi | ||
14029 | |||
14030 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14031 | if test -n "`echo $ossh_varname`"; then | ||
14032 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14033 | echo "${ECHO_T}$ossh_result" >&6 | ||
14034 | if test "x$ossh_result" = "xyes"; then | ||
14035 | cat >>confdefs.h <<\_ACEOF | ||
14036 | @%:@define HAVE_ADDR_IN_UTMP 1 | ||
14037 | _ACEOF | ||
14038 | |||
14039 | fi | ||
14040 | else | ||
14041 | echo "$as_me:$LINENO: result: no" >&5 | ||
14042 | echo "${ECHO_T}no" >&6 | ||
14043 | fi | ||
14044 | |||
14045 | |||
14046 | # look for field 'ut_addr' in header 'utmpx.h' | ||
14047 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14048 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
14049 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
14050 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
14051 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14053 | else | ||
14054 | |||
14055 | cat >conftest.$ac_ext <<_ACEOF | ||
14056 | #line $LINENO "configure" | ||
14057 | #include "confdefs.h" | ||
14058 | #include <utmpx.h> | ||
14059 | |||
14060 | _ACEOF | ||
14061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14062 | egrep "ut_addr" >/dev/null 2>&1; then | ||
14063 | eval "$ossh_varname=yes" | ||
14064 | else | ||
14065 | eval "$ossh_varname=no" | ||
14066 | fi | ||
14067 | rm -f conftest* | ||
14068 | |||
14069 | fi | ||
14070 | |||
14071 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14072 | if test -n "`echo $ossh_varname`"; then | ||
14073 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14074 | echo "${ECHO_T}$ossh_result" >&6 | ||
14075 | if test "x$ossh_result" = "xyes"; then | ||
14076 | cat >>confdefs.h <<\_ACEOF | ||
14077 | @%:@define HAVE_ADDR_IN_UTMPX 1 | ||
14078 | _ACEOF | ||
14079 | |||
14080 | fi | ||
14081 | else | ||
14082 | echo "$as_me:$LINENO: result: no" >&5 | ||
14083 | echo "${ECHO_T}no" >&6 | ||
14084 | fi | ||
14085 | |||
14086 | |||
14087 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
14088 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14089 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14090 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
14091 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
14092 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14094 | else | ||
14095 | |||
14096 | cat >conftest.$ac_ext <<_ACEOF | ||
14097 | #line $LINENO "configure" | ||
14098 | #include "confdefs.h" | ||
14099 | #include <utmp.h> | ||
14100 | |||
14101 | _ACEOF | ||
14102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14103 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
14104 | eval "$ossh_varname=yes" | ||
14105 | else | ||
14106 | eval "$ossh_varname=no" | ||
14107 | fi | ||
14108 | rm -f conftest* | ||
14109 | |||
14110 | fi | ||
14111 | |||
14112 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14113 | if test -n "`echo $ossh_varname`"; then | ||
14114 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14115 | echo "${ECHO_T}$ossh_result" >&6 | ||
14116 | if test "x$ossh_result" = "xyes"; then | ||
14117 | cat >>confdefs.h <<\_ACEOF | ||
14118 | @%:@define HAVE_ADDR_V6_IN_UTMP 1 | ||
14119 | _ACEOF | ||
14120 | |||
14121 | fi | ||
14122 | else | ||
14123 | echo "$as_me:$LINENO: result: no" >&5 | ||
14124 | echo "${ECHO_T}no" >&6 | ||
14125 | fi | ||
14126 | |||
14127 | |||
14128 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
14129 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14130 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14131 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
14132 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
14133 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14135 | else | ||
14136 | |||
14137 | cat >conftest.$ac_ext <<_ACEOF | ||
14138 | #line $LINENO "configure" | ||
14139 | #include "confdefs.h" | ||
14140 | #include <utmpx.h> | ||
14141 | |||
14142 | _ACEOF | ||
14143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14144 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
14145 | eval "$ossh_varname=yes" | ||
14146 | else | ||
14147 | eval "$ossh_varname=no" | ||
14148 | fi | ||
14149 | rm -f conftest* | ||
14150 | |||
14151 | fi | ||
14152 | |||
14153 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14154 | if test -n "`echo $ossh_varname`"; then | ||
14155 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14156 | echo "${ECHO_T}$ossh_result" >&6 | ||
14157 | if test "x$ossh_result" = "xyes"; then | ||
14158 | cat >>confdefs.h <<\_ACEOF | ||
14159 | @%:@define HAVE_ADDR_V6_IN_UTMPX 1 | ||
14160 | _ACEOF | ||
14161 | |||
14162 | fi | ||
14163 | else | ||
14164 | echo "$as_me:$LINENO: result: no" >&5 | ||
14165 | echo "${ECHO_T}no" >&6 | ||
14166 | fi | ||
14167 | |||
14168 | |||
14169 | # look for field 'ut_exit' in header 'utmp.h' | ||
14170 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14171 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
14172 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
14173 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
14174 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14176 | else | ||
14177 | |||
14178 | cat >conftest.$ac_ext <<_ACEOF | ||
14179 | #line $LINENO "configure" | ||
14180 | #include "confdefs.h" | ||
14181 | #include <utmp.h> | ||
14182 | |||
14183 | _ACEOF | ||
14184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14185 | egrep "ut_exit" >/dev/null 2>&1; then | ||
14186 | eval "$ossh_varname=yes" | ||
14187 | else | ||
14188 | eval "$ossh_varname=no" | ||
14189 | fi | ||
14190 | rm -f conftest* | ||
14191 | |||
14192 | fi | ||
14193 | |||
14194 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14195 | if test -n "`echo $ossh_varname`"; then | ||
14196 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14197 | echo "${ECHO_T}$ossh_result" >&6 | ||
14198 | if test "x$ossh_result" = "xyes"; then | ||
14199 | cat >>confdefs.h <<\_ACEOF | ||
14200 | @%:@define HAVE_EXIT_IN_UTMP 1 | ||
14201 | _ACEOF | ||
14202 | |||
14203 | fi | ||
14204 | else | ||
14205 | echo "$as_me:$LINENO: result: no" >&5 | ||
14206 | echo "${ECHO_T}no" >&6 | ||
14207 | fi | ||
14208 | |||
14209 | |||
14210 | # look for field 'ut_time' in header 'utmp.h' | ||
14211 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14212 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14213 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
14214 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
14215 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14217 | else | ||
14218 | |||
14219 | cat >conftest.$ac_ext <<_ACEOF | ||
14220 | #line $LINENO "configure" | ||
14221 | #include "confdefs.h" | ||
14222 | #include <utmp.h> | ||
14223 | |||
14224 | _ACEOF | ||
14225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14226 | egrep "ut_time" >/dev/null 2>&1; then | ||
14227 | eval "$ossh_varname=yes" | ||
14228 | else | ||
14229 | eval "$ossh_varname=no" | ||
14230 | fi | ||
14231 | rm -f conftest* | ||
14232 | |||
14233 | fi | ||
14234 | |||
14235 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14236 | if test -n "`echo $ossh_varname`"; then | ||
14237 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14238 | echo "${ECHO_T}$ossh_result" >&6 | ||
14239 | if test "x$ossh_result" = "xyes"; then | ||
14240 | cat >>confdefs.h <<\_ACEOF | ||
14241 | @%:@define HAVE_TIME_IN_UTMP 1 | ||
14242 | _ACEOF | ||
14243 | |||
14244 | fi | ||
14245 | else | ||
14246 | echo "$as_me:$LINENO: result: no" >&5 | ||
14247 | echo "${ECHO_T}no" >&6 | ||
14248 | fi | ||
14249 | |||
14250 | |||
14251 | # look for field 'ut_time' in header 'utmpx.h' | ||
14252 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14253 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14254 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
14255 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
14256 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14258 | else | ||
14259 | |||
14260 | cat >conftest.$ac_ext <<_ACEOF | ||
14261 | #line $LINENO "configure" | ||
14262 | #include "confdefs.h" | ||
14263 | #include <utmpx.h> | ||
14264 | |||
14265 | _ACEOF | ||
14266 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14267 | egrep "ut_time" >/dev/null 2>&1; then | ||
14268 | eval "$ossh_varname=yes" | ||
14269 | else | ||
14270 | eval "$ossh_varname=no" | ||
14271 | fi | ||
14272 | rm -f conftest* | ||
14273 | |||
14274 | fi | ||
14275 | |||
14276 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14277 | if test -n "`echo $ossh_varname`"; then | ||
14278 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14279 | echo "${ECHO_T}$ossh_result" >&6 | ||
14280 | if test "x$ossh_result" = "xyes"; then | ||
14281 | cat >>confdefs.h <<\_ACEOF | ||
14282 | @%:@define HAVE_TIME_IN_UTMPX 1 | ||
14283 | _ACEOF | ||
14284 | |||
14285 | fi | ||
14286 | else | ||
14287 | echo "$as_me:$LINENO: result: no" >&5 | ||
14288 | echo "${ECHO_T}no" >&6 | ||
14289 | fi | ||
14290 | |||
14291 | |||
14292 | # look for field 'ut_tv' in header 'utmpx.h' | ||
14293 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14294 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
14295 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
14296 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
14297 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14299 | else | ||
14300 | |||
14301 | cat >conftest.$ac_ext <<_ACEOF | ||
14302 | #line $LINENO "configure" | ||
14303 | #include "confdefs.h" | ||
14304 | #include <utmpx.h> | ||
14305 | |||
14306 | _ACEOF | ||
14307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14308 | egrep "ut_tv" >/dev/null 2>&1; then | ||
14309 | eval "$ossh_varname=yes" | ||
14310 | else | ||
14311 | eval "$ossh_varname=no" | ||
14312 | fi | ||
14313 | rm -f conftest* | ||
14314 | |||
14315 | fi | ||
14316 | |||
14317 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14318 | if test -n "`echo $ossh_varname`"; then | ||
14319 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14320 | echo "${ECHO_T}$ossh_result" >&6 | ||
14321 | if test "x$ossh_result" = "xyes"; then | ||
14322 | cat >>confdefs.h <<\_ACEOF | ||
14323 | @%:@define HAVE_TV_IN_UTMPX 1 | ||
14324 | _ACEOF | ||
14325 | |||
14326 | fi | ||
14327 | else | ||
14328 | echo "$as_me:$LINENO: result: no" >&5 | ||
14329 | echo "${ECHO_T}no" >&6 | ||
14330 | fi | ||
14331 | |||
14332 | |||
14333 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
14334 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
14335 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14337 | else | ||
14338 | cat >conftest.$ac_ext <<_ACEOF | ||
14339 | #line $LINENO "configure" | ||
14340 | #include "confdefs.h" | ||
14341 | $ac_includes_default | ||
14342 | #ifdef F77_DUMMY_MAIN | ||
14343 | # ifdef __cplusplus | ||
14344 | extern "C" | ||
14345 | # endif | ||
14346 | int F77_DUMMY_MAIN() { return 1; } | ||
14347 | #endif | ||
14348 | int | ||
14349 | main () | ||
14350 | { | ||
14351 | static struct stat ac_aggr; | ||
14352 | if (ac_aggr.st_blksize) | ||
14353 | return 0; | ||
14354 | ; | ||
14355 | return 0; | ||
14356 | } | ||
14357 | _ACEOF | ||
14358 | rm -f conftest.$ac_objext | ||
14359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14360 | (eval $ac_compile) 2>&5 | ||
14361 | ac_status=$? | ||
14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14363 | (exit $ac_status); } && | ||
14364 | { ac_try='test -s conftest.$ac_objext' | ||
14365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14366 | (eval $ac_try) 2>&5 | ||
14367 | ac_status=$? | ||
14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14369 | (exit $ac_status); }; }; then | ||
14370 | ac_cv_member_struct_stat_st_blksize=yes | ||
14371 | else | ||
14372 | echo "$as_me: failed program was:" >&5 | ||
14373 | cat conftest.$ac_ext >&5 | ||
14374 | ac_cv_member_struct_stat_st_blksize=no | ||
14375 | fi | ||
14376 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14377 | fi | ||
14378 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
14379 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
14380 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
14381 | |||
14382 | cat >>confdefs.h <<_ACEOF | ||
14383 | @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
14384 | _ACEOF | ||
14385 | |||
14386 | |||
14387 | fi | ||
14388 | |||
14389 | |||
14390 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
14391 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14392 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14394 | else | ||
14395 | |||
14396 | cat >conftest.$ac_ext <<_ACEOF | ||
14397 | #line $LINENO "configure" | ||
14398 | #include "confdefs.h" | ||
14399 | |||
14400 | #include <sys/types.h> | ||
14401 | #include <sys/socket.h> | ||
14402 | |||
14403 | #ifdef F77_DUMMY_MAIN | ||
14404 | # ifdef __cplusplus | ||
14405 | extern "C" | ||
14406 | # endif | ||
14407 | int F77_DUMMY_MAIN() { return 1; } | ||
14408 | #endif | ||
14409 | int | ||
14410 | main () | ||
14411 | { | ||
14412 | struct sockaddr_storage s; s.ss_family = 1; | ||
14413 | ; | ||
14414 | return 0; | ||
14415 | } | ||
14416 | _ACEOF | ||
14417 | rm -f conftest.$ac_objext | ||
14418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14419 | (eval $ac_compile) 2>&5 | ||
14420 | ac_status=$? | ||
14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14422 | (exit $ac_status); } && | ||
14423 | { ac_try='test -s conftest.$ac_objext' | ||
14424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14425 | (eval $ac_try) 2>&5 | ||
14426 | ac_status=$? | ||
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14428 | (exit $ac_status); }; }; then | ||
14429 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
14430 | else | ||
14431 | echo "$as_me: failed program was:" >&5 | ||
14432 | cat conftest.$ac_ext >&5 | ||
14433 | ac_cv_have_ss_family_in_struct_ss="no" | ||
14434 | fi | ||
14435 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14436 | |||
14437 | fi | ||
14438 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
14439 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
14440 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
14441 | cat >>confdefs.h <<\_ACEOF | ||
14442 | @%:@define HAVE_SS_FAMILY_IN_SS 1 | ||
14443 | _ACEOF | ||
14444 | |||
14445 | fi | ||
14446 | |||
14447 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
14448 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14449 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14451 | else | ||
14452 | |||
14453 | cat >conftest.$ac_ext <<_ACEOF | ||
14454 | #line $LINENO "configure" | ||
14455 | #include "confdefs.h" | ||
14456 | |||
14457 | #include <sys/types.h> | ||
14458 | #include <sys/socket.h> | ||
14459 | |||
14460 | #ifdef F77_DUMMY_MAIN | ||
14461 | # ifdef __cplusplus | ||
14462 | extern "C" | ||
14463 | # endif | ||
14464 | int F77_DUMMY_MAIN() { return 1; } | ||
14465 | #endif | ||
14466 | int | ||
14467 | main () | ||
14468 | { | ||
14469 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14470 | ; | ||
14471 | return 0; | ||
14472 | } | ||
14473 | _ACEOF | ||
14474 | rm -f conftest.$ac_objext | ||
14475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14476 | (eval $ac_compile) 2>&5 | ||
14477 | ac_status=$? | ||
14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14479 | (exit $ac_status); } && | ||
14480 | { ac_try='test -s conftest.$ac_objext' | ||
14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14482 | (eval $ac_try) 2>&5 | ||
14483 | ac_status=$? | ||
14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14485 | (exit $ac_status); }; }; then | ||
14486 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14487 | else | ||
14488 | echo "$as_me: failed program was:" >&5 | ||
14489 | cat conftest.$ac_ext >&5 | ||
14490 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14491 | |||
14492 | fi | ||
14493 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14494 | |||
14495 | fi | ||
14496 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14497 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
14498 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14499 | cat >>confdefs.h <<\_ACEOF | ||
14500 | @%:@define HAVE___SS_FAMILY_IN_SS 1 | ||
14501 | _ACEOF | ||
14502 | |||
14503 | fi | ||
14504 | |||
14505 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
14506 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
14507 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14509 | else | ||
14510 | |||
14511 | cat >conftest.$ac_ext <<_ACEOF | ||
14512 | #line $LINENO "configure" | ||
14513 | #include "confdefs.h" | ||
14514 | |||
14515 | #include <pwd.h> | ||
14516 | |||
14517 | #ifdef F77_DUMMY_MAIN | ||
14518 | # ifdef __cplusplus | ||
14519 | extern "C" | ||
14520 | # endif | ||
14521 | int F77_DUMMY_MAIN() { return 1; } | ||
14522 | #endif | ||
14523 | int | ||
14524 | main () | ||
14525 | { | ||
14526 | struct passwd p; p.pw_class = 0; | ||
14527 | ; | ||
14528 | return 0; | ||
14529 | } | ||
14530 | _ACEOF | ||
14531 | rm -f conftest.$ac_objext | ||
14532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14533 | (eval $ac_compile) 2>&5 | ||
14534 | ac_status=$? | ||
14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14536 | (exit $ac_status); } && | ||
14537 | { ac_try='test -s conftest.$ac_objext' | ||
14538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14539 | (eval $ac_try) 2>&5 | ||
14540 | ac_status=$? | ||
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14542 | (exit $ac_status); }; }; then | ||
14543 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14544 | else | ||
14545 | echo "$as_me: failed program was:" >&5 | ||
14546 | cat conftest.$ac_ext >&5 | ||
14547 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14548 | |||
14549 | fi | ||
14550 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14551 | |||
14552 | fi | ||
14553 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14554 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
14555 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14556 | cat >>confdefs.h <<\_ACEOF | ||
14557 | @%:@define HAVE_PW_CLASS_IN_PASSWD 1 | ||
14558 | _ACEOF | ||
14559 | |||
14560 | fi | ||
14561 | |||
14562 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
14563 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
14564 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14566 | else | ||
14567 | |||
14568 | cat >conftest.$ac_ext <<_ACEOF | ||
14569 | #line $LINENO "configure" | ||
14570 | #include "confdefs.h" | ||
14571 | |||
14572 | #include <pwd.h> | ||
14573 | |||
14574 | #ifdef F77_DUMMY_MAIN | ||
14575 | # ifdef __cplusplus | ||
14576 | extern "C" | ||
14577 | # endif | ||
14578 | int F77_DUMMY_MAIN() { return 1; } | ||
14579 | #endif | ||
14580 | int | ||
14581 | main () | ||
14582 | { | ||
14583 | struct passwd p; p.pw_expire = 0; | ||
14584 | ; | ||
14585 | return 0; | ||
14586 | } | ||
14587 | _ACEOF | ||
14588 | rm -f conftest.$ac_objext | ||
14589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14590 | (eval $ac_compile) 2>&5 | ||
14591 | ac_status=$? | ||
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14593 | (exit $ac_status); } && | ||
14594 | { ac_try='test -s conftest.$ac_objext' | ||
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14596 | (eval $ac_try) 2>&5 | ||
14597 | ac_status=$? | ||
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14599 | (exit $ac_status); }; }; then | ||
14600 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14601 | else | ||
14602 | echo "$as_me: failed program was:" >&5 | ||
14603 | cat conftest.$ac_ext >&5 | ||
14604 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14605 | |||
14606 | fi | ||
14607 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14608 | |||
14609 | fi | ||
14610 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14611 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
14612 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14613 | cat >>confdefs.h <<\_ACEOF | ||
14614 | @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
14615 | _ACEOF | ||
14616 | |||
14617 | fi | ||
14618 | |||
14619 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
14620 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
14621 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
14622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14623 | else | ||
14624 | |||
14625 | cat >conftest.$ac_ext <<_ACEOF | ||
14626 | #line $LINENO "configure" | ||
14627 | #include "confdefs.h" | ||
14628 | |||
14629 | #include <pwd.h> | ||
14630 | |||
14631 | #ifdef F77_DUMMY_MAIN | ||
14632 | # ifdef __cplusplus | ||
14633 | extern "C" | ||
14634 | # endif | ||
14635 | int F77_DUMMY_MAIN() { return 1; } | ||
14636 | #endif | ||
14637 | int | ||
14638 | main () | ||
14639 | { | ||
14640 | struct passwd p; p.pw_change = 0; | ||
14641 | ; | ||
14642 | return 0; | ||
14643 | } | ||
14644 | _ACEOF | ||
14645 | rm -f conftest.$ac_objext | ||
14646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14647 | (eval $ac_compile) 2>&5 | ||
14648 | ac_status=$? | ||
14649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14650 | (exit $ac_status); } && | ||
14651 | { ac_try='test -s conftest.$ac_objext' | ||
14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14653 | (eval $ac_try) 2>&5 | ||
14654 | ac_status=$? | ||
14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14656 | (exit $ac_status); }; }; then | ||
14657 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14658 | else | ||
14659 | echo "$as_me: failed program was:" >&5 | ||
14660 | cat conftest.$ac_ext >&5 | ||
14661 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14662 | |||
14663 | fi | ||
14664 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14665 | |||
14666 | fi | ||
14667 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14668 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
14669 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14670 | cat >>confdefs.h <<\_ACEOF | ||
14671 | @%:@define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
14672 | _ACEOF | ||
14673 | |||
14674 | fi | ||
14675 | |||
14676 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
14677 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
14678 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
14679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14680 | else | ||
14681 | |||
14682 | if test "$cross_compiling" = yes; then | ||
14683 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14684 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14685 | { (exit 1); exit 1; }; } | ||
14686 | else | ||
14687 | cat >conftest.$ac_ext <<_ACEOF | ||
14688 | #line $LINENO "configure" | ||
14689 | #include "confdefs.h" | ||
14690 | |||
14691 | #include <sys/types.h> | ||
14692 | #include <sys/socket.h> | ||
14693 | #include <sys/uio.h> | ||
14694 | int main() { | ||
14695 | #ifdef msg_accrights | ||
14696 | exit(1); | ||
14697 | #endif | ||
14698 | struct msghdr m; | ||
14699 | m.msg_accrights = 0; | ||
14700 | exit(0); | ||
14701 | } | ||
14702 | |||
14703 | _ACEOF | ||
14704 | rm -f conftest$ac_exeext | ||
14705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14706 | (eval $ac_link) 2>&5 | ||
14707 | ac_status=$? | ||
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14709 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14711 | (eval $ac_try) 2>&5 | ||
14712 | ac_status=$? | ||
14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14714 | (exit $ac_status); }; }; then | ||
14715 | ac_cv_have_accrights_in_msghdr="yes" | ||
14716 | else | ||
14717 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14718 | echo "$as_me: failed program was:" >&5 | ||
14719 | cat conftest.$ac_ext >&5 | ||
14720 | ( exit $ac_status ) | ||
14721 | ac_cv_have_accrights_in_msghdr="no" | ||
14722 | |||
14723 | fi | ||
14724 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14725 | fi | ||
14726 | |||
14727 | fi | ||
14728 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14729 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
14730 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14731 | cat >>confdefs.h <<\_ACEOF | ||
14732 | @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
14733 | _ACEOF | ||
14734 | |||
14735 | fi | ||
14736 | |||
14737 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
14738 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
14739 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
14740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14741 | else | ||
14742 | |||
14743 | if test "$cross_compiling" = yes; then | ||
14744 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14745 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14746 | { (exit 1); exit 1; }; } | ||
14747 | else | ||
14748 | cat >conftest.$ac_ext <<_ACEOF | ||
14749 | #line $LINENO "configure" | ||
14750 | #include "confdefs.h" | ||
14751 | |||
14752 | #include <sys/types.h> | ||
14753 | #include <sys/socket.h> | ||
14754 | #include <sys/uio.h> | ||
14755 | int main() { | ||
14756 | #ifdef msg_control | ||
14757 | exit(1); | ||
14758 | #endif | ||
14759 | struct msghdr m; | ||
14760 | m.msg_control = 0; | ||
14761 | exit(0); | ||
14762 | } | ||
14763 | |||
14764 | _ACEOF | ||
14765 | rm -f conftest$ac_exeext | ||
14766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14767 | (eval $ac_link) 2>&5 | ||
14768 | ac_status=$? | ||
14769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14770 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14772 | (eval $ac_try) 2>&5 | ||
14773 | ac_status=$? | ||
14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14775 | (exit $ac_status); }; }; then | ||
14776 | ac_cv_have_control_in_msghdr="yes" | ||
14777 | else | ||
14778 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14779 | echo "$as_me: failed program was:" >&5 | ||
14780 | cat conftest.$ac_ext >&5 | ||
14781 | ( exit $ac_status ) | ||
14782 | ac_cv_have_control_in_msghdr="no" | ||
14783 | |||
14784 | fi | ||
14785 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14786 | fi | ||
14787 | |||
14788 | fi | ||
14789 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14790 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14791 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14792 | cat >>confdefs.h <<\_ACEOF | ||
14793 | @%:@define HAVE_CONTROL_IN_MSGHDR 1 | ||
14794 | _ACEOF | ||
14795 | |||
14796 | fi | ||
14797 | |||
14798 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
14799 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14800 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14802 | else | ||
14803 | |||
14804 | cat >conftest.$ac_ext <<_ACEOF | ||
14805 | #line $LINENO "configure" | ||
14806 | #include "confdefs.h" | ||
14807 | |||
14808 | #ifdef F77_DUMMY_MAIN | ||
14809 | # ifdef __cplusplus | ||
14810 | extern "C" | ||
14811 | # endif | ||
14812 | int F77_DUMMY_MAIN() { return 1; } | ||
14813 | #endif | ||
14814 | int | ||
14815 | main () | ||
14816 | { | ||
14817 | extern char *__progname; printf("%s", __progname); | ||
14818 | ; | ||
14819 | return 0; | ||
14820 | } | ||
14821 | _ACEOF | ||
14822 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14824 | (eval $ac_link) 2>&5 | ||
14825 | ac_status=$? | ||
14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14827 | (exit $ac_status); } && | ||
14828 | { ac_try='test -s conftest$ac_exeext' | ||
14829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14830 | (eval $ac_try) 2>&5 | ||
14831 | ac_status=$? | ||
14832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14833 | (exit $ac_status); }; }; then | ||
14834 | ac_cv_libc_defines___progname="yes" | ||
14835 | else | ||
14836 | echo "$as_me: failed program was:" >&5 | ||
14837 | cat conftest.$ac_ext >&5 | ||
14838 | ac_cv_libc_defines___progname="no" | ||
14839 | |||
14840 | fi | ||
14841 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14842 | |||
14843 | fi | ||
14844 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
14845 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14846 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14847 | cat >>confdefs.h <<\_ACEOF | ||
14848 | @%:@define HAVE___PROGNAME 1 | ||
14849 | _ACEOF | ||
14850 | |||
14851 | fi | ||
14852 | |||
14853 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
14854 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14855 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14857 | else | ||
14858 | |||
14859 | cat >conftest.$ac_ext <<_ACEOF | ||
14860 | #line $LINENO "configure" | ||
14861 | #include "confdefs.h" | ||
14862 | |||
14863 | #include <stdio.h> | ||
14864 | |||
14865 | #ifdef F77_DUMMY_MAIN | ||
14866 | # ifdef __cplusplus | ||
14867 | extern "C" | ||
14868 | # endif | ||
14869 | int F77_DUMMY_MAIN() { return 1; } | ||
14870 | #endif | ||
14871 | int | ||
14872 | main () | ||
14873 | { | ||
14874 | printf("%s", __FUNCTION__); | ||
14875 | ; | ||
14876 | return 0; | ||
14877 | } | ||
14878 | _ACEOF | ||
14879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14881 | (eval $ac_link) 2>&5 | ||
14882 | ac_status=$? | ||
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14884 | (exit $ac_status); } && | ||
14885 | { ac_try='test -s conftest$ac_exeext' | ||
14886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14887 | (eval $ac_try) 2>&5 | ||
14888 | ac_status=$? | ||
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14890 | (exit $ac_status); }; }; then | ||
14891 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14892 | else | ||
14893 | echo "$as_me: failed program was:" >&5 | ||
14894 | cat conftest.$ac_ext >&5 | ||
14895 | ac_cv_cc_implements___FUNCTION__="no" | ||
14896 | |||
14897 | fi | ||
14898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14899 | |||
14900 | fi | ||
14901 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14902 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14903 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14904 | cat >>confdefs.h <<\_ACEOF | ||
14905 | @%:@define HAVE___FUNCTION__ 1 | ||
14906 | _ACEOF | ||
14907 | |||
14908 | fi | ||
14909 | |||
14910 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
14911 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14912 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14914 | else | ||
14915 | |||
14916 | cat >conftest.$ac_ext <<_ACEOF | ||
14917 | #line $LINENO "configure" | ||
14918 | #include "confdefs.h" | ||
14919 | |||
14920 | #include <stdio.h> | ||
14921 | |||
14922 | #ifdef F77_DUMMY_MAIN | ||
14923 | # ifdef __cplusplus | ||
14924 | extern "C" | ||
14925 | # endif | ||
14926 | int F77_DUMMY_MAIN() { return 1; } | ||
14927 | #endif | ||
14928 | int | ||
14929 | main () | ||
14930 | { | ||
14931 | printf("%s", __func__); | ||
14932 | ; | ||
14933 | return 0; | ||
14934 | } | ||
14935 | _ACEOF | ||
14936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14938 | (eval $ac_link) 2>&5 | ||
14939 | ac_status=$? | ||
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14941 | (exit $ac_status); } && | ||
14942 | { ac_try='test -s conftest$ac_exeext' | ||
14943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14944 | (eval $ac_try) 2>&5 | ||
14945 | ac_status=$? | ||
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14947 | (exit $ac_status); }; }; then | ||
14948 | ac_cv_cc_implements___func__="yes" | ||
14949 | else | ||
14950 | echo "$as_me: failed program was:" >&5 | ||
14951 | cat conftest.$ac_ext >&5 | ||
14952 | ac_cv_cc_implements___func__="no" | ||
14953 | |||
14954 | fi | ||
14955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14956 | |||
14957 | fi | ||
14958 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
14959 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14960 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14961 | cat >>confdefs.h <<\_ACEOF | ||
14962 | @%:@define HAVE___func__ 1 | ||
14963 | _ACEOF | ||
14964 | |||
14965 | fi | ||
14966 | |||
14967 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
14968 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14969 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14971 | else | ||
14972 | |||
14973 | cat >conftest.$ac_ext <<_ACEOF | ||
14974 | #line $LINENO "configure" | ||
14975 | #include "confdefs.h" | ||
14976 | |||
14977 | #include <getopt.h> | ||
14978 | |||
14979 | #ifdef F77_DUMMY_MAIN | ||
14980 | # ifdef __cplusplus | ||
14981 | extern "C" | ||
14982 | # endif | ||
14983 | int F77_DUMMY_MAIN() { return 1; } | ||
14984 | #endif | ||
14985 | int | ||
14986 | main () | ||
14987 | { | ||
14988 | extern int optreset; optreset = 0; | ||
14989 | ; | ||
14990 | return 0; | ||
14991 | } | ||
14992 | _ACEOF | ||
14993 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14995 | (eval $ac_link) 2>&5 | ||
14996 | ac_status=$? | ||
14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14998 | (exit $ac_status); } && | ||
14999 | { ac_try='test -s conftest$ac_exeext' | ||
15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15001 | (eval $ac_try) 2>&5 | ||
15002 | ac_status=$? | ||
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15004 | (exit $ac_status); }; }; then | ||
15005 | ac_cv_have_getopt_optreset="yes" | ||
15006 | else | ||
15007 | echo "$as_me: failed program was:" >&5 | ||
15008 | cat conftest.$ac_ext >&5 | ||
15009 | ac_cv_have_getopt_optreset="no" | ||
15010 | |||
15011 | fi | ||
15012 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15013 | |||
15014 | fi | ||
15015 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
15016 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
15017 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
15018 | cat >>confdefs.h <<\_ACEOF | ||
15019 | @%:@define HAVE_GETOPT_OPTRESET 1 | ||
15020 | _ACEOF | ||
15021 | |||
15022 | fi | ||
15023 | |||
15024 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
15025 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
15026 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15028 | else | ||
15029 | |||
15030 | cat >conftest.$ac_ext <<_ACEOF | ||
15031 | #line $LINENO "configure" | ||
15032 | #include "confdefs.h" | ||
15033 | |||
15034 | #ifdef F77_DUMMY_MAIN | ||
15035 | # ifdef __cplusplus | ||
15036 | extern "C" | ||
15037 | # endif | ||
15038 | int F77_DUMMY_MAIN() { return 1; } | ||
15039 | #endif | ||
15040 | int | ||
15041 | main () | ||
15042 | { | ||
15043 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
15044 | ; | ||
15045 | return 0; | ||
15046 | } | ||
15047 | _ACEOF | ||
15048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15050 | (eval $ac_link) 2>&5 | ||
15051 | ac_status=$? | ||
15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15053 | (exit $ac_status); } && | ||
15054 | { ac_try='test -s conftest$ac_exeext' | ||
15055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15056 | (eval $ac_try) 2>&5 | ||
15057 | ac_status=$? | ||
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15059 | (exit $ac_status); }; }; then | ||
15060 | ac_cv_libc_defines_sys_errlist="yes" | ||
15061 | else | ||
15062 | echo "$as_me: failed program was:" >&5 | ||
15063 | cat conftest.$ac_ext >&5 | ||
15064 | ac_cv_libc_defines_sys_errlist="no" | ||
15065 | |||
15066 | fi | ||
15067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15068 | |||
15069 | fi | ||
15070 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
15071 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
15072 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
15073 | cat >>confdefs.h <<\_ACEOF | ||
15074 | @%:@define HAVE_SYS_ERRLIST 1 | ||
15075 | _ACEOF | ||
15076 | |||
15077 | fi | ||
15078 | |||
15079 | |||
15080 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
15081 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
15082 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
15083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15084 | else | ||
15085 | |||
15086 | cat >conftest.$ac_ext <<_ACEOF | ||
15087 | #line $LINENO "configure" | ||
15088 | #include "confdefs.h" | ||
15089 | |||
15090 | #ifdef F77_DUMMY_MAIN | ||
15091 | # ifdef __cplusplus | ||
15092 | extern "C" | ||
15093 | # endif | ||
15094 | int F77_DUMMY_MAIN() { return 1; } | ||
15095 | #endif | ||
15096 | int | ||
15097 | main () | ||
15098 | { | ||
15099 | extern int sys_nerr; printf("%i", sys_nerr); | ||
15100 | ; | ||
15101 | return 0; | ||
15102 | } | ||
15103 | _ACEOF | ||
15104 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15106 | (eval $ac_link) 2>&5 | ||
15107 | ac_status=$? | ||
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15109 | (exit $ac_status); } && | ||
15110 | { ac_try='test -s conftest$ac_exeext' | ||
15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15112 | (eval $ac_try) 2>&5 | ||
15113 | ac_status=$? | ||
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15115 | (exit $ac_status); }; }; then | ||
15116 | ac_cv_libc_defines_sys_nerr="yes" | ||
15117 | else | ||
15118 | echo "$as_me: failed program was:" >&5 | ||
15119 | cat conftest.$ac_ext >&5 | ||
15120 | ac_cv_libc_defines_sys_nerr="no" | ||
15121 | |||
15122 | fi | ||
15123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15124 | |||
15125 | fi | ||
15126 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
15127 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
15128 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
15129 | cat >>confdefs.h <<\_ACEOF | ||
15130 | @%:@define HAVE_SYS_NERR 1 | ||
15131 | _ACEOF | ||
15132 | |||
15133 | fi | ||
15134 | |||
15135 | SCARD_MSG="no" | ||
15136 | |||
15137 | # Check whether user wants sectok support | ||
15138 | |||
15139 | # Check whether --with-sectok or --without-sectok was given. | ||
15140 | if test "${with_sectok+set}" = set; then | ||
15141 | withval="$with_sectok" | ||
15142 | |||
15143 | if test "x$withval" != "xno" ; then | ||
15144 | if test "x$withval" != "xyes" ; then | ||
15145 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
15146 | LDFLAGS="$LDFLAGS -L${withval}" | ||
15147 | if test ! -z "$need_dash_r" ; then | ||
15148 | LDFLAGS="$LDFLAGS -R${withval}" | ||
15149 | fi | ||
15150 | if test ! -z "$blibpath" ; then | ||
15151 | blibpath="$blibpath:${withval}" | ||
15152 | fi | ||
15153 | fi | ||
15154 | |||
15155 | for ac_header in sectok.h | ||
15156 | do | ||
15157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15163 | fi | ||
15164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15166 | else | ||
15167 | # Is the header compilable? | ||
15168 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
15169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
15170 | cat >conftest.$ac_ext <<_ACEOF | ||
15171 | #line $LINENO "configure" | ||
15172 | #include "confdefs.h" | ||
15173 | $ac_includes_default | ||
15174 | @%:@include <$ac_header> | ||
15175 | _ACEOF | ||
15176 | rm -f conftest.$ac_objext | ||
15177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15178 | (eval $ac_compile) 2>&5 | ||
15179 | ac_status=$? | ||
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15181 | (exit $ac_status); } && | ||
15182 | { ac_try='test -s conftest.$ac_objext' | ||
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15184 | (eval $ac_try) 2>&5 | ||
15185 | ac_status=$? | ||
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15187 | (exit $ac_status); }; }; then | ||
15188 | ac_header_compiler=yes | ||
15189 | else | ||
15190 | echo "$as_me: failed program was:" >&5 | ||
15191 | cat conftest.$ac_ext >&5 | ||
15192 | ac_header_compiler=no | ||
15193 | fi | ||
15194 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
15196 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
15197 | |||
15198 | # Is the header present? | ||
15199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
15200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
15201 | cat >conftest.$ac_ext <<_ACEOF | ||
15202 | #line $LINENO "configure" | ||
15203 | #include "confdefs.h" | ||
15204 | @%:@include <$ac_header> | ||
15205 | _ACEOF | ||
15206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15208 | ac_status=$? | ||
15209 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15210 | rm -f conftest.er1 | ||
15211 | cat conftest.err >&5 | ||
15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15213 | (exit $ac_status); } >/dev/null; then | ||
15214 | if test -s conftest.err; then | ||
15215 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15216 | else | ||
15217 | ac_cpp_err= | ||
15218 | fi | ||
15219 | else | ||
15220 | ac_cpp_err=yes | ||
15221 | fi | ||
15222 | if test -z "$ac_cpp_err"; then | ||
15223 | ac_header_preproc=yes | ||
15224 | else | ||
15225 | echo "$as_me: failed program was:" >&5 | ||
15226 | cat conftest.$ac_ext >&5 | ||
15227 | ac_header_preproc=no | ||
15228 | fi | ||
15229 | rm -f conftest.err conftest.$ac_ext | ||
15230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
15231 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
15232 | |||
15233 | # So? What about this header? | ||
15234 | case $ac_header_compiler:$ac_header_preproc in | ||
15235 | yes:no ) | ||
15236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
15237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
15238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15239 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15240 | no:yes ) | ||
15241 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
15242 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
15243 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
15244 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
15245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15246 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15247 | esac | ||
15248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15252 | else | ||
15253 | eval "$as_ac_Header=$ac_header_preproc" | ||
15254 | fi | ||
15255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15257 | |||
15258 | fi | ||
15259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15260 | cat >>confdefs.h <<_ACEOF | ||
15261 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15262 | _ACEOF | ||
15263 | |||
15264 | fi | ||
15265 | |||
15266 | done | ||
15267 | |||
15268 | if test "$ac_cv_header_sectok_h" != yes; then | ||
15269 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
15270 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
15271 | { (exit 1); exit 1; }; } | ||
15272 | fi | ||
15273 | |||
15274 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
15275 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
15276 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
15277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15278 | else | ||
15279 | ac_check_lib_save_LIBS=$LIBS | ||
15280 | LIBS="-lsectok $LIBS" | ||
15281 | cat >conftest.$ac_ext <<_ACEOF | ||
15282 | #line $LINENO "configure" | ||
15283 | #include "confdefs.h" | ||
15284 | |||
15285 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15286 | #ifdef __cplusplus | ||
15287 | extern "C" | ||
15288 | #endif | ||
15289 | /* We use char because int might match the return type of a gcc2 | ||
15290 | builtin and then its argument prototype would still apply. */ | ||
15291 | char sectok_open (); | ||
15292 | #ifdef F77_DUMMY_MAIN | ||
15293 | # ifdef __cplusplus | ||
15294 | extern "C" | ||
15295 | # endif | ||
15296 | int F77_DUMMY_MAIN() { return 1; } | ||
15297 | #endif | ||
15298 | int | ||
15299 | main () | ||
15300 | { | ||
15301 | sectok_open (); | ||
15302 | ; | ||
15303 | return 0; | ||
15304 | } | ||
15305 | _ACEOF | ||
15306 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15308 | (eval $ac_link) 2>&5 | ||
15309 | ac_status=$? | ||
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15311 | (exit $ac_status); } && | ||
15312 | { ac_try='test -s conftest$ac_exeext' | ||
15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15314 | (eval $ac_try) 2>&5 | ||
15315 | ac_status=$? | ||
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15317 | (exit $ac_status); }; }; then | ||
15318 | ac_cv_lib_sectok_sectok_open=yes | ||
15319 | else | ||
15320 | echo "$as_me: failed program was:" >&5 | ||
15321 | cat conftest.$ac_ext >&5 | ||
15322 | ac_cv_lib_sectok_sectok_open=no | ||
15323 | fi | ||
15324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15325 | LIBS=$ac_check_lib_save_LIBS | ||
15326 | fi | ||
15327 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
15328 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
15329 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
15330 | cat >>confdefs.h <<_ACEOF | ||
15331 | @%:@define HAVE_LIBSECTOK 1 | ||
15332 | _ACEOF | ||
15333 | |||
15334 | LIBS="-lsectok $LIBS" | ||
15335 | |||
15336 | fi | ||
15337 | |||
15338 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
15339 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
15340 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
15341 | { (exit 1); exit 1; }; } | ||
15342 | fi | ||
15343 | cat >>confdefs.h <<\_ACEOF | ||
15344 | @%:@define SMARTCARD 1 | ||
15345 | _ACEOF | ||
15346 | |||
15347 | cat >>confdefs.h <<\_ACEOF | ||
15348 | @%:@define USE_SECTOK 1 | ||
15349 | _ACEOF | ||
15350 | |||
15351 | SCARD_MSG="yes, using sectok" | ||
15352 | fi | ||
15353 | |||
15354 | |||
15355 | fi; | ||
15356 | |||
15357 | # Check whether user wants OpenSC support | ||
15358 | |||
15359 | # Check whether --with-opensc or --without-opensc was given. | ||
15360 | if test "${with_opensc+set}" = set; then | ||
15361 | withval="$with_opensc" | ||
15362 | opensc_config_prefix="$withval" | ||
15363 | else | ||
15364 | opensc_config_prefix="" | ||
15365 | fi; | ||
15366 | if test x$opensc_config_prefix != x ; then | ||
15367 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
15368 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
15369 | set dummy opensc-config; ac_word=$2 | ||
15370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15372 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15374 | else | ||
15375 | case $OPENSC_CONFIG in | ||
15376 | [\\/]* | ?:[\\/]*) | ||
15377 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
15378 | ;; | ||
15379 | *) | ||
15380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15381 | for as_dir in $PATH | ||
15382 | do | ||
15383 | IFS=$as_save_IFS | ||
15384 | test -z "$as_dir" && as_dir=. | ||
15385 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15387 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15389 | break 2 | ||
15390 | fi | ||
15391 | done | ||
15392 | done | ||
15393 | |||
15394 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
15395 | ;; | ||
15396 | esac | ||
15397 | fi | ||
15398 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
15399 | |||
15400 | if test -n "$OPENSC_CONFIG"; then | ||
15401 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
15402 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
15403 | else | ||
15404 | echo "$as_me:$LINENO: result: no" >&5 | ||
15405 | echo "${ECHO_T}no" >&6 | ||
15406 | fi | ||
15407 | |||
15408 | if test "$OPENSC_CONFIG" != "no"; then | ||
15409 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
15410 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
15411 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
15412 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
15413 | cat >>confdefs.h <<\_ACEOF | ||
15414 | @%:@define SMARTCARD 1 | ||
15415 | _ACEOF | ||
15416 | |||
15417 | cat >>confdefs.h <<\_ACEOF | ||
15418 | @%:@define USE_OPENSC 1 | ||
15419 | _ACEOF | ||
15420 | |||
15421 | SCARD_MSG="yes, using OpenSC" | ||
15422 | fi | ||
15423 | fi | ||
15424 | |||
15425 | # Check whether user wants Kerberos 5 support | ||
15426 | KRB5_MSG="no" | ||
15427 | |||
15428 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
15429 | if test "${with_kerberos5+set}" = set; then | ||
15430 | withval="$with_kerberos5" | ||
15431 | |||
15432 | if test "x$withval" != "xno" ; then | ||
15433 | if test "x$withval" = "xyes" ; then | ||
15434 | KRB5ROOT="/usr/local" | ||
15435 | else | ||
15436 | KRB5ROOT=${withval} | ||
15437 | fi | ||
15438 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15439 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15440 | cat >>confdefs.h <<\_ACEOF | ||
15441 | @%:@define KRB5 1 | ||
15442 | _ACEOF | ||
15443 | |||
15444 | KRB5_MSG="yes" | ||
15445 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
15446 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15447 | cat >conftest.$ac_ext <<_ACEOF | ||
15448 | #line $LINENO "configure" | ||
15449 | #include "confdefs.h" | ||
15450 | #include <krb5.h> | ||
15451 | #ifdef F77_DUMMY_MAIN | ||
15452 | # ifdef __cplusplus | ||
15453 | extern "C" | ||
15454 | # endif | ||
15455 | int F77_DUMMY_MAIN() { return 1; } | ||
15456 | #endif | ||
15457 | int | ||
15458 | main () | ||
15459 | { | ||
15460 | char *tmp = heimdal_version; | ||
15461 | ; | ||
15462 | return 0; | ||
15463 | } | ||
15464 | _ACEOF | ||
15465 | rm -f conftest.$ac_objext | ||
15466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15467 | (eval $ac_compile) 2>&5 | ||
15468 | ac_status=$? | ||
15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15470 | (exit $ac_status); } && | ||
15471 | { ac_try='test -s conftest.$ac_objext' | ||
15472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15473 | (eval $ac_try) 2>&5 | ||
15474 | ac_status=$? | ||
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15476 | (exit $ac_status); }; }; then | ||
15477 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15478 | echo "${ECHO_T}yes" >&6 | ||
15479 | cat >>confdefs.h <<\_ACEOF | ||
15480 | @%:@define HEIMDAL 1 | ||
15481 | _ACEOF | ||
15482 | |||
15483 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
15484 | |||
15485 | else | ||
15486 | echo "$as_me: failed program was:" >&5 | ||
15487 | cat conftest.$ac_ext >&5 | ||
15488 | echo "$as_me:$LINENO: result: no" >&5 | ||
15489 | echo "${ECHO_T}no" >&6 | ||
15490 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15491 | |||
15492 | |||
15493 | fi | ||
15494 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15495 | if test ! -z "$need_dash_r" ; then | ||
15496 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15497 | fi | ||
15498 | if test ! -z "$blibpath" ; then | ||
15499 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15500 | fi | ||
15501 | |||
15502 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15503 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15504 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15506 | else | ||
15507 | ac_check_lib_save_LIBS=$LIBS | ||
15508 | LIBS="-lresolv $LIBS" | ||
15509 | cat >conftest.$ac_ext <<_ACEOF | ||
15510 | #line $LINENO "configure" | ||
15511 | #include "confdefs.h" | ||
15512 | |||
15513 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15514 | #ifdef __cplusplus | ||
15515 | extern "C" | ||
15516 | #endif | ||
15517 | /* We use char because int might match the return type of a gcc2 | ||
15518 | builtin and then its argument prototype would still apply. */ | ||
15519 | char dn_expand (); | ||
15520 | #ifdef F77_DUMMY_MAIN | ||
15521 | # ifdef __cplusplus | ||
15522 | extern "C" | ||
15523 | # endif | ||
15524 | int F77_DUMMY_MAIN() { return 1; } | ||
15525 | #endif | ||
15526 | int | ||
15527 | main () | ||
15528 | { | ||
15529 | dn_expand (); | ||
15530 | ; | ||
15531 | return 0; | ||
15532 | } | ||
15533 | _ACEOF | ||
15534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15536 | (eval $ac_link) 2>&5 | ||
15537 | ac_status=$? | ||
15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15539 | (exit $ac_status); } && | ||
15540 | { ac_try='test -s conftest$ac_exeext' | ||
15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15542 | (eval $ac_try) 2>&5 | ||
15543 | ac_status=$? | ||
15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15545 | (exit $ac_status); }; }; then | ||
15546 | ac_cv_lib_resolv_dn_expand=yes | ||
15547 | else | ||
15548 | echo "$as_me: failed program was:" >&5 | ||
15549 | cat conftest.$ac_ext >&5 | ||
15550 | ac_cv_lib_resolv_dn_expand=no | ||
15551 | fi | ||
15552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15553 | LIBS=$ac_check_lib_save_LIBS | ||
15554 | fi | ||
15555 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
15556 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
15557 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
15558 | cat >>confdefs.h <<_ACEOF | ||
15559 | @%:@define HAVE_LIBRESOLV 1 | ||
15560 | _ACEOF | ||
15561 | |||
15562 | LIBS="-lresolv $LIBS" | ||
15563 | |||
15564 | fi | ||
15565 | |||
15566 | |||
15567 | KRB5=yes | ||
15568 | fi | ||
15569 | |||
15570 | |||
15571 | fi; | ||
15572 | # Check whether user wants Kerberos 4 support | ||
15573 | KRB4_MSG="no" | ||
15574 | |||
15575 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
15576 | if test "${with_kerberos4+set}" = set; then | ||
15577 | withval="$with_kerberos4" | ||
15578 | |||
15579 | if test "x$withval" != "xno" ; then | ||
15580 | if test "x$withval" != "xyes" ; then | ||
15581 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15582 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15583 | if test ! -z "$need_dash_r" ; then | ||
15584 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
15585 | fi | ||
15586 | if test ! -z "$blibpath" ; then | ||
15587 | blibpath="$blibpath:${withval}/lib" | ||
15588 | fi | ||
15589 | else | ||
15590 | if test -d /usr/include/kerberosIV ; then | ||
15591 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
15592 | fi | ||
15593 | fi | ||
15594 | |||
15595 | |||
15596 | for ac_header in krb.h | ||
15597 | do | ||
15598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15604 | fi | ||
15605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15607 | else | ||
15608 | # Is the header compilable? | ||
15609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
15610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
15611 | cat >conftest.$ac_ext <<_ACEOF | ||
15612 | #line $LINENO "configure" | ||
15613 | #include "confdefs.h" | ||
15614 | $ac_includes_default | ||
15615 | @%:@include <$ac_header> | ||
15616 | _ACEOF | ||
15617 | rm -f conftest.$ac_objext | ||
15618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15619 | (eval $ac_compile) 2>&5 | ||
15620 | ac_status=$? | ||
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15622 | (exit $ac_status); } && | ||
15623 | { ac_try='test -s conftest.$ac_objext' | ||
15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15625 | (eval $ac_try) 2>&5 | ||
15626 | ac_status=$? | ||
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15628 | (exit $ac_status); }; }; then | ||
15629 | ac_header_compiler=yes | ||
15630 | else | ||
15631 | echo "$as_me: failed program was:" >&5 | ||
15632 | cat conftest.$ac_ext >&5 | ||
15633 | ac_header_compiler=no | ||
15634 | fi | ||
15635 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
15637 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
15638 | |||
15639 | # Is the header present? | ||
15640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
15641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
15642 | cat >conftest.$ac_ext <<_ACEOF | ||
15643 | #line $LINENO "configure" | ||
15644 | #include "confdefs.h" | ||
15645 | @%:@include <$ac_header> | ||
15646 | _ACEOF | ||
15647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15649 | ac_status=$? | ||
15650 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15651 | rm -f conftest.er1 | ||
15652 | cat conftest.err >&5 | ||
15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15654 | (exit $ac_status); } >/dev/null; then | ||
15655 | if test -s conftest.err; then | ||
15656 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15657 | else | ||
15658 | ac_cpp_err= | ||
15659 | fi | ||
15660 | else | ||
15661 | ac_cpp_err=yes | ||
15662 | fi | ||
15663 | if test -z "$ac_cpp_err"; then | ||
15664 | ac_header_preproc=yes | ||
15665 | else | ||
15666 | echo "$as_me: failed program was:" >&5 | ||
15667 | cat conftest.$ac_ext >&5 | ||
15668 | ac_header_preproc=no | ||
15669 | fi | ||
15670 | rm -f conftest.err conftest.$ac_ext | ||
15671 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
15672 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
15673 | |||
15674 | # So? What about this header? | ||
15675 | case $ac_header_compiler:$ac_header_preproc in | ||
15676 | yes:no ) | ||
15677 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
15678 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
15679 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15680 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15681 | no:yes ) | ||
15682 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
15683 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
15684 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
15685 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
15686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15688 | esac | ||
15689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15693 | else | ||
15694 | eval "$as_ac_Header=$ac_header_preproc" | ||
15695 | fi | ||
15696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15698 | |||
15699 | fi | ||
15700 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15701 | cat >>confdefs.h <<_ACEOF | ||
15702 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15703 | _ACEOF | ||
15704 | |||
15705 | fi | ||
15706 | |||
15707 | done | ||
15708 | |||
15709 | if test "$ac_cv_header_krb_h" != yes; then | ||
15710 | { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5 | ||
15711 | echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;} | ||
15712 | fi | ||
15713 | |||
15714 | echo "$as_me:$LINENO: checking for main in -lkrb" >&5 | ||
15715 | echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6 | ||
15716 | if test "${ac_cv_lib_krb_main+set}" = set; then | ||
15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15718 | else | ||
15719 | ac_check_lib_save_LIBS=$LIBS | ||
15720 | LIBS="-lkrb $LIBS" | ||
15721 | cat >conftest.$ac_ext <<_ACEOF | ||
15722 | #line $LINENO "configure" | ||
15723 | #include "confdefs.h" | ||
15724 | |||
15725 | |||
15726 | #ifdef F77_DUMMY_MAIN | ||
15727 | # ifdef __cplusplus | ||
15728 | extern "C" | ||
15729 | # endif | ||
15730 | int F77_DUMMY_MAIN() { return 1; } | ||
15731 | #endif | ||
15732 | int | ||
15733 | main () | ||
15734 | { | ||
15735 | main (); | ||
15736 | ; | ||
15737 | return 0; | ||
15738 | } | ||
15739 | _ACEOF | ||
15740 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15742 | (eval $ac_link) 2>&5 | ||
15743 | ac_status=$? | ||
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15745 | (exit $ac_status); } && | ||
15746 | { ac_try='test -s conftest$ac_exeext' | ||
15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15748 | (eval $ac_try) 2>&5 | ||
15749 | ac_status=$? | ||
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15751 | (exit $ac_status); }; }; then | ||
15752 | ac_cv_lib_krb_main=yes | ||
15753 | else | ||
15754 | echo "$as_me: failed program was:" >&5 | ||
15755 | cat conftest.$ac_ext >&5 | ||
15756 | ac_cv_lib_krb_main=no | ||
15757 | fi | ||
15758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15759 | LIBS=$ac_check_lib_save_LIBS | ||
15760 | fi | ||
15761 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5 | ||
15762 | echo "${ECHO_T}$ac_cv_lib_krb_main" >&6 | ||
15763 | if test $ac_cv_lib_krb_main = yes; then | ||
15764 | cat >>confdefs.h <<_ACEOF | ||
15765 | @%:@define HAVE_LIBKRB 1 | ||
15766 | _ACEOF | ||
15767 | |||
15768 | LIBS="-lkrb $LIBS" | ||
15769 | |||
15770 | fi | ||
15771 | |||
15772 | if test "$ac_cv_lib_krb_main" != yes; then | ||
15773 | |||
15774 | echo "$as_me:$LINENO: checking for main in -lkrb4" >&5 | ||
15775 | echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6 | ||
15776 | if test "${ac_cv_lib_krb4_main+set}" = set; then | ||
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15778 | else | ||
15779 | ac_check_lib_save_LIBS=$LIBS | ||
15780 | LIBS="-lkrb4 $LIBS" | ||
15781 | cat >conftest.$ac_ext <<_ACEOF | ||
15782 | #line $LINENO "configure" | ||
15783 | #include "confdefs.h" | ||
15784 | |||
15785 | |||
15786 | #ifdef F77_DUMMY_MAIN | ||
15787 | # ifdef __cplusplus | ||
15788 | extern "C" | ||
15789 | # endif | ||
15790 | int F77_DUMMY_MAIN() { return 1; } | ||
15791 | #endif | ||
15792 | int | ||
15793 | main () | ||
15794 | { | ||
15795 | main (); | ||
15796 | ; | ||
15797 | return 0; | ||
15798 | } | ||
15799 | _ACEOF | ||
15800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15802 | (eval $ac_link) 2>&5 | ||
15803 | ac_status=$? | ||
15804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15805 | (exit $ac_status); } && | ||
15806 | { ac_try='test -s conftest$ac_exeext' | ||
15807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15808 | (eval $ac_try) 2>&5 | ||
15809 | ac_status=$? | ||
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15811 | (exit $ac_status); }; }; then | ||
15812 | ac_cv_lib_krb4_main=yes | ||
15813 | else | ||
15814 | echo "$as_me: failed program was:" >&5 | ||
15815 | cat conftest.$ac_ext >&5 | ||
15816 | ac_cv_lib_krb4_main=no | ||
15817 | fi | ||
15818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15819 | LIBS=$ac_check_lib_save_LIBS | ||
15820 | fi | ||
15821 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5 | ||
15822 | echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6 | ||
15823 | if test $ac_cv_lib_krb4_main = yes; then | ||
15824 | cat >>confdefs.h <<_ACEOF | ||
15825 | @%:@define HAVE_LIBKRB4 1 | ||
15826 | _ACEOF | ||
15827 | |||
15828 | LIBS="-lkrb4 $LIBS" | ||
15829 | |||
15830 | fi | ||
15831 | |||
15832 | if test "$ac_cv_lib_krb4_main" != yes; then | ||
15833 | { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5 | ||
15834 | echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;} | ||
15835 | else | ||
15836 | KLIBS="-lkrb4" | ||
15837 | fi | ||
15838 | else | ||
15839 | KLIBS="-lkrb" | ||
15840 | fi | ||
15841 | |||
15842 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
15843 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 | ||
15844 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15846 | else | ||
15847 | ac_check_lib_save_LIBS=$LIBS | ||
15848 | LIBS="-ldes $LIBS" | ||
15849 | cat >conftest.$ac_ext <<_ACEOF | ||
15850 | #line $LINENO "configure" | ||
15851 | #include "confdefs.h" | ||
15852 | |||
15853 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15854 | #ifdef __cplusplus | ||
15855 | extern "C" | ||
15856 | #endif | ||
15857 | /* We use char because int might match the return type of a gcc2 | ||
15858 | builtin and then its argument prototype would still apply. */ | ||
15859 | char des_cbc_encrypt (); | ||
15860 | #ifdef F77_DUMMY_MAIN | ||
15861 | # ifdef __cplusplus | ||
15862 | extern "C" | ||
15863 | # endif | ||
15864 | int F77_DUMMY_MAIN() { return 1; } | ||
15865 | #endif | ||
15866 | int | ||
15867 | main () | ||
15868 | { | ||
15869 | des_cbc_encrypt (); | ||
15870 | ; | ||
15871 | return 0; | ||
15872 | } | ||
15873 | _ACEOF | ||
15874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15876 | (eval $ac_link) 2>&5 | ||
15877 | ac_status=$? | ||
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15879 | (exit $ac_status); } && | ||
15880 | { ac_try='test -s conftest$ac_exeext' | ||
15881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15882 | (eval $ac_try) 2>&5 | ||
15883 | ac_status=$? | ||
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15885 | (exit $ac_status); }; }; then | ||
15886 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15887 | else | ||
15888 | echo "$as_me: failed program was:" >&5 | ||
15889 | cat conftest.$ac_ext >&5 | ||
15890 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15891 | fi | ||
15892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15893 | LIBS=$ac_check_lib_save_LIBS | ||
15894 | fi | ||
15895 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15896 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | ||
15897 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
15898 | cat >>confdefs.h <<_ACEOF | ||
15899 | @%:@define HAVE_LIBDES 1 | ||
15900 | _ACEOF | ||
15901 | |||
15902 | LIBS="-ldes $LIBS" | ||
15903 | |||
15904 | fi | ||
15905 | |||
15906 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | ||
15907 | |||
15908 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | ||
15909 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 | ||
15910 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | ||
15911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15912 | else | ||
15913 | ac_check_lib_save_LIBS=$LIBS | ||
15914 | LIBS="-ldes425 $LIBS" | ||
15915 | cat >conftest.$ac_ext <<_ACEOF | ||
15916 | #line $LINENO "configure" | ||
15917 | #include "confdefs.h" | ||
15918 | |||
15919 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15920 | #ifdef __cplusplus | ||
15921 | extern "C" | ||
15922 | #endif | ||
15923 | /* We use char because int might match the return type of a gcc2 | ||
15924 | builtin and then its argument prototype would still apply. */ | ||
15925 | char des_cbc_encrypt (); | ||
15926 | #ifdef F77_DUMMY_MAIN | ||
15927 | # ifdef __cplusplus | ||
15928 | extern "C" | ||
15929 | # endif | ||
15930 | int F77_DUMMY_MAIN() { return 1; } | ||
15931 | #endif | ||
15932 | int | ||
15933 | main () | ||
15934 | { | ||
15935 | des_cbc_encrypt (); | ||
15936 | ; | ||
15937 | return 0; | ||
15938 | } | ||
15939 | _ACEOF | ||
15940 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15942 | (eval $ac_link) 2>&5 | ||
15943 | ac_status=$? | ||
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15945 | (exit $ac_status); } && | ||
15946 | { ac_try='test -s conftest$ac_exeext' | ||
15947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15948 | (eval $ac_try) 2>&5 | ||
15949 | ac_status=$? | ||
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15951 | (exit $ac_status); }; }; then | ||
15952 | ac_cv_lib_des425_des_cbc_encrypt=yes | ||
15953 | else | ||
15954 | echo "$as_me: failed program was:" >&5 | ||
15955 | cat conftest.$ac_ext >&5 | ||
15956 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
15957 | fi | ||
15958 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15959 | LIBS=$ac_check_lib_save_LIBS | ||
15960 | fi | ||
15961 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
15962 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | ||
15963 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | ||
15964 | cat >>confdefs.h <<_ACEOF | ||
15965 | @%:@define HAVE_LIBDES425 1 | ||
15966 | _ACEOF | ||
15967 | |||
15968 | LIBS="-ldes425 $LIBS" | ||
15969 | |||
15970 | fi | ||
15971 | |||
15972 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | ||
15973 | { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5 | ||
15974 | echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;} | ||
15975 | else | ||
15976 | KLIBS="-ldes425" | ||
15977 | fi | ||
15978 | else | ||
15979 | KLIBS="-ldes" | ||
15980 | fi | ||
15981 | |||
15982 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15983 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15984 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15986 | else | ||
15987 | ac_check_lib_save_LIBS=$LIBS | ||
15988 | LIBS="-lresolv $LIBS" | ||
15989 | cat >conftest.$ac_ext <<_ACEOF | ||
15990 | #line $LINENO "configure" | ||
15991 | #include "confdefs.h" | ||
15992 | |||
15993 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15994 | #ifdef __cplusplus | ||
15995 | extern "C" | ||
15996 | #endif | ||
15997 | /* We use char because int might match the return type of a gcc2 | ||
15998 | builtin and then its argument prototype would still apply. */ | ||
15999 | char dn_expand (); | ||
16000 | #ifdef F77_DUMMY_MAIN | ||
16001 | # ifdef __cplusplus | ||
16002 | extern "C" | ||
16003 | # endif | ||
16004 | int F77_DUMMY_MAIN() { return 1; } | ||
16005 | #endif | ||
16006 | int | ||
16007 | main () | ||
16008 | { | ||
16009 | dn_expand (); | ||
16010 | ; | ||
16011 | return 0; | ||
16012 | } | ||
16013 | _ACEOF | ||
16014 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16016 | (eval $ac_link) 2>&5 | ||
16017 | ac_status=$? | ||
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16019 | (exit $ac_status); } && | ||
16020 | { ac_try='test -s conftest$ac_exeext' | ||
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16022 | (eval $ac_try) 2>&5 | ||
16023 | ac_status=$? | ||
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16025 | (exit $ac_status); }; }; then | ||
16026 | ac_cv_lib_resolv_dn_expand=yes | ||
16027 | else | ||
16028 | echo "$as_me: failed program was:" >&5 | ||
16029 | cat conftest.$ac_ext >&5 | ||
16030 | ac_cv_lib_resolv_dn_expand=no | ||
16031 | fi | ||
16032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16033 | LIBS=$ac_check_lib_save_LIBS | ||
16034 | fi | ||
16035 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
16036 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
16037 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
16038 | cat >>confdefs.h <<_ACEOF | ||
16039 | @%:@define HAVE_LIBRESOLV 1 | ||
16040 | _ACEOF | ||
16041 | |||
16042 | LIBS="-lresolv $LIBS" | ||
16043 | |||
16044 | fi | ||
16045 | |||
16046 | KRB4=yes | ||
16047 | KRB4_MSG="yes" | ||
16048 | cat >>confdefs.h <<\_ACEOF | ||
16049 | @%:@define KRB4 1 | ||
16050 | _ACEOF | ||
16051 | |||
16052 | fi | ||
16053 | |||
16054 | |||
16055 | fi; | ||
16056 | |||
16057 | # Check whether user wants AFS support | ||
16058 | AFS_MSG="no" | ||
16059 | |||
16060 | # Check whether --with-afs or --without-afs was given. | ||
16061 | if test "${with_afs+set}" = set; then | ||
16062 | withval="$with_afs" | ||
16063 | |||
16064 | if test "x$withval" != "xno" ; then | ||
16065 | |||
16066 | if test "x$withval" != "xyes" ; then | ||
16067 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
16068 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
16069 | fi | ||
16070 | |||
16071 | if test -z "$KRB4" ; then | ||
16072 | { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5 | ||
16073 | echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;} | ||
16074 | fi | ||
16075 | |||
16076 | LIBS="-lkafs $LIBS" | ||
16077 | if test ! -z "$AFS_LIBS" ; then | ||
16078 | LIBS="$LIBS $AFS_LIBS" | ||
16079 | fi | ||
16080 | cat >>confdefs.h <<\_ACEOF | ||
16081 | @%:@define AFS 1 | ||
16082 | _ACEOF | ||
16083 | |||
16084 | AFS_MSG="yes" | ||
16085 | fi | ||
16086 | |||
16087 | |||
16088 | fi; | ||
16089 | LIBS="$LIBS $KLIBS $K5LIBS" | ||
16090 | |||
16091 | # Looking for programs, paths and files | ||
16092 | |||
16093 | PRIVSEP_PATH=/var/empty | ||
16094 | |||
16095 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
16096 | if test "${with_privsep_path+set}" = set; then | ||
16097 | withval="$with_privsep_path" | ||
16098 | |||
16099 | if test "x$withval" != "$no" ; then | ||
16100 | PRIVSEP_PATH=$withval | ||
16101 | fi | ||
16102 | |||
16103 | |||
16104 | fi; | ||
16105 | |||
16106 | |||
16107 | |||
16108 | # Check whether --with-xauth or --without-xauth was given. | ||
16109 | if test "${with_xauth+set}" = set; then | ||
16110 | withval="$with_xauth" | ||
16111 | |||
16112 | if test "x$withval" != "xno" ; then | ||
16113 | xauth_path=$withval | ||
16114 | fi | ||
16115 | |||
16116 | else | ||
16117 | |||
16118 | TestPath="$PATH" | ||
16119 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
16120 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
16121 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
16122 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
16123 | # Extract the first word of "xauth", so it can be a program name with args. | ||
16124 | set dummy xauth; ac_word=$2 | ||
16125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16127 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
16128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16129 | else | ||
16130 | case $xauth_path in | ||
16131 | [\\/]* | ?:[\\/]*) | ||
16132 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
16133 | ;; | ||
16134 | *) | ||
16135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16136 | for as_dir in $TestPath | ||
16137 | do | ||
16138 | IFS=$as_save_IFS | ||
16139 | test -z "$as_dir" && as_dir=. | ||
16140 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16142 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
16143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16144 | break 2 | ||
16145 | fi | ||
16146 | done | ||
16147 | done | ||
16148 | |||
16149 | ;; | ||
16150 | esac | ||
16151 | fi | ||
16152 | xauth_path=$ac_cv_path_xauth_path | ||
16153 | |||
16154 | if test -n "$xauth_path"; then | ||
16155 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
16156 | echo "${ECHO_T}$xauth_path" >&6 | ||
16157 | else | ||
16158 | echo "$as_me:$LINENO: result: no" >&5 | ||
16159 | echo "${ECHO_T}no" >&6 | ||
16160 | fi | ||
16161 | |||
16162 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
16163 | xauth_path="/usr/openwin/bin/xauth" | ||
16164 | fi | ||
16165 | |||
16166 | |||
16167 | fi; | ||
16168 | |||
16169 | STRIP_OPT=-s | ||
16170 | # Check whether --enable-strip or --disable-strip was given. | ||
16171 | if test "${enable_strip+set}" = set; then | ||
16172 | enableval="$enable_strip" | ||
16173 | |||
16174 | if test "x$enableval" = "xno" ; then | ||
16175 | STRIP_OPT= | ||
16176 | fi | ||
16177 | |||
16178 | |||
16179 | fi; | ||
16180 | |||
16181 | |||
16182 | if test -z "$xauth_path" ; then | ||
16183 | XAUTH_PATH="undefined" | ||
16184 | |||
16185 | else | ||
16186 | cat >>confdefs.h <<_ACEOF | ||
16187 | @%:@define XAUTH_PATH "$xauth_path" | ||
16188 | _ACEOF | ||
16189 | |||
16190 | XAUTH_PATH=$xauth_path | ||
16191 | |||
16192 | fi | ||
16193 | |||
16194 | # Check for mail directory (last resort if we cannot get it from headers) | ||
16195 | if test ! -z "$MAIL" ; then | ||
16196 | maildir=`dirname $MAIL` | ||
16197 | cat >>confdefs.h <<_ACEOF | ||
16198 | @%:@define MAIL_DIRECTORY "$maildir" | ||
16199 | _ACEOF | ||
16200 | |||
16201 | fi | ||
16202 | |||
16203 | if test -z "$no_dev_ptmx" ; then | ||
16204 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
16205 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
16206 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
16207 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
16208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16209 | else | ||
16210 | test "$cross_compiling" = yes && | ||
16211 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
16212 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16213 | { (exit 1); exit 1; }; } | ||
16214 | if test -r ""/dev/ptmx""; then | ||
16215 | ac_cv_file___dev_ptmx_=yes | ||
16216 | else | ||
16217 | ac_cv_file___dev_ptmx_=no | ||
16218 | fi | ||
16219 | fi | ||
16220 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
16221 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
16222 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
16223 | |||
16224 | cat >>confdefs.h <<_ACEOF | ||
16225 | @%:@define HAVE_DEV_PTMX 1 | ||
16226 | _ACEOF | ||
16227 | |||
16228 | have_dev_ptmx=1 | ||
16229 | |||
16230 | |||
16231 | fi | ||
16232 | |||
16233 | fi | ||
16234 | fi | ||
16235 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
16236 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
16237 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16239 | else | ||
16240 | test "$cross_compiling" = yes && | ||
16241 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
16242 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16243 | { (exit 1); exit 1; }; } | ||
16244 | if test -r ""/dev/ptc""; then | ||
16245 | ac_cv_file___dev_ptc_=yes | ||
16246 | else | ||
16247 | ac_cv_file___dev_ptc_=no | ||
16248 | fi | ||
16249 | fi | ||
16250 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
16251 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
16252 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
16253 | |||
16254 | cat >>confdefs.h <<_ACEOF | ||
16255 | @%:@define HAVE_DEV_PTS_AND_PTC 1 | ||
16256 | _ACEOF | ||
16257 | |||
16258 | have_dev_ptc=1 | ||
16259 | |||
16260 | |||
16261 | fi | ||
16262 | |||
16263 | |||
16264 | # Options from here on. Some of these are preset by platform above | ||
16265 | |||
16266 | # Check whether --with-mantype or --without-mantype was given. | ||
16267 | if test "${with_mantype+set}" = set; then | ||
16268 | withval="$with_mantype" | ||
16269 | |||
16270 | case "$withval" in | ||
16271 | man|cat|doc) | ||
16272 | MANTYPE=$withval | ||
16273 | ;; | ||
16274 | *) | ||
16275 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
16276 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
16277 | { (exit 1); exit 1; }; } | ||
16278 | ;; | ||
16279 | esac | ||
16280 | |||
16281 | |||
16282 | fi; | ||
16283 | if test -z "$MANTYPE"; then | ||
16284 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
16285 | for ac_prog in nroff awf | ||
16286 | do | ||
16287 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16288 | set dummy $ac_prog; ac_word=$2 | ||
16289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16291 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
16292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16293 | else | ||
16294 | case $NROFF in | ||
16295 | [\\/]* | ?:[\\/]*) | ||
16296 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
16297 | ;; | ||
16298 | *) | ||
16299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16300 | for as_dir in $TestPath | ||
16301 | do | ||
16302 | IFS=$as_save_IFS | ||
16303 | test -z "$as_dir" && as_dir=. | ||
16304 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16305 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16306 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
16307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16308 | break 2 | ||
16309 | fi | ||
16310 | done | ||
16311 | done | ||
16312 | |||
16313 | ;; | ||
16314 | esac | ||
16315 | fi | ||
16316 | NROFF=$ac_cv_path_NROFF | ||
16317 | |||
16318 | if test -n "$NROFF"; then | ||
16319 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
16320 | echo "${ECHO_T}$NROFF" >&6 | ||
16321 | else | ||
16322 | echo "$as_me:$LINENO: result: no" >&5 | ||
16323 | echo "${ECHO_T}no" >&6 | ||
16324 | fi | ||
16325 | |||
16326 | test -n "$NROFF" && break | ||
16327 | done | ||
16328 | test -n "$NROFF" || NROFF="/bin/false" | ||
16329 | |||
16330 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16331 | MANTYPE=doc | ||
16332 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16333 | MANTYPE=man | ||
16334 | else | ||
16335 | MANTYPE=cat | ||
16336 | fi | ||
16337 | fi | ||
16338 | |||
16339 | if test "$MANTYPE" = "doc"; then | ||
16340 | mansubdir=man; | ||
16341 | else | ||
16342 | mansubdir=$MANTYPE; | ||
16343 | fi | ||
16344 | |||
16345 | |||
16346 | # Check whether to enable MD5 passwords | ||
16347 | MD5_MSG="no" | ||
16348 | |||
16349 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
16350 | if test "${with_md5_passwords+set}" = set; then | ||
16351 | withval="$with_md5_passwords" | ||
16352 | |||
16353 | if test "x$withval" != "xno" ; then | ||
16354 | cat >>confdefs.h <<\_ACEOF | ||
16355 | @%:@define HAVE_MD5_PASSWORDS 1 | ||
16356 | _ACEOF | ||
16357 | |||
16358 | MD5_MSG="yes" | ||
16359 | fi | ||
16360 | |||
16361 | |||
16362 | fi; | ||
16363 | |||
16364 | # Whether to disable shadow password support | ||
16365 | |||
16366 | # Check whether --with-shadow or --without-shadow was given. | ||
16367 | if test "${with_shadow+set}" = set; then | ||
16368 | withval="$with_shadow" | ||
16369 | |||
16370 | if test "x$withval" = "xno" ; then | ||
16371 | cat >>confdefs.h <<\_ACEOF | ||
16372 | @%:@define DISABLE_SHADOW 1 | ||
16373 | _ACEOF | ||
16374 | |||
16375 | disable_shadow=yes | ||
16376 | fi | ||
16377 | |||
16378 | |||
16379 | fi; | ||
16380 | |||
16381 | if test -z "$disable_shadow" ; then | ||
16382 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
16383 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
16384 | cat >conftest.$ac_ext <<_ACEOF | ||
16385 | #line $LINENO "configure" | ||
16386 | #include "confdefs.h" | ||
16387 | |||
16388 | #include <sys/types.h> | ||
16389 | #include <shadow.h> | ||
16390 | struct spwd sp; | ||
16391 | |||
16392 | #ifdef F77_DUMMY_MAIN | ||
16393 | # ifdef __cplusplus | ||
16394 | extern "C" | ||
16395 | # endif | ||
16396 | int F77_DUMMY_MAIN() { return 1; } | ||
16397 | #endif | ||
16398 | int | ||
16399 | main () | ||
16400 | { | ||
16401 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
16402 | ; | ||
16403 | return 0; | ||
16404 | } | ||
16405 | _ACEOF | ||
16406 | rm -f conftest.$ac_objext | ||
16407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16408 | (eval $ac_compile) 2>&5 | ||
16409 | ac_status=$? | ||
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16411 | (exit $ac_status); } && | ||
16412 | { ac_try='test -s conftest.$ac_objext' | ||
16413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16414 | (eval $ac_try) 2>&5 | ||
16415 | ac_status=$? | ||
16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16417 | (exit $ac_status); }; }; then | ||
16418 | sp_expire_available=yes | ||
16419 | else | ||
16420 | echo "$as_me: failed program was:" >&5 | ||
16421 | cat conftest.$ac_ext >&5 | ||
16422 | |||
16423 | |||
16424 | fi | ||
16425 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16426 | |||
16427 | if test "x$sp_expire_available" = "xyes" ; then | ||
16428 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16429 | echo "${ECHO_T}yes" >&6 | ||
16430 | cat >>confdefs.h <<\_ACEOF | ||
16431 | @%:@define HAS_SHADOW_EXPIRE 1 | ||
16432 | _ACEOF | ||
16433 | |||
16434 | else | ||
16435 | echo "$as_me:$LINENO: result: no" >&5 | ||
16436 | echo "${ECHO_T}no" >&6 | ||
16437 | fi | ||
16438 | fi | ||
16439 | |||
16440 | # Use ip address instead of hostname in $DISPLAY | ||
16441 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
16442 | DISPLAY_HACK_MSG="yes" | ||
16443 | cat >>confdefs.h <<\_ACEOF | ||
16444 | @%:@define IPADDR_IN_DISPLAY 1 | ||
16445 | _ACEOF | ||
16446 | |||
16447 | else | ||
16448 | DISPLAY_HACK_MSG="no" | ||
16449 | |||
16450 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
16451 | if test "${with_ipaddr_display+set}" = set; then | ||
16452 | withval="$with_ipaddr_display" | ||
16453 | |||
16454 | if test "x$withval" != "xno" ; then | ||
16455 | cat >>confdefs.h <<\_ACEOF | ||
16456 | @%:@define IPADDR_IN_DISPLAY 1 | ||
16457 | _ACEOF | ||
16458 | |||
16459 | DISPLAY_HACK_MSG="yes" | ||
16460 | fi | ||
16461 | |||
16462 | |||
16463 | fi; | ||
16464 | fi | ||
16465 | |||
16466 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
16467 | $ac_cv_header_login_cap_h = "yes" ; then | ||
16468 | USES_LOGIN_CONF=yes | ||
16469 | fi | ||
16470 | # Whether to mess with the default path | ||
16471 | SERVER_PATH_MSG="(default)" | ||
16472 | |||
16473 | # Check whether --with-default-path or --without-default-path was given. | ||
16474 | if test "${with_default_path+set}" = set; then | ||
16475 | withval="$with_default_path" | ||
16476 | |||
16477 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16478 | { echo "$as_me:$LINENO: WARNING: | ||
16479 | --with-default-path=PATH has no effect on this system. | ||
16480 | Edit /etc/login.conf instead." >&5 | ||
16481 | echo "$as_me: WARNING: | ||
16482 | --with-default-path=PATH has no effect on this system. | ||
16483 | Edit /etc/login.conf instead." >&2;} | ||
16484 | elif test "x$withval" != "xno" ; then | ||
16485 | user_path="$withval" | ||
16486 | SERVER_PATH_MSG="$withval" | ||
16487 | fi | ||
16488 | |||
16489 | else | ||
16490 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16491 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16492 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16493 | else | ||
16494 | if test "$cross_compiling" = yes; then | ||
16495 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16496 | |||
16497 | else | ||
16498 | cat >conftest.$ac_ext <<_ACEOF | ||
16499 | #line $LINENO "configure" | ||
16500 | #include "confdefs.h" | ||
16501 | |||
16502 | /* find out what STDPATH is */ | ||
16503 | #include <stdio.h> | ||
16504 | #ifdef HAVE_PATHS_H | ||
16505 | # include <paths.h> | ||
16506 | #endif | ||
16507 | #ifndef _PATH_STDPATH | ||
16508 | # ifdef _PATH_USERPATH /* Irix */ | ||
16509 | # define _PATH_STDPATH _PATH_USERPATH | ||
16510 | # else | ||
16511 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16512 | # endif | ||
16513 | #endif | ||
16514 | #include <sys/types.h> | ||
16515 | #include <sys/stat.h> | ||
16516 | #include <fcntl.h> | ||
16517 | #define DATA "conftest.stdpath" | ||
16518 | |||
16519 | main() | ||
16520 | { | ||
16521 | FILE *fd; | ||
16522 | int rc; | ||
16523 | |||
16524 | fd = fopen(DATA,"w"); | ||
16525 | if(fd == NULL) | ||
16526 | exit(1); | ||
16527 | |||
16528 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16529 | exit(1); | ||
16530 | |||
16531 | exit(0); | ||
16532 | } | ||
16533 | |||
16534 | _ACEOF | ||
16535 | rm -f conftest$ac_exeext | ||
16536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16537 | (eval $ac_link) 2>&5 | ||
16538 | ac_status=$? | ||
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16542 | (eval $ac_try) 2>&5 | ||
16543 | ac_status=$? | ||
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16545 | (exit $ac_status); }; }; then | ||
16546 | user_path=`cat conftest.stdpath` | ||
16547 | else | ||
16548 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16549 | echo "$as_me: failed program was:" >&5 | ||
16550 | cat conftest.$ac_ext >&5 | ||
16551 | ( exit $ac_status ) | ||
16552 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16553 | fi | ||
16554 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16555 | fi | ||
16556 | # make sure $bindir is in USER_PATH so scp will work | ||
16557 | t_bindir=`eval echo ${bindir}` | ||
16558 | case $t_bindir in | ||
16559 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16560 | esac | ||
16561 | case $t_bindir in | ||
16562 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16563 | esac | ||
16564 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16565 | if test $? -ne 0 ; then | ||
16566 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16567 | if test $? -ne 0 ; then | ||
16568 | user_path=$user_path:$t_bindir | ||
16569 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16570 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
16571 | fi | ||
16572 | fi | ||
16573 | fi | ||
16574 | |||
16575 | fi; | ||
16576 | if test "$USES_LOGIN_CONF" != "yes" ; then | ||
16577 | cat >>confdefs.h <<_ACEOF | ||
16578 | @%:@define USER_PATH "$user_path" | ||
16579 | _ACEOF | ||
16580 | |||
16581 | |||
16582 | fi | ||
16583 | |||
16584 | # Set superuser path separately to user path | ||
16585 | |||
16586 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
16587 | if test "${with_superuser_path+set}" = set; then | ||
16588 | withval="$with_superuser_path" | ||
16589 | |||
16590 | if test "x$withval" != "xno" ; then | ||
16591 | cat >>confdefs.h <<_ACEOF | ||
16592 | @%:@define SUPERUSER_PATH "$withval" | ||
16593 | _ACEOF | ||
16594 | |||
16595 | superuser_path=$withval | ||
16596 | fi | ||
16597 | |||
16598 | |||
16599 | fi; | ||
16600 | |||
16601 | |||
16602 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
16603 | IPV4_HACK_MSG="no" | ||
16604 | |||
16605 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
16606 | if test "${with_ipv4_default+set}" = set; then | ||
16607 | withval="$with_ipv4_default" | ||
16608 | |||
16609 | if test "x$withval" != "xno" ; then | ||
16610 | cat >>confdefs.h <<\_ACEOF | ||
16611 | @%:@define IPV4_DEFAULT 1 | ||
16612 | _ACEOF | ||
16613 | |||
16614 | IPV4_HACK_MSG="yes" | ||
16615 | fi | ||
16616 | |||
16617 | |||
16618 | fi; | ||
16619 | |||
16620 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16621 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
16622 | IPV4_IN6_HACK_MSG="no" | ||
16623 | |||
16624 | # Check whether --with-4in6 or --without-4in6 was given. | ||
16625 | if test "${with_4in6+set}" = set; then | ||
16626 | withval="$with_4in6" | ||
16627 | |||
16628 | if test "x$withval" != "xno" ; then | ||
16629 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16630 | echo "${ECHO_T}yes" >&6 | ||
16631 | cat >>confdefs.h <<\_ACEOF | ||
16632 | @%:@define IPV4_IN_IPV6 1 | ||
16633 | _ACEOF | ||
16634 | |||
16635 | IPV4_IN6_HACK_MSG="yes" | ||
16636 | else | ||
16637 | echo "$as_me:$LINENO: result: no" >&5 | ||
16638 | echo "${ECHO_T}no" >&6 | ||
16639 | fi | ||
16640 | |||
16641 | else | ||
16642 | |||
16643 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16644 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
16645 | echo "${ECHO_T}yes (default)" >&6 | ||
16646 | cat >>confdefs.h <<\_ACEOF | ||
16647 | @%:@define IPV4_IN_IPV6 1 | ||
16648 | _ACEOF | ||
16649 | |||
16650 | IPV4_IN6_HACK_MSG="yes" | ||
16651 | else | ||
16652 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
16653 | echo "${ECHO_T}no (default)" >&6 | ||
16654 | fi | ||
16655 | |||
16656 | |||
16657 | fi; | ||
16658 | |||
16659 | # Whether to enable BSD auth support | ||
16660 | BSD_AUTH_MSG=no | ||
16661 | |||
16662 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
16663 | if test "${with_bsd_auth+set}" = set; then | ||
16664 | withval="$with_bsd_auth" | ||
16665 | |||
16666 | if test "x$withval" != "xno" ; then | ||
16667 | cat >>confdefs.h <<\_ACEOF | ||
16668 | @%:@define BSD_AUTH 1 | ||
16669 | _ACEOF | ||
16670 | |||
16671 | BSD_AUTH_MSG=yes | ||
16672 | fi | ||
16673 | |||
16674 | |||
16675 | fi; | ||
16676 | |||
16677 | # Where to place sshd.pid | ||
16678 | piddir=/var/run | ||
16679 | # make sure the directory exists | ||
16680 | if test ! -d $piddir ; then | ||
16681 | piddir=`eval echo ${sysconfdir}` | ||
16682 | case $piddir in | ||
16683 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16684 | esac | ||
16685 | fi | ||
16686 | |||
16687 | |||
16688 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
16689 | if test "${with_pid_dir+set}" = set; then | ||
16690 | withval="$with_pid_dir" | ||
16691 | |||
16692 | if test "x$withval" != "xno" ; then | ||
16693 | piddir=$withval | ||
16694 | if test ! -d $piddir ; then | ||
16695 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
16696 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16697 | fi | ||
16698 | fi | ||
16699 | |||
16700 | |||
16701 | fi; | ||
16702 | |||
16703 | cat >>confdefs.h <<_ACEOF | ||
16704 | @%:@define _PATH_SSH_PIDDIR "$piddir" | ||
16705 | _ACEOF | ||
16706 | |||
16707 | |||
16708 | |||
16709 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
16710 | if test "${enable_lastlog+set}" = set; then | ||
16711 | enableval="$enable_lastlog" | ||
16712 | cat >>confdefs.h <<\_ACEOF | ||
16713 | @%:@define DISABLE_LASTLOG 1 | ||
16714 | _ACEOF | ||
16715 | |||
16716 | |||
16717 | fi; | ||
16718 | # Check whether --enable-utmp or --disable-utmp was given. | ||
16719 | if test "${enable_utmp+set}" = set; then | ||
16720 | enableval="$enable_utmp" | ||
16721 | cat >>confdefs.h <<\_ACEOF | ||
16722 | @%:@define DISABLE_UTMP 1 | ||
16723 | _ACEOF | ||
16724 | |||
16725 | |||
16726 | fi; | ||
16727 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
16728 | if test "${enable_utmpx+set}" = set; then | ||
16729 | enableval="$enable_utmpx" | ||
16730 | cat >>confdefs.h <<\_ACEOF | ||
16731 | @%:@define DISABLE_UTMPX 1 | ||
16732 | _ACEOF | ||
16733 | |||
16734 | |||
16735 | fi; | ||
16736 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
16737 | if test "${enable_wtmp+set}" = set; then | ||
16738 | enableval="$enable_wtmp" | ||
16739 | cat >>confdefs.h <<\_ACEOF | ||
16740 | @%:@define DISABLE_WTMP 1 | ||
16741 | _ACEOF | ||
16742 | |||
16743 | |||
16744 | fi; | ||
16745 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
16746 | if test "${enable_wtmpx+set}" = set; then | ||
16747 | enableval="$enable_wtmpx" | ||
16748 | cat >>confdefs.h <<\_ACEOF | ||
16749 | @%:@define DISABLE_WTMPX 1 | ||
16750 | _ACEOF | ||
16751 | |||
16752 | |||
16753 | fi; | ||
16754 | # Check whether --enable-libutil or --disable-libutil was given. | ||
16755 | if test "${enable_libutil+set}" = set; then | ||
16756 | enableval="$enable_libutil" | ||
16757 | cat >>confdefs.h <<\_ACEOF | ||
16758 | @%:@define DISABLE_LOGIN 1 | ||
16759 | _ACEOF | ||
16760 | |||
16761 | |||
16762 | fi; | ||
16763 | # Check whether --enable-pututline or --disable-pututline was given. | ||
16764 | if test "${enable_pututline+set}" = set; then | ||
16765 | enableval="$enable_pututline" | ||
16766 | cat >>confdefs.h <<\_ACEOF | ||
16767 | @%:@define DISABLE_PUTUTLINE 1 | ||
16768 | _ACEOF | ||
16769 | |||
16770 | |||
16771 | fi; | ||
16772 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
16773 | if test "${enable_pututxline+set}" = set; then | ||
16774 | enableval="$enable_pututxline" | ||
16775 | cat >>confdefs.h <<\_ACEOF | ||
16776 | @%:@define DISABLE_PUTUTXLINE 1 | ||
16777 | _ACEOF | ||
16778 | |||
16779 | |||
16780 | fi; | ||
16781 | |||
16782 | # Check whether --with-lastlog or --without-lastlog was given. | ||
16783 | if test "${with_lastlog+set}" = set; then | ||
16784 | withval="$with_lastlog" | ||
16785 | |||
16786 | if test "x$withval" = "xno" ; then | ||
16787 | cat >>confdefs.h <<\_ACEOF | ||
16788 | @%:@define DISABLE_LASTLOG 1 | ||
16789 | _ACEOF | ||
16790 | |||
16791 | else | ||
16792 | conf_lastlog_location=$withval | ||
16793 | fi | ||
16794 | |||
16795 | |||
16796 | fi; | ||
16797 | |||
16798 | |||
16799 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
16800 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
16801 | cat >conftest.$ac_ext <<_ACEOF | ||
16802 | #line $LINENO "configure" | ||
16803 | #include "confdefs.h" | ||
16804 | |||
16805 | #include <sys/types.h> | ||
16806 | #include <utmp.h> | ||
16807 | #ifdef HAVE_LASTLOG_H | ||
16808 | # include <lastlog.h> | ||
16809 | #endif | ||
16810 | #ifdef HAVE_PATHS_H | ||
16811 | # include <paths.h> | ||
16812 | #endif | ||
16813 | #ifdef HAVE_LOGIN_H | ||
16814 | # include <login.h> | ||
16815 | #endif | ||
16816 | |||
16817 | #ifdef F77_DUMMY_MAIN | ||
16818 | # ifdef __cplusplus | ||
16819 | extern "C" | ||
16820 | # endif | ||
16821 | int F77_DUMMY_MAIN() { return 1; } | ||
16822 | #endif | ||
16823 | int | ||
16824 | main () | ||
16825 | { | ||
16826 | char *lastlog = LASTLOG_FILE; | ||
16827 | ; | ||
16828 | return 0; | ||
16829 | } | ||
16830 | _ACEOF | ||
16831 | rm -f conftest.$ac_objext | ||
16832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16833 | (eval $ac_compile) 2>&5 | ||
16834 | ac_status=$? | ||
16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16836 | (exit $ac_status); } && | ||
16837 | { ac_try='test -s conftest.$ac_objext' | ||
16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16839 | (eval $ac_try) 2>&5 | ||
16840 | ac_status=$? | ||
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16842 | (exit $ac_status); }; }; then | ||
16843 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16844 | echo "${ECHO_T}yes" >&6 | ||
16845 | else | ||
16846 | echo "$as_me: failed program was:" >&5 | ||
16847 | cat conftest.$ac_ext >&5 | ||
16848 | |||
16849 | echo "$as_me:$LINENO: result: no" >&5 | ||
16850 | echo "${ECHO_T}no" >&6 | ||
16851 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
16852 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
16853 | cat >conftest.$ac_ext <<_ACEOF | ||
16854 | #line $LINENO "configure" | ||
16855 | #include "confdefs.h" | ||
16856 | |||
16857 | #include <sys/types.h> | ||
16858 | #include <utmp.h> | ||
16859 | #ifdef HAVE_LASTLOG_H | ||
16860 | # include <lastlog.h> | ||
16861 | #endif | ||
16862 | #ifdef HAVE_PATHS_H | ||
16863 | # include <paths.h> | ||
16864 | #endif | ||
16865 | |||
16866 | #ifdef F77_DUMMY_MAIN | ||
16867 | # ifdef __cplusplus | ||
16868 | extern "C" | ||
16869 | # endif | ||
16870 | int F77_DUMMY_MAIN() { return 1; } | ||
16871 | #endif | ||
16872 | int | ||
16873 | main () | ||
16874 | { | ||
16875 | char *lastlog = _PATH_LASTLOG; | ||
16876 | ; | ||
16877 | return 0; | ||
16878 | } | ||
16879 | _ACEOF | ||
16880 | rm -f conftest.$ac_objext | ||
16881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16882 | (eval $ac_compile) 2>&5 | ||
16883 | ac_status=$? | ||
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16885 | (exit $ac_status); } && | ||
16886 | { ac_try='test -s conftest.$ac_objext' | ||
16887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16888 | (eval $ac_try) 2>&5 | ||
16889 | ac_status=$? | ||
16890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16891 | (exit $ac_status); }; }; then | ||
16892 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16893 | echo "${ECHO_T}yes" >&6 | ||
16894 | else | ||
16895 | echo "$as_me: failed program was:" >&5 | ||
16896 | cat conftest.$ac_ext >&5 | ||
16897 | |||
16898 | echo "$as_me:$LINENO: result: no" >&5 | ||
16899 | echo "${ECHO_T}no" >&6 | ||
16900 | system_lastlog_path=no | ||
16901 | |||
16902 | fi | ||
16903 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16904 | |||
16905 | |||
16906 | fi | ||
16907 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16908 | |||
16909 | if test -z "$conf_lastlog_location"; then | ||
16910 | if test x"$system_lastlog_path" = x"no" ; then | ||
16911 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16912 | if (test -d "$f" || test -f "$f") ; then | ||
16913 | conf_lastlog_location=$f | ||
16914 | fi | ||
16915 | done | ||
16916 | if test -z "$conf_lastlog_location"; then | ||
16917 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
16918 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16919 | fi | ||
16920 | fi | ||
16921 | fi | ||
16922 | |||
16923 | if test -n "$conf_lastlog_location"; then | ||
16924 | cat >>confdefs.h <<_ACEOF | ||
16925 | @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16926 | _ACEOF | ||
16927 | |||
16928 | fi | ||
16929 | |||
16930 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
16931 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
16932 | cat >conftest.$ac_ext <<_ACEOF | ||
16933 | #line $LINENO "configure" | ||
16934 | #include "confdefs.h" | ||
16935 | |||
16936 | #include <sys/types.h> | ||
16937 | #include <utmp.h> | ||
16938 | #ifdef HAVE_PATHS_H | ||
16939 | # include <paths.h> | ||
16940 | #endif | ||
16941 | |||
16942 | #ifdef F77_DUMMY_MAIN | ||
16943 | # ifdef __cplusplus | ||
16944 | extern "C" | ||
16945 | # endif | ||
16946 | int F77_DUMMY_MAIN() { return 1; } | ||
16947 | #endif | ||
16948 | int | ||
16949 | main () | ||
16950 | { | ||
16951 | char *utmp = UTMP_FILE; | ||
16952 | ; | ||
16953 | return 0; | ||
16954 | } | ||
16955 | _ACEOF | ||
16956 | rm -f conftest.$ac_objext | ||
16957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16958 | (eval $ac_compile) 2>&5 | ||
16959 | ac_status=$? | ||
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16961 | (exit $ac_status); } && | ||
16962 | { ac_try='test -s conftest.$ac_objext' | ||
16963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16964 | (eval $ac_try) 2>&5 | ||
16965 | ac_status=$? | ||
16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16967 | (exit $ac_status); }; }; then | ||
16968 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16969 | echo "${ECHO_T}yes" >&6 | ||
16970 | else | ||
16971 | echo "$as_me: failed program was:" >&5 | ||
16972 | cat conftest.$ac_ext >&5 | ||
16973 | echo "$as_me:$LINENO: result: no" >&5 | ||
16974 | echo "${ECHO_T}no" >&6 | ||
16975 | system_utmp_path=no | ||
16976 | |||
16977 | fi | ||
16978 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16979 | if test -z "$conf_utmp_location"; then | ||
16980 | if test x"$system_utmp_path" = x"no" ; then | ||
16981 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16982 | if test -f $f ; then | ||
16983 | conf_utmp_location=$f | ||
16984 | fi | ||
16985 | done | ||
16986 | if test -z "$conf_utmp_location"; then | ||
16987 | cat >>confdefs.h <<\_ACEOF | ||
16988 | @%:@define DISABLE_UTMP 1 | ||
16989 | _ACEOF | ||
16990 | |||
16991 | fi | ||
16992 | fi | ||
16993 | fi | ||
16994 | if test -n "$conf_utmp_location"; then | ||
16995 | cat >>confdefs.h <<_ACEOF | ||
16996 | @%:@define CONF_UTMP_FILE "$conf_utmp_location" | ||
16997 | _ACEOF | ||
16998 | |||
16999 | fi | ||
17000 | |||
17001 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
17002 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
17003 | cat >conftest.$ac_ext <<_ACEOF | ||
17004 | #line $LINENO "configure" | ||
17005 | #include "confdefs.h" | ||
17006 | |||
17007 | #include <sys/types.h> | ||
17008 | #include <utmp.h> | ||
17009 | #ifdef HAVE_PATHS_H | ||
17010 | # include <paths.h> | ||
17011 | #endif | ||
17012 | |||
17013 | #ifdef F77_DUMMY_MAIN | ||
17014 | # ifdef __cplusplus | ||
17015 | extern "C" | ||
17016 | # endif | ||
17017 | int F77_DUMMY_MAIN() { return 1; } | ||
17018 | #endif | ||
17019 | int | ||
17020 | main () | ||
17021 | { | ||
17022 | char *wtmp = WTMP_FILE; | ||
17023 | ; | ||
17024 | return 0; | ||
17025 | } | ||
17026 | _ACEOF | ||
17027 | rm -f conftest.$ac_objext | ||
17028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17029 | (eval $ac_compile) 2>&5 | ||
17030 | ac_status=$? | ||
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17032 | (exit $ac_status); } && | ||
17033 | { ac_try='test -s conftest.$ac_objext' | ||
17034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17035 | (eval $ac_try) 2>&5 | ||
17036 | ac_status=$? | ||
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17038 | (exit $ac_status); }; }; then | ||
17039 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17040 | echo "${ECHO_T}yes" >&6 | ||
17041 | else | ||
17042 | echo "$as_me: failed program was:" >&5 | ||
17043 | cat conftest.$ac_ext >&5 | ||
17044 | echo "$as_me:$LINENO: result: no" >&5 | ||
17045 | echo "${ECHO_T}no" >&6 | ||
17046 | system_wtmp_path=no | ||
17047 | |||
17048 | fi | ||
17049 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17050 | if test -z "$conf_wtmp_location"; then | ||
17051 | if test x"$system_wtmp_path" = x"no" ; then | ||
17052 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
17053 | if test -f $f ; then | ||
17054 | conf_wtmp_location=$f | ||
17055 | fi | ||
17056 | done | ||
17057 | if test -z "$conf_wtmp_location"; then | ||
17058 | cat >>confdefs.h <<\_ACEOF | ||
17059 | @%:@define DISABLE_WTMP 1 | ||
17060 | _ACEOF | ||
17061 | |||
17062 | fi | ||
17063 | fi | ||
17064 | fi | ||
17065 | if test -n "$conf_wtmp_location"; then | ||
17066 | cat >>confdefs.h <<_ACEOF | ||
17067 | @%:@define CONF_WTMP_FILE "$conf_wtmp_location" | ||
17068 | _ACEOF | ||
17069 | |||
17070 | fi | ||
17071 | |||
17072 | |||
17073 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
17074 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
17075 | cat >conftest.$ac_ext <<_ACEOF | ||
17076 | #line $LINENO "configure" | ||
17077 | #include "confdefs.h" | ||
17078 | |||
17079 | #include <sys/types.h> | ||
17080 | #include <utmp.h> | ||
17081 | #ifdef HAVE_UTMPX_H | ||
17082 | #include <utmpx.h> | ||
17083 | #endif | ||
17084 | #ifdef HAVE_PATHS_H | ||
17085 | # include <paths.h> | ||
17086 | #endif | ||
17087 | |||
17088 | #ifdef F77_DUMMY_MAIN | ||
17089 | # ifdef __cplusplus | ||
17090 | extern "C" | ||
17091 | # endif | ||
17092 | int F77_DUMMY_MAIN() { return 1; } | ||
17093 | #endif | ||
17094 | int | ||
17095 | main () | ||
17096 | { | ||
17097 | char *utmpx = UTMPX_FILE; | ||
17098 | ; | ||
17099 | return 0; | ||
17100 | } | ||
17101 | _ACEOF | ||
17102 | rm -f conftest.$ac_objext | ||
17103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17104 | (eval $ac_compile) 2>&5 | ||
17105 | ac_status=$? | ||
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17107 | (exit $ac_status); } && | ||
17108 | { ac_try='test -s conftest.$ac_objext' | ||
17109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17110 | (eval $ac_try) 2>&5 | ||
17111 | ac_status=$? | ||
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17113 | (exit $ac_status); }; }; then | ||
17114 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17115 | echo "${ECHO_T}yes" >&6 | ||
17116 | else | ||
17117 | echo "$as_me: failed program was:" >&5 | ||
17118 | cat conftest.$ac_ext >&5 | ||
17119 | echo "$as_me:$LINENO: result: no" >&5 | ||
17120 | echo "${ECHO_T}no" >&6 | ||
17121 | system_utmpx_path=no | ||
17122 | |||
17123 | fi | ||
17124 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17125 | if test -z "$conf_utmpx_location"; then | ||
17126 | if test x"$system_utmpx_path" = x"no" ; then | ||
17127 | cat >>confdefs.h <<\_ACEOF | ||
17128 | @%:@define DISABLE_UTMPX 1 | ||
17129 | _ACEOF | ||
17130 | |||
17131 | fi | ||
17132 | else | ||
17133 | cat >>confdefs.h <<_ACEOF | ||
17134 | @%:@define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
17135 | _ACEOF | ||
17136 | |||
17137 | fi | ||
17138 | |||
17139 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
17140 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
17141 | cat >conftest.$ac_ext <<_ACEOF | ||
17142 | #line $LINENO "configure" | ||
17143 | #include "confdefs.h" | ||
17144 | |||
17145 | #include <sys/types.h> | ||
17146 | #include <utmp.h> | ||
17147 | #ifdef HAVE_UTMPX_H | ||
17148 | #include <utmpx.h> | ||
17149 | #endif | ||
17150 | #ifdef HAVE_PATHS_H | ||
17151 | # include <paths.h> | ||
17152 | #endif | ||
17153 | |||
17154 | #ifdef F77_DUMMY_MAIN | ||
17155 | # ifdef __cplusplus | ||
17156 | extern "C" | ||
17157 | # endif | ||
17158 | int F77_DUMMY_MAIN() { return 1; } | ||
17159 | #endif | ||
17160 | int | ||
17161 | main () | ||
17162 | { | ||
17163 | char *wtmpx = WTMPX_FILE; | ||
17164 | ; | ||
17165 | return 0; | ||
17166 | } | ||
17167 | _ACEOF | ||
17168 | rm -f conftest.$ac_objext | ||
17169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17170 | (eval $ac_compile) 2>&5 | ||
17171 | ac_status=$? | ||
17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17173 | (exit $ac_status); } && | ||
17174 | { ac_try='test -s conftest.$ac_objext' | ||
17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17176 | (eval $ac_try) 2>&5 | ||
17177 | ac_status=$? | ||
17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17179 | (exit $ac_status); }; }; then | ||
17180 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17181 | echo "${ECHO_T}yes" >&6 | ||
17182 | else | ||
17183 | echo "$as_me: failed program was:" >&5 | ||
17184 | cat conftest.$ac_ext >&5 | ||
17185 | echo "$as_me:$LINENO: result: no" >&5 | ||
17186 | echo "${ECHO_T}no" >&6 | ||
17187 | system_wtmpx_path=no | ||
17188 | |||
17189 | fi | ||
17190 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17191 | if test -z "$conf_wtmpx_location"; then | ||
17192 | if test x"$system_wtmpx_path" = x"no" ; then | ||
17193 | cat >>confdefs.h <<\_ACEOF | ||
17194 | @%:@define DISABLE_WTMPX 1 | ||
17195 | _ACEOF | ||
17196 | |||
17197 | fi | ||
17198 | else | ||
17199 | cat >>confdefs.h <<_ACEOF | ||
17200 | @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
17201 | _ACEOF | ||
17202 | |||
17203 | fi | ||
17204 | |||
17205 | |||
17206 | if test ! -z "$blibpath" ; then | ||
17207 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
17208 | { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5 | ||
17209 | echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;} | ||
17210 | fi | ||
17211 | |||
17212 | if test "$PAM_MSG" = yes ; then | ||
17213 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
17214 | fi | ||
17215 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
17216 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
17217 | fi | ||
17218 | |||
17219 | |||
17220 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
17221 | |||
17222 | cat >confcache <<\_ACEOF | ||
17223 | # This file is a shell script that caches the results of configure | ||
17224 | # tests run on this system so they can be shared between configure | ||
17225 | # scripts and configure runs, see configure's option --config-cache. | ||
17226 | # It is not useful on other systems. If it contains results you don't | ||
17227 | # want to keep, you may remove or edit it. | ||
17228 | # | ||
17229 | # config.status only pays attention to the cache file if you give it | ||
17230 | # the --recheck option to rerun configure. | ||
17231 | # | ||
17232 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
17233 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
17234 | # following values. | ||
17235 | |||
17236 | _ACEOF | ||
17237 | |||
17238 | # The following way of writing the cache mishandles newlines in values, | ||
17239 | # but we know of no workaround that is simple, portable, and efficient. | ||
17240 | # So, don't put newlines in cache variables' values. | ||
17241 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
17242 | # and sets the high bit in the cache file unless we assign to the vars. | ||
17243 | { | ||
17244 | (set) 2>&1 | | ||
17245 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
17246 | *ac_space=\ *) | ||
17247 | # `set' does not quote correctly, so add quotes (double-quote | ||
17248 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
17249 | sed -n \ | ||
17250 | "s/'/'\\\\''/g; | ||
17251 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
17252 | ;; | ||
17253 | *) | ||
17254 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
17255 | sed -n \ | ||
17256 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
17257 | ;; | ||
17258 | esac; | ||
17259 | } | | ||
17260 | sed ' | ||
17261 | t clear | ||
17262 | : clear | ||
17263 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
17264 | t end | ||
17265 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
17266 | : end' >>confcache | ||
17267 | if cmp -s $cache_file confcache; then :; else | ||
17268 | if test -w $cache_file; then | ||
17269 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
17270 | cat confcache >$cache_file | ||
17271 | else | ||
17272 | echo "not updating unwritable cache $cache_file" | ||
17273 | fi | ||
17274 | fi | ||
17275 | rm -f confcache | ||
17276 | |||
17277 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
17278 | # Let make expand exec_prefix. | ||
17279 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
17280 | |||
17281 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
17282 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
17283 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17284 | # (actually we leave an empty line to preserve line numbers). | ||
17285 | if test "x$srcdir" = x.; then | ||
17286 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
17287 | s/:*\$(srcdir):*/:/; | ||
17288 | s/:*\${srcdir}:*/:/; | ||
17289 | s/:*@srcdir@:*/:/; | ||
17290 | s/^\([^=]*=[ ]*\):*/\1/; | ||
17291 | s/:*$//; | ||
17292 | s/^[^=]*=[ ]*$//; | ||
17293 | }' | ||
17294 | fi | ||
17295 | |||
17296 | DEFS=-DHAVE_CONFIG_H | ||
17297 | |||
17298 | |||
17299 | : ${CONFIG_STATUS=./config.status} | ||
17300 | ac_clean_files_save=$ac_clean_files | ||
17301 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
17302 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
17303 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
17304 | cat >$CONFIG_STATUS <<_ACEOF | ||
17305 | #! $SHELL | ||
17306 | # Generated by $as_me. | ||
17307 | # Run this file to recreate the current configuration. | ||
17308 | # Compiler output produced by configure, useful for debugging | ||
17309 | # configure, is in config.log if it exists. | ||
17310 | |||
17311 | debug=false | ||
17312 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
17313 | _ACEOF | ||
17314 | |||
17315 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17316 | |||
17317 | ## --------------------- ## | ||
17318 | ## M4sh Initialization. ## | ||
17319 | ## --------------------- ## | ||
17320 | |||
17321 | # Be Bourne compatible | ||
17322 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17323 | emulate sh | ||
17324 | NULLCMD=: | ||
17325 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
17326 | set -o posix | ||
17327 | fi | ||
17328 | |||
17329 | # NLS nuisances. | ||
17330 | # Support unset when possible. | ||
17331 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
17332 | as_unset=unset | ||
17333 | else | ||
17334 | as_unset=false | ||
17335 | fi | ||
17336 | |||
17337 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
17338 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
17339 | { LANG=C; export LANG; } | ||
17340 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
17341 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
17342 | { LC_ALL=C; export LC_ALL; } | ||
17343 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
17344 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
17345 | { LC_TIME=C; export LC_TIME; } | ||
17346 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
17347 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
17348 | { LC_CTYPE=C; export LC_CTYPE; } | ||
17349 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
17350 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
17351 | { LANGUAGE=C; export LANGUAGE; } | ||
17352 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
17353 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
17354 | { LC_COLLATE=C; export LC_COLLATE; } | ||
17355 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
17356 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
17357 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
17358 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
17359 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
17360 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
17361 | |||
17362 | |||
17363 | # Name of the executable. | ||
17364 | as_me=`(basename "$0") 2>/dev/null || | ||
17365 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
17366 | X"$0" : 'X\(//\)$' \| \ | ||
17367 | X"$0" : 'X\(/\)$' \| \ | ||
17368 | . : '\(.\)' 2>/dev/null || | ||
17369 | echo X/"$0" | | ||
17370 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
17371 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
17372 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
17373 | s/.*/./; q'` | ||
17374 | |||
17375 | # PATH needs CR, and LINENO needs CR and PATH. | ||
17376 | # Avoid depending upon Character Ranges. | ||
17377 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
17378 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
17379 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
17380 | as_cr_digits='0123456789' | ||
17381 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
17382 | |||
17383 | # The user is always right. | ||
17384 | if test "${PATH_SEPARATOR+set}" != set; then | ||
17385 | echo "#! /bin/sh" >conftest.sh | ||
17386 | echo "exit 0" >>conftest.sh | ||
17387 | chmod +x conftest.sh | ||
17388 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
17389 | PATH_SEPARATOR=';' | ||
17390 | else | ||
17391 | PATH_SEPARATOR=: | ||
17392 | fi | ||
17393 | rm -f conftest.sh | ||
17394 | fi | ||
17395 | |||
17396 | |||
17397 | as_lineno_1=$LINENO | ||
17398 | as_lineno_2=$LINENO | ||
17399 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
17400 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
17401 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
17402 | # Find who we are. Look in the path if we contain no path at all | ||
17403 | # relative or not. | ||
17404 | case $0 in | ||
17405 | *[\\/]* ) as_myself=$0 ;; | ||
17406 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17407 | for as_dir in $PATH | ||
17408 | do | ||
17409 | IFS=$as_save_IFS | ||
17410 | test -z "$as_dir" && as_dir=. | ||
17411 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
17412 | done | ||
17413 | |||
17414 | ;; | ||
17415 | esac | ||
17416 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
17417 | # in which case we are not to be found in the path. | ||
17418 | if test "x$as_myself" = x; then | ||
17419 | as_myself=$0 | ||
17420 | fi | ||
17421 | if test ! -f "$as_myself"; then | ||
17422 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
17423 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
17424 | { (exit 1); exit 1; }; } | ||
17425 | fi | ||
17426 | case $CONFIG_SHELL in | ||
17427 | '') | ||
17428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17429 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
17430 | do | ||
17431 | IFS=$as_save_IFS | ||
17432 | test -z "$as_dir" && as_dir=. | ||
17433 | for as_base in sh bash ksh sh5; do | ||
17434 | case $as_dir in | ||
17435 | /*) | ||
17436 | if ("$as_dir/$as_base" -c ' | ||
17437 | as_lineno_1=$LINENO | ||
17438 | as_lineno_2=$LINENO | ||
17439 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
17440 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
17441 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
17442 | CONFIG_SHELL=$as_dir/$as_base | ||
17443 | export CONFIG_SHELL | ||
17444 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
17445 | fi;; | ||
17446 | esac | ||
17447 | done | ||
17448 | done | ||
17449 | ;; | ||
17450 | esac | ||
17451 | |||
17452 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
17453 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
17454 | # line-number line before each line; the second 'sed' does the real | ||
17455 | # work. The second script uses 'N' to pair each line-number line | ||
17456 | # with the numbered line, and appends trailing '-' during | ||
17457 | # substitution so that $LINENO is not a special case at line end. | ||
17458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
17459 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
17460 | sed '=' <$as_myself | | ||
17461 | sed ' | ||
17462 | N | ||
17463 | s,$,-, | ||
17464 | : loop | ||
17465 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
17466 | t loop | ||
17467 | s,-$,, | ||
17468 | s,^['$as_cr_digits']*\n,, | ||
17469 | ' >$as_me.lineno && | ||
17470 | chmod +x $as_me.lineno || | ||
17471 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
17472 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
17473 | { (exit 1); exit 1; }; } | ||
17474 | |||
17475 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
17476 | # (the dirname of $[0] is not the place where we might find the | ||
17477 | # original and so on. Autoconf is especially sensible to this). | ||
17478 | . ./$as_me.lineno | ||
17479 | # Exit status is that of the last command. | ||
17480 | exit | ||
17481 | } | ||
17482 | |||
17483 | |||
17484 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
17485 | *c*,-n*) ECHO_N= ECHO_C=' | ||
17486 | ' ECHO_T=' ' ;; | ||
17487 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
17488 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
17489 | esac | ||
17490 | |||
17491 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
17492 | as_expr=expr | ||
17493 | else | ||
17494 | as_expr=false | ||
17495 | fi | ||
17496 | |||
17497 | rm -f conf$$ conf$$.exe conf$$.file | ||
17498 | echo >conf$$.file | ||
17499 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17500 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
17501 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
17502 | if test -f conf$$.exe; then | ||
17503 | # Don't use ln at all; we don't have any links | ||
17504 | as_ln_s='cp -p' | ||
17505 | else | ||
17506 | as_ln_s='ln -s' | ||
17507 | fi | ||
17508 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17509 | as_ln_s=ln | ||
17510 | else | ||
17511 | as_ln_s='cp -p' | ||
17512 | fi | ||
17513 | rm -f conf$$ conf$$.exe conf$$.file | ||
17514 | |||
17515 | as_executable_p="test -f" | ||
17516 | |||
17517 | # Sed expression to map a string onto a valid CPP name. | ||
17518 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
17519 | |||
17520 | # Sed expression to map a string onto a valid variable name. | ||
17521 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
17522 | |||
17523 | |||
17524 | # IFS | ||
17525 | # We need space, tab and new line, in precisely that order. | ||
17526 | as_nl=' | ||
17527 | ' | ||
17528 | IFS=" $as_nl" | ||
17529 | |||
17530 | # CDPATH. | ||
17531 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
17532 | |||
17533 | exec 6>&1 | ||
17534 | |||
17535 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
17536 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17537 | # values after options handling. Logging --version etc. is OK. | ||
17538 | exec 5>>config.log | ||
17539 | { | ||
17540 | echo | ||
17541 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX | ||
17542 | @%:@@%:@ Running $as_me. @%:@@%:@ | ||
17543 | _ASBOX | ||
17544 | } >&5 | ||
17545 | cat >&5 <<_CSEOF | ||
17546 | |||
17547 | This file was extended by $as_me, which was | ||
17548 | generated by GNU Autoconf 2.53. Invocation command line was | ||
17549 | |||
17550 | CONFIG_FILES = $CONFIG_FILES | ||
17551 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17552 | CONFIG_LINKS = $CONFIG_LINKS | ||
17553 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17554 | $ $0 $@ | ||
17555 | |||
17556 | _CSEOF | ||
17557 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
17558 | echo >&5 | ||
17559 | _ACEOF | ||
17560 | |||
17561 | # Files that config.status was made for. | ||
17562 | if test -n "$ac_config_files"; then | ||
17563 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
17564 | fi | ||
17565 | |||
17566 | if test -n "$ac_config_headers"; then | ||
17567 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
17568 | fi | ||
17569 | |||
17570 | if test -n "$ac_config_links"; then | ||
17571 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
17572 | fi | ||
17573 | |||
17574 | if test -n "$ac_config_commands"; then | ||
17575 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
17576 | fi | ||
17577 | |||
17578 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17579 | |||
17580 | ac_cs_usage="\ | ||
17581 | \`$as_me' instantiates files from templates according to the | ||
17582 | current configuration. | ||
17583 | |||
17584 | Usage: $0 [OPTIONS] [FILE]... | ||
17585 | |||
17586 | -h, --help print this help, then exit | ||
17587 | -V, --version print version number, then exit | ||
17588 | -d, --debug don't remove temporary files | ||
17589 | --recheck update $as_me by reconfiguring in the same conditions | ||
17590 | --file=FILE[:TEMPLATE] | ||
17591 | instantiate the configuration file FILE | ||
17592 | --header=FILE[:TEMPLATE] | ||
17593 | instantiate the configuration header FILE | ||
17594 | |||
17595 | Configuration files: | ||
17596 | $config_files | ||
17597 | |||
17598 | Configuration headers: | ||
17599 | $config_headers | ||
17600 | |||
17601 | Report bugs to <bug-autoconf@gnu.org>." | ||
17602 | _ACEOF | ||
17603 | |||
17604 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17605 | ac_cs_version="\\ | ||
17606 | config.status | ||
17607 | configured by $0, generated by GNU Autoconf 2.53, | ||
17608 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
17609 | |||
17610 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
17611 | Free Software Foundation, Inc. | ||
17612 | This config.status script is free software; the Free Software Foundation | ||
17613 | gives unlimited permission to copy, distribute and modify it." | ||
17614 | srcdir=$srcdir | ||
17615 | INSTALL="$INSTALL" | ||
17616 | _ACEOF | ||
17617 | |||
17618 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17619 | # If no file are specified by the user, then we need to provide default | ||
17620 | # value. By we need to know if files were specified by the user. | ||
17621 | ac_need_defaults=: | ||
17622 | while test $# != 0 | ||
17623 | do | ||
17624 | case $1 in | ||
17625 | --*=*) | ||
17626 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
17627 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
17628 | shift | ||
17629 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
17630 | shift | ||
17631 | ;; | ||
17632 | -*);; | ||
17633 | *) # This is not an option, so the user has probably given explicit | ||
17634 | # arguments. | ||
17635 | ac_need_defaults=false;; | ||
17636 | esac | ||
17637 | |||
17638 | case $1 in | ||
17639 | # Handling of the options. | ||
17640 | _ACEOF | ||
17641 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17642 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17643 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
17644 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
17645 | _ACEOF | ||
17646 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17647 | --version | --vers* | -V ) | ||
17648 | echo "$ac_cs_version"; exit 0 ;; | ||
17649 | --he | --h) | ||
17650 | # Conflict between --help and --header | ||
17651 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
17652 | Try \`$0 --help' for more information." >&5 | ||
17653 | echo "$as_me: error: ambiguous option: $1 | ||
17654 | Try \`$0 --help' for more information." >&2;} | ||
17655 | { (exit 1); exit 1; }; };; | ||
17656 | --help | --hel | -h ) | ||
17657 | echo "$ac_cs_usage"; exit 0 ;; | ||
17658 | --debug | --d* | -d ) | ||
17659 | debug=: ;; | ||
17660 | --file | --fil | --fi | --f ) | ||
17661 | shift | ||
17662 | CONFIG_FILES="$CONFIG_FILES $1" | ||
17663 | ac_need_defaults=false;; | ||
17664 | --header | --heade | --head | --hea ) | ||
17665 | shift | ||
17666 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
17667 | ac_need_defaults=false;; | ||
17668 | |||
17669 | # This is an error. | ||
17670 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
17671 | Try \`$0 --help' for more information." >&5 | ||
17672 | echo "$as_me: error: unrecognized option: $1 | ||
17673 | Try \`$0 --help' for more information." >&2;} | ||
17674 | { (exit 1); exit 1; }; } ;; | ||
17675 | |||
17676 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
17677 | |||
17678 | esac | ||
17679 | shift | ||
17680 | done | ||
17681 | |||
17682 | _ACEOF | ||
17683 | |||
17684 | |||
17685 | |||
17686 | |||
17687 | |||
17688 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17689 | for ac_config_target in $ac_config_targets | ||
17690 | do | ||
17691 | case "$ac_config_target" in | ||
17692 | # Handling of arguments. | ||
17693 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17694 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17695 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
17696 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
17697 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17698 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
17699 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
17700 | { (exit 1); exit 1; }; };; | ||
17701 | esac | ||
17702 | done | ||
17703 | |||
17704 | # If the user did not use the arguments to specify the items to instantiate, | ||
17705 | # then the envvar interface is used. Set only those that are not. | ||
17706 | # We use the long form for the default assignment because of an extremely | ||
17707 | # bizarre bug on SunOS 4.1.3. | ||
17708 | if $ac_need_defaults; then | ||
17709 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17710 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17711 | fi | ||
17712 | |||
17713 | # Create a temporary directory, and hook for its removal unless debugging. | ||
17714 | $debug || | ||
17715 | { | ||
17716 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
17717 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
17718 | } | ||
17719 | |||
17720 | # Create a (secure) tmp directory for tmp files. | ||
17721 | : ${TMPDIR=/tmp} | ||
17722 | { | ||
17723 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
17724 | test -n "$tmp" && test -d "$tmp" | ||
17725 | } || | ||
17726 | { | ||
17727 | tmp=$TMPDIR/cs$$-$RANDOM | ||
17728 | (umask 077 && mkdir $tmp) | ||
17729 | } || | ||
17730 | { | ||
17731 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
17732 | { (exit 1); exit 1; } | ||
17733 | } | ||
17734 | |||
17735 | _ACEOF | ||
17736 | |||
17737 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17738 | |||
17739 | # | ||
17740 | # CONFIG_FILES section. | ||
17741 | # | ||
17742 | |||
17743 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
17744 | # This happens for instance when ./config.status config.h | ||
17745 | if test -n "\$CONFIG_FILES"; then | ||
17746 | # Protect against being on the right side of a sed subst in config.status. | ||
17747 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
17748 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
17749 | s,@SHELL@,$SHELL,;t t | ||
17750 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
17751 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
17752 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
17753 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
17754 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
17755 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
17756 | s,@exec_prefix@,$exec_prefix,;t t | ||
17757 | s,@prefix@,$prefix,;t t | ||
17758 | s,@program_transform_name@,$program_transform_name,;t t | ||
17759 | s,@bindir@,$bindir,;t t | ||
17760 | s,@sbindir@,$sbindir,;t t | ||
17761 | s,@libexecdir@,$libexecdir,;t t | ||
17762 | s,@datadir@,$datadir,;t t | ||
17763 | s,@sysconfdir@,$sysconfdir,;t t | ||
17764 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
17765 | s,@localstatedir@,$localstatedir,;t t | ||
17766 | s,@libdir@,$libdir,;t t | ||
17767 | s,@includedir@,$includedir,;t t | ||
17768 | s,@oldincludedir@,$oldincludedir,;t t | ||
17769 | s,@infodir@,$infodir,;t t | ||
17770 | s,@mandir@,$mandir,;t t | ||
17771 | s,@build_alias@,$build_alias,;t t | ||
17772 | s,@host_alias@,$host_alias,;t t | ||
17773 | s,@target_alias@,$target_alias,;t t | ||
17774 | s,@DEFS@,$DEFS,;t t | ||
17775 | s,@ECHO_C@,$ECHO_C,;t t | ||
17776 | s,@ECHO_N@,$ECHO_N,;t t | ||
17777 | s,@ECHO_T@,$ECHO_T,;t t | ||
17778 | s,@LIBS@,$LIBS,;t t | ||
17779 | s,@CC@,$CC,;t t | ||
17780 | s,@CFLAGS@,$CFLAGS,;t t | ||
17781 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
17782 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
17783 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
17784 | s,@EXEEXT@,$EXEEXT,;t t | ||
17785 | s,@OBJEXT@,$OBJEXT,;t t | ||
17786 | s,@build@,$build,;t t | ||
17787 | s,@build_cpu@,$build_cpu,;t t | ||
17788 | s,@build_vendor@,$build_vendor,;t t | ||
17789 | s,@build_os@,$build_os,;t t | ||
17790 | s,@host@,$host,;t t | ||
17791 | s,@host_cpu@,$host_cpu,;t t | ||
17792 | s,@host_vendor@,$host_vendor,;t t | ||
17793 | s,@host_os@,$host_os,;t t | ||
17794 | s,@CPP@,$CPP,;t t | ||
17795 | s,@RANLIB@,$RANLIB,;t t | ||
17796 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
17797 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
17798 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
17799 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
17800 | s,@AR@,$AR,;t t | ||
17801 | s,@PERL@,$PERL,;t t | ||
17802 | s,@SED@,$SED,;t t | ||
17803 | s,@ENT@,$ENT,;t t | ||
17804 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17805 | s,@SH@,$SH,;t t | ||
17806 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17807 | s,@LD@,$LD,;t t | ||
17808 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17809 | s,@LIBPAM@,$LIBPAM,;t t | ||
17810 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17811 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17812 | s,@PROG_LS@,$PROG_LS,;t t | ||
17813 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17814 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17815 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17816 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17817 | s,@PROG_PS@,$PROG_PS,;t t | ||
17818 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17819 | s,@PROG_W@,$PROG_W,;t t | ||
17820 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17821 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17822 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17823 | s,@PROG_DF@,$PROG_DF,;t t | ||
17824 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17825 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17826 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17827 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17828 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17829 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17830 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17831 | s,@xauth_path@,$xauth_path,;t t | ||
17832 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
17833 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17834 | s,@NROFF@,$NROFF,;t t | ||
17835 | s,@MANTYPE@,$MANTYPE,;t t | ||
17836 | s,@mansubdir@,$mansubdir,;t t | ||
17837 | s,@user_path@,$user_path,;t t | ||
17838 | s,@piddir@,$piddir,;t t | ||
17839 | CEOF | ||
17840 | |||
17841 | _ACEOF | ||
17842 | |||
17843 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17844 | # Split the substitutions into bite-sized pieces for seds with | ||
17845 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17846 | ac_max_sed_lines=48 | ||
17847 | ac_sed_frag=1 # Number of current file. | ||
17848 | ac_beg=1 # First line for current file. | ||
17849 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17850 | ac_more_lines=: | ||
17851 | ac_sed_cmds= | ||
17852 | while $ac_more_lines; do | ||
17853 | if test $ac_beg -gt 1; then | ||
17854 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17855 | else | ||
17856 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17857 | fi | ||
17858 | if test ! -s $tmp/subs.frag; then | ||
17859 | ac_more_lines=false | ||
17860 | else | ||
17861 | # The purpose of the label and of the branching condition is to | ||
17862 | # speed up the sed processing (if there are no `@' at all, there | ||
17863 | # is no need to browse any of the substitutions). | ||
17864 | # These are the two extra sed commands mentioned above. | ||
17865 | (echo ':t | ||
17866 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17867 | if test -z "$ac_sed_cmds"; then | ||
17868 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17869 | else | ||
17870 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17871 | fi | ||
17872 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17873 | ac_beg=$ac_end | ||
17874 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17875 | fi | ||
17876 | done | ||
17877 | if test -z "$ac_sed_cmds"; then | ||
17878 | ac_sed_cmds=cat | ||
17879 | fi | ||
17880 | fi # test -n "$CONFIG_FILES" | ||
17881 | |||
17882 | _ACEOF | ||
17883 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17884 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17885 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17886 | case $ac_file in | ||
17887 | - | *:- | *:-:* ) # input from stdin | ||
17888 | cat >$tmp/stdin | ||
17889 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17890 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17891 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17892 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17893 | * ) ac_file_in=$ac_file.in ;; | ||
17894 | esac | ||
17895 | |||
17896 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17897 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17898 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17899 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17900 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17901 | X"$ac_file" : 'X\(/\)' \| \ | ||
17902 | . : '\(.\)' 2>/dev/null || | ||
17903 | echo X"$ac_file" | | ||
17904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17905 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17906 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17907 | /^X\(\/\).*/{ s//\1/; q; } | ||
17908 | s/.*/./; q'` | ||
17909 | { case "$ac_dir" in | ||
17910 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17911 | *) as_incr_dir=.;; | ||
17912 | esac | ||
17913 | as_dummy="$ac_dir" | ||
17914 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17915 | case $as_mkdir_dir in | ||
17916 | # Skip DOS drivespec | ||
17917 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17918 | *) | ||
17919 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17920 | test -d "$as_incr_dir" || | ||
17921 | mkdir "$as_incr_dir" || | ||
17922 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17923 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17924 | { (exit 1); exit 1; }; } | ||
17925 | ;; | ||
17926 | esac | ||
17927 | done; } | ||
17928 | |||
17929 | ac_builddir=. | ||
17930 | |||
17931 | if test "$ac_dir" != .; then | ||
17932 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
17933 | # A "../" for each directory in $ac_dir_suffix. | ||
17934 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
17935 | else | ||
17936 | ac_dir_suffix= ac_top_builddir= | ||
17937 | fi | ||
17938 | |||
17939 | case $srcdir in | ||
17940 | .) # No --srcdir option. We are building in place. | ||
17941 | ac_srcdir=. | ||
17942 | if test -z "$ac_top_builddir"; then | ||
17943 | ac_top_srcdir=. | ||
17944 | else | ||
17945 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
17946 | fi ;; | ||
17947 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
17948 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17949 | ac_top_srcdir=$srcdir ;; | ||
17950 | *) # Relative path. | ||
17951 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
17952 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
17953 | esac | ||
17954 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
17955 | # absolute. | ||
17956 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
17957 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
17958 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
17959 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
17960 | |||
17961 | |||
17962 | case $INSTALL in | ||
17963 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17964 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
17965 | esac | ||
17966 | |||
17967 | if test x"$ac_file" != x-; then | ||
17968 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17969 | echo "$as_me: creating $ac_file" >&6;} | ||
17970 | rm -f "$ac_file" | ||
17971 | fi | ||
17972 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17973 | # use $as_me), people would be surprised to read: | ||
17974 | # /* config.h. Generated by config.status. */ | ||
17975 | if test x"$ac_file" = x-; then | ||
17976 | configure_input= | ||
17977 | else | ||
17978 | configure_input="$ac_file. " | ||
17979 | fi | ||
17980 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
17981 | sed 's,.*/,,'` by configure." | ||
17982 | |||
17983 | # First look for the input files in the build tree, otherwise in the | ||
17984 | # src tree. | ||
17985 | ac_file_inputs=`IFS=: | ||
17986 | for f in $ac_file_in; do | ||
17987 | case $f in | ||
17988 | -) echo $tmp/stdin ;; | ||
17989 | [\\/$]*) | ||
17990 | # Absolute (can't be DOS-style, as IFS=:) | ||
17991 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17992 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17993 | { (exit 1); exit 1; }; } | ||
17994 | echo $f;; | ||
17995 | *) # Relative | ||
17996 | if test -f "$f"; then | ||
17997 | # Build tree | ||
17998 | echo $f | ||
17999 | elif test -f "$srcdir/$f"; then | ||
18000 | # Source tree | ||
18001 | echo $srcdir/$f | ||
18002 | else | ||
18003 | # /dev/null tree | ||
18004 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18005 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18006 | { (exit 1); exit 1; }; } | ||
18007 | fi;; | ||
18008 | esac | ||
18009 | done` || { (exit 1); exit 1; } | ||
18010 | _ACEOF | ||
18011 | cat >>$CONFIG_STATUS <<_ACEOF | ||
18012 | sed "$ac_vpsub | ||
18013 | $extrasub | ||
18014 | _ACEOF | ||
18015 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18016 | :t | ||
18017 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
18018 | s,@configure_input@,$configure_input,;t t | ||
18019 | s,@srcdir@,$ac_srcdir,;t t | ||
18020 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
18021 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
18022 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
18023 | s,@builddir@,$ac_builddir,;t t | ||
18024 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
18025 | s,@top_builddir@,$ac_top_builddir,;t t | ||
18026 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
18027 | s,@INSTALL@,$ac_INSTALL,;t t | ||
18028 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
18029 | rm -f $tmp/stdin | ||
18030 | if test x"$ac_file" != x-; then | ||
18031 | mv $tmp/out $ac_file | ||
18032 | else | ||
18033 | cat $tmp/out | ||
18034 | rm -f $tmp/out | ||
18035 | fi | ||
18036 | |||
18037 | done | ||
18038 | _ACEOF | ||
18039 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18040 | |||
18041 | # | ||
18042 | # CONFIG_HEADER section. | ||
18043 | # | ||
18044 | |||
18045 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
18046 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
18047 | # | ||
18048 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
18049 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
18050 | ac_dB='[ ].*$,\1#\2' | ||
18051 | ac_dC=' ' | ||
18052 | ac_dD=',;t' | ||
18053 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
18054 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
18055 | ac_uB='$,\1#\2define\3' | ||
18056 | ac_uC=' ' | ||
18057 | ac_uD=',;t' | ||
18058 | |||
18059 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
18060 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
18061 | case $ac_file in | ||
18062 | - | *:- | *:-:* ) # input from stdin | ||
18063 | cat >$tmp/stdin | ||
18064 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18065 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18066 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18067 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18068 | * ) ac_file_in=$ac_file.in ;; | ||
18069 | esac | ||
18070 | |||
18071 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
18072 | echo "$as_me: creating $ac_file" >&6;} | ||
18073 | |||
18074 | # First look for the input files in the build tree, otherwise in the | ||
18075 | # src tree. | ||
18076 | ac_file_inputs=`IFS=: | ||
18077 | for f in $ac_file_in; do | ||
18078 | case $f in | ||
18079 | -) echo $tmp/stdin ;; | ||
18080 | [\\/$]*) | ||
18081 | # Absolute (can't be DOS-style, as IFS=:) | ||
18082 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18083 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18084 | { (exit 1); exit 1; }; } | ||
18085 | echo $f;; | ||
18086 | *) # Relative | ||
18087 | if test -f "$f"; then | ||
18088 | # Build tree | ||
18089 | echo $f | ||
18090 | elif test -f "$srcdir/$f"; then | ||
18091 | # Source tree | ||
18092 | echo $srcdir/$f | ||
18093 | else | ||
18094 | # /dev/null tree | ||
18095 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18096 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18097 | { (exit 1); exit 1; }; } | ||
18098 | fi;; | ||
18099 | esac | ||
18100 | done` || { (exit 1); exit 1; } | ||
18101 | # Remove the trailing spaces. | ||
18102 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
18103 | |||
18104 | _ACEOF | ||
18105 | |||
18106 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
18107 | # `conftest.undefs', that substitutes the proper values into | ||
18108 | # config.h.in to produce config.h. The first handles `#define' | ||
18109 | # templates, and the second `#undef' templates. | ||
18110 | # And first: Protect against being on the right side of a sed subst in | ||
18111 | # config.status. Protect against being in an unquoted here document | ||
18112 | # in config.status. | ||
18113 | rm -f conftest.defines conftest.undefs | ||
18114 | # Using a here document instead of a string reduces the quoting nightmare. | ||
18115 | # Putting comments in sed scripts is not portable. | ||
18116 | # | ||
18117 | # `end' is used to avoid that the second main sed command (meant for | ||
18118 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
18119 | # See the Autoconf documentation for `clear'. | ||
18120 | cat >confdef2sed.sed <<\_ACEOF | ||
18121 | s/[\\&,]/\\&/g | ||
18122 | s,[\\$`],\\&,g | ||
18123 | t clear | ||
18124 | : clear | ||
18125 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
18126 | t end | ||
18127 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
18128 | : end | ||
18129 | _ACEOF | ||
18130 | # If some macros were called several times there might be several times | ||
18131 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
18132 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
18133 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
18134 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
18135 | rm -f confdef2sed.sed | ||
18136 | |||
18137 | # This sed command replaces #undef with comments. This is necessary, for | ||
18138 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
18139 | # on some systems where configure will not decide to define it. | ||
18140 | cat >>conftest.undefs <<\_ACEOF | ||
18141 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
18142 | _ACEOF | ||
18143 | |||
18144 | # Break up conftest.defines because some shells have a limit on the size | ||
18145 | # of here documents, and old seds have small limits too (100 cmds). | ||
18146 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
18147 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
18148 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
18149 | echo ' :' >>$CONFIG_STATUS | ||
18150 | rm -f conftest.tail | ||
18151 | while grep . conftest.defines >/dev/null | ||
18152 | do | ||
18153 | # Write a limited-size here document to $tmp/defines.sed. | ||
18154 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
18155 | # Speed up: don't consider the non `#define' lines. | ||
18156 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
18157 | # Work around the forget-to-reset-the-flag bug. | ||
18158 | echo 't clr' >>$CONFIG_STATUS | ||
18159 | echo ': clr' >>$CONFIG_STATUS | ||
18160 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
18161 | echo 'CEOF | ||
18162 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
18163 | rm -f $tmp/in | ||
18164 | mv $tmp/out $tmp/in | ||
18165 | ' >>$CONFIG_STATUS | ||
18166 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
18167 | rm -f conftest.defines | ||
18168 | mv conftest.tail conftest.defines | ||
18169 | done | ||
18170 | rm -f conftest.defines | ||
18171 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
18172 | echo >>$CONFIG_STATUS | ||
18173 | |||
18174 | # Break up conftest.undefs because some shells have a limit on the size | ||
18175 | # of here documents, and old seds have small limits too (100 cmds). | ||
18176 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
18177 | rm -f conftest.tail | ||
18178 | while grep . conftest.undefs >/dev/null | ||
18179 | do | ||
18180 | # Write a limited-size here document to $tmp/undefs.sed. | ||
18181 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
18182 | # Speed up: don't consider the non `#undef' | ||
18183 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
18184 | # Work around the forget-to-reset-the-flag bug. | ||
18185 | echo 't clr' >>$CONFIG_STATUS | ||
18186 | echo ': clr' >>$CONFIG_STATUS | ||
18187 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
18188 | echo 'CEOF | ||
18189 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
18190 | rm -f $tmp/in | ||
18191 | mv $tmp/out $tmp/in | ||
18192 | ' >>$CONFIG_STATUS | ||
18193 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
18194 | rm -f conftest.undefs | ||
18195 | mv conftest.tail conftest.undefs | ||
18196 | done | ||
18197 | rm -f conftest.undefs | ||
18198 | |||
18199 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18200 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
18201 | # use $as_me), people would be surprised to read: | ||
18202 | # /* config.h. Generated by config.status. */ | ||
18203 | if test x"$ac_file" = x-; then | ||
18204 | echo "/* Generated by configure. */" >$tmp/config.h | ||
18205 | else | ||
18206 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
18207 | fi | ||
18208 | cat $tmp/in >>$tmp/config.h | ||
18209 | rm -f $tmp/in | ||
18210 | if test x"$ac_file" != x-; then | ||
18211 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
18212 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
18213 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
18214 | else | ||
18215 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
18216 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18217 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
18218 | X"$ac_file" : 'X\(//\)$' \| \ | ||
18219 | X"$ac_file" : 'X\(/\)' \| \ | ||
18220 | . : '\(.\)' 2>/dev/null || | ||
18221 | echo X"$ac_file" | | ||
18222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
18223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
18224 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
18225 | /^X\(\/\).*/{ s//\1/; q; } | ||
18226 | s/.*/./; q'` | ||
18227 | { case "$ac_dir" in | ||
18228 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
18229 | *) as_incr_dir=.;; | ||
18230 | esac | ||
18231 | as_dummy="$ac_dir" | ||
18232 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
18233 | case $as_mkdir_dir in | ||
18234 | # Skip DOS drivespec | ||
18235 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
18236 | *) | ||
18237 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
18238 | test -d "$as_incr_dir" || | ||
18239 | mkdir "$as_incr_dir" || | ||
18240 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
18241 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
18242 | { (exit 1); exit 1; }; } | ||
18243 | ;; | ||
18244 | esac | ||
18245 | done; } | ||
18246 | |||
18247 | rm -f $ac_file | ||
18248 | mv $tmp/config.h $ac_file | ||
18249 | fi | ||
18250 | else | ||
18251 | cat $tmp/config.h | ||
18252 | rm -f $tmp/config.h | ||
18253 | fi | ||
18254 | done | ||
18255 | _ACEOF | ||
18256 | |||
18257 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18258 | |||
18259 | { (exit 0); exit 0; } | ||
18260 | _ACEOF | ||
18261 | chmod +x $CONFIG_STATUS | ||
18262 | ac_clean_files=$ac_clean_files_save | ||
18263 | |||
18264 | |||
18265 | # configure is writing to config.log, and then calls config.status. | ||
18266 | # config.status does its own redirection, appending to config.log. | ||
18267 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
18268 | # by configure, so config.status won't be able to write to it; its | ||
18269 | # output is simply discarded. So we exec the FD to /dev/null, | ||
18270 | # effectively closing config.log, so it can be properly (re)opened and | ||
18271 | # appended to by config.status. When coming back to configure, we | ||
18272 | # need to make the FD available again. | ||
18273 | if test "$no_create" != yes; then | ||
18274 | ac_cs_success=: | ||
18275 | exec 5>/dev/null | ||
18276 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
18277 | exec 5>>config.log | ||
18278 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
18279 | # would make configure fail if this is the last instruction. | ||
18280 | $ac_cs_success || { (exit 1); exit 1; } | ||
18281 | fi | ||
18282 | |||
18283 | |||
18284 | # Print summary of options | ||
18285 | |||
18286 | # Someone please show me a better way :) | ||
18287 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
18288 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
18289 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
18290 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
18291 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
18292 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
18293 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
18294 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
18295 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
18296 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
18297 | |||
18298 | echo "" | ||
18299 | echo "OpenSSH has been configured with the following options:" | ||
18300 | echo " User binaries: $B" | ||
18301 | echo " System binaries: $C" | ||
18302 | echo " Configuration files: $D" | ||
18303 | echo " Askpass program: $E" | ||
18304 | echo " Manual pages: $F" | ||
18305 | echo " PID file: $G" | ||
18306 | echo " Privilege separation chroot path: $H" | ||
18307 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
18308 | echo " At runtime, sshd will use the path defined in /etc/login.conf" | ||
18309 | else | ||
18310 | echo " sshd default user PATH: $I" | ||
18311 | fi | ||
18312 | if test ! -z "$superuser_path" ; then | ||
18313 | echo " sshd superuser user PATH: $J" | ||
18314 | fi | ||
18315 | echo " Manpage format: $MANTYPE" | ||
18316 | echo " PAM support: ${PAM_MSG}" | ||
18317 | echo " KerberosIV support: $KRB4_MSG" | ||
18318 | echo " KerberosV support: $KRB5_MSG" | ||
18319 | echo " Smartcard support: $SCARD_MSG" | ||
18320 | echo " AFS support: $AFS_MSG" | ||
18321 | echo " S/KEY support: $SKEY_MSG" | ||
18322 | echo " TCP Wrappers support: $TCPW_MSG" | ||
18323 | echo " MD5 password support: $MD5_MSG" | ||
18324 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
18325 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
18326 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
18327 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
18328 | echo " Random number source: $RAND_MSG" | ||
18329 | if test ! -z "$USE_RAND_HELPER" ; then | ||
18330 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
18331 | fi | ||
18332 | |||
18333 | echo "" | ||
18334 | |||
18335 | echo " Host: ${host}" | ||
18336 | echo " Compiler: ${CC}" | ||
18337 | echo " Compiler flags: ${CFLAGS}" | ||
18338 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
18339 | echo " Linker flags: ${LDFLAGS}" | ||
18340 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
18341 | |||
18342 | echo "" | ||
18343 | |||
18344 | if test "x$PAM_MSG" = "xyes" ; then | ||
18345 | echo "PAM is enabled. You may need to install a PAM control file " | ||
18346 | echo "for sshd, otherwise password authentication may fail. " | ||
18347 | echo "Example PAM control files can be found in the contrib/ " | ||
18348 | echo "subdirectory" | ||
18349 | echo "" | ||
18350 | fi | ||
18351 | |||
18352 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
18353 | echo "WARNING: you are using the builtin random number collection " | ||
18354 | echo "service. Please read WARNING.RNG and request that your OS " | ||
18355 | echo "vendor includes kernel-based random number collection in " | ||
18356 | echo "future versions of your OS." | ||
18357 | echo "" | ||
18358 | fi | ||
18359 | |||
diff --git a/autom4te-2.53.cache/requests b/autom4te-2.53.cache/requests new file mode 100644 index 000000000..17e72cec4 --- /dev/null +++ b/autom4te-2.53.cache/requests | |||
@@ -0,0 +1,96 @@ | |||
1 | # This file was created by autom4te-2.53. | ||
2 | # It contains the lists of macros which have been traced. | ||
3 | # It can be safely removed. | ||
4 | |||
5 | @request = ( | ||
6 | bless( [ | ||
7 | '0', | ||
8 | 1, | ||
9 | [ | ||
10 | '/usr/share/autoconf' | ||
11 | ], | ||
12 | [ | ||
13 | '--reload-state=/usr/share/autoconf/autoconf/autoconf.m4f', | ||
14 | 'aclocal.m4', | ||
15 | 'configure.ac' | ||
16 | ], | ||
17 | { | ||
18 | 'm4_pattern_forbid' => 1, | ||
19 | 'AC_TYPE_OFF_T' => 1, | ||
20 | 'AC_PROG_LIBTOOL' => 1, | ||
21 | 'AC_FUNC_STAT' => 1, | ||
22 | 'AC_HEADER_TIME' => 1, | ||
23 | 'AC_FUNC_WAIT3' => 1, | ||
24 | 'AC_STRUCT_TM' => 1, | ||
25 | 'AC_FUNC_LSTAT' => 1, | ||
26 | 'AC_TYPE_MODE_T' => 1, | ||
27 | 'AC_FUNC_STRTOD' => 1, | ||
28 | 'AC_CHECK_HEADERS' => 1, | ||
29 | 'AC_PROG_CXX' => 1, | ||
30 | 'AC_PATH_X' => 1, | ||
31 | 'AC_PROG_AWK' => 1, | ||
32 | 'AC_HEADER_STDC' => 1, | ||
33 | 'AC_HEADER_MAJOR' => 1, | ||
34 | 'AC_FUNC_ERROR_AT_LINE' => 1, | ||
35 | 'AC_PROG_GCC_TRADITIONAL' => 1, | ||
36 | 'AC_LIBSOURCE' => 1, | ||
37 | 'AC_STRUCT_ST_BLOCKS' => 1, | ||
38 | 'AC_TYPE_SIGNAL' => 1, | ||
39 | 'AC_TYPE_UID_T' => 1, | ||
40 | 'AC_PROG_MAKE_SET' => 1, | ||
41 | 'm4_pattern_allow' => 1, | ||
42 | 'AC_DEFINE_TRACE_LITERAL' => 1, | ||
43 | 'AM_PROG_LIBTOOL' => 1, | ||
44 | 'AC_FUNC_STRERROR_R' => 1, | ||
45 | 'AC_PROG_CC' => 1, | ||
46 | 'AC_DECL_SYS_SIGLIST' => 1, | ||
47 | 'AC_FUNC_FORK' => 1, | ||
48 | 'AC_FUNC_VPRINTF' => 1, | ||
49 | 'AC_FUNC_STRCOLL' => 1, | ||
50 | 'AC_PROG_YACC' => 1, | ||
51 | 'AC_INIT' => 1, | ||
52 | 'AC_STRUCT_TIMEZONE' => 1, | ||
53 | 'AC_FUNC_CHOWN' => 1, | ||
54 | 'AC_SUBST' => 1, | ||
55 | 'AC_FUNC_ALLOCA' => 1, | ||
56 | 'AC_FUNC_GETPGRP' => 1, | ||
57 | 'AC_PROG_RANLIB' => 1, | ||
58 | 'AC_FUNC_SETPGRP' => 1, | ||
59 | 'AC_CONFIG_SUBDIRS' => 1, | ||
60 | 'AC_FUNC_MMAP' => 1, | ||
61 | 'AC_TYPE_SIZE_T' => 1, | ||
62 | 'AC_CHECK_TYPES' => 1, | ||
63 | 'AC_FUNC_UTIME_NULL' => 1, | ||
64 | 'AC_FUNC_STRFTIME' => 1, | ||
65 | 'AC_HEADER_STAT' => 1, | ||
66 | 'AC_C_INLINE' => 1, | ||
67 | 'AC_PROG_CPP' => 1, | ||
68 | 'AC_C_CONST' => 1, | ||
69 | 'AC_PROG_LEX' => 1, | ||
70 | 'AC_TYPE_PID_T' => 1, | ||
71 | 'AC_CONFIG_FILES' => 1, | ||
72 | 'include' => 1, | ||
73 | 'AC_FUNC_SETVBUF_REVERSED' => 1, | ||
74 | 'AC_FUNC_FNMATCH' => 1, | ||
75 | 'AC_PROG_INSTALL' => 1, | ||
76 | 'AM_GNU_GETTEXT' => 1, | ||
77 | 'AC_FUNC_OBSTACK' => 1, | ||
78 | 'AC_CHECK_LIB' => 1, | ||
79 | 'AC_FUNC_MALLOC' => 1, | ||
80 | 'AC_FUNC_GETGROUPS' => 1, | ||
81 | 'AC_FUNC_GETLOADAVG' => 1, | ||
82 | 'AH_OUTPUT' => 1, | ||
83 | 'AC_FUNC_FSEEKO' => 1, | ||
84 | 'AC_FUNC_MKTIME' => 1, | ||
85 | 'AM_CONDITIONAL' => 1, | ||
86 | 'AC_CONFIG_HEADERS' => 1, | ||
87 | 'AC_HEADER_SYS_WAIT' => 1, | ||
88 | 'AC_PROG_LN_S' => 1, | ||
89 | 'AC_FUNC_MEMCMP' => 1, | ||
90 | 'm4_include' => 1, | ||
91 | 'AC_HEADER_DIRENT' => 1, | ||
92 | 'AC_CHECK_FUNCS' => 1 | ||
93 | } | ||
94 | ], 'Request' ) | ||
95 | ); | ||
96 | |||
diff --git a/autom4te-2.53.cache/traces.0 b/autom4te-2.53.cache/traces.0 new file mode 100644 index 000000000..c928d0c58 --- /dev/null +++ b/autom4te-2.53.cache/traces.0 | |||
@@ -0,0 +1,941 @@ | |||
1 | m4trace:configure.ac:3: -1- AC_INIT | ||
2 | m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) | ||
3 | m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) | ||
4 | m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs. LIBOBJS']) | ||
5 | m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) | ||
6 | m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) | ||
7 | m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) | ||
8 | m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_]) | ||
9 | m4trace:configure.ac:3: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}]) | ||
10 | m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR]) | ||
11 | m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) | ||
12 | m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) | ||
13 | m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) | ||
14 | m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) | ||
15 | m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) | ||
16 | m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE]) | ||
17 | m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE]) | ||
18 | m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,]) | ||
19 | m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) | ||
20 | m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) | ||
21 | m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) | ||
22 | m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${prefix}/share']) | ||
23 | m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) | ||
24 | m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) | ||
25 | m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var']) | ||
26 | m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) | ||
27 | m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include']) | ||
28 | m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include']) | ||
29 | m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${prefix}/info']) | ||
30 | m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${prefix}/man']) | ||
31 | m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) | ||
32 | m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ | ||
33 | #undef PACKAGE_NAME]) | ||
34 | m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) | ||
35 | m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ | ||
36 | #undef PACKAGE_TARNAME]) | ||
37 | m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) | ||
38 | m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ | ||
39 | #undef PACKAGE_VERSION]) | ||
40 | m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) | ||
41 | m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ | ||
42 | #undef PACKAGE_STRING]) | ||
43 | m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) | ||
44 | m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ | ||
45 | #undef PACKAGE_BUGREPORT]) | ||
46 | m4trace:configure.ac:3: -1- AC_SUBST([build_alias]) | ||
47 | m4trace:configure.ac:3: -1- AC_SUBST([host_alias]) | ||
48 | m4trace:configure.ac:3: -1- AC_SUBST([target_alias]) | ||
49 | m4trace:configure.ac:3: -1- AC_SUBST([DEFS]) | ||
50 | m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C]) | ||
51 | m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N]) | ||
52 | m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T]) | ||
53 | m4trace:configure.ac:3: -1- AC_SUBST([LIBS]) | ||
54 | m4trace:configure.ac:6: -1- AC_CONFIG_HEADERS([config.h]) | ||
55 | m4trace:configure.ac:7: -1- AC_PROG_CC | ||
56 | m4trace:configure.ac:7: -1- AC_SUBST([CC]) | ||
57 | m4trace:configure.ac:7: -1- AC_SUBST([CFLAGS]) | ||
58 | m4trace:configure.ac:7: -1- AC_SUBST([LDFLAGS]) | ||
59 | m4trace:configure.ac:7: -1- AC_SUBST([CPPFLAGS]) | ||
60 | m4trace:configure.ac:7: -1- AC_SUBST([CC]) | ||
61 | m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC]) | ||
62 | m4trace:configure.ac:7: -1- AC_SUBST([CC]) | ||
63 | m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC]) | ||
64 | m4trace:configure.ac:7: -1- AC_SUBST([CC]) | ||
65 | m4trace:configure.ac:7: -1- AC_SUBST([CC]) | ||
66 | m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC]) | ||
67 | m4trace:configure.ac:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) | ||
68 | m4trace:configure.ac:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) | ||
69 | m4trace:configure.ac:8: -1- AC_SUBST([build], [$ac_cv_build]) | ||
70 | m4trace:configure.ac:8: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`]) | ||
71 | m4trace:configure.ac:8: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`]) | ||
72 | m4trace:configure.ac:8: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`]) | ||
73 | m4trace:configure.ac:8: -1- AC_SUBST([host], [$ac_cv_host]) | ||
74 | m4trace:configure.ac:8: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`]) | ||
75 | m4trace:configure.ac:8: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`]) | ||
76 | m4trace:configure.ac:8: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`]) | ||
77 | m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) | ||
78 | m4trace:configure.ac:9: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte | ||
79 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
80 | #undef WORDS_BIGENDIAN]) | ||
81 | m4trace:configure.ac:12: -1- AC_PROG_CPP | ||
82 | m4trace:configure.ac:12: -1- AC_SUBST([CPP]) | ||
83 | m4trace:configure.ac:12: -1- AC_SUBST([CPPFLAGS]) | ||
84 | m4trace:configure.ac:12: -1- AC_SUBST([CPP]) | ||
85 | m4trace:configure.ac:13: -1- AC_PROG_RANLIB | ||
86 | m4trace:configure.ac:13: -1- AC_SUBST([RANLIB]) | ||
87 | m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_RANLIB]) | ||
88 | m4trace:configure.ac:14: -1- AC_PROG_INSTALL | ||
89 | m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_PROGRAM]) | ||
90 | m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_SCRIPT]) | ||
91 | m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_DATA]) | ||
92 | m4trace:configure.ac:15: -1- AC_SUBST([AR], [$ac_cv_path_AR]) | ||
93 | m4trace:configure.ac:16: -1- AC_SUBST([PERL], [$ac_cv_path_PERL]) | ||
94 | m4trace:configure.ac:17: -1- AC_SUBST([SED], [$ac_cv_path_SED]) | ||
95 | m4trace:configure.ac:18: -1- AC_SUBST([PERL]) | ||
96 | m4trace:configure.ac:19: -1- AC_SUBST([ENT], [$ac_cv_path_ENT]) | ||
97 | m4trace:configure.ac:20: -1- AC_SUBST([ENT]) | ||
98 | m4trace:configure.ac:21: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH]) | ||
99 | m4trace:configure.ac:22: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH]) | ||
100 | m4trace:configure.ac:23: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH]) | ||
101 | m4trace:configure.ac:24: -1- AC_SUBST([SH], [$ac_cv_path_SH]) | ||
102 | m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS]) | ||
103 | m4trace:configure.ac:27: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */ | ||
104 | #undef _FILE_OFFSET_BITS]) | ||
105 | m4trace:configure.ac:27: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES]) | ||
106 | m4trace:configure.ac:27: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */ | ||
107 | #undef _LARGE_FILES]) | ||
108 | m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK]) | ||
109 | m4trace:configure.ac:38: -1- AC_SUBST([LOGIN_PROGRAM_FALLBACK], [$ac_cv_path_LOGIN_PROGRAM_FALLBACK]) | ||
110 | m4trace:configure.ac:40: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK]) | ||
111 | m4trace:configure.ac:47: -1- AC_SUBST([LD]) | ||
112 | m4trace:configure.ac:49: -1- AC_C_INLINE | ||
113 | m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline]) | ||
114 | m4trace:configure.ac:49: -1- AH_OUTPUT([inline], [/* Define as \`__inline' if that's what the C compiler calls it, or to nothing | ||
115 | if it is not supported. */ | ||
116 | #undef inline]) | ||
117 | m4trace:configure.ac:49: -1- AC_DEFINE_TRACE_LITERAL([inline]) | ||
118 | m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE]) | ||
119 | m4trace:configure.ac:79: -1- AC_CHECK_LIB([s], [authenticate], [ AC_DEFINE(WITH_AIXAUTHENTICATE) | ||
120 | LIBS="$LIBS -ls" | ||
121 | ]) | ||
122 | m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE]) | ||
123 | m4trace:configure.ac:80: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO]) | ||
124 | m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH]) | ||
125 | m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG]) | ||
126 | m4trace:configure.ac:84: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX]) | ||
127 | m4trace:configure.ac:85: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY]) | ||
128 | m4trace:configure.ac:86: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING]) | ||
129 | m4trace:configure.ac:91: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CYGWIN]) | ||
130 | m4trace:configure.ac:92: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
131 | m4trace:configure.ac:93: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
132 | m4trace:configure.ac:94: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT]) | ||
133 | m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN]) | ||
134 | m4trace:configure.ac:96: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS]) | ||
135 | m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([NO_IPPORT_RESERVED_CONCEPT]) | ||
136 | m4trace:configure.ac:98: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
137 | m4trace:configure.ac:99: -1- AC_DEFINE_TRACE_LITERAL([SETGROUPS_NOOP]) | ||
138 | m4trace:configure.ac:102: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN]) | ||
139 | m4trace:configure.ac:114: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO]) | ||
140 | m4trace:configure.ac:122: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE]) | ||
141 | m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
142 | m4trace:configure.ac:124: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT]) | ||
143 | m4trace:configure.ac:125: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX]) | ||
144 | m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
145 | m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
146 | m4trace:configure.ac:128: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY]) | ||
147 | m4trace:configure.ac:130: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
148 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
149 | { (exit 1); exit 1; }; }]) | ||
150 | m4trace:configure.ac:130: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */ | ||
151 | #undef HAVE_LIBXNET]) | ||
152 | m4trace:configure.ac:130: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET]) | ||
153 | m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
154 | m4trace:configure.ac:140: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT]) | ||
155 | m4trace:configure.ac:141: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX]) | ||
156 | m4trace:configure.ac:142: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
157 | m4trace:configure.ac:143: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
158 | m4trace:configure.ac:144: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY]) | ||
159 | m4trace:configure.ac:146: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
160 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
161 | { (exit 1); exit 1; }; }]) | ||
162 | m4trace:configure.ac:146: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */ | ||
163 | #undef HAVE_LIBXNET]) | ||
164 | m4trace:configure.ac:146: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET]) | ||
165 | m4trace:configure.ac:151: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE]) | ||
166 | m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
167 | m4trace:configure.ac:153: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT]) | ||
168 | m4trace:configure.ac:154: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX]) | ||
169 | m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
170 | m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
171 | m4trace:configure.ac:157: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY]) | ||
172 | m4trace:configure.ac:159: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
173 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
174 | { (exit 1); exit 1; }; }]) | ||
175 | m4trace:configure.ac:159: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */ | ||
176 | #undef HAVE_LIBXNET]) | ||
177 | m4trace:configure.ac:159: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET]) | ||
178 | m4trace:configure.ac:165: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA]) | ||
179 | m4trace:configure.ac:166: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY]) | ||
180 | m4trace:configure.ac:172: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_ARRAY]) | ||
181 | m4trace:configure.ac:173: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_PROJECT]) | ||
182 | m4trace:configure.ac:174: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_AUDIT]) | ||
183 | m4trace:configure.ac:175: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_JOBS]) | ||
184 | m4trace:configure.ac:176: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA]) | ||
185 | m4trace:configure.ac:177: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY]) | ||
186 | m4trace:configure.ac:182: -1- AC_DEFINE_TRACE_LITERAL([DONT_TRY_OTHER_AF]) | ||
187 | m4trace:configure.ac:183: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE]) | ||
188 | m4trace:configure.ac:184: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_STRATEGY]) | ||
189 | m4trace:configure.ac:185: -1- AC_DEFINE_TRACE_LITERAL([SETPROCTITLE_PS_PADDING]) | ||
190 | m4trace:configure.ac:189: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEWS4]) | ||
191 | m4trace:configure.ac:204: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEXT]) | ||
192 | m4trace:configure.ac:205: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH]) | ||
193 | m4trace:configure.ac:206: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
194 | m4trace:configure.ac:207: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS]) | ||
195 | m4trace:configure.ac:215: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE]) | ||
196 | m4trace:configure.ac:216: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX]) | ||
197 | m4trace:configure.ac:217: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_TERM]) | ||
198 | m4trace:configure.ac:218: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE]) | ||
199 | m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([STREAMS_PUSH_ACQUIRES_CTTY]) | ||
200 | m4trace:configure.ac:226: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
201 | m4trace:configure.ac:227: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP]) | ||
202 | m4trace:configure.ac:234: -1- AC_CHECK_FUNCS([getpwanam]) | ||
203 | m4trace:configure.ac:234: -1- AH_OUTPUT([HAVE_GETPWANAM], [/* Define to 1 if you have the \`getpwanam' function. */ | ||
204 | #undef HAVE_GETPWANAM]) | ||
205 | m4trace:configure.ac:235: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE]) | ||
206 | m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
207 | m4trace:configure.ac:245: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
208 | m4trace:configure.ac:252: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
209 | m4trace:configure.ac:253: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN]) | ||
210 | m4trace:configure.ac:261: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
211 | m4trace:configure.ac:266: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
212 | m4trace:configure.ac:278: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SYS_TERMIO_H]) | ||
213 | m4trace:configure.ac:279: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
214 | m4trace:configure.ac:280: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE]) | ||
215 | m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
216 | m4trace:configure.ac:282: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS]) | ||
217 | m4trace:configure.ac:283: -1- AC_CHECK_FUNCS([getluid setluid]) | ||
218 | m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */ | ||
219 | #undef HAVE_GETLUID]) | ||
220 | m4trace:configure.ac:283: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */ | ||
221 | #undef HAVE_SETLUID]) | ||
222 | m4trace:configure.ac:295: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
223 | m4trace:configure.ac:296: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE]) | ||
224 | m4trace:configure.ac:297: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
225 | m4trace:configure.ac:298: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
226 | m4trace:configure.ac:299: -1- AC_CHECK_FUNCS([getluid setluid]) | ||
227 | m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */ | ||
228 | #undef HAVE_GETLUID]) | ||
229 | m4trace:configure.ac:299: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */ | ||
230 | #undef HAVE_SETLUID]) | ||
231 | m4trace:configure.ac:303: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
232 | m4trace:configure.ac:304: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
233 | m4trace:configure.ac:310: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
234 | m4trace:configure.ac:311: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
235 | m4trace:configure.ac:312: -1- AC_DEFINE_TRACE_LITERAL([NO_SSH_LASTLOG]) | ||
236 | m4trace:configure.ac:332: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OSF_SIA]) | ||
237 | m4trace:configure.ac:333: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN]) | ||
238 | m4trace:configure.ac:334: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
239 | m4trace:configure.ac:340: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING]) | ||
240 | m4trace:configure.ac:344: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES]) | ||
241 | m4trace:configure.ac:345: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS]) | ||
242 | m4trace:configure.ac:346: -1- AC_DEFINE_TRACE_LITERAL([MISSING_NFDBITS]) | ||
243 | m4trace:configure.ac:347: -1- AC_DEFINE_TRACE_LITERAL([MISSING_HOWMANY]) | ||
244 | m4trace:configure.ac:348: -1- AC_DEFINE_TRACE_LITERAL([MISSING_FD_MASK]) | ||
245 | m4trace:configure.ac:396: -1- AC_CHECK_HEADERS([bstring.h crypt.h endian.h floatingpoint.h \ | ||
246 | getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \ | ||
247 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
248 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
249 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
250 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | ||
251 | sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | ||
252 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
253 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
254 | util.h utime.h utmp.h utmpx.h]) | ||
255 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_BSTRING_H], [/* Define to 1 if you have the <bstring.h> header file. */ | ||
256 | #undef HAVE_BSTRING_H]) | ||
257 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_CRYPT_H], [/* Define to 1 if you have the <crypt.h> header file. */ | ||
258 | #undef HAVE_CRYPT_H]) | ||
259 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_ENDIAN_H], [/* Define to 1 if you have the <endian.h> header file. */ | ||
260 | #undef HAVE_ENDIAN_H]) | ||
261 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_FLOATINGPOINT_H], [/* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
262 | #undef HAVE_FLOATINGPOINT_H]) | ||
263 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_GETOPT_H], [/* Define to 1 if you have the <getopt.h> header file. */ | ||
264 | #undef HAVE_GETOPT_H]) | ||
265 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_GLOB_H], [/* Define to 1 if you have the <glob.h> header file. */ | ||
266 | #undef HAVE_GLOB_H]) | ||
267 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_IA_H], [/* Define to 1 if you have the <ia.h> header file. */ | ||
268 | #undef HAVE_IA_H]) | ||
269 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LASTLOG_H], [/* Define to 1 if you have the <lastlog.h> header file. */ | ||
270 | #undef HAVE_LASTLOG_H]) | ||
271 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */ | ||
272 | #undef HAVE_LIBGEN_H]) | ||
273 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LIMITS_H], [/* Define to 1 if you have the <limits.h> header file. */ | ||
274 | #undef HAVE_LIMITS_H]) | ||
275 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LOGIN_H], [/* Define to 1 if you have the <login.h> header file. */ | ||
276 | #undef HAVE_LOGIN_H]) | ||
277 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_LOGIN_CAP_H], [/* Define to 1 if you have the <login_cap.h> header file. */ | ||
278 | #undef HAVE_LOGIN_CAP_H]) | ||
279 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_MAILLOCK_H], [/* Define to 1 if you have the <maillock.h> header file. */ | ||
280 | #undef HAVE_MAILLOCK_H]) | ||
281 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the <netdb.h> header file. */ | ||
282 | #undef HAVE_NETDB_H]) | ||
283 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETGROUP_H], [/* Define to 1 if you have the <netgroup.h> header file. */ | ||
284 | #undef HAVE_NETGROUP_H]) | ||
285 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_NETINET_IN_SYSTM_H], [/* Define to 1 if you have the <netinet/in_systm.h> header file. */ | ||
286 | #undef HAVE_NETINET_IN_SYSTM_H]) | ||
287 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the <paths.h> header file. */ | ||
288 | #undef HAVE_PATHS_H]) | ||
289 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_PTY_H], [/* Define to 1 if you have the <pty.h> header file. */ | ||
290 | #undef HAVE_PTY_H]) | ||
291 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_READPASSPHRASE_H], [/* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
292 | #undef HAVE_READPASSPHRASE_H]) | ||
293 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_RPC_TYPES_H], [/* Define to 1 if you have the <rpc/types.h> header file. */ | ||
294 | #undef HAVE_RPC_TYPES_H]) | ||
295 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SECURITY_PAM_APPL_H], [/* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
296 | #undef HAVE_SECURITY_PAM_APPL_H]) | ||
297 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SHADOW_H], [/* Define to 1 if you have the <shadow.h> header file. */ | ||
298 | #undef HAVE_SHADOW_H]) | ||
299 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */ | ||
300 | #undef HAVE_STDDEF_H]) | ||
301 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */ | ||
302 | #undef HAVE_STDINT_H]) | ||
303 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */ | ||
304 | #undef HAVE_STRINGS_H]) | ||
305 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_BITYPES_H], [/* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
306 | #undef HAVE_SYS_BITYPES_H]) | ||
307 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_BSDTTY_H], [/* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
308 | #undef HAVE_SYS_BSDTTY_H]) | ||
309 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_CDEFS_H], [/* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
310 | #undef HAVE_SYS_CDEFS_H]) | ||
311 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the <sys/mman.h> header file. */ | ||
312 | #undef HAVE_SYS_MMAN_H]) | ||
313 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_PSTAT_H], [/* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
314 | #undef HAVE_SYS_PSTAT_H]) | ||
315 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */ | ||
316 | #undef HAVE_SYS_SELECT_H]) | ||
317 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
318 | #undef HAVE_SYS_STAT_H]) | ||
319 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STROPTS_H], [/* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
320 | #undef HAVE_SYS_STROPTS_H]) | ||
321 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_SYSMACROS_H], [/* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
322 | #undef HAVE_SYS_SYSMACROS_H]) | ||
323 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the <sys/time.h> header file. */ | ||
324 | #undef HAVE_SYS_TIME_H]) | ||
325 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TIMERS_H], [/* Define to 1 if you have the <sys/timers.h> header file. */ | ||
326 | #undef HAVE_SYS_TIMERS_H]) | ||
327 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_UN_H], [/* Define to 1 if you have the <sys/un.h> header file. */ | ||
328 | #undef HAVE_SYS_UN_H]) | ||
329 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the <time.h> header file. */ | ||
330 | #undef HAVE_TIME_H]) | ||
331 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TMPDIR_H], [/* Define to 1 if you have the <tmpdir.h> header file. */ | ||
332 | #undef HAVE_TMPDIR_H]) | ||
333 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_TTYENT_H], [/* Define to 1 if you have the <ttyent.h> header file. */ | ||
334 | #undef HAVE_TTYENT_H]) | ||
335 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_USERSEC_H], [/* Define to 1 if you have the <usersec.h> header file. */ | ||
336 | #undef HAVE_USERSEC_H]) | ||
337 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTIL_H], [/* Define to 1 if you have the <util.h> header file. */ | ||
338 | #undef HAVE_UTIL_H]) | ||
339 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTIME_H], [/* Define to 1 if you have the <utime.h> header file. */ | ||
340 | #undef HAVE_UTIME_H]) | ||
341 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTMP_H], [/* Define to 1 if you have the <utmp.h> header file. */ | ||
342 | #undef HAVE_UTMP_H]) | ||
343 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UTMPX_H], [/* Define to 1 if you have the <utmpx.h> header file. */ | ||
344 | #undef HAVE_UTMPX_H]) | ||
345 | m4trace:configure.ac:396: -1- AC_HEADER_STDC | ||
346 | m4trace:configure.ac:396: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) | ||
347 | m4trace:configure.ac:396: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ | ||
348 | #undef STDC_HEADERS]) | ||
349 | m4trace:configure.ac:396: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
350 | inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default]) | ||
351 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */ | ||
352 | #undef HAVE_SYS_TYPES_H]) | ||
353 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
354 | #undef HAVE_SYS_STAT_H]) | ||
355 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */ | ||
356 | #undef HAVE_STDLIB_H]) | ||
357 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */ | ||
358 | #undef HAVE_STRING_H]) | ||
359 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */ | ||
360 | #undef HAVE_MEMORY_H]) | ||
361 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */ | ||
362 | #undef HAVE_STRINGS_H]) | ||
363 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */ | ||
364 | #undef HAVE_INTTYPES_H]) | ||
365 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */ | ||
366 | #undef HAVE_STDINT_H]) | ||
367 | m4trace:configure.ac:396: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */ | ||
368 | #undef HAVE_UNISTD_H]) | ||
369 | m4trace:configure.ac:399: -2- AC_CHECK_LIB([nsl], [yp_match]) | ||
370 | m4trace:configure.ac:399: -2- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the \`nsl' library (-lnsl). */ | ||
371 | #undef HAVE_LIBNSL]) | ||
372 | m4trace:configure.ac:399: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL]) | ||
373 | m4trace:configure.ac:400: -2- AC_CHECK_LIB([socket], [setsockopt]) | ||
374 | m4trace:configure.ac:400: -2- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the \`socket' library (-lsocket). */ | ||
375 | #undef HAVE_LIBSOCKET]) | ||
376 | m4trace:configure.ac:400: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET]) | ||
377 | m4trace:configure.ac:405: -1- AC_CHECK_LIB([rpc], [innetgr], [LIBS="-lrpc -lyp -lrpc $LIBS" ], [], [-lyp -lrpc]) | ||
378 | m4trace:configure.ac:410: -2- AC_CHECK_LIB([gen], [getspnam], [LIBS="$LIBS -lgen"]) | ||
379 | m4trace:configure.ac:452: -1- AC_CHECK_LIB([z], [deflate], [], [{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
380 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
381 | { (exit 1); exit 1; }; }]) | ||
382 | m4trace:configure.ac:452: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the \`z' library (-lz). */ | ||
383 | #undef HAVE_LIBZ]) | ||
384 | m4trace:configure.ac:452: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ]) | ||
385 | m4trace:configure.ac:457: -1- AC_CHECK_LIB([resolv], [strcasecmp], [LIBS="$LIBS -lresolv"]) | ||
386 | m4trace:configure.ac:461: -1- AC_CHECK_LIB([c89], [utimes], [AC_DEFINE(HAVE_UTIMES) | ||
387 | LIBS="$LIBS -lc89"]) | ||
388 | m4trace:configure.ac:461: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UTIMES]) | ||
389 | m4trace:configure.ac:464: -1- AC_CHECK_HEADERS([libutil.h]) | ||
390 | m4trace:configure.ac:464: -1- AH_OUTPUT([HAVE_LIBUTIL_H], [/* Define to 1 if you have the <libutil.h> header file. */ | ||
391 | #undef HAVE_LIBUTIL_H]) | ||
392 | m4trace:configure.ac:465: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LOGIN]) | ||
393 | m4trace:configure.ac:466: -1- AC_CHECK_FUNCS([logout updwtmp logwtmp]) | ||
394 | m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_LOGOUT], [/* Define to 1 if you have the \`logout' function. */ | ||
395 | #undef HAVE_LOGOUT]) | ||
396 | m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_UPDWTMP], [/* Define to 1 if you have the \`updwtmp' function. */ | ||
397 | #undef HAVE_UPDWTMP]) | ||
398 | m4trace:configure.ac:466: -1- AH_OUTPUT([HAVE_LOGWTMP], [/* Define to 1 if you have the \`logwtmp' function. */ | ||
399 | #undef HAVE_LOGWTMP]) | ||
400 | m4trace:configure.ac:468: -1- AC_FUNC_STRFTIME | ||
401 | m4trace:configure.ac:468: -1- AC_CHECK_FUNCS([strftime], [], [# strftime is in -lintl on SCO UNIX. | ||
402 | AC_CHECK_LIB(intl, strftime, | ||
403 | [AC_DEFINE(HAVE_STRFTIME) | ||
404 | LIBS="-lintl $LIBS"])]) | ||
405 | m4trace:configure.ac:468: -1- AH_OUTPUT([HAVE_STRFTIME], [/* Define to 1 if you have the \`strftime' function. */ | ||
406 | #undef HAVE_STRFTIME]) | ||
407 | m4trace:configure.ac:468: -1- AC_CHECK_LIB([intl], [strftime], [AC_DEFINE(HAVE_STRFTIME) | ||
408 | LIBS="-lintl $LIBS"]) | ||
409 | m4trace:configure.ac:468: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME]) | ||
410 | m4trace:configure.ac:486: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_ALTDIRFUNC]) | ||
411 | m4trace:configure.ac:502: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_GL_MATCHC]) | ||
412 | m4trace:configure.ac:516: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_ONE_BYTE_DIRENT_D_NAME]) | ||
413 | m4trace:configure.ac:549: -1- AC_DEFINE_TRACE_LITERAL([SKEY]) | ||
414 | m4trace:configure.ac:603: -1- AC_DEFINE_TRACE_LITERAL([LIBWRAP]) | ||
415 | m4trace:configure.ac:603: -1- AC_SUBST([LIBWRAP]) | ||
416 | m4trace:configure.ac:618: -1- AC_CHECK_FUNCS([\ | ||
417 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \ | ||
418 | bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
419 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
420 | getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ | ||
421 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
422 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \ | ||
423 | readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \ | ||
424 | setegid setenv seteuid setgroups setlogin setpcred setproctitle \ | ||
425 | setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \ | ||
426 | snprintf socketpair strerror strlcat strlcpy strmode strnvis \ | ||
427 | sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \ | ||
428 | ]) | ||
429 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_ARC4RANDOM], [/* Define to 1 if you have the \`arc4random' function. */ | ||
430 | #undef HAVE_ARC4RANDOM]) | ||
431 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE___B64_NTOP], [/* Define to 1 if you have the \`__b64_ntop' function. */ | ||
432 | #undef HAVE___B64_NTOP]) | ||
433 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_B64_NTOP], [/* Define to 1 if you have the \`b64_ntop' function. */ | ||
434 | #undef HAVE_B64_NTOP]) | ||
435 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE___B64_PTON], [/* Define to 1 if you have the \`__b64_pton' function. */ | ||
436 | #undef HAVE___B64_PTON]) | ||
437 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_B64_PTON], [/* Define to 1 if you have the \`b64_pton' function. */ | ||
438 | #undef HAVE_B64_PTON]) | ||
439 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BASENAME], [/* Define to 1 if you have the \`basename' function. */ | ||
440 | #undef HAVE_BASENAME]) | ||
441 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BCOPY], [/* Define to 1 if you have the \`bcopy' function. */ | ||
442 | #undef HAVE_BCOPY]) | ||
443 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_BINDRESVPORT_SA], [/* Define to 1 if you have the \`bindresvport_sa' function. */ | ||
444 | #undef HAVE_BINDRESVPORT_SA]) | ||
445 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_CLOCK], [/* Define to 1 if you have the \`clock' function. */ | ||
446 | #undef HAVE_CLOCK]) | ||
447 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FCHMOD], [/* Define to 1 if you have the \`fchmod' function. */ | ||
448 | #undef HAVE_FCHMOD]) | ||
449 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FCHOWN], [/* Define to 1 if you have the \`fchown' function. */ | ||
450 | #undef HAVE_FCHOWN]) | ||
451 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FREEADDRINFO], [/* Define to 1 if you have the \`freeaddrinfo' function. */ | ||
452 | #undef HAVE_FREEADDRINFO]) | ||
453 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_FUTIMES], [/* Define to 1 if you have the \`futimes' function. */ | ||
454 | #undef HAVE_FUTIMES]) | ||
455 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GAI_STRERROR], [/* Define to 1 if you have the \`gai_strerror' function. */ | ||
456 | #undef HAVE_GAI_STRERROR]) | ||
457 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the \`getaddrinfo' function. */ | ||
458 | #undef HAVE_GETADDRINFO]) | ||
459 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the \`getcwd' function. */ | ||
460 | #undef HAVE_GETCWD]) | ||
461 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETGROUPLIST], [/* Define to 1 if you have the \`getgrouplist' function. */ | ||
462 | #undef HAVE_GETGROUPLIST]) | ||
463 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the \`getnameinfo' function. */ | ||
464 | #undef HAVE_GETNAMEINFO]) | ||
465 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETOPT], [/* Define to 1 if you have the \`getopt' function. */ | ||
466 | #undef HAVE_GETOPT]) | ||
467 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETPEEREID], [/* Define to 1 if you have the \`getpeereid' function. */ | ||
468 | #undef HAVE_GETPEEREID]) | ||
469 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE__GETPTY], [/* Define to 1 if you have the \`_getpty' function. */ | ||
470 | #undef HAVE__GETPTY]) | ||
471 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETRLIMIT], [/* Define to 1 if you have the \`getrlimit' function. */ | ||
472 | #undef HAVE_GETRLIMIT]) | ||
473 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETRUSAGE], [/* Define to 1 if you have the \`getrusage' function. */ | ||
474 | #undef HAVE_GETRUSAGE]) | ||
475 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GETTTYENT], [/* Define to 1 if you have the \`getttyent' function. */ | ||
476 | #undef HAVE_GETTTYENT]) | ||
477 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_GLOB], [/* Define to 1 if you have the \`glob' function. */ | ||
478 | #undef HAVE_GLOB]) | ||
479 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_ATON], [/* Define to 1 if you have the \`inet_aton' function. */ | ||
480 | #undef HAVE_INET_ATON]) | ||
481 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the \`inet_ntoa' function. */ | ||
482 | #undef HAVE_INET_NTOA]) | ||
483 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INET_NTOP], [/* Define to 1 if you have the \`inet_ntop' function. */ | ||
484 | #undef HAVE_INET_NTOP]) | ||
485 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_INNETGR], [/* Define to 1 if you have the \`innetgr' function. */ | ||
486 | #undef HAVE_INNETGR]) | ||
487 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_LOGIN_GETCAPBOOL], [/* Define to 1 if you have the \`login_getcapbool' function. */ | ||
488 | #undef HAVE_LOGIN_GETCAPBOOL]) | ||
489 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MD5_CRYPT], [/* Define to 1 if you have the \`md5_crypt' function. */ | ||
490 | #undef HAVE_MD5_CRYPT]) | ||
491 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the \`memmove' function. */ | ||
492 | #undef HAVE_MEMMOVE]) | ||
493 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MKDTEMP], [/* Define to 1 if you have the \`mkdtemp' function. */ | ||
494 | #undef HAVE_MKDTEMP]) | ||
495 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have the \`mmap' function. */ | ||
496 | #undef HAVE_MMAP]) | ||
497 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_NGETADDRINFO], [/* Define to 1 if you have the \`ngetaddrinfo' function. */ | ||
498 | #undef HAVE_NGETADDRINFO]) | ||
499 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_NSLEEP], [/* Define to 1 if you have the \`nsleep' function. */ | ||
500 | #undef HAVE_NSLEEP]) | ||
501 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_OGETADDRINFO], [/* Define to 1 if you have the \`ogetaddrinfo' function. */ | ||
502 | #undef HAVE_OGETADDRINFO]) | ||
503 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_OPENPTY], [/* Define to 1 if you have the \`openpty' function. */ | ||
504 | #undef HAVE_OPENPTY]) | ||
505 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_PSTAT], [/* Define to 1 if you have the \`pstat' function. */ | ||
506 | #undef HAVE_PSTAT]) | ||
507 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_READPASSPHRASE], [/* Define to 1 if you have the \`readpassphrase' function. */ | ||
508 | #undef HAVE_READPASSPHRASE]) | ||
509 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_REALPATH], [/* Define to 1 if you have the \`realpath' function. */ | ||
510 | #undef HAVE_REALPATH]) | ||
511 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_RECVMSG], [/* Define to 1 if you have the \`recvmsg' function. */ | ||
512 | #undef HAVE_RECVMSG]) | ||
513 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_RRESVPORT_AF], [/* Define to 1 if you have the \`rresvport_af' function. */ | ||
514 | #undef HAVE_RRESVPORT_AF]) | ||
515 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SENDMSG], [/* Define to 1 if you have the \`sendmsg' function. */ | ||
516 | #undef HAVE_SENDMSG]) | ||
517 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETDTABLESIZE], [/* Define to 1 if you have the \`setdtablesize' function. */ | ||
518 | #undef HAVE_SETDTABLESIZE]) | ||
519 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETEGID], [/* Define to 1 if you have the \`setegid' function. */ | ||
520 | #undef HAVE_SETEGID]) | ||
521 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETENV], [/* Define to 1 if you have the \`setenv' function. */ | ||
522 | #undef HAVE_SETENV]) | ||
523 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETEUID], [/* Define to 1 if you have the \`seteuid' function. */ | ||
524 | #undef HAVE_SETEUID]) | ||
525 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETGROUPS], [/* Define to 1 if you have the \`setgroups' function. */ | ||
526 | #undef HAVE_SETGROUPS]) | ||
527 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETLOGIN], [/* Define to 1 if you have the \`setlogin' function. */ | ||
528 | #undef HAVE_SETLOGIN]) | ||
529 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETPCRED], [/* Define to 1 if you have the \`setpcred' function. */ | ||
530 | #undef HAVE_SETPCRED]) | ||
531 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETPROCTITLE], [/* Define to 1 if you have the \`setproctitle' function. */ | ||
532 | #undef HAVE_SETPROCTITLE]) | ||
533 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETRESGID], [/* Define to 1 if you have the \`setresgid' function. */ | ||
534 | #undef HAVE_SETRESGID]) | ||
535 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETREUID], [/* Define to 1 if you have the \`setreuid' function. */ | ||
536 | #undef HAVE_SETREUID]) | ||
537 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETRLIMIT], [/* Define to 1 if you have the \`setrlimit' function. */ | ||
538 | #undef HAVE_SETRLIMIT]) | ||
539 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETSID], [/* Define to 1 if you have the \`setsid' function. */ | ||
540 | #undef HAVE_SETSID]) | ||
541 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SETVBUF], [/* Define to 1 if you have the \`setvbuf' function. */ | ||
542 | #undef HAVE_SETVBUF]) | ||
543 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SIGACTION], [/* Define to 1 if you have the \`sigaction' function. */ | ||
544 | #undef HAVE_SIGACTION]) | ||
545 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SIGVEC], [/* Define to 1 if you have the \`sigvec' function. */ | ||
546 | #undef HAVE_SIGVEC]) | ||
547 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the \`snprintf' function. */ | ||
548 | #undef HAVE_SNPRINTF]) | ||
549 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SOCKETPAIR], [/* Define to 1 if you have the \`socketpair' function. */ | ||
550 | #undef HAVE_SOCKETPAIR]) | ||
551 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the \`strerror' function. */ | ||
552 | #undef HAVE_STRERROR]) | ||
553 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the \`strlcat' function. */ | ||
554 | #undef HAVE_STRLCAT]) | ||
555 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRLCPY], [/* Define to 1 if you have the \`strlcpy' function. */ | ||
556 | #undef HAVE_STRLCPY]) | ||
557 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRMODE], [/* Define to 1 if you have the \`strmode' function. */ | ||
558 | #undef HAVE_STRMODE]) | ||
559 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_STRNVIS], [/* Define to 1 if you have the \`strnvis' function. */ | ||
560 | #undef HAVE_STRNVIS]) | ||
561 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_SYSCONF], [/* Define to 1 if you have the \`sysconf' function. */ | ||
562 | #undef HAVE_SYSCONF]) | ||
563 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_TCGETPGRP], [/* Define to 1 if you have the \`tcgetpgrp' function. */ | ||
564 | #undef HAVE_TCGETPGRP]) | ||
565 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_TRUNCATE], [/* Define to 1 if you have the \`truncate' function. */ | ||
566 | #undef HAVE_TRUNCATE]) | ||
567 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_UTIMES], [/* Define to 1 if you have the \`utimes' function. */ | ||
568 | #undef HAVE_UTIMES]) | ||
569 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_VHANGUP], [/* Define to 1 if you have the \`vhangup' function. */ | ||
570 | #undef HAVE_VHANGUP]) | ||
571 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the \`vsnprintf' function. */ | ||
572 | #undef HAVE_VSNPRINTF]) | ||
573 | m4trace:configure.ac:618: -1- AH_OUTPUT([HAVE_WAITPID], [/* Define to 1 if you have the \`waitpid' function. */ | ||
574 | #undef HAVE_WAITPID]) | ||
575 | m4trace:configure.ac:620: -2- AC_DEFINE_TRACE_LITERAL([HAVE_NANOSLEEP]) | ||
576 | m4trace:configure.ac:623: -1- AC_CHECK_FUNCS([strsep]) | ||
577 | m4trace:configure.ac:623: -1- AH_OUTPUT([HAVE_STRSEP], [/* Define to 1 if you have the \`strsep' function. */ | ||
578 | #undef HAVE_STRSEP]) | ||
579 | m4trace:configure.ac:660: -1- AC_CHECK_FUNCS([dirname], [AC_CHECK_HEADERS(libgen.h) ], [ | ||
580 | AC_CHECK_LIB(gen, dirname,[ | ||
581 | AC_CACHE_CHECK([for broken dirname], | ||
582 | ac_cv_have_broken_dirname, [ | ||
583 | save_LIBS="$LIBS" | ||
584 | LIBS="$LIBS -lgen" | ||
585 | AC_TRY_RUN( | ||
586 | [ | ||
587 | #include <libgen.h> | ||
588 | #include <string.h> | ||
589 | |||
590 | int main(int argc, char **argv) { | ||
591 | char *s, buf[32]; | ||
592 | |||
593 | strncpy(buf,"/etc", 32); | ||
594 | s = dirname(buf); | ||
595 | if (!s || strncmp(s, "/", 32) != 0) { | ||
596 | exit(1); | ||
597 | } else { | ||
598 | exit(0); | ||
599 | } | ||
600 | } | ||
601 | ], | ||
602 | [ ac_cv_have_broken_dirname="no" ], | ||
603 | [ ac_cv_have_broken_dirname="yes" ] | ||
604 | ) | ||
605 | LIBS="$save_LIBS" | ||
606 | ]) | ||
607 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
608 | LIBS="$LIBS -lgen" | ||
609 | AC_DEFINE(HAVE_DIRNAME) | ||
610 | AC_CHECK_HEADERS(libgen.h) | ||
611 | fi | ||
612 | ]) | ||
613 | ]) | ||
614 | m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_DIRNAME], [/* Define to 1 if you have the \`dirname' function. */ | ||
615 | #undef HAVE_DIRNAME]) | ||
616 | m4trace:configure.ac:660: -1- AC_CHECK_HEADERS([libgen.h]) | ||
617 | m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */ | ||
618 | #undef HAVE_LIBGEN_H]) | ||
619 | m4trace:configure.ac:660: -1- AC_CHECK_LIB([gen], [dirname], [ | ||
620 | AC_CACHE_CHECK([for broken dirname], | ||
621 | ac_cv_have_broken_dirname, [ | ||
622 | save_LIBS="$LIBS" | ||
623 | LIBS="$LIBS -lgen" | ||
624 | AC_TRY_RUN( | ||
625 | [ | ||
626 | #include <libgen.h> | ||
627 | #include <string.h> | ||
628 | |||
629 | int main(int argc, char **argv) { | ||
630 | char *s, buf[32]; | ||
631 | |||
632 | strncpy(buf,"/etc", 32); | ||
633 | s = dirname(buf); | ||
634 | if (!s || strncmp(s, "/", 32) != 0) { | ||
635 | exit(1); | ||
636 | } else { | ||
637 | exit(0); | ||
638 | } | ||
639 | } | ||
640 | ], | ||
641 | [ ac_cv_have_broken_dirname="no" ], | ||
642 | [ ac_cv_have_broken_dirname="yes" ] | ||
643 | ) | ||
644 | LIBS="$save_LIBS" | ||
645 | ]) | ||
646 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
647 | LIBS="$LIBS -lgen" | ||
648 | AC_DEFINE(HAVE_DIRNAME) | ||
649 | AC_CHECK_HEADERS(libgen.h) | ||
650 | fi | ||
651 | ]) | ||
652 | m4trace:configure.ac:660: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DIRNAME]) | ||
653 | m4trace:configure.ac:660: -1- AC_CHECK_HEADERS([libgen.h]) | ||
654 | m4trace:configure.ac:660: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */ | ||
655 | #undef HAVE_LIBGEN_H]) | ||
656 | m4trace:configure.ac:663: -1- AC_CHECK_FUNCS([gettimeofday time]) | ||
657 | m4trace:configure.ac:663: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the \`gettimeofday' function. */ | ||
658 | #undef HAVE_GETTIMEOFDAY]) | ||
659 | m4trace:configure.ac:663: -1- AH_OUTPUT([HAVE_TIME], [/* Define to 1 if you have the \`time' function. */ | ||
660 | #undef HAVE_TIME]) | ||
661 | m4trace:configure.ac:665: -1- AC_CHECK_FUNCS([endutent getutent getutid getutline pututline setutent]) | ||
662 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_ENDUTENT], [/* Define to 1 if you have the \`endutent' function. */ | ||
663 | #undef HAVE_ENDUTENT]) | ||
664 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTENT], [/* Define to 1 if you have the \`getutent' function. */ | ||
665 | #undef HAVE_GETUTENT]) | ||
666 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTID], [/* Define to 1 if you have the \`getutid' function. */ | ||
667 | #undef HAVE_GETUTID]) | ||
668 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_GETUTLINE], [/* Define to 1 if you have the \`getutline' function. */ | ||
669 | #undef HAVE_GETUTLINE]) | ||
670 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_PUTUTLINE], [/* Define to 1 if you have the \`pututline' function. */ | ||
671 | #undef HAVE_PUTUTLINE]) | ||
672 | m4trace:configure.ac:665: -1- AH_OUTPUT([HAVE_SETUTENT], [/* Define to 1 if you have the \`setutent' function. */ | ||
673 | #undef HAVE_SETUTENT]) | ||
674 | m4trace:configure.ac:666: -1- AC_CHECK_FUNCS([utmpname]) | ||
675 | m4trace:configure.ac:666: -1- AH_OUTPUT([HAVE_UTMPNAME], [/* Define to 1 if you have the \`utmpname' function. */ | ||
676 | #undef HAVE_UTMPNAME]) | ||
677 | m4trace:configure.ac:668: -1- AC_CHECK_FUNCS([endutxent getutxent getutxid getutxline pututxline ]) | ||
678 | m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_ENDUTXENT], [/* Define to 1 if you have the \`endutxent' function. */ | ||
679 | #undef HAVE_ENDUTXENT]) | ||
680 | m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXENT], [/* Define to 1 if you have the \`getutxent' function. */ | ||
681 | #undef HAVE_GETUTXENT]) | ||
682 | m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXID], [/* Define to 1 if you have the \`getutxid' function. */ | ||
683 | #undef HAVE_GETUTXID]) | ||
684 | m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_GETUTXLINE], [/* Define to 1 if you have the \`getutxline' function. */ | ||
685 | #undef HAVE_GETUTXLINE]) | ||
686 | m4trace:configure.ac:668: -1- AH_OUTPUT([HAVE_PUTUTXLINE], [/* Define to 1 if you have the \`pututxline' function. */ | ||
687 | #undef HAVE_PUTUTXLINE]) | ||
688 | m4trace:configure.ac:669: -1- AC_CHECK_FUNCS([setutxent utmpxname]) | ||
689 | m4trace:configure.ac:669: -1- AH_OUTPUT([HAVE_SETUTXENT], [/* Define to 1 if you have the \`setutxent' function. */ | ||
690 | #undef HAVE_SETUTXENT]) | ||
691 | m4trace:configure.ac:669: -1- AH_OUTPUT([HAVE_UTMPXNAME], [/* Define to 1 if you have the \`utmpxname' function. */ | ||
692 | #undef HAVE_UTMPXNAME]) | ||
693 | m4trace:configure.ac:674: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON]) | ||
694 | m4trace:configure.ac:674: -1- AC_CHECK_LIB([bsd], [daemon], [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)]) | ||
695 | m4trace:configure.ac:674: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON]) | ||
696 | m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE]) | ||
697 | m4trace:configure.ac:679: -1- AC_CHECK_LIB([ucb], [getpagesize], [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)]) | ||
698 | m4trace:configure.ac:679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE]) | ||
699 | m4trace:configure.ac:695: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF]) | ||
700 | m4trace:configure.ac:721: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP]) | ||
701 | m4trace:configure.ac:721: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRICT_MKSTEMP]) | ||
702 | m4trace:configure.ac:724: -1- AC_FUNC_GETPGRP | ||
703 | m4trace:configure.ac:724: -1- AC_DEFINE_TRACE_LITERAL([GETPGRP_VOID]) | ||
704 | m4trace:configure.ac:724: -1- AH_OUTPUT([GETPGRP_VOID], [/* Define to 1 if the \`getpgrp' function requires zero arguments. */ | ||
705 | #undef GETPGRP_VOID]) | ||
706 | m4trace:configure.ac:752: -1- AC_CHECK_LIB([dl], [dlopen], [], []) | ||
707 | m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_LIBDL], [/* Define to 1 if you have the \`dl' library (-ldl). */ | ||
708 | #undef HAVE_LIBDL]) | ||
709 | m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDL]) | ||
710 | m4trace:configure.ac:752: -1- AC_CHECK_LIB([pam], [pam_set_item], [], [{ { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
711 | echo "$as_me: error: *** libpam missing" >&2;} | ||
712 | { (exit 1); exit 1; }; }]) | ||
713 | m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_LIBPAM], [/* Define to 1 if you have the \`pam' library (-lpam). */ | ||
714 | #undef HAVE_LIBPAM]) | ||
715 | m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPAM]) | ||
716 | m4trace:configure.ac:752: -1- AC_CHECK_FUNCS([pam_getenvlist]) | ||
717 | m4trace:configure.ac:752: -1- AH_OUTPUT([HAVE_PAM_GETENVLIST], [/* Define to 1 if you have the \`pam_getenvlist' function. */ | ||
718 | #undef HAVE_PAM_GETENVLIST]) | ||
719 | m4trace:configure.ac:752: -1- AC_DEFINE_TRACE_LITERAL([USE_PAM]) | ||
720 | m4trace:configure.ac:752: -1- AC_SUBST([LIBPAM]) | ||
721 | m4trace:configure.ac:770: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OLD_PAM]) | ||
722 | m4trace:configure.ac:776: -1- AC_CHECK_LIB([crypt], [crypt]) | ||
723 | m4trace:configure.ac:776: -1- AH_OUTPUT([HAVE_LIBCRYPT], [/* Define to 1 if you have the \`crypt' library (-lcrypt). */ | ||
724 | #undef HAVE_LIBCRYPT]) | ||
725 | m4trace:configure.ac:776: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCRYPT]) | ||
726 | m4trace:configure.ac:808: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL]) | ||
727 | m4trace:configure.ac:823: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL]) | ||
728 | m4trace:configure.ac:910: -1- AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"]) | ||
729 | m4trace:configure.ac:958: -1- AC_DEFINE_TRACE_LITERAL([OPENSSL_PRNG_ONLY]) | ||
730 | m4trace:configure.ac:966: -1- AC_SUBST([INSTALL_SSH_RAND_HELPER]) | ||
731 | m4trace:configure.ac:989: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_PORT]) | ||
732 | m4trace:configure.ac:1039: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET]) | ||
733 | m4trace:configure.ac:1039: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET]) | ||
734 | m4trace:configure.ac:1051: -1- AC_DEFINE_TRACE_LITERAL([ENTROPY_TIMEOUT_MSEC]) | ||
735 | m4trace:configure.ac:1062: -1- AC_DEFINE_TRACE_LITERAL([SSH_PRIVSEP_USER]) | ||
736 | m4trace:configure.ac:1063: -1- AC_SUBST([SSH_PRIVSEP_USER]) | ||
737 | m4trace:configure.ac:1080: -1- AC_SUBST([PROG_LS], [$ac_cv_path_PROG_LS]) | ||
738 | m4trace:configure.ac:1080: -1- AC_SUBST([PROG_LS]) | ||
739 | m4trace:configure.ac:1081: -1- AC_SUBST([PROG_NETSTAT], [$ac_cv_path_PROG_NETSTAT]) | ||
740 | m4trace:configure.ac:1081: -1- AC_SUBST([PROG_NETSTAT]) | ||
741 | m4trace:configure.ac:1082: -1- AC_SUBST([PROG_ARP], [$ac_cv_path_PROG_ARP]) | ||
742 | m4trace:configure.ac:1082: -1- AC_SUBST([PROG_ARP]) | ||
743 | m4trace:configure.ac:1083: -1- AC_SUBST([PROG_IFCONFIG], [$ac_cv_path_PROG_IFCONFIG]) | ||
744 | m4trace:configure.ac:1083: -1- AC_SUBST([PROG_IFCONFIG]) | ||
745 | m4trace:configure.ac:1084: -1- AC_SUBST([PROG_JSTAT], [$ac_cv_path_PROG_JSTAT]) | ||
746 | m4trace:configure.ac:1084: -1- AC_SUBST([PROG_JSTAT]) | ||
747 | m4trace:configure.ac:1085: -1- AC_SUBST([PROG_PS], [$ac_cv_path_PROG_PS]) | ||
748 | m4trace:configure.ac:1085: -1- AC_SUBST([PROG_PS]) | ||
749 | m4trace:configure.ac:1086: -1- AC_SUBST([PROG_SAR], [$ac_cv_path_PROG_SAR]) | ||
750 | m4trace:configure.ac:1086: -1- AC_SUBST([PROG_SAR]) | ||
751 | m4trace:configure.ac:1087: -1- AC_SUBST([PROG_W], [$ac_cv_path_PROG_W]) | ||
752 | m4trace:configure.ac:1087: -1- AC_SUBST([PROG_W]) | ||
753 | m4trace:configure.ac:1088: -1- AC_SUBST([PROG_WHO], [$ac_cv_path_PROG_WHO]) | ||
754 | m4trace:configure.ac:1088: -1- AC_SUBST([PROG_WHO]) | ||
755 | m4trace:configure.ac:1089: -1- AC_SUBST([PROG_LAST], [$ac_cv_path_PROG_LAST]) | ||
756 | m4trace:configure.ac:1089: -1- AC_SUBST([PROG_LAST]) | ||
757 | m4trace:configure.ac:1090: -1- AC_SUBST([PROG_LASTLOG], [$ac_cv_path_PROG_LASTLOG]) | ||
758 | m4trace:configure.ac:1090: -1- AC_SUBST([PROG_LASTLOG]) | ||
759 | m4trace:configure.ac:1091: -1- AC_SUBST([PROG_DF], [$ac_cv_path_PROG_DF]) | ||
760 | m4trace:configure.ac:1091: -1- AC_SUBST([PROG_DF]) | ||
761 | m4trace:configure.ac:1092: -1- AC_SUBST([PROG_VMSTAT], [$ac_cv_path_PROG_VMSTAT]) | ||
762 | m4trace:configure.ac:1092: -1- AC_SUBST([PROG_VMSTAT]) | ||
763 | m4trace:configure.ac:1093: -1- AC_SUBST([PROG_UPTIME], [$ac_cv_path_PROG_UPTIME]) | ||
764 | m4trace:configure.ac:1093: -1- AC_SUBST([PROG_UPTIME]) | ||
765 | m4trace:configure.ac:1094: -1- AC_SUBST([PROG_IPCS], [$ac_cv_path_PROG_IPCS]) | ||
766 | m4trace:configure.ac:1094: -1- AC_SUBST([PROG_IPCS]) | ||
767 | m4trace:configure.ac:1095: -1- AC_SUBST([PROG_TAIL], [$ac_cv_path_PROG_TAIL]) | ||
768 | m4trace:configure.ac:1095: -1- AC_SUBST([PROG_TAIL]) | ||
769 | m4trace:configure.ac:1112: -1- AC_SUBST([INSTALL_SSH_PRNG_CMDS]) | ||
770 | m4trace:configure.ac:1121: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_CHAR]) | ||
771 | m4trace:configure.ac:1121: -1- AH_OUTPUT([SIZEOF_CHAR], [/* The size of a \`char', as computed by sizeof. */ | ||
772 | #undef SIZEOF_CHAR]) | ||
773 | m4trace:configure.ac:1122: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SHORT_INT]) | ||
774 | m4trace:configure.ac:1122: -1- AH_OUTPUT([SIZEOF_SHORT_INT], [/* The size of a \`short int', as computed by sizeof. */ | ||
775 | #undef SIZEOF_SHORT_INT]) | ||
776 | m4trace:configure.ac:1123: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_INT]) | ||
777 | m4trace:configure.ac:1123: -1- AH_OUTPUT([SIZEOF_INT], [/* The size of a \`int', as computed by sizeof. */ | ||
778 | #undef SIZEOF_INT]) | ||
779 | m4trace:configure.ac:1124: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_INT]) | ||
780 | m4trace:configure.ac:1124: -1- AH_OUTPUT([SIZEOF_LONG_INT], [/* The size of a \`long int', as computed by sizeof. */ | ||
781 | #undef SIZEOF_LONG_INT]) | ||
782 | m4trace:configure.ac:1125: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_LONG_INT]) | ||
783 | m4trace:configure.ac:1125: -1- AH_OUTPUT([SIZEOF_LONG_LONG_INT], [/* The size of a \`long long int', as computed by sizeof. */ | ||
784 | #undef SIZEOF_LONG_LONG_INT]) | ||
785 | m4trace:configure.ac:1142: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT]) | ||
786 | m4trace:configure.ac:1155: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T]) | ||
787 | m4trace:configure.ac:1171: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T]) | ||
788 | m4trace:configure.ac:1192: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT64_T]) | ||
789 | m4trace:configure.ac:1204: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T]) | ||
790 | m4trace:configure.ac:1218: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T]) | ||
791 | m4trace:configure.ac:1230: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T]) | ||
792 | m4trace:configure.ac:1244: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T]) | ||
793 | m4trace:configure.ac:1259: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T]) | ||
794 | m4trace:configure.ac:1273: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T]) | ||
795 | m4trace:configure.ac:1295: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T]) | ||
796 | m4trace:configure.ac:1295: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T]) | ||
797 | m4trace:configure.ac:1310: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_CHAR]) | ||
798 | m4trace:configure.ac:1313: -1- AC_DEFINE_TRACE_LITERAL([socklen_t]) | ||
799 | m4trace:configure.ac:1313: -1- AH_OUTPUT([socklen_t], [/* type to use in place of socklen_t if not defined */ | ||
800 | #undef socklen_t]) | ||
801 | m4trace:configure.ac:1315: -1- AC_CHECK_TYPES([sig_atomic_t], [], [], [#include <signal.h>]) | ||
802 | m4trace:configure.ac:1315: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIG_ATOMIC_T]) | ||
803 | m4trace:configure.ac:1315: -1- AH_OUTPUT([HAVE_SIG_ATOMIC_T], [/* Define to 1 if the system has the type \`sig_atomic_t'. */ | ||
804 | #undef HAVE_SIG_ATOMIC_T]) | ||
805 | m4trace:configure.ac:1328: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIZE_T]) | ||
806 | m4trace:configure.ac:1342: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) | ||
807 | m4trace:configure.ac:1356: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CLOCK_T]) | ||
808 | m4trace:configure.ac:1381: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SA_FAMILY_T]) | ||
809 | m4trace:configure.ac:1395: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_T]) | ||
810 | m4trace:configure.ac:1409: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODE_T]) | ||
811 | m4trace:configure.ac:1425: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_STORAGE]) | ||
812 | m4trace:configure.ac:1440: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN6]) | ||
813 | m4trace:configure.ac:1455: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IN6_ADDR]) | ||
814 | m4trace:configure.ac:1471: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_ADDRINFO]) | ||
815 | m4trace:configure.ac:1483: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMEVAL]) | ||
816 | m4trace:configure.ac:1487: -1- AC_CHECK_TYPES([struct timespec]) | ||
817 | m4trace:configure.ac:1487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMESPEC]) | ||
818 | m4trace:configure.ac:1487: -1- AH_OUTPUT([HAVE_STRUCT_TIMESPEC], [/* Define to 1 if the system has the type \`struct timespec'. */ | ||
819 | #undef HAVE_STRUCT_TIMESPEC]) | ||
820 | m4trace:configure.ac:1524: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF]) | ||
821 | m4trace:configure.ac:1528: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMP]) | ||
822 | m4trace:configure.ac:1529: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMPX]) | ||
823 | m4trace:configure.ac:1530: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYSLEN_IN_UTMPX]) | ||
824 | m4trace:configure.ac:1531: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_IN_UTMP]) | ||
825 | m4trace:configure.ac:1532: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMP]) | ||
826 | m4trace:configure.ac:1533: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMPX]) | ||
827 | m4trace:configure.ac:1534: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMP]) | ||
828 | m4trace:configure.ac:1535: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMP]) | ||
829 | m4trace:configure.ac:1536: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMPX]) | ||
830 | m4trace:configure.ac:1537: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMP]) | ||
831 | m4trace:configure.ac:1538: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMPX]) | ||
832 | m4trace:configure.ac:1539: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMP]) | ||
833 | m4trace:configure.ac:1540: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMPX]) | ||
834 | m4trace:configure.ac:1541: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EXIT_IN_UTMP]) | ||
835 | m4trace:configure.ac:1542: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMP]) | ||
836 | m4trace:configure.ac:1543: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMPX]) | ||
837 | m4trace:configure.ac:1544: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMPX]) | ||
838 | m4trace:configure.ac:1546: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_STAT_ST_BLKSIZE]) | ||
839 | m4trace:configure.ac:1546: -1- AH_OUTPUT([HAVE_STRUCT_STAT_ST_BLKSIZE], [/* Define to 1 if \`st_blksize' is member of \`struct stat'. */ | ||
840 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE]) | ||
841 | m4trace:configure.ac:1561: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SS_FAMILY_IN_SS]) | ||
842 | m4trace:configure.ac:1577: -1- AC_DEFINE_TRACE_LITERAL([HAVE___SS_FAMILY_IN_SS]) | ||
843 | m4trace:configure.ac:1592: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CLASS_IN_PASSWD]) | ||
844 | m4trace:configure.ac:1607: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_EXPIRE_IN_PASSWD]) | ||
845 | m4trace:configure.ac:1622: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CHANGE_IN_PASSWD]) | ||
846 | m4trace:configure.ac:1647: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ACCRIGHTS_IN_MSGHDR]) | ||
847 | m4trace:configure.ac:1671: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CONTROL_IN_MSGHDR]) | ||
848 | m4trace:configure.ac:1682: -1- AC_DEFINE_TRACE_LITERAL([HAVE___PROGNAME]) | ||
849 | m4trace:configure.ac:1695: -1- AC_DEFINE_TRACE_LITERAL([HAVE___FUNCTION__]) | ||
850 | m4trace:configure.ac:1708: -1- AC_DEFINE_TRACE_LITERAL([HAVE___func__]) | ||
851 | m4trace:configure.ac:1723: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETOPT_OPTRESET]) | ||
852 | m4trace:configure.ac:1734: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_ERRLIST]) | ||
853 | m4trace:configure.ac:1746: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_NERR]) | ||
854 | m4trace:configure.ac:1779: -1- AC_CHECK_HEADERS([sectok.h]) | ||
855 | m4trace:configure.ac:1779: -1- AH_OUTPUT([HAVE_SECTOK_H], [/* Define to 1 if you have the <sectok.h> header file. */ | ||
856 | #undef HAVE_SECTOK_H]) | ||
857 | m4trace:configure.ac:1779: -1- AC_CHECK_LIB([sectok], [sectok_open]) | ||
858 | m4trace:configure.ac:1779: -1- AH_OUTPUT([HAVE_LIBSECTOK], [/* Define to 1 if you have the \`sectok' library (-lsectok). */ | ||
859 | #undef HAVE_LIBSECTOK]) | ||
860 | m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSECTOK]) | ||
861 | m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD]) | ||
862 | m4trace:configure.ac:1779: -1- AC_DEFINE_TRACE_LITERAL([USE_SECTOK]) | ||
863 | m4trace:configure.ac:1788: -1- AC_SUBST([OPENSC_CONFIG], [$ac_cv_path_OPENSC_CONFIG]) | ||
864 | m4trace:configure.ac:1794: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD]) | ||
865 | m4trace:configure.ac:1795: -1- AC_DEFINE_TRACE_LITERAL([USE_OPENSC]) | ||
866 | m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([KRB5]) | ||
867 | m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([HEIMDAL]) | ||
868 | m4trace:configure.ac:1837: -1- AC_CHECK_LIB([resolv], [dn_expand], [], []) | ||
869 | m4trace:configure.ac:1837: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */ | ||
870 | #undef HAVE_LIBRESOLV]) | ||
871 | m4trace:configure.ac:1837: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV]) | ||
872 | m4trace:configure.ac:1891: -1- AC_CHECK_HEADERS([krb.h]) | ||
873 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_KRB_H], [/* Define to 1 if you have the <krb.h> header file. */ | ||
874 | #undef HAVE_KRB_H]) | ||
875 | m4trace:configure.ac:1891: -1- AC_CHECK_LIB([krb], [main]) | ||
876 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBKRB], [/* Define to 1 if you have the \`krb' library (-lkrb). */ | ||
877 | #undef HAVE_LIBKRB]) | ||
878 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB]) | ||
879 | m4trace:configure.ac:1891: -1- AC_CHECK_LIB([krb4], [main]) | ||
880 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBKRB4], [/* Define to 1 if you have the \`krb4' library (-lkrb4). */ | ||
881 | #undef HAVE_LIBKRB4]) | ||
882 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB4]) | ||
883 | m4trace:configure.ac:1891: -1- AC_CHECK_LIB([des], [des_cbc_encrypt]) | ||
884 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBDES], [/* Define to 1 if you have the \`des' library (-ldes). */ | ||
885 | #undef HAVE_LIBDES]) | ||
886 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES]) | ||
887 | m4trace:configure.ac:1891: -1- AC_CHECK_LIB([des425], [des_cbc_encrypt]) | ||
888 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBDES425], [/* Define to 1 if you have the \`des425' library (-ldes425). */ | ||
889 | #undef HAVE_LIBDES425]) | ||
890 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES425]) | ||
891 | m4trace:configure.ac:1891: -1- AC_CHECK_LIB([resolv], [dn_expand], [], []) | ||
892 | m4trace:configure.ac:1891: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */ | ||
893 | #undef HAVE_LIBRESOLV]) | ||
894 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV]) | ||
895 | m4trace:configure.ac:1891: -1- AC_DEFINE_TRACE_LITERAL([KRB4]) | ||
896 | m4trace:configure.ac:1917: -1- AC_DEFINE_TRACE_LITERAL([AFS]) | ||
897 | m4trace:configure.ac:1931: -1- AC_SUBST([PRIVSEP_PATH]) | ||
898 | m4trace:configure.ac:1951: -1- AC_SUBST([xauth_path], [$ac_cv_path_xauth_path]) | ||
899 | m4trace:configure.ac:1962: -1- AC_SUBST([STRIP_OPT]) | ||
900 | m4trace:configure.ac:1966: -1- AC_SUBST([XAUTH_PATH]) | ||
901 | m4trace:configure.ac:1968: -1- AC_DEFINE_TRACE_LITERAL([XAUTH_PATH]) | ||
902 | m4trace:configure.ac:1970: -1- AC_SUBST([XAUTH_PATH]) | ||
903 | m4trace:configure.ac:1976: -1- AC_DEFINE_TRACE_LITERAL([MAIL_DIRECTORY]) | ||
904 | m4trace:configure.ac:1986: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTMX]) | ||
905 | m4trace:configure.ac:1994: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTS_AND_PTC]) | ||
906 | m4trace:configure.ac:2012: -1- AC_SUBST([NROFF], [$ac_cv_path_NROFF]) | ||
907 | m4trace:configure.ac:2021: -1- AC_SUBST([MANTYPE]) | ||
908 | m4trace:configure.ac:2027: -1- AC_SUBST([mansubdir]) | ||
909 | m4trace:configure.ac:2039: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MD5_PASSWORDS]) | ||
910 | m4trace:configure.ac:2050: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW]) | ||
911 | m4trace:configure.ac:2065: -1- AC_DEFINE_TRACE_LITERAL([HAS_SHADOW_EXPIRE]) | ||
912 | m4trace:configure.ac:2074: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY]) | ||
913 | m4trace:configure.ac:2085: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY]) | ||
914 | m4trace:configure.ac:2166: -1- AC_DEFINE_TRACE_LITERAL([USER_PATH]) | ||
915 | m4trace:configure.ac:2167: -1- AC_SUBST([user_path]) | ||
916 | m4trace:configure.ac:2179: -1- AC_DEFINE_TRACE_LITERAL([SUPERUSER_PATH]) | ||
917 | m4trace:configure.ac:2192: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT]) | ||
918 | m4trace:configure.ac:2215: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6]) | ||
919 | m4trace:configure.ac:2215: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6]) | ||
920 | m4trace:configure.ac:2227: -1- AC_DEFINE_TRACE_LITERAL([BSD_AUTH]) | ||
921 | m4trace:configure.ac:2251: -1- AC_DEFINE_TRACE_LITERAL([_PATH_SSH_PIDDIR]) | ||
922 | m4trace:configure.ac:2252: -1- AC_SUBST([piddir]) | ||
923 | m4trace:configure.ac:2258: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG]) | ||
924 | m4trace:configure.ac:2262: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
925 | m4trace:configure.ac:2266: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX]) | ||
926 | m4trace:configure.ac:2270: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP]) | ||
927 | m4trace:configure.ac:2274: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX]) | ||
928 | m4trace:configure.ac:2278: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN]) | ||
929 | m4trace:configure.ac:2282: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTLINE]) | ||
930 | m4trace:configure.ac:2286: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTXLINE]) | ||
931 | m4trace:configure.ac:2296: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG]) | ||
932 | m4trace:configure.ac:2358: -1- AC_DEFINE_TRACE_LITERAL([CONF_LASTLOG_FILE]) | ||
933 | m4trace:configure.ac:2383: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP]) | ||
934 | m4trace:configure.ac:2388: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMP_FILE]) | ||
935 | m4trace:configure.ac:2413: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP]) | ||
936 | m4trace:configure.ac:2418: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMP_FILE]) | ||
937 | m4trace:configure.ac:2443: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX]) | ||
938 | m4trace:configure.ac:2446: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMPX_FILE]) | ||
939 | m4trace:configure.ac:2468: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX]) | ||
940 | m4trace:configure.ac:2471: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMPX_FILE]) | ||
941 | m4trace:configure.ac:2489: -1- AC_CONFIG_FILES([Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds]) | ||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..55149792c --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,943 @@ | |||
1 | /* config.h.in. Generated from configure.ac by autoheader. */ | ||
2 | /* $Id: acconfig.h,v 1.149 2003/03/10 00:38:10 djm Exp $ */ | ||
3 | |||
4 | #ifndef _CONFIG_H | ||
5 | #define _CONFIG_H | ||
6 | |||
7 | /* Generated automatically from acconfig.h by autoheader. */ | ||
8 | /* Please make your changes there */ | ||
9 | |||
10 | |||
11 | /* Define to a Set Process Title type if your system is */ | ||
12 | /* supported by bsd-setproctitle.c */ | ||
13 | #undef SPT_TYPE | ||
14 | |||
15 | /* setgroups() NOOP allowed */ | ||
16 | #undef SETGROUPS_NOOP | ||
17 | |||
18 | /* SCO workaround */ | ||
19 | #undef BROKEN_SYS_TERMIO_H | ||
20 | |||
21 | /* Define if you have SecureWare-based protected password database */ | ||
22 | #undef HAVE_SECUREWARE | ||
23 | |||
24 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) */ | ||
25 | /* from environment and PATH */ | ||
26 | #undef LOGIN_PROGRAM_FALLBACK | ||
27 | |||
28 | /* Define if your password has a pw_class field */ | ||
29 | #undef HAVE_PW_CLASS_IN_PASSWD | ||
30 | |||
31 | /* Define if your password has a pw_expire field */ | ||
32 | #undef HAVE_PW_EXPIRE_IN_PASSWD | ||
33 | |||
34 | /* Define if your password has a pw_change field */ | ||
35 | #undef HAVE_PW_CHANGE_IN_PASSWD | ||
36 | |||
37 | /* Define if your system uses access rights style file descriptor passing */ | ||
38 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
39 | |||
40 | /* Define if your system uses ancillary data style file descriptor passing */ | ||
41 | #undef HAVE_CONTROL_IN_MSGHDR | ||
42 | |||
43 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ | ||
44 | #undef BROKEN_INET_NTOA | ||
45 | |||
46 | /* Define if your system defines sys_errlist[] */ | ||
47 | #undef HAVE_SYS_ERRLIST | ||
48 | |||
49 | /* Define if your system defines sys_nerr */ | ||
50 | #undef HAVE_SYS_NERR | ||
51 | |||
52 | /* Define if your system choked on IP TOS setting */ | ||
53 | #undef IP_TOS_IS_BROKEN | ||
54 | |||
55 | /* Define if you have the getuserattr function. */ | ||
56 | #undef HAVE_GETUSERATTR | ||
57 | |||
58 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
59 | #undef PAM_TTY_KLUDGE | ||
60 | |||
61 | /* Use PIPES instead of a socketpair() */ | ||
62 | #undef USE_PIPES | ||
63 | |||
64 | /* Define if your snprintf is busted */ | ||
65 | #undef BROKEN_SNPRINTF | ||
66 | |||
67 | /* Define if you are on Cygwin */ | ||
68 | #undef HAVE_CYGWIN | ||
69 | |||
70 | /* Define if you have a broken realpath. */ | ||
71 | #undef BROKEN_REALPATH | ||
72 | |||
73 | /* Define if you are on NeXT */ | ||
74 | #undef HAVE_NEXT | ||
75 | |||
76 | /* Define if you are on NEWS-OS */ | ||
77 | #undef HAVE_NEWS4 | ||
78 | |||
79 | /* Define if you want to enable PAM support */ | ||
80 | #undef USE_PAM | ||
81 | |||
82 | /* Define if you want to enable AIX4's authenticate function */ | ||
83 | #undef WITH_AIXAUTHENTICATE | ||
84 | |||
85 | /* Define if you have/want arrays (cluster-wide session managment, not C arrays) */ | ||
86 | #undef WITH_IRIX_ARRAY | ||
87 | |||
88 | /* Define if you want IRIX project management */ | ||
89 | #undef WITH_IRIX_PROJECT | ||
90 | |||
91 | /* Define if you want IRIX audit trails */ | ||
92 | #undef WITH_IRIX_AUDIT | ||
93 | |||
94 | /* Define if you want IRIX kernel jobs */ | ||
95 | #undef WITH_IRIX_JOBS | ||
96 | |||
97 | /* Location of PRNGD/EGD random number socket */ | ||
98 | #undef PRNGD_SOCKET | ||
99 | |||
100 | /* Port number of PRNGD/EGD random number socket */ | ||
101 | #undef PRNGD_PORT | ||
102 | |||
103 | /* Builtin PRNG command timeout */ | ||
104 | #undef ENTROPY_TIMEOUT_MSEC | ||
105 | |||
106 | /* non-privileged user for privilege separation */ | ||
107 | #undef SSH_PRIVSEP_USER | ||
108 | |||
109 | /* Define if you want to install preformatted manpages.*/ | ||
110 | #undef MANTYPE | ||
111 | |||
112 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
113 | #undef HAVE_OPENSSL | ||
114 | |||
115 | /* Define if you are linking against RSAref. Used only to print the right | ||
116 | * message at run-time. */ | ||
117 | #undef RSAREF | ||
118 | |||
119 | /* struct timeval */ | ||
120 | #undef HAVE_STRUCT_TIMEVAL | ||
121 | |||
122 | /* struct utmp and struct utmpx fields */ | ||
123 | #undef HAVE_HOST_IN_UTMP | ||
124 | #undef HAVE_HOST_IN_UTMPX | ||
125 | #undef HAVE_ADDR_IN_UTMP | ||
126 | #undef HAVE_ADDR_IN_UTMPX | ||
127 | #undef HAVE_ADDR_V6_IN_UTMP | ||
128 | #undef HAVE_ADDR_V6_IN_UTMPX | ||
129 | #undef HAVE_SYSLEN_IN_UTMPX | ||
130 | #undef HAVE_PID_IN_UTMP | ||
131 | #undef HAVE_TYPE_IN_UTMP | ||
132 | #undef HAVE_TYPE_IN_UTMPX | ||
133 | #undef HAVE_TV_IN_UTMP | ||
134 | #undef HAVE_TV_IN_UTMPX | ||
135 | #undef HAVE_ID_IN_UTMP | ||
136 | #undef HAVE_ID_IN_UTMPX | ||
137 | #undef HAVE_EXIT_IN_UTMP | ||
138 | #undef HAVE_TIME_IN_UTMP | ||
139 | #undef HAVE_TIME_IN_UTMPX | ||
140 | |||
141 | /* Define if you don't want to use your system's login() call */ | ||
142 | #undef DISABLE_LOGIN | ||
143 | |||
144 | /* Define if you don't want to use pututline() etc. to write [uw]tmp */ | ||
145 | #undef DISABLE_PUTUTLINE | ||
146 | |||
147 | /* Define if you don't want to use pututxline() etc. to write [uw]tmpx */ | ||
148 | #undef DISABLE_PUTUTXLINE | ||
149 | |||
150 | /* Define if you don't want to use lastlog */ | ||
151 | #undef DISABLE_LASTLOG | ||
152 | |||
153 | /* Define if you don't want to use lastlog in session.c */ | ||
154 | #undef NO_SSH_LASTLOG | ||
155 | |||
156 | /* Define if you don't want to use utmp */ | ||
157 | #undef DISABLE_UTMP | ||
158 | |||
159 | /* Define if you don't want to use utmpx */ | ||
160 | #undef DISABLE_UTMPX | ||
161 | |||
162 | /* Define if you don't want to use wtmp */ | ||
163 | #undef DISABLE_WTMP | ||
164 | |||
165 | /* Define if you don't want to use wtmpx */ | ||
166 | #undef DISABLE_WTMPX | ||
167 | |||
168 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
169 | #undef LOGIN_NEEDS_UTMPX | ||
170 | |||
171 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
172 | #undef LOGIN_NEEDS_TERM | ||
173 | |||
174 | /* Define if your login program cannot handle end of options ("--") */ | ||
175 | #undef LOGIN_NO_ENDOPT | ||
176 | |||
177 | /* Define if you want to specify the path to your lastlog file */ | ||
178 | #undef CONF_LASTLOG_FILE | ||
179 | |||
180 | /* Define if you want to specify the path to your utmp file */ | ||
181 | #undef CONF_UTMP_FILE | ||
182 | |||
183 | /* Define if you want to specify the path to your wtmp file */ | ||
184 | #undef CONF_WTMP_FILE | ||
185 | |||
186 | /* Define if you want to specify the path to your utmpx file */ | ||
187 | #undef CONF_UTMPX_FILE | ||
188 | |||
189 | /* Define if you want to specify the path to your wtmpx file */ | ||
190 | #undef CONF_WTMPX_FILE | ||
191 | |||
192 | /* Define if you want external askpass support */ | ||
193 | #undef USE_EXTERNAL_ASKPASS | ||
194 | |||
195 | /* Define if libc defines __progname */ | ||
196 | #undef HAVE___PROGNAME | ||
197 | |||
198 | /* Define if compiler implements __FUNCTION__ */ | ||
199 | #undef HAVE___FUNCTION__ | ||
200 | |||
201 | /* Define if compiler implements __func__ */ | ||
202 | #undef HAVE___func__ | ||
203 | |||
204 | /* Define if you want Kerberos 5 support */ | ||
205 | #undef KRB5 | ||
206 | |||
207 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
208 | #undef HEIMDAL | ||
209 | |||
210 | /* Define if you want Kerberos 4 support */ | ||
211 | #undef KRB4 | ||
212 | |||
213 | /* Define if you want AFS support */ | ||
214 | #undef AFS | ||
215 | |||
216 | /* Define if you want S/Key support */ | ||
217 | #undef SKEY | ||
218 | |||
219 | /* Define if you want TCP Wrappers support */ | ||
220 | #undef LIBWRAP | ||
221 | |||
222 | /* Define if your libraries define login() */ | ||
223 | #undef HAVE_LOGIN | ||
224 | |||
225 | /* Define if your libraries define daemon() */ | ||
226 | #undef HAVE_DAEMON | ||
227 | |||
228 | /* Define if your libraries define getpagesize() */ | ||
229 | #undef HAVE_GETPAGESIZE | ||
230 | |||
231 | /* Define if xauth is found in your path */ | ||
232 | #undef XAUTH_PATH | ||
233 | |||
234 | /* Define if you want to allow MD5 passwords */ | ||
235 | #undef HAVE_MD5_PASSWORDS | ||
236 | |||
237 | /* Define if you want to disable shadow passwords */ | ||
238 | #undef DISABLE_SHADOW | ||
239 | |||
240 | /* Define if you want to use shadow password expire field */ | ||
241 | #undef HAS_SHADOW_EXPIRE | ||
242 | |||
243 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
244 | #undef HAVE_OSF_SIA | ||
245 | |||
246 | /* Define if you have getpwanam(3) [SunOS 4.x] */ | ||
247 | #undef HAVE_GETPWANAM | ||
248 | |||
249 | /* Define if you have an old version of PAM which takes only one argument */ | ||
250 | /* to pam_strerror */ | ||
251 | #undef HAVE_OLD_PAM | ||
252 | |||
253 | /* Define if you are using Solaris-derived PAM which passes pam_messages */ | ||
254 | /* to the conversation function with an extra level of indirection */ | ||
255 | #undef PAM_SUN_CODEBASE | ||
256 | |||
257 | /* Set this to your mail directory if you don't have maillock.h */ | ||
258 | #undef MAIL_DIRECTORY | ||
259 | |||
260 | /* Data types */ | ||
261 | #undef HAVE_U_INT | ||
262 | #undef HAVE_INTXX_T | ||
263 | #undef HAVE_U_INTXX_T | ||
264 | #undef HAVE_UINTXX_T | ||
265 | #undef HAVE_INT64_T | ||
266 | #undef HAVE_U_INT64_T | ||
267 | #undef HAVE_U_CHAR | ||
268 | #undef HAVE_SIZE_T | ||
269 | #undef HAVE_SSIZE_T | ||
270 | #undef HAVE_CLOCK_T | ||
271 | #undef HAVE_MODE_T | ||
272 | #undef HAVE_PID_T | ||
273 | #undef HAVE_SA_FAMILY_T | ||
274 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
275 | #undef HAVE_STRUCT_ADDRINFO | ||
276 | #undef HAVE_STRUCT_IN6_ADDR | ||
277 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
278 | |||
279 | /* Fields in struct sockaddr_storage */ | ||
280 | #undef HAVE_SS_FAMILY_IN_SS | ||
281 | #undef HAVE___SS_FAMILY_IN_SS | ||
282 | |||
283 | /* Define if you have /dev/ptmx */ | ||
284 | #undef HAVE_DEV_PTMX | ||
285 | |||
286 | /* Define if you have /dev/ptc */ | ||
287 | #undef HAVE_DEV_PTS_AND_PTC | ||
288 | |||
289 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
290 | #undef IPADDR_IN_DISPLAY | ||
291 | |||
292 | /* Specify default $PATH */ | ||
293 | #undef USER_PATH | ||
294 | |||
295 | /* Specify location of ssh.pid */ | ||
296 | #undef _PATH_SSH_PIDDIR | ||
297 | |||
298 | /* Use IPv4 for connection by default, IPv6 can still if explicity asked */ | ||
299 | #undef IPV4_DEFAULT | ||
300 | |||
301 | /* getaddrinfo is broken (if present) */ | ||
302 | #undef BROKEN_GETADDRINFO | ||
303 | |||
304 | /* Workaround more Linux IPv6 quirks */ | ||
305 | #undef DONT_TRY_OTHER_AF | ||
306 | |||
307 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
308 | #undef IPV4_IN_IPV6 | ||
309 | |||
310 | /* Define if you have BSD auth support */ | ||
311 | #undef BSD_AUTH | ||
312 | |||
313 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
314 | #undef NO_X11_UNIX_SOCKETS | ||
315 | |||
316 | /* Define if the concept of ports only accessible to superusers isn't known */ | ||
317 | #undef NO_IPPORT_RESERVED_CONCEPT | ||
318 | |||
319 | /* Needed for SCO and NeXT */ | ||
320 | #undef BROKEN_SAVED_UIDS | ||
321 | |||
322 | /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */ | ||
323 | #undef GLOB_HAS_ALTDIRFUNC | ||
324 | |||
325 | /* Define if your system glob() function has gl_matchc options in glob_t */ | ||
326 | #undef GLOB_HAS_GL_MATCHC | ||
327 | |||
328 | /* Define in your struct dirent expects you to allocate extra space for d_name */ | ||
329 | #undef BROKEN_ONE_BYTE_DIRENT_D_NAME | ||
330 | |||
331 | /* Define if your getopt(3) defines and uses optreset */ | ||
332 | #undef HAVE_GETOPT_OPTRESET | ||
333 | |||
334 | /* Define on *nto-qnx systems */ | ||
335 | #undef MISSING_NFDBITS | ||
336 | |||
337 | /* Define on *nto-qnx systems */ | ||
338 | #undef MISSING_HOWMANY | ||
339 | |||
340 | /* Define on *nto-qnx systems */ | ||
341 | #undef MISSING_FD_MASK | ||
342 | |||
343 | /* Define if you want smartcard support */ | ||
344 | #undef SMARTCARD | ||
345 | |||
346 | /* Define if you want smartcard support using sectok */ | ||
347 | #undef USE_SECTOK | ||
348 | |||
349 | /* Define if you want smartcard support using OpenSC */ | ||
350 | #undef USE_OPENSC | ||
351 | |||
352 | /* Define if you want to use OpenSSL's internally seeded PRNG only */ | ||
353 | #undef OPENSSL_PRNG_ONLY | ||
354 | |||
355 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
356 | #undef WITH_ABBREV_NO_TTY | ||
357 | |||
358 | /* Define if you want a different $PATH for the superuser */ | ||
359 | #undef SUPERUSER_PATH | ||
360 | |||
361 | /* Path that unprivileged child will chroot() to in privep mode */ | ||
362 | #undef PRIVSEP_PATH | ||
363 | |||
364 | /* Define if your platform needs to skip post auth file descriptor passing */ | ||
365 | #undef DISABLE_FD_PASSING | ||
366 | |||
367 | /* Silly mkstemp() */ | ||
368 | #undef HAVE_STRICT_MKSTEMP | ||
369 | |||
370 | /* Setproctitle emulation */ | ||
371 | #undef SETPROCTITLE_STRATEGY | ||
372 | #undef SETPROCTITLE_PS_PADDING | ||
373 | |||
374 | /* Some systems put this outside of libc */ | ||
375 | #undef HAVE_NANOSLEEP | ||
376 | |||
377 | /* Pushing STREAMS modules incorrectly acquires a controlling TTY */ | ||
378 | #undef STREAMS_PUSH_ACQUIRES_CTTY | ||
379 | |||
380 | |||
381 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
382 | #undef GETPGRP_VOID | ||
383 | |||
384 | /* Define to 1 if you have the `arc4random' function. */ | ||
385 | #undef HAVE_ARC4RANDOM | ||
386 | |||
387 | /* Define to 1 if you have the `b64_ntop' function. */ | ||
388 | #undef HAVE_B64_NTOP | ||
389 | |||
390 | /* Define to 1 if you have the `b64_pton' function. */ | ||
391 | #undef HAVE_B64_PTON | ||
392 | |||
393 | /* Define to 1 if you have the `basename' function. */ | ||
394 | #undef HAVE_BASENAME | ||
395 | |||
396 | /* Define to 1 if you have the `bcopy' function. */ | ||
397 | #undef HAVE_BCOPY | ||
398 | |||
399 | /* Define to 1 if you have the `bindresvport_sa' function. */ | ||
400 | #undef HAVE_BINDRESVPORT_SA | ||
401 | |||
402 | /* Define to 1 if you have the <bstring.h> header file. */ | ||
403 | #undef HAVE_BSTRING_H | ||
404 | |||
405 | /* Define to 1 if you have the `clock' function. */ | ||
406 | #undef HAVE_CLOCK | ||
407 | |||
408 | /* Define to 1 if you have the <crypt.h> header file. */ | ||
409 | #undef HAVE_CRYPT_H | ||
410 | |||
411 | /* Define to 1 if you have the `dirname' function. */ | ||
412 | #undef HAVE_DIRNAME | ||
413 | |||
414 | /* Define to 1 if you have the <endian.h> header file. */ | ||
415 | #undef HAVE_ENDIAN_H | ||
416 | |||
417 | /* Define to 1 if you have the `endutent' function. */ | ||
418 | #undef HAVE_ENDUTENT | ||
419 | |||
420 | /* Define to 1 if you have the `endutxent' function. */ | ||
421 | #undef HAVE_ENDUTXENT | ||
422 | |||
423 | /* Define to 1 if you have the `fchmod' function. */ | ||
424 | #undef HAVE_FCHMOD | ||
425 | |||
426 | /* Define to 1 if you have the `fchown' function. */ | ||
427 | #undef HAVE_FCHOWN | ||
428 | |||
429 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
430 | #undef HAVE_FLOATINGPOINT_H | ||
431 | |||
432 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
433 | #undef HAVE_FREEADDRINFO | ||
434 | |||
435 | /* Define to 1 if you have the `futimes' function. */ | ||
436 | #undef HAVE_FUTIMES | ||
437 | |||
438 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
439 | #undef HAVE_GAI_STRERROR | ||
440 | |||
441 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
442 | #undef HAVE_GETADDRINFO | ||
443 | |||
444 | /* Define to 1 if you have the `getcwd' function. */ | ||
445 | #undef HAVE_GETCWD | ||
446 | |||
447 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
448 | #undef HAVE_GETGROUPLIST | ||
449 | |||
450 | /* Define to 1 if you have the `getluid' function. */ | ||
451 | #undef HAVE_GETLUID | ||
452 | |||
453 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
454 | #undef HAVE_GETNAMEINFO | ||
455 | |||
456 | /* Define to 1 if you have the `getopt' function. */ | ||
457 | #undef HAVE_GETOPT | ||
458 | |||
459 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
460 | #undef HAVE_GETOPT_H | ||
461 | |||
462 | /* Define to 1 if you have the `getpeereid' function. */ | ||
463 | #undef HAVE_GETPEEREID | ||
464 | |||
465 | /* Define to 1 if you have the `getpwanam' function. */ | ||
466 | #undef HAVE_GETPWANAM | ||
467 | |||
468 | /* Define to 1 if you have the `getrlimit' function. */ | ||
469 | #undef HAVE_GETRLIMIT | ||
470 | |||
471 | /* Define to 1 if you have the `getrusage' function. */ | ||
472 | #undef HAVE_GETRUSAGE | ||
473 | |||
474 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
475 | #undef HAVE_GETTIMEOFDAY | ||
476 | |||
477 | /* Define to 1 if you have the `getttyent' function. */ | ||
478 | #undef HAVE_GETTTYENT | ||
479 | |||
480 | /* Define to 1 if you have the `getutent' function. */ | ||
481 | #undef HAVE_GETUTENT | ||
482 | |||
483 | /* Define to 1 if you have the `getutid' function. */ | ||
484 | #undef HAVE_GETUTID | ||
485 | |||
486 | /* Define to 1 if you have the `getutline' function. */ | ||
487 | #undef HAVE_GETUTLINE | ||
488 | |||
489 | /* Define to 1 if you have the `getutxent' function. */ | ||
490 | #undef HAVE_GETUTXENT | ||
491 | |||
492 | /* Define to 1 if you have the `getutxid' function. */ | ||
493 | #undef HAVE_GETUTXID | ||
494 | |||
495 | /* Define to 1 if you have the `getutxline' function. */ | ||
496 | #undef HAVE_GETUTXLINE | ||
497 | |||
498 | /* Define to 1 if you have the `glob' function. */ | ||
499 | #undef HAVE_GLOB | ||
500 | |||
501 | /* Define to 1 if you have the <glob.h> header file. */ | ||
502 | #undef HAVE_GLOB_H | ||
503 | |||
504 | /* Define to 1 if you have the <ia.h> header file. */ | ||
505 | #undef HAVE_IA_H | ||
506 | |||
507 | /* Define to 1 if you have the `inet_aton' function. */ | ||
508 | #undef HAVE_INET_ATON | ||
509 | |||
510 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
511 | #undef HAVE_INET_NTOA | ||
512 | |||
513 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
514 | #undef HAVE_INET_NTOP | ||
515 | |||
516 | /* Define to 1 if you have the `innetgr' function. */ | ||
517 | #undef HAVE_INNETGR | ||
518 | |||
519 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
520 | #undef HAVE_INTTYPES_H | ||
521 | |||
522 | /* Define to 1 if you have the <krb.h> header file. */ | ||
523 | #undef HAVE_KRB_H | ||
524 | |||
525 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
526 | #undef HAVE_LASTLOG_H | ||
527 | |||
528 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
529 | #undef HAVE_LIBCRYPT | ||
530 | |||
531 | /* Define to 1 if you have the `des' library (-ldes). */ | ||
532 | #undef HAVE_LIBDES | ||
533 | |||
534 | /* Define to 1 if you have the `des425' library (-ldes425). */ | ||
535 | #undef HAVE_LIBDES425 | ||
536 | |||
537 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
538 | #undef HAVE_LIBDL | ||
539 | |||
540 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
541 | #undef HAVE_LIBGEN_H | ||
542 | |||
543 | /* Define to 1 if you have the `krb' library (-lkrb). */ | ||
544 | #undef HAVE_LIBKRB | ||
545 | |||
546 | /* Define to 1 if you have the `krb4' library (-lkrb4). */ | ||
547 | #undef HAVE_LIBKRB4 | ||
548 | |||
549 | /* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
550 | #undef HAVE_LIBNSL | ||
551 | |||
552 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
553 | #undef HAVE_LIBPAM | ||
554 | |||
555 | /* Define to 1 if you have the `resolv' library (-lresolv). */ | ||
556 | #undef HAVE_LIBRESOLV | ||
557 | |||
558 | /* Define to 1 if you have the `sectok' library (-lsectok). */ | ||
559 | #undef HAVE_LIBSECTOK | ||
560 | |||
561 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
562 | #undef HAVE_LIBSOCKET | ||
563 | |||
564 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
565 | #undef HAVE_LIBUTIL_H | ||
566 | |||
567 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
568 | #undef HAVE_LIBXNET | ||
569 | |||
570 | /* Define to 1 if you have the `z' library (-lz). */ | ||
571 | #undef HAVE_LIBZ | ||
572 | |||
573 | /* Define to 1 if you have the <limits.h> header file. */ | ||
574 | #undef HAVE_LIMITS_H | ||
575 | |||
576 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
577 | #undef HAVE_LOGIN_CAP_H | ||
578 | |||
579 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
580 | #undef HAVE_LOGIN_GETCAPBOOL | ||
581 | |||
582 | /* Define to 1 if you have the <login.h> header file. */ | ||
583 | #undef HAVE_LOGIN_H | ||
584 | |||
585 | /* Define to 1 if you have the `logout' function. */ | ||
586 | #undef HAVE_LOGOUT | ||
587 | |||
588 | /* Define to 1 if you have the `logwtmp' function. */ | ||
589 | #undef HAVE_LOGWTMP | ||
590 | |||
591 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
592 | #undef HAVE_MAILLOCK_H | ||
593 | |||
594 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
595 | #undef HAVE_MD5_CRYPT | ||
596 | |||
597 | /* Define to 1 if you have the `memmove' function. */ | ||
598 | #undef HAVE_MEMMOVE | ||
599 | |||
600 | /* Define to 1 if you have the <memory.h> header file. */ | ||
601 | #undef HAVE_MEMORY_H | ||
602 | |||
603 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
604 | #undef HAVE_MKDTEMP | ||
605 | |||
606 | /* Define to 1 if you have the `mmap' function. */ | ||
607 | #undef HAVE_MMAP | ||
608 | |||
609 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
610 | #undef HAVE_NETDB_H | ||
611 | |||
612 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
613 | #undef HAVE_NETGROUP_H | ||
614 | |||
615 | /* Define to 1 if you have the <netinet/in_systm.h> header file. */ | ||
616 | #undef HAVE_NETINET_IN_SYSTM_H | ||
617 | |||
618 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
619 | #undef HAVE_NGETADDRINFO | ||
620 | |||
621 | /* Define to 1 if you have the `nsleep' function. */ | ||
622 | #undef HAVE_NSLEEP | ||
623 | |||
624 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
625 | #undef HAVE_OGETADDRINFO | ||
626 | |||
627 | /* Define to 1 if you have the `openpty' function. */ | ||
628 | #undef HAVE_OPENPTY | ||
629 | |||
630 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
631 | #undef HAVE_PAM_GETENVLIST | ||
632 | |||
633 | /* Define to 1 if you have the <paths.h> header file. */ | ||
634 | #undef HAVE_PATHS_H | ||
635 | |||
636 | /* Define to 1 if you have the `pstat' function. */ | ||
637 | #undef HAVE_PSTAT | ||
638 | |||
639 | /* Define to 1 if you have the <pty.h> header file. */ | ||
640 | #undef HAVE_PTY_H | ||
641 | |||
642 | /* Define to 1 if you have the `pututline' function. */ | ||
643 | #undef HAVE_PUTUTLINE | ||
644 | |||
645 | /* Define to 1 if you have the `pututxline' function. */ | ||
646 | #undef HAVE_PUTUTXLINE | ||
647 | |||
648 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
649 | #undef HAVE_READPASSPHRASE | ||
650 | |||
651 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
652 | #undef HAVE_READPASSPHRASE_H | ||
653 | |||
654 | /* Define to 1 if you have the `realpath' function. */ | ||
655 | #undef HAVE_REALPATH | ||
656 | |||
657 | /* Define to 1 if you have the `recvmsg' function. */ | ||
658 | #undef HAVE_RECVMSG | ||
659 | |||
660 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
661 | #undef HAVE_RPC_TYPES_H | ||
662 | |||
663 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
664 | #undef HAVE_RRESVPORT_AF | ||
665 | |||
666 | /* Define to 1 if you have the <sectok.h> header file. */ | ||
667 | #undef HAVE_SECTOK_H | ||
668 | |||
669 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
670 | #undef HAVE_SECURITY_PAM_APPL_H | ||
671 | |||
672 | /* Define to 1 if you have the `sendmsg' function. */ | ||
673 | #undef HAVE_SENDMSG | ||
674 | |||
675 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
676 | #undef HAVE_SETDTABLESIZE | ||
677 | |||
678 | /* Define to 1 if you have the `setegid' function. */ | ||
679 | #undef HAVE_SETEGID | ||
680 | |||
681 | /* Define to 1 if you have the `setenv' function. */ | ||
682 | #undef HAVE_SETENV | ||
683 | |||
684 | /* Define to 1 if you have the `seteuid' function. */ | ||
685 | #undef HAVE_SETEUID | ||
686 | |||
687 | /* Define to 1 if you have the `setgroups' function. */ | ||
688 | #undef HAVE_SETGROUPS | ||
689 | |||
690 | /* Define to 1 if you have the `setlogin' function. */ | ||
691 | #undef HAVE_SETLOGIN | ||
692 | |||
693 | /* Define to 1 if you have the `setluid' function. */ | ||
694 | #undef HAVE_SETLUID | ||
695 | |||
696 | /* Define to 1 if you have the `setpcred' function. */ | ||
697 | #undef HAVE_SETPCRED | ||
698 | |||
699 | /* Define to 1 if you have the `setproctitle' function. */ | ||
700 | #undef HAVE_SETPROCTITLE | ||
701 | |||
702 | /* Define to 1 if you have the `setresgid' function. */ | ||
703 | #undef HAVE_SETRESGID | ||
704 | |||
705 | /* Define to 1 if you have the `setreuid' function. */ | ||
706 | #undef HAVE_SETREUID | ||
707 | |||
708 | /* Define to 1 if you have the `setrlimit' function. */ | ||
709 | #undef HAVE_SETRLIMIT | ||
710 | |||
711 | /* Define to 1 if you have the `setsid' function. */ | ||
712 | #undef HAVE_SETSID | ||
713 | |||
714 | /* Define to 1 if you have the `setutent' function. */ | ||
715 | #undef HAVE_SETUTENT | ||
716 | |||
717 | /* Define to 1 if you have the `setutxent' function. */ | ||
718 | #undef HAVE_SETUTXENT | ||
719 | |||
720 | /* Define to 1 if you have the `setvbuf' function. */ | ||
721 | #undef HAVE_SETVBUF | ||
722 | |||
723 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
724 | #undef HAVE_SHADOW_H | ||
725 | |||
726 | /* Define to 1 if you have the `sigaction' function. */ | ||
727 | #undef HAVE_SIGACTION | ||
728 | |||
729 | /* Define to 1 if you have the `sigvec' function. */ | ||
730 | #undef HAVE_SIGVEC | ||
731 | |||
732 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
733 | #undef HAVE_SIG_ATOMIC_T | ||
734 | |||
735 | /* Define to 1 if you have the `snprintf' function. */ | ||
736 | #undef HAVE_SNPRINTF | ||
737 | |||
738 | /* Define to 1 if you have the `socketpair' function. */ | ||
739 | #undef HAVE_SOCKETPAIR | ||
740 | |||
741 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
742 | #undef HAVE_STDDEF_H | ||
743 | |||
744 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
745 | #undef HAVE_STDINT_H | ||
746 | |||
747 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
748 | #undef HAVE_STDLIB_H | ||
749 | |||
750 | /* Define to 1 if you have the `strerror' function. */ | ||
751 | #undef HAVE_STRERROR | ||
752 | |||
753 | /* Define to 1 if you have the `strftime' function. */ | ||
754 | #undef HAVE_STRFTIME | ||
755 | |||
756 | /* Define to 1 if you have the <strings.h> header file. */ | ||
757 | #undef HAVE_STRINGS_H | ||
758 | |||
759 | /* Define to 1 if you have the <string.h> header file. */ | ||
760 | #undef HAVE_STRING_H | ||
761 | |||
762 | /* Define to 1 if you have the `strlcat' function. */ | ||
763 | #undef HAVE_STRLCAT | ||
764 | |||
765 | /* Define to 1 if you have the `strlcpy' function. */ | ||
766 | #undef HAVE_STRLCPY | ||
767 | |||
768 | /* Define to 1 if you have the `strmode' function. */ | ||
769 | #undef HAVE_STRMODE | ||
770 | |||
771 | /* Define to 1 if you have the `strnvis' function. */ | ||
772 | #undef HAVE_STRNVIS | ||
773 | |||
774 | /* Define to 1 if you have the `strsep' function. */ | ||
775 | #undef HAVE_STRSEP | ||
776 | |||
777 | /* Define to 1 if `st_blksize' is member of `struct stat'. */ | ||
778 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
779 | |||
780 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
781 | #undef HAVE_STRUCT_TIMESPEC | ||
782 | |||
783 | /* Define to 1 if you have the `sysconf' function. */ | ||
784 | #undef HAVE_SYSCONF | ||
785 | |||
786 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
787 | #undef HAVE_SYS_BITYPES_H | ||
788 | |||
789 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
790 | #undef HAVE_SYS_BSDTTY_H | ||
791 | |||
792 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
793 | #undef HAVE_SYS_CDEFS_H | ||
794 | |||
795 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
796 | #undef HAVE_SYS_MMAN_H | ||
797 | |||
798 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
799 | #undef HAVE_SYS_PSTAT_H | ||
800 | |||
801 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
802 | #undef HAVE_SYS_SELECT_H | ||
803 | |||
804 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
805 | #undef HAVE_SYS_STAT_H | ||
806 | |||
807 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
808 | #undef HAVE_SYS_STROPTS_H | ||
809 | |||
810 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
811 | #undef HAVE_SYS_SYSMACROS_H | ||
812 | |||
813 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
814 | #undef HAVE_SYS_TIMERS_H | ||
815 | |||
816 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
817 | #undef HAVE_SYS_TIME_H | ||
818 | |||
819 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
820 | #undef HAVE_SYS_TYPES_H | ||
821 | |||
822 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
823 | #undef HAVE_SYS_UN_H | ||
824 | |||
825 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
826 | #undef HAVE_TCGETPGRP | ||
827 | |||
828 | /* Define to 1 if you have the `time' function. */ | ||
829 | #undef HAVE_TIME | ||
830 | |||
831 | /* Define to 1 if you have the <time.h> header file. */ | ||
832 | #undef HAVE_TIME_H | ||
833 | |||
834 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
835 | #undef HAVE_TMPDIR_H | ||
836 | |||
837 | /* Define to 1 if you have the `truncate' function. */ | ||
838 | #undef HAVE_TRUNCATE | ||
839 | |||
840 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
841 | #undef HAVE_TTYENT_H | ||
842 | |||
843 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
844 | #undef HAVE_UNISTD_H | ||
845 | |||
846 | /* Define to 1 if you have the `updwtmp' function. */ | ||
847 | #undef HAVE_UPDWTMP | ||
848 | |||
849 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
850 | #undef HAVE_USERSEC_H | ||
851 | |||
852 | /* Define to 1 if you have the <util.h> header file. */ | ||
853 | #undef HAVE_UTIL_H | ||
854 | |||
855 | /* Define to 1 if you have the `utimes' function. */ | ||
856 | #undef HAVE_UTIMES | ||
857 | |||
858 | /* Define to 1 if you have the <utime.h> header file. */ | ||
859 | #undef HAVE_UTIME_H | ||
860 | |||
861 | /* Define to 1 if you have the `utmpname' function. */ | ||
862 | #undef HAVE_UTMPNAME | ||
863 | |||
864 | /* Define to 1 if you have the `utmpxname' function. */ | ||
865 | #undef HAVE_UTMPXNAME | ||
866 | |||
867 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
868 | #undef HAVE_UTMPX_H | ||
869 | |||
870 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
871 | #undef HAVE_UTMP_H | ||
872 | |||
873 | /* Define to 1 if you have the `vhangup' function. */ | ||
874 | #undef HAVE_VHANGUP | ||
875 | |||
876 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
877 | #undef HAVE_VSNPRINTF | ||
878 | |||
879 | /* Define to 1 if you have the `waitpid' function. */ | ||
880 | #undef HAVE_WAITPID | ||
881 | |||
882 | /* Define to 1 if you have the `_getpty' function. */ | ||
883 | #undef HAVE__GETPTY | ||
884 | |||
885 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
886 | #undef HAVE___B64_NTOP | ||
887 | |||
888 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
889 | #undef HAVE___B64_PTON | ||
890 | |||
891 | /* Define to the address where bug reports for this package should be sent. */ | ||
892 | #undef PACKAGE_BUGREPORT | ||
893 | |||
894 | /* Define to the full name of this package. */ | ||
895 | #undef PACKAGE_NAME | ||
896 | |||
897 | /* Define to the full name and version of this package. */ | ||
898 | #undef PACKAGE_STRING | ||
899 | |||
900 | /* Define to the one symbol short name of this package. */ | ||
901 | #undef PACKAGE_TARNAME | ||
902 | |||
903 | /* Define to the version of this package. */ | ||
904 | #undef PACKAGE_VERSION | ||
905 | |||
906 | /* The size of a `char', as computed by sizeof. */ | ||
907 | #undef SIZEOF_CHAR | ||
908 | |||
909 | /* The size of a `int', as computed by sizeof. */ | ||
910 | #undef SIZEOF_INT | ||
911 | |||
912 | /* The size of a `long int', as computed by sizeof. */ | ||
913 | #undef SIZEOF_LONG_INT | ||
914 | |||
915 | /* The size of a `long long int', as computed by sizeof. */ | ||
916 | #undef SIZEOF_LONG_LONG_INT | ||
917 | |||
918 | /* The size of a `short int', as computed by sizeof. */ | ||
919 | #undef SIZEOF_SHORT_INT | ||
920 | |||
921 | /* Define to 1 if you have the ANSI C header files. */ | ||
922 | #undef STDC_HEADERS | ||
923 | |||
924 | /* Define to 1 if your processor stores words with the most significant byte | ||
925 | first (like Motorola and SPARC, unlike Intel and VAX). */ | ||
926 | #undef WORDS_BIGENDIAN | ||
927 | |||
928 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
929 | #undef _FILE_OFFSET_BITS | ||
930 | |||
931 | /* Define for large files, on AIX-style hosts. */ | ||
932 | #undef _LARGE_FILES | ||
933 | |||
934 | /* Define as `__inline' if that's what the C compiler calls it, or to nothing | ||
935 | if it is not supported. */ | ||
936 | #undef inline | ||
937 | |||
938 | /* type to use in place of socklen_t if not defined */ | ||
939 | #undef socklen_t | ||
940 | |||
941 | /* ******************* Shouldn't need to edit below this line ************** */ | ||
942 | |||
943 | #endif /* _CONFIG_H */ | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..b142fd782 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,18359 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.53. | ||
4 | # | ||
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
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 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
11 | as_expr=expr | ||
12 | else | ||
13 | as_expr=false | ||
14 | fi | ||
15 | |||
16 | |||
17 | ## --------------------- ## | ||
18 | ## M4sh Initialization. ## | ||
19 | ## --------------------- ## | ||
20 | |||
21 | # Be Bourne compatible | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
26 | set -o posix | ||
27 | fi | ||
28 | |||
29 | # NLS nuisances. | ||
30 | # Support unset when possible. | ||
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
32 | as_unset=unset | ||
33 | else | ||
34 | as_unset=false | ||
35 | fi | ||
36 | |||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
39 | { LANG=C; export LANG; } | ||
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
42 | { LC_ALL=C; export LC_ALL; } | ||
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
45 | { LC_TIME=C; export LC_TIME; } | ||
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
48 | { LC_CTYPE=C; export LC_CTYPE; } | ||
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
51 | { LANGUAGE=C; export LANGUAGE; } | ||
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
54 | { LC_COLLATE=C; export LC_COLLATE; } | ||
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
61 | |||
62 | |||
63 | # Name of the executable. | ||
64 | as_me=`(basename "$0") 2>/dev/null || | ||
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
66 | X"$0" : 'X\(//\)$' \| \ | ||
67 | X"$0" : 'X\(/\)$' \| \ | ||
68 | . : '\(.\)' 2>/dev/null || | ||
69 | echo X/"$0" | | ||
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
72 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
73 | s/.*/./; q'` | ||
74 | |||
75 | # PATH needs CR, and LINENO needs CR and PATH. | ||
76 | # Avoid depending upon Character Ranges. | ||
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
80 | as_cr_digits='0123456789' | ||
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
82 | |||
83 | # The user is always right. | ||
84 | if test "${PATH_SEPARATOR+set}" != set; then | ||
85 | echo "#! /bin/sh" >conftest.sh | ||
86 | echo "exit 0" >>conftest.sh | ||
87 | chmod +x conftest.sh | ||
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
89 | PATH_SEPARATOR=';' | ||
90 | else | ||
91 | PATH_SEPARATOR=: | ||
92 | fi | ||
93 | rm -f conftest.sh | ||
94 | fi | ||
95 | |||
96 | |||
97 | as_lineno_1=$LINENO | ||
98 | as_lineno_2=$LINENO | ||
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
102 | # Find who we are. Look in the path if we contain no path at all | ||
103 | # relative or not. | ||
104 | case $0 in | ||
105 | *[\\/]* ) as_myself=$0 ;; | ||
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
107 | for as_dir in $PATH | ||
108 | do | ||
109 | IFS=$as_save_IFS | ||
110 | test -z "$as_dir" && as_dir=. | ||
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
112 | done | ||
113 | |||
114 | ;; | ||
115 | esac | ||
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
117 | # in which case we are not to be found in the path. | ||
118 | if test "x$as_myself" = x; then | ||
119 | as_myself=$0 | ||
120 | fi | ||
121 | if test ! -f "$as_myself"; then | ||
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
123 | { (exit 1); exit 1; }; } | ||
124 | fi | ||
125 | case $CONFIG_SHELL in | ||
126 | '') | ||
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
129 | do | ||
130 | IFS=$as_save_IFS | ||
131 | test -z "$as_dir" && as_dir=. | ||
132 | for as_base in sh bash ksh sh5; do | ||
133 | case $as_dir in | ||
134 | /*) | ||
135 | if ("$as_dir/$as_base" -c ' | ||
136 | as_lineno_1=$LINENO | ||
137 | as_lineno_2=$LINENO | ||
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
141 | CONFIG_SHELL=$as_dir/$as_base | ||
142 | export CONFIG_SHELL | ||
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
144 | fi;; | ||
145 | esac | ||
146 | done | ||
147 | done | ||
148 | ;; | ||
149 | esac | ||
150 | |||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
152 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
153 | # line-number line before each line; the second 'sed' does the real | ||
154 | # work. The second script uses 'N' to pair each line-number line | ||
155 | # with the numbered line, and appends trailing '-' during | ||
156 | # substitution so that $LINENO is not a special case at line end. | ||
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
159 | sed '=' <$as_myself | | ||
160 | sed ' | ||
161 | N | ||
162 | s,$,-, | ||
163 | : loop | ||
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
165 | t loop | ||
166 | s,-$,, | ||
167 | s,^['$as_cr_digits']*\n,, | ||
168 | ' >$as_me.lineno && | ||
169 | chmod +x $as_me.lineno || | ||
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
171 | { (exit 1); exit 1; }; } | ||
172 | |||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
174 | # (the dirname of $[0] is not the place where we might find the | ||
175 | # original and so on. Autoconf is especially sensible to this). | ||
176 | . ./$as_me.lineno | ||
177 | # Exit status is that of the last command. | ||
178 | exit | ||
179 | } | ||
180 | |||
181 | |||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
183 | *c*,-n*) ECHO_N= ECHO_C=' | ||
184 | ' ECHO_T=' ' ;; | ||
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
187 | esac | ||
188 | |||
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
190 | as_expr=expr | ||
191 | else | ||
192 | as_expr=false | ||
193 | fi | ||
194 | |||
195 | rm -f conf$$ conf$$.exe conf$$.file | ||
196 | echo >conf$$.file | ||
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
198 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
200 | if test -f conf$$.exe; then | ||
201 | # Don't use ln at all; we don't have any links | ||
202 | as_ln_s='cp -p' | ||
203 | else | ||
204 | as_ln_s='ln -s' | ||
205 | fi | ||
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
207 | as_ln_s=ln | ||
208 | else | ||
209 | as_ln_s='cp -p' | ||
210 | fi | ||
211 | rm -f conf$$ conf$$.exe conf$$.file | ||
212 | |||
213 | as_executable_p="test -f" | ||
214 | |||
215 | # Sed expression to map a string onto a valid CPP name. | ||
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
217 | |||
218 | # Sed expression to map a string onto a valid variable name. | ||
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
220 | |||
221 | |||
222 | # IFS | ||
223 | # We need space, tab and new line, in precisely that order. | ||
224 | as_nl=' | ||
225 | ' | ||
226 | IFS=" $as_nl" | ||
227 | |||
228 | # CDPATH. | ||
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
230 | |||
231 | |||
232 | # Name of the host. | ||
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
234 | # so uname gets run too. | ||
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
236 | |||
237 | exec 6>&1 | ||
238 | |||
239 | # | ||
240 | # Initializations. | ||
241 | # | ||
242 | ac_default_prefix=/usr/local | ||
243 | cross_compiling=no | ||
244 | subdirs= | ||
245 | MFLAGS= | ||
246 | MAKEFLAGS= | ||
247 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
248 | |||
249 | # Maximum number of lines to put in a shell here document. | ||
250 | # This variable seems obsolete. It should probably be removed, and | ||
251 | # only ac_max_sed_lines should be used. | ||
252 | : ${ac_max_here_lines=38} | ||
253 | |||
254 | # Identity of this package. | ||
255 | PACKAGE_NAME= | ||
256 | PACKAGE_TARNAME= | ||
257 | PACKAGE_VERSION= | ||
258 | PACKAGE_STRING= | ||
259 | PACKAGE_BUGREPORT= | ||
260 | |||
261 | ac_unique_file="ssh.c" | ||
262 | # Factoring default headers for most tests. | ||
263 | ac_includes_default="\ | ||
264 | #include <stdio.h> | ||
265 | #if HAVE_SYS_TYPES_H | ||
266 | # include <sys/types.h> | ||
267 | #endif | ||
268 | #if HAVE_SYS_STAT_H | ||
269 | # include <sys/stat.h> | ||
270 | #endif | ||
271 | #if STDC_HEADERS | ||
272 | # include <stdlib.h> | ||
273 | # include <stddef.h> | ||
274 | #else | ||
275 | # if HAVE_STDLIB_H | ||
276 | # include <stdlib.h> | ||
277 | # endif | ||
278 | #endif | ||
279 | #if HAVE_STRING_H | ||
280 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
281 | # include <memory.h> | ||
282 | # endif | ||
283 | # include <string.h> | ||
284 | #endif | ||
285 | #if HAVE_STRINGS_H | ||
286 | # include <strings.h> | ||
287 | #endif | ||
288 | #if HAVE_INTTYPES_H | ||
289 | # include <inttypes.h> | ||
290 | #else | ||
291 | # if HAVE_STDINT_H | ||
292 | # include <stdint.h> | ||
293 | # endif | ||
294 | #endif | ||
295 | #if HAVE_UNISTD_H | ||
296 | # include <unistd.h> | ||
297 | #endif" | ||
298 | |||
299 | |||
300 | # Initialize some variables set by options. | ||
301 | ac_init_help= | ||
302 | ac_init_version=false | ||
303 | # The variables have the same names as the options, with | ||
304 | # dashes changed to underlines. | ||
305 | cache_file=/dev/null | ||
306 | exec_prefix=NONE | ||
307 | no_create= | ||
308 | no_recursion= | ||
309 | prefix=NONE | ||
310 | program_prefix=NONE | ||
311 | program_suffix=NONE | ||
312 | program_transform_name=s,x,x, | ||
313 | silent= | ||
314 | site= | ||
315 | srcdir= | ||
316 | verbose= | ||
317 | x_includes=NONE | ||
318 | x_libraries=NONE | ||
319 | |||
320 | # Installation directory options. | ||
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
322 | # and all the variables that are supposed to be based on exec_prefix | ||
323 | # by default will actually change. | ||
324 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
325 | bindir='${exec_prefix}/bin' | ||
326 | sbindir='${exec_prefix}/sbin' | ||
327 | libexecdir='${exec_prefix}/libexec' | ||
328 | datadir='${prefix}/share' | ||
329 | sysconfdir='${prefix}/etc' | ||
330 | sharedstatedir='${prefix}/com' | ||
331 | localstatedir='${prefix}/var' | ||
332 | libdir='${exec_prefix}/lib' | ||
333 | includedir='${prefix}/include' | ||
334 | oldincludedir='/usr/include' | ||
335 | infodir='${prefix}/info' | ||
336 | mandir='${prefix}/man' | ||
337 | |||
338 | ac_prev= | ||
339 | for ac_option | ||
340 | do | ||
341 | # If the previous option needs an argument, assign it. | ||
342 | if test -n "$ac_prev"; then | ||
343 | eval "$ac_prev=\$ac_option" | ||
344 | ac_prev= | ||
345 | continue | ||
346 | fi | ||
347 | |||
348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
349 | |||
350 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
351 | |||
352 | case $ac_option in | ||
353 | |||
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
355 | ac_prev=bindir ;; | ||
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
357 | bindir=$ac_optarg ;; | ||
358 | |||
359 | -build | --build | --buil | --bui | --bu) | ||
360 | ac_prev=build_alias ;; | ||
361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
362 | build_alias=$ac_optarg ;; | ||
363 | |||
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
366 | ac_prev=cache_file ;; | ||
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
369 | cache_file=$ac_optarg ;; | ||
370 | |||
371 | --config-cache | -C) | ||
372 | cache_file=config.cache ;; | ||
373 | |||
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
375 | ac_prev=datadir ;; | ||
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
377 | | --da=*) | ||
378 | datadir=$ac_optarg ;; | ||
379 | |||
380 | -disable-* | --disable-*) | ||
381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
382 | # Reject names that are not valid shell variable names. | ||
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
385 | { (exit 1); exit 1; }; } | ||
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
387 | eval "enable_$ac_feature=no" ;; | ||
388 | |||
389 | -enable-* | --enable-*) | ||
390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
391 | # Reject names that are not valid shell variable names. | ||
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
394 | { (exit 1); exit 1; }; } | ||
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
396 | case $ac_option in | ||
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
398 | *) ac_optarg=yes ;; | ||
399 | esac | ||
400 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
401 | |||
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
404 | | --exec | --exe | --ex) | ||
405 | ac_prev=exec_prefix ;; | ||
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
408 | | --exec=* | --exe=* | --ex=*) | ||
409 | exec_prefix=$ac_optarg ;; | ||
410 | |||
411 | -gas | --gas | --ga | --g) | ||
412 | # Obsolete; use --with-gas. | ||
413 | with_gas=yes ;; | ||
414 | |||
415 | -help | --help | --hel | --he | -h) | ||
416 | ac_init_help=long ;; | ||
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
418 | ac_init_help=recursive ;; | ||
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
420 | ac_init_help=short ;; | ||
421 | |||
422 | -host | --host | --hos | --ho) | ||
423 | ac_prev=host_alias ;; | ||
424 | -host=* | --host=* | --hos=* | --ho=*) | ||
425 | host_alias=$ac_optarg ;; | ||
426 | |||
427 | -includedir | --includedir | --includedi | --included | --include \ | ||
428 | | --includ | --inclu | --incl | --inc) | ||
429 | ac_prev=includedir ;; | ||
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
432 | includedir=$ac_optarg ;; | ||
433 | |||
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
435 | ac_prev=infodir ;; | ||
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
437 | infodir=$ac_optarg ;; | ||
438 | |||
439 | -libdir | --libdir | --libdi | --libd) | ||
440 | ac_prev=libdir ;; | ||
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
442 | libdir=$ac_optarg ;; | ||
443 | |||
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
445 | | --libexe | --libex | --libe) | ||
446 | ac_prev=libexecdir ;; | ||
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
448 | | --libexe=* | --libex=* | --libe=*) | ||
449 | libexecdir=$ac_optarg ;; | ||
450 | |||
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
452 | | --localstate | --localstat | --localsta | --localst \ | ||
453 | | --locals | --local | --loca | --loc | --lo) | ||
454 | ac_prev=localstatedir ;; | ||
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
458 | localstatedir=$ac_optarg ;; | ||
459 | |||
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
461 | ac_prev=mandir ;; | ||
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
463 | mandir=$ac_optarg ;; | ||
464 | |||
465 | -nfp | --nfp | --nf) | ||
466 | # Obsolete; use --without-fp. | ||
467 | with_fp=no ;; | ||
468 | |||
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
470 | | --no-cr | --no-c | -n) | ||
471 | no_create=yes ;; | ||
472 | |||
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
475 | no_recursion=yes ;; | ||
476 | |||
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
479 | | --oldin | --oldi | --old | --ol | --o) | ||
480 | ac_prev=oldincludedir ;; | ||
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
484 | oldincludedir=$ac_optarg ;; | ||
485 | |||
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
487 | ac_prev=prefix ;; | ||
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
489 | prefix=$ac_optarg ;; | ||
490 | |||
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
492 | | --program-pre | --program-pr | --program-p) | ||
493 | ac_prev=program_prefix ;; | ||
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
496 | program_prefix=$ac_optarg ;; | ||
497 | |||
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
499 | | --program-suf | --program-su | --program-s) | ||
500 | ac_prev=program_suffix ;; | ||
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
503 | program_suffix=$ac_optarg ;; | ||
504 | |||
505 | -program-transform-name | --program-transform-name \ | ||
506 | | --program-transform-nam | --program-transform-na \ | ||
507 | | --program-transform-n | --program-transform- \ | ||
508 | | --program-transform | --program-transfor \ | ||
509 | | --program-transfo | --program-transf \ | ||
510 | | --program-trans | --program-tran \ | ||
511 | | --progr-tra | --program-tr | --program-t) | ||
512 | ac_prev=program_transform_name ;; | ||
513 | -program-transform-name=* | --program-transform-name=* \ | ||
514 | | --program-transform-nam=* | --program-transform-na=* \ | ||
515 | | --program-transform-n=* | --program-transform-=* \ | ||
516 | | --program-transform=* | --program-transfor=* \ | ||
517 | | --program-transfo=* | --program-transf=* \ | ||
518 | | --program-trans=* | --program-tran=* \ | ||
519 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
520 | program_transform_name=$ac_optarg ;; | ||
521 | |||
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
523 | | -silent | --silent | --silen | --sile | --sil) | ||
524 | silent=yes ;; | ||
525 | |||
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
527 | ac_prev=sbindir ;; | ||
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
529 | | --sbi=* | --sb=*) | ||
530 | sbindir=$ac_optarg ;; | ||
531 | |||
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
534 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
535 | | --sha | --sh) | ||
536 | ac_prev=sharedstatedir ;; | ||
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
540 | | --sha=* | --sh=*) | ||
541 | sharedstatedir=$ac_optarg ;; | ||
542 | |||
543 | -site | --site | --sit) | ||
544 | ac_prev=site ;; | ||
545 | -site=* | --site=* | --sit=*) | ||
546 | site=$ac_optarg ;; | ||
547 | |||
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
549 | ac_prev=srcdir ;; | ||
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
551 | srcdir=$ac_optarg ;; | ||
552 | |||
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
554 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
555 | ac_prev=sysconfdir ;; | ||
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
558 | sysconfdir=$ac_optarg ;; | ||
559 | |||
560 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
561 | ac_prev=target_alias ;; | ||
562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
563 | target_alias=$ac_optarg ;; | ||
564 | |||
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
566 | verbose=yes ;; | ||
567 | |||
568 | -version | --version | --versio | --versi | --vers | -V) | ||
569 | ac_init_version=: ;; | ||
570 | |||
571 | -with-* | --with-*) | ||
572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
573 | # Reject names that are not valid shell variable names. | ||
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
576 | { (exit 1); exit 1; }; } | ||
577 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
578 | case $ac_option in | ||
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
580 | *) ac_optarg=yes ;; | ||
581 | esac | ||
582 | eval "with_$ac_package='$ac_optarg'" ;; | ||
583 | |||
584 | -without-* | --without-*) | ||
585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
586 | # Reject names that are not valid shell variable names. | ||
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
589 | { (exit 1); exit 1; }; } | ||
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
591 | eval "with_$ac_package=no" ;; | ||
592 | |||
593 | --x) | ||
594 | # Obsolete; use --with-x. | ||
595 | with_x=yes ;; | ||
596 | |||
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
598 | | --x-incl | --x-inc | --x-in | --x-i) | ||
599 | ac_prev=x_includes ;; | ||
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
602 | x_includes=$ac_optarg ;; | ||
603 | |||
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
606 | ac_prev=x_libraries ;; | ||
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
609 | x_libraries=$ac_optarg ;; | ||
610 | |||
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
612 | Try \`$0 --help' for more information." >&2 | ||
613 | { (exit 1); exit 1; }; } | ||
614 | ;; | ||
615 | |||
616 | *=*) | ||
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
618 | # Reject names that are not valid shell variable names. | ||
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
621 | { (exit 1); exit 1; }; } | ||
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
623 | eval "$ac_envvar='$ac_optarg'" | ||
624 | export $ac_envvar ;; | ||
625 | |||
626 | *) | ||
627 | # FIXME: should be removed in autoconf 3.0. | ||
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
632 | ;; | ||
633 | |||
634 | esac | ||
635 | done | ||
636 | |||
637 | if test -n "$ac_prev"; then | ||
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
640 | { (exit 1); exit 1; }; } | ||
641 | fi | ||
642 | |||
643 | # Be sure to have absolute paths. | ||
644 | for ac_var in exec_prefix prefix | ||
645 | do | ||
646 | eval ac_val=$`echo $ac_var` | ||
647 | case $ac_val in | ||
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
650 | { (exit 1); exit 1; }; };; | ||
651 | esac | ||
652 | done | ||
653 | |||
654 | # Be sure to have absolute paths. | ||
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
656 | localstatedir libdir includedir oldincludedir infodir mandir | ||
657 | do | ||
658 | eval ac_val=$`echo $ac_var` | ||
659 | case $ac_val in | ||
660 | [\\/$]* | ?:[\\/]* ) ;; | ||
661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
662 | { (exit 1); exit 1; }; };; | ||
663 | esac | ||
664 | done | ||
665 | |||
666 | # There might be people who depend on the old broken behavior: `$host' | ||
667 | # used to hold the argument of --host etc. | ||
668 | # FIXME: To remove some day. | ||
669 | build=$build_alias | ||
670 | host=$host_alias | ||
671 | target=$target_alias | ||
672 | |||
673 | # FIXME: To remove some day. | ||
674 | if test "x$host_alias" != x; then | ||
675 | if test "x$build_alias" = x; then | ||
676 | cross_compiling=maybe | ||
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
678 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
679 | elif test "x$build_alias" != "x$host_alias"; then | ||
680 | cross_compiling=yes | ||
681 | fi | ||
682 | fi | ||
683 | |||
684 | ac_tool_prefix= | ||
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
686 | |||
687 | test "$silent" = yes && exec 6>/dev/null | ||
688 | |||
689 | |||
690 | # Find the source files, if location was not specified. | ||
691 | if test -z "$srcdir"; then | ||
692 | ac_srcdir_defaulted=yes | ||
693 | # Try the directory containing this script, then its parent. | ||
694 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
696 | X"$0" : 'X\(//\)[^/]' \| \ | ||
697 | X"$0" : 'X\(//\)$' \| \ | ||
698 | X"$0" : 'X\(/\)' \| \ | ||
699 | . : '\(.\)' 2>/dev/null || | ||
700 | echo X"$0" | | ||
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
703 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
704 | /^X\(\/\).*/{ s//\1/; q; } | ||
705 | s/.*/./; q'` | ||
706 | srcdir=$ac_confdir | ||
707 | if test ! -r $srcdir/$ac_unique_file; then | ||
708 | srcdir=.. | ||
709 | fi | ||
710 | else | ||
711 | ac_srcdir_defaulted=no | ||
712 | fi | ||
713 | if test ! -r $srcdir/$ac_unique_file; then | ||
714 | if test "$ac_srcdir_defaulted" = yes; then | ||
715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
716 | { (exit 1); exit 1; }; } | ||
717 | else | ||
718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
719 | { (exit 1); exit 1; }; } | ||
720 | fi | ||
721 | fi | ||
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
723 | ac_env_build_alias_set=${build_alias+set} | ||
724 | ac_env_build_alias_value=$build_alias | ||
725 | ac_cv_env_build_alias_set=${build_alias+set} | ||
726 | ac_cv_env_build_alias_value=$build_alias | ||
727 | ac_env_host_alias_set=${host_alias+set} | ||
728 | ac_env_host_alias_value=$host_alias | ||
729 | ac_cv_env_host_alias_set=${host_alias+set} | ||
730 | ac_cv_env_host_alias_value=$host_alias | ||
731 | ac_env_target_alias_set=${target_alias+set} | ||
732 | ac_env_target_alias_value=$target_alias | ||
733 | ac_cv_env_target_alias_set=${target_alias+set} | ||
734 | ac_cv_env_target_alias_value=$target_alias | ||
735 | ac_env_CC_set=${CC+set} | ||
736 | ac_env_CC_value=$CC | ||
737 | ac_cv_env_CC_set=${CC+set} | ||
738 | ac_cv_env_CC_value=$CC | ||
739 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
740 | ac_env_CFLAGS_value=$CFLAGS | ||
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
742 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
744 | ac_env_LDFLAGS_value=$LDFLAGS | ||
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
748 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
751 | ac_env_CPP_set=${CPP+set} | ||
752 | ac_env_CPP_value=$CPP | ||
753 | ac_cv_env_CPP_set=${CPP+set} | ||
754 | ac_cv_env_CPP_value=$CPP | ||
755 | |||
756 | # | ||
757 | # Report the --help message. | ||
758 | # | ||
759 | if test "$ac_init_help" = "long"; then | ||
760 | # Omit some internal or obsolete options to make the list less imposing. | ||
761 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
762 | cat <<_ACEOF | ||
763 | \`configure' configures this package to adapt to many kinds of systems. | ||
764 | |||
765 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
766 | |||
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
768 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
769 | |||
770 | Defaults for the options are specified in brackets. | ||
771 | |||
772 | Configuration: | ||
773 | -h, --help display this help and exit | ||
774 | --help=short display options specific to this package | ||
775 | --help=recursive display the short help of all the included packages | ||
776 | -V, --version display version information and exit | ||
777 | -q, --quiet, --silent do not print \`checking...' messages | ||
778 | --cache-file=FILE cache test results in FILE [disabled] | ||
779 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
780 | -n, --no-create do not create output files | ||
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
782 | |||
783 | _ACEOF | ||
784 | |||
785 | cat <<_ACEOF | ||
786 | Installation directories: | ||
787 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
788 | [$ac_default_prefix] | ||
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
790 | [PREFIX] | ||
791 | |||
792 | By default, \`make install' will install all the files in | ||
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
795 | for instance \`--prefix=\$HOME'. | ||
796 | |||
797 | For better control, use the options below. | ||
798 | |||
799 | Fine tuning of the installation directories: | ||
800 | --bindir=DIR user executables [EPREFIX/bin] | ||
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
802 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
807 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
808 | --includedir=DIR C header files [PREFIX/include] | ||
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
810 | --infodir=DIR info documentation [PREFIX/info] | ||
811 | --mandir=DIR man documentation [PREFIX/man] | ||
812 | _ACEOF | ||
813 | |||
814 | cat <<\_ACEOF | ||
815 | |||
816 | System types: | ||
817 | --build=BUILD configure for building on BUILD [guessed] | ||
818 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
819 | _ACEOF | ||
820 | fi | ||
821 | |||
822 | if test -n "$ac_init_help"; then | ||
823 | |||
824 | cat <<\_ACEOF | ||
825 | |||
826 | Optional Features: | ||
827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
829 | --disable-largefile omit support for large files | ||
830 | --disable-strip Disable calling strip(1) on install | ||
831 | --disable-lastlog disable use of lastlog even if detected no | ||
832 | --disable-utmp disable use of utmp even if detected no | ||
833 | --disable-utmpx disable use of utmpx even if detected no | ||
834 | --disable-wtmp disable use of wtmp even if detected no | ||
835 | --disable-wtmpx disable use of wtmpx even if detected no | ||
836 | --disable-libutil disable use of libutil (login() etc.) no | ||
837 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
838 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
839 | |||
840 | Optional Packages: | ||
841 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
842 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
843 | --with-osfsia Enable Digital Unix SIA | ||
844 | --with-cflags Specify additional flags to pass to compiler | ||
845 | --with-cppflags Specify additional flags to pass to preprocessor | ||
846 | --with-ldflags Specify additional flags to pass to linker | ||
847 | --with-libs Specify additional libraries to link with | ||
848 | --without-rpath Disable auto-added -R linker paths | ||
849 | --with-zlib=PATH Use zlib in PATH | ||
850 | --with-skey[=PATH] Enable S/Key support | ||
851 | (optionally in PATH) | ||
852 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
853 | (optionally in PATH) | ||
854 | --with-pam Enable PAM support | ||
855 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
856 | --with-rand-helper Use subprocess to gather strong randomness | ||
857 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
858 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
859 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
860 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
861 | --with-sectok Enable smartcard support using libsectok | ||
862 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
863 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
864 | --with-kerberos4=PATH Enable Kerberos 4 support | ||
865 | --with-afs=PATH Enable AFS support | ||
866 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
867 | --with-xauth=PATH Specify path to xauth program | ||
868 | --with-mantype=man|cat|doc Set man page type | ||
869 | --with-md5-passwords Enable use of MD5 passwords | ||
870 | --without-shadow Disable shadow password support | ||
871 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
872 | --with-default-path= Specify default \$PATH environment for server | ||
873 | --with-superuser-path= Specify different path for super-user | ||
874 | --with-ipv4-default Use IPv4 by connections unless '-6' specified | ||
875 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
876 | --with-bsd-auth Enable BSD auth support | ||
877 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
878 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
879 | |||
880 | Some influential environment variables: | ||
881 | CC C compiler command | ||
882 | CFLAGS C compiler flags | ||
883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
884 | nonstandard directory <lib dir> | ||
885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
886 | headers in a nonstandard directory <include dir> | ||
887 | CPP C preprocessor | ||
888 | |||
889 | Use these variables to override the choices made by `configure' or to help | ||
890 | it to find libraries and programs with nonstandard names/locations. | ||
891 | |||
892 | _ACEOF | ||
893 | fi | ||
894 | |||
895 | if test "$ac_init_help" = "recursive"; then | ||
896 | # If there are subdirs, report their specific --help. | ||
897 | ac_popdir=`pwd` | ||
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
899 | test -d $ac_dir || continue | ||
900 | ac_builddir=. | ||
901 | |||
902 | if test "$ac_dir" != .; then | ||
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
904 | # A "../" for each directory in $ac_dir_suffix. | ||
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
906 | else | ||
907 | ac_dir_suffix= ac_top_builddir= | ||
908 | fi | ||
909 | |||
910 | case $srcdir in | ||
911 | .) # No --srcdir option. We are building in place. | ||
912 | ac_srcdir=. | ||
913 | if test -z "$ac_top_builddir"; then | ||
914 | ac_top_srcdir=. | ||
915 | else | ||
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
917 | fi ;; | ||
918 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
919 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
920 | ac_top_srcdir=$srcdir ;; | ||
921 | *) # Relative path. | ||
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
924 | esac | ||
925 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
926 | # absolute. | ||
927 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
928 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
929 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
930 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
931 | |||
932 | cd $ac_dir | ||
933 | # Check for guested configure; otherwise get Cygnus style configure. | ||
934 | if test -f $ac_srcdir/configure.gnu; then | ||
935 | echo | ||
936 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
937 | elif test -f $ac_srcdir/configure; then | ||
938 | echo | ||
939 | $SHELL $ac_srcdir/configure --help=recursive | ||
940 | elif test -f $ac_srcdir/configure.ac || | ||
941 | test -f $ac_srcdir/configure.in; then | ||
942 | echo | ||
943 | $ac_configure --help | ||
944 | else | ||
945 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
946 | fi | ||
947 | cd $ac_popdir | ||
948 | done | ||
949 | fi | ||
950 | |||
951 | test -n "$ac_init_help" && exit 0 | ||
952 | if $ac_init_version; then | ||
953 | cat <<\_ACEOF | ||
954 | |||
955 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
956 | Free Software Foundation, Inc. | ||
957 | This configure script is free software; the Free Software Foundation | ||
958 | gives unlimited permission to copy, distribute and modify it. | ||
959 | _ACEOF | ||
960 | exit 0 | ||
961 | fi | ||
962 | exec 5>config.log | ||
963 | cat >&5 <<_ACEOF | ||
964 | This file contains any messages produced by compilers while | ||
965 | running configure, to aid debugging if configure makes a mistake. | ||
966 | |||
967 | It was created by $as_me, which was | ||
968 | generated by GNU Autoconf 2.53. Invocation command line was | ||
969 | |||
970 | $ $0 $@ | ||
971 | |||
972 | _ACEOF | ||
973 | { | ||
974 | cat <<_ASUNAME | ||
975 | ## --------- ## | ||
976 | ## Platform. ## | ||
977 | ## --------- ## | ||
978 | |||
979 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
980 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
981 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
982 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
983 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
984 | |||
985 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
986 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
987 | |||
988 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
989 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
990 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
991 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
992 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
993 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
994 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
995 | |||
996 | _ASUNAME | ||
997 | |||
998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
999 | for as_dir in $PATH | ||
1000 | do | ||
1001 | IFS=$as_save_IFS | ||
1002 | test -z "$as_dir" && as_dir=. | ||
1003 | echo "PATH: $as_dir" | ||
1004 | done | ||
1005 | |||
1006 | } >&5 | ||
1007 | |||
1008 | cat >&5 <<_ACEOF | ||
1009 | |||
1010 | |||
1011 | ## ----------- ## | ||
1012 | ## Core tests. ## | ||
1013 | ## ----------- ## | ||
1014 | |||
1015 | _ACEOF | ||
1016 | |||
1017 | |||
1018 | # Keep a trace of the command line. | ||
1019 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1020 | # Also quote any args containing shell meta-characters. | ||
1021 | ac_configure_args= | ||
1022 | ac_sep= | ||
1023 | for ac_arg | ||
1024 | do | ||
1025 | case $ac_arg in | ||
1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1027 | | --no-cr | --no-c | -n ) continue ;; | ||
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1030 | continue ;; | ||
1031 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1032 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1033 | esac | ||
1034 | case " $ac_configure_args " in | ||
1035 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1036 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1037 | ac_sep=" " ;; | ||
1038 | esac | ||
1039 | # Get rid of the leading space. | ||
1040 | done | ||
1041 | |||
1042 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1043 | # config.log. We remove comments because anyway the quotes in there | ||
1044 | # would cause problems or look ugly. | ||
1045 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1046 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1047 | trap 'exit_status=$? | ||
1048 | # Save into config.log some information that might help in debugging. | ||
1049 | { | ||
1050 | echo | ||
1051 | cat <<\_ASBOX | ||
1052 | ## ---------------- ## | ||
1053 | ## Cache variables. ## | ||
1054 | ## ---------------- ## | ||
1055 | _ASBOX | ||
1056 | echo | ||
1057 | # The following way of writing the cache mishandles newlines in values, | ||
1058 | { | ||
1059 | (set) 2>&1 | | ||
1060 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1061 | *ac_space=\ *) | ||
1062 | sed -n \ | ||
1063 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1064 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1065 | ;; | ||
1066 | *) | ||
1067 | sed -n \ | ||
1068 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1069 | ;; | ||
1070 | esac; | ||
1071 | } | ||
1072 | echo | ||
1073 | if test -s confdefs.h; then | ||
1074 | cat <<\_ASBOX | ||
1075 | ## ----------- ## | ||
1076 | ## confdefs.h. ## | ||
1077 | ## ----------- ## | ||
1078 | _ASBOX | ||
1079 | echo | ||
1080 | sed "/^$/d" confdefs.h | ||
1081 | echo | ||
1082 | fi | ||
1083 | test "$ac_signal" != 0 && | ||
1084 | echo "$as_me: caught signal $ac_signal" | ||
1085 | echo "$as_me: exit $exit_status" | ||
1086 | } >&5 | ||
1087 | rm -f core core.* *.core && | ||
1088 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1089 | exit $exit_status | ||
1090 | ' 0 | ||
1091 | for ac_signal in 1 2 13 15; do | ||
1092 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1093 | done | ||
1094 | ac_signal=0 | ||
1095 | |||
1096 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1097 | rm -rf conftest* confdefs.h | ||
1098 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1099 | echo >confdefs.h | ||
1100 | |||
1101 | # Predefined preprocessor variables. | ||
1102 | |||
1103 | cat >>confdefs.h <<_ACEOF | ||
1104 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1105 | _ACEOF | ||
1106 | |||
1107 | |||
1108 | cat >>confdefs.h <<_ACEOF | ||
1109 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1110 | _ACEOF | ||
1111 | |||
1112 | |||
1113 | cat >>confdefs.h <<_ACEOF | ||
1114 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1115 | _ACEOF | ||
1116 | |||
1117 | |||
1118 | cat >>confdefs.h <<_ACEOF | ||
1119 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1120 | _ACEOF | ||
1121 | |||
1122 | |||
1123 | cat >>confdefs.h <<_ACEOF | ||
1124 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1125 | _ACEOF | ||
1126 | |||
1127 | |||
1128 | # Let the site file select an alternate cache file if it wants to. | ||
1129 | # Prefer explicitly selected file to automatically selected ones. | ||
1130 | if test -z "$CONFIG_SITE"; then | ||
1131 | if test "x$prefix" != xNONE; then | ||
1132 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1133 | else | ||
1134 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1135 | fi | ||
1136 | fi | ||
1137 | for ac_site_file in $CONFIG_SITE; do | ||
1138 | if test -r "$ac_site_file"; then | ||
1139 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1140 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1141 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1142 | . "$ac_site_file" | ||
1143 | fi | ||
1144 | done | ||
1145 | |||
1146 | if test -r "$cache_file"; then | ||
1147 | # Some versions of bash will fail to source /dev/null (special | ||
1148 | # files actually), so we avoid doing that. | ||
1149 | if test -f "$cache_file"; then | ||
1150 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1151 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1152 | case $cache_file in | ||
1153 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1154 | *) . ./$cache_file;; | ||
1155 | esac | ||
1156 | fi | ||
1157 | else | ||
1158 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1159 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1160 | >$cache_file | ||
1161 | fi | ||
1162 | |||
1163 | # Check that the precious variables saved in the cache have kept the same | ||
1164 | # value. | ||
1165 | ac_cache_corrupted=false | ||
1166 | for ac_var in `(set) 2>&1 | | ||
1167 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1169 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1170 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1171 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1172 | case $ac_old_set,$ac_new_set in | ||
1173 | set,) | ||
1174 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1175 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1176 | ac_cache_corrupted=: ;; | ||
1177 | ,set) | ||
1178 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1179 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1180 | ac_cache_corrupted=: ;; | ||
1181 | ,);; | ||
1182 | *) | ||
1183 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1184 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1185 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1186 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1187 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1188 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1189 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1190 | ac_cache_corrupted=: | ||
1191 | fi;; | ||
1192 | esac | ||
1193 | # Pass precious variables to config.status. | ||
1194 | if test "$ac_new_set" = set; then | ||
1195 | case $ac_new_val in | ||
1196 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1197 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1198 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1199 | esac | ||
1200 | case " $ac_configure_args " in | ||
1201 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1202 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1203 | esac | ||
1204 | fi | ||
1205 | done | ||
1206 | if $ac_cache_corrupted; then | ||
1207 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1208 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1209 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1210 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1211 | { (exit 1); exit 1; }; } | ||
1212 | fi | ||
1213 | |||
1214 | ac_ext=c | ||
1215 | ac_cpp='$CPP $CPPFLAGS' | ||
1216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1219 | |||
1220 | |||
1221 | |||
1222 | |||
1223 | |||
1224 | |||
1225 | |||
1226 | |||
1227 | |||
1228 | |||
1229 | |||
1230 | |||
1231 | |||
1232 | |||
1233 | |||
1234 | |||
1235 | |||
1236 | |||
1237 | |||
1238 | |||
1239 | ac_config_headers="$ac_config_headers config.h" | ||
1240 | |||
1241 | ac_ext=c | ||
1242 | ac_cpp='$CPP $CPPFLAGS' | ||
1243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1246 | if test -n "$ac_tool_prefix"; then | ||
1247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1251 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1253 | else | ||
1254 | if test -n "$CC"; then | ||
1255 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1256 | else | ||
1257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1258 | for as_dir in $PATH | ||
1259 | do | ||
1260 | IFS=$as_save_IFS | ||
1261 | test -z "$as_dir" && as_dir=. | ||
1262 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1266 | break 2 | ||
1267 | fi | ||
1268 | done | ||
1269 | done | ||
1270 | |||
1271 | fi | ||
1272 | fi | ||
1273 | CC=$ac_cv_prog_CC | ||
1274 | if test -n "$CC"; then | ||
1275 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1276 | echo "${ECHO_T}$CC" >&6 | ||
1277 | else | ||
1278 | echo "$as_me:$LINENO: result: no" >&5 | ||
1279 | echo "${ECHO_T}no" >&6 | ||
1280 | fi | ||
1281 | |||
1282 | fi | ||
1283 | if test -z "$ac_cv_prog_CC"; then | ||
1284 | ac_ct_CC=$CC | ||
1285 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1286 | set dummy gcc; ac_word=$2 | ||
1287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1289 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1291 | else | ||
1292 | if test -n "$ac_ct_CC"; then | ||
1293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1294 | else | ||
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1296 | for as_dir in $PATH | ||
1297 | do | ||
1298 | IFS=$as_save_IFS | ||
1299 | test -z "$as_dir" && as_dir=. | ||
1300 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1302 | ac_cv_prog_ac_ct_CC="gcc" | ||
1303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1304 | break 2 | ||
1305 | fi | ||
1306 | done | ||
1307 | done | ||
1308 | |||
1309 | fi | ||
1310 | fi | ||
1311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1312 | if test -n "$ac_ct_CC"; then | ||
1313 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1314 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1315 | else | ||
1316 | echo "$as_me:$LINENO: result: no" >&5 | ||
1317 | echo "${ECHO_T}no" >&6 | ||
1318 | fi | ||
1319 | |||
1320 | CC=$ac_ct_CC | ||
1321 | else | ||
1322 | CC="$ac_cv_prog_CC" | ||
1323 | fi | ||
1324 | |||
1325 | if test -z "$CC"; then | ||
1326 | if test -n "$ac_tool_prefix"; then | ||
1327 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1328 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1331 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1333 | else | ||
1334 | if test -n "$CC"; then | ||
1335 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1336 | else | ||
1337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1338 | for as_dir in $PATH | ||
1339 | do | ||
1340 | IFS=$as_save_IFS | ||
1341 | test -z "$as_dir" && as_dir=. | ||
1342 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1344 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1346 | break 2 | ||
1347 | fi | ||
1348 | done | ||
1349 | done | ||
1350 | |||
1351 | fi | ||
1352 | fi | ||
1353 | CC=$ac_cv_prog_CC | ||
1354 | if test -n "$CC"; then | ||
1355 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1356 | echo "${ECHO_T}$CC" >&6 | ||
1357 | else | ||
1358 | echo "$as_me:$LINENO: result: no" >&5 | ||
1359 | echo "${ECHO_T}no" >&6 | ||
1360 | fi | ||
1361 | |||
1362 | fi | ||
1363 | if test -z "$ac_cv_prog_CC"; then | ||
1364 | ac_ct_CC=$CC | ||
1365 | # Extract the first word of "cc", so it can be a program name with args. | ||
1366 | set dummy cc; ac_word=$2 | ||
1367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1369 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1371 | else | ||
1372 | if test -n "$ac_ct_CC"; then | ||
1373 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1374 | else | ||
1375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1376 | for as_dir in $PATH | ||
1377 | do | ||
1378 | IFS=$as_save_IFS | ||
1379 | test -z "$as_dir" && as_dir=. | ||
1380 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1382 | ac_cv_prog_ac_ct_CC="cc" | ||
1383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1384 | break 2 | ||
1385 | fi | ||
1386 | done | ||
1387 | done | ||
1388 | |||
1389 | fi | ||
1390 | fi | ||
1391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1392 | if test -n "$ac_ct_CC"; then | ||
1393 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1394 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1395 | else | ||
1396 | echo "$as_me:$LINENO: result: no" >&5 | ||
1397 | echo "${ECHO_T}no" >&6 | ||
1398 | fi | ||
1399 | |||
1400 | CC=$ac_ct_CC | ||
1401 | else | ||
1402 | CC="$ac_cv_prog_CC" | ||
1403 | fi | ||
1404 | |||
1405 | fi | ||
1406 | if test -z "$CC"; then | ||
1407 | # Extract the first word of "cc", so it can be a program name with args. | ||
1408 | set dummy cc; ac_word=$2 | ||
1409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1411 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1413 | else | ||
1414 | if test -n "$CC"; then | ||
1415 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1416 | else | ||
1417 | ac_prog_rejected=no | ||
1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1419 | for as_dir in $PATH | ||
1420 | do | ||
1421 | IFS=$as_save_IFS | ||
1422 | test -z "$as_dir" && as_dir=. | ||
1423 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1426 | ac_prog_rejected=yes | ||
1427 | continue | ||
1428 | fi | ||
1429 | ac_cv_prog_CC="cc" | ||
1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1431 | break 2 | ||
1432 | fi | ||
1433 | done | ||
1434 | done | ||
1435 | |||
1436 | if test $ac_prog_rejected = yes; then | ||
1437 | # We found a bogon in the path, so make sure we never use it. | ||
1438 | set dummy $ac_cv_prog_CC | ||
1439 | shift | ||
1440 | if test $# != 0; then | ||
1441 | # We chose a different compiler from the bogus one. | ||
1442 | # However, it has the same basename, so the bogon will be chosen | ||
1443 | # first if we set CC to just the basename; use the full file name. | ||
1444 | shift | ||
1445 | set dummy "$as_dir/$ac_word" ${1+"$@"} | ||
1446 | shift | ||
1447 | ac_cv_prog_CC="$@" | ||
1448 | fi | ||
1449 | fi | ||
1450 | fi | ||
1451 | fi | ||
1452 | CC=$ac_cv_prog_CC | ||
1453 | if test -n "$CC"; then | ||
1454 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1455 | echo "${ECHO_T}$CC" >&6 | ||
1456 | else | ||
1457 | echo "$as_me:$LINENO: result: no" >&5 | ||
1458 | echo "${ECHO_T}no" >&6 | ||
1459 | fi | ||
1460 | |||
1461 | fi | ||
1462 | if test -z "$CC"; then | ||
1463 | if test -n "$ac_tool_prefix"; then | ||
1464 | for ac_prog in cl | ||
1465 | do | ||
1466 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1467 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1470 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1472 | else | ||
1473 | if test -n "$CC"; then | ||
1474 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1475 | else | ||
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1477 | for as_dir in $PATH | ||
1478 | do | ||
1479 | IFS=$as_save_IFS | ||
1480 | test -z "$as_dir" && as_dir=. | ||
1481 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1483 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1485 | break 2 | ||
1486 | fi | ||
1487 | done | ||
1488 | done | ||
1489 | |||
1490 | fi | ||
1491 | fi | ||
1492 | CC=$ac_cv_prog_CC | ||
1493 | if test -n "$CC"; then | ||
1494 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1495 | echo "${ECHO_T}$CC" >&6 | ||
1496 | else | ||
1497 | echo "$as_me:$LINENO: result: no" >&5 | ||
1498 | echo "${ECHO_T}no" >&6 | ||
1499 | fi | ||
1500 | |||
1501 | test -n "$CC" && break | ||
1502 | done | ||
1503 | fi | ||
1504 | if test -z "$CC"; then | ||
1505 | ac_ct_CC=$CC | ||
1506 | for ac_prog in cl | ||
1507 | do | ||
1508 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1509 | set dummy $ac_prog; ac_word=$2 | ||
1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1514 | else | ||
1515 | if test -n "$ac_ct_CC"; then | ||
1516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1517 | else | ||
1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1519 | for as_dir in $PATH | ||
1520 | do | ||
1521 | IFS=$as_save_IFS | ||
1522 | test -z "$as_dir" && as_dir=. | ||
1523 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1525 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1527 | break 2 | ||
1528 | fi | ||
1529 | done | ||
1530 | done | ||
1531 | |||
1532 | fi | ||
1533 | fi | ||
1534 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1535 | if test -n "$ac_ct_CC"; then | ||
1536 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1537 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1538 | else | ||
1539 | echo "$as_me:$LINENO: result: no" >&5 | ||
1540 | echo "${ECHO_T}no" >&6 | ||
1541 | fi | ||
1542 | |||
1543 | test -n "$ac_ct_CC" && break | ||
1544 | done | ||
1545 | |||
1546 | CC=$ac_ct_CC | ||
1547 | fi | ||
1548 | |||
1549 | fi | ||
1550 | |||
1551 | |||
1552 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | ||
1553 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | ||
1554 | { (exit 1); exit 1; }; } | ||
1555 | |||
1556 | # Provide some information about the compiler. | ||
1557 | echo "$as_me:$LINENO:" \ | ||
1558 | "checking for C compiler version" >&5 | ||
1559 | ac_compiler=`set X $ac_compile; echo $2` | ||
1560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1561 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1562 | ac_status=$? | ||
1563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1564 | (exit $ac_status); } | ||
1565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1566 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1567 | ac_status=$? | ||
1568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1569 | (exit $ac_status); } | ||
1570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1571 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1572 | ac_status=$? | ||
1573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1574 | (exit $ac_status); } | ||
1575 | |||
1576 | cat >conftest.$ac_ext <<_ACEOF | ||
1577 | #line $LINENO "configure" | ||
1578 | #include "confdefs.h" | ||
1579 | |||
1580 | #ifdef F77_DUMMY_MAIN | ||
1581 | # ifdef __cplusplus | ||
1582 | extern "C" | ||
1583 | # endif | ||
1584 | int F77_DUMMY_MAIN() { return 1; } | ||
1585 | #endif | ||
1586 | int | ||
1587 | main () | ||
1588 | { | ||
1589 | |||
1590 | ; | ||
1591 | return 0; | ||
1592 | } | ||
1593 | _ACEOF | ||
1594 | ac_clean_files_save=$ac_clean_files | ||
1595 | ac_clean_files="$ac_clean_files a.out a.exe" | ||
1596 | # Try to create an executable without -o first, disregard a.out. | ||
1597 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1598 | # of exeext. | ||
1599 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | ||
1600 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
1601 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1602 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1603 | (eval $ac_link_default) 2>&5 | ||
1604 | ac_status=$? | ||
1605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1606 | (exit $ac_status); }; then | ||
1607 | # Find the output, starting from the most likely. This scheme is | ||
1608 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1609 | # resort. | ||
1610 | |||
1611 | # Be careful to initialize this variable, since it used to be cached. | ||
1612 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1613 | ac_cv_exeext= | ||
1614 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | ||
1615 | ls a.out conftest 2>/dev/null; | ||
1616 | ls a.* conftest.* 2>/dev/null`; do | ||
1617 | case $ac_file in | ||
1618 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | ||
1619 | a.out ) # We found the default executable, but exeext='' is most | ||
1620 | # certainly right. | ||
1621 | break;; | ||
1622 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1623 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | ||
1624 | export ac_cv_exeext | ||
1625 | break;; | ||
1626 | * ) break;; | ||
1627 | esac | ||
1628 | done | ||
1629 | else | ||
1630 | echo "$as_me: failed program was:" >&5 | ||
1631 | cat conftest.$ac_ext >&5 | ||
1632 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | ||
1633 | echo "$as_me: error: C compiler cannot create executables" >&2;} | ||
1634 | { (exit 77); exit 77; }; } | ||
1635 | fi | ||
1636 | |||
1637 | ac_exeext=$ac_cv_exeext | ||
1638 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1639 | echo "${ECHO_T}$ac_file" >&6 | ||
1640 | |||
1641 | # Check the compiler produces executables we can run. If not, either | ||
1642 | # the compiler is broken, or we cross compile. | ||
1643 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1644 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1645 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1646 | # If not cross compiling, check that we can run a simple program. | ||
1647 | if test "$cross_compiling" != yes; then | ||
1648 | if { ac_try='./$ac_file' | ||
1649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1650 | (eval $ac_try) 2>&5 | ||
1651 | ac_status=$? | ||
1652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1653 | (exit $ac_status); }; }; then | ||
1654 | cross_compiling=no | ||
1655 | else | ||
1656 | if test "$cross_compiling" = maybe; then | ||
1657 | cross_compiling=yes | ||
1658 | else | ||
1659 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1660 | If you meant to cross compile, use \`--host'." >&5 | ||
1661 | echo "$as_me: error: cannot run C compiled programs. | ||
1662 | If you meant to cross compile, use \`--host'." >&2;} | ||
1663 | { (exit 1); exit 1; }; } | ||
1664 | fi | ||
1665 | fi | ||
1666 | fi | ||
1667 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1668 | echo "${ECHO_T}yes" >&6 | ||
1669 | |||
1670 | rm -f a.out a.exe conftest$ac_cv_exeext | ||
1671 | ac_clean_files=$ac_clean_files_save | ||
1672 | # Check the compiler produces executables we can run. If not, either | ||
1673 | # the compiler is broken, or we cross compile. | ||
1674 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1675 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1676 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1677 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1678 | |||
1679 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1680 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1682 | (eval $ac_link) 2>&5 | ||
1683 | ac_status=$? | ||
1684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1685 | (exit $ac_status); }; then | ||
1686 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1687 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1688 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1689 | # `rm'. | ||
1690 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | ||
1691 | case $ac_file in | ||
1692 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1693 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1694 | export ac_cv_exeext | ||
1695 | break;; | ||
1696 | * ) break;; | ||
1697 | esac | ||
1698 | done | ||
1699 | else | ||
1700 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | ||
1701 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | ||
1702 | { (exit 1); exit 1; }; } | ||
1703 | fi | ||
1704 | |||
1705 | rm -f conftest$ac_cv_exeext | ||
1706 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1707 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1708 | |||
1709 | rm -f conftest.$ac_ext | ||
1710 | EXEEXT=$ac_cv_exeext | ||
1711 | ac_exeext=$EXEEXT | ||
1712 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1713 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1714 | if test "${ac_cv_objext+set}" = set; then | ||
1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1716 | else | ||
1717 | cat >conftest.$ac_ext <<_ACEOF | ||
1718 | #line $LINENO "configure" | ||
1719 | #include "confdefs.h" | ||
1720 | |||
1721 | #ifdef F77_DUMMY_MAIN | ||
1722 | # ifdef __cplusplus | ||
1723 | extern "C" | ||
1724 | # endif | ||
1725 | int F77_DUMMY_MAIN() { return 1; } | ||
1726 | #endif | ||
1727 | int | ||
1728 | main () | ||
1729 | { | ||
1730 | |||
1731 | ; | ||
1732 | return 0; | ||
1733 | } | ||
1734 | _ACEOF | ||
1735 | rm -f conftest.o conftest.obj | ||
1736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1737 | (eval $ac_compile) 2>&5 | ||
1738 | ac_status=$? | ||
1739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1740 | (exit $ac_status); }; then | ||
1741 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1742 | case $ac_file in | ||
1743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | ||
1744 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1745 | break;; | ||
1746 | esac | ||
1747 | done | ||
1748 | else | ||
1749 | echo "$as_me: failed program was:" >&5 | ||
1750 | cat conftest.$ac_ext >&5 | ||
1751 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | ||
1752 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | ||
1753 | { (exit 1); exit 1; }; } | ||
1754 | fi | ||
1755 | |||
1756 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1757 | fi | ||
1758 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1759 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1760 | OBJEXT=$ac_cv_objext | ||
1761 | ac_objext=$OBJEXT | ||
1762 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1763 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1764 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1766 | else | ||
1767 | cat >conftest.$ac_ext <<_ACEOF | ||
1768 | #line $LINENO "configure" | ||
1769 | #include "confdefs.h" | ||
1770 | |||
1771 | #ifdef F77_DUMMY_MAIN | ||
1772 | # ifdef __cplusplus | ||
1773 | extern "C" | ||
1774 | # endif | ||
1775 | int F77_DUMMY_MAIN() { return 1; } | ||
1776 | #endif | ||
1777 | int | ||
1778 | main () | ||
1779 | { | ||
1780 | #ifndef __GNUC__ | ||
1781 | choke me | ||
1782 | #endif | ||
1783 | |||
1784 | ; | ||
1785 | return 0; | ||
1786 | } | ||
1787 | _ACEOF | ||
1788 | rm -f conftest.$ac_objext | ||
1789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1790 | (eval $ac_compile) 2>&5 | ||
1791 | ac_status=$? | ||
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1793 | (exit $ac_status); } && | ||
1794 | { ac_try='test -s conftest.$ac_objext' | ||
1795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1796 | (eval $ac_try) 2>&5 | ||
1797 | ac_status=$? | ||
1798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1799 | (exit $ac_status); }; }; then | ||
1800 | ac_compiler_gnu=yes | ||
1801 | else | ||
1802 | echo "$as_me: failed program was:" >&5 | ||
1803 | cat conftest.$ac_ext >&5 | ||
1804 | ac_compiler_gnu=no | ||
1805 | fi | ||
1806 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1807 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1808 | |||
1809 | fi | ||
1810 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1811 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1812 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1813 | ac_test_CFLAGS=${CFLAGS+set} | ||
1814 | ac_save_CFLAGS=$CFLAGS | ||
1815 | CFLAGS="-g" | ||
1816 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1817 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1818 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1820 | else | ||
1821 | cat >conftest.$ac_ext <<_ACEOF | ||
1822 | #line $LINENO "configure" | ||
1823 | #include "confdefs.h" | ||
1824 | |||
1825 | #ifdef F77_DUMMY_MAIN | ||
1826 | # ifdef __cplusplus | ||
1827 | extern "C" | ||
1828 | # endif | ||
1829 | int F77_DUMMY_MAIN() { return 1; } | ||
1830 | #endif | ||
1831 | int | ||
1832 | main () | ||
1833 | { | ||
1834 | |||
1835 | ; | ||
1836 | return 0; | ||
1837 | } | ||
1838 | _ACEOF | ||
1839 | rm -f conftest.$ac_objext | ||
1840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1841 | (eval $ac_compile) 2>&5 | ||
1842 | ac_status=$? | ||
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1844 | (exit $ac_status); } && | ||
1845 | { ac_try='test -s conftest.$ac_objext' | ||
1846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1847 | (eval $ac_try) 2>&5 | ||
1848 | ac_status=$? | ||
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1850 | (exit $ac_status); }; }; then | ||
1851 | ac_cv_prog_cc_g=yes | ||
1852 | else | ||
1853 | echo "$as_me: failed program was:" >&5 | ||
1854 | cat conftest.$ac_ext >&5 | ||
1855 | ac_cv_prog_cc_g=no | ||
1856 | fi | ||
1857 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1858 | fi | ||
1859 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
1860 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1861 | if test "$ac_test_CFLAGS" = set; then | ||
1862 | CFLAGS=$ac_save_CFLAGS | ||
1863 | elif test $ac_cv_prog_cc_g = yes; then | ||
1864 | if test "$GCC" = yes; then | ||
1865 | CFLAGS="-g -O2" | ||
1866 | else | ||
1867 | CFLAGS="-g" | ||
1868 | fi | ||
1869 | else | ||
1870 | if test "$GCC" = yes; then | ||
1871 | CFLAGS="-O2" | ||
1872 | else | ||
1873 | CFLAGS= | ||
1874 | fi | ||
1875 | fi | ||
1876 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
1877 | # in C++ we need to declare it. In case someone uses the same compiler | ||
1878 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
1879 | # the declaration of exit, since it's the most demanding environment. | ||
1880 | cat >conftest.$ac_ext <<_ACEOF | ||
1881 | #ifndef __cplusplus | ||
1882 | choke me | ||
1883 | #endif | ||
1884 | _ACEOF | ||
1885 | rm -f conftest.$ac_objext | ||
1886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1887 | (eval $ac_compile) 2>&5 | ||
1888 | ac_status=$? | ||
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1890 | (exit $ac_status); } && | ||
1891 | { ac_try='test -s conftest.$ac_objext' | ||
1892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1893 | (eval $ac_try) 2>&5 | ||
1894 | ac_status=$? | ||
1895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1896 | (exit $ac_status); }; }; then | ||
1897 | for ac_declaration in \ | ||
1898 | ''\ | ||
1899 | '#include <stdlib.h>' \ | ||
1900 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
1901 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
1902 | 'extern "C" void exit (int) throw ();' \ | ||
1903 | 'extern "C" void exit (int);' \ | ||
1904 | 'void exit (int);' | ||
1905 | do | ||
1906 | cat >conftest.$ac_ext <<_ACEOF | ||
1907 | #line $LINENO "configure" | ||
1908 | #include "confdefs.h" | ||
1909 | #include <stdlib.h> | ||
1910 | $ac_declaration | ||
1911 | #ifdef F77_DUMMY_MAIN | ||
1912 | # ifdef __cplusplus | ||
1913 | extern "C" | ||
1914 | # endif | ||
1915 | int F77_DUMMY_MAIN() { return 1; } | ||
1916 | #endif | ||
1917 | int | ||
1918 | main () | ||
1919 | { | ||
1920 | exit (42); | ||
1921 | ; | ||
1922 | return 0; | ||
1923 | } | ||
1924 | _ACEOF | ||
1925 | rm -f conftest.$ac_objext | ||
1926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1927 | (eval $ac_compile) 2>&5 | ||
1928 | ac_status=$? | ||
1929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1930 | (exit $ac_status); } && | ||
1931 | { ac_try='test -s conftest.$ac_objext' | ||
1932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1933 | (eval $ac_try) 2>&5 | ||
1934 | ac_status=$? | ||
1935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1936 | (exit $ac_status); }; }; then | ||
1937 | : | ||
1938 | else | ||
1939 | echo "$as_me: failed program was:" >&5 | ||
1940 | cat conftest.$ac_ext >&5 | ||
1941 | continue | ||
1942 | fi | ||
1943 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1944 | cat >conftest.$ac_ext <<_ACEOF | ||
1945 | #line $LINENO "configure" | ||
1946 | #include "confdefs.h" | ||
1947 | $ac_declaration | ||
1948 | #ifdef F77_DUMMY_MAIN | ||
1949 | # ifdef __cplusplus | ||
1950 | extern "C" | ||
1951 | # endif | ||
1952 | int F77_DUMMY_MAIN() { return 1; } | ||
1953 | #endif | ||
1954 | int | ||
1955 | main () | ||
1956 | { | ||
1957 | exit (42); | ||
1958 | ; | ||
1959 | return 0; | ||
1960 | } | ||
1961 | _ACEOF | ||
1962 | rm -f conftest.$ac_objext | ||
1963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1964 | (eval $ac_compile) 2>&5 | ||
1965 | ac_status=$? | ||
1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1967 | (exit $ac_status); } && | ||
1968 | { ac_try='test -s conftest.$ac_objext' | ||
1969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1970 | (eval $ac_try) 2>&5 | ||
1971 | ac_status=$? | ||
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1973 | (exit $ac_status); }; }; then | ||
1974 | break | ||
1975 | else | ||
1976 | echo "$as_me: failed program was:" >&5 | ||
1977 | cat conftest.$ac_ext >&5 | ||
1978 | fi | ||
1979 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1980 | done | ||
1981 | rm -f conftest* | ||
1982 | if test -n "$ac_declaration"; then | ||
1983 | echo '#ifdef __cplusplus' >>confdefs.h | ||
1984 | echo $ac_declaration >>confdefs.h | ||
1985 | echo '#endif' >>confdefs.h | ||
1986 | fi | ||
1987 | |||
1988 | else | ||
1989 | echo "$as_me: failed program was:" >&5 | ||
1990 | cat conftest.$ac_ext >&5 | ||
1991 | fi | ||
1992 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
1993 | ac_ext=c | ||
1994 | ac_cpp='$CPP $CPPFLAGS' | ||
1995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1998 | |||
1999 | ac_aux_dir= | ||
2000 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2001 | if test -f $ac_dir/install-sh; then | ||
2002 | ac_aux_dir=$ac_dir | ||
2003 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2004 | break | ||
2005 | elif test -f $ac_dir/install.sh; then | ||
2006 | ac_aux_dir=$ac_dir | ||
2007 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2008 | break | ||
2009 | elif test -f $ac_dir/shtool; then | ||
2010 | ac_aux_dir=$ac_dir | ||
2011 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2012 | break | ||
2013 | fi | ||
2014 | done | ||
2015 | if test -z "$ac_aux_dir"; then | ||
2016 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2017 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2018 | { (exit 1); exit 1; }; } | ||
2019 | fi | ||
2020 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2021 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2022 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2023 | |||
2024 | # Make sure we can run config.sub. | ||
2025 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2026 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2027 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2028 | { (exit 1); exit 1; }; } | ||
2029 | |||
2030 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2031 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2032 | if test "${ac_cv_build+set}" = set; then | ||
2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2034 | else | ||
2035 | ac_cv_build_alias=$build_alias | ||
2036 | test -z "$ac_cv_build_alias" && | ||
2037 | ac_cv_build_alias=`$ac_config_guess` | ||
2038 | test -z "$ac_cv_build_alias" && | ||
2039 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2040 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2041 | { (exit 1); exit 1; }; } | ||
2042 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2043 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2044 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2045 | { (exit 1); exit 1; }; } | ||
2046 | |||
2047 | fi | ||
2048 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2049 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2050 | build=$ac_cv_build | ||
2051 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2052 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2053 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2054 | |||
2055 | |||
2056 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2057 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2058 | if test "${ac_cv_host+set}" = set; then | ||
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2060 | else | ||
2061 | ac_cv_host_alias=$host_alias | ||
2062 | test -z "$ac_cv_host_alias" && | ||
2063 | ac_cv_host_alias=$ac_cv_build_alias | ||
2064 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2065 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2066 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2067 | { (exit 1); exit 1; }; } | ||
2068 | |||
2069 | fi | ||
2070 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2071 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2072 | host=$ac_cv_host | ||
2073 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2074 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2075 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2076 | |||
2077 | |||
2078 | |||
2079 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2080 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2081 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2083 | else | ||
2084 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2085 | cat >conftest.$ac_ext <<_ACEOF | ||
2086 | #line $LINENO "configure" | ||
2087 | #include "confdefs.h" | ||
2088 | #include <sys/types.h> | ||
2089 | #include <sys/param.h> | ||
2090 | |||
2091 | #ifdef F77_DUMMY_MAIN | ||
2092 | # ifdef __cplusplus | ||
2093 | extern "C" | ||
2094 | # endif | ||
2095 | int F77_DUMMY_MAIN() { return 1; } | ||
2096 | #endif | ||
2097 | int | ||
2098 | main () | ||
2099 | { | ||
2100 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2101 | bogus endian macros | ||
2102 | #endif | ||
2103 | |||
2104 | ; | ||
2105 | return 0; | ||
2106 | } | ||
2107 | _ACEOF | ||
2108 | rm -f conftest.$ac_objext | ||
2109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2110 | (eval $ac_compile) 2>&5 | ||
2111 | ac_status=$? | ||
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2113 | (exit $ac_status); } && | ||
2114 | { ac_try='test -s conftest.$ac_objext' | ||
2115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2116 | (eval $ac_try) 2>&5 | ||
2117 | ac_status=$? | ||
2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2119 | (exit $ac_status); }; }; then | ||
2120 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2121 | cat >conftest.$ac_ext <<_ACEOF | ||
2122 | #line $LINENO "configure" | ||
2123 | #include "confdefs.h" | ||
2124 | #include <sys/types.h> | ||
2125 | #include <sys/param.h> | ||
2126 | |||
2127 | #ifdef F77_DUMMY_MAIN | ||
2128 | # ifdef __cplusplus | ||
2129 | extern "C" | ||
2130 | # endif | ||
2131 | int F77_DUMMY_MAIN() { return 1; } | ||
2132 | #endif | ||
2133 | int | ||
2134 | main () | ||
2135 | { | ||
2136 | #if BYTE_ORDER != BIG_ENDIAN | ||
2137 | not big endian | ||
2138 | #endif | ||
2139 | |||
2140 | ; | ||
2141 | return 0; | ||
2142 | } | ||
2143 | _ACEOF | ||
2144 | rm -f conftest.$ac_objext | ||
2145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2146 | (eval $ac_compile) 2>&5 | ||
2147 | ac_status=$? | ||
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2149 | (exit $ac_status); } && | ||
2150 | { ac_try='test -s conftest.$ac_objext' | ||
2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2152 | (eval $ac_try) 2>&5 | ||
2153 | ac_status=$? | ||
2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2155 | (exit $ac_status); }; }; then | ||
2156 | ac_cv_c_bigendian=yes | ||
2157 | else | ||
2158 | echo "$as_me: failed program was:" >&5 | ||
2159 | cat conftest.$ac_ext >&5 | ||
2160 | ac_cv_c_bigendian=no | ||
2161 | fi | ||
2162 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2163 | else | ||
2164 | echo "$as_me: failed program was:" >&5 | ||
2165 | cat conftest.$ac_ext >&5 | ||
2166 | # It does not; compile a test program. | ||
2167 | if test "$cross_compiling" = yes; then | ||
2168 | # try to guess the endianess by grep'ing values into an object file | ||
2169 | ac_cv_c_bigendian=unknown | ||
2170 | cat >conftest.$ac_ext <<_ACEOF | ||
2171 | #line $LINENO "configure" | ||
2172 | #include "confdefs.h" | ||
2173 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2174 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2175 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2176 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2177 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2178 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2179 | #ifdef F77_DUMMY_MAIN | ||
2180 | # ifdef __cplusplus | ||
2181 | extern "C" | ||
2182 | # endif | ||
2183 | int F77_DUMMY_MAIN() { return 1; } | ||
2184 | #endif | ||
2185 | int | ||
2186 | main () | ||
2187 | { | ||
2188 | _ascii (); _ebcdic (); | ||
2189 | ; | ||
2190 | return 0; | ||
2191 | } | ||
2192 | _ACEOF | ||
2193 | rm -f conftest.$ac_objext | ||
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2195 | (eval $ac_compile) 2>&5 | ||
2196 | ac_status=$? | ||
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2198 | (exit $ac_status); } && | ||
2199 | { ac_try='test -s conftest.$ac_objext' | ||
2200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2201 | (eval $ac_try) 2>&5 | ||
2202 | ac_status=$? | ||
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2204 | (exit $ac_status); }; }; then | ||
2205 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2206 | ac_cv_c_bigendian=yes | ||
2207 | fi | ||
2208 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2209 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2210 | ac_cv_c_bigendian=no | ||
2211 | else | ||
2212 | # finding both strings is unlikely to happen, but who knows? | ||
2213 | ac_cv_c_bigendian=unknown | ||
2214 | fi | ||
2215 | fi | ||
2216 | else | ||
2217 | echo "$as_me: failed program was:" >&5 | ||
2218 | cat conftest.$ac_ext >&5 | ||
2219 | fi | ||
2220 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2221 | else | ||
2222 | cat >conftest.$ac_ext <<_ACEOF | ||
2223 | #line $LINENO "configure" | ||
2224 | #include "confdefs.h" | ||
2225 | int | ||
2226 | main () | ||
2227 | { | ||
2228 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2229 | union | ||
2230 | { | ||
2231 | long l; | ||
2232 | char c[sizeof (long)]; | ||
2233 | } u; | ||
2234 | u.l = 1; | ||
2235 | exit (u.c[sizeof (long) - 1] == 1); | ||
2236 | } | ||
2237 | _ACEOF | ||
2238 | rm -f conftest$ac_exeext | ||
2239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2240 | (eval $ac_link) 2>&5 | ||
2241 | ac_status=$? | ||
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2245 | (eval $ac_try) 2>&5 | ||
2246 | ac_status=$? | ||
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2248 | (exit $ac_status); }; }; then | ||
2249 | ac_cv_c_bigendian=no | ||
2250 | else | ||
2251 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2252 | echo "$as_me: failed program was:" >&5 | ||
2253 | cat conftest.$ac_ext >&5 | ||
2254 | ( exit $ac_status ) | ||
2255 | ac_cv_c_bigendian=yes | ||
2256 | fi | ||
2257 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2258 | fi | ||
2259 | fi | ||
2260 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
2261 | fi | ||
2262 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2263 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2264 | case $ac_cv_c_bigendian in | ||
2265 | yes) | ||
2266 | |||
2267 | cat >>confdefs.h <<\_ACEOF | ||
2268 | #define WORDS_BIGENDIAN 1 | ||
2269 | _ACEOF | ||
2270 | ;; | ||
2271 | no) | ||
2272 | ;; | ||
2273 | *) | ||
2274 | { { echo "$as_me:$LINENO: error: unknown endianess | ||
2275 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2276 | echo "$as_me: error: unknown endianess | ||
2277 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2278 | { (exit 1); exit 1; }; } ;; | ||
2279 | esac | ||
2280 | |||
2281 | |||
2282 | # Checks for programs. | ||
2283 | ac_ext=c | ||
2284 | ac_cpp='$CPP $CPPFLAGS' | ||
2285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2288 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2289 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2290 | # On Suns, sometimes $CPP names a directory. | ||
2291 | if test -n "$CPP" && test -d "$CPP"; then | ||
2292 | CPP= | ||
2293 | fi | ||
2294 | if test -z "$CPP"; then | ||
2295 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2297 | else | ||
2298 | # Double quotes because CPP needs to be expanded | ||
2299 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2300 | do | ||
2301 | ac_preproc_ok=false | ||
2302 | for ac_c_preproc_warn_flag in '' yes | ||
2303 | do | ||
2304 | # Use a header file that comes with gcc, so configuring glibc | ||
2305 | # with a fresh cross-compiler works. | ||
2306 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2307 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2308 | cat >conftest.$ac_ext <<_ACEOF | ||
2309 | #line $LINENO "configure" | ||
2310 | #include "confdefs.h" | ||
2311 | #include <assert.h> | ||
2312 | Syntax error | ||
2313 | _ACEOF | ||
2314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2316 | ac_status=$? | ||
2317 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2318 | rm -f conftest.er1 | ||
2319 | cat conftest.err >&5 | ||
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2321 | (exit $ac_status); } >/dev/null; then | ||
2322 | if test -s conftest.err; then | ||
2323 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2324 | else | ||
2325 | ac_cpp_err= | ||
2326 | fi | ||
2327 | else | ||
2328 | ac_cpp_err=yes | ||
2329 | fi | ||
2330 | if test -z "$ac_cpp_err"; then | ||
2331 | : | ||
2332 | else | ||
2333 | echo "$as_me: failed program was:" >&5 | ||
2334 | cat conftest.$ac_ext >&5 | ||
2335 | # Broken: fails on valid input. | ||
2336 | continue | ||
2337 | fi | ||
2338 | rm -f conftest.err conftest.$ac_ext | ||
2339 | |||
2340 | # OK, works on sane cases. Now check whether non-existent headers | ||
2341 | # can be detected and how. | ||
2342 | cat >conftest.$ac_ext <<_ACEOF | ||
2343 | #line $LINENO "configure" | ||
2344 | #include "confdefs.h" | ||
2345 | #include <ac_nonexistent.h> | ||
2346 | _ACEOF | ||
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2349 | ac_status=$? | ||
2350 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2351 | rm -f conftest.er1 | ||
2352 | cat conftest.err >&5 | ||
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2354 | (exit $ac_status); } >/dev/null; then | ||
2355 | if test -s conftest.err; then | ||
2356 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2357 | else | ||
2358 | ac_cpp_err= | ||
2359 | fi | ||
2360 | else | ||
2361 | ac_cpp_err=yes | ||
2362 | fi | ||
2363 | if test -z "$ac_cpp_err"; then | ||
2364 | # Broken: success on invalid input. | ||
2365 | continue | ||
2366 | else | ||
2367 | echo "$as_me: failed program was:" >&5 | ||
2368 | cat conftest.$ac_ext >&5 | ||
2369 | # Passes both tests. | ||
2370 | ac_preproc_ok=: | ||
2371 | break | ||
2372 | fi | ||
2373 | rm -f conftest.err conftest.$ac_ext | ||
2374 | |||
2375 | done | ||
2376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2377 | rm -f conftest.err conftest.$ac_ext | ||
2378 | if $ac_preproc_ok; then | ||
2379 | break | ||
2380 | fi | ||
2381 | |||
2382 | done | ||
2383 | ac_cv_prog_CPP=$CPP | ||
2384 | |||
2385 | fi | ||
2386 | CPP=$ac_cv_prog_CPP | ||
2387 | else | ||
2388 | ac_cv_prog_CPP=$CPP | ||
2389 | fi | ||
2390 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2391 | echo "${ECHO_T}$CPP" >&6 | ||
2392 | ac_preproc_ok=false | ||
2393 | for ac_c_preproc_warn_flag in '' yes | ||
2394 | do | ||
2395 | # Use a header file that comes with gcc, so configuring glibc | ||
2396 | # with a fresh cross-compiler works. | ||
2397 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2398 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2399 | cat >conftest.$ac_ext <<_ACEOF | ||
2400 | #line $LINENO "configure" | ||
2401 | #include "confdefs.h" | ||
2402 | #include <assert.h> | ||
2403 | Syntax error | ||
2404 | _ACEOF | ||
2405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2407 | ac_status=$? | ||
2408 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2409 | rm -f conftest.er1 | ||
2410 | cat conftest.err >&5 | ||
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2412 | (exit $ac_status); } >/dev/null; then | ||
2413 | if test -s conftest.err; then | ||
2414 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2415 | else | ||
2416 | ac_cpp_err= | ||
2417 | fi | ||
2418 | else | ||
2419 | ac_cpp_err=yes | ||
2420 | fi | ||
2421 | if test -z "$ac_cpp_err"; then | ||
2422 | : | ||
2423 | else | ||
2424 | echo "$as_me: failed program was:" >&5 | ||
2425 | cat conftest.$ac_ext >&5 | ||
2426 | # Broken: fails on valid input. | ||
2427 | continue | ||
2428 | fi | ||
2429 | rm -f conftest.err conftest.$ac_ext | ||
2430 | |||
2431 | # OK, works on sane cases. Now check whether non-existent headers | ||
2432 | # can be detected and how. | ||
2433 | cat >conftest.$ac_ext <<_ACEOF | ||
2434 | #line $LINENO "configure" | ||
2435 | #include "confdefs.h" | ||
2436 | #include <ac_nonexistent.h> | ||
2437 | _ACEOF | ||
2438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2440 | ac_status=$? | ||
2441 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
2442 | rm -f conftest.er1 | ||
2443 | cat conftest.err >&5 | ||
2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2445 | (exit $ac_status); } >/dev/null; then | ||
2446 | if test -s conftest.err; then | ||
2447 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2448 | else | ||
2449 | ac_cpp_err= | ||
2450 | fi | ||
2451 | else | ||
2452 | ac_cpp_err=yes | ||
2453 | fi | ||
2454 | if test -z "$ac_cpp_err"; then | ||
2455 | # Broken: success on invalid input. | ||
2456 | continue | ||
2457 | else | ||
2458 | echo "$as_me: failed program was:" >&5 | ||
2459 | cat conftest.$ac_ext >&5 | ||
2460 | # Passes both tests. | ||
2461 | ac_preproc_ok=: | ||
2462 | break | ||
2463 | fi | ||
2464 | rm -f conftest.err conftest.$ac_ext | ||
2465 | |||
2466 | done | ||
2467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2468 | rm -f conftest.err conftest.$ac_ext | ||
2469 | if $ac_preproc_ok; then | ||
2470 | : | ||
2471 | else | ||
2472 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | ||
2473 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | ||
2474 | { (exit 1); exit 1; }; } | ||
2475 | fi | ||
2476 | |||
2477 | ac_ext=c | ||
2478 | ac_cpp='$CPP $CPPFLAGS' | ||
2479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2482 | |||
2483 | if test -n "$ac_tool_prefix"; then | ||
2484 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2485 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2488 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2490 | else | ||
2491 | if test -n "$RANLIB"; then | ||
2492 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2493 | else | ||
2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2495 | for as_dir in $PATH | ||
2496 | do | ||
2497 | IFS=$as_save_IFS | ||
2498 | test -z "$as_dir" && as_dir=. | ||
2499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2501 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2503 | break 2 | ||
2504 | fi | ||
2505 | done | ||
2506 | done | ||
2507 | |||
2508 | fi | ||
2509 | fi | ||
2510 | RANLIB=$ac_cv_prog_RANLIB | ||
2511 | if test -n "$RANLIB"; then | ||
2512 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2513 | echo "${ECHO_T}$RANLIB" >&6 | ||
2514 | else | ||
2515 | echo "$as_me:$LINENO: result: no" >&5 | ||
2516 | echo "${ECHO_T}no" >&6 | ||
2517 | fi | ||
2518 | |||
2519 | fi | ||
2520 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2521 | ac_ct_RANLIB=$RANLIB | ||
2522 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2523 | set dummy ranlib; ac_word=$2 | ||
2524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2526 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2528 | else | ||
2529 | if test -n "$ac_ct_RANLIB"; then | ||
2530 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2531 | else | ||
2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2533 | for as_dir in $PATH | ||
2534 | do | ||
2535 | IFS=$as_save_IFS | ||
2536 | test -z "$as_dir" && as_dir=. | ||
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2539 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2541 | break 2 | ||
2542 | fi | ||
2543 | done | ||
2544 | done | ||
2545 | |||
2546 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2547 | fi | ||
2548 | fi | ||
2549 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2550 | if test -n "$ac_ct_RANLIB"; then | ||
2551 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2552 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2553 | else | ||
2554 | echo "$as_me:$LINENO: result: no" >&5 | ||
2555 | echo "${ECHO_T}no" >&6 | ||
2556 | fi | ||
2557 | |||
2558 | RANLIB=$ac_ct_RANLIB | ||
2559 | else | ||
2560 | RANLIB="$ac_cv_prog_RANLIB" | ||
2561 | fi | ||
2562 | |||
2563 | # Find a good install program. We prefer a C program (faster), | ||
2564 | # so one script is as good as another. But avoid the broken or | ||
2565 | # incompatible versions: | ||
2566 | # SysV /etc/install, /usr/sbin/install | ||
2567 | # SunOS /usr/etc/install | ||
2568 | # IRIX /sbin/install | ||
2569 | # AIX /bin/install | ||
2570 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2574 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2575 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2576 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2577 | if test -z "$INSTALL"; then | ||
2578 | if test "${ac_cv_path_install+set}" = set; then | ||
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2580 | else | ||
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2582 | for as_dir in $PATH | ||
2583 | do | ||
2584 | IFS=$as_save_IFS | ||
2585 | test -z "$as_dir" && as_dir=. | ||
2586 | # Account for people who put trailing slashes in PATH elements. | ||
2587 | case $as_dir/ in | ||
2588 | ./ | .// | /cC/* | \ | ||
2589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2590 | /usr/ucb/* ) ;; | ||
2591 | *) | ||
2592 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2593 | # Don't use installbsd from OSF since it installs stuff as root | ||
2594 | # by default. | ||
2595 | for ac_prog in ginstall scoinst install; do | ||
2596 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2597 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2598 | if test $ac_prog = install && | ||
2599 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2600 | # AIX install. It has an incompatible calling convention. | ||
2601 | : | ||
2602 | elif test $ac_prog = install && | ||
2603 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2604 | # program-specific install script used by HP pwplus--don't use. | ||
2605 | : | ||
2606 | else | ||
2607 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2608 | break 3 | ||
2609 | fi | ||
2610 | fi | ||
2611 | done | ||
2612 | done | ||
2613 | ;; | ||
2614 | esac | ||
2615 | done | ||
2616 | |||
2617 | |||
2618 | fi | ||
2619 | if test "${ac_cv_path_install+set}" = set; then | ||
2620 | INSTALL=$ac_cv_path_install | ||
2621 | else | ||
2622 | # As a last resort, use the slow shell script. We don't cache a | ||
2623 | # path for INSTALL within a source directory, because that will | ||
2624 | # break other packages using the cache if that directory is | ||
2625 | # removed, or if the path is relative. | ||
2626 | INSTALL=$ac_install_sh | ||
2627 | fi | ||
2628 | fi | ||
2629 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2630 | echo "${ECHO_T}$INSTALL" >&6 | ||
2631 | |||
2632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2633 | # It thinks the first close brace ends the variable substitution. | ||
2634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2635 | |||
2636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2637 | |||
2638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2639 | |||
2640 | # Extract the first word of "ar", so it can be a program name with args. | ||
2641 | set dummy ar; ac_word=$2 | ||
2642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2644 | if test "${ac_cv_path_AR+set}" = set; then | ||
2645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2646 | else | ||
2647 | case $AR in | ||
2648 | [\\/]* | ?:[\\/]*) | ||
2649 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
2650 | ;; | ||
2651 | *) | ||
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2653 | for as_dir in $PATH | ||
2654 | do | ||
2655 | IFS=$as_save_IFS | ||
2656 | test -z "$as_dir" && as_dir=. | ||
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2659 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
2660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2661 | break 2 | ||
2662 | fi | ||
2663 | done | ||
2664 | done | ||
2665 | |||
2666 | ;; | ||
2667 | esac | ||
2668 | fi | ||
2669 | AR=$ac_cv_path_AR | ||
2670 | |||
2671 | if test -n "$AR"; then | ||
2672 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
2673 | echo "${ECHO_T}$AR" >&6 | ||
2674 | else | ||
2675 | echo "$as_me:$LINENO: result: no" >&5 | ||
2676 | echo "${ECHO_T}no" >&6 | ||
2677 | fi | ||
2678 | |||
2679 | for ac_prog in perl5 perl | ||
2680 | do | ||
2681 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2682 | set dummy $ac_prog; ac_word=$2 | ||
2683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2685 | if test "${ac_cv_path_PERL+set}" = set; then | ||
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2687 | else | ||
2688 | case $PERL in | ||
2689 | [\\/]* | ?:[\\/]*) | ||
2690 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
2691 | ;; | ||
2692 | *) | ||
2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2694 | for as_dir in $PATH | ||
2695 | do | ||
2696 | IFS=$as_save_IFS | ||
2697 | test -z "$as_dir" && as_dir=. | ||
2698 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2700 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
2701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2702 | break 2 | ||
2703 | fi | ||
2704 | done | ||
2705 | done | ||
2706 | |||
2707 | ;; | ||
2708 | esac | ||
2709 | fi | ||
2710 | PERL=$ac_cv_path_PERL | ||
2711 | |||
2712 | if test -n "$PERL"; then | ||
2713 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
2714 | echo "${ECHO_T}$PERL" >&6 | ||
2715 | else | ||
2716 | echo "$as_me:$LINENO: result: no" >&5 | ||
2717 | echo "${ECHO_T}no" >&6 | ||
2718 | fi | ||
2719 | |||
2720 | test -n "$PERL" && break | ||
2721 | done | ||
2722 | |||
2723 | # Extract the first word of "sed", so it can be a program name with args. | ||
2724 | set dummy sed; ac_word=$2 | ||
2725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2727 | if test "${ac_cv_path_SED+set}" = set; then | ||
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2729 | else | ||
2730 | case $SED in | ||
2731 | [\\/]* | ?:[\\/]*) | ||
2732 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
2733 | ;; | ||
2734 | *) | ||
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2736 | for as_dir in $PATH | ||
2737 | do | ||
2738 | IFS=$as_save_IFS | ||
2739 | test -z "$as_dir" && as_dir=. | ||
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2742 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2744 | break 2 | ||
2745 | fi | ||
2746 | done | ||
2747 | done | ||
2748 | |||
2749 | ;; | ||
2750 | esac | ||
2751 | fi | ||
2752 | SED=$ac_cv_path_SED | ||
2753 | |||
2754 | if test -n "$SED"; then | ||
2755 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
2756 | echo "${ECHO_T}$SED" >&6 | ||
2757 | else | ||
2758 | echo "$as_me:$LINENO: result: no" >&5 | ||
2759 | echo "${ECHO_T}no" >&6 | ||
2760 | fi | ||
2761 | |||
2762 | |||
2763 | # Extract the first word of "ent", so it can be a program name with args. | ||
2764 | set dummy ent; ac_word=$2 | ||
2765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2767 | if test "${ac_cv_path_ENT+set}" = set; then | ||
2768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2769 | else | ||
2770 | case $ENT in | ||
2771 | [\\/]* | ?:[\\/]*) | ||
2772 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
2773 | ;; | ||
2774 | *) | ||
2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2776 | for as_dir in $PATH | ||
2777 | do | ||
2778 | IFS=$as_save_IFS | ||
2779 | test -z "$as_dir" && as_dir=. | ||
2780 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2782 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
2783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2784 | break 2 | ||
2785 | fi | ||
2786 | done | ||
2787 | done | ||
2788 | |||
2789 | ;; | ||
2790 | esac | ||
2791 | fi | ||
2792 | ENT=$ac_cv_path_ENT | ||
2793 | |||
2794 | if test -n "$ENT"; then | ||
2795 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
2796 | echo "${ECHO_T}$ENT" >&6 | ||
2797 | else | ||
2798 | echo "$as_me:$LINENO: result: no" >&5 | ||
2799 | echo "${ECHO_T}no" >&6 | ||
2800 | fi | ||
2801 | |||
2802 | |||
2803 | # Extract the first word of "bash", so it can be a program name with args. | ||
2804 | set dummy bash; ac_word=$2 | ||
2805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2807 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2809 | else | ||
2810 | case $TEST_MINUS_S_SH in | ||
2811 | [\\/]* | ?:[\\/]*) | ||
2812 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2813 | ;; | ||
2814 | *) | ||
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2816 | for as_dir in $PATH | ||
2817 | do | ||
2818 | IFS=$as_save_IFS | ||
2819 | test -z "$as_dir" && as_dir=. | ||
2820 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2822 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2824 | break 2 | ||
2825 | fi | ||
2826 | done | ||
2827 | done | ||
2828 | |||
2829 | ;; | ||
2830 | esac | ||
2831 | fi | ||
2832 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2833 | |||
2834 | if test -n "$TEST_MINUS_S_SH"; then | ||
2835 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2836 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2837 | else | ||
2838 | echo "$as_me:$LINENO: result: no" >&5 | ||
2839 | echo "${ECHO_T}no" >&6 | ||
2840 | fi | ||
2841 | |||
2842 | # Extract the first word of "ksh", so it can be a program name with args. | ||
2843 | set dummy ksh; ac_word=$2 | ||
2844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2846 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2848 | else | ||
2849 | case $TEST_MINUS_S_SH in | ||
2850 | [\\/]* | ?:[\\/]*) | ||
2851 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2852 | ;; | ||
2853 | *) | ||
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2855 | for as_dir in $PATH | ||
2856 | do | ||
2857 | IFS=$as_save_IFS | ||
2858 | test -z "$as_dir" && as_dir=. | ||
2859 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2861 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2863 | break 2 | ||
2864 | fi | ||
2865 | done | ||
2866 | done | ||
2867 | |||
2868 | ;; | ||
2869 | esac | ||
2870 | fi | ||
2871 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2872 | |||
2873 | if test -n "$TEST_MINUS_S_SH"; then | ||
2874 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2875 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2876 | else | ||
2877 | echo "$as_me:$LINENO: result: no" >&5 | ||
2878 | echo "${ECHO_T}no" >&6 | ||
2879 | fi | ||
2880 | |||
2881 | # Extract the first word of "sh", so it can be a program name with args. | ||
2882 | set dummy sh; ac_word=$2 | ||
2883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2885 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2887 | else | ||
2888 | case $TEST_MINUS_S_SH in | ||
2889 | [\\/]* | ?:[\\/]*) | ||
2890 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
2891 | ;; | ||
2892 | *) | ||
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2894 | for as_dir in $PATH | ||
2895 | do | ||
2896 | IFS=$as_save_IFS | ||
2897 | test -z "$as_dir" && as_dir=. | ||
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2900 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2902 | break 2 | ||
2903 | fi | ||
2904 | done | ||
2905 | done | ||
2906 | |||
2907 | ;; | ||
2908 | esac | ||
2909 | fi | ||
2910 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
2911 | |||
2912 | if test -n "$TEST_MINUS_S_SH"; then | ||
2913 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
2914 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
2915 | else | ||
2916 | echo "$as_me:$LINENO: result: no" >&5 | ||
2917 | echo "${ECHO_T}no" >&6 | ||
2918 | fi | ||
2919 | |||
2920 | # Extract the first word of "sh", so it can be a program name with args. | ||
2921 | set dummy sh; ac_word=$2 | ||
2922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2924 | if test "${ac_cv_path_SH+set}" = set; then | ||
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2926 | else | ||
2927 | case $SH in | ||
2928 | [\\/]* | ?:[\\/]*) | ||
2929 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
2930 | ;; | ||
2931 | *) | ||
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2933 | for as_dir in $PATH | ||
2934 | do | ||
2935 | IFS=$as_save_IFS | ||
2936 | test -z "$as_dir" && as_dir=. | ||
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2939 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2941 | break 2 | ||
2942 | fi | ||
2943 | done | ||
2944 | done | ||
2945 | |||
2946 | ;; | ||
2947 | esac | ||
2948 | fi | ||
2949 | SH=$ac_cv_path_SH | ||
2950 | |||
2951 | if test -n "$SH"; then | ||
2952 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
2953 | echo "${ECHO_T}$SH" >&6 | ||
2954 | else | ||
2955 | echo "$as_me:$LINENO: result: no" >&5 | ||
2956 | echo "${ECHO_T}no" >&6 | ||
2957 | fi | ||
2958 | |||
2959 | |||
2960 | # System features | ||
2961 | # Check whether --enable-largefile or --disable-largefile was given. | ||
2962 | if test "${enable_largefile+set}" = set; then | ||
2963 | enableval="$enable_largefile" | ||
2964 | |||
2965 | fi; | ||
2966 | if test "$enable_largefile" != no; then | ||
2967 | |||
2968 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
2969 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
2970 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2972 | else | ||
2973 | ac_cv_sys_largefile_CC=no | ||
2974 | if test "$GCC" != yes; then | ||
2975 | ac_save_CC=$CC | ||
2976 | while :; do | ||
2977 | # IRIX 6.2 and later do not support large files by default, | ||
2978 | # so use the C compiler's -n32 option if that helps. | ||
2979 | cat >conftest.$ac_ext <<_ACEOF | ||
2980 | #line $LINENO "configure" | ||
2981 | #include "confdefs.h" | ||
2982 | #include <sys/types.h> | ||
2983 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
2984 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
2985 | since some C++ compilers masquerading as C compilers | ||
2986 | incorrectly reject 9223372036854775807. */ | ||
2987 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
2988 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
2989 | && LARGE_OFF_T % 2147483647 == 1) | ||
2990 | ? 1 : -1]; | ||
2991 | #ifdef F77_DUMMY_MAIN | ||
2992 | # ifdef __cplusplus | ||
2993 | extern "C" | ||
2994 | # endif | ||
2995 | int F77_DUMMY_MAIN() { return 1; } | ||
2996 | #endif | ||
2997 | int | ||
2998 | main () | ||
2999 | { | ||
3000 | |||
3001 | ; | ||
3002 | return 0; | ||
3003 | } | ||
3004 | _ACEOF | ||
3005 | rm -f conftest.$ac_objext | ||
3006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3007 | (eval $ac_compile) 2>&5 | ||
3008 | ac_status=$? | ||
3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3010 | (exit $ac_status); } && | ||
3011 | { ac_try='test -s conftest.$ac_objext' | ||
3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3013 | (eval $ac_try) 2>&5 | ||
3014 | ac_status=$? | ||
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3016 | (exit $ac_status); }; }; then | ||
3017 | break | ||
3018 | else | ||
3019 | echo "$as_me: failed program was:" >&5 | ||
3020 | cat conftest.$ac_ext >&5 | ||
3021 | fi | ||
3022 | rm -f conftest.$ac_objext | ||
3023 | CC="$CC -n32" | ||
3024 | rm -f conftest.$ac_objext | ||
3025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3026 | (eval $ac_compile) 2>&5 | ||
3027 | ac_status=$? | ||
3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3029 | (exit $ac_status); } && | ||
3030 | { ac_try='test -s conftest.$ac_objext' | ||
3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3032 | (eval $ac_try) 2>&5 | ||
3033 | ac_status=$? | ||
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3035 | (exit $ac_status); }; }; then | ||
3036 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3037 | else | ||
3038 | echo "$as_me: failed program was:" >&5 | ||
3039 | cat conftest.$ac_ext >&5 | ||
3040 | fi | ||
3041 | rm -f conftest.$ac_objext | ||
3042 | break | ||
3043 | done | ||
3044 | CC=$ac_save_CC | ||
3045 | rm -f conftest.$ac_ext | ||
3046 | fi | ||
3047 | fi | ||
3048 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3049 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3050 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3051 | CC=$CC$ac_cv_sys_largefile_CC | ||
3052 | fi | ||
3053 | |||
3054 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3055 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3056 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3058 | else | ||
3059 | while :; do | ||
3060 | ac_cv_sys_file_offset_bits=no | ||
3061 | cat >conftest.$ac_ext <<_ACEOF | ||
3062 | #line $LINENO "configure" | ||
3063 | #include "confdefs.h" | ||
3064 | #include <sys/types.h> | ||
3065 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3066 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3067 | since some C++ compilers masquerading as C compilers | ||
3068 | incorrectly reject 9223372036854775807. */ | ||
3069 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3070 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3071 | && LARGE_OFF_T % 2147483647 == 1) | ||
3072 | ? 1 : -1]; | ||
3073 | #ifdef F77_DUMMY_MAIN | ||
3074 | # ifdef __cplusplus | ||
3075 | extern "C" | ||
3076 | # endif | ||
3077 | int F77_DUMMY_MAIN() { return 1; } | ||
3078 | #endif | ||
3079 | int | ||
3080 | main () | ||
3081 | { | ||
3082 | |||
3083 | ; | ||
3084 | return 0; | ||
3085 | } | ||
3086 | _ACEOF | ||
3087 | rm -f conftest.$ac_objext | ||
3088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3089 | (eval $ac_compile) 2>&5 | ||
3090 | ac_status=$? | ||
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3092 | (exit $ac_status); } && | ||
3093 | { ac_try='test -s conftest.$ac_objext' | ||
3094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3095 | (eval $ac_try) 2>&5 | ||
3096 | ac_status=$? | ||
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3098 | (exit $ac_status); }; }; then | ||
3099 | break | ||
3100 | else | ||
3101 | echo "$as_me: failed program was:" >&5 | ||
3102 | cat conftest.$ac_ext >&5 | ||
3103 | fi | ||
3104 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3105 | cat >conftest.$ac_ext <<_ACEOF | ||
3106 | #line $LINENO "configure" | ||
3107 | #include "confdefs.h" | ||
3108 | #define _FILE_OFFSET_BITS 64 | ||
3109 | #include <sys/types.h> | ||
3110 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3111 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3112 | since some C++ compilers masquerading as C compilers | ||
3113 | incorrectly reject 9223372036854775807. */ | ||
3114 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3115 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3116 | && LARGE_OFF_T % 2147483647 == 1) | ||
3117 | ? 1 : -1]; | ||
3118 | #ifdef F77_DUMMY_MAIN | ||
3119 | # ifdef __cplusplus | ||
3120 | extern "C" | ||
3121 | # endif | ||
3122 | int F77_DUMMY_MAIN() { return 1; } | ||
3123 | #endif | ||
3124 | int | ||
3125 | main () | ||
3126 | { | ||
3127 | |||
3128 | ; | ||
3129 | return 0; | ||
3130 | } | ||
3131 | _ACEOF | ||
3132 | rm -f conftest.$ac_objext | ||
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3134 | (eval $ac_compile) 2>&5 | ||
3135 | ac_status=$? | ||
3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3137 | (exit $ac_status); } && | ||
3138 | { ac_try='test -s conftest.$ac_objext' | ||
3139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3140 | (eval $ac_try) 2>&5 | ||
3141 | ac_status=$? | ||
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3143 | (exit $ac_status); }; }; then | ||
3144 | ac_cv_sys_file_offset_bits=64; break | ||
3145 | else | ||
3146 | echo "$as_me: failed program was:" >&5 | ||
3147 | cat conftest.$ac_ext >&5 | ||
3148 | fi | ||
3149 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3150 | break | ||
3151 | done | ||
3152 | fi | ||
3153 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3154 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3155 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3156 | |||
3157 | cat >>confdefs.h <<_ACEOF | ||
3158 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3159 | _ACEOF | ||
3160 | |||
3161 | fi | ||
3162 | rm -f conftest* | ||
3163 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3164 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3165 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3167 | else | ||
3168 | while :; do | ||
3169 | ac_cv_sys_large_files=no | ||
3170 | cat >conftest.$ac_ext <<_ACEOF | ||
3171 | #line $LINENO "configure" | ||
3172 | #include "confdefs.h" | ||
3173 | #include <sys/types.h> | ||
3174 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3175 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3176 | since some C++ compilers masquerading as C compilers | ||
3177 | incorrectly reject 9223372036854775807. */ | ||
3178 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3179 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3180 | && LARGE_OFF_T % 2147483647 == 1) | ||
3181 | ? 1 : -1]; | ||
3182 | #ifdef F77_DUMMY_MAIN | ||
3183 | # ifdef __cplusplus | ||
3184 | extern "C" | ||
3185 | # endif | ||
3186 | int F77_DUMMY_MAIN() { return 1; } | ||
3187 | #endif | ||
3188 | int | ||
3189 | main () | ||
3190 | { | ||
3191 | |||
3192 | ; | ||
3193 | return 0; | ||
3194 | } | ||
3195 | _ACEOF | ||
3196 | rm -f conftest.$ac_objext | ||
3197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3198 | (eval $ac_compile) 2>&5 | ||
3199 | ac_status=$? | ||
3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3201 | (exit $ac_status); } && | ||
3202 | { ac_try='test -s conftest.$ac_objext' | ||
3203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3204 | (eval $ac_try) 2>&5 | ||
3205 | ac_status=$? | ||
3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3207 | (exit $ac_status); }; }; then | ||
3208 | break | ||
3209 | else | ||
3210 | echo "$as_me: failed program was:" >&5 | ||
3211 | cat conftest.$ac_ext >&5 | ||
3212 | fi | ||
3213 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3214 | cat >conftest.$ac_ext <<_ACEOF | ||
3215 | #line $LINENO "configure" | ||
3216 | #include "confdefs.h" | ||
3217 | #define _LARGE_FILES 1 | ||
3218 | #include <sys/types.h> | ||
3219 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3220 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3221 | since some C++ compilers masquerading as C compilers | ||
3222 | incorrectly reject 9223372036854775807. */ | ||
3223 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3224 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3225 | && LARGE_OFF_T % 2147483647 == 1) | ||
3226 | ? 1 : -1]; | ||
3227 | #ifdef F77_DUMMY_MAIN | ||
3228 | # ifdef __cplusplus | ||
3229 | extern "C" | ||
3230 | # endif | ||
3231 | int F77_DUMMY_MAIN() { return 1; } | ||
3232 | #endif | ||
3233 | int | ||
3234 | main () | ||
3235 | { | ||
3236 | |||
3237 | ; | ||
3238 | return 0; | ||
3239 | } | ||
3240 | _ACEOF | ||
3241 | rm -f conftest.$ac_objext | ||
3242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3243 | (eval $ac_compile) 2>&5 | ||
3244 | ac_status=$? | ||
3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3246 | (exit $ac_status); } && | ||
3247 | { ac_try='test -s conftest.$ac_objext' | ||
3248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3249 | (eval $ac_try) 2>&5 | ||
3250 | ac_status=$? | ||
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3252 | (exit $ac_status); }; }; then | ||
3253 | ac_cv_sys_large_files=1; break | ||
3254 | else | ||
3255 | echo "$as_me: failed program was:" >&5 | ||
3256 | cat conftest.$ac_ext >&5 | ||
3257 | fi | ||
3258 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3259 | break | ||
3260 | done | ||
3261 | fi | ||
3262 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3263 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3264 | if test "$ac_cv_sys_large_files" != no; then | ||
3265 | |||
3266 | cat >>confdefs.h <<_ACEOF | ||
3267 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3268 | _ACEOF | ||
3269 | |||
3270 | fi | ||
3271 | rm -f conftest* | ||
3272 | fi | ||
3273 | |||
3274 | |||
3275 | if test -z "$AR" ; then | ||
3276 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3277 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3278 | { (exit 1); exit 1; }; } | ||
3279 | fi | ||
3280 | |||
3281 | # Use LOGIN_PROGRAM from environment if possible | ||
3282 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3283 | cat >>confdefs.h <<_ACEOF | ||
3284 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3285 | _ACEOF | ||
3286 | |||
3287 | else | ||
3288 | # Search for login | ||
3289 | # Extract the first word of "login", so it can be a program name with args. | ||
3290 | set dummy login; ac_word=$2 | ||
3291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3293 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3295 | else | ||
3296 | case $LOGIN_PROGRAM_FALLBACK in | ||
3297 | [\\/]* | ?:[\\/]*) | ||
3298 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3299 | ;; | ||
3300 | *) | ||
3301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3302 | for as_dir in $PATH | ||
3303 | do | ||
3304 | IFS=$as_save_IFS | ||
3305 | test -z "$as_dir" && as_dir=. | ||
3306 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3308 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3310 | break 2 | ||
3311 | fi | ||
3312 | done | ||
3313 | done | ||
3314 | |||
3315 | ;; | ||
3316 | esac | ||
3317 | fi | ||
3318 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3319 | |||
3320 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3321 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3322 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3323 | else | ||
3324 | echo "$as_me:$LINENO: result: no" >&5 | ||
3325 | echo "${ECHO_T}no" >&6 | ||
3326 | fi | ||
3327 | |||
3328 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3329 | cat >>confdefs.h <<_ACEOF | ||
3330 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3331 | _ACEOF | ||
3332 | |||
3333 | fi | ||
3334 | fi | ||
3335 | |||
3336 | if test -z "$LD" ; then | ||
3337 | LD=$CC | ||
3338 | fi | ||
3339 | |||
3340 | |||
3341 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
3342 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
3343 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3345 | else | ||
3346 | ac_cv_prog_cc_stdc=no | ||
3347 | ac_save_CC=$CC | ||
3348 | cat >conftest.$ac_ext <<_ACEOF | ||
3349 | #line $LINENO "configure" | ||
3350 | #include "confdefs.h" | ||
3351 | #include <stdarg.h> | ||
3352 | #include <stdio.h> | ||
3353 | #include <sys/types.h> | ||
3354 | #include <sys/stat.h> | ||
3355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3356 | struct buf { int x; }; | ||
3357 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3358 | static char *e (p, i) | ||
3359 | char **p; | ||
3360 | int i; | ||
3361 | { | ||
3362 | return p[i]; | ||
3363 | } | ||
3364 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3365 | { | ||
3366 | char *s; | ||
3367 | va_list v; | ||
3368 | va_start (v,p); | ||
3369 | s = g (p, va_arg (v,int)); | ||
3370 | va_end (v); | ||
3371 | return s; | ||
3372 | } | ||
3373 | int test (int i, double x); | ||
3374 | struct s1 {int (*f) (int a);}; | ||
3375 | struct s2 {int (*f) (double a);}; | ||
3376 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3377 | int argc; | ||
3378 | char **argv; | ||
3379 | #ifdef F77_DUMMY_MAIN | ||
3380 | # ifdef __cplusplus | ||
3381 | extern "C" | ||
3382 | # endif | ||
3383 | int F77_DUMMY_MAIN() { return 1; } | ||
3384 | #endif | ||
3385 | int | ||
3386 | main () | ||
3387 | { | ||
3388 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3389 | ; | ||
3390 | return 0; | ||
3391 | } | ||
3392 | _ACEOF | ||
3393 | # Don't try gcc -ansi; that turns off useful extensions and | ||
3394 | # breaks some systems' header files. | ||
3395 | # AIX -qlanglvl=ansi | ||
3396 | # Ultrix and OSF/1 -std1 | ||
3397 | # HP-UX 10.20 and later -Ae | ||
3398 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
3399 | # SVR4 -Xc -D__EXTENSIONS__ | ||
3400 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3401 | do | ||
3402 | CC="$ac_save_CC $ac_arg" | ||
3403 | rm -f conftest.$ac_objext | ||
3404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3405 | (eval $ac_compile) 2>&5 | ||
3406 | ac_status=$? | ||
3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3408 | (exit $ac_status); } && | ||
3409 | { ac_try='test -s conftest.$ac_objext' | ||
3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3411 | (eval $ac_try) 2>&5 | ||
3412 | ac_status=$? | ||
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3414 | (exit $ac_status); }; }; then | ||
3415 | ac_cv_prog_cc_stdc=$ac_arg | ||
3416 | break | ||
3417 | else | ||
3418 | echo "$as_me: failed program was:" >&5 | ||
3419 | cat conftest.$ac_ext >&5 | ||
3420 | fi | ||
3421 | rm -f conftest.$ac_objext | ||
3422 | done | ||
3423 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
3424 | CC=$ac_save_CC | ||
3425 | |||
3426 | fi | ||
3427 | |||
3428 | case "x$ac_cv_prog_cc_stdc" in | ||
3429 | x|xno) | ||
3430 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
3431 | echo "${ECHO_T}none needed" >&6 ;; | ||
3432 | *) | ||
3433 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
3434 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
3435 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
3436 | esac | ||
3437 | |||
3438 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
3439 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3440 | if test "${ac_cv_c_inline+set}" = set; then | ||
3441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3442 | else | ||
3443 | ac_cv_c_inline=no | ||
3444 | for ac_kw in inline __inline__ __inline; do | ||
3445 | cat >conftest.$ac_ext <<_ACEOF | ||
3446 | #line $LINENO "configure" | ||
3447 | #include "confdefs.h" | ||
3448 | #ifndef __cplusplus | ||
3449 | static $ac_kw int static_foo () {return 0; } | ||
3450 | $ac_kw int foo () {return 0; } | ||
3451 | #endif | ||
3452 | |||
3453 | _ACEOF | ||
3454 | rm -f conftest.$ac_objext | ||
3455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3456 | (eval $ac_compile) 2>&5 | ||
3457 | ac_status=$? | ||
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3459 | (exit $ac_status); } && | ||
3460 | { ac_try='test -s conftest.$ac_objext' | ||
3461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3462 | (eval $ac_try) 2>&5 | ||
3463 | ac_status=$? | ||
3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3465 | (exit $ac_status); }; }; then | ||
3466 | ac_cv_c_inline=$ac_kw; break | ||
3467 | else | ||
3468 | echo "$as_me: failed program was:" >&5 | ||
3469 | cat conftest.$ac_ext >&5 | ||
3470 | fi | ||
3471 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
3472 | done | ||
3473 | |||
3474 | fi | ||
3475 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3476 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3477 | case $ac_cv_c_inline in | ||
3478 | inline | yes) ;; | ||
3479 | no) | ||
3480 | cat >>confdefs.h <<\_ACEOF | ||
3481 | #define inline | ||
3482 | _ACEOF | ||
3483 | ;; | ||
3484 | *) cat >>confdefs.h <<_ACEOF | ||
3485 | #define inline $ac_cv_c_inline | ||
3486 | _ACEOF | ||
3487 | ;; | ||
3488 | esac | ||
3489 | |||
3490 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
3491 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
3492 | fi | ||
3493 | |||
3494 | # Check for some target-specific stuff | ||
3495 | case "$host" in | ||
3496 | *-*-aix*) | ||
3497 | AFS_LIBS="-lld" | ||
3498 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
3499 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
3500 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
3501 | echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5 | ||
3502 | echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6 | ||
3503 | saved_LDFLAGS="$LDFLAGS" | ||
3504 | LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" | ||
3505 | cat >conftest.$ac_ext <<_ACEOF | ||
3506 | #line $LINENO "configure" | ||
3507 | #include "confdefs.h" | ||
3508 | |||
3509 | #ifdef F77_DUMMY_MAIN | ||
3510 | # ifdef __cplusplus | ||
3511 | extern "C" | ||
3512 | # endif | ||
3513 | int F77_DUMMY_MAIN() { return 1; } | ||
3514 | #endif | ||
3515 | int | ||
3516 | main () | ||
3517 | { | ||
3518 | |||
3519 | ; | ||
3520 | return 0; | ||
3521 | } | ||
3522 | _ACEOF | ||
3523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3525 | (eval $ac_link) 2>&5 | ||
3526 | ac_status=$? | ||
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3528 | (exit $ac_status); } && | ||
3529 | { ac_try='test -s conftest$ac_exeext' | ||
3530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3531 | (eval $ac_try) 2>&5 | ||
3532 | ac_status=$? | ||
3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3534 | (exit $ac_status); }; }; then | ||
3535 | |||
3536 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3537 | echo "${ECHO_T}yes" >&6 | ||
3538 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
3539 | |||
3540 | else | ||
3541 | echo "$as_me: failed program was:" >&5 | ||
3542 | cat conftest.$ac_ext >&5 | ||
3543 | echo "$as_me:$LINENO: result: no" >&5 | ||
3544 | echo "${ECHO_T}no" >&6 | ||
3545 | |||
3546 | fi | ||
3547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3548 | LDFLAGS="$saved_LDFLAGS" | ||
3549 | fi | ||
3550 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
3551 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
3552 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3554 | else | ||
3555 | cat >conftest.$ac_ext <<_ACEOF | ||
3556 | #line $LINENO "configure" | ||
3557 | #include "confdefs.h" | ||
3558 | /* System header to define __stub macros and hopefully few prototypes, | ||
3559 | which can conflict with char authenticate (); below. */ | ||
3560 | #include <assert.h> | ||
3561 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3562 | #ifdef __cplusplus | ||
3563 | extern "C" | ||
3564 | #endif | ||
3565 | /* We use char because int might match the return type of a gcc2 | ||
3566 | builtin and then its argument prototype would still apply. */ | ||
3567 | char authenticate (); | ||
3568 | char (*f) (); | ||
3569 | |||
3570 | #ifdef F77_DUMMY_MAIN | ||
3571 | # ifdef __cplusplus | ||
3572 | extern "C" | ||
3573 | # endif | ||
3574 | int F77_DUMMY_MAIN() { return 1; } | ||
3575 | #endif | ||
3576 | int | ||
3577 | main () | ||
3578 | { | ||
3579 | /* The GNU C library defines this for functions which it implements | ||
3580 | to always fail with ENOSYS. Some functions are actually named | ||
3581 | something starting with __ and the normal name is an alias. */ | ||
3582 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
3583 | choke me | ||
3584 | #else | ||
3585 | f = authenticate; | ||
3586 | #endif | ||
3587 | |||
3588 | ; | ||
3589 | return 0; | ||
3590 | } | ||
3591 | _ACEOF | ||
3592 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3594 | (eval $ac_link) 2>&5 | ||
3595 | ac_status=$? | ||
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3597 | (exit $ac_status); } && | ||
3598 | { ac_try='test -s conftest$ac_exeext' | ||
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3600 | (eval $ac_try) 2>&5 | ||
3601 | ac_status=$? | ||
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3603 | (exit $ac_status); }; }; then | ||
3604 | ac_cv_func_authenticate=yes | ||
3605 | else | ||
3606 | echo "$as_me: failed program was:" >&5 | ||
3607 | cat conftest.$ac_ext >&5 | ||
3608 | ac_cv_func_authenticate=no | ||
3609 | fi | ||
3610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3611 | fi | ||
3612 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
3613 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
3614 | if test $ac_cv_func_authenticate = yes; then | ||
3615 | cat >>confdefs.h <<\_ACEOF | ||
3616 | #define WITH_AIXAUTHENTICATE 1 | ||
3617 | _ACEOF | ||
3618 | |||
3619 | else | ||
3620 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
3621 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
3622 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
3623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3624 | else | ||
3625 | ac_check_lib_save_LIBS=$LIBS | ||
3626 | LIBS="-ls $LIBS" | ||
3627 | cat >conftest.$ac_ext <<_ACEOF | ||
3628 | #line $LINENO "configure" | ||
3629 | #include "confdefs.h" | ||
3630 | |||
3631 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3632 | #ifdef __cplusplus | ||
3633 | extern "C" | ||
3634 | #endif | ||
3635 | /* We use char because int might match the return type of a gcc2 | ||
3636 | builtin and then its argument prototype would still apply. */ | ||
3637 | char authenticate (); | ||
3638 | #ifdef F77_DUMMY_MAIN | ||
3639 | # ifdef __cplusplus | ||
3640 | extern "C" | ||
3641 | # endif | ||
3642 | int F77_DUMMY_MAIN() { return 1; } | ||
3643 | #endif | ||
3644 | int | ||
3645 | main () | ||
3646 | { | ||
3647 | authenticate (); | ||
3648 | ; | ||
3649 | return 0; | ||
3650 | } | ||
3651 | _ACEOF | ||
3652 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3654 | (eval $ac_link) 2>&5 | ||
3655 | ac_status=$? | ||
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3657 | (exit $ac_status); } && | ||
3658 | { ac_try='test -s conftest$ac_exeext' | ||
3659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3660 | (eval $ac_try) 2>&5 | ||
3661 | ac_status=$? | ||
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3663 | (exit $ac_status); }; }; then | ||
3664 | ac_cv_lib_s_authenticate=yes | ||
3665 | else | ||
3666 | echo "$as_me: failed program was:" >&5 | ||
3667 | cat conftest.$ac_ext >&5 | ||
3668 | ac_cv_lib_s_authenticate=no | ||
3669 | fi | ||
3670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3671 | LIBS=$ac_check_lib_save_LIBS | ||
3672 | fi | ||
3673 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
3674 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
3675 | if test $ac_cv_lib_s_authenticate = yes; then | ||
3676 | cat >>confdefs.h <<\_ACEOF | ||
3677 | #define WITH_AIXAUTHENTICATE 1 | ||
3678 | _ACEOF | ||
3679 | |||
3680 | LIBS="$LIBS -ls" | ||
3681 | |||
3682 | fi | ||
3683 | |||
3684 | |||
3685 | fi | ||
3686 | |||
3687 | cat >>confdefs.h <<\_ACEOF | ||
3688 | #define BROKEN_GETADDRINFO 1 | ||
3689 | _ACEOF | ||
3690 | |||
3691 | cat >>confdefs.h <<\_ACEOF | ||
3692 | #define BROKEN_REALPATH 1 | ||
3693 | _ACEOF | ||
3694 | |||
3695 | cat >>confdefs.h <<\_ACEOF | ||
3696 | #define DISABLE_LASTLOG 1 | ||
3697 | _ACEOF | ||
3698 | |||
3699 | cat >>confdefs.h <<\_ACEOF | ||
3700 | #define LOGIN_NEEDS_UTMPX 1 | ||
3701 | _ACEOF | ||
3702 | |||
3703 | cat >>confdefs.h <<\_ACEOF | ||
3704 | #define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
3705 | _ACEOF | ||
3706 | |||
3707 | cat >>confdefs.h <<\_ACEOF | ||
3708 | #define SETPROCTITLE_PS_PADDING '\0' | ||
3709 | _ACEOF | ||
3710 | |||
3711 | ;; | ||
3712 | *-*-cygwin*) | ||
3713 | check_for_libcrypt_later=1 | ||
3714 | LIBS="$LIBS /usr/lib/textmode.o" | ||
3715 | cat >>confdefs.h <<\_ACEOF | ||
3716 | #define HAVE_CYGWIN 1 | ||
3717 | _ACEOF | ||
3718 | |||
3719 | cat >>confdefs.h <<\_ACEOF | ||
3720 | #define USE_PIPES 1 | ||
3721 | _ACEOF | ||
3722 | |||
3723 | cat >>confdefs.h <<\_ACEOF | ||
3724 | #define DISABLE_SHADOW 1 | ||
3725 | _ACEOF | ||
3726 | |||
3727 | cat >>confdefs.h <<\_ACEOF | ||
3728 | #define IPV4_DEFAULT 1 | ||
3729 | _ACEOF | ||
3730 | |||
3731 | cat >>confdefs.h <<\_ACEOF | ||
3732 | #define IP_TOS_IS_BROKEN 1 | ||
3733 | _ACEOF | ||
3734 | |||
3735 | cat >>confdefs.h <<\_ACEOF | ||
3736 | #define NO_X11_UNIX_SOCKETS 1 | ||
3737 | _ACEOF | ||
3738 | |||
3739 | cat >>confdefs.h <<\_ACEOF | ||
3740 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
3741 | _ACEOF | ||
3742 | |||
3743 | cat >>confdefs.h <<\_ACEOF | ||
3744 | #define DISABLE_FD_PASSING 1 | ||
3745 | _ACEOF | ||
3746 | |||
3747 | cat >>confdefs.h <<\_ACEOF | ||
3748 | #define SETGROUPS_NOOP 1 | ||
3749 | _ACEOF | ||
3750 | |||
3751 | ;; | ||
3752 | *-*-dgux*) | ||
3753 | cat >>confdefs.h <<\_ACEOF | ||
3754 | #define IP_TOS_IS_BROKEN 1 | ||
3755 | _ACEOF | ||
3756 | |||
3757 | ;; | ||
3758 | *-*-darwin*) | ||
3759 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
3760 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
3761 | if test "$cross_compiling" = yes; then | ||
3762 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
3763 | echo "${ECHO_T}assume it is working" >&6 | ||
3764 | else | ||
3765 | cat >conftest.$ac_ext <<_ACEOF | ||
3766 | #line $LINENO "configure" | ||
3767 | #include "confdefs.h" | ||
3768 | #include <mach-o/dyld.h> | ||
3769 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
3770 | exit(0); | ||
3771 | else | ||
3772 | exit(1); | ||
3773 | } | ||
3774 | _ACEOF | ||
3775 | rm -f conftest$ac_exeext | ||
3776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3777 | (eval $ac_link) 2>&5 | ||
3778 | ac_status=$? | ||
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3782 | (eval $ac_try) 2>&5 | ||
3783 | ac_status=$? | ||
3784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3785 | (exit $ac_status); }; }; then | ||
3786 | echo "$as_me:$LINENO: result: working" >&5 | ||
3787 | echo "${ECHO_T}working" >&6 | ||
3788 | else | ||
3789 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3790 | echo "$as_me: failed program was:" >&5 | ||
3791 | cat conftest.$ac_ext >&5 | ||
3792 | ( exit $ac_status ) | ||
3793 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
3794 | echo "${ECHO_T}buggy" >&6 | ||
3795 | cat >>confdefs.h <<\_ACEOF | ||
3796 | #define BROKEN_GETADDRINFO 1 | ||
3797 | _ACEOF | ||
3798 | |||
3799 | fi | ||
3800 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3801 | fi | ||
3802 | ;; | ||
3803 | *-*-hpux10.26) | ||
3804 | if test -z "$GCC"; then | ||
3805 | CFLAGS="$CFLAGS -Ae" | ||
3806 | fi | ||
3807 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3808 | IPADDR_IN_DISPLAY=yes | ||
3809 | cat >>confdefs.h <<\_ACEOF | ||
3810 | #define HAVE_SECUREWARE 1 | ||
3811 | _ACEOF | ||
3812 | |||
3813 | cat >>confdefs.h <<\_ACEOF | ||
3814 | #define USE_PIPES 1 | ||
3815 | _ACEOF | ||
3816 | |||
3817 | cat >>confdefs.h <<\_ACEOF | ||
3818 | #define LOGIN_NO_ENDOPT 1 | ||
3819 | _ACEOF | ||
3820 | |||
3821 | cat >>confdefs.h <<\_ACEOF | ||
3822 | #define LOGIN_NEEDS_UTMPX 1 | ||
3823 | _ACEOF | ||
3824 | |||
3825 | cat >>confdefs.h <<\_ACEOF | ||
3826 | #define DISABLE_SHADOW 1 | ||
3827 | _ACEOF | ||
3828 | |||
3829 | cat >>confdefs.h <<\_ACEOF | ||
3830 | #define DISABLE_UTMP 1 | ||
3831 | _ACEOF | ||
3832 | |||
3833 | cat >>confdefs.h <<\_ACEOF | ||
3834 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
3835 | _ACEOF | ||
3836 | |||
3837 | LIBS="$LIBS -lsec -lsecpw" | ||
3838 | |||
3839 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3840 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3841 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3843 | else | ||
3844 | ac_check_lib_save_LIBS=$LIBS | ||
3845 | LIBS="-lxnet $LIBS" | ||
3846 | cat >conftest.$ac_ext <<_ACEOF | ||
3847 | #line $LINENO "configure" | ||
3848 | #include "confdefs.h" | ||
3849 | |||
3850 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3851 | #ifdef __cplusplus | ||
3852 | extern "C" | ||
3853 | #endif | ||
3854 | /* We use char because int might match the return type of a gcc2 | ||
3855 | builtin and then its argument prototype would still apply. */ | ||
3856 | char t_error (); | ||
3857 | #ifdef F77_DUMMY_MAIN | ||
3858 | # ifdef __cplusplus | ||
3859 | extern "C" | ||
3860 | # endif | ||
3861 | int F77_DUMMY_MAIN() { return 1; } | ||
3862 | #endif | ||
3863 | int | ||
3864 | main () | ||
3865 | { | ||
3866 | t_error (); | ||
3867 | ; | ||
3868 | return 0; | ||
3869 | } | ||
3870 | _ACEOF | ||
3871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3873 | (eval $ac_link) 2>&5 | ||
3874 | ac_status=$? | ||
3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3876 | (exit $ac_status); } && | ||
3877 | { ac_try='test -s conftest$ac_exeext' | ||
3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3879 | (eval $ac_try) 2>&5 | ||
3880 | ac_status=$? | ||
3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3882 | (exit $ac_status); }; }; then | ||
3883 | ac_cv_lib_xnet_t_error=yes | ||
3884 | else | ||
3885 | echo "$as_me: failed program was:" >&5 | ||
3886 | cat conftest.$ac_ext >&5 | ||
3887 | ac_cv_lib_xnet_t_error=no | ||
3888 | fi | ||
3889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3890 | LIBS=$ac_check_lib_save_LIBS | ||
3891 | fi | ||
3892 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3893 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3894 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3895 | cat >>confdefs.h <<_ACEOF | ||
3896 | #define HAVE_LIBXNET 1 | ||
3897 | _ACEOF | ||
3898 | |||
3899 | LIBS="-lxnet $LIBS" | ||
3900 | |||
3901 | else | ||
3902 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
3903 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
3904 | { (exit 1); exit 1; }; } | ||
3905 | fi | ||
3906 | |||
3907 | disable_ptmx_check=yes | ||
3908 | ;; | ||
3909 | *-*-hpux10*) | ||
3910 | if test -z "$GCC"; then | ||
3911 | CFLAGS="$CFLAGS -Ae" | ||
3912 | fi | ||
3913 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
3914 | IPADDR_IN_DISPLAY=yes | ||
3915 | cat >>confdefs.h <<\_ACEOF | ||
3916 | #define USE_PIPES 1 | ||
3917 | _ACEOF | ||
3918 | |||
3919 | cat >>confdefs.h <<\_ACEOF | ||
3920 | #define LOGIN_NO_ENDOPT 1 | ||
3921 | _ACEOF | ||
3922 | |||
3923 | cat >>confdefs.h <<\_ACEOF | ||
3924 | #define LOGIN_NEEDS_UTMPX 1 | ||
3925 | _ACEOF | ||
3926 | |||
3927 | cat >>confdefs.h <<\_ACEOF | ||
3928 | #define DISABLE_SHADOW 1 | ||
3929 | _ACEOF | ||
3930 | |||
3931 | cat >>confdefs.h <<\_ACEOF | ||
3932 | #define DISABLE_UTMP 1 | ||
3933 | _ACEOF | ||
3934 | |||
3935 | cat >>confdefs.h <<\_ACEOF | ||
3936 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
3937 | _ACEOF | ||
3938 | |||
3939 | LIBS="$LIBS -lsec" | ||
3940 | |||
3941 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
3942 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
3943 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3945 | else | ||
3946 | ac_check_lib_save_LIBS=$LIBS | ||
3947 | LIBS="-lxnet $LIBS" | ||
3948 | cat >conftest.$ac_ext <<_ACEOF | ||
3949 | #line $LINENO "configure" | ||
3950 | #include "confdefs.h" | ||
3951 | |||
3952 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
3953 | #ifdef __cplusplus | ||
3954 | extern "C" | ||
3955 | #endif | ||
3956 | /* We use char because int might match the return type of a gcc2 | ||
3957 | builtin and then its argument prototype would still apply. */ | ||
3958 | char t_error (); | ||
3959 | #ifdef F77_DUMMY_MAIN | ||
3960 | # ifdef __cplusplus | ||
3961 | extern "C" | ||
3962 | # endif | ||
3963 | int F77_DUMMY_MAIN() { return 1; } | ||
3964 | #endif | ||
3965 | int | ||
3966 | main () | ||
3967 | { | ||
3968 | t_error (); | ||
3969 | ; | ||
3970 | return 0; | ||
3971 | } | ||
3972 | _ACEOF | ||
3973 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3975 | (eval $ac_link) 2>&5 | ||
3976 | ac_status=$? | ||
3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3978 | (exit $ac_status); } && | ||
3979 | { ac_try='test -s conftest$ac_exeext' | ||
3980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3981 | (eval $ac_try) 2>&5 | ||
3982 | ac_status=$? | ||
3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3984 | (exit $ac_status); }; }; then | ||
3985 | ac_cv_lib_xnet_t_error=yes | ||
3986 | else | ||
3987 | echo "$as_me: failed program was:" >&5 | ||
3988 | cat conftest.$ac_ext >&5 | ||
3989 | ac_cv_lib_xnet_t_error=no | ||
3990 | fi | ||
3991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
3992 | LIBS=$ac_check_lib_save_LIBS | ||
3993 | fi | ||
3994 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
3995 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
3996 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
3997 | cat >>confdefs.h <<_ACEOF | ||
3998 | #define HAVE_LIBXNET 1 | ||
3999 | _ACEOF | ||
4000 | |||
4001 | LIBS="-lxnet $LIBS" | ||
4002 | |||
4003 | else | ||
4004 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4005 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4006 | { (exit 1); exit 1; }; } | ||
4007 | fi | ||
4008 | |||
4009 | ;; | ||
4010 | *-*-hpux11*) | ||
4011 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
4012 | IPADDR_IN_DISPLAY=yes | ||
4013 | cat >>confdefs.h <<\_ACEOF | ||
4014 | #define PAM_SUN_CODEBASE 1 | ||
4015 | _ACEOF | ||
4016 | |||
4017 | cat >>confdefs.h <<\_ACEOF | ||
4018 | #define USE_PIPES 1 | ||
4019 | _ACEOF | ||
4020 | |||
4021 | cat >>confdefs.h <<\_ACEOF | ||
4022 | #define LOGIN_NO_ENDOPT 1 | ||
4023 | _ACEOF | ||
4024 | |||
4025 | cat >>confdefs.h <<\_ACEOF | ||
4026 | #define LOGIN_NEEDS_UTMPX 1 | ||
4027 | _ACEOF | ||
4028 | |||
4029 | cat >>confdefs.h <<\_ACEOF | ||
4030 | #define DISABLE_SHADOW 1 | ||
4031 | _ACEOF | ||
4032 | |||
4033 | cat >>confdefs.h <<\_ACEOF | ||
4034 | #define DISABLE_UTMP 1 | ||
4035 | _ACEOF | ||
4036 | |||
4037 | cat >>confdefs.h <<\_ACEOF | ||
4038 | #define SETPROCTITLE_STRATEGY PS_USE_PSTAT | ||
4039 | _ACEOF | ||
4040 | |||
4041 | LIBS="$LIBS -lsec" | ||
4042 | |||
4043 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
4044 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
4045 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4047 | else | ||
4048 | ac_check_lib_save_LIBS=$LIBS | ||
4049 | LIBS="-lxnet $LIBS" | ||
4050 | cat >conftest.$ac_ext <<_ACEOF | ||
4051 | #line $LINENO "configure" | ||
4052 | #include "confdefs.h" | ||
4053 | |||
4054 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4055 | #ifdef __cplusplus | ||
4056 | extern "C" | ||
4057 | #endif | ||
4058 | /* We use char because int might match the return type of a gcc2 | ||
4059 | builtin and then its argument prototype would still apply. */ | ||
4060 | char t_error (); | ||
4061 | #ifdef F77_DUMMY_MAIN | ||
4062 | # ifdef __cplusplus | ||
4063 | extern "C" | ||
4064 | # endif | ||
4065 | int F77_DUMMY_MAIN() { return 1; } | ||
4066 | #endif | ||
4067 | int | ||
4068 | main () | ||
4069 | { | ||
4070 | t_error (); | ||
4071 | ; | ||
4072 | return 0; | ||
4073 | } | ||
4074 | _ACEOF | ||
4075 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4077 | (eval $ac_link) 2>&5 | ||
4078 | ac_status=$? | ||
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4080 | (exit $ac_status); } && | ||
4081 | { ac_try='test -s conftest$ac_exeext' | ||
4082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4083 | (eval $ac_try) 2>&5 | ||
4084 | ac_status=$? | ||
4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4086 | (exit $ac_status); }; }; then | ||
4087 | ac_cv_lib_xnet_t_error=yes | ||
4088 | else | ||
4089 | echo "$as_me: failed program was:" >&5 | ||
4090 | cat conftest.$ac_ext >&5 | ||
4091 | ac_cv_lib_xnet_t_error=no | ||
4092 | fi | ||
4093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4094 | LIBS=$ac_check_lib_save_LIBS | ||
4095 | fi | ||
4096 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
4097 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
4098 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
4099 | cat >>confdefs.h <<_ACEOF | ||
4100 | #define HAVE_LIBXNET 1 | ||
4101 | _ACEOF | ||
4102 | |||
4103 | LIBS="-lxnet $LIBS" | ||
4104 | |||
4105 | else | ||
4106 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4107 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4108 | { (exit 1); exit 1; }; } | ||
4109 | fi | ||
4110 | |||
4111 | ;; | ||
4112 | *-*-irix5*) | ||
4113 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4114 | LDFLAGS="$LDFLAGS" | ||
4115 | PATH="$PATH:/usr/etc" | ||
4116 | cat >>confdefs.h <<\_ACEOF | ||
4117 | #define BROKEN_INET_NTOA 1 | ||
4118 | _ACEOF | ||
4119 | |||
4120 | cat >>confdefs.h <<\_ACEOF | ||
4121 | #define WITH_ABBREV_NO_TTY 1 | ||
4122 | _ACEOF | ||
4123 | |||
4124 | ;; | ||
4125 | *-*-irix6*) | ||
4126 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4127 | LDFLAGS="$LDFLAGS" | ||
4128 | PATH="$PATH:/usr/etc" | ||
4129 | cat >>confdefs.h <<\_ACEOF | ||
4130 | #define WITH_IRIX_ARRAY 1 | ||
4131 | _ACEOF | ||
4132 | |||
4133 | cat >>confdefs.h <<\_ACEOF | ||
4134 | #define WITH_IRIX_PROJECT 1 | ||
4135 | _ACEOF | ||
4136 | |||
4137 | cat >>confdefs.h <<\_ACEOF | ||
4138 | #define WITH_IRIX_AUDIT 1 | ||
4139 | _ACEOF | ||
4140 | |||
4141 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
4142 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
4143 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
4144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4145 | else | ||
4146 | cat >conftest.$ac_ext <<_ACEOF | ||
4147 | #line $LINENO "configure" | ||
4148 | #include "confdefs.h" | ||
4149 | /* System header to define __stub macros and hopefully few prototypes, | ||
4150 | which can conflict with char jlimit_startjob (); below. */ | ||
4151 | #include <assert.h> | ||
4152 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4153 | #ifdef __cplusplus | ||
4154 | extern "C" | ||
4155 | #endif | ||
4156 | /* We use char because int might match the return type of a gcc2 | ||
4157 | builtin and then its argument prototype would still apply. */ | ||
4158 | char jlimit_startjob (); | ||
4159 | char (*f) (); | ||
4160 | |||
4161 | #ifdef F77_DUMMY_MAIN | ||
4162 | # ifdef __cplusplus | ||
4163 | extern "C" | ||
4164 | # endif | ||
4165 | int F77_DUMMY_MAIN() { return 1; } | ||
4166 | #endif | ||
4167 | int | ||
4168 | main () | ||
4169 | { | ||
4170 | /* The GNU C library defines this for functions which it implements | ||
4171 | to always fail with ENOSYS. Some functions are actually named | ||
4172 | something starting with __ and the normal name is an alias. */ | ||
4173 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
4174 | choke me | ||
4175 | #else | ||
4176 | f = jlimit_startjob; | ||
4177 | #endif | ||
4178 | |||
4179 | ; | ||
4180 | return 0; | ||
4181 | } | ||
4182 | _ACEOF | ||
4183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4185 | (eval $ac_link) 2>&5 | ||
4186 | ac_status=$? | ||
4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4188 | (exit $ac_status); } && | ||
4189 | { ac_try='test -s conftest$ac_exeext' | ||
4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4191 | (eval $ac_try) 2>&5 | ||
4192 | ac_status=$? | ||
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4194 | (exit $ac_status); }; }; then | ||
4195 | ac_cv_func_jlimit_startjob=yes | ||
4196 | else | ||
4197 | echo "$as_me: failed program was:" >&5 | ||
4198 | cat conftest.$ac_ext >&5 | ||
4199 | ac_cv_func_jlimit_startjob=no | ||
4200 | fi | ||
4201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4202 | fi | ||
4203 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
4204 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
4205 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
4206 | cat >>confdefs.h <<\_ACEOF | ||
4207 | #define WITH_IRIX_JOBS 1 | ||
4208 | _ACEOF | ||
4209 | |||
4210 | fi | ||
4211 | |||
4212 | cat >>confdefs.h <<\_ACEOF | ||
4213 | #define BROKEN_INET_NTOA 1 | ||
4214 | _ACEOF | ||
4215 | |||
4216 | cat >>confdefs.h <<\_ACEOF | ||
4217 | #define WITH_ABBREV_NO_TTY 1 | ||
4218 | _ACEOF | ||
4219 | |||
4220 | ;; | ||
4221 | *-*-linux*) | ||
4222 | no_dev_ptmx=1 | ||
4223 | check_for_libcrypt_later=1 | ||
4224 | cat >>confdefs.h <<\_ACEOF | ||
4225 | #define DONT_TRY_OTHER_AF 1 | ||
4226 | _ACEOF | ||
4227 | |||
4228 | cat >>confdefs.h <<\_ACEOF | ||
4229 | #define PAM_TTY_KLUDGE 1 | ||
4230 | _ACEOF | ||
4231 | |||
4232 | cat >>confdefs.h <<\_ACEOF | ||
4233 | #define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV | ||
4234 | _ACEOF | ||
4235 | |||
4236 | cat >>confdefs.h <<\_ACEOF | ||
4237 | #define SETPROCTITLE_PS_PADDING '\0' | ||
4238 | _ACEOF | ||
4239 | |||
4240 | inet6_default_4in6=yes | ||
4241 | ;; | ||
4242 | mips-sony-bsd|mips-sony-newsos4) | ||
4243 | cat >>confdefs.h <<\_ACEOF | ||
4244 | #define HAVE_NEWS4 1 | ||
4245 | _ACEOF | ||
4246 | |||
4247 | SONY=1 | ||
4248 | ;; | ||
4249 | *-*-netbsd*) | ||
4250 | check_for_libcrypt_before=1 | ||
4251 | need_dash_r=1 | ||
4252 | ;; | ||
4253 | *-*-freebsd*) | ||
4254 | check_for_libcrypt_later=1 | ||
4255 | ;; | ||
4256 | *-next-*) | ||
4257 | conf_lastlog_location="/usr/adm/lastlog" | ||
4258 | conf_utmp_location=/etc/utmp | ||
4259 | conf_wtmp_location=/usr/adm/wtmp | ||
4260 | MAIL=/usr/spool/mail | ||
4261 | cat >>confdefs.h <<\_ACEOF | ||
4262 | #define HAVE_NEXT 1 | ||
4263 | _ACEOF | ||
4264 | |||
4265 | cat >>confdefs.h <<\_ACEOF | ||
4266 | #define BROKEN_REALPATH 1 | ||
4267 | _ACEOF | ||
4268 | |||
4269 | cat >>confdefs.h <<\_ACEOF | ||
4270 | #define USE_PIPES 1 | ||
4271 | _ACEOF | ||
4272 | |||
4273 | cat >>confdefs.h <<\_ACEOF | ||
4274 | #define BROKEN_SAVED_UIDS 1 | ||
4275 | _ACEOF | ||
4276 | |||
4277 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4278 | CFLAGS="$CFLAGS" | ||
4279 | ;; | ||
4280 | *-*-solaris*) | ||
4281 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4282 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
4283 | need_dash_r=1 | ||
4284 | cat >>confdefs.h <<\_ACEOF | ||
4285 | #define PAM_SUN_CODEBASE 1 | ||
4286 | _ACEOF | ||
4287 | |||
4288 | cat >>confdefs.h <<\_ACEOF | ||
4289 | #define LOGIN_NEEDS_UTMPX 1 | ||
4290 | _ACEOF | ||
4291 | |||
4292 | cat >>confdefs.h <<\_ACEOF | ||
4293 | #define LOGIN_NEEDS_TERM 1 | ||
4294 | _ACEOF | ||
4295 | |||
4296 | cat >>confdefs.h <<\_ACEOF | ||
4297 | #define PAM_TTY_KLUDGE 1 | ||
4298 | _ACEOF | ||
4299 | |||
4300 | cat >>confdefs.h <<\_ACEOF | ||
4301 | #define STREAMS_PUSH_ACQUIRES_CTTY 1 | ||
4302 | _ACEOF | ||
4303 | |||
4304 | # hardwire lastlog location (can't detect it on some versions) | ||
4305 | conf_lastlog_location="/var/adm/lastlog" | ||
4306 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
4307 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
4308 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
4309 | if test "$sol2ver" -ge 8; then | ||
4310 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4311 | echo "${ECHO_T}yes" >&6 | ||
4312 | cat >>confdefs.h <<\_ACEOF | ||
4313 | #define DISABLE_UTMP 1 | ||
4314 | _ACEOF | ||
4315 | |||
4316 | cat >>confdefs.h <<\_ACEOF | ||
4317 | #define DISABLE_WTMP 1 | ||
4318 | _ACEOF | ||
4319 | |||
4320 | else | ||
4321 | echo "$as_me:$LINENO: result: no" >&5 | ||
4322 | echo "${ECHO_T}no" >&6 | ||
4323 | fi | ||
4324 | ;; | ||
4325 | *-*-sunos4*) | ||
4326 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
4327 | |||
4328 | for ac_func in getpwanam | ||
4329 | do | ||
4330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4331 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4333 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4335 | else | ||
4336 | cat >conftest.$ac_ext <<_ACEOF | ||
4337 | #line $LINENO "configure" | ||
4338 | #include "confdefs.h" | ||
4339 | /* System header to define __stub macros and hopefully few prototypes, | ||
4340 | which can conflict with char $ac_func (); below. */ | ||
4341 | #include <assert.h> | ||
4342 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4343 | #ifdef __cplusplus | ||
4344 | extern "C" | ||
4345 | #endif | ||
4346 | /* We use char because int might match the return type of a gcc2 | ||
4347 | builtin and then its argument prototype would still apply. */ | ||
4348 | char $ac_func (); | ||
4349 | char (*f) (); | ||
4350 | |||
4351 | #ifdef F77_DUMMY_MAIN | ||
4352 | # ifdef __cplusplus | ||
4353 | extern "C" | ||
4354 | # endif | ||
4355 | int F77_DUMMY_MAIN() { return 1; } | ||
4356 | #endif | ||
4357 | int | ||
4358 | main () | ||
4359 | { | ||
4360 | /* The GNU C library defines this for functions which it implements | ||
4361 | to always fail with ENOSYS. Some functions are actually named | ||
4362 | something starting with __ and the normal name is an alias. */ | ||
4363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4364 | choke me | ||
4365 | #else | ||
4366 | f = $ac_func; | ||
4367 | #endif | ||
4368 | |||
4369 | ; | ||
4370 | return 0; | ||
4371 | } | ||
4372 | _ACEOF | ||
4373 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4375 | (eval $ac_link) 2>&5 | ||
4376 | ac_status=$? | ||
4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4378 | (exit $ac_status); } && | ||
4379 | { ac_try='test -s conftest$ac_exeext' | ||
4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4381 | (eval $ac_try) 2>&5 | ||
4382 | ac_status=$? | ||
4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4384 | (exit $ac_status); }; }; then | ||
4385 | eval "$as_ac_var=yes" | ||
4386 | else | ||
4387 | echo "$as_me: failed program was:" >&5 | ||
4388 | cat conftest.$ac_ext >&5 | ||
4389 | eval "$as_ac_var=no" | ||
4390 | fi | ||
4391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4392 | fi | ||
4393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4395 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4396 | cat >>confdefs.h <<_ACEOF | ||
4397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4398 | _ACEOF | ||
4399 | |||
4400 | fi | ||
4401 | done | ||
4402 | |||
4403 | cat >>confdefs.h <<\_ACEOF | ||
4404 | #define PAM_SUN_CODEBASE 1 | ||
4405 | _ACEOF | ||
4406 | |||
4407 | conf_utmp_location=/etc/utmp | ||
4408 | conf_wtmp_location=/var/adm/wtmp | ||
4409 | conf_lastlog_location=/var/adm/lastlog | ||
4410 | cat >>confdefs.h <<\_ACEOF | ||
4411 | #define USE_PIPES 1 | ||
4412 | _ACEOF | ||
4413 | |||
4414 | ;; | ||
4415 | *-ncr-sysv*) | ||
4416 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4417 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4418 | LIBS="$LIBS -lc89" | ||
4419 | cat >>confdefs.h <<\_ACEOF | ||
4420 | #define USE_PIPES 1 | ||
4421 | _ACEOF | ||
4422 | |||
4423 | ;; | ||
4424 | *-sni-sysv*) | ||
4425 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4426 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
4427 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4428 | IPADDR_IN_DISPLAY=yes | ||
4429 | cat >>confdefs.h <<\_ACEOF | ||
4430 | #define USE_PIPES 1 | ||
4431 | _ACEOF | ||
4432 | |||
4433 | cat >>confdefs.h <<\_ACEOF | ||
4434 | #define IP_TOS_IS_BROKEN 1 | ||
4435 | _ACEOF | ||
4436 | |||
4437 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
4438 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
4439 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
4440 | ;; | ||
4441 | *-*-sysv4.2*) | ||
4442 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4443 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4444 | cat >>confdefs.h <<\_ACEOF | ||
4445 | #define USE_PIPES 1 | ||
4446 | _ACEOF | ||
4447 | |||
4448 | ;; | ||
4449 | *-*-sysv5*) | ||
4450 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4451 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4452 | cat >>confdefs.h <<\_ACEOF | ||
4453 | #define USE_PIPES 1 | ||
4454 | _ACEOF | ||
4455 | |||
4456 | ;; | ||
4457 | *-*-sysv*) | ||
4458 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4459 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4460 | ;; | ||
4461 | *-*-sco3.2v4*) | ||
4462 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
4463 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4464 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | ||
4465 | RANLIB=true | ||
4466 | no_dev_ptmx=1 | ||
4467 | cat >>confdefs.h <<\_ACEOF | ||
4468 | #define BROKEN_SYS_TERMIO_H 1 | ||
4469 | _ACEOF | ||
4470 | |||
4471 | cat >>confdefs.h <<\_ACEOF | ||
4472 | #define USE_PIPES 1 | ||
4473 | _ACEOF | ||
4474 | |||
4475 | cat >>confdefs.h <<\_ACEOF | ||
4476 | #define HAVE_SECUREWARE 1 | ||
4477 | _ACEOF | ||
4478 | |||
4479 | cat >>confdefs.h <<\_ACEOF | ||
4480 | #define DISABLE_SHADOW 1 | ||
4481 | _ACEOF | ||
4482 | |||
4483 | cat >>confdefs.h <<\_ACEOF | ||
4484 | #define BROKEN_SAVED_UIDS 1 | ||
4485 | _ACEOF | ||
4486 | |||
4487 | |||
4488 | |||
4489 | for ac_func in getluid setluid | ||
4490 | do | ||
4491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4496 | else | ||
4497 | cat >conftest.$ac_ext <<_ACEOF | ||
4498 | #line $LINENO "configure" | ||
4499 | #include "confdefs.h" | ||
4500 | /* System header to define __stub macros and hopefully few prototypes, | ||
4501 | which can conflict with char $ac_func (); below. */ | ||
4502 | #include <assert.h> | ||
4503 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4504 | #ifdef __cplusplus | ||
4505 | extern "C" | ||
4506 | #endif | ||
4507 | /* We use char because int might match the return type of a gcc2 | ||
4508 | builtin and then its argument prototype would still apply. */ | ||
4509 | char $ac_func (); | ||
4510 | char (*f) (); | ||
4511 | |||
4512 | #ifdef F77_DUMMY_MAIN | ||
4513 | # ifdef __cplusplus | ||
4514 | extern "C" | ||
4515 | # endif | ||
4516 | int F77_DUMMY_MAIN() { return 1; } | ||
4517 | #endif | ||
4518 | int | ||
4519 | main () | ||
4520 | { | ||
4521 | /* The GNU C library defines this for functions which it implements | ||
4522 | to always fail with ENOSYS. Some functions are actually named | ||
4523 | something starting with __ and the normal name is an alias. */ | ||
4524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4525 | choke me | ||
4526 | #else | ||
4527 | f = $ac_func; | ||
4528 | #endif | ||
4529 | |||
4530 | ; | ||
4531 | return 0; | ||
4532 | } | ||
4533 | _ACEOF | ||
4534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4536 | (eval $ac_link) 2>&5 | ||
4537 | ac_status=$? | ||
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4539 | (exit $ac_status); } && | ||
4540 | { ac_try='test -s conftest$ac_exeext' | ||
4541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4542 | (eval $ac_try) 2>&5 | ||
4543 | ac_status=$? | ||
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4545 | (exit $ac_status); }; }; then | ||
4546 | eval "$as_ac_var=yes" | ||
4547 | else | ||
4548 | echo "$as_me: failed program was:" >&5 | ||
4549 | cat conftest.$ac_ext >&5 | ||
4550 | eval "$as_ac_var=no" | ||
4551 | fi | ||
4552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4553 | fi | ||
4554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4557 | cat >>confdefs.h <<_ACEOF | ||
4558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4559 | _ACEOF | ||
4560 | |||
4561 | fi | ||
4562 | done | ||
4563 | |||
4564 | MANTYPE=man | ||
4565 | do_sco3_extra_lib_check=yes | ||
4566 | ;; | ||
4567 | *-*-sco3.2v5*) | ||
4568 | if test -z "$GCC"; then | ||
4569 | CFLAGS="$CFLAGS -belf" | ||
4570 | fi | ||
4571 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
4572 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
4573 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
4574 | no_dev_ptmx=1 | ||
4575 | cat >>confdefs.h <<\_ACEOF | ||
4576 | #define USE_PIPES 1 | ||
4577 | _ACEOF | ||
4578 | |||
4579 | cat >>confdefs.h <<\_ACEOF | ||
4580 | #define HAVE_SECUREWARE 1 | ||
4581 | _ACEOF | ||
4582 | |||
4583 | cat >>confdefs.h <<\_ACEOF | ||
4584 | #define DISABLE_SHADOW 1 | ||
4585 | _ACEOF | ||
4586 | |||
4587 | cat >>confdefs.h <<\_ACEOF | ||
4588 | #define DISABLE_FD_PASSING 1 | ||
4589 | _ACEOF | ||
4590 | |||
4591 | |||
4592 | |||
4593 | for ac_func in getluid setluid | ||
4594 | do | ||
4595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4596 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4598 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4600 | else | ||
4601 | cat >conftest.$ac_ext <<_ACEOF | ||
4602 | #line $LINENO "configure" | ||
4603 | #include "confdefs.h" | ||
4604 | /* System header to define __stub macros and hopefully few prototypes, | ||
4605 | which can conflict with char $ac_func (); below. */ | ||
4606 | #include <assert.h> | ||
4607 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4608 | #ifdef __cplusplus | ||
4609 | extern "C" | ||
4610 | #endif | ||
4611 | /* We use char because int might match the return type of a gcc2 | ||
4612 | builtin and then its argument prototype would still apply. */ | ||
4613 | char $ac_func (); | ||
4614 | char (*f) (); | ||
4615 | |||
4616 | #ifdef F77_DUMMY_MAIN | ||
4617 | # ifdef __cplusplus | ||
4618 | extern "C" | ||
4619 | # endif | ||
4620 | int F77_DUMMY_MAIN() { return 1; } | ||
4621 | #endif | ||
4622 | int | ||
4623 | main () | ||
4624 | { | ||
4625 | /* The GNU C library defines this for functions which it implements | ||
4626 | to always fail with ENOSYS. Some functions are actually named | ||
4627 | something starting with __ and the normal name is an alias. */ | ||
4628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4629 | choke me | ||
4630 | #else | ||
4631 | f = $ac_func; | ||
4632 | #endif | ||
4633 | |||
4634 | ; | ||
4635 | return 0; | ||
4636 | } | ||
4637 | _ACEOF | ||
4638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4640 | (eval $ac_link) 2>&5 | ||
4641 | ac_status=$? | ||
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4643 | (exit $ac_status); } && | ||
4644 | { ac_try='test -s conftest$ac_exeext' | ||
4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4646 | (eval $ac_try) 2>&5 | ||
4647 | ac_status=$? | ||
4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4649 | (exit $ac_status); }; }; then | ||
4650 | eval "$as_ac_var=yes" | ||
4651 | else | ||
4652 | echo "$as_me: failed program was:" >&5 | ||
4653 | cat conftest.$ac_ext >&5 | ||
4654 | eval "$as_ac_var=no" | ||
4655 | fi | ||
4656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
4657 | fi | ||
4658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4661 | cat >>confdefs.h <<_ACEOF | ||
4662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4663 | _ACEOF | ||
4664 | |||
4665 | fi | ||
4666 | done | ||
4667 | |||
4668 | MANTYPE=man | ||
4669 | ;; | ||
4670 | *-*-unicosmk*) | ||
4671 | cat >>confdefs.h <<\_ACEOF | ||
4672 | #define USE_PIPES 1 | ||
4673 | _ACEOF | ||
4674 | |||
4675 | cat >>confdefs.h <<\_ACEOF | ||
4676 | #define DISABLE_FD_PASSING 1 | ||
4677 | _ACEOF | ||
4678 | |||
4679 | LDFLAGS="$LDFLAGS" | ||
4680 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4681 | MANTYPE=cat | ||
4682 | ;; | ||
4683 | *-*-unicos*) | ||
4684 | cat >>confdefs.h <<\_ACEOF | ||
4685 | #define USE_PIPES 1 | ||
4686 | _ACEOF | ||
4687 | |||
4688 | cat >>confdefs.h <<\_ACEOF | ||
4689 | #define DISABLE_FD_PASSING 1 | ||
4690 | _ACEOF | ||
4691 | |||
4692 | cat >>confdefs.h <<\_ACEOF | ||
4693 | #define NO_SSH_LASTLOG 1 | ||
4694 | _ACEOF | ||
4695 | |||
4696 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
4697 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
4698 | MANTYPE=cat | ||
4699 | ;; | ||
4700 | *-dec-osf*) | ||
4701 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
4702 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
4703 | no_osfsia="" | ||
4704 | |||
4705 | # Check whether --with-osfsia or --without-osfsia was given. | ||
4706 | if test "${with_osfsia+set}" = set; then | ||
4707 | withval="$with_osfsia" | ||
4708 | |||
4709 | if test "x$withval" = "xno" ; then | ||
4710 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
4711 | echo "${ECHO_T}disabled" >&6 | ||
4712 | no_osfsia=1 | ||
4713 | fi | ||
4714 | |||
4715 | fi; | ||
4716 | if test -z "$no_osfsia" ; then | ||
4717 | if test -f /etc/sia/matrix.conf; then | ||
4718 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4719 | echo "${ECHO_T}yes" >&6 | ||
4720 | cat >>confdefs.h <<\_ACEOF | ||
4721 | #define HAVE_OSF_SIA 1 | ||
4722 | _ACEOF | ||
4723 | |||
4724 | cat >>confdefs.h <<\_ACEOF | ||
4725 | #define DISABLE_LOGIN 1 | ||
4726 | _ACEOF | ||
4727 | |||
4728 | cat >>confdefs.h <<\_ACEOF | ||
4729 | #define DISABLE_FD_PASSING 1 | ||
4730 | _ACEOF | ||
4731 | |||
4732 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
4733 | else | ||
4734 | echo "$as_me:$LINENO: result: no" >&5 | ||
4735 | echo "${ECHO_T}no" >&6 | ||
4736 | fi | ||
4737 | fi | ||
4738 | cat >>confdefs.h <<\_ACEOF | ||
4739 | #define DISABLE_FD_PASSING 1 | ||
4740 | _ACEOF | ||
4741 | |||
4742 | ;; | ||
4743 | |||
4744 | *-*-nto-qnx) | ||
4745 | cat >>confdefs.h <<\_ACEOF | ||
4746 | #define USE_PIPES 1 | ||
4747 | _ACEOF | ||
4748 | |||
4749 | cat >>confdefs.h <<\_ACEOF | ||
4750 | #define NO_X11_UNIX_SOCKETS 1 | ||
4751 | _ACEOF | ||
4752 | |||
4753 | cat >>confdefs.h <<\_ACEOF | ||
4754 | #define MISSING_NFDBITS 1 | ||
4755 | _ACEOF | ||
4756 | |||
4757 | cat >>confdefs.h <<\_ACEOF | ||
4758 | #define MISSING_HOWMANY 1 | ||
4759 | _ACEOF | ||
4760 | |||
4761 | cat >>confdefs.h <<\_ACEOF | ||
4762 | #define MISSING_FD_MASK 1 | ||
4763 | _ACEOF | ||
4764 | |||
4765 | ;; | ||
4766 | esac | ||
4767 | |||
4768 | # Allow user to specify flags | ||
4769 | |||
4770 | # Check whether --with-cflags or --without-cflags was given. | ||
4771 | if test "${with_cflags+set}" = set; then | ||
4772 | withval="$with_cflags" | ||
4773 | |||
4774 | if test "x$withval" != "xno" ; then | ||
4775 | CFLAGS="$CFLAGS $withval" | ||
4776 | fi | ||
4777 | |||
4778 | |||
4779 | fi; | ||
4780 | |||
4781 | # Check whether --with-cppflags or --without-cppflags was given. | ||
4782 | if test "${with_cppflags+set}" = set; then | ||
4783 | withval="$with_cppflags" | ||
4784 | |||
4785 | if test "x$withval" != "xno"; then | ||
4786 | CPPFLAGS="$CPPFLAGS $withval" | ||
4787 | fi | ||
4788 | |||
4789 | |||
4790 | fi; | ||
4791 | |||
4792 | # Check whether --with-ldflags or --without-ldflags was given. | ||
4793 | if test "${with_ldflags+set}" = set; then | ||
4794 | withval="$with_ldflags" | ||
4795 | |||
4796 | if test "x$withval" != "xno" ; then | ||
4797 | LDFLAGS="$LDFLAGS $withval" | ||
4798 | fi | ||
4799 | |||
4800 | |||
4801 | fi; | ||
4802 | |||
4803 | # Check whether --with-libs or --without-libs was given. | ||
4804 | if test "${with_libs+set}" = set; then | ||
4805 | withval="$with_libs" | ||
4806 | |||
4807 | if test "x$withval" != "xno" ; then | ||
4808 | LIBS="$LIBS $withval" | ||
4809 | fi | ||
4810 | |||
4811 | |||
4812 | fi; | ||
4813 | |||
4814 | # Checks for header files. | ||
4815 | |||
4816 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4817 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4818 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4820 | else | ||
4821 | cat >conftest.$ac_ext <<_ACEOF | ||
4822 | #line $LINENO "configure" | ||
4823 | #include "confdefs.h" | ||
4824 | #include <stdlib.h> | ||
4825 | #include <stdarg.h> | ||
4826 | #include <string.h> | ||
4827 | #include <float.h> | ||
4828 | |||
4829 | _ACEOF | ||
4830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4832 | ac_status=$? | ||
4833 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
4834 | rm -f conftest.er1 | ||
4835 | cat conftest.err >&5 | ||
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4837 | (exit $ac_status); } >/dev/null; then | ||
4838 | if test -s conftest.err; then | ||
4839 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4840 | else | ||
4841 | ac_cpp_err= | ||
4842 | fi | ||
4843 | else | ||
4844 | ac_cpp_err=yes | ||
4845 | fi | ||
4846 | if test -z "$ac_cpp_err"; then | ||
4847 | ac_cv_header_stdc=yes | ||
4848 | else | ||
4849 | echo "$as_me: failed program was:" >&5 | ||
4850 | cat conftest.$ac_ext >&5 | ||
4851 | ac_cv_header_stdc=no | ||
4852 | fi | ||
4853 | rm -f conftest.err conftest.$ac_ext | ||
4854 | |||
4855 | if test $ac_cv_header_stdc = yes; then | ||
4856 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4857 | cat >conftest.$ac_ext <<_ACEOF | ||
4858 | #line $LINENO "configure" | ||
4859 | #include "confdefs.h" | ||
4860 | #include <string.h> | ||
4861 | |||
4862 | _ACEOF | ||
4863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4864 | egrep "memchr" >/dev/null 2>&1; then | ||
4865 | : | ||
4866 | else | ||
4867 | ac_cv_header_stdc=no | ||
4868 | fi | ||
4869 | rm -f conftest* | ||
4870 | |||
4871 | fi | ||
4872 | |||
4873 | if test $ac_cv_header_stdc = yes; then | ||
4874 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4875 | cat >conftest.$ac_ext <<_ACEOF | ||
4876 | #line $LINENO "configure" | ||
4877 | #include "confdefs.h" | ||
4878 | #include <stdlib.h> | ||
4879 | |||
4880 | _ACEOF | ||
4881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4882 | egrep "free" >/dev/null 2>&1; then | ||
4883 | : | ||
4884 | else | ||
4885 | ac_cv_header_stdc=no | ||
4886 | fi | ||
4887 | rm -f conftest* | ||
4888 | |||
4889 | fi | ||
4890 | |||
4891 | if test $ac_cv_header_stdc = yes; then | ||
4892 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4893 | if test "$cross_compiling" = yes; then | ||
4894 | : | ||
4895 | else | ||
4896 | cat >conftest.$ac_ext <<_ACEOF | ||
4897 | #line $LINENO "configure" | ||
4898 | #include "confdefs.h" | ||
4899 | #include <ctype.h> | ||
4900 | #if ((' ' & 0x0FF) == 0x020) | ||
4901 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4902 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4903 | #else | ||
4904 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | ||
4905 | || ('j' <= (c) && (c) <= 'r') \ | ||
4906 | || ('s' <= (c) && (c) <= 'z')) | ||
4907 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4908 | #endif | ||
4909 | |||
4910 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4911 | int | ||
4912 | main () | ||
4913 | { | ||
4914 | int i; | ||
4915 | for (i = 0; i < 256; i++) | ||
4916 | if (XOR (islower (i), ISLOWER (i)) | ||
4917 | || toupper (i) != TOUPPER (i)) | ||
4918 | exit(2); | ||
4919 | exit (0); | ||
4920 | } | ||
4921 | _ACEOF | ||
4922 | rm -f conftest$ac_exeext | ||
4923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4924 | (eval $ac_link) 2>&5 | ||
4925 | ac_status=$? | ||
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4929 | (eval $ac_try) 2>&5 | ||
4930 | ac_status=$? | ||
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4932 | (exit $ac_status); }; }; then | ||
4933 | : | ||
4934 | else | ||
4935 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4936 | echo "$as_me: failed program was:" >&5 | ||
4937 | cat conftest.$ac_ext >&5 | ||
4938 | ( exit $ac_status ) | ||
4939 | ac_cv_header_stdc=no | ||
4940 | fi | ||
4941 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4942 | fi | ||
4943 | fi | ||
4944 | fi | ||
4945 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4946 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4947 | if test $ac_cv_header_stdc = yes; then | ||
4948 | |||
4949 | cat >>confdefs.h <<\_ACEOF | ||
4950 | #define STDC_HEADERS 1 | ||
4951 | _ACEOF | ||
4952 | |||
4953 | fi | ||
4954 | |||
4955 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4956 | |||
4957 | |||
4958 | |||
4959 | |||
4960 | |||
4961 | |||
4962 | |||
4963 | |||
4964 | |||
4965 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4966 | inttypes.h stdint.h unistd.h | ||
4967 | do | ||
4968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4973 | else | ||
4974 | cat >conftest.$ac_ext <<_ACEOF | ||
4975 | #line $LINENO "configure" | ||
4976 | #include "confdefs.h" | ||
4977 | $ac_includes_default | ||
4978 | |||
4979 | #include <$ac_header> | ||
4980 | _ACEOF | ||
4981 | rm -f conftest.$ac_objext | ||
4982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4983 | (eval $ac_compile) 2>&5 | ||
4984 | ac_status=$? | ||
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4986 | (exit $ac_status); } && | ||
4987 | { ac_try='test -s conftest.$ac_objext' | ||
4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4989 | (eval $ac_try) 2>&5 | ||
4990 | ac_status=$? | ||
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4992 | (exit $ac_status); }; }; then | ||
4993 | eval "$as_ac_Header=yes" | ||
4994 | else | ||
4995 | echo "$as_me: failed program was:" >&5 | ||
4996 | cat conftest.$ac_ext >&5 | ||
4997 | eval "$as_ac_Header=no" | ||
4998 | fi | ||
4999 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5000 | fi | ||
5001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5004 | cat >>confdefs.h <<_ACEOF | ||
5005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5006 | _ACEOF | ||
5007 | |||
5008 | fi | ||
5009 | |||
5010 | done | ||
5011 | |||
5012 | |||
5013 | |||
5014 | |||
5015 | |||
5016 | |||
5017 | |||
5018 | |||
5019 | |||
5020 | |||
5021 | |||
5022 | |||
5023 | |||
5024 | |||
5025 | |||
5026 | |||
5027 | |||
5028 | |||
5029 | |||
5030 | |||
5031 | |||
5032 | |||
5033 | |||
5034 | |||
5035 | |||
5036 | |||
5037 | |||
5038 | |||
5039 | |||
5040 | |||
5041 | |||
5042 | |||
5043 | |||
5044 | |||
5045 | |||
5046 | |||
5047 | |||
5048 | |||
5049 | |||
5050 | |||
5051 | |||
5052 | |||
5053 | |||
5054 | |||
5055 | |||
5056 | |||
5057 | |||
5058 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | ||
5059 | getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \ | ||
5060 | login_cap.h maillock.h netdb.h netgroup.h \ | ||
5061 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | ||
5062 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
5063 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | ||
5064 | sys/mman.h sys/pstat.h sys/select.h sys/stat.h \ | ||
5065 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \ | ||
5066 | sys/un.h time.h tmpdir.h ttyent.h usersec.h \ | ||
5067 | util.h utime.h utmp.h utmpx.h | ||
5068 | do | ||
5069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5075 | fi | ||
5076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5078 | else | ||
5079 | # Is the header compilable? | ||
5080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5082 | cat >conftest.$ac_ext <<_ACEOF | ||
5083 | #line $LINENO "configure" | ||
5084 | #include "confdefs.h" | ||
5085 | $ac_includes_default | ||
5086 | #include <$ac_header> | ||
5087 | _ACEOF | ||
5088 | rm -f conftest.$ac_objext | ||
5089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5090 | (eval $ac_compile) 2>&5 | ||
5091 | ac_status=$? | ||
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5093 | (exit $ac_status); } && | ||
5094 | { ac_try='test -s conftest.$ac_objext' | ||
5095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5096 | (eval $ac_try) 2>&5 | ||
5097 | ac_status=$? | ||
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5099 | (exit $ac_status); }; }; then | ||
5100 | ac_header_compiler=yes | ||
5101 | else | ||
5102 | echo "$as_me: failed program was:" >&5 | ||
5103 | cat conftest.$ac_ext >&5 | ||
5104 | ac_header_compiler=no | ||
5105 | fi | ||
5106 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
5107 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5108 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5109 | |||
5110 | # Is the header present? | ||
5111 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
5113 | cat >conftest.$ac_ext <<_ACEOF | ||
5114 | #line $LINENO "configure" | ||
5115 | #include "confdefs.h" | ||
5116 | #include <$ac_header> | ||
5117 | _ACEOF | ||
5118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5120 | ac_status=$? | ||
5121 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
5122 | rm -f conftest.er1 | ||
5123 | cat conftest.err >&5 | ||
5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5125 | (exit $ac_status); } >/dev/null; then | ||
5126 | if test -s conftest.err; then | ||
5127 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5128 | else | ||
5129 | ac_cpp_err= | ||
5130 | fi | ||
5131 | else | ||
5132 | ac_cpp_err=yes | ||
5133 | fi | ||
5134 | if test -z "$ac_cpp_err"; then | ||
5135 | ac_header_preproc=yes | ||
5136 | else | ||
5137 | echo "$as_me: failed program was:" >&5 | ||
5138 | cat conftest.$ac_ext >&5 | ||
5139 | ac_header_preproc=no | ||
5140 | fi | ||
5141 | rm -f conftest.err conftest.$ac_ext | ||
5142 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5143 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
5144 | |||
5145 | # So? What about this header? | ||
5146 | case $ac_header_compiler:$ac_header_preproc in | ||
5147 | yes:no ) | ||
5148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5152 | no:yes ) | ||
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
5159 | esac | ||
5160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5164 | else | ||
5165 | eval "$as_ac_Header=$ac_header_preproc" | ||
5166 | fi | ||
5167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5169 | |||
5170 | fi | ||
5171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5172 | cat >>confdefs.h <<_ACEOF | ||
5173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5174 | _ACEOF | ||
5175 | |||
5176 | fi | ||
5177 | |||
5178 | done | ||
5179 | |||
5180 | |||
5181 | # Checks for libraries. | ||
5182 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
5183 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
5184 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5186 | else | ||
5187 | cat >conftest.$ac_ext <<_ACEOF | ||
5188 | #line $LINENO "configure" | ||
5189 | #include "confdefs.h" | ||
5190 | /* System header to define __stub macros and hopefully few prototypes, | ||
5191 | which can conflict with char yp_match (); below. */ | ||
5192 | #include <assert.h> | ||
5193 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5194 | #ifdef __cplusplus | ||
5195 | extern "C" | ||
5196 | #endif | ||
5197 | /* We use char because int might match the return type of a gcc2 | ||
5198 | builtin and then its argument prototype would still apply. */ | ||
5199 | char yp_match (); | ||
5200 | char (*f) (); | ||
5201 | |||
5202 | #ifdef F77_DUMMY_MAIN | ||
5203 | # ifdef __cplusplus | ||
5204 | extern "C" | ||
5205 | # endif | ||
5206 | int F77_DUMMY_MAIN() { return 1; } | ||
5207 | #endif | ||
5208 | int | ||
5209 | main () | ||
5210 | { | ||
5211 | /* The GNU C library defines this for functions which it implements | ||
5212 | to always fail with ENOSYS. Some functions are actually named | ||
5213 | something starting with __ and the normal name is an alias. */ | ||
5214 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
5215 | choke me | ||
5216 | #else | ||
5217 | f = yp_match; | ||
5218 | #endif | ||
5219 | |||
5220 | ; | ||
5221 | return 0; | ||
5222 | } | ||
5223 | _ACEOF | ||
5224 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5226 | (eval $ac_link) 2>&5 | ||
5227 | ac_status=$? | ||
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5229 | (exit $ac_status); } && | ||
5230 | { ac_try='test -s conftest$ac_exeext' | ||
5231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5232 | (eval $ac_try) 2>&5 | ||
5233 | ac_status=$? | ||
5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5235 | (exit $ac_status); }; }; then | ||
5236 | ac_cv_func_yp_match=yes | ||
5237 | else | ||
5238 | echo "$as_me: failed program was:" >&5 | ||
5239 | cat conftest.$ac_ext >&5 | ||
5240 | ac_cv_func_yp_match=no | ||
5241 | fi | ||
5242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5243 | fi | ||
5244 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
5245 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
5246 | if test $ac_cv_func_yp_match = yes; then | ||
5247 | : | ||
5248 | else | ||
5249 | |||
5250 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
5251 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
5252 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5254 | else | ||
5255 | ac_check_lib_save_LIBS=$LIBS | ||
5256 | LIBS="-lnsl $LIBS" | ||
5257 | cat >conftest.$ac_ext <<_ACEOF | ||
5258 | #line $LINENO "configure" | ||
5259 | #include "confdefs.h" | ||
5260 | |||
5261 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5262 | #ifdef __cplusplus | ||
5263 | extern "C" | ||
5264 | #endif | ||
5265 | /* We use char because int might match the return type of a gcc2 | ||
5266 | builtin and then its argument prototype would still apply. */ | ||
5267 | char yp_match (); | ||
5268 | #ifdef F77_DUMMY_MAIN | ||
5269 | # ifdef __cplusplus | ||
5270 | extern "C" | ||
5271 | # endif | ||
5272 | int F77_DUMMY_MAIN() { return 1; } | ||
5273 | #endif | ||
5274 | int | ||
5275 | main () | ||
5276 | { | ||
5277 | yp_match (); | ||
5278 | ; | ||
5279 | return 0; | ||
5280 | } | ||
5281 | _ACEOF | ||
5282 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5284 | (eval $ac_link) 2>&5 | ||
5285 | ac_status=$? | ||
5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5287 | (exit $ac_status); } && | ||
5288 | { ac_try='test -s conftest$ac_exeext' | ||
5289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5290 | (eval $ac_try) 2>&5 | ||
5291 | ac_status=$? | ||
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5293 | (exit $ac_status); }; }; then | ||
5294 | ac_cv_lib_nsl_yp_match=yes | ||
5295 | else | ||
5296 | echo "$as_me: failed program was:" >&5 | ||
5297 | cat conftest.$ac_ext >&5 | ||
5298 | ac_cv_lib_nsl_yp_match=no | ||
5299 | fi | ||
5300 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5301 | LIBS=$ac_check_lib_save_LIBS | ||
5302 | fi | ||
5303 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
5304 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
5305 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
5306 | cat >>confdefs.h <<_ACEOF | ||
5307 | #define HAVE_LIBNSL 1 | ||
5308 | _ACEOF | ||
5309 | |||
5310 | LIBS="-lnsl $LIBS" | ||
5311 | |||
5312 | fi | ||
5313 | |||
5314 | fi | ||
5315 | |||
5316 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
5317 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
5318 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5320 | else | ||
5321 | cat >conftest.$ac_ext <<_ACEOF | ||
5322 | #line $LINENO "configure" | ||
5323 | #include "confdefs.h" | ||
5324 | /* System header to define __stub macros and hopefully few prototypes, | ||
5325 | which can conflict with char setsockopt (); below. */ | ||
5326 | #include <assert.h> | ||
5327 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5328 | #ifdef __cplusplus | ||
5329 | extern "C" | ||
5330 | #endif | ||
5331 | /* We use char because int might match the return type of a gcc2 | ||
5332 | builtin and then its argument prototype would still apply. */ | ||
5333 | char setsockopt (); | ||
5334 | char (*f) (); | ||
5335 | |||
5336 | #ifdef F77_DUMMY_MAIN | ||
5337 | # ifdef __cplusplus | ||
5338 | extern "C" | ||
5339 | # endif | ||
5340 | int F77_DUMMY_MAIN() { return 1; } | ||
5341 | #endif | ||
5342 | int | ||
5343 | main () | ||
5344 | { | ||
5345 | /* The GNU C library defines this for functions which it implements | ||
5346 | to always fail with ENOSYS. Some functions are actually named | ||
5347 | something starting with __ and the normal name is an alias. */ | ||
5348 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
5349 | choke me | ||
5350 | #else | ||
5351 | f = setsockopt; | ||
5352 | #endif | ||
5353 | |||
5354 | ; | ||
5355 | return 0; | ||
5356 | } | ||
5357 | _ACEOF | ||
5358 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5360 | (eval $ac_link) 2>&5 | ||
5361 | ac_status=$? | ||
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5363 | (exit $ac_status); } && | ||
5364 | { ac_try='test -s conftest$ac_exeext' | ||
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5366 | (eval $ac_try) 2>&5 | ||
5367 | ac_status=$? | ||
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5369 | (exit $ac_status); }; }; then | ||
5370 | ac_cv_func_setsockopt=yes | ||
5371 | else | ||
5372 | echo "$as_me: failed program was:" >&5 | ||
5373 | cat conftest.$ac_ext >&5 | ||
5374 | ac_cv_func_setsockopt=no | ||
5375 | fi | ||
5376 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5377 | fi | ||
5378 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
5379 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
5380 | if test $ac_cv_func_setsockopt = yes; then | ||
5381 | : | ||
5382 | else | ||
5383 | |||
5384 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
5385 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
5386 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5388 | else | ||
5389 | ac_check_lib_save_LIBS=$LIBS | ||
5390 | LIBS="-lsocket $LIBS" | ||
5391 | cat >conftest.$ac_ext <<_ACEOF | ||
5392 | #line $LINENO "configure" | ||
5393 | #include "confdefs.h" | ||
5394 | |||
5395 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5396 | #ifdef __cplusplus | ||
5397 | extern "C" | ||
5398 | #endif | ||
5399 | /* We use char because int might match the return type of a gcc2 | ||
5400 | builtin and then its argument prototype would still apply. */ | ||
5401 | char setsockopt (); | ||
5402 | #ifdef F77_DUMMY_MAIN | ||
5403 | # ifdef __cplusplus | ||
5404 | extern "C" | ||
5405 | # endif | ||
5406 | int F77_DUMMY_MAIN() { return 1; } | ||
5407 | #endif | ||
5408 | int | ||
5409 | main () | ||
5410 | { | ||
5411 | setsockopt (); | ||
5412 | ; | ||
5413 | return 0; | ||
5414 | } | ||
5415 | _ACEOF | ||
5416 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5418 | (eval $ac_link) 2>&5 | ||
5419 | ac_status=$? | ||
5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5421 | (exit $ac_status); } && | ||
5422 | { ac_try='test -s conftest$ac_exeext' | ||
5423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5424 | (eval $ac_try) 2>&5 | ||
5425 | ac_status=$? | ||
5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5427 | (exit $ac_status); }; }; then | ||
5428 | ac_cv_lib_socket_setsockopt=yes | ||
5429 | else | ||
5430 | echo "$as_me: failed program was:" >&5 | ||
5431 | cat conftest.$ac_ext >&5 | ||
5432 | ac_cv_lib_socket_setsockopt=no | ||
5433 | fi | ||
5434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5435 | LIBS=$ac_check_lib_save_LIBS | ||
5436 | fi | ||
5437 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
5438 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
5439 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
5440 | cat >>confdefs.h <<_ACEOF | ||
5441 | #define HAVE_LIBSOCKET 1 | ||
5442 | _ACEOF | ||
5443 | |||
5444 | LIBS="-lsocket $LIBS" | ||
5445 | |||
5446 | fi | ||
5447 | |||
5448 | fi | ||
5449 | |||
5450 | |||
5451 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
5452 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
5453 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | ||
5454 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
5455 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5457 | else | ||
5458 | ac_check_lib_save_LIBS=$LIBS | ||
5459 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5460 | cat >conftest.$ac_ext <<_ACEOF | ||
5461 | #line $LINENO "configure" | ||
5462 | #include "confdefs.h" | ||
5463 | |||
5464 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5465 | #ifdef __cplusplus | ||
5466 | extern "C" | ||
5467 | #endif | ||
5468 | /* We use char because int might match the return type of a gcc2 | ||
5469 | builtin and then its argument prototype would still apply. */ | ||
5470 | char innetgr (); | ||
5471 | #ifdef F77_DUMMY_MAIN | ||
5472 | # ifdef __cplusplus | ||
5473 | extern "C" | ||
5474 | # endif | ||
5475 | int F77_DUMMY_MAIN() { return 1; } | ||
5476 | #endif | ||
5477 | int | ||
5478 | main () | ||
5479 | { | ||
5480 | innetgr (); | ||
5481 | ; | ||
5482 | return 0; | ||
5483 | } | ||
5484 | _ACEOF | ||
5485 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5487 | (eval $ac_link) 2>&5 | ||
5488 | ac_status=$? | ||
5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5490 | (exit $ac_status); } && | ||
5491 | { ac_try='test -s conftest$ac_exeext' | ||
5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5493 | (eval $ac_try) 2>&5 | ||
5494 | ac_status=$? | ||
5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5496 | (exit $ac_status); }; }; then | ||
5497 | ac_cv_lib_rpc_innetgr=yes | ||
5498 | else | ||
5499 | echo "$as_me: failed program was:" >&5 | ||
5500 | cat conftest.$ac_ext >&5 | ||
5501 | ac_cv_lib_rpc_innetgr=no | ||
5502 | fi | ||
5503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5504 | LIBS=$ac_check_lib_save_LIBS | ||
5505 | fi | ||
5506 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
5507 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
5508 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
5509 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
5510 | fi | ||
5511 | |||
5512 | fi | ||
5513 | fi | ||
5514 | |||
5515 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
5516 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
5517 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5519 | else | ||
5520 | cat >conftest.$ac_ext <<_ACEOF | ||
5521 | #line $LINENO "configure" | ||
5522 | #include "confdefs.h" | ||
5523 | /* System header to define __stub macros and hopefully few prototypes, | ||
5524 | which can conflict with char getspnam (); below. */ | ||
5525 | #include <assert.h> | ||
5526 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5527 | #ifdef __cplusplus | ||
5528 | extern "C" | ||
5529 | #endif | ||
5530 | /* We use char because int might match the return type of a gcc2 | ||
5531 | builtin and then its argument prototype would still apply. */ | ||
5532 | char getspnam (); | ||
5533 | char (*f) (); | ||
5534 | |||
5535 | #ifdef F77_DUMMY_MAIN | ||
5536 | # ifdef __cplusplus | ||
5537 | extern "C" | ||
5538 | # endif | ||
5539 | int F77_DUMMY_MAIN() { return 1; } | ||
5540 | #endif | ||
5541 | int | ||
5542 | main () | ||
5543 | { | ||
5544 | /* The GNU C library defines this for functions which it implements | ||
5545 | to always fail with ENOSYS. Some functions are actually named | ||
5546 | something starting with __ and the normal name is an alias. */ | ||
5547 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
5548 | choke me | ||
5549 | #else | ||
5550 | f = getspnam; | ||
5551 | #endif | ||
5552 | |||
5553 | ; | ||
5554 | return 0; | ||
5555 | } | ||
5556 | _ACEOF | ||
5557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5559 | (eval $ac_link) 2>&5 | ||
5560 | ac_status=$? | ||
5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5562 | (exit $ac_status); } && | ||
5563 | { ac_try='test -s conftest$ac_exeext' | ||
5564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5565 | (eval $ac_try) 2>&5 | ||
5566 | ac_status=$? | ||
5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5568 | (exit $ac_status); }; }; then | ||
5569 | ac_cv_func_getspnam=yes | ||
5570 | else | ||
5571 | echo "$as_me: failed program was:" >&5 | ||
5572 | cat conftest.$ac_ext >&5 | ||
5573 | ac_cv_func_getspnam=no | ||
5574 | fi | ||
5575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5576 | fi | ||
5577 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
5578 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
5579 | if test $ac_cv_func_getspnam = yes; then | ||
5580 | : | ||
5581 | else | ||
5582 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
5583 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
5584 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5586 | else | ||
5587 | ac_check_lib_save_LIBS=$LIBS | ||
5588 | LIBS="-lgen $LIBS" | ||
5589 | cat >conftest.$ac_ext <<_ACEOF | ||
5590 | #line $LINENO "configure" | ||
5591 | #include "confdefs.h" | ||
5592 | |||
5593 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5594 | #ifdef __cplusplus | ||
5595 | extern "C" | ||
5596 | #endif | ||
5597 | /* We use char because int might match the return type of a gcc2 | ||
5598 | builtin and then its argument prototype would still apply. */ | ||
5599 | char getspnam (); | ||
5600 | #ifdef F77_DUMMY_MAIN | ||
5601 | # ifdef __cplusplus | ||
5602 | extern "C" | ||
5603 | # endif | ||
5604 | int F77_DUMMY_MAIN() { return 1; } | ||
5605 | #endif | ||
5606 | int | ||
5607 | main () | ||
5608 | { | ||
5609 | getspnam (); | ||
5610 | ; | ||
5611 | return 0; | ||
5612 | } | ||
5613 | _ACEOF | ||
5614 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5616 | (eval $ac_link) 2>&5 | ||
5617 | ac_status=$? | ||
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5619 | (exit $ac_status); } && | ||
5620 | { ac_try='test -s conftest$ac_exeext' | ||
5621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5622 | (eval $ac_try) 2>&5 | ||
5623 | ac_status=$? | ||
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5625 | (exit $ac_status); }; }; then | ||
5626 | ac_cv_lib_gen_getspnam=yes | ||
5627 | else | ||
5628 | echo "$as_me: failed program was:" >&5 | ||
5629 | cat conftest.$ac_ext >&5 | ||
5630 | ac_cv_lib_gen_getspnam=no | ||
5631 | fi | ||
5632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5633 | LIBS=$ac_check_lib_save_LIBS | ||
5634 | fi | ||
5635 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
5636 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
5637 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
5638 | LIBS="$LIBS -lgen" | ||
5639 | fi | ||
5640 | |||
5641 | fi | ||
5642 | |||
5643 | |||
5644 | |||
5645 | # Check whether --with-rpath or --without-rpath was given. | ||
5646 | if test "${with_rpath+set}" = set; then | ||
5647 | withval="$with_rpath" | ||
5648 | |||
5649 | if test "x$withval" = "xno" ; then | ||
5650 | need_dash_r="" | ||
5651 | fi | ||
5652 | if test "x$withval" = "xyes" ; then | ||
5653 | need_dash_r=1 | ||
5654 | fi | ||
5655 | |||
5656 | |||
5657 | fi; | ||
5658 | |||
5659 | |||
5660 | # Check whether --with-zlib or --without-zlib was given. | ||
5661 | if test "${with_zlib+set}" = set; then | ||
5662 | withval="$with_zlib" | ||
5663 | |||
5664 | if test "x$withval" = "xno" ; then | ||
5665 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
5666 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
5667 | { (exit 1); exit 1; }; } | ||
5668 | fi | ||
5669 | if test -d "$withval/lib"; then | ||
5670 | if test -n "${need_dash_r}"; then | ||
5671 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
5672 | else | ||
5673 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
5674 | fi | ||
5675 | else | ||
5676 | if test -n "${need_dash_r}"; then | ||
5677 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
5678 | else | ||
5679 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
5680 | fi | ||
5681 | fi | ||
5682 | if test -d "$withval/include"; then | ||
5683 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
5684 | else | ||
5685 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
5686 | fi | ||
5687 | |||
5688 | |||
5689 | fi; | ||
5690 | |||
5691 | |||
5692 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
5693 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
5694 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5696 | else | ||
5697 | ac_check_lib_save_LIBS=$LIBS | ||
5698 | LIBS="-lz $LIBS" | ||
5699 | cat >conftest.$ac_ext <<_ACEOF | ||
5700 | #line $LINENO "configure" | ||
5701 | #include "confdefs.h" | ||
5702 | |||
5703 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5704 | #ifdef __cplusplus | ||
5705 | extern "C" | ||
5706 | #endif | ||
5707 | /* We use char because int might match the return type of a gcc2 | ||
5708 | builtin and then its argument prototype would still apply. */ | ||
5709 | char deflate (); | ||
5710 | #ifdef F77_DUMMY_MAIN | ||
5711 | # ifdef __cplusplus | ||
5712 | extern "C" | ||
5713 | # endif | ||
5714 | int F77_DUMMY_MAIN() { return 1; } | ||
5715 | #endif | ||
5716 | int | ||
5717 | main () | ||
5718 | { | ||
5719 | deflate (); | ||
5720 | ; | ||
5721 | return 0; | ||
5722 | } | ||
5723 | _ACEOF | ||
5724 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5726 | (eval $ac_link) 2>&5 | ||
5727 | ac_status=$? | ||
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5729 | (exit $ac_status); } && | ||
5730 | { ac_try='test -s conftest$ac_exeext' | ||
5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5732 | (eval $ac_try) 2>&5 | ||
5733 | ac_status=$? | ||
5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5735 | (exit $ac_status); }; }; then | ||
5736 | ac_cv_lib_z_deflate=yes | ||
5737 | else | ||
5738 | echo "$as_me: failed program was:" >&5 | ||
5739 | cat conftest.$ac_ext >&5 | ||
5740 | ac_cv_lib_z_deflate=no | ||
5741 | fi | ||
5742 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5743 | LIBS=$ac_check_lib_save_LIBS | ||
5744 | fi | ||
5745 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
5746 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
5747 | if test $ac_cv_lib_z_deflate = yes; then | ||
5748 | cat >>confdefs.h <<_ACEOF | ||
5749 | #define HAVE_LIBZ 1 | ||
5750 | _ACEOF | ||
5751 | |||
5752 | LIBS="-lz $LIBS" | ||
5753 | |||
5754 | else | ||
5755 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
5756 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
5757 | { (exit 1); exit 1; }; } | ||
5758 | fi | ||
5759 | |||
5760 | |||
5761 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
5762 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
5763 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5765 | else | ||
5766 | cat >conftest.$ac_ext <<_ACEOF | ||
5767 | #line $LINENO "configure" | ||
5768 | #include "confdefs.h" | ||
5769 | /* System header to define __stub macros and hopefully few prototypes, | ||
5770 | which can conflict with char strcasecmp (); below. */ | ||
5771 | #include <assert.h> | ||
5772 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5773 | #ifdef __cplusplus | ||
5774 | extern "C" | ||
5775 | #endif | ||
5776 | /* We use char because int might match the return type of a gcc2 | ||
5777 | builtin and then its argument prototype would still apply. */ | ||
5778 | char strcasecmp (); | ||
5779 | char (*f) (); | ||
5780 | |||
5781 | #ifdef F77_DUMMY_MAIN | ||
5782 | # ifdef __cplusplus | ||
5783 | extern "C" | ||
5784 | # endif | ||
5785 | int F77_DUMMY_MAIN() { return 1; } | ||
5786 | #endif | ||
5787 | int | ||
5788 | main () | ||
5789 | { | ||
5790 | /* The GNU C library defines this for functions which it implements | ||
5791 | to always fail with ENOSYS. Some functions are actually named | ||
5792 | something starting with __ and the normal name is an alias. */ | ||
5793 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
5794 | choke me | ||
5795 | #else | ||
5796 | f = strcasecmp; | ||
5797 | #endif | ||
5798 | |||
5799 | ; | ||
5800 | return 0; | ||
5801 | } | ||
5802 | _ACEOF | ||
5803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5805 | (eval $ac_link) 2>&5 | ||
5806 | ac_status=$? | ||
5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5808 | (exit $ac_status); } && | ||
5809 | { ac_try='test -s conftest$ac_exeext' | ||
5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5811 | (eval $ac_try) 2>&5 | ||
5812 | ac_status=$? | ||
5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5814 | (exit $ac_status); }; }; then | ||
5815 | ac_cv_func_strcasecmp=yes | ||
5816 | else | ||
5817 | echo "$as_me: failed program was:" >&5 | ||
5818 | cat conftest.$ac_ext >&5 | ||
5819 | ac_cv_func_strcasecmp=no | ||
5820 | fi | ||
5821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5822 | fi | ||
5823 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
5824 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
5825 | if test $ac_cv_func_strcasecmp = yes; then | ||
5826 | : | ||
5827 | else | ||
5828 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
5829 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
5830 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5832 | else | ||
5833 | ac_check_lib_save_LIBS=$LIBS | ||
5834 | LIBS="-lresolv $LIBS" | ||
5835 | cat >conftest.$ac_ext <<_ACEOF | ||
5836 | #line $LINENO "configure" | ||
5837 | #include "confdefs.h" | ||
5838 | |||
5839 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5840 | #ifdef __cplusplus | ||
5841 | extern "C" | ||
5842 | #endif | ||
5843 | /* We use char because int might match the return type of a gcc2 | ||
5844 | builtin and then its argument prototype would still apply. */ | ||
5845 | char strcasecmp (); | ||
5846 | #ifdef F77_DUMMY_MAIN | ||
5847 | # ifdef __cplusplus | ||
5848 | extern "C" | ||
5849 | # endif | ||
5850 | int F77_DUMMY_MAIN() { return 1; } | ||
5851 | #endif | ||
5852 | int | ||
5853 | main () | ||
5854 | { | ||
5855 | strcasecmp (); | ||
5856 | ; | ||
5857 | return 0; | ||
5858 | } | ||
5859 | _ACEOF | ||
5860 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5862 | (eval $ac_link) 2>&5 | ||
5863 | ac_status=$? | ||
5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5865 | (exit $ac_status); } && | ||
5866 | { ac_try='test -s conftest$ac_exeext' | ||
5867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5868 | (eval $ac_try) 2>&5 | ||
5869 | ac_status=$? | ||
5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5871 | (exit $ac_status); }; }; then | ||
5872 | ac_cv_lib_resolv_strcasecmp=yes | ||
5873 | else | ||
5874 | echo "$as_me: failed program was:" >&5 | ||
5875 | cat conftest.$ac_ext >&5 | ||
5876 | ac_cv_lib_resolv_strcasecmp=no | ||
5877 | fi | ||
5878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5879 | LIBS=$ac_check_lib_save_LIBS | ||
5880 | fi | ||
5881 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
5882 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
5883 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
5884 | LIBS="$LIBS -lresolv" | ||
5885 | fi | ||
5886 | |||
5887 | |||
5888 | fi | ||
5889 | |||
5890 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
5891 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
5892 | if test "${ac_cv_func_utimes+set}" = set; then | ||
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5894 | else | ||
5895 | cat >conftest.$ac_ext <<_ACEOF | ||
5896 | #line $LINENO "configure" | ||
5897 | #include "confdefs.h" | ||
5898 | /* System header to define __stub macros and hopefully few prototypes, | ||
5899 | which can conflict with char utimes (); below. */ | ||
5900 | #include <assert.h> | ||
5901 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5902 | #ifdef __cplusplus | ||
5903 | extern "C" | ||
5904 | #endif | ||
5905 | /* We use char because int might match the return type of a gcc2 | ||
5906 | builtin and then its argument prototype would still apply. */ | ||
5907 | char utimes (); | ||
5908 | char (*f) (); | ||
5909 | |||
5910 | #ifdef F77_DUMMY_MAIN | ||
5911 | # ifdef __cplusplus | ||
5912 | extern "C" | ||
5913 | # endif | ||
5914 | int F77_DUMMY_MAIN() { return 1; } | ||
5915 | #endif | ||
5916 | int | ||
5917 | main () | ||
5918 | { | ||
5919 | /* The GNU C library defines this for functions which it implements | ||
5920 | to always fail with ENOSYS. Some functions are actually named | ||
5921 | something starting with __ and the normal name is an alias. */ | ||
5922 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
5923 | choke me | ||
5924 | #else | ||
5925 | f = utimes; | ||
5926 | #endif | ||
5927 | |||
5928 | ; | ||
5929 | return 0; | ||
5930 | } | ||
5931 | _ACEOF | ||
5932 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5934 | (eval $ac_link) 2>&5 | ||
5935 | ac_status=$? | ||
5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5937 | (exit $ac_status); } && | ||
5938 | { ac_try='test -s conftest$ac_exeext' | ||
5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5940 | (eval $ac_try) 2>&5 | ||
5941 | ac_status=$? | ||
5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5943 | (exit $ac_status); }; }; then | ||
5944 | ac_cv_func_utimes=yes | ||
5945 | else | ||
5946 | echo "$as_me: failed program was:" >&5 | ||
5947 | cat conftest.$ac_ext >&5 | ||
5948 | ac_cv_func_utimes=no | ||
5949 | fi | ||
5950 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
5951 | fi | ||
5952 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
5953 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
5954 | if test $ac_cv_func_utimes = yes; then | ||
5955 | : | ||
5956 | else | ||
5957 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
5958 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
5959 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5961 | else | ||
5962 | ac_check_lib_save_LIBS=$LIBS | ||
5963 | LIBS="-lc89 $LIBS" | ||
5964 | cat >conftest.$ac_ext <<_ACEOF | ||
5965 | #line $LINENO "configure" | ||
5966 | #include "confdefs.h" | ||
5967 | |||
5968 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5969 | #ifdef __cplusplus | ||
5970 | extern "C" | ||
5971 | #endif | ||
5972 | /* We use char because int might match the return type of a gcc2 | ||
5973 | builtin and then its argument prototype would still apply. */ | ||
5974 | char utimes (); | ||
5975 | #ifdef F77_DUMMY_MAIN | ||
5976 | # ifdef __cplusplus | ||
5977 | extern "C" | ||
5978 | # endif | ||
5979 | int F77_DUMMY_MAIN() { return 1; } | ||
5980 | #endif | ||
5981 | int | ||
5982 | main () | ||
5983 | { | ||
5984 | utimes (); | ||
5985 | ; | ||
5986 | return 0; | ||
5987 | } | ||
5988 | _ACEOF | ||
5989 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5991 | (eval $ac_link) 2>&5 | ||
5992 | ac_status=$? | ||
5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5994 | (exit $ac_status); } && | ||
5995 | { ac_try='test -s conftest$ac_exeext' | ||
5996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5997 | (eval $ac_try) 2>&5 | ||
5998 | ac_status=$? | ||
5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6000 | (exit $ac_status); }; }; then | ||
6001 | ac_cv_lib_c89_utimes=yes | ||
6002 | else | ||
6003 | echo "$as_me: failed program was:" >&5 | ||
6004 | cat conftest.$ac_ext >&5 | ||
6005 | ac_cv_lib_c89_utimes=no | ||
6006 | fi | ||
6007 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6008 | LIBS=$ac_check_lib_save_LIBS | ||
6009 | fi | ||
6010 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
6011 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
6012 | if test $ac_cv_lib_c89_utimes = yes; then | ||
6013 | cat >>confdefs.h <<\_ACEOF | ||
6014 | #define HAVE_UTIMES 1 | ||
6015 | _ACEOF | ||
6016 | |||
6017 | LIBS="$LIBS -lc89" | ||
6018 | fi | ||
6019 | |||
6020 | |||
6021 | fi | ||
6022 | |||
6023 | |||
6024 | |||
6025 | for ac_header in libutil.h | ||
6026 | do | ||
6027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6033 | fi | ||
6034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6036 | else | ||
6037 | # Is the header compilable? | ||
6038 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6039 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6040 | cat >conftest.$ac_ext <<_ACEOF | ||
6041 | #line $LINENO "configure" | ||
6042 | #include "confdefs.h" | ||
6043 | $ac_includes_default | ||
6044 | #include <$ac_header> | ||
6045 | _ACEOF | ||
6046 | rm -f conftest.$ac_objext | ||
6047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6048 | (eval $ac_compile) 2>&5 | ||
6049 | ac_status=$? | ||
6050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6051 | (exit $ac_status); } && | ||
6052 | { ac_try='test -s conftest.$ac_objext' | ||
6053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6054 | (eval $ac_try) 2>&5 | ||
6055 | ac_status=$? | ||
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6057 | (exit $ac_status); }; }; then | ||
6058 | ac_header_compiler=yes | ||
6059 | else | ||
6060 | echo "$as_me: failed program was:" >&5 | ||
6061 | cat conftest.$ac_ext >&5 | ||
6062 | ac_header_compiler=no | ||
6063 | fi | ||
6064 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
6065 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6066 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6067 | |||
6068 | # Is the header present? | ||
6069 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6070 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6071 | cat >conftest.$ac_ext <<_ACEOF | ||
6072 | #line $LINENO "configure" | ||
6073 | #include "confdefs.h" | ||
6074 | #include <$ac_header> | ||
6075 | _ACEOF | ||
6076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6078 | ac_status=$? | ||
6079 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
6080 | rm -f conftest.er1 | ||
6081 | cat conftest.err >&5 | ||
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6083 | (exit $ac_status); } >/dev/null; then | ||
6084 | if test -s conftest.err; then | ||
6085 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6086 | else | ||
6087 | ac_cpp_err= | ||
6088 | fi | ||
6089 | else | ||
6090 | ac_cpp_err=yes | ||
6091 | fi | ||
6092 | if test -z "$ac_cpp_err"; then | ||
6093 | ac_header_preproc=yes | ||
6094 | else | ||
6095 | echo "$as_me: failed program was:" >&5 | ||
6096 | cat conftest.$ac_ext >&5 | ||
6097 | ac_header_preproc=no | ||
6098 | fi | ||
6099 | rm -f conftest.err conftest.$ac_ext | ||
6100 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6101 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6102 | |||
6103 | # So? What about this header? | ||
6104 | case $ac_header_compiler:$ac_header_preproc in | ||
6105 | yes:no ) | ||
6106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6109 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6110 | no:yes ) | ||
6111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6115 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6116 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
6117 | esac | ||
6118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6122 | else | ||
6123 | eval "$as_ac_Header=$ac_header_preproc" | ||
6124 | fi | ||
6125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6127 | |||
6128 | fi | ||
6129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6130 | cat >>confdefs.h <<_ACEOF | ||
6131 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6132 | _ACEOF | ||
6133 | |||
6134 | fi | ||
6135 | |||
6136 | done | ||
6137 | |||
6138 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
6139 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
6140 | if test "${ac_cv_search_login+set}" = set; then | ||
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6142 | else | ||
6143 | ac_func_search_save_LIBS=$LIBS | ||
6144 | ac_cv_search_login=no | ||
6145 | cat >conftest.$ac_ext <<_ACEOF | ||
6146 | #line $LINENO "configure" | ||
6147 | #include "confdefs.h" | ||
6148 | |||
6149 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6150 | #ifdef __cplusplus | ||
6151 | extern "C" | ||
6152 | #endif | ||
6153 | /* We use char because int might match the return type of a gcc2 | ||
6154 | builtin and then its argument prototype would still apply. */ | ||
6155 | char login (); | ||
6156 | #ifdef F77_DUMMY_MAIN | ||
6157 | # ifdef __cplusplus | ||
6158 | extern "C" | ||
6159 | # endif | ||
6160 | int F77_DUMMY_MAIN() { return 1; } | ||
6161 | #endif | ||
6162 | int | ||
6163 | main () | ||
6164 | { | ||
6165 | login (); | ||
6166 | ; | ||
6167 | return 0; | ||
6168 | } | ||
6169 | _ACEOF | ||
6170 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6172 | (eval $ac_link) 2>&5 | ||
6173 | ac_status=$? | ||
6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6175 | (exit $ac_status); } && | ||
6176 | { ac_try='test -s conftest$ac_exeext' | ||
6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6178 | (eval $ac_try) 2>&5 | ||
6179 | ac_status=$? | ||
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6181 | (exit $ac_status); }; }; then | ||
6182 | ac_cv_search_login="none required" | ||
6183 | else | ||
6184 | echo "$as_me: failed program was:" >&5 | ||
6185 | cat conftest.$ac_ext >&5 | ||
6186 | fi | ||
6187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6188 | if test "$ac_cv_search_login" = no; then | ||
6189 | for ac_lib in util bsd; do | ||
6190 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6191 | cat >conftest.$ac_ext <<_ACEOF | ||
6192 | #line $LINENO "configure" | ||
6193 | #include "confdefs.h" | ||
6194 | |||
6195 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6196 | #ifdef __cplusplus | ||
6197 | extern "C" | ||
6198 | #endif | ||
6199 | /* We use char because int might match the return type of a gcc2 | ||
6200 | builtin and then its argument prototype would still apply. */ | ||
6201 | char login (); | ||
6202 | #ifdef F77_DUMMY_MAIN | ||
6203 | # ifdef __cplusplus | ||
6204 | extern "C" | ||
6205 | # endif | ||
6206 | int F77_DUMMY_MAIN() { return 1; } | ||
6207 | #endif | ||
6208 | int | ||
6209 | main () | ||
6210 | { | ||
6211 | login (); | ||
6212 | ; | ||
6213 | return 0; | ||
6214 | } | ||
6215 | _ACEOF | ||
6216 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6218 | (eval $ac_link) 2>&5 | ||
6219 | ac_status=$? | ||
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6221 | (exit $ac_status); } && | ||
6222 | { ac_try='test -s conftest$ac_exeext' | ||
6223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6224 | (eval $ac_try) 2>&5 | ||
6225 | ac_status=$? | ||
6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6227 | (exit $ac_status); }; }; then | ||
6228 | ac_cv_search_login="-l$ac_lib" | ||
6229 | break | ||
6230 | else | ||
6231 | echo "$as_me: failed program was:" >&5 | ||
6232 | cat conftest.$ac_ext >&5 | ||
6233 | fi | ||
6234 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6235 | done | ||
6236 | fi | ||
6237 | LIBS=$ac_func_search_save_LIBS | ||
6238 | fi | ||
6239 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
6240 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
6241 | if test "$ac_cv_search_login" != no; then | ||
6242 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
6243 | cat >>confdefs.h <<\_ACEOF | ||
6244 | #define HAVE_LOGIN 1 | ||
6245 | _ACEOF | ||
6246 | |||
6247 | fi | ||
6248 | |||
6249 | |||
6250 | |||
6251 | |||
6252 | for ac_func in logout updwtmp logwtmp | ||
6253 | do | ||
6254 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6255 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6256 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6257 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6259 | else | ||
6260 | cat >conftest.$ac_ext <<_ACEOF | ||
6261 | #line $LINENO "configure" | ||
6262 | #include "confdefs.h" | ||
6263 | /* System header to define __stub macros and hopefully few prototypes, | ||
6264 | which can conflict with char $ac_func (); below. */ | ||
6265 | #include <assert.h> | ||
6266 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6267 | #ifdef __cplusplus | ||
6268 | extern "C" | ||
6269 | #endif | ||
6270 | /* We use char because int might match the return type of a gcc2 | ||
6271 | builtin and then its argument prototype would still apply. */ | ||
6272 | char $ac_func (); | ||
6273 | char (*f) (); | ||
6274 | |||
6275 | #ifdef F77_DUMMY_MAIN | ||
6276 | # ifdef __cplusplus | ||
6277 | extern "C" | ||
6278 | # endif | ||
6279 | int F77_DUMMY_MAIN() { return 1; } | ||
6280 | #endif | ||
6281 | int | ||
6282 | main () | ||
6283 | { | ||
6284 | /* The GNU C library defines this for functions which it implements | ||
6285 | to always fail with ENOSYS. Some functions are actually named | ||
6286 | something starting with __ and the normal name is an alias. */ | ||
6287 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6288 | choke me | ||
6289 | #else | ||
6290 | f = $ac_func; | ||
6291 | #endif | ||
6292 | |||
6293 | ; | ||
6294 | return 0; | ||
6295 | } | ||
6296 | _ACEOF | ||
6297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6299 | (eval $ac_link) 2>&5 | ||
6300 | ac_status=$? | ||
6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6302 | (exit $ac_status); } && | ||
6303 | { ac_try='test -s conftest$ac_exeext' | ||
6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6305 | (eval $ac_try) 2>&5 | ||
6306 | ac_status=$? | ||
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6308 | (exit $ac_status); }; }; then | ||
6309 | eval "$as_ac_var=yes" | ||
6310 | else | ||
6311 | echo "$as_me: failed program was:" >&5 | ||
6312 | cat conftest.$ac_ext >&5 | ||
6313 | eval "$as_ac_var=no" | ||
6314 | fi | ||
6315 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6316 | fi | ||
6317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6318 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6319 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6320 | cat >>confdefs.h <<_ACEOF | ||
6321 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6322 | _ACEOF | ||
6323 | |||
6324 | fi | ||
6325 | done | ||
6326 | |||
6327 | |||
6328 | |||
6329 | for ac_func in strftime | ||
6330 | do | ||
6331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6332 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6334 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6336 | else | ||
6337 | cat >conftest.$ac_ext <<_ACEOF | ||
6338 | #line $LINENO "configure" | ||
6339 | #include "confdefs.h" | ||
6340 | /* System header to define __stub macros and hopefully few prototypes, | ||
6341 | which can conflict with char $ac_func (); below. */ | ||
6342 | #include <assert.h> | ||
6343 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6344 | #ifdef __cplusplus | ||
6345 | extern "C" | ||
6346 | #endif | ||
6347 | /* We use char because int might match the return type of a gcc2 | ||
6348 | builtin and then its argument prototype would still apply. */ | ||
6349 | char $ac_func (); | ||
6350 | char (*f) (); | ||
6351 | |||
6352 | #ifdef F77_DUMMY_MAIN | ||
6353 | # ifdef __cplusplus | ||
6354 | extern "C" | ||
6355 | # endif | ||
6356 | int F77_DUMMY_MAIN() { return 1; } | ||
6357 | #endif | ||
6358 | int | ||
6359 | main () | ||
6360 | { | ||
6361 | /* The GNU C library defines this for functions which it implements | ||
6362 | to always fail with ENOSYS. Some functions are actually named | ||
6363 | something starting with __ and the normal name is an alias. */ | ||
6364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6365 | choke me | ||
6366 | #else | ||
6367 | f = $ac_func; | ||
6368 | #endif | ||
6369 | |||
6370 | ; | ||
6371 | return 0; | ||
6372 | } | ||
6373 | _ACEOF | ||
6374 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6376 | (eval $ac_link) 2>&5 | ||
6377 | ac_status=$? | ||
6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6379 | (exit $ac_status); } && | ||
6380 | { ac_try='test -s conftest$ac_exeext' | ||
6381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6382 | (eval $ac_try) 2>&5 | ||
6383 | ac_status=$? | ||
6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6385 | (exit $ac_status); }; }; then | ||
6386 | eval "$as_ac_var=yes" | ||
6387 | else | ||
6388 | echo "$as_me: failed program was:" >&5 | ||
6389 | cat conftest.$ac_ext >&5 | ||
6390 | eval "$as_ac_var=no" | ||
6391 | fi | ||
6392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6393 | fi | ||
6394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6395 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6397 | cat >>confdefs.h <<_ACEOF | ||
6398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6399 | _ACEOF | ||
6400 | |||
6401 | else | ||
6402 | # strftime is in -lintl on SCO UNIX. | ||
6403 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
6404 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
6405 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6407 | else | ||
6408 | ac_check_lib_save_LIBS=$LIBS | ||
6409 | LIBS="-lintl $LIBS" | ||
6410 | cat >conftest.$ac_ext <<_ACEOF | ||
6411 | #line $LINENO "configure" | ||
6412 | #include "confdefs.h" | ||
6413 | |||
6414 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6415 | #ifdef __cplusplus | ||
6416 | extern "C" | ||
6417 | #endif | ||
6418 | /* We use char because int might match the return type of a gcc2 | ||
6419 | builtin and then its argument prototype would still apply. */ | ||
6420 | char strftime (); | ||
6421 | #ifdef F77_DUMMY_MAIN | ||
6422 | # ifdef __cplusplus | ||
6423 | extern "C" | ||
6424 | # endif | ||
6425 | int F77_DUMMY_MAIN() { return 1; } | ||
6426 | #endif | ||
6427 | int | ||
6428 | main () | ||
6429 | { | ||
6430 | strftime (); | ||
6431 | ; | ||
6432 | return 0; | ||
6433 | } | ||
6434 | _ACEOF | ||
6435 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6437 | (eval $ac_link) 2>&5 | ||
6438 | ac_status=$? | ||
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6440 | (exit $ac_status); } && | ||
6441 | { ac_try='test -s conftest$ac_exeext' | ||
6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6443 | (eval $ac_try) 2>&5 | ||
6444 | ac_status=$? | ||
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6446 | (exit $ac_status); }; }; then | ||
6447 | ac_cv_lib_intl_strftime=yes | ||
6448 | else | ||
6449 | echo "$as_me: failed program was:" >&5 | ||
6450 | cat conftest.$ac_ext >&5 | ||
6451 | ac_cv_lib_intl_strftime=no | ||
6452 | fi | ||
6453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6454 | LIBS=$ac_check_lib_save_LIBS | ||
6455 | fi | ||
6456 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
6457 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
6458 | if test $ac_cv_lib_intl_strftime = yes; then | ||
6459 | cat >>confdefs.h <<\_ACEOF | ||
6460 | #define HAVE_STRFTIME 1 | ||
6461 | _ACEOF | ||
6462 | |||
6463 | LIBS="-lintl $LIBS" | ||
6464 | fi | ||
6465 | |||
6466 | fi | ||
6467 | done | ||
6468 | |||
6469 | |||
6470 | # Check for ALTDIRFUNC glob() extension | ||
6471 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
6472 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
6473 | cat >conftest.$ac_ext <<_ACEOF | ||
6474 | #line $LINENO "configure" | ||
6475 | #include "confdefs.h" | ||
6476 | |||
6477 | #include <glob.h> | ||
6478 | #ifdef GLOB_ALTDIRFUNC | ||
6479 | FOUNDIT | ||
6480 | #endif | ||
6481 | |||
6482 | _ACEOF | ||
6483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6484 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6485 | |||
6486 | cat >>confdefs.h <<\_ACEOF | ||
6487 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
6488 | _ACEOF | ||
6489 | |||
6490 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6491 | echo "${ECHO_T}yes" >&6 | ||
6492 | |||
6493 | else | ||
6494 | |||
6495 | echo "$as_me:$LINENO: result: no" >&5 | ||
6496 | echo "${ECHO_T}no" >&6 | ||
6497 | |||
6498 | |||
6499 | fi | ||
6500 | rm -f conftest* | ||
6501 | |||
6502 | |||
6503 | # Check for g.gl_matchc glob() extension | ||
6504 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
6505 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
6506 | cat >conftest.$ac_ext <<_ACEOF | ||
6507 | #line $LINENO "configure" | ||
6508 | #include "confdefs.h" | ||
6509 | |||
6510 | #include <glob.h> | ||
6511 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
6512 | |||
6513 | _ACEOF | ||
6514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6515 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
6516 | |||
6517 | cat >>confdefs.h <<\_ACEOF | ||
6518 | #define GLOB_HAS_GL_MATCHC 1 | ||
6519 | _ACEOF | ||
6520 | |||
6521 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6522 | echo "${ECHO_T}yes" >&6 | ||
6523 | |||
6524 | else | ||
6525 | |||
6526 | echo "$as_me:$LINENO: result: no" >&5 | ||
6527 | echo "${ECHO_T}no" >&6 | ||
6528 | |||
6529 | |||
6530 | fi | ||
6531 | rm -f conftest* | ||
6532 | |||
6533 | |||
6534 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
6535 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
6536 | if test "$cross_compiling" = yes; then | ||
6537 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6538 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6539 | { (exit 1); exit 1; }; } | ||
6540 | else | ||
6541 | cat >conftest.$ac_ext <<_ACEOF | ||
6542 | #line $LINENO "configure" | ||
6543 | #include "confdefs.h" | ||
6544 | |||
6545 | #include <sys/types.h> | ||
6546 | #include <dirent.h> | ||
6547 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
6548 | |||
6549 | _ACEOF | ||
6550 | rm -f conftest$ac_exeext | ||
6551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6552 | (eval $ac_link) 2>&5 | ||
6553 | ac_status=$? | ||
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6557 | (eval $ac_try) 2>&5 | ||
6558 | ac_status=$? | ||
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6560 | (exit $ac_status); }; }; then | ||
6561 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6562 | echo "${ECHO_T}yes" >&6 | ||
6563 | else | ||
6564 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6565 | echo "$as_me: failed program was:" >&5 | ||
6566 | cat conftest.$ac_ext >&5 | ||
6567 | ( exit $ac_status ) | ||
6568 | |||
6569 | echo "$as_me:$LINENO: result: no" >&5 | ||
6570 | echo "${ECHO_T}no" >&6 | ||
6571 | cat >>confdefs.h <<\_ACEOF | ||
6572 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
6573 | _ACEOF | ||
6574 | |||
6575 | |||
6576 | |||
6577 | fi | ||
6578 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6579 | fi | ||
6580 | |||
6581 | # Check whether user wants S/Key support | ||
6582 | SKEY_MSG="no" | ||
6583 | |||
6584 | # Check whether --with-skey or --without-skey was given. | ||
6585 | if test "${with_skey+set}" = set; then | ||
6586 | withval="$with_skey" | ||
6587 | |||
6588 | if test "x$withval" != "xno" ; then | ||
6589 | |||
6590 | if test "x$withval" != "xyes" ; then | ||
6591 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
6592 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
6593 | fi | ||
6594 | |||
6595 | cat >>confdefs.h <<\_ACEOF | ||
6596 | #define SKEY 1 | ||
6597 | _ACEOF | ||
6598 | |||
6599 | LIBS="-lskey $LIBS" | ||
6600 | SKEY_MSG="yes" | ||
6601 | |||
6602 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
6603 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
6604 | if test "$cross_compiling" = yes; then | ||
6605 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
6606 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
6607 | { (exit 1); exit 1; }; } | ||
6608 | else | ||
6609 | cat >conftest.$ac_ext <<_ACEOF | ||
6610 | #line $LINENO "configure" | ||
6611 | #include "confdefs.h" | ||
6612 | |||
6613 | #include <stdio.h> | ||
6614 | #include <skey.h> | ||
6615 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
6616 | |||
6617 | _ACEOF | ||
6618 | rm -f conftest$ac_exeext | ||
6619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6620 | (eval $ac_link) 2>&5 | ||
6621 | ac_status=$? | ||
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6625 | (eval $ac_try) 2>&5 | ||
6626 | ac_status=$? | ||
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6628 | (exit $ac_status); }; }; then | ||
6629 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6630 | echo "${ECHO_T}yes" >&6 | ||
6631 | else | ||
6632 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6633 | echo "$as_me: failed program was:" >&5 | ||
6634 | cat conftest.$ac_ext >&5 | ||
6635 | ( exit $ac_status ) | ||
6636 | |||
6637 | echo "$as_me:$LINENO: result: no" >&5 | ||
6638 | echo "${ECHO_T}no" >&6 | ||
6639 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
6640 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
6641 | { (exit 1); exit 1; }; } | ||
6642 | |||
6643 | fi | ||
6644 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6645 | fi | ||
6646 | fi | ||
6647 | |||
6648 | |||
6649 | fi; | ||
6650 | |||
6651 | # Check whether user wants TCP wrappers support | ||
6652 | TCPW_MSG="no" | ||
6653 | |||
6654 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
6655 | if test "${with_tcp_wrappers+set}" = set; then | ||
6656 | withval="$with_tcp_wrappers" | ||
6657 | |||
6658 | if test "x$withval" != "xno" ; then | ||
6659 | saved_LIBS="$LIBS" | ||
6660 | saved_LDFLAGS="$LDFLAGS" | ||
6661 | saved_CPPFLAGS="$CPPFLAGS" | ||
6662 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
6663 | if test -d "${withval}/lib"; then | ||
6664 | if test -n "${need_dash_r}"; then | ||
6665 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
6666 | else | ||
6667 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
6668 | fi | ||
6669 | else | ||
6670 | if test -n "${need_dash_r}"; then | ||
6671 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
6672 | else | ||
6673 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
6674 | fi | ||
6675 | fi | ||
6676 | if test -d "${withval}/include"; then | ||
6677 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
6678 | else | ||
6679 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
6680 | fi | ||
6681 | fi | ||
6682 | LIBWRAP="-lwrap" | ||
6683 | LIBS="$LIBWRAP $LIBS" | ||
6684 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
6685 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
6686 | cat >conftest.$ac_ext <<_ACEOF | ||
6687 | #line $LINENO "configure" | ||
6688 | #include "confdefs.h" | ||
6689 | |||
6690 | #include <tcpd.h> | ||
6691 | int deny_severity = 0, allow_severity = 0; | ||
6692 | |||
6693 | #ifdef F77_DUMMY_MAIN | ||
6694 | # ifdef __cplusplus | ||
6695 | extern "C" | ||
6696 | # endif | ||
6697 | int F77_DUMMY_MAIN() { return 1; } | ||
6698 | #endif | ||
6699 | int | ||
6700 | main () | ||
6701 | { | ||
6702 | hosts_access(0); | ||
6703 | ; | ||
6704 | return 0; | ||
6705 | } | ||
6706 | _ACEOF | ||
6707 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6709 | (eval $ac_link) 2>&5 | ||
6710 | ac_status=$? | ||
6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6712 | (exit $ac_status); } && | ||
6713 | { ac_try='test -s conftest$ac_exeext' | ||
6714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6715 | (eval $ac_try) 2>&5 | ||
6716 | ac_status=$? | ||
6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6718 | (exit $ac_status); }; }; then | ||
6719 | |||
6720 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6721 | echo "${ECHO_T}yes" >&6 | ||
6722 | cat >>confdefs.h <<\_ACEOF | ||
6723 | #define LIBWRAP 1 | ||
6724 | _ACEOF | ||
6725 | |||
6726 | |||
6727 | TCPW_MSG="yes" | ||
6728 | |||
6729 | else | ||
6730 | echo "$as_me: failed program was:" >&5 | ||
6731 | cat conftest.$ac_ext >&5 | ||
6732 | |||
6733 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
6734 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
6735 | { (exit 1); exit 1; }; } | ||
6736 | |||
6737 | |||
6738 | fi | ||
6739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6740 | LIBS="$saved_LIBS" | ||
6741 | fi | ||
6742 | |||
6743 | |||
6744 | fi; | ||
6745 | |||
6746 | |||
6747 | |||
6748 | |||
6749 | |||
6750 | |||
6751 | |||
6752 | |||
6753 | |||
6754 | |||
6755 | |||
6756 | |||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | |||
6769 | |||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | |||
6777 | |||
6778 | |||
6779 | |||
6780 | |||
6781 | |||
6782 | |||
6783 | |||
6784 | |||
6785 | |||
6786 | |||
6787 | |||
6788 | |||
6789 | |||
6790 | |||
6791 | |||
6792 | |||
6793 | |||
6794 | |||
6795 | |||
6796 | |||
6797 | |||
6798 | |||
6799 | |||
6800 | |||
6801 | |||
6802 | |||
6803 | |||
6804 | |||
6805 | |||
6806 | |||
6807 | |||
6808 | |||
6809 | |||
6810 | |||
6811 | |||
6812 | |||
6813 | |||
6814 | |||
6815 | |||
6816 | |||
6817 | |||
6818 | |||
6819 | for ac_func in \ | ||
6820 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \ | ||
6821 | bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ | ||
6822 | gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
6823 | getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ | ||
6824 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
6825 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \ | ||
6826 | readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \ | ||
6827 | setegid setenv seteuid setgroups setlogin setpcred setproctitle \ | ||
6828 | setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \ | ||
6829 | snprintf socketpair strerror strlcat strlcpy strmode strnvis \ | ||
6830 | sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \ | ||
6831 | |||
6832 | do | ||
6833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6834 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6836 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6838 | else | ||
6839 | cat >conftest.$ac_ext <<_ACEOF | ||
6840 | #line $LINENO "configure" | ||
6841 | #include "confdefs.h" | ||
6842 | /* System header to define __stub macros and hopefully few prototypes, | ||
6843 | which can conflict with char $ac_func (); below. */ | ||
6844 | #include <assert.h> | ||
6845 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6846 | #ifdef __cplusplus | ||
6847 | extern "C" | ||
6848 | #endif | ||
6849 | /* We use char because int might match the return type of a gcc2 | ||
6850 | builtin and then its argument prototype would still apply. */ | ||
6851 | char $ac_func (); | ||
6852 | char (*f) (); | ||
6853 | |||
6854 | #ifdef F77_DUMMY_MAIN | ||
6855 | # ifdef __cplusplus | ||
6856 | extern "C" | ||
6857 | # endif | ||
6858 | int F77_DUMMY_MAIN() { return 1; } | ||
6859 | #endif | ||
6860 | int | ||
6861 | main () | ||
6862 | { | ||
6863 | /* The GNU C library defines this for functions which it implements | ||
6864 | to always fail with ENOSYS. Some functions are actually named | ||
6865 | something starting with __ and the normal name is an alias. */ | ||
6866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6867 | choke me | ||
6868 | #else | ||
6869 | f = $ac_func; | ||
6870 | #endif | ||
6871 | |||
6872 | ; | ||
6873 | return 0; | ||
6874 | } | ||
6875 | _ACEOF | ||
6876 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6878 | (eval $ac_link) 2>&5 | ||
6879 | ac_status=$? | ||
6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6881 | (exit $ac_status); } && | ||
6882 | { ac_try='test -s conftest$ac_exeext' | ||
6883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6884 | (eval $ac_try) 2>&5 | ||
6885 | ac_status=$? | ||
6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6887 | (exit $ac_status); }; }; then | ||
6888 | eval "$as_ac_var=yes" | ||
6889 | else | ||
6890 | echo "$as_me: failed program was:" >&5 | ||
6891 | cat conftest.$ac_ext >&5 | ||
6892 | eval "$as_ac_var=no" | ||
6893 | fi | ||
6894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6895 | fi | ||
6896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6897 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6899 | cat >>confdefs.h <<_ACEOF | ||
6900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6901 | _ACEOF | ||
6902 | |||
6903 | fi | ||
6904 | done | ||
6905 | |||
6906 | |||
6907 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
6908 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
6909 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
6910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6911 | else | ||
6912 | ac_func_search_save_LIBS=$LIBS | ||
6913 | ac_cv_search_nanosleep=no | ||
6914 | cat >conftest.$ac_ext <<_ACEOF | ||
6915 | #line $LINENO "configure" | ||
6916 | #include "confdefs.h" | ||
6917 | |||
6918 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6919 | #ifdef __cplusplus | ||
6920 | extern "C" | ||
6921 | #endif | ||
6922 | /* We use char because int might match the return type of a gcc2 | ||
6923 | builtin and then its argument prototype would still apply. */ | ||
6924 | char nanosleep (); | ||
6925 | #ifdef F77_DUMMY_MAIN | ||
6926 | # ifdef __cplusplus | ||
6927 | extern "C" | ||
6928 | # endif | ||
6929 | int F77_DUMMY_MAIN() { return 1; } | ||
6930 | #endif | ||
6931 | int | ||
6932 | main () | ||
6933 | { | ||
6934 | nanosleep (); | ||
6935 | ; | ||
6936 | return 0; | ||
6937 | } | ||
6938 | _ACEOF | ||
6939 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6941 | (eval $ac_link) 2>&5 | ||
6942 | ac_status=$? | ||
6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6944 | (exit $ac_status); } && | ||
6945 | { ac_try='test -s conftest$ac_exeext' | ||
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6947 | (eval $ac_try) 2>&5 | ||
6948 | ac_status=$? | ||
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6950 | (exit $ac_status); }; }; then | ||
6951 | ac_cv_search_nanosleep="none required" | ||
6952 | else | ||
6953 | echo "$as_me: failed program was:" >&5 | ||
6954 | cat conftest.$ac_ext >&5 | ||
6955 | fi | ||
6956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
6957 | if test "$ac_cv_search_nanosleep" = no; then | ||
6958 | for ac_lib in rt posix4; do | ||
6959 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
6960 | cat >conftest.$ac_ext <<_ACEOF | ||
6961 | #line $LINENO "configure" | ||
6962 | #include "confdefs.h" | ||
6963 | |||
6964 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6965 | #ifdef __cplusplus | ||
6966 | extern "C" | ||
6967 | #endif | ||
6968 | /* We use char because int might match the return type of a gcc2 | ||
6969 | builtin and then its argument prototype would still apply. */ | ||
6970 | char nanosleep (); | ||
6971 | #ifdef F77_DUMMY_MAIN | ||
6972 | # ifdef __cplusplus | ||
6973 | extern "C" | ||
6974 | # endif | ||
6975 | int F77_DUMMY_MAIN() { return 1; } | ||
6976 | #endif | ||
6977 | int | ||
6978 | main () | ||
6979 | { | ||
6980 | nanosleep (); | ||
6981 | ; | ||
6982 | return 0; | ||
6983 | } | ||
6984 | _ACEOF | ||
6985 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6987 | (eval $ac_link) 2>&5 | ||
6988 | ac_status=$? | ||
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6990 | (exit $ac_status); } && | ||
6991 | { ac_try='test -s conftest$ac_exeext' | ||
6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6993 | (eval $ac_try) 2>&5 | ||
6994 | ac_status=$? | ||
6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6996 | (exit $ac_status); }; }; then | ||
6997 | ac_cv_search_nanosleep="-l$ac_lib" | ||
6998 | break | ||
6999 | else | ||
7000 | echo "$as_me: failed program was:" >&5 | ||
7001 | cat conftest.$ac_ext >&5 | ||
7002 | fi | ||
7003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7004 | done | ||
7005 | fi | ||
7006 | LIBS=$ac_func_search_save_LIBS | ||
7007 | fi | ||
7008 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
7009 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
7010 | if test "$ac_cv_search_nanosleep" != no; then | ||
7011 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
7012 | cat >>confdefs.h <<\_ACEOF | ||
7013 | #define HAVE_NANOSLEEP 1 | ||
7014 | _ACEOF | ||
7015 | |||
7016 | fi | ||
7017 | |||
7018 | |||
7019 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
7020 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
7021 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
7022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7023 | else | ||
7024 | cat >conftest.$ac_ext <<_ACEOF | ||
7025 | #line $LINENO "configure" | ||
7026 | #include "confdefs.h" | ||
7027 | $ac_includes_default | ||
7028 | #ifdef F77_DUMMY_MAIN | ||
7029 | # ifdef __cplusplus | ||
7030 | extern "C" | ||
7031 | # endif | ||
7032 | int F77_DUMMY_MAIN() { return 1; } | ||
7033 | #endif | ||
7034 | int | ||
7035 | main () | ||
7036 | { | ||
7037 | #ifndef strsep | ||
7038 | char *p = (char *) strsep; | ||
7039 | #endif | ||
7040 | |||
7041 | ; | ||
7042 | return 0; | ||
7043 | } | ||
7044 | _ACEOF | ||
7045 | rm -f conftest.$ac_objext | ||
7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7047 | (eval $ac_compile) 2>&5 | ||
7048 | ac_status=$? | ||
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7050 | (exit $ac_status); } && | ||
7051 | { ac_try='test -s conftest.$ac_objext' | ||
7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7053 | (eval $ac_try) 2>&5 | ||
7054 | ac_status=$? | ||
7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7056 | (exit $ac_status); }; }; then | ||
7057 | ac_cv_have_decl_strsep=yes | ||
7058 | else | ||
7059 | echo "$as_me: failed program was:" >&5 | ||
7060 | cat conftest.$ac_ext >&5 | ||
7061 | ac_cv_have_decl_strsep=no | ||
7062 | fi | ||
7063 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7064 | fi | ||
7065 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
7066 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
7067 | if test $ac_cv_have_decl_strsep = yes; then | ||
7068 | |||
7069 | for ac_func in strsep | ||
7070 | do | ||
7071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7074 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7076 | else | ||
7077 | cat >conftest.$ac_ext <<_ACEOF | ||
7078 | #line $LINENO "configure" | ||
7079 | #include "confdefs.h" | ||
7080 | /* System header to define __stub macros and hopefully few prototypes, | ||
7081 | which can conflict with char $ac_func (); below. */ | ||
7082 | #include <assert.h> | ||
7083 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7084 | #ifdef __cplusplus | ||
7085 | extern "C" | ||
7086 | #endif | ||
7087 | /* We use char because int might match the return type of a gcc2 | ||
7088 | builtin and then its argument prototype would still apply. */ | ||
7089 | char $ac_func (); | ||
7090 | char (*f) (); | ||
7091 | |||
7092 | #ifdef F77_DUMMY_MAIN | ||
7093 | # ifdef __cplusplus | ||
7094 | extern "C" | ||
7095 | # endif | ||
7096 | int F77_DUMMY_MAIN() { return 1; } | ||
7097 | #endif | ||
7098 | int | ||
7099 | main () | ||
7100 | { | ||
7101 | /* The GNU C library defines this for functions which it implements | ||
7102 | to always fail with ENOSYS. Some functions are actually named | ||
7103 | something starting with __ and the normal name is an alias. */ | ||
7104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7105 | choke me | ||
7106 | #else | ||
7107 | f = $ac_func; | ||
7108 | #endif | ||
7109 | |||
7110 | ; | ||
7111 | return 0; | ||
7112 | } | ||
7113 | _ACEOF | ||
7114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7116 | (eval $ac_link) 2>&5 | ||
7117 | ac_status=$? | ||
7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7119 | (exit $ac_status); } && | ||
7120 | { ac_try='test -s conftest$ac_exeext' | ||
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7122 | (eval $ac_try) 2>&5 | ||
7123 | ac_status=$? | ||
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7125 | (exit $ac_status); }; }; then | ||
7126 | eval "$as_ac_var=yes" | ||
7127 | else | ||
7128 | echo "$as_me: failed program was:" >&5 | ||
7129 | cat conftest.$ac_ext >&5 | ||
7130 | eval "$as_ac_var=no" | ||
7131 | fi | ||
7132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7133 | fi | ||
7134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7136 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7137 | cat >>confdefs.h <<_ACEOF | ||
7138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7139 | _ACEOF | ||
7140 | |||
7141 | fi | ||
7142 | done | ||
7143 | |||
7144 | fi | ||
7145 | |||
7146 | |||
7147 | |||
7148 | for ac_func in dirname | ||
7149 | do | ||
7150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7155 | else | ||
7156 | cat >conftest.$ac_ext <<_ACEOF | ||
7157 | #line $LINENO "configure" | ||
7158 | #include "confdefs.h" | ||
7159 | /* System header to define __stub macros and hopefully few prototypes, | ||
7160 | which can conflict with char $ac_func (); below. */ | ||
7161 | #include <assert.h> | ||
7162 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7163 | #ifdef __cplusplus | ||
7164 | extern "C" | ||
7165 | #endif | ||
7166 | /* We use char because int might match the return type of a gcc2 | ||
7167 | builtin and then its argument prototype would still apply. */ | ||
7168 | char $ac_func (); | ||
7169 | char (*f) (); | ||
7170 | |||
7171 | #ifdef F77_DUMMY_MAIN | ||
7172 | # ifdef __cplusplus | ||
7173 | extern "C" | ||
7174 | # endif | ||
7175 | int F77_DUMMY_MAIN() { return 1; } | ||
7176 | #endif | ||
7177 | int | ||
7178 | main () | ||
7179 | { | ||
7180 | /* The GNU C library defines this for functions which it implements | ||
7181 | to always fail with ENOSYS. Some functions are actually named | ||
7182 | something starting with __ and the normal name is an alias. */ | ||
7183 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7184 | choke me | ||
7185 | #else | ||
7186 | f = $ac_func; | ||
7187 | #endif | ||
7188 | |||
7189 | ; | ||
7190 | return 0; | ||
7191 | } | ||
7192 | _ACEOF | ||
7193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7195 | (eval $ac_link) 2>&5 | ||
7196 | ac_status=$? | ||
7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7198 | (exit $ac_status); } && | ||
7199 | { ac_try='test -s conftest$ac_exeext' | ||
7200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7201 | (eval $ac_try) 2>&5 | ||
7202 | ac_status=$? | ||
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7204 | (exit $ac_status); }; }; then | ||
7205 | eval "$as_ac_var=yes" | ||
7206 | else | ||
7207 | echo "$as_me: failed program was:" >&5 | ||
7208 | cat conftest.$ac_ext >&5 | ||
7209 | eval "$as_ac_var=no" | ||
7210 | fi | ||
7211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7212 | fi | ||
7213 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7214 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7215 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7216 | cat >>confdefs.h <<_ACEOF | ||
7217 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7218 | _ACEOF | ||
7219 | |||
7220 | for ac_header in libgen.h | ||
7221 | do | ||
7222 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7224 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7228 | fi | ||
7229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7231 | else | ||
7232 | # Is the header compilable? | ||
7233 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7234 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7235 | cat >conftest.$ac_ext <<_ACEOF | ||
7236 | #line $LINENO "configure" | ||
7237 | #include "confdefs.h" | ||
7238 | $ac_includes_default | ||
7239 | #include <$ac_header> | ||
7240 | _ACEOF | ||
7241 | rm -f conftest.$ac_objext | ||
7242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7243 | (eval $ac_compile) 2>&5 | ||
7244 | ac_status=$? | ||
7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7246 | (exit $ac_status); } && | ||
7247 | { ac_try='test -s conftest.$ac_objext' | ||
7248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7249 | (eval $ac_try) 2>&5 | ||
7250 | ac_status=$? | ||
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7252 | (exit $ac_status); }; }; then | ||
7253 | ac_header_compiler=yes | ||
7254 | else | ||
7255 | echo "$as_me: failed program was:" >&5 | ||
7256 | cat conftest.$ac_ext >&5 | ||
7257 | ac_header_compiler=no | ||
7258 | fi | ||
7259 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7261 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7262 | |||
7263 | # Is the header present? | ||
7264 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7266 | cat >conftest.$ac_ext <<_ACEOF | ||
7267 | #line $LINENO "configure" | ||
7268 | #include "confdefs.h" | ||
7269 | #include <$ac_header> | ||
7270 | _ACEOF | ||
7271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7273 | ac_status=$? | ||
7274 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7275 | rm -f conftest.er1 | ||
7276 | cat conftest.err >&5 | ||
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7278 | (exit $ac_status); } >/dev/null; then | ||
7279 | if test -s conftest.err; then | ||
7280 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7281 | else | ||
7282 | ac_cpp_err= | ||
7283 | fi | ||
7284 | else | ||
7285 | ac_cpp_err=yes | ||
7286 | fi | ||
7287 | if test -z "$ac_cpp_err"; then | ||
7288 | ac_header_preproc=yes | ||
7289 | else | ||
7290 | echo "$as_me: failed program was:" >&5 | ||
7291 | cat conftest.$ac_ext >&5 | ||
7292 | ac_header_preproc=no | ||
7293 | fi | ||
7294 | rm -f conftest.err conftest.$ac_ext | ||
7295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7296 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7297 | |||
7298 | # So? What about this header? | ||
7299 | case $ac_header_compiler:$ac_header_preproc in | ||
7300 | yes:no ) | ||
7301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7305 | no:yes ) | ||
7306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7312 | esac | ||
7313 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7315 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7317 | else | ||
7318 | eval "$as_ac_Header=$ac_header_preproc" | ||
7319 | fi | ||
7320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7322 | |||
7323 | fi | ||
7324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7325 | cat >>confdefs.h <<_ACEOF | ||
7326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7327 | _ACEOF | ||
7328 | |||
7329 | fi | ||
7330 | |||
7331 | done | ||
7332 | |||
7333 | else | ||
7334 | |||
7335 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7336 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7337 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7339 | else | ||
7340 | ac_check_lib_save_LIBS=$LIBS | ||
7341 | LIBS="-lgen $LIBS" | ||
7342 | cat >conftest.$ac_ext <<_ACEOF | ||
7343 | #line $LINENO "configure" | ||
7344 | #include "confdefs.h" | ||
7345 | |||
7346 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7347 | #ifdef __cplusplus | ||
7348 | extern "C" | ||
7349 | #endif | ||
7350 | /* We use char because int might match the return type of a gcc2 | ||
7351 | builtin and then its argument prototype would still apply. */ | ||
7352 | char dirname (); | ||
7353 | #ifdef F77_DUMMY_MAIN | ||
7354 | # ifdef __cplusplus | ||
7355 | extern "C" | ||
7356 | # endif | ||
7357 | int F77_DUMMY_MAIN() { return 1; } | ||
7358 | #endif | ||
7359 | int | ||
7360 | main () | ||
7361 | { | ||
7362 | dirname (); | ||
7363 | ; | ||
7364 | return 0; | ||
7365 | } | ||
7366 | _ACEOF | ||
7367 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7369 | (eval $ac_link) 2>&5 | ||
7370 | ac_status=$? | ||
7371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7372 | (exit $ac_status); } && | ||
7373 | { ac_try='test -s conftest$ac_exeext' | ||
7374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7375 | (eval $ac_try) 2>&5 | ||
7376 | ac_status=$? | ||
7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7378 | (exit $ac_status); }; }; then | ||
7379 | ac_cv_lib_gen_dirname=yes | ||
7380 | else | ||
7381 | echo "$as_me: failed program was:" >&5 | ||
7382 | cat conftest.$ac_ext >&5 | ||
7383 | ac_cv_lib_gen_dirname=no | ||
7384 | fi | ||
7385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7386 | LIBS=$ac_check_lib_save_LIBS | ||
7387 | fi | ||
7388 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7389 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7390 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7391 | |||
7392 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7393 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7394 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7396 | else | ||
7397 | |||
7398 | save_LIBS="$LIBS" | ||
7399 | LIBS="$LIBS -lgen" | ||
7400 | if test "$cross_compiling" = yes; then | ||
7401 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
7402 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
7403 | { (exit 1); exit 1; }; } | ||
7404 | else | ||
7405 | cat >conftest.$ac_ext <<_ACEOF | ||
7406 | #line $LINENO "configure" | ||
7407 | #include "confdefs.h" | ||
7408 | |||
7409 | #include <libgen.h> | ||
7410 | #include <string.h> | ||
7411 | |||
7412 | int main(int argc, char **argv) { | ||
7413 | char *s, buf[32]; | ||
7414 | |||
7415 | strncpy(buf,"/etc", 32); | ||
7416 | s = dirname(buf); | ||
7417 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7418 | exit(1); | ||
7419 | } else { | ||
7420 | exit(0); | ||
7421 | } | ||
7422 | } | ||
7423 | |||
7424 | _ACEOF | ||
7425 | rm -f conftest$ac_exeext | ||
7426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7427 | (eval $ac_link) 2>&5 | ||
7428 | ac_status=$? | ||
7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7432 | (eval $ac_try) 2>&5 | ||
7433 | ac_status=$? | ||
7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7435 | (exit $ac_status); }; }; then | ||
7436 | ac_cv_have_broken_dirname="no" | ||
7437 | else | ||
7438 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7439 | echo "$as_me: failed program was:" >&5 | ||
7440 | cat conftest.$ac_ext >&5 | ||
7441 | ( exit $ac_status ) | ||
7442 | ac_cv_have_broken_dirname="yes" | ||
7443 | |||
7444 | fi | ||
7445 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7446 | fi | ||
7447 | LIBS="$save_LIBS" | ||
7448 | |||
7449 | fi | ||
7450 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7451 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7452 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7453 | LIBS="$LIBS -lgen" | ||
7454 | cat >>confdefs.h <<\_ACEOF | ||
7455 | #define HAVE_DIRNAME 1 | ||
7456 | _ACEOF | ||
7457 | |||
7458 | |||
7459 | for ac_header in libgen.h | ||
7460 | do | ||
7461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7467 | fi | ||
7468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7470 | else | ||
7471 | # Is the header compilable? | ||
7472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7474 | cat >conftest.$ac_ext <<_ACEOF | ||
7475 | #line $LINENO "configure" | ||
7476 | #include "confdefs.h" | ||
7477 | $ac_includes_default | ||
7478 | #include <$ac_header> | ||
7479 | _ACEOF | ||
7480 | rm -f conftest.$ac_objext | ||
7481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7482 | (eval $ac_compile) 2>&5 | ||
7483 | ac_status=$? | ||
7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7485 | (exit $ac_status); } && | ||
7486 | { ac_try='test -s conftest.$ac_objext' | ||
7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7488 | (eval $ac_try) 2>&5 | ||
7489 | ac_status=$? | ||
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7491 | (exit $ac_status); }; }; then | ||
7492 | ac_header_compiler=yes | ||
7493 | else | ||
7494 | echo "$as_me: failed program was:" >&5 | ||
7495 | cat conftest.$ac_ext >&5 | ||
7496 | ac_header_compiler=no | ||
7497 | fi | ||
7498 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
7499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7500 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7501 | |||
7502 | # Is the header present? | ||
7503 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7504 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7505 | cat >conftest.$ac_ext <<_ACEOF | ||
7506 | #line $LINENO "configure" | ||
7507 | #include "confdefs.h" | ||
7508 | #include <$ac_header> | ||
7509 | _ACEOF | ||
7510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7512 | ac_status=$? | ||
7513 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
7514 | rm -f conftest.er1 | ||
7515 | cat conftest.err >&5 | ||
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7517 | (exit $ac_status); } >/dev/null; then | ||
7518 | if test -s conftest.err; then | ||
7519 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7520 | else | ||
7521 | ac_cpp_err= | ||
7522 | fi | ||
7523 | else | ||
7524 | ac_cpp_err=yes | ||
7525 | fi | ||
7526 | if test -z "$ac_cpp_err"; then | ||
7527 | ac_header_preproc=yes | ||
7528 | else | ||
7529 | echo "$as_me: failed program was:" >&5 | ||
7530 | cat conftest.$ac_ext >&5 | ||
7531 | ac_header_preproc=no | ||
7532 | fi | ||
7533 | rm -f conftest.err conftest.$ac_ext | ||
7534 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7535 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7536 | |||
7537 | # So? What about this header? | ||
7538 | case $ac_header_compiler:$ac_header_preproc in | ||
7539 | yes:no ) | ||
7540 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7541 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7543 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7544 | no:yes ) | ||
7545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
7551 | esac | ||
7552 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7556 | else | ||
7557 | eval "$as_ac_Header=$ac_header_preproc" | ||
7558 | fi | ||
7559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7561 | |||
7562 | fi | ||
7563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7564 | cat >>confdefs.h <<_ACEOF | ||
7565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7566 | _ACEOF | ||
7567 | |||
7568 | fi | ||
7569 | |||
7570 | done | ||
7571 | |||
7572 | fi | ||
7573 | |||
7574 | fi | ||
7575 | |||
7576 | |||
7577 | fi | ||
7578 | done | ||
7579 | |||
7580 | |||
7581 | |||
7582 | |||
7583 | for ac_func in gettimeofday time | ||
7584 | do | ||
7585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7586 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7588 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7590 | else | ||
7591 | cat >conftest.$ac_ext <<_ACEOF | ||
7592 | #line $LINENO "configure" | ||
7593 | #include "confdefs.h" | ||
7594 | /* System header to define __stub macros and hopefully few prototypes, | ||
7595 | which can conflict with char $ac_func (); below. */ | ||
7596 | #include <assert.h> | ||
7597 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7598 | #ifdef __cplusplus | ||
7599 | extern "C" | ||
7600 | #endif | ||
7601 | /* We use char because int might match the return type of a gcc2 | ||
7602 | builtin and then its argument prototype would still apply. */ | ||
7603 | char $ac_func (); | ||
7604 | char (*f) (); | ||
7605 | |||
7606 | #ifdef F77_DUMMY_MAIN | ||
7607 | # ifdef __cplusplus | ||
7608 | extern "C" | ||
7609 | # endif | ||
7610 | int F77_DUMMY_MAIN() { return 1; } | ||
7611 | #endif | ||
7612 | int | ||
7613 | main () | ||
7614 | { | ||
7615 | /* The GNU C library defines this for functions which it implements | ||
7616 | to always fail with ENOSYS. Some functions are actually named | ||
7617 | something starting with __ and the normal name is an alias. */ | ||
7618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7619 | choke me | ||
7620 | #else | ||
7621 | f = $ac_func; | ||
7622 | #endif | ||
7623 | |||
7624 | ; | ||
7625 | return 0; | ||
7626 | } | ||
7627 | _ACEOF | ||
7628 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7630 | (eval $ac_link) 2>&5 | ||
7631 | ac_status=$? | ||
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7633 | (exit $ac_status); } && | ||
7634 | { ac_try='test -s conftest$ac_exeext' | ||
7635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7636 | (eval $ac_try) 2>&5 | ||
7637 | ac_status=$? | ||
7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7639 | (exit $ac_status); }; }; then | ||
7640 | eval "$as_ac_var=yes" | ||
7641 | else | ||
7642 | echo "$as_me: failed program was:" >&5 | ||
7643 | cat conftest.$ac_ext >&5 | ||
7644 | eval "$as_ac_var=no" | ||
7645 | fi | ||
7646 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7647 | fi | ||
7648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7651 | cat >>confdefs.h <<_ACEOF | ||
7652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7653 | _ACEOF | ||
7654 | |||
7655 | fi | ||
7656 | done | ||
7657 | |||
7658 | |||
7659 | |||
7660 | |||
7661 | |||
7662 | |||
7663 | |||
7664 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
7665 | do | ||
7666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7671 | else | ||
7672 | cat >conftest.$ac_ext <<_ACEOF | ||
7673 | #line $LINENO "configure" | ||
7674 | #include "confdefs.h" | ||
7675 | /* System header to define __stub macros and hopefully few prototypes, | ||
7676 | which can conflict with char $ac_func (); below. */ | ||
7677 | #include <assert.h> | ||
7678 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7679 | #ifdef __cplusplus | ||
7680 | extern "C" | ||
7681 | #endif | ||
7682 | /* We use char because int might match the return type of a gcc2 | ||
7683 | builtin and then its argument prototype would still apply. */ | ||
7684 | char $ac_func (); | ||
7685 | char (*f) (); | ||
7686 | |||
7687 | #ifdef F77_DUMMY_MAIN | ||
7688 | # ifdef __cplusplus | ||
7689 | extern "C" | ||
7690 | # endif | ||
7691 | int F77_DUMMY_MAIN() { return 1; } | ||
7692 | #endif | ||
7693 | int | ||
7694 | main () | ||
7695 | { | ||
7696 | /* The GNU C library defines this for functions which it implements | ||
7697 | to always fail with ENOSYS. Some functions are actually named | ||
7698 | something starting with __ and the normal name is an alias. */ | ||
7699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7700 | choke me | ||
7701 | #else | ||
7702 | f = $ac_func; | ||
7703 | #endif | ||
7704 | |||
7705 | ; | ||
7706 | return 0; | ||
7707 | } | ||
7708 | _ACEOF | ||
7709 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7711 | (eval $ac_link) 2>&5 | ||
7712 | ac_status=$? | ||
7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7714 | (exit $ac_status); } && | ||
7715 | { ac_try='test -s conftest$ac_exeext' | ||
7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7717 | (eval $ac_try) 2>&5 | ||
7718 | ac_status=$? | ||
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7720 | (exit $ac_status); }; }; then | ||
7721 | eval "$as_ac_var=yes" | ||
7722 | else | ||
7723 | echo "$as_me: failed program was:" >&5 | ||
7724 | cat conftest.$ac_ext >&5 | ||
7725 | eval "$as_ac_var=no" | ||
7726 | fi | ||
7727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7728 | fi | ||
7729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7732 | cat >>confdefs.h <<_ACEOF | ||
7733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7734 | _ACEOF | ||
7735 | |||
7736 | fi | ||
7737 | done | ||
7738 | |||
7739 | |||
7740 | for ac_func in utmpname | ||
7741 | do | ||
7742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7745 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7747 | else | ||
7748 | cat >conftest.$ac_ext <<_ACEOF | ||
7749 | #line $LINENO "configure" | ||
7750 | #include "confdefs.h" | ||
7751 | /* System header to define __stub macros and hopefully few prototypes, | ||
7752 | which can conflict with char $ac_func (); below. */ | ||
7753 | #include <assert.h> | ||
7754 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7755 | #ifdef __cplusplus | ||
7756 | extern "C" | ||
7757 | #endif | ||
7758 | /* We use char because int might match the return type of a gcc2 | ||
7759 | builtin and then its argument prototype would still apply. */ | ||
7760 | char $ac_func (); | ||
7761 | char (*f) (); | ||
7762 | |||
7763 | #ifdef F77_DUMMY_MAIN | ||
7764 | # ifdef __cplusplus | ||
7765 | extern "C" | ||
7766 | # endif | ||
7767 | int F77_DUMMY_MAIN() { return 1; } | ||
7768 | #endif | ||
7769 | int | ||
7770 | main () | ||
7771 | { | ||
7772 | /* The GNU C library defines this for functions which it implements | ||
7773 | to always fail with ENOSYS. Some functions are actually named | ||
7774 | something starting with __ and the normal name is an alias. */ | ||
7775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7776 | choke me | ||
7777 | #else | ||
7778 | f = $ac_func; | ||
7779 | #endif | ||
7780 | |||
7781 | ; | ||
7782 | return 0; | ||
7783 | } | ||
7784 | _ACEOF | ||
7785 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7787 | (eval $ac_link) 2>&5 | ||
7788 | ac_status=$? | ||
7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7790 | (exit $ac_status); } && | ||
7791 | { ac_try='test -s conftest$ac_exeext' | ||
7792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7793 | (eval $ac_try) 2>&5 | ||
7794 | ac_status=$? | ||
7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7796 | (exit $ac_status); }; }; then | ||
7797 | eval "$as_ac_var=yes" | ||
7798 | else | ||
7799 | echo "$as_me: failed program was:" >&5 | ||
7800 | cat conftest.$ac_ext >&5 | ||
7801 | eval "$as_ac_var=no" | ||
7802 | fi | ||
7803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7804 | fi | ||
7805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7806 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7807 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7808 | cat >>confdefs.h <<_ACEOF | ||
7809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7810 | _ACEOF | ||
7811 | |||
7812 | fi | ||
7813 | done | ||
7814 | |||
7815 | |||
7816 | |||
7817 | |||
7818 | |||
7819 | |||
7820 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
7821 | do | ||
7822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7823 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7825 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7827 | else | ||
7828 | cat >conftest.$ac_ext <<_ACEOF | ||
7829 | #line $LINENO "configure" | ||
7830 | #include "confdefs.h" | ||
7831 | /* System header to define __stub macros and hopefully few prototypes, | ||
7832 | which can conflict with char $ac_func (); below. */ | ||
7833 | #include <assert.h> | ||
7834 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7835 | #ifdef __cplusplus | ||
7836 | extern "C" | ||
7837 | #endif | ||
7838 | /* We use char because int might match the return type of a gcc2 | ||
7839 | builtin and then its argument prototype would still apply. */ | ||
7840 | char $ac_func (); | ||
7841 | char (*f) (); | ||
7842 | |||
7843 | #ifdef F77_DUMMY_MAIN | ||
7844 | # ifdef __cplusplus | ||
7845 | extern "C" | ||
7846 | # endif | ||
7847 | int F77_DUMMY_MAIN() { return 1; } | ||
7848 | #endif | ||
7849 | int | ||
7850 | main () | ||
7851 | { | ||
7852 | /* The GNU C library defines this for functions which it implements | ||
7853 | to always fail with ENOSYS. Some functions are actually named | ||
7854 | something starting with __ and the normal name is an alias. */ | ||
7855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7856 | choke me | ||
7857 | #else | ||
7858 | f = $ac_func; | ||
7859 | #endif | ||
7860 | |||
7861 | ; | ||
7862 | return 0; | ||
7863 | } | ||
7864 | _ACEOF | ||
7865 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7867 | (eval $ac_link) 2>&5 | ||
7868 | ac_status=$? | ||
7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7870 | (exit $ac_status); } && | ||
7871 | { ac_try='test -s conftest$ac_exeext' | ||
7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7873 | (eval $ac_try) 2>&5 | ||
7874 | ac_status=$? | ||
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7876 | (exit $ac_status); }; }; then | ||
7877 | eval "$as_ac_var=yes" | ||
7878 | else | ||
7879 | echo "$as_me: failed program was:" >&5 | ||
7880 | cat conftest.$ac_ext >&5 | ||
7881 | eval "$as_ac_var=no" | ||
7882 | fi | ||
7883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7884 | fi | ||
7885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7887 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7888 | cat >>confdefs.h <<_ACEOF | ||
7889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7890 | _ACEOF | ||
7891 | |||
7892 | fi | ||
7893 | done | ||
7894 | |||
7895 | |||
7896 | |||
7897 | for ac_func in setutxent utmpxname | ||
7898 | do | ||
7899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7902 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7904 | else | ||
7905 | cat >conftest.$ac_ext <<_ACEOF | ||
7906 | #line $LINENO "configure" | ||
7907 | #include "confdefs.h" | ||
7908 | /* System header to define __stub macros and hopefully few prototypes, | ||
7909 | which can conflict with char $ac_func (); below. */ | ||
7910 | #include <assert.h> | ||
7911 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7912 | #ifdef __cplusplus | ||
7913 | extern "C" | ||
7914 | #endif | ||
7915 | /* We use char because int might match the return type of a gcc2 | ||
7916 | builtin and then its argument prototype would still apply. */ | ||
7917 | char $ac_func (); | ||
7918 | char (*f) (); | ||
7919 | |||
7920 | #ifdef F77_DUMMY_MAIN | ||
7921 | # ifdef __cplusplus | ||
7922 | extern "C" | ||
7923 | # endif | ||
7924 | int F77_DUMMY_MAIN() { return 1; } | ||
7925 | #endif | ||
7926 | int | ||
7927 | main () | ||
7928 | { | ||
7929 | /* The GNU C library defines this for functions which it implements | ||
7930 | to always fail with ENOSYS. Some functions are actually named | ||
7931 | something starting with __ and the normal name is an alias. */ | ||
7932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7933 | choke me | ||
7934 | #else | ||
7935 | f = $ac_func; | ||
7936 | #endif | ||
7937 | |||
7938 | ; | ||
7939 | return 0; | ||
7940 | } | ||
7941 | _ACEOF | ||
7942 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7944 | (eval $ac_link) 2>&5 | ||
7945 | ac_status=$? | ||
7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7947 | (exit $ac_status); } && | ||
7948 | { ac_try='test -s conftest$ac_exeext' | ||
7949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7950 | (eval $ac_try) 2>&5 | ||
7951 | ac_status=$? | ||
7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7953 | (exit $ac_status); }; }; then | ||
7954 | eval "$as_ac_var=yes" | ||
7955 | else | ||
7956 | echo "$as_me: failed program was:" >&5 | ||
7957 | cat conftest.$ac_ext >&5 | ||
7958 | eval "$as_ac_var=no" | ||
7959 | fi | ||
7960 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
7961 | fi | ||
7962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7965 | cat >>confdefs.h <<_ACEOF | ||
7966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7967 | _ACEOF | ||
7968 | |||
7969 | fi | ||
7970 | done | ||
7971 | |||
7972 | |||
7973 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
7974 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
7975 | if test "${ac_cv_func_daemon+set}" = set; then | ||
7976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7977 | else | ||
7978 | cat >conftest.$ac_ext <<_ACEOF | ||
7979 | #line $LINENO "configure" | ||
7980 | #include "confdefs.h" | ||
7981 | /* System header to define __stub macros and hopefully few prototypes, | ||
7982 | which can conflict with char daemon (); below. */ | ||
7983 | #include <assert.h> | ||
7984 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7985 | #ifdef __cplusplus | ||
7986 | extern "C" | ||
7987 | #endif | ||
7988 | /* We use char because int might match the return type of a gcc2 | ||
7989 | builtin and then its argument prototype would still apply. */ | ||
7990 | char daemon (); | ||
7991 | char (*f) (); | ||
7992 | |||
7993 | #ifdef F77_DUMMY_MAIN | ||
7994 | # ifdef __cplusplus | ||
7995 | extern "C" | ||
7996 | # endif | ||
7997 | int F77_DUMMY_MAIN() { return 1; } | ||
7998 | #endif | ||
7999 | int | ||
8000 | main () | ||
8001 | { | ||
8002 | /* The GNU C library defines this for functions which it implements | ||
8003 | to always fail with ENOSYS. Some functions are actually named | ||
8004 | something starting with __ and the normal name is an alias. */ | ||
8005 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
8006 | choke me | ||
8007 | #else | ||
8008 | f = daemon; | ||
8009 | #endif | ||
8010 | |||
8011 | ; | ||
8012 | return 0; | ||
8013 | } | ||
8014 | _ACEOF | ||
8015 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8017 | (eval $ac_link) 2>&5 | ||
8018 | ac_status=$? | ||
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8020 | (exit $ac_status); } && | ||
8021 | { ac_try='test -s conftest$ac_exeext' | ||
8022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8023 | (eval $ac_try) 2>&5 | ||
8024 | ac_status=$? | ||
8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8026 | (exit $ac_status); }; }; then | ||
8027 | ac_cv_func_daemon=yes | ||
8028 | else | ||
8029 | echo "$as_me: failed program was:" >&5 | ||
8030 | cat conftest.$ac_ext >&5 | ||
8031 | ac_cv_func_daemon=no | ||
8032 | fi | ||
8033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8034 | fi | ||
8035 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
8036 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
8037 | if test $ac_cv_func_daemon = yes; then | ||
8038 | cat >>confdefs.h <<\_ACEOF | ||
8039 | #define HAVE_DAEMON 1 | ||
8040 | _ACEOF | ||
8041 | |||
8042 | else | ||
8043 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
8044 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
8045 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
8046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8047 | else | ||
8048 | ac_check_lib_save_LIBS=$LIBS | ||
8049 | LIBS="-lbsd $LIBS" | ||
8050 | cat >conftest.$ac_ext <<_ACEOF | ||
8051 | #line $LINENO "configure" | ||
8052 | #include "confdefs.h" | ||
8053 | |||
8054 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8055 | #ifdef __cplusplus | ||
8056 | extern "C" | ||
8057 | #endif | ||
8058 | /* We use char because int might match the return type of a gcc2 | ||
8059 | builtin and then its argument prototype would still apply. */ | ||
8060 | char daemon (); | ||
8061 | #ifdef F77_DUMMY_MAIN | ||
8062 | # ifdef __cplusplus | ||
8063 | extern "C" | ||
8064 | # endif | ||
8065 | int F77_DUMMY_MAIN() { return 1; } | ||
8066 | #endif | ||
8067 | int | ||
8068 | main () | ||
8069 | { | ||
8070 | daemon (); | ||
8071 | ; | ||
8072 | return 0; | ||
8073 | } | ||
8074 | _ACEOF | ||
8075 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8077 | (eval $ac_link) 2>&5 | ||
8078 | ac_status=$? | ||
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8080 | (exit $ac_status); } && | ||
8081 | { ac_try='test -s conftest$ac_exeext' | ||
8082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8083 | (eval $ac_try) 2>&5 | ||
8084 | ac_status=$? | ||
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8086 | (exit $ac_status); }; }; then | ||
8087 | ac_cv_lib_bsd_daemon=yes | ||
8088 | else | ||
8089 | echo "$as_me: failed program was:" >&5 | ||
8090 | cat conftest.$ac_ext >&5 | ||
8091 | ac_cv_lib_bsd_daemon=no | ||
8092 | fi | ||
8093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8094 | LIBS=$ac_check_lib_save_LIBS | ||
8095 | fi | ||
8096 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
8097 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
8098 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
8099 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
8100 | #define HAVE_DAEMON 1 | ||
8101 | _ACEOF | ||
8102 | |||
8103 | fi | ||
8104 | |||
8105 | |||
8106 | fi | ||
8107 | |||
8108 | |||
8109 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
8110 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
8111 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
8112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8113 | else | ||
8114 | cat >conftest.$ac_ext <<_ACEOF | ||
8115 | #line $LINENO "configure" | ||
8116 | #include "confdefs.h" | ||
8117 | /* System header to define __stub macros and hopefully few prototypes, | ||
8118 | which can conflict with char getpagesize (); below. */ | ||
8119 | #include <assert.h> | ||
8120 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8121 | #ifdef __cplusplus | ||
8122 | extern "C" | ||
8123 | #endif | ||
8124 | /* We use char because int might match the return type of a gcc2 | ||
8125 | builtin and then its argument prototype would still apply. */ | ||
8126 | char getpagesize (); | ||
8127 | char (*f) (); | ||
8128 | |||
8129 | #ifdef F77_DUMMY_MAIN | ||
8130 | # ifdef __cplusplus | ||
8131 | extern "C" | ||
8132 | # endif | ||
8133 | int F77_DUMMY_MAIN() { return 1; } | ||
8134 | #endif | ||
8135 | int | ||
8136 | main () | ||
8137 | { | ||
8138 | /* The GNU C library defines this for functions which it implements | ||
8139 | to always fail with ENOSYS. Some functions are actually named | ||
8140 | something starting with __ and the normal name is an alias. */ | ||
8141 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
8142 | choke me | ||
8143 | #else | ||
8144 | f = getpagesize; | ||
8145 | #endif | ||
8146 | |||
8147 | ; | ||
8148 | return 0; | ||
8149 | } | ||
8150 | _ACEOF | ||
8151 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8153 | (eval $ac_link) 2>&5 | ||
8154 | ac_status=$? | ||
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8156 | (exit $ac_status); } && | ||
8157 | { ac_try='test -s conftest$ac_exeext' | ||
8158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8159 | (eval $ac_try) 2>&5 | ||
8160 | ac_status=$? | ||
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8162 | (exit $ac_status); }; }; then | ||
8163 | ac_cv_func_getpagesize=yes | ||
8164 | else | ||
8165 | echo "$as_me: failed program was:" >&5 | ||
8166 | cat conftest.$ac_ext >&5 | ||
8167 | ac_cv_func_getpagesize=no | ||
8168 | fi | ||
8169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8170 | fi | ||
8171 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
8172 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
8173 | if test $ac_cv_func_getpagesize = yes; then | ||
8174 | cat >>confdefs.h <<\_ACEOF | ||
8175 | #define HAVE_GETPAGESIZE 1 | ||
8176 | _ACEOF | ||
8177 | |||
8178 | else | ||
8179 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
8180 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
8181 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
8182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8183 | else | ||
8184 | ac_check_lib_save_LIBS=$LIBS | ||
8185 | LIBS="-lucb $LIBS" | ||
8186 | cat >conftest.$ac_ext <<_ACEOF | ||
8187 | #line $LINENO "configure" | ||
8188 | #include "confdefs.h" | ||
8189 | |||
8190 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8191 | #ifdef __cplusplus | ||
8192 | extern "C" | ||
8193 | #endif | ||
8194 | /* We use char because int might match the return type of a gcc2 | ||
8195 | builtin and then its argument prototype would still apply. */ | ||
8196 | char getpagesize (); | ||
8197 | #ifdef F77_DUMMY_MAIN | ||
8198 | # ifdef __cplusplus | ||
8199 | extern "C" | ||
8200 | # endif | ||
8201 | int F77_DUMMY_MAIN() { return 1; } | ||
8202 | #endif | ||
8203 | int | ||
8204 | main () | ||
8205 | { | ||
8206 | getpagesize (); | ||
8207 | ; | ||
8208 | return 0; | ||
8209 | } | ||
8210 | _ACEOF | ||
8211 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8213 | (eval $ac_link) 2>&5 | ||
8214 | ac_status=$? | ||
8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8216 | (exit $ac_status); } && | ||
8217 | { ac_try='test -s conftest$ac_exeext' | ||
8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8219 | (eval $ac_try) 2>&5 | ||
8220 | ac_status=$? | ||
8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8222 | (exit $ac_status); }; }; then | ||
8223 | ac_cv_lib_ucb_getpagesize=yes | ||
8224 | else | ||
8225 | echo "$as_me: failed program was:" >&5 | ||
8226 | cat conftest.$ac_ext >&5 | ||
8227 | ac_cv_lib_ucb_getpagesize=no | ||
8228 | fi | ||
8229 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8230 | LIBS=$ac_check_lib_save_LIBS | ||
8231 | fi | ||
8232 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
8233 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
8234 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
8235 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
8236 | #define HAVE_GETPAGESIZE 1 | ||
8237 | _ACEOF | ||
8238 | |||
8239 | fi | ||
8240 | |||
8241 | |||
8242 | fi | ||
8243 | |||
8244 | |||
8245 | # Check for broken snprintf | ||
8246 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
8247 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
8248 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
8249 | if test "$cross_compiling" = yes; then | ||
8250 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8251 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8252 | { (exit 1); exit 1; }; } | ||
8253 | else | ||
8254 | cat >conftest.$ac_ext <<_ACEOF | ||
8255 | #line $LINENO "configure" | ||
8256 | #include "confdefs.h" | ||
8257 | |||
8258 | #include <stdio.h> | ||
8259 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
8260 | |||
8261 | _ACEOF | ||
8262 | rm -f conftest$ac_exeext | ||
8263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8264 | (eval $ac_link) 2>&5 | ||
8265 | ac_status=$? | ||
8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8269 | (eval $ac_try) 2>&5 | ||
8270 | ac_status=$? | ||
8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8272 | (exit $ac_status); }; }; then | ||
8273 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8274 | echo "${ECHO_T}yes" >&6 | ||
8275 | else | ||
8276 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8277 | echo "$as_me: failed program was:" >&5 | ||
8278 | cat conftest.$ac_ext >&5 | ||
8279 | ( exit $ac_status ) | ||
8280 | |||
8281 | echo "$as_me:$LINENO: result: no" >&5 | ||
8282 | echo "${ECHO_T}no" >&6 | ||
8283 | cat >>confdefs.h <<\_ACEOF | ||
8284 | #define BROKEN_SNPRINTF 1 | ||
8285 | _ACEOF | ||
8286 | |||
8287 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
8288 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
8289 | |||
8290 | |||
8291 | fi | ||
8292 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8293 | fi | ||
8294 | fi | ||
8295 | |||
8296 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
8297 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
8298 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
8299 | if test "$cross_compiling" = yes; then | ||
8300 | |||
8301 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8302 | echo "${ECHO_T}yes" >&6 | ||
8303 | cat >>confdefs.h <<\_ACEOF | ||
8304 | #define HAVE_STRICT_MKSTEMP 1 | ||
8305 | _ACEOF | ||
8306 | |||
8307 | |||
8308 | |||
8309 | else | ||
8310 | cat >conftest.$ac_ext <<_ACEOF | ||
8311 | #line $LINENO "configure" | ||
8312 | #include "confdefs.h" | ||
8313 | |||
8314 | #include <stdlib.h> | ||
8315 | main() { char template[]="conftest.mkstemp-test"; | ||
8316 | if (mkstemp(template) == -1) | ||
8317 | exit(1); | ||
8318 | unlink(template); exit(0); | ||
8319 | } | ||
8320 | |||
8321 | _ACEOF | ||
8322 | rm -f conftest$ac_exeext | ||
8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8324 | (eval $ac_link) 2>&5 | ||
8325 | ac_status=$? | ||
8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8329 | (eval $ac_try) 2>&5 | ||
8330 | ac_status=$? | ||
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8332 | (exit $ac_status); }; }; then | ||
8333 | |||
8334 | echo "$as_me:$LINENO: result: no" >&5 | ||
8335 | echo "${ECHO_T}no" >&6 | ||
8336 | |||
8337 | else | ||
8338 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8339 | echo "$as_me: failed program was:" >&5 | ||
8340 | cat conftest.$ac_ext >&5 | ||
8341 | ( exit $ac_status ) | ||
8342 | |||
8343 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8344 | echo "${ECHO_T}yes" >&6 | ||
8345 | cat >>confdefs.h <<\_ACEOF | ||
8346 | #define HAVE_STRICT_MKSTEMP 1 | ||
8347 | _ACEOF | ||
8348 | |||
8349 | |||
8350 | fi | ||
8351 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8352 | fi | ||
8353 | fi | ||
8354 | |||
8355 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
8356 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
8357 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8359 | else | ||
8360 | # Use it with a single arg. | ||
8361 | cat >conftest.$ac_ext <<_ACEOF | ||
8362 | #line $LINENO "configure" | ||
8363 | #include "confdefs.h" | ||
8364 | $ac_includes_default | ||
8365 | #ifdef F77_DUMMY_MAIN | ||
8366 | # ifdef __cplusplus | ||
8367 | extern "C" | ||
8368 | # endif | ||
8369 | int F77_DUMMY_MAIN() { return 1; } | ||
8370 | #endif | ||
8371 | int | ||
8372 | main () | ||
8373 | { | ||
8374 | getpgrp (0); | ||
8375 | ; | ||
8376 | return 0; | ||
8377 | } | ||
8378 | _ACEOF | ||
8379 | rm -f conftest.$ac_objext | ||
8380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8381 | (eval $ac_compile) 2>&5 | ||
8382 | ac_status=$? | ||
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8384 | (exit $ac_status); } && | ||
8385 | { ac_try='test -s conftest.$ac_objext' | ||
8386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8387 | (eval $ac_try) 2>&5 | ||
8388 | ac_status=$? | ||
8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8390 | (exit $ac_status); }; }; then | ||
8391 | ac_cv_func_getpgrp_void=no | ||
8392 | else | ||
8393 | echo "$as_me: failed program was:" >&5 | ||
8394 | cat conftest.$ac_ext >&5 | ||
8395 | ac_cv_func_getpgrp_void=yes | ||
8396 | fi | ||
8397 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8398 | |||
8399 | fi | ||
8400 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
8401 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
8402 | if test $ac_cv_func_getpgrp_void = yes; then | ||
8403 | |||
8404 | cat >>confdefs.h <<\_ACEOF | ||
8405 | #define GETPGRP_VOID 1 | ||
8406 | _ACEOF | ||
8407 | |||
8408 | fi | ||
8409 | |||
8410 | |||
8411 | # Check for PAM libs | ||
8412 | PAM_MSG="no" | ||
8413 | |||
8414 | # Check whether --with-pam or --without-pam was given. | ||
8415 | if test "${with_pam+set}" = set; then | ||
8416 | withval="$with_pam" | ||
8417 | |||
8418 | if test "x$withval" != "xno" ; then | ||
8419 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
8420 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
8421 | echo "$as_me: error: PAM headers not found" >&2;} | ||
8422 | { (exit 1); exit 1; }; } | ||
8423 | fi | ||
8424 | |||
8425 | |||
8426 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
8427 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8428 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8430 | else | ||
8431 | ac_check_lib_save_LIBS=$LIBS | ||
8432 | LIBS="-ldl $LIBS" | ||
8433 | cat >conftest.$ac_ext <<_ACEOF | ||
8434 | #line $LINENO "configure" | ||
8435 | #include "confdefs.h" | ||
8436 | |||
8437 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8438 | #ifdef __cplusplus | ||
8439 | extern "C" | ||
8440 | #endif | ||
8441 | /* We use char because int might match the return type of a gcc2 | ||
8442 | builtin and then its argument prototype would still apply. */ | ||
8443 | char dlopen (); | ||
8444 | #ifdef F77_DUMMY_MAIN | ||
8445 | # ifdef __cplusplus | ||
8446 | extern "C" | ||
8447 | # endif | ||
8448 | int F77_DUMMY_MAIN() { return 1; } | ||
8449 | #endif | ||
8450 | int | ||
8451 | main () | ||
8452 | { | ||
8453 | dlopen (); | ||
8454 | ; | ||
8455 | return 0; | ||
8456 | } | ||
8457 | _ACEOF | ||
8458 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8460 | (eval $ac_link) 2>&5 | ||
8461 | ac_status=$? | ||
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8463 | (exit $ac_status); } && | ||
8464 | { ac_try='test -s conftest$ac_exeext' | ||
8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8466 | (eval $ac_try) 2>&5 | ||
8467 | ac_status=$? | ||
8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8469 | (exit $ac_status); }; }; then | ||
8470 | ac_cv_lib_dl_dlopen=yes | ||
8471 | else | ||
8472 | echo "$as_me: failed program was:" >&5 | ||
8473 | cat conftest.$ac_ext >&5 | ||
8474 | ac_cv_lib_dl_dlopen=no | ||
8475 | fi | ||
8476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8477 | LIBS=$ac_check_lib_save_LIBS | ||
8478 | fi | ||
8479 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8480 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8481 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8482 | cat >>confdefs.h <<_ACEOF | ||
8483 | #define HAVE_LIBDL 1 | ||
8484 | _ACEOF | ||
8485 | |||
8486 | LIBS="-ldl $LIBS" | ||
8487 | |||
8488 | fi | ||
8489 | |||
8490 | |||
8491 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
8492 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
8493 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8495 | else | ||
8496 | ac_check_lib_save_LIBS=$LIBS | ||
8497 | LIBS="-lpam $LIBS" | ||
8498 | cat >conftest.$ac_ext <<_ACEOF | ||
8499 | #line $LINENO "configure" | ||
8500 | #include "confdefs.h" | ||
8501 | |||
8502 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8503 | #ifdef __cplusplus | ||
8504 | extern "C" | ||
8505 | #endif | ||
8506 | /* We use char because int might match the return type of a gcc2 | ||
8507 | builtin and then its argument prototype would still apply. */ | ||
8508 | char pam_set_item (); | ||
8509 | #ifdef F77_DUMMY_MAIN | ||
8510 | # ifdef __cplusplus | ||
8511 | extern "C" | ||
8512 | # endif | ||
8513 | int F77_DUMMY_MAIN() { return 1; } | ||
8514 | #endif | ||
8515 | int | ||
8516 | main () | ||
8517 | { | ||
8518 | pam_set_item (); | ||
8519 | ; | ||
8520 | return 0; | ||
8521 | } | ||
8522 | _ACEOF | ||
8523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8525 | (eval $ac_link) 2>&5 | ||
8526 | ac_status=$? | ||
8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8528 | (exit $ac_status); } && | ||
8529 | { ac_try='test -s conftest$ac_exeext' | ||
8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8531 | (eval $ac_try) 2>&5 | ||
8532 | ac_status=$? | ||
8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8534 | (exit $ac_status); }; }; then | ||
8535 | ac_cv_lib_pam_pam_set_item=yes | ||
8536 | else | ||
8537 | echo "$as_me: failed program was:" >&5 | ||
8538 | cat conftest.$ac_ext >&5 | ||
8539 | ac_cv_lib_pam_pam_set_item=no | ||
8540 | fi | ||
8541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8542 | LIBS=$ac_check_lib_save_LIBS | ||
8543 | fi | ||
8544 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
8545 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
8546 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
8547 | cat >>confdefs.h <<_ACEOF | ||
8548 | #define HAVE_LIBPAM 1 | ||
8549 | _ACEOF | ||
8550 | |||
8551 | LIBS="-lpam $LIBS" | ||
8552 | |||
8553 | else | ||
8554 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
8555 | echo "$as_me: error: *** libpam missing" >&2;} | ||
8556 | { (exit 1); exit 1; }; } | ||
8557 | fi | ||
8558 | |||
8559 | |||
8560 | for ac_func in pam_getenvlist | ||
8561 | do | ||
8562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8563 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8565 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8567 | else | ||
8568 | cat >conftest.$ac_ext <<_ACEOF | ||
8569 | #line $LINENO "configure" | ||
8570 | #include "confdefs.h" | ||
8571 | /* System header to define __stub macros and hopefully few prototypes, | ||
8572 | which can conflict with char $ac_func (); below. */ | ||
8573 | #include <assert.h> | ||
8574 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8575 | #ifdef __cplusplus | ||
8576 | extern "C" | ||
8577 | #endif | ||
8578 | /* We use char because int might match the return type of a gcc2 | ||
8579 | builtin and then its argument prototype would still apply. */ | ||
8580 | char $ac_func (); | ||
8581 | char (*f) (); | ||
8582 | |||
8583 | #ifdef F77_DUMMY_MAIN | ||
8584 | # ifdef __cplusplus | ||
8585 | extern "C" | ||
8586 | # endif | ||
8587 | int F77_DUMMY_MAIN() { return 1; } | ||
8588 | #endif | ||
8589 | int | ||
8590 | main () | ||
8591 | { | ||
8592 | /* The GNU C library defines this for functions which it implements | ||
8593 | to always fail with ENOSYS. Some functions are actually named | ||
8594 | something starting with __ and the normal name is an alias. */ | ||
8595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8596 | choke me | ||
8597 | #else | ||
8598 | f = $ac_func; | ||
8599 | #endif | ||
8600 | |||
8601 | ; | ||
8602 | return 0; | ||
8603 | } | ||
8604 | _ACEOF | ||
8605 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8607 | (eval $ac_link) 2>&5 | ||
8608 | ac_status=$? | ||
8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8610 | (exit $ac_status); } && | ||
8611 | { ac_try='test -s conftest$ac_exeext' | ||
8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8613 | (eval $ac_try) 2>&5 | ||
8614 | ac_status=$? | ||
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8616 | (exit $ac_status); }; }; then | ||
8617 | eval "$as_ac_var=yes" | ||
8618 | else | ||
8619 | echo "$as_me: failed program was:" >&5 | ||
8620 | cat conftest.$ac_ext >&5 | ||
8621 | eval "$as_ac_var=no" | ||
8622 | fi | ||
8623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8624 | fi | ||
8625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8626 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8627 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8628 | cat >>confdefs.h <<_ACEOF | ||
8629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8630 | _ACEOF | ||
8631 | |||
8632 | fi | ||
8633 | done | ||
8634 | |||
8635 | |||
8636 | disable_shadow=yes | ||
8637 | PAM_MSG="yes" | ||
8638 | |||
8639 | cat >>confdefs.h <<\_ACEOF | ||
8640 | #define USE_PAM 1 | ||
8641 | _ACEOF | ||
8642 | |||
8643 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8644 | LIBPAM="-lpam -ldl" | ||
8645 | else | ||
8646 | LIBPAM="-lpam" | ||
8647 | fi | ||
8648 | |||
8649 | fi | ||
8650 | |||
8651 | |||
8652 | fi; | ||
8653 | |||
8654 | # Check for older PAM | ||
8655 | if test "x$PAM_MSG" = "xyes" ; then | ||
8656 | # Check PAM strerror arguments (old PAM) | ||
8657 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
8658 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
8659 | cat >conftest.$ac_ext <<_ACEOF | ||
8660 | #line $LINENO "configure" | ||
8661 | #include "confdefs.h" | ||
8662 | |||
8663 | #include <stdlib.h> | ||
8664 | #include <security/pam_appl.h> | ||
8665 | |||
8666 | #ifdef F77_DUMMY_MAIN | ||
8667 | # ifdef __cplusplus | ||
8668 | extern "C" | ||
8669 | # endif | ||
8670 | int F77_DUMMY_MAIN() { return 1; } | ||
8671 | #endif | ||
8672 | int | ||
8673 | main () | ||
8674 | { | ||
8675 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
8676 | ; | ||
8677 | return 0; | ||
8678 | } | ||
8679 | _ACEOF | ||
8680 | rm -f conftest.$ac_objext | ||
8681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8682 | (eval $ac_compile) 2>&5 | ||
8683 | ac_status=$? | ||
8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8685 | (exit $ac_status); } && | ||
8686 | { ac_try='test -s conftest.$ac_objext' | ||
8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8688 | (eval $ac_try) 2>&5 | ||
8689 | ac_status=$? | ||
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8691 | (exit $ac_status); }; }; then | ||
8692 | echo "$as_me:$LINENO: result: no" >&5 | ||
8693 | echo "${ECHO_T}no" >&6 | ||
8694 | else | ||
8695 | echo "$as_me: failed program was:" >&5 | ||
8696 | cat conftest.$ac_ext >&5 | ||
8697 | |||
8698 | cat >>confdefs.h <<\_ACEOF | ||
8699 | #define HAVE_OLD_PAM 1 | ||
8700 | _ACEOF | ||
8701 | |||
8702 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8703 | echo "${ECHO_T}yes" >&6 | ||
8704 | PAM_MSG="yes (old library)" | ||
8705 | |||
8706 | |||
8707 | fi | ||
8708 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
8709 | fi | ||
8710 | |||
8711 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
8712 | # because the system crypt() is more featureful. | ||
8713 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
8714 | |||
8715 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
8716 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
8717 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
8718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8719 | else | ||
8720 | ac_check_lib_save_LIBS=$LIBS | ||
8721 | LIBS="-lcrypt $LIBS" | ||
8722 | cat >conftest.$ac_ext <<_ACEOF | ||
8723 | #line $LINENO "configure" | ||
8724 | #include "confdefs.h" | ||
8725 | |||
8726 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8727 | #ifdef __cplusplus | ||
8728 | extern "C" | ||
8729 | #endif | ||
8730 | /* We use char because int might match the return type of a gcc2 | ||
8731 | builtin and then its argument prototype would still apply. */ | ||
8732 | char crypt (); | ||
8733 | #ifdef F77_DUMMY_MAIN | ||
8734 | # ifdef __cplusplus | ||
8735 | extern "C" | ||
8736 | # endif | ||
8737 | int F77_DUMMY_MAIN() { return 1; } | ||
8738 | #endif | ||
8739 | int | ||
8740 | main () | ||
8741 | { | ||
8742 | crypt (); | ||
8743 | ; | ||
8744 | return 0; | ||
8745 | } | ||
8746 | _ACEOF | ||
8747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8749 | (eval $ac_link) 2>&5 | ||
8750 | ac_status=$? | ||
8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8752 | (exit $ac_status); } && | ||
8753 | { ac_try='test -s conftest$ac_exeext' | ||
8754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8755 | (eval $ac_try) 2>&5 | ||
8756 | ac_status=$? | ||
8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8758 | (exit $ac_status); }; }; then | ||
8759 | ac_cv_lib_crypt_crypt=yes | ||
8760 | else | ||
8761 | echo "$as_me: failed program was:" >&5 | ||
8762 | cat conftest.$ac_ext >&5 | ||
8763 | ac_cv_lib_crypt_crypt=no | ||
8764 | fi | ||
8765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8766 | LIBS=$ac_check_lib_save_LIBS | ||
8767 | fi | ||
8768 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
8769 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
8770 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
8771 | cat >>confdefs.h <<_ACEOF | ||
8772 | #define HAVE_LIBCRYPT 1 | ||
8773 | _ACEOF | ||
8774 | |||
8775 | LIBS="-lcrypt $LIBS" | ||
8776 | |||
8777 | fi | ||
8778 | |||
8779 | fi | ||
8780 | |||
8781 | # Search for OpenSSL | ||
8782 | saved_CPPFLAGS="$CPPFLAGS" | ||
8783 | saved_LDFLAGS="$LDFLAGS" | ||
8784 | |||
8785 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
8786 | if test "${with_ssl_dir+set}" = set; then | ||
8787 | withval="$with_ssl_dir" | ||
8788 | |||
8789 | if test "x$withval" != "xno" ; then | ||
8790 | if test -d "$withval/lib"; then | ||
8791 | if test -n "${need_dash_r}"; then | ||
8792 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8793 | else | ||
8794 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8795 | fi | ||
8796 | else | ||
8797 | if test -n "${need_dash_r}"; then | ||
8798 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8799 | else | ||
8800 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8801 | fi | ||
8802 | fi | ||
8803 | if test -d "$withval/include"; then | ||
8804 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8805 | else | ||
8806 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8807 | fi | ||
8808 | fi | ||
8809 | |||
8810 | |||
8811 | fi; | ||
8812 | LIBS="$LIBS -lcrypto" | ||
8813 | cat >conftest.$ac_ext <<_ACEOF | ||
8814 | #line $LINENO "configure" | ||
8815 | #include "confdefs.h" | ||
8816 | |||
8817 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8818 | #ifdef __cplusplus | ||
8819 | extern "C" | ||
8820 | #endif | ||
8821 | /* We use char because int might match the return type of a gcc2 | ||
8822 | builtin and then its argument prototype would still apply. */ | ||
8823 | char RAND_add (); | ||
8824 | #ifdef F77_DUMMY_MAIN | ||
8825 | # ifdef __cplusplus | ||
8826 | extern "C" | ||
8827 | # endif | ||
8828 | int F77_DUMMY_MAIN() { return 1; } | ||
8829 | #endif | ||
8830 | int | ||
8831 | main () | ||
8832 | { | ||
8833 | RAND_add (); | ||
8834 | ; | ||
8835 | return 0; | ||
8836 | } | ||
8837 | _ACEOF | ||
8838 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8840 | (eval $ac_link) 2>&5 | ||
8841 | ac_status=$? | ||
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8843 | (exit $ac_status); } && | ||
8844 | { ac_try='test -s conftest$ac_exeext' | ||
8845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8846 | (eval $ac_try) 2>&5 | ||
8847 | ac_status=$? | ||
8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8849 | (exit $ac_status); }; }; then | ||
8850 | cat >>confdefs.h <<\_ACEOF | ||
8851 | #define HAVE_OPENSSL 1 | ||
8852 | _ACEOF | ||
8853 | |||
8854 | else | ||
8855 | echo "$as_me: failed program was:" >&5 | ||
8856 | cat conftest.$ac_ext >&5 | ||
8857 | |||
8858 | if test -n "${need_dash_r}"; then | ||
8859 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8860 | else | ||
8861 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
8862 | fi | ||
8863 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
8864 | cat >conftest.$ac_ext <<_ACEOF | ||
8865 | #line $LINENO "configure" | ||
8866 | #include "confdefs.h" | ||
8867 | |||
8868 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8869 | #ifdef __cplusplus | ||
8870 | extern "C" | ||
8871 | #endif | ||
8872 | /* We use char because int might match the return type of a gcc2 | ||
8873 | builtin and then its argument prototype would still apply. */ | ||
8874 | char RAND_add (); | ||
8875 | #ifdef F77_DUMMY_MAIN | ||
8876 | # ifdef __cplusplus | ||
8877 | extern "C" | ||
8878 | # endif | ||
8879 | int F77_DUMMY_MAIN() { return 1; } | ||
8880 | #endif | ||
8881 | int | ||
8882 | main () | ||
8883 | { | ||
8884 | RAND_add (); | ||
8885 | ; | ||
8886 | return 0; | ||
8887 | } | ||
8888 | _ACEOF | ||
8889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8891 | (eval $ac_link) 2>&5 | ||
8892 | ac_status=$? | ||
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8894 | (exit $ac_status); } && | ||
8895 | { ac_try='test -s conftest$ac_exeext' | ||
8896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8897 | (eval $ac_try) 2>&5 | ||
8898 | ac_status=$? | ||
8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8900 | (exit $ac_status); }; }; then | ||
8901 | cat >>confdefs.h <<\_ACEOF | ||
8902 | #define HAVE_OPENSSL 1 | ||
8903 | _ACEOF | ||
8904 | |||
8905 | else | ||
8906 | echo "$as_me: failed program was:" >&5 | ||
8907 | cat conftest.$ac_ext >&5 | ||
8908 | |||
8909 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
8910 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
8911 | { (exit 1); exit 1; }; } | ||
8912 | |||
8913 | |||
8914 | fi | ||
8915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8916 | |||
8917 | |||
8918 | fi | ||
8919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
8920 | |||
8921 | # Determine OpenSSL header version | ||
8922 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
8923 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
8924 | if test "$cross_compiling" = yes; then | ||
8925 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8926 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8927 | { (exit 1); exit 1; }; } | ||
8928 | else | ||
8929 | cat >conftest.$ac_ext <<_ACEOF | ||
8930 | #line $LINENO "configure" | ||
8931 | #include "confdefs.h" | ||
8932 | |||
8933 | #include <stdio.h> | ||
8934 | #include <string.h> | ||
8935 | #include <openssl/opensslv.h> | ||
8936 | #define DATA "conftest.sslincver" | ||
8937 | int main(void) { | ||
8938 | FILE *fd; | ||
8939 | int rc; | ||
8940 | |||
8941 | fd = fopen(DATA,"w"); | ||
8942 | if(fd == NULL) | ||
8943 | exit(1); | ||
8944 | |||
8945 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
8946 | exit(1); | ||
8947 | |||
8948 | exit(0); | ||
8949 | } | ||
8950 | |||
8951 | _ACEOF | ||
8952 | rm -f conftest$ac_exeext | ||
8953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8954 | (eval $ac_link) 2>&5 | ||
8955 | ac_status=$? | ||
8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8957 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8959 | (eval $ac_try) 2>&5 | ||
8960 | ac_status=$? | ||
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8962 | (exit $ac_status); }; }; then | ||
8963 | |||
8964 | ssl_header_ver=`cat conftest.sslincver` | ||
8965 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
8966 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
8967 | |||
8968 | else | ||
8969 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8970 | echo "$as_me: failed program was:" >&5 | ||
8971 | cat conftest.$ac_ext >&5 | ||
8972 | ( exit $ac_status ) | ||
8973 | |||
8974 | echo "$as_me:$LINENO: result: not found" >&5 | ||
8975 | echo "${ECHO_T}not found" >&6 | ||
8976 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
8977 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
8978 | { (exit 1); exit 1; }; } | ||
8979 | |||
8980 | |||
8981 | fi | ||
8982 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8983 | fi | ||
8984 | |||
8985 | # Determine OpenSSL library version | ||
8986 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
8987 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
8988 | if test "$cross_compiling" = yes; then | ||
8989 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
8990 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
8991 | { (exit 1); exit 1; }; } | ||
8992 | else | ||
8993 | cat >conftest.$ac_ext <<_ACEOF | ||
8994 | #line $LINENO "configure" | ||
8995 | #include "confdefs.h" | ||
8996 | |||
8997 | #include <stdio.h> | ||
8998 | #include <string.h> | ||
8999 | #include <openssl/opensslv.h> | ||
9000 | #include <openssl/crypto.h> | ||
9001 | #define DATA "conftest.ssllibver" | ||
9002 | int main(void) { | ||
9003 | FILE *fd; | ||
9004 | int rc; | ||
9005 | |||
9006 | fd = fopen(DATA,"w"); | ||
9007 | if(fd == NULL) | ||
9008 | exit(1); | ||
9009 | |||
9010 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
9011 | exit(1); | ||
9012 | |||
9013 | exit(0); | ||
9014 | } | ||
9015 | |||
9016 | _ACEOF | ||
9017 | rm -f conftest$ac_exeext | ||
9018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9019 | (eval $ac_link) 2>&5 | ||
9020 | ac_status=$? | ||
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9024 | (eval $ac_try) 2>&5 | ||
9025 | ac_status=$? | ||
9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9027 | (exit $ac_status); }; }; then | ||
9028 | |||
9029 | ssl_library_ver=`cat conftest.ssllibver` | ||
9030 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
9031 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
9032 | |||
9033 | else | ||
9034 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9035 | echo "$as_me: failed program was:" >&5 | ||
9036 | cat conftest.$ac_ext >&5 | ||
9037 | ( exit $ac_status ) | ||
9038 | |||
9039 | echo "$as_me:$LINENO: result: not found" >&5 | ||
9040 | echo "${ECHO_T}not found" >&6 | ||
9041 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
9042 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
9043 | { (exit 1); exit 1; }; } | ||
9044 | |||
9045 | |||
9046 | fi | ||
9047 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9048 | fi | ||
9049 | |||
9050 | # Sanity check OpenSSL headers | ||
9051 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
9052 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
9053 | if test "$cross_compiling" = yes; then | ||
9054 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9055 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9056 | { (exit 1); exit 1; }; } | ||
9057 | else | ||
9058 | cat >conftest.$ac_ext <<_ACEOF | ||
9059 | #line $LINENO "configure" | ||
9060 | #include "confdefs.h" | ||
9061 | |||
9062 | #include <string.h> | ||
9063 | #include <openssl/opensslv.h> | ||
9064 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
9065 | |||
9066 | _ACEOF | ||
9067 | rm -f conftest$ac_exeext | ||
9068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9069 | (eval $ac_link) 2>&5 | ||
9070 | ac_status=$? | ||
9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9074 | (eval $ac_try) 2>&5 | ||
9075 | ac_status=$? | ||
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9077 | (exit $ac_status); }; }; then | ||
9078 | |||
9079 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9080 | echo "${ECHO_T}yes" >&6 | ||
9081 | |||
9082 | else | ||
9083 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9084 | echo "$as_me: failed program was:" >&5 | ||
9085 | cat conftest.$ac_ext >&5 | ||
9086 | ( exit $ac_status ) | ||
9087 | |||
9088 | echo "$as_me:$LINENO: result: no" >&5 | ||
9089 | echo "${ECHO_T}no" >&6 | ||
9090 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5 | ||
9091 | echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;} | ||
9092 | { (exit 1); exit 1; }; } | ||
9093 | |||
9094 | |||
9095 | fi | ||
9096 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9097 | fi | ||
9098 | |||
9099 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
9100 | # version in OpenSSL. Skip this for PAM | ||
9101 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | ||
9102 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
9103 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
9104 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
9105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9106 | else | ||
9107 | ac_check_lib_save_LIBS=$LIBS | ||
9108 | LIBS="-lcrypt $LIBS" | ||
9109 | cat >conftest.$ac_ext <<_ACEOF | ||
9110 | #line $LINENO "configure" | ||
9111 | #include "confdefs.h" | ||
9112 | |||
9113 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9114 | #ifdef __cplusplus | ||
9115 | extern "C" | ||
9116 | #endif | ||
9117 | /* We use char because int might match the return type of a gcc2 | ||
9118 | builtin and then its argument prototype would still apply. */ | ||
9119 | char crypt (); | ||
9120 | #ifdef F77_DUMMY_MAIN | ||
9121 | # ifdef __cplusplus | ||
9122 | extern "C" | ||
9123 | # endif | ||
9124 | int F77_DUMMY_MAIN() { return 1; } | ||
9125 | #endif | ||
9126 | int | ||
9127 | main () | ||
9128 | { | ||
9129 | crypt (); | ||
9130 | ; | ||
9131 | return 0; | ||
9132 | } | ||
9133 | _ACEOF | ||
9134 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9136 | (eval $ac_link) 2>&5 | ||
9137 | ac_status=$? | ||
9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9139 | (exit $ac_status); } && | ||
9140 | { ac_try='test -s conftest$ac_exeext' | ||
9141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9142 | (eval $ac_try) 2>&5 | ||
9143 | ac_status=$? | ||
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9145 | (exit $ac_status); }; }; then | ||
9146 | ac_cv_lib_crypt_crypt=yes | ||
9147 | else | ||
9148 | echo "$as_me: failed program was:" >&5 | ||
9149 | cat conftest.$ac_ext >&5 | ||
9150 | ac_cv_lib_crypt_crypt=no | ||
9151 | fi | ||
9152 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
9153 | LIBS=$ac_check_lib_save_LIBS | ||
9154 | fi | ||
9155 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
9156 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
9157 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
9158 | LIBS="$LIBS -lcrypt" | ||
9159 | fi | ||
9160 | |||
9161 | fi | ||
9162 | |||
9163 | |||
9164 | ### Configure cryptographic random number support | ||
9165 | |||
9166 | # Check wheter OpenSSL seeds itself | ||
9167 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
9168 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
9169 | if test "$cross_compiling" = yes; then | ||
9170 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
9171 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
9172 | { (exit 1); exit 1; }; } | ||
9173 | else | ||
9174 | cat >conftest.$ac_ext <<_ACEOF | ||
9175 | #line $LINENO "configure" | ||
9176 | #include "confdefs.h" | ||
9177 | |||
9178 | #include <string.h> | ||
9179 | #include <openssl/rand.h> | ||
9180 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
9181 | |||
9182 | _ACEOF | ||
9183 | rm -f conftest$ac_exeext | ||
9184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9185 | (eval $ac_link) 2>&5 | ||
9186 | ac_status=$? | ||
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9190 | (eval $ac_try) 2>&5 | ||
9191 | ac_status=$? | ||
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9193 | (exit $ac_status); }; }; then | ||
9194 | |||
9195 | OPENSSL_SEEDS_ITSELF=yes | ||
9196 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9197 | echo "${ECHO_T}yes" >&6 | ||
9198 | |||
9199 | else | ||
9200 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9201 | echo "$as_me: failed program was:" >&5 | ||
9202 | cat conftest.$ac_ext >&5 | ||
9203 | ( exit $ac_status ) | ||
9204 | |||
9205 | echo "$as_me:$LINENO: result: no" >&5 | ||
9206 | echo "${ECHO_T}no" >&6 | ||
9207 | # Default to use of the rand helper if OpenSSL doesn't | ||
9208 | # seed itself | ||
9209 | USE_RAND_HELPER=yes | ||
9210 | |||
9211 | |||
9212 | fi | ||
9213 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9214 | fi | ||
9215 | |||
9216 | |||
9217 | # Do we want to force the use of the rand helper? | ||
9218 | |||
9219 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
9220 | if test "${with_rand_helper+set}" = set; then | ||
9221 | withval="$with_rand_helper" | ||
9222 | |||
9223 | if test "x$withval" = "xno" ; then | ||
9224 | # Force use of OpenSSL's internal RNG, even if | ||
9225 | # the previous test showed it to be unseeded. | ||
9226 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
9227 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
9228 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
9229 | OPENSSL_SEEDS_ITSELF=yes | ||
9230 | USE_RAND_HELPER="" | ||
9231 | fi | ||
9232 | else | ||
9233 | USE_RAND_HELPER=yes | ||
9234 | fi | ||
9235 | |||
9236 | fi; | ||
9237 | |||
9238 | # Which randomness source do we use? | ||
9239 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
9240 | # OpenSSL only | ||
9241 | cat >>confdefs.h <<\_ACEOF | ||
9242 | #define OPENSSL_PRNG_ONLY 1 | ||
9243 | _ACEOF | ||
9244 | |||
9245 | RAND_MSG="OpenSSL internal ONLY" | ||
9246 | INSTALL_SSH_RAND_HELPER="" | ||
9247 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
9248 | # install rand helper | ||
9249 | RAND_MSG="ssh-rand-helper" | ||
9250 | INSTALL_SSH_RAND_HELPER="yes" | ||
9251 | fi | ||
9252 | |||
9253 | |||
9254 | ### Configuration of ssh-rand-helper | ||
9255 | |||
9256 | # PRNGD TCP socket | ||
9257 | |||
9258 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
9259 | if test "${with_prngd_port+set}" = set; then | ||
9260 | withval="$with_prngd_port" | ||
9261 | |||
9262 | case "$withval" in | ||
9263 | no) | ||
9264 | withval="" | ||
9265 | ;; | ||
9266 | [0-9]*) | ||
9267 | ;; | ||
9268 | *) | ||
9269 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
9270 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
9271 | { (exit 1); exit 1; }; } | ||
9272 | ;; | ||
9273 | esac | ||
9274 | if test ! -z "$withval" ; then | ||
9275 | PRNGD_PORT="$withval" | ||
9276 | cat >>confdefs.h <<_ACEOF | ||
9277 | #define PRNGD_PORT $PRNGD_PORT | ||
9278 | _ACEOF | ||
9279 | |||
9280 | fi | ||
9281 | |||
9282 | |||
9283 | fi; | ||
9284 | |||
9285 | # PRNGD Unix domain socket | ||
9286 | |||
9287 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
9288 | if test "${with_prngd_socket+set}" = set; then | ||
9289 | withval="$with_prngd_socket" | ||
9290 | |||
9291 | case "$withval" in | ||
9292 | yes) | ||
9293 | withval="/var/run/egd-pool" | ||
9294 | ;; | ||
9295 | no) | ||
9296 | withval="" | ||
9297 | ;; | ||
9298 | /*) | ||
9299 | ;; | ||
9300 | *) | ||
9301 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
9302 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
9303 | { (exit 1); exit 1; }; } | ||
9304 | ;; | ||
9305 | esac | ||
9306 | |||
9307 | if test ! -z "$withval" ; then | ||
9308 | if test ! -z "$PRNGD_PORT" ; then | ||
9309 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
9310 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
9311 | { (exit 1); exit 1; }; } | ||
9312 | fi | ||
9313 | if test ! -r "$withval" ; then | ||
9314 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
9315 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
9316 | fi | ||
9317 | PRNGD_SOCKET="$withval" | ||
9318 | cat >>confdefs.h <<_ACEOF | ||
9319 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9320 | _ACEOF | ||
9321 | |||
9322 | fi | ||
9323 | |||
9324 | else | ||
9325 | |||
9326 | # Check for existing socket only if we don't have a random device already | ||
9327 | if test "$USE_RAND_HELPER" = yes ; then | ||
9328 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
9329 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
9330 | # Insert other locations here | ||
9331 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
9332 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
9333 | PRNGD_SOCKET="$sock" | ||
9334 | cat >>confdefs.h <<_ACEOF | ||
9335 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
9336 | _ACEOF | ||
9337 | |||
9338 | break; | ||
9339 | fi | ||
9340 | done | ||
9341 | if test ! -z "$PRNGD_SOCKET" ; then | ||
9342 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
9343 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
9344 | else | ||
9345 | echo "$as_me:$LINENO: result: not found" >&5 | ||
9346 | echo "${ECHO_T}not found" >&6 | ||
9347 | fi | ||
9348 | fi | ||
9349 | |||
9350 | |||
9351 | fi; | ||
9352 | |||
9353 | # Change default command timeout for hashing entropy source | ||
9354 | entropy_timeout=200 | ||
9355 | |||
9356 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
9357 | if test "${with_entropy_timeout+set}" = set; then | ||
9358 | withval="$with_entropy_timeout" | ||
9359 | |||
9360 | if test "x$withval" != "xno" ; then | ||
9361 | entropy_timeout=$withval | ||
9362 | fi | ||
9363 | |||
9364 | |||
9365 | fi; | ||
9366 | cat >>confdefs.h <<_ACEOF | ||
9367 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
9368 | _ACEOF | ||
9369 | |||
9370 | |||
9371 | SSH_PRIVSEP_USER=sshd | ||
9372 | |||
9373 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
9374 | if test "${with_privsep_user+set}" = set; then | ||
9375 | withval="$with_privsep_user" | ||
9376 | |||
9377 | if test -n "$withval"; then | ||
9378 | SSH_PRIVSEP_USER=$withval | ||
9379 | fi | ||
9380 | |||
9381 | |||
9382 | fi; | ||
9383 | cat >>confdefs.h <<_ACEOF | ||
9384 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
9385 | _ACEOF | ||
9386 | |||
9387 | |||
9388 | |||
9389 | # We do this little dance with the search path to insure | ||
9390 | # that programs that we select for use by installed programs | ||
9391 | # (which may be run by the super-user) come from trusted | ||
9392 | # locations before they come from the user's private area. | ||
9393 | # This should help avoid accidentally configuring some | ||
9394 | # random version of a program in someone's personal bin. | ||
9395 | |||
9396 | OPATH=$PATH | ||
9397 | PATH=/bin:/usr/bin | ||
9398 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
9399 | test -d /sbin && PATH=$PATH:/sbin | ||
9400 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
9401 | PATH=$PATH:/etc:$OPATH | ||
9402 | |||
9403 | # These programs are used by the command hashing source to gather entropy | ||
9404 | |||
9405 | # Extract the first word of "ls", so it can be a program name with args. | ||
9406 | set dummy ls; ac_word=$2 | ||
9407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9409 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
9410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9411 | else | ||
9412 | case $PROG_LS in | ||
9413 | [\\/]* | ?:[\\/]*) | ||
9414 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
9415 | ;; | ||
9416 | *) | ||
9417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9418 | for as_dir in $PATH | ||
9419 | do | ||
9420 | IFS=$as_save_IFS | ||
9421 | test -z "$as_dir" && as_dir=. | ||
9422 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9423 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9424 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
9425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9426 | break 2 | ||
9427 | fi | ||
9428 | done | ||
9429 | done | ||
9430 | |||
9431 | ;; | ||
9432 | esac | ||
9433 | fi | ||
9434 | PROG_LS=$ac_cv_path_PROG_LS | ||
9435 | |||
9436 | if test -n "$PROG_LS"; then | ||
9437 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
9438 | echo "${ECHO_T}$PROG_LS" >&6 | ||
9439 | else | ||
9440 | echo "$as_me:$LINENO: result: no" >&5 | ||
9441 | echo "${ECHO_T}no" >&6 | ||
9442 | fi | ||
9443 | |||
9444 | if test -z "$PROG_LS" ; then | ||
9445 | PROG_LS="undef" | ||
9446 | fi | ||
9447 | |||
9448 | |||
9449 | |||
9450 | # Extract the first word of "netstat", so it can be a program name with args. | ||
9451 | set dummy netstat; ac_word=$2 | ||
9452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9454 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
9455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9456 | else | ||
9457 | case $PROG_NETSTAT in | ||
9458 | [\\/]* | ?:[\\/]*) | ||
9459 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
9460 | ;; | ||
9461 | *) | ||
9462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9463 | for as_dir in $PATH | ||
9464 | do | ||
9465 | IFS=$as_save_IFS | ||
9466 | test -z "$as_dir" && as_dir=. | ||
9467 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9469 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9471 | break 2 | ||
9472 | fi | ||
9473 | done | ||
9474 | done | ||
9475 | |||
9476 | ;; | ||
9477 | esac | ||
9478 | fi | ||
9479 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
9480 | |||
9481 | if test -n "$PROG_NETSTAT"; then | ||
9482 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
9483 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
9484 | else | ||
9485 | echo "$as_me:$LINENO: result: no" >&5 | ||
9486 | echo "${ECHO_T}no" >&6 | ||
9487 | fi | ||
9488 | |||
9489 | if test -z "$PROG_NETSTAT" ; then | ||
9490 | PROG_NETSTAT="undef" | ||
9491 | fi | ||
9492 | |||
9493 | |||
9494 | |||
9495 | # Extract the first word of "arp", so it can be a program name with args. | ||
9496 | set dummy arp; ac_word=$2 | ||
9497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9499 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
9500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9501 | else | ||
9502 | case $PROG_ARP in | ||
9503 | [\\/]* | ?:[\\/]*) | ||
9504 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
9505 | ;; | ||
9506 | *) | ||
9507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9508 | for as_dir in $PATH | ||
9509 | do | ||
9510 | IFS=$as_save_IFS | ||
9511 | test -z "$as_dir" && as_dir=. | ||
9512 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9514 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
9515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9516 | break 2 | ||
9517 | fi | ||
9518 | done | ||
9519 | done | ||
9520 | |||
9521 | ;; | ||
9522 | esac | ||
9523 | fi | ||
9524 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
9525 | |||
9526 | if test -n "$PROG_ARP"; then | ||
9527 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
9528 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
9529 | else | ||
9530 | echo "$as_me:$LINENO: result: no" >&5 | ||
9531 | echo "${ECHO_T}no" >&6 | ||
9532 | fi | ||
9533 | |||
9534 | if test -z "$PROG_ARP" ; then | ||
9535 | PROG_ARP="undef" | ||
9536 | fi | ||
9537 | |||
9538 | |||
9539 | |||
9540 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
9541 | set dummy ifconfig; ac_word=$2 | ||
9542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9544 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9546 | else | ||
9547 | case $PROG_IFCONFIG in | ||
9548 | [\\/]* | ?:[\\/]*) | ||
9549 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
9550 | ;; | ||
9551 | *) | ||
9552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9553 | for as_dir in $PATH | ||
9554 | do | ||
9555 | IFS=$as_save_IFS | ||
9556 | test -z "$as_dir" && as_dir=. | ||
9557 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9559 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9561 | break 2 | ||
9562 | fi | ||
9563 | done | ||
9564 | done | ||
9565 | |||
9566 | ;; | ||
9567 | esac | ||
9568 | fi | ||
9569 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
9570 | |||
9571 | if test -n "$PROG_IFCONFIG"; then | ||
9572 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
9573 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
9574 | else | ||
9575 | echo "$as_me:$LINENO: result: no" >&5 | ||
9576 | echo "${ECHO_T}no" >&6 | ||
9577 | fi | ||
9578 | |||
9579 | if test -z "$PROG_IFCONFIG" ; then | ||
9580 | PROG_IFCONFIG="undef" | ||
9581 | fi | ||
9582 | |||
9583 | |||
9584 | |||
9585 | # Extract the first word of "jstat", so it can be a program name with args. | ||
9586 | set dummy jstat; ac_word=$2 | ||
9587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9589 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
9590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9591 | else | ||
9592 | case $PROG_JSTAT in | ||
9593 | [\\/]* | ?:[\\/]*) | ||
9594 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
9595 | ;; | ||
9596 | *) | ||
9597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9598 | for as_dir in $PATH | ||
9599 | do | ||
9600 | IFS=$as_save_IFS | ||
9601 | test -z "$as_dir" && as_dir=. | ||
9602 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9604 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9606 | break 2 | ||
9607 | fi | ||
9608 | done | ||
9609 | done | ||
9610 | |||
9611 | ;; | ||
9612 | esac | ||
9613 | fi | ||
9614 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
9615 | |||
9616 | if test -n "$PROG_JSTAT"; then | ||
9617 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
9618 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
9619 | else | ||
9620 | echo "$as_me:$LINENO: result: no" >&5 | ||
9621 | echo "${ECHO_T}no" >&6 | ||
9622 | fi | ||
9623 | |||
9624 | if test -z "$PROG_JSTAT" ; then | ||
9625 | PROG_JSTAT="undef" | ||
9626 | fi | ||
9627 | |||
9628 | |||
9629 | |||
9630 | # Extract the first word of "ps", so it can be a program name with args. | ||
9631 | set dummy ps; ac_word=$2 | ||
9632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9634 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9636 | else | ||
9637 | case $PROG_PS in | ||
9638 | [\\/]* | ?:[\\/]*) | ||
9639 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
9640 | ;; | ||
9641 | *) | ||
9642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9643 | for as_dir in $PATH | ||
9644 | do | ||
9645 | IFS=$as_save_IFS | ||
9646 | test -z "$as_dir" && as_dir=. | ||
9647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9649 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
9650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9651 | break 2 | ||
9652 | fi | ||
9653 | done | ||
9654 | done | ||
9655 | |||
9656 | ;; | ||
9657 | esac | ||
9658 | fi | ||
9659 | PROG_PS=$ac_cv_path_PROG_PS | ||
9660 | |||
9661 | if test -n "$PROG_PS"; then | ||
9662 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
9663 | echo "${ECHO_T}$PROG_PS" >&6 | ||
9664 | else | ||
9665 | echo "$as_me:$LINENO: result: no" >&5 | ||
9666 | echo "${ECHO_T}no" >&6 | ||
9667 | fi | ||
9668 | |||
9669 | if test -z "$PROG_PS" ; then | ||
9670 | PROG_PS="undef" | ||
9671 | fi | ||
9672 | |||
9673 | |||
9674 | |||
9675 | # Extract the first word of "sar", so it can be a program name with args. | ||
9676 | set dummy sar; ac_word=$2 | ||
9677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9679 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
9680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9681 | else | ||
9682 | case $PROG_SAR in | ||
9683 | [\\/]* | ?:[\\/]*) | ||
9684 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
9685 | ;; | ||
9686 | *) | ||
9687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9688 | for as_dir in $PATH | ||
9689 | do | ||
9690 | IFS=$as_save_IFS | ||
9691 | test -z "$as_dir" && as_dir=. | ||
9692 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9694 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
9695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9696 | break 2 | ||
9697 | fi | ||
9698 | done | ||
9699 | done | ||
9700 | |||
9701 | ;; | ||
9702 | esac | ||
9703 | fi | ||
9704 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
9705 | |||
9706 | if test -n "$PROG_SAR"; then | ||
9707 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
9708 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
9709 | else | ||
9710 | echo "$as_me:$LINENO: result: no" >&5 | ||
9711 | echo "${ECHO_T}no" >&6 | ||
9712 | fi | ||
9713 | |||
9714 | if test -z "$PROG_SAR" ; then | ||
9715 | PROG_SAR="undef" | ||
9716 | fi | ||
9717 | |||
9718 | |||
9719 | |||
9720 | # Extract the first word of "w", so it can be a program name with args. | ||
9721 | set dummy w; ac_word=$2 | ||
9722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9724 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9726 | else | ||
9727 | case $PROG_W in | ||
9728 | [\\/]* | ?:[\\/]*) | ||
9729 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
9730 | ;; | ||
9731 | *) | ||
9732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9733 | for as_dir in $PATH | ||
9734 | do | ||
9735 | IFS=$as_save_IFS | ||
9736 | test -z "$as_dir" && as_dir=. | ||
9737 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9739 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
9740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9741 | break 2 | ||
9742 | fi | ||
9743 | done | ||
9744 | done | ||
9745 | |||
9746 | ;; | ||
9747 | esac | ||
9748 | fi | ||
9749 | PROG_W=$ac_cv_path_PROG_W | ||
9750 | |||
9751 | if test -n "$PROG_W"; then | ||
9752 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
9753 | echo "${ECHO_T}$PROG_W" >&6 | ||
9754 | else | ||
9755 | echo "$as_me:$LINENO: result: no" >&5 | ||
9756 | echo "${ECHO_T}no" >&6 | ||
9757 | fi | ||
9758 | |||
9759 | if test -z "$PROG_W" ; then | ||
9760 | PROG_W="undef" | ||
9761 | fi | ||
9762 | |||
9763 | |||
9764 | |||
9765 | # Extract the first word of "who", so it can be a program name with args. | ||
9766 | set dummy who; ac_word=$2 | ||
9767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9769 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9771 | else | ||
9772 | case $PROG_WHO in | ||
9773 | [\\/]* | ?:[\\/]*) | ||
9774 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
9775 | ;; | ||
9776 | *) | ||
9777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9778 | for as_dir in $PATH | ||
9779 | do | ||
9780 | IFS=$as_save_IFS | ||
9781 | test -z "$as_dir" && as_dir=. | ||
9782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9784 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
9785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9786 | break 2 | ||
9787 | fi | ||
9788 | done | ||
9789 | done | ||
9790 | |||
9791 | ;; | ||
9792 | esac | ||
9793 | fi | ||
9794 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
9795 | |||
9796 | if test -n "$PROG_WHO"; then | ||
9797 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
9798 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
9799 | else | ||
9800 | echo "$as_me:$LINENO: result: no" >&5 | ||
9801 | echo "${ECHO_T}no" >&6 | ||
9802 | fi | ||
9803 | |||
9804 | if test -z "$PROG_WHO" ; then | ||
9805 | PROG_WHO="undef" | ||
9806 | fi | ||
9807 | |||
9808 | |||
9809 | |||
9810 | # Extract the first word of "last", so it can be a program name with args. | ||
9811 | set dummy last; ac_word=$2 | ||
9812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9814 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
9815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9816 | else | ||
9817 | case $PROG_LAST in | ||
9818 | [\\/]* | ?:[\\/]*) | ||
9819 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
9820 | ;; | ||
9821 | *) | ||
9822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9823 | for as_dir in $PATH | ||
9824 | do | ||
9825 | IFS=$as_save_IFS | ||
9826 | test -z "$as_dir" && as_dir=. | ||
9827 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9829 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
9830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9831 | break 2 | ||
9832 | fi | ||
9833 | done | ||
9834 | done | ||
9835 | |||
9836 | ;; | ||
9837 | esac | ||
9838 | fi | ||
9839 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
9840 | |||
9841 | if test -n "$PROG_LAST"; then | ||
9842 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
9843 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
9844 | else | ||
9845 | echo "$as_me:$LINENO: result: no" >&5 | ||
9846 | echo "${ECHO_T}no" >&6 | ||
9847 | fi | ||
9848 | |||
9849 | if test -z "$PROG_LAST" ; then | ||
9850 | PROG_LAST="undef" | ||
9851 | fi | ||
9852 | |||
9853 | |||
9854 | |||
9855 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
9856 | set dummy lastlog; ac_word=$2 | ||
9857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9859 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
9860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9861 | else | ||
9862 | case $PROG_LASTLOG in | ||
9863 | [\\/]* | ?:[\\/]*) | ||
9864 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
9865 | ;; | ||
9866 | *) | ||
9867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9868 | for as_dir in $PATH | ||
9869 | do | ||
9870 | IFS=$as_save_IFS | ||
9871 | test -z "$as_dir" && as_dir=. | ||
9872 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9874 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
9875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9876 | break 2 | ||
9877 | fi | ||
9878 | done | ||
9879 | done | ||
9880 | |||
9881 | ;; | ||
9882 | esac | ||
9883 | fi | ||
9884 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
9885 | |||
9886 | if test -n "$PROG_LASTLOG"; then | ||
9887 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
9888 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
9889 | else | ||
9890 | echo "$as_me:$LINENO: result: no" >&5 | ||
9891 | echo "${ECHO_T}no" >&6 | ||
9892 | fi | ||
9893 | |||
9894 | if test -z "$PROG_LASTLOG" ; then | ||
9895 | PROG_LASTLOG="undef" | ||
9896 | fi | ||
9897 | |||
9898 | |||
9899 | |||
9900 | # Extract the first word of "df", so it can be a program name with args. | ||
9901 | set dummy df; ac_word=$2 | ||
9902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9904 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9906 | else | ||
9907 | case $PROG_DF in | ||
9908 | [\\/]* | ?:[\\/]*) | ||
9909 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
9910 | ;; | ||
9911 | *) | ||
9912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9913 | for as_dir in $PATH | ||
9914 | do | ||
9915 | IFS=$as_save_IFS | ||
9916 | test -z "$as_dir" && as_dir=. | ||
9917 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9919 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
9920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9921 | break 2 | ||
9922 | fi | ||
9923 | done | ||
9924 | done | ||
9925 | |||
9926 | ;; | ||
9927 | esac | ||
9928 | fi | ||
9929 | PROG_DF=$ac_cv_path_PROG_DF | ||
9930 | |||
9931 | if test -n "$PROG_DF"; then | ||
9932 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
9933 | echo "${ECHO_T}$PROG_DF" >&6 | ||
9934 | else | ||
9935 | echo "$as_me:$LINENO: result: no" >&5 | ||
9936 | echo "${ECHO_T}no" >&6 | ||
9937 | fi | ||
9938 | |||
9939 | if test -z "$PROG_DF" ; then | ||
9940 | PROG_DF="undef" | ||
9941 | fi | ||
9942 | |||
9943 | |||
9944 | |||
9945 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
9946 | set dummy vmstat; ac_word=$2 | ||
9947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9949 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9951 | else | ||
9952 | case $PROG_VMSTAT in | ||
9953 | [\\/]* | ?:[\\/]*) | ||
9954 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
9955 | ;; | ||
9956 | *) | ||
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9958 | for as_dir in $PATH | ||
9959 | do | ||
9960 | IFS=$as_save_IFS | ||
9961 | test -z "$as_dir" && as_dir=. | ||
9962 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
9964 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
9965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9966 | break 2 | ||
9967 | fi | ||
9968 | done | ||
9969 | done | ||
9970 | |||
9971 | ;; | ||
9972 | esac | ||
9973 | fi | ||
9974 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
9975 | |||
9976 | if test -n "$PROG_VMSTAT"; then | ||
9977 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
9978 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
9979 | else | ||
9980 | echo "$as_me:$LINENO: result: no" >&5 | ||
9981 | echo "${ECHO_T}no" >&6 | ||
9982 | fi | ||
9983 | |||
9984 | if test -z "$PROG_VMSTAT" ; then | ||
9985 | PROG_VMSTAT="undef" | ||
9986 | fi | ||
9987 | |||
9988 | |||
9989 | |||
9990 | # Extract the first word of "uptime", so it can be a program name with args. | ||
9991 | set dummy uptime; ac_word=$2 | ||
9992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
9993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
9994 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9996 | else | ||
9997 | case $PROG_UPTIME in | ||
9998 | [\\/]* | ?:[\\/]*) | ||
9999 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
10000 | ;; | ||
10001 | *) | ||
10002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10003 | for as_dir in $PATH | ||
10004 | do | ||
10005 | IFS=$as_save_IFS | ||
10006 | test -z "$as_dir" && as_dir=. | ||
10007 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10009 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
10010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10011 | break 2 | ||
10012 | fi | ||
10013 | done | ||
10014 | done | ||
10015 | |||
10016 | ;; | ||
10017 | esac | ||
10018 | fi | ||
10019 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
10020 | |||
10021 | if test -n "$PROG_UPTIME"; then | ||
10022 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
10023 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
10024 | else | ||
10025 | echo "$as_me:$LINENO: result: no" >&5 | ||
10026 | echo "${ECHO_T}no" >&6 | ||
10027 | fi | ||
10028 | |||
10029 | if test -z "$PROG_UPTIME" ; then | ||
10030 | PROG_UPTIME="undef" | ||
10031 | fi | ||
10032 | |||
10033 | |||
10034 | |||
10035 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
10036 | set dummy ipcs; ac_word=$2 | ||
10037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
10038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10039 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
10040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10041 | else | ||
10042 | case $PROG_IPCS in | ||
10043 | [\\/]* | ?:[\\/]*) | ||
10044 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
10045 | ;; | ||
10046 | *) | ||
10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10048 | for as_dir in $PATH | ||
10049 | do | ||
10050 | IFS=$as_save_IFS | ||
10051 | test -z "$as_dir" && as_dir=. | ||
10052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10054 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
10055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10056 | break 2 | ||
10057 | fi | ||
10058 | done | ||
10059 | done | ||
10060 | |||
10061 | ;; | ||
10062 | esac | ||
10063 | fi | ||
10064 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
10065 | |||
10066 | if test -n "$PROG_IPCS"; then | ||
10067 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
10068 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
10069 | else | ||
10070 | echo "$as_me:$LINENO: result: no" >&5 | ||
10071 | echo "${ECHO_T}no" >&6 | ||
10072 | fi | ||
10073 | |||
10074 | if test -z "$PROG_IPCS" ; then | ||
10075 | PROG_IPCS="undef" | ||
10076 | fi | ||
10077 | |||
10078 | |||
10079 | |||
10080 | # Extract the first word of "tail", so it can be a program name with args. | ||
10081 | set dummy tail; ac_word=$2 | ||
10082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
10083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
10084 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
10085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10086 | else | ||
10087 | case $PROG_TAIL in | ||
10088 | [\\/]* | ?:[\\/]*) | ||
10089 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
10090 | ;; | ||
10091 | *) | ||
10092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10093 | for as_dir in $PATH | ||
10094 | do | ||
10095 | IFS=$as_save_IFS | ||
10096 | test -z "$as_dir" && as_dir=. | ||
10097 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10099 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
10100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10101 | break 2 | ||
10102 | fi | ||
10103 | done | ||
10104 | done | ||
10105 | |||
10106 | ;; | ||
10107 | esac | ||
10108 | fi | ||
10109 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
10110 | |||
10111 | if test -n "$PROG_TAIL"; then | ||
10112 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
10113 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
10114 | else | ||
10115 | echo "$as_me:$LINENO: result: no" >&5 | ||
10116 | echo "${ECHO_T}no" >&6 | ||
10117 | fi | ||
10118 | |||
10119 | if test -z "$PROG_TAIL" ; then | ||
10120 | PROG_TAIL="undef" | ||
10121 | fi | ||
10122 | |||
10123 | |||
10124 | # restore PATH | ||
10125 | PATH=$OPATH | ||
10126 | |||
10127 | # Where does ssh-rand-helper get its randomness from? | ||
10128 | INSTALL_SSH_PRNG_CMDS="" | ||
10129 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
10130 | if test ! -z "$PRNGD_PORT" ; then | ||
10131 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
10132 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
10133 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
10134 | else | ||
10135 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
10136 | RAND_HELPER_CMDHASH=yes | ||
10137 | INSTALL_SSH_PRNG_CMDS="yes" | ||
10138 | fi | ||
10139 | fi | ||
10140 | |||
10141 | |||
10142 | |||
10143 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
10144 | if test ! -z "$SONY" ; then | ||
10145 | LIBS="$LIBS -liberty"; | ||
10146 | fi | ||
10147 | |||
10148 | # Checks for data types | ||
10149 | echo "$as_me:$LINENO: checking for char" >&5 | ||
10150 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
10151 | if test "${ac_cv_type_char+set}" = set; then | ||
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10153 | else | ||
10154 | cat >conftest.$ac_ext <<_ACEOF | ||
10155 | #line $LINENO "configure" | ||
10156 | #include "confdefs.h" | ||
10157 | $ac_includes_default | ||
10158 | #ifdef F77_DUMMY_MAIN | ||
10159 | # ifdef __cplusplus | ||
10160 | extern "C" | ||
10161 | # endif | ||
10162 | int F77_DUMMY_MAIN() { return 1; } | ||
10163 | #endif | ||
10164 | int | ||
10165 | main () | ||
10166 | { | ||
10167 | if ((char *) 0) | ||
10168 | return 0; | ||
10169 | if (sizeof (char)) | ||
10170 | return 0; | ||
10171 | ; | ||
10172 | return 0; | ||
10173 | } | ||
10174 | _ACEOF | ||
10175 | rm -f conftest.$ac_objext | ||
10176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10177 | (eval $ac_compile) 2>&5 | ||
10178 | ac_status=$? | ||
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10180 | (exit $ac_status); } && | ||
10181 | { ac_try='test -s conftest.$ac_objext' | ||
10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10183 | (eval $ac_try) 2>&5 | ||
10184 | ac_status=$? | ||
10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10186 | (exit $ac_status); }; }; then | ||
10187 | ac_cv_type_char=yes | ||
10188 | else | ||
10189 | echo "$as_me: failed program was:" >&5 | ||
10190 | cat conftest.$ac_ext >&5 | ||
10191 | ac_cv_type_char=no | ||
10192 | fi | ||
10193 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10194 | fi | ||
10195 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
10196 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
10197 | |||
10198 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
10199 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
10200 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
10201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10202 | else | ||
10203 | if test "$ac_cv_type_char" = yes; then | ||
10204 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10205 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10206 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10207 | # This bug is HP SR number 8606223364. | ||
10208 | if test "$cross_compiling" = yes; then | ||
10209 | # Depending upon the size, compute the lo and hi bounds. | ||
10210 | cat >conftest.$ac_ext <<_ACEOF | ||
10211 | #line $LINENO "configure" | ||
10212 | #include "confdefs.h" | ||
10213 | $ac_includes_default | ||
10214 | #ifdef F77_DUMMY_MAIN | ||
10215 | # ifdef __cplusplus | ||
10216 | extern "C" | ||
10217 | # endif | ||
10218 | int F77_DUMMY_MAIN() { return 1; } | ||
10219 | #endif | ||
10220 | int | ||
10221 | main () | ||
10222 | { | ||
10223 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
10224 | test_array [0] = 0 | ||
10225 | |||
10226 | ; | ||
10227 | return 0; | ||
10228 | } | ||
10229 | _ACEOF | ||
10230 | rm -f conftest.$ac_objext | ||
10231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10232 | (eval $ac_compile) 2>&5 | ||
10233 | ac_status=$? | ||
10234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10235 | (exit $ac_status); } && | ||
10236 | { ac_try='test -s conftest.$ac_objext' | ||
10237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10238 | (eval $ac_try) 2>&5 | ||
10239 | ac_status=$? | ||
10240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10241 | (exit $ac_status); }; }; then | ||
10242 | ac_lo=0 ac_mid=0 | ||
10243 | while :; do | ||
10244 | cat >conftest.$ac_ext <<_ACEOF | ||
10245 | #line $LINENO "configure" | ||
10246 | #include "confdefs.h" | ||
10247 | $ac_includes_default | ||
10248 | #ifdef F77_DUMMY_MAIN | ||
10249 | # ifdef __cplusplus | ||
10250 | extern "C" | ||
10251 | # endif | ||
10252 | int F77_DUMMY_MAIN() { return 1; } | ||
10253 | #endif | ||
10254 | int | ||
10255 | main () | ||
10256 | { | ||
10257 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
10258 | test_array [0] = 0 | ||
10259 | |||
10260 | ; | ||
10261 | return 0; | ||
10262 | } | ||
10263 | _ACEOF | ||
10264 | rm -f conftest.$ac_objext | ||
10265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10266 | (eval $ac_compile) 2>&5 | ||
10267 | ac_status=$? | ||
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10269 | (exit $ac_status); } && | ||
10270 | { ac_try='test -s conftest.$ac_objext' | ||
10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10272 | (eval $ac_try) 2>&5 | ||
10273 | ac_status=$? | ||
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10275 | (exit $ac_status); }; }; then | ||
10276 | ac_hi=$ac_mid; break | ||
10277 | else | ||
10278 | echo "$as_me: failed program was:" >&5 | ||
10279 | cat conftest.$ac_ext >&5 | ||
10280 | ac_lo=`expr $ac_mid + 1` | ||
10281 | if test $ac_lo -le $ac_mid; then | ||
10282 | ac_lo= ac_hi= | ||
10283 | break | ||
10284 | fi | ||
10285 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10286 | fi | ||
10287 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10288 | done | ||
10289 | else | ||
10290 | echo "$as_me: failed program was:" >&5 | ||
10291 | cat conftest.$ac_ext >&5 | ||
10292 | cat >conftest.$ac_ext <<_ACEOF | ||
10293 | #line $LINENO "configure" | ||
10294 | #include "confdefs.h" | ||
10295 | $ac_includes_default | ||
10296 | #ifdef F77_DUMMY_MAIN | ||
10297 | # ifdef __cplusplus | ||
10298 | extern "C" | ||
10299 | # endif | ||
10300 | int F77_DUMMY_MAIN() { return 1; } | ||
10301 | #endif | ||
10302 | int | ||
10303 | main () | ||
10304 | { | ||
10305 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
10306 | test_array [0] = 0 | ||
10307 | |||
10308 | ; | ||
10309 | return 0; | ||
10310 | } | ||
10311 | _ACEOF | ||
10312 | rm -f conftest.$ac_objext | ||
10313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10314 | (eval $ac_compile) 2>&5 | ||
10315 | ac_status=$? | ||
10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10317 | (exit $ac_status); } && | ||
10318 | { ac_try='test -s conftest.$ac_objext' | ||
10319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10320 | (eval $ac_try) 2>&5 | ||
10321 | ac_status=$? | ||
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10323 | (exit $ac_status); }; }; then | ||
10324 | ac_hi=-1 ac_mid=-1 | ||
10325 | while :; do | ||
10326 | cat >conftest.$ac_ext <<_ACEOF | ||
10327 | #line $LINENO "configure" | ||
10328 | #include "confdefs.h" | ||
10329 | $ac_includes_default | ||
10330 | #ifdef F77_DUMMY_MAIN | ||
10331 | # ifdef __cplusplus | ||
10332 | extern "C" | ||
10333 | # endif | ||
10334 | int F77_DUMMY_MAIN() { return 1; } | ||
10335 | #endif | ||
10336 | int | ||
10337 | main () | ||
10338 | { | ||
10339 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
10340 | test_array [0] = 0 | ||
10341 | |||
10342 | ; | ||
10343 | return 0; | ||
10344 | } | ||
10345 | _ACEOF | ||
10346 | rm -f conftest.$ac_objext | ||
10347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10348 | (eval $ac_compile) 2>&5 | ||
10349 | ac_status=$? | ||
10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10351 | (exit $ac_status); } && | ||
10352 | { ac_try='test -s conftest.$ac_objext' | ||
10353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10354 | (eval $ac_try) 2>&5 | ||
10355 | ac_status=$? | ||
10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10357 | (exit $ac_status); }; }; then | ||
10358 | ac_lo=$ac_mid; break | ||
10359 | else | ||
10360 | echo "$as_me: failed program was:" >&5 | ||
10361 | cat conftest.$ac_ext >&5 | ||
10362 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10363 | if test $ac_mid -le $ac_hi; then | ||
10364 | ac_lo= ac_hi= | ||
10365 | break | ||
10366 | fi | ||
10367 | ac_mid=`expr 2 '*' $ac_mid` | ||
10368 | fi | ||
10369 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10370 | done | ||
10371 | else | ||
10372 | echo "$as_me: failed program was:" >&5 | ||
10373 | cat conftest.$ac_ext >&5 | ||
10374 | ac_lo= ac_hi= | ||
10375 | fi | ||
10376 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10377 | fi | ||
10378 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10379 | # Binary search between lo and hi bounds. | ||
10380 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10381 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10382 | cat >conftest.$ac_ext <<_ACEOF | ||
10383 | #line $LINENO "configure" | ||
10384 | #include "confdefs.h" | ||
10385 | $ac_includes_default | ||
10386 | #ifdef F77_DUMMY_MAIN | ||
10387 | # ifdef __cplusplus | ||
10388 | extern "C" | ||
10389 | # endif | ||
10390 | int F77_DUMMY_MAIN() { return 1; } | ||
10391 | #endif | ||
10392 | int | ||
10393 | main () | ||
10394 | { | ||
10395 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
10396 | test_array [0] = 0 | ||
10397 | |||
10398 | ; | ||
10399 | return 0; | ||
10400 | } | ||
10401 | _ACEOF | ||
10402 | rm -f conftest.$ac_objext | ||
10403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10404 | (eval $ac_compile) 2>&5 | ||
10405 | ac_status=$? | ||
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10407 | (exit $ac_status); } && | ||
10408 | { ac_try='test -s conftest.$ac_objext' | ||
10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10410 | (eval $ac_try) 2>&5 | ||
10411 | ac_status=$? | ||
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10413 | (exit $ac_status); }; }; then | ||
10414 | ac_hi=$ac_mid | ||
10415 | else | ||
10416 | echo "$as_me: failed program was:" >&5 | ||
10417 | cat conftest.$ac_ext >&5 | ||
10418 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10419 | fi | ||
10420 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10421 | done | ||
10422 | case $ac_lo in | ||
10423 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
10424 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10425 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10426 | { (exit 1); exit 1; }; } ;; | ||
10427 | esac | ||
10428 | else | ||
10429 | if test "$cross_compiling" = yes; then | ||
10430 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10431 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10432 | { (exit 1); exit 1; }; } | ||
10433 | else | ||
10434 | cat >conftest.$ac_ext <<_ACEOF | ||
10435 | #line $LINENO "configure" | ||
10436 | #include "confdefs.h" | ||
10437 | $ac_includes_default | ||
10438 | long longval () { return (long) (sizeof (char)); } | ||
10439 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
10440 | #include <stdio.h> | ||
10441 | #include <stdlib.h> | ||
10442 | #ifdef F77_DUMMY_MAIN | ||
10443 | # ifdef __cplusplus | ||
10444 | extern "C" | ||
10445 | # endif | ||
10446 | int F77_DUMMY_MAIN() { return 1; } | ||
10447 | #endif | ||
10448 | int | ||
10449 | main () | ||
10450 | { | ||
10451 | |||
10452 | FILE *f = fopen ("conftest.val", "w"); | ||
10453 | if (! f) | ||
10454 | exit (1); | ||
10455 | if (((long) (sizeof (char))) < 0) | ||
10456 | { | ||
10457 | long i = longval (); | ||
10458 | if (i != ((long) (sizeof (char)))) | ||
10459 | exit (1); | ||
10460 | fprintf (f, "%ld\n", i); | ||
10461 | } | ||
10462 | else | ||
10463 | { | ||
10464 | unsigned long i = ulongval (); | ||
10465 | if (i != ((long) (sizeof (char)))) | ||
10466 | exit (1); | ||
10467 | fprintf (f, "%lu\n", i); | ||
10468 | } | ||
10469 | exit (ferror (f) || fclose (f) != 0); | ||
10470 | |||
10471 | ; | ||
10472 | return 0; | ||
10473 | } | ||
10474 | _ACEOF | ||
10475 | rm -f conftest$ac_exeext | ||
10476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10477 | (eval $ac_link) 2>&5 | ||
10478 | ac_status=$? | ||
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10482 | (eval $ac_try) 2>&5 | ||
10483 | ac_status=$? | ||
10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10485 | (exit $ac_status); }; }; then | ||
10486 | ac_cv_sizeof_char=`cat conftest.val` | ||
10487 | else | ||
10488 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10489 | echo "$as_me: failed program was:" >&5 | ||
10490 | cat conftest.$ac_ext >&5 | ||
10491 | ( exit $ac_status ) | ||
10492 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | ||
10493 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | ||
10494 | { (exit 1); exit 1; }; } | ||
10495 | fi | ||
10496 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10497 | fi | ||
10498 | fi | ||
10499 | rm -f conftest.val | ||
10500 | else | ||
10501 | ac_cv_sizeof_char=0 | ||
10502 | fi | ||
10503 | fi | ||
10504 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
10505 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
10506 | cat >>confdefs.h <<_ACEOF | ||
10507 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
10508 | _ACEOF | ||
10509 | |||
10510 | |||
10511 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
10512 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
10513 | if test "${ac_cv_type_short_int+set}" = set; then | ||
10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10515 | else | ||
10516 | cat >conftest.$ac_ext <<_ACEOF | ||
10517 | #line $LINENO "configure" | ||
10518 | #include "confdefs.h" | ||
10519 | $ac_includes_default | ||
10520 | #ifdef F77_DUMMY_MAIN | ||
10521 | # ifdef __cplusplus | ||
10522 | extern "C" | ||
10523 | # endif | ||
10524 | int F77_DUMMY_MAIN() { return 1; } | ||
10525 | #endif | ||
10526 | int | ||
10527 | main () | ||
10528 | { | ||
10529 | if ((short int *) 0) | ||
10530 | return 0; | ||
10531 | if (sizeof (short int)) | ||
10532 | return 0; | ||
10533 | ; | ||
10534 | return 0; | ||
10535 | } | ||
10536 | _ACEOF | ||
10537 | rm -f conftest.$ac_objext | ||
10538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10539 | (eval $ac_compile) 2>&5 | ||
10540 | ac_status=$? | ||
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10542 | (exit $ac_status); } && | ||
10543 | { ac_try='test -s conftest.$ac_objext' | ||
10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10545 | (eval $ac_try) 2>&5 | ||
10546 | ac_status=$? | ||
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10548 | (exit $ac_status); }; }; then | ||
10549 | ac_cv_type_short_int=yes | ||
10550 | else | ||
10551 | echo "$as_me: failed program was:" >&5 | ||
10552 | cat conftest.$ac_ext >&5 | ||
10553 | ac_cv_type_short_int=no | ||
10554 | fi | ||
10555 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10556 | fi | ||
10557 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
10558 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
10559 | |||
10560 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
10561 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
10562 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
10563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10564 | else | ||
10565 | if test "$ac_cv_type_short_int" = yes; then | ||
10566 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10569 | # This bug is HP SR number 8606223364. | ||
10570 | if test "$cross_compiling" = yes; then | ||
10571 | # Depending upon the size, compute the lo and hi bounds. | ||
10572 | cat >conftest.$ac_ext <<_ACEOF | ||
10573 | #line $LINENO "configure" | ||
10574 | #include "confdefs.h" | ||
10575 | $ac_includes_default | ||
10576 | #ifdef F77_DUMMY_MAIN | ||
10577 | # ifdef __cplusplus | ||
10578 | extern "C" | ||
10579 | # endif | ||
10580 | int F77_DUMMY_MAIN() { return 1; } | ||
10581 | #endif | ||
10582 | int | ||
10583 | main () | ||
10584 | { | ||
10585 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
10586 | test_array [0] = 0 | ||
10587 | |||
10588 | ; | ||
10589 | return 0; | ||
10590 | } | ||
10591 | _ACEOF | ||
10592 | rm -f conftest.$ac_objext | ||
10593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10594 | (eval $ac_compile) 2>&5 | ||
10595 | ac_status=$? | ||
10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10597 | (exit $ac_status); } && | ||
10598 | { ac_try='test -s conftest.$ac_objext' | ||
10599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10600 | (eval $ac_try) 2>&5 | ||
10601 | ac_status=$? | ||
10602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10603 | (exit $ac_status); }; }; then | ||
10604 | ac_lo=0 ac_mid=0 | ||
10605 | while :; do | ||
10606 | cat >conftest.$ac_ext <<_ACEOF | ||
10607 | #line $LINENO "configure" | ||
10608 | #include "confdefs.h" | ||
10609 | $ac_includes_default | ||
10610 | #ifdef F77_DUMMY_MAIN | ||
10611 | # ifdef __cplusplus | ||
10612 | extern "C" | ||
10613 | # endif | ||
10614 | int F77_DUMMY_MAIN() { return 1; } | ||
10615 | #endif | ||
10616 | int | ||
10617 | main () | ||
10618 | { | ||
10619 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
10620 | test_array [0] = 0 | ||
10621 | |||
10622 | ; | ||
10623 | return 0; | ||
10624 | } | ||
10625 | _ACEOF | ||
10626 | rm -f conftest.$ac_objext | ||
10627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10628 | (eval $ac_compile) 2>&5 | ||
10629 | ac_status=$? | ||
10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10631 | (exit $ac_status); } && | ||
10632 | { ac_try='test -s conftest.$ac_objext' | ||
10633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10634 | (eval $ac_try) 2>&5 | ||
10635 | ac_status=$? | ||
10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10637 | (exit $ac_status); }; }; then | ||
10638 | ac_hi=$ac_mid; break | ||
10639 | else | ||
10640 | echo "$as_me: failed program was:" >&5 | ||
10641 | cat conftest.$ac_ext >&5 | ||
10642 | ac_lo=`expr $ac_mid + 1` | ||
10643 | if test $ac_lo -le $ac_mid; then | ||
10644 | ac_lo= ac_hi= | ||
10645 | break | ||
10646 | fi | ||
10647 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
10648 | fi | ||
10649 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10650 | done | ||
10651 | else | ||
10652 | echo "$as_me: failed program was:" >&5 | ||
10653 | cat conftest.$ac_ext >&5 | ||
10654 | cat >conftest.$ac_ext <<_ACEOF | ||
10655 | #line $LINENO "configure" | ||
10656 | #include "confdefs.h" | ||
10657 | $ac_includes_default | ||
10658 | #ifdef F77_DUMMY_MAIN | ||
10659 | # ifdef __cplusplus | ||
10660 | extern "C" | ||
10661 | # endif | ||
10662 | int F77_DUMMY_MAIN() { return 1; } | ||
10663 | #endif | ||
10664 | int | ||
10665 | main () | ||
10666 | { | ||
10667 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
10668 | test_array [0] = 0 | ||
10669 | |||
10670 | ; | ||
10671 | return 0; | ||
10672 | } | ||
10673 | _ACEOF | ||
10674 | rm -f conftest.$ac_objext | ||
10675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10676 | (eval $ac_compile) 2>&5 | ||
10677 | ac_status=$? | ||
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10679 | (exit $ac_status); } && | ||
10680 | { ac_try='test -s conftest.$ac_objext' | ||
10681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10682 | (eval $ac_try) 2>&5 | ||
10683 | ac_status=$? | ||
10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10685 | (exit $ac_status); }; }; then | ||
10686 | ac_hi=-1 ac_mid=-1 | ||
10687 | while :; do | ||
10688 | cat >conftest.$ac_ext <<_ACEOF | ||
10689 | #line $LINENO "configure" | ||
10690 | #include "confdefs.h" | ||
10691 | $ac_includes_default | ||
10692 | #ifdef F77_DUMMY_MAIN | ||
10693 | # ifdef __cplusplus | ||
10694 | extern "C" | ||
10695 | # endif | ||
10696 | int F77_DUMMY_MAIN() { return 1; } | ||
10697 | #endif | ||
10698 | int | ||
10699 | main () | ||
10700 | { | ||
10701 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
10702 | test_array [0] = 0 | ||
10703 | |||
10704 | ; | ||
10705 | return 0; | ||
10706 | } | ||
10707 | _ACEOF | ||
10708 | rm -f conftest.$ac_objext | ||
10709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10710 | (eval $ac_compile) 2>&5 | ||
10711 | ac_status=$? | ||
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10713 | (exit $ac_status); } && | ||
10714 | { ac_try='test -s conftest.$ac_objext' | ||
10715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10716 | (eval $ac_try) 2>&5 | ||
10717 | ac_status=$? | ||
10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10719 | (exit $ac_status); }; }; then | ||
10720 | ac_lo=$ac_mid; break | ||
10721 | else | ||
10722 | echo "$as_me: failed program was:" >&5 | ||
10723 | cat conftest.$ac_ext >&5 | ||
10724 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
10725 | if test $ac_mid -le $ac_hi; then | ||
10726 | ac_lo= ac_hi= | ||
10727 | break | ||
10728 | fi | ||
10729 | ac_mid=`expr 2 '*' $ac_mid` | ||
10730 | fi | ||
10731 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10732 | done | ||
10733 | else | ||
10734 | echo "$as_me: failed program was:" >&5 | ||
10735 | cat conftest.$ac_ext >&5 | ||
10736 | ac_lo= ac_hi= | ||
10737 | fi | ||
10738 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10739 | fi | ||
10740 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10741 | # Binary search between lo and hi bounds. | ||
10742 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10743 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10744 | cat >conftest.$ac_ext <<_ACEOF | ||
10745 | #line $LINENO "configure" | ||
10746 | #include "confdefs.h" | ||
10747 | $ac_includes_default | ||
10748 | #ifdef F77_DUMMY_MAIN | ||
10749 | # ifdef __cplusplus | ||
10750 | extern "C" | ||
10751 | # endif | ||
10752 | int F77_DUMMY_MAIN() { return 1; } | ||
10753 | #endif | ||
10754 | int | ||
10755 | main () | ||
10756 | { | ||
10757 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
10758 | test_array [0] = 0 | ||
10759 | |||
10760 | ; | ||
10761 | return 0; | ||
10762 | } | ||
10763 | _ACEOF | ||
10764 | rm -f conftest.$ac_objext | ||
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10766 | (eval $ac_compile) 2>&5 | ||
10767 | ac_status=$? | ||
10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10769 | (exit $ac_status); } && | ||
10770 | { ac_try='test -s conftest.$ac_objext' | ||
10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10772 | (eval $ac_try) 2>&5 | ||
10773 | ac_status=$? | ||
10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10775 | (exit $ac_status); }; }; then | ||
10776 | ac_hi=$ac_mid | ||
10777 | else | ||
10778 | echo "$as_me: failed program was:" >&5 | ||
10779 | cat conftest.$ac_ext >&5 | ||
10780 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10781 | fi | ||
10782 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10783 | done | ||
10784 | case $ac_lo in | ||
10785 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
10786 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10787 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10788 | { (exit 1); exit 1; }; } ;; | ||
10789 | esac | ||
10790 | else | ||
10791 | if test "$cross_compiling" = yes; then | ||
10792 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
10793 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
10794 | { (exit 1); exit 1; }; } | ||
10795 | else | ||
10796 | cat >conftest.$ac_ext <<_ACEOF | ||
10797 | #line $LINENO "configure" | ||
10798 | #include "confdefs.h" | ||
10799 | $ac_includes_default | ||
10800 | long longval () { return (long) (sizeof (short int)); } | ||
10801 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
10802 | #include <stdio.h> | ||
10803 | #include <stdlib.h> | ||
10804 | #ifdef F77_DUMMY_MAIN | ||
10805 | # ifdef __cplusplus | ||
10806 | extern "C" | ||
10807 | # endif | ||
10808 | int F77_DUMMY_MAIN() { return 1; } | ||
10809 | #endif | ||
10810 | int | ||
10811 | main () | ||
10812 | { | ||
10813 | |||
10814 | FILE *f = fopen ("conftest.val", "w"); | ||
10815 | if (! f) | ||
10816 | exit (1); | ||
10817 | if (((long) (sizeof (short int))) < 0) | ||
10818 | { | ||
10819 | long i = longval (); | ||
10820 | if (i != ((long) (sizeof (short int)))) | ||
10821 | exit (1); | ||
10822 | fprintf (f, "%ld\n", i); | ||
10823 | } | ||
10824 | else | ||
10825 | { | ||
10826 | unsigned long i = ulongval (); | ||
10827 | if (i != ((long) (sizeof (short int)))) | ||
10828 | exit (1); | ||
10829 | fprintf (f, "%lu\n", i); | ||
10830 | } | ||
10831 | exit (ferror (f) || fclose (f) != 0); | ||
10832 | |||
10833 | ; | ||
10834 | return 0; | ||
10835 | } | ||
10836 | _ACEOF | ||
10837 | rm -f conftest$ac_exeext | ||
10838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10839 | (eval $ac_link) 2>&5 | ||
10840 | ac_status=$? | ||
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10844 | (eval $ac_try) 2>&5 | ||
10845 | ac_status=$? | ||
10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10847 | (exit $ac_status); }; }; then | ||
10848 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
10849 | else | ||
10850 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10851 | echo "$as_me: failed program was:" >&5 | ||
10852 | cat conftest.$ac_ext >&5 | ||
10853 | ( exit $ac_status ) | ||
10854 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | ||
10855 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | ||
10856 | { (exit 1); exit 1; }; } | ||
10857 | fi | ||
10858 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10859 | fi | ||
10860 | fi | ||
10861 | rm -f conftest.val | ||
10862 | else | ||
10863 | ac_cv_sizeof_short_int=0 | ||
10864 | fi | ||
10865 | fi | ||
10866 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
10867 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
10868 | cat >>confdefs.h <<_ACEOF | ||
10869 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
10870 | _ACEOF | ||
10871 | |||
10872 | |||
10873 | echo "$as_me:$LINENO: checking for int" >&5 | ||
10874 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
10875 | if test "${ac_cv_type_int+set}" = set; then | ||
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10877 | else | ||
10878 | cat >conftest.$ac_ext <<_ACEOF | ||
10879 | #line $LINENO "configure" | ||
10880 | #include "confdefs.h" | ||
10881 | $ac_includes_default | ||
10882 | #ifdef F77_DUMMY_MAIN | ||
10883 | # ifdef __cplusplus | ||
10884 | extern "C" | ||
10885 | # endif | ||
10886 | int F77_DUMMY_MAIN() { return 1; } | ||
10887 | #endif | ||
10888 | int | ||
10889 | main () | ||
10890 | { | ||
10891 | if ((int *) 0) | ||
10892 | return 0; | ||
10893 | if (sizeof (int)) | ||
10894 | return 0; | ||
10895 | ; | ||
10896 | return 0; | ||
10897 | } | ||
10898 | _ACEOF | ||
10899 | rm -f conftest.$ac_objext | ||
10900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10901 | (eval $ac_compile) 2>&5 | ||
10902 | ac_status=$? | ||
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10904 | (exit $ac_status); } && | ||
10905 | { ac_try='test -s conftest.$ac_objext' | ||
10906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10907 | (eval $ac_try) 2>&5 | ||
10908 | ac_status=$? | ||
10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10910 | (exit $ac_status); }; }; then | ||
10911 | ac_cv_type_int=yes | ||
10912 | else | ||
10913 | echo "$as_me: failed program was:" >&5 | ||
10914 | cat conftest.$ac_ext >&5 | ||
10915 | ac_cv_type_int=no | ||
10916 | fi | ||
10917 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
10918 | fi | ||
10919 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
10920 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
10921 | |||
10922 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
10923 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
10924 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10926 | else | ||
10927 | if test "$ac_cv_type_int" = yes; then | ||
10928 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
10929 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
10930 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
10931 | # This bug is HP SR number 8606223364. | ||
10932 | if test "$cross_compiling" = yes; then | ||
10933 | # Depending upon the size, compute the lo and hi bounds. | ||
10934 | cat >conftest.$ac_ext <<_ACEOF | ||
10935 | #line $LINENO "configure" | ||
10936 | #include "confdefs.h" | ||
10937 | $ac_includes_default | ||
10938 | #ifdef F77_DUMMY_MAIN | ||
10939 | # ifdef __cplusplus | ||
10940 | extern "C" | ||
10941 | # endif | ||
10942 | int F77_DUMMY_MAIN() { return 1; } | ||
10943 | #endif | ||
10944 | int | ||
10945 | main () | ||
10946 | { | ||
10947 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
10948 | test_array [0] = 0 | ||
10949 | |||
10950 | ; | ||
10951 | return 0; | ||
10952 | } | ||
10953 | _ACEOF | ||
10954 | rm -f conftest.$ac_objext | ||
10955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10956 | (eval $ac_compile) 2>&5 | ||
10957 | ac_status=$? | ||
10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10959 | (exit $ac_status); } && | ||
10960 | { ac_try='test -s conftest.$ac_objext' | ||
10961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10962 | (eval $ac_try) 2>&5 | ||
10963 | ac_status=$? | ||
10964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10965 | (exit $ac_status); }; }; then | ||
10966 | ac_lo=0 ac_mid=0 | ||
10967 | while :; do | ||
10968 | cat >conftest.$ac_ext <<_ACEOF | ||
10969 | #line $LINENO "configure" | ||
10970 | #include "confdefs.h" | ||
10971 | $ac_includes_default | ||
10972 | #ifdef F77_DUMMY_MAIN | ||
10973 | # ifdef __cplusplus | ||
10974 | extern "C" | ||
10975 | # endif | ||
10976 | int F77_DUMMY_MAIN() { return 1; } | ||
10977 | #endif | ||
10978 | int | ||
10979 | main () | ||
10980 | { | ||
10981 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
10982 | test_array [0] = 0 | ||
10983 | |||
10984 | ; | ||
10985 | return 0; | ||
10986 | } | ||
10987 | _ACEOF | ||
10988 | rm -f conftest.$ac_objext | ||
10989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10990 | (eval $ac_compile) 2>&5 | ||
10991 | ac_status=$? | ||
10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10993 | (exit $ac_status); } && | ||
10994 | { ac_try='test -s conftest.$ac_objext' | ||
10995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10996 | (eval $ac_try) 2>&5 | ||
10997 | ac_status=$? | ||
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10999 | (exit $ac_status); }; }; then | ||
11000 | ac_hi=$ac_mid; break | ||
11001 | else | ||
11002 | echo "$as_me: failed program was:" >&5 | ||
11003 | cat conftest.$ac_ext >&5 | ||
11004 | ac_lo=`expr $ac_mid + 1` | ||
11005 | if test $ac_lo -le $ac_mid; then | ||
11006 | ac_lo= ac_hi= | ||
11007 | break | ||
11008 | fi | ||
11009 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11010 | fi | ||
11011 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11012 | done | ||
11013 | else | ||
11014 | echo "$as_me: failed program was:" >&5 | ||
11015 | cat conftest.$ac_ext >&5 | ||
11016 | cat >conftest.$ac_ext <<_ACEOF | ||
11017 | #line $LINENO "configure" | ||
11018 | #include "confdefs.h" | ||
11019 | $ac_includes_default | ||
11020 | #ifdef F77_DUMMY_MAIN | ||
11021 | # ifdef __cplusplus | ||
11022 | extern "C" | ||
11023 | # endif | ||
11024 | int F77_DUMMY_MAIN() { return 1; } | ||
11025 | #endif | ||
11026 | int | ||
11027 | main () | ||
11028 | { | ||
11029 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
11030 | test_array [0] = 0 | ||
11031 | |||
11032 | ; | ||
11033 | return 0; | ||
11034 | } | ||
11035 | _ACEOF | ||
11036 | rm -f conftest.$ac_objext | ||
11037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11038 | (eval $ac_compile) 2>&5 | ||
11039 | ac_status=$? | ||
11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11041 | (exit $ac_status); } && | ||
11042 | { ac_try='test -s conftest.$ac_objext' | ||
11043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11044 | (eval $ac_try) 2>&5 | ||
11045 | ac_status=$? | ||
11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11047 | (exit $ac_status); }; }; then | ||
11048 | ac_hi=-1 ac_mid=-1 | ||
11049 | while :; do | ||
11050 | cat >conftest.$ac_ext <<_ACEOF | ||
11051 | #line $LINENO "configure" | ||
11052 | #include "confdefs.h" | ||
11053 | $ac_includes_default | ||
11054 | #ifdef F77_DUMMY_MAIN | ||
11055 | # ifdef __cplusplus | ||
11056 | extern "C" | ||
11057 | # endif | ||
11058 | int F77_DUMMY_MAIN() { return 1; } | ||
11059 | #endif | ||
11060 | int | ||
11061 | main () | ||
11062 | { | ||
11063 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
11064 | test_array [0] = 0 | ||
11065 | |||
11066 | ; | ||
11067 | return 0; | ||
11068 | } | ||
11069 | _ACEOF | ||
11070 | rm -f conftest.$ac_objext | ||
11071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11072 | (eval $ac_compile) 2>&5 | ||
11073 | ac_status=$? | ||
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11075 | (exit $ac_status); } && | ||
11076 | { ac_try='test -s conftest.$ac_objext' | ||
11077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11078 | (eval $ac_try) 2>&5 | ||
11079 | ac_status=$? | ||
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11081 | (exit $ac_status); }; }; then | ||
11082 | ac_lo=$ac_mid; break | ||
11083 | else | ||
11084 | echo "$as_me: failed program was:" >&5 | ||
11085 | cat conftest.$ac_ext >&5 | ||
11086 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11087 | if test $ac_mid -le $ac_hi; then | ||
11088 | ac_lo= ac_hi= | ||
11089 | break | ||
11090 | fi | ||
11091 | ac_mid=`expr 2 '*' $ac_mid` | ||
11092 | fi | ||
11093 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11094 | done | ||
11095 | else | ||
11096 | echo "$as_me: failed program was:" >&5 | ||
11097 | cat conftest.$ac_ext >&5 | ||
11098 | ac_lo= ac_hi= | ||
11099 | fi | ||
11100 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11101 | fi | ||
11102 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11103 | # Binary search between lo and hi bounds. | ||
11104 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11105 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11106 | cat >conftest.$ac_ext <<_ACEOF | ||
11107 | #line $LINENO "configure" | ||
11108 | #include "confdefs.h" | ||
11109 | $ac_includes_default | ||
11110 | #ifdef F77_DUMMY_MAIN | ||
11111 | # ifdef __cplusplus | ||
11112 | extern "C" | ||
11113 | # endif | ||
11114 | int F77_DUMMY_MAIN() { return 1; } | ||
11115 | #endif | ||
11116 | int | ||
11117 | main () | ||
11118 | { | ||
11119 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
11120 | test_array [0] = 0 | ||
11121 | |||
11122 | ; | ||
11123 | return 0; | ||
11124 | } | ||
11125 | _ACEOF | ||
11126 | rm -f conftest.$ac_objext | ||
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11128 | (eval $ac_compile) 2>&5 | ||
11129 | ac_status=$? | ||
11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11131 | (exit $ac_status); } && | ||
11132 | { ac_try='test -s conftest.$ac_objext' | ||
11133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11134 | (eval $ac_try) 2>&5 | ||
11135 | ac_status=$? | ||
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11137 | (exit $ac_status); }; }; then | ||
11138 | ac_hi=$ac_mid | ||
11139 | else | ||
11140 | echo "$as_me: failed program was:" >&5 | ||
11141 | cat conftest.$ac_ext >&5 | ||
11142 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11143 | fi | ||
11144 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11145 | done | ||
11146 | case $ac_lo in | ||
11147 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
11148 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
11149 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
11150 | { (exit 1); exit 1; }; } ;; | ||
11151 | esac | ||
11152 | else | ||
11153 | if test "$cross_compiling" = yes; then | ||
11154 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11155 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11156 | { (exit 1); exit 1; }; } | ||
11157 | else | ||
11158 | cat >conftest.$ac_ext <<_ACEOF | ||
11159 | #line $LINENO "configure" | ||
11160 | #include "confdefs.h" | ||
11161 | $ac_includes_default | ||
11162 | long longval () { return (long) (sizeof (int)); } | ||
11163 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
11164 | #include <stdio.h> | ||
11165 | #include <stdlib.h> | ||
11166 | #ifdef F77_DUMMY_MAIN | ||
11167 | # ifdef __cplusplus | ||
11168 | extern "C" | ||
11169 | # endif | ||
11170 | int F77_DUMMY_MAIN() { return 1; } | ||
11171 | #endif | ||
11172 | int | ||
11173 | main () | ||
11174 | { | ||
11175 | |||
11176 | FILE *f = fopen ("conftest.val", "w"); | ||
11177 | if (! f) | ||
11178 | exit (1); | ||
11179 | if (((long) (sizeof (int))) < 0) | ||
11180 | { | ||
11181 | long i = longval (); | ||
11182 | if (i != ((long) (sizeof (int)))) | ||
11183 | exit (1); | ||
11184 | fprintf (f, "%ld\n", i); | ||
11185 | } | ||
11186 | else | ||
11187 | { | ||
11188 | unsigned long i = ulongval (); | ||
11189 | if (i != ((long) (sizeof (int)))) | ||
11190 | exit (1); | ||
11191 | fprintf (f, "%lu\n", i); | ||
11192 | } | ||
11193 | exit (ferror (f) || fclose (f) != 0); | ||
11194 | |||
11195 | ; | ||
11196 | return 0; | ||
11197 | } | ||
11198 | _ACEOF | ||
11199 | rm -f conftest$ac_exeext | ||
11200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11201 | (eval $ac_link) 2>&5 | ||
11202 | ac_status=$? | ||
11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11206 | (eval $ac_try) 2>&5 | ||
11207 | ac_status=$? | ||
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11209 | (exit $ac_status); }; }; then | ||
11210 | ac_cv_sizeof_int=`cat conftest.val` | ||
11211 | else | ||
11212 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11213 | echo "$as_me: failed program was:" >&5 | ||
11214 | cat conftest.$ac_ext >&5 | ||
11215 | ( exit $ac_status ) | ||
11216 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | ||
11217 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | ||
11218 | { (exit 1); exit 1; }; } | ||
11219 | fi | ||
11220 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11221 | fi | ||
11222 | fi | ||
11223 | rm -f conftest.val | ||
11224 | else | ||
11225 | ac_cv_sizeof_int=0 | ||
11226 | fi | ||
11227 | fi | ||
11228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
11229 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
11230 | cat >>confdefs.h <<_ACEOF | ||
11231 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
11232 | _ACEOF | ||
11233 | |||
11234 | |||
11235 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
11236 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
11237 | if test "${ac_cv_type_long_int+set}" = set; then | ||
11238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11239 | else | ||
11240 | cat >conftest.$ac_ext <<_ACEOF | ||
11241 | #line $LINENO "configure" | ||
11242 | #include "confdefs.h" | ||
11243 | $ac_includes_default | ||
11244 | #ifdef F77_DUMMY_MAIN | ||
11245 | # ifdef __cplusplus | ||
11246 | extern "C" | ||
11247 | # endif | ||
11248 | int F77_DUMMY_MAIN() { return 1; } | ||
11249 | #endif | ||
11250 | int | ||
11251 | main () | ||
11252 | { | ||
11253 | if ((long int *) 0) | ||
11254 | return 0; | ||
11255 | if (sizeof (long int)) | ||
11256 | return 0; | ||
11257 | ; | ||
11258 | return 0; | ||
11259 | } | ||
11260 | _ACEOF | ||
11261 | rm -f conftest.$ac_objext | ||
11262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11263 | (eval $ac_compile) 2>&5 | ||
11264 | ac_status=$? | ||
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11266 | (exit $ac_status); } && | ||
11267 | { ac_try='test -s conftest.$ac_objext' | ||
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11269 | (eval $ac_try) 2>&5 | ||
11270 | ac_status=$? | ||
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11272 | (exit $ac_status); }; }; then | ||
11273 | ac_cv_type_long_int=yes | ||
11274 | else | ||
11275 | echo "$as_me: failed program was:" >&5 | ||
11276 | cat conftest.$ac_ext >&5 | ||
11277 | ac_cv_type_long_int=no | ||
11278 | fi | ||
11279 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11280 | fi | ||
11281 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
11282 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
11283 | |||
11284 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
11285 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
11286 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11288 | else | ||
11289 | if test "$ac_cv_type_long_int" = yes; then | ||
11290 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
11291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11293 | # This bug is HP SR number 8606223364. | ||
11294 | if test "$cross_compiling" = yes; then | ||
11295 | # Depending upon the size, compute the lo and hi bounds. | ||
11296 | cat >conftest.$ac_ext <<_ACEOF | ||
11297 | #line $LINENO "configure" | ||
11298 | #include "confdefs.h" | ||
11299 | $ac_includes_default | ||
11300 | #ifdef F77_DUMMY_MAIN | ||
11301 | # ifdef __cplusplus | ||
11302 | extern "C" | ||
11303 | # endif | ||
11304 | int F77_DUMMY_MAIN() { return 1; } | ||
11305 | #endif | ||
11306 | int | ||
11307 | main () | ||
11308 | { | ||
11309 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
11310 | test_array [0] = 0 | ||
11311 | |||
11312 | ; | ||
11313 | return 0; | ||
11314 | } | ||
11315 | _ACEOF | ||
11316 | rm -f conftest.$ac_objext | ||
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11318 | (eval $ac_compile) 2>&5 | ||
11319 | ac_status=$? | ||
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11321 | (exit $ac_status); } && | ||
11322 | { ac_try='test -s conftest.$ac_objext' | ||
11323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11324 | (eval $ac_try) 2>&5 | ||
11325 | ac_status=$? | ||
11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11327 | (exit $ac_status); }; }; then | ||
11328 | ac_lo=0 ac_mid=0 | ||
11329 | while :; do | ||
11330 | cat >conftest.$ac_ext <<_ACEOF | ||
11331 | #line $LINENO "configure" | ||
11332 | #include "confdefs.h" | ||
11333 | $ac_includes_default | ||
11334 | #ifdef F77_DUMMY_MAIN | ||
11335 | # ifdef __cplusplus | ||
11336 | extern "C" | ||
11337 | # endif | ||
11338 | int F77_DUMMY_MAIN() { return 1; } | ||
11339 | #endif | ||
11340 | int | ||
11341 | main () | ||
11342 | { | ||
11343 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
11344 | test_array [0] = 0 | ||
11345 | |||
11346 | ; | ||
11347 | return 0; | ||
11348 | } | ||
11349 | _ACEOF | ||
11350 | rm -f conftest.$ac_objext | ||
11351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11352 | (eval $ac_compile) 2>&5 | ||
11353 | ac_status=$? | ||
11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11355 | (exit $ac_status); } && | ||
11356 | { ac_try='test -s conftest.$ac_objext' | ||
11357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11358 | (eval $ac_try) 2>&5 | ||
11359 | ac_status=$? | ||
11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11361 | (exit $ac_status); }; }; then | ||
11362 | ac_hi=$ac_mid; break | ||
11363 | else | ||
11364 | echo "$as_me: failed program was:" >&5 | ||
11365 | cat conftest.$ac_ext >&5 | ||
11366 | ac_lo=`expr $ac_mid + 1` | ||
11367 | if test $ac_lo -le $ac_mid; then | ||
11368 | ac_lo= ac_hi= | ||
11369 | break | ||
11370 | fi | ||
11371 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11372 | fi | ||
11373 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11374 | done | ||
11375 | else | ||
11376 | echo "$as_me: failed program was:" >&5 | ||
11377 | cat conftest.$ac_ext >&5 | ||
11378 | cat >conftest.$ac_ext <<_ACEOF | ||
11379 | #line $LINENO "configure" | ||
11380 | #include "confdefs.h" | ||
11381 | $ac_includes_default | ||
11382 | #ifdef F77_DUMMY_MAIN | ||
11383 | # ifdef __cplusplus | ||
11384 | extern "C" | ||
11385 | # endif | ||
11386 | int F77_DUMMY_MAIN() { return 1; } | ||
11387 | #endif | ||
11388 | int | ||
11389 | main () | ||
11390 | { | ||
11391 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
11392 | test_array [0] = 0 | ||
11393 | |||
11394 | ; | ||
11395 | return 0; | ||
11396 | } | ||
11397 | _ACEOF | ||
11398 | rm -f conftest.$ac_objext | ||
11399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11400 | (eval $ac_compile) 2>&5 | ||
11401 | ac_status=$? | ||
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11403 | (exit $ac_status); } && | ||
11404 | { ac_try='test -s conftest.$ac_objext' | ||
11405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11406 | (eval $ac_try) 2>&5 | ||
11407 | ac_status=$? | ||
11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11409 | (exit $ac_status); }; }; then | ||
11410 | ac_hi=-1 ac_mid=-1 | ||
11411 | while :; do | ||
11412 | cat >conftest.$ac_ext <<_ACEOF | ||
11413 | #line $LINENO "configure" | ||
11414 | #include "confdefs.h" | ||
11415 | $ac_includes_default | ||
11416 | #ifdef F77_DUMMY_MAIN | ||
11417 | # ifdef __cplusplus | ||
11418 | extern "C" | ||
11419 | # endif | ||
11420 | int F77_DUMMY_MAIN() { return 1; } | ||
11421 | #endif | ||
11422 | int | ||
11423 | main () | ||
11424 | { | ||
11425 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
11426 | test_array [0] = 0 | ||
11427 | |||
11428 | ; | ||
11429 | return 0; | ||
11430 | } | ||
11431 | _ACEOF | ||
11432 | rm -f conftest.$ac_objext | ||
11433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11434 | (eval $ac_compile) 2>&5 | ||
11435 | ac_status=$? | ||
11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11437 | (exit $ac_status); } && | ||
11438 | { ac_try='test -s conftest.$ac_objext' | ||
11439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11440 | (eval $ac_try) 2>&5 | ||
11441 | ac_status=$? | ||
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11443 | (exit $ac_status); }; }; then | ||
11444 | ac_lo=$ac_mid; break | ||
11445 | else | ||
11446 | echo "$as_me: failed program was:" >&5 | ||
11447 | cat conftest.$ac_ext >&5 | ||
11448 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11449 | if test $ac_mid -le $ac_hi; then | ||
11450 | ac_lo= ac_hi= | ||
11451 | break | ||
11452 | fi | ||
11453 | ac_mid=`expr 2 '*' $ac_mid` | ||
11454 | fi | ||
11455 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11456 | done | ||
11457 | else | ||
11458 | echo "$as_me: failed program was:" >&5 | ||
11459 | cat conftest.$ac_ext >&5 | ||
11460 | ac_lo= ac_hi= | ||
11461 | fi | ||
11462 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11463 | fi | ||
11464 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11465 | # Binary search between lo and hi bounds. | ||
11466 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11467 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11468 | cat >conftest.$ac_ext <<_ACEOF | ||
11469 | #line $LINENO "configure" | ||
11470 | #include "confdefs.h" | ||
11471 | $ac_includes_default | ||
11472 | #ifdef F77_DUMMY_MAIN | ||
11473 | # ifdef __cplusplus | ||
11474 | extern "C" | ||
11475 | # endif | ||
11476 | int F77_DUMMY_MAIN() { return 1; } | ||
11477 | #endif | ||
11478 | int | ||
11479 | main () | ||
11480 | { | ||
11481 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
11482 | test_array [0] = 0 | ||
11483 | |||
11484 | ; | ||
11485 | return 0; | ||
11486 | } | ||
11487 | _ACEOF | ||
11488 | rm -f conftest.$ac_objext | ||
11489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11490 | (eval $ac_compile) 2>&5 | ||
11491 | ac_status=$? | ||
11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11493 | (exit $ac_status); } && | ||
11494 | { ac_try='test -s conftest.$ac_objext' | ||
11495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11496 | (eval $ac_try) 2>&5 | ||
11497 | ac_status=$? | ||
11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11499 | (exit $ac_status); }; }; then | ||
11500 | ac_hi=$ac_mid | ||
11501 | else | ||
11502 | echo "$as_me: failed program was:" >&5 | ||
11503 | cat conftest.$ac_ext >&5 | ||
11504 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11505 | fi | ||
11506 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11507 | done | ||
11508 | case $ac_lo in | ||
11509 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
11510 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11511 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11512 | { (exit 1); exit 1; }; } ;; | ||
11513 | esac | ||
11514 | else | ||
11515 | if test "$cross_compiling" = yes; then | ||
11516 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11517 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11518 | { (exit 1); exit 1; }; } | ||
11519 | else | ||
11520 | cat >conftest.$ac_ext <<_ACEOF | ||
11521 | #line $LINENO "configure" | ||
11522 | #include "confdefs.h" | ||
11523 | $ac_includes_default | ||
11524 | long longval () { return (long) (sizeof (long int)); } | ||
11525 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
11526 | #include <stdio.h> | ||
11527 | #include <stdlib.h> | ||
11528 | #ifdef F77_DUMMY_MAIN | ||
11529 | # ifdef __cplusplus | ||
11530 | extern "C" | ||
11531 | # endif | ||
11532 | int F77_DUMMY_MAIN() { return 1; } | ||
11533 | #endif | ||
11534 | int | ||
11535 | main () | ||
11536 | { | ||
11537 | |||
11538 | FILE *f = fopen ("conftest.val", "w"); | ||
11539 | if (! f) | ||
11540 | exit (1); | ||
11541 | if (((long) (sizeof (long int))) < 0) | ||
11542 | { | ||
11543 | long i = longval (); | ||
11544 | if (i != ((long) (sizeof (long int)))) | ||
11545 | exit (1); | ||
11546 | fprintf (f, "%ld\n", i); | ||
11547 | } | ||
11548 | else | ||
11549 | { | ||
11550 | unsigned long i = ulongval (); | ||
11551 | if (i != ((long) (sizeof (long int)))) | ||
11552 | exit (1); | ||
11553 | fprintf (f, "%lu\n", i); | ||
11554 | } | ||
11555 | exit (ferror (f) || fclose (f) != 0); | ||
11556 | |||
11557 | ; | ||
11558 | return 0; | ||
11559 | } | ||
11560 | _ACEOF | ||
11561 | rm -f conftest$ac_exeext | ||
11562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11563 | (eval $ac_link) 2>&5 | ||
11564 | ac_status=$? | ||
11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11568 | (eval $ac_try) 2>&5 | ||
11569 | ac_status=$? | ||
11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11571 | (exit $ac_status); }; }; then | ||
11572 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
11573 | else | ||
11574 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11575 | echo "$as_me: failed program was:" >&5 | ||
11576 | cat conftest.$ac_ext >&5 | ||
11577 | ( exit $ac_status ) | ||
11578 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | ||
11579 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | ||
11580 | { (exit 1); exit 1; }; } | ||
11581 | fi | ||
11582 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11583 | fi | ||
11584 | fi | ||
11585 | rm -f conftest.val | ||
11586 | else | ||
11587 | ac_cv_sizeof_long_int=0 | ||
11588 | fi | ||
11589 | fi | ||
11590 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
11591 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
11592 | cat >>confdefs.h <<_ACEOF | ||
11593 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
11594 | _ACEOF | ||
11595 | |||
11596 | |||
11597 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
11598 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
11599 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
11600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11601 | else | ||
11602 | cat >conftest.$ac_ext <<_ACEOF | ||
11603 | #line $LINENO "configure" | ||
11604 | #include "confdefs.h" | ||
11605 | $ac_includes_default | ||
11606 | #ifdef F77_DUMMY_MAIN | ||
11607 | # ifdef __cplusplus | ||
11608 | extern "C" | ||
11609 | # endif | ||
11610 | int F77_DUMMY_MAIN() { return 1; } | ||
11611 | #endif | ||
11612 | int | ||
11613 | main () | ||
11614 | { | ||
11615 | if ((long long int *) 0) | ||
11616 | return 0; | ||
11617 | if (sizeof (long long int)) | ||
11618 | return 0; | ||
11619 | ; | ||
11620 | return 0; | ||
11621 | } | ||
11622 | _ACEOF | ||
11623 | rm -f conftest.$ac_objext | ||
11624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11625 | (eval $ac_compile) 2>&5 | ||
11626 | ac_status=$? | ||
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11628 | (exit $ac_status); } && | ||
11629 | { ac_try='test -s conftest.$ac_objext' | ||
11630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11631 | (eval $ac_try) 2>&5 | ||
11632 | ac_status=$? | ||
11633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11634 | (exit $ac_status); }; }; then | ||
11635 | ac_cv_type_long_long_int=yes | ||
11636 | else | ||
11637 | echo "$as_me: failed program was:" >&5 | ||
11638 | cat conftest.$ac_ext >&5 | ||
11639 | ac_cv_type_long_long_int=no | ||
11640 | fi | ||
11641 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11642 | fi | ||
11643 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
11644 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
11645 | |||
11646 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
11647 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
11648 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
11649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11650 | else | ||
11651 | if test "$ac_cv_type_long_long_int" = yes; then | ||
11652 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
11653 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
11654 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
11655 | # This bug is HP SR number 8606223364. | ||
11656 | if test "$cross_compiling" = yes; then | ||
11657 | # Depending upon the size, compute the lo and hi bounds. | ||
11658 | cat >conftest.$ac_ext <<_ACEOF | ||
11659 | #line $LINENO "configure" | ||
11660 | #include "confdefs.h" | ||
11661 | $ac_includes_default | ||
11662 | #ifdef F77_DUMMY_MAIN | ||
11663 | # ifdef __cplusplus | ||
11664 | extern "C" | ||
11665 | # endif | ||
11666 | int F77_DUMMY_MAIN() { return 1; } | ||
11667 | #endif | ||
11668 | int | ||
11669 | main () | ||
11670 | { | ||
11671 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
11672 | test_array [0] = 0 | ||
11673 | |||
11674 | ; | ||
11675 | return 0; | ||
11676 | } | ||
11677 | _ACEOF | ||
11678 | rm -f conftest.$ac_objext | ||
11679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11680 | (eval $ac_compile) 2>&5 | ||
11681 | ac_status=$? | ||
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11683 | (exit $ac_status); } && | ||
11684 | { ac_try='test -s conftest.$ac_objext' | ||
11685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11686 | (eval $ac_try) 2>&5 | ||
11687 | ac_status=$? | ||
11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11689 | (exit $ac_status); }; }; then | ||
11690 | ac_lo=0 ac_mid=0 | ||
11691 | while :; do | ||
11692 | cat >conftest.$ac_ext <<_ACEOF | ||
11693 | #line $LINENO "configure" | ||
11694 | #include "confdefs.h" | ||
11695 | $ac_includes_default | ||
11696 | #ifdef F77_DUMMY_MAIN | ||
11697 | # ifdef __cplusplus | ||
11698 | extern "C" | ||
11699 | # endif | ||
11700 | int F77_DUMMY_MAIN() { return 1; } | ||
11701 | #endif | ||
11702 | int | ||
11703 | main () | ||
11704 | { | ||
11705 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
11706 | test_array [0] = 0 | ||
11707 | |||
11708 | ; | ||
11709 | return 0; | ||
11710 | } | ||
11711 | _ACEOF | ||
11712 | rm -f conftest.$ac_objext | ||
11713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11714 | (eval $ac_compile) 2>&5 | ||
11715 | ac_status=$? | ||
11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11717 | (exit $ac_status); } && | ||
11718 | { ac_try='test -s conftest.$ac_objext' | ||
11719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11720 | (eval $ac_try) 2>&5 | ||
11721 | ac_status=$? | ||
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11723 | (exit $ac_status); }; }; then | ||
11724 | ac_hi=$ac_mid; break | ||
11725 | else | ||
11726 | echo "$as_me: failed program was:" >&5 | ||
11727 | cat conftest.$ac_ext >&5 | ||
11728 | ac_lo=`expr $ac_mid + 1` | ||
11729 | if test $ac_lo -le $ac_mid; then | ||
11730 | ac_lo= ac_hi= | ||
11731 | break | ||
11732 | fi | ||
11733 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
11734 | fi | ||
11735 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11736 | done | ||
11737 | else | ||
11738 | echo "$as_me: failed program was:" >&5 | ||
11739 | cat conftest.$ac_ext >&5 | ||
11740 | cat >conftest.$ac_ext <<_ACEOF | ||
11741 | #line $LINENO "configure" | ||
11742 | #include "confdefs.h" | ||
11743 | $ac_includes_default | ||
11744 | #ifdef F77_DUMMY_MAIN | ||
11745 | # ifdef __cplusplus | ||
11746 | extern "C" | ||
11747 | # endif | ||
11748 | int F77_DUMMY_MAIN() { return 1; } | ||
11749 | #endif | ||
11750 | int | ||
11751 | main () | ||
11752 | { | ||
11753 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
11754 | test_array [0] = 0 | ||
11755 | |||
11756 | ; | ||
11757 | return 0; | ||
11758 | } | ||
11759 | _ACEOF | ||
11760 | rm -f conftest.$ac_objext | ||
11761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11762 | (eval $ac_compile) 2>&5 | ||
11763 | ac_status=$? | ||
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11765 | (exit $ac_status); } && | ||
11766 | { ac_try='test -s conftest.$ac_objext' | ||
11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11768 | (eval $ac_try) 2>&5 | ||
11769 | ac_status=$? | ||
11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11771 | (exit $ac_status); }; }; then | ||
11772 | ac_hi=-1 ac_mid=-1 | ||
11773 | while :; do | ||
11774 | cat >conftest.$ac_ext <<_ACEOF | ||
11775 | #line $LINENO "configure" | ||
11776 | #include "confdefs.h" | ||
11777 | $ac_includes_default | ||
11778 | #ifdef F77_DUMMY_MAIN | ||
11779 | # ifdef __cplusplus | ||
11780 | extern "C" | ||
11781 | # endif | ||
11782 | int F77_DUMMY_MAIN() { return 1; } | ||
11783 | #endif | ||
11784 | int | ||
11785 | main () | ||
11786 | { | ||
11787 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
11788 | test_array [0] = 0 | ||
11789 | |||
11790 | ; | ||
11791 | return 0; | ||
11792 | } | ||
11793 | _ACEOF | ||
11794 | rm -f conftest.$ac_objext | ||
11795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11796 | (eval $ac_compile) 2>&5 | ||
11797 | ac_status=$? | ||
11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11799 | (exit $ac_status); } && | ||
11800 | { ac_try='test -s conftest.$ac_objext' | ||
11801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11802 | (eval $ac_try) 2>&5 | ||
11803 | ac_status=$? | ||
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11805 | (exit $ac_status); }; }; then | ||
11806 | ac_lo=$ac_mid; break | ||
11807 | else | ||
11808 | echo "$as_me: failed program was:" >&5 | ||
11809 | cat conftest.$ac_ext >&5 | ||
11810 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
11811 | if test $ac_mid -le $ac_hi; then | ||
11812 | ac_lo= ac_hi= | ||
11813 | break | ||
11814 | fi | ||
11815 | ac_mid=`expr 2 '*' $ac_mid` | ||
11816 | fi | ||
11817 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11818 | done | ||
11819 | else | ||
11820 | echo "$as_me: failed program was:" >&5 | ||
11821 | cat conftest.$ac_ext >&5 | ||
11822 | ac_lo= ac_hi= | ||
11823 | fi | ||
11824 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11825 | fi | ||
11826 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11827 | # Binary search between lo and hi bounds. | ||
11828 | while test "x$ac_lo" != "x$ac_hi"; do | ||
11829 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
11830 | cat >conftest.$ac_ext <<_ACEOF | ||
11831 | #line $LINENO "configure" | ||
11832 | #include "confdefs.h" | ||
11833 | $ac_includes_default | ||
11834 | #ifdef F77_DUMMY_MAIN | ||
11835 | # ifdef __cplusplus | ||
11836 | extern "C" | ||
11837 | # endif | ||
11838 | int F77_DUMMY_MAIN() { return 1; } | ||
11839 | #endif | ||
11840 | int | ||
11841 | main () | ||
11842 | { | ||
11843 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
11844 | test_array [0] = 0 | ||
11845 | |||
11846 | ; | ||
11847 | return 0; | ||
11848 | } | ||
11849 | _ACEOF | ||
11850 | rm -f conftest.$ac_objext | ||
11851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11852 | (eval $ac_compile) 2>&5 | ||
11853 | ac_status=$? | ||
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11855 | (exit $ac_status); } && | ||
11856 | { ac_try='test -s conftest.$ac_objext' | ||
11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11858 | (eval $ac_try) 2>&5 | ||
11859 | ac_status=$? | ||
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11861 | (exit $ac_status); }; }; then | ||
11862 | ac_hi=$ac_mid | ||
11863 | else | ||
11864 | echo "$as_me: failed program was:" >&5 | ||
11865 | cat conftest.$ac_ext >&5 | ||
11866 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
11867 | fi | ||
11868 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
11869 | done | ||
11870 | case $ac_lo in | ||
11871 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
11872 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11873 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11874 | { (exit 1); exit 1; }; } ;; | ||
11875 | esac | ||
11876 | else | ||
11877 | if test "$cross_compiling" = yes; then | ||
11878 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
11879 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
11880 | { (exit 1); exit 1; }; } | ||
11881 | else | ||
11882 | cat >conftest.$ac_ext <<_ACEOF | ||
11883 | #line $LINENO "configure" | ||
11884 | #include "confdefs.h" | ||
11885 | $ac_includes_default | ||
11886 | long longval () { return (long) (sizeof (long long int)); } | ||
11887 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
11888 | #include <stdio.h> | ||
11889 | #include <stdlib.h> | ||
11890 | #ifdef F77_DUMMY_MAIN | ||
11891 | # ifdef __cplusplus | ||
11892 | extern "C" | ||
11893 | # endif | ||
11894 | int F77_DUMMY_MAIN() { return 1; } | ||
11895 | #endif | ||
11896 | int | ||
11897 | main () | ||
11898 | { | ||
11899 | |||
11900 | FILE *f = fopen ("conftest.val", "w"); | ||
11901 | if (! f) | ||
11902 | exit (1); | ||
11903 | if (((long) (sizeof (long long int))) < 0) | ||
11904 | { | ||
11905 | long i = longval (); | ||
11906 | if (i != ((long) (sizeof (long long int)))) | ||
11907 | exit (1); | ||
11908 | fprintf (f, "%ld\n", i); | ||
11909 | } | ||
11910 | else | ||
11911 | { | ||
11912 | unsigned long i = ulongval (); | ||
11913 | if (i != ((long) (sizeof (long long int)))) | ||
11914 | exit (1); | ||
11915 | fprintf (f, "%lu\n", i); | ||
11916 | } | ||
11917 | exit (ferror (f) || fclose (f) != 0); | ||
11918 | |||
11919 | ; | ||
11920 | return 0; | ||
11921 | } | ||
11922 | _ACEOF | ||
11923 | rm -f conftest$ac_exeext | ||
11924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11925 | (eval $ac_link) 2>&5 | ||
11926 | ac_status=$? | ||
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11930 | (eval $ac_try) 2>&5 | ||
11931 | ac_status=$? | ||
11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11933 | (exit $ac_status); }; }; then | ||
11934 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
11935 | else | ||
11936 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11937 | echo "$as_me: failed program was:" >&5 | ||
11938 | cat conftest.$ac_ext >&5 | ||
11939 | ( exit $ac_status ) | ||
11940 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | ||
11941 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | ||
11942 | { (exit 1); exit 1; }; } | ||
11943 | fi | ||
11944 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11945 | fi | ||
11946 | fi | ||
11947 | rm -f conftest.val | ||
11948 | else | ||
11949 | ac_cv_sizeof_long_long_int=0 | ||
11950 | fi | ||
11951 | fi | ||
11952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
11953 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
11954 | cat >>confdefs.h <<_ACEOF | ||
11955 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
11956 | _ACEOF | ||
11957 | |||
11958 | |||
11959 | |||
11960 | # Sanity check long long for some platforms (AIX) | ||
11961 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
11962 | ac_cv_sizeof_long_long_int=0 | ||
11963 | fi | ||
11964 | |||
11965 | # More checks for data types | ||
11966 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
11967 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
11968 | if test "${ac_cv_have_u_int+set}" = set; then | ||
11969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11970 | else | ||
11971 | |||
11972 | cat >conftest.$ac_ext <<_ACEOF | ||
11973 | #line $LINENO "configure" | ||
11974 | #include "confdefs.h" | ||
11975 | #include <sys/types.h> | ||
11976 | #ifdef F77_DUMMY_MAIN | ||
11977 | # ifdef __cplusplus | ||
11978 | extern "C" | ||
11979 | # endif | ||
11980 | int F77_DUMMY_MAIN() { return 1; } | ||
11981 | #endif | ||
11982 | int | ||
11983 | main () | ||
11984 | { | ||
11985 | u_int a; a = 1; | ||
11986 | ; | ||
11987 | return 0; | ||
11988 | } | ||
11989 | _ACEOF | ||
11990 | rm -f conftest.$ac_objext | ||
11991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11992 | (eval $ac_compile) 2>&5 | ||
11993 | ac_status=$? | ||
11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11995 | (exit $ac_status); } && | ||
11996 | { ac_try='test -s conftest.$ac_objext' | ||
11997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11998 | (eval $ac_try) 2>&5 | ||
11999 | ac_status=$? | ||
12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12001 | (exit $ac_status); }; }; then | ||
12002 | ac_cv_have_u_int="yes" | ||
12003 | else | ||
12004 | echo "$as_me: failed program was:" >&5 | ||
12005 | cat conftest.$ac_ext >&5 | ||
12006 | ac_cv_have_u_int="no" | ||
12007 | |||
12008 | fi | ||
12009 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12010 | |||
12011 | fi | ||
12012 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
12013 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
12014 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
12015 | cat >>confdefs.h <<\_ACEOF | ||
12016 | #define HAVE_U_INT 1 | ||
12017 | _ACEOF | ||
12018 | |||
12019 | have_u_int=1 | ||
12020 | fi | ||
12021 | |||
12022 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
12023 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
12024 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12026 | else | ||
12027 | |||
12028 | cat >conftest.$ac_ext <<_ACEOF | ||
12029 | #line $LINENO "configure" | ||
12030 | #include "confdefs.h" | ||
12031 | #include <sys/types.h> | ||
12032 | #ifdef F77_DUMMY_MAIN | ||
12033 | # ifdef __cplusplus | ||
12034 | extern "C" | ||
12035 | # endif | ||
12036 | int F77_DUMMY_MAIN() { return 1; } | ||
12037 | #endif | ||
12038 | int | ||
12039 | main () | ||
12040 | { | ||
12041 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12042 | ; | ||
12043 | return 0; | ||
12044 | } | ||
12045 | _ACEOF | ||
12046 | rm -f conftest.$ac_objext | ||
12047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12048 | (eval $ac_compile) 2>&5 | ||
12049 | ac_status=$? | ||
12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12051 | (exit $ac_status); } && | ||
12052 | { ac_try='test -s conftest.$ac_objext' | ||
12053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12054 | (eval $ac_try) 2>&5 | ||
12055 | ac_status=$? | ||
12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12057 | (exit $ac_status); }; }; then | ||
12058 | ac_cv_have_intxx_t="yes" | ||
12059 | else | ||
12060 | echo "$as_me: failed program was:" >&5 | ||
12061 | cat conftest.$ac_ext >&5 | ||
12062 | ac_cv_have_intxx_t="no" | ||
12063 | |||
12064 | fi | ||
12065 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12066 | |||
12067 | fi | ||
12068 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
12069 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
12070 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
12071 | cat >>confdefs.h <<\_ACEOF | ||
12072 | #define HAVE_INTXX_T 1 | ||
12073 | _ACEOF | ||
12074 | |||
12075 | have_intxx_t=1 | ||
12076 | fi | ||
12077 | |||
12078 | if (test -z "$have_intxx_t" && \ | ||
12079 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
12080 | then | ||
12081 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
12082 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
12083 | cat >conftest.$ac_ext <<_ACEOF | ||
12084 | #line $LINENO "configure" | ||
12085 | #include "confdefs.h" | ||
12086 | #include <stdint.h> | ||
12087 | #ifdef F77_DUMMY_MAIN | ||
12088 | # ifdef __cplusplus | ||
12089 | extern "C" | ||
12090 | # endif | ||
12091 | int F77_DUMMY_MAIN() { return 1; } | ||
12092 | #endif | ||
12093 | int | ||
12094 | main () | ||
12095 | { | ||
12096 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12097 | ; | ||
12098 | return 0; | ||
12099 | } | ||
12100 | _ACEOF | ||
12101 | rm -f conftest.$ac_objext | ||
12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12103 | (eval $ac_compile) 2>&5 | ||
12104 | ac_status=$? | ||
12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12106 | (exit $ac_status); } && | ||
12107 | { ac_try='test -s conftest.$ac_objext' | ||
12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12109 | (eval $ac_try) 2>&5 | ||
12110 | ac_status=$? | ||
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12112 | (exit $ac_status); }; }; then | ||
12113 | |||
12114 | cat >>confdefs.h <<\_ACEOF | ||
12115 | #define HAVE_INTXX_T 1 | ||
12116 | _ACEOF | ||
12117 | |||
12118 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12119 | echo "${ECHO_T}yes" >&6 | ||
12120 | |||
12121 | else | ||
12122 | echo "$as_me: failed program was:" >&5 | ||
12123 | cat conftest.$ac_ext >&5 | ||
12124 | echo "$as_me:$LINENO: result: no" >&5 | ||
12125 | echo "${ECHO_T}no" >&6 | ||
12126 | |||
12127 | fi | ||
12128 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12129 | fi | ||
12130 | |||
12131 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
12132 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
12133 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12135 | else | ||
12136 | |||
12137 | cat >conftest.$ac_ext <<_ACEOF | ||
12138 | #line $LINENO "configure" | ||
12139 | #include "confdefs.h" | ||
12140 | |||
12141 | #include <sys/types.h> | ||
12142 | #ifdef HAVE_STDINT_H | ||
12143 | # include <stdint.h> | ||
12144 | #endif | ||
12145 | #include <sys/socket.h> | ||
12146 | #ifdef HAVE_SYS_BITYPES_H | ||
12147 | # include <sys/bitypes.h> | ||
12148 | #endif | ||
12149 | |||
12150 | #ifdef F77_DUMMY_MAIN | ||
12151 | # ifdef __cplusplus | ||
12152 | extern "C" | ||
12153 | # endif | ||
12154 | int F77_DUMMY_MAIN() { return 1; } | ||
12155 | #endif | ||
12156 | int | ||
12157 | main () | ||
12158 | { | ||
12159 | int64_t a; a = 1; | ||
12160 | ; | ||
12161 | return 0; | ||
12162 | } | ||
12163 | _ACEOF | ||
12164 | rm -f conftest.$ac_objext | ||
12165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12166 | (eval $ac_compile) 2>&5 | ||
12167 | ac_status=$? | ||
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12169 | (exit $ac_status); } && | ||
12170 | { ac_try='test -s conftest.$ac_objext' | ||
12171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12172 | (eval $ac_try) 2>&5 | ||
12173 | ac_status=$? | ||
12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12175 | (exit $ac_status); }; }; then | ||
12176 | ac_cv_have_int64_t="yes" | ||
12177 | else | ||
12178 | echo "$as_me: failed program was:" >&5 | ||
12179 | cat conftest.$ac_ext >&5 | ||
12180 | ac_cv_have_int64_t="no" | ||
12181 | |||
12182 | fi | ||
12183 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12184 | |||
12185 | fi | ||
12186 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
12187 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
12188 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
12189 | cat >>confdefs.h <<\_ACEOF | ||
12190 | #define HAVE_INT64_T 1 | ||
12191 | _ACEOF | ||
12192 | |||
12193 | fi | ||
12194 | |||
12195 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
12196 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
12197 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
12198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12199 | else | ||
12200 | |||
12201 | cat >conftest.$ac_ext <<_ACEOF | ||
12202 | #line $LINENO "configure" | ||
12203 | #include "confdefs.h" | ||
12204 | #include <sys/types.h> | ||
12205 | #ifdef F77_DUMMY_MAIN | ||
12206 | # ifdef __cplusplus | ||
12207 | extern "C" | ||
12208 | # endif | ||
12209 | int F77_DUMMY_MAIN() { return 1; } | ||
12210 | #endif | ||
12211 | int | ||
12212 | main () | ||
12213 | { | ||
12214 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12215 | ; | ||
12216 | return 0; | ||
12217 | } | ||
12218 | _ACEOF | ||
12219 | rm -f conftest.$ac_objext | ||
12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12221 | (eval $ac_compile) 2>&5 | ||
12222 | ac_status=$? | ||
12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12224 | (exit $ac_status); } && | ||
12225 | { ac_try='test -s conftest.$ac_objext' | ||
12226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12227 | (eval $ac_try) 2>&5 | ||
12228 | ac_status=$? | ||
12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12230 | (exit $ac_status); }; }; then | ||
12231 | ac_cv_have_u_intxx_t="yes" | ||
12232 | else | ||
12233 | echo "$as_me: failed program was:" >&5 | ||
12234 | cat conftest.$ac_ext >&5 | ||
12235 | ac_cv_have_u_intxx_t="no" | ||
12236 | |||
12237 | fi | ||
12238 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12239 | |||
12240 | fi | ||
12241 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
12242 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
12243 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
12244 | cat >>confdefs.h <<\_ACEOF | ||
12245 | #define HAVE_U_INTXX_T 1 | ||
12246 | _ACEOF | ||
12247 | |||
12248 | have_u_intxx_t=1 | ||
12249 | fi | ||
12250 | |||
12251 | if test -z "$have_u_intxx_t" ; then | ||
12252 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
12253 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
12254 | cat >conftest.$ac_ext <<_ACEOF | ||
12255 | #line $LINENO "configure" | ||
12256 | #include "confdefs.h" | ||
12257 | #include <sys/socket.h> | ||
12258 | #ifdef F77_DUMMY_MAIN | ||
12259 | # ifdef __cplusplus | ||
12260 | extern "C" | ||
12261 | # endif | ||
12262 | int F77_DUMMY_MAIN() { return 1; } | ||
12263 | #endif | ||
12264 | int | ||
12265 | main () | ||
12266 | { | ||
12267 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12268 | ; | ||
12269 | return 0; | ||
12270 | } | ||
12271 | _ACEOF | ||
12272 | rm -f conftest.$ac_objext | ||
12273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12274 | (eval $ac_compile) 2>&5 | ||
12275 | ac_status=$? | ||
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12277 | (exit $ac_status); } && | ||
12278 | { ac_try='test -s conftest.$ac_objext' | ||
12279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12280 | (eval $ac_try) 2>&5 | ||
12281 | ac_status=$? | ||
12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12283 | (exit $ac_status); }; }; then | ||
12284 | |||
12285 | cat >>confdefs.h <<\_ACEOF | ||
12286 | #define HAVE_U_INTXX_T 1 | ||
12287 | _ACEOF | ||
12288 | |||
12289 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12290 | echo "${ECHO_T}yes" >&6 | ||
12291 | |||
12292 | else | ||
12293 | echo "$as_me: failed program was:" >&5 | ||
12294 | cat conftest.$ac_ext >&5 | ||
12295 | echo "$as_me:$LINENO: result: no" >&5 | ||
12296 | echo "${ECHO_T}no" >&6 | ||
12297 | |||
12298 | fi | ||
12299 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12300 | fi | ||
12301 | |||
12302 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
12303 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
12304 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12306 | else | ||
12307 | |||
12308 | cat >conftest.$ac_ext <<_ACEOF | ||
12309 | #line $LINENO "configure" | ||
12310 | #include "confdefs.h" | ||
12311 | #include <sys/types.h> | ||
12312 | #ifdef F77_DUMMY_MAIN | ||
12313 | # ifdef __cplusplus | ||
12314 | extern "C" | ||
12315 | # endif | ||
12316 | int F77_DUMMY_MAIN() { return 1; } | ||
12317 | #endif | ||
12318 | int | ||
12319 | main () | ||
12320 | { | ||
12321 | u_int64_t a; a = 1; | ||
12322 | ; | ||
12323 | return 0; | ||
12324 | } | ||
12325 | _ACEOF | ||
12326 | rm -f conftest.$ac_objext | ||
12327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12328 | (eval $ac_compile) 2>&5 | ||
12329 | ac_status=$? | ||
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12331 | (exit $ac_status); } && | ||
12332 | { ac_try='test -s conftest.$ac_objext' | ||
12333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12334 | (eval $ac_try) 2>&5 | ||
12335 | ac_status=$? | ||
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12337 | (exit $ac_status); }; }; then | ||
12338 | ac_cv_have_u_int64_t="yes" | ||
12339 | else | ||
12340 | echo "$as_me: failed program was:" >&5 | ||
12341 | cat conftest.$ac_ext >&5 | ||
12342 | ac_cv_have_u_int64_t="no" | ||
12343 | |||
12344 | fi | ||
12345 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12346 | |||
12347 | fi | ||
12348 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
12349 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
12350 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12351 | cat >>confdefs.h <<\_ACEOF | ||
12352 | #define HAVE_U_INT64_T 1 | ||
12353 | _ACEOF | ||
12354 | |||
12355 | have_u_int64_t=1 | ||
12356 | fi | ||
12357 | |||
12358 | if test -z "$have_u_int64_t" ; then | ||
12359 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12360 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
12361 | cat >conftest.$ac_ext <<_ACEOF | ||
12362 | #line $LINENO "configure" | ||
12363 | #include "confdefs.h" | ||
12364 | #include <sys/bitypes.h> | ||
12365 | #ifdef F77_DUMMY_MAIN | ||
12366 | # ifdef __cplusplus | ||
12367 | extern "C" | ||
12368 | # endif | ||
12369 | int F77_DUMMY_MAIN() { return 1; } | ||
12370 | #endif | ||
12371 | int | ||
12372 | main () | ||
12373 | { | ||
12374 | u_int64_t a; a = 1 | ||
12375 | ; | ||
12376 | return 0; | ||
12377 | } | ||
12378 | _ACEOF | ||
12379 | rm -f conftest.$ac_objext | ||
12380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12381 | (eval $ac_compile) 2>&5 | ||
12382 | ac_status=$? | ||
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12384 | (exit $ac_status); } && | ||
12385 | { ac_try='test -s conftest.$ac_objext' | ||
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12387 | (eval $ac_try) 2>&5 | ||
12388 | ac_status=$? | ||
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12390 | (exit $ac_status); }; }; then | ||
12391 | |||
12392 | cat >>confdefs.h <<\_ACEOF | ||
12393 | #define HAVE_U_INT64_T 1 | ||
12394 | _ACEOF | ||
12395 | |||
12396 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12397 | echo "${ECHO_T}yes" >&6 | ||
12398 | |||
12399 | else | ||
12400 | echo "$as_me: failed program was:" >&5 | ||
12401 | cat conftest.$ac_ext >&5 | ||
12402 | echo "$as_me:$LINENO: result: no" >&5 | ||
12403 | echo "${ECHO_T}no" >&6 | ||
12404 | |||
12405 | fi | ||
12406 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12407 | fi | ||
12408 | |||
12409 | if test -z "$have_u_intxx_t" ; then | ||
12410 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
12411 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
12412 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
12413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12414 | else | ||
12415 | |||
12416 | cat >conftest.$ac_ext <<_ACEOF | ||
12417 | #line $LINENO "configure" | ||
12418 | #include "confdefs.h" | ||
12419 | |||
12420 | #include <sys/types.h> | ||
12421 | |||
12422 | #ifdef F77_DUMMY_MAIN | ||
12423 | # ifdef __cplusplus | ||
12424 | extern "C" | ||
12425 | # endif | ||
12426 | int F77_DUMMY_MAIN() { return 1; } | ||
12427 | #endif | ||
12428 | int | ||
12429 | main () | ||
12430 | { | ||
12431 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12432 | ; | ||
12433 | return 0; | ||
12434 | } | ||
12435 | _ACEOF | ||
12436 | rm -f conftest.$ac_objext | ||
12437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12438 | (eval $ac_compile) 2>&5 | ||
12439 | ac_status=$? | ||
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12441 | (exit $ac_status); } && | ||
12442 | { ac_try='test -s conftest.$ac_objext' | ||
12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12444 | (eval $ac_try) 2>&5 | ||
12445 | ac_status=$? | ||
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12447 | (exit $ac_status); }; }; then | ||
12448 | ac_cv_have_uintxx_t="yes" | ||
12449 | else | ||
12450 | echo "$as_me: failed program was:" >&5 | ||
12451 | cat conftest.$ac_ext >&5 | ||
12452 | ac_cv_have_uintxx_t="no" | ||
12453 | |||
12454 | fi | ||
12455 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12456 | |||
12457 | fi | ||
12458 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
12459 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
12460 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12461 | cat >>confdefs.h <<\_ACEOF | ||
12462 | #define HAVE_UINTXX_T 1 | ||
12463 | _ACEOF | ||
12464 | |||
12465 | fi | ||
12466 | fi | ||
12467 | |||
12468 | if test -z "$have_uintxx_t" ; then | ||
12469 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
12470 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
12471 | cat >conftest.$ac_ext <<_ACEOF | ||
12472 | #line $LINENO "configure" | ||
12473 | #include "confdefs.h" | ||
12474 | #include <stdint.h> | ||
12475 | #ifdef F77_DUMMY_MAIN | ||
12476 | # ifdef __cplusplus | ||
12477 | extern "C" | ||
12478 | # endif | ||
12479 | int F77_DUMMY_MAIN() { return 1; } | ||
12480 | #endif | ||
12481 | int | ||
12482 | main () | ||
12483 | { | ||
12484 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12485 | ; | ||
12486 | return 0; | ||
12487 | } | ||
12488 | _ACEOF | ||
12489 | rm -f conftest.$ac_objext | ||
12490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12491 | (eval $ac_compile) 2>&5 | ||
12492 | ac_status=$? | ||
12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12494 | (exit $ac_status); } && | ||
12495 | { ac_try='test -s conftest.$ac_objext' | ||
12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12497 | (eval $ac_try) 2>&5 | ||
12498 | ac_status=$? | ||
12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12500 | (exit $ac_status); }; }; then | ||
12501 | |||
12502 | cat >>confdefs.h <<\_ACEOF | ||
12503 | #define HAVE_UINTXX_T 1 | ||
12504 | _ACEOF | ||
12505 | |||
12506 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12507 | echo "${ECHO_T}yes" >&6 | ||
12508 | |||
12509 | else | ||
12510 | echo "$as_me: failed program was:" >&5 | ||
12511 | cat conftest.$ac_ext >&5 | ||
12512 | echo "$as_me:$LINENO: result: no" >&5 | ||
12513 | echo "${ECHO_T}no" >&6 | ||
12514 | |||
12515 | fi | ||
12516 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12517 | fi | ||
12518 | |||
12519 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12520 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12521 | then | ||
12522 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12523 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
12524 | cat >conftest.$ac_ext <<_ACEOF | ||
12525 | #line $LINENO "configure" | ||
12526 | #include "confdefs.h" | ||
12527 | |||
12528 | #include <sys/bitypes.h> | ||
12529 | |||
12530 | #ifdef F77_DUMMY_MAIN | ||
12531 | # ifdef __cplusplus | ||
12532 | extern "C" | ||
12533 | # endif | ||
12534 | int F77_DUMMY_MAIN() { return 1; } | ||
12535 | #endif | ||
12536 | int | ||
12537 | main () | ||
12538 | { | ||
12539 | |||
12540 | int8_t a; int16_t b; int32_t c; | ||
12541 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12542 | a = b = c = e = f = g = 1; | ||
12543 | |||
12544 | ; | ||
12545 | return 0; | ||
12546 | } | ||
12547 | _ACEOF | ||
12548 | rm -f conftest.$ac_objext | ||
12549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12550 | (eval $ac_compile) 2>&5 | ||
12551 | ac_status=$? | ||
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12553 | (exit $ac_status); } && | ||
12554 | { ac_try='test -s conftest.$ac_objext' | ||
12555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12556 | (eval $ac_try) 2>&5 | ||
12557 | ac_status=$? | ||
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12559 | (exit $ac_status); }; }; then | ||
12560 | |||
12561 | cat >>confdefs.h <<\_ACEOF | ||
12562 | #define HAVE_U_INTXX_T 1 | ||
12563 | _ACEOF | ||
12564 | |||
12565 | cat >>confdefs.h <<\_ACEOF | ||
12566 | #define HAVE_INTXX_T 1 | ||
12567 | _ACEOF | ||
12568 | |||
12569 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12570 | echo "${ECHO_T}yes" >&6 | ||
12571 | |||
12572 | else | ||
12573 | echo "$as_me: failed program was:" >&5 | ||
12574 | cat conftest.$ac_ext >&5 | ||
12575 | echo "$as_me:$LINENO: result: no" >&5 | ||
12576 | echo "${ECHO_T}no" >&6 | ||
12577 | |||
12578 | fi | ||
12579 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12580 | fi | ||
12581 | |||
12582 | |||
12583 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
12584 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
12585 | if test "${ac_cv_have_u_char+set}" = set; then | ||
12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12587 | else | ||
12588 | |||
12589 | cat >conftest.$ac_ext <<_ACEOF | ||
12590 | #line $LINENO "configure" | ||
12591 | #include "confdefs.h" | ||
12592 | |||
12593 | #include <sys/types.h> | ||
12594 | |||
12595 | #ifdef F77_DUMMY_MAIN | ||
12596 | # ifdef __cplusplus | ||
12597 | extern "C" | ||
12598 | # endif | ||
12599 | int F77_DUMMY_MAIN() { return 1; } | ||
12600 | #endif | ||
12601 | int | ||
12602 | main () | ||
12603 | { | ||
12604 | u_char foo; foo = 125; | ||
12605 | ; | ||
12606 | return 0; | ||
12607 | } | ||
12608 | _ACEOF | ||
12609 | rm -f conftest.$ac_objext | ||
12610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12611 | (eval $ac_compile) 2>&5 | ||
12612 | ac_status=$? | ||
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12614 | (exit $ac_status); } && | ||
12615 | { ac_try='test -s conftest.$ac_objext' | ||
12616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12617 | (eval $ac_try) 2>&5 | ||
12618 | ac_status=$? | ||
12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12620 | (exit $ac_status); }; }; then | ||
12621 | ac_cv_have_u_char="yes" | ||
12622 | else | ||
12623 | echo "$as_me: failed program was:" >&5 | ||
12624 | cat conftest.$ac_ext >&5 | ||
12625 | ac_cv_have_u_char="no" | ||
12626 | |||
12627 | fi | ||
12628 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12629 | |||
12630 | fi | ||
12631 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
12632 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
12633 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12634 | cat >>confdefs.h <<\_ACEOF | ||
12635 | #define HAVE_U_CHAR 1 | ||
12636 | _ACEOF | ||
12637 | |||
12638 | fi | ||
12639 | |||
12640 | |||
12641 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
12642 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
12643 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12645 | else | ||
12646 | cat >conftest.$ac_ext <<_ACEOF | ||
12647 | #line $LINENO "configure" | ||
12648 | #include "confdefs.h" | ||
12649 | #include <sys/types.h> | ||
12650 | #include <sys/socket.h> | ||
12651 | |||
12652 | #ifdef F77_DUMMY_MAIN | ||
12653 | # ifdef __cplusplus | ||
12654 | extern "C" | ||
12655 | # endif | ||
12656 | int F77_DUMMY_MAIN() { return 1; } | ||
12657 | #endif | ||
12658 | int | ||
12659 | main () | ||
12660 | { | ||
12661 | if ((socklen_t *) 0) | ||
12662 | return 0; | ||
12663 | if (sizeof (socklen_t)) | ||
12664 | return 0; | ||
12665 | ; | ||
12666 | return 0; | ||
12667 | } | ||
12668 | _ACEOF | ||
12669 | rm -f conftest.$ac_objext | ||
12670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12671 | (eval $ac_compile) 2>&5 | ||
12672 | ac_status=$? | ||
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12674 | (exit $ac_status); } && | ||
12675 | { ac_try='test -s conftest.$ac_objext' | ||
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12677 | (eval $ac_try) 2>&5 | ||
12678 | ac_status=$? | ||
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12680 | (exit $ac_status); }; }; then | ||
12681 | ac_cv_type_socklen_t=yes | ||
12682 | else | ||
12683 | echo "$as_me: failed program was:" >&5 | ||
12684 | cat conftest.$ac_ext >&5 | ||
12685 | ac_cv_type_socklen_t=no | ||
12686 | fi | ||
12687 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12688 | fi | ||
12689 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
12690 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
12691 | if test $ac_cv_type_socklen_t = yes; then | ||
12692 | : | ||
12693 | else | ||
12694 | |||
12695 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
12696 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
12697 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
12698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12699 | else | ||
12700 | |||
12701 | # Systems have either "struct sockaddr *" or | ||
12702 | # "void *" as the second argument to getpeername | ||
12703 | curl_cv_socklen_t_equiv= | ||
12704 | for arg2 in "struct sockaddr" void; do | ||
12705 | for t in int size_t unsigned long "unsigned long"; do | ||
12706 | cat >conftest.$ac_ext <<_ACEOF | ||
12707 | #line $LINENO "configure" | ||
12708 | #include "confdefs.h" | ||
12709 | |||
12710 | #include <sys/types.h> | ||
12711 | #include <sys/socket.h> | ||
12712 | |||
12713 | int getpeername (int, $arg2 *, $t *); | ||
12714 | |||
12715 | #ifdef F77_DUMMY_MAIN | ||
12716 | # ifdef __cplusplus | ||
12717 | extern "C" | ||
12718 | # endif | ||
12719 | int F77_DUMMY_MAIN() { return 1; } | ||
12720 | #endif | ||
12721 | int | ||
12722 | main () | ||
12723 | { | ||
12724 | |||
12725 | $t len; | ||
12726 | getpeername(0,0,&len); | ||
12727 | |||
12728 | ; | ||
12729 | return 0; | ||
12730 | } | ||
12731 | _ACEOF | ||
12732 | rm -f conftest.$ac_objext | ||
12733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12734 | (eval $ac_compile) 2>&5 | ||
12735 | ac_status=$? | ||
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12737 | (exit $ac_status); } && | ||
12738 | { ac_try='test -s conftest.$ac_objext' | ||
12739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12740 | (eval $ac_try) 2>&5 | ||
12741 | ac_status=$? | ||
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12743 | (exit $ac_status); }; }; then | ||
12744 | |||
12745 | curl_cv_socklen_t_equiv="$t" | ||
12746 | break | ||
12747 | |||
12748 | else | ||
12749 | echo "$as_me: failed program was:" >&5 | ||
12750 | cat conftest.$ac_ext >&5 | ||
12751 | fi | ||
12752 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12753 | done | ||
12754 | done | ||
12755 | |||
12756 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
12757 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
12758 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
12759 | { (exit 1); exit 1; }; } | ||
12760 | fi | ||
12761 | |||
12762 | fi | ||
12763 | |||
12764 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
12765 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
12766 | |||
12767 | cat >>confdefs.h <<_ACEOF | ||
12768 | #define socklen_t $curl_cv_socklen_t_equiv | ||
12769 | _ACEOF | ||
12770 | |||
12771 | fi | ||
12772 | |||
12773 | |||
12774 | |||
12775 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
12776 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
12777 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
12778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12779 | else | ||
12780 | cat >conftest.$ac_ext <<_ACEOF | ||
12781 | #line $LINENO "configure" | ||
12782 | #include "confdefs.h" | ||
12783 | #include <signal.h> | ||
12784 | |||
12785 | #ifdef F77_DUMMY_MAIN | ||
12786 | # ifdef __cplusplus | ||
12787 | extern "C" | ||
12788 | # endif | ||
12789 | int F77_DUMMY_MAIN() { return 1; } | ||
12790 | #endif | ||
12791 | int | ||
12792 | main () | ||
12793 | { | ||
12794 | if ((sig_atomic_t *) 0) | ||
12795 | return 0; | ||
12796 | if (sizeof (sig_atomic_t)) | ||
12797 | return 0; | ||
12798 | ; | ||
12799 | return 0; | ||
12800 | } | ||
12801 | _ACEOF | ||
12802 | rm -f conftest.$ac_objext | ||
12803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12804 | (eval $ac_compile) 2>&5 | ||
12805 | ac_status=$? | ||
12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12807 | (exit $ac_status); } && | ||
12808 | { ac_try='test -s conftest.$ac_objext' | ||
12809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12810 | (eval $ac_try) 2>&5 | ||
12811 | ac_status=$? | ||
12812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12813 | (exit $ac_status); }; }; then | ||
12814 | ac_cv_type_sig_atomic_t=yes | ||
12815 | else | ||
12816 | echo "$as_me: failed program was:" >&5 | ||
12817 | cat conftest.$ac_ext >&5 | ||
12818 | ac_cv_type_sig_atomic_t=no | ||
12819 | fi | ||
12820 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12821 | fi | ||
12822 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
12823 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
12824 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
12825 | |||
12826 | cat >>confdefs.h <<_ACEOF | ||
12827 | #define HAVE_SIG_ATOMIC_T 1 | ||
12828 | _ACEOF | ||
12829 | |||
12830 | |||
12831 | fi | ||
12832 | |||
12833 | |||
12834 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
12835 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
12836 | if test "${ac_cv_have_size_t+set}" = set; then | ||
12837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12838 | else | ||
12839 | |||
12840 | cat >conftest.$ac_ext <<_ACEOF | ||
12841 | #line $LINENO "configure" | ||
12842 | #include "confdefs.h" | ||
12843 | |||
12844 | #include <sys/types.h> | ||
12845 | |||
12846 | #ifdef F77_DUMMY_MAIN | ||
12847 | # ifdef __cplusplus | ||
12848 | extern "C" | ||
12849 | # endif | ||
12850 | int F77_DUMMY_MAIN() { return 1; } | ||
12851 | #endif | ||
12852 | int | ||
12853 | main () | ||
12854 | { | ||
12855 | size_t foo; foo = 1235; | ||
12856 | ; | ||
12857 | return 0; | ||
12858 | } | ||
12859 | _ACEOF | ||
12860 | rm -f conftest.$ac_objext | ||
12861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12862 | (eval $ac_compile) 2>&5 | ||
12863 | ac_status=$? | ||
12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12865 | (exit $ac_status); } && | ||
12866 | { ac_try='test -s conftest.$ac_objext' | ||
12867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12868 | (eval $ac_try) 2>&5 | ||
12869 | ac_status=$? | ||
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12871 | (exit $ac_status); }; }; then | ||
12872 | ac_cv_have_size_t="yes" | ||
12873 | else | ||
12874 | echo "$as_me: failed program was:" >&5 | ||
12875 | cat conftest.$ac_ext >&5 | ||
12876 | ac_cv_have_size_t="no" | ||
12877 | |||
12878 | fi | ||
12879 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12880 | |||
12881 | fi | ||
12882 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
12883 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
12884 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
12885 | cat >>confdefs.h <<\_ACEOF | ||
12886 | #define HAVE_SIZE_T 1 | ||
12887 | _ACEOF | ||
12888 | |||
12889 | fi | ||
12890 | |||
12891 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
12892 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
12893 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
12894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12895 | else | ||
12896 | |||
12897 | cat >conftest.$ac_ext <<_ACEOF | ||
12898 | #line $LINENO "configure" | ||
12899 | #include "confdefs.h" | ||
12900 | |||
12901 | #include <sys/types.h> | ||
12902 | |||
12903 | #ifdef F77_DUMMY_MAIN | ||
12904 | # ifdef __cplusplus | ||
12905 | extern "C" | ||
12906 | # endif | ||
12907 | int F77_DUMMY_MAIN() { return 1; } | ||
12908 | #endif | ||
12909 | int | ||
12910 | main () | ||
12911 | { | ||
12912 | ssize_t foo; foo = 1235; | ||
12913 | ; | ||
12914 | return 0; | ||
12915 | } | ||
12916 | _ACEOF | ||
12917 | rm -f conftest.$ac_objext | ||
12918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12919 | (eval $ac_compile) 2>&5 | ||
12920 | ac_status=$? | ||
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12922 | (exit $ac_status); } && | ||
12923 | { ac_try='test -s conftest.$ac_objext' | ||
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12925 | (eval $ac_try) 2>&5 | ||
12926 | ac_status=$? | ||
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12928 | (exit $ac_status); }; }; then | ||
12929 | ac_cv_have_ssize_t="yes" | ||
12930 | else | ||
12931 | echo "$as_me: failed program was:" >&5 | ||
12932 | cat conftest.$ac_ext >&5 | ||
12933 | ac_cv_have_ssize_t="no" | ||
12934 | |||
12935 | fi | ||
12936 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12937 | |||
12938 | fi | ||
12939 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
12940 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
12941 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
12942 | cat >>confdefs.h <<\_ACEOF | ||
12943 | #define HAVE_SSIZE_T 1 | ||
12944 | _ACEOF | ||
12945 | |||
12946 | fi | ||
12947 | |||
12948 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
12949 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
12950 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12952 | else | ||
12953 | |||
12954 | cat >conftest.$ac_ext <<_ACEOF | ||
12955 | #line $LINENO "configure" | ||
12956 | #include "confdefs.h" | ||
12957 | |||
12958 | #include <time.h> | ||
12959 | |||
12960 | #ifdef F77_DUMMY_MAIN | ||
12961 | # ifdef __cplusplus | ||
12962 | extern "C" | ||
12963 | # endif | ||
12964 | int F77_DUMMY_MAIN() { return 1; } | ||
12965 | #endif | ||
12966 | int | ||
12967 | main () | ||
12968 | { | ||
12969 | clock_t foo; foo = 1235; | ||
12970 | ; | ||
12971 | return 0; | ||
12972 | } | ||
12973 | _ACEOF | ||
12974 | rm -f conftest.$ac_objext | ||
12975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12976 | (eval $ac_compile) 2>&5 | ||
12977 | ac_status=$? | ||
12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12979 | (exit $ac_status); } && | ||
12980 | { ac_try='test -s conftest.$ac_objext' | ||
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12982 | (eval $ac_try) 2>&5 | ||
12983 | ac_status=$? | ||
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12985 | (exit $ac_status); }; }; then | ||
12986 | ac_cv_have_clock_t="yes" | ||
12987 | else | ||
12988 | echo "$as_me: failed program was:" >&5 | ||
12989 | cat conftest.$ac_ext >&5 | ||
12990 | ac_cv_have_clock_t="no" | ||
12991 | |||
12992 | fi | ||
12993 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
12994 | |||
12995 | fi | ||
12996 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
12997 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
12998 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
12999 | cat >>confdefs.h <<\_ACEOF | ||
13000 | #define HAVE_CLOCK_T 1 | ||
13001 | _ACEOF | ||
13002 | |||
13003 | fi | ||
13004 | |||
13005 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
13006 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
13007 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
13008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13009 | else | ||
13010 | |||
13011 | cat >conftest.$ac_ext <<_ACEOF | ||
13012 | #line $LINENO "configure" | ||
13013 | #include "confdefs.h" | ||
13014 | |||
13015 | #include <sys/types.h> | ||
13016 | #include <sys/socket.h> | ||
13017 | |||
13018 | #ifdef F77_DUMMY_MAIN | ||
13019 | # ifdef __cplusplus | ||
13020 | extern "C" | ||
13021 | # endif | ||
13022 | int F77_DUMMY_MAIN() { return 1; } | ||
13023 | #endif | ||
13024 | int | ||
13025 | main () | ||
13026 | { | ||
13027 | sa_family_t foo; foo = 1235; | ||
13028 | ; | ||
13029 | return 0; | ||
13030 | } | ||
13031 | _ACEOF | ||
13032 | rm -f conftest.$ac_objext | ||
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13034 | (eval $ac_compile) 2>&5 | ||
13035 | ac_status=$? | ||
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13037 | (exit $ac_status); } && | ||
13038 | { ac_try='test -s conftest.$ac_objext' | ||
13039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13040 | (eval $ac_try) 2>&5 | ||
13041 | ac_status=$? | ||
13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13043 | (exit $ac_status); }; }; then | ||
13044 | ac_cv_have_sa_family_t="yes" | ||
13045 | else | ||
13046 | echo "$as_me: failed program was:" >&5 | ||
13047 | cat conftest.$ac_ext >&5 | ||
13048 | cat >conftest.$ac_ext <<_ACEOF | ||
13049 | #line $LINENO "configure" | ||
13050 | #include "confdefs.h" | ||
13051 | |||
13052 | #include <sys/types.h> | ||
13053 | #include <sys/socket.h> | ||
13054 | #include <netinet/in.h> | ||
13055 | |||
13056 | #ifdef F77_DUMMY_MAIN | ||
13057 | # ifdef __cplusplus | ||
13058 | extern "C" | ||
13059 | # endif | ||
13060 | int F77_DUMMY_MAIN() { return 1; } | ||
13061 | #endif | ||
13062 | int | ||
13063 | main () | ||
13064 | { | ||
13065 | sa_family_t foo; foo = 1235; | ||
13066 | ; | ||
13067 | return 0; | ||
13068 | } | ||
13069 | _ACEOF | ||
13070 | rm -f conftest.$ac_objext | ||
13071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13072 | (eval $ac_compile) 2>&5 | ||
13073 | ac_status=$? | ||
13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13075 | (exit $ac_status); } && | ||
13076 | { ac_try='test -s conftest.$ac_objext' | ||
13077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13078 | (eval $ac_try) 2>&5 | ||
13079 | ac_status=$? | ||
13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13081 | (exit $ac_status); }; }; then | ||
13082 | ac_cv_have_sa_family_t="yes" | ||
13083 | else | ||
13084 | echo "$as_me: failed program was:" >&5 | ||
13085 | cat conftest.$ac_ext >&5 | ||
13086 | ac_cv_have_sa_family_t="no" | ||
13087 | |||
13088 | fi | ||
13089 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13090 | |||
13091 | fi | ||
13092 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13093 | |||
13094 | fi | ||
13095 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
13096 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
13097 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
13098 | cat >>confdefs.h <<\_ACEOF | ||
13099 | #define HAVE_SA_FAMILY_T 1 | ||
13100 | _ACEOF | ||
13101 | |||
13102 | fi | ||
13103 | |||
13104 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
13105 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
13106 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
13107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13108 | else | ||
13109 | |||
13110 | cat >conftest.$ac_ext <<_ACEOF | ||
13111 | #line $LINENO "configure" | ||
13112 | #include "confdefs.h" | ||
13113 | |||
13114 | #include <sys/types.h> | ||
13115 | |||
13116 | #ifdef F77_DUMMY_MAIN | ||
13117 | # ifdef __cplusplus | ||
13118 | extern "C" | ||
13119 | # endif | ||
13120 | int F77_DUMMY_MAIN() { return 1; } | ||
13121 | #endif | ||
13122 | int | ||
13123 | main () | ||
13124 | { | ||
13125 | pid_t foo; foo = 1235; | ||
13126 | ; | ||
13127 | return 0; | ||
13128 | } | ||
13129 | _ACEOF | ||
13130 | rm -f conftest.$ac_objext | ||
13131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13132 | (eval $ac_compile) 2>&5 | ||
13133 | ac_status=$? | ||
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13135 | (exit $ac_status); } && | ||
13136 | { ac_try='test -s conftest.$ac_objext' | ||
13137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13138 | (eval $ac_try) 2>&5 | ||
13139 | ac_status=$? | ||
13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13141 | (exit $ac_status); }; }; then | ||
13142 | ac_cv_have_pid_t="yes" | ||
13143 | else | ||
13144 | echo "$as_me: failed program was:" >&5 | ||
13145 | cat conftest.$ac_ext >&5 | ||
13146 | ac_cv_have_pid_t="no" | ||
13147 | |||
13148 | fi | ||
13149 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13150 | |||
13151 | fi | ||
13152 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
13153 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
13154 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
13155 | cat >>confdefs.h <<\_ACEOF | ||
13156 | #define HAVE_PID_T 1 | ||
13157 | _ACEOF | ||
13158 | |||
13159 | fi | ||
13160 | |||
13161 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
13162 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
13163 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13165 | else | ||
13166 | |||
13167 | cat >conftest.$ac_ext <<_ACEOF | ||
13168 | #line $LINENO "configure" | ||
13169 | #include "confdefs.h" | ||
13170 | |||
13171 | #include <sys/types.h> | ||
13172 | |||
13173 | #ifdef F77_DUMMY_MAIN | ||
13174 | # ifdef __cplusplus | ||
13175 | extern "C" | ||
13176 | # endif | ||
13177 | int F77_DUMMY_MAIN() { return 1; } | ||
13178 | #endif | ||
13179 | int | ||
13180 | main () | ||
13181 | { | ||
13182 | mode_t foo; foo = 1235; | ||
13183 | ; | ||
13184 | return 0; | ||
13185 | } | ||
13186 | _ACEOF | ||
13187 | rm -f conftest.$ac_objext | ||
13188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13189 | (eval $ac_compile) 2>&5 | ||
13190 | ac_status=$? | ||
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13192 | (exit $ac_status); } && | ||
13193 | { ac_try='test -s conftest.$ac_objext' | ||
13194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13195 | (eval $ac_try) 2>&5 | ||
13196 | ac_status=$? | ||
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13198 | (exit $ac_status); }; }; then | ||
13199 | ac_cv_have_mode_t="yes" | ||
13200 | else | ||
13201 | echo "$as_me: failed program was:" >&5 | ||
13202 | cat conftest.$ac_ext >&5 | ||
13203 | ac_cv_have_mode_t="no" | ||
13204 | |||
13205 | fi | ||
13206 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13207 | |||
13208 | fi | ||
13209 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
13210 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
13211 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
13212 | cat >>confdefs.h <<\_ACEOF | ||
13213 | #define HAVE_MODE_T 1 | ||
13214 | _ACEOF | ||
13215 | |||
13216 | fi | ||
13217 | |||
13218 | |||
13219 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
13220 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
13221 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
13222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13223 | else | ||
13224 | |||
13225 | cat >conftest.$ac_ext <<_ACEOF | ||
13226 | #line $LINENO "configure" | ||
13227 | #include "confdefs.h" | ||
13228 | |||
13229 | #include <sys/types.h> | ||
13230 | #include <sys/socket.h> | ||
13231 | |||
13232 | #ifdef F77_DUMMY_MAIN | ||
13233 | # ifdef __cplusplus | ||
13234 | extern "C" | ||
13235 | # endif | ||
13236 | int F77_DUMMY_MAIN() { return 1; } | ||
13237 | #endif | ||
13238 | int | ||
13239 | main () | ||
13240 | { | ||
13241 | struct sockaddr_storage s; | ||
13242 | ; | ||
13243 | return 0; | ||
13244 | } | ||
13245 | _ACEOF | ||
13246 | rm -f conftest.$ac_objext | ||
13247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13248 | (eval $ac_compile) 2>&5 | ||
13249 | ac_status=$? | ||
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13251 | (exit $ac_status); } && | ||
13252 | { ac_try='test -s conftest.$ac_objext' | ||
13253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13254 | (eval $ac_try) 2>&5 | ||
13255 | ac_status=$? | ||
13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13257 | (exit $ac_status); }; }; then | ||
13258 | ac_cv_have_struct_sockaddr_storage="yes" | ||
13259 | else | ||
13260 | echo "$as_me: failed program was:" >&5 | ||
13261 | cat conftest.$ac_ext >&5 | ||
13262 | ac_cv_have_struct_sockaddr_storage="no" | ||
13263 | |||
13264 | fi | ||
13265 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13266 | |||
13267 | fi | ||
13268 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
13269 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
13270 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
13271 | cat >>confdefs.h <<\_ACEOF | ||
13272 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
13273 | _ACEOF | ||
13274 | |||
13275 | fi | ||
13276 | |||
13277 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
13278 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
13279 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
13280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13281 | else | ||
13282 | |||
13283 | cat >conftest.$ac_ext <<_ACEOF | ||
13284 | #line $LINENO "configure" | ||
13285 | #include "confdefs.h" | ||
13286 | |||
13287 | #include <sys/types.h> | ||
13288 | #include <netinet/in.h> | ||
13289 | |||
13290 | #ifdef F77_DUMMY_MAIN | ||
13291 | # ifdef __cplusplus | ||
13292 | extern "C" | ||
13293 | # endif | ||
13294 | int F77_DUMMY_MAIN() { return 1; } | ||
13295 | #endif | ||
13296 | int | ||
13297 | main () | ||
13298 | { | ||
13299 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | rm -f conftest.$ac_objext | ||
13305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13306 | (eval $ac_compile) 2>&5 | ||
13307 | ac_status=$? | ||
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13309 | (exit $ac_status); } && | ||
13310 | { ac_try='test -s conftest.$ac_objext' | ||
13311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13312 | (eval $ac_try) 2>&5 | ||
13313 | ac_status=$? | ||
13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13315 | (exit $ac_status); }; }; then | ||
13316 | ac_cv_have_struct_sockaddr_in6="yes" | ||
13317 | else | ||
13318 | echo "$as_me: failed program was:" >&5 | ||
13319 | cat conftest.$ac_ext >&5 | ||
13320 | ac_cv_have_struct_sockaddr_in6="no" | ||
13321 | |||
13322 | fi | ||
13323 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13324 | |||
13325 | fi | ||
13326 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
13327 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
13328 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
13329 | cat >>confdefs.h <<\_ACEOF | ||
13330 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
13331 | _ACEOF | ||
13332 | |||
13333 | fi | ||
13334 | |||
13335 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
13336 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
13337 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
13338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13339 | else | ||
13340 | |||
13341 | cat >conftest.$ac_ext <<_ACEOF | ||
13342 | #line $LINENO "configure" | ||
13343 | #include "confdefs.h" | ||
13344 | |||
13345 | #include <sys/types.h> | ||
13346 | #include <netinet/in.h> | ||
13347 | |||
13348 | #ifdef F77_DUMMY_MAIN | ||
13349 | # ifdef __cplusplus | ||
13350 | extern "C" | ||
13351 | # endif | ||
13352 | int F77_DUMMY_MAIN() { return 1; } | ||
13353 | #endif | ||
13354 | int | ||
13355 | main () | ||
13356 | { | ||
13357 | struct in6_addr s; s.s6_addr[0] = 0; | ||
13358 | ; | ||
13359 | return 0; | ||
13360 | } | ||
13361 | _ACEOF | ||
13362 | rm -f conftest.$ac_objext | ||
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13364 | (eval $ac_compile) 2>&5 | ||
13365 | ac_status=$? | ||
13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13367 | (exit $ac_status); } && | ||
13368 | { ac_try='test -s conftest.$ac_objext' | ||
13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13370 | (eval $ac_try) 2>&5 | ||
13371 | ac_status=$? | ||
13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13373 | (exit $ac_status); }; }; then | ||
13374 | ac_cv_have_struct_in6_addr="yes" | ||
13375 | else | ||
13376 | echo "$as_me: failed program was:" >&5 | ||
13377 | cat conftest.$ac_ext >&5 | ||
13378 | ac_cv_have_struct_in6_addr="no" | ||
13379 | |||
13380 | fi | ||
13381 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13382 | |||
13383 | fi | ||
13384 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13385 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
13386 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13387 | cat >>confdefs.h <<\_ACEOF | ||
13388 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
13389 | _ACEOF | ||
13390 | |||
13391 | fi | ||
13392 | |||
13393 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
13394 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
13395 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
13396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13397 | else | ||
13398 | |||
13399 | cat >conftest.$ac_ext <<_ACEOF | ||
13400 | #line $LINENO "configure" | ||
13401 | #include "confdefs.h" | ||
13402 | |||
13403 | #include <sys/types.h> | ||
13404 | #include <sys/socket.h> | ||
13405 | #include <netdb.h> | ||
13406 | |||
13407 | #ifdef F77_DUMMY_MAIN | ||
13408 | # ifdef __cplusplus | ||
13409 | extern "C" | ||
13410 | # endif | ||
13411 | int F77_DUMMY_MAIN() { return 1; } | ||
13412 | #endif | ||
13413 | int | ||
13414 | main () | ||
13415 | { | ||
13416 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13417 | ; | ||
13418 | return 0; | ||
13419 | } | ||
13420 | _ACEOF | ||
13421 | rm -f conftest.$ac_objext | ||
13422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13423 | (eval $ac_compile) 2>&5 | ||
13424 | ac_status=$? | ||
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13426 | (exit $ac_status); } && | ||
13427 | { ac_try='test -s conftest.$ac_objext' | ||
13428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13429 | (eval $ac_try) 2>&5 | ||
13430 | ac_status=$? | ||
13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13432 | (exit $ac_status); }; }; then | ||
13433 | ac_cv_have_struct_addrinfo="yes" | ||
13434 | else | ||
13435 | echo "$as_me: failed program was:" >&5 | ||
13436 | cat conftest.$ac_ext >&5 | ||
13437 | ac_cv_have_struct_addrinfo="no" | ||
13438 | |||
13439 | fi | ||
13440 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13441 | |||
13442 | fi | ||
13443 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13444 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
13445 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13446 | cat >>confdefs.h <<\_ACEOF | ||
13447 | #define HAVE_STRUCT_ADDRINFO 1 | ||
13448 | _ACEOF | ||
13449 | |||
13450 | fi | ||
13451 | |||
13452 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
13453 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
13454 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
13455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13456 | else | ||
13457 | |||
13458 | cat >conftest.$ac_ext <<_ACEOF | ||
13459 | #line $LINENO "configure" | ||
13460 | #include "confdefs.h" | ||
13461 | #include <sys/time.h> | ||
13462 | #ifdef F77_DUMMY_MAIN | ||
13463 | # ifdef __cplusplus | ||
13464 | extern "C" | ||
13465 | # endif | ||
13466 | int F77_DUMMY_MAIN() { return 1; } | ||
13467 | #endif | ||
13468 | int | ||
13469 | main () | ||
13470 | { | ||
13471 | struct timeval tv; tv.tv_sec = 1; | ||
13472 | ; | ||
13473 | return 0; | ||
13474 | } | ||
13475 | _ACEOF | ||
13476 | rm -f conftest.$ac_objext | ||
13477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13478 | (eval $ac_compile) 2>&5 | ||
13479 | ac_status=$? | ||
13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13481 | (exit $ac_status); } && | ||
13482 | { ac_try='test -s conftest.$ac_objext' | ||
13483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13484 | (eval $ac_try) 2>&5 | ||
13485 | ac_status=$? | ||
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13487 | (exit $ac_status); }; }; then | ||
13488 | ac_cv_have_struct_timeval="yes" | ||
13489 | else | ||
13490 | echo "$as_me: failed program was:" >&5 | ||
13491 | cat conftest.$ac_ext >&5 | ||
13492 | ac_cv_have_struct_timeval="no" | ||
13493 | |||
13494 | fi | ||
13495 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13496 | |||
13497 | fi | ||
13498 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
13499 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
13500 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13501 | cat >>confdefs.h <<\_ACEOF | ||
13502 | #define HAVE_STRUCT_TIMEVAL 1 | ||
13503 | _ACEOF | ||
13504 | |||
13505 | have_struct_timeval=1 | ||
13506 | fi | ||
13507 | |||
13508 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
13509 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
13510 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
13511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13512 | else | ||
13513 | cat >conftest.$ac_ext <<_ACEOF | ||
13514 | #line $LINENO "configure" | ||
13515 | #include "confdefs.h" | ||
13516 | $ac_includes_default | ||
13517 | #ifdef F77_DUMMY_MAIN | ||
13518 | # ifdef __cplusplus | ||
13519 | extern "C" | ||
13520 | # endif | ||
13521 | int F77_DUMMY_MAIN() { return 1; } | ||
13522 | #endif | ||
13523 | int | ||
13524 | main () | ||
13525 | { | ||
13526 | if ((struct timespec *) 0) | ||
13527 | return 0; | ||
13528 | if (sizeof (struct timespec)) | ||
13529 | return 0; | ||
13530 | ; | ||
13531 | return 0; | ||
13532 | } | ||
13533 | _ACEOF | ||
13534 | rm -f conftest.$ac_objext | ||
13535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13536 | (eval $ac_compile) 2>&5 | ||
13537 | ac_status=$? | ||
13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13539 | (exit $ac_status); } && | ||
13540 | { ac_try='test -s conftest.$ac_objext' | ||
13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13542 | (eval $ac_try) 2>&5 | ||
13543 | ac_status=$? | ||
13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13545 | (exit $ac_status); }; }; then | ||
13546 | ac_cv_type_struct_timespec=yes | ||
13547 | else | ||
13548 | echo "$as_me: failed program was:" >&5 | ||
13549 | cat conftest.$ac_ext >&5 | ||
13550 | ac_cv_type_struct_timespec=no | ||
13551 | fi | ||
13552 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
13553 | fi | ||
13554 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
13555 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
13556 | if test $ac_cv_type_struct_timespec = yes; then | ||
13557 | |||
13558 | cat >>confdefs.h <<_ACEOF | ||
13559 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13560 | _ACEOF | ||
13561 | |||
13562 | |||
13563 | fi | ||
13564 | |||
13565 | |||
13566 | # We need int64_t or else certian parts of the compile will fail. | ||
13567 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
13568 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
13569 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13570 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13571 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13572 | echo "" | ||
13573 | exit 1; | ||
13574 | else | ||
13575 | if test "$cross_compiling" = yes; then | ||
13576 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
13577 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
13578 | { (exit 1); exit 1; }; } | ||
13579 | else | ||
13580 | cat >conftest.$ac_ext <<_ACEOF | ||
13581 | #line $LINENO "configure" | ||
13582 | #include "confdefs.h" | ||
13583 | |||
13584 | #include <stdio.h> | ||
13585 | #include <string.h> | ||
13586 | #ifdef HAVE_SNPRINTF | ||
13587 | main() | ||
13588 | { | ||
13589 | char buf[50]; | ||
13590 | char expected_out[50]; | ||
13591 | int mazsize = 50 ; | ||
13592 | #if (SIZEOF_LONG_INT == 8) | ||
13593 | long int num = 0x7fffffffffffffff; | ||
13594 | #else | ||
13595 | long long num = 0x7fffffffffffffffll; | ||
13596 | #endif | ||
13597 | strcpy(expected_out, "9223372036854775807"); | ||
13598 | snprintf(buf, mazsize, "%lld", num); | ||
13599 | if(strcmp(buf, expected_out) != 0) | ||
13600 | exit(1); | ||
13601 | exit(0); | ||
13602 | } | ||
13603 | #else | ||
13604 | main() { exit(0); } | ||
13605 | #endif | ||
13606 | |||
13607 | _ACEOF | ||
13608 | rm -f conftest$ac_exeext | ||
13609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13610 | (eval $ac_link) 2>&5 | ||
13611 | ac_status=$? | ||
13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13615 | (eval $ac_try) 2>&5 | ||
13616 | ac_status=$? | ||
13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13618 | (exit $ac_status); }; }; then | ||
13619 | true | ||
13620 | else | ||
13621 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13622 | echo "$as_me: failed program was:" >&5 | ||
13623 | cat conftest.$ac_ext >&5 | ||
13624 | ( exit $ac_status ) | ||
13625 | cat >>confdefs.h <<\_ACEOF | ||
13626 | #define BROKEN_SNPRINTF 1 | ||
13627 | _ACEOF | ||
13628 | |||
13629 | |||
13630 | fi | ||
13631 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13632 | fi | ||
13633 | fi | ||
13634 | |||
13635 | |||
13636 | # look for field 'ut_host' in header 'utmp.h' | ||
13637 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13638 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13639 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
13640 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
13641 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13643 | else | ||
13644 | |||
13645 | cat >conftest.$ac_ext <<_ACEOF | ||
13646 | #line $LINENO "configure" | ||
13647 | #include "confdefs.h" | ||
13648 | #include <utmp.h> | ||
13649 | |||
13650 | _ACEOF | ||
13651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13652 | egrep "ut_host" >/dev/null 2>&1; then | ||
13653 | eval "$ossh_varname=yes" | ||
13654 | else | ||
13655 | eval "$ossh_varname=no" | ||
13656 | fi | ||
13657 | rm -f conftest* | ||
13658 | |||
13659 | fi | ||
13660 | |||
13661 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13662 | if test -n "`echo $ossh_varname`"; then | ||
13663 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13664 | echo "${ECHO_T}$ossh_result" >&6 | ||
13665 | if test "x$ossh_result" = "xyes"; then | ||
13666 | cat >>confdefs.h <<\_ACEOF | ||
13667 | #define HAVE_HOST_IN_UTMP 1 | ||
13668 | _ACEOF | ||
13669 | |||
13670 | fi | ||
13671 | else | ||
13672 | echo "$as_me:$LINENO: result: no" >&5 | ||
13673 | echo "${ECHO_T}no" >&6 | ||
13674 | fi | ||
13675 | |||
13676 | |||
13677 | # look for field 'ut_host' in header 'utmpx.h' | ||
13678 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13679 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13680 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
13681 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
13682 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13684 | else | ||
13685 | |||
13686 | cat >conftest.$ac_ext <<_ACEOF | ||
13687 | #line $LINENO "configure" | ||
13688 | #include "confdefs.h" | ||
13689 | #include <utmpx.h> | ||
13690 | |||
13691 | _ACEOF | ||
13692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13693 | egrep "ut_host" >/dev/null 2>&1; then | ||
13694 | eval "$ossh_varname=yes" | ||
13695 | else | ||
13696 | eval "$ossh_varname=no" | ||
13697 | fi | ||
13698 | rm -f conftest* | ||
13699 | |||
13700 | fi | ||
13701 | |||
13702 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13703 | if test -n "`echo $ossh_varname`"; then | ||
13704 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13705 | echo "${ECHO_T}$ossh_result" >&6 | ||
13706 | if test "x$ossh_result" = "xyes"; then | ||
13707 | cat >>confdefs.h <<\_ACEOF | ||
13708 | #define HAVE_HOST_IN_UTMPX 1 | ||
13709 | _ACEOF | ||
13710 | |||
13711 | fi | ||
13712 | else | ||
13713 | echo "$as_me:$LINENO: result: no" >&5 | ||
13714 | echo "${ECHO_T}no" >&6 | ||
13715 | fi | ||
13716 | |||
13717 | |||
13718 | # look for field 'syslen' in header 'utmpx.h' | ||
13719 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13720 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13721 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
13722 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
13723 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13725 | else | ||
13726 | |||
13727 | cat >conftest.$ac_ext <<_ACEOF | ||
13728 | #line $LINENO "configure" | ||
13729 | #include "confdefs.h" | ||
13730 | #include <utmpx.h> | ||
13731 | |||
13732 | _ACEOF | ||
13733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13734 | egrep "syslen" >/dev/null 2>&1; then | ||
13735 | eval "$ossh_varname=yes" | ||
13736 | else | ||
13737 | eval "$ossh_varname=no" | ||
13738 | fi | ||
13739 | rm -f conftest* | ||
13740 | |||
13741 | fi | ||
13742 | |||
13743 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13744 | if test -n "`echo $ossh_varname`"; then | ||
13745 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13746 | echo "${ECHO_T}$ossh_result" >&6 | ||
13747 | if test "x$ossh_result" = "xyes"; then | ||
13748 | cat >>confdefs.h <<\_ACEOF | ||
13749 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
13750 | _ACEOF | ||
13751 | |||
13752 | fi | ||
13753 | else | ||
13754 | echo "$as_me:$LINENO: result: no" >&5 | ||
13755 | echo "${ECHO_T}no" >&6 | ||
13756 | fi | ||
13757 | |||
13758 | |||
13759 | # look for field 'ut_pid' in header 'utmp.h' | ||
13760 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13761 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13762 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
13763 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
13764 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13766 | else | ||
13767 | |||
13768 | cat >conftest.$ac_ext <<_ACEOF | ||
13769 | #line $LINENO "configure" | ||
13770 | #include "confdefs.h" | ||
13771 | #include <utmp.h> | ||
13772 | |||
13773 | _ACEOF | ||
13774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13775 | egrep "ut_pid" >/dev/null 2>&1; then | ||
13776 | eval "$ossh_varname=yes" | ||
13777 | else | ||
13778 | eval "$ossh_varname=no" | ||
13779 | fi | ||
13780 | rm -f conftest* | ||
13781 | |||
13782 | fi | ||
13783 | |||
13784 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13785 | if test -n "`echo $ossh_varname`"; then | ||
13786 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13787 | echo "${ECHO_T}$ossh_result" >&6 | ||
13788 | if test "x$ossh_result" = "xyes"; then | ||
13789 | cat >>confdefs.h <<\_ACEOF | ||
13790 | #define HAVE_PID_IN_UTMP 1 | ||
13791 | _ACEOF | ||
13792 | |||
13793 | fi | ||
13794 | else | ||
13795 | echo "$as_me:$LINENO: result: no" >&5 | ||
13796 | echo "${ECHO_T}no" >&6 | ||
13797 | fi | ||
13798 | |||
13799 | |||
13800 | # look for field 'ut_type' in header 'utmp.h' | ||
13801 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13802 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13803 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
13804 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
13805 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13807 | else | ||
13808 | |||
13809 | cat >conftest.$ac_ext <<_ACEOF | ||
13810 | #line $LINENO "configure" | ||
13811 | #include "confdefs.h" | ||
13812 | #include <utmp.h> | ||
13813 | |||
13814 | _ACEOF | ||
13815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13816 | egrep "ut_type" >/dev/null 2>&1; then | ||
13817 | eval "$ossh_varname=yes" | ||
13818 | else | ||
13819 | eval "$ossh_varname=no" | ||
13820 | fi | ||
13821 | rm -f conftest* | ||
13822 | |||
13823 | fi | ||
13824 | |||
13825 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13826 | if test -n "`echo $ossh_varname`"; then | ||
13827 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13828 | echo "${ECHO_T}$ossh_result" >&6 | ||
13829 | if test "x$ossh_result" = "xyes"; then | ||
13830 | cat >>confdefs.h <<\_ACEOF | ||
13831 | #define HAVE_TYPE_IN_UTMP 1 | ||
13832 | _ACEOF | ||
13833 | |||
13834 | fi | ||
13835 | else | ||
13836 | echo "$as_me:$LINENO: result: no" >&5 | ||
13837 | echo "${ECHO_T}no" >&6 | ||
13838 | fi | ||
13839 | |||
13840 | |||
13841 | # look for field 'ut_type' in header 'utmpx.h' | ||
13842 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13843 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13844 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
13845 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
13846 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13848 | else | ||
13849 | |||
13850 | cat >conftest.$ac_ext <<_ACEOF | ||
13851 | #line $LINENO "configure" | ||
13852 | #include "confdefs.h" | ||
13853 | #include <utmpx.h> | ||
13854 | |||
13855 | _ACEOF | ||
13856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13857 | egrep "ut_type" >/dev/null 2>&1; then | ||
13858 | eval "$ossh_varname=yes" | ||
13859 | else | ||
13860 | eval "$ossh_varname=no" | ||
13861 | fi | ||
13862 | rm -f conftest* | ||
13863 | |||
13864 | fi | ||
13865 | |||
13866 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13867 | if test -n "`echo $ossh_varname`"; then | ||
13868 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13869 | echo "${ECHO_T}$ossh_result" >&6 | ||
13870 | if test "x$ossh_result" = "xyes"; then | ||
13871 | cat >>confdefs.h <<\_ACEOF | ||
13872 | #define HAVE_TYPE_IN_UTMPX 1 | ||
13873 | _ACEOF | ||
13874 | |||
13875 | fi | ||
13876 | else | ||
13877 | echo "$as_me:$LINENO: result: no" >&5 | ||
13878 | echo "${ECHO_T}no" >&6 | ||
13879 | fi | ||
13880 | |||
13881 | |||
13882 | # look for field 'ut_tv' in header 'utmp.h' | ||
13883 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13884 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13885 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
13886 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
13887 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13889 | else | ||
13890 | |||
13891 | cat >conftest.$ac_ext <<_ACEOF | ||
13892 | #line $LINENO "configure" | ||
13893 | #include "confdefs.h" | ||
13894 | #include <utmp.h> | ||
13895 | |||
13896 | _ACEOF | ||
13897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13898 | egrep "ut_tv" >/dev/null 2>&1; then | ||
13899 | eval "$ossh_varname=yes" | ||
13900 | else | ||
13901 | eval "$ossh_varname=no" | ||
13902 | fi | ||
13903 | rm -f conftest* | ||
13904 | |||
13905 | fi | ||
13906 | |||
13907 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13908 | if test -n "`echo $ossh_varname`"; then | ||
13909 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13910 | echo "${ECHO_T}$ossh_result" >&6 | ||
13911 | if test "x$ossh_result" = "xyes"; then | ||
13912 | cat >>confdefs.h <<\_ACEOF | ||
13913 | #define HAVE_TV_IN_UTMP 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | else | ||
13918 | echo "$as_me:$LINENO: result: no" >&5 | ||
13919 | echo "${ECHO_T}no" >&6 | ||
13920 | fi | ||
13921 | |||
13922 | |||
13923 | # look for field 'ut_id' in header 'utmp.h' | ||
13924 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13925 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13926 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
13927 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
13928 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13930 | else | ||
13931 | |||
13932 | cat >conftest.$ac_ext <<_ACEOF | ||
13933 | #line $LINENO "configure" | ||
13934 | #include "confdefs.h" | ||
13935 | #include <utmp.h> | ||
13936 | |||
13937 | _ACEOF | ||
13938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13939 | egrep "ut_id" >/dev/null 2>&1; then | ||
13940 | eval "$ossh_varname=yes" | ||
13941 | else | ||
13942 | eval "$ossh_varname=no" | ||
13943 | fi | ||
13944 | rm -f conftest* | ||
13945 | |||
13946 | fi | ||
13947 | |||
13948 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13949 | if test -n "`echo $ossh_varname`"; then | ||
13950 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13951 | echo "${ECHO_T}$ossh_result" >&6 | ||
13952 | if test "x$ossh_result" = "xyes"; then | ||
13953 | cat >>confdefs.h <<\_ACEOF | ||
13954 | #define HAVE_ID_IN_UTMP 1 | ||
13955 | _ACEOF | ||
13956 | |||
13957 | fi | ||
13958 | else | ||
13959 | echo "$as_me:$LINENO: result: no" >&5 | ||
13960 | echo "${ECHO_T}no" >&6 | ||
13961 | fi | ||
13962 | |||
13963 | |||
13964 | # look for field 'ut_id' in header 'utmpx.h' | ||
13965 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13966 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13967 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
13968 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
13969 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13971 | else | ||
13972 | |||
13973 | cat >conftest.$ac_ext <<_ACEOF | ||
13974 | #line $LINENO "configure" | ||
13975 | #include "confdefs.h" | ||
13976 | #include <utmpx.h> | ||
13977 | |||
13978 | _ACEOF | ||
13979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13980 | egrep "ut_id" >/dev/null 2>&1; then | ||
13981 | eval "$ossh_varname=yes" | ||
13982 | else | ||
13983 | eval "$ossh_varname=no" | ||
13984 | fi | ||
13985 | rm -f conftest* | ||
13986 | |||
13987 | fi | ||
13988 | |||
13989 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13990 | if test -n "`echo $ossh_varname`"; then | ||
13991 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
13992 | echo "${ECHO_T}$ossh_result" >&6 | ||
13993 | if test "x$ossh_result" = "xyes"; then | ||
13994 | cat >>confdefs.h <<\_ACEOF | ||
13995 | #define HAVE_ID_IN_UTMPX 1 | ||
13996 | _ACEOF | ||
13997 | |||
13998 | fi | ||
13999 | else | ||
14000 | echo "$as_me:$LINENO: result: no" >&5 | ||
14001 | echo "${ECHO_T}no" >&6 | ||
14002 | fi | ||
14003 | |||
14004 | |||
14005 | # look for field 'ut_addr' in header 'utmp.h' | ||
14006 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14007 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
14008 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
14009 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
14010 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14012 | else | ||
14013 | |||
14014 | cat >conftest.$ac_ext <<_ACEOF | ||
14015 | #line $LINENO "configure" | ||
14016 | #include "confdefs.h" | ||
14017 | #include <utmp.h> | ||
14018 | |||
14019 | _ACEOF | ||
14020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14021 | egrep "ut_addr" >/dev/null 2>&1; then | ||
14022 | eval "$ossh_varname=yes" | ||
14023 | else | ||
14024 | eval "$ossh_varname=no" | ||
14025 | fi | ||
14026 | rm -f conftest* | ||
14027 | |||
14028 | fi | ||
14029 | |||
14030 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14031 | if test -n "`echo $ossh_varname`"; then | ||
14032 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14033 | echo "${ECHO_T}$ossh_result" >&6 | ||
14034 | if test "x$ossh_result" = "xyes"; then | ||
14035 | cat >>confdefs.h <<\_ACEOF | ||
14036 | #define HAVE_ADDR_IN_UTMP 1 | ||
14037 | _ACEOF | ||
14038 | |||
14039 | fi | ||
14040 | else | ||
14041 | echo "$as_me:$LINENO: result: no" >&5 | ||
14042 | echo "${ECHO_T}no" >&6 | ||
14043 | fi | ||
14044 | |||
14045 | |||
14046 | # look for field 'ut_addr' in header 'utmpx.h' | ||
14047 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14048 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
14049 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
14050 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
14051 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14053 | else | ||
14054 | |||
14055 | cat >conftest.$ac_ext <<_ACEOF | ||
14056 | #line $LINENO "configure" | ||
14057 | #include "confdefs.h" | ||
14058 | #include <utmpx.h> | ||
14059 | |||
14060 | _ACEOF | ||
14061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14062 | egrep "ut_addr" >/dev/null 2>&1; then | ||
14063 | eval "$ossh_varname=yes" | ||
14064 | else | ||
14065 | eval "$ossh_varname=no" | ||
14066 | fi | ||
14067 | rm -f conftest* | ||
14068 | |||
14069 | fi | ||
14070 | |||
14071 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14072 | if test -n "`echo $ossh_varname`"; then | ||
14073 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14074 | echo "${ECHO_T}$ossh_result" >&6 | ||
14075 | if test "x$ossh_result" = "xyes"; then | ||
14076 | cat >>confdefs.h <<\_ACEOF | ||
14077 | #define HAVE_ADDR_IN_UTMPX 1 | ||
14078 | _ACEOF | ||
14079 | |||
14080 | fi | ||
14081 | else | ||
14082 | echo "$as_me:$LINENO: result: no" >&5 | ||
14083 | echo "${ECHO_T}no" >&6 | ||
14084 | fi | ||
14085 | |||
14086 | |||
14087 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
14088 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14089 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14090 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
14091 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
14092 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14094 | else | ||
14095 | |||
14096 | cat >conftest.$ac_ext <<_ACEOF | ||
14097 | #line $LINENO "configure" | ||
14098 | #include "confdefs.h" | ||
14099 | #include <utmp.h> | ||
14100 | |||
14101 | _ACEOF | ||
14102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14103 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
14104 | eval "$ossh_varname=yes" | ||
14105 | else | ||
14106 | eval "$ossh_varname=no" | ||
14107 | fi | ||
14108 | rm -f conftest* | ||
14109 | |||
14110 | fi | ||
14111 | |||
14112 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14113 | if test -n "`echo $ossh_varname`"; then | ||
14114 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14115 | echo "${ECHO_T}$ossh_result" >&6 | ||
14116 | if test "x$ossh_result" = "xyes"; then | ||
14117 | cat >>confdefs.h <<\_ACEOF | ||
14118 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
14119 | _ACEOF | ||
14120 | |||
14121 | fi | ||
14122 | else | ||
14123 | echo "$as_me:$LINENO: result: no" >&5 | ||
14124 | echo "${ECHO_T}no" >&6 | ||
14125 | fi | ||
14126 | |||
14127 | |||
14128 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
14129 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14130 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14131 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
14132 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
14133 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14135 | else | ||
14136 | |||
14137 | cat >conftest.$ac_ext <<_ACEOF | ||
14138 | #line $LINENO "configure" | ||
14139 | #include "confdefs.h" | ||
14140 | #include <utmpx.h> | ||
14141 | |||
14142 | _ACEOF | ||
14143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14144 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
14145 | eval "$ossh_varname=yes" | ||
14146 | else | ||
14147 | eval "$ossh_varname=no" | ||
14148 | fi | ||
14149 | rm -f conftest* | ||
14150 | |||
14151 | fi | ||
14152 | |||
14153 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14154 | if test -n "`echo $ossh_varname`"; then | ||
14155 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14156 | echo "${ECHO_T}$ossh_result" >&6 | ||
14157 | if test "x$ossh_result" = "xyes"; then | ||
14158 | cat >>confdefs.h <<\_ACEOF | ||
14159 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
14160 | _ACEOF | ||
14161 | |||
14162 | fi | ||
14163 | else | ||
14164 | echo "$as_me:$LINENO: result: no" >&5 | ||
14165 | echo "${ECHO_T}no" >&6 | ||
14166 | fi | ||
14167 | |||
14168 | |||
14169 | # look for field 'ut_exit' in header 'utmp.h' | ||
14170 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14171 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
14172 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
14173 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
14174 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14176 | else | ||
14177 | |||
14178 | cat >conftest.$ac_ext <<_ACEOF | ||
14179 | #line $LINENO "configure" | ||
14180 | #include "confdefs.h" | ||
14181 | #include <utmp.h> | ||
14182 | |||
14183 | _ACEOF | ||
14184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14185 | egrep "ut_exit" >/dev/null 2>&1; then | ||
14186 | eval "$ossh_varname=yes" | ||
14187 | else | ||
14188 | eval "$ossh_varname=no" | ||
14189 | fi | ||
14190 | rm -f conftest* | ||
14191 | |||
14192 | fi | ||
14193 | |||
14194 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14195 | if test -n "`echo $ossh_varname`"; then | ||
14196 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14197 | echo "${ECHO_T}$ossh_result" >&6 | ||
14198 | if test "x$ossh_result" = "xyes"; then | ||
14199 | cat >>confdefs.h <<\_ACEOF | ||
14200 | #define HAVE_EXIT_IN_UTMP 1 | ||
14201 | _ACEOF | ||
14202 | |||
14203 | fi | ||
14204 | else | ||
14205 | echo "$as_me:$LINENO: result: no" >&5 | ||
14206 | echo "${ECHO_T}no" >&6 | ||
14207 | fi | ||
14208 | |||
14209 | |||
14210 | # look for field 'ut_time' in header 'utmp.h' | ||
14211 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14212 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14213 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
14214 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
14215 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14217 | else | ||
14218 | |||
14219 | cat >conftest.$ac_ext <<_ACEOF | ||
14220 | #line $LINENO "configure" | ||
14221 | #include "confdefs.h" | ||
14222 | #include <utmp.h> | ||
14223 | |||
14224 | _ACEOF | ||
14225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14226 | egrep "ut_time" >/dev/null 2>&1; then | ||
14227 | eval "$ossh_varname=yes" | ||
14228 | else | ||
14229 | eval "$ossh_varname=no" | ||
14230 | fi | ||
14231 | rm -f conftest* | ||
14232 | |||
14233 | fi | ||
14234 | |||
14235 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14236 | if test -n "`echo $ossh_varname`"; then | ||
14237 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14238 | echo "${ECHO_T}$ossh_result" >&6 | ||
14239 | if test "x$ossh_result" = "xyes"; then | ||
14240 | cat >>confdefs.h <<\_ACEOF | ||
14241 | #define HAVE_TIME_IN_UTMP 1 | ||
14242 | _ACEOF | ||
14243 | |||
14244 | fi | ||
14245 | else | ||
14246 | echo "$as_me:$LINENO: result: no" >&5 | ||
14247 | echo "${ECHO_T}no" >&6 | ||
14248 | fi | ||
14249 | |||
14250 | |||
14251 | # look for field 'ut_time' in header 'utmpx.h' | ||
14252 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14253 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14254 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
14255 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
14256 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14258 | else | ||
14259 | |||
14260 | cat >conftest.$ac_ext <<_ACEOF | ||
14261 | #line $LINENO "configure" | ||
14262 | #include "confdefs.h" | ||
14263 | #include <utmpx.h> | ||
14264 | |||
14265 | _ACEOF | ||
14266 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14267 | egrep "ut_time" >/dev/null 2>&1; then | ||
14268 | eval "$ossh_varname=yes" | ||
14269 | else | ||
14270 | eval "$ossh_varname=no" | ||
14271 | fi | ||
14272 | rm -f conftest* | ||
14273 | |||
14274 | fi | ||
14275 | |||
14276 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14277 | if test -n "`echo $ossh_varname`"; then | ||
14278 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14279 | echo "${ECHO_T}$ossh_result" >&6 | ||
14280 | if test "x$ossh_result" = "xyes"; then | ||
14281 | cat >>confdefs.h <<\_ACEOF | ||
14282 | #define HAVE_TIME_IN_UTMPX 1 | ||
14283 | _ACEOF | ||
14284 | |||
14285 | fi | ||
14286 | else | ||
14287 | echo "$as_me:$LINENO: result: no" >&5 | ||
14288 | echo "${ECHO_T}no" >&6 | ||
14289 | fi | ||
14290 | |||
14291 | |||
14292 | # look for field 'ut_tv' in header 'utmpx.h' | ||
14293 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14294 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
14295 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
14296 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
14297 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
14298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14299 | else | ||
14300 | |||
14301 | cat >conftest.$ac_ext <<_ACEOF | ||
14302 | #line $LINENO "configure" | ||
14303 | #include "confdefs.h" | ||
14304 | #include <utmpx.h> | ||
14305 | |||
14306 | _ACEOF | ||
14307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14308 | egrep "ut_tv" >/dev/null 2>&1; then | ||
14309 | eval "$ossh_varname=yes" | ||
14310 | else | ||
14311 | eval "$ossh_varname=no" | ||
14312 | fi | ||
14313 | rm -f conftest* | ||
14314 | |||
14315 | fi | ||
14316 | |||
14317 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14318 | if test -n "`echo $ossh_varname`"; then | ||
14319 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
14320 | echo "${ECHO_T}$ossh_result" >&6 | ||
14321 | if test "x$ossh_result" = "xyes"; then | ||
14322 | cat >>confdefs.h <<\_ACEOF | ||
14323 | #define HAVE_TV_IN_UTMPX 1 | ||
14324 | _ACEOF | ||
14325 | |||
14326 | fi | ||
14327 | else | ||
14328 | echo "$as_me:$LINENO: result: no" >&5 | ||
14329 | echo "${ECHO_T}no" >&6 | ||
14330 | fi | ||
14331 | |||
14332 | |||
14333 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
14334 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
14335 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14337 | else | ||
14338 | cat >conftest.$ac_ext <<_ACEOF | ||
14339 | #line $LINENO "configure" | ||
14340 | #include "confdefs.h" | ||
14341 | $ac_includes_default | ||
14342 | #ifdef F77_DUMMY_MAIN | ||
14343 | # ifdef __cplusplus | ||
14344 | extern "C" | ||
14345 | # endif | ||
14346 | int F77_DUMMY_MAIN() { return 1; } | ||
14347 | #endif | ||
14348 | int | ||
14349 | main () | ||
14350 | { | ||
14351 | static struct stat ac_aggr; | ||
14352 | if (ac_aggr.st_blksize) | ||
14353 | return 0; | ||
14354 | ; | ||
14355 | return 0; | ||
14356 | } | ||
14357 | _ACEOF | ||
14358 | rm -f conftest.$ac_objext | ||
14359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14360 | (eval $ac_compile) 2>&5 | ||
14361 | ac_status=$? | ||
14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14363 | (exit $ac_status); } && | ||
14364 | { ac_try='test -s conftest.$ac_objext' | ||
14365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14366 | (eval $ac_try) 2>&5 | ||
14367 | ac_status=$? | ||
14368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14369 | (exit $ac_status); }; }; then | ||
14370 | ac_cv_member_struct_stat_st_blksize=yes | ||
14371 | else | ||
14372 | echo "$as_me: failed program was:" >&5 | ||
14373 | cat conftest.$ac_ext >&5 | ||
14374 | ac_cv_member_struct_stat_st_blksize=no | ||
14375 | fi | ||
14376 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14377 | fi | ||
14378 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
14379 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
14380 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
14381 | |||
14382 | cat >>confdefs.h <<_ACEOF | ||
14383 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
14384 | _ACEOF | ||
14385 | |||
14386 | |||
14387 | fi | ||
14388 | |||
14389 | |||
14390 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
14391 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14392 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14394 | else | ||
14395 | |||
14396 | cat >conftest.$ac_ext <<_ACEOF | ||
14397 | #line $LINENO "configure" | ||
14398 | #include "confdefs.h" | ||
14399 | |||
14400 | #include <sys/types.h> | ||
14401 | #include <sys/socket.h> | ||
14402 | |||
14403 | #ifdef F77_DUMMY_MAIN | ||
14404 | # ifdef __cplusplus | ||
14405 | extern "C" | ||
14406 | # endif | ||
14407 | int F77_DUMMY_MAIN() { return 1; } | ||
14408 | #endif | ||
14409 | int | ||
14410 | main () | ||
14411 | { | ||
14412 | struct sockaddr_storage s; s.ss_family = 1; | ||
14413 | ; | ||
14414 | return 0; | ||
14415 | } | ||
14416 | _ACEOF | ||
14417 | rm -f conftest.$ac_objext | ||
14418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14419 | (eval $ac_compile) 2>&5 | ||
14420 | ac_status=$? | ||
14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14422 | (exit $ac_status); } && | ||
14423 | { ac_try='test -s conftest.$ac_objext' | ||
14424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14425 | (eval $ac_try) 2>&5 | ||
14426 | ac_status=$? | ||
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14428 | (exit $ac_status); }; }; then | ||
14429 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
14430 | else | ||
14431 | echo "$as_me: failed program was:" >&5 | ||
14432 | cat conftest.$ac_ext >&5 | ||
14433 | ac_cv_have_ss_family_in_struct_ss="no" | ||
14434 | fi | ||
14435 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14436 | |||
14437 | fi | ||
14438 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
14439 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
14440 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
14441 | cat >>confdefs.h <<\_ACEOF | ||
14442 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
14443 | _ACEOF | ||
14444 | |||
14445 | fi | ||
14446 | |||
14447 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
14448 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
14449 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14451 | else | ||
14452 | |||
14453 | cat >conftest.$ac_ext <<_ACEOF | ||
14454 | #line $LINENO "configure" | ||
14455 | #include "confdefs.h" | ||
14456 | |||
14457 | #include <sys/types.h> | ||
14458 | #include <sys/socket.h> | ||
14459 | |||
14460 | #ifdef F77_DUMMY_MAIN | ||
14461 | # ifdef __cplusplus | ||
14462 | extern "C" | ||
14463 | # endif | ||
14464 | int F77_DUMMY_MAIN() { return 1; } | ||
14465 | #endif | ||
14466 | int | ||
14467 | main () | ||
14468 | { | ||
14469 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14470 | ; | ||
14471 | return 0; | ||
14472 | } | ||
14473 | _ACEOF | ||
14474 | rm -f conftest.$ac_objext | ||
14475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14476 | (eval $ac_compile) 2>&5 | ||
14477 | ac_status=$? | ||
14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14479 | (exit $ac_status); } && | ||
14480 | { ac_try='test -s conftest.$ac_objext' | ||
14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14482 | (eval $ac_try) 2>&5 | ||
14483 | ac_status=$? | ||
14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14485 | (exit $ac_status); }; }; then | ||
14486 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14487 | else | ||
14488 | echo "$as_me: failed program was:" >&5 | ||
14489 | cat conftest.$ac_ext >&5 | ||
14490 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14491 | |||
14492 | fi | ||
14493 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14494 | |||
14495 | fi | ||
14496 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14497 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
14498 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14499 | cat >>confdefs.h <<\_ACEOF | ||
14500 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
14501 | _ACEOF | ||
14502 | |||
14503 | fi | ||
14504 | |||
14505 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
14506 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
14507 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14509 | else | ||
14510 | |||
14511 | cat >conftest.$ac_ext <<_ACEOF | ||
14512 | #line $LINENO "configure" | ||
14513 | #include "confdefs.h" | ||
14514 | |||
14515 | #include <pwd.h> | ||
14516 | |||
14517 | #ifdef F77_DUMMY_MAIN | ||
14518 | # ifdef __cplusplus | ||
14519 | extern "C" | ||
14520 | # endif | ||
14521 | int F77_DUMMY_MAIN() { return 1; } | ||
14522 | #endif | ||
14523 | int | ||
14524 | main () | ||
14525 | { | ||
14526 | struct passwd p; p.pw_class = 0; | ||
14527 | ; | ||
14528 | return 0; | ||
14529 | } | ||
14530 | _ACEOF | ||
14531 | rm -f conftest.$ac_objext | ||
14532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14533 | (eval $ac_compile) 2>&5 | ||
14534 | ac_status=$? | ||
14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14536 | (exit $ac_status); } && | ||
14537 | { ac_try='test -s conftest.$ac_objext' | ||
14538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14539 | (eval $ac_try) 2>&5 | ||
14540 | ac_status=$? | ||
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14542 | (exit $ac_status); }; }; then | ||
14543 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14544 | else | ||
14545 | echo "$as_me: failed program was:" >&5 | ||
14546 | cat conftest.$ac_ext >&5 | ||
14547 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14548 | |||
14549 | fi | ||
14550 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14551 | |||
14552 | fi | ||
14553 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14554 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
14555 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14556 | cat >>confdefs.h <<\_ACEOF | ||
14557 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
14558 | _ACEOF | ||
14559 | |||
14560 | fi | ||
14561 | |||
14562 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
14563 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
14564 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
14565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14566 | else | ||
14567 | |||
14568 | cat >conftest.$ac_ext <<_ACEOF | ||
14569 | #line $LINENO "configure" | ||
14570 | #include "confdefs.h" | ||
14571 | |||
14572 | #include <pwd.h> | ||
14573 | |||
14574 | #ifdef F77_DUMMY_MAIN | ||
14575 | # ifdef __cplusplus | ||
14576 | extern "C" | ||
14577 | # endif | ||
14578 | int F77_DUMMY_MAIN() { return 1; } | ||
14579 | #endif | ||
14580 | int | ||
14581 | main () | ||
14582 | { | ||
14583 | struct passwd p; p.pw_expire = 0; | ||
14584 | ; | ||
14585 | return 0; | ||
14586 | } | ||
14587 | _ACEOF | ||
14588 | rm -f conftest.$ac_objext | ||
14589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14590 | (eval $ac_compile) 2>&5 | ||
14591 | ac_status=$? | ||
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14593 | (exit $ac_status); } && | ||
14594 | { ac_try='test -s conftest.$ac_objext' | ||
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14596 | (eval $ac_try) 2>&5 | ||
14597 | ac_status=$? | ||
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14599 | (exit $ac_status); }; }; then | ||
14600 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14601 | else | ||
14602 | echo "$as_me: failed program was:" >&5 | ||
14603 | cat conftest.$ac_ext >&5 | ||
14604 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14605 | |||
14606 | fi | ||
14607 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14608 | |||
14609 | fi | ||
14610 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14611 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
14612 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14613 | cat >>confdefs.h <<\_ACEOF | ||
14614 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
14615 | _ACEOF | ||
14616 | |||
14617 | fi | ||
14618 | |||
14619 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
14620 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
14621 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
14622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14623 | else | ||
14624 | |||
14625 | cat >conftest.$ac_ext <<_ACEOF | ||
14626 | #line $LINENO "configure" | ||
14627 | #include "confdefs.h" | ||
14628 | |||
14629 | #include <pwd.h> | ||
14630 | |||
14631 | #ifdef F77_DUMMY_MAIN | ||
14632 | # ifdef __cplusplus | ||
14633 | extern "C" | ||
14634 | # endif | ||
14635 | int F77_DUMMY_MAIN() { return 1; } | ||
14636 | #endif | ||
14637 | int | ||
14638 | main () | ||
14639 | { | ||
14640 | struct passwd p; p.pw_change = 0; | ||
14641 | ; | ||
14642 | return 0; | ||
14643 | } | ||
14644 | _ACEOF | ||
14645 | rm -f conftest.$ac_objext | ||
14646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14647 | (eval $ac_compile) 2>&5 | ||
14648 | ac_status=$? | ||
14649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14650 | (exit $ac_status); } && | ||
14651 | { ac_try='test -s conftest.$ac_objext' | ||
14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14653 | (eval $ac_try) 2>&5 | ||
14654 | ac_status=$? | ||
14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14656 | (exit $ac_status); }; }; then | ||
14657 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14658 | else | ||
14659 | echo "$as_me: failed program was:" >&5 | ||
14660 | cat conftest.$ac_ext >&5 | ||
14661 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14662 | |||
14663 | fi | ||
14664 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
14665 | |||
14666 | fi | ||
14667 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14668 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
14669 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14670 | cat >>confdefs.h <<\_ACEOF | ||
14671 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
14672 | _ACEOF | ||
14673 | |||
14674 | fi | ||
14675 | |||
14676 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
14677 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
14678 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
14679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14680 | else | ||
14681 | |||
14682 | if test "$cross_compiling" = yes; then | ||
14683 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14684 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14685 | { (exit 1); exit 1; }; } | ||
14686 | else | ||
14687 | cat >conftest.$ac_ext <<_ACEOF | ||
14688 | #line $LINENO "configure" | ||
14689 | #include "confdefs.h" | ||
14690 | |||
14691 | #include <sys/types.h> | ||
14692 | #include <sys/socket.h> | ||
14693 | #include <sys/uio.h> | ||
14694 | int main() { | ||
14695 | #ifdef msg_accrights | ||
14696 | exit(1); | ||
14697 | #endif | ||
14698 | struct msghdr m; | ||
14699 | m.msg_accrights = 0; | ||
14700 | exit(0); | ||
14701 | } | ||
14702 | |||
14703 | _ACEOF | ||
14704 | rm -f conftest$ac_exeext | ||
14705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14706 | (eval $ac_link) 2>&5 | ||
14707 | ac_status=$? | ||
14708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14709 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14711 | (eval $ac_try) 2>&5 | ||
14712 | ac_status=$? | ||
14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14714 | (exit $ac_status); }; }; then | ||
14715 | ac_cv_have_accrights_in_msghdr="yes" | ||
14716 | else | ||
14717 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14718 | echo "$as_me: failed program was:" >&5 | ||
14719 | cat conftest.$ac_ext >&5 | ||
14720 | ( exit $ac_status ) | ||
14721 | ac_cv_have_accrights_in_msghdr="no" | ||
14722 | |||
14723 | fi | ||
14724 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14725 | fi | ||
14726 | |||
14727 | fi | ||
14728 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14729 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
14730 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14731 | cat >>confdefs.h <<\_ACEOF | ||
14732 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
14733 | _ACEOF | ||
14734 | |||
14735 | fi | ||
14736 | |||
14737 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
14738 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
14739 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
14740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14741 | else | ||
14742 | |||
14743 | if test "$cross_compiling" = yes; then | ||
14744 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | ||
14745 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | ||
14746 | { (exit 1); exit 1; }; } | ||
14747 | else | ||
14748 | cat >conftest.$ac_ext <<_ACEOF | ||
14749 | #line $LINENO "configure" | ||
14750 | #include "confdefs.h" | ||
14751 | |||
14752 | #include <sys/types.h> | ||
14753 | #include <sys/socket.h> | ||
14754 | #include <sys/uio.h> | ||
14755 | int main() { | ||
14756 | #ifdef msg_control | ||
14757 | exit(1); | ||
14758 | #endif | ||
14759 | struct msghdr m; | ||
14760 | m.msg_control = 0; | ||
14761 | exit(0); | ||
14762 | } | ||
14763 | |||
14764 | _ACEOF | ||
14765 | rm -f conftest$ac_exeext | ||
14766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14767 | (eval $ac_link) 2>&5 | ||
14768 | ac_status=$? | ||
14769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14770 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14772 | (eval $ac_try) 2>&5 | ||
14773 | ac_status=$? | ||
14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14775 | (exit $ac_status); }; }; then | ||
14776 | ac_cv_have_control_in_msghdr="yes" | ||
14777 | else | ||
14778 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14779 | echo "$as_me: failed program was:" >&5 | ||
14780 | cat conftest.$ac_ext >&5 | ||
14781 | ( exit $ac_status ) | ||
14782 | ac_cv_have_control_in_msghdr="no" | ||
14783 | |||
14784 | fi | ||
14785 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14786 | fi | ||
14787 | |||
14788 | fi | ||
14789 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14790 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
14791 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14792 | cat >>confdefs.h <<\_ACEOF | ||
14793 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
14794 | _ACEOF | ||
14795 | |||
14796 | fi | ||
14797 | |||
14798 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
14799 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
14800 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
14801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14802 | else | ||
14803 | |||
14804 | cat >conftest.$ac_ext <<_ACEOF | ||
14805 | #line $LINENO "configure" | ||
14806 | #include "confdefs.h" | ||
14807 | |||
14808 | #ifdef F77_DUMMY_MAIN | ||
14809 | # ifdef __cplusplus | ||
14810 | extern "C" | ||
14811 | # endif | ||
14812 | int F77_DUMMY_MAIN() { return 1; } | ||
14813 | #endif | ||
14814 | int | ||
14815 | main () | ||
14816 | { | ||
14817 | extern char *__progname; printf("%s", __progname); | ||
14818 | ; | ||
14819 | return 0; | ||
14820 | } | ||
14821 | _ACEOF | ||
14822 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14824 | (eval $ac_link) 2>&5 | ||
14825 | ac_status=$? | ||
14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14827 | (exit $ac_status); } && | ||
14828 | { ac_try='test -s conftest$ac_exeext' | ||
14829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14830 | (eval $ac_try) 2>&5 | ||
14831 | ac_status=$? | ||
14832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14833 | (exit $ac_status); }; }; then | ||
14834 | ac_cv_libc_defines___progname="yes" | ||
14835 | else | ||
14836 | echo "$as_me: failed program was:" >&5 | ||
14837 | cat conftest.$ac_ext >&5 | ||
14838 | ac_cv_libc_defines___progname="no" | ||
14839 | |||
14840 | fi | ||
14841 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14842 | |||
14843 | fi | ||
14844 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
14845 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
14846 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14847 | cat >>confdefs.h <<\_ACEOF | ||
14848 | #define HAVE___PROGNAME 1 | ||
14849 | _ACEOF | ||
14850 | |||
14851 | fi | ||
14852 | |||
14853 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
14854 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
14855 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
14856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14857 | else | ||
14858 | |||
14859 | cat >conftest.$ac_ext <<_ACEOF | ||
14860 | #line $LINENO "configure" | ||
14861 | #include "confdefs.h" | ||
14862 | |||
14863 | #include <stdio.h> | ||
14864 | |||
14865 | #ifdef F77_DUMMY_MAIN | ||
14866 | # ifdef __cplusplus | ||
14867 | extern "C" | ||
14868 | # endif | ||
14869 | int F77_DUMMY_MAIN() { return 1; } | ||
14870 | #endif | ||
14871 | int | ||
14872 | main () | ||
14873 | { | ||
14874 | printf("%s", __FUNCTION__); | ||
14875 | ; | ||
14876 | return 0; | ||
14877 | } | ||
14878 | _ACEOF | ||
14879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14881 | (eval $ac_link) 2>&5 | ||
14882 | ac_status=$? | ||
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14884 | (exit $ac_status); } && | ||
14885 | { ac_try='test -s conftest$ac_exeext' | ||
14886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14887 | (eval $ac_try) 2>&5 | ||
14888 | ac_status=$? | ||
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14890 | (exit $ac_status); }; }; then | ||
14891 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14892 | else | ||
14893 | echo "$as_me: failed program was:" >&5 | ||
14894 | cat conftest.$ac_ext >&5 | ||
14895 | ac_cv_cc_implements___FUNCTION__="no" | ||
14896 | |||
14897 | fi | ||
14898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14899 | |||
14900 | fi | ||
14901 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14902 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
14903 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14904 | cat >>confdefs.h <<\_ACEOF | ||
14905 | #define HAVE___FUNCTION__ 1 | ||
14906 | _ACEOF | ||
14907 | |||
14908 | fi | ||
14909 | |||
14910 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
14911 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
14912 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
14913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14914 | else | ||
14915 | |||
14916 | cat >conftest.$ac_ext <<_ACEOF | ||
14917 | #line $LINENO "configure" | ||
14918 | #include "confdefs.h" | ||
14919 | |||
14920 | #include <stdio.h> | ||
14921 | |||
14922 | #ifdef F77_DUMMY_MAIN | ||
14923 | # ifdef __cplusplus | ||
14924 | extern "C" | ||
14925 | # endif | ||
14926 | int F77_DUMMY_MAIN() { return 1; } | ||
14927 | #endif | ||
14928 | int | ||
14929 | main () | ||
14930 | { | ||
14931 | printf("%s", __func__); | ||
14932 | ; | ||
14933 | return 0; | ||
14934 | } | ||
14935 | _ACEOF | ||
14936 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14938 | (eval $ac_link) 2>&5 | ||
14939 | ac_status=$? | ||
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14941 | (exit $ac_status); } && | ||
14942 | { ac_try='test -s conftest$ac_exeext' | ||
14943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14944 | (eval $ac_try) 2>&5 | ||
14945 | ac_status=$? | ||
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14947 | (exit $ac_status); }; }; then | ||
14948 | ac_cv_cc_implements___func__="yes" | ||
14949 | else | ||
14950 | echo "$as_me: failed program was:" >&5 | ||
14951 | cat conftest.$ac_ext >&5 | ||
14952 | ac_cv_cc_implements___func__="no" | ||
14953 | |||
14954 | fi | ||
14955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
14956 | |||
14957 | fi | ||
14958 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
14959 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
14960 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14961 | cat >>confdefs.h <<\_ACEOF | ||
14962 | #define HAVE___func__ 1 | ||
14963 | _ACEOF | ||
14964 | |||
14965 | fi | ||
14966 | |||
14967 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
14968 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
14969 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
14970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14971 | else | ||
14972 | |||
14973 | cat >conftest.$ac_ext <<_ACEOF | ||
14974 | #line $LINENO "configure" | ||
14975 | #include "confdefs.h" | ||
14976 | |||
14977 | #include <getopt.h> | ||
14978 | |||
14979 | #ifdef F77_DUMMY_MAIN | ||
14980 | # ifdef __cplusplus | ||
14981 | extern "C" | ||
14982 | # endif | ||
14983 | int F77_DUMMY_MAIN() { return 1; } | ||
14984 | #endif | ||
14985 | int | ||
14986 | main () | ||
14987 | { | ||
14988 | extern int optreset; optreset = 0; | ||
14989 | ; | ||
14990 | return 0; | ||
14991 | } | ||
14992 | _ACEOF | ||
14993 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14995 | (eval $ac_link) 2>&5 | ||
14996 | ac_status=$? | ||
14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14998 | (exit $ac_status); } && | ||
14999 | { ac_try='test -s conftest$ac_exeext' | ||
15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15001 | (eval $ac_try) 2>&5 | ||
15002 | ac_status=$? | ||
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15004 | (exit $ac_status); }; }; then | ||
15005 | ac_cv_have_getopt_optreset="yes" | ||
15006 | else | ||
15007 | echo "$as_me: failed program was:" >&5 | ||
15008 | cat conftest.$ac_ext >&5 | ||
15009 | ac_cv_have_getopt_optreset="no" | ||
15010 | |||
15011 | fi | ||
15012 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15013 | |||
15014 | fi | ||
15015 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
15016 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
15017 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
15018 | cat >>confdefs.h <<\_ACEOF | ||
15019 | #define HAVE_GETOPT_OPTRESET 1 | ||
15020 | _ACEOF | ||
15021 | |||
15022 | fi | ||
15023 | |||
15024 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
15025 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
15026 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15028 | else | ||
15029 | |||
15030 | cat >conftest.$ac_ext <<_ACEOF | ||
15031 | #line $LINENO "configure" | ||
15032 | #include "confdefs.h" | ||
15033 | |||
15034 | #ifdef F77_DUMMY_MAIN | ||
15035 | # ifdef __cplusplus | ||
15036 | extern "C" | ||
15037 | # endif | ||
15038 | int F77_DUMMY_MAIN() { return 1; } | ||
15039 | #endif | ||
15040 | int | ||
15041 | main () | ||
15042 | { | ||
15043 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
15044 | ; | ||
15045 | return 0; | ||
15046 | } | ||
15047 | _ACEOF | ||
15048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15050 | (eval $ac_link) 2>&5 | ||
15051 | ac_status=$? | ||
15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15053 | (exit $ac_status); } && | ||
15054 | { ac_try='test -s conftest$ac_exeext' | ||
15055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15056 | (eval $ac_try) 2>&5 | ||
15057 | ac_status=$? | ||
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15059 | (exit $ac_status); }; }; then | ||
15060 | ac_cv_libc_defines_sys_errlist="yes" | ||
15061 | else | ||
15062 | echo "$as_me: failed program was:" >&5 | ||
15063 | cat conftest.$ac_ext >&5 | ||
15064 | ac_cv_libc_defines_sys_errlist="no" | ||
15065 | |||
15066 | fi | ||
15067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15068 | |||
15069 | fi | ||
15070 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
15071 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
15072 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
15073 | cat >>confdefs.h <<\_ACEOF | ||
15074 | #define HAVE_SYS_ERRLIST 1 | ||
15075 | _ACEOF | ||
15076 | |||
15077 | fi | ||
15078 | |||
15079 | |||
15080 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
15081 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
15082 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
15083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15084 | else | ||
15085 | |||
15086 | cat >conftest.$ac_ext <<_ACEOF | ||
15087 | #line $LINENO "configure" | ||
15088 | #include "confdefs.h" | ||
15089 | |||
15090 | #ifdef F77_DUMMY_MAIN | ||
15091 | # ifdef __cplusplus | ||
15092 | extern "C" | ||
15093 | # endif | ||
15094 | int F77_DUMMY_MAIN() { return 1; } | ||
15095 | #endif | ||
15096 | int | ||
15097 | main () | ||
15098 | { | ||
15099 | extern int sys_nerr; printf("%i", sys_nerr); | ||
15100 | ; | ||
15101 | return 0; | ||
15102 | } | ||
15103 | _ACEOF | ||
15104 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15106 | (eval $ac_link) 2>&5 | ||
15107 | ac_status=$? | ||
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15109 | (exit $ac_status); } && | ||
15110 | { ac_try='test -s conftest$ac_exeext' | ||
15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15112 | (eval $ac_try) 2>&5 | ||
15113 | ac_status=$? | ||
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15115 | (exit $ac_status); }; }; then | ||
15116 | ac_cv_libc_defines_sys_nerr="yes" | ||
15117 | else | ||
15118 | echo "$as_me: failed program was:" >&5 | ||
15119 | cat conftest.$ac_ext >&5 | ||
15120 | ac_cv_libc_defines_sys_nerr="no" | ||
15121 | |||
15122 | fi | ||
15123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15124 | |||
15125 | fi | ||
15126 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
15127 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
15128 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
15129 | cat >>confdefs.h <<\_ACEOF | ||
15130 | #define HAVE_SYS_NERR 1 | ||
15131 | _ACEOF | ||
15132 | |||
15133 | fi | ||
15134 | |||
15135 | SCARD_MSG="no" | ||
15136 | |||
15137 | # Check whether user wants sectok support | ||
15138 | |||
15139 | # Check whether --with-sectok or --without-sectok was given. | ||
15140 | if test "${with_sectok+set}" = set; then | ||
15141 | withval="$with_sectok" | ||
15142 | |||
15143 | if test "x$withval" != "xno" ; then | ||
15144 | if test "x$withval" != "xyes" ; then | ||
15145 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
15146 | LDFLAGS="$LDFLAGS -L${withval}" | ||
15147 | if test ! -z "$need_dash_r" ; then | ||
15148 | LDFLAGS="$LDFLAGS -R${withval}" | ||
15149 | fi | ||
15150 | if test ! -z "$blibpath" ; then | ||
15151 | blibpath="$blibpath:${withval}" | ||
15152 | fi | ||
15153 | fi | ||
15154 | |||
15155 | for ac_header in sectok.h | ||
15156 | do | ||
15157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15163 | fi | ||
15164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15166 | else | ||
15167 | # Is the header compilable? | ||
15168 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
15169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
15170 | cat >conftest.$ac_ext <<_ACEOF | ||
15171 | #line $LINENO "configure" | ||
15172 | #include "confdefs.h" | ||
15173 | $ac_includes_default | ||
15174 | #include <$ac_header> | ||
15175 | _ACEOF | ||
15176 | rm -f conftest.$ac_objext | ||
15177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15178 | (eval $ac_compile) 2>&5 | ||
15179 | ac_status=$? | ||
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15181 | (exit $ac_status); } && | ||
15182 | { ac_try='test -s conftest.$ac_objext' | ||
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15184 | (eval $ac_try) 2>&5 | ||
15185 | ac_status=$? | ||
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15187 | (exit $ac_status); }; }; then | ||
15188 | ac_header_compiler=yes | ||
15189 | else | ||
15190 | echo "$as_me: failed program was:" >&5 | ||
15191 | cat conftest.$ac_ext >&5 | ||
15192 | ac_header_compiler=no | ||
15193 | fi | ||
15194 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
15196 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
15197 | |||
15198 | # Is the header present? | ||
15199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
15200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
15201 | cat >conftest.$ac_ext <<_ACEOF | ||
15202 | #line $LINENO "configure" | ||
15203 | #include "confdefs.h" | ||
15204 | #include <$ac_header> | ||
15205 | _ACEOF | ||
15206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15208 | ac_status=$? | ||
15209 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15210 | rm -f conftest.er1 | ||
15211 | cat conftest.err >&5 | ||
15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15213 | (exit $ac_status); } >/dev/null; then | ||
15214 | if test -s conftest.err; then | ||
15215 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15216 | else | ||
15217 | ac_cpp_err= | ||
15218 | fi | ||
15219 | else | ||
15220 | ac_cpp_err=yes | ||
15221 | fi | ||
15222 | if test -z "$ac_cpp_err"; then | ||
15223 | ac_header_preproc=yes | ||
15224 | else | ||
15225 | echo "$as_me: failed program was:" >&5 | ||
15226 | cat conftest.$ac_ext >&5 | ||
15227 | ac_header_preproc=no | ||
15228 | fi | ||
15229 | rm -f conftest.err conftest.$ac_ext | ||
15230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
15231 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
15232 | |||
15233 | # So? What about this header? | ||
15234 | case $ac_header_compiler:$ac_header_preproc in | ||
15235 | yes:no ) | ||
15236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
15237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
15238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15239 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15240 | no:yes ) | ||
15241 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
15242 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
15243 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
15244 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
15245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15246 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15247 | esac | ||
15248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15252 | else | ||
15253 | eval "$as_ac_Header=$ac_header_preproc" | ||
15254 | fi | ||
15255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15257 | |||
15258 | fi | ||
15259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15260 | cat >>confdefs.h <<_ACEOF | ||
15261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15262 | _ACEOF | ||
15263 | |||
15264 | fi | ||
15265 | |||
15266 | done | ||
15267 | |||
15268 | if test "$ac_cv_header_sectok_h" != yes; then | ||
15269 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
15270 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
15271 | { (exit 1); exit 1; }; } | ||
15272 | fi | ||
15273 | |||
15274 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
15275 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
15276 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
15277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15278 | else | ||
15279 | ac_check_lib_save_LIBS=$LIBS | ||
15280 | LIBS="-lsectok $LIBS" | ||
15281 | cat >conftest.$ac_ext <<_ACEOF | ||
15282 | #line $LINENO "configure" | ||
15283 | #include "confdefs.h" | ||
15284 | |||
15285 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15286 | #ifdef __cplusplus | ||
15287 | extern "C" | ||
15288 | #endif | ||
15289 | /* We use char because int might match the return type of a gcc2 | ||
15290 | builtin and then its argument prototype would still apply. */ | ||
15291 | char sectok_open (); | ||
15292 | #ifdef F77_DUMMY_MAIN | ||
15293 | # ifdef __cplusplus | ||
15294 | extern "C" | ||
15295 | # endif | ||
15296 | int F77_DUMMY_MAIN() { return 1; } | ||
15297 | #endif | ||
15298 | int | ||
15299 | main () | ||
15300 | { | ||
15301 | sectok_open (); | ||
15302 | ; | ||
15303 | return 0; | ||
15304 | } | ||
15305 | _ACEOF | ||
15306 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15308 | (eval $ac_link) 2>&5 | ||
15309 | ac_status=$? | ||
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15311 | (exit $ac_status); } && | ||
15312 | { ac_try='test -s conftest$ac_exeext' | ||
15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15314 | (eval $ac_try) 2>&5 | ||
15315 | ac_status=$? | ||
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15317 | (exit $ac_status); }; }; then | ||
15318 | ac_cv_lib_sectok_sectok_open=yes | ||
15319 | else | ||
15320 | echo "$as_me: failed program was:" >&5 | ||
15321 | cat conftest.$ac_ext >&5 | ||
15322 | ac_cv_lib_sectok_sectok_open=no | ||
15323 | fi | ||
15324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15325 | LIBS=$ac_check_lib_save_LIBS | ||
15326 | fi | ||
15327 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
15328 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
15329 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
15330 | cat >>confdefs.h <<_ACEOF | ||
15331 | #define HAVE_LIBSECTOK 1 | ||
15332 | _ACEOF | ||
15333 | |||
15334 | LIBS="-lsectok $LIBS" | ||
15335 | |||
15336 | fi | ||
15337 | |||
15338 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
15339 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
15340 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
15341 | { (exit 1); exit 1; }; } | ||
15342 | fi | ||
15343 | cat >>confdefs.h <<\_ACEOF | ||
15344 | #define SMARTCARD 1 | ||
15345 | _ACEOF | ||
15346 | |||
15347 | cat >>confdefs.h <<\_ACEOF | ||
15348 | #define USE_SECTOK 1 | ||
15349 | _ACEOF | ||
15350 | |||
15351 | SCARD_MSG="yes, using sectok" | ||
15352 | fi | ||
15353 | |||
15354 | |||
15355 | fi; | ||
15356 | |||
15357 | # Check whether user wants OpenSC support | ||
15358 | |||
15359 | # Check whether --with-opensc or --without-opensc was given. | ||
15360 | if test "${with_opensc+set}" = set; then | ||
15361 | withval="$with_opensc" | ||
15362 | opensc_config_prefix="$withval" | ||
15363 | else | ||
15364 | opensc_config_prefix="" | ||
15365 | fi; | ||
15366 | if test x$opensc_config_prefix != x ; then | ||
15367 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
15368 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
15369 | set dummy opensc-config; ac_word=$2 | ||
15370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15372 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15374 | else | ||
15375 | case $OPENSC_CONFIG in | ||
15376 | [\\/]* | ?:[\\/]*) | ||
15377 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
15378 | ;; | ||
15379 | *) | ||
15380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15381 | for as_dir in $PATH | ||
15382 | do | ||
15383 | IFS=$as_save_IFS | ||
15384 | test -z "$as_dir" && as_dir=. | ||
15385 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15387 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15389 | break 2 | ||
15390 | fi | ||
15391 | done | ||
15392 | done | ||
15393 | |||
15394 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
15395 | ;; | ||
15396 | esac | ||
15397 | fi | ||
15398 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
15399 | |||
15400 | if test -n "$OPENSC_CONFIG"; then | ||
15401 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
15402 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
15403 | else | ||
15404 | echo "$as_me:$LINENO: result: no" >&5 | ||
15405 | echo "${ECHO_T}no" >&6 | ||
15406 | fi | ||
15407 | |||
15408 | if test "$OPENSC_CONFIG" != "no"; then | ||
15409 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
15410 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
15411 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
15412 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
15413 | cat >>confdefs.h <<\_ACEOF | ||
15414 | #define SMARTCARD 1 | ||
15415 | _ACEOF | ||
15416 | |||
15417 | cat >>confdefs.h <<\_ACEOF | ||
15418 | #define USE_OPENSC 1 | ||
15419 | _ACEOF | ||
15420 | |||
15421 | SCARD_MSG="yes, using OpenSC" | ||
15422 | fi | ||
15423 | fi | ||
15424 | |||
15425 | # Check whether user wants Kerberos 5 support | ||
15426 | KRB5_MSG="no" | ||
15427 | |||
15428 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
15429 | if test "${with_kerberos5+set}" = set; then | ||
15430 | withval="$with_kerberos5" | ||
15431 | |||
15432 | if test "x$withval" != "xno" ; then | ||
15433 | if test "x$withval" = "xyes" ; then | ||
15434 | KRB5ROOT="/usr/local" | ||
15435 | else | ||
15436 | KRB5ROOT=${withval} | ||
15437 | fi | ||
15438 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15439 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15440 | cat >>confdefs.h <<\_ACEOF | ||
15441 | #define KRB5 1 | ||
15442 | _ACEOF | ||
15443 | |||
15444 | KRB5_MSG="yes" | ||
15445 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
15446 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
15447 | cat >conftest.$ac_ext <<_ACEOF | ||
15448 | #line $LINENO "configure" | ||
15449 | #include "confdefs.h" | ||
15450 | #include <krb5.h> | ||
15451 | #ifdef F77_DUMMY_MAIN | ||
15452 | # ifdef __cplusplus | ||
15453 | extern "C" | ||
15454 | # endif | ||
15455 | int F77_DUMMY_MAIN() { return 1; } | ||
15456 | #endif | ||
15457 | int | ||
15458 | main () | ||
15459 | { | ||
15460 | char *tmp = heimdal_version; | ||
15461 | ; | ||
15462 | return 0; | ||
15463 | } | ||
15464 | _ACEOF | ||
15465 | rm -f conftest.$ac_objext | ||
15466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15467 | (eval $ac_compile) 2>&5 | ||
15468 | ac_status=$? | ||
15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15470 | (exit $ac_status); } && | ||
15471 | { ac_try='test -s conftest.$ac_objext' | ||
15472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15473 | (eval $ac_try) 2>&5 | ||
15474 | ac_status=$? | ||
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15476 | (exit $ac_status); }; }; then | ||
15477 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15478 | echo "${ECHO_T}yes" >&6 | ||
15479 | cat >>confdefs.h <<\_ACEOF | ||
15480 | #define HEIMDAL 1 | ||
15481 | _ACEOF | ||
15482 | |||
15483 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | ||
15484 | |||
15485 | else | ||
15486 | echo "$as_me: failed program was:" >&5 | ||
15487 | cat conftest.$ac_ext >&5 | ||
15488 | echo "$as_me:$LINENO: result: no" >&5 | ||
15489 | echo "${ECHO_T}no" >&6 | ||
15490 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15491 | |||
15492 | |||
15493 | fi | ||
15494 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15495 | if test ! -z "$need_dash_r" ; then | ||
15496 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15497 | fi | ||
15498 | if test ! -z "$blibpath" ; then | ||
15499 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15500 | fi | ||
15501 | |||
15502 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15503 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15504 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15506 | else | ||
15507 | ac_check_lib_save_LIBS=$LIBS | ||
15508 | LIBS="-lresolv $LIBS" | ||
15509 | cat >conftest.$ac_ext <<_ACEOF | ||
15510 | #line $LINENO "configure" | ||
15511 | #include "confdefs.h" | ||
15512 | |||
15513 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15514 | #ifdef __cplusplus | ||
15515 | extern "C" | ||
15516 | #endif | ||
15517 | /* We use char because int might match the return type of a gcc2 | ||
15518 | builtin and then its argument prototype would still apply. */ | ||
15519 | char dn_expand (); | ||
15520 | #ifdef F77_DUMMY_MAIN | ||
15521 | # ifdef __cplusplus | ||
15522 | extern "C" | ||
15523 | # endif | ||
15524 | int F77_DUMMY_MAIN() { return 1; } | ||
15525 | #endif | ||
15526 | int | ||
15527 | main () | ||
15528 | { | ||
15529 | dn_expand (); | ||
15530 | ; | ||
15531 | return 0; | ||
15532 | } | ||
15533 | _ACEOF | ||
15534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15536 | (eval $ac_link) 2>&5 | ||
15537 | ac_status=$? | ||
15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15539 | (exit $ac_status); } && | ||
15540 | { ac_try='test -s conftest$ac_exeext' | ||
15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15542 | (eval $ac_try) 2>&5 | ||
15543 | ac_status=$? | ||
15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15545 | (exit $ac_status); }; }; then | ||
15546 | ac_cv_lib_resolv_dn_expand=yes | ||
15547 | else | ||
15548 | echo "$as_me: failed program was:" >&5 | ||
15549 | cat conftest.$ac_ext >&5 | ||
15550 | ac_cv_lib_resolv_dn_expand=no | ||
15551 | fi | ||
15552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15553 | LIBS=$ac_check_lib_save_LIBS | ||
15554 | fi | ||
15555 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
15556 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
15557 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
15558 | cat >>confdefs.h <<_ACEOF | ||
15559 | #define HAVE_LIBRESOLV 1 | ||
15560 | _ACEOF | ||
15561 | |||
15562 | LIBS="-lresolv $LIBS" | ||
15563 | |||
15564 | fi | ||
15565 | |||
15566 | |||
15567 | KRB5=yes | ||
15568 | fi | ||
15569 | |||
15570 | |||
15571 | fi; | ||
15572 | # Check whether user wants Kerberos 4 support | ||
15573 | KRB4_MSG="no" | ||
15574 | |||
15575 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
15576 | if test "${with_kerberos4+set}" = set; then | ||
15577 | withval="$with_kerberos4" | ||
15578 | |||
15579 | if test "x$withval" != "xno" ; then | ||
15580 | if test "x$withval" != "xyes" ; then | ||
15581 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
15582 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
15583 | if test ! -z "$need_dash_r" ; then | ||
15584 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
15585 | fi | ||
15586 | if test ! -z "$blibpath" ; then | ||
15587 | blibpath="$blibpath:${withval}/lib" | ||
15588 | fi | ||
15589 | else | ||
15590 | if test -d /usr/include/kerberosIV ; then | ||
15591 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
15592 | fi | ||
15593 | fi | ||
15594 | |||
15595 | |||
15596 | for ac_header in krb.h | ||
15597 | do | ||
15598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15604 | fi | ||
15605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15607 | else | ||
15608 | # Is the header compilable? | ||
15609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
15610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
15611 | cat >conftest.$ac_ext <<_ACEOF | ||
15612 | #line $LINENO "configure" | ||
15613 | #include "confdefs.h" | ||
15614 | $ac_includes_default | ||
15615 | #include <$ac_header> | ||
15616 | _ACEOF | ||
15617 | rm -f conftest.$ac_objext | ||
15618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15619 | (eval $ac_compile) 2>&5 | ||
15620 | ac_status=$? | ||
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15622 | (exit $ac_status); } && | ||
15623 | { ac_try='test -s conftest.$ac_objext' | ||
15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15625 | (eval $ac_try) 2>&5 | ||
15626 | ac_status=$? | ||
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15628 | (exit $ac_status); }; }; then | ||
15629 | ac_header_compiler=yes | ||
15630 | else | ||
15631 | echo "$as_me: failed program was:" >&5 | ||
15632 | cat conftest.$ac_ext >&5 | ||
15633 | ac_header_compiler=no | ||
15634 | fi | ||
15635 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
15636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
15637 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
15638 | |||
15639 | # Is the header present? | ||
15640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
15641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
15642 | cat >conftest.$ac_ext <<_ACEOF | ||
15643 | #line $LINENO "configure" | ||
15644 | #include "confdefs.h" | ||
15645 | #include <$ac_header> | ||
15646 | _ACEOF | ||
15647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
15648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
15649 | ac_status=$? | ||
15650 | egrep -v '^ *\+' conftest.er1 >conftest.err | ||
15651 | rm -f conftest.er1 | ||
15652 | cat conftest.err >&5 | ||
15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15654 | (exit $ac_status); } >/dev/null; then | ||
15655 | if test -s conftest.err; then | ||
15656 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
15657 | else | ||
15658 | ac_cpp_err= | ||
15659 | fi | ||
15660 | else | ||
15661 | ac_cpp_err=yes | ||
15662 | fi | ||
15663 | if test -z "$ac_cpp_err"; then | ||
15664 | ac_header_preproc=yes | ||
15665 | else | ||
15666 | echo "$as_me: failed program was:" >&5 | ||
15667 | cat conftest.$ac_ext >&5 | ||
15668 | ac_header_preproc=no | ||
15669 | fi | ||
15670 | rm -f conftest.err conftest.$ac_ext | ||
15671 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
15672 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
15673 | |||
15674 | # So? What about this header? | ||
15675 | case $ac_header_compiler:$ac_header_preproc in | ||
15676 | yes:no ) | ||
15677 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
15678 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
15679 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15680 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15681 | no:yes ) | ||
15682 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
15683 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
15684 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
15685 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
15686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
15687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | ||
15688 | esac | ||
15689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
15690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
15691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
15692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15693 | else | ||
15694 | eval "$as_ac_Header=$ac_header_preproc" | ||
15695 | fi | ||
15696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
15697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
15698 | |||
15699 | fi | ||
15700 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
15701 | cat >>confdefs.h <<_ACEOF | ||
15702 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15703 | _ACEOF | ||
15704 | |||
15705 | fi | ||
15706 | |||
15707 | done | ||
15708 | |||
15709 | if test "$ac_cv_header_krb_h" != yes; then | ||
15710 | { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5 | ||
15711 | echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;} | ||
15712 | fi | ||
15713 | |||
15714 | echo "$as_me:$LINENO: checking for main in -lkrb" >&5 | ||
15715 | echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6 | ||
15716 | if test "${ac_cv_lib_krb_main+set}" = set; then | ||
15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15718 | else | ||
15719 | ac_check_lib_save_LIBS=$LIBS | ||
15720 | LIBS="-lkrb $LIBS" | ||
15721 | cat >conftest.$ac_ext <<_ACEOF | ||
15722 | #line $LINENO "configure" | ||
15723 | #include "confdefs.h" | ||
15724 | |||
15725 | |||
15726 | #ifdef F77_DUMMY_MAIN | ||
15727 | # ifdef __cplusplus | ||
15728 | extern "C" | ||
15729 | # endif | ||
15730 | int F77_DUMMY_MAIN() { return 1; } | ||
15731 | #endif | ||
15732 | int | ||
15733 | main () | ||
15734 | { | ||
15735 | main (); | ||
15736 | ; | ||
15737 | return 0; | ||
15738 | } | ||
15739 | _ACEOF | ||
15740 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15742 | (eval $ac_link) 2>&5 | ||
15743 | ac_status=$? | ||
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15745 | (exit $ac_status); } && | ||
15746 | { ac_try='test -s conftest$ac_exeext' | ||
15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15748 | (eval $ac_try) 2>&5 | ||
15749 | ac_status=$? | ||
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15751 | (exit $ac_status); }; }; then | ||
15752 | ac_cv_lib_krb_main=yes | ||
15753 | else | ||
15754 | echo "$as_me: failed program was:" >&5 | ||
15755 | cat conftest.$ac_ext >&5 | ||
15756 | ac_cv_lib_krb_main=no | ||
15757 | fi | ||
15758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15759 | LIBS=$ac_check_lib_save_LIBS | ||
15760 | fi | ||
15761 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5 | ||
15762 | echo "${ECHO_T}$ac_cv_lib_krb_main" >&6 | ||
15763 | if test $ac_cv_lib_krb_main = yes; then | ||
15764 | cat >>confdefs.h <<_ACEOF | ||
15765 | #define HAVE_LIBKRB 1 | ||
15766 | _ACEOF | ||
15767 | |||
15768 | LIBS="-lkrb $LIBS" | ||
15769 | |||
15770 | fi | ||
15771 | |||
15772 | if test "$ac_cv_lib_krb_main" != yes; then | ||
15773 | |||
15774 | echo "$as_me:$LINENO: checking for main in -lkrb4" >&5 | ||
15775 | echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6 | ||
15776 | if test "${ac_cv_lib_krb4_main+set}" = set; then | ||
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15778 | else | ||
15779 | ac_check_lib_save_LIBS=$LIBS | ||
15780 | LIBS="-lkrb4 $LIBS" | ||
15781 | cat >conftest.$ac_ext <<_ACEOF | ||
15782 | #line $LINENO "configure" | ||
15783 | #include "confdefs.h" | ||
15784 | |||
15785 | |||
15786 | #ifdef F77_DUMMY_MAIN | ||
15787 | # ifdef __cplusplus | ||
15788 | extern "C" | ||
15789 | # endif | ||
15790 | int F77_DUMMY_MAIN() { return 1; } | ||
15791 | #endif | ||
15792 | int | ||
15793 | main () | ||
15794 | { | ||
15795 | main (); | ||
15796 | ; | ||
15797 | return 0; | ||
15798 | } | ||
15799 | _ACEOF | ||
15800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15802 | (eval $ac_link) 2>&5 | ||
15803 | ac_status=$? | ||
15804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15805 | (exit $ac_status); } && | ||
15806 | { ac_try='test -s conftest$ac_exeext' | ||
15807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15808 | (eval $ac_try) 2>&5 | ||
15809 | ac_status=$? | ||
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15811 | (exit $ac_status); }; }; then | ||
15812 | ac_cv_lib_krb4_main=yes | ||
15813 | else | ||
15814 | echo "$as_me: failed program was:" >&5 | ||
15815 | cat conftest.$ac_ext >&5 | ||
15816 | ac_cv_lib_krb4_main=no | ||
15817 | fi | ||
15818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15819 | LIBS=$ac_check_lib_save_LIBS | ||
15820 | fi | ||
15821 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5 | ||
15822 | echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6 | ||
15823 | if test $ac_cv_lib_krb4_main = yes; then | ||
15824 | cat >>confdefs.h <<_ACEOF | ||
15825 | #define HAVE_LIBKRB4 1 | ||
15826 | _ACEOF | ||
15827 | |||
15828 | LIBS="-lkrb4 $LIBS" | ||
15829 | |||
15830 | fi | ||
15831 | |||
15832 | if test "$ac_cv_lib_krb4_main" != yes; then | ||
15833 | { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5 | ||
15834 | echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;} | ||
15835 | else | ||
15836 | KLIBS="-lkrb4" | ||
15837 | fi | ||
15838 | else | ||
15839 | KLIBS="-lkrb" | ||
15840 | fi | ||
15841 | |||
15842 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
15843 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 | ||
15844 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
15845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15846 | else | ||
15847 | ac_check_lib_save_LIBS=$LIBS | ||
15848 | LIBS="-ldes $LIBS" | ||
15849 | cat >conftest.$ac_ext <<_ACEOF | ||
15850 | #line $LINENO "configure" | ||
15851 | #include "confdefs.h" | ||
15852 | |||
15853 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15854 | #ifdef __cplusplus | ||
15855 | extern "C" | ||
15856 | #endif | ||
15857 | /* We use char because int might match the return type of a gcc2 | ||
15858 | builtin and then its argument prototype would still apply. */ | ||
15859 | char des_cbc_encrypt (); | ||
15860 | #ifdef F77_DUMMY_MAIN | ||
15861 | # ifdef __cplusplus | ||
15862 | extern "C" | ||
15863 | # endif | ||
15864 | int F77_DUMMY_MAIN() { return 1; } | ||
15865 | #endif | ||
15866 | int | ||
15867 | main () | ||
15868 | { | ||
15869 | des_cbc_encrypt (); | ||
15870 | ; | ||
15871 | return 0; | ||
15872 | } | ||
15873 | _ACEOF | ||
15874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15876 | (eval $ac_link) 2>&5 | ||
15877 | ac_status=$? | ||
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15879 | (exit $ac_status); } && | ||
15880 | { ac_try='test -s conftest$ac_exeext' | ||
15881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15882 | (eval $ac_try) 2>&5 | ||
15883 | ac_status=$? | ||
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15885 | (exit $ac_status); }; }; then | ||
15886 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15887 | else | ||
15888 | echo "$as_me: failed program was:" >&5 | ||
15889 | cat conftest.$ac_ext >&5 | ||
15890 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15891 | fi | ||
15892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15893 | LIBS=$ac_check_lib_save_LIBS | ||
15894 | fi | ||
15895 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15896 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | ||
15897 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
15898 | cat >>confdefs.h <<_ACEOF | ||
15899 | #define HAVE_LIBDES 1 | ||
15900 | _ACEOF | ||
15901 | |||
15902 | LIBS="-ldes $LIBS" | ||
15903 | |||
15904 | fi | ||
15905 | |||
15906 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | ||
15907 | |||
15908 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | ||
15909 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 | ||
15910 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | ||
15911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15912 | else | ||
15913 | ac_check_lib_save_LIBS=$LIBS | ||
15914 | LIBS="-ldes425 $LIBS" | ||
15915 | cat >conftest.$ac_ext <<_ACEOF | ||
15916 | #line $LINENO "configure" | ||
15917 | #include "confdefs.h" | ||
15918 | |||
15919 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15920 | #ifdef __cplusplus | ||
15921 | extern "C" | ||
15922 | #endif | ||
15923 | /* We use char because int might match the return type of a gcc2 | ||
15924 | builtin and then its argument prototype would still apply. */ | ||
15925 | char des_cbc_encrypt (); | ||
15926 | #ifdef F77_DUMMY_MAIN | ||
15927 | # ifdef __cplusplus | ||
15928 | extern "C" | ||
15929 | # endif | ||
15930 | int F77_DUMMY_MAIN() { return 1; } | ||
15931 | #endif | ||
15932 | int | ||
15933 | main () | ||
15934 | { | ||
15935 | des_cbc_encrypt (); | ||
15936 | ; | ||
15937 | return 0; | ||
15938 | } | ||
15939 | _ACEOF | ||
15940 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15942 | (eval $ac_link) 2>&5 | ||
15943 | ac_status=$? | ||
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15945 | (exit $ac_status); } && | ||
15946 | { ac_try='test -s conftest$ac_exeext' | ||
15947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15948 | (eval $ac_try) 2>&5 | ||
15949 | ac_status=$? | ||
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15951 | (exit $ac_status); }; }; then | ||
15952 | ac_cv_lib_des425_des_cbc_encrypt=yes | ||
15953 | else | ||
15954 | echo "$as_me: failed program was:" >&5 | ||
15955 | cat conftest.$ac_ext >&5 | ||
15956 | ac_cv_lib_des425_des_cbc_encrypt=no | ||
15957 | fi | ||
15958 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
15959 | LIBS=$ac_check_lib_save_LIBS | ||
15960 | fi | ||
15961 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | ||
15962 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | ||
15963 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | ||
15964 | cat >>confdefs.h <<_ACEOF | ||
15965 | #define HAVE_LIBDES425 1 | ||
15966 | _ACEOF | ||
15967 | |||
15968 | LIBS="-ldes425 $LIBS" | ||
15969 | |||
15970 | fi | ||
15971 | |||
15972 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | ||
15973 | { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5 | ||
15974 | echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;} | ||
15975 | else | ||
15976 | KLIBS="-ldes425" | ||
15977 | fi | ||
15978 | else | ||
15979 | KLIBS="-ldes" | ||
15980 | fi | ||
15981 | |||
15982 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | ||
15983 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | ||
15984 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | ||
15985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15986 | else | ||
15987 | ac_check_lib_save_LIBS=$LIBS | ||
15988 | LIBS="-lresolv $LIBS" | ||
15989 | cat >conftest.$ac_ext <<_ACEOF | ||
15990 | #line $LINENO "configure" | ||
15991 | #include "confdefs.h" | ||
15992 | |||
15993 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15994 | #ifdef __cplusplus | ||
15995 | extern "C" | ||
15996 | #endif | ||
15997 | /* We use char because int might match the return type of a gcc2 | ||
15998 | builtin and then its argument prototype would still apply. */ | ||
15999 | char dn_expand (); | ||
16000 | #ifdef F77_DUMMY_MAIN | ||
16001 | # ifdef __cplusplus | ||
16002 | extern "C" | ||
16003 | # endif | ||
16004 | int F77_DUMMY_MAIN() { return 1; } | ||
16005 | #endif | ||
16006 | int | ||
16007 | main () | ||
16008 | { | ||
16009 | dn_expand (); | ||
16010 | ; | ||
16011 | return 0; | ||
16012 | } | ||
16013 | _ACEOF | ||
16014 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16016 | (eval $ac_link) 2>&5 | ||
16017 | ac_status=$? | ||
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16019 | (exit $ac_status); } && | ||
16020 | { ac_try='test -s conftest$ac_exeext' | ||
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16022 | (eval $ac_try) 2>&5 | ||
16023 | ac_status=$? | ||
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16025 | (exit $ac_status); }; }; then | ||
16026 | ac_cv_lib_resolv_dn_expand=yes | ||
16027 | else | ||
16028 | echo "$as_me: failed program was:" >&5 | ||
16029 | cat conftest.$ac_ext >&5 | ||
16030 | ac_cv_lib_resolv_dn_expand=no | ||
16031 | fi | ||
16032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
16033 | LIBS=$ac_check_lib_save_LIBS | ||
16034 | fi | ||
16035 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | ||
16036 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | ||
16037 | if test $ac_cv_lib_resolv_dn_expand = yes; then | ||
16038 | cat >>confdefs.h <<_ACEOF | ||
16039 | #define HAVE_LIBRESOLV 1 | ||
16040 | _ACEOF | ||
16041 | |||
16042 | LIBS="-lresolv $LIBS" | ||
16043 | |||
16044 | fi | ||
16045 | |||
16046 | KRB4=yes | ||
16047 | KRB4_MSG="yes" | ||
16048 | cat >>confdefs.h <<\_ACEOF | ||
16049 | #define KRB4 1 | ||
16050 | _ACEOF | ||
16051 | |||
16052 | fi | ||
16053 | |||
16054 | |||
16055 | fi; | ||
16056 | |||
16057 | # Check whether user wants AFS support | ||
16058 | AFS_MSG="no" | ||
16059 | |||
16060 | # Check whether --with-afs or --without-afs was given. | ||
16061 | if test "${with_afs+set}" = set; then | ||
16062 | withval="$with_afs" | ||
16063 | |||
16064 | if test "x$withval" != "xno" ; then | ||
16065 | |||
16066 | if test "x$withval" != "xyes" ; then | ||
16067 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
16068 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
16069 | fi | ||
16070 | |||
16071 | if test -z "$KRB4" ; then | ||
16072 | { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5 | ||
16073 | echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;} | ||
16074 | fi | ||
16075 | |||
16076 | LIBS="-lkafs $LIBS" | ||
16077 | if test ! -z "$AFS_LIBS" ; then | ||
16078 | LIBS="$LIBS $AFS_LIBS" | ||
16079 | fi | ||
16080 | cat >>confdefs.h <<\_ACEOF | ||
16081 | #define AFS 1 | ||
16082 | _ACEOF | ||
16083 | |||
16084 | AFS_MSG="yes" | ||
16085 | fi | ||
16086 | |||
16087 | |||
16088 | fi; | ||
16089 | LIBS="$LIBS $KLIBS $K5LIBS" | ||
16090 | |||
16091 | # Looking for programs, paths and files | ||
16092 | |||
16093 | PRIVSEP_PATH=/var/empty | ||
16094 | |||
16095 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
16096 | if test "${with_privsep_path+set}" = set; then | ||
16097 | withval="$with_privsep_path" | ||
16098 | |||
16099 | if test "x$withval" != "$no" ; then | ||
16100 | PRIVSEP_PATH=$withval | ||
16101 | fi | ||
16102 | |||
16103 | |||
16104 | fi; | ||
16105 | |||
16106 | |||
16107 | |||
16108 | # Check whether --with-xauth or --without-xauth was given. | ||
16109 | if test "${with_xauth+set}" = set; then | ||
16110 | withval="$with_xauth" | ||
16111 | |||
16112 | if test "x$withval" != "xno" ; then | ||
16113 | xauth_path=$withval | ||
16114 | fi | ||
16115 | |||
16116 | else | ||
16117 | |||
16118 | TestPath="$PATH" | ||
16119 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
16120 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
16121 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
16122 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
16123 | # Extract the first word of "xauth", so it can be a program name with args. | ||
16124 | set dummy xauth; ac_word=$2 | ||
16125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16127 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
16128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16129 | else | ||
16130 | case $xauth_path in | ||
16131 | [\\/]* | ?:[\\/]*) | ||
16132 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
16133 | ;; | ||
16134 | *) | ||
16135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16136 | for as_dir in $TestPath | ||
16137 | do | ||
16138 | IFS=$as_save_IFS | ||
16139 | test -z "$as_dir" && as_dir=. | ||
16140 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16142 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
16143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16144 | break 2 | ||
16145 | fi | ||
16146 | done | ||
16147 | done | ||
16148 | |||
16149 | ;; | ||
16150 | esac | ||
16151 | fi | ||
16152 | xauth_path=$ac_cv_path_xauth_path | ||
16153 | |||
16154 | if test -n "$xauth_path"; then | ||
16155 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
16156 | echo "${ECHO_T}$xauth_path" >&6 | ||
16157 | else | ||
16158 | echo "$as_me:$LINENO: result: no" >&5 | ||
16159 | echo "${ECHO_T}no" >&6 | ||
16160 | fi | ||
16161 | |||
16162 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
16163 | xauth_path="/usr/openwin/bin/xauth" | ||
16164 | fi | ||
16165 | |||
16166 | |||
16167 | fi; | ||
16168 | |||
16169 | STRIP_OPT=-s | ||
16170 | # Check whether --enable-strip or --disable-strip was given. | ||
16171 | if test "${enable_strip+set}" = set; then | ||
16172 | enableval="$enable_strip" | ||
16173 | |||
16174 | if test "x$enableval" = "xno" ; then | ||
16175 | STRIP_OPT= | ||
16176 | fi | ||
16177 | |||
16178 | |||
16179 | fi; | ||
16180 | |||
16181 | |||
16182 | if test -z "$xauth_path" ; then | ||
16183 | XAUTH_PATH="undefined" | ||
16184 | |||
16185 | else | ||
16186 | cat >>confdefs.h <<_ACEOF | ||
16187 | #define XAUTH_PATH "$xauth_path" | ||
16188 | _ACEOF | ||
16189 | |||
16190 | XAUTH_PATH=$xauth_path | ||
16191 | |||
16192 | fi | ||
16193 | |||
16194 | # Check for mail directory (last resort if we cannot get it from headers) | ||
16195 | if test ! -z "$MAIL" ; then | ||
16196 | maildir=`dirname $MAIL` | ||
16197 | cat >>confdefs.h <<_ACEOF | ||
16198 | #define MAIL_DIRECTORY "$maildir" | ||
16199 | _ACEOF | ||
16200 | |||
16201 | fi | ||
16202 | |||
16203 | if test -z "$no_dev_ptmx" ; then | ||
16204 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
16205 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
16206 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
16207 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
16208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16209 | else | ||
16210 | test "$cross_compiling" = yes && | ||
16211 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
16212 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16213 | { (exit 1); exit 1; }; } | ||
16214 | if test -r ""/dev/ptmx""; then | ||
16215 | ac_cv_file___dev_ptmx_=yes | ||
16216 | else | ||
16217 | ac_cv_file___dev_ptmx_=no | ||
16218 | fi | ||
16219 | fi | ||
16220 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
16221 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
16222 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
16223 | |||
16224 | cat >>confdefs.h <<_ACEOF | ||
16225 | #define HAVE_DEV_PTMX 1 | ||
16226 | _ACEOF | ||
16227 | |||
16228 | have_dev_ptmx=1 | ||
16229 | |||
16230 | |||
16231 | fi | ||
16232 | |||
16233 | fi | ||
16234 | fi | ||
16235 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
16236 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
16237 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16239 | else | ||
16240 | test "$cross_compiling" = yes && | ||
16241 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
16242 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
16243 | { (exit 1); exit 1; }; } | ||
16244 | if test -r ""/dev/ptc""; then | ||
16245 | ac_cv_file___dev_ptc_=yes | ||
16246 | else | ||
16247 | ac_cv_file___dev_ptc_=no | ||
16248 | fi | ||
16249 | fi | ||
16250 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
16251 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
16252 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
16253 | |||
16254 | cat >>confdefs.h <<_ACEOF | ||
16255 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
16256 | _ACEOF | ||
16257 | |||
16258 | have_dev_ptc=1 | ||
16259 | |||
16260 | |||
16261 | fi | ||
16262 | |||
16263 | |||
16264 | # Options from here on. Some of these are preset by platform above | ||
16265 | |||
16266 | # Check whether --with-mantype or --without-mantype was given. | ||
16267 | if test "${with_mantype+set}" = set; then | ||
16268 | withval="$with_mantype" | ||
16269 | |||
16270 | case "$withval" in | ||
16271 | man|cat|doc) | ||
16272 | MANTYPE=$withval | ||
16273 | ;; | ||
16274 | *) | ||
16275 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
16276 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
16277 | { (exit 1); exit 1; }; } | ||
16278 | ;; | ||
16279 | esac | ||
16280 | |||
16281 | |||
16282 | fi; | ||
16283 | if test -z "$MANTYPE"; then | ||
16284 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
16285 | for ac_prog in nroff awf | ||
16286 | do | ||
16287 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16288 | set dummy $ac_prog; ac_word=$2 | ||
16289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16291 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
16292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16293 | else | ||
16294 | case $NROFF in | ||
16295 | [\\/]* | ?:[\\/]*) | ||
16296 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
16297 | ;; | ||
16298 | *) | ||
16299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16300 | for as_dir in $TestPath | ||
16301 | do | ||
16302 | IFS=$as_save_IFS | ||
16303 | test -z "$as_dir" && as_dir=. | ||
16304 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16305 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16306 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
16307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16308 | break 2 | ||
16309 | fi | ||
16310 | done | ||
16311 | done | ||
16312 | |||
16313 | ;; | ||
16314 | esac | ||
16315 | fi | ||
16316 | NROFF=$ac_cv_path_NROFF | ||
16317 | |||
16318 | if test -n "$NROFF"; then | ||
16319 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
16320 | echo "${ECHO_T}$NROFF" >&6 | ||
16321 | else | ||
16322 | echo "$as_me:$LINENO: result: no" >&5 | ||
16323 | echo "${ECHO_T}no" >&6 | ||
16324 | fi | ||
16325 | |||
16326 | test -n "$NROFF" && break | ||
16327 | done | ||
16328 | test -n "$NROFF" || NROFF="/bin/false" | ||
16329 | |||
16330 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16331 | MANTYPE=doc | ||
16332 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16333 | MANTYPE=man | ||
16334 | else | ||
16335 | MANTYPE=cat | ||
16336 | fi | ||
16337 | fi | ||
16338 | |||
16339 | if test "$MANTYPE" = "doc"; then | ||
16340 | mansubdir=man; | ||
16341 | else | ||
16342 | mansubdir=$MANTYPE; | ||
16343 | fi | ||
16344 | |||
16345 | |||
16346 | # Check whether to enable MD5 passwords | ||
16347 | MD5_MSG="no" | ||
16348 | |||
16349 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
16350 | if test "${with_md5_passwords+set}" = set; then | ||
16351 | withval="$with_md5_passwords" | ||
16352 | |||
16353 | if test "x$withval" != "xno" ; then | ||
16354 | cat >>confdefs.h <<\_ACEOF | ||
16355 | #define HAVE_MD5_PASSWORDS 1 | ||
16356 | _ACEOF | ||
16357 | |||
16358 | MD5_MSG="yes" | ||
16359 | fi | ||
16360 | |||
16361 | |||
16362 | fi; | ||
16363 | |||
16364 | # Whether to disable shadow password support | ||
16365 | |||
16366 | # Check whether --with-shadow or --without-shadow was given. | ||
16367 | if test "${with_shadow+set}" = set; then | ||
16368 | withval="$with_shadow" | ||
16369 | |||
16370 | if test "x$withval" = "xno" ; then | ||
16371 | cat >>confdefs.h <<\_ACEOF | ||
16372 | #define DISABLE_SHADOW 1 | ||
16373 | _ACEOF | ||
16374 | |||
16375 | disable_shadow=yes | ||
16376 | fi | ||
16377 | |||
16378 | |||
16379 | fi; | ||
16380 | |||
16381 | if test -z "$disable_shadow" ; then | ||
16382 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
16383 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
16384 | cat >conftest.$ac_ext <<_ACEOF | ||
16385 | #line $LINENO "configure" | ||
16386 | #include "confdefs.h" | ||
16387 | |||
16388 | #include <sys/types.h> | ||
16389 | #include <shadow.h> | ||
16390 | struct spwd sp; | ||
16391 | |||
16392 | #ifdef F77_DUMMY_MAIN | ||
16393 | # ifdef __cplusplus | ||
16394 | extern "C" | ||
16395 | # endif | ||
16396 | int F77_DUMMY_MAIN() { return 1; } | ||
16397 | #endif | ||
16398 | int | ||
16399 | main () | ||
16400 | { | ||
16401 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
16402 | ; | ||
16403 | return 0; | ||
16404 | } | ||
16405 | _ACEOF | ||
16406 | rm -f conftest.$ac_objext | ||
16407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16408 | (eval $ac_compile) 2>&5 | ||
16409 | ac_status=$? | ||
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16411 | (exit $ac_status); } && | ||
16412 | { ac_try='test -s conftest.$ac_objext' | ||
16413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16414 | (eval $ac_try) 2>&5 | ||
16415 | ac_status=$? | ||
16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16417 | (exit $ac_status); }; }; then | ||
16418 | sp_expire_available=yes | ||
16419 | else | ||
16420 | echo "$as_me: failed program was:" >&5 | ||
16421 | cat conftest.$ac_ext >&5 | ||
16422 | |||
16423 | |||
16424 | fi | ||
16425 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16426 | |||
16427 | if test "x$sp_expire_available" = "xyes" ; then | ||
16428 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16429 | echo "${ECHO_T}yes" >&6 | ||
16430 | cat >>confdefs.h <<\_ACEOF | ||
16431 | #define HAS_SHADOW_EXPIRE 1 | ||
16432 | _ACEOF | ||
16433 | |||
16434 | else | ||
16435 | echo "$as_me:$LINENO: result: no" >&5 | ||
16436 | echo "${ECHO_T}no" >&6 | ||
16437 | fi | ||
16438 | fi | ||
16439 | |||
16440 | # Use ip address instead of hostname in $DISPLAY | ||
16441 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
16442 | DISPLAY_HACK_MSG="yes" | ||
16443 | cat >>confdefs.h <<\_ACEOF | ||
16444 | #define IPADDR_IN_DISPLAY 1 | ||
16445 | _ACEOF | ||
16446 | |||
16447 | else | ||
16448 | DISPLAY_HACK_MSG="no" | ||
16449 | |||
16450 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
16451 | if test "${with_ipaddr_display+set}" = set; then | ||
16452 | withval="$with_ipaddr_display" | ||
16453 | |||
16454 | if test "x$withval" != "xno" ; then | ||
16455 | cat >>confdefs.h <<\_ACEOF | ||
16456 | #define IPADDR_IN_DISPLAY 1 | ||
16457 | _ACEOF | ||
16458 | |||
16459 | DISPLAY_HACK_MSG="yes" | ||
16460 | fi | ||
16461 | |||
16462 | |||
16463 | fi; | ||
16464 | fi | ||
16465 | |||
16466 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
16467 | $ac_cv_header_login_cap_h = "yes" ; then | ||
16468 | USES_LOGIN_CONF=yes | ||
16469 | fi | ||
16470 | # Whether to mess with the default path | ||
16471 | SERVER_PATH_MSG="(default)" | ||
16472 | |||
16473 | # Check whether --with-default-path or --without-default-path was given. | ||
16474 | if test "${with_default_path+set}" = set; then | ||
16475 | withval="$with_default_path" | ||
16476 | |||
16477 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16478 | { echo "$as_me:$LINENO: WARNING: | ||
16479 | --with-default-path=PATH has no effect on this system. | ||
16480 | Edit /etc/login.conf instead." >&5 | ||
16481 | echo "$as_me: WARNING: | ||
16482 | --with-default-path=PATH has no effect on this system. | ||
16483 | Edit /etc/login.conf instead." >&2;} | ||
16484 | elif test "x$withval" != "xno" ; then | ||
16485 | user_path="$withval" | ||
16486 | SERVER_PATH_MSG="$withval" | ||
16487 | fi | ||
16488 | |||
16489 | else | ||
16490 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
16491 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16492 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16493 | else | ||
16494 | if test "$cross_compiling" = yes; then | ||
16495 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16496 | |||
16497 | else | ||
16498 | cat >conftest.$ac_ext <<_ACEOF | ||
16499 | #line $LINENO "configure" | ||
16500 | #include "confdefs.h" | ||
16501 | |||
16502 | /* find out what STDPATH is */ | ||
16503 | #include <stdio.h> | ||
16504 | #ifdef HAVE_PATHS_H | ||
16505 | # include <paths.h> | ||
16506 | #endif | ||
16507 | #ifndef _PATH_STDPATH | ||
16508 | # ifdef _PATH_USERPATH /* Irix */ | ||
16509 | # define _PATH_STDPATH _PATH_USERPATH | ||
16510 | # else | ||
16511 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16512 | # endif | ||
16513 | #endif | ||
16514 | #include <sys/types.h> | ||
16515 | #include <sys/stat.h> | ||
16516 | #include <fcntl.h> | ||
16517 | #define DATA "conftest.stdpath" | ||
16518 | |||
16519 | main() | ||
16520 | { | ||
16521 | FILE *fd; | ||
16522 | int rc; | ||
16523 | |||
16524 | fd = fopen(DATA,"w"); | ||
16525 | if(fd == NULL) | ||
16526 | exit(1); | ||
16527 | |||
16528 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16529 | exit(1); | ||
16530 | |||
16531 | exit(0); | ||
16532 | } | ||
16533 | |||
16534 | _ACEOF | ||
16535 | rm -f conftest$ac_exeext | ||
16536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16537 | (eval $ac_link) 2>&5 | ||
16538 | ac_status=$? | ||
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16542 | (eval $ac_try) 2>&5 | ||
16543 | ac_status=$? | ||
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16545 | (exit $ac_status); }; }; then | ||
16546 | user_path=`cat conftest.stdpath` | ||
16547 | else | ||
16548 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16549 | echo "$as_me: failed program was:" >&5 | ||
16550 | cat conftest.$ac_ext >&5 | ||
16551 | ( exit $ac_status ) | ||
16552 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16553 | fi | ||
16554 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16555 | fi | ||
16556 | # make sure $bindir is in USER_PATH so scp will work | ||
16557 | t_bindir=`eval echo ${bindir}` | ||
16558 | case $t_bindir in | ||
16559 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16560 | esac | ||
16561 | case $t_bindir in | ||
16562 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16563 | esac | ||
16564 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16565 | if test $? -ne 0 ; then | ||
16566 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16567 | if test $? -ne 0 ; then | ||
16568 | user_path=$user_path:$t_bindir | ||
16569 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16570 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
16571 | fi | ||
16572 | fi | ||
16573 | fi | ||
16574 | |||
16575 | fi; | ||
16576 | if test "$USES_LOGIN_CONF" != "yes" ; then | ||
16577 | cat >>confdefs.h <<_ACEOF | ||
16578 | #define USER_PATH "$user_path" | ||
16579 | _ACEOF | ||
16580 | |||
16581 | |||
16582 | fi | ||
16583 | |||
16584 | # Set superuser path separately to user path | ||
16585 | |||
16586 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
16587 | if test "${with_superuser_path+set}" = set; then | ||
16588 | withval="$with_superuser_path" | ||
16589 | |||
16590 | if test "x$withval" != "xno" ; then | ||
16591 | cat >>confdefs.h <<_ACEOF | ||
16592 | #define SUPERUSER_PATH "$withval" | ||
16593 | _ACEOF | ||
16594 | |||
16595 | superuser_path=$withval | ||
16596 | fi | ||
16597 | |||
16598 | |||
16599 | fi; | ||
16600 | |||
16601 | |||
16602 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
16603 | IPV4_HACK_MSG="no" | ||
16604 | |||
16605 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
16606 | if test "${with_ipv4_default+set}" = set; then | ||
16607 | withval="$with_ipv4_default" | ||
16608 | |||
16609 | if test "x$withval" != "xno" ; then | ||
16610 | cat >>confdefs.h <<\_ACEOF | ||
16611 | #define IPV4_DEFAULT 1 | ||
16612 | _ACEOF | ||
16613 | |||
16614 | IPV4_HACK_MSG="yes" | ||
16615 | fi | ||
16616 | |||
16617 | |||
16618 | fi; | ||
16619 | |||
16620 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16621 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
16622 | IPV4_IN6_HACK_MSG="no" | ||
16623 | |||
16624 | # Check whether --with-4in6 or --without-4in6 was given. | ||
16625 | if test "${with_4in6+set}" = set; then | ||
16626 | withval="$with_4in6" | ||
16627 | |||
16628 | if test "x$withval" != "xno" ; then | ||
16629 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16630 | echo "${ECHO_T}yes" >&6 | ||
16631 | cat >>confdefs.h <<\_ACEOF | ||
16632 | #define IPV4_IN_IPV6 1 | ||
16633 | _ACEOF | ||
16634 | |||
16635 | IPV4_IN6_HACK_MSG="yes" | ||
16636 | else | ||
16637 | echo "$as_me:$LINENO: result: no" >&5 | ||
16638 | echo "${ECHO_T}no" >&6 | ||
16639 | fi | ||
16640 | |||
16641 | else | ||
16642 | |||
16643 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16644 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
16645 | echo "${ECHO_T}yes (default)" >&6 | ||
16646 | cat >>confdefs.h <<\_ACEOF | ||
16647 | #define IPV4_IN_IPV6 1 | ||
16648 | _ACEOF | ||
16649 | |||
16650 | IPV4_IN6_HACK_MSG="yes" | ||
16651 | else | ||
16652 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
16653 | echo "${ECHO_T}no (default)" >&6 | ||
16654 | fi | ||
16655 | |||
16656 | |||
16657 | fi; | ||
16658 | |||
16659 | # Whether to enable BSD auth support | ||
16660 | BSD_AUTH_MSG=no | ||
16661 | |||
16662 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
16663 | if test "${with_bsd_auth+set}" = set; then | ||
16664 | withval="$with_bsd_auth" | ||
16665 | |||
16666 | if test "x$withval" != "xno" ; then | ||
16667 | cat >>confdefs.h <<\_ACEOF | ||
16668 | #define BSD_AUTH 1 | ||
16669 | _ACEOF | ||
16670 | |||
16671 | BSD_AUTH_MSG=yes | ||
16672 | fi | ||
16673 | |||
16674 | |||
16675 | fi; | ||
16676 | |||
16677 | # Where to place sshd.pid | ||
16678 | piddir=/var/run | ||
16679 | # make sure the directory exists | ||
16680 | if test ! -d $piddir ; then | ||
16681 | piddir=`eval echo ${sysconfdir}` | ||
16682 | case $piddir in | ||
16683 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16684 | esac | ||
16685 | fi | ||
16686 | |||
16687 | |||
16688 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
16689 | if test "${with_pid_dir+set}" = set; then | ||
16690 | withval="$with_pid_dir" | ||
16691 | |||
16692 | if test "x$withval" != "xno" ; then | ||
16693 | piddir=$withval | ||
16694 | if test ! -d $piddir ; then | ||
16695 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
16696 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16697 | fi | ||
16698 | fi | ||
16699 | |||
16700 | |||
16701 | fi; | ||
16702 | |||
16703 | cat >>confdefs.h <<_ACEOF | ||
16704 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16705 | _ACEOF | ||
16706 | |||
16707 | |||
16708 | |||
16709 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
16710 | if test "${enable_lastlog+set}" = set; then | ||
16711 | enableval="$enable_lastlog" | ||
16712 | cat >>confdefs.h <<\_ACEOF | ||
16713 | #define DISABLE_LASTLOG 1 | ||
16714 | _ACEOF | ||
16715 | |||
16716 | |||
16717 | fi; | ||
16718 | # Check whether --enable-utmp or --disable-utmp was given. | ||
16719 | if test "${enable_utmp+set}" = set; then | ||
16720 | enableval="$enable_utmp" | ||
16721 | cat >>confdefs.h <<\_ACEOF | ||
16722 | #define DISABLE_UTMP 1 | ||
16723 | _ACEOF | ||
16724 | |||
16725 | |||
16726 | fi; | ||
16727 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
16728 | if test "${enable_utmpx+set}" = set; then | ||
16729 | enableval="$enable_utmpx" | ||
16730 | cat >>confdefs.h <<\_ACEOF | ||
16731 | #define DISABLE_UTMPX 1 | ||
16732 | _ACEOF | ||
16733 | |||
16734 | |||
16735 | fi; | ||
16736 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
16737 | if test "${enable_wtmp+set}" = set; then | ||
16738 | enableval="$enable_wtmp" | ||
16739 | cat >>confdefs.h <<\_ACEOF | ||
16740 | #define DISABLE_WTMP 1 | ||
16741 | _ACEOF | ||
16742 | |||
16743 | |||
16744 | fi; | ||
16745 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
16746 | if test "${enable_wtmpx+set}" = set; then | ||
16747 | enableval="$enable_wtmpx" | ||
16748 | cat >>confdefs.h <<\_ACEOF | ||
16749 | #define DISABLE_WTMPX 1 | ||
16750 | _ACEOF | ||
16751 | |||
16752 | |||
16753 | fi; | ||
16754 | # Check whether --enable-libutil or --disable-libutil was given. | ||
16755 | if test "${enable_libutil+set}" = set; then | ||
16756 | enableval="$enable_libutil" | ||
16757 | cat >>confdefs.h <<\_ACEOF | ||
16758 | #define DISABLE_LOGIN 1 | ||
16759 | _ACEOF | ||
16760 | |||
16761 | |||
16762 | fi; | ||
16763 | # Check whether --enable-pututline or --disable-pututline was given. | ||
16764 | if test "${enable_pututline+set}" = set; then | ||
16765 | enableval="$enable_pututline" | ||
16766 | cat >>confdefs.h <<\_ACEOF | ||
16767 | #define DISABLE_PUTUTLINE 1 | ||
16768 | _ACEOF | ||
16769 | |||
16770 | |||
16771 | fi; | ||
16772 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
16773 | if test "${enable_pututxline+set}" = set; then | ||
16774 | enableval="$enable_pututxline" | ||
16775 | cat >>confdefs.h <<\_ACEOF | ||
16776 | #define DISABLE_PUTUTXLINE 1 | ||
16777 | _ACEOF | ||
16778 | |||
16779 | |||
16780 | fi; | ||
16781 | |||
16782 | # Check whether --with-lastlog or --without-lastlog was given. | ||
16783 | if test "${with_lastlog+set}" = set; then | ||
16784 | withval="$with_lastlog" | ||
16785 | |||
16786 | if test "x$withval" = "xno" ; then | ||
16787 | cat >>confdefs.h <<\_ACEOF | ||
16788 | #define DISABLE_LASTLOG 1 | ||
16789 | _ACEOF | ||
16790 | |||
16791 | else | ||
16792 | conf_lastlog_location=$withval | ||
16793 | fi | ||
16794 | |||
16795 | |||
16796 | fi; | ||
16797 | |||
16798 | |||
16799 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
16800 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
16801 | cat >conftest.$ac_ext <<_ACEOF | ||
16802 | #line $LINENO "configure" | ||
16803 | #include "confdefs.h" | ||
16804 | |||
16805 | #include <sys/types.h> | ||
16806 | #include <utmp.h> | ||
16807 | #ifdef HAVE_LASTLOG_H | ||
16808 | # include <lastlog.h> | ||
16809 | #endif | ||
16810 | #ifdef HAVE_PATHS_H | ||
16811 | # include <paths.h> | ||
16812 | #endif | ||
16813 | #ifdef HAVE_LOGIN_H | ||
16814 | # include <login.h> | ||
16815 | #endif | ||
16816 | |||
16817 | #ifdef F77_DUMMY_MAIN | ||
16818 | # ifdef __cplusplus | ||
16819 | extern "C" | ||
16820 | # endif | ||
16821 | int F77_DUMMY_MAIN() { return 1; } | ||
16822 | #endif | ||
16823 | int | ||
16824 | main () | ||
16825 | { | ||
16826 | char *lastlog = LASTLOG_FILE; | ||
16827 | ; | ||
16828 | return 0; | ||
16829 | } | ||
16830 | _ACEOF | ||
16831 | rm -f conftest.$ac_objext | ||
16832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16833 | (eval $ac_compile) 2>&5 | ||
16834 | ac_status=$? | ||
16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16836 | (exit $ac_status); } && | ||
16837 | { ac_try='test -s conftest.$ac_objext' | ||
16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16839 | (eval $ac_try) 2>&5 | ||
16840 | ac_status=$? | ||
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16842 | (exit $ac_status); }; }; then | ||
16843 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16844 | echo "${ECHO_T}yes" >&6 | ||
16845 | else | ||
16846 | echo "$as_me: failed program was:" >&5 | ||
16847 | cat conftest.$ac_ext >&5 | ||
16848 | |||
16849 | echo "$as_me:$LINENO: result: no" >&5 | ||
16850 | echo "${ECHO_T}no" >&6 | ||
16851 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
16852 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
16853 | cat >conftest.$ac_ext <<_ACEOF | ||
16854 | #line $LINENO "configure" | ||
16855 | #include "confdefs.h" | ||
16856 | |||
16857 | #include <sys/types.h> | ||
16858 | #include <utmp.h> | ||
16859 | #ifdef HAVE_LASTLOG_H | ||
16860 | # include <lastlog.h> | ||
16861 | #endif | ||
16862 | #ifdef HAVE_PATHS_H | ||
16863 | # include <paths.h> | ||
16864 | #endif | ||
16865 | |||
16866 | #ifdef F77_DUMMY_MAIN | ||
16867 | # ifdef __cplusplus | ||
16868 | extern "C" | ||
16869 | # endif | ||
16870 | int F77_DUMMY_MAIN() { return 1; } | ||
16871 | #endif | ||
16872 | int | ||
16873 | main () | ||
16874 | { | ||
16875 | char *lastlog = _PATH_LASTLOG; | ||
16876 | ; | ||
16877 | return 0; | ||
16878 | } | ||
16879 | _ACEOF | ||
16880 | rm -f conftest.$ac_objext | ||
16881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16882 | (eval $ac_compile) 2>&5 | ||
16883 | ac_status=$? | ||
16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16885 | (exit $ac_status); } && | ||
16886 | { ac_try='test -s conftest.$ac_objext' | ||
16887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16888 | (eval $ac_try) 2>&5 | ||
16889 | ac_status=$? | ||
16890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16891 | (exit $ac_status); }; }; then | ||
16892 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16893 | echo "${ECHO_T}yes" >&6 | ||
16894 | else | ||
16895 | echo "$as_me: failed program was:" >&5 | ||
16896 | cat conftest.$ac_ext >&5 | ||
16897 | |||
16898 | echo "$as_me:$LINENO: result: no" >&5 | ||
16899 | echo "${ECHO_T}no" >&6 | ||
16900 | system_lastlog_path=no | ||
16901 | |||
16902 | fi | ||
16903 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16904 | |||
16905 | |||
16906 | fi | ||
16907 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16908 | |||
16909 | if test -z "$conf_lastlog_location"; then | ||
16910 | if test x"$system_lastlog_path" = x"no" ; then | ||
16911 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16912 | if (test -d "$f" || test -f "$f") ; then | ||
16913 | conf_lastlog_location=$f | ||
16914 | fi | ||
16915 | done | ||
16916 | if test -z "$conf_lastlog_location"; then | ||
16917 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
16918 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16919 | fi | ||
16920 | fi | ||
16921 | fi | ||
16922 | |||
16923 | if test -n "$conf_lastlog_location"; then | ||
16924 | cat >>confdefs.h <<_ACEOF | ||
16925 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16926 | _ACEOF | ||
16927 | |||
16928 | fi | ||
16929 | |||
16930 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
16931 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
16932 | cat >conftest.$ac_ext <<_ACEOF | ||
16933 | #line $LINENO "configure" | ||
16934 | #include "confdefs.h" | ||
16935 | |||
16936 | #include <sys/types.h> | ||
16937 | #include <utmp.h> | ||
16938 | #ifdef HAVE_PATHS_H | ||
16939 | # include <paths.h> | ||
16940 | #endif | ||
16941 | |||
16942 | #ifdef F77_DUMMY_MAIN | ||
16943 | # ifdef __cplusplus | ||
16944 | extern "C" | ||
16945 | # endif | ||
16946 | int F77_DUMMY_MAIN() { return 1; } | ||
16947 | #endif | ||
16948 | int | ||
16949 | main () | ||
16950 | { | ||
16951 | char *utmp = UTMP_FILE; | ||
16952 | ; | ||
16953 | return 0; | ||
16954 | } | ||
16955 | _ACEOF | ||
16956 | rm -f conftest.$ac_objext | ||
16957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16958 | (eval $ac_compile) 2>&5 | ||
16959 | ac_status=$? | ||
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16961 | (exit $ac_status); } && | ||
16962 | { ac_try='test -s conftest.$ac_objext' | ||
16963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16964 | (eval $ac_try) 2>&5 | ||
16965 | ac_status=$? | ||
16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16967 | (exit $ac_status); }; }; then | ||
16968 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16969 | echo "${ECHO_T}yes" >&6 | ||
16970 | else | ||
16971 | echo "$as_me: failed program was:" >&5 | ||
16972 | cat conftest.$ac_ext >&5 | ||
16973 | echo "$as_me:$LINENO: result: no" >&5 | ||
16974 | echo "${ECHO_T}no" >&6 | ||
16975 | system_utmp_path=no | ||
16976 | |||
16977 | fi | ||
16978 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
16979 | if test -z "$conf_utmp_location"; then | ||
16980 | if test x"$system_utmp_path" = x"no" ; then | ||
16981 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16982 | if test -f $f ; then | ||
16983 | conf_utmp_location=$f | ||
16984 | fi | ||
16985 | done | ||
16986 | if test -z "$conf_utmp_location"; then | ||
16987 | cat >>confdefs.h <<\_ACEOF | ||
16988 | #define DISABLE_UTMP 1 | ||
16989 | _ACEOF | ||
16990 | |||
16991 | fi | ||
16992 | fi | ||
16993 | fi | ||
16994 | if test -n "$conf_utmp_location"; then | ||
16995 | cat >>confdefs.h <<_ACEOF | ||
16996 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16997 | _ACEOF | ||
16998 | |||
16999 | fi | ||
17000 | |||
17001 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
17002 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
17003 | cat >conftest.$ac_ext <<_ACEOF | ||
17004 | #line $LINENO "configure" | ||
17005 | #include "confdefs.h" | ||
17006 | |||
17007 | #include <sys/types.h> | ||
17008 | #include <utmp.h> | ||
17009 | #ifdef HAVE_PATHS_H | ||
17010 | # include <paths.h> | ||
17011 | #endif | ||
17012 | |||
17013 | #ifdef F77_DUMMY_MAIN | ||
17014 | # ifdef __cplusplus | ||
17015 | extern "C" | ||
17016 | # endif | ||
17017 | int F77_DUMMY_MAIN() { return 1; } | ||
17018 | #endif | ||
17019 | int | ||
17020 | main () | ||
17021 | { | ||
17022 | char *wtmp = WTMP_FILE; | ||
17023 | ; | ||
17024 | return 0; | ||
17025 | } | ||
17026 | _ACEOF | ||
17027 | rm -f conftest.$ac_objext | ||
17028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17029 | (eval $ac_compile) 2>&5 | ||
17030 | ac_status=$? | ||
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17032 | (exit $ac_status); } && | ||
17033 | { ac_try='test -s conftest.$ac_objext' | ||
17034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17035 | (eval $ac_try) 2>&5 | ||
17036 | ac_status=$? | ||
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17038 | (exit $ac_status); }; }; then | ||
17039 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17040 | echo "${ECHO_T}yes" >&6 | ||
17041 | else | ||
17042 | echo "$as_me: failed program was:" >&5 | ||
17043 | cat conftest.$ac_ext >&5 | ||
17044 | echo "$as_me:$LINENO: result: no" >&5 | ||
17045 | echo "${ECHO_T}no" >&6 | ||
17046 | system_wtmp_path=no | ||
17047 | |||
17048 | fi | ||
17049 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17050 | if test -z "$conf_wtmp_location"; then | ||
17051 | if test x"$system_wtmp_path" = x"no" ; then | ||
17052 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
17053 | if test -f $f ; then | ||
17054 | conf_wtmp_location=$f | ||
17055 | fi | ||
17056 | done | ||
17057 | if test -z "$conf_wtmp_location"; then | ||
17058 | cat >>confdefs.h <<\_ACEOF | ||
17059 | #define DISABLE_WTMP 1 | ||
17060 | _ACEOF | ||
17061 | |||
17062 | fi | ||
17063 | fi | ||
17064 | fi | ||
17065 | if test -n "$conf_wtmp_location"; then | ||
17066 | cat >>confdefs.h <<_ACEOF | ||
17067 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
17068 | _ACEOF | ||
17069 | |||
17070 | fi | ||
17071 | |||
17072 | |||
17073 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
17074 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
17075 | cat >conftest.$ac_ext <<_ACEOF | ||
17076 | #line $LINENO "configure" | ||
17077 | #include "confdefs.h" | ||
17078 | |||
17079 | #include <sys/types.h> | ||
17080 | #include <utmp.h> | ||
17081 | #ifdef HAVE_UTMPX_H | ||
17082 | #include <utmpx.h> | ||
17083 | #endif | ||
17084 | #ifdef HAVE_PATHS_H | ||
17085 | # include <paths.h> | ||
17086 | #endif | ||
17087 | |||
17088 | #ifdef F77_DUMMY_MAIN | ||
17089 | # ifdef __cplusplus | ||
17090 | extern "C" | ||
17091 | # endif | ||
17092 | int F77_DUMMY_MAIN() { return 1; } | ||
17093 | #endif | ||
17094 | int | ||
17095 | main () | ||
17096 | { | ||
17097 | char *utmpx = UTMPX_FILE; | ||
17098 | ; | ||
17099 | return 0; | ||
17100 | } | ||
17101 | _ACEOF | ||
17102 | rm -f conftest.$ac_objext | ||
17103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17104 | (eval $ac_compile) 2>&5 | ||
17105 | ac_status=$? | ||
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17107 | (exit $ac_status); } && | ||
17108 | { ac_try='test -s conftest.$ac_objext' | ||
17109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17110 | (eval $ac_try) 2>&5 | ||
17111 | ac_status=$? | ||
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17113 | (exit $ac_status); }; }; then | ||
17114 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17115 | echo "${ECHO_T}yes" >&6 | ||
17116 | else | ||
17117 | echo "$as_me: failed program was:" >&5 | ||
17118 | cat conftest.$ac_ext >&5 | ||
17119 | echo "$as_me:$LINENO: result: no" >&5 | ||
17120 | echo "${ECHO_T}no" >&6 | ||
17121 | system_utmpx_path=no | ||
17122 | |||
17123 | fi | ||
17124 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17125 | if test -z "$conf_utmpx_location"; then | ||
17126 | if test x"$system_utmpx_path" = x"no" ; then | ||
17127 | cat >>confdefs.h <<\_ACEOF | ||
17128 | #define DISABLE_UTMPX 1 | ||
17129 | _ACEOF | ||
17130 | |||
17131 | fi | ||
17132 | else | ||
17133 | cat >>confdefs.h <<_ACEOF | ||
17134 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
17135 | _ACEOF | ||
17136 | |||
17137 | fi | ||
17138 | |||
17139 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
17140 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
17141 | cat >conftest.$ac_ext <<_ACEOF | ||
17142 | #line $LINENO "configure" | ||
17143 | #include "confdefs.h" | ||
17144 | |||
17145 | #include <sys/types.h> | ||
17146 | #include <utmp.h> | ||
17147 | #ifdef HAVE_UTMPX_H | ||
17148 | #include <utmpx.h> | ||
17149 | #endif | ||
17150 | #ifdef HAVE_PATHS_H | ||
17151 | # include <paths.h> | ||
17152 | #endif | ||
17153 | |||
17154 | #ifdef F77_DUMMY_MAIN | ||
17155 | # ifdef __cplusplus | ||
17156 | extern "C" | ||
17157 | # endif | ||
17158 | int F77_DUMMY_MAIN() { return 1; } | ||
17159 | #endif | ||
17160 | int | ||
17161 | main () | ||
17162 | { | ||
17163 | char *wtmpx = WTMPX_FILE; | ||
17164 | ; | ||
17165 | return 0; | ||
17166 | } | ||
17167 | _ACEOF | ||
17168 | rm -f conftest.$ac_objext | ||
17169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17170 | (eval $ac_compile) 2>&5 | ||
17171 | ac_status=$? | ||
17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17173 | (exit $ac_status); } && | ||
17174 | { ac_try='test -s conftest.$ac_objext' | ||
17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17176 | (eval $ac_try) 2>&5 | ||
17177 | ac_status=$? | ||
17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17179 | (exit $ac_status); }; }; then | ||
17180 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17181 | echo "${ECHO_T}yes" >&6 | ||
17182 | else | ||
17183 | echo "$as_me: failed program was:" >&5 | ||
17184 | cat conftest.$ac_ext >&5 | ||
17185 | echo "$as_me:$LINENO: result: no" >&5 | ||
17186 | echo "${ECHO_T}no" >&6 | ||
17187 | system_wtmpx_path=no | ||
17188 | |||
17189 | fi | ||
17190 | rm -f conftest.$ac_objext conftest.$ac_ext | ||
17191 | if test -z "$conf_wtmpx_location"; then | ||
17192 | if test x"$system_wtmpx_path" = x"no" ; then | ||
17193 | cat >>confdefs.h <<\_ACEOF | ||
17194 | #define DISABLE_WTMPX 1 | ||
17195 | _ACEOF | ||
17196 | |||
17197 | fi | ||
17198 | else | ||
17199 | cat >>confdefs.h <<_ACEOF | ||
17200 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
17201 | _ACEOF | ||
17202 | |||
17203 | fi | ||
17204 | |||
17205 | |||
17206 | if test ! -z "$blibpath" ; then | ||
17207 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
17208 | { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5 | ||
17209 | echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;} | ||
17210 | fi | ||
17211 | |||
17212 | if test "$PAM_MSG" = yes ; then | ||
17213 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
17214 | fi | ||
17215 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
17216 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
17217 | fi | ||
17218 | |||
17219 | |||
17220 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
17221 | |||
17222 | cat >confcache <<\_ACEOF | ||
17223 | # This file is a shell script that caches the results of configure | ||
17224 | # tests run on this system so they can be shared between configure | ||
17225 | # scripts and configure runs, see configure's option --config-cache. | ||
17226 | # It is not useful on other systems. If it contains results you don't | ||
17227 | # want to keep, you may remove or edit it. | ||
17228 | # | ||
17229 | # config.status only pays attention to the cache file if you give it | ||
17230 | # the --recheck option to rerun configure. | ||
17231 | # | ||
17232 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | ||
17233 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
17234 | # following values. | ||
17235 | |||
17236 | _ACEOF | ||
17237 | |||
17238 | # The following way of writing the cache mishandles newlines in values, | ||
17239 | # but we know of no workaround that is simple, portable, and efficient. | ||
17240 | # So, don't put newlines in cache variables' values. | ||
17241 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
17242 | # and sets the high bit in the cache file unless we assign to the vars. | ||
17243 | { | ||
17244 | (set) 2>&1 | | ||
17245 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
17246 | *ac_space=\ *) | ||
17247 | # `set' does not quote correctly, so add quotes (double-quote | ||
17248 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
17249 | sed -n \ | ||
17250 | "s/'/'\\\\''/g; | ||
17251 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
17252 | ;; | ||
17253 | *) | ||
17254 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
17255 | sed -n \ | ||
17256 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
17257 | ;; | ||
17258 | esac; | ||
17259 | } | | ||
17260 | sed ' | ||
17261 | t clear | ||
17262 | : clear | ||
17263 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
17264 | t end | ||
17265 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
17266 | : end' >>confcache | ||
17267 | if cmp -s $cache_file confcache; then :; else | ||
17268 | if test -w $cache_file; then | ||
17269 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
17270 | cat confcache >$cache_file | ||
17271 | else | ||
17272 | echo "not updating unwritable cache $cache_file" | ||
17273 | fi | ||
17274 | fi | ||
17275 | rm -f confcache | ||
17276 | |||
17277 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
17278 | # Let make expand exec_prefix. | ||
17279 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
17280 | |||
17281 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
17282 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
17283 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
17284 | # (actually we leave an empty line to preserve line numbers). | ||
17285 | if test "x$srcdir" = x.; then | ||
17286 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
17287 | s/:*\$(srcdir):*/:/; | ||
17288 | s/:*\${srcdir}:*/:/; | ||
17289 | s/:*@srcdir@:*/:/; | ||
17290 | s/^\([^=]*=[ ]*\):*/\1/; | ||
17291 | s/:*$//; | ||
17292 | s/^[^=]*=[ ]*$//; | ||
17293 | }' | ||
17294 | fi | ||
17295 | |||
17296 | DEFS=-DHAVE_CONFIG_H | ||
17297 | |||
17298 | |||
17299 | : ${CONFIG_STATUS=./config.status} | ||
17300 | ac_clean_files_save=$ac_clean_files | ||
17301 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
17302 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
17303 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
17304 | cat >$CONFIG_STATUS <<_ACEOF | ||
17305 | #! $SHELL | ||
17306 | # Generated by $as_me. | ||
17307 | # Run this file to recreate the current configuration. | ||
17308 | # Compiler output produced by configure, useful for debugging | ||
17309 | # configure, is in config.log if it exists. | ||
17310 | |||
17311 | debug=false | ||
17312 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
17313 | _ACEOF | ||
17314 | |||
17315 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17316 | |||
17317 | ## --------------------- ## | ||
17318 | ## M4sh Initialization. ## | ||
17319 | ## --------------------- ## | ||
17320 | |||
17321 | # Be Bourne compatible | ||
17322 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17323 | emulate sh | ||
17324 | NULLCMD=: | ||
17325 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
17326 | set -o posix | ||
17327 | fi | ||
17328 | |||
17329 | # NLS nuisances. | ||
17330 | # Support unset when possible. | ||
17331 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
17332 | as_unset=unset | ||
17333 | else | ||
17334 | as_unset=false | ||
17335 | fi | ||
17336 | |||
17337 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | ||
17338 | { $as_unset LANG || test "${LANG+set}" != set; } || | ||
17339 | { LANG=C; export LANG; } | ||
17340 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | ||
17341 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | ||
17342 | { LC_ALL=C; export LC_ALL; } | ||
17343 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | ||
17344 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | ||
17345 | { LC_TIME=C; export LC_TIME; } | ||
17346 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | ||
17347 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | ||
17348 | { LC_CTYPE=C; export LC_CTYPE; } | ||
17349 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | ||
17350 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | ||
17351 | { LANGUAGE=C; export LANGUAGE; } | ||
17352 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | ||
17353 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | ||
17354 | { LC_COLLATE=C; export LC_COLLATE; } | ||
17355 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | ||
17356 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | ||
17357 | { LC_NUMERIC=C; export LC_NUMERIC; } | ||
17358 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | ||
17359 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | ||
17360 | { LC_MESSAGES=C; export LC_MESSAGES; } | ||
17361 | |||
17362 | |||
17363 | # Name of the executable. | ||
17364 | as_me=`(basename "$0") 2>/dev/null || | ||
17365 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
17366 | X"$0" : 'X\(//\)$' \| \ | ||
17367 | X"$0" : 'X\(/\)$' \| \ | ||
17368 | . : '\(.\)' 2>/dev/null || | ||
17369 | echo X/"$0" | | ||
17370 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
17371 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
17372 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
17373 | s/.*/./; q'` | ||
17374 | |||
17375 | # PATH needs CR, and LINENO needs CR and PATH. | ||
17376 | # Avoid depending upon Character Ranges. | ||
17377 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
17378 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
17379 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
17380 | as_cr_digits='0123456789' | ||
17381 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
17382 | |||
17383 | # The user is always right. | ||
17384 | if test "${PATH_SEPARATOR+set}" != set; then | ||
17385 | echo "#! /bin/sh" >conftest.sh | ||
17386 | echo "exit 0" >>conftest.sh | ||
17387 | chmod +x conftest.sh | ||
17388 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | ||
17389 | PATH_SEPARATOR=';' | ||
17390 | else | ||
17391 | PATH_SEPARATOR=: | ||
17392 | fi | ||
17393 | rm -f conftest.sh | ||
17394 | fi | ||
17395 | |||
17396 | |||
17397 | as_lineno_1=$LINENO | ||
17398 | as_lineno_2=$LINENO | ||
17399 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
17400 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
17401 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
17402 | # Find who we are. Look in the path if we contain no path at all | ||
17403 | # relative or not. | ||
17404 | case $0 in | ||
17405 | *[\\/]* ) as_myself=$0 ;; | ||
17406 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17407 | for as_dir in $PATH | ||
17408 | do | ||
17409 | IFS=$as_save_IFS | ||
17410 | test -z "$as_dir" && as_dir=. | ||
17411 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
17412 | done | ||
17413 | |||
17414 | ;; | ||
17415 | esac | ||
17416 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
17417 | # in which case we are not to be found in the path. | ||
17418 | if test "x$as_myself" = x; then | ||
17419 | as_myself=$0 | ||
17420 | fi | ||
17421 | if test ! -f "$as_myself"; then | ||
17422 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
17423 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
17424 | { (exit 1); exit 1; }; } | ||
17425 | fi | ||
17426 | case $CONFIG_SHELL in | ||
17427 | '') | ||
17428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17429 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
17430 | do | ||
17431 | IFS=$as_save_IFS | ||
17432 | test -z "$as_dir" && as_dir=. | ||
17433 | for as_base in sh bash ksh sh5; do | ||
17434 | case $as_dir in | ||
17435 | /*) | ||
17436 | if ("$as_dir/$as_base" -c ' | ||
17437 | as_lineno_1=$LINENO | ||
17438 | as_lineno_2=$LINENO | ||
17439 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
17440 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
17441 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
17442 | CONFIG_SHELL=$as_dir/$as_base | ||
17443 | export CONFIG_SHELL | ||
17444 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
17445 | fi;; | ||
17446 | esac | ||
17447 | done | ||
17448 | done | ||
17449 | ;; | ||
17450 | esac | ||
17451 | |||
17452 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
17453 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
17454 | # line-number line before each line; the second 'sed' does the real | ||
17455 | # work. The second script uses 'N' to pair each line-number line | ||
17456 | # with the numbered line, and appends trailing '-' during | ||
17457 | # substitution so that $LINENO is not a special case at line end. | ||
17458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
17459 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
17460 | sed '=' <$as_myself | | ||
17461 | sed ' | ||
17462 | N | ||
17463 | s,$,-, | ||
17464 | : loop | ||
17465 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
17466 | t loop | ||
17467 | s,-$,, | ||
17468 | s,^['$as_cr_digits']*\n,, | ||
17469 | ' >$as_me.lineno && | ||
17470 | chmod +x $as_me.lineno || | ||
17471 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
17472 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
17473 | { (exit 1); exit 1; }; } | ||
17474 | |||
17475 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
17476 | # (the dirname of $[0] is not the place where we might find the | ||
17477 | # original and so on. Autoconf is especially sensible to this). | ||
17478 | . ./$as_me.lineno | ||
17479 | # Exit status is that of the last command. | ||
17480 | exit | ||
17481 | } | ||
17482 | |||
17483 | |||
17484 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
17485 | *c*,-n*) ECHO_N= ECHO_C=' | ||
17486 | ' ECHO_T=' ' ;; | ||
17487 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
17488 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
17489 | esac | ||
17490 | |||
17491 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
17492 | as_expr=expr | ||
17493 | else | ||
17494 | as_expr=false | ||
17495 | fi | ||
17496 | |||
17497 | rm -f conf$$ conf$$.exe conf$$.file | ||
17498 | echo >conf$$.file | ||
17499 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17500 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
17501 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
17502 | if test -f conf$$.exe; then | ||
17503 | # Don't use ln at all; we don't have any links | ||
17504 | as_ln_s='cp -p' | ||
17505 | else | ||
17506 | as_ln_s='ln -s' | ||
17507 | fi | ||
17508 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17509 | as_ln_s=ln | ||
17510 | else | ||
17511 | as_ln_s='cp -p' | ||
17512 | fi | ||
17513 | rm -f conf$$ conf$$.exe conf$$.file | ||
17514 | |||
17515 | as_executable_p="test -f" | ||
17516 | |||
17517 | # Sed expression to map a string onto a valid CPP name. | ||
17518 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
17519 | |||
17520 | # Sed expression to map a string onto a valid variable name. | ||
17521 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
17522 | |||
17523 | |||
17524 | # IFS | ||
17525 | # We need space, tab and new line, in precisely that order. | ||
17526 | as_nl=' | ||
17527 | ' | ||
17528 | IFS=" $as_nl" | ||
17529 | |||
17530 | # CDPATH. | ||
17531 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | ||
17532 | |||
17533 | exec 6>&1 | ||
17534 | |||
17535 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
17536 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17537 | # values after options handling. Logging --version etc. is OK. | ||
17538 | exec 5>>config.log | ||
17539 | { | ||
17540 | echo | ||
17541 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
17542 | ## Running $as_me. ## | ||
17543 | _ASBOX | ||
17544 | } >&5 | ||
17545 | cat >&5 <<_CSEOF | ||
17546 | |||
17547 | This file was extended by $as_me, which was | ||
17548 | generated by GNU Autoconf 2.53. Invocation command line was | ||
17549 | |||
17550 | CONFIG_FILES = $CONFIG_FILES | ||
17551 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17552 | CONFIG_LINKS = $CONFIG_LINKS | ||
17553 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17554 | $ $0 $@ | ||
17555 | |||
17556 | _CSEOF | ||
17557 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
17558 | echo >&5 | ||
17559 | _ACEOF | ||
17560 | |||
17561 | # Files that config.status was made for. | ||
17562 | if test -n "$ac_config_files"; then | ||
17563 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
17564 | fi | ||
17565 | |||
17566 | if test -n "$ac_config_headers"; then | ||
17567 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
17568 | fi | ||
17569 | |||
17570 | if test -n "$ac_config_links"; then | ||
17571 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
17572 | fi | ||
17573 | |||
17574 | if test -n "$ac_config_commands"; then | ||
17575 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
17576 | fi | ||
17577 | |||
17578 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17579 | |||
17580 | ac_cs_usage="\ | ||
17581 | \`$as_me' instantiates files from templates according to the | ||
17582 | current configuration. | ||
17583 | |||
17584 | Usage: $0 [OPTIONS] [FILE]... | ||
17585 | |||
17586 | -h, --help print this help, then exit | ||
17587 | -V, --version print version number, then exit | ||
17588 | -d, --debug don't remove temporary files | ||
17589 | --recheck update $as_me by reconfiguring in the same conditions | ||
17590 | --file=FILE[:TEMPLATE] | ||
17591 | instantiate the configuration file FILE | ||
17592 | --header=FILE[:TEMPLATE] | ||
17593 | instantiate the configuration header FILE | ||
17594 | |||
17595 | Configuration files: | ||
17596 | $config_files | ||
17597 | |||
17598 | Configuration headers: | ||
17599 | $config_headers | ||
17600 | |||
17601 | Report bugs to <bug-autoconf@gnu.org>." | ||
17602 | _ACEOF | ||
17603 | |||
17604 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17605 | ac_cs_version="\\ | ||
17606 | config.status | ||
17607 | configured by $0, generated by GNU Autoconf 2.53, | ||
17608 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
17609 | |||
17610 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
17611 | Free Software Foundation, Inc. | ||
17612 | This config.status script is free software; the Free Software Foundation | ||
17613 | gives unlimited permission to copy, distribute and modify it." | ||
17614 | srcdir=$srcdir | ||
17615 | INSTALL="$INSTALL" | ||
17616 | _ACEOF | ||
17617 | |||
17618 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17619 | # If no file are specified by the user, then we need to provide default | ||
17620 | # value. By we need to know if files were specified by the user. | ||
17621 | ac_need_defaults=: | ||
17622 | while test $# != 0 | ||
17623 | do | ||
17624 | case $1 in | ||
17625 | --*=*) | ||
17626 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
17627 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
17628 | shift | ||
17629 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | ||
17630 | shift | ||
17631 | ;; | ||
17632 | -*);; | ||
17633 | *) # This is not an option, so the user has probably given explicit | ||
17634 | # arguments. | ||
17635 | ac_need_defaults=false;; | ||
17636 | esac | ||
17637 | |||
17638 | case $1 in | ||
17639 | # Handling of the options. | ||
17640 | _ACEOF | ||
17641 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17642 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17643 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | ||
17644 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | ||
17645 | _ACEOF | ||
17646 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17647 | --version | --vers* | -V ) | ||
17648 | echo "$ac_cs_version"; exit 0 ;; | ||
17649 | --he | --h) | ||
17650 | # Conflict between --help and --header | ||
17651 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
17652 | Try \`$0 --help' for more information." >&5 | ||
17653 | echo "$as_me: error: ambiguous option: $1 | ||
17654 | Try \`$0 --help' for more information." >&2;} | ||
17655 | { (exit 1); exit 1; }; };; | ||
17656 | --help | --hel | -h ) | ||
17657 | echo "$ac_cs_usage"; exit 0 ;; | ||
17658 | --debug | --d* | -d ) | ||
17659 | debug=: ;; | ||
17660 | --file | --fil | --fi | --f ) | ||
17661 | shift | ||
17662 | CONFIG_FILES="$CONFIG_FILES $1" | ||
17663 | ac_need_defaults=false;; | ||
17664 | --header | --heade | --head | --hea ) | ||
17665 | shift | ||
17666 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | ||
17667 | ac_need_defaults=false;; | ||
17668 | |||
17669 | # This is an error. | ||
17670 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
17671 | Try \`$0 --help' for more information." >&5 | ||
17672 | echo "$as_me: error: unrecognized option: $1 | ||
17673 | Try \`$0 --help' for more information." >&2;} | ||
17674 | { (exit 1); exit 1; }; } ;; | ||
17675 | |||
17676 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
17677 | |||
17678 | esac | ||
17679 | shift | ||
17680 | done | ||
17681 | |||
17682 | _ACEOF | ||
17683 | |||
17684 | |||
17685 | |||
17686 | |||
17687 | |||
17688 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17689 | for ac_config_target in $ac_config_targets | ||
17690 | do | ||
17691 | case "$ac_config_target" in | ||
17692 | # Handling of arguments. | ||
17693 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17694 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17695 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
17696 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
17697 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17698 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
17699 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
17700 | { (exit 1); exit 1; }; };; | ||
17701 | esac | ||
17702 | done | ||
17703 | |||
17704 | # If the user did not use the arguments to specify the items to instantiate, | ||
17705 | # then the envvar interface is used. Set only those that are not. | ||
17706 | # We use the long form for the default assignment because of an extremely | ||
17707 | # bizarre bug on SunOS 4.1.3. | ||
17708 | if $ac_need_defaults; then | ||
17709 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17710 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17711 | fi | ||
17712 | |||
17713 | # Create a temporary directory, and hook for its removal unless debugging. | ||
17714 | $debug || | ||
17715 | { | ||
17716 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
17717 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
17718 | } | ||
17719 | |||
17720 | # Create a (secure) tmp directory for tmp files. | ||
17721 | : ${TMPDIR=/tmp} | ||
17722 | { | ||
17723 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | ||
17724 | test -n "$tmp" && test -d "$tmp" | ||
17725 | } || | ||
17726 | { | ||
17727 | tmp=$TMPDIR/cs$$-$RANDOM | ||
17728 | (umask 077 && mkdir $tmp) | ||
17729 | } || | ||
17730 | { | ||
17731 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | ||
17732 | { (exit 1); exit 1; } | ||
17733 | } | ||
17734 | |||
17735 | _ACEOF | ||
17736 | |||
17737 | cat >>$CONFIG_STATUS <<_ACEOF | ||
17738 | |||
17739 | # | ||
17740 | # CONFIG_FILES section. | ||
17741 | # | ||
17742 | |||
17743 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
17744 | # This happens for instance when ./config.status config.h | ||
17745 | if test -n "\$CONFIG_FILES"; then | ||
17746 | # Protect against being on the right side of a sed subst in config.status. | ||
17747 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
17748 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
17749 | s,@SHELL@,$SHELL,;t t | ||
17750 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
17751 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
17752 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
17753 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
17754 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
17755 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
17756 | s,@exec_prefix@,$exec_prefix,;t t | ||
17757 | s,@prefix@,$prefix,;t t | ||
17758 | s,@program_transform_name@,$program_transform_name,;t t | ||
17759 | s,@bindir@,$bindir,;t t | ||
17760 | s,@sbindir@,$sbindir,;t t | ||
17761 | s,@libexecdir@,$libexecdir,;t t | ||
17762 | s,@datadir@,$datadir,;t t | ||
17763 | s,@sysconfdir@,$sysconfdir,;t t | ||
17764 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
17765 | s,@localstatedir@,$localstatedir,;t t | ||
17766 | s,@libdir@,$libdir,;t t | ||
17767 | s,@includedir@,$includedir,;t t | ||
17768 | s,@oldincludedir@,$oldincludedir,;t t | ||
17769 | s,@infodir@,$infodir,;t t | ||
17770 | s,@mandir@,$mandir,;t t | ||
17771 | s,@build_alias@,$build_alias,;t t | ||
17772 | s,@host_alias@,$host_alias,;t t | ||
17773 | s,@target_alias@,$target_alias,;t t | ||
17774 | s,@DEFS@,$DEFS,;t t | ||
17775 | s,@ECHO_C@,$ECHO_C,;t t | ||
17776 | s,@ECHO_N@,$ECHO_N,;t t | ||
17777 | s,@ECHO_T@,$ECHO_T,;t t | ||
17778 | s,@LIBS@,$LIBS,;t t | ||
17779 | s,@CC@,$CC,;t t | ||
17780 | s,@CFLAGS@,$CFLAGS,;t t | ||
17781 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
17782 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
17783 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
17784 | s,@EXEEXT@,$EXEEXT,;t t | ||
17785 | s,@OBJEXT@,$OBJEXT,;t t | ||
17786 | s,@build@,$build,;t t | ||
17787 | s,@build_cpu@,$build_cpu,;t t | ||
17788 | s,@build_vendor@,$build_vendor,;t t | ||
17789 | s,@build_os@,$build_os,;t t | ||
17790 | s,@host@,$host,;t t | ||
17791 | s,@host_cpu@,$host_cpu,;t t | ||
17792 | s,@host_vendor@,$host_vendor,;t t | ||
17793 | s,@host_os@,$host_os,;t t | ||
17794 | s,@CPP@,$CPP,;t t | ||
17795 | s,@RANLIB@,$RANLIB,;t t | ||
17796 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
17797 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
17798 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
17799 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
17800 | s,@AR@,$AR,;t t | ||
17801 | s,@PERL@,$PERL,;t t | ||
17802 | s,@SED@,$SED,;t t | ||
17803 | s,@ENT@,$ENT,;t t | ||
17804 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
17805 | s,@SH@,$SH,;t t | ||
17806 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
17807 | s,@LD@,$LD,;t t | ||
17808 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
17809 | s,@LIBPAM@,$LIBPAM,;t t | ||
17810 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
17811 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
17812 | s,@PROG_LS@,$PROG_LS,;t t | ||
17813 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
17814 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
17815 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
17816 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
17817 | s,@PROG_PS@,$PROG_PS,;t t | ||
17818 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
17819 | s,@PROG_W@,$PROG_W,;t t | ||
17820 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
17821 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
17822 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
17823 | s,@PROG_DF@,$PROG_DF,;t t | ||
17824 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
17825 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
17826 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
17827 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
17828 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
17829 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
17830 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
17831 | s,@xauth_path@,$xauth_path,;t t | ||
17832 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
17833 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
17834 | s,@NROFF@,$NROFF,;t t | ||
17835 | s,@MANTYPE@,$MANTYPE,;t t | ||
17836 | s,@mansubdir@,$mansubdir,;t t | ||
17837 | s,@user_path@,$user_path,;t t | ||
17838 | s,@piddir@,$piddir,;t t | ||
17839 | CEOF | ||
17840 | |||
17841 | _ACEOF | ||
17842 | |||
17843 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17844 | # Split the substitutions into bite-sized pieces for seds with | ||
17845 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
17846 | ac_max_sed_lines=48 | ||
17847 | ac_sed_frag=1 # Number of current file. | ||
17848 | ac_beg=1 # First line for current file. | ||
17849 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
17850 | ac_more_lines=: | ||
17851 | ac_sed_cmds= | ||
17852 | while $ac_more_lines; do | ||
17853 | if test $ac_beg -gt 1; then | ||
17854 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17855 | else | ||
17856 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
17857 | fi | ||
17858 | if test ! -s $tmp/subs.frag; then | ||
17859 | ac_more_lines=false | ||
17860 | else | ||
17861 | # The purpose of the label and of the branching condition is to | ||
17862 | # speed up the sed processing (if there are no `@' at all, there | ||
17863 | # is no need to browse any of the substitutions). | ||
17864 | # These are the two extra sed commands mentioned above. | ||
17865 | (echo ':t | ||
17866 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
17867 | if test -z "$ac_sed_cmds"; then | ||
17868 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17869 | else | ||
17870 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
17871 | fi | ||
17872 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
17873 | ac_beg=$ac_end | ||
17874 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
17875 | fi | ||
17876 | done | ||
17877 | if test -z "$ac_sed_cmds"; then | ||
17878 | ac_sed_cmds=cat | ||
17879 | fi | ||
17880 | fi # test -n "$CONFIG_FILES" | ||
17881 | |||
17882 | _ACEOF | ||
17883 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
17884 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
17885 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
17886 | case $ac_file in | ||
17887 | - | *:- | *:-:* ) # input from stdin | ||
17888 | cat >$tmp/stdin | ||
17889 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17890 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17891 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
17892 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
17893 | * ) ac_file_in=$ac_file.in ;; | ||
17894 | esac | ||
17895 | |||
17896 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
17897 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
17898 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17899 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
17900 | X"$ac_file" : 'X\(//\)$' \| \ | ||
17901 | X"$ac_file" : 'X\(/\)' \| \ | ||
17902 | . : '\(.\)' 2>/dev/null || | ||
17903 | echo X"$ac_file" | | ||
17904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
17905 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
17906 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
17907 | /^X\(\/\).*/{ s//\1/; q; } | ||
17908 | s/.*/./; q'` | ||
17909 | { case "$ac_dir" in | ||
17910 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
17911 | *) as_incr_dir=.;; | ||
17912 | esac | ||
17913 | as_dummy="$ac_dir" | ||
17914 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
17915 | case $as_mkdir_dir in | ||
17916 | # Skip DOS drivespec | ||
17917 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
17918 | *) | ||
17919 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
17920 | test -d "$as_incr_dir" || | ||
17921 | mkdir "$as_incr_dir" || | ||
17922 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
17923 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
17924 | { (exit 1); exit 1; }; } | ||
17925 | ;; | ||
17926 | esac | ||
17927 | done; } | ||
17928 | |||
17929 | ac_builddir=. | ||
17930 | |||
17931 | if test "$ac_dir" != .; then | ||
17932 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
17933 | # A "../" for each directory in $ac_dir_suffix. | ||
17934 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
17935 | else | ||
17936 | ac_dir_suffix= ac_top_builddir= | ||
17937 | fi | ||
17938 | |||
17939 | case $srcdir in | ||
17940 | .) # No --srcdir option. We are building in place. | ||
17941 | ac_srcdir=. | ||
17942 | if test -z "$ac_top_builddir"; then | ||
17943 | ac_top_srcdir=. | ||
17944 | else | ||
17945 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
17946 | fi ;; | ||
17947 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
17948 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
17949 | ac_top_srcdir=$srcdir ;; | ||
17950 | *) # Relative path. | ||
17951 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
17952 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
17953 | esac | ||
17954 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
17955 | # absolute. | ||
17956 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
17957 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | ||
17958 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
17959 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
17960 | |||
17961 | |||
17962 | case $INSTALL in | ||
17963 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
17964 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
17965 | esac | ||
17966 | |||
17967 | if test x"$ac_file" != x-; then | ||
17968 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
17969 | echo "$as_me: creating $ac_file" >&6;} | ||
17970 | rm -f "$ac_file" | ||
17971 | fi | ||
17972 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
17973 | # use $as_me), people would be surprised to read: | ||
17974 | # /* config.h. Generated by config.status. */ | ||
17975 | if test x"$ac_file" = x-; then | ||
17976 | configure_input= | ||
17977 | else | ||
17978 | configure_input="$ac_file. " | ||
17979 | fi | ||
17980 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
17981 | sed 's,.*/,,'` by configure." | ||
17982 | |||
17983 | # First look for the input files in the build tree, otherwise in the | ||
17984 | # src tree. | ||
17985 | ac_file_inputs=`IFS=: | ||
17986 | for f in $ac_file_in; do | ||
17987 | case $f in | ||
17988 | -) echo $tmp/stdin ;; | ||
17989 | [\\/$]*) | ||
17990 | # Absolute (can't be DOS-style, as IFS=:) | ||
17991 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
17992 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
17993 | { (exit 1); exit 1; }; } | ||
17994 | echo $f;; | ||
17995 | *) # Relative | ||
17996 | if test -f "$f"; then | ||
17997 | # Build tree | ||
17998 | echo $f | ||
17999 | elif test -f "$srcdir/$f"; then | ||
18000 | # Source tree | ||
18001 | echo $srcdir/$f | ||
18002 | else | ||
18003 | # /dev/null tree | ||
18004 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18005 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18006 | { (exit 1); exit 1; }; } | ||
18007 | fi;; | ||
18008 | esac | ||
18009 | done` || { (exit 1); exit 1; } | ||
18010 | _ACEOF | ||
18011 | cat >>$CONFIG_STATUS <<_ACEOF | ||
18012 | sed "$ac_vpsub | ||
18013 | $extrasub | ||
18014 | _ACEOF | ||
18015 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18016 | :t | ||
18017 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
18018 | s,@configure_input@,$configure_input,;t t | ||
18019 | s,@srcdir@,$ac_srcdir,;t t | ||
18020 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
18021 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
18022 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
18023 | s,@builddir@,$ac_builddir,;t t | ||
18024 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
18025 | s,@top_builddir@,$ac_top_builddir,;t t | ||
18026 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
18027 | s,@INSTALL@,$ac_INSTALL,;t t | ||
18028 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
18029 | rm -f $tmp/stdin | ||
18030 | if test x"$ac_file" != x-; then | ||
18031 | mv $tmp/out $ac_file | ||
18032 | else | ||
18033 | cat $tmp/out | ||
18034 | rm -f $tmp/out | ||
18035 | fi | ||
18036 | |||
18037 | done | ||
18038 | _ACEOF | ||
18039 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18040 | |||
18041 | # | ||
18042 | # CONFIG_HEADER section. | ||
18043 | # | ||
18044 | |||
18045 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
18046 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
18047 | # | ||
18048 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
18049 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
18050 | ac_dB='[ ].*$,\1#\2' | ||
18051 | ac_dC=' ' | ||
18052 | ac_dD=',;t' | ||
18053 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
18054 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
18055 | ac_uB='$,\1#\2define\3' | ||
18056 | ac_uC=' ' | ||
18057 | ac_uD=',;t' | ||
18058 | |||
18059 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
18060 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
18061 | case $ac_file in | ||
18062 | - | *:- | *:-:* ) # input from stdin | ||
18063 | cat >$tmp/stdin | ||
18064 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18065 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18066 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
18067 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
18068 | * ) ac_file_in=$ac_file.in ;; | ||
18069 | esac | ||
18070 | |||
18071 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
18072 | echo "$as_me: creating $ac_file" >&6;} | ||
18073 | |||
18074 | # First look for the input files in the build tree, otherwise in the | ||
18075 | # src tree. | ||
18076 | ac_file_inputs=`IFS=: | ||
18077 | for f in $ac_file_in; do | ||
18078 | case $f in | ||
18079 | -) echo $tmp/stdin ;; | ||
18080 | [\\/$]*) | ||
18081 | # Absolute (can't be DOS-style, as IFS=:) | ||
18082 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18083 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18084 | { (exit 1); exit 1; }; } | ||
18085 | echo $f;; | ||
18086 | *) # Relative | ||
18087 | if test -f "$f"; then | ||
18088 | # Build tree | ||
18089 | echo $f | ||
18090 | elif test -f "$srcdir/$f"; then | ||
18091 | # Source tree | ||
18092 | echo $srcdir/$f | ||
18093 | else | ||
18094 | # /dev/null tree | ||
18095 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
18096 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
18097 | { (exit 1); exit 1; }; } | ||
18098 | fi;; | ||
18099 | esac | ||
18100 | done` || { (exit 1); exit 1; } | ||
18101 | # Remove the trailing spaces. | ||
18102 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
18103 | |||
18104 | _ACEOF | ||
18105 | |||
18106 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
18107 | # `conftest.undefs', that substitutes the proper values into | ||
18108 | # config.h.in to produce config.h. The first handles `#define' | ||
18109 | # templates, and the second `#undef' templates. | ||
18110 | # And first: Protect against being on the right side of a sed subst in | ||
18111 | # config.status. Protect against being in an unquoted here document | ||
18112 | # in config.status. | ||
18113 | rm -f conftest.defines conftest.undefs | ||
18114 | # Using a here document instead of a string reduces the quoting nightmare. | ||
18115 | # Putting comments in sed scripts is not portable. | ||
18116 | # | ||
18117 | # `end' is used to avoid that the second main sed command (meant for | ||
18118 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
18119 | # See the Autoconf documentation for `clear'. | ||
18120 | cat >confdef2sed.sed <<\_ACEOF | ||
18121 | s/[\\&,]/\\&/g | ||
18122 | s,[\\$`],\\&,g | ||
18123 | t clear | ||
18124 | : clear | ||
18125 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
18126 | t end | ||
18127 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
18128 | : end | ||
18129 | _ACEOF | ||
18130 | # If some macros were called several times there might be several times | ||
18131 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
18132 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
18133 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
18134 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
18135 | rm -f confdef2sed.sed | ||
18136 | |||
18137 | # This sed command replaces #undef with comments. This is necessary, for | ||
18138 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
18139 | # on some systems where configure will not decide to define it. | ||
18140 | cat >>conftest.undefs <<\_ACEOF | ||
18141 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
18142 | _ACEOF | ||
18143 | |||
18144 | # Break up conftest.defines because some shells have a limit on the size | ||
18145 | # of here documents, and old seds have small limits too (100 cmds). | ||
18146 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
18147 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
18148 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
18149 | echo ' :' >>$CONFIG_STATUS | ||
18150 | rm -f conftest.tail | ||
18151 | while grep . conftest.defines >/dev/null | ||
18152 | do | ||
18153 | # Write a limited-size here document to $tmp/defines.sed. | ||
18154 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
18155 | # Speed up: don't consider the non `#define' lines. | ||
18156 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
18157 | # Work around the forget-to-reset-the-flag bug. | ||
18158 | echo 't clr' >>$CONFIG_STATUS | ||
18159 | echo ': clr' >>$CONFIG_STATUS | ||
18160 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
18161 | echo 'CEOF | ||
18162 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
18163 | rm -f $tmp/in | ||
18164 | mv $tmp/out $tmp/in | ||
18165 | ' >>$CONFIG_STATUS | ||
18166 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
18167 | rm -f conftest.defines | ||
18168 | mv conftest.tail conftest.defines | ||
18169 | done | ||
18170 | rm -f conftest.defines | ||
18171 | echo ' fi # egrep' >>$CONFIG_STATUS | ||
18172 | echo >>$CONFIG_STATUS | ||
18173 | |||
18174 | # Break up conftest.undefs because some shells have a limit on the size | ||
18175 | # of here documents, and old seds have small limits too (100 cmds). | ||
18176 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
18177 | rm -f conftest.tail | ||
18178 | while grep . conftest.undefs >/dev/null | ||
18179 | do | ||
18180 | # Write a limited-size here document to $tmp/undefs.sed. | ||
18181 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
18182 | # Speed up: don't consider the non `#undef' | ||
18183 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
18184 | # Work around the forget-to-reset-the-flag bug. | ||
18185 | echo 't clr' >>$CONFIG_STATUS | ||
18186 | echo ': clr' >>$CONFIG_STATUS | ||
18187 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
18188 | echo 'CEOF | ||
18189 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
18190 | rm -f $tmp/in | ||
18191 | mv $tmp/out $tmp/in | ||
18192 | ' >>$CONFIG_STATUS | ||
18193 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
18194 | rm -f conftest.undefs | ||
18195 | mv conftest.tail conftest.undefs | ||
18196 | done | ||
18197 | rm -f conftest.undefs | ||
18198 | |||
18199 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18200 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
18201 | # use $as_me), people would be surprised to read: | ||
18202 | # /* config.h. Generated by config.status. */ | ||
18203 | if test x"$ac_file" = x-; then | ||
18204 | echo "/* Generated by configure. */" >$tmp/config.h | ||
18205 | else | ||
18206 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
18207 | fi | ||
18208 | cat $tmp/in >>$tmp/config.h | ||
18209 | rm -f $tmp/in | ||
18210 | if test x"$ac_file" != x-; then | ||
18211 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | ||
18212 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
18213 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
18214 | else | ||
18215 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
18216 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18217 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
18218 | X"$ac_file" : 'X\(//\)$' \| \ | ||
18219 | X"$ac_file" : 'X\(/\)' \| \ | ||
18220 | . : '\(.\)' 2>/dev/null || | ||
18221 | echo X"$ac_file" | | ||
18222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
18223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
18224 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
18225 | /^X\(\/\).*/{ s//\1/; q; } | ||
18226 | s/.*/./; q'` | ||
18227 | { case "$ac_dir" in | ||
18228 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | ||
18229 | *) as_incr_dir=.;; | ||
18230 | esac | ||
18231 | as_dummy="$ac_dir" | ||
18232 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | ||
18233 | case $as_mkdir_dir in | ||
18234 | # Skip DOS drivespec | ||
18235 | ?:) as_incr_dir=$as_mkdir_dir ;; | ||
18236 | *) | ||
18237 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | ||
18238 | test -d "$as_incr_dir" || | ||
18239 | mkdir "$as_incr_dir" || | ||
18240 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | ||
18241 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | ||
18242 | { (exit 1); exit 1; }; } | ||
18243 | ;; | ||
18244 | esac | ||
18245 | done; } | ||
18246 | |||
18247 | rm -f $ac_file | ||
18248 | mv $tmp/config.h $ac_file | ||
18249 | fi | ||
18250 | else | ||
18251 | cat $tmp/config.h | ||
18252 | rm -f $tmp/config.h | ||
18253 | fi | ||
18254 | done | ||
18255 | _ACEOF | ||
18256 | |||
18257 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
18258 | |||
18259 | { (exit 0); exit 0; } | ||
18260 | _ACEOF | ||
18261 | chmod +x $CONFIG_STATUS | ||
18262 | ac_clean_files=$ac_clean_files_save | ||
18263 | |||
18264 | |||
18265 | # configure is writing to config.log, and then calls config.status. | ||
18266 | # config.status does its own redirection, appending to config.log. | ||
18267 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
18268 | # by configure, so config.status won't be able to write to it; its | ||
18269 | # output is simply discarded. So we exec the FD to /dev/null, | ||
18270 | # effectively closing config.log, so it can be properly (re)opened and | ||
18271 | # appended to by config.status. When coming back to configure, we | ||
18272 | # need to make the FD available again. | ||
18273 | if test "$no_create" != yes; then | ||
18274 | ac_cs_success=: | ||
18275 | exec 5>/dev/null | ||
18276 | $SHELL $CONFIG_STATUS || ac_cs_success=false | ||
18277 | exec 5>>config.log | ||
18278 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
18279 | # would make configure fail if this is the last instruction. | ||
18280 | $ac_cs_success || { (exit 1); exit 1; } | ||
18281 | fi | ||
18282 | |||
18283 | |||
18284 | # Print summary of options | ||
18285 | |||
18286 | # Someone please show me a better way :) | ||
18287 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
18288 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
18289 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
18290 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
18291 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
18292 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
18293 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
18294 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
18295 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
18296 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
18297 | |||
18298 | echo "" | ||
18299 | echo "OpenSSH has been configured with the following options:" | ||
18300 | echo " User binaries: $B" | ||
18301 | echo " System binaries: $C" | ||
18302 | echo " Configuration files: $D" | ||
18303 | echo " Askpass program: $E" | ||
18304 | echo " Manual pages: $F" | ||
18305 | echo " PID file: $G" | ||
18306 | echo " Privilege separation chroot path: $H" | ||
18307 | if test "$USES_LOGIN_CONF" = "yes" ; then | ||
18308 | echo " At runtime, sshd will use the path defined in /etc/login.conf" | ||
18309 | else | ||
18310 | echo " sshd default user PATH: $I" | ||
18311 | fi | ||
18312 | if test ! -z "$superuser_path" ; then | ||
18313 | echo " sshd superuser user PATH: $J" | ||
18314 | fi | ||
18315 | echo " Manpage format: $MANTYPE" | ||
18316 | echo " PAM support: ${PAM_MSG}" | ||
18317 | echo " KerberosIV support: $KRB4_MSG" | ||
18318 | echo " KerberosV support: $KRB5_MSG" | ||
18319 | echo " Smartcard support: $SCARD_MSG" | ||
18320 | echo " AFS support: $AFS_MSG" | ||
18321 | echo " S/KEY support: $SKEY_MSG" | ||
18322 | echo " TCP Wrappers support: $TCPW_MSG" | ||
18323 | echo " MD5 password support: $MD5_MSG" | ||
18324 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
18325 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
18326 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
18327 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
18328 | echo " Random number source: $RAND_MSG" | ||
18329 | if test ! -z "$USE_RAND_HELPER" ; then | ||
18330 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
18331 | fi | ||
18332 | |||
18333 | echo "" | ||
18334 | |||
18335 | echo " Host: ${host}" | ||
18336 | echo " Compiler: ${CC}" | ||
18337 | echo " Compiler flags: ${CFLAGS}" | ||
18338 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
18339 | echo " Linker flags: ${LDFLAGS}" | ||
18340 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
18341 | |||
18342 | echo "" | ||
18343 | |||
18344 | if test "x$PAM_MSG" = "xyes" ; then | ||
18345 | echo "PAM is enabled. You may need to install a PAM control file " | ||
18346 | echo "for sshd, otherwise password authentication may fail. " | ||
18347 | echo "Example PAM control files can be found in the contrib/ " | ||
18348 | echo "subdirectory" | ||
18349 | echo "" | ||
18350 | fi | ||
18351 | |||
18352 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
18353 | echo "WARNING: you are using the builtin random number collection " | ||
18354 | echo "service. Please read WARNING.RNG and request that your OS " | ||
18355 | echo "vendor includes kernel-based random number collection in " | ||
18356 | echo "future versions of your OS." | ||
18357 | echo "" | ||
18358 | fi | ||
18359 | |||
diff --git a/contrib/gnome-ssh-askpass.c b/contrib/gnome-ssh-askpass.c new file mode 100644 index 000000000..7cece5620 --- /dev/null +++ b/contrib/gnome-ssh-askpass.c | |||
@@ -0,0 +1,168 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2000-2002 Damien Miller. All rights reserved. | ||
3 | * | ||
4 | * Redistribution and use in source and binary forms, with or without | ||
5 | * modification, are permitted provided that the following conditions | ||
6 | * are met: | ||
7 | * 1. Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * 2. Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * | ||
13 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
14 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
15 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
16 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
19 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
20 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
23 | */ | ||
24 | |||
25 | /* | ||
26 | * This is a simple GNOME SSH passphrase grabber. To use it, set the | ||
27 | * environment variable SSH_ASKPASS to point to the location of | ||
28 | * gnome-ssh-askpass before calling "ssh-add < /dev/null". | ||
29 | * | ||
30 | * There is only two run-time options: if you set the environment variable | ||
31 | * "GNOME_SSH_ASKPASS_GRAB_SERVER=true" then gnome-ssh-askpass will grab | ||
32 | * the X server. If you set "GNOME_SSH_ASKPASS_GRAB_POINTER=true", then the | ||
33 | * pointer will be grabbed too. These may have some benefit to security if | ||
34 | * you don't trust your X server. We grab the keyboard always. | ||
35 | */ | ||
36 | |||
37 | /* | ||
38 | * Compile with: | ||
39 | * | ||
40 | * cc `gnome-config --cflags gnome gnomeui` \ | ||
41 | * gnome-ssh-askpass.c -o gnome-ssh-askpass \ | ||
42 | * `gnome-config --libs gnome gnomeui` | ||
43 | * | ||
44 | */ | ||
45 | |||
46 | #include <stdlib.h> | ||
47 | #include <stdio.h> | ||
48 | #include <string.h> | ||
49 | #include <gnome.h> | ||
50 | #include <X11/Xlib.h> | ||
51 | #include <gdk/gdkx.h> | ||
52 | |||
53 | void | ||
54 | report_failed_grab (void) | ||
55 | { | ||
56 | GtkWidget *err; | ||
57 | |||
58 | err = gnome_message_box_new("Could not grab keyboard or mouse.\n" | ||
59 | "A malicious client may be eavesdropping on your session.", | ||
60 | GNOME_MESSAGE_BOX_ERROR, "EXIT", NULL); | ||
61 | gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER); | ||
62 | gtk_object_set(GTK_OBJECT(err), "type", GTK_WINDOW_POPUP, NULL); | ||
63 | |||
64 | gnome_dialog_run_and_close(GNOME_DIALOG(err)); | ||
65 | } | ||
66 | |||
67 | void | ||
68 | passphrase_dialog(char *message) | ||
69 | { | ||
70 | char *passphrase; | ||
71 | char **messages; | ||
72 | int result, i, grab_server, grab_pointer; | ||
73 | GtkWidget *dialog, *entry, *label; | ||
74 | |||
75 | grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL); | ||
76 | grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL); | ||
77 | |||
78 | dialog = gnome_dialog_new("OpenSSH", GNOME_STOCK_BUTTON_OK, | ||
79 | GNOME_STOCK_BUTTON_CANCEL, NULL); | ||
80 | |||
81 | messages = g_strsplit(message, "\\n", 0); | ||
82 | if (messages) | ||
83 | for(i = 0; messages[i]; i++) { | ||
84 | label = gtk_label_new(messages[i]); | ||
85 | gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), | ||
86 | label, FALSE, FALSE, 0); | ||
87 | } | ||
88 | |||
89 | entry = gtk_entry_new(); | ||
90 | gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), entry, FALSE, | ||
91 | FALSE, 0); | ||
92 | gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); | ||
93 | gtk_widget_grab_focus(entry); | ||
94 | |||
95 | /* Center window and prepare for grab */ | ||
96 | gtk_object_set(GTK_OBJECT(dialog), "type", GTK_WINDOW_POPUP, NULL); | ||
97 | gnome_dialog_set_default(GNOME_DIALOG(dialog), 0); | ||
98 | gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); | ||
99 | gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, TRUE); | ||
100 | gnome_dialog_close_hides(GNOME_DIALOG(dialog), TRUE); | ||
101 | gtk_container_set_border_width(GTK_CONTAINER(GNOME_DIALOG(dialog)->vbox), | ||
102 | GNOME_PAD); | ||
103 | gtk_widget_show_all(dialog); | ||
104 | |||
105 | /* Grab focus */ | ||
106 | if (grab_server) | ||
107 | XGrabServer(GDK_DISPLAY()); | ||
108 | if (grab_pointer && gdk_pointer_grab(dialog->window, TRUE, 0, | ||
109 | NULL, NULL, GDK_CURRENT_TIME)) | ||
110 | goto nograb; | ||
111 | if (gdk_keyboard_grab(dialog->window, FALSE, GDK_CURRENT_TIME)) | ||
112 | goto nograbkb; | ||
113 | |||
114 | /* Make <enter> close dialog */ | ||
115 | gnome_dialog_editable_enters(GNOME_DIALOG(dialog), GTK_EDITABLE(entry)); | ||
116 | |||
117 | /* Run dialog */ | ||
118 | result = gnome_dialog_run(GNOME_DIALOG(dialog)); | ||
119 | |||
120 | /* Ungrab */ | ||
121 | if (grab_server) | ||
122 | XUngrabServer(GDK_DISPLAY()); | ||
123 | if (grab_pointer) | ||
124 | gdk_pointer_ungrab(GDK_CURRENT_TIME); | ||
125 | gdk_keyboard_ungrab(GDK_CURRENT_TIME); | ||
126 | gdk_flush(); | ||
127 | |||
128 | /* Report passphrase if user selected OK */ | ||
129 | passphrase = gtk_entry_get_text(GTK_ENTRY(entry)); | ||
130 | if (result == 0) | ||
131 | puts(passphrase); | ||
132 | |||
133 | /* Zero passphrase in memory */ | ||
134 | memset(passphrase, '\0', strlen(passphrase)); | ||
135 | gtk_entry_set_text(GTK_ENTRY(entry), passphrase); | ||
136 | |||
137 | gnome_dialog_close(GNOME_DIALOG(dialog)); | ||
138 | return; | ||
139 | |||
140 | /* At least one grab failed - ungrab what we got, and report | ||
141 | the failure to the user. Note that XGrabServer() cannot | ||
142 | fail. */ | ||
143 | nograbkb: | ||
144 | gdk_pointer_ungrab(GDK_CURRENT_TIME); | ||
145 | nograb: | ||
146 | if (grab_server) | ||
147 | XUngrabServer(GDK_DISPLAY()); | ||
148 | gnome_dialog_close(GNOME_DIALOG(dialog)); | ||
149 | |||
150 | report_failed_grab(); | ||
151 | } | ||
152 | |||
153 | int | ||
154 | main(int argc, char **argv) | ||
155 | { | ||
156 | char *message; | ||
157 | |||
158 | gnome_init("GNOME ssh-askpass", "0.1", argc, argv); | ||
159 | |||
160 | if (argc == 2) | ||
161 | message = argv[1]; | ||
162 | else | ||
163 | message = "Enter your OpenSSH passphrase:"; | ||
164 | |||
165 | setvbuf(stdout, 0, _IONBF, 0); | ||
166 | passphrase_dialog(message); | ||
167 | return 0; | ||
168 | } | ||
diff --git a/contrib/solaris/README b/contrib/solaris/README index 9b0a46e29..9b0a46e29 100644..100755 --- a/contrib/solaris/README +++ b/contrib/solaris/README | |||
diff --git a/openbsd-compat/fake-queue.h b/openbsd-compat/fake-queue.h new file mode 100644 index 000000000..176fe3174 --- /dev/null +++ b/openbsd-compat/fake-queue.h | |||
@@ -0,0 +1,584 @@ | |||
1 | /* $OpenBSD: queue.h,v 1.22 2001/06/23 04:39:35 angelos Exp $ */ | ||
2 | /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ | ||
3 | |||
4 | /* | ||
5 | * Copyright (c) 1991, 1993 | ||
6 | * The Regents of the University of California. All rights reserved. | ||
7 | * | ||
8 | * Redistribution and use in source and binary forms, with or without | ||
9 | * modification, are permitted provided that the following conditions | ||
10 | * are met: | ||
11 | * 1. Redistributions of source code must retain the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer. | ||
13 | * 2. Redistributions in binary form must reproduce the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer in the | ||
15 | * documentation and/or other materials provided with the distribution. | ||
16 | * 3. All advertising materials mentioning features or use of this software | ||
17 | * must display the following acknowledgement: | ||
18 | * This product includes software developed by the University of | ||
19 | * California, Berkeley and its contributors. | ||
20 | * 4. Neither the name of the University nor the names of its contributors | ||
21 | * may be used to endorse or promote products derived from this software | ||
22 | * without specific prior written permission. | ||
23 | * | ||
24 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
34 | * SUCH DAMAGE. | ||
35 | * | ||
36 | * @(#)queue.h 8.5 (Berkeley) 8/20/94 | ||
37 | */ | ||
38 | |||
39 | #ifndef _FAKE_QUEUE_H_ | ||
40 | #define _FAKE_QUEUE_H_ | ||
41 | |||
42 | /* | ||
43 | * Ignore all <sys/queue.h> since older platforms have broken/incomplete | ||
44 | * <sys/queue.h> that are too hard to work around. | ||
45 | */ | ||
46 | #undef SLIST_HEAD | ||
47 | #undef SLIST_HEAD_INITIALIZER | ||
48 | #undef SLIST_ENTRY | ||
49 | #undef SLIST_FIRST | ||
50 | #undef SLIST_END | ||
51 | #undef SLIST_EMPTY | ||
52 | #undef SLIST_NEXT | ||
53 | #undef SLIST_FOREACH | ||
54 | #undef SLIST_INIT | ||
55 | #undef SLIST_INSERT_AFTER | ||
56 | #undef SLIST_INSERT_HEAD | ||
57 | #undef SLIST_REMOVE_HEAD | ||
58 | #undef SLIST_REMOVE | ||
59 | #undef LIST_HEAD | ||
60 | #undef LIST_HEAD_INITIALIZER | ||
61 | #undef LIST_ENTRY | ||
62 | #undef LIST_FIRST | ||
63 | #undef LIST_END | ||
64 | #undef LIST_EMPTY | ||
65 | #undef LIST_NEXT | ||
66 | #undef LIST_FOREACH | ||
67 | #undef LIST_INIT | ||
68 | #undef LIST_INSERT_AFTER | ||
69 | #undef LIST_INSERT_BEFORE | ||
70 | #undef LIST_INSERT_HEAD | ||
71 | #undef LIST_REMOVE | ||
72 | #undef LIST_REPLACE | ||
73 | #undef SIMPLEQ_HEAD | ||
74 | #undef SIMPLEQ_HEAD_INITIALIZER | ||
75 | #undef SIMPLEQ_ENTRY | ||
76 | #undef SIMPLEQ_FIRST | ||
77 | #undef SIMPLEQ_END | ||
78 | #undef SIMPLEQ_EMPTY | ||
79 | #undef SIMPLEQ_NEXT | ||
80 | #undef SIMPLEQ_FOREACH | ||
81 | #undef SIMPLEQ_INIT | ||
82 | #undef SIMPLEQ_INSERT_HEAD | ||
83 | #undef SIMPLEQ_INSERT_TAIL | ||
84 | #undef SIMPLEQ_INSERT_AFTER | ||
85 | #undef SIMPLEQ_REMOVE_HEAD | ||
86 | #undef TAILQ_HEAD | ||
87 | #undef TAILQ_HEAD_INITIALIZER | ||
88 | #undef TAILQ_ENTRY | ||
89 | #undef TAILQ_FIRST | ||
90 | #undef TAILQ_END | ||
91 | #undef TAILQ_NEXT | ||
92 | #undef TAILQ_LAST | ||
93 | #undef TAILQ_PREV | ||
94 | #undef TAILQ_EMPTY | ||
95 | #undef TAILQ_FOREACH | ||
96 | #undef TAILQ_FOREACH_REVERSE | ||
97 | #undef TAILQ_INIT | ||
98 | #undef TAILQ_INSERT_HEAD | ||
99 | #undef TAILQ_INSERT_TAIL | ||
100 | #undef TAILQ_INSERT_AFTER | ||
101 | #undef TAILQ_INSERT_BEFORE | ||
102 | #undef TAILQ_REMOVE | ||
103 | #undef TAILQ_REPLACE | ||
104 | #undef CIRCLEQ_HEAD | ||
105 | #undef CIRCLEQ_HEAD_INITIALIZER | ||
106 | #undef CIRCLEQ_ENTRY | ||
107 | #undef CIRCLEQ_FIRST | ||
108 | #undef CIRCLEQ_LAST | ||
109 | #undef CIRCLEQ_END | ||
110 | #undef CIRCLEQ_NEXT | ||
111 | #undef CIRCLEQ_PREV | ||
112 | #undef CIRCLEQ_EMPTY | ||
113 | #undef CIRCLEQ_FOREACH | ||
114 | #undef CIRCLEQ_FOREACH_REVERSE | ||
115 | #undef CIRCLEQ_INIT | ||
116 | #undef CIRCLEQ_INSERT_AFTER | ||
117 | #undef CIRCLEQ_INSERT_BEFORE | ||
118 | #undef CIRCLEQ_INSERT_HEAD | ||
119 | #undef CIRCLEQ_INSERT_TAIL | ||
120 | #undef CIRCLEQ_REMOVE | ||
121 | #undef CIRCLEQ_REPLACE | ||
122 | |||
123 | /* | ||
124 | * This file defines five types of data structures: singly-linked lists, | ||
125 | * lists, simple queues, tail queues, and circular queues. | ||
126 | * | ||
127 | * | ||
128 | * A singly-linked list is headed by a single forward pointer. The elements | ||
129 | * are singly linked for minimum space and pointer manipulation overhead at | ||
130 | * the expense of O(n) removal for arbitrary elements. New elements can be | ||
131 | * added to the list after an existing element or at the head of the list. | ||
132 | * Elements being removed from the head of the list should use the explicit | ||
133 | * macro for this purpose for optimum efficiency. A singly-linked list may | ||
134 | * only be traversed in the forward direction. Singly-linked lists are ideal | ||
135 | * for applications with large datasets and few or no removals or for | ||
136 | * implementing a LIFO queue. | ||
137 | * | ||
138 | * A list is headed by a single forward pointer (or an array of forward | ||
139 | * pointers for a hash table header). The elements are doubly linked | ||
140 | * so that an arbitrary element can be removed without a need to | ||
141 | * traverse the list. New elements can be added to the list before | ||
142 | * or after an existing element or at the head of the list. A list | ||
143 | * may only be traversed in the forward direction. | ||
144 | * | ||
145 | * A simple queue is headed by a pair of pointers, one the head of the | ||
146 | * list and the other to the tail of the list. The elements are singly | ||
147 | * linked to save space, so elements can only be removed from the | ||
148 | * head of the list. New elements can be added to the list before or after | ||
149 | * an existing element, at the head of the list, or at the end of the | ||
150 | * list. A simple queue may only be traversed in the forward direction. | ||
151 | * | ||
152 | * A tail queue is headed by a pair of pointers, one to the head of the | ||
153 | * list and the other to the tail of the list. The elements are doubly | ||
154 | * linked so that an arbitrary element can be removed without a need to | ||
155 | * traverse the list. New elements can be added to the list before or | ||
156 | * after an existing element, at the head of the list, or at the end of | ||
157 | * the list. A tail queue may be traversed in either direction. | ||
158 | * | ||
159 | * A circle queue is headed by a pair of pointers, one to the head of the | ||
160 | * list and the other to the tail of the list. The elements are doubly | ||
161 | * linked so that an arbitrary element can be removed without a need to | ||
162 | * traverse the list. New elements can be added to the list before or after | ||
163 | * an existing element, at the head of the list, or at the end of the list. | ||
164 | * A circle queue may be traversed in either direction, but has a more | ||
165 | * complex end of list detection. | ||
166 | * | ||
167 | * For details on the use of these macros, see the queue(3) manual page. | ||
168 | */ | ||
169 | |||
170 | /* | ||
171 | * Singly-linked List definitions. | ||
172 | */ | ||
173 | #define SLIST_HEAD(name, type) \ | ||
174 | struct name { \ | ||
175 | struct type *slh_first; /* first element */ \ | ||
176 | } | ||
177 | |||
178 | #define SLIST_HEAD_INITIALIZER(head) \ | ||
179 | { NULL } | ||
180 | |||
181 | #define SLIST_ENTRY(type) \ | ||
182 | struct { \ | ||
183 | struct type *sle_next; /* next element */ \ | ||
184 | } | ||
185 | |||
186 | /* | ||
187 | * Singly-linked List access methods. | ||
188 | */ | ||
189 | #define SLIST_FIRST(head) ((head)->slh_first) | ||
190 | #define SLIST_END(head) NULL | ||
191 | #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) | ||
192 | #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) | ||
193 | |||
194 | #define SLIST_FOREACH(var, head, field) \ | ||
195 | for((var) = SLIST_FIRST(head); \ | ||
196 | (var) != SLIST_END(head); \ | ||
197 | (var) = SLIST_NEXT(var, field)) | ||
198 | |||
199 | /* | ||
200 | * Singly-linked List functions. | ||
201 | */ | ||
202 | #define SLIST_INIT(head) { \ | ||
203 | SLIST_FIRST(head) = SLIST_END(head); \ | ||
204 | } | ||
205 | |||
206 | #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ | ||
207 | (elm)->field.sle_next = (slistelm)->field.sle_next; \ | ||
208 | (slistelm)->field.sle_next = (elm); \ | ||
209 | } while (0) | ||
210 | |||
211 | #define SLIST_INSERT_HEAD(head, elm, field) do { \ | ||
212 | (elm)->field.sle_next = (head)->slh_first; \ | ||
213 | (head)->slh_first = (elm); \ | ||
214 | } while (0) | ||
215 | |||
216 | #define SLIST_REMOVE_HEAD(head, field) do { \ | ||
217 | (head)->slh_first = (head)->slh_first->field.sle_next; \ | ||
218 | } while (0) | ||
219 | |||
220 | #define SLIST_REMOVE(head, elm, type, field) do { \ | ||
221 | if ((head)->slh_first == (elm)) { \ | ||
222 | SLIST_REMOVE_HEAD((head), field); \ | ||
223 | } \ | ||
224 | else { \ | ||
225 | struct type *curelm = (head)->slh_first; \ | ||
226 | while( curelm->field.sle_next != (elm) ) \ | ||
227 | curelm = curelm->field.sle_next; \ | ||
228 | curelm->field.sle_next = \ | ||
229 | curelm->field.sle_next->field.sle_next; \ | ||
230 | } \ | ||
231 | } while (0) | ||
232 | |||
233 | /* | ||
234 | * List definitions. | ||
235 | */ | ||
236 | #define LIST_HEAD(name, type) \ | ||
237 | struct name { \ | ||
238 | struct type *lh_first; /* first element */ \ | ||
239 | } | ||
240 | |||
241 | #define LIST_HEAD_INITIALIZER(head) \ | ||
242 | { NULL } | ||
243 | |||
244 | #define LIST_ENTRY(type) \ | ||
245 | struct { \ | ||
246 | struct type *le_next; /* next element */ \ | ||
247 | struct type **le_prev; /* address of previous next element */ \ | ||
248 | } | ||
249 | |||
250 | /* | ||
251 | * List access methods | ||
252 | */ | ||
253 | #define LIST_FIRST(head) ((head)->lh_first) | ||
254 | #define LIST_END(head) NULL | ||
255 | #define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head)) | ||
256 | #define LIST_NEXT(elm, field) ((elm)->field.le_next) | ||
257 | |||
258 | #define LIST_FOREACH(var, head, field) \ | ||
259 | for((var) = LIST_FIRST(head); \ | ||
260 | (var)!= LIST_END(head); \ | ||
261 | (var) = LIST_NEXT(var, field)) | ||
262 | |||
263 | /* | ||
264 | * List functions. | ||
265 | */ | ||
266 | #define LIST_INIT(head) do { \ | ||
267 | LIST_FIRST(head) = LIST_END(head); \ | ||
268 | } while (0) | ||
269 | |||
270 | #define LIST_INSERT_AFTER(listelm, elm, field) do { \ | ||
271 | if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \ | ||
272 | (listelm)->field.le_next->field.le_prev = \ | ||
273 | &(elm)->field.le_next; \ | ||
274 | (listelm)->field.le_next = (elm); \ | ||
275 | (elm)->field.le_prev = &(listelm)->field.le_next; \ | ||
276 | } while (0) | ||
277 | |||
278 | #define LIST_INSERT_BEFORE(listelm, elm, field) do { \ | ||
279 | (elm)->field.le_prev = (listelm)->field.le_prev; \ | ||
280 | (elm)->field.le_next = (listelm); \ | ||
281 | *(listelm)->field.le_prev = (elm); \ | ||
282 | (listelm)->field.le_prev = &(elm)->field.le_next; \ | ||
283 | } while (0) | ||
284 | |||
285 | #define LIST_INSERT_HEAD(head, elm, field) do { \ | ||
286 | if (((elm)->field.le_next = (head)->lh_first) != NULL) \ | ||
287 | (head)->lh_first->field.le_prev = &(elm)->field.le_next;\ | ||
288 | (head)->lh_first = (elm); \ | ||
289 | (elm)->field.le_prev = &(head)->lh_first; \ | ||
290 | } while (0) | ||
291 | |||
292 | #define LIST_REMOVE(elm, field) do { \ | ||
293 | if ((elm)->field.le_next != NULL) \ | ||
294 | (elm)->field.le_next->field.le_prev = \ | ||
295 | (elm)->field.le_prev; \ | ||
296 | *(elm)->field.le_prev = (elm)->field.le_next; \ | ||
297 | } while (0) | ||
298 | |||
299 | #define LIST_REPLACE(elm, elm2, field) do { \ | ||
300 | if (((elm2)->field.le_next = (elm)->field.le_next) != NULL) \ | ||
301 | (elm2)->field.le_next->field.le_prev = \ | ||
302 | &(elm2)->field.le_next; \ | ||
303 | (elm2)->field.le_prev = (elm)->field.le_prev; \ | ||
304 | *(elm2)->field.le_prev = (elm2); \ | ||
305 | } while (0) | ||
306 | |||
307 | /* | ||
308 | * Simple queue definitions. | ||
309 | */ | ||
310 | #define SIMPLEQ_HEAD(name, type) \ | ||
311 | struct name { \ | ||
312 | struct type *sqh_first; /* first element */ \ | ||
313 | struct type **sqh_last; /* addr of last next element */ \ | ||
314 | } | ||
315 | |||
316 | #define SIMPLEQ_HEAD_INITIALIZER(head) \ | ||
317 | { NULL, &(head).sqh_first } | ||
318 | |||
319 | #define SIMPLEQ_ENTRY(type) \ | ||
320 | struct { \ | ||
321 | struct type *sqe_next; /* next element */ \ | ||
322 | } | ||
323 | |||
324 | /* | ||
325 | * Simple queue access methods. | ||
326 | */ | ||
327 | #define SIMPLEQ_FIRST(head) ((head)->sqh_first) | ||
328 | #define SIMPLEQ_END(head) NULL | ||
329 | #define SIMPLEQ_EMPTY(head) (SIMPLEQ_FIRST(head) == SIMPLEQ_END(head)) | ||
330 | #define SIMPLEQ_NEXT(elm, field) ((elm)->field.sqe_next) | ||
331 | |||
332 | #define SIMPLEQ_FOREACH(var, head, field) \ | ||
333 | for((var) = SIMPLEQ_FIRST(head); \ | ||
334 | (var) != SIMPLEQ_END(head); \ | ||
335 | (var) = SIMPLEQ_NEXT(var, field)) | ||
336 | |||
337 | /* | ||
338 | * Simple queue functions. | ||
339 | */ | ||
340 | #define SIMPLEQ_INIT(head) do { \ | ||
341 | (head)->sqh_first = NULL; \ | ||
342 | (head)->sqh_last = &(head)->sqh_first; \ | ||
343 | } while (0) | ||
344 | |||
345 | #define SIMPLEQ_INSERT_HEAD(head, elm, field) do { \ | ||
346 | if (((elm)->field.sqe_next = (head)->sqh_first) == NULL) \ | ||
347 | (head)->sqh_last = &(elm)->field.sqe_next; \ | ||
348 | (head)->sqh_first = (elm); \ | ||
349 | } while (0) | ||
350 | |||
351 | #define SIMPLEQ_INSERT_TAIL(head, elm, field) do { \ | ||
352 | (elm)->field.sqe_next = NULL; \ | ||
353 | *(head)->sqh_last = (elm); \ | ||
354 | (head)->sqh_last = &(elm)->field.sqe_next; \ | ||
355 | } while (0) | ||
356 | |||
357 | #define SIMPLEQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ||
358 | if (((elm)->field.sqe_next = (listelm)->field.sqe_next) == NULL)\ | ||
359 | (head)->sqh_last = &(elm)->field.sqe_next; \ | ||
360 | (listelm)->field.sqe_next = (elm); \ | ||
361 | } while (0) | ||
362 | |||
363 | #define SIMPLEQ_REMOVE_HEAD(head, elm, field) do { \ | ||
364 | if (((head)->sqh_first = (elm)->field.sqe_next) == NULL) \ | ||
365 | (head)->sqh_last = &(head)->sqh_first; \ | ||
366 | } while (0) | ||
367 | |||
368 | /* | ||
369 | * Tail queue definitions. | ||
370 | */ | ||
371 | #define TAILQ_HEAD(name, type) \ | ||
372 | struct name { \ | ||
373 | struct type *tqh_first; /* first element */ \ | ||
374 | struct type **tqh_last; /* addr of last next element */ \ | ||
375 | } | ||
376 | |||
377 | #define TAILQ_HEAD_INITIALIZER(head) \ | ||
378 | { NULL, &(head).tqh_first } | ||
379 | |||
380 | #define TAILQ_ENTRY(type) \ | ||
381 | struct { \ | ||
382 | struct type *tqe_next; /* next element */ \ | ||
383 | struct type **tqe_prev; /* address of previous next element */ \ | ||
384 | } | ||
385 | |||
386 | /* | ||
387 | * tail queue access methods | ||
388 | */ | ||
389 | #define TAILQ_FIRST(head) ((head)->tqh_first) | ||
390 | #define TAILQ_END(head) NULL | ||
391 | #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) | ||
392 | #define TAILQ_LAST(head, headname) \ | ||
393 | (*(((struct headname *)((head)->tqh_last))->tqh_last)) | ||
394 | /* XXX */ | ||
395 | #define TAILQ_PREV(elm, headname, field) \ | ||
396 | (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) | ||
397 | #define TAILQ_EMPTY(head) \ | ||
398 | (TAILQ_FIRST(head) == TAILQ_END(head)) | ||
399 | |||
400 | #define TAILQ_FOREACH(var, head, field) \ | ||
401 | for((var) = TAILQ_FIRST(head); \ | ||
402 | (var) != TAILQ_END(head); \ | ||
403 | (var) = TAILQ_NEXT(var, field)) | ||
404 | |||
405 | #define TAILQ_FOREACH_REVERSE(var, head, field, headname) \ | ||
406 | for((var) = TAILQ_LAST(head, headname); \ | ||
407 | (var) != TAILQ_END(head); \ | ||
408 | (var) = TAILQ_PREV(var, headname, field)) | ||
409 | |||
410 | /* | ||
411 | * Tail queue functions. | ||
412 | */ | ||
413 | #define TAILQ_INIT(head) do { \ | ||
414 | (head)->tqh_first = NULL; \ | ||
415 | (head)->tqh_last = &(head)->tqh_first; \ | ||
416 | } while (0) | ||
417 | |||
418 | #define TAILQ_INSERT_HEAD(head, elm, field) do { \ | ||
419 | if (((elm)->field.tqe_next = (head)->tqh_first) != NULL) \ | ||
420 | (head)->tqh_first->field.tqe_prev = \ | ||
421 | &(elm)->field.tqe_next; \ | ||
422 | else \ | ||
423 | (head)->tqh_last = &(elm)->field.tqe_next; \ | ||
424 | (head)->tqh_first = (elm); \ | ||
425 | (elm)->field.tqe_prev = &(head)->tqh_first; \ | ||
426 | } while (0) | ||
427 | |||
428 | #define TAILQ_INSERT_TAIL(head, elm, field) do { \ | ||
429 | (elm)->field.tqe_next = NULL; \ | ||
430 | (elm)->field.tqe_prev = (head)->tqh_last; \ | ||
431 | *(head)->tqh_last = (elm); \ | ||
432 | (head)->tqh_last = &(elm)->field.tqe_next; \ | ||
433 | } while (0) | ||
434 | |||
435 | #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ||
436 | if (((elm)->field.tqe_next = (listelm)->field.tqe_next) != NULL)\ | ||
437 | (elm)->field.tqe_next->field.tqe_prev = \ | ||
438 | &(elm)->field.tqe_next; \ | ||
439 | else \ | ||
440 | (head)->tqh_last = &(elm)->field.tqe_next; \ | ||
441 | (listelm)->field.tqe_next = (elm); \ | ||
442 | (elm)->field.tqe_prev = &(listelm)->field.tqe_next; \ | ||
443 | } while (0) | ||
444 | |||
445 | #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ | ||
446 | (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \ | ||
447 | (elm)->field.tqe_next = (listelm); \ | ||
448 | *(listelm)->field.tqe_prev = (elm); \ | ||
449 | (listelm)->field.tqe_prev = &(elm)->field.tqe_next; \ | ||
450 | } while (0) | ||
451 | |||
452 | #define TAILQ_REMOVE(head, elm, field) do { \ | ||
453 | if (((elm)->field.tqe_next) != NULL) \ | ||
454 | (elm)->field.tqe_next->field.tqe_prev = \ | ||
455 | (elm)->field.tqe_prev; \ | ||
456 | else \ | ||
457 | (head)->tqh_last = (elm)->field.tqe_prev; \ | ||
458 | *(elm)->field.tqe_prev = (elm)->field.tqe_next; \ | ||
459 | } while (0) | ||
460 | |||
461 | #define TAILQ_REPLACE(head, elm, elm2, field) do { \ | ||
462 | if (((elm2)->field.tqe_next = (elm)->field.tqe_next) != NULL) \ | ||
463 | (elm2)->field.tqe_next->field.tqe_prev = \ | ||
464 | &(elm2)->field.tqe_next; \ | ||
465 | else \ | ||
466 | (head)->tqh_last = &(elm2)->field.tqe_next; \ | ||
467 | (elm2)->field.tqe_prev = (elm)->field.tqe_prev; \ | ||
468 | *(elm2)->field.tqe_prev = (elm2); \ | ||
469 | } while (0) | ||
470 | |||
471 | /* | ||
472 | * Circular queue definitions. | ||
473 | */ | ||
474 | #define CIRCLEQ_HEAD(name, type) \ | ||
475 | struct name { \ | ||
476 | struct type *cqh_first; /* first element */ \ | ||
477 | struct type *cqh_last; /* last element */ \ | ||
478 | } | ||
479 | |||
480 | #define CIRCLEQ_HEAD_INITIALIZER(head) \ | ||
481 | { CIRCLEQ_END(&head), CIRCLEQ_END(&head) } | ||
482 | |||
483 | #define CIRCLEQ_ENTRY(type) \ | ||
484 | struct { \ | ||
485 | struct type *cqe_next; /* next element */ \ | ||
486 | struct type *cqe_prev; /* previous element */ \ | ||
487 | } | ||
488 | |||
489 | /* | ||
490 | * Circular queue access methods | ||
491 | */ | ||
492 | #define CIRCLEQ_FIRST(head) ((head)->cqh_first) | ||
493 | #define CIRCLEQ_LAST(head) ((head)->cqh_last) | ||
494 | #define CIRCLEQ_END(head) ((void *)(head)) | ||
495 | #define CIRCLEQ_NEXT(elm, field) ((elm)->field.cqe_next) | ||
496 | #define CIRCLEQ_PREV(elm, field) ((elm)->field.cqe_prev) | ||
497 | #define CIRCLEQ_EMPTY(head) \ | ||
498 | (CIRCLEQ_FIRST(head) == CIRCLEQ_END(head)) | ||
499 | |||
500 | #define CIRCLEQ_FOREACH(var, head, field) \ | ||
501 | for((var) = CIRCLEQ_FIRST(head); \ | ||
502 | (var) != CIRCLEQ_END(head); \ | ||
503 | (var) = CIRCLEQ_NEXT(var, field)) | ||
504 | |||
505 | #define CIRCLEQ_FOREACH_REVERSE(var, head, field) \ | ||
506 | for((var) = CIRCLEQ_LAST(head); \ | ||
507 | (var) != CIRCLEQ_END(head); \ | ||
508 | (var) = CIRCLEQ_PREV(var, field)) | ||
509 | |||
510 | /* | ||
511 | * Circular queue functions. | ||
512 | */ | ||
513 | #define CIRCLEQ_INIT(head) do { \ | ||
514 | (head)->cqh_first = CIRCLEQ_END(head); \ | ||
515 | (head)->cqh_last = CIRCLEQ_END(head); \ | ||
516 | } while (0) | ||
517 | |||
518 | #define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ||
519 | (elm)->field.cqe_next = (listelm)->field.cqe_next; \ | ||
520 | (elm)->field.cqe_prev = (listelm); \ | ||
521 | if ((listelm)->field.cqe_next == CIRCLEQ_END(head)) \ | ||
522 | (head)->cqh_last = (elm); \ | ||
523 | else \ | ||
524 | (listelm)->field.cqe_next->field.cqe_prev = (elm); \ | ||
525 | (listelm)->field.cqe_next = (elm); \ | ||
526 | } while (0) | ||
527 | |||
528 | #define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \ | ||
529 | (elm)->field.cqe_next = (listelm); \ | ||
530 | (elm)->field.cqe_prev = (listelm)->field.cqe_prev; \ | ||
531 | if ((listelm)->field.cqe_prev == CIRCLEQ_END(head)) \ | ||
532 | (head)->cqh_first = (elm); \ | ||
533 | else \ | ||
534 | (listelm)->field.cqe_prev->field.cqe_next = (elm); \ | ||
535 | (listelm)->field.cqe_prev = (elm); \ | ||
536 | } while (0) | ||
537 | |||
538 | #define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \ | ||
539 | (elm)->field.cqe_next = (head)->cqh_first; \ | ||
540 | (elm)->field.cqe_prev = CIRCLEQ_END(head); \ | ||
541 | if ((head)->cqh_last == CIRCLEQ_END(head)) \ | ||
542 | (head)->cqh_last = (elm); \ | ||
543 | else \ | ||
544 | (head)->cqh_first->field.cqe_prev = (elm); \ | ||
545 | (head)->cqh_first = (elm); \ | ||
546 | } while (0) | ||
547 | |||
548 | #define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \ | ||
549 | (elm)->field.cqe_next = CIRCLEQ_END(head); \ | ||
550 | (elm)->field.cqe_prev = (head)->cqh_last; \ | ||
551 | if ((head)->cqh_first == CIRCLEQ_END(head)) \ | ||
552 | (head)->cqh_first = (elm); \ | ||
553 | else \ | ||
554 | (head)->cqh_last->field.cqe_next = (elm); \ | ||
555 | (head)->cqh_last = (elm); \ | ||
556 | } while (0) | ||
557 | |||
558 | #define CIRCLEQ_REMOVE(head, elm, field) do { \ | ||
559 | if ((elm)->field.cqe_next == CIRCLEQ_END(head)) \ | ||
560 | (head)->cqh_last = (elm)->field.cqe_prev; \ | ||
561 | else \ | ||
562 | (elm)->field.cqe_next->field.cqe_prev = \ | ||
563 | (elm)->field.cqe_prev; \ | ||
564 | if ((elm)->field.cqe_prev == CIRCLEQ_END(head)) \ | ||
565 | (head)->cqh_first = (elm)->field.cqe_next; \ | ||
566 | else \ | ||
567 | (elm)->field.cqe_prev->field.cqe_next = \ | ||
568 | (elm)->field.cqe_next; \ | ||
569 | } while (0) | ||
570 | |||
571 | #define CIRCLEQ_REPLACE(head, elm, elm2, field) do { \ | ||
572 | if (((elm2)->field.cqe_next = (elm)->field.cqe_next) == \ | ||
573 | CIRCLEQ_END(head)) \ | ||
574 | (head).cqh_last = (elm2); \ | ||
575 | else \ | ||
576 | (elm2)->field.cqe_next->field.cqe_prev = (elm2); \ | ||
577 | if (((elm2)->field.cqe_prev = (elm)->field.cqe_prev) == \ | ||
578 | CIRCLEQ_END(head)) \ | ||
579 | (head).cqh_first = (elm2); \ | ||
580 | else \ | ||
581 | (elm2)->field.cqe_prev->field.cqe_next = (elm2); \ | ||
582 | } while (0) | ||
583 | |||
584 | #endif /* !_FAKE_QUEUE_H_ */ | ||
diff --git a/openbsd-compat/tree.h b/openbsd-compat/tree.h new file mode 100644 index 000000000..30b4a8561 --- /dev/null +++ b/openbsd-compat/tree.h | |||
@@ -0,0 +1,667 @@ | |||
1 | /* | ||
2 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * 1. Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * 2. Redistributions in binary form must reproduce the above copyright | ||
11 | * notice, this list of conditions and the following disclaimer in the | ||
12 | * documentation and/or other materials provided with the distribution. | ||
13 | * | ||
14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
15 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
16 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
17 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
18 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
19 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
20 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
21 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
23 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
24 | */ | ||
25 | |||
26 | #ifndef _SYS_TREE_H_ | ||
27 | #define _SYS_TREE_H_ | ||
28 | |||
29 | /* | ||
30 | * This file defines data structures for different types of trees: | ||
31 | * splay trees and red-black trees. | ||
32 | * | ||
33 | * A splay tree is a self-organizing data structure. Every operation | ||
34 | * on the tree causes a splay to happen. The splay moves the requested | ||
35 | * node to the root of the tree and partly rebalances it. | ||
36 | * | ||
37 | * This has the benefit that request locality causes faster lookups as | ||
38 | * the requested nodes move to the top of the tree. On the other hand, | ||
39 | * every lookup causes memory writes. | ||
40 | * | ||
41 | * The Balance Theorem bounds the total access time for m operations | ||
42 | * and n inserts on an initially empty tree as O((m + n)lg n). The | ||
43 | * amortized cost for a sequence of m accesses to a splay tree is O(lg n); | ||
44 | * | ||
45 | * A red-black tree is a binary search tree with the node color as an | ||
46 | * extra attribute. It fulfills a set of conditions: | ||
47 | * - every search path from the root to a leaf consists of the | ||
48 | * same number of black nodes, | ||
49 | * - each red node (except for the root) has a black parent, | ||
50 | * - each leaf node is black. | ||
51 | * | ||
52 | * Every operation on a red-black tree is bounded as O(lg n). | ||
53 | * The maximum height of a red-black tree is 2lg (n+1). | ||
54 | */ | ||
55 | |||
56 | #define SPLAY_HEAD(name, type) \ | ||
57 | struct name { \ | ||
58 | struct type *sph_root; /* root of the tree */ \ | ||
59 | } | ||
60 | |||
61 | #define SPLAY_INITIALIZER(root) \ | ||
62 | { NULL } | ||
63 | |||
64 | #define SPLAY_INIT(root) do { \ | ||
65 | (root)->sph_root = NULL; \ | ||
66 | } while (0) | ||
67 | |||
68 | #define SPLAY_ENTRY(type) \ | ||
69 | struct { \ | ||
70 | struct type *spe_left; /* left element */ \ | ||
71 | struct type *spe_right; /* right element */ \ | ||
72 | } | ||
73 | |||
74 | #define SPLAY_LEFT(elm, field) (elm)->field.spe_left | ||
75 | #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right | ||
76 | #define SPLAY_ROOT(head) (head)->sph_root | ||
77 | #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) | ||
78 | |||
79 | /* SPLAY_ROTATE_{LEFT,RIGHT} expect that tmp hold SPLAY_{RIGHT,LEFT} */ | ||
80 | #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ | ||
81 | SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ | ||
82 | SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ | ||
83 | (head)->sph_root = tmp; \ | ||
84 | } while (0) | ||
85 | |||
86 | #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ | ||
87 | SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ | ||
88 | SPLAY_LEFT(tmp, field) = (head)->sph_root; \ | ||
89 | (head)->sph_root = tmp; \ | ||
90 | } while (0) | ||
91 | |||
92 | #define SPLAY_LINKLEFT(head, tmp, field) do { \ | ||
93 | SPLAY_LEFT(tmp, field) = (head)->sph_root; \ | ||
94 | tmp = (head)->sph_root; \ | ||
95 | (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \ | ||
96 | } while (0) | ||
97 | |||
98 | #define SPLAY_LINKRIGHT(head, tmp, field) do { \ | ||
99 | SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ | ||
100 | tmp = (head)->sph_root; \ | ||
101 | (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \ | ||
102 | } while (0) | ||
103 | |||
104 | #define SPLAY_ASSEMBLE(head, node, left, right, field) do { \ | ||
105 | SPLAY_RIGHT(left, field) = SPLAY_LEFT((head)->sph_root, field); \ | ||
106 | SPLAY_LEFT(right, field) = SPLAY_RIGHT((head)->sph_root, field);\ | ||
107 | SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(node, field); \ | ||
108 | SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(node, field); \ | ||
109 | } while (0) | ||
110 | |||
111 | /* Generates prototypes and inline functions */ | ||
112 | |||
113 | #define SPLAY_PROTOTYPE(name, type, field, cmp) \ | ||
114 | void name##_SPLAY(struct name *, struct type *); \ | ||
115 | void name##_SPLAY_MINMAX(struct name *, int); \ | ||
116 | \ | ||
117 | static __inline void \ | ||
118 | name##_SPLAY_INSERT(struct name *head, struct type *elm) \ | ||
119 | { \ | ||
120 | if (SPLAY_EMPTY(head)) { \ | ||
121 | SPLAY_LEFT(elm, field) = SPLAY_RIGHT(elm, field) = NULL; \ | ||
122 | } else { \ | ||
123 | int __comp; \ | ||
124 | name##_SPLAY(head, elm); \ | ||
125 | __comp = (cmp)(elm, (head)->sph_root); \ | ||
126 | if(__comp < 0) { \ | ||
127 | SPLAY_LEFT(elm, field) = SPLAY_LEFT((head)->sph_root, field);\ | ||
128 | SPLAY_RIGHT(elm, field) = (head)->sph_root; \ | ||
129 | SPLAY_LEFT((head)->sph_root, field) = NULL; \ | ||
130 | } else if (__comp > 0) { \ | ||
131 | SPLAY_RIGHT(elm, field) = SPLAY_RIGHT((head)->sph_root, field);\ | ||
132 | SPLAY_LEFT(elm, field) = (head)->sph_root; \ | ||
133 | SPLAY_RIGHT((head)->sph_root, field) = NULL; \ | ||
134 | } else \ | ||
135 | return; \ | ||
136 | } \ | ||
137 | (head)->sph_root = (elm); \ | ||
138 | } \ | ||
139 | \ | ||
140 | static __inline void \ | ||
141 | name##_SPLAY_REMOVE(struct name *head, struct type *elm) \ | ||
142 | { \ | ||
143 | struct type *__tmp; \ | ||
144 | if (SPLAY_EMPTY(head)) \ | ||
145 | return; \ | ||
146 | name##_SPLAY(head, elm); \ | ||
147 | if ((cmp)(elm, (head)->sph_root) == 0) { \ | ||
148 | if (SPLAY_LEFT((head)->sph_root, field) == NULL) { \ | ||
149 | (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\ | ||
150 | } else { \ | ||
151 | __tmp = SPLAY_RIGHT((head)->sph_root, field); \ | ||
152 | (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\ | ||
153 | name##_SPLAY(head, elm); \ | ||
154 | SPLAY_RIGHT((head)->sph_root, field) = __tmp; \ | ||
155 | } \ | ||
156 | } \ | ||
157 | } \ | ||
158 | \ | ||
159 | /* Finds the node with the same key as elm */ \ | ||
160 | static __inline struct type * \ | ||
161 | name##_SPLAY_FIND(struct name *head, struct type *elm) \ | ||
162 | { \ | ||
163 | if (SPLAY_EMPTY(head)) \ | ||
164 | return(NULL); \ | ||
165 | name##_SPLAY(head, elm); \ | ||
166 | if ((cmp)(elm, (head)->sph_root) == 0) \ | ||
167 | return (head->sph_root); \ | ||
168 | return (NULL); \ | ||
169 | } \ | ||
170 | \ | ||
171 | static __inline struct type * \ | ||
172 | name##_SPLAY_NEXT(struct name *head, struct type *elm) \ | ||
173 | { \ | ||
174 | name##_SPLAY(head, elm); \ | ||
175 | if (SPLAY_RIGHT(elm, field) != NULL) { \ | ||
176 | elm = SPLAY_RIGHT(elm, field); \ | ||
177 | while (SPLAY_LEFT(elm, field) != NULL) { \ | ||
178 | elm = SPLAY_LEFT(elm, field); \ | ||
179 | } \ | ||
180 | } else \ | ||
181 | elm = NULL; \ | ||
182 | return (elm); \ | ||
183 | } \ | ||
184 | \ | ||
185 | static __inline struct type * \ | ||
186 | name##_SPLAY_MIN_MAX(struct name *head, int val) \ | ||
187 | { \ | ||
188 | name##_SPLAY_MINMAX(head, val); \ | ||
189 | return (SPLAY_ROOT(head)); \ | ||
190 | } | ||
191 | |||
192 | /* Main splay operation. | ||
193 | * Moves node close to the key of elm to top | ||
194 | */ | ||
195 | #define SPLAY_GENERATE(name, type, field, cmp) \ | ||
196 | void name##_SPLAY(struct name *head, struct type *elm) \ | ||
197 | { \ | ||
198 | struct type __node, *__left, *__right, *__tmp; \ | ||
199 | int __comp; \ | ||
200 | \ | ||
201 | SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\ | ||
202 | __left = __right = &__node; \ | ||
203 | \ | ||
204 | while ((__comp = (cmp)(elm, (head)->sph_root))) { \ | ||
205 | if (__comp < 0) { \ | ||
206 | __tmp = SPLAY_LEFT((head)->sph_root, field); \ | ||
207 | if (__tmp == NULL) \ | ||
208 | break; \ | ||
209 | if ((cmp)(elm, __tmp) < 0){ \ | ||
210 | SPLAY_ROTATE_RIGHT(head, __tmp, field); \ | ||
211 | if (SPLAY_LEFT((head)->sph_root, field) == NULL)\ | ||
212 | break; \ | ||
213 | } \ | ||
214 | SPLAY_LINKLEFT(head, __right, field); \ | ||
215 | } else if (__comp > 0) { \ | ||
216 | __tmp = SPLAY_RIGHT((head)->sph_root, field); \ | ||
217 | if (__tmp == NULL) \ | ||
218 | break; \ | ||
219 | if ((cmp)(elm, __tmp) > 0){ \ | ||
220 | SPLAY_ROTATE_LEFT(head, __tmp, field); \ | ||
221 | if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\ | ||
222 | break; \ | ||
223 | } \ | ||
224 | SPLAY_LINKRIGHT(head, __left, field); \ | ||
225 | } \ | ||
226 | } \ | ||
227 | SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \ | ||
228 | } \ | ||
229 | \ | ||
230 | /* Splay with either the minimum or the maximum element \ | ||
231 | * Used to find minimum or maximum element in tree. \ | ||
232 | */ \ | ||
233 | void name##_SPLAY_MINMAX(struct name *head, int __comp) \ | ||
234 | { \ | ||
235 | struct type __node, *__left, *__right, *__tmp; \ | ||
236 | \ | ||
237 | SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\ | ||
238 | __left = __right = &__node; \ | ||
239 | \ | ||
240 | while (1) { \ | ||
241 | if (__comp < 0) { \ | ||
242 | __tmp = SPLAY_LEFT((head)->sph_root, field); \ | ||
243 | if (__tmp == NULL) \ | ||
244 | break; \ | ||
245 | if (__comp < 0){ \ | ||
246 | SPLAY_ROTATE_RIGHT(head, __tmp, field); \ | ||
247 | if (SPLAY_LEFT((head)->sph_root, field) == NULL)\ | ||
248 | break; \ | ||
249 | } \ | ||
250 | SPLAY_LINKLEFT(head, __right, field); \ | ||
251 | } else if (__comp > 0) { \ | ||
252 | __tmp = SPLAY_RIGHT((head)->sph_root, field); \ | ||
253 | if (__tmp == NULL) \ | ||
254 | break; \ | ||
255 | if (__comp > 0) { \ | ||
256 | SPLAY_ROTATE_LEFT(head, __tmp, field); \ | ||
257 | if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\ | ||
258 | break; \ | ||
259 | } \ | ||
260 | SPLAY_LINKRIGHT(head, __left, field); \ | ||
261 | } \ | ||
262 | } \ | ||
263 | SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \ | ||
264 | } | ||
265 | |||
266 | #define SPLAY_NEGINF -1 | ||
267 | #define SPLAY_INF 1 | ||
268 | |||
269 | #define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y) | ||
270 | #define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y) | ||
271 | #define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y) | ||
272 | #define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y) | ||
273 | #define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \ | ||
274 | : name##_SPLAY_MIN_MAX(x, SPLAY_NEGINF)) | ||
275 | #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ | ||
276 | : name##_SPLAY_MIN_MAX(x, SPLAY_INF)) | ||
277 | |||
278 | #define SPLAY_FOREACH(x, name, head) \ | ||
279 | for ((x) = SPLAY_MIN(name, head); \ | ||
280 | (x) != NULL; \ | ||
281 | (x) = SPLAY_NEXT(name, head, x)) | ||
282 | |||
283 | /* Macros that define a red-back tree */ | ||
284 | #define RB_HEAD(name, type) \ | ||
285 | struct name { \ | ||
286 | struct type *rbh_root; /* root of the tree */ \ | ||
287 | } | ||
288 | |||
289 | #define RB_INITIALIZER(root) \ | ||
290 | { NULL } | ||
291 | |||
292 | #define RB_INIT(root) do { \ | ||
293 | (root)->rbh_root = NULL; \ | ||
294 | } while (0) | ||
295 | |||
296 | #define RB_BLACK 0 | ||
297 | #define RB_RED 1 | ||
298 | #define RB_ENTRY(type) \ | ||
299 | struct { \ | ||
300 | struct type *rbe_left; /* left element */ \ | ||
301 | struct type *rbe_right; /* right element */ \ | ||
302 | struct type *rbe_parent; /* parent element */ \ | ||
303 | int rbe_color; /* node color */ \ | ||
304 | } | ||
305 | |||
306 | #define RB_LEFT(elm, field) (elm)->field.rbe_left | ||
307 | #define RB_RIGHT(elm, field) (elm)->field.rbe_right | ||
308 | #define RB_PARENT(elm, field) (elm)->field.rbe_parent | ||
309 | #define RB_COLOR(elm, field) (elm)->field.rbe_color | ||
310 | #define RB_ROOT(head) (head)->rbh_root | ||
311 | #define RB_EMPTY(head) (RB_ROOT(head) == NULL) | ||
312 | |||
313 | #define RB_SET(elm, parent, field) do { \ | ||
314 | RB_PARENT(elm, field) = parent; \ | ||
315 | RB_LEFT(elm, field) = RB_RIGHT(elm, field) = NULL; \ | ||
316 | RB_COLOR(elm, field) = RB_RED; \ | ||
317 | } while (0) | ||
318 | |||
319 | #define RB_SET_BLACKRED(black, red, field) do { \ | ||
320 | RB_COLOR(black, field) = RB_BLACK; \ | ||
321 | RB_COLOR(red, field) = RB_RED; \ | ||
322 | } while (0) | ||
323 | |||
324 | #ifndef RB_AUGMENT | ||
325 | #define RB_AUGMENT(x) | ||
326 | #endif | ||
327 | |||
328 | #define RB_ROTATE_LEFT(head, elm, tmp, field) do { \ | ||
329 | (tmp) = RB_RIGHT(elm, field); \ | ||
330 | if ((RB_RIGHT(elm, field) = RB_LEFT(tmp, field))) { \ | ||
331 | RB_PARENT(RB_LEFT(tmp, field), field) = (elm); \ | ||
332 | } \ | ||
333 | RB_AUGMENT(elm); \ | ||
334 | if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \ | ||
335 | if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \ | ||
336 | RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \ | ||
337 | else \ | ||
338 | RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \ | ||
339 | RB_AUGMENT(RB_PARENT(elm, field)); \ | ||
340 | } else \ | ||
341 | (head)->rbh_root = (tmp); \ | ||
342 | RB_LEFT(tmp, field) = (elm); \ | ||
343 | RB_PARENT(elm, field) = (tmp); \ | ||
344 | RB_AUGMENT(tmp); \ | ||
345 | } while (0) | ||
346 | |||
347 | #define RB_ROTATE_RIGHT(head, elm, tmp, field) do { \ | ||
348 | (tmp) = RB_LEFT(elm, field); \ | ||
349 | if ((RB_LEFT(elm, field) = RB_RIGHT(tmp, field))) { \ | ||
350 | RB_PARENT(RB_RIGHT(tmp, field), field) = (elm); \ | ||
351 | } \ | ||
352 | RB_AUGMENT(elm); \ | ||
353 | if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \ | ||
354 | if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \ | ||
355 | RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \ | ||
356 | else \ | ||
357 | RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \ | ||
358 | RB_AUGMENT(RB_PARENT(elm, field)); \ | ||
359 | } else \ | ||
360 | (head)->rbh_root = (tmp); \ | ||
361 | RB_RIGHT(tmp, field) = (elm); \ | ||
362 | RB_PARENT(elm, field) = (tmp); \ | ||
363 | RB_AUGMENT(tmp); \ | ||
364 | } while (0) | ||
365 | |||
366 | /* Generates prototypes and inline functions */ | ||
367 | #define RB_PROTOTYPE(name, type, field, cmp) \ | ||
368 | void name##_RB_INSERT_COLOR(struct name *, struct type *); \ | ||
369 | void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\ | ||
370 | void name##_RB_REMOVE(struct name *, struct type *); \ | ||
371 | struct type *name##_RB_INSERT(struct name *, struct type *); \ | ||
372 | struct type *name##_RB_FIND(struct name *, struct type *); \ | ||
373 | struct type *name##_RB_NEXT(struct name *, struct type *); \ | ||
374 | struct type *name##_RB_MINMAX(struct name *, int); \ | ||
375 | \ | ||
376 | |||
377 | /* Main rb operation. | ||
378 | * Moves node close to the key of elm to top | ||
379 | */ | ||
380 | #define RB_GENERATE(name, type, field, cmp) \ | ||
381 | void \ | ||
382 | name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \ | ||
383 | { \ | ||
384 | struct type *parent, *gparent, *tmp; \ | ||
385 | while ((parent = RB_PARENT(elm, field)) && \ | ||
386 | RB_COLOR(parent, field) == RB_RED) { \ | ||
387 | gparent = RB_PARENT(parent, field); \ | ||
388 | if (parent == RB_LEFT(gparent, field)) { \ | ||
389 | tmp = RB_RIGHT(gparent, field); \ | ||
390 | if (tmp && RB_COLOR(tmp, field) == RB_RED) { \ | ||
391 | RB_COLOR(tmp, field) = RB_BLACK; \ | ||
392 | RB_SET_BLACKRED(parent, gparent, field);\ | ||
393 | elm = gparent; \ | ||
394 | continue; \ | ||
395 | } \ | ||
396 | if (RB_RIGHT(parent, field) == elm) { \ | ||
397 | RB_ROTATE_LEFT(head, parent, tmp, field);\ | ||
398 | tmp = parent; \ | ||
399 | parent = elm; \ | ||
400 | elm = tmp; \ | ||
401 | } \ | ||
402 | RB_SET_BLACKRED(parent, gparent, field); \ | ||
403 | RB_ROTATE_RIGHT(head, gparent, tmp, field); \ | ||
404 | } else { \ | ||
405 | tmp = RB_LEFT(gparent, field); \ | ||
406 | if (tmp && RB_COLOR(tmp, field) == RB_RED) { \ | ||
407 | RB_COLOR(tmp, field) = RB_BLACK; \ | ||
408 | RB_SET_BLACKRED(parent, gparent, field);\ | ||
409 | elm = gparent; \ | ||
410 | continue; \ | ||
411 | } \ | ||
412 | if (RB_LEFT(parent, field) == elm) { \ | ||
413 | RB_ROTATE_RIGHT(head, parent, tmp, field);\ | ||
414 | tmp = parent; \ | ||
415 | parent = elm; \ | ||
416 | elm = tmp; \ | ||
417 | } \ | ||
418 | RB_SET_BLACKRED(parent, gparent, field); \ | ||
419 | RB_ROTATE_LEFT(head, gparent, tmp, field); \ | ||
420 | } \ | ||
421 | } \ | ||
422 | RB_COLOR(head->rbh_root, field) = RB_BLACK; \ | ||
423 | } \ | ||
424 | \ | ||
425 | void \ | ||
426 | name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, struct type *elm) \ | ||
427 | { \ | ||
428 | struct type *tmp; \ | ||
429 | while ((elm == NULL || RB_COLOR(elm, field) == RB_BLACK) && \ | ||
430 | elm != RB_ROOT(head)) { \ | ||
431 | if (RB_LEFT(parent, field) == elm) { \ | ||
432 | tmp = RB_RIGHT(parent, field); \ | ||
433 | if (RB_COLOR(tmp, field) == RB_RED) { \ | ||
434 | RB_SET_BLACKRED(tmp, parent, field); \ | ||
435 | RB_ROTATE_LEFT(head, parent, tmp, field);\ | ||
436 | tmp = RB_RIGHT(parent, field); \ | ||
437 | } \ | ||
438 | if ((RB_LEFT(tmp, field) == NULL || \ | ||
439 | RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\ | ||
440 | (RB_RIGHT(tmp, field) == NULL || \ | ||
441 | RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\ | ||
442 | RB_COLOR(tmp, field) = RB_RED; \ | ||
443 | elm = parent; \ | ||
444 | parent = RB_PARENT(elm, field); \ | ||
445 | } else { \ | ||
446 | if (RB_RIGHT(tmp, field) == NULL || \ | ||
447 | RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK) {\ | ||
448 | struct type *oleft; \ | ||
449 | if ((oleft = RB_LEFT(tmp, field)))\ | ||
450 | RB_COLOR(oleft, field) = RB_BLACK;\ | ||
451 | RB_COLOR(tmp, field) = RB_RED; \ | ||
452 | RB_ROTATE_RIGHT(head, tmp, oleft, field);\ | ||
453 | tmp = RB_RIGHT(parent, field); \ | ||
454 | } \ | ||
455 | RB_COLOR(tmp, field) = RB_COLOR(parent, field);\ | ||
456 | RB_COLOR(parent, field) = RB_BLACK; \ | ||
457 | if (RB_RIGHT(tmp, field)) \ | ||
458 | RB_COLOR(RB_RIGHT(tmp, field), field) = RB_BLACK;\ | ||
459 | RB_ROTATE_LEFT(head, parent, tmp, field);\ | ||
460 | elm = RB_ROOT(head); \ | ||
461 | break; \ | ||
462 | } \ | ||
463 | } else { \ | ||
464 | tmp = RB_LEFT(parent, field); \ | ||
465 | if (RB_COLOR(tmp, field) == RB_RED) { \ | ||
466 | RB_SET_BLACKRED(tmp, parent, field); \ | ||
467 | RB_ROTATE_RIGHT(head, parent, tmp, field);\ | ||
468 | tmp = RB_LEFT(parent, field); \ | ||
469 | } \ | ||
470 | if ((RB_LEFT(tmp, field) == NULL || \ | ||
471 | RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\ | ||
472 | (RB_RIGHT(tmp, field) == NULL || \ | ||
473 | RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\ | ||
474 | RB_COLOR(tmp, field) = RB_RED; \ | ||
475 | elm = parent; \ | ||
476 | parent = RB_PARENT(elm, field); \ | ||
477 | } else { \ | ||
478 | if (RB_LEFT(tmp, field) == NULL || \ | ||
479 | RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) {\ | ||
480 | struct type *oright; \ | ||
481 | if ((oright = RB_RIGHT(tmp, field)))\ | ||
482 | RB_COLOR(oright, field) = RB_BLACK;\ | ||
483 | RB_COLOR(tmp, field) = RB_RED; \ | ||
484 | RB_ROTATE_LEFT(head, tmp, oright, field);\ | ||
485 | tmp = RB_LEFT(parent, field); \ | ||
486 | } \ | ||
487 | RB_COLOR(tmp, field) = RB_COLOR(parent, field);\ | ||
488 | RB_COLOR(parent, field) = RB_BLACK; \ | ||
489 | if (RB_LEFT(tmp, field)) \ | ||
490 | RB_COLOR(RB_LEFT(tmp, field), field) = RB_BLACK;\ | ||
491 | RB_ROTATE_RIGHT(head, parent, tmp, field);\ | ||
492 | elm = RB_ROOT(head); \ | ||
493 | break; \ | ||
494 | } \ | ||
495 | } \ | ||
496 | } \ | ||
497 | if (elm) \ | ||
498 | RB_COLOR(elm, field) = RB_BLACK; \ | ||
499 | } \ | ||
500 | \ | ||
501 | void \ | ||
502 | name##_RB_REMOVE(struct name *head, struct type *elm) \ | ||
503 | { \ | ||
504 | struct type *child, *parent; \ | ||
505 | int color; \ | ||
506 | if (RB_LEFT(elm, field) == NULL) \ | ||
507 | child = RB_RIGHT(elm, field); \ | ||
508 | else if (RB_RIGHT(elm, field) == NULL) \ | ||
509 | child = RB_LEFT(elm, field); \ | ||
510 | else { \ | ||
511 | struct type *old = elm, *left; \ | ||
512 | elm = RB_RIGHT(elm, field); \ | ||
513 | while ((left = RB_LEFT(elm, field))) \ | ||
514 | elm = left; \ | ||
515 | child = RB_RIGHT(elm, field); \ | ||
516 | parent = RB_PARENT(elm, field); \ | ||
517 | color = RB_COLOR(elm, field); \ | ||
518 | if (child) \ | ||
519 | RB_PARENT(child, field) = parent; \ | ||
520 | if (parent) { \ | ||
521 | if (RB_LEFT(parent, field) == elm) \ | ||
522 | RB_LEFT(parent, field) = child; \ | ||
523 | else \ | ||
524 | RB_RIGHT(parent, field) = child; \ | ||
525 | RB_AUGMENT(parent); \ | ||
526 | } else \ | ||
527 | RB_ROOT(head) = child; \ | ||
528 | if (RB_PARENT(elm, field) == old) \ | ||
529 | parent = elm; \ | ||
530 | (elm)->field = (old)->field; \ | ||
531 | if (RB_PARENT(old, field)) { \ | ||
532 | if (RB_LEFT(RB_PARENT(old, field), field) == old)\ | ||
533 | RB_LEFT(RB_PARENT(old, field), field) = elm;\ | ||
534 | else \ | ||
535 | RB_RIGHT(RB_PARENT(old, field), field) = elm;\ | ||
536 | RB_AUGMENT(RB_PARENT(old, field)); \ | ||
537 | } else \ | ||
538 | RB_ROOT(head) = elm; \ | ||
539 | RB_PARENT(RB_LEFT(old, field), field) = elm; \ | ||
540 | if (RB_RIGHT(old, field)) \ | ||
541 | RB_PARENT(RB_RIGHT(old, field), field) = elm; \ | ||
542 | if (parent) { \ | ||
543 | left = parent; \ | ||
544 | do { \ | ||
545 | RB_AUGMENT(left); \ | ||
546 | } while ((left = RB_PARENT(left, field))); \ | ||
547 | } \ | ||
548 | goto color; \ | ||
549 | } \ | ||
550 | parent = RB_PARENT(elm, field); \ | ||
551 | color = RB_COLOR(elm, field); \ | ||
552 | if (child) \ | ||
553 | RB_PARENT(child, field) = parent; \ | ||
554 | if (parent) { \ | ||
555 | if (RB_LEFT(parent, field) == elm) \ | ||
556 | RB_LEFT(parent, field) = child; \ | ||
557 | else \ | ||
558 | RB_RIGHT(parent, field) = child; \ | ||
559 | RB_AUGMENT(parent); \ | ||
560 | } else \ | ||
561 | RB_ROOT(head) = child; \ | ||
562 | color: \ | ||
563 | if (color == RB_BLACK) \ | ||
564 | name##_RB_REMOVE_COLOR(head, parent, child); \ | ||
565 | } \ | ||
566 | \ | ||
567 | /* Inserts a node into the RB tree */ \ | ||
568 | struct type * \ | ||
569 | name##_RB_INSERT(struct name *head, struct type *elm) \ | ||
570 | { \ | ||
571 | struct type *tmp; \ | ||
572 | struct type *parent = NULL; \ | ||
573 | int comp = 0; \ | ||
574 | tmp = RB_ROOT(head); \ | ||
575 | while (tmp) { \ | ||
576 | parent = tmp; \ | ||
577 | comp = (cmp)(elm, parent); \ | ||
578 | if (comp < 0) \ | ||
579 | tmp = RB_LEFT(tmp, field); \ | ||
580 | else if (comp > 0) \ | ||
581 | tmp = RB_RIGHT(tmp, field); \ | ||
582 | else \ | ||
583 | return (tmp); \ | ||
584 | } \ | ||
585 | RB_SET(elm, parent, field); \ | ||
586 | if (parent != NULL) { \ | ||
587 | if (comp < 0) \ | ||
588 | RB_LEFT(parent, field) = elm; \ | ||
589 | else \ | ||
590 | RB_RIGHT(parent, field) = elm; \ | ||
591 | RB_AUGMENT(parent); \ | ||
592 | } else \ | ||
593 | RB_ROOT(head) = elm; \ | ||
594 | name##_RB_INSERT_COLOR(head, elm); \ | ||
595 | return (NULL); \ | ||
596 | } \ | ||
597 | \ | ||
598 | /* Finds the node with the same key as elm */ \ | ||
599 | struct type * \ | ||
600 | name##_RB_FIND(struct name *head, struct type *elm) \ | ||
601 | { \ | ||
602 | struct type *tmp = RB_ROOT(head); \ | ||
603 | int comp; \ | ||
604 | while (tmp) { \ | ||
605 | comp = cmp(elm, tmp); \ | ||
606 | if (comp < 0) \ | ||
607 | tmp = RB_LEFT(tmp, field); \ | ||
608 | else if (comp > 0) \ | ||
609 | tmp = RB_RIGHT(tmp, field); \ | ||
610 | else \ | ||
611 | return (tmp); \ | ||
612 | } \ | ||
613 | return (NULL); \ | ||
614 | } \ | ||
615 | \ | ||
616 | struct type * \ | ||
617 | name##_RB_NEXT(struct name *head, struct type *elm) \ | ||
618 | { \ | ||
619 | if (RB_RIGHT(elm, field)) { \ | ||
620 | elm = RB_RIGHT(elm, field); \ | ||
621 | while (RB_LEFT(elm, field)) \ | ||
622 | elm = RB_LEFT(elm, field); \ | ||
623 | } else { \ | ||
624 | if (RB_PARENT(elm, field) && \ | ||
625 | (elm == RB_LEFT(RB_PARENT(elm, field), field))) \ | ||
626 | elm = RB_PARENT(elm, field); \ | ||
627 | else { \ | ||
628 | while (RB_PARENT(elm, field) && \ | ||
629 | (elm == RB_RIGHT(RB_PARENT(elm, field), field)))\ | ||
630 | elm = RB_PARENT(elm, field); \ | ||
631 | elm = RB_PARENT(elm, field); \ | ||
632 | } \ | ||
633 | } \ | ||
634 | return (elm); \ | ||
635 | } \ | ||
636 | \ | ||
637 | struct type * \ | ||
638 | name##_RB_MINMAX(struct name *head, int val) \ | ||
639 | { \ | ||
640 | struct type *tmp = RB_ROOT(head); \ | ||
641 | struct type *parent = NULL; \ | ||
642 | while (tmp) { \ | ||
643 | parent = tmp; \ | ||
644 | if (val < 0) \ | ||
645 | tmp = RB_LEFT(tmp, field); \ | ||
646 | else \ | ||
647 | tmp = RB_RIGHT(tmp, field); \ | ||
648 | } \ | ||
649 | return (parent); \ | ||
650 | } | ||
651 | |||
652 | #define RB_NEGINF -1 | ||
653 | #define RB_INF 1 | ||
654 | |||
655 | #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) | ||
656 | #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) | ||
657 | #define RB_FIND(name, x, y) name##_RB_FIND(x, y) | ||
658 | #define RB_NEXT(name, x, y) name##_RB_NEXT(x, y) | ||
659 | #define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF) | ||
660 | #define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF) | ||
661 | |||
662 | #define RB_FOREACH(x, name, head) \ | ||
663 | for ((x) = RB_MIN(name, head); \ | ||
664 | (x) != NULL; \ | ||
665 | (x) = name##_RB_NEXT(head, x)) | ||
666 | |||
667 | #endif /* _SYS_TREE_H_ */ | ||
diff --git a/scard/Ssh.bin b/scard/Ssh.bin new file mode 100644 index 000000000..edbadc618 --- /dev/null +++ b/scard/Ssh.bin | |||
Binary files differ | |||
@@ -0,0 +1,93 @@ | |||
1 | SCP(1) BSD General Commands Manual SCP(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1mscp ^[[22mM-bMM-^R secure copy (remote file copy program) | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1mscp ^[[22m[^[[1mM-bMM-^RpqrvBC1246^[[22m] [^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[24m] [^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[24m] [^[[1mM-bMM-^RP ^[[4m^[[22mport^[[24m] [^[[1mM-bMM-^Rc ^[[4m^[[22mcipher^[[24m] | ||
8 | [^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[24m] [^[[1mM-bMM-^Rl ^[[4m^[[22mlimit^[[24m] [^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[24m] [[^[[4muser@^[[24m]^[[4mhost1^[[24m:]^[[4mfile1^[[0m | ||
9 | [^[[4m...^[[24m] [[^[[4muser@^[[24m]^[[4mhost2^[[24m:]^[[4mfile2^[[0m | ||
10 | |||
11 | ^[[1mDESCRIPTION^[[0m | ||
12 | ^[[1mscp ^[[22mcopies files between hosts on a network. It uses ssh(1) for data | ||
13 | transfer, and uses the same authentication and provides the same security | ||
14 | as ssh(1). Unlike rcp(1), ^[[1mscp ^[[22mwill ask for passwords or passphrases if | ||
15 | they are needed for authentication. | ||
16 | |||
17 | Any file name may contain a host and user specification to indicate that | ||
18 | the file is to be copied to/from that host. Copies between two remote | ||
19 | hosts are permitted. | ||
20 | |||
21 | The options are as follows: | ||
22 | |||
23 | ^[[1mM-bMM-^Rc ^[[4m^[[22mcipher^[[0m | ||
24 | Selects the cipher to use for encrypting the data transfer. This | ||
25 | option is directly passed to ssh(1). | ||
26 | |||
27 | ^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[0m | ||
28 | Selects the file from which the identity (private key) for RSA | ||
29 | authentication is read. This option is directly passed to | ||
30 | ssh(1). | ||
31 | |||
32 | ^[[1mM-bMM-^Rl ^[[4m^[[22mlimit^[[0m | ||
33 | Limits the used bandwidth, specified in Kbit/s. | ||
34 | |||
35 | ^[[1mM-bMM-^Rp ^[[22mPreserves modification times, access times, and modes from the | ||
36 | original file. | ||
37 | |||
38 | ^[[1mM-bMM-^Rr ^[[22mRecursively copy entire directories. | ||
39 | |||
40 | ^[[1mM-bMM-^Rv ^[[22mVerbose mode. Causes ^[[1mscp ^[[22mand ssh(1) to print debugging messages | ||
41 | about their progress. This is helpful in debugging connection, | ||
42 | authentication, and configuration problems. | ||
43 | |||
44 | ^[[1mM-bMM-^RB ^[[22mSelects batch mode (prevents asking for passwords or | ||
45 | passphrases). | ||
46 | |||
47 | ^[[1mM-bMM-^Rq ^[[22mDisables the progress meter. | ||
48 | |||
49 | ^[[1mM-bMM-^RC ^[[22mCompression enable. Passes the ^[[1mM-bMM-^RC ^[[22mflag to ssh(1) to enable comM-bM-^@M-^P | ||
50 | pression. | ||
51 | |||
52 | ^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[0m | ||
53 | Specifies an alternative perM-bM-^@M-^Puser configuration file for ^[[1mssh^[[22m. | ||
54 | This option is directly passed to ssh(1). | ||
55 | |||
56 | ^[[1mM-bMM-^RP ^[[4m^[[22mport^[[0m | ||
57 | Specifies the port to connect to on the remote host. Note that | ||
58 | this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because ^[[1mM-bMM-^Rp ^[[22mis already | ||
59 | reserved for preserving the times and modes of the file in | ||
60 | rcp(1). | ||
61 | |||
62 | ^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[0m | ||
63 | Name of ^[[4mprogram^[[24m to use for the encrypted connection. The program | ||
64 | must understand ssh(1) options. | ||
65 | |||
66 | ^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[0m | ||
67 | Can be used to pass options to ^[[1mssh ^[[22min the format used in | ||
68 | ssh_config(5). This is useful for specifying options for which | ||
69 | there is no separate ^[[1mscp ^[[22mcommandM-bM-^@M-^Pline flag. | ||
70 | |||
71 | ^[[1mM-bMM-^R1 ^[[22mForces ^[[1mscp ^[[22mto use protocol 1. | ||
72 | |||
73 | ^[[1mM-bMM-^R2 ^[[22mForces ^[[1mscp ^[[22mto use protocol 2. | ||
74 | |||
75 | ^[[1mM-bMM-^R4 ^[[22mForces ^[[1mscp ^[[22mto use IPv4 addresses only. | ||
76 | |||
77 | ^[[1mM-bMM-^R6 ^[[22mForces ^[[1mscp ^[[22mto use IPv6 addresses only. | ||
78 | |||
79 | ^[[1mDIAGNOSTICS^[[0m | ||
80 | ^[[1mscp ^[[22mexits with 0 on success or >0 if an error occurred. | ||
81 | |||
82 | ^[[1mAUTHORS^[[0m | ||
83 | Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi> | ||
84 | |||
85 | ^[[1mHISTORY^[[0m | ||
86 | ^[[1mscp ^[[22mis based on the rcp(1) program in BSD source code from the Regents of | ||
87 | the University of California. | ||
88 | |||
89 | ^[[1mSEE ALSO^[[0m | ||
90 | rcp(1), sftp(1), ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), | ||
91 | ssh_config(5), sshd(8) | ||
92 | |||
93 | BSD September 25, 1999 BSD | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..1519dfdfc --- /dev/null +++ b/sftp-server.0 | |||
@@ -0,0 +1,27 @@ | |||
1 | SFTPM-bM-^@M-^PSERVER(8) BSD System ManagerM-bM-^@M-^Ys Manual SFTPM-bM-^@M-^PSERVER(8) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msftpM-bM-^@M-^Pserver ^[[22mM-bMM-^R SFTP server subsystem | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msftpM-bM-^@M-^Pserver^[[0m | ||
8 | |||
9 | ^[[1mDESCRIPTION^[[0m | ||
10 | ^[[1msftpM-bM-^@M-^Pserver ^[[22mis a program that speaks the server side of SFTP protocol to | ||
11 | stdout and expects client requests from stdin. ^[[1msftpM-bM-^@M-^Pserver ^[[22mis not | ||
12 | intended to be called directly, but from sshd(8) using the ^[[1mSubsystem^[[0m | ||
13 | option. See sshd(8) for more information. | ||
14 | |||
15 | ^[[1mSEE ALSO^[[0m | ||
16 | sftp(1), ssh(1), sshd(8) | ||
17 | |||
18 | T. Ylonen and S. Lehtinen, ^[[4mSSH^[[24m ^[[4mFile^[[24m ^[[4mTransfer^[[24m ^[[4mProtocol^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^PsecshM-bM-^@M-^P | ||
19 | filexferM-bM-^@M-^P00.txt, January 2001, work in progress material. | ||
20 | |||
21 | ^[[1mAUTHORS^[[0m | ||
22 | Markus Friedl <markus@openbsd.org> | ||
23 | |||
24 | ^[[1mHISTORY^[[0m | ||
25 | ^[[1msftpM-bM-^@M-^Pserver ^[[22mfirst appeared in OpenBSD 2.8 . | ||
26 | |||
27 | BSD August 30, 2000 BSD | ||
@@ -0,0 +1,180 @@ | |||
1 | SFTP(1) BSD General Commands Manual SFTP(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msftp ^[[22mM-bMM-^R Secure file transfer program | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msftp ^[[22m[^[[1mM-bMM-^RvC1^[[22m] [^[[1mM-bMM-^Rb ^[[4m^[[22mbatchfile^[[24m] [^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[24m] [^[[1mM-bMM-^Rs ^[[4m^[[22msubsystem^[[24m | ^[[4msftp_server^[[24m] | ||
8 | [^[[1mM-bMM-^RB ^[[4m^[[22mbuffer_size^[[24m] [^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[24m] [^[[1mM-bMM-^RP ^[[4m^[[22msftp_server^[[24m ^[[4mpath^[[24m] | ||
9 | [^[[1mM-bMM-^RR ^[[4m^[[22mnum_requests^[[24m] [^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[24m] ^[[4mhost^[[0m | ||
10 | ^[[1msftp ^[[22m[[^[[4muser^[[24m@]^[[4mhost^[[24m[:^[[4mfile^[[24m [^[[4mfile^[[24m]]] | ||
11 | ^[[1msftp ^[[22m[[^[[4muser^[[24m@]^[[4mhost^[[24m[:^[[4mdir^[[24m[^[[4m/^[[24m]]] | ||
12 | |||
13 | ^[[1mDESCRIPTION^[[0m | ||
14 | ^[[1msftp ^[[22mis an interactive file transfer program, similar to ftp(1), which | ||
15 | performs all operations over an encrypted ssh(1) transport. It may also | ||
16 | use many features of ssh, such as public key authentication and compresM-bM-^@M-^P | ||
17 | sion. ^[[1msftp ^[[22mconnects and logs into the specified ^[[4mhost^[[24m, then enters an | ||
18 | interactive command mode. | ||
19 | |||
20 | The second usage format will retrieve files automatically if a nonM-bM-^@M-^PinterM-bM-^@M-^P | ||
21 | active authentication method is used; otherwise it will do so after sucM-bM-^@M-^P | ||
22 | cessful interactive authentication. | ||
23 | |||
24 | The last usage format allows the sftp client to start in a remote direcM-bM-^@M-^P | ||
25 | tory. | ||
26 | |||
27 | The options are as follows: | ||
28 | |||
29 | ^[[1mM-bMM-^Rb ^[[4m^[[22mbatchfile^[[0m | ||
30 | Batch mode reads a series of commands from an input ^[[4mbatchfile^[[0m | ||
31 | instead of ^[[4mstdin^[[24m. Since it lacks user interaction it should be | ||
32 | used in conjunction with nonM-bM-^@M-^Pinteractive authentication. ^[[1msftp^[[0m | ||
33 | will abort if any of the following commands fail: ^[[1mget^[[22m, ^[[1mput^[[22m, | ||
34 | ^[[1mrename^[[22m, ^[[1mln^[[22m, ^[[1mrm^[[22m, ^[[1mmkdir^[[22m, ^[[1mchdir^[[22m, ^[[1mls^[[22m, ^[[1mlchdir^[[22m, ^[[1mchmod^[[22m, ^[[1mchown^[[22m, ^[[1mchgrp^[[22m, | ||
35 | ^[[1mlpwd ^[[22mand ^[[1mlmkdir^[[22m. Termination on error can be suppressed on a | ||
36 | command by command basis by prefixing the command with a ^[[1mM-bM-^@M-^YM-bM-^@M-^PM-bM-^@M-^Y^[[0m | ||
37 | character (For example, ^[[1mM-bM-^@M-^Prm /tmp/blah* ^[[22m). | ||
38 | |||
39 | ^[[1mM-bMM-^Ro ^[[4m^[[22mssh_option^[[0m | ||
40 | Can be used to pass options to ^[[1mssh ^[[22min the format used in | ||
41 | ssh_config(5). This is useful for specifying options for which | ||
42 | there is no separate ^[[1msftp ^[[22mcommandM-bM-^@M-^Pline flag. For example, to | ||
43 | specify an alternate port use: ^[[1msftp M-bM-^@M-^PoPort=24^[[22m. | ||
44 | |||
45 | ^[[1mM-bMM-^Rs ^[[4m^[[22msubsystem^[[24m | ^[[4msftp_server^[[0m | ||
46 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
47 | the remote host. A path is useful for using sftp over protocol | ||
48 | version 1, or when the remote ^[[1msshd ^[[22mdoes not have an sftp subsysM-bM-^@M-^P | ||
49 | tem configured. | ||
50 | |||
51 | ^[[1mM-bMM-^Rv ^[[22mRaise logging level. This option is also passed to ssh. | ||
52 | |||
53 | ^[[1mM-bMM-^RB ^[[4m^[[22mbuffer_size^[[0m | ||
54 | Specify the size of the buffer that ^[[1msftp ^[[22muses when transferring | ||
55 | files. Larger buffers require fewer round trips at the cost of | ||
56 | higher memory consumption. The default is 32768 bytes. | ||
57 | |||
58 | ^[[1mM-bMM-^RC ^[[22mEnables compression (via sshM-bM-^@M-^Ys ^[[1mM-bMM-^RC ^[[22mflag). | ||
59 | |||
60 | ^[[1mM-bMM-^RF ^[[4m^[[22mssh_config^[[0m | ||
61 | Specifies an alternative perM-bM-^@M-^Puser configuration file for ^[[1mssh^[[22m. | ||
62 | This option is directly passed to ssh(1). | ||
63 | |||
64 | ^[[1mM-bMM-^RP ^[[4m^[[22msftp_server^[[24m ^[[4mpath^[[0m | ||
65 | Connect directly to a local ^[[1msftpM-bM-^@M-^Pserver ^[[22m(rather than via ^[[1mssh^[[22m) | ||
66 | This option may be useful in debugging the client and server. | ||
67 | |||
68 | ^[[1mM-bMM-^RR ^[[4m^[[22mnum_requests^[[0m | ||
69 | Specify how many requests may be outstanding at any one time. | ||
70 | Increasing this may slightly improve file transfer speed but will | ||
71 | increase memory usage. The default is 16 outstanding requests. | ||
72 | |||
73 | ^[[1mM-bMM-^RS ^[[4m^[[22mprogram^[[0m | ||
74 | Name of the ^[[4mprogram^[[24m to use for the encrypted connection. The | ||
75 | program must understand ssh(1) options. | ||
76 | |||
77 | ^[[1mM-bMM-^R1 ^[[22mSpecify the use of protocol version 1. | ||
78 | |||
79 | ^[[1mINTERACTIVE COMMANDS^[[0m | ||
80 | Once in interactive mode, ^[[1msftp ^[[22munderstands a set of commands similar to | ||
81 | those of ftp(1). Commands are case insensitive and pathnames may be | ||
82 | enclosed in quotes if they contain spaces. | ||
83 | |||
84 | ^[[1mbye ^[[22mQuit sftp. | ||
85 | |||
86 | ^[[1mcd ^[[4m^[[22mpath^[[0m | ||
87 | Change remote directory to ^[[4mpath^[[24m. | ||
88 | |||
89 | ^[[1mlcd ^[[4m^[[22mpath^[[0m | ||
90 | Change local directory to ^[[4mpath^[[24m. | ||
91 | |||
92 | ^[[1mchgrp ^[[4m^[[22mgrp^[[24m ^[[4mpath^[[0m | ||
93 | Change group of file ^[[4mpath^[[24m to ^[[4mgrp^[[24m. ^[[4mgrp^[[24m must be a numeric GID. | ||
94 | |||
95 | ^[[1mchmod ^[[4m^[[22mmode^[[24m ^[[4mpath^[[0m | ||
96 | Change permissions of file ^[[4mpath^[[24m to ^[[4mmode^[[24m. | ||
97 | |||
98 | ^[[1mchown ^[[4m^[[22mown^[[24m ^[[4mpath^[[0m | ||
99 | Change owner of file ^[[4mpath^[[24m to ^[[4mown^[[24m. ^[[4mown^[[24m must be a numeric UID. | ||
100 | |||
101 | ^[[1mexit ^[[22mQuit sftp. | ||
102 | |||
103 | ^[[1mget ^[[22m[^[[4mflags^[[24m] ^[[4mremoteM-bM-^@M-^Ppath^[[24m [^[[4mlocalM-bM-^@M-^Ppath^[[24m] | ||
104 | Retrieve the ^[[4mremoteM-bM-^@M-^Ppath^[[24m and store it on the local machine. If | ||
105 | the local path name is not specified, it is given the same name | ||
106 | it has on the remote machine. If the ^[[1mM-bMM-^RP ^[[22mflag is specified, then | ||
107 | the fileM-bM-^@M-^Ys full permission and access time are copied too. | ||
108 | |||
109 | ^[[1mhelp ^[[22mDisplay help text. | ||
110 | |||
111 | ^[[1mlls ^[[22m[^[[4mlsM-bM-^@M-^Poptions^[[24m [^[[4mpath^[[24m]] | ||
112 | Display local directory listing of either ^[[4mpath^[[24m or current direcM-bM-^@M-^P | ||
113 | tory if ^[[4mpath^[[24m is not specified. | ||
114 | |||
115 | ^[[1mlmkdir ^[[4m^[[22mpath^[[0m | ||
116 | Create local directory specified by ^[[4mpath^[[24m. | ||
117 | |||
118 | ^[[1mln ^[[4m^[[22moldpath^[[24m ^[[4mnewpath^[[0m | ||
119 | Create a symbolic link from ^[[4moldpath^[[24m to ^[[4mnewpath^[[24m. | ||
120 | |||
121 | ^[[1mlpwd ^[[22mPrint local working directory. | ||
122 | |||
123 | ^[[1mls ^[[22m[^[[4mflags^[[24m] [^[[4mpath^[[24m] | ||
124 | Display remote directory listing of either ^[[4mpath^[[24m or current direcM-bM-^@M-^P | ||
125 | tory if ^[[4mpath^[[24m is not specified. If the ^[[1mM-bMM-^Rl ^[[22mflag is specified, then | ||
126 | display additional details including permissions and ownership | ||
127 | information. | ||
128 | |||
129 | ^[[1mlumask ^[[4m^[[22mumask^[[0m | ||
130 | Set local umask to ^[[4mumask^[[24m. | ||
131 | |||
132 | ^[[1mmkdir ^[[4m^[[22mpath^[[0m | ||
133 | Create remote directory specified by ^[[4mpath^[[24m. | ||
134 | |||
135 | ^[[1mprogress^[[0m | ||
136 | Toggle display of progress meter. | ||
137 | |||
138 | ^[[1mput ^[[22m[^[[4mflags^[[24m] ^[[4mlocalM-bM-^@M-^Ppath^[[24m [^[[4mremoteM-bM-^@M-^Ppath^[[24m] | ||
139 | Upload ^[[4mlocalM-bM-^@M-^Ppath^[[24m and store it on the remote machine. If the | ||
140 | remote path name is not specified, it is given the same name it | ||
141 | has on the local machine. If the ^[[1mM-bMM-^RP ^[[22mflag is specified, then the | ||
142 | fileM-bM-^@M-^Ys full permission and access time are copied too. | ||
143 | |||
144 | ^[[1mpwd ^[[22mDisplay remote working directory. | ||
145 | |||
146 | ^[[1mquit ^[[22mQuit sftp. | ||
147 | |||
148 | ^[[1mrename ^[[4m^[[22moldpath^[[24m ^[[4mnewpath^[[0m | ||
149 | Rename remote file from ^[[4moldpath^[[24m to ^[[4mnewpath^[[24m. | ||
150 | |||
151 | ^[[1mrmdir ^[[4m^[[22mpath^[[0m | ||
152 | Remove remote directory specified by ^[[4mpath^[[24m. | ||
153 | |||
154 | ^[[1mrm ^[[4m^[[22mpath^[[0m | ||
155 | Delete remote file specified by ^[[4mpath^[[24m. | ||
156 | |||
157 | ^[[1msymlink ^[[4m^[[22moldpath^[[24m ^[[4mnewpath^[[0m | ||
158 | Create a symbolic link from ^[[4moldpath^[[24m to ^[[4mnewpath^[[24m. | ||
159 | |||
160 | ^[[1mversion^[[0m | ||
161 | Display the ^[[1msftp ^[[22mprotocol version. | ||
162 | |||
163 | ! ^[[4mcommand^[[0m | ||
164 | Execute ^[[4mcommand^[[24m in local shell. | ||
165 | |||
166 | ! Escape to local shell. | ||
167 | |||
168 | ? Synonym for help. | ||
169 | |||
170 | ^[[1mAUTHORS^[[0m | ||
171 | Damien Miller <djm@mindrot.org> | ||
172 | |||
173 | ^[[1mSEE ALSO^[[0m | ||
174 | scp(1), ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pkeygen(1), ssh_config(5), sftpM-bM-^@M-^Pserver(8), | ||
175 | sshd(8) | ||
176 | |||
177 | T. Ylonen and S. Lehtinen, ^[[4mSSH^[[24m ^[[4mFile^[[24m ^[[4mTransfer^[[24m ^[[4mProtocol^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^PsecshM-bM-^@M-^P | ||
178 | filexferM-bM-^@M-^P00.txt, January 2001, work in progress material. | ||
179 | |||
180 | BSD February 4, 2001 BSD | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..f8be19d53 --- /dev/null +++ b/ssh-add.0 | |||
@@ -0,0 +1,102 @@ | |||
1 | SSHM-bM-^@M-^PADD(1) BSD General Commands Manual SSHM-bM-^@M-^PADD(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^Padd ^[[22mM-bMM-^R adds RSA or DSA identities to the authentication agent | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^Padd ^[[22m[^[[1mM-bMM-^RlLdDxXc^[[22m] [^[[1mM-bMM-^Rt ^[[4m^[[22mlife^[[24m] [^[[4mfile^[[24m ^[[4m...^[[24m] | ||
8 | ^[[1msshM-bM-^@M-^Padd M-bMM-^Rs ^[[4m^[[22mreader^[[0m | ||
9 | ^[[1msshM-bM-^@M-^Padd M-bMM-^Re ^[[4m^[[22mreader^[[0m | ||
10 | |||
11 | ^[[1mDESCRIPTION^[[0m | ||
12 | ^[[1msshM-bM-^@M-^Padd ^[[22madds RSA or DSA identities to the authentication agent, | ||
13 | sshM-bM-^@M-^Pagent(1). When run without arguments, it adds the files | ||
14 | ^[[4m$HOME/.ssh/id_rsa^[[24m, ^[[4m$HOME/.ssh/id_dsa^[[24m and ^[[4m$HOME/.ssh/identity^[[24m. AlternaM-bM-^@M-^P | ||
15 | tive file names can be given on the command line. If any file requires a | ||
16 | passphrase, ^[[1msshM-bM-^@M-^Padd ^[[22masks for the passphrase from the user. The | ||
17 | passphrase is read from the userM-bM-^@M-^Ys tty. ^[[1msshM-bM-^@M-^Padd ^[[22mretries the last | ||
18 | passphrase if multiple identity files are given. | ||
19 | |||
20 | The authentication agent must be running and must be an ancestor of the | ||
21 | current process for ^[[1msshM-bM-^@M-^Padd ^[[22mto work. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | ^[[1mM-bMM-^Rl ^[[22mLists fingerprints of all identities currently represented by the | ||
26 | agent. | ||
27 | |||
28 | ^[[1mM-bMM-^RL ^[[22mLists public key parameters of all identities currently repreM-bM-^@M-^P | ||
29 | sented by the agent. | ||
30 | |||
31 | ^[[1mM-bMM-^Rd ^[[22mInstead of adding the identity, removes the identity from the | ||
32 | agent. | ||
33 | |||
34 | ^[[1mM-bMM-^RD ^[[22mDeletes all identities from the agent. | ||
35 | |||
36 | ^[[1mM-bMM-^Rx ^[[22mLock the agent with a password. | ||
37 | |||
38 | ^[[1mM-bMM-^RX ^[[22mUnlock the agent. | ||
39 | |||
40 | ^[[1mM-bMM-^Rt ^[[4m^[[22mlife^[[0m | ||
41 | Set a maximum lifetime when adding identities to an agent. The | ||
42 | lifetime may be specified in seconds or in a time format speciM-bM-^@M-^P | ||
43 | fied in sshd_config(5). | ||
44 | |||
45 | ^[[1mM-bMM-^Rc ^[[22mIndicates that added identities should be subject to confirmation | ||
46 | before being used for authentication. Confirmation is performed | ||
47 | by the SSH_ASKPASS program mentioned below. Successful confirmaM-bM-^@M-^P | ||
48 | tion is signaled by a zero exit status from the SSH_ASKPASS proM-bM-^@M-^P | ||
49 | gram, rather than text entered into the requester. | ||
50 | |||
51 | ^[[1mM-bMM-^Rs ^[[4m^[[22mreader^[[0m | ||
52 | Add key in smartcard ^[[4mreader^[[24m. | ||
53 | |||
54 | ^[[1mM-bMM-^Re ^[[4m^[[22mreader^[[0m | ||
55 | Remove key in smartcard ^[[4mreader^[[24m. | ||
56 | |||
57 | ^[[1mFILES^[[0m | ||
58 | $HOME/.ssh/identity | ||
59 | Contains the protocol version 1 RSA authentication identity of | ||
60 | the user. | ||
61 | |||
62 | $HOME/.ssh/id_dsa | ||
63 | Contains the protocol version 2 DSA authentication identity of | ||
64 | the user. | ||
65 | |||
66 | $HOME/.ssh/id_rsa | ||
67 | Contains the protocol version 2 RSA authentication identity of | ||
68 | the user. | ||
69 | |||
70 | Identity files should not be readable by anyone but the user. Note that | ||
71 | ^[[1msshM-bM-^@M-^Padd ^[[22mignores identity files if they are accessible by others. | ||
72 | |||
73 | ^[[1mENVIRONMENT^[[0m | ||
74 | DISPLAY and SSH_ASKPASS | ||
75 | If ^[[1msshM-bM-^@M-^Padd ^[[22mneeds a passphrase, it will read the passphrase from | ||
76 | the current terminal if it was run from a terminal. If ^[[1msshM-bM-^@M-^Padd^[[0m | ||
77 | does not have a terminal associated with it but DISPLAY and | ||
78 | SSH_ASKPASS are set, it will execute the program specified by | ||
79 | SSH_ASKPASS and open an X11 window to read the passphrase. This | ||
80 | is particularly useful when calling ^[[1msshM-bM-^@M-^Padd ^[[22mfrom a ^[[4m.Xsession^[[24m or | ||
81 | related script. (Note that on some machines it may be necessary | ||
82 | to redirect the input from ^[[4m/dev/null^[[24m to make this work.) | ||
83 | |||
84 | SSH_AUTH_SOCK | ||
85 | Identifies the path of a unixM-bM-^@M-^Pdomain socket used to communicate | ||
86 | with the agent. | ||
87 | |||
88 | ^[[1mDIAGNOSTICS^[[0m | ||
89 | Exit status is 0 on success, 1 if the specified command fails, and 2 if | ||
90 | ^[[1msshM-bM-^@M-^Padd ^[[22mis unable to contact the authentication agent. | ||
91 | |||
92 | ^[[1mAUTHORS^[[0m | ||
93 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
94 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
95 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
96 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
97 | versions 1.5 and 2.0. | ||
98 | |||
99 | ^[[1mSEE ALSO^[[0m | ||
100 | ssh(1), sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), sshd(8) | ||
101 | |||
102 | BSD September 25, 1999 BSD | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..aa7aebf03 --- /dev/null +++ b/ssh-agent.0 | |||
@@ -0,0 +1,114 @@ | |||
1 | SSHM-bM-^@M-^PAGENT(1) BSD General Commands Manual SSHM-bM-^@M-^PAGENT(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^Pagent ^[[22mM-bMM-^R authentication agent | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^Pagent ^[[22m[^[[1mM-bMM-^Ra ^[[4m^[[22mbind_address^[[24m] [^[[1mM-bMM-^Rc ^[[22m| ^[[1mM-bMM-^Rs^[[22m] [^[[1mM-bMM-^Rt ^[[4m^[[22mlife^[[24m] [^[[1mM-bMM-^Rd^[[22m] [^[[4mcommand^[[24m [^[[4margs^[[24m ^[[4m...^[[24m]] | ||
8 | ^[[1msshM-bM-^@M-^Pagent ^[[22m[^[[1mM-bMM-^Rc ^[[22m| ^[[1mM-bMM-^Rs^[[22m] ^[[1mM-bMM-^Rk^[[0m | ||
9 | |||
10 | ^[[1mDESCRIPTION^[[0m | ||
11 | ^[[1msshM-bM-^@M-^Pagent ^[[22mis a program to hold private keys used for public key authentiM-bM-^@M-^P | ||
12 | cation (RSA, DSA). The idea is that ^[[1msshM-bM-^@M-^Pagent ^[[22mis started in the beginM-bM-^@M-^P | ||
13 | ning of an XM-bM-^@M-^Psession or a login session, and all other windows or proM-bM-^@M-^P | ||
14 | grams are started as clients to the sshM-bM-^@M-^Pagent program. Through use of | ||
15 | environment variables the agent can be located and automatically used for | ||
16 | authentication when logging in to other machines using ssh(1). | ||
17 | |||
18 | The options are as follows: | ||
19 | |||
20 | ^[[1mM-bMM-^Ra ^[[4m^[[22mbind_address^[[0m | ||
21 | Bind the agent to the unixM-bM-^@M-^Pdomain socket ^[[4mbind_address^[[24m. The | ||
22 | default is ^[[4m/tmp/sshM-bM-^@M-^PXXXXXXXX/agent.<ppid>^[[24m. | ||
23 | |||
24 | ^[[1mM-bMM-^Rc ^[[22mGenerate CM-bM-^@M-^Pshell commands on stdout. This is the default if | ||
25 | SHELL looks like itM-bM-^@M-^Ys a csh style of shell. | ||
26 | |||
27 | ^[[1mM-bMM-^Rs ^[[22mGenerate Bourne shell commands on stdout. This is the default if | ||
28 | SHELL does not look like itM-bM-^@M-^Ys a csh style of shell. | ||
29 | |||
30 | ^[[1mM-bMM-^Rk ^[[22mKill the current agent (given by the SSH_AGENT_PID environment | ||
31 | variable). | ||
32 | |||
33 | ^[[1mM-bMM-^Rt ^[[4m^[[22mlife^[[0m | ||
34 | Set a default value for the maximum lifetime of identities added | ||
35 | to the agent. The lifetime may be specified in seconds or in a | ||
36 | time format specified in sshd(8). A lifetime specified for an | ||
37 | identity with sshM-bM-^@M-^Padd(1) overrides this value. Without this | ||
38 | option the default maximum lifetime is forever. | ||
39 | |||
40 | ^[[1mM-bMM-^Rd ^[[22mDebug mode. When this option is specified ^[[1msshM-bM-^@M-^Pagent ^[[22mwill not | ||
41 | fork. | ||
42 | |||
43 | If a commandline is given, this is executed as a subprocess of the agent. | ||
44 | When the command dies, so does the agent. | ||
45 | |||
46 | The agent initially does not have any private keys. Keys are added using | ||
47 | sshM-bM-^@M-^Padd(1). When executed without arguments, sshM-bM-^@M-^Padd(1) adds the files | ||
48 | ^[[4m$HOME/.ssh/id_rsa^[[24m, ^[[4m$HOME/.ssh/id_dsa^[[24m and ^[[4m$HOME/.ssh/identity^[[24m. If the | ||
49 | identity has a passphrase, sshM-bM-^@M-^Padd(1) asks for the passphrase (using a | ||
50 | small X11 application if running under X11, or from the terminal if runM-bM-^@M-^P | ||
51 | ning without X). It then sends the identity to the agent. Several idenM-bM-^@M-^P | ||
52 | tities can be stored in the agent; the agent can automatically use any of | ||
53 | these identities. ^[[1msshM-bM-^@M-^Padd M-bM-^@M-^Pl ^[[22mdisplays the identities currently held by | ||
54 | the agent. | ||
55 | |||
56 | The idea is that the agent is run in the userM-bM-^@M-^Ys local PC, laptop, or terM-bM-^@M-^P | ||
57 | minal. Authentication data need not be stored on any other machine, and | ||
58 | authentication passphrases never go over the network. However, the conM-bM-^@M-^P | ||
59 | nection to the agent is forwarded over SSH remote logins, and the user | ||
60 | can thus use the privileges given by the identities anywhere in the netM-bM-^@M-^P | ||
61 | work in a secure way. | ||
62 | |||
63 | There are two main ways to get an agent setup: Either the agent starts a | ||
64 | new subcommand into which some environment variables are exported, or the | ||
65 | agent prints the needed shell commands (either sh(1) or csh(1) syntax can | ||
66 | be generated) which can be evalled in the calling shell. Later ssh(1) | ||
67 | looks at these variables and uses them to establish a connection to the | ||
68 | agent. | ||
69 | |||
70 | The agent will never send a private key over its request channel. | ||
71 | Instead, operations that require a private key will be performed by the | ||
72 | agent, and the result will be returned to the requester. This way, priM-bM-^@M-^P | ||
73 | vate keys are not exposed to clients using the agent. | ||
74 | |||
75 | A unixM-bM-^@M-^Pdomain socket is created and the name of this socket is stored in | ||
76 | the SSH_AUTH_SOCK environment variable. The socket is made accessible | ||
77 | only to the current user. This method is easily abused by root or | ||
78 | another instance of the same user. | ||
79 | |||
80 | The SSH_AGENT_PID environment variable holds the agentM-bM-^@M-^Ys process ID. | ||
81 | |||
82 | The agent exits automatically when the command given on the command line | ||
83 | terminates. | ||
84 | |||
85 | ^[[1mFILES^[[0m | ||
86 | $HOME/.ssh/identity | ||
87 | Contains the protocol version 1 RSA authentication identity of | ||
88 | the user. | ||
89 | |||
90 | $HOME/.ssh/id_dsa | ||
91 | Contains the protocol version 2 DSA authentication identity of | ||
92 | the user. | ||
93 | |||
94 | $HOME/.ssh/id_rsa | ||
95 | Contains the protocol version 2 RSA authentication identity of | ||
96 | the user. | ||
97 | |||
98 | /tmp/sshM-bM-^@M-^PXXXXXXXX/agent.<ppid> | ||
99 | UnixM-bM-^@M-^Pdomain sockets used to contain the connection to the authenM-bM-^@M-^P | ||
100 | tication agent. These sockets should only be readable by the | ||
101 | owner. The sockets should get automatically removed when the | ||
102 | agent exits. | ||
103 | |||
104 | ^[[1mAUTHORS^[[0m | ||
105 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
106 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
107 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
108 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
109 | versions 1.5 and 2.0. | ||
110 | |||
111 | ^[[1mSEE ALSO^[[0m | ||
112 | ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pkeygen(1), sshd(8) | ||
113 | |||
114 | BSD September 25, 1999 BSD | ||
diff --git a/ssh-dss.h b/ssh-dss.h new file mode 100644 index 000000000..94961b1e8 --- /dev/null +++ b/ssh-dss.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* $OpenBSD: ssh-dss.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */ | ||
2 | |||
3 | /* | ||
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions | ||
8 | * are met: | ||
9 | * 1. Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the distribution. | ||
14 | * | ||
15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
25 | */ | ||
26 | #ifndef DSA_H | ||
27 | #define DSA_H | ||
28 | |||
29 | int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
30 | int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
31 | |||
32 | #endif | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..2e151a95c --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,182 @@ | |||
1 | SSHM-bM-^@M-^PKEYGEN(1) BSD General Commands Manual SSHM-bM-^@M-^PKEYGEN(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22mM-bMM-^R authentication key generation, management and conversion | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22m[^[[1mM-bMM-^Rq^[[22m] [^[[1mM-bMM-^Rb ^[[4m^[[22mbits^[[24m] ^[[1mM-bMM-^Rt ^[[4m^[[22mtype^[[24m [^[[1mM-bMM-^RN ^[[4m^[[22mnew_passphrase^[[24m] [^[[1mM-bMM-^RC ^[[4m^[[22mcomment^[[24m] | ||
8 | [^[[1mM-bMM-^Rf ^[[4m^[[22moutput_keyfile^[[24m] | ||
9 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Rp ^[[22m[^[[1mM-bMM-^RP ^[[4m^[[22mold_passphrase^[[24m] [^[[1mM-bMM-^RN ^[[4m^[[22mnew_passphrase^[[24m] [^[[1mM-bMM-^Rf ^[[4m^[[22mkeyfile^[[24m] | ||
10 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Ri ^[[22m[^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
11 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Re ^[[22m[^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
12 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Ry ^[[22m[^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
13 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Rc ^[[22m[^[[1mM-bMM-^RP ^[[4m^[[22mpassphrase^[[24m] [^[[1mM-bMM-^RC ^[[4m^[[22mcomment^[[24m] [^[[1mM-bMM-^Rf ^[[4m^[[22mkeyfile^[[24m] | ||
14 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^Rl ^[[22m[^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
15 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^RB ^[[22m[^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
16 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^RD ^[[4m^[[22mreader^[[0m | ||
17 | ^[[1msshM-bM-^@M-^Pkeygen M-bMM-^RU ^[[4m^[[22mreader^[[24m [^[[1mM-bMM-^Rf ^[[4m^[[22minput_keyfile^[[24m] | ||
18 | |||
19 | ^[[1mDESCRIPTION^[[0m | ||
20 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22mgenerates, manages and converts authentication keys for | ||
21 | ssh(1). ^[[1msshM-bM-^@M-^Pkeygen ^[[22mcan create RSA keys for use by SSH protocol version 1 | ||
22 | and RSA or DSA keys for use by SSH protocol version 2. The type of key to | ||
23 | be generated is specified with the ^[[1mM-bMM-^Rt ^[[22moption. | ||
24 | |||
25 | Normally each user wishing to use SSH with RSA or DSA authentication runs | ||
26 | this once to create the authentication key in ^[[4m$HOME/.ssh/identity^[[24m, | ||
27 | ^[[4m$HOME/.ssh/id_dsa^[[24m or ^[[4m$HOME/.ssh/id_rsa^[[24m. Additionally, the system adminM-bM-^@M-^P | ||
28 | istrator may use this to generate host keys, as seen in ^[[4m/etc/rc^[[24m. | ||
29 | |||
30 | Normally this program generates the key and asks for a file in which to | ||
31 | store the private key. The public key is stored in a file with the same | ||
32 | name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The | ||
33 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
34 | empty passphrase), or it may be a string of arbitrary length. A | ||
35 | passphrase is similar to a password, except it can be a phrase with a | ||
36 | series of words, punctuation, numbers, whitespace, or any string of charM-bM-^@M-^P | ||
37 | acters you want. Good passphrases are 10M-bM-^@M-^P30 characters long, are not | ||
38 | simple sentences or otherwise easily guessable (English prose has only | ||
39 | 1M-bM-^@M-^P2 bits of entropy per character, and provides very bad passphrases), | ||
40 | and contain a mix of upper and lowercase letters, numbers, and nonM-bM-^@M-^P | ||
41 | alphanumeric characters. The passphrase can be changed later by using | ||
42 | the ^[[1mM-bMM-^Rp ^[[22moption. | ||
43 | |||
44 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
45 | or forgotten, a new key must be generated and copied to the corresponding | ||
46 | public key to other machines. | ||
47 | |||
48 | For RSA1 keys, there is also a comment field in the key file that is only | ||
49 | for convenience to the user to help identify the key. The comment can | ||
50 | tell what the key is for, or whatever is useful. The comment is initialM-bM-^@M-^P | ||
51 | ized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the key is created, but can be changed using the | ||
52 | ^[[1mM-bMM-^Rc ^[[22moption. | ||
53 | |||
54 | After a key is generated, instructions below detail where the keys should | ||
55 | be placed to be activated. | ||
56 | |||
57 | The options are as follows: | ||
58 | |||
59 | ^[[1mM-bMM-^Rb ^[[4m^[[22mbits^[[0m | ||
60 | Specifies the number of bits in the key to create. Minimum is | ||
61 | 512 bits. Generally, 1024 bits is considered sufficient. The | ||
62 | default is 1024 bits. | ||
63 | |||
64 | ^[[1mM-bMM-^Rc ^[[22mRequests changing the comment in the private and public key | ||
65 | files. This operation is only supported for RSA1 keys. The proM-bM-^@M-^P | ||
66 | gram will prompt for the file containing the private keys, for | ||
67 | the passphrase if the key has one, and for the new comment. | ||
68 | |||
69 | ^[[1mM-bMM-^Re ^[[22mThis option will read a private or public OpenSSH key file and | ||
70 | print the key in a M-bM-^@M-^XSECSH Public Key File FormatM-bM-^@M-^Y to stdout. | ||
71 | This option allows exporting keys for use by several commercial | ||
72 | SSH implementations. | ||
73 | |||
74 | ^[[1mM-bMM-^Rf ^[[4m^[[22mfilename^[[0m | ||
75 | Specifies the filename of the key file. | ||
76 | |||
77 | ^[[1mM-bMM-^Ri ^[[22mThis option will read an unencrypted private (or public) key file | ||
78 | in SSH2M-bM-^@M-^Pcompatible format and print an OpenSSH compatible private | ||
79 | (or public) key to stdout. ^[[1msshM-bM-^@M-^Pkeygen ^[[22malso reads the M-bM-^@M-^XSECSH | ||
80 | Public Key File FormatM-bM-^@M-^Y. This option allows importing keys from | ||
81 | several commercial SSH implementations. | ||
82 | |||
83 | ^[[1mM-bMM-^Rl ^[[22mShow fingerprint of specified public key file. Private RSA1 keys | ||
84 | are also supported. For RSA and DSA keys ^[[1msshM-bM-^@M-^Pkeygen ^[[22mtries to | ||
85 | find the matching public key file and prints its fingerprint. | ||
86 | |||
87 | ^[[1mM-bMM-^Rp ^[[22mRequests changing the passphrase of a private key file instead of | ||
88 | creating a new private key. The program will prompt for the file | ||
89 | containing the private key, for the old passphrase, and twice for | ||
90 | the new passphrase. | ||
91 | |||
92 | ^[[1mM-bMM-^Rq ^[[22mSilence ^[[1msshM-bM-^@M-^Pkeygen^[[22m. Used by ^[[4m/etc/rc^[[24m when creating a new key. | ||
93 | |||
94 | ^[[1mM-bMM-^Ry ^[[22mThis option will read a private OpenSSH format file and print an | ||
95 | OpenSSH public key to stdout. | ||
96 | |||
97 | ^[[1mM-bMM-^Rt ^[[4m^[[22mtype^[[0m | ||
98 | Specifies the type of the key to create. The possible values are | ||
99 | M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\rsaM-bM-^@M-^] or M-bM-^@M-^\dsaM-bM-^@M-^] for protocol | ||
100 | version 2. | ||
101 | |||
102 | ^[[1mM-bMM-^RB ^[[22mShow the bubblebabble digest of specified private or public key | ||
103 | file. | ||
104 | |||
105 | ^[[1mM-bMM-^RC ^[[4m^[[22mcomment^[[0m | ||
106 | Provides the new comment. | ||
107 | |||
108 | ^[[1mM-bMM-^RD ^[[4m^[[22mreader^[[0m | ||
109 | Download the RSA public key stored in the smartcard in ^[[4mreader^[[24m. | ||
110 | |||
111 | ^[[1mM-bMM-^RN ^[[4m^[[22mnew_passphrase^[[0m | ||
112 | Provides the new passphrase. | ||
113 | |||
114 | ^[[1mM-bMM-^RP ^[[4m^[[22mpassphrase^[[0m | ||
115 | Provides the (old) passphrase. | ||
116 | |||
117 | ^[[1mM-bMM-^RU ^[[4m^[[22mreader^[[0m | ||
118 | Upload an existing RSA private key into the smartcard in ^[[4mreader^[[24m. | ||
119 | |||
120 | ^[[1mFILES^[[0m | ||
121 | $HOME/.ssh/identity | ||
122 | Contains the protocol version 1 RSA authentication identity of | ||
123 | the user. This file should not be readable by anyone but the | ||
124 | user. It is possible to specify a passphrase when generating the | ||
125 | key; that passphrase will be used to encrypt the private part of | ||
126 | this file using 3DES. This file is not automatically accessed by | ||
127 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22mbut it is offered as the default file for the private | ||
128 | key. ssh(1) will read this file when a login attempt is made. | ||
129 | |||
130 | $HOME/.ssh/identity.pub | ||
131 | Contains the protocol version 1 RSA public key for authenticaM-bM-^@M-^P | ||
132 | tion. The contents of this file should be added to | ||
133 | ^[[4m$HOME/.ssh/authorized_keys^[[24m on all machines where the user wishes | ||
134 | to log in using RSA authentication. There is no need to keep the | ||
135 | contents of this file secret. | ||
136 | |||
137 | $HOME/.ssh/id_dsa | ||
138 | Contains the protocol version 2 DSA authentication identity of | ||
139 | the user. This file should not be readable by anyone but the | ||
140 | user. It is possible to specify a passphrase when generating the | ||
141 | key; that passphrase will be used to encrypt the private part of | ||
142 | this file using 3DES. This file is not automatically accessed by | ||
143 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22mbut it is offered as the default file for the private | ||
144 | key. ssh(1) will read this file when a login attempt is made. | ||
145 | |||
146 | $HOME/.ssh/id_dsa.pub | ||
147 | Contains the protocol version 2 DSA public key for authenticaM-bM-^@M-^P | ||
148 | tion. The contents of this file should be added to | ||
149 | ^[[4m$HOME/.ssh/authorized_keys^[[24m on all machines where the user wishes | ||
150 | to log in using public key authentication. There is no need to | ||
151 | keep the contents of this file secret. | ||
152 | |||
153 | $HOME/.ssh/id_rsa | ||
154 | Contains the protocol version 2 RSA authentication identity of | ||
155 | the user. This file should not be readable by anyone but the | ||
156 | user. It is possible to specify a passphrase when generating the | ||
157 | key; that passphrase will be used to encrypt the private part of | ||
158 | this file using 3DES. This file is not automatically accessed by | ||
159 | ^[[1msshM-bM-^@M-^Pkeygen ^[[22mbut it is offered as the default file for the private | ||
160 | key. ssh(1) will read this file when a login attempt is made. | ||
161 | |||
162 | $HOME/.ssh/id_rsa.pub | ||
163 | Contains the protocol version 2 RSA public key for authenticaM-bM-^@M-^P | ||
164 | tion. The contents of this file should be added to | ||
165 | ^[[4m$HOME/.ssh/authorized_keys^[[24m on all machines where the user wishes | ||
166 | to log in using public key authentication. There is no need to | ||
167 | keep the contents of this file secret. | ||
168 | |||
169 | ^[[1mAUTHORS^[[0m | ||
170 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
171 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
172 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
173 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
174 | versions 1.5 and 2.0. | ||
175 | |||
176 | ^[[1mSEE ALSO^[[0m | ||
177 | ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pagent(1), sshd(8) | ||
178 | |||
179 | J. Galbraith and R. Thayer, ^[[4mSECSH^[[24m ^[[4mPublic^[[24m ^[[4mKey^[[24m ^[[4mFile^[[24m ^[[4mFormat^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^P | ||
180 | secshM-bM-^@M-^PpublickeyfileM-bM-^@M-^P01.txt, March 2001, work in progress material. | ||
181 | |||
182 | BSD September 25, 1999 BSD | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..3c3067cc9 --- /dev/null +++ b/ssh-keyscan.0 | |||
@@ -0,0 +1,102 @@ | |||
1 | SSHM-bM-^@M-^PKEYSCAN(1) BSD General Commands Manual SSHM-bM-^@M-^PKEYSCAN(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mM-bMM-^R gather ssh public keys | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^Pkeyscan ^[[22m[^[[1mM-bMM-^Rv46^[[22m] [^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[24m] [^[[1mM-bMM-^RT ^[[4m^[[22mtimeout^[[24m] [^[[1mM-bMM-^Rt ^[[4m^[[22mtype^[[24m] [^[[1mM-bMM-^Rf ^[[4m^[[22mfile^[[24m] | ||
8 | [^[[4mhost^[[24m | ^[[4maddrlist^[[24m ^[[4mnamelist^[[24m] [^[[4m...^[[24m] | ||
9 | |||
10 | ^[[1mDESCRIPTION^[[0m | ||
11 | ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mis a utility for gathering the public ssh host keys of a numM-bM-^@M-^P | ||
12 | ber of hosts. It was designed to aid in building and verifying | ||
13 | ^[[4mssh_known_hosts^[[24m files. ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mprovides a minimal interface suitable | ||
14 | for use by shell and perl scripts. | ||
15 | |||
16 | ^[[1msshM-bM-^@M-^Pkeyscan ^[[22muses nonM-bM-^@M-^Pblocking socket I/O to contact as many hosts as posM-bM-^@M-^P | ||
17 | sible in parallel, so it is very efficient. The keys from a domain of | ||
18 | 1,000 hosts can be collected in tens of seconds, even when some of those | ||
19 | hosts are down or do not run ssh. For scanning, one does not need login | ||
20 | access to the machines that are being scanned, nor does the scanning proM-bM-^@M-^P | ||
21 | cess involve any encryption. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | ^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[0m | ||
26 | Port to connect to on the remote host. | ||
27 | |||
28 | ^[[1mM-bMM-^RT ^[[4m^[[22mtimeout^[[0m | ||
29 | Set the timeout for connection attempts. If ^[[4mtimeout^[[24m seconds have | ||
30 | elapsed since a connection was initiated to a host or since the | ||
31 | last time anything was read from that host, then the connection | ||
32 | is closed and the host in question considered unavailable. | ||
33 | Default is 5 seconds. | ||
34 | |||
35 | ^[[1mM-bMM-^Rt ^[[4m^[[22mtype^[[0m | ||
36 | Specifies the type of the key to fetch from the scanned hosts. | ||
37 | The possible values are M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\rsaM-bM-^@M-^] | ||
38 | or M-bM-^@M-^\dsaM-bM-^@M-^] for protocol version 2. Multiple values may be speciM-bM-^@M-^P | ||
39 | fied by separating them with commas. The default is M-bM-^@M-^\rsa1M-bM-^@M-^]. | ||
40 | |||
41 | ^[[1mM-bMM-^Rf ^[[4m^[[22mfilename^[[0m | ||
42 | Read hosts or ^[[4maddrlist^[[24m ^[[4mnamelist^[[24m pairs from this file, one per | ||
43 | line. If ^[[4mM-bM-^@M-^P^[[24m is supplied instead of a filename, ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mwill | ||
44 | read hosts or ^[[4maddrlist^[[24m ^[[4mnamelist^[[24m pairs from the standard input. | ||
45 | |||
46 | ^[[1mM-bMM-^Rv ^[[22mVerbose mode. Causes ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mto print debugging messages | ||
47 | about its progress. | ||
48 | |||
49 | ^[[1mM-bMM-^R4 ^[[22mForces ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mto use IPv4 addresses only. | ||
50 | |||
51 | ^[[1mM-bMM-^R6 ^[[22mForces ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mto use IPv6 addresses only. | ||
52 | |||
53 | ^[[1mSECURITY^[[0m | ||
54 | If a ssh_known_hosts file is constructed using ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mwithout veriM-bM-^@M-^P | ||
55 | fying the keys, users will be vulnerable to attacks. On the other hand, | ||
56 | if the security model allows such a risk, ^[[1msshM-bM-^@M-^Pkeyscan ^[[22mcan help in the | ||
57 | detection of tampered keyfiles or man in the middle attacks which have | ||
58 | begun after the ssh_known_hosts file was created. | ||
59 | |||
60 | ^[[1mEXAMPLES^[[0m | ||
61 | Print the ^[[4mrsa1^[[24m host key for machine ^[[4mhostname^[[24m: | ||
62 | |||
63 | $ sshM-bM-^@M-^Pkeyscan hostname | ||
64 | |||
65 | Find all hosts from the file ^[[4mssh_hosts^[[24m which have new or different keys | ||
66 | from those in the sorted file ^[[4mssh_known_hosts^[[24m: | ||
67 | |||
68 | $ sshM-bM-^@M-^Pkeyscan M-bM-^@M-^Pt rsa,dsa M-bM-^@M-^Pf ssh_hosts | \ | ||
69 | sort M-bM-^@M-^Pu M-bM-^@M-^P ssh_known_hosts | diff ssh_known_hosts M-bM-^@M-^P | ||
70 | |||
71 | ^[[1mFILES^[[0m | ||
72 | ^[[4mInput^[[24m ^[[4mformat:^[[0m | ||
73 | |||
74 | 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4 | ||
75 | |||
76 | ^[[4mOutput^[[24m ^[[4mformat^[[24m ^[[4mfor^[[24m ^[[4mrsa1^[[24m ^[[4mkeys:^[[0m | ||
77 | |||
78 | hostM-bM-^@M-^PorM-bM-^@M-^Pnamelist bits exponent modulus | ||
79 | |||
80 | ^[[4mOutput^[[24m ^[[4mformat^[[24m ^[[4mfor^[[24m ^[[4mrsa^[[24m ^[[4mand^[[24m ^[[4mdsa^[[24m ^[[4mkeys:^[[0m | ||
81 | |||
82 | hostM-bM-^@M-^PorM-bM-^@M-^Pnamelist keytype base64M-bM-^@M-^PencodedM-bM-^@M-^Pkey | ||
83 | |||
84 | Where ^[[4mkeytype^[[24m is either M-bM-^@M-^\sshM-bM-^@M-^PrsaM-bM-^@M-^] or M-bM-^@M-^\sshM-bM-^@M-^PdsaM-bM-^@M-^]. | ||
85 | |||
86 | ^[[4m/etc/ssh/ssh_known_hosts^[[0m | ||
87 | |||
88 | ^[[1mBUGS^[[0m | ||
89 | It generates "Connection closed by remote host" messages on the consoles | ||
90 | of all the machines it scans if the server is older than version 2.9. | ||
91 | This is because it opens a connection to the ssh port, reads the public | ||
92 | key, and drops the connection as soon as it gets the key. | ||
93 | |||
94 | ^[[1mSEE ALSO^[[0m | ||
95 | ssh(1), sshd(8) | ||
96 | |||
97 | ^[[1mAUTHORS^[[0m | ||
98 | David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne | ||
99 | Davison <wayned@users.sourceforge.net> added support for protocol version | ||
100 | 2. | ||
101 | |||
102 | BSD January 1, 1996 BSD | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..738fc967f --- /dev/null +++ b/ssh-keysign.0 | |||
@@ -0,0 +1,42 @@ | |||
1 | SSHM-bM-^@M-^PKEYSIGN(8) BSD System ManagerM-bM-^@M-^Ys Manual SSHM-bM-^@M-^PKEYSIGN(8) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^Pkeysign ^[[22mM-bMM-^R ssh helper program for hostbased authentication | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^Pkeysign^[[0m | ||
8 | |||
9 | ^[[1mDESCRIPTION^[[0m | ||
10 | ^[[1msshM-bM-^@M-^Pkeysign ^[[22mis used by ssh(1) to access the local host keys and generate | ||
11 | the digital signature required during hostbased authentication with SSH | ||
12 | protocol version 2. | ||
13 | |||
14 | ^[[1msshM-bM-^@M-^Pkeysign ^[[22mis disabled by default and can only be enabled in the global | ||
15 | client configuration file ^[[4m/etc/ssh/ssh_config^[[24m by setting ^[[1mEnableSSHKeysign^[[0m | ||
16 | to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
17 | |||
18 | ^[[1msshM-bM-^@M-^Pkeysign ^[[22mis not intended to be invoked by the user, but from ssh(1). | ||
19 | See ssh(1) and sshd(8) for more information about hostbased authenticaM-bM-^@M-^P | ||
20 | tion. | ||
21 | |||
22 | ^[[1mFILES^[[0m | ||
23 | /etc/ssh/ssh_config | ||
24 | Controls whether ^[[1msshM-bM-^@M-^Pkeysign ^[[22mis enabled. | ||
25 | |||
26 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key | ||
27 | These files contain the private parts of the host keys used to | ||
28 | generate the digital signature. They should be owned by root, | ||
29 | readable only by root, and not accessible to others. Since they | ||
30 | are readable only by root, ^[[1msshM-bM-^@M-^Pkeysign ^[[22mmust be setM-bM-^@M-^Puid root if | ||
31 | hostbased authentication is used. | ||
32 | |||
33 | ^[[1mSEE ALSO^[[0m | ||
34 | ssh(1), sshM-bM-^@M-^Pkeygen(1), ssh_config(5), sshd(8) | ||
35 | |||
36 | ^[[1mAUTHORS^[[0m | ||
37 | Markus Friedl <markus@openbsd.org> | ||
38 | |||
39 | ^[[1mHISTORY^[[0m | ||
40 | ^[[1msshM-bM-^@M-^Pkeysign ^[[22mfirst appeared in OpenBSD 3.2. | ||
41 | |||
42 | BSD May 24, 2002 BSD | ||
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0 new file mode 100644 index 000000000..de07cd02c --- /dev/null +++ b/ssh-rand-helper.0 | |||
@@ -0,0 +1,49 @@ | |||
1 | SSHM-bM-^@M-^PRANDM-bM-^@M-^PHELPER(8) BSD System ManagerM-bM-^@M-^Ys Manual SSHM-bM-^@M-^PRANDM-bM-^@M-^PHELPER(8) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mM-bMM-^R Random number gatherer for OpenSSH | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phlper ^[[22m[^[[1mM-bMM-^RvxXh^[[22m] [^[[1mM-bMM-^Rb ^[[4m^[[22mbytes^[[24m] | ||
8 | |||
9 | ^[[1mDESCRIPTION^[[0m | ||
10 | ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mis a small helper program used by ssh(1), sshM-bM-^@M-^Padd(1), | ||
11 | sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), sshM-bM-^@M-^Pkeyscan(1) and sshd(8) to gather random | ||
12 | numbers of cryptographic quality if the openssl(4) library has not been | ||
13 | configured to provide them itself. | ||
14 | |||
15 | Normally ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mwill generate a strong random seed and provide | ||
16 | it to the calling program via standard output. If standard output is a | ||
17 | tty, ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mwill instead print the seed in hexidecimal format | ||
18 | unless told otherwise. | ||
19 | |||
20 | ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mwill by default gather random numbers from the system | ||
21 | commands listed in ^[[4m/etc/ssh/ssh_prng_cmds^[[24m. The output of each of the | ||
22 | commands listed will be hashed and used to generate a random seed for the | ||
23 | calling program. ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mwill also store seed files in | ||
24 | ^[[4m~/.ssh/prng_seed^[[24m between executions. | ||
25 | |||
26 | Alternately, ^[[1msshM-bM-^@M-^PrandM-bM-^@M-^Phelper ^[[22mmay be configured at build time to collect | ||
27 | random numbers from a EGD/PRNGd server via a unix domain or localhost tcp | ||
28 | socket. | ||
29 | |||
30 | This program is not intended to be run by the endM-bM-^@M-^Puser, so the few comM-bM-^@M-^P | ||
31 | mandline options are for debugging purposes only. | ||
32 | |||
33 | ^[[1mM-bMM-^Rb ^[[4m^[[22mbytes^[[0m | ||
34 | Specify the number of random bytes to include in the output. | ||
35 | |||
36 | ^[[1mM-bMM-^Rx ^[[22mOutput a hexidecimal instead of a binary seed. | ||
37 | |||
38 | ^[[1mM-bMM-^RX ^[[22mForce output of a binary seed, even if standard output is a tty | ||
39 | |||
40 | ^[[1mM-bMM-^Rv ^[[22mTurn on debugging message. Multiple ^[[1mM-bMM-^Rv ^[[22moptions will increase the | ||
41 | debugging level. ^[[1mM-bMM-^Rh ^[[22mDisplay a summary of options. | ||
42 | |||
43 | ^[[1mAUTHORS^[[0m | ||
44 | Damien Miller <djm@mindrot.org> | ||
45 | |||
46 | ^[[1mSEE ALSO^[[0m | ||
47 | ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pkeygen(1), sshd(8) | ||
48 | |||
49 | BSD April 14, 2002 BSD | ||
diff --git a/ssh-rsa.h b/ssh-rsa.h new file mode 100644 index 000000000..7177a3f92 --- /dev/null +++ b/ssh-rsa.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* $OpenBSD: ssh-rsa.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */ | ||
2 | |||
3 | /* | ||
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions | ||
8 | * are met: | ||
9 | * 1. Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the distribution. | ||
14 | * | ||
15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
25 | */ | ||
26 | #ifndef SSH_RSA_H | ||
27 | #define SSH_RSA_H | ||
28 | |||
29 | int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
30 | int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
31 | |||
32 | #endif | ||
@@ -0,0 +1,614 @@ | |||
1 | SSH(1) BSD General Commands Manual SSH(1) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1mssh ^[[22mM-bMM-^R OpenSSH SSH client (remote login program) | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1mssh ^[[22m[^[[1mM-bMM-^Rl ^[[4m^[[22mlogin_name^[[24m] ^[[4mhostname^[[24m | ^[[4muser@hostname^[[24m [^[[4mcommand^[[24m] | ||
8 | |||
9 | ^[[1mssh ^[[22m[^[[1mM-bMM-^RafgknqstvxACNTX1246^[[22m] [^[[1mM-bMM-^Rb ^[[4m^[[22mbind_address^[[24m] [^[[1mM-bMM-^Rc ^[[4m^[[22mcipher_spec^[[24m] | ||
10 | [^[[1mM-bMM-^Re ^[[4m^[[22mescape_char^[[24m] [^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[24m] [^[[1mM-bMM-^Rl ^[[4m^[[22mlogin_name^[[24m] [^[[1mM-bMM-^Rm ^[[4m^[[22mmac_spec^[[24m] | ||
11 | [^[[1mM-bMM-^Ro ^[[4m^[[22moption^[[24m] [^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[24m] [^[[1mM-bMM-^RF ^[[4m^[[22mconfigfile^[[24m] [^[[1mM-bMM-^RL ^[[4m^[[22mport^[[24m:^[[4mhost^[[24m:^[[4mhostport^[[24m] | ||
12 | [^[[1mM-bMM-^RR ^[[4m^[[22mport^[[24m:^[[4mhost^[[24m:^[[4mhostport^[[24m] [^[[1mM-bMM-^RD ^[[4m^[[22mport^[[24m] ^[[4mhostname^[[24m | ^[[4muser@hostname^[[24m [^[[4mcommand^[[24m] | ||
13 | |||
14 | ^[[1mDESCRIPTION^[[0m | ||
15 | ^[[1mssh ^[[22m(SSH client) is a program for logging into a remote machine and for | ||
16 | executing commands on a remote machine. It is intended to replace rlogin | ||
17 | and rsh, and provide secure encrypted communications between two | ||
18 | untrusted hosts over an insecure network. X11 connections and arbitrary | ||
19 | TCP/IP ports can also be forwarded over the secure channel. | ||
20 | |||
21 | ^[[1mssh ^[[22mconnects and logs into the specified ^[[4mhostname^[[24m. The user must prove | ||
22 | his/her identity to the remote machine using one of several methods | ||
23 | depending on the protocol version used: | ||
24 | |||
25 | ^[[1mSSH protocol version 1^[[0m | ||
26 | |||
27 | First, if the machine the user logs in from is listed in ^[[4m/etc/hosts.equiv^[[0m | ||
28 | or ^[[4m/etc/shosts.equiv^[[24m on the remote machine, and the user names are the | ||
29 | same on both sides, the user is immediately permitted to log in. Second, | ||
30 | if ^[[4m.rhosts^[[24m or ^[[4m.shosts^[[24m exists in the userM-bM-^@M-^Ys home directory on the remote | ||
31 | machine and contains a line containing the name of the client machine and | ||
32 | the name of the user on that machine, the user is permitted to log in. | ||
33 | This form of authentication alone is normally not allowed by the server | ||
34 | because it is not secure. | ||
35 | |||
36 | The second authentication method is the ^[[4mrhosts^[[24m or ^[[4mhosts.equiv^[[24m method comM-bM-^@M-^P | ||
37 | bined with RSAM-bM-^@M-^Pbased host authentication. It means that if the login | ||
38 | would be permitted by ^[[4m$HOME/.rhosts^[[24m, ^[[4m$HOME/.shosts^[[24m, ^[[4m/etc/hosts.equiv^[[24m, or | ||
39 | ^[[4m/etc/shosts.equiv^[[24m, and if additionally the server can verify the clientM-bM-^@M-^Ys | ||
40 | host key (see ^[[4m/etc/ssh/ssh_known_hosts^[[24m and ^[[4m$HOME/.ssh/known_hosts^[[24m in the | ||
41 | ^[[4mFILES^[[24m section), only then login is permitted. This authentication method | ||
42 | closes security holes due to IP spoofing, DNS spoofing and routing spoofM-bM-^@M-^P | ||
43 | ing. [Note to the administrator: ^[[4m/etc/hosts.equiv^[[24m, ^[[4m$HOME/.rhosts^[[24m, and | ||
44 | the rlogin/rsh protocol in general, are inherently insecure and should be | ||
45 | disabled if security is desired.] | ||
46 | |||
47 | As a third authentication method, ^[[1mssh ^[[22msupports RSA based authentication. | ||
48 | The scheme is based on publicM-bM-^@M-^Pkey cryptography: there are cryptosystems | ||
49 | where encryption and decryption are done using separate keys, and it is | ||
50 | not possible to derive the decryption key from the encryption key. RSA | ||
51 | is one such system. The idea is that each user creates a public/private | ||
52 | key pair for authentication purposes. The server knows the public key, | ||
53 | and only the user knows the private key. The file | ||
54 | ^[[4m$HOME/.ssh/authorized_keys^[[24m lists the public keys that are permitted for | ||
55 | logging in. When the user logs in, the ^[[1mssh ^[[22mprogram tells the server | ||
56 | which key pair it would like to use for authentication. The server | ||
57 | checks if this key is permitted, and if so, sends the user (actually the | ||
58 | ^[[1mssh ^[[22mprogram running on behalf of the user) a challenge, a random number, | ||
59 | encrypted by the userM-bM-^@M-^Ys public key. The challenge can only be decrypted | ||
60 | using the proper private key. The userM-bM-^@M-^Ys client then decrypts the chalM-bM-^@M-^P | ||
61 | lenge using the private key, proving that he/she knows the private key | ||
62 | but without disclosing it to the server. | ||
63 | |||
64 | ^[[1mssh ^[[22mimplements the RSA authentication protocol automatically. The user | ||
65 | creates his/her RSA key pair by running sshM-bM-^@M-^Pkeygen(1). This stores the | ||
66 | private key in ^[[4m$HOME/.ssh/identity^[[24m and the public key in | ||
67 | ^[[4m$HOME/.ssh/identity.pub^[[24m in the userM-bM-^@M-^Ys home directory. The user should | ||
68 | then copy the ^[[4midentity.pub^[[24m to ^[[4m$HOME/.ssh/authorized_keys^[[24m in his/her home | ||
69 | directory on the remote machine (the ^[[4mauthorized_keys^[[24m file corresponds to | ||
70 | the conventional ^[[4m$HOME/.rhosts^[[24m file, and has one key per line, though the | ||
71 | lines can be very long). After this, the user can log in without giving | ||
72 | the password. RSA authentication is much more secure than rhosts authenM-bM-^@M-^P | ||
73 | tication. | ||
74 | |||
75 | The most convenient way to use RSA authentication may be with an authenM-bM-^@M-^P | ||
76 | tication agent. See sshM-bM-^@M-^Pagent(1) for more information. | ||
77 | |||
78 | If other authentication methods fail, ^[[1mssh ^[[22mprompts the user for a passM-bM-^@M-^P | ||
79 | word. The password is sent to the remote host for checking; however, | ||
80 | since all communications are encrypted, the password cannot be seen by | ||
81 | someone listening on the network. | ||
82 | |||
83 | ^[[1mSSH protocol version 2^[[0m | ||
84 | |||
85 | When a user connects using protocol version 2 similar authentication | ||
86 | methods are available. Using the default values for | ||
87 | ^[[1mPreferredAuthentications^[[22m, the client will try to authenticate first using | ||
88 | the hostbased method; if this method fails public key authentication is | ||
89 | attempted, and finally if this method fails keyboardM-bM-^@M-^Pinteractive and | ||
90 | password authentication are tried. | ||
91 | |||
92 | The public key method is similar to RSA authentication described in the | ||
93 | previous section and allows the RSA or DSA algorithm to be used: The | ||
94 | client uses his private key, ^[[4m$HOME/.ssh/id_dsa^[[24m or ^[[4m$HOME/.ssh/id_rsa^[[24m, to | ||
95 | sign the session identifier and sends the result to the server. The | ||
96 | server checks whether the matching public key is listed in | ||
97 | ^[[4m$HOME/.ssh/authorized_keys^[[24m and grants access if both the key is found and | ||
98 | the signature is correct. The session identifier is derived from a | ||
99 | shared DiffieM-bM-^@M-^PHellman value and is only known to the client and the | ||
100 | server. | ||
101 | |||
102 | If public key authentication fails or is not available a password can be | ||
103 | sent encrypted to the remote host for proving the userM-bM-^@M-^Ys identity. | ||
104 | |||
105 | Additionally, ^[[1mssh ^[[22msupports hostbased or challenge response authenticaM-bM-^@M-^P | ||
106 | tion. | ||
107 | |||
108 | Protocol 2 provides additional mechanisms for confidentiality (the trafM-bM-^@M-^P | ||
109 | fic is encrypted using 3DES, Blowfish, CAST128 or Arcfour) and integrity | ||
110 | (hmacM-bM-^@M-^Pmd5, hmacM-bM-^@M-^Psha1). Note that protocol 1 lacks a strong mechanism for | ||
111 | ensuring the integrity of the connection. | ||
112 | |||
113 | ^[[1mLogin session and remote execution^[[0m | ||
114 | |||
115 | When the userM-bM-^@M-^Ys identity has been accepted by the server, the server | ||
116 | either executes the given command, or logs into the machine and gives the | ||
117 | user a normal shell on the remote machine. All communication with the | ||
118 | remote command or shell will be automatically encrypted. | ||
119 | |||
120 | If a pseudoM-bM-^@M-^Pterminal has been allocated (normal login session), the user | ||
121 | may use the escape characters noted below. | ||
122 | |||
123 | If no pseudo tty has been allocated, the session is transparent and can | ||
124 | be used to reliably transfer binary data. On most systems, setting the | ||
125 | escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent even if | ||
126 | a tty is used. | ||
127 | |||
128 | The session terminates when the command or shell on the remote machine | ||
129 | exits and all X11 and TCP/IP connections have been closed. The exit staM-bM-^@M-^P | ||
130 | tus of the remote program is returned as the exit status of ^[[1mssh^[[22m. | ||
131 | |||
132 | ^[[1mEscape Characters^[[0m | ||
133 | |||
134 | When a pseudo terminal has been requested, ssh supports a number of funcM-bM-^@M-^P | ||
135 | tions through the use of an escape character. | ||
136 | |||
137 | A single tilde character can be sent as ^[[1m~~ ^[[22mor by following the tilde by a | ||
138 | character other than those described below. The escape character must | ||
139 | always follow a newline to be interpreted as special. The escape characM-bM-^@M-^P | ||
140 | ter can be changed in configuration files using the ^[[1mEscapeChar ^[[22mconfiguraM-bM-^@M-^P | ||
141 | tion directive or on the command line by the ^[[1mM-bMM-^Re ^[[22moption. | ||
142 | |||
143 | The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are: | ||
144 | |||
145 | ^[[1m~. ^[[22mDisconnect | ||
146 | |||
147 | ^[[1m~^Z ^[[22mBackground ssh | ||
148 | |||
149 | ^[[1m~# ^[[22mList forwarded connections | ||
150 | |||
151 | ^[[1m~& ^[[22mBackground ssh at logout when waiting for forwarded connection / | ||
152 | X11 sessions to terminate | ||
153 | |||
154 | ^[[1m~? ^[[22mDisplay a list of escape characters | ||
155 | |||
156 | ^[[1m~C ^[[22mOpen command line (only useful for adding port forwardings using | ||
157 | the ^[[1mM-bMM-^RL ^[[22mand ^[[1mM-bMM-^RR ^[[22moptions) | ||
158 | |||
159 | ^[[1m~R ^[[22mRequest rekeying of the connection (only useful for SSH protocol | ||
160 | version 2 and if the peer supports it) | ||
161 | |||
162 | ^[[1mX11 and TCP forwarding^[[0m | ||
163 | |||
164 | If the ^[[1mForwardX11 ^[[22mvariable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or, see the description of | ||
165 | the ^[[1mM-bMM-^RX ^[[22mand ^[[1mM-bMM-^Rx ^[[22moptions described later) and the user is using X11 (the | ||
166 | DISPLAY environment variable is set), the connection to the X11 display | ||
167 | is automatically forwarded to the remote side in such a way that any X11 | ||
168 | programs started from the shell (or command) will go through the | ||
169 | encrypted channel, and the connection to the real X server will be made | ||
170 | from the local machine. The user should not manually set DISPLAY. ForM-bM-^@M-^P | ||
171 | warding of X11 connections can be configured on the command line or in | ||
172 | configuration files. | ||
173 | |||
174 | The DISPLAY value set by ^[[1mssh ^[[22mwill point to the server machine, but with a | ||
175 | display number greater than zero. This is normal, and happens because | ||
176 | ^[[1mssh ^[[22mcreates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the | ||
177 | connections over the encrypted channel. | ||
178 | |||
179 | ^[[1mssh ^[[22mwill also automatically set up Xauthority data on the server machine. | ||
180 | For this purpose, it will generate a random authorization cookie, store | ||
181 | it in Xauthority on the server, and verify that any forwarded connections | ||
182 | carry this cookie and replace it by the real cookie when the connection | ||
183 | is opened. The real authentication cookie is never sent to the server | ||
184 | machine (and no cookies are sent in the plain). | ||
185 | |||
186 | If the ^[[1mForwardAgent ^[[22mvariable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or, see the description of | ||
187 | the ^[[1mM-bMM-^RA ^[[22mand ^[[1mM-bMM-^Ra ^[[22moptions described later) and the user is using an authentiM-bM-^@M-^P | ||
188 | cation agent, the connection to the agent is automatically forwarded to | ||
189 | the remote side. | ||
190 | |||
191 | Forwarding of arbitrary TCP/IP connections over the secure channel can be | ||
192 | specified either on the command line or in a configuration file. One | ||
193 | possible application of TCP/IP forwarding is a secure connection to an | ||
194 | electronic purse; another is going through firewalls. | ||
195 | |||
196 | ^[[1mServer authentication^[[0m | ||
197 | |||
198 | ^[[1mssh ^[[22mautomatically maintains and checks a database containing identificaM-bM-^@M-^P | ||
199 | tions for all hosts it has ever been used with. Host keys are stored in | ||
200 | ^[[4m$HOME/.ssh/known_hosts^[[24m in the userM-bM-^@M-^Ys home directory. Additionally, the | ||
201 | file ^[[4m/etc/ssh/ssh_known_hosts^[[24m is automatically checked for known hosts. | ||
202 | Any new hosts are automatically added to the userM-bM-^@M-^Ys file. If a hostM-bM-^@M-^Ys | ||
203 | identification ever changes, ^[[1mssh ^[[22mwarns about this and disables password | ||
204 | authentication to prevent a trojan horse from getting the userM-bM-^@M-^Ys passM-bM-^@M-^P | ||
205 | word. Another purpose of this mechanism is to prevent manM-bM-^@M-^PinM-bM-^@M-^PtheM-bM-^@M-^Pmiddle | ||
206 | attacks which could otherwise be used to circumvent the encryption. The | ||
207 | ^[[1mStrictHostKeyChecking ^[[22moption can be used to prevent logins to machines | ||
208 | whose host key is not known or has changed. | ||
209 | |||
210 | The options are as follows: | ||
211 | |||
212 | ^[[1mM-bMM-^Ra ^[[22mDisables forwarding of the authentication agent connection. | ||
213 | |||
214 | ^[[1mM-bMM-^RA ^[[22mEnables forwarding of the authentication agent connection. This | ||
215 | can also be specified on a perM-bM-^@M-^Phost basis in a configuration | ||
216 | file. | ||
217 | |||
218 | Agent forwarding should be enabled with caution. Users with the | ||
219 | ability to bypass file permissions on the remote host (for the | ||
220 | agentM-bM-^@M-^Ys UnixM-bM-^@M-^Pdomain socket) can access the local agent through | ||
221 | the forwarded connection. An attacker cannot obtain key material | ||
222 | from the agent, however they can perform operations on the keys | ||
223 | that enable them to authenticate using the identities loaded into | ||
224 | the agent. | ||
225 | |||
226 | ^[[1mM-bMM-^Rb ^[[4m^[[22mbind_address^[[0m | ||
227 | Specify the interface to transmit from on machines with multiple | ||
228 | interfaces or aliased addresses. | ||
229 | |||
230 | ^[[1mM-bMM-^Rc ^[[4m^[[22mblowfish|3des|des^[[0m | ||
231 | Selects the cipher to use for encrypting the session. ^[[4m3des^[[24m is | ||
232 | used by default. It is believed to be secure. ^[[4m3des^[[24m (tripleM-bM-^@M-^Pdes) | ||
233 | is an encryptM-bM-^@M-^PdecryptM-bM-^@M-^Pencrypt triple with three different keys. | ||
234 | ^[[4mblowfish^[[24m is a fast block cipher, it appears very secure and is | ||
235 | much faster than ^[[4m3des^[[24m. ^[[4mdes^[[24m is only supported in the ^[[1mssh ^[[22mclient | ||
236 | for interoperability with legacy protocol 1 implementations that | ||
237 | do not support the ^[[4m3des^[[24m cipher. Its use is strongly discouraged | ||
238 | due to cryptographic weaknesses. | ||
239 | |||
240 | ^[[1mM-bMM-^Rc ^[[4m^[[22mcipher_spec^[[0m | ||
241 | Additionally, for protocol version 2 a commaM-bM-^@M-^Pseparated list of | ||
242 | ciphers can be specified in order of preference. See ^[[1mCiphers ^[[22mfor | ||
243 | more information. | ||
244 | |||
245 | ^[[1mM-bMM-^Re ^[[4m^[[22mch|^ch|none^[[0m | ||
246 | Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y). | ||
247 | The escape character is only recognized at the beginning of a | ||
248 | line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the | ||
249 | connection, followed by controlM-bM-^@M-^PZ suspends the connection, and | ||
250 | followed by itself sends the escape character once. Setting the | ||
251 | character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session | ||
252 | fully transparent. | ||
253 | |||
254 | ^[[1mM-bMM-^Rf ^[[22mRequests ^[[1mssh ^[[22mto go to background just before command execution. | ||
255 | This is useful if ^[[1mssh ^[[22mis going to ask for passwords or | ||
256 | passphrases, but the user wants it in the background. This | ||
257 | implies ^[[1mM-bMM-^Rn^[[22m. The recommended way to start X11 programs at a | ||
258 | remote site is with something like ^[[1mssh M-bM-^@M-^Pf host xterm^[[22m. | ||
259 | |||
260 | ^[[1mM-bMM-^Rg ^[[22mAllows remote hosts to connect to local forwarded ports. | ||
261 | |||
262 | ^[[1mM-bMM-^Ri ^[[4m^[[22midentity_file^[[0m | ||
263 | Selects a file from which the identity (private key) for RSA or | ||
264 | DSA authentication is read. The default is ^[[4m$HOME/.ssh/identity^[[0m | ||
265 | for protocol version 1, and ^[[4m$HOME/.ssh/id_rsa^[[24m and | ||
266 | ^[[4m$HOME/.ssh/id_dsa^[[24m for protocol version 2. Identity files may | ||
267 | also be specified on a perM-bM-^@M-^Phost basis in the configuration file. | ||
268 | It is possible to have multiple ^[[1mM-bMM-^Ri ^[[22moptions (and multiple identiM-bM-^@M-^P | ||
269 | ties specified in configuration files). | ||
270 | |||
271 | ^[[1mM-bMM-^RI ^[[4m^[[22msmartcard_device^[[0m | ||
272 | Specifies which smartcard device to use. The argument is the | ||
273 | device ^[[1mssh ^[[22mshould use to communicate with a smartcard used for | ||
274 | storing the userM-bM-^@M-^Ys private RSA key. | ||
275 | |||
276 | ^[[1mM-bMM-^Rk ^[[22mDisables forwarding of Kerberos tickets and AFS tokens. This may | ||
277 | also be specified on a perM-bM-^@M-^Phost basis in the configuration file. | ||
278 | |||
279 | ^[[1mM-bMM-^Rl ^[[4m^[[22mlogin_name^[[0m | ||
280 | Specifies the user to log in as on the remote machine. This also | ||
281 | may be specified on a perM-bM-^@M-^Phost basis in the configuration file. | ||
282 | |||
283 | ^[[1mM-bMM-^Rm ^[[4m^[[22mmac_spec^[[0m | ||
284 | Additionally, for protocol version 2 a commaM-bM-^@M-^Pseparated list of | ||
285 | MAC (message authentication code) algorithms can be specified in | ||
286 | order of preference. See the ^[[1mMACs ^[[22mkeyword for more information. | ||
287 | |||
288 | ^[[1mM-bMM-^Rn ^[[22mRedirects stdin from ^[[4m/dev/null^[[24m (actually, prevents reading from | ||
289 | stdin). This must be used when ^[[1mssh ^[[22mis run in the background. A | ||
290 | common trick is to use this to run X11 programs on a remote | ||
291 | machine. For example, ^[[1mssh M-bM-^@M-^Pn shadows.cs.hut.fi emacs & ^[[22mwill | ||
292 | start an emacs on shadows.cs.hut.fi, and the X11 connection will | ||
293 | be automatically forwarded over an encrypted channel. The ^[[1mssh^[[0m | ||
294 | program will be put in the background. (This does not work if | ||
295 | ^[[1mssh ^[[22mneeds to ask for a password or passphrase; see also the ^[[1mM-bMM-^Rf^[[0m | ||
296 | option.) | ||
297 | |||
298 | ^[[1mM-bMM-^RN ^[[22mDo not execute a remote command. This is useful for just forM-bM-^@M-^P | ||
299 | warding ports (protocol version 2 only). | ||
300 | |||
301 | ^[[1mM-bMM-^Ro ^[[4m^[[22moption^[[0m | ||
302 | Can be used to give options in the format used in the configuraM-bM-^@M-^P | ||
303 | tion file. This is useful for specifying options for which there | ||
304 | is no separate commandM-bM-^@M-^Pline flag. | ||
305 | |||
306 | ^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[0m | ||
307 | Port to connect to on the remote host. This can be specified on | ||
308 | a perM-bM-^@M-^Phost basis in the configuration file. | ||
309 | |||
310 | ^[[1mM-bMM-^Rq ^[[22mQuiet mode. Causes all warning and diagnostic messages to be | ||
311 | suppressed. | ||
312 | |||
313 | ^[[1mM-bMM-^Rs ^[[22mMay be used to request invocation of a subsystem on the remote | ||
314 | system. Subsystems are a feature of the SSH2 protocol which | ||
315 | facilitate the use of SSH as a secure transport for other appliM-bM-^@M-^P | ||
316 | cations (eg. sftp). The subsystem is specified as the remote comM-bM-^@M-^P | ||
317 | mand. | ||
318 | |||
319 | ^[[1mM-bMM-^Rt ^[[22mForce pseudoM-bM-^@M-^Ptty allocation. This can be used to execute arbiM-bM-^@M-^P | ||
320 | trary screenM-bM-^@M-^Pbased programs on a remote machine, which can be | ||
321 | very useful, e.g., when implementing menu services. Multiple ^[[1mM-bMM-^Rt^[[0m | ||
322 | options force tty allocation, even if ^[[1mssh ^[[22mhas no local tty. | ||
323 | |||
324 | ^[[1mM-bMM-^RT ^[[22mDisable pseudoM-bM-^@M-^Ptty allocation. | ||
325 | |||
326 | ^[[1mM-bMM-^Rv ^[[22mVerbose mode. Causes ^[[1mssh ^[[22mto print debugging messages about its | ||
327 | progress. This is helpful in debugging connection, authenticaM-bM-^@M-^P | ||
328 | tion, and configuration problems. Multiple ^[[1mM-bMM-^Rv ^[[22moptions increases | ||
329 | the verbosity. Maximum is 3. | ||
330 | |||
331 | ^[[1mM-bMM-^Rx ^[[22mDisables X11 forwarding. | ||
332 | |||
333 | ^[[1mM-bMM-^RX ^[[22mEnables X11 forwarding. This can also be specified on a perM-bM-^@M-^Phost | ||
334 | basis in a configuration file. | ||
335 | |||
336 | X11 forwarding should be enabled with caution. Users with the | ||
337 | ability to bypass file permissions on the remote host (for the | ||
338 | userM-bM-^@M-^Ys X authorization database) can access the local X11 display | ||
339 | through the forwarded connection. An attacker may then be able | ||
340 | to perform activities such as keystroke monitoring. | ||
341 | |||
342 | ^[[1mM-bMM-^RC ^[[22mRequests compression of all data (including stdin, stdout, | ||
343 | stderr, and data for forwarded X11 and TCP/IP connections). The | ||
344 | compression algorithm is the same used by gzip(1), and the | ||
345 | M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the ^[[1mCompressionLevel ^[[22moption for proM-bM-^@M-^P | ||
346 | tocol version 1. Compression is desirable on modem lines and | ||
347 | other slow connections, but will only slow down things on fast | ||
348 | networks. The default value can be set on a hostM-bM-^@M-^PbyM-bM-^@M-^Phost basis | ||
349 | in the configuration files; see the ^[[1mCompression ^[[22moption. | ||
350 | |||
351 | ^[[1mM-bMM-^RF ^[[4m^[[22mconfigfile^[[0m | ||
352 | Specifies an alternative perM-bM-^@M-^Puser configuration file. If a conM-bM-^@M-^P | ||
353 | figuration file is given on the command line, the systemM-bM-^@M-^Pwide | ||
354 | configuration file (^[[4m/etc/ssh/ssh_config^[[24m) will be ignored. The | ||
355 | default for the perM-bM-^@M-^Puser configuration file is ^[[4m$HOME/.ssh/config^[[24m. | ||
356 | |||
357 | ^[[1mM-bMM-^RL ^[[4m^[[22mport:host:hostport^[[0m | ||
358 | Specifies that the given port on the local (client) host is to be | ||
359 | forwarded to the given host and port on the remote side. This | ||
360 | works by allocating a socket to listen to ^[[4mport^[[24m on the local side, | ||
361 | and whenever a connection is made to this port, the connection is | ||
362 | forwarded over the secure channel, and a connection is made to | ||
363 | ^[[4mhost^[[24m port ^[[4mhostport^[[24m from the remote machine. Port forwardings can | ||
364 | also be specified in the configuration file. Only root can forM-bM-^@M-^P | ||
365 | ward privileged ports. IPv6 addresses can be specified with an | ||
366 | alternative syntax: ^[[4mport/host/hostport^[[0m | ||
367 | |||
368 | ^[[1mM-bMM-^RR ^[[4m^[[22mport:host:hostport^[[0m | ||
369 | Specifies that the given port on the remote (server) host is to | ||
370 | be forwarded to the given host and port on the local side. This | ||
371 | works by allocating a socket to listen to ^[[4mport^[[24m on the remote | ||
372 | side, and whenever a connection is made to this port, the connecM-bM-^@M-^P | ||
373 | tion is forwarded over the secure channel, and a connection is | ||
374 | made to ^[[4mhost^[[24m port ^[[4mhostport^[[24m from the local machine. Port forwardM-bM-^@M-^P | ||
375 | ings can also be specified in the configuration file. Privileged | ||
376 | ports can be forwarded only when logging in as root on the remote | ||
377 | machine. IPv6 addresses can be specified with an alternative | ||
378 | syntax: ^[[4mport/host/hostport^[[0m | ||
379 | |||
380 | ^[[1mM-bMM-^RD ^[[4m^[[22mport^[[0m | ||
381 | Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] applicationM-bM-^@M-^Plevel port forwarding. | ||
382 | This works by allocating a socket to listen to ^[[4mport^[[24m on the local | ||
383 | side, and whenever a connection is made to this port, the connecM-bM-^@M-^P | ||
384 | tion is forwarded over the secure channel, and the application | ||
385 | protocol is then used to determine where to connect to from the | ||
386 | remote machine. Currently the SOCKS4 protocol is supported, and | ||
387 | ^[[1mssh ^[[22mwill act as a SOCKS4 server. Only root can forward priviM-bM-^@M-^P | ||
388 | leged ports. Dynamic port forwardings can also be specified in | ||
389 | the configuration file. | ||
390 | |||
391 | ^[[1mM-bMM-^R1 ^[[22mForces ^[[1mssh ^[[22mto try protocol version 1 only. | ||
392 | |||
393 | ^[[1mM-bMM-^R2 ^[[22mForces ^[[1mssh ^[[22mto try protocol version 2 only. | ||
394 | |||
395 | ^[[1mM-bMM-^R4 ^[[22mForces ^[[1mssh ^[[22mto use IPv4 addresses only. | ||
396 | |||
397 | ^[[1mM-bMM-^R6 ^[[22mForces ^[[1mssh ^[[22mto use IPv6 addresses only. | ||
398 | |||
399 | ^[[1mCONFIGURATION FILES^[[0m | ||
400 | ^[[1mssh ^[[22mmay additionally obtain configuration data from a perM-bM-^@M-^Puser configuraM-bM-^@M-^P | ||
401 | tion file and a systemM-bM-^@M-^Pwide configuration file. The file format and conM-bM-^@M-^P | ||
402 | figuration options are described in ssh_config(5). | ||
403 | |||
404 | ^[[1mENVIRONMENT^[[0m | ||
405 | ^[[1mssh ^[[22mwill normally set the following environment variables: | ||
406 | |||
407 | DISPLAY | ||
408 | The DISPLAY variable indicates the location of the X11 server. | ||
409 | It is automatically set by ^[[1mssh ^[[22mto point to a value of the form | ||
410 | M-bM-^@M-^\hostname:nM-bM-^@M-^] where hostname indicates the host where the shell | ||
411 | runs, and n is an integer >= 1. ^[[1mssh ^[[22muses this special value to | ||
412 | forward X11 connections over the secure channel. The user should | ||
413 | normally not set DISPLAY explicitly, as that will render the X11 | ||
414 | connection insecure (and will require the user to manually copy | ||
415 | any required authorization cookies). | ||
416 | |||
417 | HOME Set to the path of the userM-bM-^@M-^Ys home directory. | ||
418 | |||
419 | LOGNAME | ||
420 | Synonym for USER; set for compatibility with systems that use | ||
421 | this variable. | ||
422 | |||
423 | MAIL Set to the path of the userM-bM-^@M-^Ys mailbox. | ||
424 | |||
425 | PATH Set to the default PATH, as specified when compiling ^[[1mssh^[[22m. | ||
426 | |||
427 | SSH_ASKPASS | ||
428 | If ^[[1mssh ^[[22mneeds a passphrase, it will read the passphrase from the | ||
429 | current terminal if it was run from a terminal. If ^[[1mssh ^[[22mdoes not | ||
430 | have a terminal associated with it but DISPLAY and SSH_ASKPASS | ||
431 | are set, it will execute the program specified by SSH_ASKPASS and | ||
432 | open an X11 window to read the passphrase. This is particularly | ||
433 | useful when calling ^[[1mssh ^[[22mfrom a ^[[4m.Xsession^[[24m or related script. | ||
434 | (Note that on some machines it may be necessary to redirect the | ||
435 | input from ^[[4m/dev/null^[[24m to make this work.) | ||
436 | |||
437 | SSH_AUTH_SOCK | ||
438 | Identifies the path of a unixM-bM-^@M-^Pdomain socket used to communicate | ||
439 | with the agent. | ||
440 | |||
441 | SSH_CONNECTION | ||
442 | Identifies the client and server ends of the connection. The | ||
443 | variable contains four spaceM-bM-^@M-^Pseparated values: client ipM-bM-^@M-^Paddress, | ||
444 | client port number, server ipM-bM-^@M-^Paddress and server port number. | ||
445 | |||
446 | SSH_ORIGINAL_COMMAND | ||
447 | The variable contains the original command line if a forced comM-bM-^@M-^P | ||
448 | mand is executed. It can be used to extract the original arguM-bM-^@M-^P | ||
449 | ments. | ||
450 | |||
451 | SSH_TTY | ||
452 | This is set to the name of the tty (path to the device) associM-bM-^@M-^P | ||
453 | ated with the current shell or command. If the current session | ||
454 | has no tty, this variable is not set. | ||
455 | |||
456 | TZ The timezone variable is set to indicate the present timezone if | ||
457 | it was set when the daemon was started (i.e., the daemon passes | ||
458 | the value on to new connections). | ||
459 | |||
460 | USER Set to the name of the user logging in. | ||
461 | |||
462 | Additionally, ^[[1mssh ^[[22mreads ^[[4m$HOME/.ssh/environment^[[24m, and adds lines of the | ||
463 | format M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and if users | ||
464 | are allowed to change their environment. See the ^[[1mPermitUserEnvironment^[[0m | ||
465 | option in sshd_config(5). | ||
466 | |||
467 | ^[[1mFILES^[[0m | ||
468 | $HOME/.ssh/known_hosts | ||
469 | Records host keys for all hosts the user has logged into that are | ||
470 | not in ^[[4m/etc/ssh/ssh_known_hosts^[[24m. See sshd(8). | ||
471 | |||
472 | $HOME/.ssh/identity, $HOME/.ssh/id_dsa, $HOME/.ssh/id_rsa | ||
473 | Contains the authentication identity of the user. They are for | ||
474 | protocol 1 RSA, protocol 2 DSA, and protocol 2 RSA, respectively. | ||
475 | These files contain sensitive data and should be readable by the | ||
476 | user but not accessible by others (read/write/execute). Note | ||
477 | that ^[[1mssh ^[[22mignores a private key file if it is accessible by othM-bM-^@M-^P | ||
478 | ers. It is possible to specify a passphrase when generating the | ||
479 | key; the passphrase will be used to encrypt the sensitive part of | ||
480 | this file using 3DES. | ||
481 | |||
482 | $HOME/.ssh/identity.pub, $HOME/.ssh/id_dsa.pub, $HOME/.ssh/id_rsa.pub | ||
483 | Contains the public key for authentication (public part of the | ||
484 | identity file in humanM-bM-^@M-^Preadable form). The contents of the | ||
485 | ^[[4m$HOME/.ssh/identity.pub^[[24m file should be added to | ||
486 | ^[[4m$HOME/.ssh/authorized_keys^[[24m on all machines where the user wishes | ||
487 | to log in using protocol version 1 RSA authentication. The conM-bM-^@M-^P | ||
488 | tents of the ^[[4m$HOME/.ssh/id_dsa.pub^[[24m and ^[[4m$HOME/.ssh/id_rsa.pub^[[24m file | ||
489 | should be added to ^[[4m$HOME/.ssh/authorized_keys^[[24m on all machines | ||
490 | where the user wishes to log in using protocol version 2 DSA/RSA | ||
491 | authentication. These files are not sensitive and can (but need | ||
492 | not) be readable by anyone. These files are never used automatiM-bM-^@M-^P | ||
493 | cally and are not necessary; they are only provided for the conM-bM-^@M-^P | ||
494 | venience of the user. | ||
495 | |||
496 | $HOME/.ssh/config | ||
497 | This is the perM-bM-^@M-^Puser configuration file. The file format and | ||
498 | configuration options are described in ssh_config(5). | ||
499 | |||
500 | $HOME/.ssh/authorized_keys | ||
501 | Lists the public keys (RSA/DSA) that can be used for logging in | ||
502 | as this user. The format of this file is described in the | ||
503 | sshd(8) manual page. In the simplest form the format is the same | ||
504 | as the .pub identity files. This file is not highly sensitive, | ||
505 | but the recommended permissions are read/write for the user, and | ||
506 | not accessible by others. | ||
507 | |||
508 | /etc/ssh/ssh_known_hosts | ||
509 | Systemwide list of known host keys. This file should be prepared | ||
510 | by the system administrator to contain the public host keys of | ||
511 | all machines in the organization. This file should be worldM-bM-^@M-^P | ||
512 | readable. This file contains public keys, one per line, in the | ||
513 | following format (fields separated by spaces): system name, pubM-bM-^@M-^P | ||
514 | lic key and optional comment field. When different names are | ||
515 | used for the same machine, all such names should be listed, sepaM-bM-^@M-^P | ||
516 | rated by commas. The format is described on the sshd(8) manual | ||
517 | page. | ||
518 | |||
519 | The canonical system name (as returned by name servers) is used | ||
520 | by sshd(8) to verify the client host when logging in; other names | ||
521 | are needed because ^[[1mssh ^[[22mdoes not convert the userM-bM-^@M-^Psupplied name to | ||
522 | a canonical name before checking the key, because someone with | ||
523 | access to the name servers would then be able to fool host | ||
524 | authentication. | ||
525 | |||
526 | /etc/ssh/ssh_config | ||
527 | Systemwide configuration file. The file format and configuration | ||
528 | options are described in ssh_config(5). | ||
529 | |||
530 | /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key, | ||
531 | /etc/ssh/ssh_host_rsa_key | ||
532 | These three files contain the private parts of the host keys and | ||
533 | are used for ^[[1mRhostsRSAAuthentication ^[[22mand ^[[1mHostbasedAuthentication^[[22m. | ||
534 | If the protocol version 1 ^[[1mRhostsRSAAuthentication ^[[22mmethod is used, | ||
535 | ^[[1mssh ^[[22mmust be setuid root, since the host key is readable only by | ||
536 | root. For protocol version 2, ^[[1mssh ^[[22muses sshM-bM-^@M-^Pkeysign(8) to access | ||
537 | the host keys for ^[[1mHostbasedAuthentication^[[22m. This eliminates the | ||
538 | requirement that ^[[1mssh ^[[22mbe setuid root when that authentication | ||
539 | method is used. By default ^[[1mssh ^[[22mis not setuid root. | ||
540 | |||
541 | $HOME/.rhosts | ||
542 | This file is used in ^[[4m.rhosts^[[24m authentication to list the host/user | ||
543 | pairs that are permitted to log in. (Note that this file is also | ||
544 | used by rlogin and rsh, which makes using this file insecure.) | ||
545 | Each line of the file contains a host name (in the canonical form | ||
546 | returned by name servers), and then a user name on that host, | ||
547 | separated by a space. On some machines this file may need to be | ||
548 | worldM-bM-^@M-^Preadable if the userM-bM-^@M-^Ys home directory is on a NFS partiM-bM-^@M-^P | ||
549 | tion, because sshd(8) reads it as root. Additionally, this file | ||
550 | must be owned by the user, and must not have write permissions | ||
551 | for anyone else. The recommended permission for most machines is | ||
552 | read/write for the user, and not accessible by others. | ||
553 | |||
554 | Note that by default sshd(8) will be installed so that it | ||
555 | requires successful RSA host authentication before permitting | ||
556 | .rhosts authentication. If the server machine does not have the | ||
557 | clientM-bM-^@M-^Ys host key in ^[[4m/etc/ssh/ssh_known_hosts^[[24m, it can be stored | ||
558 | in ^[[4m$HOME/.ssh/known_hosts^[[24m. The easiest way to do this is to conM-bM-^@M-^P | ||
559 | nect back to the client from the server machine using ssh; this | ||
560 | will automatically add the host key to ^[[4m$HOME/.ssh/known_hosts^[[24m. | ||
561 | |||
562 | $HOME/.shosts | ||
563 | This file is used exactly the same way as ^[[4m.rhosts^[[24m. The purpose | ||
564 | for having this file is to be able to use rhosts authentication | ||
565 | with ^[[1mssh ^[[22mwithout permitting login with ^[[1mrlogin ^[[22mor rsh(1). | ||
566 | |||
567 | /etc/hosts.equiv | ||
568 | This file is used during ^[[4m.rhosts^[[24m ^[[4mauthentication.^[[24m It contains | ||
569 | canonical hosts names, one per line (the full format is described | ||
570 | on the sshd(8) manual page). If the client host is found in this | ||
571 | file, login is automatically permitted provided client and server | ||
572 | user names are the same. Additionally, successful RSA host | ||
573 | authentication is normally required. This file should only be | ||
574 | writable by root. | ||
575 | |||
576 | /etc/shosts.equiv | ||
577 | This file is processed exactly as ^[[4m/etc/hosts.equiv^[[24m. This file | ||
578 | may be useful to permit logins using ^[[1mssh ^[[22mbut not using | ||
579 | rsh/rlogin. | ||
580 | |||
581 | /etc/ssh/sshrc | ||
582 | Commands in this file are executed by ^[[1mssh ^[[22mwhen the user logs in | ||
583 | just before the userM-bM-^@M-^Ys shell (or command) is started. See the | ||
584 | sshd(8) manual page for more information. | ||
585 | |||
586 | $HOME/.ssh/rc | ||
587 | Commands in this file are executed by ^[[1mssh ^[[22mwhen the user logs in | ||
588 | just before the userM-bM-^@M-^Ys shell (or command) is started. See the | ||
589 | sshd(8) manual page for more information. | ||
590 | |||
591 | $HOME/.ssh/environment | ||
592 | Contains additional definitions for environment variables, see | ||
593 | section ^[[4mENVIRONMENT^[[24m above. | ||
594 | |||
595 | ^[[1mDIAGNOSTICS^[[0m | ||
596 | ^[[1mssh ^[[22mexits with the exit status of the remote command or with 255 if an | ||
597 | error occurred. | ||
598 | |||
599 | ^[[1mAUTHORS^[[0m | ||
600 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
601 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
602 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
603 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
604 | versions 1.5 and 2.0. | ||
605 | |||
606 | ^[[1mSEE ALSO^[[0m | ||
607 | rsh(1), scp(1), sftp(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), | ||
608 | telnet(1), ssh_config(5), sshM-bM-^@M-^Pkeysign(8), sshd(8) | ||
609 | |||
610 | T. Ylonen, T. Kivinen, M. Saarinen, T. Rinne, and S. Lehtinen, ^[[4mSSH^[[0m | ||
611 | ^[[4mProtocol^[[24m ^[[4mArchitecture^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^PsecshM-bM-^@M-^ParchitectureM-bM-^@M-^P12.txt, January | ||
612 | 2002, work in progress material. | ||
613 | |||
614 | BSD September 25, 1999 BSD | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..559705343 --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,400 @@ | |||
1 | SSH_CONFIG(5) BSD File Formats Manual SSH_CONFIG(5) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1mssh_config ^[[22mM-bMM-^R OpenSSH SSH client configuration files | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[4m$HOME/.ssh/config^[[0m | ||
8 | ^[[4m/etc/ssh/ssh_config^[[0m | ||
9 | |||
10 | ^[[1mDESCRIPTION^[[0m | ||
11 | ^[[1mssh ^[[22mobtains configuration data from the following sources in the followM-bM-^@M-^P | ||
12 | ing order: | ||
13 | 1. commandM-bM-^@M-^Pline options | ||
14 | 2. userM-bM-^@M-^Ys configuration file (^[[4m$HOME/.ssh/config^[[24m) | ||
15 | 3. systemM-bM-^@M-^Pwide configuration file (^[[4m/etc/ssh/ssh_config^[[24m) | ||
16 | |||
17 | For each parameter, the first obtained value will be used. The configuM-bM-^@M-^P | ||
18 | ration files contain sections bracketed by M-bM-^@M-^\HostM-bM-^@M-^] specifications, and | ||
19 | that section is only applied for hosts that match one of the patterns | ||
20 | given in the specification. The matched host name is the one given on | ||
21 | the command line. | ||
22 | |||
23 | Since the first obtained value for each parameter is used, more hostM-bM-^@M-^PspeM-bM-^@M-^P | ||
24 | cific declarations should be given near the beginning of the file, and | ||
25 | general defaults at the end. | ||
26 | |||
27 | The configuration file has the following format: | ||
28 | |||
29 | Empty lines and lines starting with M-bM-^@M-^X#M-bM-^@M-^Y are comments. | ||
30 | |||
31 | Otherwise a line is of the format M-bM-^@M-^\keyword argumentsM-bM-^@M-^]. Configuration | ||
32 | options may be separated by whitespace or optional whitespace and exactly | ||
33 | one M-bM-^@M-^X=M-bM-^@M-^Y; the latter format is useful to avoid the need to quote whitesM-bM-^@M-^P | ||
34 | pace when specifying configuration options using the ^[[1mssh^[[22m, ^[[1mscp ^[[22mand ^[[1msftp M-bMM-^Ro^[[0m | ||
35 | option. | ||
36 | |||
37 | The possible keywords and their meanings are as follows (note that keyM-bM-^@M-^P | ||
38 | words are caseM-bM-^@M-^Pinsensitive and arguments are caseM-bM-^@M-^Psensitive): | ||
39 | |||
40 | ^[[1mHost ^[[22mRestricts the following declarations (up to the next ^[[1mHost ^[[22mkeyM-bM-^@M-^P | ||
41 | word) to be only for those hosts that match one of the patterns | ||
42 | given after the keyword. M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? can be used as wildcards | ||
43 | in the patterns. A single M-bM-^@M-^X*M-bM-^@M-^Y as a pattern can be used to proM-bM-^@M-^P | ||
44 | vide global defaults for all hosts. The host is the ^[[4mhostname^[[0m | ||
45 | argument given on the command line (i.e., the name is not conM-bM-^@M-^P | ||
46 | verted to a canonicalized host name before matching). | ||
47 | |||
48 | ^[[1mAFSTokenPassing^[[0m | ||
49 | Specifies whether to pass AFS tokens to remote host. The arguM-bM-^@M-^P | ||
50 | ment to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option applies | ||
51 | to protocol version 1 only. | ||
52 | |||
53 | ^[[1mBatchMode^[[0m | ||
54 | If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled. | ||
55 | This option is useful in scripts and other batch jobs where no | ||
56 | user is present to supply the password. The argument must be | ||
57 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
58 | |||
59 | ^[[1mBindAddress^[[0m | ||
60 | Specify the interface to transmit from on machines with multiple | ||
61 | interfaces or aliased addresses. Note that this option does not | ||
62 | work if ^[[1mUsePrivilegedPort ^[[22mis set to M-bM-^@M-^\yesM-bM-^@M-^]. | ||
63 | |||
64 | ^[[1mChallengeResponseAuthentication^[[0m | ||
65 | Specifies whether to use challenge response authentication. The | ||
66 | argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is | ||
67 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
68 | |||
69 | ^[[1mCheckHostIP^[[0m | ||
70 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh will additionally check the | ||
71 | host IP address in the ^[[4mknown_hosts^[[24m file. This allows ssh to | ||
72 | detect if a host key changed due to DNS spoofing. If the option | ||
73 | is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The default is | ||
74 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
75 | |||
76 | ^[[1mCipher ^[[22mSpecifies the cipher to use for encrypting the session in protoM-bM-^@M-^P | ||
77 | col version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are supM-bM-^@M-^P | ||
78 | ported. ^[[4mdes^[[24m is only supported in the ^[[1mssh ^[[22mclient for interoperM-bM-^@M-^P | ||
79 | ability with legacy protocol 1 implementations that do not supM-bM-^@M-^P | ||
80 | port the ^[[4m3des^[[24m cipher. Its use is strongly discouraged due to | ||
81 | cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^]. | ||
82 | |||
83 | ^[[1mCiphers^[[0m | ||
84 | Specifies the ciphers allowed for protocol version 2 in order of | ||
85 | preference. Multiple ciphers must be commaM-bM-^@M-^Pseparated. The | ||
86 | default is | ||
87 | |||
88 | M-bM-^@M-^XM-bM-^@M-^Xaes128M-bM-^@M-^Pcbc,3desM-bM-^@M-^Pcbc,blowfishM-bM-^@M-^Pcbc,cast128M-bM-^@M-^Pcbc,arcfour, | ||
89 | aes192M-bM-^@M-^Pcbc,aes256M-bM-^@M-^PcbcM-bM-^@M-^YM-bM-^@M-^Y | ||
90 | |||
91 | ^[[1mClearAllForwardings^[[0m | ||
92 | Specifies that all local, remote and dynamic port forwardings | ||
93 | specified in the configuration files or on the command line be | ||
94 | cleared. This option is primarily useful when used from the ^[[1mssh^[[0m | ||
95 | command line to clear port forwardings set in configuration | ||
96 | files, and is automatically set by scp(1) and sftp(1). The arguM-bM-^@M-^P | ||
97 | ment must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
98 | |||
99 | ^[[1mCompression^[[0m | ||
100 | Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] | ||
101 | or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
102 | |||
103 | ^[[1mCompressionLevel^[[0m | ||
104 | Specifies the compression level to use if compression is enabled. | ||
105 | The argument must be an integer from 1 (fast) to 9 (slow, best). | ||
106 | The default level is 6, which is good for most applications. The | ||
107 | meaning of the values is the same as in gzip(1). Note that this | ||
108 | option applies to protocol version 1 only. | ||
109 | |||
110 | ^[[1mConnectionAttempts^[[0m | ||
111 | Specifies the number of tries (one per second) to make before | ||
112 | exiting. The argument must be an integer. This may be useful in | ||
113 | scripts if the connection sometimes fails. The default is 1. | ||
114 | |||
115 | ^[[1mDynamicForward^[[0m | ||
116 | Specifies that a TCP/IP port on the local machine be forwarded | ||
117 | over the secure channel, and the application protocol is then | ||
118 | used to determine where to connect to from the remote machine. | ||
119 | The argument must be a port number. Currently the SOCKS4 protoM-bM-^@M-^P | ||
120 | col is supported, and ^[[1mssh ^[[22mwill act as a SOCKS4 server. Multiple | ||
121 | forwardings may be specified, and additional forwardings can be | ||
122 | given on the command line. Only the superuser can forward priviM-bM-^@M-^P | ||
123 | leged ports. | ||
124 | |||
125 | ^[[1mEscapeChar^[[0m | ||
126 | Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character | ||
127 | can also be set on the command line. The argument should be a | ||
128 | single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable | ||
129 | the escape character entirely (making the connection transparent | ||
130 | for binary data). | ||
131 | |||
132 | ^[[1mForwardAgent^[[0m | ||
133 | Specifies whether the connection to the authentication agent (if | ||
134 | any) will be forwarded to the remote machine. The argument must | ||
135 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
136 | |||
137 | Agent forwarding should be enabled with caution. Users with the | ||
138 | ability to bypass file permissions on the remote host (for the | ||
139 | agentM-bM-^@M-^Ys UnixM-bM-^@M-^Pdomain socket) can access the local agent through | ||
140 | the forwarded connection. An attacker cannot obtain key material | ||
141 | from the agent, however they can perform operations on the keys | ||
142 | that enable them to authenticate using the identities loaded into | ||
143 | the agent. | ||
144 | |||
145 | ^[[1mForwardX11^[[0m | ||
146 | Specifies whether X11 connections will be automatically rediM-bM-^@M-^P | ||
147 | rected over the secure channel and DISPLAY set. The argument | ||
148 | must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
149 | |||
150 | X11 forwarding should be enabled with caution. Users with the | ||
151 | ability to bypass file permissions on the remote host (for the | ||
152 | userM-bM-^@M-^Ys X authorization database) can access the local X11 display | ||
153 | through the forwarded connection. An attacker may then be able | ||
154 | to perform activities such as keystroke monitoring. | ||
155 | |||
156 | ^[[1mGatewayPorts^[[0m | ||
157 | Specifies whether remote hosts are allowed to connect to local | ||
158 | forwarded ports. By default, ^[[1mssh ^[[22mbinds local port forwardings to | ||
159 | the loopback address. This prevents other remote hosts from conM-bM-^@M-^P | ||
160 | necting to forwarded ports. ^[[1mGatewayPorts ^[[22mcan be used to specify | ||
161 | that ^[[1mssh ^[[22mshould bind local port forwardings to the wildcard | ||
162 | address, thus allowing remote hosts to connect to forwarded | ||
163 | ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
164 | |||
165 | ^[[1mGlobalKnownHostsFile^[[0m | ||
166 | Specifies a file to use for the global host key database instead | ||
167 | of ^[[4m/etc/ssh/ssh_known_hosts^[[24m. | ||
168 | |||
169 | ^[[1mHostbasedAuthentication^[[0m | ||
170 | Specifies whether to try rhosts based authentication with public | ||
171 | key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
172 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 2 only | ||
173 | and is similar to ^[[1mRhostsRSAAuthentication^[[22m. | ||
174 | |||
175 | ^[[1mHostKeyAlgorithms^[[0m | ||
176 | Specifies the protocol version 2 host key algorithms that the | ||
177 | client wants to use in order of preference. The default for this | ||
178 | option is: M-bM-^@M-^\sshM-bM-^@M-^Prsa,sshM-bM-^@M-^PdssM-bM-^@M-^]. | ||
179 | |||
180 | ^[[1mHostKeyAlias^[[0m | ||
181 | Specifies an alias that should be used instead of the real host | ||
182 | name when looking up or saving the host key in the host key | ||
183 | database files. This option is useful for tunneling ssh connecM-bM-^@M-^P | ||
184 | tions or for multiple servers running on a single host. | ||
185 | |||
186 | ^[[1mHostName^[[0m | ||
187 | Specifies the real host name to log into. This can be used to | ||
188 | specify nicknames or abbreviations for hosts. Default is the | ||
189 | name given on the command line. Numeric IP addresses are also | ||
190 | permitted (both on the command line and in ^[[1mHostName ^[[22mspecificaM-bM-^@M-^P | ||
191 | tions). | ||
192 | |||
193 | ^[[1mIdentityFile^[[0m | ||
194 | Specifies a file from which the userM-bM-^@M-^Ys RSA or DSA authentication | ||
195 | identity is read. The default is ^[[4m$HOME/.ssh/identity^[[24m for protocol | ||
196 | version 1, and ^[[4m$HOME/.ssh/id_rsa^[[24m and ^[[4m$HOME/.ssh/id_dsa^[[24m for protoM-bM-^@M-^P | ||
197 | col version 2. Additionally, any identities represented by the | ||
198 | authentication agent will be used for authentication. The file | ||
199 | name may use the tilde syntax to refer to a userM-bM-^@M-^Ys home direcM-bM-^@M-^P | ||
200 | tory. It is possible to have multiple identity files specified | ||
201 | in configuration files; all these identities will be tried in | ||
202 | sequence. | ||
203 | |||
204 | ^[[1mKeepAlive^[[0m | ||
205 | Specifies whether the system should send TCP keepalive messages | ||
206 | to the other side. If they are sent, death of the connection or | ||
207 | crash of one of the machines will be properly noticed. However, | ||
208 | this means that connections will die if the route is down temM-bM-^@M-^P | ||
209 | porarily, and some people find it annoying. | ||
210 | |||
211 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send keepalives), and the client will | ||
212 | notice if the network goes down or the remote host dies. This is | ||
213 | important in scripts, and many users want it too. | ||
214 | |||
215 | To disable keepalives, the value should be set to M-bM-^@M-^\noM-bM-^@M-^]. | ||
216 | |||
217 | ^[[1mKerberosAuthentication^[[0m | ||
218 | Specifies whether Kerberos authentication will be used. The | ||
219 | argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. | ||
220 | |||
221 | ^[[1mKerberosTgtPassing^[[0m | ||
222 | Specifies whether a Kerberos TGT will be forwarded to the server. | ||
223 | This will only work if the Kerberos server is actually an AFS | ||
224 | kaserver. The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. | ||
225 | |||
226 | ^[[1mLocalForward^[[0m | ||
227 | Specifies that a TCP/IP port on the local machine be forwarded | ||
228 | over the secure channel to the specified host and port from the | ||
229 | remote machine. The first argument must be a port number, and | ||
230 | the second must be ^[[4mhost:port^[[24m. IPv6 addresses can be specified | ||
231 | with an alternative syntax: ^[[4mhost/port^[[24m. Multiple forwardings may | ||
232 | be specified, and additional forwardings can be given on the comM-bM-^@M-^P | ||
233 | mand line. Only the superuser can forward privileged ports. | ||
234 | |||
235 | ^[[1mLogLevel^[[0m | ||
236 | Gives the verbosity level that is used when logging messages from | ||
237 | ^[[1mssh^[[22m. The possible values are: QUIET, FATAL, ERROR, INFO, VERM-bM-^@M-^P | ||
238 | BOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. The default is INFO. | ||
239 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
240 | higher levels of verbose output. | ||
241 | |||
242 | ^[[1mMACs ^[[22mSpecifies the MAC (message authentication code) algorithms in | ||
243 | order of preference. The MAC algorithm is used in protocol verM-bM-^@M-^P | ||
244 | sion 2 for data integrity protection. Multiple algorithms must | ||
245 | be commaM-bM-^@M-^Pseparated. The default is | ||
246 | M-bM-^@M-^\hmacM-bM-^@M-^Pmd5,hmacM-bM-^@M-^Psha1,hmacM-bM-^@M-^Pripemd160,hmacM-bM-^@M-^Psha1M-bM-^@M-^P96,hmacM-bM-^@M-^Pmd5M-bM-^@M-^P96M-bM-^@M-^]. | ||
247 | |||
248 | ^[[1mNoHostAuthenticationForLocalhost^[[0m | ||
249 | This option can be used if the home directory is shared across | ||
250 | machines. In this case localhost will refer to a different | ||
251 | machine on each of the machines and the user will get many warnM-bM-^@M-^P | ||
252 | ings about changed host keys. However, this option disables host | ||
253 | authentication for localhost. The argument to this keyword must | ||
254 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for | ||
255 | localhost. | ||
256 | |||
257 | ^[[1mNumberOfPasswordPrompts^[[0m | ||
258 | Specifies the number of password prompts before giving up. The | ||
259 | argument to this keyword must be an integer. Default is 3. | ||
260 | |||
261 | ^[[1mPasswordAuthentication^[[0m | ||
262 | Specifies whether to use password authentication. The argument | ||
263 | to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
264 | |||
265 | ^[[1mPort ^[[22mSpecifies the port number to connect on the remote host. Default | ||
266 | is 22. | ||
267 | |||
268 | ^[[1mPreferredAuthentications^[[0m | ||
269 | Specifies the order in which the client should try protocol 2 | ||
270 | authentication methods. This allows a client to prefer one method | ||
271 | (e.g. ^[[1mkeyboardM-bM-^@M-^Pinteractive^[[22m) over another method (e.g. ^[[1mpassword^[[22m) | ||
272 | The default for this option is: | ||
273 | M-bM-^@M-^\hostbased,publickey,keyboardM-bM-^@M-^Pinteractive,passwordM-bM-^@M-^]. | ||
274 | |||
275 | ^[[1mProtocol^[[0m | ||
276 | Specifies the protocol versions ^[[1mssh ^[[22mshould support in order of | ||
277 | preference. The possible values are M-bM-^@M-^\1M-bM-^@M-^] and M-bM-^@M-^\2M-bM-^@M-^]. Multiple verM-bM-^@M-^P | ||
278 | sions must be commaM-bM-^@M-^Pseparated. The default is M-bM-^@M-^\2,1M-bM-^@M-^]. This means | ||
279 | that ^[[1mssh ^[[22mtries version 2 and falls back to version 1 if version 2 | ||
280 | is not available. | ||
281 | |||
282 | ^[[1mProxyCommand^[[0m | ||
283 | Specifies the command to use to connect to the server. The comM-bM-^@M-^P | ||
284 | mand string extends to the end of the line, and is executed with | ||
285 | ^[[4m/bin/sh^[[24m. In the command string, M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the | ||
286 | host name to connect and M-bM-^@M-^X%pM-bM-^@M-^Y by the port. The command can be | ||
287 | basically anything, and should read from its standard input and | ||
288 | write to its standard output. It should eventually connect an | ||
289 | sshd(8) server running on some machine, or execute ^[[1msshd M-bM-^@M-^Pi ^[[22msomeM-bM-^@M-^P | ||
290 | where. Host key management will be done using the HostName of | ||
291 | the host being connected (defaulting to the name typed by the | ||
292 | user). Setting the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option | ||
293 | entirely. Note that ^[[1mCheckHostIP ^[[22mis not available for connects | ||
294 | with a proxy command. | ||
295 | |||
296 | ^[[1mPubkeyAuthentication^[[0m | ||
297 | Specifies whether to try public key authentication. The argument | ||
298 | to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
299 | This option applies to protocol version 2 only. | ||
300 | |||
301 | ^[[1mRemoteForward^[[0m | ||
302 | Specifies that a TCP/IP port on the remote machine be forwarded | ||
303 | over the secure channel to the specified host and port from the | ||
304 | local machine. The first argument must be a port number, and the | ||
305 | second must be ^[[4mhost:port^[[24m. IPv6 addresses can be specified with | ||
306 | an alternative syntax: ^[[4mhost/port^[[24m. Multiple forwardings may be | ||
307 | specified, and additional forwardings can be given on the command | ||
308 | line. Only the superuser can forward privileged ports. | ||
309 | |||
310 | ^[[1mRhostsAuthentication^[[0m | ||
311 | Specifies whether to try rhosts based authentication. Note that | ||
312 | this declaration only affects the client side and has no effect | ||
313 | whatsoever on security. Most servers do not permit RhostsAuthenM-bM-^@M-^P | ||
314 | tication because it is not secure (see ^[[1mRhostsRSAAuthentication^[[22m). | ||
315 | The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
316 | is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only and | ||
317 | requires ^[[1mssh ^[[22mto be setuid root and ^[[1mUsePrivilegedPort ^[[22mto be set to | ||
318 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
319 | |||
320 | ^[[1mRhostsRSAAuthentication^[[0m | ||
321 | Specifies whether to try rhosts based authentication with RSA | ||
322 | host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
323 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only | ||
324 | and requires ^[[1mssh ^[[22mto be setuid root. | ||
325 | |||
326 | ^[[1mRSAAuthentication^[[0m | ||
327 | Specifies whether to try RSA authentication. The argument to | ||
328 | this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only | ||
329 | be attempted if the identity file exists, or an authentication | ||
330 | agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option | ||
331 | applies to protocol version 1 only. | ||
332 | |||
333 | ^[[1mSmartcardDevice^[[0m | ||
334 | Specifies which smartcard device to use. The argument to this | ||
335 | keyword is the device ^[[1mssh ^[[22mshould use to communicate with a smartM-bM-^@M-^P | ||
336 | card used for storing the userM-bM-^@M-^Ys private RSA key. By default, no | ||
337 | device is specified and smartcard support is not activated. | ||
338 | |||
339 | ^[[1mStrictHostKeyChecking^[[0m | ||
340 | If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ^[[1mssh ^[[22mwill never automatically add | ||
341 | host keys to the ^[[4m$HOME/.ssh/known_hosts^[[24m file, and refuses to conM-bM-^@M-^P | ||
342 | nect to hosts whose host key has changed. This provides maximum | ||
343 | protection against trojan horse attacks, however, can be annoying | ||
344 | when the ^[[4m/etc/ssh/ssh_known_hosts^[[24m file is poorly maintained, or | ||
345 | connections to new hosts are frequently made. This option forces | ||
346 | the user to manually add all new hosts. If this flag is set to | ||
347 | M-bM-^@M-^\noM-bM-^@M-^], ^[[1mssh ^[[22mwill automatically add new host keys to the user known | ||
348 | hosts files. If this flag is set to M-bM-^@M-^\askM-bM-^@M-^], new host keys will be | ||
349 | added to the user known host files only after the user has conM-bM-^@M-^P | ||
350 | firmed that is what they really want to do, and ^[[1mssh ^[[22mwill refuse | ||
351 | to connect to hosts whose host key has changed. The host keys of | ||
352 | known hosts will be verified automatically in all cases. The | ||
353 | argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^] or M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^]. | ||
354 | |||
355 | ^[[1mUsePrivilegedPort^[[0m | ||
356 | Specifies whether to use a privileged port for outgoing connecM-bM-^@M-^P | ||
357 | tions. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
358 | If set to M-bM-^@M-^\yesM-bM-^@M-^] ^[[1mssh ^[[22mmust be setuid root. Note that this option | ||
359 | must be set to M-bM-^@M-^\yesM-bM-^@M-^] if ^[[1mRhostsAuthentication ^[[22mand | ||
360 | ^[[1mRhostsRSAAuthentication ^[[22mauthentications are needed with older | ||
361 | servers. | ||
362 | |||
363 | ^[[1mUser ^[[22mSpecifies the user to log in as. This can be useful when a difM-bM-^@M-^P | ||
364 | ferent user name is used on different machines. This saves the | ||
365 | trouble of having to remember to give the user name on the comM-bM-^@M-^P | ||
366 | mand line. | ||
367 | |||
368 | ^[[1mUserKnownHostsFile^[[0m | ||
369 | Specifies a file to use for the user host key database instead of | ||
370 | ^[[4m$HOME/.ssh/known_hosts^[[24m. | ||
371 | |||
372 | ^[[1mXAuthLocation^[[0m | ||
373 | Specifies the full pathname of the xauth(1) program. The default | ||
374 | is ^[[4m/usr/X11R6/bin/xauth^[[24m. | ||
375 | |||
376 | ^[[1mFILES^[[0m | ||
377 | $HOME/.ssh/config | ||
378 | This is the perM-bM-^@M-^Puser configuration file. The format of this file | ||
379 | is described above. This file is used by the ^[[1mssh ^[[22mclient. This | ||
380 | file does not usually contain any sensitive information, but the | ||
381 | recommended permissions are read/write for the user, and not | ||
382 | accessible by others. | ||
383 | |||
384 | /etc/ssh/ssh_config | ||
385 | Systemwide configuration file. This file provides defaults for | ||
386 | those values that are not specified in the userM-bM-^@M-^Ys configuration | ||
387 | file, and for those users who do not have a configuration file. | ||
388 | This file must be worldM-bM-^@M-^Preadable. | ||
389 | |||
390 | ^[[1mAUTHORS^[[0m | ||
391 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
392 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
393 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
394 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
395 | versions 1.5 and 2.0. | ||
396 | |||
397 | ^[[1mSEE ALSO^[[0m | ||
398 | ssh(1) | ||
399 | |||
400 | BSD September 25, 1999 BSD | ||
@@ -0,0 +1,547 @@ | |||
1 | SSHD(8) BSD System ManagerM-bM-^@M-^Ys Manual SSHD(8) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshd ^[[22mM-bMM-^R OpenSSH SSH daemon | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[1msshd ^[[22m[^[[1mM-bMM-^RdeiqtD46^[[22m] [^[[1mM-bMM-^Rb ^[[4m^[[22mbits^[[24m] [^[[1mM-bMM-^Rf ^[[4m^[[22mconfig_file^[[24m] [^[[1mM-bMM-^Rg ^[[4m^[[22mlogin_grace_time^[[24m] | ||
8 | [^[[1mM-bMM-^Rh ^[[4m^[[22mhost_key_file^[[24m] [^[[1mM-bMM-^Rk ^[[4m^[[22mkey_gen_time^[[24m] [^[[1mM-bMM-^Ro ^[[4m^[[22moption^[[24m] [^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[24m] [^[[1mM-bMM-^Ru ^[[4m^[[22mlen^[[24m] | ||
9 | |||
10 | ^[[1mDESCRIPTION^[[0m | ||
11 | ^[[1msshd ^[[22m(SSH Daemon) is the daemon program for ssh(1). Together these proM-bM-^@M-^P | ||
12 | grams replace rlogin and rsh, and provide secure encrypted communications | ||
13 | between two untrusted hosts over an insecure network. The programs are | ||
14 | intended to be as easy to install and use as possible. | ||
15 | |||
16 | ^[[1msshd ^[[22mis the daemon that listens for connections from clients. It is norM-bM-^@M-^P | ||
17 | mally started at boot from ^[[4m/etc/rc^[[24m. It forks a new daemon for each | ||
18 | incoming connection. The forked daemons handle key exchange, encryption, | ||
19 | authentication, command execution, and data exchange. This implementaM-bM-^@M-^P | ||
20 | tion of ^[[1msshd ^[[22msupports both SSH protocol version 1 and 2 simultaneously. | ||
21 | ^[[1msshd ^[[22mworks as follows: | ||
22 | |||
23 | ^[[1mSSH protocol version 1^[[0m | ||
24 | |||
25 | Each host has a hostM-bM-^@M-^Pspecific RSA key (normally 1024 bits) used to idenM-bM-^@M-^P | ||
26 | tify the host. Additionally, when the daemon starts, it generates a | ||
27 | server RSA key (normally 768 bits). This key is normally regenerated | ||
28 | every hour if it has been used, and is never stored on disk. | ||
29 | |||
30 | Whenever a client connects, the daemon responds with its public host and | ||
31 | server keys. The client compares the RSA host key against its own | ||
32 | database to verify that it has not changed. The client then generates a | ||
33 | 256 bit random number. It encrypts this random number using both the | ||
34 | host key and the server key, and sends the encrypted number to the | ||
35 | server. Both sides then use this random number as a session key which is | ||
36 | used to encrypt all further communications in the session. The rest of | ||
37 | the session is encrypted using a conventional cipher, currently Blowfish | ||
38 | or 3DES, with 3DES being used by default. The client selects the encrypM-bM-^@M-^P | ||
39 | tion algorithm to use from those offered by the server. | ||
40 | |||
41 | Next, the server and the client enter an authentication dialog. The | ||
42 | client tries to authenticate itself using ^[[4m.rhosts^[[24m authentication, ^[[4m.rhosts^[[0m | ||
43 | authentication combined with RSA host authentication, RSA challengeM-bM-^@M-^P | ||
44 | response authentication, or password based authentication. | ||
45 | |||
46 | Rhosts authentication is normally disabled because it is fundamentally | ||
47 | insecure, but can be enabled in the server configuration file if desired. | ||
48 | System security is not improved unless ^[[1mrshd^[[22m, ^[[1mrlogind^[[22m, and ^[[1mrexecd ^[[22mare disM-bM-^@M-^P | ||
49 | abled (thus completely disabling rlogin and rsh into the machine). | ||
50 | |||
51 | ^[[1mSSH protocol version 2^[[0m | ||
52 | |||
53 | Version 2 works similarly: Each host has a hostM-bM-^@M-^Pspecific key (RSA or DSA) | ||
54 | used to identify the host. However, when the daemon starts, it does not | ||
55 | generate a server key. Forward security is provided through a DiffieM-bM-^@M-^P | ||
56 | Hellman key agreement. This key agreement results in a shared session | ||
57 | key. | ||
58 | |||
59 | The rest of the session is encrypted using a symmetric cipher, currently | ||
60 | 128 bit AES, Blowfish, 3DES, CAST128, Arcfour, 192 bit AES, or 256 bit | ||
61 | AES. The client selects the encryption algorithm to use from those | ||
62 | offered by the server. Additionally, session integrity is provided | ||
63 | through a cryptographic message authentication code (hmacM-bM-^@M-^Psha1 or hmacM-bM-^@M-^P | ||
64 | md5). | ||
65 | |||
66 | Protocol version 2 provides a public key based user (PubkeyAuthenticaM-bM-^@M-^P | ||
67 | tion) or client host (HostbasedAuthentication) authentication method, | ||
68 | conventional password authentication and challenge response based methM-bM-^@M-^P | ||
69 | ods. | ||
70 | |||
71 | ^[[1mCommand execution and data forwarding^[[0m | ||
72 | |||
73 | If the client successfully authenticates itself, a dialog for preparing | ||
74 | the session is entered. At this time the client may request things like | ||
75 | allocating a pseudoM-bM-^@M-^Ptty, forwarding X11 connections, forwarding TCP/IP | ||
76 | connections, or forwarding the authentication agent connection over the | ||
77 | secure channel. | ||
78 | |||
79 | Finally, the client either requests a shell or execution of a command. | ||
80 | The sides then enter session mode. In this mode, either side may send | ||
81 | data at any time, and such data is forwarded to/from the shell or command | ||
82 | on the server side, and the user terminal in the client side. | ||
83 | |||
84 | When the user program terminates and all forwarded X11 and other connecM-bM-^@M-^P | ||
85 | tions have been closed, the server sends command exit status to the | ||
86 | client, and both sides exit. | ||
87 | |||
88 | ^[[1msshd ^[[22mcan be configured using commandM-bM-^@M-^Pline options or a configuration | ||
89 | file. CommandM-bM-^@M-^Pline options override values specified in the configuraM-bM-^@M-^P | ||
90 | tion file. | ||
91 | |||
92 | ^[[1msshd ^[[22mrereads its configuration file when it receives a hangup signal, | ||
93 | SIGHUP, by executing itself with the name it was started as, i.e., | ||
94 | ^[[4m/usr/sbin/sshd^[[24m. | ||
95 | |||
96 | The options are as follows: | ||
97 | |||
98 | ^[[1mM-bMM-^Rb ^[[4m^[[22mbits^[[0m | ||
99 | Specifies the number of bits in the ephemeral protocol version 1 | ||
100 | server key (default 768). | ||
101 | |||
102 | ^[[1mM-bMM-^Rd ^[[22mDebug mode. The server sends verbose debug output to the system | ||
103 | log, and does not put itself in the background. The server also | ||
104 | will not fork and will only process one connection. This option | ||
105 | is only intended for debugging for the server. Multiple ^[[1mM-bMM-^Rd^[[0m | ||
106 | options increase the debugging level. Maximum is 3. | ||
107 | |||
108 | ^[[1mM-bMM-^Re ^[[22mWhen this option is specified, ^[[1msshd ^[[22mwill send the output to the | ||
109 | standard error instead of the system log. | ||
110 | |||
111 | ^[[1mM-bMM-^Rf ^[[4m^[[22mconfiguration_file^[[0m | ||
112 | Specifies the name of the configuration file. The default is | ||
113 | ^[[4m/etc/ssh/sshd_config^[[24m. ^[[1msshd ^[[22mrefuses to start if there is no conM-bM-^@M-^P | ||
114 | figuration file. | ||
115 | |||
116 | ^[[1mM-bMM-^Rg ^[[4m^[[22mlogin_grace_time^[[0m | ||
117 | Gives the grace time for clients to authenticate themselves | ||
118 | (default 120 seconds). If the client fails to authenticate the | ||
119 | user within this many seconds, the server disconnects and exits. | ||
120 | A value of zero indicates no limit. | ||
121 | |||
122 | ^[[1mM-bMM-^Rh ^[[4m^[[22mhost_key_file^[[0m | ||
123 | Specifies a file from which a host key is read. This option must | ||
124 | be given if ^[[1msshd ^[[22mis not run as root (as the normal host key files | ||
125 | are normally not readable by anyone but root). The default is | ||
126 | ^[[4m/etc/ssh/ssh_host_key^[[24m for protocol version 1, and | ||
127 | ^[[4m/etc/ssh/ssh_host_rsa_key^[[24m and ^[[4m/etc/ssh/ssh_host_dsa_key^[[24m for proM-bM-^@M-^P | ||
128 | tocol version 2. It is possible to have multiple host key files | ||
129 | for the different protocol versions and host key algorithms. | ||
130 | |||
131 | ^[[1mM-bMM-^Ri ^[[22mSpecifies that ^[[1msshd ^[[22mis being run from inetd(8). ^[[1msshd ^[[22mis normally | ||
132 | not run from inetd because it needs to generate the server key | ||
133 | before it can respond to the client, and this may take tens of | ||
134 | seconds. Clients would have to wait too long if the key was | ||
135 | regenerated every time. However, with small key sizes (e.g., | ||
136 | 512) using ^[[1msshd ^[[22mfrom inetd may be feasible. | ||
137 | |||
138 | ^[[1mM-bMM-^Rk ^[[4m^[[22mkey_gen_time^[[0m | ||
139 | Specifies how often the ephemeral protocol version 1 server key | ||
140 | is regenerated (default 3600 seconds, or one hour). The motivaM-bM-^@M-^P | ||
141 | tion for regenerating the key fairly often is that the key is not | ||
142 | stored anywhere, and after about an hour, it becomes impossible | ||
143 | to recover the key for decrypting intercepted communications even | ||
144 | if the machine is cracked into or physically seized. A value of | ||
145 | zero indicates that the key will never be regenerated. | ||
146 | |||
147 | ^[[1mM-bMM-^Ro ^[[4m^[[22moption^[[0m | ||
148 | Can be used to give options in the format used in the configuraM-bM-^@M-^P | ||
149 | tion file. This is useful for specifying options for which there | ||
150 | is no separate commandM-bM-^@M-^Pline flag. | ||
151 | |||
152 | ^[[1mM-bMM-^Rp ^[[4m^[[22mport^[[0m | ||
153 | Specifies the port on which the server listens for connections | ||
154 | (default 22). Multiple port options are permitted. Ports speciM-bM-^@M-^P | ||
155 | fied in the configuration file are ignored when a commandM-bM-^@M-^Pline | ||
156 | port is specified. | ||
157 | |||
158 | ^[[1mM-bMM-^Rq ^[[22mQuiet mode. Nothing is sent to the system log. Normally the | ||
159 | beginning, authentication, and termination of each connection is | ||
160 | logged. | ||
161 | |||
162 | ^[[1mM-bMM-^Rt ^[[22mTest mode. Only check the validity of the configuration file and | ||
163 | sanity of the keys. This is useful for updating ^[[1msshd ^[[22mreliably as | ||
164 | configuration options may change. | ||
165 | |||
166 | ^[[1mM-bMM-^Ru ^[[4m^[[22mlen^[[24m This option is used to specify the size of the field in the utmp | ||
167 | structure that holds the remote host name. If the resolved host | ||
168 | name is longer than ^[[4mlen^[[24m, the dotted decimal value will be used | ||
169 | instead. This allows hosts with very long host names that overM-bM-^@M-^P | ||
170 | flow this field to still be uniquely identified. Specifying ^[[1mM-bMM-^Ru0^[[0m | ||
171 | indicates that only dotted decimal addresses should be put into | ||
172 | the ^[[4mutmp^[[24m file. ^[[1mM-bMM-^Ru0 ^[[22mmay also be used to prevent ^[[1msshd ^[[22mfrom making | ||
173 | DNS requests unless the authentication mechanism or configuration | ||
174 | requires it. Authentication mechanisms that may require DNS | ||
175 | include ^[[1mRhostsAuthentication^[[22m, ^[[1mRhostsRSAAuthentication^[[22m, | ||
176 | ^[[1mHostbasedAuthentication ^[[22mand using a ^[[1mfrom="patternM-bM-^@M-^Plist" ^[[22moption in | ||
177 | a key file. Configuration options that require DNS include using | ||
178 | a USER@HOST pattern in ^[[1mAllowUsers ^[[22mor ^[[1mDenyUsers^[[22m. | ||
179 | |||
180 | ^[[1mM-bMM-^RD ^[[22mWhen this option is specified ^[[1msshd ^[[22mwill not detach and does not | ||
181 | become a daemon. This allows easy monitoring of ^[[1msshd^[[22m. | ||
182 | |||
183 | ^[[1mM-bMM-^R4 ^[[22mForces ^[[1msshd ^[[22mto use IPv4 addresses only. | ||
184 | |||
185 | ^[[1mM-bMM-^R6 ^[[22mForces ^[[1msshd ^[[22mto use IPv6 addresses only. | ||
186 | |||
187 | ^[[1mCONFIGURATION FILE^[[0m | ||
188 | ^[[1msshd ^[[22mreads configuration data from ^[[4m/etc/ssh/sshd_config^[[24m (or the file | ||
189 | specified with ^[[1mM-bMM-^Rf ^[[22mon the command line). The file format and configuraM-bM-^@M-^P | ||
190 | tion options are described in sshd_config(5). | ||
191 | |||
192 | ^[[1mLOGIN PROCESS^[[0m | ||
193 | When a user successfully logs in, ^[[1msshd ^[[22mdoes the following: | ||
194 | |||
195 | 1. If the login is on a tty, and no command has been specified, | ||
196 | prints last login time and ^[[4m/etc/motd^[[24m (unless prevented in the | ||
197 | configuration file or by ^[[4m$HOME/.hushlogin^[[24m; see the ^[[4mFILES^[[24m secM-bM-^@M-^P | ||
198 | tion). | ||
199 | |||
200 | 2. If the login is on a tty, records login time. | ||
201 | |||
202 | 3. Checks ^[[4m/etc/nologin^[[24m; if it exists, prints contents and quits | ||
203 | (unless root). | ||
204 | |||
205 | 4. Changes to run with normal user privileges. | ||
206 | |||
207 | 5. Sets up basic environment. | ||
208 | |||
209 | 6. Reads ^[[4m$HOME/.ssh/environment^[[24m if it exists and users are | ||
210 | allowed to change their environment. See the | ||
211 | ^[[1mPermitUserEnvironment ^[[22moption in sshd_config(5). | ||
212 | |||
213 | 7. Changes to userM-bM-^@M-^Ys home directory. | ||
214 | |||
215 | 8. If ^[[4m$HOME/.ssh/rc^[[24m exists, runs it; else if ^[[4m/etc/ssh/sshrc^[[0m | ||
216 | exists, runs it; otherwise runs xauth. The M-bM-^@M-^\rcM-bM-^@M-^] files are | ||
217 | given the X11 authentication protocol and cookie in standard | ||
218 | input. | ||
219 | |||
220 | 9. Runs userM-bM-^@M-^Ys shell or command. | ||
221 | |||
222 | ^[[1mAUTHORIZED_KEYS FILE FORMAT^[[0m | ||
223 | ^[[4m$HOME/.ssh/authorized_keys^[[24m is the default file that lists the public keys | ||
224 | that are permitted for RSA authentication in protocol version 1 and for | ||
225 | public key authentication (PubkeyAuthentication) in protocol version 2. | ||
226 | ^[[1mAuthorizedKeysFile ^[[22mmay be used to specify an alternative file. | ||
227 | |||
228 | Each line of the file contains one key (empty lines and lines starting | ||
229 | with a M-bM-^@M-^X#M-bM-^@M-^Y are ignored as comments). Each RSA public key consists of the | ||
230 | following fields, separated by spaces: options, bits, exponent, modulus, | ||
231 | comment. Each protocol version 2 public key consists of: options, keyM-bM-^@M-^P | ||
232 | type, base64 encoded key, comment. The options field is optional; its | ||
233 | presence is determined by whether the line starts with a number or not | ||
234 | (the options field never starts with a number). The bits, exponent, modM-bM-^@M-^P | ||
235 | ulus and comment fields give the RSA key for protocol version 1; the comM-bM-^@M-^P | ||
236 | ment field is not used for anything (but may be convenient for the user | ||
237 | to identify the key). For protocol version 2 the keytype is M-bM-^@M-^\sshM-bM-^@M-^PdssM-bM-^@M-^] or | ||
238 | M-bM-^@M-^\sshM-bM-^@M-^PrsaM-bM-^@M-^]. | ||
239 | |||
240 | Note that lines in this file are usually several hundred bytes long | ||
241 | (because of the size of the public key encoding). You donM-bM-^@M-^Yt want to type | ||
242 | them in; instead, copy the ^[[4midentity.pub^[[24m, ^[[4mid_dsa.pub^[[24m or the ^[[4mid_rsa.pub^[[0m | ||
243 | file and edit it. | ||
244 | |||
245 | ^[[1msshd ^[[22menforces a minimum RSA key modulus size for protocol 1 and protocol | ||
246 | 2 keys of 768 bits. | ||
247 | |||
248 | The options (if present) consist of commaM-bM-^@M-^Pseparated option specificaM-bM-^@M-^P | ||
249 | tions. No spaces are permitted, except within double quotes. The folM-bM-^@M-^P | ||
250 | lowing option specifications are supported (note that option keywords are | ||
251 | caseM-bM-^@M-^Pinsensitive): | ||
252 | |||
253 | ^[[1mfrom="patternM-bM-^@M-^Plist"^[[0m | ||
254 | Specifies that in addition to public key authentication, the | ||
255 | canonical name of the remote host must be present in the commaM-bM-^@M-^P | ||
256 | separated list of patterns (M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? serve as wildcards). | ||
257 | The list may also contain patterns negated by prefixing them with | ||
258 | M-bM-^@M-^XM-bM-^@M-^Y!; if the canonical host name matches a negated pattern, the | ||
259 | key is not accepted. The purpose of this option is to optionally | ||
260 | increase security: public key authentication by itself does not | ||
261 | trust the network or name servers or anything (but the key); howM-bM-^@M-^P | ||
262 | ever, if somebody somehow steals the key, the key permits an | ||
263 | intruder to log in from anywhere in the world. This additional | ||
264 | option makes using a stolen key more difficult (name servers | ||
265 | and/or routers would have to be compromised in addition to just | ||
266 | the key). | ||
267 | |||
268 | ^[[1mcommand="command"^[[0m | ||
269 | Specifies that the command is executed whenever this key is used | ||
270 | for authentication. The command supplied by the user (if any) is | ||
271 | ignored. The command is run on a pty if the client requests a | ||
272 | pty; otherwise it is run without a tty. If an 8M-bM-^@M-^Pbit clean chanM-bM-^@M-^P | ||
273 | nel is required, one must not request a pty or should specify | ||
274 | ^[[1mnoM-bM-^@M-^Ppty^[[22m. A quote may be included in the command by quoting it | ||
275 | with a backslash. This option might be useful to restrict cerM-bM-^@M-^P | ||
276 | tain public keys to perform just a specific operation. An examM-bM-^@M-^P | ||
277 | ple might be a key that permits remote backups but nothing else. | ||
278 | Note that the client may specify TCP/IP and/or X11 forwarding | ||
279 | unless they are explicitly prohibited. Note that this option | ||
280 | applies to shell, command or subsystem execution. | ||
281 | |||
282 | ^[[1menvironment="NAME=value"^[[0m | ||
283 | Specifies that the string is to be added to the environment when | ||
284 | logging in using this key. Environment variables set this way | ||
285 | override other default environment values. Multiple options of | ||
286 | this type are permitted. Environment processing is disabled by | ||
287 | default and is controlled via the ^[[1mPermitUserEnvironment ^[[22moption. | ||
288 | This option is automatically disabled if ^[[1mUseLogin ^[[22mis enabled. | ||
289 | |||
290 | ^[[1mnoM-bM-^@M-^PportM-bM-^@M-^Pforwarding^[[0m | ||
291 | Forbids TCP/IP forwarding when this key is used for authenticaM-bM-^@M-^P | ||
292 | tion. Any port forward requests by the client will return an | ||
293 | error. This might be used, e.g., in connection with the ^[[1mcommand^[[0m | ||
294 | option. | ||
295 | |||
296 | ^[[1mnoM-bM-^@M-^PX11M-bM-^@M-^Pforwarding^[[0m | ||
297 | Forbids X11 forwarding when this key is used for authentication. | ||
298 | Any X11 forward requests by the client will return an error. | ||
299 | |||
300 | ^[[1mnoM-bM-^@M-^PagentM-bM-^@M-^Pforwarding^[[0m | ||
301 | Forbids authentication agent forwarding when this key is used for | ||
302 | authentication. | ||
303 | |||
304 | ^[[1mnoM-bM-^@M-^Ppty ^[[22mPrevents tty allocation (a request to allocate a pty will fail). | ||
305 | |||
306 | ^[[1mpermitopen="host:port"^[[0m | ||
307 | Limit local M-bM-^@M-^XM-bM-^@M-^Xssh M-bM-^@M-^PLM-bM-^@M-^YM-bM-^@M-^Y port forwarding such that it may only conM-bM-^@M-^P | ||
308 | nect to the specified host and port. IPv6 addresses can be specM-bM-^@M-^P | ||
309 | ified with an alternative syntax: ^[[4mhost/port^[[24m. Multiple ^[[1mpermitopen^[[0m | ||
310 | options may be applied separated by commas. No pattern matching | ||
311 | is performed on the specified hostnames, they must be literal | ||
312 | domains or addresses. | ||
313 | |||
314 | ^[[1mExamples^[[0m | ||
315 | 1024 33 12121...312314325 ylo@foo.bar | ||
316 | |||
317 | from="*.niksula.hut.fi,!pc.niksula.hut.fi" 1024 35 23...2334 ylo@niksula | ||
318 | |||
319 | command="dump /home",noM-bM-^@M-^Ppty,noM-bM-^@M-^PportM-bM-^@M-^Pforwarding 1024 33 23...2323 | ||
320 | backup.hut.fi | ||
321 | |||
322 | permitopen="10.2.1.55:80",permitopen="10.2.1.56:25" 1024 33 23...2323 | ||
323 | |||
324 | ^[[1mSSH_KNOWN_HOSTS FILE FORMAT^[[0m | ||
325 | The ^[[4m/etc/ssh/ssh_known_hosts^[[24m and ^[[4m$HOME/.ssh/known_hosts^[[24m files contain | ||
326 | host public keys for all known hosts. The global file should be prepared | ||
327 | by the administrator (optional), and the perM-bM-^@M-^Puser file is maintained | ||
328 | automatically: whenever the user connects from an unknown host its key is | ||
329 | added to the perM-bM-^@M-^Puser file. | ||
330 | |||
331 | Each line in these files contains the following fields: hostnames, bits, | ||
332 | exponent, modulus, comment. The fields are separated by spaces. | ||
333 | |||
334 | Hostnames is a commaM-bM-^@M-^Pseparated list of patterns (M-bM-^@M-^Y*M-bM-^@M-^Y and M-bM-^@M-^Y?M-bM-^@M-^Y act as wildM-bM-^@M-^P | ||
335 | cards); each pattern in turn is matched against the canonical host name | ||
336 | (when authenticating a client) or against the userM-bM-^@M-^Psupplied name (when | ||
337 | authenticating a server). A pattern may also be preceded by M-bM-^@M-^XM-bM-^@M-^Y! to | ||
338 | indicate negation: if the host name matches a negated pattern, it is not | ||
339 | accepted (by that line) even if it matched another pattern on the line. | ||
340 | |||
341 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
342 | they can be obtained, e.g., from ^[[4m/etc/ssh/ssh_host_key.pub^[[24m. The optional | ||
343 | comment field continues to the end of the line, and is not used. | ||
344 | |||
345 | Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments. | ||
346 | |||
347 | When performing host authentication, authentication is accepted if any | ||
348 | matching line has the proper key. It is thus permissible (but not recomM-bM-^@M-^P | ||
349 | mended) to have several lines or different host keys for the same names. | ||
350 | This will inevitably happen when short forms of host names from different | ||
351 | domains are put in the file. It is possible that the files contain conM-bM-^@M-^P | ||
352 | flicting information; authentication is accepted if valid information can | ||
353 | be found from either file. | ||
354 | |||
355 | Note that the lines in these files are typically hundreds of characters | ||
356 | long, and you definitely donM-bM-^@M-^Yt want to type in the host keys by hand. | ||
357 | Rather, generate them by a script or by taking ^[[4m/etc/ssh/ssh_host_key.pub^[[0m | ||
358 | and adding the host names at the front. | ||
359 | |||
360 | ^[[1mExamples^[[0m | ||
361 | |||
362 | closenet,...,130.233.208.41 1024 37 159...93 closenet.hut.fi | ||
363 | cvs.openbsd.org,199.185.137.3 sshM-bM-^@M-^Prsa AAAA1234.....= | ||
364 | |||
365 | ^[[1mFILES^[[0m | ||
366 | /etc/ssh/sshd_config | ||
367 | Contains configuration data for ^[[1msshd^[[22m. The file format and conM-bM-^@M-^P | ||
368 | figuration options are described in sshd_config(5). | ||
369 | |||
370 | /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key, | ||
371 | /etc/ssh/ssh_host_rsa_key | ||
372 | These three files contain the private parts of the host keys. | ||
373 | These files should only be owned by root, readable only by root, | ||
374 | and not accessible to others. Note that ^[[1msshd ^[[22mdoes not start if | ||
375 | this file is group/worldM-bM-^@M-^Paccessible. | ||
376 | |||
377 | /etc/ssh/ssh_host_key.pub, /etc/ssh/ssh_host_dsa_key.pub, | ||
378 | /etc/ssh/ssh_host_rsa_key.pub | ||
379 | These three files contain the public parts of the host keys. | ||
380 | These files should be worldM-bM-^@M-^Preadable but writable only by root. | ||
381 | Their contents should match the respective private parts. These | ||
382 | files are not really used for anything; they are provided for the | ||
383 | convenience of the user so their contents can be copied to known | ||
384 | hosts files. These files are created using sshM-bM-^@M-^Pkeygen(1). | ||
385 | |||
386 | /etc/moduli | ||
387 | Contains DiffieM-bM-^@M-^PHellman groups used for the "DiffieM-bM-^@M-^PHellman Group | ||
388 | Exchange". The file format is described in moduli(5). | ||
389 | |||
390 | /var/empty | ||
391 | chroot(2) directory used by ^[[1msshd ^[[22mduring privilege separation in | ||
392 | the preM-bM-^@M-^Pauthentication phase. The directory should not contain | ||
393 | any files and must be owned by root and not group or worldM-bM-^@M-^P | ||
394 | writable. | ||
395 | |||
396 | /var/run/sshd.pid | ||
397 | Contains the process ID of the ^[[1msshd ^[[22mlistening for connections (if | ||
398 | there are several daemons running concurrently for different | ||
399 | ports, this contains the process ID of the one started last). | ||
400 | The content of this file is not sensitive; it can be worldM-bM-^@M-^PreadM-bM-^@M-^P | ||
401 | able. | ||
402 | |||
403 | $HOME/.ssh/authorized_keys | ||
404 | Lists the public keys (RSA or DSA) that can be used to log into | ||
405 | the userM-bM-^@M-^Ys account. This file must be readable by root (which | ||
406 | may on some machines imply it being worldM-bM-^@M-^Preadable if the userM-bM-^@M-^Ys | ||
407 | home directory resides on an NFS volume). It is recommended that | ||
408 | it not be accessible by others. The format of this file is | ||
409 | described above. Users will place the contents of their | ||
410 | ^[[4midentity.pub^[[24m, ^[[4mid_dsa.pub^[[24m and/or ^[[4mid_rsa.pub^[[24m files into this file, | ||
411 | as described in sshM-bM-^@M-^Pkeygen(1). | ||
412 | |||
413 | /etc/ssh/ssh_known_hosts and $HOME/.ssh/known_hosts | ||
414 | These files are consulted when using rhosts with RSA host authenM-bM-^@M-^P | ||
415 | tication or protocol version 2 hostbased authentication to check | ||
416 | the public key of the host. The key must be listed in one of | ||
417 | these files to be accepted. The client uses the same files to | ||
418 | verify that it is connecting to the correct remote host. These | ||
419 | files should be writable only by root/the owner. | ||
420 | ^[[4m/etc/ssh/ssh_known_hosts^[[24m should be worldM-bM-^@M-^Preadable, and | ||
421 | ^[[4m$HOME/.ssh/known_hosts^[[24m can, but need not be, worldM-bM-^@M-^Preadable. | ||
422 | |||
423 | /etc/nologin | ||
424 | If this file exists, ^[[1msshd ^[[22mrefuses to let anyone except root log | ||
425 | in. The contents of the file are displayed to anyone trying to | ||
426 | log in, and nonM-bM-^@M-^Proot connections are refused. The file should be | ||
427 | worldM-bM-^@M-^Preadable. | ||
428 | |||
429 | /etc/hosts.allow, /etc/hosts.deny | ||
430 | Access controls that should be enforced by tcpM-bM-^@M-^Pwrappers are | ||
431 | defined here. Further details are described in hosts_access(5). | ||
432 | |||
433 | $HOME/.rhosts | ||
434 | This file contains hostM-bM-^@M-^Pusername pairs, separated by a space, one | ||
435 | per line. The given user on the corresponding host is permitted | ||
436 | to log in without a password. The same file is used by rlogind | ||
437 | and rshd. The file must be writable only by the user; it is recM-bM-^@M-^P | ||
438 | ommended that it not be accessible by others. | ||
439 | |||
440 | If is also possible to use netgroups in the file. Either host or | ||
441 | user name may be of the form +@groupname to specify all hosts or | ||
442 | all users in the group. | ||
443 | |||
444 | $HOME/.shosts | ||
445 | For ssh, this file is exactly the same as for ^[[4m.rhosts^[[24m. However, | ||
446 | this file is not used by rlogin and rshd, so using this permits | ||
447 | access using SSH only. | ||
448 | |||
449 | /etc/hosts.equiv | ||
450 | This file is used during ^[[4m.rhosts^[[24m authentication. In the simplest | ||
451 | form, this file contains host names, one per line. Users on | ||
452 | those hosts are permitted to log in without a password, provided | ||
453 | they have the same user name on both machines. The host name may | ||
454 | also be followed by a user name; such users are permitted to log | ||
455 | in as ^[[4many^[[24m user on this machine (except root). Additionally, the | ||
456 | syntax M-bM-^@M-^\+@groupM-bM-^@M-^] can be used to specify netgroups. Negated | ||
457 | entries start with M-bM-^@M-^XM-bM-^@M-^PM-bM-^@M-^Y. | ||
458 | |||
459 | If the client host/user is successfully matched in this file, | ||
460 | login is automatically permitted provided the client and server | ||
461 | user names are the same. Additionally, successful RSA host | ||
462 | authentication is normally required. This file must be writable | ||
463 | only by root; it is recommended that it be worldM-bM-^@M-^Preadable. | ||
464 | |||
465 | ^[[1mWarning: It is almost never a good idea to use user names in^[[0m | ||
466 | ^[[4mhosts.equiv^[[24m. Beware that it really means that the named user(s) | ||
467 | can log in as ^[[4manybody^[[24m, which includes bin, daemon, adm, and other | ||
468 | accounts that own critical binaries and directories. Using a | ||
469 | user name practically grants the user root access. The only | ||
470 | valid use for user names that I can think of is in negative | ||
471 | entries. | ||
472 | |||
473 | Note that this warning also applies to rsh/rlogin. | ||
474 | |||
475 | /etc/shosts.equiv | ||
476 | This is processed exactly as ^[[4m/etc/hosts.equiv^[[24m. However, this | ||
477 | file may be useful in environments that want to run both | ||
478 | rsh/rlogin and ssh. | ||
479 | |||
480 | $HOME/.ssh/environment | ||
481 | This file is read into the environment at login (if it exists). | ||
482 | It can only contain empty lines, comment lines (that start with | ||
483 | M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file | ||
484 | should be writable only by the user; it need not be readable by | ||
485 | anyone else. Environment processing is disabled by default and | ||
486 | is controlled via the ^[[1mPermitUserEnvironment ^[[22moption. | ||
487 | |||
488 | $HOME/.ssh/rc | ||
489 | If this file exists, it is run with ^[[4m/bin/sh^[[24m after reading the | ||
490 | environment files but before starting the userM-bM-^@M-^Ys shell or comM-bM-^@M-^P | ||
491 | mand. It must not produce any output on stdout; stderr must be | ||
492 | used instead. If X11 forwarding is in use, it will receive the | ||
493 | "proto cookie" pair in its standard input (and DISPLAY in its | ||
494 | environment). The script must call xauth(1) because ^[[1msshd ^[[22mwill | ||
495 | not run xauth automatically to add X11 cookies. | ||
496 | |||
497 | The primary purpose of this file is to run any initialization | ||
498 | routines which may be needed before the userM-bM-^@M-^Ys home directory | ||
499 | becomes accessible; AFS is a particular example of such an enviM-bM-^@M-^P | ||
500 | ronment. | ||
501 | |||
502 | This file will probably contain some initialization code followed | ||
503 | by something similar to: | ||
504 | |||
505 | if read proto cookie && [ M-bM-^@M-^Pn "$DISPLAY" ]; then | ||
506 | if [ M-bM-^@M-^Xecho $DISPLAY | cut M-bM-^@M-^Pc1M-bM-^@M-^P10M-bM-^@M-^X = M-bM-^@M-^Ylocalhost:M-bM-^@M-^Y ]; then | ||
507 | # X11UseLocalhost=yes | ||
508 | echo add unix:M-bM-^@M-^Xecho $DISPLAY | | ||
509 | cut M-bM-^@M-^Pc11M-bM-^@M-^PM-bM-^@M-^X $proto $cookie | ||
510 | else | ||
511 | # X11UseLocalhost=no | ||
512 | echo add $DISPLAY $proto $cookie | ||
513 | fi | xauth M-bM-^@M-^Pq M-bM-^@M-^P | ||
514 | fi | ||
515 | |||
516 | If this file does not exist, ^[[4m/etc/ssh/sshrc^[[24m is run, and if that | ||
517 | does not exist either, xauth is used to add the cookie. | ||
518 | |||
519 | This file should be writable only by the user, and need not be | ||
520 | readable by anyone else. | ||
521 | |||
522 | /etc/ssh/sshrc | ||
523 | Like ^[[4m$HOME/.ssh/rc^[[24m. This can be used to specify machineM-bM-^@M-^Pspecific | ||
524 | loginM-bM-^@M-^Ptime initializations globally. This file should be | ||
525 | writable only by root, and should be worldM-bM-^@M-^Preadable. | ||
526 | |||
527 | ^[[1mAUTHORS^[[0m | ||
528 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
529 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
530 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
531 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
532 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
533 | for privilege separation. | ||
534 | |||
535 | ^[[1mSEE ALSO^[[0m | ||
536 | scp(1), sftp(1), ssh(1), sshM-bM-^@M-^Padd(1), sshM-bM-^@M-^Pagent(1), sshM-bM-^@M-^Pkeygen(1), | ||
537 | login.conf(5), moduli(5), sshd_config(5), sftpM-bM-^@M-^Pserver(8) | ||
538 | |||
539 | T. Ylonen, T. Kivinen, M. Saarinen, T. Rinne, and S. Lehtinen, ^[[4mSSH^[[0m | ||
540 | ^[[4mProtocol^[[24m ^[[4mArchitecture^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^PsecshM-bM-^@M-^ParchitectureM-bM-^@M-^P12.txt, January | ||
541 | 2002, work in progress material. | ||
542 | |||
543 | M. Friedl, N. Provos, and W. A. Simpson, ^[[4mDiffieM-bM-^@M-^PHellman^[[24m ^[[4mGroup^[[24m ^[[4mExchange^[[0m | ||
544 | ^[[4mfor^[[24m ^[[4mthe^[[24m ^[[4mSSH^[[24m ^[[4mTransport^[[24m ^[[4mLayer^[[24m ^[[4mProtocol^[[24m, draftM-bM-^@M-^PietfM-bM-^@M-^PsecshM-bM-^@M-^PdhM-bM-^@M-^PgroupM-bM-^@M-^P | ||
545 | exchangeM-bM-^@M-^P02.txt, January 2002, work in progress material. | ||
546 | |||
547 | BSD September 25, 1999 BSD | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..e234efdb4 --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,469 @@ | |||
1 | SSHD_CONFIG(5) BSD File Formats Manual SSHD_CONFIG(5) | ||
2 | |||
3 | ^[[1mNAME^[[0m | ||
4 | ^[[1msshd_config ^[[22mM-bMM-^R OpenSSH SSH daemon configuration file | ||
5 | |||
6 | ^[[1mSYNOPSIS^[[0m | ||
7 | ^[[4m/etc/ssh/sshd_config^[[0m | ||
8 | |||
9 | ^[[1mDESCRIPTION^[[0m | ||
10 | ^[[1msshd ^[[22mreads configuration data from ^[[4m/etc/ssh/sshd_config^[[24m (or the file | ||
11 | specified with ^[[1mM-bMM-^Rf ^[[22mon the command line). The file contains keywordM-bM-^@M-^ParguM-bM-^@M-^P | ||
12 | ment pairs, one per line. Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are | ||
13 | interpreted as comments. | ||
14 | |||
15 | The possible keywords and their meanings are as follows (note that keyM-bM-^@M-^P | ||
16 | words are caseM-bM-^@M-^Pinsensitive and arguments are caseM-bM-^@M-^Psensitive): | ||
17 | |||
18 | ^[[1mAFSTokenPassing^[[0m | ||
19 | Specifies whether an AFS token may be forwarded to the server. | ||
20 | Default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
21 | |||
22 | ^[[1mAllowGroups^[[0m | ||
23 | This keyword can be followed by a list of group name patterns, | ||
24 | separated by spaces. If specified, login is allowed only for | ||
25 | users whose primary group or supplementary group list matches one | ||
26 | of the patterns. M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? can be used as wildcards in the | ||
27 | patterns. Only group names are valid; a numerical group ID is | ||
28 | not recognized. By default, login is allowed for all groups. | ||
29 | |||
30 | ^[[1mAllowTcpForwarding^[[0m | ||
31 | Specifies whether TCP forwarding is permitted. The default is | ||
32 | M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling TCP forwarding does not improve secuM-bM-^@M-^P | ||
33 | rity unless users are also denied shell access, as they can | ||
34 | always install their own forwarders. | ||
35 | |||
36 | ^[[1mAllowUsers^[[0m | ||
37 | This keyword can be followed by a list of user name patterns, | ||
38 | separated by spaces. If specified, login is allowed only for | ||
39 | user names that match one of the patterns. M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? can be | ||
40 | used as wildcards in the patterns. Only user names are valid; a | ||
41 | numerical user ID is not recognized. By default, login is | ||
42 | allowed for all users. If the pattern takes the form USER@HOST | ||
43 | then USER and HOST are separately checked, restricting logins to | ||
44 | particular users from particular hosts. | ||
45 | |||
46 | ^[[1mAuthorizedKeysFile^[[0m | ||
47 | Specifies the file that contains the public keys that can be used | ||
48 | for user authentication. ^[[1mAuthorizedKeysFile ^[[22mmay contain tokens | ||
49 | of the form %T which are substituted during connection setM-bM-^@M-^Pup. | ||
50 | The following tokens are defined: %% is replaced by a literal | ||
51 | M-bM-^@M-^Y%M-bM-^@M-^Y, %h is replaced by the home directory of the user being | ||
52 | authenticated and %u is replaced by the username of that user. | ||
53 | After expansion, ^[[1mAuthorizedKeysFile ^[[22mis taken to be an absolute | ||
54 | path or one relative to the userM-bM-^@M-^Ys home directory. The default | ||
55 | is M-bM-^@M-^\.ssh/authorized_keysM-bM-^@M-^]. | ||
56 | |||
57 | ^[[1mBanner ^[[22mIn some jurisdictions, sending a warning message before authentiM-bM-^@M-^P | ||
58 | cation may be relevant for getting legal protection. The conM-bM-^@M-^P | ||
59 | tents of the specified file are sent to the remote user before | ||
60 | authentication is allowed. This option is only available for | ||
61 | protocol version 2. By default, no banner is displayed. | ||
62 | |||
63 | ^[[1mChallengeResponseAuthentication^[[0m | ||
64 | Specifies whether challenge response authentication is allowed. | ||
65 | All authentication styles from login.conf(5) are supported. The | ||
66 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
67 | |||
68 | ^[[1mCiphers^[[0m | ||
69 | Specifies the ciphers allowed for protocol version 2. Multiple | ||
70 | ciphers must be commaM-bM-^@M-^Pseparated. The default is | ||
71 | |||
72 | M-bM-^@M-^XM-bM-^@M-^Xaes128M-bM-^@M-^Pcbc,3desM-bM-^@M-^Pcbc,blowfishM-bM-^@M-^Pcbc,cast128M-bM-^@M-^Pcbc,arcfour, | ||
73 | aes192M-bM-^@M-^Pcbc,aes256M-bM-^@M-^PcbcM-bM-^@M-^YM-bM-^@M-^Y | ||
74 | |||
75 | ^[[1mClientAliveInterval^[[0m | ||
76 | Sets a timeout interval in seconds after which if no data has | ||
77 | been received from the client, ^[[1msshd ^[[22mwill send a message through | ||
78 | the encrypted channel to request a response from the client. The | ||
79 | default is 0, indicating that these messages will not be sent to | ||
80 | the client. This option applies to protocol version 2 only. | ||
81 | |||
82 | ^[[1mClientAliveCountMax^[[0m | ||
83 | Sets the number of client alive messages (see above) which may be | ||
84 | sent without ^[[1msshd ^[[22mreceiving any messages back from the client. If | ||
85 | this threshold is reached while client alive messages are being | ||
86 | sent, ^[[1msshd ^[[22mwill disconnect the client, terminating the session. | ||
87 | It is important to note that the use of client alive messages is | ||
88 | very different from ^[[1mKeepAlive ^[[22m(below). The client alive messages | ||
89 | are sent through the encrypted channel and therefore will not be | ||
90 | spoofable. The TCP keepalive option enabled by ^[[1mKeepAlive ^[[22mis | ||
91 | spoofable. The client alive mechanism is valuable when the client | ||
92 | or server depend on knowing when a connection has become inacM-bM-^@M-^P | ||
93 | tive. | ||
94 | |||
95 | The default value is 3. If ^[[1mClientAliveInterval ^[[22m(above) is set to | ||
96 | 15, and ^[[1mClientAliveCountMax ^[[22mis left at the default, unresponsive | ||
97 | ssh clients will be disconnected after approximately 45 seconds. | ||
98 | |||
99 | ^[[1mCompression^[[0m | ||
100 | Specifies whether compression is allowed. The argument must be | ||
101 | M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
102 | |||
103 | ^[[1mDenyGroups^[[0m | ||
104 | This keyword can be followed by a list of group name patterns, | ||
105 | separated by spaces. Login is disallowed for users whose primary | ||
106 | group or supplementary group list matches one of the patterns. | ||
107 | M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? can be used as wildcards in the patterns. Only | ||
108 | group names are valid; a numerical group ID is not recognized. | ||
109 | By default, login is allowed for all groups. | ||
110 | |||
111 | ^[[1mDenyUsers^[[0m | ||
112 | This keyword can be followed by a list of user name patterns, | ||
113 | separated by spaces. Login is disallowed for user names that | ||
114 | match one of the patterns. M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^XM-bM-^@M-^Y? can be used as wildcards | ||
115 | in the patterns. Only user names are valid; a numerical user ID | ||
116 | is not recognized. By default, login is allowed for all users. | ||
117 | If the pattern takes the form USER@HOST then USER and HOST are | ||
118 | separately checked, restricting logins to particular users from | ||
119 | particular hosts. | ||
120 | |||
121 | ^[[1mGatewayPorts^[[0m | ||
122 | Specifies whether remote hosts are allowed to connect to ports | ||
123 | forwarded for the client. By default, ^[[1msshd ^[[22mbinds remote port | ||
124 | forwardings to the loopback address. This prevents other remote | ||
125 | hosts from connecting to forwarded ports. ^[[1mGatewayPorts ^[[22mcan be | ||
126 | used to specify that ^[[1msshd ^[[22mshould bind remote port forwardings to | ||
127 | the wildcard address, thus allowing remote hosts to connect to | ||
128 | forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The | ||
129 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
130 | |||
131 | ^[[1mHostbasedAuthentication^[[0m | ||
132 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
133 | together with successful public key client host authentication is | ||
134 | allowed (hostbased authentication). This option is similar to | ||
135 | ^[[1mRhostsRSAAuthentication ^[[22mand applies to protocol version 2 only. | ||
136 | The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
137 | |||
138 | ^[[1mHostKey^[[0m | ||
139 | Specifies a file containing a private host key used by SSH. The | ||
140 | default is ^[[4m/etc/ssh/ssh_host_key^[[24m for protocol version 1, and | ||
141 | ^[[4m/etc/ssh/ssh_host_rsa_key^[[24m and ^[[4m/etc/ssh/ssh_host_dsa_key^[[24m for proM-bM-^@M-^P | ||
142 | tocol version 2. Note that ^[[1msshd ^[[22mwill refuse to use a file if it | ||
143 | is group/worldM-bM-^@M-^Paccessible. It is possible to have multiple host | ||
144 | key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] | ||
145 | are used for version 2 of the SSH protocol. | ||
146 | |||
147 | ^[[1mIgnoreRhosts^[[0m | ||
148 | Specifies that ^[[4m.rhosts^[[24m and ^[[4m.shosts^[[24m files will not be used in | ||
149 | ^[[1mRhostsAuthentication^[[22m, ^[[1mRhostsRSAAuthentication ^[[22mor | ||
150 | ^[[1mHostbasedAuthentication^[[22m. | ||
151 | |||
152 | ^[[4m/etc/hosts.equiv^[[24m and ^[[4m/etc/shosts.equiv^[[24m are still used. The | ||
153 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
154 | |||
155 | ^[[1mIgnoreUserKnownHosts^[[0m | ||
156 | Specifies whether ^[[1msshd ^[[22mshould ignore the userM-bM-^@M-^Ys | ||
157 | ^[[4m$HOME/.ssh/known_hosts^[[24m during ^[[1mRhostsRSAAuthentication ^[[22mor | ||
158 | ^[[1mHostbasedAuthentication^[[22m. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
159 | |||
160 | ^[[1mKeepAlive^[[0m | ||
161 | Specifies whether the system should send TCP keepalive messages | ||
162 | to the other side. If they are sent, death of the connection or | ||
163 | crash of one of the machines will be properly noticed. However, | ||
164 | this means that connections will die if the route is down temM-bM-^@M-^P | ||
165 | porarily, and some people find it annoying. On the other hand, | ||
166 | if keepalives are not sent, sessions may hang indefinitely on the | ||
167 | server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming server resources. | ||
168 | |||
169 | The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send keepalives), and the server will | ||
170 | notice if the network goes down or the client host crashes. This | ||
171 | avoids infinitely hanging sessions. | ||
172 | |||
173 | To disable keepalives, the value should be set to M-bM-^@M-^\noM-bM-^@M-^]. | ||
174 | |||
175 | ^[[1mKerberosAuthentication^[[0m | ||
176 | Specifies whether Kerberos authentication is allowed. This can | ||
177 | be in the form of a Kerberos ticket, or if ^[[1mPasswordAuthentication^[[0m | ||
178 | is yes, the password provided by the user will be validated | ||
179 | through the Kerberos KDC. To use this option, the server needs a | ||
180 | Kerberos servtab which allows the verification of the KDCM-bM-^@M-^Ys idenM-bM-^@M-^P | ||
181 | tity. Default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
182 | |||
183 | ^[[1mKerberosOrLocalPasswd^[[0m | ||
184 | If set then if password authentication through Kerberos fails | ||
185 | then the password will be validated via any additional local | ||
186 | mechanism such as ^[[4m/etc/passwd^[[24m. Default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
187 | |||
188 | ^[[1mKerberosTgtPassing^[[0m | ||
189 | Specifies whether a Kerberos TGT may be forwarded to the server. | ||
190 | Default is M-bM-^@M-^\noM-bM-^@M-^], as this only works when the Kerberos KDC is | ||
191 | actually an AFS kaserver. | ||
192 | |||
193 | ^[[1mKerberosTicketCleanup^[[0m | ||
194 | Specifies whether to automatically destroy the userM-bM-^@M-^Ys ticket | ||
195 | cache file on logout. Default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
196 | |||
197 | ^[[1mKeyRegenerationInterval^[[0m | ||
198 | In protocol version 1, the ephemeral server key is automatically | ||
199 | regenerated after this many seconds (if it has been used). The | ||
200 | purpose of regeneration is to prevent decrypting captured sesM-bM-^@M-^P | ||
201 | sions by later breaking into the machine and stealing the keys. | ||
202 | The key is never stored anywhere. If the value is 0, the key is | ||
203 | never regenerated. The default is 3600 (seconds). | ||
204 | |||
205 | ^[[1mListenAddress^[[0m | ||
206 | Specifies the local addresses ^[[1msshd ^[[22mshould listen on. The followM-bM-^@M-^P | ||
207 | ing forms may be used: | ||
208 | |||
209 | ^[[1mListenAddress ^[[4m^[[22mhost^[[24m|^[[4mIPv4_addr^[[24m|^[[4mIPv6_addr^[[0m | ||
210 | ^[[1mListenAddress ^[[4m^[[22mhost^[[24m|^[[4mIPv4_addr^[[24m:^[[4mport^[[0m | ||
211 | ^[[1mListenAddress ^[[22m[^[[4mhost^[[24m|^[[4mIPv6_addr^[[24m]:^[[4mport^[[0m | ||
212 | |||
213 | If ^[[4mport^[[24m is not specified, ^[[1msshd ^[[22mwill listen on the address and all | ||
214 | prior ^[[1mPort ^[[22moptions specified. The default is to listen on all | ||
215 | local addresses. Multiple ^[[1mListenAddress ^[[22moptions are permitted. | ||
216 | Additionally, any ^[[1mPort ^[[22moptions must precede this option for non | ||
217 | port qualified addresses. | ||
218 | |||
219 | ^[[1mLoginGraceTime^[[0m | ||
220 | The server disconnects after this time if the user has not sucM-bM-^@M-^P | ||
221 | cessfully logged in. If the value is 0, there is no time limit. | ||
222 | The default is 120 seconds. | ||
223 | |||
224 | ^[[1mLogLevel^[[0m | ||
225 | Gives the verbosity level that is used when logging messages from | ||
226 | ^[[1msshd^[[22m. The possible values are: QUIET, FATAL, ERROR, INFO, VERM-bM-^@M-^P | ||
227 | BOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. The default is INFO. | ||
228 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
229 | higher levels of debugging output. Logging with a DEBUG level | ||
230 | violates the privacy of users and is not recommended. | ||
231 | |||
232 | ^[[1mMACs ^[[22mSpecifies the available MAC (message authentication code) algoM-bM-^@M-^P | ||
233 | rithms. The MAC algorithm is used in protocol version 2 for data | ||
234 | integrity protection. Multiple algorithms must be commaM-bM-^@M-^PsepaM-bM-^@M-^P | ||
235 | rated. The default is | ||
236 | M-bM-^@M-^\hmacM-bM-^@M-^Pmd5,hmacM-bM-^@M-^Psha1,hmacM-bM-^@M-^Pripemd160,hmacM-bM-^@M-^Psha1M-bM-^@M-^P96,hmacM-bM-^@M-^Pmd5M-bM-^@M-^P96M-bM-^@M-^]. | ||
237 | |||
238 | ^[[1mMaxStartups^[[0m | ||
239 | Specifies the maximum number of concurrent unauthenticated conM-bM-^@M-^P | ||
240 | nections to the ^[[1msshd ^[[22mdaemon. Additional connections will be | ||
241 | dropped until authentication succeeds or the ^[[1mLoginGraceTime^[[0m | ||
242 | expires for a connection. The default is 10. | ||
243 | |||
244 | Alternatively, random early drop can be enabled by specifying the | ||
245 | three colon separated values M-bM-^@M-^\start:rate:fullM-bM-^@M-^] (e.g., | ||
246 | "10:30:60"). ^[[1msshd ^[[22mwill refuse connection attempts with a probaM-bM-^@M-^P | ||
247 | bility of M-bM-^@M-^\rate/100M-bM-^@M-^] (30%) if there are currently M-bM-^@M-^\startM-bM-^@M-^] (10) | ||
248 | unauthenticated connections. The probability increases linearly | ||
249 | and all connection attempts are refused if the number of unauM-bM-^@M-^P | ||
250 | thenticated connections reaches M-bM-^@M-^\fullM-bM-^@M-^] (60). | ||
251 | |||
252 | ^[[1mPAMAuthenticationViaKbdInt^[[0m | ||
253 | Specifies whether PAM challenge response authentication is | ||
254 | allowed. This allows the use of most PAM challenge response | ||
255 | authentication modules, but it will allow password authentication | ||
256 | regardless of whether ^[[1mPasswordAuthentication ^[[22mis enabled. | ||
257 | |||
258 | ^[[1mPasswordAuthentication^[[0m | ||
259 | Specifies whether password authentication is allowed. The | ||
260 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
261 | |||
262 | ^[[1mPermitEmptyPasswords^[[0m | ||
263 | When password authentication is allowed, it specifies whether the | ||
264 | server allows login to accounts with empty password strings. The | ||
265 | default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
266 | |||
267 | ^[[1mPermitRootLogin^[[0m | ||
268 | Specifies whether root can login using ssh(1). The argument must | ||
269 | be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\withoutM-bM-^@M-^PpasswordM-bM-^@M-^], M-bM-^@M-^\forcedM-bM-^@M-^PcommandsM-bM-^@M-^PonlyM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. | ||
270 | The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
271 | |||
272 | If this option is set to M-bM-^@M-^\withoutM-bM-^@M-^PpasswordM-bM-^@M-^] password authenticaM-bM-^@M-^P | ||
273 | tion is disabled for root. | ||
274 | |||
275 | If this option is set to M-bM-^@M-^\forcedM-bM-^@M-^PcommandsM-bM-^@M-^PonlyM-bM-^@M-^] root login with | ||
276 | public key authentication will be allowed, but only if the | ||
277 | ^[[4mcommand^[[24m option has been specified (which may be useful for taking | ||
278 | remote backups even if root login is normally not allowed). All | ||
279 | other authentication methods are disabled for root. | ||
280 | |||
281 | If this option is set to M-bM-^@M-^\noM-bM-^@M-^] root is not allowed to login. | ||
282 | |||
283 | ^[[1mPermitUserEnvironment^[[0m | ||
284 | Specifies whether ^[[4m~/.ssh/environment^[[24m and ^[[1menvironment= ^[[22moptions in | ||
285 | ^[[4m~/.ssh/authorized_keys^[[24m are processed by ^[[1msshd^[[22m. The default is | ||
286 | M-bM-^@M-^\noM-bM-^@M-^]. Enabling environment processing may enable users to bypass | ||
287 | access restrictions in some configurations using mechanisms such | ||
288 | as LD_PRELOAD. | ||
289 | |||
290 | ^[[1mPidFile^[[0m | ||
291 | Specifies the file that contains the process ID of the ^[[1msshd ^[[22mdaeM-bM-^@M-^P | ||
292 | mon. The default is ^[[4m/var/run/sshd.pid^[[24m. | ||
293 | |||
294 | ^[[1mPort ^[[22mSpecifies the port number that ^[[1msshd ^[[22mlistens on. The default is | ||
295 | 22. Multiple options of this type are permitted. See also | ||
296 | ^[[1mListenAddress^[[22m. | ||
297 | |||
298 | ^[[1mPrintLastLog^[[0m | ||
299 | Specifies whether ^[[1msshd ^[[22mshould print the date and time when the | ||
300 | user last logged in. The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
301 | |||
302 | ^[[1mPrintMotd^[[0m | ||
303 | Specifies whether ^[[1msshd ^[[22mshould print ^[[4m/etc/motd^[[24m when a user logs in | ||
304 | interactively. (On some systems it is also printed by the shell, | ||
305 | ^[[4m/etc/profile^[[24m, or equivalent.) The default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
306 | |||
307 | ^[[1mProtocol^[[0m | ||
308 | Specifies the protocol versions ^[[1msshd ^[[22msupports. The possible valM-bM-^@M-^P | ||
309 | ues are M-bM-^@M-^\1M-bM-^@M-^] and M-bM-^@M-^\2M-bM-^@M-^]. Multiple versions must be commaM-bM-^@M-^Pseparated. | ||
310 | The default is M-bM-^@M-^\2,1M-bM-^@M-^]. Note that the order of the protocol list | ||
311 | does not indicate preference, because the client selects among | ||
312 | multiple protocol versions offered by the server. Specifying | ||
313 | M-bM-^@M-^\2,1M-bM-^@M-^] is identical to M-bM-^@M-^\1,2M-bM-^@M-^]. | ||
314 | |||
315 | ^[[1mPubkeyAuthentication^[[0m | ||
316 | Specifies whether public key authentication is allowed. The | ||
317 | default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option applies to protocol verM-bM-^@M-^P | ||
318 | sion 2 only. | ||
319 | |||
320 | ^[[1mRhostsAuthentication^[[0m | ||
321 | Specifies whether authentication using rhosts or /etc/hosts.equiv | ||
322 | files is sufficient. Normally, this method should not be permitM-bM-^@M-^P | ||
323 | ted because it is insecure. ^[[1mRhostsRSAAuthentication ^[[22mshould be | ||
324 | used instead, because it performs RSAM-bM-^@M-^Pbased host authentication | ||
325 | in addition to normal rhosts or /etc/hosts.equiv authentication. | ||
326 | The default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 | ||
327 | only. | ||
328 | |||
329 | ^[[1mRhostsRSAAuthentication^[[0m | ||
330 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
331 | together with successful RSA host authentication is allowed. The | ||
332 | default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only. | ||
333 | |||
334 | ^[[1mRSAAuthentication^[[0m | ||
335 | Specifies whether pure RSA authentication is allowed. The | ||
336 | default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1 | ||
337 | only. | ||
338 | |||
339 | ^[[1mServerKeyBits^[[0m | ||
340 | Defines the number of bits in the ephemeral protocol version 1 | ||
341 | server key. The minimum value is 512, and the default is 768. | ||
342 | |||
343 | ^[[1mStrictModes^[[0m | ||
344 | Specifies whether ^[[1msshd ^[[22mshould check file modes and ownership of | ||
345 | the userM-bM-^@M-^Ys files and home directory before accepting login. This | ||
346 | is normally desirable because novices sometimes accidentally | ||
347 | leave their directory or files worldM-bM-^@M-^Pwritable. The default is | ||
348 | M-bM-^@M-^\yesM-bM-^@M-^]. | ||
349 | |||
350 | ^[[1mSubsystem^[[0m | ||
351 | Configures an external subsystem (e.g., file transfer daemon). | ||
352 | Arguments should be a subsystem name and a command to execute | ||
353 | upon subsystem request. The command sftpM-bM-^@M-^Pserver(8) implements | ||
354 | the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer subsystem. By default no subsystems are | ||
355 | defined. Note that this option applies to protocol version 2 | ||
356 | only. | ||
357 | |||
358 | ^[[1mSyslogFacility^[[0m | ||
359 | Gives the facility code that is used when logging messages from | ||
360 | ^[[1msshd^[[22m. The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
361 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The | ||
362 | default is AUTH. | ||
363 | |||
364 | ^[[1mUseLogin^[[0m | ||
365 | Specifies whether login(1) is used for interactive login sesM-bM-^@M-^P | ||
366 | sions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used | ||
367 | for remote command execution. Note also, that if this is | ||
368 | enabled, ^[[1mX11Forwarding ^[[22mwill be disabled because login(1) does not | ||
369 | know how to handle xauth(1) cookies. If ^[[1mUsePrivilegeSeparation^[[0m | ||
370 | is specified, it will be disabled after authentication. | ||
371 | |||
372 | ^[[1mUsePrivilegeSeparation^[[0m | ||
373 | Specifies whether ^[[1msshd ^[[22mseparates privileges by creating an | ||
374 | unprivileged child process to deal with incoming network traffic. | ||
375 | After successful authentication, another process will be created | ||
376 | that has the privilege of the authenticated user. The goal of | ||
377 | privilege separation is to prevent privilege escalation by conM-bM-^@M-^P | ||
378 | taining any corruption within the unprivileged processes. The | ||
379 | default is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
380 | |||
381 | ^[[1mVerifyReverseMapping^[[0m | ||
382 | Specifies whether ^[[1msshd ^[[22mshould try to verify the remote host name | ||
383 | and check that the resolved host name for the remote IP address | ||
384 | maps back to the very same IP address. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
385 | |||
386 | ^[[1mX11DisplayOffset^[[0m | ||
387 | Specifies the first display number available for ^[[1msshd^[[22mM-bM-^@M-^Ys X11 forM-bM-^@M-^P | ||
388 | warding. This prevents ^[[1msshd ^[[22mfrom interfering with real X11 | ||
389 | servers. The default is 10. | ||
390 | |||
391 | ^[[1mX11Forwarding^[[0m | ||
392 | Specifies whether X11 forwarding is permitted. The argument must | ||
393 | be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^]. | ||
394 | |||
395 | When X11 forwarding is enabled, there may be additional exposure | ||
396 | to the server and to client displays if the ^[[1msshd ^[[22mproxy display is | ||
397 | configured to listen on the wildcard address (see ^[[1mX11UseLocalhost^[[0m | ||
398 | below), however this is not the default. Additionally, the | ||
399 | authentication spoofing and authentication data verification and | ||
400 | substitution occur on the client side. The security risk of | ||
401 | using X11 forwarding is that the clientM-bM-^@M-^Ys X11 display server may | ||
402 | be exposed to attack when the ssh client requests forwarding (see | ||
403 | the warnings for ^[[1mForwardX11 ^[[22min ssh_config(5) ). A system adminisM-bM-^@M-^P | ||
404 | trator may have a stance in which they want to protect clients | ||
405 | that may expose themselves to attack by unwittingly requesting | ||
406 | X11 forwarding, which can warrant a M-bM-^@M-^\noM-bM-^@M-^] setting. | ||
407 | |||
408 | Note that disabling X11 forwarding does not prevent users from | ||
409 | forwarding X11 traffic, as users can always install their own | ||
410 | forwarders. X11 forwarding is automatically disabled if ^[[1mUseLogin^[[0m | ||
411 | is enabled. | ||
412 | |||
413 | ^[[1mX11UseLocalhost^[[0m | ||
414 | Specifies whether ^[[1msshd ^[[22mshould bind the X11 forwarding server to | ||
415 | the loopback address or to the wildcard address. By default, | ||
416 | ^[[1msshd ^[[22mbinds the forwarding server to the loopback address and sets | ||
417 | the hostname part of the DISPLAY environment variable to | ||
418 | M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the | ||
419 | proxy display. However, some older X11 clients may not function | ||
420 | with this configuration. ^[[1mX11UseLocalhost ^[[22mmay be set to M-bM-^@M-^\noM-bM-^@M-^] to | ||
421 | specify that the forwarding server should be bound to the wildM-bM-^@M-^P | ||
422 | card address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default | ||
423 | is M-bM-^@M-^\yesM-bM-^@M-^]. | ||
424 | |||
425 | ^[[1mXAuthLocation^[[0m | ||
426 | Specifies the full pathname of the xauth(1) program. The default | ||
427 | is ^[[4m/usr/X11R6/bin/xauth^[[24m. | ||
428 | |||
429 | ^[[1mTime Formats^[[0m | ||
430 | |||
431 | ^[[1msshd ^[[22mcommandM-bM-^@M-^Pline arguments and configuration file options that specify | ||
432 | time may be expressed using a sequence of the form: ^[[4mtime^[[24m[^[[4mqualifier^[[24m], | ||
433 | where ^[[4mtime^[[24m is a positive integer value and ^[[4mqualifier^[[24m is one of the folM-bM-^@M-^P | ||
434 | lowing: | ||
435 | |||
436 | ^[[1m<none> ^[[22mseconds | ||
437 | ^[[1ms ^[[22m| ^[[1mS ^[[22mseconds | ||
438 | ^[[1mm ^[[22m| ^[[1mM ^[[22mminutes | ||
439 | ^[[1mh ^[[22m| ^[[1mH ^[[22mhours | ||
440 | ^[[1md ^[[22m| ^[[1mD ^[[22mdays | ||
441 | ^[[1mw ^[[22m| ^[[1mW ^[[22mweeks | ||
442 | |||
443 | Each member of the sequence is added together to calculate the total time | ||
444 | value. | ||
445 | |||
446 | Time format examples: | ||
447 | |||
448 | 600 600 seconds (10 minutes) | ||
449 | 10m 10 minutes | ||
450 | 1h30m 1 hour 30 minutes (90 minutes) | ||
451 | |||
452 | ^[[1mFILES^[[0m | ||
453 | /etc/ssh/sshd_config | ||
454 | Contains configuration data for ^[[1msshd^[[22m. This file should be | ||
455 | writable by root only, but it is recommended (though not necesM-bM-^@M-^P | ||
456 | sary) that it be worldM-bM-^@M-^Preadable. | ||
457 | |||
458 | ^[[1mAUTHORS^[[0m | ||
459 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
460 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
461 | de Raadt and Dug Song removed many bugs, reM-bM-^@M-^Padded newer features and creM-bM-^@M-^P | ||
462 | ated OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
463 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
464 | for privilege separation. | ||
465 | |||
466 | ^[[1mSEE ALSO^[[0m | ||
467 | sshd(8) | ||
468 | |||
469 | BSD September 25, 1999 BSD | ||