diff options
author | Colin Watson <cjwatson@debian.org> | 2005-05-30 21:44:32 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-05-30 21:44:32 +0000 |
commit | a55bd782aa819b7f5ae716de000f19f4f531850e (patch) | |
tree | 12638b19bc0ed9c8d48541d460693ab0fbb58e89 /configure | |
parent | fe9489f7e522f780f3fa5c2f28208124d193398c (diff) | |
parent | 5d05471f6657646d1d6500c7c43134462c407ee6 (diff) |
Import OpenSSH 4.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26338 |
1 files changed, 26338 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..ef3609b70 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,26338 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.59 for OpenSSH Portable. | ||
4 | # | ||
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
6 | # This configure script is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy, distribute and modify it. | ||
8 | ## --------------------- ## | ||
9 | ## M4sh Initialization. ## | ||
10 | ## --------------------- ## | ||
11 | |||
12 | # Be Bourne compatible | ||
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
14 | emulate sh | ||
15 | NULLCMD=: | ||
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
17 | # is contrary to our usage. Disable this feature. | ||
18 | alias -g '${1+"$@"}'='"$@"' | ||
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
20 | set -o posix | ||
21 | fi | ||
22 | DUALCASE=1; export DUALCASE # for MKS sh | ||
23 | |||
24 | # Support unset when possible. | ||
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
26 | as_unset=unset | ||
27 | else | ||
28 | as_unset=false | ||
29 | fi | ||
30 | |||
31 | |||
32 | # Work around bugs in pre-3.0 UWIN ksh. | ||
33 | $as_unset ENV MAIL MAILPATH | ||
34 | PS1='$ ' | ||
35 | PS2='> ' | ||
36 | PS4='+ ' | ||
37 | |||
38 | # NLS nuisances. | ||
39 | for as_var in \ | ||
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
42 | LC_TELEPHONE LC_TIME | ||
43 | do | ||
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
45 | eval $as_var=C; export $as_var | ||
46 | else | ||
47 | $as_unset $as_var | ||
48 | fi | ||
49 | done | ||
50 | |||
51 | # Required to use basename. | ||
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
53 | as_expr=expr | ||
54 | else | ||
55 | as_expr=false | ||
56 | fi | ||
57 | |||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
59 | as_basename=basename | ||
60 | else | ||
61 | as_basename=false | ||
62 | fi | ||
63 | |||
64 | |||
65 | # Name of the executable. | ||
66 | as_me=`$as_basename "$0" || | ||
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
68 | X"$0" : 'X\(//\)$' \| \ | ||
69 | X"$0" : 'X\(/\)$' \| \ | ||
70 | . : '\(.\)' 2>/dev/null || | ||
71 | echo X/"$0" | | ||
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
74 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
75 | s/.*/./; q'` | ||
76 | |||
77 | |||
78 | # PATH needs CR, and LINENO needs CR and PATH. | ||
79 | # Avoid depending upon Character Ranges. | ||
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
83 | as_cr_digits='0123456789' | ||
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
85 | |||
86 | # The user is always right. | ||
87 | if test "${PATH_SEPARATOR+set}" != set; then | ||
88 | echo "#! /bin/sh" >conf$$.sh | ||
89 | echo "exit 0" >>conf$$.sh | ||
90 | chmod +x conf$$.sh | ||
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
92 | PATH_SEPARATOR=';' | ||
93 | else | ||
94 | PATH_SEPARATOR=: | ||
95 | fi | ||
96 | rm -f conf$$.sh | ||
97 | fi | ||
98 | |||
99 | |||
100 | as_lineno_1=$LINENO | ||
101 | as_lineno_2=$LINENO | ||
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
105 | # Find who we are. Look in the path if we contain no path at all | ||
106 | # relative or not. | ||
107 | case $0 in | ||
108 | *[\\/]* ) as_myself=$0 ;; | ||
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
110 | for as_dir in $PATH | ||
111 | do | ||
112 | IFS=$as_save_IFS | ||
113 | test -z "$as_dir" && as_dir=. | ||
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
115 | done | ||
116 | |||
117 | ;; | ||
118 | esac | ||
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
120 | # in which case we are not to be found in the path. | ||
121 | if test "x$as_myself" = x; then | ||
122 | as_myself=$0 | ||
123 | fi | ||
124 | if test ! -f "$as_myself"; then | ||
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
126 | { (exit 1); exit 1; }; } | ||
127 | fi | ||
128 | case $CONFIG_SHELL in | ||
129 | '') | ||
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
132 | do | ||
133 | IFS=$as_save_IFS | ||
134 | test -z "$as_dir" && as_dir=. | ||
135 | for as_base in sh bash ksh sh5; do | ||
136 | case $as_dir in | ||
137 | /*) | ||
138 | if ("$as_dir/$as_base" -c ' | ||
139 | as_lineno_1=$LINENO | ||
140 | as_lineno_2=$LINENO | ||
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
146 | CONFIG_SHELL=$as_dir/$as_base | ||
147 | export CONFIG_SHELL | ||
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
149 | fi;; | ||
150 | esac | ||
151 | done | ||
152 | done | ||
153 | ;; | ||
154 | esac | ||
155 | |||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
157 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
158 | # line-number line before each line; the second 'sed' does the real | ||
159 | # work. The second script uses 'N' to pair each line-number line | ||
160 | # with the numbered line, and appends trailing '-' during | ||
161 | # substitution so that $LINENO is not a special case at line end. | ||
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
164 | sed '=' <$as_myself | | ||
165 | sed ' | ||
166 | N | ||
167 | s,$,-, | ||
168 | : loop | ||
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
170 | t loop | ||
171 | s,-$,, | ||
172 | s,^['$as_cr_digits']*\n,, | ||
173 | ' >$as_me.lineno && | ||
174 | chmod +x $as_me.lineno || | ||
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
176 | { (exit 1); exit 1; }; } | ||
177 | |||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
179 | # (the dirname of $[0] is not the place where we might find the | ||
180 | # original and so on. Autoconf is especially sensible to this). | ||
181 | . ./$as_me.lineno | ||
182 | # Exit status is that of the last command. | ||
183 | exit | ||
184 | } | ||
185 | |||
186 | |||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
188 | *c*,-n*) ECHO_N= ECHO_C=' | ||
189 | ' ECHO_T=' ' ;; | ||
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
192 | esac | ||
193 | |||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
195 | as_expr=expr | ||
196 | else | ||
197 | as_expr=false | ||
198 | fi | ||
199 | |||
200 | rm -f conf$$ conf$$.exe conf$$.file | ||
201 | echo >conf$$.file | ||
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
203 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
205 | if test -f conf$$.exe; then | ||
206 | # Don't use ln at all; we don't have any links | ||
207 | as_ln_s='cp -p' | ||
208 | else | ||
209 | as_ln_s='ln -s' | ||
210 | fi | ||
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
212 | as_ln_s=ln | ||
213 | else | ||
214 | as_ln_s='cp -p' | ||
215 | fi | ||
216 | rm -f conf$$ conf$$.exe conf$$.file | ||
217 | |||
218 | if mkdir -p . 2>/dev/null; then | ||
219 | as_mkdir_p=: | ||
220 | else | ||
221 | test -d ./-p && rmdir ./-p | ||
222 | as_mkdir_p=false | ||
223 | fi | ||
224 | |||
225 | as_executable_p="test -f" | ||
226 | |||
227 | # Sed expression to map a string onto a valid CPP name. | ||
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
229 | |||
230 | # Sed expression to map a string onto a valid variable name. | ||
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
232 | |||
233 | |||
234 | # IFS | ||
235 | # We need space, tab and new line, in precisely that order. | ||
236 | as_nl=' | ||
237 | ' | ||
238 | IFS=" $as_nl" | ||
239 | |||
240 | # CDPATH. | ||
241 | $as_unset CDPATH | ||
242 | |||
243 | |||
244 | # Name of the host. | ||
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
246 | # so uname gets run too. | ||
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
248 | |||
249 | exec 6>&1 | ||
250 | |||
251 | # | ||
252 | # Initializations. | ||
253 | # | ||
254 | ac_default_prefix=/usr/local | ||
255 | ac_config_libobj_dir=. | ||
256 | cross_compiling=no | ||
257 | subdirs= | ||
258 | MFLAGS= | ||
259 | MAKEFLAGS= | ||
260 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
261 | |||
262 | # Maximum number of lines to put in a shell here document. | ||
263 | # This variable seems obsolete. It should probably be removed, and | ||
264 | # only ac_max_sed_lines should be used. | ||
265 | : ${ac_max_here_lines=38} | ||
266 | |||
267 | # Identity of this package. | ||
268 | PACKAGE_NAME='OpenSSH' | ||
269 | PACKAGE_TARNAME='openssh' | ||
270 | PACKAGE_VERSION='Portable' | ||
271 | PACKAGE_STRING='OpenSSH Portable' | ||
272 | PACKAGE_BUGREPORT='' | ||
273 | |||
274 | ac_unique_file="ssh.c" | ||
275 | # Factoring default headers for most tests. | ||
276 | ac_includes_default="\ | ||
277 | #include <stdio.h> | ||
278 | #if HAVE_SYS_TYPES_H | ||
279 | # include <sys/types.h> | ||
280 | #endif | ||
281 | #if HAVE_SYS_STAT_H | ||
282 | # include <sys/stat.h> | ||
283 | #endif | ||
284 | #if STDC_HEADERS | ||
285 | # include <stdlib.h> | ||
286 | # include <stddef.h> | ||
287 | #else | ||
288 | # if HAVE_STDLIB_H | ||
289 | # include <stdlib.h> | ||
290 | # endif | ||
291 | #endif | ||
292 | #if HAVE_STRING_H | ||
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
294 | # include <memory.h> | ||
295 | # endif | ||
296 | # include <string.h> | ||
297 | #endif | ||
298 | #if HAVE_STRINGS_H | ||
299 | # include <strings.h> | ||
300 | #endif | ||
301 | #if HAVE_INTTYPES_H | ||
302 | # include <inttypes.h> | ||
303 | #else | ||
304 | # if HAVE_STDINT_H | ||
305 | # include <stdint.h> | ||
306 | # endif | ||
307 | #endif | ||
308 | #if HAVE_UNISTD_H | ||
309 | # include <unistd.h> | ||
310 | #endif" | ||
311 | |||
312 | 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 AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD EGREP 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' | ||
313 | ac_subst_files='' | ||
314 | |||
315 | # Initialize some variables set by options. | ||
316 | ac_init_help= | ||
317 | ac_init_version=false | ||
318 | # The variables have the same names as the options, with | ||
319 | # dashes changed to underlines. | ||
320 | cache_file=/dev/null | ||
321 | exec_prefix=NONE | ||
322 | no_create= | ||
323 | no_recursion= | ||
324 | prefix=NONE | ||
325 | program_prefix=NONE | ||
326 | program_suffix=NONE | ||
327 | program_transform_name=s,x,x, | ||
328 | silent= | ||
329 | site= | ||
330 | srcdir= | ||
331 | verbose= | ||
332 | x_includes=NONE | ||
333 | x_libraries=NONE | ||
334 | |||
335 | # Installation directory options. | ||
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
337 | # and all the variables that are supposed to be based on exec_prefix | ||
338 | # by default will actually change. | ||
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
340 | bindir='${exec_prefix}/bin' | ||
341 | sbindir='${exec_prefix}/sbin' | ||
342 | libexecdir='${exec_prefix}/libexec' | ||
343 | datadir='${prefix}/share' | ||
344 | sysconfdir='${prefix}/etc' | ||
345 | sharedstatedir='${prefix}/com' | ||
346 | localstatedir='${prefix}/var' | ||
347 | libdir='${exec_prefix}/lib' | ||
348 | includedir='${prefix}/include' | ||
349 | oldincludedir='/usr/include' | ||
350 | infodir='${prefix}/info' | ||
351 | mandir='${prefix}/man' | ||
352 | |||
353 | ac_prev= | ||
354 | for ac_option | ||
355 | do | ||
356 | # If the previous option needs an argument, assign it. | ||
357 | if test -n "$ac_prev"; then | ||
358 | eval "$ac_prev=\$ac_option" | ||
359 | ac_prev= | ||
360 | continue | ||
361 | fi | ||
362 | |||
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
364 | |||
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
366 | |||
367 | case $ac_option in | ||
368 | |||
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
370 | ac_prev=bindir ;; | ||
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
372 | bindir=$ac_optarg ;; | ||
373 | |||
374 | -build | --build | --buil | --bui | --bu) | ||
375 | ac_prev=build_alias ;; | ||
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
377 | build_alias=$ac_optarg ;; | ||
378 | |||
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
381 | ac_prev=cache_file ;; | ||
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
384 | cache_file=$ac_optarg ;; | ||
385 | |||
386 | --config-cache | -C) | ||
387 | cache_file=config.cache ;; | ||
388 | |||
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
390 | ac_prev=datadir ;; | ||
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
392 | | --da=*) | ||
393 | datadir=$ac_optarg ;; | ||
394 | |||
395 | -disable-* | --disable-*) | ||
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
397 | # Reject names that are not valid shell variable names. | ||
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
400 | { (exit 1); exit 1; }; } | ||
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
402 | eval "enable_$ac_feature=no" ;; | ||
403 | |||
404 | -enable-* | --enable-*) | ||
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
406 | # Reject names that are not valid shell variable names. | ||
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
409 | { (exit 1); exit 1; }; } | ||
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
411 | case $ac_option in | ||
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
413 | *) ac_optarg=yes ;; | ||
414 | esac | ||
415 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
416 | |||
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
419 | | --exec | --exe | --ex) | ||
420 | ac_prev=exec_prefix ;; | ||
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
423 | | --exec=* | --exe=* | --ex=*) | ||
424 | exec_prefix=$ac_optarg ;; | ||
425 | |||
426 | -gas | --gas | --ga | --g) | ||
427 | # Obsolete; use --with-gas. | ||
428 | with_gas=yes ;; | ||
429 | |||
430 | -help | --help | --hel | --he | -h) | ||
431 | ac_init_help=long ;; | ||
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
433 | ac_init_help=recursive ;; | ||
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
435 | ac_init_help=short ;; | ||
436 | |||
437 | -host | --host | --hos | --ho) | ||
438 | ac_prev=host_alias ;; | ||
439 | -host=* | --host=* | --hos=* | --ho=*) | ||
440 | host_alias=$ac_optarg ;; | ||
441 | |||
442 | -includedir | --includedir | --includedi | --included | --include \ | ||
443 | | --includ | --inclu | --incl | --inc) | ||
444 | ac_prev=includedir ;; | ||
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
447 | includedir=$ac_optarg ;; | ||
448 | |||
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
450 | ac_prev=infodir ;; | ||
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
452 | infodir=$ac_optarg ;; | ||
453 | |||
454 | -libdir | --libdir | --libdi | --libd) | ||
455 | ac_prev=libdir ;; | ||
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
457 | libdir=$ac_optarg ;; | ||
458 | |||
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
460 | | --libexe | --libex | --libe) | ||
461 | ac_prev=libexecdir ;; | ||
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
463 | | --libexe=* | --libex=* | --libe=*) | ||
464 | libexecdir=$ac_optarg ;; | ||
465 | |||
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
467 | | --localstate | --localstat | --localsta | --localst \ | ||
468 | | --locals | --local | --loca | --loc | --lo) | ||
469 | ac_prev=localstatedir ;; | ||
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
473 | localstatedir=$ac_optarg ;; | ||
474 | |||
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
476 | ac_prev=mandir ;; | ||
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
478 | mandir=$ac_optarg ;; | ||
479 | |||
480 | -nfp | --nfp | --nf) | ||
481 | # Obsolete; use --without-fp. | ||
482 | with_fp=no ;; | ||
483 | |||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
485 | | --no-cr | --no-c | -n) | ||
486 | no_create=yes ;; | ||
487 | |||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
490 | no_recursion=yes ;; | ||
491 | |||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
494 | | --oldin | --oldi | --old | --ol | --o) | ||
495 | ac_prev=oldincludedir ;; | ||
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
499 | oldincludedir=$ac_optarg ;; | ||
500 | |||
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
502 | ac_prev=prefix ;; | ||
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
504 | prefix=$ac_optarg ;; | ||
505 | |||
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
507 | | --program-pre | --program-pr | --program-p) | ||
508 | ac_prev=program_prefix ;; | ||
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
511 | program_prefix=$ac_optarg ;; | ||
512 | |||
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
514 | | --program-suf | --program-su | --program-s) | ||
515 | ac_prev=program_suffix ;; | ||
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
518 | program_suffix=$ac_optarg ;; | ||
519 | |||
520 | -program-transform-name | --program-transform-name \ | ||
521 | | --program-transform-nam | --program-transform-na \ | ||
522 | | --program-transform-n | --program-transform- \ | ||
523 | | --program-transform | --program-transfor \ | ||
524 | | --program-transfo | --program-transf \ | ||
525 | | --program-trans | --program-tran \ | ||
526 | | --progr-tra | --program-tr | --program-t) | ||
527 | ac_prev=program_transform_name ;; | ||
528 | -program-transform-name=* | --program-transform-name=* \ | ||
529 | | --program-transform-nam=* | --program-transform-na=* \ | ||
530 | | --program-transform-n=* | --program-transform-=* \ | ||
531 | | --program-transform=* | --program-transfor=* \ | ||
532 | | --program-transfo=* | --program-transf=* \ | ||
533 | | --program-trans=* | --program-tran=* \ | ||
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
535 | program_transform_name=$ac_optarg ;; | ||
536 | |||
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
538 | | -silent | --silent | --silen | --sile | --sil) | ||
539 | silent=yes ;; | ||
540 | |||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
542 | ac_prev=sbindir ;; | ||
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
544 | | --sbi=* | --sb=*) | ||
545 | sbindir=$ac_optarg ;; | ||
546 | |||
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
549 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
550 | | --sha | --sh) | ||
551 | ac_prev=sharedstatedir ;; | ||
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
555 | | --sha=* | --sh=*) | ||
556 | sharedstatedir=$ac_optarg ;; | ||
557 | |||
558 | -site | --site | --sit) | ||
559 | ac_prev=site ;; | ||
560 | -site=* | --site=* | --sit=*) | ||
561 | site=$ac_optarg ;; | ||
562 | |||
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
564 | ac_prev=srcdir ;; | ||
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
566 | srcdir=$ac_optarg ;; | ||
567 | |||
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
569 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
570 | ac_prev=sysconfdir ;; | ||
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
573 | sysconfdir=$ac_optarg ;; | ||
574 | |||
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
576 | ac_prev=target_alias ;; | ||
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
578 | target_alias=$ac_optarg ;; | ||
579 | |||
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
581 | verbose=yes ;; | ||
582 | |||
583 | -version | --version | --versio | --versi | --vers | -V) | ||
584 | ac_init_version=: ;; | ||
585 | |||
586 | -with-* | --with-*) | ||
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
588 | # Reject names that are not valid shell variable names. | ||
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
591 | { (exit 1); exit 1; }; } | ||
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
593 | case $ac_option in | ||
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
595 | *) ac_optarg=yes ;; | ||
596 | esac | ||
597 | eval "with_$ac_package='$ac_optarg'" ;; | ||
598 | |||
599 | -without-* | --without-*) | ||
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
601 | # Reject names that are not valid shell variable names. | ||
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
604 | { (exit 1); exit 1; }; } | ||
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
606 | eval "with_$ac_package=no" ;; | ||
607 | |||
608 | --x) | ||
609 | # Obsolete; use --with-x. | ||
610 | with_x=yes ;; | ||
611 | |||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
613 | | --x-incl | --x-inc | --x-in | --x-i) | ||
614 | ac_prev=x_includes ;; | ||
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
617 | x_includes=$ac_optarg ;; | ||
618 | |||
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
621 | ac_prev=x_libraries ;; | ||
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
624 | x_libraries=$ac_optarg ;; | ||
625 | |||
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
627 | Try \`$0 --help' for more information." >&2 | ||
628 | { (exit 1); exit 1; }; } | ||
629 | ;; | ||
630 | |||
631 | *=*) | ||
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
633 | # Reject names that are not valid shell variable names. | ||
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
636 | { (exit 1); exit 1; }; } | ||
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
638 | eval "$ac_envvar='$ac_optarg'" | ||
639 | export $ac_envvar ;; | ||
640 | |||
641 | *) | ||
642 | # FIXME: should be removed in autoconf 3.0. | ||
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
647 | ;; | ||
648 | |||
649 | esac | ||
650 | done | ||
651 | |||
652 | if test -n "$ac_prev"; then | ||
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
655 | { (exit 1); exit 1; }; } | ||
656 | fi | ||
657 | |||
658 | # Be sure to have absolute paths. | ||
659 | for ac_var in exec_prefix prefix | ||
660 | do | ||
661 | eval ac_val=$`echo $ac_var` | ||
662 | case $ac_val in | ||
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
665 | { (exit 1); exit 1; }; };; | ||
666 | esac | ||
667 | done | ||
668 | |||
669 | # Be sure to have absolute paths. | ||
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
671 | localstatedir libdir includedir oldincludedir infodir mandir | ||
672 | do | ||
673 | eval ac_val=$`echo $ac_var` | ||
674 | case $ac_val in | ||
675 | [\\/$]* | ?:[\\/]* ) ;; | ||
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
677 | { (exit 1); exit 1; }; };; | ||
678 | esac | ||
679 | done | ||
680 | |||
681 | # There might be people who depend on the old broken behavior: `$host' | ||
682 | # used to hold the argument of --host etc. | ||
683 | # FIXME: To remove some day. | ||
684 | build=$build_alias | ||
685 | host=$host_alias | ||
686 | target=$target_alias | ||
687 | |||
688 | # FIXME: To remove some day. | ||
689 | if test "x$host_alias" != x; then | ||
690 | if test "x$build_alias" = x; then | ||
691 | cross_compiling=maybe | ||
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
694 | elif test "x$build_alias" != "x$host_alias"; then | ||
695 | cross_compiling=yes | ||
696 | fi | ||
697 | fi | ||
698 | |||
699 | ac_tool_prefix= | ||
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
701 | |||
702 | test "$silent" = yes && exec 6>/dev/null | ||
703 | |||
704 | |||
705 | # Find the source files, if location was not specified. | ||
706 | if test -z "$srcdir"; then | ||
707 | ac_srcdir_defaulted=yes | ||
708 | # Try the directory containing this script, then its parent. | ||
709 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
711 | X"$0" : 'X\(//\)[^/]' \| \ | ||
712 | X"$0" : 'X\(//\)$' \| \ | ||
713 | X"$0" : 'X\(/\)' \| \ | ||
714 | . : '\(.\)' 2>/dev/null || | ||
715 | echo X"$0" | | ||
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
718 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
719 | /^X\(\/\).*/{ s//\1/; q; } | ||
720 | s/.*/./; q'` | ||
721 | srcdir=$ac_confdir | ||
722 | if test ! -r $srcdir/$ac_unique_file; then | ||
723 | srcdir=.. | ||
724 | fi | ||
725 | else | ||
726 | ac_srcdir_defaulted=no | ||
727 | fi | ||
728 | if test ! -r $srcdir/$ac_unique_file; then | ||
729 | if test "$ac_srcdir_defaulted" = yes; then | ||
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
731 | { (exit 1); exit 1; }; } | ||
732 | else | ||
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
734 | { (exit 1); exit 1; }; } | ||
735 | fi | ||
736 | fi | ||
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
739 | { (exit 1); exit 1; }; } | ||
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
741 | ac_env_build_alias_set=${build_alias+set} | ||
742 | ac_env_build_alias_value=$build_alias | ||
743 | ac_cv_env_build_alias_set=${build_alias+set} | ||
744 | ac_cv_env_build_alias_value=$build_alias | ||
745 | ac_env_host_alias_set=${host_alias+set} | ||
746 | ac_env_host_alias_value=$host_alias | ||
747 | ac_cv_env_host_alias_set=${host_alias+set} | ||
748 | ac_cv_env_host_alias_value=$host_alias | ||
749 | ac_env_target_alias_set=${target_alias+set} | ||
750 | ac_env_target_alias_value=$target_alias | ||
751 | ac_cv_env_target_alias_set=${target_alias+set} | ||
752 | ac_cv_env_target_alias_value=$target_alias | ||
753 | ac_env_CC_set=${CC+set} | ||
754 | ac_env_CC_value=$CC | ||
755 | ac_cv_env_CC_set=${CC+set} | ||
756 | ac_cv_env_CC_value=$CC | ||
757 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
758 | ac_env_CFLAGS_value=$CFLAGS | ||
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
760 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
762 | ac_env_LDFLAGS_value=$LDFLAGS | ||
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
769 | ac_env_CPP_set=${CPP+set} | ||
770 | ac_env_CPP_value=$CPP | ||
771 | ac_cv_env_CPP_set=${CPP+set} | ||
772 | ac_cv_env_CPP_value=$CPP | ||
773 | |||
774 | # | ||
775 | # Report the --help message. | ||
776 | # | ||
777 | if test "$ac_init_help" = "long"; then | ||
778 | # Omit some internal or obsolete options to make the list less imposing. | ||
779 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
780 | cat <<_ACEOF | ||
781 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
782 | |||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
784 | |||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
787 | |||
788 | Defaults for the options are specified in brackets. | ||
789 | |||
790 | Configuration: | ||
791 | -h, --help display this help and exit | ||
792 | --help=short display options specific to this package | ||
793 | --help=recursive display the short help of all the included packages | ||
794 | -V, --version display version information and exit | ||
795 | -q, --quiet, --silent do not print \`checking...' messages | ||
796 | --cache-file=FILE cache test results in FILE [disabled] | ||
797 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
798 | -n, --no-create do not create output files | ||
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
800 | |||
801 | _ACEOF | ||
802 | |||
803 | cat <<_ACEOF | ||
804 | Installation directories: | ||
805 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
806 | [$ac_default_prefix] | ||
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
808 | [PREFIX] | ||
809 | |||
810 | By default, \`make install' will install all the files in | ||
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
813 | for instance \`--prefix=\$HOME'. | ||
814 | |||
815 | For better control, use the options below. | ||
816 | |||
817 | Fine tuning of the installation directories: | ||
818 | --bindir=DIR user executables [EPREFIX/bin] | ||
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
825 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
826 | --includedir=DIR C header files [PREFIX/include] | ||
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
828 | --infodir=DIR info documentation [PREFIX/info] | ||
829 | --mandir=DIR man documentation [PREFIX/man] | ||
830 | _ACEOF | ||
831 | |||
832 | cat <<\_ACEOF | ||
833 | |||
834 | System types: | ||
835 | --build=BUILD configure for building on BUILD [guessed] | ||
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
837 | _ACEOF | ||
838 | fi | ||
839 | |||
840 | if test -n "$ac_init_help"; then | ||
841 | case $ac_init_help in | ||
842 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
843 | esac | ||
844 | cat <<\_ACEOF | ||
845 | |||
846 | Optional Features: | ||
847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
849 | --disable-largefile omit support for large files | ||
850 | --disable-strip Disable calling strip(1) on install | ||
851 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
852 | --disable-lastlog disable use of lastlog even if detected no | ||
853 | --disable-utmp disable use of utmp even if detected no | ||
854 | --disable-utmpx disable use of utmpx even if detected no | ||
855 | --disable-wtmp disable use of wtmp even if detected no | ||
856 | --disable-wtmpx disable use of wtmpx even if detected no | ||
857 | --disable-libutil disable use of libutil (login() etc.) no | ||
858 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
859 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
860 | |||
861 | Optional Packages: | ||
862 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
863 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
864 | --without-rpath Disable auto-added -R linker paths | ||
865 | --with-osfsia Enable Digital Unix SIA | ||
866 | --with-cflags Specify additional flags to pass to compiler | ||
867 | --with-cppflags Specify additional flags to pass to preprocessor | ||
868 | --with-ldflags Specify additional flags to pass to linker | ||
869 | --with-libs Specify additional libraries to link with | ||
870 | --with-zlib=PATH Use zlib in PATH | ||
871 | --without-zlib-version-check Disable zlib version check | ||
872 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
873 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
874 | --with-libedit[=PATH] Enable libedit support for sftp | ||
875 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
876 | --with-pam Enable PAM support | ||
877 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
878 | --with-rand-helper Use subprocess to gather strong randomness | ||
879 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
880 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
881 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
882 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
883 | --with-sectok Enable smartcard support using libsectok | ||
884 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
885 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
886 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
887 | --with-xauth=PATH Specify path to xauth program | ||
888 | --with-mantype=man|cat|doc Set man page type | ||
889 | --with-md5-passwords Enable use of MD5 passwords | ||
890 | --without-shadow Disable shadow password support | ||
891 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
892 | --with-default-path= Specify default \$PATH environment for server | ||
893 | --with-superuser-path= Specify different path for super-user | ||
894 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
895 | --with-bsd-auth Enable BSD auth support | ||
896 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
897 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
898 | |||
899 | Some influential environment variables: | ||
900 | CC C compiler command | ||
901 | CFLAGS C compiler flags | ||
902 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
903 | nonstandard directory <lib dir> | ||
904 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
905 | headers in a nonstandard directory <include dir> | ||
906 | CPP C preprocessor | ||
907 | |||
908 | Use these variables to override the choices made by `configure' or to help | ||
909 | it to find libraries and programs with nonstandard names/locations. | ||
910 | |||
911 | _ACEOF | ||
912 | fi | ||
913 | |||
914 | if test "$ac_init_help" = "recursive"; then | ||
915 | # If there are subdirs, report their specific --help. | ||
916 | ac_popdir=`pwd` | ||
917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
918 | test -d $ac_dir || continue | ||
919 | ac_builddir=. | ||
920 | |||
921 | if test "$ac_dir" != .; then | ||
922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
923 | # A "../" for each directory in $ac_dir_suffix. | ||
924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
925 | else | ||
926 | ac_dir_suffix= ac_top_builddir= | ||
927 | fi | ||
928 | |||
929 | case $srcdir in | ||
930 | .) # No --srcdir option. We are building in place. | ||
931 | ac_srcdir=. | ||
932 | if test -z "$ac_top_builddir"; then | ||
933 | ac_top_srcdir=. | ||
934 | else | ||
935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
936 | fi ;; | ||
937 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
938 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
939 | ac_top_srcdir=$srcdir ;; | ||
940 | *) # Relative path. | ||
941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
943 | esac | ||
944 | |||
945 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
946 | # the directories may not exist. | ||
947 | case `pwd` in | ||
948 | .) ac_abs_builddir="$ac_dir";; | ||
949 | *) | ||
950 | case "$ac_dir" in | ||
951 | .) ac_abs_builddir=`pwd`;; | ||
952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
954 | esac;; | ||
955 | esac | ||
956 | case $ac_abs_builddir in | ||
957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
958 | *) | ||
959 | case ${ac_top_builddir}. in | ||
960 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
963 | esac;; | ||
964 | esac | ||
965 | case $ac_abs_builddir in | ||
966 | .) ac_abs_srcdir=$ac_srcdir;; | ||
967 | *) | ||
968 | case $ac_srcdir in | ||
969 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
972 | esac;; | ||
973 | esac | ||
974 | case $ac_abs_builddir in | ||
975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
976 | *) | ||
977 | case $ac_top_srcdir in | ||
978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
981 | esac;; | ||
982 | esac | ||
983 | |||
984 | cd $ac_dir | ||
985 | # Check for guested configure; otherwise get Cygnus style configure. | ||
986 | if test -f $ac_srcdir/configure.gnu; then | ||
987 | echo | ||
988 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
989 | elif test -f $ac_srcdir/configure; then | ||
990 | echo | ||
991 | $SHELL $ac_srcdir/configure --help=recursive | ||
992 | elif test -f $ac_srcdir/configure.ac || | ||
993 | test -f $ac_srcdir/configure.in; then | ||
994 | echo | ||
995 | $ac_configure --help | ||
996 | else | ||
997 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
998 | fi | ||
999 | cd $ac_popdir | ||
1000 | done | ||
1001 | fi | ||
1002 | |||
1003 | test -n "$ac_init_help" && exit 0 | ||
1004 | if $ac_init_version; then | ||
1005 | cat <<\_ACEOF | ||
1006 | OpenSSH configure Portable | ||
1007 | generated by GNU Autoconf 2.59 | ||
1008 | |||
1009 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1010 | This configure script is free software; the Free Software Foundation | ||
1011 | gives unlimited permission to copy, distribute and modify it. | ||
1012 | _ACEOF | ||
1013 | exit 0 | ||
1014 | fi | ||
1015 | exec 5>config.log | ||
1016 | cat >&5 <<_ACEOF | ||
1017 | This file contains any messages produced by compilers while | ||
1018 | running configure, to aid debugging if configure makes a mistake. | ||
1019 | |||
1020 | It was created by OpenSSH $as_me Portable, which was | ||
1021 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1022 | |||
1023 | $ $0 $@ | ||
1024 | |||
1025 | _ACEOF | ||
1026 | { | ||
1027 | cat <<_ASUNAME | ||
1028 | ## --------- ## | ||
1029 | ## Platform. ## | ||
1030 | ## --------- ## | ||
1031 | |||
1032 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1033 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1034 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1035 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1036 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1037 | |||
1038 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1039 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1040 | |||
1041 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1042 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1043 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1044 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1045 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1046 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1047 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1048 | |||
1049 | _ASUNAME | ||
1050 | |||
1051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1052 | for as_dir in $PATH | ||
1053 | do | ||
1054 | IFS=$as_save_IFS | ||
1055 | test -z "$as_dir" && as_dir=. | ||
1056 | echo "PATH: $as_dir" | ||
1057 | done | ||
1058 | |||
1059 | } >&5 | ||
1060 | |||
1061 | cat >&5 <<_ACEOF | ||
1062 | |||
1063 | |||
1064 | ## ----------- ## | ||
1065 | ## Core tests. ## | ||
1066 | ## ----------- ## | ||
1067 | |||
1068 | _ACEOF | ||
1069 | |||
1070 | |||
1071 | # Keep a trace of the command line. | ||
1072 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1073 | # Strip out --silent because we don't want to record it for future runs. | ||
1074 | # Also quote any args containing shell meta-characters. | ||
1075 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1076 | ac_configure_args= | ||
1077 | ac_configure_args0= | ||
1078 | ac_configure_args1= | ||
1079 | ac_sep= | ||
1080 | ac_must_keep_next=false | ||
1081 | for ac_pass in 1 2 | ||
1082 | do | ||
1083 | for ac_arg | ||
1084 | do | ||
1085 | case $ac_arg in | ||
1086 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1088 | | -silent | --silent | --silen | --sile | --sil) | ||
1089 | continue ;; | ||
1090 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1091 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1092 | esac | ||
1093 | case $ac_pass in | ||
1094 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1095 | 2) | ||
1096 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1097 | if test $ac_must_keep_next = true; then | ||
1098 | ac_must_keep_next=false # Got value, back to normal. | ||
1099 | else | ||
1100 | case $ac_arg in | ||
1101 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1102 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1103 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1104 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1105 | case "$ac_configure_args0 " in | ||
1106 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1107 | esac | ||
1108 | ;; | ||
1109 | -* ) ac_must_keep_next=true ;; | ||
1110 | esac | ||
1111 | fi | ||
1112 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1113 | # Get rid of the leading space. | ||
1114 | ac_sep=" " | ||
1115 | ;; | ||
1116 | esac | ||
1117 | done | ||
1118 | done | ||
1119 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1120 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1121 | |||
1122 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1123 | # config.log. We remove comments because anyway the quotes in there | ||
1124 | # would cause problems or look ugly. | ||
1125 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1126 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1127 | trap 'exit_status=$? | ||
1128 | # Save into config.log some information that might help in debugging. | ||
1129 | { | ||
1130 | echo | ||
1131 | |||
1132 | cat <<\_ASBOX | ||
1133 | ## ---------------- ## | ||
1134 | ## Cache variables. ## | ||
1135 | ## ---------------- ## | ||
1136 | _ASBOX | ||
1137 | echo | ||
1138 | # The following way of writing the cache mishandles newlines in values, | ||
1139 | { | ||
1140 | (set) 2>&1 | | ||
1141 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1142 | *ac_space=\ *) | ||
1143 | sed -n \ | ||
1144 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1145 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1146 | ;; | ||
1147 | *) | ||
1148 | sed -n \ | ||
1149 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1150 | ;; | ||
1151 | esac; | ||
1152 | } | ||
1153 | echo | ||
1154 | |||
1155 | cat <<\_ASBOX | ||
1156 | ## ----------------- ## | ||
1157 | ## Output variables. ## | ||
1158 | ## ----------------- ## | ||
1159 | _ASBOX | ||
1160 | echo | ||
1161 | for ac_var in $ac_subst_vars | ||
1162 | do | ||
1163 | eval ac_val=$`echo $ac_var` | ||
1164 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1165 | done | sort | ||
1166 | echo | ||
1167 | |||
1168 | if test -n "$ac_subst_files"; then | ||
1169 | cat <<\_ASBOX | ||
1170 | ## ------------- ## | ||
1171 | ## Output files. ## | ||
1172 | ## ------------- ## | ||
1173 | _ASBOX | ||
1174 | echo | ||
1175 | for ac_var in $ac_subst_files | ||
1176 | do | ||
1177 | eval ac_val=$`echo $ac_var` | ||
1178 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1179 | done | sort | ||
1180 | echo | ||
1181 | fi | ||
1182 | |||
1183 | if test -s confdefs.h; then | ||
1184 | cat <<\_ASBOX | ||
1185 | ## ----------- ## | ||
1186 | ## confdefs.h. ## | ||
1187 | ## ----------- ## | ||
1188 | _ASBOX | ||
1189 | echo | ||
1190 | sed "/^$/d" confdefs.h | sort | ||
1191 | echo | ||
1192 | fi | ||
1193 | test "$ac_signal" != 0 && | ||
1194 | echo "$as_me: caught signal $ac_signal" | ||
1195 | echo "$as_me: exit $exit_status" | ||
1196 | } >&5 | ||
1197 | rm -f core *.core && | ||
1198 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1199 | exit $exit_status | ||
1200 | ' 0 | ||
1201 | for ac_signal in 1 2 13 15; do | ||
1202 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1203 | done | ||
1204 | ac_signal=0 | ||
1205 | |||
1206 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1207 | rm -rf conftest* confdefs.h | ||
1208 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1209 | echo >confdefs.h | ||
1210 | |||
1211 | # Predefined preprocessor variables. | ||
1212 | |||
1213 | cat >>confdefs.h <<_ACEOF | ||
1214 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1215 | _ACEOF | ||
1216 | |||
1217 | |||
1218 | cat >>confdefs.h <<_ACEOF | ||
1219 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1220 | _ACEOF | ||
1221 | |||
1222 | |||
1223 | cat >>confdefs.h <<_ACEOF | ||
1224 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1225 | _ACEOF | ||
1226 | |||
1227 | |||
1228 | cat >>confdefs.h <<_ACEOF | ||
1229 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1230 | _ACEOF | ||
1231 | |||
1232 | |||
1233 | cat >>confdefs.h <<_ACEOF | ||
1234 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1235 | _ACEOF | ||
1236 | |||
1237 | |||
1238 | # Let the site file select an alternate cache file if it wants to. | ||
1239 | # Prefer explicitly selected file to automatically selected ones. | ||
1240 | if test -z "$CONFIG_SITE"; then | ||
1241 | if test "x$prefix" != xNONE; then | ||
1242 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1243 | else | ||
1244 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1245 | fi | ||
1246 | fi | ||
1247 | for ac_site_file in $CONFIG_SITE; do | ||
1248 | if test -r "$ac_site_file"; then | ||
1249 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1250 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1251 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1252 | . "$ac_site_file" | ||
1253 | fi | ||
1254 | done | ||
1255 | |||
1256 | if test -r "$cache_file"; then | ||
1257 | # Some versions of bash will fail to source /dev/null (special | ||
1258 | # files actually), so we avoid doing that. | ||
1259 | if test -f "$cache_file"; then | ||
1260 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1261 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1262 | case $cache_file in | ||
1263 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1264 | *) . ./$cache_file;; | ||
1265 | esac | ||
1266 | fi | ||
1267 | else | ||
1268 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1269 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1270 | >$cache_file | ||
1271 | fi | ||
1272 | |||
1273 | # Check that the precious variables saved in the cache have kept the same | ||
1274 | # value. | ||
1275 | ac_cache_corrupted=false | ||
1276 | for ac_var in `(set) 2>&1 | | ||
1277 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1278 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1279 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1280 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1281 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1282 | case $ac_old_set,$ac_new_set in | ||
1283 | set,) | ||
1284 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1285 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1286 | ac_cache_corrupted=: ;; | ||
1287 | ,set) | ||
1288 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1289 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1290 | ac_cache_corrupted=: ;; | ||
1291 | ,);; | ||
1292 | *) | ||
1293 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1294 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1295 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1296 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1297 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1298 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1299 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1300 | ac_cache_corrupted=: | ||
1301 | fi;; | ||
1302 | esac | ||
1303 | # Pass precious variables to config.status. | ||
1304 | if test "$ac_new_set" = set; then | ||
1305 | case $ac_new_val in | ||
1306 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1307 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1308 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1309 | esac | ||
1310 | case " $ac_configure_args " in | ||
1311 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1312 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1313 | esac | ||
1314 | fi | ||
1315 | done | ||
1316 | if $ac_cache_corrupted; then | ||
1317 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1318 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1319 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1320 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1321 | { (exit 1); exit 1; }; } | ||
1322 | fi | ||
1323 | |||
1324 | ac_ext=c | ||
1325 | ac_cpp='$CPP $CPPFLAGS' | ||
1326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1329 | |||
1330 | |||
1331 | |||
1332 | |||
1333 | |||
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 | ac_config_headers="$ac_config_headers config.h" | ||
1359 | |||
1360 | ac_ext=c | ||
1361 | ac_cpp='$CPP $CPPFLAGS' | ||
1362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1365 | if test -n "$ac_tool_prefix"; then | ||
1366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1367 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1370 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1372 | else | ||
1373 | if test -n "$CC"; then | ||
1374 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1375 | else | ||
1376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1377 | for as_dir in $PATH | ||
1378 | do | ||
1379 | IFS=$as_save_IFS | ||
1380 | test -z "$as_dir" && as_dir=. | ||
1381 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1383 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1385 | break 2 | ||
1386 | fi | ||
1387 | done | ||
1388 | done | ||
1389 | |||
1390 | fi | ||
1391 | fi | ||
1392 | CC=$ac_cv_prog_CC | ||
1393 | if test -n "$CC"; then | ||
1394 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1395 | echo "${ECHO_T}$CC" >&6 | ||
1396 | else | ||
1397 | echo "$as_me:$LINENO: result: no" >&5 | ||
1398 | echo "${ECHO_T}no" >&6 | ||
1399 | fi | ||
1400 | |||
1401 | fi | ||
1402 | if test -z "$ac_cv_prog_CC"; then | ||
1403 | ac_ct_CC=$CC | ||
1404 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1405 | set dummy gcc; ac_word=$2 | ||
1406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1408 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1410 | else | ||
1411 | if test -n "$ac_ct_CC"; then | ||
1412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1413 | else | ||
1414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1415 | for as_dir in $PATH | ||
1416 | do | ||
1417 | IFS=$as_save_IFS | ||
1418 | test -z "$as_dir" && as_dir=. | ||
1419 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1421 | ac_cv_prog_ac_ct_CC="gcc" | ||
1422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1423 | break 2 | ||
1424 | fi | ||
1425 | done | ||
1426 | done | ||
1427 | |||
1428 | fi | ||
1429 | fi | ||
1430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1431 | if test -n "$ac_ct_CC"; then | ||
1432 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1433 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1434 | else | ||
1435 | echo "$as_me:$LINENO: result: no" >&5 | ||
1436 | echo "${ECHO_T}no" >&6 | ||
1437 | fi | ||
1438 | |||
1439 | CC=$ac_ct_CC | ||
1440 | else | ||
1441 | CC="$ac_cv_prog_CC" | ||
1442 | fi | ||
1443 | |||
1444 | if test -z "$CC"; then | ||
1445 | if test -n "$ac_tool_prefix"; then | ||
1446 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1447 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1450 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1452 | else | ||
1453 | if test -n "$CC"; then | ||
1454 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1455 | else | ||
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1457 | for as_dir in $PATH | ||
1458 | do | ||
1459 | IFS=$as_save_IFS | ||
1460 | test -z "$as_dir" && as_dir=. | ||
1461 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1463 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1465 | break 2 | ||
1466 | fi | ||
1467 | done | ||
1468 | done | ||
1469 | |||
1470 | fi | ||
1471 | fi | ||
1472 | CC=$ac_cv_prog_CC | ||
1473 | if test -n "$CC"; then | ||
1474 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1475 | echo "${ECHO_T}$CC" >&6 | ||
1476 | else | ||
1477 | echo "$as_me:$LINENO: result: no" >&5 | ||
1478 | echo "${ECHO_T}no" >&6 | ||
1479 | fi | ||
1480 | |||
1481 | fi | ||
1482 | if test -z "$ac_cv_prog_CC"; then | ||
1483 | ac_ct_CC=$CC | ||
1484 | # Extract the first word of "cc", so it can be a program name with args. | ||
1485 | set dummy cc; ac_word=$2 | ||
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1490 | else | ||
1491 | if test -n "$ac_ct_CC"; then | ||
1492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1493 | else | ||
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1495 | for as_dir in $PATH | ||
1496 | do | ||
1497 | IFS=$as_save_IFS | ||
1498 | test -z "$as_dir" && as_dir=. | ||
1499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1501 | ac_cv_prog_ac_ct_CC="cc" | ||
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1503 | break 2 | ||
1504 | fi | ||
1505 | done | ||
1506 | done | ||
1507 | |||
1508 | fi | ||
1509 | fi | ||
1510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1511 | if test -n "$ac_ct_CC"; then | ||
1512 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1513 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1514 | else | ||
1515 | echo "$as_me:$LINENO: result: no" >&5 | ||
1516 | echo "${ECHO_T}no" >&6 | ||
1517 | fi | ||
1518 | |||
1519 | CC=$ac_ct_CC | ||
1520 | else | ||
1521 | CC="$ac_cv_prog_CC" | ||
1522 | fi | ||
1523 | |||
1524 | fi | ||
1525 | if test -z "$CC"; then | ||
1526 | # Extract the first word of "cc", so it can be a program name with args. | ||
1527 | set dummy cc; ac_word=$2 | ||
1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1530 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1532 | else | ||
1533 | if test -n "$CC"; then | ||
1534 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1535 | else | ||
1536 | ac_prog_rejected=no | ||
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1538 | for as_dir in $PATH | ||
1539 | do | ||
1540 | IFS=$as_save_IFS | ||
1541 | test -z "$as_dir" && as_dir=. | ||
1542 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1544 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1545 | ac_prog_rejected=yes | ||
1546 | continue | ||
1547 | fi | ||
1548 | ac_cv_prog_CC="cc" | ||
1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1550 | break 2 | ||
1551 | fi | ||
1552 | done | ||
1553 | done | ||
1554 | |||
1555 | if test $ac_prog_rejected = yes; then | ||
1556 | # We found a bogon in the path, so make sure we never use it. | ||
1557 | set dummy $ac_cv_prog_CC | ||
1558 | shift | ||
1559 | if test $# != 0; then | ||
1560 | # We chose a different compiler from the bogus one. | ||
1561 | # However, it has the same basename, so the bogon will be chosen | ||
1562 | # first if we set CC to just the basename; use the full file name. | ||
1563 | shift | ||
1564 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1565 | fi | ||
1566 | fi | ||
1567 | fi | ||
1568 | fi | ||
1569 | CC=$ac_cv_prog_CC | ||
1570 | if test -n "$CC"; then | ||
1571 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1572 | echo "${ECHO_T}$CC" >&6 | ||
1573 | else | ||
1574 | echo "$as_me:$LINENO: result: no" >&5 | ||
1575 | echo "${ECHO_T}no" >&6 | ||
1576 | fi | ||
1577 | |||
1578 | fi | ||
1579 | if test -z "$CC"; then | ||
1580 | if test -n "$ac_tool_prefix"; then | ||
1581 | for ac_prog in cl | ||
1582 | do | ||
1583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1587 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1589 | else | ||
1590 | if test -n "$CC"; then | ||
1591 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1592 | else | ||
1593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1594 | for as_dir in $PATH | ||
1595 | do | ||
1596 | IFS=$as_save_IFS | ||
1597 | test -z "$as_dir" && as_dir=. | ||
1598 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1602 | break 2 | ||
1603 | fi | ||
1604 | done | ||
1605 | done | ||
1606 | |||
1607 | fi | ||
1608 | fi | ||
1609 | CC=$ac_cv_prog_CC | ||
1610 | if test -n "$CC"; then | ||
1611 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1612 | echo "${ECHO_T}$CC" >&6 | ||
1613 | else | ||
1614 | echo "$as_me:$LINENO: result: no" >&5 | ||
1615 | echo "${ECHO_T}no" >&6 | ||
1616 | fi | ||
1617 | |||
1618 | test -n "$CC" && break | ||
1619 | done | ||
1620 | fi | ||
1621 | if test -z "$CC"; then | ||
1622 | ac_ct_CC=$CC | ||
1623 | for ac_prog in cl | ||
1624 | do | ||
1625 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1626 | set dummy $ac_prog; ac_word=$2 | ||
1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1629 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1631 | else | ||
1632 | if test -n "$ac_ct_CC"; then | ||
1633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1634 | else | ||
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1636 | for as_dir in $PATH | ||
1637 | do | ||
1638 | IFS=$as_save_IFS | ||
1639 | test -z "$as_dir" && as_dir=. | ||
1640 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1642 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1644 | break 2 | ||
1645 | fi | ||
1646 | done | ||
1647 | done | ||
1648 | |||
1649 | fi | ||
1650 | fi | ||
1651 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1652 | if test -n "$ac_ct_CC"; then | ||
1653 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1654 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1655 | else | ||
1656 | echo "$as_me:$LINENO: result: no" >&5 | ||
1657 | echo "${ECHO_T}no" >&6 | ||
1658 | fi | ||
1659 | |||
1660 | test -n "$ac_ct_CC" && break | ||
1661 | done | ||
1662 | |||
1663 | CC=$ac_ct_CC | ||
1664 | fi | ||
1665 | |||
1666 | fi | ||
1667 | |||
1668 | |||
1669 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
1670 | See \`config.log' for more details." >&5 | ||
1671 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
1672 | See \`config.log' for more details." >&2;} | ||
1673 | { (exit 1); exit 1; }; } | ||
1674 | |||
1675 | # Provide some information about the compiler. | ||
1676 | echo "$as_me:$LINENO:" \ | ||
1677 | "checking for C compiler version" >&5 | ||
1678 | ac_compiler=`set X $ac_compile; echo $2` | ||
1679 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1680 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1681 | ac_status=$? | ||
1682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1683 | (exit $ac_status); } | ||
1684 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1685 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1686 | ac_status=$? | ||
1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1688 | (exit $ac_status); } | ||
1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1690 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1691 | ac_status=$? | ||
1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1693 | (exit $ac_status); } | ||
1694 | |||
1695 | cat >conftest.$ac_ext <<_ACEOF | ||
1696 | /* confdefs.h. */ | ||
1697 | _ACEOF | ||
1698 | cat confdefs.h >>conftest.$ac_ext | ||
1699 | cat >>conftest.$ac_ext <<_ACEOF | ||
1700 | /* end confdefs.h. */ | ||
1701 | |||
1702 | int | ||
1703 | main () | ||
1704 | { | ||
1705 | |||
1706 | ; | ||
1707 | return 0; | ||
1708 | } | ||
1709 | _ACEOF | ||
1710 | ac_clean_files_save=$ac_clean_files | ||
1711 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
1712 | # Try to create an executable without -o first, disregard a.out. | ||
1713 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1714 | # of exeext. | ||
1715 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
1716 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
1717 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1718 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1719 | (eval $ac_link_default) 2>&5 | ||
1720 | ac_status=$? | ||
1721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1722 | (exit $ac_status); }; then | ||
1723 | # Find the output, starting from the most likely. This scheme is | ||
1724 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1725 | # resort. | ||
1726 | |||
1727 | # Be careful to initialize this variable, since it used to be cached. | ||
1728 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1729 | ac_cv_exeext= | ||
1730 | # b.out is created by i960 compilers. | ||
1731 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
1732 | do | ||
1733 | test -f "$ac_file" || continue | ||
1734 | case $ac_file in | ||
1735 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
1736 | ;; | ||
1737 | conftest.$ac_ext ) | ||
1738 | # This is the source file. | ||
1739 | ;; | ||
1740 | [ab].out ) | ||
1741 | # We found the default executable, but exeext='' is most | ||
1742 | # certainly right. | ||
1743 | break;; | ||
1744 | *.* ) | ||
1745 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1746 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
1747 | # but it would be cool to find out if it's true. Does anybody | ||
1748 | # maintain Libtool? --akim. | ||
1749 | export ac_cv_exeext | ||
1750 | break;; | ||
1751 | * ) | ||
1752 | break;; | ||
1753 | esac | ||
1754 | done | ||
1755 | else | ||
1756 | echo "$as_me: failed program was:" >&5 | ||
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1758 | |||
1759 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
1760 | See \`config.log' for more details." >&5 | ||
1761 | echo "$as_me: error: C compiler cannot create executables | ||
1762 | See \`config.log' for more details." >&2;} | ||
1763 | { (exit 77); exit 77; }; } | ||
1764 | fi | ||
1765 | |||
1766 | ac_exeext=$ac_cv_exeext | ||
1767 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1768 | echo "${ECHO_T}$ac_file" >&6 | ||
1769 | |||
1770 | # Check the compiler produces executables we can run. If not, either | ||
1771 | # the compiler is broken, or we cross compile. | ||
1772 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1773 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1774 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1775 | # If not cross compiling, check that we can run a simple program. | ||
1776 | if test "$cross_compiling" != yes; then | ||
1777 | if { ac_try='./$ac_file' | ||
1778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1779 | (eval $ac_try) 2>&5 | ||
1780 | ac_status=$? | ||
1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1782 | (exit $ac_status); }; }; then | ||
1783 | cross_compiling=no | ||
1784 | else | ||
1785 | if test "$cross_compiling" = maybe; then | ||
1786 | cross_compiling=yes | ||
1787 | else | ||
1788 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1789 | If you meant to cross compile, use \`--host'. | ||
1790 | See \`config.log' for more details." >&5 | ||
1791 | echo "$as_me: error: cannot run C compiled programs. | ||
1792 | If you meant to cross compile, use \`--host'. | ||
1793 | See \`config.log' for more details." >&2;} | ||
1794 | { (exit 1); exit 1; }; } | ||
1795 | fi | ||
1796 | fi | ||
1797 | fi | ||
1798 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1799 | echo "${ECHO_T}yes" >&6 | ||
1800 | |||
1801 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
1802 | ac_clean_files=$ac_clean_files_save | ||
1803 | # Check the compiler produces executables we can run. If not, either | ||
1804 | # the compiler is broken, or we cross compile. | ||
1805 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1806 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1807 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1808 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1809 | |||
1810 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1811 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1813 | (eval $ac_link) 2>&5 | ||
1814 | ac_status=$? | ||
1815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1816 | (exit $ac_status); }; then | ||
1817 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1818 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1819 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1820 | # `rm'. | ||
1821 | for ac_file in conftest.exe conftest conftest.*; do | ||
1822 | test -f "$ac_file" || continue | ||
1823 | case $ac_file in | ||
1824 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
1825 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1826 | export ac_cv_exeext | ||
1827 | break;; | ||
1828 | * ) break;; | ||
1829 | esac | ||
1830 | done | ||
1831 | else | ||
1832 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
1833 | See \`config.log' for more details." >&5 | ||
1834 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
1835 | See \`config.log' for more details." >&2;} | ||
1836 | { (exit 1); exit 1; }; } | ||
1837 | fi | ||
1838 | |||
1839 | rm -f conftest$ac_cv_exeext | ||
1840 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1841 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1842 | |||
1843 | rm -f conftest.$ac_ext | ||
1844 | EXEEXT=$ac_cv_exeext | ||
1845 | ac_exeext=$EXEEXT | ||
1846 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1847 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1848 | if test "${ac_cv_objext+set}" = set; then | ||
1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1850 | else | ||
1851 | cat >conftest.$ac_ext <<_ACEOF | ||
1852 | /* confdefs.h. */ | ||
1853 | _ACEOF | ||
1854 | cat confdefs.h >>conftest.$ac_ext | ||
1855 | cat >>conftest.$ac_ext <<_ACEOF | ||
1856 | /* end confdefs.h. */ | ||
1857 | |||
1858 | int | ||
1859 | main () | ||
1860 | { | ||
1861 | |||
1862 | ; | ||
1863 | return 0; | ||
1864 | } | ||
1865 | _ACEOF | ||
1866 | rm -f conftest.o conftest.obj | ||
1867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1868 | (eval $ac_compile) 2>&5 | ||
1869 | ac_status=$? | ||
1870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1871 | (exit $ac_status); }; then | ||
1872 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1873 | case $ac_file in | ||
1874 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
1875 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1876 | break;; | ||
1877 | esac | ||
1878 | done | ||
1879 | else | ||
1880 | echo "$as_me: failed program was:" >&5 | ||
1881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1882 | |||
1883 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
1884 | See \`config.log' for more details." >&5 | ||
1885 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
1886 | See \`config.log' for more details." >&2;} | ||
1887 | { (exit 1); exit 1; }; } | ||
1888 | fi | ||
1889 | |||
1890 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1891 | fi | ||
1892 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1893 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1894 | OBJEXT=$ac_cv_objext | ||
1895 | ac_objext=$OBJEXT | ||
1896 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1897 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1898 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1900 | else | ||
1901 | cat >conftest.$ac_ext <<_ACEOF | ||
1902 | /* confdefs.h. */ | ||
1903 | _ACEOF | ||
1904 | cat confdefs.h >>conftest.$ac_ext | ||
1905 | cat >>conftest.$ac_ext <<_ACEOF | ||
1906 | /* end confdefs.h. */ | ||
1907 | |||
1908 | int | ||
1909 | main () | ||
1910 | { | ||
1911 | #ifndef __GNUC__ | ||
1912 | choke me | ||
1913 | #endif | ||
1914 | |||
1915 | ; | ||
1916 | return 0; | ||
1917 | } | ||
1918 | _ACEOF | ||
1919 | rm -f conftest.$ac_objext | ||
1920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1921 | (eval $ac_compile) 2>conftest.er1 | ||
1922 | ac_status=$? | ||
1923 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1924 | rm -f conftest.er1 | ||
1925 | cat conftest.err >&5 | ||
1926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1927 | (exit $ac_status); } && | ||
1928 | { ac_try='test -z "$ac_c_werror_flag" | ||
1929 | || test ! -s conftest.err' | ||
1930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1931 | (eval $ac_try) 2>&5 | ||
1932 | ac_status=$? | ||
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1934 | (exit $ac_status); }; } && | ||
1935 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
1941 | ac_compiler_gnu=yes | ||
1942 | else | ||
1943 | echo "$as_me: failed program was:" >&5 | ||
1944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1945 | |||
1946 | ac_compiler_gnu=no | ||
1947 | fi | ||
1948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1949 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1950 | |||
1951 | fi | ||
1952 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1953 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1954 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1955 | ac_test_CFLAGS=${CFLAGS+set} | ||
1956 | ac_save_CFLAGS=$CFLAGS | ||
1957 | CFLAGS="-g" | ||
1958 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1959 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1960 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1962 | else | ||
1963 | cat >conftest.$ac_ext <<_ACEOF | ||
1964 | /* confdefs.h. */ | ||
1965 | _ACEOF | ||
1966 | cat confdefs.h >>conftest.$ac_ext | ||
1967 | cat >>conftest.$ac_ext <<_ACEOF | ||
1968 | /* end confdefs.h. */ | ||
1969 | |||
1970 | int | ||
1971 | main () | ||
1972 | { | ||
1973 | |||
1974 | ; | ||
1975 | return 0; | ||
1976 | } | ||
1977 | _ACEOF | ||
1978 | rm -f conftest.$ac_objext | ||
1979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1980 | (eval $ac_compile) 2>conftest.er1 | ||
1981 | ac_status=$? | ||
1982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1983 | rm -f conftest.er1 | ||
1984 | cat conftest.err >&5 | ||
1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1986 | (exit $ac_status); } && | ||
1987 | { ac_try='test -z "$ac_c_werror_flag" | ||
1988 | || test ! -s conftest.err' | ||
1989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1990 | (eval $ac_try) 2>&5 | ||
1991 | ac_status=$? | ||
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1993 | (exit $ac_status); }; } && | ||
1994 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2000 | ac_cv_prog_cc_g=yes | ||
2001 | else | ||
2002 | echo "$as_me: failed program was:" >&5 | ||
2003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2004 | |||
2005 | ac_cv_prog_cc_g=no | ||
2006 | fi | ||
2007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2008 | fi | ||
2009 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2010 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2011 | if test "$ac_test_CFLAGS" = set; then | ||
2012 | CFLAGS=$ac_save_CFLAGS | ||
2013 | elif test $ac_cv_prog_cc_g = yes; then | ||
2014 | if test "$GCC" = yes; then | ||
2015 | CFLAGS="-g -O2" | ||
2016 | else | ||
2017 | CFLAGS="-g" | ||
2018 | fi | ||
2019 | else | ||
2020 | if test "$GCC" = yes; then | ||
2021 | CFLAGS="-O2" | ||
2022 | else | ||
2023 | CFLAGS= | ||
2024 | fi | ||
2025 | fi | ||
2026 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2027 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2028 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2030 | else | ||
2031 | ac_cv_prog_cc_stdc=no | ||
2032 | ac_save_CC=$CC | ||
2033 | cat >conftest.$ac_ext <<_ACEOF | ||
2034 | /* confdefs.h. */ | ||
2035 | _ACEOF | ||
2036 | cat confdefs.h >>conftest.$ac_ext | ||
2037 | cat >>conftest.$ac_ext <<_ACEOF | ||
2038 | /* end confdefs.h. */ | ||
2039 | #include <stdarg.h> | ||
2040 | #include <stdio.h> | ||
2041 | #include <sys/types.h> | ||
2042 | #include <sys/stat.h> | ||
2043 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2044 | struct buf { int x; }; | ||
2045 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2046 | static char *e (p, i) | ||
2047 | char **p; | ||
2048 | int i; | ||
2049 | { | ||
2050 | return p[i]; | ||
2051 | } | ||
2052 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2053 | { | ||
2054 | char *s; | ||
2055 | va_list v; | ||
2056 | va_start (v,p); | ||
2057 | s = g (p, va_arg (v,int)); | ||
2058 | va_end (v); | ||
2059 | return s; | ||
2060 | } | ||
2061 | |||
2062 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2063 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2064 | These don't provoke an error unfortunately, instead are silently treated | ||
2065 | as 'x'. The following induces an error, until -std1 is added to get | ||
2066 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2067 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2068 | that's true only with -std1. */ | ||
2069 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2070 | |||
2071 | int test (int i, double x); | ||
2072 | struct s1 {int (*f) (int a);}; | ||
2073 | struct s2 {int (*f) (double a);}; | ||
2074 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2075 | int argc; | ||
2076 | char **argv; | ||
2077 | int | ||
2078 | main () | ||
2079 | { | ||
2080 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2081 | ; | ||
2082 | return 0; | ||
2083 | } | ||
2084 | _ACEOF | ||
2085 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2086 | # breaks some systems' header files. | ||
2087 | # AIX -qlanglvl=ansi | ||
2088 | # Ultrix and OSF/1 -std1 | ||
2089 | # HP-UX 10.20 and later -Ae | ||
2090 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2091 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2092 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2093 | do | ||
2094 | CC="$ac_save_CC $ac_arg" | ||
2095 | rm -f conftest.$ac_objext | ||
2096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2097 | (eval $ac_compile) 2>conftest.er1 | ||
2098 | ac_status=$? | ||
2099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2100 | rm -f conftest.er1 | ||
2101 | cat conftest.err >&5 | ||
2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2103 | (exit $ac_status); } && | ||
2104 | { ac_try='test -z "$ac_c_werror_flag" | ||
2105 | || test ! -s conftest.err' | ||
2106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2107 | (eval $ac_try) 2>&5 | ||
2108 | ac_status=$? | ||
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2110 | (exit $ac_status); }; } && | ||
2111 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2117 | ac_cv_prog_cc_stdc=$ac_arg | ||
2118 | break | ||
2119 | else | ||
2120 | echo "$as_me: failed program was:" >&5 | ||
2121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2122 | |||
2123 | fi | ||
2124 | rm -f conftest.err conftest.$ac_objext | ||
2125 | done | ||
2126 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2127 | CC=$ac_save_CC | ||
2128 | |||
2129 | fi | ||
2130 | |||
2131 | case "x$ac_cv_prog_cc_stdc" in | ||
2132 | x|xno) | ||
2133 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2134 | echo "${ECHO_T}none needed" >&6 ;; | ||
2135 | *) | ||
2136 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2137 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2138 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2139 | esac | ||
2140 | |||
2141 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2142 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2143 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2144 | # the declaration of exit, since it's the most demanding environment. | ||
2145 | cat >conftest.$ac_ext <<_ACEOF | ||
2146 | #ifndef __cplusplus | ||
2147 | choke me | ||
2148 | #endif | ||
2149 | _ACEOF | ||
2150 | rm -f conftest.$ac_objext | ||
2151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2152 | (eval $ac_compile) 2>conftest.er1 | ||
2153 | ac_status=$? | ||
2154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2155 | rm -f conftest.er1 | ||
2156 | cat conftest.err >&5 | ||
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2158 | (exit $ac_status); } && | ||
2159 | { ac_try='test -z "$ac_c_werror_flag" | ||
2160 | || test ! -s conftest.err' | ||
2161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2162 | (eval $ac_try) 2>&5 | ||
2163 | ac_status=$? | ||
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2165 | (exit $ac_status); }; } && | ||
2166 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2172 | for ac_declaration in \ | ||
2173 | '' \ | ||
2174 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2175 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2176 | 'extern "C" void exit (int) throw ();' \ | ||
2177 | 'extern "C" void exit (int);' \ | ||
2178 | 'void exit (int);' | ||
2179 | do | ||
2180 | cat >conftest.$ac_ext <<_ACEOF | ||
2181 | /* confdefs.h. */ | ||
2182 | _ACEOF | ||
2183 | cat confdefs.h >>conftest.$ac_ext | ||
2184 | cat >>conftest.$ac_ext <<_ACEOF | ||
2185 | /* end confdefs.h. */ | ||
2186 | $ac_declaration | ||
2187 | #include <stdlib.h> | ||
2188 | int | ||
2189 | main () | ||
2190 | { | ||
2191 | exit (42); | ||
2192 | ; | ||
2193 | return 0; | ||
2194 | } | ||
2195 | _ACEOF | ||
2196 | rm -f conftest.$ac_objext | ||
2197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2198 | (eval $ac_compile) 2>conftest.er1 | ||
2199 | ac_status=$? | ||
2200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2201 | rm -f conftest.er1 | ||
2202 | cat conftest.err >&5 | ||
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2204 | (exit $ac_status); } && | ||
2205 | { ac_try='test -z "$ac_c_werror_flag" | ||
2206 | || test ! -s conftest.err' | ||
2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2208 | (eval $ac_try) 2>&5 | ||
2209 | ac_status=$? | ||
2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2211 | (exit $ac_status); }; } && | ||
2212 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2218 | : | ||
2219 | else | ||
2220 | echo "$as_me: failed program was:" >&5 | ||
2221 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2222 | |||
2223 | continue | ||
2224 | fi | ||
2225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2226 | cat >conftest.$ac_ext <<_ACEOF | ||
2227 | /* confdefs.h. */ | ||
2228 | _ACEOF | ||
2229 | cat confdefs.h >>conftest.$ac_ext | ||
2230 | cat >>conftest.$ac_ext <<_ACEOF | ||
2231 | /* end confdefs.h. */ | ||
2232 | $ac_declaration | ||
2233 | int | ||
2234 | main () | ||
2235 | { | ||
2236 | exit (42); | ||
2237 | ; | ||
2238 | return 0; | ||
2239 | } | ||
2240 | _ACEOF | ||
2241 | rm -f conftest.$ac_objext | ||
2242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2243 | (eval $ac_compile) 2>conftest.er1 | ||
2244 | ac_status=$? | ||
2245 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2246 | rm -f conftest.er1 | ||
2247 | cat conftest.err >&5 | ||
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2249 | (exit $ac_status); } && | ||
2250 | { ac_try='test -z "$ac_c_werror_flag" | ||
2251 | || test ! -s conftest.err' | ||
2252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2253 | (eval $ac_try) 2>&5 | ||
2254 | ac_status=$? | ||
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2256 | (exit $ac_status); }; } && | ||
2257 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2263 | break | ||
2264 | else | ||
2265 | echo "$as_me: failed program was:" >&5 | ||
2266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2267 | |||
2268 | fi | ||
2269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2270 | done | ||
2271 | rm -f conftest* | ||
2272 | if test -n "$ac_declaration"; then | ||
2273 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2274 | echo $ac_declaration >>confdefs.h | ||
2275 | echo '#endif' >>confdefs.h | ||
2276 | fi | ||
2277 | |||
2278 | else | ||
2279 | echo "$as_me: failed program was:" >&5 | ||
2280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2281 | |||
2282 | fi | ||
2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2284 | ac_ext=c | ||
2285 | ac_cpp='$CPP $CPPFLAGS' | ||
2286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2289 | |||
2290 | ac_aux_dir= | ||
2291 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2292 | if test -f $ac_dir/install-sh; then | ||
2293 | ac_aux_dir=$ac_dir | ||
2294 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2295 | break | ||
2296 | elif test -f $ac_dir/install.sh; then | ||
2297 | ac_aux_dir=$ac_dir | ||
2298 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2299 | break | ||
2300 | elif test -f $ac_dir/shtool; then | ||
2301 | ac_aux_dir=$ac_dir | ||
2302 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2303 | break | ||
2304 | fi | ||
2305 | done | ||
2306 | if test -z "$ac_aux_dir"; then | ||
2307 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2308 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2309 | { (exit 1); exit 1; }; } | ||
2310 | fi | ||
2311 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2312 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2313 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2314 | |||
2315 | # Make sure we can run config.sub. | ||
2316 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2317 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2318 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2319 | { (exit 1); exit 1; }; } | ||
2320 | |||
2321 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2322 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2323 | if test "${ac_cv_build+set}" = set; then | ||
2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2325 | else | ||
2326 | ac_cv_build_alias=$build_alias | ||
2327 | test -z "$ac_cv_build_alias" && | ||
2328 | ac_cv_build_alias=`$ac_config_guess` | ||
2329 | test -z "$ac_cv_build_alias" && | ||
2330 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2331 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2332 | { (exit 1); exit 1; }; } | ||
2333 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2334 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2335 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2336 | { (exit 1); exit 1; }; } | ||
2337 | |||
2338 | fi | ||
2339 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2340 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2341 | build=$ac_cv_build | ||
2342 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2343 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2344 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2345 | |||
2346 | |||
2347 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2348 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2349 | if test "${ac_cv_host+set}" = set; then | ||
2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2351 | else | ||
2352 | ac_cv_host_alias=$host_alias | ||
2353 | test -z "$ac_cv_host_alias" && | ||
2354 | ac_cv_host_alias=$ac_cv_build_alias | ||
2355 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2356 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2357 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2358 | { (exit 1); exit 1; }; } | ||
2359 | |||
2360 | fi | ||
2361 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2362 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2363 | host=$ac_cv_host | ||
2364 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2365 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2366 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2367 | |||
2368 | |||
2369 | |||
2370 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2371 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2372 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2374 | else | ||
2375 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2376 | cat >conftest.$ac_ext <<_ACEOF | ||
2377 | /* confdefs.h. */ | ||
2378 | _ACEOF | ||
2379 | cat confdefs.h >>conftest.$ac_ext | ||
2380 | cat >>conftest.$ac_ext <<_ACEOF | ||
2381 | /* end confdefs.h. */ | ||
2382 | #include <sys/types.h> | ||
2383 | #include <sys/param.h> | ||
2384 | |||
2385 | int | ||
2386 | main () | ||
2387 | { | ||
2388 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2389 | bogus endian macros | ||
2390 | #endif | ||
2391 | |||
2392 | ; | ||
2393 | return 0; | ||
2394 | } | ||
2395 | _ACEOF | ||
2396 | rm -f conftest.$ac_objext | ||
2397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2398 | (eval $ac_compile) 2>conftest.er1 | ||
2399 | ac_status=$? | ||
2400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2401 | rm -f conftest.er1 | ||
2402 | cat conftest.err >&5 | ||
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2404 | (exit $ac_status); } && | ||
2405 | { ac_try='test -z "$ac_c_werror_flag" | ||
2406 | || test ! -s conftest.err' | ||
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2408 | (eval $ac_try) 2>&5 | ||
2409 | ac_status=$? | ||
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2411 | (exit $ac_status); }; } && | ||
2412 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2418 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2419 | cat >conftest.$ac_ext <<_ACEOF | ||
2420 | /* confdefs.h. */ | ||
2421 | _ACEOF | ||
2422 | cat confdefs.h >>conftest.$ac_ext | ||
2423 | cat >>conftest.$ac_ext <<_ACEOF | ||
2424 | /* end confdefs.h. */ | ||
2425 | #include <sys/types.h> | ||
2426 | #include <sys/param.h> | ||
2427 | |||
2428 | int | ||
2429 | main () | ||
2430 | { | ||
2431 | #if BYTE_ORDER != BIG_ENDIAN | ||
2432 | not big endian | ||
2433 | #endif | ||
2434 | |||
2435 | ; | ||
2436 | return 0; | ||
2437 | } | ||
2438 | _ACEOF | ||
2439 | rm -f conftest.$ac_objext | ||
2440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2441 | (eval $ac_compile) 2>conftest.er1 | ||
2442 | ac_status=$? | ||
2443 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2444 | rm -f conftest.er1 | ||
2445 | cat conftest.err >&5 | ||
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2447 | (exit $ac_status); } && | ||
2448 | { ac_try='test -z "$ac_c_werror_flag" | ||
2449 | || test ! -s conftest.err' | ||
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2451 | (eval $ac_try) 2>&5 | ||
2452 | ac_status=$? | ||
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2454 | (exit $ac_status); }; } && | ||
2455 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2461 | ac_cv_c_bigendian=yes | ||
2462 | else | ||
2463 | echo "$as_me: failed program was:" >&5 | ||
2464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2465 | |||
2466 | ac_cv_c_bigendian=no | ||
2467 | fi | ||
2468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2469 | else | ||
2470 | echo "$as_me: failed program was:" >&5 | ||
2471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2472 | |||
2473 | # It does not; compile a test program. | ||
2474 | if test "$cross_compiling" = yes; then | ||
2475 | # try to guess the endianness by grepping values into an object file | ||
2476 | ac_cv_c_bigendian=unknown | ||
2477 | cat >conftest.$ac_ext <<_ACEOF | ||
2478 | /* confdefs.h. */ | ||
2479 | _ACEOF | ||
2480 | cat confdefs.h >>conftest.$ac_ext | ||
2481 | cat >>conftest.$ac_ext <<_ACEOF | ||
2482 | /* end confdefs.h. */ | ||
2483 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2484 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2485 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2486 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2487 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2488 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2489 | int | ||
2490 | main () | ||
2491 | { | ||
2492 | _ascii (); _ebcdic (); | ||
2493 | ; | ||
2494 | return 0; | ||
2495 | } | ||
2496 | _ACEOF | ||
2497 | rm -f conftest.$ac_objext | ||
2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2499 | (eval $ac_compile) 2>conftest.er1 | ||
2500 | ac_status=$? | ||
2501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2502 | rm -f conftest.er1 | ||
2503 | cat conftest.err >&5 | ||
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2505 | (exit $ac_status); } && | ||
2506 | { ac_try='test -z "$ac_c_werror_flag" | ||
2507 | || test ! -s conftest.err' | ||
2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2509 | (eval $ac_try) 2>&5 | ||
2510 | ac_status=$? | ||
2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2512 | (exit $ac_status); }; } && | ||
2513 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
2519 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2520 | ac_cv_c_bigendian=yes | ||
2521 | fi | ||
2522 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2523 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2524 | ac_cv_c_bigendian=no | ||
2525 | else | ||
2526 | # finding both strings is unlikely to happen, but who knows? | ||
2527 | ac_cv_c_bigendian=unknown | ||
2528 | fi | ||
2529 | fi | ||
2530 | else | ||
2531 | echo "$as_me: failed program was:" >&5 | ||
2532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2533 | |||
2534 | fi | ||
2535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2536 | else | ||
2537 | cat >conftest.$ac_ext <<_ACEOF | ||
2538 | /* confdefs.h. */ | ||
2539 | _ACEOF | ||
2540 | cat confdefs.h >>conftest.$ac_ext | ||
2541 | cat >>conftest.$ac_ext <<_ACEOF | ||
2542 | /* end confdefs.h. */ | ||
2543 | int | ||
2544 | main () | ||
2545 | { | ||
2546 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2547 | union | ||
2548 | { | ||
2549 | long l; | ||
2550 | char c[sizeof (long)]; | ||
2551 | } u; | ||
2552 | u.l = 1; | ||
2553 | exit (u.c[sizeof (long) - 1] == 1); | ||
2554 | } | ||
2555 | _ACEOF | ||
2556 | rm -f conftest$ac_exeext | ||
2557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2558 | (eval $ac_link) 2>&5 | ||
2559 | ac_status=$? | ||
2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2563 | (eval $ac_try) 2>&5 | ||
2564 | ac_status=$? | ||
2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2566 | (exit $ac_status); }; }; then | ||
2567 | ac_cv_c_bigendian=no | ||
2568 | else | ||
2569 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2570 | echo "$as_me: failed program was:" >&5 | ||
2571 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2572 | |||
2573 | ( exit $ac_status ) | ||
2574 | ac_cv_c_bigendian=yes | ||
2575 | fi | ||
2576 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2577 | fi | ||
2578 | fi | ||
2579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2580 | fi | ||
2581 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2582 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2583 | case $ac_cv_c_bigendian in | ||
2584 | yes) | ||
2585 | |||
2586 | cat >>confdefs.h <<\_ACEOF | ||
2587 | #define WORDS_BIGENDIAN 1 | ||
2588 | _ACEOF | ||
2589 | ;; | ||
2590 | no) | ||
2591 | ;; | ||
2592 | *) | ||
2593 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
2594 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2595 | echo "$as_me: error: unknown endianness | ||
2596 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2597 | { (exit 1); exit 1; }; } ;; | ||
2598 | esac | ||
2599 | |||
2600 | |||
2601 | # Checks for programs. | ||
2602 | for ac_prog in gawk mawk nawk awk | ||
2603 | do | ||
2604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2605 | set dummy $ac_prog; ac_word=$2 | ||
2606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2608 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2610 | else | ||
2611 | if test -n "$AWK"; then | ||
2612 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2613 | else | ||
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2615 | for as_dir in $PATH | ||
2616 | do | ||
2617 | IFS=$as_save_IFS | ||
2618 | test -z "$as_dir" && as_dir=. | ||
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2621 | ac_cv_prog_AWK="$ac_prog" | ||
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2623 | break 2 | ||
2624 | fi | ||
2625 | done | ||
2626 | done | ||
2627 | |||
2628 | fi | ||
2629 | fi | ||
2630 | AWK=$ac_cv_prog_AWK | ||
2631 | if test -n "$AWK"; then | ||
2632 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2633 | echo "${ECHO_T}$AWK" >&6 | ||
2634 | else | ||
2635 | echo "$as_me:$LINENO: result: no" >&5 | ||
2636 | echo "${ECHO_T}no" >&6 | ||
2637 | fi | ||
2638 | |||
2639 | test -n "$AWK" && break | ||
2640 | done | ||
2641 | |||
2642 | ac_ext=c | ||
2643 | ac_cpp='$CPP $CPPFLAGS' | ||
2644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2647 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2648 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2649 | # On Suns, sometimes $CPP names a directory. | ||
2650 | if test -n "$CPP" && test -d "$CPP"; then | ||
2651 | CPP= | ||
2652 | fi | ||
2653 | if test -z "$CPP"; then | ||
2654 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2656 | else | ||
2657 | # Double quotes because CPP needs to be expanded | ||
2658 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2659 | do | ||
2660 | ac_preproc_ok=false | ||
2661 | for ac_c_preproc_warn_flag in '' yes | ||
2662 | do | ||
2663 | # Use a header file that comes with gcc, so configuring glibc | ||
2664 | # with a fresh cross-compiler works. | ||
2665 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2666 | # <limits.h> exists even on freestanding compilers. | ||
2667 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2668 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2669 | cat >conftest.$ac_ext <<_ACEOF | ||
2670 | /* confdefs.h. */ | ||
2671 | _ACEOF | ||
2672 | cat confdefs.h >>conftest.$ac_ext | ||
2673 | cat >>conftest.$ac_ext <<_ACEOF | ||
2674 | /* end confdefs.h. */ | ||
2675 | #ifdef __STDC__ | ||
2676 | # include <limits.h> | ||
2677 | #else | ||
2678 | # include <assert.h> | ||
2679 | #endif | ||
2680 | Syntax error | ||
2681 | _ACEOF | ||
2682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2684 | ac_status=$? | ||
2685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2686 | rm -f conftest.er1 | ||
2687 | cat conftest.err >&5 | ||
2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2689 | (exit $ac_status); } >/dev/null; then | ||
2690 | if test -s conftest.err; then | ||
2691 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2693 | else | ||
2694 | ac_cpp_err= | ||
2695 | fi | ||
2696 | else | ||
2697 | ac_cpp_err=yes | ||
2698 | fi | ||
2699 | if test -z "$ac_cpp_err"; then | ||
2700 | : | ||
2701 | else | ||
2702 | echo "$as_me: failed program was:" >&5 | ||
2703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2704 | |||
2705 | # Broken: fails on valid input. | ||
2706 | continue | ||
2707 | fi | ||
2708 | rm -f conftest.err conftest.$ac_ext | ||
2709 | |||
2710 | # OK, works on sane cases. Now check whether non-existent headers | ||
2711 | # can be detected and how. | ||
2712 | cat >conftest.$ac_ext <<_ACEOF | ||
2713 | /* confdefs.h. */ | ||
2714 | _ACEOF | ||
2715 | cat confdefs.h >>conftest.$ac_ext | ||
2716 | cat >>conftest.$ac_ext <<_ACEOF | ||
2717 | /* end confdefs.h. */ | ||
2718 | #include <ac_nonexistent.h> | ||
2719 | _ACEOF | ||
2720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2722 | ac_status=$? | ||
2723 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2724 | rm -f conftest.er1 | ||
2725 | cat conftest.err >&5 | ||
2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2727 | (exit $ac_status); } >/dev/null; then | ||
2728 | if test -s conftest.err; then | ||
2729 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2730 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2731 | else | ||
2732 | ac_cpp_err= | ||
2733 | fi | ||
2734 | else | ||
2735 | ac_cpp_err=yes | ||
2736 | fi | ||
2737 | if test -z "$ac_cpp_err"; then | ||
2738 | # Broken: success on invalid input. | ||
2739 | continue | ||
2740 | else | ||
2741 | echo "$as_me: failed program was:" >&5 | ||
2742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2743 | |||
2744 | # Passes both tests. | ||
2745 | ac_preproc_ok=: | ||
2746 | break | ||
2747 | fi | ||
2748 | rm -f conftest.err conftest.$ac_ext | ||
2749 | |||
2750 | done | ||
2751 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2752 | rm -f conftest.err conftest.$ac_ext | ||
2753 | if $ac_preproc_ok; then | ||
2754 | break | ||
2755 | fi | ||
2756 | |||
2757 | done | ||
2758 | ac_cv_prog_CPP=$CPP | ||
2759 | |||
2760 | fi | ||
2761 | CPP=$ac_cv_prog_CPP | ||
2762 | else | ||
2763 | ac_cv_prog_CPP=$CPP | ||
2764 | fi | ||
2765 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2766 | echo "${ECHO_T}$CPP" >&6 | ||
2767 | ac_preproc_ok=false | ||
2768 | for ac_c_preproc_warn_flag in '' yes | ||
2769 | do | ||
2770 | # Use a header file that comes with gcc, so configuring glibc | ||
2771 | # with a fresh cross-compiler works. | ||
2772 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2773 | # <limits.h> exists even on freestanding compilers. | ||
2774 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2775 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2776 | cat >conftest.$ac_ext <<_ACEOF | ||
2777 | /* confdefs.h. */ | ||
2778 | _ACEOF | ||
2779 | cat confdefs.h >>conftest.$ac_ext | ||
2780 | cat >>conftest.$ac_ext <<_ACEOF | ||
2781 | /* end confdefs.h. */ | ||
2782 | #ifdef __STDC__ | ||
2783 | # include <limits.h> | ||
2784 | #else | ||
2785 | # include <assert.h> | ||
2786 | #endif | ||
2787 | Syntax error | ||
2788 | _ACEOF | ||
2789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2791 | ac_status=$? | ||
2792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2793 | rm -f conftest.er1 | ||
2794 | cat conftest.err >&5 | ||
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2796 | (exit $ac_status); } >/dev/null; then | ||
2797 | if test -s conftest.err; then | ||
2798 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2800 | else | ||
2801 | ac_cpp_err= | ||
2802 | fi | ||
2803 | else | ||
2804 | ac_cpp_err=yes | ||
2805 | fi | ||
2806 | if test -z "$ac_cpp_err"; then | ||
2807 | : | ||
2808 | else | ||
2809 | echo "$as_me: failed program was:" >&5 | ||
2810 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2811 | |||
2812 | # Broken: fails on valid input. | ||
2813 | continue | ||
2814 | fi | ||
2815 | rm -f conftest.err conftest.$ac_ext | ||
2816 | |||
2817 | # OK, works on sane cases. Now check whether non-existent headers | ||
2818 | # can be detected and how. | ||
2819 | cat >conftest.$ac_ext <<_ACEOF | ||
2820 | /* confdefs.h. */ | ||
2821 | _ACEOF | ||
2822 | cat confdefs.h >>conftest.$ac_ext | ||
2823 | cat >>conftest.$ac_ext <<_ACEOF | ||
2824 | /* end confdefs.h. */ | ||
2825 | #include <ac_nonexistent.h> | ||
2826 | _ACEOF | ||
2827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2829 | ac_status=$? | ||
2830 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2831 | rm -f conftest.er1 | ||
2832 | cat conftest.err >&5 | ||
2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2834 | (exit $ac_status); } >/dev/null; then | ||
2835 | if test -s conftest.err; then | ||
2836 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2838 | else | ||
2839 | ac_cpp_err= | ||
2840 | fi | ||
2841 | else | ||
2842 | ac_cpp_err=yes | ||
2843 | fi | ||
2844 | if test -z "$ac_cpp_err"; then | ||
2845 | # Broken: success on invalid input. | ||
2846 | continue | ||
2847 | else | ||
2848 | echo "$as_me: failed program was:" >&5 | ||
2849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2850 | |||
2851 | # Passes both tests. | ||
2852 | ac_preproc_ok=: | ||
2853 | break | ||
2854 | fi | ||
2855 | rm -f conftest.err conftest.$ac_ext | ||
2856 | |||
2857 | done | ||
2858 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2859 | rm -f conftest.err conftest.$ac_ext | ||
2860 | if $ac_preproc_ok; then | ||
2861 | : | ||
2862 | else | ||
2863 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
2864 | See \`config.log' for more details." >&5 | ||
2865 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
2866 | See \`config.log' for more details." >&2;} | ||
2867 | { (exit 1); exit 1; }; } | ||
2868 | fi | ||
2869 | |||
2870 | ac_ext=c | ||
2871 | ac_cpp='$CPP $CPPFLAGS' | ||
2872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2875 | |||
2876 | if test -n "$ac_tool_prefix"; then | ||
2877 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2878 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2881 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2883 | else | ||
2884 | if test -n "$RANLIB"; then | ||
2885 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2886 | else | ||
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2888 | for as_dir in $PATH | ||
2889 | do | ||
2890 | IFS=$as_save_IFS | ||
2891 | test -z "$as_dir" && as_dir=. | ||
2892 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2894 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2896 | break 2 | ||
2897 | fi | ||
2898 | done | ||
2899 | done | ||
2900 | |||
2901 | fi | ||
2902 | fi | ||
2903 | RANLIB=$ac_cv_prog_RANLIB | ||
2904 | if test -n "$RANLIB"; then | ||
2905 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2906 | echo "${ECHO_T}$RANLIB" >&6 | ||
2907 | else | ||
2908 | echo "$as_me:$LINENO: result: no" >&5 | ||
2909 | echo "${ECHO_T}no" >&6 | ||
2910 | fi | ||
2911 | |||
2912 | fi | ||
2913 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2914 | ac_ct_RANLIB=$RANLIB | ||
2915 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2916 | set dummy ranlib; ac_word=$2 | ||
2917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2919 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2921 | else | ||
2922 | if test -n "$ac_ct_RANLIB"; then | ||
2923 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2924 | else | ||
2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2926 | for as_dir in $PATH | ||
2927 | do | ||
2928 | IFS=$as_save_IFS | ||
2929 | test -z "$as_dir" && as_dir=. | ||
2930 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2932 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2934 | break 2 | ||
2935 | fi | ||
2936 | done | ||
2937 | done | ||
2938 | |||
2939 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2940 | fi | ||
2941 | fi | ||
2942 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2943 | if test -n "$ac_ct_RANLIB"; then | ||
2944 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2945 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2946 | else | ||
2947 | echo "$as_me:$LINENO: result: no" >&5 | ||
2948 | echo "${ECHO_T}no" >&6 | ||
2949 | fi | ||
2950 | |||
2951 | RANLIB=$ac_ct_RANLIB | ||
2952 | else | ||
2953 | RANLIB="$ac_cv_prog_RANLIB" | ||
2954 | fi | ||
2955 | |||
2956 | # Find a good install program. We prefer a C program (faster), | ||
2957 | # so one script is as good as another. But avoid the broken or | ||
2958 | # incompatible versions: | ||
2959 | # SysV /etc/install, /usr/sbin/install | ||
2960 | # SunOS /usr/etc/install | ||
2961 | # IRIX /sbin/install | ||
2962 | # AIX /bin/install | ||
2963 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2964 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2965 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2966 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2967 | # OS/2's system install, which has a completely different semantic | ||
2968 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2969 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2970 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2971 | if test -z "$INSTALL"; then | ||
2972 | if test "${ac_cv_path_install+set}" = set; then | ||
2973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2974 | else | ||
2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2976 | for as_dir in $PATH | ||
2977 | do | ||
2978 | IFS=$as_save_IFS | ||
2979 | test -z "$as_dir" && as_dir=. | ||
2980 | # Account for people who put trailing slashes in PATH elements. | ||
2981 | case $as_dir/ in | ||
2982 | ./ | .// | /cC/* | \ | ||
2983 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2984 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2985 | /usr/ucb/* ) ;; | ||
2986 | *) | ||
2987 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2988 | # Don't use installbsd from OSF since it installs stuff as root | ||
2989 | # by default. | ||
2990 | for ac_prog in ginstall scoinst install; do | ||
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2992 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2993 | if test $ac_prog = install && | ||
2994 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2995 | # AIX install. It has an incompatible calling convention. | ||
2996 | : | ||
2997 | elif test $ac_prog = install && | ||
2998 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2999 | # program-specific install script used by HP pwplus--don't use. | ||
3000 | : | ||
3001 | else | ||
3002 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3003 | break 3 | ||
3004 | fi | ||
3005 | fi | ||
3006 | done | ||
3007 | done | ||
3008 | ;; | ||
3009 | esac | ||
3010 | done | ||
3011 | |||
3012 | |||
3013 | fi | ||
3014 | if test "${ac_cv_path_install+set}" = set; then | ||
3015 | INSTALL=$ac_cv_path_install | ||
3016 | else | ||
3017 | # As a last resort, use the slow shell script. We don't cache a | ||
3018 | # path for INSTALL within a source directory, because that will | ||
3019 | # break other packages using the cache if that directory is | ||
3020 | # removed, or if the path is relative. | ||
3021 | INSTALL=$ac_install_sh | ||
3022 | fi | ||
3023 | fi | ||
3024 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
3025 | echo "${ECHO_T}$INSTALL" >&6 | ||
3026 | |||
3027 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3028 | # It thinks the first close brace ends the variable substitution. | ||
3029 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3030 | |||
3031 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3032 | |||
3033 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3034 | |||
3035 | # Extract the first word of "ar", so it can be a program name with args. | ||
3036 | set dummy ar; ac_word=$2 | ||
3037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3039 | if test "${ac_cv_path_AR+set}" = set; then | ||
3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3041 | else | ||
3042 | case $AR in | ||
3043 | [\\/]* | ?:[\\/]*) | ||
3044 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
3045 | ;; | ||
3046 | *) | ||
3047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3048 | for as_dir in $PATH | ||
3049 | do | ||
3050 | IFS=$as_save_IFS | ||
3051 | test -z "$as_dir" && as_dir=. | ||
3052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3054 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
3055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3056 | break 2 | ||
3057 | fi | ||
3058 | done | ||
3059 | done | ||
3060 | |||
3061 | ;; | ||
3062 | esac | ||
3063 | fi | ||
3064 | AR=$ac_cv_path_AR | ||
3065 | |||
3066 | if test -n "$AR"; then | ||
3067 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
3068 | echo "${ECHO_T}$AR" >&6 | ||
3069 | else | ||
3070 | echo "$as_me:$LINENO: result: no" >&5 | ||
3071 | echo "${ECHO_T}no" >&6 | ||
3072 | fi | ||
3073 | |||
3074 | # Extract the first word of "cat", so it can be a program name with args. | ||
3075 | set dummy cat; ac_word=$2 | ||
3076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3078 | if test "${ac_cv_path_CAT+set}" = set; then | ||
3079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3080 | else | ||
3081 | case $CAT in | ||
3082 | [\\/]* | ?:[\\/]*) | ||
3083 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
3084 | ;; | ||
3085 | *) | ||
3086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3087 | for as_dir in $PATH | ||
3088 | do | ||
3089 | IFS=$as_save_IFS | ||
3090 | test -z "$as_dir" && as_dir=. | ||
3091 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3093 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
3094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3095 | break 2 | ||
3096 | fi | ||
3097 | done | ||
3098 | done | ||
3099 | |||
3100 | ;; | ||
3101 | esac | ||
3102 | fi | ||
3103 | CAT=$ac_cv_path_CAT | ||
3104 | |||
3105 | if test -n "$CAT"; then | ||
3106 | echo "$as_me:$LINENO: result: $CAT" >&5 | ||
3107 | echo "${ECHO_T}$CAT" >&6 | ||
3108 | else | ||
3109 | echo "$as_me:$LINENO: result: no" >&5 | ||
3110 | echo "${ECHO_T}no" >&6 | ||
3111 | fi | ||
3112 | |||
3113 | # Extract the first word of "kill", so it can be a program name with args. | ||
3114 | set dummy kill; ac_word=$2 | ||
3115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3117 | if test "${ac_cv_path_KILL+set}" = set; then | ||
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3119 | else | ||
3120 | case $KILL in | ||
3121 | [\\/]* | ?:[\\/]*) | ||
3122 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
3123 | ;; | ||
3124 | *) | ||
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3126 | for as_dir in $PATH | ||
3127 | do | ||
3128 | IFS=$as_save_IFS | ||
3129 | test -z "$as_dir" && as_dir=. | ||
3130 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3132 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
3133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3134 | break 2 | ||
3135 | fi | ||
3136 | done | ||
3137 | done | ||
3138 | |||
3139 | ;; | ||
3140 | esac | ||
3141 | fi | ||
3142 | KILL=$ac_cv_path_KILL | ||
3143 | |||
3144 | if test -n "$KILL"; then | ||
3145 | echo "$as_me:$LINENO: result: $KILL" >&5 | ||
3146 | echo "${ECHO_T}$KILL" >&6 | ||
3147 | else | ||
3148 | echo "$as_me:$LINENO: result: no" >&5 | ||
3149 | echo "${ECHO_T}no" >&6 | ||
3150 | fi | ||
3151 | |||
3152 | for ac_prog in perl5 perl | ||
3153 | do | ||
3154 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3155 | set dummy $ac_prog; ac_word=$2 | ||
3156 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3158 | if test "${ac_cv_path_PERL+set}" = set; then | ||
3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3160 | else | ||
3161 | case $PERL in | ||
3162 | [\\/]* | ?:[\\/]*) | ||
3163 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
3164 | ;; | ||
3165 | *) | ||
3166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3167 | for as_dir in $PATH | ||
3168 | do | ||
3169 | IFS=$as_save_IFS | ||
3170 | test -z "$as_dir" && as_dir=. | ||
3171 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3173 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
3174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3175 | break 2 | ||
3176 | fi | ||
3177 | done | ||
3178 | done | ||
3179 | |||
3180 | ;; | ||
3181 | esac | ||
3182 | fi | ||
3183 | PERL=$ac_cv_path_PERL | ||
3184 | |||
3185 | if test -n "$PERL"; then | ||
3186 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
3187 | echo "${ECHO_T}$PERL" >&6 | ||
3188 | else | ||
3189 | echo "$as_me:$LINENO: result: no" >&5 | ||
3190 | echo "${ECHO_T}no" >&6 | ||
3191 | fi | ||
3192 | |||
3193 | test -n "$PERL" && break | ||
3194 | done | ||
3195 | |||
3196 | # Extract the first word of "sed", so it can be a program name with args. | ||
3197 | set dummy sed; ac_word=$2 | ||
3198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3200 | if test "${ac_cv_path_SED+set}" = set; then | ||
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3202 | else | ||
3203 | case $SED in | ||
3204 | [\\/]* | ?:[\\/]*) | ||
3205 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
3206 | ;; | ||
3207 | *) | ||
3208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3209 | for as_dir in $PATH | ||
3210 | do | ||
3211 | IFS=$as_save_IFS | ||
3212 | test -z "$as_dir" && as_dir=. | ||
3213 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3215 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
3216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3217 | break 2 | ||
3218 | fi | ||
3219 | done | ||
3220 | done | ||
3221 | |||
3222 | ;; | ||
3223 | esac | ||
3224 | fi | ||
3225 | SED=$ac_cv_path_SED | ||
3226 | |||
3227 | if test -n "$SED"; then | ||
3228 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3229 | echo "${ECHO_T}$SED" >&6 | ||
3230 | else | ||
3231 | echo "$as_me:$LINENO: result: no" >&5 | ||
3232 | echo "${ECHO_T}no" >&6 | ||
3233 | fi | ||
3234 | |||
3235 | |||
3236 | # Extract the first word of "ent", so it can be a program name with args. | ||
3237 | set dummy ent; ac_word=$2 | ||
3238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3240 | if test "${ac_cv_path_ENT+set}" = set; then | ||
3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3242 | else | ||
3243 | case $ENT in | ||
3244 | [\\/]* | ?:[\\/]*) | ||
3245 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
3246 | ;; | ||
3247 | *) | ||
3248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3249 | for as_dir in $PATH | ||
3250 | do | ||
3251 | IFS=$as_save_IFS | ||
3252 | test -z "$as_dir" && as_dir=. | ||
3253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3255 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
3256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3257 | break 2 | ||
3258 | fi | ||
3259 | done | ||
3260 | done | ||
3261 | |||
3262 | ;; | ||
3263 | esac | ||
3264 | fi | ||
3265 | ENT=$ac_cv_path_ENT | ||
3266 | |||
3267 | if test -n "$ENT"; then | ||
3268 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
3269 | echo "${ECHO_T}$ENT" >&6 | ||
3270 | else | ||
3271 | echo "$as_me:$LINENO: result: no" >&5 | ||
3272 | echo "${ECHO_T}no" >&6 | ||
3273 | fi | ||
3274 | |||
3275 | |||
3276 | # Extract the first word of "bash", so it can be a program name with args. | ||
3277 | set dummy bash; ac_word=$2 | ||
3278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3280 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3282 | else | ||
3283 | case $TEST_MINUS_S_SH in | ||
3284 | [\\/]* | ?:[\\/]*) | ||
3285 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3286 | ;; | ||
3287 | *) | ||
3288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3289 | for as_dir in $PATH | ||
3290 | do | ||
3291 | IFS=$as_save_IFS | ||
3292 | test -z "$as_dir" && as_dir=. | ||
3293 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3295 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3297 | break 2 | ||
3298 | fi | ||
3299 | done | ||
3300 | done | ||
3301 | |||
3302 | ;; | ||
3303 | esac | ||
3304 | fi | ||
3305 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3306 | |||
3307 | if test -n "$TEST_MINUS_S_SH"; then | ||
3308 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3309 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3310 | else | ||
3311 | echo "$as_me:$LINENO: result: no" >&5 | ||
3312 | echo "${ECHO_T}no" >&6 | ||
3313 | fi | ||
3314 | |||
3315 | # Extract the first word of "ksh", so it can be a program name with args. | ||
3316 | set dummy ksh; ac_word=$2 | ||
3317 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3319 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3321 | else | ||
3322 | case $TEST_MINUS_S_SH in | ||
3323 | [\\/]* | ?:[\\/]*) | ||
3324 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3325 | ;; | ||
3326 | *) | ||
3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3328 | for as_dir in $PATH | ||
3329 | do | ||
3330 | IFS=$as_save_IFS | ||
3331 | test -z "$as_dir" && as_dir=. | ||
3332 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3334 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3336 | break 2 | ||
3337 | fi | ||
3338 | done | ||
3339 | done | ||
3340 | |||
3341 | ;; | ||
3342 | esac | ||
3343 | fi | ||
3344 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3345 | |||
3346 | if test -n "$TEST_MINUS_S_SH"; then | ||
3347 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3348 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3349 | else | ||
3350 | echo "$as_me:$LINENO: result: no" >&5 | ||
3351 | echo "${ECHO_T}no" >&6 | ||
3352 | fi | ||
3353 | |||
3354 | # Extract the first word of "sh", so it can be a program name with args. | ||
3355 | set dummy sh; ac_word=$2 | ||
3356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3358 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3360 | else | ||
3361 | case $TEST_MINUS_S_SH in | ||
3362 | [\\/]* | ?:[\\/]*) | ||
3363 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3364 | ;; | ||
3365 | *) | ||
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3367 | for as_dir in $PATH | ||
3368 | do | ||
3369 | IFS=$as_save_IFS | ||
3370 | test -z "$as_dir" && as_dir=. | ||
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3373 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3375 | break 2 | ||
3376 | fi | ||
3377 | done | ||
3378 | done | ||
3379 | |||
3380 | ;; | ||
3381 | esac | ||
3382 | fi | ||
3383 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3384 | |||
3385 | if test -n "$TEST_MINUS_S_SH"; then | ||
3386 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3387 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3388 | else | ||
3389 | echo "$as_me:$LINENO: result: no" >&5 | ||
3390 | echo "${ECHO_T}no" >&6 | ||
3391 | fi | ||
3392 | |||
3393 | # Extract the first word of "sh", so it can be a program name with args. | ||
3394 | set dummy sh; ac_word=$2 | ||
3395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3397 | if test "${ac_cv_path_SH+set}" = set; then | ||
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3399 | else | ||
3400 | case $SH in | ||
3401 | [\\/]* | ?:[\\/]*) | ||
3402 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
3403 | ;; | ||
3404 | *) | ||
3405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3406 | for as_dir in $PATH | ||
3407 | do | ||
3408 | IFS=$as_save_IFS | ||
3409 | test -z "$as_dir" && as_dir=. | ||
3410 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3412 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3414 | break 2 | ||
3415 | fi | ||
3416 | done | ||
3417 | done | ||
3418 | |||
3419 | ;; | ||
3420 | esac | ||
3421 | fi | ||
3422 | SH=$ac_cv_path_SH | ||
3423 | |||
3424 | if test -n "$SH"; then | ||
3425 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
3426 | echo "${ECHO_T}$SH" >&6 | ||
3427 | else | ||
3428 | echo "$as_me:$LINENO: result: no" >&5 | ||
3429 | echo "${ECHO_T}no" >&6 | ||
3430 | fi | ||
3431 | |||
3432 | TEST_SHELL=sh | ||
3433 | |||
3434 | |||
3435 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
3436 | set dummy groupadd; ac_word=$2 | ||
3437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3439 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3441 | else | ||
3442 | case $PATH_GROUPADD_PROG in | ||
3443 | [\\/]* | ?:[\\/]*) | ||
3444 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
3445 | ;; | ||
3446 | *) | ||
3447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3448 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3449 | do | ||
3450 | IFS=$as_save_IFS | ||
3451 | test -z "$as_dir" && as_dir=. | ||
3452 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3454 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3456 | break 2 | ||
3457 | fi | ||
3458 | done | ||
3459 | done | ||
3460 | |||
3461 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
3462 | ;; | ||
3463 | esac | ||
3464 | fi | ||
3465 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
3466 | |||
3467 | if test -n "$PATH_GROUPADD_PROG"; then | ||
3468 | echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
3469 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6 | ||
3470 | else | ||
3471 | echo "$as_me:$LINENO: result: no" >&5 | ||
3472 | echo "${ECHO_T}no" >&6 | ||
3473 | fi | ||
3474 | |||
3475 | # Extract the first word of "useradd", so it can be a program name with args. | ||
3476 | set dummy useradd; ac_word=$2 | ||
3477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3479 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
3480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3481 | else | ||
3482 | case $PATH_USERADD_PROG in | ||
3483 | [\\/]* | ?:[\\/]*) | ||
3484 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
3485 | ;; | ||
3486 | *) | ||
3487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3488 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3489 | do | ||
3490 | IFS=$as_save_IFS | ||
3491 | test -z "$as_dir" && as_dir=. | ||
3492 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3494 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3496 | break 2 | ||
3497 | fi | ||
3498 | done | ||
3499 | done | ||
3500 | |||
3501 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
3502 | ;; | ||
3503 | esac | ||
3504 | fi | ||
3505 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
3506 | |||
3507 | if test -n "$PATH_USERADD_PROG"; then | ||
3508 | echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
3509 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6 | ||
3510 | else | ||
3511 | echo "$as_me:$LINENO: result: no" >&5 | ||
3512 | echo "${ECHO_T}no" >&6 | ||
3513 | fi | ||
3514 | |||
3515 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
3516 | set dummy pkgmk; ac_word=$2 | ||
3517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3519 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3521 | else | ||
3522 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3523 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
3524 | else | ||
3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3526 | for as_dir in $PATH | ||
3527 | do | ||
3528 | IFS=$as_save_IFS | ||
3529 | test -z "$as_dir" && as_dir=. | ||
3530 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3532 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
3533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3534 | break 2 | ||
3535 | fi | ||
3536 | done | ||
3537 | done | ||
3538 | |||
3539 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
3540 | fi | ||
3541 | fi | ||
3542 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
3543 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3544 | echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
3545 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6 | ||
3546 | else | ||
3547 | echo "$as_me:$LINENO: result: no" >&5 | ||
3548 | echo "${ECHO_T}no" >&6 | ||
3549 | fi | ||
3550 | |||
3551 | |||
3552 | # System features | ||
3553 | # Check whether --enable-largefile or --disable-largefile was given. | ||
3554 | if test "${enable_largefile+set}" = set; then | ||
3555 | enableval="$enable_largefile" | ||
3556 | |||
3557 | fi; | ||
3558 | if test "$enable_largefile" != no; then | ||
3559 | |||
3560 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
3561 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
3562 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3564 | else | ||
3565 | ac_cv_sys_largefile_CC=no | ||
3566 | if test "$GCC" != yes; then | ||
3567 | ac_save_CC=$CC | ||
3568 | while :; do | ||
3569 | # IRIX 6.2 and later do not support large files by default, | ||
3570 | # so use the C compiler's -n32 option if that helps. | ||
3571 | cat >conftest.$ac_ext <<_ACEOF | ||
3572 | /* confdefs.h. */ | ||
3573 | _ACEOF | ||
3574 | cat confdefs.h >>conftest.$ac_ext | ||
3575 | cat >>conftest.$ac_ext <<_ACEOF | ||
3576 | /* end confdefs.h. */ | ||
3577 | #include <sys/types.h> | ||
3578 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3579 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3580 | since some C++ compilers masquerading as C compilers | ||
3581 | incorrectly reject 9223372036854775807. */ | ||
3582 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3583 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3584 | && LARGE_OFF_T % 2147483647 == 1) | ||
3585 | ? 1 : -1]; | ||
3586 | int | ||
3587 | main () | ||
3588 | { | ||
3589 | |||
3590 | ; | ||
3591 | return 0; | ||
3592 | } | ||
3593 | _ACEOF | ||
3594 | rm -f conftest.$ac_objext | ||
3595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3596 | (eval $ac_compile) 2>conftest.er1 | ||
3597 | ac_status=$? | ||
3598 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3599 | rm -f conftest.er1 | ||
3600 | cat conftest.err >&5 | ||
3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3602 | (exit $ac_status); } && | ||
3603 | { ac_try='test -z "$ac_c_werror_flag" | ||
3604 | || test ! -s conftest.err' | ||
3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3606 | (eval $ac_try) 2>&5 | ||
3607 | ac_status=$? | ||
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3609 | (exit $ac_status); }; } && | ||
3610 | { ac_try='test -s conftest.$ac_objext' | ||
3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3612 | (eval $ac_try) 2>&5 | ||
3613 | ac_status=$? | ||
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3615 | (exit $ac_status); }; }; then | ||
3616 | break | ||
3617 | else | ||
3618 | echo "$as_me: failed program was:" >&5 | ||
3619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3620 | |||
3621 | fi | ||
3622 | rm -f conftest.err conftest.$ac_objext | ||
3623 | CC="$CC -n32" | ||
3624 | rm -f conftest.$ac_objext | ||
3625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3626 | (eval $ac_compile) 2>conftest.er1 | ||
3627 | ac_status=$? | ||
3628 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3629 | rm -f conftest.er1 | ||
3630 | cat conftest.err >&5 | ||
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3632 | (exit $ac_status); } && | ||
3633 | { ac_try='test -z "$ac_c_werror_flag" | ||
3634 | || test ! -s conftest.err' | ||
3635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3636 | (eval $ac_try) 2>&5 | ||
3637 | ac_status=$? | ||
3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3639 | (exit $ac_status); }; } && | ||
3640 | { ac_try='test -s conftest.$ac_objext' | ||
3641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3642 | (eval $ac_try) 2>&5 | ||
3643 | ac_status=$? | ||
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3645 | (exit $ac_status); }; }; then | ||
3646 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3647 | else | ||
3648 | echo "$as_me: failed program was:" >&5 | ||
3649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3650 | |||
3651 | fi | ||
3652 | rm -f conftest.err conftest.$ac_objext | ||
3653 | break | ||
3654 | done | ||
3655 | CC=$ac_save_CC | ||
3656 | rm -f conftest.$ac_ext | ||
3657 | fi | ||
3658 | fi | ||
3659 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3660 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3661 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3662 | CC=$CC$ac_cv_sys_largefile_CC | ||
3663 | fi | ||
3664 | |||
3665 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3666 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3667 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3669 | else | ||
3670 | while :; do | ||
3671 | ac_cv_sys_file_offset_bits=no | ||
3672 | cat >conftest.$ac_ext <<_ACEOF | ||
3673 | /* confdefs.h. */ | ||
3674 | _ACEOF | ||
3675 | cat confdefs.h >>conftest.$ac_ext | ||
3676 | cat >>conftest.$ac_ext <<_ACEOF | ||
3677 | /* end confdefs.h. */ | ||
3678 | #include <sys/types.h> | ||
3679 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3680 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3681 | since some C++ compilers masquerading as C compilers | ||
3682 | incorrectly reject 9223372036854775807. */ | ||
3683 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3684 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3685 | && LARGE_OFF_T % 2147483647 == 1) | ||
3686 | ? 1 : -1]; | ||
3687 | int | ||
3688 | main () | ||
3689 | { | ||
3690 | |||
3691 | ; | ||
3692 | return 0; | ||
3693 | } | ||
3694 | _ACEOF | ||
3695 | rm -f conftest.$ac_objext | ||
3696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3697 | (eval $ac_compile) 2>conftest.er1 | ||
3698 | ac_status=$? | ||
3699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3700 | rm -f conftest.er1 | ||
3701 | cat conftest.err >&5 | ||
3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3703 | (exit $ac_status); } && | ||
3704 | { ac_try='test -z "$ac_c_werror_flag" | ||
3705 | || test ! -s conftest.err' | ||
3706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3707 | (eval $ac_try) 2>&5 | ||
3708 | ac_status=$? | ||
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3710 | (exit $ac_status); }; } && | ||
3711 | { ac_try='test -s conftest.$ac_objext' | ||
3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3713 | (eval $ac_try) 2>&5 | ||
3714 | ac_status=$? | ||
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3716 | (exit $ac_status); }; }; then | ||
3717 | break | ||
3718 | else | ||
3719 | echo "$as_me: failed program was:" >&5 | ||
3720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3721 | |||
3722 | fi | ||
3723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3724 | cat >conftest.$ac_ext <<_ACEOF | ||
3725 | /* confdefs.h. */ | ||
3726 | _ACEOF | ||
3727 | cat confdefs.h >>conftest.$ac_ext | ||
3728 | cat >>conftest.$ac_ext <<_ACEOF | ||
3729 | /* end confdefs.h. */ | ||
3730 | #define _FILE_OFFSET_BITS 64 | ||
3731 | #include <sys/types.h> | ||
3732 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3733 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3734 | since some C++ compilers masquerading as C compilers | ||
3735 | incorrectly reject 9223372036854775807. */ | ||
3736 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3737 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3738 | && LARGE_OFF_T % 2147483647 == 1) | ||
3739 | ? 1 : -1]; | ||
3740 | int | ||
3741 | main () | ||
3742 | { | ||
3743 | |||
3744 | ; | ||
3745 | return 0; | ||
3746 | } | ||
3747 | _ACEOF | ||
3748 | rm -f conftest.$ac_objext | ||
3749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3750 | (eval $ac_compile) 2>conftest.er1 | ||
3751 | ac_status=$? | ||
3752 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3753 | rm -f conftest.er1 | ||
3754 | cat conftest.err >&5 | ||
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3756 | (exit $ac_status); } && | ||
3757 | { ac_try='test -z "$ac_c_werror_flag" | ||
3758 | || test ! -s conftest.err' | ||
3759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3760 | (eval $ac_try) 2>&5 | ||
3761 | ac_status=$? | ||
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3763 | (exit $ac_status); }; } && | ||
3764 | { ac_try='test -s conftest.$ac_objext' | ||
3765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3766 | (eval $ac_try) 2>&5 | ||
3767 | ac_status=$? | ||
3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3769 | (exit $ac_status); }; }; then | ||
3770 | ac_cv_sys_file_offset_bits=64; break | ||
3771 | else | ||
3772 | echo "$as_me: failed program was:" >&5 | ||
3773 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3774 | |||
3775 | fi | ||
3776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3777 | break | ||
3778 | done | ||
3779 | fi | ||
3780 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3781 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3782 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3783 | |||
3784 | cat >>confdefs.h <<_ACEOF | ||
3785 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3786 | _ACEOF | ||
3787 | |||
3788 | fi | ||
3789 | rm -f conftest* | ||
3790 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3791 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3792 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3794 | else | ||
3795 | while :; do | ||
3796 | ac_cv_sys_large_files=no | ||
3797 | cat >conftest.$ac_ext <<_ACEOF | ||
3798 | /* confdefs.h. */ | ||
3799 | _ACEOF | ||
3800 | cat confdefs.h >>conftest.$ac_ext | ||
3801 | cat >>conftest.$ac_ext <<_ACEOF | ||
3802 | /* end confdefs.h. */ | ||
3803 | #include <sys/types.h> | ||
3804 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3805 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3806 | since some C++ compilers masquerading as C compilers | ||
3807 | incorrectly reject 9223372036854775807. */ | ||
3808 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3809 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3810 | && LARGE_OFF_T % 2147483647 == 1) | ||
3811 | ? 1 : -1]; | ||
3812 | int | ||
3813 | main () | ||
3814 | { | ||
3815 | |||
3816 | ; | ||
3817 | return 0; | ||
3818 | } | ||
3819 | _ACEOF | ||
3820 | rm -f conftest.$ac_objext | ||
3821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3822 | (eval $ac_compile) 2>conftest.er1 | ||
3823 | ac_status=$? | ||
3824 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3825 | rm -f conftest.er1 | ||
3826 | cat conftest.err >&5 | ||
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3828 | (exit $ac_status); } && | ||
3829 | { ac_try='test -z "$ac_c_werror_flag" | ||
3830 | || test ! -s conftest.err' | ||
3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3832 | (eval $ac_try) 2>&5 | ||
3833 | ac_status=$? | ||
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3835 | (exit $ac_status); }; } && | ||
3836 | { ac_try='test -s conftest.$ac_objext' | ||
3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3838 | (eval $ac_try) 2>&5 | ||
3839 | ac_status=$? | ||
3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3841 | (exit $ac_status); }; }; then | ||
3842 | break | ||
3843 | else | ||
3844 | echo "$as_me: failed program was:" >&5 | ||
3845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3846 | |||
3847 | fi | ||
3848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3849 | cat >conftest.$ac_ext <<_ACEOF | ||
3850 | /* confdefs.h. */ | ||
3851 | _ACEOF | ||
3852 | cat confdefs.h >>conftest.$ac_ext | ||
3853 | cat >>conftest.$ac_ext <<_ACEOF | ||
3854 | /* end confdefs.h. */ | ||
3855 | #define _LARGE_FILES 1 | ||
3856 | #include <sys/types.h> | ||
3857 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3858 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3859 | since some C++ compilers masquerading as C compilers | ||
3860 | incorrectly reject 9223372036854775807. */ | ||
3861 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3862 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3863 | && LARGE_OFF_T % 2147483647 == 1) | ||
3864 | ? 1 : -1]; | ||
3865 | int | ||
3866 | main () | ||
3867 | { | ||
3868 | |||
3869 | ; | ||
3870 | return 0; | ||
3871 | } | ||
3872 | _ACEOF | ||
3873 | rm -f conftest.$ac_objext | ||
3874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3875 | (eval $ac_compile) 2>conftest.er1 | ||
3876 | ac_status=$? | ||
3877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3878 | rm -f conftest.er1 | ||
3879 | cat conftest.err >&5 | ||
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3881 | (exit $ac_status); } && | ||
3882 | { ac_try='test -z "$ac_c_werror_flag" | ||
3883 | || test ! -s conftest.err' | ||
3884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3885 | (eval $ac_try) 2>&5 | ||
3886 | ac_status=$? | ||
3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3888 | (exit $ac_status); }; } && | ||
3889 | { ac_try='test -s conftest.$ac_objext' | ||
3890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3891 | (eval $ac_try) 2>&5 | ||
3892 | ac_status=$? | ||
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3894 | (exit $ac_status); }; }; then | ||
3895 | ac_cv_sys_large_files=1; break | ||
3896 | else | ||
3897 | echo "$as_me: failed program was:" >&5 | ||
3898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3899 | |||
3900 | fi | ||
3901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3902 | break | ||
3903 | done | ||
3904 | fi | ||
3905 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3906 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3907 | if test "$ac_cv_sys_large_files" != no; then | ||
3908 | |||
3909 | cat >>confdefs.h <<_ACEOF | ||
3910 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3911 | _ACEOF | ||
3912 | |||
3913 | fi | ||
3914 | rm -f conftest* | ||
3915 | fi | ||
3916 | |||
3917 | |||
3918 | if test -z "$AR" ; then | ||
3919 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3920 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3921 | { (exit 1); exit 1; }; } | ||
3922 | fi | ||
3923 | |||
3924 | # Use LOGIN_PROGRAM from environment if possible | ||
3925 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3926 | cat >>confdefs.h <<_ACEOF | ||
3927 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3928 | _ACEOF | ||
3929 | |||
3930 | else | ||
3931 | # Search for login | ||
3932 | # Extract the first word of "login", so it can be a program name with args. | ||
3933 | set dummy login; ac_word=$2 | ||
3934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3936 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3938 | else | ||
3939 | case $LOGIN_PROGRAM_FALLBACK in | ||
3940 | [\\/]* | ?:[\\/]*) | ||
3941 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3942 | ;; | ||
3943 | *) | ||
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3945 | for as_dir in $PATH | ||
3946 | do | ||
3947 | IFS=$as_save_IFS | ||
3948 | test -z "$as_dir" && as_dir=. | ||
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3951 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3953 | break 2 | ||
3954 | fi | ||
3955 | done | ||
3956 | done | ||
3957 | |||
3958 | ;; | ||
3959 | esac | ||
3960 | fi | ||
3961 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3962 | |||
3963 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3964 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3965 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3966 | else | ||
3967 | echo "$as_me:$LINENO: result: no" >&5 | ||
3968 | echo "${ECHO_T}no" >&6 | ||
3969 | fi | ||
3970 | |||
3971 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3972 | cat >>confdefs.h <<_ACEOF | ||
3973 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3974 | _ACEOF | ||
3975 | |||
3976 | fi | ||
3977 | fi | ||
3978 | |||
3979 | # Extract the first word of "passwd", so it can be a program name with args. | ||
3980 | set dummy passwd; ac_word=$2 | ||
3981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3983 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
3984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3985 | else | ||
3986 | case $PATH_PASSWD_PROG in | ||
3987 | [\\/]* | ?:[\\/]*) | ||
3988 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
3989 | ;; | ||
3990 | *) | ||
3991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3992 | for as_dir in $PATH | ||
3993 | do | ||
3994 | IFS=$as_save_IFS | ||
3995 | test -z "$as_dir" && as_dir=. | ||
3996 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3998 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4000 | break 2 | ||
4001 | fi | ||
4002 | done | ||
4003 | done | ||
4004 | |||
4005 | ;; | ||
4006 | esac | ||
4007 | fi | ||
4008 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
4009 | |||
4010 | if test -n "$PATH_PASSWD_PROG"; then | ||
4011 | echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
4012 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
4013 | else | ||
4014 | echo "$as_me:$LINENO: result: no" >&5 | ||
4015 | echo "${ECHO_T}no" >&6 | ||
4016 | fi | ||
4017 | |||
4018 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
4019 | cat >>confdefs.h <<_ACEOF | ||
4020 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
4021 | _ACEOF | ||
4022 | |||
4023 | fi | ||
4024 | |||
4025 | if test -z "$LD" ; then | ||
4026 | LD=$CC | ||
4027 | fi | ||
4028 | |||
4029 | |||
4030 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
4031 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
4032 | if test "${ac_cv_c_inline+set}" = set; then | ||
4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4034 | else | ||
4035 | ac_cv_c_inline=no | ||
4036 | for ac_kw in inline __inline__ __inline; do | ||
4037 | cat >conftest.$ac_ext <<_ACEOF | ||
4038 | /* confdefs.h. */ | ||
4039 | _ACEOF | ||
4040 | cat confdefs.h >>conftest.$ac_ext | ||
4041 | cat >>conftest.$ac_ext <<_ACEOF | ||
4042 | /* end confdefs.h. */ | ||
4043 | #ifndef __cplusplus | ||
4044 | typedef int foo_t; | ||
4045 | static $ac_kw foo_t static_foo () {return 0; } | ||
4046 | $ac_kw foo_t foo () {return 0; } | ||
4047 | #endif | ||
4048 | |||
4049 | _ACEOF | ||
4050 | rm -f conftest.$ac_objext | ||
4051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4052 | (eval $ac_compile) 2>conftest.er1 | ||
4053 | ac_status=$? | ||
4054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4055 | rm -f conftest.er1 | ||
4056 | cat conftest.err >&5 | ||
4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4058 | (exit $ac_status); } && | ||
4059 | { ac_try='test -z "$ac_c_werror_flag" | ||
4060 | || test ! -s conftest.err' | ||
4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4062 | (eval $ac_try) 2>&5 | ||
4063 | ac_status=$? | ||
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4065 | (exit $ac_status); }; } && | ||
4066 | { ac_try='test -s conftest.$ac_objext' | ||
4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4068 | (eval $ac_try) 2>&5 | ||
4069 | ac_status=$? | ||
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4071 | (exit $ac_status); }; }; then | ||
4072 | ac_cv_c_inline=$ac_kw; break | ||
4073 | else | ||
4074 | echo "$as_me: failed program was:" >&5 | ||
4075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4076 | |||
4077 | fi | ||
4078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4079 | done | ||
4080 | |||
4081 | fi | ||
4082 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
4083 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
4084 | |||
4085 | |||
4086 | case $ac_cv_c_inline in | ||
4087 | inline | yes) ;; | ||
4088 | *) | ||
4089 | case $ac_cv_c_inline in | ||
4090 | no) ac_val=;; | ||
4091 | *) ac_val=$ac_cv_c_inline;; | ||
4092 | esac | ||
4093 | cat >>confdefs.h <<_ACEOF | ||
4094 | #ifndef __cplusplus | ||
4095 | #define inline $ac_val | ||
4096 | #endif | ||
4097 | _ACEOF | ||
4098 | ;; | ||
4099 | esac | ||
4100 | |||
4101 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
4102 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
4103 | fi | ||
4104 | |||
4105 | |||
4106 | # Check whether --with-rpath or --without-rpath was given. | ||
4107 | if test "${with_rpath+set}" = set; then | ||
4108 | withval="$with_rpath" | ||
4109 | |||
4110 | if test "x$withval" = "xno" ; then | ||
4111 | need_dash_r="" | ||
4112 | fi | ||
4113 | if test "x$withval" = "xyes" ; then | ||
4114 | need_dash_r=1 | ||
4115 | fi | ||
4116 | |||
4117 | |||
4118 | fi; | ||
4119 | |||
4120 | # Check for some target-specific stuff | ||
4121 | case "$host" in | ||
4122 | *-*-aix*) | ||
4123 | echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
4124 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
4125 | if (test -z "$blibpath"); then | ||
4126 | blibpath="/usr/lib:/lib" | ||
4127 | fi | ||
4128 | saved_LDFLAGS="$LDFLAGS" | ||
4129 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
4130 | if (test -z "$blibflags"); then | ||
4131 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
4132 | cat >conftest.$ac_ext <<_ACEOF | ||
4133 | /* confdefs.h. */ | ||
4134 | _ACEOF | ||
4135 | cat confdefs.h >>conftest.$ac_ext | ||
4136 | cat >>conftest.$ac_ext <<_ACEOF | ||
4137 | /* end confdefs.h. */ | ||
4138 | |||
4139 | int | ||
4140 | main () | ||
4141 | { | ||
4142 | |||
4143 | ; | ||
4144 | return 0; | ||
4145 | } | ||
4146 | _ACEOF | ||
4147 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4149 | (eval $ac_link) 2>conftest.er1 | ||
4150 | ac_status=$? | ||
4151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4152 | rm -f conftest.er1 | ||
4153 | cat conftest.err >&5 | ||
4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4155 | (exit $ac_status); } && | ||
4156 | { ac_try='test -z "$ac_c_werror_flag" | ||
4157 | || test ! -s conftest.err' | ||
4158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4159 | (eval $ac_try) 2>&5 | ||
4160 | ac_status=$? | ||
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4162 | (exit $ac_status); }; } && | ||
4163 | { ac_try='test -s conftest$ac_exeext' | ||
4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4165 | (eval $ac_try) 2>&5 | ||
4166 | ac_status=$? | ||
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4168 | (exit $ac_status); }; }; then | ||
4169 | blibflags=$tryflags | ||
4170 | else | ||
4171 | echo "$as_me: failed program was:" >&5 | ||
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4173 | |||
4174 | fi | ||
4175 | rm -f conftest.err conftest.$ac_objext \ | ||
4176 | conftest$ac_exeext conftest.$ac_ext | ||
4177 | fi | ||
4178 | done | ||
4179 | if (test -z "$blibflags"); then | ||
4180 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4181 | echo "${ECHO_T}not found" >&6 | ||
4182 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
4183 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
4184 | { (exit 1); exit 1; }; } | ||
4185 | else | ||
4186 | echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
4187 | echo "${ECHO_T}$blibflags" >&6 | ||
4188 | fi | ||
4189 | LDFLAGS="$saved_LDFLAGS" | ||
4190 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
4191 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
4192 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4194 | else | ||
4195 | cat >conftest.$ac_ext <<_ACEOF | ||
4196 | /* confdefs.h. */ | ||
4197 | _ACEOF | ||
4198 | cat confdefs.h >>conftest.$ac_ext | ||
4199 | cat >>conftest.$ac_ext <<_ACEOF | ||
4200 | /* end confdefs.h. */ | ||
4201 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
4202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4203 | #define authenticate innocuous_authenticate | ||
4204 | |||
4205 | /* System header to define __stub macros and hopefully few prototypes, | ||
4206 | which can conflict with char authenticate (); below. | ||
4207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4208 | <limits.h> exists even on freestanding compilers. */ | ||
4209 | |||
4210 | #ifdef __STDC__ | ||
4211 | # include <limits.h> | ||
4212 | #else | ||
4213 | # include <assert.h> | ||
4214 | #endif | ||
4215 | |||
4216 | #undef authenticate | ||
4217 | |||
4218 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4219 | #ifdef __cplusplus | ||
4220 | extern "C" | ||
4221 | { | ||
4222 | #endif | ||
4223 | /* We use char because int might match the return type of a gcc2 | ||
4224 | builtin and then its argument prototype would still apply. */ | ||
4225 | char authenticate (); | ||
4226 | /* The GNU C library defines this for functions which it implements | ||
4227 | to always fail with ENOSYS. Some functions are actually named | ||
4228 | something starting with __ and the normal name is an alias. */ | ||
4229 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
4230 | choke me | ||
4231 | #else | ||
4232 | char (*f) () = authenticate; | ||
4233 | #endif | ||
4234 | #ifdef __cplusplus | ||
4235 | } | ||
4236 | #endif | ||
4237 | |||
4238 | int | ||
4239 | main () | ||
4240 | { | ||
4241 | return f != authenticate; | ||
4242 | ; | ||
4243 | return 0; | ||
4244 | } | ||
4245 | _ACEOF | ||
4246 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4248 | (eval $ac_link) 2>conftest.er1 | ||
4249 | ac_status=$? | ||
4250 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4251 | rm -f conftest.er1 | ||
4252 | cat conftest.err >&5 | ||
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4254 | (exit $ac_status); } && | ||
4255 | { ac_try='test -z "$ac_c_werror_flag" | ||
4256 | || test ! -s conftest.err' | ||
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4258 | (eval $ac_try) 2>&5 | ||
4259 | ac_status=$? | ||
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4261 | (exit $ac_status); }; } && | ||
4262 | { ac_try='test -s conftest$ac_exeext' | ||
4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4264 | (eval $ac_try) 2>&5 | ||
4265 | ac_status=$? | ||
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4267 | (exit $ac_status); }; }; then | ||
4268 | ac_cv_func_authenticate=yes | ||
4269 | else | ||
4270 | echo "$as_me: failed program was:" >&5 | ||
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4272 | |||
4273 | ac_cv_func_authenticate=no | ||
4274 | fi | ||
4275 | rm -f conftest.err conftest.$ac_objext \ | ||
4276 | conftest$ac_exeext conftest.$ac_ext | ||
4277 | fi | ||
4278 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
4279 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
4280 | if test $ac_cv_func_authenticate = yes; then | ||
4281 | cat >>confdefs.h <<\_ACEOF | ||
4282 | #define WITH_AIXAUTHENTICATE 1 | ||
4283 | _ACEOF | ||
4284 | |||
4285 | else | ||
4286 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
4287 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
4288 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4290 | else | ||
4291 | ac_check_lib_save_LIBS=$LIBS | ||
4292 | LIBS="-ls $LIBS" | ||
4293 | cat >conftest.$ac_ext <<_ACEOF | ||
4294 | /* confdefs.h. */ | ||
4295 | _ACEOF | ||
4296 | cat confdefs.h >>conftest.$ac_ext | ||
4297 | cat >>conftest.$ac_ext <<_ACEOF | ||
4298 | /* end confdefs.h. */ | ||
4299 | |||
4300 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4301 | #ifdef __cplusplus | ||
4302 | extern "C" | ||
4303 | #endif | ||
4304 | /* We use char because int might match the return type of a gcc2 | ||
4305 | builtin and then its argument prototype would still apply. */ | ||
4306 | char authenticate (); | ||
4307 | int | ||
4308 | main () | ||
4309 | { | ||
4310 | authenticate (); | ||
4311 | ; | ||
4312 | return 0; | ||
4313 | } | ||
4314 | _ACEOF | ||
4315 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4317 | (eval $ac_link) 2>conftest.er1 | ||
4318 | ac_status=$? | ||
4319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4320 | rm -f conftest.er1 | ||
4321 | cat conftest.err >&5 | ||
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4323 | (exit $ac_status); } && | ||
4324 | { ac_try='test -z "$ac_c_werror_flag" | ||
4325 | || test ! -s conftest.err' | ||
4326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4327 | (eval $ac_try) 2>&5 | ||
4328 | ac_status=$? | ||
4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4330 | (exit $ac_status); }; } && | ||
4331 | { ac_try='test -s conftest$ac_exeext' | ||
4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4333 | (eval $ac_try) 2>&5 | ||
4334 | ac_status=$? | ||
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4336 | (exit $ac_status); }; }; then | ||
4337 | ac_cv_lib_s_authenticate=yes | ||
4338 | else | ||
4339 | echo "$as_me: failed program was:" >&5 | ||
4340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4341 | |||
4342 | ac_cv_lib_s_authenticate=no | ||
4343 | fi | ||
4344 | rm -f conftest.err conftest.$ac_objext \ | ||
4345 | conftest$ac_exeext conftest.$ac_ext | ||
4346 | LIBS=$ac_check_lib_save_LIBS | ||
4347 | fi | ||
4348 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
4349 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
4350 | if test $ac_cv_lib_s_authenticate = yes; then | ||
4351 | cat >>confdefs.h <<\_ACEOF | ||
4352 | #define WITH_AIXAUTHENTICATE 1 | ||
4353 | _ACEOF | ||
4354 | |||
4355 | LIBS="$LIBS -ls" | ||
4356 | |||
4357 | fi | ||
4358 | |||
4359 | |||
4360 | fi | ||
4361 | |||
4362 | echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
4363 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6 | ||
4364 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4366 | else | ||
4367 | cat >conftest.$ac_ext <<_ACEOF | ||
4368 | /* confdefs.h. */ | ||
4369 | _ACEOF | ||
4370 | cat confdefs.h >>conftest.$ac_ext | ||
4371 | cat >>conftest.$ac_ext <<_ACEOF | ||
4372 | /* end confdefs.h. */ | ||
4373 | #include <usersec.h> | ||
4374 | |||
4375 | int | ||
4376 | main () | ||
4377 | { | ||
4378 | #ifndef authenticate | ||
4379 | char *p = (char *) authenticate; | ||
4380 | #endif | ||
4381 | |||
4382 | ; | ||
4383 | return 0; | ||
4384 | } | ||
4385 | _ACEOF | ||
4386 | rm -f conftest.$ac_objext | ||
4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4388 | (eval $ac_compile) 2>conftest.er1 | ||
4389 | ac_status=$? | ||
4390 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4391 | rm -f conftest.er1 | ||
4392 | cat conftest.err >&5 | ||
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4394 | (exit $ac_status); } && | ||
4395 | { ac_try='test -z "$ac_c_werror_flag" | ||
4396 | || test ! -s conftest.err' | ||
4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4398 | (eval $ac_try) 2>&5 | ||
4399 | ac_status=$? | ||
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4401 | (exit $ac_status); }; } && | ||
4402 | { ac_try='test -s conftest.$ac_objext' | ||
4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4404 | (eval $ac_try) 2>&5 | ||
4405 | ac_status=$? | ||
4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4407 | (exit $ac_status); }; }; then | ||
4408 | ac_cv_have_decl_authenticate=yes | ||
4409 | else | ||
4410 | echo "$as_me: failed program was:" >&5 | ||
4411 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4412 | |||
4413 | ac_cv_have_decl_authenticate=no | ||
4414 | fi | ||
4415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4416 | fi | ||
4417 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
4418 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6 | ||
4419 | if test $ac_cv_have_decl_authenticate = yes; then | ||
4420 | |||
4421 | cat >>confdefs.h <<_ACEOF | ||
4422 | #define HAVE_DECL_AUTHENTICATE 1 | ||
4423 | _ACEOF | ||
4424 | |||
4425 | |||
4426 | else | ||
4427 | cat >>confdefs.h <<_ACEOF | ||
4428 | #define HAVE_DECL_AUTHENTICATE 0 | ||
4429 | _ACEOF | ||
4430 | |||
4431 | |||
4432 | fi | ||
4433 | echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
4434 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6 | ||
4435 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4437 | else | ||
4438 | cat >conftest.$ac_ext <<_ACEOF | ||
4439 | /* confdefs.h. */ | ||
4440 | _ACEOF | ||
4441 | cat confdefs.h >>conftest.$ac_ext | ||
4442 | cat >>conftest.$ac_ext <<_ACEOF | ||
4443 | /* end confdefs.h. */ | ||
4444 | #include <usersec.h> | ||
4445 | |||
4446 | int | ||
4447 | main () | ||
4448 | { | ||
4449 | #ifndef loginrestrictions | ||
4450 | char *p = (char *) loginrestrictions; | ||
4451 | #endif | ||
4452 | |||
4453 | ; | ||
4454 | return 0; | ||
4455 | } | ||
4456 | _ACEOF | ||
4457 | rm -f conftest.$ac_objext | ||
4458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4459 | (eval $ac_compile) 2>conftest.er1 | ||
4460 | ac_status=$? | ||
4461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4462 | rm -f conftest.er1 | ||
4463 | cat conftest.err >&5 | ||
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4465 | (exit $ac_status); } && | ||
4466 | { ac_try='test -z "$ac_c_werror_flag" | ||
4467 | || test ! -s conftest.err' | ||
4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4469 | (eval $ac_try) 2>&5 | ||
4470 | ac_status=$? | ||
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4472 | (exit $ac_status); }; } && | ||
4473 | { ac_try='test -s conftest.$ac_objext' | ||
4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4475 | (eval $ac_try) 2>&5 | ||
4476 | ac_status=$? | ||
4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4478 | (exit $ac_status); }; }; then | ||
4479 | ac_cv_have_decl_loginrestrictions=yes | ||
4480 | else | ||
4481 | echo "$as_me: failed program was:" >&5 | ||
4482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4483 | |||
4484 | ac_cv_have_decl_loginrestrictions=no | ||
4485 | fi | ||
4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4487 | fi | ||
4488 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
4489 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6 | ||
4490 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
4491 | |||
4492 | cat >>confdefs.h <<_ACEOF | ||
4493 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
4494 | _ACEOF | ||
4495 | |||
4496 | |||
4497 | else | ||
4498 | cat >>confdefs.h <<_ACEOF | ||
4499 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
4500 | _ACEOF | ||
4501 | |||
4502 | |||
4503 | fi | ||
4504 | echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
4505 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6 | ||
4506 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
4507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4508 | else | ||
4509 | cat >conftest.$ac_ext <<_ACEOF | ||
4510 | /* confdefs.h. */ | ||
4511 | _ACEOF | ||
4512 | cat confdefs.h >>conftest.$ac_ext | ||
4513 | cat >>conftest.$ac_ext <<_ACEOF | ||
4514 | /* end confdefs.h. */ | ||
4515 | #include <usersec.h> | ||
4516 | |||
4517 | int | ||
4518 | main () | ||
4519 | { | ||
4520 | #ifndef loginsuccess | ||
4521 | char *p = (char *) loginsuccess; | ||
4522 | #endif | ||
4523 | |||
4524 | ; | ||
4525 | return 0; | ||
4526 | } | ||
4527 | _ACEOF | ||
4528 | rm -f conftest.$ac_objext | ||
4529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4530 | (eval $ac_compile) 2>conftest.er1 | ||
4531 | ac_status=$? | ||
4532 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4533 | rm -f conftest.er1 | ||
4534 | cat conftest.err >&5 | ||
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4536 | (exit $ac_status); } && | ||
4537 | { ac_try='test -z "$ac_c_werror_flag" | ||
4538 | || test ! -s conftest.err' | ||
4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4540 | (eval $ac_try) 2>&5 | ||
4541 | ac_status=$? | ||
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4543 | (exit $ac_status); }; } && | ||
4544 | { ac_try='test -s conftest.$ac_objext' | ||
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4546 | (eval $ac_try) 2>&5 | ||
4547 | ac_status=$? | ||
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4549 | (exit $ac_status); }; }; then | ||
4550 | ac_cv_have_decl_loginsuccess=yes | ||
4551 | else | ||
4552 | echo "$as_me: failed program was:" >&5 | ||
4553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4554 | |||
4555 | ac_cv_have_decl_loginsuccess=no | ||
4556 | fi | ||
4557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4558 | fi | ||
4559 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
4560 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6 | ||
4561 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
4562 | |||
4563 | cat >>confdefs.h <<_ACEOF | ||
4564 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
4565 | _ACEOF | ||
4566 | |||
4567 | |||
4568 | else | ||
4569 | cat >>confdefs.h <<_ACEOF | ||
4570 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
4571 | _ACEOF | ||
4572 | |||
4573 | |||
4574 | fi | ||
4575 | echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
4576 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6 | ||
4577 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4579 | else | ||
4580 | cat >conftest.$ac_ext <<_ACEOF | ||
4581 | /* confdefs.h. */ | ||
4582 | _ACEOF | ||
4583 | cat confdefs.h >>conftest.$ac_ext | ||
4584 | cat >>conftest.$ac_ext <<_ACEOF | ||
4585 | /* end confdefs.h. */ | ||
4586 | #include <usersec.h> | ||
4587 | |||
4588 | int | ||
4589 | main () | ||
4590 | { | ||
4591 | #ifndef passwdexpired | ||
4592 | char *p = (char *) passwdexpired; | ||
4593 | #endif | ||
4594 | |||
4595 | ; | ||
4596 | return 0; | ||
4597 | } | ||
4598 | _ACEOF | ||
4599 | rm -f conftest.$ac_objext | ||
4600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4601 | (eval $ac_compile) 2>conftest.er1 | ||
4602 | ac_status=$? | ||
4603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4604 | rm -f conftest.er1 | ||
4605 | cat conftest.err >&5 | ||
4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4607 | (exit $ac_status); } && | ||
4608 | { ac_try='test -z "$ac_c_werror_flag" | ||
4609 | || test ! -s conftest.err' | ||
4610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4611 | (eval $ac_try) 2>&5 | ||
4612 | ac_status=$? | ||
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4614 | (exit $ac_status); }; } && | ||
4615 | { ac_try='test -s conftest.$ac_objext' | ||
4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4617 | (eval $ac_try) 2>&5 | ||
4618 | ac_status=$? | ||
4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4620 | (exit $ac_status); }; }; then | ||
4621 | ac_cv_have_decl_passwdexpired=yes | ||
4622 | else | ||
4623 | echo "$as_me: failed program was:" >&5 | ||
4624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4625 | |||
4626 | ac_cv_have_decl_passwdexpired=no | ||
4627 | fi | ||
4628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4629 | fi | ||
4630 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
4631 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6 | ||
4632 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
4633 | |||
4634 | cat >>confdefs.h <<_ACEOF | ||
4635 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
4636 | _ACEOF | ||
4637 | |||
4638 | |||
4639 | else | ||
4640 | cat >>confdefs.h <<_ACEOF | ||
4641 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
4642 | _ACEOF | ||
4643 | |||
4644 | |||
4645 | fi | ||
4646 | echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
4647 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6 | ||
4648 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4650 | else | ||
4651 | cat >conftest.$ac_ext <<_ACEOF | ||
4652 | /* confdefs.h. */ | ||
4653 | _ACEOF | ||
4654 | cat confdefs.h >>conftest.$ac_ext | ||
4655 | cat >>conftest.$ac_ext <<_ACEOF | ||
4656 | /* end confdefs.h. */ | ||
4657 | #include <usersec.h> | ||
4658 | |||
4659 | int | ||
4660 | main () | ||
4661 | { | ||
4662 | #ifndef setauthdb | ||
4663 | char *p = (char *) setauthdb; | ||
4664 | #endif | ||
4665 | |||
4666 | ; | ||
4667 | return 0; | ||
4668 | } | ||
4669 | _ACEOF | ||
4670 | rm -f conftest.$ac_objext | ||
4671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4672 | (eval $ac_compile) 2>conftest.er1 | ||
4673 | ac_status=$? | ||
4674 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4675 | rm -f conftest.er1 | ||
4676 | cat conftest.err >&5 | ||
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4678 | (exit $ac_status); } && | ||
4679 | { ac_try='test -z "$ac_c_werror_flag" | ||
4680 | || test ! -s conftest.err' | ||
4681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4682 | (eval $ac_try) 2>&5 | ||
4683 | ac_status=$? | ||
4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4685 | (exit $ac_status); }; } && | ||
4686 | { ac_try='test -s conftest.$ac_objext' | ||
4687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4688 | (eval $ac_try) 2>&5 | ||
4689 | ac_status=$? | ||
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4691 | (exit $ac_status); }; }; then | ||
4692 | ac_cv_have_decl_setauthdb=yes | ||
4693 | else | ||
4694 | echo "$as_me: failed program was:" >&5 | ||
4695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4696 | |||
4697 | ac_cv_have_decl_setauthdb=no | ||
4698 | fi | ||
4699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4700 | fi | ||
4701 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
4702 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6 | ||
4703 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
4704 | |||
4705 | cat >>confdefs.h <<_ACEOF | ||
4706 | #define HAVE_DECL_SETAUTHDB 1 | ||
4707 | _ACEOF | ||
4708 | |||
4709 | |||
4710 | else | ||
4711 | cat >>confdefs.h <<_ACEOF | ||
4712 | #define HAVE_DECL_SETAUTHDB 0 | ||
4713 | _ACEOF | ||
4714 | |||
4715 | |||
4716 | fi | ||
4717 | |||
4718 | |||
4719 | echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
4720 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
4721 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4723 | else | ||
4724 | cat >conftest.$ac_ext <<_ACEOF | ||
4725 | /* confdefs.h. */ | ||
4726 | _ACEOF | ||
4727 | cat confdefs.h >>conftest.$ac_ext | ||
4728 | cat >>conftest.$ac_ext <<_ACEOF | ||
4729 | /* end confdefs.h. */ | ||
4730 | #include <usersec.h> | ||
4731 | |||
4732 | |||
4733 | int | ||
4734 | main () | ||
4735 | { | ||
4736 | #ifndef loginfailed | ||
4737 | char *p = (char *) loginfailed; | ||
4738 | #endif | ||
4739 | |||
4740 | ; | ||
4741 | return 0; | ||
4742 | } | ||
4743 | _ACEOF | ||
4744 | rm -f conftest.$ac_objext | ||
4745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4746 | (eval $ac_compile) 2>conftest.er1 | ||
4747 | ac_status=$? | ||
4748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4749 | rm -f conftest.er1 | ||
4750 | cat conftest.err >&5 | ||
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4752 | (exit $ac_status); } && | ||
4753 | { ac_try='test -z "$ac_c_werror_flag" | ||
4754 | || test ! -s conftest.err' | ||
4755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4756 | (eval $ac_try) 2>&5 | ||
4757 | ac_status=$? | ||
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4759 | (exit $ac_status); }; } && | ||
4760 | { ac_try='test -s conftest.$ac_objext' | ||
4761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4762 | (eval $ac_try) 2>&5 | ||
4763 | ac_status=$? | ||
4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4765 | (exit $ac_status); }; }; then | ||
4766 | ac_cv_have_decl_loginfailed=yes | ||
4767 | else | ||
4768 | echo "$as_me: failed program was:" >&5 | ||
4769 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4770 | |||
4771 | ac_cv_have_decl_loginfailed=no | ||
4772 | fi | ||
4773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4774 | fi | ||
4775 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
4776 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
4777 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
4778 | |||
4779 | cat >>confdefs.h <<_ACEOF | ||
4780 | #define HAVE_DECL_LOGINFAILED 1 | ||
4781 | _ACEOF | ||
4782 | |||
4783 | echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
4784 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
4785 | cat >conftest.$ac_ext <<_ACEOF | ||
4786 | /* confdefs.h. */ | ||
4787 | _ACEOF | ||
4788 | cat confdefs.h >>conftest.$ac_ext | ||
4789 | cat >>conftest.$ac_ext <<_ACEOF | ||
4790 | /* end confdefs.h. */ | ||
4791 | #include <usersec.h> | ||
4792 | int | ||
4793 | main () | ||
4794 | { | ||
4795 | (void)loginfailed("user","host","tty",0); | ||
4796 | ; | ||
4797 | return 0; | ||
4798 | } | ||
4799 | _ACEOF | ||
4800 | rm -f conftest.$ac_objext | ||
4801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4802 | (eval $ac_compile) 2>conftest.er1 | ||
4803 | ac_status=$? | ||
4804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4805 | rm -f conftest.er1 | ||
4806 | cat conftest.err >&5 | ||
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4808 | (exit $ac_status); } && | ||
4809 | { ac_try='test -z "$ac_c_werror_flag" | ||
4810 | || test ! -s conftest.err' | ||
4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4812 | (eval $ac_try) 2>&5 | ||
4813 | ac_status=$? | ||
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4815 | (exit $ac_status); }; } && | ||
4816 | { ac_try='test -s conftest.$ac_objext' | ||
4817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4818 | (eval $ac_try) 2>&5 | ||
4819 | ac_status=$? | ||
4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4821 | (exit $ac_status); }; }; then | ||
4822 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4823 | echo "${ECHO_T}yes" >&6 | ||
4824 | cat >>confdefs.h <<\_ACEOF | ||
4825 | #define AIX_LOGINFAILED_4ARG 1 | ||
4826 | _ACEOF | ||
4827 | |||
4828 | else | ||
4829 | echo "$as_me: failed program was:" >&5 | ||
4830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4831 | |||
4832 | echo "$as_me:$LINENO: result: no" >&5 | ||
4833 | echo "${ECHO_T}no" >&6 | ||
4834 | |||
4835 | fi | ||
4836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4837 | else | ||
4838 | cat >>confdefs.h <<_ACEOF | ||
4839 | #define HAVE_DECL_LOGINFAILED 0 | ||
4840 | _ACEOF | ||
4841 | |||
4842 | |||
4843 | fi | ||
4844 | |||
4845 | |||
4846 | |||
4847 | for ac_func in setauthdb | ||
4848 | do | ||
4849 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4850 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4851 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4852 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4854 | else | ||
4855 | cat >conftest.$ac_ext <<_ACEOF | ||
4856 | /* confdefs.h. */ | ||
4857 | _ACEOF | ||
4858 | cat confdefs.h >>conftest.$ac_ext | ||
4859 | cat >>conftest.$ac_ext <<_ACEOF | ||
4860 | /* end confdefs.h. */ | ||
4861 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
4862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4863 | #define $ac_func innocuous_$ac_func | ||
4864 | |||
4865 | /* System header to define __stub macros and hopefully few prototypes, | ||
4866 | which can conflict with char $ac_func (); below. | ||
4867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4868 | <limits.h> exists even on freestanding compilers. */ | ||
4869 | |||
4870 | #ifdef __STDC__ | ||
4871 | # include <limits.h> | ||
4872 | #else | ||
4873 | # include <assert.h> | ||
4874 | #endif | ||
4875 | |||
4876 | #undef $ac_func | ||
4877 | |||
4878 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4879 | #ifdef __cplusplus | ||
4880 | extern "C" | ||
4881 | { | ||
4882 | #endif | ||
4883 | /* We use char because int might match the return type of a gcc2 | ||
4884 | builtin and then its argument prototype would still apply. */ | ||
4885 | char $ac_func (); | ||
4886 | /* The GNU C library defines this for functions which it implements | ||
4887 | to always fail with ENOSYS. Some functions are actually named | ||
4888 | something starting with __ and the normal name is an alias. */ | ||
4889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4890 | choke me | ||
4891 | #else | ||
4892 | char (*f) () = $ac_func; | ||
4893 | #endif | ||
4894 | #ifdef __cplusplus | ||
4895 | } | ||
4896 | #endif | ||
4897 | |||
4898 | int | ||
4899 | main () | ||
4900 | { | ||
4901 | return f != $ac_func; | ||
4902 | ; | ||
4903 | return 0; | ||
4904 | } | ||
4905 | _ACEOF | ||
4906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4908 | (eval $ac_link) 2>conftest.er1 | ||
4909 | ac_status=$? | ||
4910 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4911 | rm -f conftest.er1 | ||
4912 | cat conftest.err >&5 | ||
4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4914 | (exit $ac_status); } && | ||
4915 | { ac_try='test -z "$ac_c_werror_flag" | ||
4916 | || test ! -s conftest.err' | ||
4917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4918 | (eval $ac_try) 2>&5 | ||
4919 | ac_status=$? | ||
4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4921 | (exit $ac_status); }; } && | ||
4922 | { ac_try='test -s conftest$ac_exeext' | ||
4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4924 | (eval $ac_try) 2>&5 | ||
4925 | ac_status=$? | ||
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4927 | (exit $ac_status); }; }; then | ||
4928 | eval "$as_ac_var=yes" | ||
4929 | else | ||
4930 | echo "$as_me: failed program was:" >&5 | ||
4931 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4932 | |||
4933 | eval "$as_ac_var=no" | ||
4934 | fi | ||
4935 | rm -f conftest.err conftest.$ac_objext \ | ||
4936 | conftest$ac_exeext conftest.$ac_ext | ||
4937 | fi | ||
4938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4939 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4940 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4941 | cat >>confdefs.h <<_ACEOF | ||
4942 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4943 | _ACEOF | ||
4944 | |||
4945 | fi | ||
4946 | done | ||
4947 | |||
4948 | check_for_aix_broken_getaddrinfo=1 | ||
4949 | cat >>confdefs.h <<\_ACEOF | ||
4950 | #define BROKEN_REALPATH 1 | ||
4951 | _ACEOF | ||
4952 | |||
4953 | cat >>confdefs.h <<\_ACEOF | ||
4954 | #define SETEUID_BREAKS_SETUID 1 | ||
4955 | _ACEOF | ||
4956 | |||
4957 | cat >>confdefs.h <<\_ACEOF | ||
4958 | #define BROKEN_SETREUID 1 | ||
4959 | _ACEOF | ||
4960 | |||
4961 | cat >>confdefs.h <<\_ACEOF | ||
4962 | #define BROKEN_SETREGID 1 | ||
4963 | _ACEOF | ||
4964 | |||
4965 | cat >>confdefs.h <<\_ACEOF | ||
4966 | #define DISABLE_LASTLOG 1 | ||
4967 | _ACEOF | ||
4968 | |||
4969 | cat >>confdefs.h <<\_ACEOF | ||
4970 | #define LOGIN_NEEDS_UTMPX 1 | ||
4971 | _ACEOF | ||
4972 | |||
4973 | cat >>confdefs.h <<\_ACEOF | ||
4974 | #define SPT_TYPE SPT_REUSEARGV | ||
4975 | _ACEOF | ||
4976 | |||
4977 | ;; | ||
4978 | *-*-cygwin*) | ||
4979 | check_for_libcrypt_later=1 | ||
4980 | LIBS="$LIBS /usr/lib/textmode.o" | ||
4981 | cat >>confdefs.h <<\_ACEOF | ||
4982 | #define HAVE_CYGWIN 1 | ||
4983 | _ACEOF | ||
4984 | |||
4985 | cat >>confdefs.h <<\_ACEOF | ||
4986 | #define USE_PIPES 1 | ||
4987 | _ACEOF | ||
4988 | |||
4989 | cat >>confdefs.h <<\_ACEOF | ||
4990 | #define DISABLE_SHADOW 1 | ||
4991 | _ACEOF | ||
4992 | |||
4993 | cat >>confdefs.h <<\_ACEOF | ||
4994 | #define IP_TOS_IS_BROKEN 1 | ||
4995 | _ACEOF | ||
4996 | |||
4997 | cat >>confdefs.h <<\_ACEOF | ||
4998 | #define NO_X11_UNIX_SOCKETS 1 | ||
4999 | _ACEOF | ||
5000 | |||
5001 | cat >>confdefs.h <<\_ACEOF | ||
5002 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
5003 | _ACEOF | ||
5004 | |||
5005 | cat >>confdefs.h <<\_ACEOF | ||
5006 | #define DISABLE_FD_PASSING 1 | ||
5007 | _ACEOF | ||
5008 | |||
5009 | ;; | ||
5010 | *-*-dgux*) | ||
5011 | cat >>confdefs.h <<\_ACEOF | ||
5012 | #define IP_TOS_IS_BROKEN 1 | ||
5013 | _ACEOF | ||
5014 | |||
5015 | cat >>confdefs.h <<\_ACEOF | ||
5016 | #define SETEUID_BREAKS_SETUID 1 | ||
5017 | _ACEOF | ||
5018 | |||
5019 | cat >>confdefs.h <<\_ACEOF | ||
5020 | #define BROKEN_SETREUID 1 | ||
5021 | _ACEOF | ||
5022 | |||
5023 | cat >>confdefs.h <<\_ACEOF | ||
5024 | #define BROKEN_SETREGID 1 | ||
5025 | _ACEOF | ||
5026 | |||
5027 | ;; | ||
5028 | *-*-darwin*) | ||
5029 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
5030 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
5031 | if test "$cross_compiling" = yes; then | ||
5032 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
5033 | echo "${ECHO_T}assume it is working" >&6 | ||
5034 | else | ||
5035 | cat >conftest.$ac_ext <<_ACEOF | ||
5036 | /* confdefs.h. */ | ||
5037 | _ACEOF | ||
5038 | cat confdefs.h >>conftest.$ac_ext | ||
5039 | cat >>conftest.$ac_ext <<_ACEOF | ||
5040 | /* end confdefs.h. */ | ||
5041 | #include <mach-o/dyld.h> | ||
5042 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
5043 | exit(0); | ||
5044 | else | ||
5045 | exit(1); | ||
5046 | } | ||
5047 | _ACEOF | ||
5048 | rm -f conftest$ac_exeext | ||
5049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5050 | (eval $ac_link) 2>&5 | ||
5051 | ac_status=$? | ||
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5055 | (eval $ac_try) 2>&5 | ||
5056 | ac_status=$? | ||
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5058 | (exit $ac_status); }; }; then | ||
5059 | echo "$as_me:$LINENO: result: working" >&5 | ||
5060 | echo "${ECHO_T}working" >&6 | ||
5061 | else | ||
5062 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5063 | echo "$as_me: failed program was:" >&5 | ||
5064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5065 | |||
5066 | ( exit $ac_status ) | ||
5067 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
5068 | echo "${ECHO_T}buggy" >&6 | ||
5069 | cat >>confdefs.h <<\_ACEOF | ||
5070 | #define BROKEN_GETADDRINFO 1 | ||
5071 | _ACEOF | ||
5072 | |||
5073 | fi | ||
5074 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5075 | fi | ||
5076 | cat >>confdefs.h <<\_ACEOF | ||
5077 | #define SETEUID_BREAKS_SETUID 1 | ||
5078 | _ACEOF | ||
5079 | |||
5080 | cat >>confdefs.h <<\_ACEOF | ||
5081 | #define BROKEN_SETREUID 1 | ||
5082 | _ACEOF | ||
5083 | |||
5084 | cat >>confdefs.h <<\_ACEOF | ||
5085 | #define BROKEN_SETREGID 1 | ||
5086 | _ACEOF | ||
5087 | |||
5088 | cat >>confdefs.h <<_ACEOF | ||
5089 | #define BIND_8_COMPAT 1 | ||
5090 | _ACEOF | ||
5091 | |||
5092 | ;; | ||
5093 | *-*-hpux10.26) | ||
5094 | if test -z "$GCC"; then | ||
5095 | CFLAGS="$CFLAGS -Ae" | ||
5096 | fi | ||
5097 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5098 | IPADDR_IN_DISPLAY=yes | ||
5099 | cat >>confdefs.h <<\_ACEOF | ||
5100 | #define HAVE_SECUREWARE 1 | ||
5101 | _ACEOF | ||
5102 | |||
5103 | cat >>confdefs.h <<\_ACEOF | ||
5104 | #define USE_PIPES 1 | ||
5105 | _ACEOF | ||
5106 | |||
5107 | cat >>confdefs.h <<\_ACEOF | ||
5108 | #define LOGIN_NO_ENDOPT 1 | ||
5109 | _ACEOF | ||
5110 | |||
5111 | cat >>confdefs.h <<\_ACEOF | ||
5112 | #define LOGIN_NEEDS_UTMPX 1 | ||
5113 | _ACEOF | ||
5114 | |||
5115 | cat >>confdefs.h <<\_ACEOF | ||
5116 | #define LOCKED_PASSWD_STRING "*" | ||
5117 | _ACEOF | ||
5118 | |||
5119 | cat >>confdefs.h <<\_ACEOF | ||
5120 | #define SPT_TYPE SPT_PSTAT | ||
5121 | _ACEOF | ||
5122 | |||
5123 | LIBS="$LIBS -lsec -lsecpw" | ||
5124 | |||
5125 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5126 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5127 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5129 | else | ||
5130 | ac_check_lib_save_LIBS=$LIBS | ||
5131 | LIBS="-lxnet $LIBS" | ||
5132 | cat >conftest.$ac_ext <<_ACEOF | ||
5133 | /* confdefs.h. */ | ||
5134 | _ACEOF | ||
5135 | cat confdefs.h >>conftest.$ac_ext | ||
5136 | cat >>conftest.$ac_ext <<_ACEOF | ||
5137 | /* end confdefs.h. */ | ||
5138 | |||
5139 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5140 | #ifdef __cplusplus | ||
5141 | extern "C" | ||
5142 | #endif | ||
5143 | /* We use char because int might match the return type of a gcc2 | ||
5144 | builtin and then its argument prototype would still apply. */ | ||
5145 | char t_error (); | ||
5146 | int | ||
5147 | main () | ||
5148 | { | ||
5149 | t_error (); | ||
5150 | ; | ||
5151 | return 0; | ||
5152 | } | ||
5153 | _ACEOF | ||
5154 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5156 | (eval $ac_link) 2>conftest.er1 | ||
5157 | ac_status=$? | ||
5158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5159 | rm -f conftest.er1 | ||
5160 | cat conftest.err >&5 | ||
5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5162 | (exit $ac_status); } && | ||
5163 | { ac_try='test -z "$ac_c_werror_flag" | ||
5164 | || test ! -s conftest.err' | ||
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5166 | (eval $ac_try) 2>&5 | ||
5167 | ac_status=$? | ||
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5169 | (exit $ac_status); }; } && | ||
5170 | { ac_try='test -s conftest$ac_exeext' | ||
5171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5172 | (eval $ac_try) 2>&5 | ||
5173 | ac_status=$? | ||
5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5175 | (exit $ac_status); }; }; then | ||
5176 | ac_cv_lib_xnet_t_error=yes | ||
5177 | else | ||
5178 | echo "$as_me: failed program was:" >&5 | ||
5179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5180 | |||
5181 | ac_cv_lib_xnet_t_error=no | ||
5182 | fi | ||
5183 | rm -f conftest.err conftest.$ac_objext \ | ||
5184 | conftest$ac_exeext conftest.$ac_ext | ||
5185 | LIBS=$ac_check_lib_save_LIBS | ||
5186 | fi | ||
5187 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5188 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5189 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5190 | cat >>confdefs.h <<_ACEOF | ||
5191 | #define HAVE_LIBXNET 1 | ||
5192 | _ACEOF | ||
5193 | |||
5194 | LIBS="-lxnet $LIBS" | ||
5195 | |||
5196 | else | ||
5197 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5198 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5199 | { (exit 1); exit 1; }; } | ||
5200 | fi | ||
5201 | |||
5202 | disable_ptmx_check=yes | ||
5203 | ;; | ||
5204 | *-*-hpux10*) | ||
5205 | if test -z "$GCC"; then | ||
5206 | CFLAGS="$CFLAGS -Ae" | ||
5207 | fi | ||
5208 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5209 | IPADDR_IN_DISPLAY=yes | ||
5210 | cat >>confdefs.h <<\_ACEOF | ||
5211 | #define USE_PIPES 1 | ||
5212 | _ACEOF | ||
5213 | |||
5214 | cat >>confdefs.h <<\_ACEOF | ||
5215 | #define LOGIN_NO_ENDOPT 1 | ||
5216 | _ACEOF | ||
5217 | |||
5218 | cat >>confdefs.h <<\_ACEOF | ||
5219 | #define LOGIN_NEEDS_UTMPX 1 | ||
5220 | _ACEOF | ||
5221 | |||
5222 | cat >>confdefs.h <<\_ACEOF | ||
5223 | #define LOCKED_PASSWD_STRING "*" | ||
5224 | _ACEOF | ||
5225 | |||
5226 | cat >>confdefs.h <<\_ACEOF | ||
5227 | #define SPT_TYPE SPT_PSTAT | ||
5228 | _ACEOF | ||
5229 | |||
5230 | LIBS="$LIBS -lsec" | ||
5231 | |||
5232 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5233 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5234 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5236 | else | ||
5237 | ac_check_lib_save_LIBS=$LIBS | ||
5238 | LIBS="-lxnet $LIBS" | ||
5239 | cat >conftest.$ac_ext <<_ACEOF | ||
5240 | /* confdefs.h. */ | ||
5241 | _ACEOF | ||
5242 | cat confdefs.h >>conftest.$ac_ext | ||
5243 | cat >>conftest.$ac_ext <<_ACEOF | ||
5244 | /* end confdefs.h. */ | ||
5245 | |||
5246 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5247 | #ifdef __cplusplus | ||
5248 | extern "C" | ||
5249 | #endif | ||
5250 | /* We use char because int might match the return type of a gcc2 | ||
5251 | builtin and then its argument prototype would still apply. */ | ||
5252 | char t_error (); | ||
5253 | int | ||
5254 | main () | ||
5255 | { | ||
5256 | t_error (); | ||
5257 | ; | ||
5258 | return 0; | ||
5259 | } | ||
5260 | _ACEOF | ||
5261 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5263 | (eval $ac_link) 2>conftest.er1 | ||
5264 | ac_status=$? | ||
5265 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5266 | rm -f conftest.er1 | ||
5267 | cat conftest.err >&5 | ||
5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5269 | (exit $ac_status); } && | ||
5270 | { ac_try='test -z "$ac_c_werror_flag" | ||
5271 | || test ! -s conftest.err' | ||
5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5273 | (eval $ac_try) 2>&5 | ||
5274 | ac_status=$? | ||
5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5276 | (exit $ac_status); }; } && | ||
5277 | { ac_try='test -s conftest$ac_exeext' | ||
5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5279 | (eval $ac_try) 2>&5 | ||
5280 | ac_status=$? | ||
5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5282 | (exit $ac_status); }; }; then | ||
5283 | ac_cv_lib_xnet_t_error=yes | ||
5284 | else | ||
5285 | echo "$as_me: failed program was:" >&5 | ||
5286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5287 | |||
5288 | ac_cv_lib_xnet_t_error=no | ||
5289 | fi | ||
5290 | rm -f conftest.err conftest.$ac_objext \ | ||
5291 | conftest$ac_exeext conftest.$ac_ext | ||
5292 | LIBS=$ac_check_lib_save_LIBS | ||
5293 | fi | ||
5294 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5295 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5296 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5297 | cat >>confdefs.h <<_ACEOF | ||
5298 | #define HAVE_LIBXNET 1 | ||
5299 | _ACEOF | ||
5300 | |||
5301 | LIBS="-lxnet $LIBS" | ||
5302 | |||
5303 | else | ||
5304 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5305 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5306 | { (exit 1); exit 1; }; } | ||
5307 | fi | ||
5308 | |||
5309 | ;; | ||
5310 | *-*-hpux11*) | ||
5311 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5312 | IPADDR_IN_DISPLAY=yes | ||
5313 | cat >>confdefs.h <<\_ACEOF | ||
5314 | #define PAM_SUN_CODEBASE 1 | ||
5315 | _ACEOF | ||
5316 | |||
5317 | cat >>confdefs.h <<\_ACEOF | ||
5318 | #define USE_PIPES 1 | ||
5319 | _ACEOF | ||
5320 | |||
5321 | cat >>confdefs.h <<\_ACEOF | ||
5322 | #define LOGIN_NO_ENDOPT 1 | ||
5323 | _ACEOF | ||
5324 | |||
5325 | cat >>confdefs.h <<\_ACEOF | ||
5326 | #define LOGIN_NEEDS_UTMPX 1 | ||
5327 | _ACEOF | ||
5328 | |||
5329 | cat >>confdefs.h <<\_ACEOF | ||
5330 | #define DISABLE_UTMP 1 | ||
5331 | _ACEOF | ||
5332 | |||
5333 | cat >>confdefs.h <<\_ACEOF | ||
5334 | #define LOCKED_PASSWD_STRING "*" | ||
5335 | _ACEOF | ||
5336 | |||
5337 | cat >>confdefs.h <<\_ACEOF | ||
5338 | #define SPT_TYPE SPT_PSTAT | ||
5339 | _ACEOF | ||
5340 | |||
5341 | |||
5342 | cat >>confdefs.h <<\_ACEOF | ||
5343 | #define USE_BTMP 1 | ||
5344 | _ACEOF | ||
5345 | |||
5346 | check_for_hpux_broken_getaddrinfo=1 | ||
5347 | check_for_conflicting_getspnam=1 | ||
5348 | LIBS="$LIBS -lsec" | ||
5349 | |||
5350 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5351 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5352 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5354 | else | ||
5355 | ac_check_lib_save_LIBS=$LIBS | ||
5356 | LIBS="-lxnet $LIBS" | ||
5357 | cat >conftest.$ac_ext <<_ACEOF | ||
5358 | /* confdefs.h. */ | ||
5359 | _ACEOF | ||
5360 | cat confdefs.h >>conftest.$ac_ext | ||
5361 | cat >>conftest.$ac_ext <<_ACEOF | ||
5362 | /* end confdefs.h. */ | ||
5363 | |||
5364 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5365 | #ifdef __cplusplus | ||
5366 | extern "C" | ||
5367 | #endif | ||
5368 | /* We use char because int might match the return type of a gcc2 | ||
5369 | builtin and then its argument prototype would still apply. */ | ||
5370 | char t_error (); | ||
5371 | int | ||
5372 | main () | ||
5373 | { | ||
5374 | t_error (); | ||
5375 | ; | ||
5376 | return 0; | ||
5377 | } | ||
5378 | _ACEOF | ||
5379 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5381 | (eval $ac_link) 2>conftest.er1 | ||
5382 | ac_status=$? | ||
5383 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5384 | rm -f conftest.er1 | ||
5385 | cat conftest.err >&5 | ||
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5387 | (exit $ac_status); } && | ||
5388 | { ac_try='test -z "$ac_c_werror_flag" | ||
5389 | || test ! -s conftest.err' | ||
5390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5391 | (eval $ac_try) 2>&5 | ||
5392 | ac_status=$? | ||
5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5394 | (exit $ac_status); }; } && | ||
5395 | { ac_try='test -s conftest$ac_exeext' | ||
5396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5397 | (eval $ac_try) 2>&5 | ||
5398 | ac_status=$? | ||
5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5400 | (exit $ac_status); }; }; then | ||
5401 | ac_cv_lib_xnet_t_error=yes | ||
5402 | else | ||
5403 | echo "$as_me: failed program was:" >&5 | ||
5404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5405 | |||
5406 | ac_cv_lib_xnet_t_error=no | ||
5407 | fi | ||
5408 | rm -f conftest.err conftest.$ac_objext \ | ||
5409 | conftest$ac_exeext conftest.$ac_ext | ||
5410 | LIBS=$ac_check_lib_save_LIBS | ||
5411 | fi | ||
5412 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5413 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5414 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5415 | cat >>confdefs.h <<_ACEOF | ||
5416 | #define HAVE_LIBXNET 1 | ||
5417 | _ACEOF | ||
5418 | |||
5419 | LIBS="-lxnet $LIBS" | ||
5420 | |||
5421 | else | ||
5422 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5423 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5424 | { (exit 1); exit 1; }; } | ||
5425 | fi | ||
5426 | |||
5427 | ;; | ||
5428 | *-*-irix5*) | ||
5429 | PATH="$PATH:/usr/etc" | ||
5430 | cat >>confdefs.h <<\_ACEOF | ||
5431 | #define BROKEN_INET_NTOA 1 | ||
5432 | _ACEOF | ||
5433 | |||
5434 | cat >>confdefs.h <<\_ACEOF | ||
5435 | #define SETEUID_BREAKS_SETUID 1 | ||
5436 | _ACEOF | ||
5437 | |||
5438 | cat >>confdefs.h <<\_ACEOF | ||
5439 | #define BROKEN_SETREUID 1 | ||
5440 | _ACEOF | ||
5441 | |||
5442 | cat >>confdefs.h <<\_ACEOF | ||
5443 | #define BROKEN_SETREGID 1 | ||
5444 | _ACEOF | ||
5445 | |||
5446 | cat >>confdefs.h <<\_ACEOF | ||
5447 | #define WITH_ABBREV_NO_TTY 1 | ||
5448 | _ACEOF | ||
5449 | |||
5450 | cat >>confdefs.h <<\_ACEOF | ||
5451 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5452 | _ACEOF | ||
5453 | |||
5454 | ;; | ||
5455 | *-*-irix6*) | ||
5456 | PATH="$PATH:/usr/etc" | ||
5457 | cat >>confdefs.h <<\_ACEOF | ||
5458 | #define WITH_IRIX_ARRAY 1 | ||
5459 | _ACEOF | ||
5460 | |||
5461 | cat >>confdefs.h <<\_ACEOF | ||
5462 | #define WITH_IRIX_PROJECT 1 | ||
5463 | _ACEOF | ||
5464 | |||
5465 | cat >>confdefs.h <<\_ACEOF | ||
5466 | #define WITH_IRIX_AUDIT 1 | ||
5467 | _ACEOF | ||
5468 | |||
5469 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
5470 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
5471 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5473 | else | ||
5474 | cat >conftest.$ac_ext <<_ACEOF | ||
5475 | /* confdefs.h. */ | ||
5476 | _ACEOF | ||
5477 | cat confdefs.h >>conftest.$ac_ext | ||
5478 | cat >>conftest.$ac_ext <<_ACEOF | ||
5479 | /* end confdefs.h. */ | ||
5480 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
5481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5482 | #define jlimit_startjob innocuous_jlimit_startjob | ||
5483 | |||
5484 | /* System header to define __stub macros and hopefully few prototypes, | ||
5485 | which can conflict with char jlimit_startjob (); below. | ||
5486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5487 | <limits.h> exists even on freestanding compilers. */ | ||
5488 | |||
5489 | #ifdef __STDC__ | ||
5490 | # include <limits.h> | ||
5491 | #else | ||
5492 | # include <assert.h> | ||
5493 | #endif | ||
5494 | |||
5495 | #undef jlimit_startjob | ||
5496 | |||
5497 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5498 | #ifdef __cplusplus | ||
5499 | extern "C" | ||
5500 | { | ||
5501 | #endif | ||
5502 | /* We use char because int might match the return type of a gcc2 | ||
5503 | builtin and then its argument prototype would still apply. */ | ||
5504 | char jlimit_startjob (); | ||
5505 | /* The GNU C library defines this for functions which it implements | ||
5506 | to always fail with ENOSYS. Some functions are actually named | ||
5507 | something starting with __ and the normal name is an alias. */ | ||
5508 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
5509 | choke me | ||
5510 | #else | ||
5511 | char (*f) () = jlimit_startjob; | ||
5512 | #endif | ||
5513 | #ifdef __cplusplus | ||
5514 | } | ||
5515 | #endif | ||
5516 | |||
5517 | int | ||
5518 | main () | ||
5519 | { | ||
5520 | return f != jlimit_startjob; | ||
5521 | ; | ||
5522 | return 0; | ||
5523 | } | ||
5524 | _ACEOF | ||
5525 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5527 | (eval $ac_link) 2>conftest.er1 | ||
5528 | ac_status=$? | ||
5529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5530 | rm -f conftest.er1 | ||
5531 | cat conftest.err >&5 | ||
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5533 | (exit $ac_status); } && | ||
5534 | { ac_try='test -z "$ac_c_werror_flag" | ||
5535 | || test ! -s conftest.err' | ||
5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5537 | (eval $ac_try) 2>&5 | ||
5538 | ac_status=$? | ||
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5540 | (exit $ac_status); }; } && | ||
5541 | { ac_try='test -s conftest$ac_exeext' | ||
5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5543 | (eval $ac_try) 2>&5 | ||
5544 | ac_status=$? | ||
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5546 | (exit $ac_status); }; }; then | ||
5547 | ac_cv_func_jlimit_startjob=yes | ||
5548 | else | ||
5549 | echo "$as_me: failed program was:" >&5 | ||
5550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5551 | |||
5552 | ac_cv_func_jlimit_startjob=no | ||
5553 | fi | ||
5554 | rm -f conftest.err conftest.$ac_objext \ | ||
5555 | conftest$ac_exeext conftest.$ac_ext | ||
5556 | fi | ||
5557 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
5558 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
5559 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
5560 | cat >>confdefs.h <<\_ACEOF | ||
5561 | #define WITH_IRIX_JOBS 1 | ||
5562 | _ACEOF | ||
5563 | |||
5564 | fi | ||
5565 | |||
5566 | cat >>confdefs.h <<\_ACEOF | ||
5567 | #define BROKEN_INET_NTOA 1 | ||
5568 | _ACEOF | ||
5569 | |||
5570 | cat >>confdefs.h <<\_ACEOF | ||
5571 | #define SETEUID_BREAKS_SETUID 1 | ||
5572 | _ACEOF | ||
5573 | |||
5574 | cat >>confdefs.h <<\_ACEOF | ||
5575 | #define BROKEN_SETREUID 1 | ||
5576 | _ACEOF | ||
5577 | |||
5578 | cat >>confdefs.h <<\_ACEOF | ||
5579 | #define BROKEN_SETREGID 1 | ||
5580 | _ACEOF | ||
5581 | |||
5582 | cat >>confdefs.h <<\_ACEOF | ||
5583 | #define BROKEN_UPDWTMPX 1 | ||
5584 | _ACEOF | ||
5585 | |||
5586 | cat >>confdefs.h <<\_ACEOF | ||
5587 | #define WITH_ABBREV_NO_TTY 1 | ||
5588 | _ACEOF | ||
5589 | |||
5590 | cat >>confdefs.h <<\_ACEOF | ||
5591 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5592 | _ACEOF | ||
5593 | |||
5594 | ;; | ||
5595 | *-*-linux*) | ||
5596 | no_dev_ptmx=1 | ||
5597 | check_for_libcrypt_later=1 | ||
5598 | check_for_openpty_ctty_bug=1 | ||
5599 | cat >>confdefs.h <<\_ACEOF | ||
5600 | #define DONT_TRY_OTHER_AF 1 | ||
5601 | _ACEOF | ||
5602 | |||
5603 | cat >>confdefs.h <<\_ACEOF | ||
5604 | #define PAM_TTY_KLUDGE 1 | ||
5605 | _ACEOF | ||
5606 | |||
5607 | cat >>confdefs.h <<\_ACEOF | ||
5608 | #define LOCKED_PASSWD_PREFIX "!" | ||
5609 | _ACEOF | ||
5610 | |||
5611 | cat >>confdefs.h <<\_ACEOF | ||
5612 | #define SPT_TYPE SPT_REUSEARGV | ||
5613 | _ACEOF | ||
5614 | |||
5615 | cat >>confdefs.h <<\_ACEOF | ||
5616 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
5617 | _ACEOF | ||
5618 | |||
5619 | |||
5620 | cat >>confdefs.h <<\_ACEOF | ||
5621 | #define _PATH_BTMP "/var/log/btmp" | ||
5622 | _ACEOF | ||
5623 | |||
5624 | |||
5625 | cat >>confdefs.h <<\_ACEOF | ||
5626 | #define USE_BTMP 1 | ||
5627 | _ACEOF | ||
5628 | |||
5629 | inet6_default_4in6=yes | ||
5630 | case `uname -r` in | ||
5631 | 1.*|2.0.*) | ||
5632 | cat >>confdefs.h <<\_ACEOF | ||
5633 | #define BROKEN_CMSG_TYPE 1 | ||
5634 | _ACEOF | ||
5635 | |||
5636 | ;; | ||
5637 | esac | ||
5638 | ;; | ||
5639 | mips-sony-bsd|mips-sony-newsos4) | ||
5640 | cat >>confdefs.h <<\_ACEOF | ||
5641 | #define HAVE_NEWS4 1 | ||
5642 | _ACEOF | ||
5643 | |||
5644 | SONY=1 | ||
5645 | ;; | ||
5646 | *-*-netbsd*) | ||
5647 | check_for_libcrypt_before=1 | ||
5648 | if test "x$withval" != "xno" ; then | ||
5649 | need_dash_r=1 | ||
5650 | fi | ||
5651 | ;; | ||
5652 | *-*-freebsd*) | ||
5653 | check_for_libcrypt_later=1 | ||
5654 | ;; | ||
5655 | *-*-bsdi*) | ||
5656 | cat >>confdefs.h <<\_ACEOF | ||
5657 | #define SETEUID_BREAKS_SETUID 1 | ||
5658 | _ACEOF | ||
5659 | |||
5660 | cat >>confdefs.h <<\_ACEOF | ||
5661 | #define BROKEN_SETREUID 1 | ||
5662 | _ACEOF | ||
5663 | |||
5664 | cat >>confdefs.h <<\_ACEOF | ||
5665 | #define BROKEN_SETREGID 1 | ||
5666 | _ACEOF | ||
5667 | |||
5668 | ;; | ||
5669 | *-next-*) | ||
5670 | conf_lastlog_location="/usr/adm/lastlog" | ||
5671 | conf_utmp_location=/etc/utmp | ||
5672 | conf_wtmp_location=/usr/adm/wtmp | ||
5673 | MAIL=/usr/spool/mail | ||
5674 | cat >>confdefs.h <<\_ACEOF | ||
5675 | #define HAVE_NEXT 1 | ||
5676 | _ACEOF | ||
5677 | |||
5678 | cat >>confdefs.h <<\_ACEOF | ||
5679 | #define BROKEN_REALPATH 1 | ||
5680 | _ACEOF | ||
5681 | |||
5682 | cat >>confdefs.h <<\_ACEOF | ||
5683 | #define USE_PIPES 1 | ||
5684 | _ACEOF | ||
5685 | |||
5686 | cat >>confdefs.h <<\_ACEOF | ||
5687 | #define BROKEN_SAVED_UIDS 1 | ||
5688 | _ACEOF | ||
5689 | |||
5690 | ;; | ||
5691 | *-*-solaris*) | ||
5692 | if test "x$withval" != "xno" ; then | ||
5693 | need_dash_r=1 | ||
5694 | fi | ||
5695 | cat >>confdefs.h <<\_ACEOF | ||
5696 | #define PAM_SUN_CODEBASE 1 | ||
5697 | _ACEOF | ||
5698 | |||
5699 | cat >>confdefs.h <<\_ACEOF | ||
5700 | #define LOGIN_NEEDS_UTMPX 1 | ||
5701 | _ACEOF | ||
5702 | |||
5703 | cat >>confdefs.h <<\_ACEOF | ||
5704 | #define LOGIN_NEEDS_TERM 1 | ||
5705 | _ACEOF | ||
5706 | |||
5707 | cat >>confdefs.h <<\_ACEOF | ||
5708 | #define PAM_TTY_KLUDGE 1 | ||
5709 | _ACEOF | ||
5710 | |||
5711 | cat >>confdefs.h <<\_ACEOF | ||
5712 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
5713 | _ACEOF | ||
5714 | |||
5715 | cat >>confdefs.h <<\_ACEOF | ||
5716 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5717 | _ACEOF | ||
5718 | |||
5719 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
5720 | cat >>confdefs.h <<\_ACEOF | ||
5721 | #define SSHD_ACQUIRES_CTTY 1 | ||
5722 | _ACEOF | ||
5723 | |||
5724 | external_path_file=/etc/default/login | ||
5725 | # hardwire lastlog location (can't detect it on some versions) | ||
5726 | conf_lastlog_location="/var/adm/lastlog" | ||
5727 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
5728 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
5729 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
5730 | if test "$sol2ver" -ge 8; then | ||
5731 | echo "$as_me:$LINENO: result: yes" >&5 | ||
5732 | echo "${ECHO_T}yes" >&6 | ||
5733 | cat >>confdefs.h <<\_ACEOF | ||
5734 | #define DISABLE_UTMP 1 | ||
5735 | _ACEOF | ||
5736 | |||
5737 | cat >>confdefs.h <<\_ACEOF | ||
5738 | #define DISABLE_WTMP 1 | ||
5739 | _ACEOF | ||
5740 | |||
5741 | else | ||
5742 | echo "$as_me:$LINENO: result: no" >&5 | ||
5743 | echo "${ECHO_T}no" >&6 | ||
5744 | fi | ||
5745 | ;; | ||
5746 | *-*-sunos4*) | ||
5747 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
5748 | |||
5749 | for ac_func in getpwanam | ||
5750 | do | ||
5751 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5752 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5753 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5754 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5756 | else | ||
5757 | cat >conftest.$ac_ext <<_ACEOF | ||
5758 | /* confdefs.h. */ | ||
5759 | _ACEOF | ||
5760 | cat confdefs.h >>conftest.$ac_ext | ||
5761 | cat >>conftest.$ac_ext <<_ACEOF | ||
5762 | /* end confdefs.h. */ | ||
5763 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5765 | #define $ac_func innocuous_$ac_func | ||
5766 | |||
5767 | /* System header to define __stub macros and hopefully few prototypes, | ||
5768 | which can conflict with char $ac_func (); below. | ||
5769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5770 | <limits.h> exists even on freestanding compilers. */ | ||
5771 | |||
5772 | #ifdef __STDC__ | ||
5773 | # include <limits.h> | ||
5774 | #else | ||
5775 | # include <assert.h> | ||
5776 | #endif | ||
5777 | |||
5778 | #undef $ac_func | ||
5779 | |||
5780 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5781 | #ifdef __cplusplus | ||
5782 | extern "C" | ||
5783 | { | ||
5784 | #endif | ||
5785 | /* We use char because int might match the return type of a gcc2 | ||
5786 | builtin and then its argument prototype would still apply. */ | ||
5787 | char $ac_func (); | ||
5788 | /* The GNU C library defines this for functions which it implements | ||
5789 | to always fail with ENOSYS. Some functions are actually named | ||
5790 | something starting with __ and the normal name is an alias. */ | ||
5791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5792 | choke me | ||
5793 | #else | ||
5794 | char (*f) () = $ac_func; | ||
5795 | #endif | ||
5796 | #ifdef __cplusplus | ||
5797 | } | ||
5798 | #endif | ||
5799 | |||
5800 | int | ||
5801 | main () | ||
5802 | { | ||
5803 | return f != $ac_func; | ||
5804 | ; | ||
5805 | return 0; | ||
5806 | } | ||
5807 | _ACEOF | ||
5808 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5810 | (eval $ac_link) 2>conftest.er1 | ||
5811 | ac_status=$? | ||
5812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5813 | rm -f conftest.er1 | ||
5814 | cat conftest.err >&5 | ||
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5816 | (exit $ac_status); } && | ||
5817 | { ac_try='test -z "$ac_c_werror_flag" | ||
5818 | || test ! -s conftest.err' | ||
5819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5820 | (eval $ac_try) 2>&5 | ||
5821 | ac_status=$? | ||
5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5823 | (exit $ac_status); }; } && | ||
5824 | { ac_try='test -s conftest$ac_exeext' | ||
5825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5826 | (eval $ac_try) 2>&5 | ||
5827 | ac_status=$? | ||
5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5829 | (exit $ac_status); }; }; then | ||
5830 | eval "$as_ac_var=yes" | ||
5831 | else | ||
5832 | echo "$as_me: failed program was:" >&5 | ||
5833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5834 | |||
5835 | eval "$as_ac_var=no" | ||
5836 | fi | ||
5837 | rm -f conftest.err conftest.$ac_objext \ | ||
5838 | conftest$ac_exeext conftest.$ac_ext | ||
5839 | fi | ||
5840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5841 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5842 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5843 | cat >>confdefs.h <<_ACEOF | ||
5844 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5845 | _ACEOF | ||
5846 | |||
5847 | fi | ||
5848 | done | ||
5849 | |||
5850 | cat >>confdefs.h <<\_ACEOF | ||
5851 | #define PAM_SUN_CODEBASE 1 | ||
5852 | _ACEOF | ||
5853 | |||
5854 | conf_utmp_location=/etc/utmp | ||
5855 | conf_wtmp_location=/var/adm/wtmp | ||
5856 | conf_lastlog_location=/var/adm/lastlog | ||
5857 | cat >>confdefs.h <<\_ACEOF | ||
5858 | #define USE_PIPES 1 | ||
5859 | _ACEOF | ||
5860 | |||
5861 | ;; | ||
5862 | *-ncr-sysv*) | ||
5863 | LIBS="$LIBS -lc89" | ||
5864 | cat >>confdefs.h <<\_ACEOF | ||
5865 | #define USE_PIPES 1 | ||
5866 | _ACEOF | ||
5867 | |||
5868 | cat >>confdefs.h <<\_ACEOF | ||
5869 | #define SSHD_ACQUIRES_CTTY 1 | ||
5870 | _ACEOF | ||
5871 | |||
5872 | cat >>confdefs.h <<\_ACEOF | ||
5873 | #define SETEUID_BREAKS_SETUID 1 | ||
5874 | _ACEOF | ||
5875 | |||
5876 | cat >>confdefs.h <<\_ACEOF | ||
5877 | #define BROKEN_SETREUID 1 | ||
5878 | _ACEOF | ||
5879 | |||
5880 | cat >>confdefs.h <<\_ACEOF | ||
5881 | #define BROKEN_SETREGID 1 | ||
5882 | _ACEOF | ||
5883 | |||
5884 | ;; | ||
5885 | *-sni-sysv*) | ||
5886 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
5887 | |||
5888 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
5889 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
5890 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
5891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5892 | else | ||
5893 | ac_check_lib_save_LIBS=$LIBS | ||
5894 | LIBS="-ldl $LIBS" | ||
5895 | cat >conftest.$ac_ext <<_ACEOF | ||
5896 | /* confdefs.h. */ | ||
5897 | _ACEOF | ||
5898 | cat confdefs.h >>conftest.$ac_ext | ||
5899 | cat >>conftest.$ac_ext <<_ACEOF | ||
5900 | /* end confdefs.h. */ | ||
5901 | |||
5902 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5903 | #ifdef __cplusplus | ||
5904 | extern "C" | ||
5905 | #endif | ||
5906 | /* We use char because int might match the return type of a gcc2 | ||
5907 | builtin and then its argument prototype would still apply. */ | ||
5908 | char dlsym (); | ||
5909 | int | ||
5910 | main () | ||
5911 | { | ||
5912 | dlsym (); | ||
5913 | ; | ||
5914 | return 0; | ||
5915 | } | ||
5916 | _ACEOF | ||
5917 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5919 | (eval $ac_link) 2>conftest.er1 | ||
5920 | ac_status=$? | ||
5921 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5922 | rm -f conftest.er1 | ||
5923 | cat conftest.err >&5 | ||
5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5925 | (exit $ac_status); } && | ||
5926 | { ac_try='test -z "$ac_c_werror_flag" | ||
5927 | || test ! -s conftest.err' | ||
5928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5929 | (eval $ac_try) 2>&5 | ||
5930 | ac_status=$? | ||
5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5932 | (exit $ac_status); }; } && | ||
5933 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
5939 | ac_cv_lib_dl_dlsym=yes | ||
5940 | else | ||
5941 | echo "$as_me: failed program was:" >&5 | ||
5942 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5943 | |||
5944 | ac_cv_lib_dl_dlsym=no | ||
5945 | fi | ||
5946 | rm -f conftest.err conftest.$ac_objext \ | ||
5947 | conftest$ac_exeext conftest.$ac_ext | ||
5948 | LIBS=$ac_check_lib_save_LIBS | ||
5949 | fi | ||
5950 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
5951 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
5952 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
5953 | cat >>confdefs.h <<_ACEOF | ||
5954 | #define HAVE_LIBDL 1 | ||
5955 | _ACEOF | ||
5956 | |||
5957 | LIBS="-ldl $LIBS" | ||
5958 | |||
5959 | fi | ||
5960 | |||
5961 | # -lresolv needs to be at then end of LIBS or DNS lookups break | ||
5962 | echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5 | ||
5963 | echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6 | ||
5964 | if test "${ac_cv_lib_res_query_resolv+set}" = set; then | ||
5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5966 | else | ||
5967 | ac_check_lib_save_LIBS=$LIBS | ||
5968 | LIBS="-lres_query $LIBS" | ||
5969 | cat >conftest.$ac_ext <<_ACEOF | ||
5970 | /* confdefs.h. */ | ||
5971 | _ACEOF | ||
5972 | cat confdefs.h >>conftest.$ac_ext | ||
5973 | cat >>conftest.$ac_ext <<_ACEOF | ||
5974 | /* end confdefs.h. */ | ||
5975 | |||
5976 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5977 | #ifdef __cplusplus | ||
5978 | extern "C" | ||
5979 | #endif | ||
5980 | /* We use char because int might match the return type of a gcc2 | ||
5981 | builtin and then its argument prototype would still apply. */ | ||
5982 | char resolv (); | ||
5983 | int | ||
5984 | main () | ||
5985 | { | ||
5986 | resolv (); | ||
5987 | ; | ||
5988 | return 0; | ||
5989 | } | ||
5990 | _ACEOF | ||
5991 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5993 | (eval $ac_link) 2>conftest.er1 | ||
5994 | ac_status=$? | ||
5995 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5996 | rm -f conftest.er1 | ||
5997 | cat conftest.err >&5 | ||
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5999 | (exit $ac_status); } && | ||
6000 | { ac_try='test -z "$ac_c_werror_flag" | ||
6001 | || test ! -s conftest.err' | ||
6002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6003 | (eval $ac_try) 2>&5 | ||
6004 | ac_status=$? | ||
6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6006 | (exit $ac_status); }; } && | ||
6007 | { ac_try='test -s conftest$ac_exeext' | ||
6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6009 | (eval $ac_try) 2>&5 | ||
6010 | ac_status=$? | ||
6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6012 | (exit $ac_status); }; }; then | ||
6013 | ac_cv_lib_res_query_resolv=yes | ||
6014 | else | ||
6015 | echo "$as_me: failed program was:" >&5 | ||
6016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6017 | |||
6018 | ac_cv_lib_res_query_resolv=no | ||
6019 | fi | ||
6020 | rm -f conftest.err conftest.$ac_objext \ | ||
6021 | conftest$ac_exeext conftest.$ac_ext | ||
6022 | LIBS=$ac_check_lib_save_LIBS | ||
6023 | fi | ||
6024 | echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5 | ||
6025 | echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6 | ||
6026 | if test $ac_cv_lib_res_query_resolv = yes; then | ||
6027 | LIBS="$LIBS -lresolv" | ||
6028 | fi | ||
6029 | |||
6030 | IPADDR_IN_DISPLAY=yes | ||
6031 | cat >>confdefs.h <<\_ACEOF | ||
6032 | #define USE_PIPES 1 | ||
6033 | _ACEOF | ||
6034 | |||
6035 | cat >>confdefs.h <<\_ACEOF | ||
6036 | #define IP_TOS_IS_BROKEN 1 | ||
6037 | _ACEOF | ||
6038 | |||
6039 | cat >>confdefs.h <<\_ACEOF | ||
6040 | #define SETEUID_BREAKS_SETUID 1 | ||
6041 | _ACEOF | ||
6042 | |||
6043 | cat >>confdefs.h <<\_ACEOF | ||
6044 | #define BROKEN_SETREUID 1 | ||
6045 | _ACEOF | ||
6046 | |||
6047 | cat >>confdefs.h <<\_ACEOF | ||
6048 | #define BROKEN_SETREGID 1 | ||
6049 | _ACEOF | ||
6050 | |||
6051 | cat >>confdefs.h <<\_ACEOF | ||
6052 | #define SSHD_ACQUIRES_CTTY 1 | ||
6053 | _ACEOF | ||
6054 | |||
6055 | external_path_file=/etc/default/login | ||
6056 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
6057 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
6058 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
6059 | ;; | ||
6060 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
6061 | *-*-sysv4.2*) | ||
6062 | cat >>confdefs.h <<\_ACEOF | ||
6063 | #define USE_PIPES 1 | ||
6064 | _ACEOF | ||
6065 | |||
6066 | cat >>confdefs.h <<\_ACEOF | ||
6067 | #define SETEUID_BREAKS_SETUID 1 | ||
6068 | _ACEOF | ||
6069 | |||
6070 | cat >>confdefs.h <<\_ACEOF | ||
6071 | #define BROKEN_SETREUID 1 | ||
6072 | _ACEOF | ||
6073 | |||
6074 | cat >>confdefs.h <<\_ACEOF | ||
6075 | #define BROKEN_SETREGID 1 | ||
6076 | _ACEOF | ||
6077 | |||
6078 | |||
6079 | cat >>confdefs.h <<\_ACEOF | ||
6080 | #define PASSWD_NEEDS_USERNAME 1 | ||
6081 | _ACEOF | ||
6082 | |||
6083 | ;; | ||
6084 | # UnixWare 7.x, OpenUNIX 8 | ||
6085 | *-*-sysv5*) | ||
6086 | cat >>confdefs.h <<\_ACEOF | ||
6087 | #define USE_PIPES 1 | ||
6088 | _ACEOF | ||
6089 | |||
6090 | cat >>confdefs.h <<\_ACEOF | ||
6091 | #define SETEUID_BREAKS_SETUID 1 | ||
6092 | _ACEOF | ||
6093 | |||
6094 | cat >>confdefs.h <<\_ACEOF | ||
6095 | #define BROKEN_SETREUID 1 | ||
6096 | _ACEOF | ||
6097 | |||
6098 | cat >>confdefs.h <<\_ACEOF | ||
6099 | #define BROKEN_SETREGID 1 | ||
6100 | _ACEOF | ||
6101 | |||
6102 | |||
6103 | cat >>confdefs.h <<\_ACEOF | ||
6104 | #define PASSWD_NEEDS_USERNAME 1 | ||
6105 | _ACEOF | ||
6106 | |||
6107 | ;; | ||
6108 | *-*-sysv*) | ||
6109 | ;; | ||
6110 | # SCO UNIX and OEM versions of SCO UNIX | ||
6111 | *-*-sco3.2v4*) | ||
6112 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
6113 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
6114 | { (exit 1); exit 1; }; } | ||
6115 | ;; | ||
6116 | # SCO OpenServer 5.x | ||
6117 | *-*-sco3.2v5*) | ||
6118 | if test -z "$GCC"; then | ||
6119 | CFLAGS="$CFLAGS -belf" | ||
6120 | fi | ||
6121 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
6122 | no_dev_ptmx=1 | ||
6123 | cat >>confdefs.h <<\_ACEOF | ||
6124 | #define USE_PIPES 1 | ||
6125 | _ACEOF | ||
6126 | |||
6127 | cat >>confdefs.h <<\_ACEOF | ||
6128 | #define HAVE_SECUREWARE 1 | ||
6129 | _ACEOF | ||
6130 | |||
6131 | cat >>confdefs.h <<\_ACEOF | ||
6132 | #define DISABLE_SHADOW 1 | ||
6133 | _ACEOF | ||
6134 | |||
6135 | cat >>confdefs.h <<\_ACEOF | ||
6136 | #define DISABLE_FD_PASSING 1 | ||
6137 | _ACEOF | ||
6138 | |||
6139 | cat >>confdefs.h <<\_ACEOF | ||
6140 | #define SETEUID_BREAKS_SETUID 1 | ||
6141 | _ACEOF | ||
6142 | |||
6143 | cat >>confdefs.h <<\_ACEOF | ||
6144 | #define BROKEN_SETREUID 1 | ||
6145 | _ACEOF | ||
6146 | |||
6147 | cat >>confdefs.h <<\_ACEOF | ||
6148 | #define BROKEN_SETREGID 1 | ||
6149 | _ACEOF | ||
6150 | |||
6151 | cat >>confdefs.h <<\_ACEOF | ||
6152 | #define WITH_ABBREV_NO_TTY 1 | ||
6153 | _ACEOF | ||
6154 | |||
6155 | cat >>confdefs.h <<\_ACEOF | ||
6156 | #define BROKEN_UPDWTMPX 1 | ||
6157 | _ACEOF | ||
6158 | |||
6159 | |||
6160 | cat >>confdefs.h <<\_ACEOF | ||
6161 | #define PASSWD_NEEDS_USERNAME 1 | ||
6162 | _ACEOF | ||
6163 | |||
6164 | |||
6165 | |||
6166 | for ac_func in getluid setluid | ||
6167 | do | ||
6168 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6169 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6170 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6171 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6173 | else | ||
6174 | cat >conftest.$ac_ext <<_ACEOF | ||
6175 | /* confdefs.h. */ | ||
6176 | _ACEOF | ||
6177 | cat confdefs.h >>conftest.$ac_ext | ||
6178 | cat >>conftest.$ac_ext <<_ACEOF | ||
6179 | /* end confdefs.h. */ | ||
6180 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6181 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6182 | #define $ac_func innocuous_$ac_func | ||
6183 | |||
6184 | /* System header to define __stub macros and hopefully few prototypes, | ||
6185 | which can conflict with char $ac_func (); below. | ||
6186 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6187 | <limits.h> exists even on freestanding compilers. */ | ||
6188 | |||
6189 | #ifdef __STDC__ | ||
6190 | # include <limits.h> | ||
6191 | #else | ||
6192 | # include <assert.h> | ||
6193 | #endif | ||
6194 | |||
6195 | #undef $ac_func | ||
6196 | |||
6197 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6198 | #ifdef __cplusplus | ||
6199 | extern "C" | ||
6200 | { | ||
6201 | #endif | ||
6202 | /* We use char because int might match the return type of a gcc2 | ||
6203 | builtin and then its argument prototype would still apply. */ | ||
6204 | char $ac_func (); | ||
6205 | /* The GNU C library defines this for functions which it implements | ||
6206 | to always fail with ENOSYS. Some functions are actually named | ||
6207 | something starting with __ and the normal name is an alias. */ | ||
6208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6209 | choke me | ||
6210 | #else | ||
6211 | char (*f) () = $ac_func; | ||
6212 | #endif | ||
6213 | #ifdef __cplusplus | ||
6214 | } | ||
6215 | #endif | ||
6216 | |||
6217 | int | ||
6218 | main () | ||
6219 | { | ||
6220 | return f != $ac_func; | ||
6221 | ; | ||
6222 | return 0; | ||
6223 | } | ||
6224 | _ACEOF | ||
6225 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6227 | (eval $ac_link) 2>conftest.er1 | ||
6228 | ac_status=$? | ||
6229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6230 | rm -f conftest.er1 | ||
6231 | cat conftest.err >&5 | ||
6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6233 | (exit $ac_status); } && | ||
6234 | { ac_try='test -z "$ac_c_werror_flag" | ||
6235 | || test ! -s conftest.err' | ||
6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6237 | (eval $ac_try) 2>&5 | ||
6238 | ac_status=$? | ||
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6240 | (exit $ac_status); }; } && | ||
6241 | { ac_try='test -s conftest$ac_exeext' | ||
6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6243 | (eval $ac_try) 2>&5 | ||
6244 | ac_status=$? | ||
6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6246 | (exit $ac_status); }; }; then | ||
6247 | eval "$as_ac_var=yes" | ||
6248 | else | ||
6249 | echo "$as_me: failed program was:" >&5 | ||
6250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6251 | |||
6252 | eval "$as_ac_var=no" | ||
6253 | fi | ||
6254 | rm -f conftest.err conftest.$ac_objext \ | ||
6255 | conftest$ac_exeext conftest.$ac_ext | ||
6256 | fi | ||
6257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6258 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6259 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6260 | cat >>confdefs.h <<_ACEOF | ||
6261 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6262 | _ACEOF | ||
6263 | |||
6264 | fi | ||
6265 | done | ||
6266 | |||
6267 | MANTYPE=man | ||
6268 | TEST_SHELL=ksh | ||
6269 | ;; | ||
6270 | *-*-unicosmk*) | ||
6271 | cat >>confdefs.h <<\_ACEOF | ||
6272 | #define NO_SSH_LASTLOG 1 | ||
6273 | _ACEOF | ||
6274 | |||
6275 | cat >>confdefs.h <<\_ACEOF | ||
6276 | #define SETEUID_BREAKS_SETUID 1 | ||
6277 | _ACEOF | ||
6278 | |||
6279 | cat >>confdefs.h <<\_ACEOF | ||
6280 | #define BROKEN_SETREUID 1 | ||
6281 | _ACEOF | ||
6282 | |||
6283 | cat >>confdefs.h <<\_ACEOF | ||
6284 | #define BROKEN_SETREGID 1 | ||
6285 | _ACEOF | ||
6286 | |||
6287 | cat >>confdefs.h <<\_ACEOF | ||
6288 | #define USE_PIPES 1 | ||
6289 | _ACEOF | ||
6290 | |||
6291 | cat >>confdefs.h <<\_ACEOF | ||
6292 | #define DISABLE_FD_PASSING 1 | ||
6293 | _ACEOF | ||
6294 | |||
6295 | LDFLAGS="$LDFLAGS" | ||
6296 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6297 | MANTYPE=cat | ||
6298 | ;; | ||
6299 | *-*-unicosmp*) | ||
6300 | cat >>confdefs.h <<\_ACEOF | ||
6301 | #define SETEUID_BREAKS_SETUID 1 | ||
6302 | _ACEOF | ||
6303 | |||
6304 | cat >>confdefs.h <<\_ACEOF | ||
6305 | #define BROKEN_SETREUID 1 | ||
6306 | _ACEOF | ||
6307 | |||
6308 | cat >>confdefs.h <<\_ACEOF | ||
6309 | #define BROKEN_SETREGID 1 | ||
6310 | _ACEOF | ||
6311 | |||
6312 | cat >>confdefs.h <<\_ACEOF | ||
6313 | #define WITH_ABBREV_NO_TTY 1 | ||
6314 | _ACEOF | ||
6315 | |||
6316 | cat >>confdefs.h <<\_ACEOF | ||
6317 | #define USE_PIPES 1 | ||
6318 | _ACEOF | ||
6319 | |||
6320 | cat >>confdefs.h <<\_ACEOF | ||
6321 | #define DISABLE_FD_PASSING 1 | ||
6322 | _ACEOF | ||
6323 | |||
6324 | LDFLAGS="$LDFLAGS" | ||
6325 | LIBS="$LIBS -lgen -lacid -ldb" | ||
6326 | MANTYPE=cat | ||
6327 | ;; | ||
6328 | *-*-unicos*) | ||
6329 | cat >>confdefs.h <<\_ACEOF | ||
6330 | #define SETEUID_BREAKS_SETUID 1 | ||
6331 | _ACEOF | ||
6332 | |||
6333 | cat >>confdefs.h <<\_ACEOF | ||
6334 | #define BROKEN_SETREUID 1 | ||
6335 | _ACEOF | ||
6336 | |||
6337 | cat >>confdefs.h <<\_ACEOF | ||
6338 | #define BROKEN_SETREGID 1 | ||
6339 | _ACEOF | ||
6340 | |||
6341 | cat >>confdefs.h <<\_ACEOF | ||
6342 | #define USE_PIPES 1 | ||
6343 | _ACEOF | ||
6344 | |||
6345 | cat >>confdefs.h <<\_ACEOF | ||
6346 | #define DISABLE_FD_PASSING 1 | ||
6347 | _ACEOF | ||
6348 | |||
6349 | cat >>confdefs.h <<\_ACEOF | ||
6350 | #define NO_SSH_LASTLOG 1 | ||
6351 | _ACEOF | ||
6352 | |||
6353 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
6354 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6355 | MANTYPE=cat | ||
6356 | ;; | ||
6357 | *-dec-osf*) | ||
6358 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
6359 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
6360 | no_osfsia="" | ||
6361 | |||
6362 | # Check whether --with-osfsia or --without-osfsia was given. | ||
6363 | if test "${with_osfsia+set}" = set; then | ||
6364 | withval="$with_osfsia" | ||
6365 | |||
6366 | if test "x$withval" = "xno" ; then | ||
6367 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
6368 | echo "${ECHO_T}disabled" >&6 | ||
6369 | no_osfsia=1 | ||
6370 | fi | ||
6371 | |||
6372 | fi; | ||
6373 | if test -z "$no_osfsia" ; then | ||
6374 | if test -f /etc/sia/matrix.conf; then | ||
6375 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6376 | echo "${ECHO_T}yes" >&6 | ||
6377 | cat >>confdefs.h <<\_ACEOF | ||
6378 | #define HAVE_OSF_SIA 1 | ||
6379 | _ACEOF | ||
6380 | |||
6381 | cat >>confdefs.h <<\_ACEOF | ||
6382 | #define DISABLE_LOGIN 1 | ||
6383 | _ACEOF | ||
6384 | |||
6385 | cat >>confdefs.h <<\_ACEOF | ||
6386 | #define DISABLE_FD_PASSING 1 | ||
6387 | _ACEOF | ||
6388 | |||
6389 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
6390 | else | ||
6391 | echo "$as_me:$LINENO: result: no" >&5 | ||
6392 | echo "${ECHO_T}no" >&6 | ||
6393 | cat >>confdefs.h <<\_ACEOF | ||
6394 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
6395 | _ACEOF | ||
6396 | |||
6397 | fi | ||
6398 | fi | ||
6399 | cat >>confdefs.h <<\_ACEOF | ||
6400 | #define BROKEN_GETADDRINFO 1 | ||
6401 | _ACEOF | ||
6402 | |||
6403 | cat >>confdefs.h <<\_ACEOF | ||
6404 | #define SETEUID_BREAKS_SETUID 1 | ||
6405 | _ACEOF | ||
6406 | |||
6407 | cat >>confdefs.h <<\_ACEOF | ||
6408 | #define BROKEN_SETREUID 1 | ||
6409 | _ACEOF | ||
6410 | |||
6411 | cat >>confdefs.h <<\_ACEOF | ||
6412 | #define BROKEN_SETREGID 1 | ||
6413 | _ACEOF | ||
6414 | |||
6415 | ;; | ||
6416 | |||
6417 | *-*-nto-qnx) | ||
6418 | cat >>confdefs.h <<\_ACEOF | ||
6419 | #define USE_PIPES 1 | ||
6420 | _ACEOF | ||
6421 | |||
6422 | cat >>confdefs.h <<\_ACEOF | ||
6423 | #define NO_X11_UNIX_SOCKETS 1 | ||
6424 | _ACEOF | ||
6425 | |||
6426 | cat >>confdefs.h <<\_ACEOF | ||
6427 | #define MISSING_NFDBITS 1 | ||
6428 | _ACEOF | ||
6429 | |||
6430 | cat >>confdefs.h <<\_ACEOF | ||
6431 | #define MISSING_HOWMANY 1 | ||
6432 | _ACEOF | ||
6433 | |||
6434 | cat >>confdefs.h <<\_ACEOF | ||
6435 | #define MISSING_FD_MASK 1 | ||
6436 | _ACEOF | ||
6437 | |||
6438 | ;; | ||
6439 | esac | ||
6440 | |||
6441 | # Allow user to specify flags | ||
6442 | |||
6443 | # Check whether --with-cflags or --without-cflags was given. | ||
6444 | if test "${with_cflags+set}" = set; then | ||
6445 | withval="$with_cflags" | ||
6446 | |||
6447 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6448 | test "x${withval}" != "xyes"; then | ||
6449 | CFLAGS="$CFLAGS $withval" | ||
6450 | fi | ||
6451 | |||
6452 | |||
6453 | fi; | ||
6454 | |||
6455 | # Check whether --with-cppflags or --without-cppflags was given. | ||
6456 | if test "${with_cppflags+set}" = set; then | ||
6457 | withval="$with_cppflags" | ||
6458 | |||
6459 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6460 | test "x${withval}" != "xyes"; then | ||
6461 | CPPFLAGS="$CPPFLAGS $withval" | ||
6462 | fi | ||
6463 | |||
6464 | |||
6465 | fi; | ||
6466 | |||
6467 | # Check whether --with-ldflags or --without-ldflags was given. | ||
6468 | if test "${with_ldflags+set}" = set; then | ||
6469 | withval="$with_ldflags" | ||
6470 | |||
6471 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6472 | test "x${withval}" != "xyes"; then | ||
6473 | LDFLAGS="$LDFLAGS $withval" | ||
6474 | fi | ||
6475 | |||
6476 | |||
6477 | fi; | ||
6478 | |||
6479 | # Check whether --with-libs or --without-libs was given. | ||
6480 | if test "${with_libs+set}" = set; then | ||
6481 | withval="$with_libs" | ||
6482 | |||
6483 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6484 | test "x${withval}" != "xyes"; then | ||
6485 | LIBS="$LIBS $withval" | ||
6486 | fi | ||
6487 | |||
6488 | |||
6489 | fi; | ||
6490 | |||
6491 | echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
6492 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
6493 | if test "$cross_compiling" = yes; then | ||
6494 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
6495 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
6496 | |||
6497 | else | ||
6498 | cat >conftest.$ac_ext <<_ACEOF | ||
6499 | /* confdefs.h. */ | ||
6500 | _ACEOF | ||
6501 | cat confdefs.h >>conftest.$ac_ext | ||
6502 | cat >>conftest.$ac_ext <<_ACEOF | ||
6503 | /* end confdefs.h. */ | ||
6504 | |||
6505 | #include <stdio.h> | ||
6506 | int main(){exit(0);} | ||
6507 | |||
6508 | _ACEOF | ||
6509 | rm -f conftest$ac_exeext | ||
6510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6511 | (eval $ac_link) 2>&5 | ||
6512 | ac_status=$? | ||
6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6516 | (eval $ac_try) 2>&5 | ||
6517 | ac_status=$? | ||
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6519 | (exit $ac_status); }; }; then | ||
6520 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6521 | echo "${ECHO_T}yes" >&6 | ||
6522 | else | ||
6523 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6524 | echo "$as_me: failed program was:" >&5 | ||
6525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6526 | |||
6527 | ( exit $ac_status ) | ||
6528 | |||
6529 | echo "$as_me:$LINENO: result: no" >&5 | ||
6530 | echo "${ECHO_T}no" >&6 | ||
6531 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
6532 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
6533 | { (exit 1); exit 1; }; } | ||
6534 | |||
6535 | fi | ||
6536 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6537 | fi | ||
6538 | |||
6539 | # Checks for header files. | ||
6540 | |||
6541 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
6542 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
6543 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6545 | else | ||
6546 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
6547 | then ac_cv_prog_egrep='grep -E' | ||
6548 | else ac_cv_prog_egrep='egrep' | ||
6549 | fi | ||
6550 | fi | ||
6551 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
6552 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
6553 | EGREP=$ac_cv_prog_egrep | ||
6554 | |||
6555 | |||
6556 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
6557 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6558 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6560 | else | ||
6561 | cat >conftest.$ac_ext <<_ACEOF | ||
6562 | /* confdefs.h. */ | ||
6563 | _ACEOF | ||
6564 | cat confdefs.h >>conftest.$ac_ext | ||
6565 | cat >>conftest.$ac_ext <<_ACEOF | ||
6566 | /* end confdefs.h. */ | ||
6567 | #include <stdlib.h> | ||
6568 | #include <stdarg.h> | ||
6569 | #include <string.h> | ||
6570 | #include <float.h> | ||
6571 | |||
6572 | int | ||
6573 | main () | ||
6574 | { | ||
6575 | |||
6576 | ; | ||
6577 | return 0; | ||
6578 | } | ||
6579 | _ACEOF | ||
6580 | rm -f conftest.$ac_objext | ||
6581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6582 | (eval $ac_compile) 2>conftest.er1 | ||
6583 | ac_status=$? | ||
6584 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6585 | rm -f conftest.er1 | ||
6586 | cat conftest.err >&5 | ||
6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6588 | (exit $ac_status); } && | ||
6589 | { ac_try='test -z "$ac_c_werror_flag" | ||
6590 | || test ! -s conftest.err' | ||
6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6592 | (eval $ac_try) 2>&5 | ||
6593 | ac_status=$? | ||
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6595 | (exit $ac_status); }; } && | ||
6596 | { ac_try='test -s conftest.$ac_objext' | ||
6597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6598 | (eval $ac_try) 2>&5 | ||
6599 | ac_status=$? | ||
6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6601 | (exit $ac_status); }; }; then | ||
6602 | ac_cv_header_stdc=yes | ||
6603 | else | ||
6604 | echo "$as_me: failed program was:" >&5 | ||
6605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6606 | |||
6607 | ac_cv_header_stdc=no | ||
6608 | fi | ||
6609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6610 | |||
6611 | if test $ac_cv_header_stdc = yes; then | ||
6612 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6613 | cat >conftest.$ac_ext <<_ACEOF | ||
6614 | /* confdefs.h. */ | ||
6615 | _ACEOF | ||
6616 | cat confdefs.h >>conftest.$ac_ext | ||
6617 | cat >>conftest.$ac_ext <<_ACEOF | ||
6618 | /* end confdefs.h. */ | ||
6619 | #include <string.h> | ||
6620 | |||
6621 | _ACEOF | ||
6622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6623 | $EGREP "memchr" >/dev/null 2>&1; then | ||
6624 | : | ||
6625 | else | ||
6626 | ac_cv_header_stdc=no | ||
6627 | fi | ||
6628 | rm -f conftest* | ||
6629 | |||
6630 | fi | ||
6631 | |||
6632 | if test $ac_cv_header_stdc = yes; then | ||
6633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6634 | cat >conftest.$ac_ext <<_ACEOF | ||
6635 | /* confdefs.h. */ | ||
6636 | _ACEOF | ||
6637 | cat confdefs.h >>conftest.$ac_ext | ||
6638 | cat >>conftest.$ac_ext <<_ACEOF | ||
6639 | /* end confdefs.h. */ | ||
6640 | #include <stdlib.h> | ||
6641 | |||
6642 | _ACEOF | ||
6643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6644 | $EGREP "free" >/dev/null 2>&1; then | ||
6645 | : | ||
6646 | else | ||
6647 | ac_cv_header_stdc=no | ||
6648 | fi | ||
6649 | rm -f conftest* | ||
6650 | |||
6651 | fi | ||
6652 | |||
6653 | if test $ac_cv_header_stdc = yes; then | ||
6654 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6655 | if test "$cross_compiling" = yes; then | ||
6656 | : | ||
6657 | else | ||
6658 | cat >conftest.$ac_ext <<_ACEOF | ||
6659 | /* confdefs.h. */ | ||
6660 | _ACEOF | ||
6661 | cat confdefs.h >>conftest.$ac_ext | ||
6662 | cat >>conftest.$ac_ext <<_ACEOF | ||
6663 | /* end confdefs.h. */ | ||
6664 | #include <ctype.h> | ||
6665 | #if ((' ' & 0x0FF) == 0x020) | ||
6666 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6667 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6668 | #else | ||
6669 | # define ISLOWER(c) \ | ||
6670 | (('a' <= (c) && (c) <= 'i') \ | ||
6671 | || ('j' <= (c) && (c) <= 'r') \ | ||
6672 | || ('s' <= (c) && (c) <= 'z')) | ||
6673 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6674 | #endif | ||
6675 | |||
6676 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6677 | int | ||
6678 | main () | ||
6679 | { | ||
6680 | int i; | ||
6681 | for (i = 0; i < 256; i++) | ||
6682 | if (XOR (islower (i), ISLOWER (i)) | ||
6683 | || toupper (i) != TOUPPER (i)) | ||
6684 | exit(2); | ||
6685 | exit (0); | ||
6686 | } | ||
6687 | _ACEOF | ||
6688 | rm -f conftest$ac_exeext | ||
6689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6690 | (eval $ac_link) 2>&5 | ||
6691 | ac_status=$? | ||
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6695 | (eval $ac_try) 2>&5 | ||
6696 | ac_status=$? | ||
6697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6698 | (exit $ac_status); }; }; then | ||
6699 | : | ||
6700 | else | ||
6701 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6702 | echo "$as_me: failed program was:" >&5 | ||
6703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6704 | |||
6705 | ( exit $ac_status ) | ||
6706 | ac_cv_header_stdc=no | ||
6707 | fi | ||
6708 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6709 | fi | ||
6710 | fi | ||
6711 | fi | ||
6712 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
6713 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6714 | if test $ac_cv_header_stdc = yes; then | ||
6715 | |||
6716 | cat >>confdefs.h <<\_ACEOF | ||
6717 | #define STDC_HEADERS 1 | ||
6718 | _ACEOF | ||
6719 | |||
6720 | fi | ||
6721 | |||
6722 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6723 | |||
6724 | |||
6725 | |||
6726 | |||
6727 | |||
6728 | |||
6729 | |||
6730 | |||
6731 | |||
6732 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6733 | inttypes.h stdint.h unistd.h | ||
6734 | do | ||
6735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6740 | else | ||
6741 | cat >conftest.$ac_ext <<_ACEOF | ||
6742 | /* confdefs.h. */ | ||
6743 | _ACEOF | ||
6744 | cat confdefs.h >>conftest.$ac_ext | ||
6745 | cat >>conftest.$ac_ext <<_ACEOF | ||
6746 | /* end confdefs.h. */ | ||
6747 | $ac_includes_default | ||
6748 | |||
6749 | #include <$ac_header> | ||
6750 | _ACEOF | ||
6751 | rm -f conftest.$ac_objext | ||
6752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6753 | (eval $ac_compile) 2>conftest.er1 | ||
6754 | ac_status=$? | ||
6755 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6756 | rm -f conftest.er1 | ||
6757 | cat conftest.err >&5 | ||
6758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6759 | (exit $ac_status); } && | ||
6760 | { ac_try='test -z "$ac_c_werror_flag" | ||
6761 | || test ! -s conftest.err' | ||
6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6763 | (eval $ac_try) 2>&5 | ||
6764 | ac_status=$? | ||
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6766 | (exit $ac_status); }; } && | ||
6767 | { ac_try='test -s conftest.$ac_objext' | ||
6768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6769 | (eval $ac_try) 2>&5 | ||
6770 | ac_status=$? | ||
6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6772 | (exit $ac_status); }; }; then | ||
6773 | eval "$as_ac_Header=yes" | ||
6774 | else | ||
6775 | echo "$as_me: failed program was:" >&5 | ||
6776 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6777 | |||
6778 | eval "$as_ac_Header=no" | ||
6779 | fi | ||
6780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6781 | fi | ||
6782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6785 | cat >>confdefs.h <<_ACEOF | ||
6786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6787 | _ACEOF | ||
6788 | |||
6789 | fi | ||
6790 | |||
6791 | done | ||
6792 | |||
6793 | |||
6794 | |||
6795 | |||
6796 | |||
6797 | |||
6798 | |||
6799 | |||
6800 | |||
6801 | |||
6802 | |||
6803 | |||
6804 | |||
6805 | |||
6806 | |||
6807 | |||
6808 | |||
6809 | |||
6810 | |||
6811 | |||
6812 | |||
6813 | |||
6814 | |||
6815 | |||
6816 | |||
6817 | |||
6818 | |||
6819 | |||
6820 | |||
6821 | |||
6822 | |||
6823 | |||
6824 | |||
6825 | |||
6826 | |||
6827 | |||
6828 | |||
6829 | |||
6830 | |||
6831 | |||
6832 | |||
6833 | |||
6834 | |||
6835 | |||
6836 | |||
6837 | |||
6838 | |||
6839 | |||
6840 | |||
6841 | |||
6842 | |||
6843 | |||
6844 | |||
6845 | |||
6846 | |||
6847 | |||
6848 | |||
6849 | for ac_header in bstring.h crypt.h dirent.h endian.h features.h \ | ||
6850 | floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
6851 | login_cap.h maillock.h ndir.h netdb.h netgroup.h \ | ||
6852 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ | ||
6853 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
6854 | strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \ | ||
6855 | sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \ | ||
6856 | sys/pstat.h sys/select.h sys/stat.h sys/stream.h \ | ||
6857 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \ | ||
6858 | time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h | ||
6859 | do | ||
6860 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6862 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6864 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6866 | fi | ||
6867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6869 | else | ||
6870 | # Is the header compilable? | ||
6871 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6872 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6873 | cat >conftest.$ac_ext <<_ACEOF | ||
6874 | /* confdefs.h. */ | ||
6875 | _ACEOF | ||
6876 | cat confdefs.h >>conftest.$ac_ext | ||
6877 | cat >>conftest.$ac_ext <<_ACEOF | ||
6878 | /* end confdefs.h. */ | ||
6879 | $ac_includes_default | ||
6880 | #include <$ac_header> | ||
6881 | _ACEOF | ||
6882 | rm -f conftest.$ac_objext | ||
6883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6884 | (eval $ac_compile) 2>conftest.er1 | ||
6885 | ac_status=$? | ||
6886 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6887 | rm -f conftest.er1 | ||
6888 | cat conftest.err >&5 | ||
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6890 | (exit $ac_status); } && | ||
6891 | { ac_try='test -z "$ac_c_werror_flag" | ||
6892 | || test ! -s conftest.err' | ||
6893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6894 | (eval $ac_try) 2>&5 | ||
6895 | ac_status=$? | ||
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6897 | (exit $ac_status); }; } && | ||
6898 | { ac_try='test -s conftest.$ac_objext' | ||
6899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6900 | (eval $ac_try) 2>&5 | ||
6901 | ac_status=$? | ||
6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6903 | (exit $ac_status); }; }; then | ||
6904 | ac_header_compiler=yes | ||
6905 | else | ||
6906 | echo "$as_me: failed program was:" >&5 | ||
6907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6908 | |||
6909 | ac_header_compiler=no | ||
6910 | fi | ||
6911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6912 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6913 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6914 | |||
6915 | # Is the header present? | ||
6916 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6918 | cat >conftest.$ac_ext <<_ACEOF | ||
6919 | /* confdefs.h. */ | ||
6920 | _ACEOF | ||
6921 | cat confdefs.h >>conftest.$ac_ext | ||
6922 | cat >>conftest.$ac_ext <<_ACEOF | ||
6923 | /* end confdefs.h. */ | ||
6924 | #include <$ac_header> | ||
6925 | _ACEOF | ||
6926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6928 | ac_status=$? | ||
6929 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6930 | rm -f conftest.er1 | ||
6931 | cat conftest.err >&5 | ||
6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6933 | (exit $ac_status); } >/dev/null; then | ||
6934 | if test -s conftest.err; then | ||
6935 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6936 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
6937 | else | ||
6938 | ac_cpp_err= | ||
6939 | fi | ||
6940 | else | ||
6941 | ac_cpp_err=yes | ||
6942 | fi | ||
6943 | if test -z "$ac_cpp_err"; then | ||
6944 | ac_header_preproc=yes | ||
6945 | else | ||
6946 | echo "$as_me: failed program was:" >&5 | ||
6947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6948 | |||
6949 | ac_header_preproc=no | ||
6950 | fi | ||
6951 | rm -f conftest.err conftest.$ac_ext | ||
6952 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6953 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6954 | |||
6955 | # So? What about this header? | ||
6956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6957 | yes:no: ) | ||
6958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6961 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6962 | ac_header_preproc=yes | ||
6963 | ;; | ||
6964 | no:yes:* ) | ||
6965 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6966 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6967 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6968 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6969 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6970 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6971 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6972 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6973 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6974 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6975 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6976 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6977 | ( | ||
6978 | cat <<\_ASBOX | ||
6979 | ## ---------------------------------- ## | ||
6980 | ## Report this to the OpenSSH lists. ## | ||
6981 | ## ---------------------------------- ## | ||
6982 | _ASBOX | ||
6983 | ) | | ||
6984 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6985 | ;; | ||
6986 | esac | ||
6987 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6991 | else | ||
6992 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6993 | fi | ||
6994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6995 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6996 | |||
6997 | fi | ||
6998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6999 | cat >>confdefs.h <<_ACEOF | ||
7000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7001 | _ACEOF | ||
7002 | |||
7003 | fi | ||
7004 | |||
7005 | done | ||
7006 | |||
7007 | |||
7008 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7009 | |||
7010 | for ac_header in sys/ptms.h | ||
7011 | do | ||
7012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7017 | else | ||
7018 | cat >conftest.$ac_ext <<_ACEOF | ||
7019 | /* confdefs.h. */ | ||
7020 | _ACEOF | ||
7021 | cat confdefs.h >>conftest.$ac_ext | ||
7022 | cat >>conftest.$ac_ext <<_ACEOF | ||
7023 | /* end confdefs.h. */ | ||
7024 | |||
7025 | #ifdef HAVE_SYS_STREAM_H | ||
7026 | # include <sys/stream.h> | ||
7027 | #endif | ||
7028 | |||
7029 | |||
7030 | #include <$ac_header> | ||
7031 | _ACEOF | ||
7032 | rm -f conftest.$ac_objext | ||
7033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7034 | (eval $ac_compile) 2>conftest.er1 | ||
7035 | ac_status=$? | ||
7036 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7037 | rm -f conftest.er1 | ||
7038 | cat conftest.err >&5 | ||
7039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7040 | (exit $ac_status); } && | ||
7041 | { ac_try='test -z "$ac_c_werror_flag" | ||
7042 | || test ! -s conftest.err' | ||
7043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7044 | (eval $ac_try) 2>&5 | ||
7045 | ac_status=$? | ||
7046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7047 | (exit $ac_status); }; } && | ||
7048 | { ac_try='test -s conftest.$ac_objext' | ||
7049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7050 | (eval $ac_try) 2>&5 | ||
7051 | ac_status=$? | ||
7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7053 | (exit $ac_status); }; }; then | ||
7054 | eval "$as_ac_Header=yes" | ||
7055 | else | ||
7056 | echo "$as_me: failed program was:" >&5 | ||
7057 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7058 | |||
7059 | eval "$as_ac_Header=no" | ||
7060 | fi | ||
7061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7062 | fi | ||
7063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7066 | cat >>confdefs.h <<_ACEOF | ||
7067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7068 | _ACEOF | ||
7069 | |||
7070 | fi | ||
7071 | |||
7072 | done | ||
7073 | |||
7074 | |||
7075 | # Checks for libraries. | ||
7076 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
7077 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
7078 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
7079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7080 | else | ||
7081 | cat >conftest.$ac_ext <<_ACEOF | ||
7082 | /* confdefs.h. */ | ||
7083 | _ACEOF | ||
7084 | cat confdefs.h >>conftest.$ac_ext | ||
7085 | cat >>conftest.$ac_ext <<_ACEOF | ||
7086 | /* end confdefs.h. */ | ||
7087 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
7088 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7089 | #define yp_match innocuous_yp_match | ||
7090 | |||
7091 | /* System header to define __stub macros and hopefully few prototypes, | ||
7092 | which can conflict with char yp_match (); below. | ||
7093 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7094 | <limits.h> exists even on freestanding compilers. */ | ||
7095 | |||
7096 | #ifdef __STDC__ | ||
7097 | # include <limits.h> | ||
7098 | #else | ||
7099 | # include <assert.h> | ||
7100 | #endif | ||
7101 | |||
7102 | #undef yp_match | ||
7103 | |||
7104 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7105 | #ifdef __cplusplus | ||
7106 | extern "C" | ||
7107 | { | ||
7108 | #endif | ||
7109 | /* We use char because int might match the return type of a gcc2 | ||
7110 | builtin and then its argument prototype would still apply. */ | ||
7111 | char yp_match (); | ||
7112 | /* The GNU C library defines this for functions which it implements | ||
7113 | to always fail with ENOSYS. Some functions are actually named | ||
7114 | something starting with __ and the normal name is an alias. */ | ||
7115 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
7116 | choke me | ||
7117 | #else | ||
7118 | char (*f) () = yp_match; | ||
7119 | #endif | ||
7120 | #ifdef __cplusplus | ||
7121 | } | ||
7122 | #endif | ||
7123 | |||
7124 | int | ||
7125 | main () | ||
7126 | { | ||
7127 | return f != yp_match; | ||
7128 | ; | ||
7129 | return 0; | ||
7130 | } | ||
7131 | _ACEOF | ||
7132 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7134 | (eval $ac_link) 2>conftest.er1 | ||
7135 | ac_status=$? | ||
7136 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7137 | rm -f conftest.er1 | ||
7138 | cat conftest.err >&5 | ||
7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7140 | (exit $ac_status); } && | ||
7141 | { ac_try='test -z "$ac_c_werror_flag" | ||
7142 | || test ! -s conftest.err' | ||
7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7144 | (eval $ac_try) 2>&5 | ||
7145 | ac_status=$? | ||
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7147 | (exit $ac_status); }; } && | ||
7148 | { ac_try='test -s conftest$ac_exeext' | ||
7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7150 | (eval $ac_try) 2>&5 | ||
7151 | ac_status=$? | ||
7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7153 | (exit $ac_status); }; }; then | ||
7154 | ac_cv_func_yp_match=yes | ||
7155 | else | ||
7156 | echo "$as_me: failed program was:" >&5 | ||
7157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7158 | |||
7159 | ac_cv_func_yp_match=no | ||
7160 | fi | ||
7161 | rm -f conftest.err conftest.$ac_objext \ | ||
7162 | conftest$ac_exeext conftest.$ac_ext | ||
7163 | fi | ||
7164 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
7165 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
7166 | if test $ac_cv_func_yp_match = yes; then | ||
7167 | : | ||
7168 | else | ||
7169 | |||
7170 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
7171 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
7172 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
7173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7174 | else | ||
7175 | ac_check_lib_save_LIBS=$LIBS | ||
7176 | LIBS="-lnsl $LIBS" | ||
7177 | cat >conftest.$ac_ext <<_ACEOF | ||
7178 | /* confdefs.h. */ | ||
7179 | _ACEOF | ||
7180 | cat confdefs.h >>conftest.$ac_ext | ||
7181 | cat >>conftest.$ac_ext <<_ACEOF | ||
7182 | /* end confdefs.h. */ | ||
7183 | |||
7184 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7185 | #ifdef __cplusplus | ||
7186 | extern "C" | ||
7187 | #endif | ||
7188 | /* We use char because int might match the return type of a gcc2 | ||
7189 | builtin and then its argument prototype would still apply. */ | ||
7190 | char yp_match (); | ||
7191 | int | ||
7192 | main () | ||
7193 | { | ||
7194 | yp_match (); | ||
7195 | ; | ||
7196 | return 0; | ||
7197 | } | ||
7198 | _ACEOF | ||
7199 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7201 | (eval $ac_link) 2>conftest.er1 | ||
7202 | ac_status=$? | ||
7203 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7204 | rm -f conftest.er1 | ||
7205 | cat conftest.err >&5 | ||
7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7207 | (exit $ac_status); } && | ||
7208 | { ac_try='test -z "$ac_c_werror_flag" | ||
7209 | || test ! -s conftest.err' | ||
7210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7211 | (eval $ac_try) 2>&5 | ||
7212 | ac_status=$? | ||
7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7214 | (exit $ac_status); }; } && | ||
7215 | { ac_try='test -s conftest$ac_exeext' | ||
7216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7217 | (eval $ac_try) 2>&5 | ||
7218 | ac_status=$? | ||
7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7220 | (exit $ac_status); }; }; then | ||
7221 | ac_cv_lib_nsl_yp_match=yes | ||
7222 | else | ||
7223 | echo "$as_me: failed program was:" >&5 | ||
7224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7225 | |||
7226 | ac_cv_lib_nsl_yp_match=no | ||
7227 | fi | ||
7228 | rm -f conftest.err conftest.$ac_objext \ | ||
7229 | conftest$ac_exeext conftest.$ac_ext | ||
7230 | LIBS=$ac_check_lib_save_LIBS | ||
7231 | fi | ||
7232 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7233 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
7234 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
7235 | cat >>confdefs.h <<_ACEOF | ||
7236 | #define HAVE_LIBNSL 1 | ||
7237 | _ACEOF | ||
7238 | |||
7239 | LIBS="-lnsl $LIBS" | ||
7240 | |||
7241 | fi | ||
7242 | |||
7243 | fi | ||
7244 | |||
7245 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
7246 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
7247 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7249 | else | ||
7250 | cat >conftest.$ac_ext <<_ACEOF | ||
7251 | /* confdefs.h. */ | ||
7252 | _ACEOF | ||
7253 | cat confdefs.h >>conftest.$ac_ext | ||
7254 | cat >>conftest.$ac_ext <<_ACEOF | ||
7255 | /* end confdefs.h. */ | ||
7256 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
7257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7258 | #define setsockopt innocuous_setsockopt | ||
7259 | |||
7260 | /* System header to define __stub macros and hopefully few prototypes, | ||
7261 | which can conflict with char setsockopt (); below. | ||
7262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7263 | <limits.h> exists even on freestanding compilers. */ | ||
7264 | |||
7265 | #ifdef __STDC__ | ||
7266 | # include <limits.h> | ||
7267 | #else | ||
7268 | # include <assert.h> | ||
7269 | #endif | ||
7270 | |||
7271 | #undef setsockopt | ||
7272 | |||
7273 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7274 | #ifdef __cplusplus | ||
7275 | extern "C" | ||
7276 | { | ||
7277 | #endif | ||
7278 | /* We use char because int might match the return type of a gcc2 | ||
7279 | builtin and then its argument prototype would still apply. */ | ||
7280 | char setsockopt (); | ||
7281 | /* The GNU C library defines this for functions which it implements | ||
7282 | to always fail with ENOSYS. Some functions are actually named | ||
7283 | something starting with __ and the normal name is an alias. */ | ||
7284 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
7285 | choke me | ||
7286 | #else | ||
7287 | char (*f) () = setsockopt; | ||
7288 | #endif | ||
7289 | #ifdef __cplusplus | ||
7290 | } | ||
7291 | #endif | ||
7292 | |||
7293 | int | ||
7294 | main () | ||
7295 | { | ||
7296 | return f != setsockopt; | ||
7297 | ; | ||
7298 | return 0; | ||
7299 | } | ||
7300 | _ACEOF | ||
7301 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7303 | (eval $ac_link) 2>conftest.er1 | ||
7304 | ac_status=$? | ||
7305 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7306 | rm -f conftest.er1 | ||
7307 | cat conftest.err >&5 | ||
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7309 | (exit $ac_status); } && | ||
7310 | { ac_try='test -z "$ac_c_werror_flag" | ||
7311 | || test ! -s conftest.err' | ||
7312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7313 | (eval $ac_try) 2>&5 | ||
7314 | ac_status=$? | ||
7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7316 | (exit $ac_status); }; } && | ||
7317 | { ac_try='test -s conftest$ac_exeext' | ||
7318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7319 | (eval $ac_try) 2>&5 | ||
7320 | ac_status=$? | ||
7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7322 | (exit $ac_status); }; }; then | ||
7323 | ac_cv_func_setsockopt=yes | ||
7324 | else | ||
7325 | echo "$as_me: failed program was:" >&5 | ||
7326 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7327 | |||
7328 | ac_cv_func_setsockopt=no | ||
7329 | fi | ||
7330 | rm -f conftest.err conftest.$ac_objext \ | ||
7331 | conftest$ac_exeext conftest.$ac_ext | ||
7332 | fi | ||
7333 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
7334 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
7335 | if test $ac_cv_func_setsockopt = yes; then | ||
7336 | : | ||
7337 | else | ||
7338 | |||
7339 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
7340 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
7341 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
7342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7343 | else | ||
7344 | ac_check_lib_save_LIBS=$LIBS | ||
7345 | LIBS="-lsocket $LIBS" | ||
7346 | cat >conftest.$ac_ext <<_ACEOF | ||
7347 | /* confdefs.h. */ | ||
7348 | _ACEOF | ||
7349 | cat confdefs.h >>conftest.$ac_ext | ||
7350 | cat >>conftest.$ac_ext <<_ACEOF | ||
7351 | /* end confdefs.h. */ | ||
7352 | |||
7353 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7354 | #ifdef __cplusplus | ||
7355 | extern "C" | ||
7356 | #endif | ||
7357 | /* We use char because int might match the return type of a gcc2 | ||
7358 | builtin and then its argument prototype would still apply. */ | ||
7359 | char setsockopt (); | ||
7360 | int | ||
7361 | main () | ||
7362 | { | ||
7363 | setsockopt (); | ||
7364 | ; | ||
7365 | return 0; | ||
7366 | } | ||
7367 | _ACEOF | ||
7368 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7370 | (eval $ac_link) 2>conftest.er1 | ||
7371 | ac_status=$? | ||
7372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7373 | rm -f conftest.er1 | ||
7374 | cat conftest.err >&5 | ||
7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7376 | (exit $ac_status); } && | ||
7377 | { ac_try='test -z "$ac_c_werror_flag" | ||
7378 | || test ! -s conftest.err' | ||
7379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7380 | (eval $ac_try) 2>&5 | ||
7381 | ac_status=$? | ||
7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7383 | (exit $ac_status); }; } && | ||
7384 | { ac_try='test -s conftest$ac_exeext' | ||
7385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7386 | (eval $ac_try) 2>&5 | ||
7387 | ac_status=$? | ||
7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7389 | (exit $ac_status); }; }; then | ||
7390 | ac_cv_lib_socket_setsockopt=yes | ||
7391 | else | ||
7392 | echo "$as_me: failed program was:" >&5 | ||
7393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7394 | |||
7395 | ac_cv_lib_socket_setsockopt=no | ||
7396 | fi | ||
7397 | rm -f conftest.err conftest.$ac_objext \ | ||
7398 | conftest$ac_exeext conftest.$ac_ext | ||
7399 | LIBS=$ac_check_lib_save_LIBS | ||
7400 | fi | ||
7401 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7402 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
7403 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
7404 | cat >>confdefs.h <<_ACEOF | ||
7405 | #define HAVE_LIBSOCKET 1 | ||
7406 | _ACEOF | ||
7407 | |||
7408 | LIBS="-lsocket $LIBS" | ||
7409 | |||
7410 | fi | ||
7411 | |||
7412 | fi | ||
7413 | |||
7414 | |||
7415 | |||
7416 | for ac_func in dirname | ||
7417 | do | ||
7418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7421 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7423 | else | ||
7424 | cat >conftest.$ac_ext <<_ACEOF | ||
7425 | /* confdefs.h. */ | ||
7426 | _ACEOF | ||
7427 | cat confdefs.h >>conftest.$ac_ext | ||
7428 | cat >>conftest.$ac_ext <<_ACEOF | ||
7429 | /* end confdefs.h. */ | ||
7430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7432 | #define $ac_func innocuous_$ac_func | ||
7433 | |||
7434 | /* System header to define __stub macros and hopefully few prototypes, | ||
7435 | which can conflict with char $ac_func (); below. | ||
7436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7437 | <limits.h> exists even on freestanding compilers. */ | ||
7438 | |||
7439 | #ifdef __STDC__ | ||
7440 | # include <limits.h> | ||
7441 | #else | ||
7442 | # include <assert.h> | ||
7443 | #endif | ||
7444 | |||
7445 | #undef $ac_func | ||
7446 | |||
7447 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7448 | #ifdef __cplusplus | ||
7449 | extern "C" | ||
7450 | { | ||
7451 | #endif | ||
7452 | /* We use char because int might match the return type of a gcc2 | ||
7453 | builtin and then its argument prototype would still apply. */ | ||
7454 | char $ac_func (); | ||
7455 | /* The GNU C library defines this for functions which it implements | ||
7456 | to always fail with ENOSYS. Some functions are actually named | ||
7457 | something starting with __ and the normal name is an alias. */ | ||
7458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7459 | choke me | ||
7460 | #else | ||
7461 | char (*f) () = $ac_func; | ||
7462 | #endif | ||
7463 | #ifdef __cplusplus | ||
7464 | } | ||
7465 | #endif | ||
7466 | |||
7467 | int | ||
7468 | main () | ||
7469 | { | ||
7470 | return f != $ac_func; | ||
7471 | ; | ||
7472 | return 0; | ||
7473 | } | ||
7474 | _ACEOF | ||
7475 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7477 | (eval $ac_link) 2>conftest.er1 | ||
7478 | ac_status=$? | ||
7479 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7480 | rm -f conftest.er1 | ||
7481 | cat conftest.err >&5 | ||
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7483 | (exit $ac_status); } && | ||
7484 | { ac_try='test -z "$ac_c_werror_flag" | ||
7485 | || test ! -s conftest.err' | ||
7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7487 | (eval $ac_try) 2>&5 | ||
7488 | ac_status=$? | ||
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7490 | (exit $ac_status); }; } && | ||
7491 | { ac_try='test -s conftest$ac_exeext' | ||
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7493 | (eval $ac_try) 2>&5 | ||
7494 | ac_status=$? | ||
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7496 | (exit $ac_status); }; }; then | ||
7497 | eval "$as_ac_var=yes" | ||
7498 | else | ||
7499 | echo "$as_me: failed program was:" >&5 | ||
7500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7501 | |||
7502 | eval "$as_ac_var=no" | ||
7503 | fi | ||
7504 | rm -f conftest.err conftest.$ac_objext \ | ||
7505 | conftest$ac_exeext conftest.$ac_ext | ||
7506 | fi | ||
7507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7510 | cat >>confdefs.h <<_ACEOF | ||
7511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7512 | _ACEOF | ||
7513 | |||
7514 | for ac_header in libgen.h | ||
7515 | do | ||
7516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7518 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7522 | fi | ||
7523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7525 | else | ||
7526 | # Is the header compilable? | ||
7527 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7528 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7529 | cat >conftest.$ac_ext <<_ACEOF | ||
7530 | /* confdefs.h. */ | ||
7531 | _ACEOF | ||
7532 | cat confdefs.h >>conftest.$ac_ext | ||
7533 | cat >>conftest.$ac_ext <<_ACEOF | ||
7534 | /* end confdefs.h. */ | ||
7535 | $ac_includes_default | ||
7536 | #include <$ac_header> | ||
7537 | _ACEOF | ||
7538 | rm -f conftest.$ac_objext | ||
7539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7540 | (eval $ac_compile) 2>conftest.er1 | ||
7541 | ac_status=$? | ||
7542 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7543 | rm -f conftest.er1 | ||
7544 | cat conftest.err >&5 | ||
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7546 | (exit $ac_status); } && | ||
7547 | { ac_try='test -z "$ac_c_werror_flag" | ||
7548 | || test ! -s conftest.err' | ||
7549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7550 | (eval $ac_try) 2>&5 | ||
7551 | ac_status=$? | ||
7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7553 | (exit $ac_status); }; } && | ||
7554 | { ac_try='test -s conftest.$ac_objext' | ||
7555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7556 | (eval $ac_try) 2>&5 | ||
7557 | ac_status=$? | ||
7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7559 | (exit $ac_status); }; }; then | ||
7560 | ac_header_compiler=yes | ||
7561 | else | ||
7562 | echo "$as_me: failed program was:" >&5 | ||
7563 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7564 | |||
7565 | ac_header_compiler=no | ||
7566 | fi | ||
7567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7568 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7569 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7570 | |||
7571 | # Is the header present? | ||
7572 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7573 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7574 | cat >conftest.$ac_ext <<_ACEOF | ||
7575 | /* confdefs.h. */ | ||
7576 | _ACEOF | ||
7577 | cat confdefs.h >>conftest.$ac_ext | ||
7578 | cat >>conftest.$ac_ext <<_ACEOF | ||
7579 | /* end confdefs.h. */ | ||
7580 | #include <$ac_header> | ||
7581 | _ACEOF | ||
7582 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7584 | ac_status=$? | ||
7585 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7586 | rm -f conftest.er1 | ||
7587 | cat conftest.err >&5 | ||
7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7589 | (exit $ac_status); } >/dev/null; then | ||
7590 | if test -s conftest.err; then | ||
7591 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7592 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7593 | else | ||
7594 | ac_cpp_err= | ||
7595 | fi | ||
7596 | else | ||
7597 | ac_cpp_err=yes | ||
7598 | fi | ||
7599 | if test -z "$ac_cpp_err"; then | ||
7600 | ac_header_preproc=yes | ||
7601 | else | ||
7602 | echo "$as_me: failed program was:" >&5 | ||
7603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7604 | |||
7605 | ac_header_preproc=no | ||
7606 | fi | ||
7607 | rm -f conftest.err conftest.$ac_ext | ||
7608 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7609 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7610 | |||
7611 | # So? What about this header? | ||
7612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7613 | yes:no: ) | ||
7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7617 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7618 | ac_header_preproc=yes | ||
7619 | ;; | ||
7620 | no:yes:* ) | ||
7621 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7622 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7623 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7624 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7625 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7626 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7627 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7628 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7631 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7632 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7633 | ( | ||
7634 | cat <<\_ASBOX | ||
7635 | ## ---------------------------------- ## | ||
7636 | ## Report this to the OpenSSH lists. ## | ||
7637 | ## ---------------------------------- ## | ||
7638 | _ASBOX | ||
7639 | ) | | ||
7640 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7641 | ;; | ||
7642 | esac | ||
7643 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7647 | else | ||
7648 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7649 | fi | ||
7650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7652 | |||
7653 | fi | ||
7654 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7655 | cat >>confdefs.h <<_ACEOF | ||
7656 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7657 | _ACEOF | ||
7658 | |||
7659 | fi | ||
7660 | |||
7661 | done | ||
7662 | |||
7663 | else | ||
7664 | |||
7665 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7666 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7667 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7669 | else | ||
7670 | ac_check_lib_save_LIBS=$LIBS | ||
7671 | LIBS="-lgen $LIBS" | ||
7672 | cat >conftest.$ac_ext <<_ACEOF | ||
7673 | /* confdefs.h. */ | ||
7674 | _ACEOF | ||
7675 | cat confdefs.h >>conftest.$ac_ext | ||
7676 | cat >>conftest.$ac_ext <<_ACEOF | ||
7677 | /* end confdefs.h. */ | ||
7678 | |||
7679 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7680 | #ifdef __cplusplus | ||
7681 | extern "C" | ||
7682 | #endif | ||
7683 | /* We use char because int might match the return type of a gcc2 | ||
7684 | builtin and then its argument prototype would still apply. */ | ||
7685 | char dirname (); | ||
7686 | int | ||
7687 | main () | ||
7688 | { | ||
7689 | dirname (); | ||
7690 | ; | ||
7691 | return 0; | ||
7692 | } | ||
7693 | _ACEOF | ||
7694 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7696 | (eval $ac_link) 2>conftest.er1 | ||
7697 | ac_status=$? | ||
7698 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7699 | rm -f conftest.er1 | ||
7700 | cat conftest.err >&5 | ||
7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7702 | (exit $ac_status); } && | ||
7703 | { ac_try='test -z "$ac_c_werror_flag" | ||
7704 | || test ! -s conftest.err' | ||
7705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7706 | (eval $ac_try) 2>&5 | ||
7707 | ac_status=$? | ||
7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7709 | (exit $ac_status); }; } && | ||
7710 | { ac_try='test -s conftest$ac_exeext' | ||
7711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7712 | (eval $ac_try) 2>&5 | ||
7713 | ac_status=$? | ||
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7715 | (exit $ac_status); }; }; then | ||
7716 | ac_cv_lib_gen_dirname=yes | ||
7717 | else | ||
7718 | echo "$as_me: failed program was:" >&5 | ||
7719 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7720 | |||
7721 | ac_cv_lib_gen_dirname=no | ||
7722 | fi | ||
7723 | rm -f conftest.err conftest.$ac_objext \ | ||
7724 | conftest$ac_exeext conftest.$ac_ext | ||
7725 | LIBS=$ac_check_lib_save_LIBS | ||
7726 | fi | ||
7727 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7728 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7729 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7730 | |||
7731 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7732 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7733 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7735 | else | ||
7736 | |||
7737 | save_LIBS="$LIBS" | ||
7738 | LIBS="$LIBS -lgen" | ||
7739 | if test "$cross_compiling" = yes; then | ||
7740 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7741 | See \`config.log' for more details." >&5 | ||
7742 | echo "$as_me: error: cannot run test program while cross compiling | ||
7743 | See \`config.log' for more details." >&2;} | ||
7744 | { (exit 1); exit 1; }; } | ||
7745 | else | ||
7746 | cat >conftest.$ac_ext <<_ACEOF | ||
7747 | /* confdefs.h. */ | ||
7748 | _ACEOF | ||
7749 | cat confdefs.h >>conftest.$ac_ext | ||
7750 | cat >>conftest.$ac_ext <<_ACEOF | ||
7751 | /* end confdefs.h. */ | ||
7752 | |||
7753 | #include <libgen.h> | ||
7754 | #include <string.h> | ||
7755 | |||
7756 | int main(int argc, char **argv) { | ||
7757 | char *s, buf[32]; | ||
7758 | |||
7759 | strncpy(buf,"/etc", 32); | ||
7760 | s = dirname(buf); | ||
7761 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7762 | exit(1); | ||
7763 | } else { | ||
7764 | exit(0); | ||
7765 | } | ||
7766 | } | ||
7767 | |||
7768 | _ACEOF | ||
7769 | rm -f conftest$ac_exeext | ||
7770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7771 | (eval $ac_link) 2>&5 | ||
7772 | ac_status=$? | ||
7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7776 | (eval $ac_try) 2>&5 | ||
7777 | ac_status=$? | ||
7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7779 | (exit $ac_status); }; }; then | ||
7780 | ac_cv_have_broken_dirname="no" | ||
7781 | else | ||
7782 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7783 | echo "$as_me: failed program was:" >&5 | ||
7784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7785 | |||
7786 | ( exit $ac_status ) | ||
7787 | ac_cv_have_broken_dirname="yes" | ||
7788 | |||
7789 | fi | ||
7790 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7791 | fi | ||
7792 | LIBS="$save_LIBS" | ||
7793 | |||
7794 | fi | ||
7795 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7796 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7797 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7798 | LIBS="$LIBS -lgen" | ||
7799 | cat >>confdefs.h <<\_ACEOF | ||
7800 | #define HAVE_DIRNAME 1 | ||
7801 | _ACEOF | ||
7802 | |||
7803 | |||
7804 | for ac_header in libgen.h | ||
7805 | do | ||
7806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7812 | fi | ||
7813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7815 | else | ||
7816 | # Is the header compilable? | ||
7817 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7818 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7819 | cat >conftest.$ac_ext <<_ACEOF | ||
7820 | /* confdefs.h. */ | ||
7821 | _ACEOF | ||
7822 | cat confdefs.h >>conftest.$ac_ext | ||
7823 | cat >>conftest.$ac_ext <<_ACEOF | ||
7824 | /* end confdefs.h. */ | ||
7825 | $ac_includes_default | ||
7826 | #include <$ac_header> | ||
7827 | _ACEOF | ||
7828 | rm -f conftest.$ac_objext | ||
7829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7830 | (eval $ac_compile) 2>conftest.er1 | ||
7831 | ac_status=$? | ||
7832 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7833 | rm -f conftest.er1 | ||
7834 | cat conftest.err >&5 | ||
7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7836 | (exit $ac_status); } && | ||
7837 | { ac_try='test -z "$ac_c_werror_flag" | ||
7838 | || test ! -s conftest.err' | ||
7839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7840 | (eval $ac_try) 2>&5 | ||
7841 | ac_status=$? | ||
7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7843 | (exit $ac_status); }; } && | ||
7844 | { ac_try='test -s conftest.$ac_objext' | ||
7845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7846 | (eval $ac_try) 2>&5 | ||
7847 | ac_status=$? | ||
7848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7849 | (exit $ac_status); }; }; then | ||
7850 | ac_header_compiler=yes | ||
7851 | else | ||
7852 | echo "$as_me: failed program was:" >&5 | ||
7853 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7854 | |||
7855 | ac_header_compiler=no | ||
7856 | fi | ||
7857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7858 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7859 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7860 | |||
7861 | # Is the header present? | ||
7862 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7863 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7864 | cat >conftest.$ac_ext <<_ACEOF | ||
7865 | /* confdefs.h. */ | ||
7866 | _ACEOF | ||
7867 | cat confdefs.h >>conftest.$ac_ext | ||
7868 | cat >>conftest.$ac_ext <<_ACEOF | ||
7869 | /* end confdefs.h. */ | ||
7870 | #include <$ac_header> | ||
7871 | _ACEOF | ||
7872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7874 | ac_status=$? | ||
7875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7876 | rm -f conftest.er1 | ||
7877 | cat conftest.err >&5 | ||
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7879 | (exit $ac_status); } >/dev/null; then | ||
7880 | if test -s conftest.err; then | ||
7881 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7883 | else | ||
7884 | ac_cpp_err= | ||
7885 | fi | ||
7886 | else | ||
7887 | ac_cpp_err=yes | ||
7888 | fi | ||
7889 | if test -z "$ac_cpp_err"; then | ||
7890 | ac_header_preproc=yes | ||
7891 | else | ||
7892 | echo "$as_me: failed program was:" >&5 | ||
7893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7894 | |||
7895 | ac_header_preproc=no | ||
7896 | fi | ||
7897 | rm -f conftest.err conftest.$ac_ext | ||
7898 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7899 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7900 | |||
7901 | # So? What about this header? | ||
7902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7903 | yes:no: ) | ||
7904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7908 | ac_header_preproc=yes | ||
7909 | ;; | ||
7910 | no:yes:* ) | ||
7911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7922 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7923 | ( | ||
7924 | cat <<\_ASBOX | ||
7925 | ## ---------------------------------- ## | ||
7926 | ## Report this to the OpenSSH lists. ## | ||
7927 | ## ---------------------------------- ## | ||
7928 | _ASBOX | ||
7929 | ) | | ||
7930 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7931 | ;; | ||
7932 | esac | ||
7933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7937 | else | ||
7938 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7939 | fi | ||
7940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7942 | |||
7943 | fi | ||
7944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7945 | cat >>confdefs.h <<_ACEOF | ||
7946 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7947 | _ACEOF | ||
7948 | |||
7949 | fi | ||
7950 | |||
7951 | done | ||
7952 | |||
7953 | fi | ||
7954 | |||
7955 | fi | ||
7956 | |||
7957 | |||
7958 | fi | ||
7959 | done | ||
7960 | |||
7961 | |||
7962 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
7963 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
7964 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
7965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7966 | else | ||
7967 | cat >conftest.$ac_ext <<_ACEOF | ||
7968 | /* confdefs.h. */ | ||
7969 | _ACEOF | ||
7970 | cat confdefs.h >>conftest.$ac_ext | ||
7971 | cat >>conftest.$ac_ext <<_ACEOF | ||
7972 | /* end confdefs.h. */ | ||
7973 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
7974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7975 | #define getspnam innocuous_getspnam | ||
7976 | |||
7977 | /* System header to define __stub macros and hopefully few prototypes, | ||
7978 | which can conflict with char getspnam (); below. | ||
7979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7980 | <limits.h> exists even on freestanding compilers. */ | ||
7981 | |||
7982 | #ifdef __STDC__ | ||
7983 | # include <limits.h> | ||
7984 | #else | ||
7985 | # include <assert.h> | ||
7986 | #endif | ||
7987 | |||
7988 | #undef getspnam | ||
7989 | |||
7990 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7991 | #ifdef __cplusplus | ||
7992 | extern "C" | ||
7993 | { | ||
7994 | #endif | ||
7995 | /* We use char because int might match the return type of a gcc2 | ||
7996 | builtin and then its argument prototype would still apply. */ | ||
7997 | char getspnam (); | ||
7998 | /* The GNU C library defines this for functions which it implements | ||
7999 | to always fail with ENOSYS. Some functions are actually named | ||
8000 | something starting with __ and the normal name is an alias. */ | ||
8001 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
8002 | choke me | ||
8003 | #else | ||
8004 | char (*f) () = getspnam; | ||
8005 | #endif | ||
8006 | #ifdef __cplusplus | ||
8007 | } | ||
8008 | #endif | ||
8009 | |||
8010 | int | ||
8011 | main () | ||
8012 | { | ||
8013 | return f != getspnam; | ||
8014 | ; | ||
8015 | return 0; | ||
8016 | } | ||
8017 | _ACEOF | ||
8018 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8020 | (eval $ac_link) 2>conftest.er1 | ||
8021 | ac_status=$? | ||
8022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8023 | rm -f conftest.er1 | ||
8024 | cat conftest.err >&5 | ||
8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8026 | (exit $ac_status); } && | ||
8027 | { ac_try='test -z "$ac_c_werror_flag" | ||
8028 | || test ! -s conftest.err' | ||
8029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8030 | (eval $ac_try) 2>&5 | ||
8031 | ac_status=$? | ||
8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8033 | (exit $ac_status); }; } && | ||
8034 | { ac_try='test -s conftest$ac_exeext' | ||
8035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8036 | (eval $ac_try) 2>&5 | ||
8037 | ac_status=$? | ||
8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8039 | (exit $ac_status); }; }; then | ||
8040 | ac_cv_func_getspnam=yes | ||
8041 | else | ||
8042 | echo "$as_me: failed program was:" >&5 | ||
8043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8044 | |||
8045 | ac_cv_func_getspnam=no | ||
8046 | fi | ||
8047 | rm -f conftest.err conftest.$ac_objext \ | ||
8048 | conftest$ac_exeext conftest.$ac_ext | ||
8049 | fi | ||
8050 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
8051 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
8052 | if test $ac_cv_func_getspnam = yes; then | ||
8053 | : | ||
8054 | else | ||
8055 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
8056 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
8057 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
8058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8059 | else | ||
8060 | ac_check_lib_save_LIBS=$LIBS | ||
8061 | LIBS="-lgen $LIBS" | ||
8062 | cat >conftest.$ac_ext <<_ACEOF | ||
8063 | /* confdefs.h. */ | ||
8064 | _ACEOF | ||
8065 | cat confdefs.h >>conftest.$ac_ext | ||
8066 | cat >>conftest.$ac_ext <<_ACEOF | ||
8067 | /* end confdefs.h. */ | ||
8068 | |||
8069 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8070 | #ifdef __cplusplus | ||
8071 | extern "C" | ||
8072 | #endif | ||
8073 | /* We use char because int might match the return type of a gcc2 | ||
8074 | builtin and then its argument prototype would still apply. */ | ||
8075 | char getspnam (); | ||
8076 | int | ||
8077 | main () | ||
8078 | { | ||
8079 | getspnam (); | ||
8080 | ; | ||
8081 | return 0; | ||
8082 | } | ||
8083 | _ACEOF | ||
8084 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8086 | (eval $ac_link) 2>conftest.er1 | ||
8087 | ac_status=$? | ||
8088 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8089 | rm -f conftest.er1 | ||
8090 | cat conftest.err >&5 | ||
8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8092 | (exit $ac_status); } && | ||
8093 | { ac_try='test -z "$ac_c_werror_flag" | ||
8094 | || test ! -s conftest.err' | ||
8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8096 | (eval $ac_try) 2>&5 | ||
8097 | ac_status=$? | ||
8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8099 | (exit $ac_status); }; } && | ||
8100 | { ac_try='test -s conftest$ac_exeext' | ||
8101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8102 | (eval $ac_try) 2>&5 | ||
8103 | ac_status=$? | ||
8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8105 | (exit $ac_status); }; }; then | ||
8106 | ac_cv_lib_gen_getspnam=yes | ||
8107 | else | ||
8108 | echo "$as_me: failed program was:" >&5 | ||
8109 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8110 | |||
8111 | ac_cv_lib_gen_getspnam=no | ||
8112 | fi | ||
8113 | rm -f conftest.err conftest.$ac_objext \ | ||
8114 | conftest$ac_exeext conftest.$ac_ext | ||
8115 | LIBS=$ac_check_lib_save_LIBS | ||
8116 | fi | ||
8117 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8118 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
8119 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
8120 | LIBS="$LIBS -lgen" | ||
8121 | fi | ||
8122 | |||
8123 | fi | ||
8124 | |||
8125 | echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
8126 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
8127 | if test "${ac_cv_search_basename+set}" = set; then | ||
8128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8129 | else | ||
8130 | ac_func_search_save_LIBS=$LIBS | ||
8131 | ac_cv_search_basename=no | ||
8132 | cat >conftest.$ac_ext <<_ACEOF | ||
8133 | /* confdefs.h. */ | ||
8134 | _ACEOF | ||
8135 | cat confdefs.h >>conftest.$ac_ext | ||
8136 | cat >>conftest.$ac_ext <<_ACEOF | ||
8137 | /* end confdefs.h. */ | ||
8138 | |||
8139 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8140 | #ifdef __cplusplus | ||
8141 | extern "C" | ||
8142 | #endif | ||
8143 | /* We use char because int might match the return type of a gcc2 | ||
8144 | builtin and then its argument prototype would still apply. */ | ||
8145 | char basename (); | ||
8146 | int | ||
8147 | main () | ||
8148 | { | ||
8149 | basename (); | ||
8150 | ; | ||
8151 | return 0; | ||
8152 | } | ||
8153 | _ACEOF | ||
8154 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8156 | (eval $ac_link) 2>conftest.er1 | ||
8157 | ac_status=$? | ||
8158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8159 | rm -f conftest.er1 | ||
8160 | cat conftest.err >&5 | ||
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8162 | (exit $ac_status); } && | ||
8163 | { ac_try='test -z "$ac_c_werror_flag" | ||
8164 | || test ! -s conftest.err' | ||
8165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8166 | (eval $ac_try) 2>&5 | ||
8167 | ac_status=$? | ||
8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8169 | (exit $ac_status); }; } && | ||
8170 | { ac_try='test -s conftest$ac_exeext' | ||
8171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8172 | (eval $ac_try) 2>&5 | ||
8173 | ac_status=$? | ||
8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8175 | (exit $ac_status); }; }; then | ||
8176 | ac_cv_search_basename="none required" | ||
8177 | else | ||
8178 | echo "$as_me: failed program was:" >&5 | ||
8179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8180 | |||
8181 | fi | ||
8182 | rm -f conftest.err conftest.$ac_objext \ | ||
8183 | conftest$ac_exeext conftest.$ac_ext | ||
8184 | if test "$ac_cv_search_basename" = no; then | ||
8185 | for ac_lib in gen; do | ||
8186 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8187 | cat >conftest.$ac_ext <<_ACEOF | ||
8188 | /* confdefs.h. */ | ||
8189 | _ACEOF | ||
8190 | cat confdefs.h >>conftest.$ac_ext | ||
8191 | cat >>conftest.$ac_ext <<_ACEOF | ||
8192 | /* end confdefs.h. */ | ||
8193 | |||
8194 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8195 | #ifdef __cplusplus | ||
8196 | extern "C" | ||
8197 | #endif | ||
8198 | /* We use char because int might match the return type of a gcc2 | ||
8199 | builtin and then its argument prototype would still apply. */ | ||
8200 | char basename (); | ||
8201 | int | ||
8202 | main () | ||
8203 | { | ||
8204 | basename (); | ||
8205 | ; | ||
8206 | return 0; | ||
8207 | } | ||
8208 | _ACEOF | ||
8209 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8211 | (eval $ac_link) 2>conftest.er1 | ||
8212 | ac_status=$? | ||
8213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8214 | rm -f conftest.er1 | ||
8215 | cat conftest.err >&5 | ||
8216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8217 | (exit $ac_status); } && | ||
8218 | { ac_try='test -z "$ac_c_werror_flag" | ||
8219 | || test ! -s conftest.err' | ||
8220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8221 | (eval $ac_try) 2>&5 | ||
8222 | ac_status=$? | ||
8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8224 | (exit $ac_status); }; } && | ||
8225 | { ac_try='test -s conftest$ac_exeext' | ||
8226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8227 | (eval $ac_try) 2>&5 | ||
8228 | ac_status=$? | ||
8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8230 | (exit $ac_status); }; }; then | ||
8231 | ac_cv_search_basename="-l$ac_lib" | ||
8232 | break | ||
8233 | else | ||
8234 | echo "$as_me: failed program was:" >&5 | ||
8235 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8236 | |||
8237 | fi | ||
8238 | rm -f conftest.err conftest.$ac_objext \ | ||
8239 | conftest$ac_exeext conftest.$ac_ext | ||
8240 | done | ||
8241 | fi | ||
8242 | LIBS=$ac_func_search_save_LIBS | ||
8243 | fi | ||
8244 | echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
8245 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
8246 | if test "$ac_cv_search_basename" != no; then | ||
8247 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
8248 | cat >>confdefs.h <<\_ACEOF | ||
8249 | #define HAVE_BASENAME 1 | ||
8250 | _ACEOF | ||
8251 | |||
8252 | fi | ||
8253 | |||
8254 | |||
8255 | |||
8256 | # Check whether --with-zlib or --without-zlib was given. | ||
8257 | if test "${with_zlib+set}" = set; then | ||
8258 | withval="$with_zlib" | ||
8259 | if test "x$withval" = "xno" ; then | ||
8260 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
8261 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
8262 | { (exit 1); exit 1; }; } | ||
8263 | elif test "x$withval" != "xyes"; then | ||
8264 | if test -d "$withval/lib"; then | ||
8265 | if test -n "${need_dash_r}"; then | ||
8266 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8267 | else | ||
8268 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8269 | fi | ||
8270 | else | ||
8271 | if test -n "${need_dash_r}"; then | ||
8272 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8273 | else | ||
8274 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8275 | fi | ||
8276 | fi | ||
8277 | if test -d "$withval/include"; then | ||
8278 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8279 | else | ||
8280 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8281 | fi | ||
8282 | fi | ||
8283 | |||
8284 | fi; | ||
8285 | |||
8286 | |||
8287 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
8288 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
8289 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8291 | else | ||
8292 | ac_check_lib_save_LIBS=$LIBS | ||
8293 | LIBS="-lz $LIBS" | ||
8294 | cat >conftest.$ac_ext <<_ACEOF | ||
8295 | /* confdefs.h. */ | ||
8296 | _ACEOF | ||
8297 | cat confdefs.h >>conftest.$ac_ext | ||
8298 | cat >>conftest.$ac_ext <<_ACEOF | ||
8299 | /* end confdefs.h. */ | ||
8300 | |||
8301 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8302 | #ifdef __cplusplus | ||
8303 | extern "C" | ||
8304 | #endif | ||
8305 | /* We use char because int might match the return type of a gcc2 | ||
8306 | builtin and then its argument prototype would still apply. */ | ||
8307 | char deflate (); | ||
8308 | int | ||
8309 | main () | ||
8310 | { | ||
8311 | deflate (); | ||
8312 | ; | ||
8313 | return 0; | ||
8314 | } | ||
8315 | _ACEOF | ||
8316 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8318 | (eval $ac_link) 2>conftest.er1 | ||
8319 | ac_status=$? | ||
8320 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8321 | rm -f conftest.er1 | ||
8322 | cat conftest.err >&5 | ||
8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8324 | (exit $ac_status); } && | ||
8325 | { ac_try='test -z "$ac_c_werror_flag" | ||
8326 | || test ! -s conftest.err' | ||
8327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8328 | (eval $ac_try) 2>&5 | ||
8329 | ac_status=$? | ||
8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8331 | (exit $ac_status); }; } && | ||
8332 | { ac_try='test -s conftest$ac_exeext' | ||
8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8334 | (eval $ac_try) 2>&5 | ||
8335 | ac_status=$? | ||
8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8337 | (exit $ac_status); }; }; then | ||
8338 | ac_cv_lib_z_deflate=yes | ||
8339 | else | ||
8340 | echo "$as_me: failed program was:" >&5 | ||
8341 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8342 | |||
8343 | ac_cv_lib_z_deflate=no | ||
8344 | fi | ||
8345 | rm -f conftest.err conftest.$ac_objext \ | ||
8346 | conftest$ac_exeext conftest.$ac_ext | ||
8347 | LIBS=$ac_check_lib_save_LIBS | ||
8348 | fi | ||
8349 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
8350 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
8351 | if test $ac_cv_lib_z_deflate = yes; then | ||
8352 | cat >>confdefs.h <<_ACEOF | ||
8353 | #define HAVE_LIBZ 1 | ||
8354 | _ACEOF | ||
8355 | |||
8356 | LIBS="-lz $LIBS" | ||
8357 | |||
8358 | else | ||
8359 | |||
8360 | saved_CPPFLAGS="$CPPFLAGS" | ||
8361 | saved_LDFLAGS="$LDFLAGS" | ||
8362 | save_LIBS="$LIBS" | ||
8363 | if test -n "${need_dash_r}"; then | ||
8364 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8365 | else | ||
8366 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8367 | fi | ||
8368 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8369 | LIBS="$LIBS -lz" | ||
8370 | cat >conftest.$ac_ext <<_ACEOF | ||
8371 | /* confdefs.h. */ | ||
8372 | _ACEOF | ||
8373 | cat confdefs.h >>conftest.$ac_ext | ||
8374 | cat >>conftest.$ac_ext <<_ACEOF | ||
8375 | /* end confdefs.h. */ | ||
8376 | |||
8377 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8378 | #ifdef __cplusplus | ||
8379 | extern "C" | ||
8380 | #endif | ||
8381 | /* We use char because int might match the return type of a gcc2 | ||
8382 | builtin and then its argument prototype would still apply. */ | ||
8383 | char deflate (); | ||
8384 | int | ||
8385 | main () | ||
8386 | { | ||
8387 | deflate (); | ||
8388 | ; | ||
8389 | return 0; | ||
8390 | } | ||
8391 | _ACEOF | ||
8392 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8394 | (eval $ac_link) 2>conftest.er1 | ||
8395 | ac_status=$? | ||
8396 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8397 | rm -f conftest.er1 | ||
8398 | cat conftest.err >&5 | ||
8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8400 | (exit $ac_status); } && | ||
8401 | { ac_try='test -z "$ac_c_werror_flag" | ||
8402 | || test ! -s conftest.err' | ||
8403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8404 | (eval $ac_try) 2>&5 | ||
8405 | ac_status=$? | ||
8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8407 | (exit $ac_status); }; } && | ||
8408 | { ac_try='test -s conftest$ac_exeext' | ||
8409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8410 | (eval $ac_try) 2>&5 | ||
8411 | ac_status=$? | ||
8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8413 | (exit $ac_status); }; }; then | ||
8414 | cat >>confdefs.h <<\_ACEOF | ||
8415 | #define HAVE_LIBZ 1 | ||
8416 | _ACEOF | ||
8417 | |||
8418 | else | ||
8419 | echo "$as_me: failed program was:" >&5 | ||
8420 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8421 | |||
8422 | |||
8423 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
8424 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
8425 | { (exit 1); exit 1; }; } | ||
8426 | |||
8427 | |||
8428 | fi | ||
8429 | rm -f conftest.err conftest.$ac_objext \ | ||
8430 | conftest$ac_exeext conftest.$ac_ext | ||
8431 | |||
8432 | |||
8433 | fi | ||
8434 | |||
8435 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8436 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8437 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8438 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8440 | fi | ||
8441 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8442 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8443 | else | ||
8444 | # Is the header compilable? | ||
8445 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
8446 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | ||
8447 | cat >conftest.$ac_ext <<_ACEOF | ||
8448 | /* confdefs.h. */ | ||
8449 | _ACEOF | ||
8450 | cat confdefs.h >>conftest.$ac_ext | ||
8451 | cat >>conftest.$ac_ext <<_ACEOF | ||
8452 | /* end confdefs.h. */ | ||
8453 | $ac_includes_default | ||
8454 | #include <zlib.h> | ||
8455 | _ACEOF | ||
8456 | rm -f conftest.$ac_objext | ||
8457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8458 | (eval $ac_compile) 2>conftest.er1 | ||
8459 | ac_status=$? | ||
8460 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8461 | rm -f conftest.er1 | ||
8462 | cat conftest.err >&5 | ||
8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8464 | (exit $ac_status); } && | ||
8465 | { ac_try='test -z "$ac_c_werror_flag" | ||
8466 | || test ! -s conftest.err' | ||
8467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8468 | (eval $ac_try) 2>&5 | ||
8469 | ac_status=$? | ||
8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8471 | (exit $ac_status); }; } && | ||
8472 | { ac_try='test -s conftest.$ac_objext' | ||
8473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8474 | (eval $ac_try) 2>&5 | ||
8475 | ac_status=$? | ||
8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8477 | (exit $ac_status); }; }; then | ||
8478 | ac_header_compiler=yes | ||
8479 | else | ||
8480 | echo "$as_me: failed program was:" >&5 | ||
8481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8482 | |||
8483 | ac_header_compiler=no | ||
8484 | fi | ||
8485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8486 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8487 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8488 | |||
8489 | # Is the header present? | ||
8490 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
8491 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | ||
8492 | cat >conftest.$ac_ext <<_ACEOF | ||
8493 | /* confdefs.h. */ | ||
8494 | _ACEOF | ||
8495 | cat confdefs.h >>conftest.$ac_ext | ||
8496 | cat >>conftest.$ac_ext <<_ACEOF | ||
8497 | /* end confdefs.h. */ | ||
8498 | #include <zlib.h> | ||
8499 | _ACEOF | ||
8500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8502 | ac_status=$? | ||
8503 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8504 | rm -f conftest.er1 | ||
8505 | cat conftest.err >&5 | ||
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8507 | (exit $ac_status); } >/dev/null; then | ||
8508 | if test -s conftest.err; then | ||
8509 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8511 | else | ||
8512 | ac_cpp_err= | ||
8513 | fi | ||
8514 | else | ||
8515 | ac_cpp_err=yes | ||
8516 | fi | ||
8517 | if test -z "$ac_cpp_err"; then | ||
8518 | ac_header_preproc=yes | ||
8519 | else | ||
8520 | echo "$as_me: failed program was:" >&5 | ||
8521 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8522 | |||
8523 | ac_header_preproc=no | ||
8524 | fi | ||
8525 | rm -f conftest.err conftest.$ac_ext | ||
8526 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8527 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8528 | |||
8529 | # So? What about this header? | ||
8530 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8531 | yes:no: ) | ||
8532 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8533 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8534 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
8535 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
8536 | ac_header_preproc=yes | ||
8537 | ;; | ||
8538 | no:yes:* ) | ||
8539 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
8540 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
8541 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
8542 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
8543 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
8544 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
8545 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8546 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8547 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
8548 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
8549 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
8550 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
8551 | ( | ||
8552 | cat <<\_ASBOX | ||
8553 | ## ---------------------------------- ## | ||
8554 | ## Report this to the OpenSSH lists. ## | ||
8555 | ## ---------------------------------- ## | ||
8556 | _ASBOX | ||
8557 | ) | | ||
8558 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8559 | ;; | ||
8560 | esac | ||
8561 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8562 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8563 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8565 | else | ||
8566 | ac_cv_header_zlib_h=$ac_header_preproc | ||
8567 | fi | ||
8568 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8569 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8570 | |||
8571 | fi | ||
8572 | if test $ac_cv_header_zlib_h = yes; then | ||
8573 | : | ||
8574 | else | ||
8575 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
8576 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
8577 | { (exit 1); exit 1; }; } | ||
8578 | fi | ||
8579 | |||
8580 | |||
8581 | |||
8582 | |||
8583 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
8584 | if test "${with_zlib_version_check+set}" = set; then | ||
8585 | withval="$with_zlib_version_check" | ||
8586 | if test "x$withval" = "xno" ; then | ||
8587 | zlib_check_nonfatal=1 | ||
8588 | fi | ||
8589 | |||
8590 | |||
8591 | fi; | ||
8592 | |||
8593 | echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
8594 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6 | ||
8595 | if test "$cross_compiling" = yes; then | ||
8596 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
8597 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8598 | |||
8599 | else | ||
8600 | cat >conftest.$ac_ext <<_ACEOF | ||
8601 | /* confdefs.h. */ | ||
8602 | _ACEOF | ||
8603 | cat confdefs.h >>conftest.$ac_ext | ||
8604 | cat >>conftest.$ac_ext <<_ACEOF | ||
8605 | /* end confdefs.h. */ | ||
8606 | |||
8607 | #include <stdio.h> | ||
8608 | #include <zlib.h> | ||
8609 | int main() | ||
8610 | { | ||
8611 | int a=0, b=0, c=0, d=0, n, v; | ||
8612 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8613 | if (n != 3 && n != 4) | ||
8614 | exit(1); | ||
8615 | v = a*1000000 + b*10000 + c*100 + d; | ||
8616 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8617 | |||
8618 | /* 1.1.4 is OK */ | ||
8619 | if (a == 1 && b == 1 && c >= 4) | ||
8620 | exit(0); | ||
8621 | |||
8622 | /* 1.2.1.2 and up are OK */ | ||
8623 | if (v >= 1020102) | ||
8624 | exit(0); | ||
8625 | |||
8626 | exit(2); | ||
8627 | } | ||
8628 | |||
8629 | _ACEOF | ||
8630 | rm -f conftest$ac_exeext | ||
8631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8632 | (eval $ac_link) 2>&5 | ||
8633 | ac_status=$? | ||
8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8637 | (eval $ac_try) 2>&5 | ||
8638 | ac_status=$? | ||
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8640 | (exit $ac_status); }; }; then | ||
8641 | echo "$as_me:$LINENO: result: no" >&5 | ||
8642 | echo "${ECHO_T}no" >&6 | ||
8643 | else | ||
8644 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8645 | echo "$as_me: failed program was:" >&5 | ||
8646 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8647 | |||
8648 | ( exit $ac_status ) | ||
8649 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8650 | echo "${ECHO_T}yes" >&6 | ||
8651 | if test -z "$zlib_check_nonfatal" ; then | ||
8652 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
8653 | Your reported zlib version has known security problems. It's possible your | ||
8654 | vendor has fixed these problems without changing the version number. If you | ||
8655 | are sure this is the case, you can disable the check by running | ||
8656 | \"./configure --without-zlib-version-check\". | ||
8657 | If you are in doubt, upgrade zlib to version 1.2.1.2 or greater. | ||
8658 | See http://www.gzip.org/zlib/ for details." >&5 | ||
8659 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
8660 | Your reported zlib version has known security problems. It's possible your | ||
8661 | vendor has fixed these problems without changing the version number. If you | ||
8662 | are sure this is the case, you can disable the check by running | ||
8663 | \"./configure --without-zlib-version-check\". | ||
8664 | If you are in doubt, upgrade zlib to version 1.2.1.2 or greater. | ||
8665 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
8666 | { (exit 1); exit 1; }; } | ||
8667 | else | ||
8668 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
8669 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8670 | fi | ||
8671 | |||
8672 | fi | ||
8673 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8674 | fi | ||
8675 | |||
8676 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
8677 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
8678 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
8679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8680 | else | ||
8681 | cat >conftest.$ac_ext <<_ACEOF | ||
8682 | /* confdefs.h. */ | ||
8683 | _ACEOF | ||
8684 | cat confdefs.h >>conftest.$ac_ext | ||
8685 | cat >>conftest.$ac_ext <<_ACEOF | ||
8686 | /* end confdefs.h. */ | ||
8687 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
8688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8689 | #define strcasecmp innocuous_strcasecmp | ||
8690 | |||
8691 | /* System header to define __stub macros and hopefully few prototypes, | ||
8692 | which can conflict with char strcasecmp (); below. | ||
8693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8694 | <limits.h> exists even on freestanding compilers. */ | ||
8695 | |||
8696 | #ifdef __STDC__ | ||
8697 | # include <limits.h> | ||
8698 | #else | ||
8699 | # include <assert.h> | ||
8700 | #endif | ||
8701 | |||
8702 | #undef strcasecmp | ||
8703 | |||
8704 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8705 | #ifdef __cplusplus | ||
8706 | extern "C" | ||
8707 | { | ||
8708 | #endif | ||
8709 | /* We use char because int might match the return type of a gcc2 | ||
8710 | builtin and then its argument prototype would still apply. */ | ||
8711 | char strcasecmp (); | ||
8712 | /* The GNU C library defines this for functions which it implements | ||
8713 | to always fail with ENOSYS. Some functions are actually named | ||
8714 | something starting with __ and the normal name is an alias. */ | ||
8715 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
8716 | choke me | ||
8717 | #else | ||
8718 | char (*f) () = strcasecmp; | ||
8719 | #endif | ||
8720 | #ifdef __cplusplus | ||
8721 | } | ||
8722 | #endif | ||
8723 | |||
8724 | int | ||
8725 | main () | ||
8726 | { | ||
8727 | return f != strcasecmp; | ||
8728 | ; | ||
8729 | return 0; | ||
8730 | } | ||
8731 | _ACEOF | ||
8732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8734 | (eval $ac_link) 2>conftest.er1 | ||
8735 | ac_status=$? | ||
8736 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8737 | rm -f conftest.er1 | ||
8738 | cat conftest.err >&5 | ||
8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8740 | (exit $ac_status); } && | ||
8741 | { ac_try='test -z "$ac_c_werror_flag" | ||
8742 | || test ! -s conftest.err' | ||
8743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8744 | (eval $ac_try) 2>&5 | ||
8745 | ac_status=$? | ||
8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8747 | (exit $ac_status); }; } && | ||
8748 | { ac_try='test -s conftest$ac_exeext' | ||
8749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8750 | (eval $ac_try) 2>&5 | ||
8751 | ac_status=$? | ||
8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8753 | (exit $ac_status); }; }; then | ||
8754 | ac_cv_func_strcasecmp=yes | ||
8755 | else | ||
8756 | echo "$as_me: failed program was:" >&5 | ||
8757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8758 | |||
8759 | ac_cv_func_strcasecmp=no | ||
8760 | fi | ||
8761 | rm -f conftest.err conftest.$ac_objext \ | ||
8762 | conftest$ac_exeext conftest.$ac_ext | ||
8763 | fi | ||
8764 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
8765 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
8766 | if test $ac_cv_func_strcasecmp = yes; then | ||
8767 | : | ||
8768 | else | ||
8769 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
8770 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
8771 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
8772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8773 | else | ||
8774 | ac_check_lib_save_LIBS=$LIBS | ||
8775 | LIBS="-lresolv $LIBS" | ||
8776 | cat >conftest.$ac_ext <<_ACEOF | ||
8777 | /* confdefs.h. */ | ||
8778 | _ACEOF | ||
8779 | cat confdefs.h >>conftest.$ac_ext | ||
8780 | cat >>conftest.$ac_ext <<_ACEOF | ||
8781 | /* end confdefs.h. */ | ||
8782 | |||
8783 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8784 | #ifdef __cplusplus | ||
8785 | extern "C" | ||
8786 | #endif | ||
8787 | /* We use char because int might match the return type of a gcc2 | ||
8788 | builtin and then its argument prototype would still apply. */ | ||
8789 | char strcasecmp (); | ||
8790 | int | ||
8791 | main () | ||
8792 | { | ||
8793 | strcasecmp (); | ||
8794 | ; | ||
8795 | return 0; | ||
8796 | } | ||
8797 | _ACEOF | ||
8798 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8800 | (eval $ac_link) 2>conftest.er1 | ||
8801 | ac_status=$? | ||
8802 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8803 | rm -f conftest.er1 | ||
8804 | cat conftest.err >&5 | ||
8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8806 | (exit $ac_status); } && | ||
8807 | { ac_try='test -z "$ac_c_werror_flag" | ||
8808 | || test ! -s conftest.err' | ||
8809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8810 | (eval $ac_try) 2>&5 | ||
8811 | ac_status=$? | ||
8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8813 | (exit $ac_status); }; } && | ||
8814 | { ac_try='test -s conftest$ac_exeext' | ||
8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8816 | (eval $ac_try) 2>&5 | ||
8817 | ac_status=$? | ||
8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8819 | (exit $ac_status); }; }; then | ||
8820 | ac_cv_lib_resolv_strcasecmp=yes | ||
8821 | else | ||
8822 | echo "$as_me: failed program was:" >&5 | ||
8823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8824 | |||
8825 | ac_cv_lib_resolv_strcasecmp=no | ||
8826 | fi | ||
8827 | rm -f conftest.err conftest.$ac_objext \ | ||
8828 | conftest$ac_exeext conftest.$ac_ext | ||
8829 | LIBS=$ac_check_lib_save_LIBS | ||
8830 | fi | ||
8831 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8832 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
8833 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
8834 | LIBS="$LIBS -lresolv" | ||
8835 | fi | ||
8836 | |||
8837 | |||
8838 | fi | ||
8839 | |||
8840 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
8841 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
8842 | if test "${ac_cv_func_utimes+set}" = set; then | ||
8843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8844 | else | ||
8845 | cat >conftest.$ac_ext <<_ACEOF | ||
8846 | /* confdefs.h. */ | ||
8847 | _ACEOF | ||
8848 | cat confdefs.h >>conftest.$ac_ext | ||
8849 | cat >>conftest.$ac_ext <<_ACEOF | ||
8850 | /* end confdefs.h. */ | ||
8851 | /* Define utimes to an innocuous variant, in case <limits.h> declares utimes. | ||
8852 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8853 | #define utimes innocuous_utimes | ||
8854 | |||
8855 | /* System header to define __stub macros and hopefully few prototypes, | ||
8856 | which can conflict with char utimes (); below. | ||
8857 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8858 | <limits.h> exists even on freestanding compilers. */ | ||
8859 | |||
8860 | #ifdef __STDC__ | ||
8861 | # include <limits.h> | ||
8862 | #else | ||
8863 | # include <assert.h> | ||
8864 | #endif | ||
8865 | |||
8866 | #undef utimes | ||
8867 | |||
8868 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8869 | #ifdef __cplusplus | ||
8870 | extern "C" | ||
8871 | { | ||
8872 | #endif | ||
8873 | /* We use char because int might match the return type of a gcc2 | ||
8874 | builtin and then its argument prototype would still apply. */ | ||
8875 | char utimes (); | ||
8876 | /* The GNU C library defines this for functions which it implements | ||
8877 | to always fail with ENOSYS. Some functions are actually named | ||
8878 | something starting with __ and the normal name is an alias. */ | ||
8879 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
8880 | choke me | ||
8881 | #else | ||
8882 | char (*f) () = utimes; | ||
8883 | #endif | ||
8884 | #ifdef __cplusplus | ||
8885 | } | ||
8886 | #endif | ||
8887 | |||
8888 | int | ||
8889 | main () | ||
8890 | { | ||
8891 | return f != utimes; | ||
8892 | ; | ||
8893 | return 0; | ||
8894 | } | ||
8895 | _ACEOF | ||
8896 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8898 | (eval $ac_link) 2>conftest.er1 | ||
8899 | ac_status=$? | ||
8900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8901 | rm -f conftest.er1 | ||
8902 | cat conftest.err >&5 | ||
8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8904 | (exit $ac_status); } && | ||
8905 | { ac_try='test -z "$ac_c_werror_flag" | ||
8906 | || test ! -s conftest.err' | ||
8907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8908 | (eval $ac_try) 2>&5 | ||
8909 | ac_status=$? | ||
8910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8911 | (exit $ac_status); }; } && | ||
8912 | { ac_try='test -s conftest$ac_exeext' | ||
8913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8914 | (eval $ac_try) 2>&5 | ||
8915 | ac_status=$? | ||
8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8917 | (exit $ac_status); }; }; then | ||
8918 | ac_cv_func_utimes=yes | ||
8919 | else | ||
8920 | echo "$as_me: failed program was:" >&5 | ||
8921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8922 | |||
8923 | ac_cv_func_utimes=no | ||
8924 | fi | ||
8925 | rm -f conftest.err conftest.$ac_objext \ | ||
8926 | conftest$ac_exeext conftest.$ac_ext | ||
8927 | fi | ||
8928 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
8929 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
8930 | if test $ac_cv_func_utimes = yes; then | ||
8931 | : | ||
8932 | else | ||
8933 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
8934 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
8935 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
8936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8937 | else | ||
8938 | ac_check_lib_save_LIBS=$LIBS | ||
8939 | LIBS="-lc89 $LIBS" | ||
8940 | cat >conftest.$ac_ext <<_ACEOF | ||
8941 | /* confdefs.h. */ | ||
8942 | _ACEOF | ||
8943 | cat confdefs.h >>conftest.$ac_ext | ||
8944 | cat >>conftest.$ac_ext <<_ACEOF | ||
8945 | /* end confdefs.h. */ | ||
8946 | |||
8947 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8948 | #ifdef __cplusplus | ||
8949 | extern "C" | ||
8950 | #endif | ||
8951 | /* We use char because int might match the return type of a gcc2 | ||
8952 | builtin and then its argument prototype would still apply. */ | ||
8953 | char utimes (); | ||
8954 | int | ||
8955 | main () | ||
8956 | { | ||
8957 | utimes (); | ||
8958 | ; | ||
8959 | return 0; | ||
8960 | } | ||
8961 | _ACEOF | ||
8962 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8964 | (eval $ac_link) 2>conftest.er1 | ||
8965 | ac_status=$? | ||
8966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8967 | rm -f conftest.er1 | ||
8968 | cat conftest.err >&5 | ||
8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8970 | (exit $ac_status); } && | ||
8971 | { ac_try='test -z "$ac_c_werror_flag" | ||
8972 | || test ! -s conftest.err' | ||
8973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8974 | (eval $ac_try) 2>&5 | ||
8975 | ac_status=$? | ||
8976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8977 | (exit $ac_status); }; } && | ||
8978 | { ac_try='test -s conftest$ac_exeext' | ||
8979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8980 | (eval $ac_try) 2>&5 | ||
8981 | ac_status=$? | ||
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8983 | (exit $ac_status); }; }; then | ||
8984 | ac_cv_lib_c89_utimes=yes | ||
8985 | else | ||
8986 | echo "$as_me: failed program was:" >&5 | ||
8987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8988 | |||
8989 | ac_cv_lib_c89_utimes=no | ||
8990 | fi | ||
8991 | rm -f conftest.err conftest.$ac_objext \ | ||
8992 | conftest$ac_exeext conftest.$ac_ext | ||
8993 | LIBS=$ac_check_lib_save_LIBS | ||
8994 | fi | ||
8995 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
8996 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
8997 | if test $ac_cv_lib_c89_utimes = yes; then | ||
8998 | cat >>confdefs.h <<\_ACEOF | ||
8999 | #define HAVE_UTIMES 1 | ||
9000 | _ACEOF | ||
9001 | |||
9002 | LIBS="$LIBS -lc89" | ||
9003 | fi | ||
9004 | |||
9005 | |||
9006 | fi | ||
9007 | |||
9008 | |||
9009 | |||
9010 | for ac_header in libutil.h | ||
9011 | do | ||
9012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9018 | fi | ||
9019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9021 | else | ||
9022 | # Is the header compilable? | ||
9023 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
9025 | cat >conftest.$ac_ext <<_ACEOF | ||
9026 | /* confdefs.h. */ | ||
9027 | _ACEOF | ||
9028 | cat confdefs.h >>conftest.$ac_ext | ||
9029 | cat >>conftest.$ac_ext <<_ACEOF | ||
9030 | /* end confdefs.h. */ | ||
9031 | $ac_includes_default | ||
9032 | #include <$ac_header> | ||
9033 | _ACEOF | ||
9034 | rm -f conftest.$ac_objext | ||
9035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9036 | (eval $ac_compile) 2>conftest.er1 | ||
9037 | ac_status=$? | ||
9038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9039 | rm -f conftest.er1 | ||
9040 | cat conftest.err >&5 | ||
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9042 | (exit $ac_status); } && | ||
9043 | { ac_try='test -z "$ac_c_werror_flag" | ||
9044 | || test ! -s conftest.err' | ||
9045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9046 | (eval $ac_try) 2>&5 | ||
9047 | ac_status=$? | ||
9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9049 | (exit $ac_status); }; } && | ||
9050 | { ac_try='test -s conftest.$ac_objext' | ||
9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9052 | (eval $ac_try) 2>&5 | ||
9053 | ac_status=$? | ||
9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9055 | (exit $ac_status); }; }; then | ||
9056 | ac_header_compiler=yes | ||
9057 | else | ||
9058 | echo "$as_me: failed program was:" >&5 | ||
9059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9060 | |||
9061 | ac_header_compiler=no | ||
9062 | fi | ||
9063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9064 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9065 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
9066 | |||
9067 | # Is the header present? | ||
9068 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9069 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
9070 | cat >conftest.$ac_ext <<_ACEOF | ||
9071 | /* confdefs.h. */ | ||
9072 | _ACEOF | ||
9073 | cat confdefs.h >>conftest.$ac_ext | ||
9074 | cat >>conftest.$ac_ext <<_ACEOF | ||
9075 | /* end confdefs.h. */ | ||
9076 | #include <$ac_header> | ||
9077 | _ACEOF | ||
9078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
9079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
9080 | ac_status=$? | ||
9081 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9082 | rm -f conftest.er1 | ||
9083 | cat conftest.err >&5 | ||
9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9085 | (exit $ac_status); } >/dev/null; then | ||
9086 | if test -s conftest.err; then | ||
9087 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
9088 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
9089 | else | ||
9090 | ac_cpp_err= | ||
9091 | fi | ||
9092 | else | ||
9093 | ac_cpp_err=yes | ||
9094 | fi | ||
9095 | if test -z "$ac_cpp_err"; then | ||
9096 | ac_header_preproc=yes | ||
9097 | else | ||
9098 | echo "$as_me: failed program was:" >&5 | ||
9099 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9100 | |||
9101 | ac_header_preproc=no | ||
9102 | fi | ||
9103 | rm -f conftest.err conftest.$ac_ext | ||
9104 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9105 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
9106 | |||
9107 | # So? What about this header? | ||
9108 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9109 | yes:no: ) | ||
9110 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9111 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9113 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9114 | ac_header_preproc=yes | ||
9115 | ;; | ||
9116 | no:yes:* ) | ||
9117 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9118 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9119 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9120 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9121 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9122 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9123 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9124 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9126 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9127 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9128 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9129 | ( | ||
9130 | cat <<\_ASBOX | ||
9131 | ## ---------------------------------- ## | ||
9132 | ## Report this to the OpenSSH lists. ## | ||
9133 | ## ---------------------------------- ## | ||
9134 | _ASBOX | ||
9135 | ) | | ||
9136 | sed "s/^/$as_me: WARNING: /" >&2 | ||
9137 | ;; | ||
9138 | esac | ||
9139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9143 | else | ||
9144 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9145 | fi | ||
9146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9147 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9148 | |||
9149 | fi | ||
9150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9151 | cat >>confdefs.h <<_ACEOF | ||
9152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9153 | _ACEOF | ||
9154 | |||
9155 | fi | ||
9156 | |||
9157 | done | ||
9158 | |||
9159 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
9160 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
9161 | if test "${ac_cv_search_login+set}" = set; then | ||
9162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9163 | else | ||
9164 | ac_func_search_save_LIBS=$LIBS | ||
9165 | ac_cv_search_login=no | ||
9166 | cat >conftest.$ac_ext <<_ACEOF | ||
9167 | /* confdefs.h. */ | ||
9168 | _ACEOF | ||
9169 | cat confdefs.h >>conftest.$ac_ext | ||
9170 | cat >>conftest.$ac_ext <<_ACEOF | ||
9171 | /* end confdefs.h. */ | ||
9172 | |||
9173 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9174 | #ifdef __cplusplus | ||
9175 | extern "C" | ||
9176 | #endif | ||
9177 | /* We use char because int might match the return type of a gcc2 | ||
9178 | builtin and then its argument prototype would still apply. */ | ||
9179 | char login (); | ||
9180 | int | ||
9181 | main () | ||
9182 | { | ||
9183 | login (); | ||
9184 | ; | ||
9185 | return 0; | ||
9186 | } | ||
9187 | _ACEOF | ||
9188 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9190 | (eval $ac_link) 2>conftest.er1 | ||
9191 | ac_status=$? | ||
9192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9193 | rm -f conftest.er1 | ||
9194 | cat conftest.err >&5 | ||
9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9196 | (exit $ac_status); } && | ||
9197 | { ac_try='test -z "$ac_c_werror_flag" | ||
9198 | || test ! -s conftest.err' | ||
9199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9200 | (eval $ac_try) 2>&5 | ||
9201 | ac_status=$? | ||
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9203 | (exit $ac_status); }; } && | ||
9204 | { ac_try='test -s conftest$ac_exeext' | ||
9205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9206 | (eval $ac_try) 2>&5 | ||
9207 | ac_status=$? | ||
9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9209 | (exit $ac_status); }; }; then | ||
9210 | ac_cv_search_login="none required" | ||
9211 | else | ||
9212 | echo "$as_me: failed program was:" >&5 | ||
9213 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9214 | |||
9215 | fi | ||
9216 | rm -f conftest.err conftest.$ac_objext \ | ||
9217 | conftest$ac_exeext conftest.$ac_ext | ||
9218 | if test "$ac_cv_search_login" = no; then | ||
9219 | for ac_lib in util bsd; do | ||
9220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9221 | cat >conftest.$ac_ext <<_ACEOF | ||
9222 | /* confdefs.h. */ | ||
9223 | _ACEOF | ||
9224 | cat confdefs.h >>conftest.$ac_ext | ||
9225 | cat >>conftest.$ac_ext <<_ACEOF | ||
9226 | /* end confdefs.h. */ | ||
9227 | |||
9228 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9229 | #ifdef __cplusplus | ||
9230 | extern "C" | ||
9231 | #endif | ||
9232 | /* We use char because int might match the return type of a gcc2 | ||
9233 | builtin and then its argument prototype would still apply. */ | ||
9234 | char login (); | ||
9235 | int | ||
9236 | main () | ||
9237 | { | ||
9238 | login (); | ||
9239 | ; | ||
9240 | return 0; | ||
9241 | } | ||
9242 | _ACEOF | ||
9243 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9245 | (eval $ac_link) 2>conftest.er1 | ||
9246 | ac_status=$? | ||
9247 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9248 | rm -f conftest.er1 | ||
9249 | cat conftest.err >&5 | ||
9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9251 | (exit $ac_status); } && | ||
9252 | { ac_try='test -z "$ac_c_werror_flag" | ||
9253 | || test ! -s conftest.err' | ||
9254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9255 | (eval $ac_try) 2>&5 | ||
9256 | ac_status=$? | ||
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9258 | (exit $ac_status); }; } && | ||
9259 | { ac_try='test -s conftest$ac_exeext' | ||
9260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9261 | (eval $ac_try) 2>&5 | ||
9262 | ac_status=$? | ||
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9264 | (exit $ac_status); }; }; then | ||
9265 | ac_cv_search_login="-l$ac_lib" | ||
9266 | break | ||
9267 | else | ||
9268 | echo "$as_me: failed program was:" >&5 | ||
9269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9270 | |||
9271 | fi | ||
9272 | rm -f conftest.err conftest.$ac_objext \ | ||
9273 | conftest$ac_exeext conftest.$ac_ext | ||
9274 | done | ||
9275 | fi | ||
9276 | LIBS=$ac_func_search_save_LIBS | ||
9277 | fi | ||
9278 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
9279 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
9280 | if test "$ac_cv_search_login" != no; then | ||
9281 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
9282 | cat >>confdefs.h <<\_ACEOF | ||
9283 | #define HAVE_LOGIN 1 | ||
9284 | _ACEOF | ||
9285 | |||
9286 | fi | ||
9287 | |||
9288 | |||
9289 | |||
9290 | |||
9291 | for ac_func in logout updwtmp logwtmp | ||
9292 | do | ||
9293 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9294 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9295 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9296 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9298 | else | ||
9299 | cat >conftest.$ac_ext <<_ACEOF | ||
9300 | /* confdefs.h. */ | ||
9301 | _ACEOF | ||
9302 | cat confdefs.h >>conftest.$ac_ext | ||
9303 | cat >>conftest.$ac_ext <<_ACEOF | ||
9304 | /* end confdefs.h. */ | ||
9305 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9306 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9307 | #define $ac_func innocuous_$ac_func | ||
9308 | |||
9309 | /* System header to define __stub macros and hopefully few prototypes, | ||
9310 | which can conflict with char $ac_func (); below. | ||
9311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9312 | <limits.h> exists even on freestanding compilers. */ | ||
9313 | |||
9314 | #ifdef __STDC__ | ||
9315 | # include <limits.h> | ||
9316 | #else | ||
9317 | # include <assert.h> | ||
9318 | #endif | ||
9319 | |||
9320 | #undef $ac_func | ||
9321 | |||
9322 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9323 | #ifdef __cplusplus | ||
9324 | extern "C" | ||
9325 | { | ||
9326 | #endif | ||
9327 | /* We use char because int might match the return type of a gcc2 | ||
9328 | builtin and then its argument prototype would still apply. */ | ||
9329 | char $ac_func (); | ||
9330 | /* The GNU C library defines this for functions which it implements | ||
9331 | to always fail with ENOSYS. Some functions are actually named | ||
9332 | something starting with __ and the normal name is an alias. */ | ||
9333 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9334 | choke me | ||
9335 | #else | ||
9336 | char (*f) () = $ac_func; | ||
9337 | #endif | ||
9338 | #ifdef __cplusplus | ||
9339 | } | ||
9340 | #endif | ||
9341 | |||
9342 | int | ||
9343 | main () | ||
9344 | { | ||
9345 | return f != $ac_func; | ||
9346 | ; | ||
9347 | return 0; | ||
9348 | } | ||
9349 | _ACEOF | ||
9350 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9352 | (eval $ac_link) 2>conftest.er1 | ||
9353 | ac_status=$? | ||
9354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9355 | rm -f conftest.er1 | ||
9356 | cat conftest.err >&5 | ||
9357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9358 | (exit $ac_status); } && | ||
9359 | { ac_try='test -z "$ac_c_werror_flag" | ||
9360 | || test ! -s conftest.err' | ||
9361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9362 | (eval $ac_try) 2>&5 | ||
9363 | ac_status=$? | ||
9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9365 | (exit $ac_status); }; } && | ||
9366 | { ac_try='test -s conftest$ac_exeext' | ||
9367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9368 | (eval $ac_try) 2>&5 | ||
9369 | ac_status=$? | ||
9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9371 | (exit $ac_status); }; }; then | ||
9372 | eval "$as_ac_var=yes" | ||
9373 | else | ||
9374 | echo "$as_me: failed program was:" >&5 | ||
9375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9376 | |||
9377 | eval "$as_ac_var=no" | ||
9378 | fi | ||
9379 | rm -f conftest.err conftest.$ac_objext \ | ||
9380 | conftest$ac_exeext conftest.$ac_ext | ||
9381 | fi | ||
9382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9385 | cat >>confdefs.h <<_ACEOF | ||
9386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9387 | _ACEOF | ||
9388 | |||
9389 | fi | ||
9390 | done | ||
9391 | |||
9392 | |||
9393 | |||
9394 | for ac_func in strftime | ||
9395 | do | ||
9396 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9397 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9398 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9399 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9401 | else | ||
9402 | cat >conftest.$ac_ext <<_ACEOF | ||
9403 | /* confdefs.h. */ | ||
9404 | _ACEOF | ||
9405 | cat confdefs.h >>conftest.$ac_ext | ||
9406 | cat >>conftest.$ac_ext <<_ACEOF | ||
9407 | /* end confdefs.h. */ | ||
9408 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9410 | #define $ac_func innocuous_$ac_func | ||
9411 | |||
9412 | /* System header to define __stub macros and hopefully few prototypes, | ||
9413 | which can conflict with char $ac_func (); below. | ||
9414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9415 | <limits.h> exists even on freestanding compilers. */ | ||
9416 | |||
9417 | #ifdef __STDC__ | ||
9418 | # include <limits.h> | ||
9419 | #else | ||
9420 | # include <assert.h> | ||
9421 | #endif | ||
9422 | |||
9423 | #undef $ac_func | ||
9424 | |||
9425 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9426 | #ifdef __cplusplus | ||
9427 | extern "C" | ||
9428 | { | ||
9429 | #endif | ||
9430 | /* We use char because int might match the return type of a gcc2 | ||
9431 | builtin and then its argument prototype would still apply. */ | ||
9432 | char $ac_func (); | ||
9433 | /* The GNU C library defines this for functions which it implements | ||
9434 | to always fail with ENOSYS. Some functions are actually named | ||
9435 | something starting with __ and the normal name is an alias. */ | ||
9436 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9437 | choke me | ||
9438 | #else | ||
9439 | char (*f) () = $ac_func; | ||
9440 | #endif | ||
9441 | #ifdef __cplusplus | ||
9442 | } | ||
9443 | #endif | ||
9444 | |||
9445 | int | ||
9446 | main () | ||
9447 | { | ||
9448 | return f != $ac_func; | ||
9449 | ; | ||
9450 | return 0; | ||
9451 | } | ||
9452 | _ACEOF | ||
9453 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9455 | (eval $ac_link) 2>conftest.er1 | ||
9456 | ac_status=$? | ||
9457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9458 | rm -f conftest.er1 | ||
9459 | cat conftest.err >&5 | ||
9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9461 | (exit $ac_status); } && | ||
9462 | { ac_try='test -z "$ac_c_werror_flag" | ||
9463 | || test ! -s conftest.err' | ||
9464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9465 | (eval $ac_try) 2>&5 | ||
9466 | ac_status=$? | ||
9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9468 | (exit $ac_status); }; } && | ||
9469 | { ac_try='test -s conftest$ac_exeext' | ||
9470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9471 | (eval $ac_try) 2>&5 | ||
9472 | ac_status=$? | ||
9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9474 | (exit $ac_status); }; }; then | ||
9475 | eval "$as_ac_var=yes" | ||
9476 | else | ||
9477 | echo "$as_me: failed program was:" >&5 | ||
9478 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9479 | |||
9480 | eval "$as_ac_var=no" | ||
9481 | fi | ||
9482 | rm -f conftest.err conftest.$ac_objext \ | ||
9483 | conftest$ac_exeext conftest.$ac_ext | ||
9484 | fi | ||
9485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9487 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9488 | cat >>confdefs.h <<_ACEOF | ||
9489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9490 | _ACEOF | ||
9491 | |||
9492 | else | ||
9493 | # strftime is in -lintl on SCO UNIX. | ||
9494 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
9495 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
9496 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
9497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9498 | else | ||
9499 | ac_check_lib_save_LIBS=$LIBS | ||
9500 | LIBS="-lintl $LIBS" | ||
9501 | cat >conftest.$ac_ext <<_ACEOF | ||
9502 | /* confdefs.h. */ | ||
9503 | _ACEOF | ||
9504 | cat confdefs.h >>conftest.$ac_ext | ||
9505 | cat >>conftest.$ac_ext <<_ACEOF | ||
9506 | /* end confdefs.h. */ | ||
9507 | |||
9508 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9509 | #ifdef __cplusplus | ||
9510 | extern "C" | ||
9511 | #endif | ||
9512 | /* We use char because int might match the return type of a gcc2 | ||
9513 | builtin and then its argument prototype would still apply. */ | ||
9514 | char strftime (); | ||
9515 | int | ||
9516 | main () | ||
9517 | { | ||
9518 | strftime (); | ||
9519 | ; | ||
9520 | return 0; | ||
9521 | } | ||
9522 | _ACEOF | ||
9523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9525 | (eval $ac_link) 2>conftest.er1 | ||
9526 | ac_status=$? | ||
9527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9528 | rm -f conftest.er1 | ||
9529 | cat conftest.err >&5 | ||
9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9531 | (exit $ac_status); } && | ||
9532 | { ac_try='test -z "$ac_c_werror_flag" | ||
9533 | || test ! -s conftest.err' | ||
9534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9535 | (eval $ac_try) 2>&5 | ||
9536 | ac_status=$? | ||
9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9538 | (exit $ac_status); }; } && | ||
9539 | { ac_try='test -s conftest$ac_exeext' | ||
9540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9541 | (eval $ac_try) 2>&5 | ||
9542 | ac_status=$? | ||
9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9544 | (exit $ac_status); }; }; then | ||
9545 | ac_cv_lib_intl_strftime=yes | ||
9546 | else | ||
9547 | echo "$as_me: failed program was:" >&5 | ||
9548 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9549 | |||
9550 | ac_cv_lib_intl_strftime=no | ||
9551 | fi | ||
9552 | rm -f conftest.err conftest.$ac_objext \ | ||
9553 | conftest$ac_exeext conftest.$ac_ext | ||
9554 | LIBS=$ac_check_lib_save_LIBS | ||
9555 | fi | ||
9556 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
9557 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
9558 | if test $ac_cv_lib_intl_strftime = yes; then | ||
9559 | cat >>confdefs.h <<\_ACEOF | ||
9560 | #define HAVE_STRFTIME 1 | ||
9561 | _ACEOF | ||
9562 | |||
9563 | LIBS="-lintl $LIBS" | ||
9564 | fi | ||
9565 | |||
9566 | fi | ||
9567 | done | ||
9568 | |||
9569 | |||
9570 | # Check for ALTDIRFUNC glob() extension | ||
9571 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9572 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
9573 | cat >conftest.$ac_ext <<_ACEOF | ||
9574 | /* confdefs.h. */ | ||
9575 | _ACEOF | ||
9576 | cat confdefs.h >>conftest.$ac_ext | ||
9577 | cat >>conftest.$ac_ext <<_ACEOF | ||
9578 | /* end confdefs.h. */ | ||
9579 | |||
9580 | #include <glob.h> | ||
9581 | #ifdef GLOB_ALTDIRFUNC | ||
9582 | FOUNDIT | ||
9583 | #endif | ||
9584 | |||
9585 | _ACEOF | ||
9586 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9587 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9588 | |||
9589 | cat >>confdefs.h <<\_ACEOF | ||
9590 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
9591 | _ACEOF | ||
9592 | |||
9593 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9594 | echo "${ECHO_T}yes" >&6 | ||
9595 | |||
9596 | else | ||
9597 | |||
9598 | echo "$as_me:$LINENO: result: no" >&5 | ||
9599 | echo "${ECHO_T}no" >&6 | ||
9600 | |||
9601 | |||
9602 | fi | ||
9603 | rm -f conftest* | ||
9604 | |||
9605 | |||
9606 | # Check for g.gl_matchc glob() extension | ||
9607 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
9608 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
9609 | cat >conftest.$ac_ext <<_ACEOF | ||
9610 | /* confdefs.h. */ | ||
9611 | _ACEOF | ||
9612 | cat confdefs.h >>conftest.$ac_ext | ||
9613 | cat >>conftest.$ac_ext <<_ACEOF | ||
9614 | /* end confdefs.h. */ | ||
9615 | |||
9616 | #include <glob.h> | ||
9617 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
9618 | |||
9619 | _ACEOF | ||
9620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9621 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9622 | |||
9623 | cat >>confdefs.h <<\_ACEOF | ||
9624 | #define GLOB_HAS_GL_MATCHC 1 | ||
9625 | _ACEOF | ||
9626 | |||
9627 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9628 | echo "${ECHO_T}yes" >&6 | ||
9629 | |||
9630 | else | ||
9631 | |||
9632 | echo "$as_me:$LINENO: result: no" >&5 | ||
9633 | echo "${ECHO_T}no" >&6 | ||
9634 | |||
9635 | |||
9636 | fi | ||
9637 | rm -f conftest* | ||
9638 | |||
9639 | |||
9640 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
9641 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
9642 | if test "$cross_compiling" = yes; then | ||
9643 | |||
9644 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
9645 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
9646 | cat >>confdefs.h <<\_ACEOF | ||
9647 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9648 | _ACEOF | ||
9649 | |||
9650 | |||
9651 | |||
9652 | else | ||
9653 | cat >conftest.$ac_ext <<_ACEOF | ||
9654 | /* confdefs.h. */ | ||
9655 | _ACEOF | ||
9656 | cat confdefs.h >>conftest.$ac_ext | ||
9657 | cat >>conftest.$ac_ext <<_ACEOF | ||
9658 | /* end confdefs.h. */ | ||
9659 | |||
9660 | #include <sys/types.h> | ||
9661 | #include <dirent.h> | ||
9662 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
9663 | |||
9664 | _ACEOF | ||
9665 | rm -f conftest$ac_exeext | ||
9666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9667 | (eval $ac_link) 2>&5 | ||
9668 | ac_status=$? | ||
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9672 | (eval $ac_try) 2>&5 | ||
9673 | ac_status=$? | ||
9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9675 | (exit $ac_status); }; }; then | ||
9676 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9677 | echo "${ECHO_T}yes" >&6 | ||
9678 | else | ||
9679 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9680 | echo "$as_me: failed program was:" >&5 | ||
9681 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9682 | |||
9683 | ( exit $ac_status ) | ||
9684 | |||
9685 | echo "$as_me:$LINENO: result: no" >&5 | ||
9686 | echo "${ECHO_T}no" >&6 | ||
9687 | cat >>confdefs.h <<\_ACEOF | ||
9688 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9689 | _ACEOF | ||
9690 | |||
9691 | |||
9692 | fi | ||
9693 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9694 | fi | ||
9695 | |||
9696 | echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
9697 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6 | ||
9698 | if test -d "/proc/$$/fd" ; then | ||
9699 | cat >>confdefs.h <<\_ACEOF | ||
9700 | #define HAVE_PROC_PID 1 | ||
9701 | _ACEOF | ||
9702 | |||
9703 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9704 | echo "${ECHO_T}yes" >&6 | ||
9705 | else | ||
9706 | echo "$as_me:$LINENO: result: no" >&5 | ||
9707 | echo "${ECHO_T}no" >&6 | ||
9708 | fi | ||
9709 | |||
9710 | # Check whether user wants S/Key support | ||
9711 | SKEY_MSG="no" | ||
9712 | |||
9713 | # Check whether --with-skey or --without-skey was given. | ||
9714 | if test "${with_skey+set}" = set; then | ||
9715 | withval="$with_skey" | ||
9716 | |||
9717 | if test "x$withval" != "xno" ; then | ||
9718 | |||
9719 | if test "x$withval" != "xyes" ; then | ||
9720 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9721 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9722 | fi | ||
9723 | |||
9724 | cat >>confdefs.h <<\_ACEOF | ||
9725 | #define SKEY 1 | ||
9726 | _ACEOF | ||
9727 | |||
9728 | LIBS="-lskey $LIBS" | ||
9729 | SKEY_MSG="yes" | ||
9730 | |||
9731 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
9732 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
9733 | if test "$cross_compiling" = yes; then | ||
9734 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
9735 | See \`config.log' for more details." >&5 | ||
9736 | echo "$as_me: error: cannot run test program while cross compiling | ||
9737 | See \`config.log' for more details." >&2;} | ||
9738 | { (exit 1); exit 1; }; } | ||
9739 | else | ||
9740 | cat >conftest.$ac_ext <<_ACEOF | ||
9741 | /* confdefs.h. */ | ||
9742 | _ACEOF | ||
9743 | cat confdefs.h >>conftest.$ac_ext | ||
9744 | cat >>conftest.$ac_ext <<_ACEOF | ||
9745 | /* end confdefs.h. */ | ||
9746 | |||
9747 | #include <stdio.h> | ||
9748 | #include <skey.h> | ||
9749 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
9750 | |||
9751 | _ACEOF | ||
9752 | rm -f conftest$ac_exeext | ||
9753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9754 | (eval $ac_link) 2>&5 | ||
9755 | ac_status=$? | ||
9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9759 | (eval $ac_try) 2>&5 | ||
9760 | ac_status=$? | ||
9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9762 | (exit $ac_status); }; }; then | ||
9763 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9764 | echo "${ECHO_T}yes" >&6 | ||
9765 | else | ||
9766 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9767 | echo "$as_me: failed program was:" >&5 | ||
9768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9769 | |||
9770 | ( exit $ac_status ) | ||
9771 | |||
9772 | echo "$as_me:$LINENO: result: no" >&5 | ||
9773 | echo "${ECHO_T}no" >&6 | ||
9774 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
9775 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
9776 | { (exit 1); exit 1; }; } | ||
9777 | |||
9778 | fi | ||
9779 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9780 | fi | ||
9781 | echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
9782 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
9783 | cat >conftest.$ac_ext <<_ACEOF | ||
9784 | /* confdefs.h. */ | ||
9785 | _ACEOF | ||
9786 | cat confdefs.h >>conftest.$ac_ext | ||
9787 | cat >>conftest.$ac_ext <<_ACEOF | ||
9788 | /* end confdefs.h. */ | ||
9789 | #include <stdio.h> | ||
9790 | #include <skey.h> | ||
9791 | int | ||
9792 | main () | ||
9793 | { | ||
9794 | (void)skeychallenge(NULL,"name","",0); | ||
9795 | ; | ||
9796 | return 0; | ||
9797 | } | ||
9798 | _ACEOF | ||
9799 | rm -f conftest.$ac_objext | ||
9800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9801 | (eval $ac_compile) 2>conftest.er1 | ||
9802 | ac_status=$? | ||
9803 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9804 | rm -f conftest.er1 | ||
9805 | cat conftest.err >&5 | ||
9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9807 | (exit $ac_status); } && | ||
9808 | { ac_try='test -z "$ac_c_werror_flag" | ||
9809 | || test ! -s conftest.err' | ||
9810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9811 | (eval $ac_try) 2>&5 | ||
9812 | ac_status=$? | ||
9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9814 | (exit $ac_status); }; } && | ||
9815 | { ac_try='test -s conftest.$ac_objext' | ||
9816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9817 | (eval $ac_try) 2>&5 | ||
9818 | ac_status=$? | ||
9819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9820 | (exit $ac_status); }; }; then | ||
9821 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9822 | echo "${ECHO_T}yes" >&6 | ||
9823 | cat >>confdefs.h <<\_ACEOF | ||
9824 | #define SKEYCHALLENGE_4ARG 1 | ||
9825 | _ACEOF | ||
9826 | |||
9827 | else | ||
9828 | echo "$as_me: failed program was:" >&5 | ||
9829 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9830 | |||
9831 | echo "$as_me:$LINENO: result: no" >&5 | ||
9832 | echo "${ECHO_T}no" >&6 | ||
9833 | |||
9834 | fi | ||
9835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9836 | fi | ||
9837 | |||
9838 | |||
9839 | fi; | ||
9840 | |||
9841 | # Check whether user wants TCP wrappers support | ||
9842 | TCPW_MSG="no" | ||
9843 | |||
9844 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
9845 | if test "${with_tcp_wrappers+set}" = set; then | ||
9846 | withval="$with_tcp_wrappers" | ||
9847 | |||
9848 | if test "x$withval" != "xno" ; then | ||
9849 | saved_LIBS="$LIBS" | ||
9850 | saved_LDFLAGS="$LDFLAGS" | ||
9851 | saved_CPPFLAGS="$CPPFLAGS" | ||
9852 | if test -n "${withval}" && \ | ||
9853 | test "x${withval}" != "xyes"; then | ||
9854 | if test -d "${withval}/lib"; then | ||
9855 | if test -n "${need_dash_r}"; then | ||
9856 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9857 | else | ||
9858 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9859 | fi | ||
9860 | else | ||
9861 | if test -n "${need_dash_r}"; then | ||
9862 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9863 | else | ||
9864 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9865 | fi | ||
9866 | fi | ||
9867 | if test -d "${withval}/include"; then | ||
9868 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9869 | else | ||
9870 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9871 | fi | ||
9872 | fi | ||
9873 | LIBWRAP="-lwrap" | ||
9874 | LIBS="$LIBWRAP $LIBS" | ||
9875 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
9876 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
9877 | cat >conftest.$ac_ext <<_ACEOF | ||
9878 | /* confdefs.h. */ | ||
9879 | _ACEOF | ||
9880 | cat confdefs.h >>conftest.$ac_ext | ||
9881 | cat >>conftest.$ac_ext <<_ACEOF | ||
9882 | /* end confdefs.h. */ | ||
9883 | |||
9884 | #include <sys/types.h> | ||
9885 | #include <sys/socket.h> | ||
9886 | #include <netinet/in.h> | ||
9887 | #include <tcpd.h> | ||
9888 | int deny_severity = 0, allow_severity = 0; | ||
9889 | |||
9890 | int | ||
9891 | main () | ||
9892 | { | ||
9893 | hosts_access(0); | ||
9894 | ; | ||
9895 | return 0; | ||
9896 | } | ||
9897 | _ACEOF | ||
9898 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9900 | (eval $ac_link) 2>conftest.er1 | ||
9901 | ac_status=$? | ||
9902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9903 | rm -f conftest.er1 | ||
9904 | cat conftest.err >&5 | ||
9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9906 | (exit $ac_status); } && | ||
9907 | { ac_try='test -z "$ac_c_werror_flag" | ||
9908 | || test ! -s conftest.err' | ||
9909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9910 | (eval $ac_try) 2>&5 | ||
9911 | ac_status=$? | ||
9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9913 | (exit $ac_status); }; } && | ||
9914 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
9920 | |||
9921 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9922 | echo "${ECHO_T}yes" >&6 | ||
9923 | cat >>confdefs.h <<\_ACEOF | ||
9924 | #define LIBWRAP 1 | ||
9925 | _ACEOF | ||
9926 | |||
9927 | |||
9928 | TCPW_MSG="yes" | ||
9929 | |||
9930 | else | ||
9931 | echo "$as_me: failed program was:" >&5 | ||
9932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9933 | |||
9934 | |||
9935 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
9936 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
9937 | { (exit 1); exit 1; }; } | ||
9938 | |||
9939 | |||
9940 | fi | ||
9941 | rm -f conftest.err conftest.$ac_objext \ | ||
9942 | conftest$ac_exeext conftest.$ac_ext | ||
9943 | LIBS="$saved_LIBS" | ||
9944 | fi | ||
9945 | |||
9946 | |||
9947 | fi; | ||
9948 | |||
9949 | # Check whether user wants libedit support | ||
9950 | LIBEDIT_MSG="no" | ||
9951 | |||
9952 | # Check whether --with-libedit or --without-libedit was given. | ||
9953 | if test "${with_libedit+set}" = set; then | ||
9954 | withval="$with_libedit" | ||
9955 | if test "x$withval" != "xno" ; then | ||
9956 | if test "x$withval" != "xyes"; then | ||
9957 | CPPFLAGS="$CPPFLAGS -I$withval/include" | ||
9958 | LDFLAGS="$LDFLAGS -L$withval/lib" | ||
9959 | fi | ||
9960 | echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
9961 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6 | ||
9962 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
9963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9964 | else | ||
9965 | ac_check_lib_save_LIBS=$LIBS | ||
9966 | LIBS="-ledit -lcurses | ||
9967 | $LIBS" | ||
9968 | cat >conftest.$ac_ext <<_ACEOF | ||
9969 | /* confdefs.h. */ | ||
9970 | _ACEOF | ||
9971 | cat confdefs.h >>conftest.$ac_ext | ||
9972 | cat >>conftest.$ac_ext <<_ACEOF | ||
9973 | /* end confdefs.h. */ | ||
9974 | |||
9975 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9976 | #ifdef __cplusplus | ||
9977 | extern "C" | ||
9978 | #endif | ||
9979 | /* We use char because int might match the return type of a gcc2 | ||
9980 | builtin and then its argument prototype would still apply. */ | ||
9981 | char el_init (); | ||
9982 | int | ||
9983 | main () | ||
9984 | { | ||
9985 | el_init (); | ||
9986 | ; | ||
9987 | return 0; | ||
9988 | } | ||
9989 | _ACEOF | ||
9990 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9992 | (eval $ac_link) 2>conftest.er1 | ||
9993 | ac_status=$? | ||
9994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9995 | rm -f conftest.er1 | ||
9996 | cat conftest.err >&5 | ||
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9998 | (exit $ac_status); } && | ||
9999 | { ac_try='test -z "$ac_c_werror_flag" | ||
10000 | || test ! -s conftest.err' | ||
10001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10002 | (eval $ac_try) 2>&5 | ||
10003 | ac_status=$? | ||
10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10005 | (exit $ac_status); }; } && | ||
10006 | { ac_try='test -s conftest$ac_exeext' | ||
10007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10008 | (eval $ac_try) 2>&5 | ||
10009 | ac_status=$? | ||
10010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10011 | (exit $ac_status); }; }; then | ||
10012 | ac_cv_lib_edit_el_init=yes | ||
10013 | else | ||
10014 | echo "$as_me: failed program was:" >&5 | ||
10015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10016 | |||
10017 | ac_cv_lib_edit_el_init=no | ||
10018 | fi | ||
10019 | rm -f conftest.err conftest.$ac_objext \ | ||
10020 | conftest$ac_exeext conftest.$ac_ext | ||
10021 | LIBS=$ac_check_lib_save_LIBS | ||
10022 | fi | ||
10023 | echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
10024 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6 | ||
10025 | if test $ac_cv_lib_edit_el_init = yes; then | ||
10026 | |||
10027 | cat >>confdefs.h <<\_ACEOF | ||
10028 | #define USE_LIBEDIT | ||
10029 | _ACEOF | ||
10030 | |||
10031 | LIBEDIT="-ledit -lcurses" | ||
10032 | LIBEDIT_MSG="yes" | ||
10033 | |||
10034 | |||
10035 | else | ||
10036 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
10037 | echo "$as_me: error: libedit not found" >&2;} | ||
10038 | { (exit 1); exit 1; }; } | ||
10039 | fi | ||
10040 | |||
10041 | fi | ||
10042 | |||
10043 | fi; | ||
10044 | |||
10045 | AUDIT_MODULE=none | ||
10046 | |||
10047 | # Check whether --with-audit or --without-audit was given. | ||
10048 | if test "${with_audit+set}" = set; then | ||
10049 | withval="$with_audit" | ||
10050 | |||
10051 | echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
10052 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6 | ||
10053 | case "$withval" in | ||
10054 | bsm) | ||
10055 | echo "$as_me:$LINENO: result: bsm" >&5 | ||
10056 | echo "${ECHO_T}bsm" >&6 | ||
10057 | AUDIT_MODULE=bsm | ||
10058 | |||
10059 | for ac_header in bsm/audit.h | ||
10060 | do | ||
10061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10067 | fi | ||
10068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10070 | else | ||
10071 | # Is the header compilable? | ||
10072 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
10074 | cat >conftest.$ac_ext <<_ACEOF | ||
10075 | /* confdefs.h. */ | ||
10076 | _ACEOF | ||
10077 | cat confdefs.h >>conftest.$ac_ext | ||
10078 | cat >>conftest.$ac_ext <<_ACEOF | ||
10079 | /* end confdefs.h. */ | ||
10080 | $ac_includes_default | ||
10081 | #include <$ac_header> | ||
10082 | _ACEOF | ||
10083 | rm -f conftest.$ac_objext | ||
10084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10085 | (eval $ac_compile) 2>conftest.er1 | ||
10086 | ac_status=$? | ||
10087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10088 | rm -f conftest.er1 | ||
10089 | cat conftest.err >&5 | ||
10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10091 | (exit $ac_status); } && | ||
10092 | { ac_try='test -z "$ac_c_werror_flag" | ||
10093 | || test ! -s conftest.err' | ||
10094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10095 | (eval $ac_try) 2>&5 | ||
10096 | ac_status=$? | ||
10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10098 | (exit $ac_status); }; } && | ||
10099 | { ac_try='test -s conftest.$ac_objext' | ||
10100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10101 | (eval $ac_try) 2>&5 | ||
10102 | ac_status=$? | ||
10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10104 | (exit $ac_status); }; }; then | ||
10105 | ac_header_compiler=yes | ||
10106 | else | ||
10107 | echo "$as_me: failed program was:" >&5 | ||
10108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10109 | |||
10110 | ac_header_compiler=no | ||
10111 | fi | ||
10112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10113 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10114 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
10115 | |||
10116 | # Is the header present? | ||
10117 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
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 | #include <$ac_header> | ||
10126 | _ACEOF | ||
10127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
10128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
10129 | ac_status=$? | ||
10130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10131 | rm -f conftest.er1 | ||
10132 | cat conftest.err >&5 | ||
10133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10134 | (exit $ac_status); } >/dev/null; then | ||
10135 | if test -s conftest.err; then | ||
10136 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
10137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
10138 | else | ||
10139 | ac_cpp_err= | ||
10140 | fi | ||
10141 | else | ||
10142 | ac_cpp_err=yes | ||
10143 | fi | ||
10144 | if test -z "$ac_cpp_err"; then | ||
10145 | ac_header_preproc=yes | ||
10146 | else | ||
10147 | echo "$as_me: failed program was:" >&5 | ||
10148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10149 | |||
10150 | ac_header_preproc=no | ||
10151 | fi | ||
10152 | rm -f conftest.err conftest.$ac_ext | ||
10153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10154 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
10155 | |||
10156 | # So? What about this header? | ||
10157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10158 | yes:no: ) | ||
10159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10163 | ac_header_preproc=yes | ||
10164 | ;; | ||
10165 | no:yes:* ) | ||
10166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10170 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10172 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10173 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10176 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10178 | ( | ||
10179 | cat <<\_ASBOX | ||
10180 | ## ---------------------------------- ## | ||
10181 | ## Report this to the OpenSSH lists. ## | ||
10182 | ## ---------------------------------- ## | ||
10183 | _ASBOX | ||
10184 | ) | | ||
10185 | sed "s/^/$as_me: WARNING: /" >&2 | ||
10186 | ;; | ||
10187 | esac | ||
10188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10192 | else | ||
10193 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10194 | fi | ||
10195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10196 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10197 | |||
10198 | fi | ||
10199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10200 | cat >>confdefs.h <<_ACEOF | ||
10201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10202 | _ACEOF | ||
10203 | |||
10204 | else | ||
10205 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
10206 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
10207 | { (exit 1); exit 1; }; } | ||
10208 | fi | ||
10209 | |||
10210 | done | ||
10211 | |||
10212 | |||
10213 | echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
10214 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6 | ||
10215 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
10216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10217 | else | ||
10218 | ac_check_lib_save_LIBS=$LIBS | ||
10219 | LIBS="-lbsm $LIBS" | ||
10220 | cat >conftest.$ac_ext <<_ACEOF | ||
10221 | /* confdefs.h. */ | ||
10222 | _ACEOF | ||
10223 | cat confdefs.h >>conftest.$ac_ext | ||
10224 | cat >>conftest.$ac_ext <<_ACEOF | ||
10225 | /* end confdefs.h. */ | ||
10226 | |||
10227 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10228 | #ifdef __cplusplus | ||
10229 | extern "C" | ||
10230 | #endif | ||
10231 | /* We use char because int might match the return type of a gcc2 | ||
10232 | builtin and then its argument prototype would still apply. */ | ||
10233 | char getaudit (); | ||
10234 | int | ||
10235 | main () | ||
10236 | { | ||
10237 | getaudit (); | ||
10238 | ; | ||
10239 | return 0; | ||
10240 | } | ||
10241 | _ACEOF | ||
10242 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10244 | (eval $ac_link) 2>conftest.er1 | ||
10245 | ac_status=$? | ||
10246 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10247 | rm -f conftest.er1 | ||
10248 | cat conftest.err >&5 | ||
10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10250 | (exit $ac_status); } && | ||
10251 | { ac_try='test -z "$ac_c_werror_flag" | ||
10252 | || test ! -s conftest.err' | ||
10253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10254 | (eval $ac_try) 2>&5 | ||
10255 | ac_status=$? | ||
10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10257 | (exit $ac_status); }; } && | ||
10258 | { ac_try='test -s conftest$ac_exeext' | ||
10259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10260 | (eval $ac_try) 2>&5 | ||
10261 | ac_status=$? | ||
10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10263 | (exit $ac_status); }; }; then | ||
10264 | ac_cv_lib_bsm_getaudit=yes | ||
10265 | else | ||
10266 | echo "$as_me: failed program was:" >&5 | ||
10267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10268 | |||
10269 | ac_cv_lib_bsm_getaudit=no | ||
10270 | fi | ||
10271 | rm -f conftest.err conftest.$ac_objext \ | ||
10272 | conftest$ac_exeext conftest.$ac_ext | ||
10273 | LIBS=$ac_check_lib_save_LIBS | ||
10274 | fi | ||
10275 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10276 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6 | ||
10277 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
10278 | cat >>confdefs.h <<_ACEOF | ||
10279 | #define HAVE_LIBBSM 1 | ||
10280 | _ACEOF | ||
10281 | |||
10282 | LIBS="-lbsm $LIBS" | ||
10283 | |||
10284 | else | ||
10285 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
10286 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
10287 | { (exit 1); exit 1; }; } | ||
10288 | fi | ||
10289 | |||
10290 | |||
10291 | for ac_func in getaudit | ||
10292 | do | ||
10293 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10294 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10295 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10296 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10298 | else | ||
10299 | cat >conftest.$ac_ext <<_ACEOF | ||
10300 | /* confdefs.h. */ | ||
10301 | _ACEOF | ||
10302 | cat confdefs.h >>conftest.$ac_ext | ||
10303 | cat >>conftest.$ac_ext <<_ACEOF | ||
10304 | /* end confdefs.h. */ | ||
10305 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10306 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10307 | #define $ac_func innocuous_$ac_func | ||
10308 | |||
10309 | /* System header to define __stub macros and hopefully few prototypes, | ||
10310 | which can conflict with char $ac_func (); below. | ||
10311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10312 | <limits.h> exists even on freestanding compilers. */ | ||
10313 | |||
10314 | #ifdef __STDC__ | ||
10315 | # include <limits.h> | ||
10316 | #else | ||
10317 | # include <assert.h> | ||
10318 | #endif | ||
10319 | |||
10320 | #undef $ac_func | ||
10321 | |||
10322 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10323 | #ifdef __cplusplus | ||
10324 | extern "C" | ||
10325 | { | ||
10326 | #endif | ||
10327 | /* We use char because int might match the return type of a gcc2 | ||
10328 | builtin and then its argument prototype would still apply. */ | ||
10329 | char $ac_func (); | ||
10330 | /* The GNU C library defines this for functions which it implements | ||
10331 | to always fail with ENOSYS. Some functions are actually named | ||
10332 | something starting with __ and the normal name is an alias. */ | ||
10333 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10334 | choke me | ||
10335 | #else | ||
10336 | char (*f) () = $ac_func; | ||
10337 | #endif | ||
10338 | #ifdef __cplusplus | ||
10339 | } | ||
10340 | #endif | ||
10341 | |||
10342 | int | ||
10343 | main () | ||
10344 | { | ||
10345 | return f != $ac_func; | ||
10346 | ; | ||
10347 | return 0; | ||
10348 | } | ||
10349 | _ACEOF | ||
10350 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10352 | (eval $ac_link) 2>conftest.er1 | ||
10353 | ac_status=$? | ||
10354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10355 | rm -f conftest.er1 | ||
10356 | cat conftest.err >&5 | ||
10357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10358 | (exit $ac_status); } && | ||
10359 | { ac_try='test -z "$ac_c_werror_flag" | ||
10360 | || test ! -s conftest.err' | ||
10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10362 | (eval $ac_try) 2>&5 | ||
10363 | ac_status=$? | ||
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10365 | (exit $ac_status); }; } && | ||
10366 | { ac_try='test -s conftest$ac_exeext' | ||
10367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10368 | (eval $ac_try) 2>&5 | ||
10369 | ac_status=$? | ||
10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10371 | (exit $ac_status); }; }; then | ||
10372 | eval "$as_ac_var=yes" | ||
10373 | else | ||
10374 | echo "$as_me: failed program was:" >&5 | ||
10375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10376 | |||
10377 | eval "$as_ac_var=no" | ||
10378 | fi | ||
10379 | rm -f conftest.err conftest.$ac_objext \ | ||
10380 | conftest$ac_exeext conftest.$ac_ext | ||
10381 | fi | ||
10382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10385 | cat >>confdefs.h <<_ACEOF | ||
10386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10387 | _ACEOF | ||
10388 | |||
10389 | else | ||
10390 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
10391 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
10392 | { (exit 1); exit 1; }; } | ||
10393 | fi | ||
10394 | done | ||
10395 | |||
10396 | # These are optional | ||
10397 | |||
10398 | for ac_func in getaudit_addr | ||
10399 | do | ||
10400 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10401 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10403 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10405 | else | ||
10406 | cat >conftest.$ac_ext <<_ACEOF | ||
10407 | /* confdefs.h. */ | ||
10408 | _ACEOF | ||
10409 | cat confdefs.h >>conftest.$ac_ext | ||
10410 | cat >>conftest.$ac_ext <<_ACEOF | ||
10411 | /* end confdefs.h. */ | ||
10412 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10413 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10414 | #define $ac_func innocuous_$ac_func | ||
10415 | |||
10416 | /* System header to define __stub macros and hopefully few prototypes, | ||
10417 | which can conflict with char $ac_func (); below. | ||
10418 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10419 | <limits.h> exists even on freestanding compilers. */ | ||
10420 | |||
10421 | #ifdef __STDC__ | ||
10422 | # include <limits.h> | ||
10423 | #else | ||
10424 | # include <assert.h> | ||
10425 | #endif | ||
10426 | |||
10427 | #undef $ac_func | ||
10428 | |||
10429 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10430 | #ifdef __cplusplus | ||
10431 | extern "C" | ||
10432 | { | ||
10433 | #endif | ||
10434 | /* We use char because int might match the return type of a gcc2 | ||
10435 | builtin and then its argument prototype would still apply. */ | ||
10436 | char $ac_func (); | ||
10437 | /* The GNU C library defines this for functions which it implements | ||
10438 | to always fail with ENOSYS. Some functions are actually named | ||
10439 | something starting with __ and the normal name is an alias. */ | ||
10440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10441 | choke me | ||
10442 | #else | ||
10443 | char (*f) () = $ac_func; | ||
10444 | #endif | ||
10445 | #ifdef __cplusplus | ||
10446 | } | ||
10447 | #endif | ||
10448 | |||
10449 | int | ||
10450 | main () | ||
10451 | { | ||
10452 | return f != $ac_func; | ||
10453 | ; | ||
10454 | return 0; | ||
10455 | } | ||
10456 | _ACEOF | ||
10457 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10459 | (eval $ac_link) 2>conftest.er1 | ||
10460 | ac_status=$? | ||
10461 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10462 | rm -f conftest.er1 | ||
10463 | cat conftest.err >&5 | ||
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10465 | (exit $ac_status); } && | ||
10466 | { ac_try='test -z "$ac_c_werror_flag" | ||
10467 | || test ! -s conftest.err' | ||
10468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10469 | (eval $ac_try) 2>&5 | ||
10470 | ac_status=$? | ||
10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10472 | (exit $ac_status); }; } && | ||
10473 | { ac_try='test -s conftest$ac_exeext' | ||
10474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10475 | (eval $ac_try) 2>&5 | ||
10476 | ac_status=$? | ||
10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10478 | (exit $ac_status); }; }; then | ||
10479 | eval "$as_ac_var=yes" | ||
10480 | else | ||
10481 | echo "$as_me: failed program was:" >&5 | ||
10482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10483 | |||
10484 | eval "$as_ac_var=no" | ||
10485 | fi | ||
10486 | rm -f conftest.err conftest.$ac_objext \ | ||
10487 | conftest$ac_exeext conftest.$ac_ext | ||
10488 | fi | ||
10489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10490 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10491 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10492 | cat >>confdefs.h <<_ACEOF | ||
10493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10494 | _ACEOF | ||
10495 | |||
10496 | fi | ||
10497 | done | ||
10498 | |||
10499 | |||
10500 | cat >>confdefs.h <<\_ACEOF | ||
10501 | #define USE_BSM_AUDIT | ||
10502 | _ACEOF | ||
10503 | |||
10504 | ;; | ||
10505 | debug) | ||
10506 | AUDIT_MODULE=debug | ||
10507 | echo "$as_me:$LINENO: result: debug" >&5 | ||
10508 | echo "${ECHO_T}debug" >&6 | ||
10509 | |||
10510 | cat >>confdefs.h <<\_ACEOF | ||
10511 | #define SSH_AUDIT_EVENTS | ||
10512 | _ACEOF | ||
10513 | |||
10514 | ;; | ||
10515 | *) | ||
10516 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
10517 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
10518 | { (exit 1); exit 1; }; } | ||
10519 | ;; | ||
10520 | esac | ||
10521 | |||
10522 | fi; | ||
10523 | |||
10524 | |||
10525 | |||
10526 | |||
10527 | |||
10528 | |||
10529 | |||
10530 | |||
10531 | |||
10532 | |||
10533 | |||
10534 | |||
10535 | |||
10536 | |||
10537 | |||
10538 | |||
10539 | |||
10540 | |||
10541 | |||
10542 | |||
10543 | |||
10544 | |||
10545 | |||
10546 | |||
10547 | |||
10548 | |||
10549 | |||
10550 | |||
10551 | |||
10552 | |||
10553 | |||
10554 | |||
10555 | |||
10556 | |||
10557 | |||
10558 | |||
10559 | |||
10560 | |||
10561 | |||
10562 | |||
10563 | |||
10564 | |||
10565 | |||
10566 | |||
10567 | |||
10568 | |||
10569 | |||
10570 | |||
10571 | |||
10572 | |||
10573 | |||
10574 | |||
10575 | |||
10576 | |||
10577 | |||
10578 | |||
10579 | |||
10580 | |||
10581 | |||
10582 | |||
10583 | |||
10584 | |||
10585 | |||
10586 | |||
10587 | |||
10588 | |||
10589 | |||
10590 | |||
10591 | |||
10592 | |||
10593 | |||
10594 | |||
10595 | |||
10596 | |||
10597 | |||
10598 | |||
10599 | |||
10600 | |||
10601 | |||
10602 | for ac_func in \ | ||
10603 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \ | ||
10604 | bindresvport_sa clock closefrom dirfd fchdir fchmod fchown \ | ||
10605 | freeaddrinfo futimes getaddrinfo getcwd getgrouplist getnameinfo \ | ||
10606 | getopt getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
10607 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
10608 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
10609 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
10610 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
10611 | setproctitle setregid setreuid setrlimit \ | ||
10612 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
10613 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | ||
10614 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ | ||
10615 | |||
10616 | do | ||
10617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10618 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10620 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10622 | else | ||
10623 | cat >conftest.$ac_ext <<_ACEOF | ||
10624 | /* confdefs.h. */ | ||
10625 | _ACEOF | ||
10626 | cat confdefs.h >>conftest.$ac_ext | ||
10627 | cat >>conftest.$ac_ext <<_ACEOF | ||
10628 | /* end confdefs.h. */ | ||
10629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10631 | #define $ac_func innocuous_$ac_func | ||
10632 | |||
10633 | /* System header to define __stub macros and hopefully few prototypes, | ||
10634 | which can conflict with char $ac_func (); below. | ||
10635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10636 | <limits.h> exists even on freestanding compilers. */ | ||
10637 | |||
10638 | #ifdef __STDC__ | ||
10639 | # include <limits.h> | ||
10640 | #else | ||
10641 | # include <assert.h> | ||
10642 | #endif | ||
10643 | |||
10644 | #undef $ac_func | ||
10645 | |||
10646 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10647 | #ifdef __cplusplus | ||
10648 | extern "C" | ||
10649 | { | ||
10650 | #endif | ||
10651 | /* We use char because int might match the return type of a gcc2 | ||
10652 | builtin and then its argument prototype would still apply. */ | ||
10653 | char $ac_func (); | ||
10654 | /* The GNU C library defines this for functions which it implements | ||
10655 | to always fail with ENOSYS. Some functions are actually named | ||
10656 | something starting with __ and the normal name is an alias. */ | ||
10657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10658 | choke me | ||
10659 | #else | ||
10660 | char (*f) () = $ac_func; | ||
10661 | #endif | ||
10662 | #ifdef __cplusplus | ||
10663 | } | ||
10664 | #endif | ||
10665 | |||
10666 | int | ||
10667 | main () | ||
10668 | { | ||
10669 | return f != $ac_func; | ||
10670 | ; | ||
10671 | return 0; | ||
10672 | } | ||
10673 | _ACEOF | ||
10674 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10676 | (eval $ac_link) 2>conftest.er1 | ||
10677 | ac_status=$? | ||
10678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10679 | rm -f conftest.er1 | ||
10680 | cat conftest.err >&5 | ||
10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10682 | (exit $ac_status); } && | ||
10683 | { ac_try='test -z "$ac_c_werror_flag" | ||
10684 | || test ! -s conftest.err' | ||
10685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10686 | (eval $ac_try) 2>&5 | ||
10687 | ac_status=$? | ||
10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10689 | (exit $ac_status); }; } && | ||
10690 | { ac_try='test -s conftest$ac_exeext' | ||
10691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10692 | (eval $ac_try) 2>&5 | ||
10693 | ac_status=$? | ||
10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10695 | (exit $ac_status); }; }; then | ||
10696 | eval "$as_ac_var=yes" | ||
10697 | else | ||
10698 | echo "$as_me: failed program was:" >&5 | ||
10699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10700 | |||
10701 | eval "$as_ac_var=no" | ||
10702 | fi | ||
10703 | rm -f conftest.err conftest.$ac_objext \ | ||
10704 | conftest$ac_exeext conftest.$ac_ext | ||
10705 | fi | ||
10706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10708 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10709 | cat >>confdefs.h <<_ACEOF | ||
10710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10711 | _ACEOF | ||
10712 | |||
10713 | fi | ||
10714 | done | ||
10715 | |||
10716 | |||
10717 | # IRIX has a const char return value for gai_strerror() | ||
10718 | |||
10719 | for ac_func in gai_strerror | ||
10720 | do | ||
10721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10722 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10724 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10726 | else | ||
10727 | cat >conftest.$ac_ext <<_ACEOF | ||
10728 | /* confdefs.h. */ | ||
10729 | _ACEOF | ||
10730 | cat confdefs.h >>conftest.$ac_ext | ||
10731 | cat >>conftest.$ac_ext <<_ACEOF | ||
10732 | /* end confdefs.h. */ | ||
10733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10735 | #define $ac_func innocuous_$ac_func | ||
10736 | |||
10737 | /* System header to define __stub macros and hopefully few prototypes, | ||
10738 | which can conflict with char $ac_func (); below. | ||
10739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10740 | <limits.h> exists even on freestanding compilers. */ | ||
10741 | |||
10742 | #ifdef __STDC__ | ||
10743 | # include <limits.h> | ||
10744 | #else | ||
10745 | # include <assert.h> | ||
10746 | #endif | ||
10747 | |||
10748 | #undef $ac_func | ||
10749 | |||
10750 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10751 | #ifdef __cplusplus | ||
10752 | extern "C" | ||
10753 | { | ||
10754 | #endif | ||
10755 | /* We use char because int might match the return type of a gcc2 | ||
10756 | builtin and then its argument prototype would still apply. */ | ||
10757 | char $ac_func (); | ||
10758 | /* The GNU C library defines this for functions which it implements | ||
10759 | to always fail with ENOSYS. Some functions are actually named | ||
10760 | something starting with __ and the normal name is an alias. */ | ||
10761 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10762 | choke me | ||
10763 | #else | ||
10764 | char (*f) () = $ac_func; | ||
10765 | #endif | ||
10766 | #ifdef __cplusplus | ||
10767 | } | ||
10768 | #endif | ||
10769 | |||
10770 | int | ||
10771 | main () | ||
10772 | { | ||
10773 | return f != $ac_func; | ||
10774 | ; | ||
10775 | return 0; | ||
10776 | } | ||
10777 | _ACEOF | ||
10778 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10780 | (eval $ac_link) 2>conftest.er1 | ||
10781 | ac_status=$? | ||
10782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10783 | rm -f conftest.er1 | ||
10784 | cat conftest.err >&5 | ||
10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10786 | (exit $ac_status); } && | ||
10787 | { ac_try='test -z "$ac_c_werror_flag" | ||
10788 | || test ! -s conftest.err' | ||
10789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10790 | (eval $ac_try) 2>&5 | ||
10791 | ac_status=$? | ||
10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10793 | (exit $ac_status); }; } && | ||
10794 | { ac_try='test -s conftest$ac_exeext' | ||
10795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10796 | (eval $ac_try) 2>&5 | ||
10797 | ac_status=$? | ||
10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10799 | (exit $ac_status); }; }; then | ||
10800 | eval "$as_ac_var=yes" | ||
10801 | else | ||
10802 | echo "$as_me: failed program was:" >&5 | ||
10803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10804 | |||
10805 | eval "$as_ac_var=no" | ||
10806 | fi | ||
10807 | rm -f conftest.err conftest.$ac_objext \ | ||
10808 | conftest$ac_exeext conftest.$ac_ext | ||
10809 | fi | ||
10810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10811 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10812 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10813 | cat >>confdefs.h <<_ACEOF | ||
10814 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10815 | _ACEOF | ||
10816 | |||
10817 | cat >>confdefs.h <<\_ACEOF | ||
10818 | #define HAVE_GAI_STRERROR 1 | ||
10819 | _ACEOF | ||
10820 | |||
10821 | cat >conftest.$ac_ext <<_ACEOF | ||
10822 | /* confdefs.h. */ | ||
10823 | _ACEOF | ||
10824 | cat confdefs.h >>conftest.$ac_ext | ||
10825 | cat >>conftest.$ac_ext <<_ACEOF | ||
10826 | /* end confdefs.h. */ | ||
10827 | |||
10828 | #include <sys/types.h> | ||
10829 | #include <sys/socket.h> | ||
10830 | #include <netdb.h> | ||
10831 | |||
10832 | const char *gai_strerror(int); | ||
10833 | int | ||
10834 | main () | ||
10835 | { | ||
10836 | |||
10837 | char *str; | ||
10838 | |||
10839 | str = gai_strerror(0); | ||
10840 | ; | ||
10841 | return 0; | ||
10842 | } | ||
10843 | _ACEOF | ||
10844 | rm -f conftest.$ac_objext | ||
10845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10846 | (eval $ac_compile) 2>conftest.er1 | ||
10847 | ac_status=$? | ||
10848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10849 | rm -f conftest.er1 | ||
10850 | cat conftest.err >&5 | ||
10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10852 | (exit $ac_status); } && | ||
10853 | { ac_try='test -z "$ac_c_werror_flag" | ||
10854 | || test ! -s conftest.err' | ||
10855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10856 | (eval $ac_try) 2>&5 | ||
10857 | ac_status=$? | ||
10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10859 | (exit $ac_status); }; } && | ||
10860 | { ac_try='test -s conftest.$ac_objext' | ||
10861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10862 | (eval $ac_try) 2>&5 | ||
10863 | ac_status=$? | ||
10864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10865 | (exit $ac_status); }; }; then | ||
10866 | |||
10867 | |||
10868 | cat >>confdefs.h <<\_ACEOF | ||
10869 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
10870 | _ACEOF | ||
10871 | |||
10872 | else | ||
10873 | echo "$as_me: failed program was:" >&5 | ||
10874 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10875 | |||
10876 | fi | ||
10877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10878 | fi | ||
10879 | done | ||
10880 | |||
10881 | |||
10882 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
10883 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
10884 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
10885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10886 | else | ||
10887 | ac_func_search_save_LIBS=$LIBS | ||
10888 | ac_cv_search_nanosleep=no | ||
10889 | cat >conftest.$ac_ext <<_ACEOF | ||
10890 | /* confdefs.h. */ | ||
10891 | _ACEOF | ||
10892 | cat confdefs.h >>conftest.$ac_ext | ||
10893 | cat >>conftest.$ac_ext <<_ACEOF | ||
10894 | /* end confdefs.h. */ | ||
10895 | |||
10896 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10897 | #ifdef __cplusplus | ||
10898 | extern "C" | ||
10899 | #endif | ||
10900 | /* We use char because int might match the return type of a gcc2 | ||
10901 | builtin and then its argument prototype would still apply. */ | ||
10902 | char nanosleep (); | ||
10903 | int | ||
10904 | main () | ||
10905 | { | ||
10906 | nanosleep (); | ||
10907 | ; | ||
10908 | return 0; | ||
10909 | } | ||
10910 | _ACEOF | ||
10911 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10913 | (eval $ac_link) 2>conftest.er1 | ||
10914 | ac_status=$? | ||
10915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10916 | rm -f conftest.er1 | ||
10917 | cat conftest.err >&5 | ||
10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10919 | (exit $ac_status); } && | ||
10920 | { ac_try='test -z "$ac_c_werror_flag" | ||
10921 | || test ! -s conftest.err' | ||
10922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10923 | (eval $ac_try) 2>&5 | ||
10924 | ac_status=$? | ||
10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10926 | (exit $ac_status); }; } && | ||
10927 | { ac_try='test -s conftest$ac_exeext' | ||
10928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10929 | (eval $ac_try) 2>&5 | ||
10930 | ac_status=$? | ||
10931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10932 | (exit $ac_status); }; }; then | ||
10933 | ac_cv_search_nanosleep="none required" | ||
10934 | else | ||
10935 | echo "$as_me: failed program was:" >&5 | ||
10936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10937 | |||
10938 | fi | ||
10939 | rm -f conftest.err conftest.$ac_objext \ | ||
10940 | conftest$ac_exeext conftest.$ac_ext | ||
10941 | if test "$ac_cv_search_nanosleep" = no; then | ||
10942 | for ac_lib in rt posix4; do | ||
10943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10944 | cat >conftest.$ac_ext <<_ACEOF | ||
10945 | /* confdefs.h. */ | ||
10946 | _ACEOF | ||
10947 | cat confdefs.h >>conftest.$ac_ext | ||
10948 | cat >>conftest.$ac_ext <<_ACEOF | ||
10949 | /* end confdefs.h. */ | ||
10950 | |||
10951 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10952 | #ifdef __cplusplus | ||
10953 | extern "C" | ||
10954 | #endif | ||
10955 | /* We use char because int might match the return type of a gcc2 | ||
10956 | builtin and then its argument prototype would still apply. */ | ||
10957 | char nanosleep (); | ||
10958 | int | ||
10959 | main () | ||
10960 | { | ||
10961 | nanosleep (); | ||
10962 | ; | ||
10963 | return 0; | ||
10964 | } | ||
10965 | _ACEOF | ||
10966 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10968 | (eval $ac_link) 2>conftest.er1 | ||
10969 | ac_status=$? | ||
10970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10971 | rm -f conftest.er1 | ||
10972 | cat conftest.err >&5 | ||
10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10974 | (exit $ac_status); } && | ||
10975 | { ac_try='test -z "$ac_c_werror_flag" | ||
10976 | || test ! -s conftest.err' | ||
10977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10978 | (eval $ac_try) 2>&5 | ||
10979 | ac_status=$? | ||
10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10981 | (exit $ac_status); }; } && | ||
10982 | { ac_try='test -s conftest$ac_exeext' | ||
10983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10984 | (eval $ac_try) 2>&5 | ||
10985 | ac_status=$? | ||
10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10987 | (exit $ac_status); }; }; then | ||
10988 | ac_cv_search_nanosleep="-l$ac_lib" | ||
10989 | break | ||
10990 | else | ||
10991 | echo "$as_me: failed program was:" >&5 | ||
10992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10993 | |||
10994 | fi | ||
10995 | rm -f conftest.err conftest.$ac_objext \ | ||
10996 | conftest$ac_exeext conftest.$ac_ext | ||
10997 | done | ||
10998 | fi | ||
10999 | LIBS=$ac_func_search_save_LIBS | ||
11000 | fi | ||
11001 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
11002 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
11003 | if test "$ac_cv_search_nanosleep" != no; then | ||
11004 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
11005 | cat >>confdefs.h <<\_ACEOF | ||
11006 | #define HAVE_NANOSLEEP 1 | ||
11007 | _ACEOF | ||
11008 | |||
11009 | fi | ||
11010 | |||
11011 | |||
11012 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
11013 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
11014 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
11015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11016 | else | ||
11017 | cat >conftest.$ac_ext <<_ACEOF | ||
11018 | /* confdefs.h. */ | ||
11019 | _ACEOF | ||
11020 | cat confdefs.h >>conftest.$ac_ext | ||
11021 | cat >>conftest.$ac_ext <<_ACEOF | ||
11022 | /* end confdefs.h. */ | ||
11023 | $ac_includes_default | ||
11024 | int | ||
11025 | main () | ||
11026 | { | ||
11027 | #ifndef strsep | ||
11028 | char *p = (char *) strsep; | ||
11029 | #endif | ||
11030 | |||
11031 | ; | ||
11032 | return 0; | ||
11033 | } | ||
11034 | _ACEOF | ||
11035 | rm -f conftest.$ac_objext | ||
11036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11037 | (eval $ac_compile) 2>conftest.er1 | ||
11038 | ac_status=$? | ||
11039 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11040 | rm -f conftest.er1 | ||
11041 | cat conftest.err >&5 | ||
11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11043 | (exit $ac_status); } && | ||
11044 | { ac_try='test -z "$ac_c_werror_flag" | ||
11045 | || test ! -s conftest.err' | ||
11046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11047 | (eval $ac_try) 2>&5 | ||
11048 | ac_status=$? | ||
11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11050 | (exit $ac_status); }; } && | ||
11051 | { ac_try='test -s conftest.$ac_objext' | ||
11052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11053 | (eval $ac_try) 2>&5 | ||
11054 | ac_status=$? | ||
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11056 | (exit $ac_status); }; }; then | ||
11057 | ac_cv_have_decl_strsep=yes | ||
11058 | else | ||
11059 | echo "$as_me: failed program was:" >&5 | ||
11060 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11061 | |||
11062 | ac_cv_have_decl_strsep=no | ||
11063 | fi | ||
11064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11065 | fi | ||
11066 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
11067 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
11068 | if test $ac_cv_have_decl_strsep = yes; then | ||
11069 | |||
11070 | for ac_func in strsep | ||
11071 | do | ||
11072 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11073 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11074 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11075 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11077 | else | ||
11078 | cat >conftest.$ac_ext <<_ACEOF | ||
11079 | /* confdefs.h. */ | ||
11080 | _ACEOF | ||
11081 | cat confdefs.h >>conftest.$ac_ext | ||
11082 | cat >>conftest.$ac_ext <<_ACEOF | ||
11083 | /* end confdefs.h. */ | ||
11084 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11086 | #define $ac_func innocuous_$ac_func | ||
11087 | |||
11088 | /* System header to define __stub macros and hopefully few prototypes, | ||
11089 | which can conflict with char $ac_func (); below. | ||
11090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11091 | <limits.h> exists even on freestanding compilers. */ | ||
11092 | |||
11093 | #ifdef __STDC__ | ||
11094 | # include <limits.h> | ||
11095 | #else | ||
11096 | # include <assert.h> | ||
11097 | #endif | ||
11098 | |||
11099 | #undef $ac_func | ||
11100 | |||
11101 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11102 | #ifdef __cplusplus | ||
11103 | extern "C" | ||
11104 | { | ||
11105 | #endif | ||
11106 | /* We use char because int might match the return type of a gcc2 | ||
11107 | builtin and then its argument prototype would still apply. */ | ||
11108 | char $ac_func (); | ||
11109 | /* The GNU C library defines this for functions which it implements | ||
11110 | to always fail with ENOSYS. Some functions are actually named | ||
11111 | something starting with __ and the normal name is an alias. */ | ||
11112 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11113 | choke me | ||
11114 | #else | ||
11115 | char (*f) () = $ac_func; | ||
11116 | #endif | ||
11117 | #ifdef __cplusplus | ||
11118 | } | ||
11119 | #endif | ||
11120 | |||
11121 | int | ||
11122 | main () | ||
11123 | { | ||
11124 | return f != $ac_func; | ||
11125 | ; | ||
11126 | return 0; | ||
11127 | } | ||
11128 | _ACEOF | ||
11129 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11131 | (eval $ac_link) 2>conftest.er1 | ||
11132 | ac_status=$? | ||
11133 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11134 | rm -f conftest.er1 | ||
11135 | cat conftest.err >&5 | ||
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11137 | (exit $ac_status); } && | ||
11138 | { ac_try='test -z "$ac_c_werror_flag" | ||
11139 | || test ! -s conftest.err' | ||
11140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11141 | (eval $ac_try) 2>&5 | ||
11142 | ac_status=$? | ||
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11144 | (exit $ac_status); }; } && | ||
11145 | { ac_try='test -s conftest$ac_exeext' | ||
11146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11147 | (eval $ac_try) 2>&5 | ||
11148 | ac_status=$? | ||
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11150 | (exit $ac_status); }; }; then | ||
11151 | eval "$as_ac_var=yes" | ||
11152 | else | ||
11153 | echo "$as_me: failed program was:" >&5 | ||
11154 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11155 | |||
11156 | eval "$as_ac_var=no" | ||
11157 | fi | ||
11158 | rm -f conftest.err conftest.$ac_objext \ | ||
11159 | conftest$ac_exeext conftest.$ac_ext | ||
11160 | fi | ||
11161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11162 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11163 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11164 | cat >>confdefs.h <<_ACEOF | ||
11165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11166 | _ACEOF | ||
11167 | |||
11168 | fi | ||
11169 | done | ||
11170 | |||
11171 | fi | ||
11172 | |||
11173 | echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
11174 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
11175 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
11176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11177 | else | ||
11178 | cat >conftest.$ac_ext <<_ACEOF | ||
11179 | /* confdefs.h. */ | ||
11180 | _ACEOF | ||
11181 | cat confdefs.h >>conftest.$ac_ext | ||
11182 | cat >>conftest.$ac_ext <<_ACEOF | ||
11183 | /* end confdefs.h. */ | ||
11184 | $ac_includes_default | ||
11185 | int | ||
11186 | main () | ||
11187 | { | ||
11188 | #ifndef getrusage | ||
11189 | char *p = (char *) getrusage; | ||
11190 | #endif | ||
11191 | |||
11192 | ; | ||
11193 | return 0; | ||
11194 | } | ||
11195 | _ACEOF | ||
11196 | rm -f conftest.$ac_objext | ||
11197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11198 | (eval $ac_compile) 2>conftest.er1 | ||
11199 | ac_status=$? | ||
11200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11201 | rm -f conftest.er1 | ||
11202 | cat conftest.err >&5 | ||
11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11204 | (exit $ac_status); } && | ||
11205 | { ac_try='test -z "$ac_c_werror_flag" | ||
11206 | || test ! -s conftest.err' | ||
11207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11208 | (eval $ac_try) 2>&5 | ||
11209 | ac_status=$? | ||
11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11211 | (exit $ac_status); }; } && | ||
11212 | { ac_try='test -s conftest.$ac_objext' | ||
11213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11214 | (eval $ac_try) 2>&5 | ||
11215 | ac_status=$? | ||
11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11217 | (exit $ac_status); }; }; then | ||
11218 | ac_cv_have_decl_getrusage=yes | ||
11219 | else | ||
11220 | echo "$as_me: failed program was:" >&5 | ||
11221 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11222 | |||
11223 | ac_cv_have_decl_getrusage=no | ||
11224 | fi | ||
11225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11226 | fi | ||
11227 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
11228 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
11229 | if test $ac_cv_have_decl_getrusage = yes; then | ||
11230 | |||
11231 | for ac_func in getrusage | ||
11232 | do | ||
11233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11238 | else | ||
11239 | cat >conftest.$ac_ext <<_ACEOF | ||
11240 | /* confdefs.h. */ | ||
11241 | _ACEOF | ||
11242 | cat confdefs.h >>conftest.$ac_ext | ||
11243 | cat >>conftest.$ac_ext <<_ACEOF | ||
11244 | /* end confdefs.h. */ | ||
11245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11247 | #define $ac_func innocuous_$ac_func | ||
11248 | |||
11249 | /* System header to define __stub macros and hopefully few prototypes, | ||
11250 | which can conflict with char $ac_func (); below. | ||
11251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11252 | <limits.h> exists even on freestanding compilers. */ | ||
11253 | |||
11254 | #ifdef __STDC__ | ||
11255 | # include <limits.h> | ||
11256 | #else | ||
11257 | # include <assert.h> | ||
11258 | #endif | ||
11259 | |||
11260 | #undef $ac_func | ||
11261 | |||
11262 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11263 | #ifdef __cplusplus | ||
11264 | extern "C" | ||
11265 | { | ||
11266 | #endif | ||
11267 | /* We use char because int might match the return type of a gcc2 | ||
11268 | builtin and then its argument prototype would still apply. */ | ||
11269 | char $ac_func (); | ||
11270 | /* The GNU C library defines this for functions which it implements | ||
11271 | to always fail with ENOSYS. Some functions are actually named | ||
11272 | something starting with __ and the normal name is an alias. */ | ||
11273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11274 | choke me | ||
11275 | #else | ||
11276 | char (*f) () = $ac_func; | ||
11277 | #endif | ||
11278 | #ifdef __cplusplus | ||
11279 | } | ||
11280 | #endif | ||
11281 | |||
11282 | int | ||
11283 | main () | ||
11284 | { | ||
11285 | return f != $ac_func; | ||
11286 | ; | ||
11287 | return 0; | ||
11288 | } | ||
11289 | _ACEOF | ||
11290 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11292 | (eval $ac_link) 2>conftest.er1 | ||
11293 | ac_status=$? | ||
11294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11295 | rm -f conftest.er1 | ||
11296 | cat conftest.err >&5 | ||
11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11298 | (exit $ac_status); } && | ||
11299 | { ac_try='test -z "$ac_c_werror_flag" | ||
11300 | || test ! -s conftest.err' | ||
11301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11302 | (eval $ac_try) 2>&5 | ||
11303 | ac_status=$? | ||
11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11305 | (exit $ac_status); }; } && | ||
11306 | { ac_try='test -s conftest$ac_exeext' | ||
11307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11308 | (eval $ac_try) 2>&5 | ||
11309 | ac_status=$? | ||
11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11311 | (exit $ac_status); }; }; then | ||
11312 | eval "$as_ac_var=yes" | ||
11313 | else | ||
11314 | echo "$as_me: failed program was:" >&5 | ||
11315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11316 | |||
11317 | eval "$as_ac_var=no" | ||
11318 | fi | ||
11319 | rm -f conftest.err conftest.$ac_objext \ | ||
11320 | conftest$ac_exeext conftest.$ac_ext | ||
11321 | fi | ||
11322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11325 | cat >>confdefs.h <<_ACEOF | ||
11326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11327 | _ACEOF | ||
11328 | |||
11329 | fi | ||
11330 | done | ||
11331 | |||
11332 | fi | ||
11333 | |||
11334 | |||
11335 | echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
11336 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
11337 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
11338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11339 | else | ||
11340 | cat >conftest.$ac_ext <<_ACEOF | ||
11341 | /* confdefs.h. */ | ||
11342 | _ACEOF | ||
11343 | cat confdefs.h >>conftest.$ac_ext | ||
11344 | cat >>conftest.$ac_ext <<_ACEOF | ||
11345 | /* end confdefs.h. */ | ||
11346 | #include <termios.h> | ||
11347 | |||
11348 | |||
11349 | int | ||
11350 | main () | ||
11351 | { | ||
11352 | #ifndef tcsendbreak | ||
11353 | char *p = (char *) tcsendbreak; | ||
11354 | #endif | ||
11355 | |||
11356 | ; | ||
11357 | return 0; | ||
11358 | } | ||
11359 | _ACEOF | ||
11360 | rm -f conftest.$ac_objext | ||
11361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11362 | (eval $ac_compile) 2>conftest.er1 | ||
11363 | ac_status=$? | ||
11364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11365 | rm -f conftest.er1 | ||
11366 | cat conftest.err >&5 | ||
11367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11368 | (exit $ac_status); } && | ||
11369 | { ac_try='test -z "$ac_c_werror_flag" | ||
11370 | || test ! -s conftest.err' | ||
11371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11372 | (eval $ac_try) 2>&5 | ||
11373 | ac_status=$? | ||
11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11375 | (exit $ac_status); }; } && | ||
11376 | { ac_try='test -s conftest.$ac_objext' | ||
11377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11378 | (eval $ac_try) 2>&5 | ||
11379 | ac_status=$? | ||
11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11381 | (exit $ac_status); }; }; then | ||
11382 | ac_cv_have_decl_tcsendbreak=yes | ||
11383 | else | ||
11384 | echo "$as_me: failed program was:" >&5 | ||
11385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11386 | |||
11387 | ac_cv_have_decl_tcsendbreak=no | ||
11388 | fi | ||
11389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11390 | fi | ||
11391 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
11392 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
11393 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
11394 | cat >>confdefs.h <<\_ACEOF | ||
11395 | #define HAVE_TCSENDBREAK 1 | ||
11396 | _ACEOF | ||
11397 | |||
11398 | else | ||
11399 | |||
11400 | for ac_func in tcsendbreak | ||
11401 | do | ||
11402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11407 | else | ||
11408 | cat >conftest.$ac_ext <<_ACEOF | ||
11409 | /* confdefs.h. */ | ||
11410 | _ACEOF | ||
11411 | cat confdefs.h >>conftest.$ac_ext | ||
11412 | cat >>conftest.$ac_ext <<_ACEOF | ||
11413 | /* end confdefs.h. */ | ||
11414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11416 | #define $ac_func innocuous_$ac_func | ||
11417 | |||
11418 | /* System header to define __stub macros and hopefully few prototypes, | ||
11419 | which can conflict with char $ac_func (); below. | ||
11420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11421 | <limits.h> exists even on freestanding compilers. */ | ||
11422 | |||
11423 | #ifdef __STDC__ | ||
11424 | # include <limits.h> | ||
11425 | #else | ||
11426 | # include <assert.h> | ||
11427 | #endif | ||
11428 | |||
11429 | #undef $ac_func | ||
11430 | |||
11431 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11432 | #ifdef __cplusplus | ||
11433 | extern "C" | ||
11434 | { | ||
11435 | #endif | ||
11436 | /* We use char because int might match the return type of a gcc2 | ||
11437 | builtin and then its argument prototype would still apply. */ | ||
11438 | char $ac_func (); | ||
11439 | /* The GNU C library defines this for functions which it implements | ||
11440 | to always fail with ENOSYS. Some functions are actually named | ||
11441 | something starting with __ and the normal name is an alias. */ | ||
11442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11443 | choke me | ||
11444 | #else | ||
11445 | char (*f) () = $ac_func; | ||
11446 | #endif | ||
11447 | #ifdef __cplusplus | ||
11448 | } | ||
11449 | #endif | ||
11450 | |||
11451 | int | ||
11452 | main () | ||
11453 | { | ||
11454 | return f != $ac_func; | ||
11455 | ; | ||
11456 | return 0; | ||
11457 | } | ||
11458 | _ACEOF | ||
11459 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11461 | (eval $ac_link) 2>conftest.er1 | ||
11462 | ac_status=$? | ||
11463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11464 | rm -f conftest.er1 | ||
11465 | cat conftest.err >&5 | ||
11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11467 | (exit $ac_status); } && | ||
11468 | { ac_try='test -z "$ac_c_werror_flag" | ||
11469 | || test ! -s conftest.err' | ||
11470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11471 | (eval $ac_try) 2>&5 | ||
11472 | ac_status=$? | ||
11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11474 | (exit $ac_status); }; } && | ||
11475 | { ac_try='test -s conftest$ac_exeext' | ||
11476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11477 | (eval $ac_try) 2>&5 | ||
11478 | ac_status=$? | ||
11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11480 | (exit $ac_status); }; }; then | ||
11481 | eval "$as_ac_var=yes" | ||
11482 | else | ||
11483 | echo "$as_me: failed program was:" >&5 | ||
11484 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11485 | |||
11486 | eval "$as_ac_var=no" | ||
11487 | fi | ||
11488 | rm -f conftest.err conftest.$ac_objext \ | ||
11489 | conftest$ac_exeext conftest.$ac_ext | ||
11490 | fi | ||
11491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11494 | cat >>confdefs.h <<_ACEOF | ||
11495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11496 | _ACEOF | ||
11497 | |||
11498 | fi | ||
11499 | done | ||
11500 | |||
11501 | fi | ||
11502 | |||
11503 | |||
11504 | echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
11505 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6 | ||
11506 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
11507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11508 | else | ||
11509 | cat >conftest.$ac_ext <<_ACEOF | ||
11510 | /* confdefs.h. */ | ||
11511 | _ACEOF | ||
11512 | cat confdefs.h >>conftest.$ac_ext | ||
11513 | cat >>conftest.$ac_ext <<_ACEOF | ||
11514 | /* end confdefs.h. */ | ||
11515 | #include <netdb.h> | ||
11516 | |||
11517 | int | ||
11518 | main () | ||
11519 | { | ||
11520 | #ifndef h_errno | ||
11521 | char *p = (char *) h_errno; | ||
11522 | #endif | ||
11523 | |||
11524 | ; | ||
11525 | return 0; | ||
11526 | } | ||
11527 | _ACEOF | ||
11528 | rm -f conftest.$ac_objext | ||
11529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11530 | (eval $ac_compile) 2>conftest.er1 | ||
11531 | ac_status=$? | ||
11532 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11533 | rm -f conftest.er1 | ||
11534 | cat conftest.err >&5 | ||
11535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11536 | (exit $ac_status); } && | ||
11537 | { ac_try='test -z "$ac_c_werror_flag" | ||
11538 | || test ! -s conftest.err' | ||
11539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11540 | (eval $ac_try) 2>&5 | ||
11541 | ac_status=$? | ||
11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11543 | (exit $ac_status); }; } && | ||
11544 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
11550 | ac_cv_have_decl_h_errno=yes | ||
11551 | else | ||
11552 | echo "$as_me: failed program was:" >&5 | ||
11553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11554 | |||
11555 | ac_cv_have_decl_h_errno=no | ||
11556 | fi | ||
11557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11558 | fi | ||
11559 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
11560 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6 | ||
11561 | if test $ac_cv_have_decl_h_errno = yes; then | ||
11562 | |||
11563 | cat >>confdefs.h <<_ACEOF | ||
11564 | #define HAVE_DECL_H_ERRNO 1 | ||
11565 | _ACEOF | ||
11566 | |||
11567 | |||
11568 | else | ||
11569 | cat >>confdefs.h <<_ACEOF | ||
11570 | #define HAVE_DECL_H_ERRNO 0 | ||
11571 | _ACEOF | ||
11572 | |||
11573 | |||
11574 | fi | ||
11575 | |||
11576 | |||
11577 | |||
11578 | |||
11579 | for ac_func in setresuid | ||
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 | echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
11678 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
11679 | if test "$cross_compiling" = yes; then | ||
11680 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
11681 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11682 | |||
11683 | else | ||
11684 | cat >conftest.$ac_ext <<_ACEOF | ||
11685 | /* confdefs.h. */ | ||
11686 | _ACEOF | ||
11687 | cat confdefs.h >>conftest.$ac_ext | ||
11688 | cat >>conftest.$ac_ext <<_ACEOF | ||
11689 | /* end confdefs.h. */ | ||
11690 | |||
11691 | #include <stdlib.h> | ||
11692 | #include <errno.h> | ||
11693 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
11694 | |||
11695 | _ACEOF | ||
11696 | rm -f conftest$ac_exeext | ||
11697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11698 | (eval $ac_link) 2>&5 | ||
11699 | ac_status=$? | ||
11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11703 | (eval $ac_try) 2>&5 | ||
11704 | ac_status=$? | ||
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11706 | (exit $ac_status); }; }; then | ||
11707 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11708 | echo "${ECHO_T}yes" >&6 | ||
11709 | else | ||
11710 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11711 | echo "$as_me: failed program was:" >&5 | ||
11712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11713 | |||
11714 | ( exit $ac_status ) | ||
11715 | cat >>confdefs.h <<\_ACEOF | ||
11716 | #define BROKEN_SETRESUID 1 | ||
11717 | _ACEOF | ||
11718 | |||
11719 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
11720 | echo "${ECHO_T}not implemented" >&6 | ||
11721 | fi | ||
11722 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11723 | fi | ||
11724 | |||
11725 | fi | ||
11726 | done | ||
11727 | |||
11728 | |||
11729 | |||
11730 | for ac_func in setresgid | ||
11731 | do | ||
11732 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11733 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11734 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11735 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11737 | else | ||
11738 | cat >conftest.$ac_ext <<_ACEOF | ||
11739 | /* confdefs.h. */ | ||
11740 | _ACEOF | ||
11741 | cat confdefs.h >>conftest.$ac_ext | ||
11742 | cat >>conftest.$ac_ext <<_ACEOF | ||
11743 | /* end confdefs.h. */ | ||
11744 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11745 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11746 | #define $ac_func innocuous_$ac_func | ||
11747 | |||
11748 | /* System header to define __stub macros and hopefully few prototypes, | ||
11749 | which can conflict with char $ac_func (); below. | ||
11750 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11751 | <limits.h> exists even on freestanding compilers. */ | ||
11752 | |||
11753 | #ifdef __STDC__ | ||
11754 | # include <limits.h> | ||
11755 | #else | ||
11756 | # include <assert.h> | ||
11757 | #endif | ||
11758 | |||
11759 | #undef $ac_func | ||
11760 | |||
11761 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11762 | #ifdef __cplusplus | ||
11763 | extern "C" | ||
11764 | { | ||
11765 | #endif | ||
11766 | /* We use char because int might match the return type of a gcc2 | ||
11767 | builtin and then its argument prototype would still apply. */ | ||
11768 | char $ac_func (); | ||
11769 | /* The GNU C library defines this for functions which it implements | ||
11770 | to always fail with ENOSYS. Some functions are actually named | ||
11771 | something starting with __ and the normal name is an alias. */ | ||
11772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11773 | choke me | ||
11774 | #else | ||
11775 | char (*f) () = $ac_func; | ||
11776 | #endif | ||
11777 | #ifdef __cplusplus | ||
11778 | } | ||
11779 | #endif | ||
11780 | |||
11781 | int | ||
11782 | main () | ||
11783 | { | ||
11784 | return f != $ac_func; | ||
11785 | ; | ||
11786 | return 0; | ||
11787 | } | ||
11788 | _ACEOF | ||
11789 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11791 | (eval $ac_link) 2>conftest.er1 | ||
11792 | ac_status=$? | ||
11793 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11794 | rm -f conftest.er1 | ||
11795 | cat conftest.err >&5 | ||
11796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11797 | (exit $ac_status); } && | ||
11798 | { ac_try='test -z "$ac_c_werror_flag" | ||
11799 | || test ! -s conftest.err' | ||
11800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11801 | (eval $ac_try) 2>&5 | ||
11802 | ac_status=$? | ||
11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11804 | (exit $ac_status); }; } && | ||
11805 | { ac_try='test -s conftest$ac_exeext' | ||
11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11807 | (eval $ac_try) 2>&5 | ||
11808 | ac_status=$? | ||
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11810 | (exit $ac_status); }; }; then | ||
11811 | eval "$as_ac_var=yes" | ||
11812 | else | ||
11813 | echo "$as_me: failed program was:" >&5 | ||
11814 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11815 | |||
11816 | eval "$as_ac_var=no" | ||
11817 | fi | ||
11818 | rm -f conftest.err conftest.$ac_objext \ | ||
11819 | conftest$ac_exeext conftest.$ac_ext | ||
11820 | fi | ||
11821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11822 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11824 | cat >>confdefs.h <<_ACEOF | ||
11825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11826 | _ACEOF | ||
11827 | |||
11828 | echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
11829 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
11830 | if test "$cross_compiling" = yes; then | ||
11831 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
11832 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11833 | |||
11834 | else | ||
11835 | cat >conftest.$ac_ext <<_ACEOF | ||
11836 | /* confdefs.h. */ | ||
11837 | _ACEOF | ||
11838 | cat confdefs.h >>conftest.$ac_ext | ||
11839 | cat >>conftest.$ac_ext <<_ACEOF | ||
11840 | /* end confdefs.h. */ | ||
11841 | |||
11842 | #include <stdlib.h> | ||
11843 | #include <errno.h> | ||
11844 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
11845 | |||
11846 | _ACEOF | ||
11847 | rm -f conftest$ac_exeext | ||
11848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11849 | (eval $ac_link) 2>&5 | ||
11850 | ac_status=$? | ||
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11854 | (eval $ac_try) 2>&5 | ||
11855 | ac_status=$? | ||
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11857 | (exit $ac_status); }; }; then | ||
11858 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11859 | echo "${ECHO_T}yes" >&6 | ||
11860 | else | ||
11861 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11862 | echo "$as_me: failed program was:" >&5 | ||
11863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11864 | |||
11865 | ( exit $ac_status ) | ||
11866 | cat >>confdefs.h <<\_ACEOF | ||
11867 | #define BROKEN_SETRESGID 1 | ||
11868 | _ACEOF | ||
11869 | |||
11870 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
11871 | echo "${ECHO_T}not implemented" >&6 | ||
11872 | fi | ||
11873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11874 | fi | ||
11875 | |||
11876 | fi | ||
11877 | done | ||
11878 | |||
11879 | |||
11880 | |||
11881 | |||
11882 | for ac_func in gettimeofday time | ||
11883 | do | ||
11884 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11885 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11886 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11887 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11889 | else | ||
11890 | cat >conftest.$ac_ext <<_ACEOF | ||
11891 | /* confdefs.h. */ | ||
11892 | _ACEOF | ||
11893 | cat confdefs.h >>conftest.$ac_ext | ||
11894 | cat >>conftest.$ac_ext <<_ACEOF | ||
11895 | /* end confdefs.h. */ | ||
11896 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11898 | #define $ac_func innocuous_$ac_func | ||
11899 | |||
11900 | /* System header to define __stub macros and hopefully few prototypes, | ||
11901 | which can conflict with char $ac_func (); below. | ||
11902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11903 | <limits.h> exists even on freestanding compilers. */ | ||
11904 | |||
11905 | #ifdef __STDC__ | ||
11906 | # include <limits.h> | ||
11907 | #else | ||
11908 | # include <assert.h> | ||
11909 | #endif | ||
11910 | |||
11911 | #undef $ac_func | ||
11912 | |||
11913 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11914 | #ifdef __cplusplus | ||
11915 | extern "C" | ||
11916 | { | ||
11917 | #endif | ||
11918 | /* We use char because int might match the return type of a gcc2 | ||
11919 | builtin and then its argument prototype would still apply. */ | ||
11920 | char $ac_func (); | ||
11921 | /* The GNU C library defines this for functions which it implements | ||
11922 | to always fail with ENOSYS. Some functions are actually named | ||
11923 | something starting with __ and the normal name is an alias. */ | ||
11924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11925 | choke me | ||
11926 | #else | ||
11927 | char (*f) () = $ac_func; | ||
11928 | #endif | ||
11929 | #ifdef __cplusplus | ||
11930 | } | ||
11931 | #endif | ||
11932 | |||
11933 | int | ||
11934 | main () | ||
11935 | { | ||
11936 | return f != $ac_func; | ||
11937 | ; | ||
11938 | return 0; | ||
11939 | } | ||
11940 | _ACEOF | ||
11941 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11943 | (eval $ac_link) 2>conftest.er1 | ||
11944 | ac_status=$? | ||
11945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11946 | rm -f conftest.er1 | ||
11947 | cat conftest.err >&5 | ||
11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11949 | (exit $ac_status); } && | ||
11950 | { ac_try='test -z "$ac_c_werror_flag" | ||
11951 | || test ! -s conftest.err' | ||
11952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11953 | (eval $ac_try) 2>&5 | ||
11954 | ac_status=$? | ||
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11956 | (exit $ac_status); }; } && | ||
11957 | { ac_try='test -s conftest$ac_exeext' | ||
11958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11959 | (eval $ac_try) 2>&5 | ||
11960 | ac_status=$? | ||
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11962 | (exit $ac_status); }; }; then | ||
11963 | eval "$as_ac_var=yes" | ||
11964 | else | ||
11965 | echo "$as_me: failed program was:" >&5 | ||
11966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11967 | |||
11968 | eval "$as_ac_var=no" | ||
11969 | fi | ||
11970 | rm -f conftest.err conftest.$ac_objext \ | ||
11971 | conftest$ac_exeext conftest.$ac_ext | ||
11972 | fi | ||
11973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11974 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11975 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11976 | cat >>confdefs.h <<_ACEOF | ||
11977 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11978 | _ACEOF | ||
11979 | |||
11980 | fi | ||
11981 | done | ||
11982 | |||
11983 | |||
11984 | |||
11985 | |||
11986 | |||
11987 | |||
11988 | |||
11989 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11990 | do | ||
11991 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11992 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11993 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11994 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11996 | else | ||
11997 | cat >conftest.$ac_ext <<_ACEOF | ||
11998 | /* confdefs.h. */ | ||
11999 | _ACEOF | ||
12000 | cat confdefs.h >>conftest.$ac_ext | ||
12001 | cat >>conftest.$ac_ext <<_ACEOF | ||
12002 | /* end confdefs.h. */ | ||
12003 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12005 | #define $ac_func innocuous_$ac_func | ||
12006 | |||
12007 | /* System header to define __stub macros and hopefully few prototypes, | ||
12008 | which can conflict with char $ac_func (); below. | ||
12009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12010 | <limits.h> exists even on freestanding compilers. */ | ||
12011 | |||
12012 | #ifdef __STDC__ | ||
12013 | # include <limits.h> | ||
12014 | #else | ||
12015 | # include <assert.h> | ||
12016 | #endif | ||
12017 | |||
12018 | #undef $ac_func | ||
12019 | |||
12020 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12021 | #ifdef __cplusplus | ||
12022 | extern "C" | ||
12023 | { | ||
12024 | #endif | ||
12025 | /* We use char because int might match the return type of a gcc2 | ||
12026 | builtin and then its argument prototype would still apply. */ | ||
12027 | char $ac_func (); | ||
12028 | /* The GNU C library defines this for functions which it implements | ||
12029 | to always fail with ENOSYS. Some functions are actually named | ||
12030 | something starting with __ and the normal name is an alias. */ | ||
12031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12032 | choke me | ||
12033 | #else | ||
12034 | char (*f) () = $ac_func; | ||
12035 | #endif | ||
12036 | #ifdef __cplusplus | ||
12037 | } | ||
12038 | #endif | ||
12039 | |||
12040 | int | ||
12041 | main () | ||
12042 | { | ||
12043 | return f != $ac_func; | ||
12044 | ; | ||
12045 | return 0; | ||
12046 | } | ||
12047 | _ACEOF | ||
12048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12050 | (eval $ac_link) 2>conftest.er1 | ||
12051 | ac_status=$? | ||
12052 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12053 | rm -f conftest.er1 | ||
12054 | cat conftest.err >&5 | ||
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12056 | (exit $ac_status); } && | ||
12057 | { ac_try='test -z "$ac_c_werror_flag" | ||
12058 | || test ! -s conftest.err' | ||
12059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12060 | (eval $ac_try) 2>&5 | ||
12061 | ac_status=$? | ||
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12063 | (exit $ac_status); }; } && | ||
12064 | { ac_try='test -s conftest$ac_exeext' | ||
12065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12066 | (eval $ac_try) 2>&5 | ||
12067 | ac_status=$? | ||
12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12069 | (exit $ac_status); }; }; then | ||
12070 | eval "$as_ac_var=yes" | ||
12071 | else | ||
12072 | echo "$as_me: failed program was:" >&5 | ||
12073 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12074 | |||
12075 | eval "$as_ac_var=no" | ||
12076 | fi | ||
12077 | rm -f conftest.err conftest.$ac_objext \ | ||
12078 | conftest$ac_exeext conftest.$ac_ext | ||
12079 | fi | ||
12080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12081 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12082 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12083 | cat >>confdefs.h <<_ACEOF | ||
12084 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12085 | _ACEOF | ||
12086 | |||
12087 | fi | ||
12088 | done | ||
12089 | |||
12090 | |||
12091 | for ac_func in utmpname | ||
12092 | do | ||
12093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12098 | else | ||
12099 | cat >conftest.$ac_ext <<_ACEOF | ||
12100 | /* confdefs.h. */ | ||
12101 | _ACEOF | ||
12102 | cat confdefs.h >>conftest.$ac_ext | ||
12103 | cat >>conftest.$ac_ext <<_ACEOF | ||
12104 | /* end confdefs.h. */ | ||
12105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12107 | #define $ac_func innocuous_$ac_func | ||
12108 | |||
12109 | /* System header to define __stub macros and hopefully few prototypes, | ||
12110 | which can conflict with char $ac_func (); below. | ||
12111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12112 | <limits.h> exists even on freestanding compilers. */ | ||
12113 | |||
12114 | #ifdef __STDC__ | ||
12115 | # include <limits.h> | ||
12116 | #else | ||
12117 | # include <assert.h> | ||
12118 | #endif | ||
12119 | |||
12120 | #undef $ac_func | ||
12121 | |||
12122 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12123 | #ifdef __cplusplus | ||
12124 | extern "C" | ||
12125 | { | ||
12126 | #endif | ||
12127 | /* We use char because int might match the return type of a gcc2 | ||
12128 | builtin and then its argument prototype would still apply. */ | ||
12129 | char $ac_func (); | ||
12130 | /* The GNU C library defines this for functions which it implements | ||
12131 | to always fail with ENOSYS. Some functions are actually named | ||
12132 | something starting with __ and the normal name is an alias. */ | ||
12133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12134 | choke me | ||
12135 | #else | ||
12136 | char (*f) () = $ac_func; | ||
12137 | #endif | ||
12138 | #ifdef __cplusplus | ||
12139 | } | ||
12140 | #endif | ||
12141 | |||
12142 | int | ||
12143 | main () | ||
12144 | { | ||
12145 | return f != $ac_func; | ||
12146 | ; | ||
12147 | return 0; | ||
12148 | } | ||
12149 | _ACEOF | ||
12150 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12152 | (eval $ac_link) 2>conftest.er1 | ||
12153 | ac_status=$? | ||
12154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12155 | rm -f conftest.er1 | ||
12156 | cat conftest.err >&5 | ||
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12158 | (exit $ac_status); } && | ||
12159 | { ac_try='test -z "$ac_c_werror_flag" | ||
12160 | || test ! -s conftest.err' | ||
12161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12162 | (eval $ac_try) 2>&5 | ||
12163 | ac_status=$? | ||
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12165 | (exit $ac_status); }; } && | ||
12166 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
12172 | eval "$as_ac_var=yes" | ||
12173 | else | ||
12174 | echo "$as_me: failed program was:" >&5 | ||
12175 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12176 | |||
12177 | eval "$as_ac_var=no" | ||
12178 | fi | ||
12179 | rm -f conftest.err conftest.$ac_objext \ | ||
12180 | conftest$ac_exeext conftest.$ac_ext | ||
12181 | fi | ||
12182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12183 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12184 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12185 | cat >>confdefs.h <<_ACEOF | ||
12186 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12187 | _ACEOF | ||
12188 | |||
12189 | fi | ||
12190 | done | ||
12191 | |||
12192 | |||
12193 | |||
12194 | |||
12195 | |||
12196 | |||
12197 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
12198 | do | ||
12199 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12200 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12201 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12202 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12204 | else | ||
12205 | cat >conftest.$ac_ext <<_ACEOF | ||
12206 | /* confdefs.h. */ | ||
12207 | _ACEOF | ||
12208 | cat confdefs.h >>conftest.$ac_ext | ||
12209 | cat >>conftest.$ac_ext <<_ACEOF | ||
12210 | /* end confdefs.h. */ | ||
12211 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12212 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12213 | #define $ac_func innocuous_$ac_func | ||
12214 | |||
12215 | /* System header to define __stub macros and hopefully few prototypes, | ||
12216 | which can conflict with char $ac_func (); below. | ||
12217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12218 | <limits.h> exists even on freestanding compilers. */ | ||
12219 | |||
12220 | #ifdef __STDC__ | ||
12221 | # include <limits.h> | ||
12222 | #else | ||
12223 | # include <assert.h> | ||
12224 | #endif | ||
12225 | |||
12226 | #undef $ac_func | ||
12227 | |||
12228 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12229 | #ifdef __cplusplus | ||
12230 | extern "C" | ||
12231 | { | ||
12232 | #endif | ||
12233 | /* We use char because int might match the return type of a gcc2 | ||
12234 | builtin and then its argument prototype would still apply. */ | ||
12235 | char $ac_func (); | ||
12236 | /* The GNU C library defines this for functions which it implements | ||
12237 | to always fail with ENOSYS. Some functions are actually named | ||
12238 | something starting with __ and the normal name is an alias. */ | ||
12239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12240 | choke me | ||
12241 | #else | ||
12242 | char (*f) () = $ac_func; | ||
12243 | #endif | ||
12244 | #ifdef __cplusplus | ||
12245 | } | ||
12246 | #endif | ||
12247 | |||
12248 | int | ||
12249 | main () | ||
12250 | { | ||
12251 | return f != $ac_func; | ||
12252 | ; | ||
12253 | return 0; | ||
12254 | } | ||
12255 | _ACEOF | ||
12256 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12258 | (eval $ac_link) 2>conftest.er1 | ||
12259 | ac_status=$? | ||
12260 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12261 | rm -f conftest.er1 | ||
12262 | cat conftest.err >&5 | ||
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12264 | (exit $ac_status); } && | ||
12265 | { ac_try='test -z "$ac_c_werror_flag" | ||
12266 | || test ! -s conftest.err' | ||
12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12268 | (eval $ac_try) 2>&5 | ||
12269 | ac_status=$? | ||
12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12271 | (exit $ac_status); }; } && | ||
12272 | { ac_try='test -s conftest$ac_exeext' | ||
12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12274 | (eval $ac_try) 2>&5 | ||
12275 | ac_status=$? | ||
12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12277 | (exit $ac_status); }; }; then | ||
12278 | eval "$as_ac_var=yes" | ||
12279 | else | ||
12280 | echo "$as_me: failed program was:" >&5 | ||
12281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12282 | |||
12283 | eval "$as_ac_var=no" | ||
12284 | fi | ||
12285 | rm -f conftest.err conftest.$ac_objext \ | ||
12286 | conftest$ac_exeext conftest.$ac_ext | ||
12287 | fi | ||
12288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12289 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12290 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12291 | cat >>confdefs.h <<_ACEOF | ||
12292 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12293 | _ACEOF | ||
12294 | |||
12295 | fi | ||
12296 | done | ||
12297 | |||
12298 | |||
12299 | |||
12300 | for ac_func in setutxent utmpxname | ||
12301 | do | ||
12302 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12303 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12304 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12305 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12307 | else | ||
12308 | cat >conftest.$ac_ext <<_ACEOF | ||
12309 | /* confdefs.h. */ | ||
12310 | _ACEOF | ||
12311 | cat confdefs.h >>conftest.$ac_ext | ||
12312 | cat >>conftest.$ac_ext <<_ACEOF | ||
12313 | /* end confdefs.h. */ | ||
12314 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12315 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12316 | #define $ac_func innocuous_$ac_func | ||
12317 | |||
12318 | /* System header to define __stub macros and hopefully few prototypes, | ||
12319 | which can conflict with char $ac_func (); below. | ||
12320 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12321 | <limits.h> exists even on freestanding compilers. */ | ||
12322 | |||
12323 | #ifdef __STDC__ | ||
12324 | # include <limits.h> | ||
12325 | #else | ||
12326 | # include <assert.h> | ||
12327 | #endif | ||
12328 | |||
12329 | #undef $ac_func | ||
12330 | |||
12331 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12332 | #ifdef __cplusplus | ||
12333 | extern "C" | ||
12334 | { | ||
12335 | #endif | ||
12336 | /* We use char because int might match the return type of a gcc2 | ||
12337 | builtin and then its argument prototype would still apply. */ | ||
12338 | char $ac_func (); | ||
12339 | /* The GNU C library defines this for functions which it implements | ||
12340 | to always fail with ENOSYS. Some functions are actually named | ||
12341 | something starting with __ and the normal name is an alias. */ | ||
12342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12343 | choke me | ||
12344 | #else | ||
12345 | char (*f) () = $ac_func; | ||
12346 | #endif | ||
12347 | #ifdef __cplusplus | ||
12348 | } | ||
12349 | #endif | ||
12350 | |||
12351 | int | ||
12352 | main () | ||
12353 | { | ||
12354 | return f != $ac_func; | ||
12355 | ; | ||
12356 | return 0; | ||
12357 | } | ||
12358 | _ACEOF | ||
12359 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12361 | (eval $ac_link) 2>conftest.er1 | ||
12362 | ac_status=$? | ||
12363 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12364 | rm -f conftest.er1 | ||
12365 | cat conftest.err >&5 | ||
12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12367 | (exit $ac_status); } && | ||
12368 | { ac_try='test -z "$ac_c_werror_flag" | ||
12369 | || test ! -s conftest.err' | ||
12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12371 | (eval $ac_try) 2>&5 | ||
12372 | ac_status=$? | ||
12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12374 | (exit $ac_status); }; } && | ||
12375 | { ac_try='test -s conftest$ac_exeext' | ||
12376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12377 | (eval $ac_try) 2>&5 | ||
12378 | ac_status=$? | ||
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12380 | (exit $ac_status); }; }; then | ||
12381 | eval "$as_ac_var=yes" | ||
12382 | else | ||
12383 | echo "$as_me: failed program was:" >&5 | ||
12384 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12385 | |||
12386 | eval "$as_ac_var=no" | ||
12387 | fi | ||
12388 | rm -f conftest.err conftest.$ac_objext \ | ||
12389 | conftest$ac_exeext conftest.$ac_ext | ||
12390 | fi | ||
12391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12392 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12393 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12394 | cat >>confdefs.h <<_ACEOF | ||
12395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12396 | _ACEOF | ||
12397 | |||
12398 | fi | ||
12399 | done | ||
12400 | |||
12401 | |||
12402 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
12403 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
12404 | if test "${ac_cv_func_daemon+set}" = set; then | ||
12405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12406 | else | ||
12407 | cat >conftest.$ac_ext <<_ACEOF | ||
12408 | /* confdefs.h. */ | ||
12409 | _ACEOF | ||
12410 | cat confdefs.h >>conftest.$ac_ext | ||
12411 | cat >>conftest.$ac_ext <<_ACEOF | ||
12412 | /* end confdefs.h. */ | ||
12413 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
12414 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12415 | #define daemon innocuous_daemon | ||
12416 | |||
12417 | /* System header to define __stub macros and hopefully few prototypes, | ||
12418 | which can conflict with char daemon (); below. | ||
12419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12420 | <limits.h> exists even on freestanding compilers. */ | ||
12421 | |||
12422 | #ifdef __STDC__ | ||
12423 | # include <limits.h> | ||
12424 | #else | ||
12425 | # include <assert.h> | ||
12426 | #endif | ||
12427 | |||
12428 | #undef daemon | ||
12429 | |||
12430 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12431 | #ifdef __cplusplus | ||
12432 | extern "C" | ||
12433 | { | ||
12434 | #endif | ||
12435 | /* We use char because int might match the return type of a gcc2 | ||
12436 | builtin and then its argument prototype would still apply. */ | ||
12437 | char daemon (); | ||
12438 | /* The GNU C library defines this for functions which it implements | ||
12439 | to always fail with ENOSYS. Some functions are actually named | ||
12440 | something starting with __ and the normal name is an alias. */ | ||
12441 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
12442 | choke me | ||
12443 | #else | ||
12444 | char (*f) () = daemon; | ||
12445 | #endif | ||
12446 | #ifdef __cplusplus | ||
12447 | } | ||
12448 | #endif | ||
12449 | |||
12450 | int | ||
12451 | main () | ||
12452 | { | ||
12453 | return f != daemon; | ||
12454 | ; | ||
12455 | return 0; | ||
12456 | } | ||
12457 | _ACEOF | ||
12458 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12460 | (eval $ac_link) 2>conftest.er1 | ||
12461 | ac_status=$? | ||
12462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12463 | rm -f conftest.er1 | ||
12464 | cat conftest.err >&5 | ||
12465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12466 | (exit $ac_status); } && | ||
12467 | { ac_try='test -z "$ac_c_werror_flag" | ||
12468 | || test ! -s conftest.err' | ||
12469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12470 | (eval $ac_try) 2>&5 | ||
12471 | ac_status=$? | ||
12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12473 | (exit $ac_status); }; } && | ||
12474 | { ac_try='test -s conftest$ac_exeext' | ||
12475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12476 | (eval $ac_try) 2>&5 | ||
12477 | ac_status=$? | ||
12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12479 | (exit $ac_status); }; }; then | ||
12480 | ac_cv_func_daemon=yes | ||
12481 | else | ||
12482 | echo "$as_me: failed program was:" >&5 | ||
12483 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12484 | |||
12485 | ac_cv_func_daemon=no | ||
12486 | fi | ||
12487 | rm -f conftest.err conftest.$ac_objext \ | ||
12488 | conftest$ac_exeext conftest.$ac_ext | ||
12489 | fi | ||
12490 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
12491 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
12492 | if test $ac_cv_func_daemon = yes; then | ||
12493 | cat >>confdefs.h <<\_ACEOF | ||
12494 | #define HAVE_DAEMON 1 | ||
12495 | _ACEOF | ||
12496 | |||
12497 | else | ||
12498 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
12499 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
12500 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
12501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12502 | else | ||
12503 | ac_check_lib_save_LIBS=$LIBS | ||
12504 | LIBS="-lbsd $LIBS" | ||
12505 | cat >conftest.$ac_ext <<_ACEOF | ||
12506 | /* confdefs.h. */ | ||
12507 | _ACEOF | ||
12508 | cat confdefs.h >>conftest.$ac_ext | ||
12509 | cat >>conftest.$ac_ext <<_ACEOF | ||
12510 | /* end confdefs.h. */ | ||
12511 | |||
12512 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12513 | #ifdef __cplusplus | ||
12514 | extern "C" | ||
12515 | #endif | ||
12516 | /* We use char because int might match the return type of a gcc2 | ||
12517 | builtin and then its argument prototype would still apply. */ | ||
12518 | char daemon (); | ||
12519 | int | ||
12520 | main () | ||
12521 | { | ||
12522 | daemon (); | ||
12523 | ; | ||
12524 | return 0; | ||
12525 | } | ||
12526 | _ACEOF | ||
12527 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12529 | (eval $ac_link) 2>conftest.er1 | ||
12530 | ac_status=$? | ||
12531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12532 | rm -f conftest.er1 | ||
12533 | cat conftest.err >&5 | ||
12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12535 | (exit $ac_status); } && | ||
12536 | { ac_try='test -z "$ac_c_werror_flag" | ||
12537 | || test ! -s conftest.err' | ||
12538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12539 | (eval $ac_try) 2>&5 | ||
12540 | ac_status=$? | ||
12541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12542 | (exit $ac_status); }; } && | ||
12543 | { ac_try='test -s conftest$ac_exeext' | ||
12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12545 | (eval $ac_try) 2>&5 | ||
12546 | ac_status=$? | ||
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12548 | (exit $ac_status); }; }; then | ||
12549 | ac_cv_lib_bsd_daemon=yes | ||
12550 | else | ||
12551 | echo "$as_me: failed program was:" >&5 | ||
12552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12553 | |||
12554 | ac_cv_lib_bsd_daemon=no | ||
12555 | fi | ||
12556 | rm -f conftest.err conftest.$ac_objext \ | ||
12557 | conftest$ac_exeext conftest.$ac_ext | ||
12558 | LIBS=$ac_check_lib_save_LIBS | ||
12559 | fi | ||
12560 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
12561 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
12562 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
12563 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
12564 | #define HAVE_DAEMON 1 | ||
12565 | _ACEOF | ||
12566 | |||
12567 | fi | ||
12568 | |||
12569 | |||
12570 | fi | ||
12571 | |||
12572 | |||
12573 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
12574 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
12575 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
12576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12577 | else | ||
12578 | cat >conftest.$ac_ext <<_ACEOF | ||
12579 | /* confdefs.h. */ | ||
12580 | _ACEOF | ||
12581 | cat confdefs.h >>conftest.$ac_ext | ||
12582 | cat >>conftest.$ac_ext <<_ACEOF | ||
12583 | /* end confdefs.h. */ | ||
12584 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
12585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12586 | #define getpagesize innocuous_getpagesize | ||
12587 | |||
12588 | /* System header to define __stub macros and hopefully few prototypes, | ||
12589 | which can conflict with char getpagesize (); below. | ||
12590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12591 | <limits.h> exists even on freestanding compilers. */ | ||
12592 | |||
12593 | #ifdef __STDC__ | ||
12594 | # include <limits.h> | ||
12595 | #else | ||
12596 | # include <assert.h> | ||
12597 | #endif | ||
12598 | |||
12599 | #undef getpagesize | ||
12600 | |||
12601 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12602 | #ifdef __cplusplus | ||
12603 | extern "C" | ||
12604 | { | ||
12605 | #endif | ||
12606 | /* We use char because int might match the return type of a gcc2 | ||
12607 | builtin and then its argument prototype would still apply. */ | ||
12608 | char getpagesize (); | ||
12609 | /* The GNU C library defines this for functions which it implements | ||
12610 | to always fail with ENOSYS. Some functions are actually named | ||
12611 | something starting with __ and the normal name is an alias. */ | ||
12612 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
12613 | choke me | ||
12614 | #else | ||
12615 | char (*f) () = getpagesize; | ||
12616 | #endif | ||
12617 | #ifdef __cplusplus | ||
12618 | } | ||
12619 | #endif | ||
12620 | |||
12621 | int | ||
12622 | main () | ||
12623 | { | ||
12624 | return f != getpagesize; | ||
12625 | ; | ||
12626 | return 0; | ||
12627 | } | ||
12628 | _ACEOF | ||
12629 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12631 | (eval $ac_link) 2>conftest.er1 | ||
12632 | ac_status=$? | ||
12633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12634 | rm -f conftest.er1 | ||
12635 | cat conftest.err >&5 | ||
12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12637 | (exit $ac_status); } && | ||
12638 | { ac_try='test -z "$ac_c_werror_flag" | ||
12639 | || test ! -s conftest.err' | ||
12640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12641 | (eval $ac_try) 2>&5 | ||
12642 | ac_status=$? | ||
12643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12644 | (exit $ac_status); }; } && | ||
12645 | { ac_try='test -s conftest$ac_exeext' | ||
12646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12647 | (eval $ac_try) 2>&5 | ||
12648 | ac_status=$? | ||
12649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12650 | (exit $ac_status); }; }; then | ||
12651 | ac_cv_func_getpagesize=yes | ||
12652 | else | ||
12653 | echo "$as_me: failed program was:" >&5 | ||
12654 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12655 | |||
12656 | ac_cv_func_getpagesize=no | ||
12657 | fi | ||
12658 | rm -f conftest.err conftest.$ac_objext \ | ||
12659 | conftest$ac_exeext conftest.$ac_ext | ||
12660 | fi | ||
12661 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
12662 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
12663 | if test $ac_cv_func_getpagesize = yes; then | ||
12664 | cat >>confdefs.h <<\_ACEOF | ||
12665 | #define HAVE_GETPAGESIZE 1 | ||
12666 | _ACEOF | ||
12667 | |||
12668 | else | ||
12669 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
12670 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
12671 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
12672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12673 | else | ||
12674 | ac_check_lib_save_LIBS=$LIBS | ||
12675 | LIBS="-lucb $LIBS" | ||
12676 | cat >conftest.$ac_ext <<_ACEOF | ||
12677 | /* confdefs.h. */ | ||
12678 | _ACEOF | ||
12679 | cat confdefs.h >>conftest.$ac_ext | ||
12680 | cat >>conftest.$ac_ext <<_ACEOF | ||
12681 | /* end confdefs.h. */ | ||
12682 | |||
12683 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12684 | #ifdef __cplusplus | ||
12685 | extern "C" | ||
12686 | #endif | ||
12687 | /* We use char because int might match the return type of a gcc2 | ||
12688 | builtin and then its argument prototype would still apply. */ | ||
12689 | char getpagesize (); | ||
12690 | int | ||
12691 | main () | ||
12692 | { | ||
12693 | getpagesize (); | ||
12694 | ; | ||
12695 | return 0; | ||
12696 | } | ||
12697 | _ACEOF | ||
12698 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12700 | (eval $ac_link) 2>conftest.er1 | ||
12701 | ac_status=$? | ||
12702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12703 | rm -f conftest.er1 | ||
12704 | cat conftest.err >&5 | ||
12705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12706 | (exit $ac_status); } && | ||
12707 | { ac_try='test -z "$ac_c_werror_flag" | ||
12708 | || test ! -s conftest.err' | ||
12709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12710 | (eval $ac_try) 2>&5 | ||
12711 | ac_status=$? | ||
12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12713 | (exit $ac_status); }; } && | ||
12714 | { ac_try='test -s conftest$ac_exeext' | ||
12715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12716 | (eval $ac_try) 2>&5 | ||
12717 | ac_status=$? | ||
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12719 | (exit $ac_status); }; }; then | ||
12720 | ac_cv_lib_ucb_getpagesize=yes | ||
12721 | else | ||
12722 | echo "$as_me: failed program was:" >&5 | ||
12723 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12724 | |||
12725 | ac_cv_lib_ucb_getpagesize=no | ||
12726 | fi | ||
12727 | rm -f conftest.err conftest.$ac_objext \ | ||
12728 | conftest$ac_exeext conftest.$ac_ext | ||
12729 | LIBS=$ac_check_lib_save_LIBS | ||
12730 | fi | ||
12731 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
12732 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
12733 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
12734 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
12735 | #define HAVE_GETPAGESIZE 1 | ||
12736 | _ACEOF | ||
12737 | |||
12738 | fi | ||
12739 | |||
12740 | |||
12741 | fi | ||
12742 | |||
12743 | |||
12744 | # Check for broken snprintf | ||
12745 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12746 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
12747 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
12748 | if test "$cross_compiling" = yes; then | ||
12749 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12750 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12751 | |||
12752 | else | ||
12753 | cat >conftest.$ac_ext <<_ACEOF | ||
12754 | /* confdefs.h. */ | ||
12755 | _ACEOF | ||
12756 | cat confdefs.h >>conftest.$ac_ext | ||
12757 | cat >>conftest.$ac_ext <<_ACEOF | ||
12758 | /* end confdefs.h. */ | ||
12759 | |||
12760 | #include <stdio.h> | ||
12761 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
12762 | |||
12763 | _ACEOF | ||
12764 | rm -f conftest$ac_exeext | ||
12765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12766 | (eval $ac_link) 2>&5 | ||
12767 | ac_status=$? | ||
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12769 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12771 | (eval $ac_try) 2>&5 | ||
12772 | ac_status=$? | ||
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12774 | (exit $ac_status); }; }; then | ||
12775 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12776 | echo "${ECHO_T}yes" >&6 | ||
12777 | else | ||
12778 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12779 | echo "$as_me: failed program was:" >&5 | ||
12780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12781 | |||
12782 | ( exit $ac_status ) | ||
12783 | |||
12784 | echo "$as_me:$LINENO: result: no" >&5 | ||
12785 | echo "${ECHO_T}no" >&6 | ||
12786 | cat >>confdefs.h <<\_ACEOF | ||
12787 | #define BROKEN_SNPRINTF 1 | ||
12788 | _ACEOF | ||
12789 | |||
12790 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
12791 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
12792 | |||
12793 | fi | ||
12794 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12795 | fi | ||
12796 | fi | ||
12797 | |||
12798 | # Check for missing getpeereid (or equiv) support | ||
12799 | NO_PEERCHECK="" | ||
12800 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
12801 | echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
12802 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6 | ||
12803 | cat >conftest.$ac_ext <<_ACEOF | ||
12804 | /* confdefs.h. */ | ||
12805 | _ACEOF | ||
12806 | cat confdefs.h >>conftest.$ac_ext | ||
12807 | cat >>conftest.$ac_ext <<_ACEOF | ||
12808 | /* end confdefs.h. */ | ||
12809 | #include <sys/types.h> | ||
12810 | #include <sys/socket.h> | ||
12811 | int | ||
12812 | main () | ||
12813 | { | ||
12814 | int i = SO_PEERCRED; | ||
12815 | ; | ||
12816 | return 0; | ||
12817 | } | ||
12818 | _ACEOF | ||
12819 | rm -f conftest.$ac_objext | ||
12820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12821 | (eval $ac_compile) 2>conftest.er1 | ||
12822 | ac_status=$? | ||
12823 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12824 | rm -f conftest.er1 | ||
12825 | cat conftest.err >&5 | ||
12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12827 | (exit $ac_status); } && | ||
12828 | { ac_try='test -z "$ac_c_werror_flag" | ||
12829 | || test ! -s conftest.err' | ||
12830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12831 | (eval $ac_try) 2>&5 | ||
12832 | ac_status=$? | ||
12833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12834 | (exit $ac_status); }; } && | ||
12835 | { ac_try='test -s conftest.$ac_objext' | ||
12836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12837 | (eval $ac_try) 2>&5 | ||
12838 | ac_status=$? | ||
12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12840 | (exit $ac_status); }; }; then | ||
12841 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12842 | echo "${ECHO_T}yes" >&6 | ||
12843 | |||
12844 | cat >>confdefs.h <<\_ACEOF | ||
12845 | #define HAVE_SO_PEERCRED | ||
12846 | _ACEOF | ||
12847 | |||
12848 | |||
12849 | else | ||
12850 | echo "$as_me: failed program was:" >&5 | ||
12851 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12852 | |||
12853 | echo "$as_me:$LINENO: result: no" >&5 | ||
12854 | echo "${ECHO_T}no" >&6 | ||
12855 | NO_PEERCHECK=1 | ||
12856 | |||
12857 | fi | ||
12858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12859 | fi | ||
12860 | |||
12861 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
12862 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
12863 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
12864 | if test "$cross_compiling" = yes; then | ||
12865 | |||
12866 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12867 | echo "${ECHO_T}yes" >&6 | ||
12868 | cat >>confdefs.h <<\_ACEOF | ||
12869 | #define HAVE_STRICT_MKSTEMP 1 | ||
12870 | _ACEOF | ||
12871 | |||
12872 | |||
12873 | |||
12874 | else | ||
12875 | cat >conftest.$ac_ext <<_ACEOF | ||
12876 | /* confdefs.h. */ | ||
12877 | _ACEOF | ||
12878 | cat confdefs.h >>conftest.$ac_ext | ||
12879 | cat >>conftest.$ac_ext <<_ACEOF | ||
12880 | /* end confdefs.h. */ | ||
12881 | |||
12882 | #include <stdlib.h> | ||
12883 | main() { char template[]="conftest.mkstemp-test"; | ||
12884 | if (mkstemp(template) == -1) | ||
12885 | exit(1); | ||
12886 | unlink(template); exit(0); | ||
12887 | } | ||
12888 | |||
12889 | _ACEOF | ||
12890 | rm -f conftest$ac_exeext | ||
12891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12892 | (eval $ac_link) 2>&5 | ||
12893 | ac_status=$? | ||
12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12897 | (eval $ac_try) 2>&5 | ||
12898 | ac_status=$? | ||
12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12900 | (exit $ac_status); }; }; then | ||
12901 | |||
12902 | echo "$as_me:$LINENO: result: no" >&5 | ||
12903 | echo "${ECHO_T}no" >&6 | ||
12904 | |||
12905 | else | ||
12906 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12907 | echo "$as_me: failed program was:" >&5 | ||
12908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12909 | |||
12910 | ( exit $ac_status ) | ||
12911 | |||
12912 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12913 | echo "${ECHO_T}yes" >&6 | ||
12914 | cat >>confdefs.h <<\_ACEOF | ||
12915 | #define HAVE_STRICT_MKSTEMP 1 | ||
12916 | _ACEOF | ||
12917 | |||
12918 | |||
12919 | fi | ||
12920 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12921 | fi | ||
12922 | fi | ||
12923 | |||
12924 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12925 | echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
12926 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
12927 | if test "$cross_compiling" = yes; then | ||
12928 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12929 | See \`config.log' for more details." >&5 | ||
12930 | echo "$as_me: error: cannot run test program while cross compiling | ||
12931 | See \`config.log' for more details." >&2;} | ||
12932 | { (exit 1); exit 1; }; } | ||
12933 | else | ||
12934 | cat >conftest.$ac_ext <<_ACEOF | ||
12935 | /* confdefs.h. */ | ||
12936 | _ACEOF | ||
12937 | cat confdefs.h >>conftest.$ac_ext | ||
12938 | cat >>conftest.$ac_ext <<_ACEOF | ||
12939 | /* end confdefs.h. */ | ||
12940 | |||
12941 | #include <stdio.h> | ||
12942 | #include <sys/fcntl.h> | ||
12943 | #include <sys/types.h> | ||
12944 | #include <sys/wait.h> | ||
12945 | |||
12946 | int | ||
12947 | main() | ||
12948 | { | ||
12949 | pid_t pid; | ||
12950 | int fd, ptyfd, ttyfd, status; | ||
12951 | |||
12952 | pid = fork(); | ||
12953 | if (pid < 0) { /* failed */ | ||
12954 | exit(1); | ||
12955 | } else if (pid > 0) { /* parent */ | ||
12956 | waitpid(pid, &status, 0); | ||
12957 | if (WIFEXITED(status)) | ||
12958 | exit(WEXITSTATUS(status)); | ||
12959 | else | ||
12960 | exit(2); | ||
12961 | } else { /* child */ | ||
12962 | close(0); close(1); close(2); | ||
12963 | setsid(); | ||
12964 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12965 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12966 | if (fd >= 0) | ||
12967 | exit(3); /* Acquired ctty: broken */ | ||
12968 | else | ||
12969 | exit(0); /* Did not acquire ctty: OK */ | ||
12970 | } | ||
12971 | } | ||
12972 | |||
12973 | _ACEOF | ||
12974 | rm -f conftest$ac_exeext | ||
12975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12976 | (eval $ac_link) 2>&5 | ||
12977 | ac_status=$? | ||
12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12981 | (eval $ac_try) 2>&5 | ||
12982 | ac_status=$? | ||
12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12984 | (exit $ac_status); }; }; then | ||
12985 | |||
12986 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12987 | echo "${ECHO_T}yes" >&6 | ||
12988 | |||
12989 | else | ||
12990 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12991 | echo "$as_me: failed program was:" >&5 | ||
12992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12993 | |||
12994 | ( exit $ac_status ) | ||
12995 | |||
12996 | echo "$as_me:$LINENO: result: no" >&5 | ||
12997 | echo "${ECHO_T}no" >&6 | ||
12998 | cat >>confdefs.h <<\_ACEOF | ||
12999 | #define SSHD_ACQUIRES_CTTY 1 | ||
13000 | _ACEOF | ||
13001 | |||
13002 | |||
13003 | |||
13004 | fi | ||
13005 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13006 | fi | ||
13007 | fi | ||
13008 | |||
13009 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
13010 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
13011 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
13012 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
13013 | if test "$cross_compiling" = yes; then | ||
13014 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13015 | See \`config.log' for more details." >&5 | ||
13016 | echo "$as_me: error: cannot run test program while cross compiling | ||
13017 | See \`config.log' for more details." >&2;} | ||
13018 | { (exit 1); exit 1; }; } | ||
13019 | else | ||
13020 | cat >conftest.$ac_ext <<_ACEOF | ||
13021 | /* confdefs.h. */ | ||
13022 | _ACEOF | ||
13023 | cat confdefs.h >>conftest.$ac_ext | ||
13024 | cat >>conftest.$ac_ext <<_ACEOF | ||
13025 | /* end confdefs.h. */ | ||
13026 | |||
13027 | #include <stdio.h> | ||
13028 | #include <sys/socket.h> | ||
13029 | #include <netdb.h> | ||
13030 | #include <errno.h> | ||
13031 | #include <netinet/in.h> | ||
13032 | |||
13033 | #define TEST_PORT "2222" | ||
13034 | |||
13035 | int | ||
13036 | main(void) | ||
13037 | { | ||
13038 | int err, sock; | ||
13039 | struct addrinfo *gai_ai, *ai, hints; | ||
13040 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
13041 | |||
13042 | memset(&hints, 0, sizeof(hints)); | ||
13043 | hints.ai_family = PF_UNSPEC; | ||
13044 | hints.ai_socktype = SOCK_STREAM; | ||
13045 | hints.ai_flags = AI_PASSIVE; | ||
13046 | |||
13047 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
13048 | if (err != 0) { | ||
13049 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
13050 | exit(1); | ||
13051 | } | ||
13052 | |||
13053 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
13054 | if (ai->ai_family != AF_INET6) | ||
13055 | continue; | ||
13056 | |||
13057 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
13058 | sizeof(ntop), strport, sizeof(strport), | ||
13059 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
13060 | |||
13061 | if (err != 0) { | ||
13062 | if (err == EAI_SYSTEM) | ||
13063 | perror("getnameinfo EAI_SYSTEM"); | ||
13064 | else | ||
13065 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
13066 | gai_strerror(err)); | ||
13067 | exit(2); | ||
13068 | } | ||
13069 | |||
13070 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
13071 | if (sock < 0) | ||
13072 | perror("socket"); | ||
13073 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
13074 | if (errno == EBADF) | ||
13075 | exit(3); | ||
13076 | } | ||
13077 | } | ||
13078 | exit(0); | ||
13079 | } | ||
13080 | |||
13081 | _ACEOF | ||
13082 | rm -f conftest$ac_exeext | ||
13083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13084 | (eval $ac_link) 2>&5 | ||
13085 | ac_status=$? | ||
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13087 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13089 | (eval $ac_try) 2>&5 | ||
13090 | ac_status=$? | ||
13091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13092 | (exit $ac_status); }; }; then | ||
13093 | |||
13094 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13095 | echo "${ECHO_T}yes" >&6 | ||
13096 | |||
13097 | else | ||
13098 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13099 | echo "$as_me: failed program was:" >&5 | ||
13100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13101 | |||
13102 | ( exit $ac_status ) | ||
13103 | |||
13104 | echo "$as_me:$LINENO: result: no" >&5 | ||
13105 | echo "${ECHO_T}no" >&6 | ||
13106 | cat >>confdefs.h <<\_ACEOF | ||
13107 | #define BROKEN_GETADDRINFO 1 | ||
13108 | _ACEOF | ||
13109 | |||
13110 | |||
13111 | |||
13112 | fi | ||
13113 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13114 | fi | ||
13115 | fi | ||
13116 | |||
13117 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
13118 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
13119 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
13120 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
13121 | if test "$cross_compiling" = yes; then | ||
13122 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13123 | See \`config.log' for more details." >&5 | ||
13124 | echo "$as_me: error: cannot run test program while cross compiling | ||
13125 | See \`config.log' for more details." >&2;} | ||
13126 | { (exit 1); exit 1; }; } | ||
13127 | else | ||
13128 | cat >conftest.$ac_ext <<_ACEOF | ||
13129 | /* confdefs.h. */ | ||
13130 | _ACEOF | ||
13131 | cat confdefs.h >>conftest.$ac_ext | ||
13132 | cat >>conftest.$ac_ext <<_ACEOF | ||
13133 | /* end confdefs.h. */ | ||
13134 | |||
13135 | #include <stdio.h> | ||
13136 | #include <sys/socket.h> | ||
13137 | #include <netdb.h> | ||
13138 | #include <errno.h> | ||
13139 | #include <netinet/in.h> | ||
13140 | |||
13141 | #define TEST_PORT "2222" | ||
13142 | |||
13143 | int | ||
13144 | main(void) | ||
13145 | { | ||
13146 | int err, sock; | ||
13147 | struct addrinfo *gai_ai, *ai, hints; | ||
13148 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
13149 | |||
13150 | memset(&hints, 0, sizeof(hints)); | ||
13151 | hints.ai_family = PF_UNSPEC; | ||
13152 | hints.ai_socktype = SOCK_STREAM; | ||
13153 | hints.ai_flags = AI_PASSIVE; | ||
13154 | |||
13155 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
13156 | if (err != 0) { | ||
13157 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
13158 | exit(1); | ||
13159 | } | ||
13160 | |||
13161 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
13162 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
13163 | continue; | ||
13164 | |||
13165 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
13166 | sizeof(ntop), strport, sizeof(strport), | ||
13167 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
13168 | |||
13169 | if (ai->ai_family == AF_INET && err != 0) { | ||
13170 | perror("getnameinfo"); | ||
13171 | exit(2); | ||
13172 | } | ||
13173 | } | ||
13174 | exit(0); | ||
13175 | } | ||
13176 | |||
13177 | _ACEOF | ||
13178 | rm -f conftest$ac_exeext | ||
13179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13180 | (eval $ac_link) 2>&5 | ||
13181 | ac_status=$? | ||
13182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13185 | (eval $ac_try) 2>&5 | ||
13186 | ac_status=$? | ||
13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13188 | (exit $ac_status); }; }; then | ||
13189 | |||
13190 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13191 | echo "${ECHO_T}yes" >&6 | ||
13192 | |||
13193 | cat >>confdefs.h <<\_ACEOF | ||
13194 | #define AIX_GETNAMEINFO_HACK | ||
13195 | _ACEOF | ||
13196 | |||
13197 | |||
13198 | else | ||
13199 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13200 | echo "$as_me: failed program was:" >&5 | ||
13201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13202 | |||
13203 | ( exit $ac_status ) | ||
13204 | |||
13205 | echo "$as_me:$LINENO: result: no" >&5 | ||
13206 | echo "${ECHO_T}no" >&6 | ||
13207 | cat >>confdefs.h <<\_ACEOF | ||
13208 | #define BROKEN_GETADDRINFO 1 | ||
13209 | _ACEOF | ||
13210 | |||
13211 | |||
13212 | |||
13213 | fi | ||
13214 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13215 | fi | ||
13216 | fi | ||
13217 | |||
13218 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
13219 | echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
13220 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6 | ||
13221 | cat >conftest.$ac_ext <<_ACEOF | ||
13222 | |||
13223 | #include <shadow.h> | ||
13224 | int main(void) {exit(0);} | ||
13225 | |||
13226 | _ACEOF | ||
13227 | rm -f conftest.$ac_objext | ||
13228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13229 | (eval $ac_compile) 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_objext' | ||
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 | |||
13250 | echo "$as_me:$LINENO: result: no" >&5 | ||
13251 | echo "${ECHO_T}no" >&6 | ||
13252 | |||
13253 | else | ||
13254 | echo "$as_me: failed program was:" >&5 | ||
13255 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13256 | |||
13257 | |||
13258 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13259 | echo "${ECHO_T}yes" >&6 | ||
13260 | |||
13261 | cat >>confdefs.h <<\_ACEOF | ||
13262 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
13263 | _ACEOF | ||
13264 | |||
13265 | |||
13266 | |||
13267 | fi | ||
13268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13269 | fi | ||
13270 | |||
13271 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
13272 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
13273 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
13274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13275 | else | ||
13276 | # Use it with a single arg. | ||
13277 | cat >conftest.$ac_ext <<_ACEOF | ||
13278 | /* confdefs.h. */ | ||
13279 | _ACEOF | ||
13280 | cat confdefs.h >>conftest.$ac_ext | ||
13281 | cat >>conftest.$ac_ext <<_ACEOF | ||
13282 | /* end confdefs.h. */ | ||
13283 | $ac_includes_default | ||
13284 | int | ||
13285 | main () | ||
13286 | { | ||
13287 | getpgrp (0); | ||
13288 | ; | ||
13289 | return 0; | ||
13290 | } | ||
13291 | _ACEOF | ||
13292 | rm -f conftest.$ac_objext | ||
13293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13294 | (eval $ac_compile) 2>conftest.er1 | ||
13295 | ac_status=$? | ||
13296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13297 | rm -f conftest.er1 | ||
13298 | cat conftest.err >&5 | ||
13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13300 | (exit $ac_status); } && | ||
13301 | { ac_try='test -z "$ac_c_werror_flag" | ||
13302 | || test ! -s conftest.err' | ||
13303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13304 | (eval $ac_try) 2>&5 | ||
13305 | ac_status=$? | ||
13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13307 | (exit $ac_status); }; } && | ||
13308 | { ac_try='test -s conftest.$ac_objext' | ||
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13310 | (eval $ac_try) 2>&5 | ||
13311 | ac_status=$? | ||
13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13313 | (exit $ac_status); }; }; then | ||
13314 | ac_cv_func_getpgrp_void=no | ||
13315 | else | ||
13316 | echo "$as_me: failed program was:" >&5 | ||
13317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13318 | |||
13319 | ac_cv_func_getpgrp_void=yes | ||
13320 | fi | ||
13321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13322 | |||
13323 | fi | ||
13324 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
13325 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
13326 | if test $ac_cv_func_getpgrp_void = yes; then | ||
13327 | |||
13328 | cat >>confdefs.h <<\_ACEOF | ||
13329 | #define GETPGRP_VOID 1 | ||
13330 | _ACEOF | ||
13331 | |||
13332 | fi | ||
13333 | |||
13334 | |||
13335 | # Check for PAM libs | ||
13336 | PAM_MSG="no" | ||
13337 | |||
13338 | # Check whether --with-pam or --without-pam was given. | ||
13339 | if test "${with_pam+set}" = set; then | ||
13340 | withval="$with_pam" | ||
13341 | |||
13342 | if test "x$withval" != "xno" ; then | ||
13343 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
13344 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
13345 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
13346 | echo "$as_me: error: PAM headers not found" >&2;} | ||
13347 | { (exit 1); exit 1; }; } | ||
13348 | fi | ||
13349 | |||
13350 | |||
13351 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
13352 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
13353 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13355 | else | ||
13356 | ac_check_lib_save_LIBS=$LIBS | ||
13357 | LIBS="-ldl $LIBS" | ||
13358 | cat >conftest.$ac_ext <<_ACEOF | ||
13359 | /* confdefs.h. */ | ||
13360 | _ACEOF | ||
13361 | cat confdefs.h >>conftest.$ac_ext | ||
13362 | cat >>conftest.$ac_ext <<_ACEOF | ||
13363 | /* end confdefs.h. */ | ||
13364 | |||
13365 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13366 | #ifdef __cplusplus | ||
13367 | extern "C" | ||
13368 | #endif | ||
13369 | /* We use char because int might match the return type of a gcc2 | ||
13370 | builtin and then its argument prototype would still apply. */ | ||
13371 | char dlopen (); | ||
13372 | int | ||
13373 | main () | ||
13374 | { | ||
13375 | dlopen (); | ||
13376 | ; | ||
13377 | return 0; | ||
13378 | } | ||
13379 | _ACEOF | ||
13380 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13382 | (eval $ac_link) 2>conftest.er1 | ||
13383 | ac_status=$? | ||
13384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13385 | rm -f conftest.er1 | ||
13386 | cat conftest.err >&5 | ||
13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13388 | (exit $ac_status); } && | ||
13389 | { ac_try='test -z "$ac_c_werror_flag" | ||
13390 | || test ! -s conftest.err' | ||
13391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13392 | (eval $ac_try) 2>&5 | ||
13393 | ac_status=$? | ||
13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13395 | (exit $ac_status); }; } && | ||
13396 | { ac_try='test -s conftest$ac_exeext' | ||
13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13398 | (eval $ac_try) 2>&5 | ||
13399 | ac_status=$? | ||
13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13401 | (exit $ac_status); }; }; then | ||
13402 | ac_cv_lib_dl_dlopen=yes | ||
13403 | else | ||
13404 | echo "$as_me: failed program was:" >&5 | ||
13405 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13406 | |||
13407 | ac_cv_lib_dl_dlopen=no | ||
13408 | fi | ||
13409 | rm -f conftest.err conftest.$ac_objext \ | ||
13410 | conftest$ac_exeext conftest.$ac_ext | ||
13411 | LIBS=$ac_check_lib_save_LIBS | ||
13412 | fi | ||
13413 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13414 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
13415 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13416 | cat >>confdefs.h <<_ACEOF | ||
13417 | #define HAVE_LIBDL 1 | ||
13418 | _ACEOF | ||
13419 | |||
13420 | LIBS="-ldl $LIBS" | ||
13421 | |||
13422 | fi | ||
13423 | |||
13424 | |||
13425 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
13426 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
13427 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13429 | else | ||
13430 | ac_check_lib_save_LIBS=$LIBS | ||
13431 | LIBS="-lpam $LIBS" | ||
13432 | cat >conftest.$ac_ext <<_ACEOF | ||
13433 | /* confdefs.h. */ | ||
13434 | _ACEOF | ||
13435 | cat confdefs.h >>conftest.$ac_ext | ||
13436 | cat >>conftest.$ac_ext <<_ACEOF | ||
13437 | /* end confdefs.h. */ | ||
13438 | |||
13439 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13440 | #ifdef __cplusplus | ||
13441 | extern "C" | ||
13442 | #endif | ||
13443 | /* We use char because int might match the return type of a gcc2 | ||
13444 | builtin and then its argument prototype would still apply. */ | ||
13445 | char pam_set_item (); | ||
13446 | int | ||
13447 | main () | ||
13448 | { | ||
13449 | pam_set_item (); | ||
13450 | ; | ||
13451 | return 0; | ||
13452 | } | ||
13453 | _ACEOF | ||
13454 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13456 | (eval $ac_link) 2>conftest.er1 | ||
13457 | ac_status=$? | ||
13458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13459 | rm -f conftest.er1 | ||
13460 | cat conftest.err >&5 | ||
13461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13462 | (exit $ac_status); } && | ||
13463 | { ac_try='test -z "$ac_c_werror_flag" | ||
13464 | || test ! -s conftest.err' | ||
13465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13466 | (eval $ac_try) 2>&5 | ||
13467 | ac_status=$? | ||
13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13469 | (exit $ac_status); }; } && | ||
13470 | { ac_try='test -s conftest$ac_exeext' | ||
13471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13472 | (eval $ac_try) 2>&5 | ||
13473 | ac_status=$? | ||
13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13475 | (exit $ac_status); }; }; then | ||
13476 | ac_cv_lib_pam_pam_set_item=yes | ||
13477 | else | ||
13478 | echo "$as_me: failed program was:" >&5 | ||
13479 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13480 | |||
13481 | ac_cv_lib_pam_pam_set_item=no | ||
13482 | fi | ||
13483 | rm -f conftest.err conftest.$ac_objext \ | ||
13484 | conftest$ac_exeext conftest.$ac_ext | ||
13485 | LIBS=$ac_check_lib_save_LIBS | ||
13486 | fi | ||
13487 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13488 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
13489 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
13490 | cat >>confdefs.h <<_ACEOF | ||
13491 | #define HAVE_LIBPAM 1 | ||
13492 | _ACEOF | ||
13493 | |||
13494 | LIBS="-lpam $LIBS" | ||
13495 | |||
13496 | else | ||
13497 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
13498 | echo "$as_me: error: *** libpam missing" >&2;} | ||
13499 | { (exit 1); exit 1; }; } | ||
13500 | fi | ||
13501 | |||
13502 | |||
13503 | for ac_func in pam_getenvlist | ||
13504 | do | ||
13505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13506 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13508 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13510 | else | ||
13511 | cat >conftest.$ac_ext <<_ACEOF | ||
13512 | /* confdefs.h. */ | ||
13513 | _ACEOF | ||
13514 | cat confdefs.h >>conftest.$ac_ext | ||
13515 | cat >>conftest.$ac_ext <<_ACEOF | ||
13516 | /* end confdefs.h. */ | ||
13517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13519 | #define $ac_func innocuous_$ac_func | ||
13520 | |||
13521 | /* System header to define __stub macros and hopefully few prototypes, | ||
13522 | which can conflict with char $ac_func (); below. | ||
13523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13524 | <limits.h> exists even on freestanding compilers. */ | ||
13525 | |||
13526 | #ifdef __STDC__ | ||
13527 | # include <limits.h> | ||
13528 | #else | ||
13529 | # include <assert.h> | ||
13530 | #endif | ||
13531 | |||
13532 | #undef $ac_func | ||
13533 | |||
13534 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13535 | #ifdef __cplusplus | ||
13536 | extern "C" | ||
13537 | { | ||
13538 | #endif | ||
13539 | /* We use char because int might match the return type of a gcc2 | ||
13540 | builtin and then its argument prototype would still apply. */ | ||
13541 | char $ac_func (); | ||
13542 | /* The GNU C library defines this for functions which it implements | ||
13543 | to always fail with ENOSYS. Some functions are actually named | ||
13544 | something starting with __ and the normal name is an alias. */ | ||
13545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13546 | choke me | ||
13547 | #else | ||
13548 | char (*f) () = $ac_func; | ||
13549 | #endif | ||
13550 | #ifdef __cplusplus | ||
13551 | } | ||
13552 | #endif | ||
13553 | |||
13554 | int | ||
13555 | main () | ||
13556 | { | ||
13557 | return f != $ac_func; | ||
13558 | ; | ||
13559 | return 0; | ||
13560 | } | ||
13561 | _ACEOF | ||
13562 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13564 | (eval $ac_link) 2>conftest.er1 | ||
13565 | ac_status=$? | ||
13566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13567 | rm -f conftest.er1 | ||
13568 | cat conftest.err >&5 | ||
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13570 | (exit $ac_status); } && | ||
13571 | { ac_try='test -z "$ac_c_werror_flag" | ||
13572 | || test ! -s conftest.err' | ||
13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13574 | (eval $ac_try) 2>&5 | ||
13575 | ac_status=$? | ||
13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13577 | (exit $ac_status); }; } && | ||
13578 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
13584 | eval "$as_ac_var=yes" | ||
13585 | else | ||
13586 | echo "$as_me: failed program was:" >&5 | ||
13587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13588 | |||
13589 | eval "$as_ac_var=no" | ||
13590 | fi | ||
13591 | rm -f conftest.err conftest.$ac_objext \ | ||
13592 | conftest$ac_exeext conftest.$ac_ext | ||
13593 | fi | ||
13594 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13595 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13596 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13597 | cat >>confdefs.h <<_ACEOF | ||
13598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13599 | _ACEOF | ||
13600 | |||
13601 | fi | ||
13602 | done | ||
13603 | |||
13604 | |||
13605 | for ac_func in pam_putenv | ||
13606 | do | ||
13607 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13608 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13609 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13610 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13612 | else | ||
13613 | cat >conftest.$ac_ext <<_ACEOF | ||
13614 | /* confdefs.h. */ | ||
13615 | _ACEOF | ||
13616 | cat confdefs.h >>conftest.$ac_ext | ||
13617 | cat >>conftest.$ac_ext <<_ACEOF | ||
13618 | /* end confdefs.h. */ | ||
13619 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13620 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13621 | #define $ac_func innocuous_$ac_func | ||
13622 | |||
13623 | /* System header to define __stub macros and hopefully few prototypes, | ||
13624 | which can conflict with char $ac_func (); below. | ||
13625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13626 | <limits.h> exists even on freestanding compilers. */ | ||
13627 | |||
13628 | #ifdef __STDC__ | ||
13629 | # include <limits.h> | ||
13630 | #else | ||
13631 | # include <assert.h> | ||
13632 | #endif | ||
13633 | |||
13634 | #undef $ac_func | ||
13635 | |||
13636 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13637 | #ifdef __cplusplus | ||
13638 | extern "C" | ||
13639 | { | ||
13640 | #endif | ||
13641 | /* We use char because int might match the return type of a gcc2 | ||
13642 | builtin and then its argument prototype would still apply. */ | ||
13643 | char $ac_func (); | ||
13644 | /* The GNU C library defines this for functions which it implements | ||
13645 | to always fail with ENOSYS. Some functions are actually named | ||
13646 | something starting with __ and the normal name is an alias. */ | ||
13647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13648 | choke me | ||
13649 | #else | ||
13650 | char (*f) () = $ac_func; | ||
13651 | #endif | ||
13652 | #ifdef __cplusplus | ||
13653 | } | ||
13654 | #endif | ||
13655 | |||
13656 | int | ||
13657 | main () | ||
13658 | { | ||
13659 | return f != $ac_func; | ||
13660 | ; | ||
13661 | return 0; | ||
13662 | } | ||
13663 | _ACEOF | ||
13664 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13666 | (eval $ac_link) 2>conftest.er1 | ||
13667 | ac_status=$? | ||
13668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13669 | rm -f conftest.er1 | ||
13670 | cat conftest.err >&5 | ||
13671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13672 | (exit $ac_status); } && | ||
13673 | { ac_try='test -z "$ac_c_werror_flag" | ||
13674 | || test ! -s conftest.err' | ||
13675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13676 | (eval $ac_try) 2>&5 | ||
13677 | ac_status=$? | ||
13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13679 | (exit $ac_status); }; } && | ||
13680 | { ac_try='test -s conftest$ac_exeext' | ||
13681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13682 | (eval $ac_try) 2>&5 | ||
13683 | ac_status=$? | ||
13684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13685 | (exit $ac_status); }; }; then | ||
13686 | eval "$as_ac_var=yes" | ||
13687 | else | ||
13688 | echo "$as_me: failed program was:" >&5 | ||
13689 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13690 | |||
13691 | eval "$as_ac_var=no" | ||
13692 | fi | ||
13693 | rm -f conftest.err conftest.$ac_objext \ | ||
13694 | conftest$ac_exeext conftest.$ac_ext | ||
13695 | fi | ||
13696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13697 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13698 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13699 | cat >>confdefs.h <<_ACEOF | ||
13700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13701 | _ACEOF | ||
13702 | |||
13703 | fi | ||
13704 | done | ||
13705 | |||
13706 | |||
13707 | PAM_MSG="yes" | ||
13708 | |||
13709 | cat >>confdefs.h <<\_ACEOF | ||
13710 | #define USE_PAM 1 | ||
13711 | _ACEOF | ||
13712 | |||
13713 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13714 | LIBPAM="-lpam -ldl" | ||
13715 | else | ||
13716 | LIBPAM="-lpam" | ||
13717 | fi | ||
13718 | |||
13719 | fi | ||
13720 | |||
13721 | |||
13722 | fi; | ||
13723 | |||
13724 | # Check for older PAM | ||
13725 | if test "x$PAM_MSG" = "xyes" ; then | ||
13726 | # Check PAM strerror arguments (old PAM) | ||
13727 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
13728 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
13729 | cat >conftest.$ac_ext <<_ACEOF | ||
13730 | /* confdefs.h. */ | ||
13731 | _ACEOF | ||
13732 | cat confdefs.h >>conftest.$ac_ext | ||
13733 | cat >>conftest.$ac_ext <<_ACEOF | ||
13734 | /* end confdefs.h. */ | ||
13735 | |||
13736 | #include <stdlib.h> | ||
13737 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
13738 | #include <security/pam_appl.h> | ||
13739 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
13740 | #include <pam/pam_appl.h> | ||
13741 | #endif | ||
13742 | |||
13743 | int | ||
13744 | main () | ||
13745 | { | ||
13746 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
13747 | ; | ||
13748 | return 0; | ||
13749 | } | ||
13750 | _ACEOF | ||
13751 | rm -f conftest.$ac_objext | ||
13752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13753 | (eval $ac_compile) 2>conftest.er1 | ||
13754 | ac_status=$? | ||
13755 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13756 | rm -f conftest.er1 | ||
13757 | cat conftest.err >&5 | ||
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13759 | (exit $ac_status); } && | ||
13760 | { ac_try='test -z "$ac_c_werror_flag" | ||
13761 | || test ! -s conftest.err' | ||
13762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13763 | (eval $ac_try) 2>&5 | ||
13764 | ac_status=$? | ||
13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13766 | (exit $ac_status); }; } && | ||
13767 | { ac_try='test -s conftest.$ac_objext' | ||
13768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13769 | (eval $ac_try) 2>&5 | ||
13770 | ac_status=$? | ||
13771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13772 | (exit $ac_status); }; }; then | ||
13773 | echo "$as_me:$LINENO: result: no" >&5 | ||
13774 | echo "${ECHO_T}no" >&6 | ||
13775 | else | ||
13776 | echo "$as_me: failed program was:" >&5 | ||
13777 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13778 | |||
13779 | |||
13780 | cat >>confdefs.h <<\_ACEOF | ||
13781 | #define HAVE_OLD_PAM 1 | ||
13782 | _ACEOF | ||
13783 | |||
13784 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13785 | echo "${ECHO_T}yes" >&6 | ||
13786 | PAM_MSG="yes (old library)" | ||
13787 | |||
13788 | |||
13789 | fi | ||
13790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13791 | fi | ||
13792 | |||
13793 | # Search for OpenSSL | ||
13794 | saved_CPPFLAGS="$CPPFLAGS" | ||
13795 | saved_LDFLAGS="$LDFLAGS" | ||
13796 | |||
13797 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
13798 | if test "${with_ssl_dir+set}" = set; then | ||
13799 | withval="$with_ssl_dir" | ||
13800 | |||
13801 | if test "x$withval" != "xno" ; then | ||
13802 | case "$withval" in | ||
13803 | # Relative paths | ||
13804 | ./*|../*) withval="`pwd`/$withval" | ||
13805 | esac | ||
13806 | if test -d "$withval/lib"; then | ||
13807 | if test -n "${need_dash_r}"; then | ||
13808 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13809 | else | ||
13810 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13811 | fi | ||
13812 | else | ||
13813 | if test -n "${need_dash_r}"; then | ||
13814 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
13815 | else | ||
13816 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
13817 | fi | ||
13818 | fi | ||
13819 | if test -d "$withval/include"; then | ||
13820 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
13821 | else | ||
13822 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
13823 | fi | ||
13824 | fi | ||
13825 | |||
13826 | |||
13827 | fi; | ||
13828 | LIBS="-lcrypto $LIBS" | ||
13829 | cat >conftest.$ac_ext <<_ACEOF | ||
13830 | /* confdefs.h. */ | ||
13831 | _ACEOF | ||
13832 | cat confdefs.h >>conftest.$ac_ext | ||
13833 | cat >>conftest.$ac_ext <<_ACEOF | ||
13834 | /* end confdefs.h. */ | ||
13835 | |||
13836 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13837 | #ifdef __cplusplus | ||
13838 | extern "C" | ||
13839 | #endif | ||
13840 | /* We use char because int might match the return type of a gcc2 | ||
13841 | builtin and then its argument prototype would still apply. */ | ||
13842 | char RAND_add (); | ||
13843 | int | ||
13844 | main () | ||
13845 | { | ||
13846 | RAND_add (); | ||
13847 | ; | ||
13848 | return 0; | ||
13849 | } | ||
13850 | _ACEOF | ||
13851 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13853 | (eval $ac_link) 2>conftest.er1 | ||
13854 | ac_status=$? | ||
13855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13856 | rm -f conftest.er1 | ||
13857 | cat conftest.err >&5 | ||
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13859 | (exit $ac_status); } && | ||
13860 | { ac_try='test -z "$ac_c_werror_flag" | ||
13861 | || test ! -s conftest.err' | ||
13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13863 | (eval $ac_try) 2>&5 | ||
13864 | ac_status=$? | ||
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13866 | (exit $ac_status); }; } && | ||
13867 | { ac_try='test -s conftest$ac_exeext' | ||
13868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13869 | (eval $ac_try) 2>&5 | ||
13870 | ac_status=$? | ||
13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13872 | (exit $ac_status); }; }; then | ||
13873 | cat >>confdefs.h <<\_ACEOF | ||
13874 | #define HAVE_OPENSSL 1 | ||
13875 | _ACEOF | ||
13876 | |||
13877 | else | ||
13878 | echo "$as_me: failed program was:" >&5 | ||
13879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13880 | |||
13881 | |||
13882 | if test -n "${need_dash_r}"; then | ||
13883 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
13884 | else | ||
13885 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
13886 | fi | ||
13887 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
13888 | cat >conftest.$ac_ext <<_ACEOF | ||
13889 | /* confdefs.h. */ | ||
13890 | _ACEOF | ||
13891 | cat confdefs.h >>conftest.$ac_ext | ||
13892 | cat >>conftest.$ac_ext <<_ACEOF | ||
13893 | /* end confdefs.h. */ | ||
13894 | |||
13895 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13896 | #ifdef __cplusplus | ||
13897 | extern "C" | ||
13898 | #endif | ||
13899 | /* We use char because int might match the return type of a gcc2 | ||
13900 | builtin and then its argument prototype would still apply. */ | ||
13901 | char RAND_add (); | ||
13902 | int | ||
13903 | main () | ||
13904 | { | ||
13905 | RAND_add (); | ||
13906 | ; | ||
13907 | return 0; | ||
13908 | } | ||
13909 | _ACEOF | ||
13910 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13912 | (eval $ac_link) 2>conftest.er1 | ||
13913 | ac_status=$? | ||
13914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13915 | rm -f conftest.er1 | ||
13916 | cat conftest.err >&5 | ||
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13918 | (exit $ac_status); } && | ||
13919 | { ac_try='test -z "$ac_c_werror_flag" | ||
13920 | || test ! -s conftest.err' | ||
13921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13922 | (eval $ac_try) 2>&5 | ||
13923 | ac_status=$? | ||
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13925 | (exit $ac_status); }; } && | ||
13926 | { ac_try='test -s conftest$ac_exeext' | ||
13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13928 | (eval $ac_try) 2>&5 | ||
13929 | ac_status=$? | ||
13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13931 | (exit $ac_status); }; }; then | ||
13932 | cat >>confdefs.h <<\_ACEOF | ||
13933 | #define HAVE_OPENSSL 1 | ||
13934 | _ACEOF | ||
13935 | |||
13936 | else | ||
13937 | echo "$as_me: failed program was:" >&5 | ||
13938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13939 | |||
13940 | |||
13941 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
13942 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
13943 | { (exit 1); exit 1; }; } | ||
13944 | |||
13945 | |||
13946 | fi | ||
13947 | rm -f conftest.err conftest.$ac_objext \ | ||
13948 | conftest$ac_exeext conftest.$ac_ext | ||
13949 | |||
13950 | |||
13951 | fi | ||
13952 | rm -f conftest.err conftest.$ac_objext \ | ||
13953 | conftest$ac_exeext conftest.$ac_ext | ||
13954 | |||
13955 | # Determine OpenSSL header version | ||
13956 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
13957 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
13958 | if test "$cross_compiling" = yes; then | ||
13959 | |||
13960 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
13961 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13962 | |||
13963 | |||
13964 | else | ||
13965 | cat >conftest.$ac_ext <<_ACEOF | ||
13966 | /* confdefs.h. */ | ||
13967 | _ACEOF | ||
13968 | cat confdefs.h >>conftest.$ac_ext | ||
13969 | cat >>conftest.$ac_ext <<_ACEOF | ||
13970 | /* end confdefs.h. */ | ||
13971 | |||
13972 | #include <stdio.h> | ||
13973 | #include <string.h> | ||
13974 | #include <openssl/opensslv.h> | ||
13975 | #define DATA "conftest.sslincver" | ||
13976 | int main(void) { | ||
13977 | FILE *fd; | ||
13978 | int rc; | ||
13979 | |||
13980 | fd = fopen(DATA,"w"); | ||
13981 | if(fd == NULL) | ||
13982 | exit(1); | ||
13983 | |||
13984 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
13985 | exit(1); | ||
13986 | |||
13987 | exit(0); | ||
13988 | } | ||
13989 | |||
13990 | _ACEOF | ||
13991 | rm -f conftest$ac_exeext | ||
13992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13993 | (eval $ac_link) 2>&5 | ||
13994 | ac_status=$? | ||
13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13996 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13998 | (eval $ac_try) 2>&5 | ||
13999 | ac_status=$? | ||
14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14001 | (exit $ac_status); }; }; then | ||
14002 | |||
14003 | ssl_header_ver=`cat conftest.sslincver` | ||
14004 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
14005 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
14006 | |||
14007 | else | ||
14008 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14009 | echo "$as_me: failed program was:" >&5 | ||
14010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14011 | |||
14012 | ( exit $ac_status ) | ||
14013 | |||
14014 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14015 | echo "${ECHO_T}not found" >&6 | ||
14016 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
14017 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
14018 | { (exit 1); exit 1; }; } | ||
14019 | |||
14020 | fi | ||
14021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14022 | fi | ||
14023 | |||
14024 | # Determine OpenSSL library version | ||
14025 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
14026 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
14027 | if test "$cross_compiling" = yes; then | ||
14028 | |||
14029 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14030 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14031 | |||
14032 | |||
14033 | else | ||
14034 | cat >conftest.$ac_ext <<_ACEOF | ||
14035 | /* confdefs.h. */ | ||
14036 | _ACEOF | ||
14037 | cat confdefs.h >>conftest.$ac_ext | ||
14038 | cat >>conftest.$ac_ext <<_ACEOF | ||
14039 | /* end confdefs.h. */ | ||
14040 | |||
14041 | #include <stdio.h> | ||
14042 | #include <string.h> | ||
14043 | #include <openssl/opensslv.h> | ||
14044 | #include <openssl/crypto.h> | ||
14045 | #define DATA "conftest.ssllibver" | ||
14046 | int main(void) { | ||
14047 | FILE *fd; | ||
14048 | int rc; | ||
14049 | |||
14050 | fd = fopen(DATA,"w"); | ||
14051 | if(fd == NULL) | ||
14052 | exit(1); | ||
14053 | |||
14054 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
14055 | exit(1); | ||
14056 | |||
14057 | exit(0); | ||
14058 | } | ||
14059 | |||
14060 | _ACEOF | ||
14061 | rm -f conftest$ac_exeext | ||
14062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14063 | (eval $ac_link) 2>&5 | ||
14064 | ac_status=$? | ||
14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14068 | (eval $ac_try) 2>&5 | ||
14069 | ac_status=$? | ||
14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14071 | (exit $ac_status); }; }; then | ||
14072 | |||
14073 | ssl_library_ver=`cat conftest.ssllibver` | ||
14074 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
14075 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
14076 | |||
14077 | else | ||
14078 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14079 | echo "$as_me: failed program was:" >&5 | ||
14080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14081 | |||
14082 | ( exit $ac_status ) | ||
14083 | |||
14084 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14085 | echo "${ECHO_T}not found" >&6 | ||
14086 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
14087 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
14088 | { (exit 1); exit 1; }; } | ||
14089 | |||
14090 | fi | ||
14091 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14092 | fi | ||
14093 | |||
14094 | # Sanity check OpenSSL headers | ||
14095 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
14096 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
14097 | if test "$cross_compiling" = yes; then | ||
14098 | |||
14099 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14100 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14101 | |||
14102 | |||
14103 | else | ||
14104 | cat >conftest.$ac_ext <<_ACEOF | ||
14105 | /* confdefs.h. */ | ||
14106 | _ACEOF | ||
14107 | cat confdefs.h >>conftest.$ac_ext | ||
14108 | cat >>conftest.$ac_ext <<_ACEOF | ||
14109 | /* end confdefs.h. */ | ||
14110 | |||
14111 | #include <string.h> | ||
14112 | #include <openssl/opensslv.h> | ||
14113 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
14114 | |||
14115 | _ACEOF | ||
14116 | rm -f conftest$ac_exeext | ||
14117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14118 | (eval $ac_link) 2>&5 | ||
14119 | ac_status=$? | ||
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14123 | (eval $ac_try) 2>&5 | ||
14124 | ac_status=$? | ||
14125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14126 | (exit $ac_status); }; }; then | ||
14127 | |||
14128 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14129 | echo "${ECHO_T}yes" >&6 | ||
14130 | |||
14131 | else | ||
14132 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14133 | echo "$as_me: failed program was:" >&5 | ||
14134 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14135 | |||
14136 | ( exit $ac_status ) | ||
14137 | |||
14138 | echo "$as_me:$LINENO: result: no" >&5 | ||
14139 | echo "${ECHO_T}no" >&6 | ||
14140 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | ||
14141 | Check config.log for details. | ||
14142 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
14143 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
14144 | Check config.log for details. | ||
14145 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
14146 | { (exit 1); exit 1; }; } | ||
14147 | |||
14148 | fi | ||
14149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14150 | fi | ||
14151 | |||
14152 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
14153 | # because the system crypt() is more featureful. | ||
14154 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
14155 | |||
14156 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14157 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14158 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14160 | else | ||
14161 | ac_check_lib_save_LIBS=$LIBS | ||
14162 | LIBS="-lcrypt $LIBS" | ||
14163 | cat >conftest.$ac_ext <<_ACEOF | ||
14164 | /* confdefs.h. */ | ||
14165 | _ACEOF | ||
14166 | cat confdefs.h >>conftest.$ac_ext | ||
14167 | cat >>conftest.$ac_ext <<_ACEOF | ||
14168 | /* end confdefs.h. */ | ||
14169 | |||
14170 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14171 | #ifdef __cplusplus | ||
14172 | extern "C" | ||
14173 | #endif | ||
14174 | /* We use char because int might match the return type of a gcc2 | ||
14175 | builtin and then its argument prototype would still apply. */ | ||
14176 | char crypt (); | ||
14177 | int | ||
14178 | main () | ||
14179 | { | ||
14180 | crypt (); | ||
14181 | ; | ||
14182 | return 0; | ||
14183 | } | ||
14184 | _ACEOF | ||
14185 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14187 | (eval $ac_link) 2>conftest.er1 | ||
14188 | ac_status=$? | ||
14189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14190 | rm -f conftest.er1 | ||
14191 | cat conftest.err >&5 | ||
14192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14193 | (exit $ac_status); } && | ||
14194 | { ac_try='test -z "$ac_c_werror_flag" | ||
14195 | || test ! -s conftest.err' | ||
14196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14197 | (eval $ac_try) 2>&5 | ||
14198 | ac_status=$? | ||
14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14200 | (exit $ac_status); }; } && | ||
14201 | { ac_try='test -s conftest$ac_exeext' | ||
14202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14203 | (eval $ac_try) 2>&5 | ||
14204 | ac_status=$? | ||
14205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14206 | (exit $ac_status); }; }; then | ||
14207 | ac_cv_lib_crypt_crypt=yes | ||
14208 | else | ||
14209 | echo "$as_me: failed program was:" >&5 | ||
14210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14211 | |||
14212 | ac_cv_lib_crypt_crypt=no | ||
14213 | fi | ||
14214 | rm -f conftest.err conftest.$ac_objext \ | ||
14215 | conftest$ac_exeext conftest.$ac_ext | ||
14216 | LIBS=$ac_check_lib_save_LIBS | ||
14217 | fi | ||
14218 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14219 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14220 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14221 | cat >>confdefs.h <<_ACEOF | ||
14222 | #define HAVE_LIBCRYPT 1 | ||
14223 | _ACEOF | ||
14224 | |||
14225 | LIBS="-lcrypt $LIBS" | ||
14226 | |||
14227 | fi | ||
14228 | |||
14229 | fi | ||
14230 | |||
14231 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
14232 | # version in OpenSSL. | ||
14233 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
14234 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14235 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14236 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14238 | else | ||
14239 | ac_check_lib_save_LIBS=$LIBS | ||
14240 | LIBS="-lcrypt $LIBS" | ||
14241 | cat >conftest.$ac_ext <<_ACEOF | ||
14242 | /* confdefs.h. */ | ||
14243 | _ACEOF | ||
14244 | cat confdefs.h >>conftest.$ac_ext | ||
14245 | cat >>conftest.$ac_ext <<_ACEOF | ||
14246 | /* end confdefs.h. */ | ||
14247 | |||
14248 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14249 | #ifdef __cplusplus | ||
14250 | extern "C" | ||
14251 | #endif | ||
14252 | /* We use char because int might match the return type of a gcc2 | ||
14253 | builtin and then its argument prototype would still apply. */ | ||
14254 | char crypt (); | ||
14255 | int | ||
14256 | main () | ||
14257 | { | ||
14258 | crypt (); | ||
14259 | ; | ||
14260 | return 0; | ||
14261 | } | ||
14262 | _ACEOF | ||
14263 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14265 | (eval $ac_link) 2>conftest.er1 | ||
14266 | ac_status=$? | ||
14267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14268 | rm -f conftest.er1 | ||
14269 | cat conftest.err >&5 | ||
14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14271 | (exit $ac_status); } && | ||
14272 | { ac_try='test -z "$ac_c_werror_flag" | ||
14273 | || test ! -s conftest.err' | ||
14274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14275 | (eval $ac_try) 2>&5 | ||
14276 | ac_status=$? | ||
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14278 | (exit $ac_status); }; } && | ||
14279 | { ac_try='test -s conftest$ac_exeext' | ||
14280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14281 | (eval $ac_try) 2>&5 | ||
14282 | ac_status=$? | ||
14283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14284 | (exit $ac_status); }; }; then | ||
14285 | ac_cv_lib_crypt_crypt=yes | ||
14286 | else | ||
14287 | echo "$as_me: failed program was:" >&5 | ||
14288 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14289 | |||
14290 | ac_cv_lib_crypt_crypt=no | ||
14291 | fi | ||
14292 | rm -f conftest.err conftest.$ac_objext \ | ||
14293 | conftest$ac_exeext conftest.$ac_ext | ||
14294 | LIBS=$ac_check_lib_save_LIBS | ||
14295 | fi | ||
14296 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14297 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14298 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14299 | LIBS="$LIBS -lcrypt" | ||
14300 | fi | ||
14301 | |||
14302 | fi | ||
14303 | |||
14304 | |||
14305 | ### Configure cryptographic random number support | ||
14306 | |||
14307 | # Check wheter OpenSSL seeds itself | ||
14308 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
14309 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
14310 | if test "$cross_compiling" = yes; then | ||
14311 | |||
14312 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
14313 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14314 | # This is safe, since all recent OpenSSL versions will | ||
14315 | # complain at runtime if not seeded correctly. | ||
14316 | OPENSSL_SEEDS_ITSELF=yes | ||
14317 | |||
14318 | |||
14319 | else | ||
14320 | cat >conftest.$ac_ext <<_ACEOF | ||
14321 | /* confdefs.h. */ | ||
14322 | _ACEOF | ||
14323 | cat confdefs.h >>conftest.$ac_ext | ||
14324 | cat >>conftest.$ac_ext <<_ACEOF | ||
14325 | /* end confdefs.h. */ | ||
14326 | |||
14327 | #include <string.h> | ||
14328 | #include <openssl/rand.h> | ||
14329 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
14330 | |||
14331 | _ACEOF | ||
14332 | rm -f conftest$ac_exeext | ||
14333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14334 | (eval $ac_link) 2>&5 | ||
14335 | ac_status=$? | ||
14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14339 | (eval $ac_try) 2>&5 | ||
14340 | ac_status=$? | ||
14341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14342 | (exit $ac_status); }; }; then | ||
14343 | |||
14344 | OPENSSL_SEEDS_ITSELF=yes | ||
14345 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14346 | echo "${ECHO_T}yes" >&6 | ||
14347 | |||
14348 | else | ||
14349 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14350 | echo "$as_me: failed program was:" >&5 | ||
14351 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14352 | |||
14353 | ( exit $ac_status ) | ||
14354 | |||
14355 | echo "$as_me:$LINENO: result: no" >&5 | ||
14356 | echo "${ECHO_T}no" >&6 | ||
14357 | # Default to use of the rand helper if OpenSSL doesn't | ||
14358 | # seed itself | ||
14359 | USE_RAND_HELPER=yes | ||
14360 | |||
14361 | fi | ||
14362 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14363 | fi | ||
14364 | |||
14365 | |||
14366 | # Do we want to force the use of the rand helper? | ||
14367 | |||
14368 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
14369 | if test "${with_rand_helper+set}" = set; then | ||
14370 | withval="$with_rand_helper" | ||
14371 | |||
14372 | if test "x$withval" = "xno" ; then | ||
14373 | # Force use of OpenSSL's internal RNG, even if | ||
14374 | # the previous test showed it to be unseeded. | ||
14375 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
14376 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
14377 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
14378 | OPENSSL_SEEDS_ITSELF=yes | ||
14379 | USE_RAND_HELPER="" | ||
14380 | fi | ||
14381 | else | ||
14382 | USE_RAND_HELPER=yes | ||
14383 | fi | ||
14384 | |||
14385 | fi; | ||
14386 | |||
14387 | # Which randomness source do we use? | ||
14388 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
14389 | # OpenSSL only | ||
14390 | cat >>confdefs.h <<\_ACEOF | ||
14391 | #define OPENSSL_PRNG_ONLY 1 | ||
14392 | _ACEOF | ||
14393 | |||
14394 | RAND_MSG="OpenSSL internal ONLY" | ||
14395 | INSTALL_SSH_RAND_HELPER="" | ||
14396 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
14397 | # install rand helper | ||
14398 | RAND_MSG="ssh-rand-helper" | ||
14399 | INSTALL_SSH_RAND_HELPER="yes" | ||
14400 | fi | ||
14401 | |||
14402 | |||
14403 | ### Configuration of ssh-rand-helper | ||
14404 | |||
14405 | # PRNGD TCP socket | ||
14406 | |||
14407 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
14408 | if test "${with_prngd_port+set}" = set; then | ||
14409 | withval="$with_prngd_port" | ||
14410 | |||
14411 | case "$withval" in | ||
14412 | no) | ||
14413 | withval="" | ||
14414 | ;; | ||
14415 | [0-9]*) | ||
14416 | ;; | ||
14417 | *) | ||
14418 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
14419 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
14420 | { (exit 1); exit 1; }; } | ||
14421 | ;; | ||
14422 | esac | ||
14423 | if test ! -z "$withval" ; then | ||
14424 | PRNGD_PORT="$withval" | ||
14425 | cat >>confdefs.h <<_ACEOF | ||
14426 | #define PRNGD_PORT $PRNGD_PORT | ||
14427 | _ACEOF | ||
14428 | |||
14429 | fi | ||
14430 | |||
14431 | |||
14432 | fi; | ||
14433 | |||
14434 | # PRNGD Unix domain socket | ||
14435 | |||
14436 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
14437 | if test "${with_prngd_socket+set}" = set; then | ||
14438 | withval="$with_prngd_socket" | ||
14439 | |||
14440 | case "$withval" in | ||
14441 | yes) | ||
14442 | withval="/var/run/egd-pool" | ||
14443 | ;; | ||
14444 | no) | ||
14445 | withval="" | ||
14446 | ;; | ||
14447 | /*) | ||
14448 | ;; | ||
14449 | *) | ||
14450 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
14451 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
14452 | { (exit 1); exit 1; }; } | ||
14453 | ;; | ||
14454 | esac | ||
14455 | |||
14456 | if test ! -z "$withval" ; then | ||
14457 | if test ! -z "$PRNGD_PORT" ; then | ||
14458 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
14459 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
14460 | { (exit 1); exit 1; }; } | ||
14461 | fi | ||
14462 | if test ! -r "$withval" ; then | ||
14463 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
14464 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
14465 | fi | ||
14466 | PRNGD_SOCKET="$withval" | ||
14467 | cat >>confdefs.h <<_ACEOF | ||
14468 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14469 | _ACEOF | ||
14470 | |||
14471 | fi | ||
14472 | |||
14473 | else | ||
14474 | |||
14475 | # Check for existing socket only if we don't have a random device already | ||
14476 | if test "$USE_RAND_HELPER" = yes ; then | ||
14477 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
14478 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
14479 | # Insert other locations here | ||
14480 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
14481 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
14482 | PRNGD_SOCKET="$sock" | ||
14483 | cat >>confdefs.h <<_ACEOF | ||
14484 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14485 | _ACEOF | ||
14486 | |||
14487 | break; | ||
14488 | fi | ||
14489 | done | ||
14490 | if test ! -z "$PRNGD_SOCKET" ; then | ||
14491 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
14492 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
14493 | else | ||
14494 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14495 | echo "${ECHO_T}not found" >&6 | ||
14496 | fi | ||
14497 | fi | ||
14498 | |||
14499 | |||
14500 | fi; | ||
14501 | |||
14502 | # Change default command timeout for hashing entropy source | ||
14503 | entropy_timeout=200 | ||
14504 | |||
14505 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
14506 | if test "${with_entropy_timeout+set}" = set; then | ||
14507 | withval="$with_entropy_timeout" | ||
14508 | |||
14509 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14510 | test "x${withval}" != "xyes"; then | ||
14511 | entropy_timeout=$withval | ||
14512 | fi | ||
14513 | |||
14514 | |||
14515 | fi; | ||
14516 | cat >>confdefs.h <<_ACEOF | ||
14517 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
14518 | _ACEOF | ||
14519 | |||
14520 | |||
14521 | SSH_PRIVSEP_USER=sshd | ||
14522 | |||
14523 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
14524 | if test "${with_privsep_user+set}" = set; then | ||
14525 | withval="$with_privsep_user" | ||
14526 | |||
14527 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14528 | test "x${withval}" != "xyes"; then | ||
14529 | SSH_PRIVSEP_USER=$withval | ||
14530 | fi | ||
14531 | |||
14532 | |||
14533 | fi; | ||
14534 | cat >>confdefs.h <<_ACEOF | ||
14535 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
14536 | _ACEOF | ||
14537 | |||
14538 | |||
14539 | |||
14540 | # We do this little dance with the search path to insure | ||
14541 | # that programs that we select for use by installed programs | ||
14542 | # (which may be run by the super-user) come from trusted | ||
14543 | # locations before they come from the user's private area. | ||
14544 | # This should help avoid accidentally configuring some | ||
14545 | # random version of a program in someone's personal bin. | ||
14546 | |||
14547 | OPATH=$PATH | ||
14548 | PATH=/bin:/usr/bin | ||
14549 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
14550 | test -d /sbin && PATH=$PATH:/sbin | ||
14551 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
14552 | PATH=$PATH:/etc:$OPATH | ||
14553 | |||
14554 | # These programs are used by the command hashing source to gather entropy | ||
14555 | |||
14556 | # Extract the first word of "ls", so it can be a program name with args. | ||
14557 | set dummy ls; ac_word=$2 | ||
14558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14560 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
14561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14562 | else | ||
14563 | case $PROG_LS in | ||
14564 | [\\/]* | ?:[\\/]*) | ||
14565 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
14566 | ;; | ||
14567 | *) | ||
14568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14569 | for as_dir in $PATH | ||
14570 | do | ||
14571 | IFS=$as_save_IFS | ||
14572 | test -z "$as_dir" && as_dir=. | ||
14573 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14575 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
14576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14577 | break 2 | ||
14578 | fi | ||
14579 | done | ||
14580 | done | ||
14581 | |||
14582 | ;; | ||
14583 | esac | ||
14584 | fi | ||
14585 | PROG_LS=$ac_cv_path_PROG_LS | ||
14586 | |||
14587 | if test -n "$PROG_LS"; then | ||
14588 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
14589 | echo "${ECHO_T}$PROG_LS" >&6 | ||
14590 | else | ||
14591 | echo "$as_me:$LINENO: result: no" >&5 | ||
14592 | echo "${ECHO_T}no" >&6 | ||
14593 | fi | ||
14594 | |||
14595 | if test -z "$PROG_LS" ; then | ||
14596 | PROG_LS="undef" | ||
14597 | fi | ||
14598 | |||
14599 | |||
14600 | |||
14601 | # Extract the first word of "netstat", so it can be a program name with args. | ||
14602 | set dummy netstat; ac_word=$2 | ||
14603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14605 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
14606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14607 | else | ||
14608 | case $PROG_NETSTAT in | ||
14609 | [\\/]* | ?:[\\/]*) | ||
14610 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
14611 | ;; | ||
14612 | *) | ||
14613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14614 | for as_dir in $PATH | ||
14615 | do | ||
14616 | IFS=$as_save_IFS | ||
14617 | test -z "$as_dir" && as_dir=. | ||
14618 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14620 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
14621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14622 | break 2 | ||
14623 | fi | ||
14624 | done | ||
14625 | done | ||
14626 | |||
14627 | ;; | ||
14628 | esac | ||
14629 | fi | ||
14630 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
14631 | |||
14632 | if test -n "$PROG_NETSTAT"; then | ||
14633 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
14634 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
14635 | else | ||
14636 | echo "$as_me:$LINENO: result: no" >&5 | ||
14637 | echo "${ECHO_T}no" >&6 | ||
14638 | fi | ||
14639 | |||
14640 | if test -z "$PROG_NETSTAT" ; then | ||
14641 | PROG_NETSTAT="undef" | ||
14642 | fi | ||
14643 | |||
14644 | |||
14645 | |||
14646 | # Extract the first word of "arp", so it can be a program name with args. | ||
14647 | set dummy arp; ac_word=$2 | ||
14648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14650 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
14651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14652 | else | ||
14653 | case $PROG_ARP in | ||
14654 | [\\/]* | ?:[\\/]*) | ||
14655 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
14656 | ;; | ||
14657 | *) | ||
14658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14659 | for as_dir in $PATH | ||
14660 | do | ||
14661 | IFS=$as_save_IFS | ||
14662 | test -z "$as_dir" && as_dir=. | ||
14663 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14665 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
14666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14667 | break 2 | ||
14668 | fi | ||
14669 | done | ||
14670 | done | ||
14671 | |||
14672 | ;; | ||
14673 | esac | ||
14674 | fi | ||
14675 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
14676 | |||
14677 | if test -n "$PROG_ARP"; then | ||
14678 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
14679 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
14680 | else | ||
14681 | echo "$as_me:$LINENO: result: no" >&5 | ||
14682 | echo "${ECHO_T}no" >&6 | ||
14683 | fi | ||
14684 | |||
14685 | if test -z "$PROG_ARP" ; then | ||
14686 | PROG_ARP="undef" | ||
14687 | fi | ||
14688 | |||
14689 | |||
14690 | |||
14691 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
14692 | set dummy ifconfig; ac_word=$2 | ||
14693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14695 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
14696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14697 | else | ||
14698 | case $PROG_IFCONFIG in | ||
14699 | [\\/]* | ?:[\\/]*) | ||
14700 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
14701 | ;; | ||
14702 | *) | ||
14703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14704 | for as_dir in $PATH | ||
14705 | do | ||
14706 | IFS=$as_save_IFS | ||
14707 | test -z "$as_dir" && as_dir=. | ||
14708 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14710 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
14711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14712 | break 2 | ||
14713 | fi | ||
14714 | done | ||
14715 | done | ||
14716 | |||
14717 | ;; | ||
14718 | esac | ||
14719 | fi | ||
14720 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
14721 | |||
14722 | if test -n "$PROG_IFCONFIG"; then | ||
14723 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
14724 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
14725 | else | ||
14726 | echo "$as_me:$LINENO: result: no" >&5 | ||
14727 | echo "${ECHO_T}no" >&6 | ||
14728 | fi | ||
14729 | |||
14730 | if test -z "$PROG_IFCONFIG" ; then | ||
14731 | PROG_IFCONFIG="undef" | ||
14732 | fi | ||
14733 | |||
14734 | |||
14735 | |||
14736 | # Extract the first word of "jstat", so it can be a program name with args. | ||
14737 | set dummy jstat; ac_word=$2 | ||
14738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14740 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
14741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14742 | else | ||
14743 | case $PROG_JSTAT in | ||
14744 | [\\/]* | ?:[\\/]*) | ||
14745 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
14746 | ;; | ||
14747 | *) | ||
14748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14749 | for as_dir in $PATH | ||
14750 | do | ||
14751 | IFS=$as_save_IFS | ||
14752 | test -z "$as_dir" && as_dir=. | ||
14753 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14755 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
14756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14757 | break 2 | ||
14758 | fi | ||
14759 | done | ||
14760 | done | ||
14761 | |||
14762 | ;; | ||
14763 | esac | ||
14764 | fi | ||
14765 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
14766 | |||
14767 | if test -n "$PROG_JSTAT"; then | ||
14768 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
14769 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
14770 | else | ||
14771 | echo "$as_me:$LINENO: result: no" >&5 | ||
14772 | echo "${ECHO_T}no" >&6 | ||
14773 | fi | ||
14774 | |||
14775 | if test -z "$PROG_JSTAT" ; then | ||
14776 | PROG_JSTAT="undef" | ||
14777 | fi | ||
14778 | |||
14779 | |||
14780 | |||
14781 | # Extract the first word of "ps", so it can be a program name with args. | ||
14782 | set dummy ps; ac_word=$2 | ||
14783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14785 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
14786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14787 | else | ||
14788 | case $PROG_PS in | ||
14789 | [\\/]* | ?:[\\/]*) | ||
14790 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
14791 | ;; | ||
14792 | *) | ||
14793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14794 | for as_dir in $PATH | ||
14795 | do | ||
14796 | IFS=$as_save_IFS | ||
14797 | test -z "$as_dir" && as_dir=. | ||
14798 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14800 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
14801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14802 | break 2 | ||
14803 | fi | ||
14804 | done | ||
14805 | done | ||
14806 | |||
14807 | ;; | ||
14808 | esac | ||
14809 | fi | ||
14810 | PROG_PS=$ac_cv_path_PROG_PS | ||
14811 | |||
14812 | if test -n "$PROG_PS"; then | ||
14813 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
14814 | echo "${ECHO_T}$PROG_PS" >&6 | ||
14815 | else | ||
14816 | echo "$as_me:$LINENO: result: no" >&5 | ||
14817 | echo "${ECHO_T}no" >&6 | ||
14818 | fi | ||
14819 | |||
14820 | if test -z "$PROG_PS" ; then | ||
14821 | PROG_PS="undef" | ||
14822 | fi | ||
14823 | |||
14824 | |||
14825 | |||
14826 | # Extract the first word of "sar", so it can be a program name with args. | ||
14827 | set dummy sar; ac_word=$2 | ||
14828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14830 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
14831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14832 | else | ||
14833 | case $PROG_SAR in | ||
14834 | [\\/]* | ?:[\\/]*) | ||
14835 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
14836 | ;; | ||
14837 | *) | ||
14838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14839 | for as_dir in $PATH | ||
14840 | do | ||
14841 | IFS=$as_save_IFS | ||
14842 | test -z "$as_dir" && as_dir=. | ||
14843 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14845 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
14846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14847 | break 2 | ||
14848 | fi | ||
14849 | done | ||
14850 | done | ||
14851 | |||
14852 | ;; | ||
14853 | esac | ||
14854 | fi | ||
14855 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
14856 | |||
14857 | if test -n "$PROG_SAR"; then | ||
14858 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
14859 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
14860 | else | ||
14861 | echo "$as_me:$LINENO: result: no" >&5 | ||
14862 | echo "${ECHO_T}no" >&6 | ||
14863 | fi | ||
14864 | |||
14865 | if test -z "$PROG_SAR" ; then | ||
14866 | PROG_SAR="undef" | ||
14867 | fi | ||
14868 | |||
14869 | |||
14870 | |||
14871 | # Extract the first word of "w", so it can be a program name with args. | ||
14872 | set dummy w; ac_word=$2 | ||
14873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14875 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
14876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14877 | else | ||
14878 | case $PROG_W in | ||
14879 | [\\/]* | ?:[\\/]*) | ||
14880 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
14881 | ;; | ||
14882 | *) | ||
14883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14884 | for as_dir in $PATH | ||
14885 | do | ||
14886 | IFS=$as_save_IFS | ||
14887 | test -z "$as_dir" && as_dir=. | ||
14888 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14890 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
14891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14892 | break 2 | ||
14893 | fi | ||
14894 | done | ||
14895 | done | ||
14896 | |||
14897 | ;; | ||
14898 | esac | ||
14899 | fi | ||
14900 | PROG_W=$ac_cv_path_PROG_W | ||
14901 | |||
14902 | if test -n "$PROG_W"; then | ||
14903 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
14904 | echo "${ECHO_T}$PROG_W" >&6 | ||
14905 | else | ||
14906 | echo "$as_me:$LINENO: result: no" >&5 | ||
14907 | echo "${ECHO_T}no" >&6 | ||
14908 | fi | ||
14909 | |||
14910 | if test -z "$PROG_W" ; then | ||
14911 | PROG_W="undef" | ||
14912 | fi | ||
14913 | |||
14914 | |||
14915 | |||
14916 | # Extract the first word of "who", so it can be a program name with args. | ||
14917 | set dummy who; ac_word=$2 | ||
14918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14920 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14922 | else | ||
14923 | case $PROG_WHO in | ||
14924 | [\\/]* | ?:[\\/]*) | ||
14925 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
14926 | ;; | ||
14927 | *) | ||
14928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14929 | for as_dir in $PATH | ||
14930 | do | ||
14931 | IFS=$as_save_IFS | ||
14932 | test -z "$as_dir" && as_dir=. | ||
14933 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14935 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
14936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14937 | break 2 | ||
14938 | fi | ||
14939 | done | ||
14940 | done | ||
14941 | |||
14942 | ;; | ||
14943 | esac | ||
14944 | fi | ||
14945 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
14946 | |||
14947 | if test -n "$PROG_WHO"; then | ||
14948 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
14949 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
14950 | else | ||
14951 | echo "$as_me:$LINENO: result: no" >&5 | ||
14952 | echo "${ECHO_T}no" >&6 | ||
14953 | fi | ||
14954 | |||
14955 | if test -z "$PROG_WHO" ; then | ||
14956 | PROG_WHO="undef" | ||
14957 | fi | ||
14958 | |||
14959 | |||
14960 | |||
14961 | # Extract the first word of "last", so it can be a program name with args. | ||
14962 | set dummy last; ac_word=$2 | ||
14963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14965 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14967 | else | ||
14968 | case $PROG_LAST in | ||
14969 | [\\/]* | ?:[\\/]*) | ||
14970 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
14971 | ;; | ||
14972 | *) | ||
14973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14974 | for as_dir in $PATH | ||
14975 | do | ||
14976 | IFS=$as_save_IFS | ||
14977 | test -z "$as_dir" && as_dir=. | ||
14978 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14980 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
14981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14982 | break 2 | ||
14983 | fi | ||
14984 | done | ||
14985 | done | ||
14986 | |||
14987 | ;; | ||
14988 | esac | ||
14989 | fi | ||
14990 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
14991 | |||
14992 | if test -n "$PROG_LAST"; then | ||
14993 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
14994 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
14995 | else | ||
14996 | echo "$as_me:$LINENO: result: no" >&5 | ||
14997 | echo "${ECHO_T}no" >&6 | ||
14998 | fi | ||
14999 | |||
15000 | if test -z "$PROG_LAST" ; then | ||
15001 | PROG_LAST="undef" | ||
15002 | fi | ||
15003 | |||
15004 | |||
15005 | |||
15006 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
15007 | set dummy lastlog; ac_word=$2 | ||
15008 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15010 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
15011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15012 | else | ||
15013 | case $PROG_LASTLOG in | ||
15014 | [\\/]* | ?:[\\/]*) | ||
15015 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
15016 | ;; | ||
15017 | *) | ||
15018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15019 | for as_dir in $PATH | ||
15020 | do | ||
15021 | IFS=$as_save_IFS | ||
15022 | test -z "$as_dir" && as_dir=. | ||
15023 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15025 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
15026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15027 | break 2 | ||
15028 | fi | ||
15029 | done | ||
15030 | done | ||
15031 | |||
15032 | ;; | ||
15033 | esac | ||
15034 | fi | ||
15035 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
15036 | |||
15037 | if test -n "$PROG_LASTLOG"; then | ||
15038 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
15039 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
15040 | else | ||
15041 | echo "$as_me:$LINENO: result: no" >&5 | ||
15042 | echo "${ECHO_T}no" >&6 | ||
15043 | fi | ||
15044 | |||
15045 | if test -z "$PROG_LASTLOG" ; then | ||
15046 | PROG_LASTLOG="undef" | ||
15047 | fi | ||
15048 | |||
15049 | |||
15050 | |||
15051 | # Extract the first word of "df", so it can be a program name with args. | ||
15052 | set dummy df; ac_word=$2 | ||
15053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15055 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
15056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15057 | else | ||
15058 | case $PROG_DF in | ||
15059 | [\\/]* | ?:[\\/]*) | ||
15060 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
15061 | ;; | ||
15062 | *) | ||
15063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15064 | for as_dir in $PATH | ||
15065 | do | ||
15066 | IFS=$as_save_IFS | ||
15067 | test -z "$as_dir" && as_dir=. | ||
15068 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15070 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
15071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15072 | break 2 | ||
15073 | fi | ||
15074 | done | ||
15075 | done | ||
15076 | |||
15077 | ;; | ||
15078 | esac | ||
15079 | fi | ||
15080 | PROG_DF=$ac_cv_path_PROG_DF | ||
15081 | |||
15082 | if test -n "$PROG_DF"; then | ||
15083 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
15084 | echo "${ECHO_T}$PROG_DF" >&6 | ||
15085 | else | ||
15086 | echo "$as_me:$LINENO: result: no" >&5 | ||
15087 | echo "${ECHO_T}no" >&6 | ||
15088 | fi | ||
15089 | |||
15090 | if test -z "$PROG_DF" ; then | ||
15091 | PROG_DF="undef" | ||
15092 | fi | ||
15093 | |||
15094 | |||
15095 | |||
15096 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
15097 | set dummy vmstat; ac_word=$2 | ||
15098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15100 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
15101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15102 | else | ||
15103 | case $PROG_VMSTAT in | ||
15104 | [\\/]* | ?:[\\/]*) | ||
15105 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
15106 | ;; | ||
15107 | *) | ||
15108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15109 | for as_dir in $PATH | ||
15110 | do | ||
15111 | IFS=$as_save_IFS | ||
15112 | test -z "$as_dir" && as_dir=. | ||
15113 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15115 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15117 | break 2 | ||
15118 | fi | ||
15119 | done | ||
15120 | done | ||
15121 | |||
15122 | ;; | ||
15123 | esac | ||
15124 | fi | ||
15125 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
15126 | |||
15127 | if test -n "$PROG_VMSTAT"; then | ||
15128 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
15129 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
15130 | else | ||
15131 | echo "$as_me:$LINENO: result: no" >&5 | ||
15132 | echo "${ECHO_T}no" >&6 | ||
15133 | fi | ||
15134 | |||
15135 | if test -z "$PROG_VMSTAT" ; then | ||
15136 | PROG_VMSTAT="undef" | ||
15137 | fi | ||
15138 | |||
15139 | |||
15140 | |||
15141 | # Extract the first word of "uptime", so it can be a program name with args. | ||
15142 | set dummy uptime; ac_word=$2 | ||
15143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15145 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
15146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15147 | else | ||
15148 | case $PROG_UPTIME in | ||
15149 | [\\/]* | ?:[\\/]*) | ||
15150 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
15151 | ;; | ||
15152 | *) | ||
15153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15154 | for as_dir in $PATH | ||
15155 | do | ||
15156 | IFS=$as_save_IFS | ||
15157 | test -z "$as_dir" && as_dir=. | ||
15158 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15160 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
15161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15162 | break 2 | ||
15163 | fi | ||
15164 | done | ||
15165 | done | ||
15166 | |||
15167 | ;; | ||
15168 | esac | ||
15169 | fi | ||
15170 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
15171 | |||
15172 | if test -n "$PROG_UPTIME"; then | ||
15173 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
15174 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
15175 | else | ||
15176 | echo "$as_me:$LINENO: result: no" >&5 | ||
15177 | echo "${ECHO_T}no" >&6 | ||
15178 | fi | ||
15179 | |||
15180 | if test -z "$PROG_UPTIME" ; then | ||
15181 | PROG_UPTIME="undef" | ||
15182 | fi | ||
15183 | |||
15184 | |||
15185 | |||
15186 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
15187 | set dummy ipcs; ac_word=$2 | ||
15188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15190 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
15191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15192 | else | ||
15193 | case $PROG_IPCS in | ||
15194 | [\\/]* | ?:[\\/]*) | ||
15195 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
15196 | ;; | ||
15197 | *) | ||
15198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15199 | for as_dir in $PATH | ||
15200 | do | ||
15201 | IFS=$as_save_IFS | ||
15202 | test -z "$as_dir" && as_dir=. | ||
15203 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15205 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
15206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15207 | break 2 | ||
15208 | fi | ||
15209 | done | ||
15210 | done | ||
15211 | |||
15212 | ;; | ||
15213 | esac | ||
15214 | fi | ||
15215 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
15216 | |||
15217 | if test -n "$PROG_IPCS"; then | ||
15218 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
15219 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
15220 | else | ||
15221 | echo "$as_me:$LINENO: result: no" >&5 | ||
15222 | echo "${ECHO_T}no" >&6 | ||
15223 | fi | ||
15224 | |||
15225 | if test -z "$PROG_IPCS" ; then | ||
15226 | PROG_IPCS="undef" | ||
15227 | fi | ||
15228 | |||
15229 | |||
15230 | |||
15231 | # Extract the first word of "tail", so it can be a program name with args. | ||
15232 | set dummy tail; ac_word=$2 | ||
15233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15235 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
15236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15237 | else | ||
15238 | case $PROG_TAIL in | ||
15239 | [\\/]* | ?:[\\/]*) | ||
15240 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
15241 | ;; | ||
15242 | *) | ||
15243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15244 | for as_dir in $PATH | ||
15245 | do | ||
15246 | IFS=$as_save_IFS | ||
15247 | test -z "$as_dir" && as_dir=. | ||
15248 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15249 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15250 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
15251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15252 | break 2 | ||
15253 | fi | ||
15254 | done | ||
15255 | done | ||
15256 | |||
15257 | ;; | ||
15258 | esac | ||
15259 | fi | ||
15260 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
15261 | |||
15262 | if test -n "$PROG_TAIL"; then | ||
15263 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
15264 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
15265 | else | ||
15266 | echo "$as_me:$LINENO: result: no" >&5 | ||
15267 | echo "${ECHO_T}no" >&6 | ||
15268 | fi | ||
15269 | |||
15270 | if test -z "$PROG_TAIL" ; then | ||
15271 | PROG_TAIL="undef" | ||
15272 | fi | ||
15273 | |||
15274 | |||
15275 | # restore PATH | ||
15276 | PATH=$OPATH | ||
15277 | |||
15278 | # Where does ssh-rand-helper get its randomness from? | ||
15279 | INSTALL_SSH_PRNG_CMDS="" | ||
15280 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
15281 | if test ! -z "$PRNGD_PORT" ; then | ||
15282 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
15283 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
15284 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
15285 | else | ||
15286 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
15287 | RAND_HELPER_CMDHASH=yes | ||
15288 | INSTALL_SSH_PRNG_CMDS="yes" | ||
15289 | fi | ||
15290 | fi | ||
15291 | |||
15292 | |||
15293 | |||
15294 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
15295 | if test ! -z "$SONY" ; then | ||
15296 | LIBS="$LIBS -liberty"; | ||
15297 | fi | ||
15298 | |||
15299 | # Checks for data types | ||
15300 | echo "$as_me:$LINENO: checking for char" >&5 | ||
15301 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
15302 | if test "${ac_cv_type_char+set}" = set; then | ||
15303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15304 | else | ||
15305 | cat >conftest.$ac_ext <<_ACEOF | ||
15306 | /* confdefs.h. */ | ||
15307 | _ACEOF | ||
15308 | cat confdefs.h >>conftest.$ac_ext | ||
15309 | cat >>conftest.$ac_ext <<_ACEOF | ||
15310 | /* end confdefs.h. */ | ||
15311 | $ac_includes_default | ||
15312 | int | ||
15313 | main () | ||
15314 | { | ||
15315 | if ((char *) 0) | ||
15316 | return 0; | ||
15317 | if (sizeof (char)) | ||
15318 | return 0; | ||
15319 | ; | ||
15320 | return 0; | ||
15321 | } | ||
15322 | _ACEOF | ||
15323 | rm -f conftest.$ac_objext | ||
15324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15325 | (eval $ac_compile) 2>conftest.er1 | ||
15326 | ac_status=$? | ||
15327 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15328 | rm -f conftest.er1 | ||
15329 | cat conftest.err >&5 | ||
15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15331 | (exit $ac_status); } && | ||
15332 | { ac_try='test -z "$ac_c_werror_flag" | ||
15333 | || test ! -s conftest.err' | ||
15334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15335 | (eval $ac_try) 2>&5 | ||
15336 | ac_status=$? | ||
15337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15338 | (exit $ac_status); }; } && | ||
15339 | { ac_try='test -s conftest.$ac_objext' | ||
15340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15341 | (eval $ac_try) 2>&5 | ||
15342 | ac_status=$? | ||
15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15344 | (exit $ac_status); }; }; then | ||
15345 | ac_cv_type_char=yes | ||
15346 | else | ||
15347 | echo "$as_me: failed program was:" >&5 | ||
15348 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15349 | |||
15350 | ac_cv_type_char=no | ||
15351 | fi | ||
15352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15353 | fi | ||
15354 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
15355 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
15356 | |||
15357 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
15358 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
15359 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
15360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15361 | else | ||
15362 | if test "$ac_cv_type_char" = yes; then | ||
15363 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15366 | # This bug is HP SR number 8606223364. | ||
15367 | if test "$cross_compiling" = yes; then | ||
15368 | # Depending upon the size, compute the lo and hi bounds. | ||
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 | $ac_includes_default | ||
15376 | int | ||
15377 | main () | ||
15378 | { | ||
15379 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
15380 | test_array [0] = 0 | ||
15381 | |||
15382 | ; | ||
15383 | return 0; | ||
15384 | } | ||
15385 | _ACEOF | ||
15386 | rm -f conftest.$ac_objext | ||
15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15388 | (eval $ac_compile) 2>conftest.er1 | ||
15389 | ac_status=$? | ||
15390 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15391 | rm -f conftest.er1 | ||
15392 | cat conftest.err >&5 | ||
15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15394 | (exit $ac_status); } && | ||
15395 | { ac_try='test -z "$ac_c_werror_flag" | ||
15396 | || test ! -s conftest.err' | ||
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15398 | (eval $ac_try) 2>&5 | ||
15399 | ac_status=$? | ||
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15401 | (exit $ac_status); }; } && | ||
15402 | { ac_try='test -s conftest.$ac_objext' | ||
15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15404 | (eval $ac_try) 2>&5 | ||
15405 | ac_status=$? | ||
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15407 | (exit $ac_status); }; }; then | ||
15408 | ac_lo=0 ac_mid=0 | ||
15409 | while :; do | ||
15410 | cat >conftest.$ac_ext <<_ACEOF | ||
15411 | /* confdefs.h. */ | ||
15412 | _ACEOF | ||
15413 | cat confdefs.h >>conftest.$ac_ext | ||
15414 | cat >>conftest.$ac_ext <<_ACEOF | ||
15415 | /* end confdefs.h. */ | ||
15416 | $ac_includes_default | ||
15417 | int | ||
15418 | main () | ||
15419 | { | ||
15420 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15421 | test_array [0] = 0 | ||
15422 | |||
15423 | ; | ||
15424 | return 0; | ||
15425 | } | ||
15426 | _ACEOF | ||
15427 | rm -f conftest.$ac_objext | ||
15428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15429 | (eval $ac_compile) 2>conftest.er1 | ||
15430 | ac_status=$? | ||
15431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15432 | rm -f conftest.er1 | ||
15433 | cat conftest.err >&5 | ||
15434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15435 | (exit $ac_status); } && | ||
15436 | { ac_try='test -z "$ac_c_werror_flag" | ||
15437 | || test ! -s conftest.err' | ||
15438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15439 | (eval $ac_try) 2>&5 | ||
15440 | ac_status=$? | ||
15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15442 | (exit $ac_status); }; } && | ||
15443 | { ac_try='test -s conftest.$ac_objext' | ||
15444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15445 | (eval $ac_try) 2>&5 | ||
15446 | ac_status=$? | ||
15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15448 | (exit $ac_status); }; }; then | ||
15449 | ac_hi=$ac_mid; break | ||
15450 | else | ||
15451 | echo "$as_me: failed program was:" >&5 | ||
15452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15453 | |||
15454 | ac_lo=`expr $ac_mid + 1` | ||
15455 | if test $ac_lo -le $ac_mid; then | ||
15456 | ac_lo= ac_hi= | ||
15457 | break | ||
15458 | fi | ||
15459 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15460 | fi | ||
15461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15462 | done | ||
15463 | else | ||
15464 | echo "$as_me: failed program was:" >&5 | ||
15465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15466 | |||
15467 | cat >conftest.$ac_ext <<_ACEOF | ||
15468 | /* confdefs.h. */ | ||
15469 | _ACEOF | ||
15470 | cat confdefs.h >>conftest.$ac_ext | ||
15471 | cat >>conftest.$ac_ext <<_ACEOF | ||
15472 | /* end confdefs.h. */ | ||
15473 | $ac_includes_default | ||
15474 | int | ||
15475 | main () | ||
15476 | { | ||
15477 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
15478 | test_array [0] = 0 | ||
15479 | |||
15480 | ; | ||
15481 | return 0; | ||
15482 | } | ||
15483 | _ACEOF | ||
15484 | rm -f conftest.$ac_objext | ||
15485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15486 | (eval $ac_compile) 2>conftest.er1 | ||
15487 | ac_status=$? | ||
15488 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15489 | rm -f conftest.er1 | ||
15490 | cat conftest.err >&5 | ||
15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15492 | (exit $ac_status); } && | ||
15493 | { ac_try='test -z "$ac_c_werror_flag" | ||
15494 | || test ! -s conftest.err' | ||
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15496 | (eval $ac_try) 2>&5 | ||
15497 | ac_status=$? | ||
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15499 | (exit $ac_status); }; } && | ||
15500 | { ac_try='test -s conftest.$ac_objext' | ||
15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15502 | (eval $ac_try) 2>&5 | ||
15503 | ac_status=$? | ||
15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15505 | (exit $ac_status); }; }; then | ||
15506 | ac_hi=-1 ac_mid=-1 | ||
15507 | while :; do | ||
15508 | cat >conftest.$ac_ext <<_ACEOF | ||
15509 | /* confdefs.h. */ | ||
15510 | _ACEOF | ||
15511 | cat confdefs.h >>conftest.$ac_ext | ||
15512 | cat >>conftest.$ac_ext <<_ACEOF | ||
15513 | /* end confdefs.h. */ | ||
15514 | $ac_includes_default | ||
15515 | int | ||
15516 | main () | ||
15517 | { | ||
15518 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
15519 | test_array [0] = 0 | ||
15520 | |||
15521 | ; | ||
15522 | return 0; | ||
15523 | } | ||
15524 | _ACEOF | ||
15525 | rm -f conftest.$ac_objext | ||
15526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15527 | (eval $ac_compile) 2>conftest.er1 | ||
15528 | ac_status=$? | ||
15529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15530 | rm -f conftest.er1 | ||
15531 | cat conftest.err >&5 | ||
15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15533 | (exit $ac_status); } && | ||
15534 | { ac_try='test -z "$ac_c_werror_flag" | ||
15535 | || test ! -s conftest.err' | ||
15536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15537 | (eval $ac_try) 2>&5 | ||
15538 | ac_status=$? | ||
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15540 | (exit $ac_status); }; } && | ||
15541 | { ac_try='test -s conftest.$ac_objext' | ||
15542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15543 | (eval $ac_try) 2>&5 | ||
15544 | ac_status=$? | ||
15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15546 | (exit $ac_status); }; }; then | ||
15547 | ac_lo=$ac_mid; break | ||
15548 | else | ||
15549 | echo "$as_me: failed program was:" >&5 | ||
15550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15551 | |||
15552 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15553 | if test $ac_mid -le $ac_hi; then | ||
15554 | ac_lo= ac_hi= | ||
15555 | break | ||
15556 | fi | ||
15557 | ac_mid=`expr 2 '*' $ac_mid` | ||
15558 | fi | ||
15559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15560 | done | ||
15561 | else | ||
15562 | echo "$as_me: failed program was:" >&5 | ||
15563 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15564 | |||
15565 | ac_lo= ac_hi= | ||
15566 | fi | ||
15567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15568 | fi | ||
15569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15570 | # Binary search between lo and hi bounds. | ||
15571 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15572 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15573 | cat >conftest.$ac_ext <<_ACEOF | ||
15574 | /* confdefs.h. */ | ||
15575 | _ACEOF | ||
15576 | cat confdefs.h >>conftest.$ac_ext | ||
15577 | cat >>conftest.$ac_ext <<_ACEOF | ||
15578 | /* end confdefs.h. */ | ||
15579 | $ac_includes_default | ||
15580 | int | ||
15581 | main () | ||
15582 | { | ||
15583 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15584 | test_array [0] = 0 | ||
15585 | |||
15586 | ; | ||
15587 | return 0; | ||
15588 | } | ||
15589 | _ACEOF | ||
15590 | rm -f conftest.$ac_objext | ||
15591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15592 | (eval $ac_compile) 2>conftest.er1 | ||
15593 | ac_status=$? | ||
15594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15595 | rm -f conftest.er1 | ||
15596 | cat conftest.err >&5 | ||
15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15598 | (exit $ac_status); } && | ||
15599 | { ac_try='test -z "$ac_c_werror_flag" | ||
15600 | || test ! -s conftest.err' | ||
15601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15602 | (eval $ac_try) 2>&5 | ||
15603 | ac_status=$? | ||
15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15605 | (exit $ac_status); }; } && | ||
15606 | { ac_try='test -s conftest.$ac_objext' | ||
15607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15608 | (eval $ac_try) 2>&5 | ||
15609 | ac_status=$? | ||
15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15611 | (exit $ac_status); }; }; then | ||
15612 | ac_hi=$ac_mid | ||
15613 | else | ||
15614 | echo "$as_me: failed program was:" >&5 | ||
15615 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15616 | |||
15617 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
15618 | fi | ||
15619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15620 | done | ||
15621 | case $ac_lo in | ||
15622 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
15623 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
15624 | See \`config.log' for more details." >&5 | ||
15625 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
15626 | See \`config.log' for more details." >&2;} | ||
15627 | { (exit 1); exit 1; }; } ;; | ||
15628 | esac | ||
15629 | else | ||
15630 | if test "$cross_compiling" = yes; then | ||
15631 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
15632 | See \`config.log' for more details." >&5 | ||
15633 | echo "$as_me: error: cannot run test program while cross compiling | ||
15634 | See \`config.log' for more details." >&2;} | ||
15635 | { (exit 1); exit 1; }; } | ||
15636 | else | ||
15637 | cat >conftest.$ac_ext <<_ACEOF | ||
15638 | /* confdefs.h. */ | ||
15639 | _ACEOF | ||
15640 | cat confdefs.h >>conftest.$ac_ext | ||
15641 | cat >>conftest.$ac_ext <<_ACEOF | ||
15642 | /* end confdefs.h. */ | ||
15643 | $ac_includes_default | ||
15644 | long longval () { return (long) (sizeof (char)); } | ||
15645 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
15646 | #include <stdio.h> | ||
15647 | #include <stdlib.h> | ||
15648 | int | ||
15649 | main () | ||
15650 | { | ||
15651 | |||
15652 | FILE *f = fopen ("conftest.val", "w"); | ||
15653 | if (! f) | ||
15654 | exit (1); | ||
15655 | if (((long) (sizeof (char))) < 0) | ||
15656 | { | ||
15657 | long i = longval (); | ||
15658 | if (i != ((long) (sizeof (char)))) | ||
15659 | exit (1); | ||
15660 | fprintf (f, "%ld\n", i); | ||
15661 | } | ||
15662 | else | ||
15663 | { | ||
15664 | unsigned long i = ulongval (); | ||
15665 | if (i != ((long) (sizeof (char)))) | ||
15666 | exit (1); | ||
15667 | fprintf (f, "%lu\n", i); | ||
15668 | } | ||
15669 | exit (ferror (f) || fclose (f) != 0); | ||
15670 | |||
15671 | ; | ||
15672 | return 0; | ||
15673 | } | ||
15674 | _ACEOF | ||
15675 | rm -f conftest$ac_exeext | ||
15676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15677 | (eval $ac_link) 2>&5 | ||
15678 | ac_status=$? | ||
15679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15682 | (eval $ac_try) 2>&5 | ||
15683 | ac_status=$? | ||
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15685 | (exit $ac_status); }; }; then | ||
15686 | ac_cv_sizeof_char=`cat conftest.val` | ||
15687 | else | ||
15688 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15689 | echo "$as_me: failed program was:" >&5 | ||
15690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15691 | |||
15692 | ( exit $ac_status ) | ||
15693 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
15694 | See \`config.log' for more details." >&5 | ||
15695 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
15696 | See \`config.log' for more details." >&2;} | ||
15697 | { (exit 1); exit 1; }; } | ||
15698 | fi | ||
15699 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15700 | fi | ||
15701 | fi | ||
15702 | rm -f conftest.val | ||
15703 | else | ||
15704 | ac_cv_sizeof_char=0 | ||
15705 | fi | ||
15706 | fi | ||
15707 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
15708 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
15709 | cat >>confdefs.h <<_ACEOF | ||
15710 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
15711 | _ACEOF | ||
15712 | |||
15713 | |||
15714 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
15715 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
15716 | if test "${ac_cv_type_short_int+set}" = set; then | ||
15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15718 | else | ||
15719 | cat >conftest.$ac_ext <<_ACEOF | ||
15720 | /* confdefs.h. */ | ||
15721 | _ACEOF | ||
15722 | cat confdefs.h >>conftest.$ac_ext | ||
15723 | cat >>conftest.$ac_ext <<_ACEOF | ||
15724 | /* end confdefs.h. */ | ||
15725 | $ac_includes_default | ||
15726 | int | ||
15727 | main () | ||
15728 | { | ||
15729 | if ((short int *) 0) | ||
15730 | return 0; | ||
15731 | if (sizeof (short int)) | ||
15732 | return 0; | ||
15733 | ; | ||
15734 | return 0; | ||
15735 | } | ||
15736 | _ACEOF | ||
15737 | rm -f conftest.$ac_objext | ||
15738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15739 | (eval $ac_compile) 2>conftest.er1 | ||
15740 | ac_status=$? | ||
15741 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15742 | rm -f conftest.er1 | ||
15743 | cat conftest.err >&5 | ||
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15745 | (exit $ac_status); } && | ||
15746 | { ac_try='test -z "$ac_c_werror_flag" | ||
15747 | || test ! -s conftest.err' | ||
15748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15749 | (eval $ac_try) 2>&5 | ||
15750 | ac_status=$? | ||
15751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15752 | (exit $ac_status); }; } && | ||
15753 | { ac_try='test -s conftest.$ac_objext' | ||
15754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15755 | (eval $ac_try) 2>&5 | ||
15756 | ac_status=$? | ||
15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15758 | (exit $ac_status); }; }; then | ||
15759 | ac_cv_type_short_int=yes | ||
15760 | else | ||
15761 | echo "$as_me: failed program was:" >&5 | ||
15762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15763 | |||
15764 | ac_cv_type_short_int=no | ||
15765 | fi | ||
15766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15767 | fi | ||
15768 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
15769 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
15770 | |||
15771 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
15772 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
15773 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
15774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15775 | else | ||
15776 | if test "$ac_cv_type_short_int" = yes; then | ||
15777 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15778 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15779 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15780 | # This bug is HP SR number 8606223364. | ||
15781 | if test "$cross_compiling" = yes; then | ||
15782 | # Depending upon the size, compute the lo and hi bounds. | ||
15783 | cat >conftest.$ac_ext <<_ACEOF | ||
15784 | /* confdefs.h. */ | ||
15785 | _ACEOF | ||
15786 | cat confdefs.h >>conftest.$ac_ext | ||
15787 | cat >>conftest.$ac_ext <<_ACEOF | ||
15788 | /* end confdefs.h. */ | ||
15789 | $ac_includes_default | ||
15790 | int | ||
15791 | main () | ||
15792 | { | ||
15793 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
15794 | test_array [0] = 0 | ||
15795 | |||
15796 | ; | ||
15797 | return 0; | ||
15798 | } | ||
15799 | _ACEOF | ||
15800 | rm -f conftest.$ac_objext | ||
15801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15802 | (eval $ac_compile) 2>conftest.er1 | ||
15803 | ac_status=$? | ||
15804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15805 | rm -f conftest.er1 | ||
15806 | cat conftest.err >&5 | ||
15807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15808 | (exit $ac_status); } && | ||
15809 | { ac_try='test -z "$ac_c_werror_flag" | ||
15810 | || test ! -s conftest.err' | ||
15811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15812 | (eval $ac_try) 2>&5 | ||
15813 | ac_status=$? | ||
15814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15815 | (exit $ac_status); }; } && | ||
15816 | { ac_try='test -s conftest.$ac_objext' | ||
15817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15818 | (eval $ac_try) 2>&5 | ||
15819 | ac_status=$? | ||
15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15821 | (exit $ac_status); }; }; then | ||
15822 | ac_lo=0 ac_mid=0 | ||
15823 | while :; do | ||
15824 | cat >conftest.$ac_ext <<_ACEOF | ||
15825 | /* confdefs.h. */ | ||
15826 | _ACEOF | ||
15827 | cat confdefs.h >>conftest.$ac_ext | ||
15828 | cat >>conftest.$ac_ext <<_ACEOF | ||
15829 | /* end confdefs.h. */ | ||
15830 | $ac_includes_default | ||
15831 | int | ||
15832 | main () | ||
15833 | { | ||
15834 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
15835 | test_array [0] = 0 | ||
15836 | |||
15837 | ; | ||
15838 | return 0; | ||
15839 | } | ||
15840 | _ACEOF | ||
15841 | rm -f conftest.$ac_objext | ||
15842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15843 | (eval $ac_compile) 2>conftest.er1 | ||
15844 | ac_status=$? | ||
15845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15846 | rm -f conftest.er1 | ||
15847 | cat conftest.err >&5 | ||
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15849 | (exit $ac_status); } && | ||
15850 | { ac_try='test -z "$ac_c_werror_flag" | ||
15851 | || test ! -s conftest.err' | ||
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15853 | (eval $ac_try) 2>&5 | ||
15854 | ac_status=$? | ||
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15856 | (exit $ac_status); }; } && | ||
15857 | { ac_try='test -s conftest.$ac_objext' | ||
15858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15859 | (eval $ac_try) 2>&5 | ||
15860 | ac_status=$? | ||
15861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15862 | (exit $ac_status); }; }; then | ||
15863 | ac_hi=$ac_mid; break | ||
15864 | else | ||
15865 | echo "$as_me: failed program was:" >&5 | ||
15866 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15867 | |||
15868 | ac_lo=`expr $ac_mid + 1` | ||
15869 | if test $ac_lo -le $ac_mid; then | ||
15870 | ac_lo= ac_hi= | ||
15871 | break | ||
15872 | fi | ||
15873 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15874 | fi | ||
15875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15876 | done | ||
15877 | else | ||
15878 | echo "$as_me: failed program was:" >&5 | ||
15879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15880 | |||
15881 | cat >conftest.$ac_ext <<_ACEOF | ||
15882 | /* confdefs.h. */ | ||
15883 | _ACEOF | ||
15884 | cat confdefs.h >>conftest.$ac_ext | ||
15885 | cat >>conftest.$ac_ext <<_ACEOF | ||
15886 | /* end confdefs.h. */ | ||
15887 | $ac_includes_default | ||
15888 | int | ||
15889 | main () | ||
15890 | { | ||
15891 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
15892 | test_array [0] = 0 | ||
15893 | |||
15894 | ; | ||
15895 | return 0; | ||
15896 | } | ||
15897 | _ACEOF | ||
15898 | rm -f conftest.$ac_objext | ||
15899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15900 | (eval $ac_compile) 2>conftest.er1 | ||
15901 | ac_status=$? | ||
15902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15903 | rm -f conftest.er1 | ||
15904 | cat conftest.err >&5 | ||
15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15906 | (exit $ac_status); } && | ||
15907 | { ac_try='test -z "$ac_c_werror_flag" | ||
15908 | || test ! -s conftest.err' | ||
15909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15910 | (eval $ac_try) 2>&5 | ||
15911 | ac_status=$? | ||
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15913 | (exit $ac_status); }; } && | ||
15914 | { ac_try='test -s conftest.$ac_objext' | ||
15915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15916 | (eval $ac_try) 2>&5 | ||
15917 | ac_status=$? | ||
15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15919 | (exit $ac_status); }; }; then | ||
15920 | ac_hi=-1 ac_mid=-1 | ||
15921 | while :; do | ||
15922 | cat >conftest.$ac_ext <<_ACEOF | ||
15923 | /* confdefs.h. */ | ||
15924 | _ACEOF | ||
15925 | cat confdefs.h >>conftest.$ac_ext | ||
15926 | cat >>conftest.$ac_ext <<_ACEOF | ||
15927 | /* end confdefs.h. */ | ||
15928 | $ac_includes_default | ||
15929 | int | ||
15930 | main () | ||
15931 | { | ||
15932 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
15933 | test_array [0] = 0 | ||
15934 | |||
15935 | ; | ||
15936 | return 0; | ||
15937 | } | ||
15938 | _ACEOF | ||
15939 | rm -f conftest.$ac_objext | ||
15940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15941 | (eval $ac_compile) 2>conftest.er1 | ||
15942 | ac_status=$? | ||
15943 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15944 | rm -f conftest.er1 | ||
15945 | cat conftest.err >&5 | ||
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15947 | (exit $ac_status); } && | ||
15948 | { ac_try='test -z "$ac_c_werror_flag" | ||
15949 | || test ! -s conftest.err' | ||
15950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15951 | (eval $ac_try) 2>&5 | ||
15952 | ac_status=$? | ||
15953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15954 | (exit $ac_status); }; } && | ||
15955 | { ac_try='test -s conftest.$ac_objext' | ||
15956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15957 | (eval $ac_try) 2>&5 | ||
15958 | ac_status=$? | ||
15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15960 | (exit $ac_status); }; }; then | ||
15961 | ac_lo=$ac_mid; break | ||
15962 | else | ||
15963 | echo "$as_me: failed program was:" >&5 | ||
15964 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15965 | |||
15966 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15967 | if test $ac_mid -le $ac_hi; then | ||
15968 | ac_lo= ac_hi= | ||
15969 | break | ||
15970 | fi | ||
15971 | ac_mid=`expr 2 '*' $ac_mid` | ||
15972 | fi | ||
15973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15974 | done | ||
15975 | else | ||
15976 | echo "$as_me: failed program was:" >&5 | ||
15977 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15978 | |||
15979 | ac_lo= ac_hi= | ||
15980 | fi | ||
15981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15982 | fi | ||
15983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15984 | # Binary search between lo and hi bounds. | ||
15985 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15986 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15987 | cat >conftest.$ac_ext <<_ACEOF | ||
15988 | /* confdefs.h. */ | ||
15989 | _ACEOF | ||
15990 | cat confdefs.h >>conftest.$ac_ext | ||
15991 | cat >>conftest.$ac_ext <<_ACEOF | ||
15992 | /* end confdefs.h. */ | ||
15993 | $ac_includes_default | ||
15994 | int | ||
15995 | main () | ||
15996 | { | ||
15997 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
15998 | test_array [0] = 0 | ||
15999 | |||
16000 | ; | ||
16001 | return 0; | ||
16002 | } | ||
16003 | _ACEOF | ||
16004 | rm -f conftest.$ac_objext | ||
16005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16006 | (eval $ac_compile) 2>conftest.er1 | ||
16007 | ac_status=$? | ||
16008 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16009 | rm -f conftest.er1 | ||
16010 | cat conftest.err >&5 | ||
16011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16012 | (exit $ac_status); } && | ||
16013 | { ac_try='test -z "$ac_c_werror_flag" | ||
16014 | || test ! -s conftest.err' | ||
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16016 | (eval $ac_try) 2>&5 | ||
16017 | ac_status=$? | ||
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16019 | (exit $ac_status); }; } && | ||
16020 | { ac_try='test -s conftest.$ac_objext' | ||
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16022 | (eval $ac_try) 2>&5 | ||
16023 | ac_status=$? | ||
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16025 | (exit $ac_status); }; }; then | ||
16026 | ac_hi=$ac_mid | ||
16027 | else | ||
16028 | echo "$as_me: failed program was:" >&5 | ||
16029 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16030 | |||
16031 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16032 | fi | ||
16033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16034 | done | ||
16035 | case $ac_lo in | ||
16036 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
16037 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
16038 | See \`config.log' for more details." >&5 | ||
16039 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
16040 | See \`config.log' for more details." >&2;} | ||
16041 | { (exit 1); exit 1; }; } ;; | ||
16042 | esac | ||
16043 | else | ||
16044 | if test "$cross_compiling" = yes; then | ||
16045 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16046 | See \`config.log' for more details." >&5 | ||
16047 | echo "$as_me: error: cannot run test program while cross compiling | ||
16048 | See \`config.log' for more details." >&2;} | ||
16049 | { (exit 1); exit 1; }; } | ||
16050 | else | ||
16051 | cat >conftest.$ac_ext <<_ACEOF | ||
16052 | /* confdefs.h. */ | ||
16053 | _ACEOF | ||
16054 | cat confdefs.h >>conftest.$ac_ext | ||
16055 | cat >>conftest.$ac_ext <<_ACEOF | ||
16056 | /* end confdefs.h. */ | ||
16057 | $ac_includes_default | ||
16058 | long longval () { return (long) (sizeof (short int)); } | ||
16059 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
16060 | #include <stdio.h> | ||
16061 | #include <stdlib.h> | ||
16062 | int | ||
16063 | main () | ||
16064 | { | ||
16065 | |||
16066 | FILE *f = fopen ("conftest.val", "w"); | ||
16067 | if (! f) | ||
16068 | exit (1); | ||
16069 | if (((long) (sizeof (short int))) < 0) | ||
16070 | { | ||
16071 | long i = longval (); | ||
16072 | if (i != ((long) (sizeof (short int)))) | ||
16073 | exit (1); | ||
16074 | fprintf (f, "%ld\n", i); | ||
16075 | } | ||
16076 | else | ||
16077 | { | ||
16078 | unsigned long i = ulongval (); | ||
16079 | if (i != ((long) (sizeof (short int)))) | ||
16080 | exit (1); | ||
16081 | fprintf (f, "%lu\n", i); | ||
16082 | } | ||
16083 | exit (ferror (f) || fclose (f) != 0); | ||
16084 | |||
16085 | ; | ||
16086 | return 0; | ||
16087 | } | ||
16088 | _ACEOF | ||
16089 | rm -f conftest$ac_exeext | ||
16090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16091 | (eval $ac_link) 2>&5 | ||
16092 | ac_status=$? | ||
16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16096 | (eval $ac_try) 2>&5 | ||
16097 | ac_status=$? | ||
16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16099 | (exit $ac_status); }; }; then | ||
16100 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
16101 | else | ||
16102 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16103 | echo "$as_me: failed program was:" >&5 | ||
16104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16105 | |||
16106 | ( exit $ac_status ) | ||
16107 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
16108 | See \`config.log' for more details." >&5 | ||
16109 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
16110 | See \`config.log' for more details." >&2;} | ||
16111 | { (exit 1); exit 1; }; } | ||
16112 | fi | ||
16113 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16114 | fi | ||
16115 | fi | ||
16116 | rm -f conftest.val | ||
16117 | else | ||
16118 | ac_cv_sizeof_short_int=0 | ||
16119 | fi | ||
16120 | fi | ||
16121 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
16122 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
16123 | cat >>confdefs.h <<_ACEOF | ||
16124 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
16125 | _ACEOF | ||
16126 | |||
16127 | |||
16128 | echo "$as_me:$LINENO: checking for int" >&5 | ||
16129 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
16130 | if test "${ac_cv_type_int+set}" = set; then | ||
16131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16132 | else | ||
16133 | cat >conftest.$ac_ext <<_ACEOF | ||
16134 | /* confdefs.h. */ | ||
16135 | _ACEOF | ||
16136 | cat confdefs.h >>conftest.$ac_ext | ||
16137 | cat >>conftest.$ac_ext <<_ACEOF | ||
16138 | /* end confdefs.h. */ | ||
16139 | $ac_includes_default | ||
16140 | int | ||
16141 | main () | ||
16142 | { | ||
16143 | if ((int *) 0) | ||
16144 | return 0; | ||
16145 | if (sizeof (int)) | ||
16146 | return 0; | ||
16147 | ; | ||
16148 | return 0; | ||
16149 | } | ||
16150 | _ACEOF | ||
16151 | rm -f conftest.$ac_objext | ||
16152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16153 | (eval $ac_compile) 2>conftest.er1 | ||
16154 | ac_status=$? | ||
16155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16156 | rm -f conftest.er1 | ||
16157 | cat conftest.err >&5 | ||
16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16159 | (exit $ac_status); } && | ||
16160 | { ac_try='test -z "$ac_c_werror_flag" | ||
16161 | || test ! -s conftest.err' | ||
16162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16163 | (eval $ac_try) 2>&5 | ||
16164 | ac_status=$? | ||
16165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16166 | (exit $ac_status); }; } && | ||
16167 | { ac_try='test -s conftest.$ac_objext' | ||
16168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16169 | (eval $ac_try) 2>&5 | ||
16170 | ac_status=$? | ||
16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16172 | (exit $ac_status); }; }; then | ||
16173 | ac_cv_type_int=yes | ||
16174 | else | ||
16175 | echo "$as_me: failed program was:" >&5 | ||
16176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16177 | |||
16178 | ac_cv_type_int=no | ||
16179 | fi | ||
16180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16181 | fi | ||
16182 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
16183 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
16184 | |||
16185 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
16186 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
16187 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
16188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16189 | else | ||
16190 | if test "$ac_cv_type_int" = yes; then | ||
16191 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16192 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16193 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16194 | # This bug is HP SR number 8606223364. | ||
16195 | if test "$cross_compiling" = yes; then | ||
16196 | # Depending upon the size, compute the lo and hi bounds. | ||
16197 | cat >conftest.$ac_ext <<_ACEOF | ||
16198 | /* confdefs.h. */ | ||
16199 | _ACEOF | ||
16200 | cat confdefs.h >>conftest.$ac_ext | ||
16201 | cat >>conftest.$ac_ext <<_ACEOF | ||
16202 | /* end confdefs.h. */ | ||
16203 | $ac_includes_default | ||
16204 | int | ||
16205 | main () | ||
16206 | { | ||
16207 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
16208 | test_array [0] = 0 | ||
16209 | |||
16210 | ; | ||
16211 | return 0; | ||
16212 | } | ||
16213 | _ACEOF | ||
16214 | rm -f conftest.$ac_objext | ||
16215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16216 | (eval $ac_compile) 2>conftest.er1 | ||
16217 | ac_status=$? | ||
16218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16219 | rm -f conftest.er1 | ||
16220 | cat conftest.err >&5 | ||
16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16222 | (exit $ac_status); } && | ||
16223 | { ac_try='test -z "$ac_c_werror_flag" | ||
16224 | || test ! -s conftest.err' | ||
16225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16226 | (eval $ac_try) 2>&5 | ||
16227 | ac_status=$? | ||
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16229 | (exit $ac_status); }; } && | ||
16230 | { ac_try='test -s conftest.$ac_objext' | ||
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16232 | (eval $ac_try) 2>&5 | ||
16233 | ac_status=$? | ||
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16235 | (exit $ac_status); }; }; then | ||
16236 | ac_lo=0 ac_mid=0 | ||
16237 | while :; do | ||
16238 | cat >conftest.$ac_ext <<_ACEOF | ||
16239 | /* confdefs.h. */ | ||
16240 | _ACEOF | ||
16241 | cat confdefs.h >>conftest.$ac_ext | ||
16242 | cat >>conftest.$ac_ext <<_ACEOF | ||
16243 | /* end confdefs.h. */ | ||
16244 | $ac_includes_default | ||
16245 | int | ||
16246 | main () | ||
16247 | { | ||
16248 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16249 | test_array [0] = 0 | ||
16250 | |||
16251 | ; | ||
16252 | return 0; | ||
16253 | } | ||
16254 | _ACEOF | ||
16255 | rm -f conftest.$ac_objext | ||
16256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16257 | (eval $ac_compile) 2>conftest.er1 | ||
16258 | ac_status=$? | ||
16259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16260 | rm -f conftest.er1 | ||
16261 | cat conftest.err >&5 | ||
16262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16263 | (exit $ac_status); } && | ||
16264 | { ac_try='test -z "$ac_c_werror_flag" | ||
16265 | || test ! -s conftest.err' | ||
16266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16267 | (eval $ac_try) 2>&5 | ||
16268 | ac_status=$? | ||
16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16270 | (exit $ac_status); }; } && | ||
16271 | { ac_try='test -s conftest.$ac_objext' | ||
16272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16273 | (eval $ac_try) 2>&5 | ||
16274 | ac_status=$? | ||
16275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16276 | (exit $ac_status); }; }; then | ||
16277 | ac_hi=$ac_mid; break | ||
16278 | else | ||
16279 | echo "$as_me: failed program was:" >&5 | ||
16280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16281 | |||
16282 | ac_lo=`expr $ac_mid + 1` | ||
16283 | if test $ac_lo -le $ac_mid; then | ||
16284 | ac_lo= ac_hi= | ||
16285 | break | ||
16286 | fi | ||
16287 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16288 | fi | ||
16289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16290 | done | ||
16291 | else | ||
16292 | echo "$as_me: failed program was:" >&5 | ||
16293 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16294 | |||
16295 | cat >conftest.$ac_ext <<_ACEOF | ||
16296 | /* confdefs.h. */ | ||
16297 | _ACEOF | ||
16298 | cat confdefs.h >>conftest.$ac_ext | ||
16299 | cat >>conftest.$ac_ext <<_ACEOF | ||
16300 | /* end confdefs.h. */ | ||
16301 | $ac_includes_default | ||
16302 | int | ||
16303 | main () | ||
16304 | { | ||
16305 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
16306 | test_array [0] = 0 | ||
16307 | |||
16308 | ; | ||
16309 | return 0; | ||
16310 | } | ||
16311 | _ACEOF | ||
16312 | rm -f conftest.$ac_objext | ||
16313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16314 | (eval $ac_compile) 2>conftest.er1 | ||
16315 | ac_status=$? | ||
16316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16317 | rm -f conftest.er1 | ||
16318 | cat conftest.err >&5 | ||
16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16320 | (exit $ac_status); } && | ||
16321 | { ac_try='test -z "$ac_c_werror_flag" | ||
16322 | || test ! -s conftest.err' | ||
16323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16324 | (eval $ac_try) 2>&5 | ||
16325 | ac_status=$? | ||
16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16327 | (exit $ac_status); }; } && | ||
16328 | { ac_try='test -s conftest.$ac_objext' | ||
16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16330 | (eval $ac_try) 2>&5 | ||
16331 | ac_status=$? | ||
16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16333 | (exit $ac_status); }; }; then | ||
16334 | ac_hi=-1 ac_mid=-1 | ||
16335 | while :; do | ||
16336 | cat >conftest.$ac_ext <<_ACEOF | ||
16337 | /* confdefs.h. */ | ||
16338 | _ACEOF | ||
16339 | cat confdefs.h >>conftest.$ac_ext | ||
16340 | cat >>conftest.$ac_ext <<_ACEOF | ||
16341 | /* end confdefs.h. */ | ||
16342 | $ac_includes_default | ||
16343 | int | ||
16344 | main () | ||
16345 | { | ||
16346 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
16347 | test_array [0] = 0 | ||
16348 | |||
16349 | ; | ||
16350 | return 0; | ||
16351 | } | ||
16352 | _ACEOF | ||
16353 | rm -f conftest.$ac_objext | ||
16354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16355 | (eval $ac_compile) 2>conftest.er1 | ||
16356 | ac_status=$? | ||
16357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16358 | rm -f conftest.er1 | ||
16359 | cat conftest.err >&5 | ||
16360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16361 | (exit $ac_status); } && | ||
16362 | { ac_try='test -z "$ac_c_werror_flag" | ||
16363 | || test ! -s conftest.err' | ||
16364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16365 | (eval $ac_try) 2>&5 | ||
16366 | ac_status=$? | ||
16367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16368 | (exit $ac_status); }; } && | ||
16369 | { ac_try='test -s conftest.$ac_objext' | ||
16370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16371 | (eval $ac_try) 2>&5 | ||
16372 | ac_status=$? | ||
16373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16374 | (exit $ac_status); }; }; then | ||
16375 | ac_lo=$ac_mid; break | ||
16376 | else | ||
16377 | echo "$as_me: failed program was:" >&5 | ||
16378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16379 | |||
16380 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16381 | if test $ac_mid -le $ac_hi; then | ||
16382 | ac_lo= ac_hi= | ||
16383 | break | ||
16384 | fi | ||
16385 | ac_mid=`expr 2 '*' $ac_mid` | ||
16386 | fi | ||
16387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16388 | done | ||
16389 | else | ||
16390 | echo "$as_me: failed program was:" >&5 | ||
16391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16392 | |||
16393 | ac_lo= ac_hi= | ||
16394 | fi | ||
16395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16396 | fi | ||
16397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16398 | # Binary search between lo and hi bounds. | ||
16399 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16400 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16401 | cat >conftest.$ac_ext <<_ACEOF | ||
16402 | /* confdefs.h. */ | ||
16403 | _ACEOF | ||
16404 | cat confdefs.h >>conftest.$ac_ext | ||
16405 | cat >>conftest.$ac_ext <<_ACEOF | ||
16406 | /* end confdefs.h. */ | ||
16407 | $ac_includes_default | ||
16408 | int | ||
16409 | main () | ||
16410 | { | ||
16411 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16412 | test_array [0] = 0 | ||
16413 | |||
16414 | ; | ||
16415 | return 0; | ||
16416 | } | ||
16417 | _ACEOF | ||
16418 | rm -f conftest.$ac_objext | ||
16419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16420 | (eval $ac_compile) 2>conftest.er1 | ||
16421 | ac_status=$? | ||
16422 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16423 | rm -f conftest.er1 | ||
16424 | cat conftest.err >&5 | ||
16425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16426 | (exit $ac_status); } && | ||
16427 | { ac_try='test -z "$ac_c_werror_flag" | ||
16428 | || test ! -s conftest.err' | ||
16429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16430 | (eval $ac_try) 2>&5 | ||
16431 | ac_status=$? | ||
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16433 | (exit $ac_status); }; } && | ||
16434 | { ac_try='test -s conftest.$ac_objext' | ||
16435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16436 | (eval $ac_try) 2>&5 | ||
16437 | ac_status=$? | ||
16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16439 | (exit $ac_status); }; }; then | ||
16440 | ac_hi=$ac_mid | ||
16441 | else | ||
16442 | echo "$as_me: failed program was:" >&5 | ||
16443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16444 | |||
16445 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16446 | fi | ||
16447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16448 | done | ||
16449 | case $ac_lo in | ||
16450 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
16451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16452 | See \`config.log' for more details." >&5 | ||
16453 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16454 | See \`config.log' for more details." >&2;} | ||
16455 | { (exit 1); exit 1; }; } ;; | ||
16456 | esac | ||
16457 | else | ||
16458 | if test "$cross_compiling" = yes; then | ||
16459 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16460 | See \`config.log' for more details." >&5 | ||
16461 | echo "$as_me: error: cannot run test program while cross compiling | ||
16462 | See \`config.log' for more details." >&2;} | ||
16463 | { (exit 1); exit 1; }; } | ||
16464 | else | ||
16465 | cat >conftest.$ac_ext <<_ACEOF | ||
16466 | /* confdefs.h. */ | ||
16467 | _ACEOF | ||
16468 | cat confdefs.h >>conftest.$ac_ext | ||
16469 | cat >>conftest.$ac_ext <<_ACEOF | ||
16470 | /* end confdefs.h. */ | ||
16471 | $ac_includes_default | ||
16472 | long longval () { return (long) (sizeof (int)); } | ||
16473 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
16474 | #include <stdio.h> | ||
16475 | #include <stdlib.h> | ||
16476 | int | ||
16477 | main () | ||
16478 | { | ||
16479 | |||
16480 | FILE *f = fopen ("conftest.val", "w"); | ||
16481 | if (! f) | ||
16482 | exit (1); | ||
16483 | if (((long) (sizeof (int))) < 0) | ||
16484 | { | ||
16485 | long i = longval (); | ||
16486 | if (i != ((long) (sizeof (int)))) | ||
16487 | exit (1); | ||
16488 | fprintf (f, "%ld\n", i); | ||
16489 | } | ||
16490 | else | ||
16491 | { | ||
16492 | unsigned long i = ulongval (); | ||
16493 | if (i != ((long) (sizeof (int)))) | ||
16494 | exit (1); | ||
16495 | fprintf (f, "%lu\n", i); | ||
16496 | } | ||
16497 | exit (ferror (f) || fclose (f) != 0); | ||
16498 | |||
16499 | ; | ||
16500 | return 0; | ||
16501 | } | ||
16502 | _ACEOF | ||
16503 | rm -f conftest$ac_exeext | ||
16504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16505 | (eval $ac_link) 2>&5 | ||
16506 | ac_status=$? | ||
16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16510 | (eval $ac_try) 2>&5 | ||
16511 | ac_status=$? | ||
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16513 | (exit $ac_status); }; }; then | ||
16514 | ac_cv_sizeof_int=`cat conftest.val` | ||
16515 | else | ||
16516 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16517 | echo "$as_me: failed program was:" >&5 | ||
16518 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16519 | |||
16520 | ( exit $ac_status ) | ||
16521 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16522 | See \`config.log' for more details." >&5 | ||
16523 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16524 | See \`config.log' for more details." >&2;} | ||
16525 | { (exit 1); exit 1; }; } | ||
16526 | fi | ||
16527 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16528 | fi | ||
16529 | fi | ||
16530 | rm -f conftest.val | ||
16531 | else | ||
16532 | ac_cv_sizeof_int=0 | ||
16533 | fi | ||
16534 | fi | ||
16535 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
16536 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
16537 | cat >>confdefs.h <<_ACEOF | ||
16538 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
16539 | _ACEOF | ||
16540 | |||
16541 | |||
16542 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
16543 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
16544 | if test "${ac_cv_type_long_int+set}" = set; then | ||
16545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16546 | else | ||
16547 | cat >conftest.$ac_ext <<_ACEOF | ||
16548 | /* confdefs.h. */ | ||
16549 | _ACEOF | ||
16550 | cat confdefs.h >>conftest.$ac_ext | ||
16551 | cat >>conftest.$ac_ext <<_ACEOF | ||
16552 | /* end confdefs.h. */ | ||
16553 | $ac_includes_default | ||
16554 | int | ||
16555 | main () | ||
16556 | { | ||
16557 | if ((long int *) 0) | ||
16558 | return 0; | ||
16559 | if (sizeof (long int)) | ||
16560 | return 0; | ||
16561 | ; | ||
16562 | return 0; | ||
16563 | } | ||
16564 | _ACEOF | ||
16565 | rm -f conftest.$ac_objext | ||
16566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16567 | (eval $ac_compile) 2>conftest.er1 | ||
16568 | ac_status=$? | ||
16569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16570 | rm -f conftest.er1 | ||
16571 | cat conftest.err >&5 | ||
16572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16573 | (exit $ac_status); } && | ||
16574 | { ac_try='test -z "$ac_c_werror_flag" | ||
16575 | || test ! -s conftest.err' | ||
16576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16577 | (eval $ac_try) 2>&5 | ||
16578 | ac_status=$? | ||
16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16580 | (exit $ac_status); }; } && | ||
16581 | { ac_try='test -s conftest.$ac_objext' | ||
16582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16583 | (eval $ac_try) 2>&5 | ||
16584 | ac_status=$? | ||
16585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16586 | (exit $ac_status); }; }; then | ||
16587 | ac_cv_type_long_int=yes | ||
16588 | else | ||
16589 | echo "$as_me: failed program was:" >&5 | ||
16590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16591 | |||
16592 | ac_cv_type_long_int=no | ||
16593 | fi | ||
16594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16595 | fi | ||
16596 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
16597 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
16598 | |||
16599 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
16600 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
16601 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
16602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16603 | else | ||
16604 | if test "$ac_cv_type_long_int" = yes; then | ||
16605 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16606 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16607 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16608 | # This bug is HP SR number 8606223364. | ||
16609 | if test "$cross_compiling" = yes; then | ||
16610 | # Depending upon the size, compute the lo and hi bounds. | ||
16611 | cat >conftest.$ac_ext <<_ACEOF | ||
16612 | /* confdefs.h. */ | ||
16613 | _ACEOF | ||
16614 | cat confdefs.h >>conftest.$ac_ext | ||
16615 | cat >>conftest.$ac_ext <<_ACEOF | ||
16616 | /* end confdefs.h. */ | ||
16617 | $ac_includes_default | ||
16618 | int | ||
16619 | main () | ||
16620 | { | ||
16621 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
16622 | test_array [0] = 0 | ||
16623 | |||
16624 | ; | ||
16625 | return 0; | ||
16626 | } | ||
16627 | _ACEOF | ||
16628 | rm -f conftest.$ac_objext | ||
16629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16630 | (eval $ac_compile) 2>conftest.er1 | ||
16631 | ac_status=$? | ||
16632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16633 | rm -f conftest.er1 | ||
16634 | cat conftest.err >&5 | ||
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16636 | (exit $ac_status); } && | ||
16637 | { ac_try='test -z "$ac_c_werror_flag" | ||
16638 | || test ! -s conftest.err' | ||
16639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16640 | (eval $ac_try) 2>&5 | ||
16641 | ac_status=$? | ||
16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16643 | (exit $ac_status); }; } && | ||
16644 | { ac_try='test -s conftest.$ac_objext' | ||
16645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16646 | (eval $ac_try) 2>&5 | ||
16647 | ac_status=$? | ||
16648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16649 | (exit $ac_status); }; }; then | ||
16650 | ac_lo=0 ac_mid=0 | ||
16651 | while :; do | ||
16652 | cat >conftest.$ac_ext <<_ACEOF | ||
16653 | /* confdefs.h. */ | ||
16654 | _ACEOF | ||
16655 | cat confdefs.h >>conftest.$ac_ext | ||
16656 | cat >>conftest.$ac_ext <<_ACEOF | ||
16657 | /* end confdefs.h. */ | ||
16658 | $ac_includes_default | ||
16659 | int | ||
16660 | main () | ||
16661 | { | ||
16662 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
16663 | test_array [0] = 0 | ||
16664 | |||
16665 | ; | ||
16666 | return 0; | ||
16667 | } | ||
16668 | _ACEOF | ||
16669 | rm -f conftest.$ac_objext | ||
16670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16671 | (eval $ac_compile) 2>conftest.er1 | ||
16672 | ac_status=$? | ||
16673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16674 | rm -f conftest.er1 | ||
16675 | cat conftest.err >&5 | ||
16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16677 | (exit $ac_status); } && | ||
16678 | { ac_try='test -z "$ac_c_werror_flag" | ||
16679 | || test ! -s conftest.err' | ||
16680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16681 | (eval $ac_try) 2>&5 | ||
16682 | ac_status=$? | ||
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16684 | (exit $ac_status); }; } && | ||
16685 | { ac_try='test -s conftest.$ac_objext' | ||
16686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16687 | (eval $ac_try) 2>&5 | ||
16688 | ac_status=$? | ||
16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16690 | (exit $ac_status); }; }; then | ||
16691 | ac_hi=$ac_mid; break | ||
16692 | else | ||
16693 | echo "$as_me: failed program was:" >&5 | ||
16694 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16695 | |||
16696 | ac_lo=`expr $ac_mid + 1` | ||
16697 | if test $ac_lo -le $ac_mid; then | ||
16698 | ac_lo= ac_hi= | ||
16699 | break | ||
16700 | fi | ||
16701 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16702 | fi | ||
16703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16704 | done | ||
16705 | else | ||
16706 | echo "$as_me: failed program was:" >&5 | ||
16707 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16708 | |||
16709 | cat >conftest.$ac_ext <<_ACEOF | ||
16710 | /* confdefs.h. */ | ||
16711 | _ACEOF | ||
16712 | cat confdefs.h >>conftest.$ac_ext | ||
16713 | cat >>conftest.$ac_ext <<_ACEOF | ||
16714 | /* end confdefs.h. */ | ||
16715 | $ac_includes_default | ||
16716 | int | ||
16717 | main () | ||
16718 | { | ||
16719 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
16720 | test_array [0] = 0 | ||
16721 | |||
16722 | ; | ||
16723 | return 0; | ||
16724 | } | ||
16725 | _ACEOF | ||
16726 | rm -f conftest.$ac_objext | ||
16727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16728 | (eval $ac_compile) 2>conftest.er1 | ||
16729 | ac_status=$? | ||
16730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16731 | rm -f conftest.er1 | ||
16732 | cat conftest.err >&5 | ||
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16734 | (exit $ac_status); } && | ||
16735 | { ac_try='test -z "$ac_c_werror_flag" | ||
16736 | || test ! -s conftest.err' | ||
16737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16738 | (eval $ac_try) 2>&5 | ||
16739 | ac_status=$? | ||
16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16741 | (exit $ac_status); }; } && | ||
16742 | { ac_try='test -s conftest.$ac_objext' | ||
16743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16744 | (eval $ac_try) 2>&5 | ||
16745 | ac_status=$? | ||
16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16747 | (exit $ac_status); }; }; then | ||
16748 | ac_hi=-1 ac_mid=-1 | ||
16749 | while :; do | ||
16750 | cat >conftest.$ac_ext <<_ACEOF | ||
16751 | /* confdefs.h. */ | ||
16752 | _ACEOF | ||
16753 | cat confdefs.h >>conftest.$ac_ext | ||
16754 | cat >>conftest.$ac_ext <<_ACEOF | ||
16755 | /* end confdefs.h. */ | ||
16756 | $ac_includes_default | ||
16757 | int | ||
16758 | main () | ||
16759 | { | ||
16760 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
16761 | test_array [0] = 0 | ||
16762 | |||
16763 | ; | ||
16764 | return 0; | ||
16765 | } | ||
16766 | _ACEOF | ||
16767 | rm -f conftest.$ac_objext | ||
16768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16769 | (eval $ac_compile) 2>conftest.er1 | ||
16770 | ac_status=$? | ||
16771 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16772 | rm -f conftest.er1 | ||
16773 | cat conftest.err >&5 | ||
16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16775 | (exit $ac_status); } && | ||
16776 | { ac_try='test -z "$ac_c_werror_flag" | ||
16777 | || test ! -s conftest.err' | ||
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16779 | (eval $ac_try) 2>&5 | ||
16780 | ac_status=$? | ||
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16782 | (exit $ac_status); }; } && | ||
16783 | { ac_try='test -s conftest.$ac_objext' | ||
16784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16785 | (eval $ac_try) 2>&5 | ||
16786 | ac_status=$? | ||
16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16788 | (exit $ac_status); }; }; then | ||
16789 | ac_lo=$ac_mid; break | ||
16790 | else | ||
16791 | echo "$as_me: failed program was:" >&5 | ||
16792 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16793 | |||
16794 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16795 | if test $ac_mid -le $ac_hi; then | ||
16796 | ac_lo= ac_hi= | ||
16797 | break | ||
16798 | fi | ||
16799 | ac_mid=`expr 2 '*' $ac_mid` | ||
16800 | fi | ||
16801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16802 | done | ||
16803 | else | ||
16804 | echo "$as_me: failed program was:" >&5 | ||
16805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16806 | |||
16807 | ac_lo= ac_hi= | ||
16808 | fi | ||
16809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16810 | fi | ||
16811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16812 | # Binary search between lo and hi bounds. | ||
16813 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16814 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16815 | cat >conftest.$ac_ext <<_ACEOF | ||
16816 | /* confdefs.h. */ | ||
16817 | _ACEOF | ||
16818 | cat confdefs.h >>conftest.$ac_ext | ||
16819 | cat >>conftest.$ac_ext <<_ACEOF | ||
16820 | /* end confdefs.h. */ | ||
16821 | $ac_includes_default | ||
16822 | int | ||
16823 | main () | ||
16824 | { | ||
16825 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
16826 | test_array [0] = 0 | ||
16827 | |||
16828 | ; | ||
16829 | return 0; | ||
16830 | } | ||
16831 | _ACEOF | ||
16832 | rm -f conftest.$ac_objext | ||
16833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16834 | (eval $ac_compile) 2>conftest.er1 | ||
16835 | ac_status=$? | ||
16836 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16837 | rm -f conftest.er1 | ||
16838 | cat conftest.err >&5 | ||
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16840 | (exit $ac_status); } && | ||
16841 | { ac_try='test -z "$ac_c_werror_flag" | ||
16842 | || test ! -s conftest.err' | ||
16843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16844 | (eval $ac_try) 2>&5 | ||
16845 | ac_status=$? | ||
16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16847 | (exit $ac_status); }; } && | ||
16848 | { ac_try='test -s conftest.$ac_objext' | ||
16849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16850 | (eval $ac_try) 2>&5 | ||
16851 | ac_status=$? | ||
16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16853 | (exit $ac_status); }; }; then | ||
16854 | ac_hi=$ac_mid | ||
16855 | else | ||
16856 | echo "$as_me: failed program was:" >&5 | ||
16857 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16858 | |||
16859 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16860 | fi | ||
16861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16862 | done | ||
16863 | case $ac_lo in | ||
16864 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
16865 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
16866 | See \`config.log' for more details." >&5 | ||
16867 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
16868 | See \`config.log' for more details." >&2;} | ||
16869 | { (exit 1); exit 1; }; } ;; | ||
16870 | esac | ||
16871 | else | ||
16872 | if test "$cross_compiling" = yes; then | ||
16873 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16874 | See \`config.log' for more details." >&5 | ||
16875 | echo "$as_me: error: cannot run test program while cross compiling | ||
16876 | See \`config.log' for more details." >&2;} | ||
16877 | { (exit 1); exit 1; }; } | ||
16878 | else | ||
16879 | cat >conftest.$ac_ext <<_ACEOF | ||
16880 | /* confdefs.h. */ | ||
16881 | _ACEOF | ||
16882 | cat confdefs.h >>conftest.$ac_ext | ||
16883 | cat >>conftest.$ac_ext <<_ACEOF | ||
16884 | /* end confdefs.h. */ | ||
16885 | $ac_includes_default | ||
16886 | long longval () { return (long) (sizeof (long int)); } | ||
16887 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
16888 | #include <stdio.h> | ||
16889 | #include <stdlib.h> | ||
16890 | int | ||
16891 | main () | ||
16892 | { | ||
16893 | |||
16894 | FILE *f = fopen ("conftest.val", "w"); | ||
16895 | if (! f) | ||
16896 | exit (1); | ||
16897 | if (((long) (sizeof (long int))) < 0) | ||
16898 | { | ||
16899 | long i = longval (); | ||
16900 | if (i != ((long) (sizeof (long int)))) | ||
16901 | exit (1); | ||
16902 | fprintf (f, "%ld\n", i); | ||
16903 | } | ||
16904 | else | ||
16905 | { | ||
16906 | unsigned long i = ulongval (); | ||
16907 | if (i != ((long) (sizeof (long int)))) | ||
16908 | exit (1); | ||
16909 | fprintf (f, "%lu\n", i); | ||
16910 | } | ||
16911 | exit (ferror (f) || fclose (f) != 0); | ||
16912 | |||
16913 | ; | ||
16914 | return 0; | ||
16915 | } | ||
16916 | _ACEOF | ||
16917 | rm -f conftest$ac_exeext | ||
16918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16919 | (eval $ac_link) 2>&5 | ||
16920 | ac_status=$? | ||
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16924 | (eval $ac_try) 2>&5 | ||
16925 | ac_status=$? | ||
16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16927 | (exit $ac_status); }; }; then | ||
16928 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
16929 | else | ||
16930 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16931 | echo "$as_me: failed program was:" >&5 | ||
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16933 | |||
16934 | ( exit $ac_status ) | ||
16935 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
16936 | See \`config.log' for more details." >&5 | ||
16937 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
16938 | See \`config.log' for more details." >&2;} | ||
16939 | { (exit 1); exit 1; }; } | ||
16940 | fi | ||
16941 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16942 | fi | ||
16943 | fi | ||
16944 | rm -f conftest.val | ||
16945 | else | ||
16946 | ac_cv_sizeof_long_int=0 | ||
16947 | fi | ||
16948 | fi | ||
16949 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
16950 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
16951 | cat >>confdefs.h <<_ACEOF | ||
16952 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
16953 | _ACEOF | ||
16954 | |||
16955 | |||
16956 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
16957 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
16958 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
16959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16960 | else | ||
16961 | cat >conftest.$ac_ext <<_ACEOF | ||
16962 | /* confdefs.h. */ | ||
16963 | _ACEOF | ||
16964 | cat confdefs.h >>conftest.$ac_ext | ||
16965 | cat >>conftest.$ac_ext <<_ACEOF | ||
16966 | /* end confdefs.h. */ | ||
16967 | $ac_includes_default | ||
16968 | int | ||
16969 | main () | ||
16970 | { | ||
16971 | if ((long long int *) 0) | ||
16972 | return 0; | ||
16973 | if (sizeof (long long int)) | ||
16974 | return 0; | ||
16975 | ; | ||
16976 | return 0; | ||
16977 | } | ||
16978 | _ACEOF | ||
16979 | rm -f conftest.$ac_objext | ||
16980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16981 | (eval $ac_compile) 2>conftest.er1 | ||
16982 | ac_status=$? | ||
16983 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16984 | rm -f conftest.er1 | ||
16985 | cat conftest.err >&5 | ||
16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16987 | (exit $ac_status); } && | ||
16988 | { ac_try='test -z "$ac_c_werror_flag" | ||
16989 | || test ! -s conftest.err' | ||
16990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16991 | (eval $ac_try) 2>&5 | ||
16992 | ac_status=$? | ||
16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16994 | (exit $ac_status); }; } && | ||
16995 | { ac_try='test -s conftest.$ac_objext' | ||
16996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16997 | (eval $ac_try) 2>&5 | ||
16998 | ac_status=$? | ||
16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17000 | (exit $ac_status); }; }; then | ||
17001 | ac_cv_type_long_long_int=yes | ||
17002 | else | ||
17003 | echo "$as_me: failed program was:" >&5 | ||
17004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17005 | |||
17006 | ac_cv_type_long_long_int=no | ||
17007 | fi | ||
17008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17009 | fi | ||
17010 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
17011 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
17012 | |||
17013 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
17014 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
17015 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
17016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17017 | else | ||
17018 | if test "$ac_cv_type_long_long_int" = yes; then | ||
17019 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
17020 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17021 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17022 | # This bug is HP SR number 8606223364. | ||
17023 | if test "$cross_compiling" = yes; then | ||
17024 | # Depending upon the size, compute the lo and hi bounds. | ||
17025 | cat >conftest.$ac_ext <<_ACEOF | ||
17026 | /* confdefs.h. */ | ||
17027 | _ACEOF | ||
17028 | cat confdefs.h >>conftest.$ac_ext | ||
17029 | cat >>conftest.$ac_ext <<_ACEOF | ||
17030 | /* end confdefs.h. */ | ||
17031 | $ac_includes_default | ||
17032 | int | ||
17033 | main () | ||
17034 | { | ||
17035 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
17036 | test_array [0] = 0 | ||
17037 | |||
17038 | ; | ||
17039 | return 0; | ||
17040 | } | ||
17041 | _ACEOF | ||
17042 | rm -f conftest.$ac_objext | ||
17043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17044 | (eval $ac_compile) 2>conftest.er1 | ||
17045 | ac_status=$? | ||
17046 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17047 | rm -f conftest.er1 | ||
17048 | cat conftest.err >&5 | ||
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17050 | (exit $ac_status); } && | ||
17051 | { ac_try='test -z "$ac_c_werror_flag" | ||
17052 | || test ! -s conftest.err' | ||
17053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17054 | (eval $ac_try) 2>&5 | ||
17055 | ac_status=$? | ||
17056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17057 | (exit $ac_status); }; } && | ||
17058 | { ac_try='test -s conftest.$ac_objext' | ||
17059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17060 | (eval $ac_try) 2>&5 | ||
17061 | ac_status=$? | ||
17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17063 | (exit $ac_status); }; }; then | ||
17064 | ac_lo=0 ac_mid=0 | ||
17065 | while :; do | ||
17066 | cat >conftest.$ac_ext <<_ACEOF | ||
17067 | /* confdefs.h. */ | ||
17068 | _ACEOF | ||
17069 | cat confdefs.h >>conftest.$ac_ext | ||
17070 | cat >>conftest.$ac_ext <<_ACEOF | ||
17071 | /* end confdefs.h. */ | ||
17072 | $ac_includes_default | ||
17073 | int | ||
17074 | main () | ||
17075 | { | ||
17076 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
17077 | test_array [0] = 0 | ||
17078 | |||
17079 | ; | ||
17080 | return 0; | ||
17081 | } | ||
17082 | _ACEOF | ||
17083 | rm -f conftest.$ac_objext | ||
17084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17085 | (eval $ac_compile) 2>conftest.er1 | ||
17086 | ac_status=$? | ||
17087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17088 | rm -f conftest.er1 | ||
17089 | cat conftest.err >&5 | ||
17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17091 | (exit $ac_status); } && | ||
17092 | { ac_try='test -z "$ac_c_werror_flag" | ||
17093 | || test ! -s conftest.err' | ||
17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17095 | (eval $ac_try) 2>&5 | ||
17096 | ac_status=$? | ||
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17098 | (exit $ac_status); }; } && | ||
17099 | { ac_try='test -s conftest.$ac_objext' | ||
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17101 | (eval $ac_try) 2>&5 | ||
17102 | ac_status=$? | ||
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17104 | (exit $ac_status); }; }; then | ||
17105 | ac_hi=$ac_mid; break | ||
17106 | else | ||
17107 | echo "$as_me: failed program was:" >&5 | ||
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17109 | |||
17110 | ac_lo=`expr $ac_mid + 1` | ||
17111 | if test $ac_lo -le $ac_mid; then | ||
17112 | ac_lo= ac_hi= | ||
17113 | break | ||
17114 | fi | ||
17115 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17116 | fi | ||
17117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17118 | done | ||
17119 | else | ||
17120 | echo "$as_me: failed program was:" >&5 | ||
17121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17122 | |||
17123 | cat >conftest.$ac_ext <<_ACEOF | ||
17124 | /* confdefs.h. */ | ||
17125 | _ACEOF | ||
17126 | cat confdefs.h >>conftest.$ac_ext | ||
17127 | cat >>conftest.$ac_ext <<_ACEOF | ||
17128 | /* end confdefs.h. */ | ||
17129 | $ac_includes_default | ||
17130 | int | ||
17131 | main () | ||
17132 | { | ||
17133 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
17134 | test_array [0] = 0 | ||
17135 | |||
17136 | ; | ||
17137 | return 0; | ||
17138 | } | ||
17139 | _ACEOF | ||
17140 | rm -f conftest.$ac_objext | ||
17141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17142 | (eval $ac_compile) 2>conftest.er1 | ||
17143 | ac_status=$? | ||
17144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17145 | rm -f conftest.er1 | ||
17146 | cat conftest.err >&5 | ||
17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17148 | (exit $ac_status); } && | ||
17149 | { ac_try='test -z "$ac_c_werror_flag" | ||
17150 | || test ! -s conftest.err' | ||
17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17152 | (eval $ac_try) 2>&5 | ||
17153 | ac_status=$? | ||
17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17155 | (exit $ac_status); }; } && | ||
17156 | { ac_try='test -s conftest.$ac_objext' | ||
17157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17158 | (eval $ac_try) 2>&5 | ||
17159 | ac_status=$? | ||
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17161 | (exit $ac_status); }; }; then | ||
17162 | ac_hi=-1 ac_mid=-1 | ||
17163 | while :; do | ||
17164 | cat >conftest.$ac_ext <<_ACEOF | ||
17165 | /* confdefs.h. */ | ||
17166 | _ACEOF | ||
17167 | cat confdefs.h >>conftest.$ac_ext | ||
17168 | cat >>conftest.$ac_ext <<_ACEOF | ||
17169 | /* end confdefs.h. */ | ||
17170 | $ac_includes_default | ||
17171 | int | ||
17172 | main () | ||
17173 | { | ||
17174 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
17175 | test_array [0] = 0 | ||
17176 | |||
17177 | ; | ||
17178 | return 0; | ||
17179 | } | ||
17180 | _ACEOF | ||
17181 | rm -f conftest.$ac_objext | ||
17182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17183 | (eval $ac_compile) 2>conftest.er1 | ||
17184 | ac_status=$? | ||
17185 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17186 | rm -f conftest.er1 | ||
17187 | cat conftest.err >&5 | ||
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17189 | (exit $ac_status); } && | ||
17190 | { ac_try='test -z "$ac_c_werror_flag" | ||
17191 | || test ! -s conftest.err' | ||
17192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17193 | (eval $ac_try) 2>&5 | ||
17194 | ac_status=$? | ||
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17196 | (exit $ac_status); }; } && | ||
17197 | { ac_try='test -s conftest.$ac_objext' | ||
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17199 | (eval $ac_try) 2>&5 | ||
17200 | ac_status=$? | ||
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17202 | (exit $ac_status); }; }; then | ||
17203 | ac_lo=$ac_mid; break | ||
17204 | else | ||
17205 | echo "$as_me: failed program was:" >&5 | ||
17206 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17207 | |||
17208 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17209 | if test $ac_mid -le $ac_hi; then | ||
17210 | ac_lo= ac_hi= | ||
17211 | break | ||
17212 | fi | ||
17213 | ac_mid=`expr 2 '*' $ac_mid` | ||
17214 | fi | ||
17215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17216 | done | ||
17217 | else | ||
17218 | echo "$as_me: failed program was:" >&5 | ||
17219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17220 | |||
17221 | ac_lo= ac_hi= | ||
17222 | fi | ||
17223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17224 | fi | ||
17225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17226 | # Binary search between lo and hi bounds. | ||
17227 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17228 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17229 | cat >conftest.$ac_ext <<_ACEOF | ||
17230 | /* confdefs.h. */ | ||
17231 | _ACEOF | ||
17232 | cat confdefs.h >>conftest.$ac_ext | ||
17233 | cat >>conftest.$ac_ext <<_ACEOF | ||
17234 | /* end confdefs.h. */ | ||
17235 | $ac_includes_default | ||
17236 | int | ||
17237 | main () | ||
17238 | { | ||
17239 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
17240 | test_array [0] = 0 | ||
17241 | |||
17242 | ; | ||
17243 | return 0; | ||
17244 | } | ||
17245 | _ACEOF | ||
17246 | rm -f conftest.$ac_objext | ||
17247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17248 | (eval $ac_compile) 2>conftest.er1 | ||
17249 | ac_status=$? | ||
17250 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17251 | rm -f conftest.er1 | ||
17252 | cat conftest.err >&5 | ||
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17254 | (exit $ac_status); } && | ||
17255 | { ac_try='test -z "$ac_c_werror_flag" | ||
17256 | || test ! -s conftest.err' | ||
17257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17258 | (eval $ac_try) 2>&5 | ||
17259 | ac_status=$? | ||
17260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17261 | (exit $ac_status); }; } && | ||
17262 | { ac_try='test -s conftest.$ac_objext' | ||
17263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17264 | (eval $ac_try) 2>&5 | ||
17265 | ac_status=$? | ||
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17267 | (exit $ac_status); }; }; then | ||
17268 | ac_hi=$ac_mid | ||
17269 | else | ||
17270 | echo "$as_me: failed program was:" >&5 | ||
17271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17272 | |||
17273 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17274 | fi | ||
17275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17276 | done | ||
17277 | case $ac_lo in | ||
17278 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
17279 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17280 | See \`config.log' for more details." >&5 | ||
17281 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17282 | See \`config.log' for more details." >&2;} | ||
17283 | { (exit 1); exit 1; }; } ;; | ||
17284 | esac | ||
17285 | else | ||
17286 | if test "$cross_compiling" = yes; then | ||
17287 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17288 | See \`config.log' for more details." >&5 | ||
17289 | echo "$as_me: error: cannot run test program while cross compiling | ||
17290 | See \`config.log' for more details." >&2;} | ||
17291 | { (exit 1); exit 1; }; } | ||
17292 | else | ||
17293 | cat >conftest.$ac_ext <<_ACEOF | ||
17294 | /* confdefs.h. */ | ||
17295 | _ACEOF | ||
17296 | cat confdefs.h >>conftest.$ac_ext | ||
17297 | cat >>conftest.$ac_ext <<_ACEOF | ||
17298 | /* end confdefs.h. */ | ||
17299 | $ac_includes_default | ||
17300 | long longval () { return (long) (sizeof (long long int)); } | ||
17301 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
17302 | #include <stdio.h> | ||
17303 | #include <stdlib.h> | ||
17304 | int | ||
17305 | main () | ||
17306 | { | ||
17307 | |||
17308 | FILE *f = fopen ("conftest.val", "w"); | ||
17309 | if (! f) | ||
17310 | exit (1); | ||
17311 | if (((long) (sizeof (long long int))) < 0) | ||
17312 | { | ||
17313 | long i = longval (); | ||
17314 | if (i != ((long) (sizeof (long long int)))) | ||
17315 | exit (1); | ||
17316 | fprintf (f, "%ld\n", i); | ||
17317 | } | ||
17318 | else | ||
17319 | { | ||
17320 | unsigned long i = ulongval (); | ||
17321 | if (i != ((long) (sizeof (long long int)))) | ||
17322 | exit (1); | ||
17323 | fprintf (f, "%lu\n", i); | ||
17324 | } | ||
17325 | exit (ferror (f) || fclose (f) != 0); | ||
17326 | |||
17327 | ; | ||
17328 | return 0; | ||
17329 | } | ||
17330 | _ACEOF | ||
17331 | rm -f conftest$ac_exeext | ||
17332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17333 | (eval $ac_link) 2>&5 | ||
17334 | ac_status=$? | ||
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17336 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17338 | (eval $ac_try) 2>&5 | ||
17339 | ac_status=$? | ||
17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17341 | (exit $ac_status); }; }; then | ||
17342 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
17343 | else | ||
17344 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17345 | echo "$as_me: failed program was:" >&5 | ||
17346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17347 | |||
17348 | ( exit $ac_status ) | ||
17349 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17350 | See \`config.log' for more details." >&5 | ||
17351 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17352 | See \`config.log' for more details." >&2;} | ||
17353 | { (exit 1); exit 1; }; } | ||
17354 | fi | ||
17355 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17356 | fi | ||
17357 | fi | ||
17358 | rm -f conftest.val | ||
17359 | else | ||
17360 | ac_cv_sizeof_long_long_int=0 | ||
17361 | fi | ||
17362 | fi | ||
17363 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
17364 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
17365 | cat >>confdefs.h <<_ACEOF | ||
17366 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
17367 | _ACEOF | ||
17368 | |||
17369 | |||
17370 | |||
17371 | # Sanity check long long for some platforms (AIX) | ||
17372 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
17373 | ac_cv_sizeof_long_long_int=0 | ||
17374 | fi | ||
17375 | |||
17376 | # More checks for data types | ||
17377 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
17378 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
17379 | if test "${ac_cv_have_u_int+set}" = set; then | ||
17380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17381 | else | ||
17382 | |||
17383 | cat >conftest.$ac_ext <<_ACEOF | ||
17384 | /* confdefs.h. */ | ||
17385 | _ACEOF | ||
17386 | cat confdefs.h >>conftest.$ac_ext | ||
17387 | cat >>conftest.$ac_ext <<_ACEOF | ||
17388 | /* end confdefs.h. */ | ||
17389 | #include <sys/types.h> | ||
17390 | int | ||
17391 | main () | ||
17392 | { | ||
17393 | u_int a; a = 1; | ||
17394 | ; | ||
17395 | return 0; | ||
17396 | } | ||
17397 | _ACEOF | ||
17398 | rm -f conftest.$ac_objext | ||
17399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17400 | (eval $ac_compile) 2>conftest.er1 | ||
17401 | ac_status=$? | ||
17402 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17403 | rm -f conftest.er1 | ||
17404 | cat conftest.err >&5 | ||
17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17406 | (exit $ac_status); } && | ||
17407 | { ac_try='test -z "$ac_c_werror_flag" | ||
17408 | || test ! -s conftest.err' | ||
17409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17410 | (eval $ac_try) 2>&5 | ||
17411 | ac_status=$? | ||
17412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17413 | (exit $ac_status); }; } && | ||
17414 | { ac_try='test -s conftest.$ac_objext' | ||
17415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17416 | (eval $ac_try) 2>&5 | ||
17417 | ac_status=$? | ||
17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17419 | (exit $ac_status); }; }; then | ||
17420 | ac_cv_have_u_int="yes" | ||
17421 | else | ||
17422 | echo "$as_me: failed program was:" >&5 | ||
17423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17424 | |||
17425 | ac_cv_have_u_int="no" | ||
17426 | |||
17427 | fi | ||
17428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17429 | |||
17430 | fi | ||
17431 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
17432 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
17433 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
17434 | cat >>confdefs.h <<\_ACEOF | ||
17435 | #define HAVE_U_INT 1 | ||
17436 | _ACEOF | ||
17437 | |||
17438 | have_u_int=1 | ||
17439 | fi | ||
17440 | |||
17441 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
17442 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
17443 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
17444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17445 | else | ||
17446 | |||
17447 | cat >conftest.$ac_ext <<_ACEOF | ||
17448 | /* confdefs.h. */ | ||
17449 | _ACEOF | ||
17450 | cat confdefs.h >>conftest.$ac_ext | ||
17451 | cat >>conftest.$ac_ext <<_ACEOF | ||
17452 | /* end confdefs.h. */ | ||
17453 | #include <sys/types.h> | ||
17454 | int | ||
17455 | main () | ||
17456 | { | ||
17457 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17458 | ; | ||
17459 | return 0; | ||
17460 | } | ||
17461 | _ACEOF | ||
17462 | rm -f conftest.$ac_objext | ||
17463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17464 | (eval $ac_compile) 2>conftest.er1 | ||
17465 | ac_status=$? | ||
17466 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17467 | rm -f conftest.er1 | ||
17468 | cat conftest.err >&5 | ||
17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17470 | (exit $ac_status); } && | ||
17471 | { ac_try='test -z "$ac_c_werror_flag" | ||
17472 | || test ! -s conftest.err' | ||
17473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17474 | (eval $ac_try) 2>&5 | ||
17475 | ac_status=$? | ||
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17477 | (exit $ac_status); }; } && | ||
17478 | { ac_try='test -s conftest.$ac_objext' | ||
17479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17480 | (eval $ac_try) 2>&5 | ||
17481 | ac_status=$? | ||
17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17483 | (exit $ac_status); }; }; then | ||
17484 | ac_cv_have_intxx_t="yes" | ||
17485 | else | ||
17486 | echo "$as_me: failed program was:" >&5 | ||
17487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17488 | |||
17489 | ac_cv_have_intxx_t="no" | ||
17490 | |||
17491 | fi | ||
17492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17493 | |||
17494 | fi | ||
17495 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
17496 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
17497 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
17498 | cat >>confdefs.h <<\_ACEOF | ||
17499 | #define HAVE_INTXX_T 1 | ||
17500 | _ACEOF | ||
17501 | |||
17502 | have_intxx_t=1 | ||
17503 | fi | ||
17504 | |||
17505 | if (test -z "$have_intxx_t" && \ | ||
17506 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
17507 | then | ||
17508 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
17509 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
17510 | cat >conftest.$ac_ext <<_ACEOF | ||
17511 | /* confdefs.h. */ | ||
17512 | _ACEOF | ||
17513 | cat confdefs.h >>conftest.$ac_ext | ||
17514 | cat >>conftest.$ac_ext <<_ACEOF | ||
17515 | /* end confdefs.h. */ | ||
17516 | #include <stdint.h> | ||
17517 | int | ||
17518 | main () | ||
17519 | { | ||
17520 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17521 | ; | ||
17522 | return 0; | ||
17523 | } | ||
17524 | _ACEOF | ||
17525 | rm -f conftest.$ac_objext | ||
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17527 | (eval $ac_compile) 2>conftest.er1 | ||
17528 | ac_status=$? | ||
17529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17530 | rm -f conftest.er1 | ||
17531 | cat conftest.err >&5 | ||
17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17533 | (exit $ac_status); } && | ||
17534 | { ac_try='test -z "$ac_c_werror_flag" | ||
17535 | || test ! -s conftest.err' | ||
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17537 | (eval $ac_try) 2>&5 | ||
17538 | ac_status=$? | ||
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17540 | (exit $ac_status); }; } && | ||
17541 | { ac_try='test -s conftest.$ac_objext' | ||
17542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17543 | (eval $ac_try) 2>&5 | ||
17544 | ac_status=$? | ||
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17546 | (exit $ac_status); }; }; then | ||
17547 | |||
17548 | cat >>confdefs.h <<\_ACEOF | ||
17549 | #define HAVE_INTXX_T 1 | ||
17550 | _ACEOF | ||
17551 | |||
17552 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17553 | echo "${ECHO_T}yes" >&6 | ||
17554 | |||
17555 | else | ||
17556 | echo "$as_me: failed program was:" >&5 | ||
17557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17558 | |||
17559 | echo "$as_me:$LINENO: result: no" >&5 | ||
17560 | echo "${ECHO_T}no" >&6 | ||
17561 | |||
17562 | fi | ||
17563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17564 | fi | ||
17565 | |||
17566 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
17567 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
17568 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
17569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17570 | else | ||
17571 | |||
17572 | cat >conftest.$ac_ext <<_ACEOF | ||
17573 | /* confdefs.h. */ | ||
17574 | _ACEOF | ||
17575 | cat confdefs.h >>conftest.$ac_ext | ||
17576 | cat >>conftest.$ac_ext <<_ACEOF | ||
17577 | /* end confdefs.h. */ | ||
17578 | |||
17579 | #include <sys/types.h> | ||
17580 | #ifdef HAVE_STDINT_H | ||
17581 | # include <stdint.h> | ||
17582 | #endif | ||
17583 | #include <sys/socket.h> | ||
17584 | #ifdef HAVE_SYS_BITYPES_H | ||
17585 | # include <sys/bitypes.h> | ||
17586 | #endif | ||
17587 | |||
17588 | int | ||
17589 | main () | ||
17590 | { | ||
17591 | int64_t a; a = 1; | ||
17592 | ; | ||
17593 | return 0; | ||
17594 | } | ||
17595 | _ACEOF | ||
17596 | rm -f conftest.$ac_objext | ||
17597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17598 | (eval $ac_compile) 2>conftest.er1 | ||
17599 | ac_status=$? | ||
17600 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17601 | rm -f conftest.er1 | ||
17602 | cat conftest.err >&5 | ||
17603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17604 | (exit $ac_status); } && | ||
17605 | { ac_try='test -z "$ac_c_werror_flag" | ||
17606 | || test ! -s conftest.err' | ||
17607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17608 | (eval $ac_try) 2>&5 | ||
17609 | ac_status=$? | ||
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17611 | (exit $ac_status); }; } && | ||
17612 | { ac_try='test -s conftest.$ac_objext' | ||
17613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17614 | (eval $ac_try) 2>&5 | ||
17615 | ac_status=$? | ||
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17617 | (exit $ac_status); }; }; then | ||
17618 | ac_cv_have_int64_t="yes" | ||
17619 | else | ||
17620 | echo "$as_me: failed program was:" >&5 | ||
17621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17622 | |||
17623 | ac_cv_have_int64_t="no" | ||
17624 | |||
17625 | fi | ||
17626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17627 | |||
17628 | fi | ||
17629 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
17630 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
17631 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
17632 | cat >>confdefs.h <<\_ACEOF | ||
17633 | #define HAVE_INT64_T 1 | ||
17634 | _ACEOF | ||
17635 | |||
17636 | fi | ||
17637 | |||
17638 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
17639 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
17640 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
17641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17642 | else | ||
17643 | |||
17644 | cat >conftest.$ac_ext <<_ACEOF | ||
17645 | /* confdefs.h. */ | ||
17646 | _ACEOF | ||
17647 | cat confdefs.h >>conftest.$ac_ext | ||
17648 | cat >>conftest.$ac_ext <<_ACEOF | ||
17649 | /* end confdefs.h. */ | ||
17650 | #include <sys/types.h> | ||
17651 | int | ||
17652 | main () | ||
17653 | { | ||
17654 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
17655 | ; | ||
17656 | return 0; | ||
17657 | } | ||
17658 | _ACEOF | ||
17659 | rm -f conftest.$ac_objext | ||
17660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17661 | (eval $ac_compile) 2>conftest.er1 | ||
17662 | ac_status=$? | ||
17663 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17664 | rm -f conftest.er1 | ||
17665 | cat conftest.err >&5 | ||
17666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17667 | (exit $ac_status); } && | ||
17668 | { ac_try='test -z "$ac_c_werror_flag" | ||
17669 | || test ! -s conftest.err' | ||
17670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17671 | (eval $ac_try) 2>&5 | ||
17672 | ac_status=$? | ||
17673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17674 | (exit $ac_status); }; } && | ||
17675 | { ac_try='test -s conftest.$ac_objext' | ||
17676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17677 | (eval $ac_try) 2>&5 | ||
17678 | ac_status=$? | ||
17679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17680 | (exit $ac_status); }; }; then | ||
17681 | ac_cv_have_u_intxx_t="yes" | ||
17682 | else | ||
17683 | echo "$as_me: failed program was:" >&5 | ||
17684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17685 | |||
17686 | ac_cv_have_u_intxx_t="no" | ||
17687 | |||
17688 | fi | ||
17689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17690 | |||
17691 | fi | ||
17692 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
17693 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
17694 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
17695 | cat >>confdefs.h <<\_ACEOF | ||
17696 | #define HAVE_U_INTXX_T 1 | ||
17697 | _ACEOF | ||
17698 | |||
17699 | have_u_intxx_t=1 | ||
17700 | fi | ||
17701 | |||
17702 | if test -z "$have_u_intxx_t" ; then | ||
17703 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
17704 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
17705 | cat >conftest.$ac_ext <<_ACEOF | ||
17706 | /* confdefs.h. */ | ||
17707 | _ACEOF | ||
17708 | cat confdefs.h >>conftest.$ac_ext | ||
17709 | cat >>conftest.$ac_ext <<_ACEOF | ||
17710 | /* end confdefs.h. */ | ||
17711 | #include <sys/socket.h> | ||
17712 | int | ||
17713 | main () | ||
17714 | { | ||
17715 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
17716 | ; | ||
17717 | return 0; | ||
17718 | } | ||
17719 | _ACEOF | ||
17720 | rm -f conftest.$ac_objext | ||
17721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17722 | (eval $ac_compile) 2>conftest.er1 | ||
17723 | ac_status=$? | ||
17724 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17725 | rm -f conftest.er1 | ||
17726 | cat conftest.err >&5 | ||
17727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17728 | (exit $ac_status); } && | ||
17729 | { ac_try='test -z "$ac_c_werror_flag" | ||
17730 | || test ! -s conftest.err' | ||
17731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17732 | (eval $ac_try) 2>&5 | ||
17733 | ac_status=$? | ||
17734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17735 | (exit $ac_status); }; } && | ||
17736 | { ac_try='test -s conftest.$ac_objext' | ||
17737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17738 | (eval $ac_try) 2>&5 | ||
17739 | ac_status=$? | ||
17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17741 | (exit $ac_status); }; }; then | ||
17742 | |||
17743 | cat >>confdefs.h <<\_ACEOF | ||
17744 | #define HAVE_U_INTXX_T 1 | ||
17745 | _ACEOF | ||
17746 | |||
17747 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17748 | echo "${ECHO_T}yes" >&6 | ||
17749 | |||
17750 | else | ||
17751 | echo "$as_me: failed program was:" >&5 | ||
17752 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17753 | |||
17754 | echo "$as_me:$LINENO: result: no" >&5 | ||
17755 | echo "${ECHO_T}no" >&6 | ||
17756 | |||
17757 | fi | ||
17758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17759 | fi | ||
17760 | |||
17761 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
17762 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
17763 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
17764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17765 | else | ||
17766 | |||
17767 | cat >conftest.$ac_ext <<_ACEOF | ||
17768 | /* confdefs.h. */ | ||
17769 | _ACEOF | ||
17770 | cat confdefs.h >>conftest.$ac_ext | ||
17771 | cat >>conftest.$ac_ext <<_ACEOF | ||
17772 | /* end confdefs.h. */ | ||
17773 | #include <sys/types.h> | ||
17774 | int | ||
17775 | main () | ||
17776 | { | ||
17777 | u_int64_t a; a = 1; | ||
17778 | ; | ||
17779 | return 0; | ||
17780 | } | ||
17781 | _ACEOF | ||
17782 | rm -f conftest.$ac_objext | ||
17783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17784 | (eval $ac_compile) 2>conftest.er1 | ||
17785 | ac_status=$? | ||
17786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17787 | rm -f conftest.er1 | ||
17788 | cat conftest.err >&5 | ||
17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17790 | (exit $ac_status); } && | ||
17791 | { ac_try='test -z "$ac_c_werror_flag" | ||
17792 | || test ! -s conftest.err' | ||
17793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17794 | (eval $ac_try) 2>&5 | ||
17795 | ac_status=$? | ||
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17797 | (exit $ac_status); }; } && | ||
17798 | { ac_try='test -s conftest.$ac_objext' | ||
17799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17800 | (eval $ac_try) 2>&5 | ||
17801 | ac_status=$? | ||
17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17803 | (exit $ac_status); }; }; then | ||
17804 | ac_cv_have_u_int64_t="yes" | ||
17805 | else | ||
17806 | echo "$as_me: failed program was:" >&5 | ||
17807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17808 | |||
17809 | ac_cv_have_u_int64_t="no" | ||
17810 | |||
17811 | fi | ||
17812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17813 | |||
17814 | fi | ||
17815 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
17816 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
17817 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
17818 | cat >>confdefs.h <<\_ACEOF | ||
17819 | #define HAVE_U_INT64_T 1 | ||
17820 | _ACEOF | ||
17821 | |||
17822 | have_u_int64_t=1 | ||
17823 | fi | ||
17824 | |||
17825 | if test -z "$have_u_int64_t" ; then | ||
17826 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
17827 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
17828 | cat >conftest.$ac_ext <<_ACEOF | ||
17829 | /* confdefs.h. */ | ||
17830 | _ACEOF | ||
17831 | cat confdefs.h >>conftest.$ac_ext | ||
17832 | cat >>conftest.$ac_ext <<_ACEOF | ||
17833 | /* end confdefs.h. */ | ||
17834 | #include <sys/bitypes.h> | ||
17835 | int | ||
17836 | main () | ||
17837 | { | ||
17838 | u_int64_t a; a = 1 | ||
17839 | ; | ||
17840 | return 0; | ||
17841 | } | ||
17842 | _ACEOF | ||
17843 | rm -f conftest.$ac_objext | ||
17844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17845 | (eval $ac_compile) 2>conftest.er1 | ||
17846 | ac_status=$? | ||
17847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17848 | rm -f conftest.er1 | ||
17849 | cat conftest.err >&5 | ||
17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17851 | (exit $ac_status); } && | ||
17852 | { ac_try='test -z "$ac_c_werror_flag" | ||
17853 | || test ! -s conftest.err' | ||
17854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17855 | (eval $ac_try) 2>&5 | ||
17856 | ac_status=$? | ||
17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17858 | (exit $ac_status); }; } && | ||
17859 | { ac_try='test -s conftest.$ac_objext' | ||
17860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17861 | (eval $ac_try) 2>&5 | ||
17862 | ac_status=$? | ||
17863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17864 | (exit $ac_status); }; }; then | ||
17865 | |||
17866 | cat >>confdefs.h <<\_ACEOF | ||
17867 | #define HAVE_U_INT64_T 1 | ||
17868 | _ACEOF | ||
17869 | |||
17870 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17871 | echo "${ECHO_T}yes" >&6 | ||
17872 | |||
17873 | else | ||
17874 | echo "$as_me: failed program was:" >&5 | ||
17875 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17876 | |||
17877 | echo "$as_me:$LINENO: result: no" >&5 | ||
17878 | echo "${ECHO_T}no" >&6 | ||
17879 | |||
17880 | fi | ||
17881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17882 | fi | ||
17883 | |||
17884 | if test -z "$have_u_intxx_t" ; then | ||
17885 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
17886 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
17887 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
17888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17889 | else | ||
17890 | |||
17891 | cat >conftest.$ac_ext <<_ACEOF | ||
17892 | /* confdefs.h. */ | ||
17893 | _ACEOF | ||
17894 | cat confdefs.h >>conftest.$ac_ext | ||
17895 | cat >>conftest.$ac_ext <<_ACEOF | ||
17896 | /* end confdefs.h. */ | ||
17897 | |||
17898 | #include <sys/types.h> | ||
17899 | |||
17900 | int | ||
17901 | main () | ||
17902 | { | ||
17903 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
17904 | ; | ||
17905 | return 0; | ||
17906 | } | ||
17907 | _ACEOF | ||
17908 | rm -f conftest.$ac_objext | ||
17909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17910 | (eval $ac_compile) 2>conftest.er1 | ||
17911 | ac_status=$? | ||
17912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17913 | rm -f conftest.er1 | ||
17914 | cat conftest.err >&5 | ||
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17916 | (exit $ac_status); } && | ||
17917 | { ac_try='test -z "$ac_c_werror_flag" | ||
17918 | || test ! -s conftest.err' | ||
17919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17920 | (eval $ac_try) 2>&5 | ||
17921 | ac_status=$? | ||
17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17923 | (exit $ac_status); }; } && | ||
17924 | { ac_try='test -s conftest.$ac_objext' | ||
17925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17926 | (eval $ac_try) 2>&5 | ||
17927 | ac_status=$? | ||
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17929 | (exit $ac_status); }; }; then | ||
17930 | ac_cv_have_uintxx_t="yes" | ||
17931 | else | ||
17932 | echo "$as_me: failed program was:" >&5 | ||
17933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17934 | |||
17935 | ac_cv_have_uintxx_t="no" | ||
17936 | |||
17937 | fi | ||
17938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17939 | |||
17940 | fi | ||
17941 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
17942 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
17943 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
17944 | cat >>confdefs.h <<\_ACEOF | ||
17945 | #define HAVE_UINTXX_T 1 | ||
17946 | _ACEOF | ||
17947 | |||
17948 | fi | ||
17949 | fi | ||
17950 | |||
17951 | if test -z "$have_uintxx_t" ; then | ||
17952 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
17953 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
17954 | cat >conftest.$ac_ext <<_ACEOF | ||
17955 | /* confdefs.h. */ | ||
17956 | _ACEOF | ||
17957 | cat confdefs.h >>conftest.$ac_ext | ||
17958 | cat >>conftest.$ac_ext <<_ACEOF | ||
17959 | /* end confdefs.h. */ | ||
17960 | #include <stdint.h> | ||
17961 | int | ||
17962 | main () | ||
17963 | { | ||
17964 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
17965 | ; | ||
17966 | return 0; | ||
17967 | } | ||
17968 | _ACEOF | ||
17969 | rm -f conftest.$ac_objext | ||
17970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17971 | (eval $ac_compile) 2>conftest.er1 | ||
17972 | ac_status=$? | ||
17973 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17974 | rm -f conftest.er1 | ||
17975 | cat conftest.err >&5 | ||
17976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17977 | (exit $ac_status); } && | ||
17978 | { ac_try='test -z "$ac_c_werror_flag" | ||
17979 | || test ! -s conftest.err' | ||
17980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17981 | (eval $ac_try) 2>&5 | ||
17982 | ac_status=$? | ||
17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17984 | (exit $ac_status); }; } && | ||
17985 | { ac_try='test -s conftest.$ac_objext' | ||
17986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17987 | (eval $ac_try) 2>&5 | ||
17988 | ac_status=$? | ||
17989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17990 | (exit $ac_status); }; }; then | ||
17991 | |||
17992 | cat >>confdefs.h <<\_ACEOF | ||
17993 | #define HAVE_UINTXX_T 1 | ||
17994 | _ACEOF | ||
17995 | |||
17996 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17997 | echo "${ECHO_T}yes" >&6 | ||
17998 | |||
17999 | else | ||
18000 | echo "$as_me: failed program was:" >&5 | ||
18001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18002 | |||
18003 | echo "$as_me:$LINENO: result: no" >&5 | ||
18004 | echo "${ECHO_T}no" >&6 | ||
18005 | |||
18006 | fi | ||
18007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18008 | fi | ||
18009 | |||
18010 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
18011 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
18012 | then | ||
18013 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
18014 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
18015 | cat >conftest.$ac_ext <<_ACEOF | ||
18016 | /* confdefs.h. */ | ||
18017 | _ACEOF | ||
18018 | cat confdefs.h >>conftest.$ac_ext | ||
18019 | cat >>conftest.$ac_ext <<_ACEOF | ||
18020 | /* end confdefs.h. */ | ||
18021 | |||
18022 | #include <sys/bitypes.h> | ||
18023 | |||
18024 | int | ||
18025 | main () | ||
18026 | { | ||
18027 | |||
18028 | int8_t a; int16_t b; int32_t c; | ||
18029 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
18030 | a = b = c = e = f = g = 1; | ||
18031 | |||
18032 | ; | ||
18033 | return 0; | ||
18034 | } | ||
18035 | _ACEOF | ||
18036 | rm -f conftest.$ac_objext | ||
18037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18038 | (eval $ac_compile) 2>conftest.er1 | ||
18039 | ac_status=$? | ||
18040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18041 | rm -f conftest.er1 | ||
18042 | cat conftest.err >&5 | ||
18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18044 | (exit $ac_status); } && | ||
18045 | { ac_try='test -z "$ac_c_werror_flag" | ||
18046 | || test ! -s conftest.err' | ||
18047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18048 | (eval $ac_try) 2>&5 | ||
18049 | ac_status=$? | ||
18050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18051 | (exit $ac_status); }; } && | ||
18052 | { ac_try='test -s conftest.$ac_objext' | ||
18053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18054 | (eval $ac_try) 2>&5 | ||
18055 | ac_status=$? | ||
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18057 | (exit $ac_status); }; }; then | ||
18058 | |||
18059 | cat >>confdefs.h <<\_ACEOF | ||
18060 | #define HAVE_U_INTXX_T 1 | ||
18061 | _ACEOF | ||
18062 | |||
18063 | cat >>confdefs.h <<\_ACEOF | ||
18064 | #define HAVE_INTXX_T 1 | ||
18065 | _ACEOF | ||
18066 | |||
18067 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18068 | echo "${ECHO_T}yes" >&6 | ||
18069 | |||
18070 | else | ||
18071 | echo "$as_me: failed program was:" >&5 | ||
18072 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18073 | |||
18074 | echo "$as_me:$LINENO: result: no" >&5 | ||
18075 | echo "${ECHO_T}no" >&6 | ||
18076 | |||
18077 | fi | ||
18078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18079 | fi | ||
18080 | |||
18081 | |||
18082 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
18083 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
18084 | if test "${ac_cv_have_u_char+set}" = set; then | ||
18085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18086 | else | ||
18087 | |||
18088 | cat >conftest.$ac_ext <<_ACEOF | ||
18089 | /* confdefs.h. */ | ||
18090 | _ACEOF | ||
18091 | cat confdefs.h >>conftest.$ac_ext | ||
18092 | cat >>conftest.$ac_ext <<_ACEOF | ||
18093 | /* end confdefs.h. */ | ||
18094 | |||
18095 | #include <sys/types.h> | ||
18096 | |||
18097 | int | ||
18098 | main () | ||
18099 | { | ||
18100 | u_char foo; foo = 125; | ||
18101 | ; | ||
18102 | return 0; | ||
18103 | } | ||
18104 | _ACEOF | ||
18105 | rm -f conftest.$ac_objext | ||
18106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18107 | (eval $ac_compile) 2>conftest.er1 | ||
18108 | ac_status=$? | ||
18109 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18110 | rm -f conftest.er1 | ||
18111 | cat conftest.err >&5 | ||
18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18113 | (exit $ac_status); } && | ||
18114 | { ac_try='test -z "$ac_c_werror_flag" | ||
18115 | || test ! -s conftest.err' | ||
18116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18117 | (eval $ac_try) 2>&5 | ||
18118 | ac_status=$? | ||
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18120 | (exit $ac_status); }; } && | ||
18121 | { ac_try='test -s conftest.$ac_objext' | ||
18122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18123 | (eval $ac_try) 2>&5 | ||
18124 | ac_status=$? | ||
18125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18126 | (exit $ac_status); }; }; then | ||
18127 | ac_cv_have_u_char="yes" | ||
18128 | else | ||
18129 | echo "$as_me: failed program was:" >&5 | ||
18130 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18131 | |||
18132 | ac_cv_have_u_char="no" | ||
18133 | |||
18134 | fi | ||
18135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18136 | |||
18137 | fi | ||
18138 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
18139 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
18140 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
18141 | cat >>confdefs.h <<\_ACEOF | ||
18142 | #define HAVE_U_CHAR 1 | ||
18143 | _ACEOF | ||
18144 | |||
18145 | fi | ||
18146 | |||
18147 | |||
18148 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
18149 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
18150 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
18151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18152 | else | ||
18153 | cat >conftest.$ac_ext <<_ACEOF | ||
18154 | /* confdefs.h. */ | ||
18155 | _ACEOF | ||
18156 | cat confdefs.h >>conftest.$ac_ext | ||
18157 | cat >>conftest.$ac_ext <<_ACEOF | ||
18158 | /* end confdefs.h. */ | ||
18159 | #include <sys/types.h> | ||
18160 | #include <sys/socket.h> | ||
18161 | |||
18162 | int | ||
18163 | main () | ||
18164 | { | ||
18165 | if ((socklen_t *) 0) | ||
18166 | return 0; | ||
18167 | if (sizeof (socklen_t)) | ||
18168 | return 0; | ||
18169 | ; | ||
18170 | return 0; | ||
18171 | } | ||
18172 | _ACEOF | ||
18173 | rm -f conftest.$ac_objext | ||
18174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18175 | (eval $ac_compile) 2>conftest.er1 | ||
18176 | ac_status=$? | ||
18177 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18178 | rm -f conftest.er1 | ||
18179 | cat conftest.err >&5 | ||
18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18181 | (exit $ac_status); } && | ||
18182 | { ac_try='test -z "$ac_c_werror_flag" | ||
18183 | || test ! -s conftest.err' | ||
18184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18185 | (eval $ac_try) 2>&5 | ||
18186 | ac_status=$? | ||
18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18188 | (exit $ac_status); }; } && | ||
18189 | { ac_try='test -s conftest.$ac_objext' | ||
18190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18191 | (eval $ac_try) 2>&5 | ||
18192 | ac_status=$? | ||
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18194 | (exit $ac_status); }; }; then | ||
18195 | ac_cv_type_socklen_t=yes | ||
18196 | else | ||
18197 | echo "$as_me: failed program was:" >&5 | ||
18198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18199 | |||
18200 | ac_cv_type_socklen_t=no | ||
18201 | fi | ||
18202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18203 | fi | ||
18204 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
18205 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
18206 | if test $ac_cv_type_socklen_t = yes; then | ||
18207 | : | ||
18208 | else | ||
18209 | |||
18210 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
18211 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
18212 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
18213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18214 | else | ||
18215 | |||
18216 | # Systems have either "struct sockaddr *" or | ||
18217 | # "void *" as the second argument to getpeername | ||
18218 | curl_cv_socklen_t_equiv= | ||
18219 | for arg2 in "struct sockaddr" void; do | ||
18220 | for t in int size_t unsigned long "unsigned long"; do | ||
18221 | cat >conftest.$ac_ext <<_ACEOF | ||
18222 | /* confdefs.h. */ | ||
18223 | _ACEOF | ||
18224 | cat confdefs.h >>conftest.$ac_ext | ||
18225 | cat >>conftest.$ac_ext <<_ACEOF | ||
18226 | /* end confdefs.h. */ | ||
18227 | |||
18228 | #include <sys/types.h> | ||
18229 | #include <sys/socket.h> | ||
18230 | |||
18231 | int getpeername (int, $arg2 *, $t *); | ||
18232 | |||
18233 | int | ||
18234 | main () | ||
18235 | { | ||
18236 | |||
18237 | $t len; | ||
18238 | getpeername(0,0,&len); | ||
18239 | |||
18240 | ; | ||
18241 | return 0; | ||
18242 | } | ||
18243 | _ACEOF | ||
18244 | rm -f conftest.$ac_objext | ||
18245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18246 | (eval $ac_compile) 2>conftest.er1 | ||
18247 | ac_status=$? | ||
18248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18249 | rm -f conftest.er1 | ||
18250 | cat conftest.err >&5 | ||
18251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18252 | (exit $ac_status); } && | ||
18253 | { ac_try='test -z "$ac_c_werror_flag" | ||
18254 | || test ! -s conftest.err' | ||
18255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18256 | (eval $ac_try) 2>&5 | ||
18257 | ac_status=$? | ||
18258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18259 | (exit $ac_status); }; } && | ||
18260 | { ac_try='test -s conftest.$ac_objext' | ||
18261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18262 | (eval $ac_try) 2>&5 | ||
18263 | ac_status=$? | ||
18264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18265 | (exit $ac_status); }; }; then | ||
18266 | |||
18267 | curl_cv_socklen_t_equiv="$t" | ||
18268 | break | ||
18269 | |||
18270 | else | ||
18271 | echo "$as_me: failed program was:" >&5 | ||
18272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18273 | |||
18274 | fi | ||
18275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18276 | done | ||
18277 | done | ||
18278 | |||
18279 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
18280 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
18281 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
18282 | { (exit 1); exit 1; }; } | ||
18283 | fi | ||
18284 | |||
18285 | fi | ||
18286 | |||
18287 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
18288 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
18289 | |||
18290 | cat >>confdefs.h <<_ACEOF | ||
18291 | #define socklen_t $curl_cv_socklen_t_equiv | ||
18292 | _ACEOF | ||
18293 | |||
18294 | fi | ||
18295 | |||
18296 | |||
18297 | |||
18298 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
18299 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
18300 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
18301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18302 | else | ||
18303 | cat >conftest.$ac_ext <<_ACEOF | ||
18304 | /* confdefs.h. */ | ||
18305 | _ACEOF | ||
18306 | cat confdefs.h >>conftest.$ac_ext | ||
18307 | cat >>conftest.$ac_ext <<_ACEOF | ||
18308 | /* end confdefs.h. */ | ||
18309 | #include <signal.h> | ||
18310 | |||
18311 | int | ||
18312 | main () | ||
18313 | { | ||
18314 | if ((sig_atomic_t *) 0) | ||
18315 | return 0; | ||
18316 | if (sizeof (sig_atomic_t)) | ||
18317 | return 0; | ||
18318 | ; | ||
18319 | return 0; | ||
18320 | } | ||
18321 | _ACEOF | ||
18322 | rm -f conftest.$ac_objext | ||
18323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18324 | (eval $ac_compile) 2>conftest.er1 | ||
18325 | ac_status=$? | ||
18326 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18327 | rm -f conftest.er1 | ||
18328 | cat conftest.err >&5 | ||
18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18330 | (exit $ac_status); } && | ||
18331 | { ac_try='test -z "$ac_c_werror_flag" | ||
18332 | || test ! -s conftest.err' | ||
18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18334 | (eval $ac_try) 2>&5 | ||
18335 | ac_status=$? | ||
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18337 | (exit $ac_status); }; } && | ||
18338 | { ac_try='test -s conftest.$ac_objext' | ||
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18340 | (eval $ac_try) 2>&5 | ||
18341 | ac_status=$? | ||
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18343 | (exit $ac_status); }; }; then | ||
18344 | ac_cv_type_sig_atomic_t=yes | ||
18345 | else | ||
18346 | echo "$as_me: failed program was:" >&5 | ||
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18348 | |||
18349 | ac_cv_type_sig_atomic_t=no | ||
18350 | fi | ||
18351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18352 | fi | ||
18353 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
18354 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
18355 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
18356 | |||
18357 | cat >>confdefs.h <<_ACEOF | ||
18358 | #define HAVE_SIG_ATOMIC_T 1 | ||
18359 | _ACEOF | ||
18360 | |||
18361 | |||
18362 | fi | ||
18363 | |||
18364 | |||
18365 | echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
18366 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 | ||
18367 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
18368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18369 | else | ||
18370 | cat >conftest.$ac_ext <<_ACEOF | ||
18371 | /* confdefs.h. */ | ||
18372 | _ACEOF | ||
18373 | cat confdefs.h >>conftest.$ac_ext | ||
18374 | cat >>conftest.$ac_ext <<_ACEOF | ||
18375 | /* end confdefs.h. */ | ||
18376 | #include <sys/types.h> | ||
18377 | #include <netinet/in.h> | ||
18378 | |||
18379 | int | ||
18380 | main () | ||
18381 | { | ||
18382 | if ((in_addr_t *) 0) | ||
18383 | return 0; | ||
18384 | if (sizeof (in_addr_t)) | ||
18385 | return 0; | ||
18386 | ; | ||
18387 | return 0; | ||
18388 | } | ||
18389 | _ACEOF | ||
18390 | rm -f conftest.$ac_objext | ||
18391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18392 | (eval $ac_compile) 2>conftest.er1 | ||
18393 | ac_status=$? | ||
18394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18395 | rm -f conftest.er1 | ||
18396 | cat conftest.err >&5 | ||
18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18398 | (exit $ac_status); } && | ||
18399 | { ac_try='test -z "$ac_c_werror_flag" | ||
18400 | || test ! -s conftest.err' | ||
18401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18402 | (eval $ac_try) 2>&5 | ||
18403 | ac_status=$? | ||
18404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18405 | (exit $ac_status); }; } && | ||
18406 | { ac_try='test -s conftest.$ac_objext' | ||
18407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18408 | (eval $ac_try) 2>&5 | ||
18409 | ac_status=$? | ||
18410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18411 | (exit $ac_status); }; }; then | ||
18412 | ac_cv_type_in_addr_t=yes | ||
18413 | else | ||
18414 | echo "$as_me: failed program was:" >&5 | ||
18415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18416 | |||
18417 | ac_cv_type_in_addr_t=no | ||
18418 | fi | ||
18419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18420 | fi | ||
18421 | echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
18422 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6 | ||
18423 | if test $ac_cv_type_in_addr_t = yes; then | ||
18424 | |||
18425 | cat >>confdefs.h <<_ACEOF | ||
18426 | #define HAVE_IN_ADDR_T 1 | ||
18427 | _ACEOF | ||
18428 | |||
18429 | |||
18430 | fi | ||
18431 | |||
18432 | |||
18433 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
18434 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
18435 | if test "${ac_cv_have_size_t+set}" = set; then | ||
18436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18437 | else | ||
18438 | |||
18439 | cat >conftest.$ac_ext <<_ACEOF | ||
18440 | /* confdefs.h. */ | ||
18441 | _ACEOF | ||
18442 | cat confdefs.h >>conftest.$ac_ext | ||
18443 | cat >>conftest.$ac_ext <<_ACEOF | ||
18444 | /* end confdefs.h. */ | ||
18445 | |||
18446 | #include <sys/types.h> | ||
18447 | |||
18448 | int | ||
18449 | main () | ||
18450 | { | ||
18451 | size_t foo; foo = 1235; | ||
18452 | ; | ||
18453 | return 0; | ||
18454 | } | ||
18455 | _ACEOF | ||
18456 | rm -f conftest.$ac_objext | ||
18457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18458 | (eval $ac_compile) 2>conftest.er1 | ||
18459 | ac_status=$? | ||
18460 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18461 | rm -f conftest.er1 | ||
18462 | cat conftest.err >&5 | ||
18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18464 | (exit $ac_status); } && | ||
18465 | { ac_try='test -z "$ac_c_werror_flag" | ||
18466 | || test ! -s conftest.err' | ||
18467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18468 | (eval $ac_try) 2>&5 | ||
18469 | ac_status=$? | ||
18470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18471 | (exit $ac_status); }; } && | ||
18472 | { ac_try='test -s conftest.$ac_objext' | ||
18473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18474 | (eval $ac_try) 2>&5 | ||
18475 | ac_status=$? | ||
18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18477 | (exit $ac_status); }; }; then | ||
18478 | ac_cv_have_size_t="yes" | ||
18479 | else | ||
18480 | echo "$as_me: failed program was:" >&5 | ||
18481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18482 | |||
18483 | ac_cv_have_size_t="no" | ||
18484 | |||
18485 | fi | ||
18486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18487 | |||
18488 | fi | ||
18489 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
18490 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
18491 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
18492 | cat >>confdefs.h <<\_ACEOF | ||
18493 | #define HAVE_SIZE_T 1 | ||
18494 | _ACEOF | ||
18495 | |||
18496 | fi | ||
18497 | |||
18498 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
18499 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
18500 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
18501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18502 | else | ||
18503 | |||
18504 | cat >conftest.$ac_ext <<_ACEOF | ||
18505 | /* confdefs.h. */ | ||
18506 | _ACEOF | ||
18507 | cat confdefs.h >>conftest.$ac_ext | ||
18508 | cat >>conftest.$ac_ext <<_ACEOF | ||
18509 | /* end confdefs.h. */ | ||
18510 | |||
18511 | #include <sys/types.h> | ||
18512 | |||
18513 | int | ||
18514 | main () | ||
18515 | { | ||
18516 | ssize_t foo; foo = 1235; | ||
18517 | ; | ||
18518 | return 0; | ||
18519 | } | ||
18520 | _ACEOF | ||
18521 | rm -f conftest.$ac_objext | ||
18522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18523 | (eval $ac_compile) 2>conftest.er1 | ||
18524 | ac_status=$? | ||
18525 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18526 | rm -f conftest.er1 | ||
18527 | cat conftest.err >&5 | ||
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18529 | (exit $ac_status); } && | ||
18530 | { ac_try='test -z "$ac_c_werror_flag" | ||
18531 | || test ! -s conftest.err' | ||
18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18533 | (eval $ac_try) 2>&5 | ||
18534 | ac_status=$? | ||
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18536 | (exit $ac_status); }; } && | ||
18537 | { ac_try='test -s conftest.$ac_objext' | ||
18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18539 | (eval $ac_try) 2>&5 | ||
18540 | ac_status=$? | ||
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18542 | (exit $ac_status); }; }; then | ||
18543 | ac_cv_have_ssize_t="yes" | ||
18544 | else | ||
18545 | echo "$as_me: failed program was:" >&5 | ||
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18547 | |||
18548 | ac_cv_have_ssize_t="no" | ||
18549 | |||
18550 | fi | ||
18551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18552 | |||
18553 | fi | ||
18554 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
18555 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
18556 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
18557 | cat >>confdefs.h <<\_ACEOF | ||
18558 | #define HAVE_SSIZE_T 1 | ||
18559 | _ACEOF | ||
18560 | |||
18561 | fi | ||
18562 | |||
18563 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
18564 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
18565 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
18566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18567 | else | ||
18568 | |||
18569 | cat >conftest.$ac_ext <<_ACEOF | ||
18570 | /* confdefs.h. */ | ||
18571 | _ACEOF | ||
18572 | cat confdefs.h >>conftest.$ac_ext | ||
18573 | cat >>conftest.$ac_ext <<_ACEOF | ||
18574 | /* end confdefs.h. */ | ||
18575 | |||
18576 | #include <time.h> | ||
18577 | |||
18578 | int | ||
18579 | main () | ||
18580 | { | ||
18581 | clock_t foo; foo = 1235; | ||
18582 | ; | ||
18583 | return 0; | ||
18584 | } | ||
18585 | _ACEOF | ||
18586 | rm -f conftest.$ac_objext | ||
18587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18588 | (eval $ac_compile) 2>conftest.er1 | ||
18589 | ac_status=$? | ||
18590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18591 | rm -f conftest.er1 | ||
18592 | cat conftest.err >&5 | ||
18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18594 | (exit $ac_status); } && | ||
18595 | { ac_try='test -z "$ac_c_werror_flag" | ||
18596 | || test ! -s conftest.err' | ||
18597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18598 | (eval $ac_try) 2>&5 | ||
18599 | ac_status=$? | ||
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18601 | (exit $ac_status); }; } && | ||
18602 | { ac_try='test -s conftest.$ac_objext' | ||
18603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18604 | (eval $ac_try) 2>&5 | ||
18605 | ac_status=$? | ||
18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18607 | (exit $ac_status); }; }; then | ||
18608 | ac_cv_have_clock_t="yes" | ||
18609 | else | ||
18610 | echo "$as_me: failed program was:" >&5 | ||
18611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18612 | |||
18613 | ac_cv_have_clock_t="no" | ||
18614 | |||
18615 | fi | ||
18616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18617 | |||
18618 | fi | ||
18619 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
18620 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
18621 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
18622 | cat >>confdefs.h <<\_ACEOF | ||
18623 | #define HAVE_CLOCK_T 1 | ||
18624 | _ACEOF | ||
18625 | |||
18626 | fi | ||
18627 | |||
18628 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
18629 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
18630 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
18631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18632 | else | ||
18633 | |||
18634 | cat >conftest.$ac_ext <<_ACEOF | ||
18635 | /* confdefs.h. */ | ||
18636 | _ACEOF | ||
18637 | cat confdefs.h >>conftest.$ac_ext | ||
18638 | cat >>conftest.$ac_ext <<_ACEOF | ||
18639 | /* end confdefs.h. */ | ||
18640 | |||
18641 | #include <sys/types.h> | ||
18642 | #include <sys/socket.h> | ||
18643 | |||
18644 | int | ||
18645 | main () | ||
18646 | { | ||
18647 | sa_family_t foo; foo = 1235; | ||
18648 | ; | ||
18649 | return 0; | ||
18650 | } | ||
18651 | _ACEOF | ||
18652 | rm -f conftest.$ac_objext | ||
18653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18654 | (eval $ac_compile) 2>conftest.er1 | ||
18655 | ac_status=$? | ||
18656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18657 | rm -f conftest.er1 | ||
18658 | cat conftest.err >&5 | ||
18659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18660 | (exit $ac_status); } && | ||
18661 | { ac_try='test -z "$ac_c_werror_flag" | ||
18662 | || test ! -s conftest.err' | ||
18663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18664 | (eval $ac_try) 2>&5 | ||
18665 | ac_status=$? | ||
18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18667 | (exit $ac_status); }; } && | ||
18668 | { ac_try='test -s conftest.$ac_objext' | ||
18669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18670 | (eval $ac_try) 2>&5 | ||
18671 | ac_status=$? | ||
18672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18673 | (exit $ac_status); }; }; then | ||
18674 | ac_cv_have_sa_family_t="yes" | ||
18675 | else | ||
18676 | echo "$as_me: failed program was:" >&5 | ||
18677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18678 | |||
18679 | cat >conftest.$ac_ext <<_ACEOF | ||
18680 | /* confdefs.h. */ | ||
18681 | _ACEOF | ||
18682 | cat confdefs.h >>conftest.$ac_ext | ||
18683 | cat >>conftest.$ac_ext <<_ACEOF | ||
18684 | /* end confdefs.h. */ | ||
18685 | |||
18686 | #include <sys/types.h> | ||
18687 | #include <sys/socket.h> | ||
18688 | #include <netinet/in.h> | ||
18689 | |||
18690 | int | ||
18691 | main () | ||
18692 | { | ||
18693 | sa_family_t foo; foo = 1235; | ||
18694 | ; | ||
18695 | return 0; | ||
18696 | } | ||
18697 | _ACEOF | ||
18698 | rm -f conftest.$ac_objext | ||
18699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18700 | (eval $ac_compile) 2>conftest.er1 | ||
18701 | ac_status=$? | ||
18702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18703 | rm -f conftest.er1 | ||
18704 | cat conftest.err >&5 | ||
18705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18706 | (exit $ac_status); } && | ||
18707 | { ac_try='test -z "$ac_c_werror_flag" | ||
18708 | || test ! -s conftest.err' | ||
18709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18710 | (eval $ac_try) 2>&5 | ||
18711 | ac_status=$? | ||
18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18713 | (exit $ac_status); }; } && | ||
18714 | { ac_try='test -s conftest.$ac_objext' | ||
18715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18716 | (eval $ac_try) 2>&5 | ||
18717 | ac_status=$? | ||
18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18719 | (exit $ac_status); }; }; then | ||
18720 | ac_cv_have_sa_family_t="yes" | ||
18721 | else | ||
18722 | echo "$as_me: failed program was:" >&5 | ||
18723 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18724 | |||
18725 | ac_cv_have_sa_family_t="no" | ||
18726 | |||
18727 | fi | ||
18728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18729 | |||
18730 | fi | ||
18731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18732 | |||
18733 | fi | ||
18734 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
18735 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
18736 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
18737 | cat >>confdefs.h <<\_ACEOF | ||
18738 | #define HAVE_SA_FAMILY_T 1 | ||
18739 | _ACEOF | ||
18740 | |||
18741 | fi | ||
18742 | |||
18743 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
18744 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
18745 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
18746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18747 | else | ||
18748 | |||
18749 | cat >conftest.$ac_ext <<_ACEOF | ||
18750 | /* confdefs.h. */ | ||
18751 | _ACEOF | ||
18752 | cat confdefs.h >>conftest.$ac_ext | ||
18753 | cat >>conftest.$ac_ext <<_ACEOF | ||
18754 | /* end confdefs.h. */ | ||
18755 | |||
18756 | #include <sys/types.h> | ||
18757 | |||
18758 | int | ||
18759 | main () | ||
18760 | { | ||
18761 | pid_t foo; foo = 1235; | ||
18762 | ; | ||
18763 | return 0; | ||
18764 | } | ||
18765 | _ACEOF | ||
18766 | rm -f conftest.$ac_objext | ||
18767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18768 | (eval $ac_compile) 2>conftest.er1 | ||
18769 | ac_status=$? | ||
18770 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18771 | rm -f conftest.er1 | ||
18772 | cat conftest.err >&5 | ||
18773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18774 | (exit $ac_status); } && | ||
18775 | { ac_try='test -z "$ac_c_werror_flag" | ||
18776 | || test ! -s conftest.err' | ||
18777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18778 | (eval $ac_try) 2>&5 | ||
18779 | ac_status=$? | ||
18780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18781 | (exit $ac_status); }; } && | ||
18782 | { ac_try='test -s conftest.$ac_objext' | ||
18783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18784 | (eval $ac_try) 2>&5 | ||
18785 | ac_status=$? | ||
18786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18787 | (exit $ac_status); }; }; then | ||
18788 | ac_cv_have_pid_t="yes" | ||
18789 | else | ||
18790 | echo "$as_me: failed program was:" >&5 | ||
18791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18792 | |||
18793 | ac_cv_have_pid_t="no" | ||
18794 | |||
18795 | fi | ||
18796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18797 | |||
18798 | fi | ||
18799 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
18800 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
18801 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
18802 | cat >>confdefs.h <<\_ACEOF | ||
18803 | #define HAVE_PID_T 1 | ||
18804 | _ACEOF | ||
18805 | |||
18806 | fi | ||
18807 | |||
18808 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
18809 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
18810 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
18811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18812 | else | ||
18813 | |||
18814 | cat >conftest.$ac_ext <<_ACEOF | ||
18815 | /* confdefs.h. */ | ||
18816 | _ACEOF | ||
18817 | cat confdefs.h >>conftest.$ac_ext | ||
18818 | cat >>conftest.$ac_ext <<_ACEOF | ||
18819 | /* end confdefs.h. */ | ||
18820 | |||
18821 | #include <sys/types.h> | ||
18822 | |||
18823 | int | ||
18824 | main () | ||
18825 | { | ||
18826 | mode_t foo; foo = 1235; | ||
18827 | ; | ||
18828 | return 0; | ||
18829 | } | ||
18830 | _ACEOF | ||
18831 | rm -f conftest.$ac_objext | ||
18832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18833 | (eval $ac_compile) 2>conftest.er1 | ||
18834 | ac_status=$? | ||
18835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18836 | rm -f conftest.er1 | ||
18837 | cat conftest.err >&5 | ||
18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18839 | (exit $ac_status); } && | ||
18840 | { ac_try='test -z "$ac_c_werror_flag" | ||
18841 | || test ! -s conftest.err' | ||
18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18843 | (eval $ac_try) 2>&5 | ||
18844 | ac_status=$? | ||
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18846 | (exit $ac_status); }; } && | ||
18847 | { ac_try='test -s conftest.$ac_objext' | ||
18848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18849 | (eval $ac_try) 2>&5 | ||
18850 | ac_status=$? | ||
18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18852 | (exit $ac_status); }; }; then | ||
18853 | ac_cv_have_mode_t="yes" | ||
18854 | else | ||
18855 | echo "$as_me: failed program was:" >&5 | ||
18856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18857 | |||
18858 | ac_cv_have_mode_t="no" | ||
18859 | |||
18860 | fi | ||
18861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18862 | |||
18863 | fi | ||
18864 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
18865 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
18866 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
18867 | cat >>confdefs.h <<\_ACEOF | ||
18868 | #define HAVE_MODE_T 1 | ||
18869 | _ACEOF | ||
18870 | |||
18871 | fi | ||
18872 | |||
18873 | |||
18874 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
18875 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
18876 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
18877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18878 | else | ||
18879 | |||
18880 | cat >conftest.$ac_ext <<_ACEOF | ||
18881 | /* confdefs.h. */ | ||
18882 | _ACEOF | ||
18883 | cat confdefs.h >>conftest.$ac_ext | ||
18884 | cat >>conftest.$ac_ext <<_ACEOF | ||
18885 | /* end confdefs.h. */ | ||
18886 | |||
18887 | #include <sys/types.h> | ||
18888 | #include <sys/socket.h> | ||
18889 | |||
18890 | int | ||
18891 | main () | ||
18892 | { | ||
18893 | struct sockaddr_storage s; | ||
18894 | ; | ||
18895 | return 0; | ||
18896 | } | ||
18897 | _ACEOF | ||
18898 | rm -f conftest.$ac_objext | ||
18899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18900 | (eval $ac_compile) 2>conftest.er1 | ||
18901 | ac_status=$? | ||
18902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18903 | rm -f conftest.er1 | ||
18904 | cat conftest.err >&5 | ||
18905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18906 | (exit $ac_status); } && | ||
18907 | { ac_try='test -z "$ac_c_werror_flag" | ||
18908 | || test ! -s conftest.err' | ||
18909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18910 | (eval $ac_try) 2>&5 | ||
18911 | ac_status=$? | ||
18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18913 | (exit $ac_status); }; } && | ||
18914 | { ac_try='test -s conftest.$ac_objext' | ||
18915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18916 | (eval $ac_try) 2>&5 | ||
18917 | ac_status=$? | ||
18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18919 | (exit $ac_status); }; }; then | ||
18920 | ac_cv_have_struct_sockaddr_storage="yes" | ||
18921 | else | ||
18922 | echo "$as_me: failed program was:" >&5 | ||
18923 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18924 | |||
18925 | ac_cv_have_struct_sockaddr_storage="no" | ||
18926 | |||
18927 | fi | ||
18928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18929 | |||
18930 | fi | ||
18931 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
18932 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
18933 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
18934 | cat >>confdefs.h <<\_ACEOF | ||
18935 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
18936 | _ACEOF | ||
18937 | |||
18938 | fi | ||
18939 | |||
18940 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
18941 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
18942 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
18943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18944 | else | ||
18945 | |||
18946 | cat >conftest.$ac_ext <<_ACEOF | ||
18947 | /* confdefs.h. */ | ||
18948 | _ACEOF | ||
18949 | cat confdefs.h >>conftest.$ac_ext | ||
18950 | cat >>conftest.$ac_ext <<_ACEOF | ||
18951 | /* end confdefs.h. */ | ||
18952 | |||
18953 | #include <sys/types.h> | ||
18954 | #include <netinet/in.h> | ||
18955 | |||
18956 | int | ||
18957 | main () | ||
18958 | { | ||
18959 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
18960 | ; | ||
18961 | return 0; | ||
18962 | } | ||
18963 | _ACEOF | ||
18964 | rm -f conftest.$ac_objext | ||
18965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18966 | (eval $ac_compile) 2>conftest.er1 | ||
18967 | ac_status=$? | ||
18968 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18969 | rm -f conftest.er1 | ||
18970 | cat conftest.err >&5 | ||
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18972 | (exit $ac_status); } && | ||
18973 | { ac_try='test -z "$ac_c_werror_flag" | ||
18974 | || test ! -s conftest.err' | ||
18975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18976 | (eval $ac_try) 2>&5 | ||
18977 | ac_status=$? | ||
18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18979 | (exit $ac_status); }; } && | ||
18980 | { ac_try='test -s conftest.$ac_objext' | ||
18981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18982 | (eval $ac_try) 2>&5 | ||
18983 | ac_status=$? | ||
18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18985 | (exit $ac_status); }; }; then | ||
18986 | ac_cv_have_struct_sockaddr_in6="yes" | ||
18987 | else | ||
18988 | echo "$as_me: failed program was:" >&5 | ||
18989 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18990 | |||
18991 | ac_cv_have_struct_sockaddr_in6="no" | ||
18992 | |||
18993 | fi | ||
18994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18995 | |||
18996 | fi | ||
18997 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
18998 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
18999 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
19000 | cat >>confdefs.h <<\_ACEOF | ||
19001 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
19002 | _ACEOF | ||
19003 | |||
19004 | fi | ||
19005 | |||
19006 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
19007 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
19008 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
19009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19010 | else | ||
19011 | |||
19012 | cat >conftest.$ac_ext <<_ACEOF | ||
19013 | /* confdefs.h. */ | ||
19014 | _ACEOF | ||
19015 | cat confdefs.h >>conftest.$ac_ext | ||
19016 | cat >>conftest.$ac_ext <<_ACEOF | ||
19017 | /* end confdefs.h. */ | ||
19018 | |||
19019 | #include <sys/types.h> | ||
19020 | #include <netinet/in.h> | ||
19021 | |||
19022 | int | ||
19023 | main () | ||
19024 | { | ||
19025 | struct in6_addr s; s.s6_addr[0] = 0; | ||
19026 | ; | ||
19027 | return 0; | ||
19028 | } | ||
19029 | _ACEOF | ||
19030 | rm -f conftest.$ac_objext | ||
19031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19032 | (eval $ac_compile) 2>conftest.er1 | ||
19033 | ac_status=$? | ||
19034 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19035 | rm -f conftest.er1 | ||
19036 | cat conftest.err >&5 | ||
19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19038 | (exit $ac_status); } && | ||
19039 | { ac_try='test -z "$ac_c_werror_flag" | ||
19040 | || test ! -s conftest.err' | ||
19041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19042 | (eval $ac_try) 2>&5 | ||
19043 | ac_status=$? | ||
19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19045 | (exit $ac_status); }; } && | ||
19046 | { ac_try='test -s conftest.$ac_objext' | ||
19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19048 | (eval $ac_try) 2>&5 | ||
19049 | ac_status=$? | ||
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19051 | (exit $ac_status); }; }; then | ||
19052 | ac_cv_have_struct_in6_addr="yes" | ||
19053 | else | ||
19054 | echo "$as_me: failed program was:" >&5 | ||
19055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19056 | |||
19057 | ac_cv_have_struct_in6_addr="no" | ||
19058 | |||
19059 | fi | ||
19060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19061 | |||
19062 | fi | ||
19063 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
19064 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
19065 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
19066 | cat >>confdefs.h <<\_ACEOF | ||
19067 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
19068 | _ACEOF | ||
19069 | |||
19070 | fi | ||
19071 | |||
19072 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
19073 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
19074 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
19075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19076 | else | ||
19077 | |||
19078 | cat >conftest.$ac_ext <<_ACEOF | ||
19079 | /* confdefs.h. */ | ||
19080 | _ACEOF | ||
19081 | cat confdefs.h >>conftest.$ac_ext | ||
19082 | cat >>conftest.$ac_ext <<_ACEOF | ||
19083 | /* end confdefs.h. */ | ||
19084 | |||
19085 | #include <sys/types.h> | ||
19086 | #include <sys/socket.h> | ||
19087 | #include <netdb.h> | ||
19088 | |||
19089 | int | ||
19090 | main () | ||
19091 | { | ||
19092 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
19093 | ; | ||
19094 | return 0; | ||
19095 | } | ||
19096 | _ACEOF | ||
19097 | rm -f conftest.$ac_objext | ||
19098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19099 | (eval $ac_compile) 2>conftest.er1 | ||
19100 | ac_status=$? | ||
19101 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19102 | rm -f conftest.er1 | ||
19103 | cat conftest.err >&5 | ||
19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19105 | (exit $ac_status); } && | ||
19106 | { ac_try='test -z "$ac_c_werror_flag" | ||
19107 | || test ! -s conftest.err' | ||
19108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19109 | (eval $ac_try) 2>&5 | ||
19110 | ac_status=$? | ||
19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19112 | (exit $ac_status); }; } && | ||
19113 | { ac_try='test -s conftest.$ac_objext' | ||
19114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19115 | (eval $ac_try) 2>&5 | ||
19116 | ac_status=$? | ||
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19118 | (exit $ac_status); }; }; then | ||
19119 | ac_cv_have_struct_addrinfo="yes" | ||
19120 | else | ||
19121 | echo "$as_me: failed program was:" >&5 | ||
19122 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19123 | |||
19124 | ac_cv_have_struct_addrinfo="no" | ||
19125 | |||
19126 | fi | ||
19127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19128 | |||
19129 | fi | ||
19130 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
19131 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
19132 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
19133 | cat >>confdefs.h <<\_ACEOF | ||
19134 | #define HAVE_STRUCT_ADDRINFO 1 | ||
19135 | _ACEOF | ||
19136 | |||
19137 | fi | ||
19138 | |||
19139 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
19140 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
19141 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
19142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19143 | else | ||
19144 | |||
19145 | cat >conftest.$ac_ext <<_ACEOF | ||
19146 | /* confdefs.h. */ | ||
19147 | _ACEOF | ||
19148 | cat confdefs.h >>conftest.$ac_ext | ||
19149 | cat >>conftest.$ac_ext <<_ACEOF | ||
19150 | /* end confdefs.h. */ | ||
19151 | #include <sys/time.h> | ||
19152 | int | ||
19153 | main () | ||
19154 | { | ||
19155 | struct timeval tv; tv.tv_sec = 1; | ||
19156 | ; | ||
19157 | return 0; | ||
19158 | } | ||
19159 | _ACEOF | ||
19160 | rm -f conftest.$ac_objext | ||
19161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19162 | (eval $ac_compile) 2>conftest.er1 | ||
19163 | ac_status=$? | ||
19164 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19165 | rm -f conftest.er1 | ||
19166 | cat conftest.err >&5 | ||
19167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19168 | (exit $ac_status); } && | ||
19169 | { ac_try='test -z "$ac_c_werror_flag" | ||
19170 | || test ! -s conftest.err' | ||
19171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19172 | (eval $ac_try) 2>&5 | ||
19173 | ac_status=$? | ||
19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19175 | (exit $ac_status); }; } && | ||
19176 | { ac_try='test -s conftest.$ac_objext' | ||
19177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19178 | (eval $ac_try) 2>&5 | ||
19179 | ac_status=$? | ||
19180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19181 | (exit $ac_status); }; }; then | ||
19182 | ac_cv_have_struct_timeval="yes" | ||
19183 | else | ||
19184 | echo "$as_me: failed program was:" >&5 | ||
19185 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19186 | |||
19187 | ac_cv_have_struct_timeval="no" | ||
19188 | |||
19189 | fi | ||
19190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19191 | |||
19192 | fi | ||
19193 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
19194 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
19195 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
19196 | cat >>confdefs.h <<\_ACEOF | ||
19197 | #define HAVE_STRUCT_TIMEVAL 1 | ||
19198 | _ACEOF | ||
19199 | |||
19200 | have_struct_timeval=1 | ||
19201 | fi | ||
19202 | |||
19203 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
19204 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
19205 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
19206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19207 | else | ||
19208 | cat >conftest.$ac_ext <<_ACEOF | ||
19209 | /* confdefs.h. */ | ||
19210 | _ACEOF | ||
19211 | cat confdefs.h >>conftest.$ac_ext | ||
19212 | cat >>conftest.$ac_ext <<_ACEOF | ||
19213 | /* end confdefs.h. */ | ||
19214 | $ac_includes_default | ||
19215 | int | ||
19216 | main () | ||
19217 | { | ||
19218 | if ((struct timespec *) 0) | ||
19219 | return 0; | ||
19220 | if (sizeof (struct timespec)) | ||
19221 | return 0; | ||
19222 | ; | ||
19223 | return 0; | ||
19224 | } | ||
19225 | _ACEOF | ||
19226 | rm -f conftest.$ac_objext | ||
19227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19228 | (eval $ac_compile) 2>conftest.er1 | ||
19229 | ac_status=$? | ||
19230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19231 | rm -f conftest.er1 | ||
19232 | cat conftest.err >&5 | ||
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19234 | (exit $ac_status); } && | ||
19235 | { ac_try='test -z "$ac_c_werror_flag" | ||
19236 | || test ! -s conftest.err' | ||
19237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19238 | (eval $ac_try) 2>&5 | ||
19239 | ac_status=$? | ||
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19241 | (exit $ac_status); }; } && | ||
19242 | { ac_try='test -s conftest.$ac_objext' | ||
19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19244 | (eval $ac_try) 2>&5 | ||
19245 | ac_status=$? | ||
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19247 | (exit $ac_status); }; }; then | ||
19248 | ac_cv_type_struct_timespec=yes | ||
19249 | else | ||
19250 | echo "$as_me: failed program was:" >&5 | ||
19251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19252 | |||
19253 | ac_cv_type_struct_timespec=no | ||
19254 | fi | ||
19255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19256 | fi | ||
19257 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
19258 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
19259 | if test $ac_cv_type_struct_timespec = yes; then | ||
19260 | |||
19261 | cat >>confdefs.h <<_ACEOF | ||
19262 | #define HAVE_STRUCT_TIMESPEC 1 | ||
19263 | _ACEOF | ||
19264 | |||
19265 | |||
19266 | fi | ||
19267 | |||
19268 | |||
19269 | # We need int64_t or else certian parts of the compile will fail. | ||
19270 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
19271 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
19272 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
19273 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
19274 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
19275 | echo "" | ||
19276 | exit 1; | ||
19277 | else | ||
19278 | if test "$cross_compiling" = yes; then | ||
19279 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
19280 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
19281 | |||
19282 | else | ||
19283 | cat >conftest.$ac_ext <<_ACEOF | ||
19284 | /* confdefs.h. */ | ||
19285 | _ACEOF | ||
19286 | cat confdefs.h >>conftest.$ac_ext | ||
19287 | cat >>conftest.$ac_ext <<_ACEOF | ||
19288 | /* end confdefs.h. */ | ||
19289 | |||
19290 | #include <stdio.h> | ||
19291 | #include <string.h> | ||
19292 | #ifdef HAVE_SNPRINTF | ||
19293 | main() | ||
19294 | { | ||
19295 | char buf[50]; | ||
19296 | char expected_out[50]; | ||
19297 | int mazsize = 50 ; | ||
19298 | #if (SIZEOF_LONG_INT == 8) | ||
19299 | long int num = 0x7fffffffffffffff; | ||
19300 | #else | ||
19301 | long long num = 0x7fffffffffffffffll; | ||
19302 | #endif | ||
19303 | strcpy(expected_out, "9223372036854775807"); | ||
19304 | snprintf(buf, mazsize, "%lld", num); | ||
19305 | if(strcmp(buf, expected_out) != 0) | ||
19306 | exit(1); | ||
19307 | exit(0); | ||
19308 | } | ||
19309 | #else | ||
19310 | main() { exit(0); } | ||
19311 | #endif | ||
19312 | |||
19313 | _ACEOF | ||
19314 | rm -f conftest$ac_exeext | ||
19315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19316 | (eval $ac_link) 2>&5 | ||
19317 | ac_status=$? | ||
19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19319 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19321 | (eval $ac_try) 2>&5 | ||
19322 | ac_status=$? | ||
19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19324 | (exit $ac_status); }; }; then | ||
19325 | true | ||
19326 | else | ||
19327 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19328 | echo "$as_me: failed program was:" >&5 | ||
19329 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19330 | |||
19331 | ( exit $ac_status ) | ||
19332 | cat >>confdefs.h <<\_ACEOF | ||
19333 | #define BROKEN_SNPRINTF 1 | ||
19334 | _ACEOF | ||
19335 | |||
19336 | fi | ||
19337 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19338 | fi | ||
19339 | fi | ||
19340 | |||
19341 | |||
19342 | # look for field 'ut_host' in header 'utmp.h' | ||
19343 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19344 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19345 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
19346 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
19347 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19349 | else | ||
19350 | |||
19351 | cat >conftest.$ac_ext <<_ACEOF | ||
19352 | /* confdefs.h. */ | ||
19353 | _ACEOF | ||
19354 | cat confdefs.h >>conftest.$ac_ext | ||
19355 | cat >>conftest.$ac_ext <<_ACEOF | ||
19356 | /* end confdefs.h. */ | ||
19357 | #include <utmp.h> | ||
19358 | |||
19359 | _ACEOF | ||
19360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19361 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19362 | eval "$ossh_varname=yes" | ||
19363 | else | ||
19364 | eval "$ossh_varname=no" | ||
19365 | fi | ||
19366 | rm -f conftest* | ||
19367 | |||
19368 | fi | ||
19369 | |||
19370 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19371 | if test -n "`echo $ossh_varname`"; then | ||
19372 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19373 | echo "${ECHO_T}$ossh_result" >&6 | ||
19374 | if test "x$ossh_result" = "xyes"; then | ||
19375 | cat >>confdefs.h <<\_ACEOF | ||
19376 | #define HAVE_HOST_IN_UTMP 1 | ||
19377 | _ACEOF | ||
19378 | |||
19379 | fi | ||
19380 | else | ||
19381 | echo "$as_me:$LINENO: result: no" >&5 | ||
19382 | echo "${ECHO_T}no" >&6 | ||
19383 | fi | ||
19384 | |||
19385 | |||
19386 | # look for field 'ut_host' in header 'utmpx.h' | ||
19387 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19388 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19389 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
19390 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
19391 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19393 | else | ||
19394 | |||
19395 | cat >conftest.$ac_ext <<_ACEOF | ||
19396 | /* confdefs.h. */ | ||
19397 | _ACEOF | ||
19398 | cat confdefs.h >>conftest.$ac_ext | ||
19399 | cat >>conftest.$ac_ext <<_ACEOF | ||
19400 | /* end confdefs.h. */ | ||
19401 | #include <utmpx.h> | ||
19402 | |||
19403 | _ACEOF | ||
19404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19405 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19406 | eval "$ossh_varname=yes" | ||
19407 | else | ||
19408 | eval "$ossh_varname=no" | ||
19409 | fi | ||
19410 | rm -f conftest* | ||
19411 | |||
19412 | fi | ||
19413 | |||
19414 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19415 | if test -n "`echo $ossh_varname`"; then | ||
19416 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19417 | echo "${ECHO_T}$ossh_result" >&6 | ||
19418 | if test "x$ossh_result" = "xyes"; then | ||
19419 | cat >>confdefs.h <<\_ACEOF | ||
19420 | #define HAVE_HOST_IN_UTMPX 1 | ||
19421 | _ACEOF | ||
19422 | |||
19423 | fi | ||
19424 | else | ||
19425 | echo "$as_me:$LINENO: result: no" >&5 | ||
19426 | echo "${ECHO_T}no" >&6 | ||
19427 | fi | ||
19428 | |||
19429 | |||
19430 | # look for field 'syslen' in header 'utmpx.h' | ||
19431 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19432 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
19433 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
19434 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
19435 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19437 | else | ||
19438 | |||
19439 | cat >conftest.$ac_ext <<_ACEOF | ||
19440 | /* confdefs.h. */ | ||
19441 | _ACEOF | ||
19442 | cat confdefs.h >>conftest.$ac_ext | ||
19443 | cat >>conftest.$ac_ext <<_ACEOF | ||
19444 | /* end confdefs.h. */ | ||
19445 | #include <utmpx.h> | ||
19446 | |||
19447 | _ACEOF | ||
19448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19449 | $EGREP "syslen" >/dev/null 2>&1; then | ||
19450 | eval "$ossh_varname=yes" | ||
19451 | else | ||
19452 | eval "$ossh_varname=no" | ||
19453 | fi | ||
19454 | rm -f conftest* | ||
19455 | |||
19456 | fi | ||
19457 | |||
19458 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19459 | if test -n "`echo $ossh_varname`"; then | ||
19460 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19461 | echo "${ECHO_T}$ossh_result" >&6 | ||
19462 | if test "x$ossh_result" = "xyes"; then | ||
19463 | cat >>confdefs.h <<\_ACEOF | ||
19464 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
19465 | _ACEOF | ||
19466 | |||
19467 | fi | ||
19468 | else | ||
19469 | echo "$as_me:$LINENO: result: no" >&5 | ||
19470 | echo "${ECHO_T}no" >&6 | ||
19471 | fi | ||
19472 | |||
19473 | |||
19474 | # look for field 'ut_pid' in header 'utmp.h' | ||
19475 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19476 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
19477 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
19478 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
19479 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19481 | else | ||
19482 | |||
19483 | cat >conftest.$ac_ext <<_ACEOF | ||
19484 | /* confdefs.h. */ | ||
19485 | _ACEOF | ||
19486 | cat confdefs.h >>conftest.$ac_ext | ||
19487 | cat >>conftest.$ac_ext <<_ACEOF | ||
19488 | /* end confdefs.h. */ | ||
19489 | #include <utmp.h> | ||
19490 | |||
19491 | _ACEOF | ||
19492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19493 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
19494 | eval "$ossh_varname=yes" | ||
19495 | else | ||
19496 | eval "$ossh_varname=no" | ||
19497 | fi | ||
19498 | rm -f conftest* | ||
19499 | |||
19500 | fi | ||
19501 | |||
19502 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19503 | if test -n "`echo $ossh_varname`"; then | ||
19504 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19505 | echo "${ECHO_T}$ossh_result" >&6 | ||
19506 | if test "x$ossh_result" = "xyes"; then | ||
19507 | cat >>confdefs.h <<\_ACEOF | ||
19508 | #define HAVE_PID_IN_UTMP 1 | ||
19509 | _ACEOF | ||
19510 | |||
19511 | fi | ||
19512 | else | ||
19513 | echo "$as_me:$LINENO: result: no" >&5 | ||
19514 | echo "${ECHO_T}no" >&6 | ||
19515 | fi | ||
19516 | |||
19517 | |||
19518 | # look for field 'ut_type' in header 'utmp.h' | ||
19519 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19520 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19521 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
19522 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
19523 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19525 | else | ||
19526 | |||
19527 | cat >conftest.$ac_ext <<_ACEOF | ||
19528 | /* confdefs.h. */ | ||
19529 | _ACEOF | ||
19530 | cat confdefs.h >>conftest.$ac_ext | ||
19531 | cat >>conftest.$ac_ext <<_ACEOF | ||
19532 | /* end confdefs.h. */ | ||
19533 | #include <utmp.h> | ||
19534 | |||
19535 | _ACEOF | ||
19536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19537 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19538 | eval "$ossh_varname=yes" | ||
19539 | else | ||
19540 | eval "$ossh_varname=no" | ||
19541 | fi | ||
19542 | rm -f conftest* | ||
19543 | |||
19544 | fi | ||
19545 | |||
19546 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19547 | if test -n "`echo $ossh_varname`"; then | ||
19548 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19549 | echo "${ECHO_T}$ossh_result" >&6 | ||
19550 | if test "x$ossh_result" = "xyes"; then | ||
19551 | cat >>confdefs.h <<\_ACEOF | ||
19552 | #define HAVE_TYPE_IN_UTMP 1 | ||
19553 | _ACEOF | ||
19554 | |||
19555 | fi | ||
19556 | else | ||
19557 | echo "$as_me:$LINENO: result: no" >&5 | ||
19558 | echo "${ECHO_T}no" >&6 | ||
19559 | fi | ||
19560 | |||
19561 | |||
19562 | # look for field 'ut_type' in header 'utmpx.h' | ||
19563 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19564 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19565 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
19566 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
19567 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19569 | else | ||
19570 | |||
19571 | cat >conftest.$ac_ext <<_ACEOF | ||
19572 | /* confdefs.h. */ | ||
19573 | _ACEOF | ||
19574 | cat confdefs.h >>conftest.$ac_ext | ||
19575 | cat >>conftest.$ac_ext <<_ACEOF | ||
19576 | /* end confdefs.h. */ | ||
19577 | #include <utmpx.h> | ||
19578 | |||
19579 | _ACEOF | ||
19580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19581 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19582 | eval "$ossh_varname=yes" | ||
19583 | else | ||
19584 | eval "$ossh_varname=no" | ||
19585 | fi | ||
19586 | rm -f conftest* | ||
19587 | |||
19588 | fi | ||
19589 | |||
19590 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19591 | if test -n "`echo $ossh_varname`"; then | ||
19592 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19593 | echo "${ECHO_T}$ossh_result" >&6 | ||
19594 | if test "x$ossh_result" = "xyes"; then | ||
19595 | cat >>confdefs.h <<\_ACEOF | ||
19596 | #define HAVE_TYPE_IN_UTMPX 1 | ||
19597 | _ACEOF | ||
19598 | |||
19599 | fi | ||
19600 | else | ||
19601 | echo "$as_me:$LINENO: result: no" >&5 | ||
19602 | echo "${ECHO_T}no" >&6 | ||
19603 | fi | ||
19604 | |||
19605 | |||
19606 | # look for field 'ut_tv' in header 'utmp.h' | ||
19607 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19608 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
19609 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
19610 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
19611 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19613 | else | ||
19614 | |||
19615 | cat >conftest.$ac_ext <<_ACEOF | ||
19616 | /* confdefs.h. */ | ||
19617 | _ACEOF | ||
19618 | cat confdefs.h >>conftest.$ac_ext | ||
19619 | cat >>conftest.$ac_ext <<_ACEOF | ||
19620 | /* end confdefs.h. */ | ||
19621 | #include <utmp.h> | ||
19622 | |||
19623 | _ACEOF | ||
19624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19625 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
19626 | eval "$ossh_varname=yes" | ||
19627 | else | ||
19628 | eval "$ossh_varname=no" | ||
19629 | fi | ||
19630 | rm -f conftest* | ||
19631 | |||
19632 | fi | ||
19633 | |||
19634 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19635 | if test -n "`echo $ossh_varname`"; then | ||
19636 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19637 | echo "${ECHO_T}$ossh_result" >&6 | ||
19638 | if test "x$ossh_result" = "xyes"; then | ||
19639 | cat >>confdefs.h <<\_ACEOF | ||
19640 | #define HAVE_TV_IN_UTMP 1 | ||
19641 | _ACEOF | ||
19642 | |||
19643 | fi | ||
19644 | else | ||
19645 | echo "$as_me:$LINENO: result: no" >&5 | ||
19646 | echo "${ECHO_T}no" >&6 | ||
19647 | fi | ||
19648 | |||
19649 | |||
19650 | # look for field 'ut_id' in header 'utmp.h' | ||
19651 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19652 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
19653 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
19654 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
19655 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19657 | else | ||
19658 | |||
19659 | cat >conftest.$ac_ext <<_ACEOF | ||
19660 | /* confdefs.h. */ | ||
19661 | _ACEOF | ||
19662 | cat confdefs.h >>conftest.$ac_ext | ||
19663 | cat >>conftest.$ac_ext <<_ACEOF | ||
19664 | /* end confdefs.h. */ | ||
19665 | #include <utmp.h> | ||
19666 | |||
19667 | _ACEOF | ||
19668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19669 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
19670 | eval "$ossh_varname=yes" | ||
19671 | else | ||
19672 | eval "$ossh_varname=no" | ||
19673 | fi | ||
19674 | rm -f conftest* | ||
19675 | |||
19676 | fi | ||
19677 | |||
19678 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19679 | if test -n "`echo $ossh_varname`"; then | ||
19680 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19681 | echo "${ECHO_T}$ossh_result" >&6 | ||
19682 | if test "x$ossh_result" = "xyes"; then | ||
19683 | cat >>confdefs.h <<\_ACEOF | ||
19684 | #define HAVE_ID_IN_UTMP 1 | ||
19685 | _ACEOF | ||
19686 | |||
19687 | fi | ||
19688 | else | ||
19689 | echo "$as_me:$LINENO: result: no" >&5 | ||
19690 | echo "${ECHO_T}no" >&6 | ||
19691 | fi | ||
19692 | |||
19693 | |||
19694 | # look for field 'ut_id' in header 'utmpx.h' | ||
19695 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19696 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
19697 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
19698 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
19699 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19701 | else | ||
19702 | |||
19703 | cat >conftest.$ac_ext <<_ACEOF | ||
19704 | /* confdefs.h. */ | ||
19705 | _ACEOF | ||
19706 | cat confdefs.h >>conftest.$ac_ext | ||
19707 | cat >>conftest.$ac_ext <<_ACEOF | ||
19708 | /* end confdefs.h. */ | ||
19709 | #include <utmpx.h> | ||
19710 | |||
19711 | _ACEOF | ||
19712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19713 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
19714 | eval "$ossh_varname=yes" | ||
19715 | else | ||
19716 | eval "$ossh_varname=no" | ||
19717 | fi | ||
19718 | rm -f conftest* | ||
19719 | |||
19720 | fi | ||
19721 | |||
19722 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19723 | if test -n "`echo $ossh_varname`"; then | ||
19724 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19725 | echo "${ECHO_T}$ossh_result" >&6 | ||
19726 | if test "x$ossh_result" = "xyes"; then | ||
19727 | cat >>confdefs.h <<\_ACEOF | ||
19728 | #define HAVE_ID_IN_UTMPX 1 | ||
19729 | _ACEOF | ||
19730 | |||
19731 | fi | ||
19732 | else | ||
19733 | echo "$as_me:$LINENO: result: no" >&5 | ||
19734 | echo "${ECHO_T}no" >&6 | ||
19735 | fi | ||
19736 | |||
19737 | |||
19738 | # look for field 'ut_addr' in header 'utmp.h' | ||
19739 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19740 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
19741 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
19742 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
19743 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19745 | else | ||
19746 | |||
19747 | cat >conftest.$ac_ext <<_ACEOF | ||
19748 | /* confdefs.h. */ | ||
19749 | _ACEOF | ||
19750 | cat confdefs.h >>conftest.$ac_ext | ||
19751 | cat >>conftest.$ac_ext <<_ACEOF | ||
19752 | /* end confdefs.h. */ | ||
19753 | #include <utmp.h> | ||
19754 | |||
19755 | _ACEOF | ||
19756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19757 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
19758 | eval "$ossh_varname=yes" | ||
19759 | else | ||
19760 | eval "$ossh_varname=no" | ||
19761 | fi | ||
19762 | rm -f conftest* | ||
19763 | |||
19764 | fi | ||
19765 | |||
19766 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19767 | if test -n "`echo $ossh_varname`"; then | ||
19768 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19769 | echo "${ECHO_T}$ossh_result" >&6 | ||
19770 | if test "x$ossh_result" = "xyes"; then | ||
19771 | cat >>confdefs.h <<\_ACEOF | ||
19772 | #define HAVE_ADDR_IN_UTMP 1 | ||
19773 | _ACEOF | ||
19774 | |||
19775 | fi | ||
19776 | else | ||
19777 | echo "$as_me:$LINENO: result: no" >&5 | ||
19778 | echo "${ECHO_T}no" >&6 | ||
19779 | fi | ||
19780 | |||
19781 | |||
19782 | # look for field 'ut_addr' in header 'utmpx.h' | ||
19783 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19784 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
19785 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
19786 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
19787 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19789 | else | ||
19790 | |||
19791 | cat >conftest.$ac_ext <<_ACEOF | ||
19792 | /* confdefs.h. */ | ||
19793 | _ACEOF | ||
19794 | cat confdefs.h >>conftest.$ac_ext | ||
19795 | cat >>conftest.$ac_ext <<_ACEOF | ||
19796 | /* end confdefs.h. */ | ||
19797 | #include <utmpx.h> | ||
19798 | |||
19799 | _ACEOF | ||
19800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19801 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
19802 | eval "$ossh_varname=yes" | ||
19803 | else | ||
19804 | eval "$ossh_varname=no" | ||
19805 | fi | ||
19806 | rm -f conftest* | ||
19807 | |||
19808 | fi | ||
19809 | |||
19810 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19811 | if test -n "`echo $ossh_varname`"; then | ||
19812 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19813 | echo "${ECHO_T}$ossh_result" >&6 | ||
19814 | if test "x$ossh_result" = "xyes"; then | ||
19815 | cat >>confdefs.h <<\_ACEOF | ||
19816 | #define HAVE_ADDR_IN_UTMPX 1 | ||
19817 | _ACEOF | ||
19818 | |||
19819 | fi | ||
19820 | else | ||
19821 | echo "$as_me:$LINENO: result: no" >&5 | ||
19822 | echo "${ECHO_T}no" >&6 | ||
19823 | fi | ||
19824 | |||
19825 | |||
19826 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
19827 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19828 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
19829 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
19830 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
19831 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19833 | else | ||
19834 | |||
19835 | cat >conftest.$ac_ext <<_ACEOF | ||
19836 | /* confdefs.h. */ | ||
19837 | _ACEOF | ||
19838 | cat confdefs.h >>conftest.$ac_ext | ||
19839 | cat >>conftest.$ac_ext <<_ACEOF | ||
19840 | /* end confdefs.h. */ | ||
19841 | #include <utmp.h> | ||
19842 | |||
19843 | _ACEOF | ||
19844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19845 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
19846 | eval "$ossh_varname=yes" | ||
19847 | else | ||
19848 | eval "$ossh_varname=no" | ||
19849 | fi | ||
19850 | rm -f conftest* | ||
19851 | |||
19852 | fi | ||
19853 | |||
19854 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19855 | if test -n "`echo $ossh_varname`"; then | ||
19856 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19857 | echo "${ECHO_T}$ossh_result" >&6 | ||
19858 | if test "x$ossh_result" = "xyes"; then | ||
19859 | cat >>confdefs.h <<\_ACEOF | ||
19860 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
19861 | _ACEOF | ||
19862 | |||
19863 | fi | ||
19864 | else | ||
19865 | echo "$as_me:$LINENO: result: no" >&5 | ||
19866 | echo "${ECHO_T}no" >&6 | ||
19867 | fi | ||
19868 | |||
19869 | |||
19870 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
19871 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19872 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
19873 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
19874 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
19875 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19877 | else | ||
19878 | |||
19879 | cat >conftest.$ac_ext <<_ACEOF | ||
19880 | /* confdefs.h. */ | ||
19881 | _ACEOF | ||
19882 | cat confdefs.h >>conftest.$ac_ext | ||
19883 | cat >>conftest.$ac_ext <<_ACEOF | ||
19884 | /* end confdefs.h. */ | ||
19885 | #include <utmpx.h> | ||
19886 | |||
19887 | _ACEOF | ||
19888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19889 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
19890 | eval "$ossh_varname=yes" | ||
19891 | else | ||
19892 | eval "$ossh_varname=no" | ||
19893 | fi | ||
19894 | rm -f conftest* | ||
19895 | |||
19896 | fi | ||
19897 | |||
19898 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19899 | if test -n "`echo $ossh_varname`"; then | ||
19900 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19901 | echo "${ECHO_T}$ossh_result" >&6 | ||
19902 | if test "x$ossh_result" = "xyes"; then | ||
19903 | cat >>confdefs.h <<\_ACEOF | ||
19904 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
19905 | _ACEOF | ||
19906 | |||
19907 | fi | ||
19908 | else | ||
19909 | echo "$as_me:$LINENO: result: no" >&5 | ||
19910 | echo "${ECHO_T}no" >&6 | ||
19911 | fi | ||
19912 | |||
19913 | |||
19914 | # look for field 'ut_exit' in header 'utmp.h' | ||
19915 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19916 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
19917 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
19918 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
19919 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19921 | else | ||
19922 | |||
19923 | cat >conftest.$ac_ext <<_ACEOF | ||
19924 | /* confdefs.h. */ | ||
19925 | _ACEOF | ||
19926 | cat confdefs.h >>conftest.$ac_ext | ||
19927 | cat >>conftest.$ac_ext <<_ACEOF | ||
19928 | /* end confdefs.h. */ | ||
19929 | #include <utmp.h> | ||
19930 | |||
19931 | _ACEOF | ||
19932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19933 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
19934 | eval "$ossh_varname=yes" | ||
19935 | else | ||
19936 | eval "$ossh_varname=no" | ||
19937 | fi | ||
19938 | rm -f conftest* | ||
19939 | |||
19940 | fi | ||
19941 | |||
19942 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19943 | if test -n "`echo $ossh_varname`"; then | ||
19944 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19945 | echo "${ECHO_T}$ossh_result" >&6 | ||
19946 | if test "x$ossh_result" = "xyes"; then | ||
19947 | cat >>confdefs.h <<\_ACEOF | ||
19948 | #define HAVE_EXIT_IN_UTMP 1 | ||
19949 | _ACEOF | ||
19950 | |||
19951 | fi | ||
19952 | else | ||
19953 | echo "$as_me:$LINENO: result: no" >&5 | ||
19954 | echo "${ECHO_T}no" >&6 | ||
19955 | fi | ||
19956 | |||
19957 | |||
19958 | # look for field 'ut_time' in header 'utmp.h' | ||
19959 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19960 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
19961 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
19962 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
19963 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19965 | else | ||
19966 | |||
19967 | cat >conftest.$ac_ext <<_ACEOF | ||
19968 | /* confdefs.h. */ | ||
19969 | _ACEOF | ||
19970 | cat confdefs.h >>conftest.$ac_ext | ||
19971 | cat >>conftest.$ac_ext <<_ACEOF | ||
19972 | /* end confdefs.h. */ | ||
19973 | #include <utmp.h> | ||
19974 | |||
19975 | _ACEOF | ||
19976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19977 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
19978 | eval "$ossh_varname=yes" | ||
19979 | else | ||
19980 | eval "$ossh_varname=no" | ||
19981 | fi | ||
19982 | rm -f conftest* | ||
19983 | |||
19984 | fi | ||
19985 | |||
19986 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19987 | if test -n "`echo $ossh_varname`"; then | ||
19988 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19989 | echo "${ECHO_T}$ossh_result" >&6 | ||
19990 | if test "x$ossh_result" = "xyes"; then | ||
19991 | cat >>confdefs.h <<\_ACEOF | ||
19992 | #define HAVE_TIME_IN_UTMP 1 | ||
19993 | _ACEOF | ||
19994 | |||
19995 | fi | ||
19996 | else | ||
19997 | echo "$as_me:$LINENO: result: no" >&5 | ||
19998 | echo "${ECHO_T}no" >&6 | ||
19999 | fi | ||
20000 | |||
20001 | |||
20002 | # look for field 'ut_time' in header 'utmpx.h' | ||
20003 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20004 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
20005 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
20006 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
20007 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20009 | else | ||
20010 | |||
20011 | cat >conftest.$ac_ext <<_ACEOF | ||
20012 | /* confdefs.h. */ | ||
20013 | _ACEOF | ||
20014 | cat confdefs.h >>conftest.$ac_ext | ||
20015 | cat >>conftest.$ac_ext <<_ACEOF | ||
20016 | /* end confdefs.h. */ | ||
20017 | #include <utmpx.h> | ||
20018 | |||
20019 | _ACEOF | ||
20020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20021 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
20022 | eval "$ossh_varname=yes" | ||
20023 | else | ||
20024 | eval "$ossh_varname=no" | ||
20025 | fi | ||
20026 | rm -f conftest* | ||
20027 | |||
20028 | fi | ||
20029 | |||
20030 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20031 | if test -n "`echo $ossh_varname`"; then | ||
20032 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20033 | echo "${ECHO_T}$ossh_result" >&6 | ||
20034 | if test "x$ossh_result" = "xyes"; then | ||
20035 | cat >>confdefs.h <<\_ACEOF | ||
20036 | #define HAVE_TIME_IN_UTMPX 1 | ||
20037 | _ACEOF | ||
20038 | |||
20039 | fi | ||
20040 | else | ||
20041 | echo "$as_me:$LINENO: result: no" >&5 | ||
20042 | echo "${ECHO_T}no" >&6 | ||
20043 | fi | ||
20044 | |||
20045 | |||
20046 | # look for field 'ut_tv' in header 'utmpx.h' | ||
20047 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20048 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
20049 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
20050 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
20051 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20053 | else | ||
20054 | |||
20055 | cat >conftest.$ac_ext <<_ACEOF | ||
20056 | /* confdefs.h. */ | ||
20057 | _ACEOF | ||
20058 | cat confdefs.h >>conftest.$ac_ext | ||
20059 | cat >>conftest.$ac_ext <<_ACEOF | ||
20060 | /* end confdefs.h. */ | ||
20061 | #include <utmpx.h> | ||
20062 | |||
20063 | _ACEOF | ||
20064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20065 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
20066 | eval "$ossh_varname=yes" | ||
20067 | else | ||
20068 | eval "$ossh_varname=no" | ||
20069 | fi | ||
20070 | rm -f conftest* | ||
20071 | |||
20072 | fi | ||
20073 | |||
20074 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20075 | if test -n "`echo $ossh_varname`"; then | ||
20076 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20077 | echo "${ECHO_T}$ossh_result" >&6 | ||
20078 | if test "x$ossh_result" = "xyes"; then | ||
20079 | cat >>confdefs.h <<\_ACEOF | ||
20080 | #define HAVE_TV_IN_UTMPX 1 | ||
20081 | _ACEOF | ||
20082 | |||
20083 | fi | ||
20084 | else | ||
20085 | echo "$as_me:$LINENO: result: no" >&5 | ||
20086 | echo "${ECHO_T}no" >&6 | ||
20087 | fi | ||
20088 | |||
20089 | |||
20090 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
20091 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
20092 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
20093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20094 | else | ||
20095 | cat >conftest.$ac_ext <<_ACEOF | ||
20096 | /* confdefs.h. */ | ||
20097 | _ACEOF | ||
20098 | cat confdefs.h >>conftest.$ac_ext | ||
20099 | cat >>conftest.$ac_ext <<_ACEOF | ||
20100 | /* end confdefs.h. */ | ||
20101 | $ac_includes_default | ||
20102 | int | ||
20103 | main () | ||
20104 | { | ||
20105 | static struct stat ac_aggr; | ||
20106 | if (ac_aggr.st_blksize) | ||
20107 | return 0; | ||
20108 | ; | ||
20109 | return 0; | ||
20110 | } | ||
20111 | _ACEOF | ||
20112 | rm -f conftest.$ac_objext | ||
20113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20114 | (eval $ac_compile) 2>conftest.er1 | ||
20115 | ac_status=$? | ||
20116 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20117 | rm -f conftest.er1 | ||
20118 | cat conftest.err >&5 | ||
20119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20120 | (exit $ac_status); } && | ||
20121 | { ac_try='test -z "$ac_c_werror_flag" | ||
20122 | || test ! -s conftest.err' | ||
20123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20124 | (eval $ac_try) 2>&5 | ||
20125 | ac_status=$? | ||
20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20127 | (exit $ac_status); }; } && | ||
20128 | { ac_try='test -s conftest.$ac_objext' | ||
20129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20130 | (eval $ac_try) 2>&5 | ||
20131 | ac_status=$? | ||
20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20133 | (exit $ac_status); }; }; then | ||
20134 | ac_cv_member_struct_stat_st_blksize=yes | ||
20135 | else | ||
20136 | echo "$as_me: failed program was:" >&5 | ||
20137 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20138 | |||
20139 | cat >conftest.$ac_ext <<_ACEOF | ||
20140 | /* confdefs.h. */ | ||
20141 | _ACEOF | ||
20142 | cat confdefs.h >>conftest.$ac_ext | ||
20143 | cat >>conftest.$ac_ext <<_ACEOF | ||
20144 | /* end confdefs.h. */ | ||
20145 | $ac_includes_default | ||
20146 | int | ||
20147 | main () | ||
20148 | { | ||
20149 | static struct stat ac_aggr; | ||
20150 | if (sizeof ac_aggr.st_blksize) | ||
20151 | return 0; | ||
20152 | ; | ||
20153 | return 0; | ||
20154 | } | ||
20155 | _ACEOF | ||
20156 | rm -f conftest.$ac_objext | ||
20157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20158 | (eval $ac_compile) 2>conftest.er1 | ||
20159 | ac_status=$? | ||
20160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20161 | rm -f conftest.er1 | ||
20162 | cat conftest.err >&5 | ||
20163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20164 | (exit $ac_status); } && | ||
20165 | { ac_try='test -z "$ac_c_werror_flag" | ||
20166 | || test ! -s conftest.err' | ||
20167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20168 | (eval $ac_try) 2>&5 | ||
20169 | ac_status=$? | ||
20170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20171 | (exit $ac_status); }; } && | ||
20172 | { ac_try='test -s conftest.$ac_objext' | ||
20173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20174 | (eval $ac_try) 2>&5 | ||
20175 | ac_status=$? | ||
20176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20177 | (exit $ac_status); }; }; then | ||
20178 | ac_cv_member_struct_stat_st_blksize=yes | ||
20179 | else | ||
20180 | echo "$as_me: failed program was:" >&5 | ||
20181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20182 | |||
20183 | ac_cv_member_struct_stat_st_blksize=no | ||
20184 | fi | ||
20185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20186 | fi | ||
20187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20188 | fi | ||
20189 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
20190 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
20191 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
20192 | |||
20193 | cat >>confdefs.h <<_ACEOF | ||
20194 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
20195 | _ACEOF | ||
20196 | |||
20197 | |||
20198 | fi | ||
20199 | |||
20200 | |||
20201 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
20202 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20203 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
20204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20205 | else | ||
20206 | |||
20207 | cat >conftest.$ac_ext <<_ACEOF | ||
20208 | /* confdefs.h. */ | ||
20209 | _ACEOF | ||
20210 | cat confdefs.h >>conftest.$ac_ext | ||
20211 | cat >>conftest.$ac_ext <<_ACEOF | ||
20212 | /* end confdefs.h. */ | ||
20213 | |||
20214 | #include <sys/types.h> | ||
20215 | #include <sys/socket.h> | ||
20216 | |||
20217 | int | ||
20218 | main () | ||
20219 | { | ||
20220 | struct sockaddr_storage s; s.ss_family = 1; | ||
20221 | ; | ||
20222 | return 0; | ||
20223 | } | ||
20224 | _ACEOF | ||
20225 | rm -f conftest.$ac_objext | ||
20226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20227 | (eval $ac_compile) 2>conftest.er1 | ||
20228 | ac_status=$? | ||
20229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20230 | rm -f conftest.er1 | ||
20231 | cat conftest.err >&5 | ||
20232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20233 | (exit $ac_status); } && | ||
20234 | { ac_try='test -z "$ac_c_werror_flag" | ||
20235 | || test ! -s conftest.err' | ||
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20237 | (eval $ac_try) 2>&5 | ||
20238 | ac_status=$? | ||
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20240 | (exit $ac_status); }; } && | ||
20241 | { ac_try='test -s conftest.$ac_objext' | ||
20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20243 | (eval $ac_try) 2>&5 | ||
20244 | ac_status=$? | ||
20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20246 | (exit $ac_status); }; }; then | ||
20247 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
20248 | else | ||
20249 | echo "$as_me: failed program was:" >&5 | ||
20250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20251 | |||
20252 | ac_cv_have_ss_family_in_struct_ss="no" | ||
20253 | fi | ||
20254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20255 | |||
20256 | fi | ||
20257 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
20258 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
20259 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
20260 | cat >>confdefs.h <<\_ACEOF | ||
20261 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
20262 | _ACEOF | ||
20263 | |||
20264 | fi | ||
20265 | |||
20266 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
20267 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20268 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
20269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20270 | else | ||
20271 | |||
20272 | cat >conftest.$ac_ext <<_ACEOF | ||
20273 | /* confdefs.h. */ | ||
20274 | _ACEOF | ||
20275 | cat confdefs.h >>conftest.$ac_ext | ||
20276 | cat >>conftest.$ac_ext <<_ACEOF | ||
20277 | /* end confdefs.h. */ | ||
20278 | |||
20279 | #include <sys/types.h> | ||
20280 | #include <sys/socket.h> | ||
20281 | |||
20282 | int | ||
20283 | main () | ||
20284 | { | ||
20285 | struct sockaddr_storage s; s.__ss_family = 1; | ||
20286 | ; | ||
20287 | return 0; | ||
20288 | } | ||
20289 | _ACEOF | ||
20290 | rm -f conftest.$ac_objext | ||
20291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20292 | (eval $ac_compile) 2>conftest.er1 | ||
20293 | ac_status=$? | ||
20294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20295 | rm -f conftest.er1 | ||
20296 | cat conftest.err >&5 | ||
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20298 | (exit $ac_status); } && | ||
20299 | { ac_try='test -z "$ac_c_werror_flag" | ||
20300 | || test ! -s conftest.err' | ||
20301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20302 | (eval $ac_try) 2>&5 | ||
20303 | ac_status=$? | ||
20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20305 | (exit $ac_status); }; } && | ||
20306 | { ac_try='test -s conftest.$ac_objext' | ||
20307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20308 | (eval $ac_try) 2>&5 | ||
20309 | ac_status=$? | ||
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20311 | (exit $ac_status); }; }; then | ||
20312 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
20313 | else | ||
20314 | echo "$as_me: failed program was:" >&5 | ||
20315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20316 | |||
20317 | ac_cv_have___ss_family_in_struct_ss="no" | ||
20318 | |||
20319 | fi | ||
20320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20321 | |||
20322 | fi | ||
20323 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
20324 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
20325 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
20326 | cat >>confdefs.h <<\_ACEOF | ||
20327 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
20328 | _ACEOF | ||
20329 | |||
20330 | fi | ||
20331 | |||
20332 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
20333 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
20334 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
20335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20336 | else | ||
20337 | |||
20338 | cat >conftest.$ac_ext <<_ACEOF | ||
20339 | /* confdefs.h. */ | ||
20340 | _ACEOF | ||
20341 | cat confdefs.h >>conftest.$ac_ext | ||
20342 | cat >>conftest.$ac_ext <<_ACEOF | ||
20343 | /* end confdefs.h. */ | ||
20344 | |||
20345 | #include <pwd.h> | ||
20346 | |||
20347 | int | ||
20348 | main () | ||
20349 | { | ||
20350 | struct passwd p; p.pw_class = 0; | ||
20351 | ; | ||
20352 | return 0; | ||
20353 | } | ||
20354 | _ACEOF | ||
20355 | rm -f conftest.$ac_objext | ||
20356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20357 | (eval $ac_compile) 2>conftest.er1 | ||
20358 | ac_status=$? | ||
20359 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20360 | rm -f conftest.er1 | ||
20361 | cat conftest.err >&5 | ||
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20363 | (exit $ac_status); } && | ||
20364 | { ac_try='test -z "$ac_c_werror_flag" | ||
20365 | || test ! -s conftest.err' | ||
20366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20367 | (eval $ac_try) 2>&5 | ||
20368 | ac_status=$? | ||
20369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20370 | (exit $ac_status); }; } && | ||
20371 | { ac_try='test -s conftest.$ac_objext' | ||
20372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20373 | (eval $ac_try) 2>&5 | ||
20374 | ac_status=$? | ||
20375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20376 | (exit $ac_status); }; }; then | ||
20377 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
20378 | else | ||
20379 | echo "$as_me: failed program was:" >&5 | ||
20380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20381 | |||
20382 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
20383 | |||
20384 | fi | ||
20385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20386 | |||
20387 | fi | ||
20388 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
20389 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
20390 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
20391 | cat >>confdefs.h <<\_ACEOF | ||
20392 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
20393 | _ACEOF | ||
20394 | |||
20395 | fi | ||
20396 | |||
20397 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
20398 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
20399 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
20400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20401 | else | ||
20402 | |||
20403 | cat >conftest.$ac_ext <<_ACEOF | ||
20404 | /* confdefs.h. */ | ||
20405 | _ACEOF | ||
20406 | cat confdefs.h >>conftest.$ac_ext | ||
20407 | cat >>conftest.$ac_ext <<_ACEOF | ||
20408 | /* end confdefs.h. */ | ||
20409 | |||
20410 | #include <pwd.h> | ||
20411 | |||
20412 | int | ||
20413 | main () | ||
20414 | { | ||
20415 | struct passwd p; p.pw_expire = 0; | ||
20416 | ; | ||
20417 | return 0; | ||
20418 | } | ||
20419 | _ACEOF | ||
20420 | rm -f conftest.$ac_objext | ||
20421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20422 | (eval $ac_compile) 2>conftest.er1 | ||
20423 | ac_status=$? | ||
20424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20425 | rm -f conftest.er1 | ||
20426 | cat conftest.err >&5 | ||
20427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20428 | (exit $ac_status); } && | ||
20429 | { ac_try='test -z "$ac_c_werror_flag" | ||
20430 | || test ! -s conftest.err' | ||
20431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20432 | (eval $ac_try) 2>&5 | ||
20433 | ac_status=$? | ||
20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20435 | (exit $ac_status); }; } && | ||
20436 | { ac_try='test -s conftest.$ac_objext' | ||
20437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20438 | (eval $ac_try) 2>&5 | ||
20439 | ac_status=$? | ||
20440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20441 | (exit $ac_status); }; }; then | ||
20442 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
20443 | else | ||
20444 | echo "$as_me: failed program was:" >&5 | ||
20445 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20446 | |||
20447 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
20448 | |||
20449 | fi | ||
20450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20451 | |||
20452 | fi | ||
20453 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
20454 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
20455 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
20456 | cat >>confdefs.h <<\_ACEOF | ||
20457 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
20458 | _ACEOF | ||
20459 | |||
20460 | fi | ||
20461 | |||
20462 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
20463 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
20464 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20466 | else | ||
20467 | |||
20468 | cat >conftest.$ac_ext <<_ACEOF | ||
20469 | /* confdefs.h. */ | ||
20470 | _ACEOF | ||
20471 | cat confdefs.h >>conftest.$ac_ext | ||
20472 | cat >>conftest.$ac_ext <<_ACEOF | ||
20473 | /* end confdefs.h. */ | ||
20474 | |||
20475 | #include <pwd.h> | ||
20476 | |||
20477 | int | ||
20478 | main () | ||
20479 | { | ||
20480 | struct passwd p; p.pw_change = 0; | ||
20481 | ; | ||
20482 | return 0; | ||
20483 | } | ||
20484 | _ACEOF | ||
20485 | rm -f conftest.$ac_objext | ||
20486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20487 | (eval $ac_compile) 2>conftest.er1 | ||
20488 | ac_status=$? | ||
20489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20490 | rm -f conftest.er1 | ||
20491 | cat conftest.err >&5 | ||
20492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20493 | (exit $ac_status); } && | ||
20494 | { ac_try='test -z "$ac_c_werror_flag" | ||
20495 | || test ! -s conftest.err' | ||
20496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20497 | (eval $ac_try) 2>&5 | ||
20498 | ac_status=$? | ||
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20500 | (exit $ac_status); }; } && | ||
20501 | { ac_try='test -s conftest.$ac_objext' | ||
20502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20503 | (eval $ac_try) 2>&5 | ||
20504 | ac_status=$? | ||
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20506 | (exit $ac_status); }; }; then | ||
20507 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
20508 | else | ||
20509 | echo "$as_me: failed program was:" >&5 | ||
20510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20511 | |||
20512 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
20513 | |||
20514 | fi | ||
20515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20516 | |||
20517 | fi | ||
20518 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
20519 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
20520 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
20521 | cat >>confdefs.h <<\_ACEOF | ||
20522 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
20523 | _ACEOF | ||
20524 | |||
20525 | fi | ||
20526 | |||
20527 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
20528 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
20529 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
20530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20531 | else | ||
20532 | |||
20533 | cat >conftest.$ac_ext <<_ACEOF | ||
20534 | |||
20535 | #include <sys/types.h> | ||
20536 | #include <sys/socket.h> | ||
20537 | #include <sys/uio.h> | ||
20538 | int main() { | ||
20539 | #ifdef msg_accrights | ||
20540 | #error "msg_accrights is a macro" | ||
20541 | exit(1); | ||
20542 | #endif | ||
20543 | struct msghdr m; | ||
20544 | m.msg_accrights = 0; | ||
20545 | exit(0); | ||
20546 | } | ||
20547 | |||
20548 | _ACEOF | ||
20549 | rm -f conftest.$ac_objext | ||
20550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20551 | (eval $ac_compile) 2>conftest.er1 | ||
20552 | ac_status=$? | ||
20553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20554 | rm -f conftest.er1 | ||
20555 | cat conftest.err >&5 | ||
20556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20557 | (exit $ac_status); } && | ||
20558 | { ac_try='test -z "$ac_c_werror_flag" | ||
20559 | || test ! -s conftest.err' | ||
20560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20561 | (eval $ac_try) 2>&5 | ||
20562 | ac_status=$? | ||
20563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20564 | (exit $ac_status); }; } && | ||
20565 | { ac_try='test -s conftest.$ac_objext' | ||
20566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20567 | (eval $ac_try) 2>&5 | ||
20568 | ac_status=$? | ||
20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20570 | (exit $ac_status); }; }; then | ||
20571 | ac_cv_have_accrights_in_msghdr="yes" | ||
20572 | else | ||
20573 | echo "$as_me: failed program was:" >&5 | ||
20574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20575 | |||
20576 | ac_cv_have_accrights_in_msghdr="no" | ||
20577 | |||
20578 | fi | ||
20579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20580 | |||
20581 | fi | ||
20582 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
20583 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
20584 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
20585 | cat >>confdefs.h <<\_ACEOF | ||
20586 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
20587 | _ACEOF | ||
20588 | |||
20589 | fi | ||
20590 | |||
20591 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
20592 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
20593 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
20594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20595 | else | ||
20596 | |||
20597 | cat >conftest.$ac_ext <<_ACEOF | ||
20598 | |||
20599 | #include <sys/types.h> | ||
20600 | #include <sys/socket.h> | ||
20601 | #include <sys/uio.h> | ||
20602 | int main() { | ||
20603 | #ifdef msg_control | ||
20604 | #error "msg_control is a macro" | ||
20605 | exit(1); | ||
20606 | #endif | ||
20607 | struct msghdr m; | ||
20608 | m.msg_control = 0; | ||
20609 | exit(0); | ||
20610 | } | ||
20611 | |||
20612 | _ACEOF | ||
20613 | rm -f conftest.$ac_objext | ||
20614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20615 | (eval $ac_compile) 2>conftest.er1 | ||
20616 | ac_status=$? | ||
20617 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20618 | rm -f conftest.er1 | ||
20619 | cat conftest.err >&5 | ||
20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20621 | (exit $ac_status); } && | ||
20622 | { ac_try='test -z "$ac_c_werror_flag" | ||
20623 | || test ! -s conftest.err' | ||
20624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20625 | (eval $ac_try) 2>&5 | ||
20626 | ac_status=$? | ||
20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20628 | (exit $ac_status); }; } && | ||
20629 | { ac_try='test -s conftest.$ac_objext' | ||
20630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20631 | (eval $ac_try) 2>&5 | ||
20632 | ac_status=$? | ||
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20634 | (exit $ac_status); }; }; then | ||
20635 | ac_cv_have_control_in_msghdr="yes" | ||
20636 | else | ||
20637 | echo "$as_me: failed program was:" >&5 | ||
20638 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20639 | |||
20640 | ac_cv_have_control_in_msghdr="no" | ||
20641 | |||
20642 | fi | ||
20643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20644 | |||
20645 | fi | ||
20646 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
20647 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
20648 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
20649 | cat >>confdefs.h <<\_ACEOF | ||
20650 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
20651 | _ACEOF | ||
20652 | |||
20653 | fi | ||
20654 | |||
20655 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
20656 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
20657 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
20658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20659 | else | ||
20660 | |||
20661 | cat >conftest.$ac_ext <<_ACEOF | ||
20662 | /* confdefs.h. */ | ||
20663 | _ACEOF | ||
20664 | cat confdefs.h >>conftest.$ac_ext | ||
20665 | cat >>conftest.$ac_ext <<_ACEOF | ||
20666 | /* end confdefs.h. */ | ||
20667 | |||
20668 | int | ||
20669 | main () | ||
20670 | { | ||
20671 | extern char *__progname; printf("%s", __progname); | ||
20672 | ; | ||
20673 | return 0; | ||
20674 | } | ||
20675 | _ACEOF | ||
20676 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20678 | (eval $ac_link) 2>conftest.er1 | ||
20679 | ac_status=$? | ||
20680 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20681 | rm -f conftest.er1 | ||
20682 | cat conftest.err >&5 | ||
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20684 | (exit $ac_status); } && | ||
20685 | { ac_try='test -z "$ac_c_werror_flag" | ||
20686 | || test ! -s conftest.err' | ||
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20688 | (eval $ac_try) 2>&5 | ||
20689 | ac_status=$? | ||
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20691 | (exit $ac_status); }; } && | ||
20692 | { ac_try='test -s conftest$ac_exeext' | ||
20693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20694 | (eval $ac_try) 2>&5 | ||
20695 | ac_status=$? | ||
20696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20697 | (exit $ac_status); }; }; then | ||
20698 | ac_cv_libc_defines___progname="yes" | ||
20699 | else | ||
20700 | echo "$as_me: failed program was:" >&5 | ||
20701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20702 | |||
20703 | ac_cv_libc_defines___progname="no" | ||
20704 | |||
20705 | fi | ||
20706 | rm -f conftest.err conftest.$ac_objext \ | ||
20707 | conftest$ac_exeext conftest.$ac_ext | ||
20708 | |||
20709 | fi | ||
20710 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
20711 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
20712 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
20713 | cat >>confdefs.h <<\_ACEOF | ||
20714 | #define HAVE___PROGNAME 1 | ||
20715 | _ACEOF | ||
20716 | |||
20717 | fi | ||
20718 | |||
20719 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
20720 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
20721 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
20722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20723 | else | ||
20724 | |||
20725 | cat >conftest.$ac_ext <<_ACEOF | ||
20726 | /* confdefs.h. */ | ||
20727 | _ACEOF | ||
20728 | cat confdefs.h >>conftest.$ac_ext | ||
20729 | cat >>conftest.$ac_ext <<_ACEOF | ||
20730 | /* end confdefs.h. */ | ||
20731 | |||
20732 | #include <stdio.h> | ||
20733 | |||
20734 | int | ||
20735 | main () | ||
20736 | { | ||
20737 | printf("%s", __FUNCTION__); | ||
20738 | ; | ||
20739 | return 0; | ||
20740 | } | ||
20741 | _ACEOF | ||
20742 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20744 | (eval $ac_link) 2>conftest.er1 | ||
20745 | ac_status=$? | ||
20746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20747 | rm -f conftest.er1 | ||
20748 | cat conftest.err >&5 | ||
20749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20750 | (exit $ac_status); } && | ||
20751 | { ac_try='test -z "$ac_c_werror_flag" | ||
20752 | || test ! -s conftest.err' | ||
20753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20754 | (eval $ac_try) 2>&5 | ||
20755 | ac_status=$? | ||
20756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20757 | (exit $ac_status); }; } && | ||
20758 | { ac_try='test -s conftest$ac_exeext' | ||
20759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20760 | (eval $ac_try) 2>&5 | ||
20761 | ac_status=$? | ||
20762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20763 | (exit $ac_status); }; }; then | ||
20764 | ac_cv_cc_implements___FUNCTION__="yes" | ||
20765 | else | ||
20766 | echo "$as_me: failed program was:" >&5 | ||
20767 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20768 | |||
20769 | ac_cv_cc_implements___FUNCTION__="no" | ||
20770 | |||
20771 | fi | ||
20772 | rm -f conftest.err conftest.$ac_objext \ | ||
20773 | conftest$ac_exeext conftest.$ac_ext | ||
20774 | |||
20775 | fi | ||
20776 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
20777 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
20778 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
20779 | cat >>confdefs.h <<\_ACEOF | ||
20780 | #define HAVE___FUNCTION__ 1 | ||
20781 | _ACEOF | ||
20782 | |||
20783 | fi | ||
20784 | |||
20785 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
20786 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
20787 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
20788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20789 | else | ||
20790 | |||
20791 | cat >conftest.$ac_ext <<_ACEOF | ||
20792 | /* confdefs.h. */ | ||
20793 | _ACEOF | ||
20794 | cat confdefs.h >>conftest.$ac_ext | ||
20795 | cat >>conftest.$ac_ext <<_ACEOF | ||
20796 | /* end confdefs.h. */ | ||
20797 | |||
20798 | #include <stdio.h> | ||
20799 | |||
20800 | int | ||
20801 | main () | ||
20802 | { | ||
20803 | printf("%s", __func__); | ||
20804 | ; | ||
20805 | return 0; | ||
20806 | } | ||
20807 | _ACEOF | ||
20808 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20810 | (eval $ac_link) 2>conftest.er1 | ||
20811 | ac_status=$? | ||
20812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20813 | rm -f conftest.er1 | ||
20814 | cat conftest.err >&5 | ||
20815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20816 | (exit $ac_status); } && | ||
20817 | { ac_try='test -z "$ac_c_werror_flag" | ||
20818 | || test ! -s conftest.err' | ||
20819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20820 | (eval $ac_try) 2>&5 | ||
20821 | ac_status=$? | ||
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20823 | (exit $ac_status); }; } && | ||
20824 | { ac_try='test -s conftest$ac_exeext' | ||
20825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20826 | (eval $ac_try) 2>&5 | ||
20827 | ac_status=$? | ||
20828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20829 | (exit $ac_status); }; }; then | ||
20830 | ac_cv_cc_implements___func__="yes" | ||
20831 | else | ||
20832 | echo "$as_me: failed program was:" >&5 | ||
20833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20834 | |||
20835 | ac_cv_cc_implements___func__="no" | ||
20836 | |||
20837 | fi | ||
20838 | rm -f conftest.err conftest.$ac_objext \ | ||
20839 | conftest$ac_exeext conftest.$ac_ext | ||
20840 | |||
20841 | fi | ||
20842 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
20843 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
20844 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
20845 | cat >>confdefs.h <<\_ACEOF | ||
20846 | #define HAVE___func__ 1 | ||
20847 | _ACEOF | ||
20848 | |||
20849 | fi | ||
20850 | |||
20851 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
20852 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
20853 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
20854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20855 | else | ||
20856 | |||
20857 | cat >conftest.$ac_ext <<_ACEOF | ||
20858 | /* confdefs.h. */ | ||
20859 | _ACEOF | ||
20860 | cat confdefs.h >>conftest.$ac_ext | ||
20861 | cat >>conftest.$ac_ext <<_ACEOF | ||
20862 | /* end confdefs.h. */ | ||
20863 | |||
20864 | #include <getopt.h> | ||
20865 | |||
20866 | int | ||
20867 | main () | ||
20868 | { | ||
20869 | extern int optreset; optreset = 0; | ||
20870 | ; | ||
20871 | return 0; | ||
20872 | } | ||
20873 | _ACEOF | ||
20874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20876 | (eval $ac_link) 2>conftest.er1 | ||
20877 | ac_status=$? | ||
20878 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20879 | rm -f conftest.er1 | ||
20880 | cat conftest.err >&5 | ||
20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20882 | (exit $ac_status); } && | ||
20883 | { ac_try='test -z "$ac_c_werror_flag" | ||
20884 | || test ! -s conftest.err' | ||
20885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20886 | (eval $ac_try) 2>&5 | ||
20887 | ac_status=$? | ||
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20889 | (exit $ac_status); }; } && | ||
20890 | { ac_try='test -s conftest$ac_exeext' | ||
20891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20892 | (eval $ac_try) 2>&5 | ||
20893 | ac_status=$? | ||
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20895 | (exit $ac_status); }; }; then | ||
20896 | ac_cv_have_getopt_optreset="yes" | ||
20897 | else | ||
20898 | echo "$as_me: failed program was:" >&5 | ||
20899 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20900 | |||
20901 | ac_cv_have_getopt_optreset="no" | ||
20902 | |||
20903 | fi | ||
20904 | rm -f conftest.err conftest.$ac_objext \ | ||
20905 | conftest$ac_exeext conftest.$ac_ext | ||
20906 | |||
20907 | fi | ||
20908 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
20909 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
20910 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
20911 | cat >>confdefs.h <<\_ACEOF | ||
20912 | #define HAVE_GETOPT_OPTRESET 1 | ||
20913 | _ACEOF | ||
20914 | |||
20915 | fi | ||
20916 | |||
20917 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
20918 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
20919 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
20920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20921 | else | ||
20922 | |||
20923 | cat >conftest.$ac_ext <<_ACEOF | ||
20924 | /* confdefs.h. */ | ||
20925 | _ACEOF | ||
20926 | cat confdefs.h >>conftest.$ac_ext | ||
20927 | cat >>conftest.$ac_ext <<_ACEOF | ||
20928 | /* end confdefs.h. */ | ||
20929 | |||
20930 | int | ||
20931 | main () | ||
20932 | { | ||
20933 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
20934 | ; | ||
20935 | return 0; | ||
20936 | } | ||
20937 | _ACEOF | ||
20938 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20940 | (eval $ac_link) 2>conftest.er1 | ||
20941 | ac_status=$? | ||
20942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20943 | rm -f conftest.er1 | ||
20944 | cat conftest.err >&5 | ||
20945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20946 | (exit $ac_status); } && | ||
20947 | { ac_try='test -z "$ac_c_werror_flag" | ||
20948 | || test ! -s conftest.err' | ||
20949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20950 | (eval $ac_try) 2>&5 | ||
20951 | ac_status=$? | ||
20952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20953 | (exit $ac_status); }; } && | ||
20954 | { ac_try='test -s conftest$ac_exeext' | ||
20955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20956 | (eval $ac_try) 2>&5 | ||
20957 | ac_status=$? | ||
20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20959 | (exit $ac_status); }; }; then | ||
20960 | ac_cv_libc_defines_sys_errlist="yes" | ||
20961 | else | ||
20962 | echo "$as_me: failed program was:" >&5 | ||
20963 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20964 | |||
20965 | ac_cv_libc_defines_sys_errlist="no" | ||
20966 | |||
20967 | fi | ||
20968 | rm -f conftest.err conftest.$ac_objext \ | ||
20969 | conftest$ac_exeext conftest.$ac_ext | ||
20970 | |||
20971 | fi | ||
20972 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
20973 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
20974 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
20975 | cat >>confdefs.h <<\_ACEOF | ||
20976 | #define HAVE_SYS_ERRLIST 1 | ||
20977 | _ACEOF | ||
20978 | |||
20979 | fi | ||
20980 | |||
20981 | |||
20982 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
20983 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
20984 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
20985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20986 | else | ||
20987 | |||
20988 | cat >conftest.$ac_ext <<_ACEOF | ||
20989 | /* confdefs.h. */ | ||
20990 | _ACEOF | ||
20991 | cat confdefs.h >>conftest.$ac_ext | ||
20992 | cat >>conftest.$ac_ext <<_ACEOF | ||
20993 | /* end confdefs.h. */ | ||
20994 | |||
20995 | int | ||
20996 | main () | ||
20997 | { | ||
20998 | extern int sys_nerr; printf("%i", sys_nerr); | ||
20999 | ; | ||
21000 | return 0; | ||
21001 | } | ||
21002 | _ACEOF | ||
21003 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21005 | (eval $ac_link) 2>conftest.er1 | ||
21006 | ac_status=$? | ||
21007 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21008 | rm -f conftest.er1 | ||
21009 | cat conftest.err >&5 | ||
21010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21011 | (exit $ac_status); } && | ||
21012 | { ac_try='test -z "$ac_c_werror_flag" | ||
21013 | || test ! -s conftest.err' | ||
21014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21015 | (eval $ac_try) 2>&5 | ||
21016 | ac_status=$? | ||
21017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21018 | (exit $ac_status); }; } && | ||
21019 | { ac_try='test -s conftest$ac_exeext' | ||
21020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21021 | (eval $ac_try) 2>&5 | ||
21022 | ac_status=$? | ||
21023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21024 | (exit $ac_status); }; }; then | ||
21025 | ac_cv_libc_defines_sys_nerr="yes" | ||
21026 | else | ||
21027 | echo "$as_me: failed program was:" >&5 | ||
21028 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21029 | |||
21030 | ac_cv_libc_defines_sys_nerr="no" | ||
21031 | |||
21032 | fi | ||
21033 | rm -f conftest.err conftest.$ac_objext \ | ||
21034 | conftest$ac_exeext conftest.$ac_ext | ||
21035 | |||
21036 | fi | ||
21037 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
21038 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
21039 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
21040 | cat >>confdefs.h <<\_ACEOF | ||
21041 | #define HAVE_SYS_NERR 1 | ||
21042 | _ACEOF | ||
21043 | |||
21044 | fi | ||
21045 | |||
21046 | SCARD_MSG="no" | ||
21047 | # Check whether user wants sectok support | ||
21048 | |||
21049 | # Check whether --with-sectok or --without-sectok was given. | ||
21050 | if test "${with_sectok+set}" = set; then | ||
21051 | withval="$with_sectok" | ||
21052 | |||
21053 | if test "x$withval" != "xno" ; then | ||
21054 | if test "x$withval" != "xyes" ; then | ||
21055 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
21056 | LDFLAGS="$LDFLAGS -L${withval}" | ||
21057 | if test ! -z "$need_dash_r" ; then | ||
21058 | LDFLAGS="$LDFLAGS -R${withval}" | ||
21059 | fi | ||
21060 | if test ! -z "$blibpath" ; then | ||
21061 | blibpath="$blibpath:${withval}" | ||
21062 | fi | ||
21063 | fi | ||
21064 | |||
21065 | for ac_header in sectok.h | ||
21066 | do | ||
21067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21073 | fi | ||
21074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21076 | else | ||
21077 | # Is the header compilable? | ||
21078 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21079 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21080 | cat >conftest.$ac_ext <<_ACEOF | ||
21081 | /* confdefs.h. */ | ||
21082 | _ACEOF | ||
21083 | cat confdefs.h >>conftest.$ac_ext | ||
21084 | cat >>conftest.$ac_ext <<_ACEOF | ||
21085 | /* end confdefs.h. */ | ||
21086 | $ac_includes_default | ||
21087 | #include <$ac_header> | ||
21088 | _ACEOF | ||
21089 | rm -f conftest.$ac_objext | ||
21090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21091 | (eval $ac_compile) 2>conftest.er1 | ||
21092 | ac_status=$? | ||
21093 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21094 | rm -f conftest.er1 | ||
21095 | cat conftest.err >&5 | ||
21096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21097 | (exit $ac_status); } && | ||
21098 | { ac_try='test -z "$ac_c_werror_flag" | ||
21099 | || test ! -s conftest.err' | ||
21100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21101 | (eval $ac_try) 2>&5 | ||
21102 | ac_status=$? | ||
21103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21104 | (exit $ac_status); }; } && | ||
21105 | { ac_try='test -s conftest.$ac_objext' | ||
21106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21107 | (eval $ac_try) 2>&5 | ||
21108 | ac_status=$? | ||
21109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21110 | (exit $ac_status); }; }; then | ||
21111 | ac_header_compiler=yes | ||
21112 | else | ||
21113 | echo "$as_me: failed program was:" >&5 | ||
21114 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21115 | |||
21116 | ac_header_compiler=no | ||
21117 | fi | ||
21118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21120 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21121 | |||
21122 | # Is the header present? | ||
21123 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21125 | cat >conftest.$ac_ext <<_ACEOF | ||
21126 | /* confdefs.h. */ | ||
21127 | _ACEOF | ||
21128 | cat confdefs.h >>conftest.$ac_ext | ||
21129 | cat >>conftest.$ac_ext <<_ACEOF | ||
21130 | /* end confdefs.h. */ | ||
21131 | #include <$ac_header> | ||
21132 | _ACEOF | ||
21133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21135 | ac_status=$? | ||
21136 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21137 | rm -f conftest.er1 | ||
21138 | cat conftest.err >&5 | ||
21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21140 | (exit $ac_status); } >/dev/null; then | ||
21141 | if test -s conftest.err; then | ||
21142 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21144 | else | ||
21145 | ac_cpp_err= | ||
21146 | fi | ||
21147 | else | ||
21148 | ac_cpp_err=yes | ||
21149 | fi | ||
21150 | if test -z "$ac_cpp_err"; then | ||
21151 | ac_header_preproc=yes | ||
21152 | else | ||
21153 | echo "$as_me: failed program was:" >&5 | ||
21154 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21155 | |||
21156 | ac_header_preproc=no | ||
21157 | fi | ||
21158 | rm -f conftest.err conftest.$ac_ext | ||
21159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21160 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21161 | |||
21162 | # So? What about this header? | ||
21163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21164 | yes:no: ) | ||
21165 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21166 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21168 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21169 | ac_header_preproc=yes | ||
21170 | ;; | ||
21171 | no:yes:* ) | ||
21172 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21173 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21174 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21175 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21176 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21177 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21178 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21179 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21181 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21182 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21183 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21184 | ( | ||
21185 | cat <<\_ASBOX | ||
21186 | ## ---------------------------------- ## | ||
21187 | ## Report this to the OpenSSH lists. ## | ||
21188 | ## ---------------------------------- ## | ||
21189 | _ASBOX | ||
21190 | ) | | ||
21191 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21192 | ;; | ||
21193 | esac | ||
21194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21198 | else | ||
21199 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21200 | fi | ||
21201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21203 | |||
21204 | fi | ||
21205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21206 | cat >>confdefs.h <<_ACEOF | ||
21207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21208 | _ACEOF | ||
21209 | |||
21210 | fi | ||
21211 | |||
21212 | done | ||
21213 | |||
21214 | if test "$ac_cv_header_sectok_h" != yes; then | ||
21215 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
21216 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
21217 | { (exit 1); exit 1; }; } | ||
21218 | fi | ||
21219 | |||
21220 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
21221 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
21222 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
21223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21224 | else | ||
21225 | ac_check_lib_save_LIBS=$LIBS | ||
21226 | LIBS="-lsectok $LIBS" | ||
21227 | cat >conftest.$ac_ext <<_ACEOF | ||
21228 | /* confdefs.h. */ | ||
21229 | _ACEOF | ||
21230 | cat confdefs.h >>conftest.$ac_ext | ||
21231 | cat >>conftest.$ac_ext <<_ACEOF | ||
21232 | /* end confdefs.h. */ | ||
21233 | |||
21234 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21235 | #ifdef __cplusplus | ||
21236 | extern "C" | ||
21237 | #endif | ||
21238 | /* We use char because int might match the return type of a gcc2 | ||
21239 | builtin and then its argument prototype would still apply. */ | ||
21240 | char sectok_open (); | ||
21241 | int | ||
21242 | main () | ||
21243 | { | ||
21244 | sectok_open (); | ||
21245 | ; | ||
21246 | return 0; | ||
21247 | } | ||
21248 | _ACEOF | ||
21249 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21251 | (eval $ac_link) 2>conftest.er1 | ||
21252 | ac_status=$? | ||
21253 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21254 | rm -f conftest.er1 | ||
21255 | cat conftest.err >&5 | ||
21256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21257 | (exit $ac_status); } && | ||
21258 | { ac_try='test -z "$ac_c_werror_flag" | ||
21259 | || test ! -s conftest.err' | ||
21260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21261 | (eval $ac_try) 2>&5 | ||
21262 | ac_status=$? | ||
21263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21264 | (exit $ac_status); }; } && | ||
21265 | { ac_try='test -s conftest$ac_exeext' | ||
21266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21267 | (eval $ac_try) 2>&5 | ||
21268 | ac_status=$? | ||
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21270 | (exit $ac_status); }; }; then | ||
21271 | ac_cv_lib_sectok_sectok_open=yes | ||
21272 | else | ||
21273 | echo "$as_me: failed program was:" >&5 | ||
21274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21275 | |||
21276 | ac_cv_lib_sectok_sectok_open=no | ||
21277 | fi | ||
21278 | rm -f conftest.err conftest.$ac_objext \ | ||
21279 | conftest$ac_exeext conftest.$ac_ext | ||
21280 | LIBS=$ac_check_lib_save_LIBS | ||
21281 | fi | ||
21282 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
21283 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
21284 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
21285 | cat >>confdefs.h <<_ACEOF | ||
21286 | #define HAVE_LIBSECTOK 1 | ||
21287 | _ACEOF | ||
21288 | |||
21289 | LIBS="-lsectok $LIBS" | ||
21290 | |||
21291 | fi | ||
21292 | |||
21293 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
21294 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
21295 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
21296 | { (exit 1); exit 1; }; } | ||
21297 | fi | ||
21298 | cat >>confdefs.h <<\_ACEOF | ||
21299 | #define SMARTCARD 1 | ||
21300 | _ACEOF | ||
21301 | |||
21302 | cat >>confdefs.h <<\_ACEOF | ||
21303 | #define USE_SECTOK 1 | ||
21304 | _ACEOF | ||
21305 | |||
21306 | SCARD_MSG="yes, using sectok" | ||
21307 | fi | ||
21308 | |||
21309 | |||
21310 | fi; | ||
21311 | |||
21312 | # Check whether user wants OpenSC support | ||
21313 | OPENSC_CONFIG="no" | ||
21314 | |||
21315 | # Check whether --with-opensc or --without-opensc was given. | ||
21316 | if test "${with_opensc+set}" = set; then | ||
21317 | withval="$with_opensc" | ||
21318 | |||
21319 | if test "x$withval" != "xno" ; then | ||
21320 | if test "x$withval" != "xyes" ; then | ||
21321 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
21322 | else | ||
21323 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
21324 | set dummy opensc-config; ac_word=$2 | ||
21325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
21326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
21327 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
21328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21329 | else | ||
21330 | case $OPENSC_CONFIG in | ||
21331 | [\\/]* | ?:[\\/]*) | ||
21332 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
21333 | ;; | ||
21334 | *) | ||
21335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21336 | for as_dir in $PATH | ||
21337 | do | ||
21338 | IFS=$as_save_IFS | ||
21339 | test -z "$as_dir" && as_dir=. | ||
21340 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21342 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
21343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21344 | break 2 | ||
21345 | fi | ||
21346 | done | ||
21347 | done | ||
21348 | |||
21349 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
21350 | ;; | ||
21351 | esac | ||
21352 | fi | ||
21353 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
21354 | |||
21355 | if test -n "$OPENSC_CONFIG"; then | ||
21356 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
21357 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
21358 | else | ||
21359 | echo "$as_me:$LINENO: result: no" >&5 | ||
21360 | echo "${ECHO_T}no" >&6 | ||
21361 | fi | ||
21362 | |||
21363 | fi | ||
21364 | if test "$OPENSC_CONFIG" != "no"; then | ||
21365 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
21366 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
21367 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
21368 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
21369 | cat >>confdefs.h <<\_ACEOF | ||
21370 | #define SMARTCARD 1 | ||
21371 | _ACEOF | ||
21372 | |||
21373 | cat >>confdefs.h <<\_ACEOF | ||
21374 | #define USE_OPENSC 1 | ||
21375 | _ACEOF | ||
21376 | |||
21377 | SCARD_MSG="yes, using OpenSC" | ||
21378 | fi | ||
21379 | fi | ||
21380 | |||
21381 | |||
21382 | fi; | ||
21383 | |||
21384 | # Check libraries needed by DNS fingerprint support | ||
21385 | echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
21386 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
21387 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
21388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21389 | else | ||
21390 | ac_func_search_save_LIBS=$LIBS | ||
21391 | ac_cv_search_getrrsetbyname=no | ||
21392 | cat >conftest.$ac_ext <<_ACEOF | ||
21393 | /* confdefs.h. */ | ||
21394 | _ACEOF | ||
21395 | cat confdefs.h >>conftest.$ac_ext | ||
21396 | cat >>conftest.$ac_ext <<_ACEOF | ||
21397 | /* end confdefs.h. */ | ||
21398 | |||
21399 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21400 | #ifdef __cplusplus | ||
21401 | extern "C" | ||
21402 | #endif | ||
21403 | /* We use char because int might match the return type of a gcc2 | ||
21404 | builtin and then its argument prototype would still apply. */ | ||
21405 | char getrrsetbyname (); | ||
21406 | int | ||
21407 | main () | ||
21408 | { | ||
21409 | getrrsetbyname (); | ||
21410 | ; | ||
21411 | return 0; | ||
21412 | } | ||
21413 | _ACEOF | ||
21414 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21416 | (eval $ac_link) 2>conftest.er1 | ||
21417 | ac_status=$? | ||
21418 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21419 | rm -f conftest.er1 | ||
21420 | cat conftest.err >&5 | ||
21421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21422 | (exit $ac_status); } && | ||
21423 | { ac_try='test -z "$ac_c_werror_flag" | ||
21424 | || test ! -s conftest.err' | ||
21425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21426 | (eval $ac_try) 2>&5 | ||
21427 | ac_status=$? | ||
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21429 | (exit $ac_status); }; } && | ||
21430 | { ac_try='test -s conftest$ac_exeext' | ||
21431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21432 | (eval $ac_try) 2>&5 | ||
21433 | ac_status=$? | ||
21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21435 | (exit $ac_status); }; }; then | ||
21436 | ac_cv_search_getrrsetbyname="none required" | ||
21437 | else | ||
21438 | echo "$as_me: failed program was:" >&5 | ||
21439 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21440 | |||
21441 | fi | ||
21442 | rm -f conftest.err conftest.$ac_objext \ | ||
21443 | conftest$ac_exeext conftest.$ac_ext | ||
21444 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
21445 | for ac_lib in resolv; do | ||
21446 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21447 | cat >conftest.$ac_ext <<_ACEOF | ||
21448 | /* confdefs.h. */ | ||
21449 | _ACEOF | ||
21450 | cat confdefs.h >>conftest.$ac_ext | ||
21451 | cat >>conftest.$ac_ext <<_ACEOF | ||
21452 | /* end confdefs.h. */ | ||
21453 | |||
21454 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21455 | #ifdef __cplusplus | ||
21456 | extern "C" | ||
21457 | #endif | ||
21458 | /* We use char because int might match the return type of a gcc2 | ||
21459 | builtin and then its argument prototype would still apply. */ | ||
21460 | char getrrsetbyname (); | ||
21461 | int | ||
21462 | main () | ||
21463 | { | ||
21464 | getrrsetbyname (); | ||
21465 | ; | ||
21466 | return 0; | ||
21467 | } | ||
21468 | _ACEOF | ||
21469 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21471 | (eval $ac_link) 2>conftest.er1 | ||
21472 | ac_status=$? | ||
21473 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21474 | rm -f conftest.er1 | ||
21475 | cat conftest.err >&5 | ||
21476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21477 | (exit $ac_status); } && | ||
21478 | { ac_try='test -z "$ac_c_werror_flag" | ||
21479 | || test ! -s conftest.err' | ||
21480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21481 | (eval $ac_try) 2>&5 | ||
21482 | ac_status=$? | ||
21483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21484 | (exit $ac_status); }; } && | ||
21485 | { ac_try='test -s conftest$ac_exeext' | ||
21486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21487 | (eval $ac_try) 2>&5 | ||
21488 | ac_status=$? | ||
21489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21490 | (exit $ac_status); }; }; then | ||
21491 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
21492 | break | ||
21493 | else | ||
21494 | echo "$as_me: failed program was:" >&5 | ||
21495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21496 | |||
21497 | fi | ||
21498 | rm -f conftest.err conftest.$ac_objext \ | ||
21499 | conftest$ac_exeext conftest.$ac_ext | ||
21500 | done | ||
21501 | fi | ||
21502 | LIBS=$ac_func_search_save_LIBS | ||
21503 | fi | ||
21504 | echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
21505 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
21506 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
21507 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
21508 | cat >>confdefs.h <<\_ACEOF | ||
21509 | #define HAVE_GETRRSETBYNAME 1 | ||
21510 | _ACEOF | ||
21511 | |||
21512 | else | ||
21513 | |||
21514 | # Needed by our getrrsetbyname() | ||
21515 | echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
21516 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
21517 | if test "${ac_cv_search_res_query+set}" = set; then | ||
21518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21519 | else | ||
21520 | ac_func_search_save_LIBS=$LIBS | ||
21521 | ac_cv_search_res_query=no | ||
21522 | cat >conftest.$ac_ext <<_ACEOF | ||
21523 | /* confdefs.h. */ | ||
21524 | _ACEOF | ||
21525 | cat confdefs.h >>conftest.$ac_ext | ||
21526 | cat >>conftest.$ac_ext <<_ACEOF | ||
21527 | /* end confdefs.h. */ | ||
21528 | |||
21529 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21530 | #ifdef __cplusplus | ||
21531 | extern "C" | ||
21532 | #endif | ||
21533 | /* We use char because int might match the return type of a gcc2 | ||
21534 | builtin and then its argument prototype would still apply. */ | ||
21535 | char res_query (); | ||
21536 | int | ||
21537 | main () | ||
21538 | { | ||
21539 | res_query (); | ||
21540 | ; | ||
21541 | return 0; | ||
21542 | } | ||
21543 | _ACEOF | ||
21544 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21546 | (eval $ac_link) 2>conftest.er1 | ||
21547 | ac_status=$? | ||
21548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21549 | rm -f conftest.er1 | ||
21550 | cat conftest.err >&5 | ||
21551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21552 | (exit $ac_status); } && | ||
21553 | { ac_try='test -z "$ac_c_werror_flag" | ||
21554 | || test ! -s conftest.err' | ||
21555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21556 | (eval $ac_try) 2>&5 | ||
21557 | ac_status=$? | ||
21558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21559 | (exit $ac_status); }; } && | ||
21560 | { ac_try='test -s conftest$ac_exeext' | ||
21561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21562 | (eval $ac_try) 2>&5 | ||
21563 | ac_status=$? | ||
21564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21565 | (exit $ac_status); }; }; then | ||
21566 | ac_cv_search_res_query="none required" | ||
21567 | else | ||
21568 | echo "$as_me: failed program was:" >&5 | ||
21569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21570 | |||
21571 | fi | ||
21572 | rm -f conftest.err conftest.$ac_objext \ | ||
21573 | conftest$ac_exeext conftest.$ac_ext | ||
21574 | if test "$ac_cv_search_res_query" = no; then | ||
21575 | for ac_lib in resolv; do | ||
21576 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21577 | cat >conftest.$ac_ext <<_ACEOF | ||
21578 | /* confdefs.h. */ | ||
21579 | _ACEOF | ||
21580 | cat confdefs.h >>conftest.$ac_ext | ||
21581 | cat >>conftest.$ac_ext <<_ACEOF | ||
21582 | /* end confdefs.h. */ | ||
21583 | |||
21584 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21585 | #ifdef __cplusplus | ||
21586 | extern "C" | ||
21587 | #endif | ||
21588 | /* We use char because int might match the return type of a gcc2 | ||
21589 | builtin and then its argument prototype would still apply. */ | ||
21590 | char res_query (); | ||
21591 | int | ||
21592 | main () | ||
21593 | { | ||
21594 | res_query (); | ||
21595 | ; | ||
21596 | return 0; | ||
21597 | } | ||
21598 | _ACEOF | ||
21599 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21601 | (eval $ac_link) 2>conftest.er1 | ||
21602 | ac_status=$? | ||
21603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21604 | rm -f conftest.er1 | ||
21605 | cat conftest.err >&5 | ||
21606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21607 | (exit $ac_status); } && | ||
21608 | { ac_try='test -z "$ac_c_werror_flag" | ||
21609 | || test ! -s conftest.err' | ||
21610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21611 | (eval $ac_try) 2>&5 | ||
21612 | ac_status=$? | ||
21613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21614 | (exit $ac_status); }; } && | ||
21615 | { ac_try='test -s conftest$ac_exeext' | ||
21616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21617 | (eval $ac_try) 2>&5 | ||
21618 | ac_status=$? | ||
21619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21620 | (exit $ac_status); }; }; then | ||
21621 | ac_cv_search_res_query="-l$ac_lib" | ||
21622 | break | ||
21623 | else | ||
21624 | echo "$as_me: failed program was:" >&5 | ||
21625 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21626 | |||
21627 | fi | ||
21628 | rm -f conftest.err conftest.$ac_objext \ | ||
21629 | conftest$ac_exeext conftest.$ac_ext | ||
21630 | done | ||
21631 | fi | ||
21632 | LIBS=$ac_func_search_save_LIBS | ||
21633 | fi | ||
21634 | echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
21635 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
21636 | if test "$ac_cv_search_res_query" != no; then | ||
21637 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
21638 | |||
21639 | fi | ||
21640 | |||
21641 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
21642 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
21643 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
21644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21645 | else | ||
21646 | ac_func_search_save_LIBS=$LIBS | ||
21647 | ac_cv_search_dn_expand=no | ||
21648 | cat >conftest.$ac_ext <<_ACEOF | ||
21649 | /* confdefs.h. */ | ||
21650 | _ACEOF | ||
21651 | cat confdefs.h >>conftest.$ac_ext | ||
21652 | cat >>conftest.$ac_ext <<_ACEOF | ||
21653 | /* end confdefs.h. */ | ||
21654 | |||
21655 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21656 | #ifdef __cplusplus | ||
21657 | extern "C" | ||
21658 | #endif | ||
21659 | /* We use char because int might match the return type of a gcc2 | ||
21660 | builtin and then its argument prototype would still apply. */ | ||
21661 | char dn_expand (); | ||
21662 | int | ||
21663 | main () | ||
21664 | { | ||
21665 | dn_expand (); | ||
21666 | ; | ||
21667 | return 0; | ||
21668 | } | ||
21669 | _ACEOF | ||
21670 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21672 | (eval $ac_link) 2>conftest.er1 | ||
21673 | ac_status=$? | ||
21674 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21675 | rm -f conftest.er1 | ||
21676 | cat conftest.err >&5 | ||
21677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21678 | (exit $ac_status); } && | ||
21679 | { ac_try='test -z "$ac_c_werror_flag" | ||
21680 | || test ! -s conftest.err' | ||
21681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21682 | (eval $ac_try) 2>&5 | ||
21683 | ac_status=$? | ||
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21685 | (exit $ac_status); }; } && | ||
21686 | { ac_try='test -s conftest$ac_exeext' | ||
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21688 | (eval $ac_try) 2>&5 | ||
21689 | ac_status=$? | ||
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21691 | (exit $ac_status); }; }; then | ||
21692 | ac_cv_search_dn_expand="none required" | ||
21693 | else | ||
21694 | echo "$as_me: failed program was:" >&5 | ||
21695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21696 | |||
21697 | fi | ||
21698 | rm -f conftest.err conftest.$ac_objext \ | ||
21699 | conftest$ac_exeext conftest.$ac_ext | ||
21700 | if test "$ac_cv_search_dn_expand" = no; then | ||
21701 | for ac_lib in resolv; do | ||
21702 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21703 | cat >conftest.$ac_ext <<_ACEOF | ||
21704 | /* confdefs.h. */ | ||
21705 | _ACEOF | ||
21706 | cat confdefs.h >>conftest.$ac_ext | ||
21707 | cat >>conftest.$ac_ext <<_ACEOF | ||
21708 | /* end confdefs.h. */ | ||
21709 | |||
21710 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21711 | #ifdef __cplusplus | ||
21712 | extern "C" | ||
21713 | #endif | ||
21714 | /* We use char because int might match the return type of a gcc2 | ||
21715 | builtin and then its argument prototype would still apply. */ | ||
21716 | char dn_expand (); | ||
21717 | int | ||
21718 | main () | ||
21719 | { | ||
21720 | dn_expand (); | ||
21721 | ; | ||
21722 | return 0; | ||
21723 | } | ||
21724 | _ACEOF | ||
21725 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21727 | (eval $ac_link) 2>conftest.er1 | ||
21728 | ac_status=$? | ||
21729 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21730 | rm -f conftest.er1 | ||
21731 | cat conftest.err >&5 | ||
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21733 | (exit $ac_status); } && | ||
21734 | { ac_try='test -z "$ac_c_werror_flag" | ||
21735 | || test ! -s conftest.err' | ||
21736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21737 | (eval $ac_try) 2>&5 | ||
21738 | ac_status=$? | ||
21739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21740 | (exit $ac_status); }; } && | ||
21741 | { ac_try='test -s conftest$ac_exeext' | ||
21742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21743 | (eval $ac_try) 2>&5 | ||
21744 | ac_status=$? | ||
21745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21746 | (exit $ac_status); }; }; then | ||
21747 | ac_cv_search_dn_expand="-l$ac_lib" | ||
21748 | break | ||
21749 | else | ||
21750 | echo "$as_me: failed program was:" >&5 | ||
21751 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21752 | |||
21753 | fi | ||
21754 | rm -f conftest.err conftest.$ac_objext \ | ||
21755 | conftest$ac_exeext conftest.$ac_ext | ||
21756 | done | ||
21757 | fi | ||
21758 | LIBS=$ac_func_search_save_LIBS | ||
21759 | fi | ||
21760 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
21761 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
21762 | if test "$ac_cv_search_dn_expand" != no; then | ||
21763 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
21764 | |||
21765 | fi | ||
21766 | |||
21767 | echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
21768 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6 | ||
21769 | cat >conftest.$ac_ext <<_ACEOF | ||
21770 | /* confdefs.h. */ | ||
21771 | _ACEOF | ||
21772 | cat confdefs.h >>conftest.$ac_ext | ||
21773 | cat >>conftest.$ac_ext <<_ACEOF | ||
21774 | /* end confdefs.h. */ | ||
21775 | |||
21776 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21777 | #ifdef __cplusplus | ||
21778 | extern "C" | ||
21779 | #endif | ||
21780 | /* We use char because int might match the return type of a gcc2 | ||
21781 | builtin and then its argument prototype would still apply. */ | ||
21782 | char res_query (); | ||
21783 | int | ||
21784 | main () | ||
21785 | { | ||
21786 | res_query (); | ||
21787 | ; | ||
21788 | return 0; | ||
21789 | } | ||
21790 | _ACEOF | ||
21791 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21793 | (eval $ac_link) 2>conftest.er1 | ||
21794 | ac_status=$? | ||
21795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21796 | rm -f conftest.er1 | ||
21797 | cat conftest.err >&5 | ||
21798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21799 | (exit $ac_status); } && | ||
21800 | { ac_try='test -z "$ac_c_werror_flag" | ||
21801 | || test ! -s conftest.err' | ||
21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21803 | (eval $ac_try) 2>&5 | ||
21804 | ac_status=$? | ||
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21806 | (exit $ac_status); }; } && | ||
21807 | { ac_try='test -s conftest$ac_exeext' | ||
21808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21809 | (eval $ac_try) 2>&5 | ||
21810 | ac_status=$? | ||
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21812 | (exit $ac_status); }; }; then | ||
21813 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21814 | echo "${ECHO_T}yes" >&6 | ||
21815 | else | ||
21816 | echo "$as_me: failed program was:" >&5 | ||
21817 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21818 | |||
21819 | echo "$as_me:$LINENO: result: no" >&5 | ||
21820 | echo "${ECHO_T}no" >&6 | ||
21821 | saved_LIBS="$LIBS" | ||
21822 | LIBS="$LIBS -lresolv" | ||
21823 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
21824 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
21825 | cat >conftest.$ac_ext <<_ACEOF | ||
21826 | |||
21827 | #include <resolv.h> | ||
21828 | int main() | ||
21829 | { | ||
21830 | res_query (0, 0, 0, 0, 0); | ||
21831 | return 0; | ||
21832 | } | ||
21833 | |||
21834 | _ACEOF | ||
21835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21837 | (eval $ac_link) 2>conftest.er1 | ||
21838 | ac_status=$? | ||
21839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21840 | rm -f conftest.er1 | ||
21841 | cat conftest.err >&5 | ||
21842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21843 | (exit $ac_status); } && | ||
21844 | { ac_try='test -z "$ac_c_werror_flag" | ||
21845 | || test ! -s conftest.err' | ||
21846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21847 | (eval $ac_try) 2>&5 | ||
21848 | ac_status=$? | ||
21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21850 | (exit $ac_status); }; } && | ||
21851 | { ac_try='test -s conftest$ac_exeext' | ||
21852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21853 | (eval $ac_try) 2>&5 | ||
21854 | ac_status=$? | ||
21855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21856 | (exit $ac_status); }; }; then | ||
21857 | LIBS="$LIBS -lresolv" | ||
21858 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21859 | echo "${ECHO_T}yes" >&6 | ||
21860 | else | ||
21861 | echo "$as_me: failed program was:" >&5 | ||
21862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21863 | |||
21864 | LIBS="$saved_LIBS" | ||
21865 | echo "$as_me:$LINENO: result: no" >&5 | ||
21866 | echo "${ECHO_T}no" >&6 | ||
21867 | fi | ||
21868 | rm -f conftest.err conftest.$ac_objext \ | ||
21869 | conftest$ac_exeext conftest.$ac_ext | ||
21870 | |||
21871 | fi | ||
21872 | rm -f conftest.err conftest.$ac_objext \ | ||
21873 | conftest$ac_exeext conftest.$ac_ext | ||
21874 | |||
21875 | |||
21876 | for ac_func in _getshort _getlong | ||
21877 | do | ||
21878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21881 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21883 | else | ||
21884 | cat >conftest.$ac_ext <<_ACEOF | ||
21885 | /* confdefs.h. */ | ||
21886 | _ACEOF | ||
21887 | cat confdefs.h >>conftest.$ac_ext | ||
21888 | cat >>conftest.$ac_ext <<_ACEOF | ||
21889 | /* end confdefs.h. */ | ||
21890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21892 | #define $ac_func innocuous_$ac_func | ||
21893 | |||
21894 | /* System header to define __stub macros and hopefully few prototypes, | ||
21895 | which can conflict with char $ac_func (); below. | ||
21896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21897 | <limits.h> exists even on freestanding compilers. */ | ||
21898 | |||
21899 | #ifdef __STDC__ | ||
21900 | # include <limits.h> | ||
21901 | #else | ||
21902 | # include <assert.h> | ||
21903 | #endif | ||
21904 | |||
21905 | #undef $ac_func | ||
21906 | |||
21907 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21908 | #ifdef __cplusplus | ||
21909 | extern "C" | ||
21910 | { | ||
21911 | #endif | ||
21912 | /* We use char because int might match the return type of a gcc2 | ||
21913 | builtin and then its argument prototype would still apply. */ | ||
21914 | char $ac_func (); | ||
21915 | /* The GNU C library defines this for functions which it implements | ||
21916 | to always fail with ENOSYS. Some functions are actually named | ||
21917 | something starting with __ and the normal name is an alias. */ | ||
21918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21919 | choke me | ||
21920 | #else | ||
21921 | char (*f) () = $ac_func; | ||
21922 | #endif | ||
21923 | #ifdef __cplusplus | ||
21924 | } | ||
21925 | #endif | ||
21926 | |||
21927 | int | ||
21928 | main () | ||
21929 | { | ||
21930 | return f != $ac_func; | ||
21931 | ; | ||
21932 | return 0; | ||
21933 | } | ||
21934 | _ACEOF | ||
21935 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21937 | (eval $ac_link) 2>conftest.er1 | ||
21938 | ac_status=$? | ||
21939 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21940 | rm -f conftest.er1 | ||
21941 | cat conftest.err >&5 | ||
21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21943 | (exit $ac_status); } && | ||
21944 | { ac_try='test -z "$ac_c_werror_flag" | ||
21945 | || test ! -s conftest.err' | ||
21946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21947 | (eval $ac_try) 2>&5 | ||
21948 | ac_status=$? | ||
21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21950 | (exit $ac_status); }; } && | ||
21951 | { ac_try='test -s conftest$ac_exeext' | ||
21952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21953 | (eval $ac_try) 2>&5 | ||
21954 | ac_status=$? | ||
21955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21956 | (exit $ac_status); }; }; then | ||
21957 | eval "$as_ac_var=yes" | ||
21958 | else | ||
21959 | echo "$as_me: failed program was:" >&5 | ||
21960 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21961 | |||
21962 | eval "$as_ac_var=no" | ||
21963 | fi | ||
21964 | rm -f conftest.err conftest.$ac_objext \ | ||
21965 | conftest$ac_exeext conftest.$ac_ext | ||
21966 | fi | ||
21967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
21968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
21969 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21970 | cat >>confdefs.h <<_ACEOF | ||
21971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21972 | _ACEOF | ||
21973 | |||
21974 | fi | ||
21975 | done | ||
21976 | |||
21977 | echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
21978 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
21979 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
21980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21981 | else | ||
21982 | cat >conftest.$ac_ext <<_ACEOF | ||
21983 | /* confdefs.h. */ | ||
21984 | _ACEOF | ||
21985 | cat confdefs.h >>conftest.$ac_ext | ||
21986 | cat >>conftest.$ac_ext <<_ACEOF | ||
21987 | /* end confdefs.h. */ | ||
21988 | #include <arpa/nameser.h> | ||
21989 | |||
21990 | int | ||
21991 | main () | ||
21992 | { | ||
21993 | static HEADER ac_aggr; | ||
21994 | if (ac_aggr.ad) | ||
21995 | return 0; | ||
21996 | ; | ||
21997 | return 0; | ||
21998 | } | ||
21999 | _ACEOF | ||
22000 | rm -f conftest.$ac_objext | ||
22001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22002 | (eval $ac_compile) 2>conftest.er1 | ||
22003 | ac_status=$? | ||
22004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22005 | rm -f conftest.er1 | ||
22006 | cat conftest.err >&5 | ||
22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22008 | (exit $ac_status); } && | ||
22009 | { ac_try='test -z "$ac_c_werror_flag" | ||
22010 | || test ! -s conftest.err' | ||
22011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22012 | (eval $ac_try) 2>&5 | ||
22013 | ac_status=$? | ||
22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22015 | (exit $ac_status); }; } && | ||
22016 | { ac_try='test -s conftest.$ac_objext' | ||
22017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22018 | (eval $ac_try) 2>&5 | ||
22019 | ac_status=$? | ||
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22021 | (exit $ac_status); }; }; then | ||
22022 | ac_cv_member_HEADER_ad=yes | ||
22023 | else | ||
22024 | echo "$as_me: failed program was:" >&5 | ||
22025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22026 | |||
22027 | cat >conftest.$ac_ext <<_ACEOF | ||
22028 | /* confdefs.h. */ | ||
22029 | _ACEOF | ||
22030 | cat confdefs.h >>conftest.$ac_ext | ||
22031 | cat >>conftest.$ac_ext <<_ACEOF | ||
22032 | /* end confdefs.h. */ | ||
22033 | #include <arpa/nameser.h> | ||
22034 | |||
22035 | int | ||
22036 | main () | ||
22037 | { | ||
22038 | static HEADER ac_aggr; | ||
22039 | if (sizeof ac_aggr.ad) | ||
22040 | return 0; | ||
22041 | ; | ||
22042 | return 0; | ||
22043 | } | ||
22044 | _ACEOF | ||
22045 | rm -f conftest.$ac_objext | ||
22046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22047 | (eval $ac_compile) 2>conftest.er1 | ||
22048 | ac_status=$? | ||
22049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22050 | rm -f conftest.er1 | ||
22051 | cat conftest.err >&5 | ||
22052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22053 | (exit $ac_status); } && | ||
22054 | { ac_try='test -z "$ac_c_werror_flag" | ||
22055 | || test ! -s conftest.err' | ||
22056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22057 | (eval $ac_try) 2>&5 | ||
22058 | ac_status=$? | ||
22059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22060 | (exit $ac_status); }; } && | ||
22061 | { ac_try='test -s conftest.$ac_objext' | ||
22062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22063 | (eval $ac_try) 2>&5 | ||
22064 | ac_status=$? | ||
22065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22066 | (exit $ac_status); }; }; then | ||
22067 | ac_cv_member_HEADER_ad=yes | ||
22068 | else | ||
22069 | echo "$as_me: failed program was:" >&5 | ||
22070 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22071 | |||
22072 | ac_cv_member_HEADER_ad=no | ||
22073 | fi | ||
22074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22075 | fi | ||
22076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22077 | fi | ||
22078 | echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
22079 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
22080 | if test $ac_cv_member_HEADER_ad = yes; then | ||
22081 | cat >>confdefs.h <<\_ACEOF | ||
22082 | #define HAVE_HEADER_AD 1 | ||
22083 | _ACEOF | ||
22084 | |||
22085 | fi | ||
22086 | |||
22087 | |||
22088 | fi | ||
22089 | |||
22090 | |||
22091 | # Check whether user wants Kerberos 5 support | ||
22092 | KRB5_MSG="no" | ||
22093 | |||
22094 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
22095 | if test "${with_kerberos5+set}" = set; then | ||
22096 | withval="$with_kerberos5" | ||
22097 | if test "x$withval" != "xno" ; then | ||
22098 | if test "x$withval" = "xyes" ; then | ||
22099 | KRB5ROOT="/usr/local" | ||
22100 | else | ||
22101 | KRB5ROOT=${withval} | ||
22102 | fi | ||
22103 | |||
22104 | cat >>confdefs.h <<\_ACEOF | ||
22105 | #define KRB5 1 | ||
22106 | _ACEOF | ||
22107 | |||
22108 | KRB5_MSG="yes" | ||
22109 | |||
22110 | echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
22111 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
22112 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
22113 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
22114 | echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
22115 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
22116 | |||
22117 | echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
22118 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
22119 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
22120 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22121 | echo "${ECHO_T}yes" >&6 | ||
22122 | cat >>confdefs.h <<\_ACEOF | ||
22123 | #define GSSAPI 1 | ||
22124 | _ACEOF | ||
22125 | |||
22126 | k5confopts=gssapi | ||
22127 | else | ||
22128 | echo "$as_me:$LINENO: result: no" >&5 | ||
22129 | echo "${ECHO_T}no" >&6 | ||
22130 | k5confopts="" | ||
22131 | fi | ||
22132 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
22133 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
22134 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
22135 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22136 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22137 | cat >conftest.$ac_ext <<_ACEOF | ||
22138 | /* confdefs.h. */ | ||
22139 | _ACEOF | ||
22140 | cat confdefs.h >>conftest.$ac_ext | ||
22141 | cat >>conftest.$ac_ext <<_ACEOF | ||
22142 | /* end confdefs.h. */ | ||
22143 | #include <krb5.h> | ||
22144 | int | ||
22145 | main () | ||
22146 | { | ||
22147 | char *tmp = heimdal_version; | ||
22148 | ; | ||
22149 | return 0; | ||
22150 | } | ||
22151 | _ACEOF | ||
22152 | rm -f conftest.$ac_objext | ||
22153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22154 | (eval $ac_compile) 2>conftest.er1 | ||
22155 | ac_status=$? | ||
22156 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22157 | rm -f conftest.er1 | ||
22158 | cat conftest.err >&5 | ||
22159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22160 | (exit $ac_status); } && | ||
22161 | { ac_try='test -z "$ac_c_werror_flag" | ||
22162 | || test ! -s conftest.err' | ||
22163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22164 | (eval $ac_try) 2>&5 | ||
22165 | ac_status=$? | ||
22166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22167 | (exit $ac_status); }; } && | ||
22168 | { ac_try='test -s conftest.$ac_objext' | ||
22169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22170 | (eval $ac_try) 2>&5 | ||
22171 | ac_status=$? | ||
22172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22173 | (exit $ac_status); }; }; then | ||
22174 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22175 | echo "${ECHO_T}yes" >&6 | ||
22176 | cat >>confdefs.h <<\_ACEOF | ||
22177 | #define HEIMDAL 1 | ||
22178 | _ACEOF | ||
22179 | |||
22180 | else | ||
22181 | echo "$as_me: failed program was:" >&5 | ||
22182 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22183 | |||
22184 | echo "$as_me:$LINENO: result: no" >&5 | ||
22185 | echo "${ECHO_T}no" >&6 | ||
22186 | |||
22187 | fi | ||
22188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22189 | else | ||
22190 | echo "$as_me:$LINENO: result: no" >&5 | ||
22191 | echo "${ECHO_T}no" >&6 | ||
22192 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
22193 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
22194 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22195 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22196 | cat >conftest.$ac_ext <<_ACEOF | ||
22197 | /* confdefs.h. */ | ||
22198 | _ACEOF | ||
22199 | cat confdefs.h >>conftest.$ac_ext | ||
22200 | cat >>conftest.$ac_ext <<_ACEOF | ||
22201 | /* end confdefs.h. */ | ||
22202 | #include <krb5.h> | ||
22203 | int | ||
22204 | main () | ||
22205 | { | ||
22206 | char *tmp = heimdal_version; | ||
22207 | ; | ||
22208 | return 0; | ||
22209 | } | ||
22210 | _ACEOF | ||
22211 | rm -f conftest.$ac_objext | ||
22212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22213 | (eval $ac_compile) 2>conftest.er1 | ||
22214 | ac_status=$? | ||
22215 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22216 | rm -f conftest.er1 | ||
22217 | cat conftest.err >&5 | ||
22218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22219 | (exit $ac_status); } && | ||
22220 | { ac_try='test -z "$ac_c_werror_flag" | ||
22221 | || test ! -s conftest.err' | ||
22222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22223 | (eval $ac_try) 2>&5 | ||
22224 | ac_status=$? | ||
22225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22226 | (exit $ac_status); }; } && | ||
22227 | { ac_try='test -s conftest.$ac_objext' | ||
22228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22229 | (eval $ac_try) 2>&5 | ||
22230 | ac_status=$? | ||
22231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22232 | (exit $ac_status); }; }; then | ||
22233 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22234 | echo "${ECHO_T}yes" >&6 | ||
22235 | cat >>confdefs.h <<\_ACEOF | ||
22236 | #define HEIMDAL 1 | ||
22237 | _ACEOF | ||
22238 | |||
22239 | K5LIBS="-lkrb5 -ldes" | ||
22240 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
22241 | echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
22242 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6 | ||
22243 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
22244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22245 | else | ||
22246 | ac_check_lib_save_LIBS=$LIBS | ||
22247 | LIBS="-lroken $LIBS" | ||
22248 | cat >conftest.$ac_ext <<_ACEOF | ||
22249 | /* confdefs.h. */ | ||
22250 | _ACEOF | ||
22251 | cat confdefs.h >>conftest.$ac_ext | ||
22252 | cat >>conftest.$ac_ext <<_ACEOF | ||
22253 | /* end confdefs.h. */ | ||
22254 | |||
22255 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22256 | #ifdef __cplusplus | ||
22257 | extern "C" | ||
22258 | #endif | ||
22259 | /* We use char because int might match the return type of a gcc2 | ||
22260 | builtin and then its argument prototype would still apply. */ | ||
22261 | char net_write (); | ||
22262 | int | ||
22263 | main () | ||
22264 | { | ||
22265 | net_write (); | ||
22266 | ; | ||
22267 | return 0; | ||
22268 | } | ||
22269 | _ACEOF | ||
22270 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22272 | (eval $ac_link) 2>conftest.er1 | ||
22273 | ac_status=$? | ||
22274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22275 | rm -f conftest.er1 | ||
22276 | cat conftest.err >&5 | ||
22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22278 | (exit $ac_status); } && | ||
22279 | { ac_try='test -z "$ac_c_werror_flag" | ||
22280 | || test ! -s conftest.err' | ||
22281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22282 | (eval $ac_try) 2>&5 | ||
22283 | ac_status=$? | ||
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22285 | (exit $ac_status); }; } && | ||
22286 | { ac_try='test -s conftest$ac_exeext' | ||
22287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22288 | (eval $ac_try) 2>&5 | ||
22289 | ac_status=$? | ||
22290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22291 | (exit $ac_status); }; }; then | ||
22292 | ac_cv_lib_roken_net_write=yes | ||
22293 | else | ||
22294 | echo "$as_me: failed program was:" >&5 | ||
22295 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22296 | |||
22297 | ac_cv_lib_roken_net_write=no | ||
22298 | fi | ||
22299 | rm -f conftest.err conftest.$ac_objext \ | ||
22300 | conftest$ac_exeext conftest.$ac_ext | ||
22301 | LIBS=$ac_check_lib_save_LIBS | ||
22302 | fi | ||
22303 | echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
22304 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6 | ||
22305 | if test $ac_cv_lib_roken_net_write = yes; then | ||
22306 | K5LIBS="$K5LIBS -lroken" | ||
22307 | fi | ||
22308 | |||
22309 | |||
22310 | else | ||
22311 | echo "$as_me: failed program was:" >&5 | ||
22312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22313 | |||
22314 | echo "$as_me:$LINENO: result: no" >&5 | ||
22315 | echo "${ECHO_T}no" >&6 | ||
22316 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
22317 | |||
22318 | |||
22319 | fi | ||
22320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22321 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
22322 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
22323 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
22324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22325 | else | ||
22326 | ac_func_search_save_LIBS=$LIBS | ||
22327 | ac_cv_search_dn_expand=no | ||
22328 | cat >conftest.$ac_ext <<_ACEOF | ||
22329 | /* confdefs.h. */ | ||
22330 | _ACEOF | ||
22331 | cat confdefs.h >>conftest.$ac_ext | ||
22332 | cat >>conftest.$ac_ext <<_ACEOF | ||
22333 | /* end confdefs.h. */ | ||
22334 | |||
22335 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22336 | #ifdef __cplusplus | ||
22337 | extern "C" | ||
22338 | #endif | ||
22339 | /* We use char because int might match the return type of a gcc2 | ||
22340 | builtin and then its argument prototype would still apply. */ | ||
22341 | char dn_expand (); | ||
22342 | int | ||
22343 | main () | ||
22344 | { | ||
22345 | dn_expand (); | ||
22346 | ; | ||
22347 | return 0; | ||
22348 | } | ||
22349 | _ACEOF | ||
22350 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22352 | (eval $ac_link) 2>conftest.er1 | ||
22353 | ac_status=$? | ||
22354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22355 | rm -f conftest.er1 | ||
22356 | cat conftest.err >&5 | ||
22357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22358 | (exit $ac_status); } && | ||
22359 | { ac_try='test -z "$ac_c_werror_flag" | ||
22360 | || test ! -s conftest.err' | ||
22361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22362 | (eval $ac_try) 2>&5 | ||
22363 | ac_status=$? | ||
22364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22365 | (exit $ac_status); }; } && | ||
22366 | { ac_try='test -s conftest$ac_exeext' | ||
22367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22368 | (eval $ac_try) 2>&5 | ||
22369 | ac_status=$? | ||
22370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22371 | (exit $ac_status); }; }; then | ||
22372 | ac_cv_search_dn_expand="none required" | ||
22373 | else | ||
22374 | echo "$as_me: failed program was:" >&5 | ||
22375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22376 | |||
22377 | fi | ||
22378 | rm -f conftest.err conftest.$ac_objext \ | ||
22379 | conftest$ac_exeext conftest.$ac_ext | ||
22380 | if test "$ac_cv_search_dn_expand" = no; then | ||
22381 | for ac_lib in resolv; do | ||
22382 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22383 | cat >conftest.$ac_ext <<_ACEOF | ||
22384 | /* confdefs.h. */ | ||
22385 | _ACEOF | ||
22386 | cat confdefs.h >>conftest.$ac_ext | ||
22387 | cat >>conftest.$ac_ext <<_ACEOF | ||
22388 | /* end confdefs.h. */ | ||
22389 | |||
22390 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22391 | #ifdef __cplusplus | ||
22392 | extern "C" | ||
22393 | #endif | ||
22394 | /* We use char because int might match the return type of a gcc2 | ||
22395 | builtin and then its argument prototype would still apply. */ | ||
22396 | char dn_expand (); | ||
22397 | int | ||
22398 | main () | ||
22399 | { | ||
22400 | dn_expand (); | ||
22401 | ; | ||
22402 | return 0; | ||
22403 | } | ||
22404 | _ACEOF | ||
22405 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22407 | (eval $ac_link) 2>conftest.er1 | ||
22408 | ac_status=$? | ||
22409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22410 | rm -f conftest.er1 | ||
22411 | cat conftest.err >&5 | ||
22412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22413 | (exit $ac_status); } && | ||
22414 | { ac_try='test -z "$ac_c_werror_flag" | ||
22415 | || test ! -s conftest.err' | ||
22416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22417 | (eval $ac_try) 2>&5 | ||
22418 | ac_status=$? | ||
22419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22420 | (exit $ac_status); }; } && | ||
22421 | { ac_try='test -s conftest$ac_exeext' | ||
22422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22423 | (eval $ac_try) 2>&5 | ||
22424 | ac_status=$? | ||
22425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22426 | (exit $ac_status); }; }; then | ||
22427 | ac_cv_search_dn_expand="-l$ac_lib" | ||
22428 | break | ||
22429 | else | ||
22430 | echo "$as_me: failed program was:" >&5 | ||
22431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22432 | |||
22433 | fi | ||
22434 | rm -f conftest.err conftest.$ac_objext \ | ||
22435 | conftest$ac_exeext conftest.$ac_ext | ||
22436 | done | ||
22437 | fi | ||
22438 | LIBS=$ac_func_search_save_LIBS | ||
22439 | fi | ||
22440 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
22441 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
22442 | if test "$ac_cv_search_dn_expand" != no; then | ||
22443 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
22444 | |||
22445 | fi | ||
22446 | |||
22447 | |||
22448 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
22449 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
22450 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
22451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22452 | else | ||
22453 | ac_check_lib_save_LIBS=$LIBS | ||
22454 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
22455 | cat >conftest.$ac_ext <<_ACEOF | ||
22456 | /* confdefs.h. */ | ||
22457 | _ACEOF | ||
22458 | cat confdefs.h >>conftest.$ac_ext | ||
22459 | cat >>conftest.$ac_ext <<_ACEOF | ||
22460 | /* end confdefs.h. */ | ||
22461 | |||
22462 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22463 | #ifdef __cplusplus | ||
22464 | extern "C" | ||
22465 | #endif | ||
22466 | /* We use char because int might match the return type of a gcc2 | ||
22467 | builtin and then its argument prototype would still apply. */ | ||
22468 | char gss_init_sec_context (); | ||
22469 | int | ||
22470 | main () | ||
22471 | { | ||
22472 | gss_init_sec_context (); | ||
22473 | ; | ||
22474 | return 0; | ||
22475 | } | ||
22476 | _ACEOF | ||
22477 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22479 | (eval $ac_link) 2>conftest.er1 | ||
22480 | ac_status=$? | ||
22481 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22482 | rm -f conftest.er1 | ||
22483 | cat conftest.err >&5 | ||
22484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22485 | (exit $ac_status); } && | ||
22486 | { ac_try='test -z "$ac_c_werror_flag" | ||
22487 | || test ! -s conftest.err' | ||
22488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22489 | (eval $ac_try) 2>&5 | ||
22490 | ac_status=$? | ||
22491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22492 | (exit $ac_status); }; } && | ||
22493 | { ac_try='test -s conftest$ac_exeext' | ||
22494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22495 | (eval $ac_try) 2>&5 | ||
22496 | ac_status=$? | ||
22497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22498 | (exit $ac_status); }; }; then | ||
22499 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
22500 | else | ||
22501 | echo "$as_me: failed program was:" >&5 | ||
22502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22503 | |||
22504 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
22505 | fi | ||
22506 | rm -f conftest.err conftest.$ac_objext \ | ||
22507 | conftest$ac_exeext conftest.$ac_ext | ||
22508 | LIBS=$ac_check_lib_save_LIBS | ||
22509 | fi | ||
22510 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
22511 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
22512 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
22513 | cat >>confdefs.h <<\_ACEOF | ||
22514 | #define GSSAPI 1 | ||
22515 | _ACEOF | ||
22516 | |||
22517 | K5LIBS="-lgssapi $K5LIBS" | ||
22518 | else | ||
22519 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
22520 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
22521 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
22522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22523 | else | ||
22524 | ac_check_lib_save_LIBS=$LIBS | ||
22525 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
22526 | cat >conftest.$ac_ext <<_ACEOF | ||
22527 | /* confdefs.h. */ | ||
22528 | _ACEOF | ||
22529 | cat confdefs.h >>conftest.$ac_ext | ||
22530 | cat >>conftest.$ac_ext <<_ACEOF | ||
22531 | /* end confdefs.h. */ | ||
22532 | |||
22533 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22534 | #ifdef __cplusplus | ||
22535 | extern "C" | ||
22536 | #endif | ||
22537 | /* We use char because int might match the return type of a gcc2 | ||
22538 | builtin and then its argument prototype would still apply. */ | ||
22539 | char gss_init_sec_context (); | ||
22540 | int | ||
22541 | main () | ||
22542 | { | ||
22543 | gss_init_sec_context (); | ||
22544 | ; | ||
22545 | return 0; | ||
22546 | } | ||
22547 | _ACEOF | ||
22548 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22550 | (eval $ac_link) 2>conftest.er1 | ||
22551 | ac_status=$? | ||
22552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22553 | rm -f conftest.er1 | ||
22554 | cat conftest.err >&5 | ||
22555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22556 | (exit $ac_status); } && | ||
22557 | { ac_try='test -z "$ac_c_werror_flag" | ||
22558 | || test ! -s conftest.err' | ||
22559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22560 | (eval $ac_try) 2>&5 | ||
22561 | ac_status=$? | ||
22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22563 | (exit $ac_status); }; } && | ||
22564 | { ac_try='test -s conftest$ac_exeext' | ||
22565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22566 | (eval $ac_try) 2>&5 | ||
22567 | ac_status=$? | ||
22568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22569 | (exit $ac_status); }; }; then | ||
22570 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
22571 | else | ||
22572 | echo "$as_me: failed program was:" >&5 | ||
22573 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22574 | |||
22575 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
22576 | fi | ||
22577 | rm -f conftest.err conftest.$ac_objext \ | ||
22578 | conftest$ac_exeext conftest.$ac_ext | ||
22579 | LIBS=$ac_check_lib_save_LIBS | ||
22580 | fi | ||
22581 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
22582 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
22583 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
22584 | cat >>confdefs.h <<\_ACEOF | ||
22585 | #define GSSAPI 1 | ||
22586 | _ACEOF | ||
22587 | |||
22588 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
22589 | else | ||
22590 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
22591 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
22592 | fi | ||
22593 | |||
22594 | |||
22595 | fi | ||
22596 | |||
22597 | |||
22598 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22599 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
22600 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
22601 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22603 | fi | ||
22604 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
22605 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
22606 | else | ||
22607 | # Is the header compilable? | ||
22608 | echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
22609 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 | ||
22610 | cat >conftest.$ac_ext <<_ACEOF | ||
22611 | /* confdefs.h. */ | ||
22612 | _ACEOF | ||
22613 | cat confdefs.h >>conftest.$ac_ext | ||
22614 | cat >>conftest.$ac_ext <<_ACEOF | ||
22615 | /* end confdefs.h. */ | ||
22616 | $ac_includes_default | ||
22617 | #include <gssapi.h> | ||
22618 | _ACEOF | ||
22619 | rm -f conftest.$ac_objext | ||
22620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22621 | (eval $ac_compile) 2>conftest.er1 | ||
22622 | ac_status=$? | ||
22623 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22624 | rm -f conftest.er1 | ||
22625 | cat conftest.err >&5 | ||
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22627 | (exit $ac_status); } && | ||
22628 | { ac_try='test -z "$ac_c_werror_flag" | ||
22629 | || test ! -s conftest.err' | ||
22630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22631 | (eval $ac_try) 2>&5 | ||
22632 | ac_status=$? | ||
22633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22634 | (exit $ac_status); }; } && | ||
22635 | { ac_try='test -s conftest.$ac_objext' | ||
22636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22637 | (eval $ac_try) 2>&5 | ||
22638 | ac_status=$? | ||
22639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22640 | (exit $ac_status); }; }; then | ||
22641 | ac_header_compiler=yes | ||
22642 | else | ||
22643 | echo "$as_me: failed program was:" >&5 | ||
22644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22645 | |||
22646 | ac_header_compiler=no | ||
22647 | fi | ||
22648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22650 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22651 | |||
22652 | # Is the header present? | ||
22653 | echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
22654 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 | ||
22655 | cat >conftest.$ac_ext <<_ACEOF | ||
22656 | /* confdefs.h. */ | ||
22657 | _ACEOF | ||
22658 | cat confdefs.h >>conftest.$ac_ext | ||
22659 | cat >>conftest.$ac_ext <<_ACEOF | ||
22660 | /* end confdefs.h. */ | ||
22661 | #include <gssapi.h> | ||
22662 | _ACEOF | ||
22663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22665 | ac_status=$? | ||
22666 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22667 | rm -f conftest.er1 | ||
22668 | cat conftest.err >&5 | ||
22669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22670 | (exit $ac_status); } >/dev/null; then | ||
22671 | if test -s conftest.err; then | ||
22672 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22674 | else | ||
22675 | ac_cpp_err= | ||
22676 | fi | ||
22677 | else | ||
22678 | ac_cpp_err=yes | ||
22679 | fi | ||
22680 | if test -z "$ac_cpp_err"; then | ||
22681 | ac_header_preproc=yes | ||
22682 | else | ||
22683 | echo "$as_me: failed program was:" >&5 | ||
22684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22685 | |||
22686 | ac_header_preproc=no | ||
22687 | fi | ||
22688 | rm -f conftest.err conftest.$ac_ext | ||
22689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22690 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22691 | |||
22692 | # So? What about this header? | ||
22693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22694 | yes:no: ) | ||
22695 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22696 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22697 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
22698 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
22699 | ac_header_preproc=yes | ||
22700 | ;; | ||
22701 | no:yes:* ) | ||
22702 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
22703 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
22704 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
22705 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
22706 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
22707 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
22708 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
22709 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22710 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
22711 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
22712 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
22713 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
22714 | ( | ||
22715 | cat <<\_ASBOX | ||
22716 | ## ---------------------------------- ## | ||
22717 | ## Report this to the OpenSSH lists. ## | ||
22718 | ## ---------------------------------- ## | ||
22719 | _ASBOX | ||
22720 | ) | | ||
22721 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22722 | ;; | ||
22723 | esac | ||
22724 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
22725 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
22726 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
22727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22728 | else | ||
22729 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
22730 | fi | ||
22731 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
22732 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
22733 | |||
22734 | fi | ||
22735 | if test $ac_cv_header_gssapi_h = yes; then | ||
22736 | : | ||
22737 | else | ||
22738 | unset ac_cv_header_gssapi_h | ||
22739 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
22740 | |||
22741 | for ac_header in gssapi.h | ||
22742 | do | ||
22743 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22745 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22749 | fi | ||
22750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22751 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22752 | else | ||
22753 | # Is the header compilable? | ||
22754 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22755 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22756 | cat >conftest.$ac_ext <<_ACEOF | ||
22757 | /* confdefs.h. */ | ||
22758 | _ACEOF | ||
22759 | cat confdefs.h >>conftest.$ac_ext | ||
22760 | cat >>conftest.$ac_ext <<_ACEOF | ||
22761 | /* end confdefs.h. */ | ||
22762 | $ac_includes_default | ||
22763 | #include <$ac_header> | ||
22764 | _ACEOF | ||
22765 | rm -f conftest.$ac_objext | ||
22766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22767 | (eval $ac_compile) 2>conftest.er1 | ||
22768 | ac_status=$? | ||
22769 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22770 | rm -f conftest.er1 | ||
22771 | cat conftest.err >&5 | ||
22772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22773 | (exit $ac_status); } && | ||
22774 | { ac_try='test -z "$ac_c_werror_flag" | ||
22775 | || test ! -s conftest.err' | ||
22776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22777 | (eval $ac_try) 2>&5 | ||
22778 | ac_status=$? | ||
22779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22780 | (exit $ac_status); }; } && | ||
22781 | { ac_try='test -s conftest.$ac_objext' | ||
22782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22783 | (eval $ac_try) 2>&5 | ||
22784 | ac_status=$? | ||
22785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22786 | (exit $ac_status); }; }; then | ||
22787 | ac_header_compiler=yes | ||
22788 | else | ||
22789 | echo "$as_me: failed program was:" >&5 | ||
22790 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22791 | |||
22792 | ac_header_compiler=no | ||
22793 | fi | ||
22794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22795 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22796 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22797 | |||
22798 | # Is the header present? | ||
22799 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22800 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22801 | cat >conftest.$ac_ext <<_ACEOF | ||
22802 | /* confdefs.h. */ | ||
22803 | _ACEOF | ||
22804 | cat confdefs.h >>conftest.$ac_ext | ||
22805 | cat >>conftest.$ac_ext <<_ACEOF | ||
22806 | /* end confdefs.h. */ | ||
22807 | #include <$ac_header> | ||
22808 | _ACEOF | ||
22809 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22810 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22811 | ac_status=$? | ||
22812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22813 | rm -f conftest.er1 | ||
22814 | cat conftest.err >&5 | ||
22815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22816 | (exit $ac_status); } >/dev/null; then | ||
22817 | if test -s conftest.err; then | ||
22818 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22819 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22820 | else | ||
22821 | ac_cpp_err= | ||
22822 | fi | ||
22823 | else | ||
22824 | ac_cpp_err=yes | ||
22825 | fi | ||
22826 | if test -z "$ac_cpp_err"; then | ||
22827 | ac_header_preproc=yes | ||
22828 | else | ||
22829 | echo "$as_me: failed program was:" >&5 | ||
22830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22831 | |||
22832 | ac_header_preproc=no | ||
22833 | fi | ||
22834 | rm -f conftest.err conftest.$ac_ext | ||
22835 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22836 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22837 | |||
22838 | # So? What about this header? | ||
22839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22840 | yes:no: ) | ||
22841 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22842 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22843 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22844 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22845 | ac_header_preproc=yes | ||
22846 | ;; | ||
22847 | no:yes:* ) | ||
22848 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22849 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22850 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22851 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22852 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22853 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22854 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22855 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22857 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22858 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22859 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22860 | ( | ||
22861 | cat <<\_ASBOX | ||
22862 | ## ---------------------------------- ## | ||
22863 | ## Report this to the OpenSSH lists. ## | ||
22864 | ## ---------------------------------- ## | ||
22865 | _ASBOX | ||
22866 | ) | | ||
22867 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22868 | ;; | ||
22869 | esac | ||
22870 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22871 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22874 | else | ||
22875 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22876 | fi | ||
22877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22879 | |||
22880 | fi | ||
22881 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22882 | cat >>confdefs.h <<_ACEOF | ||
22883 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22884 | _ACEOF | ||
22885 | |||
22886 | else | ||
22887 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
22888 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
22889 | |||
22890 | fi | ||
22891 | |||
22892 | done | ||
22893 | |||
22894 | |||
22895 | |||
22896 | fi | ||
22897 | |||
22898 | |||
22899 | |||
22900 | oldCPP="$CPPFLAGS" | ||
22901 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
22902 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
22903 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
22904 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
22905 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
22906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22907 | fi | ||
22908 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
22909 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
22910 | else | ||
22911 | # Is the header compilable? | ||
22912 | echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
22913 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6 | ||
22914 | cat >conftest.$ac_ext <<_ACEOF | ||
22915 | /* confdefs.h. */ | ||
22916 | _ACEOF | ||
22917 | cat confdefs.h >>conftest.$ac_ext | ||
22918 | cat >>conftest.$ac_ext <<_ACEOF | ||
22919 | /* end confdefs.h. */ | ||
22920 | $ac_includes_default | ||
22921 | #include <gssapi_krb5.h> | ||
22922 | _ACEOF | ||
22923 | rm -f conftest.$ac_objext | ||
22924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22925 | (eval $ac_compile) 2>conftest.er1 | ||
22926 | ac_status=$? | ||
22927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22928 | rm -f conftest.er1 | ||
22929 | cat conftest.err >&5 | ||
22930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22931 | (exit $ac_status); } && | ||
22932 | { ac_try='test -z "$ac_c_werror_flag" | ||
22933 | || test ! -s conftest.err' | ||
22934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22935 | (eval $ac_try) 2>&5 | ||
22936 | ac_status=$? | ||
22937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22938 | (exit $ac_status); }; } && | ||
22939 | { ac_try='test -s conftest.$ac_objext' | ||
22940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22941 | (eval $ac_try) 2>&5 | ||
22942 | ac_status=$? | ||
22943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22944 | (exit $ac_status); }; }; then | ||
22945 | ac_header_compiler=yes | ||
22946 | else | ||
22947 | echo "$as_me: failed program was:" >&5 | ||
22948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22949 | |||
22950 | ac_header_compiler=no | ||
22951 | fi | ||
22952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22953 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22954 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22955 | |||
22956 | # Is the header present? | ||
22957 | echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
22958 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6 | ||
22959 | cat >conftest.$ac_ext <<_ACEOF | ||
22960 | /* confdefs.h. */ | ||
22961 | _ACEOF | ||
22962 | cat confdefs.h >>conftest.$ac_ext | ||
22963 | cat >>conftest.$ac_ext <<_ACEOF | ||
22964 | /* end confdefs.h. */ | ||
22965 | #include <gssapi_krb5.h> | ||
22966 | _ACEOF | ||
22967 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22968 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22969 | ac_status=$? | ||
22970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22971 | rm -f conftest.er1 | ||
22972 | cat conftest.err >&5 | ||
22973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22974 | (exit $ac_status); } >/dev/null; then | ||
22975 | if test -s conftest.err; then | ||
22976 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22978 | else | ||
22979 | ac_cpp_err= | ||
22980 | fi | ||
22981 | else | ||
22982 | ac_cpp_err=yes | ||
22983 | fi | ||
22984 | if test -z "$ac_cpp_err"; then | ||
22985 | ac_header_preproc=yes | ||
22986 | else | ||
22987 | echo "$as_me: failed program was:" >&5 | ||
22988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22989 | |||
22990 | ac_header_preproc=no | ||
22991 | fi | ||
22992 | rm -f conftest.err conftest.$ac_ext | ||
22993 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22994 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22995 | |||
22996 | # So? What about this header? | ||
22997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22998 | yes:no: ) | ||
22999 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23000 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23001 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
23002 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
23003 | ac_header_preproc=yes | ||
23004 | ;; | ||
23005 | no:yes:* ) | ||
23006 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
23007 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
23008 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
23009 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
23010 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
23011 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
23012 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
23013 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23014 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
23015 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
23016 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
23017 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
23018 | ( | ||
23019 | cat <<\_ASBOX | ||
23020 | ## ---------------------------------- ## | ||
23021 | ## Report this to the OpenSSH lists. ## | ||
23022 | ## ---------------------------------- ## | ||
23023 | _ASBOX | ||
23024 | ) | | ||
23025 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23026 | ;; | ||
23027 | esac | ||
23028 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
23029 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
23030 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
23031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23032 | else | ||
23033 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
23034 | fi | ||
23035 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
23036 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
23037 | |||
23038 | fi | ||
23039 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
23040 | : | ||
23041 | else | ||
23042 | CPPFLAGS="$oldCPP" | ||
23043 | fi | ||
23044 | |||
23045 | |||
23046 | |||
23047 | fi | ||
23048 | if test ! -z "$need_dash_r" ; then | ||
23049 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
23050 | fi | ||
23051 | if test ! -z "$blibpath" ; then | ||
23052 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
23053 | fi | ||
23054 | fi | ||
23055 | |||
23056 | |||
23057 | |||
23058 | for ac_header in gssapi.h gssapi/gssapi.h | ||
23059 | do | ||
23060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23062 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23066 | fi | ||
23067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23069 | else | ||
23070 | # Is the header compilable? | ||
23071 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23072 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23073 | cat >conftest.$ac_ext <<_ACEOF | ||
23074 | /* confdefs.h. */ | ||
23075 | _ACEOF | ||
23076 | cat confdefs.h >>conftest.$ac_ext | ||
23077 | cat >>conftest.$ac_ext <<_ACEOF | ||
23078 | /* end confdefs.h. */ | ||
23079 | $ac_includes_default | ||
23080 | #include <$ac_header> | ||
23081 | _ACEOF | ||
23082 | rm -f conftest.$ac_objext | ||
23083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23084 | (eval $ac_compile) 2>conftest.er1 | ||
23085 | ac_status=$? | ||
23086 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23087 | rm -f conftest.er1 | ||
23088 | cat conftest.err >&5 | ||
23089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23090 | (exit $ac_status); } && | ||
23091 | { ac_try='test -z "$ac_c_werror_flag" | ||
23092 | || test ! -s conftest.err' | ||
23093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23094 | (eval $ac_try) 2>&5 | ||
23095 | ac_status=$? | ||
23096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23097 | (exit $ac_status); }; } && | ||
23098 | { ac_try='test -s conftest.$ac_objext' | ||
23099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23100 | (eval $ac_try) 2>&5 | ||
23101 | ac_status=$? | ||
23102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23103 | (exit $ac_status); }; }; then | ||
23104 | ac_header_compiler=yes | ||
23105 | else | ||
23106 | echo "$as_me: failed program was:" >&5 | ||
23107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23108 | |||
23109 | ac_header_compiler=no | ||
23110 | fi | ||
23111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23113 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23114 | |||
23115 | # Is the header present? | ||
23116 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23118 | cat >conftest.$ac_ext <<_ACEOF | ||
23119 | /* confdefs.h. */ | ||
23120 | _ACEOF | ||
23121 | cat confdefs.h >>conftest.$ac_ext | ||
23122 | cat >>conftest.$ac_ext <<_ACEOF | ||
23123 | /* end confdefs.h. */ | ||
23124 | #include <$ac_header> | ||
23125 | _ACEOF | ||
23126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23128 | ac_status=$? | ||
23129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23130 | rm -f conftest.er1 | ||
23131 | cat conftest.err >&5 | ||
23132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23133 | (exit $ac_status); } >/dev/null; then | ||
23134 | if test -s conftest.err; then | ||
23135 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23137 | else | ||
23138 | ac_cpp_err= | ||
23139 | fi | ||
23140 | else | ||
23141 | ac_cpp_err=yes | ||
23142 | fi | ||
23143 | if test -z "$ac_cpp_err"; then | ||
23144 | ac_header_preproc=yes | ||
23145 | else | ||
23146 | echo "$as_me: failed program was:" >&5 | ||
23147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23148 | |||
23149 | ac_header_preproc=no | ||
23150 | fi | ||
23151 | rm -f conftest.err conftest.$ac_ext | ||
23152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23153 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23154 | |||
23155 | # So? What about this header? | ||
23156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23157 | yes:no: ) | ||
23158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23161 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23162 | ac_header_preproc=yes | ||
23163 | ;; | ||
23164 | no:yes:* ) | ||
23165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23169 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23170 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23171 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23172 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23175 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23176 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23177 | ( | ||
23178 | cat <<\_ASBOX | ||
23179 | ## ---------------------------------- ## | ||
23180 | ## Report this to the OpenSSH lists. ## | ||
23181 | ## ---------------------------------- ## | ||
23182 | _ASBOX | ||
23183 | ) | | ||
23184 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23185 | ;; | ||
23186 | esac | ||
23187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23191 | else | ||
23192 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23193 | fi | ||
23194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23196 | |||
23197 | fi | ||
23198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23199 | cat >>confdefs.h <<_ACEOF | ||
23200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23201 | _ACEOF | ||
23202 | |||
23203 | fi | ||
23204 | |||
23205 | done | ||
23206 | |||
23207 | |||
23208 | |||
23209 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
23210 | do | ||
23211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23217 | fi | ||
23218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23219 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23220 | else | ||
23221 | # Is the header compilable? | ||
23222 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23223 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23224 | cat >conftest.$ac_ext <<_ACEOF | ||
23225 | /* confdefs.h. */ | ||
23226 | _ACEOF | ||
23227 | cat confdefs.h >>conftest.$ac_ext | ||
23228 | cat >>conftest.$ac_ext <<_ACEOF | ||
23229 | /* end confdefs.h. */ | ||
23230 | $ac_includes_default | ||
23231 | #include <$ac_header> | ||
23232 | _ACEOF | ||
23233 | rm -f conftest.$ac_objext | ||
23234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23235 | (eval $ac_compile) 2>conftest.er1 | ||
23236 | ac_status=$? | ||
23237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23238 | rm -f conftest.er1 | ||
23239 | cat conftest.err >&5 | ||
23240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23241 | (exit $ac_status); } && | ||
23242 | { ac_try='test -z "$ac_c_werror_flag" | ||
23243 | || test ! -s conftest.err' | ||
23244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23245 | (eval $ac_try) 2>&5 | ||
23246 | ac_status=$? | ||
23247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23248 | (exit $ac_status); }; } && | ||
23249 | { ac_try='test -s conftest.$ac_objext' | ||
23250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23251 | (eval $ac_try) 2>&5 | ||
23252 | ac_status=$? | ||
23253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23254 | (exit $ac_status); }; }; then | ||
23255 | ac_header_compiler=yes | ||
23256 | else | ||
23257 | echo "$as_me: failed program was:" >&5 | ||
23258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23259 | |||
23260 | ac_header_compiler=no | ||
23261 | fi | ||
23262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23263 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23264 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23265 | |||
23266 | # Is the header present? | ||
23267 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23268 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23269 | cat >conftest.$ac_ext <<_ACEOF | ||
23270 | /* confdefs.h. */ | ||
23271 | _ACEOF | ||
23272 | cat confdefs.h >>conftest.$ac_ext | ||
23273 | cat >>conftest.$ac_ext <<_ACEOF | ||
23274 | /* end confdefs.h. */ | ||
23275 | #include <$ac_header> | ||
23276 | _ACEOF | ||
23277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23279 | ac_status=$? | ||
23280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23281 | rm -f conftest.er1 | ||
23282 | cat conftest.err >&5 | ||
23283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23284 | (exit $ac_status); } >/dev/null; then | ||
23285 | if test -s conftest.err; then | ||
23286 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23287 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23288 | else | ||
23289 | ac_cpp_err= | ||
23290 | fi | ||
23291 | else | ||
23292 | ac_cpp_err=yes | ||
23293 | fi | ||
23294 | if test -z "$ac_cpp_err"; then | ||
23295 | ac_header_preproc=yes | ||
23296 | else | ||
23297 | echo "$as_me: failed program was:" >&5 | ||
23298 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23299 | |||
23300 | ac_header_preproc=no | ||
23301 | fi | ||
23302 | rm -f conftest.err conftest.$ac_ext | ||
23303 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23304 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23305 | |||
23306 | # So? What about this header? | ||
23307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23308 | yes:no: ) | ||
23309 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23310 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23312 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23313 | ac_header_preproc=yes | ||
23314 | ;; | ||
23315 | no:yes:* ) | ||
23316 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23317 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23318 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23319 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23320 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23321 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23322 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23323 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23324 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23325 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23326 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23327 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23328 | ( | ||
23329 | cat <<\_ASBOX | ||
23330 | ## ---------------------------------- ## | ||
23331 | ## Report this to the OpenSSH lists. ## | ||
23332 | ## ---------------------------------- ## | ||
23333 | _ASBOX | ||
23334 | ) | | ||
23335 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23336 | ;; | ||
23337 | esac | ||
23338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23342 | else | ||
23343 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23344 | fi | ||
23345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23346 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23347 | |||
23348 | fi | ||
23349 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23350 | cat >>confdefs.h <<_ACEOF | ||
23351 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23352 | _ACEOF | ||
23353 | |||
23354 | fi | ||
23355 | |||
23356 | done | ||
23357 | |||
23358 | |||
23359 | |||
23360 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
23361 | do | ||
23362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23368 | fi | ||
23369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23371 | else | ||
23372 | # Is the header compilable? | ||
23373 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23375 | cat >conftest.$ac_ext <<_ACEOF | ||
23376 | /* confdefs.h. */ | ||
23377 | _ACEOF | ||
23378 | cat confdefs.h >>conftest.$ac_ext | ||
23379 | cat >>conftest.$ac_ext <<_ACEOF | ||
23380 | /* end confdefs.h. */ | ||
23381 | $ac_includes_default | ||
23382 | #include <$ac_header> | ||
23383 | _ACEOF | ||
23384 | rm -f conftest.$ac_objext | ||
23385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23386 | (eval $ac_compile) 2>conftest.er1 | ||
23387 | ac_status=$? | ||
23388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23389 | rm -f conftest.er1 | ||
23390 | cat conftest.err >&5 | ||
23391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23392 | (exit $ac_status); } && | ||
23393 | { ac_try='test -z "$ac_c_werror_flag" | ||
23394 | || test ! -s conftest.err' | ||
23395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23396 | (eval $ac_try) 2>&5 | ||
23397 | ac_status=$? | ||
23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23399 | (exit $ac_status); }; } && | ||
23400 | { ac_try='test -s conftest.$ac_objext' | ||
23401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23402 | (eval $ac_try) 2>&5 | ||
23403 | ac_status=$? | ||
23404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23405 | (exit $ac_status); }; }; then | ||
23406 | ac_header_compiler=yes | ||
23407 | else | ||
23408 | echo "$as_me: failed program was:" >&5 | ||
23409 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23410 | |||
23411 | ac_header_compiler=no | ||
23412 | fi | ||
23413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23415 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23416 | |||
23417 | # Is the header present? | ||
23418 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23420 | cat >conftest.$ac_ext <<_ACEOF | ||
23421 | /* confdefs.h. */ | ||
23422 | _ACEOF | ||
23423 | cat confdefs.h >>conftest.$ac_ext | ||
23424 | cat >>conftest.$ac_ext <<_ACEOF | ||
23425 | /* end confdefs.h. */ | ||
23426 | #include <$ac_header> | ||
23427 | _ACEOF | ||
23428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23430 | ac_status=$? | ||
23431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23432 | rm -f conftest.er1 | ||
23433 | cat conftest.err >&5 | ||
23434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23435 | (exit $ac_status); } >/dev/null; then | ||
23436 | if test -s conftest.err; then | ||
23437 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23439 | else | ||
23440 | ac_cpp_err= | ||
23441 | fi | ||
23442 | else | ||
23443 | ac_cpp_err=yes | ||
23444 | fi | ||
23445 | if test -z "$ac_cpp_err"; then | ||
23446 | ac_header_preproc=yes | ||
23447 | else | ||
23448 | echo "$as_me: failed program was:" >&5 | ||
23449 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23450 | |||
23451 | ac_header_preproc=no | ||
23452 | fi | ||
23453 | rm -f conftest.err conftest.$ac_ext | ||
23454 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23455 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23456 | |||
23457 | # So? What about this header? | ||
23458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23459 | yes:no: ) | ||
23460 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23461 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23463 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23464 | ac_header_preproc=yes | ||
23465 | ;; | ||
23466 | no:yes:* ) | ||
23467 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23468 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23469 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23471 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23472 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23473 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23474 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23476 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23477 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23478 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23479 | ( | ||
23480 | cat <<\_ASBOX | ||
23481 | ## ---------------------------------- ## | ||
23482 | ## Report this to the OpenSSH lists. ## | ||
23483 | ## ---------------------------------- ## | ||
23484 | _ASBOX | ||
23485 | ) | | ||
23486 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23487 | ;; | ||
23488 | esac | ||
23489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23493 | else | ||
23494 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23495 | fi | ||
23496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23498 | |||
23499 | fi | ||
23500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23501 | cat >>confdefs.h <<_ACEOF | ||
23502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23503 | _ACEOF | ||
23504 | |||
23505 | fi | ||
23506 | |||
23507 | done | ||
23508 | |||
23509 | |||
23510 | LIBS="$LIBS $K5LIBS" | ||
23511 | echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
23512 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
23513 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
23514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23515 | else | ||
23516 | ac_func_search_save_LIBS=$LIBS | ||
23517 | ac_cv_search_k_hasafs=no | ||
23518 | cat >conftest.$ac_ext <<_ACEOF | ||
23519 | /* confdefs.h. */ | ||
23520 | _ACEOF | ||
23521 | cat confdefs.h >>conftest.$ac_ext | ||
23522 | cat >>conftest.$ac_ext <<_ACEOF | ||
23523 | /* end confdefs.h. */ | ||
23524 | |||
23525 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23526 | #ifdef __cplusplus | ||
23527 | extern "C" | ||
23528 | #endif | ||
23529 | /* We use char because int might match the return type of a gcc2 | ||
23530 | builtin and then its argument prototype would still apply. */ | ||
23531 | char k_hasafs (); | ||
23532 | int | ||
23533 | main () | ||
23534 | { | ||
23535 | k_hasafs (); | ||
23536 | ; | ||
23537 | return 0; | ||
23538 | } | ||
23539 | _ACEOF | ||
23540 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23542 | (eval $ac_link) 2>conftest.er1 | ||
23543 | ac_status=$? | ||
23544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23545 | rm -f conftest.er1 | ||
23546 | cat conftest.err >&5 | ||
23547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23548 | (exit $ac_status); } && | ||
23549 | { ac_try='test -z "$ac_c_werror_flag" | ||
23550 | || test ! -s conftest.err' | ||
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23552 | (eval $ac_try) 2>&5 | ||
23553 | ac_status=$? | ||
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23555 | (exit $ac_status); }; } && | ||
23556 | { ac_try='test -s conftest$ac_exeext' | ||
23557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23558 | (eval $ac_try) 2>&5 | ||
23559 | ac_status=$? | ||
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23561 | (exit $ac_status); }; }; then | ||
23562 | ac_cv_search_k_hasafs="none required" | ||
23563 | else | ||
23564 | echo "$as_me: failed program was:" >&5 | ||
23565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23566 | |||
23567 | fi | ||
23568 | rm -f conftest.err conftest.$ac_objext \ | ||
23569 | conftest$ac_exeext conftest.$ac_ext | ||
23570 | if test "$ac_cv_search_k_hasafs" = no; then | ||
23571 | for ac_lib in kafs; do | ||
23572 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23573 | cat >conftest.$ac_ext <<_ACEOF | ||
23574 | /* confdefs.h. */ | ||
23575 | _ACEOF | ||
23576 | cat confdefs.h >>conftest.$ac_ext | ||
23577 | cat >>conftest.$ac_ext <<_ACEOF | ||
23578 | /* end confdefs.h. */ | ||
23579 | |||
23580 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23581 | #ifdef __cplusplus | ||
23582 | extern "C" | ||
23583 | #endif | ||
23584 | /* We use char because int might match the return type of a gcc2 | ||
23585 | builtin and then its argument prototype would still apply. */ | ||
23586 | char k_hasafs (); | ||
23587 | int | ||
23588 | main () | ||
23589 | { | ||
23590 | k_hasafs (); | ||
23591 | ; | ||
23592 | return 0; | ||
23593 | } | ||
23594 | _ACEOF | ||
23595 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23597 | (eval $ac_link) 2>conftest.er1 | ||
23598 | ac_status=$? | ||
23599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23600 | rm -f conftest.er1 | ||
23601 | cat conftest.err >&5 | ||
23602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23603 | (exit $ac_status); } && | ||
23604 | { ac_try='test -z "$ac_c_werror_flag" | ||
23605 | || test ! -s conftest.err' | ||
23606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23607 | (eval $ac_try) 2>&5 | ||
23608 | ac_status=$? | ||
23609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23610 | (exit $ac_status); }; } && | ||
23611 | { ac_try='test -s conftest$ac_exeext' | ||
23612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23613 | (eval $ac_try) 2>&5 | ||
23614 | ac_status=$? | ||
23615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23616 | (exit $ac_status); }; }; then | ||
23617 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
23618 | break | ||
23619 | else | ||
23620 | echo "$as_me: failed program was:" >&5 | ||
23621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23622 | |||
23623 | fi | ||
23624 | rm -f conftest.err conftest.$ac_objext \ | ||
23625 | conftest$ac_exeext conftest.$ac_ext | ||
23626 | done | ||
23627 | fi | ||
23628 | LIBS=$ac_func_search_save_LIBS | ||
23629 | fi | ||
23630 | echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
23631 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
23632 | if test "$ac_cv_search_k_hasafs" != no; then | ||
23633 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
23634 | cat >>confdefs.h <<\_ACEOF | ||
23635 | #define USE_AFS 1 | ||
23636 | _ACEOF | ||
23637 | |||
23638 | fi | ||
23639 | |||
23640 | echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5 | ||
23641 | echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6 | ||
23642 | if test "${ac_cv_search_krb5_init_ets+set}" = set; then | ||
23643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23644 | else | ||
23645 | ac_func_search_save_LIBS=$LIBS | ||
23646 | ac_cv_search_krb5_init_ets=no | ||
23647 | cat >conftest.$ac_ext <<_ACEOF | ||
23648 | /* confdefs.h. */ | ||
23649 | _ACEOF | ||
23650 | cat confdefs.h >>conftest.$ac_ext | ||
23651 | cat >>conftest.$ac_ext <<_ACEOF | ||
23652 | /* end confdefs.h. */ | ||
23653 | |||
23654 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23655 | #ifdef __cplusplus | ||
23656 | extern "C" | ||
23657 | #endif | ||
23658 | /* We use char because int might match the return type of a gcc2 | ||
23659 | builtin and then its argument prototype would still apply. */ | ||
23660 | char krb5_init_ets (); | ||
23661 | int | ||
23662 | main () | ||
23663 | { | ||
23664 | krb5_init_ets (); | ||
23665 | ; | ||
23666 | return 0; | ||
23667 | } | ||
23668 | _ACEOF | ||
23669 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23671 | (eval $ac_link) 2>conftest.er1 | ||
23672 | ac_status=$? | ||
23673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23674 | rm -f conftest.er1 | ||
23675 | cat conftest.err >&5 | ||
23676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23677 | (exit $ac_status); } && | ||
23678 | { ac_try='test -z "$ac_c_werror_flag" | ||
23679 | || test ! -s conftest.err' | ||
23680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23681 | (eval $ac_try) 2>&5 | ||
23682 | ac_status=$? | ||
23683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23684 | (exit $ac_status); }; } && | ||
23685 | { ac_try='test -s conftest$ac_exeext' | ||
23686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23687 | (eval $ac_try) 2>&5 | ||
23688 | ac_status=$? | ||
23689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23690 | (exit $ac_status); }; }; then | ||
23691 | ac_cv_search_krb5_init_ets="none required" | ||
23692 | else | ||
23693 | echo "$as_me: failed program was:" >&5 | ||
23694 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23695 | |||
23696 | fi | ||
23697 | rm -f conftest.err conftest.$ac_objext \ | ||
23698 | conftest$ac_exeext conftest.$ac_ext | ||
23699 | if test "$ac_cv_search_krb5_init_ets" = no; then | ||
23700 | for ac_lib in $K5LIBS; do | ||
23701 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
23702 | cat >conftest.$ac_ext <<_ACEOF | ||
23703 | /* confdefs.h. */ | ||
23704 | _ACEOF | ||
23705 | cat confdefs.h >>conftest.$ac_ext | ||
23706 | cat >>conftest.$ac_ext <<_ACEOF | ||
23707 | /* end confdefs.h. */ | ||
23708 | |||
23709 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23710 | #ifdef __cplusplus | ||
23711 | extern "C" | ||
23712 | #endif | ||
23713 | /* We use char because int might match the return type of a gcc2 | ||
23714 | builtin and then its argument prototype would still apply. */ | ||
23715 | char krb5_init_ets (); | ||
23716 | int | ||
23717 | main () | ||
23718 | { | ||
23719 | krb5_init_ets (); | ||
23720 | ; | ||
23721 | return 0; | ||
23722 | } | ||
23723 | _ACEOF | ||
23724 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23726 | (eval $ac_link) 2>conftest.er1 | ||
23727 | ac_status=$? | ||
23728 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23729 | rm -f conftest.er1 | ||
23730 | cat conftest.err >&5 | ||
23731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23732 | (exit $ac_status); } && | ||
23733 | { ac_try='test -z "$ac_c_werror_flag" | ||
23734 | || test ! -s conftest.err' | ||
23735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23736 | (eval $ac_try) 2>&5 | ||
23737 | ac_status=$? | ||
23738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23739 | (exit $ac_status); }; } && | ||
23740 | { ac_try='test -s conftest$ac_exeext' | ||
23741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23742 | (eval $ac_try) 2>&5 | ||
23743 | ac_status=$? | ||
23744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23745 | (exit $ac_status); }; }; then | ||
23746 | ac_cv_search_krb5_init_ets="-l$ac_lib" | ||
23747 | break | ||
23748 | else | ||
23749 | echo "$as_me: failed program was:" >&5 | ||
23750 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23751 | |||
23752 | fi | ||
23753 | rm -f conftest.err conftest.$ac_objext \ | ||
23754 | conftest$ac_exeext conftest.$ac_ext | ||
23755 | done | ||
23756 | fi | ||
23757 | LIBS=$ac_func_search_save_LIBS | ||
23758 | fi | ||
23759 | echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5 | ||
23760 | echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6 | ||
23761 | if test "$ac_cv_search_krb5_init_ets" != no; then | ||
23762 | test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS" | ||
23763 | cat >>confdefs.h <<\_ACEOF | ||
23764 | #define KRB5_INIT_ETS 1 | ||
23765 | _ACEOF | ||
23766 | |||
23767 | fi | ||
23768 | |||
23769 | |||
23770 | |||
23771 | fi; | ||
23772 | |||
23773 | # Looking for programs, paths and files | ||
23774 | |||
23775 | PRIVSEP_PATH=/var/empty | ||
23776 | |||
23777 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
23778 | if test "${with_privsep_path+set}" = set; then | ||
23779 | withval="$with_privsep_path" | ||
23780 | |||
23781 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
23782 | test "x${withval}" != "xyes"; then | ||
23783 | PRIVSEP_PATH=$withval | ||
23784 | fi | ||
23785 | |||
23786 | |||
23787 | fi; | ||
23788 | |||
23789 | |||
23790 | |||
23791 | # Check whether --with-xauth or --without-xauth was given. | ||
23792 | if test "${with_xauth+set}" = set; then | ||
23793 | withval="$with_xauth" | ||
23794 | |||
23795 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
23796 | test "x${withval}" != "xyes"; then | ||
23797 | xauth_path=$withval | ||
23798 | fi | ||
23799 | |||
23800 | else | ||
23801 | |||
23802 | TestPath="$PATH" | ||
23803 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
23804 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
23805 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
23806 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
23807 | # Extract the first word of "xauth", so it can be a program name with args. | ||
23808 | set dummy xauth; ac_word=$2 | ||
23809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
23810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
23811 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
23812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23813 | else | ||
23814 | case $xauth_path in | ||
23815 | [\\/]* | ?:[\\/]*) | ||
23816 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
23817 | ;; | ||
23818 | *) | ||
23819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23820 | for as_dir in $TestPath | ||
23821 | do | ||
23822 | IFS=$as_save_IFS | ||
23823 | test -z "$as_dir" && as_dir=. | ||
23824 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
23825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
23826 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
23827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
23828 | break 2 | ||
23829 | fi | ||
23830 | done | ||
23831 | done | ||
23832 | |||
23833 | ;; | ||
23834 | esac | ||
23835 | fi | ||
23836 | xauth_path=$ac_cv_path_xauth_path | ||
23837 | |||
23838 | if test -n "$xauth_path"; then | ||
23839 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
23840 | echo "${ECHO_T}$xauth_path" >&6 | ||
23841 | else | ||
23842 | echo "$as_me:$LINENO: result: no" >&5 | ||
23843 | echo "${ECHO_T}no" >&6 | ||
23844 | fi | ||
23845 | |||
23846 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
23847 | xauth_path="/usr/openwin/bin/xauth" | ||
23848 | fi | ||
23849 | |||
23850 | |||
23851 | fi; | ||
23852 | |||
23853 | STRIP_OPT=-s | ||
23854 | # Check whether --enable-strip or --disable-strip was given. | ||
23855 | if test "${enable_strip+set}" = set; then | ||
23856 | enableval="$enable_strip" | ||
23857 | |||
23858 | if test "x$enableval" = "xno" ; then | ||
23859 | STRIP_OPT= | ||
23860 | fi | ||
23861 | |||
23862 | |||
23863 | fi; | ||
23864 | |||
23865 | |||
23866 | if test -z "$xauth_path" ; then | ||
23867 | XAUTH_PATH="undefined" | ||
23868 | |||
23869 | else | ||
23870 | cat >>confdefs.h <<_ACEOF | ||
23871 | #define XAUTH_PATH "$xauth_path" | ||
23872 | _ACEOF | ||
23873 | |||
23874 | XAUTH_PATH=$xauth_path | ||
23875 | |||
23876 | fi | ||
23877 | |||
23878 | # Check for mail directory (last resort if we cannot get it from headers) | ||
23879 | if test ! -z "$MAIL" ; then | ||
23880 | maildir=`dirname $MAIL` | ||
23881 | cat >>confdefs.h <<_ACEOF | ||
23882 | #define MAIL_DIRECTORY "$maildir" | ||
23883 | _ACEOF | ||
23884 | |||
23885 | fi | ||
23886 | |||
23887 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
23888 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
23889 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
23890 | disable_ptmx_check=yes | ||
23891 | fi | ||
23892 | if test -z "$no_dev_ptmx" ; then | ||
23893 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
23894 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
23895 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
23896 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
23897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23898 | else | ||
23899 | test "$cross_compiling" = yes && | ||
23900 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
23901 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
23902 | { (exit 1); exit 1; }; } | ||
23903 | if test -r ""/dev/ptmx""; then | ||
23904 | ac_cv_file___dev_ptmx_=yes | ||
23905 | else | ||
23906 | ac_cv_file___dev_ptmx_=no | ||
23907 | fi | ||
23908 | fi | ||
23909 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
23910 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
23911 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
23912 | |||
23913 | cat >>confdefs.h <<_ACEOF | ||
23914 | #define HAVE_DEV_PTMX 1 | ||
23915 | _ACEOF | ||
23916 | |||
23917 | have_dev_ptmx=1 | ||
23918 | |||
23919 | |||
23920 | fi | ||
23921 | |||
23922 | fi | ||
23923 | fi | ||
23924 | |||
23925 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
23926 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
23927 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
23928 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
23929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23930 | else | ||
23931 | test "$cross_compiling" = yes && | ||
23932 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
23933 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
23934 | { (exit 1); exit 1; }; } | ||
23935 | if test -r ""/dev/ptc""; then | ||
23936 | ac_cv_file___dev_ptc_=yes | ||
23937 | else | ||
23938 | ac_cv_file___dev_ptc_=no | ||
23939 | fi | ||
23940 | fi | ||
23941 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
23942 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
23943 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
23944 | |||
23945 | cat >>confdefs.h <<_ACEOF | ||
23946 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
23947 | _ACEOF | ||
23948 | |||
23949 | have_dev_ptc=1 | ||
23950 | |||
23951 | |||
23952 | fi | ||
23953 | |||
23954 | else | ||
23955 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
23956 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
23957 | fi | ||
23958 | |||
23959 | # Options from here on. Some of these are preset by platform above | ||
23960 | |||
23961 | # Check whether --with-mantype or --without-mantype was given. | ||
23962 | if test "${with_mantype+set}" = set; then | ||
23963 | withval="$with_mantype" | ||
23964 | |||
23965 | case "$withval" in | ||
23966 | man|cat|doc) | ||
23967 | MANTYPE=$withval | ||
23968 | ;; | ||
23969 | *) | ||
23970 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
23971 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
23972 | { (exit 1); exit 1; }; } | ||
23973 | ;; | ||
23974 | esac | ||
23975 | |||
23976 | |||
23977 | fi; | ||
23978 | if test -z "$MANTYPE"; then | ||
23979 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
23980 | for ac_prog in nroff awf | ||
23981 | do | ||
23982 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
23983 | set dummy $ac_prog; ac_word=$2 | ||
23984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
23985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
23986 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
23987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23988 | else | ||
23989 | case $NROFF in | ||
23990 | [\\/]* | ?:[\\/]*) | ||
23991 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
23992 | ;; | ||
23993 | *) | ||
23994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23995 | for as_dir in $TestPath | ||
23996 | do | ||
23997 | IFS=$as_save_IFS | ||
23998 | test -z "$as_dir" && as_dir=. | ||
23999 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
24001 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
24002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24003 | break 2 | ||
24004 | fi | ||
24005 | done | ||
24006 | done | ||
24007 | |||
24008 | ;; | ||
24009 | esac | ||
24010 | fi | ||
24011 | NROFF=$ac_cv_path_NROFF | ||
24012 | |||
24013 | if test -n "$NROFF"; then | ||
24014 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
24015 | echo "${ECHO_T}$NROFF" >&6 | ||
24016 | else | ||
24017 | echo "$as_me:$LINENO: result: no" >&5 | ||
24018 | echo "${ECHO_T}no" >&6 | ||
24019 | fi | ||
24020 | |||
24021 | test -n "$NROFF" && break | ||
24022 | done | ||
24023 | test -n "$NROFF" || NROFF="/bin/false" | ||
24024 | |||
24025 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
24026 | MANTYPE=doc | ||
24027 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
24028 | MANTYPE=man | ||
24029 | else | ||
24030 | MANTYPE=cat | ||
24031 | fi | ||
24032 | fi | ||
24033 | |||
24034 | if test "$MANTYPE" = "doc"; then | ||
24035 | mansubdir=man; | ||
24036 | else | ||
24037 | mansubdir=$MANTYPE; | ||
24038 | fi | ||
24039 | |||
24040 | |||
24041 | # Check whether to enable MD5 passwords | ||
24042 | MD5_MSG="no" | ||
24043 | |||
24044 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
24045 | if test "${with_md5_passwords+set}" = set; then | ||
24046 | withval="$with_md5_passwords" | ||
24047 | |||
24048 | if test "x$withval" != "xno" ; then | ||
24049 | cat >>confdefs.h <<\_ACEOF | ||
24050 | #define HAVE_MD5_PASSWORDS 1 | ||
24051 | _ACEOF | ||
24052 | |||
24053 | MD5_MSG="yes" | ||
24054 | fi | ||
24055 | |||
24056 | |||
24057 | fi; | ||
24058 | |||
24059 | # Whether to disable shadow password support | ||
24060 | |||
24061 | # Check whether --with-shadow or --without-shadow was given. | ||
24062 | if test "${with_shadow+set}" = set; then | ||
24063 | withval="$with_shadow" | ||
24064 | |||
24065 | if test "x$withval" = "xno" ; then | ||
24066 | cat >>confdefs.h <<\_ACEOF | ||
24067 | #define DISABLE_SHADOW 1 | ||
24068 | _ACEOF | ||
24069 | |||
24070 | disable_shadow=yes | ||
24071 | fi | ||
24072 | |||
24073 | |||
24074 | fi; | ||
24075 | |||
24076 | if test -z "$disable_shadow" ; then | ||
24077 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
24078 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
24079 | cat >conftest.$ac_ext <<_ACEOF | ||
24080 | /* confdefs.h. */ | ||
24081 | _ACEOF | ||
24082 | cat confdefs.h >>conftest.$ac_ext | ||
24083 | cat >>conftest.$ac_ext <<_ACEOF | ||
24084 | /* end confdefs.h. */ | ||
24085 | |||
24086 | #include <sys/types.h> | ||
24087 | #include <shadow.h> | ||
24088 | struct spwd sp; | ||
24089 | |||
24090 | int | ||
24091 | main () | ||
24092 | { | ||
24093 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
24094 | ; | ||
24095 | return 0; | ||
24096 | } | ||
24097 | _ACEOF | ||
24098 | rm -f conftest.$ac_objext | ||
24099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24100 | (eval $ac_compile) 2>conftest.er1 | ||
24101 | ac_status=$? | ||
24102 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24103 | rm -f conftest.er1 | ||
24104 | cat conftest.err >&5 | ||
24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24106 | (exit $ac_status); } && | ||
24107 | { ac_try='test -z "$ac_c_werror_flag" | ||
24108 | || test ! -s conftest.err' | ||
24109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24110 | (eval $ac_try) 2>&5 | ||
24111 | ac_status=$? | ||
24112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24113 | (exit $ac_status); }; } && | ||
24114 | { ac_try='test -s conftest.$ac_objext' | ||
24115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24116 | (eval $ac_try) 2>&5 | ||
24117 | ac_status=$? | ||
24118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24119 | (exit $ac_status); }; }; then | ||
24120 | sp_expire_available=yes | ||
24121 | else | ||
24122 | echo "$as_me: failed program was:" >&5 | ||
24123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24124 | |||
24125 | |||
24126 | |||
24127 | fi | ||
24128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24129 | |||
24130 | if test "x$sp_expire_available" = "xyes" ; then | ||
24131 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24132 | echo "${ECHO_T}yes" >&6 | ||
24133 | cat >>confdefs.h <<\_ACEOF | ||
24134 | #define HAS_SHADOW_EXPIRE 1 | ||
24135 | _ACEOF | ||
24136 | |||
24137 | else | ||
24138 | echo "$as_me:$LINENO: result: no" >&5 | ||
24139 | echo "${ECHO_T}no" >&6 | ||
24140 | fi | ||
24141 | fi | ||
24142 | |||
24143 | # Use ip address instead of hostname in $DISPLAY | ||
24144 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
24145 | DISPLAY_HACK_MSG="yes" | ||
24146 | cat >>confdefs.h <<\_ACEOF | ||
24147 | #define IPADDR_IN_DISPLAY 1 | ||
24148 | _ACEOF | ||
24149 | |||
24150 | else | ||
24151 | DISPLAY_HACK_MSG="no" | ||
24152 | |||
24153 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
24154 | if test "${with_ipaddr_display+set}" = set; then | ||
24155 | withval="$with_ipaddr_display" | ||
24156 | |||
24157 | if test "x$withval" != "xno" ; then | ||
24158 | cat >>confdefs.h <<\_ACEOF | ||
24159 | #define IPADDR_IN_DISPLAY 1 | ||
24160 | _ACEOF | ||
24161 | |||
24162 | DISPLAY_HACK_MSG="yes" | ||
24163 | fi | ||
24164 | |||
24165 | |||
24166 | fi; | ||
24167 | fi | ||
24168 | |||
24169 | # check for /etc/default/login and use it if present. | ||
24170 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
24171 | if test "${enable_etc_default_login+set}" = set; then | ||
24172 | enableval="$enable_etc_default_login" | ||
24173 | if test "x$enableval" = "xno"; then | ||
24174 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
24175 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
24176 | etc_default_login=no | ||
24177 | else | ||
24178 | etc_default_login=yes | ||
24179 | fi | ||
24180 | else | ||
24181 | etc_default_login=yes | ||
24182 | |||
24183 | fi; | ||
24184 | |||
24185 | if test "x$etc_default_login" != "xno"; then | ||
24186 | echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
24187 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
24188 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
24189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24190 | else | ||
24191 | test "$cross_compiling" = yes && | ||
24192 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
24193 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
24194 | { (exit 1); exit 1; }; } | ||
24195 | if test -r ""/etc/default/login""; then | ||
24196 | ac_cv_file___etc_default_login_=yes | ||
24197 | else | ||
24198 | ac_cv_file___etc_default_login_=no | ||
24199 | fi | ||
24200 | fi | ||
24201 | echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
24202 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
24203 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
24204 | external_path_file=/etc/default/login | ||
24205 | fi | ||
24206 | |||
24207 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
24208 | then | ||
24209 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5 | ||
24210 | echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;} | ||
24211 | elif test "x$external_path_file" = "x/etc/default/login"; then | ||
24212 | cat >>confdefs.h <<\_ACEOF | ||
24213 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
24214 | _ACEOF | ||
24215 | |||
24216 | fi | ||
24217 | fi | ||
24218 | |||
24219 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
24220 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
24221 | external_path_file=/etc/login.conf | ||
24222 | fi | ||
24223 | |||
24224 | # Whether to mess with the default path | ||
24225 | SERVER_PATH_MSG="(default)" | ||
24226 | |||
24227 | # Check whether --with-default-path or --without-default-path was given. | ||
24228 | if test "${with_default_path+set}" = set; then | ||
24229 | withval="$with_default_path" | ||
24230 | |||
24231 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24232 | { echo "$as_me:$LINENO: WARNING: | ||
24233 | --with-default-path=PATH has no effect on this system. | ||
24234 | Edit /etc/login.conf instead." >&5 | ||
24235 | echo "$as_me: WARNING: | ||
24236 | --with-default-path=PATH has no effect on this system. | ||
24237 | Edit /etc/login.conf instead." >&2;} | ||
24238 | elif test "x$withval" != "xno" ; then | ||
24239 | if test ! -z "$external_path_file" ; then | ||
24240 | { echo "$as_me:$LINENO: WARNING: | ||
24241 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24242 | $external_path_file ." >&5 | ||
24243 | echo "$as_me: WARNING: | ||
24244 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24245 | $external_path_file ." >&2;} | ||
24246 | fi | ||
24247 | user_path="$withval" | ||
24248 | SERVER_PATH_MSG="$withval" | ||
24249 | fi | ||
24250 | |||
24251 | else | ||
24252 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24253 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
24254 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
24255 | else | ||
24256 | if test ! -z "$external_path_file" ; then | ||
24257 | { echo "$as_me:$LINENO: WARNING: | ||
24258 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24259 | otherwise scp will not work." >&5 | ||
24260 | echo "$as_me: WARNING: | ||
24261 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24262 | otherwise scp will not work." >&2;} | ||
24263 | fi | ||
24264 | if test "$cross_compiling" = yes; then | ||
24265 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24266 | |||
24267 | else | ||
24268 | cat >conftest.$ac_ext <<_ACEOF | ||
24269 | /* confdefs.h. */ | ||
24270 | _ACEOF | ||
24271 | cat confdefs.h >>conftest.$ac_ext | ||
24272 | cat >>conftest.$ac_ext <<_ACEOF | ||
24273 | /* end confdefs.h. */ | ||
24274 | |||
24275 | /* find out what STDPATH is */ | ||
24276 | #include <stdio.h> | ||
24277 | #ifdef HAVE_PATHS_H | ||
24278 | # include <paths.h> | ||
24279 | #endif | ||
24280 | #ifndef _PATH_STDPATH | ||
24281 | # ifdef _PATH_USERPATH /* Irix */ | ||
24282 | # define _PATH_STDPATH _PATH_USERPATH | ||
24283 | # else | ||
24284 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
24285 | # endif | ||
24286 | #endif | ||
24287 | #include <sys/types.h> | ||
24288 | #include <sys/stat.h> | ||
24289 | #include <fcntl.h> | ||
24290 | #define DATA "conftest.stdpath" | ||
24291 | |||
24292 | main() | ||
24293 | { | ||
24294 | FILE *fd; | ||
24295 | int rc; | ||
24296 | |||
24297 | fd = fopen(DATA,"w"); | ||
24298 | if(fd == NULL) | ||
24299 | exit(1); | ||
24300 | |||
24301 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
24302 | exit(1); | ||
24303 | |||
24304 | exit(0); | ||
24305 | } | ||
24306 | |||
24307 | _ACEOF | ||
24308 | rm -f conftest$ac_exeext | ||
24309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24310 | (eval $ac_link) 2>&5 | ||
24311 | ac_status=$? | ||
24312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24315 | (eval $ac_try) 2>&5 | ||
24316 | ac_status=$? | ||
24317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24318 | (exit $ac_status); }; }; then | ||
24319 | user_path=`cat conftest.stdpath` | ||
24320 | else | ||
24321 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24322 | echo "$as_me: failed program was:" >&5 | ||
24323 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24324 | |||
24325 | ( exit $ac_status ) | ||
24326 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24327 | fi | ||
24328 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24329 | fi | ||
24330 | # make sure $bindir is in USER_PATH so scp will work | ||
24331 | t_bindir=`eval echo ${bindir}` | ||
24332 | case $t_bindir in | ||
24333 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
24334 | esac | ||
24335 | case $t_bindir in | ||
24336 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24337 | esac | ||
24338 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
24339 | if test $? -ne 0 ; then | ||
24340 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
24341 | if test $? -ne 0 ; then | ||
24342 | user_path=$user_path:$t_bindir | ||
24343 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
24344 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
24345 | fi | ||
24346 | fi | ||
24347 | fi | ||
24348 | |||
24349 | fi; | ||
24350 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
24351 | cat >>confdefs.h <<_ACEOF | ||
24352 | #define USER_PATH "$user_path" | ||
24353 | _ACEOF | ||
24354 | |||
24355 | |||
24356 | fi | ||
24357 | |||
24358 | # Set superuser path separately to user path | ||
24359 | |||
24360 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
24361 | if test "${with_superuser_path+set}" = set; then | ||
24362 | withval="$with_superuser_path" | ||
24363 | |||
24364 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24365 | test "x${withval}" != "xyes"; then | ||
24366 | cat >>confdefs.h <<_ACEOF | ||
24367 | #define SUPERUSER_PATH "$withval" | ||
24368 | _ACEOF | ||
24369 | |||
24370 | superuser_path=$withval | ||
24371 | fi | ||
24372 | |||
24373 | |||
24374 | fi; | ||
24375 | |||
24376 | |||
24377 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
24378 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
24379 | IPV4_IN6_HACK_MSG="no" | ||
24380 | |||
24381 | # Check whether --with-4in6 or --without-4in6 was given. | ||
24382 | if test "${with_4in6+set}" = set; then | ||
24383 | withval="$with_4in6" | ||
24384 | |||
24385 | if test "x$withval" != "xno" ; then | ||
24386 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24387 | echo "${ECHO_T}yes" >&6 | ||
24388 | cat >>confdefs.h <<\_ACEOF | ||
24389 | #define IPV4_IN_IPV6 1 | ||
24390 | _ACEOF | ||
24391 | |||
24392 | IPV4_IN6_HACK_MSG="yes" | ||
24393 | else | ||
24394 | echo "$as_me:$LINENO: result: no" >&5 | ||
24395 | echo "${ECHO_T}no" >&6 | ||
24396 | fi | ||
24397 | |||
24398 | else | ||
24399 | |||
24400 | if test "x$inet6_default_4in6" = "xyes"; then | ||
24401 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
24402 | echo "${ECHO_T}yes (default)" >&6 | ||
24403 | cat >>confdefs.h <<\_ACEOF | ||
24404 | #define IPV4_IN_IPV6 1 | ||
24405 | _ACEOF | ||
24406 | |||
24407 | IPV4_IN6_HACK_MSG="yes" | ||
24408 | else | ||
24409 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
24410 | echo "${ECHO_T}no (default)" >&6 | ||
24411 | fi | ||
24412 | |||
24413 | |||
24414 | fi; | ||
24415 | |||
24416 | # Whether to enable BSD auth support | ||
24417 | BSD_AUTH_MSG=no | ||
24418 | |||
24419 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
24420 | if test "${with_bsd_auth+set}" = set; then | ||
24421 | withval="$with_bsd_auth" | ||
24422 | |||
24423 | if test "x$withval" != "xno" ; then | ||
24424 | cat >>confdefs.h <<\_ACEOF | ||
24425 | #define BSD_AUTH 1 | ||
24426 | _ACEOF | ||
24427 | |||
24428 | BSD_AUTH_MSG=yes | ||
24429 | fi | ||
24430 | |||
24431 | |||
24432 | fi; | ||
24433 | |||
24434 | # Where to place sshd.pid | ||
24435 | piddir=/var/run | ||
24436 | # make sure the directory exists | ||
24437 | if test ! -d $piddir ; then | ||
24438 | piddir=`eval echo ${sysconfdir}` | ||
24439 | case $piddir in | ||
24440 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24441 | esac | ||
24442 | fi | ||
24443 | |||
24444 | |||
24445 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
24446 | if test "${with_pid_dir+set}" = set; then | ||
24447 | withval="$with_pid_dir" | ||
24448 | |||
24449 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24450 | test "x${withval}" != "xyes"; then | ||
24451 | piddir=$withval | ||
24452 | if test ! -d $piddir ; then | ||
24453 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
24454 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
24455 | fi | ||
24456 | fi | ||
24457 | |||
24458 | |||
24459 | fi; | ||
24460 | |||
24461 | cat >>confdefs.h <<_ACEOF | ||
24462 | #define _PATH_SSH_PIDDIR "$piddir" | ||
24463 | _ACEOF | ||
24464 | |||
24465 | |||
24466 | |||
24467 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
24468 | if test "${enable_lastlog+set}" = set; then | ||
24469 | enableval="$enable_lastlog" | ||
24470 | |||
24471 | if test "x$enableval" = "xno" ; then | ||
24472 | cat >>confdefs.h <<\_ACEOF | ||
24473 | #define DISABLE_LASTLOG 1 | ||
24474 | _ACEOF | ||
24475 | |||
24476 | fi | ||
24477 | |||
24478 | |||
24479 | fi; | ||
24480 | # Check whether --enable-utmp or --disable-utmp was given. | ||
24481 | if test "${enable_utmp+set}" = set; then | ||
24482 | enableval="$enable_utmp" | ||
24483 | |||
24484 | if test "x$enableval" = "xno" ; then | ||
24485 | cat >>confdefs.h <<\_ACEOF | ||
24486 | #define DISABLE_UTMP 1 | ||
24487 | _ACEOF | ||
24488 | |||
24489 | fi | ||
24490 | |||
24491 | |||
24492 | fi; | ||
24493 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
24494 | if test "${enable_utmpx+set}" = set; then | ||
24495 | enableval="$enable_utmpx" | ||
24496 | |||
24497 | if test "x$enableval" = "xno" ; then | ||
24498 | cat >>confdefs.h <<\_ACEOF | ||
24499 | #define DISABLE_UTMPX 1 | ||
24500 | _ACEOF | ||
24501 | |||
24502 | fi | ||
24503 | |||
24504 | |||
24505 | fi; | ||
24506 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
24507 | if test "${enable_wtmp+set}" = set; then | ||
24508 | enableval="$enable_wtmp" | ||
24509 | |||
24510 | if test "x$enableval" = "xno" ; then | ||
24511 | cat >>confdefs.h <<\_ACEOF | ||
24512 | #define DISABLE_WTMP 1 | ||
24513 | _ACEOF | ||
24514 | |||
24515 | fi | ||
24516 | |||
24517 | |||
24518 | fi; | ||
24519 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
24520 | if test "${enable_wtmpx+set}" = set; then | ||
24521 | enableval="$enable_wtmpx" | ||
24522 | |||
24523 | if test "x$enableval" = "xno" ; then | ||
24524 | cat >>confdefs.h <<\_ACEOF | ||
24525 | #define DISABLE_WTMPX 1 | ||
24526 | _ACEOF | ||
24527 | |||
24528 | fi | ||
24529 | |||
24530 | |||
24531 | fi; | ||
24532 | # Check whether --enable-libutil or --disable-libutil was given. | ||
24533 | if test "${enable_libutil+set}" = set; then | ||
24534 | enableval="$enable_libutil" | ||
24535 | |||
24536 | if test "x$enableval" = "xno" ; then | ||
24537 | cat >>confdefs.h <<\_ACEOF | ||
24538 | #define DISABLE_LOGIN 1 | ||
24539 | _ACEOF | ||
24540 | |||
24541 | fi | ||
24542 | |||
24543 | |||
24544 | fi; | ||
24545 | # Check whether --enable-pututline or --disable-pututline was given. | ||
24546 | if test "${enable_pututline+set}" = set; then | ||
24547 | enableval="$enable_pututline" | ||
24548 | |||
24549 | if test "x$enableval" = "xno" ; then | ||
24550 | cat >>confdefs.h <<\_ACEOF | ||
24551 | #define DISABLE_PUTUTLINE 1 | ||
24552 | _ACEOF | ||
24553 | |||
24554 | fi | ||
24555 | |||
24556 | |||
24557 | fi; | ||
24558 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
24559 | if test "${enable_pututxline+set}" = set; then | ||
24560 | enableval="$enable_pututxline" | ||
24561 | |||
24562 | if test "x$enableval" = "xno" ; then | ||
24563 | cat >>confdefs.h <<\_ACEOF | ||
24564 | #define DISABLE_PUTUTXLINE 1 | ||
24565 | _ACEOF | ||
24566 | |||
24567 | fi | ||
24568 | |||
24569 | |||
24570 | fi; | ||
24571 | |||
24572 | # Check whether --with-lastlog or --without-lastlog was given. | ||
24573 | if test "${with_lastlog+set}" = set; then | ||
24574 | withval="$with_lastlog" | ||
24575 | |||
24576 | if test "x$withval" = "xno" ; then | ||
24577 | cat >>confdefs.h <<\_ACEOF | ||
24578 | #define DISABLE_LASTLOG 1 | ||
24579 | _ACEOF | ||
24580 | |||
24581 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
24582 | conf_lastlog_location=$withval | ||
24583 | fi | ||
24584 | |||
24585 | |||
24586 | fi; | ||
24587 | |||
24588 | |||
24589 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
24590 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
24591 | cat >conftest.$ac_ext <<_ACEOF | ||
24592 | /* confdefs.h. */ | ||
24593 | _ACEOF | ||
24594 | cat confdefs.h >>conftest.$ac_ext | ||
24595 | cat >>conftest.$ac_ext <<_ACEOF | ||
24596 | /* end confdefs.h. */ | ||
24597 | |||
24598 | #include <sys/types.h> | ||
24599 | #include <utmp.h> | ||
24600 | #ifdef HAVE_LASTLOG_H | ||
24601 | # include <lastlog.h> | ||
24602 | #endif | ||
24603 | #ifdef HAVE_PATHS_H | ||
24604 | # include <paths.h> | ||
24605 | #endif | ||
24606 | #ifdef HAVE_LOGIN_H | ||
24607 | # include <login.h> | ||
24608 | #endif | ||
24609 | |||
24610 | int | ||
24611 | main () | ||
24612 | { | ||
24613 | char *lastlog = LASTLOG_FILE; | ||
24614 | ; | ||
24615 | return 0; | ||
24616 | } | ||
24617 | _ACEOF | ||
24618 | rm -f conftest.$ac_objext | ||
24619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24620 | (eval $ac_compile) 2>conftest.er1 | ||
24621 | ac_status=$? | ||
24622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24623 | rm -f conftest.er1 | ||
24624 | cat conftest.err >&5 | ||
24625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24626 | (exit $ac_status); } && | ||
24627 | { ac_try='test -z "$ac_c_werror_flag" | ||
24628 | || test ! -s conftest.err' | ||
24629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24630 | (eval $ac_try) 2>&5 | ||
24631 | ac_status=$? | ||
24632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24633 | (exit $ac_status); }; } && | ||
24634 | { ac_try='test -s conftest.$ac_objext' | ||
24635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24636 | (eval $ac_try) 2>&5 | ||
24637 | ac_status=$? | ||
24638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24639 | (exit $ac_status); }; }; then | ||
24640 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24641 | echo "${ECHO_T}yes" >&6 | ||
24642 | else | ||
24643 | echo "$as_me: failed program was:" >&5 | ||
24644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24645 | |||
24646 | |||
24647 | echo "$as_me:$LINENO: result: no" >&5 | ||
24648 | echo "${ECHO_T}no" >&6 | ||
24649 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
24650 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
24651 | cat >conftest.$ac_ext <<_ACEOF | ||
24652 | /* confdefs.h. */ | ||
24653 | _ACEOF | ||
24654 | cat confdefs.h >>conftest.$ac_ext | ||
24655 | cat >>conftest.$ac_ext <<_ACEOF | ||
24656 | /* end confdefs.h. */ | ||
24657 | |||
24658 | #include <sys/types.h> | ||
24659 | #include <utmp.h> | ||
24660 | #ifdef HAVE_LASTLOG_H | ||
24661 | # include <lastlog.h> | ||
24662 | #endif | ||
24663 | #ifdef HAVE_PATHS_H | ||
24664 | # include <paths.h> | ||
24665 | #endif | ||
24666 | |||
24667 | int | ||
24668 | main () | ||
24669 | { | ||
24670 | char *lastlog = _PATH_LASTLOG; | ||
24671 | ; | ||
24672 | return 0; | ||
24673 | } | ||
24674 | _ACEOF | ||
24675 | rm -f conftest.$ac_objext | ||
24676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24677 | (eval $ac_compile) 2>conftest.er1 | ||
24678 | ac_status=$? | ||
24679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24680 | rm -f conftest.er1 | ||
24681 | cat conftest.err >&5 | ||
24682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24683 | (exit $ac_status); } && | ||
24684 | { ac_try='test -z "$ac_c_werror_flag" | ||
24685 | || test ! -s conftest.err' | ||
24686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24687 | (eval $ac_try) 2>&5 | ||
24688 | ac_status=$? | ||
24689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24690 | (exit $ac_status); }; } && | ||
24691 | { ac_try='test -s conftest.$ac_objext' | ||
24692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24693 | (eval $ac_try) 2>&5 | ||
24694 | ac_status=$? | ||
24695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24696 | (exit $ac_status); }; }; then | ||
24697 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24698 | echo "${ECHO_T}yes" >&6 | ||
24699 | else | ||
24700 | echo "$as_me: failed program was:" >&5 | ||
24701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24702 | |||
24703 | |||
24704 | echo "$as_me:$LINENO: result: no" >&5 | ||
24705 | echo "${ECHO_T}no" >&6 | ||
24706 | system_lastlog_path=no | ||
24707 | |||
24708 | fi | ||
24709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24710 | |||
24711 | |||
24712 | fi | ||
24713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24714 | |||
24715 | if test -z "$conf_lastlog_location"; then | ||
24716 | if test x"$system_lastlog_path" = x"no" ; then | ||
24717 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
24718 | if (test -d "$f" || test -f "$f") ; then | ||
24719 | conf_lastlog_location=$f | ||
24720 | fi | ||
24721 | done | ||
24722 | if test -z "$conf_lastlog_location"; then | ||
24723 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
24724 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
24725 | fi | ||
24726 | fi | ||
24727 | fi | ||
24728 | |||
24729 | if test -n "$conf_lastlog_location"; then | ||
24730 | cat >>confdefs.h <<_ACEOF | ||
24731 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
24732 | _ACEOF | ||
24733 | |||
24734 | fi | ||
24735 | |||
24736 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
24737 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
24738 | cat >conftest.$ac_ext <<_ACEOF | ||
24739 | /* confdefs.h. */ | ||
24740 | _ACEOF | ||
24741 | cat confdefs.h >>conftest.$ac_ext | ||
24742 | cat >>conftest.$ac_ext <<_ACEOF | ||
24743 | /* end confdefs.h. */ | ||
24744 | |||
24745 | #include <sys/types.h> | ||
24746 | #include <utmp.h> | ||
24747 | #ifdef HAVE_PATHS_H | ||
24748 | # include <paths.h> | ||
24749 | #endif | ||
24750 | |||
24751 | int | ||
24752 | main () | ||
24753 | { | ||
24754 | char *utmp = UTMP_FILE; | ||
24755 | ; | ||
24756 | return 0; | ||
24757 | } | ||
24758 | _ACEOF | ||
24759 | rm -f conftest.$ac_objext | ||
24760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24761 | (eval $ac_compile) 2>conftest.er1 | ||
24762 | ac_status=$? | ||
24763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24764 | rm -f conftest.er1 | ||
24765 | cat conftest.err >&5 | ||
24766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24767 | (exit $ac_status); } && | ||
24768 | { ac_try='test -z "$ac_c_werror_flag" | ||
24769 | || test ! -s conftest.err' | ||
24770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24771 | (eval $ac_try) 2>&5 | ||
24772 | ac_status=$? | ||
24773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24774 | (exit $ac_status); }; } && | ||
24775 | { ac_try='test -s conftest.$ac_objext' | ||
24776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24777 | (eval $ac_try) 2>&5 | ||
24778 | ac_status=$? | ||
24779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24780 | (exit $ac_status); }; }; then | ||
24781 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24782 | echo "${ECHO_T}yes" >&6 | ||
24783 | else | ||
24784 | echo "$as_me: failed program was:" >&5 | ||
24785 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24786 | |||
24787 | echo "$as_me:$LINENO: result: no" >&5 | ||
24788 | echo "${ECHO_T}no" >&6 | ||
24789 | system_utmp_path=no | ||
24790 | |||
24791 | fi | ||
24792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24793 | if test -z "$conf_utmp_location"; then | ||
24794 | if test x"$system_utmp_path" = x"no" ; then | ||
24795 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
24796 | if test -f $f ; then | ||
24797 | conf_utmp_location=$f | ||
24798 | fi | ||
24799 | done | ||
24800 | if test -z "$conf_utmp_location"; then | ||
24801 | cat >>confdefs.h <<\_ACEOF | ||
24802 | #define DISABLE_UTMP 1 | ||
24803 | _ACEOF | ||
24804 | |||
24805 | fi | ||
24806 | fi | ||
24807 | fi | ||
24808 | if test -n "$conf_utmp_location"; then | ||
24809 | cat >>confdefs.h <<_ACEOF | ||
24810 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
24811 | _ACEOF | ||
24812 | |||
24813 | fi | ||
24814 | |||
24815 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
24816 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
24817 | cat >conftest.$ac_ext <<_ACEOF | ||
24818 | /* confdefs.h. */ | ||
24819 | _ACEOF | ||
24820 | cat confdefs.h >>conftest.$ac_ext | ||
24821 | cat >>conftest.$ac_ext <<_ACEOF | ||
24822 | /* end confdefs.h. */ | ||
24823 | |||
24824 | #include <sys/types.h> | ||
24825 | #include <utmp.h> | ||
24826 | #ifdef HAVE_PATHS_H | ||
24827 | # include <paths.h> | ||
24828 | #endif | ||
24829 | |||
24830 | int | ||
24831 | main () | ||
24832 | { | ||
24833 | char *wtmp = WTMP_FILE; | ||
24834 | ; | ||
24835 | return 0; | ||
24836 | } | ||
24837 | _ACEOF | ||
24838 | rm -f conftest.$ac_objext | ||
24839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24840 | (eval $ac_compile) 2>conftest.er1 | ||
24841 | ac_status=$? | ||
24842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24843 | rm -f conftest.er1 | ||
24844 | cat conftest.err >&5 | ||
24845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24846 | (exit $ac_status); } && | ||
24847 | { ac_try='test -z "$ac_c_werror_flag" | ||
24848 | || test ! -s conftest.err' | ||
24849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24850 | (eval $ac_try) 2>&5 | ||
24851 | ac_status=$? | ||
24852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24853 | (exit $ac_status); }; } && | ||
24854 | { ac_try='test -s conftest.$ac_objext' | ||
24855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24856 | (eval $ac_try) 2>&5 | ||
24857 | ac_status=$? | ||
24858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24859 | (exit $ac_status); }; }; then | ||
24860 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24861 | echo "${ECHO_T}yes" >&6 | ||
24862 | else | ||
24863 | echo "$as_me: failed program was:" >&5 | ||
24864 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24865 | |||
24866 | echo "$as_me:$LINENO: result: no" >&5 | ||
24867 | echo "${ECHO_T}no" >&6 | ||
24868 | system_wtmp_path=no | ||
24869 | |||
24870 | fi | ||
24871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24872 | if test -z "$conf_wtmp_location"; then | ||
24873 | if test x"$system_wtmp_path" = x"no" ; then | ||
24874 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
24875 | if test -f $f ; then | ||
24876 | conf_wtmp_location=$f | ||
24877 | fi | ||
24878 | done | ||
24879 | if test -z "$conf_wtmp_location"; then | ||
24880 | cat >>confdefs.h <<\_ACEOF | ||
24881 | #define DISABLE_WTMP 1 | ||
24882 | _ACEOF | ||
24883 | |||
24884 | fi | ||
24885 | fi | ||
24886 | fi | ||
24887 | if test -n "$conf_wtmp_location"; then | ||
24888 | cat >>confdefs.h <<_ACEOF | ||
24889 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
24890 | _ACEOF | ||
24891 | |||
24892 | fi | ||
24893 | |||
24894 | |||
24895 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
24896 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
24897 | cat >conftest.$ac_ext <<_ACEOF | ||
24898 | /* confdefs.h. */ | ||
24899 | _ACEOF | ||
24900 | cat confdefs.h >>conftest.$ac_ext | ||
24901 | cat >>conftest.$ac_ext <<_ACEOF | ||
24902 | /* end confdefs.h. */ | ||
24903 | |||
24904 | #include <sys/types.h> | ||
24905 | #include <utmp.h> | ||
24906 | #ifdef HAVE_UTMPX_H | ||
24907 | #include <utmpx.h> | ||
24908 | #endif | ||
24909 | #ifdef HAVE_PATHS_H | ||
24910 | # include <paths.h> | ||
24911 | #endif | ||
24912 | |||
24913 | int | ||
24914 | main () | ||
24915 | { | ||
24916 | char *utmpx = UTMPX_FILE; | ||
24917 | ; | ||
24918 | return 0; | ||
24919 | } | ||
24920 | _ACEOF | ||
24921 | rm -f conftest.$ac_objext | ||
24922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24923 | (eval $ac_compile) 2>conftest.er1 | ||
24924 | ac_status=$? | ||
24925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24926 | rm -f conftest.er1 | ||
24927 | cat conftest.err >&5 | ||
24928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24929 | (exit $ac_status); } && | ||
24930 | { ac_try='test -z "$ac_c_werror_flag" | ||
24931 | || test ! -s conftest.err' | ||
24932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24933 | (eval $ac_try) 2>&5 | ||
24934 | ac_status=$? | ||
24935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24936 | (exit $ac_status); }; } && | ||
24937 | { ac_try='test -s conftest.$ac_objext' | ||
24938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24939 | (eval $ac_try) 2>&5 | ||
24940 | ac_status=$? | ||
24941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24942 | (exit $ac_status); }; }; then | ||
24943 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24944 | echo "${ECHO_T}yes" >&6 | ||
24945 | else | ||
24946 | echo "$as_me: failed program was:" >&5 | ||
24947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24948 | |||
24949 | echo "$as_me:$LINENO: result: no" >&5 | ||
24950 | echo "${ECHO_T}no" >&6 | ||
24951 | system_utmpx_path=no | ||
24952 | |||
24953 | fi | ||
24954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24955 | if test -z "$conf_utmpx_location"; then | ||
24956 | if test x"$system_utmpx_path" = x"no" ; then | ||
24957 | cat >>confdefs.h <<\_ACEOF | ||
24958 | #define DISABLE_UTMPX 1 | ||
24959 | _ACEOF | ||
24960 | |||
24961 | fi | ||
24962 | else | ||
24963 | cat >>confdefs.h <<_ACEOF | ||
24964 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
24965 | _ACEOF | ||
24966 | |||
24967 | fi | ||
24968 | |||
24969 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
24970 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
24971 | cat >conftest.$ac_ext <<_ACEOF | ||
24972 | /* confdefs.h. */ | ||
24973 | _ACEOF | ||
24974 | cat confdefs.h >>conftest.$ac_ext | ||
24975 | cat >>conftest.$ac_ext <<_ACEOF | ||
24976 | /* end confdefs.h. */ | ||
24977 | |||
24978 | #include <sys/types.h> | ||
24979 | #include <utmp.h> | ||
24980 | #ifdef HAVE_UTMPX_H | ||
24981 | #include <utmpx.h> | ||
24982 | #endif | ||
24983 | #ifdef HAVE_PATHS_H | ||
24984 | # include <paths.h> | ||
24985 | #endif | ||
24986 | |||
24987 | int | ||
24988 | main () | ||
24989 | { | ||
24990 | char *wtmpx = WTMPX_FILE; | ||
24991 | ; | ||
24992 | return 0; | ||
24993 | } | ||
24994 | _ACEOF | ||
24995 | rm -f conftest.$ac_objext | ||
24996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24997 | (eval $ac_compile) 2>conftest.er1 | ||
24998 | ac_status=$? | ||
24999 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25000 | rm -f conftest.er1 | ||
25001 | cat conftest.err >&5 | ||
25002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25003 | (exit $ac_status); } && | ||
25004 | { ac_try='test -z "$ac_c_werror_flag" | ||
25005 | || test ! -s conftest.err' | ||
25006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25007 | (eval $ac_try) 2>&5 | ||
25008 | ac_status=$? | ||
25009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25010 | (exit $ac_status); }; } && | ||
25011 | { ac_try='test -s conftest.$ac_objext' | ||
25012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25013 | (eval $ac_try) 2>&5 | ||
25014 | ac_status=$? | ||
25015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25016 | (exit $ac_status); }; }; then | ||
25017 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25018 | echo "${ECHO_T}yes" >&6 | ||
25019 | else | ||
25020 | echo "$as_me: failed program was:" >&5 | ||
25021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25022 | |||
25023 | echo "$as_me:$LINENO: result: no" >&5 | ||
25024 | echo "${ECHO_T}no" >&6 | ||
25025 | system_wtmpx_path=no | ||
25026 | |||
25027 | fi | ||
25028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25029 | if test -z "$conf_wtmpx_location"; then | ||
25030 | if test x"$system_wtmpx_path" = x"no" ; then | ||
25031 | cat >>confdefs.h <<\_ACEOF | ||
25032 | #define DISABLE_WTMPX 1 | ||
25033 | _ACEOF | ||
25034 | |||
25035 | fi | ||
25036 | else | ||
25037 | cat >>confdefs.h <<_ACEOF | ||
25038 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
25039 | _ACEOF | ||
25040 | |||
25041 | fi | ||
25042 | |||
25043 | |||
25044 | if test ! -z "$blibpath" ; then | ||
25045 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
25046 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
25047 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
25048 | fi | ||
25049 | |||
25050 | if test "$PAM_MSG" = yes ; then | ||
25051 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
25052 | fi | ||
25053 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
25054 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
25055 | fi | ||
25056 | |||
25057 | |||
25058 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
25059 | |||
25060 | cat >confcache <<\_ACEOF | ||
25061 | # This file is a shell script that caches the results of configure | ||
25062 | # tests run on this system so they can be shared between configure | ||
25063 | # scripts and configure runs, see configure's option --config-cache. | ||
25064 | # It is not useful on other systems. If it contains results you don't | ||
25065 | # want to keep, you may remove or edit it. | ||
25066 | # | ||
25067 | # config.status only pays attention to the cache file if you give it | ||
25068 | # the --recheck option to rerun configure. | ||
25069 | # | ||
25070 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
25071 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
25072 | # following values. | ||
25073 | |||
25074 | _ACEOF | ||
25075 | |||
25076 | # The following way of writing the cache mishandles newlines in values, | ||
25077 | # but we know of no workaround that is simple, portable, and efficient. | ||
25078 | # So, don't put newlines in cache variables' values. | ||
25079 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
25080 | # and sets the high bit in the cache file unless we assign to the vars. | ||
25081 | { | ||
25082 | (set) 2>&1 | | ||
25083 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
25084 | *ac_space=\ *) | ||
25085 | # `set' does not quote correctly, so add quotes (double-quote | ||
25086 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
25087 | sed -n \ | ||
25088 | "s/'/'\\\\''/g; | ||
25089 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
25090 | ;; | ||
25091 | *) | ||
25092 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
25093 | sed -n \ | ||
25094 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
25095 | ;; | ||
25096 | esac; | ||
25097 | } | | ||
25098 | sed ' | ||
25099 | t clear | ||
25100 | : clear | ||
25101 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
25102 | t end | ||
25103 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
25104 | : end' >>confcache | ||
25105 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
25106 | if test -w $cache_file; then | ||
25107 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
25108 | cat confcache >$cache_file | ||
25109 | else | ||
25110 | echo "not updating unwritable cache $cache_file" | ||
25111 | fi | ||
25112 | fi | ||
25113 | rm -f confcache | ||
25114 | |||
25115 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
25116 | # Let make expand exec_prefix. | ||
25117 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
25118 | |||
25119 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
25120 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
25121 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
25122 | # (actually we leave an empty line to preserve line numbers). | ||
25123 | if test "x$srcdir" = x.; then | ||
25124 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
25125 | s/:*\$(srcdir):*/:/; | ||
25126 | s/:*\${srcdir}:*/:/; | ||
25127 | s/:*@srcdir@:*/:/; | ||
25128 | s/^\([^=]*=[ ]*\):*/\1/; | ||
25129 | s/:*$//; | ||
25130 | s/^[^=]*=[ ]*$//; | ||
25131 | }' | ||
25132 | fi | ||
25133 | |||
25134 | DEFS=-DHAVE_CONFIG_H | ||
25135 | |||
25136 | ac_libobjs= | ||
25137 | ac_ltlibobjs= | ||
25138 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
25139 | # 1. Remove the extension, and $U if already installed. | ||
25140 | ac_i=`echo "$ac_i" | | ||
25141 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
25142 | # 2. Add them. | ||
25143 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
25144 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
25145 | done | ||
25146 | LIBOBJS=$ac_libobjs | ||
25147 | |||
25148 | LTLIBOBJS=$ac_ltlibobjs | ||
25149 | |||
25150 | |||
25151 | |||
25152 | : ${CONFIG_STATUS=./config.status} | ||
25153 | ac_clean_files_save=$ac_clean_files | ||
25154 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
25155 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
25156 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
25157 | cat >$CONFIG_STATUS <<_ACEOF | ||
25158 | #! $SHELL | ||
25159 | # Generated by $as_me. | ||
25160 | # Run this file to recreate the current configuration. | ||
25161 | # Compiler output produced by configure, useful for debugging | ||
25162 | # configure, is in config.log if it exists. | ||
25163 | |||
25164 | debug=false | ||
25165 | ac_cs_recheck=false | ||
25166 | ac_cs_silent=false | ||
25167 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
25168 | _ACEOF | ||
25169 | |||
25170 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25171 | ## --------------------- ## | ||
25172 | ## M4sh Initialization. ## | ||
25173 | ## --------------------- ## | ||
25174 | |||
25175 | # Be Bourne compatible | ||
25176 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
25177 | emulate sh | ||
25178 | NULLCMD=: | ||
25179 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
25180 | # is contrary to our usage. Disable this feature. | ||
25181 | alias -g '${1+"$@"}'='"$@"' | ||
25182 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
25183 | set -o posix | ||
25184 | fi | ||
25185 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25186 | |||
25187 | # Support unset when possible. | ||
25188 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
25189 | as_unset=unset | ||
25190 | else | ||
25191 | as_unset=false | ||
25192 | fi | ||
25193 | |||
25194 | |||
25195 | # Work around bugs in pre-3.0 UWIN ksh. | ||
25196 | $as_unset ENV MAIL MAILPATH | ||
25197 | PS1='$ ' | ||
25198 | PS2='> ' | ||
25199 | PS4='+ ' | ||
25200 | |||
25201 | # NLS nuisances. | ||
25202 | for as_var in \ | ||
25203 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
25204 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
25205 | LC_TELEPHONE LC_TIME | ||
25206 | do | ||
25207 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
25208 | eval $as_var=C; export $as_var | ||
25209 | else | ||
25210 | $as_unset $as_var | ||
25211 | fi | ||
25212 | done | ||
25213 | |||
25214 | # Required to use basename. | ||
25215 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25216 | as_expr=expr | ||
25217 | else | ||
25218 | as_expr=false | ||
25219 | fi | ||
25220 | |||
25221 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
25222 | as_basename=basename | ||
25223 | else | ||
25224 | as_basename=false | ||
25225 | fi | ||
25226 | |||
25227 | |||
25228 | # Name of the executable. | ||
25229 | as_me=`$as_basename "$0" || | ||
25230 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
25231 | X"$0" : 'X\(//\)$' \| \ | ||
25232 | X"$0" : 'X\(/\)$' \| \ | ||
25233 | . : '\(.\)' 2>/dev/null || | ||
25234 | echo X/"$0" | | ||
25235 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
25236 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
25237 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
25238 | s/.*/./; q'` | ||
25239 | |||
25240 | |||
25241 | # PATH needs CR, and LINENO needs CR and PATH. | ||
25242 | # Avoid depending upon Character Ranges. | ||
25243 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
25244 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
25245 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
25246 | as_cr_digits='0123456789' | ||
25247 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
25248 | |||
25249 | # The user is always right. | ||
25250 | if test "${PATH_SEPARATOR+set}" != set; then | ||
25251 | echo "#! /bin/sh" >conf$$.sh | ||
25252 | echo "exit 0" >>conf$$.sh | ||
25253 | chmod +x conf$$.sh | ||
25254 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
25255 | PATH_SEPARATOR=';' | ||
25256 | else | ||
25257 | PATH_SEPARATOR=: | ||
25258 | fi | ||
25259 | rm -f conf$$.sh | ||
25260 | fi | ||
25261 | |||
25262 | |||
25263 | as_lineno_1=$LINENO | ||
25264 | as_lineno_2=$LINENO | ||
25265 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25266 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25267 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
25268 | # Find who we are. Look in the path if we contain no path at all | ||
25269 | # relative or not. | ||
25270 | case $0 in | ||
25271 | *[\\/]* ) as_myself=$0 ;; | ||
25272 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25273 | for as_dir in $PATH | ||
25274 | do | ||
25275 | IFS=$as_save_IFS | ||
25276 | test -z "$as_dir" && as_dir=. | ||
25277 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
25278 | done | ||
25279 | |||
25280 | ;; | ||
25281 | esac | ||
25282 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
25283 | # in which case we are not to be found in the path. | ||
25284 | if test "x$as_myself" = x; then | ||
25285 | as_myself=$0 | ||
25286 | fi | ||
25287 | if test ! -f "$as_myself"; then | ||
25288 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
25289 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
25290 | { (exit 1); exit 1; }; } | ||
25291 | fi | ||
25292 | case $CONFIG_SHELL in | ||
25293 | '') | ||
25294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25295 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
25296 | do | ||
25297 | IFS=$as_save_IFS | ||
25298 | test -z "$as_dir" && as_dir=. | ||
25299 | for as_base in sh bash ksh sh5; do | ||
25300 | case $as_dir in | ||
25301 | /*) | ||
25302 | if ("$as_dir/$as_base" -c ' | ||
25303 | as_lineno_1=$LINENO | ||
25304 | as_lineno_2=$LINENO | ||
25305 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25306 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25307 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
25308 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
25309 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
25310 | CONFIG_SHELL=$as_dir/$as_base | ||
25311 | export CONFIG_SHELL | ||
25312 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
25313 | fi;; | ||
25314 | esac | ||
25315 | done | ||
25316 | done | ||
25317 | ;; | ||
25318 | esac | ||
25319 | |||
25320 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
25321 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
25322 | # line-number line before each line; the second 'sed' does the real | ||
25323 | # work. The second script uses 'N' to pair each line-number line | ||
25324 | # with the numbered line, and appends trailing '-' during | ||
25325 | # substitution so that $LINENO is not a special case at line end. | ||
25326 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
25327 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
25328 | sed '=' <$as_myself | | ||
25329 | sed ' | ||
25330 | N | ||
25331 | s,$,-, | ||
25332 | : loop | ||
25333 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
25334 | t loop | ||
25335 | s,-$,, | ||
25336 | s,^['$as_cr_digits']*\n,, | ||
25337 | ' >$as_me.lineno && | ||
25338 | chmod +x $as_me.lineno || | ||
25339 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
25340 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
25341 | { (exit 1); exit 1; }; } | ||
25342 | |||
25343 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
25344 | # (the dirname of $[0] is not the place where we might find the | ||
25345 | # original and so on. Autoconf is especially sensible to this). | ||
25346 | . ./$as_me.lineno | ||
25347 | # Exit status is that of the last command. | ||
25348 | exit | ||
25349 | } | ||
25350 | |||
25351 | |||
25352 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
25353 | *c*,-n*) ECHO_N= ECHO_C=' | ||
25354 | ' ECHO_T=' ' ;; | ||
25355 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
25356 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
25357 | esac | ||
25358 | |||
25359 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25360 | as_expr=expr | ||
25361 | else | ||
25362 | as_expr=false | ||
25363 | fi | ||
25364 | |||
25365 | rm -f conf$$ conf$$.exe conf$$.file | ||
25366 | echo >conf$$.file | ||
25367 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
25368 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
25369 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
25370 | if test -f conf$$.exe; then | ||
25371 | # Don't use ln at all; we don't have any links | ||
25372 | as_ln_s='cp -p' | ||
25373 | else | ||
25374 | as_ln_s='ln -s' | ||
25375 | fi | ||
25376 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
25377 | as_ln_s=ln | ||
25378 | else | ||
25379 | as_ln_s='cp -p' | ||
25380 | fi | ||
25381 | rm -f conf$$ conf$$.exe conf$$.file | ||
25382 | |||
25383 | if mkdir -p . 2>/dev/null; then | ||
25384 | as_mkdir_p=: | ||
25385 | else | ||
25386 | test -d ./-p && rmdir ./-p | ||
25387 | as_mkdir_p=false | ||
25388 | fi | ||
25389 | |||
25390 | as_executable_p="test -f" | ||
25391 | |||
25392 | # Sed expression to map a string onto a valid CPP name. | ||
25393 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
25394 | |||
25395 | # Sed expression to map a string onto a valid variable name. | ||
25396 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
25397 | |||
25398 | |||
25399 | # IFS | ||
25400 | # We need space, tab and new line, in precisely that order. | ||
25401 | as_nl=' | ||
25402 | ' | ||
25403 | IFS=" $as_nl" | ||
25404 | |||
25405 | # CDPATH. | ||
25406 | $as_unset CDPATH | ||
25407 | |||
25408 | exec 6>&1 | ||
25409 | |||
25410 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
25411 | # report actual input values of CONFIG_FILES etc. instead of their | ||
25412 | # values after options handling. Logging --version etc. is OK. | ||
25413 | exec 5>>config.log | ||
25414 | { | ||
25415 | echo | ||
25416 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
25417 | ## Running $as_me. ## | ||
25418 | _ASBOX | ||
25419 | } >&5 | ||
25420 | cat >&5 <<_CSEOF | ||
25421 | |||
25422 | This file was extended by OpenSSH $as_me Portable, which was | ||
25423 | generated by GNU Autoconf 2.59. Invocation command line was | ||
25424 | |||
25425 | CONFIG_FILES = $CONFIG_FILES | ||
25426 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
25427 | CONFIG_LINKS = $CONFIG_LINKS | ||
25428 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
25429 | $ $0 $@ | ||
25430 | |||
25431 | _CSEOF | ||
25432 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
25433 | echo >&5 | ||
25434 | _ACEOF | ||
25435 | |||
25436 | # Files that config.status was made for. | ||
25437 | if test -n "$ac_config_files"; then | ||
25438 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
25439 | fi | ||
25440 | |||
25441 | if test -n "$ac_config_headers"; then | ||
25442 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
25443 | fi | ||
25444 | |||
25445 | if test -n "$ac_config_links"; then | ||
25446 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
25447 | fi | ||
25448 | |||
25449 | if test -n "$ac_config_commands"; then | ||
25450 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
25451 | fi | ||
25452 | |||
25453 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25454 | |||
25455 | ac_cs_usage="\ | ||
25456 | \`$as_me' instantiates files from templates according to the | ||
25457 | current configuration. | ||
25458 | |||
25459 | Usage: $0 [OPTIONS] [FILE]... | ||
25460 | |||
25461 | -h, --help print this help, then exit | ||
25462 | -V, --version print version number, then exit | ||
25463 | -q, --quiet do not print progress messages | ||
25464 | -d, --debug don't remove temporary files | ||
25465 | --recheck update $as_me by reconfiguring in the same conditions | ||
25466 | --file=FILE[:TEMPLATE] | ||
25467 | instantiate the configuration file FILE | ||
25468 | --header=FILE[:TEMPLATE] | ||
25469 | instantiate the configuration header FILE | ||
25470 | |||
25471 | Configuration files: | ||
25472 | $config_files | ||
25473 | |||
25474 | Configuration headers: | ||
25475 | $config_headers | ||
25476 | |||
25477 | Report bugs to <bug-autoconf@gnu.org>." | ||
25478 | _ACEOF | ||
25479 | |||
25480 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25481 | ac_cs_version="\\ | ||
25482 | OpenSSH config.status Portable | ||
25483 | configured by $0, generated by GNU Autoconf 2.59, | ||
25484 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
25485 | |||
25486 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
25487 | This config.status script is free software; the Free Software Foundation | ||
25488 | gives unlimited permission to copy, distribute and modify it." | ||
25489 | srcdir=$srcdir | ||
25490 | INSTALL="$INSTALL" | ||
25491 | _ACEOF | ||
25492 | |||
25493 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25494 | # If no file are specified by the user, then we need to provide default | ||
25495 | # value. By we need to know if files were specified by the user. | ||
25496 | ac_need_defaults=: | ||
25497 | while test $# != 0 | ||
25498 | do | ||
25499 | case $1 in | ||
25500 | --*=*) | ||
25501 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
25502 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
25503 | ac_shift=: | ||
25504 | ;; | ||
25505 | -*) | ||
25506 | ac_option=$1 | ||
25507 | ac_optarg=$2 | ||
25508 | ac_shift=shift | ||
25509 | ;; | ||
25510 | *) # This is not an option, so the user has probably given explicit | ||
25511 | # arguments. | ||
25512 | ac_option=$1 | ||
25513 | ac_need_defaults=false;; | ||
25514 | esac | ||
25515 | |||
25516 | case $ac_option in | ||
25517 | # Handling of the options. | ||
25518 | _ACEOF | ||
25519 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25520 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
25521 | ac_cs_recheck=: ;; | ||
25522 | --version | --vers* | -V ) | ||
25523 | echo "$ac_cs_version"; exit 0 ;; | ||
25524 | --he | --h) | ||
25525 | # Conflict between --help and --header | ||
25526 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
25527 | Try \`$0 --help' for more information." >&5 | ||
25528 | echo "$as_me: error: ambiguous option: $1 | ||
25529 | Try \`$0 --help' for more information." >&2;} | ||
25530 | { (exit 1); exit 1; }; };; | ||
25531 | --help | --hel | -h ) | ||
25532 | echo "$ac_cs_usage"; exit 0 ;; | ||
25533 | --debug | --d* | -d ) | ||
25534 | debug=: ;; | ||
25535 | --file | --fil | --fi | --f ) | ||
25536 | $ac_shift | ||
25537 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
25538 | ac_need_defaults=false;; | ||
25539 | --header | --heade | --head | --hea ) | ||
25540 | $ac_shift | ||
25541 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
25542 | ac_need_defaults=false;; | ||
25543 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
25544 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
25545 | ac_cs_silent=: ;; | ||
25546 | |||
25547 | # This is an error. | ||
25548 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
25549 | Try \`$0 --help' for more information." >&5 | ||
25550 | echo "$as_me: error: unrecognized option: $1 | ||
25551 | Try \`$0 --help' for more information." >&2;} | ||
25552 | { (exit 1); exit 1; }; } ;; | ||
25553 | |||
25554 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
25555 | |||
25556 | esac | ||
25557 | shift | ||
25558 | done | ||
25559 | |||
25560 | ac_configure_extra_args= | ||
25561 | |||
25562 | if $ac_cs_silent; then | ||
25563 | exec 6>/dev/null | ||
25564 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
25565 | fi | ||
25566 | |||
25567 | _ACEOF | ||
25568 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25569 | if \$ac_cs_recheck; then | ||
25570 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
25571 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
25572 | fi | ||
25573 | |||
25574 | _ACEOF | ||
25575 | |||
25576 | |||
25577 | |||
25578 | |||
25579 | |||
25580 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25581 | for ac_config_target in $ac_config_targets | ||
25582 | do | ||
25583 | case "$ac_config_target" in | ||
25584 | # Handling of arguments. | ||
25585 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
25586 | "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
25587 | "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
25588 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
25589 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
25590 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
25591 | "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
25592 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
25593 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
25594 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
25595 | { (exit 1); exit 1; }; };; | ||
25596 | esac | ||
25597 | done | ||
25598 | |||
25599 | # If the user did not use the arguments to specify the items to instantiate, | ||
25600 | # then the envvar interface is used. Set only those that are not. | ||
25601 | # We use the long form for the default assignment because of an extremely | ||
25602 | # bizarre bug on SunOS 4.1.3. | ||
25603 | if $ac_need_defaults; then | ||
25604 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
25605 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
25606 | fi | ||
25607 | |||
25608 | # Have a temporary directory for convenience. Make it in the build tree | ||
25609 | # simply because there is no reason to put it here, and in addition, | ||
25610 | # creating and moving files from /tmp can sometimes cause problems. | ||
25611 | # Create a temporary directory, and hook for its removal unless debugging. | ||
25612 | $debug || | ||
25613 | { | ||
25614 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
25615 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
25616 | } | ||
25617 | |||
25618 | # Create a (secure) tmp directory for tmp files. | ||
25619 | |||
25620 | { | ||
25621 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
25622 | test -n "$tmp" && test -d "$tmp" | ||
25623 | } || | ||
25624 | { | ||
25625 | tmp=./confstat$$-$RANDOM | ||
25626 | (umask 077 && mkdir $tmp) | ||
25627 | } || | ||
25628 | { | ||
25629 | echo "$me: cannot create a temporary directory in ." >&2 | ||
25630 | { (exit 1); exit 1; } | ||
25631 | } | ||
25632 | |||
25633 | _ACEOF | ||
25634 | |||
25635 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25636 | |||
25637 | # | ||
25638 | # CONFIG_FILES section. | ||
25639 | # | ||
25640 | |||
25641 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
25642 | # This happens for instance when ./config.status config.h | ||
25643 | if test -n "\$CONFIG_FILES"; then | ||
25644 | # Protect against being on the right side of a sed subst in config.status. | ||
25645 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
25646 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
25647 | s,@SHELL@,$SHELL,;t t | ||
25648 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
25649 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
25650 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
25651 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
25652 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
25653 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
25654 | s,@exec_prefix@,$exec_prefix,;t t | ||
25655 | s,@prefix@,$prefix,;t t | ||
25656 | s,@program_transform_name@,$program_transform_name,;t t | ||
25657 | s,@bindir@,$bindir,;t t | ||
25658 | s,@sbindir@,$sbindir,;t t | ||
25659 | s,@libexecdir@,$libexecdir,;t t | ||
25660 | s,@datadir@,$datadir,;t t | ||
25661 | s,@sysconfdir@,$sysconfdir,;t t | ||
25662 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
25663 | s,@localstatedir@,$localstatedir,;t t | ||
25664 | s,@libdir@,$libdir,;t t | ||
25665 | s,@includedir@,$includedir,;t t | ||
25666 | s,@oldincludedir@,$oldincludedir,;t t | ||
25667 | s,@infodir@,$infodir,;t t | ||
25668 | s,@mandir@,$mandir,;t t | ||
25669 | s,@build_alias@,$build_alias,;t t | ||
25670 | s,@host_alias@,$host_alias,;t t | ||
25671 | s,@target_alias@,$target_alias,;t t | ||
25672 | s,@DEFS@,$DEFS,;t t | ||
25673 | s,@ECHO_C@,$ECHO_C,;t t | ||
25674 | s,@ECHO_N@,$ECHO_N,;t t | ||
25675 | s,@ECHO_T@,$ECHO_T,;t t | ||
25676 | s,@LIBS@,$LIBS,;t t | ||
25677 | s,@CC@,$CC,;t t | ||
25678 | s,@CFLAGS@,$CFLAGS,;t t | ||
25679 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
25680 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
25681 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
25682 | s,@EXEEXT@,$EXEEXT,;t t | ||
25683 | s,@OBJEXT@,$OBJEXT,;t t | ||
25684 | s,@build@,$build,;t t | ||
25685 | s,@build_cpu@,$build_cpu,;t t | ||
25686 | s,@build_vendor@,$build_vendor,;t t | ||
25687 | s,@build_os@,$build_os,;t t | ||
25688 | s,@host@,$host,;t t | ||
25689 | s,@host_cpu@,$host_cpu,;t t | ||
25690 | s,@host_vendor@,$host_vendor,;t t | ||
25691 | s,@host_os@,$host_os,;t t | ||
25692 | s,@AWK@,$AWK,;t t | ||
25693 | s,@CPP@,$CPP,;t t | ||
25694 | s,@RANLIB@,$RANLIB,;t t | ||
25695 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
25696 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
25697 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
25698 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
25699 | s,@AR@,$AR,;t t | ||
25700 | s,@CAT@,$CAT,;t t | ||
25701 | s,@KILL@,$KILL,;t t | ||
25702 | s,@PERL@,$PERL,;t t | ||
25703 | s,@SED@,$SED,;t t | ||
25704 | s,@ENT@,$ENT,;t t | ||
25705 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
25706 | s,@SH@,$SH,;t t | ||
25707 | s,@TEST_SHELL@,$TEST_SHELL,;t t | ||
25708 | s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t | ||
25709 | s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t | ||
25710 | s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t | ||
25711 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
25712 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
25713 | s,@LD@,$LD,;t t | ||
25714 | s,@EGREP@,$EGREP,;t t | ||
25715 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
25716 | s,@LIBEDIT@,$LIBEDIT,;t t | ||
25717 | s,@LIBPAM@,$LIBPAM,;t t | ||
25718 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
25719 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
25720 | s,@PROG_LS@,$PROG_LS,;t t | ||
25721 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
25722 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
25723 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
25724 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
25725 | s,@PROG_PS@,$PROG_PS,;t t | ||
25726 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
25727 | s,@PROG_W@,$PROG_W,;t t | ||
25728 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
25729 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
25730 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
25731 | s,@PROG_DF@,$PROG_DF,;t t | ||
25732 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
25733 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
25734 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
25735 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
25736 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
25737 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
25738 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
25739 | s,@xauth_path@,$xauth_path,;t t | ||
25740 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
25741 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
25742 | s,@NROFF@,$NROFF,;t t | ||
25743 | s,@MANTYPE@,$MANTYPE,;t t | ||
25744 | s,@mansubdir@,$mansubdir,;t t | ||
25745 | s,@user_path@,$user_path,;t t | ||
25746 | s,@piddir@,$piddir,;t t | ||
25747 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
25748 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
25749 | CEOF | ||
25750 | |||
25751 | _ACEOF | ||
25752 | |||
25753 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25754 | # Split the substitutions into bite-sized pieces for seds with | ||
25755 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
25756 | ac_max_sed_lines=48 | ||
25757 | ac_sed_frag=1 # Number of current file. | ||
25758 | ac_beg=1 # First line for current file. | ||
25759 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
25760 | ac_more_lines=: | ||
25761 | ac_sed_cmds= | ||
25762 | while $ac_more_lines; do | ||
25763 | if test $ac_beg -gt 1; then | ||
25764 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
25765 | else | ||
25766 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
25767 | fi | ||
25768 | if test ! -s $tmp/subs.frag; then | ||
25769 | ac_more_lines=false | ||
25770 | else | ||
25771 | # The purpose of the label and of the branching condition is to | ||
25772 | # speed up the sed processing (if there are no `@' at all, there | ||
25773 | # is no need to browse any of the substitutions). | ||
25774 | # These are the two extra sed commands mentioned above. | ||
25775 | (echo ':t | ||
25776 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
25777 | if test -z "$ac_sed_cmds"; then | ||
25778 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
25779 | else | ||
25780 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
25781 | fi | ||
25782 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
25783 | ac_beg=$ac_end | ||
25784 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
25785 | fi | ||
25786 | done | ||
25787 | if test -z "$ac_sed_cmds"; then | ||
25788 | ac_sed_cmds=cat | ||
25789 | fi | ||
25790 | fi # test -n "$CONFIG_FILES" | ||
25791 | |||
25792 | _ACEOF | ||
25793 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25794 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
25795 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
25796 | case $ac_file in | ||
25797 | - | *:- | *:-:* ) # input from stdin | ||
25798 | cat >$tmp/stdin | ||
25799 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25800 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25801 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
25802 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
25803 | * ) ac_file_in=$ac_file.in ;; | ||
25804 | esac | ||
25805 | |||
25806 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
25807 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
25808 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25809 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
25810 | X"$ac_file" : 'X\(//\)$' \| \ | ||
25811 | X"$ac_file" : 'X\(/\)' \| \ | ||
25812 | . : '\(.\)' 2>/dev/null || | ||
25813 | echo X"$ac_file" | | ||
25814 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25815 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25816 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25817 | /^X\(\/\).*/{ s//\1/; q; } | ||
25818 | s/.*/./; q'` | ||
25819 | { if $as_mkdir_p; then | ||
25820 | mkdir -p "$ac_dir" | ||
25821 | else | ||
25822 | as_dir="$ac_dir" | ||
25823 | as_dirs= | ||
25824 | while test ! -d "$as_dir"; do | ||
25825 | as_dirs="$as_dir $as_dirs" | ||
25826 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
25827 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25828 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
25829 | X"$as_dir" : 'X\(//\)$' \| \ | ||
25830 | X"$as_dir" : 'X\(/\)' \| \ | ||
25831 | . : '\(.\)' 2>/dev/null || | ||
25832 | echo X"$as_dir" | | ||
25833 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25834 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25835 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25836 | /^X\(\/\).*/{ s//\1/; q; } | ||
25837 | s/.*/./; q'` | ||
25838 | done | ||
25839 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
25840 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
25841 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
25842 | { (exit 1); exit 1; }; }; } | ||
25843 | |||
25844 | ac_builddir=. | ||
25845 | |||
25846 | if test "$ac_dir" != .; then | ||
25847 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
25848 | # A "../" for each directory in $ac_dir_suffix. | ||
25849 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
25850 | else | ||
25851 | ac_dir_suffix= ac_top_builddir= | ||
25852 | fi | ||
25853 | |||
25854 | case $srcdir in | ||
25855 | .) # No --srcdir option. We are building in place. | ||
25856 | ac_srcdir=. | ||
25857 | if test -z "$ac_top_builddir"; then | ||
25858 | ac_top_srcdir=. | ||
25859 | else | ||
25860 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
25861 | fi ;; | ||
25862 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
25863 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
25864 | ac_top_srcdir=$srcdir ;; | ||
25865 | *) # Relative path. | ||
25866 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
25867 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
25868 | esac | ||
25869 | |||
25870 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
25871 | # the directories may not exist. | ||
25872 | case `pwd` in | ||
25873 | .) ac_abs_builddir="$ac_dir";; | ||
25874 | *) | ||
25875 | case "$ac_dir" in | ||
25876 | .) ac_abs_builddir=`pwd`;; | ||
25877 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
25878 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
25879 | esac;; | ||
25880 | esac | ||
25881 | case $ac_abs_builddir in | ||
25882 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
25883 | *) | ||
25884 | case ${ac_top_builddir}. in | ||
25885 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
25886 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
25887 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
25888 | esac;; | ||
25889 | esac | ||
25890 | case $ac_abs_builddir in | ||
25891 | .) ac_abs_srcdir=$ac_srcdir;; | ||
25892 | *) | ||
25893 | case $ac_srcdir in | ||
25894 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
25895 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
25896 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
25897 | esac;; | ||
25898 | esac | ||
25899 | case $ac_abs_builddir in | ||
25900 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
25901 | *) | ||
25902 | case $ac_top_srcdir in | ||
25903 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
25904 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
25905 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
25906 | esac;; | ||
25907 | esac | ||
25908 | |||
25909 | |||
25910 | case $INSTALL in | ||
25911 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
25912 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
25913 | esac | ||
25914 | |||
25915 | if test x"$ac_file" != x-; then | ||
25916 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
25917 | echo "$as_me: creating $ac_file" >&6;} | ||
25918 | rm -f "$ac_file" | ||
25919 | fi | ||
25920 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
25921 | # use $as_me), people would be surprised to read: | ||
25922 | # /* config.h. Generated by config.status. */ | ||
25923 | if test x"$ac_file" = x-; then | ||
25924 | configure_input= | ||
25925 | else | ||
25926 | configure_input="$ac_file. " | ||
25927 | fi | ||
25928 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
25929 | sed 's,.*/,,'` by configure." | ||
25930 | |||
25931 | # First look for the input files in the build tree, otherwise in the | ||
25932 | # src tree. | ||
25933 | ac_file_inputs=`IFS=: | ||
25934 | for f in $ac_file_in; do | ||
25935 | case $f in | ||
25936 | -) echo $tmp/stdin ;; | ||
25937 | [\\/$]*) | ||
25938 | # Absolute (can't be DOS-style, as IFS=:) | ||
25939 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25940 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25941 | { (exit 1); exit 1; }; } | ||
25942 | echo "$f";; | ||
25943 | *) # Relative | ||
25944 | if test -f "$f"; then | ||
25945 | # Build tree | ||
25946 | echo "$f" | ||
25947 | elif test -f "$srcdir/$f"; then | ||
25948 | # Source tree | ||
25949 | echo "$srcdir/$f" | ||
25950 | else | ||
25951 | # /dev/null tree | ||
25952 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
25953 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
25954 | { (exit 1); exit 1; }; } | ||
25955 | fi;; | ||
25956 | esac | ||
25957 | done` || { (exit 1); exit 1; } | ||
25958 | _ACEOF | ||
25959 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25960 | sed "$ac_vpsub | ||
25961 | $extrasub | ||
25962 | _ACEOF | ||
25963 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25964 | :t | ||
25965 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
25966 | s,@configure_input@,$configure_input,;t t | ||
25967 | s,@srcdir@,$ac_srcdir,;t t | ||
25968 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
25969 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
25970 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
25971 | s,@builddir@,$ac_builddir,;t t | ||
25972 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
25973 | s,@top_builddir@,$ac_top_builddir,;t t | ||
25974 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
25975 | s,@INSTALL@,$ac_INSTALL,;t t | ||
25976 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
25977 | rm -f $tmp/stdin | ||
25978 | if test x"$ac_file" != x-; then | ||
25979 | mv $tmp/out $ac_file | ||
25980 | else | ||
25981 | cat $tmp/out | ||
25982 | rm -f $tmp/out | ||
25983 | fi | ||
25984 | |||
25985 | done | ||
25986 | _ACEOF | ||
25987 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25988 | |||
25989 | # | ||
25990 | # CONFIG_HEADER section. | ||
25991 | # | ||
25992 | |||
25993 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
25994 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
25995 | # | ||
25996 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
25997 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
25998 | ac_dB='[ ].*$,\1#\2' | ||
25999 | ac_dC=' ' | ||
26000 | ac_dD=',;t' | ||
26001 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
26002 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
26003 | ac_uB='$,\1#\2define\3' | ||
26004 | ac_uC=' ' | ||
26005 | ac_uD=',;t' | ||
26006 | |||
26007 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
26008 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
26009 | case $ac_file in | ||
26010 | - | *:- | *:-:* ) # input from stdin | ||
26011 | cat >$tmp/stdin | ||
26012 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26013 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26014 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26015 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26016 | * ) ac_file_in=$ac_file.in ;; | ||
26017 | esac | ||
26018 | |||
26019 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
26020 | echo "$as_me: creating $ac_file" >&6;} | ||
26021 | |||
26022 | # First look for the input files in the build tree, otherwise in the | ||
26023 | # src tree. | ||
26024 | ac_file_inputs=`IFS=: | ||
26025 | for f in $ac_file_in; do | ||
26026 | case $f in | ||
26027 | -) echo $tmp/stdin ;; | ||
26028 | [\\/$]*) | ||
26029 | # Absolute (can't be DOS-style, as IFS=:) | ||
26030 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26031 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26032 | { (exit 1); exit 1; }; } | ||
26033 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
26034 | echo "$f";; | ||
26035 | *) # Relative | ||
26036 | if test -f "$f"; then | ||
26037 | # Build tree | ||
26038 | echo "$f" | ||
26039 | elif test -f "$srcdir/$f"; then | ||
26040 | # Source tree | ||
26041 | echo "$srcdir/$f" | ||
26042 | else | ||
26043 | # /dev/null tree | ||
26044 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26045 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26046 | { (exit 1); exit 1; }; } | ||
26047 | fi;; | ||
26048 | esac | ||
26049 | done` || { (exit 1); exit 1; } | ||
26050 | # Remove the trailing spaces. | ||
26051 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
26052 | |||
26053 | _ACEOF | ||
26054 | |||
26055 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
26056 | # `conftest.undefs', that substitutes the proper values into | ||
26057 | # config.h.in to produce config.h. The first handles `#define' | ||
26058 | # templates, and the second `#undef' templates. | ||
26059 | # And first: Protect against being on the right side of a sed subst in | ||
26060 | # config.status. Protect against being in an unquoted here document | ||
26061 | # in config.status. | ||
26062 | rm -f conftest.defines conftest.undefs | ||
26063 | # Using a here document instead of a string reduces the quoting nightmare. | ||
26064 | # Putting comments in sed scripts is not portable. | ||
26065 | # | ||
26066 | # `end' is used to avoid that the second main sed command (meant for | ||
26067 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
26068 | # See the Autoconf documentation for `clear'. | ||
26069 | cat >confdef2sed.sed <<\_ACEOF | ||
26070 | s/[\\&,]/\\&/g | ||
26071 | s,[\\$`],\\&,g | ||
26072 | t clear | ||
26073 | : clear | ||
26074 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
26075 | t end | ||
26076 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
26077 | : end | ||
26078 | _ACEOF | ||
26079 | # If some macros were called several times there might be several times | ||
26080 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
26081 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
26082 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
26083 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
26084 | rm -f confdef2sed.sed | ||
26085 | |||
26086 | # This sed command replaces #undef with comments. This is necessary, for | ||
26087 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
26088 | # on some systems where configure will not decide to define it. | ||
26089 | cat >>conftest.undefs <<\_ACEOF | ||
26090 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
26091 | _ACEOF | ||
26092 | |||
26093 | # Break up conftest.defines because some shells have a limit on the size | ||
26094 | # of here documents, and old seds have small limits too (100 cmds). | ||
26095 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
26096 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
26097 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
26098 | echo ' :' >>$CONFIG_STATUS | ||
26099 | rm -f conftest.tail | ||
26100 | while grep . conftest.defines >/dev/null | ||
26101 | do | ||
26102 | # Write a limited-size here document to $tmp/defines.sed. | ||
26103 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
26104 | # Speed up: don't consider the non `#define' lines. | ||
26105 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
26106 | # Work around the forget-to-reset-the-flag bug. | ||
26107 | echo 't clr' >>$CONFIG_STATUS | ||
26108 | echo ': clr' >>$CONFIG_STATUS | ||
26109 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
26110 | echo 'CEOF | ||
26111 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
26112 | rm -f $tmp/in | ||
26113 | mv $tmp/out $tmp/in | ||
26114 | ' >>$CONFIG_STATUS | ||
26115 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
26116 | rm -f conftest.defines | ||
26117 | mv conftest.tail conftest.defines | ||
26118 | done | ||
26119 | rm -f conftest.defines | ||
26120 | echo ' fi # grep' >>$CONFIG_STATUS | ||
26121 | echo >>$CONFIG_STATUS | ||
26122 | |||
26123 | # Break up conftest.undefs because some shells have a limit on the size | ||
26124 | # of here documents, and old seds have small limits too (100 cmds). | ||
26125 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
26126 | rm -f conftest.tail | ||
26127 | while grep . conftest.undefs >/dev/null | ||
26128 | do | ||
26129 | # Write a limited-size here document to $tmp/undefs.sed. | ||
26130 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
26131 | # Speed up: don't consider the non `#undef' | ||
26132 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
26133 | # Work around the forget-to-reset-the-flag bug. | ||
26134 | echo 't clr' >>$CONFIG_STATUS | ||
26135 | echo ': clr' >>$CONFIG_STATUS | ||
26136 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
26137 | echo 'CEOF | ||
26138 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
26139 | rm -f $tmp/in | ||
26140 | mv $tmp/out $tmp/in | ||
26141 | ' >>$CONFIG_STATUS | ||
26142 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
26143 | rm -f conftest.undefs | ||
26144 | mv conftest.tail conftest.undefs | ||
26145 | done | ||
26146 | rm -f conftest.undefs | ||
26147 | |||
26148 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26149 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
26150 | # use $as_me), people would be surprised to read: | ||
26151 | # /* config.h. Generated by config.status. */ | ||
26152 | if test x"$ac_file" = x-; then | ||
26153 | echo "/* Generated by configure. */" >$tmp/config.h | ||
26154 | else | ||
26155 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
26156 | fi | ||
26157 | cat $tmp/in >>$tmp/config.h | ||
26158 | rm -f $tmp/in | ||
26159 | if test x"$ac_file" != x-; then | ||
26160 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
26161 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
26162 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
26163 | else | ||
26164 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
26165 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26166 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
26167 | X"$ac_file" : 'X\(//\)$' \| \ | ||
26168 | X"$ac_file" : 'X\(/\)' \| \ | ||
26169 | . : '\(.\)' 2>/dev/null || | ||
26170 | echo X"$ac_file" | | ||
26171 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26172 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26173 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26174 | /^X\(\/\).*/{ s//\1/; q; } | ||
26175 | s/.*/./; q'` | ||
26176 | { if $as_mkdir_p; then | ||
26177 | mkdir -p "$ac_dir" | ||
26178 | else | ||
26179 | as_dir="$ac_dir" | ||
26180 | as_dirs= | ||
26181 | while test ! -d "$as_dir"; do | ||
26182 | as_dirs="$as_dir $as_dirs" | ||
26183 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
26184 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26185 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
26186 | X"$as_dir" : 'X\(//\)$' \| \ | ||
26187 | X"$as_dir" : 'X\(/\)' \| \ | ||
26188 | . : '\(.\)' 2>/dev/null || | ||
26189 | echo X"$as_dir" | | ||
26190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26191 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26192 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26193 | /^X\(\/\).*/{ s//\1/; q; } | ||
26194 | s/.*/./; q'` | ||
26195 | done | ||
26196 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
26197 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
26198 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
26199 | { (exit 1); exit 1; }; }; } | ||
26200 | |||
26201 | rm -f $ac_file | ||
26202 | mv $tmp/config.h $ac_file | ||
26203 | fi | ||
26204 | else | ||
26205 | cat $tmp/config.h | ||
26206 | rm -f $tmp/config.h | ||
26207 | fi | ||
26208 | done | ||
26209 | _ACEOF | ||
26210 | |||
26211 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26212 | |||
26213 | { (exit 0); exit 0; } | ||
26214 | _ACEOF | ||
26215 | chmod +x $CONFIG_STATUS | ||
26216 | ac_clean_files=$ac_clean_files_save | ||
26217 | |||
26218 | |||
26219 | # configure is writing to config.log, and then calls config.status. | ||
26220 | # config.status does its own redirection, appending to config.log. | ||
26221 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
26222 | # by configure, so config.status won't be able to write to it; its | ||
26223 | # output is simply discarded. So we exec the FD to /dev/null, | ||
26224 | # effectively closing config.log, so it can be properly (re)opened and | ||
26225 | # appended to by config.status. When coming back to configure, we | ||
26226 | # need to make the FD available again. | ||
26227 | if test "$no_create" != yes; then | ||
26228 | ac_cs_success=: | ||
26229 | ac_config_status_args= | ||
26230 | test "$silent" = yes && | ||
26231 | ac_config_status_args="$ac_config_status_args --quiet" | ||
26232 | exec 5>/dev/null | ||
26233 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
26234 | exec 5>>config.log | ||
26235 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
26236 | # would make configure fail if this is the last instruction. | ||
26237 | $ac_cs_success || { (exit 1); exit 1; } | ||
26238 | fi | ||
26239 | |||
26240 | |||
26241 | # Print summary of options | ||
26242 | |||
26243 | # Someone please show me a better way :) | ||
26244 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
26245 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
26246 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
26247 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
26248 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
26249 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
26250 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
26251 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
26252 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
26253 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
26254 | |||
26255 | echo "" | ||
26256 | echo "OpenSSH has been configured with the following options:" | ||
26257 | echo " User binaries: $B" | ||
26258 | echo " System binaries: $C" | ||
26259 | echo " Configuration files: $D" | ||
26260 | echo " Askpass program: $E" | ||
26261 | echo " Manual pages: $F" | ||
26262 | echo " PID file: $G" | ||
26263 | echo " Privilege separation chroot path: $H" | ||
26264 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
26265 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
26266 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
26267 | else | ||
26268 | echo " sshd default user PATH: $I" | ||
26269 | if test ! -z "$external_path_file"; then | ||
26270 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
26271 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
26272 | fi | ||
26273 | fi | ||
26274 | if test ! -z "$superuser_path" ; then | ||
26275 | echo " sshd superuser user PATH: $J" | ||
26276 | fi | ||
26277 | echo " Manpage format: $MANTYPE" | ||
26278 | echo " PAM support: $PAM_MSG" | ||
26279 | echo " KerberosV support: $KRB5_MSG" | ||
26280 | echo " Smartcard support: $SCARD_MSG" | ||
26281 | echo " S/KEY support: $SKEY_MSG" | ||
26282 | echo " TCP Wrappers support: $TCPW_MSG" | ||
26283 | echo " MD5 password support: $MD5_MSG" | ||
26284 | echo " libedit support: $LIBEDIT_MSG" | ||
26285 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
26286 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
26287 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
26288 | echo " Random number source: $RAND_MSG" | ||
26289 | if test ! -z "$USE_RAND_HELPER" ; then | ||
26290 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
26291 | fi | ||
26292 | |||
26293 | echo "" | ||
26294 | |||
26295 | echo " Host: ${host}" | ||
26296 | echo " Compiler: ${CC}" | ||
26297 | echo " Compiler flags: ${CFLAGS}" | ||
26298 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
26299 | echo " Linker flags: ${LDFLAGS}" | ||
26300 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
26301 | |||
26302 | echo "" | ||
26303 | |||
26304 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
26305 | echo "SVR4 style packages are supported with \"make package\"" | ||
26306 | echo "" | ||
26307 | fi | ||
26308 | |||
26309 | if test "x$PAM_MSG" = "xyes" ; then | ||
26310 | echo "PAM is enabled. You may need to install a PAM control file " | ||
26311 | echo "for sshd, otherwise password authentication may fail. " | ||
26312 | echo "Example PAM control files can be found in the contrib/ " | ||
26313 | echo "subdirectory" | ||
26314 | echo "" | ||
26315 | fi | ||
26316 | |||
26317 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
26318 | echo "WARNING: you are using the builtin random number collection " | ||
26319 | echo "service. Please read WARNING.RNG and request that your OS " | ||
26320 | echo "vendor includes kernel-based random number collection in " | ||
26321 | echo "future versions of your OS." | ||
26322 | echo "" | ||
26323 | fi | ||
26324 | |||
26325 | if test ! -z "$NO_PEERCHECK" ; then | ||
26326 | echo "WARNING: the operating system that you are using does not " | ||
26327 | echo "appear to support either the getpeereid() API nor the " | ||
26328 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
26329 | echo "enforce security checks to prevent unauthorised connections to " | ||
26330 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
26331 | echo "user can connect to your agent. " | ||
26332 | echo "" | ||
26333 | fi | ||
26334 | |||
26335 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
26336 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
26337 | echo "See the Solaris section in README.platform for details." | ||
26338 | fi | ||