diff options
author | Colin Watson <cjwatson@debian.org> | 2006-05-12 07:53:24 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2006-05-12 07:53:24 +0000 |
commit | 3e2e0ac10674d77618c4c7339e18b83ced247492 (patch) | |
tree | 8c7fd1c2333a75d57aa1cb5dfaee2310b1f3d37a /configure | |
parent | 56cf3dc50961bcc871a2d86984049e80c24d6456 (diff) | |
parent | 16704d57999d987fb8d9ba53379841a79f016d67 (diff) |
Import OpenSSH 4.3p2.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28150 |
1 files changed, 28150 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..5a5e162bd --- /dev/null +++ b/configure | |||
@@ -0,0 +1,28150 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.322.2.6 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.59 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
9 | # This configure script is free software; the Free Software Foundation | ||
10 | # gives unlimited permission to copy, distribute and modify it. | ||
11 | ## --------------------- ## | ||
12 | ## M4sh Initialization. ## | ||
13 | ## --------------------- ## | ||
14 | |||
15 | # Be Bourne compatible | ||
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17 | emulate sh | ||
18 | NULLCMD=: | ||
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
20 | # is contrary to our usage. Disable this feature. | ||
21 | alias -g '${1+"$@"}'='"$@"' | ||
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
23 | set -o posix | ||
24 | fi | ||
25 | DUALCASE=1; export DUALCASE # for MKS sh | ||
26 | |||
27 | # Support unset when possible. | ||
28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
29 | as_unset=unset | ||
30 | else | ||
31 | as_unset=false | ||
32 | fi | ||
33 | |||
34 | |||
35 | # Work around bugs in pre-3.0 UWIN ksh. | ||
36 | $as_unset ENV MAIL MAILPATH | ||
37 | PS1='$ ' | ||
38 | PS2='> ' | ||
39 | PS4='+ ' | ||
40 | |||
41 | # NLS nuisances. | ||
42 | for as_var in \ | ||
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
45 | LC_TELEPHONE LC_TIME | ||
46 | do | ||
47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
48 | eval $as_var=C; export $as_var | ||
49 | else | ||
50 | $as_unset $as_var | ||
51 | fi | ||
52 | done | ||
53 | |||
54 | # Required to use basename. | ||
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
56 | as_expr=expr | ||
57 | else | ||
58 | as_expr=false | ||
59 | fi | ||
60 | |||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
62 | as_basename=basename | ||
63 | else | ||
64 | as_basename=false | ||
65 | fi | ||
66 | |||
67 | |||
68 | # Name of the executable. | ||
69 | as_me=`$as_basename "$0" || | ||
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
71 | X"$0" : 'X\(//\)$' \| \ | ||
72 | X"$0" : 'X\(/\)$' \| \ | ||
73 | . : '\(.\)' 2>/dev/null || | ||
74 | echo X/"$0" | | ||
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
77 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
78 | s/.*/./; q'` | ||
79 | |||
80 | |||
81 | # PATH needs CR, and LINENO needs CR and PATH. | ||
82 | # Avoid depending upon Character Ranges. | ||
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
86 | as_cr_digits='0123456789' | ||
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
88 | |||
89 | # The user is always right. | ||
90 | if test "${PATH_SEPARATOR+set}" != set; then | ||
91 | echo "#! /bin/sh" >conf$$.sh | ||
92 | echo "exit 0" >>conf$$.sh | ||
93 | chmod +x conf$$.sh | ||
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
95 | PATH_SEPARATOR=';' | ||
96 | else | ||
97 | PATH_SEPARATOR=: | ||
98 | fi | ||
99 | rm -f conf$$.sh | ||
100 | fi | ||
101 | |||
102 | |||
103 | as_lineno_1=$LINENO | ||
104 | as_lineno_2=$LINENO | ||
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
108 | # Find who we are. Look in the path if we contain no path at all | ||
109 | # relative or not. | ||
110 | case $0 in | ||
111 | *[\\/]* ) as_myself=$0 ;; | ||
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
113 | for as_dir in $PATH | ||
114 | do | ||
115 | IFS=$as_save_IFS | ||
116 | test -z "$as_dir" && as_dir=. | ||
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
118 | done | ||
119 | |||
120 | ;; | ||
121 | esac | ||
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
123 | # in which case we are not to be found in the path. | ||
124 | if test "x$as_myself" = x; then | ||
125 | as_myself=$0 | ||
126 | fi | ||
127 | if test ! -f "$as_myself"; then | ||
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
129 | { (exit 1); exit 1; }; } | ||
130 | fi | ||
131 | case $CONFIG_SHELL in | ||
132 | '') | ||
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
135 | do | ||
136 | IFS=$as_save_IFS | ||
137 | test -z "$as_dir" && as_dir=. | ||
138 | for as_base in sh bash ksh sh5; do | ||
139 | case $as_dir in | ||
140 | /*) | ||
141 | if ("$as_dir/$as_base" -c ' | ||
142 | as_lineno_1=$LINENO | ||
143 | as_lineno_2=$LINENO | ||
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
149 | CONFIG_SHELL=$as_dir/$as_base | ||
150 | export CONFIG_SHELL | ||
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
152 | fi;; | ||
153 | esac | ||
154 | done | ||
155 | done | ||
156 | ;; | ||
157 | esac | ||
158 | |||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
160 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
161 | # line-number line before each line; the second 'sed' does the real | ||
162 | # work. The second script uses 'N' to pair each line-number line | ||
163 | # with the numbered line, and appends trailing '-' during | ||
164 | # substitution so that $LINENO is not a special case at line end. | ||
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
167 | sed '=' <$as_myself | | ||
168 | sed ' | ||
169 | N | ||
170 | s,$,-, | ||
171 | : loop | ||
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
173 | t loop | ||
174 | s,-$,, | ||
175 | s,^['$as_cr_digits']*\n,, | ||
176 | ' >$as_me.lineno && | ||
177 | chmod +x $as_me.lineno || | ||
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
179 | { (exit 1); exit 1; }; } | ||
180 | |||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
182 | # (the dirname of $[0] is not the place where we might find the | ||
183 | # original and so on. Autoconf is especially sensible to this). | ||
184 | . ./$as_me.lineno | ||
185 | # Exit status is that of the last command. | ||
186 | exit | ||
187 | } | ||
188 | |||
189 | |||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
191 | *c*,-n*) ECHO_N= ECHO_C=' | ||
192 | ' ECHO_T=' ' ;; | ||
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
195 | esac | ||
196 | |||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
198 | as_expr=expr | ||
199 | else | ||
200 | as_expr=false | ||
201 | fi | ||
202 | |||
203 | rm -f conf$$ conf$$.exe conf$$.file | ||
204 | echo >conf$$.file | ||
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
206 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
208 | if test -f conf$$.exe; then | ||
209 | # Don't use ln at all; we don't have any links | ||
210 | as_ln_s='cp -p' | ||
211 | else | ||
212 | as_ln_s='ln -s' | ||
213 | fi | ||
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
215 | as_ln_s=ln | ||
216 | else | ||
217 | as_ln_s='cp -p' | ||
218 | fi | ||
219 | rm -f conf$$ conf$$.exe conf$$.file | ||
220 | |||
221 | if mkdir -p . 2>/dev/null; then | ||
222 | as_mkdir_p=: | ||
223 | else | ||
224 | test -d ./-p && rmdir ./-p | ||
225 | as_mkdir_p=false | ||
226 | fi | ||
227 | |||
228 | as_executable_p="test -f" | ||
229 | |||
230 | # Sed expression to map a string onto a valid CPP name. | ||
231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
232 | |||
233 | # Sed expression to map a string onto a valid variable name. | ||
234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
235 | |||
236 | |||
237 | # IFS | ||
238 | # We need space, tab and new line, in precisely that order. | ||
239 | as_nl=' | ||
240 | ' | ||
241 | IFS=" $as_nl" | ||
242 | |||
243 | # CDPATH. | ||
244 | $as_unset CDPATH | ||
245 | |||
246 | |||
247 | # Name of the host. | ||
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
249 | # so uname gets run too. | ||
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
251 | |||
252 | exec 6>&1 | ||
253 | |||
254 | # | ||
255 | # Initializations. | ||
256 | # | ||
257 | ac_default_prefix=/usr/local | ||
258 | ac_config_libobj_dir=. | ||
259 | cross_compiling=no | ||
260 | subdirs= | ||
261 | MFLAGS= | ||
262 | MAKEFLAGS= | ||
263 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
264 | |||
265 | # Maximum number of lines to put in a shell here document. | ||
266 | # This variable seems obsolete. It should probably be removed, and | ||
267 | # only ac_max_sed_lines should be used. | ||
268 | : ${ac_max_here_lines=38} | ||
269 | |||
270 | # Identity of this package. | ||
271 | PACKAGE_NAME='OpenSSH' | ||
272 | PACKAGE_TARNAME='openssh' | ||
273 | PACKAGE_VERSION='Portable' | ||
274 | PACKAGE_STRING='OpenSSH Portable' | ||
275 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
276 | |||
277 | ac_unique_file="ssh.c" | ||
278 | # Factoring default headers for most tests. | ||
279 | ac_includes_default="\ | ||
280 | #include <stdio.h> | ||
281 | #if HAVE_SYS_TYPES_H | ||
282 | # include <sys/types.h> | ||
283 | #endif | ||
284 | #if HAVE_SYS_STAT_H | ||
285 | # include <sys/stat.h> | ||
286 | #endif | ||
287 | #if STDC_HEADERS | ||
288 | # include <stdlib.h> | ||
289 | # include <stddef.h> | ||
290 | #else | ||
291 | # if HAVE_STDLIB_H | ||
292 | # include <stdlib.h> | ||
293 | # endif | ||
294 | #endif | ||
295 | #if HAVE_STRING_H | ||
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
297 | # include <memory.h> | ||
298 | # endif | ||
299 | # include <string.h> | ||
300 | #endif | ||
301 | #if HAVE_STRINGS_H | ||
302 | # include <strings.h> | ||
303 | #endif | ||
304 | #if HAVE_INTTYPES_H | ||
305 | # include <inttypes.h> | ||
306 | #else | ||
307 | # if HAVE_STDINT_H | ||
308 | # include <stdint.h> | ||
309 | # endif | ||
310 | #endif | ||
311 | #if HAVE_UNISTD_H | ||
312 | # include <unistd.h> | ||
313 | #endif" | ||
314 | |||
315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os AWK CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED STARTUP_SCRIPT_SHELL LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD LIBWRAP LIBEDIT LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIBOBJS LTLIBOBJS' | ||
316 | ac_subst_files='' | ||
317 | |||
318 | # Initialize some variables set by options. | ||
319 | ac_init_help= | ||
320 | ac_init_version=false | ||
321 | # The variables have the same names as the options, with | ||
322 | # dashes changed to underlines. | ||
323 | cache_file=/dev/null | ||
324 | exec_prefix=NONE | ||
325 | no_create= | ||
326 | no_recursion= | ||
327 | prefix=NONE | ||
328 | program_prefix=NONE | ||
329 | program_suffix=NONE | ||
330 | program_transform_name=s,x,x, | ||
331 | silent= | ||
332 | site= | ||
333 | srcdir= | ||
334 | verbose= | ||
335 | x_includes=NONE | ||
336 | x_libraries=NONE | ||
337 | |||
338 | # Installation directory options. | ||
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
340 | # and all the variables that are supposed to be based on exec_prefix | ||
341 | # by default will actually change. | ||
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
343 | bindir='${exec_prefix}/bin' | ||
344 | sbindir='${exec_prefix}/sbin' | ||
345 | libexecdir='${exec_prefix}/libexec' | ||
346 | datadir='${prefix}/share' | ||
347 | sysconfdir='${prefix}/etc' | ||
348 | sharedstatedir='${prefix}/com' | ||
349 | localstatedir='${prefix}/var' | ||
350 | libdir='${exec_prefix}/lib' | ||
351 | includedir='${prefix}/include' | ||
352 | oldincludedir='/usr/include' | ||
353 | infodir='${prefix}/info' | ||
354 | mandir='${prefix}/man' | ||
355 | |||
356 | ac_prev= | ||
357 | for ac_option | ||
358 | do | ||
359 | # If the previous option needs an argument, assign it. | ||
360 | if test -n "$ac_prev"; then | ||
361 | eval "$ac_prev=\$ac_option" | ||
362 | ac_prev= | ||
363 | continue | ||
364 | fi | ||
365 | |||
366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
367 | |||
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
369 | |||
370 | case $ac_option in | ||
371 | |||
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
373 | ac_prev=bindir ;; | ||
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
375 | bindir=$ac_optarg ;; | ||
376 | |||
377 | -build | --build | --buil | --bui | --bu) | ||
378 | ac_prev=build_alias ;; | ||
379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
380 | build_alias=$ac_optarg ;; | ||
381 | |||
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
384 | ac_prev=cache_file ;; | ||
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
387 | cache_file=$ac_optarg ;; | ||
388 | |||
389 | --config-cache | -C) | ||
390 | cache_file=config.cache ;; | ||
391 | |||
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
393 | ac_prev=datadir ;; | ||
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
395 | | --da=*) | ||
396 | datadir=$ac_optarg ;; | ||
397 | |||
398 | -disable-* | --disable-*) | ||
399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
400 | # Reject names that are not valid shell variable names. | ||
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
403 | { (exit 1); exit 1; }; } | ||
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
405 | eval "enable_$ac_feature=no" ;; | ||
406 | |||
407 | -enable-* | --enable-*) | ||
408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
409 | # Reject names that are not valid shell variable names. | ||
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
412 | { (exit 1); exit 1; }; } | ||
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
414 | case $ac_option in | ||
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
416 | *) ac_optarg=yes ;; | ||
417 | esac | ||
418 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
419 | |||
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
422 | | --exec | --exe | --ex) | ||
423 | ac_prev=exec_prefix ;; | ||
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
426 | | --exec=* | --exe=* | --ex=*) | ||
427 | exec_prefix=$ac_optarg ;; | ||
428 | |||
429 | -gas | --gas | --ga | --g) | ||
430 | # Obsolete; use --with-gas. | ||
431 | with_gas=yes ;; | ||
432 | |||
433 | -help | --help | --hel | --he | -h) | ||
434 | ac_init_help=long ;; | ||
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
436 | ac_init_help=recursive ;; | ||
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
438 | ac_init_help=short ;; | ||
439 | |||
440 | -host | --host | --hos | --ho) | ||
441 | ac_prev=host_alias ;; | ||
442 | -host=* | --host=* | --hos=* | --ho=*) | ||
443 | host_alias=$ac_optarg ;; | ||
444 | |||
445 | -includedir | --includedir | --includedi | --included | --include \ | ||
446 | | --includ | --inclu | --incl | --inc) | ||
447 | ac_prev=includedir ;; | ||
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
450 | includedir=$ac_optarg ;; | ||
451 | |||
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
453 | ac_prev=infodir ;; | ||
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
455 | infodir=$ac_optarg ;; | ||
456 | |||
457 | -libdir | --libdir | --libdi | --libd) | ||
458 | ac_prev=libdir ;; | ||
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
460 | libdir=$ac_optarg ;; | ||
461 | |||
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
463 | | --libexe | --libex | --libe) | ||
464 | ac_prev=libexecdir ;; | ||
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
466 | | --libexe=* | --libex=* | --libe=*) | ||
467 | libexecdir=$ac_optarg ;; | ||
468 | |||
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
470 | | --localstate | --localstat | --localsta | --localst \ | ||
471 | | --locals | --local | --loca | --loc | --lo) | ||
472 | ac_prev=localstatedir ;; | ||
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
476 | localstatedir=$ac_optarg ;; | ||
477 | |||
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
479 | ac_prev=mandir ;; | ||
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
481 | mandir=$ac_optarg ;; | ||
482 | |||
483 | -nfp | --nfp | --nf) | ||
484 | # Obsolete; use --without-fp. | ||
485 | with_fp=no ;; | ||
486 | |||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
488 | | --no-cr | --no-c | -n) | ||
489 | no_create=yes ;; | ||
490 | |||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
493 | no_recursion=yes ;; | ||
494 | |||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
497 | | --oldin | --oldi | --old | --ol | --o) | ||
498 | ac_prev=oldincludedir ;; | ||
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
502 | oldincludedir=$ac_optarg ;; | ||
503 | |||
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
505 | ac_prev=prefix ;; | ||
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
507 | prefix=$ac_optarg ;; | ||
508 | |||
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
510 | | --program-pre | --program-pr | --program-p) | ||
511 | ac_prev=program_prefix ;; | ||
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
514 | program_prefix=$ac_optarg ;; | ||
515 | |||
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
517 | | --program-suf | --program-su | --program-s) | ||
518 | ac_prev=program_suffix ;; | ||
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
521 | program_suffix=$ac_optarg ;; | ||
522 | |||
523 | -program-transform-name | --program-transform-name \ | ||
524 | | --program-transform-nam | --program-transform-na \ | ||
525 | | --program-transform-n | --program-transform- \ | ||
526 | | --program-transform | --program-transfor \ | ||
527 | | --program-transfo | --program-transf \ | ||
528 | | --program-trans | --program-tran \ | ||
529 | | --progr-tra | --program-tr | --program-t) | ||
530 | ac_prev=program_transform_name ;; | ||
531 | -program-transform-name=* | --program-transform-name=* \ | ||
532 | | --program-transform-nam=* | --program-transform-na=* \ | ||
533 | | --program-transform-n=* | --program-transform-=* \ | ||
534 | | --program-transform=* | --program-transfor=* \ | ||
535 | | --program-transfo=* | --program-transf=* \ | ||
536 | | --program-trans=* | --program-tran=* \ | ||
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
538 | program_transform_name=$ac_optarg ;; | ||
539 | |||
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
541 | | -silent | --silent | --silen | --sile | --sil) | ||
542 | silent=yes ;; | ||
543 | |||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
545 | ac_prev=sbindir ;; | ||
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
547 | | --sbi=* | --sb=*) | ||
548 | sbindir=$ac_optarg ;; | ||
549 | |||
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
552 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
553 | | --sha | --sh) | ||
554 | ac_prev=sharedstatedir ;; | ||
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
558 | | --sha=* | --sh=*) | ||
559 | sharedstatedir=$ac_optarg ;; | ||
560 | |||
561 | -site | --site | --sit) | ||
562 | ac_prev=site ;; | ||
563 | -site=* | --site=* | --sit=*) | ||
564 | site=$ac_optarg ;; | ||
565 | |||
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
567 | ac_prev=srcdir ;; | ||
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
569 | srcdir=$ac_optarg ;; | ||
570 | |||
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
572 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
573 | ac_prev=sysconfdir ;; | ||
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
576 | sysconfdir=$ac_optarg ;; | ||
577 | |||
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
579 | ac_prev=target_alias ;; | ||
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
581 | target_alias=$ac_optarg ;; | ||
582 | |||
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
584 | verbose=yes ;; | ||
585 | |||
586 | -version | --version | --versio | --versi | --vers | -V) | ||
587 | ac_init_version=: ;; | ||
588 | |||
589 | -with-* | --with-*) | ||
590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
591 | # Reject names that are not valid shell variable names. | ||
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
594 | { (exit 1); exit 1; }; } | ||
595 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
596 | case $ac_option in | ||
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
598 | *) ac_optarg=yes ;; | ||
599 | esac | ||
600 | eval "with_$ac_package='$ac_optarg'" ;; | ||
601 | |||
602 | -without-* | --without-*) | ||
603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
604 | # Reject names that are not valid shell variable names. | ||
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
607 | { (exit 1); exit 1; }; } | ||
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
609 | eval "with_$ac_package=no" ;; | ||
610 | |||
611 | --x) | ||
612 | # Obsolete; use --with-x. | ||
613 | with_x=yes ;; | ||
614 | |||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
616 | | --x-incl | --x-inc | --x-in | --x-i) | ||
617 | ac_prev=x_includes ;; | ||
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
620 | x_includes=$ac_optarg ;; | ||
621 | |||
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
624 | ac_prev=x_libraries ;; | ||
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
627 | x_libraries=$ac_optarg ;; | ||
628 | |||
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
630 | Try \`$0 --help' for more information." >&2 | ||
631 | { (exit 1); exit 1; }; } | ||
632 | ;; | ||
633 | |||
634 | *=*) | ||
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
636 | # Reject names that are not valid shell variable names. | ||
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
639 | { (exit 1); exit 1; }; } | ||
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
641 | eval "$ac_envvar='$ac_optarg'" | ||
642 | export $ac_envvar ;; | ||
643 | |||
644 | *) | ||
645 | # FIXME: should be removed in autoconf 3.0. | ||
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
650 | ;; | ||
651 | |||
652 | esac | ||
653 | done | ||
654 | |||
655 | if test -n "$ac_prev"; then | ||
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
658 | { (exit 1); exit 1; }; } | ||
659 | fi | ||
660 | |||
661 | # Be sure to have absolute paths. | ||
662 | for ac_var in exec_prefix prefix | ||
663 | do | ||
664 | eval ac_val=$`echo $ac_var` | ||
665 | case $ac_val in | ||
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
668 | { (exit 1); exit 1; }; };; | ||
669 | esac | ||
670 | done | ||
671 | |||
672 | # Be sure to have absolute paths. | ||
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
674 | localstatedir libdir includedir oldincludedir infodir mandir | ||
675 | do | ||
676 | eval ac_val=$`echo $ac_var` | ||
677 | case $ac_val in | ||
678 | [\\/$]* | ?:[\\/]* ) ;; | ||
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
680 | { (exit 1); exit 1; }; };; | ||
681 | esac | ||
682 | done | ||
683 | |||
684 | # There might be people who depend on the old broken behavior: `$host' | ||
685 | # used to hold the argument of --host etc. | ||
686 | # FIXME: To remove some day. | ||
687 | build=$build_alias | ||
688 | host=$host_alias | ||
689 | target=$target_alias | ||
690 | |||
691 | # FIXME: To remove some day. | ||
692 | if test "x$host_alias" != x; then | ||
693 | if test "x$build_alias" = x; then | ||
694 | cross_compiling=maybe | ||
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
697 | elif test "x$build_alias" != "x$host_alias"; then | ||
698 | cross_compiling=yes | ||
699 | fi | ||
700 | fi | ||
701 | |||
702 | ac_tool_prefix= | ||
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
704 | |||
705 | test "$silent" = yes && exec 6>/dev/null | ||
706 | |||
707 | |||
708 | # Find the source files, if location was not specified. | ||
709 | if test -z "$srcdir"; then | ||
710 | ac_srcdir_defaulted=yes | ||
711 | # Try the directory containing this script, then its parent. | ||
712 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
714 | X"$0" : 'X\(//\)[^/]' \| \ | ||
715 | X"$0" : 'X\(//\)$' \| \ | ||
716 | X"$0" : 'X\(/\)' \| \ | ||
717 | . : '\(.\)' 2>/dev/null || | ||
718 | echo X"$0" | | ||
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
721 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
722 | /^X\(\/\).*/{ s//\1/; q; } | ||
723 | s/.*/./; q'` | ||
724 | srcdir=$ac_confdir | ||
725 | if test ! -r $srcdir/$ac_unique_file; then | ||
726 | srcdir=.. | ||
727 | fi | ||
728 | else | ||
729 | ac_srcdir_defaulted=no | ||
730 | fi | ||
731 | if test ! -r $srcdir/$ac_unique_file; then | ||
732 | if test "$ac_srcdir_defaulted" = yes; then | ||
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
734 | { (exit 1); exit 1; }; } | ||
735 | else | ||
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
737 | { (exit 1); exit 1; }; } | ||
738 | fi | ||
739 | fi | ||
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
742 | { (exit 1); exit 1; }; } | ||
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
744 | ac_env_build_alias_set=${build_alias+set} | ||
745 | ac_env_build_alias_value=$build_alias | ||
746 | ac_cv_env_build_alias_set=${build_alias+set} | ||
747 | ac_cv_env_build_alias_value=$build_alias | ||
748 | ac_env_host_alias_set=${host_alias+set} | ||
749 | ac_env_host_alias_value=$host_alias | ||
750 | ac_cv_env_host_alias_set=${host_alias+set} | ||
751 | ac_cv_env_host_alias_value=$host_alias | ||
752 | ac_env_target_alias_set=${target_alias+set} | ||
753 | ac_env_target_alias_value=$target_alias | ||
754 | ac_cv_env_target_alias_set=${target_alias+set} | ||
755 | ac_cv_env_target_alias_value=$target_alias | ||
756 | ac_env_CC_set=${CC+set} | ||
757 | ac_env_CC_value=$CC | ||
758 | ac_cv_env_CC_set=${CC+set} | ||
759 | ac_cv_env_CC_value=$CC | ||
760 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
761 | ac_env_CFLAGS_value=$CFLAGS | ||
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
763 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
765 | ac_env_LDFLAGS_value=$LDFLAGS | ||
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
772 | ac_env_CPP_set=${CPP+set} | ||
773 | ac_env_CPP_value=$CPP | ||
774 | ac_cv_env_CPP_set=${CPP+set} | ||
775 | ac_cv_env_CPP_value=$CPP | ||
776 | |||
777 | # | ||
778 | # Report the --help message. | ||
779 | # | ||
780 | if test "$ac_init_help" = "long"; then | ||
781 | # Omit some internal or obsolete options to make the list less imposing. | ||
782 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
783 | cat <<_ACEOF | ||
784 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
785 | |||
786 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
787 | |||
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
789 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
790 | |||
791 | Defaults for the options are specified in brackets. | ||
792 | |||
793 | Configuration: | ||
794 | -h, --help display this help and exit | ||
795 | --help=short display options specific to this package | ||
796 | --help=recursive display the short help of all the included packages | ||
797 | -V, --version display version information and exit | ||
798 | -q, --quiet, --silent do not print \`checking...' messages | ||
799 | --cache-file=FILE cache test results in FILE [disabled] | ||
800 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
801 | -n, --no-create do not create output files | ||
802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
803 | |||
804 | _ACEOF | ||
805 | |||
806 | cat <<_ACEOF | ||
807 | Installation directories: | ||
808 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
809 | [$ac_default_prefix] | ||
810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
811 | [PREFIX] | ||
812 | |||
813 | By default, \`make install' will install all the files in | ||
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
816 | for instance \`--prefix=\$HOME'. | ||
817 | |||
818 | For better control, use the options below. | ||
819 | |||
820 | Fine tuning of the installation directories: | ||
821 | --bindir=DIR user executables [EPREFIX/bin] | ||
822 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
823 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
828 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
829 | --includedir=DIR C header files [PREFIX/include] | ||
830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
831 | --infodir=DIR info documentation [PREFIX/info] | ||
832 | --mandir=DIR man documentation [PREFIX/man] | ||
833 | _ACEOF | ||
834 | |||
835 | cat <<\_ACEOF | ||
836 | |||
837 | System types: | ||
838 | --build=BUILD configure for building on BUILD [guessed] | ||
839 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
840 | _ACEOF | ||
841 | fi | ||
842 | |||
843 | if test -n "$ac_init_help"; then | ||
844 | case $ac_init_help in | ||
845 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
846 | esac | ||
847 | cat <<\_ACEOF | ||
848 | |||
849 | Optional Features: | ||
850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
852 | --disable-largefile omit support for large files | ||
853 | --disable-strip Disable calling strip(1) on install | ||
854 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
855 | --disable-lastlog disable use of lastlog even if detected no | ||
856 | --disable-utmp disable use of utmp even if detected no | ||
857 | --disable-utmpx disable use of utmpx even if detected no | ||
858 | --disable-wtmp disable use of wtmp even if detected no | ||
859 | --disable-wtmpx disable use of wtmpx even if detected no | ||
860 | --disable-libutil disable use of libutil (login() etc.) no | ||
861 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
862 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
863 | |||
864 | Optional Packages: | ||
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
867 | --without-rpath Disable auto-added -R linker paths | ||
868 | --with-osfsia Enable Digital Unix SIA | ||
869 | --with-cflags Specify additional flags to pass to compiler | ||
870 | --with-cppflags Specify additional flags to pass to preprocessor | ||
871 | --with-ldflags Specify additional flags to pass to linker | ||
872 | --with-libs Specify additional libraries to link with | ||
873 | --with-Werror Build main code with -Werror | ||
874 | --with-zlib=PATH Use zlib in PATH | ||
875 | --without-zlib-version-check Disable zlib version check | ||
876 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
877 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
878 | --with-libedit[=PATH] Enable libedit support for sftp | ||
879 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
880 | --with-pam Enable PAM support | ||
881 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
882 | --with-rand-helper Use subprocess to gather strong randomness | ||
883 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
884 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
885 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
886 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
887 | --with-sectok Enable smartcard support using libsectok | ||
888 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
889 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
890 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
891 | --with-xauth=PATH Specify path to xauth program | ||
892 | --with-mantype=man|cat|doc Set man page type | ||
893 | --with-md5-passwords Enable use of MD5 passwords | ||
894 | --without-shadow Disable shadow password support | ||
895 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
896 | --with-default-path= Specify default \$PATH environment for server | ||
897 | --with-superuser-path= Specify different path for super-user | ||
898 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
899 | --with-bsd-auth Enable BSD auth support | ||
900 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
901 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
902 | |||
903 | Some influential environment variables: | ||
904 | CC C compiler command | ||
905 | CFLAGS C compiler flags | ||
906 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
907 | nonstandard directory <lib dir> | ||
908 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
909 | headers in a nonstandard directory <include dir> | ||
910 | CPP C preprocessor | ||
911 | |||
912 | Use these variables to override the choices made by `configure' or to help | ||
913 | it to find libraries and programs with nonstandard names/locations. | ||
914 | |||
915 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
916 | _ACEOF | ||
917 | fi | ||
918 | |||
919 | if test "$ac_init_help" = "recursive"; then | ||
920 | # If there are subdirs, report their specific --help. | ||
921 | ac_popdir=`pwd` | ||
922 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
923 | test -d $ac_dir || continue | ||
924 | ac_builddir=. | ||
925 | |||
926 | if test "$ac_dir" != .; then | ||
927 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
928 | # A "../" for each directory in $ac_dir_suffix. | ||
929 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
930 | else | ||
931 | ac_dir_suffix= ac_top_builddir= | ||
932 | fi | ||
933 | |||
934 | case $srcdir in | ||
935 | .) # No --srcdir option. We are building in place. | ||
936 | ac_srcdir=. | ||
937 | if test -z "$ac_top_builddir"; then | ||
938 | ac_top_srcdir=. | ||
939 | else | ||
940 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
941 | fi ;; | ||
942 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
943 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
944 | ac_top_srcdir=$srcdir ;; | ||
945 | *) # Relative path. | ||
946 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
947 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
948 | esac | ||
949 | |||
950 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
951 | # the directories may not exist. | ||
952 | case `pwd` in | ||
953 | .) ac_abs_builddir="$ac_dir";; | ||
954 | *) | ||
955 | case "$ac_dir" in | ||
956 | .) ac_abs_builddir=`pwd`;; | ||
957 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
958 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
959 | esac;; | ||
960 | esac | ||
961 | case $ac_abs_builddir in | ||
962 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
963 | *) | ||
964 | case ${ac_top_builddir}. in | ||
965 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
966 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
967 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
968 | esac;; | ||
969 | esac | ||
970 | case $ac_abs_builddir in | ||
971 | .) ac_abs_srcdir=$ac_srcdir;; | ||
972 | *) | ||
973 | case $ac_srcdir in | ||
974 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
975 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
976 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
977 | esac;; | ||
978 | esac | ||
979 | case $ac_abs_builddir in | ||
980 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
981 | *) | ||
982 | case $ac_top_srcdir in | ||
983 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
984 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
985 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
986 | esac;; | ||
987 | esac | ||
988 | |||
989 | cd $ac_dir | ||
990 | # Check for guested configure; otherwise get Cygnus style configure. | ||
991 | if test -f $ac_srcdir/configure.gnu; then | ||
992 | echo | ||
993 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
994 | elif test -f $ac_srcdir/configure; then | ||
995 | echo | ||
996 | $SHELL $ac_srcdir/configure --help=recursive | ||
997 | elif test -f $ac_srcdir/configure.ac || | ||
998 | test -f $ac_srcdir/configure.in; then | ||
999 | echo | ||
1000 | $ac_configure --help | ||
1001 | else | ||
1002 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1003 | fi | ||
1004 | cd $ac_popdir | ||
1005 | done | ||
1006 | fi | ||
1007 | |||
1008 | test -n "$ac_init_help" && exit 0 | ||
1009 | if $ac_init_version; then | ||
1010 | cat <<\_ACEOF | ||
1011 | OpenSSH configure Portable | ||
1012 | generated by GNU Autoconf 2.59 | ||
1013 | |||
1014 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1015 | This configure script is free software; the Free Software Foundation | ||
1016 | gives unlimited permission to copy, distribute and modify it. | ||
1017 | _ACEOF | ||
1018 | exit 0 | ||
1019 | fi | ||
1020 | exec 5>config.log | ||
1021 | cat >&5 <<_ACEOF | ||
1022 | This file contains any messages produced by compilers while | ||
1023 | running configure, to aid debugging if configure makes a mistake. | ||
1024 | |||
1025 | It was created by OpenSSH $as_me Portable, which was | ||
1026 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1027 | |||
1028 | $ $0 $@ | ||
1029 | |||
1030 | _ACEOF | ||
1031 | { | ||
1032 | cat <<_ASUNAME | ||
1033 | ## --------- ## | ||
1034 | ## Platform. ## | ||
1035 | ## --------- ## | ||
1036 | |||
1037 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1038 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1039 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1040 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1041 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1042 | |||
1043 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1044 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1045 | |||
1046 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1047 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1048 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1049 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1050 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1051 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1052 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1053 | |||
1054 | _ASUNAME | ||
1055 | |||
1056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1057 | for as_dir in $PATH | ||
1058 | do | ||
1059 | IFS=$as_save_IFS | ||
1060 | test -z "$as_dir" && as_dir=. | ||
1061 | echo "PATH: $as_dir" | ||
1062 | done | ||
1063 | |||
1064 | } >&5 | ||
1065 | |||
1066 | cat >&5 <<_ACEOF | ||
1067 | |||
1068 | |||
1069 | ## ----------- ## | ||
1070 | ## Core tests. ## | ||
1071 | ## ----------- ## | ||
1072 | |||
1073 | _ACEOF | ||
1074 | |||
1075 | |||
1076 | # Keep a trace of the command line. | ||
1077 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1078 | # Strip out --silent because we don't want to record it for future runs. | ||
1079 | # Also quote any args containing shell meta-characters. | ||
1080 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1081 | ac_configure_args= | ||
1082 | ac_configure_args0= | ||
1083 | ac_configure_args1= | ||
1084 | ac_sep= | ||
1085 | ac_must_keep_next=false | ||
1086 | for ac_pass in 1 2 | ||
1087 | do | ||
1088 | for ac_arg | ||
1089 | do | ||
1090 | case $ac_arg in | ||
1091 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1092 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1093 | | -silent | --silent | --silen | --sile | --sil) | ||
1094 | continue ;; | ||
1095 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1096 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1097 | esac | ||
1098 | case $ac_pass in | ||
1099 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1100 | 2) | ||
1101 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1102 | if test $ac_must_keep_next = true; then | ||
1103 | ac_must_keep_next=false # Got value, back to normal. | ||
1104 | else | ||
1105 | case $ac_arg in | ||
1106 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1107 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1108 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1109 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1110 | case "$ac_configure_args0 " in | ||
1111 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1112 | esac | ||
1113 | ;; | ||
1114 | -* ) ac_must_keep_next=true ;; | ||
1115 | esac | ||
1116 | fi | ||
1117 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1118 | # Get rid of the leading space. | ||
1119 | ac_sep=" " | ||
1120 | ;; | ||
1121 | esac | ||
1122 | done | ||
1123 | done | ||
1124 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1125 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1126 | |||
1127 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1128 | # config.log. We remove comments because anyway the quotes in there | ||
1129 | # would cause problems or look ugly. | ||
1130 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1131 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1132 | trap 'exit_status=$? | ||
1133 | # Save into config.log some information that might help in debugging. | ||
1134 | { | ||
1135 | echo | ||
1136 | |||
1137 | cat <<\_ASBOX | ||
1138 | ## ---------------- ## | ||
1139 | ## Cache variables. ## | ||
1140 | ## ---------------- ## | ||
1141 | _ASBOX | ||
1142 | echo | ||
1143 | # The following way of writing the cache mishandles newlines in values, | ||
1144 | { | ||
1145 | (set) 2>&1 | | ||
1146 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1147 | *ac_space=\ *) | ||
1148 | sed -n \ | ||
1149 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1150 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1151 | ;; | ||
1152 | *) | ||
1153 | sed -n \ | ||
1154 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1155 | ;; | ||
1156 | esac; | ||
1157 | } | ||
1158 | echo | ||
1159 | |||
1160 | cat <<\_ASBOX | ||
1161 | ## ----------------- ## | ||
1162 | ## Output variables. ## | ||
1163 | ## ----------------- ## | ||
1164 | _ASBOX | ||
1165 | echo | ||
1166 | for ac_var in $ac_subst_vars | ||
1167 | do | ||
1168 | eval ac_val=$`echo $ac_var` | ||
1169 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1170 | done | sort | ||
1171 | echo | ||
1172 | |||
1173 | if test -n "$ac_subst_files"; then | ||
1174 | cat <<\_ASBOX | ||
1175 | ## ------------- ## | ||
1176 | ## Output files. ## | ||
1177 | ## ------------- ## | ||
1178 | _ASBOX | ||
1179 | echo | ||
1180 | for ac_var in $ac_subst_files | ||
1181 | do | ||
1182 | eval ac_val=$`echo $ac_var` | ||
1183 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1184 | done | sort | ||
1185 | echo | ||
1186 | fi | ||
1187 | |||
1188 | if test -s confdefs.h; then | ||
1189 | cat <<\_ASBOX | ||
1190 | ## ----------- ## | ||
1191 | ## confdefs.h. ## | ||
1192 | ## ----------- ## | ||
1193 | _ASBOX | ||
1194 | echo | ||
1195 | sed "/^$/d" confdefs.h | sort | ||
1196 | echo | ||
1197 | fi | ||
1198 | test "$ac_signal" != 0 && | ||
1199 | echo "$as_me: caught signal $ac_signal" | ||
1200 | echo "$as_me: exit $exit_status" | ||
1201 | } >&5 | ||
1202 | rm -f core *.core && | ||
1203 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1204 | exit $exit_status | ||
1205 | ' 0 | ||
1206 | for ac_signal in 1 2 13 15; do | ||
1207 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1208 | done | ||
1209 | ac_signal=0 | ||
1210 | |||
1211 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1212 | rm -rf conftest* confdefs.h | ||
1213 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1214 | echo >confdefs.h | ||
1215 | |||
1216 | # Predefined preprocessor variables. | ||
1217 | |||
1218 | cat >>confdefs.h <<_ACEOF | ||
1219 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1220 | _ACEOF | ||
1221 | |||
1222 | |||
1223 | cat >>confdefs.h <<_ACEOF | ||
1224 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1225 | _ACEOF | ||
1226 | |||
1227 | |||
1228 | cat >>confdefs.h <<_ACEOF | ||
1229 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1230 | _ACEOF | ||
1231 | |||
1232 | |||
1233 | cat >>confdefs.h <<_ACEOF | ||
1234 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1235 | _ACEOF | ||
1236 | |||
1237 | |||
1238 | cat >>confdefs.h <<_ACEOF | ||
1239 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1240 | _ACEOF | ||
1241 | |||
1242 | |||
1243 | # Let the site file select an alternate cache file if it wants to. | ||
1244 | # Prefer explicitly selected file to automatically selected ones. | ||
1245 | if test -z "$CONFIG_SITE"; then | ||
1246 | if test "x$prefix" != xNONE; then | ||
1247 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1248 | else | ||
1249 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1250 | fi | ||
1251 | fi | ||
1252 | for ac_site_file in $CONFIG_SITE; do | ||
1253 | if test -r "$ac_site_file"; then | ||
1254 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1255 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1256 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1257 | . "$ac_site_file" | ||
1258 | fi | ||
1259 | done | ||
1260 | |||
1261 | if test -r "$cache_file"; then | ||
1262 | # Some versions of bash will fail to source /dev/null (special | ||
1263 | # files actually), so we avoid doing that. | ||
1264 | if test -f "$cache_file"; then | ||
1265 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1266 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1267 | case $cache_file in | ||
1268 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1269 | *) . ./$cache_file;; | ||
1270 | esac | ||
1271 | fi | ||
1272 | else | ||
1273 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1274 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1275 | >$cache_file | ||
1276 | fi | ||
1277 | |||
1278 | # Check that the precious variables saved in the cache have kept the same | ||
1279 | # value. | ||
1280 | ac_cache_corrupted=false | ||
1281 | for ac_var in `(set) 2>&1 | | ||
1282 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1283 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1284 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1285 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1286 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1287 | case $ac_old_set,$ac_new_set in | ||
1288 | set,) | ||
1289 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1290 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1291 | ac_cache_corrupted=: ;; | ||
1292 | ,set) | ||
1293 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1294 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1295 | ac_cache_corrupted=: ;; | ||
1296 | ,);; | ||
1297 | *) | ||
1298 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1299 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1300 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1301 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1302 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1303 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1304 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1305 | ac_cache_corrupted=: | ||
1306 | fi;; | ||
1307 | esac | ||
1308 | # Pass precious variables to config.status. | ||
1309 | if test "$ac_new_set" = set; then | ||
1310 | case $ac_new_val in | ||
1311 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1312 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1313 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1314 | esac | ||
1315 | case " $ac_configure_args " in | ||
1316 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1317 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1318 | esac | ||
1319 | fi | ||
1320 | done | ||
1321 | if $ac_cache_corrupted; then | ||
1322 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1323 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1324 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1325 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1326 | { (exit 1); exit 1; }; } | ||
1327 | fi | ||
1328 | |||
1329 | ac_ext=c | ||
1330 | ac_cpp='$CPP $CPPFLAGS' | ||
1331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1334 | |||
1335 | |||
1336 | |||
1337 | |||
1338 | |||
1339 | |||
1340 | |||
1341 | |||
1342 | |||
1343 | |||
1344 | |||
1345 | |||
1346 | |||
1347 | |||
1348 | |||
1349 | |||
1350 | |||
1351 | |||
1352 | |||
1353 | |||
1354 | |||
1355 | |||
1356 | |||
1357 | |||
1358 | |||
1359 | |||
1360 | |||
1361 | |||
1362 | |||
1363 | |||
1364 | ac_config_headers="$ac_config_headers config.h" | ||
1365 | |||
1366 | ac_ext=c | ||
1367 | ac_cpp='$CPP $CPPFLAGS' | ||
1368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1371 | if test -n "$ac_tool_prefix"; then | ||
1372 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1373 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1376 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1378 | else | ||
1379 | if test -n "$CC"; then | ||
1380 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1381 | else | ||
1382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1383 | for as_dir in $PATH | ||
1384 | do | ||
1385 | IFS=$as_save_IFS | ||
1386 | test -z "$as_dir" && as_dir=. | ||
1387 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1389 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1391 | break 2 | ||
1392 | fi | ||
1393 | done | ||
1394 | done | ||
1395 | |||
1396 | fi | ||
1397 | fi | ||
1398 | CC=$ac_cv_prog_CC | ||
1399 | if test -n "$CC"; then | ||
1400 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1401 | echo "${ECHO_T}$CC" >&6 | ||
1402 | else | ||
1403 | echo "$as_me:$LINENO: result: no" >&5 | ||
1404 | echo "${ECHO_T}no" >&6 | ||
1405 | fi | ||
1406 | |||
1407 | fi | ||
1408 | if test -z "$ac_cv_prog_CC"; then | ||
1409 | ac_ct_CC=$CC | ||
1410 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1411 | set dummy gcc; ac_word=$2 | ||
1412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1414 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1416 | else | ||
1417 | if test -n "$ac_ct_CC"; then | ||
1418 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1419 | else | ||
1420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1421 | for as_dir in $PATH | ||
1422 | do | ||
1423 | IFS=$as_save_IFS | ||
1424 | test -z "$as_dir" && as_dir=. | ||
1425 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1427 | ac_cv_prog_ac_ct_CC="gcc" | ||
1428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1429 | break 2 | ||
1430 | fi | ||
1431 | done | ||
1432 | done | ||
1433 | |||
1434 | fi | ||
1435 | fi | ||
1436 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1437 | if test -n "$ac_ct_CC"; then | ||
1438 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1439 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1440 | else | ||
1441 | echo "$as_me:$LINENO: result: no" >&5 | ||
1442 | echo "${ECHO_T}no" >&6 | ||
1443 | fi | ||
1444 | |||
1445 | CC=$ac_ct_CC | ||
1446 | else | ||
1447 | CC="$ac_cv_prog_CC" | ||
1448 | fi | ||
1449 | |||
1450 | if test -z "$CC"; then | ||
1451 | if test -n "$ac_tool_prefix"; then | ||
1452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1453 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1454 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1456 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1458 | else | ||
1459 | if test -n "$CC"; then | ||
1460 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1461 | else | ||
1462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1463 | for as_dir in $PATH | ||
1464 | do | ||
1465 | IFS=$as_save_IFS | ||
1466 | test -z "$as_dir" && as_dir=. | ||
1467 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1469 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1471 | break 2 | ||
1472 | fi | ||
1473 | done | ||
1474 | done | ||
1475 | |||
1476 | fi | ||
1477 | fi | ||
1478 | CC=$ac_cv_prog_CC | ||
1479 | if test -n "$CC"; then | ||
1480 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1481 | echo "${ECHO_T}$CC" >&6 | ||
1482 | else | ||
1483 | echo "$as_me:$LINENO: result: no" >&5 | ||
1484 | echo "${ECHO_T}no" >&6 | ||
1485 | fi | ||
1486 | |||
1487 | fi | ||
1488 | if test -z "$ac_cv_prog_CC"; then | ||
1489 | ac_ct_CC=$CC | ||
1490 | # Extract the first word of "cc", so it can be a program name with args. | ||
1491 | set dummy cc; ac_word=$2 | ||
1492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1494 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1496 | else | ||
1497 | if test -n "$ac_ct_CC"; then | ||
1498 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1499 | else | ||
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1501 | for as_dir in $PATH | ||
1502 | do | ||
1503 | IFS=$as_save_IFS | ||
1504 | test -z "$as_dir" && as_dir=. | ||
1505 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1507 | ac_cv_prog_ac_ct_CC="cc" | ||
1508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1509 | break 2 | ||
1510 | fi | ||
1511 | done | ||
1512 | done | ||
1513 | |||
1514 | fi | ||
1515 | fi | ||
1516 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1517 | if test -n "$ac_ct_CC"; then | ||
1518 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1519 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1520 | else | ||
1521 | echo "$as_me:$LINENO: result: no" >&5 | ||
1522 | echo "${ECHO_T}no" >&6 | ||
1523 | fi | ||
1524 | |||
1525 | CC=$ac_ct_CC | ||
1526 | else | ||
1527 | CC="$ac_cv_prog_CC" | ||
1528 | fi | ||
1529 | |||
1530 | fi | ||
1531 | if test -z "$CC"; then | ||
1532 | # Extract the first word of "cc", so it can be a program name with args. | ||
1533 | set dummy cc; ac_word=$2 | ||
1534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1536 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1538 | else | ||
1539 | if test -n "$CC"; then | ||
1540 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1541 | else | ||
1542 | ac_prog_rejected=no | ||
1543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1544 | for as_dir in $PATH | ||
1545 | do | ||
1546 | IFS=$as_save_IFS | ||
1547 | test -z "$as_dir" && as_dir=. | ||
1548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1550 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1551 | ac_prog_rejected=yes | ||
1552 | continue | ||
1553 | fi | ||
1554 | ac_cv_prog_CC="cc" | ||
1555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1556 | break 2 | ||
1557 | fi | ||
1558 | done | ||
1559 | done | ||
1560 | |||
1561 | if test $ac_prog_rejected = yes; then | ||
1562 | # We found a bogon in the path, so make sure we never use it. | ||
1563 | set dummy $ac_cv_prog_CC | ||
1564 | shift | ||
1565 | if test $# != 0; then | ||
1566 | # We chose a different compiler from the bogus one. | ||
1567 | # However, it has the same basename, so the bogon will be chosen | ||
1568 | # first if we set CC to just the basename; use the full file name. | ||
1569 | shift | ||
1570 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1571 | fi | ||
1572 | fi | ||
1573 | fi | ||
1574 | fi | ||
1575 | CC=$ac_cv_prog_CC | ||
1576 | if test -n "$CC"; then | ||
1577 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1578 | echo "${ECHO_T}$CC" >&6 | ||
1579 | else | ||
1580 | echo "$as_me:$LINENO: result: no" >&5 | ||
1581 | echo "${ECHO_T}no" >&6 | ||
1582 | fi | ||
1583 | |||
1584 | fi | ||
1585 | if test -z "$CC"; then | ||
1586 | if test -n "$ac_tool_prefix"; then | ||
1587 | for ac_prog in cl | ||
1588 | do | ||
1589 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1590 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1593 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1595 | else | ||
1596 | if test -n "$CC"; then | ||
1597 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1598 | else | ||
1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1600 | for as_dir in $PATH | ||
1601 | do | ||
1602 | IFS=$as_save_IFS | ||
1603 | test -z "$as_dir" && as_dir=. | ||
1604 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1606 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1608 | break 2 | ||
1609 | fi | ||
1610 | done | ||
1611 | done | ||
1612 | |||
1613 | fi | ||
1614 | fi | ||
1615 | CC=$ac_cv_prog_CC | ||
1616 | if test -n "$CC"; then | ||
1617 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1618 | echo "${ECHO_T}$CC" >&6 | ||
1619 | else | ||
1620 | echo "$as_me:$LINENO: result: no" >&5 | ||
1621 | echo "${ECHO_T}no" >&6 | ||
1622 | fi | ||
1623 | |||
1624 | test -n "$CC" && break | ||
1625 | done | ||
1626 | fi | ||
1627 | if test -z "$CC"; then | ||
1628 | ac_ct_CC=$CC | ||
1629 | for ac_prog in cl | ||
1630 | do | ||
1631 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1632 | set dummy $ac_prog; ac_word=$2 | ||
1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1637 | else | ||
1638 | if test -n "$ac_ct_CC"; then | ||
1639 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1640 | else | ||
1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1642 | for as_dir in $PATH | ||
1643 | do | ||
1644 | IFS=$as_save_IFS | ||
1645 | test -z "$as_dir" && as_dir=. | ||
1646 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1648 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1650 | break 2 | ||
1651 | fi | ||
1652 | done | ||
1653 | done | ||
1654 | |||
1655 | fi | ||
1656 | fi | ||
1657 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1658 | if test -n "$ac_ct_CC"; then | ||
1659 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1660 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1661 | else | ||
1662 | echo "$as_me:$LINENO: result: no" >&5 | ||
1663 | echo "${ECHO_T}no" >&6 | ||
1664 | fi | ||
1665 | |||
1666 | test -n "$ac_ct_CC" && break | ||
1667 | done | ||
1668 | |||
1669 | CC=$ac_ct_CC | ||
1670 | fi | ||
1671 | |||
1672 | fi | ||
1673 | |||
1674 | |||
1675 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
1676 | See \`config.log' for more details." >&5 | ||
1677 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
1678 | See \`config.log' for more details." >&2;} | ||
1679 | { (exit 1); exit 1; }; } | ||
1680 | |||
1681 | # Provide some information about the compiler. | ||
1682 | echo "$as_me:$LINENO:" \ | ||
1683 | "checking for C compiler version" >&5 | ||
1684 | ac_compiler=`set X $ac_compile; echo $2` | ||
1685 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1686 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1687 | ac_status=$? | ||
1688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1689 | (exit $ac_status); } | ||
1690 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1691 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1692 | ac_status=$? | ||
1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1694 | (exit $ac_status); } | ||
1695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1696 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1697 | ac_status=$? | ||
1698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1699 | (exit $ac_status); } | ||
1700 | |||
1701 | cat >conftest.$ac_ext <<_ACEOF | ||
1702 | /* confdefs.h. */ | ||
1703 | _ACEOF | ||
1704 | cat confdefs.h >>conftest.$ac_ext | ||
1705 | cat >>conftest.$ac_ext <<_ACEOF | ||
1706 | /* end confdefs.h. */ | ||
1707 | |||
1708 | int | ||
1709 | main () | ||
1710 | { | ||
1711 | |||
1712 | ; | ||
1713 | return 0; | ||
1714 | } | ||
1715 | _ACEOF | ||
1716 | ac_clean_files_save=$ac_clean_files | ||
1717 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
1718 | # Try to create an executable without -o first, disregard a.out. | ||
1719 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1720 | # of exeext. | ||
1721 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
1722 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
1723 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1724 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1725 | (eval $ac_link_default) 2>&5 | ||
1726 | ac_status=$? | ||
1727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1728 | (exit $ac_status); }; then | ||
1729 | # Find the output, starting from the most likely. This scheme is | ||
1730 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1731 | # resort. | ||
1732 | |||
1733 | # Be careful to initialize this variable, since it used to be cached. | ||
1734 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1735 | ac_cv_exeext= | ||
1736 | # b.out is created by i960 compilers. | ||
1737 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
1738 | do | ||
1739 | test -f "$ac_file" || continue | ||
1740 | case $ac_file in | ||
1741 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
1742 | ;; | ||
1743 | conftest.$ac_ext ) | ||
1744 | # This is the source file. | ||
1745 | ;; | ||
1746 | [ab].out ) | ||
1747 | # We found the default executable, but exeext='' is most | ||
1748 | # certainly right. | ||
1749 | break;; | ||
1750 | *.* ) | ||
1751 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1752 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
1753 | # but it would be cool to find out if it's true. Does anybody | ||
1754 | # maintain Libtool? --akim. | ||
1755 | export ac_cv_exeext | ||
1756 | break;; | ||
1757 | * ) | ||
1758 | break;; | ||
1759 | esac | ||
1760 | done | ||
1761 | else | ||
1762 | echo "$as_me: failed program was:" >&5 | ||
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1764 | |||
1765 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
1766 | See \`config.log' for more details." >&5 | ||
1767 | echo "$as_me: error: C compiler cannot create executables | ||
1768 | See \`config.log' for more details." >&2;} | ||
1769 | { (exit 77); exit 77; }; } | ||
1770 | fi | ||
1771 | |||
1772 | ac_exeext=$ac_cv_exeext | ||
1773 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1774 | echo "${ECHO_T}$ac_file" >&6 | ||
1775 | |||
1776 | # Check the compiler produces executables we can run. If not, either | ||
1777 | # the compiler is broken, or we cross compile. | ||
1778 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1779 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1780 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1781 | # If not cross compiling, check that we can run a simple program. | ||
1782 | if test "$cross_compiling" != yes; then | ||
1783 | if { ac_try='./$ac_file' | ||
1784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1785 | (eval $ac_try) 2>&5 | ||
1786 | ac_status=$? | ||
1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1788 | (exit $ac_status); }; }; then | ||
1789 | cross_compiling=no | ||
1790 | else | ||
1791 | if test "$cross_compiling" = maybe; then | ||
1792 | cross_compiling=yes | ||
1793 | else | ||
1794 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1795 | If you meant to cross compile, use \`--host'. | ||
1796 | See \`config.log' for more details." >&5 | ||
1797 | echo "$as_me: error: cannot run C compiled programs. | ||
1798 | If you meant to cross compile, use \`--host'. | ||
1799 | See \`config.log' for more details." >&2;} | ||
1800 | { (exit 1); exit 1; }; } | ||
1801 | fi | ||
1802 | fi | ||
1803 | fi | ||
1804 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1805 | echo "${ECHO_T}yes" >&6 | ||
1806 | |||
1807 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
1808 | ac_clean_files=$ac_clean_files_save | ||
1809 | # Check the compiler produces executables we can run. If not, either | ||
1810 | # the compiler is broken, or we cross compile. | ||
1811 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1812 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1813 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1814 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1815 | |||
1816 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1817 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1819 | (eval $ac_link) 2>&5 | ||
1820 | ac_status=$? | ||
1821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1822 | (exit $ac_status); }; then | ||
1823 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1824 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1825 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1826 | # `rm'. | ||
1827 | for ac_file in conftest.exe conftest conftest.*; do | ||
1828 | test -f "$ac_file" || continue | ||
1829 | case $ac_file in | ||
1830 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
1831 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1832 | export ac_cv_exeext | ||
1833 | break;; | ||
1834 | * ) break;; | ||
1835 | esac | ||
1836 | done | ||
1837 | else | ||
1838 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
1839 | See \`config.log' for more details." >&5 | ||
1840 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
1841 | See \`config.log' for more details." >&2;} | ||
1842 | { (exit 1); exit 1; }; } | ||
1843 | fi | ||
1844 | |||
1845 | rm -f conftest$ac_cv_exeext | ||
1846 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1847 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1848 | |||
1849 | rm -f conftest.$ac_ext | ||
1850 | EXEEXT=$ac_cv_exeext | ||
1851 | ac_exeext=$EXEEXT | ||
1852 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1853 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1854 | if test "${ac_cv_objext+set}" = set; then | ||
1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1856 | else | ||
1857 | cat >conftest.$ac_ext <<_ACEOF | ||
1858 | /* confdefs.h. */ | ||
1859 | _ACEOF | ||
1860 | cat confdefs.h >>conftest.$ac_ext | ||
1861 | cat >>conftest.$ac_ext <<_ACEOF | ||
1862 | /* end confdefs.h. */ | ||
1863 | |||
1864 | int | ||
1865 | main () | ||
1866 | { | ||
1867 | |||
1868 | ; | ||
1869 | return 0; | ||
1870 | } | ||
1871 | _ACEOF | ||
1872 | rm -f conftest.o conftest.obj | ||
1873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1874 | (eval $ac_compile) 2>&5 | ||
1875 | ac_status=$? | ||
1876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1877 | (exit $ac_status); }; then | ||
1878 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1879 | case $ac_file in | ||
1880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
1881 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1882 | break;; | ||
1883 | esac | ||
1884 | done | ||
1885 | else | ||
1886 | echo "$as_me: failed program was:" >&5 | ||
1887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1888 | |||
1889 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
1890 | See \`config.log' for more details." >&5 | ||
1891 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
1892 | See \`config.log' for more details." >&2;} | ||
1893 | { (exit 1); exit 1; }; } | ||
1894 | fi | ||
1895 | |||
1896 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1897 | fi | ||
1898 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1899 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1900 | OBJEXT=$ac_cv_objext | ||
1901 | ac_objext=$OBJEXT | ||
1902 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1903 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1904 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1906 | else | ||
1907 | cat >conftest.$ac_ext <<_ACEOF | ||
1908 | /* confdefs.h. */ | ||
1909 | _ACEOF | ||
1910 | cat confdefs.h >>conftest.$ac_ext | ||
1911 | cat >>conftest.$ac_ext <<_ACEOF | ||
1912 | /* end confdefs.h. */ | ||
1913 | |||
1914 | int | ||
1915 | main () | ||
1916 | { | ||
1917 | #ifndef __GNUC__ | ||
1918 | choke me | ||
1919 | #endif | ||
1920 | |||
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>conftest.er1 | ||
1928 | ac_status=$? | ||
1929 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1930 | rm -f conftest.er1 | ||
1931 | cat conftest.err >&5 | ||
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1933 | (exit $ac_status); } && | ||
1934 | { ac_try='test -z "$ac_c_werror_flag" | ||
1935 | || test ! -s conftest.err' | ||
1936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1937 | (eval $ac_try) 2>&5 | ||
1938 | ac_status=$? | ||
1939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1940 | (exit $ac_status); }; } && | ||
1941 | { ac_try='test -s conftest.$ac_objext' | ||
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1943 | (eval $ac_try) 2>&5 | ||
1944 | ac_status=$? | ||
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1946 | (exit $ac_status); }; }; then | ||
1947 | ac_compiler_gnu=yes | ||
1948 | else | ||
1949 | echo "$as_me: failed program was:" >&5 | ||
1950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1951 | |||
1952 | ac_compiler_gnu=no | ||
1953 | fi | ||
1954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1955 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1956 | |||
1957 | fi | ||
1958 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1959 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1960 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1961 | ac_test_CFLAGS=${CFLAGS+set} | ||
1962 | ac_save_CFLAGS=$CFLAGS | ||
1963 | CFLAGS="-g" | ||
1964 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1965 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1966 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1968 | else | ||
1969 | cat >conftest.$ac_ext <<_ACEOF | ||
1970 | /* confdefs.h. */ | ||
1971 | _ACEOF | ||
1972 | cat confdefs.h >>conftest.$ac_ext | ||
1973 | cat >>conftest.$ac_ext <<_ACEOF | ||
1974 | /* end confdefs.h. */ | ||
1975 | |||
1976 | int | ||
1977 | main () | ||
1978 | { | ||
1979 | |||
1980 | ; | ||
1981 | return 0; | ||
1982 | } | ||
1983 | _ACEOF | ||
1984 | rm -f conftest.$ac_objext | ||
1985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1986 | (eval $ac_compile) 2>conftest.er1 | ||
1987 | ac_status=$? | ||
1988 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1989 | rm -f conftest.er1 | ||
1990 | cat conftest.err >&5 | ||
1991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1992 | (exit $ac_status); } && | ||
1993 | { ac_try='test -z "$ac_c_werror_flag" | ||
1994 | || test ! -s conftest.err' | ||
1995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1996 | (eval $ac_try) 2>&5 | ||
1997 | ac_status=$? | ||
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1999 | (exit $ac_status); }; } && | ||
2000 | { ac_try='test -s conftest.$ac_objext' | ||
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2002 | (eval $ac_try) 2>&5 | ||
2003 | ac_status=$? | ||
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2005 | (exit $ac_status); }; }; then | ||
2006 | ac_cv_prog_cc_g=yes | ||
2007 | else | ||
2008 | echo "$as_me: failed program was:" >&5 | ||
2009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2010 | |||
2011 | ac_cv_prog_cc_g=no | ||
2012 | fi | ||
2013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2014 | fi | ||
2015 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2016 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2017 | if test "$ac_test_CFLAGS" = set; then | ||
2018 | CFLAGS=$ac_save_CFLAGS | ||
2019 | elif test $ac_cv_prog_cc_g = yes; then | ||
2020 | if test "$GCC" = yes; then | ||
2021 | CFLAGS="-g -O2" | ||
2022 | else | ||
2023 | CFLAGS="-g" | ||
2024 | fi | ||
2025 | else | ||
2026 | if test "$GCC" = yes; then | ||
2027 | CFLAGS="-O2" | ||
2028 | else | ||
2029 | CFLAGS= | ||
2030 | fi | ||
2031 | fi | ||
2032 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2033 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2034 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2036 | else | ||
2037 | ac_cv_prog_cc_stdc=no | ||
2038 | ac_save_CC=$CC | ||
2039 | cat >conftest.$ac_ext <<_ACEOF | ||
2040 | /* confdefs.h. */ | ||
2041 | _ACEOF | ||
2042 | cat confdefs.h >>conftest.$ac_ext | ||
2043 | cat >>conftest.$ac_ext <<_ACEOF | ||
2044 | /* end confdefs.h. */ | ||
2045 | #include <stdarg.h> | ||
2046 | #include <stdio.h> | ||
2047 | #include <sys/types.h> | ||
2048 | #include <sys/stat.h> | ||
2049 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2050 | struct buf { int x; }; | ||
2051 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2052 | static char *e (p, i) | ||
2053 | char **p; | ||
2054 | int i; | ||
2055 | { | ||
2056 | return p[i]; | ||
2057 | } | ||
2058 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2059 | { | ||
2060 | char *s; | ||
2061 | va_list v; | ||
2062 | va_start (v,p); | ||
2063 | s = g (p, va_arg (v,int)); | ||
2064 | va_end (v); | ||
2065 | return s; | ||
2066 | } | ||
2067 | |||
2068 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2069 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2070 | These don't provoke an error unfortunately, instead are silently treated | ||
2071 | as 'x'. The following induces an error, until -std1 is added to get | ||
2072 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2073 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2074 | that's true only with -std1. */ | ||
2075 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2076 | |||
2077 | int test (int i, double x); | ||
2078 | struct s1 {int (*f) (int a);}; | ||
2079 | struct s2 {int (*f) (double a);}; | ||
2080 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2081 | int argc; | ||
2082 | char **argv; | ||
2083 | int | ||
2084 | main () | ||
2085 | { | ||
2086 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2087 | ; | ||
2088 | return 0; | ||
2089 | } | ||
2090 | _ACEOF | ||
2091 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2092 | # breaks some systems' header files. | ||
2093 | # AIX -qlanglvl=ansi | ||
2094 | # Ultrix and OSF/1 -std1 | ||
2095 | # HP-UX 10.20 and later -Ae | ||
2096 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2097 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2098 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2099 | do | ||
2100 | CC="$ac_save_CC $ac_arg" | ||
2101 | rm -f conftest.$ac_objext | ||
2102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2103 | (eval $ac_compile) 2>conftest.er1 | ||
2104 | ac_status=$? | ||
2105 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2106 | rm -f conftest.er1 | ||
2107 | cat conftest.err >&5 | ||
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2109 | (exit $ac_status); } && | ||
2110 | { ac_try='test -z "$ac_c_werror_flag" | ||
2111 | || test ! -s conftest.err' | ||
2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2113 | (eval $ac_try) 2>&5 | ||
2114 | ac_status=$? | ||
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2116 | (exit $ac_status); }; } && | ||
2117 | { ac_try='test -s conftest.$ac_objext' | ||
2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2119 | (eval $ac_try) 2>&5 | ||
2120 | ac_status=$? | ||
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2122 | (exit $ac_status); }; }; then | ||
2123 | ac_cv_prog_cc_stdc=$ac_arg | ||
2124 | break | ||
2125 | else | ||
2126 | echo "$as_me: failed program was:" >&5 | ||
2127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2128 | |||
2129 | fi | ||
2130 | rm -f conftest.err conftest.$ac_objext | ||
2131 | done | ||
2132 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2133 | CC=$ac_save_CC | ||
2134 | |||
2135 | fi | ||
2136 | |||
2137 | case "x$ac_cv_prog_cc_stdc" in | ||
2138 | x|xno) | ||
2139 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2140 | echo "${ECHO_T}none needed" >&6 ;; | ||
2141 | *) | ||
2142 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2143 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2144 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2145 | esac | ||
2146 | |||
2147 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2148 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2149 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2150 | # the declaration of exit, since it's the most demanding environment. | ||
2151 | cat >conftest.$ac_ext <<_ACEOF | ||
2152 | #ifndef __cplusplus | ||
2153 | choke me | ||
2154 | #endif | ||
2155 | _ACEOF | ||
2156 | rm -f conftest.$ac_objext | ||
2157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2158 | (eval $ac_compile) 2>conftest.er1 | ||
2159 | ac_status=$? | ||
2160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2161 | rm -f conftest.er1 | ||
2162 | cat conftest.err >&5 | ||
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2164 | (exit $ac_status); } && | ||
2165 | { ac_try='test -z "$ac_c_werror_flag" | ||
2166 | || test ! -s conftest.err' | ||
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2168 | (eval $ac_try) 2>&5 | ||
2169 | ac_status=$? | ||
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2171 | (exit $ac_status); }; } && | ||
2172 | { ac_try='test -s conftest.$ac_objext' | ||
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2174 | (eval $ac_try) 2>&5 | ||
2175 | ac_status=$? | ||
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2177 | (exit $ac_status); }; }; then | ||
2178 | for ac_declaration in \ | ||
2179 | '' \ | ||
2180 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2181 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2182 | 'extern "C" void exit (int) throw ();' \ | ||
2183 | 'extern "C" void exit (int);' \ | ||
2184 | 'void exit (int);' | ||
2185 | do | ||
2186 | cat >conftest.$ac_ext <<_ACEOF | ||
2187 | /* confdefs.h. */ | ||
2188 | _ACEOF | ||
2189 | cat confdefs.h >>conftest.$ac_ext | ||
2190 | cat >>conftest.$ac_ext <<_ACEOF | ||
2191 | /* end confdefs.h. */ | ||
2192 | $ac_declaration | ||
2193 | #include <stdlib.h> | ||
2194 | int | ||
2195 | main () | ||
2196 | { | ||
2197 | exit (42); | ||
2198 | ; | ||
2199 | return 0; | ||
2200 | } | ||
2201 | _ACEOF | ||
2202 | rm -f conftest.$ac_objext | ||
2203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2204 | (eval $ac_compile) 2>conftest.er1 | ||
2205 | ac_status=$? | ||
2206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2207 | rm -f conftest.er1 | ||
2208 | cat conftest.err >&5 | ||
2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2210 | (exit $ac_status); } && | ||
2211 | { ac_try='test -z "$ac_c_werror_flag" | ||
2212 | || test ! -s conftest.err' | ||
2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2214 | (eval $ac_try) 2>&5 | ||
2215 | ac_status=$? | ||
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2217 | (exit $ac_status); }; } && | ||
2218 | { ac_try='test -s conftest.$ac_objext' | ||
2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2220 | (eval $ac_try) 2>&5 | ||
2221 | ac_status=$? | ||
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2223 | (exit $ac_status); }; }; then | ||
2224 | : | ||
2225 | else | ||
2226 | echo "$as_me: failed program was:" >&5 | ||
2227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2228 | |||
2229 | continue | ||
2230 | fi | ||
2231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2232 | cat >conftest.$ac_ext <<_ACEOF | ||
2233 | /* confdefs.h. */ | ||
2234 | _ACEOF | ||
2235 | cat confdefs.h >>conftest.$ac_ext | ||
2236 | cat >>conftest.$ac_ext <<_ACEOF | ||
2237 | /* end confdefs.h. */ | ||
2238 | $ac_declaration | ||
2239 | int | ||
2240 | main () | ||
2241 | { | ||
2242 | exit (42); | ||
2243 | ; | ||
2244 | return 0; | ||
2245 | } | ||
2246 | _ACEOF | ||
2247 | rm -f conftest.$ac_objext | ||
2248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2249 | (eval $ac_compile) 2>conftest.er1 | ||
2250 | ac_status=$? | ||
2251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2252 | rm -f conftest.er1 | ||
2253 | cat conftest.err >&5 | ||
2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2255 | (exit $ac_status); } && | ||
2256 | { ac_try='test -z "$ac_c_werror_flag" | ||
2257 | || test ! -s conftest.err' | ||
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2259 | (eval $ac_try) 2>&5 | ||
2260 | ac_status=$? | ||
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2262 | (exit $ac_status); }; } && | ||
2263 | { ac_try='test -s conftest.$ac_objext' | ||
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2265 | (eval $ac_try) 2>&5 | ||
2266 | ac_status=$? | ||
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2268 | (exit $ac_status); }; }; then | ||
2269 | break | ||
2270 | else | ||
2271 | echo "$as_me: failed program was:" >&5 | ||
2272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2273 | |||
2274 | fi | ||
2275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2276 | done | ||
2277 | rm -f conftest* | ||
2278 | if test -n "$ac_declaration"; then | ||
2279 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2280 | echo $ac_declaration >>confdefs.h | ||
2281 | echo '#endif' >>confdefs.h | ||
2282 | fi | ||
2283 | |||
2284 | else | ||
2285 | echo "$as_me: failed program was:" >&5 | ||
2286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2287 | |||
2288 | fi | ||
2289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2290 | ac_ext=c | ||
2291 | ac_cpp='$CPP $CPPFLAGS' | ||
2292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2295 | |||
2296 | ac_aux_dir= | ||
2297 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2298 | if test -f $ac_dir/install-sh; then | ||
2299 | ac_aux_dir=$ac_dir | ||
2300 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2301 | break | ||
2302 | elif test -f $ac_dir/install.sh; then | ||
2303 | ac_aux_dir=$ac_dir | ||
2304 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2305 | break | ||
2306 | elif test -f $ac_dir/shtool; then | ||
2307 | ac_aux_dir=$ac_dir | ||
2308 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2309 | break | ||
2310 | fi | ||
2311 | done | ||
2312 | if test -z "$ac_aux_dir"; then | ||
2313 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2314 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2315 | { (exit 1); exit 1; }; } | ||
2316 | fi | ||
2317 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2318 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2319 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2320 | |||
2321 | # Make sure we can run config.sub. | ||
2322 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2323 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2324 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2325 | { (exit 1); exit 1; }; } | ||
2326 | |||
2327 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2328 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2329 | if test "${ac_cv_build+set}" = set; then | ||
2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2331 | else | ||
2332 | ac_cv_build_alias=$build_alias | ||
2333 | test -z "$ac_cv_build_alias" && | ||
2334 | ac_cv_build_alias=`$ac_config_guess` | ||
2335 | test -z "$ac_cv_build_alias" && | ||
2336 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2337 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2338 | { (exit 1); exit 1; }; } | ||
2339 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2340 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2341 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2342 | { (exit 1); exit 1; }; } | ||
2343 | |||
2344 | fi | ||
2345 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2346 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2347 | build=$ac_cv_build | ||
2348 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2349 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2350 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2351 | |||
2352 | |||
2353 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2354 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2355 | if test "${ac_cv_host+set}" = set; then | ||
2356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2357 | else | ||
2358 | ac_cv_host_alias=$host_alias | ||
2359 | test -z "$ac_cv_host_alias" && | ||
2360 | ac_cv_host_alias=$ac_cv_build_alias | ||
2361 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2362 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2363 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2364 | { (exit 1); exit 1; }; } | ||
2365 | |||
2366 | fi | ||
2367 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2368 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2369 | host=$ac_cv_host | ||
2370 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2371 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2372 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2373 | |||
2374 | |||
2375 | |||
2376 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2377 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2378 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2380 | else | ||
2381 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2382 | cat >conftest.$ac_ext <<_ACEOF | ||
2383 | /* confdefs.h. */ | ||
2384 | _ACEOF | ||
2385 | cat confdefs.h >>conftest.$ac_ext | ||
2386 | cat >>conftest.$ac_ext <<_ACEOF | ||
2387 | /* end confdefs.h. */ | ||
2388 | #include <sys/types.h> | ||
2389 | #include <sys/param.h> | ||
2390 | |||
2391 | int | ||
2392 | main () | ||
2393 | { | ||
2394 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2395 | bogus endian macros | ||
2396 | #endif | ||
2397 | |||
2398 | ; | ||
2399 | return 0; | ||
2400 | } | ||
2401 | _ACEOF | ||
2402 | rm -f conftest.$ac_objext | ||
2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2404 | (eval $ac_compile) 2>conftest.er1 | ||
2405 | ac_status=$? | ||
2406 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2407 | rm -f conftest.er1 | ||
2408 | cat conftest.err >&5 | ||
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2410 | (exit $ac_status); } && | ||
2411 | { ac_try='test -z "$ac_c_werror_flag" | ||
2412 | || test ! -s conftest.err' | ||
2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2414 | (eval $ac_try) 2>&5 | ||
2415 | ac_status=$? | ||
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2417 | (exit $ac_status); }; } && | ||
2418 | { ac_try='test -s conftest.$ac_objext' | ||
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2420 | (eval $ac_try) 2>&5 | ||
2421 | ac_status=$? | ||
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2423 | (exit $ac_status); }; }; then | ||
2424 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2425 | cat >conftest.$ac_ext <<_ACEOF | ||
2426 | /* confdefs.h. */ | ||
2427 | _ACEOF | ||
2428 | cat confdefs.h >>conftest.$ac_ext | ||
2429 | cat >>conftest.$ac_ext <<_ACEOF | ||
2430 | /* end confdefs.h. */ | ||
2431 | #include <sys/types.h> | ||
2432 | #include <sys/param.h> | ||
2433 | |||
2434 | int | ||
2435 | main () | ||
2436 | { | ||
2437 | #if BYTE_ORDER != BIG_ENDIAN | ||
2438 | not big endian | ||
2439 | #endif | ||
2440 | |||
2441 | ; | ||
2442 | return 0; | ||
2443 | } | ||
2444 | _ACEOF | ||
2445 | rm -f conftest.$ac_objext | ||
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2447 | (eval $ac_compile) 2>conftest.er1 | ||
2448 | ac_status=$? | ||
2449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2450 | rm -f conftest.er1 | ||
2451 | cat conftest.err >&5 | ||
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2453 | (exit $ac_status); } && | ||
2454 | { ac_try='test -z "$ac_c_werror_flag" | ||
2455 | || test ! -s conftest.err' | ||
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2457 | (eval $ac_try) 2>&5 | ||
2458 | ac_status=$? | ||
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2460 | (exit $ac_status); }; } && | ||
2461 | { ac_try='test -s conftest.$ac_objext' | ||
2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2463 | (eval $ac_try) 2>&5 | ||
2464 | ac_status=$? | ||
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2466 | (exit $ac_status); }; }; then | ||
2467 | ac_cv_c_bigendian=yes | ||
2468 | else | ||
2469 | echo "$as_me: failed program was:" >&5 | ||
2470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2471 | |||
2472 | ac_cv_c_bigendian=no | ||
2473 | fi | ||
2474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2475 | else | ||
2476 | echo "$as_me: failed program was:" >&5 | ||
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2478 | |||
2479 | # It does not; compile a test program. | ||
2480 | if test "$cross_compiling" = yes; then | ||
2481 | # try to guess the endianness by grepping values into an object file | ||
2482 | ac_cv_c_bigendian=unknown | ||
2483 | cat >conftest.$ac_ext <<_ACEOF | ||
2484 | /* confdefs.h. */ | ||
2485 | _ACEOF | ||
2486 | cat confdefs.h >>conftest.$ac_ext | ||
2487 | cat >>conftest.$ac_ext <<_ACEOF | ||
2488 | /* end confdefs.h. */ | ||
2489 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2490 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2491 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2492 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2493 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2494 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2495 | int | ||
2496 | main () | ||
2497 | { | ||
2498 | _ascii (); _ebcdic (); | ||
2499 | ; | ||
2500 | return 0; | ||
2501 | } | ||
2502 | _ACEOF | ||
2503 | rm -f conftest.$ac_objext | ||
2504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2505 | (eval $ac_compile) 2>conftest.er1 | ||
2506 | ac_status=$? | ||
2507 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2508 | rm -f conftest.er1 | ||
2509 | cat conftest.err >&5 | ||
2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2511 | (exit $ac_status); } && | ||
2512 | { ac_try='test -z "$ac_c_werror_flag" | ||
2513 | || test ! -s conftest.err' | ||
2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2515 | (eval $ac_try) 2>&5 | ||
2516 | ac_status=$? | ||
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2518 | (exit $ac_status); }; } && | ||
2519 | { ac_try='test -s conftest.$ac_objext' | ||
2520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2521 | (eval $ac_try) 2>&5 | ||
2522 | ac_status=$? | ||
2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2524 | (exit $ac_status); }; }; then | ||
2525 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2526 | ac_cv_c_bigendian=yes | ||
2527 | fi | ||
2528 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2529 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2530 | ac_cv_c_bigendian=no | ||
2531 | else | ||
2532 | # finding both strings is unlikely to happen, but who knows? | ||
2533 | ac_cv_c_bigendian=unknown | ||
2534 | fi | ||
2535 | fi | ||
2536 | else | ||
2537 | echo "$as_me: failed program was:" >&5 | ||
2538 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2539 | |||
2540 | fi | ||
2541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2542 | else | ||
2543 | cat >conftest.$ac_ext <<_ACEOF | ||
2544 | /* confdefs.h. */ | ||
2545 | _ACEOF | ||
2546 | cat confdefs.h >>conftest.$ac_ext | ||
2547 | cat >>conftest.$ac_ext <<_ACEOF | ||
2548 | /* end confdefs.h. */ | ||
2549 | int | ||
2550 | main () | ||
2551 | { | ||
2552 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2553 | union | ||
2554 | { | ||
2555 | long l; | ||
2556 | char c[sizeof (long)]; | ||
2557 | } u; | ||
2558 | u.l = 1; | ||
2559 | exit (u.c[sizeof (long) - 1] == 1); | ||
2560 | } | ||
2561 | _ACEOF | ||
2562 | rm -f conftest$ac_exeext | ||
2563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2564 | (eval $ac_link) 2>&5 | ||
2565 | ac_status=$? | ||
2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2569 | (eval $ac_try) 2>&5 | ||
2570 | ac_status=$? | ||
2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2572 | (exit $ac_status); }; }; then | ||
2573 | ac_cv_c_bigendian=no | ||
2574 | else | ||
2575 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2576 | echo "$as_me: failed program was:" >&5 | ||
2577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2578 | |||
2579 | ( exit $ac_status ) | ||
2580 | ac_cv_c_bigendian=yes | ||
2581 | fi | ||
2582 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2583 | fi | ||
2584 | fi | ||
2585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2586 | fi | ||
2587 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2588 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2589 | case $ac_cv_c_bigendian in | ||
2590 | yes) | ||
2591 | |||
2592 | cat >>confdefs.h <<\_ACEOF | ||
2593 | #define WORDS_BIGENDIAN 1 | ||
2594 | _ACEOF | ||
2595 | ;; | ||
2596 | no) | ||
2597 | ;; | ||
2598 | *) | ||
2599 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
2600 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2601 | echo "$as_me: error: unknown endianness | ||
2602 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2603 | { (exit 1); exit 1; }; } ;; | ||
2604 | esac | ||
2605 | |||
2606 | |||
2607 | # Checks for programs. | ||
2608 | for ac_prog in gawk mawk nawk awk | ||
2609 | do | ||
2610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2611 | set dummy $ac_prog; ac_word=$2 | ||
2612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2614 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2616 | else | ||
2617 | if test -n "$AWK"; then | ||
2618 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2619 | else | ||
2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2621 | for as_dir in $PATH | ||
2622 | do | ||
2623 | IFS=$as_save_IFS | ||
2624 | test -z "$as_dir" && as_dir=. | ||
2625 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2627 | ac_cv_prog_AWK="$ac_prog" | ||
2628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2629 | break 2 | ||
2630 | fi | ||
2631 | done | ||
2632 | done | ||
2633 | |||
2634 | fi | ||
2635 | fi | ||
2636 | AWK=$ac_cv_prog_AWK | ||
2637 | if test -n "$AWK"; then | ||
2638 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2639 | echo "${ECHO_T}$AWK" >&6 | ||
2640 | else | ||
2641 | echo "$as_me:$LINENO: result: no" >&5 | ||
2642 | echo "${ECHO_T}no" >&6 | ||
2643 | fi | ||
2644 | |||
2645 | test -n "$AWK" && break | ||
2646 | done | ||
2647 | |||
2648 | ac_ext=c | ||
2649 | ac_cpp='$CPP $CPPFLAGS' | ||
2650 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2651 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2652 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2653 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2654 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2655 | # On Suns, sometimes $CPP names a directory. | ||
2656 | if test -n "$CPP" && test -d "$CPP"; then | ||
2657 | CPP= | ||
2658 | fi | ||
2659 | if test -z "$CPP"; then | ||
2660 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2662 | else | ||
2663 | # Double quotes because CPP needs to be expanded | ||
2664 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2665 | do | ||
2666 | ac_preproc_ok=false | ||
2667 | for ac_c_preproc_warn_flag in '' yes | ||
2668 | do | ||
2669 | # Use a header file that comes with gcc, so configuring glibc | ||
2670 | # with a fresh cross-compiler works. | ||
2671 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2672 | # <limits.h> exists even on freestanding compilers. | ||
2673 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2674 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2675 | cat >conftest.$ac_ext <<_ACEOF | ||
2676 | /* confdefs.h. */ | ||
2677 | _ACEOF | ||
2678 | cat confdefs.h >>conftest.$ac_ext | ||
2679 | cat >>conftest.$ac_ext <<_ACEOF | ||
2680 | /* end confdefs.h. */ | ||
2681 | #ifdef __STDC__ | ||
2682 | # include <limits.h> | ||
2683 | #else | ||
2684 | # include <assert.h> | ||
2685 | #endif | ||
2686 | Syntax error | ||
2687 | _ACEOF | ||
2688 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2689 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2690 | ac_status=$? | ||
2691 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2692 | rm -f conftest.er1 | ||
2693 | cat conftest.err >&5 | ||
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2695 | (exit $ac_status); } >/dev/null; then | ||
2696 | if test -s conftest.err; then | ||
2697 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2698 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2699 | else | ||
2700 | ac_cpp_err= | ||
2701 | fi | ||
2702 | else | ||
2703 | ac_cpp_err=yes | ||
2704 | fi | ||
2705 | if test -z "$ac_cpp_err"; then | ||
2706 | : | ||
2707 | else | ||
2708 | echo "$as_me: failed program was:" >&5 | ||
2709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2710 | |||
2711 | # Broken: fails on valid input. | ||
2712 | continue | ||
2713 | fi | ||
2714 | rm -f conftest.err conftest.$ac_ext | ||
2715 | |||
2716 | # OK, works on sane cases. Now check whether non-existent headers | ||
2717 | # can be detected and how. | ||
2718 | cat >conftest.$ac_ext <<_ACEOF | ||
2719 | /* confdefs.h. */ | ||
2720 | _ACEOF | ||
2721 | cat confdefs.h >>conftest.$ac_ext | ||
2722 | cat >>conftest.$ac_ext <<_ACEOF | ||
2723 | /* end confdefs.h. */ | ||
2724 | #include <ac_nonexistent.h> | ||
2725 | _ACEOF | ||
2726 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2727 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2728 | ac_status=$? | ||
2729 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2730 | rm -f conftest.er1 | ||
2731 | cat conftest.err >&5 | ||
2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2733 | (exit $ac_status); } >/dev/null; then | ||
2734 | if test -s conftest.err; then | ||
2735 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2736 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2737 | else | ||
2738 | ac_cpp_err= | ||
2739 | fi | ||
2740 | else | ||
2741 | ac_cpp_err=yes | ||
2742 | fi | ||
2743 | if test -z "$ac_cpp_err"; then | ||
2744 | # Broken: success on invalid input. | ||
2745 | continue | ||
2746 | else | ||
2747 | echo "$as_me: failed program was:" >&5 | ||
2748 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2749 | |||
2750 | # Passes both tests. | ||
2751 | ac_preproc_ok=: | ||
2752 | break | ||
2753 | fi | ||
2754 | rm -f conftest.err conftest.$ac_ext | ||
2755 | |||
2756 | done | ||
2757 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2758 | rm -f conftest.err conftest.$ac_ext | ||
2759 | if $ac_preproc_ok; then | ||
2760 | break | ||
2761 | fi | ||
2762 | |||
2763 | done | ||
2764 | ac_cv_prog_CPP=$CPP | ||
2765 | |||
2766 | fi | ||
2767 | CPP=$ac_cv_prog_CPP | ||
2768 | else | ||
2769 | ac_cv_prog_CPP=$CPP | ||
2770 | fi | ||
2771 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2772 | echo "${ECHO_T}$CPP" >&6 | ||
2773 | ac_preproc_ok=false | ||
2774 | for ac_c_preproc_warn_flag in '' yes | ||
2775 | do | ||
2776 | # Use a header file that comes with gcc, so configuring glibc | ||
2777 | # with a fresh cross-compiler works. | ||
2778 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2779 | # <limits.h> exists even on freestanding compilers. | ||
2780 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2781 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2782 | cat >conftest.$ac_ext <<_ACEOF | ||
2783 | /* confdefs.h. */ | ||
2784 | _ACEOF | ||
2785 | cat confdefs.h >>conftest.$ac_ext | ||
2786 | cat >>conftest.$ac_ext <<_ACEOF | ||
2787 | /* end confdefs.h. */ | ||
2788 | #ifdef __STDC__ | ||
2789 | # include <limits.h> | ||
2790 | #else | ||
2791 | # include <assert.h> | ||
2792 | #endif | ||
2793 | Syntax error | ||
2794 | _ACEOF | ||
2795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2797 | ac_status=$? | ||
2798 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2799 | rm -f conftest.er1 | ||
2800 | cat conftest.err >&5 | ||
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2802 | (exit $ac_status); } >/dev/null; then | ||
2803 | if test -s conftest.err; then | ||
2804 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2806 | else | ||
2807 | ac_cpp_err= | ||
2808 | fi | ||
2809 | else | ||
2810 | ac_cpp_err=yes | ||
2811 | fi | ||
2812 | if test -z "$ac_cpp_err"; then | ||
2813 | : | ||
2814 | else | ||
2815 | echo "$as_me: failed program was:" >&5 | ||
2816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2817 | |||
2818 | # Broken: fails on valid input. | ||
2819 | continue | ||
2820 | fi | ||
2821 | rm -f conftest.err conftest.$ac_ext | ||
2822 | |||
2823 | # OK, works on sane cases. Now check whether non-existent headers | ||
2824 | # can be detected and how. | ||
2825 | cat >conftest.$ac_ext <<_ACEOF | ||
2826 | /* confdefs.h. */ | ||
2827 | _ACEOF | ||
2828 | cat confdefs.h >>conftest.$ac_ext | ||
2829 | cat >>conftest.$ac_ext <<_ACEOF | ||
2830 | /* end confdefs.h. */ | ||
2831 | #include <ac_nonexistent.h> | ||
2832 | _ACEOF | ||
2833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2835 | ac_status=$? | ||
2836 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2837 | rm -f conftest.er1 | ||
2838 | cat conftest.err >&5 | ||
2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2840 | (exit $ac_status); } >/dev/null; then | ||
2841 | if test -s conftest.err; then | ||
2842 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2843 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2844 | else | ||
2845 | ac_cpp_err= | ||
2846 | fi | ||
2847 | else | ||
2848 | ac_cpp_err=yes | ||
2849 | fi | ||
2850 | if test -z "$ac_cpp_err"; then | ||
2851 | # Broken: success on invalid input. | ||
2852 | continue | ||
2853 | else | ||
2854 | echo "$as_me: failed program was:" >&5 | ||
2855 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2856 | |||
2857 | # Passes both tests. | ||
2858 | ac_preproc_ok=: | ||
2859 | break | ||
2860 | fi | ||
2861 | rm -f conftest.err conftest.$ac_ext | ||
2862 | |||
2863 | done | ||
2864 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2865 | rm -f conftest.err conftest.$ac_ext | ||
2866 | if $ac_preproc_ok; then | ||
2867 | : | ||
2868 | else | ||
2869 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
2870 | See \`config.log' for more details." >&5 | ||
2871 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
2872 | See \`config.log' for more details." >&2;} | ||
2873 | { (exit 1); exit 1; }; } | ||
2874 | fi | ||
2875 | |||
2876 | ac_ext=c | ||
2877 | ac_cpp='$CPP $CPPFLAGS' | ||
2878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2881 | |||
2882 | if test -n "$ac_tool_prefix"; then | ||
2883 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2884 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2887 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2889 | else | ||
2890 | if test -n "$RANLIB"; then | ||
2891 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2892 | else | ||
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_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
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 | fi | ||
2908 | fi | ||
2909 | RANLIB=$ac_cv_prog_RANLIB | ||
2910 | if test -n "$RANLIB"; then | ||
2911 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2912 | echo "${ECHO_T}$RANLIB" >&6 | ||
2913 | else | ||
2914 | echo "$as_me:$LINENO: result: no" >&5 | ||
2915 | echo "${ECHO_T}no" >&6 | ||
2916 | fi | ||
2917 | |||
2918 | fi | ||
2919 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2920 | ac_ct_RANLIB=$RANLIB | ||
2921 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2922 | set dummy ranlib; ac_word=$2 | ||
2923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2925 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2927 | else | ||
2928 | if test -n "$ac_ct_RANLIB"; then | ||
2929 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2930 | else | ||
2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2932 | for as_dir in $PATH | ||
2933 | do | ||
2934 | IFS=$as_save_IFS | ||
2935 | test -z "$as_dir" && as_dir=. | ||
2936 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2938 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2940 | break 2 | ||
2941 | fi | ||
2942 | done | ||
2943 | done | ||
2944 | |||
2945 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2946 | fi | ||
2947 | fi | ||
2948 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2949 | if test -n "$ac_ct_RANLIB"; then | ||
2950 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2951 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2952 | else | ||
2953 | echo "$as_me:$LINENO: result: no" >&5 | ||
2954 | echo "${ECHO_T}no" >&6 | ||
2955 | fi | ||
2956 | |||
2957 | RANLIB=$ac_ct_RANLIB | ||
2958 | else | ||
2959 | RANLIB="$ac_cv_prog_RANLIB" | ||
2960 | fi | ||
2961 | |||
2962 | # Find a good install program. We prefer a C program (faster), | ||
2963 | # so one script is as good as another. But avoid the broken or | ||
2964 | # incompatible versions: | ||
2965 | # SysV /etc/install, /usr/sbin/install | ||
2966 | # SunOS /usr/etc/install | ||
2967 | # IRIX /sbin/install | ||
2968 | # AIX /bin/install | ||
2969 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2970 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2971 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2972 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2973 | # OS/2's system install, which has a completely different semantic | ||
2974 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2975 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2976 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2977 | if test -z "$INSTALL"; then | ||
2978 | if test "${ac_cv_path_install+set}" = set; then | ||
2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2980 | else | ||
2981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2982 | for as_dir in $PATH | ||
2983 | do | ||
2984 | IFS=$as_save_IFS | ||
2985 | test -z "$as_dir" && as_dir=. | ||
2986 | # Account for people who put trailing slashes in PATH elements. | ||
2987 | case $as_dir/ in | ||
2988 | ./ | .// | /cC/* | \ | ||
2989 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2990 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2991 | /usr/ucb/* ) ;; | ||
2992 | *) | ||
2993 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2994 | # Don't use installbsd from OSF since it installs stuff as root | ||
2995 | # by default. | ||
2996 | for ac_prog in ginstall scoinst install; do | ||
2997 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2998 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2999 | if test $ac_prog = install && | ||
3000 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3001 | # AIX install. It has an incompatible calling convention. | ||
3002 | : | ||
3003 | elif test $ac_prog = install && | ||
3004 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3005 | # program-specific install script used by HP pwplus--don't use. | ||
3006 | : | ||
3007 | else | ||
3008 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3009 | break 3 | ||
3010 | fi | ||
3011 | fi | ||
3012 | done | ||
3013 | done | ||
3014 | ;; | ||
3015 | esac | ||
3016 | done | ||
3017 | |||
3018 | |||
3019 | fi | ||
3020 | if test "${ac_cv_path_install+set}" = set; then | ||
3021 | INSTALL=$ac_cv_path_install | ||
3022 | else | ||
3023 | # As a last resort, use the slow shell script. We don't cache a | ||
3024 | # path for INSTALL within a source directory, because that will | ||
3025 | # break other packages using the cache if that directory is | ||
3026 | # removed, or if the path is relative. | ||
3027 | INSTALL=$ac_install_sh | ||
3028 | fi | ||
3029 | fi | ||
3030 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
3031 | echo "${ECHO_T}$INSTALL" >&6 | ||
3032 | |||
3033 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3034 | # It thinks the first close brace ends the variable substitution. | ||
3035 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3036 | |||
3037 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3038 | |||
3039 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3040 | |||
3041 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3042 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
3043 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3045 | else | ||
3046 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
3047 | then ac_cv_prog_egrep='grep -E' | ||
3048 | else ac_cv_prog_egrep='egrep' | ||
3049 | fi | ||
3050 | fi | ||
3051 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
3052 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
3053 | EGREP=$ac_cv_prog_egrep | ||
3054 | |||
3055 | |||
3056 | # Extract the first word of "ar", so it can be a program name with args. | ||
3057 | set dummy ar; ac_word=$2 | ||
3058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3060 | if test "${ac_cv_path_AR+set}" = set; then | ||
3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3062 | else | ||
3063 | case $AR in | ||
3064 | [\\/]* | ?:[\\/]*) | ||
3065 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
3066 | ;; | ||
3067 | *) | ||
3068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3069 | for as_dir in $PATH | ||
3070 | do | ||
3071 | IFS=$as_save_IFS | ||
3072 | test -z "$as_dir" && as_dir=. | ||
3073 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3075 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
3076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3077 | break 2 | ||
3078 | fi | ||
3079 | done | ||
3080 | done | ||
3081 | |||
3082 | ;; | ||
3083 | esac | ||
3084 | fi | ||
3085 | AR=$ac_cv_path_AR | ||
3086 | |||
3087 | if test -n "$AR"; then | ||
3088 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
3089 | echo "${ECHO_T}$AR" >&6 | ||
3090 | else | ||
3091 | echo "$as_me:$LINENO: result: no" >&5 | ||
3092 | echo "${ECHO_T}no" >&6 | ||
3093 | fi | ||
3094 | |||
3095 | # Extract the first word of "cat", so it can be a program name with args. | ||
3096 | set dummy cat; ac_word=$2 | ||
3097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3099 | if test "${ac_cv_path_CAT+set}" = set; then | ||
3100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3101 | else | ||
3102 | case $CAT in | ||
3103 | [\\/]* | ?:[\\/]*) | ||
3104 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
3105 | ;; | ||
3106 | *) | ||
3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3108 | for as_dir in $PATH | ||
3109 | do | ||
3110 | IFS=$as_save_IFS | ||
3111 | test -z "$as_dir" && as_dir=. | ||
3112 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3114 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
3115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3116 | break 2 | ||
3117 | fi | ||
3118 | done | ||
3119 | done | ||
3120 | |||
3121 | ;; | ||
3122 | esac | ||
3123 | fi | ||
3124 | CAT=$ac_cv_path_CAT | ||
3125 | |||
3126 | if test -n "$CAT"; then | ||
3127 | echo "$as_me:$LINENO: result: $CAT" >&5 | ||
3128 | echo "${ECHO_T}$CAT" >&6 | ||
3129 | else | ||
3130 | echo "$as_me:$LINENO: result: no" >&5 | ||
3131 | echo "${ECHO_T}no" >&6 | ||
3132 | fi | ||
3133 | |||
3134 | # Extract the first word of "kill", so it can be a program name with args. | ||
3135 | set dummy kill; ac_word=$2 | ||
3136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3138 | if test "${ac_cv_path_KILL+set}" = set; then | ||
3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3140 | else | ||
3141 | case $KILL in | ||
3142 | [\\/]* | ?:[\\/]*) | ||
3143 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
3144 | ;; | ||
3145 | *) | ||
3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3147 | for as_dir in $PATH | ||
3148 | do | ||
3149 | IFS=$as_save_IFS | ||
3150 | test -z "$as_dir" && as_dir=. | ||
3151 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3153 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
3154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3155 | break 2 | ||
3156 | fi | ||
3157 | done | ||
3158 | done | ||
3159 | |||
3160 | ;; | ||
3161 | esac | ||
3162 | fi | ||
3163 | KILL=$ac_cv_path_KILL | ||
3164 | |||
3165 | if test -n "$KILL"; then | ||
3166 | echo "$as_me:$LINENO: result: $KILL" >&5 | ||
3167 | echo "${ECHO_T}$KILL" >&6 | ||
3168 | else | ||
3169 | echo "$as_me:$LINENO: result: no" >&5 | ||
3170 | echo "${ECHO_T}no" >&6 | ||
3171 | fi | ||
3172 | |||
3173 | for ac_prog in perl5 perl | ||
3174 | do | ||
3175 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3176 | set dummy $ac_prog; ac_word=$2 | ||
3177 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3178 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3179 | if test "${ac_cv_path_PERL+set}" = set; then | ||
3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3181 | else | ||
3182 | case $PERL in | ||
3183 | [\\/]* | ?:[\\/]*) | ||
3184 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
3185 | ;; | ||
3186 | *) | ||
3187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3188 | for as_dir in $PATH | ||
3189 | do | ||
3190 | IFS=$as_save_IFS | ||
3191 | test -z "$as_dir" && as_dir=. | ||
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3193 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3194 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
3195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3196 | break 2 | ||
3197 | fi | ||
3198 | done | ||
3199 | done | ||
3200 | |||
3201 | ;; | ||
3202 | esac | ||
3203 | fi | ||
3204 | PERL=$ac_cv_path_PERL | ||
3205 | |||
3206 | if test -n "$PERL"; then | ||
3207 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
3208 | echo "${ECHO_T}$PERL" >&6 | ||
3209 | else | ||
3210 | echo "$as_me:$LINENO: result: no" >&5 | ||
3211 | echo "${ECHO_T}no" >&6 | ||
3212 | fi | ||
3213 | |||
3214 | test -n "$PERL" && break | ||
3215 | done | ||
3216 | |||
3217 | # Extract the first word of "sed", so it can be a program name with args. | ||
3218 | set dummy sed; ac_word=$2 | ||
3219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3221 | if test "${ac_cv_path_SED+set}" = set; then | ||
3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3223 | else | ||
3224 | case $SED in | ||
3225 | [\\/]* | ?:[\\/]*) | ||
3226 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
3227 | ;; | ||
3228 | *) | ||
3229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3230 | for as_dir in $PATH | ||
3231 | do | ||
3232 | IFS=$as_save_IFS | ||
3233 | test -z "$as_dir" && as_dir=. | ||
3234 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3236 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
3237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3238 | break 2 | ||
3239 | fi | ||
3240 | done | ||
3241 | done | ||
3242 | |||
3243 | ;; | ||
3244 | esac | ||
3245 | fi | ||
3246 | SED=$ac_cv_path_SED | ||
3247 | |||
3248 | if test -n "$SED"; then | ||
3249 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3250 | echo "${ECHO_T}$SED" >&6 | ||
3251 | else | ||
3252 | echo "$as_me:$LINENO: result: no" >&5 | ||
3253 | echo "${ECHO_T}no" >&6 | ||
3254 | fi | ||
3255 | |||
3256 | |||
3257 | # Extract the first word of "ent", so it can be a program name with args. | ||
3258 | set dummy ent; ac_word=$2 | ||
3259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3261 | if test "${ac_cv_path_ENT+set}" = set; then | ||
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3263 | else | ||
3264 | case $ENT in | ||
3265 | [\\/]* | ?:[\\/]*) | ||
3266 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
3267 | ;; | ||
3268 | *) | ||
3269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3270 | for as_dir in $PATH | ||
3271 | do | ||
3272 | IFS=$as_save_IFS | ||
3273 | test -z "$as_dir" && as_dir=. | ||
3274 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3276 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
3277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3278 | break 2 | ||
3279 | fi | ||
3280 | done | ||
3281 | done | ||
3282 | |||
3283 | ;; | ||
3284 | esac | ||
3285 | fi | ||
3286 | ENT=$ac_cv_path_ENT | ||
3287 | |||
3288 | if test -n "$ENT"; then | ||
3289 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
3290 | echo "${ECHO_T}$ENT" >&6 | ||
3291 | else | ||
3292 | echo "$as_me:$LINENO: result: no" >&5 | ||
3293 | echo "${ECHO_T}no" >&6 | ||
3294 | fi | ||
3295 | |||
3296 | |||
3297 | # Extract the first word of "bash", so it can be a program name with args. | ||
3298 | set dummy bash; ac_word=$2 | ||
3299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3301 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3303 | else | ||
3304 | case $TEST_MINUS_S_SH in | ||
3305 | [\\/]* | ?:[\\/]*) | ||
3306 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3307 | ;; | ||
3308 | *) | ||
3309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3310 | for as_dir in $PATH | ||
3311 | do | ||
3312 | IFS=$as_save_IFS | ||
3313 | test -z "$as_dir" && as_dir=. | ||
3314 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3315 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3316 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3318 | break 2 | ||
3319 | fi | ||
3320 | done | ||
3321 | done | ||
3322 | |||
3323 | ;; | ||
3324 | esac | ||
3325 | fi | ||
3326 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3327 | |||
3328 | if test -n "$TEST_MINUS_S_SH"; then | ||
3329 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3330 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3331 | else | ||
3332 | echo "$as_me:$LINENO: result: no" >&5 | ||
3333 | echo "${ECHO_T}no" >&6 | ||
3334 | fi | ||
3335 | |||
3336 | # Extract the first word of "ksh", so it can be a program name with args. | ||
3337 | set dummy ksh; ac_word=$2 | ||
3338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3340 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3342 | else | ||
3343 | case $TEST_MINUS_S_SH in | ||
3344 | [\\/]* | ?:[\\/]*) | ||
3345 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3346 | ;; | ||
3347 | *) | ||
3348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3349 | for as_dir in $PATH | ||
3350 | do | ||
3351 | IFS=$as_save_IFS | ||
3352 | test -z "$as_dir" && as_dir=. | ||
3353 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3355 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3357 | break 2 | ||
3358 | fi | ||
3359 | done | ||
3360 | done | ||
3361 | |||
3362 | ;; | ||
3363 | esac | ||
3364 | fi | ||
3365 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3366 | |||
3367 | if test -n "$TEST_MINUS_S_SH"; then | ||
3368 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3369 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3370 | else | ||
3371 | echo "$as_me:$LINENO: result: no" >&5 | ||
3372 | echo "${ECHO_T}no" >&6 | ||
3373 | fi | ||
3374 | |||
3375 | # Extract the first word of "sh", so it can be a program name with args. | ||
3376 | set dummy sh; ac_word=$2 | ||
3377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3379 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3381 | else | ||
3382 | case $TEST_MINUS_S_SH in | ||
3383 | [\\/]* | ?:[\\/]*) | ||
3384 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3385 | ;; | ||
3386 | *) | ||
3387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3388 | for as_dir in $PATH | ||
3389 | do | ||
3390 | IFS=$as_save_IFS | ||
3391 | test -z "$as_dir" && as_dir=. | ||
3392 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3394 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3396 | break 2 | ||
3397 | fi | ||
3398 | done | ||
3399 | done | ||
3400 | |||
3401 | ;; | ||
3402 | esac | ||
3403 | fi | ||
3404 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3405 | |||
3406 | if test -n "$TEST_MINUS_S_SH"; then | ||
3407 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3408 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3409 | else | ||
3410 | echo "$as_me:$LINENO: result: no" >&5 | ||
3411 | echo "${ECHO_T}no" >&6 | ||
3412 | fi | ||
3413 | |||
3414 | # Extract the first word of "sh", so it can be a program name with args. | ||
3415 | set dummy sh; ac_word=$2 | ||
3416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3418 | if test "${ac_cv_path_SH+set}" = set; then | ||
3419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3420 | else | ||
3421 | case $SH in | ||
3422 | [\\/]* | ?:[\\/]*) | ||
3423 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
3424 | ;; | ||
3425 | *) | ||
3426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3427 | for as_dir in $PATH | ||
3428 | do | ||
3429 | IFS=$as_save_IFS | ||
3430 | test -z "$as_dir" && as_dir=. | ||
3431 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3433 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3435 | break 2 | ||
3436 | fi | ||
3437 | done | ||
3438 | done | ||
3439 | |||
3440 | ;; | ||
3441 | esac | ||
3442 | fi | ||
3443 | SH=$ac_cv_path_SH | ||
3444 | |||
3445 | if test -n "$SH"; then | ||
3446 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
3447 | echo "${ECHO_T}$SH" >&6 | ||
3448 | else | ||
3449 | echo "$as_me:$LINENO: result: no" >&5 | ||
3450 | echo "${ECHO_T}no" >&6 | ||
3451 | fi | ||
3452 | |||
3453 | TEST_SHELL=sh | ||
3454 | |||
3455 | |||
3456 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
3457 | set dummy groupadd; ac_word=$2 | ||
3458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3460 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3462 | else | ||
3463 | case $PATH_GROUPADD_PROG in | ||
3464 | [\\/]* | ?:[\\/]*) | ||
3465 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
3466 | ;; | ||
3467 | *) | ||
3468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3469 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3470 | do | ||
3471 | IFS=$as_save_IFS | ||
3472 | test -z "$as_dir" && as_dir=. | ||
3473 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3475 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3477 | break 2 | ||
3478 | fi | ||
3479 | done | ||
3480 | done | ||
3481 | |||
3482 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
3483 | ;; | ||
3484 | esac | ||
3485 | fi | ||
3486 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
3487 | |||
3488 | if test -n "$PATH_GROUPADD_PROG"; then | ||
3489 | echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
3490 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6 | ||
3491 | else | ||
3492 | echo "$as_me:$LINENO: result: no" >&5 | ||
3493 | echo "${ECHO_T}no" >&6 | ||
3494 | fi | ||
3495 | |||
3496 | # Extract the first word of "useradd", so it can be a program name with args. | ||
3497 | set dummy useradd; ac_word=$2 | ||
3498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3500 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3502 | else | ||
3503 | case $PATH_USERADD_PROG in | ||
3504 | [\\/]* | ?:[\\/]*) | ||
3505 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
3506 | ;; | ||
3507 | *) | ||
3508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3509 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3510 | do | ||
3511 | IFS=$as_save_IFS | ||
3512 | test -z "$as_dir" && as_dir=. | ||
3513 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3515 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3517 | break 2 | ||
3518 | fi | ||
3519 | done | ||
3520 | done | ||
3521 | |||
3522 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
3523 | ;; | ||
3524 | esac | ||
3525 | fi | ||
3526 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
3527 | |||
3528 | if test -n "$PATH_USERADD_PROG"; then | ||
3529 | echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
3530 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6 | ||
3531 | else | ||
3532 | echo "$as_me:$LINENO: result: no" >&5 | ||
3533 | echo "${ECHO_T}no" >&6 | ||
3534 | fi | ||
3535 | |||
3536 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
3537 | set dummy pkgmk; ac_word=$2 | ||
3538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3540 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
3541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3542 | else | ||
3543 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3544 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
3545 | else | ||
3546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3547 | for as_dir in $PATH | ||
3548 | do | ||
3549 | IFS=$as_save_IFS | ||
3550 | test -z "$as_dir" && as_dir=. | ||
3551 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3553 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
3554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3555 | break 2 | ||
3556 | fi | ||
3557 | done | ||
3558 | done | ||
3559 | |||
3560 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
3561 | fi | ||
3562 | fi | ||
3563 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
3564 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3565 | echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
3566 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6 | ||
3567 | else | ||
3568 | echo "$as_me:$LINENO: result: no" >&5 | ||
3569 | echo "${ECHO_T}no" >&6 | ||
3570 | fi | ||
3571 | |||
3572 | if test -x /sbin/sh; then | ||
3573 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
3574 | |||
3575 | else | ||
3576 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
3577 | |||
3578 | fi | ||
3579 | |||
3580 | # System features | ||
3581 | # Check whether --enable-largefile or --disable-largefile was given. | ||
3582 | if test "${enable_largefile+set}" = set; then | ||
3583 | enableval="$enable_largefile" | ||
3584 | |||
3585 | fi; | ||
3586 | if test "$enable_largefile" != no; then | ||
3587 | |||
3588 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
3589 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
3590 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
3591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3592 | else | ||
3593 | ac_cv_sys_largefile_CC=no | ||
3594 | if test "$GCC" != yes; then | ||
3595 | ac_save_CC=$CC | ||
3596 | while :; do | ||
3597 | # IRIX 6.2 and later do not support large files by default, | ||
3598 | # so use the C compiler's -n32 option if that helps. | ||
3599 | cat >conftest.$ac_ext <<_ACEOF | ||
3600 | /* confdefs.h. */ | ||
3601 | _ACEOF | ||
3602 | cat confdefs.h >>conftest.$ac_ext | ||
3603 | cat >>conftest.$ac_ext <<_ACEOF | ||
3604 | /* end confdefs.h. */ | ||
3605 | #include <sys/types.h> | ||
3606 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3607 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3608 | since some C++ compilers masquerading as C compilers | ||
3609 | incorrectly reject 9223372036854775807. */ | ||
3610 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3611 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3612 | && LARGE_OFF_T % 2147483647 == 1) | ||
3613 | ? 1 : -1]; | ||
3614 | int | ||
3615 | main () | ||
3616 | { | ||
3617 | |||
3618 | ; | ||
3619 | return 0; | ||
3620 | } | ||
3621 | _ACEOF | ||
3622 | rm -f conftest.$ac_objext | ||
3623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3624 | (eval $ac_compile) 2>conftest.er1 | ||
3625 | ac_status=$? | ||
3626 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3627 | rm -f conftest.er1 | ||
3628 | cat conftest.err >&5 | ||
3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3630 | (exit $ac_status); } && | ||
3631 | { ac_try='test -z "$ac_c_werror_flag" | ||
3632 | || test ! -s conftest.err' | ||
3633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3634 | (eval $ac_try) 2>&5 | ||
3635 | ac_status=$? | ||
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3637 | (exit $ac_status); }; } && | ||
3638 | { ac_try='test -s conftest.$ac_objext' | ||
3639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3640 | (eval $ac_try) 2>&5 | ||
3641 | ac_status=$? | ||
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3643 | (exit $ac_status); }; }; then | ||
3644 | break | ||
3645 | else | ||
3646 | echo "$as_me: failed program was:" >&5 | ||
3647 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3648 | |||
3649 | fi | ||
3650 | rm -f conftest.err conftest.$ac_objext | ||
3651 | CC="$CC -n32" | ||
3652 | rm -f conftest.$ac_objext | ||
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3654 | (eval $ac_compile) 2>conftest.er1 | ||
3655 | ac_status=$? | ||
3656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3657 | rm -f conftest.er1 | ||
3658 | cat conftest.err >&5 | ||
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3660 | (exit $ac_status); } && | ||
3661 | { ac_try='test -z "$ac_c_werror_flag" | ||
3662 | || test ! -s conftest.err' | ||
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3664 | (eval $ac_try) 2>&5 | ||
3665 | ac_status=$? | ||
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3667 | (exit $ac_status); }; } && | ||
3668 | { ac_try='test -s conftest.$ac_objext' | ||
3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3670 | (eval $ac_try) 2>&5 | ||
3671 | ac_status=$? | ||
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3673 | (exit $ac_status); }; }; then | ||
3674 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3675 | else | ||
3676 | echo "$as_me: failed program was:" >&5 | ||
3677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3678 | |||
3679 | fi | ||
3680 | rm -f conftest.err conftest.$ac_objext | ||
3681 | break | ||
3682 | done | ||
3683 | CC=$ac_save_CC | ||
3684 | rm -f conftest.$ac_ext | ||
3685 | fi | ||
3686 | fi | ||
3687 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3688 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3689 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3690 | CC=$CC$ac_cv_sys_largefile_CC | ||
3691 | fi | ||
3692 | |||
3693 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3694 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3695 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3697 | else | ||
3698 | while :; do | ||
3699 | ac_cv_sys_file_offset_bits=no | ||
3700 | cat >conftest.$ac_ext <<_ACEOF | ||
3701 | /* confdefs.h. */ | ||
3702 | _ACEOF | ||
3703 | cat confdefs.h >>conftest.$ac_ext | ||
3704 | cat >>conftest.$ac_ext <<_ACEOF | ||
3705 | /* end confdefs.h. */ | ||
3706 | #include <sys/types.h> | ||
3707 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3708 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3709 | since some C++ compilers masquerading as C compilers | ||
3710 | incorrectly reject 9223372036854775807. */ | ||
3711 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3712 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3713 | && LARGE_OFF_T % 2147483647 == 1) | ||
3714 | ? 1 : -1]; | ||
3715 | int | ||
3716 | main () | ||
3717 | { | ||
3718 | |||
3719 | ; | ||
3720 | return 0; | ||
3721 | } | ||
3722 | _ACEOF | ||
3723 | rm -f conftest.$ac_objext | ||
3724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3725 | (eval $ac_compile) 2>conftest.er1 | ||
3726 | ac_status=$? | ||
3727 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3728 | rm -f conftest.er1 | ||
3729 | cat conftest.err >&5 | ||
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3731 | (exit $ac_status); } && | ||
3732 | { ac_try='test -z "$ac_c_werror_flag" | ||
3733 | || test ! -s conftest.err' | ||
3734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3735 | (eval $ac_try) 2>&5 | ||
3736 | ac_status=$? | ||
3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3738 | (exit $ac_status); }; } && | ||
3739 | { ac_try='test -s conftest.$ac_objext' | ||
3740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3741 | (eval $ac_try) 2>&5 | ||
3742 | ac_status=$? | ||
3743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3744 | (exit $ac_status); }; }; then | ||
3745 | break | ||
3746 | else | ||
3747 | echo "$as_me: failed program was:" >&5 | ||
3748 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3749 | |||
3750 | fi | ||
3751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3752 | cat >conftest.$ac_ext <<_ACEOF | ||
3753 | /* confdefs.h. */ | ||
3754 | _ACEOF | ||
3755 | cat confdefs.h >>conftest.$ac_ext | ||
3756 | cat >>conftest.$ac_ext <<_ACEOF | ||
3757 | /* end confdefs.h. */ | ||
3758 | #define _FILE_OFFSET_BITS 64 | ||
3759 | #include <sys/types.h> | ||
3760 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3761 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3762 | since some C++ compilers masquerading as C compilers | ||
3763 | incorrectly reject 9223372036854775807. */ | ||
3764 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3765 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3766 | && LARGE_OFF_T % 2147483647 == 1) | ||
3767 | ? 1 : -1]; | ||
3768 | int | ||
3769 | main () | ||
3770 | { | ||
3771 | |||
3772 | ; | ||
3773 | return 0; | ||
3774 | } | ||
3775 | _ACEOF | ||
3776 | rm -f conftest.$ac_objext | ||
3777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3778 | (eval $ac_compile) 2>conftest.er1 | ||
3779 | ac_status=$? | ||
3780 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3781 | rm -f conftest.er1 | ||
3782 | cat conftest.err >&5 | ||
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3784 | (exit $ac_status); } && | ||
3785 | { ac_try='test -z "$ac_c_werror_flag" | ||
3786 | || test ! -s conftest.err' | ||
3787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3788 | (eval $ac_try) 2>&5 | ||
3789 | ac_status=$? | ||
3790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3791 | (exit $ac_status); }; } && | ||
3792 | { ac_try='test -s conftest.$ac_objext' | ||
3793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3794 | (eval $ac_try) 2>&5 | ||
3795 | ac_status=$? | ||
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3797 | (exit $ac_status); }; }; then | ||
3798 | ac_cv_sys_file_offset_bits=64; break | ||
3799 | else | ||
3800 | echo "$as_me: failed program was:" >&5 | ||
3801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3802 | |||
3803 | fi | ||
3804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3805 | break | ||
3806 | done | ||
3807 | fi | ||
3808 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3809 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3810 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3811 | |||
3812 | cat >>confdefs.h <<_ACEOF | ||
3813 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3814 | _ACEOF | ||
3815 | |||
3816 | fi | ||
3817 | rm -f conftest* | ||
3818 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3819 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3820 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3822 | else | ||
3823 | while :; do | ||
3824 | ac_cv_sys_large_files=no | ||
3825 | cat >conftest.$ac_ext <<_ACEOF | ||
3826 | /* confdefs.h. */ | ||
3827 | _ACEOF | ||
3828 | cat confdefs.h >>conftest.$ac_ext | ||
3829 | cat >>conftest.$ac_ext <<_ACEOF | ||
3830 | /* end confdefs.h. */ | ||
3831 | #include <sys/types.h> | ||
3832 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3833 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3834 | since some C++ compilers masquerading as C compilers | ||
3835 | incorrectly reject 9223372036854775807. */ | ||
3836 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3837 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3838 | && LARGE_OFF_T % 2147483647 == 1) | ||
3839 | ? 1 : -1]; | ||
3840 | int | ||
3841 | main () | ||
3842 | { | ||
3843 | |||
3844 | ; | ||
3845 | return 0; | ||
3846 | } | ||
3847 | _ACEOF | ||
3848 | rm -f conftest.$ac_objext | ||
3849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3850 | (eval $ac_compile) 2>conftest.er1 | ||
3851 | ac_status=$? | ||
3852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3853 | rm -f conftest.er1 | ||
3854 | cat conftest.err >&5 | ||
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3856 | (exit $ac_status); } && | ||
3857 | { ac_try='test -z "$ac_c_werror_flag" | ||
3858 | || test ! -s conftest.err' | ||
3859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3860 | (eval $ac_try) 2>&5 | ||
3861 | ac_status=$? | ||
3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3863 | (exit $ac_status); }; } && | ||
3864 | { ac_try='test -s conftest.$ac_objext' | ||
3865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3866 | (eval $ac_try) 2>&5 | ||
3867 | ac_status=$? | ||
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3869 | (exit $ac_status); }; }; then | ||
3870 | break | ||
3871 | else | ||
3872 | echo "$as_me: failed program was:" >&5 | ||
3873 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3874 | |||
3875 | fi | ||
3876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3877 | cat >conftest.$ac_ext <<_ACEOF | ||
3878 | /* confdefs.h. */ | ||
3879 | _ACEOF | ||
3880 | cat confdefs.h >>conftest.$ac_ext | ||
3881 | cat >>conftest.$ac_ext <<_ACEOF | ||
3882 | /* end confdefs.h. */ | ||
3883 | #define _LARGE_FILES 1 | ||
3884 | #include <sys/types.h> | ||
3885 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3886 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3887 | since some C++ compilers masquerading as C compilers | ||
3888 | incorrectly reject 9223372036854775807. */ | ||
3889 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3890 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3891 | && LARGE_OFF_T % 2147483647 == 1) | ||
3892 | ? 1 : -1]; | ||
3893 | int | ||
3894 | main () | ||
3895 | { | ||
3896 | |||
3897 | ; | ||
3898 | return 0; | ||
3899 | } | ||
3900 | _ACEOF | ||
3901 | rm -f conftest.$ac_objext | ||
3902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3903 | (eval $ac_compile) 2>conftest.er1 | ||
3904 | ac_status=$? | ||
3905 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3906 | rm -f conftest.er1 | ||
3907 | cat conftest.err >&5 | ||
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3909 | (exit $ac_status); } && | ||
3910 | { ac_try='test -z "$ac_c_werror_flag" | ||
3911 | || test ! -s conftest.err' | ||
3912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3913 | (eval $ac_try) 2>&5 | ||
3914 | ac_status=$? | ||
3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3916 | (exit $ac_status); }; } && | ||
3917 | { ac_try='test -s conftest.$ac_objext' | ||
3918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3919 | (eval $ac_try) 2>&5 | ||
3920 | ac_status=$? | ||
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3922 | (exit $ac_status); }; }; then | ||
3923 | ac_cv_sys_large_files=1; break | ||
3924 | else | ||
3925 | echo "$as_me: failed program was:" >&5 | ||
3926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3927 | |||
3928 | fi | ||
3929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3930 | break | ||
3931 | done | ||
3932 | fi | ||
3933 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3934 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3935 | if test "$ac_cv_sys_large_files" != no; then | ||
3936 | |||
3937 | cat >>confdefs.h <<_ACEOF | ||
3938 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3939 | _ACEOF | ||
3940 | |||
3941 | fi | ||
3942 | rm -f conftest* | ||
3943 | fi | ||
3944 | |||
3945 | |||
3946 | if test -z "$AR" ; then | ||
3947 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3948 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3949 | { (exit 1); exit 1; }; } | ||
3950 | fi | ||
3951 | |||
3952 | # Use LOGIN_PROGRAM from environment if possible | ||
3953 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3954 | |||
3955 | cat >>confdefs.h <<_ACEOF | ||
3956 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3957 | _ACEOF | ||
3958 | |||
3959 | else | ||
3960 | # Search for login | ||
3961 | # Extract the first word of "login", so it can be a program name with args. | ||
3962 | set dummy login; ac_word=$2 | ||
3963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3965 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3967 | else | ||
3968 | case $LOGIN_PROGRAM_FALLBACK in | ||
3969 | [\\/]* | ?:[\\/]*) | ||
3970 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3971 | ;; | ||
3972 | *) | ||
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3974 | for as_dir in $PATH | ||
3975 | do | ||
3976 | IFS=$as_save_IFS | ||
3977 | test -z "$as_dir" && as_dir=. | ||
3978 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3980 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3982 | break 2 | ||
3983 | fi | ||
3984 | done | ||
3985 | done | ||
3986 | |||
3987 | ;; | ||
3988 | esac | ||
3989 | fi | ||
3990 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3991 | |||
3992 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3993 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3994 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3995 | else | ||
3996 | echo "$as_me:$LINENO: result: no" >&5 | ||
3997 | echo "${ECHO_T}no" >&6 | ||
3998 | fi | ||
3999 | |||
4000 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
4001 | cat >>confdefs.h <<_ACEOF | ||
4002 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
4003 | _ACEOF | ||
4004 | |||
4005 | fi | ||
4006 | fi | ||
4007 | |||
4008 | # Extract the first word of "passwd", so it can be a program name with args. | ||
4009 | set dummy passwd; ac_word=$2 | ||
4010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4012 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4014 | else | ||
4015 | case $PATH_PASSWD_PROG in | ||
4016 | [\\/]* | ?:[\\/]*) | ||
4017 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
4018 | ;; | ||
4019 | *) | ||
4020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4021 | for as_dir in $PATH | ||
4022 | do | ||
4023 | IFS=$as_save_IFS | ||
4024 | test -z "$as_dir" && as_dir=. | ||
4025 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4027 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4029 | break 2 | ||
4030 | fi | ||
4031 | done | ||
4032 | done | ||
4033 | |||
4034 | ;; | ||
4035 | esac | ||
4036 | fi | ||
4037 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
4038 | |||
4039 | if test -n "$PATH_PASSWD_PROG"; then | ||
4040 | echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
4041 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
4042 | else | ||
4043 | echo "$as_me:$LINENO: result: no" >&5 | ||
4044 | echo "${ECHO_T}no" >&6 | ||
4045 | fi | ||
4046 | |||
4047 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
4048 | |||
4049 | cat >>confdefs.h <<_ACEOF | ||
4050 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
4051 | _ACEOF | ||
4052 | |||
4053 | fi | ||
4054 | |||
4055 | if test -z "$LD" ; then | ||
4056 | LD=$CC | ||
4057 | fi | ||
4058 | |||
4059 | |||
4060 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
4061 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
4062 | if test "${ac_cv_c_inline+set}" = set; then | ||
4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4064 | else | ||
4065 | ac_cv_c_inline=no | ||
4066 | for ac_kw in inline __inline__ __inline; do | ||
4067 | cat >conftest.$ac_ext <<_ACEOF | ||
4068 | /* confdefs.h. */ | ||
4069 | _ACEOF | ||
4070 | cat confdefs.h >>conftest.$ac_ext | ||
4071 | cat >>conftest.$ac_ext <<_ACEOF | ||
4072 | /* end confdefs.h. */ | ||
4073 | #ifndef __cplusplus | ||
4074 | typedef int foo_t; | ||
4075 | static $ac_kw foo_t static_foo () {return 0; } | ||
4076 | $ac_kw foo_t foo () {return 0; } | ||
4077 | #endif | ||
4078 | |||
4079 | _ACEOF | ||
4080 | rm -f conftest.$ac_objext | ||
4081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4082 | (eval $ac_compile) 2>conftest.er1 | ||
4083 | ac_status=$? | ||
4084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4085 | rm -f conftest.er1 | ||
4086 | cat conftest.err >&5 | ||
4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4088 | (exit $ac_status); } && | ||
4089 | { ac_try='test -z "$ac_c_werror_flag" | ||
4090 | || test ! -s conftest.err' | ||
4091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4092 | (eval $ac_try) 2>&5 | ||
4093 | ac_status=$? | ||
4094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4095 | (exit $ac_status); }; } && | ||
4096 | { ac_try='test -s conftest.$ac_objext' | ||
4097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4098 | (eval $ac_try) 2>&5 | ||
4099 | ac_status=$? | ||
4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4101 | (exit $ac_status); }; }; then | ||
4102 | ac_cv_c_inline=$ac_kw; break | ||
4103 | else | ||
4104 | echo "$as_me: failed program was:" >&5 | ||
4105 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4106 | |||
4107 | fi | ||
4108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4109 | done | ||
4110 | |||
4111 | fi | ||
4112 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
4113 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
4114 | |||
4115 | |||
4116 | case $ac_cv_c_inline in | ||
4117 | inline | yes) ;; | ||
4118 | *) | ||
4119 | case $ac_cv_c_inline in | ||
4120 | no) ac_val=;; | ||
4121 | *) ac_val=$ac_cv_c_inline;; | ||
4122 | esac | ||
4123 | cat >>confdefs.h <<_ACEOF | ||
4124 | #ifndef __cplusplus | ||
4125 | #define inline $ac_val | ||
4126 | #endif | ||
4127 | _ACEOF | ||
4128 | ;; | ||
4129 | esac | ||
4130 | |||
4131 | |||
4132 | echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
4133 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6 | ||
4134 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
4135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4136 | else | ||
4137 | cat >conftest.$ac_ext <<_ACEOF | ||
4138 | /* confdefs.h. */ | ||
4139 | _ACEOF | ||
4140 | cat confdefs.h >>conftest.$ac_ext | ||
4141 | cat >>conftest.$ac_ext <<_ACEOF | ||
4142 | /* end confdefs.h. */ | ||
4143 | #include <limits.h> | ||
4144 | |||
4145 | int | ||
4146 | main () | ||
4147 | { | ||
4148 | #ifndef LLONG_MAX | ||
4149 | char *p = (char *) LLONG_MAX; | ||
4150 | #endif | ||
4151 | |||
4152 | ; | ||
4153 | return 0; | ||
4154 | } | ||
4155 | _ACEOF | ||
4156 | rm -f conftest.$ac_objext | ||
4157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4158 | (eval $ac_compile) 2>conftest.er1 | ||
4159 | ac_status=$? | ||
4160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4161 | rm -f conftest.er1 | ||
4162 | cat conftest.err >&5 | ||
4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4164 | (exit $ac_status); } && | ||
4165 | { ac_try='test -z "$ac_c_werror_flag" | ||
4166 | || test ! -s conftest.err' | ||
4167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4168 | (eval $ac_try) 2>&5 | ||
4169 | ac_status=$? | ||
4170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4171 | (exit $ac_status); }; } && | ||
4172 | { ac_try='test -s conftest.$ac_objext' | ||
4173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4174 | (eval $ac_try) 2>&5 | ||
4175 | ac_status=$? | ||
4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4177 | (exit $ac_status); }; }; then | ||
4178 | ac_cv_have_decl_LLONG_MAX=yes | ||
4179 | else | ||
4180 | echo "$as_me: failed program was:" >&5 | ||
4181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4182 | |||
4183 | ac_cv_have_decl_LLONG_MAX=no | ||
4184 | fi | ||
4185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4186 | fi | ||
4187 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
4188 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6 | ||
4189 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
4190 | have_llong_max=1 | ||
4191 | fi | ||
4192 | |||
4193 | |||
4194 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
4195 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
4196 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
4197 | case $GCC_VER in | ||
4198 | 1.*) ;; | ||
4199 | 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
4200 | 2.*) ;; | ||
4201 | 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
4202 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;; | ||
4203 | *) ;; | ||
4204 | esac | ||
4205 | |||
4206 | if test -z "$have_llong_max"; then | ||
4207 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
4208 | unset ac_cv_have_decl_LLONG_MAX | ||
4209 | saved_CFLAGS="$CFLAGS" | ||
4210 | CFLAGS="$CFLAGS -std=gnu99" | ||
4211 | echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
4212 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6 | ||
4213 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4215 | else | ||
4216 | cat >conftest.$ac_ext <<_ACEOF | ||
4217 | /* confdefs.h. */ | ||
4218 | _ACEOF | ||
4219 | cat confdefs.h >>conftest.$ac_ext | ||
4220 | cat >>conftest.$ac_ext <<_ACEOF | ||
4221 | /* end confdefs.h. */ | ||
4222 | #include <limits.h> | ||
4223 | |||
4224 | |||
4225 | int | ||
4226 | main () | ||
4227 | { | ||
4228 | #ifndef LLONG_MAX | ||
4229 | char *p = (char *) LLONG_MAX; | ||
4230 | #endif | ||
4231 | |||
4232 | ; | ||
4233 | return 0; | ||
4234 | } | ||
4235 | _ACEOF | ||
4236 | rm -f conftest.$ac_objext | ||
4237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4238 | (eval $ac_compile) 2>conftest.er1 | ||
4239 | ac_status=$? | ||
4240 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4241 | rm -f conftest.er1 | ||
4242 | cat conftest.err >&5 | ||
4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4244 | (exit $ac_status); } && | ||
4245 | { ac_try='test -z "$ac_c_werror_flag" | ||
4246 | || test ! -s conftest.err' | ||
4247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4248 | (eval $ac_try) 2>&5 | ||
4249 | ac_status=$? | ||
4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4251 | (exit $ac_status); }; } && | ||
4252 | { ac_try='test -s conftest.$ac_objext' | ||
4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4254 | (eval $ac_try) 2>&5 | ||
4255 | ac_status=$? | ||
4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4257 | (exit $ac_status); }; }; then | ||
4258 | ac_cv_have_decl_LLONG_MAX=yes | ||
4259 | else | ||
4260 | echo "$as_me: failed program was:" >&5 | ||
4261 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4262 | |||
4263 | ac_cv_have_decl_LLONG_MAX=no | ||
4264 | fi | ||
4265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4266 | fi | ||
4267 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
4268 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6 | ||
4269 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
4270 | have_llong_max=1 | ||
4271 | else | ||
4272 | CFLAGS="$saved_CFLAGS" | ||
4273 | fi | ||
4274 | |||
4275 | fi | ||
4276 | fi | ||
4277 | |||
4278 | |||
4279 | # Check whether --with-rpath or --without-rpath was given. | ||
4280 | if test "${with_rpath+set}" = set; then | ||
4281 | withval="$with_rpath" | ||
4282 | |||
4283 | if test "x$withval" = "xno" ; then | ||
4284 | need_dash_r="" | ||
4285 | fi | ||
4286 | if test "x$withval" = "xyes" ; then | ||
4287 | need_dash_r=1 | ||
4288 | fi | ||
4289 | |||
4290 | |||
4291 | fi; | ||
4292 | |||
4293 | # Check for some target-specific stuff | ||
4294 | case "$host" in | ||
4295 | *-*-aix*) | ||
4296 | echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
4297 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
4298 | if (test -z "$blibpath"); then | ||
4299 | blibpath="/usr/lib:/lib" | ||
4300 | fi | ||
4301 | saved_LDFLAGS="$LDFLAGS" | ||
4302 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
4303 | if (test -z "$blibflags"); then | ||
4304 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
4305 | cat >conftest.$ac_ext <<_ACEOF | ||
4306 | /* confdefs.h. */ | ||
4307 | _ACEOF | ||
4308 | cat confdefs.h >>conftest.$ac_ext | ||
4309 | cat >>conftest.$ac_ext <<_ACEOF | ||
4310 | /* end confdefs.h. */ | ||
4311 | |||
4312 | int | ||
4313 | main () | ||
4314 | { | ||
4315 | |||
4316 | ; | ||
4317 | return 0; | ||
4318 | } | ||
4319 | _ACEOF | ||
4320 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4322 | (eval $ac_link) 2>conftest.er1 | ||
4323 | ac_status=$? | ||
4324 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4325 | rm -f conftest.er1 | ||
4326 | cat conftest.err >&5 | ||
4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4328 | (exit $ac_status); } && | ||
4329 | { ac_try='test -z "$ac_c_werror_flag" | ||
4330 | || test ! -s conftest.err' | ||
4331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4332 | (eval $ac_try) 2>&5 | ||
4333 | ac_status=$? | ||
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4335 | (exit $ac_status); }; } && | ||
4336 | { ac_try='test -s conftest$ac_exeext' | ||
4337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4338 | (eval $ac_try) 2>&5 | ||
4339 | ac_status=$? | ||
4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4341 | (exit $ac_status); }; }; then | ||
4342 | blibflags=$tryflags | ||
4343 | else | ||
4344 | echo "$as_me: failed program was:" >&5 | ||
4345 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4346 | |||
4347 | fi | ||
4348 | rm -f conftest.err conftest.$ac_objext \ | ||
4349 | conftest$ac_exeext conftest.$ac_ext | ||
4350 | fi | ||
4351 | done | ||
4352 | if (test -z "$blibflags"); then | ||
4353 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4354 | echo "${ECHO_T}not found" >&6 | ||
4355 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
4356 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
4357 | { (exit 1); exit 1; }; } | ||
4358 | else | ||
4359 | echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
4360 | echo "${ECHO_T}$blibflags" >&6 | ||
4361 | fi | ||
4362 | LDFLAGS="$saved_LDFLAGS" | ||
4363 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
4364 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
4365 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4367 | else | ||
4368 | cat >conftest.$ac_ext <<_ACEOF | ||
4369 | /* confdefs.h. */ | ||
4370 | _ACEOF | ||
4371 | cat confdefs.h >>conftest.$ac_ext | ||
4372 | cat >>conftest.$ac_ext <<_ACEOF | ||
4373 | /* end confdefs.h. */ | ||
4374 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
4375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4376 | #define authenticate innocuous_authenticate | ||
4377 | |||
4378 | /* System header to define __stub macros and hopefully few prototypes, | ||
4379 | which can conflict with char authenticate (); below. | ||
4380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4381 | <limits.h> exists even on freestanding compilers. */ | ||
4382 | |||
4383 | #ifdef __STDC__ | ||
4384 | # include <limits.h> | ||
4385 | #else | ||
4386 | # include <assert.h> | ||
4387 | #endif | ||
4388 | |||
4389 | #undef authenticate | ||
4390 | |||
4391 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4392 | #ifdef __cplusplus | ||
4393 | extern "C" | ||
4394 | { | ||
4395 | #endif | ||
4396 | /* We use char because int might match the return type of a gcc2 | ||
4397 | builtin and then its argument prototype would still apply. */ | ||
4398 | char authenticate (); | ||
4399 | /* The GNU C library defines this for functions which it implements | ||
4400 | to always fail with ENOSYS. Some functions are actually named | ||
4401 | something starting with __ and the normal name is an alias. */ | ||
4402 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
4403 | choke me | ||
4404 | #else | ||
4405 | char (*f) () = authenticate; | ||
4406 | #endif | ||
4407 | #ifdef __cplusplus | ||
4408 | } | ||
4409 | #endif | ||
4410 | |||
4411 | int | ||
4412 | main () | ||
4413 | { | ||
4414 | return f != authenticate; | ||
4415 | ; | ||
4416 | return 0; | ||
4417 | } | ||
4418 | _ACEOF | ||
4419 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4421 | (eval $ac_link) 2>conftest.er1 | ||
4422 | ac_status=$? | ||
4423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4424 | rm -f conftest.er1 | ||
4425 | cat conftest.err >&5 | ||
4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4427 | (exit $ac_status); } && | ||
4428 | { ac_try='test -z "$ac_c_werror_flag" | ||
4429 | || test ! -s conftest.err' | ||
4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4431 | (eval $ac_try) 2>&5 | ||
4432 | ac_status=$? | ||
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4434 | (exit $ac_status); }; } && | ||
4435 | { ac_try='test -s conftest$ac_exeext' | ||
4436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4437 | (eval $ac_try) 2>&5 | ||
4438 | ac_status=$? | ||
4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4440 | (exit $ac_status); }; }; then | ||
4441 | ac_cv_func_authenticate=yes | ||
4442 | else | ||
4443 | echo "$as_me: failed program was:" >&5 | ||
4444 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4445 | |||
4446 | ac_cv_func_authenticate=no | ||
4447 | fi | ||
4448 | rm -f conftest.err conftest.$ac_objext \ | ||
4449 | conftest$ac_exeext conftest.$ac_ext | ||
4450 | fi | ||
4451 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
4452 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
4453 | if test $ac_cv_func_authenticate = yes; then | ||
4454 | |||
4455 | cat >>confdefs.h <<\_ACEOF | ||
4456 | #define WITH_AIXAUTHENTICATE 1 | ||
4457 | _ACEOF | ||
4458 | |||
4459 | else | ||
4460 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
4461 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
4462 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
4463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4464 | else | ||
4465 | ac_check_lib_save_LIBS=$LIBS | ||
4466 | LIBS="-ls $LIBS" | ||
4467 | cat >conftest.$ac_ext <<_ACEOF | ||
4468 | /* confdefs.h. */ | ||
4469 | _ACEOF | ||
4470 | cat confdefs.h >>conftest.$ac_ext | ||
4471 | cat >>conftest.$ac_ext <<_ACEOF | ||
4472 | /* end confdefs.h. */ | ||
4473 | |||
4474 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4475 | #ifdef __cplusplus | ||
4476 | extern "C" | ||
4477 | #endif | ||
4478 | /* We use char because int might match the return type of a gcc2 | ||
4479 | builtin and then its argument prototype would still apply. */ | ||
4480 | char authenticate (); | ||
4481 | int | ||
4482 | main () | ||
4483 | { | ||
4484 | authenticate (); | ||
4485 | ; | ||
4486 | return 0; | ||
4487 | } | ||
4488 | _ACEOF | ||
4489 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4491 | (eval $ac_link) 2>conftest.er1 | ||
4492 | ac_status=$? | ||
4493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4494 | rm -f conftest.er1 | ||
4495 | cat conftest.err >&5 | ||
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4497 | (exit $ac_status); } && | ||
4498 | { ac_try='test -z "$ac_c_werror_flag" | ||
4499 | || test ! -s conftest.err' | ||
4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4501 | (eval $ac_try) 2>&5 | ||
4502 | ac_status=$? | ||
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4504 | (exit $ac_status); }; } && | ||
4505 | { ac_try='test -s conftest$ac_exeext' | ||
4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4507 | (eval $ac_try) 2>&5 | ||
4508 | ac_status=$? | ||
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4510 | (exit $ac_status); }; }; then | ||
4511 | ac_cv_lib_s_authenticate=yes | ||
4512 | else | ||
4513 | echo "$as_me: failed program was:" >&5 | ||
4514 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4515 | |||
4516 | ac_cv_lib_s_authenticate=no | ||
4517 | fi | ||
4518 | rm -f conftest.err conftest.$ac_objext \ | ||
4519 | conftest$ac_exeext conftest.$ac_ext | ||
4520 | LIBS=$ac_check_lib_save_LIBS | ||
4521 | fi | ||
4522 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
4523 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
4524 | if test $ac_cv_lib_s_authenticate = yes; then | ||
4525 | cat >>confdefs.h <<\_ACEOF | ||
4526 | #define WITH_AIXAUTHENTICATE 1 | ||
4527 | _ACEOF | ||
4528 | |||
4529 | LIBS="$LIBS -ls" | ||
4530 | |||
4531 | fi | ||
4532 | |||
4533 | |||
4534 | fi | ||
4535 | |||
4536 | echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
4537 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6 | ||
4538 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4540 | else | ||
4541 | cat >conftest.$ac_ext <<_ACEOF | ||
4542 | /* confdefs.h. */ | ||
4543 | _ACEOF | ||
4544 | cat confdefs.h >>conftest.$ac_ext | ||
4545 | cat >>conftest.$ac_ext <<_ACEOF | ||
4546 | /* end confdefs.h. */ | ||
4547 | #include <usersec.h> | ||
4548 | |||
4549 | int | ||
4550 | main () | ||
4551 | { | ||
4552 | #ifndef authenticate | ||
4553 | char *p = (char *) authenticate; | ||
4554 | #endif | ||
4555 | |||
4556 | ; | ||
4557 | return 0; | ||
4558 | } | ||
4559 | _ACEOF | ||
4560 | rm -f conftest.$ac_objext | ||
4561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4562 | (eval $ac_compile) 2>conftest.er1 | ||
4563 | ac_status=$? | ||
4564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4565 | rm -f conftest.er1 | ||
4566 | cat conftest.err >&5 | ||
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4568 | (exit $ac_status); } && | ||
4569 | { ac_try='test -z "$ac_c_werror_flag" | ||
4570 | || test ! -s conftest.err' | ||
4571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4572 | (eval $ac_try) 2>&5 | ||
4573 | ac_status=$? | ||
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4575 | (exit $ac_status); }; } && | ||
4576 | { ac_try='test -s conftest.$ac_objext' | ||
4577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4578 | (eval $ac_try) 2>&5 | ||
4579 | ac_status=$? | ||
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4581 | (exit $ac_status); }; }; then | ||
4582 | ac_cv_have_decl_authenticate=yes | ||
4583 | else | ||
4584 | echo "$as_me: failed program was:" >&5 | ||
4585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4586 | |||
4587 | ac_cv_have_decl_authenticate=no | ||
4588 | fi | ||
4589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4590 | fi | ||
4591 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
4592 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6 | ||
4593 | if test $ac_cv_have_decl_authenticate = yes; then | ||
4594 | |||
4595 | cat >>confdefs.h <<_ACEOF | ||
4596 | #define HAVE_DECL_AUTHENTICATE 1 | ||
4597 | _ACEOF | ||
4598 | |||
4599 | |||
4600 | else | ||
4601 | cat >>confdefs.h <<_ACEOF | ||
4602 | #define HAVE_DECL_AUTHENTICATE 0 | ||
4603 | _ACEOF | ||
4604 | |||
4605 | |||
4606 | fi | ||
4607 | echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
4608 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6 | ||
4609 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
4610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4611 | else | ||
4612 | cat >conftest.$ac_ext <<_ACEOF | ||
4613 | /* confdefs.h. */ | ||
4614 | _ACEOF | ||
4615 | cat confdefs.h >>conftest.$ac_ext | ||
4616 | cat >>conftest.$ac_ext <<_ACEOF | ||
4617 | /* end confdefs.h. */ | ||
4618 | #include <usersec.h> | ||
4619 | |||
4620 | int | ||
4621 | main () | ||
4622 | { | ||
4623 | #ifndef loginrestrictions | ||
4624 | char *p = (char *) loginrestrictions; | ||
4625 | #endif | ||
4626 | |||
4627 | ; | ||
4628 | return 0; | ||
4629 | } | ||
4630 | _ACEOF | ||
4631 | rm -f conftest.$ac_objext | ||
4632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4633 | (eval $ac_compile) 2>conftest.er1 | ||
4634 | ac_status=$? | ||
4635 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4636 | rm -f conftest.er1 | ||
4637 | cat conftest.err >&5 | ||
4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4639 | (exit $ac_status); } && | ||
4640 | { ac_try='test -z "$ac_c_werror_flag" | ||
4641 | || test ! -s conftest.err' | ||
4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4643 | (eval $ac_try) 2>&5 | ||
4644 | ac_status=$? | ||
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4646 | (exit $ac_status); }; } && | ||
4647 | { ac_try='test -s conftest.$ac_objext' | ||
4648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4649 | (eval $ac_try) 2>&5 | ||
4650 | ac_status=$? | ||
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4652 | (exit $ac_status); }; }; then | ||
4653 | ac_cv_have_decl_loginrestrictions=yes | ||
4654 | else | ||
4655 | echo "$as_me: failed program was:" >&5 | ||
4656 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4657 | |||
4658 | ac_cv_have_decl_loginrestrictions=no | ||
4659 | fi | ||
4660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4661 | fi | ||
4662 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
4663 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6 | ||
4664 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
4665 | |||
4666 | cat >>confdefs.h <<_ACEOF | ||
4667 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
4668 | _ACEOF | ||
4669 | |||
4670 | |||
4671 | else | ||
4672 | cat >>confdefs.h <<_ACEOF | ||
4673 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
4674 | _ACEOF | ||
4675 | |||
4676 | |||
4677 | fi | ||
4678 | echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
4679 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6 | ||
4680 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4682 | else | ||
4683 | cat >conftest.$ac_ext <<_ACEOF | ||
4684 | /* confdefs.h. */ | ||
4685 | _ACEOF | ||
4686 | cat confdefs.h >>conftest.$ac_ext | ||
4687 | cat >>conftest.$ac_ext <<_ACEOF | ||
4688 | /* end confdefs.h. */ | ||
4689 | #include <usersec.h> | ||
4690 | |||
4691 | int | ||
4692 | main () | ||
4693 | { | ||
4694 | #ifndef loginsuccess | ||
4695 | char *p = (char *) loginsuccess; | ||
4696 | #endif | ||
4697 | |||
4698 | ; | ||
4699 | return 0; | ||
4700 | } | ||
4701 | _ACEOF | ||
4702 | rm -f conftest.$ac_objext | ||
4703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4704 | (eval $ac_compile) 2>conftest.er1 | ||
4705 | ac_status=$? | ||
4706 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4707 | rm -f conftest.er1 | ||
4708 | cat conftest.err >&5 | ||
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4710 | (exit $ac_status); } && | ||
4711 | { ac_try='test -z "$ac_c_werror_flag" | ||
4712 | || test ! -s conftest.err' | ||
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4714 | (eval $ac_try) 2>&5 | ||
4715 | ac_status=$? | ||
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4717 | (exit $ac_status); }; } && | ||
4718 | { ac_try='test -s conftest.$ac_objext' | ||
4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4720 | (eval $ac_try) 2>&5 | ||
4721 | ac_status=$? | ||
4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4723 | (exit $ac_status); }; }; then | ||
4724 | ac_cv_have_decl_loginsuccess=yes | ||
4725 | else | ||
4726 | echo "$as_me: failed program was:" >&5 | ||
4727 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4728 | |||
4729 | ac_cv_have_decl_loginsuccess=no | ||
4730 | fi | ||
4731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4732 | fi | ||
4733 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
4734 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6 | ||
4735 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
4736 | |||
4737 | cat >>confdefs.h <<_ACEOF | ||
4738 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
4739 | _ACEOF | ||
4740 | |||
4741 | |||
4742 | else | ||
4743 | cat >>confdefs.h <<_ACEOF | ||
4744 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
4745 | _ACEOF | ||
4746 | |||
4747 | |||
4748 | fi | ||
4749 | echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
4750 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6 | ||
4751 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4753 | else | ||
4754 | cat >conftest.$ac_ext <<_ACEOF | ||
4755 | /* confdefs.h. */ | ||
4756 | _ACEOF | ||
4757 | cat confdefs.h >>conftest.$ac_ext | ||
4758 | cat >>conftest.$ac_ext <<_ACEOF | ||
4759 | /* end confdefs.h. */ | ||
4760 | #include <usersec.h> | ||
4761 | |||
4762 | int | ||
4763 | main () | ||
4764 | { | ||
4765 | #ifndef passwdexpired | ||
4766 | char *p = (char *) passwdexpired; | ||
4767 | #endif | ||
4768 | |||
4769 | ; | ||
4770 | return 0; | ||
4771 | } | ||
4772 | _ACEOF | ||
4773 | rm -f conftest.$ac_objext | ||
4774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4775 | (eval $ac_compile) 2>conftest.er1 | ||
4776 | ac_status=$? | ||
4777 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4778 | rm -f conftest.er1 | ||
4779 | cat conftest.err >&5 | ||
4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4781 | (exit $ac_status); } && | ||
4782 | { ac_try='test -z "$ac_c_werror_flag" | ||
4783 | || test ! -s conftest.err' | ||
4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4785 | (eval $ac_try) 2>&5 | ||
4786 | ac_status=$? | ||
4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4788 | (exit $ac_status); }; } && | ||
4789 | { ac_try='test -s conftest.$ac_objext' | ||
4790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4791 | (eval $ac_try) 2>&5 | ||
4792 | ac_status=$? | ||
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4794 | (exit $ac_status); }; }; then | ||
4795 | ac_cv_have_decl_passwdexpired=yes | ||
4796 | else | ||
4797 | echo "$as_me: failed program was:" >&5 | ||
4798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4799 | |||
4800 | ac_cv_have_decl_passwdexpired=no | ||
4801 | fi | ||
4802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4803 | fi | ||
4804 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
4805 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6 | ||
4806 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
4807 | |||
4808 | cat >>confdefs.h <<_ACEOF | ||
4809 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
4810 | _ACEOF | ||
4811 | |||
4812 | |||
4813 | else | ||
4814 | cat >>confdefs.h <<_ACEOF | ||
4815 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
4816 | _ACEOF | ||
4817 | |||
4818 | |||
4819 | fi | ||
4820 | echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
4821 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6 | ||
4822 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
4823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4824 | else | ||
4825 | cat >conftest.$ac_ext <<_ACEOF | ||
4826 | /* confdefs.h. */ | ||
4827 | _ACEOF | ||
4828 | cat confdefs.h >>conftest.$ac_ext | ||
4829 | cat >>conftest.$ac_ext <<_ACEOF | ||
4830 | /* end confdefs.h. */ | ||
4831 | #include <usersec.h> | ||
4832 | |||
4833 | int | ||
4834 | main () | ||
4835 | { | ||
4836 | #ifndef setauthdb | ||
4837 | char *p = (char *) setauthdb; | ||
4838 | #endif | ||
4839 | |||
4840 | ; | ||
4841 | return 0; | ||
4842 | } | ||
4843 | _ACEOF | ||
4844 | rm -f conftest.$ac_objext | ||
4845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4846 | (eval $ac_compile) 2>conftest.er1 | ||
4847 | ac_status=$? | ||
4848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4849 | rm -f conftest.er1 | ||
4850 | cat conftest.err >&5 | ||
4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4852 | (exit $ac_status); } && | ||
4853 | { ac_try='test -z "$ac_c_werror_flag" | ||
4854 | || test ! -s conftest.err' | ||
4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4856 | (eval $ac_try) 2>&5 | ||
4857 | ac_status=$? | ||
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4859 | (exit $ac_status); }; } && | ||
4860 | { ac_try='test -s conftest.$ac_objext' | ||
4861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4862 | (eval $ac_try) 2>&5 | ||
4863 | ac_status=$? | ||
4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4865 | (exit $ac_status); }; }; then | ||
4866 | ac_cv_have_decl_setauthdb=yes | ||
4867 | else | ||
4868 | echo "$as_me: failed program was:" >&5 | ||
4869 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4870 | |||
4871 | ac_cv_have_decl_setauthdb=no | ||
4872 | fi | ||
4873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4874 | fi | ||
4875 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
4876 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6 | ||
4877 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
4878 | |||
4879 | cat >>confdefs.h <<_ACEOF | ||
4880 | #define HAVE_DECL_SETAUTHDB 1 | ||
4881 | _ACEOF | ||
4882 | |||
4883 | |||
4884 | else | ||
4885 | cat >>confdefs.h <<_ACEOF | ||
4886 | #define HAVE_DECL_SETAUTHDB 0 | ||
4887 | _ACEOF | ||
4888 | |||
4889 | |||
4890 | fi | ||
4891 | |||
4892 | |||
4893 | echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
4894 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
4895 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4897 | else | ||
4898 | cat >conftest.$ac_ext <<_ACEOF | ||
4899 | /* confdefs.h. */ | ||
4900 | _ACEOF | ||
4901 | cat confdefs.h >>conftest.$ac_ext | ||
4902 | cat >>conftest.$ac_ext <<_ACEOF | ||
4903 | /* end confdefs.h. */ | ||
4904 | #include <usersec.h> | ||
4905 | |||
4906 | |||
4907 | int | ||
4908 | main () | ||
4909 | { | ||
4910 | #ifndef loginfailed | ||
4911 | char *p = (char *) loginfailed; | ||
4912 | #endif | ||
4913 | |||
4914 | ; | ||
4915 | return 0; | ||
4916 | } | ||
4917 | _ACEOF | ||
4918 | rm -f conftest.$ac_objext | ||
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4920 | (eval $ac_compile) 2>conftest.er1 | ||
4921 | ac_status=$? | ||
4922 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4923 | rm -f conftest.er1 | ||
4924 | cat conftest.err >&5 | ||
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4926 | (exit $ac_status); } && | ||
4927 | { ac_try='test -z "$ac_c_werror_flag" | ||
4928 | || test ! -s conftest.err' | ||
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4930 | (eval $ac_try) 2>&5 | ||
4931 | ac_status=$? | ||
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4933 | (exit $ac_status); }; } && | ||
4934 | { ac_try='test -s conftest.$ac_objext' | ||
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4936 | (eval $ac_try) 2>&5 | ||
4937 | ac_status=$? | ||
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4939 | (exit $ac_status); }; }; then | ||
4940 | ac_cv_have_decl_loginfailed=yes | ||
4941 | else | ||
4942 | echo "$as_me: failed program was:" >&5 | ||
4943 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4944 | |||
4945 | ac_cv_have_decl_loginfailed=no | ||
4946 | fi | ||
4947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4948 | fi | ||
4949 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
4950 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
4951 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
4952 | |||
4953 | cat >>confdefs.h <<_ACEOF | ||
4954 | #define HAVE_DECL_LOGINFAILED 1 | ||
4955 | _ACEOF | ||
4956 | |||
4957 | echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
4958 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
4959 | cat >conftest.$ac_ext <<_ACEOF | ||
4960 | /* confdefs.h. */ | ||
4961 | _ACEOF | ||
4962 | cat confdefs.h >>conftest.$ac_ext | ||
4963 | cat >>conftest.$ac_ext <<_ACEOF | ||
4964 | /* end confdefs.h. */ | ||
4965 | #include <usersec.h> | ||
4966 | int | ||
4967 | main () | ||
4968 | { | ||
4969 | (void)loginfailed("user","host","tty",0); | ||
4970 | ; | ||
4971 | return 0; | ||
4972 | } | ||
4973 | _ACEOF | ||
4974 | rm -f conftest.$ac_objext | ||
4975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4976 | (eval $ac_compile) 2>conftest.er1 | ||
4977 | ac_status=$? | ||
4978 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4979 | rm -f conftest.er1 | ||
4980 | cat conftest.err >&5 | ||
4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4982 | (exit $ac_status); } && | ||
4983 | { ac_try='test -z "$ac_c_werror_flag" | ||
4984 | || test ! -s conftest.err' | ||
4985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4986 | (eval $ac_try) 2>&5 | ||
4987 | ac_status=$? | ||
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4989 | (exit $ac_status); }; } && | ||
4990 | { ac_try='test -s conftest.$ac_objext' | ||
4991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4992 | (eval $ac_try) 2>&5 | ||
4993 | ac_status=$? | ||
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4995 | (exit $ac_status); }; }; then | ||
4996 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4997 | echo "${ECHO_T}yes" >&6 | ||
4998 | |||
4999 | cat >>confdefs.h <<\_ACEOF | ||
5000 | #define AIX_LOGINFAILED_4ARG 1 | ||
5001 | _ACEOF | ||
5002 | |||
5003 | else | ||
5004 | echo "$as_me: failed program was:" >&5 | ||
5005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5006 | |||
5007 | echo "$as_me:$LINENO: result: no" >&5 | ||
5008 | echo "${ECHO_T}no" >&6 | ||
5009 | |||
5010 | fi | ||
5011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5012 | else | ||
5013 | cat >>confdefs.h <<_ACEOF | ||
5014 | #define HAVE_DECL_LOGINFAILED 0 | ||
5015 | _ACEOF | ||
5016 | |||
5017 | |||
5018 | fi | ||
5019 | |||
5020 | |||
5021 | |||
5022 | for ac_func in setauthdb | ||
5023 | do | ||
5024 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5025 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5026 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5027 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5029 | else | ||
5030 | cat >conftest.$ac_ext <<_ACEOF | ||
5031 | /* confdefs.h. */ | ||
5032 | _ACEOF | ||
5033 | cat confdefs.h >>conftest.$ac_ext | ||
5034 | cat >>conftest.$ac_ext <<_ACEOF | ||
5035 | /* end confdefs.h. */ | ||
5036 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5037 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5038 | #define $ac_func innocuous_$ac_func | ||
5039 | |||
5040 | /* System header to define __stub macros and hopefully few prototypes, | ||
5041 | which can conflict with char $ac_func (); below. | ||
5042 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5043 | <limits.h> exists even on freestanding compilers. */ | ||
5044 | |||
5045 | #ifdef __STDC__ | ||
5046 | # include <limits.h> | ||
5047 | #else | ||
5048 | # include <assert.h> | ||
5049 | #endif | ||
5050 | |||
5051 | #undef $ac_func | ||
5052 | |||
5053 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5054 | #ifdef __cplusplus | ||
5055 | extern "C" | ||
5056 | { | ||
5057 | #endif | ||
5058 | /* We use char because int might match the return type of a gcc2 | ||
5059 | builtin and then its argument prototype would still apply. */ | ||
5060 | char $ac_func (); | ||
5061 | /* The GNU C library defines this for functions which it implements | ||
5062 | to always fail with ENOSYS. Some functions are actually named | ||
5063 | something starting with __ and the normal name is an alias. */ | ||
5064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5065 | choke me | ||
5066 | #else | ||
5067 | char (*f) () = $ac_func; | ||
5068 | #endif | ||
5069 | #ifdef __cplusplus | ||
5070 | } | ||
5071 | #endif | ||
5072 | |||
5073 | int | ||
5074 | main () | ||
5075 | { | ||
5076 | return f != $ac_func; | ||
5077 | ; | ||
5078 | return 0; | ||
5079 | } | ||
5080 | _ACEOF | ||
5081 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5083 | (eval $ac_link) 2>conftest.er1 | ||
5084 | ac_status=$? | ||
5085 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5086 | rm -f conftest.er1 | ||
5087 | cat conftest.err >&5 | ||
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5089 | (exit $ac_status); } && | ||
5090 | { ac_try='test -z "$ac_c_werror_flag" | ||
5091 | || test ! -s conftest.err' | ||
5092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5093 | (eval $ac_try) 2>&5 | ||
5094 | ac_status=$? | ||
5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5096 | (exit $ac_status); }; } && | ||
5097 | { ac_try='test -s conftest$ac_exeext' | ||
5098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5099 | (eval $ac_try) 2>&5 | ||
5100 | ac_status=$? | ||
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5102 | (exit $ac_status); }; }; then | ||
5103 | eval "$as_ac_var=yes" | ||
5104 | else | ||
5105 | echo "$as_me: failed program was:" >&5 | ||
5106 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5107 | |||
5108 | eval "$as_ac_var=no" | ||
5109 | fi | ||
5110 | rm -f conftest.err conftest.$ac_objext \ | ||
5111 | conftest$ac_exeext conftest.$ac_ext | ||
5112 | fi | ||
5113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5114 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5115 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5116 | cat >>confdefs.h <<_ACEOF | ||
5117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5118 | _ACEOF | ||
5119 | |||
5120 | fi | ||
5121 | done | ||
5122 | |||
5123 | check_for_aix_broken_getaddrinfo=1 | ||
5124 | |||
5125 | cat >>confdefs.h <<\_ACEOF | ||
5126 | #define BROKEN_REALPATH 1 | ||
5127 | _ACEOF | ||
5128 | |||
5129 | |||
5130 | cat >>confdefs.h <<\_ACEOF | ||
5131 | #define SETEUID_BREAKS_SETUID 1 | ||
5132 | _ACEOF | ||
5133 | |||
5134 | |||
5135 | cat >>confdefs.h <<\_ACEOF | ||
5136 | #define BROKEN_SETREUID 1 | ||
5137 | _ACEOF | ||
5138 | |||
5139 | |||
5140 | cat >>confdefs.h <<\_ACEOF | ||
5141 | #define BROKEN_SETREGID 1 | ||
5142 | _ACEOF | ||
5143 | |||
5144 | |||
5145 | cat >>confdefs.h <<\_ACEOF | ||
5146 | #define DISABLE_LASTLOG 1 | ||
5147 | _ACEOF | ||
5148 | |||
5149 | |||
5150 | cat >>confdefs.h <<\_ACEOF | ||
5151 | #define LOGIN_NEEDS_UTMPX 1 | ||
5152 | _ACEOF | ||
5153 | |||
5154 | |||
5155 | cat >>confdefs.h <<\_ACEOF | ||
5156 | #define SPT_TYPE SPT_REUSEARGV | ||
5157 | _ACEOF | ||
5158 | |||
5159 | |||
5160 | cat >>confdefs.h <<\_ACEOF | ||
5161 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
5162 | _ACEOF | ||
5163 | |||
5164 | ;; | ||
5165 | *-*-cygwin*) | ||
5166 | check_for_libcrypt_later=1 | ||
5167 | LIBS="$LIBS /usr/lib/textmode.o" | ||
5168 | |||
5169 | cat >>confdefs.h <<\_ACEOF | ||
5170 | #define HAVE_CYGWIN 1 | ||
5171 | _ACEOF | ||
5172 | |||
5173 | |||
5174 | cat >>confdefs.h <<\_ACEOF | ||
5175 | #define USE_PIPES 1 | ||
5176 | _ACEOF | ||
5177 | |||
5178 | |||
5179 | cat >>confdefs.h <<\_ACEOF | ||
5180 | #define DISABLE_SHADOW 1 | ||
5181 | _ACEOF | ||
5182 | |||
5183 | |||
5184 | cat >>confdefs.h <<\_ACEOF | ||
5185 | #define IP_TOS_IS_BROKEN 1 | ||
5186 | _ACEOF | ||
5187 | |||
5188 | |||
5189 | cat >>confdefs.h <<\_ACEOF | ||
5190 | #define NO_X11_UNIX_SOCKETS 1 | ||
5191 | _ACEOF | ||
5192 | |||
5193 | |||
5194 | cat >>confdefs.h <<\_ACEOF | ||
5195 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
5196 | _ACEOF | ||
5197 | |||
5198 | |||
5199 | cat >>confdefs.h <<\_ACEOF | ||
5200 | #define DISABLE_FD_PASSING 1 | ||
5201 | _ACEOF | ||
5202 | |||
5203 | ;; | ||
5204 | *-*-dgux*) | ||
5205 | cat >>confdefs.h <<\_ACEOF | ||
5206 | #define IP_TOS_IS_BROKEN 1 | ||
5207 | _ACEOF | ||
5208 | |||
5209 | cat >>confdefs.h <<\_ACEOF | ||
5210 | #define SETEUID_BREAKS_SETUID 1 | ||
5211 | _ACEOF | ||
5212 | |||
5213 | cat >>confdefs.h <<\_ACEOF | ||
5214 | #define BROKEN_SETREUID 1 | ||
5215 | _ACEOF | ||
5216 | |||
5217 | cat >>confdefs.h <<\_ACEOF | ||
5218 | #define BROKEN_SETREGID 1 | ||
5219 | _ACEOF | ||
5220 | |||
5221 | ;; | ||
5222 | *-*-darwin*) | ||
5223 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
5224 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
5225 | if test "$cross_compiling" = yes; then | ||
5226 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
5227 | echo "${ECHO_T}assume it is working" >&6 | ||
5228 | else | ||
5229 | cat >conftest.$ac_ext <<_ACEOF | ||
5230 | /* confdefs.h. */ | ||
5231 | _ACEOF | ||
5232 | cat confdefs.h >>conftest.$ac_ext | ||
5233 | cat >>conftest.$ac_ext <<_ACEOF | ||
5234 | /* end confdefs.h. */ | ||
5235 | #include <mach-o/dyld.h> | ||
5236 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
5237 | exit(0); | ||
5238 | else | ||
5239 | exit(1); | ||
5240 | } | ||
5241 | _ACEOF | ||
5242 | rm -f conftest$ac_exeext | ||
5243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5244 | (eval $ac_link) 2>&5 | ||
5245 | ac_status=$? | ||
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5249 | (eval $ac_try) 2>&5 | ||
5250 | ac_status=$? | ||
5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5252 | (exit $ac_status); }; }; then | ||
5253 | echo "$as_me:$LINENO: result: working" >&5 | ||
5254 | echo "${ECHO_T}working" >&6 | ||
5255 | else | ||
5256 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5257 | echo "$as_me: failed program was:" >&5 | ||
5258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5259 | |||
5260 | ( exit $ac_status ) | ||
5261 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
5262 | echo "${ECHO_T}buggy" >&6 | ||
5263 | |||
5264 | cat >>confdefs.h <<\_ACEOF | ||
5265 | #define BROKEN_GETADDRINFO 1 | ||
5266 | _ACEOF | ||
5267 | |||
5268 | fi | ||
5269 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5270 | fi | ||
5271 | cat >>confdefs.h <<\_ACEOF | ||
5272 | #define SETEUID_BREAKS_SETUID 1 | ||
5273 | _ACEOF | ||
5274 | |||
5275 | cat >>confdefs.h <<\_ACEOF | ||
5276 | #define BROKEN_SETREUID 1 | ||
5277 | _ACEOF | ||
5278 | |||
5279 | cat >>confdefs.h <<\_ACEOF | ||
5280 | #define BROKEN_SETREGID 1 | ||
5281 | _ACEOF | ||
5282 | |||
5283 | |||
5284 | cat >>confdefs.h <<_ACEOF | ||
5285 | #define BIND_8_COMPAT 1 | ||
5286 | _ACEOF | ||
5287 | |||
5288 | ;; | ||
5289 | *-*-hpux*) | ||
5290 | # first we define all of the options common to all HP-UX releases | ||
5291 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5292 | IPADDR_IN_DISPLAY=yes | ||
5293 | cat >>confdefs.h <<\_ACEOF | ||
5294 | #define USE_PIPES 1 | ||
5295 | _ACEOF | ||
5296 | |||
5297 | |||
5298 | cat >>confdefs.h <<\_ACEOF | ||
5299 | #define LOGIN_NO_ENDOPT 1 | ||
5300 | _ACEOF | ||
5301 | |||
5302 | cat >>confdefs.h <<\_ACEOF | ||
5303 | #define LOGIN_NEEDS_UTMPX 1 | ||
5304 | _ACEOF | ||
5305 | |||
5306 | |||
5307 | cat >>confdefs.h <<\_ACEOF | ||
5308 | #define LOCKED_PASSWD_STRING "*" | ||
5309 | _ACEOF | ||
5310 | |||
5311 | cat >>confdefs.h <<\_ACEOF | ||
5312 | #define SPT_TYPE SPT_PSTAT | ||
5313 | _ACEOF | ||
5314 | |||
5315 | MAIL="/var/mail/username" | ||
5316 | LIBS="$LIBS -lsec" | ||
5317 | |||
5318 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5319 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5320 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5322 | else | ||
5323 | ac_check_lib_save_LIBS=$LIBS | ||
5324 | LIBS="-lxnet $LIBS" | ||
5325 | cat >conftest.$ac_ext <<_ACEOF | ||
5326 | /* confdefs.h. */ | ||
5327 | _ACEOF | ||
5328 | cat confdefs.h >>conftest.$ac_ext | ||
5329 | cat >>conftest.$ac_ext <<_ACEOF | ||
5330 | /* end confdefs.h. */ | ||
5331 | |||
5332 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5333 | #ifdef __cplusplus | ||
5334 | extern "C" | ||
5335 | #endif | ||
5336 | /* We use char because int might match the return type of a gcc2 | ||
5337 | builtin and then its argument prototype would still apply. */ | ||
5338 | char t_error (); | ||
5339 | int | ||
5340 | main () | ||
5341 | { | ||
5342 | t_error (); | ||
5343 | ; | ||
5344 | return 0; | ||
5345 | } | ||
5346 | _ACEOF | ||
5347 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5349 | (eval $ac_link) 2>conftest.er1 | ||
5350 | ac_status=$? | ||
5351 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5352 | rm -f conftest.er1 | ||
5353 | cat conftest.err >&5 | ||
5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5355 | (exit $ac_status); } && | ||
5356 | { ac_try='test -z "$ac_c_werror_flag" | ||
5357 | || test ! -s conftest.err' | ||
5358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5359 | (eval $ac_try) 2>&5 | ||
5360 | ac_status=$? | ||
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5362 | (exit $ac_status); }; } && | ||
5363 | { ac_try='test -s conftest$ac_exeext' | ||
5364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5365 | (eval $ac_try) 2>&5 | ||
5366 | ac_status=$? | ||
5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5368 | (exit $ac_status); }; }; then | ||
5369 | ac_cv_lib_xnet_t_error=yes | ||
5370 | else | ||
5371 | echo "$as_me: failed program was:" >&5 | ||
5372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5373 | |||
5374 | ac_cv_lib_xnet_t_error=no | ||
5375 | fi | ||
5376 | rm -f conftest.err conftest.$ac_objext \ | ||
5377 | conftest$ac_exeext conftest.$ac_ext | ||
5378 | LIBS=$ac_check_lib_save_LIBS | ||
5379 | fi | ||
5380 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5381 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5382 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5383 | cat >>confdefs.h <<_ACEOF | ||
5384 | #define HAVE_LIBXNET 1 | ||
5385 | _ACEOF | ||
5386 | |||
5387 | LIBS="-lxnet $LIBS" | ||
5388 | |||
5389 | else | ||
5390 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5391 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5392 | { (exit 1); exit 1; }; } | ||
5393 | fi | ||
5394 | |||
5395 | |||
5396 | # next, we define all of the options specific to major releases | ||
5397 | case "$host" in | ||
5398 | *-*-hpux10*) | ||
5399 | if test -z "$GCC"; then | ||
5400 | CFLAGS="$CFLAGS -Ae" | ||
5401 | fi | ||
5402 | ;; | ||
5403 | *-*-hpux11*) | ||
5404 | |||
5405 | cat >>confdefs.h <<\_ACEOF | ||
5406 | #define PAM_SUN_CODEBASE 1 | ||
5407 | _ACEOF | ||
5408 | |||
5409 | |||
5410 | cat >>confdefs.h <<\_ACEOF | ||
5411 | #define DISABLE_UTMP 1 | ||
5412 | _ACEOF | ||
5413 | |||
5414 | |||
5415 | cat >>confdefs.h <<\_ACEOF | ||
5416 | #define USE_BTMP 1 | ||
5417 | _ACEOF | ||
5418 | |||
5419 | check_for_hpux_broken_getaddrinfo=1 | ||
5420 | check_for_conflicting_getspnam=1 | ||
5421 | ;; | ||
5422 | esac | ||
5423 | |||
5424 | # lastly, we define options specific to minor releases | ||
5425 | case "$host" in | ||
5426 | *-*-hpux10.26) | ||
5427 | |||
5428 | cat >>confdefs.h <<\_ACEOF | ||
5429 | #define HAVE_SECUREWARE 1 | ||
5430 | _ACEOF | ||
5431 | |||
5432 | disable_ptmx_check=yes | ||
5433 | LIBS="$LIBS -lsecpw" | ||
5434 | ;; | ||
5435 | esac | ||
5436 | ;; | ||
5437 | *-*-irix5*) | ||
5438 | PATH="$PATH:/usr/etc" | ||
5439 | |||
5440 | cat >>confdefs.h <<\_ACEOF | ||
5441 | #define BROKEN_INET_NTOA 1 | ||
5442 | _ACEOF | ||
5443 | |||
5444 | cat >>confdefs.h <<\_ACEOF | ||
5445 | #define SETEUID_BREAKS_SETUID 1 | ||
5446 | _ACEOF | ||
5447 | |||
5448 | cat >>confdefs.h <<\_ACEOF | ||
5449 | #define BROKEN_SETREUID 1 | ||
5450 | _ACEOF | ||
5451 | |||
5452 | cat >>confdefs.h <<\_ACEOF | ||
5453 | #define BROKEN_SETREGID 1 | ||
5454 | _ACEOF | ||
5455 | |||
5456 | |||
5457 | cat >>confdefs.h <<\_ACEOF | ||
5458 | #define WITH_ABBREV_NO_TTY 1 | ||
5459 | _ACEOF | ||
5460 | |||
5461 | cat >>confdefs.h <<\_ACEOF | ||
5462 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5463 | _ACEOF | ||
5464 | |||
5465 | ;; | ||
5466 | *-*-irix6*) | ||
5467 | PATH="$PATH:/usr/etc" | ||
5468 | |||
5469 | cat >>confdefs.h <<\_ACEOF | ||
5470 | #define WITH_IRIX_ARRAY 1 | ||
5471 | _ACEOF | ||
5472 | |||
5473 | |||
5474 | cat >>confdefs.h <<\_ACEOF | ||
5475 | #define WITH_IRIX_PROJECT 1 | ||
5476 | _ACEOF | ||
5477 | |||
5478 | |||
5479 | cat >>confdefs.h <<\_ACEOF | ||
5480 | #define WITH_IRIX_AUDIT 1 | ||
5481 | _ACEOF | ||
5482 | |||
5483 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
5484 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
5485 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5487 | else | ||
5488 | cat >conftest.$ac_ext <<_ACEOF | ||
5489 | /* confdefs.h. */ | ||
5490 | _ACEOF | ||
5491 | cat confdefs.h >>conftest.$ac_ext | ||
5492 | cat >>conftest.$ac_ext <<_ACEOF | ||
5493 | /* end confdefs.h. */ | ||
5494 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
5495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5496 | #define jlimit_startjob innocuous_jlimit_startjob | ||
5497 | |||
5498 | /* System header to define __stub macros and hopefully few prototypes, | ||
5499 | which can conflict with char jlimit_startjob (); below. | ||
5500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5501 | <limits.h> exists even on freestanding compilers. */ | ||
5502 | |||
5503 | #ifdef __STDC__ | ||
5504 | # include <limits.h> | ||
5505 | #else | ||
5506 | # include <assert.h> | ||
5507 | #endif | ||
5508 | |||
5509 | #undef jlimit_startjob | ||
5510 | |||
5511 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5512 | #ifdef __cplusplus | ||
5513 | extern "C" | ||
5514 | { | ||
5515 | #endif | ||
5516 | /* We use char because int might match the return type of a gcc2 | ||
5517 | builtin and then its argument prototype would still apply. */ | ||
5518 | char jlimit_startjob (); | ||
5519 | /* The GNU C library defines this for functions which it implements | ||
5520 | to always fail with ENOSYS. Some functions are actually named | ||
5521 | something starting with __ and the normal name is an alias. */ | ||
5522 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
5523 | choke me | ||
5524 | #else | ||
5525 | char (*f) () = jlimit_startjob; | ||
5526 | #endif | ||
5527 | #ifdef __cplusplus | ||
5528 | } | ||
5529 | #endif | ||
5530 | |||
5531 | int | ||
5532 | main () | ||
5533 | { | ||
5534 | return f != jlimit_startjob; | ||
5535 | ; | ||
5536 | return 0; | ||
5537 | } | ||
5538 | _ACEOF | ||
5539 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5541 | (eval $ac_link) 2>conftest.er1 | ||
5542 | ac_status=$? | ||
5543 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5544 | rm -f conftest.er1 | ||
5545 | cat conftest.err >&5 | ||
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5547 | (exit $ac_status); } && | ||
5548 | { ac_try='test -z "$ac_c_werror_flag" | ||
5549 | || test ! -s conftest.err' | ||
5550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5551 | (eval $ac_try) 2>&5 | ||
5552 | ac_status=$? | ||
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5554 | (exit $ac_status); }; } && | ||
5555 | { ac_try='test -s conftest$ac_exeext' | ||
5556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5557 | (eval $ac_try) 2>&5 | ||
5558 | ac_status=$? | ||
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5560 | (exit $ac_status); }; }; then | ||
5561 | ac_cv_func_jlimit_startjob=yes | ||
5562 | else | ||
5563 | echo "$as_me: failed program was:" >&5 | ||
5564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5565 | |||
5566 | ac_cv_func_jlimit_startjob=no | ||
5567 | fi | ||
5568 | rm -f conftest.err conftest.$ac_objext \ | ||
5569 | conftest$ac_exeext conftest.$ac_ext | ||
5570 | fi | ||
5571 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
5572 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
5573 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
5574 | |||
5575 | cat >>confdefs.h <<\_ACEOF | ||
5576 | #define WITH_IRIX_JOBS 1 | ||
5577 | _ACEOF | ||
5578 | |||
5579 | fi | ||
5580 | |||
5581 | cat >>confdefs.h <<\_ACEOF | ||
5582 | #define BROKEN_INET_NTOA 1 | ||
5583 | _ACEOF | ||
5584 | |||
5585 | cat >>confdefs.h <<\_ACEOF | ||
5586 | #define SETEUID_BREAKS_SETUID 1 | ||
5587 | _ACEOF | ||
5588 | |||
5589 | cat >>confdefs.h <<\_ACEOF | ||
5590 | #define BROKEN_SETREUID 1 | ||
5591 | _ACEOF | ||
5592 | |||
5593 | cat >>confdefs.h <<\_ACEOF | ||
5594 | #define BROKEN_SETREGID 1 | ||
5595 | _ACEOF | ||
5596 | |||
5597 | |||
5598 | cat >>confdefs.h <<\_ACEOF | ||
5599 | #define BROKEN_UPDWTMPX 1 | ||
5600 | _ACEOF | ||
5601 | |||
5602 | cat >>confdefs.h <<\_ACEOF | ||
5603 | #define WITH_ABBREV_NO_TTY 1 | ||
5604 | _ACEOF | ||
5605 | |||
5606 | cat >>confdefs.h <<\_ACEOF | ||
5607 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5608 | _ACEOF | ||
5609 | |||
5610 | ;; | ||
5611 | *-*-linux*) | ||
5612 | no_dev_ptmx=1 | ||
5613 | check_for_libcrypt_later=1 | ||
5614 | check_for_openpty_ctty_bug=1 | ||
5615 | |||
5616 | cat >>confdefs.h <<\_ACEOF | ||
5617 | #define DONT_TRY_OTHER_AF 1 | ||
5618 | _ACEOF | ||
5619 | |||
5620 | |||
5621 | cat >>confdefs.h <<\_ACEOF | ||
5622 | #define PAM_TTY_KLUDGE 1 | ||
5623 | _ACEOF | ||
5624 | |||
5625 | |||
5626 | cat >>confdefs.h <<\_ACEOF | ||
5627 | #define LOCKED_PASSWD_PREFIX "!" | ||
5628 | _ACEOF | ||
5629 | |||
5630 | cat >>confdefs.h <<\_ACEOF | ||
5631 | #define SPT_TYPE SPT_REUSEARGV | ||
5632 | _ACEOF | ||
5633 | |||
5634 | |||
5635 | cat >>confdefs.h <<\_ACEOF | ||
5636 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
5637 | _ACEOF | ||
5638 | |||
5639 | |||
5640 | cat >>confdefs.h <<\_ACEOF | ||
5641 | #define _PATH_BTMP "/var/log/btmp" | ||
5642 | _ACEOF | ||
5643 | |||
5644 | cat >>confdefs.h <<\_ACEOF | ||
5645 | #define USE_BTMP 1 | ||
5646 | _ACEOF | ||
5647 | |||
5648 | inet6_default_4in6=yes | ||
5649 | case `uname -r` in | ||
5650 | 1.*|2.0.*) | ||
5651 | |||
5652 | cat >>confdefs.h <<\_ACEOF | ||
5653 | #define BROKEN_CMSG_TYPE 1 | ||
5654 | _ACEOF | ||
5655 | |||
5656 | ;; | ||
5657 | esac | ||
5658 | # tun(4) forwarding compat code | ||
5659 | |||
5660 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
5661 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
5662 | if test "${ac_cv_header_stdc+set}" = set; then | ||
5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5664 | else | ||
5665 | cat >conftest.$ac_ext <<_ACEOF | ||
5666 | /* confdefs.h. */ | ||
5667 | _ACEOF | ||
5668 | cat confdefs.h >>conftest.$ac_ext | ||
5669 | cat >>conftest.$ac_ext <<_ACEOF | ||
5670 | /* end confdefs.h. */ | ||
5671 | #include <stdlib.h> | ||
5672 | #include <stdarg.h> | ||
5673 | #include <string.h> | ||
5674 | #include <float.h> | ||
5675 | |||
5676 | int | ||
5677 | main () | ||
5678 | { | ||
5679 | |||
5680 | ; | ||
5681 | return 0; | ||
5682 | } | ||
5683 | _ACEOF | ||
5684 | rm -f conftest.$ac_objext | ||
5685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5686 | (eval $ac_compile) 2>conftest.er1 | ||
5687 | ac_status=$? | ||
5688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5689 | rm -f conftest.er1 | ||
5690 | cat conftest.err >&5 | ||
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5692 | (exit $ac_status); } && | ||
5693 | { ac_try='test -z "$ac_c_werror_flag" | ||
5694 | || test ! -s conftest.err' | ||
5695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5696 | (eval $ac_try) 2>&5 | ||
5697 | ac_status=$? | ||
5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5699 | (exit $ac_status); }; } && | ||
5700 | { ac_try='test -s conftest.$ac_objext' | ||
5701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5702 | (eval $ac_try) 2>&5 | ||
5703 | ac_status=$? | ||
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5705 | (exit $ac_status); }; }; then | ||
5706 | ac_cv_header_stdc=yes | ||
5707 | else | ||
5708 | echo "$as_me: failed program was:" >&5 | ||
5709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5710 | |||
5711 | ac_cv_header_stdc=no | ||
5712 | fi | ||
5713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5714 | |||
5715 | if test $ac_cv_header_stdc = yes; then | ||
5716 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5717 | cat >conftest.$ac_ext <<_ACEOF | ||
5718 | /* confdefs.h. */ | ||
5719 | _ACEOF | ||
5720 | cat confdefs.h >>conftest.$ac_ext | ||
5721 | cat >>conftest.$ac_ext <<_ACEOF | ||
5722 | /* end confdefs.h. */ | ||
5723 | #include <string.h> | ||
5724 | |||
5725 | _ACEOF | ||
5726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5727 | $EGREP "memchr" >/dev/null 2>&1; then | ||
5728 | : | ||
5729 | else | ||
5730 | ac_cv_header_stdc=no | ||
5731 | fi | ||
5732 | rm -f conftest* | ||
5733 | |||
5734 | fi | ||
5735 | |||
5736 | if test $ac_cv_header_stdc = yes; then | ||
5737 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5738 | cat >conftest.$ac_ext <<_ACEOF | ||
5739 | /* confdefs.h. */ | ||
5740 | _ACEOF | ||
5741 | cat confdefs.h >>conftest.$ac_ext | ||
5742 | cat >>conftest.$ac_ext <<_ACEOF | ||
5743 | /* end confdefs.h. */ | ||
5744 | #include <stdlib.h> | ||
5745 | |||
5746 | _ACEOF | ||
5747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5748 | $EGREP "free" >/dev/null 2>&1; then | ||
5749 | : | ||
5750 | else | ||
5751 | ac_cv_header_stdc=no | ||
5752 | fi | ||
5753 | rm -f conftest* | ||
5754 | |||
5755 | fi | ||
5756 | |||
5757 | if test $ac_cv_header_stdc = yes; then | ||
5758 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5759 | if test "$cross_compiling" = yes; then | ||
5760 | : | ||
5761 | else | ||
5762 | cat >conftest.$ac_ext <<_ACEOF | ||
5763 | /* confdefs.h. */ | ||
5764 | _ACEOF | ||
5765 | cat confdefs.h >>conftest.$ac_ext | ||
5766 | cat >>conftest.$ac_ext <<_ACEOF | ||
5767 | /* end confdefs.h. */ | ||
5768 | #include <ctype.h> | ||
5769 | #if ((' ' & 0x0FF) == 0x020) | ||
5770 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5771 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5772 | #else | ||
5773 | # define ISLOWER(c) \ | ||
5774 | (('a' <= (c) && (c) <= 'i') \ | ||
5775 | || ('j' <= (c) && (c) <= 'r') \ | ||
5776 | || ('s' <= (c) && (c) <= 'z')) | ||
5777 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5778 | #endif | ||
5779 | |||
5780 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5781 | int | ||
5782 | main () | ||
5783 | { | ||
5784 | int i; | ||
5785 | for (i = 0; i < 256; i++) | ||
5786 | if (XOR (islower (i), ISLOWER (i)) | ||
5787 | || toupper (i) != TOUPPER (i)) | ||
5788 | exit(2); | ||
5789 | exit (0); | ||
5790 | } | ||
5791 | _ACEOF | ||
5792 | rm -f conftest$ac_exeext | ||
5793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5794 | (eval $ac_link) 2>&5 | ||
5795 | ac_status=$? | ||
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5797 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5799 | (eval $ac_try) 2>&5 | ||
5800 | ac_status=$? | ||
5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5802 | (exit $ac_status); }; }; then | ||
5803 | : | ||
5804 | else | ||
5805 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5806 | echo "$as_me: failed program was:" >&5 | ||
5807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5808 | |||
5809 | ( exit $ac_status ) | ||
5810 | ac_cv_header_stdc=no | ||
5811 | fi | ||
5812 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5813 | fi | ||
5814 | fi | ||
5815 | fi | ||
5816 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
5817 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
5818 | if test $ac_cv_header_stdc = yes; then | ||
5819 | |||
5820 | cat >>confdefs.h <<\_ACEOF | ||
5821 | #define STDC_HEADERS 1 | ||
5822 | _ACEOF | ||
5823 | |||
5824 | fi | ||
5825 | |||
5826 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5827 | |||
5828 | |||
5829 | |||
5830 | |||
5831 | |||
5832 | |||
5833 | |||
5834 | |||
5835 | |||
5836 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5837 | inttypes.h stdint.h unistd.h | ||
5838 | do | ||
5839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5844 | else | ||
5845 | cat >conftest.$ac_ext <<_ACEOF | ||
5846 | /* confdefs.h. */ | ||
5847 | _ACEOF | ||
5848 | cat confdefs.h >>conftest.$ac_ext | ||
5849 | cat >>conftest.$ac_ext <<_ACEOF | ||
5850 | /* end confdefs.h. */ | ||
5851 | $ac_includes_default | ||
5852 | |||
5853 | #include <$ac_header> | ||
5854 | _ACEOF | ||
5855 | rm -f conftest.$ac_objext | ||
5856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5857 | (eval $ac_compile) 2>conftest.er1 | ||
5858 | ac_status=$? | ||
5859 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5860 | rm -f conftest.er1 | ||
5861 | cat conftest.err >&5 | ||
5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5863 | (exit $ac_status); } && | ||
5864 | { ac_try='test -z "$ac_c_werror_flag" | ||
5865 | || test ! -s conftest.err' | ||
5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5867 | (eval $ac_try) 2>&5 | ||
5868 | ac_status=$? | ||
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5870 | (exit $ac_status); }; } && | ||
5871 | { ac_try='test -s conftest.$ac_objext' | ||
5872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5873 | (eval $ac_try) 2>&5 | ||
5874 | ac_status=$? | ||
5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5876 | (exit $ac_status); }; }; then | ||
5877 | eval "$as_ac_Header=yes" | ||
5878 | else | ||
5879 | echo "$as_me: failed program was:" >&5 | ||
5880 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5881 | |||
5882 | eval "$as_ac_Header=no" | ||
5883 | fi | ||
5884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5885 | fi | ||
5886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5888 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5889 | cat >>confdefs.h <<_ACEOF | ||
5890 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5891 | _ACEOF | ||
5892 | |||
5893 | fi | ||
5894 | |||
5895 | done | ||
5896 | |||
5897 | |||
5898 | |||
5899 | for ac_header in linux/if_tun.h | ||
5900 | do | ||
5901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
5905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
5906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5907 | fi | ||
5908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
5909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
5910 | else | ||
5911 | # Is the header compilable? | ||
5912 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
5914 | cat >conftest.$ac_ext <<_ACEOF | ||
5915 | /* confdefs.h. */ | ||
5916 | _ACEOF | ||
5917 | cat confdefs.h >>conftest.$ac_ext | ||
5918 | cat >>conftest.$ac_ext <<_ACEOF | ||
5919 | /* end confdefs.h. */ | ||
5920 | $ac_includes_default | ||
5921 | #include <$ac_header> | ||
5922 | _ACEOF | ||
5923 | rm -f conftest.$ac_objext | ||
5924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5925 | (eval $ac_compile) 2>conftest.er1 | ||
5926 | ac_status=$? | ||
5927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5928 | rm -f conftest.er1 | ||
5929 | cat conftest.err >&5 | ||
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5931 | (exit $ac_status); } && | ||
5932 | { ac_try='test -z "$ac_c_werror_flag" | ||
5933 | || test ! -s conftest.err' | ||
5934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5935 | (eval $ac_try) 2>&5 | ||
5936 | ac_status=$? | ||
5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5938 | (exit $ac_status); }; } && | ||
5939 | { ac_try='test -s conftest.$ac_objext' | ||
5940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5941 | (eval $ac_try) 2>&5 | ||
5942 | ac_status=$? | ||
5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5944 | (exit $ac_status); }; }; then | ||
5945 | ac_header_compiler=yes | ||
5946 | else | ||
5947 | echo "$as_me: failed program was:" >&5 | ||
5948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5949 | |||
5950 | ac_header_compiler=no | ||
5951 | fi | ||
5952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5953 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5954 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
5955 | |||
5956 | # Is the header present? | ||
5957 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5958 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
5959 | cat >conftest.$ac_ext <<_ACEOF | ||
5960 | /* confdefs.h. */ | ||
5961 | _ACEOF | ||
5962 | cat confdefs.h >>conftest.$ac_ext | ||
5963 | cat >>conftest.$ac_ext <<_ACEOF | ||
5964 | /* end confdefs.h. */ | ||
5965 | #include <$ac_header> | ||
5966 | _ACEOF | ||
5967 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5968 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5969 | ac_status=$? | ||
5970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5971 | rm -f conftest.er1 | ||
5972 | cat conftest.err >&5 | ||
5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5974 | (exit $ac_status); } >/dev/null; then | ||
5975 | if test -s conftest.err; then | ||
5976 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
5977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
5978 | else | ||
5979 | ac_cpp_err= | ||
5980 | fi | ||
5981 | else | ||
5982 | ac_cpp_err=yes | ||
5983 | fi | ||
5984 | if test -z "$ac_cpp_err"; then | ||
5985 | ac_header_preproc=yes | ||
5986 | else | ||
5987 | echo "$as_me: failed program was:" >&5 | ||
5988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5989 | |||
5990 | ac_header_preproc=no | ||
5991 | fi | ||
5992 | rm -f conftest.err conftest.$ac_ext | ||
5993 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5994 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
5995 | |||
5996 | # So? What about this header? | ||
5997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5998 | yes:no: ) | ||
5999 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6000 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6001 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6002 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6003 | ac_header_preproc=yes | ||
6004 | ;; | ||
6005 | no:yes:* ) | ||
6006 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6007 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6008 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6009 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6010 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6011 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6012 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6013 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6015 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6016 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6017 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6018 | ( | ||
6019 | cat <<\_ASBOX | ||
6020 | ## ------------------------------------------- ## | ||
6021 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
6022 | ## ------------------------------------------- ## | ||
6023 | _ASBOX | ||
6024 | ) | | ||
6025 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6026 | ;; | ||
6027 | esac | ||
6028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6032 | else | ||
6033 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6034 | fi | ||
6035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6037 | |||
6038 | fi | ||
6039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6040 | cat >>confdefs.h <<_ACEOF | ||
6041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6042 | _ACEOF | ||
6043 | |||
6044 | fi | ||
6045 | |||
6046 | done | ||
6047 | |||
6048 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
6049 | |||
6050 | cat >>confdefs.h <<\_ACEOF | ||
6051 | #define SSH_TUN_LINUX 1 | ||
6052 | _ACEOF | ||
6053 | |||
6054 | |||
6055 | cat >>confdefs.h <<\_ACEOF | ||
6056 | #define SSH_TUN_COMPAT_AF 1 | ||
6057 | _ACEOF | ||
6058 | |||
6059 | |||
6060 | cat >>confdefs.h <<\_ACEOF | ||
6061 | #define SSH_TUN_PREPEND_AF 1 | ||
6062 | _ACEOF | ||
6063 | |||
6064 | fi | ||
6065 | ;; | ||
6066 | mips-sony-bsd|mips-sony-newsos4) | ||
6067 | |||
6068 | cat >>confdefs.h <<\_ACEOF | ||
6069 | #define NEED_SETPGRP 1 | ||
6070 | _ACEOF | ||
6071 | |||
6072 | SONY=1 | ||
6073 | ;; | ||
6074 | *-*-netbsd*) | ||
6075 | check_for_libcrypt_before=1 | ||
6076 | if test "x$withval" != "xno" ; then | ||
6077 | need_dash_r=1 | ||
6078 | fi | ||
6079 | |||
6080 | cat >>confdefs.h <<\_ACEOF | ||
6081 | #define SSH_TUN_FREEBSD 1 | ||
6082 | _ACEOF | ||
6083 | |||
6084 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6085 | echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
6086 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6 | ||
6087 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6089 | fi | ||
6090 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
6091 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6 | ||
6092 | else | ||
6093 | # Is the header compilable? | ||
6094 | echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
6095 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6 | ||
6096 | cat >conftest.$ac_ext <<_ACEOF | ||
6097 | /* confdefs.h. */ | ||
6098 | _ACEOF | ||
6099 | cat confdefs.h >>conftest.$ac_ext | ||
6100 | cat >>conftest.$ac_ext <<_ACEOF | ||
6101 | /* end confdefs.h. */ | ||
6102 | $ac_includes_default | ||
6103 | #include <net/if_tap.h> | ||
6104 | _ACEOF | ||
6105 | rm -f conftest.$ac_objext | ||
6106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6107 | (eval $ac_compile) 2>conftest.er1 | ||
6108 | ac_status=$? | ||
6109 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6110 | rm -f conftest.er1 | ||
6111 | cat conftest.err >&5 | ||
6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6113 | (exit $ac_status); } && | ||
6114 | { ac_try='test -z "$ac_c_werror_flag" | ||
6115 | || test ! -s conftest.err' | ||
6116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6117 | (eval $ac_try) 2>&5 | ||
6118 | ac_status=$? | ||
6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6120 | (exit $ac_status); }; } && | ||
6121 | { ac_try='test -s conftest.$ac_objext' | ||
6122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6123 | (eval $ac_try) 2>&5 | ||
6124 | ac_status=$? | ||
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6126 | (exit $ac_status); }; }; then | ||
6127 | ac_header_compiler=yes | ||
6128 | else | ||
6129 | echo "$as_me: failed program was:" >&5 | ||
6130 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6131 | |||
6132 | ac_header_compiler=no | ||
6133 | fi | ||
6134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6136 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6137 | |||
6138 | # Is the header present? | ||
6139 | echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
6140 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6 | ||
6141 | cat >conftest.$ac_ext <<_ACEOF | ||
6142 | /* confdefs.h. */ | ||
6143 | _ACEOF | ||
6144 | cat confdefs.h >>conftest.$ac_ext | ||
6145 | cat >>conftest.$ac_ext <<_ACEOF | ||
6146 | /* end confdefs.h. */ | ||
6147 | #include <net/if_tap.h> | ||
6148 | _ACEOF | ||
6149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6151 | ac_status=$? | ||
6152 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6153 | rm -f conftest.er1 | ||
6154 | cat conftest.err >&5 | ||
6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6156 | (exit $ac_status); } >/dev/null; then | ||
6157 | if test -s conftest.err; then | ||
6158 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
6160 | else | ||
6161 | ac_cpp_err= | ||
6162 | fi | ||
6163 | else | ||
6164 | ac_cpp_err=yes | ||
6165 | fi | ||
6166 | if test -z "$ac_cpp_err"; then | ||
6167 | ac_header_preproc=yes | ||
6168 | else | ||
6169 | echo "$as_me: failed program was:" >&5 | ||
6170 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6171 | |||
6172 | ac_header_preproc=no | ||
6173 | fi | ||
6174 | rm -f conftest.err conftest.$ac_ext | ||
6175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6176 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6177 | |||
6178 | # So? What about this header? | ||
6179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6180 | yes:no: ) | ||
6181 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6182 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6183 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
6184 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
6185 | ac_header_preproc=yes | ||
6186 | ;; | ||
6187 | no:yes:* ) | ||
6188 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
6189 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
6190 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
6191 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
6192 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
6193 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
6194 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
6195 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6196 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
6197 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
6198 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
6199 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
6200 | ( | ||
6201 | cat <<\_ASBOX | ||
6202 | ## ------------------------------------------- ## | ||
6203 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
6204 | ## ------------------------------------------- ## | ||
6205 | _ASBOX | ||
6206 | ) | | ||
6207 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6208 | ;; | ||
6209 | esac | ||
6210 | echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
6211 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6 | ||
6212 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6214 | else | ||
6215 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
6216 | fi | ||
6217 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
6218 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6 | ||
6219 | |||
6220 | fi | ||
6221 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
6222 | : | ||
6223 | else | ||
6224 | |||
6225 | cat >>confdefs.h <<\_ACEOF | ||
6226 | #define SSH_TUN_NO_L2 1 | ||
6227 | _ACEOF | ||
6228 | |||
6229 | fi | ||
6230 | |||
6231 | |||
6232 | |||
6233 | cat >>confdefs.h <<\_ACEOF | ||
6234 | #define SSH_TUN_PREPEND_AF 1 | ||
6235 | _ACEOF | ||
6236 | |||
6237 | ;; | ||
6238 | *-*-freebsd*) | ||
6239 | check_for_libcrypt_later=1 | ||
6240 | |||
6241 | cat >>confdefs.h <<\_ACEOF | ||
6242 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
6243 | _ACEOF | ||
6244 | |||
6245 | |||
6246 | cat >>confdefs.h <<\_ACEOF | ||
6247 | #define SSH_TUN_FREEBSD 1 | ||
6248 | _ACEOF | ||
6249 | |||
6250 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6251 | echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
6252 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6 | ||
6253 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6255 | fi | ||
6256 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
6257 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6 | ||
6258 | else | ||
6259 | # Is the header compilable? | ||
6260 | echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
6261 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6 | ||
6262 | cat >conftest.$ac_ext <<_ACEOF | ||
6263 | /* confdefs.h. */ | ||
6264 | _ACEOF | ||
6265 | cat confdefs.h >>conftest.$ac_ext | ||
6266 | cat >>conftest.$ac_ext <<_ACEOF | ||
6267 | /* end confdefs.h. */ | ||
6268 | $ac_includes_default | ||
6269 | #include <net/if_tap.h> | ||
6270 | _ACEOF | ||
6271 | rm -f conftest.$ac_objext | ||
6272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6273 | (eval $ac_compile) 2>conftest.er1 | ||
6274 | ac_status=$? | ||
6275 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6276 | rm -f conftest.er1 | ||
6277 | cat conftest.err >&5 | ||
6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6279 | (exit $ac_status); } && | ||
6280 | { ac_try='test -z "$ac_c_werror_flag" | ||
6281 | || test ! -s conftest.err' | ||
6282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6283 | (eval $ac_try) 2>&5 | ||
6284 | ac_status=$? | ||
6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6286 | (exit $ac_status); }; } && | ||
6287 | { ac_try='test -s conftest.$ac_objext' | ||
6288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6289 | (eval $ac_try) 2>&5 | ||
6290 | ac_status=$? | ||
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6292 | (exit $ac_status); }; }; then | ||
6293 | ac_header_compiler=yes | ||
6294 | else | ||
6295 | echo "$as_me: failed program was:" >&5 | ||
6296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6297 | |||
6298 | ac_header_compiler=no | ||
6299 | fi | ||
6300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6301 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6302 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6303 | |||
6304 | # Is the header present? | ||
6305 | echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
6306 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6 | ||
6307 | cat >conftest.$ac_ext <<_ACEOF | ||
6308 | /* confdefs.h. */ | ||
6309 | _ACEOF | ||
6310 | cat confdefs.h >>conftest.$ac_ext | ||
6311 | cat >>conftest.$ac_ext <<_ACEOF | ||
6312 | /* end confdefs.h. */ | ||
6313 | #include <net/if_tap.h> | ||
6314 | _ACEOF | ||
6315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6317 | ac_status=$? | ||
6318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6319 | rm -f conftest.er1 | ||
6320 | cat conftest.err >&5 | ||
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6322 | (exit $ac_status); } >/dev/null; then | ||
6323 | if test -s conftest.err; then | ||
6324 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
6326 | else | ||
6327 | ac_cpp_err= | ||
6328 | fi | ||
6329 | else | ||
6330 | ac_cpp_err=yes | ||
6331 | fi | ||
6332 | if test -z "$ac_cpp_err"; then | ||
6333 | ac_header_preproc=yes | ||
6334 | else | ||
6335 | echo "$as_me: failed program was:" >&5 | ||
6336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6337 | |||
6338 | ac_header_preproc=no | ||
6339 | fi | ||
6340 | rm -f conftest.err conftest.$ac_ext | ||
6341 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6342 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6343 | |||
6344 | # So? What about this header? | ||
6345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6346 | yes:no: ) | ||
6347 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6348 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6349 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
6350 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
6351 | ac_header_preproc=yes | ||
6352 | ;; | ||
6353 | no:yes:* ) | ||
6354 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
6355 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
6356 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
6357 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
6358 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
6359 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
6360 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
6361 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6362 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
6363 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
6364 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
6365 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
6366 | ( | ||
6367 | cat <<\_ASBOX | ||
6368 | ## ------------------------------------------- ## | ||
6369 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
6370 | ## ------------------------------------------- ## | ||
6371 | _ASBOX | ||
6372 | ) | | ||
6373 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6374 | ;; | ||
6375 | esac | ||
6376 | echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
6377 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6 | ||
6378 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
6379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6380 | else | ||
6381 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
6382 | fi | ||
6383 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
6384 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6 | ||
6385 | |||
6386 | fi | ||
6387 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
6388 | : | ||
6389 | else | ||
6390 | |||
6391 | cat >>confdefs.h <<\_ACEOF | ||
6392 | #define SSH_TUN_NO_L2 1 | ||
6393 | _ACEOF | ||
6394 | |||
6395 | fi | ||
6396 | |||
6397 | |||
6398 | ;; | ||
6399 | *-*-bsdi*) | ||
6400 | cat >>confdefs.h <<\_ACEOF | ||
6401 | #define SETEUID_BREAKS_SETUID 1 | ||
6402 | _ACEOF | ||
6403 | |||
6404 | cat >>confdefs.h <<\_ACEOF | ||
6405 | #define BROKEN_SETREUID 1 | ||
6406 | _ACEOF | ||
6407 | |||
6408 | cat >>confdefs.h <<\_ACEOF | ||
6409 | #define BROKEN_SETREGID 1 | ||
6410 | _ACEOF | ||
6411 | |||
6412 | ;; | ||
6413 | *-next-*) | ||
6414 | conf_lastlog_location="/usr/adm/lastlog" | ||
6415 | conf_utmp_location=/etc/utmp | ||
6416 | conf_wtmp_location=/usr/adm/wtmp | ||
6417 | MAIL=/usr/spool/mail | ||
6418 | |||
6419 | cat >>confdefs.h <<\_ACEOF | ||
6420 | #define HAVE_NEXT 1 | ||
6421 | _ACEOF | ||
6422 | |||
6423 | cat >>confdefs.h <<\_ACEOF | ||
6424 | #define BROKEN_REALPATH 1 | ||
6425 | _ACEOF | ||
6426 | |||
6427 | cat >>confdefs.h <<\_ACEOF | ||
6428 | #define USE_PIPES 1 | ||
6429 | _ACEOF | ||
6430 | |||
6431 | |||
6432 | cat >>confdefs.h <<\_ACEOF | ||
6433 | #define BROKEN_SAVED_UIDS 1 | ||
6434 | _ACEOF | ||
6435 | |||
6436 | ;; | ||
6437 | *-*-openbsd*) | ||
6438 | |||
6439 | cat >>confdefs.h <<\_ACEOF | ||
6440 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
6441 | _ACEOF | ||
6442 | |||
6443 | |||
6444 | cat >>confdefs.h <<\_ACEOF | ||
6445 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
6446 | _ACEOF | ||
6447 | |||
6448 | |||
6449 | cat >>confdefs.h <<\_ACEOF | ||
6450 | #define SSH_TUN_OPENBSD 1 | ||
6451 | _ACEOF | ||
6452 | |||
6453 | ;; | ||
6454 | *-*-solaris*) | ||
6455 | if test "x$withval" != "xno" ; then | ||
6456 | need_dash_r=1 | ||
6457 | fi | ||
6458 | cat >>confdefs.h <<\_ACEOF | ||
6459 | #define PAM_SUN_CODEBASE 1 | ||
6460 | _ACEOF | ||
6461 | |||
6462 | cat >>confdefs.h <<\_ACEOF | ||
6463 | #define LOGIN_NEEDS_UTMPX 1 | ||
6464 | _ACEOF | ||
6465 | |||
6466 | |||
6467 | cat >>confdefs.h <<\_ACEOF | ||
6468 | #define LOGIN_NEEDS_TERM 1 | ||
6469 | _ACEOF | ||
6470 | |||
6471 | cat >>confdefs.h <<\_ACEOF | ||
6472 | #define PAM_TTY_KLUDGE 1 | ||
6473 | _ACEOF | ||
6474 | |||
6475 | |||
6476 | cat >>confdefs.h <<\_ACEOF | ||
6477 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
6478 | _ACEOF | ||
6479 | |||
6480 | cat >>confdefs.h <<\_ACEOF | ||
6481 | #define LOCKED_PASSWD_STRING "*LK*" | ||
6482 | _ACEOF | ||
6483 | |||
6484 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
6485 | |||
6486 | cat >>confdefs.h <<\_ACEOF | ||
6487 | #define SSHD_ACQUIRES_CTTY 1 | ||
6488 | _ACEOF | ||
6489 | |||
6490 | external_path_file=/etc/default/login | ||
6491 | # hardwire lastlog location (can't detect it on some versions) | ||
6492 | conf_lastlog_location="/var/adm/lastlog" | ||
6493 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
6494 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
6495 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
6496 | if test "$sol2ver" -ge 8; then | ||
6497 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6498 | echo "${ECHO_T}yes" >&6 | ||
6499 | cat >>confdefs.h <<\_ACEOF | ||
6500 | #define DISABLE_UTMP 1 | ||
6501 | _ACEOF | ||
6502 | |||
6503 | |||
6504 | cat >>confdefs.h <<\_ACEOF | ||
6505 | #define DISABLE_WTMP 1 | ||
6506 | _ACEOF | ||
6507 | |||
6508 | else | ||
6509 | echo "$as_me:$LINENO: result: no" >&5 | ||
6510 | echo "${ECHO_T}no" >&6 | ||
6511 | fi | ||
6512 | ;; | ||
6513 | *-*-sunos4*) | ||
6514 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
6515 | |||
6516 | for ac_func in getpwanam | ||
6517 | do | ||
6518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6519 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6521 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6523 | else | ||
6524 | cat >conftest.$ac_ext <<_ACEOF | ||
6525 | /* confdefs.h. */ | ||
6526 | _ACEOF | ||
6527 | cat confdefs.h >>conftest.$ac_ext | ||
6528 | cat >>conftest.$ac_ext <<_ACEOF | ||
6529 | /* end confdefs.h. */ | ||
6530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6532 | #define $ac_func innocuous_$ac_func | ||
6533 | |||
6534 | /* System header to define __stub macros and hopefully few prototypes, | ||
6535 | which can conflict with char $ac_func (); below. | ||
6536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6537 | <limits.h> exists even on freestanding compilers. */ | ||
6538 | |||
6539 | #ifdef __STDC__ | ||
6540 | # include <limits.h> | ||
6541 | #else | ||
6542 | # include <assert.h> | ||
6543 | #endif | ||
6544 | |||
6545 | #undef $ac_func | ||
6546 | |||
6547 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6548 | #ifdef __cplusplus | ||
6549 | extern "C" | ||
6550 | { | ||
6551 | #endif | ||
6552 | /* We use char because int might match the return type of a gcc2 | ||
6553 | builtin and then its argument prototype would still apply. */ | ||
6554 | char $ac_func (); | ||
6555 | /* The GNU C library defines this for functions which it implements | ||
6556 | to always fail with ENOSYS. Some functions are actually named | ||
6557 | something starting with __ and the normal name is an alias. */ | ||
6558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6559 | choke me | ||
6560 | #else | ||
6561 | char (*f) () = $ac_func; | ||
6562 | #endif | ||
6563 | #ifdef __cplusplus | ||
6564 | } | ||
6565 | #endif | ||
6566 | |||
6567 | int | ||
6568 | main () | ||
6569 | { | ||
6570 | return f != $ac_func; | ||
6571 | ; | ||
6572 | return 0; | ||
6573 | } | ||
6574 | _ACEOF | ||
6575 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6577 | (eval $ac_link) 2>conftest.er1 | ||
6578 | ac_status=$? | ||
6579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6580 | rm -f conftest.er1 | ||
6581 | cat conftest.err >&5 | ||
6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6583 | (exit $ac_status); } && | ||
6584 | { ac_try='test -z "$ac_c_werror_flag" | ||
6585 | || test ! -s conftest.err' | ||
6586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6587 | (eval $ac_try) 2>&5 | ||
6588 | ac_status=$? | ||
6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6590 | (exit $ac_status); }; } && | ||
6591 | { ac_try='test -s conftest$ac_exeext' | ||
6592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6593 | (eval $ac_try) 2>&5 | ||
6594 | ac_status=$? | ||
6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6596 | (exit $ac_status); }; }; then | ||
6597 | eval "$as_ac_var=yes" | ||
6598 | else | ||
6599 | echo "$as_me: failed program was:" >&5 | ||
6600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6601 | |||
6602 | eval "$as_ac_var=no" | ||
6603 | fi | ||
6604 | rm -f conftest.err conftest.$ac_objext \ | ||
6605 | conftest$ac_exeext conftest.$ac_ext | ||
6606 | fi | ||
6607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6608 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6610 | cat >>confdefs.h <<_ACEOF | ||
6611 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6612 | _ACEOF | ||
6613 | |||
6614 | fi | ||
6615 | done | ||
6616 | |||
6617 | cat >>confdefs.h <<\_ACEOF | ||
6618 | #define PAM_SUN_CODEBASE 1 | ||
6619 | _ACEOF | ||
6620 | |||
6621 | conf_utmp_location=/etc/utmp | ||
6622 | conf_wtmp_location=/var/adm/wtmp | ||
6623 | conf_lastlog_location=/var/adm/lastlog | ||
6624 | cat >>confdefs.h <<\_ACEOF | ||
6625 | #define USE_PIPES 1 | ||
6626 | _ACEOF | ||
6627 | |||
6628 | ;; | ||
6629 | *-ncr-sysv*) | ||
6630 | LIBS="$LIBS -lc89" | ||
6631 | cat >>confdefs.h <<\_ACEOF | ||
6632 | #define USE_PIPES 1 | ||
6633 | _ACEOF | ||
6634 | |||
6635 | cat >>confdefs.h <<\_ACEOF | ||
6636 | #define SSHD_ACQUIRES_CTTY 1 | ||
6637 | _ACEOF | ||
6638 | |||
6639 | cat >>confdefs.h <<\_ACEOF | ||
6640 | #define SETEUID_BREAKS_SETUID 1 | ||
6641 | _ACEOF | ||
6642 | |||
6643 | cat >>confdefs.h <<\_ACEOF | ||
6644 | #define BROKEN_SETREUID 1 | ||
6645 | _ACEOF | ||
6646 | |||
6647 | cat >>confdefs.h <<\_ACEOF | ||
6648 | #define BROKEN_SETREGID 1 | ||
6649 | _ACEOF | ||
6650 | |||
6651 | ;; | ||
6652 | *-sni-sysv*) | ||
6653 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
6654 | |||
6655 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
6656 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
6657 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
6658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6659 | else | ||
6660 | ac_check_lib_save_LIBS=$LIBS | ||
6661 | LIBS="-ldl $LIBS" | ||
6662 | cat >conftest.$ac_ext <<_ACEOF | ||
6663 | /* confdefs.h. */ | ||
6664 | _ACEOF | ||
6665 | cat confdefs.h >>conftest.$ac_ext | ||
6666 | cat >>conftest.$ac_ext <<_ACEOF | ||
6667 | /* end confdefs.h. */ | ||
6668 | |||
6669 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6670 | #ifdef __cplusplus | ||
6671 | extern "C" | ||
6672 | #endif | ||
6673 | /* We use char because int might match the return type of a gcc2 | ||
6674 | builtin and then its argument prototype would still apply. */ | ||
6675 | char dlsym (); | ||
6676 | int | ||
6677 | main () | ||
6678 | { | ||
6679 | dlsym (); | ||
6680 | ; | ||
6681 | return 0; | ||
6682 | } | ||
6683 | _ACEOF | ||
6684 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6686 | (eval $ac_link) 2>conftest.er1 | ||
6687 | ac_status=$? | ||
6688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6689 | rm -f conftest.er1 | ||
6690 | cat conftest.err >&5 | ||
6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6692 | (exit $ac_status); } && | ||
6693 | { ac_try='test -z "$ac_c_werror_flag" | ||
6694 | || test ! -s conftest.err' | ||
6695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6696 | (eval $ac_try) 2>&5 | ||
6697 | ac_status=$? | ||
6698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6699 | (exit $ac_status); }; } && | ||
6700 | { ac_try='test -s conftest$ac_exeext' | ||
6701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6702 | (eval $ac_try) 2>&5 | ||
6703 | ac_status=$? | ||
6704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6705 | (exit $ac_status); }; }; then | ||
6706 | ac_cv_lib_dl_dlsym=yes | ||
6707 | else | ||
6708 | echo "$as_me: failed program was:" >&5 | ||
6709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6710 | |||
6711 | ac_cv_lib_dl_dlsym=no | ||
6712 | fi | ||
6713 | rm -f conftest.err conftest.$ac_objext \ | ||
6714 | conftest$ac_exeext conftest.$ac_ext | ||
6715 | LIBS=$ac_check_lib_save_LIBS | ||
6716 | fi | ||
6717 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
6718 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
6719 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
6720 | cat >>confdefs.h <<_ACEOF | ||
6721 | #define HAVE_LIBDL 1 | ||
6722 | _ACEOF | ||
6723 | |||
6724 | LIBS="-ldl $LIBS" | ||
6725 | |||
6726 | fi | ||
6727 | |||
6728 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
6729 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
6730 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
6731 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
6732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6733 | else | ||
6734 | ac_check_lib_save_LIBS=$LIBS | ||
6735 | LIBS="-lresolv $LIBS" | ||
6736 | cat >conftest.$ac_ext <<_ACEOF | ||
6737 | /* confdefs.h. */ | ||
6738 | _ACEOF | ||
6739 | cat confdefs.h >>conftest.$ac_ext | ||
6740 | cat >>conftest.$ac_ext <<_ACEOF | ||
6741 | /* end confdefs.h. */ | ||
6742 | |||
6743 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6744 | #ifdef __cplusplus | ||
6745 | extern "C" | ||
6746 | #endif | ||
6747 | /* We use char because int might match the return type of a gcc2 | ||
6748 | builtin and then its argument prototype would still apply. */ | ||
6749 | char res_query (); | ||
6750 | int | ||
6751 | main () | ||
6752 | { | ||
6753 | res_query (); | ||
6754 | ; | ||
6755 | return 0; | ||
6756 | } | ||
6757 | _ACEOF | ||
6758 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6760 | (eval $ac_link) 2>conftest.er1 | ||
6761 | ac_status=$? | ||
6762 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6763 | rm -f conftest.er1 | ||
6764 | cat conftest.err >&5 | ||
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6766 | (exit $ac_status); } && | ||
6767 | { ac_try='test -z "$ac_c_werror_flag" | ||
6768 | || test ! -s conftest.err' | ||
6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6770 | (eval $ac_try) 2>&5 | ||
6771 | ac_status=$? | ||
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6773 | (exit $ac_status); }; } && | ||
6774 | { ac_try='test -s conftest$ac_exeext' | ||
6775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6776 | (eval $ac_try) 2>&5 | ||
6777 | ac_status=$? | ||
6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6779 | (exit $ac_status); }; }; then | ||
6780 | ac_cv_lib_resolv_res_query=yes | ||
6781 | else | ||
6782 | echo "$as_me: failed program was:" >&5 | ||
6783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6784 | |||
6785 | ac_cv_lib_resolv_res_query=no | ||
6786 | fi | ||
6787 | rm -f conftest.err conftest.$ac_objext \ | ||
6788 | conftest$ac_exeext conftest.$ac_ext | ||
6789 | LIBS=$ac_check_lib_save_LIBS | ||
6790 | fi | ||
6791 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
6792 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6 | ||
6793 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
6794 | LIBS="$LIBS -lresolv" | ||
6795 | fi | ||
6796 | |||
6797 | IPADDR_IN_DISPLAY=yes | ||
6798 | cat >>confdefs.h <<\_ACEOF | ||
6799 | #define USE_PIPES 1 | ||
6800 | _ACEOF | ||
6801 | |||
6802 | cat >>confdefs.h <<\_ACEOF | ||
6803 | #define IP_TOS_IS_BROKEN 1 | ||
6804 | _ACEOF | ||
6805 | |||
6806 | cat >>confdefs.h <<\_ACEOF | ||
6807 | #define SETEUID_BREAKS_SETUID 1 | ||
6808 | _ACEOF | ||
6809 | |||
6810 | cat >>confdefs.h <<\_ACEOF | ||
6811 | #define BROKEN_SETREUID 1 | ||
6812 | _ACEOF | ||
6813 | |||
6814 | cat >>confdefs.h <<\_ACEOF | ||
6815 | #define BROKEN_SETREGID 1 | ||
6816 | _ACEOF | ||
6817 | |||
6818 | cat >>confdefs.h <<\_ACEOF | ||
6819 | #define SSHD_ACQUIRES_CTTY 1 | ||
6820 | _ACEOF | ||
6821 | |||
6822 | external_path_file=/etc/default/login | ||
6823 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
6824 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
6825 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
6826 | ;; | ||
6827 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
6828 | *-*-sysv4.2*) | ||
6829 | CFLAGS="$CFLAGS -Dva_list=_VA_LIST" | ||
6830 | cat >>confdefs.h <<\_ACEOF | ||
6831 | #define USE_PIPES 1 | ||
6832 | _ACEOF | ||
6833 | |||
6834 | cat >>confdefs.h <<\_ACEOF | ||
6835 | #define SETEUID_BREAKS_SETUID 1 | ||
6836 | _ACEOF | ||
6837 | |||
6838 | cat >>confdefs.h <<\_ACEOF | ||
6839 | #define BROKEN_SETREUID 1 | ||
6840 | _ACEOF | ||
6841 | |||
6842 | cat >>confdefs.h <<\_ACEOF | ||
6843 | #define BROKEN_SETREGID 1 | ||
6844 | _ACEOF | ||
6845 | |||
6846 | |||
6847 | cat >>confdefs.h <<\_ACEOF | ||
6848 | #define PASSWD_NEEDS_USERNAME 1 | ||
6849 | _ACEOF | ||
6850 | |||
6851 | cat >>confdefs.h <<\_ACEOF | ||
6852 | #define LOCKED_PASSWD_STRING "*LK*" | ||
6853 | _ACEOF | ||
6854 | |||
6855 | ;; | ||
6856 | # UnixWare 7.x, OpenUNIX 8 | ||
6857 | *-*-sysv5*) | ||
6858 | check_for_libcrypt_later=1 | ||
6859 | |||
6860 | cat >>confdefs.h <<\_ACEOF | ||
6861 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
6862 | _ACEOF | ||
6863 | |||
6864 | cat >>confdefs.h <<\_ACEOF | ||
6865 | #define USE_PIPES 1 | ||
6866 | _ACEOF | ||
6867 | |||
6868 | cat >>confdefs.h <<\_ACEOF | ||
6869 | #define SETEUID_BREAKS_SETUID 1 | ||
6870 | _ACEOF | ||
6871 | |||
6872 | cat >>confdefs.h <<\_ACEOF | ||
6873 | #define BROKEN_SETREUID 1 | ||
6874 | _ACEOF | ||
6875 | |||
6876 | cat >>confdefs.h <<\_ACEOF | ||
6877 | #define BROKEN_SETREGID 1 | ||
6878 | _ACEOF | ||
6879 | |||
6880 | cat >>confdefs.h <<\_ACEOF | ||
6881 | #define PASSWD_NEEDS_USERNAME 1 | ||
6882 | _ACEOF | ||
6883 | |||
6884 | case "$host" in | ||
6885 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
6886 | TEST_SHELL=/u95/bin/sh | ||
6887 | |||
6888 | cat >>confdefs.h <<\_ACEOF | ||
6889 | #define BROKEN_LIBIAF 1 | ||
6890 | _ACEOF | ||
6891 | |||
6892 | ;; | ||
6893 | *) cat >>confdefs.h <<\_ACEOF | ||
6894 | #define LOCKED_PASSWD_STRING "*LK*" | ||
6895 | _ACEOF | ||
6896 | |||
6897 | ;; | ||
6898 | esac | ||
6899 | ;; | ||
6900 | *-*-sysv*) | ||
6901 | ;; | ||
6902 | # SCO UNIX and OEM versions of SCO UNIX | ||
6903 | *-*-sco3.2v4*) | ||
6904 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
6905 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
6906 | { (exit 1); exit 1; }; } | ||
6907 | ;; | ||
6908 | # SCO OpenServer 5.x | ||
6909 | *-*-sco3.2v5*) | ||
6910 | if test -z "$GCC"; then | ||
6911 | CFLAGS="$CFLAGS -belf" | ||
6912 | fi | ||
6913 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
6914 | no_dev_ptmx=1 | ||
6915 | cat >>confdefs.h <<\_ACEOF | ||
6916 | #define USE_PIPES 1 | ||
6917 | _ACEOF | ||
6918 | |||
6919 | cat >>confdefs.h <<\_ACEOF | ||
6920 | #define HAVE_SECUREWARE 1 | ||
6921 | _ACEOF | ||
6922 | |||
6923 | cat >>confdefs.h <<\_ACEOF | ||
6924 | #define DISABLE_SHADOW 1 | ||
6925 | _ACEOF | ||
6926 | |||
6927 | cat >>confdefs.h <<\_ACEOF | ||
6928 | #define DISABLE_FD_PASSING 1 | ||
6929 | _ACEOF | ||
6930 | |||
6931 | cat >>confdefs.h <<\_ACEOF | ||
6932 | #define SETEUID_BREAKS_SETUID 1 | ||
6933 | _ACEOF | ||
6934 | |||
6935 | cat >>confdefs.h <<\_ACEOF | ||
6936 | #define BROKEN_SETREUID 1 | ||
6937 | _ACEOF | ||
6938 | |||
6939 | cat >>confdefs.h <<\_ACEOF | ||
6940 | #define BROKEN_SETREGID 1 | ||
6941 | _ACEOF | ||
6942 | |||
6943 | cat >>confdefs.h <<\_ACEOF | ||
6944 | #define WITH_ABBREV_NO_TTY 1 | ||
6945 | _ACEOF | ||
6946 | |||
6947 | cat >>confdefs.h <<\_ACEOF | ||
6948 | #define BROKEN_UPDWTMPX 1 | ||
6949 | _ACEOF | ||
6950 | |||
6951 | cat >>confdefs.h <<\_ACEOF | ||
6952 | #define PASSWD_NEEDS_USERNAME 1 | ||
6953 | _ACEOF | ||
6954 | |||
6955 | |||
6956 | |||
6957 | for ac_func in getluid setluid | ||
6958 | do | ||
6959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6960 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6962 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6964 | else | ||
6965 | cat >conftest.$ac_ext <<_ACEOF | ||
6966 | /* confdefs.h. */ | ||
6967 | _ACEOF | ||
6968 | cat confdefs.h >>conftest.$ac_ext | ||
6969 | cat >>conftest.$ac_ext <<_ACEOF | ||
6970 | /* end confdefs.h. */ | ||
6971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6973 | #define $ac_func innocuous_$ac_func | ||
6974 | |||
6975 | /* System header to define __stub macros and hopefully few prototypes, | ||
6976 | which can conflict with char $ac_func (); below. | ||
6977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6978 | <limits.h> exists even on freestanding compilers. */ | ||
6979 | |||
6980 | #ifdef __STDC__ | ||
6981 | # include <limits.h> | ||
6982 | #else | ||
6983 | # include <assert.h> | ||
6984 | #endif | ||
6985 | |||
6986 | #undef $ac_func | ||
6987 | |||
6988 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6989 | #ifdef __cplusplus | ||
6990 | extern "C" | ||
6991 | { | ||
6992 | #endif | ||
6993 | /* We use char because int might match the return type of a gcc2 | ||
6994 | builtin and then its argument prototype would still apply. */ | ||
6995 | char $ac_func (); | ||
6996 | /* The GNU C library defines this for functions which it implements | ||
6997 | to always fail with ENOSYS. Some functions are actually named | ||
6998 | something starting with __ and the normal name is an alias. */ | ||
6999 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7000 | choke me | ||
7001 | #else | ||
7002 | char (*f) () = $ac_func; | ||
7003 | #endif | ||
7004 | #ifdef __cplusplus | ||
7005 | } | ||
7006 | #endif | ||
7007 | |||
7008 | int | ||
7009 | main () | ||
7010 | { | ||
7011 | return f != $ac_func; | ||
7012 | ; | ||
7013 | return 0; | ||
7014 | } | ||
7015 | _ACEOF | ||
7016 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7018 | (eval $ac_link) 2>conftest.er1 | ||
7019 | ac_status=$? | ||
7020 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7021 | rm -f conftest.er1 | ||
7022 | cat conftest.err >&5 | ||
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7024 | (exit $ac_status); } && | ||
7025 | { ac_try='test -z "$ac_c_werror_flag" | ||
7026 | || test ! -s conftest.err' | ||
7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7028 | (eval $ac_try) 2>&5 | ||
7029 | ac_status=$? | ||
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7031 | (exit $ac_status); }; } && | ||
7032 | { ac_try='test -s conftest$ac_exeext' | ||
7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7034 | (eval $ac_try) 2>&5 | ||
7035 | ac_status=$? | ||
7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7037 | (exit $ac_status); }; }; then | ||
7038 | eval "$as_ac_var=yes" | ||
7039 | else | ||
7040 | echo "$as_me: failed program was:" >&5 | ||
7041 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7042 | |||
7043 | eval "$as_ac_var=no" | ||
7044 | fi | ||
7045 | rm -f conftest.err conftest.$ac_objext \ | ||
7046 | conftest$ac_exeext conftest.$ac_ext | ||
7047 | fi | ||
7048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7051 | cat >>confdefs.h <<_ACEOF | ||
7052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7053 | _ACEOF | ||
7054 | |||
7055 | fi | ||
7056 | done | ||
7057 | |||
7058 | MANTYPE=man | ||
7059 | TEST_SHELL=ksh | ||
7060 | ;; | ||
7061 | *-*-unicosmk*) | ||
7062 | |||
7063 | cat >>confdefs.h <<\_ACEOF | ||
7064 | #define NO_SSH_LASTLOG 1 | ||
7065 | _ACEOF | ||
7066 | |||
7067 | cat >>confdefs.h <<\_ACEOF | ||
7068 | #define SETEUID_BREAKS_SETUID 1 | ||
7069 | _ACEOF | ||
7070 | |||
7071 | cat >>confdefs.h <<\_ACEOF | ||
7072 | #define BROKEN_SETREUID 1 | ||
7073 | _ACEOF | ||
7074 | |||
7075 | cat >>confdefs.h <<\_ACEOF | ||
7076 | #define BROKEN_SETREGID 1 | ||
7077 | _ACEOF | ||
7078 | |||
7079 | cat >>confdefs.h <<\_ACEOF | ||
7080 | #define USE_PIPES 1 | ||
7081 | _ACEOF | ||
7082 | |||
7083 | cat >>confdefs.h <<\_ACEOF | ||
7084 | #define DISABLE_FD_PASSING 1 | ||
7085 | _ACEOF | ||
7086 | |||
7087 | LDFLAGS="$LDFLAGS" | ||
7088 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7089 | MANTYPE=cat | ||
7090 | ;; | ||
7091 | *-*-unicosmp*) | ||
7092 | cat >>confdefs.h <<\_ACEOF | ||
7093 | #define SETEUID_BREAKS_SETUID 1 | ||
7094 | _ACEOF | ||
7095 | |||
7096 | cat >>confdefs.h <<\_ACEOF | ||
7097 | #define BROKEN_SETREUID 1 | ||
7098 | _ACEOF | ||
7099 | |||
7100 | cat >>confdefs.h <<\_ACEOF | ||
7101 | #define BROKEN_SETREGID 1 | ||
7102 | _ACEOF | ||
7103 | |||
7104 | cat >>confdefs.h <<\_ACEOF | ||
7105 | #define WITH_ABBREV_NO_TTY 1 | ||
7106 | _ACEOF | ||
7107 | |||
7108 | cat >>confdefs.h <<\_ACEOF | ||
7109 | #define USE_PIPES 1 | ||
7110 | _ACEOF | ||
7111 | |||
7112 | cat >>confdefs.h <<\_ACEOF | ||
7113 | #define DISABLE_FD_PASSING 1 | ||
7114 | _ACEOF | ||
7115 | |||
7116 | LDFLAGS="$LDFLAGS" | ||
7117 | LIBS="$LIBS -lgen -lacid -ldb" | ||
7118 | MANTYPE=cat | ||
7119 | ;; | ||
7120 | *-*-unicos*) | ||
7121 | cat >>confdefs.h <<\_ACEOF | ||
7122 | #define SETEUID_BREAKS_SETUID 1 | ||
7123 | _ACEOF | ||
7124 | |||
7125 | cat >>confdefs.h <<\_ACEOF | ||
7126 | #define BROKEN_SETREUID 1 | ||
7127 | _ACEOF | ||
7128 | |||
7129 | cat >>confdefs.h <<\_ACEOF | ||
7130 | #define BROKEN_SETREGID 1 | ||
7131 | _ACEOF | ||
7132 | |||
7133 | cat >>confdefs.h <<\_ACEOF | ||
7134 | #define USE_PIPES 1 | ||
7135 | _ACEOF | ||
7136 | |||
7137 | cat >>confdefs.h <<\_ACEOF | ||
7138 | #define DISABLE_FD_PASSING 1 | ||
7139 | _ACEOF | ||
7140 | |||
7141 | cat >>confdefs.h <<\_ACEOF | ||
7142 | #define NO_SSH_LASTLOG 1 | ||
7143 | _ACEOF | ||
7144 | |||
7145 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
7146 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7147 | MANTYPE=cat | ||
7148 | ;; | ||
7149 | *-dec-osf*) | ||
7150 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
7151 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
7152 | no_osfsia="" | ||
7153 | |||
7154 | # Check whether --with-osfsia or --without-osfsia was given. | ||
7155 | if test "${with_osfsia+set}" = set; then | ||
7156 | withval="$with_osfsia" | ||
7157 | |||
7158 | if test "x$withval" = "xno" ; then | ||
7159 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
7160 | echo "${ECHO_T}disabled" >&6 | ||
7161 | no_osfsia=1 | ||
7162 | fi | ||
7163 | |||
7164 | fi; | ||
7165 | if test -z "$no_osfsia" ; then | ||
7166 | if test -f /etc/sia/matrix.conf; then | ||
7167 | echo "$as_me:$LINENO: result: yes" >&5 | ||
7168 | echo "${ECHO_T}yes" >&6 | ||
7169 | |||
7170 | cat >>confdefs.h <<\_ACEOF | ||
7171 | #define HAVE_OSF_SIA 1 | ||
7172 | _ACEOF | ||
7173 | |||
7174 | |||
7175 | cat >>confdefs.h <<\_ACEOF | ||
7176 | #define DISABLE_LOGIN 1 | ||
7177 | _ACEOF | ||
7178 | |||
7179 | cat >>confdefs.h <<\_ACEOF | ||
7180 | #define DISABLE_FD_PASSING 1 | ||
7181 | _ACEOF | ||
7182 | |||
7183 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
7184 | else | ||
7185 | echo "$as_me:$LINENO: result: no" >&5 | ||
7186 | echo "${ECHO_T}no" >&6 | ||
7187 | |||
7188 | cat >>confdefs.h <<\_ACEOF | ||
7189 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
7190 | _ACEOF | ||
7191 | |||
7192 | fi | ||
7193 | fi | ||
7194 | cat >>confdefs.h <<\_ACEOF | ||
7195 | #define BROKEN_GETADDRINFO 1 | ||
7196 | _ACEOF | ||
7197 | |||
7198 | cat >>confdefs.h <<\_ACEOF | ||
7199 | #define SETEUID_BREAKS_SETUID 1 | ||
7200 | _ACEOF | ||
7201 | |||
7202 | cat >>confdefs.h <<\_ACEOF | ||
7203 | #define BROKEN_SETREUID 1 | ||
7204 | _ACEOF | ||
7205 | |||
7206 | cat >>confdefs.h <<\_ACEOF | ||
7207 | #define BROKEN_SETREGID 1 | ||
7208 | _ACEOF | ||
7209 | |||
7210 | ;; | ||
7211 | |||
7212 | *-*-nto-qnx*) | ||
7213 | cat >>confdefs.h <<\_ACEOF | ||
7214 | #define USE_PIPES 1 | ||
7215 | _ACEOF | ||
7216 | |||
7217 | cat >>confdefs.h <<\_ACEOF | ||
7218 | #define NO_X11_UNIX_SOCKETS 1 | ||
7219 | _ACEOF | ||
7220 | |||
7221 | |||
7222 | cat >>confdefs.h <<\_ACEOF | ||
7223 | #define MISSING_NFDBITS 1 | ||
7224 | _ACEOF | ||
7225 | |||
7226 | |||
7227 | cat >>confdefs.h <<\_ACEOF | ||
7228 | #define MISSING_HOWMANY 1 | ||
7229 | _ACEOF | ||
7230 | |||
7231 | |||
7232 | cat >>confdefs.h <<\_ACEOF | ||
7233 | #define MISSING_FD_MASK 1 | ||
7234 | _ACEOF | ||
7235 | |||
7236 | cat >>confdefs.h <<\_ACEOF | ||
7237 | #define DISABLE_LASTLOG 1 | ||
7238 | _ACEOF | ||
7239 | |||
7240 | ;; | ||
7241 | |||
7242 | *-*-ultrix*) | ||
7243 | |||
7244 | cat >>confdefs.h <<\_ACEOF | ||
7245 | #define BROKEN_GETGROUPS 1 | ||
7246 | _ACEOF | ||
7247 | |||
7248 | |||
7249 | cat >>confdefs.h <<\_ACEOF | ||
7250 | #define BROKEN_MMAP 1 | ||
7251 | _ACEOF | ||
7252 | |||
7253 | cat >>confdefs.h <<\_ACEOF | ||
7254 | #define NEED_SETPGRP 1 | ||
7255 | _ACEOF | ||
7256 | |||
7257 | |||
7258 | cat >>confdefs.h <<\_ACEOF | ||
7259 | #define HAVE_SYS_SYSLOG_H 1 | ||
7260 | _ACEOF | ||
7261 | |||
7262 | ;; | ||
7263 | |||
7264 | *-*-lynxos) | ||
7265 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
7266 | cat >>confdefs.h <<\_ACEOF | ||
7267 | #define MISSING_HOWMANY 1 | ||
7268 | _ACEOF | ||
7269 | |||
7270 | |||
7271 | cat >>confdefs.h <<\_ACEOF | ||
7272 | #define BROKEN_SETVBUF 1 | ||
7273 | _ACEOF | ||
7274 | |||
7275 | ;; | ||
7276 | esac | ||
7277 | |||
7278 | # Allow user to specify flags | ||
7279 | |||
7280 | # Check whether --with-cflags or --without-cflags was given. | ||
7281 | if test "${with_cflags+set}" = set; then | ||
7282 | withval="$with_cflags" | ||
7283 | |||
7284 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7285 | test "x${withval}" != "xyes"; then | ||
7286 | CFLAGS="$CFLAGS $withval" | ||
7287 | fi | ||
7288 | |||
7289 | |||
7290 | fi; | ||
7291 | |||
7292 | # Check whether --with-cppflags or --without-cppflags was given. | ||
7293 | if test "${with_cppflags+set}" = set; then | ||
7294 | withval="$with_cppflags" | ||
7295 | |||
7296 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7297 | test "x${withval}" != "xyes"; then | ||
7298 | CPPFLAGS="$CPPFLAGS $withval" | ||
7299 | fi | ||
7300 | |||
7301 | |||
7302 | fi; | ||
7303 | |||
7304 | # Check whether --with-ldflags or --without-ldflags was given. | ||
7305 | if test "${with_ldflags+set}" = set; then | ||
7306 | withval="$with_ldflags" | ||
7307 | |||
7308 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7309 | test "x${withval}" != "xyes"; then | ||
7310 | LDFLAGS="$LDFLAGS $withval" | ||
7311 | fi | ||
7312 | |||
7313 | |||
7314 | fi; | ||
7315 | |||
7316 | # Check whether --with-libs or --without-libs was given. | ||
7317 | if test "${with_libs+set}" = set; then | ||
7318 | withval="$with_libs" | ||
7319 | |||
7320 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
7321 | test "x${withval}" != "xyes"; then | ||
7322 | LIBS="$LIBS $withval" | ||
7323 | fi | ||
7324 | |||
7325 | |||
7326 | fi; | ||
7327 | |||
7328 | # Check whether --with-Werror or --without-Werror was given. | ||
7329 | if test "${with_Werror+set}" = set; then | ||
7330 | withval="$with_Werror" | ||
7331 | |||
7332 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
7333 | werror_flags="-Werror" | ||
7334 | if test "x${withval}" != "xyes"; then | ||
7335 | werror_flags="$withval" | ||
7336 | fi | ||
7337 | fi | ||
7338 | |||
7339 | |||
7340 | fi; | ||
7341 | |||
7342 | echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
7343 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
7344 | if test "$cross_compiling" = yes; then | ||
7345 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
7346 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
7347 | |||
7348 | else | ||
7349 | cat >conftest.$ac_ext <<_ACEOF | ||
7350 | /* confdefs.h. */ | ||
7351 | _ACEOF | ||
7352 | cat confdefs.h >>conftest.$ac_ext | ||
7353 | cat >>conftest.$ac_ext <<_ACEOF | ||
7354 | /* end confdefs.h. */ | ||
7355 | |||
7356 | #include <stdio.h> | ||
7357 | int main(){exit(0);} | ||
7358 | |||
7359 | _ACEOF | ||
7360 | rm -f conftest$ac_exeext | ||
7361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7362 | (eval $ac_link) 2>&5 | ||
7363 | ac_status=$? | ||
7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7367 | (eval $ac_try) 2>&5 | ||
7368 | ac_status=$? | ||
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7370 | (exit $ac_status); }; }; then | ||
7371 | echo "$as_me:$LINENO: result: yes" >&5 | ||
7372 | echo "${ECHO_T}yes" >&6 | ||
7373 | else | ||
7374 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7375 | echo "$as_me: failed program was:" >&5 | ||
7376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7377 | |||
7378 | ( exit $ac_status ) | ||
7379 | |||
7380 | echo "$as_me:$LINENO: result: no" >&5 | ||
7381 | echo "${ECHO_T}no" >&6 | ||
7382 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
7383 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
7384 | { (exit 1); exit 1; }; } | ||
7385 | |||
7386 | fi | ||
7387 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7388 | fi | ||
7389 | |||
7390 | |||
7391 | |||
7392 | |||
7393 | |||
7394 | |||
7395 | |||
7396 | |||
7397 | |||
7398 | |||
7399 | |||
7400 | |||
7401 | |||
7402 | |||
7403 | |||
7404 | |||
7405 | |||
7406 | |||
7407 | |||
7408 | |||
7409 | |||
7410 | |||
7411 | |||
7412 | |||
7413 | |||
7414 | |||
7415 | |||
7416 | |||
7417 | |||
7418 | |||
7419 | |||
7420 | |||
7421 | |||
7422 | |||
7423 | |||
7424 | |||
7425 | |||
7426 | |||
7427 | |||
7428 | |||
7429 | |||
7430 | |||
7431 | |||
7432 | |||
7433 | |||
7434 | |||
7435 | |||
7436 | |||
7437 | |||
7438 | |||
7439 | |||
7440 | |||
7441 | |||
7442 | |||
7443 | |||
7444 | |||
7445 | |||
7446 | for ac_header in \ | ||
7447 | bstring.h \ | ||
7448 | crypt.h \ | ||
7449 | dirent.h \ | ||
7450 | endian.h \ | ||
7451 | features.h \ | ||
7452 | floatingpoint.h \ | ||
7453 | getopt.h \ | ||
7454 | glob.h \ | ||
7455 | ia.h \ | ||
7456 | iaf.h \ | ||
7457 | limits.h \ | ||
7458 | login.h \ | ||
7459 | login_cap.h \ | ||
7460 | maillock.h \ | ||
7461 | ndir.h \ | ||
7462 | netdb.h \ | ||
7463 | netgroup.h \ | ||
7464 | pam/pam_appl.h \ | ||
7465 | paths.h \ | ||
7466 | pty.h \ | ||
7467 | readpassphrase.h \ | ||
7468 | rpc/types.h \ | ||
7469 | security/pam_appl.h \ | ||
7470 | shadow.h \ | ||
7471 | stddef.h \ | ||
7472 | stdint.h \ | ||
7473 | string.h \ | ||
7474 | strings.h \ | ||
7475 | sys/audit.h \ | ||
7476 | sys/bitypes.h \ | ||
7477 | sys/bsdtty.h \ | ||
7478 | sys/cdefs.h \ | ||
7479 | sys/dir.h \ | ||
7480 | sys/mman.h \ | ||
7481 | sys/ndir.h \ | ||
7482 | sys/prctl.h \ | ||
7483 | sys/pstat.h \ | ||
7484 | sys/select.h \ | ||
7485 | sys/stat.h \ | ||
7486 | sys/stream.h \ | ||
7487 | sys/stropts.h \ | ||
7488 | sys/strtio.h \ | ||
7489 | sys/sysmacros.h \ | ||
7490 | sys/time.h \ | ||
7491 | sys/timers.h \ | ||
7492 | sys/un.h \ | ||
7493 | time.h \ | ||
7494 | tmpdir.h \ | ||
7495 | ttyent.h \ | ||
7496 | unistd.h \ | ||
7497 | usersec.h \ | ||
7498 | util.h \ | ||
7499 | utime.h \ | ||
7500 | utmp.h \ | ||
7501 | utmpx.h \ | ||
7502 | vis.h \ | ||
7503 | |||
7504 | do | ||
7505 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7507 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7508 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7511 | fi | ||
7512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7514 | else | ||
7515 | # Is the header compilable? | ||
7516 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7518 | cat >conftest.$ac_ext <<_ACEOF | ||
7519 | /* confdefs.h. */ | ||
7520 | _ACEOF | ||
7521 | cat confdefs.h >>conftest.$ac_ext | ||
7522 | cat >>conftest.$ac_ext <<_ACEOF | ||
7523 | /* end confdefs.h. */ | ||
7524 | $ac_includes_default | ||
7525 | #include <$ac_header> | ||
7526 | _ACEOF | ||
7527 | rm -f conftest.$ac_objext | ||
7528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7529 | (eval $ac_compile) 2>conftest.er1 | ||
7530 | ac_status=$? | ||
7531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7532 | rm -f conftest.er1 | ||
7533 | cat conftest.err >&5 | ||
7534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7535 | (exit $ac_status); } && | ||
7536 | { ac_try='test -z "$ac_c_werror_flag" | ||
7537 | || test ! -s conftest.err' | ||
7538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7539 | (eval $ac_try) 2>&5 | ||
7540 | ac_status=$? | ||
7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7542 | (exit $ac_status); }; } && | ||
7543 | { ac_try='test -s conftest.$ac_objext' | ||
7544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7545 | (eval $ac_try) 2>&5 | ||
7546 | ac_status=$? | ||
7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7548 | (exit $ac_status); }; }; then | ||
7549 | ac_header_compiler=yes | ||
7550 | else | ||
7551 | echo "$as_me: failed program was:" >&5 | ||
7552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7553 | |||
7554 | ac_header_compiler=no | ||
7555 | fi | ||
7556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7557 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7558 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7559 | |||
7560 | # Is the header present? | ||
7561 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7562 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7563 | cat >conftest.$ac_ext <<_ACEOF | ||
7564 | /* confdefs.h. */ | ||
7565 | _ACEOF | ||
7566 | cat confdefs.h >>conftest.$ac_ext | ||
7567 | cat >>conftest.$ac_ext <<_ACEOF | ||
7568 | /* end confdefs.h. */ | ||
7569 | #include <$ac_header> | ||
7570 | _ACEOF | ||
7571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7573 | ac_status=$? | ||
7574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7575 | rm -f conftest.er1 | ||
7576 | cat conftest.err >&5 | ||
7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7578 | (exit $ac_status); } >/dev/null; then | ||
7579 | if test -s conftest.err; then | ||
7580 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7582 | else | ||
7583 | ac_cpp_err= | ||
7584 | fi | ||
7585 | else | ||
7586 | ac_cpp_err=yes | ||
7587 | fi | ||
7588 | if test -z "$ac_cpp_err"; then | ||
7589 | ac_header_preproc=yes | ||
7590 | else | ||
7591 | echo "$as_me: failed program was:" >&5 | ||
7592 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7593 | |||
7594 | ac_header_preproc=no | ||
7595 | fi | ||
7596 | rm -f conftest.err conftest.$ac_ext | ||
7597 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7598 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7599 | |||
7600 | # So? What about this header? | ||
7601 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7602 | yes:no: ) | ||
7603 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7604 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7606 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7607 | ac_header_preproc=yes | ||
7608 | ;; | ||
7609 | no:yes:* ) | ||
7610 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7611 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7612 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7613 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7615 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7617 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7619 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7620 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7621 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7622 | ( | ||
7623 | cat <<\_ASBOX | ||
7624 | ## ------------------------------------------- ## | ||
7625 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7626 | ## ------------------------------------------- ## | ||
7627 | _ASBOX | ||
7628 | ) | | ||
7629 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7630 | ;; | ||
7631 | esac | ||
7632 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7636 | else | ||
7637 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7638 | fi | ||
7639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7641 | |||
7642 | fi | ||
7643 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7644 | cat >>confdefs.h <<_ACEOF | ||
7645 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7646 | _ACEOF | ||
7647 | |||
7648 | fi | ||
7649 | |||
7650 | done | ||
7651 | |||
7652 | |||
7653 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
7654 | |||
7655 | for ac_header in lastlog.h | ||
7656 | do | ||
7657 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7662 | else | ||
7663 | cat >conftest.$ac_ext <<_ACEOF | ||
7664 | /* confdefs.h. */ | ||
7665 | _ACEOF | ||
7666 | cat confdefs.h >>conftest.$ac_ext | ||
7667 | cat >>conftest.$ac_ext <<_ACEOF | ||
7668 | /* end confdefs.h. */ | ||
7669 | |||
7670 | #ifdef HAVE_SYS_TIME_H | ||
7671 | # include <sys/time.h> | ||
7672 | #endif | ||
7673 | |||
7674 | |||
7675 | #include <$ac_header> | ||
7676 | _ACEOF | ||
7677 | rm -f conftest.$ac_objext | ||
7678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7679 | (eval $ac_compile) 2>conftest.er1 | ||
7680 | ac_status=$? | ||
7681 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7682 | rm -f conftest.er1 | ||
7683 | cat conftest.err >&5 | ||
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7685 | (exit $ac_status); } && | ||
7686 | { ac_try='test -z "$ac_c_werror_flag" | ||
7687 | || test ! -s conftest.err' | ||
7688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7689 | (eval $ac_try) 2>&5 | ||
7690 | ac_status=$? | ||
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7692 | (exit $ac_status); }; } && | ||
7693 | { ac_try='test -s conftest.$ac_objext' | ||
7694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7695 | (eval $ac_try) 2>&5 | ||
7696 | ac_status=$? | ||
7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7698 | (exit $ac_status); }; }; then | ||
7699 | eval "$as_ac_Header=yes" | ||
7700 | else | ||
7701 | echo "$as_me: failed program was:" >&5 | ||
7702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7703 | |||
7704 | eval "$as_ac_Header=no" | ||
7705 | fi | ||
7706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7707 | fi | ||
7708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7711 | cat >>confdefs.h <<_ACEOF | ||
7712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7713 | _ACEOF | ||
7714 | |||
7715 | fi | ||
7716 | |||
7717 | done | ||
7718 | |||
7719 | |||
7720 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7721 | |||
7722 | for ac_header in sys/ptms.h | ||
7723 | do | ||
7724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7729 | else | ||
7730 | cat >conftest.$ac_ext <<_ACEOF | ||
7731 | /* confdefs.h. */ | ||
7732 | _ACEOF | ||
7733 | cat confdefs.h >>conftest.$ac_ext | ||
7734 | cat >>conftest.$ac_ext <<_ACEOF | ||
7735 | /* end confdefs.h. */ | ||
7736 | |||
7737 | #ifdef HAVE_SYS_STREAM_H | ||
7738 | # include <sys/stream.h> | ||
7739 | #endif | ||
7740 | |||
7741 | |||
7742 | #include <$ac_header> | ||
7743 | _ACEOF | ||
7744 | rm -f conftest.$ac_objext | ||
7745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7746 | (eval $ac_compile) 2>conftest.er1 | ||
7747 | ac_status=$? | ||
7748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7749 | rm -f conftest.er1 | ||
7750 | cat conftest.err >&5 | ||
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7752 | (exit $ac_status); } && | ||
7753 | { ac_try='test -z "$ac_c_werror_flag" | ||
7754 | || test ! -s conftest.err' | ||
7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7756 | (eval $ac_try) 2>&5 | ||
7757 | ac_status=$? | ||
7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7759 | (exit $ac_status); }; } && | ||
7760 | { ac_try='test -s conftest.$ac_objext' | ||
7761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7762 | (eval $ac_try) 2>&5 | ||
7763 | ac_status=$? | ||
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7765 | (exit $ac_status); }; }; then | ||
7766 | eval "$as_ac_Header=yes" | ||
7767 | else | ||
7768 | echo "$as_me: failed program was:" >&5 | ||
7769 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7770 | |||
7771 | eval "$as_ac_Header=no" | ||
7772 | fi | ||
7773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7774 | fi | ||
7775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7777 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7778 | cat >>confdefs.h <<_ACEOF | ||
7779 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7780 | _ACEOF | ||
7781 | |||
7782 | fi | ||
7783 | |||
7784 | done | ||
7785 | |||
7786 | |||
7787 | # Checks for libraries. | ||
7788 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
7789 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
7790 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7792 | else | ||
7793 | cat >conftest.$ac_ext <<_ACEOF | ||
7794 | /* confdefs.h. */ | ||
7795 | _ACEOF | ||
7796 | cat confdefs.h >>conftest.$ac_ext | ||
7797 | cat >>conftest.$ac_ext <<_ACEOF | ||
7798 | /* end confdefs.h. */ | ||
7799 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
7800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7801 | #define yp_match innocuous_yp_match | ||
7802 | |||
7803 | /* System header to define __stub macros and hopefully few prototypes, | ||
7804 | which can conflict with char yp_match (); below. | ||
7805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7806 | <limits.h> exists even on freestanding compilers. */ | ||
7807 | |||
7808 | #ifdef __STDC__ | ||
7809 | # include <limits.h> | ||
7810 | #else | ||
7811 | # include <assert.h> | ||
7812 | #endif | ||
7813 | |||
7814 | #undef yp_match | ||
7815 | |||
7816 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7817 | #ifdef __cplusplus | ||
7818 | extern "C" | ||
7819 | { | ||
7820 | #endif | ||
7821 | /* We use char because int might match the return type of a gcc2 | ||
7822 | builtin and then its argument prototype would still apply. */ | ||
7823 | char yp_match (); | ||
7824 | /* The GNU C library defines this for functions which it implements | ||
7825 | to always fail with ENOSYS. Some functions are actually named | ||
7826 | something starting with __ and the normal name is an alias. */ | ||
7827 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
7828 | choke me | ||
7829 | #else | ||
7830 | char (*f) () = yp_match; | ||
7831 | #endif | ||
7832 | #ifdef __cplusplus | ||
7833 | } | ||
7834 | #endif | ||
7835 | |||
7836 | int | ||
7837 | main () | ||
7838 | { | ||
7839 | return f != yp_match; | ||
7840 | ; | ||
7841 | return 0; | ||
7842 | } | ||
7843 | _ACEOF | ||
7844 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7846 | (eval $ac_link) 2>conftest.er1 | ||
7847 | ac_status=$? | ||
7848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7849 | rm -f conftest.er1 | ||
7850 | cat conftest.err >&5 | ||
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7852 | (exit $ac_status); } && | ||
7853 | { ac_try='test -z "$ac_c_werror_flag" | ||
7854 | || test ! -s conftest.err' | ||
7855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7856 | (eval $ac_try) 2>&5 | ||
7857 | ac_status=$? | ||
7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7859 | (exit $ac_status); }; } && | ||
7860 | { ac_try='test -s conftest$ac_exeext' | ||
7861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7862 | (eval $ac_try) 2>&5 | ||
7863 | ac_status=$? | ||
7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7865 | (exit $ac_status); }; }; then | ||
7866 | ac_cv_func_yp_match=yes | ||
7867 | else | ||
7868 | echo "$as_me: failed program was:" >&5 | ||
7869 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7870 | |||
7871 | ac_cv_func_yp_match=no | ||
7872 | fi | ||
7873 | rm -f conftest.err conftest.$ac_objext \ | ||
7874 | conftest$ac_exeext conftest.$ac_ext | ||
7875 | fi | ||
7876 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
7877 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
7878 | if test $ac_cv_func_yp_match = yes; then | ||
7879 | : | ||
7880 | else | ||
7881 | |||
7882 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
7883 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
7884 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
7885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7886 | else | ||
7887 | ac_check_lib_save_LIBS=$LIBS | ||
7888 | LIBS="-lnsl $LIBS" | ||
7889 | cat >conftest.$ac_ext <<_ACEOF | ||
7890 | /* confdefs.h. */ | ||
7891 | _ACEOF | ||
7892 | cat confdefs.h >>conftest.$ac_ext | ||
7893 | cat >>conftest.$ac_ext <<_ACEOF | ||
7894 | /* end confdefs.h. */ | ||
7895 | |||
7896 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7897 | #ifdef __cplusplus | ||
7898 | extern "C" | ||
7899 | #endif | ||
7900 | /* We use char because int might match the return type of a gcc2 | ||
7901 | builtin and then its argument prototype would still apply. */ | ||
7902 | char yp_match (); | ||
7903 | int | ||
7904 | main () | ||
7905 | { | ||
7906 | yp_match (); | ||
7907 | ; | ||
7908 | return 0; | ||
7909 | } | ||
7910 | _ACEOF | ||
7911 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7913 | (eval $ac_link) 2>conftest.er1 | ||
7914 | ac_status=$? | ||
7915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7916 | rm -f conftest.er1 | ||
7917 | cat conftest.err >&5 | ||
7918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7919 | (exit $ac_status); } && | ||
7920 | { ac_try='test -z "$ac_c_werror_flag" | ||
7921 | || test ! -s conftest.err' | ||
7922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7923 | (eval $ac_try) 2>&5 | ||
7924 | ac_status=$? | ||
7925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7926 | (exit $ac_status); }; } && | ||
7927 | { ac_try='test -s conftest$ac_exeext' | ||
7928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7929 | (eval $ac_try) 2>&5 | ||
7930 | ac_status=$? | ||
7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7932 | (exit $ac_status); }; }; then | ||
7933 | ac_cv_lib_nsl_yp_match=yes | ||
7934 | else | ||
7935 | echo "$as_me: failed program was:" >&5 | ||
7936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7937 | |||
7938 | ac_cv_lib_nsl_yp_match=no | ||
7939 | fi | ||
7940 | rm -f conftest.err conftest.$ac_objext \ | ||
7941 | conftest$ac_exeext conftest.$ac_ext | ||
7942 | LIBS=$ac_check_lib_save_LIBS | ||
7943 | fi | ||
7944 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7945 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
7946 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
7947 | cat >>confdefs.h <<_ACEOF | ||
7948 | #define HAVE_LIBNSL 1 | ||
7949 | _ACEOF | ||
7950 | |||
7951 | LIBS="-lnsl $LIBS" | ||
7952 | |||
7953 | fi | ||
7954 | |||
7955 | fi | ||
7956 | |||
7957 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
7958 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
7959 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
7960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7961 | else | ||
7962 | cat >conftest.$ac_ext <<_ACEOF | ||
7963 | /* confdefs.h. */ | ||
7964 | _ACEOF | ||
7965 | cat confdefs.h >>conftest.$ac_ext | ||
7966 | cat >>conftest.$ac_ext <<_ACEOF | ||
7967 | /* end confdefs.h. */ | ||
7968 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
7969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7970 | #define setsockopt innocuous_setsockopt | ||
7971 | |||
7972 | /* System header to define __stub macros and hopefully few prototypes, | ||
7973 | which can conflict with char setsockopt (); below. | ||
7974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7975 | <limits.h> exists even on freestanding compilers. */ | ||
7976 | |||
7977 | #ifdef __STDC__ | ||
7978 | # include <limits.h> | ||
7979 | #else | ||
7980 | # include <assert.h> | ||
7981 | #endif | ||
7982 | |||
7983 | #undef setsockopt | ||
7984 | |||
7985 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7986 | #ifdef __cplusplus | ||
7987 | extern "C" | ||
7988 | { | ||
7989 | #endif | ||
7990 | /* We use char because int might match the return type of a gcc2 | ||
7991 | builtin and then its argument prototype would still apply. */ | ||
7992 | char setsockopt (); | ||
7993 | /* The GNU C library defines this for functions which it implements | ||
7994 | to always fail with ENOSYS. Some functions are actually named | ||
7995 | something starting with __ and the normal name is an alias. */ | ||
7996 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
7997 | choke me | ||
7998 | #else | ||
7999 | char (*f) () = setsockopt; | ||
8000 | #endif | ||
8001 | #ifdef __cplusplus | ||
8002 | } | ||
8003 | #endif | ||
8004 | |||
8005 | int | ||
8006 | main () | ||
8007 | { | ||
8008 | return f != setsockopt; | ||
8009 | ; | ||
8010 | return 0; | ||
8011 | } | ||
8012 | _ACEOF | ||
8013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8015 | (eval $ac_link) 2>conftest.er1 | ||
8016 | ac_status=$? | ||
8017 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8018 | rm -f conftest.er1 | ||
8019 | cat conftest.err >&5 | ||
8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8021 | (exit $ac_status); } && | ||
8022 | { ac_try='test -z "$ac_c_werror_flag" | ||
8023 | || test ! -s conftest.err' | ||
8024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8025 | (eval $ac_try) 2>&5 | ||
8026 | ac_status=$? | ||
8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8028 | (exit $ac_status); }; } && | ||
8029 | { ac_try='test -s conftest$ac_exeext' | ||
8030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8031 | (eval $ac_try) 2>&5 | ||
8032 | ac_status=$? | ||
8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8034 | (exit $ac_status); }; }; then | ||
8035 | ac_cv_func_setsockopt=yes | ||
8036 | else | ||
8037 | echo "$as_me: failed program was:" >&5 | ||
8038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8039 | |||
8040 | ac_cv_func_setsockopt=no | ||
8041 | fi | ||
8042 | rm -f conftest.err conftest.$ac_objext \ | ||
8043 | conftest$ac_exeext conftest.$ac_ext | ||
8044 | fi | ||
8045 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
8046 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
8047 | if test $ac_cv_func_setsockopt = yes; then | ||
8048 | : | ||
8049 | else | ||
8050 | |||
8051 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
8052 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
8053 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
8054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8055 | else | ||
8056 | ac_check_lib_save_LIBS=$LIBS | ||
8057 | LIBS="-lsocket $LIBS" | ||
8058 | cat >conftest.$ac_ext <<_ACEOF | ||
8059 | /* confdefs.h. */ | ||
8060 | _ACEOF | ||
8061 | cat confdefs.h >>conftest.$ac_ext | ||
8062 | cat >>conftest.$ac_ext <<_ACEOF | ||
8063 | /* end confdefs.h. */ | ||
8064 | |||
8065 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8066 | #ifdef __cplusplus | ||
8067 | extern "C" | ||
8068 | #endif | ||
8069 | /* We use char because int might match the return type of a gcc2 | ||
8070 | builtin and then its argument prototype would still apply. */ | ||
8071 | char setsockopt (); | ||
8072 | int | ||
8073 | main () | ||
8074 | { | ||
8075 | setsockopt (); | ||
8076 | ; | ||
8077 | return 0; | ||
8078 | } | ||
8079 | _ACEOF | ||
8080 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8082 | (eval $ac_link) 2>conftest.er1 | ||
8083 | ac_status=$? | ||
8084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8085 | rm -f conftest.er1 | ||
8086 | cat conftest.err >&5 | ||
8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8088 | (exit $ac_status); } && | ||
8089 | { ac_try='test -z "$ac_c_werror_flag" | ||
8090 | || test ! -s conftest.err' | ||
8091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8092 | (eval $ac_try) 2>&5 | ||
8093 | ac_status=$? | ||
8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8095 | (exit $ac_status); }; } && | ||
8096 | { ac_try='test -s conftest$ac_exeext' | ||
8097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8098 | (eval $ac_try) 2>&5 | ||
8099 | ac_status=$? | ||
8100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8101 | (exit $ac_status); }; }; then | ||
8102 | ac_cv_lib_socket_setsockopt=yes | ||
8103 | else | ||
8104 | echo "$as_me: failed program was:" >&5 | ||
8105 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8106 | |||
8107 | ac_cv_lib_socket_setsockopt=no | ||
8108 | fi | ||
8109 | rm -f conftest.err conftest.$ac_objext \ | ||
8110 | conftest$ac_exeext conftest.$ac_ext | ||
8111 | LIBS=$ac_check_lib_save_LIBS | ||
8112 | fi | ||
8113 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8114 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
8115 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
8116 | cat >>confdefs.h <<_ACEOF | ||
8117 | #define HAVE_LIBSOCKET 1 | ||
8118 | _ACEOF | ||
8119 | |||
8120 | LIBS="-lsocket $LIBS" | ||
8121 | |||
8122 | fi | ||
8123 | |||
8124 | fi | ||
8125 | |||
8126 | |||
8127 | |||
8128 | for ac_func in dirname | ||
8129 | do | ||
8130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8135 | else | ||
8136 | cat >conftest.$ac_ext <<_ACEOF | ||
8137 | /* confdefs.h. */ | ||
8138 | _ACEOF | ||
8139 | cat confdefs.h >>conftest.$ac_ext | ||
8140 | cat >>conftest.$ac_ext <<_ACEOF | ||
8141 | /* end confdefs.h. */ | ||
8142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8144 | #define $ac_func innocuous_$ac_func | ||
8145 | |||
8146 | /* System header to define __stub macros and hopefully few prototypes, | ||
8147 | which can conflict with char $ac_func (); below. | ||
8148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8149 | <limits.h> exists even on freestanding compilers. */ | ||
8150 | |||
8151 | #ifdef __STDC__ | ||
8152 | # include <limits.h> | ||
8153 | #else | ||
8154 | # include <assert.h> | ||
8155 | #endif | ||
8156 | |||
8157 | #undef $ac_func | ||
8158 | |||
8159 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8160 | #ifdef __cplusplus | ||
8161 | extern "C" | ||
8162 | { | ||
8163 | #endif | ||
8164 | /* We use char because int might match the return type of a gcc2 | ||
8165 | builtin and then its argument prototype would still apply. */ | ||
8166 | char $ac_func (); | ||
8167 | /* The GNU C library defines this for functions which it implements | ||
8168 | to always fail with ENOSYS. Some functions are actually named | ||
8169 | something starting with __ and the normal name is an alias. */ | ||
8170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8171 | choke me | ||
8172 | #else | ||
8173 | char (*f) () = $ac_func; | ||
8174 | #endif | ||
8175 | #ifdef __cplusplus | ||
8176 | } | ||
8177 | #endif | ||
8178 | |||
8179 | int | ||
8180 | main () | ||
8181 | { | ||
8182 | return f != $ac_func; | ||
8183 | ; | ||
8184 | return 0; | ||
8185 | } | ||
8186 | _ACEOF | ||
8187 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8189 | (eval $ac_link) 2>conftest.er1 | ||
8190 | ac_status=$? | ||
8191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8192 | rm -f conftest.er1 | ||
8193 | cat conftest.err >&5 | ||
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8195 | (exit $ac_status); } && | ||
8196 | { ac_try='test -z "$ac_c_werror_flag" | ||
8197 | || test ! -s conftest.err' | ||
8198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8199 | (eval $ac_try) 2>&5 | ||
8200 | ac_status=$? | ||
8201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8202 | (exit $ac_status); }; } && | ||
8203 | { ac_try='test -s conftest$ac_exeext' | ||
8204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8205 | (eval $ac_try) 2>&5 | ||
8206 | ac_status=$? | ||
8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8208 | (exit $ac_status); }; }; then | ||
8209 | eval "$as_ac_var=yes" | ||
8210 | else | ||
8211 | echo "$as_me: failed program was:" >&5 | ||
8212 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8213 | |||
8214 | eval "$as_ac_var=no" | ||
8215 | fi | ||
8216 | rm -f conftest.err conftest.$ac_objext \ | ||
8217 | conftest$ac_exeext conftest.$ac_ext | ||
8218 | fi | ||
8219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
8220 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
8221 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8222 | cat >>confdefs.h <<_ACEOF | ||
8223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8224 | _ACEOF | ||
8225 | |||
8226 | for ac_header in libgen.h | ||
8227 | do | ||
8228 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8234 | fi | ||
8235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8236 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8237 | else | ||
8238 | # Is the header compilable? | ||
8239 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8240 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
8241 | cat >conftest.$ac_ext <<_ACEOF | ||
8242 | /* confdefs.h. */ | ||
8243 | _ACEOF | ||
8244 | cat confdefs.h >>conftest.$ac_ext | ||
8245 | cat >>conftest.$ac_ext <<_ACEOF | ||
8246 | /* end confdefs.h. */ | ||
8247 | $ac_includes_default | ||
8248 | #include <$ac_header> | ||
8249 | _ACEOF | ||
8250 | rm -f conftest.$ac_objext | ||
8251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8252 | (eval $ac_compile) 2>conftest.er1 | ||
8253 | ac_status=$? | ||
8254 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8255 | rm -f conftest.er1 | ||
8256 | cat conftest.err >&5 | ||
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8258 | (exit $ac_status); } && | ||
8259 | { ac_try='test -z "$ac_c_werror_flag" | ||
8260 | || test ! -s conftest.err' | ||
8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8262 | (eval $ac_try) 2>&5 | ||
8263 | ac_status=$? | ||
8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8265 | (exit $ac_status); }; } && | ||
8266 | { ac_try='test -s conftest.$ac_objext' | ||
8267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8268 | (eval $ac_try) 2>&5 | ||
8269 | ac_status=$? | ||
8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8271 | (exit $ac_status); }; }; then | ||
8272 | ac_header_compiler=yes | ||
8273 | else | ||
8274 | echo "$as_me: failed program was:" >&5 | ||
8275 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8276 | |||
8277 | ac_header_compiler=no | ||
8278 | fi | ||
8279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8280 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8281 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8282 | |||
8283 | # Is the header present? | ||
8284 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8285 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
8286 | cat >conftest.$ac_ext <<_ACEOF | ||
8287 | /* confdefs.h. */ | ||
8288 | _ACEOF | ||
8289 | cat confdefs.h >>conftest.$ac_ext | ||
8290 | cat >>conftest.$ac_ext <<_ACEOF | ||
8291 | /* end confdefs.h. */ | ||
8292 | #include <$ac_header> | ||
8293 | _ACEOF | ||
8294 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8295 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8296 | ac_status=$? | ||
8297 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8298 | rm -f conftest.er1 | ||
8299 | cat conftest.err >&5 | ||
8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8301 | (exit $ac_status); } >/dev/null; then | ||
8302 | if test -s conftest.err; then | ||
8303 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8304 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8305 | else | ||
8306 | ac_cpp_err= | ||
8307 | fi | ||
8308 | else | ||
8309 | ac_cpp_err=yes | ||
8310 | fi | ||
8311 | if test -z "$ac_cpp_err"; then | ||
8312 | ac_header_preproc=yes | ||
8313 | else | ||
8314 | echo "$as_me: failed program was:" >&5 | ||
8315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8316 | |||
8317 | ac_header_preproc=no | ||
8318 | fi | ||
8319 | rm -f conftest.err conftest.$ac_ext | ||
8320 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8321 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8322 | |||
8323 | # So? What about this header? | ||
8324 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8325 | yes:no: ) | ||
8326 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8327 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8329 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8330 | ac_header_preproc=yes | ||
8331 | ;; | ||
8332 | no:yes:* ) | ||
8333 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8334 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8335 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8336 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8337 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8338 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8339 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8340 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8342 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8343 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8344 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8345 | ( | ||
8346 | cat <<\_ASBOX | ||
8347 | ## ------------------------------------------- ## | ||
8348 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8349 | ## ------------------------------------------- ## | ||
8350 | _ASBOX | ||
8351 | ) | | ||
8352 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8353 | ;; | ||
8354 | esac | ||
8355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8359 | else | ||
8360 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8361 | fi | ||
8362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8364 | |||
8365 | fi | ||
8366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8367 | cat >>confdefs.h <<_ACEOF | ||
8368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8369 | _ACEOF | ||
8370 | |||
8371 | fi | ||
8372 | |||
8373 | done | ||
8374 | |||
8375 | else | ||
8376 | |||
8377 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
8378 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
8379 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
8380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8381 | else | ||
8382 | ac_check_lib_save_LIBS=$LIBS | ||
8383 | LIBS="-lgen $LIBS" | ||
8384 | cat >conftest.$ac_ext <<_ACEOF | ||
8385 | /* confdefs.h. */ | ||
8386 | _ACEOF | ||
8387 | cat confdefs.h >>conftest.$ac_ext | ||
8388 | cat >>conftest.$ac_ext <<_ACEOF | ||
8389 | /* end confdefs.h. */ | ||
8390 | |||
8391 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8392 | #ifdef __cplusplus | ||
8393 | extern "C" | ||
8394 | #endif | ||
8395 | /* We use char because int might match the return type of a gcc2 | ||
8396 | builtin and then its argument prototype would still apply. */ | ||
8397 | char dirname (); | ||
8398 | int | ||
8399 | main () | ||
8400 | { | ||
8401 | dirname (); | ||
8402 | ; | ||
8403 | return 0; | ||
8404 | } | ||
8405 | _ACEOF | ||
8406 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8408 | (eval $ac_link) 2>conftest.er1 | ||
8409 | ac_status=$? | ||
8410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8411 | rm -f conftest.er1 | ||
8412 | cat conftest.err >&5 | ||
8413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8414 | (exit $ac_status); } && | ||
8415 | { ac_try='test -z "$ac_c_werror_flag" | ||
8416 | || test ! -s conftest.err' | ||
8417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8418 | (eval $ac_try) 2>&5 | ||
8419 | ac_status=$? | ||
8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8421 | (exit $ac_status); }; } && | ||
8422 | { ac_try='test -s conftest$ac_exeext' | ||
8423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8424 | (eval $ac_try) 2>&5 | ||
8425 | ac_status=$? | ||
8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8427 | (exit $ac_status); }; }; then | ||
8428 | ac_cv_lib_gen_dirname=yes | ||
8429 | else | ||
8430 | echo "$as_me: failed program was:" >&5 | ||
8431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8432 | |||
8433 | ac_cv_lib_gen_dirname=no | ||
8434 | fi | ||
8435 | rm -f conftest.err conftest.$ac_objext \ | ||
8436 | conftest$ac_exeext conftest.$ac_ext | ||
8437 | LIBS=$ac_check_lib_save_LIBS | ||
8438 | fi | ||
8439 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
8440 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
8441 | if test $ac_cv_lib_gen_dirname = yes; then | ||
8442 | |||
8443 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
8444 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
8445 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8447 | else | ||
8448 | |||
8449 | save_LIBS="$LIBS" | ||
8450 | LIBS="$LIBS -lgen" | ||
8451 | if test "$cross_compiling" = yes; then | ||
8452 | ac_cv_have_broken_dirname="no" | ||
8453 | else | ||
8454 | cat >conftest.$ac_ext <<_ACEOF | ||
8455 | /* confdefs.h. */ | ||
8456 | _ACEOF | ||
8457 | cat confdefs.h >>conftest.$ac_ext | ||
8458 | cat >>conftest.$ac_ext <<_ACEOF | ||
8459 | /* end confdefs.h. */ | ||
8460 | |||
8461 | #include <libgen.h> | ||
8462 | #include <string.h> | ||
8463 | |||
8464 | int main(int argc, char **argv) { | ||
8465 | char *s, buf[32]; | ||
8466 | |||
8467 | strncpy(buf,"/etc", 32); | ||
8468 | s = dirname(buf); | ||
8469 | if (!s || strncmp(s, "/", 32) != 0) { | ||
8470 | exit(1); | ||
8471 | } else { | ||
8472 | exit(0); | ||
8473 | } | ||
8474 | } | ||
8475 | |||
8476 | _ACEOF | ||
8477 | rm -f conftest$ac_exeext | ||
8478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8479 | (eval $ac_link) 2>&5 | ||
8480 | ac_status=$? | ||
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8482 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8484 | (eval $ac_try) 2>&5 | ||
8485 | ac_status=$? | ||
8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8487 | (exit $ac_status); }; }; then | ||
8488 | ac_cv_have_broken_dirname="no" | ||
8489 | else | ||
8490 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8491 | echo "$as_me: failed program was:" >&5 | ||
8492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8493 | |||
8494 | ( exit $ac_status ) | ||
8495 | ac_cv_have_broken_dirname="yes" | ||
8496 | fi | ||
8497 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8498 | fi | ||
8499 | LIBS="$save_LIBS" | ||
8500 | |||
8501 | fi | ||
8502 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
8503 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
8504 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
8505 | LIBS="$LIBS -lgen" | ||
8506 | cat >>confdefs.h <<\_ACEOF | ||
8507 | #define HAVE_DIRNAME 1 | ||
8508 | _ACEOF | ||
8509 | |||
8510 | |||
8511 | for ac_header in libgen.h | ||
8512 | do | ||
8513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8519 | fi | ||
8520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8522 | else | ||
8523 | # Is the header compilable? | ||
8524 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8525 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
8526 | cat >conftest.$ac_ext <<_ACEOF | ||
8527 | /* confdefs.h. */ | ||
8528 | _ACEOF | ||
8529 | cat confdefs.h >>conftest.$ac_ext | ||
8530 | cat >>conftest.$ac_ext <<_ACEOF | ||
8531 | /* end confdefs.h. */ | ||
8532 | $ac_includes_default | ||
8533 | #include <$ac_header> | ||
8534 | _ACEOF | ||
8535 | rm -f conftest.$ac_objext | ||
8536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8537 | (eval $ac_compile) 2>conftest.er1 | ||
8538 | ac_status=$? | ||
8539 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8540 | rm -f conftest.er1 | ||
8541 | cat conftest.err >&5 | ||
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8543 | (exit $ac_status); } && | ||
8544 | { ac_try='test -z "$ac_c_werror_flag" | ||
8545 | || test ! -s conftest.err' | ||
8546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8547 | (eval $ac_try) 2>&5 | ||
8548 | ac_status=$? | ||
8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8550 | (exit $ac_status); }; } && | ||
8551 | { ac_try='test -s conftest.$ac_objext' | ||
8552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8553 | (eval $ac_try) 2>&5 | ||
8554 | ac_status=$? | ||
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8556 | (exit $ac_status); }; }; then | ||
8557 | ac_header_compiler=yes | ||
8558 | else | ||
8559 | echo "$as_me: failed program was:" >&5 | ||
8560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8561 | |||
8562 | ac_header_compiler=no | ||
8563 | fi | ||
8564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8565 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8566 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8567 | |||
8568 | # Is the header present? | ||
8569 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
8571 | cat >conftest.$ac_ext <<_ACEOF | ||
8572 | /* confdefs.h. */ | ||
8573 | _ACEOF | ||
8574 | cat confdefs.h >>conftest.$ac_ext | ||
8575 | cat >>conftest.$ac_ext <<_ACEOF | ||
8576 | /* end confdefs.h. */ | ||
8577 | #include <$ac_header> | ||
8578 | _ACEOF | ||
8579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8581 | ac_status=$? | ||
8582 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8583 | rm -f conftest.er1 | ||
8584 | cat conftest.err >&5 | ||
8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8586 | (exit $ac_status); } >/dev/null; then | ||
8587 | if test -s conftest.err; then | ||
8588 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8590 | else | ||
8591 | ac_cpp_err= | ||
8592 | fi | ||
8593 | else | ||
8594 | ac_cpp_err=yes | ||
8595 | fi | ||
8596 | if test -z "$ac_cpp_err"; then | ||
8597 | ac_header_preproc=yes | ||
8598 | else | ||
8599 | echo "$as_me: failed program was:" >&5 | ||
8600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8601 | |||
8602 | ac_header_preproc=no | ||
8603 | fi | ||
8604 | rm -f conftest.err conftest.$ac_ext | ||
8605 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8606 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8607 | |||
8608 | # So? What about this header? | ||
8609 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8610 | yes:no: ) | ||
8611 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8612 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8614 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8615 | ac_header_preproc=yes | ||
8616 | ;; | ||
8617 | no:yes:* ) | ||
8618 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8619 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8620 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8621 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8622 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8623 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8624 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8625 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8627 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8628 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8629 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8630 | ( | ||
8631 | cat <<\_ASBOX | ||
8632 | ## ------------------------------------------- ## | ||
8633 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8634 | ## ------------------------------------------- ## | ||
8635 | _ASBOX | ||
8636 | ) | | ||
8637 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8638 | ;; | ||
8639 | esac | ||
8640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8644 | else | ||
8645 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8646 | fi | ||
8647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8649 | |||
8650 | fi | ||
8651 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8652 | cat >>confdefs.h <<_ACEOF | ||
8653 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8654 | _ACEOF | ||
8655 | |||
8656 | fi | ||
8657 | |||
8658 | done | ||
8659 | |||
8660 | fi | ||
8661 | |||
8662 | fi | ||
8663 | |||
8664 | |||
8665 | fi | ||
8666 | done | ||
8667 | |||
8668 | |||
8669 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
8670 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
8671 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
8672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8673 | else | ||
8674 | cat >conftest.$ac_ext <<_ACEOF | ||
8675 | /* confdefs.h. */ | ||
8676 | _ACEOF | ||
8677 | cat confdefs.h >>conftest.$ac_ext | ||
8678 | cat >>conftest.$ac_ext <<_ACEOF | ||
8679 | /* end confdefs.h. */ | ||
8680 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
8681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8682 | #define getspnam innocuous_getspnam | ||
8683 | |||
8684 | /* System header to define __stub macros and hopefully few prototypes, | ||
8685 | which can conflict with char getspnam (); below. | ||
8686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8687 | <limits.h> exists even on freestanding compilers. */ | ||
8688 | |||
8689 | #ifdef __STDC__ | ||
8690 | # include <limits.h> | ||
8691 | #else | ||
8692 | # include <assert.h> | ||
8693 | #endif | ||
8694 | |||
8695 | #undef getspnam | ||
8696 | |||
8697 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8698 | #ifdef __cplusplus | ||
8699 | extern "C" | ||
8700 | { | ||
8701 | #endif | ||
8702 | /* We use char because int might match the return type of a gcc2 | ||
8703 | builtin and then its argument prototype would still apply. */ | ||
8704 | char getspnam (); | ||
8705 | /* The GNU C library defines this for functions which it implements | ||
8706 | to always fail with ENOSYS. Some functions are actually named | ||
8707 | something starting with __ and the normal name is an alias. */ | ||
8708 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
8709 | choke me | ||
8710 | #else | ||
8711 | char (*f) () = getspnam; | ||
8712 | #endif | ||
8713 | #ifdef __cplusplus | ||
8714 | } | ||
8715 | #endif | ||
8716 | |||
8717 | int | ||
8718 | main () | ||
8719 | { | ||
8720 | return f != getspnam; | ||
8721 | ; | ||
8722 | return 0; | ||
8723 | } | ||
8724 | _ACEOF | ||
8725 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8727 | (eval $ac_link) 2>conftest.er1 | ||
8728 | ac_status=$? | ||
8729 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8730 | rm -f conftest.er1 | ||
8731 | cat conftest.err >&5 | ||
8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8733 | (exit $ac_status); } && | ||
8734 | { ac_try='test -z "$ac_c_werror_flag" | ||
8735 | || test ! -s conftest.err' | ||
8736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8737 | (eval $ac_try) 2>&5 | ||
8738 | ac_status=$? | ||
8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8740 | (exit $ac_status); }; } && | ||
8741 | { ac_try='test -s conftest$ac_exeext' | ||
8742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8743 | (eval $ac_try) 2>&5 | ||
8744 | ac_status=$? | ||
8745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8746 | (exit $ac_status); }; }; then | ||
8747 | ac_cv_func_getspnam=yes | ||
8748 | else | ||
8749 | echo "$as_me: failed program was:" >&5 | ||
8750 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8751 | |||
8752 | ac_cv_func_getspnam=no | ||
8753 | fi | ||
8754 | rm -f conftest.err conftest.$ac_objext \ | ||
8755 | conftest$ac_exeext conftest.$ac_ext | ||
8756 | fi | ||
8757 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
8758 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
8759 | if test $ac_cv_func_getspnam = yes; then | ||
8760 | : | ||
8761 | else | ||
8762 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
8763 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
8764 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
8765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8766 | else | ||
8767 | ac_check_lib_save_LIBS=$LIBS | ||
8768 | LIBS="-lgen $LIBS" | ||
8769 | cat >conftest.$ac_ext <<_ACEOF | ||
8770 | /* confdefs.h. */ | ||
8771 | _ACEOF | ||
8772 | cat confdefs.h >>conftest.$ac_ext | ||
8773 | cat >>conftest.$ac_ext <<_ACEOF | ||
8774 | /* end confdefs.h. */ | ||
8775 | |||
8776 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8777 | #ifdef __cplusplus | ||
8778 | extern "C" | ||
8779 | #endif | ||
8780 | /* We use char because int might match the return type of a gcc2 | ||
8781 | builtin and then its argument prototype would still apply. */ | ||
8782 | char getspnam (); | ||
8783 | int | ||
8784 | main () | ||
8785 | { | ||
8786 | getspnam (); | ||
8787 | ; | ||
8788 | return 0; | ||
8789 | } | ||
8790 | _ACEOF | ||
8791 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8793 | (eval $ac_link) 2>conftest.er1 | ||
8794 | ac_status=$? | ||
8795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8796 | rm -f conftest.er1 | ||
8797 | cat conftest.err >&5 | ||
8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8799 | (exit $ac_status); } && | ||
8800 | { ac_try='test -z "$ac_c_werror_flag" | ||
8801 | || test ! -s conftest.err' | ||
8802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8803 | (eval $ac_try) 2>&5 | ||
8804 | ac_status=$? | ||
8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8806 | (exit $ac_status); }; } && | ||
8807 | { ac_try='test -s conftest$ac_exeext' | ||
8808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8809 | (eval $ac_try) 2>&5 | ||
8810 | ac_status=$? | ||
8811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8812 | (exit $ac_status); }; }; then | ||
8813 | ac_cv_lib_gen_getspnam=yes | ||
8814 | else | ||
8815 | echo "$as_me: failed program was:" >&5 | ||
8816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8817 | |||
8818 | ac_cv_lib_gen_getspnam=no | ||
8819 | fi | ||
8820 | rm -f conftest.err conftest.$ac_objext \ | ||
8821 | conftest$ac_exeext conftest.$ac_ext | ||
8822 | LIBS=$ac_check_lib_save_LIBS | ||
8823 | fi | ||
8824 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8825 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
8826 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
8827 | LIBS="$LIBS -lgen" | ||
8828 | fi | ||
8829 | |||
8830 | fi | ||
8831 | |||
8832 | echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
8833 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
8834 | if test "${ac_cv_search_basename+set}" = set; then | ||
8835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8836 | else | ||
8837 | ac_func_search_save_LIBS=$LIBS | ||
8838 | ac_cv_search_basename=no | ||
8839 | cat >conftest.$ac_ext <<_ACEOF | ||
8840 | /* confdefs.h. */ | ||
8841 | _ACEOF | ||
8842 | cat confdefs.h >>conftest.$ac_ext | ||
8843 | cat >>conftest.$ac_ext <<_ACEOF | ||
8844 | /* end confdefs.h. */ | ||
8845 | |||
8846 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8847 | #ifdef __cplusplus | ||
8848 | extern "C" | ||
8849 | #endif | ||
8850 | /* We use char because int might match the return type of a gcc2 | ||
8851 | builtin and then its argument prototype would still apply. */ | ||
8852 | char basename (); | ||
8853 | int | ||
8854 | main () | ||
8855 | { | ||
8856 | basename (); | ||
8857 | ; | ||
8858 | return 0; | ||
8859 | } | ||
8860 | _ACEOF | ||
8861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8863 | (eval $ac_link) 2>conftest.er1 | ||
8864 | ac_status=$? | ||
8865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8866 | rm -f conftest.er1 | ||
8867 | cat conftest.err >&5 | ||
8868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8869 | (exit $ac_status); } && | ||
8870 | { ac_try='test -z "$ac_c_werror_flag" | ||
8871 | || test ! -s conftest.err' | ||
8872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8873 | (eval $ac_try) 2>&5 | ||
8874 | ac_status=$? | ||
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8876 | (exit $ac_status); }; } && | ||
8877 | { ac_try='test -s conftest$ac_exeext' | ||
8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8879 | (eval $ac_try) 2>&5 | ||
8880 | ac_status=$? | ||
8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8882 | (exit $ac_status); }; }; then | ||
8883 | ac_cv_search_basename="none required" | ||
8884 | else | ||
8885 | echo "$as_me: failed program was:" >&5 | ||
8886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8887 | |||
8888 | fi | ||
8889 | rm -f conftest.err conftest.$ac_objext \ | ||
8890 | conftest$ac_exeext conftest.$ac_ext | ||
8891 | if test "$ac_cv_search_basename" = no; then | ||
8892 | for ac_lib in gen; do | ||
8893 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8894 | cat >conftest.$ac_ext <<_ACEOF | ||
8895 | /* confdefs.h. */ | ||
8896 | _ACEOF | ||
8897 | cat confdefs.h >>conftest.$ac_ext | ||
8898 | cat >>conftest.$ac_ext <<_ACEOF | ||
8899 | /* end confdefs.h. */ | ||
8900 | |||
8901 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8902 | #ifdef __cplusplus | ||
8903 | extern "C" | ||
8904 | #endif | ||
8905 | /* We use char because int might match the return type of a gcc2 | ||
8906 | builtin and then its argument prototype would still apply. */ | ||
8907 | char basename (); | ||
8908 | int | ||
8909 | main () | ||
8910 | { | ||
8911 | basename (); | ||
8912 | ; | ||
8913 | return 0; | ||
8914 | } | ||
8915 | _ACEOF | ||
8916 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8918 | (eval $ac_link) 2>conftest.er1 | ||
8919 | ac_status=$? | ||
8920 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8921 | rm -f conftest.er1 | ||
8922 | cat conftest.err >&5 | ||
8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8924 | (exit $ac_status); } && | ||
8925 | { ac_try='test -z "$ac_c_werror_flag" | ||
8926 | || test ! -s conftest.err' | ||
8927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8928 | (eval $ac_try) 2>&5 | ||
8929 | ac_status=$? | ||
8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8931 | (exit $ac_status); }; } && | ||
8932 | { ac_try='test -s conftest$ac_exeext' | ||
8933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8934 | (eval $ac_try) 2>&5 | ||
8935 | ac_status=$? | ||
8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8937 | (exit $ac_status); }; }; then | ||
8938 | ac_cv_search_basename="-l$ac_lib" | ||
8939 | break | ||
8940 | else | ||
8941 | echo "$as_me: failed program was:" >&5 | ||
8942 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8943 | |||
8944 | fi | ||
8945 | rm -f conftest.err conftest.$ac_objext \ | ||
8946 | conftest$ac_exeext conftest.$ac_ext | ||
8947 | done | ||
8948 | fi | ||
8949 | LIBS=$ac_func_search_save_LIBS | ||
8950 | fi | ||
8951 | echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
8952 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
8953 | if test "$ac_cv_search_basename" != no; then | ||
8954 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
8955 | |||
8956 | cat >>confdefs.h <<\_ACEOF | ||
8957 | #define HAVE_BASENAME 1 | ||
8958 | _ACEOF | ||
8959 | |||
8960 | fi | ||
8961 | |||
8962 | |||
8963 | |||
8964 | # Check whether --with-zlib or --without-zlib was given. | ||
8965 | if test "${with_zlib+set}" = set; then | ||
8966 | withval="$with_zlib" | ||
8967 | if test "x$withval" = "xno" ; then | ||
8968 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
8969 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
8970 | { (exit 1); exit 1; }; } | ||
8971 | elif test "x$withval" != "xyes"; then | ||
8972 | if test -d "$withval/lib"; then | ||
8973 | if test -n "${need_dash_r}"; then | ||
8974 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8975 | else | ||
8976 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8977 | fi | ||
8978 | else | ||
8979 | if test -n "${need_dash_r}"; then | ||
8980 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8981 | else | ||
8982 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8983 | fi | ||
8984 | fi | ||
8985 | if test -d "$withval/include"; then | ||
8986 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8987 | else | ||
8988 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8989 | fi | ||
8990 | fi | ||
8991 | |||
8992 | fi; | ||
8993 | |||
8994 | |||
8995 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
8996 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
8997 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
8998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8999 | else | ||
9000 | ac_check_lib_save_LIBS=$LIBS | ||
9001 | LIBS="-lz $LIBS" | ||
9002 | cat >conftest.$ac_ext <<_ACEOF | ||
9003 | /* confdefs.h. */ | ||
9004 | _ACEOF | ||
9005 | cat confdefs.h >>conftest.$ac_ext | ||
9006 | cat >>conftest.$ac_ext <<_ACEOF | ||
9007 | /* end confdefs.h. */ | ||
9008 | |||
9009 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9010 | #ifdef __cplusplus | ||
9011 | extern "C" | ||
9012 | #endif | ||
9013 | /* We use char because int might match the return type of a gcc2 | ||
9014 | builtin and then its argument prototype would still apply. */ | ||
9015 | char deflate (); | ||
9016 | int | ||
9017 | main () | ||
9018 | { | ||
9019 | deflate (); | ||
9020 | ; | ||
9021 | return 0; | ||
9022 | } | ||
9023 | _ACEOF | ||
9024 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9026 | (eval $ac_link) 2>conftest.er1 | ||
9027 | ac_status=$? | ||
9028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9029 | rm -f conftest.er1 | ||
9030 | cat conftest.err >&5 | ||
9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9032 | (exit $ac_status); } && | ||
9033 | { ac_try='test -z "$ac_c_werror_flag" | ||
9034 | || test ! -s conftest.err' | ||
9035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9036 | (eval $ac_try) 2>&5 | ||
9037 | ac_status=$? | ||
9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9039 | (exit $ac_status); }; } && | ||
9040 | { ac_try='test -s conftest$ac_exeext' | ||
9041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9042 | (eval $ac_try) 2>&5 | ||
9043 | ac_status=$? | ||
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9045 | (exit $ac_status); }; }; then | ||
9046 | ac_cv_lib_z_deflate=yes | ||
9047 | else | ||
9048 | echo "$as_me: failed program was:" >&5 | ||
9049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9050 | |||
9051 | ac_cv_lib_z_deflate=no | ||
9052 | fi | ||
9053 | rm -f conftest.err conftest.$ac_objext \ | ||
9054 | conftest$ac_exeext conftest.$ac_ext | ||
9055 | LIBS=$ac_check_lib_save_LIBS | ||
9056 | fi | ||
9057 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
9058 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
9059 | if test $ac_cv_lib_z_deflate = yes; then | ||
9060 | cat >>confdefs.h <<_ACEOF | ||
9061 | #define HAVE_LIBZ 1 | ||
9062 | _ACEOF | ||
9063 | |||
9064 | LIBS="-lz $LIBS" | ||
9065 | |||
9066 | else | ||
9067 | |||
9068 | saved_CPPFLAGS="$CPPFLAGS" | ||
9069 | saved_LDFLAGS="$LDFLAGS" | ||
9070 | save_LIBS="$LIBS" | ||
9071 | if test -n "${need_dash_r}"; then | ||
9072 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
9073 | else | ||
9074 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
9075 | fi | ||
9076 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
9077 | LIBS="$LIBS -lz" | ||
9078 | cat >conftest.$ac_ext <<_ACEOF | ||
9079 | /* confdefs.h. */ | ||
9080 | _ACEOF | ||
9081 | cat confdefs.h >>conftest.$ac_ext | ||
9082 | cat >>conftest.$ac_ext <<_ACEOF | ||
9083 | /* end confdefs.h. */ | ||
9084 | |||
9085 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9086 | #ifdef __cplusplus | ||
9087 | extern "C" | ||
9088 | #endif | ||
9089 | /* We use char because int might match the return type of a gcc2 | ||
9090 | builtin and then its argument prototype would still apply. */ | ||
9091 | char deflate (); | ||
9092 | int | ||
9093 | main () | ||
9094 | { | ||
9095 | deflate (); | ||
9096 | ; | ||
9097 | return 0; | ||
9098 | } | ||
9099 | _ACEOF | ||
9100 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9102 | (eval $ac_link) 2>conftest.er1 | ||
9103 | ac_status=$? | ||
9104 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9105 | rm -f conftest.er1 | ||
9106 | cat conftest.err >&5 | ||
9107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9108 | (exit $ac_status); } && | ||
9109 | { ac_try='test -z "$ac_c_werror_flag" | ||
9110 | || test ! -s conftest.err' | ||
9111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9112 | (eval $ac_try) 2>&5 | ||
9113 | ac_status=$? | ||
9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9115 | (exit $ac_status); }; } && | ||
9116 | { ac_try='test -s conftest$ac_exeext' | ||
9117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9118 | (eval $ac_try) 2>&5 | ||
9119 | ac_status=$? | ||
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9121 | (exit $ac_status); }; }; then | ||
9122 | cat >>confdefs.h <<\_ACEOF | ||
9123 | #define HAVE_LIBZ 1 | ||
9124 | _ACEOF | ||
9125 | |||
9126 | else | ||
9127 | echo "$as_me: failed program was:" >&5 | ||
9128 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9129 | |||
9130 | |||
9131 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
9132 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
9133 | { (exit 1); exit 1; }; } | ||
9134 | |||
9135 | |||
9136 | fi | ||
9137 | rm -f conftest.err conftest.$ac_objext \ | ||
9138 | conftest$ac_exeext conftest.$ac_ext | ||
9139 | |||
9140 | |||
9141 | fi | ||
9142 | |||
9143 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
9144 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
9145 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
9146 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9148 | fi | ||
9149 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
9150 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
9151 | else | ||
9152 | # Is the header compilable? | ||
9153 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
9154 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | ||
9155 | cat >conftest.$ac_ext <<_ACEOF | ||
9156 | /* confdefs.h. */ | ||
9157 | _ACEOF | ||
9158 | cat confdefs.h >>conftest.$ac_ext | ||
9159 | cat >>conftest.$ac_ext <<_ACEOF | ||
9160 | /* end confdefs.h. */ | ||
9161 | $ac_includes_default | ||
9162 | #include <zlib.h> | ||
9163 | _ACEOF | ||
9164 | rm -f conftest.$ac_objext | ||
9165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9166 | (eval $ac_compile) 2>conftest.er1 | ||
9167 | ac_status=$? | ||
9168 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9169 | rm -f conftest.er1 | ||
9170 | cat conftest.err >&5 | ||
9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9172 | (exit $ac_status); } && | ||
9173 | { ac_try='test -z "$ac_c_werror_flag" | ||
9174 | || test ! -s conftest.err' | ||
9175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9176 | (eval $ac_try) 2>&5 | ||
9177 | ac_status=$? | ||
9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9179 | (exit $ac_status); }; } && | ||
9180 | { ac_try='test -s conftest.$ac_objext' | ||
9181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9182 | (eval $ac_try) 2>&5 | ||
9183 | ac_status=$? | ||
9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9185 | (exit $ac_status); }; }; then | ||
9186 | ac_header_compiler=yes | ||
9187 | else | ||
9188 | echo "$as_me: failed program was:" >&5 | ||
9189 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9190 | |||
9191 | ac_header_compiler=no | ||
9192 | fi | ||
9193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9195 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
9196 | |||
9197 | # Is the header present? | ||
9198 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
9199 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | ||
9200 | cat >conftest.$ac_ext <<_ACEOF | ||
9201 | /* confdefs.h. */ | ||
9202 | _ACEOF | ||
9203 | cat confdefs.h >>conftest.$ac_ext | ||
9204 | cat >>conftest.$ac_ext <<_ACEOF | ||
9205 | /* end confdefs.h. */ | ||
9206 | #include <zlib.h> | ||
9207 | _ACEOF | ||
9208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
9209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
9210 | ac_status=$? | ||
9211 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9212 | rm -f conftest.er1 | ||
9213 | cat conftest.err >&5 | ||
9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9215 | (exit $ac_status); } >/dev/null; then | ||
9216 | if test -s conftest.err; then | ||
9217 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
9218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
9219 | else | ||
9220 | ac_cpp_err= | ||
9221 | fi | ||
9222 | else | ||
9223 | ac_cpp_err=yes | ||
9224 | fi | ||
9225 | if test -z "$ac_cpp_err"; then | ||
9226 | ac_header_preproc=yes | ||
9227 | else | ||
9228 | echo "$as_me: failed program was:" >&5 | ||
9229 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9230 | |||
9231 | ac_header_preproc=no | ||
9232 | fi | ||
9233 | rm -f conftest.err conftest.$ac_ext | ||
9234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9235 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
9236 | |||
9237 | # So? What about this header? | ||
9238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9239 | yes:no: ) | ||
9240 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9241 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9242 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
9243 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
9244 | ac_header_preproc=yes | ||
9245 | ;; | ||
9246 | no:yes:* ) | ||
9247 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
9248 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
9249 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
9250 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
9251 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
9252 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
9253 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
9254 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9255 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
9256 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
9257 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
9258 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
9259 | ( | ||
9260 | cat <<\_ASBOX | ||
9261 | ## ------------------------------------------- ## | ||
9262 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9263 | ## ------------------------------------------- ## | ||
9264 | _ASBOX | ||
9265 | ) | | ||
9266 | sed "s/^/$as_me: WARNING: /" >&2 | ||
9267 | ;; | ||
9268 | esac | ||
9269 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
9270 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
9271 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
9272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9273 | else | ||
9274 | ac_cv_header_zlib_h=$ac_header_preproc | ||
9275 | fi | ||
9276 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
9277 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
9278 | |||
9279 | fi | ||
9280 | if test $ac_cv_header_zlib_h = yes; then | ||
9281 | : | ||
9282 | else | ||
9283 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
9284 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
9285 | { (exit 1); exit 1; }; } | ||
9286 | fi | ||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
9292 | if test "${with_zlib_version_check+set}" = set; then | ||
9293 | withval="$with_zlib_version_check" | ||
9294 | if test "x$withval" = "xno" ; then | ||
9295 | zlib_check_nonfatal=1 | ||
9296 | fi | ||
9297 | |||
9298 | |||
9299 | fi; | ||
9300 | |||
9301 | echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
9302 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6 | ||
9303 | if test "$cross_compiling" = yes; then | ||
9304 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
9305 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
9306 | |||
9307 | else | ||
9308 | cat >conftest.$ac_ext <<_ACEOF | ||
9309 | /* confdefs.h. */ | ||
9310 | _ACEOF | ||
9311 | cat confdefs.h >>conftest.$ac_ext | ||
9312 | cat >>conftest.$ac_ext <<_ACEOF | ||
9313 | /* end confdefs.h. */ | ||
9314 | |||
9315 | #include <stdio.h> | ||
9316 | #include <zlib.h> | ||
9317 | int main() | ||
9318 | { | ||
9319 | int a=0, b=0, c=0, d=0, n, v; | ||
9320 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
9321 | if (n != 3 && n != 4) | ||
9322 | exit(1); | ||
9323 | v = a*1000000 + b*10000 + c*100 + d; | ||
9324 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
9325 | |||
9326 | /* 1.1.4 is OK */ | ||
9327 | if (a == 1 && b == 1 && c >= 4) | ||
9328 | exit(0); | ||
9329 | |||
9330 | /* 1.2.3 and up are OK */ | ||
9331 | if (v >= 1020300) | ||
9332 | exit(0); | ||
9333 | |||
9334 | exit(2); | ||
9335 | } | ||
9336 | |||
9337 | _ACEOF | ||
9338 | rm -f conftest$ac_exeext | ||
9339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9340 | (eval $ac_link) 2>&5 | ||
9341 | ac_status=$? | ||
9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9345 | (eval $ac_try) 2>&5 | ||
9346 | ac_status=$? | ||
9347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9348 | (exit $ac_status); }; }; then | ||
9349 | echo "$as_me:$LINENO: result: no" >&5 | ||
9350 | echo "${ECHO_T}no" >&6 | ||
9351 | else | ||
9352 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9353 | echo "$as_me: failed program was:" >&5 | ||
9354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9355 | |||
9356 | ( exit $ac_status ) | ||
9357 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9358 | echo "${ECHO_T}yes" >&6 | ||
9359 | if test -z "$zlib_check_nonfatal" ; then | ||
9360 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
9361 | Your reported zlib version has known security problems. It's possible your | ||
9362 | vendor has fixed these problems without changing the version number. If you | ||
9363 | are sure this is the case, you can disable the check by running | ||
9364 | \"./configure --without-zlib-version-check\". | ||
9365 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
9366 | See http://www.gzip.org/zlib/ for details." >&5 | ||
9367 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
9368 | Your reported zlib version has known security problems. It's possible your | ||
9369 | vendor has fixed these problems without changing the version number. If you | ||
9370 | are sure this is the case, you can disable the check by running | ||
9371 | \"./configure --without-zlib-version-check\". | ||
9372 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
9373 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
9374 | { (exit 1); exit 1; }; } | ||
9375 | else | ||
9376 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
9377 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
9378 | fi | ||
9379 | |||
9380 | fi | ||
9381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9382 | fi | ||
9383 | |||
9384 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
9385 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
9386 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
9387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9388 | else | ||
9389 | cat >conftest.$ac_ext <<_ACEOF | ||
9390 | /* confdefs.h. */ | ||
9391 | _ACEOF | ||
9392 | cat confdefs.h >>conftest.$ac_ext | ||
9393 | cat >>conftest.$ac_ext <<_ACEOF | ||
9394 | /* end confdefs.h. */ | ||
9395 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
9396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9397 | #define strcasecmp innocuous_strcasecmp | ||
9398 | |||
9399 | /* System header to define __stub macros and hopefully few prototypes, | ||
9400 | which can conflict with char strcasecmp (); below. | ||
9401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9402 | <limits.h> exists even on freestanding compilers. */ | ||
9403 | |||
9404 | #ifdef __STDC__ | ||
9405 | # include <limits.h> | ||
9406 | #else | ||
9407 | # include <assert.h> | ||
9408 | #endif | ||
9409 | |||
9410 | #undef strcasecmp | ||
9411 | |||
9412 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9413 | #ifdef __cplusplus | ||
9414 | extern "C" | ||
9415 | { | ||
9416 | #endif | ||
9417 | /* We use char because int might match the return type of a gcc2 | ||
9418 | builtin and then its argument prototype would still apply. */ | ||
9419 | char strcasecmp (); | ||
9420 | /* The GNU C library defines this for functions which it implements | ||
9421 | to always fail with ENOSYS. Some functions are actually named | ||
9422 | something starting with __ and the normal name is an alias. */ | ||
9423 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
9424 | choke me | ||
9425 | #else | ||
9426 | char (*f) () = strcasecmp; | ||
9427 | #endif | ||
9428 | #ifdef __cplusplus | ||
9429 | } | ||
9430 | #endif | ||
9431 | |||
9432 | int | ||
9433 | main () | ||
9434 | { | ||
9435 | return f != strcasecmp; | ||
9436 | ; | ||
9437 | return 0; | ||
9438 | } | ||
9439 | _ACEOF | ||
9440 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9442 | (eval $ac_link) 2>conftest.er1 | ||
9443 | ac_status=$? | ||
9444 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9445 | rm -f conftest.er1 | ||
9446 | cat conftest.err >&5 | ||
9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9448 | (exit $ac_status); } && | ||
9449 | { ac_try='test -z "$ac_c_werror_flag" | ||
9450 | || test ! -s conftest.err' | ||
9451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9452 | (eval $ac_try) 2>&5 | ||
9453 | ac_status=$? | ||
9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9455 | (exit $ac_status); }; } && | ||
9456 | { ac_try='test -s conftest$ac_exeext' | ||
9457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9458 | (eval $ac_try) 2>&5 | ||
9459 | ac_status=$? | ||
9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9461 | (exit $ac_status); }; }; then | ||
9462 | ac_cv_func_strcasecmp=yes | ||
9463 | else | ||
9464 | echo "$as_me: failed program was:" >&5 | ||
9465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9466 | |||
9467 | ac_cv_func_strcasecmp=no | ||
9468 | fi | ||
9469 | rm -f conftest.err conftest.$ac_objext \ | ||
9470 | conftest$ac_exeext conftest.$ac_ext | ||
9471 | fi | ||
9472 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
9473 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
9474 | if test $ac_cv_func_strcasecmp = yes; then | ||
9475 | : | ||
9476 | else | ||
9477 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
9478 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
9479 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9481 | else | ||
9482 | ac_check_lib_save_LIBS=$LIBS | ||
9483 | LIBS="-lresolv $LIBS" | ||
9484 | cat >conftest.$ac_ext <<_ACEOF | ||
9485 | /* confdefs.h. */ | ||
9486 | _ACEOF | ||
9487 | cat confdefs.h >>conftest.$ac_ext | ||
9488 | cat >>conftest.$ac_ext <<_ACEOF | ||
9489 | /* end confdefs.h. */ | ||
9490 | |||
9491 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9492 | #ifdef __cplusplus | ||
9493 | extern "C" | ||
9494 | #endif | ||
9495 | /* We use char because int might match the return type of a gcc2 | ||
9496 | builtin and then its argument prototype would still apply. */ | ||
9497 | char strcasecmp (); | ||
9498 | int | ||
9499 | main () | ||
9500 | { | ||
9501 | strcasecmp (); | ||
9502 | ; | ||
9503 | return 0; | ||
9504 | } | ||
9505 | _ACEOF | ||
9506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9508 | (eval $ac_link) 2>conftest.er1 | ||
9509 | ac_status=$? | ||
9510 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9511 | rm -f conftest.er1 | ||
9512 | cat conftest.err >&5 | ||
9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9514 | (exit $ac_status); } && | ||
9515 | { ac_try='test -z "$ac_c_werror_flag" | ||
9516 | || test ! -s conftest.err' | ||
9517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9518 | (eval $ac_try) 2>&5 | ||
9519 | ac_status=$? | ||
9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9521 | (exit $ac_status); }; } && | ||
9522 | { ac_try='test -s conftest$ac_exeext' | ||
9523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9524 | (eval $ac_try) 2>&5 | ||
9525 | ac_status=$? | ||
9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9527 | (exit $ac_status); }; }; then | ||
9528 | ac_cv_lib_resolv_strcasecmp=yes | ||
9529 | else | ||
9530 | echo "$as_me: failed program was:" >&5 | ||
9531 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9532 | |||
9533 | ac_cv_lib_resolv_strcasecmp=no | ||
9534 | fi | ||
9535 | rm -f conftest.err conftest.$ac_objext \ | ||
9536 | conftest$ac_exeext conftest.$ac_ext | ||
9537 | LIBS=$ac_check_lib_save_LIBS | ||
9538 | fi | ||
9539 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9540 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
9541 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
9542 | LIBS="$LIBS -lresolv" | ||
9543 | fi | ||
9544 | |||
9545 | |||
9546 | fi | ||
9547 | |||
9548 | |||
9549 | for ac_func in utimes | ||
9550 | do | ||
9551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9552 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9554 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9556 | else | ||
9557 | cat >conftest.$ac_ext <<_ACEOF | ||
9558 | /* confdefs.h. */ | ||
9559 | _ACEOF | ||
9560 | cat confdefs.h >>conftest.$ac_ext | ||
9561 | cat >>conftest.$ac_ext <<_ACEOF | ||
9562 | /* end confdefs.h. */ | ||
9563 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9564 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9565 | #define $ac_func innocuous_$ac_func | ||
9566 | |||
9567 | /* System header to define __stub macros and hopefully few prototypes, | ||
9568 | which can conflict with char $ac_func (); below. | ||
9569 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9570 | <limits.h> exists even on freestanding compilers. */ | ||
9571 | |||
9572 | #ifdef __STDC__ | ||
9573 | # include <limits.h> | ||
9574 | #else | ||
9575 | # include <assert.h> | ||
9576 | #endif | ||
9577 | |||
9578 | #undef $ac_func | ||
9579 | |||
9580 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9581 | #ifdef __cplusplus | ||
9582 | extern "C" | ||
9583 | { | ||
9584 | #endif | ||
9585 | /* We use char because int might match the return type of a gcc2 | ||
9586 | builtin and then its argument prototype would still apply. */ | ||
9587 | char $ac_func (); | ||
9588 | /* The GNU C library defines this for functions which it implements | ||
9589 | to always fail with ENOSYS. Some functions are actually named | ||
9590 | something starting with __ and the normal name is an alias. */ | ||
9591 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9592 | choke me | ||
9593 | #else | ||
9594 | char (*f) () = $ac_func; | ||
9595 | #endif | ||
9596 | #ifdef __cplusplus | ||
9597 | } | ||
9598 | #endif | ||
9599 | |||
9600 | int | ||
9601 | main () | ||
9602 | { | ||
9603 | return f != $ac_func; | ||
9604 | ; | ||
9605 | return 0; | ||
9606 | } | ||
9607 | _ACEOF | ||
9608 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9610 | (eval $ac_link) 2>conftest.er1 | ||
9611 | ac_status=$? | ||
9612 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9613 | rm -f conftest.er1 | ||
9614 | cat conftest.err >&5 | ||
9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9616 | (exit $ac_status); } && | ||
9617 | { ac_try='test -z "$ac_c_werror_flag" | ||
9618 | || test ! -s conftest.err' | ||
9619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9620 | (eval $ac_try) 2>&5 | ||
9621 | ac_status=$? | ||
9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9623 | (exit $ac_status); }; } && | ||
9624 | { ac_try='test -s conftest$ac_exeext' | ||
9625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9626 | (eval $ac_try) 2>&5 | ||
9627 | ac_status=$? | ||
9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9629 | (exit $ac_status); }; }; then | ||
9630 | eval "$as_ac_var=yes" | ||
9631 | else | ||
9632 | echo "$as_me: failed program was:" >&5 | ||
9633 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9634 | |||
9635 | eval "$as_ac_var=no" | ||
9636 | fi | ||
9637 | rm -f conftest.err conftest.$ac_objext \ | ||
9638 | conftest$ac_exeext conftest.$ac_ext | ||
9639 | fi | ||
9640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9641 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9642 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9643 | cat >>confdefs.h <<_ACEOF | ||
9644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9645 | _ACEOF | ||
9646 | |||
9647 | else | ||
9648 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
9649 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
9650 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9652 | else | ||
9653 | ac_check_lib_save_LIBS=$LIBS | ||
9654 | LIBS="-lc89 $LIBS" | ||
9655 | cat >conftest.$ac_ext <<_ACEOF | ||
9656 | /* confdefs.h. */ | ||
9657 | _ACEOF | ||
9658 | cat confdefs.h >>conftest.$ac_ext | ||
9659 | cat >>conftest.$ac_ext <<_ACEOF | ||
9660 | /* end confdefs.h. */ | ||
9661 | |||
9662 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9663 | #ifdef __cplusplus | ||
9664 | extern "C" | ||
9665 | #endif | ||
9666 | /* We use char because int might match the return type of a gcc2 | ||
9667 | builtin and then its argument prototype would still apply. */ | ||
9668 | char utimes (); | ||
9669 | int | ||
9670 | main () | ||
9671 | { | ||
9672 | utimes (); | ||
9673 | ; | ||
9674 | return 0; | ||
9675 | } | ||
9676 | _ACEOF | ||
9677 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9679 | (eval $ac_link) 2>conftest.er1 | ||
9680 | ac_status=$? | ||
9681 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9682 | rm -f conftest.er1 | ||
9683 | cat conftest.err >&5 | ||
9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9685 | (exit $ac_status); } && | ||
9686 | { ac_try='test -z "$ac_c_werror_flag" | ||
9687 | || test ! -s conftest.err' | ||
9688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9689 | (eval $ac_try) 2>&5 | ||
9690 | ac_status=$? | ||
9691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9692 | (exit $ac_status); }; } && | ||
9693 | { ac_try='test -s conftest$ac_exeext' | ||
9694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9695 | (eval $ac_try) 2>&5 | ||
9696 | ac_status=$? | ||
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9698 | (exit $ac_status); }; }; then | ||
9699 | ac_cv_lib_c89_utimes=yes | ||
9700 | else | ||
9701 | echo "$as_me: failed program was:" >&5 | ||
9702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9703 | |||
9704 | ac_cv_lib_c89_utimes=no | ||
9705 | fi | ||
9706 | rm -f conftest.err conftest.$ac_objext \ | ||
9707 | conftest$ac_exeext conftest.$ac_ext | ||
9708 | LIBS=$ac_check_lib_save_LIBS | ||
9709 | fi | ||
9710 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
9711 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
9712 | if test $ac_cv_lib_c89_utimes = yes; then | ||
9713 | cat >>confdefs.h <<\_ACEOF | ||
9714 | #define HAVE_UTIMES 1 | ||
9715 | _ACEOF | ||
9716 | |||
9717 | LIBS="$LIBS -lc89" | ||
9718 | fi | ||
9719 | |||
9720 | |||
9721 | fi | ||
9722 | done | ||
9723 | |||
9724 | |||
9725 | |||
9726 | for ac_header in libutil.h | ||
9727 | do | ||
9728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9730 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9734 | fi | ||
9735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9737 | else | ||
9738 | # Is the header compilable? | ||
9739 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9740 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
9741 | cat >conftest.$ac_ext <<_ACEOF | ||
9742 | /* confdefs.h. */ | ||
9743 | _ACEOF | ||
9744 | cat confdefs.h >>conftest.$ac_ext | ||
9745 | cat >>conftest.$ac_ext <<_ACEOF | ||
9746 | /* end confdefs.h. */ | ||
9747 | $ac_includes_default | ||
9748 | #include <$ac_header> | ||
9749 | _ACEOF | ||
9750 | rm -f conftest.$ac_objext | ||
9751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9752 | (eval $ac_compile) 2>conftest.er1 | ||
9753 | ac_status=$? | ||
9754 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9755 | rm -f conftest.er1 | ||
9756 | cat conftest.err >&5 | ||
9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9758 | (exit $ac_status); } && | ||
9759 | { ac_try='test -z "$ac_c_werror_flag" | ||
9760 | || test ! -s conftest.err' | ||
9761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9762 | (eval $ac_try) 2>&5 | ||
9763 | ac_status=$? | ||
9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9765 | (exit $ac_status); }; } && | ||
9766 | { ac_try='test -s conftest.$ac_objext' | ||
9767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9768 | (eval $ac_try) 2>&5 | ||
9769 | ac_status=$? | ||
9770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9771 | (exit $ac_status); }; }; then | ||
9772 | ac_header_compiler=yes | ||
9773 | else | ||
9774 | echo "$as_me: failed program was:" >&5 | ||
9775 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9776 | |||
9777 | ac_header_compiler=no | ||
9778 | fi | ||
9779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9780 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9781 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
9782 | |||
9783 | # Is the header present? | ||
9784 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
9786 | cat >conftest.$ac_ext <<_ACEOF | ||
9787 | /* confdefs.h. */ | ||
9788 | _ACEOF | ||
9789 | cat confdefs.h >>conftest.$ac_ext | ||
9790 | cat >>conftest.$ac_ext <<_ACEOF | ||
9791 | /* end confdefs.h. */ | ||
9792 | #include <$ac_header> | ||
9793 | _ACEOF | ||
9794 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
9795 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
9796 | ac_status=$? | ||
9797 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9798 | rm -f conftest.er1 | ||
9799 | cat conftest.err >&5 | ||
9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9801 | (exit $ac_status); } >/dev/null; then | ||
9802 | if test -s conftest.err; then | ||
9803 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
9804 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
9805 | else | ||
9806 | ac_cpp_err= | ||
9807 | fi | ||
9808 | else | ||
9809 | ac_cpp_err=yes | ||
9810 | fi | ||
9811 | if test -z "$ac_cpp_err"; then | ||
9812 | ac_header_preproc=yes | ||
9813 | else | ||
9814 | echo "$as_me: failed program was:" >&5 | ||
9815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9816 | |||
9817 | ac_header_preproc=no | ||
9818 | fi | ||
9819 | rm -f conftest.err conftest.$ac_ext | ||
9820 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9821 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
9822 | |||
9823 | # So? What about this header? | ||
9824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9825 | yes:no: ) | ||
9826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9829 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9830 | ac_header_preproc=yes | ||
9831 | ;; | ||
9832 | no:yes:* ) | ||
9833 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9834 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9835 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9836 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9837 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9838 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9839 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9840 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9842 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9843 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9844 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9845 | ( | ||
9846 | cat <<\_ASBOX | ||
9847 | ## ------------------------------------------- ## | ||
9848 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9849 | ## ------------------------------------------- ## | ||
9850 | _ASBOX | ||
9851 | ) | | ||
9852 | sed "s/^/$as_me: WARNING: /" >&2 | ||
9853 | ;; | ||
9854 | esac | ||
9855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9859 | else | ||
9860 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9861 | fi | ||
9862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9864 | |||
9865 | fi | ||
9866 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9867 | cat >>confdefs.h <<_ACEOF | ||
9868 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9869 | _ACEOF | ||
9870 | |||
9871 | fi | ||
9872 | |||
9873 | done | ||
9874 | |||
9875 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
9876 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
9877 | if test "${ac_cv_search_login+set}" = set; then | ||
9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9879 | else | ||
9880 | ac_func_search_save_LIBS=$LIBS | ||
9881 | ac_cv_search_login=no | ||
9882 | cat >conftest.$ac_ext <<_ACEOF | ||
9883 | /* confdefs.h. */ | ||
9884 | _ACEOF | ||
9885 | cat confdefs.h >>conftest.$ac_ext | ||
9886 | cat >>conftest.$ac_ext <<_ACEOF | ||
9887 | /* end confdefs.h. */ | ||
9888 | |||
9889 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9890 | #ifdef __cplusplus | ||
9891 | extern "C" | ||
9892 | #endif | ||
9893 | /* We use char because int might match the return type of a gcc2 | ||
9894 | builtin and then its argument prototype would still apply. */ | ||
9895 | char login (); | ||
9896 | int | ||
9897 | main () | ||
9898 | { | ||
9899 | login (); | ||
9900 | ; | ||
9901 | return 0; | ||
9902 | } | ||
9903 | _ACEOF | ||
9904 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9906 | (eval $ac_link) 2>conftest.er1 | ||
9907 | ac_status=$? | ||
9908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9909 | rm -f conftest.er1 | ||
9910 | cat conftest.err >&5 | ||
9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9912 | (exit $ac_status); } && | ||
9913 | { ac_try='test -z "$ac_c_werror_flag" | ||
9914 | || test ! -s conftest.err' | ||
9915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9916 | (eval $ac_try) 2>&5 | ||
9917 | ac_status=$? | ||
9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9919 | (exit $ac_status); }; } && | ||
9920 | { ac_try='test -s conftest$ac_exeext' | ||
9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9922 | (eval $ac_try) 2>&5 | ||
9923 | ac_status=$? | ||
9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9925 | (exit $ac_status); }; }; then | ||
9926 | ac_cv_search_login="none required" | ||
9927 | else | ||
9928 | echo "$as_me: failed program was:" >&5 | ||
9929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9930 | |||
9931 | fi | ||
9932 | rm -f conftest.err conftest.$ac_objext \ | ||
9933 | conftest$ac_exeext conftest.$ac_ext | ||
9934 | if test "$ac_cv_search_login" = no; then | ||
9935 | for ac_lib in util bsd; do | ||
9936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9937 | cat >conftest.$ac_ext <<_ACEOF | ||
9938 | /* confdefs.h. */ | ||
9939 | _ACEOF | ||
9940 | cat confdefs.h >>conftest.$ac_ext | ||
9941 | cat >>conftest.$ac_ext <<_ACEOF | ||
9942 | /* end confdefs.h. */ | ||
9943 | |||
9944 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9945 | #ifdef __cplusplus | ||
9946 | extern "C" | ||
9947 | #endif | ||
9948 | /* We use char because int might match the return type of a gcc2 | ||
9949 | builtin and then its argument prototype would still apply. */ | ||
9950 | char login (); | ||
9951 | int | ||
9952 | main () | ||
9953 | { | ||
9954 | login (); | ||
9955 | ; | ||
9956 | return 0; | ||
9957 | } | ||
9958 | _ACEOF | ||
9959 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9961 | (eval $ac_link) 2>conftest.er1 | ||
9962 | ac_status=$? | ||
9963 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9964 | rm -f conftest.er1 | ||
9965 | cat conftest.err >&5 | ||
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9967 | (exit $ac_status); } && | ||
9968 | { ac_try='test -z "$ac_c_werror_flag" | ||
9969 | || test ! -s conftest.err' | ||
9970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9971 | (eval $ac_try) 2>&5 | ||
9972 | ac_status=$? | ||
9973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9974 | (exit $ac_status); }; } && | ||
9975 | { ac_try='test -s conftest$ac_exeext' | ||
9976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9977 | (eval $ac_try) 2>&5 | ||
9978 | ac_status=$? | ||
9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9980 | (exit $ac_status); }; }; then | ||
9981 | ac_cv_search_login="-l$ac_lib" | ||
9982 | break | ||
9983 | else | ||
9984 | echo "$as_me: failed program was:" >&5 | ||
9985 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9986 | |||
9987 | fi | ||
9988 | rm -f conftest.err conftest.$ac_objext \ | ||
9989 | conftest$ac_exeext conftest.$ac_ext | ||
9990 | done | ||
9991 | fi | ||
9992 | LIBS=$ac_func_search_save_LIBS | ||
9993 | fi | ||
9994 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
9995 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
9996 | if test "$ac_cv_search_login" != no; then | ||
9997 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
9998 | |||
9999 | cat >>confdefs.h <<\_ACEOF | ||
10000 | #define HAVE_LOGIN 1 | ||
10001 | _ACEOF | ||
10002 | |||
10003 | fi | ||
10004 | |||
10005 | |||
10006 | |||
10007 | |||
10008 | for ac_func in logout updwtmp logwtmp | ||
10009 | do | ||
10010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10011 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10013 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10015 | else | ||
10016 | cat >conftest.$ac_ext <<_ACEOF | ||
10017 | /* confdefs.h. */ | ||
10018 | _ACEOF | ||
10019 | cat confdefs.h >>conftest.$ac_ext | ||
10020 | cat >>conftest.$ac_ext <<_ACEOF | ||
10021 | /* end confdefs.h. */ | ||
10022 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10024 | #define $ac_func innocuous_$ac_func | ||
10025 | |||
10026 | /* System header to define __stub macros and hopefully few prototypes, | ||
10027 | which can conflict with char $ac_func (); below. | ||
10028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10029 | <limits.h> exists even on freestanding compilers. */ | ||
10030 | |||
10031 | #ifdef __STDC__ | ||
10032 | # include <limits.h> | ||
10033 | #else | ||
10034 | # include <assert.h> | ||
10035 | #endif | ||
10036 | |||
10037 | #undef $ac_func | ||
10038 | |||
10039 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10040 | #ifdef __cplusplus | ||
10041 | extern "C" | ||
10042 | { | ||
10043 | #endif | ||
10044 | /* We use char because int might match the return type of a gcc2 | ||
10045 | builtin and then its argument prototype would still apply. */ | ||
10046 | char $ac_func (); | ||
10047 | /* The GNU C library defines this for functions which it implements | ||
10048 | to always fail with ENOSYS. Some functions are actually named | ||
10049 | something starting with __ and the normal name is an alias. */ | ||
10050 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10051 | choke me | ||
10052 | #else | ||
10053 | char (*f) () = $ac_func; | ||
10054 | #endif | ||
10055 | #ifdef __cplusplus | ||
10056 | } | ||
10057 | #endif | ||
10058 | |||
10059 | int | ||
10060 | main () | ||
10061 | { | ||
10062 | return f != $ac_func; | ||
10063 | ; | ||
10064 | return 0; | ||
10065 | } | ||
10066 | _ACEOF | ||
10067 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10069 | (eval $ac_link) 2>conftest.er1 | ||
10070 | ac_status=$? | ||
10071 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10072 | rm -f conftest.er1 | ||
10073 | cat conftest.err >&5 | ||
10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10075 | (exit $ac_status); } && | ||
10076 | { ac_try='test -z "$ac_c_werror_flag" | ||
10077 | || test ! -s conftest.err' | ||
10078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10079 | (eval $ac_try) 2>&5 | ||
10080 | ac_status=$? | ||
10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10082 | (exit $ac_status); }; } && | ||
10083 | { ac_try='test -s conftest$ac_exeext' | ||
10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10085 | (eval $ac_try) 2>&5 | ||
10086 | ac_status=$? | ||
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10088 | (exit $ac_status); }; }; then | ||
10089 | eval "$as_ac_var=yes" | ||
10090 | else | ||
10091 | echo "$as_me: failed program was:" >&5 | ||
10092 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10093 | |||
10094 | eval "$as_ac_var=no" | ||
10095 | fi | ||
10096 | rm -f conftest.err conftest.$ac_objext \ | ||
10097 | conftest$ac_exeext conftest.$ac_ext | ||
10098 | fi | ||
10099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10100 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10101 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10102 | cat >>confdefs.h <<_ACEOF | ||
10103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10104 | _ACEOF | ||
10105 | |||
10106 | fi | ||
10107 | done | ||
10108 | |||
10109 | |||
10110 | |||
10111 | for ac_func in strftime | ||
10112 | do | ||
10113 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10114 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10115 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10116 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10118 | else | ||
10119 | cat >conftest.$ac_ext <<_ACEOF | ||
10120 | /* confdefs.h. */ | ||
10121 | _ACEOF | ||
10122 | cat confdefs.h >>conftest.$ac_ext | ||
10123 | cat >>conftest.$ac_ext <<_ACEOF | ||
10124 | /* end confdefs.h. */ | ||
10125 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10126 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10127 | #define $ac_func innocuous_$ac_func | ||
10128 | |||
10129 | /* System header to define __stub macros and hopefully few prototypes, | ||
10130 | which can conflict with char $ac_func (); below. | ||
10131 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10132 | <limits.h> exists even on freestanding compilers. */ | ||
10133 | |||
10134 | #ifdef __STDC__ | ||
10135 | # include <limits.h> | ||
10136 | #else | ||
10137 | # include <assert.h> | ||
10138 | #endif | ||
10139 | |||
10140 | #undef $ac_func | ||
10141 | |||
10142 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10143 | #ifdef __cplusplus | ||
10144 | extern "C" | ||
10145 | { | ||
10146 | #endif | ||
10147 | /* We use char because int might match the return type of a gcc2 | ||
10148 | builtin and then its argument prototype would still apply. */ | ||
10149 | char $ac_func (); | ||
10150 | /* The GNU C library defines this for functions which it implements | ||
10151 | to always fail with ENOSYS. Some functions are actually named | ||
10152 | something starting with __ and the normal name is an alias. */ | ||
10153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10154 | choke me | ||
10155 | #else | ||
10156 | char (*f) () = $ac_func; | ||
10157 | #endif | ||
10158 | #ifdef __cplusplus | ||
10159 | } | ||
10160 | #endif | ||
10161 | |||
10162 | int | ||
10163 | main () | ||
10164 | { | ||
10165 | return f != $ac_func; | ||
10166 | ; | ||
10167 | return 0; | ||
10168 | } | ||
10169 | _ACEOF | ||
10170 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10172 | (eval $ac_link) 2>conftest.er1 | ||
10173 | ac_status=$? | ||
10174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10175 | rm -f conftest.er1 | ||
10176 | cat conftest.err >&5 | ||
10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10178 | (exit $ac_status); } && | ||
10179 | { ac_try='test -z "$ac_c_werror_flag" | ||
10180 | || test ! -s conftest.err' | ||
10181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10182 | (eval $ac_try) 2>&5 | ||
10183 | ac_status=$? | ||
10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10185 | (exit $ac_status); }; } && | ||
10186 | { ac_try='test -s conftest$ac_exeext' | ||
10187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10188 | (eval $ac_try) 2>&5 | ||
10189 | ac_status=$? | ||
10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10191 | (exit $ac_status); }; }; then | ||
10192 | eval "$as_ac_var=yes" | ||
10193 | else | ||
10194 | echo "$as_me: failed program was:" >&5 | ||
10195 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10196 | |||
10197 | eval "$as_ac_var=no" | ||
10198 | fi | ||
10199 | rm -f conftest.err conftest.$ac_objext \ | ||
10200 | conftest$ac_exeext conftest.$ac_ext | ||
10201 | fi | ||
10202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10203 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10204 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10205 | cat >>confdefs.h <<_ACEOF | ||
10206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10207 | _ACEOF | ||
10208 | |||
10209 | else | ||
10210 | # strftime is in -lintl on SCO UNIX. | ||
10211 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
10212 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
10213 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10215 | else | ||
10216 | ac_check_lib_save_LIBS=$LIBS | ||
10217 | LIBS="-lintl $LIBS" | ||
10218 | cat >conftest.$ac_ext <<_ACEOF | ||
10219 | /* confdefs.h. */ | ||
10220 | _ACEOF | ||
10221 | cat confdefs.h >>conftest.$ac_ext | ||
10222 | cat >>conftest.$ac_ext <<_ACEOF | ||
10223 | /* end confdefs.h. */ | ||
10224 | |||
10225 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10226 | #ifdef __cplusplus | ||
10227 | extern "C" | ||
10228 | #endif | ||
10229 | /* We use char because int might match the return type of a gcc2 | ||
10230 | builtin and then its argument prototype would still apply. */ | ||
10231 | char strftime (); | ||
10232 | int | ||
10233 | main () | ||
10234 | { | ||
10235 | strftime (); | ||
10236 | ; | ||
10237 | return 0; | ||
10238 | } | ||
10239 | _ACEOF | ||
10240 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10242 | (eval $ac_link) 2>conftest.er1 | ||
10243 | ac_status=$? | ||
10244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10245 | rm -f conftest.er1 | ||
10246 | cat conftest.err >&5 | ||
10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10248 | (exit $ac_status); } && | ||
10249 | { ac_try='test -z "$ac_c_werror_flag" | ||
10250 | || test ! -s conftest.err' | ||
10251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10252 | (eval $ac_try) 2>&5 | ||
10253 | ac_status=$? | ||
10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10255 | (exit $ac_status); }; } && | ||
10256 | { ac_try='test -s conftest$ac_exeext' | ||
10257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10258 | (eval $ac_try) 2>&5 | ||
10259 | ac_status=$? | ||
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10261 | (exit $ac_status); }; }; then | ||
10262 | ac_cv_lib_intl_strftime=yes | ||
10263 | else | ||
10264 | echo "$as_me: failed program was:" >&5 | ||
10265 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10266 | |||
10267 | ac_cv_lib_intl_strftime=no | ||
10268 | fi | ||
10269 | rm -f conftest.err conftest.$ac_objext \ | ||
10270 | conftest$ac_exeext conftest.$ac_ext | ||
10271 | LIBS=$ac_check_lib_save_LIBS | ||
10272 | fi | ||
10273 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
10274 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
10275 | if test $ac_cv_lib_intl_strftime = yes; then | ||
10276 | cat >>confdefs.h <<\_ACEOF | ||
10277 | #define HAVE_STRFTIME 1 | ||
10278 | _ACEOF | ||
10279 | |||
10280 | LIBS="-lintl $LIBS" | ||
10281 | fi | ||
10282 | |||
10283 | fi | ||
10284 | done | ||
10285 | |||
10286 | |||
10287 | # Check for ALTDIRFUNC glob() extension | ||
10288 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
10289 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
10290 | cat >conftest.$ac_ext <<_ACEOF | ||
10291 | /* confdefs.h. */ | ||
10292 | _ACEOF | ||
10293 | cat confdefs.h >>conftest.$ac_ext | ||
10294 | cat >>conftest.$ac_ext <<_ACEOF | ||
10295 | /* end confdefs.h. */ | ||
10296 | |||
10297 | #include <glob.h> | ||
10298 | #ifdef GLOB_ALTDIRFUNC | ||
10299 | FOUNDIT | ||
10300 | #endif | ||
10301 | |||
10302 | _ACEOF | ||
10303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
10304 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
10305 | |||
10306 | |||
10307 | cat >>confdefs.h <<\_ACEOF | ||
10308 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
10309 | _ACEOF | ||
10310 | |||
10311 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10312 | echo "${ECHO_T}yes" >&6 | ||
10313 | |||
10314 | else | ||
10315 | |||
10316 | echo "$as_me:$LINENO: result: no" >&5 | ||
10317 | echo "${ECHO_T}no" >&6 | ||
10318 | |||
10319 | |||
10320 | fi | ||
10321 | rm -f conftest* | ||
10322 | |||
10323 | |||
10324 | # Check for g.gl_matchc glob() extension | ||
10325 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
10326 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
10327 | cat >conftest.$ac_ext <<_ACEOF | ||
10328 | /* confdefs.h. */ | ||
10329 | _ACEOF | ||
10330 | cat confdefs.h >>conftest.$ac_ext | ||
10331 | cat >>conftest.$ac_ext <<_ACEOF | ||
10332 | /* end confdefs.h. */ | ||
10333 | |||
10334 | #include <glob.h> | ||
10335 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
10336 | |||
10337 | _ACEOF | ||
10338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
10339 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
10340 | |||
10341 | |||
10342 | cat >>confdefs.h <<\_ACEOF | ||
10343 | #define GLOB_HAS_GL_MATCHC 1 | ||
10344 | _ACEOF | ||
10345 | |||
10346 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10347 | echo "${ECHO_T}yes" >&6 | ||
10348 | |||
10349 | else | ||
10350 | |||
10351 | echo "$as_me:$LINENO: result: no" >&5 | ||
10352 | echo "${ECHO_T}no" >&6 | ||
10353 | |||
10354 | |||
10355 | fi | ||
10356 | rm -f conftest* | ||
10357 | |||
10358 | |||
10359 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
10360 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
10361 | if test "$cross_compiling" = yes; then | ||
10362 | |||
10363 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
10364 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
10365 | cat >>confdefs.h <<\_ACEOF | ||
10366 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
10367 | _ACEOF | ||
10368 | |||
10369 | |||
10370 | |||
10371 | else | ||
10372 | cat >conftest.$ac_ext <<_ACEOF | ||
10373 | /* confdefs.h. */ | ||
10374 | _ACEOF | ||
10375 | cat confdefs.h >>conftest.$ac_ext | ||
10376 | cat >>conftest.$ac_ext <<_ACEOF | ||
10377 | /* end confdefs.h. */ | ||
10378 | |||
10379 | #include <sys/types.h> | ||
10380 | #include <dirent.h> | ||
10381 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
10382 | |||
10383 | _ACEOF | ||
10384 | rm -f conftest$ac_exeext | ||
10385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10386 | (eval $ac_link) 2>&5 | ||
10387 | ac_status=$? | ||
10388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10389 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10391 | (eval $ac_try) 2>&5 | ||
10392 | ac_status=$? | ||
10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10394 | (exit $ac_status); }; }; then | ||
10395 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10396 | echo "${ECHO_T}yes" >&6 | ||
10397 | else | ||
10398 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10399 | echo "$as_me: failed program was:" >&5 | ||
10400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10401 | |||
10402 | ( exit $ac_status ) | ||
10403 | |||
10404 | echo "$as_me:$LINENO: result: no" >&5 | ||
10405 | echo "${ECHO_T}no" >&6 | ||
10406 | |||
10407 | cat >>confdefs.h <<\_ACEOF | ||
10408 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
10409 | _ACEOF | ||
10410 | |||
10411 | |||
10412 | fi | ||
10413 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10414 | fi | ||
10415 | |||
10416 | echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
10417 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6 | ||
10418 | if test -d "/proc/$$/fd" ; then | ||
10419 | |||
10420 | cat >>confdefs.h <<\_ACEOF | ||
10421 | #define HAVE_PROC_PID 1 | ||
10422 | _ACEOF | ||
10423 | |||
10424 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10425 | echo "${ECHO_T}yes" >&6 | ||
10426 | else | ||
10427 | echo "$as_me:$LINENO: result: no" >&5 | ||
10428 | echo "${ECHO_T}no" >&6 | ||
10429 | fi | ||
10430 | |||
10431 | # Check whether user wants S/Key support | ||
10432 | SKEY_MSG="no" | ||
10433 | |||
10434 | # Check whether --with-skey or --without-skey was given. | ||
10435 | if test "${with_skey+set}" = set; then | ||
10436 | withval="$with_skey" | ||
10437 | |||
10438 | if test "x$withval" != "xno" ; then | ||
10439 | |||
10440 | if test "x$withval" != "xyes" ; then | ||
10441 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10442 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10443 | fi | ||
10444 | |||
10445 | |||
10446 | cat >>confdefs.h <<\_ACEOF | ||
10447 | #define SKEY 1 | ||
10448 | _ACEOF | ||
10449 | |||
10450 | LIBS="-lskey $LIBS" | ||
10451 | SKEY_MSG="yes" | ||
10452 | |||
10453 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
10454 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
10455 | cat >conftest.$ac_ext <<_ACEOF | ||
10456 | /* confdefs.h. */ | ||
10457 | _ACEOF | ||
10458 | cat confdefs.h >>conftest.$ac_ext | ||
10459 | cat >>conftest.$ac_ext <<_ACEOF | ||
10460 | /* end confdefs.h. */ | ||
10461 | |||
10462 | #include <stdio.h> | ||
10463 | #include <skey.h> | ||
10464 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
10465 | |||
10466 | _ACEOF | ||
10467 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10469 | (eval $ac_link) 2>conftest.er1 | ||
10470 | ac_status=$? | ||
10471 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10472 | rm -f conftest.er1 | ||
10473 | cat conftest.err >&5 | ||
10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10475 | (exit $ac_status); } && | ||
10476 | { ac_try='test -z "$ac_c_werror_flag" | ||
10477 | || test ! -s conftest.err' | ||
10478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10479 | (eval $ac_try) 2>&5 | ||
10480 | ac_status=$? | ||
10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10482 | (exit $ac_status); }; } && | ||
10483 | { ac_try='test -s conftest$ac_exeext' | ||
10484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10485 | (eval $ac_try) 2>&5 | ||
10486 | ac_status=$? | ||
10487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10488 | (exit $ac_status); }; }; then | ||
10489 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10490 | echo "${ECHO_T}yes" >&6 | ||
10491 | else | ||
10492 | echo "$as_me: failed program was:" >&5 | ||
10493 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10494 | |||
10495 | |||
10496 | echo "$as_me:$LINENO: result: no" >&5 | ||
10497 | echo "${ECHO_T}no" >&6 | ||
10498 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
10499 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
10500 | { (exit 1); exit 1; }; } | ||
10501 | |||
10502 | fi | ||
10503 | rm -f conftest.err conftest.$ac_objext \ | ||
10504 | conftest$ac_exeext conftest.$ac_ext | ||
10505 | echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
10506 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
10507 | cat >conftest.$ac_ext <<_ACEOF | ||
10508 | /* confdefs.h. */ | ||
10509 | _ACEOF | ||
10510 | cat confdefs.h >>conftest.$ac_ext | ||
10511 | cat >>conftest.$ac_ext <<_ACEOF | ||
10512 | /* end confdefs.h. */ | ||
10513 | #include <stdio.h> | ||
10514 | #include <skey.h> | ||
10515 | int | ||
10516 | main () | ||
10517 | { | ||
10518 | (void)skeychallenge(NULL,"name","",0); | ||
10519 | ; | ||
10520 | return 0; | ||
10521 | } | ||
10522 | _ACEOF | ||
10523 | rm -f conftest.$ac_objext | ||
10524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10525 | (eval $ac_compile) 2>conftest.er1 | ||
10526 | ac_status=$? | ||
10527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10528 | rm -f conftest.er1 | ||
10529 | cat conftest.err >&5 | ||
10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10531 | (exit $ac_status); } && | ||
10532 | { ac_try='test -z "$ac_c_werror_flag" | ||
10533 | || test ! -s conftest.err' | ||
10534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10535 | (eval $ac_try) 2>&5 | ||
10536 | ac_status=$? | ||
10537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10538 | (exit $ac_status); }; } && | ||
10539 | { ac_try='test -s conftest.$ac_objext' | ||
10540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10541 | (eval $ac_try) 2>&5 | ||
10542 | ac_status=$? | ||
10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10544 | (exit $ac_status); }; }; then | ||
10545 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10546 | echo "${ECHO_T}yes" >&6 | ||
10547 | |||
10548 | cat >>confdefs.h <<\_ACEOF | ||
10549 | #define SKEYCHALLENGE_4ARG 1 | ||
10550 | _ACEOF | ||
10551 | |||
10552 | else | ||
10553 | echo "$as_me: failed program was:" >&5 | ||
10554 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10555 | |||
10556 | echo "$as_me:$LINENO: result: no" >&5 | ||
10557 | echo "${ECHO_T}no" >&6 | ||
10558 | |||
10559 | fi | ||
10560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10561 | fi | ||
10562 | |||
10563 | |||
10564 | fi; | ||
10565 | |||
10566 | # Check whether user wants TCP wrappers support | ||
10567 | TCPW_MSG="no" | ||
10568 | |||
10569 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
10570 | if test "${with_tcp_wrappers+set}" = set; then | ||
10571 | withval="$with_tcp_wrappers" | ||
10572 | |||
10573 | if test "x$withval" != "xno" ; then | ||
10574 | saved_LIBS="$LIBS" | ||
10575 | saved_LDFLAGS="$LDFLAGS" | ||
10576 | saved_CPPFLAGS="$CPPFLAGS" | ||
10577 | if test -n "${withval}" && \ | ||
10578 | test "x${withval}" != "xyes"; then | ||
10579 | if test -d "${withval}/lib"; then | ||
10580 | if test -n "${need_dash_r}"; then | ||
10581 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10582 | else | ||
10583 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10584 | fi | ||
10585 | else | ||
10586 | if test -n "${need_dash_r}"; then | ||
10587 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10588 | else | ||
10589 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10590 | fi | ||
10591 | fi | ||
10592 | if test -d "${withval}/include"; then | ||
10593 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10594 | else | ||
10595 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10596 | fi | ||
10597 | fi | ||
10598 | LIBWRAP="-lwrap" | ||
10599 | LIBS="$LIBWRAP $LIBS" | ||
10600 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
10601 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
10602 | cat >conftest.$ac_ext <<_ACEOF | ||
10603 | /* confdefs.h. */ | ||
10604 | _ACEOF | ||
10605 | cat confdefs.h >>conftest.$ac_ext | ||
10606 | cat >>conftest.$ac_ext <<_ACEOF | ||
10607 | /* end confdefs.h. */ | ||
10608 | |||
10609 | #include <sys/types.h> | ||
10610 | #include <sys/socket.h> | ||
10611 | #include <netinet/in.h> | ||
10612 | #include <tcpd.h> | ||
10613 | int deny_severity = 0, allow_severity = 0; | ||
10614 | |||
10615 | int | ||
10616 | main () | ||
10617 | { | ||
10618 | hosts_access(0); | ||
10619 | ; | ||
10620 | return 0; | ||
10621 | } | ||
10622 | _ACEOF | ||
10623 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10625 | (eval $ac_link) 2>conftest.er1 | ||
10626 | ac_status=$? | ||
10627 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10628 | rm -f conftest.er1 | ||
10629 | cat conftest.err >&5 | ||
10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10631 | (exit $ac_status); } && | ||
10632 | { ac_try='test -z "$ac_c_werror_flag" | ||
10633 | || test ! -s conftest.err' | ||
10634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10635 | (eval $ac_try) 2>&5 | ||
10636 | ac_status=$? | ||
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10638 | (exit $ac_status); }; } && | ||
10639 | { ac_try='test -s conftest$ac_exeext' | ||
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10641 | (eval $ac_try) 2>&5 | ||
10642 | ac_status=$? | ||
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10644 | (exit $ac_status); }; }; then | ||
10645 | |||
10646 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10647 | echo "${ECHO_T}yes" >&6 | ||
10648 | |||
10649 | cat >>confdefs.h <<\_ACEOF | ||
10650 | #define LIBWRAP 1 | ||
10651 | _ACEOF | ||
10652 | |||
10653 | |||
10654 | TCPW_MSG="yes" | ||
10655 | |||
10656 | else | ||
10657 | echo "$as_me: failed program was:" >&5 | ||
10658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10659 | |||
10660 | |||
10661 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
10662 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
10663 | { (exit 1); exit 1; }; } | ||
10664 | |||
10665 | |||
10666 | fi | ||
10667 | rm -f conftest.err conftest.$ac_objext \ | ||
10668 | conftest$ac_exeext conftest.$ac_ext | ||
10669 | LIBS="$saved_LIBS" | ||
10670 | fi | ||
10671 | |||
10672 | |||
10673 | fi; | ||
10674 | |||
10675 | # Check whether user wants libedit support | ||
10676 | LIBEDIT_MSG="no" | ||
10677 | |||
10678 | # Check whether --with-libedit or --without-libedit was given. | ||
10679 | if test "${with_libedit+set}" = set; then | ||
10680 | withval="$with_libedit" | ||
10681 | if test "x$withval" != "xno" ; then | ||
10682 | if test "x$withval" != "xyes"; then | ||
10683 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10684 | if test -n "${need_dash_r}"; then | ||
10685 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10686 | else | ||
10687 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10688 | fi | ||
10689 | fi | ||
10690 | echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
10691 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6 | ||
10692 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
10693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10694 | else | ||
10695 | ac_check_lib_save_LIBS=$LIBS | ||
10696 | LIBS="-ledit -lcurses | ||
10697 | $LIBS" | ||
10698 | cat >conftest.$ac_ext <<_ACEOF | ||
10699 | /* confdefs.h. */ | ||
10700 | _ACEOF | ||
10701 | cat confdefs.h >>conftest.$ac_ext | ||
10702 | cat >>conftest.$ac_ext <<_ACEOF | ||
10703 | /* end confdefs.h. */ | ||
10704 | |||
10705 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10706 | #ifdef __cplusplus | ||
10707 | extern "C" | ||
10708 | #endif | ||
10709 | /* We use char because int might match the return type of a gcc2 | ||
10710 | builtin and then its argument prototype would still apply. */ | ||
10711 | char el_init (); | ||
10712 | int | ||
10713 | main () | ||
10714 | { | ||
10715 | el_init (); | ||
10716 | ; | ||
10717 | return 0; | ||
10718 | } | ||
10719 | _ACEOF | ||
10720 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10722 | (eval $ac_link) 2>conftest.er1 | ||
10723 | ac_status=$? | ||
10724 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10725 | rm -f conftest.er1 | ||
10726 | cat conftest.err >&5 | ||
10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10728 | (exit $ac_status); } && | ||
10729 | { ac_try='test -z "$ac_c_werror_flag" | ||
10730 | || test ! -s conftest.err' | ||
10731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10732 | (eval $ac_try) 2>&5 | ||
10733 | ac_status=$? | ||
10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10735 | (exit $ac_status); }; } && | ||
10736 | { ac_try='test -s conftest$ac_exeext' | ||
10737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10738 | (eval $ac_try) 2>&5 | ||
10739 | ac_status=$? | ||
10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10741 | (exit $ac_status); }; }; then | ||
10742 | ac_cv_lib_edit_el_init=yes | ||
10743 | else | ||
10744 | echo "$as_me: failed program was:" >&5 | ||
10745 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10746 | |||
10747 | ac_cv_lib_edit_el_init=no | ||
10748 | fi | ||
10749 | rm -f conftest.err conftest.$ac_objext \ | ||
10750 | conftest$ac_exeext conftest.$ac_ext | ||
10751 | LIBS=$ac_check_lib_save_LIBS | ||
10752 | fi | ||
10753 | echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
10754 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6 | ||
10755 | if test $ac_cv_lib_edit_el_init = yes; then | ||
10756 | |||
10757 | cat >>confdefs.h <<\_ACEOF | ||
10758 | #define USE_LIBEDIT 1 | ||
10759 | _ACEOF | ||
10760 | |||
10761 | LIBEDIT="-ledit -lcurses" | ||
10762 | LIBEDIT_MSG="yes" | ||
10763 | |||
10764 | |||
10765 | else | ||
10766 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
10767 | echo "$as_me: error: libedit not found" >&2;} | ||
10768 | { (exit 1); exit 1; }; } | ||
10769 | fi | ||
10770 | |||
10771 | echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
10772 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6 | ||
10773 | cat >conftest.$ac_ext <<_ACEOF | ||
10774 | /* confdefs.h. */ | ||
10775 | _ACEOF | ||
10776 | cat confdefs.h >>conftest.$ac_ext | ||
10777 | cat >>conftest.$ac_ext <<_ACEOF | ||
10778 | /* end confdefs.h. */ | ||
10779 | |||
10780 | #include <histedit.h> | ||
10781 | int main(void) | ||
10782 | { | ||
10783 | int i = H_SETSIZE; | ||
10784 | el_init("", NULL, NULL, NULL); | ||
10785 | exit(0); | ||
10786 | } | ||
10787 | |||
10788 | _ACEOF | ||
10789 | rm -f conftest.$ac_objext | ||
10790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10791 | (eval $ac_compile) 2>conftest.er1 | ||
10792 | ac_status=$? | ||
10793 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10794 | rm -f conftest.er1 | ||
10795 | cat conftest.err >&5 | ||
10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10797 | (exit $ac_status); } && | ||
10798 | { ac_try='test -z "$ac_c_werror_flag" | ||
10799 | || test ! -s conftest.err' | ||
10800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10801 | (eval $ac_try) 2>&5 | ||
10802 | ac_status=$? | ||
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10804 | (exit $ac_status); }; } && | ||
10805 | { ac_try='test -s conftest.$ac_objext' | ||
10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10807 | (eval $ac_try) 2>&5 | ||
10808 | ac_status=$? | ||
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10810 | (exit $ac_status); }; }; then | ||
10811 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10812 | echo "${ECHO_T}yes" >&6 | ||
10813 | else | ||
10814 | echo "$as_me: failed program was:" >&5 | ||
10815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10816 | |||
10817 | echo "$as_me:$LINENO: result: no" >&5 | ||
10818 | echo "${ECHO_T}no" >&6 | ||
10819 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
10820 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
10821 | { (exit 1); exit 1; }; } | ||
10822 | |||
10823 | fi | ||
10824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10825 | fi | ||
10826 | |||
10827 | fi; | ||
10828 | |||
10829 | AUDIT_MODULE=none | ||
10830 | |||
10831 | # Check whether --with-audit or --without-audit was given. | ||
10832 | if test "${with_audit+set}" = set; then | ||
10833 | withval="$with_audit" | ||
10834 | |||
10835 | echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
10836 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6 | ||
10837 | case "$withval" in | ||
10838 | bsm) | ||
10839 | echo "$as_me:$LINENO: result: bsm" >&5 | ||
10840 | echo "${ECHO_T}bsm" >&6 | ||
10841 | AUDIT_MODULE=bsm | ||
10842 | |||
10843 | for ac_header in bsm/audit.h | ||
10844 | do | ||
10845 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10851 | fi | ||
10852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10854 | else | ||
10855 | # Is the header compilable? | ||
10856 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10857 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
10858 | cat >conftest.$ac_ext <<_ACEOF | ||
10859 | /* confdefs.h. */ | ||
10860 | _ACEOF | ||
10861 | cat confdefs.h >>conftest.$ac_ext | ||
10862 | cat >>conftest.$ac_ext <<_ACEOF | ||
10863 | /* end confdefs.h. */ | ||
10864 | $ac_includes_default | ||
10865 | #include <$ac_header> | ||
10866 | _ACEOF | ||
10867 | rm -f conftest.$ac_objext | ||
10868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10869 | (eval $ac_compile) 2>conftest.er1 | ||
10870 | ac_status=$? | ||
10871 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10872 | rm -f conftest.er1 | ||
10873 | cat conftest.err >&5 | ||
10874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10875 | (exit $ac_status); } && | ||
10876 | { ac_try='test -z "$ac_c_werror_flag" | ||
10877 | || test ! -s conftest.err' | ||
10878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10879 | (eval $ac_try) 2>&5 | ||
10880 | ac_status=$? | ||
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10882 | (exit $ac_status); }; } && | ||
10883 | { ac_try='test -s conftest.$ac_objext' | ||
10884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10885 | (eval $ac_try) 2>&5 | ||
10886 | ac_status=$? | ||
10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10888 | (exit $ac_status); }; }; then | ||
10889 | ac_header_compiler=yes | ||
10890 | else | ||
10891 | echo "$as_me: failed program was:" >&5 | ||
10892 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10893 | |||
10894 | ac_header_compiler=no | ||
10895 | fi | ||
10896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10898 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
10899 | |||
10900 | # Is the header present? | ||
10901 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
10903 | cat >conftest.$ac_ext <<_ACEOF | ||
10904 | /* confdefs.h. */ | ||
10905 | _ACEOF | ||
10906 | cat confdefs.h >>conftest.$ac_ext | ||
10907 | cat >>conftest.$ac_ext <<_ACEOF | ||
10908 | /* end confdefs.h. */ | ||
10909 | #include <$ac_header> | ||
10910 | _ACEOF | ||
10911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
10912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
10913 | ac_status=$? | ||
10914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10915 | rm -f conftest.er1 | ||
10916 | cat conftest.err >&5 | ||
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10918 | (exit $ac_status); } >/dev/null; then | ||
10919 | if test -s conftest.err; then | ||
10920 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
10921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
10922 | else | ||
10923 | ac_cpp_err= | ||
10924 | fi | ||
10925 | else | ||
10926 | ac_cpp_err=yes | ||
10927 | fi | ||
10928 | if test -z "$ac_cpp_err"; then | ||
10929 | ac_header_preproc=yes | ||
10930 | else | ||
10931 | echo "$as_me: failed program was:" >&5 | ||
10932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10933 | |||
10934 | ac_header_preproc=no | ||
10935 | fi | ||
10936 | rm -f conftest.err conftest.$ac_ext | ||
10937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10938 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
10939 | |||
10940 | # So? What about this header? | ||
10941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10942 | yes:no: ) | ||
10943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10947 | ac_header_preproc=yes | ||
10948 | ;; | ||
10949 | no:yes:* ) | ||
10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10962 | ( | ||
10963 | cat <<\_ASBOX | ||
10964 | ## ------------------------------------------- ## | ||
10965 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10966 | ## ------------------------------------------- ## | ||
10967 | _ASBOX | ||
10968 | ) | | ||
10969 | sed "s/^/$as_me: WARNING: /" >&2 | ||
10970 | ;; | ||
10971 | esac | ||
10972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10976 | else | ||
10977 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10978 | fi | ||
10979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10980 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10981 | |||
10982 | fi | ||
10983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10984 | cat >>confdefs.h <<_ACEOF | ||
10985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10986 | _ACEOF | ||
10987 | |||
10988 | else | ||
10989 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
10990 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
10991 | { (exit 1); exit 1; }; } | ||
10992 | fi | ||
10993 | |||
10994 | done | ||
10995 | |||
10996 | |||
10997 | echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
10998 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6 | ||
10999 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
11000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11001 | else | ||
11002 | ac_check_lib_save_LIBS=$LIBS | ||
11003 | LIBS="-lbsm $LIBS" | ||
11004 | cat >conftest.$ac_ext <<_ACEOF | ||
11005 | /* confdefs.h. */ | ||
11006 | _ACEOF | ||
11007 | cat confdefs.h >>conftest.$ac_ext | ||
11008 | cat >>conftest.$ac_ext <<_ACEOF | ||
11009 | /* end confdefs.h. */ | ||
11010 | |||
11011 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11012 | #ifdef __cplusplus | ||
11013 | extern "C" | ||
11014 | #endif | ||
11015 | /* We use char because int might match the return type of a gcc2 | ||
11016 | builtin and then its argument prototype would still apply. */ | ||
11017 | char getaudit (); | ||
11018 | int | ||
11019 | main () | ||
11020 | { | ||
11021 | getaudit (); | ||
11022 | ; | ||
11023 | return 0; | ||
11024 | } | ||
11025 | _ACEOF | ||
11026 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11028 | (eval $ac_link) 2>conftest.er1 | ||
11029 | ac_status=$? | ||
11030 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11031 | rm -f conftest.er1 | ||
11032 | cat conftest.err >&5 | ||
11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11034 | (exit $ac_status); } && | ||
11035 | { ac_try='test -z "$ac_c_werror_flag" | ||
11036 | || test ! -s conftest.err' | ||
11037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11038 | (eval $ac_try) 2>&5 | ||
11039 | ac_status=$? | ||
11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11041 | (exit $ac_status); }; } && | ||
11042 | { ac_try='test -s conftest$ac_exeext' | ||
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_cv_lib_bsm_getaudit=yes | ||
11049 | else | ||
11050 | echo "$as_me: failed program was:" >&5 | ||
11051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11052 | |||
11053 | ac_cv_lib_bsm_getaudit=no | ||
11054 | fi | ||
11055 | rm -f conftest.err conftest.$ac_objext \ | ||
11056 | conftest$ac_exeext conftest.$ac_ext | ||
11057 | LIBS=$ac_check_lib_save_LIBS | ||
11058 | fi | ||
11059 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
11060 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6 | ||
11061 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
11062 | cat >>confdefs.h <<_ACEOF | ||
11063 | #define HAVE_LIBBSM 1 | ||
11064 | _ACEOF | ||
11065 | |||
11066 | LIBS="-lbsm $LIBS" | ||
11067 | |||
11068 | else | ||
11069 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
11070 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
11071 | { (exit 1); exit 1; }; } | ||
11072 | fi | ||
11073 | |||
11074 | |||
11075 | for ac_func in getaudit | ||
11076 | do | ||
11077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11078 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11080 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11082 | else | ||
11083 | cat >conftest.$ac_ext <<_ACEOF | ||
11084 | /* confdefs.h. */ | ||
11085 | _ACEOF | ||
11086 | cat confdefs.h >>conftest.$ac_ext | ||
11087 | cat >>conftest.$ac_ext <<_ACEOF | ||
11088 | /* end confdefs.h. */ | ||
11089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11091 | #define $ac_func innocuous_$ac_func | ||
11092 | |||
11093 | /* System header to define __stub macros and hopefully few prototypes, | ||
11094 | which can conflict with char $ac_func (); below. | ||
11095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11096 | <limits.h> exists even on freestanding compilers. */ | ||
11097 | |||
11098 | #ifdef __STDC__ | ||
11099 | # include <limits.h> | ||
11100 | #else | ||
11101 | # include <assert.h> | ||
11102 | #endif | ||
11103 | |||
11104 | #undef $ac_func | ||
11105 | |||
11106 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11107 | #ifdef __cplusplus | ||
11108 | extern "C" | ||
11109 | { | ||
11110 | #endif | ||
11111 | /* We use char because int might match the return type of a gcc2 | ||
11112 | builtin and then its argument prototype would still apply. */ | ||
11113 | char $ac_func (); | ||
11114 | /* The GNU C library defines this for functions which it implements | ||
11115 | to always fail with ENOSYS. Some functions are actually named | ||
11116 | something starting with __ and the normal name is an alias. */ | ||
11117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11118 | choke me | ||
11119 | #else | ||
11120 | char (*f) () = $ac_func; | ||
11121 | #endif | ||
11122 | #ifdef __cplusplus | ||
11123 | } | ||
11124 | #endif | ||
11125 | |||
11126 | int | ||
11127 | main () | ||
11128 | { | ||
11129 | return f != $ac_func; | ||
11130 | ; | ||
11131 | return 0; | ||
11132 | } | ||
11133 | _ACEOF | ||
11134 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11136 | (eval $ac_link) 2>conftest.er1 | ||
11137 | ac_status=$? | ||
11138 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11139 | rm -f conftest.er1 | ||
11140 | cat conftest.err >&5 | ||
11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11142 | (exit $ac_status); } && | ||
11143 | { ac_try='test -z "$ac_c_werror_flag" | ||
11144 | || test ! -s conftest.err' | ||
11145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11146 | (eval $ac_try) 2>&5 | ||
11147 | ac_status=$? | ||
11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11149 | (exit $ac_status); }; } && | ||
11150 | { ac_try='test -s conftest$ac_exeext' | ||
11151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11152 | (eval $ac_try) 2>&5 | ||
11153 | ac_status=$? | ||
11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11155 | (exit $ac_status); }; }; then | ||
11156 | eval "$as_ac_var=yes" | ||
11157 | else | ||
11158 | echo "$as_me: failed program was:" >&5 | ||
11159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11160 | |||
11161 | eval "$as_ac_var=no" | ||
11162 | fi | ||
11163 | rm -f conftest.err conftest.$ac_objext \ | ||
11164 | conftest$ac_exeext conftest.$ac_ext | ||
11165 | fi | ||
11166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11167 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11168 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11169 | cat >>confdefs.h <<_ACEOF | ||
11170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11171 | _ACEOF | ||
11172 | |||
11173 | else | ||
11174 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
11175 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
11176 | { (exit 1); exit 1; }; } | ||
11177 | fi | ||
11178 | done | ||
11179 | |||
11180 | # These are optional | ||
11181 | |||
11182 | for ac_func in getaudit_addr | ||
11183 | do | ||
11184 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11185 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11186 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11187 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11189 | else | ||
11190 | cat >conftest.$ac_ext <<_ACEOF | ||
11191 | /* confdefs.h. */ | ||
11192 | _ACEOF | ||
11193 | cat confdefs.h >>conftest.$ac_ext | ||
11194 | cat >>conftest.$ac_ext <<_ACEOF | ||
11195 | /* end confdefs.h. */ | ||
11196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11198 | #define $ac_func innocuous_$ac_func | ||
11199 | |||
11200 | /* System header to define __stub macros and hopefully few prototypes, | ||
11201 | which can conflict with char $ac_func (); below. | ||
11202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11203 | <limits.h> exists even on freestanding compilers. */ | ||
11204 | |||
11205 | #ifdef __STDC__ | ||
11206 | # include <limits.h> | ||
11207 | #else | ||
11208 | # include <assert.h> | ||
11209 | #endif | ||
11210 | |||
11211 | #undef $ac_func | ||
11212 | |||
11213 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11214 | #ifdef __cplusplus | ||
11215 | extern "C" | ||
11216 | { | ||
11217 | #endif | ||
11218 | /* We use char because int might match the return type of a gcc2 | ||
11219 | builtin and then its argument prototype would still apply. */ | ||
11220 | char $ac_func (); | ||
11221 | /* The GNU C library defines this for functions which it implements | ||
11222 | to always fail with ENOSYS. Some functions are actually named | ||
11223 | something starting with __ and the normal name is an alias. */ | ||
11224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11225 | choke me | ||
11226 | #else | ||
11227 | char (*f) () = $ac_func; | ||
11228 | #endif | ||
11229 | #ifdef __cplusplus | ||
11230 | } | ||
11231 | #endif | ||
11232 | |||
11233 | int | ||
11234 | main () | ||
11235 | { | ||
11236 | return f != $ac_func; | ||
11237 | ; | ||
11238 | return 0; | ||
11239 | } | ||
11240 | _ACEOF | ||
11241 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11243 | (eval $ac_link) 2>conftest.er1 | ||
11244 | ac_status=$? | ||
11245 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11246 | rm -f conftest.er1 | ||
11247 | cat conftest.err >&5 | ||
11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11249 | (exit $ac_status); } && | ||
11250 | { ac_try='test -z "$ac_c_werror_flag" | ||
11251 | || test ! -s conftest.err' | ||
11252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11253 | (eval $ac_try) 2>&5 | ||
11254 | ac_status=$? | ||
11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11256 | (exit $ac_status); }; } && | ||
11257 | { ac_try='test -s conftest$ac_exeext' | ||
11258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11259 | (eval $ac_try) 2>&5 | ||
11260 | ac_status=$? | ||
11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11262 | (exit $ac_status); }; }; then | ||
11263 | eval "$as_ac_var=yes" | ||
11264 | else | ||
11265 | echo "$as_me: failed program was:" >&5 | ||
11266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11267 | |||
11268 | eval "$as_ac_var=no" | ||
11269 | fi | ||
11270 | rm -f conftest.err conftest.$ac_objext \ | ||
11271 | conftest$ac_exeext conftest.$ac_ext | ||
11272 | fi | ||
11273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11276 | cat >>confdefs.h <<_ACEOF | ||
11277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11278 | _ACEOF | ||
11279 | |||
11280 | fi | ||
11281 | done | ||
11282 | |||
11283 | |||
11284 | cat >>confdefs.h <<\_ACEOF | ||
11285 | #define USE_BSM_AUDIT 1 | ||
11286 | _ACEOF | ||
11287 | |||
11288 | ;; | ||
11289 | debug) | ||
11290 | AUDIT_MODULE=debug | ||
11291 | echo "$as_me:$LINENO: result: debug" >&5 | ||
11292 | echo "${ECHO_T}debug" >&6 | ||
11293 | |||
11294 | cat >>confdefs.h <<\_ACEOF | ||
11295 | #define SSH_AUDIT_EVENTS 1 | ||
11296 | _ACEOF | ||
11297 | |||
11298 | ;; | ||
11299 | no) | ||
11300 | echo "$as_me:$LINENO: result: no" >&5 | ||
11301 | echo "${ECHO_T}no" >&6 | ||
11302 | ;; | ||
11303 | *) | ||
11304 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
11305 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
11306 | { (exit 1); exit 1; }; } | ||
11307 | ;; | ||
11308 | esac | ||
11309 | |||
11310 | fi; | ||
11311 | |||
11312 | |||
11313 | |||
11314 | |||
11315 | |||
11316 | |||
11317 | |||
11318 | |||
11319 | |||
11320 | |||
11321 | |||
11322 | |||
11323 | |||
11324 | |||
11325 | |||
11326 | |||
11327 | |||
11328 | |||
11329 | |||
11330 | |||
11331 | |||
11332 | |||
11333 | |||
11334 | |||
11335 | |||
11336 | |||
11337 | |||
11338 | |||
11339 | |||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | |||
11345 | |||
11346 | |||
11347 | |||
11348 | |||
11349 | |||
11350 | |||
11351 | |||
11352 | |||
11353 | |||
11354 | |||
11355 | |||
11356 | |||
11357 | |||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | |||
11363 | |||
11364 | |||
11365 | |||
11366 | |||
11367 | |||
11368 | |||
11369 | |||
11370 | |||
11371 | |||
11372 | |||
11373 | |||
11374 | |||
11375 | |||
11376 | |||
11377 | |||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | for ac_func in \ | ||
11394 | arc4random \ | ||
11395 | asprintf \ | ||
11396 | b64_ntop \ | ||
11397 | __b64_ntop \ | ||
11398 | b64_pton \ | ||
11399 | __b64_pton \ | ||
11400 | bcopy \ | ||
11401 | bindresvport_sa \ | ||
11402 | clock \ | ||
11403 | closefrom \ | ||
11404 | dirfd \ | ||
11405 | fchmod \ | ||
11406 | fchown \ | ||
11407 | freeaddrinfo \ | ||
11408 | futimes \ | ||
11409 | getaddrinfo \ | ||
11410 | getcwd \ | ||
11411 | getgrouplist \ | ||
11412 | getnameinfo \ | ||
11413 | getopt \ | ||
11414 | getpeereid \ | ||
11415 | _getpty \ | ||
11416 | getrlimit \ | ||
11417 | getttyent \ | ||
11418 | glob \ | ||
11419 | inet_aton \ | ||
11420 | inet_ntoa \ | ||
11421 | inet_ntop \ | ||
11422 | innetgr \ | ||
11423 | login_getcapbool \ | ||
11424 | md5_crypt \ | ||
11425 | memmove \ | ||
11426 | mkdtemp \ | ||
11427 | mmap \ | ||
11428 | ngetaddrinfo \ | ||
11429 | nsleep \ | ||
11430 | ogetaddrinfo \ | ||
11431 | openlog_r \ | ||
11432 | openpty \ | ||
11433 | prctl \ | ||
11434 | pstat \ | ||
11435 | readpassphrase \ | ||
11436 | realpath \ | ||
11437 | recvmsg \ | ||
11438 | rresvport_af \ | ||
11439 | sendmsg \ | ||
11440 | setdtablesize \ | ||
11441 | setegid \ | ||
11442 | setenv \ | ||
11443 | seteuid \ | ||
11444 | setgroups \ | ||
11445 | setlogin \ | ||
11446 | setpcred \ | ||
11447 | setproctitle \ | ||
11448 | setregid \ | ||
11449 | setreuid \ | ||
11450 | setrlimit \ | ||
11451 | setsid \ | ||
11452 | setvbuf \ | ||
11453 | sigaction \ | ||
11454 | sigvec \ | ||
11455 | snprintf \ | ||
11456 | socketpair \ | ||
11457 | strdup \ | ||
11458 | strerror \ | ||
11459 | strlcat \ | ||
11460 | strlcpy \ | ||
11461 | strmode \ | ||
11462 | strnvis \ | ||
11463 | strtonum \ | ||
11464 | strtoll \ | ||
11465 | strtoul \ | ||
11466 | sysconf \ | ||
11467 | tcgetpgrp \ | ||
11468 | truncate \ | ||
11469 | unsetenv \ | ||
11470 | updwtmpx \ | ||
11471 | vasprintf \ | ||
11472 | vhangup \ | ||
11473 | vsnprintf \ | ||
11474 | waitpid \ | ||
11475 | |||
11476 | do | ||
11477 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11478 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11479 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11480 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11482 | else | ||
11483 | cat >conftest.$ac_ext <<_ACEOF | ||
11484 | /* confdefs.h. */ | ||
11485 | _ACEOF | ||
11486 | cat confdefs.h >>conftest.$ac_ext | ||
11487 | cat >>conftest.$ac_ext <<_ACEOF | ||
11488 | /* end confdefs.h. */ | ||
11489 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11491 | #define $ac_func innocuous_$ac_func | ||
11492 | |||
11493 | /* System header to define __stub macros and hopefully few prototypes, | ||
11494 | which can conflict with char $ac_func (); below. | ||
11495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11496 | <limits.h> exists even on freestanding compilers. */ | ||
11497 | |||
11498 | #ifdef __STDC__ | ||
11499 | # include <limits.h> | ||
11500 | #else | ||
11501 | # include <assert.h> | ||
11502 | #endif | ||
11503 | |||
11504 | #undef $ac_func | ||
11505 | |||
11506 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11507 | #ifdef __cplusplus | ||
11508 | extern "C" | ||
11509 | { | ||
11510 | #endif | ||
11511 | /* We use char because int might match the return type of a gcc2 | ||
11512 | builtin and then its argument prototype would still apply. */ | ||
11513 | char $ac_func (); | ||
11514 | /* The GNU C library defines this for functions which it implements | ||
11515 | to always fail with ENOSYS. Some functions are actually named | ||
11516 | something starting with __ and the normal name is an alias. */ | ||
11517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11518 | choke me | ||
11519 | #else | ||
11520 | char (*f) () = $ac_func; | ||
11521 | #endif | ||
11522 | #ifdef __cplusplus | ||
11523 | } | ||
11524 | #endif | ||
11525 | |||
11526 | int | ||
11527 | main () | ||
11528 | { | ||
11529 | return f != $ac_func; | ||
11530 | ; | ||
11531 | return 0; | ||
11532 | } | ||
11533 | _ACEOF | ||
11534 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11536 | (eval $ac_link) 2>conftest.er1 | ||
11537 | ac_status=$? | ||
11538 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11539 | rm -f conftest.er1 | ||
11540 | cat conftest.err >&5 | ||
11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11542 | (exit $ac_status); } && | ||
11543 | { ac_try='test -z "$ac_c_werror_flag" | ||
11544 | || test ! -s conftest.err' | ||
11545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11546 | (eval $ac_try) 2>&5 | ||
11547 | ac_status=$? | ||
11548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11549 | (exit $ac_status); }; } && | ||
11550 | { ac_try='test -s conftest$ac_exeext' | ||
11551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11552 | (eval $ac_try) 2>&5 | ||
11553 | ac_status=$? | ||
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11555 | (exit $ac_status); }; }; then | ||
11556 | eval "$as_ac_var=yes" | ||
11557 | else | ||
11558 | echo "$as_me: failed program was:" >&5 | ||
11559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11560 | |||
11561 | eval "$as_ac_var=no" | ||
11562 | fi | ||
11563 | rm -f conftest.err conftest.$ac_objext \ | ||
11564 | conftest$ac_exeext conftest.$ac_ext | ||
11565 | fi | ||
11566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11568 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11569 | cat >>confdefs.h <<_ACEOF | ||
11570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11571 | _ACEOF | ||
11572 | |||
11573 | fi | ||
11574 | done | ||
11575 | |||
11576 | |||
11577 | # IRIX has a const char return value for gai_strerror() | ||
11578 | |||
11579 | for ac_func in gai_strerror | ||
11580 | do | ||
11581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11582 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11584 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11586 | else | ||
11587 | cat >conftest.$ac_ext <<_ACEOF | ||
11588 | /* confdefs.h. */ | ||
11589 | _ACEOF | ||
11590 | cat confdefs.h >>conftest.$ac_ext | ||
11591 | cat >>conftest.$ac_ext <<_ACEOF | ||
11592 | /* end confdefs.h. */ | ||
11593 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11595 | #define $ac_func innocuous_$ac_func | ||
11596 | |||
11597 | /* System header to define __stub macros and hopefully few prototypes, | ||
11598 | which can conflict with char $ac_func (); below. | ||
11599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11600 | <limits.h> exists even on freestanding compilers. */ | ||
11601 | |||
11602 | #ifdef __STDC__ | ||
11603 | # include <limits.h> | ||
11604 | #else | ||
11605 | # include <assert.h> | ||
11606 | #endif | ||
11607 | |||
11608 | #undef $ac_func | ||
11609 | |||
11610 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11611 | #ifdef __cplusplus | ||
11612 | extern "C" | ||
11613 | { | ||
11614 | #endif | ||
11615 | /* We use char because int might match the return type of a gcc2 | ||
11616 | builtin and then its argument prototype would still apply. */ | ||
11617 | char $ac_func (); | ||
11618 | /* The GNU C library defines this for functions which it implements | ||
11619 | to always fail with ENOSYS. Some functions are actually named | ||
11620 | something starting with __ and the normal name is an alias. */ | ||
11621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11622 | choke me | ||
11623 | #else | ||
11624 | char (*f) () = $ac_func; | ||
11625 | #endif | ||
11626 | #ifdef __cplusplus | ||
11627 | } | ||
11628 | #endif | ||
11629 | |||
11630 | int | ||
11631 | main () | ||
11632 | { | ||
11633 | return f != $ac_func; | ||
11634 | ; | ||
11635 | return 0; | ||
11636 | } | ||
11637 | _ACEOF | ||
11638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11640 | (eval $ac_link) 2>conftest.er1 | ||
11641 | ac_status=$? | ||
11642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11643 | rm -f conftest.er1 | ||
11644 | cat conftest.err >&5 | ||
11645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11646 | (exit $ac_status); } && | ||
11647 | { ac_try='test -z "$ac_c_werror_flag" | ||
11648 | || test ! -s conftest.err' | ||
11649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11650 | (eval $ac_try) 2>&5 | ||
11651 | ac_status=$? | ||
11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11653 | (exit $ac_status); }; } && | ||
11654 | { ac_try='test -s conftest$ac_exeext' | ||
11655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11656 | (eval $ac_try) 2>&5 | ||
11657 | ac_status=$? | ||
11658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11659 | (exit $ac_status); }; }; then | ||
11660 | eval "$as_ac_var=yes" | ||
11661 | else | ||
11662 | echo "$as_me: failed program was:" >&5 | ||
11663 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11664 | |||
11665 | eval "$as_ac_var=no" | ||
11666 | fi | ||
11667 | rm -f conftest.err conftest.$ac_objext \ | ||
11668 | conftest$ac_exeext conftest.$ac_ext | ||
11669 | fi | ||
11670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11671 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11672 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11673 | cat >>confdefs.h <<_ACEOF | ||
11674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11675 | _ACEOF | ||
11676 | |||
11677 | cat >>confdefs.h <<\_ACEOF | ||
11678 | #define HAVE_GAI_STRERROR 1 | ||
11679 | _ACEOF | ||
11680 | |||
11681 | cat >conftest.$ac_ext <<_ACEOF | ||
11682 | /* confdefs.h. */ | ||
11683 | _ACEOF | ||
11684 | cat confdefs.h >>conftest.$ac_ext | ||
11685 | cat >>conftest.$ac_ext <<_ACEOF | ||
11686 | /* end confdefs.h. */ | ||
11687 | |||
11688 | #include <sys/types.h> | ||
11689 | #include <sys/socket.h> | ||
11690 | #include <netdb.h> | ||
11691 | |||
11692 | const char *gai_strerror(int); | ||
11693 | int | ||
11694 | main () | ||
11695 | { | ||
11696 | |||
11697 | char *str; | ||
11698 | |||
11699 | str = gai_strerror(0); | ||
11700 | ; | ||
11701 | return 0; | ||
11702 | } | ||
11703 | _ACEOF | ||
11704 | rm -f conftest.$ac_objext | ||
11705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11706 | (eval $ac_compile) 2>conftest.er1 | ||
11707 | ac_status=$? | ||
11708 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11709 | rm -f conftest.er1 | ||
11710 | cat conftest.err >&5 | ||
11711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11712 | (exit $ac_status); } && | ||
11713 | { ac_try='test -z "$ac_c_werror_flag" | ||
11714 | || test ! -s conftest.err' | ||
11715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11716 | (eval $ac_try) 2>&5 | ||
11717 | ac_status=$? | ||
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11719 | (exit $ac_status); }; } && | ||
11720 | { ac_try='test -s conftest.$ac_objext' | ||
11721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11722 | (eval $ac_try) 2>&5 | ||
11723 | ac_status=$? | ||
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11725 | (exit $ac_status); }; }; then | ||
11726 | |||
11727 | |||
11728 | cat >>confdefs.h <<\_ACEOF | ||
11729 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
11730 | _ACEOF | ||
11731 | |||
11732 | else | ||
11733 | echo "$as_me: failed program was:" >&5 | ||
11734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11735 | |||
11736 | fi | ||
11737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11738 | fi | ||
11739 | done | ||
11740 | |||
11741 | |||
11742 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
11743 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
11744 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
11745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11746 | else | ||
11747 | ac_func_search_save_LIBS=$LIBS | ||
11748 | ac_cv_search_nanosleep=no | ||
11749 | cat >conftest.$ac_ext <<_ACEOF | ||
11750 | /* confdefs.h. */ | ||
11751 | _ACEOF | ||
11752 | cat confdefs.h >>conftest.$ac_ext | ||
11753 | cat >>conftest.$ac_ext <<_ACEOF | ||
11754 | /* end confdefs.h. */ | ||
11755 | |||
11756 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11757 | #ifdef __cplusplus | ||
11758 | extern "C" | ||
11759 | #endif | ||
11760 | /* We use char because int might match the return type of a gcc2 | ||
11761 | builtin and then its argument prototype would still apply. */ | ||
11762 | char nanosleep (); | ||
11763 | int | ||
11764 | main () | ||
11765 | { | ||
11766 | nanosleep (); | ||
11767 | ; | ||
11768 | return 0; | ||
11769 | } | ||
11770 | _ACEOF | ||
11771 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11773 | (eval $ac_link) 2>conftest.er1 | ||
11774 | ac_status=$? | ||
11775 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11776 | rm -f conftest.er1 | ||
11777 | cat conftest.err >&5 | ||
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11779 | (exit $ac_status); } && | ||
11780 | { ac_try='test -z "$ac_c_werror_flag" | ||
11781 | || test ! -s conftest.err' | ||
11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11783 | (eval $ac_try) 2>&5 | ||
11784 | ac_status=$? | ||
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11786 | (exit $ac_status); }; } && | ||
11787 | { ac_try='test -s conftest$ac_exeext' | ||
11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11789 | (eval $ac_try) 2>&5 | ||
11790 | ac_status=$? | ||
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11792 | (exit $ac_status); }; }; then | ||
11793 | ac_cv_search_nanosleep="none required" | ||
11794 | else | ||
11795 | echo "$as_me: failed program was:" >&5 | ||
11796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11797 | |||
11798 | fi | ||
11799 | rm -f conftest.err conftest.$ac_objext \ | ||
11800 | conftest$ac_exeext conftest.$ac_ext | ||
11801 | if test "$ac_cv_search_nanosleep" = no; then | ||
11802 | for ac_lib in rt posix4; do | ||
11803 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11804 | cat >conftest.$ac_ext <<_ACEOF | ||
11805 | /* confdefs.h. */ | ||
11806 | _ACEOF | ||
11807 | cat confdefs.h >>conftest.$ac_ext | ||
11808 | cat >>conftest.$ac_ext <<_ACEOF | ||
11809 | /* end confdefs.h. */ | ||
11810 | |||
11811 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11812 | #ifdef __cplusplus | ||
11813 | extern "C" | ||
11814 | #endif | ||
11815 | /* We use char because int might match the return type of a gcc2 | ||
11816 | builtin and then its argument prototype would still apply. */ | ||
11817 | char nanosleep (); | ||
11818 | int | ||
11819 | main () | ||
11820 | { | ||
11821 | nanosleep (); | ||
11822 | ; | ||
11823 | return 0; | ||
11824 | } | ||
11825 | _ACEOF | ||
11826 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11828 | (eval $ac_link) 2>conftest.er1 | ||
11829 | ac_status=$? | ||
11830 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11831 | rm -f conftest.er1 | ||
11832 | cat conftest.err >&5 | ||
11833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11834 | (exit $ac_status); } && | ||
11835 | { ac_try='test -z "$ac_c_werror_flag" | ||
11836 | || test ! -s conftest.err' | ||
11837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11838 | (eval $ac_try) 2>&5 | ||
11839 | ac_status=$? | ||
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11841 | (exit $ac_status); }; } && | ||
11842 | { ac_try='test -s conftest$ac_exeext' | ||
11843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11844 | (eval $ac_try) 2>&5 | ||
11845 | ac_status=$? | ||
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11847 | (exit $ac_status); }; }; then | ||
11848 | ac_cv_search_nanosleep="-l$ac_lib" | ||
11849 | break | ||
11850 | else | ||
11851 | echo "$as_me: failed program was:" >&5 | ||
11852 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11853 | |||
11854 | fi | ||
11855 | rm -f conftest.err conftest.$ac_objext \ | ||
11856 | conftest$ac_exeext conftest.$ac_ext | ||
11857 | done | ||
11858 | fi | ||
11859 | LIBS=$ac_func_search_save_LIBS | ||
11860 | fi | ||
11861 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
11862 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
11863 | if test "$ac_cv_search_nanosleep" != no; then | ||
11864 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
11865 | |||
11866 | cat >>confdefs.h <<\_ACEOF | ||
11867 | #define HAVE_NANOSLEEP 1 | ||
11868 | _ACEOF | ||
11869 | |||
11870 | fi | ||
11871 | |||
11872 | |||
11873 | echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
11874 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
11875 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
11876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11877 | else | ||
11878 | cat >conftest.$ac_ext <<_ACEOF | ||
11879 | /* confdefs.h. */ | ||
11880 | _ACEOF | ||
11881 | cat confdefs.h >>conftest.$ac_ext | ||
11882 | cat >>conftest.$ac_ext <<_ACEOF | ||
11883 | /* end confdefs.h. */ | ||
11884 | $ac_includes_default | ||
11885 | int | ||
11886 | main () | ||
11887 | { | ||
11888 | #ifndef getrusage | ||
11889 | char *p = (char *) getrusage; | ||
11890 | #endif | ||
11891 | |||
11892 | ; | ||
11893 | return 0; | ||
11894 | } | ||
11895 | _ACEOF | ||
11896 | rm -f conftest.$ac_objext | ||
11897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11898 | (eval $ac_compile) 2>conftest.er1 | ||
11899 | ac_status=$? | ||
11900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11901 | rm -f conftest.er1 | ||
11902 | cat conftest.err >&5 | ||
11903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11904 | (exit $ac_status); } && | ||
11905 | { ac_try='test -z "$ac_c_werror_flag" | ||
11906 | || test ! -s conftest.err' | ||
11907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11908 | (eval $ac_try) 2>&5 | ||
11909 | ac_status=$? | ||
11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11911 | (exit $ac_status); }; } && | ||
11912 | { ac_try='test -s conftest.$ac_objext' | ||
11913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11914 | (eval $ac_try) 2>&5 | ||
11915 | ac_status=$? | ||
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11917 | (exit $ac_status); }; }; then | ||
11918 | ac_cv_have_decl_getrusage=yes | ||
11919 | else | ||
11920 | echo "$as_me: failed program was:" >&5 | ||
11921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11922 | |||
11923 | ac_cv_have_decl_getrusage=no | ||
11924 | fi | ||
11925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11926 | fi | ||
11927 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
11928 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
11929 | if test $ac_cv_have_decl_getrusage = yes; then | ||
11930 | |||
11931 | for ac_func in getrusage | ||
11932 | do | ||
11933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11934 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11936 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11938 | else | ||
11939 | cat >conftest.$ac_ext <<_ACEOF | ||
11940 | /* confdefs.h. */ | ||
11941 | _ACEOF | ||
11942 | cat confdefs.h >>conftest.$ac_ext | ||
11943 | cat >>conftest.$ac_ext <<_ACEOF | ||
11944 | /* end confdefs.h. */ | ||
11945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11947 | #define $ac_func innocuous_$ac_func | ||
11948 | |||
11949 | /* System header to define __stub macros and hopefully few prototypes, | ||
11950 | which can conflict with char $ac_func (); below. | ||
11951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11952 | <limits.h> exists even on freestanding compilers. */ | ||
11953 | |||
11954 | #ifdef __STDC__ | ||
11955 | # include <limits.h> | ||
11956 | #else | ||
11957 | # include <assert.h> | ||
11958 | #endif | ||
11959 | |||
11960 | #undef $ac_func | ||
11961 | |||
11962 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11963 | #ifdef __cplusplus | ||
11964 | extern "C" | ||
11965 | { | ||
11966 | #endif | ||
11967 | /* We use char because int might match the return type of a gcc2 | ||
11968 | builtin and then its argument prototype would still apply. */ | ||
11969 | char $ac_func (); | ||
11970 | /* The GNU C library defines this for functions which it implements | ||
11971 | to always fail with ENOSYS. Some functions are actually named | ||
11972 | something starting with __ and the normal name is an alias. */ | ||
11973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11974 | choke me | ||
11975 | #else | ||
11976 | char (*f) () = $ac_func; | ||
11977 | #endif | ||
11978 | #ifdef __cplusplus | ||
11979 | } | ||
11980 | #endif | ||
11981 | |||
11982 | int | ||
11983 | main () | ||
11984 | { | ||
11985 | return f != $ac_func; | ||
11986 | ; | ||
11987 | return 0; | ||
11988 | } | ||
11989 | _ACEOF | ||
11990 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11992 | (eval $ac_link) 2>conftest.er1 | ||
11993 | ac_status=$? | ||
11994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11995 | rm -f conftest.er1 | ||
11996 | cat conftest.err >&5 | ||
11997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11998 | (exit $ac_status); } && | ||
11999 | { ac_try='test -z "$ac_c_werror_flag" | ||
12000 | || test ! -s conftest.err' | ||
12001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12002 | (eval $ac_try) 2>&5 | ||
12003 | ac_status=$? | ||
12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12005 | (exit $ac_status); }; } && | ||
12006 | { ac_try='test -s conftest$ac_exeext' | ||
12007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12008 | (eval $ac_try) 2>&5 | ||
12009 | ac_status=$? | ||
12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12011 | (exit $ac_status); }; }; then | ||
12012 | eval "$as_ac_var=yes" | ||
12013 | else | ||
12014 | echo "$as_me: failed program was:" >&5 | ||
12015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12016 | |||
12017 | eval "$as_ac_var=no" | ||
12018 | fi | ||
12019 | rm -f conftest.err conftest.$ac_objext \ | ||
12020 | conftest$ac_exeext conftest.$ac_ext | ||
12021 | fi | ||
12022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12025 | cat >>confdefs.h <<_ACEOF | ||
12026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12027 | _ACEOF | ||
12028 | |||
12029 | fi | ||
12030 | done | ||
12031 | |||
12032 | fi | ||
12033 | |||
12034 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
12035 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
12036 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
12037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12038 | else | ||
12039 | cat >conftest.$ac_ext <<_ACEOF | ||
12040 | /* confdefs.h. */ | ||
12041 | _ACEOF | ||
12042 | cat confdefs.h >>conftest.$ac_ext | ||
12043 | cat >>conftest.$ac_ext <<_ACEOF | ||
12044 | /* end confdefs.h. */ | ||
12045 | |||
12046 | #ifdef HAVE_STRING_H | ||
12047 | # include <string.h> | ||
12048 | #endif | ||
12049 | |||
12050 | |||
12051 | int | ||
12052 | main () | ||
12053 | { | ||
12054 | #ifndef strsep | ||
12055 | char *p = (char *) strsep; | ||
12056 | #endif | ||
12057 | |||
12058 | ; | ||
12059 | return 0; | ||
12060 | } | ||
12061 | _ACEOF | ||
12062 | rm -f conftest.$ac_objext | ||
12063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12064 | (eval $ac_compile) 2>conftest.er1 | ||
12065 | ac_status=$? | ||
12066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12067 | rm -f conftest.er1 | ||
12068 | cat conftest.err >&5 | ||
12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12070 | (exit $ac_status); } && | ||
12071 | { ac_try='test -z "$ac_c_werror_flag" | ||
12072 | || test ! -s conftest.err' | ||
12073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12074 | (eval $ac_try) 2>&5 | ||
12075 | ac_status=$? | ||
12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12077 | (exit $ac_status); }; } && | ||
12078 | { ac_try='test -s conftest.$ac_objext' | ||
12079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12080 | (eval $ac_try) 2>&5 | ||
12081 | ac_status=$? | ||
12082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12083 | (exit $ac_status); }; }; then | ||
12084 | ac_cv_have_decl_strsep=yes | ||
12085 | else | ||
12086 | echo "$as_me: failed program was:" >&5 | ||
12087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12088 | |||
12089 | ac_cv_have_decl_strsep=no | ||
12090 | fi | ||
12091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12092 | fi | ||
12093 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
12094 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
12095 | if test $ac_cv_have_decl_strsep = yes; then | ||
12096 | |||
12097 | for ac_func in strsep | ||
12098 | do | ||
12099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12102 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12104 | else | ||
12105 | cat >conftest.$ac_ext <<_ACEOF | ||
12106 | /* confdefs.h. */ | ||
12107 | _ACEOF | ||
12108 | cat confdefs.h >>conftest.$ac_ext | ||
12109 | cat >>conftest.$ac_ext <<_ACEOF | ||
12110 | /* end confdefs.h. */ | ||
12111 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12112 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12113 | #define $ac_func innocuous_$ac_func | ||
12114 | |||
12115 | /* System header to define __stub macros and hopefully few prototypes, | ||
12116 | which can conflict with char $ac_func (); below. | ||
12117 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12118 | <limits.h> exists even on freestanding compilers. */ | ||
12119 | |||
12120 | #ifdef __STDC__ | ||
12121 | # include <limits.h> | ||
12122 | #else | ||
12123 | # include <assert.h> | ||
12124 | #endif | ||
12125 | |||
12126 | #undef $ac_func | ||
12127 | |||
12128 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12129 | #ifdef __cplusplus | ||
12130 | extern "C" | ||
12131 | { | ||
12132 | #endif | ||
12133 | /* We use char because int might match the return type of a gcc2 | ||
12134 | builtin and then its argument prototype would still apply. */ | ||
12135 | char $ac_func (); | ||
12136 | /* The GNU C library defines this for functions which it implements | ||
12137 | to always fail with ENOSYS. Some functions are actually named | ||
12138 | something starting with __ and the normal name is an alias. */ | ||
12139 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12140 | choke me | ||
12141 | #else | ||
12142 | char (*f) () = $ac_func; | ||
12143 | #endif | ||
12144 | #ifdef __cplusplus | ||
12145 | } | ||
12146 | #endif | ||
12147 | |||
12148 | int | ||
12149 | main () | ||
12150 | { | ||
12151 | return f != $ac_func; | ||
12152 | ; | ||
12153 | return 0; | ||
12154 | } | ||
12155 | _ACEOF | ||
12156 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12158 | (eval $ac_link) 2>conftest.er1 | ||
12159 | ac_status=$? | ||
12160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12161 | rm -f conftest.er1 | ||
12162 | cat conftest.err >&5 | ||
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12164 | (exit $ac_status); } && | ||
12165 | { ac_try='test -z "$ac_c_werror_flag" | ||
12166 | || test ! -s conftest.err' | ||
12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12168 | (eval $ac_try) 2>&5 | ||
12169 | ac_status=$? | ||
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12171 | (exit $ac_status); }; } && | ||
12172 | { ac_try='test -s conftest$ac_exeext' | ||
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12174 | (eval $ac_try) 2>&5 | ||
12175 | ac_status=$? | ||
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12177 | (exit $ac_status); }; }; then | ||
12178 | eval "$as_ac_var=yes" | ||
12179 | else | ||
12180 | echo "$as_me: failed program was:" >&5 | ||
12181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12182 | |||
12183 | eval "$as_ac_var=no" | ||
12184 | fi | ||
12185 | rm -f conftest.err conftest.$ac_objext \ | ||
12186 | conftest$ac_exeext conftest.$ac_ext | ||
12187 | fi | ||
12188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12191 | cat >>confdefs.h <<_ACEOF | ||
12192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12193 | _ACEOF | ||
12194 | |||
12195 | fi | ||
12196 | done | ||
12197 | |||
12198 | fi | ||
12199 | |||
12200 | |||
12201 | echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
12202 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
12203 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
12204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12205 | else | ||
12206 | cat >conftest.$ac_ext <<_ACEOF | ||
12207 | /* confdefs.h. */ | ||
12208 | _ACEOF | ||
12209 | cat confdefs.h >>conftest.$ac_ext | ||
12210 | cat >>conftest.$ac_ext <<_ACEOF | ||
12211 | /* end confdefs.h. */ | ||
12212 | #include <termios.h> | ||
12213 | |||
12214 | |||
12215 | int | ||
12216 | main () | ||
12217 | { | ||
12218 | #ifndef tcsendbreak | ||
12219 | char *p = (char *) tcsendbreak; | ||
12220 | #endif | ||
12221 | |||
12222 | ; | ||
12223 | return 0; | ||
12224 | } | ||
12225 | _ACEOF | ||
12226 | rm -f conftest.$ac_objext | ||
12227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12228 | (eval $ac_compile) 2>conftest.er1 | ||
12229 | ac_status=$? | ||
12230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12231 | rm -f conftest.er1 | ||
12232 | cat conftest.err >&5 | ||
12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12234 | (exit $ac_status); } && | ||
12235 | { ac_try='test -z "$ac_c_werror_flag" | ||
12236 | || test ! -s conftest.err' | ||
12237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12238 | (eval $ac_try) 2>&5 | ||
12239 | ac_status=$? | ||
12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12241 | (exit $ac_status); }; } && | ||
12242 | { ac_try='test -s conftest.$ac_objext' | ||
12243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12244 | (eval $ac_try) 2>&5 | ||
12245 | ac_status=$? | ||
12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12247 | (exit $ac_status); }; }; then | ||
12248 | ac_cv_have_decl_tcsendbreak=yes | ||
12249 | else | ||
12250 | echo "$as_me: failed program was:" >&5 | ||
12251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12252 | |||
12253 | ac_cv_have_decl_tcsendbreak=no | ||
12254 | fi | ||
12255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12256 | fi | ||
12257 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
12258 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
12259 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
12260 | cat >>confdefs.h <<\_ACEOF | ||
12261 | #define HAVE_TCSENDBREAK 1 | ||
12262 | _ACEOF | ||
12263 | |||
12264 | else | ||
12265 | |||
12266 | for ac_func in tcsendbreak | ||
12267 | do | ||
12268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12269 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12271 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12273 | else | ||
12274 | cat >conftest.$ac_ext <<_ACEOF | ||
12275 | /* confdefs.h. */ | ||
12276 | _ACEOF | ||
12277 | cat confdefs.h >>conftest.$ac_ext | ||
12278 | cat >>conftest.$ac_ext <<_ACEOF | ||
12279 | /* end confdefs.h. */ | ||
12280 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12282 | #define $ac_func innocuous_$ac_func | ||
12283 | |||
12284 | /* System header to define __stub macros and hopefully few prototypes, | ||
12285 | which can conflict with char $ac_func (); below. | ||
12286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12287 | <limits.h> exists even on freestanding compilers. */ | ||
12288 | |||
12289 | #ifdef __STDC__ | ||
12290 | # include <limits.h> | ||
12291 | #else | ||
12292 | # include <assert.h> | ||
12293 | #endif | ||
12294 | |||
12295 | #undef $ac_func | ||
12296 | |||
12297 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12298 | #ifdef __cplusplus | ||
12299 | extern "C" | ||
12300 | { | ||
12301 | #endif | ||
12302 | /* We use char because int might match the return type of a gcc2 | ||
12303 | builtin and then its argument prototype would still apply. */ | ||
12304 | char $ac_func (); | ||
12305 | /* The GNU C library defines this for functions which it implements | ||
12306 | to always fail with ENOSYS. Some functions are actually named | ||
12307 | something starting with __ and the normal name is an alias. */ | ||
12308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12309 | choke me | ||
12310 | #else | ||
12311 | char (*f) () = $ac_func; | ||
12312 | #endif | ||
12313 | #ifdef __cplusplus | ||
12314 | } | ||
12315 | #endif | ||
12316 | |||
12317 | int | ||
12318 | main () | ||
12319 | { | ||
12320 | return f != $ac_func; | ||
12321 | ; | ||
12322 | return 0; | ||
12323 | } | ||
12324 | _ACEOF | ||
12325 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12327 | (eval $ac_link) 2>conftest.er1 | ||
12328 | ac_status=$? | ||
12329 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12330 | rm -f conftest.er1 | ||
12331 | cat conftest.err >&5 | ||
12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12333 | (exit $ac_status); } && | ||
12334 | { ac_try='test -z "$ac_c_werror_flag" | ||
12335 | || test ! -s conftest.err' | ||
12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12337 | (eval $ac_try) 2>&5 | ||
12338 | ac_status=$? | ||
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12340 | (exit $ac_status); }; } && | ||
12341 | { ac_try='test -s conftest$ac_exeext' | ||
12342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12343 | (eval $ac_try) 2>&5 | ||
12344 | ac_status=$? | ||
12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12346 | (exit $ac_status); }; }; then | ||
12347 | eval "$as_ac_var=yes" | ||
12348 | else | ||
12349 | echo "$as_me: failed program was:" >&5 | ||
12350 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12351 | |||
12352 | eval "$as_ac_var=no" | ||
12353 | fi | ||
12354 | rm -f conftest.err conftest.$ac_objext \ | ||
12355 | conftest$ac_exeext conftest.$ac_ext | ||
12356 | fi | ||
12357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12360 | cat >>confdefs.h <<_ACEOF | ||
12361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12362 | _ACEOF | ||
12363 | |||
12364 | fi | ||
12365 | done | ||
12366 | |||
12367 | fi | ||
12368 | |||
12369 | |||
12370 | echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
12371 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6 | ||
12372 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
12373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12374 | else | ||
12375 | cat >conftest.$ac_ext <<_ACEOF | ||
12376 | /* confdefs.h. */ | ||
12377 | _ACEOF | ||
12378 | cat confdefs.h >>conftest.$ac_ext | ||
12379 | cat >>conftest.$ac_ext <<_ACEOF | ||
12380 | /* end confdefs.h. */ | ||
12381 | #include <netdb.h> | ||
12382 | |||
12383 | int | ||
12384 | main () | ||
12385 | { | ||
12386 | #ifndef h_errno | ||
12387 | char *p = (char *) h_errno; | ||
12388 | #endif | ||
12389 | |||
12390 | ; | ||
12391 | return 0; | ||
12392 | } | ||
12393 | _ACEOF | ||
12394 | rm -f conftest.$ac_objext | ||
12395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12396 | (eval $ac_compile) 2>conftest.er1 | ||
12397 | ac_status=$? | ||
12398 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12399 | rm -f conftest.er1 | ||
12400 | cat conftest.err >&5 | ||
12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12402 | (exit $ac_status); } && | ||
12403 | { ac_try='test -z "$ac_c_werror_flag" | ||
12404 | || test ! -s conftest.err' | ||
12405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12406 | (eval $ac_try) 2>&5 | ||
12407 | ac_status=$? | ||
12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12409 | (exit $ac_status); }; } && | ||
12410 | { ac_try='test -s conftest.$ac_objext' | ||
12411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12412 | (eval $ac_try) 2>&5 | ||
12413 | ac_status=$? | ||
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12415 | (exit $ac_status); }; }; then | ||
12416 | ac_cv_have_decl_h_errno=yes | ||
12417 | else | ||
12418 | echo "$as_me: failed program was:" >&5 | ||
12419 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12420 | |||
12421 | ac_cv_have_decl_h_errno=no | ||
12422 | fi | ||
12423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12424 | fi | ||
12425 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
12426 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6 | ||
12427 | if test $ac_cv_have_decl_h_errno = yes; then | ||
12428 | |||
12429 | cat >>confdefs.h <<_ACEOF | ||
12430 | #define HAVE_DECL_H_ERRNO 1 | ||
12431 | _ACEOF | ||
12432 | |||
12433 | |||
12434 | else | ||
12435 | cat >>confdefs.h <<_ACEOF | ||
12436 | #define HAVE_DECL_H_ERRNO 0 | ||
12437 | _ACEOF | ||
12438 | |||
12439 | |||
12440 | fi | ||
12441 | |||
12442 | |||
12443 | |||
12444 | |||
12445 | for ac_func in setresuid | ||
12446 | do | ||
12447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12452 | else | ||
12453 | cat >conftest.$ac_ext <<_ACEOF | ||
12454 | /* confdefs.h. */ | ||
12455 | _ACEOF | ||
12456 | cat confdefs.h >>conftest.$ac_ext | ||
12457 | cat >>conftest.$ac_ext <<_ACEOF | ||
12458 | /* end confdefs.h. */ | ||
12459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12461 | #define $ac_func innocuous_$ac_func | ||
12462 | |||
12463 | /* System header to define __stub macros and hopefully few prototypes, | ||
12464 | which can conflict with char $ac_func (); below. | ||
12465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12466 | <limits.h> exists even on freestanding compilers. */ | ||
12467 | |||
12468 | #ifdef __STDC__ | ||
12469 | # include <limits.h> | ||
12470 | #else | ||
12471 | # include <assert.h> | ||
12472 | #endif | ||
12473 | |||
12474 | #undef $ac_func | ||
12475 | |||
12476 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12477 | #ifdef __cplusplus | ||
12478 | extern "C" | ||
12479 | { | ||
12480 | #endif | ||
12481 | /* We use char because int might match the return type of a gcc2 | ||
12482 | builtin and then its argument prototype would still apply. */ | ||
12483 | char $ac_func (); | ||
12484 | /* The GNU C library defines this for functions which it implements | ||
12485 | to always fail with ENOSYS. Some functions are actually named | ||
12486 | something starting with __ and the normal name is an alias. */ | ||
12487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12488 | choke me | ||
12489 | #else | ||
12490 | char (*f) () = $ac_func; | ||
12491 | #endif | ||
12492 | #ifdef __cplusplus | ||
12493 | } | ||
12494 | #endif | ||
12495 | |||
12496 | int | ||
12497 | main () | ||
12498 | { | ||
12499 | return f != $ac_func; | ||
12500 | ; | ||
12501 | return 0; | ||
12502 | } | ||
12503 | _ACEOF | ||
12504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12506 | (eval $ac_link) 2>conftest.er1 | ||
12507 | ac_status=$? | ||
12508 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12509 | rm -f conftest.er1 | ||
12510 | cat conftest.err >&5 | ||
12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12512 | (exit $ac_status); } && | ||
12513 | { ac_try='test -z "$ac_c_werror_flag" | ||
12514 | || test ! -s conftest.err' | ||
12515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12516 | (eval $ac_try) 2>&5 | ||
12517 | ac_status=$? | ||
12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12519 | (exit $ac_status); }; } && | ||
12520 | { ac_try='test -s conftest$ac_exeext' | ||
12521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12522 | (eval $ac_try) 2>&5 | ||
12523 | ac_status=$? | ||
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12525 | (exit $ac_status); }; }; then | ||
12526 | eval "$as_ac_var=yes" | ||
12527 | else | ||
12528 | echo "$as_me: failed program was:" >&5 | ||
12529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12530 | |||
12531 | eval "$as_ac_var=no" | ||
12532 | fi | ||
12533 | rm -f conftest.err conftest.$ac_objext \ | ||
12534 | conftest$ac_exeext conftest.$ac_ext | ||
12535 | fi | ||
12536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12537 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12538 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12539 | cat >>confdefs.h <<_ACEOF | ||
12540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12541 | _ACEOF | ||
12542 | |||
12543 | echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
12544 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
12545 | if test "$cross_compiling" = yes; then | ||
12546 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
12547 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
12548 | |||
12549 | else | ||
12550 | cat >conftest.$ac_ext <<_ACEOF | ||
12551 | /* confdefs.h. */ | ||
12552 | _ACEOF | ||
12553 | cat confdefs.h >>conftest.$ac_ext | ||
12554 | cat >>conftest.$ac_ext <<_ACEOF | ||
12555 | /* end confdefs.h. */ | ||
12556 | |||
12557 | #include <stdlib.h> | ||
12558 | #include <errno.h> | ||
12559 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
12560 | |||
12561 | _ACEOF | ||
12562 | rm -f conftest$ac_exeext | ||
12563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12564 | (eval $ac_link) 2>&5 | ||
12565 | ac_status=$? | ||
12566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12569 | (eval $ac_try) 2>&5 | ||
12570 | ac_status=$? | ||
12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12572 | (exit $ac_status); }; }; then | ||
12573 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12574 | echo "${ECHO_T}yes" >&6 | ||
12575 | else | ||
12576 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12577 | echo "$as_me: failed program was:" >&5 | ||
12578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12579 | |||
12580 | ( exit $ac_status ) | ||
12581 | |||
12582 | cat >>confdefs.h <<\_ACEOF | ||
12583 | #define BROKEN_SETRESUID 1 | ||
12584 | _ACEOF | ||
12585 | |||
12586 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
12587 | echo "${ECHO_T}not implemented" >&6 | ||
12588 | fi | ||
12589 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12590 | fi | ||
12591 | |||
12592 | fi | ||
12593 | done | ||
12594 | |||
12595 | |||
12596 | |||
12597 | for ac_func in setresgid | ||
12598 | do | ||
12599 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12600 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12601 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12602 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12604 | else | ||
12605 | cat >conftest.$ac_ext <<_ACEOF | ||
12606 | /* confdefs.h. */ | ||
12607 | _ACEOF | ||
12608 | cat confdefs.h >>conftest.$ac_ext | ||
12609 | cat >>conftest.$ac_ext <<_ACEOF | ||
12610 | /* end confdefs.h. */ | ||
12611 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12613 | #define $ac_func innocuous_$ac_func | ||
12614 | |||
12615 | /* System header to define __stub macros and hopefully few prototypes, | ||
12616 | which can conflict with char $ac_func (); below. | ||
12617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12618 | <limits.h> exists even on freestanding compilers. */ | ||
12619 | |||
12620 | #ifdef __STDC__ | ||
12621 | # include <limits.h> | ||
12622 | #else | ||
12623 | # include <assert.h> | ||
12624 | #endif | ||
12625 | |||
12626 | #undef $ac_func | ||
12627 | |||
12628 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12629 | #ifdef __cplusplus | ||
12630 | extern "C" | ||
12631 | { | ||
12632 | #endif | ||
12633 | /* We use char because int might match the return type of a gcc2 | ||
12634 | builtin and then its argument prototype would still apply. */ | ||
12635 | char $ac_func (); | ||
12636 | /* The GNU C library defines this for functions which it implements | ||
12637 | to always fail with ENOSYS. Some functions are actually named | ||
12638 | something starting with __ and the normal name is an alias. */ | ||
12639 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12640 | choke me | ||
12641 | #else | ||
12642 | char (*f) () = $ac_func; | ||
12643 | #endif | ||
12644 | #ifdef __cplusplus | ||
12645 | } | ||
12646 | #endif | ||
12647 | |||
12648 | int | ||
12649 | main () | ||
12650 | { | ||
12651 | return f != $ac_func; | ||
12652 | ; | ||
12653 | return 0; | ||
12654 | } | ||
12655 | _ACEOF | ||
12656 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12658 | (eval $ac_link) 2>conftest.er1 | ||
12659 | ac_status=$? | ||
12660 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12661 | rm -f conftest.er1 | ||
12662 | cat conftest.err >&5 | ||
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12664 | (exit $ac_status); } && | ||
12665 | { ac_try='test -z "$ac_c_werror_flag" | ||
12666 | || test ! -s conftest.err' | ||
12667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12668 | (eval $ac_try) 2>&5 | ||
12669 | ac_status=$? | ||
12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12671 | (exit $ac_status); }; } && | ||
12672 | { ac_try='test -s conftest$ac_exeext' | ||
12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12674 | (eval $ac_try) 2>&5 | ||
12675 | ac_status=$? | ||
12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12677 | (exit $ac_status); }; }; then | ||
12678 | eval "$as_ac_var=yes" | ||
12679 | else | ||
12680 | echo "$as_me: failed program was:" >&5 | ||
12681 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12682 | |||
12683 | eval "$as_ac_var=no" | ||
12684 | fi | ||
12685 | rm -f conftest.err conftest.$ac_objext \ | ||
12686 | conftest$ac_exeext conftest.$ac_ext | ||
12687 | fi | ||
12688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12689 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12690 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12691 | cat >>confdefs.h <<_ACEOF | ||
12692 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12693 | _ACEOF | ||
12694 | |||
12695 | echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
12696 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
12697 | if test "$cross_compiling" = yes; then | ||
12698 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
12699 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
12700 | |||
12701 | else | ||
12702 | cat >conftest.$ac_ext <<_ACEOF | ||
12703 | /* confdefs.h. */ | ||
12704 | _ACEOF | ||
12705 | cat confdefs.h >>conftest.$ac_ext | ||
12706 | cat >>conftest.$ac_ext <<_ACEOF | ||
12707 | /* end confdefs.h. */ | ||
12708 | |||
12709 | #include <stdlib.h> | ||
12710 | #include <errno.h> | ||
12711 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
12712 | |||
12713 | _ACEOF | ||
12714 | rm -f conftest$ac_exeext | ||
12715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12716 | (eval $ac_link) 2>&5 | ||
12717 | ac_status=$? | ||
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12721 | (eval $ac_try) 2>&5 | ||
12722 | ac_status=$? | ||
12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12724 | (exit $ac_status); }; }; then | ||
12725 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12726 | echo "${ECHO_T}yes" >&6 | ||
12727 | else | ||
12728 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12729 | echo "$as_me: failed program was:" >&5 | ||
12730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12731 | |||
12732 | ( exit $ac_status ) | ||
12733 | |||
12734 | cat >>confdefs.h <<\_ACEOF | ||
12735 | #define BROKEN_SETRESGID 1 | ||
12736 | _ACEOF | ||
12737 | |||
12738 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
12739 | echo "${ECHO_T}not implemented" >&6 | ||
12740 | fi | ||
12741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12742 | fi | ||
12743 | |||
12744 | fi | ||
12745 | done | ||
12746 | |||
12747 | |||
12748 | |||
12749 | |||
12750 | for ac_func in gettimeofday time | ||
12751 | do | ||
12752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12753 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12755 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12757 | else | ||
12758 | cat >conftest.$ac_ext <<_ACEOF | ||
12759 | /* confdefs.h. */ | ||
12760 | _ACEOF | ||
12761 | cat confdefs.h >>conftest.$ac_ext | ||
12762 | cat >>conftest.$ac_ext <<_ACEOF | ||
12763 | /* end confdefs.h. */ | ||
12764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12766 | #define $ac_func innocuous_$ac_func | ||
12767 | |||
12768 | /* System header to define __stub macros and hopefully few prototypes, | ||
12769 | which can conflict with char $ac_func (); below. | ||
12770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12771 | <limits.h> exists even on freestanding compilers. */ | ||
12772 | |||
12773 | #ifdef __STDC__ | ||
12774 | # include <limits.h> | ||
12775 | #else | ||
12776 | # include <assert.h> | ||
12777 | #endif | ||
12778 | |||
12779 | #undef $ac_func | ||
12780 | |||
12781 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12782 | #ifdef __cplusplus | ||
12783 | extern "C" | ||
12784 | { | ||
12785 | #endif | ||
12786 | /* We use char because int might match the return type of a gcc2 | ||
12787 | builtin and then its argument prototype would still apply. */ | ||
12788 | char $ac_func (); | ||
12789 | /* The GNU C library defines this for functions which it implements | ||
12790 | to always fail with ENOSYS. Some functions are actually named | ||
12791 | something starting with __ and the normal name is an alias. */ | ||
12792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12793 | choke me | ||
12794 | #else | ||
12795 | char (*f) () = $ac_func; | ||
12796 | #endif | ||
12797 | #ifdef __cplusplus | ||
12798 | } | ||
12799 | #endif | ||
12800 | |||
12801 | int | ||
12802 | main () | ||
12803 | { | ||
12804 | return f != $ac_func; | ||
12805 | ; | ||
12806 | return 0; | ||
12807 | } | ||
12808 | _ACEOF | ||
12809 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12811 | (eval $ac_link) 2>conftest.er1 | ||
12812 | ac_status=$? | ||
12813 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12814 | rm -f conftest.er1 | ||
12815 | cat conftest.err >&5 | ||
12816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12817 | (exit $ac_status); } && | ||
12818 | { ac_try='test -z "$ac_c_werror_flag" | ||
12819 | || test ! -s conftest.err' | ||
12820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12821 | (eval $ac_try) 2>&5 | ||
12822 | ac_status=$? | ||
12823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12824 | (exit $ac_status); }; } && | ||
12825 | { ac_try='test -s conftest$ac_exeext' | ||
12826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12827 | (eval $ac_try) 2>&5 | ||
12828 | ac_status=$? | ||
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12830 | (exit $ac_status); }; }; then | ||
12831 | eval "$as_ac_var=yes" | ||
12832 | else | ||
12833 | echo "$as_me: failed program was:" >&5 | ||
12834 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12835 | |||
12836 | eval "$as_ac_var=no" | ||
12837 | fi | ||
12838 | rm -f conftest.err conftest.$ac_objext \ | ||
12839 | conftest$ac_exeext conftest.$ac_ext | ||
12840 | fi | ||
12841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12843 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12844 | cat >>confdefs.h <<_ACEOF | ||
12845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12846 | _ACEOF | ||
12847 | |||
12848 | fi | ||
12849 | done | ||
12850 | |||
12851 | |||
12852 | |||
12853 | |||
12854 | |||
12855 | |||
12856 | |||
12857 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
12858 | do | ||
12859 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12860 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12861 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12862 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12864 | else | ||
12865 | cat >conftest.$ac_ext <<_ACEOF | ||
12866 | /* confdefs.h. */ | ||
12867 | _ACEOF | ||
12868 | cat confdefs.h >>conftest.$ac_ext | ||
12869 | cat >>conftest.$ac_ext <<_ACEOF | ||
12870 | /* end confdefs.h. */ | ||
12871 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12873 | #define $ac_func innocuous_$ac_func | ||
12874 | |||
12875 | /* System header to define __stub macros and hopefully few prototypes, | ||
12876 | which can conflict with char $ac_func (); below. | ||
12877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12878 | <limits.h> exists even on freestanding compilers. */ | ||
12879 | |||
12880 | #ifdef __STDC__ | ||
12881 | # include <limits.h> | ||
12882 | #else | ||
12883 | # include <assert.h> | ||
12884 | #endif | ||
12885 | |||
12886 | #undef $ac_func | ||
12887 | |||
12888 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12889 | #ifdef __cplusplus | ||
12890 | extern "C" | ||
12891 | { | ||
12892 | #endif | ||
12893 | /* We use char because int might match the return type of a gcc2 | ||
12894 | builtin and then its argument prototype would still apply. */ | ||
12895 | char $ac_func (); | ||
12896 | /* The GNU C library defines this for functions which it implements | ||
12897 | to always fail with ENOSYS. Some functions are actually named | ||
12898 | something starting with __ and the normal name is an alias. */ | ||
12899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12900 | choke me | ||
12901 | #else | ||
12902 | char (*f) () = $ac_func; | ||
12903 | #endif | ||
12904 | #ifdef __cplusplus | ||
12905 | } | ||
12906 | #endif | ||
12907 | |||
12908 | int | ||
12909 | main () | ||
12910 | { | ||
12911 | return f != $ac_func; | ||
12912 | ; | ||
12913 | return 0; | ||
12914 | } | ||
12915 | _ACEOF | ||
12916 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12918 | (eval $ac_link) 2>conftest.er1 | ||
12919 | ac_status=$? | ||
12920 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12921 | rm -f conftest.er1 | ||
12922 | cat conftest.err >&5 | ||
12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12924 | (exit $ac_status); } && | ||
12925 | { ac_try='test -z "$ac_c_werror_flag" | ||
12926 | || test ! -s conftest.err' | ||
12927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12928 | (eval $ac_try) 2>&5 | ||
12929 | ac_status=$? | ||
12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12931 | (exit $ac_status); }; } && | ||
12932 | { ac_try='test -s conftest$ac_exeext' | ||
12933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12934 | (eval $ac_try) 2>&5 | ||
12935 | ac_status=$? | ||
12936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12937 | (exit $ac_status); }; }; then | ||
12938 | eval "$as_ac_var=yes" | ||
12939 | else | ||
12940 | echo "$as_me: failed program was:" >&5 | ||
12941 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12942 | |||
12943 | eval "$as_ac_var=no" | ||
12944 | fi | ||
12945 | rm -f conftest.err conftest.$ac_objext \ | ||
12946 | conftest$ac_exeext conftest.$ac_ext | ||
12947 | fi | ||
12948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12949 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12950 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12951 | cat >>confdefs.h <<_ACEOF | ||
12952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12953 | _ACEOF | ||
12954 | |||
12955 | fi | ||
12956 | done | ||
12957 | |||
12958 | |||
12959 | for ac_func in utmpname | ||
12960 | do | ||
12961 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12962 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12963 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12964 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12966 | else | ||
12967 | cat >conftest.$ac_ext <<_ACEOF | ||
12968 | /* confdefs.h. */ | ||
12969 | _ACEOF | ||
12970 | cat confdefs.h >>conftest.$ac_ext | ||
12971 | cat >>conftest.$ac_ext <<_ACEOF | ||
12972 | /* end confdefs.h. */ | ||
12973 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12975 | #define $ac_func innocuous_$ac_func | ||
12976 | |||
12977 | /* System header to define __stub macros and hopefully few prototypes, | ||
12978 | which can conflict with char $ac_func (); below. | ||
12979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12980 | <limits.h> exists even on freestanding compilers. */ | ||
12981 | |||
12982 | #ifdef __STDC__ | ||
12983 | # include <limits.h> | ||
12984 | #else | ||
12985 | # include <assert.h> | ||
12986 | #endif | ||
12987 | |||
12988 | #undef $ac_func | ||
12989 | |||
12990 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12991 | #ifdef __cplusplus | ||
12992 | extern "C" | ||
12993 | { | ||
12994 | #endif | ||
12995 | /* We use char because int might match the return type of a gcc2 | ||
12996 | builtin and then its argument prototype would still apply. */ | ||
12997 | char $ac_func (); | ||
12998 | /* The GNU C library defines this for functions which it implements | ||
12999 | to always fail with ENOSYS. Some functions are actually named | ||
13000 | something starting with __ and the normal name is an alias. */ | ||
13001 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13002 | choke me | ||
13003 | #else | ||
13004 | char (*f) () = $ac_func; | ||
13005 | #endif | ||
13006 | #ifdef __cplusplus | ||
13007 | } | ||
13008 | #endif | ||
13009 | |||
13010 | int | ||
13011 | main () | ||
13012 | { | ||
13013 | return f != $ac_func; | ||
13014 | ; | ||
13015 | return 0; | ||
13016 | } | ||
13017 | _ACEOF | ||
13018 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13020 | (eval $ac_link) 2>conftest.er1 | ||
13021 | ac_status=$? | ||
13022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13023 | rm -f conftest.er1 | ||
13024 | cat conftest.err >&5 | ||
13025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13026 | (exit $ac_status); } && | ||
13027 | { ac_try='test -z "$ac_c_werror_flag" | ||
13028 | || test ! -s conftest.err' | ||
13029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13030 | (eval $ac_try) 2>&5 | ||
13031 | ac_status=$? | ||
13032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13033 | (exit $ac_status); }; } && | ||
13034 | { ac_try='test -s conftest$ac_exeext' | ||
13035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13036 | (eval $ac_try) 2>&5 | ||
13037 | ac_status=$? | ||
13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13039 | (exit $ac_status); }; }; then | ||
13040 | eval "$as_ac_var=yes" | ||
13041 | else | ||
13042 | echo "$as_me: failed program was:" >&5 | ||
13043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13044 | |||
13045 | eval "$as_ac_var=no" | ||
13046 | fi | ||
13047 | rm -f conftest.err conftest.$ac_objext \ | ||
13048 | conftest$ac_exeext conftest.$ac_ext | ||
13049 | fi | ||
13050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13052 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13053 | cat >>confdefs.h <<_ACEOF | ||
13054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13055 | _ACEOF | ||
13056 | |||
13057 | fi | ||
13058 | done | ||
13059 | |||
13060 | |||
13061 | |||
13062 | |||
13063 | |||
13064 | |||
13065 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
13066 | do | ||
13067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13068 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13070 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13072 | else | ||
13073 | cat >conftest.$ac_ext <<_ACEOF | ||
13074 | /* confdefs.h. */ | ||
13075 | _ACEOF | ||
13076 | cat confdefs.h >>conftest.$ac_ext | ||
13077 | cat >>conftest.$ac_ext <<_ACEOF | ||
13078 | /* end confdefs.h. */ | ||
13079 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13080 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13081 | #define $ac_func innocuous_$ac_func | ||
13082 | |||
13083 | /* System header to define __stub macros and hopefully few prototypes, | ||
13084 | which can conflict with char $ac_func (); below. | ||
13085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13086 | <limits.h> exists even on freestanding compilers. */ | ||
13087 | |||
13088 | #ifdef __STDC__ | ||
13089 | # include <limits.h> | ||
13090 | #else | ||
13091 | # include <assert.h> | ||
13092 | #endif | ||
13093 | |||
13094 | #undef $ac_func | ||
13095 | |||
13096 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13097 | #ifdef __cplusplus | ||
13098 | extern "C" | ||
13099 | { | ||
13100 | #endif | ||
13101 | /* We use char because int might match the return type of a gcc2 | ||
13102 | builtin and then its argument prototype would still apply. */ | ||
13103 | char $ac_func (); | ||
13104 | /* The GNU C library defines this for functions which it implements | ||
13105 | to always fail with ENOSYS. Some functions are actually named | ||
13106 | something starting with __ and the normal name is an alias. */ | ||
13107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13108 | choke me | ||
13109 | #else | ||
13110 | char (*f) () = $ac_func; | ||
13111 | #endif | ||
13112 | #ifdef __cplusplus | ||
13113 | } | ||
13114 | #endif | ||
13115 | |||
13116 | int | ||
13117 | main () | ||
13118 | { | ||
13119 | return f != $ac_func; | ||
13120 | ; | ||
13121 | return 0; | ||
13122 | } | ||
13123 | _ACEOF | ||
13124 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13126 | (eval $ac_link) 2>conftest.er1 | ||
13127 | ac_status=$? | ||
13128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13129 | rm -f conftest.er1 | ||
13130 | cat conftest.err >&5 | ||
13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13132 | (exit $ac_status); } && | ||
13133 | { ac_try='test -z "$ac_c_werror_flag" | ||
13134 | || test ! -s conftest.err' | ||
13135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13136 | (eval $ac_try) 2>&5 | ||
13137 | ac_status=$? | ||
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13139 | (exit $ac_status); }; } && | ||
13140 | { ac_try='test -s conftest$ac_exeext' | ||
13141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13142 | (eval $ac_try) 2>&5 | ||
13143 | ac_status=$? | ||
13144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13145 | (exit $ac_status); }; }; then | ||
13146 | eval "$as_ac_var=yes" | ||
13147 | else | ||
13148 | echo "$as_me: failed program was:" >&5 | ||
13149 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13150 | |||
13151 | eval "$as_ac_var=no" | ||
13152 | fi | ||
13153 | rm -f conftest.err conftest.$ac_objext \ | ||
13154 | conftest$ac_exeext conftest.$ac_ext | ||
13155 | fi | ||
13156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13157 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13158 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13159 | cat >>confdefs.h <<_ACEOF | ||
13160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13161 | _ACEOF | ||
13162 | |||
13163 | fi | ||
13164 | done | ||
13165 | |||
13166 | |||
13167 | |||
13168 | for ac_func in setutxent utmpxname | ||
13169 | do | ||
13170 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13171 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13172 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13173 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13175 | else | ||
13176 | cat >conftest.$ac_ext <<_ACEOF | ||
13177 | /* confdefs.h. */ | ||
13178 | _ACEOF | ||
13179 | cat confdefs.h >>conftest.$ac_ext | ||
13180 | cat >>conftest.$ac_ext <<_ACEOF | ||
13181 | /* end confdefs.h. */ | ||
13182 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13184 | #define $ac_func innocuous_$ac_func | ||
13185 | |||
13186 | /* System header to define __stub macros and hopefully few prototypes, | ||
13187 | which can conflict with char $ac_func (); below. | ||
13188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13189 | <limits.h> exists even on freestanding compilers. */ | ||
13190 | |||
13191 | #ifdef __STDC__ | ||
13192 | # include <limits.h> | ||
13193 | #else | ||
13194 | # include <assert.h> | ||
13195 | #endif | ||
13196 | |||
13197 | #undef $ac_func | ||
13198 | |||
13199 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13200 | #ifdef __cplusplus | ||
13201 | extern "C" | ||
13202 | { | ||
13203 | #endif | ||
13204 | /* We use char because int might match the return type of a gcc2 | ||
13205 | builtin and then its argument prototype would still apply. */ | ||
13206 | char $ac_func (); | ||
13207 | /* The GNU C library defines this for functions which it implements | ||
13208 | to always fail with ENOSYS. Some functions are actually named | ||
13209 | something starting with __ and the normal name is an alias. */ | ||
13210 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13211 | choke me | ||
13212 | #else | ||
13213 | char (*f) () = $ac_func; | ||
13214 | #endif | ||
13215 | #ifdef __cplusplus | ||
13216 | } | ||
13217 | #endif | ||
13218 | |||
13219 | int | ||
13220 | main () | ||
13221 | { | ||
13222 | return f != $ac_func; | ||
13223 | ; | ||
13224 | return 0; | ||
13225 | } | ||
13226 | _ACEOF | ||
13227 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13229 | (eval $ac_link) 2>conftest.er1 | ||
13230 | ac_status=$? | ||
13231 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13232 | rm -f conftest.er1 | ||
13233 | cat conftest.err >&5 | ||
13234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13235 | (exit $ac_status); } && | ||
13236 | { ac_try='test -z "$ac_c_werror_flag" | ||
13237 | || test ! -s conftest.err' | ||
13238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13239 | (eval $ac_try) 2>&5 | ||
13240 | ac_status=$? | ||
13241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13242 | (exit $ac_status); }; } && | ||
13243 | { ac_try='test -s conftest$ac_exeext' | ||
13244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13245 | (eval $ac_try) 2>&5 | ||
13246 | ac_status=$? | ||
13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13248 | (exit $ac_status); }; }; then | ||
13249 | eval "$as_ac_var=yes" | ||
13250 | else | ||
13251 | echo "$as_me: failed program was:" >&5 | ||
13252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13253 | |||
13254 | eval "$as_ac_var=no" | ||
13255 | fi | ||
13256 | rm -f conftest.err conftest.$ac_objext \ | ||
13257 | conftest$ac_exeext conftest.$ac_ext | ||
13258 | fi | ||
13259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13260 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13261 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13262 | cat >>confdefs.h <<_ACEOF | ||
13263 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13264 | _ACEOF | ||
13265 | |||
13266 | fi | ||
13267 | done | ||
13268 | |||
13269 | |||
13270 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
13271 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
13272 | if test "${ac_cv_func_daemon+set}" = set; then | ||
13273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13274 | else | ||
13275 | cat >conftest.$ac_ext <<_ACEOF | ||
13276 | /* confdefs.h. */ | ||
13277 | _ACEOF | ||
13278 | cat confdefs.h >>conftest.$ac_ext | ||
13279 | cat >>conftest.$ac_ext <<_ACEOF | ||
13280 | /* end confdefs.h. */ | ||
13281 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
13282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13283 | #define daemon innocuous_daemon | ||
13284 | |||
13285 | /* System header to define __stub macros and hopefully few prototypes, | ||
13286 | which can conflict with char daemon (); below. | ||
13287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13288 | <limits.h> exists even on freestanding compilers. */ | ||
13289 | |||
13290 | #ifdef __STDC__ | ||
13291 | # include <limits.h> | ||
13292 | #else | ||
13293 | # include <assert.h> | ||
13294 | #endif | ||
13295 | |||
13296 | #undef daemon | ||
13297 | |||
13298 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13299 | #ifdef __cplusplus | ||
13300 | extern "C" | ||
13301 | { | ||
13302 | #endif | ||
13303 | /* We use char because int might match the return type of a gcc2 | ||
13304 | builtin and then its argument prototype would still apply. */ | ||
13305 | char daemon (); | ||
13306 | /* The GNU C library defines this for functions which it implements | ||
13307 | to always fail with ENOSYS. Some functions are actually named | ||
13308 | something starting with __ and the normal name is an alias. */ | ||
13309 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
13310 | choke me | ||
13311 | #else | ||
13312 | char (*f) () = daemon; | ||
13313 | #endif | ||
13314 | #ifdef __cplusplus | ||
13315 | } | ||
13316 | #endif | ||
13317 | |||
13318 | int | ||
13319 | main () | ||
13320 | { | ||
13321 | return f != daemon; | ||
13322 | ; | ||
13323 | return 0; | ||
13324 | } | ||
13325 | _ACEOF | ||
13326 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13328 | (eval $ac_link) 2>conftest.er1 | ||
13329 | ac_status=$? | ||
13330 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13331 | rm -f conftest.er1 | ||
13332 | cat conftest.err >&5 | ||
13333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13334 | (exit $ac_status); } && | ||
13335 | { ac_try='test -z "$ac_c_werror_flag" | ||
13336 | || test ! -s conftest.err' | ||
13337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13338 | (eval $ac_try) 2>&5 | ||
13339 | ac_status=$? | ||
13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13341 | (exit $ac_status); }; } && | ||
13342 | { ac_try='test -s conftest$ac_exeext' | ||
13343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13344 | (eval $ac_try) 2>&5 | ||
13345 | ac_status=$? | ||
13346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13347 | (exit $ac_status); }; }; then | ||
13348 | ac_cv_func_daemon=yes | ||
13349 | else | ||
13350 | echo "$as_me: failed program was:" >&5 | ||
13351 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13352 | |||
13353 | ac_cv_func_daemon=no | ||
13354 | fi | ||
13355 | rm -f conftest.err conftest.$ac_objext \ | ||
13356 | conftest$ac_exeext conftest.$ac_ext | ||
13357 | fi | ||
13358 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
13359 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
13360 | if test $ac_cv_func_daemon = yes; then | ||
13361 | |||
13362 | cat >>confdefs.h <<\_ACEOF | ||
13363 | #define HAVE_DAEMON 1 | ||
13364 | _ACEOF | ||
13365 | |||
13366 | else | ||
13367 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
13368 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
13369 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
13370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13371 | else | ||
13372 | ac_check_lib_save_LIBS=$LIBS | ||
13373 | LIBS="-lbsd $LIBS" | ||
13374 | cat >conftest.$ac_ext <<_ACEOF | ||
13375 | /* confdefs.h. */ | ||
13376 | _ACEOF | ||
13377 | cat confdefs.h >>conftest.$ac_ext | ||
13378 | cat >>conftest.$ac_ext <<_ACEOF | ||
13379 | /* end confdefs.h. */ | ||
13380 | |||
13381 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13382 | #ifdef __cplusplus | ||
13383 | extern "C" | ||
13384 | #endif | ||
13385 | /* We use char because int might match the return type of a gcc2 | ||
13386 | builtin and then its argument prototype would still apply. */ | ||
13387 | char daemon (); | ||
13388 | int | ||
13389 | main () | ||
13390 | { | ||
13391 | daemon (); | ||
13392 | ; | ||
13393 | return 0; | ||
13394 | } | ||
13395 | _ACEOF | ||
13396 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13398 | (eval $ac_link) 2>conftest.er1 | ||
13399 | ac_status=$? | ||
13400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13401 | rm -f conftest.er1 | ||
13402 | cat conftest.err >&5 | ||
13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13404 | (exit $ac_status); } && | ||
13405 | { ac_try='test -z "$ac_c_werror_flag" | ||
13406 | || test ! -s conftest.err' | ||
13407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13408 | (eval $ac_try) 2>&5 | ||
13409 | ac_status=$? | ||
13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13411 | (exit $ac_status); }; } && | ||
13412 | { ac_try='test -s conftest$ac_exeext' | ||
13413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13414 | (eval $ac_try) 2>&5 | ||
13415 | ac_status=$? | ||
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13417 | (exit $ac_status); }; }; then | ||
13418 | ac_cv_lib_bsd_daemon=yes | ||
13419 | else | ||
13420 | echo "$as_me: failed program was:" >&5 | ||
13421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13422 | |||
13423 | ac_cv_lib_bsd_daemon=no | ||
13424 | fi | ||
13425 | rm -f conftest.err conftest.$ac_objext \ | ||
13426 | conftest$ac_exeext conftest.$ac_ext | ||
13427 | LIBS=$ac_check_lib_save_LIBS | ||
13428 | fi | ||
13429 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
13430 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
13431 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
13432 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
13433 | #define HAVE_DAEMON 1 | ||
13434 | _ACEOF | ||
13435 | |||
13436 | fi | ||
13437 | |||
13438 | |||
13439 | fi | ||
13440 | |||
13441 | |||
13442 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
13443 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
13444 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
13445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13446 | else | ||
13447 | cat >conftest.$ac_ext <<_ACEOF | ||
13448 | /* confdefs.h. */ | ||
13449 | _ACEOF | ||
13450 | cat confdefs.h >>conftest.$ac_ext | ||
13451 | cat >>conftest.$ac_ext <<_ACEOF | ||
13452 | /* end confdefs.h. */ | ||
13453 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
13454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13455 | #define getpagesize innocuous_getpagesize | ||
13456 | |||
13457 | /* System header to define __stub macros and hopefully few prototypes, | ||
13458 | which can conflict with char getpagesize (); below. | ||
13459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13460 | <limits.h> exists even on freestanding compilers. */ | ||
13461 | |||
13462 | #ifdef __STDC__ | ||
13463 | # include <limits.h> | ||
13464 | #else | ||
13465 | # include <assert.h> | ||
13466 | #endif | ||
13467 | |||
13468 | #undef getpagesize | ||
13469 | |||
13470 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13471 | #ifdef __cplusplus | ||
13472 | extern "C" | ||
13473 | { | ||
13474 | #endif | ||
13475 | /* We use char because int might match the return type of a gcc2 | ||
13476 | builtin and then its argument prototype would still apply. */ | ||
13477 | char getpagesize (); | ||
13478 | /* The GNU C library defines this for functions which it implements | ||
13479 | to always fail with ENOSYS. Some functions are actually named | ||
13480 | something starting with __ and the normal name is an alias. */ | ||
13481 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
13482 | choke me | ||
13483 | #else | ||
13484 | char (*f) () = getpagesize; | ||
13485 | #endif | ||
13486 | #ifdef __cplusplus | ||
13487 | } | ||
13488 | #endif | ||
13489 | |||
13490 | int | ||
13491 | main () | ||
13492 | { | ||
13493 | return f != getpagesize; | ||
13494 | ; | ||
13495 | return 0; | ||
13496 | } | ||
13497 | _ACEOF | ||
13498 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13500 | (eval $ac_link) 2>conftest.er1 | ||
13501 | ac_status=$? | ||
13502 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13503 | rm -f conftest.er1 | ||
13504 | cat conftest.err >&5 | ||
13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13506 | (exit $ac_status); } && | ||
13507 | { ac_try='test -z "$ac_c_werror_flag" | ||
13508 | || test ! -s conftest.err' | ||
13509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13510 | (eval $ac_try) 2>&5 | ||
13511 | ac_status=$? | ||
13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13513 | (exit $ac_status); }; } && | ||
13514 | { ac_try='test -s conftest$ac_exeext' | ||
13515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13516 | (eval $ac_try) 2>&5 | ||
13517 | ac_status=$? | ||
13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13519 | (exit $ac_status); }; }; then | ||
13520 | ac_cv_func_getpagesize=yes | ||
13521 | else | ||
13522 | echo "$as_me: failed program was:" >&5 | ||
13523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13524 | |||
13525 | ac_cv_func_getpagesize=no | ||
13526 | fi | ||
13527 | rm -f conftest.err conftest.$ac_objext \ | ||
13528 | conftest$ac_exeext conftest.$ac_ext | ||
13529 | fi | ||
13530 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
13531 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
13532 | if test $ac_cv_func_getpagesize = yes; then | ||
13533 | |||
13534 | cat >>confdefs.h <<\_ACEOF | ||
13535 | #define HAVE_GETPAGESIZE 1 | ||
13536 | _ACEOF | ||
13537 | |||
13538 | else | ||
13539 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
13540 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
13541 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
13542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13543 | else | ||
13544 | ac_check_lib_save_LIBS=$LIBS | ||
13545 | LIBS="-lucb $LIBS" | ||
13546 | cat >conftest.$ac_ext <<_ACEOF | ||
13547 | /* confdefs.h. */ | ||
13548 | _ACEOF | ||
13549 | cat confdefs.h >>conftest.$ac_ext | ||
13550 | cat >>conftest.$ac_ext <<_ACEOF | ||
13551 | /* end confdefs.h. */ | ||
13552 | |||
13553 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13554 | #ifdef __cplusplus | ||
13555 | extern "C" | ||
13556 | #endif | ||
13557 | /* We use char because int might match the return type of a gcc2 | ||
13558 | builtin and then its argument prototype would still apply. */ | ||
13559 | char getpagesize (); | ||
13560 | int | ||
13561 | main () | ||
13562 | { | ||
13563 | getpagesize (); | ||
13564 | ; | ||
13565 | return 0; | ||
13566 | } | ||
13567 | _ACEOF | ||
13568 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13570 | (eval $ac_link) 2>conftest.er1 | ||
13571 | ac_status=$? | ||
13572 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13573 | rm -f conftest.er1 | ||
13574 | cat conftest.err >&5 | ||
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13576 | (exit $ac_status); } && | ||
13577 | { ac_try='test -z "$ac_c_werror_flag" | ||
13578 | || test ! -s conftest.err' | ||
13579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13580 | (eval $ac_try) 2>&5 | ||
13581 | ac_status=$? | ||
13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13583 | (exit $ac_status); }; } && | ||
13584 | { ac_try='test -s conftest$ac_exeext' | ||
13585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13586 | (eval $ac_try) 2>&5 | ||
13587 | ac_status=$? | ||
13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13589 | (exit $ac_status); }; }; then | ||
13590 | ac_cv_lib_ucb_getpagesize=yes | ||
13591 | else | ||
13592 | echo "$as_me: failed program was:" >&5 | ||
13593 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13594 | |||
13595 | ac_cv_lib_ucb_getpagesize=no | ||
13596 | fi | ||
13597 | rm -f conftest.err conftest.$ac_objext \ | ||
13598 | conftest$ac_exeext conftest.$ac_ext | ||
13599 | LIBS=$ac_check_lib_save_LIBS | ||
13600 | fi | ||
13601 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
13602 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
13603 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
13604 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
13605 | #define HAVE_GETPAGESIZE 1 | ||
13606 | _ACEOF | ||
13607 | |||
13608 | fi | ||
13609 | |||
13610 | |||
13611 | fi | ||
13612 | |||
13613 | |||
13614 | # Check for broken snprintf | ||
13615 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
13616 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
13617 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
13618 | if test "$cross_compiling" = yes; then | ||
13619 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
13620 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
13621 | |||
13622 | else | ||
13623 | cat >conftest.$ac_ext <<_ACEOF | ||
13624 | /* confdefs.h. */ | ||
13625 | _ACEOF | ||
13626 | cat confdefs.h >>conftest.$ac_ext | ||
13627 | cat >>conftest.$ac_ext <<_ACEOF | ||
13628 | /* end confdefs.h. */ | ||
13629 | |||
13630 | #include <stdio.h> | ||
13631 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
13632 | |||
13633 | _ACEOF | ||
13634 | rm -f conftest$ac_exeext | ||
13635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13636 | (eval $ac_link) 2>&5 | ||
13637 | ac_status=$? | ||
13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13641 | (eval $ac_try) 2>&5 | ||
13642 | ac_status=$? | ||
13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13644 | (exit $ac_status); }; }; then | ||
13645 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13646 | echo "${ECHO_T}yes" >&6 | ||
13647 | else | ||
13648 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13649 | echo "$as_me: failed program was:" >&5 | ||
13650 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13651 | |||
13652 | ( exit $ac_status ) | ||
13653 | |||
13654 | echo "$as_me:$LINENO: result: no" >&5 | ||
13655 | echo "${ECHO_T}no" >&6 | ||
13656 | |||
13657 | cat >>confdefs.h <<\_ACEOF | ||
13658 | #define BROKEN_SNPRINTF 1 | ||
13659 | _ACEOF | ||
13660 | |||
13661 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
13662 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
13663 | |||
13664 | fi | ||
13665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13666 | fi | ||
13667 | fi | ||
13668 | |||
13669 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
13670 | # returning the right thing on overflow: the number of characters it tried to | ||
13671 | # create (as per SUSv3) | ||
13672 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
13673 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
13674 | echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
13675 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6 | ||
13676 | if test "$cross_compiling" = yes; then | ||
13677 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
13678 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
13679 | |||
13680 | else | ||
13681 | cat >conftest.$ac_ext <<_ACEOF | ||
13682 | /* confdefs.h. */ | ||
13683 | _ACEOF | ||
13684 | cat confdefs.h >>conftest.$ac_ext | ||
13685 | cat >>conftest.$ac_ext <<_ACEOF | ||
13686 | /* end confdefs.h. */ | ||
13687 | |||
13688 | #include <sys/types.h> | ||
13689 | #include <stdio.h> | ||
13690 | #include <stdarg.h> | ||
13691 | |||
13692 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
13693 | { | ||
13694 | size_t ret; va_list ap; | ||
13695 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
13696 | return ret; | ||
13697 | } | ||
13698 | int main(void) | ||
13699 | { | ||
13700 | char x[1]; | ||
13701 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
13702 | } | ||
13703 | _ACEOF | ||
13704 | rm -f conftest$ac_exeext | ||
13705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13706 | (eval $ac_link) 2>&5 | ||
13707 | ac_status=$? | ||
13708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13709 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13711 | (eval $ac_try) 2>&5 | ||
13712 | ac_status=$? | ||
13713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13714 | (exit $ac_status); }; }; then | ||
13715 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13716 | echo "${ECHO_T}yes" >&6 | ||
13717 | else | ||
13718 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13719 | echo "$as_me: failed program was:" >&5 | ||
13720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13721 | |||
13722 | ( exit $ac_status ) | ||
13723 | |||
13724 | echo "$as_me:$LINENO: result: no" >&5 | ||
13725 | echo "${ECHO_T}no" >&6 | ||
13726 | |||
13727 | cat >>confdefs.h <<\_ACEOF | ||
13728 | #define BROKEN_SNPRINTF 1 | ||
13729 | _ACEOF | ||
13730 | |||
13731 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
13732 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
13733 | |||
13734 | fi | ||
13735 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13736 | fi | ||
13737 | fi | ||
13738 | |||
13739 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
13740 | # check that the fmt argument is const char * or just char *. | ||
13741 | # This is only useful for when BROKEN_SNPRINTF | ||
13742 | echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
13743 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6 | ||
13744 | cat >conftest.$ac_ext <<_ACEOF | ||
13745 | /* confdefs.h. */ | ||
13746 | _ACEOF | ||
13747 | cat confdefs.h >>conftest.$ac_ext | ||
13748 | cat >>conftest.$ac_ext <<_ACEOF | ||
13749 | /* end confdefs.h. */ | ||
13750 | #include <stdio.h> | ||
13751 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
13752 | int main(void) { snprintf(0, 0, 0); } | ||
13753 | |||
13754 | _ACEOF | ||
13755 | rm -f conftest.$ac_objext | ||
13756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13757 | (eval $ac_compile) 2>conftest.er1 | ||
13758 | ac_status=$? | ||
13759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13760 | rm -f conftest.er1 | ||
13761 | cat conftest.err >&5 | ||
13762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13763 | (exit $ac_status); } && | ||
13764 | { ac_try='test -z "$ac_c_werror_flag" | ||
13765 | || test ! -s conftest.err' | ||
13766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13767 | (eval $ac_try) 2>&5 | ||
13768 | ac_status=$? | ||
13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13770 | (exit $ac_status); }; } && | ||
13771 | { ac_try='test -s conftest.$ac_objext' | ||
13772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13773 | (eval $ac_try) 2>&5 | ||
13774 | ac_status=$? | ||
13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13776 | (exit $ac_status); }; }; then | ||
13777 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13778 | echo "${ECHO_T}yes" >&6 | ||
13779 | |||
13780 | cat >>confdefs.h <<\_ACEOF | ||
13781 | #define SNPRINTF_CONST const | ||
13782 | _ACEOF | ||
13783 | |||
13784 | else | ||
13785 | echo "$as_me: failed program was:" >&5 | ||
13786 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13787 | |||
13788 | echo "$as_me:$LINENO: result: no" >&5 | ||
13789 | echo "${ECHO_T}no" >&6 | ||
13790 | cat >>confdefs.h <<\_ACEOF | ||
13791 | #define SNPRINTF_CONST /* not const */ | ||
13792 | _ACEOF | ||
13793 | |||
13794 | fi | ||
13795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13796 | |||
13797 | # Check for missing getpeereid (or equiv) support | ||
13798 | NO_PEERCHECK="" | ||
13799 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
13800 | echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
13801 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6 | ||
13802 | cat >conftest.$ac_ext <<_ACEOF | ||
13803 | /* confdefs.h. */ | ||
13804 | _ACEOF | ||
13805 | cat confdefs.h >>conftest.$ac_ext | ||
13806 | cat >>conftest.$ac_ext <<_ACEOF | ||
13807 | /* end confdefs.h. */ | ||
13808 | #include <sys/types.h> | ||
13809 | #include <sys/socket.h> | ||
13810 | int | ||
13811 | main () | ||
13812 | { | ||
13813 | int i = SO_PEERCRED; | ||
13814 | ; | ||
13815 | return 0; | ||
13816 | } | ||
13817 | _ACEOF | ||
13818 | rm -f conftest.$ac_objext | ||
13819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13820 | (eval $ac_compile) 2>conftest.er1 | ||
13821 | ac_status=$? | ||
13822 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13823 | rm -f conftest.er1 | ||
13824 | cat conftest.err >&5 | ||
13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13826 | (exit $ac_status); } && | ||
13827 | { ac_try='test -z "$ac_c_werror_flag" | ||
13828 | || test ! -s conftest.err' | ||
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13830 | (eval $ac_try) 2>&5 | ||
13831 | ac_status=$? | ||
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13833 | (exit $ac_status); }; } && | ||
13834 | { ac_try='test -s conftest.$ac_objext' | ||
13835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13836 | (eval $ac_try) 2>&5 | ||
13837 | ac_status=$? | ||
13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13839 | (exit $ac_status); }; }; then | ||
13840 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13841 | echo "${ECHO_T}yes" >&6 | ||
13842 | |||
13843 | cat >>confdefs.h <<\_ACEOF | ||
13844 | #define HAVE_SO_PEERCRED 1 | ||
13845 | _ACEOF | ||
13846 | |||
13847 | |||
13848 | else | ||
13849 | echo "$as_me: failed program was:" >&5 | ||
13850 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13851 | |||
13852 | echo "$as_me:$LINENO: result: no" >&5 | ||
13853 | echo "${ECHO_T}no" >&6 | ||
13854 | NO_PEERCHECK=1 | ||
13855 | |||
13856 | fi | ||
13857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13858 | fi | ||
13859 | |||
13860 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
13861 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
13862 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
13863 | if test "$cross_compiling" = yes; then | ||
13864 | |||
13865 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13866 | echo "${ECHO_T}yes" >&6 | ||
13867 | cat >>confdefs.h <<\_ACEOF | ||
13868 | #define HAVE_STRICT_MKSTEMP 1 | ||
13869 | _ACEOF | ||
13870 | |||
13871 | |||
13872 | |||
13873 | else | ||
13874 | cat >conftest.$ac_ext <<_ACEOF | ||
13875 | /* confdefs.h. */ | ||
13876 | _ACEOF | ||
13877 | cat confdefs.h >>conftest.$ac_ext | ||
13878 | cat >>conftest.$ac_ext <<_ACEOF | ||
13879 | /* end confdefs.h. */ | ||
13880 | |||
13881 | #include <stdlib.h> | ||
13882 | main() { char template[]="conftest.mkstemp-test"; | ||
13883 | if (mkstemp(template) == -1) | ||
13884 | exit(1); | ||
13885 | unlink(template); exit(0); | ||
13886 | } | ||
13887 | |||
13888 | _ACEOF | ||
13889 | rm -f conftest$ac_exeext | ||
13890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13891 | (eval $ac_link) 2>&5 | ||
13892 | ac_status=$? | ||
13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13896 | (eval $ac_try) 2>&5 | ||
13897 | ac_status=$? | ||
13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13899 | (exit $ac_status); }; }; then | ||
13900 | |||
13901 | echo "$as_me:$LINENO: result: no" >&5 | ||
13902 | echo "${ECHO_T}no" >&6 | ||
13903 | |||
13904 | else | ||
13905 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13906 | echo "$as_me: failed program was:" >&5 | ||
13907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13908 | |||
13909 | ( exit $ac_status ) | ||
13910 | |||
13911 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13912 | echo "${ECHO_T}yes" >&6 | ||
13913 | |||
13914 | cat >>confdefs.h <<\_ACEOF | ||
13915 | #define HAVE_STRICT_MKSTEMP 1 | ||
13916 | _ACEOF | ||
13917 | |||
13918 | |||
13919 | fi | ||
13920 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13921 | fi | ||
13922 | fi | ||
13923 | |||
13924 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
13925 | echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
13926 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
13927 | if test "$cross_compiling" = yes; then | ||
13928 | |||
13929 | echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
13930 | echo "${ECHO_T}cross-compiling" >&6 | ||
13931 | |||
13932 | |||
13933 | else | ||
13934 | cat >conftest.$ac_ext <<_ACEOF | ||
13935 | /* confdefs.h. */ | ||
13936 | _ACEOF | ||
13937 | cat confdefs.h >>conftest.$ac_ext | ||
13938 | cat >>conftest.$ac_ext <<_ACEOF | ||
13939 | /* end confdefs.h. */ | ||
13940 | |||
13941 | #include <stdio.h> | ||
13942 | #include <sys/fcntl.h> | ||
13943 | #include <sys/types.h> | ||
13944 | #include <sys/wait.h> | ||
13945 | |||
13946 | int | ||
13947 | main() | ||
13948 | { | ||
13949 | pid_t pid; | ||
13950 | int fd, ptyfd, ttyfd, status; | ||
13951 | |||
13952 | pid = fork(); | ||
13953 | if (pid < 0) { /* failed */ | ||
13954 | exit(1); | ||
13955 | } else if (pid > 0) { /* parent */ | ||
13956 | waitpid(pid, &status, 0); | ||
13957 | if (WIFEXITED(status)) | ||
13958 | exit(WEXITSTATUS(status)); | ||
13959 | else | ||
13960 | exit(2); | ||
13961 | } else { /* child */ | ||
13962 | close(0); close(1); close(2); | ||
13963 | setsid(); | ||
13964 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
13965 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
13966 | if (fd >= 0) | ||
13967 | exit(3); /* Acquired ctty: broken */ | ||
13968 | else | ||
13969 | exit(0); /* Did not acquire ctty: OK */ | ||
13970 | } | ||
13971 | } | ||
13972 | |||
13973 | _ACEOF | ||
13974 | rm -f conftest$ac_exeext | ||
13975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13976 | (eval $ac_link) 2>&5 | ||
13977 | ac_status=$? | ||
13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13981 | (eval $ac_try) 2>&5 | ||
13982 | ac_status=$? | ||
13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13984 | (exit $ac_status); }; }; then | ||
13985 | |||
13986 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13987 | echo "${ECHO_T}yes" >&6 | ||
13988 | |||
13989 | else | ||
13990 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13991 | echo "$as_me: failed program was:" >&5 | ||
13992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13993 | |||
13994 | ( exit $ac_status ) | ||
13995 | |||
13996 | echo "$as_me:$LINENO: result: no" >&5 | ||
13997 | echo "${ECHO_T}no" >&6 | ||
13998 | cat >>confdefs.h <<\_ACEOF | ||
13999 | #define SSHD_ACQUIRES_CTTY 1 | ||
14000 | _ACEOF | ||
14001 | |||
14002 | |||
14003 | fi | ||
14004 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14005 | fi | ||
14006 | fi | ||
14007 | |||
14008 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
14009 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
14010 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
14011 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
14012 | if test "$cross_compiling" = yes; then | ||
14013 | |||
14014 | echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
14015 | echo "${ECHO_T}cross-compiling" >&6 | ||
14016 | |||
14017 | |||
14018 | else | ||
14019 | cat >conftest.$ac_ext <<_ACEOF | ||
14020 | /* confdefs.h. */ | ||
14021 | _ACEOF | ||
14022 | cat confdefs.h >>conftest.$ac_ext | ||
14023 | cat >>conftest.$ac_ext <<_ACEOF | ||
14024 | /* end confdefs.h. */ | ||
14025 | |||
14026 | #include <stdio.h> | ||
14027 | #include <sys/socket.h> | ||
14028 | #include <netdb.h> | ||
14029 | #include <errno.h> | ||
14030 | #include <netinet/in.h> | ||
14031 | |||
14032 | #define TEST_PORT "2222" | ||
14033 | |||
14034 | int | ||
14035 | main(void) | ||
14036 | { | ||
14037 | int err, sock; | ||
14038 | struct addrinfo *gai_ai, *ai, hints; | ||
14039 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
14040 | |||
14041 | memset(&hints, 0, sizeof(hints)); | ||
14042 | hints.ai_family = PF_UNSPEC; | ||
14043 | hints.ai_socktype = SOCK_STREAM; | ||
14044 | hints.ai_flags = AI_PASSIVE; | ||
14045 | |||
14046 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
14047 | if (err != 0) { | ||
14048 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
14049 | exit(1); | ||
14050 | } | ||
14051 | |||
14052 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
14053 | if (ai->ai_family != AF_INET6) | ||
14054 | continue; | ||
14055 | |||
14056 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
14057 | sizeof(ntop), strport, sizeof(strport), | ||
14058 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
14059 | |||
14060 | if (err != 0) { | ||
14061 | if (err == EAI_SYSTEM) | ||
14062 | perror("getnameinfo EAI_SYSTEM"); | ||
14063 | else | ||
14064 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
14065 | gai_strerror(err)); | ||
14066 | exit(2); | ||
14067 | } | ||
14068 | |||
14069 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
14070 | if (sock < 0) | ||
14071 | perror("socket"); | ||
14072 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
14073 | if (errno == EBADF) | ||
14074 | exit(3); | ||
14075 | } | ||
14076 | } | ||
14077 | exit(0); | ||
14078 | } | ||
14079 | |||
14080 | _ACEOF | ||
14081 | rm -f conftest$ac_exeext | ||
14082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14083 | (eval $ac_link) 2>&5 | ||
14084 | ac_status=$? | ||
14085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14088 | (eval $ac_try) 2>&5 | ||
14089 | ac_status=$? | ||
14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14091 | (exit $ac_status); }; }; then | ||
14092 | |||
14093 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14094 | echo "${ECHO_T}yes" >&6 | ||
14095 | |||
14096 | else | ||
14097 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14098 | echo "$as_me: failed program was:" >&5 | ||
14099 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14100 | |||
14101 | ( exit $ac_status ) | ||
14102 | |||
14103 | echo "$as_me:$LINENO: result: no" >&5 | ||
14104 | echo "${ECHO_T}no" >&6 | ||
14105 | cat >>confdefs.h <<\_ACEOF | ||
14106 | #define BROKEN_GETADDRINFO 1 | ||
14107 | _ACEOF | ||
14108 | |||
14109 | |||
14110 | fi | ||
14111 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14112 | fi | ||
14113 | fi | ||
14114 | |||
14115 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
14116 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
14117 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
14118 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
14119 | if test "$cross_compiling" = yes; then | ||
14120 | echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
14121 | echo "${ECHO_T}cross-compiling" >&6 | ||
14122 | |||
14123 | ] | ||
14124 | else | ||
14125 | cat >conftest.$ac_ext <<_ACEOF | ||
14126 | /* confdefs.h. */ | ||
14127 | _ACEOF | ||
14128 | cat confdefs.h >>conftest.$ac_ext | ||
14129 | cat >>conftest.$ac_ext <<_ACEOF | ||
14130 | /* end confdefs.h. */ | ||
14131 | |||
14132 | #include <stdio.h> | ||
14133 | #include <sys/socket.h> | ||
14134 | #include <netdb.h> | ||
14135 | #include <errno.h> | ||
14136 | #include <netinet/in.h> | ||
14137 | |||
14138 | #define TEST_PORT "2222" | ||
14139 | |||
14140 | int | ||
14141 | main(void) | ||
14142 | { | ||
14143 | int err, sock; | ||
14144 | struct addrinfo *gai_ai, *ai, hints; | ||
14145 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
14146 | |||
14147 | memset(&hints, 0, sizeof(hints)); | ||
14148 | hints.ai_family = PF_UNSPEC; | ||
14149 | hints.ai_socktype = SOCK_STREAM; | ||
14150 | hints.ai_flags = AI_PASSIVE; | ||
14151 | |||
14152 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
14153 | if (err != 0) { | ||
14154 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
14155 | exit(1); | ||
14156 | } | ||
14157 | |||
14158 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
14159 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
14160 | continue; | ||
14161 | |||
14162 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
14163 | sizeof(ntop), strport, sizeof(strport), | ||
14164 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
14165 | |||
14166 | if (ai->ai_family == AF_INET && err != 0) { | ||
14167 | perror("getnameinfo"); | ||
14168 | exit(2); | ||
14169 | } | ||
14170 | } | ||
14171 | exit(0); | ||
14172 | } | ||
14173 | |||
14174 | _ACEOF | ||
14175 | rm -f conftest$ac_exeext | ||
14176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14177 | (eval $ac_link) 2>&5 | ||
14178 | ac_status=$? | ||
14179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14182 | (eval $ac_try) 2>&5 | ||
14183 | ac_status=$? | ||
14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14185 | (exit $ac_status); }; }; then | ||
14186 | |||
14187 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14188 | echo "${ECHO_T}yes" >&6 | ||
14189 | |||
14190 | cat >>confdefs.h <<\_ACEOF | ||
14191 | #define AIX_GETNAMEINFO_HACK 1 | ||
14192 | _ACEOF | ||
14193 | |||
14194 | |||
14195 | else | ||
14196 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14197 | echo "$as_me: failed program was:" >&5 | ||
14198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14199 | |||
14200 | ( exit $ac_status ) | ||
14201 | |||
14202 | echo "$as_me:$LINENO: result: no" >&5 | ||
14203 | echo "${ECHO_T}no" >&6 | ||
14204 | cat >>confdefs.h <<\_ACEOF | ||
14205 | #define BROKEN_GETADDRINFO 1 | ||
14206 | _ACEOF | ||
14207 | |||
14208 | |||
14209 | fi | ||
14210 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14211 | fi | ||
14212 | fi | ||
14213 | |||
14214 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
14215 | echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
14216 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6 | ||
14217 | cat >conftest.$ac_ext <<_ACEOF | ||
14218 | |||
14219 | #include <shadow.h> | ||
14220 | int main(void) {exit(0);} | ||
14221 | |||
14222 | _ACEOF | ||
14223 | rm -f conftest.$ac_objext | ||
14224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14225 | (eval $ac_compile) 2>conftest.er1 | ||
14226 | ac_status=$? | ||
14227 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14228 | rm -f conftest.er1 | ||
14229 | cat conftest.err >&5 | ||
14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14231 | (exit $ac_status); } && | ||
14232 | { ac_try='test -z "$ac_c_werror_flag" | ||
14233 | || test ! -s conftest.err' | ||
14234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14235 | (eval $ac_try) 2>&5 | ||
14236 | ac_status=$? | ||
14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14238 | (exit $ac_status); }; } && | ||
14239 | { ac_try='test -s conftest.$ac_objext' | ||
14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14241 | (eval $ac_try) 2>&5 | ||
14242 | ac_status=$? | ||
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14244 | (exit $ac_status); }; }; then | ||
14245 | |||
14246 | echo "$as_me:$LINENO: result: no" >&5 | ||
14247 | echo "${ECHO_T}no" >&6 | ||
14248 | |||
14249 | else | ||
14250 | echo "$as_me: failed program was:" >&5 | ||
14251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14252 | |||
14253 | |||
14254 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14255 | echo "${ECHO_T}yes" >&6 | ||
14256 | |||
14257 | cat >>confdefs.h <<\_ACEOF | ||
14258 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
14259 | _ACEOF | ||
14260 | |||
14261 | |||
14262 | |||
14263 | fi | ||
14264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14265 | fi | ||
14266 | |||
14267 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
14268 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
14269 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
14270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14271 | else | ||
14272 | # Use it with a single arg. | ||
14273 | cat >conftest.$ac_ext <<_ACEOF | ||
14274 | /* confdefs.h. */ | ||
14275 | _ACEOF | ||
14276 | cat confdefs.h >>conftest.$ac_ext | ||
14277 | cat >>conftest.$ac_ext <<_ACEOF | ||
14278 | /* end confdefs.h. */ | ||
14279 | $ac_includes_default | ||
14280 | int | ||
14281 | main () | ||
14282 | { | ||
14283 | getpgrp (0); | ||
14284 | ; | ||
14285 | return 0; | ||
14286 | } | ||
14287 | _ACEOF | ||
14288 | rm -f conftest.$ac_objext | ||
14289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14290 | (eval $ac_compile) 2>conftest.er1 | ||
14291 | ac_status=$? | ||
14292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14293 | rm -f conftest.er1 | ||
14294 | cat conftest.err >&5 | ||
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14296 | (exit $ac_status); } && | ||
14297 | { ac_try='test -z "$ac_c_werror_flag" | ||
14298 | || test ! -s conftest.err' | ||
14299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14300 | (eval $ac_try) 2>&5 | ||
14301 | ac_status=$? | ||
14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14303 | (exit $ac_status); }; } && | ||
14304 | { ac_try='test -s conftest.$ac_objext' | ||
14305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14306 | (eval $ac_try) 2>&5 | ||
14307 | ac_status=$? | ||
14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14309 | (exit $ac_status); }; }; then | ||
14310 | ac_cv_func_getpgrp_void=no | ||
14311 | else | ||
14312 | echo "$as_me: failed program was:" >&5 | ||
14313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14314 | |||
14315 | ac_cv_func_getpgrp_void=yes | ||
14316 | fi | ||
14317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14318 | |||
14319 | fi | ||
14320 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
14321 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
14322 | if test $ac_cv_func_getpgrp_void = yes; then | ||
14323 | |||
14324 | cat >>confdefs.h <<\_ACEOF | ||
14325 | #define GETPGRP_VOID 1 | ||
14326 | _ACEOF | ||
14327 | |||
14328 | fi | ||
14329 | |||
14330 | |||
14331 | # Check for PAM libs | ||
14332 | PAM_MSG="no" | ||
14333 | |||
14334 | # Check whether --with-pam or --without-pam was given. | ||
14335 | if test "${with_pam+set}" = set; then | ||
14336 | withval="$with_pam" | ||
14337 | |||
14338 | if test "x$withval" != "xno" ; then | ||
14339 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
14340 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
14341 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
14342 | echo "$as_me: error: PAM headers not found" >&2;} | ||
14343 | { (exit 1); exit 1; }; } | ||
14344 | fi | ||
14345 | |||
14346 | |||
14347 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
14348 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
14349 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
14350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14351 | else | ||
14352 | ac_check_lib_save_LIBS=$LIBS | ||
14353 | LIBS="-ldl $LIBS" | ||
14354 | cat >conftest.$ac_ext <<_ACEOF | ||
14355 | /* confdefs.h. */ | ||
14356 | _ACEOF | ||
14357 | cat confdefs.h >>conftest.$ac_ext | ||
14358 | cat >>conftest.$ac_ext <<_ACEOF | ||
14359 | /* end confdefs.h. */ | ||
14360 | |||
14361 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14362 | #ifdef __cplusplus | ||
14363 | extern "C" | ||
14364 | #endif | ||
14365 | /* We use char because int might match the return type of a gcc2 | ||
14366 | builtin and then its argument prototype would still apply. */ | ||
14367 | char dlopen (); | ||
14368 | int | ||
14369 | main () | ||
14370 | { | ||
14371 | dlopen (); | ||
14372 | ; | ||
14373 | return 0; | ||
14374 | } | ||
14375 | _ACEOF | ||
14376 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14378 | (eval $ac_link) 2>conftest.er1 | ||
14379 | ac_status=$? | ||
14380 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14381 | rm -f conftest.er1 | ||
14382 | cat conftest.err >&5 | ||
14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14384 | (exit $ac_status); } && | ||
14385 | { ac_try='test -z "$ac_c_werror_flag" | ||
14386 | || test ! -s conftest.err' | ||
14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14388 | (eval $ac_try) 2>&5 | ||
14389 | ac_status=$? | ||
14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14391 | (exit $ac_status); }; } && | ||
14392 | { ac_try='test -s conftest$ac_exeext' | ||
14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14394 | (eval $ac_try) 2>&5 | ||
14395 | ac_status=$? | ||
14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14397 | (exit $ac_status); }; }; then | ||
14398 | ac_cv_lib_dl_dlopen=yes | ||
14399 | else | ||
14400 | echo "$as_me: failed program was:" >&5 | ||
14401 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14402 | |||
14403 | ac_cv_lib_dl_dlopen=no | ||
14404 | fi | ||
14405 | rm -f conftest.err conftest.$ac_objext \ | ||
14406 | conftest$ac_exeext conftest.$ac_ext | ||
14407 | LIBS=$ac_check_lib_save_LIBS | ||
14408 | fi | ||
14409 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
14410 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
14411 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
14412 | cat >>confdefs.h <<_ACEOF | ||
14413 | #define HAVE_LIBDL 1 | ||
14414 | _ACEOF | ||
14415 | |||
14416 | LIBS="-ldl $LIBS" | ||
14417 | |||
14418 | fi | ||
14419 | |||
14420 | |||
14421 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
14422 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
14423 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
14424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14425 | else | ||
14426 | ac_check_lib_save_LIBS=$LIBS | ||
14427 | LIBS="-lpam $LIBS" | ||
14428 | cat >conftest.$ac_ext <<_ACEOF | ||
14429 | /* confdefs.h. */ | ||
14430 | _ACEOF | ||
14431 | cat confdefs.h >>conftest.$ac_ext | ||
14432 | cat >>conftest.$ac_ext <<_ACEOF | ||
14433 | /* end confdefs.h. */ | ||
14434 | |||
14435 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14436 | #ifdef __cplusplus | ||
14437 | extern "C" | ||
14438 | #endif | ||
14439 | /* We use char because int might match the return type of a gcc2 | ||
14440 | builtin and then its argument prototype would still apply. */ | ||
14441 | char pam_set_item (); | ||
14442 | int | ||
14443 | main () | ||
14444 | { | ||
14445 | pam_set_item (); | ||
14446 | ; | ||
14447 | return 0; | ||
14448 | } | ||
14449 | _ACEOF | ||
14450 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14452 | (eval $ac_link) 2>conftest.er1 | ||
14453 | ac_status=$? | ||
14454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14455 | rm -f conftest.er1 | ||
14456 | cat conftest.err >&5 | ||
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14458 | (exit $ac_status); } && | ||
14459 | { ac_try='test -z "$ac_c_werror_flag" | ||
14460 | || test ! -s conftest.err' | ||
14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14462 | (eval $ac_try) 2>&5 | ||
14463 | ac_status=$? | ||
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14465 | (exit $ac_status); }; } && | ||
14466 | { ac_try='test -s conftest$ac_exeext' | ||
14467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14468 | (eval $ac_try) 2>&5 | ||
14469 | ac_status=$? | ||
14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14471 | (exit $ac_status); }; }; then | ||
14472 | ac_cv_lib_pam_pam_set_item=yes | ||
14473 | else | ||
14474 | echo "$as_me: failed program was:" >&5 | ||
14475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14476 | |||
14477 | ac_cv_lib_pam_pam_set_item=no | ||
14478 | fi | ||
14479 | rm -f conftest.err conftest.$ac_objext \ | ||
14480 | conftest$ac_exeext conftest.$ac_ext | ||
14481 | LIBS=$ac_check_lib_save_LIBS | ||
14482 | fi | ||
14483 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
14484 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
14485 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
14486 | cat >>confdefs.h <<_ACEOF | ||
14487 | #define HAVE_LIBPAM 1 | ||
14488 | _ACEOF | ||
14489 | |||
14490 | LIBS="-lpam $LIBS" | ||
14491 | |||
14492 | else | ||
14493 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
14494 | echo "$as_me: error: *** libpam missing" >&2;} | ||
14495 | { (exit 1); exit 1; }; } | ||
14496 | fi | ||
14497 | |||
14498 | |||
14499 | for ac_func in pam_getenvlist | ||
14500 | do | ||
14501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14502 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
14504 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
14505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14506 | else | ||
14507 | cat >conftest.$ac_ext <<_ACEOF | ||
14508 | /* confdefs.h. */ | ||
14509 | _ACEOF | ||
14510 | cat confdefs.h >>conftest.$ac_ext | ||
14511 | cat >>conftest.$ac_ext <<_ACEOF | ||
14512 | /* end confdefs.h. */ | ||
14513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14515 | #define $ac_func innocuous_$ac_func | ||
14516 | |||
14517 | /* System header to define __stub macros and hopefully few prototypes, | ||
14518 | which can conflict with char $ac_func (); below. | ||
14519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14520 | <limits.h> exists even on freestanding compilers. */ | ||
14521 | |||
14522 | #ifdef __STDC__ | ||
14523 | # include <limits.h> | ||
14524 | #else | ||
14525 | # include <assert.h> | ||
14526 | #endif | ||
14527 | |||
14528 | #undef $ac_func | ||
14529 | |||
14530 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14531 | #ifdef __cplusplus | ||
14532 | extern "C" | ||
14533 | { | ||
14534 | #endif | ||
14535 | /* We use char because int might match the return type of a gcc2 | ||
14536 | builtin and then its argument prototype would still apply. */ | ||
14537 | char $ac_func (); | ||
14538 | /* The GNU C library defines this for functions which it implements | ||
14539 | to always fail with ENOSYS. Some functions are actually named | ||
14540 | something starting with __ and the normal name is an alias. */ | ||
14541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
14542 | choke me | ||
14543 | #else | ||
14544 | char (*f) () = $ac_func; | ||
14545 | #endif | ||
14546 | #ifdef __cplusplus | ||
14547 | } | ||
14548 | #endif | ||
14549 | |||
14550 | int | ||
14551 | main () | ||
14552 | { | ||
14553 | return f != $ac_func; | ||
14554 | ; | ||
14555 | return 0; | ||
14556 | } | ||
14557 | _ACEOF | ||
14558 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14560 | (eval $ac_link) 2>conftest.er1 | ||
14561 | ac_status=$? | ||
14562 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14563 | rm -f conftest.er1 | ||
14564 | cat conftest.err >&5 | ||
14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14566 | (exit $ac_status); } && | ||
14567 | { ac_try='test -z "$ac_c_werror_flag" | ||
14568 | || test ! -s conftest.err' | ||
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14570 | (eval $ac_try) 2>&5 | ||
14571 | ac_status=$? | ||
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14573 | (exit $ac_status); }; } && | ||
14574 | { ac_try='test -s conftest$ac_exeext' | ||
14575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14576 | (eval $ac_try) 2>&5 | ||
14577 | ac_status=$? | ||
14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14579 | (exit $ac_status); }; }; then | ||
14580 | eval "$as_ac_var=yes" | ||
14581 | else | ||
14582 | echo "$as_me: failed program was:" >&5 | ||
14583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14584 | |||
14585 | eval "$as_ac_var=no" | ||
14586 | fi | ||
14587 | rm -f conftest.err conftest.$ac_objext \ | ||
14588 | conftest$ac_exeext conftest.$ac_ext | ||
14589 | fi | ||
14590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
14591 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
14592 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14593 | cat >>confdefs.h <<_ACEOF | ||
14594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14595 | _ACEOF | ||
14596 | |||
14597 | fi | ||
14598 | done | ||
14599 | |||
14600 | |||
14601 | for ac_func in pam_putenv | ||
14602 | do | ||
14603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14604 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
14606 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
14607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14608 | else | ||
14609 | cat >conftest.$ac_ext <<_ACEOF | ||
14610 | /* confdefs.h. */ | ||
14611 | _ACEOF | ||
14612 | cat confdefs.h >>conftest.$ac_ext | ||
14613 | cat >>conftest.$ac_ext <<_ACEOF | ||
14614 | /* end confdefs.h. */ | ||
14615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14617 | #define $ac_func innocuous_$ac_func | ||
14618 | |||
14619 | /* System header to define __stub macros and hopefully few prototypes, | ||
14620 | which can conflict with char $ac_func (); below. | ||
14621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14622 | <limits.h> exists even on freestanding compilers. */ | ||
14623 | |||
14624 | #ifdef __STDC__ | ||
14625 | # include <limits.h> | ||
14626 | #else | ||
14627 | # include <assert.h> | ||
14628 | #endif | ||
14629 | |||
14630 | #undef $ac_func | ||
14631 | |||
14632 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14633 | #ifdef __cplusplus | ||
14634 | extern "C" | ||
14635 | { | ||
14636 | #endif | ||
14637 | /* We use char because int might match the return type of a gcc2 | ||
14638 | builtin and then its argument prototype would still apply. */ | ||
14639 | char $ac_func (); | ||
14640 | /* The GNU C library defines this for functions which it implements | ||
14641 | to always fail with ENOSYS. Some functions are actually named | ||
14642 | something starting with __ and the normal name is an alias. */ | ||
14643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
14644 | choke me | ||
14645 | #else | ||
14646 | char (*f) () = $ac_func; | ||
14647 | #endif | ||
14648 | #ifdef __cplusplus | ||
14649 | } | ||
14650 | #endif | ||
14651 | |||
14652 | int | ||
14653 | main () | ||
14654 | { | ||
14655 | return f != $ac_func; | ||
14656 | ; | ||
14657 | return 0; | ||
14658 | } | ||
14659 | _ACEOF | ||
14660 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14662 | (eval $ac_link) 2>conftest.er1 | ||
14663 | ac_status=$? | ||
14664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14665 | rm -f conftest.er1 | ||
14666 | cat conftest.err >&5 | ||
14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14668 | (exit $ac_status); } && | ||
14669 | { ac_try='test -z "$ac_c_werror_flag" | ||
14670 | || test ! -s conftest.err' | ||
14671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14672 | (eval $ac_try) 2>&5 | ||
14673 | ac_status=$? | ||
14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14675 | (exit $ac_status); }; } && | ||
14676 | { ac_try='test -s conftest$ac_exeext' | ||
14677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14678 | (eval $ac_try) 2>&5 | ||
14679 | ac_status=$? | ||
14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14681 | (exit $ac_status); }; }; then | ||
14682 | eval "$as_ac_var=yes" | ||
14683 | else | ||
14684 | echo "$as_me: failed program was:" >&5 | ||
14685 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14686 | |||
14687 | eval "$as_ac_var=no" | ||
14688 | fi | ||
14689 | rm -f conftest.err conftest.$ac_objext \ | ||
14690 | conftest$ac_exeext conftest.$ac_ext | ||
14691 | fi | ||
14692 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
14693 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
14694 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14695 | cat >>confdefs.h <<_ACEOF | ||
14696 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14697 | _ACEOF | ||
14698 | |||
14699 | fi | ||
14700 | done | ||
14701 | |||
14702 | |||
14703 | PAM_MSG="yes" | ||
14704 | |||
14705 | |||
14706 | cat >>confdefs.h <<\_ACEOF | ||
14707 | #define USE_PAM 1 | ||
14708 | _ACEOF | ||
14709 | |||
14710 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
14711 | LIBPAM="-lpam -ldl" | ||
14712 | else | ||
14713 | LIBPAM="-lpam" | ||
14714 | fi | ||
14715 | |||
14716 | fi | ||
14717 | |||
14718 | |||
14719 | fi; | ||
14720 | |||
14721 | # Check for older PAM | ||
14722 | if test "x$PAM_MSG" = "xyes" ; then | ||
14723 | # Check PAM strerror arguments (old PAM) | ||
14724 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
14725 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
14726 | cat >conftest.$ac_ext <<_ACEOF | ||
14727 | /* confdefs.h. */ | ||
14728 | _ACEOF | ||
14729 | cat confdefs.h >>conftest.$ac_ext | ||
14730 | cat >>conftest.$ac_ext <<_ACEOF | ||
14731 | /* end confdefs.h. */ | ||
14732 | |||
14733 | #include <stdlib.h> | ||
14734 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
14735 | #include <security/pam_appl.h> | ||
14736 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
14737 | #include <pam/pam_appl.h> | ||
14738 | #endif | ||
14739 | |||
14740 | int | ||
14741 | main () | ||
14742 | { | ||
14743 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
14744 | ; | ||
14745 | return 0; | ||
14746 | } | ||
14747 | _ACEOF | ||
14748 | rm -f conftest.$ac_objext | ||
14749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14750 | (eval $ac_compile) 2>conftest.er1 | ||
14751 | ac_status=$? | ||
14752 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14753 | rm -f conftest.er1 | ||
14754 | cat conftest.err >&5 | ||
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14756 | (exit $ac_status); } && | ||
14757 | { ac_try='test -z "$ac_c_werror_flag" | ||
14758 | || test ! -s conftest.err' | ||
14759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14760 | (eval $ac_try) 2>&5 | ||
14761 | ac_status=$? | ||
14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14763 | (exit $ac_status); }; } && | ||
14764 | { ac_try='test -s conftest.$ac_objext' | ||
14765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14766 | (eval $ac_try) 2>&5 | ||
14767 | ac_status=$? | ||
14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14769 | (exit $ac_status); }; }; then | ||
14770 | echo "$as_me:$LINENO: result: no" >&5 | ||
14771 | echo "${ECHO_T}no" >&6 | ||
14772 | else | ||
14773 | echo "$as_me: failed program was:" >&5 | ||
14774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14775 | |||
14776 | |||
14777 | |||
14778 | cat >>confdefs.h <<\_ACEOF | ||
14779 | #define HAVE_OLD_PAM 1 | ||
14780 | _ACEOF | ||
14781 | |||
14782 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14783 | echo "${ECHO_T}yes" >&6 | ||
14784 | PAM_MSG="yes (old library)" | ||
14785 | |||
14786 | |||
14787 | fi | ||
14788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14789 | fi | ||
14790 | |||
14791 | # Search for OpenSSL | ||
14792 | saved_CPPFLAGS="$CPPFLAGS" | ||
14793 | saved_LDFLAGS="$LDFLAGS" | ||
14794 | |||
14795 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
14796 | if test "${with_ssl_dir+set}" = set; then | ||
14797 | withval="$with_ssl_dir" | ||
14798 | |||
14799 | if test "x$withval" != "xno" ; then | ||
14800 | case "$withval" in | ||
14801 | # Relative paths | ||
14802 | ./*|../*) withval="`pwd`/$withval" | ||
14803 | esac | ||
14804 | if test -d "$withval/lib"; then | ||
14805 | if test -n "${need_dash_r}"; then | ||
14806 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
14807 | else | ||
14808 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
14809 | fi | ||
14810 | else | ||
14811 | if test -n "${need_dash_r}"; then | ||
14812 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
14813 | else | ||
14814 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
14815 | fi | ||
14816 | fi | ||
14817 | if test -d "$withval/include"; then | ||
14818 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
14819 | else | ||
14820 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
14821 | fi | ||
14822 | fi | ||
14823 | |||
14824 | |||
14825 | fi; | ||
14826 | LIBS="-lcrypto $LIBS" | ||
14827 | cat >conftest.$ac_ext <<_ACEOF | ||
14828 | /* confdefs.h. */ | ||
14829 | _ACEOF | ||
14830 | cat confdefs.h >>conftest.$ac_ext | ||
14831 | cat >>conftest.$ac_ext <<_ACEOF | ||
14832 | /* end confdefs.h. */ | ||
14833 | |||
14834 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14835 | #ifdef __cplusplus | ||
14836 | extern "C" | ||
14837 | #endif | ||
14838 | /* We use char because int might match the return type of a gcc2 | ||
14839 | builtin and then its argument prototype would still apply. */ | ||
14840 | char RAND_add (); | ||
14841 | int | ||
14842 | main () | ||
14843 | { | ||
14844 | RAND_add (); | ||
14845 | ; | ||
14846 | return 0; | ||
14847 | } | ||
14848 | _ACEOF | ||
14849 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14851 | (eval $ac_link) 2>conftest.er1 | ||
14852 | ac_status=$? | ||
14853 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14854 | rm -f conftest.er1 | ||
14855 | cat conftest.err >&5 | ||
14856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14857 | (exit $ac_status); } && | ||
14858 | { ac_try='test -z "$ac_c_werror_flag" | ||
14859 | || test ! -s conftest.err' | ||
14860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14861 | (eval $ac_try) 2>&5 | ||
14862 | ac_status=$? | ||
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14864 | (exit $ac_status); }; } && | ||
14865 | { ac_try='test -s conftest$ac_exeext' | ||
14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14867 | (eval $ac_try) 2>&5 | ||
14868 | ac_status=$? | ||
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14870 | (exit $ac_status); }; }; then | ||
14871 | |||
14872 | cat >>confdefs.h <<\_ACEOF | ||
14873 | #define HAVE_OPENSSL 1 | ||
14874 | _ACEOF | ||
14875 | |||
14876 | else | ||
14877 | echo "$as_me: failed program was:" >&5 | ||
14878 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14879 | |||
14880 | |||
14881 | if test -n "${need_dash_r}"; then | ||
14882 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
14883 | else | ||
14884 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
14885 | fi | ||
14886 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
14887 | cat >conftest.$ac_ext <<_ACEOF | ||
14888 | /* confdefs.h. */ | ||
14889 | _ACEOF | ||
14890 | cat confdefs.h >>conftest.$ac_ext | ||
14891 | cat >>conftest.$ac_ext <<_ACEOF | ||
14892 | /* end confdefs.h. */ | ||
14893 | |||
14894 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14895 | #ifdef __cplusplus | ||
14896 | extern "C" | ||
14897 | #endif | ||
14898 | /* We use char because int might match the return type of a gcc2 | ||
14899 | builtin and then its argument prototype would still apply. */ | ||
14900 | char RAND_add (); | ||
14901 | int | ||
14902 | main () | ||
14903 | { | ||
14904 | RAND_add (); | ||
14905 | ; | ||
14906 | return 0; | ||
14907 | } | ||
14908 | _ACEOF | ||
14909 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14911 | (eval $ac_link) 2>conftest.er1 | ||
14912 | ac_status=$? | ||
14913 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14914 | rm -f conftest.er1 | ||
14915 | cat conftest.err >&5 | ||
14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14917 | (exit $ac_status); } && | ||
14918 | { ac_try='test -z "$ac_c_werror_flag" | ||
14919 | || test ! -s conftest.err' | ||
14920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14921 | (eval $ac_try) 2>&5 | ||
14922 | ac_status=$? | ||
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14924 | (exit $ac_status); }; } && | ||
14925 | { ac_try='test -s conftest$ac_exeext' | ||
14926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14927 | (eval $ac_try) 2>&5 | ||
14928 | ac_status=$? | ||
14929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14930 | (exit $ac_status); }; }; then | ||
14931 | cat >>confdefs.h <<\_ACEOF | ||
14932 | #define HAVE_OPENSSL 1 | ||
14933 | _ACEOF | ||
14934 | |||
14935 | else | ||
14936 | echo "$as_me: failed program was:" >&5 | ||
14937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14938 | |||
14939 | |||
14940 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
14941 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
14942 | { (exit 1); exit 1; }; } | ||
14943 | |||
14944 | |||
14945 | fi | ||
14946 | rm -f conftest.err conftest.$ac_objext \ | ||
14947 | conftest$ac_exeext conftest.$ac_ext | ||
14948 | |||
14949 | |||
14950 | fi | ||
14951 | rm -f conftest.err conftest.$ac_objext \ | ||
14952 | conftest$ac_exeext conftest.$ac_ext | ||
14953 | |||
14954 | # Determine OpenSSL header version | ||
14955 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
14956 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
14957 | if test "$cross_compiling" = yes; then | ||
14958 | |||
14959 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14960 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14961 | |||
14962 | |||
14963 | else | ||
14964 | cat >conftest.$ac_ext <<_ACEOF | ||
14965 | /* confdefs.h. */ | ||
14966 | _ACEOF | ||
14967 | cat confdefs.h >>conftest.$ac_ext | ||
14968 | cat >>conftest.$ac_ext <<_ACEOF | ||
14969 | /* end confdefs.h. */ | ||
14970 | |||
14971 | #include <stdio.h> | ||
14972 | #include <string.h> | ||
14973 | #include <openssl/opensslv.h> | ||
14974 | #define DATA "conftest.sslincver" | ||
14975 | int main(void) { | ||
14976 | FILE *fd; | ||
14977 | int rc; | ||
14978 | |||
14979 | fd = fopen(DATA,"w"); | ||
14980 | if(fd == NULL) | ||
14981 | exit(1); | ||
14982 | |||
14983 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
14984 | exit(1); | ||
14985 | |||
14986 | exit(0); | ||
14987 | } | ||
14988 | |||
14989 | _ACEOF | ||
14990 | rm -f conftest$ac_exeext | ||
14991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14992 | (eval $ac_link) 2>&5 | ||
14993 | ac_status=$? | ||
14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14997 | (eval $ac_try) 2>&5 | ||
14998 | ac_status=$? | ||
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15000 | (exit $ac_status); }; }; then | ||
15001 | |||
15002 | ssl_header_ver=`cat conftest.sslincver` | ||
15003 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
15004 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
15005 | |||
15006 | else | ||
15007 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15008 | echo "$as_me: failed program was:" >&5 | ||
15009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15010 | |||
15011 | ( exit $ac_status ) | ||
15012 | |||
15013 | echo "$as_me:$LINENO: result: not found" >&5 | ||
15014 | echo "${ECHO_T}not found" >&6 | ||
15015 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
15016 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
15017 | { (exit 1); exit 1; }; } | ||
15018 | |||
15019 | fi | ||
15020 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15021 | fi | ||
15022 | |||
15023 | # Determine OpenSSL library version | ||
15024 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
15025 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
15026 | if test "$cross_compiling" = yes; then | ||
15027 | |||
15028 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
15029 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15030 | |||
15031 | |||
15032 | else | ||
15033 | cat >conftest.$ac_ext <<_ACEOF | ||
15034 | /* confdefs.h. */ | ||
15035 | _ACEOF | ||
15036 | cat confdefs.h >>conftest.$ac_ext | ||
15037 | cat >>conftest.$ac_ext <<_ACEOF | ||
15038 | /* end confdefs.h. */ | ||
15039 | |||
15040 | #include <stdio.h> | ||
15041 | #include <string.h> | ||
15042 | #include <openssl/opensslv.h> | ||
15043 | #include <openssl/crypto.h> | ||
15044 | #define DATA "conftest.ssllibver" | ||
15045 | int main(void) { | ||
15046 | FILE *fd; | ||
15047 | int rc; | ||
15048 | |||
15049 | fd = fopen(DATA,"w"); | ||
15050 | if(fd == NULL) | ||
15051 | exit(1); | ||
15052 | |||
15053 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
15054 | exit(1); | ||
15055 | |||
15056 | exit(0); | ||
15057 | } | ||
15058 | |||
15059 | _ACEOF | ||
15060 | rm -f conftest$ac_exeext | ||
15061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15062 | (eval $ac_link) 2>&5 | ||
15063 | ac_status=$? | ||
15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15067 | (eval $ac_try) 2>&5 | ||
15068 | ac_status=$? | ||
15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15070 | (exit $ac_status); }; }; then | ||
15071 | |||
15072 | ssl_library_ver=`cat conftest.ssllibver` | ||
15073 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
15074 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
15075 | |||
15076 | else | ||
15077 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15078 | echo "$as_me: failed program was:" >&5 | ||
15079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15080 | |||
15081 | ( exit $ac_status ) | ||
15082 | |||
15083 | echo "$as_me:$LINENO: result: not found" >&5 | ||
15084 | echo "${ECHO_T}not found" >&6 | ||
15085 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
15086 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
15087 | { (exit 1); exit 1; }; } | ||
15088 | |||
15089 | fi | ||
15090 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15091 | fi | ||
15092 | |||
15093 | # Sanity check OpenSSL headers | ||
15094 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
15095 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
15096 | if test "$cross_compiling" = yes; then | ||
15097 | |||
15098 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
15099 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15100 | |||
15101 | |||
15102 | else | ||
15103 | cat >conftest.$ac_ext <<_ACEOF | ||
15104 | /* confdefs.h. */ | ||
15105 | _ACEOF | ||
15106 | cat confdefs.h >>conftest.$ac_ext | ||
15107 | cat >>conftest.$ac_ext <<_ACEOF | ||
15108 | /* end confdefs.h. */ | ||
15109 | |||
15110 | #include <string.h> | ||
15111 | #include <openssl/opensslv.h> | ||
15112 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
15113 | |||
15114 | _ACEOF | ||
15115 | rm -f conftest$ac_exeext | ||
15116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15117 | (eval $ac_link) 2>&5 | ||
15118 | ac_status=$? | ||
15119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15120 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15122 | (eval $ac_try) 2>&5 | ||
15123 | ac_status=$? | ||
15124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15125 | (exit $ac_status); }; }; then | ||
15126 | |||
15127 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15128 | echo "${ECHO_T}yes" >&6 | ||
15129 | |||
15130 | else | ||
15131 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15132 | echo "$as_me: failed program was:" >&5 | ||
15133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15134 | |||
15135 | ( exit $ac_status ) | ||
15136 | |||
15137 | echo "$as_me:$LINENO: result: no" >&5 | ||
15138 | echo "${ECHO_T}no" >&6 | ||
15139 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | ||
15140 | Check config.log for details. | ||
15141 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
15142 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
15143 | Check config.log for details. | ||
15144 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
15145 | { (exit 1); exit 1; }; } | ||
15146 | |||
15147 | fi | ||
15148 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15149 | fi | ||
15150 | |||
15151 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
15152 | echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
15153 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6 | ||
15154 | cat >conftest.$ac_ext <<_ACEOF | ||
15155 | /* confdefs.h. */ | ||
15156 | _ACEOF | ||
15157 | cat confdefs.h >>conftest.$ac_ext | ||
15158 | cat >>conftest.$ac_ext <<_ACEOF | ||
15159 | /* end confdefs.h. */ | ||
15160 | |||
15161 | #include <string.h> | ||
15162 | #include <openssl/evp.h> | ||
15163 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
15164 | |||
15165 | _ACEOF | ||
15166 | rm -f conftest.$ac_objext | ||
15167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15168 | (eval $ac_compile) 2>conftest.er1 | ||
15169 | ac_status=$? | ||
15170 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15171 | rm -f conftest.er1 | ||
15172 | cat conftest.err >&5 | ||
15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15174 | (exit $ac_status); } && | ||
15175 | { ac_try='test -z "$ac_c_werror_flag" | ||
15176 | || test ! -s conftest.err' | ||
15177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15178 | (eval $ac_try) 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 | |||
15189 | echo "$as_me:$LINENO: result: no" >&5 | ||
15190 | echo "${ECHO_T}no" >&6 | ||
15191 | |||
15192 | else | ||
15193 | echo "$as_me: failed program was:" >&5 | ||
15194 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15195 | |||
15196 | |||
15197 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15198 | echo "${ECHO_T}yes" >&6 | ||
15199 | |||
15200 | cat >>confdefs.h <<\_ACEOF | ||
15201 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
15202 | _ACEOF | ||
15203 | |||
15204 | |||
15205 | |||
15206 | fi | ||
15207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15208 | |||
15209 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
15210 | # because the system crypt() is more featureful. | ||
15211 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
15212 | |||
15213 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
15214 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
15215 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
15216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15217 | else | ||
15218 | ac_check_lib_save_LIBS=$LIBS | ||
15219 | LIBS="-lcrypt $LIBS" | ||
15220 | cat >conftest.$ac_ext <<_ACEOF | ||
15221 | /* confdefs.h. */ | ||
15222 | _ACEOF | ||
15223 | cat confdefs.h >>conftest.$ac_ext | ||
15224 | cat >>conftest.$ac_ext <<_ACEOF | ||
15225 | /* end confdefs.h. */ | ||
15226 | |||
15227 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15228 | #ifdef __cplusplus | ||
15229 | extern "C" | ||
15230 | #endif | ||
15231 | /* We use char because int might match the return type of a gcc2 | ||
15232 | builtin and then its argument prototype would still apply. */ | ||
15233 | char crypt (); | ||
15234 | int | ||
15235 | main () | ||
15236 | { | ||
15237 | crypt (); | ||
15238 | ; | ||
15239 | return 0; | ||
15240 | } | ||
15241 | _ACEOF | ||
15242 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15244 | (eval $ac_link) 2>conftest.er1 | ||
15245 | ac_status=$? | ||
15246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15247 | rm -f conftest.er1 | ||
15248 | cat conftest.err >&5 | ||
15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15250 | (exit $ac_status); } && | ||
15251 | { ac_try='test -z "$ac_c_werror_flag" | ||
15252 | || test ! -s conftest.err' | ||
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15254 | (eval $ac_try) 2>&5 | ||
15255 | ac_status=$? | ||
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15257 | (exit $ac_status); }; } && | ||
15258 | { ac_try='test -s conftest$ac_exeext' | ||
15259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15260 | (eval $ac_try) 2>&5 | ||
15261 | ac_status=$? | ||
15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15263 | (exit $ac_status); }; }; then | ||
15264 | ac_cv_lib_crypt_crypt=yes | ||
15265 | else | ||
15266 | echo "$as_me: failed program was:" >&5 | ||
15267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15268 | |||
15269 | ac_cv_lib_crypt_crypt=no | ||
15270 | fi | ||
15271 | rm -f conftest.err conftest.$ac_objext \ | ||
15272 | conftest$ac_exeext conftest.$ac_ext | ||
15273 | LIBS=$ac_check_lib_save_LIBS | ||
15274 | fi | ||
15275 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
15276 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
15277 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
15278 | cat >>confdefs.h <<_ACEOF | ||
15279 | #define HAVE_LIBCRYPT 1 | ||
15280 | _ACEOF | ||
15281 | |||
15282 | LIBS="-lcrypt $LIBS" | ||
15283 | |||
15284 | fi | ||
15285 | |||
15286 | fi | ||
15287 | |||
15288 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
15289 | # version in OpenSSL. | ||
15290 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
15291 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
15292 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
15293 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
15294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15295 | else | ||
15296 | ac_check_lib_save_LIBS=$LIBS | ||
15297 | LIBS="-lcrypt $LIBS" | ||
15298 | cat >conftest.$ac_ext <<_ACEOF | ||
15299 | /* confdefs.h. */ | ||
15300 | _ACEOF | ||
15301 | cat confdefs.h >>conftest.$ac_ext | ||
15302 | cat >>conftest.$ac_ext <<_ACEOF | ||
15303 | /* end confdefs.h. */ | ||
15304 | |||
15305 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15306 | #ifdef __cplusplus | ||
15307 | extern "C" | ||
15308 | #endif | ||
15309 | /* We use char because int might match the return type of a gcc2 | ||
15310 | builtin and then its argument prototype would still apply. */ | ||
15311 | char crypt (); | ||
15312 | int | ||
15313 | main () | ||
15314 | { | ||
15315 | crypt (); | ||
15316 | ; | ||
15317 | return 0; | ||
15318 | } | ||
15319 | _ACEOF | ||
15320 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15322 | (eval $ac_link) 2>conftest.er1 | ||
15323 | ac_status=$? | ||
15324 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15325 | rm -f conftest.er1 | ||
15326 | cat conftest.err >&5 | ||
15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15328 | (exit $ac_status); } && | ||
15329 | { ac_try='test -z "$ac_c_werror_flag" | ||
15330 | || test ! -s conftest.err' | ||
15331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15332 | (eval $ac_try) 2>&5 | ||
15333 | ac_status=$? | ||
15334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15335 | (exit $ac_status); }; } && | ||
15336 | { ac_try='test -s conftest$ac_exeext' | ||
15337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15338 | (eval $ac_try) 2>&5 | ||
15339 | ac_status=$? | ||
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15341 | (exit $ac_status); }; }; then | ||
15342 | ac_cv_lib_crypt_crypt=yes | ||
15343 | else | ||
15344 | echo "$as_me: failed program was:" >&5 | ||
15345 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15346 | |||
15347 | ac_cv_lib_crypt_crypt=no | ||
15348 | fi | ||
15349 | rm -f conftest.err conftest.$ac_objext \ | ||
15350 | conftest$ac_exeext conftest.$ac_ext | ||
15351 | LIBS=$ac_check_lib_save_LIBS | ||
15352 | fi | ||
15353 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
15354 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
15355 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
15356 | LIBS="$LIBS -lcrypt" | ||
15357 | fi | ||
15358 | |||
15359 | fi | ||
15360 | |||
15361 | |||
15362 | echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
15363 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6 | ||
15364 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
15365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15366 | else | ||
15367 | ac_check_lib_save_LIBS=$LIBS | ||
15368 | LIBS="-liaf $LIBS" | ||
15369 | cat >conftest.$ac_ext <<_ACEOF | ||
15370 | /* confdefs.h. */ | ||
15371 | _ACEOF | ||
15372 | cat confdefs.h >>conftest.$ac_ext | ||
15373 | cat >>conftest.$ac_ext <<_ACEOF | ||
15374 | /* end confdefs.h. */ | ||
15375 | |||
15376 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
15377 | #ifdef __cplusplus | ||
15378 | extern "C" | ||
15379 | #endif | ||
15380 | /* We use char because int might match the return type of a gcc2 | ||
15381 | builtin and then its argument prototype would still apply. */ | ||
15382 | char ia_openinfo (); | ||
15383 | int | ||
15384 | main () | ||
15385 | { | ||
15386 | ia_openinfo (); | ||
15387 | ; | ||
15388 | return 0; | ||
15389 | } | ||
15390 | _ACEOF | ||
15391 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15393 | (eval $ac_link) 2>conftest.er1 | ||
15394 | ac_status=$? | ||
15395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15396 | rm -f conftest.er1 | ||
15397 | cat conftest.err >&5 | ||
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15399 | (exit $ac_status); } && | ||
15400 | { ac_try='test -z "$ac_c_werror_flag" | ||
15401 | || test ! -s conftest.err' | ||
15402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15403 | (eval $ac_try) 2>&5 | ||
15404 | ac_status=$? | ||
15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15406 | (exit $ac_status); }; } && | ||
15407 | { ac_try='test -s conftest$ac_exeext' | ||
15408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15409 | (eval $ac_try) 2>&5 | ||
15410 | ac_status=$? | ||
15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15412 | (exit $ac_status); }; }; then | ||
15413 | ac_cv_lib_iaf_ia_openinfo=yes | ||
15414 | else | ||
15415 | echo "$as_me: failed program was:" >&5 | ||
15416 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15417 | |||
15418 | ac_cv_lib_iaf_ia_openinfo=no | ||
15419 | fi | ||
15420 | rm -f conftest.err conftest.$ac_objext \ | ||
15421 | conftest$ac_exeext conftest.$ac_ext | ||
15422 | LIBS=$ac_check_lib_save_LIBS | ||
15423 | fi | ||
15424 | echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
15425 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6 | ||
15426 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
15427 | cat >>confdefs.h <<_ACEOF | ||
15428 | #define HAVE_LIBIAF 1 | ||
15429 | _ACEOF | ||
15430 | |||
15431 | LIBS="-liaf $LIBS" | ||
15432 | |||
15433 | fi | ||
15434 | |||
15435 | |||
15436 | ### Configure cryptographic random number support | ||
15437 | |||
15438 | # Check wheter OpenSSL seeds itself | ||
15439 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
15440 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
15441 | if test "$cross_compiling" = yes; then | ||
15442 | |||
15443 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
15444 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
15445 | # This is safe, since all recent OpenSSL versions will | ||
15446 | # complain at runtime if not seeded correctly. | ||
15447 | OPENSSL_SEEDS_ITSELF=yes | ||
15448 | |||
15449 | |||
15450 | else | ||
15451 | cat >conftest.$ac_ext <<_ACEOF | ||
15452 | /* confdefs.h. */ | ||
15453 | _ACEOF | ||
15454 | cat confdefs.h >>conftest.$ac_ext | ||
15455 | cat >>conftest.$ac_ext <<_ACEOF | ||
15456 | /* end confdefs.h. */ | ||
15457 | |||
15458 | #include <string.h> | ||
15459 | #include <openssl/rand.h> | ||
15460 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
15461 | |||
15462 | _ACEOF | ||
15463 | rm -f conftest$ac_exeext | ||
15464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15465 | (eval $ac_link) 2>&5 | ||
15466 | ac_status=$? | ||
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15470 | (eval $ac_try) 2>&5 | ||
15471 | ac_status=$? | ||
15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15473 | (exit $ac_status); }; }; then | ||
15474 | |||
15475 | OPENSSL_SEEDS_ITSELF=yes | ||
15476 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15477 | echo "${ECHO_T}yes" >&6 | ||
15478 | |||
15479 | else | ||
15480 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15481 | echo "$as_me: failed program was:" >&5 | ||
15482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15483 | |||
15484 | ( exit $ac_status ) | ||
15485 | |||
15486 | echo "$as_me:$LINENO: result: no" >&5 | ||
15487 | echo "${ECHO_T}no" >&6 | ||
15488 | # Default to use of the rand helper if OpenSSL doesn't | ||
15489 | # seed itself | ||
15490 | USE_RAND_HELPER=yes | ||
15491 | |||
15492 | fi | ||
15493 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15494 | fi | ||
15495 | |||
15496 | |||
15497 | # Do we want to force the use of the rand helper? | ||
15498 | |||
15499 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
15500 | if test "${with_rand_helper+set}" = set; then | ||
15501 | withval="$with_rand_helper" | ||
15502 | |||
15503 | if test "x$withval" = "xno" ; then | ||
15504 | # Force use of OpenSSL's internal RNG, even if | ||
15505 | # the previous test showed it to be unseeded. | ||
15506 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
15507 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
15508 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
15509 | OPENSSL_SEEDS_ITSELF=yes | ||
15510 | USE_RAND_HELPER="" | ||
15511 | fi | ||
15512 | else | ||
15513 | USE_RAND_HELPER=yes | ||
15514 | fi | ||
15515 | |||
15516 | fi; | ||
15517 | |||
15518 | # Which randomness source do we use? | ||
15519 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
15520 | # OpenSSL only | ||
15521 | |||
15522 | cat >>confdefs.h <<\_ACEOF | ||
15523 | #define OPENSSL_PRNG_ONLY 1 | ||
15524 | _ACEOF | ||
15525 | |||
15526 | RAND_MSG="OpenSSL internal ONLY" | ||
15527 | INSTALL_SSH_RAND_HELPER="" | ||
15528 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
15529 | # install rand helper | ||
15530 | RAND_MSG="ssh-rand-helper" | ||
15531 | INSTALL_SSH_RAND_HELPER="yes" | ||
15532 | fi | ||
15533 | |||
15534 | |||
15535 | ### Configuration of ssh-rand-helper | ||
15536 | |||
15537 | # PRNGD TCP socket | ||
15538 | |||
15539 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
15540 | if test "${with_prngd_port+set}" = set; then | ||
15541 | withval="$with_prngd_port" | ||
15542 | |||
15543 | case "$withval" in | ||
15544 | no) | ||
15545 | withval="" | ||
15546 | ;; | ||
15547 | [0-9]*) | ||
15548 | ;; | ||
15549 | *) | ||
15550 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
15551 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
15552 | { (exit 1); exit 1; }; } | ||
15553 | ;; | ||
15554 | esac | ||
15555 | if test ! -z "$withval" ; then | ||
15556 | PRNGD_PORT="$withval" | ||
15557 | |||
15558 | cat >>confdefs.h <<_ACEOF | ||
15559 | #define PRNGD_PORT $PRNGD_PORT | ||
15560 | _ACEOF | ||
15561 | |||
15562 | fi | ||
15563 | |||
15564 | |||
15565 | fi; | ||
15566 | |||
15567 | # PRNGD Unix domain socket | ||
15568 | |||
15569 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
15570 | if test "${with_prngd_socket+set}" = set; then | ||
15571 | withval="$with_prngd_socket" | ||
15572 | |||
15573 | case "$withval" in | ||
15574 | yes) | ||
15575 | withval="/var/run/egd-pool" | ||
15576 | ;; | ||
15577 | no) | ||
15578 | withval="" | ||
15579 | ;; | ||
15580 | /*) | ||
15581 | ;; | ||
15582 | *) | ||
15583 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
15584 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
15585 | { (exit 1); exit 1; }; } | ||
15586 | ;; | ||
15587 | esac | ||
15588 | |||
15589 | if test ! -z "$withval" ; then | ||
15590 | if test ! -z "$PRNGD_PORT" ; then | ||
15591 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
15592 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
15593 | { (exit 1); exit 1; }; } | ||
15594 | fi | ||
15595 | if test ! -r "$withval" ; then | ||
15596 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
15597 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
15598 | fi | ||
15599 | PRNGD_SOCKET="$withval" | ||
15600 | |||
15601 | cat >>confdefs.h <<_ACEOF | ||
15602 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
15603 | _ACEOF | ||
15604 | |||
15605 | fi | ||
15606 | |||
15607 | else | ||
15608 | |||
15609 | # Check for existing socket only if we don't have a random device already | ||
15610 | if test "$USE_RAND_HELPER" = yes ; then | ||
15611 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
15612 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
15613 | # Insert other locations here | ||
15614 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
15615 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
15616 | PRNGD_SOCKET="$sock" | ||
15617 | cat >>confdefs.h <<_ACEOF | ||
15618 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
15619 | _ACEOF | ||
15620 | |||
15621 | break; | ||
15622 | fi | ||
15623 | done | ||
15624 | if test ! -z "$PRNGD_SOCKET" ; then | ||
15625 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
15626 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
15627 | else | ||
15628 | echo "$as_me:$LINENO: result: not found" >&5 | ||
15629 | echo "${ECHO_T}not found" >&6 | ||
15630 | fi | ||
15631 | fi | ||
15632 | |||
15633 | |||
15634 | fi; | ||
15635 | |||
15636 | # Change default command timeout for hashing entropy source | ||
15637 | entropy_timeout=200 | ||
15638 | |||
15639 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
15640 | if test "${with_entropy_timeout+set}" = set; then | ||
15641 | withval="$with_entropy_timeout" | ||
15642 | |||
15643 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15644 | test "x${withval}" != "xyes"; then | ||
15645 | entropy_timeout=$withval | ||
15646 | fi | ||
15647 | |||
15648 | |||
15649 | fi; | ||
15650 | |||
15651 | cat >>confdefs.h <<_ACEOF | ||
15652 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
15653 | _ACEOF | ||
15654 | |||
15655 | |||
15656 | SSH_PRIVSEP_USER=sshd | ||
15657 | |||
15658 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
15659 | if test "${with_privsep_user+set}" = set; then | ||
15660 | withval="$with_privsep_user" | ||
15661 | |||
15662 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15663 | test "x${withval}" != "xyes"; then | ||
15664 | SSH_PRIVSEP_USER=$withval | ||
15665 | fi | ||
15666 | |||
15667 | |||
15668 | fi; | ||
15669 | |||
15670 | cat >>confdefs.h <<_ACEOF | ||
15671 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
15672 | _ACEOF | ||
15673 | |||
15674 | |||
15675 | |||
15676 | # We do this little dance with the search path to insure | ||
15677 | # that programs that we select for use by installed programs | ||
15678 | # (which may be run by the super-user) come from trusted | ||
15679 | # locations before they come from the user's private area. | ||
15680 | # This should help avoid accidentally configuring some | ||
15681 | # random version of a program in someone's personal bin. | ||
15682 | |||
15683 | OPATH=$PATH | ||
15684 | PATH=/bin:/usr/bin | ||
15685 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
15686 | test -d /sbin && PATH=$PATH:/sbin | ||
15687 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
15688 | PATH=$PATH:/etc:$OPATH | ||
15689 | |||
15690 | # These programs are used by the command hashing source to gather entropy | ||
15691 | |||
15692 | # Extract the first word of "ls", so it can be a program name with args. | ||
15693 | set dummy ls; ac_word=$2 | ||
15694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15696 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
15697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15698 | else | ||
15699 | case $PROG_LS in | ||
15700 | [\\/]* | ?:[\\/]*) | ||
15701 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
15702 | ;; | ||
15703 | *) | ||
15704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15705 | for as_dir in $PATH | ||
15706 | do | ||
15707 | IFS=$as_save_IFS | ||
15708 | test -z "$as_dir" && as_dir=. | ||
15709 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15711 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
15712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15713 | break 2 | ||
15714 | fi | ||
15715 | done | ||
15716 | done | ||
15717 | |||
15718 | ;; | ||
15719 | esac | ||
15720 | fi | ||
15721 | PROG_LS=$ac_cv_path_PROG_LS | ||
15722 | |||
15723 | if test -n "$PROG_LS"; then | ||
15724 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
15725 | echo "${ECHO_T}$PROG_LS" >&6 | ||
15726 | else | ||
15727 | echo "$as_me:$LINENO: result: no" >&5 | ||
15728 | echo "${ECHO_T}no" >&6 | ||
15729 | fi | ||
15730 | |||
15731 | if test -z "$PROG_LS" ; then | ||
15732 | PROG_LS="undef" | ||
15733 | fi | ||
15734 | |||
15735 | |||
15736 | |||
15737 | # Extract the first word of "netstat", so it can be a program name with args. | ||
15738 | set dummy netstat; ac_word=$2 | ||
15739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15741 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15743 | else | ||
15744 | case $PROG_NETSTAT in | ||
15745 | [\\/]* | ?:[\\/]*) | ||
15746 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
15747 | ;; | ||
15748 | *) | ||
15749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15750 | for as_dir in $PATH | ||
15751 | do | ||
15752 | IFS=$as_save_IFS | ||
15753 | test -z "$as_dir" && as_dir=. | ||
15754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15756 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15758 | break 2 | ||
15759 | fi | ||
15760 | done | ||
15761 | done | ||
15762 | |||
15763 | ;; | ||
15764 | esac | ||
15765 | fi | ||
15766 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
15767 | |||
15768 | if test -n "$PROG_NETSTAT"; then | ||
15769 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
15770 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
15771 | else | ||
15772 | echo "$as_me:$LINENO: result: no" >&5 | ||
15773 | echo "${ECHO_T}no" >&6 | ||
15774 | fi | ||
15775 | |||
15776 | if test -z "$PROG_NETSTAT" ; then | ||
15777 | PROG_NETSTAT="undef" | ||
15778 | fi | ||
15779 | |||
15780 | |||
15781 | |||
15782 | # Extract the first word of "arp", so it can be a program name with args. | ||
15783 | set dummy arp; ac_word=$2 | ||
15784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15786 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
15787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15788 | else | ||
15789 | case $PROG_ARP in | ||
15790 | [\\/]* | ?:[\\/]*) | ||
15791 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
15792 | ;; | ||
15793 | *) | ||
15794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15795 | for as_dir in $PATH | ||
15796 | do | ||
15797 | IFS=$as_save_IFS | ||
15798 | test -z "$as_dir" && as_dir=. | ||
15799 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15801 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
15802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15803 | break 2 | ||
15804 | fi | ||
15805 | done | ||
15806 | done | ||
15807 | |||
15808 | ;; | ||
15809 | esac | ||
15810 | fi | ||
15811 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
15812 | |||
15813 | if test -n "$PROG_ARP"; then | ||
15814 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
15815 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
15816 | else | ||
15817 | echo "$as_me:$LINENO: result: no" >&5 | ||
15818 | echo "${ECHO_T}no" >&6 | ||
15819 | fi | ||
15820 | |||
15821 | if test -z "$PROG_ARP" ; then | ||
15822 | PROG_ARP="undef" | ||
15823 | fi | ||
15824 | |||
15825 | |||
15826 | |||
15827 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
15828 | set dummy ifconfig; ac_word=$2 | ||
15829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15831 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
15832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15833 | else | ||
15834 | case $PROG_IFCONFIG in | ||
15835 | [\\/]* | ?:[\\/]*) | ||
15836 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
15837 | ;; | ||
15838 | *) | ||
15839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15840 | for as_dir in $PATH | ||
15841 | do | ||
15842 | IFS=$as_save_IFS | ||
15843 | test -z "$as_dir" && as_dir=. | ||
15844 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15845 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15846 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15848 | break 2 | ||
15849 | fi | ||
15850 | done | ||
15851 | done | ||
15852 | |||
15853 | ;; | ||
15854 | esac | ||
15855 | fi | ||
15856 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
15857 | |||
15858 | if test -n "$PROG_IFCONFIG"; then | ||
15859 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
15860 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
15861 | else | ||
15862 | echo "$as_me:$LINENO: result: no" >&5 | ||
15863 | echo "${ECHO_T}no" >&6 | ||
15864 | fi | ||
15865 | |||
15866 | if test -z "$PROG_IFCONFIG" ; then | ||
15867 | PROG_IFCONFIG="undef" | ||
15868 | fi | ||
15869 | |||
15870 | |||
15871 | |||
15872 | # Extract the first word of "jstat", so it can be a program name with args. | ||
15873 | set dummy jstat; ac_word=$2 | ||
15874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15876 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
15877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15878 | else | ||
15879 | case $PROG_JSTAT in | ||
15880 | [\\/]* | ?:[\\/]*) | ||
15881 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
15882 | ;; | ||
15883 | *) | ||
15884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15885 | for as_dir in $PATH | ||
15886 | do | ||
15887 | IFS=$as_save_IFS | ||
15888 | test -z "$as_dir" && as_dir=. | ||
15889 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15891 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15893 | break 2 | ||
15894 | fi | ||
15895 | done | ||
15896 | done | ||
15897 | |||
15898 | ;; | ||
15899 | esac | ||
15900 | fi | ||
15901 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
15902 | |||
15903 | if test -n "$PROG_JSTAT"; then | ||
15904 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
15905 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
15906 | else | ||
15907 | echo "$as_me:$LINENO: result: no" >&5 | ||
15908 | echo "${ECHO_T}no" >&6 | ||
15909 | fi | ||
15910 | |||
15911 | if test -z "$PROG_JSTAT" ; then | ||
15912 | PROG_JSTAT="undef" | ||
15913 | fi | ||
15914 | |||
15915 | |||
15916 | |||
15917 | # Extract the first word of "ps", so it can be a program name with args. | ||
15918 | set dummy ps; ac_word=$2 | ||
15919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15921 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
15922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15923 | else | ||
15924 | case $PROG_PS in | ||
15925 | [\\/]* | ?:[\\/]*) | ||
15926 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
15927 | ;; | ||
15928 | *) | ||
15929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15930 | for as_dir in $PATH | ||
15931 | do | ||
15932 | IFS=$as_save_IFS | ||
15933 | test -z "$as_dir" && as_dir=. | ||
15934 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15936 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
15937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15938 | break 2 | ||
15939 | fi | ||
15940 | done | ||
15941 | done | ||
15942 | |||
15943 | ;; | ||
15944 | esac | ||
15945 | fi | ||
15946 | PROG_PS=$ac_cv_path_PROG_PS | ||
15947 | |||
15948 | if test -n "$PROG_PS"; then | ||
15949 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
15950 | echo "${ECHO_T}$PROG_PS" >&6 | ||
15951 | else | ||
15952 | echo "$as_me:$LINENO: result: no" >&5 | ||
15953 | echo "${ECHO_T}no" >&6 | ||
15954 | fi | ||
15955 | |||
15956 | if test -z "$PROG_PS" ; then | ||
15957 | PROG_PS="undef" | ||
15958 | fi | ||
15959 | |||
15960 | |||
15961 | |||
15962 | # Extract the first word of "sar", so it can be a program name with args. | ||
15963 | set dummy sar; ac_word=$2 | ||
15964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15966 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
15967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15968 | else | ||
15969 | case $PROG_SAR in | ||
15970 | [\\/]* | ?:[\\/]*) | ||
15971 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
15972 | ;; | ||
15973 | *) | ||
15974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15975 | for as_dir in $PATH | ||
15976 | do | ||
15977 | IFS=$as_save_IFS | ||
15978 | test -z "$as_dir" && as_dir=. | ||
15979 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15980 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15981 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
15982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15983 | break 2 | ||
15984 | fi | ||
15985 | done | ||
15986 | done | ||
15987 | |||
15988 | ;; | ||
15989 | esac | ||
15990 | fi | ||
15991 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
15992 | |||
15993 | if test -n "$PROG_SAR"; then | ||
15994 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
15995 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
15996 | else | ||
15997 | echo "$as_me:$LINENO: result: no" >&5 | ||
15998 | echo "${ECHO_T}no" >&6 | ||
15999 | fi | ||
16000 | |||
16001 | if test -z "$PROG_SAR" ; then | ||
16002 | PROG_SAR="undef" | ||
16003 | fi | ||
16004 | |||
16005 | |||
16006 | |||
16007 | # Extract the first word of "w", so it can be a program name with args. | ||
16008 | set dummy w; ac_word=$2 | ||
16009 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16011 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
16012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16013 | else | ||
16014 | case $PROG_W in | ||
16015 | [\\/]* | ?:[\\/]*) | ||
16016 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
16017 | ;; | ||
16018 | *) | ||
16019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16020 | for as_dir in $PATH | ||
16021 | do | ||
16022 | IFS=$as_save_IFS | ||
16023 | test -z "$as_dir" && as_dir=. | ||
16024 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16026 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
16027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16028 | break 2 | ||
16029 | fi | ||
16030 | done | ||
16031 | done | ||
16032 | |||
16033 | ;; | ||
16034 | esac | ||
16035 | fi | ||
16036 | PROG_W=$ac_cv_path_PROG_W | ||
16037 | |||
16038 | if test -n "$PROG_W"; then | ||
16039 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
16040 | echo "${ECHO_T}$PROG_W" >&6 | ||
16041 | else | ||
16042 | echo "$as_me:$LINENO: result: no" >&5 | ||
16043 | echo "${ECHO_T}no" >&6 | ||
16044 | fi | ||
16045 | |||
16046 | if test -z "$PROG_W" ; then | ||
16047 | PROG_W="undef" | ||
16048 | fi | ||
16049 | |||
16050 | |||
16051 | |||
16052 | # Extract the first word of "who", so it can be a program name with args. | ||
16053 | set dummy who; ac_word=$2 | ||
16054 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16056 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16058 | else | ||
16059 | case $PROG_WHO in | ||
16060 | [\\/]* | ?:[\\/]*) | ||
16061 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
16062 | ;; | ||
16063 | *) | ||
16064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16065 | for as_dir in $PATH | ||
16066 | do | ||
16067 | IFS=$as_save_IFS | ||
16068 | test -z "$as_dir" && as_dir=. | ||
16069 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16070 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16071 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
16072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16073 | break 2 | ||
16074 | fi | ||
16075 | done | ||
16076 | done | ||
16077 | |||
16078 | ;; | ||
16079 | esac | ||
16080 | fi | ||
16081 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
16082 | |||
16083 | if test -n "$PROG_WHO"; then | ||
16084 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
16085 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
16086 | else | ||
16087 | echo "$as_me:$LINENO: result: no" >&5 | ||
16088 | echo "${ECHO_T}no" >&6 | ||
16089 | fi | ||
16090 | |||
16091 | if test -z "$PROG_WHO" ; then | ||
16092 | PROG_WHO="undef" | ||
16093 | fi | ||
16094 | |||
16095 | |||
16096 | |||
16097 | # Extract the first word of "last", so it can be a program name with args. | ||
16098 | set dummy last; ac_word=$2 | ||
16099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16101 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
16102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16103 | else | ||
16104 | case $PROG_LAST in | ||
16105 | [\\/]* | ?:[\\/]*) | ||
16106 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
16107 | ;; | ||
16108 | *) | ||
16109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16110 | for as_dir in $PATH | ||
16111 | do | ||
16112 | IFS=$as_save_IFS | ||
16113 | test -z "$as_dir" && as_dir=. | ||
16114 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16116 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
16117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16118 | break 2 | ||
16119 | fi | ||
16120 | done | ||
16121 | done | ||
16122 | |||
16123 | ;; | ||
16124 | esac | ||
16125 | fi | ||
16126 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
16127 | |||
16128 | if test -n "$PROG_LAST"; then | ||
16129 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
16130 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
16131 | else | ||
16132 | echo "$as_me:$LINENO: result: no" >&5 | ||
16133 | echo "${ECHO_T}no" >&6 | ||
16134 | fi | ||
16135 | |||
16136 | if test -z "$PROG_LAST" ; then | ||
16137 | PROG_LAST="undef" | ||
16138 | fi | ||
16139 | |||
16140 | |||
16141 | |||
16142 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
16143 | set dummy lastlog; ac_word=$2 | ||
16144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16146 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
16147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16148 | else | ||
16149 | case $PROG_LASTLOG in | ||
16150 | [\\/]* | ?:[\\/]*) | ||
16151 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
16152 | ;; | ||
16153 | *) | ||
16154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16155 | for as_dir in $PATH | ||
16156 | do | ||
16157 | IFS=$as_save_IFS | ||
16158 | test -z "$as_dir" && as_dir=. | ||
16159 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16160 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16161 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
16162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16163 | break 2 | ||
16164 | fi | ||
16165 | done | ||
16166 | done | ||
16167 | |||
16168 | ;; | ||
16169 | esac | ||
16170 | fi | ||
16171 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
16172 | |||
16173 | if test -n "$PROG_LASTLOG"; then | ||
16174 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
16175 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
16176 | else | ||
16177 | echo "$as_me:$LINENO: result: no" >&5 | ||
16178 | echo "${ECHO_T}no" >&6 | ||
16179 | fi | ||
16180 | |||
16181 | if test -z "$PROG_LASTLOG" ; then | ||
16182 | PROG_LASTLOG="undef" | ||
16183 | fi | ||
16184 | |||
16185 | |||
16186 | |||
16187 | # Extract the first word of "df", so it can be a program name with args. | ||
16188 | set dummy df; ac_word=$2 | ||
16189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16191 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
16192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16193 | else | ||
16194 | case $PROG_DF in | ||
16195 | [\\/]* | ?:[\\/]*) | ||
16196 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
16197 | ;; | ||
16198 | *) | ||
16199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16200 | for as_dir in $PATH | ||
16201 | do | ||
16202 | IFS=$as_save_IFS | ||
16203 | test -z "$as_dir" && as_dir=. | ||
16204 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16206 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
16207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16208 | break 2 | ||
16209 | fi | ||
16210 | done | ||
16211 | done | ||
16212 | |||
16213 | ;; | ||
16214 | esac | ||
16215 | fi | ||
16216 | PROG_DF=$ac_cv_path_PROG_DF | ||
16217 | |||
16218 | if test -n "$PROG_DF"; then | ||
16219 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
16220 | echo "${ECHO_T}$PROG_DF" >&6 | ||
16221 | else | ||
16222 | echo "$as_me:$LINENO: result: no" >&5 | ||
16223 | echo "${ECHO_T}no" >&6 | ||
16224 | fi | ||
16225 | |||
16226 | if test -z "$PROG_DF" ; then | ||
16227 | PROG_DF="undef" | ||
16228 | fi | ||
16229 | |||
16230 | |||
16231 | |||
16232 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
16233 | set dummy vmstat; ac_word=$2 | ||
16234 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16236 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
16237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16238 | else | ||
16239 | case $PROG_VMSTAT in | ||
16240 | [\\/]* | ?:[\\/]*) | ||
16241 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
16242 | ;; | ||
16243 | *) | ||
16244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16245 | for as_dir in $PATH | ||
16246 | do | ||
16247 | IFS=$as_save_IFS | ||
16248 | test -z "$as_dir" && as_dir=. | ||
16249 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16251 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
16252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16253 | break 2 | ||
16254 | fi | ||
16255 | done | ||
16256 | done | ||
16257 | |||
16258 | ;; | ||
16259 | esac | ||
16260 | fi | ||
16261 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
16262 | |||
16263 | if test -n "$PROG_VMSTAT"; then | ||
16264 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
16265 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
16266 | else | ||
16267 | echo "$as_me:$LINENO: result: no" >&5 | ||
16268 | echo "${ECHO_T}no" >&6 | ||
16269 | fi | ||
16270 | |||
16271 | if test -z "$PROG_VMSTAT" ; then | ||
16272 | PROG_VMSTAT="undef" | ||
16273 | fi | ||
16274 | |||
16275 | |||
16276 | |||
16277 | # Extract the first word of "uptime", so it can be a program name with args. | ||
16278 | set dummy uptime; ac_word=$2 | ||
16279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16281 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
16282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16283 | else | ||
16284 | case $PROG_UPTIME in | ||
16285 | [\\/]* | ?:[\\/]*) | ||
16286 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
16287 | ;; | ||
16288 | *) | ||
16289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16290 | for as_dir in $PATH | ||
16291 | do | ||
16292 | IFS=$as_save_IFS | ||
16293 | test -z "$as_dir" && as_dir=. | ||
16294 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16296 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
16297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16298 | break 2 | ||
16299 | fi | ||
16300 | done | ||
16301 | done | ||
16302 | |||
16303 | ;; | ||
16304 | esac | ||
16305 | fi | ||
16306 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
16307 | |||
16308 | if test -n "$PROG_UPTIME"; then | ||
16309 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
16310 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
16311 | else | ||
16312 | echo "$as_me:$LINENO: result: no" >&5 | ||
16313 | echo "${ECHO_T}no" >&6 | ||
16314 | fi | ||
16315 | |||
16316 | if test -z "$PROG_UPTIME" ; then | ||
16317 | PROG_UPTIME="undef" | ||
16318 | fi | ||
16319 | |||
16320 | |||
16321 | |||
16322 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
16323 | set dummy ipcs; ac_word=$2 | ||
16324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16326 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
16327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16328 | else | ||
16329 | case $PROG_IPCS in | ||
16330 | [\\/]* | ?:[\\/]*) | ||
16331 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
16332 | ;; | ||
16333 | *) | ||
16334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16335 | for as_dir in $PATH | ||
16336 | do | ||
16337 | IFS=$as_save_IFS | ||
16338 | test -z "$as_dir" && as_dir=. | ||
16339 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16341 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
16342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16343 | break 2 | ||
16344 | fi | ||
16345 | done | ||
16346 | done | ||
16347 | |||
16348 | ;; | ||
16349 | esac | ||
16350 | fi | ||
16351 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
16352 | |||
16353 | if test -n "$PROG_IPCS"; then | ||
16354 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
16355 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
16356 | else | ||
16357 | echo "$as_me:$LINENO: result: no" >&5 | ||
16358 | echo "${ECHO_T}no" >&6 | ||
16359 | fi | ||
16360 | |||
16361 | if test -z "$PROG_IPCS" ; then | ||
16362 | PROG_IPCS="undef" | ||
16363 | fi | ||
16364 | |||
16365 | |||
16366 | |||
16367 | # Extract the first word of "tail", so it can be a program name with args. | ||
16368 | set dummy tail; ac_word=$2 | ||
16369 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
16370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
16371 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
16372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16373 | else | ||
16374 | case $PROG_TAIL in | ||
16375 | [\\/]* | ?:[\\/]*) | ||
16376 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
16377 | ;; | ||
16378 | *) | ||
16379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16380 | for as_dir in $PATH | ||
16381 | do | ||
16382 | IFS=$as_save_IFS | ||
16383 | test -z "$as_dir" && as_dir=. | ||
16384 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16385 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
16386 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
16387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16388 | break 2 | ||
16389 | fi | ||
16390 | done | ||
16391 | done | ||
16392 | |||
16393 | ;; | ||
16394 | esac | ||
16395 | fi | ||
16396 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
16397 | |||
16398 | if test -n "$PROG_TAIL"; then | ||
16399 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
16400 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
16401 | else | ||
16402 | echo "$as_me:$LINENO: result: no" >&5 | ||
16403 | echo "${ECHO_T}no" >&6 | ||
16404 | fi | ||
16405 | |||
16406 | if test -z "$PROG_TAIL" ; then | ||
16407 | PROG_TAIL="undef" | ||
16408 | fi | ||
16409 | |||
16410 | |||
16411 | # restore PATH | ||
16412 | PATH=$OPATH | ||
16413 | |||
16414 | # Where does ssh-rand-helper get its randomness from? | ||
16415 | INSTALL_SSH_PRNG_CMDS="" | ||
16416 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
16417 | if test ! -z "$PRNGD_PORT" ; then | ||
16418 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
16419 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
16420 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
16421 | else | ||
16422 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
16423 | RAND_HELPER_CMDHASH=yes | ||
16424 | INSTALL_SSH_PRNG_CMDS="yes" | ||
16425 | fi | ||
16426 | fi | ||
16427 | |||
16428 | |||
16429 | |||
16430 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
16431 | if test ! -z "$SONY" ; then | ||
16432 | LIBS="$LIBS -liberty"; | ||
16433 | fi | ||
16434 | |||
16435 | # Check for long long datatypes | ||
16436 | echo "$as_me:$LINENO: checking for long long" >&5 | ||
16437 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | ||
16438 | if test "${ac_cv_type_long_long+set}" = set; then | ||
16439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16440 | else | ||
16441 | cat >conftest.$ac_ext <<_ACEOF | ||
16442 | /* confdefs.h. */ | ||
16443 | _ACEOF | ||
16444 | cat confdefs.h >>conftest.$ac_ext | ||
16445 | cat >>conftest.$ac_ext <<_ACEOF | ||
16446 | /* end confdefs.h. */ | ||
16447 | $ac_includes_default | ||
16448 | int | ||
16449 | main () | ||
16450 | { | ||
16451 | if ((long long *) 0) | ||
16452 | return 0; | ||
16453 | if (sizeof (long long)) | ||
16454 | return 0; | ||
16455 | ; | ||
16456 | return 0; | ||
16457 | } | ||
16458 | _ACEOF | ||
16459 | rm -f conftest.$ac_objext | ||
16460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16461 | (eval $ac_compile) 2>conftest.er1 | ||
16462 | ac_status=$? | ||
16463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16464 | rm -f conftest.er1 | ||
16465 | cat conftest.err >&5 | ||
16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16467 | (exit $ac_status); } && | ||
16468 | { ac_try='test -z "$ac_c_werror_flag" | ||
16469 | || test ! -s conftest.err' | ||
16470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16471 | (eval $ac_try) 2>&5 | ||
16472 | ac_status=$? | ||
16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16474 | (exit $ac_status); }; } && | ||
16475 | { ac_try='test -s conftest.$ac_objext' | ||
16476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16477 | (eval $ac_try) 2>&5 | ||
16478 | ac_status=$? | ||
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16480 | (exit $ac_status); }; }; then | ||
16481 | ac_cv_type_long_long=yes | ||
16482 | else | ||
16483 | echo "$as_me: failed program was:" >&5 | ||
16484 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16485 | |||
16486 | ac_cv_type_long_long=no | ||
16487 | fi | ||
16488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16489 | fi | ||
16490 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
16491 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | ||
16492 | if test $ac_cv_type_long_long = yes; then | ||
16493 | |||
16494 | cat >>confdefs.h <<_ACEOF | ||
16495 | #define HAVE_LONG_LONG 1 | ||
16496 | _ACEOF | ||
16497 | |||
16498 | |||
16499 | fi | ||
16500 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
16501 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 | ||
16502 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
16503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16504 | else | ||
16505 | cat >conftest.$ac_ext <<_ACEOF | ||
16506 | /* confdefs.h. */ | ||
16507 | _ACEOF | ||
16508 | cat confdefs.h >>conftest.$ac_ext | ||
16509 | cat >>conftest.$ac_ext <<_ACEOF | ||
16510 | /* end confdefs.h. */ | ||
16511 | $ac_includes_default | ||
16512 | int | ||
16513 | main () | ||
16514 | { | ||
16515 | if ((unsigned long long *) 0) | ||
16516 | return 0; | ||
16517 | if (sizeof (unsigned long long)) | ||
16518 | return 0; | ||
16519 | ; | ||
16520 | return 0; | ||
16521 | } | ||
16522 | _ACEOF | ||
16523 | rm -f conftest.$ac_objext | ||
16524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16525 | (eval $ac_compile) 2>conftest.er1 | ||
16526 | ac_status=$? | ||
16527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16528 | rm -f conftest.er1 | ||
16529 | cat conftest.err >&5 | ||
16530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16531 | (exit $ac_status); } && | ||
16532 | { ac_try='test -z "$ac_c_werror_flag" | ||
16533 | || test ! -s conftest.err' | ||
16534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16535 | (eval $ac_try) 2>&5 | ||
16536 | ac_status=$? | ||
16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16538 | (exit $ac_status); }; } && | ||
16539 | { ac_try='test -s conftest.$ac_objext' | ||
16540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16541 | (eval $ac_try) 2>&5 | ||
16542 | ac_status=$? | ||
16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16544 | (exit $ac_status); }; }; then | ||
16545 | ac_cv_type_unsigned_long_long=yes | ||
16546 | else | ||
16547 | echo "$as_me: failed program was:" >&5 | ||
16548 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16549 | |||
16550 | ac_cv_type_unsigned_long_long=no | ||
16551 | fi | ||
16552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16553 | fi | ||
16554 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
16555 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 | ||
16556 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
16557 | |||
16558 | cat >>confdefs.h <<_ACEOF | ||
16559 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
16560 | _ACEOF | ||
16561 | |||
16562 | |||
16563 | fi | ||
16564 | echo "$as_me:$LINENO: checking for long double" >&5 | ||
16565 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 | ||
16566 | if test "${ac_cv_type_long_double+set}" = set; then | ||
16567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16568 | else | ||
16569 | cat >conftest.$ac_ext <<_ACEOF | ||
16570 | /* confdefs.h. */ | ||
16571 | _ACEOF | ||
16572 | cat confdefs.h >>conftest.$ac_ext | ||
16573 | cat >>conftest.$ac_ext <<_ACEOF | ||
16574 | /* end confdefs.h. */ | ||
16575 | $ac_includes_default | ||
16576 | int | ||
16577 | main () | ||
16578 | { | ||
16579 | if ((long double *) 0) | ||
16580 | return 0; | ||
16581 | if (sizeof (long double)) | ||
16582 | return 0; | ||
16583 | ; | ||
16584 | return 0; | ||
16585 | } | ||
16586 | _ACEOF | ||
16587 | rm -f conftest.$ac_objext | ||
16588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16589 | (eval $ac_compile) 2>conftest.er1 | ||
16590 | ac_status=$? | ||
16591 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16592 | rm -f conftest.er1 | ||
16593 | cat conftest.err >&5 | ||
16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16595 | (exit $ac_status); } && | ||
16596 | { ac_try='test -z "$ac_c_werror_flag" | ||
16597 | || test ! -s conftest.err' | ||
16598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16599 | (eval $ac_try) 2>&5 | ||
16600 | ac_status=$? | ||
16601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16602 | (exit $ac_status); }; } && | ||
16603 | { ac_try='test -s conftest.$ac_objext' | ||
16604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16605 | (eval $ac_try) 2>&5 | ||
16606 | ac_status=$? | ||
16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16608 | (exit $ac_status); }; }; then | ||
16609 | ac_cv_type_long_double=yes | ||
16610 | else | ||
16611 | echo "$as_me: failed program was:" >&5 | ||
16612 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16613 | |||
16614 | ac_cv_type_long_double=no | ||
16615 | fi | ||
16616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16617 | fi | ||
16618 | echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
16619 | echo "${ECHO_T}$ac_cv_type_long_double" >&6 | ||
16620 | if test $ac_cv_type_long_double = yes; then | ||
16621 | |||
16622 | cat >>confdefs.h <<_ACEOF | ||
16623 | #define HAVE_LONG_DOUBLE 1 | ||
16624 | _ACEOF | ||
16625 | |||
16626 | |||
16627 | fi | ||
16628 | |||
16629 | |||
16630 | # Check datatype sizes | ||
16631 | echo "$as_me:$LINENO: checking for char" >&5 | ||
16632 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
16633 | if test "${ac_cv_type_char+set}" = set; then | ||
16634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16635 | else | ||
16636 | cat >conftest.$ac_ext <<_ACEOF | ||
16637 | /* confdefs.h. */ | ||
16638 | _ACEOF | ||
16639 | cat confdefs.h >>conftest.$ac_ext | ||
16640 | cat >>conftest.$ac_ext <<_ACEOF | ||
16641 | /* end confdefs.h. */ | ||
16642 | $ac_includes_default | ||
16643 | int | ||
16644 | main () | ||
16645 | { | ||
16646 | if ((char *) 0) | ||
16647 | return 0; | ||
16648 | if (sizeof (char)) | ||
16649 | return 0; | ||
16650 | ; | ||
16651 | return 0; | ||
16652 | } | ||
16653 | _ACEOF | ||
16654 | rm -f conftest.$ac_objext | ||
16655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16656 | (eval $ac_compile) 2>conftest.er1 | ||
16657 | ac_status=$? | ||
16658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16659 | rm -f conftest.er1 | ||
16660 | cat conftest.err >&5 | ||
16661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16662 | (exit $ac_status); } && | ||
16663 | { ac_try='test -z "$ac_c_werror_flag" | ||
16664 | || test ! -s conftest.err' | ||
16665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16666 | (eval $ac_try) 2>&5 | ||
16667 | ac_status=$? | ||
16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16669 | (exit $ac_status); }; } && | ||
16670 | { ac_try='test -s conftest.$ac_objext' | ||
16671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16672 | (eval $ac_try) 2>&5 | ||
16673 | ac_status=$? | ||
16674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16675 | (exit $ac_status); }; }; then | ||
16676 | ac_cv_type_char=yes | ||
16677 | else | ||
16678 | echo "$as_me: failed program was:" >&5 | ||
16679 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16680 | |||
16681 | ac_cv_type_char=no | ||
16682 | fi | ||
16683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16684 | fi | ||
16685 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
16686 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
16687 | |||
16688 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
16689 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
16690 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
16691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16692 | else | ||
16693 | if test "$ac_cv_type_char" = yes; then | ||
16694 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16697 | # This bug is HP SR number 8606223364. | ||
16698 | if test "$cross_compiling" = yes; then | ||
16699 | # Depending upon the size, compute the lo and hi bounds. | ||
16700 | cat >conftest.$ac_ext <<_ACEOF | ||
16701 | /* confdefs.h. */ | ||
16702 | _ACEOF | ||
16703 | cat confdefs.h >>conftest.$ac_ext | ||
16704 | cat >>conftest.$ac_ext <<_ACEOF | ||
16705 | /* end confdefs.h. */ | ||
16706 | $ac_includes_default | ||
16707 | int | ||
16708 | main () | ||
16709 | { | ||
16710 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
16711 | test_array [0] = 0 | ||
16712 | |||
16713 | ; | ||
16714 | return 0; | ||
16715 | } | ||
16716 | _ACEOF | ||
16717 | rm -f conftest.$ac_objext | ||
16718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16719 | (eval $ac_compile) 2>conftest.er1 | ||
16720 | ac_status=$? | ||
16721 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16722 | rm -f conftest.er1 | ||
16723 | cat conftest.err >&5 | ||
16724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16725 | (exit $ac_status); } && | ||
16726 | { ac_try='test -z "$ac_c_werror_flag" | ||
16727 | || test ! -s conftest.err' | ||
16728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16729 | (eval $ac_try) 2>&5 | ||
16730 | ac_status=$? | ||
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16732 | (exit $ac_status); }; } && | ||
16733 | { ac_try='test -s conftest.$ac_objext' | ||
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16735 | (eval $ac_try) 2>&5 | ||
16736 | ac_status=$? | ||
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16738 | (exit $ac_status); }; }; then | ||
16739 | ac_lo=0 ac_mid=0 | ||
16740 | while :; do | ||
16741 | cat >conftest.$ac_ext <<_ACEOF | ||
16742 | /* confdefs.h. */ | ||
16743 | _ACEOF | ||
16744 | cat confdefs.h >>conftest.$ac_ext | ||
16745 | cat >>conftest.$ac_ext <<_ACEOF | ||
16746 | /* end confdefs.h. */ | ||
16747 | $ac_includes_default | ||
16748 | int | ||
16749 | main () | ||
16750 | { | ||
16751 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
16752 | test_array [0] = 0 | ||
16753 | |||
16754 | ; | ||
16755 | return 0; | ||
16756 | } | ||
16757 | _ACEOF | ||
16758 | rm -f conftest.$ac_objext | ||
16759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16760 | (eval $ac_compile) 2>conftest.er1 | ||
16761 | ac_status=$? | ||
16762 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16763 | rm -f conftest.er1 | ||
16764 | cat conftest.err >&5 | ||
16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16766 | (exit $ac_status); } && | ||
16767 | { ac_try='test -z "$ac_c_werror_flag" | ||
16768 | || test ! -s conftest.err' | ||
16769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16770 | (eval $ac_try) 2>&5 | ||
16771 | ac_status=$? | ||
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16773 | (exit $ac_status); }; } && | ||
16774 | { ac_try='test -s conftest.$ac_objext' | ||
16775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16776 | (eval $ac_try) 2>&5 | ||
16777 | ac_status=$? | ||
16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16779 | (exit $ac_status); }; }; then | ||
16780 | ac_hi=$ac_mid; break | ||
16781 | else | ||
16782 | echo "$as_me: failed program was:" >&5 | ||
16783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16784 | |||
16785 | ac_lo=`expr $ac_mid + 1` | ||
16786 | if test $ac_lo -le $ac_mid; then | ||
16787 | ac_lo= ac_hi= | ||
16788 | break | ||
16789 | fi | ||
16790 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16791 | fi | ||
16792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16793 | done | ||
16794 | else | ||
16795 | echo "$as_me: failed program was:" >&5 | ||
16796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16797 | |||
16798 | cat >conftest.$ac_ext <<_ACEOF | ||
16799 | /* confdefs.h. */ | ||
16800 | _ACEOF | ||
16801 | cat confdefs.h >>conftest.$ac_ext | ||
16802 | cat >>conftest.$ac_ext <<_ACEOF | ||
16803 | /* end confdefs.h. */ | ||
16804 | $ac_includes_default | ||
16805 | int | ||
16806 | main () | ||
16807 | { | ||
16808 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
16809 | test_array [0] = 0 | ||
16810 | |||
16811 | ; | ||
16812 | return 0; | ||
16813 | } | ||
16814 | _ACEOF | ||
16815 | rm -f conftest.$ac_objext | ||
16816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16817 | (eval $ac_compile) 2>conftest.er1 | ||
16818 | ac_status=$? | ||
16819 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16820 | rm -f conftest.er1 | ||
16821 | cat conftest.err >&5 | ||
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16823 | (exit $ac_status); } && | ||
16824 | { ac_try='test -z "$ac_c_werror_flag" | ||
16825 | || test ! -s conftest.err' | ||
16826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16827 | (eval $ac_try) 2>&5 | ||
16828 | ac_status=$? | ||
16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16830 | (exit $ac_status); }; } && | ||
16831 | { ac_try='test -s conftest.$ac_objext' | ||
16832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16833 | (eval $ac_try) 2>&5 | ||
16834 | ac_status=$? | ||
16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16836 | (exit $ac_status); }; }; then | ||
16837 | ac_hi=-1 ac_mid=-1 | ||
16838 | while :; do | ||
16839 | cat >conftest.$ac_ext <<_ACEOF | ||
16840 | /* confdefs.h. */ | ||
16841 | _ACEOF | ||
16842 | cat confdefs.h >>conftest.$ac_ext | ||
16843 | cat >>conftest.$ac_ext <<_ACEOF | ||
16844 | /* end confdefs.h. */ | ||
16845 | $ac_includes_default | ||
16846 | int | ||
16847 | main () | ||
16848 | { | ||
16849 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
16850 | test_array [0] = 0 | ||
16851 | |||
16852 | ; | ||
16853 | return 0; | ||
16854 | } | ||
16855 | _ACEOF | ||
16856 | rm -f conftest.$ac_objext | ||
16857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16858 | (eval $ac_compile) 2>conftest.er1 | ||
16859 | ac_status=$? | ||
16860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16861 | rm -f conftest.er1 | ||
16862 | cat conftest.err >&5 | ||
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16864 | (exit $ac_status); } && | ||
16865 | { ac_try='test -z "$ac_c_werror_flag" | ||
16866 | || test ! -s conftest.err' | ||
16867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16868 | (eval $ac_try) 2>&5 | ||
16869 | ac_status=$? | ||
16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16871 | (exit $ac_status); }; } && | ||
16872 | { ac_try='test -s conftest.$ac_objext' | ||
16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16874 | (eval $ac_try) 2>&5 | ||
16875 | ac_status=$? | ||
16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16877 | (exit $ac_status); }; }; then | ||
16878 | ac_lo=$ac_mid; break | ||
16879 | else | ||
16880 | echo "$as_me: failed program was:" >&5 | ||
16881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16882 | |||
16883 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16884 | if test $ac_mid -le $ac_hi; then | ||
16885 | ac_lo= ac_hi= | ||
16886 | break | ||
16887 | fi | ||
16888 | ac_mid=`expr 2 '*' $ac_mid` | ||
16889 | fi | ||
16890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16891 | done | ||
16892 | else | ||
16893 | echo "$as_me: failed program was:" >&5 | ||
16894 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16895 | |||
16896 | ac_lo= ac_hi= | ||
16897 | fi | ||
16898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16899 | fi | ||
16900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16901 | # Binary search between lo and hi bounds. | ||
16902 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16903 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16904 | cat >conftest.$ac_ext <<_ACEOF | ||
16905 | /* confdefs.h. */ | ||
16906 | _ACEOF | ||
16907 | cat confdefs.h >>conftest.$ac_ext | ||
16908 | cat >>conftest.$ac_ext <<_ACEOF | ||
16909 | /* end confdefs.h. */ | ||
16910 | $ac_includes_default | ||
16911 | int | ||
16912 | main () | ||
16913 | { | ||
16914 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
16915 | test_array [0] = 0 | ||
16916 | |||
16917 | ; | ||
16918 | return 0; | ||
16919 | } | ||
16920 | _ACEOF | ||
16921 | rm -f conftest.$ac_objext | ||
16922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16923 | (eval $ac_compile) 2>conftest.er1 | ||
16924 | ac_status=$? | ||
16925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16926 | rm -f conftest.er1 | ||
16927 | cat conftest.err >&5 | ||
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16929 | (exit $ac_status); } && | ||
16930 | { ac_try='test -z "$ac_c_werror_flag" | ||
16931 | || test ! -s conftest.err' | ||
16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16933 | (eval $ac_try) 2>&5 | ||
16934 | ac_status=$? | ||
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16936 | (exit $ac_status); }; } && | ||
16937 | { ac_try='test -s conftest.$ac_objext' | ||
16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16939 | (eval $ac_try) 2>&5 | ||
16940 | ac_status=$? | ||
16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16942 | (exit $ac_status); }; }; then | ||
16943 | ac_hi=$ac_mid | ||
16944 | else | ||
16945 | echo "$as_me: failed program was:" >&5 | ||
16946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16947 | |||
16948 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16949 | fi | ||
16950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16951 | done | ||
16952 | case $ac_lo in | ||
16953 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
16954 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
16955 | See \`config.log' for more details." >&5 | ||
16956 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
16957 | See \`config.log' for more details." >&2;} | ||
16958 | { (exit 1); exit 1; }; } ;; | ||
16959 | esac | ||
16960 | else | ||
16961 | if test "$cross_compiling" = yes; then | ||
16962 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16963 | See \`config.log' for more details." >&5 | ||
16964 | echo "$as_me: error: cannot run test program while cross compiling | ||
16965 | See \`config.log' for more details." >&2;} | ||
16966 | { (exit 1); exit 1; }; } | ||
16967 | else | ||
16968 | cat >conftest.$ac_ext <<_ACEOF | ||
16969 | /* confdefs.h. */ | ||
16970 | _ACEOF | ||
16971 | cat confdefs.h >>conftest.$ac_ext | ||
16972 | cat >>conftest.$ac_ext <<_ACEOF | ||
16973 | /* end confdefs.h. */ | ||
16974 | $ac_includes_default | ||
16975 | long longval () { return (long) (sizeof (char)); } | ||
16976 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
16977 | #include <stdio.h> | ||
16978 | #include <stdlib.h> | ||
16979 | int | ||
16980 | main () | ||
16981 | { | ||
16982 | |||
16983 | FILE *f = fopen ("conftest.val", "w"); | ||
16984 | if (! f) | ||
16985 | exit (1); | ||
16986 | if (((long) (sizeof (char))) < 0) | ||
16987 | { | ||
16988 | long i = longval (); | ||
16989 | if (i != ((long) (sizeof (char)))) | ||
16990 | exit (1); | ||
16991 | fprintf (f, "%ld\n", i); | ||
16992 | } | ||
16993 | else | ||
16994 | { | ||
16995 | unsigned long i = ulongval (); | ||
16996 | if (i != ((long) (sizeof (char)))) | ||
16997 | exit (1); | ||
16998 | fprintf (f, "%lu\n", i); | ||
16999 | } | ||
17000 | exit (ferror (f) || fclose (f) != 0); | ||
17001 | |||
17002 | ; | ||
17003 | return 0; | ||
17004 | } | ||
17005 | _ACEOF | ||
17006 | rm -f conftest$ac_exeext | ||
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17008 | (eval $ac_link) 2>&5 | ||
17009 | ac_status=$? | ||
17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17013 | (eval $ac_try) 2>&5 | ||
17014 | ac_status=$? | ||
17015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17016 | (exit $ac_status); }; }; then | ||
17017 | ac_cv_sizeof_char=`cat conftest.val` | ||
17018 | else | ||
17019 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17020 | echo "$as_me: failed program was:" >&5 | ||
17021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17022 | |||
17023 | ( exit $ac_status ) | ||
17024 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
17025 | See \`config.log' for more details." >&5 | ||
17026 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
17027 | See \`config.log' for more details." >&2;} | ||
17028 | { (exit 1); exit 1; }; } | ||
17029 | fi | ||
17030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17031 | fi | ||
17032 | fi | ||
17033 | rm -f conftest.val | ||
17034 | else | ||
17035 | ac_cv_sizeof_char=0 | ||
17036 | fi | ||
17037 | fi | ||
17038 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
17039 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
17040 | cat >>confdefs.h <<_ACEOF | ||
17041 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
17042 | _ACEOF | ||
17043 | |||
17044 | |||
17045 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
17046 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
17047 | if test "${ac_cv_type_short_int+set}" = set; then | ||
17048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17049 | else | ||
17050 | cat >conftest.$ac_ext <<_ACEOF | ||
17051 | /* confdefs.h. */ | ||
17052 | _ACEOF | ||
17053 | cat confdefs.h >>conftest.$ac_ext | ||
17054 | cat >>conftest.$ac_ext <<_ACEOF | ||
17055 | /* end confdefs.h. */ | ||
17056 | $ac_includes_default | ||
17057 | int | ||
17058 | main () | ||
17059 | { | ||
17060 | if ((short int *) 0) | ||
17061 | return 0; | ||
17062 | if (sizeof (short int)) | ||
17063 | return 0; | ||
17064 | ; | ||
17065 | return 0; | ||
17066 | } | ||
17067 | _ACEOF | ||
17068 | rm -f conftest.$ac_objext | ||
17069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17070 | (eval $ac_compile) 2>conftest.er1 | ||
17071 | ac_status=$? | ||
17072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17073 | rm -f conftest.er1 | ||
17074 | cat conftest.err >&5 | ||
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17076 | (exit $ac_status); } && | ||
17077 | { ac_try='test -z "$ac_c_werror_flag" | ||
17078 | || test ! -s conftest.err' | ||
17079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17080 | (eval $ac_try) 2>&5 | ||
17081 | ac_status=$? | ||
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17083 | (exit $ac_status); }; } && | ||
17084 | { ac_try='test -s conftest.$ac_objext' | ||
17085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17086 | (eval $ac_try) 2>&5 | ||
17087 | ac_status=$? | ||
17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17089 | (exit $ac_status); }; }; then | ||
17090 | ac_cv_type_short_int=yes | ||
17091 | else | ||
17092 | echo "$as_me: failed program was:" >&5 | ||
17093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17094 | |||
17095 | ac_cv_type_short_int=no | ||
17096 | fi | ||
17097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17098 | fi | ||
17099 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
17100 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
17101 | |||
17102 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
17103 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
17104 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
17105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17106 | else | ||
17107 | if test "$ac_cv_type_short_int" = yes; then | ||
17108 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
17109 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17110 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17111 | # This bug is HP SR number 8606223364. | ||
17112 | if test "$cross_compiling" = yes; then | ||
17113 | # Depending upon the size, compute the lo and hi bounds. | ||
17114 | cat >conftest.$ac_ext <<_ACEOF | ||
17115 | /* confdefs.h. */ | ||
17116 | _ACEOF | ||
17117 | cat confdefs.h >>conftest.$ac_ext | ||
17118 | cat >>conftest.$ac_ext <<_ACEOF | ||
17119 | /* end confdefs.h. */ | ||
17120 | $ac_includes_default | ||
17121 | int | ||
17122 | main () | ||
17123 | { | ||
17124 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
17125 | test_array [0] = 0 | ||
17126 | |||
17127 | ; | ||
17128 | return 0; | ||
17129 | } | ||
17130 | _ACEOF | ||
17131 | rm -f conftest.$ac_objext | ||
17132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17133 | (eval $ac_compile) 2>conftest.er1 | ||
17134 | ac_status=$? | ||
17135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17136 | rm -f conftest.er1 | ||
17137 | cat conftest.err >&5 | ||
17138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17139 | (exit $ac_status); } && | ||
17140 | { ac_try='test -z "$ac_c_werror_flag" | ||
17141 | || test ! -s conftest.err' | ||
17142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17143 | (eval $ac_try) 2>&5 | ||
17144 | ac_status=$? | ||
17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17146 | (exit $ac_status); }; } && | ||
17147 | { ac_try='test -s conftest.$ac_objext' | ||
17148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17149 | (eval $ac_try) 2>&5 | ||
17150 | ac_status=$? | ||
17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17152 | (exit $ac_status); }; }; then | ||
17153 | ac_lo=0 ac_mid=0 | ||
17154 | while :; do | ||
17155 | cat >conftest.$ac_ext <<_ACEOF | ||
17156 | /* confdefs.h. */ | ||
17157 | _ACEOF | ||
17158 | cat confdefs.h >>conftest.$ac_ext | ||
17159 | cat >>conftest.$ac_ext <<_ACEOF | ||
17160 | /* end confdefs.h. */ | ||
17161 | $ac_includes_default | ||
17162 | int | ||
17163 | main () | ||
17164 | { | ||
17165 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
17166 | test_array [0] = 0 | ||
17167 | |||
17168 | ; | ||
17169 | return 0; | ||
17170 | } | ||
17171 | _ACEOF | ||
17172 | rm -f conftest.$ac_objext | ||
17173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17174 | (eval $ac_compile) 2>conftest.er1 | ||
17175 | ac_status=$? | ||
17176 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17177 | rm -f conftest.er1 | ||
17178 | cat conftest.err >&5 | ||
17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17180 | (exit $ac_status); } && | ||
17181 | { ac_try='test -z "$ac_c_werror_flag" | ||
17182 | || test ! -s conftest.err' | ||
17183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17184 | (eval $ac_try) 2>&5 | ||
17185 | ac_status=$? | ||
17186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17187 | (exit $ac_status); }; } && | ||
17188 | { ac_try='test -s conftest.$ac_objext' | ||
17189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17190 | (eval $ac_try) 2>&5 | ||
17191 | ac_status=$? | ||
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17193 | (exit $ac_status); }; }; then | ||
17194 | ac_hi=$ac_mid; break | ||
17195 | else | ||
17196 | echo "$as_me: failed program was:" >&5 | ||
17197 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17198 | |||
17199 | ac_lo=`expr $ac_mid + 1` | ||
17200 | if test $ac_lo -le $ac_mid; then | ||
17201 | ac_lo= ac_hi= | ||
17202 | break | ||
17203 | fi | ||
17204 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17205 | fi | ||
17206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17207 | done | ||
17208 | else | ||
17209 | echo "$as_me: failed program was:" >&5 | ||
17210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17211 | |||
17212 | cat >conftest.$ac_ext <<_ACEOF | ||
17213 | /* confdefs.h. */ | ||
17214 | _ACEOF | ||
17215 | cat confdefs.h >>conftest.$ac_ext | ||
17216 | cat >>conftest.$ac_ext <<_ACEOF | ||
17217 | /* end confdefs.h. */ | ||
17218 | $ac_includes_default | ||
17219 | int | ||
17220 | main () | ||
17221 | { | ||
17222 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
17223 | test_array [0] = 0 | ||
17224 | |||
17225 | ; | ||
17226 | return 0; | ||
17227 | } | ||
17228 | _ACEOF | ||
17229 | rm -f conftest.$ac_objext | ||
17230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17231 | (eval $ac_compile) 2>conftest.er1 | ||
17232 | ac_status=$? | ||
17233 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17234 | rm -f conftest.er1 | ||
17235 | cat conftest.err >&5 | ||
17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17237 | (exit $ac_status); } && | ||
17238 | { ac_try='test -z "$ac_c_werror_flag" | ||
17239 | || test ! -s conftest.err' | ||
17240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17241 | (eval $ac_try) 2>&5 | ||
17242 | ac_status=$? | ||
17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17244 | (exit $ac_status); }; } && | ||
17245 | { ac_try='test -s conftest.$ac_objext' | ||
17246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17247 | (eval $ac_try) 2>&5 | ||
17248 | ac_status=$? | ||
17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17250 | (exit $ac_status); }; }; then | ||
17251 | ac_hi=-1 ac_mid=-1 | ||
17252 | while :; do | ||
17253 | cat >conftest.$ac_ext <<_ACEOF | ||
17254 | /* confdefs.h. */ | ||
17255 | _ACEOF | ||
17256 | cat confdefs.h >>conftest.$ac_ext | ||
17257 | cat >>conftest.$ac_ext <<_ACEOF | ||
17258 | /* end confdefs.h. */ | ||
17259 | $ac_includes_default | ||
17260 | int | ||
17261 | main () | ||
17262 | { | ||
17263 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
17264 | test_array [0] = 0 | ||
17265 | |||
17266 | ; | ||
17267 | return 0; | ||
17268 | } | ||
17269 | _ACEOF | ||
17270 | rm -f conftest.$ac_objext | ||
17271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17272 | (eval $ac_compile) 2>conftest.er1 | ||
17273 | ac_status=$? | ||
17274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17275 | rm -f conftest.er1 | ||
17276 | cat conftest.err >&5 | ||
17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17278 | (exit $ac_status); } && | ||
17279 | { ac_try='test -z "$ac_c_werror_flag" | ||
17280 | || test ! -s conftest.err' | ||
17281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17282 | (eval $ac_try) 2>&5 | ||
17283 | ac_status=$? | ||
17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17285 | (exit $ac_status); }; } && | ||
17286 | { ac_try='test -s conftest.$ac_objext' | ||
17287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17288 | (eval $ac_try) 2>&5 | ||
17289 | ac_status=$? | ||
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17291 | (exit $ac_status); }; }; then | ||
17292 | ac_lo=$ac_mid; break | ||
17293 | else | ||
17294 | echo "$as_me: failed program was:" >&5 | ||
17295 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17296 | |||
17297 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17298 | if test $ac_mid -le $ac_hi; then | ||
17299 | ac_lo= ac_hi= | ||
17300 | break | ||
17301 | fi | ||
17302 | ac_mid=`expr 2 '*' $ac_mid` | ||
17303 | fi | ||
17304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17305 | done | ||
17306 | else | ||
17307 | echo "$as_me: failed program was:" >&5 | ||
17308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17309 | |||
17310 | ac_lo= ac_hi= | ||
17311 | fi | ||
17312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17313 | fi | ||
17314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17315 | # Binary search between lo and hi bounds. | ||
17316 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17317 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17318 | cat >conftest.$ac_ext <<_ACEOF | ||
17319 | /* confdefs.h. */ | ||
17320 | _ACEOF | ||
17321 | cat confdefs.h >>conftest.$ac_ext | ||
17322 | cat >>conftest.$ac_ext <<_ACEOF | ||
17323 | /* end confdefs.h. */ | ||
17324 | $ac_includes_default | ||
17325 | int | ||
17326 | main () | ||
17327 | { | ||
17328 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
17329 | test_array [0] = 0 | ||
17330 | |||
17331 | ; | ||
17332 | return 0; | ||
17333 | } | ||
17334 | _ACEOF | ||
17335 | rm -f conftest.$ac_objext | ||
17336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17337 | (eval $ac_compile) 2>conftest.er1 | ||
17338 | ac_status=$? | ||
17339 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17340 | rm -f conftest.er1 | ||
17341 | cat conftest.err >&5 | ||
17342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17343 | (exit $ac_status); } && | ||
17344 | { ac_try='test -z "$ac_c_werror_flag" | ||
17345 | || test ! -s conftest.err' | ||
17346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17347 | (eval $ac_try) 2>&5 | ||
17348 | ac_status=$? | ||
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17350 | (exit $ac_status); }; } && | ||
17351 | { ac_try='test -s conftest.$ac_objext' | ||
17352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17353 | (eval $ac_try) 2>&5 | ||
17354 | ac_status=$? | ||
17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17356 | (exit $ac_status); }; }; then | ||
17357 | ac_hi=$ac_mid | ||
17358 | else | ||
17359 | echo "$as_me: failed program was:" >&5 | ||
17360 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17361 | |||
17362 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17363 | fi | ||
17364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17365 | done | ||
17366 | case $ac_lo in | ||
17367 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
17368 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
17369 | See \`config.log' for more details." >&5 | ||
17370 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
17371 | See \`config.log' for more details." >&2;} | ||
17372 | { (exit 1); exit 1; }; } ;; | ||
17373 | esac | ||
17374 | else | ||
17375 | if test "$cross_compiling" = yes; then | ||
17376 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17377 | See \`config.log' for more details." >&5 | ||
17378 | echo "$as_me: error: cannot run test program while cross compiling | ||
17379 | See \`config.log' for more details." >&2;} | ||
17380 | { (exit 1); exit 1; }; } | ||
17381 | else | ||
17382 | cat >conftest.$ac_ext <<_ACEOF | ||
17383 | /* confdefs.h. */ | ||
17384 | _ACEOF | ||
17385 | cat confdefs.h >>conftest.$ac_ext | ||
17386 | cat >>conftest.$ac_ext <<_ACEOF | ||
17387 | /* end confdefs.h. */ | ||
17388 | $ac_includes_default | ||
17389 | long longval () { return (long) (sizeof (short int)); } | ||
17390 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
17391 | #include <stdio.h> | ||
17392 | #include <stdlib.h> | ||
17393 | int | ||
17394 | main () | ||
17395 | { | ||
17396 | |||
17397 | FILE *f = fopen ("conftest.val", "w"); | ||
17398 | if (! f) | ||
17399 | exit (1); | ||
17400 | if (((long) (sizeof (short int))) < 0) | ||
17401 | { | ||
17402 | long i = longval (); | ||
17403 | if (i != ((long) (sizeof (short int)))) | ||
17404 | exit (1); | ||
17405 | fprintf (f, "%ld\n", i); | ||
17406 | } | ||
17407 | else | ||
17408 | { | ||
17409 | unsigned long i = ulongval (); | ||
17410 | if (i != ((long) (sizeof (short int)))) | ||
17411 | exit (1); | ||
17412 | fprintf (f, "%lu\n", i); | ||
17413 | } | ||
17414 | exit (ferror (f) || fclose (f) != 0); | ||
17415 | |||
17416 | ; | ||
17417 | return 0; | ||
17418 | } | ||
17419 | _ACEOF | ||
17420 | rm -f conftest$ac_exeext | ||
17421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17422 | (eval $ac_link) 2>&5 | ||
17423 | ac_status=$? | ||
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17427 | (eval $ac_try) 2>&5 | ||
17428 | ac_status=$? | ||
17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17430 | (exit $ac_status); }; }; then | ||
17431 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
17432 | else | ||
17433 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17434 | echo "$as_me: failed program was:" >&5 | ||
17435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17436 | |||
17437 | ( exit $ac_status ) | ||
17438 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
17439 | See \`config.log' for more details." >&5 | ||
17440 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
17441 | See \`config.log' for more details." >&2;} | ||
17442 | { (exit 1); exit 1; }; } | ||
17443 | fi | ||
17444 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17445 | fi | ||
17446 | fi | ||
17447 | rm -f conftest.val | ||
17448 | else | ||
17449 | ac_cv_sizeof_short_int=0 | ||
17450 | fi | ||
17451 | fi | ||
17452 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
17453 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
17454 | cat >>confdefs.h <<_ACEOF | ||
17455 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
17456 | _ACEOF | ||
17457 | |||
17458 | |||
17459 | echo "$as_me:$LINENO: checking for int" >&5 | ||
17460 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
17461 | if test "${ac_cv_type_int+set}" = set; then | ||
17462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17463 | else | ||
17464 | cat >conftest.$ac_ext <<_ACEOF | ||
17465 | /* confdefs.h. */ | ||
17466 | _ACEOF | ||
17467 | cat confdefs.h >>conftest.$ac_ext | ||
17468 | cat >>conftest.$ac_ext <<_ACEOF | ||
17469 | /* end confdefs.h. */ | ||
17470 | $ac_includes_default | ||
17471 | int | ||
17472 | main () | ||
17473 | { | ||
17474 | if ((int *) 0) | ||
17475 | return 0; | ||
17476 | if (sizeof (int)) | ||
17477 | return 0; | ||
17478 | ; | ||
17479 | return 0; | ||
17480 | } | ||
17481 | _ACEOF | ||
17482 | rm -f conftest.$ac_objext | ||
17483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17484 | (eval $ac_compile) 2>conftest.er1 | ||
17485 | ac_status=$? | ||
17486 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17487 | rm -f conftest.er1 | ||
17488 | cat conftest.err >&5 | ||
17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17490 | (exit $ac_status); } && | ||
17491 | { ac_try='test -z "$ac_c_werror_flag" | ||
17492 | || test ! -s conftest.err' | ||
17493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17494 | (eval $ac_try) 2>&5 | ||
17495 | ac_status=$? | ||
17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17497 | (exit $ac_status); }; } && | ||
17498 | { ac_try='test -s conftest.$ac_objext' | ||
17499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17500 | (eval $ac_try) 2>&5 | ||
17501 | ac_status=$? | ||
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17503 | (exit $ac_status); }; }; then | ||
17504 | ac_cv_type_int=yes | ||
17505 | else | ||
17506 | echo "$as_me: failed program was:" >&5 | ||
17507 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17508 | |||
17509 | ac_cv_type_int=no | ||
17510 | fi | ||
17511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17512 | fi | ||
17513 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
17514 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
17515 | |||
17516 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
17517 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
17518 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
17519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17520 | else | ||
17521 | if test "$ac_cv_type_int" = yes; then | ||
17522 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
17523 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17524 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17525 | # This bug is HP SR number 8606223364. | ||
17526 | if test "$cross_compiling" = yes; then | ||
17527 | # Depending upon the size, compute the lo and hi bounds. | ||
17528 | cat >conftest.$ac_ext <<_ACEOF | ||
17529 | /* confdefs.h. */ | ||
17530 | _ACEOF | ||
17531 | cat confdefs.h >>conftest.$ac_ext | ||
17532 | cat >>conftest.$ac_ext <<_ACEOF | ||
17533 | /* end confdefs.h. */ | ||
17534 | $ac_includes_default | ||
17535 | int | ||
17536 | main () | ||
17537 | { | ||
17538 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
17539 | test_array [0] = 0 | ||
17540 | |||
17541 | ; | ||
17542 | return 0; | ||
17543 | } | ||
17544 | _ACEOF | ||
17545 | rm -f conftest.$ac_objext | ||
17546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17547 | (eval $ac_compile) 2>conftest.er1 | ||
17548 | ac_status=$? | ||
17549 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17550 | rm -f conftest.er1 | ||
17551 | cat conftest.err >&5 | ||
17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17553 | (exit $ac_status); } && | ||
17554 | { ac_try='test -z "$ac_c_werror_flag" | ||
17555 | || test ! -s conftest.err' | ||
17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17557 | (eval $ac_try) 2>&5 | ||
17558 | ac_status=$? | ||
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17560 | (exit $ac_status); }; } && | ||
17561 | { ac_try='test -s conftest.$ac_objext' | ||
17562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17563 | (eval $ac_try) 2>&5 | ||
17564 | ac_status=$? | ||
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17566 | (exit $ac_status); }; }; then | ||
17567 | ac_lo=0 ac_mid=0 | ||
17568 | while :; do | ||
17569 | cat >conftest.$ac_ext <<_ACEOF | ||
17570 | /* confdefs.h. */ | ||
17571 | _ACEOF | ||
17572 | cat confdefs.h >>conftest.$ac_ext | ||
17573 | cat >>conftest.$ac_ext <<_ACEOF | ||
17574 | /* end confdefs.h. */ | ||
17575 | $ac_includes_default | ||
17576 | int | ||
17577 | main () | ||
17578 | { | ||
17579 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
17580 | test_array [0] = 0 | ||
17581 | |||
17582 | ; | ||
17583 | return 0; | ||
17584 | } | ||
17585 | _ACEOF | ||
17586 | rm -f conftest.$ac_objext | ||
17587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17588 | (eval $ac_compile) 2>conftest.er1 | ||
17589 | ac_status=$? | ||
17590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17591 | rm -f conftest.er1 | ||
17592 | cat conftest.err >&5 | ||
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17594 | (exit $ac_status); } && | ||
17595 | { ac_try='test -z "$ac_c_werror_flag" | ||
17596 | || test ! -s conftest.err' | ||
17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17598 | (eval $ac_try) 2>&5 | ||
17599 | ac_status=$? | ||
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17601 | (exit $ac_status); }; } && | ||
17602 | { ac_try='test -s conftest.$ac_objext' | ||
17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17604 | (eval $ac_try) 2>&5 | ||
17605 | ac_status=$? | ||
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17607 | (exit $ac_status); }; }; then | ||
17608 | ac_hi=$ac_mid; break | ||
17609 | else | ||
17610 | echo "$as_me: failed program was:" >&5 | ||
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17612 | |||
17613 | ac_lo=`expr $ac_mid + 1` | ||
17614 | if test $ac_lo -le $ac_mid; then | ||
17615 | ac_lo= ac_hi= | ||
17616 | break | ||
17617 | fi | ||
17618 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17619 | fi | ||
17620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17621 | done | ||
17622 | else | ||
17623 | echo "$as_me: failed program was:" >&5 | ||
17624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17625 | |||
17626 | cat >conftest.$ac_ext <<_ACEOF | ||
17627 | /* confdefs.h. */ | ||
17628 | _ACEOF | ||
17629 | cat confdefs.h >>conftest.$ac_ext | ||
17630 | cat >>conftest.$ac_ext <<_ACEOF | ||
17631 | /* end confdefs.h. */ | ||
17632 | $ac_includes_default | ||
17633 | int | ||
17634 | main () | ||
17635 | { | ||
17636 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
17637 | test_array [0] = 0 | ||
17638 | |||
17639 | ; | ||
17640 | return 0; | ||
17641 | } | ||
17642 | _ACEOF | ||
17643 | rm -f conftest.$ac_objext | ||
17644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17645 | (eval $ac_compile) 2>conftest.er1 | ||
17646 | ac_status=$? | ||
17647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17648 | rm -f conftest.er1 | ||
17649 | cat conftest.err >&5 | ||
17650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17651 | (exit $ac_status); } && | ||
17652 | { ac_try='test -z "$ac_c_werror_flag" | ||
17653 | || test ! -s conftest.err' | ||
17654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17655 | (eval $ac_try) 2>&5 | ||
17656 | ac_status=$? | ||
17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17658 | (exit $ac_status); }; } && | ||
17659 | { ac_try='test -s conftest.$ac_objext' | ||
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17661 | (eval $ac_try) 2>&5 | ||
17662 | ac_status=$? | ||
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17664 | (exit $ac_status); }; }; then | ||
17665 | ac_hi=-1 ac_mid=-1 | ||
17666 | while :; do | ||
17667 | cat >conftest.$ac_ext <<_ACEOF | ||
17668 | /* confdefs.h. */ | ||
17669 | _ACEOF | ||
17670 | cat confdefs.h >>conftest.$ac_ext | ||
17671 | cat >>conftest.$ac_ext <<_ACEOF | ||
17672 | /* end confdefs.h. */ | ||
17673 | $ac_includes_default | ||
17674 | int | ||
17675 | main () | ||
17676 | { | ||
17677 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
17678 | test_array [0] = 0 | ||
17679 | |||
17680 | ; | ||
17681 | return 0; | ||
17682 | } | ||
17683 | _ACEOF | ||
17684 | rm -f conftest.$ac_objext | ||
17685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17686 | (eval $ac_compile) 2>conftest.er1 | ||
17687 | ac_status=$? | ||
17688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17689 | rm -f conftest.er1 | ||
17690 | cat conftest.err >&5 | ||
17691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17692 | (exit $ac_status); } && | ||
17693 | { ac_try='test -z "$ac_c_werror_flag" | ||
17694 | || test ! -s conftest.err' | ||
17695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17696 | (eval $ac_try) 2>&5 | ||
17697 | ac_status=$? | ||
17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17699 | (exit $ac_status); }; } && | ||
17700 | { ac_try='test -s conftest.$ac_objext' | ||
17701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17702 | (eval $ac_try) 2>&5 | ||
17703 | ac_status=$? | ||
17704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17705 | (exit $ac_status); }; }; then | ||
17706 | ac_lo=$ac_mid; break | ||
17707 | else | ||
17708 | echo "$as_me: failed program was:" >&5 | ||
17709 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17710 | |||
17711 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17712 | if test $ac_mid -le $ac_hi; then | ||
17713 | ac_lo= ac_hi= | ||
17714 | break | ||
17715 | fi | ||
17716 | ac_mid=`expr 2 '*' $ac_mid` | ||
17717 | fi | ||
17718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17719 | done | ||
17720 | else | ||
17721 | echo "$as_me: failed program was:" >&5 | ||
17722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17723 | |||
17724 | ac_lo= ac_hi= | ||
17725 | fi | ||
17726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17727 | fi | ||
17728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17729 | # Binary search between lo and hi bounds. | ||
17730 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17731 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17732 | cat >conftest.$ac_ext <<_ACEOF | ||
17733 | /* confdefs.h. */ | ||
17734 | _ACEOF | ||
17735 | cat confdefs.h >>conftest.$ac_ext | ||
17736 | cat >>conftest.$ac_ext <<_ACEOF | ||
17737 | /* end confdefs.h. */ | ||
17738 | $ac_includes_default | ||
17739 | int | ||
17740 | main () | ||
17741 | { | ||
17742 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
17743 | test_array [0] = 0 | ||
17744 | |||
17745 | ; | ||
17746 | return 0; | ||
17747 | } | ||
17748 | _ACEOF | ||
17749 | rm -f conftest.$ac_objext | ||
17750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17751 | (eval $ac_compile) 2>conftest.er1 | ||
17752 | ac_status=$? | ||
17753 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17754 | rm -f conftest.er1 | ||
17755 | cat conftest.err >&5 | ||
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17757 | (exit $ac_status); } && | ||
17758 | { ac_try='test -z "$ac_c_werror_flag" | ||
17759 | || test ! -s conftest.err' | ||
17760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17761 | (eval $ac_try) 2>&5 | ||
17762 | ac_status=$? | ||
17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17764 | (exit $ac_status); }; } && | ||
17765 | { ac_try='test -s conftest.$ac_objext' | ||
17766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17767 | (eval $ac_try) 2>&5 | ||
17768 | ac_status=$? | ||
17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17770 | (exit $ac_status); }; }; then | ||
17771 | ac_hi=$ac_mid | ||
17772 | else | ||
17773 | echo "$as_me: failed program was:" >&5 | ||
17774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17775 | |||
17776 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17777 | fi | ||
17778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17779 | done | ||
17780 | case $ac_lo in | ||
17781 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
17782 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
17783 | See \`config.log' for more details." >&5 | ||
17784 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
17785 | See \`config.log' for more details." >&2;} | ||
17786 | { (exit 1); exit 1; }; } ;; | ||
17787 | esac | ||
17788 | else | ||
17789 | if test "$cross_compiling" = yes; then | ||
17790 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17791 | See \`config.log' for more details." >&5 | ||
17792 | echo "$as_me: error: cannot run test program while cross compiling | ||
17793 | See \`config.log' for more details." >&2;} | ||
17794 | { (exit 1); exit 1; }; } | ||
17795 | else | ||
17796 | cat >conftest.$ac_ext <<_ACEOF | ||
17797 | /* confdefs.h. */ | ||
17798 | _ACEOF | ||
17799 | cat confdefs.h >>conftest.$ac_ext | ||
17800 | cat >>conftest.$ac_ext <<_ACEOF | ||
17801 | /* end confdefs.h. */ | ||
17802 | $ac_includes_default | ||
17803 | long longval () { return (long) (sizeof (int)); } | ||
17804 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
17805 | #include <stdio.h> | ||
17806 | #include <stdlib.h> | ||
17807 | int | ||
17808 | main () | ||
17809 | { | ||
17810 | |||
17811 | FILE *f = fopen ("conftest.val", "w"); | ||
17812 | if (! f) | ||
17813 | exit (1); | ||
17814 | if (((long) (sizeof (int))) < 0) | ||
17815 | { | ||
17816 | long i = longval (); | ||
17817 | if (i != ((long) (sizeof (int)))) | ||
17818 | exit (1); | ||
17819 | fprintf (f, "%ld\n", i); | ||
17820 | } | ||
17821 | else | ||
17822 | { | ||
17823 | unsigned long i = ulongval (); | ||
17824 | if (i != ((long) (sizeof (int)))) | ||
17825 | exit (1); | ||
17826 | fprintf (f, "%lu\n", i); | ||
17827 | } | ||
17828 | exit (ferror (f) || fclose (f) != 0); | ||
17829 | |||
17830 | ; | ||
17831 | return 0; | ||
17832 | } | ||
17833 | _ACEOF | ||
17834 | rm -f conftest$ac_exeext | ||
17835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17836 | (eval $ac_link) 2>&5 | ||
17837 | ac_status=$? | ||
17838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17839 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17841 | (eval $ac_try) 2>&5 | ||
17842 | ac_status=$? | ||
17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17844 | (exit $ac_status); }; }; then | ||
17845 | ac_cv_sizeof_int=`cat conftest.val` | ||
17846 | else | ||
17847 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17848 | echo "$as_me: failed program was:" >&5 | ||
17849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17850 | |||
17851 | ( exit $ac_status ) | ||
17852 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
17853 | See \`config.log' for more details." >&5 | ||
17854 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
17855 | See \`config.log' for more details." >&2;} | ||
17856 | { (exit 1); exit 1; }; } | ||
17857 | fi | ||
17858 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17859 | fi | ||
17860 | fi | ||
17861 | rm -f conftest.val | ||
17862 | else | ||
17863 | ac_cv_sizeof_int=0 | ||
17864 | fi | ||
17865 | fi | ||
17866 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
17867 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
17868 | cat >>confdefs.h <<_ACEOF | ||
17869 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
17870 | _ACEOF | ||
17871 | |||
17872 | |||
17873 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
17874 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
17875 | if test "${ac_cv_type_long_int+set}" = set; then | ||
17876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17877 | else | ||
17878 | cat >conftest.$ac_ext <<_ACEOF | ||
17879 | /* confdefs.h. */ | ||
17880 | _ACEOF | ||
17881 | cat confdefs.h >>conftest.$ac_ext | ||
17882 | cat >>conftest.$ac_ext <<_ACEOF | ||
17883 | /* end confdefs.h. */ | ||
17884 | $ac_includes_default | ||
17885 | int | ||
17886 | main () | ||
17887 | { | ||
17888 | if ((long int *) 0) | ||
17889 | return 0; | ||
17890 | if (sizeof (long int)) | ||
17891 | return 0; | ||
17892 | ; | ||
17893 | return 0; | ||
17894 | } | ||
17895 | _ACEOF | ||
17896 | rm -f conftest.$ac_objext | ||
17897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17898 | (eval $ac_compile) 2>conftest.er1 | ||
17899 | ac_status=$? | ||
17900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17901 | rm -f conftest.er1 | ||
17902 | cat conftest.err >&5 | ||
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17904 | (exit $ac_status); } && | ||
17905 | { ac_try='test -z "$ac_c_werror_flag" | ||
17906 | || test ! -s conftest.err' | ||
17907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17908 | (eval $ac_try) 2>&5 | ||
17909 | ac_status=$? | ||
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17911 | (exit $ac_status); }; } && | ||
17912 | { ac_try='test -s conftest.$ac_objext' | ||
17913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17914 | (eval $ac_try) 2>&5 | ||
17915 | ac_status=$? | ||
17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17917 | (exit $ac_status); }; }; then | ||
17918 | ac_cv_type_long_int=yes | ||
17919 | else | ||
17920 | echo "$as_me: failed program was:" >&5 | ||
17921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17922 | |||
17923 | ac_cv_type_long_int=no | ||
17924 | fi | ||
17925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17926 | fi | ||
17927 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
17928 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
17929 | |||
17930 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
17931 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
17932 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
17933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17934 | else | ||
17935 | if test "$ac_cv_type_long_int" = yes; then | ||
17936 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
17937 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17938 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17939 | # This bug is HP SR number 8606223364. | ||
17940 | if test "$cross_compiling" = yes; then | ||
17941 | # Depending upon the size, compute the lo and hi bounds. | ||
17942 | cat >conftest.$ac_ext <<_ACEOF | ||
17943 | /* confdefs.h. */ | ||
17944 | _ACEOF | ||
17945 | cat confdefs.h >>conftest.$ac_ext | ||
17946 | cat >>conftest.$ac_ext <<_ACEOF | ||
17947 | /* end confdefs.h. */ | ||
17948 | $ac_includes_default | ||
17949 | int | ||
17950 | main () | ||
17951 | { | ||
17952 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
17953 | test_array [0] = 0 | ||
17954 | |||
17955 | ; | ||
17956 | return 0; | ||
17957 | } | ||
17958 | _ACEOF | ||
17959 | rm -f conftest.$ac_objext | ||
17960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17961 | (eval $ac_compile) 2>conftest.er1 | ||
17962 | ac_status=$? | ||
17963 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17964 | rm -f conftest.er1 | ||
17965 | cat conftest.err >&5 | ||
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17967 | (exit $ac_status); } && | ||
17968 | { ac_try='test -z "$ac_c_werror_flag" | ||
17969 | || test ! -s conftest.err' | ||
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17971 | (eval $ac_try) 2>&5 | ||
17972 | ac_status=$? | ||
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17974 | (exit $ac_status); }; } && | ||
17975 | { ac_try='test -s conftest.$ac_objext' | ||
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17977 | (eval $ac_try) 2>&5 | ||
17978 | ac_status=$? | ||
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17980 | (exit $ac_status); }; }; then | ||
17981 | ac_lo=0 ac_mid=0 | ||
17982 | while :; do | ||
17983 | cat >conftest.$ac_ext <<_ACEOF | ||
17984 | /* confdefs.h. */ | ||
17985 | _ACEOF | ||
17986 | cat confdefs.h >>conftest.$ac_ext | ||
17987 | cat >>conftest.$ac_ext <<_ACEOF | ||
17988 | /* end confdefs.h. */ | ||
17989 | $ac_includes_default | ||
17990 | int | ||
17991 | main () | ||
17992 | { | ||
17993 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
17994 | test_array [0] = 0 | ||
17995 | |||
17996 | ; | ||
17997 | return 0; | ||
17998 | } | ||
17999 | _ACEOF | ||
18000 | rm -f conftest.$ac_objext | ||
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18002 | (eval $ac_compile) 2>conftest.er1 | ||
18003 | ac_status=$? | ||
18004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18005 | rm -f conftest.er1 | ||
18006 | cat conftest.err >&5 | ||
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18008 | (exit $ac_status); } && | ||
18009 | { ac_try='test -z "$ac_c_werror_flag" | ||
18010 | || test ! -s conftest.err' | ||
18011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18012 | (eval $ac_try) 2>&5 | ||
18013 | ac_status=$? | ||
18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18015 | (exit $ac_status); }; } && | ||
18016 | { ac_try='test -s conftest.$ac_objext' | ||
18017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18018 | (eval $ac_try) 2>&5 | ||
18019 | ac_status=$? | ||
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18021 | (exit $ac_status); }; }; then | ||
18022 | ac_hi=$ac_mid; break | ||
18023 | else | ||
18024 | echo "$as_me: failed program was:" >&5 | ||
18025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18026 | |||
18027 | ac_lo=`expr $ac_mid + 1` | ||
18028 | if test $ac_lo -le $ac_mid; then | ||
18029 | ac_lo= ac_hi= | ||
18030 | break | ||
18031 | fi | ||
18032 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18033 | fi | ||
18034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18035 | done | ||
18036 | else | ||
18037 | echo "$as_me: failed program was:" >&5 | ||
18038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18039 | |||
18040 | cat >conftest.$ac_ext <<_ACEOF | ||
18041 | /* confdefs.h. */ | ||
18042 | _ACEOF | ||
18043 | cat confdefs.h >>conftest.$ac_ext | ||
18044 | cat >>conftest.$ac_ext <<_ACEOF | ||
18045 | /* end confdefs.h. */ | ||
18046 | $ac_includes_default | ||
18047 | int | ||
18048 | main () | ||
18049 | { | ||
18050 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
18051 | test_array [0] = 0 | ||
18052 | |||
18053 | ; | ||
18054 | return 0; | ||
18055 | } | ||
18056 | _ACEOF | ||
18057 | rm -f conftest.$ac_objext | ||
18058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18059 | (eval $ac_compile) 2>conftest.er1 | ||
18060 | ac_status=$? | ||
18061 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18062 | rm -f conftest.er1 | ||
18063 | cat conftest.err >&5 | ||
18064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18065 | (exit $ac_status); } && | ||
18066 | { ac_try='test -z "$ac_c_werror_flag" | ||
18067 | || test ! -s conftest.err' | ||
18068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18069 | (eval $ac_try) 2>&5 | ||
18070 | ac_status=$? | ||
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18072 | (exit $ac_status); }; } && | ||
18073 | { ac_try='test -s conftest.$ac_objext' | ||
18074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18075 | (eval $ac_try) 2>&5 | ||
18076 | ac_status=$? | ||
18077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18078 | (exit $ac_status); }; }; then | ||
18079 | ac_hi=-1 ac_mid=-1 | ||
18080 | while :; do | ||
18081 | cat >conftest.$ac_ext <<_ACEOF | ||
18082 | /* confdefs.h. */ | ||
18083 | _ACEOF | ||
18084 | cat confdefs.h >>conftest.$ac_ext | ||
18085 | cat >>conftest.$ac_ext <<_ACEOF | ||
18086 | /* end confdefs.h. */ | ||
18087 | $ac_includes_default | ||
18088 | int | ||
18089 | main () | ||
18090 | { | ||
18091 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
18092 | test_array [0] = 0 | ||
18093 | |||
18094 | ; | ||
18095 | return 0; | ||
18096 | } | ||
18097 | _ACEOF | ||
18098 | rm -f conftest.$ac_objext | ||
18099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18100 | (eval $ac_compile) 2>conftest.er1 | ||
18101 | ac_status=$? | ||
18102 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18103 | rm -f conftest.er1 | ||
18104 | cat conftest.err >&5 | ||
18105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18106 | (exit $ac_status); } && | ||
18107 | { ac_try='test -z "$ac_c_werror_flag" | ||
18108 | || test ! -s conftest.err' | ||
18109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18110 | (eval $ac_try) 2>&5 | ||
18111 | ac_status=$? | ||
18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18113 | (exit $ac_status); }; } && | ||
18114 | { ac_try='test -s conftest.$ac_objext' | ||
18115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18116 | (eval $ac_try) 2>&5 | ||
18117 | ac_status=$? | ||
18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18119 | (exit $ac_status); }; }; then | ||
18120 | ac_lo=$ac_mid; break | ||
18121 | else | ||
18122 | echo "$as_me: failed program was:" >&5 | ||
18123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18124 | |||
18125 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
18126 | if test $ac_mid -le $ac_hi; then | ||
18127 | ac_lo= ac_hi= | ||
18128 | break | ||
18129 | fi | ||
18130 | ac_mid=`expr 2 '*' $ac_mid` | ||
18131 | fi | ||
18132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18133 | done | ||
18134 | else | ||
18135 | echo "$as_me: failed program was:" >&5 | ||
18136 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18137 | |||
18138 | ac_lo= ac_hi= | ||
18139 | fi | ||
18140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18141 | fi | ||
18142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18143 | # Binary search between lo and hi bounds. | ||
18144 | while test "x$ac_lo" != "x$ac_hi"; do | ||
18145 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
18146 | cat >conftest.$ac_ext <<_ACEOF | ||
18147 | /* confdefs.h. */ | ||
18148 | _ACEOF | ||
18149 | cat confdefs.h >>conftest.$ac_ext | ||
18150 | cat >>conftest.$ac_ext <<_ACEOF | ||
18151 | /* end confdefs.h. */ | ||
18152 | $ac_includes_default | ||
18153 | int | ||
18154 | main () | ||
18155 | { | ||
18156 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
18157 | test_array [0] = 0 | ||
18158 | |||
18159 | ; | ||
18160 | return 0; | ||
18161 | } | ||
18162 | _ACEOF | ||
18163 | rm -f conftest.$ac_objext | ||
18164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18165 | (eval $ac_compile) 2>conftest.er1 | ||
18166 | ac_status=$? | ||
18167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18168 | rm -f conftest.er1 | ||
18169 | cat conftest.err >&5 | ||
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18171 | (exit $ac_status); } && | ||
18172 | { ac_try='test -z "$ac_c_werror_flag" | ||
18173 | || test ! -s conftest.err' | ||
18174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18175 | (eval $ac_try) 2>&5 | ||
18176 | ac_status=$? | ||
18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18178 | (exit $ac_status); }; } && | ||
18179 | { ac_try='test -s conftest.$ac_objext' | ||
18180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18181 | (eval $ac_try) 2>&5 | ||
18182 | ac_status=$? | ||
18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18184 | (exit $ac_status); }; }; then | ||
18185 | ac_hi=$ac_mid | ||
18186 | else | ||
18187 | echo "$as_me: failed program was:" >&5 | ||
18188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18189 | |||
18190 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
18191 | fi | ||
18192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18193 | done | ||
18194 | case $ac_lo in | ||
18195 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
18196 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
18197 | See \`config.log' for more details." >&5 | ||
18198 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
18199 | See \`config.log' for more details." >&2;} | ||
18200 | { (exit 1); exit 1; }; } ;; | ||
18201 | esac | ||
18202 | else | ||
18203 | if test "$cross_compiling" = yes; then | ||
18204 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
18205 | See \`config.log' for more details." >&5 | ||
18206 | echo "$as_me: error: cannot run test program while cross compiling | ||
18207 | See \`config.log' for more details." >&2;} | ||
18208 | { (exit 1); exit 1; }; } | ||
18209 | else | ||
18210 | cat >conftest.$ac_ext <<_ACEOF | ||
18211 | /* confdefs.h. */ | ||
18212 | _ACEOF | ||
18213 | cat confdefs.h >>conftest.$ac_ext | ||
18214 | cat >>conftest.$ac_ext <<_ACEOF | ||
18215 | /* end confdefs.h. */ | ||
18216 | $ac_includes_default | ||
18217 | long longval () { return (long) (sizeof (long int)); } | ||
18218 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
18219 | #include <stdio.h> | ||
18220 | #include <stdlib.h> | ||
18221 | int | ||
18222 | main () | ||
18223 | { | ||
18224 | |||
18225 | FILE *f = fopen ("conftest.val", "w"); | ||
18226 | if (! f) | ||
18227 | exit (1); | ||
18228 | if (((long) (sizeof (long int))) < 0) | ||
18229 | { | ||
18230 | long i = longval (); | ||
18231 | if (i != ((long) (sizeof (long int)))) | ||
18232 | exit (1); | ||
18233 | fprintf (f, "%ld\n", i); | ||
18234 | } | ||
18235 | else | ||
18236 | { | ||
18237 | unsigned long i = ulongval (); | ||
18238 | if (i != ((long) (sizeof (long int)))) | ||
18239 | exit (1); | ||
18240 | fprintf (f, "%lu\n", i); | ||
18241 | } | ||
18242 | exit (ferror (f) || fclose (f) != 0); | ||
18243 | |||
18244 | ; | ||
18245 | return 0; | ||
18246 | } | ||
18247 | _ACEOF | ||
18248 | rm -f conftest$ac_exeext | ||
18249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18250 | (eval $ac_link) 2>&5 | ||
18251 | ac_status=$? | ||
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18253 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18255 | (eval $ac_try) 2>&5 | ||
18256 | ac_status=$? | ||
18257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18258 | (exit $ac_status); }; }; then | ||
18259 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
18260 | else | ||
18261 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18262 | echo "$as_me: failed program was:" >&5 | ||
18263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18264 | |||
18265 | ( exit $ac_status ) | ||
18266 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
18267 | See \`config.log' for more details." >&5 | ||
18268 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
18269 | See \`config.log' for more details." >&2;} | ||
18270 | { (exit 1); exit 1; }; } | ||
18271 | fi | ||
18272 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18273 | fi | ||
18274 | fi | ||
18275 | rm -f conftest.val | ||
18276 | else | ||
18277 | ac_cv_sizeof_long_int=0 | ||
18278 | fi | ||
18279 | fi | ||
18280 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
18281 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
18282 | cat >>confdefs.h <<_ACEOF | ||
18283 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
18284 | _ACEOF | ||
18285 | |||
18286 | |||
18287 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
18288 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
18289 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
18290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18291 | else | ||
18292 | cat >conftest.$ac_ext <<_ACEOF | ||
18293 | /* confdefs.h. */ | ||
18294 | _ACEOF | ||
18295 | cat confdefs.h >>conftest.$ac_ext | ||
18296 | cat >>conftest.$ac_ext <<_ACEOF | ||
18297 | /* end confdefs.h. */ | ||
18298 | $ac_includes_default | ||
18299 | int | ||
18300 | main () | ||
18301 | { | ||
18302 | if ((long long int *) 0) | ||
18303 | return 0; | ||
18304 | if (sizeof (long long int)) | ||
18305 | return 0; | ||
18306 | ; | ||
18307 | return 0; | ||
18308 | } | ||
18309 | _ACEOF | ||
18310 | rm -f conftest.$ac_objext | ||
18311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18312 | (eval $ac_compile) 2>conftest.er1 | ||
18313 | ac_status=$? | ||
18314 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18315 | rm -f conftest.er1 | ||
18316 | cat conftest.err >&5 | ||
18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18318 | (exit $ac_status); } && | ||
18319 | { ac_try='test -z "$ac_c_werror_flag" | ||
18320 | || test ! -s conftest.err' | ||
18321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18322 | (eval $ac_try) 2>&5 | ||
18323 | ac_status=$? | ||
18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18325 | (exit $ac_status); }; } && | ||
18326 | { ac_try='test -s conftest.$ac_objext' | ||
18327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18328 | (eval $ac_try) 2>&5 | ||
18329 | ac_status=$? | ||
18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18331 | (exit $ac_status); }; }; then | ||
18332 | ac_cv_type_long_long_int=yes | ||
18333 | else | ||
18334 | echo "$as_me: failed program was:" >&5 | ||
18335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18336 | |||
18337 | ac_cv_type_long_long_int=no | ||
18338 | fi | ||
18339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18340 | fi | ||
18341 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
18342 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
18343 | |||
18344 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
18345 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
18346 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
18347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18348 | else | ||
18349 | if test "$ac_cv_type_long_long_int" = yes; then | ||
18350 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
18351 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18352 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18353 | # This bug is HP SR number 8606223364. | ||
18354 | if test "$cross_compiling" = yes; then | ||
18355 | # Depending upon the size, compute the lo and hi bounds. | ||
18356 | cat >conftest.$ac_ext <<_ACEOF | ||
18357 | /* confdefs.h. */ | ||
18358 | _ACEOF | ||
18359 | cat confdefs.h >>conftest.$ac_ext | ||
18360 | cat >>conftest.$ac_ext <<_ACEOF | ||
18361 | /* end confdefs.h. */ | ||
18362 | $ac_includes_default | ||
18363 | int | ||
18364 | main () | ||
18365 | { | ||
18366 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
18367 | test_array [0] = 0 | ||
18368 | |||
18369 | ; | ||
18370 | return 0; | ||
18371 | } | ||
18372 | _ACEOF | ||
18373 | rm -f conftest.$ac_objext | ||
18374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18375 | (eval $ac_compile) 2>conftest.er1 | ||
18376 | ac_status=$? | ||
18377 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18378 | rm -f conftest.er1 | ||
18379 | cat conftest.err >&5 | ||
18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18381 | (exit $ac_status); } && | ||
18382 | { ac_try='test -z "$ac_c_werror_flag" | ||
18383 | || test ! -s conftest.err' | ||
18384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18385 | (eval $ac_try) 2>&5 | ||
18386 | ac_status=$? | ||
18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18388 | (exit $ac_status); }; } && | ||
18389 | { ac_try='test -s conftest.$ac_objext' | ||
18390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18391 | (eval $ac_try) 2>&5 | ||
18392 | ac_status=$? | ||
18393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18394 | (exit $ac_status); }; }; then | ||
18395 | ac_lo=0 ac_mid=0 | ||
18396 | while :; do | ||
18397 | cat >conftest.$ac_ext <<_ACEOF | ||
18398 | /* confdefs.h. */ | ||
18399 | _ACEOF | ||
18400 | cat confdefs.h >>conftest.$ac_ext | ||
18401 | cat >>conftest.$ac_ext <<_ACEOF | ||
18402 | /* end confdefs.h. */ | ||
18403 | $ac_includes_default | ||
18404 | int | ||
18405 | main () | ||
18406 | { | ||
18407 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
18408 | test_array [0] = 0 | ||
18409 | |||
18410 | ; | ||
18411 | return 0; | ||
18412 | } | ||
18413 | _ACEOF | ||
18414 | rm -f conftest.$ac_objext | ||
18415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18416 | (eval $ac_compile) 2>conftest.er1 | ||
18417 | ac_status=$? | ||
18418 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18419 | rm -f conftest.er1 | ||
18420 | cat conftest.err >&5 | ||
18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18422 | (exit $ac_status); } && | ||
18423 | { ac_try='test -z "$ac_c_werror_flag" | ||
18424 | || test ! -s conftest.err' | ||
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18426 | (eval $ac_try) 2>&5 | ||
18427 | ac_status=$? | ||
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18429 | (exit $ac_status); }; } && | ||
18430 | { ac_try='test -s conftest.$ac_objext' | ||
18431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18432 | (eval $ac_try) 2>&5 | ||
18433 | ac_status=$? | ||
18434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18435 | (exit $ac_status); }; }; then | ||
18436 | ac_hi=$ac_mid; break | ||
18437 | else | ||
18438 | echo "$as_me: failed program was:" >&5 | ||
18439 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18440 | |||
18441 | ac_lo=`expr $ac_mid + 1` | ||
18442 | if test $ac_lo -le $ac_mid; then | ||
18443 | ac_lo= ac_hi= | ||
18444 | break | ||
18445 | fi | ||
18446 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18447 | fi | ||
18448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18449 | done | ||
18450 | else | ||
18451 | echo "$as_me: failed program was:" >&5 | ||
18452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18453 | |||
18454 | cat >conftest.$ac_ext <<_ACEOF | ||
18455 | /* confdefs.h. */ | ||
18456 | _ACEOF | ||
18457 | cat confdefs.h >>conftest.$ac_ext | ||
18458 | cat >>conftest.$ac_ext <<_ACEOF | ||
18459 | /* end confdefs.h. */ | ||
18460 | $ac_includes_default | ||
18461 | int | ||
18462 | main () | ||
18463 | { | ||
18464 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
18465 | test_array [0] = 0 | ||
18466 | |||
18467 | ; | ||
18468 | return 0; | ||
18469 | } | ||
18470 | _ACEOF | ||
18471 | rm -f conftest.$ac_objext | ||
18472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18473 | (eval $ac_compile) 2>conftest.er1 | ||
18474 | ac_status=$? | ||
18475 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18476 | rm -f conftest.er1 | ||
18477 | cat conftest.err >&5 | ||
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18479 | (exit $ac_status); } && | ||
18480 | { ac_try='test -z "$ac_c_werror_flag" | ||
18481 | || test ! -s conftest.err' | ||
18482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18483 | (eval $ac_try) 2>&5 | ||
18484 | ac_status=$? | ||
18485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18486 | (exit $ac_status); }; } && | ||
18487 | { ac_try='test -s conftest.$ac_objext' | ||
18488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18489 | (eval $ac_try) 2>&5 | ||
18490 | ac_status=$? | ||
18491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18492 | (exit $ac_status); }; }; then | ||
18493 | ac_hi=-1 ac_mid=-1 | ||
18494 | while :; do | ||
18495 | cat >conftest.$ac_ext <<_ACEOF | ||
18496 | /* confdefs.h. */ | ||
18497 | _ACEOF | ||
18498 | cat confdefs.h >>conftest.$ac_ext | ||
18499 | cat >>conftest.$ac_ext <<_ACEOF | ||
18500 | /* end confdefs.h. */ | ||
18501 | $ac_includes_default | ||
18502 | int | ||
18503 | main () | ||
18504 | { | ||
18505 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
18506 | test_array [0] = 0 | ||
18507 | |||
18508 | ; | ||
18509 | return 0; | ||
18510 | } | ||
18511 | _ACEOF | ||
18512 | rm -f conftest.$ac_objext | ||
18513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18514 | (eval $ac_compile) 2>conftest.er1 | ||
18515 | ac_status=$? | ||
18516 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18517 | rm -f conftest.er1 | ||
18518 | cat conftest.err >&5 | ||
18519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18520 | (exit $ac_status); } && | ||
18521 | { ac_try='test -z "$ac_c_werror_flag" | ||
18522 | || test ! -s conftest.err' | ||
18523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18524 | (eval $ac_try) 2>&5 | ||
18525 | ac_status=$? | ||
18526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18527 | (exit $ac_status); }; } && | ||
18528 | { ac_try='test -s conftest.$ac_objext' | ||
18529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18530 | (eval $ac_try) 2>&5 | ||
18531 | ac_status=$? | ||
18532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18533 | (exit $ac_status); }; }; then | ||
18534 | ac_lo=$ac_mid; break | ||
18535 | else | ||
18536 | echo "$as_me: failed program was:" >&5 | ||
18537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18538 | |||
18539 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
18540 | if test $ac_mid -le $ac_hi; then | ||
18541 | ac_lo= ac_hi= | ||
18542 | break | ||
18543 | fi | ||
18544 | ac_mid=`expr 2 '*' $ac_mid` | ||
18545 | fi | ||
18546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18547 | done | ||
18548 | else | ||
18549 | echo "$as_me: failed program was:" >&5 | ||
18550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18551 | |||
18552 | ac_lo= ac_hi= | ||
18553 | fi | ||
18554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18555 | fi | ||
18556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18557 | # Binary search between lo and hi bounds. | ||
18558 | while test "x$ac_lo" != "x$ac_hi"; do | ||
18559 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
18560 | cat >conftest.$ac_ext <<_ACEOF | ||
18561 | /* confdefs.h. */ | ||
18562 | _ACEOF | ||
18563 | cat confdefs.h >>conftest.$ac_ext | ||
18564 | cat >>conftest.$ac_ext <<_ACEOF | ||
18565 | /* end confdefs.h. */ | ||
18566 | $ac_includes_default | ||
18567 | int | ||
18568 | main () | ||
18569 | { | ||
18570 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
18571 | test_array [0] = 0 | ||
18572 | |||
18573 | ; | ||
18574 | return 0; | ||
18575 | } | ||
18576 | _ACEOF | ||
18577 | rm -f conftest.$ac_objext | ||
18578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18579 | (eval $ac_compile) 2>conftest.er1 | ||
18580 | ac_status=$? | ||
18581 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18582 | rm -f conftest.er1 | ||
18583 | cat conftest.err >&5 | ||
18584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18585 | (exit $ac_status); } && | ||
18586 | { ac_try='test -z "$ac_c_werror_flag" | ||
18587 | || test ! -s conftest.err' | ||
18588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18589 | (eval $ac_try) 2>&5 | ||
18590 | ac_status=$? | ||
18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18592 | (exit $ac_status); }; } && | ||
18593 | { ac_try='test -s conftest.$ac_objext' | ||
18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18595 | (eval $ac_try) 2>&5 | ||
18596 | ac_status=$? | ||
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18598 | (exit $ac_status); }; }; then | ||
18599 | ac_hi=$ac_mid | ||
18600 | else | ||
18601 | echo "$as_me: failed program was:" >&5 | ||
18602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18603 | |||
18604 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
18605 | fi | ||
18606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18607 | done | ||
18608 | case $ac_lo in | ||
18609 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
18610 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
18611 | See \`config.log' for more details." >&5 | ||
18612 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
18613 | See \`config.log' for more details." >&2;} | ||
18614 | { (exit 1); exit 1; }; } ;; | ||
18615 | esac | ||
18616 | else | ||
18617 | if test "$cross_compiling" = yes; then | ||
18618 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
18619 | See \`config.log' for more details." >&5 | ||
18620 | echo "$as_me: error: cannot run test program while cross compiling | ||
18621 | See \`config.log' for more details." >&2;} | ||
18622 | { (exit 1); exit 1; }; } | ||
18623 | else | ||
18624 | cat >conftest.$ac_ext <<_ACEOF | ||
18625 | /* confdefs.h. */ | ||
18626 | _ACEOF | ||
18627 | cat confdefs.h >>conftest.$ac_ext | ||
18628 | cat >>conftest.$ac_ext <<_ACEOF | ||
18629 | /* end confdefs.h. */ | ||
18630 | $ac_includes_default | ||
18631 | long longval () { return (long) (sizeof (long long int)); } | ||
18632 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
18633 | #include <stdio.h> | ||
18634 | #include <stdlib.h> | ||
18635 | int | ||
18636 | main () | ||
18637 | { | ||
18638 | |||
18639 | FILE *f = fopen ("conftest.val", "w"); | ||
18640 | if (! f) | ||
18641 | exit (1); | ||
18642 | if (((long) (sizeof (long long int))) < 0) | ||
18643 | { | ||
18644 | long i = longval (); | ||
18645 | if (i != ((long) (sizeof (long long int)))) | ||
18646 | exit (1); | ||
18647 | fprintf (f, "%ld\n", i); | ||
18648 | } | ||
18649 | else | ||
18650 | { | ||
18651 | unsigned long i = ulongval (); | ||
18652 | if (i != ((long) (sizeof (long long int)))) | ||
18653 | exit (1); | ||
18654 | fprintf (f, "%lu\n", i); | ||
18655 | } | ||
18656 | exit (ferror (f) || fclose (f) != 0); | ||
18657 | |||
18658 | ; | ||
18659 | return 0; | ||
18660 | } | ||
18661 | _ACEOF | ||
18662 | rm -f conftest$ac_exeext | ||
18663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18664 | (eval $ac_link) 2>&5 | ||
18665 | ac_status=$? | ||
18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18669 | (eval $ac_try) 2>&5 | ||
18670 | ac_status=$? | ||
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18672 | (exit $ac_status); }; }; then | ||
18673 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
18674 | else | ||
18675 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18676 | echo "$as_me: failed program was:" >&5 | ||
18677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18678 | |||
18679 | ( exit $ac_status ) | ||
18680 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
18681 | See \`config.log' for more details." >&5 | ||
18682 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
18683 | See \`config.log' for more details." >&2;} | ||
18684 | { (exit 1); exit 1; }; } | ||
18685 | fi | ||
18686 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18687 | fi | ||
18688 | fi | ||
18689 | rm -f conftest.val | ||
18690 | else | ||
18691 | ac_cv_sizeof_long_long_int=0 | ||
18692 | fi | ||
18693 | fi | ||
18694 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
18695 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
18696 | cat >>confdefs.h <<_ACEOF | ||
18697 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
18698 | _ACEOF | ||
18699 | |||
18700 | |||
18701 | |||
18702 | # Sanity check long long for some platforms (AIX) | ||
18703 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
18704 | ac_cv_sizeof_long_long_int=0 | ||
18705 | fi | ||
18706 | |||
18707 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
18708 | if test -z "$have_llong_max"; then | ||
18709 | echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
18710 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6 | ||
18711 | if test "$cross_compiling" = yes; then | ||
18712 | |||
18713 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
18714 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
18715 | |||
18716 | |||
18717 | else | ||
18718 | cat >conftest.$ac_ext <<_ACEOF | ||
18719 | /* confdefs.h. */ | ||
18720 | _ACEOF | ||
18721 | cat confdefs.h >>conftest.$ac_ext | ||
18722 | cat >>conftest.$ac_ext <<_ACEOF | ||
18723 | /* end confdefs.h. */ | ||
18724 | |||
18725 | #include <stdio.h> | ||
18726 | /* Why is this so damn hard? */ | ||
18727 | #ifdef __GNUC__ | ||
18728 | # undef __GNUC__ | ||
18729 | #endif | ||
18730 | #define __USE_ISOC99 | ||
18731 | #include <limits.h> | ||
18732 | #define DATA "conftest.llminmax" | ||
18733 | int main(void) { | ||
18734 | FILE *f; | ||
18735 | long long i, llmin, llmax = 0; | ||
18736 | |||
18737 | if((f = fopen(DATA,"w")) == NULL) | ||
18738 | exit(1); | ||
18739 | |||
18740 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
18741 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
18742 | llmin = LLONG_MIN; | ||
18743 | llmax = LLONG_MAX; | ||
18744 | #else | ||
18745 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
18746 | /* This will work on one's complement and two's complement */ | ||
18747 | for (i = 1; i > llmax; i <<= 1, i++) | ||
18748 | llmax = i; | ||
18749 | llmin = llmax + 1LL; /* wrap */ | ||
18750 | #endif | ||
18751 | |||
18752 | /* Sanity check */ | ||
18753 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
18754 | || llmax - 1 > llmax) { | ||
18755 | fprintf(f, "unknown unknown\n"); | ||
18756 | exit(2); | ||
18757 | } | ||
18758 | |||
18759 | if (fprintf(f ,"%lld %lld", llmin, llmax) < 0) | ||
18760 | exit(3); | ||
18761 | |||
18762 | exit(0); | ||
18763 | } | ||
18764 | |||
18765 | _ACEOF | ||
18766 | rm -f conftest$ac_exeext | ||
18767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18768 | (eval $ac_link) 2>&5 | ||
18769 | ac_status=$? | ||
18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18773 | (eval $ac_try) 2>&5 | ||
18774 | ac_status=$? | ||
18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18776 | (exit $ac_status); }; }; then | ||
18777 | |||
18778 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
18779 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
18780 | |||
18781 | # snprintf on some Tru64s doesn't understand "%lld" | ||
18782 | case "$host" in | ||
18783 | alpha-dec-osf*) | ||
18784 | if test "x$ac_cv_sizeof_long_long_int" = "x8" && | ||
18785 | test "x$llong_max" = "xld"; then | ||
18786 | llong_min="-9223372036854775808" | ||
18787 | llong_max="9223372036854775807" | ||
18788 | fi | ||
18789 | ;; | ||
18790 | esac | ||
18791 | |||
18792 | echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
18793 | echo "${ECHO_T}$llong_max" >&6 | ||
18794 | |||
18795 | cat >>confdefs.h <<_ACEOF | ||
18796 | #define LLONG_MAX ${llong_max}LL | ||
18797 | _ACEOF | ||
18798 | |||
18799 | echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
18800 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6 | ||
18801 | echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
18802 | echo "${ECHO_T}$llong_min" >&6 | ||
18803 | |||
18804 | cat >>confdefs.h <<_ACEOF | ||
18805 | #define LLONG_MIN ${llong_min}LL | ||
18806 | _ACEOF | ||
18807 | |||
18808 | |||
18809 | else | ||
18810 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18811 | echo "$as_me: failed program was:" >&5 | ||
18812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18813 | |||
18814 | ( exit $ac_status ) | ||
18815 | |||
18816 | echo "$as_me:$LINENO: result: not found" >&5 | ||
18817 | echo "${ECHO_T}not found" >&6 | ||
18818 | |||
18819 | fi | ||
18820 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18821 | fi | ||
18822 | fi | ||
18823 | |||
18824 | |||
18825 | # More checks for data types | ||
18826 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
18827 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
18828 | if test "${ac_cv_have_u_int+set}" = set; then | ||
18829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18830 | else | ||
18831 | |||
18832 | cat >conftest.$ac_ext <<_ACEOF | ||
18833 | /* confdefs.h. */ | ||
18834 | _ACEOF | ||
18835 | cat confdefs.h >>conftest.$ac_ext | ||
18836 | cat >>conftest.$ac_ext <<_ACEOF | ||
18837 | /* end confdefs.h. */ | ||
18838 | #include <sys/types.h> | ||
18839 | int | ||
18840 | main () | ||
18841 | { | ||
18842 | u_int a; a = 1; | ||
18843 | ; | ||
18844 | return 0; | ||
18845 | } | ||
18846 | _ACEOF | ||
18847 | rm -f conftest.$ac_objext | ||
18848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18849 | (eval $ac_compile) 2>conftest.er1 | ||
18850 | ac_status=$? | ||
18851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18852 | rm -f conftest.er1 | ||
18853 | cat conftest.err >&5 | ||
18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18855 | (exit $ac_status); } && | ||
18856 | { ac_try='test -z "$ac_c_werror_flag" | ||
18857 | || test ! -s conftest.err' | ||
18858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18859 | (eval $ac_try) 2>&5 | ||
18860 | ac_status=$? | ||
18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18862 | (exit $ac_status); }; } && | ||
18863 | { ac_try='test -s conftest.$ac_objext' | ||
18864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18865 | (eval $ac_try) 2>&5 | ||
18866 | ac_status=$? | ||
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18868 | (exit $ac_status); }; }; then | ||
18869 | ac_cv_have_u_int="yes" | ||
18870 | else | ||
18871 | echo "$as_me: failed program was:" >&5 | ||
18872 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18873 | |||
18874 | ac_cv_have_u_int="no" | ||
18875 | |||
18876 | fi | ||
18877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18878 | |||
18879 | fi | ||
18880 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
18881 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
18882 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
18883 | |||
18884 | cat >>confdefs.h <<\_ACEOF | ||
18885 | #define HAVE_U_INT 1 | ||
18886 | _ACEOF | ||
18887 | |||
18888 | have_u_int=1 | ||
18889 | fi | ||
18890 | |||
18891 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
18892 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
18893 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
18894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18895 | else | ||
18896 | |||
18897 | cat >conftest.$ac_ext <<_ACEOF | ||
18898 | /* confdefs.h. */ | ||
18899 | _ACEOF | ||
18900 | cat confdefs.h >>conftest.$ac_ext | ||
18901 | cat >>conftest.$ac_ext <<_ACEOF | ||
18902 | /* end confdefs.h. */ | ||
18903 | #include <sys/types.h> | ||
18904 | int | ||
18905 | main () | ||
18906 | { | ||
18907 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
18908 | ; | ||
18909 | return 0; | ||
18910 | } | ||
18911 | _ACEOF | ||
18912 | rm -f conftest.$ac_objext | ||
18913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18914 | (eval $ac_compile) 2>conftest.er1 | ||
18915 | ac_status=$? | ||
18916 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18917 | rm -f conftest.er1 | ||
18918 | cat conftest.err >&5 | ||
18919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18920 | (exit $ac_status); } && | ||
18921 | { ac_try='test -z "$ac_c_werror_flag" | ||
18922 | || test ! -s conftest.err' | ||
18923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18924 | (eval $ac_try) 2>&5 | ||
18925 | ac_status=$? | ||
18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18927 | (exit $ac_status); }; } && | ||
18928 | { ac_try='test -s conftest.$ac_objext' | ||
18929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18930 | (eval $ac_try) 2>&5 | ||
18931 | ac_status=$? | ||
18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18933 | (exit $ac_status); }; }; then | ||
18934 | ac_cv_have_intxx_t="yes" | ||
18935 | else | ||
18936 | echo "$as_me: failed program was:" >&5 | ||
18937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18938 | |||
18939 | ac_cv_have_intxx_t="no" | ||
18940 | |||
18941 | fi | ||
18942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18943 | |||
18944 | fi | ||
18945 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
18946 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
18947 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
18948 | |||
18949 | cat >>confdefs.h <<\_ACEOF | ||
18950 | #define HAVE_INTXX_T 1 | ||
18951 | _ACEOF | ||
18952 | |||
18953 | have_intxx_t=1 | ||
18954 | fi | ||
18955 | |||
18956 | if (test -z "$have_intxx_t" && \ | ||
18957 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
18958 | then | ||
18959 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
18960 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
18961 | cat >conftest.$ac_ext <<_ACEOF | ||
18962 | /* confdefs.h. */ | ||
18963 | _ACEOF | ||
18964 | cat confdefs.h >>conftest.$ac_ext | ||
18965 | cat >>conftest.$ac_ext <<_ACEOF | ||
18966 | /* end confdefs.h. */ | ||
18967 | #include <stdint.h> | ||
18968 | int | ||
18969 | main () | ||
18970 | { | ||
18971 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
18972 | ; | ||
18973 | return 0; | ||
18974 | } | ||
18975 | _ACEOF | ||
18976 | rm -f conftest.$ac_objext | ||
18977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18978 | (eval $ac_compile) 2>conftest.er1 | ||
18979 | ac_status=$? | ||
18980 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18981 | rm -f conftest.er1 | ||
18982 | cat conftest.err >&5 | ||
18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18984 | (exit $ac_status); } && | ||
18985 | { ac_try='test -z "$ac_c_werror_flag" | ||
18986 | || test ! -s conftest.err' | ||
18987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18988 | (eval $ac_try) 2>&5 | ||
18989 | ac_status=$? | ||
18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18991 | (exit $ac_status); }; } && | ||
18992 | { ac_try='test -s conftest.$ac_objext' | ||
18993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18994 | (eval $ac_try) 2>&5 | ||
18995 | ac_status=$? | ||
18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18997 | (exit $ac_status); }; }; then | ||
18998 | |||
18999 | cat >>confdefs.h <<\_ACEOF | ||
19000 | #define HAVE_INTXX_T 1 | ||
19001 | _ACEOF | ||
19002 | |||
19003 | echo "$as_me:$LINENO: result: yes" >&5 | ||
19004 | echo "${ECHO_T}yes" >&6 | ||
19005 | |||
19006 | else | ||
19007 | echo "$as_me: failed program was:" >&5 | ||
19008 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19009 | |||
19010 | echo "$as_me:$LINENO: result: no" >&5 | ||
19011 | echo "${ECHO_T}no" >&6 | ||
19012 | |||
19013 | fi | ||
19014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19015 | fi | ||
19016 | |||
19017 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
19018 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
19019 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
19020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19021 | else | ||
19022 | |||
19023 | cat >conftest.$ac_ext <<_ACEOF | ||
19024 | /* confdefs.h. */ | ||
19025 | _ACEOF | ||
19026 | cat confdefs.h >>conftest.$ac_ext | ||
19027 | cat >>conftest.$ac_ext <<_ACEOF | ||
19028 | /* end confdefs.h. */ | ||
19029 | |||
19030 | #include <sys/types.h> | ||
19031 | #ifdef HAVE_STDINT_H | ||
19032 | # include <stdint.h> | ||
19033 | #endif | ||
19034 | #include <sys/socket.h> | ||
19035 | #ifdef HAVE_SYS_BITYPES_H | ||
19036 | # include <sys/bitypes.h> | ||
19037 | #endif | ||
19038 | |||
19039 | int | ||
19040 | main () | ||
19041 | { | ||
19042 | int64_t a; a = 1; | ||
19043 | ; | ||
19044 | return 0; | ||
19045 | } | ||
19046 | _ACEOF | ||
19047 | rm -f conftest.$ac_objext | ||
19048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19049 | (eval $ac_compile) 2>conftest.er1 | ||
19050 | ac_status=$? | ||
19051 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19052 | rm -f conftest.er1 | ||
19053 | cat conftest.err >&5 | ||
19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19055 | (exit $ac_status); } && | ||
19056 | { ac_try='test -z "$ac_c_werror_flag" | ||
19057 | || test ! -s conftest.err' | ||
19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19059 | (eval $ac_try) 2>&5 | ||
19060 | ac_status=$? | ||
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19062 | (exit $ac_status); }; } && | ||
19063 | { ac_try='test -s conftest.$ac_objext' | ||
19064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19065 | (eval $ac_try) 2>&5 | ||
19066 | ac_status=$? | ||
19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19068 | (exit $ac_status); }; }; then | ||
19069 | ac_cv_have_int64_t="yes" | ||
19070 | else | ||
19071 | echo "$as_me: failed program was:" >&5 | ||
19072 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19073 | |||
19074 | ac_cv_have_int64_t="no" | ||
19075 | |||
19076 | fi | ||
19077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19078 | |||
19079 | fi | ||
19080 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
19081 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
19082 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
19083 | |||
19084 | cat >>confdefs.h <<\_ACEOF | ||
19085 | #define HAVE_INT64_T 1 | ||
19086 | _ACEOF | ||
19087 | |||
19088 | fi | ||
19089 | |||
19090 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
19091 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
19092 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
19093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19094 | else | ||
19095 | |||
19096 | cat >conftest.$ac_ext <<_ACEOF | ||
19097 | /* confdefs.h. */ | ||
19098 | _ACEOF | ||
19099 | cat confdefs.h >>conftest.$ac_ext | ||
19100 | cat >>conftest.$ac_ext <<_ACEOF | ||
19101 | /* end confdefs.h. */ | ||
19102 | #include <sys/types.h> | ||
19103 | int | ||
19104 | main () | ||
19105 | { | ||
19106 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
19107 | ; | ||
19108 | return 0; | ||
19109 | } | ||
19110 | _ACEOF | ||
19111 | rm -f conftest.$ac_objext | ||
19112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19113 | (eval $ac_compile) 2>conftest.er1 | ||
19114 | ac_status=$? | ||
19115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19116 | rm -f conftest.er1 | ||
19117 | cat conftest.err >&5 | ||
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19119 | (exit $ac_status); } && | ||
19120 | { ac_try='test -z "$ac_c_werror_flag" | ||
19121 | || test ! -s conftest.err' | ||
19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19123 | (eval $ac_try) 2>&5 | ||
19124 | ac_status=$? | ||
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19126 | (exit $ac_status); }; } && | ||
19127 | { ac_try='test -s conftest.$ac_objext' | ||
19128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19129 | (eval $ac_try) 2>&5 | ||
19130 | ac_status=$? | ||
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19132 | (exit $ac_status); }; }; then | ||
19133 | ac_cv_have_u_intxx_t="yes" | ||
19134 | else | ||
19135 | echo "$as_me: failed program was:" >&5 | ||
19136 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19137 | |||
19138 | ac_cv_have_u_intxx_t="no" | ||
19139 | |||
19140 | fi | ||
19141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19142 | |||
19143 | fi | ||
19144 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
19145 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
19146 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
19147 | |||
19148 | cat >>confdefs.h <<\_ACEOF | ||
19149 | #define HAVE_U_INTXX_T 1 | ||
19150 | _ACEOF | ||
19151 | |||
19152 | have_u_intxx_t=1 | ||
19153 | fi | ||
19154 | |||
19155 | if test -z "$have_u_intxx_t" ; then | ||
19156 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
19157 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
19158 | cat >conftest.$ac_ext <<_ACEOF | ||
19159 | /* confdefs.h. */ | ||
19160 | _ACEOF | ||
19161 | cat confdefs.h >>conftest.$ac_ext | ||
19162 | cat >>conftest.$ac_ext <<_ACEOF | ||
19163 | /* end confdefs.h. */ | ||
19164 | #include <sys/socket.h> | ||
19165 | int | ||
19166 | main () | ||
19167 | { | ||
19168 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
19169 | ; | ||
19170 | return 0; | ||
19171 | } | ||
19172 | _ACEOF | ||
19173 | rm -f conftest.$ac_objext | ||
19174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19175 | (eval $ac_compile) 2>conftest.er1 | ||
19176 | ac_status=$? | ||
19177 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19178 | rm -f conftest.er1 | ||
19179 | cat conftest.err >&5 | ||
19180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19181 | (exit $ac_status); } && | ||
19182 | { ac_try='test -z "$ac_c_werror_flag" | ||
19183 | || test ! -s conftest.err' | ||
19184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19185 | (eval $ac_try) 2>&5 | ||
19186 | ac_status=$? | ||
19187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19188 | (exit $ac_status); }; } && | ||
19189 | { ac_try='test -s conftest.$ac_objext' | ||
19190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19191 | (eval $ac_try) 2>&5 | ||
19192 | ac_status=$? | ||
19193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19194 | (exit $ac_status); }; }; then | ||
19195 | |||
19196 | cat >>confdefs.h <<\_ACEOF | ||
19197 | #define HAVE_U_INTXX_T 1 | ||
19198 | _ACEOF | ||
19199 | |||
19200 | echo "$as_me:$LINENO: result: yes" >&5 | ||
19201 | echo "${ECHO_T}yes" >&6 | ||
19202 | |||
19203 | else | ||
19204 | echo "$as_me: failed program was:" >&5 | ||
19205 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19206 | |||
19207 | echo "$as_me:$LINENO: result: no" >&5 | ||
19208 | echo "${ECHO_T}no" >&6 | ||
19209 | |||
19210 | fi | ||
19211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19212 | fi | ||
19213 | |||
19214 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
19215 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
19216 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
19217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19218 | else | ||
19219 | |||
19220 | cat >conftest.$ac_ext <<_ACEOF | ||
19221 | /* confdefs.h. */ | ||
19222 | _ACEOF | ||
19223 | cat confdefs.h >>conftest.$ac_ext | ||
19224 | cat >>conftest.$ac_ext <<_ACEOF | ||
19225 | /* end confdefs.h. */ | ||
19226 | #include <sys/types.h> | ||
19227 | int | ||
19228 | main () | ||
19229 | { | ||
19230 | u_int64_t a; a = 1; | ||
19231 | ; | ||
19232 | return 0; | ||
19233 | } | ||
19234 | _ACEOF | ||
19235 | rm -f conftest.$ac_objext | ||
19236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19237 | (eval $ac_compile) 2>conftest.er1 | ||
19238 | ac_status=$? | ||
19239 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19240 | rm -f conftest.er1 | ||
19241 | cat conftest.err >&5 | ||
19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19243 | (exit $ac_status); } && | ||
19244 | { ac_try='test -z "$ac_c_werror_flag" | ||
19245 | || test ! -s conftest.err' | ||
19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19247 | (eval $ac_try) 2>&5 | ||
19248 | ac_status=$? | ||
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19250 | (exit $ac_status); }; } && | ||
19251 | { ac_try='test -s conftest.$ac_objext' | ||
19252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19253 | (eval $ac_try) 2>&5 | ||
19254 | ac_status=$? | ||
19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19256 | (exit $ac_status); }; }; then | ||
19257 | ac_cv_have_u_int64_t="yes" | ||
19258 | else | ||
19259 | echo "$as_me: failed program was:" >&5 | ||
19260 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19261 | |||
19262 | ac_cv_have_u_int64_t="no" | ||
19263 | |||
19264 | fi | ||
19265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19266 | |||
19267 | fi | ||
19268 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
19269 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
19270 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
19271 | |||
19272 | cat >>confdefs.h <<\_ACEOF | ||
19273 | #define HAVE_U_INT64_T 1 | ||
19274 | _ACEOF | ||
19275 | |||
19276 | have_u_int64_t=1 | ||
19277 | fi | ||
19278 | |||
19279 | if test -z "$have_u_int64_t" ; then | ||
19280 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
19281 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
19282 | cat >conftest.$ac_ext <<_ACEOF | ||
19283 | /* confdefs.h. */ | ||
19284 | _ACEOF | ||
19285 | cat confdefs.h >>conftest.$ac_ext | ||
19286 | cat >>conftest.$ac_ext <<_ACEOF | ||
19287 | /* end confdefs.h. */ | ||
19288 | #include <sys/bitypes.h> | ||
19289 | int | ||
19290 | main () | ||
19291 | { | ||
19292 | u_int64_t a; a = 1 | ||
19293 | ; | ||
19294 | return 0; | ||
19295 | } | ||
19296 | _ACEOF | ||
19297 | rm -f conftest.$ac_objext | ||
19298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19299 | (eval $ac_compile) 2>conftest.er1 | ||
19300 | ac_status=$? | ||
19301 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19302 | rm -f conftest.er1 | ||
19303 | cat conftest.err >&5 | ||
19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19305 | (exit $ac_status); } && | ||
19306 | { ac_try='test -z "$ac_c_werror_flag" | ||
19307 | || test ! -s conftest.err' | ||
19308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19309 | (eval $ac_try) 2>&5 | ||
19310 | ac_status=$? | ||
19311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19312 | (exit $ac_status); }; } && | ||
19313 | { ac_try='test -s conftest.$ac_objext' | ||
19314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19315 | (eval $ac_try) 2>&5 | ||
19316 | ac_status=$? | ||
19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19318 | (exit $ac_status); }; }; then | ||
19319 | |||
19320 | cat >>confdefs.h <<\_ACEOF | ||
19321 | #define HAVE_U_INT64_T 1 | ||
19322 | _ACEOF | ||
19323 | |||
19324 | echo "$as_me:$LINENO: result: yes" >&5 | ||
19325 | echo "${ECHO_T}yes" >&6 | ||
19326 | |||
19327 | else | ||
19328 | echo "$as_me: failed program was:" >&5 | ||
19329 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19330 | |||
19331 | echo "$as_me:$LINENO: result: no" >&5 | ||
19332 | echo "${ECHO_T}no" >&6 | ||
19333 | |||
19334 | fi | ||
19335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19336 | fi | ||
19337 | |||
19338 | if test -z "$have_u_intxx_t" ; then | ||
19339 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
19340 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
19341 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
19342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19343 | else | ||
19344 | |||
19345 | cat >conftest.$ac_ext <<_ACEOF | ||
19346 | /* confdefs.h. */ | ||
19347 | _ACEOF | ||
19348 | cat confdefs.h >>conftest.$ac_ext | ||
19349 | cat >>conftest.$ac_ext <<_ACEOF | ||
19350 | /* end confdefs.h. */ | ||
19351 | |||
19352 | #include <sys/types.h> | ||
19353 | |||
19354 | int | ||
19355 | main () | ||
19356 | { | ||
19357 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
19358 | ; | ||
19359 | return 0; | ||
19360 | } | ||
19361 | _ACEOF | ||
19362 | rm -f conftest.$ac_objext | ||
19363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19364 | (eval $ac_compile) 2>conftest.er1 | ||
19365 | ac_status=$? | ||
19366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19367 | rm -f conftest.er1 | ||
19368 | cat conftest.err >&5 | ||
19369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19370 | (exit $ac_status); } && | ||
19371 | { ac_try='test -z "$ac_c_werror_flag" | ||
19372 | || test ! -s conftest.err' | ||
19373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19374 | (eval $ac_try) 2>&5 | ||
19375 | ac_status=$? | ||
19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19377 | (exit $ac_status); }; } && | ||
19378 | { ac_try='test -s conftest.$ac_objext' | ||
19379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19380 | (eval $ac_try) 2>&5 | ||
19381 | ac_status=$? | ||
19382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19383 | (exit $ac_status); }; }; then | ||
19384 | ac_cv_have_uintxx_t="yes" | ||
19385 | else | ||
19386 | echo "$as_me: failed program was:" >&5 | ||
19387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19388 | |||
19389 | ac_cv_have_uintxx_t="no" | ||
19390 | |||
19391 | fi | ||
19392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19393 | |||
19394 | fi | ||
19395 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
19396 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
19397 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
19398 | |||
19399 | cat >>confdefs.h <<\_ACEOF | ||
19400 | #define HAVE_UINTXX_T 1 | ||
19401 | _ACEOF | ||
19402 | |||
19403 | fi | ||
19404 | fi | ||
19405 | |||
19406 | if test -z "$have_uintxx_t" ; then | ||
19407 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
19408 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
19409 | cat >conftest.$ac_ext <<_ACEOF | ||
19410 | /* confdefs.h. */ | ||
19411 | _ACEOF | ||
19412 | cat confdefs.h >>conftest.$ac_ext | ||
19413 | cat >>conftest.$ac_ext <<_ACEOF | ||
19414 | /* end confdefs.h. */ | ||
19415 | #include <stdint.h> | ||
19416 | int | ||
19417 | main () | ||
19418 | { | ||
19419 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
19420 | ; | ||
19421 | return 0; | ||
19422 | } | ||
19423 | _ACEOF | ||
19424 | rm -f conftest.$ac_objext | ||
19425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19426 | (eval $ac_compile) 2>conftest.er1 | ||
19427 | ac_status=$? | ||
19428 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19429 | rm -f conftest.er1 | ||
19430 | cat conftest.err >&5 | ||
19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19432 | (exit $ac_status); } && | ||
19433 | { ac_try='test -z "$ac_c_werror_flag" | ||
19434 | || test ! -s conftest.err' | ||
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19436 | (eval $ac_try) 2>&5 | ||
19437 | ac_status=$? | ||
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19439 | (exit $ac_status); }; } && | ||
19440 | { ac_try='test -s conftest.$ac_objext' | ||
19441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19442 | (eval $ac_try) 2>&5 | ||
19443 | ac_status=$? | ||
19444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19445 | (exit $ac_status); }; }; then | ||
19446 | |||
19447 | cat >>confdefs.h <<\_ACEOF | ||
19448 | #define HAVE_UINTXX_T 1 | ||
19449 | _ACEOF | ||
19450 | |||
19451 | echo "$as_me:$LINENO: result: yes" >&5 | ||
19452 | echo "${ECHO_T}yes" >&6 | ||
19453 | |||
19454 | else | ||
19455 | echo "$as_me: failed program was:" >&5 | ||
19456 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19457 | |||
19458 | echo "$as_me:$LINENO: result: no" >&5 | ||
19459 | echo "${ECHO_T}no" >&6 | ||
19460 | |||
19461 | fi | ||
19462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19463 | fi | ||
19464 | |||
19465 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
19466 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
19467 | then | ||
19468 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
19469 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
19470 | cat >conftest.$ac_ext <<_ACEOF | ||
19471 | /* confdefs.h. */ | ||
19472 | _ACEOF | ||
19473 | cat confdefs.h >>conftest.$ac_ext | ||
19474 | cat >>conftest.$ac_ext <<_ACEOF | ||
19475 | /* end confdefs.h. */ | ||
19476 | |||
19477 | #include <sys/bitypes.h> | ||
19478 | |||
19479 | int | ||
19480 | main () | ||
19481 | { | ||
19482 | |||
19483 | int8_t a; int16_t b; int32_t c; | ||
19484 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
19485 | a = b = c = e = f = g = 1; | ||
19486 | |||
19487 | ; | ||
19488 | return 0; | ||
19489 | } | ||
19490 | _ACEOF | ||
19491 | rm -f conftest.$ac_objext | ||
19492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19493 | (eval $ac_compile) 2>conftest.er1 | ||
19494 | ac_status=$? | ||
19495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19496 | rm -f conftest.er1 | ||
19497 | cat conftest.err >&5 | ||
19498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19499 | (exit $ac_status); } && | ||
19500 | { ac_try='test -z "$ac_c_werror_flag" | ||
19501 | || test ! -s conftest.err' | ||
19502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19503 | (eval $ac_try) 2>&5 | ||
19504 | ac_status=$? | ||
19505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19506 | (exit $ac_status); }; } && | ||
19507 | { ac_try='test -s conftest.$ac_objext' | ||
19508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19509 | (eval $ac_try) 2>&5 | ||
19510 | ac_status=$? | ||
19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19512 | (exit $ac_status); }; }; then | ||
19513 | |||
19514 | cat >>confdefs.h <<\_ACEOF | ||
19515 | #define HAVE_U_INTXX_T 1 | ||
19516 | _ACEOF | ||
19517 | |||
19518 | cat >>confdefs.h <<\_ACEOF | ||
19519 | #define HAVE_INTXX_T 1 | ||
19520 | _ACEOF | ||
19521 | |||
19522 | echo "$as_me:$LINENO: result: yes" >&5 | ||
19523 | echo "${ECHO_T}yes" >&6 | ||
19524 | |||
19525 | else | ||
19526 | echo "$as_me: failed program was:" >&5 | ||
19527 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19528 | |||
19529 | echo "$as_me:$LINENO: result: no" >&5 | ||
19530 | echo "${ECHO_T}no" >&6 | ||
19531 | |||
19532 | fi | ||
19533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19534 | fi | ||
19535 | |||
19536 | |||
19537 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
19538 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
19539 | if test "${ac_cv_have_u_char+set}" = set; then | ||
19540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19541 | else | ||
19542 | |||
19543 | cat >conftest.$ac_ext <<_ACEOF | ||
19544 | /* confdefs.h. */ | ||
19545 | _ACEOF | ||
19546 | cat confdefs.h >>conftest.$ac_ext | ||
19547 | cat >>conftest.$ac_ext <<_ACEOF | ||
19548 | /* end confdefs.h. */ | ||
19549 | |||
19550 | #include <sys/types.h> | ||
19551 | |||
19552 | int | ||
19553 | main () | ||
19554 | { | ||
19555 | u_char foo; foo = 125; | ||
19556 | ; | ||
19557 | return 0; | ||
19558 | } | ||
19559 | _ACEOF | ||
19560 | rm -f conftest.$ac_objext | ||
19561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19562 | (eval $ac_compile) 2>conftest.er1 | ||
19563 | ac_status=$? | ||
19564 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19565 | rm -f conftest.er1 | ||
19566 | cat conftest.err >&5 | ||
19567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19568 | (exit $ac_status); } && | ||
19569 | { ac_try='test -z "$ac_c_werror_flag" | ||
19570 | || test ! -s conftest.err' | ||
19571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19572 | (eval $ac_try) 2>&5 | ||
19573 | ac_status=$? | ||
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19575 | (exit $ac_status); }; } && | ||
19576 | { ac_try='test -s conftest.$ac_objext' | ||
19577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19578 | (eval $ac_try) 2>&5 | ||
19579 | ac_status=$? | ||
19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19581 | (exit $ac_status); }; }; then | ||
19582 | ac_cv_have_u_char="yes" | ||
19583 | else | ||
19584 | echo "$as_me: failed program was:" >&5 | ||
19585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19586 | |||
19587 | ac_cv_have_u_char="no" | ||
19588 | |||
19589 | fi | ||
19590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19591 | |||
19592 | fi | ||
19593 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
19594 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
19595 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
19596 | |||
19597 | cat >>confdefs.h <<\_ACEOF | ||
19598 | #define HAVE_U_CHAR 1 | ||
19599 | _ACEOF | ||
19600 | |||
19601 | fi | ||
19602 | |||
19603 | |||
19604 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
19605 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
19606 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
19607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19608 | else | ||
19609 | cat >conftest.$ac_ext <<_ACEOF | ||
19610 | /* confdefs.h. */ | ||
19611 | _ACEOF | ||
19612 | cat confdefs.h >>conftest.$ac_ext | ||
19613 | cat >>conftest.$ac_ext <<_ACEOF | ||
19614 | /* end confdefs.h. */ | ||
19615 | #include <sys/types.h> | ||
19616 | #include <sys/socket.h> | ||
19617 | |||
19618 | int | ||
19619 | main () | ||
19620 | { | ||
19621 | if ((socklen_t *) 0) | ||
19622 | return 0; | ||
19623 | if (sizeof (socklen_t)) | ||
19624 | return 0; | ||
19625 | ; | ||
19626 | return 0; | ||
19627 | } | ||
19628 | _ACEOF | ||
19629 | rm -f conftest.$ac_objext | ||
19630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19631 | (eval $ac_compile) 2>conftest.er1 | ||
19632 | ac_status=$? | ||
19633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19634 | rm -f conftest.er1 | ||
19635 | cat conftest.err >&5 | ||
19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19637 | (exit $ac_status); } && | ||
19638 | { ac_try='test -z "$ac_c_werror_flag" | ||
19639 | || test ! -s conftest.err' | ||
19640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19641 | (eval $ac_try) 2>&5 | ||
19642 | ac_status=$? | ||
19643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19644 | (exit $ac_status); }; } && | ||
19645 | { ac_try='test -s conftest.$ac_objext' | ||
19646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19647 | (eval $ac_try) 2>&5 | ||
19648 | ac_status=$? | ||
19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19650 | (exit $ac_status); }; }; then | ||
19651 | ac_cv_type_socklen_t=yes | ||
19652 | else | ||
19653 | echo "$as_me: failed program was:" >&5 | ||
19654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19655 | |||
19656 | ac_cv_type_socklen_t=no | ||
19657 | fi | ||
19658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19659 | fi | ||
19660 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
19661 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
19662 | if test $ac_cv_type_socklen_t = yes; then | ||
19663 | : | ||
19664 | else | ||
19665 | |||
19666 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
19667 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
19668 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
19669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19670 | else | ||
19671 | |||
19672 | # Systems have either "struct sockaddr *" or | ||
19673 | # "void *" as the second argument to getpeername | ||
19674 | curl_cv_socklen_t_equiv= | ||
19675 | for arg2 in "struct sockaddr" void; do | ||
19676 | for t in int size_t unsigned long "unsigned long"; do | ||
19677 | cat >conftest.$ac_ext <<_ACEOF | ||
19678 | /* confdefs.h. */ | ||
19679 | _ACEOF | ||
19680 | cat confdefs.h >>conftest.$ac_ext | ||
19681 | cat >>conftest.$ac_ext <<_ACEOF | ||
19682 | /* end confdefs.h. */ | ||
19683 | |||
19684 | #include <sys/types.h> | ||
19685 | #include <sys/socket.h> | ||
19686 | |||
19687 | int getpeername (int, $arg2 *, $t *); | ||
19688 | |||
19689 | int | ||
19690 | main () | ||
19691 | { | ||
19692 | |||
19693 | $t len; | ||
19694 | getpeername(0,0,&len); | ||
19695 | |||
19696 | ; | ||
19697 | return 0; | ||
19698 | } | ||
19699 | _ACEOF | ||
19700 | rm -f conftest.$ac_objext | ||
19701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19702 | (eval $ac_compile) 2>conftest.er1 | ||
19703 | ac_status=$? | ||
19704 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19705 | rm -f conftest.er1 | ||
19706 | cat conftest.err >&5 | ||
19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19708 | (exit $ac_status); } && | ||
19709 | { ac_try='test -z "$ac_c_werror_flag" | ||
19710 | || test ! -s conftest.err' | ||
19711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19712 | (eval $ac_try) 2>&5 | ||
19713 | ac_status=$? | ||
19714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19715 | (exit $ac_status); }; } && | ||
19716 | { ac_try='test -s conftest.$ac_objext' | ||
19717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19718 | (eval $ac_try) 2>&5 | ||
19719 | ac_status=$? | ||
19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19721 | (exit $ac_status); }; }; then | ||
19722 | |||
19723 | curl_cv_socklen_t_equiv="$t" | ||
19724 | break | ||
19725 | |||
19726 | else | ||
19727 | echo "$as_me: failed program was:" >&5 | ||
19728 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19729 | |||
19730 | fi | ||
19731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19732 | done | ||
19733 | done | ||
19734 | |||
19735 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
19736 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
19737 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
19738 | { (exit 1); exit 1; }; } | ||
19739 | fi | ||
19740 | |||
19741 | fi | ||
19742 | |||
19743 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
19744 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
19745 | |||
19746 | cat >>confdefs.h <<_ACEOF | ||
19747 | #define socklen_t $curl_cv_socklen_t_equiv | ||
19748 | _ACEOF | ||
19749 | |||
19750 | fi | ||
19751 | |||
19752 | |||
19753 | |||
19754 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
19755 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
19756 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
19757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19758 | else | ||
19759 | cat >conftest.$ac_ext <<_ACEOF | ||
19760 | /* confdefs.h. */ | ||
19761 | _ACEOF | ||
19762 | cat confdefs.h >>conftest.$ac_ext | ||
19763 | cat >>conftest.$ac_ext <<_ACEOF | ||
19764 | /* end confdefs.h. */ | ||
19765 | #include <signal.h> | ||
19766 | |||
19767 | int | ||
19768 | main () | ||
19769 | { | ||
19770 | if ((sig_atomic_t *) 0) | ||
19771 | return 0; | ||
19772 | if (sizeof (sig_atomic_t)) | ||
19773 | return 0; | ||
19774 | ; | ||
19775 | return 0; | ||
19776 | } | ||
19777 | _ACEOF | ||
19778 | rm -f conftest.$ac_objext | ||
19779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19780 | (eval $ac_compile) 2>conftest.er1 | ||
19781 | ac_status=$? | ||
19782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19783 | rm -f conftest.er1 | ||
19784 | cat conftest.err >&5 | ||
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19786 | (exit $ac_status); } && | ||
19787 | { ac_try='test -z "$ac_c_werror_flag" | ||
19788 | || test ! -s conftest.err' | ||
19789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19790 | (eval $ac_try) 2>&5 | ||
19791 | ac_status=$? | ||
19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19793 | (exit $ac_status); }; } && | ||
19794 | { ac_try='test -s conftest.$ac_objext' | ||
19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19796 | (eval $ac_try) 2>&5 | ||
19797 | ac_status=$? | ||
19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19799 | (exit $ac_status); }; }; then | ||
19800 | ac_cv_type_sig_atomic_t=yes | ||
19801 | else | ||
19802 | echo "$as_me: failed program was:" >&5 | ||
19803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19804 | |||
19805 | ac_cv_type_sig_atomic_t=no | ||
19806 | fi | ||
19807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19808 | fi | ||
19809 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
19810 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
19811 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
19812 | |||
19813 | cat >>confdefs.h <<_ACEOF | ||
19814 | #define HAVE_SIG_ATOMIC_T 1 | ||
19815 | _ACEOF | ||
19816 | |||
19817 | |||
19818 | fi | ||
19819 | |||
19820 | |||
19821 | echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
19822 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 | ||
19823 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
19824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19825 | else | ||
19826 | cat >conftest.$ac_ext <<_ACEOF | ||
19827 | /* confdefs.h. */ | ||
19828 | _ACEOF | ||
19829 | cat confdefs.h >>conftest.$ac_ext | ||
19830 | cat >>conftest.$ac_ext <<_ACEOF | ||
19831 | /* end confdefs.h. */ | ||
19832 | #include <sys/types.h> | ||
19833 | #include <netinet/in.h> | ||
19834 | |||
19835 | int | ||
19836 | main () | ||
19837 | { | ||
19838 | if ((in_addr_t *) 0) | ||
19839 | return 0; | ||
19840 | if (sizeof (in_addr_t)) | ||
19841 | return 0; | ||
19842 | ; | ||
19843 | return 0; | ||
19844 | } | ||
19845 | _ACEOF | ||
19846 | rm -f conftest.$ac_objext | ||
19847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19848 | (eval $ac_compile) 2>conftest.er1 | ||
19849 | ac_status=$? | ||
19850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19851 | rm -f conftest.er1 | ||
19852 | cat conftest.err >&5 | ||
19853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19854 | (exit $ac_status); } && | ||
19855 | { ac_try='test -z "$ac_c_werror_flag" | ||
19856 | || test ! -s conftest.err' | ||
19857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19858 | (eval $ac_try) 2>&5 | ||
19859 | ac_status=$? | ||
19860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19861 | (exit $ac_status); }; } && | ||
19862 | { ac_try='test -s conftest.$ac_objext' | ||
19863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19864 | (eval $ac_try) 2>&5 | ||
19865 | ac_status=$? | ||
19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19867 | (exit $ac_status); }; }; then | ||
19868 | ac_cv_type_in_addr_t=yes | ||
19869 | else | ||
19870 | echo "$as_me: failed program was:" >&5 | ||
19871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19872 | |||
19873 | ac_cv_type_in_addr_t=no | ||
19874 | fi | ||
19875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19876 | fi | ||
19877 | echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
19878 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6 | ||
19879 | if test $ac_cv_type_in_addr_t = yes; then | ||
19880 | |||
19881 | cat >>confdefs.h <<_ACEOF | ||
19882 | #define HAVE_IN_ADDR_T 1 | ||
19883 | _ACEOF | ||
19884 | |||
19885 | |||
19886 | fi | ||
19887 | |||
19888 | |||
19889 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
19890 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
19891 | if test "${ac_cv_have_size_t+set}" = set; then | ||
19892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19893 | else | ||
19894 | |||
19895 | cat >conftest.$ac_ext <<_ACEOF | ||
19896 | /* confdefs.h. */ | ||
19897 | _ACEOF | ||
19898 | cat confdefs.h >>conftest.$ac_ext | ||
19899 | cat >>conftest.$ac_ext <<_ACEOF | ||
19900 | /* end confdefs.h. */ | ||
19901 | |||
19902 | #include <sys/types.h> | ||
19903 | |||
19904 | int | ||
19905 | main () | ||
19906 | { | ||
19907 | size_t foo; foo = 1235; | ||
19908 | ; | ||
19909 | return 0; | ||
19910 | } | ||
19911 | _ACEOF | ||
19912 | rm -f conftest.$ac_objext | ||
19913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19914 | (eval $ac_compile) 2>conftest.er1 | ||
19915 | ac_status=$? | ||
19916 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19917 | rm -f conftest.er1 | ||
19918 | cat conftest.err >&5 | ||
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19920 | (exit $ac_status); } && | ||
19921 | { ac_try='test -z "$ac_c_werror_flag" | ||
19922 | || test ! -s conftest.err' | ||
19923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19924 | (eval $ac_try) 2>&5 | ||
19925 | ac_status=$? | ||
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19927 | (exit $ac_status); }; } && | ||
19928 | { ac_try='test -s conftest.$ac_objext' | ||
19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19930 | (eval $ac_try) 2>&5 | ||
19931 | ac_status=$? | ||
19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19933 | (exit $ac_status); }; }; then | ||
19934 | ac_cv_have_size_t="yes" | ||
19935 | else | ||
19936 | echo "$as_me: failed program was:" >&5 | ||
19937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19938 | |||
19939 | ac_cv_have_size_t="no" | ||
19940 | |||
19941 | fi | ||
19942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19943 | |||
19944 | fi | ||
19945 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
19946 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
19947 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
19948 | |||
19949 | cat >>confdefs.h <<\_ACEOF | ||
19950 | #define HAVE_SIZE_T 1 | ||
19951 | _ACEOF | ||
19952 | |||
19953 | fi | ||
19954 | |||
19955 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
19956 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
19957 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
19958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19959 | else | ||
19960 | |||
19961 | cat >conftest.$ac_ext <<_ACEOF | ||
19962 | /* confdefs.h. */ | ||
19963 | _ACEOF | ||
19964 | cat confdefs.h >>conftest.$ac_ext | ||
19965 | cat >>conftest.$ac_ext <<_ACEOF | ||
19966 | /* end confdefs.h. */ | ||
19967 | |||
19968 | #include <sys/types.h> | ||
19969 | |||
19970 | int | ||
19971 | main () | ||
19972 | { | ||
19973 | ssize_t foo; foo = 1235; | ||
19974 | ; | ||
19975 | return 0; | ||
19976 | } | ||
19977 | _ACEOF | ||
19978 | rm -f conftest.$ac_objext | ||
19979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19980 | (eval $ac_compile) 2>conftest.er1 | ||
19981 | ac_status=$? | ||
19982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19983 | rm -f conftest.er1 | ||
19984 | cat conftest.err >&5 | ||
19985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19986 | (exit $ac_status); } && | ||
19987 | { ac_try='test -z "$ac_c_werror_flag" | ||
19988 | || test ! -s conftest.err' | ||
19989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19990 | (eval $ac_try) 2>&5 | ||
19991 | ac_status=$? | ||
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19993 | (exit $ac_status); }; } && | ||
19994 | { ac_try='test -s conftest.$ac_objext' | ||
19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19996 | (eval $ac_try) 2>&5 | ||
19997 | ac_status=$? | ||
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19999 | (exit $ac_status); }; }; then | ||
20000 | ac_cv_have_ssize_t="yes" | ||
20001 | else | ||
20002 | echo "$as_me: failed program was:" >&5 | ||
20003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20004 | |||
20005 | ac_cv_have_ssize_t="no" | ||
20006 | |||
20007 | fi | ||
20008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20009 | |||
20010 | fi | ||
20011 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
20012 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
20013 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
20014 | |||
20015 | cat >>confdefs.h <<\_ACEOF | ||
20016 | #define HAVE_SSIZE_T 1 | ||
20017 | _ACEOF | ||
20018 | |||
20019 | fi | ||
20020 | |||
20021 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
20022 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
20023 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
20024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20025 | else | ||
20026 | |||
20027 | cat >conftest.$ac_ext <<_ACEOF | ||
20028 | /* confdefs.h. */ | ||
20029 | _ACEOF | ||
20030 | cat confdefs.h >>conftest.$ac_ext | ||
20031 | cat >>conftest.$ac_ext <<_ACEOF | ||
20032 | /* end confdefs.h. */ | ||
20033 | |||
20034 | #include <time.h> | ||
20035 | |||
20036 | int | ||
20037 | main () | ||
20038 | { | ||
20039 | clock_t foo; foo = 1235; | ||
20040 | ; | ||
20041 | return 0; | ||
20042 | } | ||
20043 | _ACEOF | ||
20044 | rm -f conftest.$ac_objext | ||
20045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20046 | (eval $ac_compile) 2>conftest.er1 | ||
20047 | ac_status=$? | ||
20048 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20049 | rm -f conftest.er1 | ||
20050 | cat conftest.err >&5 | ||
20051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20052 | (exit $ac_status); } && | ||
20053 | { ac_try='test -z "$ac_c_werror_flag" | ||
20054 | || test ! -s conftest.err' | ||
20055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20056 | (eval $ac_try) 2>&5 | ||
20057 | ac_status=$? | ||
20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20059 | (exit $ac_status); }; } && | ||
20060 | { ac_try='test -s conftest.$ac_objext' | ||
20061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20062 | (eval $ac_try) 2>&5 | ||
20063 | ac_status=$? | ||
20064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20065 | (exit $ac_status); }; }; then | ||
20066 | ac_cv_have_clock_t="yes" | ||
20067 | else | ||
20068 | echo "$as_me: failed program was:" >&5 | ||
20069 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20070 | |||
20071 | ac_cv_have_clock_t="no" | ||
20072 | |||
20073 | fi | ||
20074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20075 | |||
20076 | fi | ||
20077 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
20078 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
20079 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
20080 | |||
20081 | cat >>confdefs.h <<\_ACEOF | ||
20082 | #define HAVE_CLOCK_T 1 | ||
20083 | _ACEOF | ||
20084 | |||
20085 | fi | ||
20086 | |||
20087 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
20088 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
20089 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
20090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20091 | else | ||
20092 | |||
20093 | cat >conftest.$ac_ext <<_ACEOF | ||
20094 | /* confdefs.h. */ | ||
20095 | _ACEOF | ||
20096 | cat confdefs.h >>conftest.$ac_ext | ||
20097 | cat >>conftest.$ac_ext <<_ACEOF | ||
20098 | /* end confdefs.h. */ | ||
20099 | |||
20100 | #include <sys/types.h> | ||
20101 | #include <sys/socket.h> | ||
20102 | |||
20103 | int | ||
20104 | main () | ||
20105 | { | ||
20106 | sa_family_t foo; foo = 1235; | ||
20107 | ; | ||
20108 | return 0; | ||
20109 | } | ||
20110 | _ACEOF | ||
20111 | rm -f conftest.$ac_objext | ||
20112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20113 | (eval $ac_compile) 2>conftest.er1 | ||
20114 | ac_status=$? | ||
20115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20116 | rm -f conftest.er1 | ||
20117 | cat conftest.err >&5 | ||
20118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20119 | (exit $ac_status); } && | ||
20120 | { ac_try='test -z "$ac_c_werror_flag" | ||
20121 | || test ! -s conftest.err' | ||
20122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20123 | (eval $ac_try) 2>&5 | ||
20124 | ac_status=$? | ||
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20126 | (exit $ac_status); }; } && | ||
20127 | { ac_try='test -s conftest.$ac_objext' | ||
20128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20129 | (eval $ac_try) 2>&5 | ||
20130 | ac_status=$? | ||
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20132 | (exit $ac_status); }; }; then | ||
20133 | ac_cv_have_sa_family_t="yes" | ||
20134 | else | ||
20135 | echo "$as_me: failed program was:" >&5 | ||
20136 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20137 | |||
20138 | cat >conftest.$ac_ext <<_ACEOF | ||
20139 | /* confdefs.h. */ | ||
20140 | _ACEOF | ||
20141 | cat confdefs.h >>conftest.$ac_ext | ||
20142 | cat >>conftest.$ac_ext <<_ACEOF | ||
20143 | /* end confdefs.h. */ | ||
20144 | |||
20145 | #include <sys/types.h> | ||
20146 | #include <sys/socket.h> | ||
20147 | #include <netinet/in.h> | ||
20148 | |||
20149 | int | ||
20150 | main () | ||
20151 | { | ||
20152 | sa_family_t foo; foo = 1235; | ||
20153 | ; | ||
20154 | return 0; | ||
20155 | } | ||
20156 | _ACEOF | ||
20157 | rm -f conftest.$ac_objext | ||
20158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20159 | (eval $ac_compile) 2>conftest.er1 | ||
20160 | ac_status=$? | ||
20161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20162 | rm -f conftest.er1 | ||
20163 | cat conftest.err >&5 | ||
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20165 | (exit $ac_status); } && | ||
20166 | { ac_try='test -z "$ac_c_werror_flag" | ||
20167 | || test ! -s conftest.err' | ||
20168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20169 | (eval $ac_try) 2>&5 | ||
20170 | ac_status=$? | ||
20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20172 | (exit $ac_status); }; } && | ||
20173 | { ac_try='test -s conftest.$ac_objext' | ||
20174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20175 | (eval $ac_try) 2>&5 | ||
20176 | ac_status=$? | ||
20177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20178 | (exit $ac_status); }; }; then | ||
20179 | ac_cv_have_sa_family_t="yes" | ||
20180 | else | ||
20181 | echo "$as_me: failed program was:" >&5 | ||
20182 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20183 | |||
20184 | ac_cv_have_sa_family_t="no" | ||
20185 | |||
20186 | fi | ||
20187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20188 | |||
20189 | fi | ||
20190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20191 | |||
20192 | fi | ||
20193 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
20194 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
20195 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
20196 | |||
20197 | cat >>confdefs.h <<\_ACEOF | ||
20198 | #define HAVE_SA_FAMILY_T 1 | ||
20199 | _ACEOF | ||
20200 | |||
20201 | fi | ||
20202 | |||
20203 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
20204 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
20205 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
20206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20207 | else | ||
20208 | |||
20209 | cat >conftest.$ac_ext <<_ACEOF | ||
20210 | /* confdefs.h. */ | ||
20211 | _ACEOF | ||
20212 | cat confdefs.h >>conftest.$ac_ext | ||
20213 | cat >>conftest.$ac_ext <<_ACEOF | ||
20214 | /* end confdefs.h. */ | ||
20215 | |||
20216 | #include <sys/types.h> | ||
20217 | |||
20218 | int | ||
20219 | main () | ||
20220 | { | ||
20221 | pid_t foo; foo = 1235; | ||
20222 | ; | ||
20223 | return 0; | ||
20224 | } | ||
20225 | _ACEOF | ||
20226 | rm -f conftest.$ac_objext | ||
20227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20228 | (eval $ac_compile) 2>conftest.er1 | ||
20229 | ac_status=$? | ||
20230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20231 | rm -f conftest.er1 | ||
20232 | cat conftest.err >&5 | ||
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20234 | (exit $ac_status); } && | ||
20235 | { ac_try='test -z "$ac_c_werror_flag" | ||
20236 | || test ! -s conftest.err' | ||
20237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20238 | (eval $ac_try) 2>&5 | ||
20239 | ac_status=$? | ||
20240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20241 | (exit $ac_status); }; } && | ||
20242 | { ac_try='test -s conftest.$ac_objext' | ||
20243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20244 | (eval $ac_try) 2>&5 | ||
20245 | ac_status=$? | ||
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20247 | (exit $ac_status); }; }; then | ||
20248 | ac_cv_have_pid_t="yes" | ||
20249 | else | ||
20250 | echo "$as_me: failed program was:" >&5 | ||
20251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20252 | |||
20253 | ac_cv_have_pid_t="no" | ||
20254 | |||
20255 | fi | ||
20256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20257 | |||
20258 | fi | ||
20259 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
20260 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
20261 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
20262 | |||
20263 | cat >>confdefs.h <<\_ACEOF | ||
20264 | #define HAVE_PID_T 1 | ||
20265 | _ACEOF | ||
20266 | |||
20267 | fi | ||
20268 | |||
20269 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
20270 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
20271 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
20272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20273 | else | ||
20274 | |||
20275 | cat >conftest.$ac_ext <<_ACEOF | ||
20276 | /* confdefs.h. */ | ||
20277 | _ACEOF | ||
20278 | cat confdefs.h >>conftest.$ac_ext | ||
20279 | cat >>conftest.$ac_ext <<_ACEOF | ||
20280 | /* end confdefs.h. */ | ||
20281 | |||
20282 | #include <sys/types.h> | ||
20283 | |||
20284 | int | ||
20285 | main () | ||
20286 | { | ||
20287 | mode_t foo; foo = 1235; | ||
20288 | ; | ||
20289 | return 0; | ||
20290 | } | ||
20291 | _ACEOF | ||
20292 | rm -f conftest.$ac_objext | ||
20293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20294 | (eval $ac_compile) 2>conftest.er1 | ||
20295 | ac_status=$? | ||
20296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20297 | rm -f conftest.er1 | ||
20298 | cat conftest.err >&5 | ||
20299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20300 | (exit $ac_status); } && | ||
20301 | { ac_try='test -z "$ac_c_werror_flag" | ||
20302 | || test ! -s conftest.err' | ||
20303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20304 | (eval $ac_try) 2>&5 | ||
20305 | ac_status=$? | ||
20306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20307 | (exit $ac_status); }; } && | ||
20308 | { ac_try='test -s conftest.$ac_objext' | ||
20309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20310 | (eval $ac_try) 2>&5 | ||
20311 | ac_status=$? | ||
20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20313 | (exit $ac_status); }; }; then | ||
20314 | ac_cv_have_mode_t="yes" | ||
20315 | else | ||
20316 | echo "$as_me: failed program was:" >&5 | ||
20317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20318 | |||
20319 | ac_cv_have_mode_t="no" | ||
20320 | |||
20321 | fi | ||
20322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20323 | |||
20324 | fi | ||
20325 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
20326 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
20327 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
20328 | |||
20329 | cat >>confdefs.h <<\_ACEOF | ||
20330 | #define HAVE_MODE_T 1 | ||
20331 | _ACEOF | ||
20332 | |||
20333 | fi | ||
20334 | |||
20335 | |||
20336 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
20337 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
20338 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
20339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20340 | else | ||
20341 | |||
20342 | cat >conftest.$ac_ext <<_ACEOF | ||
20343 | /* confdefs.h. */ | ||
20344 | _ACEOF | ||
20345 | cat confdefs.h >>conftest.$ac_ext | ||
20346 | cat >>conftest.$ac_ext <<_ACEOF | ||
20347 | /* end confdefs.h. */ | ||
20348 | |||
20349 | #include <sys/types.h> | ||
20350 | #include <sys/socket.h> | ||
20351 | |||
20352 | int | ||
20353 | main () | ||
20354 | { | ||
20355 | struct sockaddr_storage s; | ||
20356 | ; | ||
20357 | return 0; | ||
20358 | } | ||
20359 | _ACEOF | ||
20360 | rm -f conftest.$ac_objext | ||
20361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20362 | (eval $ac_compile) 2>conftest.er1 | ||
20363 | ac_status=$? | ||
20364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20365 | rm -f conftest.er1 | ||
20366 | cat conftest.err >&5 | ||
20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20368 | (exit $ac_status); } && | ||
20369 | { ac_try='test -z "$ac_c_werror_flag" | ||
20370 | || test ! -s conftest.err' | ||
20371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20372 | (eval $ac_try) 2>&5 | ||
20373 | ac_status=$? | ||
20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20375 | (exit $ac_status); }; } && | ||
20376 | { ac_try='test -s conftest.$ac_objext' | ||
20377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20378 | (eval $ac_try) 2>&5 | ||
20379 | ac_status=$? | ||
20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20381 | (exit $ac_status); }; }; then | ||
20382 | ac_cv_have_struct_sockaddr_storage="yes" | ||
20383 | else | ||
20384 | echo "$as_me: failed program was:" >&5 | ||
20385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20386 | |||
20387 | ac_cv_have_struct_sockaddr_storage="no" | ||
20388 | |||
20389 | fi | ||
20390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20391 | |||
20392 | fi | ||
20393 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
20394 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
20395 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
20396 | |||
20397 | cat >>confdefs.h <<\_ACEOF | ||
20398 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
20399 | _ACEOF | ||
20400 | |||
20401 | fi | ||
20402 | |||
20403 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
20404 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
20405 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
20406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20407 | else | ||
20408 | |||
20409 | cat >conftest.$ac_ext <<_ACEOF | ||
20410 | /* confdefs.h. */ | ||
20411 | _ACEOF | ||
20412 | cat confdefs.h >>conftest.$ac_ext | ||
20413 | cat >>conftest.$ac_ext <<_ACEOF | ||
20414 | /* end confdefs.h. */ | ||
20415 | |||
20416 | #include <sys/types.h> | ||
20417 | #include <netinet/in.h> | ||
20418 | |||
20419 | int | ||
20420 | main () | ||
20421 | { | ||
20422 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
20423 | ; | ||
20424 | return 0; | ||
20425 | } | ||
20426 | _ACEOF | ||
20427 | rm -f conftest.$ac_objext | ||
20428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20429 | (eval $ac_compile) 2>conftest.er1 | ||
20430 | ac_status=$? | ||
20431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20432 | rm -f conftest.er1 | ||
20433 | cat conftest.err >&5 | ||
20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20435 | (exit $ac_status); } && | ||
20436 | { ac_try='test -z "$ac_c_werror_flag" | ||
20437 | || test ! -s conftest.err' | ||
20438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20439 | (eval $ac_try) 2>&5 | ||
20440 | ac_status=$? | ||
20441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20442 | (exit $ac_status); }; } && | ||
20443 | { ac_try='test -s conftest.$ac_objext' | ||
20444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20445 | (eval $ac_try) 2>&5 | ||
20446 | ac_status=$? | ||
20447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20448 | (exit $ac_status); }; }; then | ||
20449 | ac_cv_have_struct_sockaddr_in6="yes" | ||
20450 | else | ||
20451 | echo "$as_me: failed program was:" >&5 | ||
20452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20453 | |||
20454 | ac_cv_have_struct_sockaddr_in6="no" | ||
20455 | |||
20456 | fi | ||
20457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20458 | |||
20459 | fi | ||
20460 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
20461 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
20462 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
20463 | |||
20464 | cat >>confdefs.h <<\_ACEOF | ||
20465 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
20466 | _ACEOF | ||
20467 | |||
20468 | fi | ||
20469 | |||
20470 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
20471 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
20472 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
20473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20474 | else | ||
20475 | |||
20476 | cat >conftest.$ac_ext <<_ACEOF | ||
20477 | /* confdefs.h. */ | ||
20478 | _ACEOF | ||
20479 | cat confdefs.h >>conftest.$ac_ext | ||
20480 | cat >>conftest.$ac_ext <<_ACEOF | ||
20481 | /* end confdefs.h. */ | ||
20482 | |||
20483 | #include <sys/types.h> | ||
20484 | #include <netinet/in.h> | ||
20485 | |||
20486 | int | ||
20487 | main () | ||
20488 | { | ||
20489 | struct in6_addr s; s.s6_addr[0] = 0; | ||
20490 | ; | ||
20491 | return 0; | ||
20492 | } | ||
20493 | _ACEOF | ||
20494 | rm -f conftest.$ac_objext | ||
20495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20496 | (eval $ac_compile) 2>conftest.er1 | ||
20497 | ac_status=$? | ||
20498 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20499 | rm -f conftest.er1 | ||
20500 | cat conftest.err >&5 | ||
20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20502 | (exit $ac_status); } && | ||
20503 | { ac_try='test -z "$ac_c_werror_flag" | ||
20504 | || test ! -s conftest.err' | ||
20505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20506 | (eval $ac_try) 2>&5 | ||
20507 | ac_status=$? | ||
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20509 | (exit $ac_status); }; } && | ||
20510 | { ac_try='test -s conftest.$ac_objext' | ||
20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20512 | (eval $ac_try) 2>&5 | ||
20513 | ac_status=$? | ||
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20515 | (exit $ac_status); }; }; then | ||
20516 | ac_cv_have_struct_in6_addr="yes" | ||
20517 | else | ||
20518 | echo "$as_me: failed program was:" >&5 | ||
20519 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20520 | |||
20521 | ac_cv_have_struct_in6_addr="no" | ||
20522 | |||
20523 | fi | ||
20524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20525 | |||
20526 | fi | ||
20527 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
20528 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
20529 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
20530 | |||
20531 | cat >>confdefs.h <<\_ACEOF | ||
20532 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
20533 | _ACEOF | ||
20534 | |||
20535 | fi | ||
20536 | |||
20537 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
20538 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
20539 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
20540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20541 | else | ||
20542 | |||
20543 | cat >conftest.$ac_ext <<_ACEOF | ||
20544 | /* confdefs.h. */ | ||
20545 | _ACEOF | ||
20546 | cat confdefs.h >>conftest.$ac_ext | ||
20547 | cat >>conftest.$ac_ext <<_ACEOF | ||
20548 | /* end confdefs.h. */ | ||
20549 | |||
20550 | #include <sys/types.h> | ||
20551 | #include <sys/socket.h> | ||
20552 | #include <netdb.h> | ||
20553 | |||
20554 | int | ||
20555 | main () | ||
20556 | { | ||
20557 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
20558 | ; | ||
20559 | return 0; | ||
20560 | } | ||
20561 | _ACEOF | ||
20562 | rm -f conftest.$ac_objext | ||
20563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20564 | (eval $ac_compile) 2>conftest.er1 | ||
20565 | ac_status=$? | ||
20566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20567 | rm -f conftest.er1 | ||
20568 | cat conftest.err >&5 | ||
20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20570 | (exit $ac_status); } && | ||
20571 | { ac_try='test -z "$ac_c_werror_flag" | ||
20572 | || test ! -s conftest.err' | ||
20573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20574 | (eval $ac_try) 2>&5 | ||
20575 | ac_status=$? | ||
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20577 | (exit $ac_status); }; } && | ||
20578 | { ac_try='test -s conftest.$ac_objext' | ||
20579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20580 | (eval $ac_try) 2>&5 | ||
20581 | ac_status=$? | ||
20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20583 | (exit $ac_status); }; }; then | ||
20584 | ac_cv_have_struct_addrinfo="yes" | ||
20585 | else | ||
20586 | echo "$as_me: failed program was:" >&5 | ||
20587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20588 | |||
20589 | ac_cv_have_struct_addrinfo="no" | ||
20590 | |||
20591 | fi | ||
20592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20593 | |||
20594 | fi | ||
20595 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
20596 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
20597 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
20598 | |||
20599 | cat >>confdefs.h <<\_ACEOF | ||
20600 | #define HAVE_STRUCT_ADDRINFO 1 | ||
20601 | _ACEOF | ||
20602 | |||
20603 | fi | ||
20604 | |||
20605 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
20606 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
20607 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
20608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20609 | else | ||
20610 | |||
20611 | cat >conftest.$ac_ext <<_ACEOF | ||
20612 | /* confdefs.h. */ | ||
20613 | _ACEOF | ||
20614 | cat confdefs.h >>conftest.$ac_ext | ||
20615 | cat >>conftest.$ac_ext <<_ACEOF | ||
20616 | /* end confdefs.h. */ | ||
20617 | #include <sys/time.h> | ||
20618 | int | ||
20619 | main () | ||
20620 | { | ||
20621 | struct timeval tv; tv.tv_sec = 1; | ||
20622 | ; | ||
20623 | return 0; | ||
20624 | } | ||
20625 | _ACEOF | ||
20626 | rm -f conftest.$ac_objext | ||
20627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20628 | (eval $ac_compile) 2>conftest.er1 | ||
20629 | ac_status=$? | ||
20630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20631 | rm -f conftest.er1 | ||
20632 | cat conftest.err >&5 | ||
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20634 | (exit $ac_status); } && | ||
20635 | { ac_try='test -z "$ac_c_werror_flag" | ||
20636 | || test ! -s conftest.err' | ||
20637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20638 | (eval $ac_try) 2>&5 | ||
20639 | ac_status=$? | ||
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20641 | (exit $ac_status); }; } && | ||
20642 | { ac_try='test -s conftest.$ac_objext' | ||
20643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20644 | (eval $ac_try) 2>&5 | ||
20645 | ac_status=$? | ||
20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20647 | (exit $ac_status); }; }; then | ||
20648 | ac_cv_have_struct_timeval="yes" | ||
20649 | else | ||
20650 | echo "$as_me: failed program was:" >&5 | ||
20651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20652 | |||
20653 | ac_cv_have_struct_timeval="no" | ||
20654 | |||
20655 | fi | ||
20656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20657 | |||
20658 | fi | ||
20659 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
20660 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
20661 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
20662 | |||
20663 | cat >>confdefs.h <<\_ACEOF | ||
20664 | #define HAVE_STRUCT_TIMEVAL 1 | ||
20665 | _ACEOF | ||
20666 | |||
20667 | have_struct_timeval=1 | ||
20668 | fi | ||
20669 | |||
20670 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
20671 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
20672 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20674 | else | ||
20675 | cat >conftest.$ac_ext <<_ACEOF | ||
20676 | /* confdefs.h. */ | ||
20677 | _ACEOF | ||
20678 | cat confdefs.h >>conftest.$ac_ext | ||
20679 | cat >>conftest.$ac_ext <<_ACEOF | ||
20680 | /* end confdefs.h. */ | ||
20681 | $ac_includes_default | ||
20682 | int | ||
20683 | main () | ||
20684 | { | ||
20685 | if ((struct timespec *) 0) | ||
20686 | return 0; | ||
20687 | if (sizeof (struct timespec)) | ||
20688 | return 0; | ||
20689 | ; | ||
20690 | return 0; | ||
20691 | } | ||
20692 | _ACEOF | ||
20693 | rm -f conftest.$ac_objext | ||
20694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20695 | (eval $ac_compile) 2>conftest.er1 | ||
20696 | ac_status=$? | ||
20697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20698 | rm -f conftest.er1 | ||
20699 | cat conftest.err >&5 | ||
20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20701 | (exit $ac_status); } && | ||
20702 | { ac_try='test -z "$ac_c_werror_flag" | ||
20703 | || test ! -s conftest.err' | ||
20704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20705 | (eval $ac_try) 2>&5 | ||
20706 | ac_status=$? | ||
20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20708 | (exit $ac_status); }; } && | ||
20709 | { ac_try='test -s conftest.$ac_objext' | ||
20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20711 | (eval $ac_try) 2>&5 | ||
20712 | ac_status=$? | ||
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20714 | (exit $ac_status); }; }; then | ||
20715 | ac_cv_type_struct_timespec=yes | ||
20716 | else | ||
20717 | echo "$as_me: failed program was:" >&5 | ||
20718 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20719 | |||
20720 | ac_cv_type_struct_timespec=no | ||
20721 | fi | ||
20722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20723 | fi | ||
20724 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
20725 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
20726 | if test $ac_cv_type_struct_timespec = yes; then | ||
20727 | |||
20728 | cat >>confdefs.h <<_ACEOF | ||
20729 | #define HAVE_STRUCT_TIMESPEC 1 | ||
20730 | _ACEOF | ||
20731 | |||
20732 | |||
20733 | fi | ||
20734 | |||
20735 | |||
20736 | # We need int64_t or else certian parts of the compile will fail. | ||
20737 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
20738 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
20739 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
20740 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
20741 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
20742 | echo "" | ||
20743 | exit 1; | ||
20744 | else | ||
20745 | if test "$cross_compiling" = yes; then | ||
20746 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
20747 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
20748 | |||
20749 | else | ||
20750 | cat >conftest.$ac_ext <<_ACEOF | ||
20751 | /* confdefs.h. */ | ||
20752 | _ACEOF | ||
20753 | cat confdefs.h >>conftest.$ac_ext | ||
20754 | cat >>conftest.$ac_ext <<_ACEOF | ||
20755 | /* end confdefs.h. */ | ||
20756 | |||
20757 | #include <stdio.h> | ||
20758 | #include <string.h> | ||
20759 | #ifdef HAVE_SNPRINTF | ||
20760 | main() | ||
20761 | { | ||
20762 | char buf[50]; | ||
20763 | char expected_out[50]; | ||
20764 | int mazsize = 50 ; | ||
20765 | #if (SIZEOF_LONG_INT == 8) | ||
20766 | long int num = 0x7fffffffffffffff; | ||
20767 | #else | ||
20768 | long long num = 0x7fffffffffffffffll; | ||
20769 | #endif | ||
20770 | strcpy(expected_out, "9223372036854775807"); | ||
20771 | snprintf(buf, mazsize, "%lld", num); | ||
20772 | if(strcmp(buf, expected_out) != 0) | ||
20773 | exit(1); | ||
20774 | exit(0); | ||
20775 | } | ||
20776 | #else | ||
20777 | main() { exit(0); } | ||
20778 | #endif | ||
20779 | |||
20780 | _ACEOF | ||
20781 | rm -f conftest$ac_exeext | ||
20782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20783 | (eval $ac_link) 2>&5 | ||
20784 | ac_status=$? | ||
20785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20788 | (eval $ac_try) 2>&5 | ||
20789 | ac_status=$? | ||
20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20791 | (exit $ac_status); }; }; then | ||
20792 | true | ||
20793 | else | ||
20794 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20795 | echo "$as_me: failed program was:" >&5 | ||
20796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20797 | |||
20798 | ( exit $ac_status ) | ||
20799 | cat >>confdefs.h <<\_ACEOF | ||
20800 | #define BROKEN_SNPRINTF 1 | ||
20801 | _ACEOF | ||
20802 | |||
20803 | fi | ||
20804 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20805 | fi | ||
20806 | fi | ||
20807 | |||
20808 | |||
20809 | # look for field 'ut_host' in header 'utmp.h' | ||
20810 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20811 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
20812 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
20813 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
20814 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20816 | else | ||
20817 | |||
20818 | cat >conftest.$ac_ext <<_ACEOF | ||
20819 | /* confdefs.h. */ | ||
20820 | _ACEOF | ||
20821 | cat confdefs.h >>conftest.$ac_ext | ||
20822 | cat >>conftest.$ac_ext <<_ACEOF | ||
20823 | /* end confdefs.h. */ | ||
20824 | #include <utmp.h> | ||
20825 | |||
20826 | _ACEOF | ||
20827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20828 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
20829 | eval "$ossh_varname=yes" | ||
20830 | else | ||
20831 | eval "$ossh_varname=no" | ||
20832 | fi | ||
20833 | rm -f conftest* | ||
20834 | |||
20835 | fi | ||
20836 | |||
20837 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20838 | if test -n "`echo $ossh_varname`"; then | ||
20839 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20840 | echo "${ECHO_T}$ossh_result" >&6 | ||
20841 | if test "x$ossh_result" = "xyes"; then | ||
20842 | |||
20843 | cat >>confdefs.h <<\_ACEOF | ||
20844 | #define HAVE_HOST_IN_UTMP 1 | ||
20845 | _ACEOF | ||
20846 | |||
20847 | fi | ||
20848 | else | ||
20849 | echo "$as_me:$LINENO: result: no" >&5 | ||
20850 | echo "${ECHO_T}no" >&6 | ||
20851 | fi | ||
20852 | |||
20853 | |||
20854 | # look for field 'ut_host' in header 'utmpx.h' | ||
20855 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20856 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
20857 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
20858 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
20859 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20861 | else | ||
20862 | |||
20863 | cat >conftest.$ac_ext <<_ACEOF | ||
20864 | /* confdefs.h. */ | ||
20865 | _ACEOF | ||
20866 | cat confdefs.h >>conftest.$ac_ext | ||
20867 | cat >>conftest.$ac_ext <<_ACEOF | ||
20868 | /* end confdefs.h. */ | ||
20869 | #include <utmpx.h> | ||
20870 | |||
20871 | _ACEOF | ||
20872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20873 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
20874 | eval "$ossh_varname=yes" | ||
20875 | else | ||
20876 | eval "$ossh_varname=no" | ||
20877 | fi | ||
20878 | rm -f conftest* | ||
20879 | |||
20880 | fi | ||
20881 | |||
20882 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20883 | if test -n "`echo $ossh_varname`"; then | ||
20884 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20885 | echo "${ECHO_T}$ossh_result" >&6 | ||
20886 | if test "x$ossh_result" = "xyes"; then | ||
20887 | |||
20888 | cat >>confdefs.h <<\_ACEOF | ||
20889 | #define HAVE_HOST_IN_UTMPX 1 | ||
20890 | _ACEOF | ||
20891 | |||
20892 | fi | ||
20893 | else | ||
20894 | echo "$as_me:$LINENO: result: no" >&5 | ||
20895 | echo "${ECHO_T}no" >&6 | ||
20896 | fi | ||
20897 | |||
20898 | |||
20899 | # look for field 'syslen' in header 'utmpx.h' | ||
20900 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20901 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
20902 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
20903 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
20904 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20906 | else | ||
20907 | |||
20908 | cat >conftest.$ac_ext <<_ACEOF | ||
20909 | /* confdefs.h. */ | ||
20910 | _ACEOF | ||
20911 | cat confdefs.h >>conftest.$ac_ext | ||
20912 | cat >>conftest.$ac_ext <<_ACEOF | ||
20913 | /* end confdefs.h. */ | ||
20914 | #include <utmpx.h> | ||
20915 | |||
20916 | _ACEOF | ||
20917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20918 | $EGREP "syslen" >/dev/null 2>&1; then | ||
20919 | eval "$ossh_varname=yes" | ||
20920 | else | ||
20921 | eval "$ossh_varname=no" | ||
20922 | fi | ||
20923 | rm -f conftest* | ||
20924 | |||
20925 | fi | ||
20926 | |||
20927 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20928 | if test -n "`echo $ossh_varname`"; then | ||
20929 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20930 | echo "${ECHO_T}$ossh_result" >&6 | ||
20931 | if test "x$ossh_result" = "xyes"; then | ||
20932 | |||
20933 | cat >>confdefs.h <<\_ACEOF | ||
20934 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
20935 | _ACEOF | ||
20936 | |||
20937 | fi | ||
20938 | else | ||
20939 | echo "$as_me:$LINENO: result: no" >&5 | ||
20940 | echo "${ECHO_T}no" >&6 | ||
20941 | fi | ||
20942 | |||
20943 | |||
20944 | # look for field 'ut_pid' in header 'utmp.h' | ||
20945 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20946 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
20947 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
20948 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
20949 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20951 | else | ||
20952 | |||
20953 | cat >conftest.$ac_ext <<_ACEOF | ||
20954 | /* confdefs.h. */ | ||
20955 | _ACEOF | ||
20956 | cat confdefs.h >>conftest.$ac_ext | ||
20957 | cat >>conftest.$ac_ext <<_ACEOF | ||
20958 | /* end confdefs.h. */ | ||
20959 | #include <utmp.h> | ||
20960 | |||
20961 | _ACEOF | ||
20962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20963 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
20964 | eval "$ossh_varname=yes" | ||
20965 | else | ||
20966 | eval "$ossh_varname=no" | ||
20967 | fi | ||
20968 | rm -f conftest* | ||
20969 | |||
20970 | fi | ||
20971 | |||
20972 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20973 | if test -n "`echo $ossh_varname`"; then | ||
20974 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20975 | echo "${ECHO_T}$ossh_result" >&6 | ||
20976 | if test "x$ossh_result" = "xyes"; then | ||
20977 | |||
20978 | cat >>confdefs.h <<\_ACEOF | ||
20979 | #define HAVE_PID_IN_UTMP 1 | ||
20980 | _ACEOF | ||
20981 | |||
20982 | fi | ||
20983 | else | ||
20984 | echo "$as_me:$LINENO: result: no" >&5 | ||
20985 | echo "${ECHO_T}no" >&6 | ||
20986 | fi | ||
20987 | |||
20988 | |||
20989 | # look for field 'ut_type' in header 'utmp.h' | ||
20990 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20991 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
20992 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
20993 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
20994 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20996 | else | ||
20997 | |||
20998 | cat >conftest.$ac_ext <<_ACEOF | ||
20999 | /* confdefs.h. */ | ||
21000 | _ACEOF | ||
21001 | cat confdefs.h >>conftest.$ac_ext | ||
21002 | cat >>conftest.$ac_ext <<_ACEOF | ||
21003 | /* end confdefs.h. */ | ||
21004 | #include <utmp.h> | ||
21005 | |||
21006 | _ACEOF | ||
21007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21008 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
21009 | eval "$ossh_varname=yes" | ||
21010 | else | ||
21011 | eval "$ossh_varname=no" | ||
21012 | fi | ||
21013 | rm -f conftest* | ||
21014 | |||
21015 | fi | ||
21016 | |||
21017 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21018 | if test -n "`echo $ossh_varname`"; then | ||
21019 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21020 | echo "${ECHO_T}$ossh_result" >&6 | ||
21021 | if test "x$ossh_result" = "xyes"; then | ||
21022 | |||
21023 | cat >>confdefs.h <<\_ACEOF | ||
21024 | #define HAVE_TYPE_IN_UTMP 1 | ||
21025 | _ACEOF | ||
21026 | |||
21027 | fi | ||
21028 | else | ||
21029 | echo "$as_me:$LINENO: result: no" >&5 | ||
21030 | echo "${ECHO_T}no" >&6 | ||
21031 | fi | ||
21032 | |||
21033 | |||
21034 | # look for field 'ut_type' in header 'utmpx.h' | ||
21035 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21036 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
21037 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
21038 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
21039 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21041 | else | ||
21042 | |||
21043 | cat >conftest.$ac_ext <<_ACEOF | ||
21044 | /* confdefs.h. */ | ||
21045 | _ACEOF | ||
21046 | cat confdefs.h >>conftest.$ac_ext | ||
21047 | cat >>conftest.$ac_ext <<_ACEOF | ||
21048 | /* end confdefs.h. */ | ||
21049 | #include <utmpx.h> | ||
21050 | |||
21051 | _ACEOF | ||
21052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21053 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
21054 | eval "$ossh_varname=yes" | ||
21055 | else | ||
21056 | eval "$ossh_varname=no" | ||
21057 | fi | ||
21058 | rm -f conftest* | ||
21059 | |||
21060 | fi | ||
21061 | |||
21062 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21063 | if test -n "`echo $ossh_varname`"; then | ||
21064 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21065 | echo "${ECHO_T}$ossh_result" >&6 | ||
21066 | if test "x$ossh_result" = "xyes"; then | ||
21067 | |||
21068 | cat >>confdefs.h <<\_ACEOF | ||
21069 | #define HAVE_TYPE_IN_UTMPX 1 | ||
21070 | _ACEOF | ||
21071 | |||
21072 | fi | ||
21073 | else | ||
21074 | echo "$as_me:$LINENO: result: no" >&5 | ||
21075 | echo "${ECHO_T}no" >&6 | ||
21076 | fi | ||
21077 | |||
21078 | |||
21079 | # look for field 'ut_tv' in header 'utmp.h' | ||
21080 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21081 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
21082 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
21083 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
21084 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21086 | else | ||
21087 | |||
21088 | cat >conftest.$ac_ext <<_ACEOF | ||
21089 | /* confdefs.h. */ | ||
21090 | _ACEOF | ||
21091 | cat confdefs.h >>conftest.$ac_ext | ||
21092 | cat >>conftest.$ac_ext <<_ACEOF | ||
21093 | /* end confdefs.h. */ | ||
21094 | #include <utmp.h> | ||
21095 | |||
21096 | _ACEOF | ||
21097 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21098 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
21099 | eval "$ossh_varname=yes" | ||
21100 | else | ||
21101 | eval "$ossh_varname=no" | ||
21102 | fi | ||
21103 | rm -f conftest* | ||
21104 | |||
21105 | fi | ||
21106 | |||
21107 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21108 | if test -n "`echo $ossh_varname`"; then | ||
21109 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21110 | echo "${ECHO_T}$ossh_result" >&6 | ||
21111 | if test "x$ossh_result" = "xyes"; then | ||
21112 | |||
21113 | cat >>confdefs.h <<\_ACEOF | ||
21114 | #define HAVE_TV_IN_UTMP 1 | ||
21115 | _ACEOF | ||
21116 | |||
21117 | fi | ||
21118 | else | ||
21119 | echo "$as_me:$LINENO: result: no" >&5 | ||
21120 | echo "${ECHO_T}no" >&6 | ||
21121 | fi | ||
21122 | |||
21123 | |||
21124 | # look for field 'ut_id' in header 'utmp.h' | ||
21125 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21126 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
21127 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
21128 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
21129 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21131 | else | ||
21132 | |||
21133 | cat >conftest.$ac_ext <<_ACEOF | ||
21134 | /* confdefs.h. */ | ||
21135 | _ACEOF | ||
21136 | cat confdefs.h >>conftest.$ac_ext | ||
21137 | cat >>conftest.$ac_ext <<_ACEOF | ||
21138 | /* end confdefs.h. */ | ||
21139 | #include <utmp.h> | ||
21140 | |||
21141 | _ACEOF | ||
21142 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21143 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
21144 | eval "$ossh_varname=yes" | ||
21145 | else | ||
21146 | eval "$ossh_varname=no" | ||
21147 | fi | ||
21148 | rm -f conftest* | ||
21149 | |||
21150 | fi | ||
21151 | |||
21152 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21153 | if test -n "`echo $ossh_varname`"; then | ||
21154 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21155 | echo "${ECHO_T}$ossh_result" >&6 | ||
21156 | if test "x$ossh_result" = "xyes"; then | ||
21157 | |||
21158 | cat >>confdefs.h <<\_ACEOF | ||
21159 | #define HAVE_ID_IN_UTMP 1 | ||
21160 | _ACEOF | ||
21161 | |||
21162 | fi | ||
21163 | else | ||
21164 | echo "$as_me:$LINENO: result: no" >&5 | ||
21165 | echo "${ECHO_T}no" >&6 | ||
21166 | fi | ||
21167 | |||
21168 | |||
21169 | # look for field 'ut_id' in header 'utmpx.h' | ||
21170 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21171 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
21172 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
21173 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
21174 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21176 | else | ||
21177 | |||
21178 | cat >conftest.$ac_ext <<_ACEOF | ||
21179 | /* confdefs.h. */ | ||
21180 | _ACEOF | ||
21181 | cat confdefs.h >>conftest.$ac_ext | ||
21182 | cat >>conftest.$ac_ext <<_ACEOF | ||
21183 | /* end confdefs.h. */ | ||
21184 | #include <utmpx.h> | ||
21185 | |||
21186 | _ACEOF | ||
21187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21188 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
21189 | eval "$ossh_varname=yes" | ||
21190 | else | ||
21191 | eval "$ossh_varname=no" | ||
21192 | fi | ||
21193 | rm -f conftest* | ||
21194 | |||
21195 | fi | ||
21196 | |||
21197 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21198 | if test -n "`echo $ossh_varname`"; then | ||
21199 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21200 | echo "${ECHO_T}$ossh_result" >&6 | ||
21201 | if test "x$ossh_result" = "xyes"; then | ||
21202 | |||
21203 | cat >>confdefs.h <<\_ACEOF | ||
21204 | #define HAVE_ID_IN_UTMPX 1 | ||
21205 | _ACEOF | ||
21206 | |||
21207 | fi | ||
21208 | else | ||
21209 | echo "$as_me:$LINENO: result: no" >&5 | ||
21210 | echo "${ECHO_T}no" >&6 | ||
21211 | fi | ||
21212 | |||
21213 | |||
21214 | # look for field 'ut_addr' in header 'utmp.h' | ||
21215 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21216 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
21217 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
21218 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
21219 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21221 | else | ||
21222 | |||
21223 | cat >conftest.$ac_ext <<_ACEOF | ||
21224 | /* confdefs.h. */ | ||
21225 | _ACEOF | ||
21226 | cat confdefs.h >>conftest.$ac_ext | ||
21227 | cat >>conftest.$ac_ext <<_ACEOF | ||
21228 | /* end confdefs.h. */ | ||
21229 | #include <utmp.h> | ||
21230 | |||
21231 | _ACEOF | ||
21232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21233 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
21234 | eval "$ossh_varname=yes" | ||
21235 | else | ||
21236 | eval "$ossh_varname=no" | ||
21237 | fi | ||
21238 | rm -f conftest* | ||
21239 | |||
21240 | fi | ||
21241 | |||
21242 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21243 | if test -n "`echo $ossh_varname`"; then | ||
21244 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21245 | echo "${ECHO_T}$ossh_result" >&6 | ||
21246 | if test "x$ossh_result" = "xyes"; then | ||
21247 | |||
21248 | cat >>confdefs.h <<\_ACEOF | ||
21249 | #define HAVE_ADDR_IN_UTMP 1 | ||
21250 | _ACEOF | ||
21251 | |||
21252 | fi | ||
21253 | else | ||
21254 | echo "$as_me:$LINENO: result: no" >&5 | ||
21255 | echo "${ECHO_T}no" >&6 | ||
21256 | fi | ||
21257 | |||
21258 | |||
21259 | # look for field 'ut_addr' in header 'utmpx.h' | ||
21260 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21261 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
21262 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
21263 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
21264 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21266 | else | ||
21267 | |||
21268 | cat >conftest.$ac_ext <<_ACEOF | ||
21269 | /* confdefs.h. */ | ||
21270 | _ACEOF | ||
21271 | cat confdefs.h >>conftest.$ac_ext | ||
21272 | cat >>conftest.$ac_ext <<_ACEOF | ||
21273 | /* end confdefs.h. */ | ||
21274 | #include <utmpx.h> | ||
21275 | |||
21276 | _ACEOF | ||
21277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21278 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
21279 | eval "$ossh_varname=yes" | ||
21280 | else | ||
21281 | eval "$ossh_varname=no" | ||
21282 | fi | ||
21283 | rm -f conftest* | ||
21284 | |||
21285 | fi | ||
21286 | |||
21287 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21288 | if test -n "`echo $ossh_varname`"; then | ||
21289 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21290 | echo "${ECHO_T}$ossh_result" >&6 | ||
21291 | if test "x$ossh_result" = "xyes"; then | ||
21292 | |||
21293 | cat >>confdefs.h <<\_ACEOF | ||
21294 | #define HAVE_ADDR_IN_UTMPX 1 | ||
21295 | _ACEOF | ||
21296 | |||
21297 | fi | ||
21298 | else | ||
21299 | echo "$as_me:$LINENO: result: no" >&5 | ||
21300 | echo "${ECHO_T}no" >&6 | ||
21301 | fi | ||
21302 | |||
21303 | |||
21304 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
21305 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21306 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
21307 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
21308 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
21309 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21311 | else | ||
21312 | |||
21313 | cat >conftest.$ac_ext <<_ACEOF | ||
21314 | /* confdefs.h. */ | ||
21315 | _ACEOF | ||
21316 | cat confdefs.h >>conftest.$ac_ext | ||
21317 | cat >>conftest.$ac_ext <<_ACEOF | ||
21318 | /* end confdefs.h. */ | ||
21319 | #include <utmp.h> | ||
21320 | |||
21321 | _ACEOF | ||
21322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21323 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
21324 | eval "$ossh_varname=yes" | ||
21325 | else | ||
21326 | eval "$ossh_varname=no" | ||
21327 | fi | ||
21328 | rm -f conftest* | ||
21329 | |||
21330 | fi | ||
21331 | |||
21332 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21333 | if test -n "`echo $ossh_varname`"; then | ||
21334 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21335 | echo "${ECHO_T}$ossh_result" >&6 | ||
21336 | if test "x$ossh_result" = "xyes"; then | ||
21337 | |||
21338 | cat >>confdefs.h <<\_ACEOF | ||
21339 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
21340 | _ACEOF | ||
21341 | |||
21342 | fi | ||
21343 | else | ||
21344 | echo "$as_me:$LINENO: result: no" >&5 | ||
21345 | echo "${ECHO_T}no" >&6 | ||
21346 | fi | ||
21347 | |||
21348 | |||
21349 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
21350 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21351 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
21352 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
21353 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
21354 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21356 | else | ||
21357 | |||
21358 | cat >conftest.$ac_ext <<_ACEOF | ||
21359 | /* confdefs.h. */ | ||
21360 | _ACEOF | ||
21361 | cat confdefs.h >>conftest.$ac_ext | ||
21362 | cat >>conftest.$ac_ext <<_ACEOF | ||
21363 | /* end confdefs.h. */ | ||
21364 | #include <utmpx.h> | ||
21365 | |||
21366 | _ACEOF | ||
21367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21368 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
21369 | eval "$ossh_varname=yes" | ||
21370 | else | ||
21371 | eval "$ossh_varname=no" | ||
21372 | fi | ||
21373 | rm -f conftest* | ||
21374 | |||
21375 | fi | ||
21376 | |||
21377 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21378 | if test -n "`echo $ossh_varname`"; then | ||
21379 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21380 | echo "${ECHO_T}$ossh_result" >&6 | ||
21381 | if test "x$ossh_result" = "xyes"; then | ||
21382 | |||
21383 | cat >>confdefs.h <<\_ACEOF | ||
21384 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
21385 | _ACEOF | ||
21386 | |||
21387 | fi | ||
21388 | else | ||
21389 | echo "$as_me:$LINENO: result: no" >&5 | ||
21390 | echo "${ECHO_T}no" >&6 | ||
21391 | fi | ||
21392 | |||
21393 | |||
21394 | # look for field 'ut_exit' in header 'utmp.h' | ||
21395 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21396 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
21397 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
21398 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
21399 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21401 | else | ||
21402 | |||
21403 | cat >conftest.$ac_ext <<_ACEOF | ||
21404 | /* confdefs.h. */ | ||
21405 | _ACEOF | ||
21406 | cat confdefs.h >>conftest.$ac_ext | ||
21407 | cat >>conftest.$ac_ext <<_ACEOF | ||
21408 | /* end confdefs.h. */ | ||
21409 | #include <utmp.h> | ||
21410 | |||
21411 | _ACEOF | ||
21412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21413 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
21414 | eval "$ossh_varname=yes" | ||
21415 | else | ||
21416 | eval "$ossh_varname=no" | ||
21417 | fi | ||
21418 | rm -f conftest* | ||
21419 | |||
21420 | fi | ||
21421 | |||
21422 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21423 | if test -n "`echo $ossh_varname`"; then | ||
21424 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21425 | echo "${ECHO_T}$ossh_result" >&6 | ||
21426 | if test "x$ossh_result" = "xyes"; then | ||
21427 | |||
21428 | cat >>confdefs.h <<\_ACEOF | ||
21429 | #define HAVE_EXIT_IN_UTMP 1 | ||
21430 | _ACEOF | ||
21431 | |||
21432 | fi | ||
21433 | else | ||
21434 | echo "$as_me:$LINENO: result: no" >&5 | ||
21435 | echo "${ECHO_T}no" >&6 | ||
21436 | fi | ||
21437 | |||
21438 | |||
21439 | # look for field 'ut_time' in header 'utmp.h' | ||
21440 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
21441 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
21442 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
21443 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
21444 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21446 | else | ||
21447 | |||
21448 | cat >conftest.$ac_ext <<_ACEOF | ||
21449 | /* confdefs.h. */ | ||
21450 | _ACEOF | ||
21451 | cat confdefs.h >>conftest.$ac_ext | ||
21452 | cat >>conftest.$ac_ext <<_ACEOF | ||
21453 | /* end confdefs.h. */ | ||
21454 | #include <utmp.h> | ||
21455 | |||
21456 | _ACEOF | ||
21457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21458 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
21459 | eval "$ossh_varname=yes" | ||
21460 | else | ||
21461 | eval "$ossh_varname=no" | ||
21462 | fi | ||
21463 | rm -f conftest* | ||
21464 | |||
21465 | fi | ||
21466 | |||
21467 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21468 | if test -n "`echo $ossh_varname`"; then | ||
21469 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21470 | echo "${ECHO_T}$ossh_result" >&6 | ||
21471 | if test "x$ossh_result" = "xyes"; then | ||
21472 | |||
21473 | cat >>confdefs.h <<\_ACEOF | ||
21474 | #define HAVE_TIME_IN_UTMP 1 | ||
21475 | _ACEOF | ||
21476 | |||
21477 | fi | ||
21478 | else | ||
21479 | echo "$as_me:$LINENO: result: no" >&5 | ||
21480 | echo "${ECHO_T}no" >&6 | ||
21481 | fi | ||
21482 | |||
21483 | |||
21484 | # look for field 'ut_time' in header 'utmpx.h' | ||
21485 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21486 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
21487 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
21488 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
21489 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21491 | else | ||
21492 | |||
21493 | cat >conftest.$ac_ext <<_ACEOF | ||
21494 | /* confdefs.h. */ | ||
21495 | _ACEOF | ||
21496 | cat confdefs.h >>conftest.$ac_ext | ||
21497 | cat >>conftest.$ac_ext <<_ACEOF | ||
21498 | /* end confdefs.h. */ | ||
21499 | #include <utmpx.h> | ||
21500 | |||
21501 | _ACEOF | ||
21502 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21503 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
21504 | eval "$ossh_varname=yes" | ||
21505 | else | ||
21506 | eval "$ossh_varname=no" | ||
21507 | fi | ||
21508 | rm -f conftest* | ||
21509 | |||
21510 | fi | ||
21511 | |||
21512 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21513 | if test -n "`echo $ossh_varname`"; then | ||
21514 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21515 | echo "${ECHO_T}$ossh_result" >&6 | ||
21516 | if test "x$ossh_result" = "xyes"; then | ||
21517 | |||
21518 | cat >>confdefs.h <<\_ACEOF | ||
21519 | #define HAVE_TIME_IN_UTMPX 1 | ||
21520 | _ACEOF | ||
21521 | |||
21522 | fi | ||
21523 | else | ||
21524 | echo "$as_me:$LINENO: result: no" >&5 | ||
21525 | echo "${ECHO_T}no" >&6 | ||
21526 | fi | ||
21527 | |||
21528 | |||
21529 | # look for field 'ut_tv' in header 'utmpx.h' | ||
21530 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
21531 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
21532 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
21533 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
21534 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
21535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21536 | else | ||
21537 | |||
21538 | cat >conftest.$ac_ext <<_ACEOF | ||
21539 | /* confdefs.h. */ | ||
21540 | _ACEOF | ||
21541 | cat confdefs.h >>conftest.$ac_ext | ||
21542 | cat >>conftest.$ac_ext <<_ACEOF | ||
21543 | /* end confdefs.h. */ | ||
21544 | #include <utmpx.h> | ||
21545 | |||
21546 | _ACEOF | ||
21547 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
21548 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
21549 | eval "$ossh_varname=yes" | ||
21550 | else | ||
21551 | eval "$ossh_varname=no" | ||
21552 | fi | ||
21553 | rm -f conftest* | ||
21554 | |||
21555 | fi | ||
21556 | |||
21557 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
21558 | if test -n "`echo $ossh_varname`"; then | ||
21559 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
21560 | echo "${ECHO_T}$ossh_result" >&6 | ||
21561 | if test "x$ossh_result" = "xyes"; then | ||
21562 | |||
21563 | cat >>confdefs.h <<\_ACEOF | ||
21564 | #define HAVE_TV_IN_UTMPX 1 | ||
21565 | _ACEOF | ||
21566 | |||
21567 | fi | ||
21568 | else | ||
21569 | echo "$as_me:$LINENO: result: no" >&5 | ||
21570 | echo "${ECHO_T}no" >&6 | ||
21571 | fi | ||
21572 | |||
21573 | |||
21574 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
21575 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
21576 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
21577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21578 | else | ||
21579 | cat >conftest.$ac_ext <<_ACEOF | ||
21580 | /* confdefs.h. */ | ||
21581 | _ACEOF | ||
21582 | cat confdefs.h >>conftest.$ac_ext | ||
21583 | cat >>conftest.$ac_ext <<_ACEOF | ||
21584 | /* end confdefs.h. */ | ||
21585 | $ac_includes_default | ||
21586 | int | ||
21587 | main () | ||
21588 | { | ||
21589 | static struct stat ac_aggr; | ||
21590 | if (ac_aggr.st_blksize) | ||
21591 | return 0; | ||
21592 | ; | ||
21593 | return 0; | ||
21594 | } | ||
21595 | _ACEOF | ||
21596 | rm -f conftest.$ac_objext | ||
21597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21598 | (eval $ac_compile) 2>conftest.er1 | ||
21599 | ac_status=$? | ||
21600 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21601 | rm -f conftest.er1 | ||
21602 | cat conftest.err >&5 | ||
21603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21604 | (exit $ac_status); } && | ||
21605 | { ac_try='test -z "$ac_c_werror_flag" | ||
21606 | || test ! -s conftest.err' | ||
21607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21608 | (eval $ac_try) 2>&5 | ||
21609 | ac_status=$? | ||
21610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21611 | (exit $ac_status); }; } && | ||
21612 | { ac_try='test -s conftest.$ac_objext' | ||
21613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21614 | (eval $ac_try) 2>&5 | ||
21615 | ac_status=$? | ||
21616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21617 | (exit $ac_status); }; }; then | ||
21618 | ac_cv_member_struct_stat_st_blksize=yes | ||
21619 | else | ||
21620 | echo "$as_me: failed program was:" >&5 | ||
21621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21622 | |||
21623 | cat >conftest.$ac_ext <<_ACEOF | ||
21624 | /* confdefs.h. */ | ||
21625 | _ACEOF | ||
21626 | cat confdefs.h >>conftest.$ac_ext | ||
21627 | cat >>conftest.$ac_ext <<_ACEOF | ||
21628 | /* end confdefs.h. */ | ||
21629 | $ac_includes_default | ||
21630 | int | ||
21631 | main () | ||
21632 | { | ||
21633 | static struct stat ac_aggr; | ||
21634 | if (sizeof ac_aggr.st_blksize) | ||
21635 | return 0; | ||
21636 | ; | ||
21637 | return 0; | ||
21638 | } | ||
21639 | _ACEOF | ||
21640 | rm -f conftest.$ac_objext | ||
21641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21642 | (eval $ac_compile) 2>conftest.er1 | ||
21643 | ac_status=$? | ||
21644 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21645 | rm -f conftest.er1 | ||
21646 | cat conftest.err >&5 | ||
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21648 | (exit $ac_status); } && | ||
21649 | { ac_try='test -z "$ac_c_werror_flag" | ||
21650 | || test ! -s conftest.err' | ||
21651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21652 | (eval $ac_try) 2>&5 | ||
21653 | ac_status=$? | ||
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21655 | (exit $ac_status); }; } && | ||
21656 | { ac_try='test -s conftest.$ac_objext' | ||
21657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21658 | (eval $ac_try) 2>&5 | ||
21659 | ac_status=$? | ||
21660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21661 | (exit $ac_status); }; }; then | ||
21662 | ac_cv_member_struct_stat_st_blksize=yes | ||
21663 | else | ||
21664 | echo "$as_me: failed program was:" >&5 | ||
21665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21666 | |||
21667 | ac_cv_member_struct_stat_st_blksize=no | ||
21668 | fi | ||
21669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21670 | fi | ||
21671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21672 | fi | ||
21673 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
21674 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
21675 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
21676 | |||
21677 | cat >>confdefs.h <<_ACEOF | ||
21678 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
21679 | _ACEOF | ||
21680 | |||
21681 | |||
21682 | fi | ||
21683 | |||
21684 | echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
21685 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6 | ||
21686 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
21687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21688 | else | ||
21689 | cat >conftest.$ac_ext <<_ACEOF | ||
21690 | /* confdefs.h. */ | ||
21691 | _ACEOF | ||
21692 | cat confdefs.h >>conftest.$ac_ext | ||
21693 | cat >>conftest.$ac_ext <<_ACEOF | ||
21694 | /* end confdefs.h. */ | ||
21695 | |||
21696 | #include <stdio.h> | ||
21697 | #if HAVE_SYS_TYPES_H | ||
21698 | # include <sys/types.h> | ||
21699 | #endif | ||
21700 | #include <netinet/in.h> | ||
21701 | #include <arpa/nameser.h> | ||
21702 | #include <resolv.h> | ||
21703 | |||
21704 | |||
21705 | int | ||
21706 | main () | ||
21707 | { | ||
21708 | static struct __res_state ac_aggr; | ||
21709 | if (ac_aggr.retrans) | ||
21710 | return 0; | ||
21711 | ; | ||
21712 | return 0; | ||
21713 | } | ||
21714 | _ACEOF | ||
21715 | rm -f conftest.$ac_objext | ||
21716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21717 | (eval $ac_compile) 2>conftest.er1 | ||
21718 | ac_status=$? | ||
21719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21720 | rm -f conftest.er1 | ||
21721 | cat conftest.err >&5 | ||
21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21723 | (exit $ac_status); } && | ||
21724 | { ac_try='test -z "$ac_c_werror_flag" | ||
21725 | || test ! -s conftest.err' | ||
21726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21727 | (eval $ac_try) 2>&5 | ||
21728 | ac_status=$? | ||
21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21730 | (exit $ac_status); }; } && | ||
21731 | { ac_try='test -s conftest.$ac_objext' | ||
21732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21733 | (eval $ac_try) 2>&5 | ||
21734 | ac_status=$? | ||
21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21736 | (exit $ac_status); }; }; then | ||
21737 | ac_cv_member_struct___res_state_retrans=yes | ||
21738 | else | ||
21739 | echo "$as_me: failed program was:" >&5 | ||
21740 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21741 | |||
21742 | cat >conftest.$ac_ext <<_ACEOF | ||
21743 | /* confdefs.h. */ | ||
21744 | _ACEOF | ||
21745 | cat confdefs.h >>conftest.$ac_ext | ||
21746 | cat >>conftest.$ac_ext <<_ACEOF | ||
21747 | /* end confdefs.h. */ | ||
21748 | |||
21749 | #include <stdio.h> | ||
21750 | #if HAVE_SYS_TYPES_H | ||
21751 | # include <sys/types.h> | ||
21752 | #endif | ||
21753 | #include <netinet/in.h> | ||
21754 | #include <arpa/nameser.h> | ||
21755 | #include <resolv.h> | ||
21756 | |||
21757 | |||
21758 | int | ||
21759 | main () | ||
21760 | { | ||
21761 | static struct __res_state ac_aggr; | ||
21762 | if (sizeof ac_aggr.retrans) | ||
21763 | return 0; | ||
21764 | ; | ||
21765 | return 0; | ||
21766 | } | ||
21767 | _ACEOF | ||
21768 | rm -f conftest.$ac_objext | ||
21769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21770 | (eval $ac_compile) 2>conftest.er1 | ||
21771 | ac_status=$? | ||
21772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21773 | rm -f conftest.er1 | ||
21774 | cat conftest.err >&5 | ||
21775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21776 | (exit $ac_status); } && | ||
21777 | { ac_try='test -z "$ac_c_werror_flag" | ||
21778 | || test ! -s conftest.err' | ||
21779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21780 | (eval $ac_try) 2>&5 | ||
21781 | ac_status=$? | ||
21782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21783 | (exit $ac_status); }; } && | ||
21784 | { ac_try='test -s conftest.$ac_objext' | ||
21785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21786 | (eval $ac_try) 2>&5 | ||
21787 | ac_status=$? | ||
21788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21789 | (exit $ac_status); }; }; then | ||
21790 | ac_cv_member_struct___res_state_retrans=yes | ||
21791 | else | ||
21792 | echo "$as_me: failed program was:" >&5 | ||
21793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21794 | |||
21795 | ac_cv_member_struct___res_state_retrans=no | ||
21796 | fi | ||
21797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21798 | fi | ||
21799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21800 | fi | ||
21801 | echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
21802 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6 | ||
21803 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
21804 | : | ||
21805 | else | ||
21806 | |||
21807 | cat >>confdefs.h <<\_ACEOF | ||
21808 | #define __res_state state | ||
21809 | _ACEOF | ||
21810 | |||
21811 | fi | ||
21812 | |||
21813 | |||
21814 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
21815 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
21816 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
21817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21818 | else | ||
21819 | |||
21820 | cat >conftest.$ac_ext <<_ACEOF | ||
21821 | /* confdefs.h. */ | ||
21822 | _ACEOF | ||
21823 | cat confdefs.h >>conftest.$ac_ext | ||
21824 | cat >>conftest.$ac_ext <<_ACEOF | ||
21825 | /* end confdefs.h. */ | ||
21826 | |||
21827 | #include <sys/types.h> | ||
21828 | #include <sys/socket.h> | ||
21829 | |||
21830 | int | ||
21831 | main () | ||
21832 | { | ||
21833 | struct sockaddr_storage s; s.ss_family = 1; | ||
21834 | ; | ||
21835 | return 0; | ||
21836 | } | ||
21837 | _ACEOF | ||
21838 | rm -f conftest.$ac_objext | ||
21839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21840 | (eval $ac_compile) 2>conftest.er1 | ||
21841 | ac_status=$? | ||
21842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21843 | rm -f conftest.er1 | ||
21844 | cat conftest.err >&5 | ||
21845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21846 | (exit $ac_status); } && | ||
21847 | { ac_try='test -z "$ac_c_werror_flag" | ||
21848 | || test ! -s conftest.err' | ||
21849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21850 | (eval $ac_try) 2>&5 | ||
21851 | ac_status=$? | ||
21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21853 | (exit $ac_status); }; } && | ||
21854 | { ac_try='test -s conftest.$ac_objext' | ||
21855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21856 | (eval $ac_try) 2>&5 | ||
21857 | ac_status=$? | ||
21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21859 | (exit $ac_status); }; }; then | ||
21860 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
21861 | else | ||
21862 | echo "$as_me: failed program was:" >&5 | ||
21863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21864 | |||
21865 | ac_cv_have_ss_family_in_struct_ss="no" | ||
21866 | fi | ||
21867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21868 | |||
21869 | fi | ||
21870 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
21871 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
21872 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
21873 | |||
21874 | cat >>confdefs.h <<\_ACEOF | ||
21875 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
21876 | _ACEOF | ||
21877 | |||
21878 | fi | ||
21879 | |||
21880 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
21881 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
21882 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
21883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21884 | else | ||
21885 | |||
21886 | cat >conftest.$ac_ext <<_ACEOF | ||
21887 | /* confdefs.h. */ | ||
21888 | _ACEOF | ||
21889 | cat confdefs.h >>conftest.$ac_ext | ||
21890 | cat >>conftest.$ac_ext <<_ACEOF | ||
21891 | /* end confdefs.h. */ | ||
21892 | |||
21893 | #include <sys/types.h> | ||
21894 | #include <sys/socket.h> | ||
21895 | |||
21896 | int | ||
21897 | main () | ||
21898 | { | ||
21899 | struct sockaddr_storage s; s.__ss_family = 1; | ||
21900 | ; | ||
21901 | return 0; | ||
21902 | } | ||
21903 | _ACEOF | ||
21904 | rm -f conftest.$ac_objext | ||
21905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21906 | (eval $ac_compile) 2>conftest.er1 | ||
21907 | ac_status=$? | ||
21908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21909 | rm -f conftest.er1 | ||
21910 | cat conftest.err >&5 | ||
21911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21912 | (exit $ac_status); } && | ||
21913 | { ac_try='test -z "$ac_c_werror_flag" | ||
21914 | || test ! -s conftest.err' | ||
21915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21916 | (eval $ac_try) 2>&5 | ||
21917 | ac_status=$? | ||
21918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21919 | (exit $ac_status); }; } && | ||
21920 | { ac_try='test -s conftest.$ac_objext' | ||
21921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21922 | (eval $ac_try) 2>&5 | ||
21923 | ac_status=$? | ||
21924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21925 | (exit $ac_status); }; }; then | ||
21926 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
21927 | else | ||
21928 | echo "$as_me: failed program was:" >&5 | ||
21929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21930 | |||
21931 | ac_cv_have___ss_family_in_struct_ss="no" | ||
21932 | |||
21933 | fi | ||
21934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21935 | |||
21936 | fi | ||
21937 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
21938 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
21939 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
21940 | |||
21941 | cat >>confdefs.h <<\_ACEOF | ||
21942 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
21943 | _ACEOF | ||
21944 | |||
21945 | fi | ||
21946 | |||
21947 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
21948 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
21949 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
21950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21951 | else | ||
21952 | |||
21953 | cat >conftest.$ac_ext <<_ACEOF | ||
21954 | /* confdefs.h. */ | ||
21955 | _ACEOF | ||
21956 | cat confdefs.h >>conftest.$ac_ext | ||
21957 | cat >>conftest.$ac_ext <<_ACEOF | ||
21958 | /* end confdefs.h. */ | ||
21959 | |||
21960 | #include <pwd.h> | ||
21961 | |||
21962 | int | ||
21963 | main () | ||
21964 | { | ||
21965 | struct passwd p; p.pw_class = 0; | ||
21966 | ; | ||
21967 | return 0; | ||
21968 | } | ||
21969 | _ACEOF | ||
21970 | rm -f conftest.$ac_objext | ||
21971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21972 | (eval $ac_compile) 2>conftest.er1 | ||
21973 | ac_status=$? | ||
21974 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21975 | rm -f conftest.er1 | ||
21976 | cat conftest.err >&5 | ||
21977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21978 | (exit $ac_status); } && | ||
21979 | { ac_try='test -z "$ac_c_werror_flag" | ||
21980 | || test ! -s conftest.err' | ||
21981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21982 | (eval $ac_try) 2>&5 | ||
21983 | ac_status=$? | ||
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21985 | (exit $ac_status); }; } && | ||
21986 | { ac_try='test -s conftest.$ac_objext' | ||
21987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21988 | (eval $ac_try) 2>&5 | ||
21989 | ac_status=$? | ||
21990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21991 | (exit $ac_status); }; }; then | ||
21992 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
21993 | else | ||
21994 | echo "$as_me: failed program was:" >&5 | ||
21995 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21996 | |||
21997 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
21998 | |||
21999 | fi | ||
22000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22001 | |||
22002 | fi | ||
22003 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
22004 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
22005 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
22006 | |||
22007 | cat >>confdefs.h <<\_ACEOF | ||
22008 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
22009 | _ACEOF | ||
22010 | |||
22011 | fi | ||
22012 | |||
22013 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
22014 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
22015 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
22016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22017 | else | ||
22018 | |||
22019 | cat >conftest.$ac_ext <<_ACEOF | ||
22020 | /* confdefs.h. */ | ||
22021 | _ACEOF | ||
22022 | cat confdefs.h >>conftest.$ac_ext | ||
22023 | cat >>conftest.$ac_ext <<_ACEOF | ||
22024 | /* end confdefs.h. */ | ||
22025 | |||
22026 | #include <pwd.h> | ||
22027 | |||
22028 | int | ||
22029 | main () | ||
22030 | { | ||
22031 | struct passwd p; p.pw_expire = 0; | ||
22032 | ; | ||
22033 | return 0; | ||
22034 | } | ||
22035 | _ACEOF | ||
22036 | rm -f conftest.$ac_objext | ||
22037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22038 | (eval $ac_compile) 2>conftest.er1 | ||
22039 | ac_status=$? | ||
22040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22041 | rm -f conftest.er1 | ||
22042 | cat conftest.err >&5 | ||
22043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22044 | (exit $ac_status); } && | ||
22045 | { ac_try='test -z "$ac_c_werror_flag" | ||
22046 | || test ! -s conftest.err' | ||
22047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22048 | (eval $ac_try) 2>&5 | ||
22049 | ac_status=$? | ||
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22051 | (exit $ac_status); }; } && | ||
22052 | { ac_try='test -s conftest.$ac_objext' | ||
22053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22054 | (eval $ac_try) 2>&5 | ||
22055 | ac_status=$? | ||
22056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22057 | (exit $ac_status); }; }; then | ||
22058 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
22059 | else | ||
22060 | echo "$as_me: failed program was:" >&5 | ||
22061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22062 | |||
22063 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
22064 | |||
22065 | fi | ||
22066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22067 | |||
22068 | fi | ||
22069 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
22070 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
22071 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
22072 | |||
22073 | cat >>confdefs.h <<\_ACEOF | ||
22074 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
22075 | _ACEOF | ||
22076 | |||
22077 | fi | ||
22078 | |||
22079 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
22080 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
22081 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
22082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22083 | else | ||
22084 | |||
22085 | cat >conftest.$ac_ext <<_ACEOF | ||
22086 | /* confdefs.h. */ | ||
22087 | _ACEOF | ||
22088 | cat confdefs.h >>conftest.$ac_ext | ||
22089 | cat >>conftest.$ac_ext <<_ACEOF | ||
22090 | /* end confdefs.h. */ | ||
22091 | |||
22092 | #include <pwd.h> | ||
22093 | |||
22094 | int | ||
22095 | main () | ||
22096 | { | ||
22097 | struct passwd p; p.pw_change = 0; | ||
22098 | ; | ||
22099 | return 0; | ||
22100 | } | ||
22101 | _ACEOF | ||
22102 | rm -f conftest.$ac_objext | ||
22103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22104 | (eval $ac_compile) 2>conftest.er1 | ||
22105 | ac_status=$? | ||
22106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22107 | rm -f conftest.er1 | ||
22108 | cat conftest.err >&5 | ||
22109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22110 | (exit $ac_status); } && | ||
22111 | { ac_try='test -z "$ac_c_werror_flag" | ||
22112 | || test ! -s conftest.err' | ||
22113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22114 | (eval $ac_try) 2>&5 | ||
22115 | ac_status=$? | ||
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22117 | (exit $ac_status); }; } && | ||
22118 | { ac_try='test -s conftest.$ac_objext' | ||
22119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22120 | (eval $ac_try) 2>&5 | ||
22121 | ac_status=$? | ||
22122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22123 | (exit $ac_status); }; }; then | ||
22124 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
22125 | else | ||
22126 | echo "$as_me: failed program was:" >&5 | ||
22127 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22128 | |||
22129 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
22130 | |||
22131 | fi | ||
22132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22133 | |||
22134 | fi | ||
22135 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
22136 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
22137 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
22138 | |||
22139 | cat >>confdefs.h <<\_ACEOF | ||
22140 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
22141 | _ACEOF | ||
22142 | |||
22143 | fi | ||
22144 | |||
22145 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
22146 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
22147 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
22148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22149 | else | ||
22150 | |||
22151 | cat >conftest.$ac_ext <<_ACEOF | ||
22152 | |||
22153 | #include <sys/types.h> | ||
22154 | #include <sys/socket.h> | ||
22155 | #include <sys/uio.h> | ||
22156 | int main() { | ||
22157 | #ifdef msg_accrights | ||
22158 | #error "msg_accrights is a macro" | ||
22159 | exit(1); | ||
22160 | #endif | ||
22161 | struct msghdr m; | ||
22162 | m.msg_accrights = 0; | ||
22163 | exit(0); | ||
22164 | } | ||
22165 | |||
22166 | _ACEOF | ||
22167 | rm -f conftest.$ac_objext | ||
22168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22169 | (eval $ac_compile) 2>conftest.er1 | ||
22170 | ac_status=$? | ||
22171 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22172 | rm -f conftest.er1 | ||
22173 | cat conftest.err >&5 | ||
22174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22175 | (exit $ac_status); } && | ||
22176 | { ac_try='test -z "$ac_c_werror_flag" | ||
22177 | || test ! -s conftest.err' | ||
22178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22179 | (eval $ac_try) 2>&5 | ||
22180 | ac_status=$? | ||
22181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22182 | (exit $ac_status); }; } && | ||
22183 | { ac_try='test -s conftest.$ac_objext' | ||
22184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22185 | (eval $ac_try) 2>&5 | ||
22186 | ac_status=$? | ||
22187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22188 | (exit $ac_status); }; }; then | ||
22189 | ac_cv_have_accrights_in_msghdr="yes" | ||
22190 | else | ||
22191 | echo "$as_me: failed program was:" >&5 | ||
22192 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22193 | |||
22194 | ac_cv_have_accrights_in_msghdr="no" | ||
22195 | |||
22196 | fi | ||
22197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22198 | |||
22199 | fi | ||
22200 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
22201 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
22202 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
22203 | |||
22204 | cat >>confdefs.h <<\_ACEOF | ||
22205 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
22206 | _ACEOF | ||
22207 | |||
22208 | fi | ||
22209 | |||
22210 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
22211 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
22212 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22214 | else | ||
22215 | |||
22216 | cat >conftest.$ac_ext <<_ACEOF | ||
22217 | |||
22218 | #include <sys/types.h> | ||
22219 | #include <sys/socket.h> | ||
22220 | #include <sys/uio.h> | ||
22221 | int main() { | ||
22222 | #ifdef msg_control | ||
22223 | #error "msg_control is a macro" | ||
22224 | exit(1); | ||
22225 | #endif | ||
22226 | struct msghdr m; | ||
22227 | m.msg_control = 0; | ||
22228 | exit(0); | ||
22229 | } | ||
22230 | |||
22231 | _ACEOF | ||
22232 | rm -f conftest.$ac_objext | ||
22233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22234 | (eval $ac_compile) 2>conftest.er1 | ||
22235 | ac_status=$? | ||
22236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22237 | rm -f conftest.er1 | ||
22238 | cat conftest.err >&5 | ||
22239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22240 | (exit $ac_status); } && | ||
22241 | { ac_try='test -z "$ac_c_werror_flag" | ||
22242 | || test ! -s conftest.err' | ||
22243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22244 | (eval $ac_try) 2>&5 | ||
22245 | ac_status=$? | ||
22246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22247 | (exit $ac_status); }; } && | ||
22248 | { ac_try='test -s conftest.$ac_objext' | ||
22249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22250 | (eval $ac_try) 2>&5 | ||
22251 | ac_status=$? | ||
22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22253 | (exit $ac_status); }; }; then | ||
22254 | ac_cv_have_control_in_msghdr="yes" | ||
22255 | else | ||
22256 | echo "$as_me: failed program was:" >&5 | ||
22257 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22258 | |||
22259 | ac_cv_have_control_in_msghdr="no" | ||
22260 | |||
22261 | fi | ||
22262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22263 | |||
22264 | fi | ||
22265 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
22266 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
22267 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
22268 | |||
22269 | cat >>confdefs.h <<\_ACEOF | ||
22270 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
22271 | _ACEOF | ||
22272 | |||
22273 | fi | ||
22274 | |||
22275 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
22276 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
22277 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
22278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22279 | else | ||
22280 | |||
22281 | cat >conftest.$ac_ext <<_ACEOF | ||
22282 | /* confdefs.h. */ | ||
22283 | _ACEOF | ||
22284 | cat confdefs.h >>conftest.$ac_ext | ||
22285 | cat >>conftest.$ac_ext <<_ACEOF | ||
22286 | /* end confdefs.h. */ | ||
22287 | |||
22288 | int | ||
22289 | main () | ||
22290 | { | ||
22291 | extern char *__progname; printf("%s", __progname); | ||
22292 | ; | ||
22293 | return 0; | ||
22294 | } | ||
22295 | _ACEOF | ||
22296 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22298 | (eval $ac_link) 2>conftest.er1 | ||
22299 | ac_status=$? | ||
22300 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22301 | rm -f conftest.er1 | ||
22302 | cat conftest.err >&5 | ||
22303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22304 | (exit $ac_status); } && | ||
22305 | { ac_try='test -z "$ac_c_werror_flag" | ||
22306 | || test ! -s conftest.err' | ||
22307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22308 | (eval $ac_try) 2>&5 | ||
22309 | ac_status=$? | ||
22310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22311 | (exit $ac_status); }; } && | ||
22312 | { ac_try='test -s conftest$ac_exeext' | ||
22313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22314 | (eval $ac_try) 2>&5 | ||
22315 | ac_status=$? | ||
22316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22317 | (exit $ac_status); }; }; then | ||
22318 | ac_cv_libc_defines___progname="yes" | ||
22319 | else | ||
22320 | echo "$as_me: failed program was:" >&5 | ||
22321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22322 | |||
22323 | ac_cv_libc_defines___progname="no" | ||
22324 | |||
22325 | fi | ||
22326 | rm -f conftest.err conftest.$ac_objext \ | ||
22327 | conftest$ac_exeext conftest.$ac_ext | ||
22328 | |||
22329 | fi | ||
22330 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
22331 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
22332 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
22333 | |||
22334 | cat >>confdefs.h <<\_ACEOF | ||
22335 | #define HAVE___PROGNAME 1 | ||
22336 | _ACEOF | ||
22337 | |||
22338 | fi | ||
22339 | |||
22340 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
22341 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
22342 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
22343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22344 | else | ||
22345 | |||
22346 | cat >conftest.$ac_ext <<_ACEOF | ||
22347 | /* confdefs.h. */ | ||
22348 | _ACEOF | ||
22349 | cat confdefs.h >>conftest.$ac_ext | ||
22350 | cat >>conftest.$ac_ext <<_ACEOF | ||
22351 | /* end confdefs.h. */ | ||
22352 | |||
22353 | #include <stdio.h> | ||
22354 | |||
22355 | int | ||
22356 | main () | ||
22357 | { | ||
22358 | printf("%s", __FUNCTION__); | ||
22359 | ; | ||
22360 | return 0; | ||
22361 | } | ||
22362 | _ACEOF | ||
22363 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22365 | (eval $ac_link) 2>conftest.er1 | ||
22366 | ac_status=$? | ||
22367 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22368 | rm -f conftest.er1 | ||
22369 | cat conftest.err >&5 | ||
22370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22371 | (exit $ac_status); } && | ||
22372 | { ac_try='test -z "$ac_c_werror_flag" | ||
22373 | || test ! -s conftest.err' | ||
22374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22375 | (eval $ac_try) 2>&5 | ||
22376 | ac_status=$? | ||
22377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22378 | (exit $ac_status); }; } && | ||
22379 | { ac_try='test -s conftest$ac_exeext' | ||
22380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22381 | (eval $ac_try) 2>&5 | ||
22382 | ac_status=$? | ||
22383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22384 | (exit $ac_status); }; }; then | ||
22385 | ac_cv_cc_implements___FUNCTION__="yes" | ||
22386 | else | ||
22387 | echo "$as_me: failed program was:" >&5 | ||
22388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22389 | |||
22390 | ac_cv_cc_implements___FUNCTION__="no" | ||
22391 | |||
22392 | fi | ||
22393 | rm -f conftest.err conftest.$ac_objext \ | ||
22394 | conftest$ac_exeext conftest.$ac_ext | ||
22395 | |||
22396 | fi | ||
22397 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
22398 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
22399 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
22400 | |||
22401 | cat >>confdefs.h <<\_ACEOF | ||
22402 | #define HAVE___FUNCTION__ 1 | ||
22403 | _ACEOF | ||
22404 | |||
22405 | fi | ||
22406 | |||
22407 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
22408 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
22409 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
22410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22411 | else | ||
22412 | |||
22413 | cat >conftest.$ac_ext <<_ACEOF | ||
22414 | /* confdefs.h. */ | ||
22415 | _ACEOF | ||
22416 | cat confdefs.h >>conftest.$ac_ext | ||
22417 | cat >>conftest.$ac_ext <<_ACEOF | ||
22418 | /* end confdefs.h. */ | ||
22419 | |||
22420 | #include <stdio.h> | ||
22421 | |||
22422 | int | ||
22423 | main () | ||
22424 | { | ||
22425 | printf("%s", __func__); | ||
22426 | ; | ||
22427 | return 0; | ||
22428 | } | ||
22429 | _ACEOF | ||
22430 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22432 | (eval $ac_link) 2>conftest.er1 | ||
22433 | ac_status=$? | ||
22434 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22435 | rm -f conftest.er1 | ||
22436 | cat conftest.err >&5 | ||
22437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22438 | (exit $ac_status); } && | ||
22439 | { ac_try='test -z "$ac_c_werror_flag" | ||
22440 | || test ! -s conftest.err' | ||
22441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22442 | (eval $ac_try) 2>&5 | ||
22443 | ac_status=$? | ||
22444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22445 | (exit $ac_status); }; } && | ||
22446 | { ac_try='test -s conftest$ac_exeext' | ||
22447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22448 | (eval $ac_try) 2>&5 | ||
22449 | ac_status=$? | ||
22450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22451 | (exit $ac_status); }; }; then | ||
22452 | ac_cv_cc_implements___func__="yes" | ||
22453 | else | ||
22454 | echo "$as_me: failed program was:" >&5 | ||
22455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22456 | |||
22457 | ac_cv_cc_implements___func__="no" | ||
22458 | |||
22459 | fi | ||
22460 | rm -f conftest.err conftest.$ac_objext \ | ||
22461 | conftest$ac_exeext conftest.$ac_ext | ||
22462 | |||
22463 | fi | ||
22464 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
22465 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
22466 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
22467 | |||
22468 | cat >>confdefs.h <<\_ACEOF | ||
22469 | #define HAVE___func__ 1 | ||
22470 | _ACEOF | ||
22471 | |||
22472 | fi | ||
22473 | |||
22474 | echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
22475 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6 | ||
22476 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
22477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22478 | else | ||
22479 | |||
22480 | cat >conftest.$ac_ext <<_ACEOF | ||
22481 | /* confdefs.h. */ | ||
22482 | _ACEOF | ||
22483 | cat confdefs.h >>conftest.$ac_ext | ||
22484 | cat >>conftest.$ac_ext <<_ACEOF | ||
22485 | /* end confdefs.h. */ | ||
22486 | #include <stdarg.h> | ||
22487 | va_list x,y; | ||
22488 | int | ||
22489 | main () | ||
22490 | { | ||
22491 | va_copy(x,y); | ||
22492 | ; | ||
22493 | return 0; | ||
22494 | } | ||
22495 | _ACEOF | ||
22496 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22498 | (eval $ac_link) 2>conftest.er1 | ||
22499 | ac_status=$? | ||
22500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22501 | rm -f conftest.er1 | ||
22502 | cat conftest.err >&5 | ||
22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22504 | (exit $ac_status); } && | ||
22505 | { ac_try='test -z "$ac_c_werror_flag" | ||
22506 | || test ! -s conftest.err' | ||
22507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22508 | (eval $ac_try) 2>&5 | ||
22509 | ac_status=$? | ||
22510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22511 | (exit $ac_status); }; } && | ||
22512 | { ac_try='test -s conftest$ac_exeext' | ||
22513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22514 | (eval $ac_try) 2>&5 | ||
22515 | ac_status=$? | ||
22516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22517 | (exit $ac_status); }; }; then | ||
22518 | ac_cv_have_va_copy="yes" | ||
22519 | else | ||
22520 | echo "$as_me: failed program was:" >&5 | ||
22521 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22522 | |||
22523 | ac_cv_have_va_copy="no" | ||
22524 | |||
22525 | fi | ||
22526 | rm -f conftest.err conftest.$ac_objext \ | ||
22527 | conftest$ac_exeext conftest.$ac_ext | ||
22528 | |||
22529 | fi | ||
22530 | echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
22531 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6 | ||
22532 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
22533 | |||
22534 | cat >>confdefs.h <<\_ACEOF | ||
22535 | #define HAVE_VA_COPY 1 | ||
22536 | _ACEOF | ||
22537 | |||
22538 | fi | ||
22539 | |||
22540 | echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
22541 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6 | ||
22542 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
22543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22544 | else | ||
22545 | |||
22546 | cat >conftest.$ac_ext <<_ACEOF | ||
22547 | /* confdefs.h. */ | ||
22548 | _ACEOF | ||
22549 | cat confdefs.h >>conftest.$ac_ext | ||
22550 | cat >>conftest.$ac_ext <<_ACEOF | ||
22551 | /* end confdefs.h. */ | ||
22552 | #include <stdarg.h> | ||
22553 | va_list x,y; | ||
22554 | int | ||
22555 | main () | ||
22556 | { | ||
22557 | __va_copy(x,y); | ||
22558 | ; | ||
22559 | return 0; | ||
22560 | } | ||
22561 | _ACEOF | ||
22562 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22564 | (eval $ac_link) 2>conftest.er1 | ||
22565 | ac_status=$? | ||
22566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22567 | rm -f conftest.er1 | ||
22568 | cat conftest.err >&5 | ||
22569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22570 | (exit $ac_status); } && | ||
22571 | { ac_try='test -z "$ac_c_werror_flag" | ||
22572 | || test ! -s conftest.err' | ||
22573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22574 | (eval $ac_try) 2>&5 | ||
22575 | ac_status=$? | ||
22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22577 | (exit $ac_status); }; } && | ||
22578 | { ac_try='test -s conftest$ac_exeext' | ||
22579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22580 | (eval $ac_try) 2>&5 | ||
22581 | ac_status=$? | ||
22582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22583 | (exit $ac_status); }; }; then | ||
22584 | ac_cv_have___va_copy="yes" | ||
22585 | else | ||
22586 | echo "$as_me: failed program was:" >&5 | ||
22587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22588 | |||
22589 | ac_cv_have___va_copy="no" | ||
22590 | |||
22591 | fi | ||
22592 | rm -f conftest.err conftest.$ac_objext \ | ||
22593 | conftest$ac_exeext conftest.$ac_ext | ||
22594 | |||
22595 | fi | ||
22596 | echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
22597 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6 | ||
22598 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
22599 | |||
22600 | cat >>confdefs.h <<\_ACEOF | ||
22601 | #define HAVE___VA_COPY 1 | ||
22602 | _ACEOF | ||
22603 | |||
22604 | fi | ||
22605 | |||
22606 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
22607 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
22608 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
22609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22610 | else | ||
22611 | |||
22612 | cat >conftest.$ac_ext <<_ACEOF | ||
22613 | /* confdefs.h. */ | ||
22614 | _ACEOF | ||
22615 | cat confdefs.h >>conftest.$ac_ext | ||
22616 | cat >>conftest.$ac_ext <<_ACEOF | ||
22617 | /* end confdefs.h. */ | ||
22618 | |||
22619 | #include <getopt.h> | ||
22620 | |||
22621 | int | ||
22622 | main () | ||
22623 | { | ||
22624 | extern int optreset; optreset = 0; | ||
22625 | ; | ||
22626 | return 0; | ||
22627 | } | ||
22628 | _ACEOF | ||
22629 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22631 | (eval $ac_link) 2>conftest.er1 | ||
22632 | ac_status=$? | ||
22633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22634 | rm -f conftest.er1 | ||
22635 | cat conftest.err >&5 | ||
22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22637 | (exit $ac_status); } && | ||
22638 | { ac_try='test -z "$ac_c_werror_flag" | ||
22639 | || test ! -s conftest.err' | ||
22640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22641 | (eval $ac_try) 2>&5 | ||
22642 | ac_status=$? | ||
22643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22644 | (exit $ac_status); }; } && | ||
22645 | { ac_try='test -s conftest$ac_exeext' | ||
22646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22647 | (eval $ac_try) 2>&5 | ||
22648 | ac_status=$? | ||
22649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22650 | (exit $ac_status); }; }; then | ||
22651 | ac_cv_have_getopt_optreset="yes" | ||
22652 | else | ||
22653 | echo "$as_me: failed program was:" >&5 | ||
22654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22655 | |||
22656 | ac_cv_have_getopt_optreset="no" | ||
22657 | |||
22658 | fi | ||
22659 | rm -f conftest.err conftest.$ac_objext \ | ||
22660 | conftest$ac_exeext conftest.$ac_ext | ||
22661 | |||
22662 | fi | ||
22663 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
22664 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
22665 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
22666 | |||
22667 | cat >>confdefs.h <<\_ACEOF | ||
22668 | #define HAVE_GETOPT_OPTRESET 1 | ||
22669 | _ACEOF | ||
22670 | |||
22671 | fi | ||
22672 | |||
22673 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
22674 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
22675 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
22676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22677 | else | ||
22678 | |||
22679 | cat >conftest.$ac_ext <<_ACEOF | ||
22680 | /* confdefs.h. */ | ||
22681 | _ACEOF | ||
22682 | cat confdefs.h >>conftest.$ac_ext | ||
22683 | cat >>conftest.$ac_ext <<_ACEOF | ||
22684 | /* end confdefs.h. */ | ||
22685 | |||
22686 | int | ||
22687 | main () | ||
22688 | { | ||
22689 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
22690 | ; | ||
22691 | return 0; | ||
22692 | } | ||
22693 | _ACEOF | ||
22694 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22696 | (eval $ac_link) 2>conftest.er1 | ||
22697 | ac_status=$? | ||
22698 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22699 | rm -f conftest.er1 | ||
22700 | cat conftest.err >&5 | ||
22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22702 | (exit $ac_status); } && | ||
22703 | { ac_try='test -z "$ac_c_werror_flag" | ||
22704 | || test ! -s conftest.err' | ||
22705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22706 | (eval $ac_try) 2>&5 | ||
22707 | ac_status=$? | ||
22708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22709 | (exit $ac_status); }; } && | ||
22710 | { ac_try='test -s conftest$ac_exeext' | ||
22711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22712 | (eval $ac_try) 2>&5 | ||
22713 | ac_status=$? | ||
22714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22715 | (exit $ac_status); }; }; then | ||
22716 | ac_cv_libc_defines_sys_errlist="yes" | ||
22717 | else | ||
22718 | echo "$as_me: failed program was:" >&5 | ||
22719 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22720 | |||
22721 | ac_cv_libc_defines_sys_errlist="no" | ||
22722 | |||
22723 | fi | ||
22724 | rm -f conftest.err conftest.$ac_objext \ | ||
22725 | conftest$ac_exeext conftest.$ac_ext | ||
22726 | |||
22727 | fi | ||
22728 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
22729 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
22730 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
22731 | |||
22732 | cat >>confdefs.h <<\_ACEOF | ||
22733 | #define HAVE_SYS_ERRLIST 1 | ||
22734 | _ACEOF | ||
22735 | |||
22736 | fi | ||
22737 | |||
22738 | |||
22739 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
22740 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
22741 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
22742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22743 | else | ||
22744 | |||
22745 | cat >conftest.$ac_ext <<_ACEOF | ||
22746 | /* confdefs.h. */ | ||
22747 | _ACEOF | ||
22748 | cat confdefs.h >>conftest.$ac_ext | ||
22749 | cat >>conftest.$ac_ext <<_ACEOF | ||
22750 | /* end confdefs.h. */ | ||
22751 | |||
22752 | int | ||
22753 | main () | ||
22754 | { | ||
22755 | extern int sys_nerr; printf("%i", sys_nerr); | ||
22756 | ; | ||
22757 | return 0; | ||
22758 | } | ||
22759 | _ACEOF | ||
22760 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22762 | (eval $ac_link) 2>conftest.er1 | ||
22763 | ac_status=$? | ||
22764 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22765 | rm -f conftest.er1 | ||
22766 | cat conftest.err >&5 | ||
22767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22768 | (exit $ac_status); } && | ||
22769 | { ac_try='test -z "$ac_c_werror_flag" | ||
22770 | || test ! -s conftest.err' | ||
22771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22772 | (eval $ac_try) 2>&5 | ||
22773 | ac_status=$? | ||
22774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22775 | (exit $ac_status); }; } && | ||
22776 | { ac_try='test -s conftest$ac_exeext' | ||
22777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22778 | (eval $ac_try) 2>&5 | ||
22779 | ac_status=$? | ||
22780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22781 | (exit $ac_status); }; }; then | ||
22782 | ac_cv_libc_defines_sys_nerr="yes" | ||
22783 | else | ||
22784 | echo "$as_me: failed program was:" >&5 | ||
22785 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22786 | |||
22787 | ac_cv_libc_defines_sys_nerr="no" | ||
22788 | |||
22789 | fi | ||
22790 | rm -f conftest.err conftest.$ac_objext \ | ||
22791 | conftest$ac_exeext conftest.$ac_ext | ||
22792 | |||
22793 | fi | ||
22794 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
22795 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
22796 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
22797 | |||
22798 | cat >>confdefs.h <<\_ACEOF | ||
22799 | #define HAVE_SYS_NERR 1 | ||
22800 | _ACEOF | ||
22801 | |||
22802 | fi | ||
22803 | |||
22804 | SCARD_MSG="no" | ||
22805 | # Check whether user wants sectok support | ||
22806 | |||
22807 | # Check whether --with-sectok or --without-sectok was given. | ||
22808 | if test "${with_sectok+set}" = set; then | ||
22809 | withval="$with_sectok" | ||
22810 | |||
22811 | if test "x$withval" != "xno" ; then | ||
22812 | if test "x$withval" != "xyes" ; then | ||
22813 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
22814 | LDFLAGS="$LDFLAGS -L${withval}" | ||
22815 | if test ! -z "$need_dash_r" ; then | ||
22816 | LDFLAGS="$LDFLAGS -R${withval}" | ||
22817 | fi | ||
22818 | if test ! -z "$blibpath" ; then | ||
22819 | blibpath="$blibpath:${withval}" | ||
22820 | fi | ||
22821 | fi | ||
22822 | |||
22823 | for ac_header in sectok.h | ||
22824 | do | ||
22825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22831 | fi | ||
22832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22834 | else | ||
22835 | # Is the header compilable? | ||
22836 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22837 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22838 | cat >conftest.$ac_ext <<_ACEOF | ||
22839 | /* confdefs.h. */ | ||
22840 | _ACEOF | ||
22841 | cat confdefs.h >>conftest.$ac_ext | ||
22842 | cat >>conftest.$ac_ext <<_ACEOF | ||
22843 | /* end confdefs.h. */ | ||
22844 | $ac_includes_default | ||
22845 | #include <$ac_header> | ||
22846 | _ACEOF | ||
22847 | rm -f conftest.$ac_objext | ||
22848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22849 | (eval $ac_compile) 2>conftest.er1 | ||
22850 | ac_status=$? | ||
22851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22852 | rm -f conftest.er1 | ||
22853 | cat conftest.err >&5 | ||
22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22855 | (exit $ac_status); } && | ||
22856 | { ac_try='test -z "$ac_c_werror_flag" | ||
22857 | || test ! -s conftest.err' | ||
22858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22859 | (eval $ac_try) 2>&5 | ||
22860 | ac_status=$? | ||
22861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22862 | (exit $ac_status); }; } && | ||
22863 | { ac_try='test -s conftest.$ac_objext' | ||
22864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22865 | (eval $ac_try) 2>&5 | ||
22866 | ac_status=$? | ||
22867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22868 | (exit $ac_status); }; }; then | ||
22869 | ac_header_compiler=yes | ||
22870 | else | ||
22871 | echo "$as_me: failed program was:" >&5 | ||
22872 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22873 | |||
22874 | ac_header_compiler=no | ||
22875 | fi | ||
22876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22877 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22878 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22879 | |||
22880 | # Is the header present? | ||
22881 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22882 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22883 | cat >conftest.$ac_ext <<_ACEOF | ||
22884 | /* confdefs.h. */ | ||
22885 | _ACEOF | ||
22886 | cat confdefs.h >>conftest.$ac_ext | ||
22887 | cat >>conftest.$ac_ext <<_ACEOF | ||
22888 | /* end confdefs.h. */ | ||
22889 | #include <$ac_header> | ||
22890 | _ACEOF | ||
22891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22893 | ac_status=$? | ||
22894 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22895 | rm -f conftest.er1 | ||
22896 | cat conftest.err >&5 | ||
22897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22898 | (exit $ac_status); } >/dev/null; then | ||
22899 | if test -s conftest.err; then | ||
22900 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22901 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22902 | else | ||
22903 | ac_cpp_err= | ||
22904 | fi | ||
22905 | else | ||
22906 | ac_cpp_err=yes | ||
22907 | fi | ||
22908 | if test -z "$ac_cpp_err"; then | ||
22909 | ac_header_preproc=yes | ||
22910 | else | ||
22911 | echo "$as_me: failed program was:" >&5 | ||
22912 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22913 | |||
22914 | ac_header_preproc=no | ||
22915 | fi | ||
22916 | rm -f conftest.err conftest.$ac_ext | ||
22917 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22918 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22919 | |||
22920 | # So? What about this header? | ||
22921 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22922 | yes:no: ) | ||
22923 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22924 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22925 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22926 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22927 | ac_header_preproc=yes | ||
22928 | ;; | ||
22929 | no:yes:* ) | ||
22930 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22931 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22932 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22933 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22934 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22935 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22936 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22937 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22939 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22940 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22941 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22942 | ( | ||
22943 | cat <<\_ASBOX | ||
22944 | ## ------------------------------------------- ## | ||
22945 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
22946 | ## ------------------------------------------- ## | ||
22947 | _ASBOX | ||
22948 | ) | | ||
22949 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22950 | ;; | ||
22951 | esac | ||
22952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22956 | else | ||
22957 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22958 | fi | ||
22959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22961 | |||
22962 | fi | ||
22963 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22964 | cat >>confdefs.h <<_ACEOF | ||
22965 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22966 | _ACEOF | ||
22967 | |||
22968 | fi | ||
22969 | |||
22970 | done | ||
22971 | |||
22972 | if test "$ac_cv_header_sectok_h" != yes; then | ||
22973 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
22974 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
22975 | { (exit 1); exit 1; }; } | ||
22976 | fi | ||
22977 | |||
22978 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
22979 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
22980 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
22981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22982 | else | ||
22983 | ac_check_lib_save_LIBS=$LIBS | ||
22984 | LIBS="-lsectok $LIBS" | ||
22985 | cat >conftest.$ac_ext <<_ACEOF | ||
22986 | /* confdefs.h. */ | ||
22987 | _ACEOF | ||
22988 | cat confdefs.h >>conftest.$ac_ext | ||
22989 | cat >>conftest.$ac_ext <<_ACEOF | ||
22990 | /* end confdefs.h. */ | ||
22991 | |||
22992 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22993 | #ifdef __cplusplus | ||
22994 | extern "C" | ||
22995 | #endif | ||
22996 | /* We use char because int might match the return type of a gcc2 | ||
22997 | builtin and then its argument prototype would still apply. */ | ||
22998 | char sectok_open (); | ||
22999 | int | ||
23000 | main () | ||
23001 | { | ||
23002 | sectok_open (); | ||
23003 | ; | ||
23004 | return 0; | ||
23005 | } | ||
23006 | _ACEOF | ||
23007 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23009 | (eval $ac_link) 2>conftest.er1 | ||
23010 | ac_status=$? | ||
23011 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23012 | rm -f conftest.er1 | ||
23013 | cat conftest.err >&5 | ||
23014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23015 | (exit $ac_status); } && | ||
23016 | { ac_try='test -z "$ac_c_werror_flag" | ||
23017 | || test ! -s conftest.err' | ||
23018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23019 | (eval $ac_try) 2>&5 | ||
23020 | ac_status=$? | ||
23021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23022 | (exit $ac_status); }; } && | ||
23023 | { ac_try='test -s conftest$ac_exeext' | ||
23024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23025 | (eval $ac_try) 2>&5 | ||
23026 | ac_status=$? | ||
23027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23028 | (exit $ac_status); }; }; then | ||
23029 | ac_cv_lib_sectok_sectok_open=yes | ||
23030 | else | ||
23031 | echo "$as_me: failed program was:" >&5 | ||
23032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23033 | |||
23034 | ac_cv_lib_sectok_sectok_open=no | ||
23035 | fi | ||
23036 | rm -f conftest.err conftest.$ac_objext \ | ||
23037 | conftest$ac_exeext conftest.$ac_ext | ||
23038 | LIBS=$ac_check_lib_save_LIBS | ||
23039 | fi | ||
23040 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
23041 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
23042 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
23043 | cat >>confdefs.h <<_ACEOF | ||
23044 | #define HAVE_LIBSECTOK 1 | ||
23045 | _ACEOF | ||
23046 | |||
23047 | LIBS="-lsectok $LIBS" | ||
23048 | |||
23049 | fi | ||
23050 | |||
23051 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
23052 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
23053 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
23054 | { (exit 1); exit 1; }; } | ||
23055 | fi | ||
23056 | |||
23057 | cat >>confdefs.h <<\_ACEOF | ||
23058 | #define SMARTCARD 1 | ||
23059 | _ACEOF | ||
23060 | |||
23061 | |||
23062 | cat >>confdefs.h <<\_ACEOF | ||
23063 | #define USE_SECTOK 1 | ||
23064 | _ACEOF | ||
23065 | |||
23066 | SCARD_MSG="yes, using sectok" | ||
23067 | fi | ||
23068 | |||
23069 | |||
23070 | fi; | ||
23071 | |||
23072 | # Check whether user wants OpenSC support | ||
23073 | OPENSC_CONFIG="no" | ||
23074 | |||
23075 | # Check whether --with-opensc or --without-opensc was given. | ||
23076 | if test "${with_opensc+set}" = set; then | ||
23077 | withval="$with_opensc" | ||
23078 | |||
23079 | if test "x$withval" != "xno" ; then | ||
23080 | if test "x$withval" != "xyes" ; then | ||
23081 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
23082 | else | ||
23083 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
23084 | set dummy opensc-config; ac_word=$2 | ||
23085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
23086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
23087 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
23088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23089 | else | ||
23090 | case $OPENSC_CONFIG in | ||
23091 | [\\/]* | ?:[\\/]*) | ||
23092 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
23093 | ;; | ||
23094 | *) | ||
23095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23096 | for as_dir in $PATH | ||
23097 | do | ||
23098 | IFS=$as_save_IFS | ||
23099 | test -z "$as_dir" && as_dir=. | ||
23100 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
23101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
23102 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
23103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
23104 | break 2 | ||
23105 | fi | ||
23106 | done | ||
23107 | done | ||
23108 | |||
23109 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
23110 | ;; | ||
23111 | esac | ||
23112 | fi | ||
23113 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
23114 | |||
23115 | if test -n "$OPENSC_CONFIG"; then | ||
23116 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
23117 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
23118 | else | ||
23119 | echo "$as_me:$LINENO: result: no" >&5 | ||
23120 | echo "${ECHO_T}no" >&6 | ||
23121 | fi | ||
23122 | |||
23123 | fi | ||
23124 | if test "$OPENSC_CONFIG" != "no"; then | ||
23125 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
23126 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
23127 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
23128 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
23129 | cat >>confdefs.h <<\_ACEOF | ||
23130 | #define SMARTCARD 1 | ||
23131 | _ACEOF | ||
23132 | |||
23133 | |||
23134 | cat >>confdefs.h <<\_ACEOF | ||
23135 | #define USE_OPENSC 1 | ||
23136 | _ACEOF | ||
23137 | |||
23138 | SCARD_MSG="yes, using OpenSC" | ||
23139 | fi | ||
23140 | fi | ||
23141 | |||
23142 | |||
23143 | fi; | ||
23144 | |||
23145 | # Check libraries needed by DNS fingerprint support | ||
23146 | echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
23147 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
23148 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
23149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23150 | else | ||
23151 | ac_func_search_save_LIBS=$LIBS | ||
23152 | ac_cv_search_getrrsetbyname=no | ||
23153 | cat >conftest.$ac_ext <<_ACEOF | ||
23154 | /* confdefs.h. */ | ||
23155 | _ACEOF | ||
23156 | cat confdefs.h >>conftest.$ac_ext | ||
23157 | cat >>conftest.$ac_ext <<_ACEOF | ||
23158 | /* end confdefs.h. */ | ||
23159 | |||
23160 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23161 | #ifdef __cplusplus | ||
23162 | extern "C" | ||
23163 | #endif | ||
23164 | /* We use char because int might match the return type of a gcc2 | ||
23165 | builtin and then its argument prototype would still apply. */ | ||
23166 | char getrrsetbyname (); | ||
23167 | int | ||
23168 | main () | ||
23169 | { | ||
23170 | getrrsetbyname (); | ||
23171 | ; | ||
23172 | return 0; | ||
23173 | } | ||
23174 | _ACEOF | ||
23175 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23177 | (eval $ac_link) 2>conftest.er1 | ||
23178 | ac_status=$? | ||
23179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23180 | rm -f conftest.er1 | ||
23181 | cat conftest.err >&5 | ||
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23183 | (exit $ac_status); } && | ||
23184 | { ac_try='test -z "$ac_c_werror_flag" | ||
23185 | || test ! -s conftest.err' | ||
23186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23187 | (eval $ac_try) 2>&5 | ||
23188 | ac_status=$? | ||
23189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23190 | (exit $ac_status); }; } && | ||
23191 | { ac_try='test -s conftest$ac_exeext' | ||
23192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23193 | (eval $ac_try) 2>&5 | ||
23194 | ac_status=$? | ||
23195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23196 | (exit $ac_status); }; }; then | ||
23197 | ac_cv_search_getrrsetbyname="none required" | ||
23198 | else | ||
23199 | echo "$as_me: failed program was:" >&5 | ||
23200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23201 | |||
23202 | fi | ||
23203 | rm -f conftest.err conftest.$ac_objext \ | ||
23204 | conftest$ac_exeext conftest.$ac_ext | ||
23205 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
23206 | for ac_lib in resolv; do | ||
23207 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23208 | cat >conftest.$ac_ext <<_ACEOF | ||
23209 | /* confdefs.h. */ | ||
23210 | _ACEOF | ||
23211 | cat confdefs.h >>conftest.$ac_ext | ||
23212 | cat >>conftest.$ac_ext <<_ACEOF | ||
23213 | /* end confdefs.h. */ | ||
23214 | |||
23215 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23216 | #ifdef __cplusplus | ||
23217 | extern "C" | ||
23218 | #endif | ||
23219 | /* We use char because int might match the return type of a gcc2 | ||
23220 | builtin and then its argument prototype would still apply. */ | ||
23221 | char getrrsetbyname (); | ||
23222 | int | ||
23223 | main () | ||
23224 | { | ||
23225 | getrrsetbyname (); | ||
23226 | ; | ||
23227 | return 0; | ||
23228 | } | ||
23229 | _ACEOF | ||
23230 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23232 | (eval $ac_link) 2>conftest.er1 | ||
23233 | ac_status=$? | ||
23234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23235 | rm -f conftest.er1 | ||
23236 | cat conftest.err >&5 | ||
23237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23238 | (exit $ac_status); } && | ||
23239 | { ac_try='test -z "$ac_c_werror_flag" | ||
23240 | || test ! -s conftest.err' | ||
23241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23242 | (eval $ac_try) 2>&5 | ||
23243 | ac_status=$? | ||
23244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23245 | (exit $ac_status); }; } && | ||
23246 | { ac_try='test -s conftest$ac_exeext' | ||
23247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23248 | (eval $ac_try) 2>&5 | ||
23249 | ac_status=$? | ||
23250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23251 | (exit $ac_status); }; }; then | ||
23252 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
23253 | break | ||
23254 | else | ||
23255 | echo "$as_me: failed program was:" >&5 | ||
23256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23257 | |||
23258 | fi | ||
23259 | rm -f conftest.err conftest.$ac_objext \ | ||
23260 | conftest$ac_exeext conftest.$ac_ext | ||
23261 | done | ||
23262 | fi | ||
23263 | LIBS=$ac_func_search_save_LIBS | ||
23264 | fi | ||
23265 | echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
23266 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
23267 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
23268 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
23269 | |||
23270 | cat >>confdefs.h <<\_ACEOF | ||
23271 | #define HAVE_GETRRSETBYNAME 1 | ||
23272 | _ACEOF | ||
23273 | |||
23274 | else | ||
23275 | |||
23276 | # Needed by our getrrsetbyname() | ||
23277 | echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
23278 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
23279 | if test "${ac_cv_search_res_query+set}" = set; then | ||
23280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23281 | else | ||
23282 | ac_func_search_save_LIBS=$LIBS | ||
23283 | ac_cv_search_res_query=no | ||
23284 | cat >conftest.$ac_ext <<_ACEOF | ||
23285 | /* confdefs.h. */ | ||
23286 | _ACEOF | ||
23287 | cat confdefs.h >>conftest.$ac_ext | ||
23288 | cat >>conftest.$ac_ext <<_ACEOF | ||
23289 | /* end confdefs.h. */ | ||
23290 | |||
23291 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23292 | #ifdef __cplusplus | ||
23293 | extern "C" | ||
23294 | #endif | ||
23295 | /* We use char because int might match the return type of a gcc2 | ||
23296 | builtin and then its argument prototype would still apply. */ | ||
23297 | char res_query (); | ||
23298 | int | ||
23299 | main () | ||
23300 | { | ||
23301 | res_query (); | ||
23302 | ; | ||
23303 | return 0; | ||
23304 | } | ||
23305 | _ACEOF | ||
23306 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23308 | (eval $ac_link) 2>conftest.er1 | ||
23309 | ac_status=$? | ||
23310 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23311 | rm -f conftest.er1 | ||
23312 | cat conftest.err >&5 | ||
23313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23314 | (exit $ac_status); } && | ||
23315 | { ac_try='test -z "$ac_c_werror_flag" | ||
23316 | || test ! -s conftest.err' | ||
23317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23318 | (eval $ac_try) 2>&5 | ||
23319 | ac_status=$? | ||
23320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23321 | (exit $ac_status); }; } && | ||
23322 | { ac_try='test -s conftest$ac_exeext' | ||
23323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23324 | (eval $ac_try) 2>&5 | ||
23325 | ac_status=$? | ||
23326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23327 | (exit $ac_status); }; }; then | ||
23328 | ac_cv_search_res_query="none required" | ||
23329 | else | ||
23330 | echo "$as_me: failed program was:" >&5 | ||
23331 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23332 | |||
23333 | fi | ||
23334 | rm -f conftest.err conftest.$ac_objext \ | ||
23335 | conftest$ac_exeext conftest.$ac_ext | ||
23336 | if test "$ac_cv_search_res_query" = no; then | ||
23337 | for ac_lib in resolv; do | ||
23338 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23339 | cat >conftest.$ac_ext <<_ACEOF | ||
23340 | /* confdefs.h. */ | ||
23341 | _ACEOF | ||
23342 | cat confdefs.h >>conftest.$ac_ext | ||
23343 | cat >>conftest.$ac_ext <<_ACEOF | ||
23344 | /* end confdefs.h. */ | ||
23345 | |||
23346 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23347 | #ifdef __cplusplus | ||
23348 | extern "C" | ||
23349 | #endif | ||
23350 | /* We use char because int might match the return type of a gcc2 | ||
23351 | builtin and then its argument prototype would still apply. */ | ||
23352 | char res_query (); | ||
23353 | int | ||
23354 | main () | ||
23355 | { | ||
23356 | res_query (); | ||
23357 | ; | ||
23358 | return 0; | ||
23359 | } | ||
23360 | _ACEOF | ||
23361 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23363 | (eval $ac_link) 2>conftest.er1 | ||
23364 | ac_status=$? | ||
23365 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23366 | rm -f conftest.er1 | ||
23367 | cat conftest.err >&5 | ||
23368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23369 | (exit $ac_status); } && | ||
23370 | { ac_try='test -z "$ac_c_werror_flag" | ||
23371 | || test ! -s conftest.err' | ||
23372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23373 | (eval $ac_try) 2>&5 | ||
23374 | ac_status=$? | ||
23375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23376 | (exit $ac_status); }; } && | ||
23377 | { ac_try='test -s conftest$ac_exeext' | ||
23378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23379 | (eval $ac_try) 2>&5 | ||
23380 | ac_status=$? | ||
23381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23382 | (exit $ac_status); }; }; then | ||
23383 | ac_cv_search_res_query="-l$ac_lib" | ||
23384 | break | ||
23385 | else | ||
23386 | echo "$as_me: failed program was:" >&5 | ||
23387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23388 | |||
23389 | fi | ||
23390 | rm -f conftest.err conftest.$ac_objext \ | ||
23391 | conftest$ac_exeext conftest.$ac_ext | ||
23392 | done | ||
23393 | fi | ||
23394 | LIBS=$ac_func_search_save_LIBS | ||
23395 | fi | ||
23396 | echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
23397 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
23398 | if test "$ac_cv_search_res_query" != no; then | ||
23399 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
23400 | |||
23401 | fi | ||
23402 | |||
23403 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
23404 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
23405 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
23406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23407 | else | ||
23408 | ac_func_search_save_LIBS=$LIBS | ||
23409 | ac_cv_search_dn_expand=no | ||
23410 | cat >conftest.$ac_ext <<_ACEOF | ||
23411 | /* confdefs.h. */ | ||
23412 | _ACEOF | ||
23413 | cat confdefs.h >>conftest.$ac_ext | ||
23414 | cat >>conftest.$ac_ext <<_ACEOF | ||
23415 | /* end confdefs.h. */ | ||
23416 | |||
23417 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23418 | #ifdef __cplusplus | ||
23419 | extern "C" | ||
23420 | #endif | ||
23421 | /* We use char because int might match the return type of a gcc2 | ||
23422 | builtin and then its argument prototype would still apply. */ | ||
23423 | char dn_expand (); | ||
23424 | int | ||
23425 | main () | ||
23426 | { | ||
23427 | dn_expand (); | ||
23428 | ; | ||
23429 | return 0; | ||
23430 | } | ||
23431 | _ACEOF | ||
23432 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23434 | (eval $ac_link) 2>conftest.er1 | ||
23435 | ac_status=$? | ||
23436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23437 | rm -f conftest.er1 | ||
23438 | cat conftest.err >&5 | ||
23439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23440 | (exit $ac_status); } && | ||
23441 | { ac_try='test -z "$ac_c_werror_flag" | ||
23442 | || test ! -s conftest.err' | ||
23443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23444 | (eval $ac_try) 2>&5 | ||
23445 | ac_status=$? | ||
23446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23447 | (exit $ac_status); }; } && | ||
23448 | { ac_try='test -s conftest$ac_exeext' | ||
23449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23450 | (eval $ac_try) 2>&5 | ||
23451 | ac_status=$? | ||
23452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23453 | (exit $ac_status); }; }; then | ||
23454 | ac_cv_search_dn_expand="none required" | ||
23455 | else | ||
23456 | echo "$as_me: failed program was:" >&5 | ||
23457 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23458 | |||
23459 | fi | ||
23460 | rm -f conftest.err conftest.$ac_objext \ | ||
23461 | conftest$ac_exeext conftest.$ac_ext | ||
23462 | if test "$ac_cv_search_dn_expand" = no; then | ||
23463 | for ac_lib in resolv; do | ||
23464 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23465 | cat >conftest.$ac_ext <<_ACEOF | ||
23466 | /* confdefs.h. */ | ||
23467 | _ACEOF | ||
23468 | cat confdefs.h >>conftest.$ac_ext | ||
23469 | cat >>conftest.$ac_ext <<_ACEOF | ||
23470 | /* end confdefs.h. */ | ||
23471 | |||
23472 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23473 | #ifdef __cplusplus | ||
23474 | extern "C" | ||
23475 | #endif | ||
23476 | /* We use char because int might match the return type of a gcc2 | ||
23477 | builtin and then its argument prototype would still apply. */ | ||
23478 | char dn_expand (); | ||
23479 | int | ||
23480 | main () | ||
23481 | { | ||
23482 | dn_expand (); | ||
23483 | ; | ||
23484 | return 0; | ||
23485 | } | ||
23486 | _ACEOF | ||
23487 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23489 | (eval $ac_link) 2>conftest.er1 | ||
23490 | ac_status=$? | ||
23491 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23492 | rm -f conftest.er1 | ||
23493 | cat conftest.err >&5 | ||
23494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23495 | (exit $ac_status); } && | ||
23496 | { ac_try='test -z "$ac_c_werror_flag" | ||
23497 | || test ! -s conftest.err' | ||
23498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23499 | (eval $ac_try) 2>&5 | ||
23500 | ac_status=$? | ||
23501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23502 | (exit $ac_status); }; } && | ||
23503 | { ac_try='test -s conftest$ac_exeext' | ||
23504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23505 | (eval $ac_try) 2>&5 | ||
23506 | ac_status=$? | ||
23507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23508 | (exit $ac_status); }; }; then | ||
23509 | ac_cv_search_dn_expand="-l$ac_lib" | ||
23510 | break | ||
23511 | else | ||
23512 | echo "$as_me: failed program was:" >&5 | ||
23513 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23514 | |||
23515 | fi | ||
23516 | rm -f conftest.err conftest.$ac_objext \ | ||
23517 | conftest$ac_exeext conftest.$ac_ext | ||
23518 | done | ||
23519 | fi | ||
23520 | LIBS=$ac_func_search_save_LIBS | ||
23521 | fi | ||
23522 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
23523 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
23524 | if test "$ac_cv_search_dn_expand" != no; then | ||
23525 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
23526 | |||
23527 | fi | ||
23528 | |||
23529 | echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
23530 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6 | ||
23531 | cat >conftest.$ac_ext <<_ACEOF | ||
23532 | /* confdefs.h. */ | ||
23533 | _ACEOF | ||
23534 | cat confdefs.h >>conftest.$ac_ext | ||
23535 | cat >>conftest.$ac_ext <<_ACEOF | ||
23536 | /* end confdefs.h. */ | ||
23537 | |||
23538 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23539 | #ifdef __cplusplus | ||
23540 | extern "C" | ||
23541 | #endif | ||
23542 | /* We use char because int might match the return type of a gcc2 | ||
23543 | builtin and then its argument prototype would still apply. */ | ||
23544 | char res_query (); | ||
23545 | int | ||
23546 | main () | ||
23547 | { | ||
23548 | res_query (); | ||
23549 | ; | ||
23550 | return 0; | ||
23551 | } | ||
23552 | _ACEOF | ||
23553 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23555 | (eval $ac_link) 2>conftest.er1 | ||
23556 | ac_status=$? | ||
23557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23558 | rm -f conftest.er1 | ||
23559 | cat conftest.err >&5 | ||
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23561 | (exit $ac_status); } && | ||
23562 | { ac_try='test -z "$ac_c_werror_flag" | ||
23563 | || test ! -s conftest.err' | ||
23564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23565 | (eval $ac_try) 2>&5 | ||
23566 | ac_status=$? | ||
23567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23568 | (exit $ac_status); }; } && | ||
23569 | { ac_try='test -s conftest$ac_exeext' | ||
23570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23571 | (eval $ac_try) 2>&5 | ||
23572 | ac_status=$? | ||
23573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23574 | (exit $ac_status); }; }; then | ||
23575 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23576 | echo "${ECHO_T}yes" >&6 | ||
23577 | else | ||
23578 | echo "$as_me: failed program was:" >&5 | ||
23579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23580 | |||
23581 | echo "$as_me:$LINENO: result: no" >&5 | ||
23582 | echo "${ECHO_T}no" >&6 | ||
23583 | saved_LIBS="$LIBS" | ||
23584 | LIBS="$LIBS -lresolv" | ||
23585 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
23586 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
23587 | cat >conftest.$ac_ext <<_ACEOF | ||
23588 | |||
23589 | #include <resolv.h> | ||
23590 | int main() | ||
23591 | { | ||
23592 | res_query (0, 0, 0, 0, 0); | ||
23593 | return 0; | ||
23594 | } | ||
23595 | |||
23596 | _ACEOF | ||
23597 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23599 | (eval $ac_link) 2>conftest.er1 | ||
23600 | ac_status=$? | ||
23601 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23602 | rm -f conftest.er1 | ||
23603 | cat conftest.err >&5 | ||
23604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23605 | (exit $ac_status); } && | ||
23606 | { ac_try='test -z "$ac_c_werror_flag" | ||
23607 | || test ! -s conftest.err' | ||
23608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23609 | (eval $ac_try) 2>&5 | ||
23610 | ac_status=$? | ||
23611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23612 | (exit $ac_status); }; } && | ||
23613 | { ac_try='test -s conftest$ac_exeext' | ||
23614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23615 | (eval $ac_try) 2>&5 | ||
23616 | ac_status=$? | ||
23617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23618 | (exit $ac_status); }; }; then | ||
23619 | LIBS="$LIBS -lresolv" | ||
23620 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23621 | echo "${ECHO_T}yes" >&6 | ||
23622 | else | ||
23623 | echo "$as_me: failed program was:" >&5 | ||
23624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23625 | |||
23626 | LIBS="$saved_LIBS" | ||
23627 | echo "$as_me:$LINENO: result: no" >&5 | ||
23628 | echo "${ECHO_T}no" >&6 | ||
23629 | fi | ||
23630 | rm -f conftest.err conftest.$ac_objext \ | ||
23631 | conftest$ac_exeext conftest.$ac_ext | ||
23632 | |||
23633 | fi | ||
23634 | rm -f conftest.err conftest.$ac_objext \ | ||
23635 | conftest$ac_exeext conftest.$ac_ext | ||
23636 | |||
23637 | |||
23638 | for ac_func in _getshort _getlong | ||
23639 | do | ||
23640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
23641 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
23642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
23643 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
23644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23645 | else | ||
23646 | cat >conftest.$ac_ext <<_ACEOF | ||
23647 | /* confdefs.h. */ | ||
23648 | _ACEOF | ||
23649 | cat confdefs.h >>conftest.$ac_ext | ||
23650 | cat >>conftest.$ac_ext <<_ACEOF | ||
23651 | /* end confdefs.h. */ | ||
23652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
23653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
23654 | #define $ac_func innocuous_$ac_func | ||
23655 | |||
23656 | /* System header to define __stub macros and hopefully few prototypes, | ||
23657 | which can conflict with char $ac_func (); below. | ||
23658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
23659 | <limits.h> exists even on freestanding compilers. */ | ||
23660 | |||
23661 | #ifdef __STDC__ | ||
23662 | # include <limits.h> | ||
23663 | #else | ||
23664 | # include <assert.h> | ||
23665 | #endif | ||
23666 | |||
23667 | #undef $ac_func | ||
23668 | |||
23669 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23670 | #ifdef __cplusplus | ||
23671 | extern "C" | ||
23672 | { | ||
23673 | #endif | ||
23674 | /* We use char because int might match the return type of a gcc2 | ||
23675 | builtin and then its argument prototype would still apply. */ | ||
23676 | char $ac_func (); | ||
23677 | /* The GNU C library defines this for functions which it implements | ||
23678 | to always fail with ENOSYS. Some functions are actually named | ||
23679 | something starting with __ and the normal name is an alias. */ | ||
23680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
23681 | choke me | ||
23682 | #else | ||
23683 | char (*f) () = $ac_func; | ||
23684 | #endif | ||
23685 | #ifdef __cplusplus | ||
23686 | } | ||
23687 | #endif | ||
23688 | |||
23689 | int | ||
23690 | main () | ||
23691 | { | ||
23692 | return f != $ac_func; | ||
23693 | ; | ||
23694 | return 0; | ||
23695 | } | ||
23696 | _ACEOF | ||
23697 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23699 | (eval $ac_link) 2>conftest.er1 | ||
23700 | ac_status=$? | ||
23701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23702 | rm -f conftest.er1 | ||
23703 | cat conftest.err >&5 | ||
23704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23705 | (exit $ac_status); } && | ||
23706 | { ac_try='test -z "$ac_c_werror_flag" | ||
23707 | || test ! -s conftest.err' | ||
23708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23709 | (eval $ac_try) 2>&5 | ||
23710 | ac_status=$? | ||
23711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23712 | (exit $ac_status); }; } && | ||
23713 | { ac_try='test -s conftest$ac_exeext' | ||
23714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23715 | (eval $ac_try) 2>&5 | ||
23716 | ac_status=$? | ||
23717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23718 | (exit $ac_status); }; }; then | ||
23719 | eval "$as_ac_var=yes" | ||
23720 | else | ||
23721 | echo "$as_me: failed program was:" >&5 | ||
23722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23723 | |||
23724 | eval "$as_ac_var=no" | ||
23725 | fi | ||
23726 | rm -f conftest.err conftest.$ac_objext \ | ||
23727 | conftest$ac_exeext conftest.$ac_ext | ||
23728 | fi | ||
23729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
23730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
23731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
23732 | cat >>confdefs.h <<_ACEOF | ||
23733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
23734 | _ACEOF | ||
23735 | |||
23736 | fi | ||
23737 | done | ||
23738 | |||
23739 | echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
23740 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6 | ||
23741 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
23742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23743 | else | ||
23744 | cat >conftest.$ac_ext <<_ACEOF | ||
23745 | /* confdefs.h. */ | ||
23746 | _ACEOF | ||
23747 | cat confdefs.h >>conftest.$ac_ext | ||
23748 | cat >>conftest.$ac_ext <<_ACEOF | ||
23749 | /* end confdefs.h. */ | ||
23750 | #include <sys/types.h> | ||
23751 | #include <arpa/nameser.h> | ||
23752 | |||
23753 | int | ||
23754 | main () | ||
23755 | { | ||
23756 | #ifndef _getshort | ||
23757 | char *p = (char *) _getshort; | ||
23758 | #endif | ||
23759 | |||
23760 | ; | ||
23761 | return 0; | ||
23762 | } | ||
23763 | _ACEOF | ||
23764 | rm -f conftest.$ac_objext | ||
23765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23766 | (eval $ac_compile) 2>conftest.er1 | ||
23767 | ac_status=$? | ||
23768 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23769 | rm -f conftest.er1 | ||
23770 | cat conftest.err >&5 | ||
23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23772 | (exit $ac_status); } && | ||
23773 | { ac_try='test -z "$ac_c_werror_flag" | ||
23774 | || test ! -s conftest.err' | ||
23775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23776 | (eval $ac_try) 2>&5 | ||
23777 | ac_status=$? | ||
23778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23779 | (exit $ac_status); }; } && | ||
23780 | { ac_try='test -s conftest.$ac_objext' | ||
23781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23782 | (eval $ac_try) 2>&5 | ||
23783 | ac_status=$? | ||
23784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23785 | (exit $ac_status); }; }; then | ||
23786 | ac_cv_have_decl__getshort=yes | ||
23787 | else | ||
23788 | echo "$as_me: failed program was:" >&5 | ||
23789 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23790 | |||
23791 | ac_cv_have_decl__getshort=no | ||
23792 | fi | ||
23793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23794 | fi | ||
23795 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
23796 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6 | ||
23797 | if test $ac_cv_have_decl__getshort = yes; then | ||
23798 | |||
23799 | cat >>confdefs.h <<_ACEOF | ||
23800 | #define HAVE_DECL__GETSHORT 1 | ||
23801 | _ACEOF | ||
23802 | |||
23803 | |||
23804 | else | ||
23805 | cat >>confdefs.h <<_ACEOF | ||
23806 | #define HAVE_DECL__GETSHORT 0 | ||
23807 | _ACEOF | ||
23808 | |||
23809 | |||
23810 | fi | ||
23811 | echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
23812 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6 | ||
23813 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
23814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23815 | else | ||
23816 | cat >conftest.$ac_ext <<_ACEOF | ||
23817 | /* confdefs.h. */ | ||
23818 | _ACEOF | ||
23819 | cat confdefs.h >>conftest.$ac_ext | ||
23820 | cat >>conftest.$ac_ext <<_ACEOF | ||
23821 | /* end confdefs.h. */ | ||
23822 | #include <sys/types.h> | ||
23823 | #include <arpa/nameser.h> | ||
23824 | |||
23825 | int | ||
23826 | main () | ||
23827 | { | ||
23828 | #ifndef _getlong | ||
23829 | char *p = (char *) _getlong; | ||
23830 | #endif | ||
23831 | |||
23832 | ; | ||
23833 | return 0; | ||
23834 | } | ||
23835 | _ACEOF | ||
23836 | rm -f conftest.$ac_objext | ||
23837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23838 | (eval $ac_compile) 2>conftest.er1 | ||
23839 | ac_status=$? | ||
23840 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23841 | rm -f conftest.er1 | ||
23842 | cat conftest.err >&5 | ||
23843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23844 | (exit $ac_status); } && | ||
23845 | { ac_try='test -z "$ac_c_werror_flag" | ||
23846 | || test ! -s conftest.err' | ||
23847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23848 | (eval $ac_try) 2>&5 | ||
23849 | ac_status=$? | ||
23850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23851 | (exit $ac_status); }; } && | ||
23852 | { ac_try='test -s conftest.$ac_objext' | ||
23853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23854 | (eval $ac_try) 2>&5 | ||
23855 | ac_status=$? | ||
23856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23857 | (exit $ac_status); }; }; then | ||
23858 | ac_cv_have_decl__getlong=yes | ||
23859 | else | ||
23860 | echo "$as_me: failed program was:" >&5 | ||
23861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23862 | |||
23863 | ac_cv_have_decl__getlong=no | ||
23864 | fi | ||
23865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23866 | fi | ||
23867 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
23868 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6 | ||
23869 | if test $ac_cv_have_decl__getlong = yes; then | ||
23870 | |||
23871 | cat >>confdefs.h <<_ACEOF | ||
23872 | #define HAVE_DECL__GETLONG 1 | ||
23873 | _ACEOF | ||
23874 | |||
23875 | |||
23876 | else | ||
23877 | cat >>confdefs.h <<_ACEOF | ||
23878 | #define HAVE_DECL__GETLONG 0 | ||
23879 | _ACEOF | ||
23880 | |||
23881 | |||
23882 | fi | ||
23883 | |||
23884 | |||
23885 | echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
23886 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
23887 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
23888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23889 | else | ||
23890 | cat >conftest.$ac_ext <<_ACEOF | ||
23891 | /* confdefs.h. */ | ||
23892 | _ACEOF | ||
23893 | cat confdefs.h >>conftest.$ac_ext | ||
23894 | cat >>conftest.$ac_ext <<_ACEOF | ||
23895 | /* end confdefs.h. */ | ||
23896 | #include <arpa/nameser.h> | ||
23897 | |||
23898 | int | ||
23899 | main () | ||
23900 | { | ||
23901 | static HEADER ac_aggr; | ||
23902 | if (ac_aggr.ad) | ||
23903 | return 0; | ||
23904 | ; | ||
23905 | return 0; | ||
23906 | } | ||
23907 | _ACEOF | ||
23908 | rm -f conftest.$ac_objext | ||
23909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23910 | (eval $ac_compile) 2>conftest.er1 | ||
23911 | ac_status=$? | ||
23912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23913 | rm -f conftest.er1 | ||
23914 | cat conftest.err >&5 | ||
23915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23916 | (exit $ac_status); } && | ||
23917 | { ac_try='test -z "$ac_c_werror_flag" | ||
23918 | || test ! -s conftest.err' | ||
23919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23920 | (eval $ac_try) 2>&5 | ||
23921 | ac_status=$? | ||
23922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23923 | (exit $ac_status); }; } && | ||
23924 | { ac_try='test -s conftest.$ac_objext' | ||
23925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23926 | (eval $ac_try) 2>&5 | ||
23927 | ac_status=$? | ||
23928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23929 | (exit $ac_status); }; }; then | ||
23930 | ac_cv_member_HEADER_ad=yes | ||
23931 | else | ||
23932 | echo "$as_me: failed program was:" >&5 | ||
23933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23934 | |||
23935 | cat >conftest.$ac_ext <<_ACEOF | ||
23936 | /* confdefs.h. */ | ||
23937 | _ACEOF | ||
23938 | cat confdefs.h >>conftest.$ac_ext | ||
23939 | cat >>conftest.$ac_ext <<_ACEOF | ||
23940 | /* end confdefs.h. */ | ||
23941 | #include <arpa/nameser.h> | ||
23942 | |||
23943 | int | ||
23944 | main () | ||
23945 | { | ||
23946 | static HEADER ac_aggr; | ||
23947 | if (sizeof ac_aggr.ad) | ||
23948 | return 0; | ||
23949 | ; | ||
23950 | return 0; | ||
23951 | } | ||
23952 | _ACEOF | ||
23953 | rm -f conftest.$ac_objext | ||
23954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23955 | (eval $ac_compile) 2>conftest.er1 | ||
23956 | ac_status=$? | ||
23957 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23958 | rm -f conftest.er1 | ||
23959 | cat conftest.err >&5 | ||
23960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23961 | (exit $ac_status); } && | ||
23962 | { ac_try='test -z "$ac_c_werror_flag" | ||
23963 | || test ! -s conftest.err' | ||
23964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23965 | (eval $ac_try) 2>&5 | ||
23966 | ac_status=$? | ||
23967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23968 | (exit $ac_status); }; } && | ||
23969 | { ac_try='test -s conftest.$ac_objext' | ||
23970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23971 | (eval $ac_try) 2>&5 | ||
23972 | ac_status=$? | ||
23973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23974 | (exit $ac_status); }; }; then | ||
23975 | ac_cv_member_HEADER_ad=yes | ||
23976 | else | ||
23977 | echo "$as_me: failed program was:" >&5 | ||
23978 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23979 | |||
23980 | ac_cv_member_HEADER_ad=no | ||
23981 | fi | ||
23982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23983 | fi | ||
23984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23985 | fi | ||
23986 | echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
23987 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
23988 | if test $ac_cv_member_HEADER_ad = yes; then | ||
23989 | |||
23990 | cat >>confdefs.h <<\_ACEOF | ||
23991 | #define HAVE_HEADER_AD 1 | ||
23992 | _ACEOF | ||
23993 | |||
23994 | fi | ||
23995 | |||
23996 | |||
23997 | fi | ||
23998 | |||
23999 | |||
24000 | # Check whether user wants Kerberos 5 support | ||
24001 | KRB5_MSG="no" | ||
24002 | |||
24003 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
24004 | if test "${with_kerberos5+set}" = set; then | ||
24005 | withval="$with_kerberos5" | ||
24006 | if test "x$withval" != "xno" ; then | ||
24007 | if test "x$withval" = "xyes" ; then | ||
24008 | KRB5ROOT="/usr/local" | ||
24009 | else | ||
24010 | KRB5ROOT=${withval} | ||
24011 | fi | ||
24012 | |||
24013 | |||
24014 | cat >>confdefs.h <<\_ACEOF | ||
24015 | #define KRB5 1 | ||
24016 | _ACEOF | ||
24017 | |||
24018 | KRB5_MSG="yes" | ||
24019 | |||
24020 | echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
24021 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
24022 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
24023 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
24024 | echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
24025 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
24026 | |||
24027 | echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
24028 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
24029 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
24030 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24031 | echo "${ECHO_T}yes" >&6 | ||
24032 | |||
24033 | cat >>confdefs.h <<\_ACEOF | ||
24034 | #define GSSAPI 1 | ||
24035 | _ACEOF | ||
24036 | |||
24037 | k5confopts=gssapi | ||
24038 | else | ||
24039 | echo "$as_me:$LINENO: result: no" >&5 | ||
24040 | echo "${ECHO_T}no" >&6 | ||
24041 | k5confopts="" | ||
24042 | fi | ||
24043 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
24044 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
24045 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
24046 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
24047 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
24048 | cat >conftest.$ac_ext <<_ACEOF | ||
24049 | /* confdefs.h. */ | ||
24050 | _ACEOF | ||
24051 | cat confdefs.h >>conftest.$ac_ext | ||
24052 | cat >>conftest.$ac_ext <<_ACEOF | ||
24053 | /* end confdefs.h. */ | ||
24054 | #include <krb5.h> | ||
24055 | int | ||
24056 | main () | ||
24057 | { | ||
24058 | char *tmp = heimdal_version; | ||
24059 | ; | ||
24060 | return 0; | ||
24061 | } | ||
24062 | _ACEOF | ||
24063 | rm -f conftest.$ac_objext | ||
24064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24065 | (eval $ac_compile) 2>conftest.er1 | ||
24066 | ac_status=$? | ||
24067 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24068 | rm -f conftest.er1 | ||
24069 | cat conftest.err >&5 | ||
24070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24071 | (exit $ac_status); } && | ||
24072 | { ac_try='test -z "$ac_c_werror_flag" | ||
24073 | || test ! -s conftest.err' | ||
24074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24075 | (eval $ac_try) 2>&5 | ||
24076 | ac_status=$? | ||
24077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24078 | (exit $ac_status); }; } && | ||
24079 | { ac_try='test -s conftest.$ac_objext' | ||
24080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24081 | (eval $ac_try) 2>&5 | ||
24082 | ac_status=$? | ||
24083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24084 | (exit $ac_status); }; }; then | ||
24085 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24086 | echo "${ECHO_T}yes" >&6 | ||
24087 | |||
24088 | cat >>confdefs.h <<\_ACEOF | ||
24089 | #define HEIMDAL 1 | ||
24090 | _ACEOF | ||
24091 | |||
24092 | else | ||
24093 | echo "$as_me: failed program was:" >&5 | ||
24094 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24095 | |||
24096 | echo "$as_me:$LINENO: result: no" >&5 | ||
24097 | echo "${ECHO_T}no" >&6 | ||
24098 | |||
24099 | fi | ||
24100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24101 | else | ||
24102 | echo "$as_me:$LINENO: result: no" >&5 | ||
24103 | echo "${ECHO_T}no" >&6 | ||
24104 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
24105 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
24106 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
24107 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
24108 | cat >conftest.$ac_ext <<_ACEOF | ||
24109 | /* confdefs.h. */ | ||
24110 | _ACEOF | ||
24111 | cat confdefs.h >>conftest.$ac_ext | ||
24112 | cat >>conftest.$ac_ext <<_ACEOF | ||
24113 | /* end confdefs.h. */ | ||
24114 | #include <krb5.h> | ||
24115 | int | ||
24116 | main () | ||
24117 | { | ||
24118 | char *tmp = heimdal_version; | ||
24119 | ; | ||
24120 | return 0; | ||
24121 | } | ||
24122 | _ACEOF | ||
24123 | rm -f conftest.$ac_objext | ||
24124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24125 | (eval $ac_compile) 2>conftest.er1 | ||
24126 | ac_status=$? | ||
24127 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24128 | rm -f conftest.er1 | ||
24129 | cat conftest.err >&5 | ||
24130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24131 | (exit $ac_status); } && | ||
24132 | { ac_try='test -z "$ac_c_werror_flag" | ||
24133 | || test ! -s conftest.err' | ||
24134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24135 | (eval $ac_try) 2>&5 | ||
24136 | ac_status=$? | ||
24137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24138 | (exit $ac_status); }; } && | ||
24139 | { ac_try='test -s conftest.$ac_objext' | ||
24140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24141 | (eval $ac_try) 2>&5 | ||
24142 | ac_status=$? | ||
24143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24144 | (exit $ac_status); }; }; then | ||
24145 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24146 | echo "${ECHO_T}yes" >&6 | ||
24147 | cat >>confdefs.h <<\_ACEOF | ||
24148 | #define HEIMDAL 1 | ||
24149 | _ACEOF | ||
24150 | |||
24151 | K5LIBS="-lkrb5 -ldes" | ||
24152 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
24153 | echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
24154 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6 | ||
24155 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
24156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24157 | else | ||
24158 | ac_check_lib_save_LIBS=$LIBS | ||
24159 | LIBS="-lroken $LIBS" | ||
24160 | cat >conftest.$ac_ext <<_ACEOF | ||
24161 | /* confdefs.h. */ | ||
24162 | _ACEOF | ||
24163 | cat confdefs.h >>conftest.$ac_ext | ||
24164 | cat >>conftest.$ac_ext <<_ACEOF | ||
24165 | /* end confdefs.h. */ | ||
24166 | |||
24167 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24168 | #ifdef __cplusplus | ||
24169 | extern "C" | ||
24170 | #endif | ||
24171 | /* We use char because int might match the return type of a gcc2 | ||
24172 | builtin and then its argument prototype would still apply. */ | ||
24173 | char net_write (); | ||
24174 | int | ||
24175 | main () | ||
24176 | { | ||
24177 | net_write (); | ||
24178 | ; | ||
24179 | return 0; | ||
24180 | } | ||
24181 | _ACEOF | ||
24182 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24184 | (eval $ac_link) 2>conftest.er1 | ||
24185 | ac_status=$? | ||
24186 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24187 | rm -f conftest.er1 | ||
24188 | cat conftest.err >&5 | ||
24189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24190 | (exit $ac_status); } && | ||
24191 | { ac_try='test -z "$ac_c_werror_flag" | ||
24192 | || test ! -s conftest.err' | ||
24193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24194 | (eval $ac_try) 2>&5 | ||
24195 | ac_status=$? | ||
24196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24197 | (exit $ac_status); }; } && | ||
24198 | { ac_try='test -s conftest$ac_exeext' | ||
24199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24200 | (eval $ac_try) 2>&5 | ||
24201 | ac_status=$? | ||
24202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24203 | (exit $ac_status); }; }; then | ||
24204 | ac_cv_lib_roken_net_write=yes | ||
24205 | else | ||
24206 | echo "$as_me: failed program was:" >&5 | ||
24207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24208 | |||
24209 | ac_cv_lib_roken_net_write=no | ||
24210 | fi | ||
24211 | rm -f conftest.err conftest.$ac_objext \ | ||
24212 | conftest$ac_exeext conftest.$ac_ext | ||
24213 | LIBS=$ac_check_lib_save_LIBS | ||
24214 | fi | ||
24215 | echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
24216 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6 | ||
24217 | if test $ac_cv_lib_roken_net_write = yes; then | ||
24218 | K5LIBS="$K5LIBS -lroken" | ||
24219 | fi | ||
24220 | |||
24221 | |||
24222 | else | ||
24223 | echo "$as_me: failed program was:" >&5 | ||
24224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24225 | |||
24226 | echo "$as_me:$LINENO: result: no" >&5 | ||
24227 | echo "${ECHO_T}no" >&6 | ||
24228 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
24229 | |||
24230 | |||
24231 | fi | ||
24232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24233 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
24234 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
24235 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
24236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24237 | else | ||
24238 | ac_func_search_save_LIBS=$LIBS | ||
24239 | ac_cv_search_dn_expand=no | ||
24240 | cat >conftest.$ac_ext <<_ACEOF | ||
24241 | /* confdefs.h. */ | ||
24242 | _ACEOF | ||
24243 | cat confdefs.h >>conftest.$ac_ext | ||
24244 | cat >>conftest.$ac_ext <<_ACEOF | ||
24245 | /* end confdefs.h. */ | ||
24246 | |||
24247 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24248 | #ifdef __cplusplus | ||
24249 | extern "C" | ||
24250 | #endif | ||
24251 | /* We use char because int might match the return type of a gcc2 | ||
24252 | builtin and then its argument prototype would still apply. */ | ||
24253 | char dn_expand (); | ||
24254 | int | ||
24255 | main () | ||
24256 | { | ||
24257 | dn_expand (); | ||
24258 | ; | ||
24259 | return 0; | ||
24260 | } | ||
24261 | _ACEOF | ||
24262 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24264 | (eval $ac_link) 2>conftest.er1 | ||
24265 | ac_status=$? | ||
24266 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24267 | rm -f conftest.er1 | ||
24268 | cat conftest.err >&5 | ||
24269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24270 | (exit $ac_status); } && | ||
24271 | { ac_try='test -z "$ac_c_werror_flag" | ||
24272 | || test ! -s conftest.err' | ||
24273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24274 | (eval $ac_try) 2>&5 | ||
24275 | ac_status=$? | ||
24276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24277 | (exit $ac_status); }; } && | ||
24278 | { ac_try='test -s conftest$ac_exeext' | ||
24279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24280 | (eval $ac_try) 2>&5 | ||
24281 | ac_status=$? | ||
24282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24283 | (exit $ac_status); }; }; then | ||
24284 | ac_cv_search_dn_expand="none required" | ||
24285 | else | ||
24286 | echo "$as_me: failed program was:" >&5 | ||
24287 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24288 | |||
24289 | fi | ||
24290 | rm -f conftest.err conftest.$ac_objext \ | ||
24291 | conftest$ac_exeext conftest.$ac_ext | ||
24292 | if test "$ac_cv_search_dn_expand" = no; then | ||
24293 | for ac_lib in resolv; do | ||
24294 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
24295 | cat >conftest.$ac_ext <<_ACEOF | ||
24296 | /* confdefs.h. */ | ||
24297 | _ACEOF | ||
24298 | cat confdefs.h >>conftest.$ac_ext | ||
24299 | cat >>conftest.$ac_ext <<_ACEOF | ||
24300 | /* end confdefs.h. */ | ||
24301 | |||
24302 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24303 | #ifdef __cplusplus | ||
24304 | extern "C" | ||
24305 | #endif | ||
24306 | /* We use char because int might match the return type of a gcc2 | ||
24307 | builtin and then its argument prototype would still apply. */ | ||
24308 | char dn_expand (); | ||
24309 | int | ||
24310 | main () | ||
24311 | { | ||
24312 | dn_expand (); | ||
24313 | ; | ||
24314 | return 0; | ||
24315 | } | ||
24316 | _ACEOF | ||
24317 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24319 | (eval $ac_link) 2>conftest.er1 | ||
24320 | ac_status=$? | ||
24321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24322 | rm -f conftest.er1 | ||
24323 | cat conftest.err >&5 | ||
24324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24325 | (exit $ac_status); } && | ||
24326 | { ac_try='test -z "$ac_c_werror_flag" | ||
24327 | || test ! -s conftest.err' | ||
24328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24329 | (eval $ac_try) 2>&5 | ||
24330 | ac_status=$? | ||
24331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24332 | (exit $ac_status); }; } && | ||
24333 | { ac_try='test -s conftest$ac_exeext' | ||
24334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24335 | (eval $ac_try) 2>&5 | ||
24336 | ac_status=$? | ||
24337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24338 | (exit $ac_status); }; }; then | ||
24339 | ac_cv_search_dn_expand="-l$ac_lib" | ||
24340 | break | ||
24341 | else | ||
24342 | echo "$as_me: failed program was:" >&5 | ||
24343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24344 | |||
24345 | fi | ||
24346 | rm -f conftest.err conftest.$ac_objext \ | ||
24347 | conftest$ac_exeext conftest.$ac_ext | ||
24348 | done | ||
24349 | fi | ||
24350 | LIBS=$ac_func_search_save_LIBS | ||
24351 | fi | ||
24352 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
24353 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
24354 | if test "$ac_cv_search_dn_expand" != no; then | ||
24355 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
24356 | |||
24357 | fi | ||
24358 | |||
24359 | |||
24360 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
24361 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
24362 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
24363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24364 | else | ||
24365 | ac_check_lib_save_LIBS=$LIBS | ||
24366 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
24367 | cat >conftest.$ac_ext <<_ACEOF | ||
24368 | /* confdefs.h. */ | ||
24369 | _ACEOF | ||
24370 | cat confdefs.h >>conftest.$ac_ext | ||
24371 | cat >>conftest.$ac_ext <<_ACEOF | ||
24372 | /* end confdefs.h. */ | ||
24373 | |||
24374 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24375 | #ifdef __cplusplus | ||
24376 | extern "C" | ||
24377 | #endif | ||
24378 | /* We use char because int might match the return type of a gcc2 | ||
24379 | builtin and then its argument prototype would still apply. */ | ||
24380 | char gss_init_sec_context (); | ||
24381 | int | ||
24382 | main () | ||
24383 | { | ||
24384 | gss_init_sec_context (); | ||
24385 | ; | ||
24386 | return 0; | ||
24387 | } | ||
24388 | _ACEOF | ||
24389 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24391 | (eval $ac_link) 2>conftest.er1 | ||
24392 | ac_status=$? | ||
24393 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24394 | rm -f conftest.er1 | ||
24395 | cat conftest.err >&5 | ||
24396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24397 | (exit $ac_status); } && | ||
24398 | { ac_try='test -z "$ac_c_werror_flag" | ||
24399 | || test ! -s conftest.err' | ||
24400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24401 | (eval $ac_try) 2>&5 | ||
24402 | ac_status=$? | ||
24403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24404 | (exit $ac_status); }; } && | ||
24405 | { ac_try='test -s conftest$ac_exeext' | ||
24406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24407 | (eval $ac_try) 2>&5 | ||
24408 | ac_status=$? | ||
24409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24410 | (exit $ac_status); }; }; then | ||
24411 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
24412 | else | ||
24413 | echo "$as_me: failed program was:" >&5 | ||
24414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24415 | |||
24416 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
24417 | fi | ||
24418 | rm -f conftest.err conftest.$ac_objext \ | ||
24419 | conftest$ac_exeext conftest.$ac_ext | ||
24420 | LIBS=$ac_check_lib_save_LIBS | ||
24421 | fi | ||
24422 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
24423 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
24424 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
24425 | cat >>confdefs.h <<\_ACEOF | ||
24426 | #define GSSAPI 1 | ||
24427 | _ACEOF | ||
24428 | |||
24429 | K5LIBS="-lgssapi $K5LIBS" | ||
24430 | else | ||
24431 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
24432 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
24433 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
24434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24435 | else | ||
24436 | ac_check_lib_save_LIBS=$LIBS | ||
24437 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
24438 | cat >conftest.$ac_ext <<_ACEOF | ||
24439 | /* confdefs.h. */ | ||
24440 | _ACEOF | ||
24441 | cat confdefs.h >>conftest.$ac_ext | ||
24442 | cat >>conftest.$ac_ext <<_ACEOF | ||
24443 | /* end confdefs.h. */ | ||
24444 | |||
24445 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24446 | #ifdef __cplusplus | ||
24447 | extern "C" | ||
24448 | #endif | ||
24449 | /* We use char because int might match the return type of a gcc2 | ||
24450 | builtin and then its argument prototype would still apply. */ | ||
24451 | char gss_init_sec_context (); | ||
24452 | int | ||
24453 | main () | ||
24454 | { | ||
24455 | gss_init_sec_context (); | ||
24456 | ; | ||
24457 | return 0; | ||
24458 | } | ||
24459 | _ACEOF | ||
24460 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24462 | (eval $ac_link) 2>conftest.er1 | ||
24463 | ac_status=$? | ||
24464 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24465 | rm -f conftest.er1 | ||
24466 | cat conftest.err >&5 | ||
24467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24468 | (exit $ac_status); } && | ||
24469 | { ac_try='test -z "$ac_c_werror_flag" | ||
24470 | || test ! -s conftest.err' | ||
24471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24472 | (eval $ac_try) 2>&5 | ||
24473 | ac_status=$? | ||
24474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24475 | (exit $ac_status); }; } && | ||
24476 | { ac_try='test -s conftest$ac_exeext' | ||
24477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24478 | (eval $ac_try) 2>&5 | ||
24479 | ac_status=$? | ||
24480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24481 | (exit $ac_status); }; }; then | ||
24482 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
24483 | else | ||
24484 | echo "$as_me: failed program was:" >&5 | ||
24485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24486 | |||
24487 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
24488 | fi | ||
24489 | rm -f conftest.err conftest.$ac_objext \ | ||
24490 | conftest$ac_exeext conftest.$ac_ext | ||
24491 | LIBS=$ac_check_lib_save_LIBS | ||
24492 | fi | ||
24493 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
24494 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
24495 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
24496 | cat >>confdefs.h <<\_ACEOF | ||
24497 | #define GSSAPI 1 | ||
24498 | _ACEOF | ||
24499 | |||
24500 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
24501 | else | ||
24502 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
24503 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
24504 | fi | ||
24505 | |||
24506 | |||
24507 | fi | ||
24508 | |||
24509 | |||
24510 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
24511 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
24512 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
24513 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
24514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24515 | fi | ||
24516 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
24517 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
24518 | else | ||
24519 | # Is the header compilable? | ||
24520 | echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
24521 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 | ||
24522 | cat >conftest.$ac_ext <<_ACEOF | ||
24523 | /* confdefs.h. */ | ||
24524 | _ACEOF | ||
24525 | cat confdefs.h >>conftest.$ac_ext | ||
24526 | cat >>conftest.$ac_ext <<_ACEOF | ||
24527 | /* end confdefs.h. */ | ||
24528 | $ac_includes_default | ||
24529 | #include <gssapi.h> | ||
24530 | _ACEOF | ||
24531 | rm -f conftest.$ac_objext | ||
24532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24533 | (eval $ac_compile) 2>conftest.er1 | ||
24534 | ac_status=$? | ||
24535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24536 | rm -f conftest.er1 | ||
24537 | cat conftest.err >&5 | ||
24538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24539 | (exit $ac_status); } && | ||
24540 | { ac_try='test -z "$ac_c_werror_flag" | ||
24541 | || test ! -s conftest.err' | ||
24542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24543 | (eval $ac_try) 2>&5 | ||
24544 | ac_status=$? | ||
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24546 | (exit $ac_status); }; } && | ||
24547 | { ac_try='test -s conftest.$ac_objext' | ||
24548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24549 | (eval $ac_try) 2>&5 | ||
24550 | ac_status=$? | ||
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24552 | (exit $ac_status); }; }; then | ||
24553 | ac_header_compiler=yes | ||
24554 | else | ||
24555 | echo "$as_me: failed program was:" >&5 | ||
24556 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24557 | |||
24558 | ac_header_compiler=no | ||
24559 | fi | ||
24560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24561 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
24562 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
24563 | |||
24564 | # Is the header present? | ||
24565 | echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
24566 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 | ||
24567 | cat >conftest.$ac_ext <<_ACEOF | ||
24568 | /* confdefs.h. */ | ||
24569 | _ACEOF | ||
24570 | cat confdefs.h >>conftest.$ac_ext | ||
24571 | cat >>conftest.$ac_ext <<_ACEOF | ||
24572 | /* end confdefs.h. */ | ||
24573 | #include <gssapi.h> | ||
24574 | _ACEOF | ||
24575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
24576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
24577 | ac_status=$? | ||
24578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24579 | rm -f conftest.er1 | ||
24580 | cat conftest.err >&5 | ||
24581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24582 | (exit $ac_status); } >/dev/null; then | ||
24583 | if test -s conftest.err; then | ||
24584 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
24585 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
24586 | else | ||
24587 | ac_cpp_err= | ||
24588 | fi | ||
24589 | else | ||
24590 | ac_cpp_err=yes | ||
24591 | fi | ||
24592 | if test -z "$ac_cpp_err"; then | ||
24593 | ac_header_preproc=yes | ||
24594 | else | ||
24595 | echo "$as_me: failed program was:" >&5 | ||
24596 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24597 | |||
24598 | ac_header_preproc=no | ||
24599 | fi | ||
24600 | rm -f conftest.err conftest.$ac_ext | ||
24601 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
24602 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
24603 | |||
24604 | # So? What about this header? | ||
24605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
24606 | yes:no: ) | ||
24607 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
24608 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
24609 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
24610 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
24611 | ac_header_preproc=yes | ||
24612 | ;; | ||
24613 | no:yes:* ) | ||
24614 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
24615 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
24616 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
24617 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
24618 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
24619 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
24620 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
24621 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24622 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
24623 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
24624 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
24625 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
24626 | ( | ||
24627 | cat <<\_ASBOX | ||
24628 | ## ------------------------------------------- ## | ||
24629 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24630 | ## ------------------------------------------- ## | ||
24631 | _ASBOX | ||
24632 | ) | | ||
24633 | sed "s/^/$as_me: WARNING: /" >&2 | ||
24634 | ;; | ||
24635 | esac | ||
24636 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
24637 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
24638 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
24639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24640 | else | ||
24641 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
24642 | fi | ||
24643 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
24644 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
24645 | |||
24646 | fi | ||
24647 | if test $ac_cv_header_gssapi_h = yes; then | ||
24648 | : | ||
24649 | else | ||
24650 | unset ac_cv_header_gssapi_h | ||
24651 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
24652 | |||
24653 | for ac_header in gssapi.h | ||
24654 | do | ||
24655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
24659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24661 | fi | ||
24662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
24663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
24664 | else | ||
24665 | # Is the header compilable? | ||
24666 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
24667 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
24668 | cat >conftest.$ac_ext <<_ACEOF | ||
24669 | /* confdefs.h. */ | ||
24670 | _ACEOF | ||
24671 | cat confdefs.h >>conftest.$ac_ext | ||
24672 | cat >>conftest.$ac_ext <<_ACEOF | ||
24673 | /* end confdefs.h. */ | ||
24674 | $ac_includes_default | ||
24675 | #include <$ac_header> | ||
24676 | _ACEOF | ||
24677 | rm -f conftest.$ac_objext | ||
24678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24679 | (eval $ac_compile) 2>conftest.er1 | ||
24680 | ac_status=$? | ||
24681 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24682 | rm -f conftest.er1 | ||
24683 | cat conftest.err >&5 | ||
24684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24685 | (exit $ac_status); } && | ||
24686 | { ac_try='test -z "$ac_c_werror_flag" | ||
24687 | || test ! -s conftest.err' | ||
24688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24689 | (eval $ac_try) 2>&5 | ||
24690 | ac_status=$? | ||
24691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24692 | (exit $ac_status); }; } && | ||
24693 | { ac_try='test -s conftest.$ac_objext' | ||
24694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24695 | (eval $ac_try) 2>&5 | ||
24696 | ac_status=$? | ||
24697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24698 | (exit $ac_status); }; }; then | ||
24699 | ac_header_compiler=yes | ||
24700 | else | ||
24701 | echo "$as_me: failed program was:" >&5 | ||
24702 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24703 | |||
24704 | ac_header_compiler=no | ||
24705 | fi | ||
24706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24707 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
24708 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
24709 | |||
24710 | # Is the header present? | ||
24711 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
24712 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
24713 | cat >conftest.$ac_ext <<_ACEOF | ||
24714 | /* confdefs.h. */ | ||
24715 | _ACEOF | ||
24716 | cat confdefs.h >>conftest.$ac_ext | ||
24717 | cat >>conftest.$ac_ext <<_ACEOF | ||
24718 | /* end confdefs.h. */ | ||
24719 | #include <$ac_header> | ||
24720 | _ACEOF | ||
24721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
24722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
24723 | ac_status=$? | ||
24724 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24725 | rm -f conftest.er1 | ||
24726 | cat conftest.err >&5 | ||
24727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24728 | (exit $ac_status); } >/dev/null; then | ||
24729 | if test -s conftest.err; then | ||
24730 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
24731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
24732 | else | ||
24733 | ac_cpp_err= | ||
24734 | fi | ||
24735 | else | ||
24736 | ac_cpp_err=yes | ||
24737 | fi | ||
24738 | if test -z "$ac_cpp_err"; then | ||
24739 | ac_header_preproc=yes | ||
24740 | else | ||
24741 | echo "$as_me: failed program was:" >&5 | ||
24742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24743 | |||
24744 | ac_header_preproc=no | ||
24745 | fi | ||
24746 | rm -f conftest.err conftest.$ac_ext | ||
24747 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
24748 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
24749 | |||
24750 | # So? What about this header? | ||
24751 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
24752 | yes:no: ) | ||
24753 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
24754 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
24755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
24756 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
24757 | ac_header_preproc=yes | ||
24758 | ;; | ||
24759 | no:yes:* ) | ||
24760 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
24761 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
24762 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
24763 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
24764 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
24765 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
24766 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
24767 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
24769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
24770 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
24771 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
24772 | ( | ||
24773 | cat <<\_ASBOX | ||
24774 | ## ------------------------------------------- ## | ||
24775 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24776 | ## ------------------------------------------- ## | ||
24777 | _ASBOX | ||
24778 | ) | | ||
24779 | sed "s/^/$as_me: WARNING: /" >&2 | ||
24780 | ;; | ||
24781 | esac | ||
24782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
24784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24786 | else | ||
24787 | eval "$as_ac_Header=\$ac_header_preproc" | ||
24788 | fi | ||
24789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
24790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
24791 | |||
24792 | fi | ||
24793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
24794 | cat >>confdefs.h <<_ACEOF | ||
24795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24796 | _ACEOF | ||
24797 | |||
24798 | else | ||
24799 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
24800 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
24801 | |||
24802 | fi | ||
24803 | |||
24804 | done | ||
24805 | |||
24806 | |||
24807 | |||
24808 | fi | ||
24809 | |||
24810 | |||
24811 | |||
24812 | oldCPP="$CPPFLAGS" | ||
24813 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
24814 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
24815 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
24816 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
24817 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
24818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24819 | fi | ||
24820 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
24821 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
24822 | else | ||
24823 | # Is the header compilable? | ||
24824 | echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
24825 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6 | ||
24826 | cat >conftest.$ac_ext <<_ACEOF | ||
24827 | /* confdefs.h. */ | ||
24828 | _ACEOF | ||
24829 | cat confdefs.h >>conftest.$ac_ext | ||
24830 | cat >>conftest.$ac_ext <<_ACEOF | ||
24831 | /* end confdefs.h. */ | ||
24832 | $ac_includes_default | ||
24833 | #include <gssapi_krb5.h> | ||
24834 | _ACEOF | ||
24835 | rm -f conftest.$ac_objext | ||
24836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24837 | (eval $ac_compile) 2>conftest.er1 | ||
24838 | ac_status=$? | ||
24839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24840 | rm -f conftest.er1 | ||
24841 | cat conftest.err >&5 | ||
24842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24843 | (exit $ac_status); } && | ||
24844 | { ac_try='test -z "$ac_c_werror_flag" | ||
24845 | || test ! -s conftest.err' | ||
24846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24847 | (eval $ac_try) 2>&5 | ||
24848 | ac_status=$? | ||
24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24850 | (exit $ac_status); }; } && | ||
24851 | { ac_try='test -s conftest.$ac_objext' | ||
24852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24853 | (eval $ac_try) 2>&5 | ||
24854 | ac_status=$? | ||
24855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24856 | (exit $ac_status); }; }; then | ||
24857 | ac_header_compiler=yes | ||
24858 | else | ||
24859 | echo "$as_me: failed program was:" >&5 | ||
24860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24861 | |||
24862 | ac_header_compiler=no | ||
24863 | fi | ||
24864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
24866 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
24867 | |||
24868 | # Is the header present? | ||
24869 | echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
24870 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6 | ||
24871 | cat >conftest.$ac_ext <<_ACEOF | ||
24872 | /* confdefs.h. */ | ||
24873 | _ACEOF | ||
24874 | cat confdefs.h >>conftest.$ac_ext | ||
24875 | cat >>conftest.$ac_ext <<_ACEOF | ||
24876 | /* end confdefs.h. */ | ||
24877 | #include <gssapi_krb5.h> | ||
24878 | _ACEOF | ||
24879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
24880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
24881 | ac_status=$? | ||
24882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24883 | rm -f conftest.er1 | ||
24884 | cat conftest.err >&5 | ||
24885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24886 | (exit $ac_status); } >/dev/null; then | ||
24887 | if test -s conftest.err; then | ||
24888 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
24889 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
24890 | else | ||
24891 | ac_cpp_err= | ||
24892 | fi | ||
24893 | else | ||
24894 | ac_cpp_err=yes | ||
24895 | fi | ||
24896 | if test -z "$ac_cpp_err"; then | ||
24897 | ac_header_preproc=yes | ||
24898 | else | ||
24899 | echo "$as_me: failed program was:" >&5 | ||
24900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24901 | |||
24902 | ac_header_preproc=no | ||
24903 | fi | ||
24904 | rm -f conftest.err conftest.$ac_ext | ||
24905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
24906 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
24907 | |||
24908 | # So? What about this header? | ||
24909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
24910 | yes:no: ) | ||
24911 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
24912 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
24913 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
24914 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
24915 | ac_header_preproc=yes | ||
24916 | ;; | ||
24917 | no:yes:* ) | ||
24918 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
24919 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
24920 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
24921 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
24922 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
24923 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
24924 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
24925 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24926 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
24927 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
24928 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
24929 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
24930 | ( | ||
24931 | cat <<\_ASBOX | ||
24932 | ## ------------------------------------------- ## | ||
24933 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24934 | ## ------------------------------------------- ## | ||
24935 | _ASBOX | ||
24936 | ) | | ||
24937 | sed "s/^/$as_me: WARNING: /" >&2 | ||
24938 | ;; | ||
24939 | esac | ||
24940 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
24941 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
24942 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
24943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24944 | else | ||
24945 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
24946 | fi | ||
24947 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
24948 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
24949 | |||
24950 | fi | ||
24951 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
24952 | : | ||
24953 | else | ||
24954 | CPPFLAGS="$oldCPP" | ||
24955 | fi | ||
24956 | |||
24957 | |||
24958 | |||
24959 | fi | ||
24960 | if test ! -z "$need_dash_r" ; then | ||
24961 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
24962 | fi | ||
24963 | if test ! -z "$blibpath" ; then | ||
24964 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
24965 | fi | ||
24966 | |||
24967 | |||
24968 | |||
24969 | for ac_header in gssapi.h gssapi/gssapi.h | ||
24970 | do | ||
24971 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24972 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24973 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
24975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24977 | fi | ||
24978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
24979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
24980 | else | ||
24981 | # Is the header compilable? | ||
24982 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
24983 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
24984 | cat >conftest.$ac_ext <<_ACEOF | ||
24985 | /* confdefs.h. */ | ||
24986 | _ACEOF | ||
24987 | cat confdefs.h >>conftest.$ac_ext | ||
24988 | cat >>conftest.$ac_ext <<_ACEOF | ||
24989 | /* end confdefs.h. */ | ||
24990 | $ac_includes_default | ||
24991 | #include <$ac_header> | ||
24992 | _ACEOF | ||
24993 | rm -f conftest.$ac_objext | ||
24994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24995 | (eval $ac_compile) 2>conftest.er1 | ||
24996 | ac_status=$? | ||
24997 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24998 | rm -f conftest.er1 | ||
24999 | cat conftest.err >&5 | ||
25000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25001 | (exit $ac_status); } && | ||
25002 | { ac_try='test -z "$ac_c_werror_flag" | ||
25003 | || test ! -s conftest.err' | ||
25004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25005 | (eval $ac_try) 2>&5 | ||
25006 | ac_status=$? | ||
25007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25008 | (exit $ac_status); }; } && | ||
25009 | { ac_try='test -s conftest.$ac_objext' | ||
25010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25011 | (eval $ac_try) 2>&5 | ||
25012 | ac_status=$? | ||
25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25014 | (exit $ac_status); }; }; then | ||
25015 | ac_header_compiler=yes | ||
25016 | else | ||
25017 | echo "$as_me: failed program was:" >&5 | ||
25018 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25019 | |||
25020 | ac_header_compiler=no | ||
25021 | fi | ||
25022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25023 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25024 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
25025 | |||
25026 | # Is the header present? | ||
25027 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
25028 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
25029 | cat >conftest.$ac_ext <<_ACEOF | ||
25030 | /* confdefs.h. */ | ||
25031 | _ACEOF | ||
25032 | cat confdefs.h >>conftest.$ac_ext | ||
25033 | cat >>conftest.$ac_ext <<_ACEOF | ||
25034 | /* end confdefs.h. */ | ||
25035 | #include <$ac_header> | ||
25036 | _ACEOF | ||
25037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
25038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
25039 | ac_status=$? | ||
25040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25041 | rm -f conftest.er1 | ||
25042 | cat conftest.err >&5 | ||
25043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25044 | (exit $ac_status); } >/dev/null; then | ||
25045 | if test -s conftest.err; then | ||
25046 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
25047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
25048 | else | ||
25049 | ac_cpp_err= | ||
25050 | fi | ||
25051 | else | ||
25052 | ac_cpp_err=yes | ||
25053 | fi | ||
25054 | if test -z "$ac_cpp_err"; then | ||
25055 | ac_header_preproc=yes | ||
25056 | else | ||
25057 | echo "$as_me: failed program was:" >&5 | ||
25058 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25059 | |||
25060 | ac_header_preproc=no | ||
25061 | fi | ||
25062 | rm -f conftest.err conftest.$ac_ext | ||
25063 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25064 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
25065 | |||
25066 | # So? What about this header? | ||
25067 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25068 | yes:no: ) | ||
25069 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25070 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25071 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
25072 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
25073 | ac_header_preproc=yes | ||
25074 | ;; | ||
25075 | no:yes:* ) | ||
25076 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
25077 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
25078 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
25079 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
25080 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
25081 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
25082 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
25083 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
25085 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
25086 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
25087 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
25088 | ( | ||
25089 | cat <<\_ASBOX | ||
25090 | ## ------------------------------------------- ## | ||
25091 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25092 | ## ------------------------------------------- ## | ||
25093 | _ASBOX | ||
25094 | ) | | ||
25095 | sed "s/^/$as_me: WARNING: /" >&2 | ||
25096 | ;; | ||
25097 | esac | ||
25098 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
25100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25102 | else | ||
25103 | eval "$as_ac_Header=\$ac_header_preproc" | ||
25104 | fi | ||
25105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
25106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
25107 | |||
25108 | fi | ||
25109 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
25110 | cat >>confdefs.h <<_ACEOF | ||
25111 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25112 | _ACEOF | ||
25113 | |||
25114 | fi | ||
25115 | |||
25116 | done | ||
25117 | |||
25118 | |||
25119 | |||
25120 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
25121 | do | ||
25122 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
25126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25128 | fi | ||
25129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
25130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
25131 | else | ||
25132 | # Is the header compilable? | ||
25133 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
25134 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
25135 | cat >conftest.$ac_ext <<_ACEOF | ||
25136 | /* confdefs.h. */ | ||
25137 | _ACEOF | ||
25138 | cat confdefs.h >>conftest.$ac_ext | ||
25139 | cat >>conftest.$ac_ext <<_ACEOF | ||
25140 | /* end confdefs.h. */ | ||
25141 | $ac_includes_default | ||
25142 | #include <$ac_header> | ||
25143 | _ACEOF | ||
25144 | rm -f conftest.$ac_objext | ||
25145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25146 | (eval $ac_compile) 2>conftest.er1 | ||
25147 | ac_status=$? | ||
25148 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25149 | rm -f conftest.er1 | ||
25150 | cat conftest.err >&5 | ||
25151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25152 | (exit $ac_status); } && | ||
25153 | { ac_try='test -z "$ac_c_werror_flag" | ||
25154 | || test ! -s conftest.err' | ||
25155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25156 | (eval $ac_try) 2>&5 | ||
25157 | ac_status=$? | ||
25158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25159 | (exit $ac_status); }; } && | ||
25160 | { ac_try='test -s conftest.$ac_objext' | ||
25161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25162 | (eval $ac_try) 2>&5 | ||
25163 | ac_status=$? | ||
25164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25165 | (exit $ac_status); }; }; then | ||
25166 | ac_header_compiler=yes | ||
25167 | else | ||
25168 | echo "$as_me: failed program was:" >&5 | ||
25169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25170 | |||
25171 | ac_header_compiler=no | ||
25172 | fi | ||
25173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25174 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25175 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
25176 | |||
25177 | # Is the header present? | ||
25178 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
25179 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
25180 | cat >conftest.$ac_ext <<_ACEOF | ||
25181 | /* confdefs.h. */ | ||
25182 | _ACEOF | ||
25183 | cat confdefs.h >>conftest.$ac_ext | ||
25184 | cat >>conftest.$ac_ext <<_ACEOF | ||
25185 | /* end confdefs.h. */ | ||
25186 | #include <$ac_header> | ||
25187 | _ACEOF | ||
25188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
25189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
25190 | ac_status=$? | ||
25191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25192 | rm -f conftest.er1 | ||
25193 | cat conftest.err >&5 | ||
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25195 | (exit $ac_status); } >/dev/null; then | ||
25196 | if test -s conftest.err; then | ||
25197 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
25198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
25199 | else | ||
25200 | ac_cpp_err= | ||
25201 | fi | ||
25202 | else | ||
25203 | ac_cpp_err=yes | ||
25204 | fi | ||
25205 | if test -z "$ac_cpp_err"; then | ||
25206 | ac_header_preproc=yes | ||
25207 | else | ||
25208 | echo "$as_me: failed program was:" >&5 | ||
25209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25210 | |||
25211 | ac_header_preproc=no | ||
25212 | fi | ||
25213 | rm -f conftest.err conftest.$ac_ext | ||
25214 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25215 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
25216 | |||
25217 | # So? What about this header? | ||
25218 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25219 | yes:no: ) | ||
25220 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25221 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25222 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
25223 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
25224 | ac_header_preproc=yes | ||
25225 | ;; | ||
25226 | no:yes:* ) | ||
25227 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
25228 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
25229 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
25230 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
25231 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
25232 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
25233 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
25234 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
25236 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
25237 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
25238 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
25239 | ( | ||
25240 | cat <<\_ASBOX | ||
25241 | ## ------------------------------------------- ## | ||
25242 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25243 | ## ------------------------------------------- ## | ||
25244 | _ASBOX | ||
25245 | ) | | ||
25246 | sed "s/^/$as_me: WARNING: /" >&2 | ||
25247 | ;; | ||
25248 | esac | ||
25249 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
25251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25253 | else | ||
25254 | eval "$as_ac_Header=\$ac_header_preproc" | ||
25255 | fi | ||
25256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
25257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
25258 | |||
25259 | fi | ||
25260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
25261 | cat >>confdefs.h <<_ACEOF | ||
25262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25263 | _ACEOF | ||
25264 | |||
25265 | fi | ||
25266 | |||
25267 | done | ||
25268 | |||
25269 | |||
25270 | |||
25271 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
25272 | do | ||
25273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
25274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
25277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25279 | fi | ||
25280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
25281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
25282 | else | ||
25283 | # Is the header compilable? | ||
25284 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
25285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
25286 | cat >conftest.$ac_ext <<_ACEOF | ||
25287 | /* confdefs.h. */ | ||
25288 | _ACEOF | ||
25289 | cat confdefs.h >>conftest.$ac_ext | ||
25290 | cat >>conftest.$ac_ext <<_ACEOF | ||
25291 | /* end confdefs.h. */ | ||
25292 | $ac_includes_default | ||
25293 | #include <$ac_header> | ||
25294 | _ACEOF | ||
25295 | rm -f conftest.$ac_objext | ||
25296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25297 | (eval $ac_compile) 2>conftest.er1 | ||
25298 | ac_status=$? | ||
25299 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25300 | rm -f conftest.er1 | ||
25301 | cat conftest.err >&5 | ||
25302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25303 | (exit $ac_status); } && | ||
25304 | { ac_try='test -z "$ac_c_werror_flag" | ||
25305 | || test ! -s conftest.err' | ||
25306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25307 | (eval $ac_try) 2>&5 | ||
25308 | ac_status=$? | ||
25309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25310 | (exit $ac_status); }; } && | ||
25311 | { ac_try='test -s conftest.$ac_objext' | ||
25312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25313 | (eval $ac_try) 2>&5 | ||
25314 | ac_status=$? | ||
25315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25316 | (exit $ac_status); }; }; then | ||
25317 | ac_header_compiler=yes | ||
25318 | else | ||
25319 | echo "$as_me: failed program was:" >&5 | ||
25320 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25321 | |||
25322 | ac_header_compiler=no | ||
25323 | fi | ||
25324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25326 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
25327 | |||
25328 | # Is the header present? | ||
25329 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
25330 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
25331 | cat >conftest.$ac_ext <<_ACEOF | ||
25332 | /* confdefs.h. */ | ||
25333 | _ACEOF | ||
25334 | cat confdefs.h >>conftest.$ac_ext | ||
25335 | cat >>conftest.$ac_ext <<_ACEOF | ||
25336 | /* end confdefs.h. */ | ||
25337 | #include <$ac_header> | ||
25338 | _ACEOF | ||
25339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
25340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
25341 | ac_status=$? | ||
25342 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25343 | rm -f conftest.er1 | ||
25344 | cat conftest.err >&5 | ||
25345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25346 | (exit $ac_status); } >/dev/null; then | ||
25347 | if test -s conftest.err; then | ||
25348 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
25349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
25350 | else | ||
25351 | ac_cpp_err= | ||
25352 | fi | ||
25353 | else | ||
25354 | ac_cpp_err=yes | ||
25355 | fi | ||
25356 | if test -z "$ac_cpp_err"; then | ||
25357 | ac_header_preproc=yes | ||
25358 | else | ||
25359 | echo "$as_me: failed program was:" >&5 | ||
25360 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25361 | |||
25362 | ac_header_preproc=no | ||
25363 | fi | ||
25364 | rm -f conftest.err conftest.$ac_ext | ||
25365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25366 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
25367 | |||
25368 | # So? What about this header? | ||
25369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25370 | yes:no: ) | ||
25371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
25374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
25375 | ac_header_preproc=yes | ||
25376 | ;; | ||
25377 | no:yes:* ) | ||
25378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
25379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
25380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
25381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
25382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
25383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
25384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
25385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
25387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
25388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
25389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
25390 | ( | ||
25391 | cat <<\_ASBOX | ||
25392 | ## ------------------------------------------- ## | ||
25393 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25394 | ## ------------------------------------------- ## | ||
25395 | _ASBOX | ||
25396 | ) | | ||
25397 | sed "s/^/$as_me: WARNING: /" >&2 | ||
25398 | ;; | ||
25399 | esac | ||
25400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
25401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
25402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
25403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25404 | else | ||
25405 | eval "$as_ac_Header=\$ac_header_preproc" | ||
25406 | fi | ||
25407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
25408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
25409 | |||
25410 | fi | ||
25411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
25412 | cat >>confdefs.h <<_ACEOF | ||
25413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
25414 | _ACEOF | ||
25415 | |||
25416 | fi | ||
25417 | |||
25418 | done | ||
25419 | |||
25420 | |||
25421 | LIBS="$LIBS $K5LIBS" | ||
25422 | echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
25423 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
25424 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
25425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25426 | else | ||
25427 | ac_func_search_save_LIBS=$LIBS | ||
25428 | ac_cv_search_k_hasafs=no | ||
25429 | cat >conftest.$ac_ext <<_ACEOF | ||
25430 | /* confdefs.h. */ | ||
25431 | _ACEOF | ||
25432 | cat confdefs.h >>conftest.$ac_ext | ||
25433 | cat >>conftest.$ac_ext <<_ACEOF | ||
25434 | /* end confdefs.h. */ | ||
25435 | |||
25436 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
25437 | #ifdef __cplusplus | ||
25438 | extern "C" | ||
25439 | #endif | ||
25440 | /* We use char because int might match the return type of a gcc2 | ||
25441 | builtin and then its argument prototype would still apply. */ | ||
25442 | char k_hasafs (); | ||
25443 | int | ||
25444 | main () | ||
25445 | { | ||
25446 | k_hasafs (); | ||
25447 | ; | ||
25448 | return 0; | ||
25449 | } | ||
25450 | _ACEOF | ||
25451 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
25453 | (eval $ac_link) 2>conftest.er1 | ||
25454 | ac_status=$? | ||
25455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25456 | rm -f conftest.er1 | ||
25457 | cat conftest.err >&5 | ||
25458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25459 | (exit $ac_status); } && | ||
25460 | { ac_try='test -z "$ac_c_werror_flag" | ||
25461 | || test ! -s conftest.err' | ||
25462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25463 | (eval $ac_try) 2>&5 | ||
25464 | ac_status=$? | ||
25465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25466 | (exit $ac_status); }; } && | ||
25467 | { ac_try='test -s conftest$ac_exeext' | ||
25468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25469 | (eval $ac_try) 2>&5 | ||
25470 | ac_status=$? | ||
25471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25472 | (exit $ac_status); }; }; then | ||
25473 | ac_cv_search_k_hasafs="none required" | ||
25474 | else | ||
25475 | echo "$as_me: failed program was:" >&5 | ||
25476 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25477 | |||
25478 | fi | ||
25479 | rm -f conftest.err conftest.$ac_objext \ | ||
25480 | conftest$ac_exeext conftest.$ac_ext | ||
25481 | if test "$ac_cv_search_k_hasafs" = no; then | ||
25482 | for ac_lib in kafs; do | ||
25483 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25484 | cat >conftest.$ac_ext <<_ACEOF | ||
25485 | /* confdefs.h. */ | ||
25486 | _ACEOF | ||
25487 | cat confdefs.h >>conftest.$ac_ext | ||
25488 | cat >>conftest.$ac_ext <<_ACEOF | ||
25489 | /* end confdefs.h. */ | ||
25490 | |||
25491 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
25492 | #ifdef __cplusplus | ||
25493 | extern "C" | ||
25494 | #endif | ||
25495 | /* We use char because int might match the return type of a gcc2 | ||
25496 | builtin and then its argument prototype would still apply. */ | ||
25497 | char k_hasafs (); | ||
25498 | int | ||
25499 | main () | ||
25500 | { | ||
25501 | k_hasafs (); | ||
25502 | ; | ||
25503 | return 0; | ||
25504 | } | ||
25505 | _ACEOF | ||
25506 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
25508 | (eval $ac_link) 2>conftest.er1 | ||
25509 | ac_status=$? | ||
25510 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25511 | rm -f conftest.er1 | ||
25512 | cat conftest.err >&5 | ||
25513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25514 | (exit $ac_status); } && | ||
25515 | { ac_try='test -z "$ac_c_werror_flag" | ||
25516 | || test ! -s conftest.err' | ||
25517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25518 | (eval $ac_try) 2>&5 | ||
25519 | ac_status=$? | ||
25520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25521 | (exit $ac_status); }; } && | ||
25522 | { ac_try='test -s conftest$ac_exeext' | ||
25523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25524 | (eval $ac_try) 2>&5 | ||
25525 | ac_status=$? | ||
25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25527 | (exit $ac_status); }; }; then | ||
25528 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
25529 | break | ||
25530 | else | ||
25531 | echo "$as_me: failed program was:" >&5 | ||
25532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25533 | |||
25534 | fi | ||
25535 | rm -f conftest.err conftest.$ac_objext \ | ||
25536 | conftest$ac_exeext conftest.$ac_ext | ||
25537 | done | ||
25538 | fi | ||
25539 | LIBS=$ac_func_search_save_LIBS | ||
25540 | fi | ||
25541 | echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
25542 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
25543 | if test "$ac_cv_search_k_hasafs" != no; then | ||
25544 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
25545 | |||
25546 | cat >>confdefs.h <<\_ACEOF | ||
25547 | #define USE_AFS 1 | ||
25548 | _ACEOF | ||
25549 | |||
25550 | fi | ||
25551 | |||
25552 | fi | ||
25553 | |||
25554 | |||
25555 | fi; | ||
25556 | |||
25557 | # Looking for programs, paths and files | ||
25558 | |||
25559 | PRIVSEP_PATH=/var/empty | ||
25560 | |||
25561 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
25562 | if test "${with_privsep_path+set}" = set; then | ||
25563 | withval="$with_privsep_path" | ||
25564 | |||
25565 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
25566 | test "x${withval}" != "xyes"; then | ||
25567 | PRIVSEP_PATH=$withval | ||
25568 | fi | ||
25569 | |||
25570 | |||
25571 | fi; | ||
25572 | |||
25573 | |||
25574 | |||
25575 | # Check whether --with-xauth or --without-xauth was given. | ||
25576 | if test "${with_xauth+set}" = set; then | ||
25577 | withval="$with_xauth" | ||
25578 | |||
25579 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
25580 | test "x${withval}" != "xyes"; then | ||
25581 | xauth_path=$withval | ||
25582 | fi | ||
25583 | |||
25584 | else | ||
25585 | |||
25586 | TestPath="$PATH" | ||
25587 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
25588 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
25589 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
25590 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
25591 | # Extract the first word of "xauth", so it can be a program name with args. | ||
25592 | set dummy xauth; ac_word=$2 | ||
25593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
25594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
25595 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
25596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25597 | else | ||
25598 | case $xauth_path in | ||
25599 | [\\/]* | ?:[\\/]*) | ||
25600 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
25601 | ;; | ||
25602 | *) | ||
25603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25604 | for as_dir in $TestPath | ||
25605 | do | ||
25606 | IFS=$as_save_IFS | ||
25607 | test -z "$as_dir" && as_dir=. | ||
25608 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
25609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
25610 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
25611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25612 | break 2 | ||
25613 | fi | ||
25614 | done | ||
25615 | done | ||
25616 | |||
25617 | ;; | ||
25618 | esac | ||
25619 | fi | ||
25620 | xauth_path=$ac_cv_path_xauth_path | ||
25621 | |||
25622 | if test -n "$xauth_path"; then | ||
25623 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
25624 | echo "${ECHO_T}$xauth_path" >&6 | ||
25625 | else | ||
25626 | echo "$as_me:$LINENO: result: no" >&5 | ||
25627 | echo "${ECHO_T}no" >&6 | ||
25628 | fi | ||
25629 | |||
25630 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
25631 | xauth_path="/usr/openwin/bin/xauth" | ||
25632 | fi | ||
25633 | |||
25634 | |||
25635 | fi; | ||
25636 | |||
25637 | STRIP_OPT=-s | ||
25638 | # Check whether --enable-strip or --disable-strip was given. | ||
25639 | if test "${enable_strip+set}" = set; then | ||
25640 | enableval="$enable_strip" | ||
25641 | |||
25642 | if test "x$enableval" = "xno" ; then | ||
25643 | STRIP_OPT= | ||
25644 | fi | ||
25645 | |||
25646 | |||
25647 | fi; | ||
25648 | |||
25649 | |||
25650 | if test -z "$xauth_path" ; then | ||
25651 | XAUTH_PATH="undefined" | ||
25652 | |||
25653 | else | ||
25654 | |||
25655 | cat >>confdefs.h <<_ACEOF | ||
25656 | #define XAUTH_PATH "$xauth_path" | ||
25657 | _ACEOF | ||
25658 | |||
25659 | XAUTH_PATH=$xauth_path | ||
25660 | |||
25661 | fi | ||
25662 | |||
25663 | # Check for mail directory (last resort if we cannot get it from headers) | ||
25664 | if test ! -z "$MAIL" ; then | ||
25665 | maildir=`dirname $MAIL` | ||
25666 | |||
25667 | cat >>confdefs.h <<_ACEOF | ||
25668 | #define MAIL_DIRECTORY "$maildir" | ||
25669 | _ACEOF | ||
25670 | |||
25671 | fi | ||
25672 | |||
25673 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
25674 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
25675 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
25676 | disable_ptmx_check=yes | ||
25677 | fi | ||
25678 | if test -z "$no_dev_ptmx" ; then | ||
25679 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
25680 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
25681 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
25682 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
25683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25684 | else | ||
25685 | test "$cross_compiling" = yes && | ||
25686 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
25687 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
25688 | { (exit 1); exit 1; }; } | ||
25689 | if test -r ""/dev/ptmx""; then | ||
25690 | ac_cv_file___dev_ptmx_=yes | ||
25691 | else | ||
25692 | ac_cv_file___dev_ptmx_=no | ||
25693 | fi | ||
25694 | fi | ||
25695 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
25696 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
25697 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
25698 | |||
25699 | |||
25700 | cat >>confdefs.h <<_ACEOF | ||
25701 | #define HAVE_DEV_PTMX 1 | ||
25702 | _ACEOF | ||
25703 | |||
25704 | have_dev_ptmx=1 | ||
25705 | |||
25706 | |||
25707 | fi | ||
25708 | |||
25709 | fi | ||
25710 | fi | ||
25711 | |||
25712 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
25713 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
25714 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
25715 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
25716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25717 | else | ||
25718 | test "$cross_compiling" = yes && | ||
25719 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
25720 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
25721 | { (exit 1); exit 1; }; } | ||
25722 | if test -r ""/dev/ptc""; then | ||
25723 | ac_cv_file___dev_ptc_=yes | ||
25724 | else | ||
25725 | ac_cv_file___dev_ptc_=no | ||
25726 | fi | ||
25727 | fi | ||
25728 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
25729 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
25730 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
25731 | |||
25732 | |||
25733 | cat >>confdefs.h <<_ACEOF | ||
25734 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
25735 | _ACEOF | ||
25736 | |||
25737 | have_dev_ptc=1 | ||
25738 | |||
25739 | |||
25740 | fi | ||
25741 | |||
25742 | else | ||
25743 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
25744 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
25745 | fi | ||
25746 | |||
25747 | # Options from here on. Some of these are preset by platform above | ||
25748 | |||
25749 | # Check whether --with-mantype or --without-mantype was given. | ||
25750 | if test "${with_mantype+set}" = set; then | ||
25751 | withval="$with_mantype" | ||
25752 | |||
25753 | case "$withval" in | ||
25754 | man|cat|doc) | ||
25755 | MANTYPE=$withval | ||
25756 | ;; | ||
25757 | *) | ||
25758 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
25759 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
25760 | { (exit 1); exit 1; }; } | ||
25761 | ;; | ||
25762 | esac | ||
25763 | |||
25764 | |||
25765 | fi; | ||
25766 | if test -z "$MANTYPE"; then | ||
25767 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
25768 | for ac_prog in nroff awf | ||
25769 | do | ||
25770 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
25771 | set dummy $ac_prog; ac_word=$2 | ||
25772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
25773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
25774 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
25775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25776 | else | ||
25777 | case $NROFF in | ||
25778 | [\\/]* | ?:[\\/]*) | ||
25779 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
25780 | ;; | ||
25781 | *) | ||
25782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25783 | for as_dir in $TestPath | ||
25784 | do | ||
25785 | IFS=$as_save_IFS | ||
25786 | test -z "$as_dir" && as_dir=. | ||
25787 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
25788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
25789 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
25790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25791 | break 2 | ||
25792 | fi | ||
25793 | done | ||
25794 | done | ||
25795 | |||
25796 | ;; | ||
25797 | esac | ||
25798 | fi | ||
25799 | NROFF=$ac_cv_path_NROFF | ||
25800 | |||
25801 | if test -n "$NROFF"; then | ||
25802 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
25803 | echo "${ECHO_T}$NROFF" >&6 | ||
25804 | else | ||
25805 | echo "$as_me:$LINENO: result: no" >&5 | ||
25806 | echo "${ECHO_T}no" >&6 | ||
25807 | fi | ||
25808 | |||
25809 | test -n "$NROFF" && break | ||
25810 | done | ||
25811 | test -n "$NROFF" || NROFF="/bin/false" | ||
25812 | |||
25813 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
25814 | MANTYPE=doc | ||
25815 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
25816 | MANTYPE=man | ||
25817 | else | ||
25818 | MANTYPE=cat | ||
25819 | fi | ||
25820 | fi | ||
25821 | |||
25822 | if test "$MANTYPE" = "doc"; then | ||
25823 | mansubdir=man; | ||
25824 | else | ||
25825 | mansubdir=$MANTYPE; | ||
25826 | fi | ||
25827 | |||
25828 | |||
25829 | # Check whether to enable MD5 passwords | ||
25830 | MD5_MSG="no" | ||
25831 | |||
25832 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
25833 | if test "${with_md5_passwords+set}" = set; then | ||
25834 | withval="$with_md5_passwords" | ||
25835 | |||
25836 | if test "x$withval" != "xno" ; then | ||
25837 | |||
25838 | cat >>confdefs.h <<\_ACEOF | ||
25839 | #define HAVE_MD5_PASSWORDS 1 | ||
25840 | _ACEOF | ||
25841 | |||
25842 | MD5_MSG="yes" | ||
25843 | fi | ||
25844 | |||
25845 | |||
25846 | fi; | ||
25847 | |||
25848 | # Whether to disable shadow password support | ||
25849 | |||
25850 | # Check whether --with-shadow or --without-shadow was given. | ||
25851 | if test "${with_shadow+set}" = set; then | ||
25852 | withval="$with_shadow" | ||
25853 | |||
25854 | if test "x$withval" = "xno" ; then | ||
25855 | cat >>confdefs.h <<\_ACEOF | ||
25856 | #define DISABLE_SHADOW 1 | ||
25857 | _ACEOF | ||
25858 | |||
25859 | disable_shadow=yes | ||
25860 | fi | ||
25861 | |||
25862 | |||
25863 | fi; | ||
25864 | |||
25865 | if test -z "$disable_shadow" ; then | ||
25866 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
25867 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
25868 | cat >conftest.$ac_ext <<_ACEOF | ||
25869 | /* confdefs.h. */ | ||
25870 | _ACEOF | ||
25871 | cat confdefs.h >>conftest.$ac_ext | ||
25872 | cat >>conftest.$ac_ext <<_ACEOF | ||
25873 | /* end confdefs.h. */ | ||
25874 | |||
25875 | #include <sys/types.h> | ||
25876 | #include <shadow.h> | ||
25877 | struct spwd sp; | ||
25878 | |||
25879 | int | ||
25880 | main () | ||
25881 | { | ||
25882 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
25883 | ; | ||
25884 | return 0; | ||
25885 | } | ||
25886 | _ACEOF | ||
25887 | rm -f conftest.$ac_objext | ||
25888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25889 | (eval $ac_compile) 2>conftest.er1 | ||
25890 | ac_status=$? | ||
25891 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25892 | rm -f conftest.er1 | ||
25893 | cat conftest.err >&5 | ||
25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25895 | (exit $ac_status); } && | ||
25896 | { ac_try='test -z "$ac_c_werror_flag" | ||
25897 | || test ! -s conftest.err' | ||
25898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25899 | (eval $ac_try) 2>&5 | ||
25900 | ac_status=$? | ||
25901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25902 | (exit $ac_status); }; } && | ||
25903 | { ac_try='test -s conftest.$ac_objext' | ||
25904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25905 | (eval $ac_try) 2>&5 | ||
25906 | ac_status=$? | ||
25907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25908 | (exit $ac_status); }; }; then | ||
25909 | sp_expire_available=yes | ||
25910 | else | ||
25911 | echo "$as_me: failed program was:" >&5 | ||
25912 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25913 | |||
25914 | |||
25915 | |||
25916 | fi | ||
25917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25918 | |||
25919 | if test "x$sp_expire_available" = "xyes" ; then | ||
25920 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25921 | echo "${ECHO_T}yes" >&6 | ||
25922 | |||
25923 | cat >>confdefs.h <<\_ACEOF | ||
25924 | #define HAS_SHADOW_EXPIRE 1 | ||
25925 | _ACEOF | ||
25926 | |||
25927 | else | ||
25928 | echo "$as_me:$LINENO: result: no" >&5 | ||
25929 | echo "${ECHO_T}no" >&6 | ||
25930 | fi | ||
25931 | fi | ||
25932 | |||
25933 | # Use ip address instead of hostname in $DISPLAY | ||
25934 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
25935 | DISPLAY_HACK_MSG="yes" | ||
25936 | |||
25937 | cat >>confdefs.h <<\_ACEOF | ||
25938 | #define IPADDR_IN_DISPLAY 1 | ||
25939 | _ACEOF | ||
25940 | |||
25941 | else | ||
25942 | DISPLAY_HACK_MSG="no" | ||
25943 | |||
25944 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
25945 | if test "${with_ipaddr_display+set}" = set; then | ||
25946 | withval="$with_ipaddr_display" | ||
25947 | |||
25948 | if test "x$withval" != "xno" ; then | ||
25949 | cat >>confdefs.h <<\_ACEOF | ||
25950 | #define IPADDR_IN_DISPLAY 1 | ||
25951 | _ACEOF | ||
25952 | |||
25953 | DISPLAY_HACK_MSG="yes" | ||
25954 | fi | ||
25955 | |||
25956 | |||
25957 | fi; | ||
25958 | fi | ||
25959 | |||
25960 | # check for /etc/default/login and use it if present. | ||
25961 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
25962 | if test "${enable_etc_default_login+set}" = set; then | ||
25963 | enableval="$enable_etc_default_login" | ||
25964 | if test "x$enableval" = "xno"; then | ||
25965 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
25966 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
25967 | etc_default_login=no | ||
25968 | else | ||
25969 | etc_default_login=yes | ||
25970 | fi | ||
25971 | else | ||
25972 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
25973 | then | ||
25974 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
25975 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
25976 | etc_default_login=no | ||
25977 | else | ||
25978 | etc_default_login=yes | ||
25979 | fi | ||
25980 | |||
25981 | fi; | ||
25982 | |||
25983 | if test "x$etc_default_login" != "xno"; then | ||
25984 | echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
25985 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
25986 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
25987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25988 | else | ||
25989 | test "$cross_compiling" = yes && | ||
25990 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
25991 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
25992 | { (exit 1); exit 1; }; } | ||
25993 | if test -r ""/etc/default/login""; then | ||
25994 | ac_cv_file___etc_default_login_=yes | ||
25995 | else | ||
25996 | ac_cv_file___etc_default_login_=no | ||
25997 | fi | ||
25998 | fi | ||
25999 | echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
26000 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
26001 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
26002 | external_path_file=/etc/default/login | ||
26003 | fi | ||
26004 | |||
26005 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
26006 | |||
26007 | cat >>confdefs.h <<\_ACEOF | ||
26008 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
26009 | _ACEOF | ||
26010 | |||
26011 | fi | ||
26012 | fi | ||
26013 | |||
26014 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
26015 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
26016 | external_path_file=/etc/login.conf | ||
26017 | fi | ||
26018 | |||
26019 | # Whether to mess with the default path | ||
26020 | SERVER_PATH_MSG="(default)" | ||
26021 | |||
26022 | # Check whether --with-default-path or --without-default-path was given. | ||
26023 | if test "${with_default_path+set}" = set; then | ||
26024 | withval="$with_default_path" | ||
26025 | |||
26026 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
26027 | { echo "$as_me:$LINENO: WARNING: | ||
26028 | --with-default-path=PATH has no effect on this system. | ||
26029 | Edit /etc/login.conf instead." >&5 | ||
26030 | echo "$as_me: WARNING: | ||
26031 | --with-default-path=PATH has no effect on this system. | ||
26032 | Edit /etc/login.conf instead." >&2;} | ||
26033 | elif test "x$withval" != "xno" ; then | ||
26034 | if test ! -z "$external_path_file" ; then | ||
26035 | { echo "$as_me:$LINENO: WARNING: | ||
26036 | --with-default-path=PATH will only be used if PATH is not defined in | ||
26037 | $external_path_file ." >&5 | ||
26038 | echo "$as_me: WARNING: | ||
26039 | --with-default-path=PATH will only be used if PATH is not defined in | ||
26040 | $external_path_file ." >&2;} | ||
26041 | fi | ||
26042 | user_path="$withval" | ||
26043 | SERVER_PATH_MSG="$withval" | ||
26044 | fi | ||
26045 | |||
26046 | else | ||
26047 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
26048 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
26049 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
26050 | else | ||
26051 | if test ! -z "$external_path_file" ; then | ||
26052 | { echo "$as_me:$LINENO: WARNING: | ||
26053 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
26054 | otherwise scp will not work." >&5 | ||
26055 | echo "$as_me: WARNING: | ||
26056 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
26057 | otherwise scp will not work." >&2;} | ||
26058 | fi | ||
26059 | if test "$cross_compiling" = yes; then | ||
26060 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
26061 | |||
26062 | else | ||
26063 | cat >conftest.$ac_ext <<_ACEOF | ||
26064 | /* confdefs.h. */ | ||
26065 | _ACEOF | ||
26066 | cat confdefs.h >>conftest.$ac_ext | ||
26067 | cat >>conftest.$ac_ext <<_ACEOF | ||
26068 | /* end confdefs.h. */ | ||
26069 | |||
26070 | /* find out what STDPATH is */ | ||
26071 | #include <stdio.h> | ||
26072 | #ifdef HAVE_PATHS_H | ||
26073 | # include <paths.h> | ||
26074 | #endif | ||
26075 | #ifndef _PATH_STDPATH | ||
26076 | # ifdef _PATH_USERPATH /* Irix */ | ||
26077 | # define _PATH_STDPATH _PATH_USERPATH | ||
26078 | # else | ||
26079 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
26080 | # endif | ||
26081 | #endif | ||
26082 | #include <sys/types.h> | ||
26083 | #include <sys/stat.h> | ||
26084 | #include <fcntl.h> | ||
26085 | #define DATA "conftest.stdpath" | ||
26086 | |||
26087 | main() | ||
26088 | { | ||
26089 | FILE *fd; | ||
26090 | int rc; | ||
26091 | |||
26092 | fd = fopen(DATA,"w"); | ||
26093 | if(fd == NULL) | ||
26094 | exit(1); | ||
26095 | |||
26096 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
26097 | exit(1); | ||
26098 | |||
26099 | exit(0); | ||
26100 | } | ||
26101 | |||
26102 | _ACEOF | ||
26103 | rm -f conftest$ac_exeext | ||
26104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
26105 | (eval $ac_link) 2>&5 | ||
26106 | ac_status=$? | ||
26107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
26109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26110 | (eval $ac_try) 2>&5 | ||
26111 | ac_status=$? | ||
26112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26113 | (exit $ac_status); }; }; then | ||
26114 | user_path=`cat conftest.stdpath` | ||
26115 | else | ||
26116 | echo "$as_me: program exited with status $ac_status" >&5 | ||
26117 | echo "$as_me: failed program was:" >&5 | ||
26118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26119 | |||
26120 | ( exit $ac_status ) | ||
26121 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
26122 | fi | ||
26123 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
26124 | fi | ||
26125 | # make sure $bindir is in USER_PATH so scp will work | ||
26126 | t_bindir=`eval echo ${bindir}` | ||
26127 | case $t_bindir in | ||
26128 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
26129 | esac | ||
26130 | case $t_bindir in | ||
26131 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
26132 | esac | ||
26133 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
26134 | if test $? -ne 0 ; then | ||
26135 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
26136 | if test $? -ne 0 ; then | ||
26137 | user_path=$user_path:$t_bindir | ||
26138 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
26139 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
26140 | fi | ||
26141 | fi | ||
26142 | fi | ||
26143 | |||
26144 | fi; | ||
26145 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
26146 | |||
26147 | cat >>confdefs.h <<_ACEOF | ||
26148 | #define USER_PATH "$user_path" | ||
26149 | _ACEOF | ||
26150 | |||
26151 | |||
26152 | fi | ||
26153 | |||
26154 | # Set superuser path separately to user path | ||
26155 | |||
26156 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
26157 | if test "${with_superuser_path+set}" = set; then | ||
26158 | withval="$with_superuser_path" | ||
26159 | |||
26160 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
26161 | test "x${withval}" != "xyes"; then | ||
26162 | |||
26163 | cat >>confdefs.h <<_ACEOF | ||
26164 | #define SUPERUSER_PATH "$withval" | ||
26165 | _ACEOF | ||
26166 | |||
26167 | superuser_path=$withval | ||
26168 | fi | ||
26169 | |||
26170 | |||
26171 | fi; | ||
26172 | |||
26173 | |||
26174 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
26175 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
26176 | IPV4_IN6_HACK_MSG="no" | ||
26177 | |||
26178 | # Check whether --with-4in6 or --without-4in6 was given. | ||
26179 | if test "${with_4in6+set}" = set; then | ||
26180 | withval="$with_4in6" | ||
26181 | |||
26182 | if test "x$withval" != "xno" ; then | ||
26183 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26184 | echo "${ECHO_T}yes" >&6 | ||
26185 | |||
26186 | cat >>confdefs.h <<\_ACEOF | ||
26187 | #define IPV4_IN_IPV6 1 | ||
26188 | _ACEOF | ||
26189 | |||
26190 | IPV4_IN6_HACK_MSG="yes" | ||
26191 | else | ||
26192 | echo "$as_me:$LINENO: result: no" >&5 | ||
26193 | echo "${ECHO_T}no" >&6 | ||
26194 | fi | ||
26195 | |||
26196 | else | ||
26197 | |||
26198 | if test "x$inet6_default_4in6" = "xyes"; then | ||
26199 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
26200 | echo "${ECHO_T}yes (default)" >&6 | ||
26201 | cat >>confdefs.h <<\_ACEOF | ||
26202 | #define IPV4_IN_IPV6 1 | ||
26203 | _ACEOF | ||
26204 | |||
26205 | IPV4_IN6_HACK_MSG="yes" | ||
26206 | else | ||
26207 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
26208 | echo "${ECHO_T}no (default)" >&6 | ||
26209 | fi | ||
26210 | |||
26211 | |||
26212 | fi; | ||
26213 | |||
26214 | # Whether to enable BSD auth support | ||
26215 | BSD_AUTH_MSG=no | ||
26216 | |||
26217 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
26218 | if test "${with_bsd_auth+set}" = set; then | ||
26219 | withval="$with_bsd_auth" | ||
26220 | |||
26221 | if test "x$withval" != "xno" ; then | ||
26222 | |||
26223 | cat >>confdefs.h <<\_ACEOF | ||
26224 | #define BSD_AUTH 1 | ||
26225 | _ACEOF | ||
26226 | |||
26227 | BSD_AUTH_MSG=yes | ||
26228 | fi | ||
26229 | |||
26230 | |||
26231 | fi; | ||
26232 | |||
26233 | # Where to place sshd.pid | ||
26234 | piddir=/var/run | ||
26235 | # make sure the directory exists | ||
26236 | if test ! -d $piddir ; then | ||
26237 | piddir=`eval echo ${sysconfdir}` | ||
26238 | case $piddir in | ||
26239 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
26240 | esac | ||
26241 | fi | ||
26242 | |||
26243 | |||
26244 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
26245 | if test "${with_pid_dir+set}" = set; then | ||
26246 | withval="$with_pid_dir" | ||
26247 | |||
26248 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
26249 | test "x${withval}" != "xyes"; then | ||
26250 | piddir=$withval | ||
26251 | if test ! -d $piddir ; then | ||
26252 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
26253 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
26254 | fi | ||
26255 | fi | ||
26256 | |||
26257 | |||
26258 | fi; | ||
26259 | |||
26260 | |||
26261 | cat >>confdefs.h <<_ACEOF | ||
26262 | #define _PATH_SSH_PIDDIR "$piddir" | ||
26263 | _ACEOF | ||
26264 | |||
26265 | |||
26266 | |||
26267 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
26268 | if test "${enable_lastlog+set}" = set; then | ||
26269 | enableval="$enable_lastlog" | ||
26270 | |||
26271 | if test "x$enableval" = "xno" ; then | ||
26272 | cat >>confdefs.h <<\_ACEOF | ||
26273 | #define DISABLE_LASTLOG 1 | ||
26274 | _ACEOF | ||
26275 | |||
26276 | fi | ||
26277 | |||
26278 | |||
26279 | fi; | ||
26280 | # Check whether --enable-utmp or --disable-utmp was given. | ||
26281 | if test "${enable_utmp+set}" = set; then | ||
26282 | enableval="$enable_utmp" | ||
26283 | |||
26284 | if test "x$enableval" = "xno" ; then | ||
26285 | cat >>confdefs.h <<\_ACEOF | ||
26286 | #define DISABLE_UTMP 1 | ||
26287 | _ACEOF | ||
26288 | |||
26289 | fi | ||
26290 | |||
26291 | |||
26292 | fi; | ||
26293 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
26294 | if test "${enable_utmpx+set}" = set; then | ||
26295 | enableval="$enable_utmpx" | ||
26296 | |||
26297 | if test "x$enableval" = "xno" ; then | ||
26298 | |||
26299 | cat >>confdefs.h <<\_ACEOF | ||
26300 | #define DISABLE_UTMPX 1 | ||
26301 | _ACEOF | ||
26302 | |||
26303 | fi | ||
26304 | |||
26305 | |||
26306 | fi; | ||
26307 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
26308 | if test "${enable_wtmp+set}" = set; then | ||
26309 | enableval="$enable_wtmp" | ||
26310 | |||
26311 | if test "x$enableval" = "xno" ; then | ||
26312 | cat >>confdefs.h <<\_ACEOF | ||
26313 | #define DISABLE_WTMP 1 | ||
26314 | _ACEOF | ||
26315 | |||
26316 | fi | ||
26317 | |||
26318 | |||
26319 | fi; | ||
26320 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
26321 | if test "${enable_wtmpx+set}" = set; then | ||
26322 | enableval="$enable_wtmpx" | ||
26323 | |||
26324 | if test "x$enableval" = "xno" ; then | ||
26325 | |||
26326 | cat >>confdefs.h <<\_ACEOF | ||
26327 | #define DISABLE_WTMPX 1 | ||
26328 | _ACEOF | ||
26329 | |||
26330 | fi | ||
26331 | |||
26332 | |||
26333 | fi; | ||
26334 | # Check whether --enable-libutil or --disable-libutil was given. | ||
26335 | if test "${enable_libutil+set}" = set; then | ||
26336 | enableval="$enable_libutil" | ||
26337 | |||
26338 | if test "x$enableval" = "xno" ; then | ||
26339 | cat >>confdefs.h <<\_ACEOF | ||
26340 | #define DISABLE_LOGIN 1 | ||
26341 | _ACEOF | ||
26342 | |||
26343 | fi | ||
26344 | |||
26345 | |||
26346 | fi; | ||
26347 | # Check whether --enable-pututline or --disable-pututline was given. | ||
26348 | if test "${enable_pututline+set}" = set; then | ||
26349 | enableval="$enable_pututline" | ||
26350 | |||
26351 | if test "x$enableval" = "xno" ; then | ||
26352 | |||
26353 | cat >>confdefs.h <<\_ACEOF | ||
26354 | #define DISABLE_PUTUTLINE 1 | ||
26355 | _ACEOF | ||
26356 | |||
26357 | fi | ||
26358 | |||
26359 | |||
26360 | fi; | ||
26361 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
26362 | if test "${enable_pututxline+set}" = set; then | ||
26363 | enableval="$enable_pututxline" | ||
26364 | |||
26365 | if test "x$enableval" = "xno" ; then | ||
26366 | |||
26367 | cat >>confdefs.h <<\_ACEOF | ||
26368 | #define DISABLE_PUTUTXLINE 1 | ||
26369 | _ACEOF | ||
26370 | |||
26371 | fi | ||
26372 | |||
26373 | |||
26374 | fi; | ||
26375 | |||
26376 | # Check whether --with-lastlog or --without-lastlog was given. | ||
26377 | if test "${with_lastlog+set}" = set; then | ||
26378 | withval="$with_lastlog" | ||
26379 | |||
26380 | if test "x$withval" = "xno" ; then | ||
26381 | cat >>confdefs.h <<\_ACEOF | ||
26382 | #define DISABLE_LASTLOG 1 | ||
26383 | _ACEOF | ||
26384 | |||
26385 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
26386 | conf_lastlog_location=$withval | ||
26387 | fi | ||
26388 | |||
26389 | |||
26390 | fi; | ||
26391 | |||
26392 | |||
26393 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
26394 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
26395 | cat >conftest.$ac_ext <<_ACEOF | ||
26396 | /* confdefs.h. */ | ||
26397 | _ACEOF | ||
26398 | cat confdefs.h >>conftest.$ac_ext | ||
26399 | cat >>conftest.$ac_ext <<_ACEOF | ||
26400 | /* end confdefs.h. */ | ||
26401 | |||
26402 | #include <sys/types.h> | ||
26403 | #include <utmp.h> | ||
26404 | #ifdef HAVE_LASTLOG_H | ||
26405 | # include <lastlog.h> | ||
26406 | #endif | ||
26407 | #ifdef HAVE_PATHS_H | ||
26408 | # include <paths.h> | ||
26409 | #endif | ||
26410 | #ifdef HAVE_LOGIN_H | ||
26411 | # include <login.h> | ||
26412 | #endif | ||
26413 | |||
26414 | int | ||
26415 | main () | ||
26416 | { | ||
26417 | char *lastlog = LASTLOG_FILE; | ||
26418 | ; | ||
26419 | return 0; | ||
26420 | } | ||
26421 | _ACEOF | ||
26422 | rm -f conftest.$ac_objext | ||
26423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26424 | (eval $ac_compile) 2>conftest.er1 | ||
26425 | ac_status=$? | ||
26426 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26427 | rm -f conftest.er1 | ||
26428 | cat conftest.err >&5 | ||
26429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26430 | (exit $ac_status); } && | ||
26431 | { ac_try='test -z "$ac_c_werror_flag" | ||
26432 | || test ! -s conftest.err' | ||
26433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26434 | (eval $ac_try) 2>&5 | ||
26435 | ac_status=$? | ||
26436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26437 | (exit $ac_status); }; } && | ||
26438 | { ac_try='test -s conftest.$ac_objext' | ||
26439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26440 | (eval $ac_try) 2>&5 | ||
26441 | ac_status=$? | ||
26442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26443 | (exit $ac_status); }; }; then | ||
26444 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26445 | echo "${ECHO_T}yes" >&6 | ||
26446 | else | ||
26447 | echo "$as_me: failed program was:" >&5 | ||
26448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26449 | |||
26450 | |||
26451 | echo "$as_me:$LINENO: result: no" >&5 | ||
26452 | echo "${ECHO_T}no" >&6 | ||
26453 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
26454 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
26455 | cat >conftest.$ac_ext <<_ACEOF | ||
26456 | /* confdefs.h. */ | ||
26457 | _ACEOF | ||
26458 | cat confdefs.h >>conftest.$ac_ext | ||
26459 | cat >>conftest.$ac_ext <<_ACEOF | ||
26460 | /* end confdefs.h. */ | ||
26461 | |||
26462 | #include <sys/types.h> | ||
26463 | #include <utmp.h> | ||
26464 | #ifdef HAVE_LASTLOG_H | ||
26465 | # include <lastlog.h> | ||
26466 | #endif | ||
26467 | #ifdef HAVE_PATHS_H | ||
26468 | # include <paths.h> | ||
26469 | #endif | ||
26470 | |||
26471 | int | ||
26472 | main () | ||
26473 | { | ||
26474 | char *lastlog = _PATH_LASTLOG; | ||
26475 | ; | ||
26476 | return 0; | ||
26477 | } | ||
26478 | _ACEOF | ||
26479 | rm -f conftest.$ac_objext | ||
26480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26481 | (eval $ac_compile) 2>conftest.er1 | ||
26482 | ac_status=$? | ||
26483 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26484 | rm -f conftest.er1 | ||
26485 | cat conftest.err >&5 | ||
26486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26487 | (exit $ac_status); } && | ||
26488 | { ac_try='test -z "$ac_c_werror_flag" | ||
26489 | || test ! -s conftest.err' | ||
26490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26491 | (eval $ac_try) 2>&5 | ||
26492 | ac_status=$? | ||
26493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26494 | (exit $ac_status); }; } && | ||
26495 | { ac_try='test -s conftest.$ac_objext' | ||
26496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26497 | (eval $ac_try) 2>&5 | ||
26498 | ac_status=$? | ||
26499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26500 | (exit $ac_status); }; }; then | ||
26501 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26502 | echo "${ECHO_T}yes" >&6 | ||
26503 | else | ||
26504 | echo "$as_me: failed program was:" >&5 | ||
26505 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26506 | |||
26507 | |||
26508 | echo "$as_me:$LINENO: result: no" >&5 | ||
26509 | echo "${ECHO_T}no" >&6 | ||
26510 | system_lastlog_path=no | ||
26511 | |||
26512 | fi | ||
26513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26514 | |||
26515 | |||
26516 | fi | ||
26517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26518 | |||
26519 | if test -z "$conf_lastlog_location"; then | ||
26520 | if test x"$system_lastlog_path" = x"no" ; then | ||
26521 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
26522 | if (test -d "$f" || test -f "$f") ; then | ||
26523 | conf_lastlog_location=$f | ||
26524 | fi | ||
26525 | done | ||
26526 | if test -z "$conf_lastlog_location"; then | ||
26527 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
26528 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
26529 | fi | ||
26530 | fi | ||
26531 | fi | ||
26532 | |||
26533 | if test -n "$conf_lastlog_location"; then | ||
26534 | |||
26535 | cat >>confdefs.h <<_ACEOF | ||
26536 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
26537 | _ACEOF | ||
26538 | |||
26539 | fi | ||
26540 | |||
26541 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
26542 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
26543 | cat >conftest.$ac_ext <<_ACEOF | ||
26544 | /* confdefs.h. */ | ||
26545 | _ACEOF | ||
26546 | cat confdefs.h >>conftest.$ac_ext | ||
26547 | cat >>conftest.$ac_ext <<_ACEOF | ||
26548 | /* end confdefs.h. */ | ||
26549 | |||
26550 | #include <sys/types.h> | ||
26551 | #include <utmp.h> | ||
26552 | #ifdef HAVE_PATHS_H | ||
26553 | # include <paths.h> | ||
26554 | #endif | ||
26555 | |||
26556 | int | ||
26557 | main () | ||
26558 | { | ||
26559 | char *utmp = UTMP_FILE; | ||
26560 | ; | ||
26561 | return 0; | ||
26562 | } | ||
26563 | _ACEOF | ||
26564 | rm -f conftest.$ac_objext | ||
26565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26566 | (eval $ac_compile) 2>conftest.er1 | ||
26567 | ac_status=$? | ||
26568 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26569 | rm -f conftest.er1 | ||
26570 | cat conftest.err >&5 | ||
26571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26572 | (exit $ac_status); } && | ||
26573 | { ac_try='test -z "$ac_c_werror_flag" | ||
26574 | || test ! -s conftest.err' | ||
26575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26576 | (eval $ac_try) 2>&5 | ||
26577 | ac_status=$? | ||
26578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26579 | (exit $ac_status); }; } && | ||
26580 | { ac_try='test -s conftest.$ac_objext' | ||
26581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26582 | (eval $ac_try) 2>&5 | ||
26583 | ac_status=$? | ||
26584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26585 | (exit $ac_status); }; }; then | ||
26586 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26587 | echo "${ECHO_T}yes" >&6 | ||
26588 | else | ||
26589 | echo "$as_me: failed program was:" >&5 | ||
26590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26591 | |||
26592 | echo "$as_me:$LINENO: result: no" >&5 | ||
26593 | echo "${ECHO_T}no" >&6 | ||
26594 | system_utmp_path=no | ||
26595 | |||
26596 | fi | ||
26597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26598 | if test -z "$conf_utmp_location"; then | ||
26599 | if test x"$system_utmp_path" = x"no" ; then | ||
26600 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
26601 | if test -f $f ; then | ||
26602 | conf_utmp_location=$f | ||
26603 | fi | ||
26604 | done | ||
26605 | if test -z "$conf_utmp_location"; then | ||
26606 | cat >>confdefs.h <<\_ACEOF | ||
26607 | #define DISABLE_UTMP 1 | ||
26608 | _ACEOF | ||
26609 | |||
26610 | fi | ||
26611 | fi | ||
26612 | fi | ||
26613 | if test -n "$conf_utmp_location"; then | ||
26614 | |||
26615 | cat >>confdefs.h <<_ACEOF | ||
26616 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
26617 | _ACEOF | ||
26618 | |||
26619 | fi | ||
26620 | |||
26621 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
26622 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
26623 | cat >conftest.$ac_ext <<_ACEOF | ||
26624 | /* confdefs.h. */ | ||
26625 | _ACEOF | ||
26626 | cat confdefs.h >>conftest.$ac_ext | ||
26627 | cat >>conftest.$ac_ext <<_ACEOF | ||
26628 | /* end confdefs.h. */ | ||
26629 | |||
26630 | #include <sys/types.h> | ||
26631 | #include <utmp.h> | ||
26632 | #ifdef HAVE_PATHS_H | ||
26633 | # include <paths.h> | ||
26634 | #endif | ||
26635 | |||
26636 | int | ||
26637 | main () | ||
26638 | { | ||
26639 | char *wtmp = WTMP_FILE; | ||
26640 | ; | ||
26641 | return 0; | ||
26642 | } | ||
26643 | _ACEOF | ||
26644 | rm -f conftest.$ac_objext | ||
26645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26646 | (eval $ac_compile) 2>conftest.er1 | ||
26647 | ac_status=$? | ||
26648 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26649 | rm -f conftest.er1 | ||
26650 | cat conftest.err >&5 | ||
26651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26652 | (exit $ac_status); } && | ||
26653 | { ac_try='test -z "$ac_c_werror_flag" | ||
26654 | || test ! -s conftest.err' | ||
26655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26656 | (eval $ac_try) 2>&5 | ||
26657 | ac_status=$? | ||
26658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26659 | (exit $ac_status); }; } && | ||
26660 | { ac_try='test -s conftest.$ac_objext' | ||
26661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26662 | (eval $ac_try) 2>&5 | ||
26663 | ac_status=$? | ||
26664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26665 | (exit $ac_status); }; }; then | ||
26666 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26667 | echo "${ECHO_T}yes" >&6 | ||
26668 | else | ||
26669 | echo "$as_me: failed program was:" >&5 | ||
26670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26671 | |||
26672 | echo "$as_me:$LINENO: result: no" >&5 | ||
26673 | echo "${ECHO_T}no" >&6 | ||
26674 | system_wtmp_path=no | ||
26675 | |||
26676 | fi | ||
26677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26678 | if test -z "$conf_wtmp_location"; then | ||
26679 | if test x"$system_wtmp_path" = x"no" ; then | ||
26680 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
26681 | if test -f $f ; then | ||
26682 | conf_wtmp_location=$f | ||
26683 | fi | ||
26684 | done | ||
26685 | if test -z "$conf_wtmp_location"; then | ||
26686 | cat >>confdefs.h <<\_ACEOF | ||
26687 | #define DISABLE_WTMP 1 | ||
26688 | _ACEOF | ||
26689 | |||
26690 | fi | ||
26691 | fi | ||
26692 | fi | ||
26693 | if test -n "$conf_wtmp_location"; then | ||
26694 | |||
26695 | cat >>confdefs.h <<_ACEOF | ||
26696 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
26697 | _ACEOF | ||
26698 | |||
26699 | fi | ||
26700 | |||
26701 | |||
26702 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
26703 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
26704 | cat >conftest.$ac_ext <<_ACEOF | ||
26705 | /* confdefs.h. */ | ||
26706 | _ACEOF | ||
26707 | cat confdefs.h >>conftest.$ac_ext | ||
26708 | cat >>conftest.$ac_ext <<_ACEOF | ||
26709 | /* end confdefs.h. */ | ||
26710 | |||
26711 | #include <sys/types.h> | ||
26712 | #include <utmp.h> | ||
26713 | #ifdef HAVE_UTMPX_H | ||
26714 | #include <utmpx.h> | ||
26715 | #endif | ||
26716 | #ifdef HAVE_PATHS_H | ||
26717 | # include <paths.h> | ||
26718 | #endif | ||
26719 | |||
26720 | int | ||
26721 | main () | ||
26722 | { | ||
26723 | char *utmpx = UTMPX_FILE; | ||
26724 | ; | ||
26725 | return 0; | ||
26726 | } | ||
26727 | _ACEOF | ||
26728 | rm -f conftest.$ac_objext | ||
26729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26730 | (eval $ac_compile) 2>conftest.er1 | ||
26731 | ac_status=$? | ||
26732 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26733 | rm -f conftest.er1 | ||
26734 | cat conftest.err >&5 | ||
26735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26736 | (exit $ac_status); } && | ||
26737 | { ac_try='test -z "$ac_c_werror_flag" | ||
26738 | || test ! -s conftest.err' | ||
26739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26740 | (eval $ac_try) 2>&5 | ||
26741 | ac_status=$? | ||
26742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26743 | (exit $ac_status); }; } && | ||
26744 | { ac_try='test -s conftest.$ac_objext' | ||
26745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26746 | (eval $ac_try) 2>&5 | ||
26747 | ac_status=$? | ||
26748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26749 | (exit $ac_status); }; }; then | ||
26750 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26751 | echo "${ECHO_T}yes" >&6 | ||
26752 | else | ||
26753 | echo "$as_me: failed program was:" >&5 | ||
26754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26755 | |||
26756 | echo "$as_me:$LINENO: result: no" >&5 | ||
26757 | echo "${ECHO_T}no" >&6 | ||
26758 | system_utmpx_path=no | ||
26759 | |||
26760 | fi | ||
26761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26762 | if test -z "$conf_utmpx_location"; then | ||
26763 | if test x"$system_utmpx_path" = x"no" ; then | ||
26764 | cat >>confdefs.h <<\_ACEOF | ||
26765 | #define DISABLE_UTMPX 1 | ||
26766 | _ACEOF | ||
26767 | |||
26768 | fi | ||
26769 | else | ||
26770 | |||
26771 | cat >>confdefs.h <<_ACEOF | ||
26772 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
26773 | _ACEOF | ||
26774 | |||
26775 | fi | ||
26776 | |||
26777 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
26778 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
26779 | cat >conftest.$ac_ext <<_ACEOF | ||
26780 | /* confdefs.h. */ | ||
26781 | _ACEOF | ||
26782 | cat confdefs.h >>conftest.$ac_ext | ||
26783 | cat >>conftest.$ac_ext <<_ACEOF | ||
26784 | /* end confdefs.h. */ | ||
26785 | |||
26786 | #include <sys/types.h> | ||
26787 | #include <utmp.h> | ||
26788 | #ifdef HAVE_UTMPX_H | ||
26789 | #include <utmpx.h> | ||
26790 | #endif | ||
26791 | #ifdef HAVE_PATHS_H | ||
26792 | # include <paths.h> | ||
26793 | #endif | ||
26794 | |||
26795 | int | ||
26796 | main () | ||
26797 | { | ||
26798 | char *wtmpx = WTMPX_FILE; | ||
26799 | ; | ||
26800 | return 0; | ||
26801 | } | ||
26802 | _ACEOF | ||
26803 | rm -f conftest.$ac_objext | ||
26804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
26805 | (eval $ac_compile) 2>conftest.er1 | ||
26806 | ac_status=$? | ||
26807 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26808 | rm -f conftest.er1 | ||
26809 | cat conftest.err >&5 | ||
26810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26811 | (exit $ac_status); } && | ||
26812 | { ac_try='test -z "$ac_c_werror_flag" | ||
26813 | || test ! -s conftest.err' | ||
26814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26815 | (eval $ac_try) 2>&5 | ||
26816 | ac_status=$? | ||
26817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26818 | (exit $ac_status); }; } && | ||
26819 | { ac_try='test -s conftest.$ac_objext' | ||
26820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
26821 | (eval $ac_try) 2>&5 | ||
26822 | ac_status=$? | ||
26823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26824 | (exit $ac_status); }; }; then | ||
26825 | echo "$as_me:$LINENO: result: yes" >&5 | ||
26826 | echo "${ECHO_T}yes" >&6 | ||
26827 | else | ||
26828 | echo "$as_me: failed program was:" >&5 | ||
26829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26830 | |||
26831 | echo "$as_me:$LINENO: result: no" >&5 | ||
26832 | echo "${ECHO_T}no" >&6 | ||
26833 | system_wtmpx_path=no | ||
26834 | |||
26835 | fi | ||
26836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26837 | if test -z "$conf_wtmpx_location"; then | ||
26838 | if test x"$system_wtmpx_path" = x"no" ; then | ||
26839 | cat >>confdefs.h <<\_ACEOF | ||
26840 | #define DISABLE_WTMPX 1 | ||
26841 | _ACEOF | ||
26842 | |||
26843 | fi | ||
26844 | else | ||
26845 | |||
26846 | cat >>confdefs.h <<_ACEOF | ||
26847 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
26848 | _ACEOF | ||
26849 | |||
26850 | fi | ||
26851 | |||
26852 | |||
26853 | if test ! -z "$blibpath" ; then | ||
26854 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
26855 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
26856 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
26857 | fi | ||
26858 | |||
26859 | if test "$PAM_MSG" = yes ; then | ||
26860 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
26861 | fi | ||
26862 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
26863 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
26864 | fi | ||
26865 | |||
26866 | CFLAGS="$CFLAGS $werror_flags" | ||
26867 | |||
26868 | |||
26869 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
26870 | |||
26871 | cat >confcache <<\_ACEOF | ||
26872 | # This file is a shell script that caches the results of configure | ||
26873 | # tests run on this system so they can be shared between configure | ||
26874 | # scripts and configure runs, see configure's option --config-cache. | ||
26875 | # It is not useful on other systems. If it contains results you don't | ||
26876 | # want to keep, you may remove or edit it. | ||
26877 | # | ||
26878 | # config.status only pays attention to the cache file if you give it | ||
26879 | # the --recheck option to rerun configure. | ||
26880 | # | ||
26881 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
26882 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
26883 | # following values. | ||
26884 | |||
26885 | _ACEOF | ||
26886 | |||
26887 | # The following way of writing the cache mishandles newlines in values, | ||
26888 | # but we know of no workaround that is simple, portable, and efficient. | ||
26889 | # So, don't put newlines in cache variables' values. | ||
26890 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
26891 | # and sets the high bit in the cache file unless we assign to the vars. | ||
26892 | { | ||
26893 | (set) 2>&1 | | ||
26894 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
26895 | *ac_space=\ *) | ||
26896 | # `set' does not quote correctly, so add quotes (double-quote | ||
26897 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
26898 | sed -n \ | ||
26899 | "s/'/'\\\\''/g; | ||
26900 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
26901 | ;; | ||
26902 | *) | ||
26903 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
26904 | sed -n \ | ||
26905 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
26906 | ;; | ||
26907 | esac; | ||
26908 | } | | ||
26909 | sed ' | ||
26910 | t clear | ||
26911 | : clear | ||
26912 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
26913 | t end | ||
26914 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
26915 | : end' >>confcache | ||
26916 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
26917 | if test -w $cache_file; then | ||
26918 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
26919 | cat confcache >$cache_file | ||
26920 | else | ||
26921 | echo "not updating unwritable cache $cache_file" | ||
26922 | fi | ||
26923 | fi | ||
26924 | rm -f confcache | ||
26925 | |||
26926 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
26927 | # Let make expand exec_prefix. | ||
26928 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
26929 | |||
26930 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
26931 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
26932 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
26933 | # (actually we leave an empty line to preserve line numbers). | ||
26934 | if test "x$srcdir" = x.; then | ||
26935 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
26936 | s/:*\$(srcdir):*/:/; | ||
26937 | s/:*\${srcdir}:*/:/; | ||
26938 | s/:*@srcdir@:*/:/; | ||
26939 | s/^\([^=]*=[ ]*\):*/\1/; | ||
26940 | s/:*$//; | ||
26941 | s/^[^=]*=[ ]*$//; | ||
26942 | }' | ||
26943 | fi | ||
26944 | |||
26945 | DEFS=-DHAVE_CONFIG_H | ||
26946 | |||
26947 | ac_libobjs= | ||
26948 | ac_ltlibobjs= | ||
26949 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
26950 | # 1. Remove the extension, and $U if already installed. | ||
26951 | ac_i=`echo "$ac_i" | | ||
26952 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
26953 | # 2. Add them. | ||
26954 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
26955 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
26956 | done | ||
26957 | LIBOBJS=$ac_libobjs | ||
26958 | |||
26959 | LTLIBOBJS=$ac_ltlibobjs | ||
26960 | |||
26961 | |||
26962 | |||
26963 | : ${CONFIG_STATUS=./config.status} | ||
26964 | ac_clean_files_save=$ac_clean_files | ||
26965 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
26966 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
26967 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
26968 | cat >$CONFIG_STATUS <<_ACEOF | ||
26969 | #! $SHELL | ||
26970 | # Generated by $as_me. | ||
26971 | # Run this file to recreate the current configuration. | ||
26972 | # Compiler output produced by configure, useful for debugging | ||
26973 | # configure, is in config.log if it exists. | ||
26974 | |||
26975 | debug=false | ||
26976 | ac_cs_recheck=false | ||
26977 | ac_cs_silent=false | ||
26978 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
26979 | _ACEOF | ||
26980 | |||
26981 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26982 | ## --------------------- ## | ||
26983 | ## M4sh Initialization. ## | ||
26984 | ## --------------------- ## | ||
26985 | |||
26986 | # Be Bourne compatible | ||
26987 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
26988 | emulate sh | ||
26989 | NULLCMD=: | ||
26990 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
26991 | # is contrary to our usage. Disable this feature. | ||
26992 | alias -g '${1+"$@"}'='"$@"' | ||
26993 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
26994 | set -o posix | ||
26995 | fi | ||
26996 | DUALCASE=1; export DUALCASE # for MKS sh | ||
26997 | |||
26998 | # Support unset when possible. | ||
26999 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
27000 | as_unset=unset | ||
27001 | else | ||
27002 | as_unset=false | ||
27003 | fi | ||
27004 | |||
27005 | |||
27006 | # Work around bugs in pre-3.0 UWIN ksh. | ||
27007 | $as_unset ENV MAIL MAILPATH | ||
27008 | PS1='$ ' | ||
27009 | PS2='> ' | ||
27010 | PS4='+ ' | ||
27011 | |||
27012 | # NLS nuisances. | ||
27013 | for as_var in \ | ||
27014 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
27015 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
27016 | LC_TELEPHONE LC_TIME | ||
27017 | do | ||
27018 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
27019 | eval $as_var=C; export $as_var | ||
27020 | else | ||
27021 | $as_unset $as_var | ||
27022 | fi | ||
27023 | done | ||
27024 | |||
27025 | # Required to use basename. | ||
27026 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
27027 | as_expr=expr | ||
27028 | else | ||
27029 | as_expr=false | ||
27030 | fi | ||
27031 | |||
27032 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
27033 | as_basename=basename | ||
27034 | else | ||
27035 | as_basename=false | ||
27036 | fi | ||
27037 | |||
27038 | |||
27039 | # Name of the executable. | ||
27040 | as_me=`$as_basename "$0" || | ||
27041 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
27042 | X"$0" : 'X\(//\)$' \| \ | ||
27043 | X"$0" : 'X\(/\)$' \| \ | ||
27044 | . : '\(.\)' 2>/dev/null || | ||
27045 | echo X/"$0" | | ||
27046 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
27047 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
27048 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
27049 | s/.*/./; q'` | ||
27050 | |||
27051 | |||
27052 | # PATH needs CR, and LINENO needs CR and PATH. | ||
27053 | # Avoid depending upon Character Ranges. | ||
27054 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
27055 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
27056 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
27057 | as_cr_digits='0123456789' | ||
27058 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
27059 | |||
27060 | # The user is always right. | ||
27061 | if test "${PATH_SEPARATOR+set}" != set; then | ||
27062 | echo "#! /bin/sh" >conf$$.sh | ||
27063 | echo "exit 0" >>conf$$.sh | ||
27064 | chmod +x conf$$.sh | ||
27065 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
27066 | PATH_SEPARATOR=';' | ||
27067 | else | ||
27068 | PATH_SEPARATOR=: | ||
27069 | fi | ||
27070 | rm -f conf$$.sh | ||
27071 | fi | ||
27072 | |||
27073 | |||
27074 | as_lineno_1=$LINENO | ||
27075 | as_lineno_2=$LINENO | ||
27076 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
27077 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
27078 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
27079 | # Find who we are. Look in the path if we contain no path at all | ||
27080 | # relative or not. | ||
27081 | case $0 in | ||
27082 | *[\\/]* ) as_myself=$0 ;; | ||
27083 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27084 | for as_dir in $PATH | ||
27085 | do | ||
27086 | IFS=$as_save_IFS | ||
27087 | test -z "$as_dir" && as_dir=. | ||
27088 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
27089 | done | ||
27090 | |||
27091 | ;; | ||
27092 | esac | ||
27093 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
27094 | # in which case we are not to be found in the path. | ||
27095 | if test "x$as_myself" = x; then | ||
27096 | as_myself=$0 | ||
27097 | fi | ||
27098 | if test ! -f "$as_myself"; then | ||
27099 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
27100 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
27101 | { (exit 1); exit 1; }; } | ||
27102 | fi | ||
27103 | case $CONFIG_SHELL in | ||
27104 | '') | ||
27105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27106 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
27107 | do | ||
27108 | IFS=$as_save_IFS | ||
27109 | test -z "$as_dir" && as_dir=. | ||
27110 | for as_base in sh bash ksh sh5; do | ||
27111 | case $as_dir in | ||
27112 | /*) | ||
27113 | if ("$as_dir/$as_base" -c ' | ||
27114 | as_lineno_1=$LINENO | ||
27115 | as_lineno_2=$LINENO | ||
27116 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
27117 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
27118 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
27119 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
27120 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
27121 | CONFIG_SHELL=$as_dir/$as_base | ||
27122 | export CONFIG_SHELL | ||
27123 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
27124 | fi;; | ||
27125 | esac | ||
27126 | done | ||
27127 | done | ||
27128 | ;; | ||
27129 | esac | ||
27130 | |||
27131 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
27132 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
27133 | # line-number line before each line; the second 'sed' does the real | ||
27134 | # work. The second script uses 'N' to pair each line-number line | ||
27135 | # with the numbered line, and appends trailing '-' during | ||
27136 | # substitution so that $LINENO is not a special case at line end. | ||
27137 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
27138 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
27139 | sed '=' <$as_myself | | ||
27140 | sed ' | ||
27141 | N | ||
27142 | s,$,-, | ||
27143 | : loop | ||
27144 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
27145 | t loop | ||
27146 | s,-$,, | ||
27147 | s,^['$as_cr_digits']*\n,, | ||
27148 | ' >$as_me.lineno && | ||
27149 | chmod +x $as_me.lineno || | ||
27150 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
27151 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
27152 | { (exit 1); exit 1; }; } | ||
27153 | |||
27154 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
27155 | # (the dirname of $[0] is not the place where we might find the | ||
27156 | # original and so on. Autoconf is especially sensible to this). | ||
27157 | . ./$as_me.lineno | ||
27158 | # Exit status is that of the last command. | ||
27159 | exit | ||
27160 | } | ||
27161 | |||
27162 | |||
27163 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
27164 | *c*,-n*) ECHO_N= ECHO_C=' | ||
27165 | ' ECHO_T=' ' ;; | ||
27166 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
27167 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
27168 | esac | ||
27169 | |||
27170 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
27171 | as_expr=expr | ||
27172 | else | ||
27173 | as_expr=false | ||
27174 | fi | ||
27175 | |||
27176 | rm -f conf$$ conf$$.exe conf$$.file | ||
27177 | echo >conf$$.file | ||
27178 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
27179 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
27180 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
27181 | if test -f conf$$.exe; then | ||
27182 | # Don't use ln at all; we don't have any links | ||
27183 | as_ln_s='cp -p' | ||
27184 | else | ||
27185 | as_ln_s='ln -s' | ||
27186 | fi | ||
27187 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
27188 | as_ln_s=ln | ||
27189 | else | ||
27190 | as_ln_s='cp -p' | ||
27191 | fi | ||
27192 | rm -f conf$$ conf$$.exe conf$$.file | ||
27193 | |||
27194 | if mkdir -p . 2>/dev/null; then | ||
27195 | as_mkdir_p=: | ||
27196 | else | ||
27197 | test -d ./-p && rmdir ./-p | ||
27198 | as_mkdir_p=false | ||
27199 | fi | ||
27200 | |||
27201 | as_executable_p="test -f" | ||
27202 | |||
27203 | # Sed expression to map a string onto a valid CPP name. | ||
27204 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
27205 | |||
27206 | # Sed expression to map a string onto a valid variable name. | ||
27207 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
27208 | |||
27209 | |||
27210 | # IFS | ||
27211 | # We need space, tab and new line, in precisely that order. | ||
27212 | as_nl=' | ||
27213 | ' | ||
27214 | IFS=" $as_nl" | ||
27215 | |||
27216 | # CDPATH. | ||
27217 | $as_unset CDPATH | ||
27218 | |||
27219 | exec 6>&1 | ||
27220 | |||
27221 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
27222 | # report actual input values of CONFIG_FILES etc. instead of their | ||
27223 | # values after options handling. Logging --version etc. is OK. | ||
27224 | exec 5>>config.log | ||
27225 | { | ||
27226 | echo | ||
27227 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF | ||
27228 | ## Running $as_me. ## | ||
27229 | BOXI_EOF | ||
27230 | } >&5 | ||
27231 | cat >&5 <<_CSEOF | ||
27232 | |||
27233 | This file was extended by OpenSSH $as_me Portable, which was | ||
27234 | generated by GNU Autoconf 2.59. Invocation command line was | ||
27235 | |||
27236 | CONFIG_FILES = $CONFIG_FILES | ||
27237 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
27238 | CONFIG_LINKS = $CONFIG_LINKS | ||
27239 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
27240 | $ $0 $@ | ||
27241 | |||
27242 | _CSEOF | ||
27243 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
27244 | echo >&5 | ||
27245 | _ACEOF | ||
27246 | |||
27247 | # Files that config.status was made for. | ||
27248 | if test -n "$ac_config_files"; then | ||
27249 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
27250 | fi | ||
27251 | |||
27252 | if test -n "$ac_config_headers"; then | ||
27253 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
27254 | fi | ||
27255 | |||
27256 | if test -n "$ac_config_links"; then | ||
27257 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
27258 | fi | ||
27259 | |||
27260 | if test -n "$ac_config_commands"; then | ||
27261 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
27262 | fi | ||
27263 | |||
27264 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27265 | |||
27266 | ac_cs_usage="\ | ||
27267 | \`$as_me' instantiates files from templates according to the | ||
27268 | current configuration. | ||
27269 | |||
27270 | Usage: $0 [OPTIONS] [FILE]... | ||
27271 | |||
27272 | -h, --help print this help, then exit | ||
27273 | -V, --version print version number, then exit | ||
27274 | -q, --quiet do not print progress messages | ||
27275 | -d, --debug don't remove temporary files | ||
27276 | --recheck update $as_me by reconfiguring in the same conditions | ||
27277 | --file=FILE[:TEMPLATE] | ||
27278 | instantiate the configuration file FILE | ||
27279 | --header=FILE[:TEMPLATE] | ||
27280 | instantiate the configuration header FILE | ||
27281 | |||
27282 | Configuration files: | ||
27283 | $config_files | ||
27284 | |||
27285 | Configuration headers: | ||
27286 | $config_headers | ||
27287 | |||
27288 | Report bugs to <bug-autoconf@gnu.org>." | ||
27289 | _ACEOF | ||
27290 | |||
27291 | cat >>$CONFIG_STATUS <<_ACEOF | ||
27292 | ac_cs_version="\\ | ||
27293 | OpenSSH config.status Portable | ||
27294 | configured by $0, generated by GNU Autoconf 2.59, | ||
27295 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
27296 | |||
27297 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
27298 | This config.status script is free software; the Free Software Foundation | ||
27299 | gives unlimited permission to copy, distribute and modify it." | ||
27300 | srcdir=$srcdir | ||
27301 | INSTALL="$INSTALL" | ||
27302 | _ACEOF | ||
27303 | |||
27304 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27305 | # If no file are specified by the user, then we need to provide default | ||
27306 | # value. By we need to know if files were specified by the user. | ||
27307 | ac_need_defaults=: | ||
27308 | while test $# != 0 | ||
27309 | do | ||
27310 | case $1 in | ||
27311 | --*=*) | ||
27312 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
27313 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
27314 | ac_shift=: | ||
27315 | ;; | ||
27316 | -*) | ||
27317 | ac_option=$1 | ||
27318 | ac_optarg=$2 | ||
27319 | ac_shift=shift | ||
27320 | ;; | ||
27321 | *) # This is not an option, so the user has probably given explicit | ||
27322 | # arguments. | ||
27323 | ac_option=$1 | ||
27324 | ac_need_defaults=false;; | ||
27325 | esac | ||
27326 | |||
27327 | case $ac_option in | ||
27328 | # Handling of the options. | ||
27329 | _ACEOF | ||
27330 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27331 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
27332 | ac_cs_recheck=: ;; | ||
27333 | --version | --vers* | -V ) | ||
27334 | echo "$ac_cs_version"; exit 0 ;; | ||
27335 | --he | --h) | ||
27336 | # Conflict between --help and --header | ||
27337 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
27338 | Try \`$0 --help' for more information." >&5 | ||
27339 | echo "$as_me: error: ambiguous option: $1 | ||
27340 | Try \`$0 --help' for more information." >&2;} | ||
27341 | { (exit 1); exit 1; }; };; | ||
27342 | --help | --hel | -h ) | ||
27343 | echo "$ac_cs_usage"; exit 0 ;; | ||
27344 | --debug | --d* | -d ) | ||
27345 | debug=: ;; | ||
27346 | --file | --fil | --fi | --f ) | ||
27347 | $ac_shift | ||
27348 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
27349 | ac_need_defaults=false;; | ||
27350 | --header | --heade | --head | --hea ) | ||
27351 | $ac_shift | ||
27352 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
27353 | ac_need_defaults=false;; | ||
27354 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
27355 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
27356 | ac_cs_silent=: ;; | ||
27357 | |||
27358 | # This is an error. | ||
27359 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
27360 | Try \`$0 --help' for more information." >&5 | ||
27361 | echo "$as_me: error: unrecognized option: $1 | ||
27362 | Try \`$0 --help' for more information." >&2;} | ||
27363 | { (exit 1); exit 1; }; } ;; | ||
27364 | |||
27365 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
27366 | |||
27367 | esac | ||
27368 | shift | ||
27369 | done | ||
27370 | |||
27371 | ac_configure_extra_args= | ||
27372 | |||
27373 | if $ac_cs_silent; then | ||
27374 | exec 6>/dev/null | ||
27375 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
27376 | fi | ||
27377 | |||
27378 | _ACEOF | ||
27379 | cat >>$CONFIG_STATUS <<_ACEOF | ||
27380 | if \$ac_cs_recheck; then | ||
27381 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
27382 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
27383 | fi | ||
27384 | |||
27385 | _ACEOF | ||
27386 | |||
27387 | |||
27388 | |||
27389 | |||
27390 | |||
27391 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27392 | for ac_config_target in $ac_config_targets | ||
27393 | do | ||
27394 | case "$ac_config_target" in | ||
27395 | # Handling of arguments. | ||
27396 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
27397 | "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
27398 | "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
27399 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
27400 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
27401 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
27402 | "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
27403 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
27404 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
27405 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
27406 | { (exit 1); exit 1; }; };; | ||
27407 | esac | ||
27408 | done | ||
27409 | |||
27410 | # If the user did not use the arguments to specify the items to instantiate, | ||
27411 | # then the envvar interface is used. Set only those that are not. | ||
27412 | # We use the long form for the default assignment because of an extremely | ||
27413 | # bizarre bug on SunOS 4.1.3. | ||
27414 | if $ac_need_defaults; then | ||
27415 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
27416 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
27417 | fi | ||
27418 | |||
27419 | # Have a temporary directory for convenience. Make it in the build tree | ||
27420 | # simply because there is no reason to put it here, and in addition, | ||
27421 | # creating and moving files from /tmp can sometimes cause problems. | ||
27422 | # Create a temporary directory, and hook for its removal unless debugging. | ||
27423 | $debug || | ||
27424 | { | ||
27425 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
27426 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
27427 | } | ||
27428 | |||
27429 | # Create a (secure) tmp directory for tmp files. | ||
27430 | |||
27431 | { | ||
27432 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
27433 | test -n "$tmp" && test -d "$tmp" | ||
27434 | } || | ||
27435 | { | ||
27436 | tmp=./confstat$$-$RANDOM | ||
27437 | (umask 077 && mkdir $tmp) | ||
27438 | } || | ||
27439 | { | ||
27440 | echo "$me: cannot create a temporary directory in ." >&2 | ||
27441 | { (exit 1); exit 1; } | ||
27442 | } | ||
27443 | |||
27444 | _ACEOF | ||
27445 | |||
27446 | cat >>$CONFIG_STATUS <<_ACEOF | ||
27447 | |||
27448 | # | ||
27449 | # CONFIG_FILES section. | ||
27450 | # | ||
27451 | |||
27452 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
27453 | # This happens for instance when ./config.status config.h | ||
27454 | if test -n "\$CONFIG_FILES"; then | ||
27455 | # Protect against being on the right side of a sed subst in config.status. | ||
27456 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
27457 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
27458 | s,@SHELL@,$SHELL,;t t | ||
27459 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
27460 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
27461 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
27462 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
27463 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
27464 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
27465 | s,@exec_prefix@,$exec_prefix,;t t | ||
27466 | s,@prefix@,$prefix,;t t | ||
27467 | s,@program_transform_name@,$program_transform_name,;t t | ||
27468 | s,@bindir@,$bindir,;t t | ||
27469 | s,@sbindir@,$sbindir,;t t | ||
27470 | s,@libexecdir@,$libexecdir,;t t | ||
27471 | s,@datadir@,$datadir,;t t | ||
27472 | s,@sysconfdir@,$sysconfdir,;t t | ||
27473 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
27474 | s,@localstatedir@,$localstatedir,;t t | ||
27475 | s,@libdir@,$libdir,;t t | ||
27476 | s,@includedir@,$includedir,;t t | ||
27477 | s,@oldincludedir@,$oldincludedir,;t t | ||
27478 | s,@infodir@,$infodir,;t t | ||
27479 | s,@mandir@,$mandir,;t t | ||
27480 | s,@build_alias@,$build_alias,;t t | ||
27481 | s,@host_alias@,$host_alias,;t t | ||
27482 | s,@target_alias@,$target_alias,;t t | ||
27483 | s,@DEFS@,$DEFS,;t t | ||
27484 | s,@ECHO_C@,$ECHO_C,;t t | ||
27485 | s,@ECHO_N@,$ECHO_N,;t t | ||
27486 | s,@ECHO_T@,$ECHO_T,;t t | ||
27487 | s,@LIBS@,$LIBS,;t t | ||
27488 | s,@CC@,$CC,;t t | ||
27489 | s,@CFLAGS@,$CFLAGS,;t t | ||
27490 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
27491 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
27492 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
27493 | s,@EXEEXT@,$EXEEXT,;t t | ||
27494 | s,@OBJEXT@,$OBJEXT,;t t | ||
27495 | s,@build@,$build,;t t | ||
27496 | s,@build_cpu@,$build_cpu,;t t | ||
27497 | s,@build_vendor@,$build_vendor,;t t | ||
27498 | s,@build_os@,$build_os,;t t | ||
27499 | s,@host@,$host,;t t | ||
27500 | s,@host_cpu@,$host_cpu,;t t | ||
27501 | s,@host_vendor@,$host_vendor,;t t | ||
27502 | s,@host_os@,$host_os,;t t | ||
27503 | s,@AWK@,$AWK,;t t | ||
27504 | s,@CPP@,$CPP,;t t | ||
27505 | s,@RANLIB@,$RANLIB,;t t | ||
27506 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
27507 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
27508 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
27509 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
27510 | s,@EGREP@,$EGREP,;t t | ||
27511 | s,@AR@,$AR,;t t | ||
27512 | s,@CAT@,$CAT,;t t | ||
27513 | s,@KILL@,$KILL,;t t | ||
27514 | s,@PERL@,$PERL,;t t | ||
27515 | s,@SED@,$SED,;t t | ||
27516 | s,@ENT@,$ENT,;t t | ||
27517 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
27518 | s,@SH@,$SH,;t t | ||
27519 | s,@TEST_SHELL@,$TEST_SHELL,;t t | ||
27520 | s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t | ||
27521 | s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t | ||
27522 | s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t | ||
27523 | s,@STARTUP_SCRIPT_SHELL@,$STARTUP_SCRIPT_SHELL,;t t | ||
27524 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
27525 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
27526 | s,@LD@,$LD,;t t | ||
27527 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
27528 | s,@LIBEDIT@,$LIBEDIT,;t t | ||
27529 | s,@LIBPAM@,$LIBPAM,;t t | ||
27530 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
27531 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
27532 | s,@PROG_LS@,$PROG_LS,;t t | ||
27533 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
27534 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
27535 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
27536 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
27537 | s,@PROG_PS@,$PROG_PS,;t t | ||
27538 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
27539 | s,@PROG_W@,$PROG_W,;t t | ||
27540 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
27541 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
27542 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
27543 | s,@PROG_DF@,$PROG_DF,;t t | ||
27544 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
27545 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
27546 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
27547 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
27548 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
27549 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
27550 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
27551 | s,@xauth_path@,$xauth_path,;t t | ||
27552 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
27553 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
27554 | s,@NROFF@,$NROFF,;t t | ||
27555 | s,@MANTYPE@,$MANTYPE,;t t | ||
27556 | s,@mansubdir@,$mansubdir,;t t | ||
27557 | s,@user_path@,$user_path,;t t | ||
27558 | s,@piddir@,$piddir,;t t | ||
27559 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
27560 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
27561 | CEOF | ||
27562 | |||
27563 | _ACEOF | ||
27564 | |||
27565 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27566 | # Split the substitutions into bite-sized pieces for seds with | ||
27567 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
27568 | ac_max_sed_lines=48 | ||
27569 | ac_sed_frag=1 # Number of current file. | ||
27570 | ac_beg=1 # First line for current file. | ||
27571 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
27572 | ac_more_lines=: | ||
27573 | ac_sed_cmds= | ||
27574 | while $ac_more_lines; do | ||
27575 | if test $ac_beg -gt 1; then | ||
27576 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
27577 | else | ||
27578 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
27579 | fi | ||
27580 | if test ! -s $tmp/subs.frag; then | ||
27581 | ac_more_lines=false | ||
27582 | else | ||
27583 | # The purpose of the label and of the branching condition is to | ||
27584 | # speed up the sed processing (if there are no `@' at all, there | ||
27585 | # is no need to browse any of the substitutions). | ||
27586 | # These are the two extra sed commands mentioned above. | ||
27587 | (echo ':t | ||
27588 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
27589 | if test -z "$ac_sed_cmds"; then | ||
27590 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
27591 | else | ||
27592 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
27593 | fi | ||
27594 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
27595 | ac_beg=$ac_end | ||
27596 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
27597 | fi | ||
27598 | done | ||
27599 | if test -z "$ac_sed_cmds"; then | ||
27600 | ac_sed_cmds=cat | ||
27601 | fi | ||
27602 | fi # test -n "$CONFIG_FILES" | ||
27603 | |||
27604 | _ACEOF | ||
27605 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27606 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
27607 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
27608 | case $ac_file in | ||
27609 | - | *:- | *:-:* ) # input from stdin | ||
27610 | cat >$tmp/stdin | ||
27611 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
27612 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
27613 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
27614 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
27615 | * ) ac_file_in=$ac_file.in ;; | ||
27616 | esac | ||
27617 | |||
27618 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
27619 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
27620 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
27621 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
27622 | X"$ac_file" : 'X\(//\)$' \| \ | ||
27623 | X"$ac_file" : 'X\(/\)' \| \ | ||
27624 | . : '\(.\)' 2>/dev/null || | ||
27625 | echo X"$ac_file" | | ||
27626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
27627 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
27628 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
27629 | /^X\(\/\).*/{ s//\1/; q; } | ||
27630 | s/.*/./; q'` | ||
27631 | { if $as_mkdir_p; then | ||
27632 | mkdir -p "$ac_dir" | ||
27633 | else | ||
27634 | as_dir="$ac_dir" | ||
27635 | as_dirs= | ||
27636 | while test ! -d "$as_dir"; do | ||
27637 | as_dirs="$as_dir $as_dirs" | ||
27638 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
27639 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
27640 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
27641 | X"$as_dir" : 'X\(//\)$' \| \ | ||
27642 | X"$as_dir" : 'X\(/\)' \| \ | ||
27643 | . : '\(.\)' 2>/dev/null || | ||
27644 | echo X"$as_dir" | | ||
27645 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
27646 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
27647 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
27648 | /^X\(\/\).*/{ s//\1/; q; } | ||
27649 | s/.*/./; q'` | ||
27650 | done | ||
27651 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
27652 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
27653 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
27654 | { (exit 1); exit 1; }; }; } | ||
27655 | |||
27656 | ac_builddir=. | ||
27657 | |||
27658 | if test "$ac_dir" != .; then | ||
27659 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
27660 | # A "../" for each directory in $ac_dir_suffix. | ||
27661 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
27662 | else | ||
27663 | ac_dir_suffix= ac_top_builddir= | ||
27664 | fi | ||
27665 | |||
27666 | case $srcdir in | ||
27667 | .) # No --srcdir option. We are building in place. | ||
27668 | ac_srcdir=. | ||
27669 | if test -z "$ac_top_builddir"; then | ||
27670 | ac_top_srcdir=. | ||
27671 | else | ||
27672 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
27673 | fi ;; | ||
27674 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
27675 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
27676 | ac_top_srcdir=$srcdir ;; | ||
27677 | *) # Relative path. | ||
27678 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
27679 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
27680 | esac | ||
27681 | |||
27682 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
27683 | # the directories may not exist. | ||
27684 | case `pwd` in | ||
27685 | .) ac_abs_builddir="$ac_dir";; | ||
27686 | *) | ||
27687 | case "$ac_dir" in | ||
27688 | .) ac_abs_builddir=`pwd`;; | ||
27689 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
27690 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
27691 | esac;; | ||
27692 | esac | ||
27693 | case $ac_abs_builddir in | ||
27694 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
27695 | *) | ||
27696 | case ${ac_top_builddir}. in | ||
27697 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
27698 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
27699 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
27700 | esac;; | ||
27701 | esac | ||
27702 | case $ac_abs_builddir in | ||
27703 | .) ac_abs_srcdir=$ac_srcdir;; | ||
27704 | *) | ||
27705 | case $ac_srcdir in | ||
27706 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
27707 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
27708 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
27709 | esac;; | ||
27710 | esac | ||
27711 | case $ac_abs_builddir in | ||
27712 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
27713 | *) | ||
27714 | case $ac_top_srcdir in | ||
27715 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
27716 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
27717 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
27718 | esac;; | ||
27719 | esac | ||
27720 | |||
27721 | |||
27722 | case $INSTALL in | ||
27723 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
27724 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
27725 | esac | ||
27726 | |||
27727 | if test x"$ac_file" != x-; then | ||
27728 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
27729 | echo "$as_me: creating $ac_file" >&6;} | ||
27730 | rm -f "$ac_file" | ||
27731 | fi | ||
27732 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
27733 | # use $as_me), people would be surprised to read: | ||
27734 | # /* config.h. Generated by config.status. */ | ||
27735 | if test x"$ac_file" = x-; then | ||
27736 | configure_input= | ||
27737 | else | ||
27738 | configure_input="$ac_file. " | ||
27739 | fi | ||
27740 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
27741 | sed 's,.*/,,'` by configure." | ||
27742 | |||
27743 | # First look for the input files in the build tree, otherwise in the | ||
27744 | # src tree. | ||
27745 | ac_file_inputs=`IFS=: | ||
27746 | for f in $ac_file_in; do | ||
27747 | case $f in | ||
27748 | -) echo $tmp/stdin ;; | ||
27749 | [\\/$]*) | ||
27750 | # Absolute (can't be DOS-style, as IFS=:) | ||
27751 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
27752 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
27753 | { (exit 1); exit 1; }; } | ||
27754 | echo "$f";; | ||
27755 | *) # Relative | ||
27756 | if test -f "$f"; then | ||
27757 | # Build tree | ||
27758 | echo "$f" | ||
27759 | elif test -f "$srcdir/$f"; then | ||
27760 | # Source tree | ||
27761 | echo "$srcdir/$f" | ||
27762 | else | ||
27763 | # /dev/null tree | ||
27764 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
27765 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
27766 | { (exit 1); exit 1; }; } | ||
27767 | fi;; | ||
27768 | esac | ||
27769 | done` || { (exit 1); exit 1; } | ||
27770 | _ACEOF | ||
27771 | cat >>$CONFIG_STATUS <<_ACEOF | ||
27772 | sed "$ac_vpsub | ||
27773 | $extrasub | ||
27774 | _ACEOF | ||
27775 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27776 | :t | ||
27777 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
27778 | s,@configure_input@,$configure_input,;t t | ||
27779 | s,@srcdir@,$ac_srcdir,;t t | ||
27780 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
27781 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
27782 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
27783 | s,@builddir@,$ac_builddir,;t t | ||
27784 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
27785 | s,@top_builddir@,$ac_top_builddir,;t t | ||
27786 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
27787 | s,@INSTALL@,$ac_INSTALL,;t t | ||
27788 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
27789 | rm -f $tmp/stdin | ||
27790 | if test x"$ac_file" != x-; then | ||
27791 | mv $tmp/out $ac_file | ||
27792 | else | ||
27793 | cat $tmp/out | ||
27794 | rm -f $tmp/out | ||
27795 | fi | ||
27796 | |||
27797 | done | ||
27798 | _ACEOF | ||
27799 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27800 | |||
27801 | # | ||
27802 | # CONFIG_HEADER section. | ||
27803 | # | ||
27804 | |||
27805 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
27806 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
27807 | # | ||
27808 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
27809 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
27810 | ac_dB='[ ].*$,\1#\2' | ||
27811 | ac_dC=' ' | ||
27812 | ac_dD=',;t' | ||
27813 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
27814 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
27815 | ac_uB='$,\1#\2define\3' | ||
27816 | ac_uC=' ' | ||
27817 | ac_uD=',;t' | ||
27818 | |||
27819 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
27820 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
27821 | case $ac_file in | ||
27822 | - | *:- | *:-:* ) # input from stdin | ||
27823 | cat >$tmp/stdin | ||
27824 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
27825 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
27826 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
27827 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
27828 | * ) ac_file_in=$ac_file.in ;; | ||
27829 | esac | ||
27830 | |||
27831 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
27832 | echo "$as_me: creating $ac_file" >&6;} | ||
27833 | |||
27834 | # First look for the input files in the build tree, otherwise in the | ||
27835 | # src tree. | ||
27836 | ac_file_inputs=`IFS=: | ||
27837 | for f in $ac_file_in; do | ||
27838 | case $f in | ||
27839 | -) echo $tmp/stdin ;; | ||
27840 | [\\/$]*) | ||
27841 | # Absolute (can't be DOS-style, as IFS=:) | ||
27842 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
27843 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
27844 | { (exit 1); exit 1; }; } | ||
27845 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
27846 | echo "$f";; | ||
27847 | *) # Relative | ||
27848 | if test -f "$f"; then | ||
27849 | # Build tree | ||
27850 | echo "$f" | ||
27851 | elif test -f "$srcdir/$f"; then | ||
27852 | # Source tree | ||
27853 | echo "$srcdir/$f" | ||
27854 | else | ||
27855 | # /dev/null tree | ||
27856 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
27857 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
27858 | { (exit 1); exit 1; }; } | ||
27859 | fi;; | ||
27860 | esac | ||
27861 | done` || { (exit 1); exit 1; } | ||
27862 | # Remove the trailing spaces. | ||
27863 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
27864 | |||
27865 | _ACEOF | ||
27866 | |||
27867 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
27868 | # `conftest.undefs', that substitutes the proper values into | ||
27869 | # config.h.in to produce config.h. The first handles `#define' | ||
27870 | # templates, and the second `#undef' templates. | ||
27871 | # And first: Protect against being on the right side of a sed subst in | ||
27872 | # config.status. Protect against being in an unquoted here document | ||
27873 | # in config.status. | ||
27874 | rm -f conftest.defines conftest.undefs | ||
27875 | # Using a here document instead of a string reduces the quoting nightmare. | ||
27876 | # Putting comments in sed scripts is not portable. | ||
27877 | # | ||
27878 | # `end' is used to avoid that the second main sed command (meant for | ||
27879 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
27880 | # See the Autoconf documentation for `clear'. | ||
27881 | cat >confdef2sed.sed <<\_ACEOF | ||
27882 | s/[\\&,]/\\&/g | ||
27883 | s,[\\$`],\\&,g | ||
27884 | t clear | ||
27885 | : clear | ||
27886 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
27887 | t end | ||
27888 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
27889 | : end | ||
27890 | _ACEOF | ||
27891 | # If some macros were called several times there might be several times | ||
27892 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
27893 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
27894 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
27895 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
27896 | rm -f confdef2sed.sed | ||
27897 | |||
27898 | # This sed command replaces #undef with comments. This is necessary, for | ||
27899 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
27900 | # on some systems where configure will not decide to define it. | ||
27901 | cat >>conftest.undefs <<\_ACEOF | ||
27902 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
27903 | _ACEOF | ||
27904 | |||
27905 | # Break up conftest.defines because some shells have a limit on the size | ||
27906 | # of here documents, and old seds have small limits too (100 cmds). | ||
27907 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
27908 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
27909 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
27910 | echo ' :' >>$CONFIG_STATUS | ||
27911 | rm -f conftest.tail | ||
27912 | while grep . conftest.defines >/dev/null | ||
27913 | do | ||
27914 | # Write a limited-size here document to $tmp/defines.sed. | ||
27915 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
27916 | # Speed up: don't consider the non `#define' lines. | ||
27917 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
27918 | # Work around the forget-to-reset-the-flag bug. | ||
27919 | echo 't clr' >>$CONFIG_STATUS | ||
27920 | echo ': clr' >>$CONFIG_STATUS | ||
27921 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
27922 | echo 'CEOF | ||
27923 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
27924 | rm -f $tmp/in | ||
27925 | mv $tmp/out $tmp/in | ||
27926 | ' >>$CONFIG_STATUS | ||
27927 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
27928 | rm -f conftest.defines | ||
27929 | mv conftest.tail conftest.defines | ||
27930 | done | ||
27931 | rm -f conftest.defines | ||
27932 | echo ' fi # grep' >>$CONFIG_STATUS | ||
27933 | echo >>$CONFIG_STATUS | ||
27934 | |||
27935 | # Break up conftest.undefs because some shells have a limit on the size | ||
27936 | # of here documents, and old seds have small limits too (100 cmds). | ||
27937 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
27938 | rm -f conftest.tail | ||
27939 | while grep . conftest.undefs >/dev/null | ||
27940 | do | ||
27941 | # Write a limited-size here document to $tmp/undefs.sed. | ||
27942 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
27943 | # Speed up: don't consider the non `#undef' | ||
27944 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
27945 | # Work around the forget-to-reset-the-flag bug. | ||
27946 | echo 't clr' >>$CONFIG_STATUS | ||
27947 | echo ': clr' >>$CONFIG_STATUS | ||
27948 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
27949 | echo 'CEOF | ||
27950 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
27951 | rm -f $tmp/in | ||
27952 | mv $tmp/out $tmp/in | ||
27953 | ' >>$CONFIG_STATUS | ||
27954 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
27955 | rm -f conftest.undefs | ||
27956 | mv conftest.tail conftest.undefs | ||
27957 | done | ||
27958 | rm -f conftest.undefs | ||
27959 | |||
27960 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
27961 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
27962 | # use $as_me), people would be surprised to read: | ||
27963 | # /* config.h. Generated by config.status. */ | ||
27964 | if test x"$ac_file" = x-; then | ||
27965 | echo "/* Generated by configure. */" >$tmp/config.h | ||
27966 | else | ||
27967 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
27968 | fi | ||
27969 | cat $tmp/in >>$tmp/config.h | ||
27970 | rm -f $tmp/in | ||
27971 | if test x"$ac_file" != x-; then | ||
27972 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
27973 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
27974 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
27975 | else | ||
27976 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
27977 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
27978 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
27979 | X"$ac_file" : 'X\(//\)$' \| \ | ||
27980 | X"$ac_file" : 'X\(/\)' \| \ | ||
27981 | . : '\(.\)' 2>/dev/null || | ||
27982 | echo X"$ac_file" | | ||
27983 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
27984 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
27985 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
27986 | /^X\(\/\).*/{ s//\1/; q; } | ||
27987 | s/.*/./; q'` | ||
27988 | { if $as_mkdir_p; then | ||
27989 | mkdir -p "$ac_dir" | ||
27990 | else | ||
27991 | as_dir="$ac_dir" | ||
27992 | as_dirs= | ||
27993 | while test ! -d "$as_dir"; do | ||
27994 | as_dirs="$as_dir $as_dirs" | ||
27995 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
27996 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
27997 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
27998 | X"$as_dir" : 'X\(//\)$' \| \ | ||
27999 | X"$as_dir" : 'X\(/\)' \| \ | ||
28000 | . : '\(.\)' 2>/dev/null || | ||
28001 | echo X"$as_dir" | | ||
28002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
28003 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
28004 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
28005 | /^X\(\/\).*/{ s//\1/; q; } | ||
28006 | s/.*/./; q'` | ||
28007 | done | ||
28008 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
28009 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
28010 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
28011 | { (exit 1); exit 1; }; }; } | ||
28012 | |||
28013 | rm -f $ac_file | ||
28014 | mv $tmp/config.h $ac_file | ||
28015 | fi | ||
28016 | else | ||
28017 | cat $tmp/config.h | ||
28018 | rm -f $tmp/config.h | ||
28019 | fi | ||
28020 | done | ||
28021 | _ACEOF | ||
28022 | |||
28023 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
28024 | |||
28025 | { (exit 0); exit 0; } | ||
28026 | _ACEOF | ||
28027 | chmod +x $CONFIG_STATUS | ||
28028 | ac_clean_files=$ac_clean_files_save | ||
28029 | |||
28030 | |||
28031 | # configure is writing to config.log, and then calls config.status. | ||
28032 | # config.status does its own redirection, appending to config.log. | ||
28033 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
28034 | # by configure, so config.status won't be able to write to it; its | ||
28035 | # output is simply discarded. So we exec the FD to /dev/null, | ||
28036 | # effectively closing config.log, so it can be properly (re)opened and | ||
28037 | # appended to by config.status. When coming back to configure, we | ||
28038 | # need to make the FD available again. | ||
28039 | if test "$no_create" != yes; then | ||
28040 | ac_cs_success=: | ||
28041 | ac_config_status_args= | ||
28042 | test "$silent" = yes && | ||
28043 | ac_config_status_args="$ac_config_status_args --quiet" | ||
28044 | exec 5>/dev/null | ||
28045 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
28046 | exec 5>>config.log | ||
28047 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
28048 | # would make configure fail if this is the last instruction. | ||
28049 | $ac_cs_success || { (exit 1); exit 1; } | ||
28050 | fi | ||
28051 | |||
28052 | |||
28053 | # Print summary of options | ||
28054 | |||
28055 | # Someone please show me a better way :) | ||
28056 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
28057 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
28058 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
28059 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
28060 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
28061 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
28062 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
28063 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
28064 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
28065 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
28066 | |||
28067 | echo "" | ||
28068 | echo "OpenSSH has been configured with the following options:" | ||
28069 | echo " User binaries: $B" | ||
28070 | echo " System binaries: $C" | ||
28071 | echo " Configuration files: $D" | ||
28072 | echo " Askpass program: $E" | ||
28073 | echo " Manual pages: $F" | ||
28074 | echo " PID file: $G" | ||
28075 | echo " Privilege separation chroot path: $H" | ||
28076 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28077 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
28078 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
28079 | else | ||
28080 | echo " sshd default user PATH: $I" | ||
28081 | if test ! -z "$external_path_file"; then | ||
28082 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
28083 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
28084 | fi | ||
28085 | fi | ||
28086 | if test ! -z "$superuser_path" ; then | ||
28087 | echo " sshd superuser user PATH: $J" | ||
28088 | fi | ||
28089 | echo " Manpage format: $MANTYPE" | ||
28090 | echo " PAM support: $PAM_MSG" | ||
28091 | echo " KerberosV support: $KRB5_MSG" | ||
28092 | echo " Smartcard support: $SCARD_MSG" | ||
28093 | echo " S/KEY support: $SKEY_MSG" | ||
28094 | echo " TCP Wrappers support: $TCPW_MSG" | ||
28095 | echo " MD5 password support: $MD5_MSG" | ||
28096 | echo " libedit support: $LIBEDIT_MSG" | ||
28097 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
28098 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
28099 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
28100 | echo " Random number source: $RAND_MSG" | ||
28101 | if test ! -z "$USE_RAND_HELPER" ; then | ||
28102 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
28103 | fi | ||
28104 | |||
28105 | echo "" | ||
28106 | |||
28107 | echo " Host: ${host}" | ||
28108 | echo " Compiler: ${CC}" | ||
28109 | echo " Compiler flags: ${CFLAGS}" | ||
28110 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
28111 | echo " Linker flags: ${LDFLAGS}" | ||
28112 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
28113 | |||
28114 | echo "" | ||
28115 | |||
28116 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
28117 | echo "SVR4 style packages are supported with \"make package\"" | ||
28118 | echo "" | ||
28119 | fi | ||
28120 | |||
28121 | if test "x$PAM_MSG" = "xyes" ; then | ||
28122 | echo "PAM is enabled. You may need to install a PAM control file " | ||
28123 | echo "for sshd, otherwise password authentication may fail. " | ||
28124 | echo "Example PAM control files can be found in the contrib/ " | ||
28125 | echo "subdirectory" | ||
28126 | echo "" | ||
28127 | fi | ||
28128 | |||
28129 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
28130 | echo "WARNING: you are using the builtin random number collection " | ||
28131 | echo "service. Please read WARNING.RNG and request that your OS " | ||
28132 | echo "vendor includes kernel-based random number collection in " | ||
28133 | echo "future versions of your OS." | ||
28134 | echo "" | ||
28135 | fi | ||
28136 | |||
28137 | if test ! -z "$NO_PEERCHECK" ; then | ||
28138 | echo "WARNING: the operating system that you are using does not " | ||
28139 | echo "appear to support either the getpeereid() API nor the " | ||
28140 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
28141 | echo "enforce security checks to prevent unauthorised connections to " | ||
28142 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
28143 | echo "user can connect to your agent. " | ||
28144 | echo "" | ||
28145 | fi | ||
28146 | |||
28147 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
28148 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
28149 | echo "See the Solaris section in README.platform for details." | ||
28150 | fi | ||