diff options
author | Colin Watson <cjwatson@debian.org> | 2005-09-14 11:27:01 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-09-14 11:27:01 +0000 |
commit | 16704d57999d987fb8d9ba53379841a79f016d67 (patch) | |
tree | b7ecfbd5be83f191af382f3186c39ba1843ba7a1 /configure | |
parent | c8ab8ceacbe4dbdd7afea4e890d92e86282d050e (diff) | |
parent | a55bd782aa819b7f5ae716de000f19f4f531850e (diff) |
Import OpenSSH 4.2p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26746 |
1 files changed, 26746 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..362218407 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,26746 @@ | |||
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 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
6 | # | ||
7 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
8 | # This configure script is free software; the Free Software Foundation | ||
9 | # gives unlimited permission to copy, distribute and modify it. | ||
10 | ## --------------------- ## | ||
11 | ## M4sh Initialization. ## | ||
12 | ## --------------------- ## | ||
13 | |||
14 | # Be Bourne compatible | ||
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16 | emulate sh | ||
17 | NULLCMD=: | ||
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
19 | # is contrary to our usage. Disable this feature. | ||
20 | alias -g '${1+"$@"}'='"$@"' | ||
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
22 | set -o posix | ||
23 | fi | ||
24 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25 | |||
26 | # Support unset when possible. | ||
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
28 | as_unset=unset | ||
29 | else | ||
30 | as_unset=false | ||
31 | fi | ||
32 | |||
33 | |||
34 | # Work around bugs in pre-3.0 UWIN ksh. | ||
35 | $as_unset ENV MAIL MAILPATH | ||
36 | PS1='$ ' | ||
37 | PS2='> ' | ||
38 | PS4='+ ' | ||
39 | |||
40 | # NLS nuisances. | ||
41 | for as_var in \ | ||
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
44 | LC_TELEPHONE LC_TIME | ||
45 | do | ||
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
47 | eval $as_var=C; export $as_var | ||
48 | else | ||
49 | $as_unset $as_var | ||
50 | fi | ||
51 | done | ||
52 | |||
53 | # Required to use basename. | ||
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
55 | as_expr=expr | ||
56 | else | ||
57 | as_expr=false | ||
58 | fi | ||
59 | |||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
61 | as_basename=basename | ||
62 | else | ||
63 | as_basename=false | ||
64 | fi | ||
65 | |||
66 | |||
67 | # Name of the executable. | ||
68 | as_me=`$as_basename "$0" || | ||
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
70 | X"$0" : 'X\(//\)$' \| \ | ||
71 | X"$0" : 'X\(/\)$' \| \ | ||
72 | . : '\(.\)' 2>/dev/null || | ||
73 | echo X/"$0" | | ||
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
76 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
77 | s/.*/./; q'` | ||
78 | |||
79 | |||
80 | # PATH needs CR, and LINENO needs CR and PATH. | ||
81 | # Avoid depending upon Character Ranges. | ||
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
85 | as_cr_digits='0123456789' | ||
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
87 | |||
88 | # The user is always right. | ||
89 | if test "${PATH_SEPARATOR+set}" != set; then | ||
90 | echo "#! /bin/sh" >conf$$.sh | ||
91 | echo "exit 0" >>conf$$.sh | ||
92 | chmod +x conf$$.sh | ||
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
94 | PATH_SEPARATOR=';' | ||
95 | else | ||
96 | PATH_SEPARATOR=: | ||
97 | fi | ||
98 | rm -f conf$$.sh | ||
99 | fi | ||
100 | |||
101 | |||
102 | as_lineno_1=$LINENO | ||
103 | as_lineno_2=$LINENO | ||
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
107 | # Find who we are. Look in the path if we contain no path at all | ||
108 | # relative or not. | ||
109 | case $0 in | ||
110 | *[\\/]* ) as_myself=$0 ;; | ||
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
112 | for as_dir in $PATH | ||
113 | do | ||
114 | IFS=$as_save_IFS | ||
115 | test -z "$as_dir" && as_dir=. | ||
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
117 | done | ||
118 | |||
119 | ;; | ||
120 | esac | ||
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
122 | # in which case we are not to be found in the path. | ||
123 | if test "x$as_myself" = x; then | ||
124 | as_myself=$0 | ||
125 | fi | ||
126 | if test ! -f "$as_myself"; then | ||
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
128 | { (exit 1); exit 1; }; } | ||
129 | fi | ||
130 | case $CONFIG_SHELL in | ||
131 | '') | ||
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
134 | do | ||
135 | IFS=$as_save_IFS | ||
136 | test -z "$as_dir" && as_dir=. | ||
137 | for as_base in sh bash ksh sh5; do | ||
138 | case $as_dir in | ||
139 | /*) | ||
140 | if ("$as_dir/$as_base" -c ' | ||
141 | as_lineno_1=$LINENO | ||
142 | as_lineno_2=$LINENO | ||
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
148 | CONFIG_SHELL=$as_dir/$as_base | ||
149 | export CONFIG_SHELL | ||
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
151 | fi;; | ||
152 | esac | ||
153 | done | ||
154 | done | ||
155 | ;; | ||
156 | esac | ||
157 | |||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
159 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
160 | # line-number line before each line; the second 'sed' does the real | ||
161 | # work. The second script uses 'N' to pair each line-number line | ||
162 | # with the numbered line, and appends trailing '-' during | ||
163 | # substitution so that $LINENO is not a special case at line end. | ||
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
166 | sed '=' <$as_myself | | ||
167 | sed ' | ||
168 | N | ||
169 | s,$,-, | ||
170 | : loop | ||
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
172 | t loop | ||
173 | s,-$,, | ||
174 | s,^['$as_cr_digits']*\n,, | ||
175 | ' >$as_me.lineno && | ||
176 | chmod +x $as_me.lineno || | ||
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
178 | { (exit 1); exit 1; }; } | ||
179 | |||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
181 | # (the dirname of $[0] is not the place where we might find the | ||
182 | # original and so on. Autoconf is especially sensible to this). | ||
183 | . ./$as_me.lineno | ||
184 | # Exit status is that of the last command. | ||
185 | exit | ||
186 | } | ||
187 | |||
188 | |||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
190 | *c*,-n*) ECHO_N= ECHO_C=' | ||
191 | ' ECHO_T=' ' ;; | ||
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
194 | esac | ||
195 | |||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
197 | as_expr=expr | ||
198 | else | ||
199 | as_expr=false | ||
200 | fi | ||
201 | |||
202 | rm -f conf$$ conf$$.exe conf$$.file | ||
203 | echo >conf$$.file | ||
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
205 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
207 | if test -f conf$$.exe; then | ||
208 | # Don't use ln at all; we don't have any links | ||
209 | as_ln_s='cp -p' | ||
210 | else | ||
211 | as_ln_s='ln -s' | ||
212 | fi | ||
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
214 | as_ln_s=ln | ||
215 | else | ||
216 | as_ln_s='cp -p' | ||
217 | fi | ||
218 | rm -f conf$$ conf$$.exe conf$$.file | ||
219 | |||
220 | if mkdir -p . 2>/dev/null; then | ||
221 | as_mkdir_p=: | ||
222 | else | ||
223 | test -d ./-p && rmdir ./-p | ||
224 | as_mkdir_p=false | ||
225 | fi | ||
226 | |||
227 | as_executable_p="test -f" | ||
228 | |||
229 | # Sed expression to map a string onto a valid CPP name. | ||
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
231 | |||
232 | # Sed expression to map a string onto a valid variable name. | ||
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
234 | |||
235 | |||
236 | # IFS | ||
237 | # We need space, tab and new line, in precisely that order. | ||
238 | as_nl=' | ||
239 | ' | ||
240 | IFS=" $as_nl" | ||
241 | |||
242 | # CDPATH. | ||
243 | $as_unset CDPATH | ||
244 | |||
245 | |||
246 | # Name of the host. | ||
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
248 | # so uname gets run too. | ||
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
250 | |||
251 | exec 6>&1 | ||
252 | |||
253 | # | ||
254 | # Initializations. | ||
255 | # | ||
256 | ac_default_prefix=/usr/local | ||
257 | ac_config_libobj_dir=. | ||
258 | cross_compiling=no | ||
259 | subdirs= | ||
260 | MFLAGS= | ||
261 | MAKEFLAGS= | ||
262 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
263 | |||
264 | # Maximum number of lines to put in a shell here document. | ||
265 | # This variable seems obsolete. It should probably be removed, and | ||
266 | # only ac_max_sed_lines should be used. | ||
267 | : ${ac_max_here_lines=38} | ||
268 | |||
269 | # Identity of this package. | ||
270 | PACKAGE_NAME='OpenSSH' | ||
271 | PACKAGE_TARNAME='openssh' | ||
272 | PACKAGE_VERSION='Portable' | ||
273 | PACKAGE_STRING='OpenSSH Portable' | ||
274 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
275 | |||
276 | ac_unique_file="ssh.c" | ||
277 | # Factoring default headers for most tests. | ||
278 | ac_includes_default="\ | ||
279 | #include <stdio.h> | ||
280 | #if HAVE_SYS_TYPES_H | ||
281 | # include <sys/types.h> | ||
282 | #endif | ||
283 | #if HAVE_SYS_STAT_H | ||
284 | # include <sys/stat.h> | ||
285 | #endif | ||
286 | #if STDC_HEADERS | ||
287 | # include <stdlib.h> | ||
288 | # include <stddef.h> | ||
289 | #else | ||
290 | # if HAVE_STDLIB_H | ||
291 | # include <stdlib.h> | ||
292 | # endif | ||
293 | #endif | ||
294 | #if HAVE_STRING_H | ||
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
296 | # include <memory.h> | ||
297 | # endif | ||
298 | # include <string.h> | ||
299 | #endif | ||
300 | #if HAVE_STRINGS_H | ||
301 | # include <strings.h> | ||
302 | #endif | ||
303 | #if HAVE_INTTYPES_H | ||
304 | # include <inttypes.h> | ||
305 | #else | ||
306 | # if HAVE_STDINT_H | ||
307 | # include <stdint.h> | ||
308 | # endif | ||
309 | #endif | ||
310 | #if HAVE_UNISTD_H | ||
311 | # include <unistd.h> | ||
312 | #endif" | ||
313 | |||
314 | 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' | ||
315 | ac_subst_files='' | ||
316 | |||
317 | # Initialize some variables set by options. | ||
318 | ac_init_help= | ||
319 | ac_init_version=false | ||
320 | # The variables have the same names as the options, with | ||
321 | # dashes changed to underlines. | ||
322 | cache_file=/dev/null | ||
323 | exec_prefix=NONE | ||
324 | no_create= | ||
325 | no_recursion= | ||
326 | prefix=NONE | ||
327 | program_prefix=NONE | ||
328 | program_suffix=NONE | ||
329 | program_transform_name=s,x,x, | ||
330 | silent= | ||
331 | site= | ||
332 | srcdir= | ||
333 | verbose= | ||
334 | x_includes=NONE | ||
335 | x_libraries=NONE | ||
336 | |||
337 | # Installation directory options. | ||
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
339 | # and all the variables that are supposed to be based on exec_prefix | ||
340 | # by default will actually change. | ||
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
342 | bindir='${exec_prefix}/bin' | ||
343 | sbindir='${exec_prefix}/sbin' | ||
344 | libexecdir='${exec_prefix}/libexec' | ||
345 | datadir='${prefix}/share' | ||
346 | sysconfdir='${prefix}/etc' | ||
347 | sharedstatedir='${prefix}/com' | ||
348 | localstatedir='${prefix}/var' | ||
349 | libdir='${exec_prefix}/lib' | ||
350 | includedir='${prefix}/include' | ||
351 | oldincludedir='/usr/include' | ||
352 | infodir='${prefix}/info' | ||
353 | mandir='${prefix}/man' | ||
354 | |||
355 | ac_prev= | ||
356 | for ac_option | ||
357 | do | ||
358 | # If the previous option needs an argument, assign it. | ||
359 | if test -n "$ac_prev"; then | ||
360 | eval "$ac_prev=\$ac_option" | ||
361 | ac_prev= | ||
362 | continue | ||
363 | fi | ||
364 | |||
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
366 | |||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
368 | |||
369 | case $ac_option in | ||
370 | |||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
372 | ac_prev=bindir ;; | ||
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
374 | bindir=$ac_optarg ;; | ||
375 | |||
376 | -build | --build | --buil | --bui | --bu) | ||
377 | ac_prev=build_alias ;; | ||
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
379 | build_alias=$ac_optarg ;; | ||
380 | |||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
383 | ac_prev=cache_file ;; | ||
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
386 | cache_file=$ac_optarg ;; | ||
387 | |||
388 | --config-cache | -C) | ||
389 | cache_file=config.cache ;; | ||
390 | |||
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
392 | ac_prev=datadir ;; | ||
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
394 | | --da=*) | ||
395 | datadir=$ac_optarg ;; | ||
396 | |||
397 | -disable-* | --disable-*) | ||
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
399 | # Reject names that are not valid shell variable names. | ||
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
402 | { (exit 1); exit 1; }; } | ||
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
404 | eval "enable_$ac_feature=no" ;; | ||
405 | |||
406 | -enable-* | --enable-*) | ||
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
408 | # Reject names that are not valid shell variable names. | ||
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
411 | { (exit 1); exit 1; }; } | ||
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
413 | case $ac_option in | ||
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
415 | *) ac_optarg=yes ;; | ||
416 | esac | ||
417 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
418 | |||
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
421 | | --exec | --exe | --ex) | ||
422 | ac_prev=exec_prefix ;; | ||
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
425 | | --exec=* | --exe=* | --ex=*) | ||
426 | exec_prefix=$ac_optarg ;; | ||
427 | |||
428 | -gas | --gas | --ga | --g) | ||
429 | # Obsolete; use --with-gas. | ||
430 | with_gas=yes ;; | ||
431 | |||
432 | -help | --help | --hel | --he | -h) | ||
433 | ac_init_help=long ;; | ||
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
435 | ac_init_help=recursive ;; | ||
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
437 | ac_init_help=short ;; | ||
438 | |||
439 | -host | --host | --hos | --ho) | ||
440 | ac_prev=host_alias ;; | ||
441 | -host=* | --host=* | --hos=* | --ho=*) | ||
442 | host_alias=$ac_optarg ;; | ||
443 | |||
444 | -includedir | --includedir | --includedi | --included | --include \ | ||
445 | | --includ | --inclu | --incl | --inc) | ||
446 | ac_prev=includedir ;; | ||
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
449 | includedir=$ac_optarg ;; | ||
450 | |||
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
452 | ac_prev=infodir ;; | ||
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
454 | infodir=$ac_optarg ;; | ||
455 | |||
456 | -libdir | --libdir | --libdi | --libd) | ||
457 | ac_prev=libdir ;; | ||
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
459 | libdir=$ac_optarg ;; | ||
460 | |||
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
462 | | --libexe | --libex | --libe) | ||
463 | ac_prev=libexecdir ;; | ||
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
465 | | --libexe=* | --libex=* | --libe=*) | ||
466 | libexecdir=$ac_optarg ;; | ||
467 | |||
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
469 | | --localstate | --localstat | --localsta | --localst \ | ||
470 | | --locals | --local | --loca | --loc | --lo) | ||
471 | ac_prev=localstatedir ;; | ||
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
475 | localstatedir=$ac_optarg ;; | ||
476 | |||
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
478 | ac_prev=mandir ;; | ||
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
480 | mandir=$ac_optarg ;; | ||
481 | |||
482 | -nfp | --nfp | --nf) | ||
483 | # Obsolete; use --without-fp. | ||
484 | with_fp=no ;; | ||
485 | |||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
487 | | --no-cr | --no-c | -n) | ||
488 | no_create=yes ;; | ||
489 | |||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
492 | no_recursion=yes ;; | ||
493 | |||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
496 | | --oldin | --oldi | --old | --ol | --o) | ||
497 | ac_prev=oldincludedir ;; | ||
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
501 | oldincludedir=$ac_optarg ;; | ||
502 | |||
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
504 | ac_prev=prefix ;; | ||
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
506 | prefix=$ac_optarg ;; | ||
507 | |||
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
509 | | --program-pre | --program-pr | --program-p) | ||
510 | ac_prev=program_prefix ;; | ||
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
513 | program_prefix=$ac_optarg ;; | ||
514 | |||
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
516 | | --program-suf | --program-su | --program-s) | ||
517 | ac_prev=program_suffix ;; | ||
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
520 | program_suffix=$ac_optarg ;; | ||
521 | |||
522 | -program-transform-name | --program-transform-name \ | ||
523 | | --program-transform-nam | --program-transform-na \ | ||
524 | | --program-transform-n | --program-transform- \ | ||
525 | | --program-transform | --program-transfor \ | ||
526 | | --program-transfo | --program-transf \ | ||
527 | | --program-trans | --program-tran \ | ||
528 | | --progr-tra | --program-tr | --program-t) | ||
529 | ac_prev=program_transform_name ;; | ||
530 | -program-transform-name=* | --program-transform-name=* \ | ||
531 | | --program-transform-nam=* | --program-transform-na=* \ | ||
532 | | --program-transform-n=* | --program-transform-=* \ | ||
533 | | --program-transform=* | --program-transfor=* \ | ||
534 | | --program-transfo=* | --program-transf=* \ | ||
535 | | --program-trans=* | --program-tran=* \ | ||
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
537 | program_transform_name=$ac_optarg ;; | ||
538 | |||
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
540 | | -silent | --silent | --silen | --sile | --sil) | ||
541 | silent=yes ;; | ||
542 | |||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
544 | ac_prev=sbindir ;; | ||
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
546 | | --sbi=* | --sb=*) | ||
547 | sbindir=$ac_optarg ;; | ||
548 | |||
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
551 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
552 | | --sha | --sh) | ||
553 | ac_prev=sharedstatedir ;; | ||
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
557 | | --sha=* | --sh=*) | ||
558 | sharedstatedir=$ac_optarg ;; | ||
559 | |||
560 | -site | --site | --sit) | ||
561 | ac_prev=site ;; | ||
562 | -site=* | --site=* | --sit=*) | ||
563 | site=$ac_optarg ;; | ||
564 | |||
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
566 | ac_prev=srcdir ;; | ||
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
568 | srcdir=$ac_optarg ;; | ||
569 | |||
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
571 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
572 | ac_prev=sysconfdir ;; | ||
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
575 | sysconfdir=$ac_optarg ;; | ||
576 | |||
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
578 | ac_prev=target_alias ;; | ||
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
580 | target_alias=$ac_optarg ;; | ||
581 | |||
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
583 | verbose=yes ;; | ||
584 | |||
585 | -version | --version | --versio | --versi | --vers | -V) | ||
586 | ac_init_version=: ;; | ||
587 | |||
588 | -with-* | --with-*) | ||
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
590 | # Reject names that are not valid shell variable names. | ||
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
593 | { (exit 1); exit 1; }; } | ||
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
595 | case $ac_option in | ||
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
597 | *) ac_optarg=yes ;; | ||
598 | esac | ||
599 | eval "with_$ac_package='$ac_optarg'" ;; | ||
600 | |||
601 | -without-* | --without-*) | ||
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
603 | # Reject names that are not valid shell variable names. | ||
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
606 | { (exit 1); exit 1; }; } | ||
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
608 | eval "with_$ac_package=no" ;; | ||
609 | |||
610 | --x) | ||
611 | # Obsolete; use --with-x. | ||
612 | with_x=yes ;; | ||
613 | |||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
615 | | --x-incl | --x-inc | --x-in | --x-i) | ||
616 | ac_prev=x_includes ;; | ||
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
619 | x_includes=$ac_optarg ;; | ||
620 | |||
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
623 | ac_prev=x_libraries ;; | ||
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
626 | x_libraries=$ac_optarg ;; | ||
627 | |||
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
629 | Try \`$0 --help' for more information." >&2 | ||
630 | { (exit 1); exit 1; }; } | ||
631 | ;; | ||
632 | |||
633 | *=*) | ||
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
635 | # Reject names that are not valid shell variable names. | ||
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
638 | { (exit 1); exit 1; }; } | ||
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
640 | eval "$ac_envvar='$ac_optarg'" | ||
641 | export $ac_envvar ;; | ||
642 | |||
643 | *) | ||
644 | # FIXME: should be removed in autoconf 3.0. | ||
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
649 | ;; | ||
650 | |||
651 | esac | ||
652 | done | ||
653 | |||
654 | if test -n "$ac_prev"; then | ||
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
657 | { (exit 1); exit 1; }; } | ||
658 | fi | ||
659 | |||
660 | # Be sure to have absolute paths. | ||
661 | for ac_var in exec_prefix prefix | ||
662 | do | ||
663 | eval ac_val=$`echo $ac_var` | ||
664 | case $ac_val in | ||
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
667 | { (exit 1); exit 1; }; };; | ||
668 | esac | ||
669 | done | ||
670 | |||
671 | # Be sure to have absolute paths. | ||
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
673 | localstatedir libdir includedir oldincludedir infodir mandir | ||
674 | do | ||
675 | eval ac_val=$`echo $ac_var` | ||
676 | case $ac_val in | ||
677 | [\\/$]* | ?:[\\/]* ) ;; | ||
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
679 | { (exit 1); exit 1; }; };; | ||
680 | esac | ||
681 | done | ||
682 | |||
683 | # There might be people who depend on the old broken behavior: `$host' | ||
684 | # used to hold the argument of --host etc. | ||
685 | # FIXME: To remove some day. | ||
686 | build=$build_alias | ||
687 | host=$host_alias | ||
688 | target=$target_alias | ||
689 | |||
690 | # FIXME: To remove some day. | ||
691 | if test "x$host_alias" != x; then | ||
692 | if test "x$build_alias" = x; then | ||
693 | cross_compiling=maybe | ||
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
696 | elif test "x$build_alias" != "x$host_alias"; then | ||
697 | cross_compiling=yes | ||
698 | fi | ||
699 | fi | ||
700 | |||
701 | ac_tool_prefix= | ||
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
703 | |||
704 | test "$silent" = yes && exec 6>/dev/null | ||
705 | |||
706 | |||
707 | # Find the source files, if location was not specified. | ||
708 | if test -z "$srcdir"; then | ||
709 | ac_srcdir_defaulted=yes | ||
710 | # Try the directory containing this script, then its parent. | ||
711 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
713 | X"$0" : 'X\(//\)[^/]' \| \ | ||
714 | X"$0" : 'X\(//\)$' \| \ | ||
715 | X"$0" : 'X\(/\)' \| \ | ||
716 | . : '\(.\)' 2>/dev/null || | ||
717 | echo X"$0" | | ||
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
720 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
721 | /^X\(\/\).*/{ s//\1/; q; } | ||
722 | s/.*/./; q'` | ||
723 | srcdir=$ac_confdir | ||
724 | if test ! -r $srcdir/$ac_unique_file; then | ||
725 | srcdir=.. | ||
726 | fi | ||
727 | else | ||
728 | ac_srcdir_defaulted=no | ||
729 | fi | ||
730 | if test ! -r $srcdir/$ac_unique_file; then | ||
731 | if test "$ac_srcdir_defaulted" = yes; then | ||
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
733 | { (exit 1); exit 1; }; } | ||
734 | else | ||
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
736 | { (exit 1); exit 1; }; } | ||
737 | fi | ||
738 | fi | ||
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
741 | { (exit 1); exit 1; }; } | ||
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
743 | ac_env_build_alias_set=${build_alias+set} | ||
744 | ac_env_build_alias_value=$build_alias | ||
745 | ac_cv_env_build_alias_set=${build_alias+set} | ||
746 | ac_cv_env_build_alias_value=$build_alias | ||
747 | ac_env_host_alias_set=${host_alias+set} | ||
748 | ac_env_host_alias_value=$host_alias | ||
749 | ac_cv_env_host_alias_set=${host_alias+set} | ||
750 | ac_cv_env_host_alias_value=$host_alias | ||
751 | ac_env_target_alias_set=${target_alias+set} | ||
752 | ac_env_target_alias_value=$target_alias | ||
753 | ac_cv_env_target_alias_set=${target_alias+set} | ||
754 | ac_cv_env_target_alias_value=$target_alias | ||
755 | ac_env_CC_set=${CC+set} | ||
756 | ac_env_CC_value=$CC | ||
757 | ac_cv_env_CC_set=${CC+set} | ||
758 | ac_cv_env_CC_value=$CC | ||
759 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
760 | ac_env_CFLAGS_value=$CFLAGS | ||
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
762 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
764 | ac_env_LDFLAGS_value=$LDFLAGS | ||
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
771 | ac_env_CPP_set=${CPP+set} | ||
772 | ac_env_CPP_value=$CPP | ||
773 | ac_cv_env_CPP_set=${CPP+set} | ||
774 | ac_cv_env_CPP_value=$CPP | ||
775 | |||
776 | # | ||
777 | # Report the --help message. | ||
778 | # | ||
779 | if test "$ac_init_help" = "long"; then | ||
780 | # Omit some internal or obsolete options to make the list less imposing. | ||
781 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
782 | cat <<_ACEOF | ||
783 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
784 | |||
785 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
786 | |||
787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
788 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
789 | |||
790 | Defaults for the options are specified in brackets. | ||
791 | |||
792 | Configuration: | ||
793 | -h, --help display this help and exit | ||
794 | --help=short display options specific to this package | ||
795 | --help=recursive display the short help of all the included packages | ||
796 | -V, --version display version information and exit | ||
797 | -q, --quiet, --silent do not print \`checking...' messages | ||
798 | --cache-file=FILE cache test results in FILE [disabled] | ||
799 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
800 | -n, --no-create do not create output files | ||
801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
802 | |||
803 | _ACEOF | ||
804 | |||
805 | cat <<_ACEOF | ||
806 | Installation directories: | ||
807 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
808 | [$ac_default_prefix] | ||
809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
810 | [PREFIX] | ||
811 | |||
812 | By default, \`make install' will install all the files in | ||
813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
815 | for instance \`--prefix=\$HOME'. | ||
816 | |||
817 | For better control, use the options below. | ||
818 | |||
819 | Fine tuning of the installation directories: | ||
820 | --bindir=DIR user executables [EPREFIX/bin] | ||
821 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
822 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
827 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
828 | --includedir=DIR C header files [PREFIX/include] | ||
829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
830 | --infodir=DIR info documentation [PREFIX/info] | ||
831 | --mandir=DIR man documentation [PREFIX/man] | ||
832 | _ACEOF | ||
833 | |||
834 | cat <<\_ACEOF | ||
835 | |||
836 | System types: | ||
837 | --build=BUILD configure for building on BUILD [guessed] | ||
838 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
839 | _ACEOF | ||
840 | fi | ||
841 | |||
842 | if test -n "$ac_init_help"; then | ||
843 | case $ac_init_help in | ||
844 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
845 | esac | ||
846 | cat <<\_ACEOF | ||
847 | |||
848 | Optional Features: | ||
849 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
850 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
851 | --disable-largefile omit support for large files | ||
852 | --disable-strip Disable calling strip(1) on install | ||
853 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
854 | --disable-lastlog disable use of lastlog even if detected no | ||
855 | --disable-utmp disable use of utmp even if detected no | ||
856 | --disable-utmpx disable use of utmpx even if detected no | ||
857 | --disable-wtmp disable use of wtmp even if detected no | ||
858 | --disable-wtmpx disable use of wtmpx even if detected no | ||
859 | --disable-libutil disable use of libutil (login() etc.) no | ||
860 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
861 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
862 | |||
863 | Optional Packages: | ||
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
866 | --without-rpath Disable auto-added -R linker paths | ||
867 | --with-osfsia Enable Digital Unix SIA | ||
868 | --with-cflags Specify additional flags to pass to compiler | ||
869 | --with-cppflags Specify additional flags to pass to preprocessor | ||
870 | --with-ldflags Specify additional flags to pass to linker | ||
871 | --with-libs Specify additional libraries to link with | ||
872 | --with-Werror Build main code with -Werror | ||
873 | --with-zlib=PATH Use zlib in PATH | ||
874 | --without-zlib-version-check Disable zlib version check | ||
875 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
876 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
877 | --with-libedit[=PATH] Enable libedit support for sftp | ||
878 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
879 | --with-pam Enable PAM support | ||
880 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
881 | --with-rand-helper Use subprocess to gather strong randomness | ||
882 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
883 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
884 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
885 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
886 | --with-sectok Enable smartcard support using libsectok | ||
887 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
888 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
889 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
890 | --with-xauth=PATH Specify path to xauth program | ||
891 | --with-mantype=man|cat|doc Set man page type | ||
892 | --with-md5-passwords Enable use of MD5 passwords | ||
893 | --without-shadow Disable shadow password support | ||
894 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
895 | --with-default-path= Specify default \$PATH environment for server | ||
896 | --with-superuser-path= Specify different path for super-user | ||
897 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
898 | --with-bsd-auth Enable BSD auth support | ||
899 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
900 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
901 | |||
902 | Some influential environment variables: | ||
903 | CC C compiler command | ||
904 | CFLAGS C compiler flags | ||
905 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
906 | nonstandard directory <lib dir> | ||
907 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
908 | headers in a nonstandard directory <include dir> | ||
909 | CPP C preprocessor | ||
910 | |||
911 | Use these variables to override the choices made by `configure' or to help | ||
912 | it to find libraries and programs with nonstandard names/locations. | ||
913 | |||
914 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
915 | _ACEOF | ||
916 | fi | ||
917 | |||
918 | if test "$ac_init_help" = "recursive"; then | ||
919 | # If there are subdirs, report their specific --help. | ||
920 | ac_popdir=`pwd` | ||
921 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
922 | test -d $ac_dir || continue | ||
923 | ac_builddir=. | ||
924 | |||
925 | if test "$ac_dir" != .; then | ||
926 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
927 | # A "../" for each directory in $ac_dir_suffix. | ||
928 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
929 | else | ||
930 | ac_dir_suffix= ac_top_builddir= | ||
931 | fi | ||
932 | |||
933 | case $srcdir in | ||
934 | .) # No --srcdir option. We are building in place. | ||
935 | ac_srcdir=. | ||
936 | if test -z "$ac_top_builddir"; then | ||
937 | ac_top_srcdir=. | ||
938 | else | ||
939 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
940 | fi ;; | ||
941 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
942 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
943 | ac_top_srcdir=$srcdir ;; | ||
944 | *) # Relative path. | ||
945 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
946 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
947 | esac | ||
948 | |||
949 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
950 | # the directories may not exist. | ||
951 | case `pwd` in | ||
952 | .) ac_abs_builddir="$ac_dir";; | ||
953 | *) | ||
954 | case "$ac_dir" in | ||
955 | .) ac_abs_builddir=`pwd`;; | ||
956 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
957 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
958 | esac;; | ||
959 | esac | ||
960 | case $ac_abs_builddir in | ||
961 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
962 | *) | ||
963 | case ${ac_top_builddir}. in | ||
964 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
965 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
966 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
967 | esac;; | ||
968 | esac | ||
969 | case $ac_abs_builddir in | ||
970 | .) ac_abs_srcdir=$ac_srcdir;; | ||
971 | *) | ||
972 | case $ac_srcdir in | ||
973 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
974 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
975 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
976 | esac;; | ||
977 | esac | ||
978 | case $ac_abs_builddir in | ||
979 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
980 | *) | ||
981 | case $ac_top_srcdir in | ||
982 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
983 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
984 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
985 | esac;; | ||
986 | esac | ||
987 | |||
988 | cd $ac_dir | ||
989 | # Check for guested configure; otherwise get Cygnus style configure. | ||
990 | if test -f $ac_srcdir/configure.gnu; then | ||
991 | echo | ||
992 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
993 | elif test -f $ac_srcdir/configure; then | ||
994 | echo | ||
995 | $SHELL $ac_srcdir/configure --help=recursive | ||
996 | elif test -f $ac_srcdir/configure.ac || | ||
997 | test -f $ac_srcdir/configure.in; then | ||
998 | echo | ||
999 | $ac_configure --help | ||
1000 | else | ||
1001 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1002 | fi | ||
1003 | cd $ac_popdir | ||
1004 | done | ||
1005 | fi | ||
1006 | |||
1007 | test -n "$ac_init_help" && exit 0 | ||
1008 | if $ac_init_version; then | ||
1009 | cat <<\_ACEOF | ||
1010 | OpenSSH configure Portable | ||
1011 | generated by GNU Autoconf 2.59 | ||
1012 | |||
1013 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1014 | This configure script is free software; the Free Software Foundation | ||
1015 | gives unlimited permission to copy, distribute and modify it. | ||
1016 | _ACEOF | ||
1017 | exit 0 | ||
1018 | fi | ||
1019 | exec 5>config.log | ||
1020 | cat >&5 <<_ACEOF | ||
1021 | This file contains any messages produced by compilers while | ||
1022 | running configure, to aid debugging if configure makes a mistake. | ||
1023 | |||
1024 | It was created by OpenSSH $as_me Portable, which was | ||
1025 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1026 | |||
1027 | $ $0 $@ | ||
1028 | |||
1029 | _ACEOF | ||
1030 | { | ||
1031 | cat <<_ASUNAME | ||
1032 | ## --------- ## | ||
1033 | ## Platform. ## | ||
1034 | ## --------- ## | ||
1035 | |||
1036 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1037 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1038 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1039 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1040 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1041 | |||
1042 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1043 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1044 | |||
1045 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1046 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1047 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1048 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1049 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1050 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1051 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1052 | |||
1053 | _ASUNAME | ||
1054 | |||
1055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1056 | for as_dir in $PATH | ||
1057 | do | ||
1058 | IFS=$as_save_IFS | ||
1059 | test -z "$as_dir" && as_dir=. | ||
1060 | echo "PATH: $as_dir" | ||
1061 | done | ||
1062 | |||
1063 | } >&5 | ||
1064 | |||
1065 | cat >&5 <<_ACEOF | ||
1066 | |||
1067 | |||
1068 | ## ----------- ## | ||
1069 | ## Core tests. ## | ||
1070 | ## ----------- ## | ||
1071 | |||
1072 | _ACEOF | ||
1073 | |||
1074 | |||
1075 | # Keep a trace of the command line. | ||
1076 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1077 | # Strip out --silent because we don't want to record it for future runs. | ||
1078 | # Also quote any args containing shell meta-characters. | ||
1079 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1080 | ac_configure_args= | ||
1081 | ac_configure_args0= | ||
1082 | ac_configure_args1= | ||
1083 | ac_sep= | ||
1084 | ac_must_keep_next=false | ||
1085 | for ac_pass in 1 2 | ||
1086 | do | ||
1087 | for ac_arg | ||
1088 | do | ||
1089 | case $ac_arg in | ||
1090 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1091 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1092 | | -silent | --silent | --silen | --sile | --sil) | ||
1093 | continue ;; | ||
1094 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1095 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1096 | esac | ||
1097 | case $ac_pass in | ||
1098 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1099 | 2) | ||
1100 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1101 | if test $ac_must_keep_next = true; then | ||
1102 | ac_must_keep_next=false # Got value, back to normal. | ||
1103 | else | ||
1104 | case $ac_arg in | ||
1105 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1106 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1107 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1108 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1109 | case "$ac_configure_args0 " in | ||
1110 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1111 | esac | ||
1112 | ;; | ||
1113 | -* ) ac_must_keep_next=true ;; | ||
1114 | esac | ||
1115 | fi | ||
1116 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1117 | # Get rid of the leading space. | ||
1118 | ac_sep=" " | ||
1119 | ;; | ||
1120 | esac | ||
1121 | done | ||
1122 | done | ||
1123 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1124 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1125 | |||
1126 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1127 | # config.log. We remove comments because anyway the quotes in there | ||
1128 | # would cause problems or look ugly. | ||
1129 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1130 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1131 | trap 'exit_status=$? | ||
1132 | # Save into config.log some information that might help in debugging. | ||
1133 | { | ||
1134 | echo | ||
1135 | |||
1136 | cat <<\_ASBOX | ||
1137 | ## ---------------- ## | ||
1138 | ## Cache variables. ## | ||
1139 | ## ---------------- ## | ||
1140 | _ASBOX | ||
1141 | echo | ||
1142 | # The following way of writing the cache mishandles newlines in values, | ||
1143 | { | ||
1144 | (set) 2>&1 | | ||
1145 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1146 | *ac_space=\ *) | ||
1147 | sed -n \ | ||
1148 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1149 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1150 | ;; | ||
1151 | *) | ||
1152 | sed -n \ | ||
1153 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1154 | ;; | ||
1155 | esac; | ||
1156 | } | ||
1157 | echo | ||
1158 | |||
1159 | cat <<\_ASBOX | ||
1160 | ## ----------------- ## | ||
1161 | ## Output variables. ## | ||
1162 | ## ----------------- ## | ||
1163 | _ASBOX | ||
1164 | echo | ||
1165 | for ac_var in $ac_subst_vars | ||
1166 | do | ||
1167 | eval ac_val=$`echo $ac_var` | ||
1168 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1169 | done | sort | ||
1170 | echo | ||
1171 | |||
1172 | if test -n "$ac_subst_files"; then | ||
1173 | cat <<\_ASBOX | ||
1174 | ## ------------- ## | ||
1175 | ## Output files. ## | ||
1176 | ## ------------- ## | ||
1177 | _ASBOX | ||
1178 | echo | ||
1179 | for ac_var in $ac_subst_files | ||
1180 | do | ||
1181 | eval ac_val=$`echo $ac_var` | ||
1182 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1183 | done | sort | ||
1184 | echo | ||
1185 | fi | ||
1186 | |||
1187 | if test -s confdefs.h; then | ||
1188 | cat <<\_ASBOX | ||
1189 | ## ----------- ## | ||
1190 | ## confdefs.h. ## | ||
1191 | ## ----------- ## | ||
1192 | _ASBOX | ||
1193 | echo | ||
1194 | sed "/^$/d" confdefs.h | sort | ||
1195 | echo | ||
1196 | fi | ||
1197 | test "$ac_signal" != 0 && | ||
1198 | echo "$as_me: caught signal $ac_signal" | ||
1199 | echo "$as_me: exit $exit_status" | ||
1200 | } >&5 | ||
1201 | rm -f core *.core && | ||
1202 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1203 | exit $exit_status | ||
1204 | ' 0 | ||
1205 | for ac_signal in 1 2 13 15; do | ||
1206 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1207 | done | ||
1208 | ac_signal=0 | ||
1209 | |||
1210 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1211 | rm -rf conftest* confdefs.h | ||
1212 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1213 | echo >confdefs.h | ||
1214 | |||
1215 | # Predefined preprocessor variables. | ||
1216 | |||
1217 | cat >>confdefs.h <<_ACEOF | ||
1218 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1219 | _ACEOF | ||
1220 | |||
1221 | |||
1222 | cat >>confdefs.h <<_ACEOF | ||
1223 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1224 | _ACEOF | ||
1225 | |||
1226 | |||
1227 | cat >>confdefs.h <<_ACEOF | ||
1228 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1229 | _ACEOF | ||
1230 | |||
1231 | |||
1232 | cat >>confdefs.h <<_ACEOF | ||
1233 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1234 | _ACEOF | ||
1235 | |||
1236 | |||
1237 | cat >>confdefs.h <<_ACEOF | ||
1238 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1239 | _ACEOF | ||
1240 | |||
1241 | |||
1242 | # Let the site file select an alternate cache file if it wants to. | ||
1243 | # Prefer explicitly selected file to automatically selected ones. | ||
1244 | if test -z "$CONFIG_SITE"; then | ||
1245 | if test "x$prefix" != xNONE; then | ||
1246 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1247 | else | ||
1248 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1249 | fi | ||
1250 | fi | ||
1251 | for ac_site_file in $CONFIG_SITE; do | ||
1252 | if test -r "$ac_site_file"; then | ||
1253 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1254 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1255 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1256 | . "$ac_site_file" | ||
1257 | fi | ||
1258 | done | ||
1259 | |||
1260 | if test -r "$cache_file"; then | ||
1261 | # Some versions of bash will fail to source /dev/null (special | ||
1262 | # files actually), so we avoid doing that. | ||
1263 | if test -f "$cache_file"; then | ||
1264 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1265 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1266 | case $cache_file in | ||
1267 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1268 | *) . ./$cache_file;; | ||
1269 | esac | ||
1270 | fi | ||
1271 | else | ||
1272 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1273 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1274 | >$cache_file | ||
1275 | fi | ||
1276 | |||
1277 | # Check that the precious variables saved in the cache have kept the same | ||
1278 | # value. | ||
1279 | ac_cache_corrupted=false | ||
1280 | for ac_var in `(set) 2>&1 | | ||
1281 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1282 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1283 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1284 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1285 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1286 | case $ac_old_set,$ac_new_set in | ||
1287 | set,) | ||
1288 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1289 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1290 | ac_cache_corrupted=: ;; | ||
1291 | ,set) | ||
1292 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1293 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1294 | ac_cache_corrupted=: ;; | ||
1295 | ,);; | ||
1296 | *) | ||
1297 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1298 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1299 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1300 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1301 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1302 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1303 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1304 | ac_cache_corrupted=: | ||
1305 | fi;; | ||
1306 | esac | ||
1307 | # Pass precious variables to config.status. | ||
1308 | if test "$ac_new_set" = set; then | ||
1309 | case $ac_new_val in | ||
1310 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1311 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1312 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1313 | esac | ||
1314 | case " $ac_configure_args " in | ||
1315 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1316 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1317 | esac | ||
1318 | fi | ||
1319 | done | ||
1320 | if $ac_cache_corrupted; then | ||
1321 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1322 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1323 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1324 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1325 | { (exit 1); exit 1; }; } | ||
1326 | fi | ||
1327 | |||
1328 | ac_ext=c | ||
1329 | ac_cpp='$CPP $CPPFLAGS' | ||
1330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
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 | |||
1359 | |||
1360 | |||
1361 | |||
1362 | ac_config_headers="$ac_config_headers config.h" | ||
1363 | |||
1364 | ac_ext=c | ||
1365 | ac_cpp='$CPP $CPPFLAGS' | ||
1366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1369 | if test -n "$ac_tool_prefix"; then | ||
1370 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1371 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1374 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1376 | else | ||
1377 | if test -n "$CC"; then | ||
1378 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1379 | else | ||
1380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1381 | for as_dir in $PATH | ||
1382 | do | ||
1383 | IFS=$as_save_IFS | ||
1384 | test -z "$as_dir" && as_dir=. | ||
1385 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1387 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1389 | break 2 | ||
1390 | fi | ||
1391 | done | ||
1392 | done | ||
1393 | |||
1394 | fi | ||
1395 | fi | ||
1396 | CC=$ac_cv_prog_CC | ||
1397 | if test -n "$CC"; then | ||
1398 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1399 | echo "${ECHO_T}$CC" >&6 | ||
1400 | else | ||
1401 | echo "$as_me:$LINENO: result: no" >&5 | ||
1402 | echo "${ECHO_T}no" >&6 | ||
1403 | fi | ||
1404 | |||
1405 | fi | ||
1406 | if test -z "$ac_cv_prog_CC"; then | ||
1407 | ac_ct_CC=$CC | ||
1408 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1409 | set dummy gcc; ac_word=$2 | ||
1410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1412 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1414 | else | ||
1415 | if test -n "$ac_ct_CC"; then | ||
1416 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1417 | else | ||
1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1419 | for as_dir in $PATH | ||
1420 | do | ||
1421 | IFS=$as_save_IFS | ||
1422 | test -z "$as_dir" && as_dir=. | ||
1423 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1425 | ac_cv_prog_ac_ct_CC="gcc" | ||
1426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1427 | break 2 | ||
1428 | fi | ||
1429 | done | ||
1430 | done | ||
1431 | |||
1432 | fi | ||
1433 | fi | ||
1434 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1435 | if test -n "$ac_ct_CC"; then | ||
1436 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1437 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1438 | else | ||
1439 | echo "$as_me:$LINENO: result: no" >&5 | ||
1440 | echo "${ECHO_T}no" >&6 | ||
1441 | fi | ||
1442 | |||
1443 | CC=$ac_ct_CC | ||
1444 | else | ||
1445 | CC="$ac_cv_prog_CC" | ||
1446 | fi | ||
1447 | |||
1448 | if test -z "$CC"; then | ||
1449 | if test -n "$ac_tool_prefix"; then | ||
1450 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1451 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1454 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1456 | else | ||
1457 | if test -n "$CC"; then | ||
1458 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1459 | else | ||
1460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1461 | for as_dir in $PATH | ||
1462 | do | ||
1463 | IFS=$as_save_IFS | ||
1464 | test -z "$as_dir" && as_dir=. | ||
1465 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1467 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1469 | break 2 | ||
1470 | fi | ||
1471 | done | ||
1472 | done | ||
1473 | |||
1474 | fi | ||
1475 | fi | ||
1476 | CC=$ac_cv_prog_CC | ||
1477 | if test -n "$CC"; then | ||
1478 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1479 | echo "${ECHO_T}$CC" >&6 | ||
1480 | else | ||
1481 | echo "$as_me:$LINENO: result: no" >&5 | ||
1482 | echo "${ECHO_T}no" >&6 | ||
1483 | fi | ||
1484 | |||
1485 | fi | ||
1486 | if test -z "$ac_cv_prog_CC"; then | ||
1487 | ac_ct_CC=$CC | ||
1488 | # Extract the first word of "cc", so it can be a program name with args. | ||
1489 | set dummy cc; ac_word=$2 | ||
1490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1492 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1494 | else | ||
1495 | if test -n "$ac_ct_CC"; then | ||
1496 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1497 | else | ||
1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1499 | for as_dir in $PATH | ||
1500 | do | ||
1501 | IFS=$as_save_IFS | ||
1502 | test -z "$as_dir" && as_dir=. | ||
1503 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1505 | ac_cv_prog_ac_ct_CC="cc" | ||
1506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1507 | break 2 | ||
1508 | fi | ||
1509 | done | ||
1510 | done | ||
1511 | |||
1512 | fi | ||
1513 | fi | ||
1514 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1515 | if test -n "$ac_ct_CC"; then | ||
1516 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1517 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1518 | else | ||
1519 | echo "$as_me:$LINENO: result: no" >&5 | ||
1520 | echo "${ECHO_T}no" >&6 | ||
1521 | fi | ||
1522 | |||
1523 | CC=$ac_ct_CC | ||
1524 | else | ||
1525 | CC="$ac_cv_prog_CC" | ||
1526 | fi | ||
1527 | |||
1528 | fi | ||
1529 | if test -z "$CC"; then | ||
1530 | # Extract the first word of "cc", so it can be a program name with args. | ||
1531 | set dummy cc; ac_word=$2 | ||
1532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1534 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1536 | else | ||
1537 | if test -n "$CC"; then | ||
1538 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1539 | else | ||
1540 | ac_prog_rejected=no | ||
1541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1542 | for as_dir in $PATH | ||
1543 | do | ||
1544 | IFS=$as_save_IFS | ||
1545 | test -z "$as_dir" && as_dir=. | ||
1546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1548 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1549 | ac_prog_rejected=yes | ||
1550 | continue | ||
1551 | fi | ||
1552 | ac_cv_prog_CC="cc" | ||
1553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1554 | break 2 | ||
1555 | fi | ||
1556 | done | ||
1557 | done | ||
1558 | |||
1559 | if test $ac_prog_rejected = yes; then | ||
1560 | # We found a bogon in the path, so make sure we never use it. | ||
1561 | set dummy $ac_cv_prog_CC | ||
1562 | shift | ||
1563 | if test $# != 0; then | ||
1564 | # We chose a different compiler from the bogus one. | ||
1565 | # However, it has the same basename, so the bogon will be chosen | ||
1566 | # first if we set CC to just the basename; use the full file name. | ||
1567 | shift | ||
1568 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1569 | fi | ||
1570 | fi | ||
1571 | fi | ||
1572 | fi | ||
1573 | CC=$ac_cv_prog_CC | ||
1574 | if test -n "$CC"; then | ||
1575 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1576 | echo "${ECHO_T}$CC" >&6 | ||
1577 | else | ||
1578 | echo "$as_me:$LINENO: result: no" >&5 | ||
1579 | echo "${ECHO_T}no" >&6 | ||
1580 | fi | ||
1581 | |||
1582 | fi | ||
1583 | if test -z "$CC"; then | ||
1584 | if test -n "$ac_tool_prefix"; then | ||
1585 | for ac_prog in cl | ||
1586 | do | ||
1587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1591 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1593 | else | ||
1594 | if test -n "$CC"; then | ||
1595 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1596 | else | ||
1597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1598 | for as_dir in $PATH | ||
1599 | do | ||
1600 | IFS=$as_save_IFS | ||
1601 | test -z "$as_dir" && as_dir=. | ||
1602 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1604 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1606 | break 2 | ||
1607 | fi | ||
1608 | done | ||
1609 | done | ||
1610 | |||
1611 | fi | ||
1612 | fi | ||
1613 | CC=$ac_cv_prog_CC | ||
1614 | if test -n "$CC"; then | ||
1615 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1616 | echo "${ECHO_T}$CC" >&6 | ||
1617 | else | ||
1618 | echo "$as_me:$LINENO: result: no" >&5 | ||
1619 | echo "${ECHO_T}no" >&6 | ||
1620 | fi | ||
1621 | |||
1622 | test -n "$CC" && break | ||
1623 | done | ||
1624 | fi | ||
1625 | if test -z "$CC"; then | ||
1626 | ac_ct_CC=$CC | ||
1627 | for ac_prog in cl | ||
1628 | do | ||
1629 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1630 | set dummy $ac_prog; ac_word=$2 | ||
1631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1635 | else | ||
1636 | if test -n "$ac_ct_CC"; then | ||
1637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1638 | else | ||
1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1640 | for as_dir in $PATH | ||
1641 | do | ||
1642 | IFS=$as_save_IFS | ||
1643 | test -z "$as_dir" && as_dir=. | ||
1644 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1646 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1648 | break 2 | ||
1649 | fi | ||
1650 | done | ||
1651 | done | ||
1652 | |||
1653 | fi | ||
1654 | fi | ||
1655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1656 | if test -n "$ac_ct_CC"; then | ||
1657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1658 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1659 | else | ||
1660 | echo "$as_me:$LINENO: result: no" >&5 | ||
1661 | echo "${ECHO_T}no" >&6 | ||
1662 | fi | ||
1663 | |||
1664 | test -n "$ac_ct_CC" && break | ||
1665 | done | ||
1666 | |||
1667 | CC=$ac_ct_CC | ||
1668 | fi | ||
1669 | |||
1670 | fi | ||
1671 | |||
1672 | |||
1673 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
1674 | See \`config.log' for more details." >&5 | ||
1675 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
1676 | See \`config.log' for more details." >&2;} | ||
1677 | { (exit 1); exit 1; }; } | ||
1678 | |||
1679 | # Provide some information about the compiler. | ||
1680 | echo "$as_me:$LINENO:" \ | ||
1681 | "checking for C compiler version" >&5 | ||
1682 | ac_compiler=`set X $ac_compile; echo $2` | ||
1683 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1684 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1685 | ac_status=$? | ||
1686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1687 | (exit $ac_status); } | ||
1688 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1689 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1690 | ac_status=$? | ||
1691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1692 | (exit $ac_status); } | ||
1693 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1694 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1695 | ac_status=$? | ||
1696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1697 | (exit $ac_status); } | ||
1698 | |||
1699 | cat >conftest.$ac_ext <<_ACEOF | ||
1700 | /* confdefs.h. */ | ||
1701 | _ACEOF | ||
1702 | cat confdefs.h >>conftest.$ac_ext | ||
1703 | cat >>conftest.$ac_ext <<_ACEOF | ||
1704 | /* end confdefs.h. */ | ||
1705 | |||
1706 | int | ||
1707 | main () | ||
1708 | { | ||
1709 | |||
1710 | ; | ||
1711 | return 0; | ||
1712 | } | ||
1713 | _ACEOF | ||
1714 | ac_clean_files_save=$ac_clean_files | ||
1715 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
1716 | # Try to create an executable without -o first, disregard a.out. | ||
1717 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1718 | # of exeext. | ||
1719 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
1720 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
1721 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1722 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1723 | (eval $ac_link_default) 2>&5 | ||
1724 | ac_status=$? | ||
1725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1726 | (exit $ac_status); }; then | ||
1727 | # Find the output, starting from the most likely. This scheme is | ||
1728 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1729 | # resort. | ||
1730 | |||
1731 | # Be careful to initialize this variable, since it used to be cached. | ||
1732 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1733 | ac_cv_exeext= | ||
1734 | # b.out is created by i960 compilers. | ||
1735 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
1736 | do | ||
1737 | test -f "$ac_file" || continue | ||
1738 | case $ac_file in | ||
1739 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
1740 | ;; | ||
1741 | conftest.$ac_ext ) | ||
1742 | # This is the source file. | ||
1743 | ;; | ||
1744 | [ab].out ) | ||
1745 | # We found the default executable, but exeext='' is most | ||
1746 | # certainly right. | ||
1747 | break;; | ||
1748 | *.* ) | ||
1749 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1750 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
1751 | # but it would be cool to find out if it's true. Does anybody | ||
1752 | # maintain Libtool? --akim. | ||
1753 | export ac_cv_exeext | ||
1754 | break;; | ||
1755 | * ) | ||
1756 | break;; | ||
1757 | esac | ||
1758 | done | ||
1759 | else | ||
1760 | echo "$as_me: failed program was:" >&5 | ||
1761 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1762 | |||
1763 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
1764 | See \`config.log' for more details." >&5 | ||
1765 | echo "$as_me: error: C compiler cannot create executables | ||
1766 | See \`config.log' for more details." >&2;} | ||
1767 | { (exit 77); exit 77; }; } | ||
1768 | fi | ||
1769 | |||
1770 | ac_exeext=$ac_cv_exeext | ||
1771 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1772 | echo "${ECHO_T}$ac_file" >&6 | ||
1773 | |||
1774 | # Check the compiler produces executables we can run. If not, either | ||
1775 | # the compiler is broken, or we cross compile. | ||
1776 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1777 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1778 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1779 | # If not cross compiling, check that we can run a simple program. | ||
1780 | if test "$cross_compiling" != yes; then | ||
1781 | if { ac_try='./$ac_file' | ||
1782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1783 | (eval $ac_try) 2>&5 | ||
1784 | ac_status=$? | ||
1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1786 | (exit $ac_status); }; }; then | ||
1787 | cross_compiling=no | ||
1788 | else | ||
1789 | if test "$cross_compiling" = maybe; then | ||
1790 | cross_compiling=yes | ||
1791 | else | ||
1792 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1793 | If you meant to cross compile, use \`--host'. | ||
1794 | See \`config.log' for more details." >&5 | ||
1795 | echo "$as_me: error: cannot run C compiled programs. | ||
1796 | If you meant to cross compile, use \`--host'. | ||
1797 | See \`config.log' for more details." >&2;} | ||
1798 | { (exit 1); exit 1; }; } | ||
1799 | fi | ||
1800 | fi | ||
1801 | fi | ||
1802 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1803 | echo "${ECHO_T}yes" >&6 | ||
1804 | |||
1805 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
1806 | ac_clean_files=$ac_clean_files_save | ||
1807 | # Check the compiler produces executables we can run. If not, either | ||
1808 | # the compiler is broken, or we cross compile. | ||
1809 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1810 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1811 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1812 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1813 | |||
1814 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1815 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1817 | (eval $ac_link) 2>&5 | ||
1818 | ac_status=$? | ||
1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1820 | (exit $ac_status); }; then | ||
1821 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1822 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1823 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1824 | # `rm'. | ||
1825 | for ac_file in conftest.exe conftest conftest.*; do | ||
1826 | test -f "$ac_file" || continue | ||
1827 | case $ac_file in | ||
1828 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
1829 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1830 | export ac_cv_exeext | ||
1831 | break;; | ||
1832 | * ) break;; | ||
1833 | esac | ||
1834 | done | ||
1835 | else | ||
1836 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
1837 | See \`config.log' for more details." >&5 | ||
1838 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
1839 | See \`config.log' for more details." >&2;} | ||
1840 | { (exit 1); exit 1; }; } | ||
1841 | fi | ||
1842 | |||
1843 | rm -f conftest$ac_cv_exeext | ||
1844 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1845 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1846 | |||
1847 | rm -f conftest.$ac_ext | ||
1848 | EXEEXT=$ac_cv_exeext | ||
1849 | ac_exeext=$EXEEXT | ||
1850 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1851 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1852 | if test "${ac_cv_objext+set}" = set; then | ||
1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1854 | else | ||
1855 | cat >conftest.$ac_ext <<_ACEOF | ||
1856 | /* confdefs.h. */ | ||
1857 | _ACEOF | ||
1858 | cat confdefs.h >>conftest.$ac_ext | ||
1859 | cat >>conftest.$ac_ext <<_ACEOF | ||
1860 | /* end confdefs.h. */ | ||
1861 | |||
1862 | int | ||
1863 | main () | ||
1864 | { | ||
1865 | |||
1866 | ; | ||
1867 | return 0; | ||
1868 | } | ||
1869 | _ACEOF | ||
1870 | rm -f conftest.o conftest.obj | ||
1871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1872 | (eval $ac_compile) 2>&5 | ||
1873 | ac_status=$? | ||
1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1875 | (exit $ac_status); }; then | ||
1876 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1877 | case $ac_file in | ||
1878 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
1879 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1880 | break;; | ||
1881 | esac | ||
1882 | done | ||
1883 | else | ||
1884 | echo "$as_me: failed program was:" >&5 | ||
1885 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1886 | |||
1887 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
1888 | See \`config.log' for more details." >&5 | ||
1889 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
1890 | See \`config.log' for more details." >&2;} | ||
1891 | { (exit 1); exit 1; }; } | ||
1892 | fi | ||
1893 | |||
1894 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1895 | fi | ||
1896 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1897 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1898 | OBJEXT=$ac_cv_objext | ||
1899 | ac_objext=$OBJEXT | ||
1900 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1901 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1902 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1904 | else | ||
1905 | cat >conftest.$ac_ext <<_ACEOF | ||
1906 | /* confdefs.h. */ | ||
1907 | _ACEOF | ||
1908 | cat confdefs.h >>conftest.$ac_ext | ||
1909 | cat >>conftest.$ac_ext <<_ACEOF | ||
1910 | /* end confdefs.h. */ | ||
1911 | |||
1912 | int | ||
1913 | main () | ||
1914 | { | ||
1915 | #ifndef __GNUC__ | ||
1916 | choke me | ||
1917 | #endif | ||
1918 | |||
1919 | ; | ||
1920 | return 0; | ||
1921 | } | ||
1922 | _ACEOF | ||
1923 | rm -f conftest.$ac_objext | ||
1924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1925 | (eval $ac_compile) 2>conftest.er1 | ||
1926 | ac_status=$? | ||
1927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1928 | rm -f conftest.er1 | ||
1929 | cat conftest.err >&5 | ||
1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1931 | (exit $ac_status); } && | ||
1932 | { ac_try='test -z "$ac_c_werror_flag" | ||
1933 | || test ! -s conftest.err' | ||
1934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1935 | (eval $ac_try) 2>&5 | ||
1936 | ac_status=$? | ||
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1938 | (exit $ac_status); }; } && | ||
1939 | { ac_try='test -s conftest.$ac_objext' | ||
1940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1941 | (eval $ac_try) 2>&5 | ||
1942 | ac_status=$? | ||
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1944 | (exit $ac_status); }; }; then | ||
1945 | ac_compiler_gnu=yes | ||
1946 | else | ||
1947 | echo "$as_me: failed program was:" >&5 | ||
1948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1949 | |||
1950 | ac_compiler_gnu=no | ||
1951 | fi | ||
1952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1953 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1954 | |||
1955 | fi | ||
1956 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1957 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1958 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1959 | ac_test_CFLAGS=${CFLAGS+set} | ||
1960 | ac_save_CFLAGS=$CFLAGS | ||
1961 | CFLAGS="-g" | ||
1962 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1963 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1964 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1966 | else | ||
1967 | cat >conftest.$ac_ext <<_ACEOF | ||
1968 | /* confdefs.h. */ | ||
1969 | _ACEOF | ||
1970 | cat confdefs.h >>conftest.$ac_ext | ||
1971 | cat >>conftest.$ac_ext <<_ACEOF | ||
1972 | /* end confdefs.h. */ | ||
1973 | |||
1974 | int | ||
1975 | main () | ||
1976 | { | ||
1977 | |||
1978 | ; | ||
1979 | return 0; | ||
1980 | } | ||
1981 | _ACEOF | ||
1982 | rm -f conftest.$ac_objext | ||
1983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1984 | (eval $ac_compile) 2>conftest.er1 | ||
1985 | ac_status=$? | ||
1986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1987 | rm -f conftest.er1 | ||
1988 | cat conftest.err >&5 | ||
1989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1990 | (exit $ac_status); } && | ||
1991 | { ac_try='test -z "$ac_c_werror_flag" | ||
1992 | || test ! -s conftest.err' | ||
1993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1994 | (eval $ac_try) 2>&5 | ||
1995 | ac_status=$? | ||
1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1997 | (exit $ac_status); }; } && | ||
1998 | { ac_try='test -s conftest.$ac_objext' | ||
1999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2000 | (eval $ac_try) 2>&5 | ||
2001 | ac_status=$? | ||
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2003 | (exit $ac_status); }; }; then | ||
2004 | ac_cv_prog_cc_g=yes | ||
2005 | else | ||
2006 | echo "$as_me: failed program was:" >&5 | ||
2007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2008 | |||
2009 | ac_cv_prog_cc_g=no | ||
2010 | fi | ||
2011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2012 | fi | ||
2013 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2014 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2015 | if test "$ac_test_CFLAGS" = set; then | ||
2016 | CFLAGS=$ac_save_CFLAGS | ||
2017 | elif test $ac_cv_prog_cc_g = yes; then | ||
2018 | if test "$GCC" = yes; then | ||
2019 | CFLAGS="-g -O2" | ||
2020 | else | ||
2021 | CFLAGS="-g" | ||
2022 | fi | ||
2023 | else | ||
2024 | if test "$GCC" = yes; then | ||
2025 | CFLAGS="-O2" | ||
2026 | else | ||
2027 | CFLAGS= | ||
2028 | fi | ||
2029 | fi | ||
2030 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2031 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2032 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2034 | else | ||
2035 | ac_cv_prog_cc_stdc=no | ||
2036 | ac_save_CC=$CC | ||
2037 | cat >conftest.$ac_ext <<_ACEOF | ||
2038 | /* confdefs.h. */ | ||
2039 | _ACEOF | ||
2040 | cat confdefs.h >>conftest.$ac_ext | ||
2041 | cat >>conftest.$ac_ext <<_ACEOF | ||
2042 | /* end confdefs.h. */ | ||
2043 | #include <stdarg.h> | ||
2044 | #include <stdio.h> | ||
2045 | #include <sys/types.h> | ||
2046 | #include <sys/stat.h> | ||
2047 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2048 | struct buf { int x; }; | ||
2049 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2050 | static char *e (p, i) | ||
2051 | char **p; | ||
2052 | int i; | ||
2053 | { | ||
2054 | return p[i]; | ||
2055 | } | ||
2056 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2057 | { | ||
2058 | char *s; | ||
2059 | va_list v; | ||
2060 | va_start (v,p); | ||
2061 | s = g (p, va_arg (v,int)); | ||
2062 | va_end (v); | ||
2063 | return s; | ||
2064 | } | ||
2065 | |||
2066 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2067 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2068 | These don't provoke an error unfortunately, instead are silently treated | ||
2069 | as 'x'. The following induces an error, until -std1 is added to get | ||
2070 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2071 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2072 | that's true only with -std1. */ | ||
2073 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2074 | |||
2075 | int test (int i, double x); | ||
2076 | struct s1 {int (*f) (int a);}; | ||
2077 | struct s2 {int (*f) (double a);}; | ||
2078 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2079 | int argc; | ||
2080 | char **argv; | ||
2081 | int | ||
2082 | main () | ||
2083 | { | ||
2084 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2085 | ; | ||
2086 | return 0; | ||
2087 | } | ||
2088 | _ACEOF | ||
2089 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2090 | # breaks some systems' header files. | ||
2091 | # AIX -qlanglvl=ansi | ||
2092 | # Ultrix and OSF/1 -std1 | ||
2093 | # HP-UX 10.20 and later -Ae | ||
2094 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2095 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2096 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2097 | do | ||
2098 | CC="$ac_save_CC $ac_arg" | ||
2099 | rm -f conftest.$ac_objext | ||
2100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2101 | (eval $ac_compile) 2>conftest.er1 | ||
2102 | ac_status=$? | ||
2103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2104 | rm -f conftest.er1 | ||
2105 | cat conftest.err >&5 | ||
2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2107 | (exit $ac_status); } && | ||
2108 | { ac_try='test -z "$ac_c_werror_flag" | ||
2109 | || test ! -s conftest.err' | ||
2110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2111 | (eval $ac_try) 2>&5 | ||
2112 | ac_status=$? | ||
2113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2114 | (exit $ac_status); }; } && | ||
2115 | { ac_try='test -s conftest.$ac_objext' | ||
2116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2117 | (eval $ac_try) 2>&5 | ||
2118 | ac_status=$? | ||
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2120 | (exit $ac_status); }; }; then | ||
2121 | ac_cv_prog_cc_stdc=$ac_arg | ||
2122 | break | ||
2123 | else | ||
2124 | echo "$as_me: failed program was:" >&5 | ||
2125 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2126 | |||
2127 | fi | ||
2128 | rm -f conftest.err conftest.$ac_objext | ||
2129 | done | ||
2130 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2131 | CC=$ac_save_CC | ||
2132 | |||
2133 | fi | ||
2134 | |||
2135 | case "x$ac_cv_prog_cc_stdc" in | ||
2136 | x|xno) | ||
2137 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2138 | echo "${ECHO_T}none needed" >&6 ;; | ||
2139 | *) | ||
2140 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2141 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2142 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2143 | esac | ||
2144 | |||
2145 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2146 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2147 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2148 | # the declaration of exit, since it's the most demanding environment. | ||
2149 | cat >conftest.$ac_ext <<_ACEOF | ||
2150 | #ifndef __cplusplus | ||
2151 | choke me | ||
2152 | #endif | ||
2153 | _ACEOF | ||
2154 | rm -f conftest.$ac_objext | ||
2155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2156 | (eval $ac_compile) 2>conftest.er1 | ||
2157 | ac_status=$? | ||
2158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2159 | rm -f conftest.er1 | ||
2160 | cat conftest.err >&5 | ||
2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2162 | (exit $ac_status); } && | ||
2163 | { ac_try='test -z "$ac_c_werror_flag" | ||
2164 | || test ! -s conftest.err' | ||
2165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2166 | (eval $ac_try) 2>&5 | ||
2167 | ac_status=$? | ||
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2169 | (exit $ac_status); }; } && | ||
2170 | { ac_try='test -s conftest.$ac_objext' | ||
2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2172 | (eval $ac_try) 2>&5 | ||
2173 | ac_status=$? | ||
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2175 | (exit $ac_status); }; }; then | ||
2176 | for ac_declaration in \ | ||
2177 | '' \ | ||
2178 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2179 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2180 | 'extern "C" void exit (int) throw ();' \ | ||
2181 | 'extern "C" void exit (int);' \ | ||
2182 | 'void exit (int);' | ||
2183 | do | ||
2184 | cat >conftest.$ac_ext <<_ACEOF | ||
2185 | /* confdefs.h. */ | ||
2186 | _ACEOF | ||
2187 | cat confdefs.h >>conftest.$ac_ext | ||
2188 | cat >>conftest.$ac_ext <<_ACEOF | ||
2189 | /* end confdefs.h. */ | ||
2190 | $ac_declaration | ||
2191 | #include <stdlib.h> | ||
2192 | int | ||
2193 | main () | ||
2194 | { | ||
2195 | exit (42); | ||
2196 | ; | ||
2197 | return 0; | ||
2198 | } | ||
2199 | _ACEOF | ||
2200 | rm -f conftest.$ac_objext | ||
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2202 | (eval $ac_compile) 2>conftest.er1 | ||
2203 | ac_status=$? | ||
2204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2205 | rm -f conftest.er1 | ||
2206 | cat conftest.err >&5 | ||
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2208 | (exit $ac_status); } && | ||
2209 | { ac_try='test -z "$ac_c_werror_flag" | ||
2210 | || test ! -s conftest.err' | ||
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2212 | (eval $ac_try) 2>&5 | ||
2213 | ac_status=$? | ||
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2215 | (exit $ac_status); }; } && | ||
2216 | { ac_try='test -s conftest.$ac_objext' | ||
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2218 | (eval $ac_try) 2>&5 | ||
2219 | ac_status=$? | ||
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2221 | (exit $ac_status); }; }; then | ||
2222 | : | ||
2223 | else | ||
2224 | echo "$as_me: failed program was:" >&5 | ||
2225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2226 | |||
2227 | continue | ||
2228 | fi | ||
2229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2230 | cat >conftest.$ac_ext <<_ACEOF | ||
2231 | /* confdefs.h. */ | ||
2232 | _ACEOF | ||
2233 | cat confdefs.h >>conftest.$ac_ext | ||
2234 | cat >>conftest.$ac_ext <<_ACEOF | ||
2235 | /* end confdefs.h. */ | ||
2236 | $ac_declaration | ||
2237 | int | ||
2238 | main () | ||
2239 | { | ||
2240 | exit (42); | ||
2241 | ; | ||
2242 | return 0; | ||
2243 | } | ||
2244 | _ACEOF | ||
2245 | rm -f conftest.$ac_objext | ||
2246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2247 | (eval $ac_compile) 2>conftest.er1 | ||
2248 | ac_status=$? | ||
2249 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2250 | rm -f conftest.er1 | ||
2251 | cat conftest.err >&5 | ||
2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2253 | (exit $ac_status); } && | ||
2254 | { ac_try='test -z "$ac_c_werror_flag" | ||
2255 | || test ! -s conftest.err' | ||
2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2257 | (eval $ac_try) 2>&5 | ||
2258 | ac_status=$? | ||
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2260 | (exit $ac_status); }; } && | ||
2261 | { ac_try='test -s conftest.$ac_objext' | ||
2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2263 | (eval $ac_try) 2>&5 | ||
2264 | ac_status=$? | ||
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2266 | (exit $ac_status); }; }; then | ||
2267 | break | ||
2268 | else | ||
2269 | echo "$as_me: failed program was:" >&5 | ||
2270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2271 | |||
2272 | fi | ||
2273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2274 | done | ||
2275 | rm -f conftest* | ||
2276 | if test -n "$ac_declaration"; then | ||
2277 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2278 | echo $ac_declaration >>confdefs.h | ||
2279 | echo '#endif' >>confdefs.h | ||
2280 | fi | ||
2281 | |||
2282 | else | ||
2283 | echo "$as_me: failed program was:" >&5 | ||
2284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2285 | |||
2286 | fi | ||
2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2288 | ac_ext=c | ||
2289 | ac_cpp='$CPP $CPPFLAGS' | ||
2290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2293 | |||
2294 | ac_aux_dir= | ||
2295 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2296 | if 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/install.sh; then | ||
2301 | ac_aux_dir=$ac_dir | ||
2302 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2303 | break | ||
2304 | elif test -f $ac_dir/shtool; then | ||
2305 | ac_aux_dir=$ac_dir | ||
2306 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2307 | break | ||
2308 | fi | ||
2309 | done | ||
2310 | if test -z "$ac_aux_dir"; then | ||
2311 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2312 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2313 | { (exit 1); exit 1; }; } | ||
2314 | fi | ||
2315 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2316 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2317 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2318 | |||
2319 | # Make sure we can run config.sub. | ||
2320 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2321 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2322 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2323 | { (exit 1); exit 1; }; } | ||
2324 | |||
2325 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2326 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2327 | if test "${ac_cv_build+set}" = set; then | ||
2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2329 | else | ||
2330 | ac_cv_build_alias=$build_alias | ||
2331 | test -z "$ac_cv_build_alias" && | ||
2332 | ac_cv_build_alias=`$ac_config_guess` | ||
2333 | test -z "$ac_cv_build_alias" && | ||
2334 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2335 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2336 | { (exit 1); exit 1; }; } | ||
2337 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2338 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2339 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2340 | { (exit 1); exit 1; }; } | ||
2341 | |||
2342 | fi | ||
2343 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2344 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2345 | build=$ac_cv_build | ||
2346 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2347 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2348 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2349 | |||
2350 | |||
2351 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2352 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2353 | if test "${ac_cv_host+set}" = set; then | ||
2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2355 | else | ||
2356 | ac_cv_host_alias=$host_alias | ||
2357 | test -z "$ac_cv_host_alias" && | ||
2358 | ac_cv_host_alias=$ac_cv_build_alias | ||
2359 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2360 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2361 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2362 | { (exit 1); exit 1; }; } | ||
2363 | |||
2364 | fi | ||
2365 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2366 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2367 | host=$ac_cv_host | ||
2368 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2369 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2370 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2371 | |||
2372 | |||
2373 | |||
2374 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2375 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2376 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2378 | else | ||
2379 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2380 | cat >conftest.$ac_ext <<_ACEOF | ||
2381 | /* confdefs.h. */ | ||
2382 | _ACEOF | ||
2383 | cat confdefs.h >>conftest.$ac_ext | ||
2384 | cat >>conftest.$ac_ext <<_ACEOF | ||
2385 | /* end confdefs.h. */ | ||
2386 | #include <sys/types.h> | ||
2387 | #include <sys/param.h> | ||
2388 | |||
2389 | int | ||
2390 | main () | ||
2391 | { | ||
2392 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2393 | bogus endian macros | ||
2394 | #endif | ||
2395 | |||
2396 | ; | ||
2397 | return 0; | ||
2398 | } | ||
2399 | _ACEOF | ||
2400 | rm -f conftest.$ac_objext | ||
2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2402 | (eval $ac_compile) 2>conftest.er1 | ||
2403 | ac_status=$? | ||
2404 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2405 | rm -f conftest.er1 | ||
2406 | cat conftest.err >&5 | ||
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2408 | (exit $ac_status); } && | ||
2409 | { ac_try='test -z "$ac_c_werror_flag" | ||
2410 | || test ! -s conftest.err' | ||
2411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2412 | (eval $ac_try) 2>&5 | ||
2413 | ac_status=$? | ||
2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2415 | (exit $ac_status); }; } && | ||
2416 | { ac_try='test -s conftest.$ac_objext' | ||
2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2418 | (eval $ac_try) 2>&5 | ||
2419 | ac_status=$? | ||
2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2421 | (exit $ac_status); }; }; then | ||
2422 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2423 | cat >conftest.$ac_ext <<_ACEOF | ||
2424 | /* confdefs.h. */ | ||
2425 | _ACEOF | ||
2426 | cat confdefs.h >>conftest.$ac_ext | ||
2427 | cat >>conftest.$ac_ext <<_ACEOF | ||
2428 | /* end confdefs.h. */ | ||
2429 | #include <sys/types.h> | ||
2430 | #include <sys/param.h> | ||
2431 | |||
2432 | int | ||
2433 | main () | ||
2434 | { | ||
2435 | #if BYTE_ORDER != BIG_ENDIAN | ||
2436 | not big endian | ||
2437 | #endif | ||
2438 | |||
2439 | ; | ||
2440 | return 0; | ||
2441 | } | ||
2442 | _ACEOF | ||
2443 | rm -f conftest.$ac_objext | ||
2444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2445 | (eval $ac_compile) 2>conftest.er1 | ||
2446 | ac_status=$? | ||
2447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2448 | rm -f conftest.er1 | ||
2449 | cat conftest.err >&5 | ||
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2451 | (exit $ac_status); } && | ||
2452 | { ac_try='test -z "$ac_c_werror_flag" | ||
2453 | || test ! -s conftest.err' | ||
2454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2455 | (eval $ac_try) 2>&5 | ||
2456 | ac_status=$? | ||
2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2458 | (exit $ac_status); }; } && | ||
2459 | { ac_try='test -s conftest.$ac_objext' | ||
2460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2461 | (eval $ac_try) 2>&5 | ||
2462 | ac_status=$? | ||
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2464 | (exit $ac_status); }; }; then | ||
2465 | ac_cv_c_bigendian=yes | ||
2466 | else | ||
2467 | echo "$as_me: failed program was:" >&5 | ||
2468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2469 | |||
2470 | ac_cv_c_bigendian=no | ||
2471 | fi | ||
2472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2473 | else | ||
2474 | echo "$as_me: failed program was:" >&5 | ||
2475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2476 | |||
2477 | # It does not; compile a test program. | ||
2478 | if test "$cross_compiling" = yes; then | ||
2479 | # try to guess the endianness by grepping values into an object file | ||
2480 | ac_cv_c_bigendian=unknown | ||
2481 | cat >conftest.$ac_ext <<_ACEOF | ||
2482 | /* confdefs.h. */ | ||
2483 | _ACEOF | ||
2484 | cat confdefs.h >>conftest.$ac_ext | ||
2485 | cat >>conftest.$ac_ext <<_ACEOF | ||
2486 | /* end confdefs.h. */ | ||
2487 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2488 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2489 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2490 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2491 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2492 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2493 | int | ||
2494 | main () | ||
2495 | { | ||
2496 | _ascii (); _ebcdic (); | ||
2497 | ; | ||
2498 | return 0; | ||
2499 | } | ||
2500 | _ACEOF | ||
2501 | rm -f conftest.$ac_objext | ||
2502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2503 | (eval $ac_compile) 2>conftest.er1 | ||
2504 | ac_status=$? | ||
2505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2506 | rm -f conftest.er1 | ||
2507 | cat conftest.err >&5 | ||
2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2509 | (exit $ac_status); } && | ||
2510 | { ac_try='test -z "$ac_c_werror_flag" | ||
2511 | || test ! -s conftest.err' | ||
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2513 | (eval $ac_try) 2>&5 | ||
2514 | ac_status=$? | ||
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2516 | (exit $ac_status); }; } && | ||
2517 | { ac_try='test -s conftest.$ac_objext' | ||
2518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2519 | (eval $ac_try) 2>&5 | ||
2520 | ac_status=$? | ||
2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2522 | (exit $ac_status); }; }; then | ||
2523 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2524 | ac_cv_c_bigendian=yes | ||
2525 | fi | ||
2526 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2527 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2528 | ac_cv_c_bigendian=no | ||
2529 | else | ||
2530 | # finding both strings is unlikely to happen, but who knows? | ||
2531 | ac_cv_c_bigendian=unknown | ||
2532 | fi | ||
2533 | fi | ||
2534 | else | ||
2535 | echo "$as_me: failed program was:" >&5 | ||
2536 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2537 | |||
2538 | fi | ||
2539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2540 | else | ||
2541 | cat >conftest.$ac_ext <<_ACEOF | ||
2542 | /* confdefs.h. */ | ||
2543 | _ACEOF | ||
2544 | cat confdefs.h >>conftest.$ac_ext | ||
2545 | cat >>conftest.$ac_ext <<_ACEOF | ||
2546 | /* end confdefs.h. */ | ||
2547 | int | ||
2548 | main () | ||
2549 | { | ||
2550 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2551 | union | ||
2552 | { | ||
2553 | long l; | ||
2554 | char c[sizeof (long)]; | ||
2555 | } u; | ||
2556 | u.l = 1; | ||
2557 | exit (u.c[sizeof (long) - 1] == 1); | ||
2558 | } | ||
2559 | _ACEOF | ||
2560 | rm -f conftest$ac_exeext | ||
2561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2562 | (eval $ac_link) 2>&5 | ||
2563 | ac_status=$? | ||
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2567 | (eval $ac_try) 2>&5 | ||
2568 | ac_status=$? | ||
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2570 | (exit $ac_status); }; }; then | ||
2571 | ac_cv_c_bigendian=no | ||
2572 | else | ||
2573 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2574 | echo "$as_me: failed program was:" >&5 | ||
2575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2576 | |||
2577 | ( exit $ac_status ) | ||
2578 | ac_cv_c_bigendian=yes | ||
2579 | fi | ||
2580 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2581 | fi | ||
2582 | fi | ||
2583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2584 | fi | ||
2585 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2586 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2587 | case $ac_cv_c_bigendian in | ||
2588 | yes) | ||
2589 | |||
2590 | cat >>confdefs.h <<\_ACEOF | ||
2591 | #define WORDS_BIGENDIAN 1 | ||
2592 | _ACEOF | ||
2593 | ;; | ||
2594 | no) | ||
2595 | ;; | ||
2596 | *) | ||
2597 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
2598 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2599 | echo "$as_me: error: unknown endianness | ||
2600 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2601 | { (exit 1); exit 1; }; } ;; | ||
2602 | esac | ||
2603 | |||
2604 | |||
2605 | # Checks for programs. | ||
2606 | for ac_prog in gawk mawk nawk awk | ||
2607 | do | ||
2608 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2609 | set dummy $ac_prog; ac_word=$2 | ||
2610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2612 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2614 | else | ||
2615 | if test -n "$AWK"; then | ||
2616 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2617 | else | ||
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2619 | for as_dir in $PATH | ||
2620 | do | ||
2621 | IFS=$as_save_IFS | ||
2622 | test -z "$as_dir" && as_dir=. | ||
2623 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2625 | ac_cv_prog_AWK="$ac_prog" | ||
2626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2627 | break 2 | ||
2628 | fi | ||
2629 | done | ||
2630 | done | ||
2631 | |||
2632 | fi | ||
2633 | fi | ||
2634 | AWK=$ac_cv_prog_AWK | ||
2635 | if test -n "$AWK"; then | ||
2636 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2637 | echo "${ECHO_T}$AWK" >&6 | ||
2638 | else | ||
2639 | echo "$as_me:$LINENO: result: no" >&5 | ||
2640 | echo "${ECHO_T}no" >&6 | ||
2641 | fi | ||
2642 | |||
2643 | test -n "$AWK" && break | ||
2644 | done | ||
2645 | |||
2646 | ac_ext=c | ||
2647 | ac_cpp='$CPP $CPPFLAGS' | ||
2648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2651 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2652 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2653 | # On Suns, sometimes $CPP names a directory. | ||
2654 | if test -n "$CPP" && test -d "$CPP"; then | ||
2655 | CPP= | ||
2656 | fi | ||
2657 | if test -z "$CPP"; then | ||
2658 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2660 | else | ||
2661 | # Double quotes because CPP needs to be expanded | ||
2662 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2663 | do | ||
2664 | ac_preproc_ok=false | ||
2665 | for ac_c_preproc_warn_flag in '' yes | ||
2666 | do | ||
2667 | # Use a header file that comes with gcc, so configuring glibc | ||
2668 | # with a fresh cross-compiler works. | ||
2669 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2670 | # <limits.h> exists even on freestanding compilers. | ||
2671 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2672 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2673 | cat >conftest.$ac_ext <<_ACEOF | ||
2674 | /* confdefs.h. */ | ||
2675 | _ACEOF | ||
2676 | cat confdefs.h >>conftest.$ac_ext | ||
2677 | cat >>conftest.$ac_ext <<_ACEOF | ||
2678 | /* end confdefs.h. */ | ||
2679 | #ifdef __STDC__ | ||
2680 | # include <limits.h> | ||
2681 | #else | ||
2682 | # include <assert.h> | ||
2683 | #endif | ||
2684 | Syntax error | ||
2685 | _ACEOF | ||
2686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2688 | ac_status=$? | ||
2689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2690 | rm -f conftest.er1 | ||
2691 | cat conftest.err >&5 | ||
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2693 | (exit $ac_status); } >/dev/null; then | ||
2694 | if test -s conftest.err; then | ||
2695 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2696 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2697 | else | ||
2698 | ac_cpp_err= | ||
2699 | fi | ||
2700 | else | ||
2701 | ac_cpp_err=yes | ||
2702 | fi | ||
2703 | if test -z "$ac_cpp_err"; then | ||
2704 | : | ||
2705 | else | ||
2706 | echo "$as_me: failed program was:" >&5 | ||
2707 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2708 | |||
2709 | # Broken: fails on valid input. | ||
2710 | continue | ||
2711 | fi | ||
2712 | rm -f conftest.err conftest.$ac_ext | ||
2713 | |||
2714 | # OK, works on sane cases. Now check whether non-existent headers | ||
2715 | # can be detected and how. | ||
2716 | cat >conftest.$ac_ext <<_ACEOF | ||
2717 | /* confdefs.h. */ | ||
2718 | _ACEOF | ||
2719 | cat confdefs.h >>conftest.$ac_ext | ||
2720 | cat >>conftest.$ac_ext <<_ACEOF | ||
2721 | /* end confdefs.h. */ | ||
2722 | #include <ac_nonexistent.h> | ||
2723 | _ACEOF | ||
2724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2726 | ac_status=$? | ||
2727 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2728 | rm -f conftest.er1 | ||
2729 | cat conftest.err >&5 | ||
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2731 | (exit $ac_status); } >/dev/null; then | ||
2732 | if test -s conftest.err; then | ||
2733 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2735 | else | ||
2736 | ac_cpp_err= | ||
2737 | fi | ||
2738 | else | ||
2739 | ac_cpp_err=yes | ||
2740 | fi | ||
2741 | if test -z "$ac_cpp_err"; then | ||
2742 | # Broken: success on invalid input. | ||
2743 | continue | ||
2744 | else | ||
2745 | echo "$as_me: failed program was:" >&5 | ||
2746 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2747 | |||
2748 | # Passes both tests. | ||
2749 | ac_preproc_ok=: | ||
2750 | break | ||
2751 | fi | ||
2752 | rm -f conftest.err conftest.$ac_ext | ||
2753 | |||
2754 | done | ||
2755 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2756 | rm -f conftest.err conftest.$ac_ext | ||
2757 | if $ac_preproc_ok; then | ||
2758 | break | ||
2759 | fi | ||
2760 | |||
2761 | done | ||
2762 | ac_cv_prog_CPP=$CPP | ||
2763 | |||
2764 | fi | ||
2765 | CPP=$ac_cv_prog_CPP | ||
2766 | else | ||
2767 | ac_cv_prog_CPP=$CPP | ||
2768 | fi | ||
2769 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2770 | echo "${ECHO_T}$CPP" >&6 | ||
2771 | ac_preproc_ok=false | ||
2772 | for ac_c_preproc_warn_flag in '' yes | ||
2773 | do | ||
2774 | # Use a header file that comes with gcc, so configuring glibc | ||
2775 | # with a fresh cross-compiler works. | ||
2776 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2777 | # <limits.h> exists even on freestanding compilers. | ||
2778 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2779 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2780 | cat >conftest.$ac_ext <<_ACEOF | ||
2781 | /* confdefs.h. */ | ||
2782 | _ACEOF | ||
2783 | cat confdefs.h >>conftest.$ac_ext | ||
2784 | cat >>conftest.$ac_ext <<_ACEOF | ||
2785 | /* end confdefs.h. */ | ||
2786 | #ifdef __STDC__ | ||
2787 | # include <limits.h> | ||
2788 | #else | ||
2789 | # include <assert.h> | ||
2790 | #endif | ||
2791 | Syntax error | ||
2792 | _ACEOF | ||
2793 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2794 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2795 | ac_status=$? | ||
2796 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2797 | rm -f conftest.er1 | ||
2798 | cat conftest.err >&5 | ||
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2800 | (exit $ac_status); } >/dev/null; then | ||
2801 | if test -s conftest.err; then | ||
2802 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2803 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2804 | else | ||
2805 | ac_cpp_err= | ||
2806 | fi | ||
2807 | else | ||
2808 | ac_cpp_err=yes | ||
2809 | fi | ||
2810 | if test -z "$ac_cpp_err"; then | ||
2811 | : | ||
2812 | else | ||
2813 | echo "$as_me: failed program was:" >&5 | ||
2814 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2815 | |||
2816 | # Broken: fails on valid input. | ||
2817 | continue | ||
2818 | fi | ||
2819 | rm -f conftest.err conftest.$ac_ext | ||
2820 | |||
2821 | # OK, works on sane cases. Now check whether non-existent headers | ||
2822 | # can be detected and how. | ||
2823 | cat >conftest.$ac_ext <<_ACEOF | ||
2824 | /* confdefs.h. */ | ||
2825 | _ACEOF | ||
2826 | cat confdefs.h >>conftest.$ac_ext | ||
2827 | cat >>conftest.$ac_ext <<_ACEOF | ||
2828 | /* end confdefs.h. */ | ||
2829 | #include <ac_nonexistent.h> | ||
2830 | _ACEOF | ||
2831 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2833 | ac_status=$? | ||
2834 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2835 | rm -f conftest.er1 | ||
2836 | cat conftest.err >&5 | ||
2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2838 | (exit $ac_status); } >/dev/null; then | ||
2839 | if test -s conftest.err; then | ||
2840 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2841 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2842 | else | ||
2843 | ac_cpp_err= | ||
2844 | fi | ||
2845 | else | ||
2846 | ac_cpp_err=yes | ||
2847 | fi | ||
2848 | if test -z "$ac_cpp_err"; then | ||
2849 | # Broken: success on invalid input. | ||
2850 | continue | ||
2851 | else | ||
2852 | echo "$as_me: failed program was:" >&5 | ||
2853 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2854 | |||
2855 | # Passes both tests. | ||
2856 | ac_preproc_ok=: | ||
2857 | break | ||
2858 | fi | ||
2859 | rm -f conftest.err conftest.$ac_ext | ||
2860 | |||
2861 | done | ||
2862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2863 | rm -f conftest.err conftest.$ac_ext | ||
2864 | if $ac_preproc_ok; then | ||
2865 | : | ||
2866 | else | ||
2867 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
2868 | See \`config.log' for more details." >&5 | ||
2869 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
2870 | See \`config.log' for more details." >&2;} | ||
2871 | { (exit 1); exit 1; }; } | ||
2872 | fi | ||
2873 | |||
2874 | ac_ext=c | ||
2875 | ac_cpp='$CPP $CPPFLAGS' | ||
2876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2879 | |||
2880 | if test -n "$ac_tool_prefix"; then | ||
2881 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2882 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2885 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2887 | else | ||
2888 | if test -n "$RANLIB"; then | ||
2889 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2890 | else | ||
2891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2892 | for as_dir in $PATH | ||
2893 | do | ||
2894 | IFS=$as_save_IFS | ||
2895 | test -z "$as_dir" && as_dir=. | ||
2896 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2900 | break 2 | ||
2901 | fi | ||
2902 | done | ||
2903 | done | ||
2904 | |||
2905 | fi | ||
2906 | fi | ||
2907 | RANLIB=$ac_cv_prog_RANLIB | ||
2908 | if test -n "$RANLIB"; then | ||
2909 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2910 | echo "${ECHO_T}$RANLIB" >&6 | ||
2911 | else | ||
2912 | echo "$as_me:$LINENO: result: no" >&5 | ||
2913 | echo "${ECHO_T}no" >&6 | ||
2914 | fi | ||
2915 | |||
2916 | fi | ||
2917 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2918 | ac_ct_RANLIB=$RANLIB | ||
2919 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2920 | set dummy ranlib; ac_word=$2 | ||
2921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2923 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2925 | else | ||
2926 | if test -n "$ac_ct_RANLIB"; then | ||
2927 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2928 | else | ||
2929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2930 | for as_dir in $PATH | ||
2931 | do | ||
2932 | IFS=$as_save_IFS | ||
2933 | test -z "$as_dir" && as_dir=. | ||
2934 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2936 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2938 | break 2 | ||
2939 | fi | ||
2940 | done | ||
2941 | done | ||
2942 | |||
2943 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2944 | fi | ||
2945 | fi | ||
2946 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2947 | if test -n "$ac_ct_RANLIB"; then | ||
2948 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2949 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2950 | else | ||
2951 | echo "$as_me:$LINENO: result: no" >&5 | ||
2952 | echo "${ECHO_T}no" >&6 | ||
2953 | fi | ||
2954 | |||
2955 | RANLIB=$ac_ct_RANLIB | ||
2956 | else | ||
2957 | RANLIB="$ac_cv_prog_RANLIB" | ||
2958 | fi | ||
2959 | |||
2960 | # Find a good install program. We prefer a C program (faster), | ||
2961 | # so one script is as good as another. But avoid the broken or | ||
2962 | # incompatible versions: | ||
2963 | # SysV /etc/install, /usr/sbin/install | ||
2964 | # SunOS /usr/etc/install | ||
2965 | # IRIX /sbin/install | ||
2966 | # AIX /bin/install | ||
2967 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2968 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2969 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2970 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2971 | # OS/2's system install, which has a completely different semantic | ||
2972 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2973 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2974 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2975 | if test -z "$INSTALL"; then | ||
2976 | if test "${ac_cv_path_install+set}" = set; then | ||
2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2978 | else | ||
2979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2980 | for as_dir in $PATH | ||
2981 | do | ||
2982 | IFS=$as_save_IFS | ||
2983 | test -z "$as_dir" && as_dir=. | ||
2984 | # Account for people who put trailing slashes in PATH elements. | ||
2985 | case $as_dir/ in | ||
2986 | ./ | .// | /cC/* | \ | ||
2987 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2988 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2989 | /usr/ucb/* ) ;; | ||
2990 | *) | ||
2991 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2992 | # Don't use installbsd from OSF since it installs stuff as root | ||
2993 | # by default. | ||
2994 | for ac_prog in ginstall scoinst install; do | ||
2995 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2996 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2997 | if test $ac_prog = install && | ||
2998 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2999 | # AIX install. It has an incompatible calling convention. | ||
3000 | : | ||
3001 | elif test $ac_prog = install && | ||
3002 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3003 | # program-specific install script used by HP pwplus--don't use. | ||
3004 | : | ||
3005 | else | ||
3006 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3007 | break 3 | ||
3008 | fi | ||
3009 | fi | ||
3010 | done | ||
3011 | done | ||
3012 | ;; | ||
3013 | esac | ||
3014 | done | ||
3015 | |||
3016 | |||
3017 | fi | ||
3018 | if test "${ac_cv_path_install+set}" = set; then | ||
3019 | INSTALL=$ac_cv_path_install | ||
3020 | else | ||
3021 | # As a last resort, use the slow shell script. We don't cache a | ||
3022 | # path for INSTALL within a source directory, because that will | ||
3023 | # break other packages using the cache if that directory is | ||
3024 | # removed, or if the path is relative. | ||
3025 | INSTALL=$ac_install_sh | ||
3026 | fi | ||
3027 | fi | ||
3028 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
3029 | echo "${ECHO_T}$INSTALL" >&6 | ||
3030 | |||
3031 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3032 | # It thinks the first close brace ends the variable substitution. | ||
3033 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3034 | |||
3035 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3036 | |||
3037 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3038 | |||
3039 | # Extract the first word of "ar", so it can be a program name with args. | ||
3040 | set dummy ar; ac_word=$2 | ||
3041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3043 | if test "${ac_cv_path_AR+set}" = set; then | ||
3044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3045 | else | ||
3046 | case $AR in | ||
3047 | [\\/]* | ?:[\\/]*) | ||
3048 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
3049 | ;; | ||
3050 | *) | ||
3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3052 | for as_dir in $PATH | ||
3053 | do | ||
3054 | IFS=$as_save_IFS | ||
3055 | test -z "$as_dir" && as_dir=. | ||
3056 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3058 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
3059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3060 | break 2 | ||
3061 | fi | ||
3062 | done | ||
3063 | done | ||
3064 | |||
3065 | ;; | ||
3066 | esac | ||
3067 | fi | ||
3068 | AR=$ac_cv_path_AR | ||
3069 | |||
3070 | if test -n "$AR"; then | ||
3071 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
3072 | echo "${ECHO_T}$AR" >&6 | ||
3073 | else | ||
3074 | echo "$as_me:$LINENO: result: no" >&5 | ||
3075 | echo "${ECHO_T}no" >&6 | ||
3076 | fi | ||
3077 | |||
3078 | # Extract the first word of "cat", so it can be a program name with args. | ||
3079 | set dummy cat; ac_word=$2 | ||
3080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3082 | if test "${ac_cv_path_CAT+set}" = set; then | ||
3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3084 | else | ||
3085 | case $CAT in | ||
3086 | [\\/]* | ?:[\\/]*) | ||
3087 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
3088 | ;; | ||
3089 | *) | ||
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3091 | for as_dir in $PATH | ||
3092 | do | ||
3093 | IFS=$as_save_IFS | ||
3094 | test -z "$as_dir" && as_dir=. | ||
3095 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3097 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
3098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3099 | break 2 | ||
3100 | fi | ||
3101 | done | ||
3102 | done | ||
3103 | |||
3104 | ;; | ||
3105 | esac | ||
3106 | fi | ||
3107 | CAT=$ac_cv_path_CAT | ||
3108 | |||
3109 | if test -n "$CAT"; then | ||
3110 | echo "$as_me:$LINENO: result: $CAT" >&5 | ||
3111 | echo "${ECHO_T}$CAT" >&6 | ||
3112 | else | ||
3113 | echo "$as_me:$LINENO: result: no" >&5 | ||
3114 | echo "${ECHO_T}no" >&6 | ||
3115 | fi | ||
3116 | |||
3117 | # Extract the first word of "kill", so it can be a program name with args. | ||
3118 | set dummy kill; ac_word=$2 | ||
3119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3121 | if test "${ac_cv_path_KILL+set}" = set; then | ||
3122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3123 | else | ||
3124 | case $KILL in | ||
3125 | [\\/]* | ?:[\\/]*) | ||
3126 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
3127 | ;; | ||
3128 | *) | ||
3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3130 | for as_dir in $PATH | ||
3131 | do | ||
3132 | IFS=$as_save_IFS | ||
3133 | test -z "$as_dir" && as_dir=. | ||
3134 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3136 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
3137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3138 | break 2 | ||
3139 | fi | ||
3140 | done | ||
3141 | done | ||
3142 | |||
3143 | ;; | ||
3144 | esac | ||
3145 | fi | ||
3146 | KILL=$ac_cv_path_KILL | ||
3147 | |||
3148 | if test -n "$KILL"; then | ||
3149 | echo "$as_me:$LINENO: result: $KILL" >&5 | ||
3150 | echo "${ECHO_T}$KILL" >&6 | ||
3151 | else | ||
3152 | echo "$as_me:$LINENO: result: no" >&5 | ||
3153 | echo "${ECHO_T}no" >&6 | ||
3154 | fi | ||
3155 | |||
3156 | for ac_prog in perl5 perl | ||
3157 | do | ||
3158 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3159 | set dummy $ac_prog; ac_word=$2 | ||
3160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3162 | if test "${ac_cv_path_PERL+set}" = set; then | ||
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3164 | else | ||
3165 | case $PERL in | ||
3166 | [\\/]* | ?:[\\/]*) | ||
3167 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
3168 | ;; | ||
3169 | *) | ||
3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3171 | for as_dir in $PATH | ||
3172 | do | ||
3173 | IFS=$as_save_IFS | ||
3174 | test -z "$as_dir" && as_dir=. | ||
3175 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3177 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
3178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3179 | break 2 | ||
3180 | fi | ||
3181 | done | ||
3182 | done | ||
3183 | |||
3184 | ;; | ||
3185 | esac | ||
3186 | fi | ||
3187 | PERL=$ac_cv_path_PERL | ||
3188 | |||
3189 | if test -n "$PERL"; then | ||
3190 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
3191 | echo "${ECHO_T}$PERL" >&6 | ||
3192 | else | ||
3193 | echo "$as_me:$LINENO: result: no" >&5 | ||
3194 | echo "${ECHO_T}no" >&6 | ||
3195 | fi | ||
3196 | |||
3197 | test -n "$PERL" && break | ||
3198 | done | ||
3199 | |||
3200 | # Extract the first word of "sed", so it can be a program name with args. | ||
3201 | set dummy sed; ac_word=$2 | ||
3202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3204 | if test "${ac_cv_path_SED+set}" = set; then | ||
3205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3206 | else | ||
3207 | case $SED in | ||
3208 | [\\/]* | ?:[\\/]*) | ||
3209 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
3210 | ;; | ||
3211 | *) | ||
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3213 | for as_dir in $PATH | ||
3214 | do | ||
3215 | IFS=$as_save_IFS | ||
3216 | test -z "$as_dir" && as_dir=. | ||
3217 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3219 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
3220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3221 | break 2 | ||
3222 | fi | ||
3223 | done | ||
3224 | done | ||
3225 | |||
3226 | ;; | ||
3227 | esac | ||
3228 | fi | ||
3229 | SED=$ac_cv_path_SED | ||
3230 | |||
3231 | if test -n "$SED"; then | ||
3232 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3233 | echo "${ECHO_T}$SED" >&6 | ||
3234 | else | ||
3235 | echo "$as_me:$LINENO: result: no" >&5 | ||
3236 | echo "${ECHO_T}no" >&6 | ||
3237 | fi | ||
3238 | |||
3239 | |||
3240 | # Extract the first word of "ent", so it can be a program name with args. | ||
3241 | set dummy ent; ac_word=$2 | ||
3242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3244 | if test "${ac_cv_path_ENT+set}" = set; then | ||
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3246 | else | ||
3247 | case $ENT in | ||
3248 | [\\/]* | ?:[\\/]*) | ||
3249 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
3250 | ;; | ||
3251 | *) | ||
3252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3253 | for as_dir in $PATH | ||
3254 | do | ||
3255 | IFS=$as_save_IFS | ||
3256 | test -z "$as_dir" && as_dir=. | ||
3257 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3259 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
3260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3261 | break 2 | ||
3262 | fi | ||
3263 | done | ||
3264 | done | ||
3265 | |||
3266 | ;; | ||
3267 | esac | ||
3268 | fi | ||
3269 | ENT=$ac_cv_path_ENT | ||
3270 | |||
3271 | if test -n "$ENT"; then | ||
3272 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
3273 | echo "${ECHO_T}$ENT" >&6 | ||
3274 | else | ||
3275 | echo "$as_me:$LINENO: result: no" >&5 | ||
3276 | echo "${ECHO_T}no" >&6 | ||
3277 | fi | ||
3278 | |||
3279 | |||
3280 | # Extract the first word of "bash", so it can be a program name with args. | ||
3281 | set dummy bash; ac_word=$2 | ||
3282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3284 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3286 | else | ||
3287 | case $TEST_MINUS_S_SH in | ||
3288 | [\\/]* | ?:[\\/]*) | ||
3289 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3290 | ;; | ||
3291 | *) | ||
3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3293 | for as_dir in $PATH | ||
3294 | do | ||
3295 | IFS=$as_save_IFS | ||
3296 | test -z "$as_dir" && as_dir=. | ||
3297 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3299 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3301 | break 2 | ||
3302 | fi | ||
3303 | done | ||
3304 | done | ||
3305 | |||
3306 | ;; | ||
3307 | esac | ||
3308 | fi | ||
3309 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3310 | |||
3311 | if test -n "$TEST_MINUS_S_SH"; then | ||
3312 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3313 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3314 | else | ||
3315 | echo "$as_me:$LINENO: result: no" >&5 | ||
3316 | echo "${ECHO_T}no" >&6 | ||
3317 | fi | ||
3318 | |||
3319 | # Extract the first word of "ksh", so it can be a program name with args. | ||
3320 | set dummy ksh; ac_word=$2 | ||
3321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3323 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3325 | else | ||
3326 | case $TEST_MINUS_S_SH in | ||
3327 | [\\/]* | ?:[\\/]*) | ||
3328 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3329 | ;; | ||
3330 | *) | ||
3331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3332 | for as_dir in $PATH | ||
3333 | do | ||
3334 | IFS=$as_save_IFS | ||
3335 | test -z "$as_dir" && as_dir=. | ||
3336 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3338 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3340 | break 2 | ||
3341 | fi | ||
3342 | done | ||
3343 | done | ||
3344 | |||
3345 | ;; | ||
3346 | esac | ||
3347 | fi | ||
3348 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3349 | |||
3350 | if test -n "$TEST_MINUS_S_SH"; then | ||
3351 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3352 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3353 | else | ||
3354 | echo "$as_me:$LINENO: result: no" >&5 | ||
3355 | echo "${ECHO_T}no" >&6 | ||
3356 | fi | ||
3357 | |||
3358 | # Extract the first word of "sh", so it can be a program name with args. | ||
3359 | set dummy sh; ac_word=$2 | ||
3360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3362 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3364 | else | ||
3365 | case $TEST_MINUS_S_SH in | ||
3366 | [\\/]* | ?:[\\/]*) | ||
3367 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3368 | ;; | ||
3369 | *) | ||
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3371 | for as_dir in $PATH | ||
3372 | do | ||
3373 | IFS=$as_save_IFS | ||
3374 | test -z "$as_dir" && as_dir=. | ||
3375 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3377 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3379 | break 2 | ||
3380 | fi | ||
3381 | done | ||
3382 | done | ||
3383 | |||
3384 | ;; | ||
3385 | esac | ||
3386 | fi | ||
3387 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3388 | |||
3389 | if test -n "$TEST_MINUS_S_SH"; then | ||
3390 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3391 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3392 | else | ||
3393 | echo "$as_me:$LINENO: result: no" >&5 | ||
3394 | echo "${ECHO_T}no" >&6 | ||
3395 | fi | ||
3396 | |||
3397 | # Extract the first word of "sh", so it can be a program name with args. | ||
3398 | set dummy sh; ac_word=$2 | ||
3399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3401 | if test "${ac_cv_path_SH+set}" = set; then | ||
3402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3403 | else | ||
3404 | case $SH in | ||
3405 | [\\/]* | ?:[\\/]*) | ||
3406 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
3407 | ;; | ||
3408 | *) | ||
3409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3410 | for as_dir in $PATH | ||
3411 | do | ||
3412 | IFS=$as_save_IFS | ||
3413 | test -z "$as_dir" && as_dir=. | ||
3414 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3416 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3418 | break 2 | ||
3419 | fi | ||
3420 | done | ||
3421 | done | ||
3422 | |||
3423 | ;; | ||
3424 | esac | ||
3425 | fi | ||
3426 | SH=$ac_cv_path_SH | ||
3427 | |||
3428 | if test -n "$SH"; then | ||
3429 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
3430 | echo "${ECHO_T}$SH" >&6 | ||
3431 | else | ||
3432 | echo "$as_me:$LINENO: result: no" >&5 | ||
3433 | echo "${ECHO_T}no" >&6 | ||
3434 | fi | ||
3435 | |||
3436 | TEST_SHELL=sh | ||
3437 | |||
3438 | |||
3439 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
3440 | set dummy groupadd; ac_word=$2 | ||
3441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3443 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3445 | else | ||
3446 | case $PATH_GROUPADD_PROG in | ||
3447 | [\\/]* | ?:[\\/]*) | ||
3448 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
3449 | ;; | ||
3450 | *) | ||
3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3452 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3453 | do | ||
3454 | IFS=$as_save_IFS | ||
3455 | test -z "$as_dir" && as_dir=. | ||
3456 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3458 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3460 | break 2 | ||
3461 | fi | ||
3462 | done | ||
3463 | done | ||
3464 | |||
3465 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
3466 | ;; | ||
3467 | esac | ||
3468 | fi | ||
3469 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
3470 | |||
3471 | if test -n "$PATH_GROUPADD_PROG"; then | ||
3472 | echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
3473 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6 | ||
3474 | else | ||
3475 | echo "$as_me:$LINENO: result: no" >&5 | ||
3476 | echo "${ECHO_T}no" >&6 | ||
3477 | fi | ||
3478 | |||
3479 | # Extract the first word of "useradd", so it can be a program name with args. | ||
3480 | set dummy useradd; ac_word=$2 | ||
3481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3483 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
3484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3485 | else | ||
3486 | case $PATH_USERADD_PROG in | ||
3487 | [\\/]* | ?:[\\/]*) | ||
3488 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
3489 | ;; | ||
3490 | *) | ||
3491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3492 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3493 | do | ||
3494 | IFS=$as_save_IFS | ||
3495 | test -z "$as_dir" && as_dir=. | ||
3496 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3497 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3498 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3500 | break 2 | ||
3501 | fi | ||
3502 | done | ||
3503 | done | ||
3504 | |||
3505 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
3506 | ;; | ||
3507 | esac | ||
3508 | fi | ||
3509 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
3510 | |||
3511 | if test -n "$PATH_USERADD_PROG"; then | ||
3512 | echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
3513 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6 | ||
3514 | else | ||
3515 | echo "$as_me:$LINENO: result: no" >&5 | ||
3516 | echo "${ECHO_T}no" >&6 | ||
3517 | fi | ||
3518 | |||
3519 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
3520 | set dummy pkgmk; ac_word=$2 | ||
3521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3523 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
3524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3525 | else | ||
3526 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3527 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
3528 | else | ||
3529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3530 | for as_dir in $PATH | ||
3531 | do | ||
3532 | IFS=$as_save_IFS | ||
3533 | test -z "$as_dir" && as_dir=. | ||
3534 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3536 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
3537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3538 | break 2 | ||
3539 | fi | ||
3540 | done | ||
3541 | done | ||
3542 | |||
3543 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
3544 | fi | ||
3545 | fi | ||
3546 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
3547 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3548 | echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
3549 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6 | ||
3550 | else | ||
3551 | echo "$as_me:$LINENO: result: no" >&5 | ||
3552 | echo "${ECHO_T}no" >&6 | ||
3553 | fi | ||
3554 | |||
3555 | |||
3556 | # System features | ||
3557 | # Check whether --enable-largefile or --disable-largefile was given. | ||
3558 | if test "${enable_largefile+set}" = set; then | ||
3559 | enableval="$enable_largefile" | ||
3560 | |||
3561 | fi; | ||
3562 | if test "$enable_largefile" != no; then | ||
3563 | |||
3564 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
3565 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
3566 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3568 | else | ||
3569 | ac_cv_sys_largefile_CC=no | ||
3570 | if test "$GCC" != yes; then | ||
3571 | ac_save_CC=$CC | ||
3572 | while :; do | ||
3573 | # IRIX 6.2 and later do not support large files by default, | ||
3574 | # so use the C compiler's -n32 option if that helps. | ||
3575 | cat >conftest.$ac_ext <<_ACEOF | ||
3576 | /* confdefs.h. */ | ||
3577 | _ACEOF | ||
3578 | cat confdefs.h >>conftest.$ac_ext | ||
3579 | cat >>conftest.$ac_ext <<_ACEOF | ||
3580 | /* end confdefs.h. */ | ||
3581 | #include <sys/types.h> | ||
3582 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3583 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3584 | since some C++ compilers masquerading as C compilers | ||
3585 | incorrectly reject 9223372036854775807. */ | ||
3586 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3587 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3588 | && LARGE_OFF_T % 2147483647 == 1) | ||
3589 | ? 1 : -1]; | ||
3590 | int | ||
3591 | main () | ||
3592 | { | ||
3593 | |||
3594 | ; | ||
3595 | return 0; | ||
3596 | } | ||
3597 | _ACEOF | ||
3598 | rm -f conftest.$ac_objext | ||
3599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3600 | (eval $ac_compile) 2>conftest.er1 | ||
3601 | ac_status=$? | ||
3602 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3603 | rm -f conftest.er1 | ||
3604 | cat conftest.err >&5 | ||
3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3606 | (exit $ac_status); } && | ||
3607 | { ac_try='test -z "$ac_c_werror_flag" | ||
3608 | || test ! -s conftest.err' | ||
3609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3610 | (eval $ac_try) 2>&5 | ||
3611 | ac_status=$? | ||
3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3613 | (exit $ac_status); }; } && | ||
3614 | { ac_try='test -s conftest.$ac_objext' | ||
3615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3616 | (eval $ac_try) 2>&5 | ||
3617 | ac_status=$? | ||
3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3619 | (exit $ac_status); }; }; then | ||
3620 | break | ||
3621 | else | ||
3622 | echo "$as_me: failed program was:" >&5 | ||
3623 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3624 | |||
3625 | fi | ||
3626 | rm -f conftest.err conftest.$ac_objext | ||
3627 | CC="$CC -n32" | ||
3628 | rm -f conftest.$ac_objext | ||
3629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3630 | (eval $ac_compile) 2>conftest.er1 | ||
3631 | ac_status=$? | ||
3632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3633 | rm -f conftest.er1 | ||
3634 | cat conftest.err >&5 | ||
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3636 | (exit $ac_status); } && | ||
3637 | { ac_try='test -z "$ac_c_werror_flag" | ||
3638 | || test ! -s conftest.err' | ||
3639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3640 | (eval $ac_try) 2>&5 | ||
3641 | ac_status=$? | ||
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3643 | (exit $ac_status); }; } && | ||
3644 | { ac_try='test -s conftest.$ac_objext' | ||
3645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3646 | (eval $ac_try) 2>&5 | ||
3647 | ac_status=$? | ||
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3649 | (exit $ac_status); }; }; then | ||
3650 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3651 | else | ||
3652 | echo "$as_me: failed program was:" >&5 | ||
3653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3654 | |||
3655 | fi | ||
3656 | rm -f conftest.err conftest.$ac_objext | ||
3657 | break | ||
3658 | done | ||
3659 | CC=$ac_save_CC | ||
3660 | rm -f conftest.$ac_ext | ||
3661 | fi | ||
3662 | fi | ||
3663 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3664 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3665 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3666 | CC=$CC$ac_cv_sys_largefile_CC | ||
3667 | fi | ||
3668 | |||
3669 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3670 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3671 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3673 | else | ||
3674 | while :; do | ||
3675 | ac_cv_sys_file_offset_bits=no | ||
3676 | cat >conftest.$ac_ext <<_ACEOF | ||
3677 | /* confdefs.h. */ | ||
3678 | _ACEOF | ||
3679 | cat confdefs.h >>conftest.$ac_ext | ||
3680 | cat >>conftest.$ac_ext <<_ACEOF | ||
3681 | /* end confdefs.h. */ | ||
3682 | #include <sys/types.h> | ||
3683 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3684 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3685 | since some C++ compilers masquerading as C compilers | ||
3686 | incorrectly reject 9223372036854775807. */ | ||
3687 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3688 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3689 | && LARGE_OFF_T % 2147483647 == 1) | ||
3690 | ? 1 : -1]; | ||
3691 | int | ||
3692 | main () | ||
3693 | { | ||
3694 | |||
3695 | ; | ||
3696 | return 0; | ||
3697 | } | ||
3698 | _ACEOF | ||
3699 | rm -f conftest.$ac_objext | ||
3700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3701 | (eval $ac_compile) 2>conftest.er1 | ||
3702 | ac_status=$? | ||
3703 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3704 | rm -f conftest.er1 | ||
3705 | cat conftest.err >&5 | ||
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3707 | (exit $ac_status); } && | ||
3708 | { ac_try='test -z "$ac_c_werror_flag" | ||
3709 | || test ! -s conftest.err' | ||
3710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3711 | (eval $ac_try) 2>&5 | ||
3712 | ac_status=$? | ||
3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3714 | (exit $ac_status); }; } && | ||
3715 | { ac_try='test -s conftest.$ac_objext' | ||
3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3717 | (eval $ac_try) 2>&5 | ||
3718 | ac_status=$? | ||
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3720 | (exit $ac_status); }; }; then | ||
3721 | break | ||
3722 | else | ||
3723 | echo "$as_me: failed program was:" >&5 | ||
3724 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3725 | |||
3726 | fi | ||
3727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3728 | cat >conftest.$ac_ext <<_ACEOF | ||
3729 | /* confdefs.h. */ | ||
3730 | _ACEOF | ||
3731 | cat confdefs.h >>conftest.$ac_ext | ||
3732 | cat >>conftest.$ac_ext <<_ACEOF | ||
3733 | /* end confdefs.h. */ | ||
3734 | #define _FILE_OFFSET_BITS 64 | ||
3735 | #include <sys/types.h> | ||
3736 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3737 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3738 | since some C++ compilers masquerading as C compilers | ||
3739 | incorrectly reject 9223372036854775807. */ | ||
3740 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3741 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3742 | && LARGE_OFF_T % 2147483647 == 1) | ||
3743 | ? 1 : -1]; | ||
3744 | int | ||
3745 | main () | ||
3746 | { | ||
3747 | |||
3748 | ; | ||
3749 | return 0; | ||
3750 | } | ||
3751 | _ACEOF | ||
3752 | rm -f conftest.$ac_objext | ||
3753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3754 | (eval $ac_compile) 2>conftest.er1 | ||
3755 | ac_status=$? | ||
3756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3757 | rm -f conftest.er1 | ||
3758 | cat conftest.err >&5 | ||
3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3760 | (exit $ac_status); } && | ||
3761 | { ac_try='test -z "$ac_c_werror_flag" | ||
3762 | || test ! -s conftest.err' | ||
3763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3764 | (eval $ac_try) 2>&5 | ||
3765 | ac_status=$? | ||
3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3767 | (exit $ac_status); }; } && | ||
3768 | { ac_try='test -s conftest.$ac_objext' | ||
3769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3770 | (eval $ac_try) 2>&5 | ||
3771 | ac_status=$? | ||
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3773 | (exit $ac_status); }; }; then | ||
3774 | ac_cv_sys_file_offset_bits=64; break | ||
3775 | else | ||
3776 | echo "$as_me: failed program was:" >&5 | ||
3777 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3778 | |||
3779 | fi | ||
3780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3781 | break | ||
3782 | done | ||
3783 | fi | ||
3784 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3785 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3786 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3787 | |||
3788 | cat >>confdefs.h <<_ACEOF | ||
3789 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3790 | _ACEOF | ||
3791 | |||
3792 | fi | ||
3793 | rm -f conftest* | ||
3794 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3795 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3796 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3798 | else | ||
3799 | while :; do | ||
3800 | ac_cv_sys_large_files=no | ||
3801 | cat >conftest.$ac_ext <<_ACEOF | ||
3802 | /* confdefs.h. */ | ||
3803 | _ACEOF | ||
3804 | cat confdefs.h >>conftest.$ac_ext | ||
3805 | cat >>conftest.$ac_ext <<_ACEOF | ||
3806 | /* end confdefs.h. */ | ||
3807 | #include <sys/types.h> | ||
3808 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3809 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3810 | since some C++ compilers masquerading as C compilers | ||
3811 | incorrectly reject 9223372036854775807. */ | ||
3812 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3813 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3814 | && LARGE_OFF_T % 2147483647 == 1) | ||
3815 | ? 1 : -1]; | ||
3816 | int | ||
3817 | main () | ||
3818 | { | ||
3819 | |||
3820 | ; | ||
3821 | return 0; | ||
3822 | } | ||
3823 | _ACEOF | ||
3824 | rm -f conftest.$ac_objext | ||
3825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3826 | (eval $ac_compile) 2>conftest.er1 | ||
3827 | ac_status=$? | ||
3828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3829 | rm -f conftest.er1 | ||
3830 | cat conftest.err >&5 | ||
3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3832 | (exit $ac_status); } && | ||
3833 | { ac_try='test -z "$ac_c_werror_flag" | ||
3834 | || test ! -s conftest.err' | ||
3835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3836 | (eval $ac_try) 2>&5 | ||
3837 | ac_status=$? | ||
3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3839 | (exit $ac_status); }; } && | ||
3840 | { ac_try='test -s conftest.$ac_objext' | ||
3841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3842 | (eval $ac_try) 2>&5 | ||
3843 | ac_status=$? | ||
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3845 | (exit $ac_status); }; }; then | ||
3846 | break | ||
3847 | else | ||
3848 | echo "$as_me: failed program was:" >&5 | ||
3849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3850 | |||
3851 | fi | ||
3852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3853 | cat >conftest.$ac_ext <<_ACEOF | ||
3854 | /* confdefs.h. */ | ||
3855 | _ACEOF | ||
3856 | cat confdefs.h >>conftest.$ac_ext | ||
3857 | cat >>conftest.$ac_ext <<_ACEOF | ||
3858 | /* end confdefs.h. */ | ||
3859 | #define _LARGE_FILES 1 | ||
3860 | #include <sys/types.h> | ||
3861 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3862 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3863 | since some C++ compilers masquerading as C compilers | ||
3864 | incorrectly reject 9223372036854775807. */ | ||
3865 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3866 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3867 | && LARGE_OFF_T % 2147483647 == 1) | ||
3868 | ? 1 : -1]; | ||
3869 | int | ||
3870 | main () | ||
3871 | { | ||
3872 | |||
3873 | ; | ||
3874 | return 0; | ||
3875 | } | ||
3876 | _ACEOF | ||
3877 | rm -f conftest.$ac_objext | ||
3878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3879 | (eval $ac_compile) 2>conftest.er1 | ||
3880 | ac_status=$? | ||
3881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3882 | rm -f conftest.er1 | ||
3883 | cat conftest.err >&5 | ||
3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3885 | (exit $ac_status); } && | ||
3886 | { ac_try='test -z "$ac_c_werror_flag" | ||
3887 | || test ! -s conftest.err' | ||
3888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3889 | (eval $ac_try) 2>&5 | ||
3890 | ac_status=$? | ||
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3892 | (exit $ac_status); }; } && | ||
3893 | { ac_try='test -s conftest.$ac_objext' | ||
3894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3895 | (eval $ac_try) 2>&5 | ||
3896 | ac_status=$? | ||
3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3898 | (exit $ac_status); }; }; then | ||
3899 | ac_cv_sys_large_files=1; break | ||
3900 | else | ||
3901 | echo "$as_me: failed program was:" >&5 | ||
3902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3903 | |||
3904 | fi | ||
3905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3906 | break | ||
3907 | done | ||
3908 | fi | ||
3909 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3910 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3911 | if test "$ac_cv_sys_large_files" != no; then | ||
3912 | |||
3913 | cat >>confdefs.h <<_ACEOF | ||
3914 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3915 | _ACEOF | ||
3916 | |||
3917 | fi | ||
3918 | rm -f conftest* | ||
3919 | fi | ||
3920 | |||
3921 | |||
3922 | if test -z "$AR" ; then | ||
3923 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3924 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3925 | { (exit 1); exit 1; }; } | ||
3926 | fi | ||
3927 | |||
3928 | # Use LOGIN_PROGRAM from environment if possible | ||
3929 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3930 | cat >>confdefs.h <<_ACEOF | ||
3931 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3932 | _ACEOF | ||
3933 | |||
3934 | else | ||
3935 | # Search for login | ||
3936 | # Extract the first word of "login", so it can be a program name with args. | ||
3937 | set dummy login; ac_word=$2 | ||
3938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3940 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3942 | else | ||
3943 | case $LOGIN_PROGRAM_FALLBACK in | ||
3944 | [\\/]* | ?:[\\/]*) | ||
3945 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3946 | ;; | ||
3947 | *) | ||
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3949 | for as_dir in $PATH | ||
3950 | do | ||
3951 | IFS=$as_save_IFS | ||
3952 | test -z "$as_dir" && as_dir=. | ||
3953 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3955 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3957 | break 2 | ||
3958 | fi | ||
3959 | done | ||
3960 | done | ||
3961 | |||
3962 | ;; | ||
3963 | esac | ||
3964 | fi | ||
3965 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3966 | |||
3967 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3968 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3969 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3970 | else | ||
3971 | echo "$as_me:$LINENO: result: no" >&5 | ||
3972 | echo "${ECHO_T}no" >&6 | ||
3973 | fi | ||
3974 | |||
3975 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3976 | cat >>confdefs.h <<_ACEOF | ||
3977 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3978 | _ACEOF | ||
3979 | |||
3980 | fi | ||
3981 | fi | ||
3982 | |||
3983 | # Extract the first word of "passwd", so it can be a program name with args. | ||
3984 | set dummy passwd; ac_word=$2 | ||
3985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3987 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3989 | else | ||
3990 | case $PATH_PASSWD_PROG in | ||
3991 | [\\/]* | ?:[\\/]*) | ||
3992 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
3993 | ;; | ||
3994 | *) | ||
3995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3996 | for as_dir in $PATH | ||
3997 | do | ||
3998 | IFS=$as_save_IFS | ||
3999 | test -z "$as_dir" && as_dir=. | ||
4000 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4002 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4004 | break 2 | ||
4005 | fi | ||
4006 | done | ||
4007 | done | ||
4008 | |||
4009 | ;; | ||
4010 | esac | ||
4011 | fi | ||
4012 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
4013 | |||
4014 | if test -n "$PATH_PASSWD_PROG"; then | ||
4015 | echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
4016 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
4017 | else | ||
4018 | echo "$as_me:$LINENO: result: no" >&5 | ||
4019 | echo "${ECHO_T}no" >&6 | ||
4020 | fi | ||
4021 | |||
4022 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
4023 | cat >>confdefs.h <<_ACEOF | ||
4024 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
4025 | _ACEOF | ||
4026 | |||
4027 | fi | ||
4028 | |||
4029 | if test -z "$LD" ; then | ||
4030 | LD=$CC | ||
4031 | fi | ||
4032 | |||
4033 | |||
4034 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
4035 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
4036 | if test "${ac_cv_c_inline+set}" = set; then | ||
4037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4038 | else | ||
4039 | ac_cv_c_inline=no | ||
4040 | for ac_kw in inline __inline__ __inline; do | ||
4041 | cat >conftest.$ac_ext <<_ACEOF | ||
4042 | /* confdefs.h. */ | ||
4043 | _ACEOF | ||
4044 | cat confdefs.h >>conftest.$ac_ext | ||
4045 | cat >>conftest.$ac_ext <<_ACEOF | ||
4046 | /* end confdefs.h. */ | ||
4047 | #ifndef __cplusplus | ||
4048 | typedef int foo_t; | ||
4049 | static $ac_kw foo_t static_foo () {return 0; } | ||
4050 | $ac_kw foo_t foo () {return 0; } | ||
4051 | #endif | ||
4052 | |||
4053 | _ACEOF | ||
4054 | rm -f conftest.$ac_objext | ||
4055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4056 | (eval $ac_compile) 2>conftest.er1 | ||
4057 | ac_status=$? | ||
4058 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4059 | rm -f conftest.er1 | ||
4060 | cat conftest.err >&5 | ||
4061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4062 | (exit $ac_status); } && | ||
4063 | { ac_try='test -z "$ac_c_werror_flag" | ||
4064 | || test ! -s conftest.err' | ||
4065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4066 | (eval $ac_try) 2>&5 | ||
4067 | ac_status=$? | ||
4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4069 | (exit $ac_status); }; } && | ||
4070 | { ac_try='test -s conftest.$ac_objext' | ||
4071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4072 | (eval $ac_try) 2>&5 | ||
4073 | ac_status=$? | ||
4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4075 | (exit $ac_status); }; }; then | ||
4076 | ac_cv_c_inline=$ac_kw; break | ||
4077 | else | ||
4078 | echo "$as_me: failed program was:" >&5 | ||
4079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4080 | |||
4081 | fi | ||
4082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4083 | done | ||
4084 | |||
4085 | fi | ||
4086 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
4087 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
4088 | |||
4089 | |||
4090 | case $ac_cv_c_inline in | ||
4091 | inline | yes) ;; | ||
4092 | *) | ||
4093 | case $ac_cv_c_inline in | ||
4094 | no) ac_val=;; | ||
4095 | *) ac_val=$ac_cv_c_inline;; | ||
4096 | esac | ||
4097 | cat >>confdefs.h <<_ACEOF | ||
4098 | #ifndef __cplusplus | ||
4099 | #define inline $ac_val | ||
4100 | #endif | ||
4101 | _ACEOF | ||
4102 | ;; | ||
4103 | esac | ||
4104 | |||
4105 | |||
4106 | echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
4107 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6 | ||
4108 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4110 | else | ||
4111 | cat >conftest.$ac_ext <<_ACEOF | ||
4112 | /* confdefs.h. */ | ||
4113 | _ACEOF | ||
4114 | cat confdefs.h >>conftest.$ac_ext | ||
4115 | cat >>conftest.$ac_ext <<_ACEOF | ||
4116 | /* end confdefs.h. */ | ||
4117 | #include <limits.h> | ||
4118 | |||
4119 | int | ||
4120 | main () | ||
4121 | { | ||
4122 | #ifndef LLONG_MAX | ||
4123 | char *p = (char *) LLONG_MAX; | ||
4124 | #endif | ||
4125 | |||
4126 | ; | ||
4127 | return 0; | ||
4128 | } | ||
4129 | _ACEOF | ||
4130 | rm -f conftest.$ac_objext | ||
4131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4132 | (eval $ac_compile) 2>conftest.er1 | ||
4133 | ac_status=$? | ||
4134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4135 | rm -f conftest.er1 | ||
4136 | cat conftest.err >&5 | ||
4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4138 | (exit $ac_status); } && | ||
4139 | { ac_try='test -z "$ac_c_werror_flag" | ||
4140 | || test ! -s conftest.err' | ||
4141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4142 | (eval $ac_try) 2>&5 | ||
4143 | ac_status=$? | ||
4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4145 | (exit $ac_status); }; } && | ||
4146 | { ac_try='test -s conftest.$ac_objext' | ||
4147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4148 | (eval $ac_try) 2>&5 | ||
4149 | ac_status=$? | ||
4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4151 | (exit $ac_status); }; }; then | ||
4152 | ac_cv_have_decl_LLONG_MAX=yes | ||
4153 | else | ||
4154 | echo "$as_me: failed program was:" >&5 | ||
4155 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4156 | |||
4157 | ac_cv_have_decl_LLONG_MAX=no | ||
4158 | fi | ||
4159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4160 | fi | ||
4161 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
4162 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6 | ||
4163 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
4164 | have_llong_max=1 | ||
4165 | fi | ||
4166 | |||
4167 | |||
4168 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
4169 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
4170 | GCC_VER=`$CC --version` | ||
4171 | case $GCC_VER in | ||
4172 | 1.*) ;; | ||
4173 | 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
4174 | 2.*) ;; | ||
4175 | *) CFLAGS="$CFLAGS -Wsign-compare" ;; | ||
4176 | esac | ||
4177 | |||
4178 | if test -z "$have_llong_max"; then | ||
4179 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
4180 | unset ac_cv_have_decl_LLONG_MAX | ||
4181 | saved_CFLAGS="$CFLAGS" | ||
4182 | CFLAGS="$CFLAGS -std=gnu99" | ||
4183 | echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
4184 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6 | ||
4185 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4187 | else | ||
4188 | cat >conftest.$ac_ext <<_ACEOF | ||
4189 | /* confdefs.h. */ | ||
4190 | _ACEOF | ||
4191 | cat confdefs.h >>conftest.$ac_ext | ||
4192 | cat >>conftest.$ac_ext <<_ACEOF | ||
4193 | /* end confdefs.h. */ | ||
4194 | #include <limits.h> | ||
4195 | |||
4196 | |||
4197 | int | ||
4198 | main () | ||
4199 | { | ||
4200 | #ifndef LLONG_MAX | ||
4201 | char *p = (char *) LLONG_MAX; | ||
4202 | #endif | ||
4203 | |||
4204 | ; | ||
4205 | return 0; | ||
4206 | } | ||
4207 | _ACEOF | ||
4208 | rm -f conftest.$ac_objext | ||
4209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4210 | (eval $ac_compile) 2>conftest.er1 | ||
4211 | ac_status=$? | ||
4212 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4213 | rm -f conftest.er1 | ||
4214 | cat conftest.err >&5 | ||
4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4216 | (exit $ac_status); } && | ||
4217 | { ac_try='test -z "$ac_c_werror_flag" | ||
4218 | || test ! -s conftest.err' | ||
4219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4220 | (eval $ac_try) 2>&5 | ||
4221 | ac_status=$? | ||
4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4223 | (exit $ac_status); }; } && | ||
4224 | { ac_try='test -s conftest.$ac_objext' | ||
4225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4226 | (eval $ac_try) 2>&5 | ||
4227 | ac_status=$? | ||
4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4229 | (exit $ac_status); }; }; then | ||
4230 | ac_cv_have_decl_LLONG_MAX=yes | ||
4231 | else | ||
4232 | echo "$as_me: failed program was:" >&5 | ||
4233 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4234 | |||
4235 | ac_cv_have_decl_LLONG_MAX=no | ||
4236 | fi | ||
4237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4238 | fi | ||
4239 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
4240 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6 | ||
4241 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
4242 | have_llong_max=1 | ||
4243 | else | ||
4244 | CFLAGS="$saved_CFLAGS" | ||
4245 | fi | ||
4246 | |||
4247 | fi | ||
4248 | fi | ||
4249 | |||
4250 | if test -z "$have_llong_max"; then | ||
4251 | echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
4252 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6 | ||
4253 | if test "$cross_compiling" = yes; then | ||
4254 | |||
4255 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
4256 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
4257 | |||
4258 | |||
4259 | else | ||
4260 | cat >conftest.$ac_ext <<_ACEOF | ||
4261 | /* confdefs.h. */ | ||
4262 | _ACEOF | ||
4263 | cat confdefs.h >>conftest.$ac_ext | ||
4264 | cat >>conftest.$ac_ext <<_ACEOF | ||
4265 | /* end confdefs.h. */ | ||
4266 | |||
4267 | #include <stdio.h> | ||
4268 | /* Why is this so damn hard? */ | ||
4269 | #ifdef __GNUC__ | ||
4270 | # undef __GNUC__ | ||
4271 | #endif | ||
4272 | #define __USE_ISOC99 | ||
4273 | #include <limits.h> | ||
4274 | #define DATA "conftest.llminmax" | ||
4275 | int main(void) { | ||
4276 | FILE *f; | ||
4277 | long long i, llmin, llmax = 0; | ||
4278 | |||
4279 | if((f = fopen(DATA,"w")) == NULL) | ||
4280 | exit(1); | ||
4281 | |||
4282 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
4283 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
4284 | llmin = LLONG_MIN; | ||
4285 | llmax = LLONG_MAX; | ||
4286 | #else | ||
4287 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
4288 | /* This will work on one's complement and two's complement */ | ||
4289 | for (i = 1; i > llmax; i <<= 1, i++) | ||
4290 | llmax = i; | ||
4291 | llmin = llmax + 1LL; /* wrap */ | ||
4292 | #endif | ||
4293 | |||
4294 | /* Sanity check */ | ||
4295 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
4296 | || llmax - 1 > llmax) { | ||
4297 | fprintf(f, "unknown unknown\n"); | ||
4298 | exit(2); | ||
4299 | } | ||
4300 | |||
4301 | if (fprintf(f ,"%lld %lld", llmin, llmax) < 0) | ||
4302 | exit(3); | ||
4303 | |||
4304 | exit(0); | ||
4305 | } | ||
4306 | |||
4307 | _ACEOF | ||
4308 | rm -f conftest$ac_exeext | ||
4309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4310 | (eval $ac_link) 2>&5 | ||
4311 | ac_status=$? | ||
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4315 | (eval $ac_try) 2>&5 | ||
4316 | ac_status=$? | ||
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4318 | (exit $ac_status); }; }; then | ||
4319 | |||
4320 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
4321 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
4322 | echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
4323 | echo "${ECHO_T}$llong_max" >&6 | ||
4324 | |||
4325 | cat >>confdefs.h <<_ACEOF | ||
4326 | #define LLONG_MAX ${llong_max}LL | ||
4327 | _ACEOF | ||
4328 | |||
4329 | echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
4330 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6 | ||
4331 | echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
4332 | echo "${ECHO_T}$llong_min" >&6 | ||
4333 | |||
4334 | cat >>confdefs.h <<_ACEOF | ||
4335 | #define LLONG_MIN ${llong_min}LL | ||
4336 | _ACEOF | ||
4337 | |||
4338 | |||
4339 | else | ||
4340 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4341 | echo "$as_me: failed program was:" >&5 | ||
4342 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4343 | |||
4344 | ( exit $ac_status ) | ||
4345 | |||
4346 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4347 | echo "${ECHO_T}not found" >&6 | ||
4348 | |||
4349 | fi | ||
4350 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4351 | fi | ||
4352 | fi | ||
4353 | |||
4354 | |||
4355 | # Check whether --with-rpath or --without-rpath was given. | ||
4356 | if test "${with_rpath+set}" = set; then | ||
4357 | withval="$with_rpath" | ||
4358 | |||
4359 | if test "x$withval" = "xno" ; then | ||
4360 | need_dash_r="" | ||
4361 | fi | ||
4362 | if test "x$withval" = "xyes" ; then | ||
4363 | need_dash_r=1 | ||
4364 | fi | ||
4365 | |||
4366 | |||
4367 | fi; | ||
4368 | |||
4369 | # Check for some target-specific stuff | ||
4370 | case "$host" in | ||
4371 | *-*-aix*) | ||
4372 | echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
4373 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
4374 | if (test -z "$blibpath"); then | ||
4375 | blibpath="/usr/lib:/lib" | ||
4376 | fi | ||
4377 | saved_LDFLAGS="$LDFLAGS" | ||
4378 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
4379 | if (test -z "$blibflags"); then | ||
4380 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
4381 | cat >conftest.$ac_ext <<_ACEOF | ||
4382 | /* confdefs.h. */ | ||
4383 | _ACEOF | ||
4384 | cat confdefs.h >>conftest.$ac_ext | ||
4385 | cat >>conftest.$ac_ext <<_ACEOF | ||
4386 | /* end confdefs.h. */ | ||
4387 | |||
4388 | int | ||
4389 | main () | ||
4390 | { | ||
4391 | |||
4392 | ; | ||
4393 | return 0; | ||
4394 | } | ||
4395 | _ACEOF | ||
4396 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4398 | (eval $ac_link) 2>conftest.er1 | ||
4399 | ac_status=$? | ||
4400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4401 | rm -f conftest.er1 | ||
4402 | cat conftest.err >&5 | ||
4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4404 | (exit $ac_status); } && | ||
4405 | { ac_try='test -z "$ac_c_werror_flag" | ||
4406 | || test ! -s conftest.err' | ||
4407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4408 | (eval $ac_try) 2>&5 | ||
4409 | ac_status=$? | ||
4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4411 | (exit $ac_status); }; } && | ||
4412 | { ac_try='test -s conftest$ac_exeext' | ||
4413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4414 | (eval $ac_try) 2>&5 | ||
4415 | ac_status=$? | ||
4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4417 | (exit $ac_status); }; }; then | ||
4418 | blibflags=$tryflags | ||
4419 | else | ||
4420 | echo "$as_me: failed program was:" >&5 | ||
4421 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4422 | |||
4423 | fi | ||
4424 | rm -f conftest.err conftest.$ac_objext \ | ||
4425 | conftest$ac_exeext conftest.$ac_ext | ||
4426 | fi | ||
4427 | done | ||
4428 | if (test -z "$blibflags"); then | ||
4429 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4430 | echo "${ECHO_T}not found" >&6 | ||
4431 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
4432 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
4433 | { (exit 1); exit 1; }; } | ||
4434 | else | ||
4435 | echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
4436 | echo "${ECHO_T}$blibflags" >&6 | ||
4437 | fi | ||
4438 | LDFLAGS="$saved_LDFLAGS" | ||
4439 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
4440 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
4441 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
4442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4443 | else | ||
4444 | cat >conftest.$ac_ext <<_ACEOF | ||
4445 | /* confdefs.h. */ | ||
4446 | _ACEOF | ||
4447 | cat confdefs.h >>conftest.$ac_ext | ||
4448 | cat >>conftest.$ac_ext <<_ACEOF | ||
4449 | /* end confdefs.h. */ | ||
4450 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
4451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4452 | #define authenticate innocuous_authenticate | ||
4453 | |||
4454 | /* System header to define __stub macros and hopefully few prototypes, | ||
4455 | which can conflict with char authenticate (); below. | ||
4456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4457 | <limits.h> exists even on freestanding compilers. */ | ||
4458 | |||
4459 | #ifdef __STDC__ | ||
4460 | # include <limits.h> | ||
4461 | #else | ||
4462 | # include <assert.h> | ||
4463 | #endif | ||
4464 | |||
4465 | #undef authenticate | ||
4466 | |||
4467 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4468 | #ifdef __cplusplus | ||
4469 | extern "C" | ||
4470 | { | ||
4471 | #endif | ||
4472 | /* We use char because int might match the return type of a gcc2 | ||
4473 | builtin and then its argument prototype would still apply. */ | ||
4474 | char authenticate (); | ||
4475 | /* The GNU C library defines this for functions which it implements | ||
4476 | to always fail with ENOSYS. Some functions are actually named | ||
4477 | something starting with __ and the normal name is an alias. */ | ||
4478 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
4479 | choke me | ||
4480 | #else | ||
4481 | char (*f) () = authenticate; | ||
4482 | #endif | ||
4483 | #ifdef __cplusplus | ||
4484 | } | ||
4485 | #endif | ||
4486 | |||
4487 | int | ||
4488 | main () | ||
4489 | { | ||
4490 | return f != authenticate; | ||
4491 | ; | ||
4492 | return 0; | ||
4493 | } | ||
4494 | _ACEOF | ||
4495 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4497 | (eval $ac_link) 2>conftest.er1 | ||
4498 | ac_status=$? | ||
4499 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4500 | rm -f conftest.er1 | ||
4501 | cat conftest.err >&5 | ||
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4503 | (exit $ac_status); } && | ||
4504 | { ac_try='test -z "$ac_c_werror_flag" | ||
4505 | || test ! -s conftest.err' | ||
4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4507 | (eval $ac_try) 2>&5 | ||
4508 | ac_status=$? | ||
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4510 | (exit $ac_status); }; } && | ||
4511 | { ac_try='test -s conftest$ac_exeext' | ||
4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4513 | (eval $ac_try) 2>&5 | ||
4514 | ac_status=$? | ||
4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4516 | (exit $ac_status); }; }; then | ||
4517 | ac_cv_func_authenticate=yes | ||
4518 | else | ||
4519 | echo "$as_me: failed program was:" >&5 | ||
4520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4521 | |||
4522 | ac_cv_func_authenticate=no | ||
4523 | fi | ||
4524 | rm -f conftest.err conftest.$ac_objext \ | ||
4525 | conftest$ac_exeext conftest.$ac_ext | ||
4526 | fi | ||
4527 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
4528 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
4529 | if test $ac_cv_func_authenticate = yes; then | ||
4530 | cat >>confdefs.h <<\_ACEOF | ||
4531 | #define WITH_AIXAUTHENTICATE 1 | ||
4532 | _ACEOF | ||
4533 | |||
4534 | else | ||
4535 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
4536 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
4537 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4539 | else | ||
4540 | ac_check_lib_save_LIBS=$LIBS | ||
4541 | LIBS="-ls $LIBS" | ||
4542 | cat >conftest.$ac_ext <<_ACEOF | ||
4543 | /* confdefs.h. */ | ||
4544 | _ACEOF | ||
4545 | cat confdefs.h >>conftest.$ac_ext | ||
4546 | cat >>conftest.$ac_ext <<_ACEOF | ||
4547 | /* end confdefs.h. */ | ||
4548 | |||
4549 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4550 | #ifdef __cplusplus | ||
4551 | extern "C" | ||
4552 | #endif | ||
4553 | /* We use char because int might match the return type of a gcc2 | ||
4554 | builtin and then its argument prototype would still apply. */ | ||
4555 | char authenticate (); | ||
4556 | int | ||
4557 | main () | ||
4558 | { | ||
4559 | authenticate (); | ||
4560 | ; | ||
4561 | return 0; | ||
4562 | } | ||
4563 | _ACEOF | ||
4564 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4566 | (eval $ac_link) 2>conftest.er1 | ||
4567 | ac_status=$? | ||
4568 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4569 | rm -f conftest.er1 | ||
4570 | cat conftest.err >&5 | ||
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4572 | (exit $ac_status); } && | ||
4573 | { ac_try='test -z "$ac_c_werror_flag" | ||
4574 | || test ! -s conftest.err' | ||
4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4576 | (eval $ac_try) 2>&5 | ||
4577 | ac_status=$? | ||
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4579 | (exit $ac_status); }; } && | ||
4580 | { ac_try='test -s conftest$ac_exeext' | ||
4581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4582 | (eval $ac_try) 2>&5 | ||
4583 | ac_status=$? | ||
4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4585 | (exit $ac_status); }; }; then | ||
4586 | ac_cv_lib_s_authenticate=yes | ||
4587 | else | ||
4588 | echo "$as_me: failed program was:" >&5 | ||
4589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4590 | |||
4591 | ac_cv_lib_s_authenticate=no | ||
4592 | fi | ||
4593 | rm -f conftest.err conftest.$ac_objext \ | ||
4594 | conftest$ac_exeext conftest.$ac_ext | ||
4595 | LIBS=$ac_check_lib_save_LIBS | ||
4596 | fi | ||
4597 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
4598 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
4599 | if test $ac_cv_lib_s_authenticate = yes; then | ||
4600 | cat >>confdefs.h <<\_ACEOF | ||
4601 | #define WITH_AIXAUTHENTICATE 1 | ||
4602 | _ACEOF | ||
4603 | |||
4604 | LIBS="$LIBS -ls" | ||
4605 | |||
4606 | fi | ||
4607 | |||
4608 | |||
4609 | fi | ||
4610 | |||
4611 | echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
4612 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6 | ||
4613 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4615 | else | ||
4616 | cat >conftest.$ac_ext <<_ACEOF | ||
4617 | /* confdefs.h. */ | ||
4618 | _ACEOF | ||
4619 | cat confdefs.h >>conftest.$ac_ext | ||
4620 | cat >>conftest.$ac_ext <<_ACEOF | ||
4621 | /* end confdefs.h. */ | ||
4622 | #include <usersec.h> | ||
4623 | |||
4624 | int | ||
4625 | main () | ||
4626 | { | ||
4627 | #ifndef authenticate | ||
4628 | char *p = (char *) authenticate; | ||
4629 | #endif | ||
4630 | |||
4631 | ; | ||
4632 | return 0; | ||
4633 | } | ||
4634 | _ACEOF | ||
4635 | rm -f conftest.$ac_objext | ||
4636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4637 | (eval $ac_compile) 2>conftest.er1 | ||
4638 | ac_status=$? | ||
4639 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4640 | rm -f conftest.er1 | ||
4641 | cat conftest.err >&5 | ||
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4643 | (exit $ac_status); } && | ||
4644 | { ac_try='test -z "$ac_c_werror_flag" | ||
4645 | || test ! -s conftest.err' | ||
4646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4647 | (eval $ac_try) 2>&5 | ||
4648 | ac_status=$? | ||
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4650 | (exit $ac_status); }; } && | ||
4651 | { ac_try='test -s conftest.$ac_objext' | ||
4652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4653 | (eval $ac_try) 2>&5 | ||
4654 | ac_status=$? | ||
4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4656 | (exit $ac_status); }; }; then | ||
4657 | ac_cv_have_decl_authenticate=yes | ||
4658 | else | ||
4659 | echo "$as_me: failed program was:" >&5 | ||
4660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4661 | |||
4662 | ac_cv_have_decl_authenticate=no | ||
4663 | fi | ||
4664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4665 | fi | ||
4666 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
4667 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6 | ||
4668 | if test $ac_cv_have_decl_authenticate = yes; then | ||
4669 | |||
4670 | cat >>confdefs.h <<_ACEOF | ||
4671 | #define HAVE_DECL_AUTHENTICATE 1 | ||
4672 | _ACEOF | ||
4673 | |||
4674 | |||
4675 | else | ||
4676 | cat >>confdefs.h <<_ACEOF | ||
4677 | #define HAVE_DECL_AUTHENTICATE 0 | ||
4678 | _ACEOF | ||
4679 | |||
4680 | |||
4681 | fi | ||
4682 | echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
4683 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6 | ||
4684 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
4685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4686 | else | ||
4687 | cat >conftest.$ac_ext <<_ACEOF | ||
4688 | /* confdefs.h. */ | ||
4689 | _ACEOF | ||
4690 | cat confdefs.h >>conftest.$ac_ext | ||
4691 | cat >>conftest.$ac_ext <<_ACEOF | ||
4692 | /* end confdefs.h. */ | ||
4693 | #include <usersec.h> | ||
4694 | |||
4695 | int | ||
4696 | main () | ||
4697 | { | ||
4698 | #ifndef loginrestrictions | ||
4699 | char *p = (char *) loginrestrictions; | ||
4700 | #endif | ||
4701 | |||
4702 | ; | ||
4703 | return 0; | ||
4704 | } | ||
4705 | _ACEOF | ||
4706 | rm -f conftest.$ac_objext | ||
4707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4708 | (eval $ac_compile) 2>conftest.er1 | ||
4709 | ac_status=$? | ||
4710 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4711 | rm -f conftest.er1 | ||
4712 | cat conftest.err >&5 | ||
4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4714 | (exit $ac_status); } && | ||
4715 | { ac_try='test -z "$ac_c_werror_flag" | ||
4716 | || test ! -s conftest.err' | ||
4717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4718 | (eval $ac_try) 2>&5 | ||
4719 | ac_status=$? | ||
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4721 | (exit $ac_status); }; } && | ||
4722 | { ac_try='test -s conftest.$ac_objext' | ||
4723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4724 | (eval $ac_try) 2>&5 | ||
4725 | ac_status=$? | ||
4726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4727 | (exit $ac_status); }; }; then | ||
4728 | ac_cv_have_decl_loginrestrictions=yes | ||
4729 | else | ||
4730 | echo "$as_me: failed program was:" >&5 | ||
4731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4732 | |||
4733 | ac_cv_have_decl_loginrestrictions=no | ||
4734 | fi | ||
4735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4736 | fi | ||
4737 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
4738 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6 | ||
4739 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
4740 | |||
4741 | cat >>confdefs.h <<_ACEOF | ||
4742 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
4743 | _ACEOF | ||
4744 | |||
4745 | |||
4746 | else | ||
4747 | cat >>confdefs.h <<_ACEOF | ||
4748 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
4749 | _ACEOF | ||
4750 | |||
4751 | |||
4752 | fi | ||
4753 | echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
4754 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6 | ||
4755 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4757 | else | ||
4758 | cat >conftest.$ac_ext <<_ACEOF | ||
4759 | /* confdefs.h. */ | ||
4760 | _ACEOF | ||
4761 | cat confdefs.h >>conftest.$ac_ext | ||
4762 | cat >>conftest.$ac_ext <<_ACEOF | ||
4763 | /* end confdefs.h. */ | ||
4764 | #include <usersec.h> | ||
4765 | |||
4766 | int | ||
4767 | main () | ||
4768 | { | ||
4769 | #ifndef loginsuccess | ||
4770 | char *p = (char *) loginsuccess; | ||
4771 | #endif | ||
4772 | |||
4773 | ; | ||
4774 | return 0; | ||
4775 | } | ||
4776 | _ACEOF | ||
4777 | rm -f conftest.$ac_objext | ||
4778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4779 | (eval $ac_compile) 2>conftest.er1 | ||
4780 | ac_status=$? | ||
4781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4782 | rm -f conftest.er1 | ||
4783 | cat conftest.err >&5 | ||
4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4785 | (exit $ac_status); } && | ||
4786 | { ac_try='test -z "$ac_c_werror_flag" | ||
4787 | || test ! -s conftest.err' | ||
4788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4789 | (eval $ac_try) 2>&5 | ||
4790 | ac_status=$? | ||
4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4792 | (exit $ac_status); }; } && | ||
4793 | { ac_try='test -s conftest.$ac_objext' | ||
4794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4795 | (eval $ac_try) 2>&5 | ||
4796 | ac_status=$? | ||
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4798 | (exit $ac_status); }; }; then | ||
4799 | ac_cv_have_decl_loginsuccess=yes | ||
4800 | else | ||
4801 | echo "$as_me: failed program was:" >&5 | ||
4802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4803 | |||
4804 | ac_cv_have_decl_loginsuccess=no | ||
4805 | fi | ||
4806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4807 | fi | ||
4808 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
4809 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6 | ||
4810 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
4811 | |||
4812 | cat >>confdefs.h <<_ACEOF | ||
4813 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
4814 | _ACEOF | ||
4815 | |||
4816 | |||
4817 | else | ||
4818 | cat >>confdefs.h <<_ACEOF | ||
4819 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
4820 | _ACEOF | ||
4821 | |||
4822 | |||
4823 | fi | ||
4824 | echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
4825 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6 | ||
4826 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
4827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4828 | else | ||
4829 | cat >conftest.$ac_ext <<_ACEOF | ||
4830 | /* confdefs.h. */ | ||
4831 | _ACEOF | ||
4832 | cat confdefs.h >>conftest.$ac_ext | ||
4833 | cat >>conftest.$ac_ext <<_ACEOF | ||
4834 | /* end confdefs.h. */ | ||
4835 | #include <usersec.h> | ||
4836 | |||
4837 | int | ||
4838 | main () | ||
4839 | { | ||
4840 | #ifndef passwdexpired | ||
4841 | char *p = (char *) passwdexpired; | ||
4842 | #endif | ||
4843 | |||
4844 | ; | ||
4845 | return 0; | ||
4846 | } | ||
4847 | _ACEOF | ||
4848 | rm -f conftest.$ac_objext | ||
4849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4850 | (eval $ac_compile) 2>conftest.er1 | ||
4851 | ac_status=$? | ||
4852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4853 | rm -f conftest.er1 | ||
4854 | cat conftest.err >&5 | ||
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4856 | (exit $ac_status); } && | ||
4857 | { ac_try='test -z "$ac_c_werror_flag" | ||
4858 | || test ! -s conftest.err' | ||
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4860 | (eval $ac_try) 2>&5 | ||
4861 | ac_status=$? | ||
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4863 | (exit $ac_status); }; } && | ||
4864 | { ac_try='test -s conftest.$ac_objext' | ||
4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4866 | (eval $ac_try) 2>&5 | ||
4867 | ac_status=$? | ||
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4869 | (exit $ac_status); }; }; then | ||
4870 | ac_cv_have_decl_passwdexpired=yes | ||
4871 | else | ||
4872 | echo "$as_me: failed program was:" >&5 | ||
4873 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4874 | |||
4875 | ac_cv_have_decl_passwdexpired=no | ||
4876 | fi | ||
4877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4878 | fi | ||
4879 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
4880 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6 | ||
4881 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
4882 | |||
4883 | cat >>confdefs.h <<_ACEOF | ||
4884 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
4885 | _ACEOF | ||
4886 | |||
4887 | |||
4888 | else | ||
4889 | cat >>confdefs.h <<_ACEOF | ||
4890 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
4891 | _ACEOF | ||
4892 | |||
4893 | |||
4894 | fi | ||
4895 | echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
4896 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6 | ||
4897 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
4898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4899 | else | ||
4900 | cat >conftest.$ac_ext <<_ACEOF | ||
4901 | /* confdefs.h. */ | ||
4902 | _ACEOF | ||
4903 | cat confdefs.h >>conftest.$ac_ext | ||
4904 | cat >>conftest.$ac_ext <<_ACEOF | ||
4905 | /* end confdefs.h. */ | ||
4906 | #include <usersec.h> | ||
4907 | |||
4908 | int | ||
4909 | main () | ||
4910 | { | ||
4911 | #ifndef setauthdb | ||
4912 | char *p = (char *) setauthdb; | ||
4913 | #endif | ||
4914 | |||
4915 | ; | ||
4916 | return 0; | ||
4917 | } | ||
4918 | _ACEOF | ||
4919 | rm -f conftest.$ac_objext | ||
4920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4921 | (eval $ac_compile) 2>conftest.er1 | ||
4922 | ac_status=$? | ||
4923 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4924 | rm -f conftest.er1 | ||
4925 | cat conftest.err >&5 | ||
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4927 | (exit $ac_status); } && | ||
4928 | { ac_try='test -z "$ac_c_werror_flag" | ||
4929 | || test ! -s conftest.err' | ||
4930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4931 | (eval $ac_try) 2>&5 | ||
4932 | ac_status=$? | ||
4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4934 | (exit $ac_status); }; } && | ||
4935 | { ac_try='test -s conftest.$ac_objext' | ||
4936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4937 | (eval $ac_try) 2>&5 | ||
4938 | ac_status=$? | ||
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4940 | (exit $ac_status); }; }; then | ||
4941 | ac_cv_have_decl_setauthdb=yes | ||
4942 | else | ||
4943 | echo "$as_me: failed program was:" >&5 | ||
4944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4945 | |||
4946 | ac_cv_have_decl_setauthdb=no | ||
4947 | fi | ||
4948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4949 | fi | ||
4950 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
4951 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6 | ||
4952 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
4953 | |||
4954 | cat >>confdefs.h <<_ACEOF | ||
4955 | #define HAVE_DECL_SETAUTHDB 1 | ||
4956 | _ACEOF | ||
4957 | |||
4958 | |||
4959 | else | ||
4960 | cat >>confdefs.h <<_ACEOF | ||
4961 | #define HAVE_DECL_SETAUTHDB 0 | ||
4962 | _ACEOF | ||
4963 | |||
4964 | |||
4965 | fi | ||
4966 | |||
4967 | |||
4968 | echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
4969 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
4970 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4972 | else | ||
4973 | cat >conftest.$ac_ext <<_ACEOF | ||
4974 | /* confdefs.h. */ | ||
4975 | _ACEOF | ||
4976 | cat confdefs.h >>conftest.$ac_ext | ||
4977 | cat >>conftest.$ac_ext <<_ACEOF | ||
4978 | /* end confdefs.h. */ | ||
4979 | #include <usersec.h> | ||
4980 | |||
4981 | |||
4982 | int | ||
4983 | main () | ||
4984 | { | ||
4985 | #ifndef loginfailed | ||
4986 | char *p = (char *) loginfailed; | ||
4987 | #endif | ||
4988 | |||
4989 | ; | ||
4990 | return 0; | ||
4991 | } | ||
4992 | _ACEOF | ||
4993 | rm -f conftest.$ac_objext | ||
4994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4995 | (eval $ac_compile) 2>conftest.er1 | ||
4996 | ac_status=$? | ||
4997 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4998 | rm -f conftest.er1 | ||
4999 | cat conftest.err >&5 | ||
5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5001 | (exit $ac_status); } && | ||
5002 | { ac_try='test -z "$ac_c_werror_flag" | ||
5003 | || test ! -s conftest.err' | ||
5004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5005 | (eval $ac_try) 2>&5 | ||
5006 | ac_status=$? | ||
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5008 | (exit $ac_status); }; } && | ||
5009 | { ac_try='test -s conftest.$ac_objext' | ||
5010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5011 | (eval $ac_try) 2>&5 | ||
5012 | ac_status=$? | ||
5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5014 | (exit $ac_status); }; }; then | ||
5015 | ac_cv_have_decl_loginfailed=yes | ||
5016 | else | ||
5017 | echo "$as_me: failed program was:" >&5 | ||
5018 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5019 | |||
5020 | ac_cv_have_decl_loginfailed=no | ||
5021 | fi | ||
5022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5023 | fi | ||
5024 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
5025 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
5026 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
5027 | |||
5028 | cat >>confdefs.h <<_ACEOF | ||
5029 | #define HAVE_DECL_LOGINFAILED 1 | ||
5030 | _ACEOF | ||
5031 | |||
5032 | echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
5033 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
5034 | cat >conftest.$ac_ext <<_ACEOF | ||
5035 | /* confdefs.h. */ | ||
5036 | _ACEOF | ||
5037 | cat confdefs.h >>conftest.$ac_ext | ||
5038 | cat >>conftest.$ac_ext <<_ACEOF | ||
5039 | /* end confdefs.h. */ | ||
5040 | #include <usersec.h> | ||
5041 | int | ||
5042 | main () | ||
5043 | { | ||
5044 | (void)loginfailed("user","host","tty",0); | ||
5045 | ; | ||
5046 | return 0; | ||
5047 | } | ||
5048 | _ACEOF | ||
5049 | rm -f conftest.$ac_objext | ||
5050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5051 | (eval $ac_compile) 2>conftest.er1 | ||
5052 | ac_status=$? | ||
5053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5054 | rm -f conftest.er1 | ||
5055 | cat conftest.err >&5 | ||
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5057 | (exit $ac_status); } && | ||
5058 | { ac_try='test -z "$ac_c_werror_flag" | ||
5059 | || test ! -s conftest.err' | ||
5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5061 | (eval $ac_try) 2>&5 | ||
5062 | ac_status=$? | ||
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5064 | (exit $ac_status); }; } && | ||
5065 | { ac_try='test -s conftest.$ac_objext' | ||
5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5067 | (eval $ac_try) 2>&5 | ||
5068 | ac_status=$? | ||
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5070 | (exit $ac_status); }; }; then | ||
5071 | echo "$as_me:$LINENO: result: yes" >&5 | ||
5072 | echo "${ECHO_T}yes" >&6 | ||
5073 | cat >>confdefs.h <<\_ACEOF | ||
5074 | #define AIX_LOGINFAILED_4ARG 1 | ||
5075 | _ACEOF | ||
5076 | |||
5077 | else | ||
5078 | echo "$as_me: failed program was:" >&5 | ||
5079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5080 | |||
5081 | echo "$as_me:$LINENO: result: no" >&5 | ||
5082 | echo "${ECHO_T}no" >&6 | ||
5083 | |||
5084 | fi | ||
5085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5086 | else | ||
5087 | cat >>confdefs.h <<_ACEOF | ||
5088 | #define HAVE_DECL_LOGINFAILED 0 | ||
5089 | _ACEOF | ||
5090 | |||
5091 | |||
5092 | fi | ||
5093 | |||
5094 | |||
5095 | |||
5096 | for ac_func in setauthdb | ||
5097 | do | ||
5098 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5099 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5100 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5101 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5103 | else | ||
5104 | cat >conftest.$ac_ext <<_ACEOF | ||
5105 | /* confdefs.h. */ | ||
5106 | _ACEOF | ||
5107 | cat confdefs.h >>conftest.$ac_ext | ||
5108 | cat >>conftest.$ac_ext <<_ACEOF | ||
5109 | /* end confdefs.h. */ | ||
5110 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5112 | #define $ac_func innocuous_$ac_func | ||
5113 | |||
5114 | /* System header to define __stub macros and hopefully few prototypes, | ||
5115 | which can conflict with char $ac_func (); below. | ||
5116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5117 | <limits.h> exists even on freestanding compilers. */ | ||
5118 | |||
5119 | #ifdef __STDC__ | ||
5120 | # include <limits.h> | ||
5121 | #else | ||
5122 | # include <assert.h> | ||
5123 | #endif | ||
5124 | |||
5125 | #undef $ac_func | ||
5126 | |||
5127 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5128 | #ifdef __cplusplus | ||
5129 | extern "C" | ||
5130 | { | ||
5131 | #endif | ||
5132 | /* We use char because int might match the return type of a gcc2 | ||
5133 | builtin and then its argument prototype would still apply. */ | ||
5134 | char $ac_func (); | ||
5135 | /* The GNU C library defines this for functions which it implements | ||
5136 | to always fail with ENOSYS. Some functions are actually named | ||
5137 | something starting with __ and the normal name is an alias. */ | ||
5138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5139 | choke me | ||
5140 | #else | ||
5141 | char (*f) () = $ac_func; | ||
5142 | #endif | ||
5143 | #ifdef __cplusplus | ||
5144 | } | ||
5145 | #endif | ||
5146 | |||
5147 | int | ||
5148 | main () | ||
5149 | { | ||
5150 | return f != $ac_func; | ||
5151 | ; | ||
5152 | return 0; | ||
5153 | } | ||
5154 | _ACEOF | ||
5155 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5157 | (eval $ac_link) 2>conftest.er1 | ||
5158 | ac_status=$? | ||
5159 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5160 | rm -f conftest.er1 | ||
5161 | cat conftest.err >&5 | ||
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5163 | (exit $ac_status); } && | ||
5164 | { ac_try='test -z "$ac_c_werror_flag" | ||
5165 | || test ! -s conftest.err' | ||
5166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5167 | (eval $ac_try) 2>&5 | ||
5168 | ac_status=$? | ||
5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5170 | (exit $ac_status); }; } && | ||
5171 | { ac_try='test -s conftest$ac_exeext' | ||
5172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5173 | (eval $ac_try) 2>&5 | ||
5174 | ac_status=$? | ||
5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5176 | (exit $ac_status); }; }; then | ||
5177 | eval "$as_ac_var=yes" | ||
5178 | else | ||
5179 | echo "$as_me: failed program was:" >&5 | ||
5180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5181 | |||
5182 | eval "$as_ac_var=no" | ||
5183 | fi | ||
5184 | rm -f conftest.err conftest.$ac_objext \ | ||
5185 | conftest$ac_exeext conftest.$ac_ext | ||
5186 | fi | ||
5187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5188 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5189 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5190 | cat >>confdefs.h <<_ACEOF | ||
5191 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5192 | _ACEOF | ||
5193 | |||
5194 | fi | ||
5195 | done | ||
5196 | |||
5197 | check_for_aix_broken_getaddrinfo=1 | ||
5198 | cat >>confdefs.h <<\_ACEOF | ||
5199 | #define BROKEN_REALPATH 1 | ||
5200 | _ACEOF | ||
5201 | |||
5202 | cat >>confdefs.h <<\_ACEOF | ||
5203 | #define SETEUID_BREAKS_SETUID 1 | ||
5204 | _ACEOF | ||
5205 | |||
5206 | cat >>confdefs.h <<\_ACEOF | ||
5207 | #define BROKEN_SETREUID 1 | ||
5208 | _ACEOF | ||
5209 | |||
5210 | cat >>confdefs.h <<\_ACEOF | ||
5211 | #define BROKEN_SETREGID 1 | ||
5212 | _ACEOF | ||
5213 | |||
5214 | cat >>confdefs.h <<\_ACEOF | ||
5215 | #define DISABLE_LASTLOG 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 SPT_TYPE SPT_REUSEARGV | ||
5224 | _ACEOF | ||
5225 | |||
5226 | ;; | ||
5227 | *-*-cygwin*) | ||
5228 | check_for_libcrypt_later=1 | ||
5229 | LIBS="$LIBS /usr/lib/textmode.o" | ||
5230 | cat >>confdefs.h <<\_ACEOF | ||
5231 | #define HAVE_CYGWIN 1 | ||
5232 | _ACEOF | ||
5233 | |||
5234 | cat >>confdefs.h <<\_ACEOF | ||
5235 | #define USE_PIPES 1 | ||
5236 | _ACEOF | ||
5237 | |||
5238 | cat >>confdefs.h <<\_ACEOF | ||
5239 | #define DISABLE_SHADOW 1 | ||
5240 | _ACEOF | ||
5241 | |||
5242 | cat >>confdefs.h <<\_ACEOF | ||
5243 | #define IP_TOS_IS_BROKEN 1 | ||
5244 | _ACEOF | ||
5245 | |||
5246 | cat >>confdefs.h <<\_ACEOF | ||
5247 | #define NO_X11_UNIX_SOCKETS 1 | ||
5248 | _ACEOF | ||
5249 | |||
5250 | cat >>confdefs.h <<\_ACEOF | ||
5251 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
5252 | _ACEOF | ||
5253 | |||
5254 | cat >>confdefs.h <<\_ACEOF | ||
5255 | #define DISABLE_FD_PASSING 1 | ||
5256 | _ACEOF | ||
5257 | |||
5258 | ;; | ||
5259 | *-*-dgux*) | ||
5260 | cat >>confdefs.h <<\_ACEOF | ||
5261 | #define IP_TOS_IS_BROKEN 1 | ||
5262 | _ACEOF | ||
5263 | |||
5264 | cat >>confdefs.h <<\_ACEOF | ||
5265 | #define SETEUID_BREAKS_SETUID 1 | ||
5266 | _ACEOF | ||
5267 | |||
5268 | cat >>confdefs.h <<\_ACEOF | ||
5269 | #define BROKEN_SETREUID 1 | ||
5270 | _ACEOF | ||
5271 | |||
5272 | cat >>confdefs.h <<\_ACEOF | ||
5273 | #define BROKEN_SETREGID 1 | ||
5274 | _ACEOF | ||
5275 | |||
5276 | ;; | ||
5277 | *-*-darwin*) | ||
5278 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
5279 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
5280 | if test "$cross_compiling" = yes; then | ||
5281 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
5282 | echo "${ECHO_T}assume it is working" >&6 | ||
5283 | else | ||
5284 | cat >conftest.$ac_ext <<_ACEOF | ||
5285 | /* confdefs.h. */ | ||
5286 | _ACEOF | ||
5287 | cat confdefs.h >>conftest.$ac_ext | ||
5288 | cat >>conftest.$ac_ext <<_ACEOF | ||
5289 | /* end confdefs.h. */ | ||
5290 | #include <mach-o/dyld.h> | ||
5291 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
5292 | exit(0); | ||
5293 | else | ||
5294 | exit(1); | ||
5295 | } | ||
5296 | _ACEOF | ||
5297 | rm -f conftest$ac_exeext | ||
5298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5299 | (eval $ac_link) 2>&5 | ||
5300 | ac_status=$? | ||
5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5304 | (eval $ac_try) 2>&5 | ||
5305 | ac_status=$? | ||
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5307 | (exit $ac_status); }; }; then | ||
5308 | echo "$as_me:$LINENO: result: working" >&5 | ||
5309 | echo "${ECHO_T}working" >&6 | ||
5310 | else | ||
5311 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5312 | echo "$as_me: failed program was:" >&5 | ||
5313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5314 | |||
5315 | ( exit $ac_status ) | ||
5316 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
5317 | echo "${ECHO_T}buggy" >&6 | ||
5318 | cat >>confdefs.h <<\_ACEOF | ||
5319 | #define BROKEN_GETADDRINFO 1 | ||
5320 | _ACEOF | ||
5321 | |||
5322 | fi | ||
5323 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5324 | fi | ||
5325 | cat >>confdefs.h <<\_ACEOF | ||
5326 | #define SETEUID_BREAKS_SETUID 1 | ||
5327 | _ACEOF | ||
5328 | |||
5329 | cat >>confdefs.h <<\_ACEOF | ||
5330 | #define BROKEN_SETREUID 1 | ||
5331 | _ACEOF | ||
5332 | |||
5333 | cat >>confdefs.h <<\_ACEOF | ||
5334 | #define BROKEN_SETREGID 1 | ||
5335 | _ACEOF | ||
5336 | |||
5337 | cat >>confdefs.h <<_ACEOF | ||
5338 | #define BIND_8_COMPAT 1 | ||
5339 | _ACEOF | ||
5340 | |||
5341 | ;; | ||
5342 | *-*-hpux*) | ||
5343 | # first we define all of the options common to all HP-UX releases | ||
5344 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
5345 | IPADDR_IN_DISPLAY=yes | ||
5346 | cat >>confdefs.h <<\_ACEOF | ||
5347 | #define USE_PIPES 1 | ||
5348 | _ACEOF | ||
5349 | |||
5350 | cat >>confdefs.h <<\_ACEOF | ||
5351 | #define LOGIN_NO_ENDOPT 1 | ||
5352 | _ACEOF | ||
5353 | |||
5354 | cat >>confdefs.h <<\_ACEOF | ||
5355 | #define LOGIN_NEEDS_UTMPX 1 | ||
5356 | _ACEOF | ||
5357 | |||
5358 | cat >>confdefs.h <<\_ACEOF | ||
5359 | #define LOCKED_PASSWD_STRING "*" | ||
5360 | _ACEOF | ||
5361 | |||
5362 | cat >>confdefs.h <<\_ACEOF | ||
5363 | #define SPT_TYPE SPT_PSTAT | ||
5364 | _ACEOF | ||
5365 | |||
5366 | LIBS="$LIBS -lsec" | ||
5367 | |||
5368 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
5369 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
5370 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
5371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5372 | else | ||
5373 | ac_check_lib_save_LIBS=$LIBS | ||
5374 | LIBS="-lxnet $LIBS" | ||
5375 | cat >conftest.$ac_ext <<_ACEOF | ||
5376 | /* confdefs.h. */ | ||
5377 | _ACEOF | ||
5378 | cat confdefs.h >>conftest.$ac_ext | ||
5379 | cat >>conftest.$ac_ext <<_ACEOF | ||
5380 | /* end confdefs.h. */ | ||
5381 | |||
5382 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5383 | #ifdef __cplusplus | ||
5384 | extern "C" | ||
5385 | #endif | ||
5386 | /* We use char because int might match the return type of a gcc2 | ||
5387 | builtin and then its argument prototype would still apply. */ | ||
5388 | char t_error (); | ||
5389 | int | ||
5390 | main () | ||
5391 | { | ||
5392 | t_error (); | ||
5393 | ; | ||
5394 | return 0; | ||
5395 | } | ||
5396 | _ACEOF | ||
5397 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5399 | (eval $ac_link) 2>conftest.er1 | ||
5400 | ac_status=$? | ||
5401 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5402 | rm -f conftest.er1 | ||
5403 | cat conftest.err >&5 | ||
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5405 | (exit $ac_status); } && | ||
5406 | { ac_try='test -z "$ac_c_werror_flag" | ||
5407 | || test ! -s conftest.err' | ||
5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5409 | (eval $ac_try) 2>&5 | ||
5410 | ac_status=$? | ||
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5412 | (exit $ac_status); }; } && | ||
5413 | { ac_try='test -s conftest$ac_exeext' | ||
5414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5415 | (eval $ac_try) 2>&5 | ||
5416 | ac_status=$? | ||
5417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5418 | (exit $ac_status); }; }; then | ||
5419 | ac_cv_lib_xnet_t_error=yes | ||
5420 | else | ||
5421 | echo "$as_me: failed program was:" >&5 | ||
5422 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5423 | |||
5424 | ac_cv_lib_xnet_t_error=no | ||
5425 | fi | ||
5426 | rm -f conftest.err conftest.$ac_objext \ | ||
5427 | conftest$ac_exeext conftest.$ac_ext | ||
5428 | LIBS=$ac_check_lib_save_LIBS | ||
5429 | fi | ||
5430 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5431 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5432 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5433 | cat >>confdefs.h <<_ACEOF | ||
5434 | #define HAVE_LIBXNET 1 | ||
5435 | _ACEOF | ||
5436 | |||
5437 | LIBS="-lxnet $LIBS" | ||
5438 | |||
5439 | else | ||
5440 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5441 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5442 | { (exit 1); exit 1; }; } | ||
5443 | fi | ||
5444 | |||
5445 | |||
5446 | # next, we define all of the options specific to major releases | ||
5447 | case "$host" in | ||
5448 | *-*-hpux10*) | ||
5449 | if test -z "$GCC"; then | ||
5450 | CFLAGS="$CFLAGS -Ae" | ||
5451 | fi | ||
5452 | ;; | ||
5453 | *-*-hpux11*) | ||
5454 | cat >>confdefs.h <<\_ACEOF | ||
5455 | #define PAM_SUN_CODEBASE 1 | ||
5456 | _ACEOF | ||
5457 | |||
5458 | cat >>confdefs.h <<\_ACEOF | ||
5459 | #define DISABLE_UTMP 1 | ||
5460 | _ACEOF | ||
5461 | |||
5462 | |||
5463 | cat >>confdefs.h <<\_ACEOF | ||
5464 | #define USE_BTMP 1 | ||
5465 | _ACEOF | ||
5466 | |||
5467 | check_for_hpux_broken_getaddrinfo=1 | ||
5468 | check_for_conflicting_getspnam=1 | ||
5469 | ;; | ||
5470 | esac | ||
5471 | |||
5472 | # lastly, we define options specific to minor releases | ||
5473 | case "$host" in | ||
5474 | *-*-hpux10.26) | ||
5475 | cat >>confdefs.h <<\_ACEOF | ||
5476 | #define HAVE_SECUREWARE 1 | ||
5477 | _ACEOF | ||
5478 | |||
5479 | disable_ptmx_check=yes | ||
5480 | LIBS="$LIBS -lsecpw" | ||
5481 | ;; | ||
5482 | esac | ||
5483 | ;; | ||
5484 | *-*-irix5*) | ||
5485 | PATH="$PATH:/usr/etc" | ||
5486 | cat >>confdefs.h <<\_ACEOF | ||
5487 | #define BROKEN_INET_NTOA 1 | ||
5488 | _ACEOF | ||
5489 | |||
5490 | cat >>confdefs.h <<\_ACEOF | ||
5491 | #define SETEUID_BREAKS_SETUID 1 | ||
5492 | _ACEOF | ||
5493 | |||
5494 | cat >>confdefs.h <<\_ACEOF | ||
5495 | #define BROKEN_SETREUID 1 | ||
5496 | _ACEOF | ||
5497 | |||
5498 | cat >>confdefs.h <<\_ACEOF | ||
5499 | #define BROKEN_SETREGID 1 | ||
5500 | _ACEOF | ||
5501 | |||
5502 | cat >>confdefs.h <<\_ACEOF | ||
5503 | #define WITH_ABBREV_NO_TTY 1 | ||
5504 | _ACEOF | ||
5505 | |||
5506 | cat >>confdefs.h <<\_ACEOF | ||
5507 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5508 | _ACEOF | ||
5509 | |||
5510 | ;; | ||
5511 | *-*-irix6*) | ||
5512 | PATH="$PATH:/usr/etc" | ||
5513 | cat >>confdefs.h <<\_ACEOF | ||
5514 | #define WITH_IRIX_ARRAY 1 | ||
5515 | _ACEOF | ||
5516 | |||
5517 | cat >>confdefs.h <<\_ACEOF | ||
5518 | #define WITH_IRIX_PROJECT 1 | ||
5519 | _ACEOF | ||
5520 | |||
5521 | cat >>confdefs.h <<\_ACEOF | ||
5522 | #define WITH_IRIX_AUDIT 1 | ||
5523 | _ACEOF | ||
5524 | |||
5525 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
5526 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
5527 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
5528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5529 | else | ||
5530 | cat >conftest.$ac_ext <<_ACEOF | ||
5531 | /* confdefs.h. */ | ||
5532 | _ACEOF | ||
5533 | cat confdefs.h >>conftest.$ac_ext | ||
5534 | cat >>conftest.$ac_ext <<_ACEOF | ||
5535 | /* end confdefs.h. */ | ||
5536 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
5537 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5538 | #define jlimit_startjob innocuous_jlimit_startjob | ||
5539 | |||
5540 | /* System header to define __stub macros and hopefully few prototypes, | ||
5541 | which can conflict with char jlimit_startjob (); below. | ||
5542 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5543 | <limits.h> exists even on freestanding compilers. */ | ||
5544 | |||
5545 | #ifdef __STDC__ | ||
5546 | # include <limits.h> | ||
5547 | #else | ||
5548 | # include <assert.h> | ||
5549 | #endif | ||
5550 | |||
5551 | #undef jlimit_startjob | ||
5552 | |||
5553 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5554 | #ifdef __cplusplus | ||
5555 | extern "C" | ||
5556 | { | ||
5557 | #endif | ||
5558 | /* We use char because int might match the return type of a gcc2 | ||
5559 | builtin and then its argument prototype would still apply. */ | ||
5560 | char jlimit_startjob (); | ||
5561 | /* The GNU C library defines this for functions which it implements | ||
5562 | to always fail with ENOSYS. Some functions are actually named | ||
5563 | something starting with __ and the normal name is an alias. */ | ||
5564 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
5565 | choke me | ||
5566 | #else | ||
5567 | char (*f) () = jlimit_startjob; | ||
5568 | #endif | ||
5569 | #ifdef __cplusplus | ||
5570 | } | ||
5571 | #endif | ||
5572 | |||
5573 | int | ||
5574 | main () | ||
5575 | { | ||
5576 | return f != jlimit_startjob; | ||
5577 | ; | ||
5578 | return 0; | ||
5579 | } | ||
5580 | _ACEOF | ||
5581 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5583 | (eval $ac_link) 2>conftest.er1 | ||
5584 | ac_status=$? | ||
5585 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5586 | rm -f conftest.er1 | ||
5587 | cat conftest.err >&5 | ||
5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5589 | (exit $ac_status); } && | ||
5590 | { ac_try='test -z "$ac_c_werror_flag" | ||
5591 | || test ! -s conftest.err' | ||
5592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5593 | (eval $ac_try) 2>&5 | ||
5594 | ac_status=$? | ||
5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5596 | (exit $ac_status); }; } && | ||
5597 | { ac_try='test -s conftest$ac_exeext' | ||
5598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5599 | (eval $ac_try) 2>&5 | ||
5600 | ac_status=$? | ||
5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5602 | (exit $ac_status); }; }; then | ||
5603 | ac_cv_func_jlimit_startjob=yes | ||
5604 | else | ||
5605 | echo "$as_me: failed program was:" >&5 | ||
5606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5607 | |||
5608 | ac_cv_func_jlimit_startjob=no | ||
5609 | fi | ||
5610 | rm -f conftest.err conftest.$ac_objext \ | ||
5611 | conftest$ac_exeext conftest.$ac_ext | ||
5612 | fi | ||
5613 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
5614 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
5615 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
5616 | cat >>confdefs.h <<\_ACEOF | ||
5617 | #define WITH_IRIX_JOBS 1 | ||
5618 | _ACEOF | ||
5619 | |||
5620 | fi | ||
5621 | |||
5622 | cat >>confdefs.h <<\_ACEOF | ||
5623 | #define BROKEN_INET_NTOA 1 | ||
5624 | _ACEOF | ||
5625 | |||
5626 | cat >>confdefs.h <<\_ACEOF | ||
5627 | #define SETEUID_BREAKS_SETUID 1 | ||
5628 | _ACEOF | ||
5629 | |||
5630 | cat >>confdefs.h <<\_ACEOF | ||
5631 | #define BROKEN_SETREUID 1 | ||
5632 | _ACEOF | ||
5633 | |||
5634 | cat >>confdefs.h <<\_ACEOF | ||
5635 | #define BROKEN_SETREGID 1 | ||
5636 | _ACEOF | ||
5637 | |||
5638 | cat >>confdefs.h <<\_ACEOF | ||
5639 | #define BROKEN_UPDWTMPX 1 | ||
5640 | _ACEOF | ||
5641 | |||
5642 | cat >>confdefs.h <<\_ACEOF | ||
5643 | #define WITH_ABBREV_NO_TTY 1 | ||
5644 | _ACEOF | ||
5645 | |||
5646 | cat >>confdefs.h <<\_ACEOF | ||
5647 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5648 | _ACEOF | ||
5649 | |||
5650 | ;; | ||
5651 | *-*-linux*) | ||
5652 | no_dev_ptmx=1 | ||
5653 | check_for_libcrypt_later=1 | ||
5654 | check_for_openpty_ctty_bug=1 | ||
5655 | cat >>confdefs.h <<\_ACEOF | ||
5656 | #define DONT_TRY_OTHER_AF 1 | ||
5657 | _ACEOF | ||
5658 | |||
5659 | cat >>confdefs.h <<\_ACEOF | ||
5660 | #define PAM_TTY_KLUDGE 1 | ||
5661 | _ACEOF | ||
5662 | |||
5663 | cat >>confdefs.h <<\_ACEOF | ||
5664 | #define LOCKED_PASSWD_PREFIX "!" | ||
5665 | _ACEOF | ||
5666 | |||
5667 | cat >>confdefs.h <<\_ACEOF | ||
5668 | #define SPT_TYPE SPT_REUSEARGV | ||
5669 | _ACEOF | ||
5670 | |||
5671 | cat >>confdefs.h <<\_ACEOF | ||
5672 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
5673 | _ACEOF | ||
5674 | |||
5675 | |||
5676 | cat >>confdefs.h <<\_ACEOF | ||
5677 | #define _PATH_BTMP "/var/log/btmp" | ||
5678 | _ACEOF | ||
5679 | |||
5680 | |||
5681 | cat >>confdefs.h <<\_ACEOF | ||
5682 | #define USE_BTMP 1 | ||
5683 | _ACEOF | ||
5684 | |||
5685 | inet6_default_4in6=yes | ||
5686 | case `uname -r` in | ||
5687 | 1.*|2.0.*) | ||
5688 | cat >>confdefs.h <<\_ACEOF | ||
5689 | #define BROKEN_CMSG_TYPE 1 | ||
5690 | _ACEOF | ||
5691 | |||
5692 | ;; | ||
5693 | esac | ||
5694 | ;; | ||
5695 | mips-sony-bsd|mips-sony-newsos4) | ||
5696 | |||
5697 | cat >>confdefs.h <<\_ACEOF | ||
5698 | #define NEED_SETPRGP | ||
5699 | _ACEOF | ||
5700 | |||
5701 | SONY=1 | ||
5702 | ;; | ||
5703 | *-*-netbsd*) | ||
5704 | check_for_libcrypt_before=1 | ||
5705 | if test "x$withval" != "xno" ; then | ||
5706 | need_dash_r=1 | ||
5707 | fi | ||
5708 | ;; | ||
5709 | *-*-freebsd*) | ||
5710 | check_for_libcrypt_later=1 | ||
5711 | ;; | ||
5712 | *-*-bsdi*) | ||
5713 | cat >>confdefs.h <<\_ACEOF | ||
5714 | #define SETEUID_BREAKS_SETUID 1 | ||
5715 | _ACEOF | ||
5716 | |||
5717 | cat >>confdefs.h <<\_ACEOF | ||
5718 | #define BROKEN_SETREUID 1 | ||
5719 | _ACEOF | ||
5720 | |||
5721 | cat >>confdefs.h <<\_ACEOF | ||
5722 | #define BROKEN_SETREGID 1 | ||
5723 | _ACEOF | ||
5724 | |||
5725 | ;; | ||
5726 | *-next-*) | ||
5727 | conf_lastlog_location="/usr/adm/lastlog" | ||
5728 | conf_utmp_location=/etc/utmp | ||
5729 | conf_wtmp_location=/usr/adm/wtmp | ||
5730 | MAIL=/usr/spool/mail | ||
5731 | cat >>confdefs.h <<\_ACEOF | ||
5732 | #define HAVE_NEXT 1 | ||
5733 | _ACEOF | ||
5734 | |||
5735 | cat >>confdefs.h <<\_ACEOF | ||
5736 | #define BROKEN_REALPATH 1 | ||
5737 | _ACEOF | ||
5738 | |||
5739 | cat >>confdefs.h <<\_ACEOF | ||
5740 | #define USE_PIPES 1 | ||
5741 | _ACEOF | ||
5742 | |||
5743 | cat >>confdefs.h <<\_ACEOF | ||
5744 | #define BROKEN_SAVED_UIDS 1 | ||
5745 | _ACEOF | ||
5746 | |||
5747 | ;; | ||
5748 | *-*-openbsd*) | ||
5749 | |||
5750 | cat >>confdefs.h <<\_ACEOF | ||
5751 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
5752 | _ACEOF | ||
5753 | |||
5754 | ;; | ||
5755 | *-*-solaris*) | ||
5756 | if test "x$withval" != "xno" ; then | ||
5757 | need_dash_r=1 | ||
5758 | fi | ||
5759 | cat >>confdefs.h <<\_ACEOF | ||
5760 | #define PAM_SUN_CODEBASE 1 | ||
5761 | _ACEOF | ||
5762 | |||
5763 | cat >>confdefs.h <<\_ACEOF | ||
5764 | #define LOGIN_NEEDS_UTMPX 1 | ||
5765 | _ACEOF | ||
5766 | |||
5767 | cat >>confdefs.h <<\_ACEOF | ||
5768 | #define LOGIN_NEEDS_TERM 1 | ||
5769 | _ACEOF | ||
5770 | |||
5771 | cat >>confdefs.h <<\_ACEOF | ||
5772 | #define PAM_TTY_KLUDGE 1 | ||
5773 | _ACEOF | ||
5774 | |||
5775 | cat >>confdefs.h <<\_ACEOF | ||
5776 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
5777 | _ACEOF | ||
5778 | |||
5779 | cat >>confdefs.h <<\_ACEOF | ||
5780 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5781 | _ACEOF | ||
5782 | |||
5783 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
5784 | cat >>confdefs.h <<\_ACEOF | ||
5785 | #define SSHD_ACQUIRES_CTTY 1 | ||
5786 | _ACEOF | ||
5787 | |||
5788 | external_path_file=/etc/default/login | ||
5789 | # hardwire lastlog location (can't detect it on some versions) | ||
5790 | conf_lastlog_location="/var/adm/lastlog" | ||
5791 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
5792 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
5793 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
5794 | if test "$sol2ver" -ge 8; then | ||
5795 | echo "$as_me:$LINENO: result: yes" >&5 | ||
5796 | echo "${ECHO_T}yes" >&6 | ||
5797 | cat >>confdefs.h <<\_ACEOF | ||
5798 | #define DISABLE_UTMP 1 | ||
5799 | _ACEOF | ||
5800 | |||
5801 | cat >>confdefs.h <<\_ACEOF | ||
5802 | #define DISABLE_WTMP 1 | ||
5803 | _ACEOF | ||
5804 | |||
5805 | else | ||
5806 | echo "$as_me:$LINENO: result: no" >&5 | ||
5807 | echo "${ECHO_T}no" >&6 | ||
5808 | fi | ||
5809 | ;; | ||
5810 | *-*-sunos4*) | ||
5811 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
5812 | |||
5813 | for ac_func in getpwanam | ||
5814 | do | ||
5815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5820 | else | ||
5821 | cat >conftest.$ac_ext <<_ACEOF | ||
5822 | /* confdefs.h. */ | ||
5823 | _ACEOF | ||
5824 | cat confdefs.h >>conftest.$ac_ext | ||
5825 | cat >>conftest.$ac_ext <<_ACEOF | ||
5826 | /* end confdefs.h. */ | ||
5827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5829 | #define $ac_func innocuous_$ac_func | ||
5830 | |||
5831 | /* System header to define __stub macros and hopefully few prototypes, | ||
5832 | which can conflict with char $ac_func (); below. | ||
5833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5834 | <limits.h> exists even on freestanding compilers. */ | ||
5835 | |||
5836 | #ifdef __STDC__ | ||
5837 | # include <limits.h> | ||
5838 | #else | ||
5839 | # include <assert.h> | ||
5840 | #endif | ||
5841 | |||
5842 | #undef $ac_func | ||
5843 | |||
5844 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5845 | #ifdef __cplusplus | ||
5846 | extern "C" | ||
5847 | { | ||
5848 | #endif | ||
5849 | /* We use char because int might match the return type of a gcc2 | ||
5850 | builtin and then its argument prototype would still apply. */ | ||
5851 | char $ac_func (); | ||
5852 | /* The GNU C library defines this for functions which it implements | ||
5853 | to always fail with ENOSYS. Some functions are actually named | ||
5854 | something starting with __ and the normal name is an alias. */ | ||
5855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5856 | choke me | ||
5857 | #else | ||
5858 | char (*f) () = $ac_func; | ||
5859 | #endif | ||
5860 | #ifdef __cplusplus | ||
5861 | } | ||
5862 | #endif | ||
5863 | |||
5864 | int | ||
5865 | main () | ||
5866 | { | ||
5867 | return f != $ac_func; | ||
5868 | ; | ||
5869 | return 0; | ||
5870 | } | ||
5871 | _ACEOF | ||
5872 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5874 | (eval $ac_link) 2>conftest.er1 | ||
5875 | ac_status=$? | ||
5876 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5877 | rm -f conftest.er1 | ||
5878 | cat conftest.err >&5 | ||
5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5880 | (exit $ac_status); } && | ||
5881 | { ac_try='test -z "$ac_c_werror_flag" | ||
5882 | || test ! -s conftest.err' | ||
5883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5884 | (eval $ac_try) 2>&5 | ||
5885 | ac_status=$? | ||
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5887 | (exit $ac_status); }; } && | ||
5888 | { ac_try='test -s conftest$ac_exeext' | ||
5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5890 | (eval $ac_try) 2>&5 | ||
5891 | ac_status=$? | ||
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5893 | (exit $ac_status); }; }; then | ||
5894 | eval "$as_ac_var=yes" | ||
5895 | else | ||
5896 | echo "$as_me: failed program was:" >&5 | ||
5897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5898 | |||
5899 | eval "$as_ac_var=no" | ||
5900 | fi | ||
5901 | rm -f conftest.err conftest.$ac_objext \ | ||
5902 | conftest$ac_exeext conftest.$ac_ext | ||
5903 | fi | ||
5904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5905 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5907 | cat >>confdefs.h <<_ACEOF | ||
5908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5909 | _ACEOF | ||
5910 | |||
5911 | fi | ||
5912 | done | ||
5913 | |||
5914 | cat >>confdefs.h <<\_ACEOF | ||
5915 | #define PAM_SUN_CODEBASE 1 | ||
5916 | _ACEOF | ||
5917 | |||
5918 | conf_utmp_location=/etc/utmp | ||
5919 | conf_wtmp_location=/var/adm/wtmp | ||
5920 | conf_lastlog_location=/var/adm/lastlog | ||
5921 | cat >>confdefs.h <<\_ACEOF | ||
5922 | #define USE_PIPES 1 | ||
5923 | _ACEOF | ||
5924 | |||
5925 | ;; | ||
5926 | *-ncr-sysv*) | ||
5927 | LIBS="$LIBS -lc89" | ||
5928 | cat >>confdefs.h <<\_ACEOF | ||
5929 | #define USE_PIPES 1 | ||
5930 | _ACEOF | ||
5931 | |||
5932 | cat >>confdefs.h <<\_ACEOF | ||
5933 | #define SSHD_ACQUIRES_CTTY 1 | ||
5934 | _ACEOF | ||
5935 | |||
5936 | cat >>confdefs.h <<\_ACEOF | ||
5937 | #define SETEUID_BREAKS_SETUID 1 | ||
5938 | _ACEOF | ||
5939 | |||
5940 | cat >>confdefs.h <<\_ACEOF | ||
5941 | #define BROKEN_SETREUID 1 | ||
5942 | _ACEOF | ||
5943 | |||
5944 | cat >>confdefs.h <<\_ACEOF | ||
5945 | #define BROKEN_SETREGID 1 | ||
5946 | _ACEOF | ||
5947 | |||
5948 | ;; | ||
5949 | *-sni-sysv*) | ||
5950 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
5951 | |||
5952 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
5953 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
5954 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5956 | else | ||
5957 | ac_check_lib_save_LIBS=$LIBS | ||
5958 | LIBS="-ldl $LIBS" | ||
5959 | cat >conftest.$ac_ext <<_ACEOF | ||
5960 | /* confdefs.h. */ | ||
5961 | _ACEOF | ||
5962 | cat confdefs.h >>conftest.$ac_ext | ||
5963 | cat >>conftest.$ac_ext <<_ACEOF | ||
5964 | /* end confdefs.h. */ | ||
5965 | |||
5966 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5967 | #ifdef __cplusplus | ||
5968 | extern "C" | ||
5969 | #endif | ||
5970 | /* We use char because int might match the return type of a gcc2 | ||
5971 | builtin and then its argument prototype would still apply. */ | ||
5972 | char dlsym (); | ||
5973 | int | ||
5974 | main () | ||
5975 | { | ||
5976 | dlsym (); | ||
5977 | ; | ||
5978 | return 0; | ||
5979 | } | ||
5980 | _ACEOF | ||
5981 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5983 | (eval $ac_link) 2>conftest.er1 | ||
5984 | ac_status=$? | ||
5985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5986 | rm -f conftest.er1 | ||
5987 | cat conftest.err >&5 | ||
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5989 | (exit $ac_status); } && | ||
5990 | { ac_try='test -z "$ac_c_werror_flag" | ||
5991 | || test ! -s conftest.err' | ||
5992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5993 | (eval $ac_try) 2>&5 | ||
5994 | ac_status=$? | ||
5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5996 | (exit $ac_status); }; } && | ||
5997 | { ac_try='test -s conftest$ac_exeext' | ||
5998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5999 | (eval $ac_try) 2>&5 | ||
6000 | ac_status=$? | ||
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6002 | (exit $ac_status); }; }; then | ||
6003 | ac_cv_lib_dl_dlsym=yes | ||
6004 | else | ||
6005 | echo "$as_me: failed program was:" >&5 | ||
6006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6007 | |||
6008 | ac_cv_lib_dl_dlsym=no | ||
6009 | fi | ||
6010 | rm -f conftest.err conftest.$ac_objext \ | ||
6011 | conftest$ac_exeext conftest.$ac_ext | ||
6012 | LIBS=$ac_check_lib_save_LIBS | ||
6013 | fi | ||
6014 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
6015 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
6016 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
6017 | cat >>confdefs.h <<_ACEOF | ||
6018 | #define HAVE_LIBDL 1 | ||
6019 | _ACEOF | ||
6020 | |||
6021 | LIBS="-ldl $LIBS" | ||
6022 | |||
6023 | fi | ||
6024 | |||
6025 | # -lresolv needs to be at then end of LIBS or DNS lookups break | ||
6026 | echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5 | ||
6027 | echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6 | ||
6028 | if test "${ac_cv_lib_res_query_resolv+set}" = set; then | ||
6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6030 | else | ||
6031 | ac_check_lib_save_LIBS=$LIBS | ||
6032 | LIBS="-lres_query $LIBS" | ||
6033 | cat >conftest.$ac_ext <<_ACEOF | ||
6034 | /* confdefs.h. */ | ||
6035 | _ACEOF | ||
6036 | cat confdefs.h >>conftest.$ac_ext | ||
6037 | cat >>conftest.$ac_ext <<_ACEOF | ||
6038 | /* end confdefs.h. */ | ||
6039 | |||
6040 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6041 | #ifdef __cplusplus | ||
6042 | extern "C" | ||
6043 | #endif | ||
6044 | /* We use char because int might match the return type of a gcc2 | ||
6045 | builtin and then its argument prototype would still apply. */ | ||
6046 | char resolv (); | ||
6047 | int | ||
6048 | main () | ||
6049 | { | ||
6050 | resolv (); | ||
6051 | ; | ||
6052 | return 0; | ||
6053 | } | ||
6054 | _ACEOF | ||
6055 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6057 | (eval $ac_link) 2>conftest.er1 | ||
6058 | ac_status=$? | ||
6059 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6060 | rm -f conftest.er1 | ||
6061 | cat conftest.err >&5 | ||
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6063 | (exit $ac_status); } && | ||
6064 | { ac_try='test -z "$ac_c_werror_flag" | ||
6065 | || test ! -s conftest.err' | ||
6066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6067 | (eval $ac_try) 2>&5 | ||
6068 | ac_status=$? | ||
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6070 | (exit $ac_status); }; } && | ||
6071 | { ac_try='test -s conftest$ac_exeext' | ||
6072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6073 | (eval $ac_try) 2>&5 | ||
6074 | ac_status=$? | ||
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6076 | (exit $ac_status); }; }; then | ||
6077 | ac_cv_lib_res_query_resolv=yes | ||
6078 | else | ||
6079 | echo "$as_me: failed program was:" >&5 | ||
6080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6081 | |||
6082 | ac_cv_lib_res_query_resolv=no | ||
6083 | fi | ||
6084 | rm -f conftest.err conftest.$ac_objext \ | ||
6085 | conftest$ac_exeext conftest.$ac_ext | ||
6086 | LIBS=$ac_check_lib_save_LIBS | ||
6087 | fi | ||
6088 | echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5 | ||
6089 | echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6 | ||
6090 | if test $ac_cv_lib_res_query_resolv = yes; then | ||
6091 | LIBS="$LIBS -lresolv" | ||
6092 | fi | ||
6093 | |||
6094 | IPADDR_IN_DISPLAY=yes | ||
6095 | cat >>confdefs.h <<\_ACEOF | ||
6096 | #define USE_PIPES 1 | ||
6097 | _ACEOF | ||
6098 | |||
6099 | cat >>confdefs.h <<\_ACEOF | ||
6100 | #define IP_TOS_IS_BROKEN 1 | ||
6101 | _ACEOF | ||
6102 | |||
6103 | cat >>confdefs.h <<\_ACEOF | ||
6104 | #define SETEUID_BREAKS_SETUID 1 | ||
6105 | _ACEOF | ||
6106 | |||
6107 | cat >>confdefs.h <<\_ACEOF | ||
6108 | #define BROKEN_SETREUID 1 | ||
6109 | _ACEOF | ||
6110 | |||
6111 | cat >>confdefs.h <<\_ACEOF | ||
6112 | #define BROKEN_SETREGID 1 | ||
6113 | _ACEOF | ||
6114 | |||
6115 | cat >>confdefs.h <<\_ACEOF | ||
6116 | #define SSHD_ACQUIRES_CTTY 1 | ||
6117 | _ACEOF | ||
6118 | |||
6119 | external_path_file=/etc/default/login | ||
6120 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
6121 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
6122 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
6123 | ;; | ||
6124 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
6125 | *-*-sysv4.2*) | ||
6126 | cat >>confdefs.h <<\_ACEOF | ||
6127 | #define USE_PIPES 1 | ||
6128 | _ACEOF | ||
6129 | |||
6130 | cat >>confdefs.h <<\_ACEOF | ||
6131 | #define SETEUID_BREAKS_SETUID 1 | ||
6132 | _ACEOF | ||
6133 | |||
6134 | cat >>confdefs.h <<\_ACEOF | ||
6135 | #define BROKEN_SETREUID 1 | ||
6136 | _ACEOF | ||
6137 | |||
6138 | cat >>confdefs.h <<\_ACEOF | ||
6139 | #define BROKEN_SETREGID 1 | ||
6140 | _ACEOF | ||
6141 | |||
6142 | |||
6143 | cat >>confdefs.h <<\_ACEOF | ||
6144 | #define PASSWD_NEEDS_USERNAME 1 | ||
6145 | _ACEOF | ||
6146 | |||
6147 | ;; | ||
6148 | # UnixWare 7.x, OpenUNIX 8 | ||
6149 | *-*-sysv5*) | ||
6150 | check_for_libcrypt_later=1 | ||
6151 | |||
6152 | cat >>confdefs.h <<\_ACEOF | ||
6153 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
6154 | _ACEOF | ||
6155 | |||
6156 | cat >>confdefs.h <<\_ACEOF | ||
6157 | #define USE_PIPES 1 | ||
6158 | _ACEOF | ||
6159 | |||
6160 | cat >>confdefs.h <<\_ACEOF | ||
6161 | #define SETEUID_BREAKS_SETUID 1 | ||
6162 | _ACEOF | ||
6163 | |||
6164 | cat >>confdefs.h <<\_ACEOF | ||
6165 | #define BROKEN_SETREUID 1 | ||
6166 | _ACEOF | ||
6167 | |||
6168 | cat >>confdefs.h <<\_ACEOF | ||
6169 | #define BROKEN_SETREGID 1 | ||
6170 | _ACEOF | ||
6171 | |||
6172 | |||
6173 | cat >>confdefs.h <<\_ACEOF | ||
6174 | #define PASSWD_NEEDS_USERNAME 1 | ||
6175 | _ACEOF | ||
6176 | |||
6177 | case "$host" in | ||
6178 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
6179 | TEST_SHELL=/u95/bin/sh | ||
6180 | |||
6181 | cat >>confdefs.h <<\_ACEOF | ||
6182 | #define BROKEN_LIBIAF 1 | ||
6183 | _ACEOF | ||
6184 | |||
6185 | ;; | ||
6186 | esac | ||
6187 | ;; | ||
6188 | *-*-sysv*) | ||
6189 | ;; | ||
6190 | # SCO UNIX and OEM versions of SCO UNIX | ||
6191 | *-*-sco3.2v4*) | ||
6192 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
6193 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
6194 | { (exit 1); exit 1; }; } | ||
6195 | ;; | ||
6196 | # SCO OpenServer 5.x | ||
6197 | *-*-sco3.2v5*) | ||
6198 | if test -z "$GCC"; then | ||
6199 | CFLAGS="$CFLAGS -belf" | ||
6200 | fi | ||
6201 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
6202 | no_dev_ptmx=1 | ||
6203 | cat >>confdefs.h <<\_ACEOF | ||
6204 | #define USE_PIPES 1 | ||
6205 | _ACEOF | ||
6206 | |||
6207 | cat >>confdefs.h <<\_ACEOF | ||
6208 | #define HAVE_SECUREWARE 1 | ||
6209 | _ACEOF | ||
6210 | |||
6211 | cat >>confdefs.h <<\_ACEOF | ||
6212 | #define DISABLE_SHADOW 1 | ||
6213 | _ACEOF | ||
6214 | |||
6215 | cat >>confdefs.h <<\_ACEOF | ||
6216 | #define DISABLE_FD_PASSING 1 | ||
6217 | _ACEOF | ||
6218 | |||
6219 | cat >>confdefs.h <<\_ACEOF | ||
6220 | #define SETEUID_BREAKS_SETUID 1 | ||
6221 | _ACEOF | ||
6222 | |||
6223 | cat >>confdefs.h <<\_ACEOF | ||
6224 | #define BROKEN_SETREUID 1 | ||
6225 | _ACEOF | ||
6226 | |||
6227 | cat >>confdefs.h <<\_ACEOF | ||
6228 | #define BROKEN_SETREGID 1 | ||
6229 | _ACEOF | ||
6230 | |||
6231 | cat >>confdefs.h <<\_ACEOF | ||
6232 | #define WITH_ABBREV_NO_TTY 1 | ||
6233 | _ACEOF | ||
6234 | |||
6235 | cat >>confdefs.h <<\_ACEOF | ||
6236 | #define BROKEN_UPDWTMPX 1 | ||
6237 | _ACEOF | ||
6238 | |||
6239 | |||
6240 | cat >>confdefs.h <<\_ACEOF | ||
6241 | #define PASSWD_NEEDS_USERNAME 1 | ||
6242 | _ACEOF | ||
6243 | |||
6244 | |||
6245 | |||
6246 | for ac_func in getluid setluid | ||
6247 | do | ||
6248 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6249 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6250 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
6251 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
6252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6253 | else | ||
6254 | cat >conftest.$ac_ext <<_ACEOF | ||
6255 | /* confdefs.h. */ | ||
6256 | _ACEOF | ||
6257 | cat confdefs.h >>conftest.$ac_ext | ||
6258 | cat >>conftest.$ac_ext <<_ACEOF | ||
6259 | /* end confdefs.h. */ | ||
6260 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6261 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6262 | #define $ac_func innocuous_$ac_func | ||
6263 | |||
6264 | /* System header to define __stub macros and hopefully few prototypes, | ||
6265 | which can conflict with char $ac_func (); below. | ||
6266 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6267 | <limits.h> exists even on freestanding compilers. */ | ||
6268 | |||
6269 | #ifdef __STDC__ | ||
6270 | # include <limits.h> | ||
6271 | #else | ||
6272 | # include <assert.h> | ||
6273 | #endif | ||
6274 | |||
6275 | #undef $ac_func | ||
6276 | |||
6277 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6278 | #ifdef __cplusplus | ||
6279 | extern "C" | ||
6280 | { | ||
6281 | #endif | ||
6282 | /* We use char because int might match the return type of a gcc2 | ||
6283 | builtin and then its argument prototype would still apply. */ | ||
6284 | char $ac_func (); | ||
6285 | /* The GNU C library defines this for functions which it implements | ||
6286 | to always fail with ENOSYS. Some functions are actually named | ||
6287 | something starting with __ and the normal name is an alias. */ | ||
6288 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
6289 | choke me | ||
6290 | #else | ||
6291 | char (*f) () = $ac_func; | ||
6292 | #endif | ||
6293 | #ifdef __cplusplus | ||
6294 | } | ||
6295 | #endif | ||
6296 | |||
6297 | int | ||
6298 | main () | ||
6299 | { | ||
6300 | return f != $ac_func; | ||
6301 | ; | ||
6302 | return 0; | ||
6303 | } | ||
6304 | _ACEOF | ||
6305 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6307 | (eval $ac_link) 2>conftest.er1 | ||
6308 | ac_status=$? | ||
6309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6310 | rm -f conftest.er1 | ||
6311 | cat conftest.err >&5 | ||
6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6313 | (exit $ac_status); } && | ||
6314 | { ac_try='test -z "$ac_c_werror_flag" | ||
6315 | || test ! -s conftest.err' | ||
6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6317 | (eval $ac_try) 2>&5 | ||
6318 | ac_status=$? | ||
6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6320 | (exit $ac_status); }; } && | ||
6321 | { ac_try='test -s conftest$ac_exeext' | ||
6322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6323 | (eval $ac_try) 2>&5 | ||
6324 | ac_status=$? | ||
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6326 | (exit $ac_status); }; }; then | ||
6327 | eval "$as_ac_var=yes" | ||
6328 | else | ||
6329 | echo "$as_me: failed program was:" >&5 | ||
6330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6331 | |||
6332 | eval "$as_ac_var=no" | ||
6333 | fi | ||
6334 | rm -f conftest.err conftest.$ac_objext \ | ||
6335 | conftest$ac_exeext conftest.$ac_ext | ||
6336 | fi | ||
6337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
6338 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
6339 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
6340 | cat >>confdefs.h <<_ACEOF | ||
6341 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6342 | _ACEOF | ||
6343 | |||
6344 | fi | ||
6345 | done | ||
6346 | |||
6347 | MANTYPE=man | ||
6348 | TEST_SHELL=ksh | ||
6349 | ;; | ||
6350 | *-*-unicosmk*) | ||
6351 | cat >>confdefs.h <<\_ACEOF | ||
6352 | #define NO_SSH_LASTLOG 1 | ||
6353 | _ACEOF | ||
6354 | |||
6355 | cat >>confdefs.h <<\_ACEOF | ||
6356 | #define SETEUID_BREAKS_SETUID 1 | ||
6357 | _ACEOF | ||
6358 | |||
6359 | cat >>confdefs.h <<\_ACEOF | ||
6360 | #define BROKEN_SETREUID 1 | ||
6361 | _ACEOF | ||
6362 | |||
6363 | cat >>confdefs.h <<\_ACEOF | ||
6364 | #define BROKEN_SETREGID 1 | ||
6365 | _ACEOF | ||
6366 | |||
6367 | cat >>confdefs.h <<\_ACEOF | ||
6368 | #define USE_PIPES 1 | ||
6369 | _ACEOF | ||
6370 | |||
6371 | cat >>confdefs.h <<\_ACEOF | ||
6372 | #define DISABLE_FD_PASSING 1 | ||
6373 | _ACEOF | ||
6374 | |||
6375 | LDFLAGS="$LDFLAGS" | ||
6376 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6377 | MANTYPE=cat | ||
6378 | ;; | ||
6379 | *-*-unicosmp*) | ||
6380 | cat >>confdefs.h <<\_ACEOF | ||
6381 | #define SETEUID_BREAKS_SETUID 1 | ||
6382 | _ACEOF | ||
6383 | |||
6384 | cat >>confdefs.h <<\_ACEOF | ||
6385 | #define BROKEN_SETREUID 1 | ||
6386 | _ACEOF | ||
6387 | |||
6388 | cat >>confdefs.h <<\_ACEOF | ||
6389 | #define BROKEN_SETREGID 1 | ||
6390 | _ACEOF | ||
6391 | |||
6392 | cat >>confdefs.h <<\_ACEOF | ||
6393 | #define WITH_ABBREV_NO_TTY 1 | ||
6394 | _ACEOF | ||
6395 | |||
6396 | cat >>confdefs.h <<\_ACEOF | ||
6397 | #define USE_PIPES 1 | ||
6398 | _ACEOF | ||
6399 | |||
6400 | cat >>confdefs.h <<\_ACEOF | ||
6401 | #define DISABLE_FD_PASSING 1 | ||
6402 | _ACEOF | ||
6403 | |||
6404 | LDFLAGS="$LDFLAGS" | ||
6405 | LIBS="$LIBS -lgen -lacid -ldb" | ||
6406 | MANTYPE=cat | ||
6407 | ;; | ||
6408 | *-*-unicos*) | ||
6409 | cat >>confdefs.h <<\_ACEOF | ||
6410 | #define SETEUID_BREAKS_SETUID 1 | ||
6411 | _ACEOF | ||
6412 | |||
6413 | cat >>confdefs.h <<\_ACEOF | ||
6414 | #define BROKEN_SETREUID 1 | ||
6415 | _ACEOF | ||
6416 | |||
6417 | cat >>confdefs.h <<\_ACEOF | ||
6418 | #define BROKEN_SETREGID 1 | ||
6419 | _ACEOF | ||
6420 | |||
6421 | cat >>confdefs.h <<\_ACEOF | ||
6422 | #define USE_PIPES 1 | ||
6423 | _ACEOF | ||
6424 | |||
6425 | cat >>confdefs.h <<\_ACEOF | ||
6426 | #define DISABLE_FD_PASSING 1 | ||
6427 | _ACEOF | ||
6428 | |||
6429 | cat >>confdefs.h <<\_ACEOF | ||
6430 | #define NO_SSH_LASTLOG 1 | ||
6431 | _ACEOF | ||
6432 | |||
6433 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
6434 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6435 | MANTYPE=cat | ||
6436 | ;; | ||
6437 | *-dec-osf*) | ||
6438 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
6439 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
6440 | no_osfsia="" | ||
6441 | |||
6442 | # Check whether --with-osfsia or --without-osfsia was given. | ||
6443 | if test "${with_osfsia+set}" = set; then | ||
6444 | withval="$with_osfsia" | ||
6445 | |||
6446 | if test "x$withval" = "xno" ; then | ||
6447 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
6448 | echo "${ECHO_T}disabled" >&6 | ||
6449 | no_osfsia=1 | ||
6450 | fi | ||
6451 | |||
6452 | fi; | ||
6453 | if test -z "$no_osfsia" ; then | ||
6454 | if test -f /etc/sia/matrix.conf; then | ||
6455 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6456 | echo "${ECHO_T}yes" >&6 | ||
6457 | cat >>confdefs.h <<\_ACEOF | ||
6458 | #define HAVE_OSF_SIA 1 | ||
6459 | _ACEOF | ||
6460 | |||
6461 | cat >>confdefs.h <<\_ACEOF | ||
6462 | #define DISABLE_LOGIN 1 | ||
6463 | _ACEOF | ||
6464 | |||
6465 | cat >>confdefs.h <<\_ACEOF | ||
6466 | #define DISABLE_FD_PASSING 1 | ||
6467 | _ACEOF | ||
6468 | |||
6469 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
6470 | else | ||
6471 | echo "$as_me:$LINENO: result: no" >&5 | ||
6472 | echo "${ECHO_T}no" >&6 | ||
6473 | cat >>confdefs.h <<\_ACEOF | ||
6474 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
6475 | _ACEOF | ||
6476 | |||
6477 | fi | ||
6478 | fi | ||
6479 | cat >>confdefs.h <<\_ACEOF | ||
6480 | #define BROKEN_GETADDRINFO 1 | ||
6481 | _ACEOF | ||
6482 | |||
6483 | cat >>confdefs.h <<\_ACEOF | ||
6484 | #define SETEUID_BREAKS_SETUID 1 | ||
6485 | _ACEOF | ||
6486 | |||
6487 | cat >>confdefs.h <<\_ACEOF | ||
6488 | #define BROKEN_SETREUID 1 | ||
6489 | _ACEOF | ||
6490 | |||
6491 | cat >>confdefs.h <<\_ACEOF | ||
6492 | #define BROKEN_SETREGID 1 | ||
6493 | _ACEOF | ||
6494 | |||
6495 | ;; | ||
6496 | |||
6497 | *-*-nto-qnx) | ||
6498 | cat >>confdefs.h <<\_ACEOF | ||
6499 | #define USE_PIPES 1 | ||
6500 | _ACEOF | ||
6501 | |||
6502 | cat >>confdefs.h <<\_ACEOF | ||
6503 | #define NO_X11_UNIX_SOCKETS 1 | ||
6504 | _ACEOF | ||
6505 | |||
6506 | cat >>confdefs.h <<\_ACEOF | ||
6507 | #define MISSING_NFDBITS 1 | ||
6508 | _ACEOF | ||
6509 | |||
6510 | cat >>confdefs.h <<\_ACEOF | ||
6511 | #define MISSING_HOWMANY 1 | ||
6512 | _ACEOF | ||
6513 | |||
6514 | cat >>confdefs.h <<\_ACEOF | ||
6515 | #define MISSING_FD_MASK 1 | ||
6516 | _ACEOF | ||
6517 | |||
6518 | ;; | ||
6519 | |||
6520 | *-*-ultrix*) | ||
6521 | |||
6522 | cat >>confdefs.h <<\_ACEOF | ||
6523 | #define BROKEN_GETGROUPS | ||
6524 | _ACEOF | ||
6525 | |||
6526 | |||
6527 | cat >>confdefs.h <<\_ACEOF | ||
6528 | #define BROKEN_MMAP | ||
6529 | _ACEOF | ||
6530 | |||
6531 | |||
6532 | cat >>confdefs.h <<\_ACEOF | ||
6533 | #define NEED_SETPRGP | ||
6534 | _ACEOF | ||
6535 | |||
6536 | |||
6537 | cat >>confdefs.h <<\_ACEOF | ||
6538 | #define HAVE_SYS_SYSLOG_H 1 | ||
6539 | _ACEOF | ||
6540 | |||
6541 | ;; | ||
6542 | |||
6543 | *-*-lynxos) | ||
6544 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
6545 | cat >>confdefs.h <<\_ACEOF | ||
6546 | #define MISSING_HOWMANY 1 | ||
6547 | _ACEOF | ||
6548 | |||
6549 | |||
6550 | cat >>confdefs.h <<\_ACEOF | ||
6551 | #define BROKEN_SETVBUF 1 | ||
6552 | _ACEOF | ||
6553 | |||
6554 | ;; | ||
6555 | esac | ||
6556 | |||
6557 | # Allow user to specify flags | ||
6558 | |||
6559 | # Check whether --with-cflags or --without-cflags was given. | ||
6560 | if test "${with_cflags+set}" = set; then | ||
6561 | withval="$with_cflags" | ||
6562 | |||
6563 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6564 | test "x${withval}" != "xyes"; then | ||
6565 | CFLAGS="$CFLAGS $withval" | ||
6566 | fi | ||
6567 | |||
6568 | |||
6569 | fi; | ||
6570 | |||
6571 | # Check whether --with-cppflags or --without-cppflags was given. | ||
6572 | if test "${with_cppflags+set}" = set; then | ||
6573 | withval="$with_cppflags" | ||
6574 | |||
6575 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6576 | test "x${withval}" != "xyes"; then | ||
6577 | CPPFLAGS="$CPPFLAGS $withval" | ||
6578 | fi | ||
6579 | |||
6580 | |||
6581 | fi; | ||
6582 | |||
6583 | # Check whether --with-ldflags or --without-ldflags was given. | ||
6584 | if test "${with_ldflags+set}" = set; then | ||
6585 | withval="$with_ldflags" | ||
6586 | |||
6587 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6588 | test "x${withval}" != "xyes"; then | ||
6589 | LDFLAGS="$LDFLAGS $withval" | ||
6590 | fi | ||
6591 | |||
6592 | |||
6593 | fi; | ||
6594 | |||
6595 | # Check whether --with-libs or --without-libs was given. | ||
6596 | if test "${with_libs+set}" = set; then | ||
6597 | withval="$with_libs" | ||
6598 | |||
6599 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6600 | test "x${withval}" != "xyes"; then | ||
6601 | LIBS="$LIBS $withval" | ||
6602 | fi | ||
6603 | |||
6604 | |||
6605 | fi; | ||
6606 | |||
6607 | # Check whether --with-Werror or --without-Werror was given. | ||
6608 | if test "${with_Werror+set}" = set; then | ||
6609 | withval="$with_Werror" | ||
6610 | |||
6611 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6612 | werror_flags="-Werror" | ||
6613 | if "x${withval}" != "xyes"; then | ||
6614 | werror_flags="$withval" | ||
6615 | fi | ||
6616 | fi | ||
6617 | |||
6618 | |||
6619 | fi; | ||
6620 | |||
6621 | echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
6622 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
6623 | if test "$cross_compiling" = yes; then | ||
6624 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
6625 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
6626 | |||
6627 | else | ||
6628 | cat >conftest.$ac_ext <<_ACEOF | ||
6629 | /* confdefs.h. */ | ||
6630 | _ACEOF | ||
6631 | cat confdefs.h >>conftest.$ac_ext | ||
6632 | cat >>conftest.$ac_ext <<_ACEOF | ||
6633 | /* end confdefs.h. */ | ||
6634 | |||
6635 | #include <stdio.h> | ||
6636 | int main(){exit(0);} | ||
6637 | |||
6638 | _ACEOF | ||
6639 | rm -f conftest$ac_exeext | ||
6640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6641 | (eval $ac_link) 2>&5 | ||
6642 | ac_status=$? | ||
6643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6646 | (eval $ac_try) 2>&5 | ||
6647 | ac_status=$? | ||
6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6649 | (exit $ac_status); }; }; then | ||
6650 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6651 | echo "${ECHO_T}yes" >&6 | ||
6652 | else | ||
6653 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6654 | echo "$as_me: failed program was:" >&5 | ||
6655 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6656 | |||
6657 | ( exit $ac_status ) | ||
6658 | |||
6659 | echo "$as_me:$LINENO: result: no" >&5 | ||
6660 | echo "${ECHO_T}no" >&6 | ||
6661 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
6662 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
6663 | { (exit 1); exit 1; }; } | ||
6664 | |||
6665 | fi | ||
6666 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6667 | fi | ||
6668 | |||
6669 | |||
6670 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
6671 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
6672 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
6673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6674 | else | ||
6675 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
6676 | then ac_cv_prog_egrep='grep -E' | ||
6677 | else ac_cv_prog_egrep='egrep' | ||
6678 | fi | ||
6679 | fi | ||
6680 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
6681 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
6682 | EGREP=$ac_cv_prog_egrep | ||
6683 | |||
6684 | |||
6685 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
6686 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6687 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6689 | else | ||
6690 | cat >conftest.$ac_ext <<_ACEOF | ||
6691 | /* confdefs.h. */ | ||
6692 | _ACEOF | ||
6693 | cat confdefs.h >>conftest.$ac_ext | ||
6694 | cat >>conftest.$ac_ext <<_ACEOF | ||
6695 | /* end confdefs.h. */ | ||
6696 | #include <stdlib.h> | ||
6697 | #include <stdarg.h> | ||
6698 | #include <string.h> | ||
6699 | #include <float.h> | ||
6700 | |||
6701 | int | ||
6702 | main () | ||
6703 | { | ||
6704 | |||
6705 | ; | ||
6706 | return 0; | ||
6707 | } | ||
6708 | _ACEOF | ||
6709 | rm -f conftest.$ac_objext | ||
6710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6711 | (eval $ac_compile) 2>conftest.er1 | ||
6712 | ac_status=$? | ||
6713 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6714 | rm -f conftest.er1 | ||
6715 | cat conftest.err >&5 | ||
6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6717 | (exit $ac_status); } && | ||
6718 | { ac_try='test -z "$ac_c_werror_flag" | ||
6719 | || test ! -s conftest.err' | ||
6720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6721 | (eval $ac_try) 2>&5 | ||
6722 | ac_status=$? | ||
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6724 | (exit $ac_status); }; } && | ||
6725 | { ac_try='test -s conftest.$ac_objext' | ||
6726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6727 | (eval $ac_try) 2>&5 | ||
6728 | ac_status=$? | ||
6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6730 | (exit $ac_status); }; }; then | ||
6731 | ac_cv_header_stdc=yes | ||
6732 | else | ||
6733 | echo "$as_me: failed program was:" >&5 | ||
6734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6735 | |||
6736 | ac_cv_header_stdc=no | ||
6737 | fi | ||
6738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6739 | |||
6740 | if test $ac_cv_header_stdc = yes; then | ||
6741 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6742 | cat >conftest.$ac_ext <<_ACEOF | ||
6743 | /* confdefs.h. */ | ||
6744 | _ACEOF | ||
6745 | cat confdefs.h >>conftest.$ac_ext | ||
6746 | cat >>conftest.$ac_ext <<_ACEOF | ||
6747 | /* end confdefs.h. */ | ||
6748 | #include <string.h> | ||
6749 | |||
6750 | _ACEOF | ||
6751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6752 | $EGREP "memchr" >/dev/null 2>&1; then | ||
6753 | : | ||
6754 | else | ||
6755 | ac_cv_header_stdc=no | ||
6756 | fi | ||
6757 | rm -f conftest* | ||
6758 | |||
6759 | fi | ||
6760 | |||
6761 | if test $ac_cv_header_stdc = yes; then | ||
6762 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6763 | cat >conftest.$ac_ext <<_ACEOF | ||
6764 | /* confdefs.h. */ | ||
6765 | _ACEOF | ||
6766 | cat confdefs.h >>conftest.$ac_ext | ||
6767 | cat >>conftest.$ac_ext <<_ACEOF | ||
6768 | /* end confdefs.h. */ | ||
6769 | #include <stdlib.h> | ||
6770 | |||
6771 | _ACEOF | ||
6772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6773 | $EGREP "free" >/dev/null 2>&1; then | ||
6774 | : | ||
6775 | else | ||
6776 | ac_cv_header_stdc=no | ||
6777 | fi | ||
6778 | rm -f conftest* | ||
6779 | |||
6780 | fi | ||
6781 | |||
6782 | if test $ac_cv_header_stdc = yes; then | ||
6783 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6784 | if test "$cross_compiling" = yes; then | ||
6785 | : | ||
6786 | else | ||
6787 | cat >conftest.$ac_ext <<_ACEOF | ||
6788 | /* confdefs.h. */ | ||
6789 | _ACEOF | ||
6790 | cat confdefs.h >>conftest.$ac_ext | ||
6791 | cat >>conftest.$ac_ext <<_ACEOF | ||
6792 | /* end confdefs.h. */ | ||
6793 | #include <ctype.h> | ||
6794 | #if ((' ' & 0x0FF) == 0x020) | ||
6795 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6796 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6797 | #else | ||
6798 | # define ISLOWER(c) \ | ||
6799 | (('a' <= (c) && (c) <= 'i') \ | ||
6800 | || ('j' <= (c) && (c) <= 'r') \ | ||
6801 | || ('s' <= (c) && (c) <= 'z')) | ||
6802 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6803 | #endif | ||
6804 | |||
6805 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6806 | int | ||
6807 | main () | ||
6808 | { | ||
6809 | int i; | ||
6810 | for (i = 0; i < 256; i++) | ||
6811 | if (XOR (islower (i), ISLOWER (i)) | ||
6812 | || toupper (i) != TOUPPER (i)) | ||
6813 | exit(2); | ||
6814 | exit (0); | ||
6815 | } | ||
6816 | _ACEOF | ||
6817 | rm -f conftest$ac_exeext | ||
6818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6819 | (eval $ac_link) 2>&5 | ||
6820 | ac_status=$? | ||
6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6824 | (eval $ac_try) 2>&5 | ||
6825 | ac_status=$? | ||
6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6827 | (exit $ac_status); }; }; then | ||
6828 | : | ||
6829 | else | ||
6830 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6831 | echo "$as_me: failed program was:" >&5 | ||
6832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6833 | |||
6834 | ( exit $ac_status ) | ||
6835 | ac_cv_header_stdc=no | ||
6836 | fi | ||
6837 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6838 | fi | ||
6839 | fi | ||
6840 | fi | ||
6841 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
6842 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6843 | if test $ac_cv_header_stdc = yes; then | ||
6844 | |||
6845 | cat >>confdefs.h <<\_ACEOF | ||
6846 | #define STDC_HEADERS 1 | ||
6847 | _ACEOF | ||
6848 | |||
6849 | fi | ||
6850 | |||
6851 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6852 | |||
6853 | |||
6854 | |||
6855 | |||
6856 | |||
6857 | |||
6858 | |||
6859 | |||
6860 | |||
6861 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6862 | inttypes.h stdint.h unistd.h | ||
6863 | do | ||
6864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6865 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6869 | else | ||
6870 | cat >conftest.$ac_ext <<_ACEOF | ||
6871 | /* confdefs.h. */ | ||
6872 | _ACEOF | ||
6873 | cat confdefs.h >>conftest.$ac_ext | ||
6874 | cat >>conftest.$ac_ext <<_ACEOF | ||
6875 | /* end confdefs.h. */ | ||
6876 | $ac_includes_default | ||
6877 | |||
6878 | #include <$ac_header> | ||
6879 | _ACEOF | ||
6880 | rm -f conftest.$ac_objext | ||
6881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6882 | (eval $ac_compile) 2>conftest.er1 | ||
6883 | ac_status=$? | ||
6884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6885 | rm -f conftest.er1 | ||
6886 | cat conftest.err >&5 | ||
6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6888 | (exit $ac_status); } && | ||
6889 | { ac_try='test -z "$ac_c_werror_flag" | ||
6890 | || test ! -s conftest.err' | ||
6891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6892 | (eval $ac_try) 2>&5 | ||
6893 | ac_status=$? | ||
6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6895 | (exit $ac_status); }; } && | ||
6896 | { ac_try='test -s conftest.$ac_objext' | ||
6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6898 | (eval $ac_try) 2>&5 | ||
6899 | ac_status=$? | ||
6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6901 | (exit $ac_status); }; }; then | ||
6902 | eval "$as_ac_Header=yes" | ||
6903 | else | ||
6904 | echo "$as_me: failed program was:" >&5 | ||
6905 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6906 | |||
6907 | eval "$as_ac_Header=no" | ||
6908 | fi | ||
6909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6910 | fi | ||
6911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6914 | cat >>confdefs.h <<_ACEOF | ||
6915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6916 | _ACEOF | ||
6917 | |||
6918 | fi | ||
6919 | |||
6920 | done | ||
6921 | |||
6922 | |||
6923 | |||
6924 | |||
6925 | |||
6926 | |||
6927 | |||
6928 | |||
6929 | |||
6930 | |||
6931 | |||
6932 | |||
6933 | |||
6934 | |||
6935 | |||
6936 | |||
6937 | |||
6938 | |||
6939 | |||
6940 | |||
6941 | |||
6942 | |||
6943 | |||
6944 | |||
6945 | |||
6946 | |||
6947 | |||
6948 | |||
6949 | |||
6950 | |||
6951 | |||
6952 | |||
6953 | |||
6954 | |||
6955 | |||
6956 | |||
6957 | |||
6958 | |||
6959 | |||
6960 | |||
6961 | |||
6962 | |||
6963 | |||
6964 | |||
6965 | |||
6966 | |||
6967 | |||
6968 | |||
6969 | |||
6970 | |||
6971 | |||
6972 | |||
6973 | |||
6974 | |||
6975 | |||
6976 | |||
6977 | |||
6978 | |||
6979 | |||
6980 | |||
6981 | for ac_header in \ | ||
6982 | bstring.h \ | ||
6983 | crypt.h \ | ||
6984 | dirent.h \ | ||
6985 | endian.h \ | ||
6986 | features.h \ | ||
6987 | floatingpoint.h \ | ||
6988 | getopt.h \ | ||
6989 | glob.h \ | ||
6990 | ia.h \ | ||
6991 | iaf.h \ | ||
6992 | lastlog.h \ | ||
6993 | limits.h \ | ||
6994 | login.h \ | ||
6995 | login_cap.h \ | ||
6996 | maillock.h \ | ||
6997 | ndir.h \ | ||
6998 | netdb.h \ | ||
6999 | netgroup.h \ | ||
7000 | netinet/in_systm.h \ | ||
7001 | pam/pam_appl.h \ | ||
7002 | paths.h \ | ||
7003 | pty.h \ | ||
7004 | readpassphrase.h \ | ||
7005 | rpc/types.h \ | ||
7006 | security/pam_appl.h \ | ||
7007 | shadow.h \ | ||
7008 | stddef.h \ | ||
7009 | stdint.h \ | ||
7010 | string.h \ | ||
7011 | strings.h \ | ||
7012 | sys/audit.h \ | ||
7013 | sys/bitypes.h \ | ||
7014 | sys/bsdtty.h \ | ||
7015 | sys/cdefs.h \ | ||
7016 | sys/dir.h \ | ||
7017 | sys/mman.h \ | ||
7018 | sys/ndir.h \ | ||
7019 | sys/prctl.h \ | ||
7020 | sys/pstat.h \ | ||
7021 | sys/select.h \ | ||
7022 | sys/stat.h \ | ||
7023 | sys/stream.h \ | ||
7024 | sys/stropts.h \ | ||
7025 | sys/strtio.h \ | ||
7026 | sys/sysmacros.h \ | ||
7027 | sys/time.h \ | ||
7028 | sys/timers.h \ | ||
7029 | sys/un.h \ | ||
7030 | time.h \ | ||
7031 | tmpdir.h \ | ||
7032 | ttyent.h \ | ||
7033 | unistd.h \ | ||
7034 | usersec.h \ | ||
7035 | util.h \ | ||
7036 | utime.h \ | ||
7037 | utmp.h \ | ||
7038 | utmpx.h \ | ||
7039 | vis.h \ | ||
7040 | |||
7041 | do | ||
7042 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7043 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7044 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7048 | fi | ||
7049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7051 | else | ||
7052 | # Is the header compilable? | ||
7053 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7054 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7055 | cat >conftest.$ac_ext <<_ACEOF | ||
7056 | /* confdefs.h. */ | ||
7057 | _ACEOF | ||
7058 | cat confdefs.h >>conftest.$ac_ext | ||
7059 | cat >>conftest.$ac_ext <<_ACEOF | ||
7060 | /* end confdefs.h. */ | ||
7061 | $ac_includes_default | ||
7062 | #include <$ac_header> | ||
7063 | _ACEOF | ||
7064 | rm -f conftest.$ac_objext | ||
7065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7066 | (eval $ac_compile) 2>conftest.er1 | ||
7067 | ac_status=$? | ||
7068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7069 | rm -f conftest.er1 | ||
7070 | cat conftest.err >&5 | ||
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7072 | (exit $ac_status); } && | ||
7073 | { ac_try='test -z "$ac_c_werror_flag" | ||
7074 | || test ! -s conftest.err' | ||
7075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7076 | (eval $ac_try) 2>&5 | ||
7077 | ac_status=$? | ||
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7079 | (exit $ac_status); }; } && | ||
7080 | { ac_try='test -s conftest.$ac_objext' | ||
7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7082 | (eval $ac_try) 2>&5 | ||
7083 | ac_status=$? | ||
7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7085 | (exit $ac_status); }; }; then | ||
7086 | ac_header_compiler=yes | ||
7087 | else | ||
7088 | echo "$as_me: failed program was:" >&5 | ||
7089 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7090 | |||
7091 | ac_header_compiler=no | ||
7092 | fi | ||
7093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7094 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7095 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7096 | |||
7097 | # Is the header present? | ||
7098 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7099 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7100 | cat >conftest.$ac_ext <<_ACEOF | ||
7101 | /* confdefs.h. */ | ||
7102 | _ACEOF | ||
7103 | cat confdefs.h >>conftest.$ac_ext | ||
7104 | cat >>conftest.$ac_ext <<_ACEOF | ||
7105 | /* end confdefs.h. */ | ||
7106 | #include <$ac_header> | ||
7107 | _ACEOF | ||
7108 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7109 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7110 | ac_status=$? | ||
7111 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7112 | rm -f conftest.er1 | ||
7113 | cat conftest.err >&5 | ||
7114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7115 | (exit $ac_status); } >/dev/null; then | ||
7116 | if test -s conftest.err; then | ||
7117 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7118 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7119 | else | ||
7120 | ac_cpp_err= | ||
7121 | fi | ||
7122 | else | ||
7123 | ac_cpp_err=yes | ||
7124 | fi | ||
7125 | if test -z "$ac_cpp_err"; then | ||
7126 | ac_header_preproc=yes | ||
7127 | else | ||
7128 | echo "$as_me: failed program was:" >&5 | ||
7129 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7130 | |||
7131 | ac_header_preproc=no | ||
7132 | fi | ||
7133 | rm -f conftest.err conftest.$ac_ext | ||
7134 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7135 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7136 | |||
7137 | # So? What about this header? | ||
7138 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7139 | yes:no: ) | ||
7140 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7141 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7143 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7144 | ac_header_preproc=yes | ||
7145 | ;; | ||
7146 | no:yes:* ) | ||
7147 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7148 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7149 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7150 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7151 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7152 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7153 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7154 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7156 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7157 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7158 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7159 | ( | ||
7160 | cat <<\_ASBOX | ||
7161 | ## ------------------------------------------- ## | ||
7162 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7163 | ## ------------------------------------------- ## | ||
7164 | _ASBOX | ||
7165 | ) | | ||
7166 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7167 | ;; | ||
7168 | esac | ||
7169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7173 | else | ||
7174 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7175 | fi | ||
7176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7178 | |||
7179 | fi | ||
7180 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7181 | cat >>confdefs.h <<_ACEOF | ||
7182 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7183 | _ACEOF | ||
7184 | |||
7185 | fi | ||
7186 | |||
7187 | done | ||
7188 | |||
7189 | |||
7190 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7191 | |||
7192 | for ac_header in sys/ptms.h | ||
7193 | do | ||
7194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7199 | else | ||
7200 | cat >conftest.$ac_ext <<_ACEOF | ||
7201 | /* confdefs.h. */ | ||
7202 | _ACEOF | ||
7203 | cat confdefs.h >>conftest.$ac_ext | ||
7204 | cat >>conftest.$ac_ext <<_ACEOF | ||
7205 | /* end confdefs.h. */ | ||
7206 | |||
7207 | #ifdef HAVE_SYS_STREAM_H | ||
7208 | # include <sys/stream.h> | ||
7209 | #endif | ||
7210 | |||
7211 | |||
7212 | #include <$ac_header> | ||
7213 | _ACEOF | ||
7214 | rm -f conftest.$ac_objext | ||
7215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7216 | (eval $ac_compile) 2>conftest.er1 | ||
7217 | ac_status=$? | ||
7218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7219 | rm -f conftest.er1 | ||
7220 | cat conftest.err >&5 | ||
7221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7222 | (exit $ac_status); } && | ||
7223 | { ac_try='test -z "$ac_c_werror_flag" | ||
7224 | || test ! -s conftest.err' | ||
7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7226 | (eval $ac_try) 2>&5 | ||
7227 | ac_status=$? | ||
7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7229 | (exit $ac_status); }; } && | ||
7230 | { ac_try='test -s conftest.$ac_objext' | ||
7231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7232 | (eval $ac_try) 2>&5 | ||
7233 | ac_status=$? | ||
7234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7235 | (exit $ac_status); }; }; then | ||
7236 | eval "$as_ac_Header=yes" | ||
7237 | else | ||
7238 | echo "$as_me: failed program was:" >&5 | ||
7239 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7240 | |||
7241 | eval "$as_ac_Header=no" | ||
7242 | fi | ||
7243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7244 | fi | ||
7245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7247 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7248 | cat >>confdefs.h <<_ACEOF | ||
7249 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7250 | _ACEOF | ||
7251 | |||
7252 | fi | ||
7253 | |||
7254 | done | ||
7255 | |||
7256 | |||
7257 | # Checks for libraries. | ||
7258 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
7259 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
7260 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
7261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7262 | else | ||
7263 | cat >conftest.$ac_ext <<_ACEOF | ||
7264 | /* confdefs.h. */ | ||
7265 | _ACEOF | ||
7266 | cat confdefs.h >>conftest.$ac_ext | ||
7267 | cat >>conftest.$ac_ext <<_ACEOF | ||
7268 | /* end confdefs.h. */ | ||
7269 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
7270 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7271 | #define yp_match innocuous_yp_match | ||
7272 | |||
7273 | /* System header to define __stub macros and hopefully few prototypes, | ||
7274 | which can conflict with char yp_match (); below. | ||
7275 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7276 | <limits.h> exists even on freestanding compilers. */ | ||
7277 | |||
7278 | #ifdef __STDC__ | ||
7279 | # include <limits.h> | ||
7280 | #else | ||
7281 | # include <assert.h> | ||
7282 | #endif | ||
7283 | |||
7284 | #undef yp_match | ||
7285 | |||
7286 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7287 | #ifdef __cplusplus | ||
7288 | extern "C" | ||
7289 | { | ||
7290 | #endif | ||
7291 | /* We use char because int might match the return type of a gcc2 | ||
7292 | builtin and then its argument prototype would still apply. */ | ||
7293 | char yp_match (); | ||
7294 | /* The GNU C library defines this for functions which it implements | ||
7295 | to always fail with ENOSYS. Some functions are actually named | ||
7296 | something starting with __ and the normal name is an alias. */ | ||
7297 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
7298 | choke me | ||
7299 | #else | ||
7300 | char (*f) () = yp_match; | ||
7301 | #endif | ||
7302 | #ifdef __cplusplus | ||
7303 | } | ||
7304 | #endif | ||
7305 | |||
7306 | int | ||
7307 | main () | ||
7308 | { | ||
7309 | return f != yp_match; | ||
7310 | ; | ||
7311 | return 0; | ||
7312 | } | ||
7313 | _ACEOF | ||
7314 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7316 | (eval $ac_link) 2>conftest.er1 | ||
7317 | ac_status=$? | ||
7318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7319 | rm -f conftest.er1 | ||
7320 | cat conftest.err >&5 | ||
7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7322 | (exit $ac_status); } && | ||
7323 | { ac_try='test -z "$ac_c_werror_flag" | ||
7324 | || test ! -s conftest.err' | ||
7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7326 | (eval $ac_try) 2>&5 | ||
7327 | ac_status=$? | ||
7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7329 | (exit $ac_status); }; } && | ||
7330 | { ac_try='test -s conftest$ac_exeext' | ||
7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7332 | (eval $ac_try) 2>&5 | ||
7333 | ac_status=$? | ||
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7335 | (exit $ac_status); }; }; then | ||
7336 | ac_cv_func_yp_match=yes | ||
7337 | else | ||
7338 | echo "$as_me: failed program was:" >&5 | ||
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7340 | |||
7341 | ac_cv_func_yp_match=no | ||
7342 | fi | ||
7343 | rm -f conftest.err conftest.$ac_objext \ | ||
7344 | conftest$ac_exeext conftest.$ac_ext | ||
7345 | fi | ||
7346 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
7347 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
7348 | if test $ac_cv_func_yp_match = yes; then | ||
7349 | : | ||
7350 | else | ||
7351 | |||
7352 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
7353 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
7354 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
7355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7356 | else | ||
7357 | ac_check_lib_save_LIBS=$LIBS | ||
7358 | LIBS="-lnsl $LIBS" | ||
7359 | cat >conftest.$ac_ext <<_ACEOF | ||
7360 | /* confdefs.h. */ | ||
7361 | _ACEOF | ||
7362 | cat confdefs.h >>conftest.$ac_ext | ||
7363 | cat >>conftest.$ac_ext <<_ACEOF | ||
7364 | /* end confdefs.h. */ | ||
7365 | |||
7366 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7367 | #ifdef __cplusplus | ||
7368 | extern "C" | ||
7369 | #endif | ||
7370 | /* We use char because int might match the return type of a gcc2 | ||
7371 | builtin and then its argument prototype would still apply. */ | ||
7372 | char yp_match (); | ||
7373 | int | ||
7374 | main () | ||
7375 | { | ||
7376 | yp_match (); | ||
7377 | ; | ||
7378 | return 0; | ||
7379 | } | ||
7380 | _ACEOF | ||
7381 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7383 | (eval $ac_link) 2>conftest.er1 | ||
7384 | ac_status=$? | ||
7385 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7386 | rm -f conftest.er1 | ||
7387 | cat conftest.err >&5 | ||
7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7389 | (exit $ac_status); } && | ||
7390 | { ac_try='test -z "$ac_c_werror_flag" | ||
7391 | || test ! -s conftest.err' | ||
7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7393 | (eval $ac_try) 2>&5 | ||
7394 | ac_status=$? | ||
7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7396 | (exit $ac_status); }; } && | ||
7397 | { ac_try='test -s conftest$ac_exeext' | ||
7398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7399 | (eval $ac_try) 2>&5 | ||
7400 | ac_status=$? | ||
7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7402 | (exit $ac_status); }; }; then | ||
7403 | ac_cv_lib_nsl_yp_match=yes | ||
7404 | else | ||
7405 | echo "$as_me: failed program was:" >&5 | ||
7406 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7407 | |||
7408 | ac_cv_lib_nsl_yp_match=no | ||
7409 | fi | ||
7410 | rm -f conftest.err conftest.$ac_objext \ | ||
7411 | conftest$ac_exeext conftest.$ac_ext | ||
7412 | LIBS=$ac_check_lib_save_LIBS | ||
7413 | fi | ||
7414 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7415 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
7416 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
7417 | cat >>confdefs.h <<_ACEOF | ||
7418 | #define HAVE_LIBNSL 1 | ||
7419 | _ACEOF | ||
7420 | |||
7421 | LIBS="-lnsl $LIBS" | ||
7422 | |||
7423 | fi | ||
7424 | |||
7425 | fi | ||
7426 | |||
7427 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
7428 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
7429 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
7430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7431 | else | ||
7432 | cat >conftest.$ac_ext <<_ACEOF | ||
7433 | /* confdefs.h. */ | ||
7434 | _ACEOF | ||
7435 | cat confdefs.h >>conftest.$ac_ext | ||
7436 | cat >>conftest.$ac_ext <<_ACEOF | ||
7437 | /* end confdefs.h. */ | ||
7438 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
7439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7440 | #define setsockopt innocuous_setsockopt | ||
7441 | |||
7442 | /* System header to define __stub macros and hopefully few prototypes, | ||
7443 | which can conflict with char setsockopt (); below. | ||
7444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7445 | <limits.h> exists even on freestanding compilers. */ | ||
7446 | |||
7447 | #ifdef __STDC__ | ||
7448 | # include <limits.h> | ||
7449 | #else | ||
7450 | # include <assert.h> | ||
7451 | #endif | ||
7452 | |||
7453 | #undef setsockopt | ||
7454 | |||
7455 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7456 | #ifdef __cplusplus | ||
7457 | extern "C" | ||
7458 | { | ||
7459 | #endif | ||
7460 | /* We use char because int might match the return type of a gcc2 | ||
7461 | builtin and then its argument prototype would still apply. */ | ||
7462 | char setsockopt (); | ||
7463 | /* The GNU C library defines this for functions which it implements | ||
7464 | to always fail with ENOSYS. Some functions are actually named | ||
7465 | something starting with __ and the normal name is an alias. */ | ||
7466 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
7467 | choke me | ||
7468 | #else | ||
7469 | char (*f) () = setsockopt; | ||
7470 | #endif | ||
7471 | #ifdef __cplusplus | ||
7472 | } | ||
7473 | #endif | ||
7474 | |||
7475 | int | ||
7476 | main () | ||
7477 | { | ||
7478 | return f != setsockopt; | ||
7479 | ; | ||
7480 | return 0; | ||
7481 | } | ||
7482 | _ACEOF | ||
7483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7485 | (eval $ac_link) 2>conftest.er1 | ||
7486 | ac_status=$? | ||
7487 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7488 | rm -f conftest.er1 | ||
7489 | cat conftest.err >&5 | ||
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7491 | (exit $ac_status); } && | ||
7492 | { ac_try='test -z "$ac_c_werror_flag" | ||
7493 | || test ! -s conftest.err' | ||
7494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7495 | (eval $ac_try) 2>&5 | ||
7496 | ac_status=$? | ||
7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7498 | (exit $ac_status); }; } && | ||
7499 | { ac_try='test -s conftest$ac_exeext' | ||
7500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7501 | (eval $ac_try) 2>&5 | ||
7502 | ac_status=$? | ||
7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7504 | (exit $ac_status); }; }; then | ||
7505 | ac_cv_func_setsockopt=yes | ||
7506 | else | ||
7507 | echo "$as_me: failed program was:" >&5 | ||
7508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7509 | |||
7510 | ac_cv_func_setsockopt=no | ||
7511 | fi | ||
7512 | rm -f conftest.err conftest.$ac_objext \ | ||
7513 | conftest$ac_exeext conftest.$ac_ext | ||
7514 | fi | ||
7515 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
7516 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
7517 | if test $ac_cv_func_setsockopt = yes; then | ||
7518 | : | ||
7519 | else | ||
7520 | |||
7521 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
7522 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
7523 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
7524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7525 | else | ||
7526 | ac_check_lib_save_LIBS=$LIBS | ||
7527 | LIBS="-lsocket $LIBS" | ||
7528 | cat >conftest.$ac_ext <<_ACEOF | ||
7529 | /* confdefs.h. */ | ||
7530 | _ACEOF | ||
7531 | cat confdefs.h >>conftest.$ac_ext | ||
7532 | cat >>conftest.$ac_ext <<_ACEOF | ||
7533 | /* end confdefs.h. */ | ||
7534 | |||
7535 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7536 | #ifdef __cplusplus | ||
7537 | extern "C" | ||
7538 | #endif | ||
7539 | /* We use char because int might match the return type of a gcc2 | ||
7540 | builtin and then its argument prototype would still apply. */ | ||
7541 | char setsockopt (); | ||
7542 | int | ||
7543 | main () | ||
7544 | { | ||
7545 | setsockopt (); | ||
7546 | ; | ||
7547 | return 0; | ||
7548 | } | ||
7549 | _ACEOF | ||
7550 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7552 | (eval $ac_link) 2>conftest.er1 | ||
7553 | ac_status=$? | ||
7554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7555 | rm -f conftest.er1 | ||
7556 | cat conftest.err >&5 | ||
7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7558 | (exit $ac_status); } && | ||
7559 | { ac_try='test -z "$ac_c_werror_flag" | ||
7560 | || test ! -s conftest.err' | ||
7561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7562 | (eval $ac_try) 2>&5 | ||
7563 | ac_status=$? | ||
7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7565 | (exit $ac_status); }; } && | ||
7566 | { ac_try='test -s conftest$ac_exeext' | ||
7567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7568 | (eval $ac_try) 2>&5 | ||
7569 | ac_status=$? | ||
7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7571 | (exit $ac_status); }; }; then | ||
7572 | ac_cv_lib_socket_setsockopt=yes | ||
7573 | else | ||
7574 | echo "$as_me: failed program was:" >&5 | ||
7575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7576 | |||
7577 | ac_cv_lib_socket_setsockopt=no | ||
7578 | fi | ||
7579 | rm -f conftest.err conftest.$ac_objext \ | ||
7580 | conftest$ac_exeext conftest.$ac_ext | ||
7581 | LIBS=$ac_check_lib_save_LIBS | ||
7582 | fi | ||
7583 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7584 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
7585 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
7586 | cat >>confdefs.h <<_ACEOF | ||
7587 | #define HAVE_LIBSOCKET 1 | ||
7588 | _ACEOF | ||
7589 | |||
7590 | LIBS="-lsocket $LIBS" | ||
7591 | |||
7592 | fi | ||
7593 | |||
7594 | fi | ||
7595 | |||
7596 | |||
7597 | |||
7598 | for ac_func in dirname | ||
7599 | do | ||
7600 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7601 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7602 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7603 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7605 | else | ||
7606 | cat >conftest.$ac_ext <<_ACEOF | ||
7607 | /* confdefs.h. */ | ||
7608 | _ACEOF | ||
7609 | cat confdefs.h >>conftest.$ac_ext | ||
7610 | cat >>conftest.$ac_ext <<_ACEOF | ||
7611 | /* end confdefs.h. */ | ||
7612 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7614 | #define $ac_func innocuous_$ac_func | ||
7615 | |||
7616 | /* System header to define __stub macros and hopefully few prototypes, | ||
7617 | which can conflict with char $ac_func (); below. | ||
7618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7619 | <limits.h> exists even on freestanding compilers. */ | ||
7620 | |||
7621 | #ifdef __STDC__ | ||
7622 | # include <limits.h> | ||
7623 | #else | ||
7624 | # include <assert.h> | ||
7625 | #endif | ||
7626 | |||
7627 | #undef $ac_func | ||
7628 | |||
7629 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7630 | #ifdef __cplusplus | ||
7631 | extern "C" | ||
7632 | { | ||
7633 | #endif | ||
7634 | /* We use char because int might match the return type of a gcc2 | ||
7635 | builtin and then its argument prototype would still apply. */ | ||
7636 | char $ac_func (); | ||
7637 | /* The GNU C library defines this for functions which it implements | ||
7638 | to always fail with ENOSYS. Some functions are actually named | ||
7639 | something starting with __ and the normal name is an alias. */ | ||
7640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7641 | choke me | ||
7642 | #else | ||
7643 | char (*f) () = $ac_func; | ||
7644 | #endif | ||
7645 | #ifdef __cplusplus | ||
7646 | } | ||
7647 | #endif | ||
7648 | |||
7649 | int | ||
7650 | main () | ||
7651 | { | ||
7652 | return f != $ac_func; | ||
7653 | ; | ||
7654 | return 0; | ||
7655 | } | ||
7656 | _ACEOF | ||
7657 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7659 | (eval $ac_link) 2>conftest.er1 | ||
7660 | ac_status=$? | ||
7661 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7662 | rm -f conftest.er1 | ||
7663 | cat conftest.err >&5 | ||
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7665 | (exit $ac_status); } && | ||
7666 | { ac_try='test -z "$ac_c_werror_flag" | ||
7667 | || test ! -s conftest.err' | ||
7668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7669 | (eval $ac_try) 2>&5 | ||
7670 | ac_status=$? | ||
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7672 | (exit $ac_status); }; } && | ||
7673 | { ac_try='test -s conftest$ac_exeext' | ||
7674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7675 | (eval $ac_try) 2>&5 | ||
7676 | ac_status=$? | ||
7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7678 | (exit $ac_status); }; }; then | ||
7679 | eval "$as_ac_var=yes" | ||
7680 | else | ||
7681 | echo "$as_me: failed program was:" >&5 | ||
7682 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7683 | |||
7684 | eval "$as_ac_var=no" | ||
7685 | fi | ||
7686 | rm -f conftest.err conftest.$ac_objext \ | ||
7687 | conftest$ac_exeext conftest.$ac_ext | ||
7688 | fi | ||
7689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7690 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7691 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7692 | cat >>confdefs.h <<_ACEOF | ||
7693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7694 | _ACEOF | ||
7695 | |||
7696 | for ac_header in libgen.h | ||
7697 | do | ||
7698 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7704 | fi | ||
7705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7707 | else | ||
7708 | # Is the header compilable? | ||
7709 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7710 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7711 | cat >conftest.$ac_ext <<_ACEOF | ||
7712 | /* confdefs.h. */ | ||
7713 | _ACEOF | ||
7714 | cat confdefs.h >>conftest.$ac_ext | ||
7715 | cat >>conftest.$ac_ext <<_ACEOF | ||
7716 | /* end confdefs.h. */ | ||
7717 | $ac_includes_default | ||
7718 | #include <$ac_header> | ||
7719 | _ACEOF | ||
7720 | rm -f conftest.$ac_objext | ||
7721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7722 | (eval $ac_compile) 2>conftest.er1 | ||
7723 | ac_status=$? | ||
7724 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7725 | rm -f conftest.er1 | ||
7726 | cat conftest.err >&5 | ||
7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7728 | (exit $ac_status); } && | ||
7729 | { ac_try='test -z "$ac_c_werror_flag" | ||
7730 | || test ! -s conftest.err' | ||
7731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7732 | (eval $ac_try) 2>&5 | ||
7733 | ac_status=$? | ||
7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7735 | (exit $ac_status); }; } && | ||
7736 | { ac_try='test -s conftest.$ac_objext' | ||
7737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7738 | (eval $ac_try) 2>&5 | ||
7739 | ac_status=$? | ||
7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7741 | (exit $ac_status); }; }; then | ||
7742 | ac_header_compiler=yes | ||
7743 | else | ||
7744 | echo "$as_me: failed program was:" >&5 | ||
7745 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7746 | |||
7747 | ac_header_compiler=no | ||
7748 | fi | ||
7749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7750 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7751 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7752 | |||
7753 | # Is the header present? | ||
7754 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7755 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7756 | cat >conftest.$ac_ext <<_ACEOF | ||
7757 | /* confdefs.h. */ | ||
7758 | _ACEOF | ||
7759 | cat confdefs.h >>conftest.$ac_ext | ||
7760 | cat >>conftest.$ac_ext <<_ACEOF | ||
7761 | /* end confdefs.h. */ | ||
7762 | #include <$ac_header> | ||
7763 | _ACEOF | ||
7764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7766 | ac_status=$? | ||
7767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7768 | rm -f conftest.er1 | ||
7769 | cat conftest.err >&5 | ||
7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7771 | (exit $ac_status); } >/dev/null; then | ||
7772 | if test -s conftest.err; then | ||
7773 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7774 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7775 | else | ||
7776 | ac_cpp_err= | ||
7777 | fi | ||
7778 | else | ||
7779 | ac_cpp_err=yes | ||
7780 | fi | ||
7781 | if test -z "$ac_cpp_err"; then | ||
7782 | ac_header_preproc=yes | ||
7783 | else | ||
7784 | echo "$as_me: failed program was:" >&5 | ||
7785 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7786 | |||
7787 | ac_header_preproc=no | ||
7788 | fi | ||
7789 | rm -f conftest.err conftest.$ac_ext | ||
7790 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7791 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7792 | |||
7793 | # So? What about this header? | ||
7794 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7795 | yes:no: ) | ||
7796 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7797 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7799 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7800 | ac_header_preproc=yes | ||
7801 | ;; | ||
7802 | no:yes:* ) | ||
7803 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7804 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7805 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7806 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7807 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7808 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7809 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7810 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7811 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7812 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7813 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7814 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7815 | ( | ||
7816 | cat <<\_ASBOX | ||
7817 | ## ------------------------------------------- ## | ||
7818 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7819 | ## ------------------------------------------- ## | ||
7820 | _ASBOX | ||
7821 | ) | | ||
7822 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7823 | ;; | ||
7824 | esac | ||
7825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7829 | else | ||
7830 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7831 | fi | ||
7832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7834 | |||
7835 | fi | ||
7836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7837 | cat >>confdefs.h <<_ACEOF | ||
7838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7839 | _ACEOF | ||
7840 | |||
7841 | fi | ||
7842 | |||
7843 | done | ||
7844 | |||
7845 | else | ||
7846 | |||
7847 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7848 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7849 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7851 | else | ||
7852 | ac_check_lib_save_LIBS=$LIBS | ||
7853 | LIBS="-lgen $LIBS" | ||
7854 | cat >conftest.$ac_ext <<_ACEOF | ||
7855 | /* confdefs.h. */ | ||
7856 | _ACEOF | ||
7857 | cat confdefs.h >>conftest.$ac_ext | ||
7858 | cat >>conftest.$ac_ext <<_ACEOF | ||
7859 | /* end confdefs.h. */ | ||
7860 | |||
7861 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7862 | #ifdef __cplusplus | ||
7863 | extern "C" | ||
7864 | #endif | ||
7865 | /* We use char because int might match the return type of a gcc2 | ||
7866 | builtin and then its argument prototype would still apply. */ | ||
7867 | char dirname (); | ||
7868 | int | ||
7869 | main () | ||
7870 | { | ||
7871 | dirname (); | ||
7872 | ; | ||
7873 | return 0; | ||
7874 | } | ||
7875 | _ACEOF | ||
7876 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7878 | (eval $ac_link) 2>conftest.er1 | ||
7879 | ac_status=$? | ||
7880 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7881 | rm -f conftest.er1 | ||
7882 | cat conftest.err >&5 | ||
7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7884 | (exit $ac_status); } && | ||
7885 | { ac_try='test -z "$ac_c_werror_flag" | ||
7886 | || test ! -s conftest.err' | ||
7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7888 | (eval $ac_try) 2>&5 | ||
7889 | ac_status=$? | ||
7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7891 | (exit $ac_status); }; } && | ||
7892 | { ac_try='test -s conftest$ac_exeext' | ||
7893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7894 | (eval $ac_try) 2>&5 | ||
7895 | ac_status=$? | ||
7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7897 | (exit $ac_status); }; }; then | ||
7898 | ac_cv_lib_gen_dirname=yes | ||
7899 | else | ||
7900 | echo "$as_me: failed program was:" >&5 | ||
7901 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7902 | |||
7903 | ac_cv_lib_gen_dirname=no | ||
7904 | fi | ||
7905 | rm -f conftest.err conftest.$ac_objext \ | ||
7906 | conftest$ac_exeext conftest.$ac_ext | ||
7907 | LIBS=$ac_check_lib_save_LIBS | ||
7908 | fi | ||
7909 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7910 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7911 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7912 | |||
7913 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7914 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7915 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7917 | else | ||
7918 | |||
7919 | save_LIBS="$LIBS" | ||
7920 | LIBS="$LIBS -lgen" | ||
7921 | if test "$cross_compiling" = yes; then | ||
7922 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7923 | See \`config.log' for more details." >&5 | ||
7924 | echo "$as_me: error: cannot run test program while cross compiling | ||
7925 | See \`config.log' for more details." >&2;} | ||
7926 | { (exit 1); exit 1; }; } | ||
7927 | else | ||
7928 | cat >conftest.$ac_ext <<_ACEOF | ||
7929 | /* confdefs.h. */ | ||
7930 | _ACEOF | ||
7931 | cat confdefs.h >>conftest.$ac_ext | ||
7932 | cat >>conftest.$ac_ext <<_ACEOF | ||
7933 | /* end confdefs.h. */ | ||
7934 | |||
7935 | #include <libgen.h> | ||
7936 | #include <string.h> | ||
7937 | |||
7938 | int main(int argc, char **argv) { | ||
7939 | char *s, buf[32]; | ||
7940 | |||
7941 | strncpy(buf,"/etc", 32); | ||
7942 | s = dirname(buf); | ||
7943 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7944 | exit(1); | ||
7945 | } else { | ||
7946 | exit(0); | ||
7947 | } | ||
7948 | } | ||
7949 | |||
7950 | _ACEOF | ||
7951 | rm -f conftest$ac_exeext | ||
7952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7953 | (eval $ac_link) 2>&5 | ||
7954 | ac_status=$? | ||
7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7958 | (eval $ac_try) 2>&5 | ||
7959 | ac_status=$? | ||
7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7961 | (exit $ac_status); }; }; then | ||
7962 | ac_cv_have_broken_dirname="no" | ||
7963 | else | ||
7964 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7965 | echo "$as_me: failed program was:" >&5 | ||
7966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7967 | |||
7968 | ( exit $ac_status ) | ||
7969 | ac_cv_have_broken_dirname="yes" | ||
7970 | |||
7971 | fi | ||
7972 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7973 | fi | ||
7974 | LIBS="$save_LIBS" | ||
7975 | |||
7976 | fi | ||
7977 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7978 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7979 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7980 | LIBS="$LIBS -lgen" | ||
7981 | cat >>confdefs.h <<\_ACEOF | ||
7982 | #define HAVE_DIRNAME 1 | ||
7983 | _ACEOF | ||
7984 | |||
7985 | |||
7986 | for ac_header in libgen.h | ||
7987 | do | ||
7988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7994 | fi | ||
7995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7997 | else | ||
7998 | # Is the header compilable? | ||
7999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
8001 | cat >conftest.$ac_ext <<_ACEOF | ||
8002 | /* confdefs.h. */ | ||
8003 | _ACEOF | ||
8004 | cat confdefs.h >>conftest.$ac_ext | ||
8005 | cat >>conftest.$ac_ext <<_ACEOF | ||
8006 | /* end confdefs.h. */ | ||
8007 | $ac_includes_default | ||
8008 | #include <$ac_header> | ||
8009 | _ACEOF | ||
8010 | rm -f conftest.$ac_objext | ||
8011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8012 | (eval $ac_compile) 2>conftest.er1 | ||
8013 | ac_status=$? | ||
8014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8015 | rm -f conftest.er1 | ||
8016 | cat conftest.err >&5 | ||
8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8018 | (exit $ac_status); } && | ||
8019 | { ac_try='test -z "$ac_c_werror_flag" | ||
8020 | || test ! -s conftest.err' | ||
8021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8022 | (eval $ac_try) 2>&5 | ||
8023 | ac_status=$? | ||
8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8025 | (exit $ac_status); }; } && | ||
8026 | { ac_try='test -s conftest.$ac_objext' | ||
8027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8028 | (eval $ac_try) 2>&5 | ||
8029 | ac_status=$? | ||
8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8031 | (exit $ac_status); }; }; then | ||
8032 | ac_header_compiler=yes | ||
8033 | else | ||
8034 | echo "$as_me: failed program was:" >&5 | ||
8035 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8036 | |||
8037 | ac_header_compiler=no | ||
8038 | fi | ||
8039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8041 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8042 | |||
8043 | # Is the header present? | ||
8044 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8045 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
8046 | cat >conftest.$ac_ext <<_ACEOF | ||
8047 | /* confdefs.h. */ | ||
8048 | _ACEOF | ||
8049 | cat confdefs.h >>conftest.$ac_ext | ||
8050 | cat >>conftest.$ac_ext <<_ACEOF | ||
8051 | /* end confdefs.h. */ | ||
8052 | #include <$ac_header> | ||
8053 | _ACEOF | ||
8054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8056 | ac_status=$? | ||
8057 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8058 | rm -f conftest.er1 | ||
8059 | cat conftest.err >&5 | ||
8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8061 | (exit $ac_status); } >/dev/null; then | ||
8062 | if test -s conftest.err; then | ||
8063 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8065 | else | ||
8066 | ac_cpp_err= | ||
8067 | fi | ||
8068 | else | ||
8069 | ac_cpp_err=yes | ||
8070 | fi | ||
8071 | if test -z "$ac_cpp_err"; then | ||
8072 | ac_header_preproc=yes | ||
8073 | else | ||
8074 | echo "$as_me: failed program was:" >&5 | ||
8075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8076 | |||
8077 | ac_header_preproc=no | ||
8078 | fi | ||
8079 | rm -f conftest.err conftest.$ac_ext | ||
8080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8081 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8082 | |||
8083 | # So? What about this header? | ||
8084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8085 | yes:no: ) | ||
8086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8090 | ac_header_preproc=yes | ||
8091 | ;; | ||
8092 | no:yes:* ) | ||
8093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8105 | ( | ||
8106 | cat <<\_ASBOX | ||
8107 | ## ------------------------------------------- ## | ||
8108 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8109 | ## ------------------------------------------- ## | ||
8110 | _ASBOX | ||
8111 | ) | | ||
8112 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8113 | ;; | ||
8114 | esac | ||
8115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8119 | else | ||
8120 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8121 | fi | ||
8122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8124 | |||
8125 | fi | ||
8126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8127 | cat >>confdefs.h <<_ACEOF | ||
8128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8129 | _ACEOF | ||
8130 | |||
8131 | fi | ||
8132 | |||
8133 | done | ||
8134 | |||
8135 | fi | ||
8136 | |||
8137 | fi | ||
8138 | |||
8139 | |||
8140 | fi | ||
8141 | done | ||
8142 | |||
8143 | |||
8144 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
8145 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
8146 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
8147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8148 | else | ||
8149 | cat >conftest.$ac_ext <<_ACEOF | ||
8150 | /* confdefs.h. */ | ||
8151 | _ACEOF | ||
8152 | cat confdefs.h >>conftest.$ac_ext | ||
8153 | cat >>conftest.$ac_ext <<_ACEOF | ||
8154 | /* end confdefs.h. */ | ||
8155 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
8156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8157 | #define getspnam innocuous_getspnam | ||
8158 | |||
8159 | /* System header to define __stub macros and hopefully few prototypes, | ||
8160 | which can conflict with char getspnam (); below. | ||
8161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8162 | <limits.h> exists even on freestanding compilers. */ | ||
8163 | |||
8164 | #ifdef __STDC__ | ||
8165 | # include <limits.h> | ||
8166 | #else | ||
8167 | # include <assert.h> | ||
8168 | #endif | ||
8169 | |||
8170 | #undef getspnam | ||
8171 | |||
8172 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8173 | #ifdef __cplusplus | ||
8174 | extern "C" | ||
8175 | { | ||
8176 | #endif | ||
8177 | /* We use char because int might match the return type of a gcc2 | ||
8178 | builtin and then its argument prototype would still apply. */ | ||
8179 | char getspnam (); | ||
8180 | /* The GNU C library defines this for functions which it implements | ||
8181 | to always fail with ENOSYS. Some functions are actually named | ||
8182 | something starting with __ and the normal name is an alias. */ | ||
8183 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
8184 | choke me | ||
8185 | #else | ||
8186 | char (*f) () = getspnam; | ||
8187 | #endif | ||
8188 | #ifdef __cplusplus | ||
8189 | } | ||
8190 | #endif | ||
8191 | |||
8192 | int | ||
8193 | main () | ||
8194 | { | ||
8195 | return f != getspnam; | ||
8196 | ; | ||
8197 | return 0; | ||
8198 | } | ||
8199 | _ACEOF | ||
8200 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8202 | (eval $ac_link) 2>conftest.er1 | ||
8203 | ac_status=$? | ||
8204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8205 | rm -f conftest.er1 | ||
8206 | cat conftest.err >&5 | ||
8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8208 | (exit $ac_status); } && | ||
8209 | { ac_try='test -z "$ac_c_werror_flag" | ||
8210 | || test ! -s conftest.err' | ||
8211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8212 | (eval $ac_try) 2>&5 | ||
8213 | ac_status=$? | ||
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8215 | (exit $ac_status); }; } && | ||
8216 | { ac_try='test -s conftest$ac_exeext' | ||
8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8218 | (eval $ac_try) 2>&5 | ||
8219 | ac_status=$? | ||
8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8221 | (exit $ac_status); }; }; then | ||
8222 | ac_cv_func_getspnam=yes | ||
8223 | else | ||
8224 | echo "$as_me: failed program was:" >&5 | ||
8225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8226 | |||
8227 | ac_cv_func_getspnam=no | ||
8228 | fi | ||
8229 | rm -f conftest.err conftest.$ac_objext \ | ||
8230 | conftest$ac_exeext conftest.$ac_ext | ||
8231 | fi | ||
8232 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
8233 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
8234 | if test $ac_cv_func_getspnam = yes; then | ||
8235 | : | ||
8236 | else | ||
8237 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
8238 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
8239 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
8240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8241 | else | ||
8242 | ac_check_lib_save_LIBS=$LIBS | ||
8243 | LIBS="-lgen $LIBS" | ||
8244 | cat >conftest.$ac_ext <<_ACEOF | ||
8245 | /* confdefs.h. */ | ||
8246 | _ACEOF | ||
8247 | cat confdefs.h >>conftest.$ac_ext | ||
8248 | cat >>conftest.$ac_ext <<_ACEOF | ||
8249 | /* end confdefs.h. */ | ||
8250 | |||
8251 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8252 | #ifdef __cplusplus | ||
8253 | extern "C" | ||
8254 | #endif | ||
8255 | /* We use char because int might match the return type of a gcc2 | ||
8256 | builtin and then its argument prototype would still apply. */ | ||
8257 | char getspnam (); | ||
8258 | int | ||
8259 | main () | ||
8260 | { | ||
8261 | getspnam (); | ||
8262 | ; | ||
8263 | return 0; | ||
8264 | } | ||
8265 | _ACEOF | ||
8266 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8268 | (eval $ac_link) 2>conftest.er1 | ||
8269 | ac_status=$? | ||
8270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8271 | rm -f conftest.er1 | ||
8272 | cat conftest.err >&5 | ||
8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8274 | (exit $ac_status); } && | ||
8275 | { ac_try='test -z "$ac_c_werror_flag" | ||
8276 | || test ! -s conftest.err' | ||
8277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8278 | (eval $ac_try) 2>&5 | ||
8279 | ac_status=$? | ||
8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8281 | (exit $ac_status); }; } && | ||
8282 | { ac_try='test -s conftest$ac_exeext' | ||
8283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8284 | (eval $ac_try) 2>&5 | ||
8285 | ac_status=$? | ||
8286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8287 | (exit $ac_status); }; }; then | ||
8288 | ac_cv_lib_gen_getspnam=yes | ||
8289 | else | ||
8290 | echo "$as_me: failed program was:" >&5 | ||
8291 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8292 | |||
8293 | ac_cv_lib_gen_getspnam=no | ||
8294 | fi | ||
8295 | rm -f conftest.err conftest.$ac_objext \ | ||
8296 | conftest$ac_exeext conftest.$ac_ext | ||
8297 | LIBS=$ac_check_lib_save_LIBS | ||
8298 | fi | ||
8299 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8300 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
8301 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
8302 | LIBS="$LIBS -lgen" | ||
8303 | fi | ||
8304 | |||
8305 | fi | ||
8306 | |||
8307 | echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
8308 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
8309 | if test "${ac_cv_search_basename+set}" = set; then | ||
8310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8311 | else | ||
8312 | ac_func_search_save_LIBS=$LIBS | ||
8313 | ac_cv_search_basename=no | ||
8314 | cat >conftest.$ac_ext <<_ACEOF | ||
8315 | /* confdefs.h. */ | ||
8316 | _ACEOF | ||
8317 | cat confdefs.h >>conftest.$ac_ext | ||
8318 | cat >>conftest.$ac_ext <<_ACEOF | ||
8319 | /* end confdefs.h. */ | ||
8320 | |||
8321 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8322 | #ifdef __cplusplus | ||
8323 | extern "C" | ||
8324 | #endif | ||
8325 | /* We use char because int might match the return type of a gcc2 | ||
8326 | builtin and then its argument prototype would still apply. */ | ||
8327 | char basename (); | ||
8328 | int | ||
8329 | main () | ||
8330 | { | ||
8331 | basename (); | ||
8332 | ; | ||
8333 | return 0; | ||
8334 | } | ||
8335 | _ACEOF | ||
8336 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8338 | (eval $ac_link) 2>conftest.er1 | ||
8339 | ac_status=$? | ||
8340 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8341 | rm -f conftest.er1 | ||
8342 | cat conftest.err >&5 | ||
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8344 | (exit $ac_status); } && | ||
8345 | { ac_try='test -z "$ac_c_werror_flag" | ||
8346 | || test ! -s conftest.err' | ||
8347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8348 | (eval $ac_try) 2>&5 | ||
8349 | ac_status=$? | ||
8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8351 | (exit $ac_status); }; } && | ||
8352 | { ac_try='test -s conftest$ac_exeext' | ||
8353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8354 | (eval $ac_try) 2>&5 | ||
8355 | ac_status=$? | ||
8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8357 | (exit $ac_status); }; }; then | ||
8358 | ac_cv_search_basename="none required" | ||
8359 | else | ||
8360 | echo "$as_me: failed program was:" >&5 | ||
8361 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8362 | |||
8363 | fi | ||
8364 | rm -f conftest.err conftest.$ac_objext \ | ||
8365 | conftest$ac_exeext conftest.$ac_ext | ||
8366 | if test "$ac_cv_search_basename" = no; then | ||
8367 | for ac_lib in gen; do | ||
8368 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8369 | cat >conftest.$ac_ext <<_ACEOF | ||
8370 | /* confdefs.h. */ | ||
8371 | _ACEOF | ||
8372 | cat confdefs.h >>conftest.$ac_ext | ||
8373 | cat >>conftest.$ac_ext <<_ACEOF | ||
8374 | /* end confdefs.h. */ | ||
8375 | |||
8376 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8377 | #ifdef __cplusplus | ||
8378 | extern "C" | ||
8379 | #endif | ||
8380 | /* We use char because int might match the return type of a gcc2 | ||
8381 | builtin and then its argument prototype would still apply. */ | ||
8382 | char basename (); | ||
8383 | int | ||
8384 | main () | ||
8385 | { | ||
8386 | basename (); | ||
8387 | ; | ||
8388 | return 0; | ||
8389 | } | ||
8390 | _ACEOF | ||
8391 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8393 | (eval $ac_link) 2>conftest.er1 | ||
8394 | ac_status=$? | ||
8395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8396 | rm -f conftest.er1 | ||
8397 | cat conftest.err >&5 | ||
8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8399 | (exit $ac_status); } && | ||
8400 | { ac_try='test -z "$ac_c_werror_flag" | ||
8401 | || test ! -s conftest.err' | ||
8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8403 | (eval $ac_try) 2>&5 | ||
8404 | ac_status=$? | ||
8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8406 | (exit $ac_status); }; } && | ||
8407 | { ac_try='test -s conftest$ac_exeext' | ||
8408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8409 | (eval $ac_try) 2>&5 | ||
8410 | ac_status=$? | ||
8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8412 | (exit $ac_status); }; }; then | ||
8413 | ac_cv_search_basename="-l$ac_lib" | ||
8414 | break | ||
8415 | else | ||
8416 | echo "$as_me: failed program was:" >&5 | ||
8417 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8418 | |||
8419 | fi | ||
8420 | rm -f conftest.err conftest.$ac_objext \ | ||
8421 | conftest$ac_exeext conftest.$ac_ext | ||
8422 | done | ||
8423 | fi | ||
8424 | LIBS=$ac_func_search_save_LIBS | ||
8425 | fi | ||
8426 | echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
8427 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
8428 | if test "$ac_cv_search_basename" != no; then | ||
8429 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
8430 | cat >>confdefs.h <<\_ACEOF | ||
8431 | #define HAVE_BASENAME 1 | ||
8432 | _ACEOF | ||
8433 | |||
8434 | fi | ||
8435 | |||
8436 | |||
8437 | |||
8438 | # Check whether --with-zlib or --without-zlib was given. | ||
8439 | if test "${with_zlib+set}" = set; then | ||
8440 | withval="$with_zlib" | ||
8441 | if test "x$withval" = "xno" ; then | ||
8442 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
8443 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
8444 | { (exit 1); exit 1; }; } | ||
8445 | elif test "x$withval" != "xyes"; then | ||
8446 | if test -d "$withval/lib"; then | ||
8447 | if test -n "${need_dash_r}"; then | ||
8448 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8449 | else | ||
8450 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8451 | fi | ||
8452 | else | ||
8453 | if test -n "${need_dash_r}"; then | ||
8454 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8455 | else | ||
8456 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8457 | fi | ||
8458 | fi | ||
8459 | if test -d "$withval/include"; then | ||
8460 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8461 | else | ||
8462 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8463 | fi | ||
8464 | fi | ||
8465 | |||
8466 | fi; | ||
8467 | |||
8468 | |||
8469 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
8470 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
8471 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8473 | else | ||
8474 | ac_check_lib_save_LIBS=$LIBS | ||
8475 | LIBS="-lz $LIBS" | ||
8476 | cat >conftest.$ac_ext <<_ACEOF | ||
8477 | /* confdefs.h. */ | ||
8478 | _ACEOF | ||
8479 | cat confdefs.h >>conftest.$ac_ext | ||
8480 | cat >>conftest.$ac_ext <<_ACEOF | ||
8481 | /* end confdefs.h. */ | ||
8482 | |||
8483 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8484 | #ifdef __cplusplus | ||
8485 | extern "C" | ||
8486 | #endif | ||
8487 | /* We use char because int might match the return type of a gcc2 | ||
8488 | builtin and then its argument prototype would still apply. */ | ||
8489 | char deflate (); | ||
8490 | int | ||
8491 | main () | ||
8492 | { | ||
8493 | deflate (); | ||
8494 | ; | ||
8495 | return 0; | ||
8496 | } | ||
8497 | _ACEOF | ||
8498 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8500 | (eval $ac_link) 2>conftest.er1 | ||
8501 | ac_status=$? | ||
8502 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8503 | rm -f conftest.er1 | ||
8504 | cat conftest.err >&5 | ||
8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8506 | (exit $ac_status); } && | ||
8507 | { ac_try='test -z "$ac_c_werror_flag" | ||
8508 | || test ! -s conftest.err' | ||
8509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8510 | (eval $ac_try) 2>&5 | ||
8511 | ac_status=$? | ||
8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8513 | (exit $ac_status); }; } && | ||
8514 | { ac_try='test -s conftest$ac_exeext' | ||
8515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8516 | (eval $ac_try) 2>&5 | ||
8517 | ac_status=$? | ||
8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8519 | (exit $ac_status); }; }; then | ||
8520 | ac_cv_lib_z_deflate=yes | ||
8521 | else | ||
8522 | echo "$as_me: failed program was:" >&5 | ||
8523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8524 | |||
8525 | ac_cv_lib_z_deflate=no | ||
8526 | fi | ||
8527 | rm -f conftest.err conftest.$ac_objext \ | ||
8528 | conftest$ac_exeext conftest.$ac_ext | ||
8529 | LIBS=$ac_check_lib_save_LIBS | ||
8530 | fi | ||
8531 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
8532 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
8533 | if test $ac_cv_lib_z_deflate = yes; then | ||
8534 | cat >>confdefs.h <<_ACEOF | ||
8535 | #define HAVE_LIBZ 1 | ||
8536 | _ACEOF | ||
8537 | |||
8538 | LIBS="-lz $LIBS" | ||
8539 | |||
8540 | else | ||
8541 | |||
8542 | saved_CPPFLAGS="$CPPFLAGS" | ||
8543 | saved_LDFLAGS="$LDFLAGS" | ||
8544 | save_LIBS="$LIBS" | ||
8545 | if test -n "${need_dash_r}"; then | ||
8546 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8547 | else | ||
8548 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8549 | fi | ||
8550 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8551 | LIBS="$LIBS -lz" | ||
8552 | cat >conftest.$ac_ext <<_ACEOF | ||
8553 | /* confdefs.h. */ | ||
8554 | _ACEOF | ||
8555 | cat confdefs.h >>conftest.$ac_ext | ||
8556 | cat >>conftest.$ac_ext <<_ACEOF | ||
8557 | /* end confdefs.h. */ | ||
8558 | |||
8559 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8560 | #ifdef __cplusplus | ||
8561 | extern "C" | ||
8562 | #endif | ||
8563 | /* We use char because int might match the return type of a gcc2 | ||
8564 | builtin and then its argument prototype would still apply. */ | ||
8565 | char deflate (); | ||
8566 | int | ||
8567 | main () | ||
8568 | { | ||
8569 | deflate (); | ||
8570 | ; | ||
8571 | return 0; | ||
8572 | } | ||
8573 | _ACEOF | ||
8574 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8576 | (eval $ac_link) 2>conftest.er1 | ||
8577 | ac_status=$? | ||
8578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8579 | rm -f conftest.er1 | ||
8580 | cat conftest.err >&5 | ||
8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8582 | (exit $ac_status); } && | ||
8583 | { ac_try='test -z "$ac_c_werror_flag" | ||
8584 | || test ! -s conftest.err' | ||
8585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8586 | (eval $ac_try) 2>&5 | ||
8587 | ac_status=$? | ||
8588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8589 | (exit $ac_status); }; } && | ||
8590 | { ac_try='test -s conftest$ac_exeext' | ||
8591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8592 | (eval $ac_try) 2>&5 | ||
8593 | ac_status=$? | ||
8594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8595 | (exit $ac_status); }; }; then | ||
8596 | cat >>confdefs.h <<\_ACEOF | ||
8597 | #define HAVE_LIBZ 1 | ||
8598 | _ACEOF | ||
8599 | |||
8600 | else | ||
8601 | echo "$as_me: failed program was:" >&5 | ||
8602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8603 | |||
8604 | |||
8605 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
8606 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
8607 | { (exit 1); exit 1; }; } | ||
8608 | |||
8609 | |||
8610 | fi | ||
8611 | rm -f conftest.err conftest.$ac_objext \ | ||
8612 | conftest$ac_exeext conftest.$ac_ext | ||
8613 | |||
8614 | |||
8615 | fi | ||
8616 | |||
8617 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8618 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8619 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8620 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8622 | fi | ||
8623 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8624 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8625 | else | ||
8626 | # Is the header compilable? | ||
8627 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
8628 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | ||
8629 | cat >conftest.$ac_ext <<_ACEOF | ||
8630 | /* confdefs.h. */ | ||
8631 | _ACEOF | ||
8632 | cat confdefs.h >>conftest.$ac_ext | ||
8633 | cat >>conftest.$ac_ext <<_ACEOF | ||
8634 | /* end confdefs.h. */ | ||
8635 | $ac_includes_default | ||
8636 | #include <zlib.h> | ||
8637 | _ACEOF | ||
8638 | rm -f conftest.$ac_objext | ||
8639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8640 | (eval $ac_compile) 2>conftest.er1 | ||
8641 | ac_status=$? | ||
8642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8643 | rm -f conftest.er1 | ||
8644 | cat conftest.err >&5 | ||
8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8646 | (exit $ac_status); } && | ||
8647 | { ac_try='test -z "$ac_c_werror_flag" | ||
8648 | || test ! -s conftest.err' | ||
8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8650 | (eval $ac_try) 2>&5 | ||
8651 | ac_status=$? | ||
8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8653 | (exit $ac_status); }; } && | ||
8654 | { ac_try='test -s conftest.$ac_objext' | ||
8655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8656 | (eval $ac_try) 2>&5 | ||
8657 | ac_status=$? | ||
8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8659 | (exit $ac_status); }; }; then | ||
8660 | ac_header_compiler=yes | ||
8661 | else | ||
8662 | echo "$as_me: failed program was:" >&5 | ||
8663 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8664 | |||
8665 | ac_header_compiler=no | ||
8666 | fi | ||
8667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8668 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8669 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8670 | |||
8671 | # Is the header present? | ||
8672 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
8673 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | ||
8674 | cat >conftest.$ac_ext <<_ACEOF | ||
8675 | /* confdefs.h. */ | ||
8676 | _ACEOF | ||
8677 | cat confdefs.h >>conftest.$ac_ext | ||
8678 | cat >>conftest.$ac_ext <<_ACEOF | ||
8679 | /* end confdefs.h. */ | ||
8680 | #include <zlib.h> | ||
8681 | _ACEOF | ||
8682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8684 | ac_status=$? | ||
8685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8686 | rm -f conftest.er1 | ||
8687 | cat conftest.err >&5 | ||
8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8689 | (exit $ac_status); } >/dev/null; then | ||
8690 | if test -s conftest.err; then | ||
8691 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8693 | else | ||
8694 | ac_cpp_err= | ||
8695 | fi | ||
8696 | else | ||
8697 | ac_cpp_err=yes | ||
8698 | fi | ||
8699 | if test -z "$ac_cpp_err"; then | ||
8700 | ac_header_preproc=yes | ||
8701 | else | ||
8702 | echo "$as_me: failed program was:" >&5 | ||
8703 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8704 | |||
8705 | ac_header_preproc=no | ||
8706 | fi | ||
8707 | rm -f conftest.err conftest.$ac_ext | ||
8708 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8709 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8710 | |||
8711 | # So? What about this header? | ||
8712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8713 | yes:no: ) | ||
8714 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8715 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8716 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
8717 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
8718 | ac_header_preproc=yes | ||
8719 | ;; | ||
8720 | no:yes:* ) | ||
8721 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
8722 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
8723 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
8724 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
8725 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
8726 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
8727 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8728 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8729 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
8730 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
8731 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
8732 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
8733 | ( | ||
8734 | cat <<\_ASBOX | ||
8735 | ## ------------------------------------------- ## | ||
8736 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8737 | ## ------------------------------------------- ## | ||
8738 | _ASBOX | ||
8739 | ) | | ||
8740 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8741 | ;; | ||
8742 | esac | ||
8743 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8744 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8745 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8747 | else | ||
8748 | ac_cv_header_zlib_h=$ac_header_preproc | ||
8749 | fi | ||
8750 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8751 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8752 | |||
8753 | fi | ||
8754 | if test $ac_cv_header_zlib_h = yes; then | ||
8755 | : | ||
8756 | else | ||
8757 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
8758 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
8759 | { (exit 1); exit 1; }; } | ||
8760 | fi | ||
8761 | |||
8762 | |||
8763 | |||
8764 | |||
8765 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
8766 | if test "${with_zlib_version_check+set}" = set; then | ||
8767 | withval="$with_zlib_version_check" | ||
8768 | if test "x$withval" = "xno" ; then | ||
8769 | zlib_check_nonfatal=1 | ||
8770 | fi | ||
8771 | |||
8772 | |||
8773 | fi; | ||
8774 | |||
8775 | echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
8776 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6 | ||
8777 | if test "$cross_compiling" = yes; then | ||
8778 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
8779 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8780 | |||
8781 | else | ||
8782 | cat >conftest.$ac_ext <<_ACEOF | ||
8783 | /* confdefs.h. */ | ||
8784 | _ACEOF | ||
8785 | cat confdefs.h >>conftest.$ac_ext | ||
8786 | cat >>conftest.$ac_ext <<_ACEOF | ||
8787 | /* end confdefs.h. */ | ||
8788 | |||
8789 | #include <stdio.h> | ||
8790 | #include <zlib.h> | ||
8791 | int main() | ||
8792 | { | ||
8793 | int a=0, b=0, c=0, d=0, n, v; | ||
8794 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8795 | if (n != 3 && n != 4) | ||
8796 | exit(1); | ||
8797 | v = a*1000000 + b*10000 + c*100 + d; | ||
8798 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8799 | |||
8800 | /* 1.1.4 is OK */ | ||
8801 | if (a == 1 && b == 1 && c >= 4) | ||
8802 | exit(0); | ||
8803 | |||
8804 | /* 1.2.3 and up are OK */ | ||
8805 | if (v >= 1020300) | ||
8806 | exit(0); | ||
8807 | |||
8808 | exit(2); | ||
8809 | } | ||
8810 | |||
8811 | _ACEOF | ||
8812 | rm -f conftest$ac_exeext | ||
8813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8814 | (eval $ac_link) 2>&5 | ||
8815 | ac_status=$? | ||
8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8819 | (eval $ac_try) 2>&5 | ||
8820 | ac_status=$? | ||
8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8822 | (exit $ac_status); }; }; then | ||
8823 | echo "$as_me:$LINENO: result: no" >&5 | ||
8824 | echo "${ECHO_T}no" >&6 | ||
8825 | else | ||
8826 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8827 | echo "$as_me: failed program was:" >&5 | ||
8828 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8829 | |||
8830 | ( exit $ac_status ) | ||
8831 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8832 | echo "${ECHO_T}yes" >&6 | ||
8833 | if test -z "$zlib_check_nonfatal" ; then | ||
8834 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
8835 | Your reported zlib version has known security problems. It's possible your | ||
8836 | vendor has fixed these problems without changing the version number. If you | ||
8837 | are sure this is the case, you can disable the check by running | ||
8838 | \"./configure --without-zlib-version-check\". | ||
8839 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8840 | See http://www.gzip.org/zlib/ for details." >&5 | ||
8841 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
8842 | Your reported zlib version has known security problems. It's possible your | ||
8843 | vendor has fixed these problems without changing the version number. If you | ||
8844 | are sure this is the case, you can disable the check by running | ||
8845 | \"./configure --without-zlib-version-check\". | ||
8846 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8847 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
8848 | { (exit 1); exit 1; }; } | ||
8849 | else | ||
8850 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
8851 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8852 | fi | ||
8853 | |||
8854 | fi | ||
8855 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8856 | fi | ||
8857 | |||
8858 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
8859 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
8860 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
8861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8862 | else | ||
8863 | cat >conftest.$ac_ext <<_ACEOF | ||
8864 | /* confdefs.h. */ | ||
8865 | _ACEOF | ||
8866 | cat confdefs.h >>conftest.$ac_ext | ||
8867 | cat >>conftest.$ac_ext <<_ACEOF | ||
8868 | /* end confdefs.h. */ | ||
8869 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
8870 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8871 | #define strcasecmp innocuous_strcasecmp | ||
8872 | |||
8873 | /* System header to define __stub macros and hopefully few prototypes, | ||
8874 | which can conflict with char strcasecmp (); below. | ||
8875 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8876 | <limits.h> exists even on freestanding compilers. */ | ||
8877 | |||
8878 | #ifdef __STDC__ | ||
8879 | # include <limits.h> | ||
8880 | #else | ||
8881 | # include <assert.h> | ||
8882 | #endif | ||
8883 | |||
8884 | #undef strcasecmp | ||
8885 | |||
8886 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8887 | #ifdef __cplusplus | ||
8888 | extern "C" | ||
8889 | { | ||
8890 | #endif | ||
8891 | /* We use char because int might match the return type of a gcc2 | ||
8892 | builtin and then its argument prototype would still apply. */ | ||
8893 | char strcasecmp (); | ||
8894 | /* The GNU C library defines this for functions which it implements | ||
8895 | to always fail with ENOSYS. Some functions are actually named | ||
8896 | something starting with __ and the normal name is an alias. */ | ||
8897 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
8898 | choke me | ||
8899 | #else | ||
8900 | char (*f) () = strcasecmp; | ||
8901 | #endif | ||
8902 | #ifdef __cplusplus | ||
8903 | } | ||
8904 | #endif | ||
8905 | |||
8906 | int | ||
8907 | main () | ||
8908 | { | ||
8909 | return f != strcasecmp; | ||
8910 | ; | ||
8911 | return 0; | ||
8912 | } | ||
8913 | _ACEOF | ||
8914 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8916 | (eval $ac_link) 2>conftest.er1 | ||
8917 | ac_status=$? | ||
8918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8919 | rm -f conftest.er1 | ||
8920 | cat conftest.err >&5 | ||
8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8922 | (exit $ac_status); } && | ||
8923 | { ac_try='test -z "$ac_c_werror_flag" | ||
8924 | || test ! -s conftest.err' | ||
8925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8926 | (eval $ac_try) 2>&5 | ||
8927 | ac_status=$? | ||
8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8929 | (exit $ac_status); }; } && | ||
8930 | { ac_try='test -s conftest$ac_exeext' | ||
8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8932 | (eval $ac_try) 2>&5 | ||
8933 | ac_status=$? | ||
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8935 | (exit $ac_status); }; }; then | ||
8936 | ac_cv_func_strcasecmp=yes | ||
8937 | else | ||
8938 | echo "$as_me: failed program was:" >&5 | ||
8939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8940 | |||
8941 | ac_cv_func_strcasecmp=no | ||
8942 | fi | ||
8943 | rm -f conftest.err conftest.$ac_objext \ | ||
8944 | conftest$ac_exeext conftest.$ac_ext | ||
8945 | fi | ||
8946 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
8947 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
8948 | if test $ac_cv_func_strcasecmp = yes; then | ||
8949 | : | ||
8950 | else | ||
8951 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
8952 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
8953 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
8954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8955 | else | ||
8956 | ac_check_lib_save_LIBS=$LIBS | ||
8957 | LIBS="-lresolv $LIBS" | ||
8958 | cat >conftest.$ac_ext <<_ACEOF | ||
8959 | /* confdefs.h. */ | ||
8960 | _ACEOF | ||
8961 | cat confdefs.h >>conftest.$ac_ext | ||
8962 | cat >>conftest.$ac_ext <<_ACEOF | ||
8963 | /* end confdefs.h. */ | ||
8964 | |||
8965 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8966 | #ifdef __cplusplus | ||
8967 | extern "C" | ||
8968 | #endif | ||
8969 | /* We use char because int might match the return type of a gcc2 | ||
8970 | builtin and then its argument prototype would still apply. */ | ||
8971 | char strcasecmp (); | ||
8972 | int | ||
8973 | main () | ||
8974 | { | ||
8975 | strcasecmp (); | ||
8976 | ; | ||
8977 | return 0; | ||
8978 | } | ||
8979 | _ACEOF | ||
8980 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8982 | (eval $ac_link) 2>conftest.er1 | ||
8983 | ac_status=$? | ||
8984 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8985 | rm -f conftest.er1 | ||
8986 | cat conftest.err >&5 | ||
8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8988 | (exit $ac_status); } && | ||
8989 | { ac_try='test -z "$ac_c_werror_flag" | ||
8990 | || test ! -s conftest.err' | ||
8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8992 | (eval $ac_try) 2>&5 | ||
8993 | ac_status=$? | ||
8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8995 | (exit $ac_status); }; } && | ||
8996 | { ac_try='test -s conftest$ac_exeext' | ||
8997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8998 | (eval $ac_try) 2>&5 | ||
8999 | ac_status=$? | ||
9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9001 | (exit $ac_status); }; }; then | ||
9002 | ac_cv_lib_resolv_strcasecmp=yes | ||
9003 | else | ||
9004 | echo "$as_me: failed program was:" >&5 | ||
9005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9006 | |||
9007 | ac_cv_lib_resolv_strcasecmp=no | ||
9008 | fi | ||
9009 | rm -f conftest.err conftest.$ac_objext \ | ||
9010 | conftest$ac_exeext conftest.$ac_ext | ||
9011 | LIBS=$ac_check_lib_save_LIBS | ||
9012 | fi | ||
9013 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9014 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
9015 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
9016 | LIBS="$LIBS -lresolv" | ||
9017 | fi | ||
9018 | |||
9019 | |||
9020 | fi | ||
9021 | |||
9022 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
9023 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
9024 | if test "${ac_cv_func_utimes+set}" = set; then | ||
9025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9026 | else | ||
9027 | cat >conftest.$ac_ext <<_ACEOF | ||
9028 | /* confdefs.h. */ | ||
9029 | _ACEOF | ||
9030 | cat confdefs.h >>conftest.$ac_ext | ||
9031 | cat >>conftest.$ac_ext <<_ACEOF | ||
9032 | /* end confdefs.h. */ | ||
9033 | /* Define utimes to an innocuous variant, in case <limits.h> declares utimes. | ||
9034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9035 | #define utimes innocuous_utimes | ||
9036 | |||
9037 | /* System header to define __stub macros and hopefully few prototypes, | ||
9038 | which can conflict with char utimes (); below. | ||
9039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9040 | <limits.h> exists even on freestanding compilers. */ | ||
9041 | |||
9042 | #ifdef __STDC__ | ||
9043 | # include <limits.h> | ||
9044 | #else | ||
9045 | # include <assert.h> | ||
9046 | #endif | ||
9047 | |||
9048 | #undef utimes | ||
9049 | |||
9050 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9051 | #ifdef __cplusplus | ||
9052 | extern "C" | ||
9053 | { | ||
9054 | #endif | ||
9055 | /* We use char because int might match the return type of a gcc2 | ||
9056 | builtin and then its argument prototype would still apply. */ | ||
9057 | char utimes (); | ||
9058 | /* The GNU C library defines this for functions which it implements | ||
9059 | to always fail with ENOSYS. Some functions are actually named | ||
9060 | something starting with __ and the normal name is an alias. */ | ||
9061 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
9062 | choke me | ||
9063 | #else | ||
9064 | char (*f) () = utimes; | ||
9065 | #endif | ||
9066 | #ifdef __cplusplus | ||
9067 | } | ||
9068 | #endif | ||
9069 | |||
9070 | int | ||
9071 | main () | ||
9072 | { | ||
9073 | return f != utimes; | ||
9074 | ; | ||
9075 | return 0; | ||
9076 | } | ||
9077 | _ACEOF | ||
9078 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9080 | (eval $ac_link) 2>conftest.er1 | ||
9081 | ac_status=$? | ||
9082 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9083 | rm -f conftest.er1 | ||
9084 | cat conftest.err >&5 | ||
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9086 | (exit $ac_status); } && | ||
9087 | { ac_try='test -z "$ac_c_werror_flag" | ||
9088 | || test ! -s conftest.err' | ||
9089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9090 | (eval $ac_try) 2>&5 | ||
9091 | ac_status=$? | ||
9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9093 | (exit $ac_status); }; } && | ||
9094 | { ac_try='test -s conftest$ac_exeext' | ||
9095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9096 | (eval $ac_try) 2>&5 | ||
9097 | ac_status=$? | ||
9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9099 | (exit $ac_status); }; }; then | ||
9100 | ac_cv_func_utimes=yes | ||
9101 | else | ||
9102 | echo "$as_me: failed program was:" >&5 | ||
9103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9104 | |||
9105 | ac_cv_func_utimes=no | ||
9106 | fi | ||
9107 | rm -f conftest.err conftest.$ac_objext \ | ||
9108 | conftest$ac_exeext conftest.$ac_ext | ||
9109 | fi | ||
9110 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
9111 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
9112 | if test $ac_cv_func_utimes = yes; then | ||
9113 | : | ||
9114 | else | ||
9115 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
9116 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
9117 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
9118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9119 | else | ||
9120 | ac_check_lib_save_LIBS=$LIBS | ||
9121 | LIBS="-lc89 $LIBS" | ||
9122 | cat >conftest.$ac_ext <<_ACEOF | ||
9123 | /* confdefs.h. */ | ||
9124 | _ACEOF | ||
9125 | cat confdefs.h >>conftest.$ac_ext | ||
9126 | cat >>conftest.$ac_ext <<_ACEOF | ||
9127 | /* end confdefs.h. */ | ||
9128 | |||
9129 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9130 | #ifdef __cplusplus | ||
9131 | extern "C" | ||
9132 | #endif | ||
9133 | /* We use char because int might match the return type of a gcc2 | ||
9134 | builtin and then its argument prototype would still apply. */ | ||
9135 | char utimes (); | ||
9136 | int | ||
9137 | main () | ||
9138 | { | ||
9139 | utimes (); | ||
9140 | ; | ||
9141 | return 0; | ||
9142 | } | ||
9143 | _ACEOF | ||
9144 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9146 | (eval $ac_link) 2>conftest.er1 | ||
9147 | ac_status=$? | ||
9148 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9149 | rm -f conftest.er1 | ||
9150 | cat conftest.err >&5 | ||
9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9152 | (exit $ac_status); } && | ||
9153 | { ac_try='test -z "$ac_c_werror_flag" | ||
9154 | || test ! -s conftest.err' | ||
9155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9156 | (eval $ac_try) 2>&5 | ||
9157 | ac_status=$? | ||
9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9159 | (exit $ac_status); }; } && | ||
9160 | { ac_try='test -s conftest$ac_exeext' | ||
9161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9162 | (eval $ac_try) 2>&5 | ||
9163 | ac_status=$? | ||
9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9165 | (exit $ac_status); }; }; then | ||
9166 | ac_cv_lib_c89_utimes=yes | ||
9167 | else | ||
9168 | echo "$as_me: failed program was:" >&5 | ||
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9170 | |||
9171 | ac_cv_lib_c89_utimes=no | ||
9172 | fi | ||
9173 | rm -f conftest.err conftest.$ac_objext \ | ||
9174 | conftest$ac_exeext conftest.$ac_ext | ||
9175 | LIBS=$ac_check_lib_save_LIBS | ||
9176 | fi | ||
9177 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
9178 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
9179 | if test $ac_cv_lib_c89_utimes = yes; then | ||
9180 | cat >>confdefs.h <<\_ACEOF | ||
9181 | #define HAVE_UTIMES 1 | ||
9182 | _ACEOF | ||
9183 | |||
9184 | LIBS="$LIBS -lc89" | ||
9185 | fi | ||
9186 | |||
9187 | |||
9188 | fi | ||
9189 | |||
9190 | |||
9191 | |||
9192 | for ac_header in libutil.h | ||
9193 | do | ||
9194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9200 | fi | ||
9201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9203 | else | ||
9204 | # Is the header compilable? | ||
9205 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
9207 | cat >conftest.$ac_ext <<_ACEOF | ||
9208 | /* confdefs.h. */ | ||
9209 | _ACEOF | ||
9210 | cat confdefs.h >>conftest.$ac_ext | ||
9211 | cat >>conftest.$ac_ext <<_ACEOF | ||
9212 | /* end confdefs.h. */ | ||
9213 | $ac_includes_default | ||
9214 | #include <$ac_header> | ||
9215 | _ACEOF | ||
9216 | rm -f conftest.$ac_objext | ||
9217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9218 | (eval $ac_compile) 2>conftest.er1 | ||
9219 | ac_status=$? | ||
9220 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9221 | rm -f conftest.er1 | ||
9222 | cat conftest.err >&5 | ||
9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9224 | (exit $ac_status); } && | ||
9225 | { ac_try='test -z "$ac_c_werror_flag" | ||
9226 | || test ! -s conftest.err' | ||
9227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9228 | (eval $ac_try) 2>&5 | ||
9229 | ac_status=$? | ||
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9231 | (exit $ac_status); }; } && | ||
9232 | { ac_try='test -s conftest.$ac_objext' | ||
9233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9234 | (eval $ac_try) 2>&5 | ||
9235 | ac_status=$? | ||
9236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9237 | (exit $ac_status); }; }; then | ||
9238 | ac_header_compiler=yes | ||
9239 | else | ||
9240 | echo "$as_me: failed program was:" >&5 | ||
9241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9242 | |||
9243 | ac_header_compiler=no | ||
9244 | fi | ||
9245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9246 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9247 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
9248 | |||
9249 | # Is the header present? | ||
9250 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9251 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
9252 | cat >conftest.$ac_ext <<_ACEOF | ||
9253 | /* confdefs.h. */ | ||
9254 | _ACEOF | ||
9255 | cat confdefs.h >>conftest.$ac_ext | ||
9256 | cat >>conftest.$ac_ext <<_ACEOF | ||
9257 | /* end confdefs.h. */ | ||
9258 | #include <$ac_header> | ||
9259 | _ACEOF | ||
9260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
9261 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
9262 | ac_status=$? | ||
9263 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9264 | rm -f conftest.er1 | ||
9265 | cat conftest.err >&5 | ||
9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9267 | (exit $ac_status); } >/dev/null; then | ||
9268 | if test -s conftest.err; then | ||
9269 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
9270 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
9271 | else | ||
9272 | ac_cpp_err= | ||
9273 | fi | ||
9274 | else | ||
9275 | ac_cpp_err=yes | ||
9276 | fi | ||
9277 | if test -z "$ac_cpp_err"; then | ||
9278 | ac_header_preproc=yes | ||
9279 | else | ||
9280 | echo "$as_me: failed program was:" >&5 | ||
9281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9282 | |||
9283 | ac_header_preproc=no | ||
9284 | fi | ||
9285 | rm -f conftest.err conftest.$ac_ext | ||
9286 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9287 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
9288 | |||
9289 | # So? What about this header? | ||
9290 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9291 | yes:no: ) | ||
9292 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9293 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9295 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9296 | ac_header_preproc=yes | ||
9297 | ;; | ||
9298 | no:yes:* ) | ||
9299 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9300 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9301 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9302 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9303 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9304 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9305 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9306 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9308 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9309 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9310 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9311 | ( | ||
9312 | cat <<\_ASBOX | ||
9313 | ## ------------------------------------------- ## | ||
9314 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9315 | ## ------------------------------------------- ## | ||
9316 | _ASBOX | ||
9317 | ) | | ||
9318 | sed "s/^/$as_me: WARNING: /" >&2 | ||
9319 | ;; | ||
9320 | esac | ||
9321 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9322 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
9323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
9324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9325 | else | ||
9326 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9327 | fi | ||
9328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
9329 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
9330 | |||
9331 | fi | ||
9332 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9333 | cat >>confdefs.h <<_ACEOF | ||
9334 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9335 | _ACEOF | ||
9336 | |||
9337 | fi | ||
9338 | |||
9339 | done | ||
9340 | |||
9341 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
9342 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
9343 | if test "${ac_cv_search_login+set}" = set; then | ||
9344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9345 | else | ||
9346 | ac_func_search_save_LIBS=$LIBS | ||
9347 | ac_cv_search_login=no | ||
9348 | cat >conftest.$ac_ext <<_ACEOF | ||
9349 | /* confdefs.h. */ | ||
9350 | _ACEOF | ||
9351 | cat confdefs.h >>conftest.$ac_ext | ||
9352 | cat >>conftest.$ac_ext <<_ACEOF | ||
9353 | /* end confdefs.h. */ | ||
9354 | |||
9355 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9356 | #ifdef __cplusplus | ||
9357 | extern "C" | ||
9358 | #endif | ||
9359 | /* We use char because int might match the return type of a gcc2 | ||
9360 | builtin and then its argument prototype would still apply. */ | ||
9361 | char login (); | ||
9362 | int | ||
9363 | main () | ||
9364 | { | ||
9365 | login (); | ||
9366 | ; | ||
9367 | return 0; | ||
9368 | } | ||
9369 | _ACEOF | ||
9370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9372 | (eval $ac_link) 2>conftest.er1 | ||
9373 | ac_status=$? | ||
9374 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9375 | rm -f conftest.er1 | ||
9376 | cat conftest.err >&5 | ||
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9378 | (exit $ac_status); } && | ||
9379 | { ac_try='test -z "$ac_c_werror_flag" | ||
9380 | || test ! -s conftest.err' | ||
9381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9382 | (eval $ac_try) 2>&5 | ||
9383 | ac_status=$? | ||
9384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9385 | (exit $ac_status); }; } && | ||
9386 | { ac_try='test -s conftest$ac_exeext' | ||
9387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9388 | (eval $ac_try) 2>&5 | ||
9389 | ac_status=$? | ||
9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9391 | (exit $ac_status); }; }; then | ||
9392 | ac_cv_search_login="none required" | ||
9393 | else | ||
9394 | echo "$as_me: failed program was:" >&5 | ||
9395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9396 | |||
9397 | fi | ||
9398 | rm -f conftest.err conftest.$ac_objext \ | ||
9399 | conftest$ac_exeext conftest.$ac_ext | ||
9400 | if test "$ac_cv_search_login" = no; then | ||
9401 | for ac_lib in util bsd; do | ||
9402 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9403 | cat >conftest.$ac_ext <<_ACEOF | ||
9404 | /* confdefs.h. */ | ||
9405 | _ACEOF | ||
9406 | cat confdefs.h >>conftest.$ac_ext | ||
9407 | cat >>conftest.$ac_ext <<_ACEOF | ||
9408 | /* end confdefs.h. */ | ||
9409 | |||
9410 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9411 | #ifdef __cplusplus | ||
9412 | extern "C" | ||
9413 | #endif | ||
9414 | /* We use char because int might match the return type of a gcc2 | ||
9415 | builtin and then its argument prototype would still apply. */ | ||
9416 | char login (); | ||
9417 | int | ||
9418 | main () | ||
9419 | { | ||
9420 | login (); | ||
9421 | ; | ||
9422 | return 0; | ||
9423 | } | ||
9424 | _ACEOF | ||
9425 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9427 | (eval $ac_link) 2>conftest.er1 | ||
9428 | ac_status=$? | ||
9429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9430 | rm -f conftest.er1 | ||
9431 | cat conftest.err >&5 | ||
9432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9433 | (exit $ac_status); } && | ||
9434 | { ac_try='test -z "$ac_c_werror_flag" | ||
9435 | || test ! -s conftest.err' | ||
9436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9437 | (eval $ac_try) 2>&5 | ||
9438 | ac_status=$? | ||
9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9440 | (exit $ac_status); }; } && | ||
9441 | { ac_try='test -s conftest$ac_exeext' | ||
9442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9443 | (eval $ac_try) 2>&5 | ||
9444 | ac_status=$? | ||
9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9446 | (exit $ac_status); }; }; then | ||
9447 | ac_cv_search_login="-l$ac_lib" | ||
9448 | break | ||
9449 | else | ||
9450 | echo "$as_me: failed program was:" >&5 | ||
9451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9452 | |||
9453 | fi | ||
9454 | rm -f conftest.err conftest.$ac_objext \ | ||
9455 | conftest$ac_exeext conftest.$ac_ext | ||
9456 | done | ||
9457 | fi | ||
9458 | LIBS=$ac_func_search_save_LIBS | ||
9459 | fi | ||
9460 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
9461 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
9462 | if test "$ac_cv_search_login" != no; then | ||
9463 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
9464 | cat >>confdefs.h <<\_ACEOF | ||
9465 | #define HAVE_LOGIN 1 | ||
9466 | _ACEOF | ||
9467 | |||
9468 | fi | ||
9469 | |||
9470 | |||
9471 | |||
9472 | |||
9473 | for ac_func in logout updwtmp logwtmp | ||
9474 | do | ||
9475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9476 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9478 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9480 | else | ||
9481 | cat >conftest.$ac_ext <<_ACEOF | ||
9482 | /* confdefs.h. */ | ||
9483 | _ACEOF | ||
9484 | cat confdefs.h >>conftest.$ac_ext | ||
9485 | cat >>conftest.$ac_ext <<_ACEOF | ||
9486 | /* end confdefs.h. */ | ||
9487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9489 | #define $ac_func innocuous_$ac_func | ||
9490 | |||
9491 | /* System header to define __stub macros and hopefully few prototypes, | ||
9492 | which can conflict with char $ac_func (); below. | ||
9493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9494 | <limits.h> exists even on freestanding compilers. */ | ||
9495 | |||
9496 | #ifdef __STDC__ | ||
9497 | # include <limits.h> | ||
9498 | #else | ||
9499 | # include <assert.h> | ||
9500 | #endif | ||
9501 | |||
9502 | #undef $ac_func | ||
9503 | |||
9504 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9505 | #ifdef __cplusplus | ||
9506 | extern "C" | ||
9507 | { | ||
9508 | #endif | ||
9509 | /* We use char because int might match the return type of a gcc2 | ||
9510 | builtin and then its argument prototype would still apply. */ | ||
9511 | char $ac_func (); | ||
9512 | /* The GNU C library defines this for functions which it implements | ||
9513 | to always fail with ENOSYS. Some functions are actually named | ||
9514 | something starting with __ and the normal name is an alias. */ | ||
9515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9516 | choke me | ||
9517 | #else | ||
9518 | char (*f) () = $ac_func; | ||
9519 | #endif | ||
9520 | #ifdef __cplusplus | ||
9521 | } | ||
9522 | #endif | ||
9523 | |||
9524 | int | ||
9525 | main () | ||
9526 | { | ||
9527 | return f != $ac_func; | ||
9528 | ; | ||
9529 | return 0; | ||
9530 | } | ||
9531 | _ACEOF | ||
9532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9534 | (eval $ac_link) 2>conftest.er1 | ||
9535 | ac_status=$? | ||
9536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9537 | rm -f conftest.er1 | ||
9538 | cat conftest.err >&5 | ||
9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9540 | (exit $ac_status); } && | ||
9541 | { ac_try='test -z "$ac_c_werror_flag" | ||
9542 | || test ! -s conftest.err' | ||
9543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9544 | (eval $ac_try) 2>&5 | ||
9545 | ac_status=$? | ||
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9547 | (exit $ac_status); }; } && | ||
9548 | { ac_try='test -s conftest$ac_exeext' | ||
9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9550 | (eval $ac_try) 2>&5 | ||
9551 | ac_status=$? | ||
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9553 | (exit $ac_status); }; }; then | ||
9554 | eval "$as_ac_var=yes" | ||
9555 | else | ||
9556 | echo "$as_me: failed program was:" >&5 | ||
9557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9558 | |||
9559 | eval "$as_ac_var=no" | ||
9560 | fi | ||
9561 | rm -f conftest.err conftest.$ac_objext \ | ||
9562 | conftest$ac_exeext conftest.$ac_ext | ||
9563 | fi | ||
9564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9567 | cat >>confdefs.h <<_ACEOF | ||
9568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9569 | _ACEOF | ||
9570 | |||
9571 | fi | ||
9572 | done | ||
9573 | |||
9574 | |||
9575 | |||
9576 | for ac_func in strftime | ||
9577 | do | ||
9578 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9579 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9580 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9581 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9583 | else | ||
9584 | cat >conftest.$ac_ext <<_ACEOF | ||
9585 | /* confdefs.h. */ | ||
9586 | _ACEOF | ||
9587 | cat confdefs.h >>conftest.$ac_ext | ||
9588 | cat >>conftest.$ac_ext <<_ACEOF | ||
9589 | /* end confdefs.h. */ | ||
9590 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9592 | #define $ac_func innocuous_$ac_func | ||
9593 | |||
9594 | /* System header to define __stub macros and hopefully few prototypes, | ||
9595 | which can conflict with char $ac_func (); below. | ||
9596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9597 | <limits.h> exists even on freestanding compilers. */ | ||
9598 | |||
9599 | #ifdef __STDC__ | ||
9600 | # include <limits.h> | ||
9601 | #else | ||
9602 | # include <assert.h> | ||
9603 | #endif | ||
9604 | |||
9605 | #undef $ac_func | ||
9606 | |||
9607 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9608 | #ifdef __cplusplus | ||
9609 | extern "C" | ||
9610 | { | ||
9611 | #endif | ||
9612 | /* We use char because int might match the return type of a gcc2 | ||
9613 | builtin and then its argument prototype would still apply. */ | ||
9614 | char $ac_func (); | ||
9615 | /* The GNU C library defines this for functions which it implements | ||
9616 | to always fail with ENOSYS. Some functions are actually named | ||
9617 | something starting with __ and the normal name is an alias. */ | ||
9618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9619 | choke me | ||
9620 | #else | ||
9621 | char (*f) () = $ac_func; | ||
9622 | #endif | ||
9623 | #ifdef __cplusplus | ||
9624 | } | ||
9625 | #endif | ||
9626 | |||
9627 | int | ||
9628 | main () | ||
9629 | { | ||
9630 | return f != $ac_func; | ||
9631 | ; | ||
9632 | return 0; | ||
9633 | } | ||
9634 | _ACEOF | ||
9635 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9637 | (eval $ac_link) 2>conftest.er1 | ||
9638 | ac_status=$? | ||
9639 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9640 | rm -f conftest.er1 | ||
9641 | cat conftest.err >&5 | ||
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9643 | (exit $ac_status); } && | ||
9644 | { ac_try='test -z "$ac_c_werror_flag" | ||
9645 | || test ! -s conftest.err' | ||
9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9647 | (eval $ac_try) 2>&5 | ||
9648 | ac_status=$? | ||
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9650 | (exit $ac_status); }; } && | ||
9651 | { ac_try='test -s conftest$ac_exeext' | ||
9652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9653 | (eval $ac_try) 2>&5 | ||
9654 | ac_status=$? | ||
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9656 | (exit $ac_status); }; }; then | ||
9657 | eval "$as_ac_var=yes" | ||
9658 | else | ||
9659 | echo "$as_me: failed program was:" >&5 | ||
9660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9661 | |||
9662 | eval "$as_ac_var=no" | ||
9663 | fi | ||
9664 | rm -f conftest.err conftest.$ac_objext \ | ||
9665 | conftest$ac_exeext conftest.$ac_ext | ||
9666 | fi | ||
9667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9668 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9669 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9670 | cat >>confdefs.h <<_ACEOF | ||
9671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9672 | _ACEOF | ||
9673 | |||
9674 | else | ||
9675 | # strftime is in -lintl on SCO UNIX. | ||
9676 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
9677 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
9678 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
9679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9680 | else | ||
9681 | ac_check_lib_save_LIBS=$LIBS | ||
9682 | LIBS="-lintl $LIBS" | ||
9683 | cat >conftest.$ac_ext <<_ACEOF | ||
9684 | /* confdefs.h. */ | ||
9685 | _ACEOF | ||
9686 | cat confdefs.h >>conftest.$ac_ext | ||
9687 | cat >>conftest.$ac_ext <<_ACEOF | ||
9688 | /* end confdefs.h. */ | ||
9689 | |||
9690 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9691 | #ifdef __cplusplus | ||
9692 | extern "C" | ||
9693 | #endif | ||
9694 | /* We use char because int might match the return type of a gcc2 | ||
9695 | builtin and then its argument prototype would still apply. */ | ||
9696 | char strftime (); | ||
9697 | int | ||
9698 | main () | ||
9699 | { | ||
9700 | strftime (); | ||
9701 | ; | ||
9702 | return 0; | ||
9703 | } | ||
9704 | _ACEOF | ||
9705 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9707 | (eval $ac_link) 2>conftest.er1 | ||
9708 | ac_status=$? | ||
9709 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9710 | rm -f conftest.er1 | ||
9711 | cat conftest.err >&5 | ||
9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9713 | (exit $ac_status); } && | ||
9714 | { ac_try='test -z "$ac_c_werror_flag" | ||
9715 | || test ! -s conftest.err' | ||
9716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9717 | (eval $ac_try) 2>&5 | ||
9718 | ac_status=$? | ||
9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9720 | (exit $ac_status); }; } && | ||
9721 | { ac_try='test -s conftest$ac_exeext' | ||
9722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9723 | (eval $ac_try) 2>&5 | ||
9724 | ac_status=$? | ||
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9726 | (exit $ac_status); }; }; then | ||
9727 | ac_cv_lib_intl_strftime=yes | ||
9728 | else | ||
9729 | echo "$as_me: failed program was:" >&5 | ||
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9731 | |||
9732 | ac_cv_lib_intl_strftime=no | ||
9733 | fi | ||
9734 | rm -f conftest.err conftest.$ac_objext \ | ||
9735 | conftest$ac_exeext conftest.$ac_ext | ||
9736 | LIBS=$ac_check_lib_save_LIBS | ||
9737 | fi | ||
9738 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
9739 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
9740 | if test $ac_cv_lib_intl_strftime = yes; then | ||
9741 | cat >>confdefs.h <<\_ACEOF | ||
9742 | #define HAVE_STRFTIME 1 | ||
9743 | _ACEOF | ||
9744 | |||
9745 | LIBS="-lintl $LIBS" | ||
9746 | fi | ||
9747 | |||
9748 | fi | ||
9749 | done | ||
9750 | |||
9751 | |||
9752 | # Check for ALTDIRFUNC glob() extension | ||
9753 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9754 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
9755 | cat >conftest.$ac_ext <<_ACEOF | ||
9756 | /* confdefs.h. */ | ||
9757 | _ACEOF | ||
9758 | cat confdefs.h >>conftest.$ac_ext | ||
9759 | cat >>conftest.$ac_ext <<_ACEOF | ||
9760 | /* end confdefs.h. */ | ||
9761 | |||
9762 | #include <glob.h> | ||
9763 | #ifdef GLOB_ALTDIRFUNC | ||
9764 | FOUNDIT | ||
9765 | #endif | ||
9766 | |||
9767 | _ACEOF | ||
9768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9769 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9770 | |||
9771 | cat >>confdefs.h <<\_ACEOF | ||
9772 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
9773 | _ACEOF | ||
9774 | |||
9775 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9776 | echo "${ECHO_T}yes" >&6 | ||
9777 | |||
9778 | else | ||
9779 | |||
9780 | echo "$as_me:$LINENO: result: no" >&5 | ||
9781 | echo "${ECHO_T}no" >&6 | ||
9782 | |||
9783 | |||
9784 | fi | ||
9785 | rm -f conftest* | ||
9786 | |||
9787 | |||
9788 | # Check for g.gl_matchc glob() extension | ||
9789 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
9790 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
9791 | cat >conftest.$ac_ext <<_ACEOF | ||
9792 | /* confdefs.h. */ | ||
9793 | _ACEOF | ||
9794 | cat confdefs.h >>conftest.$ac_ext | ||
9795 | cat >>conftest.$ac_ext <<_ACEOF | ||
9796 | /* end confdefs.h. */ | ||
9797 | |||
9798 | #include <glob.h> | ||
9799 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
9800 | |||
9801 | _ACEOF | ||
9802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9803 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9804 | |||
9805 | cat >>confdefs.h <<\_ACEOF | ||
9806 | #define GLOB_HAS_GL_MATCHC 1 | ||
9807 | _ACEOF | ||
9808 | |||
9809 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9810 | echo "${ECHO_T}yes" >&6 | ||
9811 | |||
9812 | else | ||
9813 | |||
9814 | echo "$as_me:$LINENO: result: no" >&5 | ||
9815 | echo "${ECHO_T}no" >&6 | ||
9816 | |||
9817 | |||
9818 | fi | ||
9819 | rm -f conftest* | ||
9820 | |||
9821 | |||
9822 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
9823 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
9824 | if test "$cross_compiling" = yes; then | ||
9825 | |||
9826 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
9827 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
9828 | cat >>confdefs.h <<\_ACEOF | ||
9829 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9830 | _ACEOF | ||
9831 | |||
9832 | |||
9833 | |||
9834 | else | ||
9835 | cat >conftest.$ac_ext <<_ACEOF | ||
9836 | /* confdefs.h. */ | ||
9837 | _ACEOF | ||
9838 | cat confdefs.h >>conftest.$ac_ext | ||
9839 | cat >>conftest.$ac_ext <<_ACEOF | ||
9840 | /* end confdefs.h. */ | ||
9841 | |||
9842 | #include <sys/types.h> | ||
9843 | #include <dirent.h> | ||
9844 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
9845 | |||
9846 | _ACEOF | ||
9847 | rm -f conftest$ac_exeext | ||
9848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9849 | (eval $ac_link) 2>&5 | ||
9850 | ac_status=$? | ||
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9854 | (eval $ac_try) 2>&5 | ||
9855 | ac_status=$? | ||
9856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9857 | (exit $ac_status); }; }; then | ||
9858 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9859 | echo "${ECHO_T}yes" >&6 | ||
9860 | else | ||
9861 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9862 | echo "$as_me: failed program was:" >&5 | ||
9863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9864 | |||
9865 | ( exit $ac_status ) | ||
9866 | |||
9867 | echo "$as_me:$LINENO: result: no" >&5 | ||
9868 | echo "${ECHO_T}no" >&6 | ||
9869 | cat >>confdefs.h <<\_ACEOF | ||
9870 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9871 | _ACEOF | ||
9872 | |||
9873 | |||
9874 | fi | ||
9875 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9876 | fi | ||
9877 | |||
9878 | echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
9879 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6 | ||
9880 | if test -d "/proc/$$/fd" ; then | ||
9881 | cat >>confdefs.h <<\_ACEOF | ||
9882 | #define HAVE_PROC_PID 1 | ||
9883 | _ACEOF | ||
9884 | |||
9885 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9886 | echo "${ECHO_T}yes" >&6 | ||
9887 | else | ||
9888 | echo "$as_me:$LINENO: result: no" >&5 | ||
9889 | echo "${ECHO_T}no" >&6 | ||
9890 | fi | ||
9891 | |||
9892 | # Check whether user wants S/Key support | ||
9893 | SKEY_MSG="no" | ||
9894 | |||
9895 | # Check whether --with-skey or --without-skey was given. | ||
9896 | if test "${with_skey+set}" = set; then | ||
9897 | withval="$with_skey" | ||
9898 | |||
9899 | if test "x$withval" != "xno" ; then | ||
9900 | |||
9901 | if test "x$withval" != "xyes" ; then | ||
9902 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9903 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9904 | fi | ||
9905 | |||
9906 | cat >>confdefs.h <<\_ACEOF | ||
9907 | #define SKEY 1 | ||
9908 | _ACEOF | ||
9909 | |||
9910 | LIBS="-lskey $LIBS" | ||
9911 | SKEY_MSG="yes" | ||
9912 | |||
9913 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
9914 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
9915 | if test "$cross_compiling" = yes; then | ||
9916 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
9917 | See \`config.log' for more details." >&5 | ||
9918 | echo "$as_me: error: cannot run test program while cross compiling | ||
9919 | See \`config.log' for more details." >&2;} | ||
9920 | { (exit 1); exit 1; }; } | ||
9921 | else | ||
9922 | cat >conftest.$ac_ext <<_ACEOF | ||
9923 | /* confdefs.h. */ | ||
9924 | _ACEOF | ||
9925 | cat confdefs.h >>conftest.$ac_ext | ||
9926 | cat >>conftest.$ac_ext <<_ACEOF | ||
9927 | /* end confdefs.h. */ | ||
9928 | |||
9929 | #include <stdio.h> | ||
9930 | #include <skey.h> | ||
9931 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
9932 | |||
9933 | _ACEOF | ||
9934 | rm -f conftest$ac_exeext | ||
9935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9936 | (eval $ac_link) 2>&5 | ||
9937 | ac_status=$? | ||
9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9941 | (eval $ac_try) 2>&5 | ||
9942 | ac_status=$? | ||
9943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9944 | (exit $ac_status); }; }; then | ||
9945 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9946 | echo "${ECHO_T}yes" >&6 | ||
9947 | else | ||
9948 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9949 | echo "$as_me: failed program was:" >&5 | ||
9950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9951 | |||
9952 | ( exit $ac_status ) | ||
9953 | |||
9954 | echo "$as_me:$LINENO: result: no" >&5 | ||
9955 | echo "${ECHO_T}no" >&6 | ||
9956 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
9957 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
9958 | { (exit 1); exit 1; }; } | ||
9959 | |||
9960 | fi | ||
9961 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9962 | fi | ||
9963 | echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
9964 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
9965 | cat >conftest.$ac_ext <<_ACEOF | ||
9966 | /* confdefs.h. */ | ||
9967 | _ACEOF | ||
9968 | cat confdefs.h >>conftest.$ac_ext | ||
9969 | cat >>conftest.$ac_ext <<_ACEOF | ||
9970 | /* end confdefs.h. */ | ||
9971 | #include <stdio.h> | ||
9972 | #include <skey.h> | ||
9973 | int | ||
9974 | main () | ||
9975 | { | ||
9976 | (void)skeychallenge(NULL,"name","",0); | ||
9977 | ; | ||
9978 | return 0; | ||
9979 | } | ||
9980 | _ACEOF | ||
9981 | rm -f conftest.$ac_objext | ||
9982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9983 | (eval $ac_compile) 2>conftest.er1 | ||
9984 | ac_status=$? | ||
9985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9986 | rm -f conftest.er1 | ||
9987 | cat conftest.err >&5 | ||
9988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9989 | (exit $ac_status); } && | ||
9990 | { ac_try='test -z "$ac_c_werror_flag" | ||
9991 | || test ! -s conftest.err' | ||
9992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9993 | (eval $ac_try) 2>&5 | ||
9994 | ac_status=$? | ||
9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9996 | (exit $ac_status); }; } && | ||
9997 | { ac_try='test -s conftest.$ac_objext' | ||
9998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9999 | (eval $ac_try) 2>&5 | ||
10000 | ac_status=$? | ||
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10002 | (exit $ac_status); }; }; then | ||
10003 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10004 | echo "${ECHO_T}yes" >&6 | ||
10005 | cat >>confdefs.h <<\_ACEOF | ||
10006 | #define SKEYCHALLENGE_4ARG 1 | ||
10007 | _ACEOF | ||
10008 | |||
10009 | else | ||
10010 | echo "$as_me: failed program was:" >&5 | ||
10011 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10012 | |||
10013 | echo "$as_me:$LINENO: result: no" >&5 | ||
10014 | echo "${ECHO_T}no" >&6 | ||
10015 | |||
10016 | fi | ||
10017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10018 | fi | ||
10019 | |||
10020 | |||
10021 | fi; | ||
10022 | |||
10023 | # Check whether user wants TCP wrappers support | ||
10024 | TCPW_MSG="no" | ||
10025 | |||
10026 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
10027 | if test "${with_tcp_wrappers+set}" = set; then | ||
10028 | withval="$with_tcp_wrappers" | ||
10029 | |||
10030 | if test "x$withval" != "xno" ; then | ||
10031 | saved_LIBS="$LIBS" | ||
10032 | saved_LDFLAGS="$LDFLAGS" | ||
10033 | saved_CPPFLAGS="$CPPFLAGS" | ||
10034 | if test -n "${withval}" && \ | ||
10035 | test "x${withval}" != "xyes"; then | ||
10036 | if test -d "${withval}/lib"; then | ||
10037 | if test -n "${need_dash_r}"; then | ||
10038 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10039 | else | ||
10040 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10041 | fi | ||
10042 | else | ||
10043 | if test -n "${need_dash_r}"; then | ||
10044 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10045 | else | ||
10046 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10047 | fi | ||
10048 | fi | ||
10049 | if test -d "${withval}/include"; then | ||
10050 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10051 | else | ||
10052 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10053 | fi | ||
10054 | fi | ||
10055 | LIBWRAP="-lwrap" | ||
10056 | LIBS="$LIBWRAP $LIBS" | ||
10057 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
10058 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
10059 | cat >conftest.$ac_ext <<_ACEOF | ||
10060 | /* confdefs.h. */ | ||
10061 | _ACEOF | ||
10062 | cat confdefs.h >>conftest.$ac_ext | ||
10063 | cat >>conftest.$ac_ext <<_ACEOF | ||
10064 | /* end confdefs.h. */ | ||
10065 | |||
10066 | #include <sys/types.h> | ||
10067 | #include <sys/socket.h> | ||
10068 | #include <netinet/in.h> | ||
10069 | #include <tcpd.h> | ||
10070 | int deny_severity = 0, allow_severity = 0; | ||
10071 | |||
10072 | int | ||
10073 | main () | ||
10074 | { | ||
10075 | hosts_access(0); | ||
10076 | ; | ||
10077 | return 0; | ||
10078 | } | ||
10079 | _ACEOF | ||
10080 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10082 | (eval $ac_link) 2>conftest.er1 | ||
10083 | ac_status=$? | ||
10084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10085 | rm -f conftest.er1 | ||
10086 | cat conftest.err >&5 | ||
10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10088 | (exit $ac_status); } && | ||
10089 | { ac_try='test -z "$ac_c_werror_flag" | ||
10090 | || test ! -s conftest.err' | ||
10091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10092 | (eval $ac_try) 2>&5 | ||
10093 | ac_status=$? | ||
10094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10095 | (exit $ac_status); }; } && | ||
10096 | { ac_try='test -s conftest$ac_exeext' | ||
10097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10098 | (eval $ac_try) 2>&5 | ||
10099 | ac_status=$? | ||
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10101 | (exit $ac_status); }; }; then | ||
10102 | |||
10103 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10104 | echo "${ECHO_T}yes" >&6 | ||
10105 | cat >>confdefs.h <<\_ACEOF | ||
10106 | #define LIBWRAP 1 | ||
10107 | _ACEOF | ||
10108 | |||
10109 | |||
10110 | TCPW_MSG="yes" | ||
10111 | |||
10112 | else | ||
10113 | echo "$as_me: failed program was:" >&5 | ||
10114 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10115 | |||
10116 | |||
10117 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
10118 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
10119 | { (exit 1); exit 1; }; } | ||
10120 | |||
10121 | |||
10122 | fi | ||
10123 | rm -f conftest.err conftest.$ac_objext \ | ||
10124 | conftest$ac_exeext conftest.$ac_ext | ||
10125 | LIBS="$saved_LIBS" | ||
10126 | fi | ||
10127 | |||
10128 | |||
10129 | fi; | ||
10130 | |||
10131 | # Check whether user wants libedit support | ||
10132 | LIBEDIT_MSG="no" | ||
10133 | |||
10134 | # Check whether --with-libedit or --without-libedit was given. | ||
10135 | if test "${with_libedit+set}" = set; then | ||
10136 | withval="$with_libedit" | ||
10137 | if test "x$withval" != "xno" ; then | ||
10138 | if test "x$withval" != "xyes"; then | ||
10139 | CPPFLAGS="$CPPFLAGS -I$withval/include" | ||
10140 | LDFLAGS="$LDFLAGS -L$withval/lib" | ||
10141 | fi | ||
10142 | echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
10143 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6 | ||
10144 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
10145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10146 | else | ||
10147 | ac_check_lib_save_LIBS=$LIBS | ||
10148 | LIBS="-ledit -lcurses | ||
10149 | $LIBS" | ||
10150 | cat >conftest.$ac_ext <<_ACEOF | ||
10151 | /* confdefs.h. */ | ||
10152 | _ACEOF | ||
10153 | cat confdefs.h >>conftest.$ac_ext | ||
10154 | cat >>conftest.$ac_ext <<_ACEOF | ||
10155 | /* end confdefs.h. */ | ||
10156 | |||
10157 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10158 | #ifdef __cplusplus | ||
10159 | extern "C" | ||
10160 | #endif | ||
10161 | /* We use char because int might match the return type of a gcc2 | ||
10162 | builtin and then its argument prototype would still apply. */ | ||
10163 | char el_init (); | ||
10164 | int | ||
10165 | main () | ||
10166 | { | ||
10167 | el_init (); | ||
10168 | ; | ||
10169 | return 0; | ||
10170 | } | ||
10171 | _ACEOF | ||
10172 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10174 | (eval $ac_link) 2>conftest.er1 | ||
10175 | ac_status=$? | ||
10176 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10177 | rm -f conftest.er1 | ||
10178 | cat conftest.err >&5 | ||
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10180 | (exit $ac_status); } && | ||
10181 | { ac_try='test -z "$ac_c_werror_flag" | ||
10182 | || test ! -s conftest.err' | ||
10183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10184 | (eval $ac_try) 2>&5 | ||
10185 | ac_status=$? | ||
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10187 | (exit $ac_status); }; } && | ||
10188 | { ac_try='test -s conftest$ac_exeext' | ||
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10190 | (eval $ac_try) 2>&5 | ||
10191 | ac_status=$? | ||
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10193 | (exit $ac_status); }; }; then | ||
10194 | ac_cv_lib_edit_el_init=yes | ||
10195 | else | ||
10196 | echo "$as_me: failed program was:" >&5 | ||
10197 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10198 | |||
10199 | ac_cv_lib_edit_el_init=no | ||
10200 | fi | ||
10201 | rm -f conftest.err conftest.$ac_objext \ | ||
10202 | conftest$ac_exeext conftest.$ac_ext | ||
10203 | LIBS=$ac_check_lib_save_LIBS | ||
10204 | fi | ||
10205 | echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
10206 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6 | ||
10207 | if test $ac_cv_lib_edit_el_init = yes; then | ||
10208 | |||
10209 | cat >>confdefs.h <<\_ACEOF | ||
10210 | #define USE_LIBEDIT | ||
10211 | _ACEOF | ||
10212 | |||
10213 | LIBEDIT="-ledit -lcurses" | ||
10214 | LIBEDIT_MSG="yes" | ||
10215 | |||
10216 | |||
10217 | else | ||
10218 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
10219 | echo "$as_me: error: libedit not found" >&2;} | ||
10220 | { (exit 1); exit 1; }; } | ||
10221 | fi | ||
10222 | |||
10223 | echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
10224 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6 | ||
10225 | cat >conftest.$ac_ext <<_ACEOF | ||
10226 | /* confdefs.h. */ | ||
10227 | _ACEOF | ||
10228 | cat confdefs.h >>conftest.$ac_ext | ||
10229 | cat >>conftest.$ac_ext <<_ACEOF | ||
10230 | /* end confdefs.h. */ | ||
10231 | |||
10232 | #include <histedit.h> | ||
10233 | int main(void) | ||
10234 | { | ||
10235 | int i = H_SETSIZE; | ||
10236 | el_init("", NULL, NULL, NULL); | ||
10237 | exit(0); | ||
10238 | } | ||
10239 | |||
10240 | _ACEOF | ||
10241 | rm -f conftest.$ac_objext | ||
10242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10243 | (eval $ac_compile) 2>conftest.er1 | ||
10244 | ac_status=$? | ||
10245 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10246 | rm -f conftest.er1 | ||
10247 | cat conftest.err >&5 | ||
10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10249 | (exit $ac_status); } && | ||
10250 | { ac_try='test -z "$ac_c_werror_flag" | ||
10251 | || test ! -s conftest.err' | ||
10252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10253 | (eval $ac_try) 2>&5 | ||
10254 | ac_status=$? | ||
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10256 | (exit $ac_status); }; } && | ||
10257 | { ac_try='test -s conftest.$ac_objext' | ||
10258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10259 | (eval $ac_try) 2>&5 | ||
10260 | ac_status=$? | ||
10261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10262 | (exit $ac_status); }; }; then | ||
10263 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10264 | echo "${ECHO_T}yes" >&6 | ||
10265 | else | ||
10266 | echo "$as_me: failed program was:" >&5 | ||
10267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10268 | |||
10269 | echo "$as_me:$LINENO: result: no" >&5 | ||
10270 | echo "${ECHO_T}no" >&6 | ||
10271 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
10272 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
10273 | { (exit 1); exit 1; }; } | ||
10274 | |||
10275 | fi | ||
10276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10277 | fi | ||
10278 | |||
10279 | fi; | ||
10280 | |||
10281 | AUDIT_MODULE=none | ||
10282 | |||
10283 | # Check whether --with-audit or --without-audit was given. | ||
10284 | if test "${with_audit+set}" = set; then | ||
10285 | withval="$with_audit" | ||
10286 | |||
10287 | echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
10288 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6 | ||
10289 | case "$withval" in | ||
10290 | bsm) | ||
10291 | echo "$as_me:$LINENO: result: bsm" >&5 | ||
10292 | echo "${ECHO_T}bsm" >&6 | ||
10293 | AUDIT_MODULE=bsm | ||
10294 | |||
10295 | for ac_header in bsm/audit.h | ||
10296 | do | ||
10297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10303 | fi | ||
10304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10306 | else | ||
10307 | # Is the header compilable? | ||
10308 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10309 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
10310 | cat >conftest.$ac_ext <<_ACEOF | ||
10311 | /* confdefs.h. */ | ||
10312 | _ACEOF | ||
10313 | cat confdefs.h >>conftest.$ac_ext | ||
10314 | cat >>conftest.$ac_ext <<_ACEOF | ||
10315 | /* end confdefs.h. */ | ||
10316 | $ac_includes_default | ||
10317 | #include <$ac_header> | ||
10318 | _ACEOF | ||
10319 | rm -f conftest.$ac_objext | ||
10320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10321 | (eval $ac_compile) 2>conftest.er1 | ||
10322 | ac_status=$? | ||
10323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10324 | rm -f conftest.er1 | ||
10325 | cat conftest.err >&5 | ||
10326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10327 | (exit $ac_status); } && | ||
10328 | { ac_try='test -z "$ac_c_werror_flag" | ||
10329 | || test ! -s conftest.err' | ||
10330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10331 | (eval $ac_try) 2>&5 | ||
10332 | ac_status=$? | ||
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10334 | (exit $ac_status); }; } && | ||
10335 | { ac_try='test -s conftest.$ac_objext' | ||
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10337 | (eval $ac_try) 2>&5 | ||
10338 | ac_status=$? | ||
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10340 | (exit $ac_status); }; }; then | ||
10341 | ac_header_compiler=yes | ||
10342 | else | ||
10343 | echo "$as_me: failed program was:" >&5 | ||
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10345 | |||
10346 | ac_header_compiler=no | ||
10347 | fi | ||
10348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10349 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10350 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
10351 | |||
10352 | # Is the header present? | ||
10353 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10354 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
10355 | cat >conftest.$ac_ext <<_ACEOF | ||
10356 | /* confdefs.h. */ | ||
10357 | _ACEOF | ||
10358 | cat confdefs.h >>conftest.$ac_ext | ||
10359 | cat >>conftest.$ac_ext <<_ACEOF | ||
10360 | /* end confdefs.h. */ | ||
10361 | #include <$ac_header> | ||
10362 | _ACEOF | ||
10363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
10364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
10365 | ac_status=$? | ||
10366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10367 | rm -f conftest.er1 | ||
10368 | cat conftest.err >&5 | ||
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10370 | (exit $ac_status); } >/dev/null; then | ||
10371 | if test -s conftest.err; then | ||
10372 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
10373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
10374 | else | ||
10375 | ac_cpp_err= | ||
10376 | fi | ||
10377 | else | ||
10378 | ac_cpp_err=yes | ||
10379 | fi | ||
10380 | if test -z "$ac_cpp_err"; then | ||
10381 | ac_header_preproc=yes | ||
10382 | else | ||
10383 | echo "$as_me: failed program was:" >&5 | ||
10384 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10385 | |||
10386 | ac_header_preproc=no | ||
10387 | fi | ||
10388 | rm -f conftest.err conftest.$ac_ext | ||
10389 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10390 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
10391 | |||
10392 | # So? What about this header? | ||
10393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10394 | yes:no: ) | ||
10395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10399 | ac_header_preproc=yes | ||
10400 | ;; | ||
10401 | no:yes:* ) | ||
10402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10408 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10409 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10413 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10414 | ( | ||
10415 | cat <<\_ASBOX | ||
10416 | ## ------------------------------------------- ## | ||
10417 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10418 | ## ------------------------------------------- ## | ||
10419 | _ASBOX | ||
10420 | ) | | ||
10421 | sed "s/^/$as_me: WARNING: /" >&2 | ||
10422 | ;; | ||
10423 | esac | ||
10424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
10426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
10427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10428 | else | ||
10429 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10430 | fi | ||
10431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
10432 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
10433 | |||
10434 | fi | ||
10435 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10436 | cat >>confdefs.h <<_ACEOF | ||
10437 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10438 | _ACEOF | ||
10439 | |||
10440 | else | ||
10441 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
10442 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
10443 | { (exit 1); exit 1; }; } | ||
10444 | fi | ||
10445 | |||
10446 | done | ||
10447 | |||
10448 | |||
10449 | echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
10450 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6 | ||
10451 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10453 | else | ||
10454 | ac_check_lib_save_LIBS=$LIBS | ||
10455 | LIBS="-lbsm $LIBS" | ||
10456 | cat >conftest.$ac_ext <<_ACEOF | ||
10457 | /* confdefs.h. */ | ||
10458 | _ACEOF | ||
10459 | cat confdefs.h >>conftest.$ac_ext | ||
10460 | cat >>conftest.$ac_ext <<_ACEOF | ||
10461 | /* end confdefs.h. */ | ||
10462 | |||
10463 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10464 | #ifdef __cplusplus | ||
10465 | extern "C" | ||
10466 | #endif | ||
10467 | /* We use char because int might match the return type of a gcc2 | ||
10468 | builtin and then its argument prototype would still apply. */ | ||
10469 | char getaudit (); | ||
10470 | int | ||
10471 | main () | ||
10472 | { | ||
10473 | getaudit (); | ||
10474 | ; | ||
10475 | return 0; | ||
10476 | } | ||
10477 | _ACEOF | ||
10478 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10480 | (eval $ac_link) 2>conftest.er1 | ||
10481 | ac_status=$? | ||
10482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10483 | rm -f conftest.er1 | ||
10484 | cat conftest.err >&5 | ||
10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10486 | (exit $ac_status); } && | ||
10487 | { ac_try='test -z "$ac_c_werror_flag" | ||
10488 | || test ! -s conftest.err' | ||
10489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10490 | (eval $ac_try) 2>&5 | ||
10491 | ac_status=$? | ||
10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10493 | (exit $ac_status); }; } && | ||
10494 | { ac_try='test -s conftest$ac_exeext' | ||
10495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10496 | (eval $ac_try) 2>&5 | ||
10497 | ac_status=$? | ||
10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10499 | (exit $ac_status); }; }; then | ||
10500 | ac_cv_lib_bsm_getaudit=yes | ||
10501 | else | ||
10502 | echo "$as_me: failed program was:" >&5 | ||
10503 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10504 | |||
10505 | ac_cv_lib_bsm_getaudit=no | ||
10506 | fi | ||
10507 | rm -f conftest.err conftest.$ac_objext \ | ||
10508 | conftest$ac_exeext conftest.$ac_ext | ||
10509 | LIBS=$ac_check_lib_save_LIBS | ||
10510 | fi | ||
10511 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10512 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6 | ||
10513 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
10514 | cat >>confdefs.h <<_ACEOF | ||
10515 | #define HAVE_LIBBSM 1 | ||
10516 | _ACEOF | ||
10517 | |||
10518 | LIBS="-lbsm $LIBS" | ||
10519 | |||
10520 | else | ||
10521 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
10522 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
10523 | { (exit 1); exit 1; }; } | ||
10524 | fi | ||
10525 | |||
10526 | |||
10527 | for ac_func in getaudit | ||
10528 | do | ||
10529 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10530 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10531 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10532 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10534 | else | ||
10535 | cat >conftest.$ac_ext <<_ACEOF | ||
10536 | /* confdefs.h. */ | ||
10537 | _ACEOF | ||
10538 | cat confdefs.h >>conftest.$ac_ext | ||
10539 | cat >>conftest.$ac_ext <<_ACEOF | ||
10540 | /* end confdefs.h. */ | ||
10541 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10543 | #define $ac_func innocuous_$ac_func | ||
10544 | |||
10545 | /* System header to define __stub macros and hopefully few prototypes, | ||
10546 | which can conflict with char $ac_func (); below. | ||
10547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10548 | <limits.h> exists even on freestanding compilers. */ | ||
10549 | |||
10550 | #ifdef __STDC__ | ||
10551 | # include <limits.h> | ||
10552 | #else | ||
10553 | # include <assert.h> | ||
10554 | #endif | ||
10555 | |||
10556 | #undef $ac_func | ||
10557 | |||
10558 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10559 | #ifdef __cplusplus | ||
10560 | extern "C" | ||
10561 | { | ||
10562 | #endif | ||
10563 | /* We use char because int might match the return type of a gcc2 | ||
10564 | builtin and then its argument prototype would still apply. */ | ||
10565 | char $ac_func (); | ||
10566 | /* The GNU C library defines this for functions which it implements | ||
10567 | to always fail with ENOSYS. Some functions are actually named | ||
10568 | something starting with __ and the normal name is an alias. */ | ||
10569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10570 | choke me | ||
10571 | #else | ||
10572 | char (*f) () = $ac_func; | ||
10573 | #endif | ||
10574 | #ifdef __cplusplus | ||
10575 | } | ||
10576 | #endif | ||
10577 | |||
10578 | int | ||
10579 | main () | ||
10580 | { | ||
10581 | return f != $ac_func; | ||
10582 | ; | ||
10583 | return 0; | ||
10584 | } | ||
10585 | _ACEOF | ||
10586 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10588 | (eval $ac_link) 2>conftest.er1 | ||
10589 | ac_status=$? | ||
10590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10591 | rm -f conftest.er1 | ||
10592 | cat conftest.err >&5 | ||
10593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10594 | (exit $ac_status); } && | ||
10595 | { ac_try='test -z "$ac_c_werror_flag" | ||
10596 | || test ! -s conftest.err' | ||
10597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10598 | (eval $ac_try) 2>&5 | ||
10599 | ac_status=$? | ||
10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10601 | (exit $ac_status); }; } && | ||
10602 | { ac_try='test -s conftest$ac_exeext' | ||
10603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10604 | (eval $ac_try) 2>&5 | ||
10605 | ac_status=$? | ||
10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10607 | (exit $ac_status); }; }; then | ||
10608 | eval "$as_ac_var=yes" | ||
10609 | else | ||
10610 | echo "$as_me: failed program was:" >&5 | ||
10611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10612 | |||
10613 | eval "$as_ac_var=no" | ||
10614 | fi | ||
10615 | rm -f conftest.err conftest.$ac_objext \ | ||
10616 | conftest$ac_exeext conftest.$ac_ext | ||
10617 | fi | ||
10618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10620 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10621 | cat >>confdefs.h <<_ACEOF | ||
10622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10623 | _ACEOF | ||
10624 | |||
10625 | else | ||
10626 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
10627 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
10628 | { (exit 1); exit 1; }; } | ||
10629 | fi | ||
10630 | done | ||
10631 | |||
10632 | # These are optional | ||
10633 | |||
10634 | for ac_func in getaudit_addr | ||
10635 | do | ||
10636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10641 | else | ||
10642 | cat >conftest.$ac_ext <<_ACEOF | ||
10643 | /* confdefs.h. */ | ||
10644 | _ACEOF | ||
10645 | cat confdefs.h >>conftest.$ac_ext | ||
10646 | cat >>conftest.$ac_ext <<_ACEOF | ||
10647 | /* end confdefs.h. */ | ||
10648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10650 | #define $ac_func innocuous_$ac_func | ||
10651 | |||
10652 | /* System header to define __stub macros and hopefully few prototypes, | ||
10653 | which can conflict with char $ac_func (); below. | ||
10654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10655 | <limits.h> exists even on freestanding compilers. */ | ||
10656 | |||
10657 | #ifdef __STDC__ | ||
10658 | # include <limits.h> | ||
10659 | #else | ||
10660 | # include <assert.h> | ||
10661 | #endif | ||
10662 | |||
10663 | #undef $ac_func | ||
10664 | |||
10665 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10666 | #ifdef __cplusplus | ||
10667 | extern "C" | ||
10668 | { | ||
10669 | #endif | ||
10670 | /* We use char because int might match the return type of a gcc2 | ||
10671 | builtin and then its argument prototype would still apply. */ | ||
10672 | char $ac_func (); | ||
10673 | /* The GNU C library defines this for functions which it implements | ||
10674 | to always fail with ENOSYS. Some functions are actually named | ||
10675 | something starting with __ and the normal name is an alias. */ | ||
10676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10677 | choke me | ||
10678 | #else | ||
10679 | char (*f) () = $ac_func; | ||
10680 | #endif | ||
10681 | #ifdef __cplusplus | ||
10682 | } | ||
10683 | #endif | ||
10684 | |||
10685 | int | ||
10686 | main () | ||
10687 | { | ||
10688 | return f != $ac_func; | ||
10689 | ; | ||
10690 | return 0; | ||
10691 | } | ||
10692 | _ACEOF | ||
10693 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10695 | (eval $ac_link) 2>conftest.er1 | ||
10696 | ac_status=$? | ||
10697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10698 | rm -f conftest.er1 | ||
10699 | cat conftest.err >&5 | ||
10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10701 | (exit $ac_status); } && | ||
10702 | { ac_try='test -z "$ac_c_werror_flag" | ||
10703 | || test ! -s conftest.err' | ||
10704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10705 | (eval $ac_try) 2>&5 | ||
10706 | ac_status=$? | ||
10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10708 | (exit $ac_status); }; } && | ||
10709 | { ac_try='test -s conftest$ac_exeext' | ||
10710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10711 | (eval $ac_try) 2>&5 | ||
10712 | ac_status=$? | ||
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10714 | (exit $ac_status); }; }; then | ||
10715 | eval "$as_ac_var=yes" | ||
10716 | else | ||
10717 | echo "$as_me: failed program was:" >&5 | ||
10718 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10719 | |||
10720 | eval "$as_ac_var=no" | ||
10721 | fi | ||
10722 | rm -f conftest.err conftest.$ac_objext \ | ||
10723 | conftest$ac_exeext conftest.$ac_ext | ||
10724 | fi | ||
10725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10726 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10727 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10728 | cat >>confdefs.h <<_ACEOF | ||
10729 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10730 | _ACEOF | ||
10731 | |||
10732 | fi | ||
10733 | done | ||
10734 | |||
10735 | |||
10736 | cat >>confdefs.h <<\_ACEOF | ||
10737 | #define USE_BSM_AUDIT | ||
10738 | _ACEOF | ||
10739 | |||
10740 | ;; | ||
10741 | debug) | ||
10742 | AUDIT_MODULE=debug | ||
10743 | echo "$as_me:$LINENO: result: debug" >&5 | ||
10744 | echo "${ECHO_T}debug" >&6 | ||
10745 | |||
10746 | cat >>confdefs.h <<\_ACEOF | ||
10747 | #define SSH_AUDIT_EVENTS | ||
10748 | _ACEOF | ||
10749 | |||
10750 | ;; | ||
10751 | no) | ||
10752 | echo "$as_me:$LINENO: result: no" >&5 | ||
10753 | echo "${ECHO_T}no" >&6 | ||
10754 | ;; | ||
10755 | *) | ||
10756 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
10757 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
10758 | { (exit 1); exit 1; }; } | ||
10759 | ;; | ||
10760 | esac | ||
10761 | |||
10762 | fi; | ||
10763 | |||
10764 | |||
10765 | |||
10766 | |||
10767 | |||
10768 | |||
10769 | |||
10770 | |||
10771 | |||
10772 | |||
10773 | |||
10774 | |||
10775 | |||
10776 | |||
10777 | |||
10778 | |||
10779 | |||
10780 | |||
10781 | |||
10782 | |||
10783 | |||
10784 | |||
10785 | |||
10786 | |||
10787 | |||
10788 | |||
10789 | |||
10790 | |||
10791 | |||
10792 | |||
10793 | |||
10794 | |||
10795 | |||
10796 | |||
10797 | |||
10798 | |||
10799 | |||
10800 | |||
10801 | |||
10802 | |||
10803 | |||
10804 | |||
10805 | |||
10806 | |||
10807 | |||
10808 | |||
10809 | |||
10810 | |||
10811 | |||
10812 | |||
10813 | |||
10814 | |||
10815 | |||
10816 | |||
10817 | |||
10818 | |||
10819 | |||
10820 | |||
10821 | |||
10822 | |||
10823 | |||
10824 | |||
10825 | |||
10826 | |||
10827 | |||
10828 | |||
10829 | |||
10830 | |||
10831 | |||
10832 | |||
10833 | |||
10834 | |||
10835 | |||
10836 | |||
10837 | |||
10838 | |||
10839 | |||
10840 | |||
10841 | |||
10842 | |||
10843 | |||
10844 | for ac_func in \ | ||
10845 | arc4random \ | ||
10846 | b64_ntop \ | ||
10847 | __b64_ntop \ | ||
10848 | b64_pton \ | ||
10849 | __b64_pton \ | ||
10850 | bcopy \ | ||
10851 | bindresvport_sa \ | ||
10852 | clock \ | ||
10853 | closefrom \ | ||
10854 | dirfd \ | ||
10855 | fchmod \ | ||
10856 | fchown \ | ||
10857 | freeaddrinfo \ | ||
10858 | futimes \ | ||
10859 | getaddrinfo \ | ||
10860 | getcwd \ | ||
10861 | getgrouplist \ | ||
10862 | getnameinfo \ | ||
10863 | getopt \ | ||
10864 | getpeereid \ | ||
10865 | _getpty \ | ||
10866 | getrlimit \ | ||
10867 | getttyent \ | ||
10868 | glob \ | ||
10869 | inet_aton \ | ||
10870 | inet_ntoa \ | ||
10871 | inet_ntop \ | ||
10872 | innetgr \ | ||
10873 | login_getcapbool \ | ||
10874 | md5_crypt \ | ||
10875 | memmove \ | ||
10876 | mkdtemp \ | ||
10877 | mmap \ | ||
10878 | ngetaddrinfo \ | ||
10879 | nsleep \ | ||
10880 | ogetaddrinfo \ | ||
10881 | openlog_r \ | ||
10882 | openpty \ | ||
10883 | prctl \ | ||
10884 | pstat \ | ||
10885 | readpassphrase \ | ||
10886 | realpath \ | ||
10887 | recvmsg \ | ||
10888 | rresvport_af \ | ||
10889 | sendmsg \ | ||
10890 | setdtablesize \ | ||
10891 | setegid \ | ||
10892 | setenv \ | ||
10893 | seteuid \ | ||
10894 | setgroups \ | ||
10895 | setlogin \ | ||
10896 | setpcred \ | ||
10897 | setproctitle \ | ||
10898 | setregid \ | ||
10899 | setreuid \ | ||
10900 | setrlimit \ | ||
10901 | setsid \ | ||
10902 | setvbuf \ | ||
10903 | sigaction \ | ||
10904 | sigvec \ | ||
10905 | snprintf \ | ||
10906 | socketpair \ | ||
10907 | strdup \ | ||
10908 | strerror \ | ||
10909 | strlcat \ | ||
10910 | strlcpy \ | ||
10911 | strmode \ | ||
10912 | strnvis \ | ||
10913 | strtonum \ | ||
10914 | strtoll \ | ||
10915 | strtoul \ | ||
10916 | sysconf \ | ||
10917 | tcgetpgrp \ | ||
10918 | truncate \ | ||
10919 | unsetenv \ | ||
10920 | updwtmpx \ | ||
10921 | utimes \ | ||
10922 | vhangup \ | ||
10923 | vsnprintf \ | ||
10924 | waitpid \ | ||
10925 | |||
10926 | do | ||
10927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10930 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10932 | else | ||
10933 | cat >conftest.$ac_ext <<_ACEOF | ||
10934 | /* confdefs.h. */ | ||
10935 | _ACEOF | ||
10936 | cat confdefs.h >>conftest.$ac_ext | ||
10937 | cat >>conftest.$ac_ext <<_ACEOF | ||
10938 | /* end confdefs.h. */ | ||
10939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10941 | #define $ac_func innocuous_$ac_func | ||
10942 | |||
10943 | /* System header to define __stub macros and hopefully few prototypes, | ||
10944 | which can conflict with char $ac_func (); below. | ||
10945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10946 | <limits.h> exists even on freestanding compilers. */ | ||
10947 | |||
10948 | #ifdef __STDC__ | ||
10949 | # include <limits.h> | ||
10950 | #else | ||
10951 | # include <assert.h> | ||
10952 | #endif | ||
10953 | |||
10954 | #undef $ac_func | ||
10955 | |||
10956 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10957 | #ifdef __cplusplus | ||
10958 | extern "C" | ||
10959 | { | ||
10960 | #endif | ||
10961 | /* We use char because int might match the return type of a gcc2 | ||
10962 | builtin and then its argument prototype would still apply. */ | ||
10963 | char $ac_func (); | ||
10964 | /* The GNU C library defines this for functions which it implements | ||
10965 | to always fail with ENOSYS. Some functions are actually named | ||
10966 | something starting with __ and the normal name is an alias. */ | ||
10967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10968 | choke me | ||
10969 | #else | ||
10970 | char (*f) () = $ac_func; | ||
10971 | #endif | ||
10972 | #ifdef __cplusplus | ||
10973 | } | ||
10974 | #endif | ||
10975 | |||
10976 | int | ||
10977 | main () | ||
10978 | { | ||
10979 | return f != $ac_func; | ||
10980 | ; | ||
10981 | return 0; | ||
10982 | } | ||
10983 | _ACEOF | ||
10984 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10986 | (eval $ac_link) 2>conftest.er1 | ||
10987 | ac_status=$? | ||
10988 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10989 | rm -f conftest.er1 | ||
10990 | cat conftest.err >&5 | ||
10991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10992 | (exit $ac_status); } && | ||
10993 | { ac_try='test -z "$ac_c_werror_flag" | ||
10994 | || test ! -s conftest.err' | ||
10995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10996 | (eval $ac_try) 2>&5 | ||
10997 | ac_status=$? | ||
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10999 | (exit $ac_status); }; } && | ||
11000 | { ac_try='test -s conftest$ac_exeext' | ||
11001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11002 | (eval $ac_try) 2>&5 | ||
11003 | ac_status=$? | ||
11004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11005 | (exit $ac_status); }; }; then | ||
11006 | eval "$as_ac_var=yes" | ||
11007 | else | ||
11008 | echo "$as_me: failed program was:" >&5 | ||
11009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11010 | |||
11011 | eval "$as_ac_var=no" | ||
11012 | fi | ||
11013 | rm -f conftest.err conftest.$ac_objext \ | ||
11014 | conftest$ac_exeext conftest.$ac_ext | ||
11015 | fi | ||
11016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11017 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11018 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11019 | cat >>confdefs.h <<_ACEOF | ||
11020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11021 | _ACEOF | ||
11022 | |||
11023 | fi | ||
11024 | done | ||
11025 | |||
11026 | |||
11027 | # IRIX has a const char return value for gai_strerror() | ||
11028 | |||
11029 | for ac_func in gai_strerror | ||
11030 | do | ||
11031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11032 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11034 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11036 | else | ||
11037 | cat >conftest.$ac_ext <<_ACEOF | ||
11038 | /* confdefs.h. */ | ||
11039 | _ACEOF | ||
11040 | cat confdefs.h >>conftest.$ac_ext | ||
11041 | cat >>conftest.$ac_ext <<_ACEOF | ||
11042 | /* end confdefs.h. */ | ||
11043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11045 | #define $ac_func innocuous_$ac_func | ||
11046 | |||
11047 | /* System header to define __stub macros and hopefully few prototypes, | ||
11048 | which can conflict with char $ac_func (); below. | ||
11049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11050 | <limits.h> exists even on freestanding compilers. */ | ||
11051 | |||
11052 | #ifdef __STDC__ | ||
11053 | # include <limits.h> | ||
11054 | #else | ||
11055 | # include <assert.h> | ||
11056 | #endif | ||
11057 | |||
11058 | #undef $ac_func | ||
11059 | |||
11060 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11061 | #ifdef __cplusplus | ||
11062 | extern "C" | ||
11063 | { | ||
11064 | #endif | ||
11065 | /* We use char because int might match the return type of a gcc2 | ||
11066 | builtin and then its argument prototype would still apply. */ | ||
11067 | char $ac_func (); | ||
11068 | /* The GNU C library defines this for functions which it implements | ||
11069 | to always fail with ENOSYS. Some functions are actually named | ||
11070 | something starting with __ and the normal name is an alias. */ | ||
11071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11072 | choke me | ||
11073 | #else | ||
11074 | char (*f) () = $ac_func; | ||
11075 | #endif | ||
11076 | #ifdef __cplusplus | ||
11077 | } | ||
11078 | #endif | ||
11079 | |||
11080 | int | ||
11081 | main () | ||
11082 | { | ||
11083 | return f != $ac_func; | ||
11084 | ; | ||
11085 | return 0; | ||
11086 | } | ||
11087 | _ACEOF | ||
11088 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11090 | (eval $ac_link) 2>conftest.er1 | ||
11091 | ac_status=$? | ||
11092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11093 | rm -f conftest.er1 | ||
11094 | cat conftest.err >&5 | ||
11095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11096 | (exit $ac_status); } && | ||
11097 | { ac_try='test -z "$ac_c_werror_flag" | ||
11098 | || test ! -s conftest.err' | ||
11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11100 | (eval $ac_try) 2>&5 | ||
11101 | ac_status=$? | ||
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11103 | (exit $ac_status); }; } && | ||
11104 | { ac_try='test -s conftest$ac_exeext' | ||
11105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11106 | (eval $ac_try) 2>&5 | ||
11107 | ac_status=$? | ||
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11109 | (exit $ac_status); }; }; then | ||
11110 | eval "$as_ac_var=yes" | ||
11111 | else | ||
11112 | echo "$as_me: failed program was:" >&5 | ||
11113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11114 | |||
11115 | eval "$as_ac_var=no" | ||
11116 | fi | ||
11117 | rm -f conftest.err conftest.$ac_objext \ | ||
11118 | conftest$ac_exeext conftest.$ac_ext | ||
11119 | fi | ||
11120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11121 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11122 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11123 | cat >>confdefs.h <<_ACEOF | ||
11124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11125 | _ACEOF | ||
11126 | |||
11127 | cat >>confdefs.h <<\_ACEOF | ||
11128 | #define HAVE_GAI_STRERROR 1 | ||
11129 | _ACEOF | ||
11130 | |||
11131 | cat >conftest.$ac_ext <<_ACEOF | ||
11132 | /* confdefs.h. */ | ||
11133 | _ACEOF | ||
11134 | cat confdefs.h >>conftest.$ac_ext | ||
11135 | cat >>conftest.$ac_ext <<_ACEOF | ||
11136 | /* end confdefs.h. */ | ||
11137 | |||
11138 | #include <sys/types.h> | ||
11139 | #include <sys/socket.h> | ||
11140 | #include <netdb.h> | ||
11141 | |||
11142 | const char *gai_strerror(int); | ||
11143 | int | ||
11144 | main () | ||
11145 | { | ||
11146 | |||
11147 | char *str; | ||
11148 | |||
11149 | str = gai_strerror(0); | ||
11150 | ; | ||
11151 | return 0; | ||
11152 | } | ||
11153 | _ACEOF | ||
11154 | rm -f conftest.$ac_objext | ||
11155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11156 | (eval $ac_compile) 2>conftest.er1 | ||
11157 | ac_status=$? | ||
11158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11159 | rm -f conftest.er1 | ||
11160 | cat conftest.err >&5 | ||
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11162 | (exit $ac_status); } && | ||
11163 | { ac_try='test -z "$ac_c_werror_flag" | ||
11164 | || test ! -s conftest.err' | ||
11165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11166 | (eval $ac_try) 2>&5 | ||
11167 | ac_status=$? | ||
11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11169 | (exit $ac_status); }; } && | ||
11170 | { ac_try='test -s conftest.$ac_objext' | ||
11171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11172 | (eval $ac_try) 2>&5 | ||
11173 | ac_status=$? | ||
11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11175 | (exit $ac_status); }; }; then | ||
11176 | |||
11177 | |||
11178 | cat >>confdefs.h <<\_ACEOF | ||
11179 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
11180 | _ACEOF | ||
11181 | |||
11182 | else | ||
11183 | echo "$as_me: failed program was:" >&5 | ||
11184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11185 | |||
11186 | fi | ||
11187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11188 | fi | ||
11189 | done | ||
11190 | |||
11191 | |||
11192 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
11193 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
11194 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
11195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11196 | else | ||
11197 | ac_func_search_save_LIBS=$LIBS | ||
11198 | ac_cv_search_nanosleep=no | ||
11199 | cat >conftest.$ac_ext <<_ACEOF | ||
11200 | /* confdefs.h. */ | ||
11201 | _ACEOF | ||
11202 | cat confdefs.h >>conftest.$ac_ext | ||
11203 | cat >>conftest.$ac_ext <<_ACEOF | ||
11204 | /* end confdefs.h. */ | ||
11205 | |||
11206 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11207 | #ifdef __cplusplus | ||
11208 | extern "C" | ||
11209 | #endif | ||
11210 | /* We use char because int might match the return type of a gcc2 | ||
11211 | builtin and then its argument prototype would still apply. */ | ||
11212 | char nanosleep (); | ||
11213 | int | ||
11214 | main () | ||
11215 | { | ||
11216 | nanosleep (); | ||
11217 | ; | ||
11218 | return 0; | ||
11219 | } | ||
11220 | _ACEOF | ||
11221 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11223 | (eval $ac_link) 2>conftest.er1 | ||
11224 | ac_status=$? | ||
11225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11226 | rm -f conftest.er1 | ||
11227 | cat conftest.err >&5 | ||
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11229 | (exit $ac_status); } && | ||
11230 | { ac_try='test -z "$ac_c_werror_flag" | ||
11231 | || test ! -s conftest.err' | ||
11232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11233 | (eval $ac_try) 2>&5 | ||
11234 | ac_status=$? | ||
11235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11236 | (exit $ac_status); }; } && | ||
11237 | { ac_try='test -s conftest$ac_exeext' | ||
11238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11239 | (eval $ac_try) 2>&5 | ||
11240 | ac_status=$? | ||
11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11242 | (exit $ac_status); }; }; then | ||
11243 | ac_cv_search_nanosleep="none required" | ||
11244 | else | ||
11245 | echo "$as_me: failed program was:" >&5 | ||
11246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11247 | |||
11248 | fi | ||
11249 | rm -f conftest.err conftest.$ac_objext \ | ||
11250 | conftest$ac_exeext conftest.$ac_ext | ||
11251 | if test "$ac_cv_search_nanosleep" = no; then | ||
11252 | for ac_lib in rt posix4; do | ||
11253 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11254 | cat >conftest.$ac_ext <<_ACEOF | ||
11255 | /* confdefs.h. */ | ||
11256 | _ACEOF | ||
11257 | cat confdefs.h >>conftest.$ac_ext | ||
11258 | cat >>conftest.$ac_ext <<_ACEOF | ||
11259 | /* end confdefs.h. */ | ||
11260 | |||
11261 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11262 | #ifdef __cplusplus | ||
11263 | extern "C" | ||
11264 | #endif | ||
11265 | /* We use char because int might match the return type of a gcc2 | ||
11266 | builtin and then its argument prototype would still apply. */ | ||
11267 | char nanosleep (); | ||
11268 | int | ||
11269 | main () | ||
11270 | { | ||
11271 | nanosleep (); | ||
11272 | ; | ||
11273 | return 0; | ||
11274 | } | ||
11275 | _ACEOF | ||
11276 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11278 | (eval $ac_link) 2>conftest.er1 | ||
11279 | ac_status=$? | ||
11280 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11281 | rm -f conftest.er1 | ||
11282 | cat conftest.err >&5 | ||
11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11284 | (exit $ac_status); } && | ||
11285 | { ac_try='test -z "$ac_c_werror_flag" | ||
11286 | || test ! -s conftest.err' | ||
11287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11288 | (eval $ac_try) 2>&5 | ||
11289 | ac_status=$? | ||
11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11291 | (exit $ac_status); }; } && | ||
11292 | { ac_try='test -s conftest$ac_exeext' | ||
11293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11294 | (eval $ac_try) 2>&5 | ||
11295 | ac_status=$? | ||
11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11297 | (exit $ac_status); }; }; then | ||
11298 | ac_cv_search_nanosleep="-l$ac_lib" | ||
11299 | break | ||
11300 | else | ||
11301 | echo "$as_me: failed program was:" >&5 | ||
11302 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11303 | |||
11304 | fi | ||
11305 | rm -f conftest.err conftest.$ac_objext \ | ||
11306 | conftest$ac_exeext conftest.$ac_ext | ||
11307 | done | ||
11308 | fi | ||
11309 | LIBS=$ac_func_search_save_LIBS | ||
11310 | fi | ||
11311 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
11312 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
11313 | if test "$ac_cv_search_nanosleep" != no; then | ||
11314 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
11315 | cat >>confdefs.h <<\_ACEOF | ||
11316 | #define HAVE_NANOSLEEP 1 | ||
11317 | _ACEOF | ||
11318 | |||
11319 | fi | ||
11320 | |||
11321 | |||
11322 | echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
11323 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
11324 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11326 | else | ||
11327 | cat >conftest.$ac_ext <<_ACEOF | ||
11328 | /* confdefs.h. */ | ||
11329 | _ACEOF | ||
11330 | cat confdefs.h >>conftest.$ac_ext | ||
11331 | cat >>conftest.$ac_ext <<_ACEOF | ||
11332 | /* end confdefs.h. */ | ||
11333 | $ac_includes_default | ||
11334 | int | ||
11335 | main () | ||
11336 | { | ||
11337 | #ifndef getrusage | ||
11338 | char *p = (char *) getrusage; | ||
11339 | #endif | ||
11340 | |||
11341 | ; | ||
11342 | return 0; | ||
11343 | } | ||
11344 | _ACEOF | ||
11345 | rm -f conftest.$ac_objext | ||
11346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11347 | (eval $ac_compile) 2>conftest.er1 | ||
11348 | ac_status=$? | ||
11349 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11350 | rm -f conftest.er1 | ||
11351 | cat conftest.err >&5 | ||
11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11353 | (exit $ac_status); } && | ||
11354 | { ac_try='test -z "$ac_c_werror_flag" | ||
11355 | || test ! -s conftest.err' | ||
11356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11357 | (eval $ac_try) 2>&5 | ||
11358 | ac_status=$? | ||
11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11360 | (exit $ac_status); }; } && | ||
11361 | { ac_try='test -s conftest.$ac_objext' | ||
11362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11363 | (eval $ac_try) 2>&5 | ||
11364 | ac_status=$? | ||
11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11366 | (exit $ac_status); }; }; then | ||
11367 | ac_cv_have_decl_getrusage=yes | ||
11368 | else | ||
11369 | echo "$as_me: failed program was:" >&5 | ||
11370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11371 | |||
11372 | ac_cv_have_decl_getrusage=no | ||
11373 | fi | ||
11374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11375 | fi | ||
11376 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
11377 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
11378 | if test $ac_cv_have_decl_getrusage = yes; then | ||
11379 | |||
11380 | for ac_func in getrusage | ||
11381 | do | ||
11382 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11383 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11384 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11385 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11387 | else | ||
11388 | cat >conftest.$ac_ext <<_ACEOF | ||
11389 | /* confdefs.h. */ | ||
11390 | _ACEOF | ||
11391 | cat confdefs.h >>conftest.$ac_ext | ||
11392 | cat >>conftest.$ac_ext <<_ACEOF | ||
11393 | /* end confdefs.h. */ | ||
11394 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11395 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11396 | #define $ac_func innocuous_$ac_func | ||
11397 | |||
11398 | /* System header to define __stub macros and hopefully few prototypes, | ||
11399 | which can conflict with char $ac_func (); below. | ||
11400 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11401 | <limits.h> exists even on freestanding compilers. */ | ||
11402 | |||
11403 | #ifdef __STDC__ | ||
11404 | # include <limits.h> | ||
11405 | #else | ||
11406 | # include <assert.h> | ||
11407 | #endif | ||
11408 | |||
11409 | #undef $ac_func | ||
11410 | |||
11411 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11412 | #ifdef __cplusplus | ||
11413 | extern "C" | ||
11414 | { | ||
11415 | #endif | ||
11416 | /* We use char because int might match the return type of a gcc2 | ||
11417 | builtin and then its argument prototype would still apply. */ | ||
11418 | char $ac_func (); | ||
11419 | /* The GNU C library defines this for functions which it implements | ||
11420 | to always fail with ENOSYS. Some functions are actually named | ||
11421 | something starting with __ and the normal name is an alias. */ | ||
11422 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11423 | choke me | ||
11424 | #else | ||
11425 | char (*f) () = $ac_func; | ||
11426 | #endif | ||
11427 | #ifdef __cplusplus | ||
11428 | } | ||
11429 | #endif | ||
11430 | |||
11431 | int | ||
11432 | main () | ||
11433 | { | ||
11434 | return f != $ac_func; | ||
11435 | ; | ||
11436 | return 0; | ||
11437 | } | ||
11438 | _ACEOF | ||
11439 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11441 | (eval $ac_link) 2>conftest.er1 | ||
11442 | ac_status=$? | ||
11443 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11444 | rm -f conftest.er1 | ||
11445 | cat conftest.err >&5 | ||
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11447 | (exit $ac_status); } && | ||
11448 | { ac_try='test -z "$ac_c_werror_flag" | ||
11449 | || test ! -s conftest.err' | ||
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11451 | (eval $ac_try) 2>&5 | ||
11452 | ac_status=$? | ||
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11454 | (exit $ac_status); }; } && | ||
11455 | { ac_try='test -s conftest$ac_exeext' | ||
11456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11457 | (eval $ac_try) 2>&5 | ||
11458 | ac_status=$? | ||
11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11460 | (exit $ac_status); }; }; then | ||
11461 | eval "$as_ac_var=yes" | ||
11462 | else | ||
11463 | echo "$as_me: failed program was:" >&5 | ||
11464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11465 | |||
11466 | eval "$as_ac_var=no" | ||
11467 | fi | ||
11468 | rm -f conftest.err conftest.$ac_objext \ | ||
11469 | conftest$ac_exeext conftest.$ac_ext | ||
11470 | fi | ||
11471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11472 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11473 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11474 | cat >>confdefs.h <<_ACEOF | ||
11475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11476 | _ACEOF | ||
11477 | |||
11478 | fi | ||
11479 | done | ||
11480 | |||
11481 | fi | ||
11482 | |||
11483 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
11484 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
11485 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
11486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11487 | else | ||
11488 | cat >conftest.$ac_ext <<_ACEOF | ||
11489 | /* confdefs.h. */ | ||
11490 | _ACEOF | ||
11491 | cat confdefs.h >>conftest.$ac_ext | ||
11492 | cat >>conftest.$ac_ext <<_ACEOF | ||
11493 | /* end confdefs.h. */ | ||
11494 | |||
11495 | #ifdef HAVE_STRING_H | ||
11496 | # include <string.h> | ||
11497 | #endif | ||
11498 | |||
11499 | |||
11500 | int | ||
11501 | main () | ||
11502 | { | ||
11503 | #ifndef strsep | ||
11504 | char *p = (char *) strsep; | ||
11505 | #endif | ||
11506 | |||
11507 | ; | ||
11508 | return 0; | ||
11509 | } | ||
11510 | _ACEOF | ||
11511 | rm -f conftest.$ac_objext | ||
11512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11513 | (eval $ac_compile) 2>conftest.er1 | ||
11514 | ac_status=$? | ||
11515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11516 | rm -f conftest.er1 | ||
11517 | cat conftest.err >&5 | ||
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11519 | (exit $ac_status); } && | ||
11520 | { ac_try='test -z "$ac_c_werror_flag" | ||
11521 | || test ! -s conftest.err' | ||
11522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11523 | (eval $ac_try) 2>&5 | ||
11524 | ac_status=$? | ||
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11526 | (exit $ac_status); }; } && | ||
11527 | { ac_try='test -s conftest.$ac_objext' | ||
11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11529 | (eval $ac_try) 2>&5 | ||
11530 | ac_status=$? | ||
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11532 | (exit $ac_status); }; }; then | ||
11533 | ac_cv_have_decl_strsep=yes | ||
11534 | else | ||
11535 | echo "$as_me: failed program was:" >&5 | ||
11536 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11537 | |||
11538 | ac_cv_have_decl_strsep=no | ||
11539 | fi | ||
11540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11541 | fi | ||
11542 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
11543 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
11544 | if test $ac_cv_have_decl_strsep = yes; then | ||
11545 | |||
11546 | for ac_func in strsep | ||
11547 | do | ||
11548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11551 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11553 | else | ||
11554 | cat >conftest.$ac_ext <<_ACEOF | ||
11555 | /* confdefs.h. */ | ||
11556 | _ACEOF | ||
11557 | cat confdefs.h >>conftest.$ac_ext | ||
11558 | cat >>conftest.$ac_ext <<_ACEOF | ||
11559 | /* end confdefs.h. */ | ||
11560 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11562 | #define $ac_func innocuous_$ac_func | ||
11563 | |||
11564 | /* System header to define __stub macros and hopefully few prototypes, | ||
11565 | which can conflict with char $ac_func (); below. | ||
11566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11567 | <limits.h> exists even on freestanding compilers. */ | ||
11568 | |||
11569 | #ifdef __STDC__ | ||
11570 | # include <limits.h> | ||
11571 | #else | ||
11572 | # include <assert.h> | ||
11573 | #endif | ||
11574 | |||
11575 | #undef $ac_func | ||
11576 | |||
11577 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11578 | #ifdef __cplusplus | ||
11579 | extern "C" | ||
11580 | { | ||
11581 | #endif | ||
11582 | /* We use char because int might match the return type of a gcc2 | ||
11583 | builtin and then its argument prototype would still apply. */ | ||
11584 | char $ac_func (); | ||
11585 | /* The GNU C library defines this for functions which it implements | ||
11586 | to always fail with ENOSYS. Some functions are actually named | ||
11587 | something starting with __ and the normal name is an alias. */ | ||
11588 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11589 | choke me | ||
11590 | #else | ||
11591 | char (*f) () = $ac_func; | ||
11592 | #endif | ||
11593 | #ifdef __cplusplus | ||
11594 | } | ||
11595 | #endif | ||
11596 | |||
11597 | int | ||
11598 | main () | ||
11599 | { | ||
11600 | return f != $ac_func; | ||
11601 | ; | ||
11602 | return 0; | ||
11603 | } | ||
11604 | _ACEOF | ||
11605 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11607 | (eval $ac_link) 2>conftest.er1 | ||
11608 | ac_status=$? | ||
11609 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11610 | rm -f conftest.er1 | ||
11611 | cat conftest.err >&5 | ||
11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11613 | (exit $ac_status); } && | ||
11614 | { ac_try='test -z "$ac_c_werror_flag" | ||
11615 | || test ! -s conftest.err' | ||
11616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11617 | (eval $ac_try) 2>&5 | ||
11618 | ac_status=$? | ||
11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11620 | (exit $ac_status); }; } && | ||
11621 | { ac_try='test -s conftest$ac_exeext' | ||
11622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11623 | (eval $ac_try) 2>&5 | ||
11624 | ac_status=$? | ||
11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11626 | (exit $ac_status); }; }; then | ||
11627 | eval "$as_ac_var=yes" | ||
11628 | else | ||
11629 | echo "$as_me: failed program was:" >&5 | ||
11630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11631 | |||
11632 | eval "$as_ac_var=no" | ||
11633 | fi | ||
11634 | rm -f conftest.err conftest.$ac_objext \ | ||
11635 | conftest$ac_exeext conftest.$ac_ext | ||
11636 | fi | ||
11637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11638 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11639 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11640 | cat >>confdefs.h <<_ACEOF | ||
11641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11642 | _ACEOF | ||
11643 | |||
11644 | fi | ||
11645 | done | ||
11646 | |||
11647 | fi | ||
11648 | |||
11649 | |||
11650 | echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
11651 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
11652 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11654 | else | ||
11655 | cat >conftest.$ac_ext <<_ACEOF | ||
11656 | /* confdefs.h. */ | ||
11657 | _ACEOF | ||
11658 | cat confdefs.h >>conftest.$ac_ext | ||
11659 | cat >>conftest.$ac_ext <<_ACEOF | ||
11660 | /* end confdefs.h. */ | ||
11661 | #include <termios.h> | ||
11662 | |||
11663 | |||
11664 | int | ||
11665 | main () | ||
11666 | { | ||
11667 | #ifndef tcsendbreak | ||
11668 | char *p = (char *) tcsendbreak; | ||
11669 | #endif | ||
11670 | |||
11671 | ; | ||
11672 | return 0; | ||
11673 | } | ||
11674 | _ACEOF | ||
11675 | rm -f conftest.$ac_objext | ||
11676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11677 | (eval $ac_compile) 2>conftest.er1 | ||
11678 | ac_status=$? | ||
11679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11680 | rm -f conftest.er1 | ||
11681 | cat conftest.err >&5 | ||
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11683 | (exit $ac_status); } && | ||
11684 | { ac_try='test -z "$ac_c_werror_flag" | ||
11685 | || test ! -s conftest.err' | ||
11686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11687 | (eval $ac_try) 2>&5 | ||
11688 | ac_status=$? | ||
11689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11690 | (exit $ac_status); }; } && | ||
11691 | { ac_try='test -s conftest.$ac_objext' | ||
11692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11693 | (eval $ac_try) 2>&5 | ||
11694 | ac_status=$? | ||
11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11696 | (exit $ac_status); }; }; then | ||
11697 | ac_cv_have_decl_tcsendbreak=yes | ||
11698 | else | ||
11699 | echo "$as_me: failed program was:" >&5 | ||
11700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11701 | |||
11702 | ac_cv_have_decl_tcsendbreak=no | ||
11703 | fi | ||
11704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11705 | fi | ||
11706 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
11707 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
11708 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
11709 | cat >>confdefs.h <<\_ACEOF | ||
11710 | #define HAVE_TCSENDBREAK 1 | ||
11711 | _ACEOF | ||
11712 | |||
11713 | else | ||
11714 | |||
11715 | for ac_func in tcsendbreak | ||
11716 | do | ||
11717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11718 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11720 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11722 | else | ||
11723 | cat >conftest.$ac_ext <<_ACEOF | ||
11724 | /* confdefs.h. */ | ||
11725 | _ACEOF | ||
11726 | cat confdefs.h >>conftest.$ac_ext | ||
11727 | cat >>conftest.$ac_ext <<_ACEOF | ||
11728 | /* end confdefs.h. */ | ||
11729 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11731 | #define $ac_func innocuous_$ac_func | ||
11732 | |||
11733 | /* System header to define __stub macros and hopefully few prototypes, | ||
11734 | which can conflict with char $ac_func (); below. | ||
11735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11736 | <limits.h> exists even on freestanding compilers. */ | ||
11737 | |||
11738 | #ifdef __STDC__ | ||
11739 | # include <limits.h> | ||
11740 | #else | ||
11741 | # include <assert.h> | ||
11742 | #endif | ||
11743 | |||
11744 | #undef $ac_func | ||
11745 | |||
11746 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11747 | #ifdef __cplusplus | ||
11748 | extern "C" | ||
11749 | { | ||
11750 | #endif | ||
11751 | /* We use char because int might match the return type of a gcc2 | ||
11752 | builtin and then its argument prototype would still apply. */ | ||
11753 | char $ac_func (); | ||
11754 | /* The GNU C library defines this for functions which it implements | ||
11755 | to always fail with ENOSYS. Some functions are actually named | ||
11756 | something starting with __ and the normal name is an alias. */ | ||
11757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11758 | choke me | ||
11759 | #else | ||
11760 | char (*f) () = $ac_func; | ||
11761 | #endif | ||
11762 | #ifdef __cplusplus | ||
11763 | } | ||
11764 | #endif | ||
11765 | |||
11766 | int | ||
11767 | main () | ||
11768 | { | ||
11769 | return f != $ac_func; | ||
11770 | ; | ||
11771 | return 0; | ||
11772 | } | ||
11773 | _ACEOF | ||
11774 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11776 | (eval $ac_link) 2>conftest.er1 | ||
11777 | ac_status=$? | ||
11778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11779 | rm -f conftest.er1 | ||
11780 | cat conftest.err >&5 | ||
11781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11782 | (exit $ac_status); } && | ||
11783 | { ac_try='test -z "$ac_c_werror_flag" | ||
11784 | || test ! -s conftest.err' | ||
11785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11786 | (eval $ac_try) 2>&5 | ||
11787 | ac_status=$? | ||
11788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11789 | (exit $ac_status); }; } && | ||
11790 | { ac_try='test -s conftest$ac_exeext' | ||
11791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11792 | (eval $ac_try) 2>&5 | ||
11793 | ac_status=$? | ||
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11795 | (exit $ac_status); }; }; then | ||
11796 | eval "$as_ac_var=yes" | ||
11797 | else | ||
11798 | echo "$as_me: failed program was:" >&5 | ||
11799 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11800 | |||
11801 | eval "$as_ac_var=no" | ||
11802 | fi | ||
11803 | rm -f conftest.err conftest.$ac_objext \ | ||
11804 | conftest$ac_exeext conftest.$ac_ext | ||
11805 | fi | ||
11806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11807 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11808 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11809 | cat >>confdefs.h <<_ACEOF | ||
11810 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11811 | _ACEOF | ||
11812 | |||
11813 | fi | ||
11814 | done | ||
11815 | |||
11816 | fi | ||
11817 | |||
11818 | |||
11819 | echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
11820 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6 | ||
11821 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
11822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11823 | else | ||
11824 | cat >conftest.$ac_ext <<_ACEOF | ||
11825 | /* confdefs.h. */ | ||
11826 | _ACEOF | ||
11827 | cat confdefs.h >>conftest.$ac_ext | ||
11828 | cat >>conftest.$ac_ext <<_ACEOF | ||
11829 | /* end confdefs.h. */ | ||
11830 | #include <netdb.h> | ||
11831 | |||
11832 | int | ||
11833 | main () | ||
11834 | { | ||
11835 | #ifndef h_errno | ||
11836 | char *p = (char *) h_errno; | ||
11837 | #endif | ||
11838 | |||
11839 | ; | ||
11840 | return 0; | ||
11841 | } | ||
11842 | _ACEOF | ||
11843 | rm -f conftest.$ac_objext | ||
11844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11845 | (eval $ac_compile) 2>conftest.er1 | ||
11846 | ac_status=$? | ||
11847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11848 | rm -f conftest.er1 | ||
11849 | cat conftest.err >&5 | ||
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11851 | (exit $ac_status); } && | ||
11852 | { ac_try='test -z "$ac_c_werror_flag" | ||
11853 | || test ! -s conftest.err' | ||
11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11855 | (eval $ac_try) 2>&5 | ||
11856 | ac_status=$? | ||
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11858 | (exit $ac_status); }; } && | ||
11859 | { ac_try='test -s conftest.$ac_objext' | ||
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11861 | (eval $ac_try) 2>&5 | ||
11862 | ac_status=$? | ||
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11864 | (exit $ac_status); }; }; then | ||
11865 | ac_cv_have_decl_h_errno=yes | ||
11866 | else | ||
11867 | echo "$as_me: failed program was:" >&5 | ||
11868 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11869 | |||
11870 | ac_cv_have_decl_h_errno=no | ||
11871 | fi | ||
11872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11873 | fi | ||
11874 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
11875 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6 | ||
11876 | if test $ac_cv_have_decl_h_errno = yes; then | ||
11877 | |||
11878 | cat >>confdefs.h <<_ACEOF | ||
11879 | #define HAVE_DECL_H_ERRNO 1 | ||
11880 | _ACEOF | ||
11881 | |||
11882 | |||
11883 | else | ||
11884 | cat >>confdefs.h <<_ACEOF | ||
11885 | #define HAVE_DECL_H_ERRNO 0 | ||
11886 | _ACEOF | ||
11887 | |||
11888 | |||
11889 | fi | ||
11890 | |||
11891 | |||
11892 | |||
11893 | |||
11894 | for ac_func in setresuid | ||
11895 | do | ||
11896 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11897 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11898 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11899 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11901 | else | ||
11902 | cat >conftest.$ac_ext <<_ACEOF | ||
11903 | /* confdefs.h. */ | ||
11904 | _ACEOF | ||
11905 | cat confdefs.h >>conftest.$ac_ext | ||
11906 | cat >>conftest.$ac_ext <<_ACEOF | ||
11907 | /* end confdefs.h. */ | ||
11908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11910 | #define $ac_func innocuous_$ac_func | ||
11911 | |||
11912 | /* System header to define __stub macros and hopefully few prototypes, | ||
11913 | which can conflict with char $ac_func (); below. | ||
11914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11915 | <limits.h> exists even on freestanding compilers. */ | ||
11916 | |||
11917 | #ifdef __STDC__ | ||
11918 | # include <limits.h> | ||
11919 | #else | ||
11920 | # include <assert.h> | ||
11921 | #endif | ||
11922 | |||
11923 | #undef $ac_func | ||
11924 | |||
11925 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11926 | #ifdef __cplusplus | ||
11927 | extern "C" | ||
11928 | { | ||
11929 | #endif | ||
11930 | /* We use char because int might match the return type of a gcc2 | ||
11931 | builtin and then its argument prototype would still apply. */ | ||
11932 | char $ac_func (); | ||
11933 | /* The GNU C library defines this for functions which it implements | ||
11934 | to always fail with ENOSYS. Some functions are actually named | ||
11935 | something starting with __ and the normal name is an alias. */ | ||
11936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11937 | choke me | ||
11938 | #else | ||
11939 | char (*f) () = $ac_func; | ||
11940 | #endif | ||
11941 | #ifdef __cplusplus | ||
11942 | } | ||
11943 | #endif | ||
11944 | |||
11945 | int | ||
11946 | main () | ||
11947 | { | ||
11948 | return f != $ac_func; | ||
11949 | ; | ||
11950 | return 0; | ||
11951 | } | ||
11952 | _ACEOF | ||
11953 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11955 | (eval $ac_link) 2>conftest.er1 | ||
11956 | ac_status=$? | ||
11957 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11958 | rm -f conftest.er1 | ||
11959 | cat conftest.err >&5 | ||
11960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11961 | (exit $ac_status); } && | ||
11962 | { ac_try='test -z "$ac_c_werror_flag" | ||
11963 | || test ! -s conftest.err' | ||
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11965 | (eval $ac_try) 2>&5 | ||
11966 | ac_status=$? | ||
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11968 | (exit $ac_status); }; } && | ||
11969 | { ac_try='test -s conftest$ac_exeext' | ||
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11971 | (eval $ac_try) 2>&5 | ||
11972 | ac_status=$? | ||
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11974 | (exit $ac_status); }; }; then | ||
11975 | eval "$as_ac_var=yes" | ||
11976 | else | ||
11977 | echo "$as_me: failed program was:" >&5 | ||
11978 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11979 | |||
11980 | eval "$as_ac_var=no" | ||
11981 | fi | ||
11982 | rm -f conftest.err conftest.$ac_objext \ | ||
11983 | conftest$ac_exeext conftest.$ac_ext | ||
11984 | fi | ||
11985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11986 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11987 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11988 | cat >>confdefs.h <<_ACEOF | ||
11989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11990 | _ACEOF | ||
11991 | |||
11992 | echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
11993 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
11994 | if test "$cross_compiling" = yes; then | ||
11995 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
11996 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11997 | |||
11998 | else | ||
11999 | cat >conftest.$ac_ext <<_ACEOF | ||
12000 | /* confdefs.h. */ | ||
12001 | _ACEOF | ||
12002 | cat confdefs.h >>conftest.$ac_ext | ||
12003 | cat >>conftest.$ac_ext <<_ACEOF | ||
12004 | /* end confdefs.h. */ | ||
12005 | |||
12006 | #include <stdlib.h> | ||
12007 | #include <errno.h> | ||
12008 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
12009 | |||
12010 | _ACEOF | ||
12011 | rm -f conftest$ac_exeext | ||
12012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12013 | (eval $ac_link) 2>&5 | ||
12014 | ac_status=$? | ||
12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12016 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12018 | (eval $ac_try) 2>&5 | ||
12019 | ac_status=$? | ||
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12021 | (exit $ac_status); }; }; then | ||
12022 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12023 | echo "${ECHO_T}yes" >&6 | ||
12024 | else | ||
12025 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12026 | echo "$as_me: failed program was:" >&5 | ||
12027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12028 | |||
12029 | ( exit $ac_status ) | ||
12030 | cat >>confdefs.h <<\_ACEOF | ||
12031 | #define BROKEN_SETRESUID 1 | ||
12032 | _ACEOF | ||
12033 | |||
12034 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
12035 | echo "${ECHO_T}not implemented" >&6 | ||
12036 | fi | ||
12037 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12038 | fi | ||
12039 | |||
12040 | fi | ||
12041 | done | ||
12042 | |||
12043 | |||
12044 | |||
12045 | for ac_func in setresgid | ||
12046 | do | ||
12047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12048 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12050 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12052 | else | ||
12053 | cat >conftest.$ac_ext <<_ACEOF | ||
12054 | /* confdefs.h. */ | ||
12055 | _ACEOF | ||
12056 | cat confdefs.h >>conftest.$ac_ext | ||
12057 | cat >>conftest.$ac_ext <<_ACEOF | ||
12058 | /* end confdefs.h. */ | ||
12059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12061 | #define $ac_func innocuous_$ac_func | ||
12062 | |||
12063 | /* System header to define __stub macros and hopefully few prototypes, | ||
12064 | which can conflict with char $ac_func (); below. | ||
12065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12066 | <limits.h> exists even on freestanding compilers. */ | ||
12067 | |||
12068 | #ifdef __STDC__ | ||
12069 | # include <limits.h> | ||
12070 | #else | ||
12071 | # include <assert.h> | ||
12072 | #endif | ||
12073 | |||
12074 | #undef $ac_func | ||
12075 | |||
12076 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12077 | #ifdef __cplusplus | ||
12078 | extern "C" | ||
12079 | { | ||
12080 | #endif | ||
12081 | /* We use char because int might match the return type of a gcc2 | ||
12082 | builtin and then its argument prototype would still apply. */ | ||
12083 | char $ac_func (); | ||
12084 | /* The GNU C library defines this for functions which it implements | ||
12085 | to always fail with ENOSYS. Some functions are actually named | ||
12086 | something starting with __ and the normal name is an alias. */ | ||
12087 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12088 | choke me | ||
12089 | #else | ||
12090 | char (*f) () = $ac_func; | ||
12091 | #endif | ||
12092 | #ifdef __cplusplus | ||
12093 | } | ||
12094 | #endif | ||
12095 | |||
12096 | int | ||
12097 | main () | ||
12098 | { | ||
12099 | return f != $ac_func; | ||
12100 | ; | ||
12101 | return 0; | ||
12102 | } | ||
12103 | _ACEOF | ||
12104 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12106 | (eval $ac_link) 2>conftest.er1 | ||
12107 | ac_status=$? | ||
12108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12109 | rm -f conftest.er1 | ||
12110 | cat conftest.err >&5 | ||
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12112 | (exit $ac_status); } && | ||
12113 | { ac_try='test -z "$ac_c_werror_flag" | ||
12114 | || test ! -s conftest.err' | ||
12115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12116 | (eval $ac_try) 2>&5 | ||
12117 | ac_status=$? | ||
12118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12119 | (exit $ac_status); }; } && | ||
12120 | { ac_try='test -s conftest$ac_exeext' | ||
12121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12122 | (eval $ac_try) 2>&5 | ||
12123 | ac_status=$? | ||
12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12125 | (exit $ac_status); }; }; then | ||
12126 | eval "$as_ac_var=yes" | ||
12127 | else | ||
12128 | echo "$as_me: failed program was:" >&5 | ||
12129 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12130 | |||
12131 | eval "$as_ac_var=no" | ||
12132 | fi | ||
12133 | rm -f conftest.err conftest.$ac_objext \ | ||
12134 | conftest$ac_exeext conftest.$ac_ext | ||
12135 | fi | ||
12136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12137 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12138 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12139 | cat >>confdefs.h <<_ACEOF | ||
12140 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12141 | _ACEOF | ||
12142 | |||
12143 | echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
12144 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
12145 | if test "$cross_compiling" = yes; then | ||
12146 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
12147 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
12148 | |||
12149 | else | ||
12150 | cat >conftest.$ac_ext <<_ACEOF | ||
12151 | /* confdefs.h. */ | ||
12152 | _ACEOF | ||
12153 | cat confdefs.h >>conftest.$ac_ext | ||
12154 | cat >>conftest.$ac_ext <<_ACEOF | ||
12155 | /* end confdefs.h. */ | ||
12156 | |||
12157 | #include <stdlib.h> | ||
12158 | #include <errno.h> | ||
12159 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
12160 | |||
12161 | _ACEOF | ||
12162 | rm -f conftest$ac_exeext | ||
12163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12164 | (eval $ac_link) 2>&5 | ||
12165 | ac_status=$? | ||
12166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12167 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12169 | (eval $ac_try) 2>&5 | ||
12170 | ac_status=$? | ||
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12172 | (exit $ac_status); }; }; then | ||
12173 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12174 | echo "${ECHO_T}yes" >&6 | ||
12175 | else | ||
12176 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12177 | echo "$as_me: failed program was:" >&5 | ||
12178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12179 | |||
12180 | ( exit $ac_status ) | ||
12181 | cat >>confdefs.h <<\_ACEOF | ||
12182 | #define BROKEN_SETRESGID 1 | ||
12183 | _ACEOF | ||
12184 | |||
12185 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
12186 | echo "${ECHO_T}not implemented" >&6 | ||
12187 | fi | ||
12188 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12189 | fi | ||
12190 | |||
12191 | fi | ||
12192 | done | ||
12193 | |||
12194 | |||
12195 | |||
12196 | |||
12197 | for ac_func in gettimeofday time | ||
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 | |||
12301 | |||
12302 | |||
12303 | |||
12304 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
12305 | do | ||
12306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12307 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12309 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12311 | else | ||
12312 | cat >conftest.$ac_ext <<_ACEOF | ||
12313 | /* confdefs.h. */ | ||
12314 | _ACEOF | ||
12315 | cat confdefs.h >>conftest.$ac_ext | ||
12316 | cat >>conftest.$ac_ext <<_ACEOF | ||
12317 | /* end confdefs.h. */ | ||
12318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12320 | #define $ac_func innocuous_$ac_func | ||
12321 | |||
12322 | /* System header to define __stub macros and hopefully few prototypes, | ||
12323 | which can conflict with char $ac_func (); below. | ||
12324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12325 | <limits.h> exists even on freestanding compilers. */ | ||
12326 | |||
12327 | #ifdef __STDC__ | ||
12328 | # include <limits.h> | ||
12329 | #else | ||
12330 | # include <assert.h> | ||
12331 | #endif | ||
12332 | |||
12333 | #undef $ac_func | ||
12334 | |||
12335 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12336 | #ifdef __cplusplus | ||
12337 | extern "C" | ||
12338 | { | ||
12339 | #endif | ||
12340 | /* We use char because int might match the return type of a gcc2 | ||
12341 | builtin and then its argument prototype would still apply. */ | ||
12342 | char $ac_func (); | ||
12343 | /* The GNU C library defines this for functions which it implements | ||
12344 | to always fail with ENOSYS. Some functions are actually named | ||
12345 | something starting with __ and the normal name is an alias. */ | ||
12346 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12347 | choke me | ||
12348 | #else | ||
12349 | char (*f) () = $ac_func; | ||
12350 | #endif | ||
12351 | #ifdef __cplusplus | ||
12352 | } | ||
12353 | #endif | ||
12354 | |||
12355 | int | ||
12356 | main () | ||
12357 | { | ||
12358 | return f != $ac_func; | ||
12359 | ; | ||
12360 | return 0; | ||
12361 | } | ||
12362 | _ACEOF | ||
12363 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12365 | (eval $ac_link) 2>conftest.er1 | ||
12366 | ac_status=$? | ||
12367 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12368 | rm -f conftest.er1 | ||
12369 | cat conftest.err >&5 | ||
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12371 | (exit $ac_status); } && | ||
12372 | { ac_try='test -z "$ac_c_werror_flag" | ||
12373 | || test ! -s conftest.err' | ||
12374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12375 | (eval $ac_try) 2>&5 | ||
12376 | ac_status=$? | ||
12377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12378 | (exit $ac_status); }; } && | ||
12379 | { ac_try='test -s conftest$ac_exeext' | ||
12380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12381 | (eval $ac_try) 2>&5 | ||
12382 | ac_status=$? | ||
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12384 | (exit $ac_status); }; }; then | ||
12385 | eval "$as_ac_var=yes" | ||
12386 | else | ||
12387 | echo "$as_me: failed program was:" >&5 | ||
12388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12389 | |||
12390 | eval "$as_ac_var=no" | ||
12391 | fi | ||
12392 | rm -f conftest.err conftest.$ac_objext \ | ||
12393 | conftest$ac_exeext conftest.$ac_ext | ||
12394 | fi | ||
12395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12398 | cat >>confdefs.h <<_ACEOF | ||
12399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12400 | _ACEOF | ||
12401 | |||
12402 | fi | ||
12403 | done | ||
12404 | |||
12405 | |||
12406 | for ac_func in utmpname | ||
12407 | do | ||
12408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12409 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12411 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12413 | else | ||
12414 | cat >conftest.$ac_ext <<_ACEOF | ||
12415 | /* confdefs.h. */ | ||
12416 | _ACEOF | ||
12417 | cat confdefs.h >>conftest.$ac_ext | ||
12418 | cat >>conftest.$ac_ext <<_ACEOF | ||
12419 | /* end confdefs.h. */ | ||
12420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12422 | #define $ac_func innocuous_$ac_func | ||
12423 | |||
12424 | /* System header to define __stub macros and hopefully few prototypes, | ||
12425 | which can conflict with char $ac_func (); below. | ||
12426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12427 | <limits.h> exists even on freestanding compilers. */ | ||
12428 | |||
12429 | #ifdef __STDC__ | ||
12430 | # include <limits.h> | ||
12431 | #else | ||
12432 | # include <assert.h> | ||
12433 | #endif | ||
12434 | |||
12435 | #undef $ac_func | ||
12436 | |||
12437 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12438 | #ifdef __cplusplus | ||
12439 | extern "C" | ||
12440 | { | ||
12441 | #endif | ||
12442 | /* We use char because int might match the return type of a gcc2 | ||
12443 | builtin and then its argument prototype would still apply. */ | ||
12444 | char $ac_func (); | ||
12445 | /* The GNU C library defines this for functions which it implements | ||
12446 | to always fail with ENOSYS. Some functions are actually named | ||
12447 | something starting with __ and the normal name is an alias. */ | ||
12448 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12449 | choke me | ||
12450 | #else | ||
12451 | char (*f) () = $ac_func; | ||
12452 | #endif | ||
12453 | #ifdef __cplusplus | ||
12454 | } | ||
12455 | #endif | ||
12456 | |||
12457 | int | ||
12458 | main () | ||
12459 | { | ||
12460 | return f != $ac_func; | ||
12461 | ; | ||
12462 | return 0; | ||
12463 | } | ||
12464 | _ACEOF | ||
12465 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12467 | (eval $ac_link) 2>conftest.er1 | ||
12468 | ac_status=$? | ||
12469 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12470 | rm -f conftest.er1 | ||
12471 | cat conftest.err >&5 | ||
12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12473 | (exit $ac_status); } && | ||
12474 | { ac_try='test -z "$ac_c_werror_flag" | ||
12475 | || test ! -s conftest.err' | ||
12476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12477 | (eval $ac_try) 2>&5 | ||
12478 | ac_status=$? | ||
12479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12480 | (exit $ac_status); }; } && | ||
12481 | { ac_try='test -s conftest$ac_exeext' | ||
12482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12483 | (eval $ac_try) 2>&5 | ||
12484 | ac_status=$? | ||
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12486 | (exit $ac_status); }; }; then | ||
12487 | eval "$as_ac_var=yes" | ||
12488 | else | ||
12489 | echo "$as_me: failed program was:" >&5 | ||
12490 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12491 | |||
12492 | eval "$as_ac_var=no" | ||
12493 | fi | ||
12494 | rm -f conftest.err conftest.$ac_objext \ | ||
12495 | conftest$ac_exeext conftest.$ac_ext | ||
12496 | fi | ||
12497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12498 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12499 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12500 | cat >>confdefs.h <<_ACEOF | ||
12501 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12502 | _ACEOF | ||
12503 | |||
12504 | fi | ||
12505 | done | ||
12506 | |||
12507 | |||
12508 | |||
12509 | |||
12510 | |||
12511 | |||
12512 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
12513 | do | ||
12514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12519 | else | ||
12520 | cat >conftest.$ac_ext <<_ACEOF | ||
12521 | /* confdefs.h. */ | ||
12522 | _ACEOF | ||
12523 | cat confdefs.h >>conftest.$ac_ext | ||
12524 | cat >>conftest.$ac_ext <<_ACEOF | ||
12525 | /* end confdefs.h. */ | ||
12526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12528 | #define $ac_func innocuous_$ac_func | ||
12529 | |||
12530 | /* System header to define __stub macros and hopefully few prototypes, | ||
12531 | which can conflict with char $ac_func (); below. | ||
12532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12533 | <limits.h> exists even on freestanding compilers. */ | ||
12534 | |||
12535 | #ifdef __STDC__ | ||
12536 | # include <limits.h> | ||
12537 | #else | ||
12538 | # include <assert.h> | ||
12539 | #endif | ||
12540 | |||
12541 | #undef $ac_func | ||
12542 | |||
12543 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12544 | #ifdef __cplusplus | ||
12545 | extern "C" | ||
12546 | { | ||
12547 | #endif | ||
12548 | /* We use char because int might match the return type of a gcc2 | ||
12549 | builtin and then its argument prototype would still apply. */ | ||
12550 | char $ac_func (); | ||
12551 | /* The GNU C library defines this for functions which it implements | ||
12552 | to always fail with ENOSYS. Some functions are actually named | ||
12553 | something starting with __ and the normal name is an alias. */ | ||
12554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12555 | choke me | ||
12556 | #else | ||
12557 | char (*f) () = $ac_func; | ||
12558 | #endif | ||
12559 | #ifdef __cplusplus | ||
12560 | } | ||
12561 | #endif | ||
12562 | |||
12563 | int | ||
12564 | main () | ||
12565 | { | ||
12566 | return f != $ac_func; | ||
12567 | ; | ||
12568 | return 0; | ||
12569 | } | ||
12570 | _ACEOF | ||
12571 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12573 | (eval $ac_link) 2>conftest.er1 | ||
12574 | ac_status=$? | ||
12575 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12576 | rm -f conftest.er1 | ||
12577 | cat conftest.err >&5 | ||
12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12579 | (exit $ac_status); } && | ||
12580 | { ac_try='test -z "$ac_c_werror_flag" | ||
12581 | || test ! -s conftest.err' | ||
12582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12583 | (eval $ac_try) 2>&5 | ||
12584 | ac_status=$? | ||
12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12586 | (exit $ac_status); }; } && | ||
12587 | { ac_try='test -s conftest$ac_exeext' | ||
12588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12589 | (eval $ac_try) 2>&5 | ||
12590 | ac_status=$? | ||
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12592 | (exit $ac_status); }; }; then | ||
12593 | eval "$as_ac_var=yes" | ||
12594 | else | ||
12595 | echo "$as_me: failed program was:" >&5 | ||
12596 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12597 | |||
12598 | eval "$as_ac_var=no" | ||
12599 | fi | ||
12600 | rm -f conftest.err conftest.$ac_objext \ | ||
12601 | conftest$ac_exeext conftest.$ac_ext | ||
12602 | fi | ||
12603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12604 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12605 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12606 | cat >>confdefs.h <<_ACEOF | ||
12607 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12608 | _ACEOF | ||
12609 | |||
12610 | fi | ||
12611 | done | ||
12612 | |||
12613 | |||
12614 | |||
12615 | for ac_func in setutxent utmpxname | ||
12616 | do | ||
12617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12618 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12620 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12622 | else | ||
12623 | cat >conftest.$ac_ext <<_ACEOF | ||
12624 | /* confdefs.h. */ | ||
12625 | _ACEOF | ||
12626 | cat confdefs.h >>conftest.$ac_ext | ||
12627 | cat >>conftest.$ac_ext <<_ACEOF | ||
12628 | /* end confdefs.h. */ | ||
12629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12631 | #define $ac_func innocuous_$ac_func | ||
12632 | |||
12633 | /* System header to define __stub macros and hopefully few prototypes, | ||
12634 | which can conflict with char $ac_func (); below. | ||
12635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12636 | <limits.h> exists even on freestanding compilers. */ | ||
12637 | |||
12638 | #ifdef __STDC__ | ||
12639 | # include <limits.h> | ||
12640 | #else | ||
12641 | # include <assert.h> | ||
12642 | #endif | ||
12643 | |||
12644 | #undef $ac_func | ||
12645 | |||
12646 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12647 | #ifdef __cplusplus | ||
12648 | extern "C" | ||
12649 | { | ||
12650 | #endif | ||
12651 | /* We use char because int might match the return type of a gcc2 | ||
12652 | builtin and then its argument prototype would still apply. */ | ||
12653 | char $ac_func (); | ||
12654 | /* The GNU C library defines this for functions which it implements | ||
12655 | to always fail with ENOSYS. Some functions are actually named | ||
12656 | something starting with __ and the normal name is an alias. */ | ||
12657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12658 | choke me | ||
12659 | #else | ||
12660 | char (*f) () = $ac_func; | ||
12661 | #endif | ||
12662 | #ifdef __cplusplus | ||
12663 | } | ||
12664 | #endif | ||
12665 | |||
12666 | int | ||
12667 | main () | ||
12668 | { | ||
12669 | return f != $ac_func; | ||
12670 | ; | ||
12671 | return 0; | ||
12672 | } | ||
12673 | _ACEOF | ||
12674 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12676 | (eval $ac_link) 2>conftest.er1 | ||
12677 | ac_status=$? | ||
12678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12679 | rm -f conftest.er1 | ||
12680 | cat conftest.err >&5 | ||
12681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12682 | (exit $ac_status); } && | ||
12683 | { ac_try='test -z "$ac_c_werror_flag" | ||
12684 | || test ! -s conftest.err' | ||
12685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12686 | (eval $ac_try) 2>&5 | ||
12687 | ac_status=$? | ||
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12689 | (exit $ac_status); }; } && | ||
12690 | { ac_try='test -s conftest$ac_exeext' | ||
12691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12692 | (eval $ac_try) 2>&5 | ||
12693 | ac_status=$? | ||
12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12695 | (exit $ac_status); }; }; then | ||
12696 | eval "$as_ac_var=yes" | ||
12697 | else | ||
12698 | echo "$as_me: failed program was:" >&5 | ||
12699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12700 | |||
12701 | eval "$as_ac_var=no" | ||
12702 | fi | ||
12703 | rm -f conftest.err conftest.$ac_objext \ | ||
12704 | conftest$ac_exeext conftest.$ac_ext | ||
12705 | fi | ||
12706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12708 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12709 | cat >>confdefs.h <<_ACEOF | ||
12710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12711 | _ACEOF | ||
12712 | |||
12713 | fi | ||
12714 | done | ||
12715 | |||
12716 | |||
12717 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
12718 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
12719 | if test "${ac_cv_func_daemon+set}" = set; then | ||
12720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12721 | else | ||
12722 | cat >conftest.$ac_ext <<_ACEOF | ||
12723 | /* confdefs.h. */ | ||
12724 | _ACEOF | ||
12725 | cat confdefs.h >>conftest.$ac_ext | ||
12726 | cat >>conftest.$ac_ext <<_ACEOF | ||
12727 | /* end confdefs.h. */ | ||
12728 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
12729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12730 | #define daemon innocuous_daemon | ||
12731 | |||
12732 | /* System header to define __stub macros and hopefully few prototypes, | ||
12733 | which can conflict with char daemon (); below. | ||
12734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12735 | <limits.h> exists even on freestanding compilers. */ | ||
12736 | |||
12737 | #ifdef __STDC__ | ||
12738 | # include <limits.h> | ||
12739 | #else | ||
12740 | # include <assert.h> | ||
12741 | #endif | ||
12742 | |||
12743 | #undef daemon | ||
12744 | |||
12745 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12746 | #ifdef __cplusplus | ||
12747 | extern "C" | ||
12748 | { | ||
12749 | #endif | ||
12750 | /* We use char because int might match the return type of a gcc2 | ||
12751 | builtin and then its argument prototype would still apply. */ | ||
12752 | char daemon (); | ||
12753 | /* The GNU C library defines this for functions which it implements | ||
12754 | to always fail with ENOSYS. Some functions are actually named | ||
12755 | something starting with __ and the normal name is an alias. */ | ||
12756 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
12757 | choke me | ||
12758 | #else | ||
12759 | char (*f) () = daemon; | ||
12760 | #endif | ||
12761 | #ifdef __cplusplus | ||
12762 | } | ||
12763 | #endif | ||
12764 | |||
12765 | int | ||
12766 | main () | ||
12767 | { | ||
12768 | return f != daemon; | ||
12769 | ; | ||
12770 | return 0; | ||
12771 | } | ||
12772 | _ACEOF | ||
12773 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12775 | (eval $ac_link) 2>conftest.er1 | ||
12776 | ac_status=$? | ||
12777 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12778 | rm -f conftest.er1 | ||
12779 | cat conftest.err >&5 | ||
12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12781 | (exit $ac_status); } && | ||
12782 | { ac_try='test -z "$ac_c_werror_flag" | ||
12783 | || test ! -s conftest.err' | ||
12784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12785 | (eval $ac_try) 2>&5 | ||
12786 | ac_status=$? | ||
12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12788 | (exit $ac_status); }; } && | ||
12789 | { ac_try='test -s conftest$ac_exeext' | ||
12790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12791 | (eval $ac_try) 2>&5 | ||
12792 | ac_status=$? | ||
12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12794 | (exit $ac_status); }; }; then | ||
12795 | ac_cv_func_daemon=yes | ||
12796 | else | ||
12797 | echo "$as_me: failed program was:" >&5 | ||
12798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12799 | |||
12800 | ac_cv_func_daemon=no | ||
12801 | fi | ||
12802 | rm -f conftest.err conftest.$ac_objext \ | ||
12803 | conftest$ac_exeext conftest.$ac_ext | ||
12804 | fi | ||
12805 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
12806 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
12807 | if test $ac_cv_func_daemon = yes; then | ||
12808 | cat >>confdefs.h <<\_ACEOF | ||
12809 | #define HAVE_DAEMON 1 | ||
12810 | _ACEOF | ||
12811 | |||
12812 | else | ||
12813 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
12814 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
12815 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
12816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12817 | else | ||
12818 | ac_check_lib_save_LIBS=$LIBS | ||
12819 | LIBS="-lbsd $LIBS" | ||
12820 | cat >conftest.$ac_ext <<_ACEOF | ||
12821 | /* confdefs.h. */ | ||
12822 | _ACEOF | ||
12823 | cat confdefs.h >>conftest.$ac_ext | ||
12824 | cat >>conftest.$ac_ext <<_ACEOF | ||
12825 | /* end confdefs.h. */ | ||
12826 | |||
12827 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12828 | #ifdef __cplusplus | ||
12829 | extern "C" | ||
12830 | #endif | ||
12831 | /* We use char because int might match the return type of a gcc2 | ||
12832 | builtin and then its argument prototype would still apply. */ | ||
12833 | char daemon (); | ||
12834 | int | ||
12835 | main () | ||
12836 | { | ||
12837 | daemon (); | ||
12838 | ; | ||
12839 | return 0; | ||
12840 | } | ||
12841 | _ACEOF | ||
12842 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12844 | (eval $ac_link) 2>conftest.er1 | ||
12845 | ac_status=$? | ||
12846 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12847 | rm -f conftest.er1 | ||
12848 | cat conftest.err >&5 | ||
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12850 | (exit $ac_status); } && | ||
12851 | { ac_try='test -z "$ac_c_werror_flag" | ||
12852 | || test ! -s conftest.err' | ||
12853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12854 | (eval $ac_try) 2>&5 | ||
12855 | ac_status=$? | ||
12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12857 | (exit $ac_status); }; } && | ||
12858 | { ac_try='test -s conftest$ac_exeext' | ||
12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12860 | (eval $ac_try) 2>&5 | ||
12861 | ac_status=$? | ||
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12863 | (exit $ac_status); }; }; then | ||
12864 | ac_cv_lib_bsd_daemon=yes | ||
12865 | else | ||
12866 | echo "$as_me: failed program was:" >&5 | ||
12867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12868 | |||
12869 | ac_cv_lib_bsd_daemon=no | ||
12870 | fi | ||
12871 | rm -f conftest.err conftest.$ac_objext \ | ||
12872 | conftest$ac_exeext conftest.$ac_ext | ||
12873 | LIBS=$ac_check_lib_save_LIBS | ||
12874 | fi | ||
12875 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
12876 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
12877 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
12878 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
12879 | #define HAVE_DAEMON 1 | ||
12880 | _ACEOF | ||
12881 | |||
12882 | fi | ||
12883 | |||
12884 | |||
12885 | fi | ||
12886 | |||
12887 | |||
12888 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
12889 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
12890 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
12891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12892 | else | ||
12893 | cat >conftest.$ac_ext <<_ACEOF | ||
12894 | /* confdefs.h. */ | ||
12895 | _ACEOF | ||
12896 | cat confdefs.h >>conftest.$ac_ext | ||
12897 | cat >>conftest.$ac_ext <<_ACEOF | ||
12898 | /* end confdefs.h. */ | ||
12899 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
12900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12901 | #define getpagesize innocuous_getpagesize | ||
12902 | |||
12903 | /* System header to define __stub macros and hopefully few prototypes, | ||
12904 | which can conflict with char getpagesize (); below. | ||
12905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12906 | <limits.h> exists even on freestanding compilers. */ | ||
12907 | |||
12908 | #ifdef __STDC__ | ||
12909 | # include <limits.h> | ||
12910 | #else | ||
12911 | # include <assert.h> | ||
12912 | #endif | ||
12913 | |||
12914 | #undef getpagesize | ||
12915 | |||
12916 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12917 | #ifdef __cplusplus | ||
12918 | extern "C" | ||
12919 | { | ||
12920 | #endif | ||
12921 | /* We use char because int might match the return type of a gcc2 | ||
12922 | builtin and then its argument prototype would still apply. */ | ||
12923 | char getpagesize (); | ||
12924 | /* The GNU C library defines this for functions which it implements | ||
12925 | to always fail with ENOSYS. Some functions are actually named | ||
12926 | something starting with __ and the normal name is an alias. */ | ||
12927 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
12928 | choke me | ||
12929 | #else | ||
12930 | char (*f) () = getpagesize; | ||
12931 | #endif | ||
12932 | #ifdef __cplusplus | ||
12933 | } | ||
12934 | #endif | ||
12935 | |||
12936 | int | ||
12937 | main () | ||
12938 | { | ||
12939 | return f != getpagesize; | ||
12940 | ; | ||
12941 | return 0; | ||
12942 | } | ||
12943 | _ACEOF | ||
12944 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12946 | (eval $ac_link) 2>conftest.er1 | ||
12947 | ac_status=$? | ||
12948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12949 | rm -f conftest.er1 | ||
12950 | cat conftest.err >&5 | ||
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12952 | (exit $ac_status); } && | ||
12953 | { ac_try='test -z "$ac_c_werror_flag" | ||
12954 | || test ! -s conftest.err' | ||
12955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12956 | (eval $ac_try) 2>&5 | ||
12957 | ac_status=$? | ||
12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12959 | (exit $ac_status); }; } && | ||
12960 | { ac_try='test -s conftest$ac_exeext' | ||
12961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12962 | (eval $ac_try) 2>&5 | ||
12963 | ac_status=$? | ||
12964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12965 | (exit $ac_status); }; }; then | ||
12966 | ac_cv_func_getpagesize=yes | ||
12967 | else | ||
12968 | echo "$as_me: failed program was:" >&5 | ||
12969 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12970 | |||
12971 | ac_cv_func_getpagesize=no | ||
12972 | fi | ||
12973 | rm -f conftest.err conftest.$ac_objext \ | ||
12974 | conftest$ac_exeext conftest.$ac_ext | ||
12975 | fi | ||
12976 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
12977 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
12978 | if test $ac_cv_func_getpagesize = yes; then | ||
12979 | cat >>confdefs.h <<\_ACEOF | ||
12980 | #define HAVE_GETPAGESIZE 1 | ||
12981 | _ACEOF | ||
12982 | |||
12983 | else | ||
12984 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
12985 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
12986 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
12987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12988 | else | ||
12989 | ac_check_lib_save_LIBS=$LIBS | ||
12990 | LIBS="-lucb $LIBS" | ||
12991 | cat >conftest.$ac_ext <<_ACEOF | ||
12992 | /* confdefs.h. */ | ||
12993 | _ACEOF | ||
12994 | cat confdefs.h >>conftest.$ac_ext | ||
12995 | cat >>conftest.$ac_ext <<_ACEOF | ||
12996 | /* end confdefs.h. */ | ||
12997 | |||
12998 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12999 | #ifdef __cplusplus | ||
13000 | extern "C" | ||
13001 | #endif | ||
13002 | /* We use char because int might match the return type of a gcc2 | ||
13003 | builtin and then its argument prototype would still apply. */ | ||
13004 | char getpagesize (); | ||
13005 | int | ||
13006 | main () | ||
13007 | { | ||
13008 | getpagesize (); | ||
13009 | ; | ||
13010 | return 0; | ||
13011 | } | ||
13012 | _ACEOF | ||
13013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13015 | (eval $ac_link) 2>conftest.er1 | ||
13016 | ac_status=$? | ||
13017 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13018 | rm -f conftest.er1 | ||
13019 | cat conftest.err >&5 | ||
13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13021 | (exit $ac_status); } && | ||
13022 | { ac_try='test -z "$ac_c_werror_flag" | ||
13023 | || test ! -s conftest.err' | ||
13024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13025 | (eval $ac_try) 2>&5 | ||
13026 | ac_status=$? | ||
13027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13028 | (exit $ac_status); }; } && | ||
13029 | { ac_try='test -s conftest$ac_exeext' | ||
13030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13031 | (eval $ac_try) 2>&5 | ||
13032 | ac_status=$? | ||
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13034 | (exit $ac_status); }; }; then | ||
13035 | ac_cv_lib_ucb_getpagesize=yes | ||
13036 | else | ||
13037 | echo "$as_me: failed program was:" >&5 | ||
13038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13039 | |||
13040 | ac_cv_lib_ucb_getpagesize=no | ||
13041 | fi | ||
13042 | rm -f conftest.err conftest.$ac_objext \ | ||
13043 | conftest$ac_exeext conftest.$ac_ext | ||
13044 | LIBS=$ac_check_lib_save_LIBS | ||
13045 | fi | ||
13046 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
13047 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
13048 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
13049 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
13050 | #define HAVE_GETPAGESIZE 1 | ||
13051 | _ACEOF | ||
13052 | |||
13053 | fi | ||
13054 | |||
13055 | |||
13056 | fi | ||
13057 | |||
13058 | |||
13059 | # Check for broken snprintf | ||
13060 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
13061 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
13062 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
13063 | if test "$cross_compiling" = yes; then | ||
13064 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
13065 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
13066 | |||
13067 | else | ||
13068 | cat >conftest.$ac_ext <<_ACEOF | ||
13069 | /* confdefs.h. */ | ||
13070 | _ACEOF | ||
13071 | cat confdefs.h >>conftest.$ac_ext | ||
13072 | cat >>conftest.$ac_ext <<_ACEOF | ||
13073 | /* end confdefs.h. */ | ||
13074 | |||
13075 | #include <stdio.h> | ||
13076 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
13077 | |||
13078 | _ACEOF | ||
13079 | rm -f conftest$ac_exeext | ||
13080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13081 | (eval $ac_link) 2>&5 | ||
13082 | ac_status=$? | ||
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13084 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13086 | (eval $ac_try) 2>&5 | ||
13087 | ac_status=$? | ||
13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13089 | (exit $ac_status); }; }; then | ||
13090 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13091 | echo "${ECHO_T}yes" >&6 | ||
13092 | else | ||
13093 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13094 | echo "$as_me: failed program was:" >&5 | ||
13095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13096 | |||
13097 | ( exit $ac_status ) | ||
13098 | |||
13099 | echo "$as_me:$LINENO: result: no" >&5 | ||
13100 | echo "${ECHO_T}no" >&6 | ||
13101 | cat >>confdefs.h <<\_ACEOF | ||
13102 | #define BROKEN_SNPRINTF 1 | ||
13103 | _ACEOF | ||
13104 | |||
13105 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
13106 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
13107 | |||
13108 | fi | ||
13109 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13110 | fi | ||
13111 | fi | ||
13112 | |||
13113 | # Check for missing getpeereid (or equiv) support | ||
13114 | NO_PEERCHECK="" | ||
13115 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
13116 | echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
13117 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6 | ||
13118 | cat >conftest.$ac_ext <<_ACEOF | ||
13119 | /* confdefs.h. */ | ||
13120 | _ACEOF | ||
13121 | cat confdefs.h >>conftest.$ac_ext | ||
13122 | cat >>conftest.$ac_ext <<_ACEOF | ||
13123 | /* end confdefs.h. */ | ||
13124 | #include <sys/types.h> | ||
13125 | #include <sys/socket.h> | ||
13126 | int | ||
13127 | main () | ||
13128 | { | ||
13129 | int i = SO_PEERCRED; | ||
13130 | ; | ||
13131 | return 0; | ||
13132 | } | ||
13133 | _ACEOF | ||
13134 | rm -f conftest.$ac_objext | ||
13135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13136 | (eval $ac_compile) 2>conftest.er1 | ||
13137 | ac_status=$? | ||
13138 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13139 | rm -f conftest.er1 | ||
13140 | cat conftest.err >&5 | ||
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13142 | (exit $ac_status); } && | ||
13143 | { ac_try='test -z "$ac_c_werror_flag" | ||
13144 | || test ! -s conftest.err' | ||
13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13146 | (eval $ac_try) 2>&5 | ||
13147 | ac_status=$? | ||
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13149 | (exit $ac_status); }; } && | ||
13150 | { ac_try='test -s conftest.$ac_objext' | ||
13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13152 | (eval $ac_try) 2>&5 | ||
13153 | ac_status=$? | ||
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13155 | (exit $ac_status); }; }; then | ||
13156 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13157 | echo "${ECHO_T}yes" >&6 | ||
13158 | |||
13159 | cat >>confdefs.h <<\_ACEOF | ||
13160 | #define HAVE_SO_PEERCRED | ||
13161 | _ACEOF | ||
13162 | |||
13163 | |||
13164 | else | ||
13165 | echo "$as_me: failed program was:" >&5 | ||
13166 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13167 | |||
13168 | echo "$as_me:$LINENO: result: no" >&5 | ||
13169 | echo "${ECHO_T}no" >&6 | ||
13170 | NO_PEERCHECK=1 | ||
13171 | |||
13172 | fi | ||
13173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13174 | fi | ||
13175 | |||
13176 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
13177 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
13178 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
13179 | if test "$cross_compiling" = yes; then | ||
13180 | |||
13181 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13182 | echo "${ECHO_T}yes" >&6 | ||
13183 | cat >>confdefs.h <<\_ACEOF | ||
13184 | #define HAVE_STRICT_MKSTEMP 1 | ||
13185 | _ACEOF | ||
13186 | |||
13187 | |||
13188 | |||
13189 | else | ||
13190 | cat >conftest.$ac_ext <<_ACEOF | ||
13191 | /* confdefs.h. */ | ||
13192 | _ACEOF | ||
13193 | cat confdefs.h >>conftest.$ac_ext | ||
13194 | cat >>conftest.$ac_ext <<_ACEOF | ||
13195 | /* end confdefs.h. */ | ||
13196 | |||
13197 | #include <stdlib.h> | ||
13198 | main() { char template[]="conftest.mkstemp-test"; | ||
13199 | if (mkstemp(template) == -1) | ||
13200 | exit(1); | ||
13201 | unlink(template); exit(0); | ||
13202 | } | ||
13203 | |||
13204 | _ACEOF | ||
13205 | rm -f conftest$ac_exeext | ||
13206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13207 | (eval $ac_link) 2>&5 | ||
13208 | ac_status=$? | ||
13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13212 | (eval $ac_try) 2>&5 | ||
13213 | ac_status=$? | ||
13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13215 | (exit $ac_status); }; }; then | ||
13216 | |||
13217 | echo "$as_me:$LINENO: result: no" >&5 | ||
13218 | echo "${ECHO_T}no" >&6 | ||
13219 | |||
13220 | else | ||
13221 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13222 | echo "$as_me: failed program was:" >&5 | ||
13223 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13224 | |||
13225 | ( exit $ac_status ) | ||
13226 | |||
13227 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13228 | echo "${ECHO_T}yes" >&6 | ||
13229 | cat >>confdefs.h <<\_ACEOF | ||
13230 | #define HAVE_STRICT_MKSTEMP 1 | ||
13231 | _ACEOF | ||
13232 | |||
13233 | |||
13234 | fi | ||
13235 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13236 | fi | ||
13237 | fi | ||
13238 | |||
13239 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
13240 | echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
13241 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
13242 | if test "$cross_compiling" = yes; then | ||
13243 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13244 | See \`config.log' for more details." >&5 | ||
13245 | echo "$as_me: error: cannot run test program while cross compiling | ||
13246 | See \`config.log' for more details." >&2;} | ||
13247 | { (exit 1); exit 1; }; } | ||
13248 | else | ||
13249 | cat >conftest.$ac_ext <<_ACEOF | ||
13250 | /* confdefs.h. */ | ||
13251 | _ACEOF | ||
13252 | cat confdefs.h >>conftest.$ac_ext | ||
13253 | cat >>conftest.$ac_ext <<_ACEOF | ||
13254 | /* end confdefs.h. */ | ||
13255 | |||
13256 | #include <stdio.h> | ||
13257 | #include <sys/fcntl.h> | ||
13258 | #include <sys/types.h> | ||
13259 | #include <sys/wait.h> | ||
13260 | |||
13261 | int | ||
13262 | main() | ||
13263 | { | ||
13264 | pid_t pid; | ||
13265 | int fd, ptyfd, ttyfd, status; | ||
13266 | |||
13267 | pid = fork(); | ||
13268 | if (pid < 0) { /* failed */ | ||
13269 | exit(1); | ||
13270 | } else if (pid > 0) { /* parent */ | ||
13271 | waitpid(pid, &status, 0); | ||
13272 | if (WIFEXITED(status)) | ||
13273 | exit(WEXITSTATUS(status)); | ||
13274 | else | ||
13275 | exit(2); | ||
13276 | } else { /* child */ | ||
13277 | close(0); close(1); close(2); | ||
13278 | setsid(); | ||
13279 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
13280 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
13281 | if (fd >= 0) | ||
13282 | exit(3); /* Acquired ctty: broken */ | ||
13283 | else | ||
13284 | exit(0); /* Did not acquire ctty: OK */ | ||
13285 | } | ||
13286 | } | ||
13287 | |||
13288 | _ACEOF | ||
13289 | rm -f conftest$ac_exeext | ||
13290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13291 | (eval $ac_link) 2>&5 | ||
13292 | ac_status=$? | ||
13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13296 | (eval $ac_try) 2>&5 | ||
13297 | ac_status=$? | ||
13298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13299 | (exit $ac_status); }; }; then | ||
13300 | |||
13301 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13302 | echo "${ECHO_T}yes" >&6 | ||
13303 | |||
13304 | else | ||
13305 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13306 | echo "$as_me: failed program was:" >&5 | ||
13307 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13308 | |||
13309 | ( exit $ac_status ) | ||
13310 | |||
13311 | echo "$as_me:$LINENO: result: no" >&5 | ||
13312 | echo "${ECHO_T}no" >&6 | ||
13313 | cat >>confdefs.h <<\_ACEOF | ||
13314 | #define SSHD_ACQUIRES_CTTY 1 | ||
13315 | _ACEOF | ||
13316 | |||
13317 | |||
13318 | |||
13319 | fi | ||
13320 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13321 | fi | ||
13322 | fi | ||
13323 | |||
13324 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
13325 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
13326 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
13327 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
13328 | if test "$cross_compiling" = yes; then | ||
13329 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13330 | See \`config.log' for more details." >&5 | ||
13331 | echo "$as_me: error: cannot run test program while cross compiling | ||
13332 | See \`config.log' for more details." >&2;} | ||
13333 | { (exit 1); exit 1; }; } | ||
13334 | else | ||
13335 | cat >conftest.$ac_ext <<_ACEOF | ||
13336 | /* confdefs.h. */ | ||
13337 | _ACEOF | ||
13338 | cat confdefs.h >>conftest.$ac_ext | ||
13339 | cat >>conftest.$ac_ext <<_ACEOF | ||
13340 | /* end confdefs.h. */ | ||
13341 | |||
13342 | #include <stdio.h> | ||
13343 | #include <sys/socket.h> | ||
13344 | #include <netdb.h> | ||
13345 | #include <errno.h> | ||
13346 | #include <netinet/in.h> | ||
13347 | |||
13348 | #define TEST_PORT "2222" | ||
13349 | |||
13350 | int | ||
13351 | main(void) | ||
13352 | { | ||
13353 | int err, sock; | ||
13354 | struct addrinfo *gai_ai, *ai, hints; | ||
13355 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
13356 | |||
13357 | memset(&hints, 0, sizeof(hints)); | ||
13358 | hints.ai_family = PF_UNSPEC; | ||
13359 | hints.ai_socktype = SOCK_STREAM; | ||
13360 | hints.ai_flags = AI_PASSIVE; | ||
13361 | |||
13362 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
13363 | if (err != 0) { | ||
13364 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
13365 | exit(1); | ||
13366 | } | ||
13367 | |||
13368 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
13369 | if (ai->ai_family != AF_INET6) | ||
13370 | continue; | ||
13371 | |||
13372 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
13373 | sizeof(ntop), strport, sizeof(strport), | ||
13374 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
13375 | |||
13376 | if (err != 0) { | ||
13377 | if (err == EAI_SYSTEM) | ||
13378 | perror("getnameinfo EAI_SYSTEM"); | ||
13379 | else | ||
13380 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
13381 | gai_strerror(err)); | ||
13382 | exit(2); | ||
13383 | } | ||
13384 | |||
13385 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
13386 | if (sock < 0) | ||
13387 | perror("socket"); | ||
13388 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
13389 | if (errno == EBADF) | ||
13390 | exit(3); | ||
13391 | } | ||
13392 | } | ||
13393 | exit(0); | ||
13394 | } | ||
13395 | |||
13396 | _ACEOF | ||
13397 | rm -f conftest$ac_exeext | ||
13398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13399 | (eval $ac_link) 2>&5 | ||
13400 | ac_status=$? | ||
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13404 | (eval $ac_try) 2>&5 | ||
13405 | ac_status=$? | ||
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13407 | (exit $ac_status); }; }; then | ||
13408 | |||
13409 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13410 | echo "${ECHO_T}yes" >&6 | ||
13411 | |||
13412 | else | ||
13413 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13414 | echo "$as_me: failed program was:" >&5 | ||
13415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13416 | |||
13417 | ( exit $ac_status ) | ||
13418 | |||
13419 | echo "$as_me:$LINENO: result: no" >&5 | ||
13420 | echo "${ECHO_T}no" >&6 | ||
13421 | cat >>confdefs.h <<\_ACEOF | ||
13422 | #define BROKEN_GETADDRINFO 1 | ||
13423 | _ACEOF | ||
13424 | |||
13425 | |||
13426 | |||
13427 | fi | ||
13428 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13429 | fi | ||
13430 | fi | ||
13431 | |||
13432 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
13433 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
13434 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
13435 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
13436 | if test "$cross_compiling" = yes; then | ||
13437 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13438 | See \`config.log' for more details." >&5 | ||
13439 | echo "$as_me: error: cannot run test program while cross compiling | ||
13440 | See \`config.log' for more details." >&2;} | ||
13441 | { (exit 1); exit 1; }; } | ||
13442 | else | ||
13443 | cat >conftest.$ac_ext <<_ACEOF | ||
13444 | /* confdefs.h. */ | ||
13445 | _ACEOF | ||
13446 | cat confdefs.h >>conftest.$ac_ext | ||
13447 | cat >>conftest.$ac_ext <<_ACEOF | ||
13448 | /* end confdefs.h. */ | ||
13449 | |||
13450 | #include <stdio.h> | ||
13451 | #include <sys/socket.h> | ||
13452 | #include <netdb.h> | ||
13453 | #include <errno.h> | ||
13454 | #include <netinet/in.h> | ||
13455 | |||
13456 | #define TEST_PORT "2222" | ||
13457 | |||
13458 | int | ||
13459 | main(void) | ||
13460 | { | ||
13461 | int err, sock; | ||
13462 | struct addrinfo *gai_ai, *ai, hints; | ||
13463 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
13464 | |||
13465 | memset(&hints, 0, sizeof(hints)); | ||
13466 | hints.ai_family = PF_UNSPEC; | ||
13467 | hints.ai_socktype = SOCK_STREAM; | ||
13468 | hints.ai_flags = AI_PASSIVE; | ||
13469 | |||
13470 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
13471 | if (err != 0) { | ||
13472 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
13473 | exit(1); | ||
13474 | } | ||
13475 | |||
13476 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
13477 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
13478 | continue; | ||
13479 | |||
13480 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
13481 | sizeof(ntop), strport, sizeof(strport), | ||
13482 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
13483 | |||
13484 | if (ai->ai_family == AF_INET && err != 0) { | ||
13485 | perror("getnameinfo"); | ||
13486 | exit(2); | ||
13487 | } | ||
13488 | } | ||
13489 | exit(0); | ||
13490 | } | ||
13491 | |||
13492 | _ACEOF | ||
13493 | rm -f conftest$ac_exeext | ||
13494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13495 | (eval $ac_link) 2>&5 | ||
13496 | ac_status=$? | ||
13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13500 | (eval $ac_try) 2>&5 | ||
13501 | ac_status=$? | ||
13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13503 | (exit $ac_status); }; }; then | ||
13504 | |||
13505 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13506 | echo "${ECHO_T}yes" >&6 | ||
13507 | |||
13508 | cat >>confdefs.h <<\_ACEOF | ||
13509 | #define AIX_GETNAMEINFO_HACK | ||
13510 | _ACEOF | ||
13511 | |||
13512 | |||
13513 | else | ||
13514 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13515 | echo "$as_me: failed program was:" >&5 | ||
13516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13517 | |||
13518 | ( exit $ac_status ) | ||
13519 | |||
13520 | echo "$as_me:$LINENO: result: no" >&5 | ||
13521 | echo "${ECHO_T}no" >&6 | ||
13522 | cat >>confdefs.h <<\_ACEOF | ||
13523 | #define BROKEN_GETADDRINFO 1 | ||
13524 | _ACEOF | ||
13525 | |||
13526 | |||
13527 | |||
13528 | fi | ||
13529 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13530 | fi | ||
13531 | fi | ||
13532 | |||
13533 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
13534 | echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
13535 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6 | ||
13536 | cat >conftest.$ac_ext <<_ACEOF | ||
13537 | |||
13538 | #include <shadow.h> | ||
13539 | int main(void) {exit(0);} | ||
13540 | |||
13541 | _ACEOF | ||
13542 | rm -f conftest.$ac_objext | ||
13543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13544 | (eval $ac_compile) 2>conftest.er1 | ||
13545 | ac_status=$? | ||
13546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13547 | rm -f conftest.er1 | ||
13548 | cat conftest.err >&5 | ||
13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13550 | (exit $ac_status); } && | ||
13551 | { ac_try='test -z "$ac_c_werror_flag" | ||
13552 | || test ! -s conftest.err' | ||
13553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13554 | (eval $ac_try) 2>&5 | ||
13555 | ac_status=$? | ||
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13557 | (exit $ac_status); }; } && | ||
13558 | { ac_try='test -s conftest.$ac_objext' | ||
13559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13560 | (eval $ac_try) 2>&5 | ||
13561 | ac_status=$? | ||
13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13563 | (exit $ac_status); }; }; then | ||
13564 | |||
13565 | echo "$as_me:$LINENO: result: no" >&5 | ||
13566 | echo "${ECHO_T}no" >&6 | ||
13567 | |||
13568 | else | ||
13569 | echo "$as_me: failed program was:" >&5 | ||
13570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13571 | |||
13572 | |||
13573 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13574 | echo "${ECHO_T}yes" >&6 | ||
13575 | |||
13576 | cat >>confdefs.h <<\_ACEOF | ||
13577 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
13578 | _ACEOF | ||
13579 | |||
13580 | |||
13581 | |||
13582 | fi | ||
13583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13584 | fi | ||
13585 | |||
13586 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
13587 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
13588 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
13589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13590 | else | ||
13591 | # Use it with a single arg. | ||
13592 | cat >conftest.$ac_ext <<_ACEOF | ||
13593 | /* confdefs.h. */ | ||
13594 | _ACEOF | ||
13595 | cat confdefs.h >>conftest.$ac_ext | ||
13596 | cat >>conftest.$ac_ext <<_ACEOF | ||
13597 | /* end confdefs.h. */ | ||
13598 | $ac_includes_default | ||
13599 | int | ||
13600 | main () | ||
13601 | { | ||
13602 | getpgrp (0); | ||
13603 | ; | ||
13604 | return 0; | ||
13605 | } | ||
13606 | _ACEOF | ||
13607 | rm -f conftest.$ac_objext | ||
13608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
13609 | (eval $ac_compile) 2>conftest.er1 | ||
13610 | ac_status=$? | ||
13611 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13612 | rm -f conftest.er1 | ||
13613 | cat conftest.err >&5 | ||
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13615 | (exit $ac_status); } && | ||
13616 | { ac_try='test -z "$ac_c_werror_flag" | ||
13617 | || test ! -s conftest.err' | ||
13618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13619 | (eval $ac_try) 2>&5 | ||
13620 | ac_status=$? | ||
13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13622 | (exit $ac_status); }; } && | ||
13623 | { ac_try='test -s conftest.$ac_objext' | ||
13624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13625 | (eval $ac_try) 2>&5 | ||
13626 | ac_status=$? | ||
13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13628 | (exit $ac_status); }; }; then | ||
13629 | ac_cv_func_getpgrp_void=no | ||
13630 | else | ||
13631 | echo "$as_me: failed program was:" >&5 | ||
13632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13633 | |||
13634 | ac_cv_func_getpgrp_void=yes | ||
13635 | fi | ||
13636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13637 | |||
13638 | fi | ||
13639 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
13640 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
13641 | if test $ac_cv_func_getpgrp_void = yes; then | ||
13642 | |||
13643 | cat >>confdefs.h <<\_ACEOF | ||
13644 | #define GETPGRP_VOID 1 | ||
13645 | _ACEOF | ||
13646 | |||
13647 | fi | ||
13648 | |||
13649 | |||
13650 | # Check for PAM libs | ||
13651 | PAM_MSG="no" | ||
13652 | |||
13653 | # Check whether --with-pam or --without-pam was given. | ||
13654 | if test "${with_pam+set}" = set; then | ||
13655 | withval="$with_pam" | ||
13656 | |||
13657 | if test "x$withval" != "xno" ; then | ||
13658 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
13659 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
13660 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
13661 | echo "$as_me: error: PAM headers not found" >&2;} | ||
13662 | { (exit 1); exit 1; }; } | ||
13663 | fi | ||
13664 | |||
13665 | |||
13666 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
13667 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
13668 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13670 | else | ||
13671 | ac_check_lib_save_LIBS=$LIBS | ||
13672 | LIBS="-ldl $LIBS" | ||
13673 | cat >conftest.$ac_ext <<_ACEOF | ||
13674 | /* confdefs.h. */ | ||
13675 | _ACEOF | ||
13676 | cat confdefs.h >>conftest.$ac_ext | ||
13677 | cat >>conftest.$ac_ext <<_ACEOF | ||
13678 | /* end confdefs.h. */ | ||
13679 | |||
13680 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13681 | #ifdef __cplusplus | ||
13682 | extern "C" | ||
13683 | #endif | ||
13684 | /* We use char because int might match the return type of a gcc2 | ||
13685 | builtin and then its argument prototype would still apply. */ | ||
13686 | char dlopen (); | ||
13687 | int | ||
13688 | main () | ||
13689 | { | ||
13690 | dlopen (); | ||
13691 | ; | ||
13692 | return 0; | ||
13693 | } | ||
13694 | _ACEOF | ||
13695 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13697 | (eval $ac_link) 2>conftest.er1 | ||
13698 | ac_status=$? | ||
13699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13700 | rm -f conftest.er1 | ||
13701 | cat conftest.err >&5 | ||
13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13703 | (exit $ac_status); } && | ||
13704 | { ac_try='test -z "$ac_c_werror_flag" | ||
13705 | || test ! -s conftest.err' | ||
13706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13707 | (eval $ac_try) 2>&5 | ||
13708 | ac_status=$? | ||
13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13710 | (exit $ac_status); }; } && | ||
13711 | { ac_try='test -s conftest$ac_exeext' | ||
13712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13713 | (eval $ac_try) 2>&5 | ||
13714 | ac_status=$? | ||
13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13716 | (exit $ac_status); }; }; then | ||
13717 | ac_cv_lib_dl_dlopen=yes | ||
13718 | else | ||
13719 | echo "$as_me: failed program was:" >&5 | ||
13720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13721 | |||
13722 | ac_cv_lib_dl_dlopen=no | ||
13723 | fi | ||
13724 | rm -f conftest.err conftest.$ac_objext \ | ||
13725 | conftest$ac_exeext conftest.$ac_ext | ||
13726 | LIBS=$ac_check_lib_save_LIBS | ||
13727 | fi | ||
13728 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13729 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
13730 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13731 | cat >>confdefs.h <<_ACEOF | ||
13732 | #define HAVE_LIBDL 1 | ||
13733 | _ACEOF | ||
13734 | |||
13735 | LIBS="-ldl $LIBS" | ||
13736 | |||
13737 | fi | ||
13738 | |||
13739 | |||
13740 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
13741 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
13742 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13744 | else | ||
13745 | ac_check_lib_save_LIBS=$LIBS | ||
13746 | LIBS="-lpam $LIBS" | ||
13747 | cat >conftest.$ac_ext <<_ACEOF | ||
13748 | /* confdefs.h. */ | ||
13749 | _ACEOF | ||
13750 | cat confdefs.h >>conftest.$ac_ext | ||
13751 | cat >>conftest.$ac_ext <<_ACEOF | ||
13752 | /* end confdefs.h. */ | ||
13753 | |||
13754 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13755 | #ifdef __cplusplus | ||
13756 | extern "C" | ||
13757 | #endif | ||
13758 | /* We use char because int might match the return type of a gcc2 | ||
13759 | builtin and then its argument prototype would still apply. */ | ||
13760 | char pam_set_item (); | ||
13761 | int | ||
13762 | main () | ||
13763 | { | ||
13764 | pam_set_item (); | ||
13765 | ; | ||
13766 | return 0; | ||
13767 | } | ||
13768 | _ACEOF | ||
13769 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13771 | (eval $ac_link) 2>conftest.er1 | ||
13772 | ac_status=$? | ||
13773 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13774 | rm -f conftest.er1 | ||
13775 | cat conftest.err >&5 | ||
13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13777 | (exit $ac_status); } && | ||
13778 | { ac_try='test -z "$ac_c_werror_flag" | ||
13779 | || test ! -s conftest.err' | ||
13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13781 | (eval $ac_try) 2>&5 | ||
13782 | ac_status=$? | ||
13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13784 | (exit $ac_status); }; } && | ||
13785 | { ac_try='test -s conftest$ac_exeext' | ||
13786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13787 | (eval $ac_try) 2>&5 | ||
13788 | ac_status=$? | ||
13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13790 | (exit $ac_status); }; }; then | ||
13791 | ac_cv_lib_pam_pam_set_item=yes | ||
13792 | else | ||
13793 | echo "$as_me: failed program was:" >&5 | ||
13794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13795 | |||
13796 | ac_cv_lib_pam_pam_set_item=no | ||
13797 | fi | ||
13798 | rm -f conftest.err conftest.$ac_objext \ | ||
13799 | conftest$ac_exeext conftest.$ac_ext | ||
13800 | LIBS=$ac_check_lib_save_LIBS | ||
13801 | fi | ||
13802 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13803 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
13804 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
13805 | cat >>confdefs.h <<_ACEOF | ||
13806 | #define HAVE_LIBPAM 1 | ||
13807 | _ACEOF | ||
13808 | |||
13809 | LIBS="-lpam $LIBS" | ||
13810 | |||
13811 | else | ||
13812 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
13813 | echo "$as_me: error: *** libpam missing" >&2;} | ||
13814 | { (exit 1); exit 1; }; } | ||
13815 | fi | ||
13816 | |||
13817 | |||
13818 | for ac_func in pam_getenvlist | ||
13819 | do | ||
13820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13825 | else | ||
13826 | cat >conftest.$ac_ext <<_ACEOF | ||
13827 | /* confdefs.h. */ | ||
13828 | _ACEOF | ||
13829 | cat confdefs.h >>conftest.$ac_ext | ||
13830 | cat >>conftest.$ac_ext <<_ACEOF | ||
13831 | /* end confdefs.h. */ | ||
13832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13834 | #define $ac_func innocuous_$ac_func | ||
13835 | |||
13836 | /* System header to define __stub macros and hopefully few prototypes, | ||
13837 | which can conflict with char $ac_func (); below. | ||
13838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13839 | <limits.h> exists even on freestanding compilers. */ | ||
13840 | |||
13841 | #ifdef __STDC__ | ||
13842 | # include <limits.h> | ||
13843 | #else | ||
13844 | # include <assert.h> | ||
13845 | #endif | ||
13846 | |||
13847 | #undef $ac_func | ||
13848 | |||
13849 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13850 | #ifdef __cplusplus | ||
13851 | extern "C" | ||
13852 | { | ||
13853 | #endif | ||
13854 | /* We use char because int might match the return type of a gcc2 | ||
13855 | builtin and then its argument prototype would still apply. */ | ||
13856 | char $ac_func (); | ||
13857 | /* The GNU C library defines this for functions which it implements | ||
13858 | to always fail with ENOSYS. Some functions are actually named | ||
13859 | something starting with __ and the normal name is an alias. */ | ||
13860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13861 | choke me | ||
13862 | #else | ||
13863 | char (*f) () = $ac_func; | ||
13864 | #endif | ||
13865 | #ifdef __cplusplus | ||
13866 | } | ||
13867 | #endif | ||
13868 | |||
13869 | int | ||
13870 | main () | ||
13871 | { | ||
13872 | return f != $ac_func; | ||
13873 | ; | ||
13874 | return 0; | ||
13875 | } | ||
13876 | _ACEOF | ||
13877 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13879 | (eval $ac_link) 2>conftest.er1 | ||
13880 | ac_status=$? | ||
13881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13882 | rm -f conftest.er1 | ||
13883 | cat conftest.err >&5 | ||
13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13885 | (exit $ac_status); } && | ||
13886 | { ac_try='test -z "$ac_c_werror_flag" | ||
13887 | || test ! -s conftest.err' | ||
13888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13889 | (eval $ac_try) 2>&5 | ||
13890 | ac_status=$? | ||
13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13892 | (exit $ac_status); }; } && | ||
13893 | { ac_try='test -s conftest$ac_exeext' | ||
13894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13895 | (eval $ac_try) 2>&5 | ||
13896 | ac_status=$? | ||
13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13898 | (exit $ac_status); }; }; then | ||
13899 | eval "$as_ac_var=yes" | ||
13900 | else | ||
13901 | echo "$as_me: failed program was:" >&5 | ||
13902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13903 | |||
13904 | eval "$as_ac_var=no" | ||
13905 | fi | ||
13906 | rm -f conftest.err conftest.$ac_objext \ | ||
13907 | conftest$ac_exeext conftest.$ac_ext | ||
13908 | fi | ||
13909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
13910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
13911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13912 | cat >>confdefs.h <<_ACEOF | ||
13913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | done | ||
13918 | |||
13919 | |||
13920 | for ac_func in pam_putenv | ||
13921 | do | ||
13922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13923 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
13925 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
13926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13927 | else | ||
13928 | cat >conftest.$ac_ext <<_ACEOF | ||
13929 | /* confdefs.h. */ | ||
13930 | _ACEOF | ||
13931 | cat confdefs.h >>conftest.$ac_ext | ||
13932 | cat >>conftest.$ac_ext <<_ACEOF | ||
13933 | /* end confdefs.h. */ | ||
13934 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13936 | #define $ac_func innocuous_$ac_func | ||
13937 | |||
13938 | /* System header to define __stub macros and hopefully few prototypes, | ||
13939 | which can conflict with char $ac_func (); below. | ||
13940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13941 | <limits.h> exists even on freestanding compilers. */ | ||
13942 | |||
13943 | #ifdef __STDC__ | ||
13944 | # include <limits.h> | ||
13945 | #else | ||
13946 | # include <assert.h> | ||
13947 | #endif | ||
13948 | |||
13949 | #undef $ac_func | ||
13950 | |||
13951 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13952 | #ifdef __cplusplus | ||
13953 | extern "C" | ||
13954 | { | ||
13955 | #endif | ||
13956 | /* We use char because int might match the return type of a gcc2 | ||
13957 | builtin and then its argument prototype would still apply. */ | ||
13958 | char $ac_func (); | ||
13959 | /* The GNU C library defines this for functions which it implements | ||
13960 | to always fail with ENOSYS. Some functions are actually named | ||
13961 | something starting with __ and the normal name is an alias. */ | ||
13962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
13963 | choke me | ||
13964 | #else | ||
13965 | char (*f) () = $ac_func; | ||
13966 | #endif | ||
13967 | #ifdef __cplusplus | ||
13968 | } | ||
13969 | #endif | ||
13970 | |||
13971 | int | ||
13972 | main () | ||
13973 | { | ||
13974 | return f != $ac_func; | ||
13975 | ; | ||
13976 | return 0; | ||
13977 | } | ||
13978 | _ACEOF | ||
13979 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13981 | (eval $ac_link) 2>conftest.er1 | ||
13982 | ac_status=$? | ||
13983 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13984 | rm -f conftest.er1 | ||
13985 | cat conftest.err >&5 | ||
13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13987 | (exit $ac_status); } && | ||
13988 | { ac_try='test -z "$ac_c_werror_flag" | ||
13989 | || test ! -s conftest.err' | ||
13990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13991 | (eval $ac_try) 2>&5 | ||
13992 | ac_status=$? | ||
13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13994 | (exit $ac_status); }; } && | ||
13995 | { ac_try='test -s conftest$ac_exeext' | ||
13996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13997 | (eval $ac_try) 2>&5 | ||
13998 | ac_status=$? | ||
13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14000 | (exit $ac_status); }; }; then | ||
14001 | eval "$as_ac_var=yes" | ||
14002 | else | ||
14003 | echo "$as_me: failed program was:" >&5 | ||
14004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14005 | |||
14006 | eval "$as_ac_var=no" | ||
14007 | fi | ||
14008 | rm -f conftest.err conftest.$ac_objext \ | ||
14009 | conftest$ac_exeext conftest.$ac_ext | ||
14010 | fi | ||
14011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
14012 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
14013 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14014 | cat >>confdefs.h <<_ACEOF | ||
14015 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14016 | _ACEOF | ||
14017 | |||
14018 | fi | ||
14019 | done | ||
14020 | |||
14021 | |||
14022 | PAM_MSG="yes" | ||
14023 | |||
14024 | cat >>confdefs.h <<\_ACEOF | ||
14025 | #define USE_PAM 1 | ||
14026 | _ACEOF | ||
14027 | |||
14028 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
14029 | LIBPAM="-lpam -ldl" | ||
14030 | else | ||
14031 | LIBPAM="-lpam" | ||
14032 | fi | ||
14033 | |||
14034 | fi | ||
14035 | |||
14036 | |||
14037 | fi; | ||
14038 | |||
14039 | # Check for older PAM | ||
14040 | if test "x$PAM_MSG" = "xyes" ; then | ||
14041 | # Check PAM strerror arguments (old PAM) | ||
14042 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
14043 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
14044 | cat >conftest.$ac_ext <<_ACEOF | ||
14045 | /* confdefs.h. */ | ||
14046 | _ACEOF | ||
14047 | cat confdefs.h >>conftest.$ac_ext | ||
14048 | cat >>conftest.$ac_ext <<_ACEOF | ||
14049 | /* end confdefs.h. */ | ||
14050 | |||
14051 | #include <stdlib.h> | ||
14052 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
14053 | #include <security/pam_appl.h> | ||
14054 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
14055 | #include <pam/pam_appl.h> | ||
14056 | #endif | ||
14057 | |||
14058 | int | ||
14059 | main () | ||
14060 | { | ||
14061 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
14062 | ; | ||
14063 | return 0; | ||
14064 | } | ||
14065 | _ACEOF | ||
14066 | rm -f conftest.$ac_objext | ||
14067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14068 | (eval $ac_compile) 2>conftest.er1 | ||
14069 | ac_status=$? | ||
14070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14071 | rm -f conftest.er1 | ||
14072 | cat conftest.err >&5 | ||
14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14074 | (exit $ac_status); } && | ||
14075 | { ac_try='test -z "$ac_c_werror_flag" | ||
14076 | || test ! -s conftest.err' | ||
14077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14078 | (eval $ac_try) 2>&5 | ||
14079 | ac_status=$? | ||
14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14081 | (exit $ac_status); }; } && | ||
14082 | { ac_try='test -s conftest.$ac_objext' | ||
14083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14084 | (eval $ac_try) 2>&5 | ||
14085 | ac_status=$? | ||
14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14087 | (exit $ac_status); }; }; then | ||
14088 | echo "$as_me:$LINENO: result: no" >&5 | ||
14089 | echo "${ECHO_T}no" >&6 | ||
14090 | else | ||
14091 | echo "$as_me: failed program was:" >&5 | ||
14092 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14093 | |||
14094 | |||
14095 | cat >>confdefs.h <<\_ACEOF | ||
14096 | #define HAVE_OLD_PAM 1 | ||
14097 | _ACEOF | ||
14098 | |||
14099 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14100 | echo "${ECHO_T}yes" >&6 | ||
14101 | PAM_MSG="yes (old library)" | ||
14102 | |||
14103 | |||
14104 | fi | ||
14105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14106 | fi | ||
14107 | |||
14108 | # Search for OpenSSL | ||
14109 | saved_CPPFLAGS="$CPPFLAGS" | ||
14110 | saved_LDFLAGS="$LDFLAGS" | ||
14111 | |||
14112 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
14113 | if test "${with_ssl_dir+set}" = set; then | ||
14114 | withval="$with_ssl_dir" | ||
14115 | |||
14116 | if test "x$withval" != "xno" ; then | ||
14117 | case "$withval" in | ||
14118 | # Relative paths | ||
14119 | ./*|../*) withval="`pwd`/$withval" | ||
14120 | esac | ||
14121 | if test -d "$withval/lib"; then | ||
14122 | if test -n "${need_dash_r}"; then | ||
14123 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
14124 | else | ||
14125 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
14126 | fi | ||
14127 | else | ||
14128 | if test -n "${need_dash_r}"; then | ||
14129 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
14130 | else | ||
14131 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
14132 | fi | ||
14133 | fi | ||
14134 | if test -d "$withval/include"; then | ||
14135 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
14136 | else | ||
14137 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
14138 | fi | ||
14139 | fi | ||
14140 | |||
14141 | |||
14142 | fi; | ||
14143 | LIBS="-lcrypto $LIBS" | ||
14144 | cat >conftest.$ac_ext <<_ACEOF | ||
14145 | /* confdefs.h. */ | ||
14146 | _ACEOF | ||
14147 | cat confdefs.h >>conftest.$ac_ext | ||
14148 | cat >>conftest.$ac_ext <<_ACEOF | ||
14149 | /* end confdefs.h. */ | ||
14150 | |||
14151 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14152 | #ifdef __cplusplus | ||
14153 | extern "C" | ||
14154 | #endif | ||
14155 | /* We use char because int might match the return type of a gcc2 | ||
14156 | builtin and then its argument prototype would still apply. */ | ||
14157 | char RAND_add (); | ||
14158 | int | ||
14159 | main () | ||
14160 | { | ||
14161 | RAND_add (); | ||
14162 | ; | ||
14163 | return 0; | ||
14164 | } | ||
14165 | _ACEOF | ||
14166 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14168 | (eval $ac_link) 2>conftest.er1 | ||
14169 | ac_status=$? | ||
14170 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14171 | rm -f conftest.er1 | ||
14172 | cat conftest.err >&5 | ||
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14174 | (exit $ac_status); } && | ||
14175 | { ac_try='test -z "$ac_c_werror_flag" | ||
14176 | || test ! -s conftest.err' | ||
14177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14178 | (eval $ac_try) 2>&5 | ||
14179 | ac_status=$? | ||
14180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14181 | (exit $ac_status); }; } && | ||
14182 | { ac_try='test -s conftest$ac_exeext' | ||
14183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14184 | (eval $ac_try) 2>&5 | ||
14185 | ac_status=$? | ||
14186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14187 | (exit $ac_status); }; }; then | ||
14188 | cat >>confdefs.h <<\_ACEOF | ||
14189 | #define HAVE_OPENSSL 1 | ||
14190 | _ACEOF | ||
14191 | |||
14192 | else | ||
14193 | echo "$as_me: failed program was:" >&5 | ||
14194 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14195 | |||
14196 | |||
14197 | if test -n "${need_dash_r}"; then | ||
14198 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
14199 | else | ||
14200 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
14201 | fi | ||
14202 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
14203 | cat >conftest.$ac_ext <<_ACEOF | ||
14204 | /* confdefs.h. */ | ||
14205 | _ACEOF | ||
14206 | cat confdefs.h >>conftest.$ac_ext | ||
14207 | cat >>conftest.$ac_ext <<_ACEOF | ||
14208 | /* end confdefs.h. */ | ||
14209 | |||
14210 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14211 | #ifdef __cplusplus | ||
14212 | extern "C" | ||
14213 | #endif | ||
14214 | /* We use char because int might match the return type of a gcc2 | ||
14215 | builtin and then its argument prototype would still apply. */ | ||
14216 | char RAND_add (); | ||
14217 | int | ||
14218 | main () | ||
14219 | { | ||
14220 | RAND_add (); | ||
14221 | ; | ||
14222 | return 0; | ||
14223 | } | ||
14224 | _ACEOF | ||
14225 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14227 | (eval $ac_link) 2>conftest.er1 | ||
14228 | ac_status=$? | ||
14229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14230 | rm -f conftest.er1 | ||
14231 | cat conftest.err >&5 | ||
14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14233 | (exit $ac_status); } && | ||
14234 | { ac_try='test -z "$ac_c_werror_flag" | ||
14235 | || test ! -s conftest.err' | ||
14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14237 | (eval $ac_try) 2>&5 | ||
14238 | ac_status=$? | ||
14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14240 | (exit $ac_status); }; } && | ||
14241 | { ac_try='test -s conftest$ac_exeext' | ||
14242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14243 | (eval $ac_try) 2>&5 | ||
14244 | ac_status=$? | ||
14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14246 | (exit $ac_status); }; }; then | ||
14247 | cat >>confdefs.h <<\_ACEOF | ||
14248 | #define HAVE_OPENSSL 1 | ||
14249 | _ACEOF | ||
14250 | |||
14251 | else | ||
14252 | echo "$as_me: failed program was:" >&5 | ||
14253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14254 | |||
14255 | |||
14256 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
14257 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
14258 | { (exit 1); exit 1; }; } | ||
14259 | |||
14260 | |||
14261 | fi | ||
14262 | rm -f conftest.err conftest.$ac_objext \ | ||
14263 | conftest$ac_exeext conftest.$ac_ext | ||
14264 | |||
14265 | |||
14266 | fi | ||
14267 | rm -f conftest.err conftest.$ac_objext \ | ||
14268 | conftest$ac_exeext conftest.$ac_ext | ||
14269 | |||
14270 | # Determine OpenSSL header version | ||
14271 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
14272 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
14273 | if test "$cross_compiling" = yes; then | ||
14274 | |||
14275 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14276 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14277 | |||
14278 | |||
14279 | else | ||
14280 | cat >conftest.$ac_ext <<_ACEOF | ||
14281 | /* confdefs.h. */ | ||
14282 | _ACEOF | ||
14283 | cat confdefs.h >>conftest.$ac_ext | ||
14284 | cat >>conftest.$ac_ext <<_ACEOF | ||
14285 | /* end confdefs.h. */ | ||
14286 | |||
14287 | #include <stdio.h> | ||
14288 | #include <string.h> | ||
14289 | #include <openssl/opensslv.h> | ||
14290 | #define DATA "conftest.sslincver" | ||
14291 | int main(void) { | ||
14292 | FILE *fd; | ||
14293 | int rc; | ||
14294 | |||
14295 | fd = fopen(DATA,"w"); | ||
14296 | if(fd == NULL) | ||
14297 | exit(1); | ||
14298 | |||
14299 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
14300 | exit(1); | ||
14301 | |||
14302 | exit(0); | ||
14303 | } | ||
14304 | |||
14305 | _ACEOF | ||
14306 | rm -f conftest$ac_exeext | ||
14307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14308 | (eval $ac_link) 2>&5 | ||
14309 | ac_status=$? | ||
14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14313 | (eval $ac_try) 2>&5 | ||
14314 | ac_status=$? | ||
14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14316 | (exit $ac_status); }; }; then | ||
14317 | |||
14318 | ssl_header_ver=`cat conftest.sslincver` | ||
14319 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
14320 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
14321 | |||
14322 | else | ||
14323 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14324 | echo "$as_me: failed program was:" >&5 | ||
14325 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14326 | |||
14327 | ( exit $ac_status ) | ||
14328 | |||
14329 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14330 | echo "${ECHO_T}not found" >&6 | ||
14331 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
14332 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
14333 | { (exit 1); exit 1; }; } | ||
14334 | |||
14335 | fi | ||
14336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14337 | fi | ||
14338 | |||
14339 | # Determine OpenSSL library version | ||
14340 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
14341 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
14342 | if test "$cross_compiling" = yes; then | ||
14343 | |||
14344 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14345 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14346 | |||
14347 | |||
14348 | else | ||
14349 | cat >conftest.$ac_ext <<_ACEOF | ||
14350 | /* confdefs.h. */ | ||
14351 | _ACEOF | ||
14352 | cat confdefs.h >>conftest.$ac_ext | ||
14353 | cat >>conftest.$ac_ext <<_ACEOF | ||
14354 | /* end confdefs.h. */ | ||
14355 | |||
14356 | #include <stdio.h> | ||
14357 | #include <string.h> | ||
14358 | #include <openssl/opensslv.h> | ||
14359 | #include <openssl/crypto.h> | ||
14360 | #define DATA "conftest.ssllibver" | ||
14361 | int main(void) { | ||
14362 | FILE *fd; | ||
14363 | int rc; | ||
14364 | |||
14365 | fd = fopen(DATA,"w"); | ||
14366 | if(fd == NULL) | ||
14367 | exit(1); | ||
14368 | |||
14369 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
14370 | exit(1); | ||
14371 | |||
14372 | exit(0); | ||
14373 | } | ||
14374 | |||
14375 | _ACEOF | ||
14376 | rm -f conftest$ac_exeext | ||
14377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14378 | (eval $ac_link) 2>&5 | ||
14379 | ac_status=$? | ||
14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14383 | (eval $ac_try) 2>&5 | ||
14384 | ac_status=$? | ||
14385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14386 | (exit $ac_status); }; }; then | ||
14387 | |||
14388 | ssl_library_ver=`cat conftest.ssllibver` | ||
14389 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
14390 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
14391 | |||
14392 | else | ||
14393 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14394 | echo "$as_me: failed program was:" >&5 | ||
14395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14396 | |||
14397 | ( exit $ac_status ) | ||
14398 | |||
14399 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14400 | echo "${ECHO_T}not found" >&6 | ||
14401 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
14402 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
14403 | { (exit 1); exit 1; }; } | ||
14404 | |||
14405 | fi | ||
14406 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14407 | fi | ||
14408 | |||
14409 | # Sanity check OpenSSL headers | ||
14410 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
14411 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
14412 | if test "$cross_compiling" = yes; then | ||
14413 | |||
14414 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
14415 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14416 | |||
14417 | |||
14418 | else | ||
14419 | cat >conftest.$ac_ext <<_ACEOF | ||
14420 | /* confdefs.h. */ | ||
14421 | _ACEOF | ||
14422 | cat confdefs.h >>conftest.$ac_ext | ||
14423 | cat >>conftest.$ac_ext <<_ACEOF | ||
14424 | /* end confdefs.h. */ | ||
14425 | |||
14426 | #include <string.h> | ||
14427 | #include <openssl/opensslv.h> | ||
14428 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
14429 | |||
14430 | _ACEOF | ||
14431 | rm -f conftest$ac_exeext | ||
14432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14433 | (eval $ac_link) 2>&5 | ||
14434 | ac_status=$? | ||
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14438 | (eval $ac_try) 2>&5 | ||
14439 | ac_status=$? | ||
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14441 | (exit $ac_status); }; }; then | ||
14442 | |||
14443 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14444 | echo "${ECHO_T}yes" >&6 | ||
14445 | |||
14446 | else | ||
14447 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14448 | echo "$as_me: failed program was:" >&5 | ||
14449 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14450 | |||
14451 | ( exit $ac_status ) | ||
14452 | |||
14453 | echo "$as_me:$LINENO: result: no" >&5 | ||
14454 | echo "${ECHO_T}no" >&6 | ||
14455 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | ||
14456 | Check config.log for details. | ||
14457 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
14458 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
14459 | Check config.log for details. | ||
14460 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
14461 | { (exit 1); exit 1; }; } | ||
14462 | |||
14463 | fi | ||
14464 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14465 | fi | ||
14466 | |||
14467 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
14468 | # because the system crypt() is more featureful. | ||
14469 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
14470 | |||
14471 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14472 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14473 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14475 | else | ||
14476 | ac_check_lib_save_LIBS=$LIBS | ||
14477 | LIBS="-lcrypt $LIBS" | ||
14478 | cat >conftest.$ac_ext <<_ACEOF | ||
14479 | /* confdefs.h. */ | ||
14480 | _ACEOF | ||
14481 | cat confdefs.h >>conftest.$ac_ext | ||
14482 | cat >>conftest.$ac_ext <<_ACEOF | ||
14483 | /* end confdefs.h. */ | ||
14484 | |||
14485 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14486 | #ifdef __cplusplus | ||
14487 | extern "C" | ||
14488 | #endif | ||
14489 | /* We use char because int might match the return type of a gcc2 | ||
14490 | builtin and then its argument prototype would still apply. */ | ||
14491 | char crypt (); | ||
14492 | int | ||
14493 | main () | ||
14494 | { | ||
14495 | crypt (); | ||
14496 | ; | ||
14497 | return 0; | ||
14498 | } | ||
14499 | _ACEOF | ||
14500 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14502 | (eval $ac_link) 2>conftest.er1 | ||
14503 | ac_status=$? | ||
14504 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14505 | rm -f conftest.er1 | ||
14506 | cat conftest.err >&5 | ||
14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14508 | (exit $ac_status); } && | ||
14509 | { ac_try='test -z "$ac_c_werror_flag" | ||
14510 | || test ! -s conftest.err' | ||
14511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14512 | (eval $ac_try) 2>&5 | ||
14513 | ac_status=$? | ||
14514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14515 | (exit $ac_status); }; } && | ||
14516 | { ac_try='test -s conftest$ac_exeext' | ||
14517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14518 | (eval $ac_try) 2>&5 | ||
14519 | ac_status=$? | ||
14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14521 | (exit $ac_status); }; }; then | ||
14522 | ac_cv_lib_crypt_crypt=yes | ||
14523 | else | ||
14524 | echo "$as_me: failed program was:" >&5 | ||
14525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14526 | |||
14527 | ac_cv_lib_crypt_crypt=no | ||
14528 | fi | ||
14529 | rm -f conftest.err conftest.$ac_objext \ | ||
14530 | conftest$ac_exeext conftest.$ac_ext | ||
14531 | LIBS=$ac_check_lib_save_LIBS | ||
14532 | fi | ||
14533 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14534 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14535 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14536 | cat >>confdefs.h <<_ACEOF | ||
14537 | #define HAVE_LIBCRYPT 1 | ||
14538 | _ACEOF | ||
14539 | |||
14540 | LIBS="-lcrypt $LIBS" | ||
14541 | |||
14542 | fi | ||
14543 | |||
14544 | fi | ||
14545 | |||
14546 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
14547 | # version in OpenSSL. | ||
14548 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
14549 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
14550 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
14551 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
14552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14553 | else | ||
14554 | ac_check_lib_save_LIBS=$LIBS | ||
14555 | LIBS="-lcrypt $LIBS" | ||
14556 | cat >conftest.$ac_ext <<_ACEOF | ||
14557 | /* confdefs.h. */ | ||
14558 | _ACEOF | ||
14559 | cat confdefs.h >>conftest.$ac_ext | ||
14560 | cat >>conftest.$ac_ext <<_ACEOF | ||
14561 | /* end confdefs.h. */ | ||
14562 | |||
14563 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14564 | #ifdef __cplusplus | ||
14565 | extern "C" | ||
14566 | #endif | ||
14567 | /* We use char because int might match the return type of a gcc2 | ||
14568 | builtin and then its argument prototype would still apply. */ | ||
14569 | char crypt (); | ||
14570 | int | ||
14571 | main () | ||
14572 | { | ||
14573 | crypt (); | ||
14574 | ; | ||
14575 | return 0; | ||
14576 | } | ||
14577 | _ACEOF | ||
14578 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14580 | (eval $ac_link) 2>conftest.er1 | ||
14581 | ac_status=$? | ||
14582 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14583 | rm -f conftest.er1 | ||
14584 | cat conftest.err >&5 | ||
14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14586 | (exit $ac_status); } && | ||
14587 | { ac_try='test -z "$ac_c_werror_flag" | ||
14588 | || test ! -s conftest.err' | ||
14589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14590 | (eval $ac_try) 2>&5 | ||
14591 | ac_status=$? | ||
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14593 | (exit $ac_status); }; } && | ||
14594 | { ac_try='test -s conftest$ac_exeext' | ||
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14596 | (eval $ac_try) 2>&5 | ||
14597 | ac_status=$? | ||
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14599 | (exit $ac_status); }; }; then | ||
14600 | ac_cv_lib_crypt_crypt=yes | ||
14601 | else | ||
14602 | echo "$as_me: failed program was:" >&5 | ||
14603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14604 | |||
14605 | ac_cv_lib_crypt_crypt=no | ||
14606 | fi | ||
14607 | rm -f conftest.err conftest.$ac_objext \ | ||
14608 | conftest$ac_exeext conftest.$ac_ext | ||
14609 | LIBS=$ac_check_lib_save_LIBS | ||
14610 | fi | ||
14611 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
14612 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
14613 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
14614 | LIBS="$LIBS -lcrypt" | ||
14615 | fi | ||
14616 | |||
14617 | fi | ||
14618 | |||
14619 | |||
14620 | echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
14621 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6 | ||
14622 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
14623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14624 | else | ||
14625 | ac_check_lib_save_LIBS=$LIBS | ||
14626 | LIBS="-liaf $LIBS" | ||
14627 | cat >conftest.$ac_ext <<_ACEOF | ||
14628 | /* confdefs.h. */ | ||
14629 | _ACEOF | ||
14630 | cat confdefs.h >>conftest.$ac_ext | ||
14631 | cat >>conftest.$ac_ext <<_ACEOF | ||
14632 | /* end confdefs.h. */ | ||
14633 | |||
14634 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
14635 | #ifdef __cplusplus | ||
14636 | extern "C" | ||
14637 | #endif | ||
14638 | /* We use char because int might match the return type of a gcc2 | ||
14639 | builtin and then its argument prototype would still apply. */ | ||
14640 | char ia_openinfo (); | ||
14641 | int | ||
14642 | main () | ||
14643 | { | ||
14644 | ia_openinfo (); | ||
14645 | ; | ||
14646 | return 0; | ||
14647 | } | ||
14648 | _ACEOF | ||
14649 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14651 | (eval $ac_link) 2>conftest.er1 | ||
14652 | ac_status=$? | ||
14653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14654 | rm -f conftest.er1 | ||
14655 | cat conftest.err >&5 | ||
14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14657 | (exit $ac_status); } && | ||
14658 | { ac_try='test -z "$ac_c_werror_flag" | ||
14659 | || test ! -s conftest.err' | ||
14660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14661 | (eval $ac_try) 2>&5 | ||
14662 | ac_status=$? | ||
14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14664 | (exit $ac_status); }; } && | ||
14665 | { ac_try='test -s conftest$ac_exeext' | ||
14666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14667 | (eval $ac_try) 2>&5 | ||
14668 | ac_status=$? | ||
14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14670 | (exit $ac_status); }; }; then | ||
14671 | ac_cv_lib_iaf_ia_openinfo=yes | ||
14672 | else | ||
14673 | echo "$as_me: failed program was:" >&5 | ||
14674 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14675 | |||
14676 | ac_cv_lib_iaf_ia_openinfo=no | ||
14677 | fi | ||
14678 | rm -f conftest.err conftest.$ac_objext \ | ||
14679 | conftest$ac_exeext conftest.$ac_ext | ||
14680 | LIBS=$ac_check_lib_save_LIBS | ||
14681 | fi | ||
14682 | echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
14683 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6 | ||
14684 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
14685 | cat >>confdefs.h <<_ACEOF | ||
14686 | #define HAVE_LIBIAF 1 | ||
14687 | _ACEOF | ||
14688 | |||
14689 | LIBS="-liaf $LIBS" | ||
14690 | |||
14691 | fi | ||
14692 | |||
14693 | |||
14694 | ### Configure cryptographic random number support | ||
14695 | |||
14696 | # Check wheter OpenSSL seeds itself | ||
14697 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
14698 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
14699 | if test "$cross_compiling" = yes; then | ||
14700 | |||
14701 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
14702 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14703 | # This is safe, since all recent OpenSSL versions will | ||
14704 | # complain at runtime if not seeded correctly. | ||
14705 | OPENSSL_SEEDS_ITSELF=yes | ||
14706 | |||
14707 | |||
14708 | else | ||
14709 | cat >conftest.$ac_ext <<_ACEOF | ||
14710 | /* confdefs.h. */ | ||
14711 | _ACEOF | ||
14712 | cat confdefs.h >>conftest.$ac_ext | ||
14713 | cat >>conftest.$ac_ext <<_ACEOF | ||
14714 | /* end confdefs.h. */ | ||
14715 | |||
14716 | #include <string.h> | ||
14717 | #include <openssl/rand.h> | ||
14718 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
14719 | |||
14720 | _ACEOF | ||
14721 | rm -f conftest$ac_exeext | ||
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14723 | (eval $ac_link) 2>&5 | ||
14724 | ac_status=$? | ||
14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14728 | (eval $ac_try) 2>&5 | ||
14729 | ac_status=$? | ||
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14731 | (exit $ac_status); }; }; then | ||
14732 | |||
14733 | OPENSSL_SEEDS_ITSELF=yes | ||
14734 | echo "$as_me:$LINENO: result: yes" >&5 | ||
14735 | echo "${ECHO_T}yes" >&6 | ||
14736 | |||
14737 | else | ||
14738 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14739 | echo "$as_me: failed program was:" >&5 | ||
14740 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14741 | |||
14742 | ( exit $ac_status ) | ||
14743 | |||
14744 | echo "$as_me:$LINENO: result: no" >&5 | ||
14745 | echo "${ECHO_T}no" >&6 | ||
14746 | # Default to use of the rand helper if OpenSSL doesn't | ||
14747 | # seed itself | ||
14748 | USE_RAND_HELPER=yes | ||
14749 | |||
14750 | fi | ||
14751 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14752 | fi | ||
14753 | |||
14754 | |||
14755 | # Do we want to force the use of the rand helper? | ||
14756 | |||
14757 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
14758 | if test "${with_rand_helper+set}" = set; then | ||
14759 | withval="$with_rand_helper" | ||
14760 | |||
14761 | if test "x$withval" = "xno" ; then | ||
14762 | # Force use of OpenSSL's internal RNG, even if | ||
14763 | # the previous test showed it to be unseeded. | ||
14764 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
14765 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
14766 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
14767 | OPENSSL_SEEDS_ITSELF=yes | ||
14768 | USE_RAND_HELPER="" | ||
14769 | fi | ||
14770 | else | ||
14771 | USE_RAND_HELPER=yes | ||
14772 | fi | ||
14773 | |||
14774 | fi; | ||
14775 | |||
14776 | # Which randomness source do we use? | ||
14777 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
14778 | # OpenSSL only | ||
14779 | cat >>confdefs.h <<\_ACEOF | ||
14780 | #define OPENSSL_PRNG_ONLY 1 | ||
14781 | _ACEOF | ||
14782 | |||
14783 | RAND_MSG="OpenSSL internal ONLY" | ||
14784 | INSTALL_SSH_RAND_HELPER="" | ||
14785 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
14786 | # install rand helper | ||
14787 | RAND_MSG="ssh-rand-helper" | ||
14788 | INSTALL_SSH_RAND_HELPER="yes" | ||
14789 | fi | ||
14790 | |||
14791 | |||
14792 | ### Configuration of ssh-rand-helper | ||
14793 | |||
14794 | # PRNGD TCP socket | ||
14795 | |||
14796 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
14797 | if test "${with_prngd_port+set}" = set; then | ||
14798 | withval="$with_prngd_port" | ||
14799 | |||
14800 | case "$withval" in | ||
14801 | no) | ||
14802 | withval="" | ||
14803 | ;; | ||
14804 | [0-9]*) | ||
14805 | ;; | ||
14806 | *) | ||
14807 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
14808 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
14809 | { (exit 1); exit 1; }; } | ||
14810 | ;; | ||
14811 | esac | ||
14812 | if test ! -z "$withval" ; then | ||
14813 | PRNGD_PORT="$withval" | ||
14814 | cat >>confdefs.h <<_ACEOF | ||
14815 | #define PRNGD_PORT $PRNGD_PORT | ||
14816 | _ACEOF | ||
14817 | |||
14818 | fi | ||
14819 | |||
14820 | |||
14821 | fi; | ||
14822 | |||
14823 | # PRNGD Unix domain socket | ||
14824 | |||
14825 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
14826 | if test "${with_prngd_socket+set}" = set; then | ||
14827 | withval="$with_prngd_socket" | ||
14828 | |||
14829 | case "$withval" in | ||
14830 | yes) | ||
14831 | withval="/var/run/egd-pool" | ||
14832 | ;; | ||
14833 | no) | ||
14834 | withval="" | ||
14835 | ;; | ||
14836 | /*) | ||
14837 | ;; | ||
14838 | *) | ||
14839 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
14840 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
14841 | { (exit 1); exit 1; }; } | ||
14842 | ;; | ||
14843 | esac | ||
14844 | |||
14845 | if test ! -z "$withval" ; then | ||
14846 | if test ! -z "$PRNGD_PORT" ; then | ||
14847 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
14848 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
14849 | { (exit 1); exit 1; }; } | ||
14850 | fi | ||
14851 | if test ! -r "$withval" ; then | ||
14852 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
14853 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
14854 | fi | ||
14855 | PRNGD_SOCKET="$withval" | ||
14856 | cat >>confdefs.h <<_ACEOF | ||
14857 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14858 | _ACEOF | ||
14859 | |||
14860 | fi | ||
14861 | |||
14862 | else | ||
14863 | |||
14864 | # Check for existing socket only if we don't have a random device already | ||
14865 | if test "$USE_RAND_HELPER" = yes ; then | ||
14866 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
14867 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
14868 | # Insert other locations here | ||
14869 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
14870 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
14871 | PRNGD_SOCKET="$sock" | ||
14872 | cat >>confdefs.h <<_ACEOF | ||
14873 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14874 | _ACEOF | ||
14875 | |||
14876 | break; | ||
14877 | fi | ||
14878 | done | ||
14879 | if test ! -z "$PRNGD_SOCKET" ; then | ||
14880 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
14881 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
14882 | else | ||
14883 | echo "$as_me:$LINENO: result: not found" >&5 | ||
14884 | echo "${ECHO_T}not found" >&6 | ||
14885 | fi | ||
14886 | fi | ||
14887 | |||
14888 | |||
14889 | fi; | ||
14890 | |||
14891 | # Change default command timeout for hashing entropy source | ||
14892 | entropy_timeout=200 | ||
14893 | |||
14894 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
14895 | if test "${with_entropy_timeout+set}" = set; then | ||
14896 | withval="$with_entropy_timeout" | ||
14897 | |||
14898 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14899 | test "x${withval}" != "xyes"; then | ||
14900 | entropy_timeout=$withval | ||
14901 | fi | ||
14902 | |||
14903 | |||
14904 | fi; | ||
14905 | cat >>confdefs.h <<_ACEOF | ||
14906 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
14907 | _ACEOF | ||
14908 | |||
14909 | |||
14910 | SSH_PRIVSEP_USER=sshd | ||
14911 | |||
14912 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
14913 | if test "${with_privsep_user+set}" = set; then | ||
14914 | withval="$with_privsep_user" | ||
14915 | |||
14916 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14917 | test "x${withval}" != "xyes"; then | ||
14918 | SSH_PRIVSEP_USER=$withval | ||
14919 | fi | ||
14920 | |||
14921 | |||
14922 | fi; | ||
14923 | cat >>confdefs.h <<_ACEOF | ||
14924 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
14925 | _ACEOF | ||
14926 | |||
14927 | |||
14928 | |||
14929 | # We do this little dance with the search path to insure | ||
14930 | # that programs that we select for use by installed programs | ||
14931 | # (which may be run by the super-user) come from trusted | ||
14932 | # locations before they come from the user's private area. | ||
14933 | # This should help avoid accidentally configuring some | ||
14934 | # random version of a program in someone's personal bin. | ||
14935 | |||
14936 | OPATH=$PATH | ||
14937 | PATH=/bin:/usr/bin | ||
14938 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
14939 | test -d /sbin && PATH=$PATH:/sbin | ||
14940 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
14941 | PATH=$PATH:/etc:$OPATH | ||
14942 | |||
14943 | # These programs are used by the command hashing source to gather entropy | ||
14944 | |||
14945 | # Extract the first word of "ls", so it can be a program name with args. | ||
14946 | set dummy ls; ac_word=$2 | ||
14947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14949 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
14950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14951 | else | ||
14952 | case $PROG_LS in | ||
14953 | [\\/]* | ?:[\\/]*) | ||
14954 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
14955 | ;; | ||
14956 | *) | ||
14957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14958 | for as_dir in $PATH | ||
14959 | do | ||
14960 | IFS=$as_save_IFS | ||
14961 | test -z "$as_dir" && as_dir=. | ||
14962 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14964 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
14965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14966 | break 2 | ||
14967 | fi | ||
14968 | done | ||
14969 | done | ||
14970 | |||
14971 | ;; | ||
14972 | esac | ||
14973 | fi | ||
14974 | PROG_LS=$ac_cv_path_PROG_LS | ||
14975 | |||
14976 | if test -n "$PROG_LS"; then | ||
14977 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
14978 | echo "${ECHO_T}$PROG_LS" >&6 | ||
14979 | else | ||
14980 | echo "$as_me:$LINENO: result: no" >&5 | ||
14981 | echo "${ECHO_T}no" >&6 | ||
14982 | fi | ||
14983 | |||
14984 | if test -z "$PROG_LS" ; then | ||
14985 | PROG_LS="undef" | ||
14986 | fi | ||
14987 | |||
14988 | |||
14989 | |||
14990 | # Extract the first word of "netstat", so it can be a program name with args. | ||
14991 | set dummy netstat; ac_word=$2 | ||
14992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14994 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
14995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14996 | else | ||
14997 | case $PROG_NETSTAT in | ||
14998 | [\\/]* | ?:[\\/]*) | ||
14999 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
15000 | ;; | ||
15001 | *) | ||
15002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15003 | for as_dir in $PATH | ||
15004 | do | ||
15005 | IFS=$as_save_IFS | ||
15006 | test -z "$as_dir" && as_dir=. | ||
15007 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15009 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15011 | break 2 | ||
15012 | fi | ||
15013 | done | ||
15014 | done | ||
15015 | |||
15016 | ;; | ||
15017 | esac | ||
15018 | fi | ||
15019 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
15020 | |||
15021 | if test -n "$PROG_NETSTAT"; then | ||
15022 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
15023 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
15024 | else | ||
15025 | echo "$as_me:$LINENO: result: no" >&5 | ||
15026 | echo "${ECHO_T}no" >&6 | ||
15027 | fi | ||
15028 | |||
15029 | if test -z "$PROG_NETSTAT" ; then | ||
15030 | PROG_NETSTAT="undef" | ||
15031 | fi | ||
15032 | |||
15033 | |||
15034 | |||
15035 | # Extract the first word of "arp", so it can be a program name with args. | ||
15036 | set dummy arp; ac_word=$2 | ||
15037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15039 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
15040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15041 | else | ||
15042 | case $PROG_ARP in | ||
15043 | [\\/]* | ?:[\\/]*) | ||
15044 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
15045 | ;; | ||
15046 | *) | ||
15047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15048 | for as_dir in $PATH | ||
15049 | do | ||
15050 | IFS=$as_save_IFS | ||
15051 | test -z "$as_dir" && as_dir=. | ||
15052 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15054 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
15055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15056 | break 2 | ||
15057 | fi | ||
15058 | done | ||
15059 | done | ||
15060 | |||
15061 | ;; | ||
15062 | esac | ||
15063 | fi | ||
15064 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
15065 | |||
15066 | if test -n "$PROG_ARP"; then | ||
15067 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
15068 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
15069 | else | ||
15070 | echo "$as_me:$LINENO: result: no" >&5 | ||
15071 | echo "${ECHO_T}no" >&6 | ||
15072 | fi | ||
15073 | |||
15074 | if test -z "$PROG_ARP" ; then | ||
15075 | PROG_ARP="undef" | ||
15076 | fi | ||
15077 | |||
15078 | |||
15079 | |||
15080 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
15081 | set dummy ifconfig; ac_word=$2 | ||
15082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15084 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
15085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15086 | else | ||
15087 | case $PROG_IFCONFIG in | ||
15088 | [\\/]* | ?:[\\/]*) | ||
15089 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
15090 | ;; | ||
15091 | *) | ||
15092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15093 | for as_dir in $PATH | ||
15094 | do | ||
15095 | IFS=$as_save_IFS | ||
15096 | test -z "$as_dir" && as_dir=. | ||
15097 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15099 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
15100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15101 | break 2 | ||
15102 | fi | ||
15103 | done | ||
15104 | done | ||
15105 | |||
15106 | ;; | ||
15107 | esac | ||
15108 | fi | ||
15109 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
15110 | |||
15111 | if test -n "$PROG_IFCONFIG"; then | ||
15112 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
15113 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
15114 | else | ||
15115 | echo "$as_me:$LINENO: result: no" >&5 | ||
15116 | echo "${ECHO_T}no" >&6 | ||
15117 | fi | ||
15118 | |||
15119 | if test -z "$PROG_IFCONFIG" ; then | ||
15120 | PROG_IFCONFIG="undef" | ||
15121 | fi | ||
15122 | |||
15123 | |||
15124 | |||
15125 | # Extract the first word of "jstat", so it can be a program name with args. | ||
15126 | set dummy jstat; ac_word=$2 | ||
15127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15129 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
15130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15131 | else | ||
15132 | case $PROG_JSTAT in | ||
15133 | [\\/]* | ?:[\\/]*) | ||
15134 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
15135 | ;; | ||
15136 | *) | ||
15137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15138 | for as_dir in $PATH | ||
15139 | do | ||
15140 | IFS=$as_save_IFS | ||
15141 | test -z "$as_dir" && as_dir=. | ||
15142 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15144 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15146 | break 2 | ||
15147 | fi | ||
15148 | done | ||
15149 | done | ||
15150 | |||
15151 | ;; | ||
15152 | esac | ||
15153 | fi | ||
15154 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
15155 | |||
15156 | if test -n "$PROG_JSTAT"; then | ||
15157 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
15158 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
15159 | else | ||
15160 | echo "$as_me:$LINENO: result: no" >&5 | ||
15161 | echo "${ECHO_T}no" >&6 | ||
15162 | fi | ||
15163 | |||
15164 | if test -z "$PROG_JSTAT" ; then | ||
15165 | PROG_JSTAT="undef" | ||
15166 | fi | ||
15167 | |||
15168 | |||
15169 | |||
15170 | # Extract the first word of "ps", so it can be a program name with args. | ||
15171 | set dummy ps; ac_word=$2 | ||
15172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15174 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
15175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15176 | else | ||
15177 | case $PROG_PS in | ||
15178 | [\\/]* | ?:[\\/]*) | ||
15179 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
15180 | ;; | ||
15181 | *) | ||
15182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15183 | for as_dir in $PATH | ||
15184 | do | ||
15185 | IFS=$as_save_IFS | ||
15186 | test -z "$as_dir" && as_dir=. | ||
15187 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15189 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
15190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15191 | break 2 | ||
15192 | fi | ||
15193 | done | ||
15194 | done | ||
15195 | |||
15196 | ;; | ||
15197 | esac | ||
15198 | fi | ||
15199 | PROG_PS=$ac_cv_path_PROG_PS | ||
15200 | |||
15201 | if test -n "$PROG_PS"; then | ||
15202 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
15203 | echo "${ECHO_T}$PROG_PS" >&6 | ||
15204 | else | ||
15205 | echo "$as_me:$LINENO: result: no" >&5 | ||
15206 | echo "${ECHO_T}no" >&6 | ||
15207 | fi | ||
15208 | |||
15209 | if test -z "$PROG_PS" ; then | ||
15210 | PROG_PS="undef" | ||
15211 | fi | ||
15212 | |||
15213 | |||
15214 | |||
15215 | # Extract the first word of "sar", so it can be a program name with args. | ||
15216 | set dummy sar; ac_word=$2 | ||
15217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15219 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
15220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15221 | else | ||
15222 | case $PROG_SAR in | ||
15223 | [\\/]* | ?:[\\/]*) | ||
15224 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
15225 | ;; | ||
15226 | *) | ||
15227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15228 | for as_dir in $PATH | ||
15229 | do | ||
15230 | IFS=$as_save_IFS | ||
15231 | test -z "$as_dir" && as_dir=. | ||
15232 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15233 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15234 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
15235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15236 | break 2 | ||
15237 | fi | ||
15238 | done | ||
15239 | done | ||
15240 | |||
15241 | ;; | ||
15242 | esac | ||
15243 | fi | ||
15244 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
15245 | |||
15246 | if test -n "$PROG_SAR"; then | ||
15247 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
15248 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
15249 | else | ||
15250 | echo "$as_me:$LINENO: result: no" >&5 | ||
15251 | echo "${ECHO_T}no" >&6 | ||
15252 | fi | ||
15253 | |||
15254 | if test -z "$PROG_SAR" ; then | ||
15255 | PROG_SAR="undef" | ||
15256 | fi | ||
15257 | |||
15258 | |||
15259 | |||
15260 | # Extract the first word of "w", so it can be a program name with args. | ||
15261 | set dummy w; ac_word=$2 | ||
15262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15264 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
15265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15266 | else | ||
15267 | case $PROG_W in | ||
15268 | [\\/]* | ?:[\\/]*) | ||
15269 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
15270 | ;; | ||
15271 | *) | ||
15272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15273 | for as_dir in $PATH | ||
15274 | do | ||
15275 | IFS=$as_save_IFS | ||
15276 | test -z "$as_dir" && as_dir=. | ||
15277 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15279 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
15280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15281 | break 2 | ||
15282 | fi | ||
15283 | done | ||
15284 | done | ||
15285 | |||
15286 | ;; | ||
15287 | esac | ||
15288 | fi | ||
15289 | PROG_W=$ac_cv_path_PROG_W | ||
15290 | |||
15291 | if test -n "$PROG_W"; then | ||
15292 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
15293 | echo "${ECHO_T}$PROG_W" >&6 | ||
15294 | else | ||
15295 | echo "$as_me:$LINENO: result: no" >&5 | ||
15296 | echo "${ECHO_T}no" >&6 | ||
15297 | fi | ||
15298 | |||
15299 | if test -z "$PROG_W" ; then | ||
15300 | PROG_W="undef" | ||
15301 | fi | ||
15302 | |||
15303 | |||
15304 | |||
15305 | # Extract the first word of "who", so it can be a program name with args. | ||
15306 | set dummy who; ac_word=$2 | ||
15307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15309 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
15310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15311 | else | ||
15312 | case $PROG_WHO in | ||
15313 | [\\/]* | ?:[\\/]*) | ||
15314 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
15315 | ;; | ||
15316 | *) | ||
15317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15318 | for as_dir in $PATH | ||
15319 | do | ||
15320 | IFS=$as_save_IFS | ||
15321 | test -z "$as_dir" && as_dir=. | ||
15322 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15324 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
15325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15326 | break 2 | ||
15327 | fi | ||
15328 | done | ||
15329 | done | ||
15330 | |||
15331 | ;; | ||
15332 | esac | ||
15333 | fi | ||
15334 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
15335 | |||
15336 | if test -n "$PROG_WHO"; then | ||
15337 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
15338 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
15339 | else | ||
15340 | echo "$as_me:$LINENO: result: no" >&5 | ||
15341 | echo "${ECHO_T}no" >&6 | ||
15342 | fi | ||
15343 | |||
15344 | if test -z "$PROG_WHO" ; then | ||
15345 | PROG_WHO="undef" | ||
15346 | fi | ||
15347 | |||
15348 | |||
15349 | |||
15350 | # Extract the first word of "last", so it can be a program name with args. | ||
15351 | set dummy last; ac_word=$2 | ||
15352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15354 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
15355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15356 | else | ||
15357 | case $PROG_LAST in | ||
15358 | [\\/]* | ?:[\\/]*) | ||
15359 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
15360 | ;; | ||
15361 | *) | ||
15362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15363 | for as_dir in $PATH | ||
15364 | do | ||
15365 | IFS=$as_save_IFS | ||
15366 | test -z "$as_dir" && as_dir=. | ||
15367 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15369 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
15370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15371 | break 2 | ||
15372 | fi | ||
15373 | done | ||
15374 | done | ||
15375 | |||
15376 | ;; | ||
15377 | esac | ||
15378 | fi | ||
15379 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
15380 | |||
15381 | if test -n "$PROG_LAST"; then | ||
15382 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
15383 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
15384 | else | ||
15385 | echo "$as_me:$LINENO: result: no" >&5 | ||
15386 | echo "${ECHO_T}no" >&6 | ||
15387 | fi | ||
15388 | |||
15389 | if test -z "$PROG_LAST" ; then | ||
15390 | PROG_LAST="undef" | ||
15391 | fi | ||
15392 | |||
15393 | |||
15394 | |||
15395 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
15396 | set dummy lastlog; ac_word=$2 | ||
15397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15399 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
15400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15401 | else | ||
15402 | case $PROG_LASTLOG in | ||
15403 | [\\/]* | ?:[\\/]*) | ||
15404 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
15405 | ;; | ||
15406 | *) | ||
15407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15408 | for as_dir in $PATH | ||
15409 | do | ||
15410 | IFS=$as_save_IFS | ||
15411 | test -z "$as_dir" && as_dir=. | ||
15412 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15414 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
15415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15416 | break 2 | ||
15417 | fi | ||
15418 | done | ||
15419 | done | ||
15420 | |||
15421 | ;; | ||
15422 | esac | ||
15423 | fi | ||
15424 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
15425 | |||
15426 | if test -n "$PROG_LASTLOG"; then | ||
15427 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
15428 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
15429 | else | ||
15430 | echo "$as_me:$LINENO: result: no" >&5 | ||
15431 | echo "${ECHO_T}no" >&6 | ||
15432 | fi | ||
15433 | |||
15434 | if test -z "$PROG_LASTLOG" ; then | ||
15435 | PROG_LASTLOG="undef" | ||
15436 | fi | ||
15437 | |||
15438 | |||
15439 | |||
15440 | # Extract the first word of "df", so it can be a program name with args. | ||
15441 | set dummy df; ac_word=$2 | ||
15442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15444 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
15445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15446 | else | ||
15447 | case $PROG_DF in | ||
15448 | [\\/]* | ?:[\\/]*) | ||
15449 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
15450 | ;; | ||
15451 | *) | ||
15452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15453 | for as_dir in $PATH | ||
15454 | do | ||
15455 | IFS=$as_save_IFS | ||
15456 | test -z "$as_dir" && as_dir=. | ||
15457 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15459 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
15460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15461 | break 2 | ||
15462 | fi | ||
15463 | done | ||
15464 | done | ||
15465 | |||
15466 | ;; | ||
15467 | esac | ||
15468 | fi | ||
15469 | PROG_DF=$ac_cv_path_PROG_DF | ||
15470 | |||
15471 | if test -n "$PROG_DF"; then | ||
15472 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
15473 | echo "${ECHO_T}$PROG_DF" >&6 | ||
15474 | else | ||
15475 | echo "$as_me:$LINENO: result: no" >&5 | ||
15476 | echo "${ECHO_T}no" >&6 | ||
15477 | fi | ||
15478 | |||
15479 | if test -z "$PROG_DF" ; then | ||
15480 | PROG_DF="undef" | ||
15481 | fi | ||
15482 | |||
15483 | |||
15484 | |||
15485 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
15486 | set dummy vmstat; ac_word=$2 | ||
15487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15489 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
15490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15491 | else | ||
15492 | case $PROG_VMSTAT in | ||
15493 | [\\/]* | ?:[\\/]*) | ||
15494 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
15495 | ;; | ||
15496 | *) | ||
15497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15498 | for as_dir in $PATH | ||
15499 | do | ||
15500 | IFS=$as_save_IFS | ||
15501 | test -z "$as_dir" && as_dir=. | ||
15502 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15504 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
15505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15506 | break 2 | ||
15507 | fi | ||
15508 | done | ||
15509 | done | ||
15510 | |||
15511 | ;; | ||
15512 | esac | ||
15513 | fi | ||
15514 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
15515 | |||
15516 | if test -n "$PROG_VMSTAT"; then | ||
15517 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
15518 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
15519 | else | ||
15520 | echo "$as_me:$LINENO: result: no" >&5 | ||
15521 | echo "${ECHO_T}no" >&6 | ||
15522 | fi | ||
15523 | |||
15524 | if test -z "$PROG_VMSTAT" ; then | ||
15525 | PROG_VMSTAT="undef" | ||
15526 | fi | ||
15527 | |||
15528 | |||
15529 | |||
15530 | # Extract the first word of "uptime", so it can be a program name with args. | ||
15531 | set dummy uptime; ac_word=$2 | ||
15532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15534 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
15535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15536 | else | ||
15537 | case $PROG_UPTIME in | ||
15538 | [\\/]* | ?:[\\/]*) | ||
15539 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
15540 | ;; | ||
15541 | *) | ||
15542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15543 | for as_dir in $PATH | ||
15544 | do | ||
15545 | IFS=$as_save_IFS | ||
15546 | test -z "$as_dir" && as_dir=. | ||
15547 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15549 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
15550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15551 | break 2 | ||
15552 | fi | ||
15553 | done | ||
15554 | done | ||
15555 | |||
15556 | ;; | ||
15557 | esac | ||
15558 | fi | ||
15559 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
15560 | |||
15561 | if test -n "$PROG_UPTIME"; then | ||
15562 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
15563 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
15564 | else | ||
15565 | echo "$as_me:$LINENO: result: no" >&5 | ||
15566 | echo "${ECHO_T}no" >&6 | ||
15567 | fi | ||
15568 | |||
15569 | if test -z "$PROG_UPTIME" ; then | ||
15570 | PROG_UPTIME="undef" | ||
15571 | fi | ||
15572 | |||
15573 | |||
15574 | |||
15575 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
15576 | set dummy ipcs; ac_word=$2 | ||
15577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15579 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
15580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15581 | else | ||
15582 | case $PROG_IPCS in | ||
15583 | [\\/]* | ?:[\\/]*) | ||
15584 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
15585 | ;; | ||
15586 | *) | ||
15587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15588 | for as_dir in $PATH | ||
15589 | do | ||
15590 | IFS=$as_save_IFS | ||
15591 | test -z "$as_dir" && as_dir=. | ||
15592 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15593 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15594 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
15595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15596 | break 2 | ||
15597 | fi | ||
15598 | done | ||
15599 | done | ||
15600 | |||
15601 | ;; | ||
15602 | esac | ||
15603 | fi | ||
15604 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
15605 | |||
15606 | if test -n "$PROG_IPCS"; then | ||
15607 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
15608 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
15609 | else | ||
15610 | echo "$as_me:$LINENO: result: no" >&5 | ||
15611 | echo "${ECHO_T}no" >&6 | ||
15612 | fi | ||
15613 | |||
15614 | if test -z "$PROG_IPCS" ; then | ||
15615 | PROG_IPCS="undef" | ||
15616 | fi | ||
15617 | |||
15618 | |||
15619 | |||
15620 | # Extract the first word of "tail", so it can be a program name with args. | ||
15621 | set dummy tail; ac_word=$2 | ||
15622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
15623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
15624 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
15625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15626 | else | ||
15627 | case $PROG_TAIL in | ||
15628 | [\\/]* | ?:[\\/]*) | ||
15629 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
15630 | ;; | ||
15631 | *) | ||
15632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15633 | for as_dir in $PATH | ||
15634 | do | ||
15635 | IFS=$as_save_IFS | ||
15636 | test -z "$as_dir" && as_dir=. | ||
15637 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
15639 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
15640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15641 | break 2 | ||
15642 | fi | ||
15643 | done | ||
15644 | done | ||
15645 | |||
15646 | ;; | ||
15647 | esac | ||
15648 | fi | ||
15649 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
15650 | |||
15651 | if test -n "$PROG_TAIL"; then | ||
15652 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
15653 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
15654 | else | ||
15655 | echo "$as_me:$LINENO: result: no" >&5 | ||
15656 | echo "${ECHO_T}no" >&6 | ||
15657 | fi | ||
15658 | |||
15659 | if test -z "$PROG_TAIL" ; then | ||
15660 | PROG_TAIL="undef" | ||
15661 | fi | ||
15662 | |||
15663 | |||
15664 | # restore PATH | ||
15665 | PATH=$OPATH | ||
15666 | |||
15667 | # Where does ssh-rand-helper get its randomness from? | ||
15668 | INSTALL_SSH_PRNG_CMDS="" | ||
15669 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
15670 | if test ! -z "$PRNGD_PORT" ; then | ||
15671 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
15672 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
15673 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
15674 | else | ||
15675 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
15676 | RAND_HELPER_CMDHASH=yes | ||
15677 | INSTALL_SSH_PRNG_CMDS="yes" | ||
15678 | fi | ||
15679 | fi | ||
15680 | |||
15681 | |||
15682 | |||
15683 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
15684 | if test ! -z "$SONY" ; then | ||
15685 | LIBS="$LIBS -liberty"; | ||
15686 | fi | ||
15687 | |||
15688 | # Checks for data types | ||
15689 | echo "$as_me:$LINENO: checking for char" >&5 | ||
15690 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
15691 | if test "${ac_cv_type_char+set}" = set; then | ||
15692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15693 | else | ||
15694 | cat >conftest.$ac_ext <<_ACEOF | ||
15695 | /* confdefs.h. */ | ||
15696 | _ACEOF | ||
15697 | cat confdefs.h >>conftest.$ac_ext | ||
15698 | cat >>conftest.$ac_ext <<_ACEOF | ||
15699 | /* end confdefs.h. */ | ||
15700 | $ac_includes_default | ||
15701 | int | ||
15702 | main () | ||
15703 | { | ||
15704 | if ((char *) 0) | ||
15705 | return 0; | ||
15706 | if (sizeof (char)) | ||
15707 | return 0; | ||
15708 | ; | ||
15709 | return 0; | ||
15710 | } | ||
15711 | _ACEOF | ||
15712 | rm -f conftest.$ac_objext | ||
15713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15714 | (eval $ac_compile) 2>conftest.er1 | ||
15715 | ac_status=$? | ||
15716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15717 | rm -f conftest.er1 | ||
15718 | cat conftest.err >&5 | ||
15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15720 | (exit $ac_status); } && | ||
15721 | { ac_try='test -z "$ac_c_werror_flag" | ||
15722 | || test ! -s conftest.err' | ||
15723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15724 | (eval $ac_try) 2>&5 | ||
15725 | ac_status=$? | ||
15726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15727 | (exit $ac_status); }; } && | ||
15728 | { ac_try='test -s conftest.$ac_objext' | ||
15729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15730 | (eval $ac_try) 2>&5 | ||
15731 | ac_status=$? | ||
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15733 | (exit $ac_status); }; }; then | ||
15734 | ac_cv_type_char=yes | ||
15735 | else | ||
15736 | echo "$as_me: failed program was:" >&5 | ||
15737 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15738 | |||
15739 | ac_cv_type_char=no | ||
15740 | fi | ||
15741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15742 | fi | ||
15743 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
15744 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
15745 | |||
15746 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
15747 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
15748 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
15749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15750 | else | ||
15751 | if test "$ac_cv_type_char" = yes; then | ||
15752 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15753 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15754 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15755 | # This bug is HP SR number 8606223364. | ||
15756 | if test "$cross_compiling" = yes; then | ||
15757 | # Depending upon the size, compute the lo and hi bounds. | ||
15758 | cat >conftest.$ac_ext <<_ACEOF | ||
15759 | /* confdefs.h. */ | ||
15760 | _ACEOF | ||
15761 | cat confdefs.h >>conftest.$ac_ext | ||
15762 | cat >>conftest.$ac_ext <<_ACEOF | ||
15763 | /* end confdefs.h. */ | ||
15764 | $ac_includes_default | ||
15765 | int | ||
15766 | main () | ||
15767 | { | ||
15768 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
15769 | test_array [0] = 0 | ||
15770 | |||
15771 | ; | ||
15772 | return 0; | ||
15773 | } | ||
15774 | _ACEOF | ||
15775 | rm -f conftest.$ac_objext | ||
15776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15777 | (eval $ac_compile) 2>conftest.er1 | ||
15778 | ac_status=$? | ||
15779 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15780 | rm -f conftest.er1 | ||
15781 | cat conftest.err >&5 | ||
15782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15783 | (exit $ac_status); } && | ||
15784 | { ac_try='test -z "$ac_c_werror_flag" | ||
15785 | || test ! -s conftest.err' | ||
15786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15787 | (eval $ac_try) 2>&5 | ||
15788 | ac_status=$? | ||
15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15790 | (exit $ac_status); }; } && | ||
15791 | { ac_try='test -s conftest.$ac_objext' | ||
15792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15793 | (eval $ac_try) 2>&5 | ||
15794 | ac_status=$? | ||
15795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15796 | (exit $ac_status); }; }; then | ||
15797 | ac_lo=0 ac_mid=0 | ||
15798 | while :; do | ||
15799 | cat >conftest.$ac_ext <<_ACEOF | ||
15800 | /* confdefs.h. */ | ||
15801 | _ACEOF | ||
15802 | cat confdefs.h >>conftest.$ac_ext | ||
15803 | cat >>conftest.$ac_ext <<_ACEOF | ||
15804 | /* end confdefs.h. */ | ||
15805 | $ac_includes_default | ||
15806 | int | ||
15807 | main () | ||
15808 | { | ||
15809 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15810 | test_array [0] = 0 | ||
15811 | |||
15812 | ; | ||
15813 | return 0; | ||
15814 | } | ||
15815 | _ACEOF | ||
15816 | rm -f conftest.$ac_objext | ||
15817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15818 | (eval $ac_compile) 2>conftest.er1 | ||
15819 | ac_status=$? | ||
15820 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15821 | rm -f conftest.er1 | ||
15822 | cat conftest.err >&5 | ||
15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15824 | (exit $ac_status); } && | ||
15825 | { ac_try='test -z "$ac_c_werror_flag" | ||
15826 | || test ! -s conftest.err' | ||
15827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15828 | (eval $ac_try) 2>&5 | ||
15829 | ac_status=$? | ||
15830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15831 | (exit $ac_status); }; } && | ||
15832 | { ac_try='test -s conftest.$ac_objext' | ||
15833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15834 | (eval $ac_try) 2>&5 | ||
15835 | ac_status=$? | ||
15836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15837 | (exit $ac_status); }; }; then | ||
15838 | ac_hi=$ac_mid; break | ||
15839 | else | ||
15840 | echo "$as_me: failed program was:" >&5 | ||
15841 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15842 | |||
15843 | ac_lo=`expr $ac_mid + 1` | ||
15844 | if test $ac_lo -le $ac_mid; then | ||
15845 | ac_lo= ac_hi= | ||
15846 | break | ||
15847 | fi | ||
15848 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15849 | fi | ||
15850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15851 | done | ||
15852 | else | ||
15853 | echo "$as_me: failed program was:" >&5 | ||
15854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15855 | |||
15856 | cat >conftest.$ac_ext <<_ACEOF | ||
15857 | /* confdefs.h. */ | ||
15858 | _ACEOF | ||
15859 | cat confdefs.h >>conftest.$ac_ext | ||
15860 | cat >>conftest.$ac_ext <<_ACEOF | ||
15861 | /* end confdefs.h. */ | ||
15862 | $ac_includes_default | ||
15863 | int | ||
15864 | main () | ||
15865 | { | ||
15866 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
15867 | test_array [0] = 0 | ||
15868 | |||
15869 | ; | ||
15870 | return 0; | ||
15871 | } | ||
15872 | _ACEOF | ||
15873 | rm -f conftest.$ac_objext | ||
15874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15875 | (eval $ac_compile) 2>conftest.er1 | ||
15876 | ac_status=$? | ||
15877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15878 | rm -f conftest.er1 | ||
15879 | cat conftest.err >&5 | ||
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15881 | (exit $ac_status); } && | ||
15882 | { ac_try='test -z "$ac_c_werror_flag" | ||
15883 | || test ! -s conftest.err' | ||
15884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15885 | (eval $ac_try) 2>&5 | ||
15886 | ac_status=$? | ||
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15888 | (exit $ac_status); }; } && | ||
15889 | { ac_try='test -s conftest.$ac_objext' | ||
15890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15891 | (eval $ac_try) 2>&5 | ||
15892 | ac_status=$? | ||
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15894 | (exit $ac_status); }; }; then | ||
15895 | ac_hi=-1 ac_mid=-1 | ||
15896 | while :; do | ||
15897 | cat >conftest.$ac_ext <<_ACEOF | ||
15898 | /* confdefs.h. */ | ||
15899 | _ACEOF | ||
15900 | cat confdefs.h >>conftest.$ac_ext | ||
15901 | cat >>conftest.$ac_ext <<_ACEOF | ||
15902 | /* end confdefs.h. */ | ||
15903 | $ac_includes_default | ||
15904 | int | ||
15905 | main () | ||
15906 | { | ||
15907 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
15908 | test_array [0] = 0 | ||
15909 | |||
15910 | ; | ||
15911 | return 0; | ||
15912 | } | ||
15913 | _ACEOF | ||
15914 | rm -f conftest.$ac_objext | ||
15915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15916 | (eval $ac_compile) 2>conftest.er1 | ||
15917 | ac_status=$? | ||
15918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15919 | rm -f conftest.er1 | ||
15920 | cat conftest.err >&5 | ||
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15922 | (exit $ac_status); } && | ||
15923 | { ac_try='test -z "$ac_c_werror_flag" | ||
15924 | || test ! -s conftest.err' | ||
15925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15926 | (eval $ac_try) 2>&5 | ||
15927 | ac_status=$? | ||
15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15929 | (exit $ac_status); }; } && | ||
15930 | { ac_try='test -s conftest.$ac_objext' | ||
15931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15932 | (eval $ac_try) 2>&5 | ||
15933 | ac_status=$? | ||
15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15935 | (exit $ac_status); }; }; then | ||
15936 | ac_lo=$ac_mid; break | ||
15937 | else | ||
15938 | echo "$as_me: failed program was:" >&5 | ||
15939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15940 | |||
15941 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15942 | if test $ac_mid -le $ac_hi; then | ||
15943 | ac_lo= ac_hi= | ||
15944 | break | ||
15945 | fi | ||
15946 | ac_mid=`expr 2 '*' $ac_mid` | ||
15947 | fi | ||
15948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15949 | done | ||
15950 | else | ||
15951 | echo "$as_me: failed program was:" >&5 | ||
15952 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15953 | |||
15954 | ac_lo= ac_hi= | ||
15955 | fi | ||
15956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15957 | fi | ||
15958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15959 | # Binary search between lo and hi bounds. | ||
15960 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15961 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15962 | cat >conftest.$ac_ext <<_ACEOF | ||
15963 | /* confdefs.h. */ | ||
15964 | _ACEOF | ||
15965 | cat confdefs.h >>conftest.$ac_ext | ||
15966 | cat >>conftest.$ac_ext <<_ACEOF | ||
15967 | /* end confdefs.h. */ | ||
15968 | $ac_includes_default | ||
15969 | int | ||
15970 | main () | ||
15971 | { | ||
15972 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
15973 | test_array [0] = 0 | ||
15974 | |||
15975 | ; | ||
15976 | return 0; | ||
15977 | } | ||
15978 | _ACEOF | ||
15979 | rm -f conftest.$ac_objext | ||
15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15981 | (eval $ac_compile) 2>conftest.er1 | ||
15982 | ac_status=$? | ||
15983 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15984 | rm -f conftest.er1 | ||
15985 | cat conftest.err >&5 | ||
15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15987 | (exit $ac_status); } && | ||
15988 | { ac_try='test -z "$ac_c_werror_flag" | ||
15989 | || test ! -s conftest.err' | ||
15990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15991 | (eval $ac_try) 2>&5 | ||
15992 | ac_status=$? | ||
15993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15994 | (exit $ac_status); }; } && | ||
15995 | { ac_try='test -s conftest.$ac_objext' | ||
15996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15997 | (eval $ac_try) 2>&5 | ||
15998 | ac_status=$? | ||
15999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16000 | (exit $ac_status); }; }; then | ||
16001 | ac_hi=$ac_mid | ||
16002 | else | ||
16003 | echo "$as_me: failed program was:" >&5 | ||
16004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16005 | |||
16006 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16007 | fi | ||
16008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16009 | done | ||
16010 | case $ac_lo in | ||
16011 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
16012 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
16013 | See \`config.log' for more details." >&5 | ||
16014 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
16015 | See \`config.log' for more details." >&2;} | ||
16016 | { (exit 1); exit 1; }; } ;; | ||
16017 | esac | ||
16018 | else | ||
16019 | if test "$cross_compiling" = yes; then | ||
16020 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16021 | See \`config.log' for more details." >&5 | ||
16022 | echo "$as_me: error: cannot run test program while cross compiling | ||
16023 | See \`config.log' for more details." >&2;} | ||
16024 | { (exit 1); exit 1; }; } | ||
16025 | else | ||
16026 | cat >conftest.$ac_ext <<_ACEOF | ||
16027 | /* confdefs.h. */ | ||
16028 | _ACEOF | ||
16029 | cat confdefs.h >>conftest.$ac_ext | ||
16030 | cat >>conftest.$ac_ext <<_ACEOF | ||
16031 | /* end confdefs.h. */ | ||
16032 | $ac_includes_default | ||
16033 | long longval () { return (long) (sizeof (char)); } | ||
16034 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
16035 | #include <stdio.h> | ||
16036 | #include <stdlib.h> | ||
16037 | int | ||
16038 | main () | ||
16039 | { | ||
16040 | |||
16041 | FILE *f = fopen ("conftest.val", "w"); | ||
16042 | if (! f) | ||
16043 | exit (1); | ||
16044 | if (((long) (sizeof (char))) < 0) | ||
16045 | { | ||
16046 | long i = longval (); | ||
16047 | if (i != ((long) (sizeof (char)))) | ||
16048 | exit (1); | ||
16049 | fprintf (f, "%ld\n", i); | ||
16050 | } | ||
16051 | else | ||
16052 | { | ||
16053 | unsigned long i = ulongval (); | ||
16054 | if (i != ((long) (sizeof (char)))) | ||
16055 | exit (1); | ||
16056 | fprintf (f, "%lu\n", i); | ||
16057 | } | ||
16058 | exit (ferror (f) || fclose (f) != 0); | ||
16059 | |||
16060 | ; | ||
16061 | return 0; | ||
16062 | } | ||
16063 | _ACEOF | ||
16064 | rm -f conftest$ac_exeext | ||
16065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16066 | (eval $ac_link) 2>&5 | ||
16067 | ac_status=$? | ||
16068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16071 | (eval $ac_try) 2>&5 | ||
16072 | ac_status=$? | ||
16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16074 | (exit $ac_status); }; }; then | ||
16075 | ac_cv_sizeof_char=`cat conftest.val` | ||
16076 | else | ||
16077 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16078 | echo "$as_me: failed program was:" >&5 | ||
16079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16080 | |||
16081 | ( exit $ac_status ) | ||
16082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
16083 | See \`config.log' for more details." >&5 | ||
16084 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
16085 | See \`config.log' for more details." >&2;} | ||
16086 | { (exit 1); exit 1; }; } | ||
16087 | fi | ||
16088 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16089 | fi | ||
16090 | fi | ||
16091 | rm -f conftest.val | ||
16092 | else | ||
16093 | ac_cv_sizeof_char=0 | ||
16094 | fi | ||
16095 | fi | ||
16096 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
16097 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
16098 | cat >>confdefs.h <<_ACEOF | ||
16099 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
16100 | _ACEOF | ||
16101 | |||
16102 | |||
16103 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
16104 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
16105 | if test "${ac_cv_type_short_int+set}" = set; then | ||
16106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16107 | else | ||
16108 | cat >conftest.$ac_ext <<_ACEOF | ||
16109 | /* confdefs.h. */ | ||
16110 | _ACEOF | ||
16111 | cat confdefs.h >>conftest.$ac_ext | ||
16112 | cat >>conftest.$ac_ext <<_ACEOF | ||
16113 | /* end confdefs.h. */ | ||
16114 | $ac_includes_default | ||
16115 | int | ||
16116 | main () | ||
16117 | { | ||
16118 | if ((short int *) 0) | ||
16119 | return 0; | ||
16120 | if (sizeof (short int)) | ||
16121 | return 0; | ||
16122 | ; | ||
16123 | return 0; | ||
16124 | } | ||
16125 | _ACEOF | ||
16126 | rm -f conftest.$ac_objext | ||
16127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16128 | (eval $ac_compile) 2>conftest.er1 | ||
16129 | ac_status=$? | ||
16130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16131 | rm -f conftest.er1 | ||
16132 | cat conftest.err >&5 | ||
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16134 | (exit $ac_status); } && | ||
16135 | { ac_try='test -z "$ac_c_werror_flag" | ||
16136 | || test ! -s conftest.err' | ||
16137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16138 | (eval $ac_try) 2>&5 | ||
16139 | ac_status=$? | ||
16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16141 | (exit $ac_status); }; } && | ||
16142 | { ac_try='test -s conftest.$ac_objext' | ||
16143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16144 | (eval $ac_try) 2>&5 | ||
16145 | ac_status=$? | ||
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16147 | (exit $ac_status); }; }; then | ||
16148 | ac_cv_type_short_int=yes | ||
16149 | else | ||
16150 | echo "$as_me: failed program was:" >&5 | ||
16151 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16152 | |||
16153 | ac_cv_type_short_int=no | ||
16154 | fi | ||
16155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16156 | fi | ||
16157 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
16158 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
16159 | |||
16160 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
16161 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
16162 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
16163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16164 | else | ||
16165 | if test "$ac_cv_type_short_int" = yes; then | ||
16166 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16167 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16168 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16169 | # This bug is HP SR number 8606223364. | ||
16170 | if test "$cross_compiling" = yes; then | ||
16171 | # Depending upon the size, compute the lo and hi bounds. | ||
16172 | cat >conftest.$ac_ext <<_ACEOF | ||
16173 | /* confdefs.h. */ | ||
16174 | _ACEOF | ||
16175 | cat confdefs.h >>conftest.$ac_ext | ||
16176 | cat >>conftest.$ac_ext <<_ACEOF | ||
16177 | /* end confdefs.h. */ | ||
16178 | $ac_includes_default | ||
16179 | int | ||
16180 | main () | ||
16181 | { | ||
16182 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
16183 | test_array [0] = 0 | ||
16184 | |||
16185 | ; | ||
16186 | return 0; | ||
16187 | } | ||
16188 | _ACEOF | ||
16189 | rm -f conftest.$ac_objext | ||
16190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16191 | (eval $ac_compile) 2>conftest.er1 | ||
16192 | ac_status=$? | ||
16193 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16194 | rm -f conftest.er1 | ||
16195 | cat conftest.err >&5 | ||
16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16197 | (exit $ac_status); } && | ||
16198 | { ac_try='test -z "$ac_c_werror_flag" | ||
16199 | || test ! -s conftest.err' | ||
16200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16201 | (eval $ac_try) 2>&5 | ||
16202 | ac_status=$? | ||
16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16204 | (exit $ac_status); }; } && | ||
16205 | { ac_try='test -s conftest.$ac_objext' | ||
16206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16207 | (eval $ac_try) 2>&5 | ||
16208 | ac_status=$? | ||
16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16210 | (exit $ac_status); }; }; then | ||
16211 | ac_lo=0 ac_mid=0 | ||
16212 | while :; do | ||
16213 | cat >conftest.$ac_ext <<_ACEOF | ||
16214 | /* confdefs.h. */ | ||
16215 | _ACEOF | ||
16216 | cat confdefs.h >>conftest.$ac_ext | ||
16217 | cat >>conftest.$ac_ext <<_ACEOF | ||
16218 | /* end confdefs.h. */ | ||
16219 | $ac_includes_default | ||
16220 | int | ||
16221 | main () | ||
16222 | { | ||
16223 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
16224 | test_array [0] = 0 | ||
16225 | |||
16226 | ; | ||
16227 | return 0; | ||
16228 | } | ||
16229 | _ACEOF | ||
16230 | rm -f conftest.$ac_objext | ||
16231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16232 | (eval $ac_compile) 2>conftest.er1 | ||
16233 | ac_status=$? | ||
16234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16235 | rm -f conftest.er1 | ||
16236 | cat conftest.err >&5 | ||
16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16238 | (exit $ac_status); } && | ||
16239 | { ac_try='test -z "$ac_c_werror_flag" | ||
16240 | || test ! -s conftest.err' | ||
16241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16242 | (eval $ac_try) 2>&5 | ||
16243 | ac_status=$? | ||
16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16245 | (exit $ac_status); }; } && | ||
16246 | { ac_try='test -s conftest.$ac_objext' | ||
16247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16248 | (eval $ac_try) 2>&5 | ||
16249 | ac_status=$? | ||
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16251 | (exit $ac_status); }; }; then | ||
16252 | ac_hi=$ac_mid; break | ||
16253 | else | ||
16254 | echo "$as_me: failed program was:" >&5 | ||
16255 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16256 | |||
16257 | ac_lo=`expr $ac_mid + 1` | ||
16258 | if test $ac_lo -le $ac_mid; then | ||
16259 | ac_lo= ac_hi= | ||
16260 | break | ||
16261 | fi | ||
16262 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16263 | fi | ||
16264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16265 | done | ||
16266 | else | ||
16267 | echo "$as_me: failed program was:" >&5 | ||
16268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16269 | |||
16270 | cat >conftest.$ac_ext <<_ACEOF | ||
16271 | /* confdefs.h. */ | ||
16272 | _ACEOF | ||
16273 | cat confdefs.h >>conftest.$ac_ext | ||
16274 | cat >>conftest.$ac_ext <<_ACEOF | ||
16275 | /* end confdefs.h. */ | ||
16276 | $ac_includes_default | ||
16277 | int | ||
16278 | main () | ||
16279 | { | ||
16280 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
16281 | test_array [0] = 0 | ||
16282 | |||
16283 | ; | ||
16284 | return 0; | ||
16285 | } | ||
16286 | _ACEOF | ||
16287 | rm -f conftest.$ac_objext | ||
16288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16289 | (eval $ac_compile) 2>conftest.er1 | ||
16290 | ac_status=$? | ||
16291 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16292 | rm -f conftest.er1 | ||
16293 | cat conftest.err >&5 | ||
16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16295 | (exit $ac_status); } && | ||
16296 | { ac_try='test -z "$ac_c_werror_flag" | ||
16297 | || test ! -s conftest.err' | ||
16298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16299 | (eval $ac_try) 2>&5 | ||
16300 | ac_status=$? | ||
16301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16302 | (exit $ac_status); }; } && | ||
16303 | { ac_try='test -s conftest.$ac_objext' | ||
16304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16305 | (eval $ac_try) 2>&5 | ||
16306 | ac_status=$? | ||
16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16308 | (exit $ac_status); }; }; then | ||
16309 | ac_hi=-1 ac_mid=-1 | ||
16310 | while :; do | ||
16311 | cat >conftest.$ac_ext <<_ACEOF | ||
16312 | /* confdefs.h. */ | ||
16313 | _ACEOF | ||
16314 | cat confdefs.h >>conftest.$ac_ext | ||
16315 | cat >>conftest.$ac_ext <<_ACEOF | ||
16316 | /* end confdefs.h. */ | ||
16317 | $ac_includes_default | ||
16318 | int | ||
16319 | main () | ||
16320 | { | ||
16321 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
16322 | test_array [0] = 0 | ||
16323 | |||
16324 | ; | ||
16325 | return 0; | ||
16326 | } | ||
16327 | _ACEOF | ||
16328 | rm -f conftest.$ac_objext | ||
16329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16330 | (eval $ac_compile) 2>conftest.er1 | ||
16331 | ac_status=$? | ||
16332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16333 | rm -f conftest.er1 | ||
16334 | cat conftest.err >&5 | ||
16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16336 | (exit $ac_status); } && | ||
16337 | { ac_try='test -z "$ac_c_werror_flag" | ||
16338 | || test ! -s conftest.err' | ||
16339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16340 | (eval $ac_try) 2>&5 | ||
16341 | ac_status=$? | ||
16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16343 | (exit $ac_status); }; } && | ||
16344 | { ac_try='test -s conftest.$ac_objext' | ||
16345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16346 | (eval $ac_try) 2>&5 | ||
16347 | ac_status=$? | ||
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16349 | (exit $ac_status); }; }; then | ||
16350 | ac_lo=$ac_mid; break | ||
16351 | else | ||
16352 | echo "$as_me: failed program was:" >&5 | ||
16353 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16354 | |||
16355 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16356 | if test $ac_mid -le $ac_hi; then | ||
16357 | ac_lo= ac_hi= | ||
16358 | break | ||
16359 | fi | ||
16360 | ac_mid=`expr 2 '*' $ac_mid` | ||
16361 | fi | ||
16362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16363 | done | ||
16364 | else | ||
16365 | echo "$as_me: failed program was:" >&5 | ||
16366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16367 | |||
16368 | ac_lo= ac_hi= | ||
16369 | fi | ||
16370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16371 | fi | ||
16372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16373 | # Binary search between lo and hi bounds. | ||
16374 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16375 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16376 | cat >conftest.$ac_ext <<_ACEOF | ||
16377 | /* confdefs.h. */ | ||
16378 | _ACEOF | ||
16379 | cat confdefs.h >>conftest.$ac_ext | ||
16380 | cat >>conftest.$ac_ext <<_ACEOF | ||
16381 | /* end confdefs.h. */ | ||
16382 | $ac_includes_default | ||
16383 | int | ||
16384 | main () | ||
16385 | { | ||
16386 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
16387 | test_array [0] = 0 | ||
16388 | |||
16389 | ; | ||
16390 | return 0; | ||
16391 | } | ||
16392 | _ACEOF | ||
16393 | rm -f conftest.$ac_objext | ||
16394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16395 | (eval $ac_compile) 2>conftest.er1 | ||
16396 | ac_status=$? | ||
16397 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16398 | rm -f conftest.er1 | ||
16399 | cat conftest.err >&5 | ||
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16401 | (exit $ac_status); } && | ||
16402 | { ac_try='test -z "$ac_c_werror_flag" | ||
16403 | || test ! -s conftest.err' | ||
16404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16405 | (eval $ac_try) 2>&5 | ||
16406 | ac_status=$? | ||
16407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16408 | (exit $ac_status); }; } && | ||
16409 | { ac_try='test -s conftest.$ac_objext' | ||
16410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16411 | (eval $ac_try) 2>&5 | ||
16412 | ac_status=$? | ||
16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16414 | (exit $ac_status); }; }; then | ||
16415 | ac_hi=$ac_mid | ||
16416 | else | ||
16417 | echo "$as_me: failed program was:" >&5 | ||
16418 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16419 | |||
16420 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16421 | fi | ||
16422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16423 | done | ||
16424 | case $ac_lo in | ||
16425 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
16426 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
16427 | See \`config.log' for more details." >&5 | ||
16428 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
16429 | See \`config.log' for more details." >&2;} | ||
16430 | { (exit 1); exit 1; }; } ;; | ||
16431 | esac | ||
16432 | else | ||
16433 | if test "$cross_compiling" = yes; then | ||
16434 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16435 | See \`config.log' for more details." >&5 | ||
16436 | echo "$as_me: error: cannot run test program while cross compiling | ||
16437 | See \`config.log' for more details." >&2;} | ||
16438 | { (exit 1); exit 1; }; } | ||
16439 | else | ||
16440 | cat >conftest.$ac_ext <<_ACEOF | ||
16441 | /* confdefs.h. */ | ||
16442 | _ACEOF | ||
16443 | cat confdefs.h >>conftest.$ac_ext | ||
16444 | cat >>conftest.$ac_ext <<_ACEOF | ||
16445 | /* end confdefs.h. */ | ||
16446 | $ac_includes_default | ||
16447 | long longval () { return (long) (sizeof (short int)); } | ||
16448 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
16449 | #include <stdio.h> | ||
16450 | #include <stdlib.h> | ||
16451 | int | ||
16452 | main () | ||
16453 | { | ||
16454 | |||
16455 | FILE *f = fopen ("conftest.val", "w"); | ||
16456 | if (! f) | ||
16457 | exit (1); | ||
16458 | if (((long) (sizeof (short int))) < 0) | ||
16459 | { | ||
16460 | long i = longval (); | ||
16461 | if (i != ((long) (sizeof (short int)))) | ||
16462 | exit (1); | ||
16463 | fprintf (f, "%ld\n", i); | ||
16464 | } | ||
16465 | else | ||
16466 | { | ||
16467 | unsigned long i = ulongval (); | ||
16468 | if (i != ((long) (sizeof (short int)))) | ||
16469 | exit (1); | ||
16470 | fprintf (f, "%lu\n", i); | ||
16471 | } | ||
16472 | exit (ferror (f) || fclose (f) != 0); | ||
16473 | |||
16474 | ; | ||
16475 | return 0; | ||
16476 | } | ||
16477 | _ACEOF | ||
16478 | rm -f conftest$ac_exeext | ||
16479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16480 | (eval $ac_link) 2>&5 | ||
16481 | ac_status=$? | ||
16482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16485 | (eval $ac_try) 2>&5 | ||
16486 | ac_status=$? | ||
16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16488 | (exit $ac_status); }; }; then | ||
16489 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
16490 | else | ||
16491 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16492 | echo "$as_me: failed program was:" >&5 | ||
16493 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16494 | |||
16495 | ( exit $ac_status ) | ||
16496 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
16497 | See \`config.log' for more details." >&5 | ||
16498 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
16499 | See \`config.log' for more details." >&2;} | ||
16500 | { (exit 1); exit 1; }; } | ||
16501 | fi | ||
16502 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16503 | fi | ||
16504 | fi | ||
16505 | rm -f conftest.val | ||
16506 | else | ||
16507 | ac_cv_sizeof_short_int=0 | ||
16508 | fi | ||
16509 | fi | ||
16510 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
16511 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
16512 | cat >>confdefs.h <<_ACEOF | ||
16513 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
16514 | _ACEOF | ||
16515 | |||
16516 | |||
16517 | echo "$as_me:$LINENO: checking for int" >&5 | ||
16518 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
16519 | if test "${ac_cv_type_int+set}" = set; then | ||
16520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16521 | else | ||
16522 | cat >conftest.$ac_ext <<_ACEOF | ||
16523 | /* confdefs.h. */ | ||
16524 | _ACEOF | ||
16525 | cat confdefs.h >>conftest.$ac_ext | ||
16526 | cat >>conftest.$ac_ext <<_ACEOF | ||
16527 | /* end confdefs.h. */ | ||
16528 | $ac_includes_default | ||
16529 | int | ||
16530 | main () | ||
16531 | { | ||
16532 | if ((int *) 0) | ||
16533 | return 0; | ||
16534 | if (sizeof (int)) | ||
16535 | return 0; | ||
16536 | ; | ||
16537 | return 0; | ||
16538 | } | ||
16539 | _ACEOF | ||
16540 | rm -f conftest.$ac_objext | ||
16541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16542 | (eval $ac_compile) 2>conftest.er1 | ||
16543 | ac_status=$? | ||
16544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16545 | rm -f conftest.er1 | ||
16546 | cat conftest.err >&5 | ||
16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16548 | (exit $ac_status); } && | ||
16549 | { ac_try='test -z "$ac_c_werror_flag" | ||
16550 | || test ! -s conftest.err' | ||
16551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16552 | (eval $ac_try) 2>&5 | ||
16553 | ac_status=$? | ||
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16555 | (exit $ac_status); }; } && | ||
16556 | { ac_try='test -s conftest.$ac_objext' | ||
16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16558 | (eval $ac_try) 2>&5 | ||
16559 | ac_status=$? | ||
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16561 | (exit $ac_status); }; }; then | ||
16562 | ac_cv_type_int=yes | ||
16563 | else | ||
16564 | echo "$as_me: failed program was:" >&5 | ||
16565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16566 | |||
16567 | ac_cv_type_int=no | ||
16568 | fi | ||
16569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16570 | fi | ||
16571 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
16572 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
16573 | |||
16574 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
16575 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
16576 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
16577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16578 | else | ||
16579 | if test "$ac_cv_type_int" = yes; then | ||
16580 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16583 | # This bug is HP SR number 8606223364. | ||
16584 | if test "$cross_compiling" = yes; then | ||
16585 | # Depending upon the size, compute the lo and hi bounds. | ||
16586 | cat >conftest.$ac_ext <<_ACEOF | ||
16587 | /* confdefs.h. */ | ||
16588 | _ACEOF | ||
16589 | cat confdefs.h >>conftest.$ac_ext | ||
16590 | cat >>conftest.$ac_ext <<_ACEOF | ||
16591 | /* end confdefs.h. */ | ||
16592 | $ac_includes_default | ||
16593 | int | ||
16594 | main () | ||
16595 | { | ||
16596 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
16597 | test_array [0] = 0 | ||
16598 | |||
16599 | ; | ||
16600 | return 0; | ||
16601 | } | ||
16602 | _ACEOF | ||
16603 | rm -f conftest.$ac_objext | ||
16604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16605 | (eval $ac_compile) 2>conftest.er1 | ||
16606 | ac_status=$? | ||
16607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16608 | rm -f conftest.er1 | ||
16609 | cat conftest.err >&5 | ||
16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16611 | (exit $ac_status); } && | ||
16612 | { ac_try='test -z "$ac_c_werror_flag" | ||
16613 | || test ! -s conftest.err' | ||
16614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16615 | (eval $ac_try) 2>&5 | ||
16616 | ac_status=$? | ||
16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16618 | (exit $ac_status); }; } && | ||
16619 | { ac_try='test -s conftest.$ac_objext' | ||
16620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16621 | (eval $ac_try) 2>&5 | ||
16622 | ac_status=$? | ||
16623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16624 | (exit $ac_status); }; }; then | ||
16625 | ac_lo=0 ac_mid=0 | ||
16626 | while :; do | ||
16627 | cat >conftest.$ac_ext <<_ACEOF | ||
16628 | /* confdefs.h. */ | ||
16629 | _ACEOF | ||
16630 | cat confdefs.h >>conftest.$ac_ext | ||
16631 | cat >>conftest.$ac_ext <<_ACEOF | ||
16632 | /* end confdefs.h. */ | ||
16633 | $ac_includes_default | ||
16634 | int | ||
16635 | main () | ||
16636 | { | ||
16637 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16638 | test_array [0] = 0 | ||
16639 | |||
16640 | ; | ||
16641 | return 0; | ||
16642 | } | ||
16643 | _ACEOF | ||
16644 | rm -f conftest.$ac_objext | ||
16645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16646 | (eval $ac_compile) 2>conftest.er1 | ||
16647 | ac_status=$? | ||
16648 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16649 | rm -f conftest.er1 | ||
16650 | cat conftest.err >&5 | ||
16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16652 | (exit $ac_status); } && | ||
16653 | { ac_try='test -z "$ac_c_werror_flag" | ||
16654 | || test ! -s conftest.err' | ||
16655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16656 | (eval $ac_try) 2>&5 | ||
16657 | ac_status=$? | ||
16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16659 | (exit $ac_status); }; } && | ||
16660 | { ac_try='test -s conftest.$ac_objext' | ||
16661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16662 | (eval $ac_try) 2>&5 | ||
16663 | ac_status=$? | ||
16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16665 | (exit $ac_status); }; }; then | ||
16666 | ac_hi=$ac_mid; break | ||
16667 | else | ||
16668 | echo "$as_me: failed program was:" >&5 | ||
16669 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16670 | |||
16671 | ac_lo=`expr $ac_mid + 1` | ||
16672 | if test $ac_lo -le $ac_mid; then | ||
16673 | ac_lo= ac_hi= | ||
16674 | break | ||
16675 | fi | ||
16676 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16677 | fi | ||
16678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16679 | done | ||
16680 | else | ||
16681 | echo "$as_me: failed program was:" >&5 | ||
16682 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16683 | |||
16684 | cat >conftest.$ac_ext <<_ACEOF | ||
16685 | /* confdefs.h. */ | ||
16686 | _ACEOF | ||
16687 | cat confdefs.h >>conftest.$ac_ext | ||
16688 | cat >>conftest.$ac_ext <<_ACEOF | ||
16689 | /* end confdefs.h. */ | ||
16690 | $ac_includes_default | ||
16691 | int | ||
16692 | main () | ||
16693 | { | ||
16694 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
16695 | test_array [0] = 0 | ||
16696 | |||
16697 | ; | ||
16698 | return 0; | ||
16699 | } | ||
16700 | _ACEOF | ||
16701 | rm -f conftest.$ac_objext | ||
16702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16703 | (eval $ac_compile) 2>conftest.er1 | ||
16704 | ac_status=$? | ||
16705 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16706 | rm -f conftest.er1 | ||
16707 | cat conftest.err >&5 | ||
16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16709 | (exit $ac_status); } && | ||
16710 | { ac_try='test -z "$ac_c_werror_flag" | ||
16711 | || test ! -s conftest.err' | ||
16712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16713 | (eval $ac_try) 2>&5 | ||
16714 | ac_status=$? | ||
16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16716 | (exit $ac_status); }; } && | ||
16717 | { ac_try='test -s conftest.$ac_objext' | ||
16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16719 | (eval $ac_try) 2>&5 | ||
16720 | ac_status=$? | ||
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16722 | (exit $ac_status); }; }; then | ||
16723 | ac_hi=-1 ac_mid=-1 | ||
16724 | while :; do | ||
16725 | cat >conftest.$ac_ext <<_ACEOF | ||
16726 | /* confdefs.h. */ | ||
16727 | _ACEOF | ||
16728 | cat confdefs.h >>conftest.$ac_ext | ||
16729 | cat >>conftest.$ac_ext <<_ACEOF | ||
16730 | /* end confdefs.h. */ | ||
16731 | $ac_includes_default | ||
16732 | int | ||
16733 | main () | ||
16734 | { | ||
16735 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
16736 | test_array [0] = 0 | ||
16737 | |||
16738 | ; | ||
16739 | return 0; | ||
16740 | } | ||
16741 | _ACEOF | ||
16742 | rm -f conftest.$ac_objext | ||
16743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16744 | (eval $ac_compile) 2>conftest.er1 | ||
16745 | ac_status=$? | ||
16746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16747 | rm -f conftest.er1 | ||
16748 | cat conftest.err >&5 | ||
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16750 | (exit $ac_status); } && | ||
16751 | { ac_try='test -z "$ac_c_werror_flag" | ||
16752 | || test ! -s conftest.err' | ||
16753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16754 | (eval $ac_try) 2>&5 | ||
16755 | ac_status=$? | ||
16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16757 | (exit $ac_status); }; } && | ||
16758 | { ac_try='test -s conftest.$ac_objext' | ||
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16760 | (eval $ac_try) 2>&5 | ||
16761 | ac_status=$? | ||
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16763 | (exit $ac_status); }; }; then | ||
16764 | ac_lo=$ac_mid; break | ||
16765 | else | ||
16766 | echo "$as_me: failed program was:" >&5 | ||
16767 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16768 | |||
16769 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16770 | if test $ac_mid -le $ac_hi; then | ||
16771 | ac_lo= ac_hi= | ||
16772 | break | ||
16773 | fi | ||
16774 | ac_mid=`expr 2 '*' $ac_mid` | ||
16775 | fi | ||
16776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16777 | done | ||
16778 | else | ||
16779 | echo "$as_me: failed program was:" >&5 | ||
16780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16781 | |||
16782 | ac_lo= ac_hi= | ||
16783 | fi | ||
16784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16785 | fi | ||
16786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16787 | # Binary search between lo and hi bounds. | ||
16788 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16790 | cat >conftest.$ac_ext <<_ACEOF | ||
16791 | /* confdefs.h. */ | ||
16792 | _ACEOF | ||
16793 | cat confdefs.h >>conftest.$ac_ext | ||
16794 | cat >>conftest.$ac_ext <<_ACEOF | ||
16795 | /* end confdefs.h. */ | ||
16796 | $ac_includes_default | ||
16797 | int | ||
16798 | main () | ||
16799 | { | ||
16800 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
16801 | test_array [0] = 0 | ||
16802 | |||
16803 | ; | ||
16804 | return 0; | ||
16805 | } | ||
16806 | _ACEOF | ||
16807 | rm -f conftest.$ac_objext | ||
16808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16809 | (eval $ac_compile) 2>conftest.er1 | ||
16810 | ac_status=$? | ||
16811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16812 | rm -f conftest.er1 | ||
16813 | cat conftest.err >&5 | ||
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16815 | (exit $ac_status); } && | ||
16816 | { ac_try='test -z "$ac_c_werror_flag" | ||
16817 | || test ! -s conftest.err' | ||
16818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16819 | (eval $ac_try) 2>&5 | ||
16820 | ac_status=$? | ||
16821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16822 | (exit $ac_status); }; } && | ||
16823 | { ac_try='test -s conftest.$ac_objext' | ||
16824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16825 | (eval $ac_try) 2>&5 | ||
16826 | ac_status=$? | ||
16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16828 | (exit $ac_status); }; }; then | ||
16829 | ac_hi=$ac_mid | ||
16830 | else | ||
16831 | echo "$as_me: failed program was:" >&5 | ||
16832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16833 | |||
16834 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16835 | fi | ||
16836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16837 | done | ||
16838 | case $ac_lo in | ||
16839 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
16840 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16841 | See \`config.log' for more details." >&5 | ||
16842 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16843 | See \`config.log' for more details." >&2;} | ||
16844 | { (exit 1); exit 1; }; } ;; | ||
16845 | esac | ||
16846 | else | ||
16847 | if test "$cross_compiling" = yes; then | ||
16848 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16849 | See \`config.log' for more details." >&5 | ||
16850 | echo "$as_me: error: cannot run test program while cross compiling | ||
16851 | See \`config.log' for more details." >&2;} | ||
16852 | { (exit 1); exit 1; }; } | ||
16853 | else | ||
16854 | cat >conftest.$ac_ext <<_ACEOF | ||
16855 | /* confdefs.h. */ | ||
16856 | _ACEOF | ||
16857 | cat confdefs.h >>conftest.$ac_ext | ||
16858 | cat >>conftest.$ac_ext <<_ACEOF | ||
16859 | /* end confdefs.h. */ | ||
16860 | $ac_includes_default | ||
16861 | long longval () { return (long) (sizeof (int)); } | ||
16862 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
16863 | #include <stdio.h> | ||
16864 | #include <stdlib.h> | ||
16865 | int | ||
16866 | main () | ||
16867 | { | ||
16868 | |||
16869 | FILE *f = fopen ("conftest.val", "w"); | ||
16870 | if (! f) | ||
16871 | exit (1); | ||
16872 | if (((long) (sizeof (int))) < 0) | ||
16873 | { | ||
16874 | long i = longval (); | ||
16875 | if (i != ((long) (sizeof (int)))) | ||
16876 | exit (1); | ||
16877 | fprintf (f, "%ld\n", i); | ||
16878 | } | ||
16879 | else | ||
16880 | { | ||
16881 | unsigned long i = ulongval (); | ||
16882 | if (i != ((long) (sizeof (int)))) | ||
16883 | exit (1); | ||
16884 | fprintf (f, "%lu\n", i); | ||
16885 | } | ||
16886 | exit (ferror (f) || fclose (f) != 0); | ||
16887 | |||
16888 | ; | ||
16889 | return 0; | ||
16890 | } | ||
16891 | _ACEOF | ||
16892 | rm -f conftest$ac_exeext | ||
16893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16894 | (eval $ac_link) 2>&5 | ||
16895 | ac_status=$? | ||
16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16899 | (eval $ac_try) 2>&5 | ||
16900 | ac_status=$? | ||
16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16902 | (exit $ac_status); }; }; then | ||
16903 | ac_cv_sizeof_int=`cat conftest.val` | ||
16904 | else | ||
16905 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16906 | echo "$as_me: failed program was:" >&5 | ||
16907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16908 | |||
16909 | ( exit $ac_status ) | ||
16910 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
16911 | See \`config.log' for more details." >&5 | ||
16912 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
16913 | See \`config.log' for more details." >&2;} | ||
16914 | { (exit 1); exit 1; }; } | ||
16915 | fi | ||
16916 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16917 | fi | ||
16918 | fi | ||
16919 | rm -f conftest.val | ||
16920 | else | ||
16921 | ac_cv_sizeof_int=0 | ||
16922 | fi | ||
16923 | fi | ||
16924 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
16925 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
16926 | cat >>confdefs.h <<_ACEOF | ||
16927 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
16928 | _ACEOF | ||
16929 | |||
16930 | |||
16931 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
16932 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
16933 | if test "${ac_cv_type_long_int+set}" = set; then | ||
16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16935 | else | ||
16936 | cat >conftest.$ac_ext <<_ACEOF | ||
16937 | /* confdefs.h. */ | ||
16938 | _ACEOF | ||
16939 | cat confdefs.h >>conftest.$ac_ext | ||
16940 | cat >>conftest.$ac_ext <<_ACEOF | ||
16941 | /* end confdefs.h. */ | ||
16942 | $ac_includes_default | ||
16943 | int | ||
16944 | main () | ||
16945 | { | ||
16946 | if ((long int *) 0) | ||
16947 | return 0; | ||
16948 | if (sizeof (long int)) | ||
16949 | return 0; | ||
16950 | ; | ||
16951 | return 0; | ||
16952 | } | ||
16953 | _ACEOF | ||
16954 | rm -f conftest.$ac_objext | ||
16955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16956 | (eval $ac_compile) 2>conftest.er1 | ||
16957 | ac_status=$? | ||
16958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16959 | rm -f conftest.er1 | ||
16960 | cat conftest.err >&5 | ||
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16962 | (exit $ac_status); } && | ||
16963 | { ac_try='test -z "$ac_c_werror_flag" | ||
16964 | || test ! -s conftest.err' | ||
16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16966 | (eval $ac_try) 2>&5 | ||
16967 | ac_status=$? | ||
16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16969 | (exit $ac_status); }; } && | ||
16970 | { ac_try='test -s conftest.$ac_objext' | ||
16971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16972 | (eval $ac_try) 2>&5 | ||
16973 | ac_status=$? | ||
16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16975 | (exit $ac_status); }; }; then | ||
16976 | ac_cv_type_long_int=yes | ||
16977 | else | ||
16978 | echo "$as_me: failed program was:" >&5 | ||
16979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16980 | |||
16981 | ac_cv_type_long_int=no | ||
16982 | fi | ||
16983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16984 | fi | ||
16985 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
16986 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
16987 | |||
16988 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
16989 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
16990 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
16991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16992 | else | ||
16993 | if test "$ac_cv_type_long_int" = yes; then | ||
16994 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
16995 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
16996 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
16997 | # This bug is HP SR number 8606223364. | ||
16998 | if test "$cross_compiling" = yes; then | ||
16999 | # Depending upon the size, compute the lo and hi bounds. | ||
17000 | cat >conftest.$ac_ext <<_ACEOF | ||
17001 | /* confdefs.h. */ | ||
17002 | _ACEOF | ||
17003 | cat confdefs.h >>conftest.$ac_ext | ||
17004 | cat >>conftest.$ac_ext <<_ACEOF | ||
17005 | /* end confdefs.h. */ | ||
17006 | $ac_includes_default | ||
17007 | int | ||
17008 | main () | ||
17009 | { | ||
17010 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
17011 | test_array [0] = 0 | ||
17012 | |||
17013 | ; | ||
17014 | return 0; | ||
17015 | } | ||
17016 | _ACEOF | ||
17017 | rm -f conftest.$ac_objext | ||
17018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17019 | (eval $ac_compile) 2>conftest.er1 | ||
17020 | ac_status=$? | ||
17021 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17022 | rm -f conftest.er1 | ||
17023 | cat conftest.err >&5 | ||
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17025 | (exit $ac_status); } && | ||
17026 | { ac_try='test -z "$ac_c_werror_flag" | ||
17027 | || test ! -s conftest.err' | ||
17028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17029 | (eval $ac_try) 2>&5 | ||
17030 | ac_status=$? | ||
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17032 | (exit $ac_status); }; } && | ||
17033 | { ac_try='test -s conftest.$ac_objext' | ||
17034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17035 | (eval $ac_try) 2>&5 | ||
17036 | ac_status=$? | ||
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17038 | (exit $ac_status); }; }; then | ||
17039 | ac_lo=0 ac_mid=0 | ||
17040 | while :; do | ||
17041 | cat >conftest.$ac_ext <<_ACEOF | ||
17042 | /* confdefs.h. */ | ||
17043 | _ACEOF | ||
17044 | cat confdefs.h >>conftest.$ac_ext | ||
17045 | cat >>conftest.$ac_ext <<_ACEOF | ||
17046 | /* end confdefs.h. */ | ||
17047 | $ac_includes_default | ||
17048 | int | ||
17049 | main () | ||
17050 | { | ||
17051 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
17052 | test_array [0] = 0 | ||
17053 | |||
17054 | ; | ||
17055 | return 0; | ||
17056 | } | ||
17057 | _ACEOF | ||
17058 | rm -f conftest.$ac_objext | ||
17059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17060 | (eval $ac_compile) 2>conftest.er1 | ||
17061 | ac_status=$? | ||
17062 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17063 | rm -f conftest.er1 | ||
17064 | cat conftest.err >&5 | ||
17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17066 | (exit $ac_status); } && | ||
17067 | { ac_try='test -z "$ac_c_werror_flag" | ||
17068 | || test ! -s conftest.err' | ||
17069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17070 | (eval $ac_try) 2>&5 | ||
17071 | ac_status=$? | ||
17072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17073 | (exit $ac_status); }; } && | ||
17074 | { ac_try='test -s conftest.$ac_objext' | ||
17075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17076 | (eval $ac_try) 2>&5 | ||
17077 | ac_status=$? | ||
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17079 | (exit $ac_status); }; }; then | ||
17080 | ac_hi=$ac_mid; break | ||
17081 | else | ||
17082 | echo "$as_me: failed program was:" >&5 | ||
17083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17084 | |||
17085 | ac_lo=`expr $ac_mid + 1` | ||
17086 | if test $ac_lo -le $ac_mid; then | ||
17087 | ac_lo= ac_hi= | ||
17088 | break | ||
17089 | fi | ||
17090 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17091 | fi | ||
17092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17093 | done | ||
17094 | else | ||
17095 | echo "$as_me: failed program was:" >&5 | ||
17096 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17097 | |||
17098 | cat >conftest.$ac_ext <<_ACEOF | ||
17099 | /* confdefs.h. */ | ||
17100 | _ACEOF | ||
17101 | cat confdefs.h >>conftest.$ac_ext | ||
17102 | cat >>conftest.$ac_ext <<_ACEOF | ||
17103 | /* end confdefs.h. */ | ||
17104 | $ac_includes_default | ||
17105 | int | ||
17106 | main () | ||
17107 | { | ||
17108 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
17109 | test_array [0] = 0 | ||
17110 | |||
17111 | ; | ||
17112 | return 0; | ||
17113 | } | ||
17114 | _ACEOF | ||
17115 | rm -f conftest.$ac_objext | ||
17116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17117 | (eval $ac_compile) 2>conftest.er1 | ||
17118 | ac_status=$? | ||
17119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17120 | rm -f conftest.er1 | ||
17121 | cat conftest.err >&5 | ||
17122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17123 | (exit $ac_status); } && | ||
17124 | { ac_try='test -z "$ac_c_werror_flag" | ||
17125 | || test ! -s conftest.err' | ||
17126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17127 | (eval $ac_try) 2>&5 | ||
17128 | ac_status=$? | ||
17129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17130 | (exit $ac_status); }; } && | ||
17131 | { ac_try='test -s conftest.$ac_objext' | ||
17132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17133 | (eval $ac_try) 2>&5 | ||
17134 | ac_status=$? | ||
17135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17136 | (exit $ac_status); }; }; then | ||
17137 | ac_hi=-1 ac_mid=-1 | ||
17138 | while :; do | ||
17139 | cat >conftest.$ac_ext <<_ACEOF | ||
17140 | /* confdefs.h. */ | ||
17141 | _ACEOF | ||
17142 | cat confdefs.h >>conftest.$ac_ext | ||
17143 | cat >>conftest.$ac_ext <<_ACEOF | ||
17144 | /* end confdefs.h. */ | ||
17145 | $ac_includes_default | ||
17146 | int | ||
17147 | main () | ||
17148 | { | ||
17149 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
17150 | test_array [0] = 0 | ||
17151 | |||
17152 | ; | ||
17153 | return 0; | ||
17154 | } | ||
17155 | _ACEOF | ||
17156 | rm -f conftest.$ac_objext | ||
17157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17158 | (eval $ac_compile) 2>conftest.er1 | ||
17159 | ac_status=$? | ||
17160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17161 | rm -f conftest.er1 | ||
17162 | cat conftest.err >&5 | ||
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17164 | (exit $ac_status); } && | ||
17165 | { ac_try='test -z "$ac_c_werror_flag" | ||
17166 | || test ! -s conftest.err' | ||
17167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17168 | (eval $ac_try) 2>&5 | ||
17169 | ac_status=$? | ||
17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17171 | (exit $ac_status); }; } && | ||
17172 | { ac_try='test -s conftest.$ac_objext' | ||
17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17174 | (eval $ac_try) 2>&5 | ||
17175 | ac_status=$? | ||
17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17177 | (exit $ac_status); }; }; then | ||
17178 | ac_lo=$ac_mid; break | ||
17179 | else | ||
17180 | echo "$as_me: failed program was:" >&5 | ||
17181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17182 | |||
17183 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17184 | if test $ac_mid -le $ac_hi; then | ||
17185 | ac_lo= ac_hi= | ||
17186 | break | ||
17187 | fi | ||
17188 | ac_mid=`expr 2 '*' $ac_mid` | ||
17189 | fi | ||
17190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17191 | done | ||
17192 | else | ||
17193 | echo "$as_me: failed program was:" >&5 | ||
17194 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17195 | |||
17196 | ac_lo= ac_hi= | ||
17197 | fi | ||
17198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17199 | fi | ||
17200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17201 | # Binary search between lo and hi bounds. | ||
17202 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17204 | cat >conftest.$ac_ext <<_ACEOF | ||
17205 | /* confdefs.h. */ | ||
17206 | _ACEOF | ||
17207 | cat confdefs.h >>conftest.$ac_ext | ||
17208 | cat >>conftest.$ac_ext <<_ACEOF | ||
17209 | /* end confdefs.h. */ | ||
17210 | $ac_includes_default | ||
17211 | int | ||
17212 | main () | ||
17213 | { | ||
17214 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
17215 | test_array [0] = 0 | ||
17216 | |||
17217 | ; | ||
17218 | return 0; | ||
17219 | } | ||
17220 | _ACEOF | ||
17221 | rm -f conftest.$ac_objext | ||
17222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17223 | (eval $ac_compile) 2>conftest.er1 | ||
17224 | ac_status=$? | ||
17225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17226 | rm -f conftest.er1 | ||
17227 | cat conftest.err >&5 | ||
17228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17229 | (exit $ac_status); } && | ||
17230 | { ac_try='test -z "$ac_c_werror_flag" | ||
17231 | || test ! -s conftest.err' | ||
17232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17233 | (eval $ac_try) 2>&5 | ||
17234 | ac_status=$? | ||
17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17236 | (exit $ac_status); }; } && | ||
17237 | { ac_try='test -s conftest.$ac_objext' | ||
17238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17239 | (eval $ac_try) 2>&5 | ||
17240 | ac_status=$? | ||
17241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17242 | (exit $ac_status); }; }; then | ||
17243 | ac_hi=$ac_mid | ||
17244 | else | ||
17245 | echo "$as_me: failed program was:" >&5 | ||
17246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17247 | |||
17248 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17249 | fi | ||
17250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17251 | done | ||
17252 | case $ac_lo in | ||
17253 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
17254 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
17255 | See \`config.log' for more details." >&5 | ||
17256 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
17257 | See \`config.log' for more details." >&2;} | ||
17258 | { (exit 1); exit 1; }; } ;; | ||
17259 | esac | ||
17260 | else | ||
17261 | if test "$cross_compiling" = yes; then | ||
17262 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17263 | See \`config.log' for more details." >&5 | ||
17264 | echo "$as_me: error: cannot run test program while cross compiling | ||
17265 | See \`config.log' for more details." >&2;} | ||
17266 | { (exit 1); exit 1; }; } | ||
17267 | else | ||
17268 | cat >conftest.$ac_ext <<_ACEOF | ||
17269 | /* confdefs.h. */ | ||
17270 | _ACEOF | ||
17271 | cat confdefs.h >>conftest.$ac_ext | ||
17272 | cat >>conftest.$ac_ext <<_ACEOF | ||
17273 | /* end confdefs.h. */ | ||
17274 | $ac_includes_default | ||
17275 | long longval () { return (long) (sizeof (long int)); } | ||
17276 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
17277 | #include <stdio.h> | ||
17278 | #include <stdlib.h> | ||
17279 | int | ||
17280 | main () | ||
17281 | { | ||
17282 | |||
17283 | FILE *f = fopen ("conftest.val", "w"); | ||
17284 | if (! f) | ||
17285 | exit (1); | ||
17286 | if (((long) (sizeof (long int))) < 0) | ||
17287 | { | ||
17288 | long i = longval (); | ||
17289 | if (i != ((long) (sizeof (long int)))) | ||
17290 | exit (1); | ||
17291 | fprintf (f, "%ld\n", i); | ||
17292 | } | ||
17293 | else | ||
17294 | { | ||
17295 | unsigned long i = ulongval (); | ||
17296 | if (i != ((long) (sizeof (long int)))) | ||
17297 | exit (1); | ||
17298 | fprintf (f, "%lu\n", i); | ||
17299 | } | ||
17300 | exit (ferror (f) || fclose (f) != 0); | ||
17301 | |||
17302 | ; | ||
17303 | return 0; | ||
17304 | } | ||
17305 | _ACEOF | ||
17306 | rm -f conftest$ac_exeext | ||
17307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17308 | (eval $ac_link) 2>&5 | ||
17309 | ac_status=$? | ||
17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17313 | (eval $ac_try) 2>&5 | ||
17314 | ac_status=$? | ||
17315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17316 | (exit $ac_status); }; }; then | ||
17317 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
17318 | else | ||
17319 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17320 | echo "$as_me: failed program was:" >&5 | ||
17321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17322 | |||
17323 | ( exit $ac_status ) | ||
17324 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
17325 | See \`config.log' for more details." >&5 | ||
17326 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
17327 | See \`config.log' for more details." >&2;} | ||
17328 | { (exit 1); exit 1; }; } | ||
17329 | fi | ||
17330 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17331 | fi | ||
17332 | fi | ||
17333 | rm -f conftest.val | ||
17334 | else | ||
17335 | ac_cv_sizeof_long_int=0 | ||
17336 | fi | ||
17337 | fi | ||
17338 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
17339 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
17340 | cat >>confdefs.h <<_ACEOF | ||
17341 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
17342 | _ACEOF | ||
17343 | |||
17344 | |||
17345 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
17346 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
17347 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
17348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17349 | else | ||
17350 | cat >conftest.$ac_ext <<_ACEOF | ||
17351 | /* confdefs.h. */ | ||
17352 | _ACEOF | ||
17353 | cat confdefs.h >>conftest.$ac_ext | ||
17354 | cat >>conftest.$ac_ext <<_ACEOF | ||
17355 | /* end confdefs.h. */ | ||
17356 | $ac_includes_default | ||
17357 | int | ||
17358 | main () | ||
17359 | { | ||
17360 | if ((long long int *) 0) | ||
17361 | return 0; | ||
17362 | if (sizeof (long long int)) | ||
17363 | return 0; | ||
17364 | ; | ||
17365 | return 0; | ||
17366 | } | ||
17367 | _ACEOF | ||
17368 | rm -f conftest.$ac_objext | ||
17369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17370 | (eval $ac_compile) 2>conftest.er1 | ||
17371 | ac_status=$? | ||
17372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17373 | rm -f conftest.er1 | ||
17374 | cat conftest.err >&5 | ||
17375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17376 | (exit $ac_status); } && | ||
17377 | { ac_try='test -z "$ac_c_werror_flag" | ||
17378 | || test ! -s conftest.err' | ||
17379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17380 | (eval $ac_try) 2>&5 | ||
17381 | ac_status=$? | ||
17382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17383 | (exit $ac_status); }; } && | ||
17384 | { ac_try='test -s conftest.$ac_objext' | ||
17385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17386 | (eval $ac_try) 2>&5 | ||
17387 | ac_status=$? | ||
17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17389 | (exit $ac_status); }; }; then | ||
17390 | ac_cv_type_long_long_int=yes | ||
17391 | else | ||
17392 | echo "$as_me: failed program was:" >&5 | ||
17393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17394 | |||
17395 | ac_cv_type_long_long_int=no | ||
17396 | fi | ||
17397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17398 | fi | ||
17399 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
17400 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
17401 | |||
17402 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
17403 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
17404 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
17405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17406 | else | ||
17407 | if test "$ac_cv_type_long_long_int" = yes; then | ||
17408 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
17409 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17410 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17411 | # This bug is HP SR number 8606223364. | ||
17412 | if test "$cross_compiling" = yes; then | ||
17413 | # Depending upon the size, compute the lo and hi bounds. | ||
17414 | cat >conftest.$ac_ext <<_ACEOF | ||
17415 | /* confdefs.h. */ | ||
17416 | _ACEOF | ||
17417 | cat confdefs.h >>conftest.$ac_ext | ||
17418 | cat >>conftest.$ac_ext <<_ACEOF | ||
17419 | /* end confdefs.h. */ | ||
17420 | $ac_includes_default | ||
17421 | int | ||
17422 | main () | ||
17423 | { | ||
17424 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
17425 | test_array [0] = 0 | ||
17426 | |||
17427 | ; | ||
17428 | return 0; | ||
17429 | } | ||
17430 | _ACEOF | ||
17431 | rm -f conftest.$ac_objext | ||
17432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17433 | (eval $ac_compile) 2>conftest.er1 | ||
17434 | ac_status=$? | ||
17435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17436 | rm -f conftest.er1 | ||
17437 | cat conftest.err >&5 | ||
17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17439 | (exit $ac_status); } && | ||
17440 | { ac_try='test -z "$ac_c_werror_flag" | ||
17441 | || test ! -s conftest.err' | ||
17442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17443 | (eval $ac_try) 2>&5 | ||
17444 | ac_status=$? | ||
17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17446 | (exit $ac_status); }; } && | ||
17447 | { ac_try='test -s conftest.$ac_objext' | ||
17448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17449 | (eval $ac_try) 2>&5 | ||
17450 | ac_status=$? | ||
17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17452 | (exit $ac_status); }; }; then | ||
17453 | ac_lo=0 ac_mid=0 | ||
17454 | while :; do | ||
17455 | cat >conftest.$ac_ext <<_ACEOF | ||
17456 | /* confdefs.h. */ | ||
17457 | _ACEOF | ||
17458 | cat confdefs.h >>conftest.$ac_ext | ||
17459 | cat >>conftest.$ac_ext <<_ACEOF | ||
17460 | /* end confdefs.h. */ | ||
17461 | $ac_includes_default | ||
17462 | int | ||
17463 | main () | ||
17464 | { | ||
17465 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
17466 | test_array [0] = 0 | ||
17467 | |||
17468 | ; | ||
17469 | return 0; | ||
17470 | } | ||
17471 | _ACEOF | ||
17472 | rm -f conftest.$ac_objext | ||
17473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17474 | (eval $ac_compile) 2>conftest.er1 | ||
17475 | ac_status=$? | ||
17476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17477 | rm -f conftest.er1 | ||
17478 | cat conftest.err >&5 | ||
17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17480 | (exit $ac_status); } && | ||
17481 | { ac_try='test -z "$ac_c_werror_flag" | ||
17482 | || test ! -s conftest.err' | ||
17483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17484 | (eval $ac_try) 2>&5 | ||
17485 | ac_status=$? | ||
17486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17487 | (exit $ac_status); }; } && | ||
17488 | { ac_try='test -s conftest.$ac_objext' | ||
17489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17490 | (eval $ac_try) 2>&5 | ||
17491 | ac_status=$? | ||
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17493 | (exit $ac_status); }; }; then | ||
17494 | ac_hi=$ac_mid; break | ||
17495 | else | ||
17496 | echo "$as_me: failed program was:" >&5 | ||
17497 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17498 | |||
17499 | ac_lo=`expr $ac_mid + 1` | ||
17500 | if test $ac_lo -le $ac_mid; then | ||
17501 | ac_lo= ac_hi= | ||
17502 | break | ||
17503 | fi | ||
17504 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
17505 | fi | ||
17506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17507 | done | ||
17508 | else | ||
17509 | echo "$as_me: failed program was:" >&5 | ||
17510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17511 | |||
17512 | cat >conftest.$ac_ext <<_ACEOF | ||
17513 | /* confdefs.h. */ | ||
17514 | _ACEOF | ||
17515 | cat confdefs.h >>conftest.$ac_ext | ||
17516 | cat >>conftest.$ac_ext <<_ACEOF | ||
17517 | /* end confdefs.h. */ | ||
17518 | $ac_includes_default | ||
17519 | int | ||
17520 | main () | ||
17521 | { | ||
17522 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
17523 | test_array [0] = 0 | ||
17524 | |||
17525 | ; | ||
17526 | return 0; | ||
17527 | } | ||
17528 | _ACEOF | ||
17529 | rm -f conftest.$ac_objext | ||
17530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17531 | (eval $ac_compile) 2>conftest.er1 | ||
17532 | ac_status=$? | ||
17533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17534 | rm -f conftest.er1 | ||
17535 | cat conftest.err >&5 | ||
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17537 | (exit $ac_status); } && | ||
17538 | { ac_try='test -z "$ac_c_werror_flag" | ||
17539 | || test ! -s conftest.err' | ||
17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17541 | (eval $ac_try) 2>&5 | ||
17542 | ac_status=$? | ||
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17544 | (exit $ac_status); }; } && | ||
17545 | { ac_try='test -s conftest.$ac_objext' | ||
17546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17547 | (eval $ac_try) 2>&5 | ||
17548 | ac_status=$? | ||
17549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17550 | (exit $ac_status); }; }; then | ||
17551 | ac_hi=-1 ac_mid=-1 | ||
17552 | while :; do | ||
17553 | cat >conftest.$ac_ext <<_ACEOF | ||
17554 | /* confdefs.h. */ | ||
17555 | _ACEOF | ||
17556 | cat confdefs.h >>conftest.$ac_ext | ||
17557 | cat >>conftest.$ac_ext <<_ACEOF | ||
17558 | /* end confdefs.h. */ | ||
17559 | $ac_includes_default | ||
17560 | int | ||
17561 | main () | ||
17562 | { | ||
17563 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
17564 | test_array [0] = 0 | ||
17565 | |||
17566 | ; | ||
17567 | return 0; | ||
17568 | } | ||
17569 | _ACEOF | ||
17570 | rm -f conftest.$ac_objext | ||
17571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17572 | (eval $ac_compile) 2>conftest.er1 | ||
17573 | ac_status=$? | ||
17574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17575 | rm -f conftest.er1 | ||
17576 | cat conftest.err >&5 | ||
17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17578 | (exit $ac_status); } && | ||
17579 | { ac_try='test -z "$ac_c_werror_flag" | ||
17580 | || test ! -s conftest.err' | ||
17581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17582 | (eval $ac_try) 2>&5 | ||
17583 | ac_status=$? | ||
17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17585 | (exit $ac_status); }; } && | ||
17586 | { ac_try='test -s conftest.$ac_objext' | ||
17587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17588 | (eval $ac_try) 2>&5 | ||
17589 | ac_status=$? | ||
17590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17591 | (exit $ac_status); }; }; then | ||
17592 | ac_lo=$ac_mid; break | ||
17593 | else | ||
17594 | echo "$as_me: failed program was:" >&5 | ||
17595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17596 | |||
17597 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
17598 | if test $ac_mid -le $ac_hi; then | ||
17599 | ac_lo= ac_hi= | ||
17600 | break | ||
17601 | fi | ||
17602 | ac_mid=`expr 2 '*' $ac_mid` | ||
17603 | fi | ||
17604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17605 | done | ||
17606 | else | ||
17607 | echo "$as_me: failed program was:" >&5 | ||
17608 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17609 | |||
17610 | ac_lo= ac_hi= | ||
17611 | fi | ||
17612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17613 | fi | ||
17614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17615 | # Binary search between lo and hi bounds. | ||
17616 | while test "x$ac_lo" != "x$ac_hi"; do | ||
17617 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
17618 | cat >conftest.$ac_ext <<_ACEOF | ||
17619 | /* confdefs.h. */ | ||
17620 | _ACEOF | ||
17621 | cat confdefs.h >>conftest.$ac_ext | ||
17622 | cat >>conftest.$ac_ext <<_ACEOF | ||
17623 | /* end confdefs.h. */ | ||
17624 | $ac_includes_default | ||
17625 | int | ||
17626 | main () | ||
17627 | { | ||
17628 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
17629 | test_array [0] = 0 | ||
17630 | |||
17631 | ; | ||
17632 | return 0; | ||
17633 | } | ||
17634 | _ACEOF | ||
17635 | rm -f conftest.$ac_objext | ||
17636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17637 | (eval $ac_compile) 2>conftest.er1 | ||
17638 | ac_status=$? | ||
17639 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17640 | rm -f conftest.er1 | ||
17641 | cat conftest.err >&5 | ||
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17643 | (exit $ac_status); } && | ||
17644 | { ac_try='test -z "$ac_c_werror_flag" | ||
17645 | || test ! -s conftest.err' | ||
17646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17647 | (eval $ac_try) 2>&5 | ||
17648 | ac_status=$? | ||
17649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17650 | (exit $ac_status); }; } && | ||
17651 | { ac_try='test -s conftest.$ac_objext' | ||
17652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17653 | (eval $ac_try) 2>&5 | ||
17654 | ac_status=$? | ||
17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17656 | (exit $ac_status); }; }; then | ||
17657 | ac_hi=$ac_mid | ||
17658 | else | ||
17659 | echo "$as_me: failed program was:" >&5 | ||
17660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17661 | |||
17662 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
17663 | fi | ||
17664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17665 | done | ||
17666 | case $ac_lo in | ||
17667 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
17668 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17669 | See \`config.log' for more details." >&5 | ||
17670 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17671 | See \`config.log' for more details." >&2;} | ||
17672 | { (exit 1); exit 1; }; } ;; | ||
17673 | esac | ||
17674 | else | ||
17675 | if test "$cross_compiling" = yes; then | ||
17676 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
17677 | See \`config.log' for more details." >&5 | ||
17678 | echo "$as_me: error: cannot run test program while cross compiling | ||
17679 | See \`config.log' for more details." >&2;} | ||
17680 | { (exit 1); exit 1; }; } | ||
17681 | else | ||
17682 | cat >conftest.$ac_ext <<_ACEOF | ||
17683 | /* confdefs.h. */ | ||
17684 | _ACEOF | ||
17685 | cat confdefs.h >>conftest.$ac_ext | ||
17686 | cat >>conftest.$ac_ext <<_ACEOF | ||
17687 | /* end confdefs.h. */ | ||
17688 | $ac_includes_default | ||
17689 | long longval () { return (long) (sizeof (long long int)); } | ||
17690 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
17691 | #include <stdio.h> | ||
17692 | #include <stdlib.h> | ||
17693 | int | ||
17694 | main () | ||
17695 | { | ||
17696 | |||
17697 | FILE *f = fopen ("conftest.val", "w"); | ||
17698 | if (! f) | ||
17699 | exit (1); | ||
17700 | if (((long) (sizeof (long long int))) < 0) | ||
17701 | { | ||
17702 | long i = longval (); | ||
17703 | if (i != ((long) (sizeof (long long int)))) | ||
17704 | exit (1); | ||
17705 | fprintf (f, "%ld\n", i); | ||
17706 | } | ||
17707 | else | ||
17708 | { | ||
17709 | unsigned long i = ulongval (); | ||
17710 | if (i != ((long) (sizeof (long long int)))) | ||
17711 | exit (1); | ||
17712 | fprintf (f, "%lu\n", i); | ||
17713 | } | ||
17714 | exit (ferror (f) || fclose (f) != 0); | ||
17715 | |||
17716 | ; | ||
17717 | return 0; | ||
17718 | } | ||
17719 | _ACEOF | ||
17720 | rm -f conftest$ac_exeext | ||
17721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17722 | (eval $ac_link) 2>&5 | ||
17723 | ac_status=$? | ||
17724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17727 | (eval $ac_try) 2>&5 | ||
17728 | ac_status=$? | ||
17729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17730 | (exit $ac_status); }; }; then | ||
17731 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
17732 | else | ||
17733 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17734 | echo "$as_me: failed program was:" >&5 | ||
17735 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17736 | |||
17737 | ( exit $ac_status ) | ||
17738 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
17739 | See \`config.log' for more details." >&5 | ||
17740 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
17741 | See \`config.log' for more details." >&2;} | ||
17742 | { (exit 1); exit 1; }; } | ||
17743 | fi | ||
17744 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17745 | fi | ||
17746 | fi | ||
17747 | rm -f conftest.val | ||
17748 | else | ||
17749 | ac_cv_sizeof_long_long_int=0 | ||
17750 | fi | ||
17751 | fi | ||
17752 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
17753 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
17754 | cat >>confdefs.h <<_ACEOF | ||
17755 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
17756 | _ACEOF | ||
17757 | |||
17758 | |||
17759 | |||
17760 | # Sanity check long long for some platforms (AIX) | ||
17761 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
17762 | ac_cv_sizeof_long_long_int=0 | ||
17763 | fi | ||
17764 | |||
17765 | # More checks for data types | ||
17766 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
17767 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
17768 | if test "${ac_cv_have_u_int+set}" = set; then | ||
17769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17770 | else | ||
17771 | |||
17772 | cat >conftest.$ac_ext <<_ACEOF | ||
17773 | /* confdefs.h. */ | ||
17774 | _ACEOF | ||
17775 | cat confdefs.h >>conftest.$ac_ext | ||
17776 | cat >>conftest.$ac_ext <<_ACEOF | ||
17777 | /* end confdefs.h. */ | ||
17778 | #include <sys/types.h> | ||
17779 | int | ||
17780 | main () | ||
17781 | { | ||
17782 | u_int a; a = 1; | ||
17783 | ; | ||
17784 | return 0; | ||
17785 | } | ||
17786 | _ACEOF | ||
17787 | rm -f conftest.$ac_objext | ||
17788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17789 | (eval $ac_compile) 2>conftest.er1 | ||
17790 | ac_status=$? | ||
17791 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17792 | rm -f conftest.er1 | ||
17793 | cat conftest.err >&5 | ||
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17795 | (exit $ac_status); } && | ||
17796 | { ac_try='test -z "$ac_c_werror_flag" | ||
17797 | || test ! -s conftest.err' | ||
17798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17799 | (eval $ac_try) 2>&5 | ||
17800 | ac_status=$? | ||
17801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17802 | (exit $ac_status); }; } && | ||
17803 | { ac_try='test -s conftest.$ac_objext' | ||
17804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17805 | (eval $ac_try) 2>&5 | ||
17806 | ac_status=$? | ||
17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17808 | (exit $ac_status); }; }; then | ||
17809 | ac_cv_have_u_int="yes" | ||
17810 | else | ||
17811 | echo "$as_me: failed program was:" >&5 | ||
17812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17813 | |||
17814 | ac_cv_have_u_int="no" | ||
17815 | |||
17816 | fi | ||
17817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17818 | |||
17819 | fi | ||
17820 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
17821 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
17822 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
17823 | cat >>confdefs.h <<\_ACEOF | ||
17824 | #define HAVE_U_INT 1 | ||
17825 | _ACEOF | ||
17826 | |||
17827 | have_u_int=1 | ||
17828 | fi | ||
17829 | |||
17830 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
17831 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
17832 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
17833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17834 | else | ||
17835 | |||
17836 | cat >conftest.$ac_ext <<_ACEOF | ||
17837 | /* confdefs.h. */ | ||
17838 | _ACEOF | ||
17839 | cat confdefs.h >>conftest.$ac_ext | ||
17840 | cat >>conftest.$ac_ext <<_ACEOF | ||
17841 | /* end confdefs.h. */ | ||
17842 | #include <sys/types.h> | ||
17843 | int | ||
17844 | main () | ||
17845 | { | ||
17846 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17847 | ; | ||
17848 | return 0; | ||
17849 | } | ||
17850 | _ACEOF | ||
17851 | rm -f conftest.$ac_objext | ||
17852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17853 | (eval $ac_compile) 2>conftest.er1 | ||
17854 | ac_status=$? | ||
17855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17856 | rm -f conftest.er1 | ||
17857 | cat conftest.err >&5 | ||
17858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17859 | (exit $ac_status); } && | ||
17860 | { ac_try='test -z "$ac_c_werror_flag" | ||
17861 | || test ! -s conftest.err' | ||
17862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17863 | (eval $ac_try) 2>&5 | ||
17864 | ac_status=$? | ||
17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17866 | (exit $ac_status); }; } && | ||
17867 | { ac_try='test -s conftest.$ac_objext' | ||
17868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17869 | (eval $ac_try) 2>&5 | ||
17870 | ac_status=$? | ||
17871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17872 | (exit $ac_status); }; }; then | ||
17873 | ac_cv_have_intxx_t="yes" | ||
17874 | else | ||
17875 | echo "$as_me: failed program was:" >&5 | ||
17876 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17877 | |||
17878 | ac_cv_have_intxx_t="no" | ||
17879 | |||
17880 | fi | ||
17881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17882 | |||
17883 | fi | ||
17884 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
17885 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
17886 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
17887 | cat >>confdefs.h <<\_ACEOF | ||
17888 | #define HAVE_INTXX_T 1 | ||
17889 | _ACEOF | ||
17890 | |||
17891 | have_intxx_t=1 | ||
17892 | fi | ||
17893 | |||
17894 | if (test -z "$have_intxx_t" && \ | ||
17895 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
17896 | then | ||
17897 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
17898 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
17899 | cat >conftest.$ac_ext <<_ACEOF | ||
17900 | /* confdefs.h. */ | ||
17901 | _ACEOF | ||
17902 | cat confdefs.h >>conftest.$ac_ext | ||
17903 | cat >>conftest.$ac_ext <<_ACEOF | ||
17904 | /* end confdefs.h. */ | ||
17905 | #include <stdint.h> | ||
17906 | int | ||
17907 | main () | ||
17908 | { | ||
17909 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
17910 | ; | ||
17911 | return 0; | ||
17912 | } | ||
17913 | _ACEOF | ||
17914 | rm -f conftest.$ac_objext | ||
17915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17916 | (eval $ac_compile) 2>conftest.er1 | ||
17917 | ac_status=$? | ||
17918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17919 | rm -f conftest.er1 | ||
17920 | cat conftest.err >&5 | ||
17921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17922 | (exit $ac_status); } && | ||
17923 | { ac_try='test -z "$ac_c_werror_flag" | ||
17924 | || test ! -s conftest.err' | ||
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); }; } && | ||
17930 | { ac_try='test -s conftest.$ac_objext' | ||
17931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17932 | (eval $ac_try) 2>&5 | ||
17933 | ac_status=$? | ||
17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17935 | (exit $ac_status); }; }; then | ||
17936 | |||
17937 | cat >>confdefs.h <<\_ACEOF | ||
17938 | #define HAVE_INTXX_T 1 | ||
17939 | _ACEOF | ||
17940 | |||
17941 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17942 | echo "${ECHO_T}yes" >&6 | ||
17943 | |||
17944 | else | ||
17945 | echo "$as_me: failed program was:" >&5 | ||
17946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17947 | |||
17948 | echo "$as_me:$LINENO: result: no" >&5 | ||
17949 | echo "${ECHO_T}no" >&6 | ||
17950 | |||
17951 | fi | ||
17952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17953 | fi | ||
17954 | |||
17955 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
17956 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
17957 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
17958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17959 | else | ||
17960 | |||
17961 | cat >conftest.$ac_ext <<_ACEOF | ||
17962 | /* confdefs.h. */ | ||
17963 | _ACEOF | ||
17964 | cat confdefs.h >>conftest.$ac_ext | ||
17965 | cat >>conftest.$ac_ext <<_ACEOF | ||
17966 | /* end confdefs.h. */ | ||
17967 | |||
17968 | #include <sys/types.h> | ||
17969 | #ifdef HAVE_STDINT_H | ||
17970 | # include <stdint.h> | ||
17971 | #endif | ||
17972 | #include <sys/socket.h> | ||
17973 | #ifdef HAVE_SYS_BITYPES_H | ||
17974 | # include <sys/bitypes.h> | ||
17975 | #endif | ||
17976 | |||
17977 | int | ||
17978 | main () | ||
17979 | { | ||
17980 | int64_t a; a = 1; | ||
17981 | ; | ||
17982 | return 0; | ||
17983 | } | ||
17984 | _ACEOF | ||
17985 | rm -f conftest.$ac_objext | ||
17986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17987 | (eval $ac_compile) 2>conftest.er1 | ||
17988 | ac_status=$? | ||
17989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17990 | rm -f conftest.er1 | ||
17991 | cat conftest.err >&5 | ||
17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17993 | (exit $ac_status); } && | ||
17994 | { ac_try='test -z "$ac_c_werror_flag" | ||
17995 | || test ! -s conftest.err' | ||
17996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17997 | (eval $ac_try) 2>&5 | ||
17998 | ac_status=$? | ||
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18000 | (exit $ac_status); }; } && | ||
18001 | { ac_try='test -s conftest.$ac_objext' | ||
18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18003 | (eval $ac_try) 2>&5 | ||
18004 | ac_status=$? | ||
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18006 | (exit $ac_status); }; }; then | ||
18007 | ac_cv_have_int64_t="yes" | ||
18008 | else | ||
18009 | echo "$as_me: failed program was:" >&5 | ||
18010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18011 | |||
18012 | ac_cv_have_int64_t="no" | ||
18013 | |||
18014 | fi | ||
18015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18016 | |||
18017 | fi | ||
18018 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
18019 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
18020 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
18021 | cat >>confdefs.h <<\_ACEOF | ||
18022 | #define HAVE_INT64_T 1 | ||
18023 | _ACEOF | ||
18024 | |||
18025 | fi | ||
18026 | |||
18027 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
18028 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
18029 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
18030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18031 | else | ||
18032 | |||
18033 | cat >conftest.$ac_ext <<_ACEOF | ||
18034 | /* confdefs.h. */ | ||
18035 | _ACEOF | ||
18036 | cat confdefs.h >>conftest.$ac_ext | ||
18037 | cat >>conftest.$ac_ext <<_ACEOF | ||
18038 | /* end confdefs.h. */ | ||
18039 | #include <sys/types.h> | ||
18040 | int | ||
18041 | main () | ||
18042 | { | ||
18043 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
18044 | ; | ||
18045 | return 0; | ||
18046 | } | ||
18047 | _ACEOF | ||
18048 | rm -f conftest.$ac_objext | ||
18049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18050 | (eval $ac_compile) 2>conftest.er1 | ||
18051 | ac_status=$? | ||
18052 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18053 | rm -f conftest.er1 | ||
18054 | cat conftest.err >&5 | ||
18055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18056 | (exit $ac_status); } && | ||
18057 | { ac_try='test -z "$ac_c_werror_flag" | ||
18058 | || test ! -s conftest.err' | ||
18059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18060 | (eval $ac_try) 2>&5 | ||
18061 | ac_status=$? | ||
18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18063 | (exit $ac_status); }; } && | ||
18064 | { ac_try='test -s conftest.$ac_objext' | ||
18065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18066 | (eval $ac_try) 2>&5 | ||
18067 | ac_status=$? | ||
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18069 | (exit $ac_status); }; }; then | ||
18070 | ac_cv_have_u_intxx_t="yes" | ||
18071 | else | ||
18072 | echo "$as_me: failed program was:" >&5 | ||
18073 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18074 | |||
18075 | ac_cv_have_u_intxx_t="no" | ||
18076 | |||
18077 | fi | ||
18078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18079 | |||
18080 | fi | ||
18081 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
18082 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
18083 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
18084 | cat >>confdefs.h <<\_ACEOF | ||
18085 | #define HAVE_U_INTXX_T 1 | ||
18086 | _ACEOF | ||
18087 | |||
18088 | have_u_intxx_t=1 | ||
18089 | fi | ||
18090 | |||
18091 | if test -z "$have_u_intxx_t" ; then | ||
18092 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
18093 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
18094 | cat >conftest.$ac_ext <<_ACEOF | ||
18095 | /* confdefs.h. */ | ||
18096 | _ACEOF | ||
18097 | cat confdefs.h >>conftest.$ac_ext | ||
18098 | cat >>conftest.$ac_ext <<_ACEOF | ||
18099 | /* end confdefs.h. */ | ||
18100 | #include <sys/socket.h> | ||
18101 | int | ||
18102 | main () | ||
18103 | { | ||
18104 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
18105 | ; | ||
18106 | return 0; | ||
18107 | } | ||
18108 | _ACEOF | ||
18109 | rm -f conftest.$ac_objext | ||
18110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18111 | (eval $ac_compile) 2>conftest.er1 | ||
18112 | ac_status=$? | ||
18113 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18114 | rm -f conftest.er1 | ||
18115 | cat conftest.err >&5 | ||
18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18117 | (exit $ac_status); } && | ||
18118 | { ac_try='test -z "$ac_c_werror_flag" | ||
18119 | || test ! -s conftest.err' | ||
18120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18121 | (eval $ac_try) 2>&5 | ||
18122 | ac_status=$? | ||
18123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18124 | (exit $ac_status); }; } && | ||
18125 | { ac_try='test -s conftest.$ac_objext' | ||
18126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18127 | (eval $ac_try) 2>&5 | ||
18128 | ac_status=$? | ||
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18130 | (exit $ac_status); }; }; then | ||
18131 | |||
18132 | cat >>confdefs.h <<\_ACEOF | ||
18133 | #define HAVE_U_INTXX_T 1 | ||
18134 | _ACEOF | ||
18135 | |||
18136 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18137 | echo "${ECHO_T}yes" >&6 | ||
18138 | |||
18139 | else | ||
18140 | echo "$as_me: failed program was:" >&5 | ||
18141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18142 | |||
18143 | echo "$as_me:$LINENO: result: no" >&5 | ||
18144 | echo "${ECHO_T}no" >&6 | ||
18145 | |||
18146 | fi | ||
18147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18148 | fi | ||
18149 | |||
18150 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
18151 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
18152 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
18153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18154 | else | ||
18155 | |||
18156 | cat >conftest.$ac_ext <<_ACEOF | ||
18157 | /* confdefs.h. */ | ||
18158 | _ACEOF | ||
18159 | cat confdefs.h >>conftest.$ac_ext | ||
18160 | cat >>conftest.$ac_ext <<_ACEOF | ||
18161 | /* end confdefs.h. */ | ||
18162 | #include <sys/types.h> | ||
18163 | int | ||
18164 | main () | ||
18165 | { | ||
18166 | u_int64_t a; a = 1; | ||
18167 | ; | ||
18168 | return 0; | ||
18169 | } | ||
18170 | _ACEOF | ||
18171 | rm -f conftest.$ac_objext | ||
18172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18173 | (eval $ac_compile) 2>conftest.er1 | ||
18174 | ac_status=$? | ||
18175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18176 | rm -f conftest.er1 | ||
18177 | cat conftest.err >&5 | ||
18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18179 | (exit $ac_status); } && | ||
18180 | { ac_try='test -z "$ac_c_werror_flag" | ||
18181 | || test ! -s conftest.err' | ||
18182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18183 | (eval $ac_try) 2>&5 | ||
18184 | ac_status=$? | ||
18185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18186 | (exit $ac_status); }; } && | ||
18187 | { ac_try='test -s conftest.$ac_objext' | ||
18188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18189 | (eval $ac_try) 2>&5 | ||
18190 | ac_status=$? | ||
18191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18192 | (exit $ac_status); }; }; then | ||
18193 | ac_cv_have_u_int64_t="yes" | ||
18194 | else | ||
18195 | echo "$as_me: failed program was:" >&5 | ||
18196 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18197 | |||
18198 | ac_cv_have_u_int64_t="no" | ||
18199 | |||
18200 | fi | ||
18201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18202 | |||
18203 | fi | ||
18204 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
18205 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
18206 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
18207 | cat >>confdefs.h <<\_ACEOF | ||
18208 | #define HAVE_U_INT64_T 1 | ||
18209 | _ACEOF | ||
18210 | |||
18211 | have_u_int64_t=1 | ||
18212 | fi | ||
18213 | |||
18214 | if test -z "$have_u_int64_t" ; then | ||
18215 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
18216 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
18217 | cat >conftest.$ac_ext <<_ACEOF | ||
18218 | /* confdefs.h. */ | ||
18219 | _ACEOF | ||
18220 | cat confdefs.h >>conftest.$ac_ext | ||
18221 | cat >>conftest.$ac_ext <<_ACEOF | ||
18222 | /* end confdefs.h. */ | ||
18223 | #include <sys/bitypes.h> | ||
18224 | int | ||
18225 | main () | ||
18226 | { | ||
18227 | u_int64_t a; a = 1 | ||
18228 | ; | ||
18229 | return 0; | ||
18230 | } | ||
18231 | _ACEOF | ||
18232 | rm -f conftest.$ac_objext | ||
18233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18234 | (eval $ac_compile) 2>conftest.er1 | ||
18235 | ac_status=$? | ||
18236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18237 | rm -f conftest.er1 | ||
18238 | cat conftest.err >&5 | ||
18239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18240 | (exit $ac_status); } && | ||
18241 | { ac_try='test -z "$ac_c_werror_flag" | ||
18242 | || test ! -s conftest.err' | ||
18243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18244 | (eval $ac_try) 2>&5 | ||
18245 | ac_status=$? | ||
18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18247 | (exit $ac_status); }; } && | ||
18248 | { ac_try='test -s conftest.$ac_objext' | ||
18249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18250 | (eval $ac_try) 2>&5 | ||
18251 | ac_status=$? | ||
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18253 | (exit $ac_status); }; }; then | ||
18254 | |||
18255 | cat >>confdefs.h <<\_ACEOF | ||
18256 | #define HAVE_U_INT64_T 1 | ||
18257 | _ACEOF | ||
18258 | |||
18259 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18260 | echo "${ECHO_T}yes" >&6 | ||
18261 | |||
18262 | else | ||
18263 | echo "$as_me: failed program was:" >&5 | ||
18264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18265 | |||
18266 | echo "$as_me:$LINENO: result: no" >&5 | ||
18267 | echo "${ECHO_T}no" >&6 | ||
18268 | |||
18269 | fi | ||
18270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18271 | fi | ||
18272 | |||
18273 | if test -z "$have_u_intxx_t" ; then | ||
18274 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
18275 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
18276 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
18277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18278 | else | ||
18279 | |||
18280 | cat >conftest.$ac_ext <<_ACEOF | ||
18281 | /* confdefs.h. */ | ||
18282 | _ACEOF | ||
18283 | cat confdefs.h >>conftest.$ac_ext | ||
18284 | cat >>conftest.$ac_ext <<_ACEOF | ||
18285 | /* end confdefs.h. */ | ||
18286 | |||
18287 | #include <sys/types.h> | ||
18288 | |||
18289 | int | ||
18290 | main () | ||
18291 | { | ||
18292 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
18293 | ; | ||
18294 | return 0; | ||
18295 | } | ||
18296 | _ACEOF | ||
18297 | rm -f conftest.$ac_objext | ||
18298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18299 | (eval $ac_compile) 2>conftest.er1 | ||
18300 | ac_status=$? | ||
18301 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18302 | rm -f conftest.er1 | ||
18303 | cat conftest.err >&5 | ||
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18305 | (exit $ac_status); } && | ||
18306 | { ac_try='test -z "$ac_c_werror_flag" | ||
18307 | || test ! -s conftest.err' | ||
18308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18309 | (eval $ac_try) 2>&5 | ||
18310 | ac_status=$? | ||
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18312 | (exit $ac_status); }; } && | ||
18313 | { ac_try='test -s conftest.$ac_objext' | ||
18314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18315 | (eval $ac_try) 2>&5 | ||
18316 | ac_status=$? | ||
18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18318 | (exit $ac_status); }; }; then | ||
18319 | ac_cv_have_uintxx_t="yes" | ||
18320 | else | ||
18321 | echo "$as_me: failed program was:" >&5 | ||
18322 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18323 | |||
18324 | ac_cv_have_uintxx_t="no" | ||
18325 | |||
18326 | fi | ||
18327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18328 | |||
18329 | fi | ||
18330 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
18331 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
18332 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
18333 | cat >>confdefs.h <<\_ACEOF | ||
18334 | #define HAVE_UINTXX_T 1 | ||
18335 | _ACEOF | ||
18336 | |||
18337 | fi | ||
18338 | fi | ||
18339 | |||
18340 | if test -z "$have_uintxx_t" ; then | ||
18341 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
18342 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
18343 | cat >conftest.$ac_ext <<_ACEOF | ||
18344 | /* confdefs.h. */ | ||
18345 | _ACEOF | ||
18346 | cat confdefs.h >>conftest.$ac_ext | ||
18347 | cat >>conftest.$ac_ext <<_ACEOF | ||
18348 | /* end confdefs.h. */ | ||
18349 | #include <stdint.h> | ||
18350 | int | ||
18351 | main () | ||
18352 | { | ||
18353 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
18354 | ; | ||
18355 | return 0; | ||
18356 | } | ||
18357 | _ACEOF | ||
18358 | rm -f conftest.$ac_objext | ||
18359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18360 | (eval $ac_compile) 2>conftest.er1 | ||
18361 | ac_status=$? | ||
18362 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18363 | rm -f conftest.er1 | ||
18364 | cat conftest.err >&5 | ||
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18366 | (exit $ac_status); } && | ||
18367 | { ac_try='test -z "$ac_c_werror_flag" | ||
18368 | || test ! -s conftest.err' | ||
18369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18370 | (eval $ac_try) 2>&5 | ||
18371 | ac_status=$? | ||
18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18373 | (exit $ac_status); }; } && | ||
18374 | { ac_try='test -s conftest.$ac_objext' | ||
18375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18376 | (eval $ac_try) 2>&5 | ||
18377 | ac_status=$? | ||
18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18379 | (exit $ac_status); }; }; then | ||
18380 | |||
18381 | cat >>confdefs.h <<\_ACEOF | ||
18382 | #define HAVE_UINTXX_T 1 | ||
18383 | _ACEOF | ||
18384 | |||
18385 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18386 | echo "${ECHO_T}yes" >&6 | ||
18387 | |||
18388 | else | ||
18389 | echo "$as_me: failed program was:" >&5 | ||
18390 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18391 | |||
18392 | echo "$as_me:$LINENO: result: no" >&5 | ||
18393 | echo "${ECHO_T}no" >&6 | ||
18394 | |||
18395 | fi | ||
18396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18397 | fi | ||
18398 | |||
18399 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
18400 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
18401 | then | ||
18402 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
18403 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
18404 | cat >conftest.$ac_ext <<_ACEOF | ||
18405 | /* confdefs.h. */ | ||
18406 | _ACEOF | ||
18407 | cat confdefs.h >>conftest.$ac_ext | ||
18408 | cat >>conftest.$ac_ext <<_ACEOF | ||
18409 | /* end confdefs.h. */ | ||
18410 | |||
18411 | #include <sys/bitypes.h> | ||
18412 | |||
18413 | int | ||
18414 | main () | ||
18415 | { | ||
18416 | |||
18417 | int8_t a; int16_t b; int32_t c; | ||
18418 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
18419 | a = b = c = e = f = g = 1; | ||
18420 | |||
18421 | ; | ||
18422 | return 0; | ||
18423 | } | ||
18424 | _ACEOF | ||
18425 | rm -f conftest.$ac_objext | ||
18426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18427 | (eval $ac_compile) 2>conftest.er1 | ||
18428 | ac_status=$? | ||
18429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18430 | rm -f conftest.er1 | ||
18431 | cat conftest.err >&5 | ||
18432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18433 | (exit $ac_status); } && | ||
18434 | { ac_try='test -z "$ac_c_werror_flag" | ||
18435 | || test ! -s conftest.err' | ||
18436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18437 | (eval $ac_try) 2>&5 | ||
18438 | ac_status=$? | ||
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18440 | (exit $ac_status); }; } && | ||
18441 | { ac_try='test -s conftest.$ac_objext' | ||
18442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18443 | (eval $ac_try) 2>&5 | ||
18444 | ac_status=$? | ||
18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18446 | (exit $ac_status); }; }; then | ||
18447 | |||
18448 | cat >>confdefs.h <<\_ACEOF | ||
18449 | #define HAVE_U_INTXX_T 1 | ||
18450 | _ACEOF | ||
18451 | |||
18452 | cat >>confdefs.h <<\_ACEOF | ||
18453 | #define HAVE_INTXX_T 1 | ||
18454 | _ACEOF | ||
18455 | |||
18456 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18457 | echo "${ECHO_T}yes" >&6 | ||
18458 | |||
18459 | else | ||
18460 | echo "$as_me: failed program was:" >&5 | ||
18461 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18462 | |||
18463 | echo "$as_me:$LINENO: result: no" >&5 | ||
18464 | echo "${ECHO_T}no" >&6 | ||
18465 | |||
18466 | fi | ||
18467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18468 | fi | ||
18469 | |||
18470 | |||
18471 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
18472 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
18473 | if test "${ac_cv_have_u_char+set}" = set; then | ||
18474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18475 | else | ||
18476 | |||
18477 | cat >conftest.$ac_ext <<_ACEOF | ||
18478 | /* confdefs.h. */ | ||
18479 | _ACEOF | ||
18480 | cat confdefs.h >>conftest.$ac_ext | ||
18481 | cat >>conftest.$ac_ext <<_ACEOF | ||
18482 | /* end confdefs.h. */ | ||
18483 | |||
18484 | #include <sys/types.h> | ||
18485 | |||
18486 | int | ||
18487 | main () | ||
18488 | { | ||
18489 | u_char foo; foo = 125; | ||
18490 | ; | ||
18491 | return 0; | ||
18492 | } | ||
18493 | _ACEOF | ||
18494 | rm -f conftest.$ac_objext | ||
18495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18496 | (eval $ac_compile) 2>conftest.er1 | ||
18497 | ac_status=$? | ||
18498 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18499 | rm -f conftest.er1 | ||
18500 | cat conftest.err >&5 | ||
18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18502 | (exit $ac_status); } && | ||
18503 | { ac_try='test -z "$ac_c_werror_flag" | ||
18504 | || test ! -s conftest.err' | ||
18505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18506 | (eval $ac_try) 2>&5 | ||
18507 | ac_status=$? | ||
18508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18509 | (exit $ac_status); }; } && | ||
18510 | { ac_try='test -s conftest.$ac_objext' | ||
18511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18512 | (eval $ac_try) 2>&5 | ||
18513 | ac_status=$? | ||
18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18515 | (exit $ac_status); }; }; then | ||
18516 | ac_cv_have_u_char="yes" | ||
18517 | else | ||
18518 | echo "$as_me: failed program was:" >&5 | ||
18519 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18520 | |||
18521 | ac_cv_have_u_char="no" | ||
18522 | |||
18523 | fi | ||
18524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18525 | |||
18526 | fi | ||
18527 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
18528 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
18529 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
18530 | cat >>confdefs.h <<\_ACEOF | ||
18531 | #define HAVE_U_CHAR 1 | ||
18532 | _ACEOF | ||
18533 | |||
18534 | fi | ||
18535 | |||
18536 | |||
18537 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
18538 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
18539 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
18540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18541 | else | ||
18542 | cat >conftest.$ac_ext <<_ACEOF | ||
18543 | /* confdefs.h. */ | ||
18544 | _ACEOF | ||
18545 | cat confdefs.h >>conftest.$ac_ext | ||
18546 | cat >>conftest.$ac_ext <<_ACEOF | ||
18547 | /* end confdefs.h. */ | ||
18548 | #include <sys/types.h> | ||
18549 | #include <sys/socket.h> | ||
18550 | |||
18551 | int | ||
18552 | main () | ||
18553 | { | ||
18554 | if ((socklen_t *) 0) | ||
18555 | return 0; | ||
18556 | if (sizeof (socklen_t)) | ||
18557 | return 0; | ||
18558 | ; | ||
18559 | return 0; | ||
18560 | } | ||
18561 | _ACEOF | ||
18562 | rm -f conftest.$ac_objext | ||
18563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18564 | (eval $ac_compile) 2>conftest.er1 | ||
18565 | ac_status=$? | ||
18566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18567 | rm -f conftest.er1 | ||
18568 | cat conftest.err >&5 | ||
18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18570 | (exit $ac_status); } && | ||
18571 | { ac_try='test -z "$ac_c_werror_flag" | ||
18572 | || test ! -s conftest.err' | ||
18573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18574 | (eval $ac_try) 2>&5 | ||
18575 | ac_status=$? | ||
18576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18577 | (exit $ac_status); }; } && | ||
18578 | { ac_try='test -s conftest.$ac_objext' | ||
18579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18580 | (eval $ac_try) 2>&5 | ||
18581 | ac_status=$? | ||
18582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18583 | (exit $ac_status); }; }; then | ||
18584 | ac_cv_type_socklen_t=yes | ||
18585 | else | ||
18586 | echo "$as_me: failed program was:" >&5 | ||
18587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18588 | |||
18589 | ac_cv_type_socklen_t=no | ||
18590 | fi | ||
18591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18592 | fi | ||
18593 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
18594 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
18595 | if test $ac_cv_type_socklen_t = yes; then | ||
18596 | : | ||
18597 | else | ||
18598 | |||
18599 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
18600 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
18601 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18603 | else | ||
18604 | |||
18605 | # Systems have either "struct sockaddr *" or | ||
18606 | # "void *" as the second argument to getpeername | ||
18607 | curl_cv_socklen_t_equiv= | ||
18608 | for arg2 in "struct sockaddr" void; do | ||
18609 | for t in int size_t unsigned long "unsigned long"; do | ||
18610 | cat >conftest.$ac_ext <<_ACEOF | ||
18611 | /* confdefs.h. */ | ||
18612 | _ACEOF | ||
18613 | cat confdefs.h >>conftest.$ac_ext | ||
18614 | cat >>conftest.$ac_ext <<_ACEOF | ||
18615 | /* end confdefs.h. */ | ||
18616 | |||
18617 | #include <sys/types.h> | ||
18618 | #include <sys/socket.h> | ||
18619 | |||
18620 | int getpeername (int, $arg2 *, $t *); | ||
18621 | |||
18622 | int | ||
18623 | main () | ||
18624 | { | ||
18625 | |||
18626 | $t len; | ||
18627 | getpeername(0,0,&len); | ||
18628 | |||
18629 | ; | ||
18630 | return 0; | ||
18631 | } | ||
18632 | _ACEOF | ||
18633 | rm -f conftest.$ac_objext | ||
18634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18635 | (eval $ac_compile) 2>conftest.er1 | ||
18636 | ac_status=$? | ||
18637 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18638 | rm -f conftest.er1 | ||
18639 | cat conftest.err >&5 | ||
18640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18641 | (exit $ac_status); } && | ||
18642 | { ac_try='test -z "$ac_c_werror_flag" | ||
18643 | || test ! -s conftest.err' | ||
18644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18645 | (eval $ac_try) 2>&5 | ||
18646 | ac_status=$? | ||
18647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18648 | (exit $ac_status); }; } && | ||
18649 | { ac_try='test -s conftest.$ac_objext' | ||
18650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18651 | (eval $ac_try) 2>&5 | ||
18652 | ac_status=$? | ||
18653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18654 | (exit $ac_status); }; }; then | ||
18655 | |||
18656 | curl_cv_socklen_t_equiv="$t" | ||
18657 | break | ||
18658 | |||
18659 | else | ||
18660 | echo "$as_me: failed program was:" >&5 | ||
18661 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18662 | |||
18663 | fi | ||
18664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18665 | done | ||
18666 | done | ||
18667 | |||
18668 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
18669 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
18670 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
18671 | { (exit 1); exit 1; }; } | ||
18672 | fi | ||
18673 | |||
18674 | fi | ||
18675 | |||
18676 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
18677 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
18678 | |||
18679 | cat >>confdefs.h <<_ACEOF | ||
18680 | #define socklen_t $curl_cv_socklen_t_equiv | ||
18681 | _ACEOF | ||
18682 | |||
18683 | fi | ||
18684 | |||
18685 | |||
18686 | |||
18687 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
18688 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
18689 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
18690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18691 | else | ||
18692 | cat >conftest.$ac_ext <<_ACEOF | ||
18693 | /* confdefs.h. */ | ||
18694 | _ACEOF | ||
18695 | cat confdefs.h >>conftest.$ac_ext | ||
18696 | cat >>conftest.$ac_ext <<_ACEOF | ||
18697 | /* end confdefs.h. */ | ||
18698 | #include <signal.h> | ||
18699 | |||
18700 | int | ||
18701 | main () | ||
18702 | { | ||
18703 | if ((sig_atomic_t *) 0) | ||
18704 | return 0; | ||
18705 | if (sizeof (sig_atomic_t)) | ||
18706 | return 0; | ||
18707 | ; | ||
18708 | return 0; | ||
18709 | } | ||
18710 | _ACEOF | ||
18711 | rm -f conftest.$ac_objext | ||
18712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18713 | (eval $ac_compile) 2>conftest.er1 | ||
18714 | ac_status=$? | ||
18715 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18716 | rm -f conftest.er1 | ||
18717 | cat conftest.err >&5 | ||
18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18719 | (exit $ac_status); } && | ||
18720 | { ac_try='test -z "$ac_c_werror_flag" | ||
18721 | || test ! -s conftest.err' | ||
18722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18723 | (eval $ac_try) 2>&5 | ||
18724 | ac_status=$? | ||
18725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18726 | (exit $ac_status); }; } && | ||
18727 | { ac_try='test -s conftest.$ac_objext' | ||
18728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18729 | (eval $ac_try) 2>&5 | ||
18730 | ac_status=$? | ||
18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18732 | (exit $ac_status); }; }; then | ||
18733 | ac_cv_type_sig_atomic_t=yes | ||
18734 | else | ||
18735 | echo "$as_me: failed program was:" >&5 | ||
18736 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18737 | |||
18738 | ac_cv_type_sig_atomic_t=no | ||
18739 | fi | ||
18740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18741 | fi | ||
18742 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
18743 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
18744 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
18745 | |||
18746 | cat >>confdefs.h <<_ACEOF | ||
18747 | #define HAVE_SIG_ATOMIC_T 1 | ||
18748 | _ACEOF | ||
18749 | |||
18750 | |||
18751 | fi | ||
18752 | |||
18753 | |||
18754 | echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
18755 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6 | ||
18756 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
18757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18758 | else | ||
18759 | cat >conftest.$ac_ext <<_ACEOF | ||
18760 | /* confdefs.h. */ | ||
18761 | _ACEOF | ||
18762 | cat confdefs.h >>conftest.$ac_ext | ||
18763 | cat >>conftest.$ac_ext <<_ACEOF | ||
18764 | /* end confdefs.h. */ | ||
18765 | #include <sys/types.h> | ||
18766 | #include <netinet/in.h> | ||
18767 | |||
18768 | int | ||
18769 | main () | ||
18770 | { | ||
18771 | if ((in_addr_t *) 0) | ||
18772 | return 0; | ||
18773 | if (sizeof (in_addr_t)) | ||
18774 | return 0; | ||
18775 | ; | ||
18776 | return 0; | ||
18777 | } | ||
18778 | _ACEOF | ||
18779 | rm -f conftest.$ac_objext | ||
18780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18781 | (eval $ac_compile) 2>conftest.er1 | ||
18782 | ac_status=$? | ||
18783 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18784 | rm -f conftest.er1 | ||
18785 | cat conftest.err >&5 | ||
18786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18787 | (exit $ac_status); } && | ||
18788 | { ac_try='test -z "$ac_c_werror_flag" | ||
18789 | || test ! -s conftest.err' | ||
18790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18791 | (eval $ac_try) 2>&5 | ||
18792 | ac_status=$? | ||
18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18794 | (exit $ac_status); }; } && | ||
18795 | { ac_try='test -s conftest.$ac_objext' | ||
18796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18797 | (eval $ac_try) 2>&5 | ||
18798 | ac_status=$? | ||
18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18800 | (exit $ac_status); }; }; then | ||
18801 | ac_cv_type_in_addr_t=yes | ||
18802 | else | ||
18803 | echo "$as_me: failed program was:" >&5 | ||
18804 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18805 | |||
18806 | ac_cv_type_in_addr_t=no | ||
18807 | fi | ||
18808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18809 | fi | ||
18810 | echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
18811 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6 | ||
18812 | if test $ac_cv_type_in_addr_t = yes; then | ||
18813 | |||
18814 | cat >>confdefs.h <<_ACEOF | ||
18815 | #define HAVE_IN_ADDR_T 1 | ||
18816 | _ACEOF | ||
18817 | |||
18818 | |||
18819 | fi | ||
18820 | |||
18821 | |||
18822 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
18823 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
18824 | if test "${ac_cv_have_size_t+set}" = set; then | ||
18825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18826 | else | ||
18827 | |||
18828 | cat >conftest.$ac_ext <<_ACEOF | ||
18829 | /* confdefs.h. */ | ||
18830 | _ACEOF | ||
18831 | cat confdefs.h >>conftest.$ac_ext | ||
18832 | cat >>conftest.$ac_ext <<_ACEOF | ||
18833 | /* end confdefs.h. */ | ||
18834 | |||
18835 | #include <sys/types.h> | ||
18836 | |||
18837 | int | ||
18838 | main () | ||
18839 | { | ||
18840 | size_t foo; foo = 1235; | ||
18841 | ; | ||
18842 | return 0; | ||
18843 | } | ||
18844 | _ACEOF | ||
18845 | rm -f conftest.$ac_objext | ||
18846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18847 | (eval $ac_compile) 2>conftest.er1 | ||
18848 | ac_status=$? | ||
18849 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18850 | rm -f conftest.er1 | ||
18851 | cat conftest.err >&5 | ||
18852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18853 | (exit $ac_status); } && | ||
18854 | { ac_try='test -z "$ac_c_werror_flag" | ||
18855 | || test ! -s conftest.err' | ||
18856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18857 | (eval $ac_try) 2>&5 | ||
18858 | ac_status=$? | ||
18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18860 | (exit $ac_status); }; } && | ||
18861 | { ac_try='test -s conftest.$ac_objext' | ||
18862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18863 | (eval $ac_try) 2>&5 | ||
18864 | ac_status=$? | ||
18865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18866 | (exit $ac_status); }; }; then | ||
18867 | ac_cv_have_size_t="yes" | ||
18868 | else | ||
18869 | echo "$as_me: failed program was:" >&5 | ||
18870 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18871 | |||
18872 | ac_cv_have_size_t="no" | ||
18873 | |||
18874 | fi | ||
18875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18876 | |||
18877 | fi | ||
18878 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
18879 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
18880 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
18881 | cat >>confdefs.h <<\_ACEOF | ||
18882 | #define HAVE_SIZE_T 1 | ||
18883 | _ACEOF | ||
18884 | |||
18885 | fi | ||
18886 | |||
18887 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
18888 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
18889 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
18890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18891 | else | ||
18892 | |||
18893 | cat >conftest.$ac_ext <<_ACEOF | ||
18894 | /* confdefs.h. */ | ||
18895 | _ACEOF | ||
18896 | cat confdefs.h >>conftest.$ac_ext | ||
18897 | cat >>conftest.$ac_ext <<_ACEOF | ||
18898 | /* end confdefs.h. */ | ||
18899 | |||
18900 | #include <sys/types.h> | ||
18901 | |||
18902 | int | ||
18903 | main () | ||
18904 | { | ||
18905 | ssize_t foo; foo = 1235; | ||
18906 | ; | ||
18907 | return 0; | ||
18908 | } | ||
18909 | _ACEOF | ||
18910 | rm -f conftest.$ac_objext | ||
18911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18912 | (eval $ac_compile) 2>conftest.er1 | ||
18913 | ac_status=$? | ||
18914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18915 | rm -f conftest.er1 | ||
18916 | cat conftest.err >&5 | ||
18917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18918 | (exit $ac_status); } && | ||
18919 | { ac_try='test -z "$ac_c_werror_flag" | ||
18920 | || test ! -s conftest.err' | ||
18921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18922 | (eval $ac_try) 2>&5 | ||
18923 | ac_status=$? | ||
18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18925 | (exit $ac_status); }; } && | ||
18926 | { ac_try='test -s conftest.$ac_objext' | ||
18927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18928 | (eval $ac_try) 2>&5 | ||
18929 | ac_status=$? | ||
18930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18931 | (exit $ac_status); }; }; then | ||
18932 | ac_cv_have_ssize_t="yes" | ||
18933 | else | ||
18934 | echo "$as_me: failed program was:" >&5 | ||
18935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18936 | |||
18937 | ac_cv_have_ssize_t="no" | ||
18938 | |||
18939 | fi | ||
18940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18941 | |||
18942 | fi | ||
18943 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
18944 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
18945 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
18946 | cat >>confdefs.h <<\_ACEOF | ||
18947 | #define HAVE_SSIZE_T 1 | ||
18948 | _ACEOF | ||
18949 | |||
18950 | fi | ||
18951 | |||
18952 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
18953 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
18954 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
18955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18956 | else | ||
18957 | |||
18958 | cat >conftest.$ac_ext <<_ACEOF | ||
18959 | /* confdefs.h. */ | ||
18960 | _ACEOF | ||
18961 | cat confdefs.h >>conftest.$ac_ext | ||
18962 | cat >>conftest.$ac_ext <<_ACEOF | ||
18963 | /* end confdefs.h. */ | ||
18964 | |||
18965 | #include <time.h> | ||
18966 | |||
18967 | int | ||
18968 | main () | ||
18969 | { | ||
18970 | clock_t foo; foo = 1235; | ||
18971 | ; | ||
18972 | return 0; | ||
18973 | } | ||
18974 | _ACEOF | ||
18975 | rm -f conftest.$ac_objext | ||
18976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18977 | (eval $ac_compile) 2>conftest.er1 | ||
18978 | ac_status=$? | ||
18979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18980 | rm -f conftest.er1 | ||
18981 | cat conftest.err >&5 | ||
18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18983 | (exit $ac_status); } && | ||
18984 | { ac_try='test -z "$ac_c_werror_flag" | ||
18985 | || test ! -s conftest.err' | ||
18986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18987 | (eval $ac_try) 2>&5 | ||
18988 | ac_status=$? | ||
18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18990 | (exit $ac_status); }; } && | ||
18991 | { ac_try='test -s conftest.$ac_objext' | ||
18992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18993 | (eval $ac_try) 2>&5 | ||
18994 | ac_status=$? | ||
18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18996 | (exit $ac_status); }; }; then | ||
18997 | ac_cv_have_clock_t="yes" | ||
18998 | else | ||
18999 | echo "$as_me: failed program was:" >&5 | ||
19000 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19001 | |||
19002 | ac_cv_have_clock_t="no" | ||
19003 | |||
19004 | fi | ||
19005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19006 | |||
19007 | fi | ||
19008 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
19009 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
19010 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
19011 | cat >>confdefs.h <<\_ACEOF | ||
19012 | #define HAVE_CLOCK_T 1 | ||
19013 | _ACEOF | ||
19014 | |||
19015 | fi | ||
19016 | |||
19017 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
19018 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
19019 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
19020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19021 | else | ||
19022 | |||
19023 | cat >conftest.$ac_ext <<_ACEOF | ||
19024 | /* confdefs.h. */ | ||
19025 | _ACEOF | ||
19026 | cat confdefs.h >>conftest.$ac_ext | ||
19027 | cat >>conftest.$ac_ext <<_ACEOF | ||
19028 | /* end confdefs.h. */ | ||
19029 | |||
19030 | #include <sys/types.h> | ||
19031 | #include <sys/socket.h> | ||
19032 | |||
19033 | int | ||
19034 | main () | ||
19035 | { | ||
19036 | sa_family_t foo; foo = 1235; | ||
19037 | ; | ||
19038 | return 0; | ||
19039 | } | ||
19040 | _ACEOF | ||
19041 | rm -f conftest.$ac_objext | ||
19042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19043 | (eval $ac_compile) 2>conftest.er1 | ||
19044 | ac_status=$? | ||
19045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19046 | rm -f conftest.er1 | ||
19047 | cat conftest.err >&5 | ||
19048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19049 | (exit $ac_status); } && | ||
19050 | { ac_try='test -z "$ac_c_werror_flag" | ||
19051 | || test ! -s conftest.err' | ||
19052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19053 | (eval $ac_try) 2>&5 | ||
19054 | ac_status=$? | ||
19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19056 | (exit $ac_status); }; } && | ||
19057 | { ac_try='test -s conftest.$ac_objext' | ||
19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19059 | (eval $ac_try) 2>&5 | ||
19060 | ac_status=$? | ||
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19062 | (exit $ac_status); }; }; then | ||
19063 | ac_cv_have_sa_family_t="yes" | ||
19064 | else | ||
19065 | echo "$as_me: failed program was:" >&5 | ||
19066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19067 | |||
19068 | cat >conftest.$ac_ext <<_ACEOF | ||
19069 | /* confdefs.h. */ | ||
19070 | _ACEOF | ||
19071 | cat confdefs.h >>conftest.$ac_ext | ||
19072 | cat >>conftest.$ac_ext <<_ACEOF | ||
19073 | /* end confdefs.h. */ | ||
19074 | |||
19075 | #include <sys/types.h> | ||
19076 | #include <sys/socket.h> | ||
19077 | #include <netinet/in.h> | ||
19078 | |||
19079 | int | ||
19080 | main () | ||
19081 | { | ||
19082 | sa_family_t foo; foo = 1235; | ||
19083 | ; | ||
19084 | return 0; | ||
19085 | } | ||
19086 | _ACEOF | ||
19087 | rm -f conftest.$ac_objext | ||
19088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19089 | (eval $ac_compile) 2>conftest.er1 | ||
19090 | ac_status=$? | ||
19091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19092 | rm -f conftest.er1 | ||
19093 | cat conftest.err >&5 | ||
19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19095 | (exit $ac_status); } && | ||
19096 | { ac_try='test -z "$ac_c_werror_flag" | ||
19097 | || test ! -s conftest.err' | ||
19098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19099 | (eval $ac_try) 2>&5 | ||
19100 | ac_status=$? | ||
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19102 | (exit $ac_status); }; } && | ||
19103 | { ac_try='test -s conftest.$ac_objext' | ||
19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19105 | (eval $ac_try) 2>&5 | ||
19106 | ac_status=$? | ||
19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19108 | (exit $ac_status); }; }; then | ||
19109 | ac_cv_have_sa_family_t="yes" | ||
19110 | else | ||
19111 | echo "$as_me: failed program was:" >&5 | ||
19112 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19113 | |||
19114 | ac_cv_have_sa_family_t="no" | ||
19115 | |||
19116 | fi | ||
19117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19118 | |||
19119 | fi | ||
19120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19121 | |||
19122 | fi | ||
19123 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
19124 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
19125 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
19126 | cat >>confdefs.h <<\_ACEOF | ||
19127 | #define HAVE_SA_FAMILY_T 1 | ||
19128 | _ACEOF | ||
19129 | |||
19130 | fi | ||
19131 | |||
19132 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
19133 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
19134 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
19135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19136 | else | ||
19137 | |||
19138 | cat >conftest.$ac_ext <<_ACEOF | ||
19139 | /* confdefs.h. */ | ||
19140 | _ACEOF | ||
19141 | cat confdefs.h >>conftest.$ac_ext | ||
19142 | cat >>conftest.$ac_ext <<_ACEOF | ||
19143 | /* end confdefs.h. */ | ||
19144 | |||
19145 | #include <sys/types.h> | ||
19146 | |||
19147 | int | ||
19148 | main () | ||
19149 | { | ||
19150 | pid_t foo; foo = 1235; | ||
19151 | ; | ||
19152 | return 0; | ||
19153 | } | ||
19154 | _ACEOF | ||
19155 | rm -f conftest.$ac_objext | ||
19156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19157 | (eval $ac_compile) 2>conftest.er1 | ||
19158 | ac_status=$? | ||
19159 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19160 | rm -f conftest.er1 | ||
19161 | cat conftest.err >&5 | ||
19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19163 | (exit $ac_status); } && | ||
19164 | { ac_try='test -z "$ac_c_werror_flag" | ||
19165 | || test ! -s conftest.err' | ||
19166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19167 | (eval $ac_try) 2>&5 | ||
19168 | ac_status=$? | ||
19169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19170 | (exit $ac_status); }; } && | ||
19171 | { ac_try='test -s conftest.$ac_objext' | ||
19172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19173 | (eval $ac_try) 2>&5 | ||
19174 | ac_status=$? | ||
19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19176 | (exit $ac_status); }; }; then | ||
19177 | ac_cv_have_pid_t="yes" | ||
19178 | else | ||
19179 | echo "$as_me: failed program was:" >&5 | ||
19180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19181 | |||
19182 | ac_cv_have_pid_t="no" | ||
19183 | |||
19184 | fi | ||
19185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19186 | |||
19187 | fi | ||
19188 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
19189 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
19190 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
19191 | cat >>confdefs.h <<\_ACEOF | ||
19192 | #define HAVE_PID_T 1 | ||
19193 | _ACEOF | ||
19194 | |||
19195 | fi | ||
19196 | |||
19197 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
19198 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
19199 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
19200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19201 | else | ||
19202 | |||
19203 | cat >conftest.$ac_ext <<_ACEOF | ||
19204 | /* confdefs.h. */ | ||
19205 | _ACEOF | ||
19206 | cat confdefs.h >>conftest.$ac_ext | ||
19207 | cat >>conftest.$ac_ext <<_ACEOF | ||
19208 | /* end confdefs.h. */ | ||
19209 | |||
19210 | #include <sys/types.h> | ||
19211 | |||
19212 | int | ||
19213 | main () | ||
19214 | { | ||
19215 | mode_t foo; foo = 1235; | ||
19216 | ; | ||
19217 | return 0; | ||
19218 | } | ||
19219 | _ACEOF | ||
19220 | rm -f conftest.$ac_objext | ||
19221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19222 | (eval $ac_compile) 2>conftest.er1 | ||
19223 | ac_status=$? | ||
19224 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19225 | rm -f conftest.er1 | ||
19226 | cat conftest.err >&5 | ||
19227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19228 | (exit $ac_status); } && | ||
19229 | { ac_try='test -z "$ac_c_werror_flag" | ||
19230 | || test ! -s conftest.err' | ||
19231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19232 | (eval $ac_try) 2>&5 | ||
19233 | ac_status=$? | ||
19234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19235 | (exit $ac_status); }; } && | ||
19236 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
19242 | ac_cv_have_mode_t="yes" | ||
19243 | else | ||
19244 | echo "$as_me: failed program was:" >&5 | ||
19245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19246 | |||
19247 | ac_cv_have_mode_t="no" | ||
19248 | |||
19249 | fi | ||
19250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19251 | |||
19252 | fi | ||
19253 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
19254 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
19255 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
19256 | cat >>confdefs.h <<\_ACEOF | ||
19257 | #define HAVE_MODE_T 1 | ||
19258 | _ACEOF | ||
19259 | |||
19260 | fi | ||
19261 | |||
19262 | |||
19263 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
19264 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
19265 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
19266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19267 | else | ||
19268 | |||
19269 | cat >conftest.$ac_ext <<_ACEOF | ||
19270 | /* confdefs.h. */ | ||
19271 | _ACEOF | ||
19272 | cat confdefs.h >>conftest.$ac_ext | ||
19273 | cat >>conftest.$ac_ext <<_ACEOF | ||
19274 | /* end confdefs.h. */ | ||
19275 | |||
19276 | #include <sys/types.h> | ||
19277 | #include <sys/socket.h> | ||
19278 | |||
19279 | int | ||
19280 | main () | ||
19281 | { | ||
19282 | struct sockaddr_storage s; | ||
19283 | ; | ||
19284 | return 0; | ||
19285 | } | ||
19286 | _ACEOF | ||
19287 | rm -f conftest.$ac_objext | ||
19288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19289 | (eval $ac_compile) 2>conftest.er1 | ||
19290 | ac_status=$? | ||
19291 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19292 | rm -f conftest.er1 | ||
19293 | cat conftest.err >&5 | ||
19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19295 | (exit $ac_status); } && | ||
19296 | { ac_try='test -z "$ac_c_werror_flag" | ||
19297 | || test ! -s conftest.err' | ||
19298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19299 | (eval $ac_try) 2>&5 | ||
19300 | ac_status=$? | ||
19301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19302 | (exit $ac_status); }; } && | ||
19303 | { ac_try='test -s conftest.$ac_objext' | ||
19304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19305 | (eval $ac_try) 2>&5 | ||
19306 | ac_status=$? | ||
19307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19308 | (exit $ac_status); }; }; then | ||
19309 | ac_cv_have_struct_sockaddr_storage="yes" | ||
19310 | else | ||
19311 | echo "$as_me: failed program was:" >&5 | ||
19312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19313 | |||
19314 | ac_cv_have_struct_sockaddr_storage="no" | ||
19315 | |||
19316 | fi | ||
19317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19318 | |||
19319 | fi | ||
19320 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
19321 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
19322 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
19323 | cat >>confdefs.h <<\_ACEOF | ||
19324 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
19325 | _ACEOF | ||
19326 | |||
19327 | fi | ||
19328 | |||
19329 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
19330 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
19331 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
19332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19333 | else | ||
19334 | |||
19335 | cat >conftest.$ac_ext <<_ACEOF | ||
19336 | /* confdefs.h. */ | ||
19337 | _ACEOF | ||
19338 | cat confdefs.h >>conftest.$ac_ext | ||
19339 | cat >>conftest.$ac_ext <<_ACEOF | ||
19340 | /* end confdefs.h. */ | ||
19341 | |||
19342 | #include <sys/types.h> | ||
19343 | #include <netinet/in.h> | ||
19344 | |||
19345 | int | ||
19346 | main () | ||
19347 | { | ||
19348 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
19349 | ; | ||
19350 | return 0; | ||
19351 | } | ||
19352 | _ACEOF | ||
19353 | rm -f conftest.$ac_objext | ||
19354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19355 | (eval $ac_compile) 2>conftest.er1 | ||
19356 | ac_status=$? | ||
19357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19358 | rm -f conftest.er1 | ||
19359 | cat conftest.err >&5 | ||
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19361 | (exit $ac_status); } && | ||
19362 | { ac_try='test -z "$ac_c_werror_flag" | ||
19363 | || test ! -s conftest.err' | ||
19364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19365 | (eval $ac_try) 2>&5 | ||
19366 | ac_status=$? | ||
19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19368 | (exit $ac_status); }; } && | ||
19369 | { ac_try='test -s conftest.$ac_objext' | ||
19370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19371 | (eval $ac_try) 2>&5 | ||
19372 | ac_status=$? | ||
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19374 | (exit $ac_status); }; }; then | ||
19375 | ac_cv_have_struct_sockaddr_in6="yes" | ||
19376 | else | ||
19377 | echo "$as_me: failed program was:" >&5 | ||
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19379 | |||
19380 | ac_cv_have_struct_sockaddr_in6="no" | ||
19381 | |||
19382 | fi | ||
19383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19384 | |||
19385 | fi | ||
19386 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
19387 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
19388 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
19389 | cat >>confdefs.h <<\_ACEOF | ||
19390 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
19391 | _ACEOF | ||
19392 | |||
19393 | fi | ||
19394 | |||
19395 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
19396 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
19397 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
19398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19399 | else | ||
19400 | |||
19401 | cat >conftest.$ac_ext <<_ACEOF | ||
19402 | /* confdefs.h. */ | ||
19403 | _ACEOF | ||
19404 | cat confdefs.h >>conftest.$ac_ext | ||
19405 | cat >>conftest.$ac_ext <<_ACEOF | ||
19406 | /* end confdefs.h. */ | ||
19407 | |||
19408 | #include <sys/types.h> | ||
19409 | #include <netinet/in.h> | ||
19410 | |||
19411 | int | ||
19412 | main () | ||
19413 | { | ||
19414 | struct in6_addr s; s.s6_addr[0] = 0; | ||
19415 | ; | ||
19416 | return 0; | ||
19417 | } | ||
19418 | _ACEOF | ||
19419 | rm -f conftest.$ac_objext | ||
19420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19421 | (eval $ac_compile) 2>conftest.er1 | ||
19422 | ac_status=$? | ||
19423 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19424 | rm -f conftest.er1 | ||
19425 | cat conftest.err >&5 | ||
19426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19427 | (exit $ac_status); } && | ||
19428 | { ac_try='test -z "$ac_c_werror_flag" | ||
19429 | || test ! -s conftest.err' | ||
19430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19431 | (eval $ac_try) 2>&5 | ||
19432 | ac_status=$? | ||
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19434 | (exit $ac_status); }; } && | ||
19435 | { ac_try='test -s conftest.$ac_objext' | ||
19436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19437 | (eval $ac_try) 2>&5 | ||
19438 | ac_status=$? | ||
19439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19440 | (exit $ac_status); }; }; then | ||
19441 | ac_cv_have_struct_in6_addr="yes" | ||
19442 | else | ||
19443 | echo "$as_me: failed program was:" >&5 | ||
19444 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19445 | |||
19446 | ac_cv_have_struct_in6_addr="no" | ||
19447 | |||
19448 | fi | ||
19449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19450 | |||
19451 | fi | ||
19452 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
19453 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
19454 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
19455 | cat >>confdefs.h <<\_ACEOF | ||
19456 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
19457 | _ACEOF | ||
19458 | |||
19459 | fi | ||
19460 | |||
19461 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
19462 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
19463 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
19464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19465 | else | ||
19466 | |||
19467 | cat >conftest.$ac_ext <<_ACEOF | ||
19468 | /* confdefs.h. */ | ||
19469 | _ACEOF | ||
19470 | cat confdefs.h >>conftest.$ac_ext | ||
19471 | cat >>conftest.$ac_ext <<_ACEOF | ||
19472 | /* end confdefs.h. */ | ||
19473 | |||
19474 | #include <sys/types.h> | ||
19475 | #include <sys/socket.h> | ||
19476 | #include <netdb.h> | ||
19477 | |||
19478 | int | ||
19479 | main () | ||
19480 | { | ||
19481 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
19482 | ; | ||
19483 | return 0; | ||
19484 | } | ||
19485 | _ACEOF | ||
19486 | rm -f conftest.$ac_objext | ||
19487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19488 | (eval $ac_compile) 2>conftest.er1 | ||
19489 | ac_status=$? | ||
19490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19491 | rm -f conftest.er1 | ||
19492 | cat conftest.err >&5 | ||
19493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19494 | (exit $ac_status); } && | ||
19495 | { ac_try='test -z "$ac_c_werror_flag" | ||
19496 | || test ! -s conftest.err' | ||
19497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19498 | (eval $ac_try) 2>&5 | ||
19499 | ac_status=$? | ||
19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19501 | (exit $ac_status); }; } && | ||
19502 | { ac_try='test -s conftest.$ac_objext' | ||
19503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19504 | (eval $ac_try) 2>&5 | ||
19505 | ac_status=$? | ||
19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19507 | (exit $ac_status); }; }; then | ||
19508 | ac_cv_have_struct_addrinfo="yes" | ||
19509 | else | ||
19510 | echo "$as_me: failed program was:" >&5 | ||
19511 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19512 | |||
19513 | ac_cv_have_struct_addrinfo="no" | ||
19514 | |||
19515 | fi | ||
19516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19517 | |||
19518 | fi | ||
19519 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
19520 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
19521 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
19522 | cat >>confdefs.h <<\_ACEOF | ||
19523 | #define HAVE_STRUCT_ADDRINFO 1 | ||
19524 | _ACEOF | ||
19525 | |||
19526 | fi | ||
19527 | |||
19528 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
19529 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
19530 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
19531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19532 | else | ||
19533 | |||
19534 | cat >conftest.$ac_ext <<_ACEOF | ||
19535 | /* confdefs.h. */ | ||
19536 | _ACEOF | ||
19537 | cat confdefs.h >>conftest.$ac_ext | ||
19538 | cat >>conftest.$ac_ext <<_ACEOF | ||
19539 | /* end confdefs.h. */ | ||
19540 | #include <sys/time.h> | ||
19541 | int | ||
19542 | main () | ||
19543 | { | ||
19544 | struct timeval tv; tv.tv_sec = 1; | ||
19545 | ; | ||
19546 | return 0; | ||
19547 | } | ||
19548 | _ACEOF | ||
19549 | rm -f conftest.$ac_objext | ||
19550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19551 | (eval $ac_compile) 2>conftest.er1 | ||
19552 | ac_status=$? | ||
19553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19554 | rm -f conftest.er1 | ||
19555 | cat conftest.err >&5 | ||
19556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19557 | (exit $ac_status); } && | ||
19558 | { ac_try='test -z "$ac_c_werror_flag" | ||
19559 | || test ! -s conftest.err' | ||
19560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19561 | (eval $ac_try) 2>&5 | ||
19562 | ac_status=$? | ||
19563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19564 | (exit $ac_status); }; } && | ||
19565 | { ac_try='test -s conftest.$ac_objext' | ||
19566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19567 | (eval $ac_try) 2>&5 | ||
19568 | ac_status=$? | ||
19569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19570 | (exit $ac_status); }; }; then | ||
19571 | ac_cv_have_struct_timeval="yes" | ||
19572 | else | ||
19573 | echo "$as_me: failed program was:" >&5 | ||
19574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19575 | |||
19576 | ac_cv_have_struct_timeval="no" | ||
19577 | |||
19578 | fi | ||
19579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19580 | |||
19581 | fi | ||
19582 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
19583 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
19584 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
19585 | cat >>confdefs.h <<\_ACEOF | ||
19586 | #define HAVE_STRUCT_TIMEVAL 1 | ||
19587 | _ACEOF | ||
19588 | |||
19589 | have_struct_timeval=1 | ||
19590 | fi | ||
19591 | |||
19592 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
19593 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
19594 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
19595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19596 | else | ||
19597 | cat >conftest.$ac_ext <<_ACEOF | ||
19598 | /* confdefs.h. */ | ||
19599 | _ACEOF | ||
19600 | cat confdefs.h >>conftest.$ac_ext | ||
19601 | cat >>conftest.$ac_ext <<_ACEOF | ||
19602 | /* end confdefs.h. */ | ||
19603 | $ac_includes_default | ||
19604 | int | ||
19605 | main () | ||
19606 | { | ||
19607 | if ((struct timespec *) 0) | ||
19608 | return 0; | ||
19609 | if (sizeof (struct timespec)) | ||
19610 | return 0; | ||
19611 | ; | ||
19612 | return 0; | ||
19613 | } | ||
19614 | _ACEOF | ||
19615 | rm -f conftest.$ac_objext | ||
19616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19617 | (eval $ac_compile) 2>conftest.er1 | ||
19618 | ac_status=$? | ||
19619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19620 | rm -f conftest.er1 | ||
19621 | cat conftest.err >&5 | ||
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19623 | (exit $ac_status); } && | ||
19624 | { ac_try='test -z "$ac_c_werror_flag" | ||
19625 | || test ! -s conftest.err' | ||
19626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19627 | (eval $ac_try) 2>&5 | ||
19628 | ac_status=$? | ||
19629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19630 | (exit $ac_status); }; } && | ||
19631 | { ac_try='test -s conftest.$ac_objext' | ||
19632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19633 | (eval $ac_try) 2>&5 | ||
19634 | ac_status=$? | ||
19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19636 | (exit $ac_status); }; }; then | ||
19637 | ac_cv_type_struct_timespec=yes | ||
19638 | else | ||
19639 | echo "$as_me: failed program was:" >&5 | ||
19640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19641 | |||
19642 | ac_cv_type_struct_timespec=no | ||
19643 | fi | ||
19644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19645 | fi | ||
19646 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
19647 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
19648 | if test $ac_cv_type_struct_timespec = yes; then | ||
19649 | |||
19650 | cat >>confdefs.h <<_ACEOF | ||
19651 | #define HAVE_STRUCT_TIMESPEC 1 | ||
19652 | _ACEOF | ||
19653 | |||
19654 | |||
19655 | fi | ||
19656 | |||
19657 | |||
19658 | # We need int64_t or else certian parts of the compile will fail. | ||
19659 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
19660 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
19661 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
19662 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
19663 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
19664 | echo "" | ||
19665 | exit 1; | ||
19666 | else | ||
19667 | if test "$cross_compiling" = yes; then | ||
19668 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
19669 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
19670 | |||
19671 | else | ||
19672 | cat >conftest.$ac_ext <<_ACEOF | ||
19673 | /* confdefs.h. */ | ||
19674 | _ACEOF | ||
19675 | cat confdefs.h >>conftest.$ac_ext | ||
19676 | cat >>conftest.$ac_ext <<_ACEOF | ||
19677 | /* end confdefs.h. */ | ||
19678 | |||
19679 | #include <stdio.h> | ||
19680 | #include <string.h> | ||
19681 | #ifdef HAVE_SNPRINTF | ||
19682 | main() | ||
19683 | { | ||
19684 | char buf[50]; | ||
19685 | char expected_out[50]; | ||
19686 | int mazsize = 50 ; | ||
19687 | #if (SIZEOF_LONG_INT == 8) | ||
19688 | long int num = 0x7fffffffffffffff; | ||
19689 | #else | ||
19690 | long long num = 0x7fffffffffffffffll; | ||
19691 | #endif | ||
19692 | strcpy(expected_out, "9223372036854775807"); | ||
19693 | snprintf(buf, mazsize, "%lld", num); | ||
19694 | if(strcmp(buf, expected_out) != 0) | ||
19695 | exit(1); | ||
19696 | exit(0); | ||
19697 | } | ||
19698 | #else | ||
19699 | main() { exit(0); } | ||
19700 | #endif | ||
19701 | |||
19702 | _ACEOF | ||
19703 | rm -f conftest$ac_exeext | ||
19704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19705 | (eval $ac_link) 2>&5 | ||
19706 | ac_status=$? | ||
19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19710 | (eval $ac_try) 2>&5 | ||
19711 | ac_status=$? | ||
19712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19713 | (exit $ac_status); }; }; then | ||
19714 | true | ||
19715 | else | ||
19716 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19717 | echo "$as_me: failed program was:" >&5 | ||
19718 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19719 | |||
19720 | ( exit $ac_status ) | ||
19721 | cat >>confdefs.h <<\_ACEOF | ||
19722 | #define BROKEN_SNPRINTF 1 | ||
19723 | _ACEOF | ||
19724 | |||
19725 | fi | ||
19726 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19727 | fi | ||
19728 | fi | ||
19729 | |||
19730 | |||
19731 | # look for field 'ut_host' in header 'utmp.h' | ||
19732 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19733 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19734 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
19735 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
19736 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19738 | else | ||
19739 | |||
19740 | cat >conftest.$ac_ext <<_ACEOF | ||
19741 | /* confdefs.h. */ | ||
19742 | _ACEOF | ||
19743 | cat confdefs.h >>conftest.$ac_ext | ||
19744 | cat >>conftest.$ac_ext <<_ACEOF | ||
19745 | /* end confdefs.h. */ | ||
19746 | #include <utmp.h> | ||
19747 | |||
19748 | _ACEOF | ||
19749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19750 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19751 | eval "$ossh_varname=yes" | ||
19752 | else | ||
19753 | eval "$ossh_varname=no" | ||
19754 | fi | ||
19755 | rm -f conftest* | ||
19756 | |||
19757 | fi | ||
19758 | |||
19759 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19760 | if test -n "`echo $ossh_varname`"; then | ||
19761 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19762 | echo "${ECHO_T}$ossh_result" >&6 | ||
19763 | if test "x$ossh_result" = "xyes"; then | ||
19764 | cat >>confdefs.h <<\_ACEOF | ||
19765 | #define HAVE_HOST_IN_UTMP 1 | ||
19766 | _ACEOF | ||
19767 | |||
19768 | fi | ||
19769 | else | ||
19770 | echo "$as_me:$LINENO: result: no" >&5 | ||
19771 | echo "${ECHO_T}no" >&6 | ||
19772 | fi | ||
19773 | |||
19774 | |||
19775 | # look for field 'ut_host' in header 'utmpx.h' | ||
19776 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19777 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
19778 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
19779 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
19780 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19782 | else | ||
19783 | |||
19784 | cat >conftest.$ac_ext <<_ACEOF | ||
19785 | /* confdefs.h. */ | ||
19786 | _ACEOF | ||
19787 | cat confdefs.h >>conftest.$ac_ext | ||
19788 | cat >>conftest.$ac_ext <<_ACEOF | ||
19789 | /* end confdefs.h. */ | ||
19790 | #include <utmpx.h> | ||
19791 | |||
19792 | _ACEOF | ||
19793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19794 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
19795 | eval "$ossh_varname=yes" | ||
19796 | else | ||
19797 | eval "$ossh_varname=no" | ||
19798 | fi | ||
19799 | rm -f conftest* | ||
19800 | |||
19801 | fi | ||
19802 | |||
19803 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19804 | if test -n "`echo $ossh_varname`"; then | ||
19805 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19806 | echo "${ECHO_T}$ossh_result" >&6 | ||
19807 | if test "x$ossh_result" = "xyes"; then | ||
19808 | cat >>confdefs.h <<\_ACEOF | ||
19809 | #define HAVE_HOST_IN_UTMPX 1 | ||
19810 | _ACEOF | ||
19811 | |||
19812 | fi | ||
19813 | else | ||
19814 | echo "$as_me:$LINENO: result: no" >&5 | ||
19815 | echo "${ECHO_T}no" >&6 | ||
19816 | fi | ||
19817 | |||
19818 | |||
19819 | # look for field 'syslen' in header 'utmpx.h' | ||
19820 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19821 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
19822 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
19823 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
19824 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19826 | else | ||
19827 | |||
19828 | cat >conftest.$ac_ext <<_ACEOF | ||
19829 | /* confdefs.h. */ | ||
19830 | _ACEOF | ||
19831 | cat confdefs.h >>conftest.$ac_ext | ||
19832 | cat >>conftest.$ac_ext <<_ACEOF | ||
19833 | /* end confdefs.h. */ | ||
19834 | #include <utmpx.h> | ||
19835 | |||
19836 | _ACEOF | ||
19837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19838 | $EGREP "syslen" >/dev/null 2>&1; then | ||
19839 | eval "$ossh_varname=yes" | ||
19840 | else | ||
19841 | eval "$ossh_varname=no" | ||
19842 | fi | ||
19843 | rm -f conftest* | ||
19844 | |||
19845 | fi | ||
19846 | |||
19847 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19848 | if test -n "`echo $ossh_varname`"; then | ||
19849 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19850 | echo "${ECHO_T}$ossh_result" >&6 | ||
19851 | if test "x$ossh_result" = "xyes"; then | ||
19852 | cat >>confdefs.h <<\_ACEOF | ||
19853 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
19854 | _ACEOF | ||
19855 | |||
19856 | fi | ||
19857 | else | ||
19858 | echo "$as_me:$LINENO: result: no" >&5 | ||
19859 | echo "${ECHO_T}no" >&6 | ||
19860 | fi | ||
19861 | |||
19862 | |||
19863 | # look for field 'ut_pid' in header 'utmp.h' | ||
19864 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19865 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
19866 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
19867 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
19868 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19870 | else | ||
19871 | |||
19872 | cat >conftest.$ac_ext <<_ACEOF | ||
19873 | /* confdefs.h. */ | ||
19874 | _ACEOF | ||
19875 | cat confdefs.h >>conftest.$ac_ext | ||
19876 | cat >>conftest.$ac_ext <<_ACEOF | ||
19877 | /* end confdefs.h. */ | ||
19878 | #include <utmp.h> | ||
19879 | |||
19880 | _ACEOF | ||
19881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19882 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
19883 | eval "$ossh_varname=yes" | ||
19884 | else | ||
19885 | eval "$ossh_varname=no" | ||
19886 | fi | ||
19887 | rm -f conftest* | ||
19888 | |||
19889 | fi | ||
19890 | |||
19891 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19892 | if test -n "`echo $ossh_varname`"; then | ||
19893 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19894 | echo "${ECHO_T}$ossh_result" >&6 | ||
19895 | if test "x$ossh_result" = "xyes"; then | ||
19896 | cat >>confdefs.h <<\_ACEOF | ||
19897 | #define HAVE_PID_IN_UTMP 1 | ||
19898 | _ACEOF | ||
19899 | |||
19900 | fi | ||
19901 | else | ||
19902 | echo "$as_me:$LINENO: result: no" >&5 | ||
19903 | echo "${ECHO_T}no" >&6 | ||
19904 | fi | ||
19905 | |||
19906 | |||
19907 | # look for field 'ut_type' in header 'utmp.h' | ||
19908 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19909 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19910 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
19911 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
19912 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19914 | else | ||
19915 | |||
19916 | cat >conftest.$ac_ext <<_ACEOF | ||
19917 | /* confdefs.h. */ | ||
19918 | _ACEOF | ||
19919 | cat confdefs.h >>conftest.$ac_ext | ||
19920 | cat >>conftest.$ac_ext <<_ACEOF | ||
19921 | /* end confdefs.h. */ | ||
19922 | #include <utmp.h> | ||
19923 | |||
19924 | _ACEOF | ||
19925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19926 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19927 | eval "$ossh_varname=yes" | ||
19928 | else | ||
19929 | eval "$ossh_varname=no" | ||
19930 | fi | ||
19931 | rm -f conftest* | ||
19932 | |||
19933 | fi | ||
19934 | |||
19935 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19936 | if test -n "`echo $ossh_varname`"; then | ||
19937 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19938 | echo "${ECHO_T}$ossh_result" >&6 | ||
19939 | if test "x$ossh_result" = "xyes"; then | ||
19940 | cat >>confdefs.h <<\_ACEOF | ||
19941 | #define HAVE_TYPE_IN_UTMP 1 | ||
19942 | _ACEOF | ||
19943 | |||
19944 | fi | ||
19945 | else | ||
19946 | echo "$as_me:$LINENO: result: no" >&5 | ||
19947 | echo "${ECHO_T}no" >&6 | ||
19948 | fi | ||
19949 | |||
19950 | |||
19951 | # look for field 'ut_type' in header 'utmpx.h' | ||
19952 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
19953 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
19954 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
19955 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
19956 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
19957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19958 | else | ||
19959 | |||
19960 | cat >conftest.$ac_ext <<_ACEOF | ||
19961 | /* confdefs.h. */ | ||
19962 | _ACEOF | ||
19963 | cat confdefs.h >>conftest.$ac_ext | ||
19964 | cat >>conftest.$ac_ext <<_ACEOF | ||
19965 | /* end confdefs.h. */ | ||
19966 | #include <utmpx.h> | ||
19967 | |||
19968 | _ACEOF | ||
19969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19970 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
19971 | eval "$ossh_varname=yes" | ||
19972 | else | ||
19973 | eval "$ossh_varname=no" | ||
19974 | fi | ||
19975 | rm -f conftest* | ||
19976 | |||
19977 | fi | ||
19978 | |||
19979 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
19980 | if test -n "`echo $ossh_varname`"; then | ||
19981 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
19982 | echo "${ECHO_T}$ossh_result" >&6 | ||
19983 | if test "x$ossh_result" = "xyes"; then | ||
19984 | cat >>confdefs.h <<\_ACEOF | ||
19985 | #define HAVE_TYPE_IN_UTMPX 1 | ||
19986 | _ACEOF | ||
19987 | |||
19988 | fi | ||
19989 | else | ||
19990 | echo "$as_me:$LINENO: result: no" >&5 | ||
19991 | echo "${ECHO_T}no" >&6 | ||
19992 | fi | ||
19993 | |||
19994 | |||
19995 | # look for field 'ut_tv' in header 'utmp.h' | ||
19996 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
19997 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
19998 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
19999 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
20000 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20002 | else | ||
20003 | |||
20004 | cat >conftest.$ac_ext <<_ACEOF | ||
20005 | /* confdefs.h. */ | ||
20006 | _ACEOF | ||
20007 | cat confdefs.h >>conftest.$ac_ext | ||
20008 | cat >>conftest.$ac_ext <<_ACEOF | ||
20009 | /* end confdefs.h. */ | ||
20010 | #include <utmp.h> | ||
20011 | |||
20012 | _ACEOF | ||
20013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20014 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
20015 | eval "$ossh_varname=yes" | ||
20016 | else | ||
20017 | eval "$ossh_varname=no" | ||
20018 | fi | ||
20019 | rm -f conftest* | ||
20020 | |||
20021 | fi | ||
20022 | |||
20023 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20024 | if test -n "`echo $ossh_varname`"; then | ||
20025 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20026 | echo "${ECHO_T}$ossh_result" >&6 | ||
20027 | if test "x$ossh_result" = "xyes"; then | ||
20028 | cat >>confdefs.h <<\_ACEOF | ||
20029 | #define HAVE_TV_IN_UTMP 1 | ||
20030 | _ACEOF | ||
20031 | |||
20032 | fi | ||
20033 | else | ||
20034 | echo "$as_me:$LINENO: result: no" >&5 | ||
20035 | echo "${ECHO_T}no" >&6 | ||
20036 | fi | ||
20037 | |||
20038 | |||
20039 | # look for field 'ut_id' in header 'utmp.h' | ||
20040 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20041 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
20042 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
20043 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
20044 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20046 | else | ||
20047 | |||
20048 | cat >conftest.$ac_ext <<_ACEOF | ||
20049 | /* confdefs.h. */ | ||
20050 | _ACEOF | ||
20051 | cat confdefs.h >>conftest.$ac_ext | ||
20052 | cat >>conftest.$ac_ext <<_ACEOF | ||
20053 | /* end confdefs.h. */ | ||
20054 | #include <utmp.h> | ||
20055 | |||
20056 | _ACEOF | ||
20057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20058 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
20059 | eval "$ossh_varname=yes" | ||
20060 | else | ||
20061 | eval "$ossh_varname=no" | ||
20062 | fi | ||
20063 | rm -f conftest* | ||
20064 | |||
20065 | fi | ||
20066 | |||
20067 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20068 | if test -n "`echo $ossh_varname`"; then | ||
20069 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20070 | echo "${ECHO_T}$ossh_result" >&6 | ||
20071 | if test "x$ossh_result" = "xyes"; then | ||
20072 | cat >>confdefs.h <<\_ACEOF | ||
20073 | #define HAVE_ID_IN_UTMP 1 | ||
20074 | _ACEOF | ||
20075 | |||
20076 | fi | ||
20077 | else | ||
20078 | echo "$as_me:$LINENO: result: no" >&5 | ||
20079 | echo "${ECHO_T}no" >&6 | ||
20080 | fi | ||
20081 | |||
20082 | |||
20083 | # look for field 'ut_id' in header 'utmpx.h' | ||
20084 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20085 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
20086 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
20087 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
20088 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20090 | else | ||
20091 | |||
20092 | cat >conftest.$ac_ext <<_ACEOF | ||
20093 | /* confdefs.h. */ | ||
20094 | _ACEOF | ||
20095 | cat confdefs.h >>conftest.$ac_ext | ||
20096 | cat >>conftest.$ac_ext <<_ACEOF | ||
20097 | /* end confdefs.h. */ | ||
20098 | #include <utmpx.h> | ||
20099 | |||
20100 | _ACEOF | ||
20101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20102 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
20103 | eval "$ossh_varname=yes" | ||
20104 | else | ||
20105 | eval "$ossh_varname=no" | ||
20106 | fi | ||
20107 | rm -f conftest* | ||
20108 | |||
20109 | fi | ||
20110 | |||
20111 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20112 | if test -n "`echo $ossh_varname`"; then | ||
20113 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20114 | echo "${ECHO_T}$ossh_result" >&6 | ||
20115 | if test "x$ossh_result" = "xyes"; then | ||
20116 | cat >>confdefs.h <<\_ACEOF | ||
20117 | #define HAVE_ID_IN_UTMPX 1 | ||
20118 | _ACEOF | ||
20119 | |||
20120 | fi | ||
20121 | else | ||
20122 | echo "$as_me:$LINENO: result: no" >&5 | ||
20123 | echo "${ECHO_T}no" >&6 | ||
20124 | fi | ||
20125 | |||
20126 | |||
20127 | # look for field 'ut_addr' in header 'utmp.h' | ||
20128 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20129 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
20130 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
20131 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
20132 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20134 | else | ||
20135 | |||
20136 | cat >conftest.$ac_ext <<_ACEOF | ||
20137 | /* confdefs.h. */ | ||
20138 | _ACEOF | ||
20139 | cat confdefs.h >>conftest.$ac_ext | ||
20140 | cat >>conftest.$ac_ext <<_ACEOF | ||
20141 | /* end confdefs.h. */ | ||
20142 | #include <utmp.h> | ||
20143 | |||
20144 | _ACEOF | ||
20145 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20146 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
20147 | eval "$ossh_varname=yes" | ||
20148 | else | ||
20149 | eval "$ossh_varname=no" | ||
20150 | fi | ||
20151 | rm -f conftest* | ||
20152 | |||
20153 | fi | ||
20154 | |||
20155 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20156 | if test -n "`echo $ossh_varname`"; then | ||
20157 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20158 | echo "${ECHO_T}$ossh_result" >&6 | ||
20159 | if test "x$ossh_result" = "xyes"; then | ||
20160 | cat >>confdefs.h <<\_ACEOF | ||
20161 | #define HAVE_ADDR_IN_UTMP 1 | ||
20162 | _ACEOF | ||
20163 | |||
20164 | fi | ||
20165 | else | ||
20166 | echo "$as_me:$LINENO: result: no" >&5 | ||
20167 | echo "${ECHO_T}no" >&6 | ||
20168 | fi | ||
20169 | |||
20170 | |||
20171 | # look for field 'ut_addr' in header 'utmpx.h' | ||
20172 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20173 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
20174 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
20175 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
20176 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20178 | else | ||
20179 | |||
20180 | cat >conftest.$ac_ext <<_ACEOF | ||
20181 | /* confdefs.h. */ | ||
20182 | _ACEOF | ||
20183 | cat confdefs.h >>conftest.$ac_ext | ||
20184 | cat >>conftest.$ac_ext <<_ACEOF | ||
20185 | /* end confdefs.h. */ | ||
20186 | #include <utmpx.h> | ||
20187 | |||
20188 | _ACEOF | ||
20189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20190 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
20191 | eval "$ossh_varname=yes" | ||
20192 | else | ||
20193 | eval "$ossh_varname=no" | ||
20194 | fi | ||
20195 | rm -f conftest* | ||
20196 | |||
20197 | fi | ||
20198 | |||
20199 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20200 | if test -n "`echo $ossh_varname`"; then | ||
20201 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20202 | echo "${ECHO_T}$ossh_result" >&6 | ||
20203 | if test "x$ossh_result" = "xyes"; then | ||
20204 | cat >>confdefs.h <<\_ACEOF | ||
20205 | #define HAVE_ADDR_IN_UTMPX 1 | ||
20206 | _ACEOF | ||
20207 | |||
20208 | fi | ||
20209 | else | ||
20210 | echo "$as_me:$LINENO: result: no" >&5 | ||
20211 | echo "${ECHO_T}no" >&6 | ||
20212 | fi | ||
20213 | |||
20214 | |||
20215 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
20216 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20217 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
20218 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
20219 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
20220 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20222 | else | ||
20223 | |||
20224 | cat >conftest.$ac_ext <<_ACEOF | ||
20225 | /* confdefs.h. */ | ||
20226 | _ACEOF | ||
20227 | cat confdefs.h >>conftest.$ac_ext | ||
20228 | cat >>conftest.$ac_ext <<_ACEOF | ||
20229 | /* end confdefs.h. */ | ||
20230 | #include <utmp.h> | ||
20231 | |||
20232 | _ACEOF | ||
20233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20234 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
20235 | eval "$ossh_varname=yes" | ||
20236 | else | ||
20237 | eval "$ossh_varname=no" | ||
20238 | fi | ||
20239 | rm -f conftest* | ||
20240 | |||
20241 | fi | ||
20242 | |||
20243 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20244 | if test -n "`echo $ossh_varname`"; then | ||
20245 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20246 | echo "${ECHO_T}$ossh_result" >&6 | ||
20247 | if test "x$ossh_result" = "xyes"; then | ||
20248 | cat >>confdefs.h <<\_ACEOF | ||
20249 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
20250 | _ACEOF | ||
20251 | |||
20252 | fi | ||
20253 | else | ||
20254 | echo "$as_me:$LINENO: result: no" >&5 | ||
20255 | echo "${ECHO_T}no" >&6 | ||
20256 | fi | ||
20257 | |||
20258 | |||
20259 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
20260 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20261 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
20262 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
20263 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
20264 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20266 | else | ||
20267 | |||
20268 | cat >conftest.$ac_ext <<_ACEOF | ||
20269 | /* confdefs.h. */ | ||
20270 | _ACEOF | ||
20271 | cat confdefs.h >>conftest.$ac_ext | ||
20272 | cat >>conftest.$ac_ext <<_ACEOF | ||
20273 | /* end confdefs.h. */ | ||
20274 | #include <utmpx.h> | ||
20275 | |||
20276 | _ACEOF | ||
20277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20278 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
20279 | eval "$ossh_varname=yes" | ||
20280 | else | ||
20281 | eval "$ossh_varname=no" | ||
20282 | fi | ||
20283 | rm -f conftest* | ||
20284 | |||
20285 | fi | ||
20286 | |||
20287 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20288 | if test -n "`echo $ossh_varname`"; then | ||
20289 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20290 | echo "${ECHO_T}$ossh_result" >&6 | ||
20291 | if test "x$ossh_result" = "xyes"; then | ||
20292 | cat >>confdefs.h <<\_ACEOF | ||
20293 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
20294 | _ACEOF | ||
20295 | |||
20296 | fi | ||
20297 | else | ||
20298 | echo "$as_me:$LINENO: result: no" >&5 | ||
20299 | echo "${ECHO_T}no" >&6 | ||
20300 | fi | ||
20301 | |||
20302 | |||
20303 | # look for field 'ut_exit' in header 'utmp.h' | ||
20304 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20305 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
20306 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
20307 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
20308 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20310 | else | ||
20311 | |||
20312 | cat >conftest.$ac_ext <<_ACEOF | ||
20313 | /* confdefs.h. */ | ||
20314 | _ACEOF | ||
20315 | cat confdefs.h >>conftest.$ac_ext | ||
20316 | cat >>conftest.$ac_ext <<_ACEOF | ||
20317 | /* end confdefs.h. */ | ||
20318 | #include <utmp.h> | ||
20319 | |||
20320 | _ACEOF | ||
20321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20322 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
20323 | eval "$ossh_varname=yes" | ||
20324 | else | ||
20325 | eval "$ossh_varname=no" | ||
20326 | fi | ||
20327 | rm -f conftest* | ||
20328 | |||
20329 | fi | ||
20330 | |||
20331 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20332 | if test -n "`echo $ossh_varname`"; then | ||
20333 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20334 | echo "${ECHO_T}$ossh_result" >&6 | ||
20335 | if test "x$ossh_result" = "xyes"; then | ||
20336 | cat >>confdefs.h <<\_ACEOF | ||
20337 | #define HAVE_EXIT_IN_UTMP 1 | ||
20338 | _ACEOF | ||
20339 | |||
20340 | fi | ||
20341 | else | ||
20342 | echo "$as_me:$LINENO: result: no" >&5 | ||
20343 | echo "${ECHO_T}no" >&6 | ||
20344 | fi | ||
20345 | |||
20346 | |||
20347 | # look for field 'ut_time' in header 'utmp.h' | ||
20348 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
20349 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
20350 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
20351 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
20352 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20354 | else | ||
20355 | |||
20356 | cat >conftest.$ac_ext <<_ACEOF | ||
20357 | /* confdefs.h. */ | ||
20358 | _ACEOF | ||
20359 | cat confdefs.h >>conftest.$ac_ext | ||
20360 | cat >>conftest.$ac_ext <<_ACEOF | ||
20361 | /* end confdefs.h. */ | ||
20362 | #include <utmp.h> | ||
20363 | |||
20364 | _ACEOF | ||
20365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20366 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
20367 | eval "$ossh_varname=yes" | ||
20368 | else | ||
20369 | eval "$ossh_varname=no" | ||
20370 | fi | ||
20371 | rm -f conftest* | ||
20372 | |||
20373 | fi | ||
20374 | |||
20375 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20376 | if test -n "`echo $ossh_varname`"; then | ||
20377 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20378 | echo "${ECHO_T}$ossh_result" >&6 | ||
20379 | if test "x$ossh_result" = "xyes"; then | ||
20380 | cat >>confdefs.h <<\_ACEOF | ||
20381 | #define HAVE_TIME_IN_UTMP 1 | ||
20382 | _ACEOF | ||
20383 | |||
20384 | fi | ||
20385 | else | ||
20386 | echo "$as_me:$LINENO: result: no" >&5 | ||
20387 | echo "${ECHO_T}no" >&6 | ||
20388 | fi | ||
20389 | |||
20390 | |||
20391 | # look for field 'ut_time' in header 'utmpx.h' | ||
20392 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20393 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
20394 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
20395 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
20396 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20398 | else | ||
20399 | |||
20400 | cat >conftest.$ac_ext <<_ACEOF | ||
20401 | /* confdefs.h. */ | ||
20402 | _ACEOF | ||
20403 | cat confdefs.h >>conftest.$ac_ext | ||
20404 | cat >>conftest.$ac_ext <<_ACEOF | ||
20405 | /* end confdefs.h. */ | ||
20406 | #include <utmpx.h> | ||
20407 | |||
20408 | _ACEOF | ||
20409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20410 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
20411 | eval "$ossh_varname=yes" | ||
20412 | else | ||
20413 | eval "$ossh_varname=no" | ||
20414 | fi | ||
20415 | rm -f conftest* | ||
20416 | |||
20417 | fi | ||
20418 | |||
20419 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20420 | if test -n "`echo $ossh_varname`"; then | ||
20421 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20422 | echo "${ECHO_T}$ossh_result" >&6 | ||
20423 | if test "x$ossh_result" = "xyes"; then | ||
20424 | cat >>confdefs.h <<\_ACEOF | ||
20425 | #define HAVE_TIME_IN_UTMPX 1 | ||
20426 | _ACEOF | ||
20427 | |||
20428 | fi | ||
20429 | else | ||
20430 | echo "$as_me:$LINENO: result: no" >&5 | ||
20431 | echo "${ECHO_T}no" >&6 | ||
20432 | fi | ||
20433 | |||
20434 | |||
20435 | # look for field 'ut_tv' in header 'utmpx.h' | ||
20436 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
20437 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
20438 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
20439 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
20440 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
20441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20442 | else | ||
20443 | |||
20444 | cat >conftest.$ac_ext <<_ACEOF | ||
20445 | /* confdefs.h. */ | ||
20446 | _ACEOF | ||
20447 | cat confdefs.h >>conftest.$ac_ext | ||
20448 | cat >>conftest.$ac_ext <<_ACEOF | ||
20449 | /* end confdefs.h. */ | ||
20450 | #include <utmpx.h> | ||
20451 | |||
20452 | _ACEOF | ||
20453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
20454 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
20455 | eval "$ossh_varname=yes" | ||
20456 | else | ||
20457 | eval "$ossh_varname=no" | ||
20458 | fi | ||
20459 | rm -f conftest* | ||
20460 | |||
20461 | fi | ||
20462 | |||
20463 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
20464 | if test -n "`echo $ossh_varname`"; then | ||
20465 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
20466 | echo "${ECHO_T}$ossh_result" >&6 | ||
20467 | if test "x$ossh_result" = "xyes"; then | ||
20468 | cat >>confdefs.h <<\_ACEOF | ||
20469 | #define HAVE_TV_IN_UTMPX 1 | ||
20470 | _ACEOF | ||
20471 | |||
20472 | fi | ||
20473 | else | ||
20474 | echo "$as_me:$LINENO: result: no" >&5 | ||
20475 | echo "${ECHO_T}no" >&6 | ||
20476 | fi | ||
20477 | |||
20478 | |||
20479 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
20480 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
20481 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
20482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20483 | else | ||
20484 | cat >conftest.$ac_ext <<_ACEOF | ||
20485 | /* confdefs.h. */ | ||
20486 | _ACEOF | ||
20487 | cat confdefs.h >>conftest.$ac_ext | ||
20488 | cat >>conftest.$ac_ext <<_ACEOF | ||
20489 | /* end confdefs.h. */ | ||
20490 | $ac_includes_default | ||
20491 | int | ||
20492 | main () | ||
20493 | { | ||
20494 | static struct stat ac_aggr; | ||
20495 | if (ac_aggr.st_blksize) | ||
20496 | return 0; | ||
20497 | ; | ||
20498 | return 0; | ||
20499 | } | ||
20500 | _ACEOF | ||
20501 | rm -f conftest.$ac_objext | ||
20502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20503 | (eval $ac_compile) 2>conftest.er1 | ||
20504 | ac_status=$? | ||
20505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20506 | rm -f conftest.er1 | ||
20507 | cat conftest.err >&5 | ||
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20509 | (exit $ac_status); } && | ||
20510 | { ac_try='test -z "$ac_c_werror_flag" | ||
20511 | || test ! -s conftest.err' | ||
20512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20513 | (eval $ac_try) 2>&5 | ||
20514 | ac_status=$? | ||
20515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20516 | (exit $ac_status); }; } && | ||
20517 | { ac_try='test -s conftest.$ac_objext' | ||
20518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20519 | (eval $ac_try) 2>&5 | ||
20520 | ac_status=$? | ||
20521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20522 | (exit $ac_status); }; }; then | ||
20523 | ac_cv_member_struct_stat_st_blksize=yes | ||
20524 | else | ||
20525 | echo "$as_me: failed program was:" >&5 | ||
20526 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20527 | |||
20528 | cat >conftest.$ac_ext <<_ACEOF | ||
20529 | /* confdefs.h. */ | ||
20530 | _ACEOF | ||
20531 | cat confdefs.h >>conftest.$ac_ext | ||
20532 | cat >>conftest.$ac_ext <<_ACEOF | ||
20533 | /* end confdefs.h. */ | ||
20534 | $ac_includes_default | ||
20535 | int | ||
20536 | main () | ||
20537 | { | ||
20538 | static struct stat ac_aggr; | ||
20539 | if (sizeof ac_aggr.st_blksize) | ||
20540 | return 0; | ||
20541 | ; | ||
20542 | return 0; | ||
20543 | } | ||
20544 | _ACEOF | ||
20545 | rm -f conftest.$ac_objext | ||
20546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20547 | (eval $ac_compile) 2>conftest.er1 | ||
20548 | ac_status=$? | ||
20549 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20550 | rm -f conftest.er1 | ||
20551 | cat conftest.err >&5 | ||
20552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20553 | (exit $ac_status); } && | ||
20554 | { ac_try='test -z "$ac_c_werror_flag" | ||
20555 | || test ! -s conftest.err' | ||
20556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20557 | (eval $ac_try) 2>&5 | ||
20558 | ac_status=$? | ||
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20560 | (exit $ac_status); }; } && | ||
20561 | { ac_try='test -s conftest.$ac_objext' | ||
20562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20563 | (eval $ac_try) 2>&5 | ||
20564 | ac_status=$? | ||
20565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20566 | (exit $ac_status); }; }; then | ||
20567 | ac_cv_member_struct_stat_st_blksize=yes | ||
20568 | else | ||
20569 | echo "$as_me: failed program was:" >&5 | ||
20570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20571 | |||
20572 | ac_cv_member_struct_stat_st_blksize=no | ||
20573 | fi | ||
20574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20575 | fi | ||
20576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20577 | fi | ||
20578 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
20579 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
20580 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
20581 | |||
20582 | cat >>confdefs.h <<_ACEOF | ||
20583 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
20584 | _ACEOF | ||
20585 | |||
20586 | |||
20587 | fi | ||
20588 | |||
20589 | |||
20590 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
20591 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20592 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
20593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20594 | else | ||
20595 | |||
20596 | cat >conftest.$ac_ext <<_ACEOF | ||
20597 | /* confdefs.h. */ | ||
20598 | _ACEOF | ||
20599 | cat confdefs.h >>conftest.$ac_ext | ||
20600 | cat >>conftest.$ac_ext <<_ACEOF | ||
20601 | /* end confdefs.h. */ | ||
20602 | |||
20603 | #include <sys/types.h> | ||
20604 | #include <sys/socket.h> | ||
20605 | |||
20606 | int | ||
20607 | main () | ||
20608 | { | ||
20609 | struct sockaddr_storage s; s.ss_family = 1; | ||
20610 | ; | ||
20611 | return 0; | ||
20612 | } | ||
20613 | _ACEOF | ||
20614 | rm -f conftest.$ac_objext | ||
20615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20616 | (eval $ac_compile) 2>conftest.er1 | ||
20617 | ac_status=$? | ||
20618 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20619 | rm -f conftest.er1 | ||
20620 | cat conftest.err >&5 | ||
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20622 | (exit $ac_status); } && | ||
20623 | { ac_try='test -z "$ac_c_werror_flag" | ||
20624 | || test ! -s conftest.err' | ||
20625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20626 | (eval $ac_try) 2>&5 | ||
20627 | ac_status=$? | ||
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20629 | (exit $ac_status); }; } && | ||
20630 | { ac_try='test -s conftest.$ac_objext' | ||
20631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20632 | (eval $ac_try) 2>&5 | ||
20633 | ac_status=$? | ||
20634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20635 | (exit $ac_status); }; }; then | ||
20636 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
20637 | else | ||
20638 | echo "$as_me: failed program was:" >&5 | ||
20639 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20640 | |||
20641 | ac_cv_have_ss_family_in_struct_ss="no" | ||
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_ss_family_in_struct_ss" >&5 | ||
20647 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
20648 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
20649 | cat >>confdefs.h <<\_ACEOF | ||
20650 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
20651 | _ACEOF | ||
20652 | |||
20653 | fi | ||
20654 | |||
20655 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
20656 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
20657 | if test "${ac_cv_have___ss_family_in_struct_ss+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 | #include <sys/types.h> | ||
20669 | #include <sys/socket.h> | ||
20670 | |||
20671 | int | ||
20672 | main () | ||
20673 | { | ||
20674 | struct sockaddr_storage s; s.__ss_family = 1; | ||
20675 | ; | ||
20676 | return 0; | ||
20677 | } | ||
20678 | _ACEOF | ||
20679 | rm -f conftest.$ac_objext | ||
20680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20681 | (eval $ac_compile) 2>conftest.er1 | ||
20682 | ac_status=$? | ||
20683 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20684 | rm -f conftest.er1 | ||
20685 | cat conftest.err >&5 | ||
20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20687 | (exit $ac_status); } && | ||
20688 | { ac_try='test -z "$ac_c_werror_flag" | ||
20689 | || test ! -s conftest.err' | ||
20690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20691 | (eval $ac_try) 2>&5 | ||
20692 | ac_status=$? | ||
20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20694 | (exit $ac_status); }; } && | ||
20695 | { ac_try='test -s conftest.$ac_objext' | ||
20696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20697 | (eval $ac_try) 2>&5 | ||
20698 | ac_status=$? | ||
20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20700 | (exit $ac_status); }; }; then | ||
20701 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
20702 | else | ||
20703 | echo "$as_me: failed program was:" >&5 | ||
20704 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20705 | |||
20706 | ac_cv_have___ss_family_in_struct_ss="no" | ||
20707 | |||
20708 | fi | ||
20709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20710 | |||
20711 | fi | ||
20712 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
20713 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
20714 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
20715 | cat >>confdefs.h <<\_ACEOF | ||
20716 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
20717 | _ACEOF | ||
20718 | |||
20719 | fi | ||
20720 | |||
20721 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
20722 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
20723 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
20724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20725 | else | ||
20726 | |||
20727 | cat >conftest.$ac_ext <<_ACEOF | ||
20728 | /* confdefs.h. */ | ||
20729 | _ACEOF | ||
20730 | cat confdefs.h >>conftest.$ac_ext | ||
20731 | cat >>conftest.$ac_ext <<_ACEOF | ||
20732 | /* end confdefs.h. */ | ||
20733 | |||
20734 | #include <pwd.h> | ||
20735 | |||
20736 | int | ||
20737 | main () | ||
20738 | { | ||
20739 | struct passwd p; p.pw_class = 0; | ||
20740 | ; | ||
20741 | return 0; | ||
20742 | } | ||
20743 | _ACEOF | ||
20744 | rm -f conftest.$ac_objext | ||
20745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20746 | (eval $ac_compile) 2>conftest.er1 | ||
20747 | ac_status=$? | ||
20748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20749 | rm -f conftest.er1 | ||
20750 | cat conftest.err >&5 | ||
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20752 | (exit $ac_status); } && | ||
20753 | { ac_try='test -z "$ac_c_werror_flag" | ||
20754 | || test ! -s conftest.err' | ||
20755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20756 | (eval $ac_try) 2>&5 | ||
20757 | ac_status=$? | ||
20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20759 | (exit $ac_status); }; } && | ||
20760 | { ac_try='test -s conftest.$ac_objext' | ||
20761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20762 | (eval $ac_try) 2>&5 | ||
20763 | ac_status=$? | ||
20764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20765 | (exit $ac_status); }; }; then | ||
20766 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
20767 | else | ||
20768 | echo "$as_me: failed program was:" >&5 | ||
20769 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20770 | |||
20771 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
20772 | |||
20773 | fi | ||
20774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20775 | |||
20776 | fi | ||
20777 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
20778 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
20779 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
20780 | cat >>confdefs.h <<\_ACEOF | ||
20781 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
20782 | _ACEOF | ||
20783 | |||
20784 | fi | ||
20785 | |||
20786 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
20787 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
20788 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
20789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20790 | else | ||
20791 | |||
20792 | cat >conftest.$ac_ext <<_ACEOF | ||
20793 | /* confdefs.h. */ | ||
20794 | _ACEOF | ||
20795 | cat confdefs.h >>conftest.$ac_ext | ||
20796 | cat >>conftest.$ac_ext <<_ACEOF | ||
20797 | /* end confdefs.h. */ | ||
20798 | |||
20799 | #include <pwd.h> | ||
20800 | |||
20801 | int | ||
20802 | main () | ||
20803 | { | ||
20804 | struct passwd p; p.pw_expire = 0; | ||
20805 | ; | ||
20806 | return 0; | ||
20807 | } | ||
20808 | _ACEOF | ||
20809 | rm -f conftest.$ac_objext | ||
20810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20811 | (eval $ac_compile) 2>conftest.er1 | ||
20812 | ac_status=$? | ||
20813 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20814 | rm -f conftest.er1 | ||
20815 | cat conftest.err >&5 | ||
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20817 | (exit $ac_status); } && | ||
20818 | { ac_try='test -z "$ac_c_werror_flag" | ||
20819 | || test ! -s conftest.err' | ||
20820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20821 | (eval $ac_try) 2>&5 | ||
20822 | ac_status=$? | ||
20823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20824 | (exit $ac_status); }; } && | ||
20825 | { ac_try='test -s conftest.$ac_objext' | ||
20826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20827 | (eval $ac_try) 2>&5 | ||
20828 | ac_status=$? | ||
20829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20830 | (exit $ac_status); }; }; then | ||
20831 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
20832 | else | ||
20833 | echo "$as_me: failed program was:" >&5 | ||
20834 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20835 | |||
20836 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
20837 | |||
20838 | fi | ||
20839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20840 | |||
20841 | fi | ||
20842 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
20843 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
20844 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
20845 | cat >>confdefs.h <<\_ACEOF | ||
20846 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
20847 | _ACEOF | ||
20848 | |||
20849 | fi | ||
20850 | |||
20851 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
20852 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
20853 | if test "${ac_cv_have_pw_change_in_struct_passwd+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 <pwd.h> | ||
20865 | |||
20866 | int | ||
20867 | main () | ||
20868 | { | ||
20869 | struct passwd p; p.pw_change = 0; | ||
20870 | ; | ||
20871 | return 0; | ||
20872 | } | ||
20873 | _ACEOF | ||
20874 | rm -f conftest.$ac_objext | ||
20875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20876 | (eval $ac_compile) 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_objext' | ||
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_pw_change_in_struct_passwd="yes" | ||
20897 | else | ||
20898 | echo "$as_me: failed program was:" >&5 | ||
20899 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20900 | |||
20901 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
20902 | |||
20903 | fi | ||
20904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20905 | |||
20906 | fi | ||
20907 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
20908 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
20909 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
20910 | cat >>confdefs.h <<\_ACEOF | ||
20911 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
20912 | _ACEOF | ||
20913 | |||
20914 | fi | ||
20915 | |||
20916 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
20917 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
20918 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
20919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20920 | else | ||
20921 | |||
20922 | cat >conftest.$ac_ext <<_ACEOF | ||
20923 | |||
20924 | #include <sys/types.h> | ||
20925 | #include <sys/socket.h> | ||
20926 | #include <sys/uio.h> | ||
20927 | int main() { | ||
20928 | #ifdef msg_accrights | ||
20929 | #error "msg_accrights is a macro" | ||
20930 | exit(1); | ||
20931 | #endif | ||
20932 | struct msghdr m; | ||
20933 | m.msg_accrights = 0; | ||
20934 | exit(0); | ||
20935 | } | ||
20936 | |||
20937 | _ACEOF | ||
20938 | rm -f conftest.$ac_objext | ||
20939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20940 | (eval $ac_compile) 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_objext' | ||
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_have_accrights_in_msghdr="yes" | ||
20961 | else | ||
20962 | echo "$as_me: failed program was:" >&5 | ||
20963 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20964 | |||
20965 | ac_cv_have_accrights_in_msghdr="no" | ||
20966 | |||
20967 | fi | ||
20968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20969 | |||
20970 | fi | ||
20971 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
20972 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
20973 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
20974 | cat >>confdefs.h <<\_ACEOF | ||
20975 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
20976 | _ACEOF | ||
20977 | |||
20978 | fi | ||
20979 | |||
20980 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
20981 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
20982 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
20983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20984 | else | ||
20985 | |||
20986 | cat >conftest.$ac_ext <<_ACEOF | ||
20987 | |||
20988 | #include <sys/types.h> | ||
20989 | #include <sys/socket.h> | ||
20990 | #include <sys/uio.h> | ||
20991 | int main() { | ||
20992 | #ifdef msg_control | ||
20993 | #error "msg_control is a macro" | ||
20994 | exit(1); | ||
20995 | #endif | ||
20996 | struct msghdr m; | ||
20997 | m.msg_control = 0; | ||
20998 | exit(0); | ||
20999 | } | ||
21000 | |||
21001 | _ACEOF | ||
21002 | rm -f conftest.$ac_objext | ||
21003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21004 | (eval $ac_compile) 2>conftest.er1 | ||
21005 | ac_status=$? | ||
21006 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21007 | rm -f conftest.er1 | ||
21008 | cat conftest.err >&5 | ||
21009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21010 | (exit $ac_status); } && | ||
21011 | { ac_try='test -z "$ac_c_werror_flag" | ||
21012 | || test ! -s conftest.err' | ||
21013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21014 | (eval $ac_try) 2>&5 | ||
21015 | ac_status=$? | ||
21016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21017 | (exit $ac_status); }; } && | ||
21018 | { ac_try='test -s conftest.$ac_objext' | ||
21019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21020 | (eval $ac_try) 2>&5 | ||
21021 | ac_status=$? | ||
21022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21023 | (exit $ac_status); }; }; then | ||
21024 | ac_cv_have_control_in_msghdr="yes" | ||
21025 | else | ||
21026 | echo "$as_me: failed program was:" >&5 | ||
21027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21028 | |||
21029 | ac_cv_have_control_in_msghdr="no" | ||
21030 | |||
21031 | fi | ||
21032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21033 | |||
21034 | fi | ||
21035 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
21036 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
21037 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
21038 | cat >>confdefs.h <<\_ACEOF | ||
21039 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
21040 | _ACEOF | ||
21041 | |||
21042 | fi | ||
21043 | |||
21044 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
21045 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
21046 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
21047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21048 | else | ||
21049 | |||
21050 | cat >conftest.$ac_ext <<_ACEOF | ||
21051 | /* confdefs.h. */ | ||
21052 | _ACEOF | ||
21053 | cat confdefs.h >>conftest.$ac_ext | ||
21054 | cat >>conftest.$ac_ext <<_ACEOF | ||
21055 | /* end confdefs.h. */ | ||
21056 | |||
21057 | int | ||
21058 | main () | ||
21059 | { | ||
21060 | extern char *__progname; printf("%s", __progname); | ||
21061 | ; | ||
21062 | return 0; | ||
21063 | } | ||
21064 | _ACEOF | ||
21065 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21067 | (eval $ac_link) 2>conftest.er1 | ||
21068 | ac_status=$? | ||
21069 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21070 | rm -f conftest.er1 | ||
21071 | cat conftest.err >&5 | ||
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21073 | (exit $ac_status); } && | ||
21074 | { ac_try='test -z "$ac_c_werror_flag" | ||
21075 | || test ! -s conftest.err' | ||
21076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21077 | (eval $ac_try) 2>&5 | ||
21078 | ac_status=$? | ||
21079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21080 | (exit $ac_status); }; } && | ||
21081 | { ac_try='test -s conftest$ac_exeext' | ||
21082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21083 | (eval $ac_try) 2>&5 | ||
21084 | ac_status=$? | ||
21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21086 | (exit $ac_status); }; }; then | ||
21087 | ac_cv_libc_defines___progname="yes" | ||
21088 | else | ||
21089 | echo "$as_me: failed program was:" >&5 | ||
21090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21091 | |||
21092 | ac_cv_libc_defines___progname="no" | ||
21093 | |||
21094 | fi | ||
21095 | rm -f conftest.err conftest.$ac_objext \ | ||
21096 | conftest$ac_exeext conftest.$ac_ext | ||
21097 | |||
21098 | fi | ||
21099 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
21100 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
21101 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
21102 | cat >>confdefs.h <<\_ACEOF | ||
21103 | #define HAVE___PROGNAME 1 | ||
21104 | _ACEOF | ||
21105 | |||
21106 | fi | ||
21107 | |||
21108 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
21109 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
21110 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
21111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21112 | else | ||
21113 | |||
21114 | cat >conftest.$ac_ext <<_ACEOF | ||
21115 | /* confdefs.h. */ | ||
21116 | _ACEOF | ||
21117 | cat confdefs.h >>conftest.$ac_ext | ||
21118 | cat >>conftest.$ac_ext <<_ACEOF | ||
21119 | /* end confdefs.h. */ | ||
21120 | |||
21121 | #include <stdio.h> | ||
21122 | |||
21123 | int | ||
21124 | main () | ||
21125 | { | ||
21126 | printf("%s", __FUNCTION__); | ||
21127 | ; | ||
21128 | return 0; | ||
21129 | } | ||
21130 | _ACEOF | ||
21131 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21133 | (eval $ac_link) 2>conftest.er1 | ||
21134 | ac_status=$? | ||
21135 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21136 | rm -f conftest.er1 | ||
21137 | cat conftest.err >&5 | ||
21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21139 | (exit $ac_status); } && | ||
21140 | { ac_try='test -z "$ac_c_werror_flag" | ||
21141 | || test ! -s conftest.err' | ||
21142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21143 | (eval $ac_try) 2>&5 | ||
21144 | ac_status=$? | ||
21145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21146 | (exit $ac_status); }; } && | ||
21147 | { ac_try='test -s conftest$ac_exeext' | ||
21148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21149 | (eval $ac_try) 2>&5 | ||
21150 | ac_status=$? | ||
21151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21152 | (exit $ac_status); }; }; then | ||
21153 | ac_cv_cc_implements___FUNCTION__="yes" | ||
21154 | else | ||
21155 | echo "$as_me: failed program was:" >&5 | ||
21156 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21157 | |||
21158 | ac_cv_cc_implements___FUNCTION__="no" | ||
21159 | |||
21160 | fi | ||
21161 | rm -f conftest.err conftest.$ac_objext \ | ||
21162 | conftest$ac_exeext conftest.$ac_ext | ||
21163 | |||
21164 | fi | ||
21165 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
21166 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
21167 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
21168 | cat >>confdefs.h <<\_ACEOF | ||
21169 | #define HAVE___FUNCTION__ 1 | ||
21170 | _ACEOF | ||
21171 | |||
21172 | fi | ||
21173 | |||
21174 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
21175 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
21176 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
21177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21178 | else | ||
21179 | |||
21180 | cat >conftest.$ac_ext <<_ACEOF | ||
21181 | /* confdefs.h. */ | ||
21182 | _ACEOF | ||
21183 | cat confdefs.h >>conftest.$ac_ext | ||
21184 | cat >>conftest.$ac_ext <<_ACEOF | ||
21185 | /* end confdefs.h. */ | ||
21186 | |||
21187 | #include <stdio.h> | ||
21188 | |||
21189 | int | ||
21190 | main () | ||
21191 | { | ||
21192 | printf("%s", __func__); | ||
21193 | ; | ||
21194 | return 0; | ||
21195 | } | ||
21196 | _ACEOF | ||
21197 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21199 | (eval $ac_link) 2>conftest.er1 | ||
21200 | ac_status=$? | ||
21201 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21202 | rm -f conftest.er1 | ||
21203 | cat conftest.err >&5 | ||
21204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21205 | (exit $ac_status); } && | ||
21206 | { ac_try='test -z "$ac_c_werror_flag" | ||
21207 | || test ! -s conftest.err' | ||
21208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21209 | (eval $ac_try) 2>&5 | ||
21210 | ac_status=$? | ||
21211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21212 | (exit $ac_status); }; } && | ||
21213 | { ac_try='test -s conftest$ac_exeext' | ||
21214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21215 | (eval $ac_try) 2>&5 | ||
21216 | ac_status=$? | ||
21217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21218 | (exit $ac_status); }; }; then | ||
21219 | ac_cv_cc_implements___func__="yes" | ||
21220 | else | ||
21221 | echo "$as_me: failed program was:" >&5 | ||
21222 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21223 | |||
21224 | ac_cv_cc_implements___func__="no" | ||
21225 | |||
21226 | fi | ||
21227 | rm -f conftest.err conftest.$ac_objext \ | ||
21228 | conftest$ac_exeext conftest.$ac_ext | ||
21229 | |||
21230 | fi | ||
21231 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
21232 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
21233 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
21234 | cat >>confdefs.h <<\_ACEOF | ||
21235 | #define HAVE___func__ 1 | ||
21236 | _ACEOF | ||
21237 | |||
21238 | fi | ||
21239 | |||
21240 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
21241 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
21242 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
21243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21244 | else | ||
21245 | |||
21246 | cat >conftest.$ac_ext <<_ACEOF | ||
21247 | /* confdefs.h. */ | ||
21248 | _ACEOF | ||
21249 | cat confdefs.h >>conftest.$ac_ext | ||
21250 | cat >>conftest.$ac_ext <<_ACEOF | ||
21251 | /* end confdefs.h. */ | ||
21252 | |||
21253 | #include <getopt.h> | ||
21254 | |||
21255 | int | ||
21256 | main () | ||
21257 | { | ||
21258 | extern int optreset; optreset = 0; | ||
21259 | ; | ||
21260 | return 0; | ||
21261 | } | ||
21262 | _ACEOF | ||
21263 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21265 | (eval $ac_link) 2>conftest.er1 | ||
21266 | ac_status=$? | ||
21267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21268 | rm -f conftest.er1 | ||
21269 | cat conftest.err >&5 | ||
21270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21271 | (exit $ac_status); } && | ||
21272 | { ac_try='test -z "$ac_c_werror_flag" | ||
21273 | || test ! -s conftest.err' | ||
21274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21275 | (eval $ac_try) 2>&5 | ||
21276 | ac_status=$? | ||
21277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21278 | (exit $ac_status); }; } && | ||
21279 | { ac_try='test -s conftest$ac_exeext' | ||
21280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21281 | (eval $ac_try) 2>&5 | ||
21282 | ac_status=$? | ||
21283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21284 | (exit $ac_status); }; }; then | ||
21285 | ac_cv_have_getopt_optreset="yes" | ||
21286 | else | ||
21287 | echo "$as_me: failed program was:" >&5 | ||
21288 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21289 | |||
21290 | ac_cv_have_getopt_optreset="no" | ||
21291 | |||
21292 | fi | ||
21293 | rm -f conftest.err conftest.$ac_objext \ | ||
21294 | conftest$ac_exeext conftest.$ac_ext | ||
21295 | |||
21296 | fi | ||
21297 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
21298 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
21299 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
21300 | cat >>confdefs.h <<\_ACEOF | ||
21301 | #define HAVE_GETOPT_OPTRESET 1 | ||
21302 | _ACEOF | ||
21303 | |||
21304 | fi | ||
21305 | |||
21306 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
21307 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
21308 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
21309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21310 | else | ||
21311 | |||
21312 | cat >conftest.$ac_ext <<_ACEOF | ||
21313 | /* confdefs.h. */ | ||
21314 | _ACEOF | ||
21315 | cat confdefs.h >>conftest.$ac_ext | ||
21316 | cat >>conftest.$ac_ext <<_ACEOF | ||
21317 | /* end confdefs.h. */ | ||
21318 | |||
21319 | int | ||
21320 | main () | ||
21321 | { | ||
21322 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
21323 | ; | ||
21324 | return 0; | ||
21325 | } | ||
21326 | _ACEOF | ||
21327 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21329 | (eval $ac_link) 2>conftest.er1 | ||
21330 | ac_status=$? | ||
21331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21332 | rm -f conftest.er1 | ||
21333 | cat conftest.err >&5 | ||
21334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21335 | (exit $ac_status); } && | ||
21336 | { ac_try='test -z "$ac_c_werror_flag" | ||
21337 | || test ! -s conftest.err' | ||
21338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21339 | (eval $ac_try) 2>&5 | ||
21340 | ac_status=$? | ||
21341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21342 | (exit $ac_status); }; } && | ||
21343 | { ac_try='test -s conftest$ac_exeext' | ||
21344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21345 | (eval $ac_try) 2>&5 | ||
21346 | ac_status=$? | ||
21347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21348 | (exit $ac_status); }; }; then | ||
21349 | ac_cv_libc_defines_sys_errlist="yes" | ||
21350 | else | ||
21351 | echo "$as_me: failed program was:" >&5 | ||
21352 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21353 | |||
21354 | ac_cv_libc_defines_sys_errlist="no" | ||
21355 | |||
21356 | fi | ||
21357 | rm -f conftest.err conftest.$ac_objext \ | ||
21358 | conftest$ac_exeext conftest.$ac_ext | ||
21359 | |||
21360 | fi | ||
21361 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
21362 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
21363 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
21364 | cat >>confdefs.h <<\_ACEOF | ||
21365 | #define HAVE_SYS_ERRLIST 1 | ||
21366 | _ACEOF | ||
21367 | |||
21368 | fi | ||
21369 | |||
21370 | |||
21371 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
21372 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
21373 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
21374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21375 | else | ||
21376 | |||
21377 | cat >conftest.$ac_ext <<_ACEOF | ||
21378 | /* confdefs.h. */ | ||
21379 | _ACEOF | ||
21380 | cat confdefs.h >>conftest.$ac_ext | ||
21381 | cat >>conftest.$ac_ext <<_ACEOF | ||
21382 | /* end confdefs.h. */ | ||
21383 | |||
21384 | int | ||
21385 | main () | ||
21386 | { | ||
21387 | extern int sys_nerr; printf("%i", sys_nerr); | ||
21388 | ; | ||
21389 | return 0; | ||
21390 | } | ||
21391 | _ACEOF | ||
21392 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21394 | (eval $ac_link) 2>conftest.er1 | ||
21395 | ac_status=$? | ||
21396 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21397 | rm -f conftest.er1 | ||
21398 | cat conftest.err >&5 | ||
21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21400 | (exit $ac_status); } && | ||
21401 | { ac_try='test -z "$ac_c_werror_flag" | ||
21402 | || test ! -s conftest.err' | ||
21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21404 | (eval $ac_try) 2>&5 | ||
21405 | ac_status=$? | ||
21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21407 | (exit $ac_status); }; } && | ||
21408 | { ac_try='test -s conftest$ac_exeext' | ||
21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21410 | (eval $ac_try) 2>&5 | ||
21411 | ac_status=$? | ||
21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21413 | (exit $ac_status); }; }; then | ||
21414 | ac_cv_libc_defines_sys_nerr="yes" | ||
21415 | else | ||
21416 | echo "$as_me: failed program was:" >&5 | ||
21417 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21418 | |||
21419 | ac_cv_libc_defines_sys_nerr="no" | ||
21420 | |||
21421 | fi | ||
21422 | rm -f conftest.err conftest.$ac_objext \ | ||
21423 | conftest$ac_exeext conftest.$ac_ext | ||
21424 | |||
21425 | fi | ||
21426 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
21427 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
21428 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
21429 | cat >>confdefs.h <<\_ACEOF | ||
21430 | #define HAVE_SYS_NERR 1 | ||
21431 | _ACEOF | ||
21432 | |||
21433 | fi | ||
21434 | |||
21435 | SCARD_MSG="no" | ||
21436 | # Check whether user wants sectok support | ||
21437 | |||
21438 | # Check whether --with-sectok or --without-sectok was given. | ||
21439 | if test "${with_sectok+set}" = set; then | ||
21440 | withval="$with_sectok" | ||
21441 | |||
21442 | if test "x$withval" != "xno" ; then | ||
21443 | if test "x$withval" != "xyes" ; then | ||
21444 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
21445 | LDFLAGS="$LDFLAGS -L${withval}" | ||
21446 | if test ! -z "$need_dash_r" ; then | ||
21447 | LDFLAGS="$LDFLAGS -R${withval}" | ||
21448 | fi | ||
21449 | if test ! -z "$blibpath" ; then | ||
21450 | blibpath="$blibpath:${withval}" | ||
21451 | fi | ||
21452 | fi | ||
21453 | |||
21454 | for ac_header in sectok.h | ||
21455 | do | ||
21456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21462 | fi | ||
21463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21465 | else | ||
21466 | # Is the header compilable? | ||
21467 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21468 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21469 | cat >conftest.$ac_ext <<_ACEOF | ||
21470 | /* confdefs.h. */ | ||
21471 | _ACEOF | ||
21472 | cat confdefs.h >>conftest.$ac_ext | ||
21473 | cat >>conftest.$ac_ext <<_ACEOF | ||
21474 | /* end confdefs.h. */ | ||
21475 | $ac_includes_default | ||
21476 | #include <$ac_header> | ||
21477 | _ACEOF | ||
21478 | rm -f conftest.$ac_objext | ||
21479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21480 | (eval $ac_compile) 2>conftest.er1 | ||
21481 | ac_status=$? | ||
21482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21483 | rm -f conftest.er1 | ||
21484 | cat conftest.err >&5 | ||
21485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21486 | (exit $ac_status); } && | ||
21487 | { ac_try='test -z "$ac_c_werror_flag" | ||
21488 | || test ! -s conftest.err' | ||
21489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21490 | (eval $ac_try) 2>&5 | ||
21491 | ac_status=$? | ||
21492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21493 | (exit $ac_status); }; } && | ||
21494 | { ac_try='test -s conftest.$ac_objext' | ||
21495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21496 | (eval $ac_try) 2>&5 | ||
21497 | ac_status=$? | ||
21498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21499 | (exit $ac_status); }; }; then | ||
21500 | ac_header_compiler=yes | ||
21501 | else | ||
21502 | echo "$as_me: failed program was:" >&5 | ||
21503 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21504 | |||
21505 | ac_header_compiler=no | ||
21506 | fi | ||
21507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21509 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21510 | |||
21511 | # Is the header present? | ||
21512 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21513 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21514 | cat >conftest.$ac_ext <<_ACEOF | ||
21515 | /* confdefs.h. */ | ||
21516 | _ACEOF | ||
21517 | cat confdefs.h >>conftest.$ac_ext | ||
21518 | cat >>conftest.$ac_ext <<_ACEOF | ||
21519 | /* end confdefs.h. */ | ||
21520 | #include <$ac_header> | ||
21521 | _ACEOF | ||
21522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21524 | ac_status=$? | ||
21525 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21526 | rm -f conftest.er1 | ||
21527 | cat conftest.err >&5 | ||
21528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21529 | (exit $ac_status); } >/dev/null; then | ||
21530 | if test -s conftest.err; then | ||
21531 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21532 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21533 | else | ||
21534 | ac_cpp_err= | ||
21535 | fi | ||
21536 | else | ||
21537 | ac_cpp_err=yes | ||
21538 | fi | ||
21539 | if test -z "$ac_cpp_err"; then | ||
21540 | ac_header_preproc=yes | ||
21541 | else | ||
21542 | echo "$as_me: failed program was:" >&5 | ||
21543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21544 | |||
21545 | ac_header_preproc=no | ||
21546 | fi | ||
21547 | rm -f conftest.err conftest.$ac_ext | ||
21548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21549 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21550 | |||
21551 | # So? What about this header? | ||
21552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21553 | yes:no: ) | ||
21554 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21555 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21558 | ac_header_preproc=yes | ||
21559 | ;; | ||
21560 | no:yes:* ) | ||
21561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21565 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21567 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21568 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21571 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21572 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21573 | ( | ||
21574 | cat <<\_ASBOX | ||
21575 | ## ------------------------------------------- ## | ||
21576 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
21577 | ## ------------------------------------------- ## | ||
21578 | _ASBOX | ||
21579 | ) | | ||
21580 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21581 | ;; | ||
21582 | esac | ||
21583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21587 | else | ||
21588 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21589 | fi | ||
21590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21592 | |||
21593 | fi | ||
21594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21595 | cat >>confdefs.h <<_ACEOF | ||
21596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21597 | _ACEOF | ||
21598 | |||
21599 | fi | ||
21600 | |||
21601 | done | ||
21602 | |||
21603 | if test "$ac_cv_header_sectok_h" != yes; then | ||
21604 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
21605 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
21606 | { (exit 1); exit 1; }; } | ||
21607 | fi | ||
21608 | |||
21609 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
21610 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
21611 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
21612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21613 | else | ||
21614 | ac_check_lib_save_LIBS=$LIBS | ||
21615 | LIBS="-lsectok $LIBS" | ||
21616 | cat >conftest.$ac_ext <<_ACEOF | ||
21617 | /* confdefs.h. */ | ||
21618 | _ACEOF | ||
21619 | cat confdefs.h >>conftest.$ac_ext | ||
21620 | cat >>conftest.$ac_ext <<_ACEOF | ||
21621 | /* end confdefs.h. */ | ||
21622 | |||
21623 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21624 | #ifdef __cplusplus | ||
21625 | extern "C" | ||
21626 | #endif | ||
21627 | /* We use char because int might match the return type of a gcc2 | ||
21628 | builtin and then its argument prototype would still apply. */ | ||
21629 | char sectok_open (); | ||
21630 | int | ||
21631 | main () | ||
21632 | { | ||
21633 | sectok_open (); | ||
21634 | ; | ||
21635 | return 0; | ||
21636 | } | ||
21637 | _ACEOF | ||
21638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21640 | (eval $ac_link) 2>conftest.er1 | ||
21641 | ac_status=$? | ||
21642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21643 | rm -f conftest.er1 | ||
21644 | cat conftest.err >&5 | ||
21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21646 | (exit $ac_status); } && | ||
21647 | { ac_try='test -z "$ac_c_werror_flag" | ||
21648 | || test ! -s conftest.err' | ||
21649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21650 | (eval $ac_try) 2>&5 | ||
21651 | ac_status=$? | ||
21652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21653 | (exit $ac_status); }; } && | ||
21654 | { ac_try='test -s conftest$ac_exeext' | ||
21655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21656 | (eval $ac_try) 2>&5 | ||
21657 | ac_status=$? | ||
21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21659 | (exit $ac_status); }; }; then | ||
21660 | ac_cv_lib_sectok_sectok_open=yes | ||
21661 | else | ||
21662 | echo "$as_me: failed program was:" >&5 | ||
21663 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21664 | |||
21665 | ac_cv_lib_sectok_sectok_open=no | ||
21666 | fi | ||
21667 | rm -f conftest.err conftest.$ac_objext \ | ||
21668 | conftest$ac_exeext conftest.$ac_ext | ||
21669 | LIBS=$ac_check_lib_save_LIBS | ||
21670 | fi | ||
21671 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
21672 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
21673 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
21674 | cat >>confdefs.h <<_ACEOF | ||
21675 | #define HAVE_LIBSECTOK 1 | ||
21676 | _ACEOF | ||
21677 | |||
21678 | LIBS="-lsectok $LIBS" | ||
21679 | |||
21680 | fi | ||
21681 | |||
21682 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
21683 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
21684 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
21685 | { (exit 1); exit 1; }; } | ||
21686 | fi | ||
21687 | cat >>confdefs.h <<\_ACEOF | ||
21688 | #define SMARTCARD 1 | ||
21689 | _ACEOF | ||
21690 | |||
21691 | cat >>confdefs.h <<\_ACEOF | ||
21692 | #define USE_SECTOK 1 | ||
21693 | _ACEOF | ||
21694 | |||
21695 | SCARD_MSG="yes, using sectok" | ||
21696 | fi | ||
21697 | |||
21698 | |||
21699 | fi; | ||
21700 | |||
21701 | # Check whether user wants OpenSC support | ||
21702 | OPENSC_CONFIG="no" | ||
21703 | |||
21704 | # Check whether --with-opensc or --without-opensc was given. | ||
21705 | if test "${with_opensc+set}" = set; then | ||
21706 | withval="$with_opensc" | ||
21707 | |||
21708 | if test "x$withval" != "xno" ; then | ||
21709 | if test "x$withval" != "xyes" ; then | ||
21710 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
21711 | else | ||
21712 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
21713 | set dummy opensc-config; ac_word=$2 | ||
21714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
21715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
21716 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
21717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21718 | else | ||
21719 | case $OPENSC_CONFIG in | ||
21720 | [\\/]* | ?:[\\/]*) | ||
21721 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
21722 | ;; | ||
21723 | *) | ||
21724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21725 | for as_dir in $PATH | ||
21726 | do | ||
21727 | IFS=$as_save_IFS | ||
21728 | test -z "$as_dir" && as_dir=. | ||
21729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
21731 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
21732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21733 | break 2 | ||
21734 | fi | ||
21735 | done | ||
21736 | done | ||
21737 | |||
21738 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
21739 | ;; | ||
21740 | esac | ||
21741 | fi | ||
21742 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
21743 | |||
21744 | if test -n "$OPENSC_CONFIG"; then | ||
21745 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
21746 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
21747 | else | ||
21748 | echo "$as_me:$LINENO: result: no" >&5 | ||
21749 | echo "${ECHO_T}no" >&6 | ||
21750 | fi | ||
21751 | |||
21752 | fi | ||
21753 | if test "$OPENSC_CONFIG" != "no"; then | ||
21754 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
21755 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
21756 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
21757 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
21758 | cat >>confdefs.h <<\_ACEOF | ||
21759 | #define SMARTCARD 1 | ||
21760 | _ACEOF | ||
21761 | |||
21762 | cat >>confdefs.h <<\_ACEOF | ||
21763 | #define USE_OPENSC 1 | ||
21764 | _ACEOF | ||
21765 | |||
21766 | SCARD_MSG="yes, using OpenSC" | ||
21767 | fi | ||
21768 | fi | ||
21769 | |||
21770 | |||
21771 | fi; | ||
21772 | |||
21773 | # Check libraries needed by DNS fingerprint support | ||
21774 | echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
21775 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
21776 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
21777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21778 | else | ||
21779 | ac_func_search_save_LIBS=$LIBS | ||
21780 | ac_cv_search_getrrsetbyname=no | ||
21781 | cat >conftest.$ac_ext <<_ACEOF | ||
21782 | /* confdefs.h. */ | ||
21783 | _ACEOF | ||
21784 | cat confdefs.h >>conftest.$ac_ext | ||
21785 | cat >>conftest.$ac_ext <<_ACEOF | ||
21786 | /* end confdefs.h. */ | ||
21787 | |||
21788 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21789 | #ifdef __cplusplus | ||
21790 | extern "C" | ||
21791 | #endif | ||
21792 | /* We use char because int might match the return type of a gcc2 | ||
21793 | builtin and then its argument prototype would still apply. */ | ||
21794 | char getrrsetbyname (); | ||
21795 | int | ||
21796 | main () | ||
21797 | { | ||
21798 | getrrsetbyname (); | ||
21799 | ; | ||
21800 | return 0; | ||
21801 | } | ||
21802 | _ACEOF | ||
21803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21805 | (eval $ac_link) 2>conftest.er1 | ||
21806 | ac_status=$? | ||
21807 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21808 | rm -f conftest.er1 | ||
21809 | cat conftest.err >&5 | ||
21810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21811 | (exit $ac_status); } && | ||
21812 | { ac_try='test -z "$ac_c_werror_flag" | ||
21813 | || test ! -s conftest.err' | ||
21814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21815 | (eval $ac_try) 2>&5 | ||
21816 | ac_status=$? | ||
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21818 | (exit $ac_status); }; } && | ||
21819 | { ac_try='test -s conftest$ac_exeext' | ||
21820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21821 | (eval $ac_try) 2>&5 | ||
21822 | ac_status=$? | ||
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21824 | (exit $ac_status); }; }; then | ||
21825 | ac_cv_search_getrrsetbyname="none required" | ||
21826 | else | ||
21827 | echo "$as_me: failed program was:" >&5 | ||
21828 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21829 | |||
21830 | fi | ||
21831 | rm -f conftest.err conftest.$ac_objext \ | ||
21832 | conftest$ac_exeext conftest.$ac_ext | ||
21833 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
21834 | for ac_lib in resolv; do | ||
21835 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21836 | cat >conftest.$ac_ext <<_ACEOF | ||
21837 | /* confdefs.h. */ | ||
21838 | _ACEOF | ||
21839 | cat confdefs.h >>conftest.$ac_ext | ||
21840 | cat >>conftest.$ac_ext <<_ACEOF | ||
21841 | /* end confdefs.h. */ | ||
21842 | |||
21843 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21844 | #ifdef __cplusplus | ||
21845 | extern "C" | ||
21846 | #endif | ||
21847 | /* We use char because int might match the return type of a gcc2 | ||
21848 | builtin and then its argument prototype would still apply. */ | ||
21849 | char getrrsetbyname (); | ||
21850 | int | ||
21851 | main () | ||
21852 | { | ||
21853 | getrrsetbyname (); | ||
21854 | ; | ||
21855 | return 0; | ||
21856 | } | ||
21857 | _ACEOF | ||
21858 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21860 | (eval $ac_link) 2>conftest.er1 | ||
21861 | ac_status=$? | ||
21862 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21863 | rm -f conftest.er1 | ||
21864 | cat conftest.err >&5 | ||
21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21866 | (exit $ac_status); } && | ||
21867 | { ac_try='test -z "$ac_c_werror_flag" | ||
21868 | || test ! -s conftest.err' | ||
21869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21870 | (eval $ac_try) 2>&5 | ||
21871 | ac_status=$? | ||
21872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21873 | (exit $ac_status); }; } && | ||
21874 | { ac_try='test -s conftest$ac_exeext' | ||
21875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21876 | (eval $ac_try) 2>&5 | ||
21877 | ac_status=$? | ||
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21879 | (exit $ac_status); }; }; then | ||
21880 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
21881 | break | ||
21882 | else | ||
21883 | echo "$as_me: failed program was:" >&5 | ||
21884 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21885 | |||
21886 | fi | ||
21887 | rm -f conftest.err conftest.$ac_objext \ | ||
21888 | conftest$ac_exeext conftest.$ac_ext | ||
21889 | done | ||
21890 | fi | ||
21891 | LIBS=$ac_func_search_save_LIBS | ||
21892 | fi | ||
21893 | echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
21894 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
21895 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
21896 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
21897 | cat >>confdefs.h <<\_ACEOF | ||
21898 | #define HAVE_GETRRSETBYNAME 1 | ||
21899 | _ACEOF | ||
21900 | |||
21901 | else | ||
21902 | |||
21903 | # Needed by our getrrsetbyname() | ||
21904 | echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
21905 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
21906 | if test "${ac_cv_search_res_query+set}" = set; then | ||
21907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21908 | else | ||
21909 | ac_func_search_save_LIBS=$LIBS | ||
21910 | ac_cv_search_res_query=no | ||
21911 | cat >conftest.$ac_ext <<_ACEOF | ||
21912 | /* confdefs.h. */ | ||
21913 | _ACEOF | ||
21914 | cat confdefs.h >>conftest.$ac_ext | ||
21915 | cat >>conftest.$ac_ext <<_ACEOF | ||
21916 | /* end confdefs.h. */ | ||
21917 | |||
21918 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21919 | #ifdef __cplusplus | ||
21920 | extern "C" | ||
21921 | #endif | ||
21922 | /* We use char because int might match the return type of a gcc2 | ||
21923 | builtin and then its argument prototype would still apply. */ | ||
21924 | char res_query (); | ||
21925 | int | ||
21926 | main () | ||
21927 | { | ||
21928 | res_query (); | ||
21929 | ; | ||
21930 | return 0; | ||
21931 | } | ||
21932 | _ACEOF | ||
21933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21935 | (eval $ac_link) 2>conftest.er1 | ||
21936 | ac_status=$? | ||
21937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21938 | rm -f conftest.er1 | ||
21939 | cat conftest.err >&5 | ||
21940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21941 | (exit $ac_status); } && | ||
21942 | { ac_try='test -z "$ac_c_werror_flag" | ||
21943 | || test ! -s conftest.err' | ||
21944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21945 | (eval $ac_try) 2>&5 | ||
21946 | ac_status=$? | ||
21947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21948 | (exit $ac_status); }; } && | ||
21949 | { ac_try='test -s conftest$ac_exeext' | ||
21950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21951 | (eval $ac_try) 2>&5 | ||
21952 | ac_status=$? | ||
21953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21954 | (exit $ac_status); }; }; then | ||
21955 | ac_cv_search_res_query="none required" | ||
21956 | else | ||
21957 | echo "$as_me: failed program was:" >&5 | ||
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21959 | |||
21960 | fi | ||
21961 | rm -f conftest.err conftest.$ac_objext \ | ||
21962 | conftest$ac_exeext conftest.$ac_ext | ||
21963 | if test "$ac_cv_search_res_query" = no; then | ||
21964 | for ac_lib in resolv; do | ||
21965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
21966 | cat >conftest.$ac_ext <<_ACEOF | ||
21967 | /* confdefs.h. */ | ||
21968 | _ACEOF | ||
21969 | cat confdefs.h >>conftest.$ac_ext | ||
21970 | cat >>conftest.$ac_ext <<_ACEOF | ||
21971 | /* end confdefs.h. */ | ||
21972 | |||
21973 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21974 | #ifdef __cplusplus | ||
21975 | extern "C" | ||
21976 | #endif | ||
21977 | /* We use char because int might match the return type of a gcc2 | ||
21978 | builtin and then its argument prototype would still apply. */ | ||
21979 | char res_query (); | ||
21980 | int | ||
21981 | main () | ||
21982 | { | ||
21983 | res_query (); | ||
21984 | ; | ||
21985 | return 0; | ||
21986 | } | ||
21987 | _ACEOF | ||
21988 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21990 | (eval $ac_link) 2>conftest.er1 | ||
21991 | ac_status=$? | ||
21992 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21993 | rm -f conftest.er1 | ||
21994 | cat conftest.err >&5 | ||
21995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21996 | (exit $ac_status); } && | ||
21997 | { ac_try='test -z "$ac_c_werror_flag" | ||
21998 | || test ! -s conftest.err' | ||
21999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22000 | (eval $ac_try) 2>&5 | ||
22001 | ac_status=$? | ||
22002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22003 | (exit $ac_status); }; } && | ||
22004 | { ac_try='test -s conftest$ac_exeext' | ||
22005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22006 | (eval $ac_try) 2>&5 | ||
22007 | ac_status=$? | ||
22008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22009 | (exit $ac_status); }; }; then | ||
22010 | ac_cv_search_res_query="-l$ac_lib" | ||
22011 | break | ||
22012 | else | ||
22013 | echo "$as_me: failed program was:" >&5 | ||
22014 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22015 | |||
22016 | fi | ||
22017 | rm -f conftest.err conftest.$ac_objext \ | ||
22018 | conftest$ac_exeext conftest.$ac_ext | ||
22019 | done | ||
22020 | fi | ||
22021 | LIBS=$ac_func_search_save_LIBS | ||
22022 | fi | ||
22023 | echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
22024 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
22025 | if test "$ac_cv_search_res_query" != no; then | ||
22026 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
22027 | |||
22028 | fi | ||
22029 | |||
22030 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
22031 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
22032 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
22033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22034 | else | ||
22035 | ac_func_search_save_LIBS=$LIBS | ||
22036 | ac_cv_search_dn_expand=no | ||
22037 | cat >conftest.$ac_ext <<_ACEOF | ||
22038 | /* confdefs.h. */ | ||
22039 | _ACEOF | ||
22040 | cat confdefs.h >>conftest.$ac_ext | ||
22041 | cat >>conftest.$ac_ext <<_ACEOF | ||
22042 | /* end confdefs.h. */ | ||
22043 | |||
22044 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22045 | #ifdef __cplusplus | ||
22046 | extern "C" | ||
22047 | #endif | ||
22048 | /* We use char because int might match the return type of a gcc2 | ||
22049 | builtin and then its argument prototype would still apply. */ | ||
22050 | char dn_expand (); | ||
22051 | int | ||
22052 | main () | ||
22053 | { | ||
22054 | dn_expand (); | ||
22055 | ; | ||
22056 | return 0; | ||
22057 | } | ||
22058 | _ACEOF | ||
22059 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22061 | (eval $ac_link) 2>conftest.er1 | ||
22062 | ac_status=$? | ||
22063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22064 | rm -f conftest.er1 | ||
22065 | cat conftest.err >&5 | ||
22066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22067 | (exit $ac_status); } && | ||
22068 | { ac_try='test -z "$ac_c_werror_flag" | ||
22069 | || test ! -s conftest.err' | ||
22070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22071 | (eval $ac_try) 2>&5 | ||
22072 | ac_status=$? | ||
22073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22074 | (exit $ac_status); }; } && | ||
22075 | { ac_try='test -s conftest$ac_exeext' | ||
22076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22077 | (eval $ac_try) 2>&5 | ||
22078 | ac_status=$? | ||
22079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22080 | (exit $ac_status); }; }; then | ||
22081 | ac_cv_search_dn_expand="none required" | ||
22082 | else | ||
22083 | echo "$as_me: failed program was:" >&5 | ||
22084 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22085 | |||
22086 | fi | ||
22087 | rm -f conftest.err conftest.$ac_objext \ | ||
22088 | conftest$ac_exeext conftest.$ac_ext | ||
22089 | if test "$ac_cv_search_dn_expand" = no; then | ||
22090 | for ac_lib in resolv; do | ||
22091 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22092 | cat >conftest.$ac_ext <<_ACEOF | ||
22093 | /* confdefs.h. */ | ||
22094 | _ACEOF | ||
22095 | cat confdefs.h >>conftest.$ac_ext | ||
22096 | cat >>conftest.$ac_ext <<_ACEOF | ||
22097 | /* end confdefs.h. */ | ||
22098 | |||
22099 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22100 | #ifdef __cplusplus | ||
22101 | extern "C" | ||
22102 | #endif | ||
22103 | /* We use char because int might match the return type of a gcc2 | ||
22104 | builtin and then its argument prototype would still apply. */ | ||
22105 | char dn_expand (); | ||
22106 | int | ||
22107 | main () | ||
22108 | { | ||
22109 | dn_expand (); | ||
22110 | ; | ||
22111 | return 0; | ||
22112 | } | ||
22113 | _ACEOF | ||
22114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22116 | (eval $ac_link) 2>conftest.er1 | ||
22117 | ac_status=$? | ||
22118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22119 | rm -f conftest.er1 | ||
22120 | cat conftest.err >&5 | ||
22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22122 | (exit $ac_status); } && | ||
22123 | { ac_try='test -z "$ac_c_werror_flag" | ||
22124 | || test ! -s conftest.err' | ||
22125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22126 | (eval $ac_try) 2>&5 | ||
22127 | ac_status=$? | ||
22128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22129 | (exit $ac_status); }; } && | ||
22130 | { ac_try='test -s conftest$ac_exeext' | ||
22131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22132 | (eval $ac_try) 2>&5 | ||
22133 | ac_status=$? | ||
22134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22135 | (exit $ac_status); }; }; then | ||
22136 | ac_cv_search_dn_expand="-l$ac_lib" | ||
22137 | break | ||
22138 | else | ||
22139 | echo "$as_me: failed program was:" >&5 | ||
22140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22141 | |||
22142 | fi | ||
22143 | rm -f conftest.err conftest.$ac_objext \ | ||
22144 | conftest$ac_exeext conftest.$ac_ext | ||
22145 | done | ||
22146 | fi | ||
22147 | LIBS=$ac_func_search_save_LIBS | ||
22148 | fi | ||
22149 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
22150 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
22151 | if test "$ac_cv_search_dn_expand" != no; then | ||
22152 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
22153 | |||
22154 | fi | ||
22155 | |||
22156 | echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
22157 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6 | ||
22158 | cat >conftest.$ac_ext <<_ACEOF | ||
22159 | /* confdefs.h. */ | ||
22160 | _ACEOF | ||
22161 | cat confdefs.h >>conftest.$ac_ext | ||
22162 | cat >>conftest.$ac_ext <<_ACEOF | ||
22163 | /* end confdefs.h. */ | ||
22164 | |||
22165 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22166 | #ifdef __cplusplus | ||
22167 | extern "C" | ||
22168 | #endif | ||
22169 | /* We use char because int might match the return type of a gcc2 | ||
22170 | builtin and then its argument prototype would still apply. */ | ||
22171 | char res_query (); | ||
22172 | int | ||
22173 | main () | ||
22174 | { | ||
22175 | res_query (); | ||
22176 | ; | ||
22177 | return 0; | ||
22178 | } | ||
22179 | _ACEOF | ||
22180 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22182 | (eval $ac_link) 2>conftest.er1 | ||
22183 | ac_status=$? | ||
22184 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22185 | rm -f conftest.er1 | ||
22186 | cat conftest.err >&5 | ||
22187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22188 | (exit $ac_status); } && | ||
22189 | { ac_try='test -z "$ac_c_werror_flag" | ||
22190 | || test ! -s conftest.err' | ||
22191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22192 | (eval $ac_try) 2>&5 | ||
22193 | ac_status=$? | ||
22194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22195 | (exit $ac_status); }; } && | ||
22196 | { ac_try='test -s conftest$ac_exeext' | ||
22197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22198 | (eval $ac_try) 2>&5 | ||
22199 | ac_status=$? | ||
22200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22201 | (exit $ac_status); }; }; then | ||
22202 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22203 | echo "${ECHO_T}yes" >&6 | ||
22204 | else | ||
22205 | echo "$as_me: failed program was:" >&5 | ||
22206 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22207 | |||
22208 | echo "$as_me:$LINENO: result: no" >&5 | ||
22209 | echo "${ECHO_T}no" >&6 | ||
22210 | saved_LIBS="$LIBS" | ||
22211 | LIBS="$LIBS -lresolv" | ||
22212 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
22213 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
22214 | cat >conftest.$ac_ext <<_ACEOF | ||
22215 | |||
22216 | #include <resolv.h> | ||
22217 | int main() | ||
22218 | { | ||
22219 | res_query (0, 0, 0, 0, 0); | ||
22220 | return 0; | ||
22221 | } | ||
22222 | |||
22223 | _ACEOF | ||
22224 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22226 | (eval $ac_link) 2>conftest.er1 | ||
22227 | ac_status=$? | ||
22228 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22229 | rm -f conftest.er1 | ||
22230 | cat conftest.err >&5 | ||
22231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22232 | (exit $ac_status); } && | ||
22233 | { ac_try='test -z "$ac_c_werror_flag" | ||
22234 | || test ! -s conftest.err' | ||
22235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22236 | (eval $ac_try) 2>&5 | ||
22237 | ac_status=$? | ||
22238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22239 | (exit $ac_status); }; } && | ||
22240 | { ac_try='test -s conftest$ac_exeext' | ||
22241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22242 | (eval $ac_try) 2>&5 | ||
22243 | ac_status=$? | ||
22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22245 | (exit $ac_status); }; }; then | ||
22246 | LIBS="$LIBS -lresolv" | ||
22247 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22248 | echo "${ECHO_T}yes" >&6 | ||
22249 | else | ||
22250 | echo "$as_me: failed program was:" >&5 | ||
22251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22252 | |||
22253 | LIBS="$saved_LIBS" | ||
22254 | echo "$as_me:$LINENO: result: no" >&5 | ||
22255 | echo "${ECHO_T}no" >&6 | ||
22256 | fi | ||
22257 | rm -f conftest.err conftest.$ac_objext \ | ||
22258 | conftest$ac_exeext conftest.$ac_ext | ||
22259 | |||
22260 | fi | ||
22261 | rm -f conftest.err conftest.$ac_objext \ | ||
22262 | conftest$ac_exeext conftest.$ac_ext | ||
22263 | |||
22264 | |||
22265 | for ac_func in _getshort _getlong | ||
22266 | do | ||
22267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
22270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
22271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22272 | else | ||
22273 | cat >conftest.$ac_ext <<_ACEOF | ||
22274 | /* confdefs.h. */ | ||
22275 | _ACEOF | ||
22276 | cat confdefs.h >>conftest.$ac_ext | ||
22277 | cat >>conftest.$ac_ext <<_ACEOF | ||
22278 | /* end confdefs.h. */ | ||
22279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22281 | #define $ac_func innocuous_$ac_func | ||
22282 | |||
22283 | /* System header to define __stub macros and hopefully few prototypes, | ||
22284 | which can conflict with char $ac_func (); below. | ||
22285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22286 | <limits.h> exists even on freestanding compilers. */ | ||
22287 | |||
22288 | #ifdef __STDC__ | ||
22289 | # include <limits.h> | ||
22290 | #else | ||
22291 | # include <assert.h> | ||
22292 | #endif | ||
22293 | |||
22294 | #undef $ac_func | ||
22295 | |||
22296 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22297 | #ifdef __cplusplus | ||
22298 | extern "C" | ||
22299 | { | ||
22300 | #endif | ||
22301 | /* We use char because int might match the return type of a gcc2 | ||
22302 | builtin and then its argument prototype would still apply. */ | ||
22303 | char $ac_func (); | ||
22304 | /* The GNU C library defines this for functions which it implements | ||
22305 | to always fail with ENOSYS. Some functions are actually named | ||
22306 | something starting with __ and the normal name is an alias. */ | ||
22307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
22308 | choke me | ||
22309 | #else | ||
22310 | char (*f) () = $ac_func; | ||
22311 | #endif | ||
22312 | #ifdef __cplusplus | ||
22313 | } | ||
22314 | #endif | ||
22315 | |||
22316 | int | ||
22317 | main () | ||
22318 | { | ||
22319 | return f != $ac_func; | ||
22320 | ; | ||
22321 | return 0; | ||
22322 | } | ||
22323 | _ACEOF | ||
22324 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22326 | (eval $ac_link) 2>conftest.er1 | ||
22327 | ac_status=$? | ||
22328 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22329 | rm -f conftest.er1 | ||
22330 | cat conftest.err >&5 | ||
22331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22332 | (exit $ac_status); } && | ||
22333 | { ac_try='test -z "$ac_c_werror_flag" | ||
22334 | || test ! -s conftest.err' | ||
22335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22336 | (eval $ac_try) 2>&5 | ||
22337 | ac_status=$? | ||
22338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22339 | (exit $ac_status); }; } && | ||
22340 | { ac_try='test -s conftest$ac_exeext' | ||
22341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22342 | (eval $ac_try) 2>&5 | ||
22343 | ac_status=$? | ||
22344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22345 | (exit $ac_status); }; }; then | ||
22346 | eval "$as_ac_var=yes" | ||
22347 | else | ||
22348 | echo "$as_me: failed program was:" >&5 | ||
22349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22350 | |||
22351 | eval "$as_ac_var=no" | ||
22352 | fi | ||
22353 | rm -f conftest.err conftest.$ac_objext \ | ||
22354 | conftest$ac_exeext conftest.$ac_ext | ||
22355 | fi | ||
22356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
22357 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
22358 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22359 | cat >>confdefs.h <<_ACEOF | ||
22360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22361 | _ACEOF | ||
22362 | |||
22363 | fi | ||
22364 | done | ||
22365 | |||
22366 | echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
22367 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6 | ||
22368 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
22369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22370 | else | ||
22371 | cat >conftest.$ac_ext <<_ACEOF | ||
22372 | /* confdefs.h. */ | ||
22373 | _ACEOF | ||
22374 | cat confdefs.h >>conftest.$ac_ext | ||
22375 | cat >>conftest.$ac_ext <<_ACEOF | ||
22376 | /* end confdefs.h. */ | ||
22377 | #include <sys/types.h> | ||
22378 | #include <arpa/nameser.h> | ||
22379 | |||
22380 | int | ||
22381 | main () | ||
22382 | { | ||
22383 | #ifndef _getshort | ||
22384 | char *p = (char *) _getshort; | ||
22385 | #endif | ||
22386 | |||
22387 | ; | ||
22388 | return 0; | ||
22389 | } | ||
22390 | _ACEOF | ||
22391 | rm -f conftest.$ac_objext | ||
22392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22393 | (eval $ac_compile) 2>conftest.er1 | ||
22394 | ac_status=$? | ||
22395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22396 | rm -f conftest.er1 | ||
22397 | cat conftest.err >&5 | ||
22398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22399 | (exit $ac_status); } && | ||
22400 | { ac_try='test -z "$ac_c_werror_flag" | ||
22401 | || test ! -s conftest.err' | ||
22402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22403 | (eval $ac_try) 2>&5 | ||
22404 | ac_status=$? | ||
22405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22406 | (exit $ac_status); }; } && | ||
22407 | { ac_try='test -s conftest.$ac_objext' | ||
22408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22409 | (eval $ac_try) 2>&5 | ||
22410 | ac_status=$? | ||
22411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22412 | (exit $ac_status); }; }; then | ||
22413 | ac_cv_have_decl__getshort=yes | ||
22414 | else | ||
22415 | echo "$as_me: failed program was:" >&5 | ||
22416 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22417 | |||
22418 | ac_cv_have_decl__getshort=no | ||
22419 | fi | ||
22420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22421 | fi | ||
22422 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
22423 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6 | ||
22424 | if test $ac_cv_have_decl__getshort = yes; then | ||
22425 | |||
22426 | cat >>confdefs.h <<_ACEOF | ||
22427 | #define HAVE_DECL__GETSHORT 1 | ||
22428 | _ACEOF | ||
22429 | |||
22430 | |||
22431 | else | ||
22432 | cat >>confdefs.h <<_ACEOF | ||
22433 | #define HAVE_DECL__GETSHORT 0 | ||
22434 | _ACEOF | ||
22435 | |||
22436 | |||
22437 | fi | ||
22438 | echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
22439 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6 | ||
22440 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
22441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22442 | else | ||
22443 | cat >conftest.$ac_ext <<_ACEOF | ||
22444 | /* confdefs.h. */ | ||
22445 | _ACEOF | ||
22446 | cat confdefs.h >>conftest.$ac_ext | ||
22447 | cat >>conftest.$ac_ext <<_ACEOF | ||
22448 | /* end confdefs.h. */ | ||
22449 | #include <sys/types.h> | ||
22450 | #include <arpa/nameser.h> | ||
22451 | |||
22452 | int | ||
22453 | main () | ||
22454 | { | ||
22455 | #ifndef _getlong | ||
22456 | char *p = (char *) _getlong; | ||
22457 | #endif | ||
22458 | |||
22459 | ; | ||
22460 | return 0; | ||
22461 | } | ||
22462 | _ACEOF | ||
22463 | rm -f conftest.$ac_objext | ||
22464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22465 | (eval $ac_compile) 2>conftest.er1 | ||
22466 | ac_status=$? | ||
22467 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22468 | rm -f conftest.er1 | ||
22469 | cat conftest.err >&5 | ||
22470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22471 | (exit $ac_status); } && | ||
22472 | { ac_try='test -z "$ac_c_werror_flag" | ||
22473 | || test ! -s conftest.err' | ||
22474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22475 | (eval $ac_try) 2>&5 | ||
22476 | ac_status=$? | ||
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22478 | (exit $ac_status); }; } && | ||
22479 | { ac_try='test -s conftest.$ac_objext' | ||
22480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22481 | (eval $ac_try) 2>&5 | ||
22482 | ac_status=$? | ||
22483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22484 | (exit $ac_status); }; }; then | ||
22485 | ac_cv_have_decl__getlong=yes | ||
22486 | else | ||
22487 | echo "$as_me: failed program was:" >&5 | ||
22488 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22489 | |||
22490 | ac_cv_have_decl__getlong=no | ||
22491 | fi | ||
22492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22493 | fi | ||
22494 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
22495 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6 | ||
22496 | if test $ac_cv_have_decl__getlong = yes; then | ||
22497 | |||
22498 | cat >>confdefs.h <<_ACEOF | ||
22499 | #define HAVE_DECL__GETLONG 1 | ||
22500 | _ACEOF | ||
22501 | |||
22502 | |||
22503 | else | ||
22504 | cat >>confdefs.h <<_ACEOF | ||
22505 | #define HAVE_DECL__GETLONG 0 | ||
22506 | _ACEOF | ||
22507 | |||
22508 | |||
22509 | fi | ||
22510 | |||
22511 | |||
22512 | echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
22513 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
22514 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
22515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22516 | else | ||
22517 | cat >conftest.$ac_ext <<_ACEOF | ||
22518 | /* confdefs.h. */ | ||
22519 | _ACEOF | ||
22520 | cat confdefs.h >>conftest.$ac_ext | ||
22521 | cat >>conftest.$ac_ext <<_ACEOF | ||
22522 | /* end confdefs.h. */ | ||
22523 | #include <arpa/nameser.h> | ||
22524 | |||
22525 | int | ||
22526 | main () | ||
22527 | { | ||
22528 | static HEADER ac_aggr; | ||
22529 | if (ac_aggr.ad) | ||
22530 | return 0; | ||
22531 | ; | ||
22532 | return 0; | ||
22533 | } | ||
22534 | _ACEOF | ||
22535 | rm -f conftest.$ac_objext | ||
22536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22537 | (eval $ac_compile) 2>conftest.er1 | ||
22538 | ac_status=$? | ||
22539 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22540 | rm -f conftest.er1 | ||
22541 | cat conftest.err >&5 | ||
22542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22543 | (exit $ac_status); } && | ||
22544 | { ac_try='test -z "$ac_c_werror_flag" | ||
22545 | || test ! -s conftest.err' | ||
22546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22547 | (eval $ac_try) 2>&5 | ||
22548 | ac_status=$? | ||
22549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22550 | (exit $ac_status); }; } && | ||
22551 | { ac_try='test -s conftest.$ac_objext' | ||
22552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22553 | (eval $ac_try) 2>&5 | ||
22554 | ac_status=$? | ||
22555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22556 | (exit $ac_status); }; }; then | ||
22557 | ac_cv_member_HEADER_ad=yes | ||
22558 | else | ||
22559 | echo "$as_me: failed program was:" >&5 | ||
22560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22561 | |||
22562 | cat >conftest.$ac_ext <<_ACEOF | ||
22563 | /* confdefs.h. */ | ||
22564 | _ACEOF | ||
22565 | cat confdefs.h >>conftest.$ac_ext | ||
22566 | cat >>conftest.$ac_ext <<_ACEOF | ||
22567 | /* end confdefs.h. */ | ||
22568 | #include <arpa/nameser.h> | ||
22569 | |||
22570 | int | ||
22571 | main () | ||
22572 | { | ||
22573 | static HEADER ac_aggr; | ||
22574 | if (sizeof ac_aggr.ad) | ||
22575 | return 0; | ||
22576 | ; | ||
22577 | return 0; | ||
22578 | } | ||
22579 | _ACEOF | ||
22580 | rm -f conftest.$ac_objext | ||
22581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22582 | (eval $ac_compile) 2>conftest.er1 | ||
22583 | ac_status=$? | ||
22584 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22585 | rm -f conftest.er1 | ||
22586 | cat conftest.err >&5 | ||
22587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22588 | (exit $ac_status); } && | ||
22589 | { ac_try='test -z "$ac_c_werror_flag" | ||
22590 | || test ! -s conftest.err' | ||
22591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22592 | (eval $ac_try) 2>&5 | ||
22593 | ac_status=$? | ||
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22595 | (exit $ac_status); }; } && | ||
22596 | { ac_try='test -s conftest.$ac_objext' | ||
22597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22598 | (eval $ac_try) 2>&5 | ||
22599 | ac_status=$? | ||
22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22601 | (exit $ac_status); }; }; then | ||
22602 | ac_cv_member_HEADER_ad=yes | ||
22603 | else | ||
22604 | echo "$as_me: failed program was:" >&5 | ||
22605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22606 | |||
22607 | ac_cv_member_HEADER_ad=no | ||
22608 | fi | ||
22609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22610 | fi | ||
22611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22612 | fi | ||
22613 | echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
22614 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
22615 | if test $ac_cv_member_HEADER_ad = yes; then | ||
22616 | cat >>confdefs.h <<\_ACEOF | ||
22617 | #define HAVE_HEADER_AD 1 | ||
22618 | _ACEOF | ||
22619 | |||
22620 | fi | ||
22621 | |||
22622 | |||
22623 | fi | ||
22624 | |||
22625 | |||
22626 | # Check whether user wants Kerberos 5 support | ||
22627 | KRB5_MSG="no" | ||
22628 | |||
22629 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
22630 | if test "${with_kerberos5+set}" = set; then | ||
22631 | withval="$with_kerberos5" | ||
22632 | if test "x$withval" != "xno" ; then | ||
22633 | if test "x$withval" = "xyes" ; then | ||
22634 | KRB5ROOT="/usr/local" | ||
22635 | else | ||
22636 | KRB5ROOT=${withval} | ||
22637 | fi | ||
22638 | |||
22639 | cat >>confdefs.h <<\_ACEOF | ||
22640 | #define KRB5 1 | ||
22641 | _ACEOF | ||
22642 | |||
22643 | KRB5_MSG="yes" | ||
22644 | |||
22645 | echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
22646 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
22647 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
22648 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
22649 | echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
22650 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
22651 | |||
22652 | echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
22653 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
22654 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
22655 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22656 | echo "${ECHO_T}yes" >&6 | ||
22657 | cat >>confdefs.h <<\_ACEOF | ||
22658 | #define GSSAPI 1 | ||
22659 | _ACEOF | ||
22660 | |||
22661 | k5confopts=gssapi | ||
22662 | else | ||
22663 | echo "$as_me:$LINENO: result: no" >&5 | ||
22664 | echo "${ECHO_T}no" >&6 | ||
22665 | k5confopts="" | ||
22666 | fi | ||
22667 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
22668 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
22669 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
22670 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22671 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22672 | cat >conftest.$ac_ext <<_ACEOF | ||
22673 | /* confdefs.h. */ | ||
22674 | _ACEOF | ||
22675 | cat confdefs.h >>conftest.$ac_ext | ||
22676 | cat >>conftest.$ac_ext <<_ACEOF | ||
22677 | /* end confdefs.h. */ | ||
22678 | #include <krb5.h> | ||
22679 | int | ||
22680 | main () | ||
22681 | { | ||
22682 | char *tmp = heimdal_version; | ||
22683 | ; | ||
22684 | return 0; | ||
22685 | } | ||
22686 | _ACEOF | ||
22687 | rm -f conftest.$ac_objext | ||
22688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22689 | (eval $ac_compile) 2>conftest.er1 | ||
22690 | ac_status=$? | ||
22691 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22692 | rm -f conftest.er1 | ||
22693 | cat conftest.err >&5 | ||
22694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22695 | (exit $ac_status); } && | ||
22696 | { ac_try='test -z "$ac_c_werror_flag" | ||
22697 | || test ! -s conftest.err' | ||
22698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22699 | (eval $ac_try) 2>&5 | ||
22700 | ac_status=$? | ||
22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22702 | (exit $ac_status); }; } && | ||
22703 | { ac_try='test -s conftest.$ac_objext' | ||
22704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22705 | (eval $ac_try) 2>&5 | ||
22706 | ac_status=$? | ||
22707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22708 | (exit $ac_status); }; }; then | ||
22709 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22710 | echo "${ECHO_T}yes" >&6 | ||
22711 | cat >>confdefs.h <<\_ACEOF | ||
22712 | #define HEIMDAL 1 | ||
22713 | _ACEOF | ||
22714 | |||
22715 | else | ||
22716 | echo "$as_me: failed program was:" >&5 | ||
22717 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22718 | |||
22719 | echo "$as_me:$LINENO: result: no" >&5 | ||
22720 | echo "${ECHO_T}no" >&6 | ||
22721 | |||
22722 | fi | ||
22723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22724 | else | ||
22725 | echo "$as_me:$LINENO: result: no" >&5 | ||
22726 | echo "${ECHO_T}no" >&6 | ||
22727 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
22728 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
22729 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
22730 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
22731 | cat >conftest.$ac_ext <<_ACEOF | ||
22732 | /* confdefs.h. */ | ||
22733 | _ACEOF | ||
22734 | cat confdefs.h >>conftest.$ac_ext | ||
22735 | cat >>conftest.$ac_ext <<_ACEOF | ||
22736 | /* end confdefs.h. */ | ||
22737 | #include <krb5.h> | ||
22738 | int | ||
22739 | main () | ||
22740 | { | ||
22741 | char *tmp = heimdal_version; | ||
22742 | ; | ||
22743 | return 0; | ||
22744 | } | ||
22745 | _ACEOF | ||
22746 | rm -f conftest.$ac_objext | ||
22747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22748 | (eval $ac_compile) 2>conftest.er1 | ||
22749 | ac_status=$? | ||
22750 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22751 | rm -f conftest.er1 | ||
22752 | cat conftest.err >&5 | ||
22753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22754 | (exit $ac_status); } && | ||
22755 | { ac_try='test -z "$ac_c_werror_flag" | ||
22756 | || test ! -s conftest.err' | ||
22757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22758 | (eval $ac_try) 2>&5 | ||
22759 | ac_status=$? | ||
22760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22761 | (exit $ac_status); }; } && | ||
22762 | { ac_try='test -s conftest.$ac_objext' | ||
22763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22764 | (eval $ac_try) 2>&5 | ||
22765 | ac_status=$? | ||
22766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22767 | (exit $ac_status); }; }; then | ||
22768 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22769 | echo "${ECHO_T}yes" >&6 | ||
22770 | cat >>confdefs.h <<\_ACEOF | ||
22771 | #define HEIMDAL 1 | ||
22772 | _ACEOF | ||
22773 | |||
22774 | K5LIBS="-lkrb5 -ldes" | ||
22775 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
22776 | echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
22777 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6 | ||
22778 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
22779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22780 | else | ||
22781 | ac_check_lib_save_LIBS=$LIBS | ||
22782 | LIBS="-lroken $LIBS" | ||
22783 | cat >conftest.$ac_ext <<_ACEOF | ||
22784 | /* confdefs.h. */ | ||
22785 | _ACEOF | ||
22786 | cat confdefs.h >>conftest.$ac_ext | ||
22787 | cat >>conftest.$ac_ext <<_ACEOF | ||
22788 | /* end confdefs.h. */ | ||
22789 | |||
22790 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22791 | #ifdef __cplusplus | ||
22792 | extern "C" | ||
22793 | #endif | ||
22794 | /* We use char because int might match the return type of a gcc2 | ||
22795 | builtin and then its argument prototype would still apply. */ | ||
22796 | char net_write (); | ||
22797 | int | ||
22798 | main () | ||
22799 | { | ||
22800 | net_write (); | ||
22801 | ; | ||
22802 | return 0; | ||
22803 | } | ||
22804 | _ACEOF | ||
22805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22807 | (eval $ac_link) 2>conftest.er1 | ||
22808 | ac_status=$? | ||
22809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22810 | rm -f conftest.er1 | ||
22811 | cat conftest.err >&5 | ||
22812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22813 | (exit $ac_status); } && | ||
22814 | { ac_try='test -z "$ac_c_werror_flag" | ||
22815 | || test ! -s conftest.err' | ||
22816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22817 | (eval $ac_try) 2>&5 | ||
22818 | ac_status=$? | ||
22819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22820 | (exit $ac_status); }; } && | ||
22821 | { ac_try='test -s conftest$ac_exeext' | ||
22822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22823 | (eval $ac_try) 2>&5 | ||
22824 | ac_status=$? | ||
22825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22826 | (exit $ac_status); }; }; then | ||
22827 | ac_cv_lib_roken_net_write=yes | ||
22828 | else | ||
22829 | echo "$as_me: failed program was:" >&5 | ||
22830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22831 | |||
22832 | ac_cv_lib_roken_net_write=no | ||
22833 | fi | ||
22834 | rm -f conftest.err conftest.$ac_objext \ | ||
22835 | conftest$ac_exeext conftest.$ac_ext | ||
22836 | LIBS=$ac_check_lib_save_LIBS | ||
22837 | fi | ||
22838 | echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
22839 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6 | ||
22840 | if test $ac_cv_lib_roken_net_write = yes; then | ||
22841 | K5LIBS="$K5LIBS -lroken" | ||
22842 | fi | ||
22843 | |||
22844 | |||
22845 | else | ||
22846 | echo "$as_me: failed program was:" >&5 | ||
22847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22848 | |||
22849 | echo "$as_me:$LINENO: result: no" >&5 | ||
22850 | echo "${ECHO_T}no" >&6 | ||
22851 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
22852 | |||
22853 | |||
22854 | fi | ||
22855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22856 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
22857 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
22858 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
22859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22860 | else | ||
22861 | ac_func_search_save_LIBS=$LIBS | ||
22862 | ac_cv_search_dn_expand=no | ||
22863 | cat >conftest.$ac_ext <<_ACEOF | ||
22864 | /* confdefs.h. */ | ||
22865 | _ACEOF | ||
22866 | cat confdefs.h >>conftest.$ac_ext | ||
22867 | cat >>conftest.$ac_ext <<_ACEOF | ||
22868 | /* end confdefs.h. */ | ||
22869 | |||
22870 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22871 | #ifdef __cplusplus | ||
22872 | extern "C" | ||
22873 | #endif | ||
22874 | /* We use char because int might match the return type of a gcc2 | ||
22875 | builtin and then its argument prototype would still apply. */ | ||
22876 | char dn_expand (); | ||
22877 | int | ||
22878 | main () | ||
22879 | { | ||
22880 | dn_expand (); | ||
22881 | ; | ||
22882 | return 0; | ||
22883 | } | ||
22884 | _ACEOF | ||
22885 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22887 | (eval $ac_link) 2>conftest.er1 | ||
22888 | ac_status=$? | ||
22889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22890 | rm -f conftest.er1 | ||
22891 | cat conftest.err >&5 | ||
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22893 | (exit $ac_status); } && | ||
22894 | { ac_try='test -z "$ac_c_werror_flag" | ||
22895 | || test ! -s conftest.err' | ||
22896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22897 | (eval $ac_try) 2>&5 | ||
22898 | ac_status=$? | ||
22899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22900 | (exit $ac_status); }; } && | ||
22901 | { ac_try='test -s conftest$ac_exeext' | ||
22902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22903 | (eval $ac_try) 2>&5 | ||
22904 | ac_status=$? | ||
22905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22906 | (exit $ac_status); }; }; then | ||
22907 | ac_cv_search_dn_expand="none required" | ||
22908 | else | ||
22909 | echo "$as_me: failed program was:" >&5 | ||
22910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22911 | |||
22912 | fi | ||
22913 | rm -f conftest.err conftest.$ac_objext \ | ||
22914 | conftest$ac_exeext conftest.$ac_ext | ||
22915 | if test "$ac_cv_search_dn_expand" = no; then | ||
22916 | for ac_lib in resolv; do | ||
22917 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22918 | cat >conftest.$ac_ext <<_ACEOF | ||
22919 | /* confdefs.h. */ | ||
22920 | _ACEOF | ||
22921 | cat confdefs.h >>conftest.$ac_ext | ||
22922 | cat >>conftest.$ac_ext <<_ACEOF | ||
22923 | /* end confdefs.h. */ | ||
22924 | |||
22925 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22926 | #ifdef __cplusplus | ||
22927 | extern "C" | ||
22928 | #endif | ||
22929 | /* We use char because int might match the return type of a gcc2 | ||
22930 | builtin and then its argument prototype would still apply. */ | ||
22931 | char dn_expand (); | ||
22932 | int | ||
22933 | main () | ||
22934 | { | ||
22935 | dn_expand (); | ||
22936 | ; | ||
22937 | return 0; | ||
22938 | } | ||
22939 | _ACEOF | ||
22940 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22942 | (eval $ac_link) 2>conftest.er1 | ||
22943 | ac_status=$? | ||
22944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22945 | rm -f conftest.er1 | ||
22946 | cat conftest.err >&5 | ||
22947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22948 | (exit $ac_status); } && | ||
22949 | { ac_try='test -z "$ac_c_werror_flag" | ||
22950 | || test ! -s conftest.err' | ||
22951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22952 | (eval $ac_try) 2>&5 | ||
22953 | ac_status=$? | ||
22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22955 | (exit $ac_status); }; } && | ||
22956 | { ac_try='test -s conftest$ac_exeext' | ||
22957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22958 | (eval $ac_try) 2>&5 | ||
22959 | ac_status=$? | ||
22960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22961 | (exit $ac_status); }; }; then | ||
22962 | ac_cv_search_dn_expand="-l$ac_lib" | ||
22963 | break | ||
22964 | else | ||
22965 | echo "$as_me: failed program was:" >&5 | ||
22966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22967 | |||
22968 | fi | ||
22969 | rm -f conftest.err conftest.$ac_objext \ | ||
22970 | conftest$ac_exeext conftest.$ac_ext | ||
22971 | done | ||
22972 | fi | ||
22973 | LIBS=$ac_func_search_save_LIBS | ||
22974 | fi | ||
22975 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
22976 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
22977 | if test "$ac_cv_search_dn_expand" != no; then | ||
22978 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
22979 | |||
22980 | fi | ||
22981 | |||
22982 | |||
22983 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
22984 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
22985 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
22986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22987 | else | ||
22988 | ac_check_lib_save_LIBS=$LIBS | ||
22989 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
22990 | cat >conftest.$ac_ext <<_ACEOF | ||
22991 | /* confdefs.h. */ | ||
22992 | _ACEOF | ||
22993 | cat confdefs.h >>conftest.$ac_ext | ||
22994 | cat >>conftest.$ac_ext <<_ACEOF | ||
22995 | /* end confdefs.h. */ | ||
22996 | |||
22997 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22998 | #ifdef __cplusplus | ||
22999 | extern "C" | ||
23000 | #endif | ||
23001 | /* We use char because int might match the return type of a gcc2 | ||
23002 | builtin and then its argument prototype would still apply. */ | ||
23003 | char gss_init_sec_context (); | ||
23004 | int | ||
23005 | main () | ||
23006 | { | ||
23007 | gss_init_sec_context (); | ||
23008 | ; | ||
23009 | return 0; | ||
23010 | } | ||
23011 | _ACEOF | ||
23012 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23014 | (eval $ac_link) 2>conftest.er1 | ||
23015 | ac_status=$? | ||
23016 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23017 | rm -f conftest.er1 | ||
23018 | cat conftest.err >&5 | ||
23019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23020 | (exit $ac_status); } && | ||
23021 | { ac_try='test -z "$ac_c_werror_flag" | ||
23022 | || test ! -s conftest.err' | ||
23023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23024 | (eval $ac_try) 2>&5 | ||
23025 | ac_status=$? | ||
23026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23027 | (exit $ac_status); }; } && | ||
23028 | { ac_try='test -s conftest$ac_exeext' | ||
23029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23030 | (eval $ac_try) 2>&5 | ||
23031 | ac_status=$? | ||
23032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23033 | (exit $ac_status); }; }; then | ||
23034 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
23035 | else | ||
23036 | echo "$as_me: failed program was:" >&5 | ||
23037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23038 | |||
23039 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
23040 | fi | ||
23041 | rm -f conftest.err conftest.$ac_objext \ | ||
23042 | conftest$ac_exeext conftest.$ac_ext | ||
23043 | LIBS=$ac_check_lib_save_LIBS | ||
23044 | fi | ||
23045 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
23046 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
23047 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
23048 | cat >>confdefs.h <<\_ACEOF | ||
23049 | #define GSSAPI 1 | ||
23050 | _ACEOF | ||
23051 | |||
23052 | K5LIBS="-lgssapi $K5LIBS" | ||
23053 | else | ||
23054 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
23055 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
23056 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
23057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23058 | else | ||
23059 | ac_check_lib_save_LIBS=$LIBS | ||
23060 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
23061 | cat >conftest.$ac_ext <<_ACEOF | ||
23062 | /* confdefs.h. */ | ||
23063 | _ACEOF | ||
23064 | cat confdefs.h >>conftest.$ac_ext | ||
23065 | cat >>conftest.$ac_ext <<_ACEOF | ||
23066 | /* end confdefs.h. */ | ||
23067 | |||
23068 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
23069 | #ifdef __cplusplus | ||
23070 | extern "C" | ||
23071 | #endif | ||
23072 | /* We use char because int might match the return type of a gcc2 | ||
23073 | builtin and then its argument prototype would still apply. */ | ||
23074 | char gss_init_sec_context (); | ||
23075 | int | ||
23076 | main () | ||
23077 | { | ||
23078 | gss_init_sec_context (); | ||
23079 | ; | ||
23080 | return 0; | ||
23081 | } | ||
23082 | _ACEOF | ||
23083 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
23084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23085 | (eval $ac_link) 2>conftest.er1 | ||
23086 | ac_status=$? | ||
23087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23088 | rm -f conftest.er1 | ||
23089 | cat conftest.err >&5 | ||
23090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23091 | (exit $ac_status); } && | ||
23092 | { ac_try='test -z "$ac_c_werror_flag" | ||
23093 | || test ! -s conftest.err' | ||
23094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23095 | (eval $ac_try) 2>&5 | ||
23096 | ac_status=$? | ||
23097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23098 | (exit $ac_status); }; } && | ||
23099 | { ac_try='test -s conftest$ac_exeext' | ||
23100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23101 | (eval $ac_try) 2>&5 | ||
23102 | ac_status=$? | ||
23103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23104 | (exit $ac_status); }; }; then | ||
23105 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
23106 | else | ||
23107 | echo "$as_me: failed program was:" >&5 | ||
23108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23109 | |||
23110 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
23111 | fi | ||
23112 | rm -f conftest.err conftest.$ac_objext \ | ||
23113 | conftest$ac_exeext conftest.$ac_ext | ||
23114 | LIBS=$ac_check_lib_save_LIBS | ||
23115 | fi | ||
23116 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
23117 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
23118 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
23119 | cat >>confdefs.h <<\_ACEOF | ||
23120 | #define GSSAPI 1 | ||
23121 | _ACEOF | ||
23122 | |||
23123 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
23124 | else | ||
23125 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
23126 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
23127 | fi | ||
23128 | |||
23129 | |||
23130 | fi | ||
23131 | |||
23132 | |||
23133 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
23134 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
23135 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
23136 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
23137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23138 | fi | ||
23139 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
23140 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
23141 | else | ||
23142 | # Is the header compilable? | ||
23143 | echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
23144 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 | ||
23145 | cat >conftest.$ac_ext <<_ACEOF | ||
23146 | /* confdefs.h. */ | ||
23147 | _ACEOF | ||
23148 | cat confdefs.h >>conftest.$ac_ext | ||
23149 | cat >>conftest.$ac_ext <<_ACEOF | ||
23150 | /* end confdefs.h. */ | ||
23151 | $ac_includes_default | ||
23152 | #include <gssapi.h> | ||
23153 | _ACEOF | ||
23154 | rm -f conftest.$ac_objext | ||
23155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23156 | (eval $ac_compile) 2>conftest.er1 | ||
23157 | ac_status=$? | ||
23158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23159 | rm -f conftest.er1 | ||
23160 | cat conftest.err >&5 | ||
23161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23162 | (exit $ac_status); } && | ||
23163 | { ac_try='test -z "$ac_c_werror_flag" | ||
23164 | || test ! -s conftest.err' | ||
23165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23166 | (eval $ac_try) 2>&5 | ||
23167 | ac_status=$? | ||
23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23169 | (exit $ac_status); }; } && | ||
23170 | { ac_try='test -s conftest.$ac_objext' | ||
23171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23172 | (eval $ac_try) 2>&5 | ||
23173 | ac_status=$? | ||
23174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23175 | (exit $ac_status); }; }; then | ||
23176 | ac_header_compiler=yes | ||
23177 | else | ||
23178 | echo "$as_me: failed program was:" >&5 | ||
23179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23180 | |||
23181 | ac_header_compiler=no | ||
23182 | fi | ||
23183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23185 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23186 | |||
23187 | # Is the header present? | ||
23188 | echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
23189 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 | ||
23190 | cat >conftest.$ac_ext <<_ACEOF | ||
23191 | /* confdefs.h. */ | ||
23192 | _ACEOF | ||
23193 | cat confdefs.h >>conftest.$ac_ext | ||
23194 | cat >>conftest.$ac_ext <<_ACEOF | ||
23195 | /* end confdefs.h. */ | ||
23196 | #include <gssapi.h> | ||
23197 | _ACEOF | ||
23198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23200 | ac_status=$? | ||
23201 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23202 | rm -f conftest.er1 | ||
23203 | cat conftest.err >&5 | ||
23204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23205 | (exit $ac_status); } >/dev/null; then | ||
23206 | if test -s conftest.err; then | ||
23207 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23208 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23209 | else | ||
23210 | ac_cpp_err= | ||
23211 | fi | ||
23212 | else | ||
23213 | ac_cpp_err=yes | ||
23214 | fi | ||
23215 | if test -z "$ac_cpp_err"; then | ||
23216 | ac_header_preproc=yes | ||
23217 | else | ||
23218 | echo "$as_me: failed program was:" >&5 | ||
23219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23220 | |||
23221 | ac_header_preproc=no | ||
23222 | fi | ||
23223 | rm -f conftest.err conftest.$ac_ext | ||
23224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23225 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23226 | |||
23227 | # So? What about this header? | ||
23228 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23229 | yes:no: ) | ||
23230 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23231 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23232 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
23233 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
23234 | ac_header_preproc=yes | ||
23235 | ;; | ||
23236 | no:yes:* ) | ||
23237 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
23238 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
23239 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
23240 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
23241 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
23242 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
23243 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
23244 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23245 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
23246 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
23247 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
23248 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
23249 | ( | ||
23250 | cat <<\_ASBOX | ||
23251 | ## ------------------------------------------- ## | ||
23252 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
23253 | ## ------------------------------------------- ## | ||
23254 | _ASBOX | ||
23255 | ) | | ||
23256 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23257 | ;; | ||
23258 | esac | ||
23259 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
23260 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
23261 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
23262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23263 | else | ||
23264 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
23265 | fi | ||
23266 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
23267 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
23268 | |||
23269 | fi | ||
23270 | if test $ac_cv_header_gssapi_h = yes; then | ||
23271 | : | ||
23272 | else | ||
23273 | unset ac_cv_header_gssapi_h | ||
23274 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
23275 | |||
23276 | for ac_header in gssapi.h | ||
23277 | do | ||
23278 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23279 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23284 | fi | ||
23285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23286 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23287 | else | ||
23288 | # Is the header compilable? | ||
23289 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23290 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23291 | cat >conftest.$ac_ext <<_ACEOF | ||
23292 | /* confdefs.h. */ | ||
23293 | _ACEOF | ||
23294 | cat confdefs.h >>conftest.$ac_ext | ||
23295 | cat >>conftest.$ac_ext <<_ACEOF | ||
23296 | /* end confdefs.h. */ | ||
23297 | $ac_includes_default | ||
23298 | #include <$ac_header> | ||
23299 | _ACEOF | ||
23300 | rm -f conftest.$ac_objext | ||
23301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23302 | (eval $ac_compile) 2>conftest.er1 | ||
23303 | ac_status=$? | ||
23304 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23305 | rm -f conftest.er1 | ||
23306 | cat conftest.err >&5 | ||
23307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23308 | (exit $ac_status); } && | ||
23309 | { ac_try='test -z "$ac_c_werror_flag" | ||
23310 | || test ! -s conftest.err' | ||
23311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23312 | (eval $ac_try) 2>&5 | ||
23313 | ac_status=$? | ||
23314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23315 | (exit $ac_status); }; } && | ||
23316 | { ac_try='test -s conftest.$ac_objext' | ||
23317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23318 | (eval $ac_try) 2>&5 | ||
23319 | ac_status=$? | ||
23320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23321 | (exit $ac_status); }; }; then | ||
23322 | ac_header_compiler=yes | ||
23323 | else | ||
23324 | echo "$as_me: failed program was:" >&5 | ||
23325 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23326 | |||
23327 | ac_header_compiler=no | ||
23328 | fi | ||
23329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23330 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23331 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23332 | |||
23333 | # Is the header present? | ||
23334 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23335 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23336 | cat >conftest.$ac_ext <<_ACEOF | ||
23337 | /* confdefs.h. */ | ||
23338 | _ACEOF | ||
23339 | cat confdefs.h >>conftest.$ac_ext | ||
23340 | cat >>conftest.$ac_ext <<_ACEOF | ||
23341 | /* end confdefs.h. */ | ||
23342 | #include <$ac_header> | ||
23343 | _ACEOF | ||
23344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23346 | ac_status=$? | ||
23347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23348 | rm -f conftest.er1 | ||
23349 | cat conftest.err >&5 | ||
23350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23351 | (exit $ac_status); } >/dev/null; then | ||
23352 | if test -s conftest.err; then | ||
23353 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23354 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23355 | else | ||
23356 | ac_cpp_err= | ||
23357 | fi | ||
23358 | else | ||
23359 | ac_cpp_err=yes | ||
23360 | fi | ||
23361 | if test -z "$ac_cpp_err"; then | ||
23362 | ac_header_preproc=yes | ||
23363 | else | ||
23364 | echo "$as_me: failed program was:" >&5 | ||
23365 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23366 | |||
23367 | ac_header_preproc=no | ||
23368 | fi | ||
23369 | rm -f conftest.err conftest.$ac_ext | ||
23370 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23371 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23372 | |||
23373 | # So? What about this header? | ||
23374 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23375 | yes:no: ) | ||
23376 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23377 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23378 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23379 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23380 | ac_header_preproc=yes | ||
23381 | ;; | ||
23382 | no:yes:* ) | ||
23383 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23384 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23385 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23386 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23387 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23388 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23389 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23390 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23392 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23393 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23394 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23395 | ( | ||
23396 | cat <<\_ASBOX | ||
23397 | ## ------------------------------------------- ## | ||
23398 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
23399 | ## ------------------------------------------- ## | ||
23400 | _ASBOX | ||
23401 | ) | | ||
23402 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23403 | ;; | ||
23404 | esac | ||
23405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23409 | else | ||
23410 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23411 | fi | ||
23412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23413 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23414 | |||
23415 | fi | ||
23416 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23417 | cat >>confdefs.h <<_ACEOF | ||
23418 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23419 | _ACEOF | ||
23420 | |||
23421 | else | ||
23422 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
23423 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
23424 | |||
23425 | fi | ||
23426 | |||
23427 | done | ||
23428 | |||
23429 | |||
23430 | |||
23431 | fi | ||
23432 | |||
23433 | |||
23434 | |||
23435 | oldCPP="$CPPFLAGS" | ||
23436 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
23437 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
23438 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
23439 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
23440 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
23441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23442 | fi | ||
23443 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
23444 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
23445 | else | ||
23446 | # Is the header compilable? | ||
23447 | echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
23448 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6 | ||
23449 | cat >conftest.$ac_ext <<_ACEOF | ||
23450 | /* confdefs.h. */ | ||
23451 | _ACEOF | ||
23452 | cat confdefs.h >>conftest.$ac_ext | ||
23453 | cat >>conftest.$ac_ext <<_ACEOF | ||
23454 | /* end confdefs.h. */ | ||
23455 | $ac_includes_default | ||
23456 | #include <gssapi_krb5.h> | ||
23457 | _ACEOF | ||
23458 | rm -f conftest.$ac_objext | ||
23459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23460 | (eval $ac_compile) 2>conftest.er1 | ||
23461 | ac_status=$? | ||
23462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23463 | rm -f conftest.er1 | ||
23464 | cat conftest.err >&5 | ||
23465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23466 | (exit $ac_status); } && | ||
23467 | { ac_try='test -z "$ac_c_werror_flag" | ||
23468 | || test ! -s conftest.err' | ||
23469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23470 | (eval $ac_try) 2>&5 | ||
23471 | ac_status=$? | ||
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23473 | (exit $ac_status); }; } && | ||
23474 | { ac_try='test -s conftest.$ac_objext' | ||
23475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23476 | (eval $ac_try) 2>&5 | ||
23477 | ac_status=$? | ||
23478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23479 | (exit $ac_status); }; }; then | ||
23480 | ac_header_compiler=yes | ||
23481 | else | ||
23482 | echo "$as_me: failed program was:" >&5 | ||
23483 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23484 | |||
23485 | ac_header_compiler=no | ||
23486 | fi | ||
23487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23489 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23490 | |||
23491 | # Is the header present? | ||
23492 | echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
23493 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6 | ||
23494 | cat >conftest.$ac_ext <<_ACEOF | ||
23495 | /* confdefs.h. */ | ||
23496 | _ACEOF | ||
23497 | cat confdefs.h >>conftest.$ac_ext | ||
23498 | cat >>conftest.$ac_ext <<_ACEOF | ||
23499 | /* end confdefs.h. */ | ||
23500 | #include <gssapi_krb5.h> | ||
23501 | _ACEOF | ||
23502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23504 | ac_status=$? | ||
23505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23506 | rm -f conftest.er1 | ||
23507 | cat conftest.err >&5 | ||
23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23509 | (exit $ac_status); } >/dev/null; then | ||
23510 | if test -s conftest.err; then | ||
23511 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23513 | else | ||
23514 | ac_cpp_err= | ||
23515 | fi | ||
23516 | else | ||
23517 | ac_cpp_err=yes | ||
23518 | fi | ||
23519 | if test -z "$ac_cpp_err"; then | ||
23520 | ac_header_preproc=yes | ||
23521 | else | ||
23522 | echo "$as_me: failed program was:" >&5 | ||
23523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23524 | |||
23525 | ac_header_preproc=no | ||
23526 | fi | ||
23527 | rm -f conftest.err conftest.$ac_ext | ||
23528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23529 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23530 | |||
23531 | # So? What about this header? | ||
23532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23533 | yes:no: ) | ||
23534 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23535 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23536 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
23537 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
23538 | ac_header_preproc=yes | ||
23539 | ;; | ||
23540 | no:yes:* ) | ||
23541 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
23542 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
23543 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
23544 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
23545 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
23546 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
23547 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
23548 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23549 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
23550 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
23551 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
23552 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
23553 | ( | ||
23554 | cat <<\_ASBOX | ||
23555 | ## ------------------------------------------- ## | ||
23556 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
23557 | ## ------------------------------------------- ## | ||
23558 | _ASBOX | ||
23559 | ) | | ||
23560 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23561 | ;; | ||
23562 | esac | ||
23563 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
23564 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
23565 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
23566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23567 | else | ||
23568 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
23569 | fi | ||
23570 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
23571 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
23572 | |||
23573 | fi | ||
23574 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
23575 | : | ||
23576 | else | ||
23577 | CPPFLAGS="$oldCPP" | ||
23578 | fi | ||
23579 | |||
23580 | |||
23581 | |||
23582 | fi | ||
23583 | if test ! -z "$need_dash_r" ; then | ||
23584 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
23585 | fi | ||
23586 | if test ! -z "$blibpath" ; then | ||
23587 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
23588 | fi | ||
23589 | fi | ||
23590 | |||
23591 | |||
23592 | |||
23593 | for ac_header in gssapi.h gssapi/gssapi.h | ||
23594 | do | ||
23595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23601 | fi | ||
23602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23604 | else | ||
23605 | # Is the header compilable? | ||
23606 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23608 | cat >conftest.$ac_ext <<_ACEOF | ||
23609 | /* confdefs.h. */ | ||
23610 | _ACEOF | ||
23611 | cat confdefs.h >>conftest.$ac_ext | ||
23612 | cat >>conftest.$ac_ext <<_ACEOF | ||
23613 | /* end confdefs.h. */ | ||
23614 | $ac_includes_default | ||
23615 | #include <$ac_header> | ||
23616 | _ACEOF | ||
23617 | rm -f conftest.$ac_objext | ||
23618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23619 | (eval $ac_compile) 2>conftest.er1 | ||
23620 | ac_status=$? | ||
23621 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23622 | rm -f conftest.er1 | ||
23623 | cat conftest.err >&5 | ||
23624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23625 | (exit $ac_status); } && | ||
23626 | { ac_try='test -z "$ac_c_werror_flag" | ||
23627 | || test ! -s conftest.err' | ||
23628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23629 | (eval $ac_try) 2>&5 | ||
23630 | ac_status=$? | ||
23631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23632 | (exit $ac_status); }; } && | ||
23633 | { ac_try='test -s conftest.$ac_objext' | ||
23634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23635 | (eval $ac_try) 2>&5 | ||
23636 | ac_status=$? | ||
23637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23638 | (exit $ac_status); }; }; then | ||
23639 | ac_header_compiler=yes | ||
23640 | else | ||
23641 | echo "$as_me: failed program was:" >&5 | ||
23642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23643 | |||
23644 | ac_header_compiler=no | ||
23645 | fi | ||
23646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23647 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23648 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23649 | |||
23650 | # Is the header present? | ||
23651 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23653 | cat >conftest.$ac_ext <<_ACEOF | ||
23654 | /* confdefs.h. */ | ||
23655 | _ACEOF | ||
23656 | cat confdefs.h >>conftest.$ac_ext | ||
23657 | cat >>conftest.$ac_ext <<_ACEOF | ||
23658 | /* end confdefs.h. */ | ||
23659 | #include <$ac_header> | ||
23660 | _ACEOF | ||
23661 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23662 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23663 | ac_status=$? | ||
23664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23665 | rm -f conftest.er1 | ||
23666 | cat conftest.err >&5 | ||
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23668 | (exit $ac_status); } >/dev/null; then | ||
23669 | if test -s conftest.err; then | ||
23670 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23671 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23672 | else | ||
23673 | ac_cpp_err= | ||
23674 | fi | ||
23675 | else | ||
23676 | ac_cpp_err=yes | ||
23677 | fi | ||
23678 | if test -z "$ac_cpp_err"; then | ||
23679 | ac_header_preproc=yes | ||
23680 | else | ||
23681 | echo "$as_me: failed program was:" >&5 | ||
23682 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23683 | |||
23684 | ac_header_preproc=no | ||
23685 | fi | ||
23686 | rm -f conftest.err conftest.$ac_ext | ||
23687 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23688 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23689 | |||
23690 | # So? What about this header? | ||
23691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23692 | yes:no: ) | ||
23693 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23694 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23696 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23697 | ac_header_preproc=yes | ||
23698 | ;; | ||
23699 | no:yes:* ) | ||
23700 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23701 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23702 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23703 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23704 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23705 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23706 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23707 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23709 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23710 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23711 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23712 | ( | ||
23713 | cat <<\_ASBOX | ||
23714 | ## ------------------------------------------- ## | ||
23715 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
23716 | ## ------------------------------------------- ## | ||
23717 | _ASBOX | ||
23718 | ) | | ||
23719 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23720 | ;; | ||
23721 | esac | ||
23722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23726 | else | ||
23727 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23728 | fi | ||
23729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23730 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23731 | |||
23732 | fi | ||
23733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23734 | cat >>confdefs.h <<_ACEOF | ||
23735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23736 | _ACEOF | ||
23737 | |||
23738 | fi | ||
23739 | |||
23740 | done | ||
23741 | |||
23742 | |||
23743 | |||
23744 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
23745 | do | ||
23746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23752 | fi | ||
23753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23755 | else | ||
23756 | # Is the header compilable? | ||
23757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23759 | cat >conftest.$ac_ext <<_ACEOF | ||
23760 | /* confdefs.h. */ | ||
23761 | _ACEOF | ||
23762 | cat confdefs.h >>conftest.$ac_ext | ||
23763 | cat >>conftest.$ac_ext <<_ACEOF | ||
23764 | /* end confdefs.h. */ | ||
23765 | $ac_includes_default | ||
23766 | #include <$ac_header> | ||
23767 | _ACEOF | ||
23768 | rm -f conftest.$ac_objext | ||
23769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23770 | (eval $ac_compile) 2>conftest.er1 | ||
23771 | ac_status=$? | ||
23772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23773 | rm -f conftest.er1 | ||
23774 | cat conftest.err >&5 | ||
23775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23776 | (exit $ac_status); } && | ||
23777 | { ac_try='test -z "$ac_c_werror_flag" | ||
23778 | || test ! -s conftest.err' | ||
23779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23780 | (eval $ac_try) 2>&5 | ||
23781 | ac_status=$? | ||
23782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23783 | (exit $ac_status); }; } && | ||
23784 | { ac_try='test -s conftest.$ac_objext' | ||
23785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23786 | (eval $ac_try) 2>&5 | ||
23787 | ac_status=$? | ||
23788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23789 | (exit $ac_status); }; }; then | ||
23790 | ac_header_compiler=yes | ||
23791 | else | ||
23792 | echo "$as_me: failed program was:" >&5 | ||
23793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23794 | |||
23795 | ac_header_compiler=no | ||
23796 | fi | ||
23797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23799 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23800 | |||
23801 | # Is the header present? | ||
23802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23804 | cat >conftest.$ac_ext <<_ACEOF | ||
23805 | /* confdefs.h. */ | ||
23806 | _ACEOF | ||
23807 | cat confdefs.h >>conftest.$ac_ext | ||
23808 | cat >>conftest.$ac_ext <<_ACEOF | ||
23809 | /* end confdefs.h. */ | ||
23810 | #include <$ac_header> | ||
23811 | _ACEOF | ||
23812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23814 | ac_status=$? | ||
23815 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23816 | rm -f conftest.er1 | ||
23817 | cat conftest.err >&5 | ||
23818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23819 | (exit $ac_status); } >/dev/null; then | ||
23820 | if test -s conftest.err; then | ||
23821 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23823 | else | ||
23824 | ac_cpp_err= | ||
23825 | fi | ||
23826 | else | ||
23827 | ac_cpp_err=yes | ||
23828 | fi | ||
23829 | if test -z "$ac_cpp_err"; then | ||
23830 | ac_header_preproc=yes | ||
23831 | else | ||
23832 | echo "$as_me: failed program was:" >&5 | ||
23833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23834 | |||
23835 | ac_header_preproc=no | ||
23836 | fi | ||
23837 | rm -f conftest.err conftest.$ac_ext | ||
23838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23839 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23840 | |||
23841 | # So? What about this header? | ||
23842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23843 | yes:no: ) | ||
23844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23848 | ac_header_preproc=yes | ||
23849 | ;; | ||
23850 | no:yes:* ) | ||
23851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
23852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
23853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
23854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
23855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
23856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
23857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
23858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
23859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
23860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
23861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
23862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
23863 | ( | ||
23864 | cat <<\_ASBOX | ||
23865 | ## ------------------------------------------- ## | ||
23866 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
23867 | ## ------------------------------------------- ## | ||
23868 | _ASBOX | ||
23869 | ) | | ||
23870 | sed "s/^/$as_me: WARNING: /" >&2 | ||
23871 | ;; | ||
23872 | esac | ||
23873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23877 | else | ||
23878 | eval "$as_ac_Header=\$ac_header_preproc" | ||
23879 | fi | ||
23880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23882 | |||
23883 | fi | ||
23884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
23885 | cat >>confdefs.h <<_ACEOF | ||
23886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
23887 | _ACEOF | ||
23888 | |||
23889 | fi | ||
23890 | |||
23891 | done | ||
23892 | |||
23893 | |||
23894 | |||
23895 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
23896 | do | ||
23897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
23898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
23900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
23901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
23902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23903 | fi | ||
23904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
23905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
23906 | else | ||
23907 | # Is the header compilable? | ||
23908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
23909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
23910 | cat >conftest.$ac_ext <<_ACEOF | ||
23911 | /* confdefs.h. */ | ||
23912 | _ACEOF | ||
23913 | cat confdefs.h >>conftest.$ac_ext | ||
23914 | cat >>conftest.$ac_ext <<_ACEOF | ||
23915 | /* end confdefs.h. */ | ||
23916 | $ac_includes_default | ||
23917 | #include <$ac_header> | ||
23918 | _ACEOF | ||
23919 | rm -f conftest.$ac_objext | ||
23920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23921 | (eval $ac_compile) 2>conftest.er1 | ||
23922 | ac_status=$? | ||
23923 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23924 | rm -f conftest.er1 | ||
23925 | cat conftest.err >&5 | ||
23926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23927 | (exit $ac_status); } && | ||
23928 | { ac_try='test -z "$ac_c_werror_flag" | ||
23929 | || test ! -s conftest.err' | ||
23930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23931 | (eval $ac_try) 2>&5 | ||
23932 | ac_status=$? | ||
23933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23934 | (exit $ac_status); }; } && | ||
23935 | { ac_try='test -s conftest.$ac_objext' | ||
23936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23937 | (eval $ac_try) 2>&5 | ||
23938 | ac_status=$? | ||
23939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23940 | (exit $ac_status); }; }; then | ||
23941 | ac_header_compiler=yes | ||
23942 | else | ||
23943 | echo "$as_me: failed program was:" >&5 | ||
23944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23945 | |||
23946 | ac_header_compiler=no | ||
23947 | fi | ||
23948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
23950 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
23951 | |||
23952 | # Is the header present? | ||
23953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
23954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
23955 | cat >conftest.$ac_ext <<_ACEOF | ||
23956 | /* confdefs.h. */ | ||
23957 | _ACEOF | ||
23958 | cat confdefs.h >>conftest.$ac_ext | ||
23959 | cat >>conftest.$ac_ext <<_ACEOF | ||
23960 | /* end confdefs.h. */ | ||
23961 | #include <$ac_header> | ||
23962 | _ACEOF | ||
23963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
23964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
23965 | ac_status=$? | ||
23966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23967 | rm -f conftest.er1 | ||
23968 | cat conftest.err >&5 | ||
23969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23970 | (exit $ac_status); } >/dev/null; then | ||
23971 | if test -s conftest.err; then | ||
23972 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
23973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
23974 | else | ||
23975 | ac_cpp_err= | ||
23976 | fi | ||
23977 | else | ||
23978 | ac_cpp_err=yes | ||
23979 | fi | ||
23980 | if test -z "$ac_cpp_err"; then | ||
23981 | ac_header_preproc=yes | ||
23982 | else | ||
23983 | echo "$as_me: failed program was:" >&5 | ||
23984 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23985 | |||
23986 | ac_header_preproc=no | ||
23987 | fi | ||
23988 | rm -f conftest.err conftest.$ac_ext | ||
23989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
23990 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
23991 | |||
23992 | # So? What about this header? | ||
23993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
23994 | yes:no: ) | ||
23995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
23996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
23997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
23998 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
23999 | ac_header_preproc=yes | ||
24000 | ;; | ||
24001 | no:yes:* ) | ||
24002 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
24003 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
24004 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
24005 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
24006 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
24007 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
24008 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
24009 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
24011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
24012 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
24013 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
24014 | ( | ||
24015 | cat <<\_ASBOX | ||
24016 | ## ------------------------------------------- ## | ||
24017 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24018 | ## ------------------------------------------- ## | ||
24019 | _ASBOX | ||
24020 | ) | | ||
24021 | sed "s/^/$as_me: WARNING: /" >&2 | ||
24022 | ;; | ||
24023 | esac | ||
24024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
24026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
24027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24028 | else | ||
24029 | eval "$as_ac_Header=\$ac_header_preproc" | ||
24030 | fi | ||
24031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
24032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
24033 | |||
24034 | fi | ||
24035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
24036 | cat >>confdefs.h <<_ACEOF | ||
24037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24038 | _ACEOF | ||
24039 | |||
24040 | fi | ||
24041 | |||
24042 | done | ||
24043 | |||
24044 | |||
24045 | LIBS="$LIBS $K5LIBS" | ||
24046 | echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
24047 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
24048 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
24049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24050 | else | ||
24051 | ac_func_search_save_LIBS=$LIBS | ||
24052 | ac_cv_search_k_hasafs=no | ||
24053 | cat >conftest.$ac_ext <<_ACEOF | ||
24054 | /* confdefs.h. */ | ||
24055 | _ACEOF | ||
24056 | cat confdefs.h >>conftest.$ac_ext | ||
24057 | cat >>conftest.$ac_ext <<_ACEOF | ||
24058 | /* end confdefs.h. */ | ||
24059 | |||
24060 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24061 | #ifdef __cplusplus | ||
24062 | extern "C" | ||
24063 | #endif | ||
24064 | /* We use char because int might match the return type of a gcc2 | ||
24065 | builtin and then its argument prototype would still apply. */ | ||
24066 | char k_hasafs (); | ||
24067 | int | ||
24068 | main () | ||
24069 | { | ||
24070 | k_hasafs (); | ||
24071 | ; | ||
24072 | return 0; | ||
24073 | } | ||
24074 | _ACEOF | ||
24075 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24077 | (eval $ac_link) 2>conftest.er1 | ||
24078 | ac_status=$? | ||
24079 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24080 | rm -f conftest.er1 | ||
24081 | cat conftest.err >&5 | ||
24082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24083 | (exit $ac_status); } && | ||
24084 | { ac_try='test -z "$ac_c_werror_flag" | ||
24085 | || test ! -s conftest.err' | ||
24086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24087 | (eval $ac_try) 2>&5 | ||
24088 | ac_status=$? | ||
24089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24090 | (exit $ac_status); }; } && | ||
24091 | { ac_try='test -s conftest$ac_exeext' | ||
24092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24093 | (eval $ac_try) 2>&5 | ||
24094 | ac_status=$? | ||
24095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24096 | (exit $ac_status); }; }; then | ||
24097 | ac_cv_search_k_hasafs="none required" | ||
24098 | else | ||
24099 | echo "$as_me: failed program was:" >&5 | ||
24100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24101 | |||
24102 | fi | ||
24103 | rm -f conftest.err conftest.$ac_objext \ | ||
24104 | conftest$ac_exeext conftest.$ac_ext | ||
24105 | if test "$ac_cv_search_k_hasafs" = no; then | ||
24106 | for ac_lib in kafs; do | ||
24107 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
24108 | cat >conftest.$ac_ext <<_ACEOF | ||
24109 | /* confdefs.h. */ | ||
24110 | _ACEOF | ||
24111 | cat confdefs.h >>conftest.$ac_ext | ||
24112 | cat >>conftest.$ac_ext <<_ACEOF | ||
24113 | /* end confdefs.h. */ | ||
24114 | |||
24115 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
24116 | #ifdef __cplusplus | ||
24117 | extern "C" | ||
24118 | #endif | ||
24119 | /* We use char because int might match the return type of a gcc2 | ||
24120 | builtin and then its argument prototype would still apply. */ | ||
24121 | char k_hasafs (); | ||
24122 | int | ||
24123 | main () | ||
24124 | { | ||
24125 | k_hasafs (); | ||
24126 | ; | ||
24127 | return 0; | ||
24128 | } | ||
24129 | _ACEOF | ||
24130 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24132 | (eval $ac_link) 2>conftest.er1 | ||
24133 | ac_status=$? | ||
24134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24135 | rm -f conftest.er1 | ||
24136 | cat conftest.err >&5 | ||
24137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24138 | (exit $ac_status); } && | ||
24139 | { ac_try='test -z "$ac_c_werror_flag" | ||
24140 | || test ! -s conftest.err' | ||
24141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24142 | (eval $ac_try) 2>&5 | ||
24143 | ac_status=$? | ||
24144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24145 | (exit $ac_status); }; } && | ||
24146 | { ac_try='test -s conftest$ac_exeext' | ||
24147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24148 | (eval $ac_try) 2>&5 | ||
24149 | ac_status=$? | ||
24150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24151 | (exit $ac_status); }; }; then | ||
24152 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
24153 | break | ||
24154 | else | ||
24155 | echo "$as_me: failed program was:" >&5 | ||
24156 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24157 | |||
24158 | fi | ||
24159 | rm -f conftest.err conftest.$ac_objext \ | ||
24160 | conftest$ac_exeext conftest.$ac_ext | ||
24161 | done | ||
24162 | fi | ||
24163 | LIBS=$ac_func_search_save_LIBS | ||
24164 | fi | ||
24165 | echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
24166 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
24167 | if test "$ac_cv_search_k_hasafs" != no; then | ||
24168 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
24169 | cat >>confdefs.h <<\_ACEOF | ||
24170 | #define USE_AFS 1 | ||
24171 | _ACEOF | ||
24172 | |||
24173 | fi | ||
24174 | |||
24175 | |||
24176 | |||
24177 | fi; | ||
24178 | |||
24179 | # Looking for programs, paths and files | ||
24180 | |||
24181 | PRIVSEP_PATH=/var/empty | ||
24182 | |||
24183 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
24184 | if test "${with_privsep_path+set}" = set; then | ||
24185 | withval="$with_privsep_path" | ||
24186 | |||
24187 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24188 | test "x${withval}" != "xyes"; then | ||
24189 | PRIVSEP_PATH=$withval | ||
24190 | fi | ||
24191 | |||
24192 | |||
24193 | fi; | ||
24194 | |||
24195 | |||
24196 | |||
24197 | # Check whether --with-xauth or --without-xauth was given. | ||
24198 | if test "${with_xauth+set}" = set; then | ||
24199 | withval="$with_xauth" | ||
24200 | |||
24201 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24202 | test "x${withval}" != "xyes"; then | ||
24203 | xauth_path=$withval | ||
24204 | fi | ||
24205 | |||
24206 | else | ||
24207 | |||
24208 | TestPath="$PATH" | ||
24209 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
24210 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
24211 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
24212 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
24213 | # Extract the first word of "xauth", so it can be a program name with args. | ||
24214 | set dummy xauth; ac_word=$2 | ||
24215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
24216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
24217 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
24218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24219 | else | ||
24220 | case $xauth_path in | ||
24221 | [\\/]* | ?:[\\/]*) | ||
24222 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
24223 | ;; | ||
24224 | *) | ||
24225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24226 | for as_dir in $TestPath | ||
24227 | do | ||
24228 | IFS=$as_save_IFS | ||
24229 | test -z "$as_dir" && as_dir=. | ||
24230 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
24232 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
24233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24234 | break 2 | ||
24235 | fi | ||
24236 | done | ||
24237 | done | ||
24238 | |||
24239 | ;; | ||
24240 | esac | ||
24241 | fi | ||
24242 | xauth_path=$ac_cv_path_xauth_path | ||
24243 | |||
24244 | if test -n "$xauth_path"; then | ||
24245 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
24246 | echo "${ECHO_T}$xauth_path" >&6 | ||
24247 | else | ||
24248 | echo "$as_me:$LINENO: result: no" >&5 | ||
24249 | echo "${ECHO_T}no" >&6 | ||
24250 | fi | ||
24251 | |||
24252 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
24253 | xauth_path="/usr/openwin/bin/xauth" | ||
24254 | fi | ||
24255 | |||
24256 | |||
24257 | fi; | ||
24258 | |||
24259 | STRIP_OPT=-s | ||
24260 | # Check whether --enable-strip or --disable-strip was given. | ||
24261 | if test "${enable_strip+set}" = set; then | ||
24262 | enableval="$enable_strip" | ||
24263 | |||
24264 | if test "x$enableval" = "xno" ; then | ||
24265 | STRIP_OPT= | ||
24266 | fi | ||
24267 | |||
24268 | |||
24269 | fi; | ||
24270 | |||
24271 | |||
24272 | if test -z "$xauth_path" ; then | ||
24273 | XAUTH_PATH="undefined" | ||
24274 | |||
24275 | else | ||
24276 | cat >>confdefs.h <<_ACEOF | ||
24277 | #define XAUTH_PATH "$xauth_path" | ||
24278 | _ACEOF | ||
24279 | |||
24280 | XAUTH_PATH=$xauth_path | ||
24281 | |||
24282 | fi | ||
24283 | |||
24284 | # Check for mail directory (last resort if we cannot get it from headers) | ||
24285 | if test ! -z "$MAIL" ; then | ||
24286 | maildir=`dirname $MAIL` | ||
24287 | cat >>confdefs.h <<_ACEOF | ||
24288 | #define MAIL_DIRECTORY "$maildir" | ||
24289 | _ACEOF | ||
24290 | |||
24291 | fi | ||
24292 | |||
24293 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
24294 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
24295 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
24296 | disable_ptmx_check=yes | ||
24297 | fi | ||
24298 | if test -z "$no_dev_ptmx" ; then | ||
24299 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
24300 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
24301 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
24302 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
24303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24304 | else | ||
24305 | test "$cross_compiling" = yes && | ||
24306 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
24307 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
24308 | { (exit 1); exit 1; }; } | ||
24309 | if test -r ""/dev/ptmx""; then | ||
24310 | ac_cv_file___dev_ptmx_=yes | ||
24311 | else | ||
24312 | ac_cv_file___dev_ptmx_=no | ||
24313 | fi | ||
24314 | fi | ||
24315 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
24316 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
24317 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
24318 | |||
24319 | cat >>confdefs.h <<_ACEOF | ||
24320 | #define HAVE_DEV_PTMX 1 | ||
24321 | _ACEOF | ||
24322 | |||
24323 | have_dev_ptmx=1 | ||
24324 | |||
24325 | |||
24326 | fi | ||
24327 | |||
24328 | fi | ||
24329 | fi | ||
24330 | |||
24331 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
24332 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
24333 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
24334 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
24335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24336 | else | ||
24337 | test "$cross_compiling" = yes && | ||
24338 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
24339 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
24340 | { (exit 1); exit 1; }; } | ||
24341 | if test -r ""/dev/ptc""; then | ||
24342 | ac_cv_file___dev_ptc_=yes | ||
24343 | else | ||
24344 | ac_cv_file___dev_ptc_=no | ||
24345 | fi | ||
24346 | fi | ||
24347 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
24348 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
24349 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
24350 | |||
24351 | cat >>confdefs.h <<_ACEOF | ||
24352 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
24353 | _ACEOF | ||
24354 | |||
24355 | have_dev_ptc=1 | ||
24356 | |||
24357 | |||
24358 | fi | ||
24359 | |||
24360 | else | ||
24361 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
24362 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
24363 | fi | ||
24364 | |||
24365 | # Options from here on. Some of these are preset by platform above | ||
24366 | |||
24367 | # Check whether --with-mantype or --without-mantype was given. | ||
24368 | if test "${with_mantype+set}" = set; then | ||
24369 | withval="$with_mantype" | ||
24370 | |||
24371 | case "$withval" in | ||
24372 | man|cat|doc) | ||
24373 | MANTYPE=$withval | ||
24374 | ;; | ||
24375 | *) | ||
24376 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
24377 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
24378 | { (exit 1); exit 1; }; } | ||
24379 | ;; | ||
24380 | esac | ||
24381 | |||
24382 | |||
24383 | fi; | ||
24384 | if test -z "$MANTYPE"; then | ||
24385 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
24386 | for ac_prog in nroff awf | ||
24387 | do | ||
24388 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
24389 | set dummy $ac_prog; ac_word=$2 | ||
24390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
24391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
24392 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
24393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24394 | else | ||
24395 | case $NROFF in | ||
24396 | [\\/]* | ?:[\\/]*) | ||
24397 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
24398 | ;; | ||
24399 | *) | ||
24400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24401 | for as_dir in $TestPath | ||
24402 | do | ||
24403 | IFS=$as_save_IFS | ||
24404 | test -z "$as_dir" && as_dir=. | ||
24405 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
24406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
24407 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
24408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
24409 | break 2 | ||
24410 | fi | ||
24411 | done | ||
24412 | done | ||
24413 | |||
24414 | ;; | ||
24415 | esac | ||
24416 | fi | ||
24417 | NROFF=$ac_cv_path_NROFF | ||
24418 | |||
24419 | if test -n "$NROFF"; then | ||
24420 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
24421 | echo "${ECHO_T}$NROFF" >&6 | ||
24422 | else | ||
24423 | echo "$as_me:$LINENO: result: no" >&5 | ||
24424 | echo "${ECHO_T}no" >&6 | ||
24425 | fi | ||
24426 | |||
24427 | test -n "$NROFF" && break | ||
24428 | done | ||
24429 | test -n "$NROFF" || NROFF="/bin/false" | ||
24430 | |||
24431 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
24432 | MANTYPE=doc | ||
24433 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
24434 | MANTYPE=man | ||
24435 | else | ||
24436 | MANTYPE=cat | ||
24437 | fi | ||
24438 | fi | ||
24439 | |||
24440 | if test "$MANTYPE" = "doc"; then | ||
24441 | mansubdir=man; | ||
24442 | else | ||
24443 | mansubdir=$MANTYPE; | ||
24444 | fi | ||
24445 | |||
24446 | |||
24447 | # Check whether to enable MD5 passwords | ||
24448 | MD5_MSG="no" | ||
24449 | |||
24450 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
24451 | if test "${with_md5_passwords+set}" = set; then | ||
24452 | withval="$with_md5_passwords" | ||
24453 | |||
24454 | if test "x$withval" != "xno" ; then | ||
24455 | cat >>confdefs.h <<\_ACEOF | ||
24456 | #define HAVE_MD5_PASSWORDS 1 | ||
24457 | _ACEOF | ||
24458 | |||
24459 | MD5_MSG="yes" | ||
24460 | fi | ||
24461 | |||
24462 | |||
24463 | fi; | ||
24464 | |||
24465 | # Whether to disable shadow password support | ||
24466 | |||
24467 | # Check whether --with-shadow or --without-shadow was given. | ||
24468 | if test "${with_shadow+set}" = set; then | ||
24469 | withval="$with_shadow" | ||
24470 | |||
24471 | if test "x$withval" = "xno" ; then | ||
24472 | cat >>confdefs.h <<\_ACEOF | ||
24473 | #define DISABLE_SHADOW 1 | ||
24474 | _ACEOF | ||
24475 | |||
24476 | disable_shadow=yes | ||
24477 | fi | ||
24478 | |||
24479 | |||
24480 | fi; | ||
24481 | |||
24482 | if test -z "$disable_shadow" ; then | ||
24483 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
24484 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
24485 | cat >conftest.$ac_ext <<_ACEOF | ||
24486 | /* confdefs.h. */ | ||
24487 | _ACEOF | ||
24488 | cat confdefs.h >>conftest.$ac_ext | ||
24489 | cat >>conftest.$ac_ext <<_ACEOF | ||
24490 | /* end confdefs.h. */ | ||
24491 | |||
24492 | #include <sys/types.h> | ||
24493 | #include <shadow.h> | ||
24494 | struct spwd sp; | ||
24495 | |||
24496 | int | ||
24497 | main () | ||
24498 | { | ||
24499 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
24500 | ; | ||
24501 | return 0; | ||
24502 | } | ||
24503 | _ACEOF | ||
24504 | rm -f conftest.$ac_objext | ||
24505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
24506 | (eval $ac_compile) 2>conftest.er1 | ||
24507 | ac_status=$? | ||
24508 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24509 | rm -f conftest.er1 | ||
24510 | cat conftest.err >&5 | ||
24511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24512 | (exit $ac_status); } && | ||
24513 | { ac_try='test -z "$ac_c_werror_flag" | ||
24514 | || test ! -s conftest.err' | ||
24515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24516 | (eval $ac_try) 2>&5 | ||
24517 | ac_status=$? | ||
24518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24519 | (exit $ac_status); }; } && | ||
24520 | { ac_try='test -s conftest.$ac_objext' | ||
24521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24522 | (eval $ac_try) 2>&5 | ||
24523 | ac_status=$? | ||
24524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24525 | (exit $ac_status); }; }; then | ||
24526 | sp_expire_available=yes | ||
24527 | else | ||
24528 | echo "$as_me: failed program was:" >&5 | ||
24529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24530 | |||
24531 | |||
24532 | |||
24533 | fi | ||
24534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24535 | |||
24536 | if test "x$sp_expire_available" = "xyes" ; then | ||
24537 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24538 | echo "${ECHO_T}yes" >&6 | ||
24539 | cat >>confdefs.h <<\_ACEOF | ||
24540 | #define HAS_SHADOW_EXPIRE 1 | ||
24541 | _ACEOF | ||
24542 | |||
24543 | else | ||
24544 | echo "$as_me:$LINENO: result: no" >&5 | ||
24545 | echo "${ECHO_T}no" >&6 | ||
24546 | fi | ||
24547 | fi | ||
24548 | |||
24549 | # Use ip address instead of hostname in $DISPLAY | ||
24550 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
24551 | DISPLAY_HACK_MSG="yes" | ||
24552 | cat >>confdefs.h <<\_ACEOF | ||
24553 | #define IPADDR_IN_DISPLAY 1 | ||
24554 | _ACEOF | ||
24555 | |||
24556 | else | ||
24557 | DISPLAY_HACK_MSG="no" | ||
24558 | |||
24559 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
24560 | if test "${with_ipaddr_display+set}" = set; then | ||
24561 | withval="$with_ipaddr_display" | ||
24562 | |||
24563 | if test "x$withval" != "xno" ; then | ||
24564 | cat >>confdefs.h <<\_ACEOF | ||
24565 | #define IPADDR_IN_DISPLAY 1 | ||
24566 | _ACEOF | ||
24567 | |||
24568 | DISPLAY_HACK_MSG="yes" | ||
24569 | fi | ||
24570 | |||
24571 | |||
24572 | fi; | ||
24573 | fi | ||
24574 | |||
24575 | # check for /etc/default/login and use it if present. | ||
24576 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
24577 | if test "${enable_etc_default_login+set}" = set; then | ||
24578 | enableval="$enable_etc_default_login" | ||
24579 | if test "x$enableval" = "xno"; then | ||
24580 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
24581 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
24582 | etc_default_login=no | ||
24583 | else | ||
24584 | etc_default_login=yes | ||
24585 | fi | ||
24586 | else | ||
24587 | etc_default_login=yes | ||
24588 | |||
24589 | fi; | ||
24590 | |||
24591 | if test "x$etc_default_login" != "xno"; then | ||
24592 | echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
24593 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
24594 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
24595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24596 | else | ||
24597 | test "$cross_compiling" = yes && | ||
24598 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
24599 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
24600 | { (exit 1); exit 1; }; } | ||
24601 | if test -r ""/etc/default/login""; then | ||
24602 | ac_cv_file___etc_default_login_=yes | ||
24603 | else | ||
24604 | ac_cv_file___etc_default_login_=no | ||
24605 | fi | ||
24606 | fi | ||
24607 | echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
24608 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
24609 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
24610 | external_path_file=/etc/default/login | ||
24611 | fi | ||
24612 | |||
24613 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
24614 | then | ||
24615 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5 | ||
24616 | echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;} | ||
24617 | elif test "x$external_path_file" = "x/etc/default/login"; then | ||
24618 | cat >>confdefs.h <<\_ACEOF | ||
24619 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
24620 | _ACEOF | ||
24621 | |||
24622 | fi | ||
24623 | fi | ||
24624 | |||
24625 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
24626 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
24627 | external_path_file=/etc/login.conf | ||
24628 | fi | ||
24629 | |||
24630 | # Whether to mess with the default path | ||
24631 | SERVER_PATH_MSG="(default)" | ||
24632 | |||
24633 | # Check whether --with-default-path or --without-default-path was given. | ||
24634 | if test "${with_default_path+set}" = set; then | ||
24635 | withval="$with_default_path" | ||
24636 | |||
24637 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24638 | { echo "$as_me:$LINENO: WARNING: | ||
24639 | --with-default-path=PATH has no effect on this system. | ||
24640 | Edit /etc/login.conf instead." >&5 | ||
24641 | echo "$as_me: WARNING: | ||
24642 | --with-default-path=PATH has no effect on this system. | ||
24643 | Edit /etc/login.conf instead." >&2;} | ||
24644 | elif test "x$withval" != "xno" ; then | ||
24645 | if test ! -z "$external_path_file" ; then | ||
24646 | { echo "$as_me:$LINENO: WARNING: | ||
24647 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24648 | $external_path_file ." >&5 | ||
24649 | echo "$as_me: WARNING: | ||
24650 | --with-default-path=PATH will only be used if PATH is not defined in | ||
24651 | $external_path_file ." >&2;} | ||
24652 | fi | ||
24653 | user_path="$withval" | ||
24654 | SERVER_PATH_MSG="$withval" | ||
24655 | fi | ||
24656 | |||
24657 | else | ||
24658 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
24659 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
24660 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
24661 | else | ||
24662 | if test ! -z "$external_path_file" ; then | ||
24663 | { echo "$as_me:$LINENO: WARNING: | ||
24664 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24665 | otherwise scp will not work." >&5 | ||
24666 | echo "$as_me: WARNING: | ||
24667 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
24668 | otherwise scp will not work." >&2;} | ||
24669 | fi | ||
24670 | if test "$cross_compiling" = yes; then | ||
24671 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24672 | |||
24673 | else | ||
24674 | cat >conftest.$ac_ext <<_ACEOF | ||
24675 | /* confdefs.h. */ | ||
24676 | _ACEOF | ||
24677 | cat confdefs.h >>conftest.$ac_ext | ||
24678 | cat >>conftest.$ac_ext <<_ACEOF | ||
24679 | /* end confdefs.h. */ | ||
24680 | |||
24681 | /* find out what STDPATH is */ | ||
24682 | #include <stdio.h> | ||
24683 | #ifdef HAVE_PATHS_H | ||
24684 | # include <paths.h> | ||
24685 | #endif | ||
24686 | #ifndef _PATH_STDPATH | ||
24687 | # ifdef _PATH_USERPATH /* Irix */ | ||
24688 | # define _PATH_STDPATH _PATH_USERPATH | ||
24689 | # else | ||
24690 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
24691 | # endif | ||
24692 | #endif | ||
24693 | #include <sys/types.h> | ||
24694 | #include <sys/stat.h> | ||
24695 | #include <fcntl.h> | ||
24696 | #define DATA "conftest.stdpath" | ||
24697 | |||
24698 | main() | ||
24699 | { | ||
24700 | FILE *fd; | ||
24701 | int rc; | ||
24702 | |||
24703 | fd = fopen(DATA,"w"); | ||
24704 | if(fd == NULL) | ||
24705 | exit(1); | ||
24706 | |||
24707 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
24708 | exit(1); | ||
24709 | |||
24710 | exit(0); | ||
24711 | } | ||
24712 | |||
24713 | _ACEOF | ||
24714 | rm -f conftest$ac_exeext | ||
24715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
24716 | (eval $ac_link) 2>&5 | ||
24717 | ac_status=$? | ||
24718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
24721 | (eval $ac_try) 2>&5 | ||
24722 | ac_status=$? | ||
24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24724 | (exit $ac_status); }; }; then | ||
24725 | user_path=`cat conftest.stdpath` | ||
24726 | else | ||
24727 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24728 | echo "$as_me: failed program was:" >&5 | ||
24729 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24730 | |||
24731 | ( exit $ac_status ) | ||
24732 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
24733 | fi | ||
24734 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24735 | fi | ||
24736 | # make sure $bindir is in USER_PATH so scp will work | ||
24737 | t_bindir=`eval echo ${bindir}` | ||
24738 | case $t_bindir in | ||
24739 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
24740 | esac | ||
24741 | case $t_bindir in | ||
24742 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24743 | esac | ||
24744 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
24745 | if test $? -ne 0 ; then | ||
24746 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
24747 | if test $? -ne 0 ; then | ||
24748 | user_path=$user_path:$t_bindir | ||
24749 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
24750 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
24751 | fi | ||
24752 | fi | ||
24753 | fi | ||
24754 | |||
24755 | fi; | ||
24756 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
24757 | cat >>confdefs.h <<_ACEOF | ||
24758 | #define USER_PATH "$user_path" | ||
24759 | _ACEOF | ||
24760 | |||
24761 | |||
24762 | fi | ||
24763 | |||
24764 | # Set superuser path separately to user path | ||
24765 | |||
24766 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
24767 | if test "${with_superuser_path+set}" = set; then | ||
24768 | withval="$with_superuser_path" | ||
24769 | |||
24770 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24771 | test "x${withval}" != "xyes"; then | ||
24772 | cat >>confdefs.h <<_ACEOF | ||
24773 | #define SUPERUSER_PATH "$withval" | ||
24774 | _ACEOF | ||
24775 | |||
24776 | superuser_path=$withval | ||
24777 | fi | ||
24778 | |||
24779 | |||
24780 | fi; | ||
24781 | |||
24782 | |||
24783 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
24784 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
24785 | IPV4_IN6_HACK_MSG="no" | ||
24786 | |||
24787 | # Check whether --with-4in6 or --without-4in6 was given. | ||
24788 | if test "${with_4in6+set}" = set; then | ||
24789 | withval="$with_4in6" | ||
24790 | |||
24791 | if test "x$withval" != "xno" ; then | ||
24792 | echo "$as_me:$LINENO: result: yes" >&5 | ||
24793 | echo "${ECHO_T}yes" >&6 | ||
24794 | cat >>confdefs.h <<\_ACEOF | ||
24795 | #define IPV4_IN_IPV6 1 | ||
24796 | _ACEOF | ||
24797 | |||
24798 | IPV4_IN6_HACK_MSG="yes" | ||
24799 | else | ||
24800 | echo "$as_me:$LINENO: result: no" >&5 | ||
24801 | echo "${ECHO_T}no" >&6 | ||
24802 | fi | ||
24803 | |||
24804 | else | ||
24805 | |||
24806 | if test "x$inet6_default_4in6" = "xyes"; then | ||
24807 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
24808 | echo "${ECHO_T}yes (default)" >&6 | ||
24809 | cat >>confdefs.h <<\_ACEOF | ||
24810 | #define IPV4_IN_IPV6 1 | ||
24811 | _ACEOF | ||
24812 | |||
24813 | IPV4_IN6_HACK_MSG="yes" | ||
24814 | else | ||
24815 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
24816 | echo "${ECHO_T}no (default)" >&6 | ||
24817 | fi | ||
24818 | |||
24819 | |||
24820 | fi; | ||
24821 | |||
24822 | # Whether to enable BSD auth support | ||
24823 | BSD_AUTH_MSG=no | ||
24824 | |||
24825 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
24826 | if test "${with_bsd_auth+set}" = set; then | ||
24827 | withval="$with_bsd_auth" | ||
24828 | |||
24829 | if test "x$withval" != "xno" ; then | ||
24830 | cat >>confdefs.h <<\_ACEOF | ||
24831 | #define BSD_AUTH 1 | ||
24832 | _ACEOF | ||
24833 | |||
24834 | BSD_AUTH_MSG=yes | ||
24835 | fi | ||
24836 | |||
24837 | |||
24838 | fi; | ||
24839 | |||
24840 | # Where to place sshd.pid | ||
24841 | piddir=/var/run | ||
24842 | # make sure the directory exists | ||
24843 | if test ! -d $piddir ; then | ||
24844 | piddir=`eval echo ${sysconfdir}` | ||
24845 | case $piddir in | ||
24846 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
24847 | esac | ||
24848 | fi | ||
24849 | |||
24850 | |||
24851 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
24852 | if test "${with_pid_dir+set}" = set; then | ||
24853 | withval="$with_pid_dir" | ||
24854 | |||
24855 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
24856 | test "x${withval}" != "xyes"; then | ||
24857 | piddir=$withval | ||
24858 | if test ! -d $piddir ; then | ||
24859 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
24860 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
24861 | fi | ||
24862 | fi | ||
24863 | |||
24864 | |||
24865 | fi; | ||
24866 | |||
24867 | cat >>confdefs.h <<_ACEOF | ||
24868 | #define _PATH_SSH_PIDDIR "$piddir" | ||
24869 | _ACEOF | ||
24870 | |||
24871 | |||
24872 | |||
24873 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
24874 | if test "${enable_lastlog+set}" = set; then | ||
24875 | enableval="$enable_lastlog" | ||
24876 | |||
24877 | if test "x$enableval" = "xno" ; then | ||
24878 | cat >>confdefs.h <<\_ACEOF | ||
24879 | #define DISABLE_LASTLOG 1 | ||
24880 | _ACEOF | ||
24881 | |||
24882 | fi | ||
24883 | |||
24884 | |||
24885 | fi; | ||
24886 | # Check whether --enable-utmp or --disable-utmp was given. | ||
24887 | if test "${enable_utmp+set}" = set; then | ||
24888 | enableval="$enable_utmp" | ||
24889 | |||
24890 | if test "x$enableval" = "xno" ; then | ||
24891 | cat >>confdefs.h <<\_ACEOF | ||
24892 | #define DISABLE_UTMP 1 | ||
24893 | _ACEOF | ||
24894 | |||
24895 | fi | ||
24896 | |||
24897 | |||
24898 | fi; | ||
24899 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
24900 | if test "${enable_utmpx+set}" = set; then | ||
24901 | enableval="$enable_utmpx" | ||
24902 | |||
24903 | if test "x$enableval" = "xno" ; then | ||
24904 | cat >>confdefs.h <<\_ACEOF | ||
24905 | #define DISABLE_UTMPX 1 | ||
24906 | _ACEOF | ||
24907 | |||
24908 | fi | ||
24909 | |||
24910 | |||
24911 | fi; | ||
24912 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
24913 | if test "${enable_wtmp+set}" = set; then | ||
24914 | enableval="$enable_wtmp" | ||
24915 | |||
24916 | if test "x$enableval" = "xno" ; then | ||
24917 | cat >>confdefs.h <<\_ACEOF | ||
24918 | #define DISABLE_WTMP 1 | ||
24919 | _ACEOF | ||
24920 | |||
24921 | fi | ||
24922 | |||
24923 | |||
24924 | fi; | ||
24925 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
24926 | if test "${enable_wtmpx+set}" = set; then | ||
24927 | enableval="$enable_wtmpx" | ||
24928 | |||
24929 | if test "x$enableval" = "xno" ; then | ||
24930 | cat >>confdefs.h <<\_ACEOF | ||
24931 | #define DISABLE_WTMPX 1 | ||
24932 | _ACEOF | ||
24933 | |||
24934 | fi | ||
24935 | |||
24936 | |||
24937 | fi; | ||
24938 | # Check whether --enable-libutil or --disable-libutil was given. | ||
24939 | if test "${enable_libutil+set}" = set; then | ||
24940 | enableval="$enable_libutil" | ||
24941 | |||
24942 | if test "x$enableval" = "xno" ; then | ||
24943 | cat >>confdefs.h <<\_ACEOF | ||
24944 | #define DISABLE_LOGIN 1 | ||
24945 | _ACEOF | ||
24946 | |||
24947 | fi | ||
24948 | |||
24949 | |||
24950 | fi; | ||
24951 | # Check whether --enable-pututline or --disable-pututline was given. | ||
24952 | if test "${enable_pututline+set}" = set; then | ||
24953 | enableval="$enable_pututline" | ||
24954 | |||
24955 | if test "x$enableval" = "xno" ; then | ||
24956 | cat >>confdefs.h <<\_ACEOF | ||
24957 | #define DISABLE_PUTUTLINE 1 | ||
24958 | _ACEOF | ||
24959 | |||
24960 | fi | ||
24961 | |||
24962 | |||
24963 | fi; | ||
24964 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
24965 | if test "${enable_pututxline+set}" = set; then | ||
24966 | enableval="$enable_pututxline" | ||
24967 | |||
24968 | if test "x$enableval" = "xno" ; then | ||
24969 | cat >>confdefs.h <<\_ACEOF | ||
24970 | #define DISABLE_PUTUTXLINE 1 | ||
24971 | _ACEOF | ||
24972 | |||
24973 | fi | ||
24974 | |||
24975 | |||
24976 | fi; | ||
24977 | |||
24978 | # Check whether --with-lastlog or --without-lastlog was given. | ||
24979 | if test "${with_lastlog+set}" = set; then | ||
24980 | withval="$with_lastlog" | ||
24981 | |||
24982 | if test "x$withval" = "xno" ; then | ||
24983 | cat >>confdefs.h <<\_ACEOF | ||
24984 | #define DISABLE_LASTLOG 1 | ||
24985 | _ACEOF | ||
24986 | |||
24987 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
24988 | conf_lastlog_location=$withval | ||
24989 | fi | ||
24990 | |||
24991 | |||
24992 | fi; | ||
24993 | |||
24994 | |||
24995 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
24996 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
24997 | cat >conftest.$ac_ext <<_ACEOF | ||
24998 | /* confdefs.h. */ | ||
24999 | _ACEOF | ||
25000 | cat confdefs.h >>conftest.$ac_ext | ||
25001 | cat >>conftest.$ac_ext <<_ACEOF | ||
25002 | /* end confdefs.h. */ | ||
25003 | |||
25004 | #include <sys/types.h> | ||
25005 | #include <utmp.h> | ||
25006 | #ifdef HAVE_LASTLOG_H | ||
25007 | # include <lastlog.h> | ||
25008 | #endif | ||
25009 | #ifdef HAVE_PATHS_H | ||
25010 | # include <paths.h> | ||
25011 | #endif | ||
25012 | #ifdef HAVE_LOGIN_H | ||
25013 | # include <login.h> | ||
25014 | #endif | ||
25015 | |||
25016 | int | ||
25017 | main () | ||
25018 | { | ||
25019 | char *lastlog = LASTLOG_FILE; | ||
25020 | ; | ||
25021 | return 0; | ||
25022 | } | ||
25023 | _ACEOF | ||
25024 | rm -f conftest.$ac_objext | ||
25025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25026 | (eval $ac_compile) 2>conftest.er1 | ||
25027 | ac_status=$? | ||
25028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25029 | rm -f conftest.er1 | ||
25030 | cat conftest.err >&5 | ||
25031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25032 | (exit $ac_status); } && | ||
25033 | { ac_try='test -z "$ac_c_werror_flag" | ||
25034 | || test ! -s conftest.err' | ||
25035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25036 | (eval $ac_try) 2>&5 | ||
25037 | ac_status=$? | ||
25038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25039 | (exit $ac_status); }; } && | ||
25040 | { ac_try='test -s conftest.$ac_objext' | ||
25041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25042 | (eval $ac_try) 2>&5 | ||
25043 | ac_status=$? | ||
25044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25045 | (exit $ac_status); }; }; then | ||
25046 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25047 | echo "${ECHO_T}yes" >&6 | ||
25048 | else | ||
25049 | echo "$as_me: failed program was:" >&5 | ||
25050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25051 | |||
25052 | |||
25053 | echo "$as_me:$LINENO: result: no" >&5 | ||
25054 | echo "${ECHO_T}no" >&6 | ||
25055 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
25056 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
25057 | cat >conftest.$ac_ext <<_ACEOF | ||
25058 | /* confdefs.h. */ | ||
25059 | _ACEOF | ||
25060 | cat confdefs.h >>conftest.$ac_ext | ||
25061 | cat >>conftest.$ac_ext <<_ACEOF | ||
25062 | /* end confdefs.h. */ | ||
25063 | |||
25064 | #include <sys/types.h> | ||
25065 | #include <utmp.h> | ||
25066 | #ifdef HAVE_LASTLOG_H | ||
25067 | # include <lastlog.h> | ||
25068 | #endif | ||
25069 | #ifdef HAVE_PATHS_H | ||
25070 | # include <paths.h> | ||
25071 | #endif | ||
25072 | |||
25073 | int | ||
25074 | main () | ||
25075 | { | ||
25076 | char *lastlog = _PATH_LASTLOG; | ||
25077 | ; | ||
25078 | return 0; | ||
25079 | } | ||
25080 | _ACEOF | ||
25081 | rm -f conftest.$ac_objext | ||
25082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25083 | (eval $ac_compile) 2>conftest.er1 | ||
25084 | ac_status=$? | ||
25085 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25086 | rm -f conftest.er1 | ||
25087 | cat conftest.err >&5 | ||
25088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25089 | (exit $ac_status); } && | ||
25090 | { ac_try='test -z "$ac_c_werror_flag" | ||
25091 | || test ! -s conftest.err' | ||
25092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25093 | (eval $ac_try) 2>&5 | ||
25094 | ac_status=$? | ||
25095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25096 | (exit $ac_status); }; } && | ||
25097 | { ac_try='test -s conftest.$ac_objext' | ||
25098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25099 | (eval $ac_try) 2>&5 | ||
25100 | ac_status=$? | ||
25101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25102 | (exit $ac_status); }; }; then | ||
25103 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25104 | echo "${ECHO_T}yes" >&6 | ||
25105 | else | ||
25106 | echo "$as_me: failed program was:" >&5 | ||
25107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25108 | |||
25109 | |||
25110 | echo "$as_me:$LINENO: result: no" >&5 | ||
25111 | echo "${ECHO_T}no" >&6 | ||
25112 | system_lastlog_path=no | ||
25113 | |||
25114 | fi | ||
25115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25116 | |||
25117 | |||
25118 | fi | ||
25119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25120 | |||
25121 | if test -z "$conf_lastlog_location"; then | ||
25122 | if test x"$system_lastlog_path" = x"no" ; then | ||
25123 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
25124 | if (test -d "$f" || test -f "$f") ; then | ||
25125 | conf_lastlog_location=$f | ||
25126 | fi | ||
25127 | done | ||
25128 | if test -z "$conf_lastlog_location"; then | ||
25129 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
25130 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
25131 | fi | ||
25132 | fi | ||
25133 | fi | ||
25134 | |||
25135 | if test -n "$conf_lastlog_location"; then | ||
25136 | cat >>confdefs.h <<_ACEOF | ||
25137 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
25138 | _ACEOF | ||
25139 | |||
25140 | fi | ||
25141 | |||
25142 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
25143 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
25144 | cat >conftest.$ac_ext <<_ACEOF | ||
25145 | /* confdefs.h. */ | ||
25146 | _ACEOF | ||
25147 | cat confdefs.h >>conftest.$ac_ext | ||
25148 | cat >>conftest.$ac_ext <<_ACEOF | ||
25149 | /* end confdefs.h. */ | ||
25150 | |||
25151 | #include <sys/types.h> | ||
25152 | #include <utmp.h> | ||
25153 | #ifdef HAVE_PATHS_H | ||
25154 | # include <paths.h> | ||
25155 | #endif | ||
25156 | |||
25157 | int | ||
25158 | main () | ||
25159 | { | ||
25160 | char *utmp = UTMP_FILE; | ||
25161 | ; | ||
25162 | return 0; | ||
25163 | } | ||
25164 | _ACEOF | ||
25165 | rm -f conftest.$ac_objext | ||
25166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25167 | (eval $ac_compile) 2>conftest.er1 | ||
25168 | ac_status=$? | ||
25169 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25170 | rm -f conftest.er1 | ||
25171 | cat conftest.err >&5 | ||
25172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25173 | (exit $ac_status); } && | ||
25174 | { ac_try='test -z "$ac_c_werror_flag" | ||
25175 | || test ! -s conftest.err' | ||
25176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25177 | (eval $ac_try) 2>&5 | ||
25178 | ac_status=$? | ||
25179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25180 | (exit $ac_status); }; } && | ||
25181 | { ac_try='test -s conftest.$ac_objext' | ||
25182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25183 | (eval $ac_try) 2>&5 | ||
25184 | ac_status=$? | ||
25185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25186 | (exit $ac_status); }; }; then | ||
25187 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25188 | echo "${ECHO_T}yes" >&6 | ||
25189 | else | ||
25190 | echo "$as_me: failed program was:" >&5 | ||
25191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25192 | |||
25193 | echo "$as_me:$LINENO: result: no" >&5 | ||
25194 | echo "${ECHO_T}no" >&6 | ||
25195 | system_utmp_path=no | ||
25196 | |||
25197 | fi | ||
25198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25199 | if test -z "$conf_utmp_location"; then | ||
25200 | if test x"$system_utmp_path" = x"no" ; then | ||
25201 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
25202 | if test -f $f ; then | ||
25203 | conf_utmp_location=$f | ||
25204 | fi | ||
25205 | done | ||
25206 | if test -z "$conf_utmp_location"; then | ||
25207 | cat >>confdefs.h <<\_ACEOF | ||
25208 | #define DISABLE_UTMP 1 | ||
25209 | _ACEOF | ||
25210 | |||
25211 | fi | ||
25212 | fi | ||
25213 | fi | ||
25214 | if test -n "$conf_utmp_location"; then | ||
25215 | cat >>confdefs.h <<_ACEOF | ||
25216 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
25217 | _ACEOF | ||
25218 | |||
25219 | fi | ||
25220 | |||
25221 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
25222 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | ||
25223 | cat >conftest.$ac_ext <<_ACEOF | ||
25224 | /* confdefs.h. */ | ||
25225 | _ACEOF | ||
25226 | cat confdefs.h >>conftest.$ac_ext | ||
25227 | cat >>conftest.$ac_ext <<_ACEOF | ||
25228 | /* end confdefs.h. */ | ||
25229 | |||
25230 | #include <sys/types.h> | ||
25231 | #include <utmp.h> | ||
25232 | #ifdef HAVE_PATHS_H | ||
25233 | # include <paths.h> | ||
25234 | #endif | ||
25235 | |||
25236 | int | ||
25237 | main () | ||
25238 | { | ||
25239 | char *wtmp = WTMP_FILE; | ||
25240 | ; | ||
25241 | return 0; | ||
25242 | } | ||
25243 | _ACEOF | ||
25244 | rm -f conftest.$ac_objext | ||
25245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25246 | (eval $ac_compile) 2>conftest.er1 | ||
25247 | ac_status=$? | ||
25248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25249 | rm -f conftest.er1 | ||
25250 | cat conftest.err >&5 | ||
25251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25252 | (exit $ac_status); } && | ||
25253 | { ac_try='test -z "$ac_c_werror_flag" | ||
25254 | || test ! -s conftest.err' | ||
25255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25256 | (eval $ac_try) 2>&5 | ||
25257 | ac_status=$? | ||
25258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25259 | (exit $ac_status); }; } && | ||
25260 | { ac_try='test -s conftest.$ac_objext' | ||
25261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25262 | (eval $ac_try) 2>&5 | ||
25263 | ac_status=$? | ||
25264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25265 | (exit $ac_status); }; }; then | ||
25266 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25267 | echo "${ECHO_T}yes" >&6 | ||
25268 | else | ||
25269 | echo "$as_me: failed program was:" >&5 | ||
25270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25271 | |||
25272 | echo "$as_me:$LINENO: result: no" >&5 | ||
25273 | echo "${ECHO_T}no" >&6 | ||
25274 | system_wtmp_path=no | ||
25275 | |||
25276 | fi | ||
25277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25278 | if test -z "$conf_wtmp_location"; then | ||
25279 | if test x"$system_wtmp_path" = x"no" ; then | ||
25280 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
25281 | if test -f $f ; then | ||
25282 | conf_wtmp_location=$f | ||
25283 | fi | ||
25284 | done | ||
25285 | if test -z "$conf_wtmp_location"; then | ||
25286 | cat >>confdefs.h <<\_ACEOF | ||
25287 | #define DISABLE_WTMP 1 | ||
25288 | _ACEOF | ||
25289 | |||
25290 | fi | ||
25291 | fi | ||
25292 | fi | ||
25293 | if test -n "$conf_wtmp_location"; then | ||
25294 | cat >>confdefs.h <<_ACEOF | ||
25295 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
25296 | _ACEOF | ||
25297 | |||
25298 | fi | ||
25299 | |||
25300 | |||
25301 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
25302 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
25303 | cat >conftest.$ac_ext <<_ACEOF | ||
25304 | /* confdefs.h. */ | ||
25305 | _ACEOF | ||
25306 | cat confdefs.h >>conftest.$ac_ext | ||
25307 | cat >>conftest.$ac_ext <<_ACEOF | ||
25308 | /* end confdefs.h. */ | ||
25309 | |||
25310 | #include <sys/types.h> | ||
25311 | #include <utmp.h> | ||
25312 | #ifdef HAVE_UTMPX_H | ||
25313 | #include <utmpx.h> | ||
25314 | #endif | ||
25315 | #ifdef HAVE_PATHS_H | ||
25316 | # include <paths.h> | ||
25317 | #endif | ||
25318 | |||
25319 | int | ||
25320 | main () | ||
25321 | { | ||
25322 | char *utmpx = UTMPX_FILE; | ||
25323 | ; | ||
25324 | return 0; | ||
25325 | } | ||
25326 | _ACEOF | ||
25327 | rm -f conftest.$ac_objext | ||
25328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25329 | (eval $ac_compile) 2>conftest.er1 | ||
25330 | ac_status=$? | ||
25331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25332 | rm -f conftest.er1 | ||
25333 | cat conftest.err >&5 | ||
25334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25335 | (exit $ac_status); } && | ||
25336 | { ac_try='test -z "$ac_c_werror_flag" | ||
25337 | || test ! -s conftest.err' | ||
25338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25339 | (eval $ac_try) 2>&5 | ||
25340 | ac_status=$? | ||
25341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25342 | (exit $ac_status); }; } && | ||
25343 | { ac_try='test -s conftest.$ac_objext' | ||
25344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25345 | (eval $ac_try) 2>&5 | ||
25346 | ac_status=$? | ||
25347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25348 | (exit $ac_status); }; }; then | ||
25349 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25350 | echo "${ECHO_T}yes" >&6 | ||
25351 | else | ||
25352 | echo "$as_me: failed program was:" >&5 | ||
25353 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25354 | |||
25355 | echo "$as_me:$LINENO: result: no" >&5 | ||
25356 | echo "${ECHO_T}no" >&6 | ||
25357 | system_utmpx_path=no | ||
25358 | |||
25359 | fi | ||
25360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25361 | if test -z "$conf_utmpx_location"; then | ||
25362 | if test x"$system_utmpx_path" = x"no" ; then | ||
25363 | cat >>confdefs.h <<\_ACEOF | ||
25364 | #define DISABLE_UTMPX 1 | ||
25365 | _ACEOF | ||
25366 | |||
25367 | fi | ||
25368 | else | ||
25369 | cat >>confdefs.h <<_ACEOF | ||
25370 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
25371 | _ACEOF | ||
25372 | |||
25373 | fi | ||
25374 | |||
25375 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
25376 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
25377 | cat >conftest.$ac_ext <<_ACEOF | ||
25378 | /* confdefs.h. */ | ||
25379 | _ACEOF | ||
25380 | cat confdefs.h >>conftest.$ac_ext | ||
25381 | cat >>conftest.$ac_ext <<_ACEOF | ||
25382 | /* end confdefs.h. */ | ||
25383 | |||
25384 | #include <sys/types.h> | ||
25385 | #include <utmp.h> | ||
25386 | #ifdef HAVE_UTMPX_H | ||
25387 | #include <utmpx.h> | ||
25388 | #endif | ||
25389 | #ifdef HAVE_PATHS_H | ||
25390 | # include <paths.h> | ||
25391 | #endif | ||
25392 | |||
25393 | int | ||
25394 | main () | ||
25395 | { | ||
25396 | char *wtmpx = WTMPX_FILE; | ||
25397 | ; | ||
25398 | return 0; | ||
25399 | } | ||
25400 | _ACEOF | ||
25401 | rm -f conftest.$ac_objext | ||
25402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
25403 | (eval $ac_compile) 2>conftest.er1 | ||
25404 | ac_status=$? | ||
25405 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25406 | rm -f conftest.er1 | ||
25407 | cat conftest.err >&5 | ||
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25409 | (exit $ac_status); } && | ||
25410 | { ac_try='test -z "$ac_c_werror_flag" | ||
25411 | || test ! -s conftest.err' | ||
25412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25413 | (eval $ac_try) 2>&5 | ||
25414 | ac_status=$? | ||
25415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25416 | (exit $ac_status); }; } && | ||
25417 | { ac_try='test -s conftest.$ac_objext' | ||
25418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
25419 | (eval $ac_try) 2>&5 | ||
25420 | ac_status=$? | ||
25421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25422 | (exit $ac_status); }; }; then | ||
25423 | echo "$as_me:$LINENO: result: yes" >&5 | ||
25424 | echo "${ECHO_T}yes" >&6 | ||
25425 | else | ||
25426 | echo "$as_me: failed program was:" >&5 | ||
25427 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25428 | |||
25429 | echo "$as_me:$LINENO: result: no" >&5 | ||
25430 | echo "${ECHO_T}no" >&6 | ||
25431 | system_wtmpx_path=no | ||
25432 | |||
25433 | fi | ||
25434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25435 | if test -z "$conf_wtmpx_location"; then | ||
25436 | if test x"$system_wtmpx_path" = x"no" ; then | ||
25437 | cat >>confdefs.h <<\_ACEOF | ||
25438 | #define DISABLE_WTMPX 1 | ||
25439 | _ACEOF | ||
25440 | |||
25441 | fi | ||
25442 | else | ||
25443 | cat >>confdefs.h <<_ACEOF | ||
25444 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
25445 | _ACEOF | ||
25446 | |||
25447 | fi | ||
25448 | |||
25449 | |||
25450 | if test ! -z "$blibpath" ; then | ||
25451 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
25452 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
25453 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
25454 | fi | ||
25455 | |||
25456 | if test "$PAM_MSG" = yes ; then | ||
25457 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
25458 | fi | ||
25459 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
25460 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
25461 | fi | ||
25462 | |||
25463 | CFLAGS="$CFLAGS $werror_flags" | ||
25464 | |||
25465 | |||
25466 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
25467 | |||
25468 | cat >confcache <<\_ACEOF | ||
25469 | # This file is a shell script that caches the results of configure | ||
25470 | # tests run on this system so they can be shared between configure | ||
25471 | # scripts and configure runs, see configure's option --config-cache. | ||
25472 | # It is not useful on other systems. If it contains results you don't | ||
25473 | # want to keep, you may remove or edit it. | ||
25474 | # | ||
25475 | # config.status only pays attention to the cache file if you give it | ||
25476 | # the --recheck option to rerun configure. | ||
25477 | # | ||
25478 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
25479 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
25480 | # following values. | ||
25481 | |||
25482 | _ACEOF | ||
25483 | |||
25484 | # The following way of writing the cache mishandles newlines in values, | ||
25485 | # but we know of no workaround that is simple, portable, and efficient. | ||
25486 | # So, don't put newlines in cache variables' values. | ||
25487 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
25488 | # and sets the high bit in the cache file unless we assign to the vars. | ||
25489 | { | ||
25490 | (set) 2>&1 | | ||
25491 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
25492 | *ac_space=\ *) | ||
25493 | # `set' does not quote correctly, so add quotes (double-quote | ||
25494 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
25495 | sed -n \ | ||
25496 | "s/'/'\\\\''/g; | ||
25497 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
25498 | ;; | ||
25499 | *) | ||
25500 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
25501 | sed -n \ | ||
25502 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
25503 | ;; | ||
25504 | esac; | ||
25505 | } | | ||
25506 | sed ' | ||
25507 | t clear | ||
25508 | : clear | ||
25509 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
25510 | t end | ||
25511 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
25512 | : end' >>confcache | ||
25513 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
25514 | if test -w $cache_file; then | ||
25515 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
25516 | cat confcache >$cache_file | ||
25517 | else | ||
25518 | echo "not updating unwritable cache $cache_file" | ||
25519 | fi | ||
25520 | fi | ||
25521 | rm -f confcache | ||
25522 | |||
25523 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
25524 | # Let make expand exec_prefix. | ||
25525 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
25526 | |||
25527 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
25528 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
25529 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
25530 | # (actually we leave an empty line to preserve line numbers). | ||
25531 | if test "x$srcdir" = x.; then | ||
25532 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
25533 | s/:*\$(srcdir):*/:/; | ||
25534 | s/:*\${srcdir}:*/:/; | ||
25535 | s/:*@srcdir@:*/:/; | ||
25536 | s/^\([^=]*=[ ]*\):*/\1/; | ||
25537 | s/:*$//; | ||
25538 | s/^[^=]*=[ ]*$//; | ||
25539 | }' | ||
25540 | fi | ||
25541 | |||
25542 | DEFS=-DHAVE_CONFIG_H | ||
25543 | |||
25544 | ac_libobjs= | ||
25545 | ac_ltlibobjs= | ||
25546 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
25547 | # 1. Remove the extension, and $U if already installed. | ||
25548 | ac_i=`echo "$ac_i" | | ||
25549 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
25550 | # 2. Add them. | ||
25551 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
25552 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
25553 | done | ||
25554 | LIBOBJS=$ac_libobjs | ||
25555 | |||
25556 | LTLIBOBJS=$ac_ltlibobjs | ||
25557 | |||
25558 | |||
25559 | |||
25560 | : ${CONFIG_STATUS=./config.status} | ||
25561 | ac_clean_files_save=$ac_clean_files | ||
25562 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
25563 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
25564 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
25565 | cat >$CONFIG_STATUS <<_ACEOF | ||
25566 | #! $SHELL | ||
25567 | # Generated by $as_me. | ||
25568 | # Run this file to recreate the current configuration. | ||
25569 | # Compiler output produced by configure, useful for debugging | ||
25570 | # configure, is in config.log if it exists. | ||
25571 | |||
25572 | debug=false | ||
25573 | ac_cs_recheck=false | ||
25574 | ac_cs_silent=false | ||
25575 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
25576 | _ACEOF | ||
25577 | |||
25578 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25579 | ## --------------------- ## | ||
25580 | ## M4sh Initialization. ## | ||
25581 | ## --------------------- ## | ||
25582 | |||
25583 | # Be Bourne compatible | ||
25584 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
25585 | emulate sh | ||
25586 | NULLCMD=: | ||
25587 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
25588 | # is contrary to our usage. Disable this feature. | ||
25589 | alias -g '${1+"$@"}'='"$@"' | ||
25590 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
25591 | set -o posix | ||
25592 | fi | ||
25593 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25594 | |||
25595 | # Support unset when possible. | ||
25596 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
25597 | as_unset=unset | ||
25598 | else | ||
25599 | as_unset=false | ||
25600 | fi | ||
25601 | |||
25602 | |||
25603 | # Work around bugs in pre-3.0 UWIN ksh. | ||
25604 | $as_unset ENV MAIL MAILPATH | ||
25605 | PS1='$ ' | ||
25606 | PS2='> ' | ||
25607 | PS4='+ ' | ||
25608 | |||
25609 | # NLS nuisances. | ||
25610 | for as_var in \ | ||
25611 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
25612 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
25613 | LC_TELEPHONE LC_TIME | ||
25614 | do | ||
25615 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
25616 | eval $as_var=C; export $as_var | ||
25617 | else | ||
25618 | $as_unset $as_var | ||
25619 | fi | ||
25620 | done | ||
25621 | |||
25622 | # Required to use basename. | ||
25623 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25624 | as_expr=expr | ||
25625 | else | ||
25626 | as_expr=false | ||
25627 | fi | ||
25628 | |||
25629 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
25630 | as_basename=basename | ||
25631 | else | ||
25632 | as_basename=false | ||
25633 | fi | ||
25634 | |||
25635 | |||
25636 | # Name of the executable. | ||
25637 | as_me=`$as_basename "$0" || | ||
25638 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
25639 | X"$0" : 'X\(//\)$' \| \ | ||
25640 | X"$0" : 'X\(/\)$' \| \ | ||
25641 | . : '\(.\)' 2>/dev/null || | ||
25642 | echo X/"$0" | | ||
25643 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
25644 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
25645 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
25646 | s/.*/./; q'` | ||
25647 | |||
25648 | |||
25649 | # PATH needs CR, and LINENO needs CR and PATH. | ||
25650 | # Avoid depending upon Character Ranges. | ||
25651 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
25652 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
25653 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
25654 | as_cr_digits='0123456789' | ||
25655 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
25656 | |||
25657 | # The user is always right. | ||
25658 | if test "${PATH_SEPARATOR+set}" != set; then | ||
25659 | echo "#! /bin/sh" >conf$$.sh | ||
25660 | echo "exit 0" >>conf$$.sh | ||
25661 | chmod +x conf$$.sh | ||
25662 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
25663 | PATH_SEPARATOR=';' | ||
25664 | else | ||
25665 | PATH_SEPARATOR=: | ||
25666 | fi | ||
25667 | rm -f conf$$.sh | ||
25668 | fi | ||
25669 | |||
25670 | |||
25671 | as_lineno_1=$LINENO | ||
25672 | as_lineno_2=$LINENO | ||
25673 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25674 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25675 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
25676 | # Find who we are. Look in the path if we contain no path at all | ||
25677 | # relative or not. | ||
25678 | case $0 in | ||
25679 | *[\\/]* ) as_myself=$0 ;; | ||
25680 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25681 | for as_dir in $PATH | ||
25682 | do | ||
25683 | IFS=$as_save_IFS | ||
25684 | test -z "$as_dir" && as_dir=. | ||
25685 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
25686 | done | ||
25687 | |||
25688 | ;; | ||
25689 | esac | ||
25690 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
25691 | # in which case we are not to be found in the path. | ||
25692 | if test "x$as_myself" = x; then | ||
25693 | as_myself=$0 | ||
25694 | fi | ||
25695 | if test ! -f "$as_myself"; then | ||
25696 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
25697 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
25698 | { (exit 1); exit 1; }; } | ||
25699 | fi | ||
25700 | case $CONFIG_SHELL in | ||
25701 | '') | ||
25702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25703 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
25704 | do | ||
25705 | IFS=$as_save_IFS | ||
25706 | test -z "$as_dir" && as_dir=. | ||
25707 | for as_base in sh bash ksh sh5; do | ||
25708 | case $as_dir in | ||
25709 | /*) | ||
25710 | if ("$as_dir/$as_base" -c ' | ||
25711 | as_lineno_1=$LINENO | ||
25712 | as_lineno_2=$LINENO | ||
25713 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
25714 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
25715 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
25716 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
25717 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
25718 | CONFIG_SHELL=$as_dir/$as_base | ||
25719 | export CONFIG_SHELL | ||
25720 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
25721 | fi;; | ||
25722 | esac | ||
25723 | done | ||
25724 | done | ||
25725 | ;; | ||
25726 | esac | ||
25727 | |||
25728 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
25729 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
25730 | # line-number line before each line; the second 'sed' does the real | ||
25731 | # work. The second script uses 'N' to pair each line-number line | ||
25732 | # with the numbered line, and appends trailing '-' during | ||
25733 | # substitution so that $LINENO is not a special case at line end. | ||
25734 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
25735 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
25736 | sed '=' <$as_myself | | ||
25737 | sed ' | ||
25738 | N | ||
25739 | s,$,-, | ||
25740 | : loop | ||
25741 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
25742 | t loop | ||
25743 | s,-$,, | ||
25744 | s,^['$as_cr_digits']*\n,, | ||
25745 | ' >$as_me.lineno && | ||
25746 | chmod +x $as_me.lineno || | ||
25747 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
25748 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
25749 | { (exit 1); exit 1; }; } | ||
25750 | |||
25751 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
25752 | # (the dirname of $[0] is not the place where we might find the | ||
25753 | # original and so on. Autoconf is especially sensible to this). | ||
25754 | . ./$as_me.lineno | ||
25755 | # Exit status is that of the last command. | ||
25756 | exit | ||
25757 | } | ||
25758 | |||
25759 | |||
25760 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
25761 | *c*,-n*) ECHO_N= ECHO_C=' | ||
25762 | ' ECHO_T=' ' ;; | ||
25763 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
25764 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
25765 | esac | ||
25766 | |||
25767 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
25768 | as_expr=expr | ||
25769 | else | ||
25770 | as_expr=false | ||
25771 | fi | ||
25772 | |||
25773 | rm -f conf$$ conf$$.exe conf$$.file | ||
25774 | echo >conf$$.file | ||
25775 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
25776 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
25777 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
25778 | if test -f conf$$.exe; then | ||
25779 | # Don't use ln at all; we don't have any links | ||
25780 | as_ln_s='cp -p' | ||
25781 | else | ||
25782 | as_ln_s='ln -s' | ||
25783 | fi | ||
25784 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
25785 | as_ln_s=ln | ||
25786 | else | ||
25787 | as_ln_s='cp -p' | ||
25788 | fi | ||
25789 | rm -f conf$$ conf$$.exe conf$$.file | ||
25790 | |||
25791 | if mkdir -p . 2>/dev/null; then | ||
25792 | as_mkdir_p=: | ||
25793 | else | ||
25794 | test -d ./-p && rmdir ./-p | ||
25795 | as_mkdir_p=false | ||
25796 | fi | ||
25797 | |||
25798 | as_executable_p="test -f" | ||
25799 | |||
25800 | # Sed expression to map a string onto a valid CPP name. | ||
25801 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
25802 | |||
25803 | # Sed expression to map a string onto a valid variable name. | ||
25804 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
25805 | |||
25806 | |||
25807 | # IFS | ||
25808 | # We need space, tab and new line, in precisely that order. | ||
25809 | as_nl=' | ||
25810 | ' | ||
25811 | IFS=" $as_nl" | ||
25812 | |||
25813 | # CDPATH. | ||
25814 | $as_unset CDPATH | ||
25815 | |||
25816 | exec 6>&1 | ||
25817 | |||
25818 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
25819 | # report actual input values of CONFIG_FILES etc. instead of their | ||
25820 | # values after options handling. Logging --version etc. is OK. | ||
25821 | exec 5>>config.log | ||
25822 | { | ||
25823 | echo | ||
25824 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF | ||
25825 | ## Running $as_me. ## | ||
25826 | BOXI_EOF | ||
25827 | } >&5 | ||
25828 | cat >&5 <<_CSEOF | ||
25829 | |||
25830 | This file was extended by OpenSSH $as_me Portable, which was | ||
25831 | generated by GNU Autoconf 2.59. Invocation command line was | ||
25832 | |||
25833 | CONFIG_FILES = $CONFIG_FILES | ||
25834 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
25835 | CONFIG_LINKS = $CONFIG_LINKS | ||
25836 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
25837 | $ $0 $@ | ||
25838 | |||
25839 | _CSEOF | ||
25840 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
25841 | echo >&5 | ||
25842 | _ACEOF | ||
25843 | |||
25844 | # Files that config.status was made for. | ||
25845 | if test -n "$ac_config_files"; then | ||
25846 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
25847 | fi | ||
25848 | |||
25849 | if test -n "$ac_config_headers"; then | ||
25850 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
25851 | fi | ||
25852 | |||
25853 | if test -n "$ac_config_links"; then | ||
25854 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
25855 | fi | ||
25856 | |||
25857 | if test -n "$ac_config_commands"; then | ||
25858 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
25859 | fi | ||
25860 | |||
25861 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25862 | |||
25863 | ac_cs_usage="\ | ||
25864 | \`$as_me' instantiates files from templates according to the | ||
25865 | current configuration. | ||
25866 | |||
25867 | Usage: $0 [OPTIONS] [FILE]... | ||
25868 | |||
25869 | -h, --help print this help, then exit | ||
25870 | -V, --version print version number, then exit | ||
25871 | -q, --quiet do not print progress messages | ||
25872 | -d, --debug don't remove temporary files | ||
25873 | --recheck update $as_me by reconfiguring in the same conditions | ||
25874 | --file=FILE[:TEMPLATE] | ||
25875 | instantiate the configuration file FILE | ||
25876 | --header=FILE[:TEMPLATE] | ||
25877 | instantiate the configuration header FILE | ||
25878 | |||
25879 | Configuration files: | ||
25880 | $config_files | ||
25881 | |||
25882 | Configuration headers: | ||
25883 | $config_headers | ||
25884 | |||
25885 | Report bugs to <bug-autoconf@gnu.org>." | ||
25886 | _ACEOF | ||
25887 | |||
25888 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25889 | ac_cs_version="\\ | ||
25890 | OpenSSH config.status Portable | ||
25891 | configured by $0, generated by GNU Autoconf 2.59, | ||
25892 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
25893 | |||
25894 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
25895 | This config.status script is free software; the Free Software Foundation | ||
25896 | gives unlimited permission to copy, distribute and modify it." | ||
25897 | srcdir=$srcdir | ||
25898 | INSTALL="$INSTALL" | ||
25899 | _ACEOF | ||
25900 | |||
25901 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25902 | # If no file are specified by the user, then we need to provide default | ||
25903 | # value. By we need to know if files were specified by the user. | ||
25904 | ac_need_defaults=: | ||
25905 | while test $# != 0 | ||
25906 | do | ||
25907 | case $1 in | ||
25908 | --*=*) | ||
25909 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
25910 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
25911 | ac_shift=: | ||
25912 | ;; | ||
25913 | -*) | ||
25914 | ac_option=$1 | ||
25915 | ac_optarg=$2 | ||
25916 | ac_shift=shift | ||
25917 | ;; | ||
25918 | *) # This is not an option, so the user has probably given explicit | ||
25919 | # arguments. | ||
25920 | ac_option=$1 | ||
25921 | ac_need_defaults=false;; | ||
25922 | esac | ||
25923 | |||
25924 | case $ac_option in | ||
25925 | # Handling of the options. | ||
25926 | _ACEOF | ||
25927 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25928 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
25929 | ac_cs_recheck=: ;; | ||
25930 | --version | --vers* | -V ) | ||
25931 | echo "$ac_cs_version"; exit 0 ;; | ||
25932 | --he | --h) | ||
25933 | # Conflict between --help and --header | ||
25934 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
25935 | Try \`$0 --help' for more information." >&5 | ||
25936 | echo "$as_me: error: ambiguous option: $1 | ||
25937 | Try \`$0 --help' for more information." >&2;} | ||
25938 | { (exit 1); exit 1; }; };; | ||
25939 | --help | --hel | -h ) | ||
25940 | echo "$ac_cs_usage"; exit 0 ;; | ||
25941 | --debug | --d* | -d ) | ||
25942 | debug=: ;; | ||
25943 | --file | --fil | --fi | --f ) | ||
25944 | $ac_shift | ||
25945 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
25946 | ac_need_defaults=false;; | ||
25947 | --header | --heade | --head | --hea ) | ||
25948 | $ac_shift | ||
25949 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
25950 | ac_need_defaults=false;; | ||
25951 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
25952 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
25953 | ac_cs_silent=: ;; | ||
25954 | |||
25955 | # This is an error. | ||
25956 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
25957 | Try \`$0 --help' for more information." >&5 | ||
25958 | echo "$as_me: error: unrecognized option: $1 | ||
25959 | Try \`$0 --help' for more information." >&2;} | ||
25960 | { (exit 1); exit 1; }; } ;; | ||
25961 | |||
25962 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
25963 | |||
25964 | esac | ||
25965 | shift | ||
25966 | done | ||
25967 | |||
25968 | ac_configure_extra_args= | ||
25969 | |||
25970 | if $ac_cs_silent; then | ||
25971 | exec 6>/dev/null | ||
25972 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
25973 | fi | ||
25974 | |||
25975 | _ACEOF | ||
25976 | cat >>$CONFIG_STATUS <<_ACEOF | ||
25977 | if \$ac_cs_recheck; then | ||
25978 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
25979 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
25980 | fi | ||
25981 | |||
25982 | _ACEOF | ||
25983 | |||
25984 | |||
25985 | |||
25986 | |||
25987 | |||
25988 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25989 | for ac_config_target in $ac_config_targets | ||
25990 | do | ||
25991 | case "$ac_config_target" in | ||
25992 | # Handling of arguments. | ||
25993 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
25994 | "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
25995 | "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
25996 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
25997 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
25998 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
25999 | "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
26000 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
26001 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
26002 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
26003 | { (exit 1); exit 1; }; };; | ||
26004 | esac | ||
26005 | done | ||
26006 | |||
26007 | # If the user did not use the arguments to specify the items to instantiate, | ||
26008 | # then the envvar interface is used. Set only those that are not. | ||
26009 | # We use the long form for the default assignment because of an extremely | ||
26010 | # bizarre bug on SunOS 4.1.3. | ||
26011 | if $ac_need_defaults; then | ||
26012 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
26013 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
26014 | fi | ||
26015 | |||
26016 | # Have a temporary directory for convenience. Make it in the build tree | ||
26017 | # simply because there is no reason to put it here, and in addition, | ||
26018 | # creating and moving files from /tmp can sometimes cause problems. | ||
26019 | # Create a temporary directory, and hook for its removal unless debugging. | ||
26020 | $debug || | ||
26021 | { | ||
26022 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
26023 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
26024 | } | ||
26025 | |||
26026 | # Create a (secure) tmp directory for tmp files. | ||
26027 | |||
26028 | { | ||
26029 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
26030 | test -n "$tmp" && test -d "$tmp" | ||
26031 | } || | ||
26032 | { | ||
26033 | tmp=./confstat$$-$RANDOM | ||
26034 | (umask 077 && mkdir $tmp) | ||
26035 | } || | ||
26036 | { | ||
26037 | echo "$me: cannot create a temporary directory in ." >&2 | ||
26038 | { (exit 1); exit 1; } | ||
26039 | } | ||
26040 | |||
26041 | _ACEOF | ||
26042 | |||
26043 | cat >>$CONFIG_STATUS <<_ACEOF | ||
26044 | |||
26045 | # | ||
26046 | # CONFIG_FILES section. | ||
26047 | # | ||
26048 | |||
26049 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
26050 | # This happens for instance when ./config.status config.h | ||
26051 | if test -n "\$CONFIG_FILES"; then | ||
26052 | # Protect against being on the right side of a sed subst in config.status. | ||
26053 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
26054 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
26055 | s,@SHELL@,$SHELL,;t t | ||
26056 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
26057 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
26058 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
26059 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
26060 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
26061 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
26062 | s,@exec_prefix@,$exec_prefix,;t t | ||
26063 | s,@prefix@,$prefix,;t t | ||
26064 | s,@program_transform_name@,$program_transform_name,;t t | ||
26065 | s,@bindir@,$bindir,;t t | ||
26066 | s,@sbindir@,$sbindir,;t t | ||
26067 | s,@libexecdir@,$libexecdir,;t t | ||
26068 | s,@datadir@,$datadir,;t t | ||
26069 | s,@sysconfdir@,$sysconfdir,;t t | ||
26070 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
26071 | s,@localstatedir@,$localstatedir,;t t | ||
26072 | s,@libdir@,$libdir,;t t | ||
26073 | s,@includedir@,$includedir,;t t | ||
26074 | s,@oldincludedir@,$oldincludedir,;t t | ||
26075 | s,@infodir@,$infodir,;t t | ||
26076 | s,@mandir@,$mandir,;t t | ||
26077 | s,@build_alias@,$build_alias,;t t | ||
26078 | s,@host_alias@,$host_alias,;t t | ||
26079 | s,@target_alias@,$target_alias,;t t | ||
26080 | s,@DEFS@,$DEFS,;t t | ||
26081 | s,@ECHO_C@,$ECHO_C,;t t | ||
26082 | s,@ECHO_N@,$ECHO_N,;t t | ||
26083 | s,@ECHO_T@,$ECHO_T,;t t | ||
26084 | s,@LIBS@,$LIBS,;t t | ||
26085 | s,@CC@,$CC,;t t | ||
26086 | s,@CFLAGS@,$CFLAGS,;t t | ||
26087 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
26088 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
26089 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
26090 | s,@EXEEXT@,$EXEEXT,;t t | ||
26091 | s,@OBJEXT@,$OBJEXT,;t t | ||
26092 | s,@build@,$build,;t t | ||
26093 | s,@build_cpu@,$build_cpu,;t t | ||
26094 | s,@build_vendor@,$build_vendor,;t t | ||
26095 | s,@build_os@,$build_os,;t t | ||
26096 | s,@host@,$host,;t t | ||
26097 | s,@host_cpu@,$host_cpu,;t t | ||
26098 | s,@host_vendor@,$host_vendor,;t t | ||
26099 | s,@host_os@,$host_os,;t t | ||
26100 | s,@AWK@,$AWK,;t t | ||
26101 | s,@CPP@,$CPP,;t t | ||
26102 | s,@RANLIB@,$RANLIB,;t t | ||
26103 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
26104 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
26105 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
26106 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
26107 | s,@AR@,$AR,;t t | ||
26108 | s,@CAT@,$CAT,;t t | ||
26109 | s,@KILL@,$KILL,;t t | ||
26110 | s,@PERL@,$PERL,;t t | ||
26111 | s,@SED@,$SED,;t t | ||
26112 | s,@ENT@,$ENT,;t t | ||
26113 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
26114 | s,@SH@,$SH,;t t | ||
26115 | s,@TEST_SHELL@,$TEST_SHELL,;t t | ||
26116 | s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t | ||
26117 | s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t | ||
26118 | s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t | ||
26119 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
26120 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
26121 | s,@LD@,$LD,;t t | ||
26122 | s,@EGREP@,$EGREP,;t t | ||
26123 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
26124 | s,@LIBEDIT@,$LIBEDIT,;t t | ||
26125 | s,@LIBPAM@,$LIBPAM,;t t | ||
26126 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
26127 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
26128 | s,@PROG_LS@,$PROG_LS,;t t | ||
26129 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
26130 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
26131 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
26132 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
26133 | s,@PROG_PS@,$PROG_PS,;t t | ||
26134 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
26135 | s,@PROG_W@,$PROG_W,;t t | ||
26136 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
26137 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
26138 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
26139 | s,@PROG_DF@,$PROG_DF,;t t | ||
26140 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
26141 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
26142 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
26143 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
26144 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
26145 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
26146 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
26147 | s,@xauth_path@,$xauth_path,;t t | ||
26148 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
26149 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
26150 | s,@NROFF@,$NROFF,;t t | ||
26151 | s,@MANTYPE@,$MANTYPE,;t t | ||
26152 | s,@mansubdir@,$mansubdir,;t t | ||
26153 | s,@user_path@,$user_path,;t t | ||
26154 | s,@piddir@,$piddir,;t t | ||
26155 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
26156 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
26157 | CEOF | ||
26158 | |||
26159 | _ACEOF | ||
26160 | |||
26161 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26162 | # Split the substitutions into bite-sized pieces for seds with | ||
26163 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
26164 | ac_max_sed_lines=48 | ||
26165 | ac_sed_frag=1 # Number of current file. | ||
26166 | ac_beg=1 # First line for current file. | ||
26167 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
26168 | ac_more_lines=: | ||
26169 | ac_sed_cmds= | ||
26170 | while $ac_more_lines; do | ||
26171 | if test $ac_beg -gt 1; then | ||
26172 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
26173 | else | ||
26174 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
26175 | fi | ||
26176 | if test ! -s $tmp/subs.frag; then | ||
26177 | ac_more_lines=false | ||
26178 | else | ||
26179 | # The purpose of the label and of the branching condition is to | ||
26180 | # speed up the sed processing (if there are no `@' at all, there | ||
26181 | # is no need to browse any of the substitutions). | ||
26182 | # These are the two extra sed commands mentioned above. | ||
26183 | (echo ':t | ||
26184 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
26185 | if test -z "$ac_sed_cmds"; then | ||
26186 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
26187 | else | ||
26188 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
26189 | fi | ||
26190 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
26191 | ac_beg=$ac_end | ||
26192 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
26193 | fi | ||
26194 | done | ||
26195 | if test -z "$ac_sed_cmds"; then | ||
26196 | ac_sed_cmds=cat | ||
26197 | fi | ||
26198 | fi # test -n "$CONFIG_FILES" | ||
26199 | |||
26200 | _ACEOF | ||
26201 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26202 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
26203 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
26204 | case $ac_file in | ||
26205 | - | *:- | *:-:* ) # input from stdin | ||
26206 | cat >$tmp/stdin | ||
26207 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26208 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26209 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26210 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26211 | * ) ac_file_in=$ac_file.in ;; | ||
26212 | esac | ||
26213 | |||
26214 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
26215 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
26216 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26217 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
26218 | X"$ac_file" : 'X\(//\)$' \| \ | ||
26219 | X"$ac_file" : 'X\(/\)' \| \ | ||
26220 | . : '\(.\)' 2>/dev/null || | ||
26221 | echo X"$ac_file" | | ||
26222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26224 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26225 | /^X\(\/\).*/{ s//\1/; q; } | ||
26226 | s/.*/./; q'` | ||
26227 | { if $as_mkdir_p; then | ||
26228 | mkdir -p "$ac_dir" | ||
26229 | else | ||
26230 | as_dir="$ac_dir" | ||
26231 | as_dirs= | ||
26232 | while test ! -d "$as_dir"; do | ||
26233 | as_dirs="$as_dir $as_dirs" | ||
26234 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
26235 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26236 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
26237 | X"$as_dir" : 'X\(//\)$' \| \ | ||
26238 | X"$as_dir" : 'X\(/\)' \| \ | ||
26239 | . : '\(.\)' 2>/dev/null || | ||
26240 | echo X"$as_dir" | | ||
26241 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26242 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26243 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26244 | /^X\(\/\).*/{ s//\1/; q; } | ||
26245 | s/.*/./; q'` | ||
26246 | done | ||
26247 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
26248 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
26249 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
26250 | { (exit 1); exit 1; }; }; } | ||
26251 | |||
26252 | ac_builddir=. | ||
26253 | |||
26254 | if test "$ac_dir" != .; then | ||
26255 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
26256 | # A "../" for each directory in $ac_dir_suffix. | ||
26257 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
26258 | else | ||
26259 | ac_dir_suffix= ac_top_builddir= | ||
26260 | fi | ||
26261 | |||
26262 | case $srcdir in | ||
26263 | .) # No --srcdir option. We are building in place. | ||
26264 | ac_srcdir=. | ||
26265 | if test -z "$ac_top_builddir"; then | ||
26266 | ac_top_srcdir=. | ||
26267 | else | ||
26268 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
26269 | fi ;; | ||
26270 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
26271 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
26272 | ac_top_srcdir=$srcdir ;; | ||
26273 | *) # Relative path. | ||
26274 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
26275 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
26276 | esac | ||
26277 | |||
26278 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
26279 | # the directories may not exist. | ||
26280 | case `pwd` in | ||
26281 | .) ac_abs_builddir="$ac_dir";; | ||
26282 | *) | ||
26283 | case "$ac_dir" in | ||
26284 | .) ac_abs_builddir=`pwd`;; | ||
26285 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
26286 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
26287 | esac;; | ||
26288 | esac | ||
26289 | case $ac_abs_builddir in | ||
26290 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
26291 | *) | ||
26292 | case ${ac_top_builddir}. in | ||
26293 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
26294 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
26295 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
26296 | esac;; | ||
26297 | esac | ||
26298 | case $ac_abs_builddir in | ||
26299 | .) ac_abs_srcdir=$ac_srcdir;; | ||
26300 | *) | ||
26301 | case $ac_srcdir in | ||
26302 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
26303 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
26304 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
26305 | esac;; | ||
26306 | esac | ||
26307 | case $ac_abs_builddir in | ||
26308 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
26309 | *) | ||
26310 | case $ac_top_srcdir in | ||
26311 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
26312 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
26313 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
26314 | esac;; | ||
26315 | esac | ||
26316 | |||
26317 | |||
26318 | case $INSTALL in | ||
26319 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
26320 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
26321 | esac | ||
26322 | |||
26323 | if test x"$ac_file" != x-; then | ||
26324 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
26325 | echo "$as_me: creating $ac_file" >&6;} | ||
26326 | rm -f "$ac_file" | ||
26327 | fi | ||
26328 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
26329 | # use $as_me), people would be surprised to read: | ||
26330 | # /* config.h. Generated by config.status. */ | ||
26331 | if test x"$ac_file" = x-; then | ||
26332 | configure_input= | ||
26333 | else | ||
26334 | configure_input="$ac_file. " | ||
26335 | fi | ||
26336 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
26337 | sed 's,.*/,,'` by configure." | ||
26338 | |||
26339 | # First look for the input files in the build tree, otherwise in the | ||
26340 | # src tree. | ||
26341 | ac_file_inputs=`IFS=: | ||
26342 | for f in $ac_file_in; do | ||
26343 | case $f in | ||
26344 | -) echo $tmp/stdin ;; | ||
26345 | [\\/$]*) | ||
26346 | # Absolute (can't be DOS-style, as IFS=:) | ||
26347 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26348 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26349 | { (exit 1); exit 1; }; } | ||
26350 | echo "$f";; | ||
26351 | *) # Relative | ||
26352 | if test -f "$f"; then | ||
26353 | # Build tree | ||
26354 | echo "$f" | ||
26355 | elif test -f "$srcdir/$f"; then | ||
26356 | # Source tree | ||
26357 | echo "$srcdir/$f" | ||
26358 | else | ||
26359 | # /dev/null tree | ||
26360 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26361 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26362 | { (exit 1); exit 1; }; } | ||
26363 | fi;; | ||
26364 | esac | ||
26365 | done` || { (exit 1); exit 1; } | ||
26366 | _ACEOF | ||
26367 | cat >>$CONFIG_STATUS <<_ACEOF | ||
26368 | sed "$ac_vpsub | ||
26369 | $extrasub | ||
26370 | _ACEOF | ||
26371 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26372 | :t | ||
26373 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
26374 | s,@configure_input@,$configure_input,;t t | ||
26375 | s,@srcdir@,$ac_srcdir,;t t | ||
26376 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
26377 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
26378 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
26379 | s,@builddir@,$ac_builddir,;t t | ||
26380 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
26381 | s,@top_builddir@,$ac_top_builddir,;t t | ||
26382 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
26383 | s,@INSTALL@,$ac_INSTALL,;t t | ||
26384 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
26385 | rm -f $tmp/stdin | ||
26386 | if test x"$ac_file" != x-; then | ||
26387 | mv $tmp/out $ac_file | ||
26388 | else | ||
26389 | cat $tmp/out | ||
26390 | rm -f $tmp/out | ||
26391 | fi | ||
26392 | |||
26393 | done | ||
26394 | _ACEOF | ||
26395 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26396 | |||
26397 | # | ||
26398 | # CONFIG_HEADER section. | ||
26399 | # | ||
26400 | |||
26401 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
26402 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
26403 | # | ||
26404 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
26405 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
26406 | ac_dB='[ ].*$,\1#\2' | ||
26407 | ac_dC=' ' | ||
26408 | ac_dD=',;t' | ||
26409 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
26410 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
26411 | ac_uB='$,\1#\2define\3' | ||
26412 | ac_uC=' ' | ||
26413 | ac_uD=',;t' | ||
26414 | |||
26415 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
26416 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
26417 | case $ac_file in | ||
26418 | - | *:- | *:-:* ) # input from stdin | ||
26419 | cat >$tmp/stdin | ||
26420 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26421 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26422 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
26423 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
26424 | * ) ac_file_in=$ac_file.in ;; | ||
26425 | esac | ||
26426 | |||
26427 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
26428 | echo "$as_me: creating $ac_file" >&6;} | ||
26429 | |||
26430 | # First look for the input files in the build tree, otherwise in the | ||
26431 | # src tree. | ||
26432 | ac_file_inputs=`IFS=: | ||
26433 | for f in $ac_file_in; do | ||
26434 | case $f in | ||
26435 | -) echo $tmp/stdin ;; | ||
26436 | [\\/$]*) | ||
26437 | # Absolute (can't be DOS-style, as IFS=:) | ||
26438 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26439 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26440 | { (exit 1); exit 1; }; } | ||
26441 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
26442 | echo "$f";; | ||
26443 | *) # Relative | ||
26444 | if test -f "$f"; then | ||
26445 | # Build tree | ||
26446 | echo "$f" | ||
26447 | elif test -f "$srcdir/$f"; then | ||
26448 | # Source tree | ||
26449 | echo "$srcdir/$f" | ||
26450 | else | ||
26451 | # /dev/null tree | ||
26452 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
26453 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
26454 | { (exit 1); exit 1; }; } | ||
26455 | fi;; | ||
26456 | esac | ||
26457 | done` || { (exit 1); exit 1; } | ||
26458 | # Remove the trailing spaces. | ||
26459 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
26460 | |||
26461 | _ACEOF | ||
26462 | |||
26463 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
26464 | # `conftest.undefs', that substitutes the proper values into | ||
26465 | # config.h.in to produce config.h. The first handles `#define' | ||
26466 | # templates, and the second `#undef' templates. | ||
26467 | # And first: Protect against being on the right side of a sed subst in | ||
26468 | # config.status. Protect against being in an unquoted here document | ||
26469 | # in config.status. | ||
26470 | rm -f conftest.defines conftest.undefs | ||
26471 | # Using a here document instead of a string reduces the quoting nightmare. | ||
26472 | # Putting comments in sed scripts is not portable. | ||
26473 | # | ||
26474 | # `end' is used to avoid that the second main sed command (meant for | ||
26475 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
26476 | # See the Autoconf documentation for `clear'. | ||
26477 | cat >confdef2sed.sed <<\_ACEOF | ||
26478 | s/[\\&,]/\\&/g | ||
26479 | s,[\\$`],\\&,g | ||
26480 | t clear | ||
26481 | : clear | ||
26482 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
26483 | t end | ||
26484 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
26485 | : end | ||
26486 | _ACEOF | ||
26487 | # If some macros were called several times there might be several times | ||
26488 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
26489 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
26490 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
26491 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
26492 | rm -f confdef2sed.sed | ||
26493 | |||
26494 | # This sed command replaces #undef with comments. This is necessary, for | ||
26495 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
26496 | # on some systems where configure will not decide to define it. | ||
26497 | cat >>conftest.undefs <<\_ACEOF | ||
26498 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
26499 | _ACEOF | ||
26500 | |||
26501 | # Break up conftest.defines because some shells have a limit on the size | ||
26502 | # of here documents, and old seds have small limits too (100 cmds). | ||
26503 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
26504 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
26505 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
26506 | echo ' :' >>$CONFIG_STATUS | ||
26507 | rm -f conftest.tail | ||
26508 | while grep . conftest.defines >/dev/null | ||
26509 | do | ||
26510 | # Write a limited-size here document to $tmp/defines.sed. | ||
26511 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
26512 | # Speed up: don't consider the non `#define' lines. | ||
26513 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
26514 | # Work around the forget-to-reset-the-flag bug. | ||
26515 | echo 't clr' >>$CONFIG_STATUS | ||
26516 | echo ': clr' >>$CONFIG_STATUS | ||
26517 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
26518 | echo 'CEOF | ||
26519 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
26520 | rm -f $tmp/in | ||
26521 | mv $tmp/out $tmp/in | ||
26522 | ' >>$CONFIG_STATUS | ||
26523 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
26524 | rm -f conftest.defines | ||
26525 | mv conftest.tail conftest.defines | ||
26526 | done | ||
26527 | rm -f conftest.defines | ||
26528 | echo ' fi # grep' >>$CONFIG_STATUS | ||
26529 | echo >>$CONFIG_STATUS | ||
26530 | |||
26531 | # Break up conftest.undefs because some shells have a limit on the size | ||
26532 | # of here documents, and old seds have small limits too (100 cmds). | ||
26533 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
26534 | rm -f conftest.tail | ||
26535 | while grep . conftest.undefs >/dev/null | ||
26536 | do | ||
26537 | # Write a limited-size here document to $tmp/undefs.sed. | ||
26538 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
26539 | # Speed up: don't consider the non `#undef' | ||
26540 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
26541 | # Work around the forget-to-reset-the-flag bug. | ||
26542 | echo 't clr' >>$CONFIG_STATUS | ||
26543 | echo ': clr' >>$CONFIG_STATUS | ||
26544 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
26545 | echo 'CEOF | ||
26546 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
26547 | rm -f $tmp/in | ||
26548 | mv $tmp/out $tmp/in | ||
26549 | ' >>$CONFIG_STATUS | ||
26550 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
26551 | rm -f conftest.undefs | ||
26552 | mv conftest.tail conftest.undefs | ||
26553 | done | ||
26554 | rm -f conftest.undefs | ||
26555 | |||
26556 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26557 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
26558 | # use $as_me), people would be surprised to read: | ||
26559 | # /* config.h. Generated by config.status. */ | ||
26560 | if test x"$ac_file" = x-; then | ||
26561 | echo "/* Generated by configure. */" >$tmp/config.h | ||
26562 | else | ||
26563 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
26564 | fi | ||
26565 | cat $tmp/in >>$tmp/config.h | ||
26566 | rm -f $tmp/in | ||
26567 | if test x"$ac_file" != x-; then | ||
26568 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
26569 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
26570 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
26571 | else | ||
26572 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
26573 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26574 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
26575 | X"$ac_file" : 'X\(//\)$' \| \ | ||
26576 | X"$ac_file" : 'X\(/\)' \| \ | ||
26577 | . : '\(.\)' 2>/dev/null || | ||
26578 | echo X"$ac_file" | | ||
26579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26580 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26581 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26582 | /^X\(\/\).*/{ s//\1/; q; } | ||
26583 | s/.*/./; q'` | ||
26584 | { if $as_mkdir_p; then | ||
26585 | mkdir -p "$ac_dir" | ||
26586 | else | ||
26587 | as_dir="$ac_dir" | ||
26588 | as_dirs= | ||
26589 | while test ! -d "$as_dir"; do | ||
26590 | as_dirs="$as_dir $as_dirs" | ||
26591 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
26592 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
26593 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
26594 | X"$as_dir" : 'X\(//\)$' \| \ | ||
26595 | X"$as_dir" : 'X\(/\)' \| \ | ||
26596 | . : '\(.\)' 2>/dev/null || | ||
26597 | echo X"$as_dir" | | ||
26598 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
26599 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
26600 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
26601 | /^X\(\/\).*/{ s//\1/; q; } | ||
26602 | s/.*/./; q'` | ||
26603 | done | ||
26604 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
26605 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
26606 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
26607 | { (exit 1); exit 1; }; }; } | ||
26608 | |||
26609 | rm -f $ac_file | ||
26610 | mv $tmp/config.h $ac_file | ||
26611 | fi | ||
26612 | else | ||
26613 | cat $tmp/config.h | ||
26614 | rm -f $tmp/config.h | ||
26615 | fi | ||
26616 | done | ||
26617 | _ACEOF | ||
26618 | |||
26619 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
26620 | |||
26621 | { (exit 0); exit 0; } | ||
26622 | _ACEOF | ||
26623 | chmod +x $CONFIG_STATUS | ||
26624 | ac_clean_files=$ac_clean_files_save | ||
26625 | |||
26626 | |||
26627 | # configure is writing to config.log, and then calls config.status. | ||
26628 | # config.status does its own redirection, appending to config.log. | ||
26629 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
26630 | # by configure, so config.status won't be able to write to it; its | ||
26631 | # output is simply discarded. So we exec the FD to /dev/null, | ||
26632 | # effectively closing config.log, so it can be properly (re)opened and | ||
26633 | # appended to by config.status. When coming back to configure, we | ||
26634 | # need to make the FD available again. | ||
26635 | if test "$no_create" != yes; then | ||
26636 | ac_cs_success=: | ||
26637 | ac_config_status_args= | ||
26638 | test "$silent" = yes && | ||
26639 | ac_config_status_args="$ac_config_status_args --quiet" | ||
26640 | exec 5>/dev/null | ||
26641 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
26642 | exec 5>>config.log | ||
26643 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
26644 | # would make configure fail if this is the last instruction. | ||
26645 | $ac_cs_success || { (exit 1); exit 1; } | ||
26646 | fi | ||
26647 | |||
26648 | |||
26649 | # Print summary of options | ||
26650 | |||
26651 | # Someone please show me a better way :) | ||
26652 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
26653 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
26654 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
26655 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
26656 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
26657 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
26658 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
26659 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
26660 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
26661 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
26662 | |||
26663 | echo "" | ||
26664 | echo "OpenSSH has been configured with the following options:" | ||
26665 | echo " User binaries: $B" | ||
26666 | echo " System binaries: $C" | ||
26667 | echo " Configuration files: $D" | ||
26668 | echo " Askpass program: $E" | ||
26669 | echo " Manual pages: $F" | ||
26670 | echo " PID file: $G" | ||
26671 | echo " Privilege separation chroot path: $H" | ||
26672 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
26673 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
26674 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
26675 | else | ||
26676 | echo " sshd default user PATH: $I" | ||
26677 | if test ! -z "$external_path_file"; then | ||
26678 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
26679 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
26680 | fi | ||
26681 | fi | ||
26682 | if test ! -z "$superuser_path" ; then | ||
26683 | echo " sshd superuser user PATH: $J" | ||
26684 | fi | ||
26685 | echo " Manpage format: $MANTYPE" | ||
26686 | echo " PAM support: $PAM_MSG" | ||
26687 | echo " KerberosV support: $KRB5_MSG" | ||
26688 | echo " Smartcard support: $SCARD_MSG" | ||
26689 | echo " S/KEY support: $SKEY_MSG" | ||
26690 | echo " TCP Wrappers support: $TCPW_MSG" | ||
26691 | echo " MD5 password support: $MD5_MSG" | ||
26692 | echo " libedit support: $LIBEDIT_MSG" | ||
26693 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
26694 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
26695 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
26696 | echo " Random number source: $RAND_MSG" | ||
26697 | if test ! -z "$USE_RAND_HELPER" ; then | ||
26698 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
26699 | fi | ||
26700 | |||
26701 | echo "" | ||
26702 | |||
26703 | echo " Host: ${host}" | ||
26704 | echo " Compiler: ${CC}" | ||
26705 | echo " Compiler flags: ${CFLAGS}" | ||
26706 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
26707 | echo " Linker flags: ${LDFLAGS}" | ||
26708 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
26709 | |||
26710 | echo "" | ||
26711 | |||
26712 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
26713 | echo "SVR4 style packages are supported with \"make package\"" | ||
26714 | echo "" | ||
26715 | fi | ||
26716 | |||
26717 | if test "x$PAM_MSG" = "xyes" ; then | ||
26718 | echo "PAM is enabled. You may need to install a PAM control file " | ||
26719 | echo "for sshd, otherwise password authentication may fail. " | ||
26720 | echo "Example PAM control files can be found in the contrib/ " | ||
26721 | echo "subdirectory" | ||
26722 | echo "" | ||
26723 | fi | ||
26724 | |||
26725 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
26726 | echo "WARNING: you are using the builtin random number collection " | ||
26727 | echo "service. Please read WARNING.RNG and request that your OS " | ||
26728 | echo "vendor includes kernel-based random number collection in " | ||
26729 | echo "future versions of your OS." | ||
26730 | echo "" | ||
26731 | fi | ||
26732 | |||
26733 | if test ! -z "$NO_PEERCHECK" ; then | ||
26734 | echo "WARNING: the operating system that you are using does not " | ||
26735 | echo "appear to support either the getpeereid() API nor the " | ||
26736 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
26737 | echo "enforce security checks to prevent unauthorised connections to " | ||
26738 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
26739 | echo "user can connect to your agent. " | ||
26740 | echo "" | ||
26741 | fi | ||
26742 | |||
26743 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
26744 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
26745 | echo "See the Solaris section in README.platform for details." | ||
26746 | fi | ||