diff options
author | Colin Watson <cjwatson@debian.org> | 2005-01-04 12:58:23 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-01-04 12:58:23 +0000 |
commit | ebd2ce335af5861020c79fddb1ae35c03bf036cf (patch) | |
tree | ec008b93c62e3241ab611d8c949ebc92905c66b4 /configure | |
parent | e17cc75fe35f62ba52928b5889b5e7aadb62bedb (diff) | |
parent | 16f1d21ea191deaaeeba719d01c0ad82aa044653 (diff) |
Import OpenSSH 3.9p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 25166 |
1 files changed, 25166 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..0c85e42ad --- /dev/null +++ b/configure | |||
@@ -0,0 +1,25166 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.59. | ||
4 | # | ||
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
6 | # This configure script is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy, distribute and modify it. | ||
8 | ## --------------------- ## | ||
9 | ## M4sh Initialization. ## | ||
10 | ## --------------------- ## | ||
11 | |||
12 | # Be Bourne compatible | ||
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
14 | emulate sh | ||
15 | NULLCMD=: | ||
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
17 | # is contrary to our usage. Disable this feature. | ||
18 | alias -g '${1+"$@"}'='"$@"' | ||
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
20 | set -o posix | ||
21 | fi | ||
22 | DUALCASE=1; export DUALCASE # for MKS sh | ||
23 | |||
24 | # Support unset when possible. | ||
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
26 | as_unset=unset | ||
27 | else | ||
28 | as_unset=false | ||
29 | fi | ||
30 | |||
31 | |||
32 | # Work around bugs in pre-3.0 UWIN ksh. | ||
33 | $as_unset ENV MAIL MAILPATH | ||
34 | PS1='$ ' | ||
35 | PS2='> ' | ||
36 | PS4='+ ' | ||
37 | |||
38 | # NLS nuisances. | ||
39 | for as_var in \ | ||
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
42 | LC_TELEPHONE LC_TIME | ||
43 | do | ||
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
45 | eval $as_var=C; export $as_var | ||
46 | else | ||
47 | $as_unset $as_var | ||
48 | fi | ||
49 | done | ||
50 | |||
51 | # Required to use basename. | ||
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
53 | as_expr=expr | ||
54 | else | ||
55 | as_expr=false | ||
56 | fi | ||
57 | |||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
59 | as_basename=basename | ||
60 | else | ||
61 | as_basename=false | ||
62 | fi | ||
63 | |||
64 | |||
65 | # Name of the executable. | ||
66 | as_me=`$as_basename "$0" || | ||
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
68 | X"$0" : 'X\(//\)$' \| \ | ||
69 | X"$0" : 'X\(/\)$' \| \ | ||
70 | . : '\(.\)' 2>/dev/null || | ||
71 | echo X/"$0" | | ||
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
74 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
75 | s/.*/./; q'` | ||
76 | |||
77 | |||
78 | # PATH needs CR, and LINENO needs CR and PATH. | ||
79 | # Avoid depending upon Character Ranges. | ||
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
83 | as_cr_digits='0123456789' | ||
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
85 | |||
86 | # The user is always right. | ||
87 | if test "${PATH_SEPARATOR+set}" != set; then | ||
88 | echo "#! /bin/sh" >conf$$.sh | ||
89 | echo "exit 0" >>conf$$.sh | ||
90 | chmod +x conf$$.sh | ||
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
92 | PATH_SEPARATOR=';' | ||
93 | else | ||
94 | PATH_SEPARATOR=: | ||
95 | fi | ||
96 | rm -f conf$$.sh | ||
97 | fi | ||
98 | |||
99 | |||
100 | as_lineno_1=$LINENO | ||
101 | as_lineno_2=$LINENO | ||
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
105 | # Find who we are. Look in the path if we contain no path at all | ||
106 | # relative or not. | ||
107 | case $0 in | ||
108 | *[\\/]* ) as_myself=$0 ;; | ||
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
110 | for as_dir in $PATH | ||
111 | do | ||
112 | IFS=$as_save_IFS | ||
113 | test -z "$as_dir" && as_dir=. | ||
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
115 | done | ||
116 | |||
117 | ;; | ||
118 | esac | ||
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
120 | # in which case we are not to be found in the path. | ||
121 | if test "x$as_myself" = x; then | ||
122 | as_myself=$0 | ||
123 | fi | ||
124 | if test ! -f "$as_myself"; then | ||
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
126 | { (exit 1); exit 1; }; } | ||
127 | fi | ||
128 | case $CONFIG_SHELL in | ||
129 | '') | ||
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
132 | do | ||
133 | IFS=$as_save_IFS | ||
134 | test -z "$as_dir" && as_dir=. | ||
135 | for as_base in sh bash ksh sh5; do | ||
136 | case $as_dir in | ||
137 | /*) | ||
138 | if ("$as_dir/$as_base" -c ' | ||
139 | as_lineno_1=$LINENO | ||
140 | as_lineno_2=$LINENO | ||
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
146 | CONFIG_SHELL=$as_dir/$as_base | ||
147 | export CONFIG_SHELL | ||
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
149 | fi;; | ||
150 | esac | ||
151 | done | ||
152 | done | ||
153 | ;; | ||
154 | esac | ||
155 | |||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
157 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
158 | # line-number line before each line; the second 'sed' does the real | ||
159 | # work. The second script uses 'N' to pair each line-number line | ||
160 | # with the numbered line, and appends trailing '-' during | ||
161 | # substitution so that $LINENO is not a special case at line end. | ||
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
164 | sed '=' <$as_myself | | ||
165 | sed ' | ||
166 | N | ||
167 | s,$,-, | ||
168 | : loop | ||
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
170 | t loop | ||
171 | s,-$,, | ||
172 | s,^['$as_cr_digits']*\n,, | ||
173 | ' >$as_me.lineno && | ||
174 | chmod +x $as_me.lineno || | ||
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
176 | { (exit 1); exit 1; }; } | ||
177 | |||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
179 | # (the dirname of $[0] is not the place where we might find the | ||
180 | # original and so on. Autoconf is especially sensible to this). | ||
181 | . ./$as_me.lineno | ||
182 | # Exit status is that of the last command. | ||
183 | exit | ||
184 | } | ||
185 | |||
186 | |||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
188 | *c*,-n*) ECHO_N= ECHO_C=' | ||
189 | ' ECHO_T=' ' ;; | ||
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
192 | esac | ||
193 | |||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
195 | as_expr=expr | ||
196 | else | ||
197 | as_expr=false | ||
198 | fi | ||
199 | |||
200 | rm -f conf$$ conf$$.exe conf$$.file | ||
201 | echo >conf$$.file | ||
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
203 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
205 | if test -f conf$$.exe; then | ||
206 | # Don't use ln at all; we don't have any links | ||
207 | as_ln_s='cp -p' | ||
208 | else | ||
209 | as_ln_s='ln -s' | ||
210 | fi | ||
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
212 | as_ln_s=ln | ||
213 | else | ||
214 | as_ln_s='cp -p' | ||
215 | fi | ||
216 | rm -f conf$$ conf$$.exe conf$$.file | ||
217 | |||
218 | if mkdir -p . 2>/dev/null; then | ||
219 | as_mkdir_p=: | ||
220 | else | ||
221 | test -d ./-p && rmdir ./-p | ||
222 | as_mkdir_p=false | ||
223 | fi | ||
224 | |||
225 | as_executable_p="test -f" | ||
226 | |||
227 | # Sed expression to map a string onto a valid CPP name. | ||
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
229 | |||
230 | # Sed expression to map a string onto a valid variable name. | ||
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
232 | |||
233 | |||
234 | # IFS | ||
235 | # We need space, tab and new line, in precisely that order. | ||
236 | as_nl=' | ||
237 | ' | ||
238 | IFS=" $as_nl" | ||
239 | |||
240 | # CDPATH. | ||
241 | $as_unset CDPATH | ||
242 | |||
243 | |||
244 | # Name of the host. | ||
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
246 | # so uname gets run too. | ||
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
248 | |||
249 | exec 6>&1 | ||
250 | |||
251 | # | ||
252 | # Initializations. | ||
253 | # | ||
254 | ac_default_prefix=/usr/local | ||
255 | ac_config_libobj_dir=. | ||
256 | cross_compiling=no | ||
257 | subdirs= | ||
258 | MFLAGS= | ||
259 | MAKEFLAGS= | ||
260 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
261 | |||
262 | # Maximum number of lines to put in a shell here document. | ||
263 | # This variable seems obsolete. It should probably be removed, and | ||
264 | # only ac_max_sed_lines should be used. | ||
265 | : ${ac_max_here_lines=38} | ||
266 | |||
267 | # Identity of this package. | ||
268 | PACKAGE_NAME= | ||
269 | PACKAGE_TARNAME= | ||
270 | PACKAGE_VERSION= | ||
271 | PACKAGE_STRING= | ||
272 | PACKAGE_BUGREPORT= | ||
273 | |||
274 | ac_unique_file="ssh.c" | ||
275 | # Factoring default headers for most tests. | ||
276 | ac_includes_default="\ | ||
277 | #include <stdio.h> | ||
278 | #if HAVE_SYS_TYPES_H | ||
279 | # include <sys/types.h> | ||
280 | #endif | ||
281 | #if HAVE_SYS_STAT_H | ||
282 | # include <sys/stat.h> | ||
283 | #endif | ||
284 | #if STDC_HEADERS | ||
285 | # include <stdlib.h> | ||
286 | # include <stddef.h> | ||
287 | #else | ||
288 | # if HAVE_STDLIB_H | ||
289 | # include <stdlib.h> | ||
290 | # endif | ||
291 | #endif | ||
292 | #if HAVE_STRING_H | ||
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
294 | # include <memory.h> | ||
295 | # endif | ||
296 | # include <string.h> | ||
297 | #endif | ||
298 | #if HAVE_STRINGS_H | ||
299 | # include <strings.h> | ||
300 | #endif | ||
301 | #if HAVE_INTTYPES_H | ||
302 | # include <inttypes.h> | ||
303 | #else | ||
304 | # if HAVE_STDINT_H | ||
305 | # include <stdint.h> | ||
306 | # endif | ||
307 | #endif | ||
308 | #if HAVE_UNISTD_H | ||
309 | # include <unistd.h> | ||
310 | #endif" | ||
311 | |||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os AWK CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD EGREP LIBWRAP LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIBOBJS LTLIBOBJS' | ||
313 | ac_subst_files='' | ||
314 | |||
315 | # Initialize some variables set by options. | ||
316 | ac_init_help= | ||
317 | ac_init_version=false | ||
318 | # The variables have the same names as the options, with | ||
319 | # dashes changed to underlines. | ||
320 | cache_file=/dev/null | ||
321 | exec_prefix=NONE | ||
322 | no_create= | ||
323 | no_recursion= | ||
324 | prefix=NONE | ||
325 | program_prefix=NONE | ||
326 | program_suffix=NONE | ||
327 | program_transform_name=s,x,x, | ||
328 | silent= | ||
329 | site= | ||
330 | srcdir= | ||
331 | verbose= | ||
332 | x_includes=NONE | ||
333 | x_libraries=NONE | ||
334 | |||
335 | # Installation directory options. | ||
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
337 | # and all the variables that are supposed to be based on exec_prefix | ||
338 | # by default will actually change. | ||
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
340 | bindir='${exec_prefix}/bin' | ||
341 | sbindir='${exec_prefix}/sbin' | ||
342 | libexecdir='${exec_prefix}/libexec' | ||
343 | datadir='${prefix}/share' | ||
344 | sysconfdir='${prefix}/etc' | ||
345 | sharedstatedir='${prefix}/com' | ||
346 | localstatedir='${prefix}/var' | ||
347 | libdir='${exec_prefix}/lib' | ||
348 | includedir='${prefix}/include' | ||
349 | oldincludedir='/usr/include' | ||
350 | infodir='${prefix}/info' | ||
351 | mandir='${prefix}/man' | ||
352 | |||
353 | ac_prev= | ||
354 | for ac_option | ||
355 | do | ||
356 | # If the previous option needs an argument, assign it. | ||
357 | if test -n "$ac_prev"; then | ||
358 | eval "$ac_prev=\$ac_option" | ||
359 | ac_prev= | ||
360 | continue | ||
361 | fi | ||
362 | |||
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
364 | |||
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
366 | |||
367 | case $ac_option in | ||
368 | |||
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
370 | ac_prev=bindir ;; | ||
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
372 | bindir=$ac_optarg ;; | ||
373 | |||
374 | -build | --build | --buil | --bui | --bu) | ||
375 | ac_prev=build_alias ;; | ||
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
377 | build_alias=$ac_optarg ;; | ||
378 | |||
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
381 | ac_prev=cache_file ;; | ||
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
384 | cache_file=$ac_optarg ;; | ||
385 | |||
386 | --config-cache | -C) | ||
387 | cache_file=config.cache ;; | ||
388 | |||
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
390 | ac_prev=datadir ;; | ||
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
392 | | --da=*) | ||
393 | datadir=$ac_optarg ;; | ||
394 | |||
395 | -disable-* | --disable-*) | ||
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
397 | # Reject names that are not valid shell variable names. | ||
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
400 | { (exit 1); exit 1; }; } | ||
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
402 | eval "enable_$ac_feature=no" ;; | ||
403 | |||
404 | -enable-* | --enable-*) | ||
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
406 | # Reject names that are not valid shell variable names. | ||
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
409 | { (exit 1); exit 1; }; } | ||
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
411 | case $ac_option in | ||
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
413 | *) ac_optarg=yes ;; | ||
414 | esac | ||
415 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
416 | |||
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
419 | | --exec | --exe | --ex) | ||
420 | ac_prev=exec_prefix ;; | ||
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
423 | | --exec=* | --exe=* | --ex=*) | ||
424 | exec_prefix=$ac_optarg ;; | ||
425 | |||
426 | -gas | --gas | --ga | --g) | ||
427 | # Obsolete; use --with-gas. | ||
428 | with_gas=yes ;; | ||
429 | |||
430 | -help | --help | --hel | --he | -h) | ||
431 | ac_init_help=long ;; | ||
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
433 | ac_init_help=recursive ;; | ||
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
435 | ac_init_help=short ;; | ||
436 | |||
437 | -host | --host | --hos | --ho) | ||
438 | ac_prev=host_alias ;; | ||
439 | -host=* | --host=* | --hos=* | --ho=*) | ||
440 | host_alias=$ac_optarg ;; | ||
441 | |||
442 | -includedir | --includedir | --includedi | --included | --include \ | ||
443 | | --includ | --inclu | --incl | --inc) | ||
444 | ac_prev=includedir ;; | ||
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
447 | includedir=$ac_optarg ;; | ||
448 | |||
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
450 | ac_prev=infodir ;; | ||
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
452 | infodir=$ac_optarg ;; | ||
453 | |||
454 | -libdir | --libdir | --libdi | --libd) | ||
455 | ac_prev=libdir ;; | ||
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
457 | libdir=$ac_optarg ;; | ||
458 | |||
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
460 | | --libexe | --libex | --libe) | ||
461 | ac_prev=libexecdir ;; | ||
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
463 | | --libexe=* | --libex=* | --libe=*) | ||
464 | libexecdir=$ac_optarg ;; | ||
465 | |||
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
467 | | --localstate | --localstat | --localsta | --localst \ | ||
468 | | --locals | --local | --loca | --loc | --lo) | ||
469 | ac_prev=localstatedir ;; | ||
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
473 | localstatedir=$ac_optarg ;; | ||
474 | |||
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
476 | ac_prev=mandir ;; | ||
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
478 | mandir=$ac_optarg ;; | ||
479 | |||
480 | -nfp | --nfp | --nf) | ||
481 | # Obsolete; use --without-fp. | ||
482 | with_fp=no ;; | ||
483 | |||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
485 | | --no-cr | --no-c | -n) | ||
486 | no_create=yes ;; | ||
487 | |||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
490 | no_recursion=yes ;; | ||
491 | |||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
494 | | --oldin | --oldi | --old | --ol | --o) | ||
495 | ac_prev=oldincludedir ;; | ||
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
499 | oldincludedir=$ac_optarg ;; | ||
500 | |||
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
502 | ac_prev=prefix ;; | ||
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
504 | prefix=$ac_optarg ;; | ||
505 | |||
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
507 | | --program-pre | --program-pr | --program-p) | ||
508 | ac_prev=program_prefix ;; | ||
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
511 | program_prefix=$ac_optarg ;; | ||
512 | |||
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
514 | | --program-suf | --program-su | --program-s) | ||
515 | ac_prev=program_suffix ;; | ||
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
518 | program_suffix=$ac_optarg ;; | ||
519 | |||
520 | -program-transform-name | --program-transform-name \ | ||
521 | | --program-transform-nam | --program-transform-na \ | ||
522 | | --program-transform-n | --program-transform- \ | ||
523 | | --program-transform | --program-transfor \ | ||
524 | | --program-transfo | --program-transf \ | ||
525 | | --program-trans | --program-tran \ | ||
526 | | --progr-tra | --program-tr | --program-t) | ||
527 | ac_prev=program_transform_name ;; | ||
528 | -program-transform-name=* | --program-transform-name=* \ | ||
529 | | --program-transform-nam=* | --program-transform-na=* \ | ||
530 | | --program-transform-n=* | --program-transform-=* \ | ||
531 | | --program-transform=* | --program-transfor=* \ | ||
532 | | --program-transfo=* | --program-transf=* \ | ||
533 | | --program-trans=* | --program-tran=* \ | ||
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
535 | program_transform_name=$ac_optarg ;; | ||
536 | |||
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
538 | | -silent | --silent | --silen | --sile | --sil) | ||
539 | silent=yes ;; | ||
540 | |||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
542 | ac_prev=sbindir ;; | ||
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
544 | | --sbi=* | --sb=*) | ||
545 | sbindir=$ac_optarg ;; | ||
546 | |||
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
549 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
550 | | --sha | --sh) | ||
551 | ac_prev=sharedstatedir ;; | ||
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
555 | | --sha=* | --sh=*) | ||
556 | sharedstatedir=$ac_optarg ;; | ||
557 | |||
558 | -site | --site | --sit) | ||
559 | ac_prev=site ;; | ||
560 | -site=* | --site=* | --sit=*) | ||
561 | site=$ac_optarg ;; | ||
562 | |||
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
564 | ac_prev=srcdir ;; | ||
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
566 | srcdir=$ac_optarg ;; | ||
567 | |||
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
569 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
570 | ac_prev=sysconfdir ;; | ||
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
573 | sysconfdir=$ac_optarg ;; | ||
574 | |||
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
576 | ac_prev=target_alias ;; | ||
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
578 | target_alias=$ac_optarg ;; | ||
579 | |||
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
581 | verbose=yes ;; | ||
582 | |||
583 | -version | --version | --versio | --versi | --vers | -V) | ||
584 | ac_init_version=: ;; | ||
585 | |||
586 | -with-* | --with-*) | ||
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
588 | # Reject names that are not valid shell variable names. | ||
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
591 | { (exit 1); exit 1; }; } | ||
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
593 | case $ac_option in | ||
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
595 | *) ac_optarg=yes ;; | ||
596 | esac | ||
597 | eval "with_$ac_package='$ac_optarg'" ;; | ||
598 | |||
599 | -without-* | --without-*) | ||
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
601 | # Reject names that are not valid shell variable names. | ||
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
604 | { (exit 1); exit 1; }; } | ||
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
606 | eval "with_$ac_package=no" ;; | ||
607 | |||
608 | --x) | ||
609 | # Obsolete; use --with-x. | ||
610 | with_x=yes ;; | ||
611 | |||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
613 | | --x-incl | --x-inc | --x-in | --x-i) | ||
614 | ac_prev=x_includes ;; | ||
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
617 | x_includes=$ac_optarg ;; | ||
618 | |||
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
621 | ac_prev=x_libraries ;; | ||
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
624 | x_libraries=$ac_optarg ;; | ||
625 | |||
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
627 | Try \`$0 --help' for more information." >&2 | ||
628 | { (exit 1); exit 1; }; } | ||
629 | ;; | ||
630 | |||
631 | *=*) | ||
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
633 | # Reject names that are not valid shell variable names. | ||
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
636 | { (exit 1); exit 1; }; } | ||
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
638 | eval "$ac_envvar='$ac_optarg'" | ||
639 | export $ac_envvar ;; | ||
640 | |||
641 | *) | ||
642 | # FIXME: should be removed in autoconf 3.0. | ||
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
647 | ;; | ||
648 | |||
649 | esac | ||
650 | done | ||
651 | |||
652 | if test -n "$ac_prev"; then | ||
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
655 | { (exit 1); exit 1; }; } | ||
656 | fi | ||
657 | |||
658 | # Be sure to have absolute paths. | ||
659 | for ac_var in exec_prefix prefix | ||
660 | do | ||
661 | eval ac_val=$`echo $ac_var` | ||
662 | case $ac_val in | ||
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
665 | { (exit 1); exit 1; }; };; | ||
666 | esac | ||
667 | done | ||
668 | |||
669 | # Be sure to have absolute paths. | ||
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
671 | localstatedir libdir includedir oldincludedir infodir mandir | ||
672 | do | ||
673 | eval ac_val=$`echo $ac_var` | ||
674 | case $ac_val in | ||
675 | [\\/$]* | ?:[\\/]* ) ;; | ||
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
677 | { (exit 1); exit 1; }; };; | ||
678 | esac | ||
679 | done | ||
680 | |||
681 | # There might be people who depend on the old broken behavior: `$host' | ||
682 | # used to hold the argument of --host etc. | ||
683 | # FIXME: To remove some day. | ||
684 | build=$build_alias | ||
685 | host=$host_alias | ||
686 | target=$target_alias | ||
687 | |||
688 | # FIXME: To remove some day. | ||
689 | if test "x$host_alias" != x; then | ||
690 | if test "x$build_alias" = x; then | ||
691 | cross_compiling=maybe | ||
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
694 | elif test "x$build_alias" != "x$host_alias"; then | ||
695 | cross_compiling=yes | ||
696 | fi | ||
697 | fi | ||
698 | |||
699 | ac_tool_prefix= | ||
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
701 | |||
702 | test "$silent" = yes && exec 6>/dev/null | ||
703 | |||
704 | |||
705 | # Find the source files, if location was not specified. | ||
706 | if test -z "$srcdir"; then | ||
707 | ac_srcdir_defaulted=yes | ||
708 | # Try the directory containing this script, then its parent. | ||
709 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
711 | X"$0" : 'X\(//\)[^/]' \| \ | ||
712 | X"$0" : 'X\(//\)$' \| \ | ||
713 | X"$0" : 'X\(/\)' \| \ | ||
714 | . : '\(.\)' 2>/dev/null || | ||
715 | echo X"$0" | | ||
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
718 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
719 | /^X\(\/\).*/{ s//\1/; q; } | ||
720 | s/.*/./; q'` | ||
721 | srcdir=$ac_confdir | ||
722 | if test ! -r $srcdir/$ac_unique_file; then | ||
723 | srcdir=.. | ||
724 | fi | ||
725 | else | ||
726 | ac_srcdir_defaulted=no | ||
727 | fi | ||
728 | if test ! -r $srcdir/$ac_unique_file; then | ||
729 | if test "$ac_srcdir_defaulted" = yes; then | ||
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
731 | { (exit 1); exit 1; }; } | ||
732 | else | ||
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
734 | { (exit 1); exit 1; }; } | ||
735 | fi | ||
736 | fi | ||
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
739 | { (exit 1); exit 1; }; } | ||
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
741 | ac_env_build_alias_set=${build_alias+set} | ||
742 | ac_env_build_alias_value=$build_alias | ||
743 | ac_cv_env_build_alias_set=${build_alias+set} | ||
744 | ac_cv_env_build_alias_value=$build_alias | ||
745 | ac_env_host_alias_set=${host_alias+set} | ||
746 | ac_env_host_alias_value=$host_alias | ||
747 | ac_cv_env_host_alias_set=${host_alias+set} | ||
748 | ac_cv_env_host_alias_value=$host_alias | ||
749 | ac_env_target_alias_set=${target_alias+set} | ||
750 | ac_env_target_alias_value=$target_alias | ||
751 | ac_cv_env_target_alias_set=${target_alias+set} | ||
752 | ac_cv_env_target_alias_value=$target_alias | ||
753 | ac_env_CC_set=${CC+set} | ||
754 | ac_env_CC_value=$CC | ||
755 | ac_cv_env_CC_set=${CC+set} | ||
756 | ac_cv_env_CC_value=$CC | ||
757 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
758 | ac_env_CFLAGS_value=$CFLAGS | ||
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
760 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
762 | ac_env_LDFLAGS_value=$LDFLAGS | ||
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
769 | ac_env_CPP_set=${CPP+set} | ||
770 | ac_env_CPP_value=$CPP | ||
771 | ac_cv_env_CPP_set=${CPP+set} | ||
772 | ac_cv_env_CPP_value=$CPP | ||
773 | |||
774 | # | ||
775 | # Report the --help message. | ||
776 | # | ||
777 | if test "$ac_init_help" = "long"; then | ||
778 | # Omit some internal or obsolete options to make the list less imposing. | ||
779 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
780 | cat <<_ACEOF | ||
781 | \`configure' configures this package to adapt to many kinds of systems. | ||
782 | |||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
784 | |||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
787 | |||
788 | Defaults for the options are specified in brackets. | ||
789 | |||
790 | Configuration: | ||
791 | -h, --help display this help and exit | ||
792 | --help=short display options specific to this package | ||
793 | --help=recursive display the short help of all the included packages | ||
794 | -V, --version display version information and exit | ||
795 | -q, --quiet, --silent do not print \`checking...' messages | ||
796 | --cache-file=FILE cache test results in FILE [disabled] | ||
797 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
798 | -n, --no-create do not create output files | ||
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
800 | |||
801 | _ACEOF | ||
802 | |||
803 | cat <<_ACEOF | ||
804 | Installation directories: | ||
805 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
806 | [$ac_default_prefix] | ||
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
808 | [PREFIX] | ||
809 | |||
810 | By default, \`make install' will install all the files in | ||
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
813 | for instance \`--prefix=\$HOME'. | ||
814 | |||
815 | For better control, use the options below. | ||
816 | |||
817 | Fine tuning of the installation directories: | ||
818 | --bindir=DIR user executables [EPREFIX/bin] | ||
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
825 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
826 | --includedir=DIR C header files [PREFIX/include] | ||
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
828 | --infodir=DIR info documentation [PREFIX/info] | ||
829 | --mandir=DIR man documentation [PREFIX/man] | ||
830 | _ACEOF | ||
831 | |||
832 | cat <<\_ACEOF | ||
833 | |||
834 | System types: | ||
835 | --build=BUILD configure for building on BUILD [guessed] | ||
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
837 | _ACEOF | ||
838 | fi | ||
839 | |||
840 | if test -n "$ac_init_help"; then | ||
841 | |||
842 | cat <<\_ACEOF | ||
843 | |||
844 | Optional Features: | ||
845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
847 | --disable-largefile omit support for large files | ||
848 | --disable-strip Disable calling strip(1) on install | ||
849 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
850 | --disable-lastlog disable use of lastlog even if detected no | ||
851 | --disable-utmp disable use of utmp even if detected no | ||
852 | --disable-utmpx disable use of utmpx even if detected no | ||
853 | --disable-wtmp disable use of wtmp even if detected no | ||
854 | --disable-wtmpx disable use of wtmpx even if detected no | ||
855 | --disable-libutil disable use of libutil (login() etc.) no | ||
856 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
857 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
858 | |||
859 | Optional Packages: | ||
860 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
861 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
862 | --without-rpath Disable auto-added -R linker paths | ||
863 | --with-osfsia Enable Digital Unix SIA | ||
864 | --with-cflags Specify additional flags to pass to compiler | ||
865 | --with-cppflags Specify additional flags to pass to preprocessor | ||
866 | --with-ldflags Specify additional flags to pass to linker | ||
867 | --with-libs Specify additional libraries to link with | ||
868 | --with-zlib=PATH Use zlib in PATH | ||
869 | --without-zlib-version-check Disable zlib version check | ||
870 | --with-skey[=PATH] Enable S/Key support | ||
871 | (optionally in PATH) | ||
872 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | ||
873 | (optionally in PATH) | ||
874 | --with-pam Enable PAM support | ||
875 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
876 | --with-rand-helper Use subprocess to gather strong randomness | ||
877 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
878 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
879 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
880 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
881 | --with-sectok Enable smartcard support using libsectok | ||
882 | --with-opensc=PFX Enable smartcard support using OpenSC | ||
883 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
884 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
885 | --with-xauth=PATH Specify path to xauth program | ||
886 | --with-mantype=man|cat|doc Set man page type | ||
887 | --with-md5-passwords Enable use of MD5 passwords | ||
888 | --without-shadow Disable shadow password support | ||
889 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
890 | --with-default-path= Specify default \$PATH environment for server | ||
891 | --with-superuser-path= Specify different path for super-user | ||
892 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
893 | --with-bsd-auth Enable BSD auth support | ||
894 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
895 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
896 | |||
897 | Some influential environment variables: | ||
898 | CC C compiler command | ||
899 | CFLAGS C compiler flags | ||
900 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
901 | nonstandard directory <lib dir> | ||
902 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
903 | headers in a nonstandard directory <include dir> | ||
904 | CPP C preprocessor | ||
905 | |||
906 | Use these variables to override the choices made by `configure' or to help | ||
907 | it to find libraries and programs with nonstandard names/locations. | ||
908 | |||
909 | _ACEOF | ||
910 | fi | ||
911 | |||
912 | if test "$ac_init_help" = "recursive"; then | ||
913 | # If there are subdirs, report their specific --help. | ||
914 | ac_popdir=`pwd` | ||
915 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
916 | test -d $ac_dir || continue | ||
917 | ac_builddir=. | ||
918 | |||
919 | if test "$ac_dir" != .; then | ||
920 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
921 | # A "../" for each directory in $ac_dir_suffix. | ||
922 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
923 | else | ||
924 | ac_dir_suffix= ac_top_builddir= | ||
925 | fi | ||
926 | |||
927 | case $srcdir in | ||
928 | .) # No --srcdir option. We are building in place. | ||
929 | ac_srcdir=. | ||
930 | if test -z "$ac_top_builddir"; then | ||
931 | ac_top_srcdir=. | ||
932 | else | ||
933 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
934 | fi ;; | ||
935 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
936 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
937 | ac_top_srcdir=$srcdir ;; | ||
938 | *) # Relative path. | ||
939 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
940 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
941 | esac | ||
942 | |||
943 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
944 | # the directories may not exist. | ||
945 | case `pwd` in | ||
946 | .) ac_abs_builddir="$ac_dir";; | ||
947 | *) | ||
948 | case "$ac_dir" in | ||
949 | .) ac_abs_builddir=`pwd`;; | ||
950 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
951 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
952 | esac;; | ||
953 | esac | ||
954 | case $ac_abs_builddir in | ||
955 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
956 | *) | ||
957 | case ${ac_top_builddir}. in | ||
958 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
959 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
960 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
961 | esac;; | ||
962 | esac | ||
963 | case $ac_abs_builddir in | ||
964 | .) ac_abs_srcdir=$ac_srcdir;; | ||
965 | *) | ||
966 | case $ac_srcdir in | ||
967 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
968 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
969 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
970 | esac;; | ||
971 | esac | ||
972 | case $ac_abs_builddir in | ||
973 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
974 | *) | ||
975 | case $ac_top_srcdir in | ||
976 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
977 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
978 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
979 | esac;; | ||
980 | esac | ||
981 | |||
982 | cd $ac_dir | ||
983 | # Check for guested configure; otherwise get Cygnus style configure. | ||
984 | if test -f $ac_srcdir/configure.gnu; then | ||
985 | echo | ||
986 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
987 | elif test -f $ac_srcdir/configure; then | ||
988 | echo | ||
989 | $SHELL $ac_srcdir/configure --help=recursive | ||
990 | elif test -f $ac_srcdir/configure.ac || | ||
991 | test -f $ac_srcdir/configure.in; then | ||
992 | echo | ||
993 | $ac_configure --help | ||
994 | else | ||
995 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
996 | fi | ||
997 | cd $ac_popdir | ||
998 | done | ||
999 | fi | ||
1000 | |||
1001 | test -n "$ac_init_help" && exit 0 | ||
1002 | if $ac_init_version; then | ||
1003 | cat <<\_ACEOF | ||
1004 | |||
1005 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1006 | This configure script is free software; the Free Software Foundation | ||
1007 | gives unlimited permission to copy, distribute and modify it. | ||
1008 | _ACEOF | ||
1009 | exit 0 | ||
1010 | fi | ||
1011 | exec 5>config.log | ||
1012 | cat >&5 <<_ACEOF | ||
1013 | This file contains any messages produced by compilers while | ||
1014 | running configure, to aid debugging if configure makes a mistake. | ||
1015 | |||
1016 | It was created by $as_me, which was | ||
1017 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1018 | |||
1019 | $ $0 $@ | ||
1020 | |||
1021 | _ACEOF | ||
1022 | { | ||
1023 | cat <<_ASUNAME | ||
1024 | ## --------- ## | ||
1025 | ## Platform. ## | ||
1026 | ## --------- ## | ||
1027 | |||
1028 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1029 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1030 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1031 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1032 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1033 | |||
1034 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1035 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1036 | |||
1037 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1038 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1039 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1040 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1041 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1042 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1043 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1044 | |||
1045 | _ASUNAME | ||
1046 | |||
1047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1048 | for as_dir in $PATH | ||
1049 | do | ||
1050 | IFS=$as_save_IFS | ||
1051 | test -z "$as_dir" && as_dir=. | ||
1052 | echo "PATH: $as_dir" | ||
1053 | done | ||
1054 | |||
1055 | } >&5 | ||
1056 | |||
1057 | cat >&5 <<_ACEOF | ||
1058 | |||
1059 | |||
1060 | ## ----------- ## | ||
1061 | ## Core tests. ## | ||
1062 | ## ----------- ## | ||
1063 | |||
1064 | _ACEOF | ||
1065 | |||
1066 | |||
1067 | # Keep a trace of the command line. | ||
1068 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1069 | # Strip out --silent because we don't want to record it for future runs. | ||
1070 | # Also quote any args containing shell meta-characters. | ||
1071 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1072 | ac_configure_args= | ||
1073 | ac_configure_args0= | ||
1074 | ac_configure_args1= | ||
1075 | ac_sep= | ||
1076 | ac_must_keep_next=false | ||
1077 | for ac_pass in 1 2 | ||
1078 | do | ||
1079 | for ac_arg | ||
1080 | do | ||
1081 | case $ac_arg in | ||
1082 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1084 | | -silent | --silent | --silen | --sile | --sil) | ||
1085 | continue ;; | ||
1086 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1087 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1088 | esac | ||
1089 | case $ac_pass in | ||
1090 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1091 | 2) | ||
1092 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1093 | if test $ac_must_keep_next = true; then | ||
1094 | ac_must_keep_next=false # Got value, back to normal. | ||
1095 | else | ||
1096 | case $ac_arg in | ||
1097 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1098 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1099 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1100 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1101 | case "$ac_configure_args0 " in | ||
1102 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1103 | esac | ||
1104 | ;; | ||
1105 | -* ) ac_must_keep_next=true ;; | ||
1106 | esac | ||
1107 | fi | ||
1108 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1109 | # Get rid of the leading space. | ||
1110 | ac_sep=" " | ||
1111 | ;; | ||
1112 | esac | ||
1113 | done | ||
1114 | done | ||
1115 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1116 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1117 | |||
1118 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1119 | # config.log. We remove comments because anyway the quotes in there | ||
1120 | # would cause problems or look ugly. | ||
1121 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1122 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1123 | trap 'exit_status=$? | ||
1124 | # Save into config.log some information that might help in debugging. | ||
1125 | { | ||
1126 | echo | ||
1127 | |||
1128 | cat <<\_ASBOX | ||
1129 | ## ---------------- ## | ||
1130 | ## Cache variables. ## | ||
1131 | ## ---------------- ## | ||
1132 | _ASBOX | ||
1133 | echo | ||
1134 | # The following way of writing the cache mishandles newlines in values, | ||
1135 | { | ||
1136 | (set) 2>&1 | | ||
1137 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1138 | *ac_space=\ *) | ||
1139 | sed -n \ | ||
1140 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1141 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1142 | ;; | ||
1143 | *) | ||
1144 | sed -n \ | ||
1145 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1146 | ;; | ||
1147 | esac; | ||
1148 | } | ||
1149 | echo | ||
1150 | |||
1151 | cat <<\_ASBOX | ||
1152 | ## ----------------- ## | ||
1153 | ## Output variables. ## | ||
1154 | ## ----------------- ## | ||
1155 | _ASBOX | ||
1156 | echo | ||
1157 | for ac_var in $ac_subst_vars | ||
1158 | do | ||
1159 | eval ac_val=$`echo $ac_var` | ||
1160 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1161 | done | sort | ||
1162 | echo | ||
1163 | |||
1164 | if test -n "$ac_subst_files"; then | ||
1165 | cat <<\_ASBOX | ||
1166 | ## ------------- ## | ||
1167 | ## Output files. ## | ||
1168 | ## ------------- ## | ||
1169 | _ASBOX | ||
1170 | echo | ||
1171 | for ac_var in $ac_subst_files | ||
1172 | do | ||
1173 | eval ac_val=$`echo $ac_var` | ||
1174 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1175 | done | sort | ||
1176 | echo | ||
1177 | fi | ||
1178 | |||
1179 | if test -s confdefs.h; then | ||
1180 | cat <<\_ASBOX | ||
1181 | ## ----------- ## | ||
1182 | ## confdefs.h. ## | ||
1183 | ## ----------- ## | ||
1184 | _ASBOX | ||
1185 | echo | ||
1186 | sed "/^$/d" confdefs.h | sort | ||
1187 | echo | ||
1188 | fi | ||
1189 | test "$ac_signal" != 0 && | ||
1190 | echo "$as_me: caught signal $ac_signal" | ||
1191 | echo "$as_me: exit $exit_status" | ||
1192 | } >&5 | ||
1193 | rm -f core *.core && | ||
1194 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1195 | exit $exit_status | ||
1196 | ' 0 | ||
1197 | for ac_signal in 1 2 13 15; do | ||
1198 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1199 | done | ||
1200 | ac_signal=0 | ||
1201 | |||
1202 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1203 | rm -rf conftest* confdefs.h | ||
1204 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1205 | echo >confdefs.h | ||
1206 | |||
1207 | # Predefined preprocessor variables. | ||
1208 | |||
1209 | cat >>confdefs.h <<_ACEOF | ||
1210 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1211 | _ACEOF | ||
1212 | |||
1213 | |||
1214 | cat >>confdefs.h <<_ACEOF | ||
1215 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1216 | _ACEOF | ||
1217 | |||
1218 | |||
1219 | cat >>confdefs.h <<_ACEOF | ||
1220 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1221 | _ACEOF | ||
1222 | |||
1223 | |||
1224 | cat >>confdefs.h <<_ACEOF | ||
1225 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1226 | _ACEOF | ||
1227 | |||
1228 | |||
1229 | cat >>confdefs.h <<_ACEOF | ||
1230 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1231 | _ACEOF | ||
1232 | |||
1233 | |||
1234 | # Let the site file select an alternate cache file if it wants to. | ||
1235 | # Prefer explicitly selected file to automatically selected ones. | ||
1236 | if test -z "$CONFIG_SITE"; then | ||
1237 | if test "x$prefix" != xNONE; then | ||
1238 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1239 | else | ||
1240 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1241 | fi | ||
1242 | fi | ||
1243 | for ac_site_file in $CONFIG_SITE; do | ||
1244 | if test -r "$ac_site_file"; then | ||
1245 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1246 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1247 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1248 | . "$ac_site_file" | ||
1249 | fi | ||
1250 | done | ||
1251 | |||
1252 | if test -r "$cache_file"; then | ||
1253 | # Some versions of bash will fail to source /dev/null (special | ||
1254 | # files actually), so we avoid doing that. | ||
1255 | if test -f "$cache_file"; then | ||
1256 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1257 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1258 | case $cache_file in | ||
1259 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1260 | *) . ./$cache_file;; | ||
1261 | esac | ||
1262 | fi | ||
1263 | else | ||
1264 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1265 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1266 | >$cache_file | ||
1267 | fi | ||
1268 | |||
1269 | # Check that the precious variables saved in the cache have kept the same | ||
1270 | # value. | ||
1271 | ac_cache_corrupted=false | ||
1272 | for ac_var in `(set) 2>&1 | | ||
1273 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1274 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1275 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1276 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1277 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1278 | case $ac_old_set,$ac_new_set in | ||
1279 | set,) | ||
1280 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1281 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1282 | ac_cache_corrupted=: ;; | ||
1283 | ,set) | ||
1284 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1285 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1286 | ac_cache_corrupted=: ;; | ||
1287 | ,);; | ||
1288 | *) | ||
1289 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1290 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1291 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1292 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1293 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1294 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1295 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1296 | ac_cache_corrupted=: | ||
1297 | fi;; | ||
1298 | esac | ||
1299 | # Pass precious variables to config.status. | ||
1300 | if test "$ac_new_set" = set; then | ||
1301 | case $ac_new_val in | ||
1302 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1303 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1304 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1305 | esac | ||
1306 | case " $ac_configure_args " in | ||
1307 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1308 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1309 | esac | ||
1310 | fi | ||
1311 | done | ||
1312 | if $ac_cache_corrupted; then | ||
1313 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1314 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1315 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1316 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1317 | { (exit 1); exit 1; }; } | ||
1318 | fi | ||
1319 | |||
1320 | ac_ext=c | ||
1321 | ac_cpp='$CPP $CPPFLAGS' | ||
1322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1325 | |||
1326 | |||
1327 | |||
1328 | |||
1329 | |||
1330 | |||
1331 | |||
1332 | |||
1333 | |||
1334 | |||
1335 | |||
1336 | |||
1337 | |||
1338 | |||
1339 | |||
1340 | |||
1341 | |||
1342 | |||
1343 | |||
1344 | |||
1345 | |||
1346 | ac_config_headers="$ac_config_headers config.h" | ||
1347 | |||
1348 | ac_ext=c | ||
1349 | ac_cpp='$CPP $CPPFLAGS' | ||
1350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1353 | if test -n "$ac_tool_prefix"; then | ||
1354 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1355 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1358 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1360 | else | ||
1361 | if test -n "$CC"; then | ||
1362 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1363 | else | ||
1364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1365 | for as_dir in $PATH | ||
1366 | do | ||
1367 | IFS=$as_save_IFS | ||
1368 | test -z "$as_dir" && as_dir=. | ||
1369 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1371 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1373 | break 2 | ||
1374 | fi | ||
1375 | done | ||
1376 | done | ||
1377 | |||
1378 | fi | ||
1379 | fi | ||
1380 | CC=$ac_cv_prog_CC | ||
1381 | if test -n "$CC"; then | ||
1382 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1383 | echo "${ECHO_T}$CC" >&6 | ||
1384 | else | ||
1385 | echo "$as_me:$LINENO: result: no" >&5 | ||
1386 | echo "${ECHO_T}no" >&6 | ||
1387 | fi | ||
1388 | |||
1389 | fi | ||
1390 | if test -z "$ac_cv_prog_CC"; then | ||
1391 | ac_ct_CC=$CC | ||
1392 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1393 | set dummy gcc; ac_word=$2 | ||
1394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1396 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1398 | else | ||
1399 | if test -n "$ac_ct_CC"; then | ||
1400 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1401 | else | ||
1402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1403 | for as_dir in $PATH | ||
1404 | do | ||
1405 | IFS=$as_save_IFS | ||
1406 | test -z "$as_dir" && as_dir=. | ||
1407 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1409 | ac_cv_prog_ac_ct_CC="gcc" | ||
1410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1411 | break 2 | ||
1412 | fi | ||
1413 | done | ||
1414 | done | ||
1415 | |||
1416 | fi | ||
1417 | fi | ||
1418 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1419 | if test -n "$ac_ct_CC"; then | ||
1420 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1421 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1422 | else | ||
1423 | echo "$as_me:$LINENO: result: no" >&5 | ||
1424 | echo "${ECHO_T}no" >&6 | ||
1425 | fi | ||
1426 | |||
1427 | CC=$ac_ct_CC | ||
1428 | else | ||
1429 | CC="$ac_cv_prog_CC" | ||
1430 | fi | ||
1431 | |||
1432 | if test -z "$CC"; then | ||
1433 | if test -n "$ac_tool_prefix"; then | ||
1434 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1435 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1438 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1440 | else | ||
1441 | if test -n "$CC"; then | ||
1442 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1443 | else | ||
1444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1445 | for as_dir in $PATH | ||
1446 | do | ||
1447 | IFS=$as_save_IFS | ||
1448 | test -z "$as_dir" && as_dir=. | ||
1449 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1451 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1453 | break 2 | ||
1454 | fi | ||
1455 | done | ||
1456 | done | ||
1457 | |||
1458 | fi | ||
1459 | fi | ||
1460 | CC=$ac_cv_prog_CC | ||
1461 | if test -n "$CC"; then | ||
1462 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1463 | echo "${ECHO_T}$CC" >&6 | ||
1464 | else | ||
1465 | echo "$as_me:$LINENO: result: no" >&5 | ||
1466 | echo "${ECHO_T}no" >&6 | ||
1467 | fi | ||
1468 | |||
1469 | fi | ||
1470 | if test -z "$ac_cv_prog_CC"; then | ||
1471 | ac_ct_CC=$CC | ||
1472 | # Extract the first word of "cc", so it can be a program name with args. | ||
1473 | set dummy cc; ac_word=$2 | ||
1474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1476 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1478 | else | ||
1479 | if test -n "$ac_ct_CC"; then | ||
1480 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1481 | else | ||
1482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1483 | for as_dir in $PATH | ||
1484 | do | ||
1485 | IFS=$as_save_IFS | ||
1486 | test -z "$as_dir" && as_dir=. | ||
1487 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1488 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1489 | ac_cv_prog_ac_ct_CC="cc" | ||
1490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1491 | break 2 | ||
1492 | fi | ||
1493 | done | ||
1494 | done | ||
1495 | |||
1496 | fi | ||
1497 | fi | ||
1498 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1499 | if test -n "$ac_ct_CC"; then | ||
1500 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1501 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1502 | else | ||
1503 | echo "$as_me:$LINENO: result: no" >&5 | ||
1504 | echo "${ECHO_T}no" >&6 | ||
1505 | fi | ||
1506 | |||
1507 | CC=$ac_ct_CC | ||
1508 | else | ||
1509 | CC="$ac_cv_prog_CC" | ||
1510 | fi | ||
1511 | |||
1512 | fi | ||
1513 | if test -z "$CC"; then | ||
1514 | # Extract the first word of "cc", so it can be a program name with args. | ||
1515 | set dummy cc; ac_word=$2 | ||
1516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1518 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1520 | else | ||
1521 | if test -n "$CC"; then | ||
1522 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1523 | else | ||
1524 | ac_prog_rejected=no | ||
1525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1526 | for as_dir in $PATH | ||
1527 | do | ||
1528 | IFS=$as_save_IFS | ||
1529 | test -z "$as_dir" && as_dir=. | ||
1530 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1532 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1533 | ac_prog_rejected=yes | ||
1534 | continue | ||
1535 | fi | ||
1536 | ac_cv_prog_CC="cc" | ||
1537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1538 | break 2 | ||
1539 | fi | ||
1540 | done | ||
1541 | done | ||
1542 | |||
1543 | if test $ac_prog_rejected = yes; then | ||
1544 | # We found a bogon in the path, so make sure we never use it. | ||
1545 | set dummy $ac_cv_prog_CC | ||
1546 | shift | ||
1547 | if test $# != 0; then | ||
1548 | # We chose a different compiler from the bogus one. | ||
1549 | # However, it has the same basename, so the bogon will be chosen | ||
1550 | # first if we set CC to just the basename; use the full file name. | ||
1551 | shift | ||
1552 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1553 | fi | ||
1554 | fi | ||
1555 | fi | ||
1556 | fi | ||
1557 | CC=$ac_cv_prog_CC | ||
1558 | if test -n "$CC"; then | ||
1559 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1560 | echo "${ECHO_T}$CC" >&6 | ||
1561 | else | ||
1562 | echo "$as_me:$LINENO: result: no" >&5 | ||
1563 | echo "${ECHO_T}no" >&6 | ||
1564 | fi | ||
1565 | |||
1566 | fi | ||
1567 | if test -z "$CC"; then | ||
1568 | if test -n "$ac_tool_prefix"; then | ||
1569 | for ac_prog in cl | ||
1570 | do | ||
1571 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
1572 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
1573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1575 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1577 | else | ||
1578 | if test -n "$CC"; then | ||
1579 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1580 | else | ||
1581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1582 | for as_dir in $PATH | ||
1583 | do | ||
1584 | IFS=$as_save_IFS | ||
1585 | test -z "$as_dir" && as_dir=. | ||
1586 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1588 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
1589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1590 | break 2 | ||
1591 | fi | ||
1592 | done | ||
1593 | done | ||
1594 | |||
1595 | fi | ||
1596 | fi | ||
1597 | CC=$ac_cv_prog_CC | ||
1598 | if test -n "$CC"; then | ||
1599 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
1600 | echo "${ECHO_T}$CC" >&6 | ||
1601 | else | ||
1602 | echo "$as_me:$LINENO: result: no" >&5 | ||
1603 | echo "${ECHO_T}no" >&6 | ||
1604 | fi | ||
1605 | |||
1606 | test -n "$CC" && break | ||
1607 | done | ||
1608 | fi | ||
1609 | if test -z "$CC"; then | ||
1610 | ac_ct_CC=$CC | ||
1611 | for ac_prog in cl | ||
1612 | do | ||
1613 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1614 | set dummy $ac_prog; ac_word=$2 | ||
1615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1617 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1619 | else | ||
1620 | if test -n "$ac_ct_CC"; then | ||
1621 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1622 | else | ||
1623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1624 | for as_dir in $PATH | ||
1625 | do | ||
1626 | IFS=$as_save_IFS | ||
1627 | test -z "$as_dir" && as_dir=. | ||
1628 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1630 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
1631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1632 | break 2 | ||
1633 | fi | ||
1634 | done | ||
1635 | done | ||
1636 | |||
1637 | fi | ||
1638 | fi | ||
1639 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1640 | if test -n "$ac_ct_CC"; then | ||
1641 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1642 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
1643 | else | ||
1644 | echo "$as_me:$LINENO: result: no" >&5 | ||
1645 | echo "${ECHO_T}no" >&6 | ||
1646 | fi | ||
1647 | |||
1648 | test -n "$ac_ct_CC" && break | ||
1649 | done | ||
1650 | |||
1651 | CC=$ac_ct_CC | ||
1652 | fi | ||
1653 | |||
1654 | fi | ||
1655 | |||
1656 | |||
1657 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
1658 | See \`config.log' for more details." >&5 | ||
1659 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
1660 | See \`config.log' for more details." >&2;} | ||
1661 | { (exit 1); exit 1; }; } | ||
1662 | |||
1663 | # Provide some information about the compiler. | ||
1664 | echo "$as_me:$LINENO:" \ | ||
1665 | "checking for C compiler version" >&5 | ||
1666 | ac_compiler=`set X $ac_compile; echo $2` | ||
1667 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
1668 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
1669 | ac_status=$? | ||
1670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1671 | (exit $ac_status); } | ||
1672 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
1673 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
1674 | ac_status=$? | ||
1675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1676 | (exit $ac_status); } | ||
1677 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
1678 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
1679 | ac_status=$? | ||
1680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1681 | (exit $ac_status); } | ||
1682 | |||
1683 | cat >conftest.$ac_ext <<_ACEOF | ||
1684 | /* confdefs.h. */ | ||
1685 | _ACEOF | ||
1686 | cat confdefs.h >>conftest.$ac_ext | ||
1687 | cat >>conftest.$ac_ext <<_ACEOF | ||
1688 | /* end confdefs.h. */ | ||
1689 | |||
1690 | int | ||
1691 | main () | ||
1692 | { | ||
1693 | |||
1694 | ; | ||
1695 | return 0; | ||
1696 | } | ||
1697 | _ACEOF | ||
1698 | ac_clean_files_save=$ac_clean_files | ||
1699 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
1700 | # Try to create an executable without -o first, disregard a.out. | ||
1701 | # It will help us diagnose broken compilers, and finding out an intuition | ||
1702 | # of exeext. | ||
1703 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
1704 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
1705 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
1706 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
1707 | (eval $ac_link_default) 2>&5 | ||
1708 | ac_status=$? | ||
1709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1710 | (exit $ac_status); }; then | ||
1711 | # Find the output, starting from the most likely. This scheme is | ||
1712 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
1713 | # resort. | ||
1714 | |||
1715 | # Be careful to initialize this variable, since it used to be cached. | ||
1716 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
1717 | ac_cv_exeext= | ||
1718 | # b.out is created by i960 compilers. | ||
1719 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
1720 | do | ||
1721 | test -f "$ac_file" || continue | ||
1722 | case $ac_file in | ||
1723 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
1724 | ;; | ||
1725 | conftest.$ac_ext ) | ||
1726 | # This is the source file. | ||
1727 | ;; | ||
1728 | [ab].out ) | ||
1729 | # We found the default executable, but exeext='' is most | ||
1730 | # certainly right. | ||
1731 | break;; | ||
1732 | *.* ) | ||
1733 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1734 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
1735 | # but it would be cool to find out if it's true. Does anybody | ||
1736 | # maintain Libtool? --akim. | ||
1737 | export ac_cv_exeext | ||
1738 | break;; | ||
1739 | * ) | ||
1740 | break;; | ||
1741 | esac | ||
1742 | done | ||
1743 | else | ||
1744 | echo "$as_me: failed program was:" >&5 | ||
1745 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1746 | |||
1747 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
1748 | See \`config.log' for more details." >&5 | ||
1749 | echo "$as_me: error: C compiler cannot create executables | ||
1750 | See \`config.log' for more details." >&2;} | ||
1751 | { (exit 77); exit 77; }; } | ||
1752 | fi | ||
1753 | |||
1754 | ac_exeext=$ac_cv_exeext | ||
1755 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
1756 | echo "${ECHO_T}$ac_file" >&6 | ||
1757 | |||
1758 | # Check the compiler produces executables we can run. If not, either | ||
1759 | # the compiler is broken, or we cross compile. | ||
1760 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
1761 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
1762 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
1763 | # If not cross compiling, check that we can run a simple program. | ||
1764 | if test "$cross_compiling" != yes; then | ||
1765 | if { ac_try='./$ac_file' | ||
1766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1767 | (eval $ac_try) 2>&5 | ||
1768 | ac_status=$? | ||
1769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1770 | (exit $ac_status); }; }; then | ||
1771 | cross_compiling=no | ||
1772 | else | ||
1773 | if test "$cross_compiling" = maybe; then | ||
1774 | cross_compiling=yes | ||
1775 | else | ||
1776 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
1777 | If you meant to cross compile, use \`--host'. | ||
1778 | See \`config.log' for more details." >&5 | ||
1779 | echo "$as_me: error: cannot run C compiled programs. | ||
1780 | If you meant to cross compile, use \`--host'. | ||
1781 | See \`config.log' for more details." >&2;} | ||
1782 | { (exit 1); exit 1; }; } | ||
1783 | fi | ||
1784 | fi | ||
1785 | fi | ||
1786 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1787 | echo "${ECHO_T}yes" >&6 | ||
1788 | |||
1789 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
1790 | ac_clean_files=$ac_clean_files_save | ||
1791 | # Check the compiler produces executables we can run. If not, either | ||
1792 | # the compiler is broken, or we cross compile. | ||
1793 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
1794 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
1795 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
1796 | echo "${ECHO_T}$cross_compiling" >&6 | ||
1797 | |||
1798 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
1799 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
1800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
1801 | (eval $ac_link) 2>&5 | ||
1802 | ac_status=$? | ||
1803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1804 | (exit $ac_status); }; then | ||
1805 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
1806 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
1807 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
1808 | # `rm'. | ||
1809 | for ac_file in conftest.exe conftest conftest.*; do | ||
1810 | test -f "$ac_file" || continue | ||
1811 | case $ac_file in | ||
1812 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
1813 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
1814 | export ac_cv_exeext | ||
1815 | break;; | ||
1816 | * ) break;; | ||
1817 | esac | ||
1818 | done | ||
1819 | else | ||
1820 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
1821 | See \`config.log' for more details." >&5 | ||
1822 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
1823 | See \`config.log' for more details." >&2;} | ||
1824 | { (exit 1); exit 1; }; } | ||
1825 | fi | ||
1826 | |||
1827 | rm -f conftest$ac_cv_exeext | ||
1828 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
1829 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
1830 | |||
1831 | rm -f conftest.$ac_ext | ||
1832 | EXEEXT=$ac_cv_exeext | ||
1833 | ac_exeext=$EXEEXT | ||
1834 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
1835 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
1836 | if test "${ac_cv_objext+set}" = set; then | ||
1837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1838 | else | ||
1839 | cat >conftest.$ac_ext <<_ACEOF | ||
1840 | /* confdefs.h. */ | ||
1841 | _ACEOF | ||
1842 | cat confdefs.h >>conftest.$ac_ext | ||
1843 | cat >>conftest.$ac_ext <<_ACEOF | ||
1844 | /* end confdefs.h. */ | ||
1845 | |||
1846 | int | ||
1847 | main () | ||
1848 | { | ||
1849 | |||
1850 | ; | ||
1851 | return 0; | ||
1852 | } | ||
1853 | _ACEOF | ||
1854 | rm -f conftest.o conftest.obj | ||
1855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1856 | (eval $ac_compile) 2>&5 | ||
1857 | ac_status=$? | ||
1858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1859 | (exit $ac_status); }; then | ||
1860 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
1861 | case $ac_file in | ||
1862 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
1863 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
1864 | break;; | ||
1865 | esac | ||
1866 | done | ||
1867 | else | ||
1868 | echo "$as_me: failed program was:" >&5 | ||
1869 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1870 | |||
1871 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
1872 | See \`config.log' for more details." >&5 | ||
1873 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
1874 | See \`config.log' for more details." >&2;} | ||
1875 | { (exit 1); exit 1; }; } | ||
1876 | fi | ||
1877 | |||
1878 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
1879 | fi | ||
1880 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
1881 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
1882 | OBJEXT=$ac_cv_objext | ||
1883 | ac_objext=$OBJEXT | ||
1884 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
1885 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
1886 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
1887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1888 | else | ||
1889 | cat >conftest.$ac_ext <<_ACEOF | ||
1890 | /* confdefs.h. */ | ||
1891 | _ACEOF | ||
1892 | cat confdefs.h >>conftest.$ac_ext | ||
1893 | cat >>conftest.$ac_ext <<_ACEOF | ||
1894 | /* end confdefs.h. */ | ||
1895 | |||
1896 | int | ||
1897 | main () | ||
1898 | { | ||
1899 | #ifndef __GNUC__ | ||
1900 | choke me | ||
1901 | #endif | ||
1902 | |||
1903 | ; | ||
1904 | return 0; | ||
1905 | } | ||
1906 | _ACEOF | ||
1907 | rm -f conftest.$ac_objext | ||
1908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1909 | (eval $ac_compile) 2>conftest.er1 | ||
1910 | ac_status=$? | ||
1911 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1912 | rm -f conftest.er1 | ||
1913 | cat conftest.err >&5 | ||
1914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1915 | (exit $ac_status); } && | ||
1916 | { ac_try='test -z "$ac_c_werror_flag" | ||
1917 | || test ! -s conftest.err' | ||
1918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1919 | (eval $ac_try) 2>&5 | ||
1920 | ac_status=$? | ||
1921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1922 | (exit $ac_status); }; } && | ||
1923 | { ac_try='test -s conftest.$ac_objext' | ||
1924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1925 | (eval $ac_try) 2>&5 | ||
1926 | ac_status=$? | ||
1927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1928 | (exit $ac_status); }; }; then | ||
1929 | ac_compiler_gnu=yes | ||
1930 | else | ||
1931 | echo "$as_me: failed program was:" >&5 | ||
1932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1933 | |||
1934 | ac_compiler_gnu=no | ||
1935 | fi | ||
1936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1937 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
1938 | |||
1939 | fi | ||
1940 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
1941 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
1942 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
1943 | ac_test_CFLAGS=${CFLAGS+set} | ||
1944 | ac_save_CFLAGS=$CFLAGS | ||
1945 | CFLAGS="-g" | ||
1946 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
1947 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
1948 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
1949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1950 | else | ||
1951 | cat >conftest.$ac_ext <<_ACEOF | ||
1952 | /* confdefs.h. */ | ||
1953 | _ACEOF | ||
1954 | cat confdefs.h >>conftest.$ac_ext | ||
1955 | cat >>conftest.$ac_ext <<_ACEOF | ||
1956 | /* end confdefs.h. */ | ||
1957 | |||
1958 | int | ||
1959 | main () | ||
1960 | { | ||
1961 | |||
1962 | ; | ||
1963 | return 0; | ||
1964 | } | ||
1965 | _ACEOF | ||
1966 | rm -f conftest.$ac_objext | ||
1967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
1968 | (eval $ac_compile) 2>conftest.er1 | ||
1969 | ac_status=$? | ||
1970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
1971 | rm -f conftest.er1 | ||
1972 | cat conftest.err >&5 | ||
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1974 | (exit $ac_status); } && | ||
1975 | { ac_try='test -z "$ac_c_werror_flag" | ||
1976 | || test ! -s conftest.err' | ||
1977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1978 | (eval $ac_try) 2>&5 | ||
1979 | ac_status=$? | ||
1980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1981 | (exit $ac_status); }; } && | ||
1982 | { ac_try='test -s conftest.$ac_objext' | ||
1983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
1984 | (eval $ac_try) 2>&5 | ||
1985 | ac_status=$? | ||
1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1987 | (exit $ac_status); }; }; then | ||
1988 | ac_cv_prog_cc_g=yes | ||
1989 | else | ||
1990 | echo "$as_me: failed program was:" >&5 | ||
1991 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1992 | |||
1993 | ac_cv_prog_cc_g=no | ||
1994 | fi | ||
1995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1996 | fi | ||
1997 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
1998 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
1999 | if test "$ac_test_CFLAGS" = set; then | ||
2000 | CFLAGS=$ac_save_CFLAGS | ||
2001 | elif test $ac_cv_prog_cc_g = yes; then | ||
2002 | if test "$GCC" = yes; then | ||
2003 | CFLAGS="-g -O2" | ||
2004 | else | ||
2005 | CFLAGS="-g" | ||
2006 | fi | ||
2007 | else | ||
2008 | if test "$GCC" = yes; then | ||
2009 | CFLAGS="-O2" | ||
2010 | else | ||
2011 | CFLAGS= | ||
2012 | fi | ||
2013 | fi | ||
2014 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2015 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2016 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2018 | else | ||
2019 | ac_cv_prog_cc_stdc=no | ||
2020 | ac_save_CC=$CC | ||
2021 | cat >conftest.$ac_ext <<_ACEOF | ||
2022 | /* confdefs.h. */ | ||
2023 | _ACEOF | ||
2024 | cat confdefs.h >>conftest.$ac_ext | ||
2025 | cat >>conftest.$ac_ext <<_ACEOF | ||
2026 | /* end confdefs.h. */ | ||
2027 | #include <stdarg.h> | ||
2028 | #include <stdio.h> | ||
2029 | #include <sys/types.h> | ||
2030 | #include <sys/stat.h> | ||
2031 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2032 | struct buf { int x; }; | ||
2033 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2034 | static char *e (p, i) | ||
2035 | char **p; | ||
2036 | int i; | ||
2037 | { | ||
2038 | return p[i]; | ||
2039 | } | ||
2040 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2041 | { | ||
2042 | char *s; | ||
2043 | va_list v; | ||
2044 | va_start (v,p); | ||
2045 | s = g (p, va_arg (v,int)); | ||
2046 | va_end (v); | ||
2047 | return s; | ||
2048 | } | ||
2049 | |||
2050 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2051 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2052 | These don't provoke an error unfortunately, instead are silently treated | ||
2053 | as 'x'. The following induces an error, until -std1 is added to get | ||
2054 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2055 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2056 | that's true only with -std1. */ | ||
2057 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2058 | |||
2059 | int test (int i, double x); | ||
2060 | struct s1 {int (*f) (int a);}; | ||
2061 | struct s2 {int (*f) (double a);}; | ||
2062 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2063 | int argc; | ||
2064 | char **argv; | ||
2065 | int | ||
2066 | main () | ||
2067 | { | ||
2068 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2069 | ; | ||
2070 | return 0; | ||
2071 | } | ||
2072 | _ACEOF | ||
2073 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2074 | # breaks some systems' header files. | ||
2075 | # AIX -qlanglvl=ansi | ||
2076 | # Ultrix and OSF/1 -std1 | ||
2077 | # HP-UX 10.20 and later -Ae | ||
2078 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2079 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2080 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2081 | do | ||
2082 | CC="$ac_save_CC $ac_arg" | ||
2083 | rm -f conftest.$ac_objext | ||
2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2085 | (eval $ac_compile) 2>conftest.er1 | ||
2086 | ac_status=$? | ||
2087 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2088 | rm -f conftest.er1 | ||
2089 | cat conftest.err >&5 | ||
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2091 | (exit $ac_status); } && | ||
2092 | { ac_try='test -z "$ac_c_werror_flag" | ||
2093 | || test ! -s conftest.err' | ||
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2095 | (eval $ac_try) 2>&5 | ||
2096 | ac_status=$? | ||
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2098 | (exit $ac_status); }; } && | ||
2099 | { ac_try='test -s conftest.$ac_objext' | ||
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2101 | (eval $ac_try) 2>&5 | ||
2102 | ac_status=$? | ||
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2104 | (exit $ac_status); }; }; then | ||
2105 | ac_cv_prog_cc_stdc=$ac_arg | ||
2106 | break | ||
2107 | else | ||
2108 | echo "$as_me: failed program was:" >&5 | ||
2109 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2110 | |||
2111 | fi | ||
2112 | rm -f conftest.err conftest.$ac_objext | ||
2113 | done | ||
2114 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2115 | CC=$ac_save_CC | ||
2116 | |||
2117 | fi | ||
2118 | |||
2119 | case "x$ac_cv_prog_cc_stdc" in | ||
2120 | x|xno) | ||
2121 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2122 | echo "${ECHO_T}none needed" >&6 ;; | ||
2123 | *) | ||
2124 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2125 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2126 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2127 | esac | ||
2128 | |||
2129 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2130 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2131 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2132 | # the declaration of exit, since it's the most demanding environment. | ||
2133 | cat >conftest.$ac_ext <<_ACEOF | ||
2134 | #ifndef __cplusplus | ||
2135 | choke me | ||
2136 | #endif | ||
2137 | _ACEOF | ||
2138 | rm -f conftest.$ac_objext | ||
2139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2140 | (eval $ac_compile) 2>conftest.er1 | ||
2141 | ac_status=$? | ||
2142 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2143 | rm -f conftest.er1 | ||
2144 | cat conftest.err >&5 | ||
2145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2146 | (exit $ac_status); } && | ||
2147 | { ac_try='test -z "$ac_c_werror_flag" | ||
2148 | || test ! -s conftest.err' | ||
2149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2150 | (eval $ac_try) 2>&5 | ||
2151 | ac_status=$? | ||
2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2153 | (exit $ac_status); }; } && | ||
2154 | { ac_try='test -s conftest.$ac_objext' | ||
2155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2156 | (eval $ac_try) 2>&5 | ||
2157 | ac_status=$? | ||
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2159 | (exit $ac_status); }; }; then | ||
2160 | for ac_declaration in \ | ||
2161 | '' \ | ||
2162 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2163 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2164 | 'extern "C" void exit (int) throw ();' \ | ||
2165 | 'extern "C" void exit (int);' \ | ||
2166 | 'void exit (int);' | ||
2167 | do | ||
2168 | cat >conftest.$ac_ext <<_ACEOF | ||
2169 | /* confdefs.h. */ | ||
2170 | _ACEOF | ||
2171 | cat confdefs.h >>conftest.$ac_ext | ||
2172 | cat >>conftest.$ac_ext <<_ACEOF | ||
2173 | /* end confdefs.h. */ | ||
2174 | $ac_declaration | ||
2175 | #include <stdlib.h> | ||
2176 | int | ||
2177 | main () | ||
2178 | { | ||
2179 | exit (42); | ||
2180 | ; | ||
2181 | return 0; | ||
2182 | } | ||
2183 | _ACEOF | ||
2184 | rm -f conftest.$ac_objext | ||
2185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2186 | (eval $ac_compile) 2>conftest.er1 | ||
2187 | ac_status=$? | ||
2188 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2189 | rm -f conftest.er1 | ||
2190 | cat conftest.err >&5 | ||
2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2192 | (exit $ac_status); } && | ||
2193 | { ac_try='test -z "$ac_c_werror_flag" | ||
2194 | || test ! -s conftest.err' | ||
2195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2196 | (eval $ac_try) 2>&5 | ||
2197 | ac_status=$? | ||
2198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2199 | (exit $ac_status); }; } && | ||
2200 | { ac_try='test -s conftest.$ac_objext' | ||
2201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2202 | (eval $ac_try) 2>&5 | ||
2203 | ac_status=$? | ||
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2205 | (exit $ac_status); }; }; then | ||
2206 | : | ||
2207 | else | ||
2208 | echo "$as_me: failed program was:" >&5 | ||
2209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2210 | |||
2211 | continue | ||
2212 | fi | ||
2213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2214 | cat >conftest.$ac_ext <<_ACEOF | ||
2215 | /* confdefs.h. */ | ||
2216 | _ACEOF | ||
2217 | cat confdefs.h >>conftest.$ac_ext | ||
2218 | cat >>conftest.$ac_ext <<_ACEOF | ||
2219 | /* end confdefs.h. */ | ||
2220 | $ac_declaration | ||
2221 | int | ||
2222 | main () | ||
2223 | { | ||
2224 | exit (42); | ||
2225 | ; | ||
2226 | return 0; | ||
2227 | } | ||
2228 | _ACEOF | ||
2229 | rm -f conftest.$ac_objext | ||
2230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2231 | (eval $ac_compile) 2>conftest.er1 | ||
2232 | ac_status=$? | ||
2233 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2234 | rm -f conftest.er1 | ||
2235 | cat conftest.err >&5 | ||
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2237 | (exit $ac_status); } && | ||
2238 | { ac_try='test -z "$ac_c_werror_flag" | ||
2239 | || test ! -s conftest.err' | ||
2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2241 | (eval $ac_try) 2>&5 | ||
2242 | ac_status=$? | ||
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2244 | (exit $ac_status); }; } && | ||
2245 | { ac_try='test -s conftest.$ac_objext' | ||
2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2247 | (eval $ac_try) 2>&5 | ||
2248 | ac_status=$? | ||
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2250 | (exit $ac_status); }; }; then | ||
2251 | break | ||
2252 | else | ||
2253 | echo "$as_me: failed program was:" >&5 | ||
2254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2255 | |||
2256 | fi | ||
2257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2258 | done | ||
2259 | rm -f conftest* | ||
2260 | if test -n "$ac_declaration"; then | ||
2261 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2262 | echo $ac_declaration >>confdefs.h | ||
2263 | echo '#endif' >>confdefs.h | ||
2264 | fi | ||
2265 | |||
2266 | else | ||
2267 | echo "$as_me: failed program was:" >&5 | ||
2268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2269 | |||
2270 | fi | ||
2271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2272 | ac_ext=c | ||
2273 | ac_cpp='$CPP $CPPFLAGS' | ||
2274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2277 | |||
2278 | ac_aux_dir= | ||
2279 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
2280 | if test -f $ac_dir/install-sh; then | ||
2281 | ac_aux_dir=$ac_dir | ||
2282 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2283 | break | ||
2284 | elif test -f $ac_dir/install.sh; then | ||
2285 | ac_aux_dir=$ac_dir | ||
2286 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2287 | break | ||
2288 | elif test -f $ac_dir/shtool; then | ||
2289 | ac_aux_dir=$ac_dir | ||
2290 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2291 | break | ||
2292 | fi | ||
2293 | done | ||
2294 | if test -z "$ac_aux_dir"; then | ||
2295 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | ||
2296 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | ||
2297 | { (exit 1); exit 1; }; } | ||
2298 | fi | ||
2299 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
2300 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
2301 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
2302 | |||
2303 | # Make sure we can run config.sub. | ||
2304 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
2305 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
2306 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
2307 | { (exit 1); exit 1; }; } | ||
2308 | |||
2309 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
2310 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
2311 | if test "${ac_cv_build+set}" = set; then | ||
2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2313 | else | ||
2314 | ac_cv_build_alias=$build_alias | ||
2315 | test -z "$ac_cv_build_alias" && | ||
2316 | ac_cv_build_alias=`$ac_config_guess` | ||
2317 | test -z "$ac_cv_build_alias" && | ||
2318 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2319 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2320 | { (exit 1); exit 1; }; } | ||
2321 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
2322 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
2323 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
2324 | { (exit 1); exit 1; }; } | ||
2325 | |||
2326 | fi | ||
2327 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2328 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
2329 | build=$ac_cv_build | ||
2330 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2331 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2332 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2333 | |||
2334 | |||
2335 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
2336 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
2337 | if test "${ac_cv_host+set}" = set; then | ||
2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2339 | else | ||
2340 | ac_cv_host_alias=$host_alias | ||
2341 | test -z "$ac_cv_host_alias" && | ||
2342 | ac_cv_host_alias=$ac_cv_build_alias | ||
2343 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
2344 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
2345 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
2346 | { (exit 1); exit 1; }; } | ||
2347 | |||
2348 | fi | ||
2349 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2350 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
2351 | host=$ac_cv_host | ||
2352 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
2353 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
2354 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
2355 | |||
2356 | |||
2357 | |||
2358 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
2359 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | ||
2360 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2362 | else | ||
2363 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
2364 | cat >conftest.$ac_ext <<_ACEOF | ||
2365 | /* confdefs.h. */ | ||
2366 | _ACEOF | ||
2367 | cat confdefs.h >>conftest.$ac_ext | ||
2368 | cat >>conftest.$ac_ext <<_ACEOF | ||
2369 | /* end confdefs.h. */ | ||
2370 | #include <sys/types.h> | ||
2371 | #include <sys/param.h> | ||
2372 | |||
2373 | int | ||
2374 | main () | ||
2375 | { | ||
2376 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
2377 | bogus endian macros | ||
2378 | #endif | ||
2379 | |||
2380 | ; | ||
2381 | return 0; | ||
2382 | } | ||
2383 | _ACEOF | ||
2384 | rm -f conftest.$ac_objext | ||
2385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2386 | (eval $ac_compile) 2>conftest.er1 | ||
2387 | ac_status=$? | ||
2388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2389 | rm -f conftest.er1 | ||
2390 | cat conftest.err >&5 | ||
2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2392 | (exit $ac_status); } && | ||
2393 | { ac_try='test -z "$ac_c_werror_flag" | ||
2394 | || test ! -s conftest.err' | ||
2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2396 | (eval $ac_try) 2>&5 | ||
2397 | ac_status=$? | ||
2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2399 | (exit $ac_status); }; } && | ||
2400 | { ac_try='test -s conftest.$ac_objext' | ||
2401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2402 | (eval $ac_try) 2>&5 | ||
2403 | ac_status=$? | ||
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2405 | (exit $ac_status); }; }; then | ||
2406 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
2407 | cat >conftest.$ac_ext <<_ACEOF | ||
2408 | /* confdefs.h. */ | ||
2409 | _ACEOF | ||
2410 | cat confdefs.h >>conftest.$ac_ext | ||
2411 | cat >>conftest.$ac_ext <<_ACEOF | ||
2412 | /* end confdefs.h. */ | ||
2413 | #include <sys/types.h> | ||
2414 | #include <sys/param.h> | ||
2415 | |||
2416 | int | ||
2417 | main () | ||
2418 | { | ||
2419 | #if BYTE_ORDER != BIG_ENDIAN | ||
2420 | not big endian | ||
2421 | #endif | ||
2422 | |||
2423 | ; | ||
2424 | return 0; | ||
2425 | } | ||
2426 | _ACEOF | ||
2427 | rm -f conftest.$ac_objext | ||
2428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2429 | (eval $ac_compile) 2>conftest.er1 | ||
2430 | ac_status=$? | ||
2431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2432 | rm -f conftest.er1 | ||
2433 | cat conftest.err >&5 | ||
2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2435 | (exit $ac_status); } && | ||
2436 | { ac_try='test -z "$ac_c_werror_flag" | ||
2437 | || test ! -s conftest.err' | ||
2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2439 | (eval $ac_try) 2>&5 | ||
2440 | ac_status=$? | ||
2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2442 | (exit $ac_status); }; } && | ||
2443 | { ac_try='test -s conftest.$ac_objext' | ||
2444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2445 | (eval $ac_try) 2>&5 | ||
2446 | ac_status=$? | ||
2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2448 | (exit $ac_status); }; }; then | ||
2449 | ac_cv_c_bigendian=yes | ||
2450 | else | ||
2451 | echo "$as_me: failed program was:" >&5 | ||
2452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2453 | |||
2454 | ac_cv_c_bigendian=no | ||
2455 | fi | ||
2456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2457 | else | ||
2458 | echo "$as_me: failed program was:" >&5 | ||
2459 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2460 | |||
2461 | # It does not; compile a test program. | ||
2462 | if test "$cross_compiling" = yes; then | ||
2463 | # try to guess the endianness by grepping values into an object file | ||
2464 | ac_cv_c_bigendian=unknown | ||
2465 | cat >conftest.$ac_ext <<_ACEOF | ||
2466 | /* confdefs.h. */ | ||
2467 | _ACEOF | ||
2468 | cat confdefs.h >>conftest.$ac_ext | ||
2469 | cat >>conftest.$ac_ext <<_ACEOF | ||
2470 | /* end confdefs.h. */ | ||
2471 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
2472 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
2473 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
2474 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
2475 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
2476 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
2477 | int | ||
2478 | main () | ||
2479 | { | ||
2480 | _ascii (); _ebcdic (); | ||
2481 | ; | ||
2482 | return 0; | ||
2483 | } | ||
2484 | _ACEOF | ||
2485 | rm -f conftest.$ac_objext | ||
2486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2487 | (eval $ac_compile) 2>conftest.er1 | ||
2488 | ac_status=$? | ||
2489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2490 | rm -f conftest.er1 | ||
2491 | cat conftest.err >&5 | ||
2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2493 | (exit $ac_status); } && | ||
2494 | { ac_try='test -z "$ac_c_werror_flag" | ||
2495 | || test ! -s conftest.err' | ||
2496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2497 | (eval $ac_try) 2>&5 | ||
2498 | ac_status=$? | ||
2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2500 | (exit $ac_status); }; } && | ||
2501 | { ac_try='test -s conftest.$ac_objext' | ||
2502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2503 | (eval $ac_try) 2>&5 | ||
2504 | ac_status=$? | ||
2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2506 | (exit $ac_status); }; }; then | ||
2507 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
2508 | ac_cv_c_bigendian=yes | ||
2509 | fi | ||
2510 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
2511 | if test "$ac_cv_c_bigendian" = unknown; then | ||
2512 | ac_cv_c_bigendian=no | ||
2513 | else | ||
2514 | # finding both strings is unlikely to happen, but who knows? | ||
2515 | ac_cv_c_bigendian=unknown | ||
2516 | fi | ||
2517 | fi | ||
2518 | else | ||
2519 | echo "$as_me: failed program was:" >&5 | ||
2520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2521 | |||
2522 | fi | ||
2523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2524 | else | ||
2525 | cat >conftest.$ac_ext <<_ACEOF | ||
2526 | /* confdefs.h. */ | ||
2527 | _ACEOF | ||
2528 | cat confdefs.h >>conftest.$ac_ext | ||
2529 | cat >>conftest.$ac_ext <<_ACEOF | ||
2530 | /* end confdefs.h. */ | ||
2531 | int | ||
2532 | main () | ||
2533 | { | ||
2534 | /* Are we little or big endian? From Harbison&Steele. */ | ||
2535 | union | ||
2536 | { | ||
2537 | long l; | ||
2538 | char c[sizeof (long)]; | ||
2539 | } u; | ||
2540 | u.l = 1; | ||
2541 | exit (u.c[sizeof (long) - 1] == 1); | ||
2542 | } | ||
2543 | _ACEOF | ||
2544 | rm -f conftest$ac_exeext | ||
2545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2546 | (eval $ac_link) 2>&5 | ||
2547 | ac_status=$? | ||
2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
2550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2551 | (eval $ac_try) 2>&5 | ||
2552 | ac_status=$? | ||
2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2554 | (exit $ac_status); }; }; then | ||
2555 | ac_cv_c_bigendian=no | ||
2556 | else | ||
2557 | echo "$as_me: program exited with status $ac_status" >&5 | ||
2558 | echo "$as_me: failed program was:" >&5 | ||
2559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2560 | |||
2561 | ( exit $ac_status ) | ||
2562 | ac_cv_c_bigendian=yes | ||
2563 | fi | ||
2564 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
2565 | fi | ||
2566 | fi | ||
2567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2568 | fi | ||
2569 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
2570 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | ||
2571 | case $ac_cv_c_bigendian in | ||
2572 | yes) | ||
2573 | |||
2574 | cat >>confdefs.h <<\_ACEOF | ||
2575 | #define WORDS_BIGENDIAN 1 | ||
2576 | _ACEOF | ||
2577 | ;; | ||
2578 | no) | ||
2579 | ;; | ||
2580 | *) | ||
2581 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
2582 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
2583 | echo "$as_me: error: unknown endianness | ||
2584 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
2585 | { (exit 1); exit 1; }; } ;; | ||
2586 | esac | ||
2587 | |||
2588 | |||
2589 | # Checks for programs. | ||
2590 | for ac_prog in gawk mawk nawk awk | ||
2591 | do | ||
2592 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2593 | set dummy $ac_prog; ac_word=$2 | ||
2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2596 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2598 | else | ||
2599 | if test -n "$AWK"; then | ||
2600 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2601 | else | ||
2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2603 | for as_dir in $PATH | ||
2604 | do | ||
2605 | IFS=$as_save_IFS | ||
2606 | test -z "$as_dir" && as_dir=. | ||
2607 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2609 | ac_cv_prog_AWK="$ac_prog" | ||
2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2611 | break 2 | ||
2612 | fi | ||
2613 | done | ||
2614 | done | ||
2615 | |||
2616 | fi | ||
2617 | fi | ||
2618 | AWK=$ac_cv_prog_AWK | ||
2619 | if test -n "$AWK"; then | ||
2620 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2621 | echo "${ECHO_T}$AWK" >&6 | ||
2622 | else | ||
2623 | echo "$as_me:$LINENO: result: no" >&5 | ||
2624 | echo "${ECHO_T}no" >&6 | ||
2625 | fi | ||
2626 | |||
2627 | test -n "$AWK" && break | ||
2628 | done | ||
2629 | |||
2630 | ac_ext=c | ||
2631 | ac_cpp='$CPP $CPPFLAGS' | ||
2632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2635 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2636 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
2637 | # On Suns, sometimes $CPP names a directory. | ||
2638 | if test -n "$CPP" && test -d "$CPP"; then | ||
2639 | CPP= | ||
2640 | fi | ||
2641 | if test -z "$CPP"; then | ||
2642 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2644 | else | ||
2645 | # Double quotes because CPP needs to be expanded | ||
2646 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2647 | do | ||
2648 | ac_preproc_ok=false | ||
2649 | for ac_c_preproc_warn_flag in '' yes | ||
2650 | do | ||
2651 | # Use a header file that comes with gcc, so configuring glibc | ||
2652 | # with a fresh cross-compiler works. | ||
2653 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2654 | # <limits.h> exists even on freestanding compilers. | ||
2655 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2656 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2657 | cat >conftest.$ac_ext <<_ACEOF | ||
2658 | /* confdefs.h. */ | ||
2659 | _ACEOF | ||
2660 | cat confdefs.h >>conftest.$ac_ext | ||
2661 | cat >>conftest.$ac_ext <<_ACEOF | ||
2662 | /* end confdefs.h. */ | ||
2663 | #ifdef __STDC__ | ||
2664 | # include <limits.h> | ||
2665 | #else | ||
2666 | # include <assert.h> | ||
2667 | #endif | ||
2668 | Syntax error | ||
2669 | _ACEOF | ||
2670 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2671 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2672 | ac_status=$? | ||
2673 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2674 | rm -f conftest.er1 | ||
2675 | cat conftest.err >&5 | ||
2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2677 | (exit $ac_status); } >/dev/null; then | ||
2678 | if test -s conftest.err; then | ||
2679 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2680 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2681 | else | ||
2682 | ac_cpp_err= | ||
2683 | fi | ||
2684 | else | ||
2685 | ac_cpp_err=yes | ||
2686 | fi | ||
2687 | if test -z "$ac_cpp_err"; then | ||
2688 | : | ||
2689 | else | ||
2690 | echo "$as_me: failed program was:" >&5 | ||
2691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2692 | |||
2693 | # Broken: fails on valid input. | ||
2694 | continue | ||
2695 | fi | ||
2696 | rm -f conftest.err conftest.$ac_ext | ||
2697 | |||
2698 | # OK, works on sane cases. Now check whether non-existent headers | ||
2699 | # can be detected and how. | ||
2700 | cat >conftest.$ac_ext <<_ACEOF | ||
2701 | /* confdefs.h. */ | ||
2702 | _ACEOF | ||
2703 | cat confdefs.h >>conftest.$ac_ext | ||
2704 | cat >>conftest.$ac_ext <<_ACEOF | ||
2705 | /* end confdefs.h. */ | ||
2706 | #include <ac_nonexistent.h> | ||
2707 | _ACEOF | ||
2708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2710 | ac_status=$? | ||
2711 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2712 | rm -f conftest.er1 | ||
2713 | cat conftest.err >&5 | ||
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2715 | (exit $ac_status); } >/dev/null; then | ||
2716 | if test -s conftest.err; then | ||
2717 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2719 | else | ||
2720 | ac_cpp_err= | ||
2721 | fi | ||
2722 | else | ||
2723 | ac_cpp_err=yes | ||
2724 | fi | ||
2725 | if test -z "$ac_cpp_err"; then | ||
2726 | # Broken: success on invalid input. | ||
2727 | continue | ||
2728 | else | ||
2729 | echo "$as_me: failed program was:" >&5 | ||
2730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2731 | |||
2732 | # Passes both tests. | ||
2733 | ac_preproc_ok=: | ||
2734 | break | ||
2735 | fi | ||
2736 | rm -f conftest.err conftest.$ac_ext | ||
2737 | |||
2738 | done | ||
2739 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2740 | rm -f conftest.err conftest.$ac_ext | ||
2741 | if $ac_preproc_ok; then | ||
2742 | break | ||
2743 | fi | ||
2744 | |||
2745 | done | ||
2746 | ac_cv_prog_CPP=$CPP | ||
2747 | |||
2748 | fi | ||
2749 | CPP=$ac_cv_prog_CPP | ||
2750 | else | ||
2751 | ac_cv_prog_CPP=$CPP | ||
2752 | fi | ||
2753 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2754 | echo "${ECHO_T}$CPP" >&6 | ||
2755 | ac_preproc_ok=false | ||
2756 | for ac_c_preproc_warn_flag in '' yes | ||
2757 | do | ||
2758 | # Use a header file that comes with gcc, so configuring glibc | ||
2759 | # with a fresh cross-compiler works. | ||
2760 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2761 | # <limits.h> exists even on freestanding compilers. | ||
2762 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2763 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2764 | cat >conftest.$ac_ext <<_ACEOF | ||
2765 | /* confdefs.h. */ | ||
2766 | _ACEOF | ||
2767 | cat confdefs.h >>conftest.$ac_ext | ||
2768 | cat >>conftest.$ac_ext <<_ACEOF | ||
2769 | /* end confdefs.h. */ | ||
2770 | #ifdef __STDC__ | ||
2771 | # include <limits.h> | ||
2772 | #else | ||
2773 | # include <assert.h> | ||
2774 | #endif | ||
2775 | Syntax error | ||
2776 | _ACEOF | ||
2777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2779 | ac_status=$? | ||
2780 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2781 | rm -f conftest.er1 | ||
2782 | cat conftest.err >&5 | ||
2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2784 | (exit $ac_status); } >/dev/null; then | ||
2785 | if test -s conftest.err; then | ||
2786 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2787 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2788 | else | ||
2789 | ac_cpp_err= | ||
2790 | fi | ||
2791 | else | ||
2792 | ac_cpp_err=yes | ||
2793 | fi | ||
2794 | if test -z "$ac_cpp_err"; then | ||
2795 | : | ||
2796 | else | ||
2797 | echo "$as_me: failed program was:" >&5 | ||
2798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2799 | |||
2800 | # Broken: fails on valid input. | ||
2801 | continue | ||
2802 | fi | ||
2803 | rm -f conftest.err conftest.$ac_ext | ||
2804 | |||
2805 | # OK, works on sane cases. Now check whether non-existent headers | ||
2806 | # can be detected and how. | ||
2807 | cat >conftest.$ac_ext <<_ACEOF | ||
2808 | /* confdefs.h. */ | ||
2809 | _ACEOF | ||
2810 | cat confdefs.h >>conftest.$ac_ext | ||
2811 | cat >>conftest.$ac_ext <<_ACEOF | ||
2812 | /* end confdefs.h. */ | ||
2813 | #include <ac_nonexistent.h> | ||
2814 | _ACEOF | ||
2815 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
2816 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
2817 | ac_status=$? | ||
2818 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2819 | rm -f conftest.er1 | ||
2820 | cat conftest.err >&5 | ||
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2822 | (exit $ac_status); } >/dev/null; then | ||
2823 | if test -s conftest.err; then | ||
2824 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
2825 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
2826 | else | ||
2827 | ac_cpp_err= | ||
2828 | fi | ||
2829 | else | ||
2830 | ac_cpp_err=yes | ||
2831 | fi | ||
2832 | if test -z "$ac_cpp_err"; then | ||
2833 | # Broken: success on invalid input. | ||
2834 | continue | ||
2835 | else | ||
2836 | echo "$as_me: failed program was:" >&5 | ||
2837 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2838 | |||
2839 | # Passes both tests. | ||
2840 | ac_preproc_ok=: | ||
2841 | break | ||
2842 | fi | ||
2843 | rm -f conftest.err conftest.$ac_ext | ||
2844 | |||
2845 | done | ||
2846 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2847 | rm -f conftest.err conftest.$ac_ext | ||
2848 | if $ac_preproc_ok; then | ||
2849 | : | ||
2850 | else | ||
2851 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
2852 | See \`config.log' for more details." >&5 | ||
2853 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
2854 | See \`config.log' for more details." >&2;} | ||
2855 | { (exit 1); exit 1; }; } | ||
2856 | fi | ||
2857 | |||
2858 | ac_ext=c | ||
2859 | ac_cpp='$CPP $CPPFLAGS' | ||
2860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2863 | |||
2864 | if test -n "$ac_tool_prefix"; then | ||
2865 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
2866 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
2867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2869 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2871 | else | ||
2872 | if test -n "$RANLIB"; then | ||
2873 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
2874 | else | ||
2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2876 | for as_dir in $PATH | ||
2877 | do | ||
2878 | IFS=$as_save_IFS | ||
2879 | test -z "$as_dir" && as_dir=. | ||
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2882 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
2883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2884 | break 2 | ||
2885 | fi | ||
2886 | done | ||
2887 | done | ||
2888 | |||
2889 | fi | ||
2890 | fi | ||
2891 | RANLIB=$ac_cv_prog_RANLIB | ||
2892 | if test -n "$RANLIB"; then | ||
2893 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
2894 | echo "${ECHO_T}$RANLIB" >&6 | ||
2895 | else | ||
2896 | echo "$as_me:$LINENO: result: no" >&5 | ||
2897 | echo "${ECHO_T}no" >&6 | ||
2898 | fi | ||
2899 | |||
2900 | fi | ||
2901 | if test -z "$ac_cv_prog_RANLIB"; then | ||
2902 | ac_ct_RANLIB=$RANLIB | ||
2903 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
2904 | set dummy ranlib; ac_word=$2 | ||
2905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2907 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2909 | else | ||
2910 | if test -n "$ac_ct_RANLIB"; then | ||
2911 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
2912 | else | ||
2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2914 | for as_dir in $PATH | ||
2915 | do | ||
2916 | IFS=$as_save_IFS | ||
2917 | test -z "$as_dir" && as_dir=. | ||
2918 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2920 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
2921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2922 | break 2 | ||
2923 | fi | ||
2924 | done | ||
2925 | done | ||
2926 | |||
2927 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
2928 | fi | ||
2929 | fi | ||
2930 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
2931 | if test -n "$ac_ct_RANLIB"; then | ||
2932 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
2933 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
2934 | else | ||
2935 | echo "$as_me:$LINENO: result: no" >&5 | ||
2936 | echo "${ECHO_T}no" >&6 | ||
2937 | fi | ||
2938 | |||
2939 | RANLIB=$ac_ct_RANLIB | ||
2940 | else | ||
2941 | RANLIB="$ac_cv_prog_RANLIB" | ||
2942 | fi | ||
2943 | |||
2944 | # Find a good install program. We prefer a C program (faster), | ||
2945 | # so one script is as good as another. But avoid the broken or | ||
2946 | # incompatible versions: | ||
2947 | # SysV /etc/install, /usr/sbin/install | ||
2948 | # SunOS /usr/etc/install | ||
2949 | # IRIX /sbin/install | ||
2950 | # AIX /bin/install | ||
2951 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2952 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2953 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2954 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2955 | # OS/2's system install, which has a completely different semantic | ||
2956 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2957 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2958 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
2959 | if test -z "$INSTALL"; then | ||
2960 | if test "${ac_cv_path_install+set}" = set; then | ||
2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2962 | else | ||
2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2964 | for as_dir in $PATH | ||
2965 | do | ||
2966 | IFS=$as_save_IFS | ||
2967 | test -z "$as_dir" && as_dir=. | ||
2968 | # Account for people who put trailing slashes in PATH elements. | ||
2969 | case $as_dir/ in | ||
2970 | ./ | .// | /cC/* | \ | ||
2971 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2972 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2973 | /usr/ucb/* ) ;; | ||
2974 | *) | ||
2975 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2976 | # Don't use installbsd from OSF since it installs stuff as root | ||
2977 | # by default. | ||
2978 | for ac_prog in ginstall scoinst install; do | ||
2979 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2980 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
2981 | if test $ac_prog = install && | ||
2982 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2983 | # AIX install. It has an incompatible calling convention. | ||
2984 | : | ||
2985 | elif test $ac_prog = install && | ||
2986 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2987 | # program-specific install script used by HP pwplus--don't use. | ||
2988 | : | ||
2989 | else | ||
2990 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2991 | break 3 | ||
2992 | fi | ||
2993 | fi | ||
2994 | done | ||
2995 | done | ||
2996 | ;; | ||
2997 | esac | ||
2998 | done | ||
2999 | |||
3000 | |||
3001 | fi | ||
3002 | if test "${ac_cv_path_install+set}" = set; then | ||
3003 | INSTALL=$ac_cv_path_install | ||
3004 | else | ||
3005 | # As a last resort, use the slow shell script. We don't cache a | ||
3006 | # path for INSTALL within a source directory, because that will | ||
3007 | # break other packages using the cache if that directory is | ||
3008 | # removed, or if the path is relative. | ||
3009 | INSTALL=$ac_install_sh | ||
3010 | fi | ||
3011 | fi | ||
3012 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
3013 | echo "${ECHO_T}$INSTALL" >&6 | ||
3014 | |||
3015 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3016 | # It thinks the first close brace ends the variable substitution. | ||
3017 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3018 | |||
3019 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3020 | |||
3021 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3022 | |||
3023 | # Extract the first word of "ar", so it can be a program name with args. | ||
3024 | set dummy ar; ac_word=$2 | ||
3025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3027 | if test "${ac_cv_path_AR+set}" = set; then | ||
3028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3029 | else | ||
3030 | case $AR in | ||
3031 | [\\/]* | ?:[\\/]*) | ||
3032 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
3033 | ;; | ||
3034 | *) | ||
3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3036 | for as_dir in $PATH | ||
3037 | do | ||
3038 | IFS=$as_save_IFS | ||
3039 | test -z "$as_dir" && as_dir=. | ||
3040 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3042 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
3043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3044 | break 2 | ||
3045 | fi | ||
3046 | done | ||
3047 | done | ||
3048 | |||
3049 | ;; | ||
3050 | esac | ||
3051 | fi | ||
3052 | AR=$ac_cv_path_AR | ||
3053 | |||
3054 | if test -n "$AR"; then | ||
3055 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
3056 | echo "${ECHO_T}$AR" >&6 | ||
3057 | else | ||
3058 | echo "$as_me:$LINENO: result: no" >&5 | ||
3059 | echo "${ECHO_T}no" >&6 | ||
3060 | fi | ||
3061 | |||
3062 | # Extract the first word of "cat", so it can be a program name with args. | ||
3063 | set dummy cat; ac_word=$2 | ||
3064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3066 | if test "${ac_cv_path_CAT+set}" = set; then | ||
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3068 | else | ||
3069 | case $CAT in | ||
3070 | [\\/]* | ?:[\\/]*) | ||
3071 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
3072 | ;; | ||
3073 | *) | ||
3074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3075 | for as_dir in $PATH | ||
3076 | do | ||
3077 | IFS=$as_save_IFS | ||
3078 | test -z "$as_dir" && as_dir=. | ||
3079 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3081 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
3082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3083 | break 2 | ||
3084 | fi | ||
3085 | done | ||
3086 | done | ||
3087 | |||
3088 | ;; | ||
3089 | esac | ||
3090 | fi | ||
3091 | CAT=$ac_cv_path_CAT | ||
3092 | |||
3093 | if test -n "$CAT"; then | ||
3094 | echo "$as_me:$LINENO: result: $CAT" >&5 | ||
3095 | echo "${ECHO_T}$CAT" >&6 | ||
3096 | else | ||
3097 | echo "$as_me:$LINENO: result: no" >&5 | ||
3098 | echo "${ECHO_T}no" >&6 | ||
3099 | fi | ||
3100 | |||
3101 | # Extract the first word of "kill", so it can be a program name with args. | ||
3102 | set dummy kill; ac_word=$2 | ||
3103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3105 | if test "${ac_cv_path_KILL+set}" = set; then | ||
3106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3107 | else | ||
3108 | case $KILL in | ||
3109 | [\\/]* | ?:[\\/]*) | ||
3110 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
3111 | ;; | ||
3112 | *) | ||
3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3114 | for as_dir in $PATH | ||
3115 | do | ||
3116 | IFS=$as_save_IFS | ||
3117 | test -z "$as_dir" && as_dir=. | ||
3118 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3120 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
3121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3122 | break 2 | ||
3123 | fi | ||
3124 | done | ||
3125 | done | ||
3126 | |||
3127 | ;; | ||
3128 | esac | ||
3129 | fi | ||
3130 | KILL=$ac_cv_path_KILL | ||
3131 | |||
3132 | if test -n "$KILL"; then | ||
3133 | echo "$as_me:$LINENO: result: $KILL" >&5 | ||
3134 | echo "${ECHO_T}$KILL" >&6 | ||
3135 | else | ||
3136 | echo "$as_me:$LINENO: result: no" >&5 | ||
3137 | echo "${ECHO_T}no" >&6 | ||
3138 | fi | ||
3139 | |||
3140 | for ac_prog in perl5 perl | ||
3141 | do | ||
3142 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3143 | set dummy $ac_prog; ac_word=$2 | ||
3144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3146 | if test "${ac_cv_path_PERL+set}" = set; then | ||
3147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3148 | else | ||
3149 | case $PERL in | ||
3150 | [\\/]* | ?:[\\/]*) | ||
3151 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
3152 | ;; | ||
3153 | *) | ||
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3155 | for as_dir in $PATH | ||
3156 | do | ||
3157 | IFS=$as_save_IFS | ||
3158 | test -z "$as_dir" && as_dir=. | ||
3159 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3160 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3161 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
3162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3163 | break 2 | ||
3164 | fi | ||
3165 | done | ||
3166 | done | ||
3167 | |||
3168 | ;; | ||
3169 | esac | ||
3170 | fi | ||
3171 | PERL=$ac_cv_path_PERL | ||
3172 | |||
3173 | if test -n "$PERL"; then | ||
3174 | echo "$as_me:$LINENO: result: $PERL" >&5 | ||
3175 | echo "${ECHO_T}$PERL" >&6 | ||
3176 | else | ||
3177 | echo "$as_me:$LINENO: result: no" >&5 | ||
3178 | echo "${ECHO_T}no" >&6 | ||
3179 | fi | ||
3180 | |||
3181 | test -n "$PERL" && break | ||
3182 | done | ||
3183 | |||
3184 | # Extract the first word of "sed", so it can be a program name with args. | ||
3185 | set dummy sed; ac_word=$2 | ||
3186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3188 | if test "${ac_cv_path_SED+set}" = set; then | ||
3189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3190 | else | ||
3191 | case $SED in | ||
3192 | [\\/]* | ?:[\\/]*) | ||
3193 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
3194 | ;; | ||
3195 | *) | ||
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3197 | for as_dir in $PATH | ||
3198 | do | ||
3199 | IFS=$as_save_IFS | ||
3200 | test -z "$as_dir" && as_dir=. | ||
3201 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3203 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
3204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3205 | break 2 | ||
3206 | fi | ||
3207 | done | ||
3208 | done | ||
3209 | |||
3210 | ;; | ||
3211 | esac | ||
3212 | fi | ||
3213 | SED=$ac_cv_path_SED | ||
3214 | |||
3215 | if test -n "$SED"; then | ||
3216 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3217 | echo "${ECHO_T}$SED" >&6 | ||
3218 | else | ||
3219 | echo "$as_me:$LINENO: result: no" >&5 | ||
3220 | echo "${ECHO_T}no" >&6 | ||
3221 | fi | ||
3222 | |||
3223 | |||
3224 | # Extract the first word of "ent", so it can be a program name with args. | ||
3225 | set dummy ent; ac_word=$2 | ||
3226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3228 | if test "${ac_cv_path_ENT+set}" = set; then | ||
3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3230 | else | ||
3231 | case $ENT in | ||
3232 | [\\/]* | ?:[\\/]*) | ||
3233 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
3234 | ;; | ||
3235 | *) | ||
3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3237 | for as_dir in $PATH | ||
3238 | do | ||
3239 | IFS=$as_save_IFS | ||
3240 | test -z "$as_dir" && as_dir=. | ||
3241 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3242 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3243 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
3244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3245 | break 2 | ||
3246 | fi | ||
3247 | done | ||
3248 | done | ||
3249 | |||
3250 | ;; | ||
3251 | esac | ||
3252 | fi | ||
3253 | ENT=$ac_cv_path_ENT | ||
3254 | |||
3255 | if test -n "$ENT"; then | ||
3256 | echo "$as_me:$LINENO: result: $ENT" >&5 | ||
3257 | echo "${ECHO_T}$ENT" >&6 | ||
3258 | else | ||
3259 | echo "$as_me:$LINENO: result: no" >&5 | ||
3260 | echo "${ECHO_T}no" >&6 | ||
3261 | fi | ||
3262 | |||
3263 | |||
3264 | # Extract the first word of "bash", so it can be a program name with args. | ||
3265 | set dummy bash; ac_word=$2 | ||
3266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3268 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3270 | else | ||
3271 | case $TEST_MINUS_S_SH in | ||
3272 | [\\/]* | ?:[\\/]*) | ||
3273 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3274 | ;; | ||
3275 | *) | ||
3276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3277 | for as_dir in $PATH | ||
3278 | do | ||
3279 | IFS=$as_save_IFS | ||
3280 | test -z "$as_dir" && as_dir=. | ||
3281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3282 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3283 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3285 | break 2 | ||
3286 | fi | ||
3287 | done | ||
3288 | done | ||
3289 | |||
3290 | ;; | ||
3291 | esac | ||
3292 | fi | ||
3293 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3294 | |||
3295 | if test -n "$TEST_MINUS_S_SH"; then | ||
3296 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3297 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3298 | else | ||
3299 | echo "$as_me:$LINENO: result: no" >&5 | ||
3300 | echo "${ECHO_T}no" >&6 | ||
3301 | fi | ||
3302 | |||
3303 | # Extract the first word of "ksh", so it can be a program name with args. | ||
3304 | set dummy ksh; ac_word=$2 | ||
3305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3307 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3309 | else | ||
3310 | case $TEST_MINUS_S_SH in | ||
3311 | [\\/]* | ?:[\\/]*) | ||
3312 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3313 | ;; | ||
3314 | *) | ||
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3316 | for as_dir in $PATH | ||
3317 | do | ||
3318 | IFS=$as_save_IFS | ||
3319 | test -z "$as_dir" && as_dir=. | ||
3320 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3322 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3324 | break 2 | ||
3325 | fi | ||
3326 | done | ||
3327 | done | ||
3328 | |||
3329 | ;; | ||
3330 | esac | ||
3331 | fi | ||
3332 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3333 | |||
3334 | if test -n "$TEST_MINUS_S_SH"; then | ||
3335 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3336 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3337 | else | ||
3338 | echo "$as_me:$LINENO: result: no" >&5 | ||
3339 | echo "${ECHO_T}no" >&6 | ||
3340 | fi | ||
3341 | |||
3342 | # Extract the first word of "sh", so it can be a program name with args. | ||
3343 | set dummy sh; ac_word=$2 | ||
3344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3346 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
3347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3348 | else | ||
3349 | case $TEST_MINUS_S_SH in | ||
3350 | [\\/]* | ?:[\\/]*) | ||
3351 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
3352 | ;; | ||
3353 | *) | ||
3354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3355 | for as_dir in $PATH | ||
3356 | do | ||
3357 | IFS=$as_save_IFS | ||
3358 | test -z "$as_dir" && as_dir=. | ||
3359 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3361 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3363 | break 2 | ||
3364 | fi | ||
3365 | done | ||
3366 | done | ||
3367 | |||
3368 | ;; | ||
3369 | esac | ||
3370 | fi | ||
3371 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
3372 | |||
3373 | if test -n "$TEST_MINUS_S_SH"; then | ||
3374 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
3375 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | ||
3376 | else | ||
3377 | echo "$as_me:$LINENO: result: no" >&5 | ||
3378 | echo "${ECHO_T}no" >&6 | ||
3379 | fi | ||
3380 | |||
3381 | # Extract the first word of "sh", so it can be a program name with args. | ||
3382 | set dummy sh; ac_word=$2 | ||
3383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3385 | if test "${ac_cv_path_SH+set}" = set; then | ||
3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3387 | else | ||
3388 | case $SH in | ||
3389 | [\\/]* | ?:[\\/]*) | ||
3390 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
3391 | ;; | ||
3392 | *) | ||
3393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3394 | for as_dir in $PATH | ||
3395 | do | ||
3396 | IFS=$as_save_IFS | ||
3397 | test -z "$as_dir" && as_dir=. | ||
3398 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3400 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
3401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3402 | break 2 | ||
3403 | fi | ||
3404 | done | ||
3405 | done | ||
3406 | |||
3407 | ;; | ||
3408 | esac | ||
3409 | fi | ||
3410 | SH=$ac_cv_path_SH | ||
3411 | |||
3412 | if test -n "$SH"; then | ||
3413 | echo "$as_me:$LINENO: result: $SH" >&5 | ||
3414 | echo "${ECHO_T}$SH" >&6 | ||
3415 | else | ||
3416 | echo "$as_me:$LINENO: result: no" >&5 | ||
3417 | echo "${ECHO_T}no" >&6 | ||
3418 | fi | ||
3419 | |||
3420 | TEST_SHELL=sh | ||
3421 | |||
3422 | |||
3423 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
3424 | set dummy groupadd; ac_word=$2 | ||
3425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3427 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3429 | else | ||
3430 | case $PATH_GROUPADD_PROG in | ||
3431 | [\\/]* | ?:[\\/]*) | ||
3432 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
3433 | ;; | ||
3434 | *) | ||
3435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3436 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3437 | do | ||
3438 | IFS=$as_save_IFS | ||
3439 | test -z "$as_dir" && as_dir=. | ||
3440 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3442 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3444 | break 2 | ||
3445 | fi | ||
3446 | done | ||
3447 | done | ||
3448 | |||
3449 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
3450 | ;; | ||
3451 | esac | ||
3452 | fi | ||
3453 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
3454 | |||
3455 | if test -n "$PATH_GROUPADD_PROG"; then | ||
3456 | echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
3457 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6 | ||
3458 | else | ||
3459 | echo "$as_me:$LINENO: result: no" >&5 | ||
3460 | echo "${ECHO_T}no" >&6 | ||
3461 | fi | ||
3462 | |||
3463 | # Extract the first word of "useradd", so it can be a program name with args. | ||
3464 | set dummy useradd; ac_word=$2 | ||
3465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3467 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3469 | else | ||
3470 | case $PATH_USERADD_PROG in | ||
3471 | [\\/]* | ?:[\\/]*) | ||
3472 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
3473 | ;; | ||
3474 | *) | ||
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3476 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
3477 | do | ||
3478 | IFS=$as_save_IFS | ||
3479 | test -z "$as_dir" && as_dir=. | ||
3480 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3482 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3484 | break 2 | ||
3485 | fi | ||
3486 | done | ||
3487 | done | ||
3488 | |||
3489 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
3490 | ;; | ||
3491 | esac | ||
3492 | fi | ||
3493 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
3494 | |||
3495 | if test -n "$PATH_USERADD_PROG"; then | ||
3496 | echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
3497 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6 | ||
3498 | else | ||
3499 | echo "$as_me:$LINENO: result: no" >&5 | ||
3500 | echo "${ECHO_T}no" >&6 | ||
3501 | fi | ||
3502 | |||
3503 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
3504 | set dummy pkgmk; ac_word=$2 | ||
3505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3507 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
3508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3509 | else | ||
3510 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3511 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
3512 | else | ||
3513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3514 | for as_dir in $PATH | ||
3515 | do | ||
3516 | IFS=$as_save_IFS | ||
3517 | test -z "$as_dir" && as_dir=. | ||
3518 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3520 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
3521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3522 | break 2 | ||
3523 | fi | ||
3524 | done | ||
3525 | done | ||
3526 | |||
3527 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
3528 | fi | ||
3529 | fi | ||
3530 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
3531 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
3532 | echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
3533 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6 | ||
3534 | else | ||
3535 | echo "$as_me:$LINENO: result: no" >&5 | ||
3536 | echo "${ECHO_T}no" >&6 | ||
3537 | fi | ||
3538 | |||
3539 | |||
3540 | # System features | ||
3541 | # Check whether --enable-largefile or --disable-largefile was given. | ||
3542 | if test "${enable_largefile+set}" = set; then | ||
3543 | enableval="$enable_largefile" | ||
3544 | |||
3545 | fi; | ||
3546 | if test "$enable_largefile" != no; then | ||
3547 | |||
3548 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
3549 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | ||
3550 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3552 | else | ||
3553 | ac_cv_sys_largefile_CC=no | ||
3554 | if test "$GCC" != yes; then | ||
3555 | ac_save_CC=$CC | ||
3556 | while :; do | ||
3557 | # IRIX 6.2 and later do not support large files by default, | ||
3558 | # so use the C compiler's -n32 option if that helps. | ||
3559 | cat >conftest.$ac_ext <<_ACEOF | ||
3560 | /* confdefs.h. */ | ||
3561 | _ACEOF | ||
3562 | cat confdefs.h >>conftest.$ac_ext | ||
3563 | cat >>conftest.$ac_ext <<_ACEOF | ||
3564 | /* end confdefs.h. */ | ||
3565 | #include <sys/types.h> | ||
3566 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3567 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3568 | since some C++ compilers masquerading as C compilers | ||
3569 | incorrectly reject 9223372036854775807. */ | ||
3570 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3571 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3572 | && LARGE_OFF_T % 2147483647 == 1) | ||
3573 | ? 1 : -1]; | ||
3574 | int | ||
3575 | main () | ||
3576 | { | ||
3577 | |||
3578 | ; | ||
3579 | return 0; | ||
3580 | } | ||
3581 | _ACEOF | ||
3582 | rm -f conftest.$ac_objext | ||
3583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3584 | (eval $ac_compile) 2>conftest.er1 | ||
3585 | ac_status=$? | ||
3586 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3587 | rm -f conftest.er1 | ||
3588 | cat conftest.err >&5 | ||
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3590 | (exit $ac_status); } && | ||
3591 | { ac_try='test -z "$ac_c_werror_flag" | ||
3592 | || test ! -s conftest.err' | ||
3593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3594 | (eval $ac_try) 2>&5 | ||
3595 | ac_status=$? | ||
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3597 | (exit $ac_status); }; } && | ||
3598 | { ac_try='test -s conftest.$ac_objext' | ||
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3600 | (eval $ac_try) 2>&5 | ||
3601 | ac_status=$? | ||
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3603 | (exit $ac_status); }; }; then | ||
3604 | break | ||
3605 | else | ||
3606 | echo "$as_me: failed program was:" >&5 | ||
3607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3608 | |||
3609 | fi | ||
3610 | rm -f conftest.err conftest.$ac_objext | ||
3611 | CC="$CC -n32" | ||
3612 | rm -f conftest.$ac_objext | ||
3613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3614 | (eval $ac_compile) 2>conftest.er1 | ||
3615 | ac_status=$? | ||
3616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3617 | rm -f conftest.er1 | ||
3618 | cat conftest.err >&5 | ||
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3620 | (exit $ac_status); } && | ||
3621 | { ac_try='test -z "$ac_c_werror_flag" | ||
3622 | || test ! -s conftest.err' | ||
3623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3624 | (eval $ac_try) 2>&5 | ||
3625 | ac_status=$? | ||
3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3627 | (exit $ac_status); }; } && | ||
3628 | { ac_try='test -s conftest.$ac_objext' | ||
3629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3630 | (eval $ac_try) 2>&5 | ||
3631 | ac_status=$? | ||
3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3633 | (exit $ac_status); }; }; then | ||
3634 | ac_cv_sys_largefile_CC=' -n32'; break | ||
3635 | else | ||
3636 | echo "$as_me: failed program was:" >&5 | ||
3637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3638 | |||
3639 | fi | ||
3640 | rm -f conftest.err conftest.$ac_objext | ||
3641 | break | ||
3642 | done | ||
3643 | CC=$ac_save_CC | ||
3644 | rm -f conftest.$ac_ext | ||
3645 | fi | ||
3646 | fi | ||
3647 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
3648 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | ||
3649 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
3650 | CC=$CC$ac_cv_sys_largefile_CC | ||
3651 | fi | ||
3652 | |||
3653 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
3654 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | ||
3655 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3657 | else | ||
3658 | while :; do | ||
3659 | ac_cv_sys_file_offset_bits=no | ||
3660 | cat >conftest.$ac_ext <<_ACEOF | ||
3661 | /* confdefs.h. */ | ||
3662 | _ACEOF | ||
3663 | cat confdefs.h >>conftest.$ac_ext | ||
3664 | cat >>conftest.$ac_ext <<_ACEOF | ||
3665 | /* end confdefs.h. */ | ||
3666 | #include <sys/types.h> | ||
3667 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3668 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3669 | since some C++ compilers masquerading as C compilers | ||
3670 | incorrectly reject 9223372036854775807. */ | ||
3671 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3672 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3673 | && LARGE_OFF_T % 2147483647 == 1) | ||
3674 | ? 1 : -1]; | ||
3675 | int | ||
3676 | main () | ||
3677 | { | ||
3678 | |||
3679 | ; | ||
3680 | return 0; | ||
3681 | } | ||
3682 | _ACEOF | ||
3683 | rm -f conftest.$ac_objext | ||
3684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3685 | (eval $ac_compile) 2>conftest.er1 | ||
3686 | ac_status=$? | ||
3687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3688 | rm -f conftest.er1 | ||
3689 | cat conftest.err >&5 | ||
3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3691 | (exit $ac_status); } && | ||
3692 | { ac_try='test -z "$ac_c_werror_flag" | ||
3693 | || test ! -s conftest.err' | ||
3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3695 | (eval $ac_try) 2>&5 | ||
3696 | ac_status=$? | ||
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3698 | (exit $ac_status); }; } && | ||
3699 | { ac_try='test -s conftest.$ac_objext' | ||
3700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3701 | (eval $ac_try) 2>&5 | ||
3702 | ac_status=$? | ||
3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3704 | (exit $ac_status); }; }; then | ||
3705 | break | ||
3706 | else | ||
3707 | echo "$as_me: failed program was:" >&5 | ||
3708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3709 | |||
3710 | fi | ||
3711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3712 | cat >conftest.$ac_ext <<_ACEOF | ||
3713 | /* confdefs.h. */ | ||
3714 | _ACEOF | ||
3715 | cat confdefs.h >>conftest.$ac_ext | ||
3716 | cat >>conftest.$ac_ext <<_ACEOF | ||
3717 | /* end confdefs.h. */ | ||
3718 | #define _FILE_OFFSET_BITS 64 | ||
3719 | #include <sys/types.h> | ||
3720 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3721 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3722 | since some C++ compilers masquerading as C compilers | ||
3723 | incorrectly reject 9223372036854775807. */ | ||
3724 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3725 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3726 | && LARGE_OFF_T % 2147483647 == 1) | ||
3727 | ? 1 : -1]; | ||
3728 | int | ||
3729 | main () | ||
3730 | { | ||
3731 | |||
3732 | ; | ||
3733 | return 0; | ||
3734 | } | ||
3735 | _ACEOF | ||
3736 | rm -f conftest.$ac_objext | ||
3737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3738 | (eval $ac_compile) 2>conftest.er1 | ||
3739 | ac_status=$? | ||
3740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3741 | rm -f conftest.er1 | ||
3742 | cat conftest.err >&5 | ||
3743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3744 | (exit $ac_status); } && | ||
3745 | { ac_try='test -z "$ac_c_werror_flag" | ||
3746 | || test ! -s conftest.err' | ||
3747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3748 | (eval $ac_try) 2>&5 | ||
3749 | ac_status=$? | ||
3750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3751 | (exit $ac_status); }; } && | ||
3752 | { ac_try='test -s conftest.$ac_objext' | ||
3753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3754 | (eval $ac_try) 2>&5 | ||
3755 | ac_status=$? | ||
3756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3757 | (exit $ac_status); }; }; then | ||
3758 | ac_cv_sys_file_offset_bits=64; break | ||
3759 | else | ||
3760 | echo "$as_me: failed program was:" >&5 | ||
3761 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3762 | |||
3763 | fi | ||
3764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3765 | break | ||
3766 | done | ||
3767 | fi | ||
3768 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
3769 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | ||
3770 | if test "$ac_cv_sys_file_offset_bits" != no; then | ||
3771 | |||
3772 | cat >>confdefs.h <<_ACEOF | ||
3773 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
3774 | _ACEOF | ||
3775 | |||
3776 | fi | ||
3777 | rm -f conftest* | ||
3778 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
3779 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | ||
3780 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3782 | else | ||
3783 | while :; do | ||
3784 | ac_cv_sys_large_files=no | ||
3785 | cat >conftest.$ac_ext <<_ACEOF | ||
3786 | /* confdefs.h. */ | ||
3787 | _ACEOF | ||
3788 | cat confdefs.h >>conftest.$ac_ext | ||
3789 | cat >>conftest.$ac_ext <<_ACEOF | ||
3790 | /* end confdefs.h. */ | ||
3791 | #include <sys/types.h> | ||
3792 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3793 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3794 | since some C++ compilers masquerading as C compilers | ||
3795 | incorrectly reject 9223372036854775807. */ | ||
3796 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3797 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3798 | && LARGE_OFF_T % 2147483647 == 1) | ||
3799 | ? 1 : -1]; | ||
3800 | int | ||
3801 | main () | ||
3802 | { | ||
3803 | |||
3804 | ; | ||
3805 | return 0; | ||
3806 | } | ||
3807 | _ACEOF | ||
3808 | rm -f conftest.$ac_objext | ||
3809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3810 | (eval $ac_compile) 2>conftest.er1 | ||
3811 | ac_status=$? | ||
3812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3813 | rm -f conftest.er1 | ||
3814 | cat conftest.err >&5 | ||
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3816 | (exit $ac_status); } && | ||
3817 | { ac_try='test -z "$ac_c_werror_flag" | ||
3818 | || test ! -s conftest.err' | ||
3819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3820 | (eval $ac_try) 2>&5 | ||
3821 | ac_status=$? | ||
3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3823 | (exit $ac_status); }; } && | ||
3824 | { ac_try='test -s conftest.$ac_objext' | ||
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3826 | (eval $ac_try) 2>&5 | ||
3827 | ac_status=$? | ||
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3829 | (exit $ac_status); }; }; then | ||
3830 | break | ||
3831 | else | ||
3832 | echo "$as_me: failed program was:" >&5 | ||
3833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3834 | |||
3835 | fi | ||
3836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3837 | cat >conftest.$ac_ext <<_ACEOF | ||
3838 | /* confdefs.h. */ | ||
3839 | _ACEOF | ||
3840 | cat confdefs.h >>conftest.$ac_ext | ||
3841 | cat >>conftest.$ac_ext <<_ACEOF | ||
3842 | /* end confdefs.h. */ | ||
3843 | #define _LARGE_FILES 1 | ||
3844 | #include <sys/types.h> | ||
3845 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
3846 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
3847 | since some C++ compilers masquerading as C compilers | ||
3848 | incorrectly reject 9223372036854775807. */ | ||
3849 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
3850 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
3851 | && LARGE_OFF_T % 2147483647 == 1) | ||
3852 | ? 1 : -1]; | ||
3853 | int | ||
3854 | main () | ||
3855 | { | ||
3856 | |||
3857 | ; | ||
3858 | return 0; | ||
3859 | } | ||
3860 | _ACEOF | ||
3861 | rm -f conftest.$ac_objext | ||
3862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3863 | (eval $ac_compile) 2>conftest.er1 | ||
3864 | ac_status=$? | ||
3865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3866 | rm -f conftest.er1 | ||
3867 | cat conftest.err >&5 | ||
3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3869 | (exit $ac_status); } && | ||
3870 | { ac_try='test -z "$ac_c_werror_flag" | ||
3871 | || test ! -s conftest.err' | ||
3872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3873 | (eval $ac_try) 2>&5 | ||
3874 | ac_status=$? | ||
3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3876 | (exit $ac_status); }; } && | ||
3877 | { ac_try='test -s conftest.$ac_objext' | ||
3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3879 | (eval $ac_try) 2>&5 | ||
3880 | ac_status=$? | ||
3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3882 | (exit $ac_status); }; }; then | ||
3883 | ac_cv_sys_large_files=1; break | ||
3884 | else | ||
3885 | echo "$as_me: failed program was:" >&5 | ||
3886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3887 | |||
3888 | fi | ||
3889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3890 | break | ||
3891 | done | ||
3892 | fi | ||
3893 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
3894 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | ||
3895 | if test "$ac_cv_sys_large_files" != no; then | ||
3896 | |||
3897 | cat >>confdefs.h <<_ACEOF | ||
3898 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
3899 | _ACEOF | ||
3900 | |||
3901 | fi | ||
3902 | rm -f conftest* | ||
3903 | fi | ||
3904 | |||
3905 | |||
3906 | if test -z "$AR" ; then | ||
3907 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
3908 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
3909 | { (exit 1); exit 1; }; } | ||
3910 | fi | ||
3911 | |||
3912 | # Use LOGIN_PROGRAM from environment if possible | ||
3913 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
3914 | cat >>confdefs.h <<_ACEOF | ||
3915 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
3916 | _ACEOF | ||
3917 | |||
3918 | else | ||
3919 | # Search for login | ||
3920 | # Extract the first word of "login", so it can be a program name with args. | ||
3921 | set dummy login; ac_word=$2 | ||
3922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3924 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3926 | else | ||
3927 | case $LOGIN_PROGRAM_FALLBACK in | ||
3928 | [\\/]* | ?:[\\/]*) | ||
3929 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
3930 | ;; | ||
3931 | *) | ||
3932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3933 | for as_dir in $PATH | ||
3934 | do | ||
3935 | IFS=$as_save_IFS | ||
3936 | test -z "$as_dir" && as_dir=. | ||
3937 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3939 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
3940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3941 | break 2 | ||
3942 | fi | ||
3943 | done | ||
3944 | done | ||
3945 | |||
3946 | ;; | ||
3947 | esac | ||
3948 | fi | ||
3949 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
3950 | |||
3951 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
3952 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
3953 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | ||
3954 | else | ||
3955 | echo "$as_me:$LINENO: result: no" >&5 | ||
3956 | echo "${ECHO_T}no" >&6 | ||
3957 | fi | ||
3958 | |||
3959 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
3960 | cat >>confdefs.h <<_ACEOF | ||
3961 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
3962 | _ACEOF | ||
3963 | |||
3964 | fi | ||
3965 | fi | ||
3966 | |||
3967 | # Extract the first word of "passwd", so it can be a program name with args. | ||
3968 | set dummy passwd; ac_word=$2 | ||
3969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
3971 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3973 | else | ||
3974 | case $PATH_PASSWD_PROG in | ||
3975 | [\\/]* | ?:[\\/]*) | ||
3976 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
3977 | ;; | ||
3978 | *) | ||
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3980 | for as_dir in $PATH | ||
3981 | do | ||
3982 | IFS=$as_save_IFS | ||
3983 | test -z "$as_dir" && as_dir=. | ||
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3985 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3986 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
3987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3988 | break 2 | ||
3989 | fi | ||
3990 | done | ||
3991 | done | ||
3992 | |||
3993 | ;; | ||
3994 | esac | ||
3995 | fi | ||
3996 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
3997 | |||
3998 | if test -n "$PATH_PASSWD_PROG"; then | ||
3999 | echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
4000 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6 | ||
4001 | else | ||
4002 | echo "$as_me:$LINENO: result: no" >&5 | ||
4003 | echo "${ECHO_T}no" >&6 | ||
4004 | fi | ||
4005 | |||
4006 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
4007 | cat >>confdefs.h <<_ACEOF | ||
4008 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
4009 | _ACEOF | ||
4010 | |||
4011 | fi | ||
4012 | |||
4013 | if test -z "$LD" ; then | ||
4014 | LD=$CC | ||
4015 | fi | ||
4016 | |||
4017 | |||
4018 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
4019 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
4020 | if test "${ac_cv_c_inline+set}" = set; then | ||
4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4022 | else | ||
4023 | ac_cv_c_inline=no | ||
4024 | for ac_kw in inline __inline__ __inline; do | ||
4025 | cat >conftest.$ac_ext <<_ACEOF | ||
4026 | /* confdefs.h. */ | ||
4027 | _ACEOF | ||
4028 | cat confdefs.h >>conftest.$ac_ext | ||
4029 | cat >>conftest.$ac_ext <<_ACEOF | ||
4030 | /* end confdefs.h. */ | ||
4031 | #ifndef __cplusplus | ||
4032 | typedef int foo_t; | ||
4033 | static $ac_kw foo_t static_foo () {return 0; } | ||
4034 | $ac_kw foo_t foo () {return 0; } | ||
4035 | #endif | ||
4036 | |||
4037 | _ACEOF | ||
4038 | rm -f conftest.$ac_objext | ||
4039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4040 | (eval $ac_compile) 2>conftest.er1 | ||
4041 | ac_status=$? | ||
4042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4043 | rm -f conftest.er1 | ||
4044 | cat conftest.err >&5 | ||
4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4046 | (exit $ac_status); } && | ||
4047 | { ac_try='test -z "$ac_c_werror_flag" | ||
4048 | || test ! -s conftest.err' | ||
4049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4050 | (eval $ac_try) 2>&5 | ||
4051 | ac_status=$? | ||
4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4053 | (exit $ac_status); }; } && | ||
4054 | { ac_try='test -s conftest.$ac_objext' | ||
4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4056 | (eval $ac_try) 2>&5 | ||
4057 | ac_status=$? | ||
4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4059 | (exit $ac_status); }; }; then | ||
4060 | ac_cv_c_inline=$ac_kw; break | ||
4061 | else | ||
4062 | echo "$as_me: failed program was:" >&5 | ||
4063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4064 | |||
4065 | fi | ||
4066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4067 | done | ||
4068 | |||
4069 | fi | ||
4070 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
4071 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
4072 | |||
4073 | |||
4074 | case $ac_cv_c_inline in | ||
4075 | inline | yes) ;; | ||
4076 | *) | ||
4077 | case $ac_cv_c_inline in | ||
4078 | no) ac_val=;; | ||
4079 | *) ac_val=$ac_cv_c_inline;; | ||
4080 | esac | ||
4081 | cat >>confdefs.h <<_ACEOF | ||
4082 | #ifndef __cplusplus | ||
4083 | #define inline $ac_val | ||
4084 | #endif | ||
4085 | _ACEOF | ||
4086 | ;; | ||
4087 | esac | ||
4088 | |||
4089 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
4090 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | ||
4091 | fi | ||
4092 | |||
4093 | |||
4094 | # Check whether --with-rpath or --without-rpath was given. | ||
4095 | if test "${with_rpath+set}" = set; then | ||
4096 | withval="$with_rpath" | ||
4097 | |||
4098 | if test "x$withval" = "xno" ; then | ||
4099 | need_dash_r="" | ||
4100 | fi | ||
4101 | if test "x$withval" = "xyes" ; then | ||
4102 | need_dash_r=1 | ||
4103 | fi | ||
4104 | |||
4105 | |||
4106 | fi; | ||
4107 | |||
4108 | # Check for some target-specific stuff | ||
4109 | case "$host" in | ||
4110 | *-*-aix*) | ||
4111 | echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
4112 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6 | ||
4113 | if (test -z "$blibpath"); then | ||
4114 | blibpath="/usr/lib:/lib" | ||
4115 | fi | ||
4116 | saved_LDFLAGS="$LDFLAGS" | ||
4117 | for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do | ||
4118 | if (test -z "$blibflags"); then | ||
4119 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
4120 | cat >conftest.$ac_ext <<_ACEOF | ||
4121 | /* confdefs.h. */ | ||
4122 | _ACEOF | ||
4123 | cat confdefs.h >>conftest.$ac_ext | ||
4124 | cat >>conftest.$ac_ext <<_ACEOF | ||
4125 | /* end confdefs.h. */ | ||
4126 | |||
4127 | int | ||
4128 | main () | ||
4129 | { | ||
4130 | |||
4131 | ; | ||
4132 | return 0; | ||
4133 | } | ||
4134 | _ACEOF | ||
4135 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4137 | (eval $ac_link) 2>conftest.er1 | ||
4138 | ac_status=$? | ||
4139 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4140 | rm -f conftest.er1 | ||
4141 | cat conftest.err >&5 | ||
4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4143 | (exit $ac_status); } && | ||
4144 | { ac_try='test -z "$ac_c_werror_flag" | ||
4145 | || test ! -s conftest.err' | ||
4146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4147 | (eval $ac_try) 2>&5 | ||
4148 | ac_status=$? | ||
4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4150 | (exit $ac_status); }; } && | ||
4151 | { ac_try='test -s conftest$ac_exeext' | ||
4152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4153 | (eval $ac_try) 2>&5 | ||
4154 | ac_status=$? | ||
4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4156 | (exit $ac_status); }; }; then | ||
4157 | blibflags=$tryflags | ||
4158 | else | ||
4159 | echo "$as_me: failed program was:" >&5 | ||
4160 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4161 | |||
4162 | fi | ||
4163 | rm -f conftest.err conftest.$ac_objext \ | ||
4164 | conftest$ac_exeext conftest.$ac_ext | ||
4165 | fi | ||
4166 | done | ||
4167 | if (test -z "$blibflags"); then | ||
4168 | echo "$as_me:$LINENO: result: not found" >&5 | ||
4169 | echo "${ECHO_T}not found" >&6 | ||
4170 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
4171 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
4172 | { (exit 1); exit 1; }; } | ||
4173 | else | ||
4174 | echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
4175 | echo "${ECHO_T}$blibflags" >&6 | ||
4176 | fi | ||
4177 | LDFLAGS="$saved_LDFLAGS" | ||
4178 | echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
4179 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | ||
4180 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4182 | else | ||
4183 | cat >conftest.$ac_ext <<_ACEOF | ||
4184 | /* confdefs.h. */ | ||
4185 | _ACEOF | ||
4186 | cat confdefs.h >>conftest.$ac_ext | ||
4187 | cat >>conftest.$ac_ext <<_ACEOF | ||
4188 | /* end confdefs.h. */ | ||
4189 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
4190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4191 | #define authenticate innocuous_authenticate | ||
4192 | |||
4193 | /* System header to define __stub macros and hopefully few prototypes, | ||
4194 | which can conflict with char authenticate (); below. | ||
4195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4196 | <limits.h> exists even on freestanding compilers. */ | ||
4197 | |||
4198 | #ifdef __STDC__ | ||
4199 | # include <limits.h> | ||
4200 | #else | ||
4201 | # include <assert.h> | ||
4202 | #endif | ||
4203 | |||
4204 | #undef authenticate | ||
4205 | |||
4206 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4207 | #ifdef __cplusplus | ||
4208 | extern "C" | ||
4209 | { | ||
4210 | #endif | ||
4211 | /* We use char because int might match the return type of a gcc2 | ||
4212 | builtin and then its argument prototype would still apply. */ | ||
4213 | char authenticate (); | ||
4214 | /* The GNU C library defines this for functions which it implements | ||
4215 | to always fail with ENOSYS. Some functions are actually named | ||
4216 | something starting with __ and the normal name is an alias. */ | ||
4217 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
4218 | choke me | ||
4219 | #else | ||
4220 | char (*f) () = authenticate; | ||
4221 | #endif | ||
4222 | #ifdef __cplusplus | ||
4223 | } | ||
4224 | #endif | ||
4225 | |||
4226 | int | ||
4227 | main () | ||
4228 | { | ||
4229 | return f != authenticate; | ||
4230 | ; | ||
4231 | return 0; | ||
4232 | } | ||
4233 | _ACEOF | ||
4234 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4236 | (eval $ac_link) 2>conftest.er1 | ||
4237 | ac_status=$? | ||
4238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4239 | rm -f conftest.er1 | ||
4240 | cat conftest.err >&5 | ||
4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4242 | (exit $ac_status); } && | ||
4243 | { ac_try='test -z "$ac_c_werror_flag" | ||
4244 | || test ! -s conftest.err' | ||
4245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4246 | (eval $ac_try) 2>&5 | ||
4247 | ac_status=$? | ||
4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4249 | (exit $ac_status); }; } && | ||
4250 | { ac_try='test -s conftest$ac_exeext' | ||
4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4252 | (eval $ac_try) 2>&5 | ||
4253 | ac_status=$? | ||
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4255 | (exit $ac_status); }; }; then | ||
4256 | ac_cv_func_authenticate=yes | ||
4257 | else | ||
4258 | echo "$as_me: failed program was:" >&5 | ||
4259 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4260 | |||
4261 | ac_cv_func_authenticate=no | ||
4262 | fi | ||
4263 | rm -f conftest.err conftest.$ac_objext \ | ||
4264 | conftest$ac_exeext conftest.$ac_ext | ||
4265 | fi | ||
4266 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
4267 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | ||
4268 | if test $ac_cv_func_authenticate = yes; then | ||
4269 | cat >>confdefs.h <<\_ACEOF | ||
4270 | #define WITH_AIXAUTHENTICATE 1 | ||
4271 | _ACEOF | ||
4272 | |||
4273 | else | ||
4274 | echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
4275 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6 | ||
4276 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
4277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4278 | else | ||
4279 | ac_check_lib_save_LIBS=$LIBS | ||
4280 | LIBS="-ls $LIBS" | ||
4281 | cat >conftest.$ac_ext <<_ACEOF | ||
4282 | /* confdefs.h. */ | ||
4283 | _ACEOF | ||
4284 | cat confdefs.h >>conftest.$ac_ext | ||
4285 | cat >>conftest.$ac_ext <<_ACEOF | ||
4286 | /* end confdefs.h. */ | ||
4287 | |||
4288 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4289 | #ifdef __cplusplus | ||
4290 | extern "C" | ||
4291 | #endif | ||
4292 | /* We use char because int might match the return type of a gcc2 | ||
4293 | builtin and then its argument prototype would still apply. */ | ||
4294 | char authenticate (); | ||
4295 | int | ||
4296 | main () | ||
4297 | { | ||
4298 | authenticate (); | ||
4299 | ; | ||
4300 | return 0; | ||
4301 | } | ||
4302 | _ACEOF | ||
4303 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4305 | (eval $ac_link) 2>conftest.er1 | ||
4306 | ac_status=$? | ||
4307 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4308 | rm -f conftest.er1 | ||
4309 | cat conftest.err >&5 | ||
4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4311 | (exit $ac_status); } && | ||
4312 | { ac_try='test -z "$ac_c_werror_flag" | ||
4313 | || test ! -s conftest.err' | ||
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); }; } && | ||
4319 | { ac_try='test -s conftest$ac_exeext' | ||
4320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4321 | (eval $ac_try) 2>&5 | ||
4322 | ac_status=$? | ||
4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4324 | (exit $ac_status); }; }; then | ||
4325 | ac_cv_lib_s_authenticate=yes | ||
4326 | else | ||
4327 | echo "$as_me: failed program was:" >&5 | ||
4328 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4329 | |||
4330 | ac_cv_lib_s_authenticate=no | ||
4331 | fi | ||
4332 | rm -f conftest.err conftest.$ac_objext \ | ||
4333 | conftest$ac_exeext conftest.$ac_ext | ||
4334 | LIBS=$ac_check_lib_save_LIBS | ||
4335 | fi | ||
4336 | echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
4337 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6 | ||
4338 | if test $ac_cv_lib_s_authenticate = yes; then | ||
4339 | cat >>confdefs.h <<\_ACEOF | ||
4340 | #define WITH_AIXAUTHENTICATE 1 | ||
4341 | _ACEOF | ||
4342 | |||
4343 | LIBS="$LIBS -ls" | ||
4344 | |||
4345 | fi | ||
4346 | |||
4347 | |||
4348 | fi | ||
4349 | |||
4350 | echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
4351 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6 | ||
4352 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4354 | else | ||
4355 | cat >conftest.$ac_ext <<_ACEOF | ||
4356 | /* confdefs.h. */ | ||
4357 | _ACEOF | ||
4358 | cat confdefs.h >>conftest.$ac_ext | ||
4359 | cat >>conftest.$ac_ext <<_ACEOF | ||
4360 | /* end confdefs.h. */ | ||
4361 | #include <usersec.h> | ||
4362 | |||
4363 | |||
4364 | int | ||
4365 | main () | ||
4366 | { | ||
4367 | #ifndef loginfailed | ||
4368 | char *p = (char *) loginfailed; | ||
4369 | #endif | ||
4370 | |||
4371 | ; | ||
4372 | return 0; | ||
4373 | } | ||
4374 | _ACEOF | ||
4375 | rm -f conftest.$ac_objext | ||
4376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4377 | (eval $ac_compile) 2>conftest.er1 | ||
4378 | ac_status=$? | ||
4379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4380 | rm -f conftest.er1 | ||
4381 | cat conftest.err >&5 | ||
4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4383 | (exit $ac_status); } && | ||
4384 | { ac_try='test -z "$ac_c_werror_flag" | ||
4385 | || test ! -s conftest.err' | ||
4386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4387 | (eval $ac_try) 2>&5 | ||
4388 | ac_status=$? | ||
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4390 | (exit $ac_status); }; } && | ||
4391 | { ac_try='test -s conftest.$ac_objext' | ||
4392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4393 | (eval $ac_try) 2>&5 | ||
4394 | ac_status=$? | ||
4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4396 | (exit $ac_status); }; }; then | ||
4397 | ac_cv_have_decl_loginfailed=yes | ||
4398 | else | ||
4399 | echo "$as_me: failed program was:" >&5 | ||
4400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4401 | |||
4402 | ac_cv_have_decl_loginfailed=no | ||
4403 | fi | ||
4404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4405 | fi | ||
4406 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
4407 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6 | ||
4408 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
4409 | echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
4410 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6 | ||
4411 | cat >conftest.$ac_ext <<_ACEOF | ||
4412 | /* confdefs.h. */ | ||
4413 | _ACEOF | ||
4414 | cat confdefs.h >>conftest.$ac_ext | ||
4415 | cat >>conftest.$ac_ext <<_ACEOF | ||
4416 | /* end confdefs.h. */ | ||
4417 | #include <usersec.h> | ||
4418 | int | ||
4419 | main () | ||
4420 | { | ||
4421 | (void)loginfailed("user","host","tty",0); | ||
4422 | ; | ||
4423 | return 0; | ||
4424 | } | ||
4425 | _ACEOF | ||
4426 | rm -f conftest.$ac_objext | ||
4427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4428 | (eval $ac_compile) 2>conftest.er1 | ||
4429 | ac_status=$? | ||
4430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4431 | rm -f conftest.er1 | ||
4432 | cat conftest.err >&5 | ||
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4434 | (exit $ac_status); } && | ||
4435 | { ac_try='test -z "$ac_c_werror_flag" | ||
4436 | || test ! -s conftest.err' | ||
4437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4438 | (eval $ac_try) 2>&5 | ||
4439 | ac_status=$? | ||
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4441 | (exit $ac_status); }; } && | ||
4442 | { ac_try='test -s conftest.$ac_objext' | ||
4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4444 | (eval $ac_try) 2>&5 | ||
4445 | ac_status=$? | ||
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4447 | (exit $ac_status); }; }; then | ||
4448 | echo "$as_me:$LINENO: result: yes" >&5 | ||
4449 | echo "${ECHO_T}yes" >&6 | ||
4450 | cat >>confdefs.h <<\_ACEOF | ||
4451 | #define AIX_LOGINFAILED_4ARG 1 | ||
4452 | _ACEOF | ||
4453 | |||
4454 | else | ||
4455 | echo "$as_me: failed program was:" >&5 | ||
4456 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4457 | |||
4458 | echo "$as_me:$LINENO: result: no" >&5 | ||
4459 | echo "${ECHO_T}no" >&6 | ||
4460 | |||
4461 | fi | ||
4462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4463 | fi | ||
4464 | |||
4465 | |||
4466 | for ac_func in setauthdb | ||
4467 | do | ||
4468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
4469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
4470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
4471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4473 | else | ||
4474 | cat >conftest.$ac_ext <<_ACEOF | ||
4475 | /* confdefs.h. */ | ||
4476 | _ACEOF | ||
4477 | cat confdefs.h >>conftest.$ac_ext | ||
4478 | cat >>conftest.$ac_ext <<_ACEOF | ||
4479 | /* end confdefs.h. */ | ||
4480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
4481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4482 | #define $ac_func innocuous_$ac_func | ||
4483 | |||
4484 | /* System header to define __stub macros and hopefully few prototypes, | ||
4485 | which can conflict with char $ac_func (); below. | ||
4486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4487 | <limits.h> exists even on freestanding compilers. */ | ||
4488 | |||
4489 | #ifdef __STDC__ | ||
4490 | # include <limits.h> | ||
4491 | #else | ||
4492 | # include <assert.h> | ||
4493 | #endif | ||
4494 | |||
4495 | #undef $ac_func | ||
4496 | |||
4497 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4498 | #ifdef __cplusplus | ||
4499 | extern "C" | ||
4500 | { | ||
4501 | #endif | ||
4502 | /* We use char because int might match the return type of a gcc2 | ||
4503 | builtin and then its argument prototype would still apply. */ | ||
4504 | char $ac_func (); | ||
4505 | /* The GNU C library defines this for functions which it implements | ||
4506 | to always fail with ENOSYS. Some functions are actually named | ||
4507 | something starting with __ and the normal name is an alias. */ | ||
4508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
4509 | choke me | ||
4510 | #else | ||
4511 | char (*f) () = $ac_func; | ||
4512 | #endif | ||
4513 | #ifdef __cplusplus | ||
4514 | } | ||
4515 | #endif | ||
4516 | |||
4517 | int | ||
4518 | main () | ||
4519 | { | ||
4520 | return f != $ac_func; | ||
4521 | ; | ||
4522 | return 0; | ||
4523 | } | ||
4524 | _ACEOF | ||
4525 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4527 | (eval $ac_link) 2>conftest.er1 | ||
4528 | ac_status=$? | ||
4529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4530 | rm -f conftest.er1 | ||
4531 | cat conftest.err >&5 | ||
4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4533 | (exit $ac_status); } && | ||
4534 | { ac_try='test -z "$ac_c_werror_flag" | ||
4535 | || test ! -s conftest.err' | ||
4536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4537 | (eval $ac_try) 2>&5 | ||
4538 | ac_status=$? | ||
4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4540 | (exit $ac_status); }; } && | ||
4541 | { ac_try='test -s conftest$ac_exeext' | ||
4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4543 | (eval $ac_try) 2>&5 | ||
4544 | ac_status=$? | ||
4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4546 | (exit $ac_status); }; }; then | ||
4547 | eval "$as_ac_var=yes" | ||
4548 | else | ||
4549 | echo "$as_me: failed program was:" >&5 | ||
4550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4551 | |||
4552 | eval "$as_ac_var=no" | ||
4553 | fi | ||
4554 | rm -f conftest.err conftest.$ac_objext \ | ||
4555 | conftest$ac_exeext conftest.$ac_ext | ||
4556 | fi | ||
4557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
4558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
4559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
4560 | cat >>confdefs.h <<_ACEOF | ||
4561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
4562 | _ACEOF | ||
4563 | |||
4564 | fi | ||
4565 | done | ||
4566 | |||
4567 | cat >>confdefs.h <<\_ACEOF | ||
4568 | #define BROKEN_GETADDRINFO 1 | ||
4569 | _ACEOF | ||
4570 | |||
4571 | cat >>confdefs.h <<\_ACEOF | ||
4572 | #define BROKEN_REALPATH 1 | ||
4573 | _ACEOF | ||
4574 | |||
4575 | cat >>confdefs.h <<\_ACEOF | ||
4576 | #define SETEUID_BREAKS_SETUID 1 | ||
4577 | _ACEOF | ||
4578 | |||
4579 | cat >>confdefs.h <<\_ACEOF | ||
4580 | #define BROKEN_SETREUID 1 | ||
4581 | _ACEOF | ||
4582 | |||
4583 | cat >>confdefs.h <<\_ACEOF | ||
4584 | #define BROKEN_SETREGID 1 | ||
4585 | _ACEOF | ||
4586 | |||
4587 | cat >>confdefs.h <<\_ACEOF | ||
4588 | #define DISABLE_LASTLOG 1 | ||
4589 | _ACEOF | ||
4590 | |||
4591 | cat >>confdefs.h <<\_ACEOF | ||
4592 | #define LOGIN_NEEDS_UTMPX 1 | ||
4593 | _ACEOF | ||
4594 | |||
4595 | cat >>confdefs.h <<\_ACEOF | ||
4596 | #define SPT_TYPE SPT_REUSEARGV | ||
4597 | _ACEOF | ||
4598 | |||
4599 | ;; | ||
4600 | *-*-cygwin*) | ||
4601 | check_for_libcrypt_later=1 | ||
4602 | LIBS="$LIBS /usr/lib/textmode.o" | ||
4603 | cat >>confdefs.h <<\_ACEOF | ||
4604 | #define HAVE_CYGWIN 1 | ||
4605 | _ACEOF | ||
4606 | |||
4607 | cat >>confdefs.h <<\_ACEOF | ||
4608 | #define USE_PIPES 1 | ||
4609 | _ACEOF | ||
4610 | |||
4611 | cat >>confdefs.h <<\_ACEOF | ||
4612 | #define DISABLE_SHADOW 1 | ||
4613 | _ACEOF | ||
4614 | |||
4615 | cat >>confdefs.h <<\_ACEOF | ||
4616 | #define IP_TOS_IS_BROKEN 1 | ||
4617 | _ACEOF | ||
4618 | |||
4619 | cat >>confdefs.h <<\_ACEOF | ||
4620 | #define NO_X11_UNIX_SOCKETS 1 | ||
4621 | _ACEOF | ||
4622 | |||
4623 | cat >>confdefs.h <<\_ACEOF | ||
4624 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
4625 | _ACEOF | ||
4626 | |||
4627 | cat >>confdefs.h <<\_ACEOF | ||
4628 | #define DISABLE_FD_PASSING 1 | ||
4629 | _ACEOF | ||
4630 | |||
4631 | cat >>confdefs.h <<\_ACEOF | ||
4632 | #define SETGROUPS_NOOP 1 | ||
4633 | _ACEOF | ||
4634 | |||
4635 | ;; | ||
4636 | *-*-dgux*) | ||
4637 | cat >>confdefs.h <<\_ACEOF | ||
4638 | #define IP_TOS_IS_BROKEN 1 | ||
4639 | _ACEOF | ||
4640 | |||
4641 | cat >>confdefs.h <<\_ACEOF | ||
4642 | #define SETEUID_BREAKS_SETUID 1 | ||
4643 | _ACEOF | ||
4644 | |||
4645 | cat >>confdefs.h <<\_ACEOF | ||
4646 | #define BROKEN_SETREUID 1 | ||
4647 | _ACEOF | ||
4648 | |||
4649 | cat >>confdefs.h <<\_ACEOF | ||
4650 | #define BROKEN_SETREGID 1 | ||
4651 | _ACEOF | ||
4652 | |||
4653 | ;; | ||
4654 | *-*-darwin*) | ||
4655 | echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
4656 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6 | ||
4657 | if test "$cross_compiling" = yes; then | ||
4658 | echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
4659 | echo "${ECHO_T}assume it is working" >&6 | ||
4660 | else | ||
4661 | cat >conftest.$ac_ext <<_ACEOF | ||
4662 | /* confdefs.h. */ | ||
4663 | _ACEOF | ||
4664 | cat confdefs.h >>conftest.$ac_ext | ||
4665 | cat >>conftest.$ac_ext <<_ACEOF | ||
4666 | /* end confdefs.h. */ | ||
4667 | #include <mach-o/dyld.h> | ||
4668 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
4669 | exit(0); | ||
4670 | else | ||
4671 | exit(1); | ||
4672 | } | ||
4673 | _ACEOF | ||
4674 | rm -f conftest$ac_exeext | ||
4675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4676 | (eval $ac_link) 2>&5 | ||
4677 | ac_status=$? | ||
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4681 | (eval $ac_try) 2>&5 | ||
4682 | ac_status=$? | ||
4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4684 | (exit $ac_status); }; }; then | ||
4685 | echo "$as_me:$LINENO: result: working" >&5 | ||
4686 | echo "${ECHO_T}working" >&6 | ||
4687 | else | ||
4688 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4689 | echo "$as_me: failed program was:" >&5 | ||
4690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4691 | |||
4692 | ( exit $ac_status ) | ||
4693 | echo "$as_me:$LINENO: result: buggy" >&5 | ||
4694 | echo "${ECHO_T}buggy" >&6 | ||
4695 | cat >>confdefs.h <<\_ACEOF | ||
4696 | #define BROKEN_GETADDRINFO 1 | ||
4697 | _ACEOF | ||
4698 | |||
4699 | fi | ||
4700 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4701 | fi | ||
4702 | cat >>confdefs.h <<\_ACEOF | ||
4703 | #define SETEUID_BREAKS_SETUID 1 | ||
4704 | _ACEOF | ||
4705 | |||
4706 | cat >>confdefs.h <<\_ACEOF | ||
4707 | #define BROKEN_SETREUID 1 | ||
4708 | _ACEOF | ||
4709 | |||
4710 | cat >>confdefs.h <<\_ACEOF | ||
4711 | #define BROKEN_SETREGID 1 | ||
4712 | _ACEOF | ||
4713 | |||
4714 | cat >>confdefs.h <<_ACEOF | ||
4715 | #define BIND_8_COMPAT 1 | ||
4716 | _ACEOF | ||
4717 | |||
4718 | ;; | ||
4719 | *-*-hpux10.26) | ||
4720 | if test -z "$GCC"; then | ||
4721 | CFLAGS="$CFLAGS -Ae" | ||
4722 | fi | ||
4723 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
4724 | IPADDR_IN_DISPLAY=yes | ||
4725 | cat >>confdefs.h <<\_ACEOF | ||
4726 | #define HAVE_SECUREWARE 1 | ||
4727 | _ACEOF | ||
4728 | |||
4729 | cat >>confdefs.h <<\_ACEOF | ||
4730 | #define USE_PIPES 1 | ||
4731 | _ACEOF | ||
4732 | |||
4733 | cat >>confdefs.h <<\_ACEOF | ||
4734 | #define LOGIN_NO_ENDOPT 1 | ||
4735 | _ACEOF | ||
4736 | |||
4737 | cat >>confdefs.h <<\_ACEOF | ||
4738 | #define LOGIN_NEEDS_UTMPX 1 | ||
4739 | _ACEOF | ||
4740 | |||
4741 | cat >>confdefs.h <<\_ACEOF | ||
4742 | #define LOCKED_PASSWD_STRING "*" | ||
4743 | _ACEOF | ||
4744 | |||
4745 | cat >>confdefs.h <<\_ACEOF | ||
4746 | #define SPT_TYPE SPT_PSTAT | ||
4747 | _ACEOF | ||
4748 | |||
4749 | LIBS="$LIBS -lsec -lsecpw" | ||
4750 | |||
4751 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
4752 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
4753 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4755 | else | ||
4756 | ac_check_lib_save_LIBS=$LIBS | ||
4757 | LIBS="-lxnet $LIBS" | ||
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 | |||
4765 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4766 | #ifdef __cplusplus | ||
4767 | extern "C" | ||
4768 | #endif | ||
4769 | /* We use char because int might match the return type of a gcc2 | ||
4770 | builtin and then its argument prototype would still apply. */ | ||
4771 | char t_error (); | ||
4772 | int | ||
4773 | main () | ||
4774 | { | ||
4775 | t_error (); | ||
4776 | ; | ||
4777 | return 0; | ||
4778 | } | ||
4779 | _ACEOF | ||
4780 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4782 | (eval $ac_link) 2>conftest.er1 | ||
4783 | ac_status=$? | ||
4784 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4785 | rm -f conftest.er1 | ||
4786 | cat conftest.err >&5 | ||
4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4788 | (exit $ac_status); } && | ||
4789 | { ac_try='test -z "$ac_c_werror_flag" | ||
4790 | || test ! -s conftest.err' | ||
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4792 | (eval $ac_try) 2>&5 | ||
4793 | ac_status=$? | ||
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4795 | (exit $ac_status); }; } && | ||
4796 | { ac_try='test -s conftest$ac_exeext' | ||
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4798 | (eval $ac_try) 2>&5 | ||
4799 | ac_status=$? | ||
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4801 | (exit $ac_status); }; }; then | ||
4802 | ac_cv_lib_xnet_t_error=yes | ||
4803 | else | ||
4804 | echo "$as_me: failed program was:" >&5 | ||
4805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4806 | |||
4807 | ac_cv_lib_xnet_t_error=no | ||
4808 | fi | ||
4809 | rm -f conftest.err conftest.$ac_objext \ | ||
4810 | conftest$ac_exeext conftest.$ac_ext | ||
4811 | LIBS=$ac_check_lib_save_LIBS | ||
4812 | fi | ||
4813 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
4814 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
4815 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
4816 | cat >>confdefs.h <<_ACEOF | ||
4817 | #define HAVE_LIBXNET 1 | ||
4818 | _ACEOF | ||
4819 | |||
4820 | LIBS="-lxnet $LIBS" | ||
4821 | |||
4822 | else | ||
4823 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4824 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4825 | { (exit 1); exit 1; }; } | ||
4826 | fi | ||
4827 | |||
4828 | disable_ptmx_check=yes | ||
4829 | ;; | ||
4830 | *-*-hpux10*) | ||
4831 | if test -z "$GCC"; then | ||
4832 | CFLAGS="$CFLAGS -Ae" | ||
4833 | fi | ||
4834 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
4835 | IPADDR_IN_DISPLAY=yes | ||
4836 | cat >>confdefs.h <<\_ACEOF | ||
4837 | #define USE_PIPES 1 | ||
4838 | _ACEOF | ||
4839 | |||
4840 | cat >>confdefs.h <<\_ACEOF | ||
4841 | #define LOGIN_NO_ENDOPT 1 | ||
4842 | _ACEOF | ||
4843 | |||
4844 | cat >>confdefs.h <<\_ACEOF | ||
4845 | #define LOGIN_NEEDS_UTMPX 1 | ||
4846 | _ACEOF | ||
4847 | |||
4848 | cat >>confdefs.h <<\_ACEOF | ||
4849 | #define LOCKED_PASSWD_STRING "*" | ||
4850 | _ACEOF | ||
4851 | |||
4852 | cat >>confdefs.h <<\_ACEOF | ||
4853 | #define SPT_TYPE SPT_PSTAT | ||
4854 | _ACEOF | ||
4855 | |||
4856 | LIBS="$LIBS -lsec" | ||
4857 | |||
4858 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
4859 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
4860 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
4861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4862 | else | ||
4863 | ac_check_lib_save_LIBS=$LIBS | ||
4864 | LIBS="-lxnet $LIBS" | ||
4865 | cat >conftest.$ac_ext <<_ACEOF | ||
4866 | /* confdefs.h. */ | ||
4867 | _ACEOF | ||
4868 | cat confdefs.h >>conftest.$ac_ext | ||
4869 | cat >>conftest.$ac_ext <<_ACEOF | ||
4870 | /* end confdefs.h. */ | ||
4871 | |||
4872 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4873 | #ifdef __cplusplus | ||
4874 | extern "C" | ||
4875 | #endif | ||
4876 | /* We use char because int might match the return type of a gcc2 | ||
4877 | builtin and then its argument prototype would still apply. */ | ||
4878 | char t_error (); | ||
4879 | int | ||
4880 | main () | ||
4881 | { | ||
4882 | t_error (); | ||
4883 | ; | ||
4884 | return 0; | ||
4885 | } | ||
4886 | _ACEOF | ||
4887 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4889 | (eval $ac_link) 2>conftest.er1 | ||
4890 | ac_status=$? | ||
4891 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4892 | rm -f conftest.er1 | ||
4893 | cat conftest.err >&5 | ||
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4895 | (exit $ac_status); } && | ||
4896 | { ac_try='test -z "$ac_c_werror_flag" | ||
4897 | || test ! -s conftest.err' | ||
4898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4899 | (eval $ac_try) 2>&5 | ||
4900 | ac_status=$? | ||
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4902 | (exit $ac_status); }; } && | ||
4903 | { ac_try='test -s conftest$ac_exeext' | ||
4904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4905 | (eval $ac_try) 2>&5 | ||
4906 | ac_status=$? | ||
4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4908 | (exit $ac_status); }; }; then | ||
4909 | ac_cv_lib_xnet_t_error=yes | ||
4910 | else | ||
4911 | echo "$as_me: failed program was:" >&5 | ||
4912 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4913 | |||
4914 | ac_cv_lib_xnet_t_error=no | ||
4915 | fi | ||
4916 | rm -f conftest.err conftest.$ac_objext \ | ||
4917 | conftest$ac_exeext conftest.$ac_ext | ||
4918 | LIBS=$ac_check_lib_save_LIBS | ||
4919 | fi | ||
4920 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
4921 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
4922 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
4923 | cat >>confdefs.h <<_ACEOF | ||
4924 | #define HAVE_LIBXNET 1 | ||
4925 | _ACEOF | ||
4926 | |||
4927 | LIBS="-lxnet $LIBS" | ||
4928 | |||
4929 | else | ||
4930 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
4931 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
4932 | { (exit 1); exit 1; }; } | ||
4933 | fi | ||
4934 | |||
4935 | ;; | ||
4936 | *-*-hpux11*) | ||
4937 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
4938 | IPADDR_IN_DISPLAY=yes | ||
4939 | cat >>confdefs.h <<\_ACEOF | ||
4940 | #define PAM_SUN_CODEBASE 1 | ||
4941 | _ACEOF | ||
4942 | |||
4943 | cat >>confdefs.h <<\_ACEOF | ||
4944 | #define USE_PIPES 1 | ||
4945 | _ACEOF | ||
4946 | |||
4947 | cat >>confdefs.h <<\_ACEOF | ||
4948 | #define LOGIN_NO_ENDOPT 1 | ||
4949 | _ACEOF | ||
4950 | |||
4951 | cat >>confdefs.h <<\_ACEOF | ||
4952 | #define LOGIN_NEEDS_UTMPX 1 | ||
4953 | _ACEOF | ||
4954 | |||
4955 | cat >>confdefs.h <<\_ACEOF | ||
4956 | #define DISABLE_UTMP 1 | ||
4957 | _ACEOF | ||
4958 | |||
4959 | cat >>confdefs.h <<\_ACEOF | ||
4960 | #define LOCKED_PASSWD_STRING "*" | ||
4961 | _ACEOF | ||
4962 | |||
4963 | cat >>confdefs.h <<\_ACEOF | ||
4964 | #define SPT_TYPE SPT_PSTAT | ||
4965 | _ACEOF | ||
4966 | |||
4967 | check_for_hpux_broken_getaddrinfo=1 | ||
4968 | LIBS="$LIBS -lsec" | ||
4969 | |||
4970 | echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
4971 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6 | ||
4972 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4974 | else | ||
4975 | ac_check_lib_save_LIBS=$LIBS | ||
4976 | LIBS="-lxnet $LIBS" | ||
4977 | cat >conftest.$ac_ext <<_ACEOF | ||
4978 | /* confdefs.h. */ | ||
4979 | _ACEOF | ||
4980 | cat confdefs.h >>conftest.$ac_ext | ||
4981 | cat >>conftest.$ac_ext <<_ACEOF | ||
4982 | /* end confdefs.h. */ | ||
4983 | |||
4984 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
4985 | #ifdef __cplusplus | ||
4986 | extern "C" | ||
4987 | #endif | ||
4988 | /* We use char because int might match the return type of a gcc2 | ||
4989 | builtin and then its argument prototype would still apply. */ | ||
4990 | char t_error (); | ||
4991 | int | ||
4992 | main () | ||
4993 | { | ||
4994 | t_error (); | ||
4995 | ; | ||
4996 | return 0; | ||
4997 | } | ||
4998 | _ACEOF | ||
4999 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5001 | (eval $ac_link) 2>conftest.er1 | ||
5002 | ac_status=$? | ||
5003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5004 | rm -f conftest.er1 | ||
5005 | cat conftest.err >&5 | ||
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5007 | (exit $ac_status); } && | ||
5008 | { ac_try='test -z "$ac_c_werror_flag" | ||
5009 | || test ! -s conftest.err' | ||
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); }; } && | ||
5015 | { ac_try='test -s conftest$ac_exeext' | ||
5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5017 | (eval $ac_try) 2>&5 | ||
5018 | ac_status=$? | ||
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5020 | (exit $ac_status); }; }; then | ||
5021 | ac_cv_lib_xnet_t_error=yes | ||
5022 | else | ||
5023 | echo "$as_me: failed program was:" >&5 | ||
5024 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5025 | |||
5026 | ac_cv_lib_xnet_t_error=no | ||
5027 | fi | ||
5028 | rm -f conftest.err conftest.$ac_objext \ | ||
5029 | conftest$ac_exeext conftest.$ac_ext | ||
5030 | LIBS=$ac_check_lib_save_LIBS | ||
5031 | fi | ||
5032 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
5033 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6 | ||
5034 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
5035 | cat >>confdefs.h <<_ACEOF | ||
5036 | #define HAVE_LIBXNET 1 | ||
5037 | _ACEOF | ||
5038 | |||
5039 | LIBS="-lxnet $LIBS" | ||
5040 | |||
5041 | else | ||
5042 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
5043 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
5044 | { (exit 1); exit 1; }; } | ||
5045 | fi | ||
5046 | |||
5047 | ;; | ||
5048 | *-*-irix5*) | ||
5049 | PATH="$PATH:/usr/etc" | ||
5050 | cat >>confdefs.h <<\_ACEOF | ||
5051 | #define BROKEN_INET_NTOA 1 | ||
5052 | _ACEOF | ||
5053 | |||
5054 | cat >>confdefs.h <<\_ACEOF | ||
5055 | #define SETEUID_BREAKS_SETUID 1 | ||
5056 | _ACEOF | ||
5057 | |||
5058 | cat >>confdefs.h <<\_ACEOF | ||
5059 | #define BROKEN_SETREUID 1 | ||
5060 | _ACEOF | ||
5061 | |||
5062 | cat >>confdefs.h <<\_ACEOF | ||
5063 | #define BROKEN_SETREGID 1 | ||
5064 | _ACEOF | ||
5065 | |||
5066 | cat >>confdefs.h <<\_ACEOF | ||
5067 | #define WITH_ABBREV_NO_TTY 1 | ||
5068 | _ACEOF | ||
5069 | |||
5070 | cat >>confdefs.h <<\_ACEOF | ||
5071 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5072 | _ACEOF | ||
5073 | |||
5074 | ;; | ||
5075 | *-*-irix6*) | ||
5076 | PATH="$PATH:/usr/etc" | ||
5077 | cat >>confdefs.h <<\_ACEOF | ||
5078 | #define WITH_IRIX_ARRAY 1 | ||
5079 | _ACEOF | ||
5080 | |||
5081 | cat >>confdefs.h <<\_ACEOF | ||
5082 | #define WITH_IRIX_PROJECT 1 | ||
5083 | _ACEOF | ||
5084 | |||
5085 | cat >>confdefs.h <<\_ACEOF | ||
5086 | #define WITH_IRIX_AUDIT 1 | ||
5087 | _ACEOF | ||
5088 | |||
5089 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
5090 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | ||
5091 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5093 | else | ||
5094 | cat >conftest.$ac_ext <<_ACEOF | ||
5095 | /* confdefs.h. */ | ||
5096 | _ACEOF | ||
5097 | cat confdefs.h >>conftest.$ac_ext | ||
5098 | cat >>conftest.$ac_ext <<_ACEOF | ||
5099 | /* end confdefs.h. */ | ||
5100 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
5101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5102 | #define jlimit_startjob innocuous_jlimit_startjob | ||
5103 | |||
5104 | /* System header to define __stub macros and hopefully few prototypes, | ||
5105 | which can conflict with char jlimit_startjob (); below. | ||
5106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5107 | <limits.h> exists even on freestanding compilers. */ | ||
5108 | |||
5109 | #ifdef __STDC__ | ||
5110 | # include <limits.h> | ||
5111 | #else | ||
5112 | # include <assert.h> | ||
5113 | #endif | ||
5114 | |||
5115 | #undef jlimit_startjob | ||
5116 | |||
5117 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5118 | #ifdef __cplusplus | ||
5119 | extern "C" | ||
5120 | { | ||
5121 | #endif | ||
5122 | /* We use char because int might match the return type of a gcc2 | ||
5123 | builtin and then its argument prototype would still apply. */ | ||
5124 | char jlimit_startjob (); | ||
5125 | /* The GNU C library defines this for functions which it implements | ||
5126 | to always fail with ENOSYS. Some functions are actually named | ||
5127 | something starting with __ and the normal name is an alias. */ | ||
5128 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
5129 | choke me | ||
5130 | #else | ||
5131 | char (*f) () = jlimit_startjob; | ||
5132 | #endif | ||
5133 | #ifdef __cplusplus | ||
5134 | } | ||
5135 | #endif | ||
5136 | |||
5137 | int | ||
5138 | main () | ||
5139 | { | ||
5140 | return f != jlimit_startjob; | ||
5141 | ; | ||
5142 | return 0; | ||
5143 | } | ||
5144 | _ACEOF | ||
5145 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5147 | (eval $ac_link) 2>conftest.er1 | ||
5148 | ac_status=$? | ||
5149 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5150 | rm -f conftest.er1 | ||
5151 | cat conftest.err >&5 | ||
5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5153 | (exit $ac_status); } && | ||
5154 | { ac_try='test -z "$ac_c_werror_flag" | ||
5155 | || test ! -s conftest.err' | ||
5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5157 | (eval $ac_try) 2>&5 | ||
5158 | ac_status=$? | ||
5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5160 | (exit $ac_status); }; } && | ||
5161 | { ac_try='test -s conftest$ac_exeext' | ||
5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5163 | (eval $ac_try) 2>&5 | ||
5164 | ac_status=$? | ||
5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5166 | (exit $ac_status); }; }; then | ||
5167 | ac_cv_func_jlimit_startjob=yes | ||
5168 | else | ||
5169 | echo "$as_me: failed program was:" >&5 | ||
5170 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5171 | |||
5172 | ac_cv_func_jlimit_startjob=no | ||
5173 | fi | ||
5174 | rm -f conftest.err conftest.$ac_objext \ | ||
5175 | conftest$ac_exeext conftest.$ac_ext | ||
5176 | fi | ||
5177 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
5178 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | ||
5179 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
5180 | cat >>confdefs.h <<\_ACEOF | ||
5181 | #define WITH_IRIX_JOBS 1 | ||
5182 | _ACEOF | ||
5183 | |||
5184 | fi | ||
5185 | |||
5186 | cat >>confdefs.h <<\_ACEOF | ||
5187 | #define BROKEN_INET_NTOA 1 | ||
5188 | _ACEOF | ||
5189 | |||
5190 | cat >>confdefs.h <<\_ACEOF | ||
5191 | #define SETEUID_BREAKS_SETUID 1 | ||
5192 | _ACEOF | ||
5193 | |||
5194 | cat >>confdefs.h <<\_ACEOF | ||
5195 | #define BROKEN_SETREUID 1 | ||
5196 | _ACEOF | ||
5197 | |||
5198 | cat >>confdefs.h <<\_ACEOF | ||
5199 | #define BROKEN_SETREGID 1 | ||
5200 | _ACEOF | ||
5201 | |||
5202 | cat >>confdefs.h <<\_ACEOF | ||
5203 | #define BROKEN_UPDWTMPX 1 | ||
5204 | _ACEOF | ||
5205 | |||
5206 | cat >>confdefs.h <<\_ACEOF | ||
5207 | #define WITH_ABBREV_NO_TTY 1 | ||
5208 | _ACEOF | ||
5209 | |||
5210 | cat >>confdefs.h <<\_ACEOF | ||
5211 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5212 | _ACEOF | ||
5213 | |||
5214 | ;; | ||
5215 | *-*-linux*) | ||
5216 | no_dev_ptmx=1 | ||
5217 | check_for_libcrypt_later=1 | ||
5218 | check_for_openpty_ctty_bug=1 | ||
5219 | cat >>confdefs.h <<\_ACEOF | ||
5220 | #define DONT_TRY_OTHER_AF 1 | ||
5221 | _ACEOF | ||
5222 | |||
5223 | cat >>confdefs.h <<\_ACEOF | ||
5224 | #define PAM_TTY_KLUDGE 1 | ||
5225 | _ACEOF | ||
5226 | |||
5227 | cat >>confdefs.h <<\_ACEOF | ||
5228 | #define LOCKED_PASSWD_PREFIX "!" | ||
5229 | _ACEOF | ||
5230 | |||
5231 | cat >>confdefs.h <<\_ACEOF | ||
5232 | #define SPT_TYPE SPT_REUSEARGV | ||
5233 | _ACEOF | ||
5234 | |||
5235 | cat >>confdefs.h <<\_ACEOF | ||
5236 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
5237 | _ACEOF | ||
5238 | |||
5239 | inet6_default_4in6=yes | ||
5240 | case `uname -r` in | ||
5241 | 1.*|2.0.*) | ||
5242 | cat >>confdefs.h <<\_ACEOF | ||
5243 | #define BROKEN_CMSG_TYPE 1 | ||
5244 | _ACEOF | ||
5245 | |||
5246 | ;; | ||
5247 | esac | ||
5248 | ;; | ||
5249 | mips-sony-bsd|mips-sony-newsos4) | ||
5250 | cat >>confdefs.h <<\_ACEOF | ||
5251 | #define HAVE_NEWS4 1 | ||
5252 | _ACEOF | ||
5253 | |||
5254 | SONY=1 | ||
5255 | ;; | ||
5256 | *-*-netbsd*) | ||
5257 | check_for_libcrypt_before=1 | ||
5258 | if test "x$withval" != "xno" ; then | ||
5259 | need_dash_r=1 | ||
5260 | fi | ||
5261 | ;; | ||
5262 | *-*-freebsd*) | ||
5263 | check_for_libcrypt_later=1 | ||
5264 | ;; | ||
5265 | *-*-bsdi*) | ||
5266 | cat >>confdefs.h <<\_ACEOF | ||
5267 | #define SETEUID_BREAKS_SETUID 1 | ||
5268 | _ACEOF | ||
5269 | |||
5270 | cat >>confdefs.h <<\_ACEOF | ||
5271 | #define BROKEN_SETREUID 1 | ||
5272 | _ACEOF | ||
5273 | |||
5274 | cat >>confdefs.h <<\_ACEOF | ||
5275 | #define BROKEN_SETREGID 1 | ||
5276 | _ACEOF | ||
5277 | |||
5278 | ;; | ||
5279 | *-next-*) | ||
5280 | conf_lastlog_location="/usr/adm/lastlog" | ||
5281 | conf_utmp_location=/etc/utmp | ||
5282 | conf_wtmp_location=/usr/adm/wtmp | ||
5283 | MAIL=/usr/spool/mail | ||
5284 | cat >>confdefs.h <<\_ACEOF | ||
5285 | #define HAVE_NEXT 1 | ||
5286 | _ACEOF | ||
5287 | |||
5288 | cat >>confdefs.h <<\_ACEOF | ||
5289 | #define BROKEN_REALPATH 1 | ||
5290 | _ACEOF | ||
5291 | |||
5292 | cat >>confdefs.h <<\_ACEOF | ||
5293 | #define USE_PIPES 1 | ||
5294 | _ACEOF | ||
5295 | |||
5296 | cat >>confdefs.h <<\_ACEOF | ||
5297 | #define BROKEN_SAVED_UIDS 1 | ||
5298 | _ACEOF | ||
5299 | |||
5300 | ;; | ||
5301 | *-*-solaris*) | ||
5302 | if test "x$withval" != "xno" ; then | ||
5303 | need_dash_r=1 | ||
5304 | fi | ||
5305 | cat >>confdefs.h <<\_ACEOF | ||
5306 | #define PAM_SUN_CODEBASE 1 | ||
5307 | _ACEOF | ||
5308 | |||
5309 | cat >>confdefs.h <<\_ACEOF | ||
5310 | #define LOGIN_NEEDS_UTMPX 1 | ||
5311 | _ACEOF | ||
5312 | |||
5313 | cat >>confdefs.h <<\_ACEOF | ||
5314 | #define LOGIN_NEEDS_TERM 1 | ||
5315 | _ACEOF | ||
5316 | |||
5317 | cat >>confdefs.h <<\_ACEOF | ||
5318 | #define PAM_TTY_KLUDGE 1 | ||
5319 | _ACEOF | ||
5320 | |||
5321 | cat >>confdefs.h <<\_ACEOF | ||
5322 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
5323 | _ACEOF | ||
5324 | |||
5325 | cat >>confdefs.h <<\_ACEOF | ||
5326 | #define LOCKED_PASSWD_STRING "*LK*" | ||
5327 | _ACEOF | ||
5328 | |||
5329 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
5330 | cat >>confdefs.h <<\_ACEOF | ||
5331 | #define SSHD_ACQUIRES_CTTY 1 | ||
5332 | _ACEOF | ||
5333 | |||
5334 | external_path_file=/etc/default/login | ||
5335 | # hardwire lastlog location (can't detect it on some versions) | ||
5336 | conf_lastlog_location="/var/adm/lastlog" | ||
5337 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
5338 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | ||
5339 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
5340 | if test "$sol2ver" -ge 8; then | ||
5341 | echo "$as_me:$LINENO: result: yes" >&5 | ||
5342 | echo "${ECHO_T}yes" >&6 | ||
5343 | cat >>confdefs.h <<\_ACEOF | ||
5344 | #define DISABLE_UTMP 1 | ||
5345 | _ACEOF | ||
5346 | |||
5347 | cat >>confdefs.h <<\_ACEOF | ||
5348 | #define DISABLE_WTMP 1 | ||
5349 | _ACEOF | ||
5350 | |||
5351 | else | ||
5352 | echo "$as_me:$LINENO: result: no" >&5 | ||
5353 | echo "${ECHO_T}no" >&6 | ||
5354 | fi | ||
5355 | ;; | ||
5356 | *-*-sunos4*) | ||
5357 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
5358 | |||
5359 | for ac_func in getpwanam | ||
5360 | do | ||
5361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5362 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5364 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5366 | else | ||
5367 | cat >conftest.$ac_ext <<_ACEOF | ||
5368 | /* confdefs.h. */ | ||
5369 | _ACEOF | ||
5370 | cat confdefs.h >>conftest.$ac_ext | ||
5371 | cat >>conftest.$ac_ext <<_ACEOF | ||
5372 | /* end confdefs.h. */ | ||
5373 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5375 | #define $ac_func innocuous_$ac_func | ||
5376 | |||
5377 | /* System header to define __stub macros and hopefully few prototypes, | ||
5378 | which can conflict with char $ac_func (); below. | ||
5379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5380 | <limits.h> exists even on freestanding compilers. */ | ||
5381 | |||
5382 | #ifdef __STDC__ | ||
5383 | # include <limits.h> | ||
5384 | #else | ||
5385 | # include <assert.h> | ||
5386 | #endif | ||
5387 | |||
5388 | #undef $ac_func | ||
5389 | |||
5390 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5391 | #ifdef __cplusplus | ||
5392 | extern "C" | ||
5393 | { | ||
5394 | #endif | ||
5395 | /* We use char because int might match the return type of a gcc2 | ||
5396 | builtin and then its argument prototype would still apply. */ | ||
5397 | char $ac_func (); | ||
5398 | /* The GNU C library defines this for functions which it implements | ||
5399 | to always fail with ENOSYS. Some functions are actually named | ||
5400 | something starting with __ and the normal name is an alias. */ | ||
5401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5402 | choke me | ||
5403 | #else | ||
5404 | char (*f) () = $ac_func; | ||
5405 | #endif | ||
5406 | #ifdef __cplusplus | ||
5407 | } | ||
5408 | #endif | ||
5409 | |||
5410 | int | ||
5411 | main () | ||
5412 | { | ||
5413 | return f != $ac_func; | ||
5414 | ; | ||
5415 | return 0; | ||
5416 | } | ||
5417 | _ACEOF | ||
5418 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5420 | (eval $ac_link) 2>conftest.er1 | ||
5421 | ac_status=$? | ||
5422 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5423 | rm -f conftest.er1 | ||
5424 | cat conftest.err >&5 | ||
5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5426 | (exit $ac_status); } && | ||
5427 | { ac_try='test -z "$ac_c_werror_flag" | ||
5428 | || test ! -s conftest.err' | ||
5429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5430 | (eval $ac_try) 2>&5 | ||
5431 | ac_status=$? | ||
5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5433 | (exit $ac_status); }; } && | ||
5434 | { ac_try='test -s conftest$ac_exeext' | ||
5435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5436 | (eval $ac_try) 2>&5 | ||
5437 | ac_status=$? | ||
5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5439 | (exit $ac_status); }; }; then | ||
5440 | eval "$as_ac_var=yes" | ||
5441 | else | ||
5442 | echo "$as_me: failed program was:" >&5 | ||
5443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5444 | |||
5445 | eval "$as_ac_var=no" | ||
5446 | fi | ||
5447 | rm -f conftest.err conftest.$ac_objext \ | ||
5448 | conftest$ac_exeext conftest.$ac_ext | ||
5449 | fi | ||
5450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5452 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5453 | cat >>confdefs.h <<_ACEOF | ||
5454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5455 | _ACEOF | ||
5456 | |||
5457 | fi | ||
5458 | done | ||
5459 | |||
5460 | cat >>confdefs.h <<\_ACEOF | ||
5461 | #define PAM_SUN_CODEBASE 1 | ||
5462 | _ACEOF | ||
5463 | |||
5464 | conf_utmp_location=/etc/utmp | ||
5465 | conf_wtmp_location=/var/adm/wtmp | ||
5466 | conf_lastlog_location=/var/adm/lastlog | ||
5467 | cat >>confdefs.h <<\_ACEOF | ||
5468 | #define USE_PIPES 1 | ||
5469 | _ACEOF | ||
5470 | |||
5471 | ;; | ||
5472 | *-ncr-sysv*) | ||
5473 | LIBS="$LIBS -lc89" | ||
5474 | cat >>confdefs.h <<\_ACEOF | ||
5475 | #define USE_PIPES 1 | ||
5476 | _ACEOF | ||
5477 | |||
5478 | cat >>confdefs.h <<\_ACEOF | ||
5479 | #define SSHD_ACQUIRES_CTTY 1 | ||
5480 | _ACEOF | ||
5481 | |||
5482 | cat >>confdefs.h <<\_ACEOF | ||
5483 | #define SETEUID_BREAKS_SETUID 1 | ||
5484 | _ACEOF | ||
5485 | |||
5486 | cat >>confdefs.h <<\_ACEOF | ||
5487 | #define BROKEN_SETREUID 1 | ||
5488 | _ACEOF | ||
5489 | |||
5490 | cat >>confdefs.h <<\_ACEOF | ||
5491 | #define BROKEN_SETREGID 1 | ||
5492 | _ACEOF | ||
5493 | |||
5494 | ;; | ||
5495 | *-sni-sysv*) | ||
5496 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
5497 | |||
5498 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
5499 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 | ||
5500 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5502 | else | ||
5503 | ac_check_lib_save_LIBS=$LIBS | ||
5504 | LIBS="-ldl $LIBS" | ||
5505 | cat >conftest.$ac_ext <<_ACEOF | ||
5506 | /* confdefs.h. */ | ||
5507 | _ACEOF | ||
5508 | cat confdefs.h >>conftest.$ac_ext | ||
5509 | cat >>conftest.$ac_ext <<_ACEOF | ||
5510 | /* end confdefs.h. */ | ||
5511 | |||
5512 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5513 | #ifdef __cplusplus | ||
5514 | extern "C" | ||
5515 | #endif | ||
5516 | /* We use char because int might match the return type of a gcc2 | ||
5517 | builtin and then its argument prototype would still apply. */ | ||
5518 | char dlsym (); | ||
5519 | int | ||
5520 | main () | ||
5521 | { | ||
5522 | dlsym (); | ||
5523 | ; | ||
5524 | return 0; | ||
5525 | } | ||
5526 | _ACEOF | ||
5527 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5529 | (eval $ac_link) 2>conftest.er1 | ||
5530 | ac_status=$? | ||
5531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5532 | rm -f conftest.er1 | ||
5533 | cat conftest.err >&5 | ||
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5535 | (exit $ac_status); } && | ||
5536 | { ac_try='test -z "$ac_c_werror_flag" | ||
5537 | || test ! -s conftest.err' | ||
5538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5539 | (eval $ac_try) 2>&5 | ||
5540 | ac_status=$? | ||
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5542 | (exit $ac_status); }; } && | ||
5543 | { ac_try='test -s conftest$ac_exeext' | ||
5544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5545 | (eval $ac_try) 2>&5 | ||
5546 | ac_status=$? | ||
5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5548 | (exit $ac_status); }; }; then | ||
5549 | ac_cv_lib_dl_dlsym=yes | ||
5550 | else | ||
5551 | echo "$as_me: failed program was:" >&5 | ||
5552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5553 | |||
5554 | ac_cv_lib_dl_dlsym=no | ||
5555 | fi | ||
5556 | rm -f conftest.err conftest.$ac_objext \ | ||
5557 | conftest$ac_exeext conftest.$ac_ext | ||
5558 | LIBS=$ac_check_lib_save_LIBS | ||
5559 | fi | ||
5560 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
5561 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 | ||
5562 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
5563 | cat >>confdefs.h <<_ACEOF | ||
5564 | #define HAVE_LIBDL 1 | ||
5565 | _ACEOF | ||
5566 | |||
5567 | LIBS="-ldl $LIBS" | ||
5568 | |||
5569 | fi | ||
5570 | |||
5571 | IPADDR_IN_DISPLAY=yes | ||
5572 | cat >>confdefs.h <<\_ACEOF | ||
5573 | #define USE_PIPES 1 | ||
5574 | _ACEOF | ||
5575 | |||
5576 | cat >>confdefs.h <<\_ACEOF | ||
5577 | #define IP_TOS_IS_BROKEN 1 | ||
5578 | _ACEOF | ||
5579 | |||
5580 | cat >>confdefs.h <<\_ACEOF | ||
5581 | #define SETEUID_BREAKS_SETUID 1 | ||
5582 | _ACEOF | ||
5583 | |||
5584 | cat >>confdefs.h <<\_ACEOF | ||
5585 | #define BROKEN_SETREUID 1 | ||
5586 | _ACEOF | ||
5587 | |||
5588 | cat >>confdefs.h <<\_ACEOF | ||
5589 | #define BROKEN_SETREGID 1 | ||
5590 | _ACEOF | ||
5591 | |||
5592 | cat >>confdefs.h <<\_ACEOF | ||
5593 | #define SSHD_ACQUIRES_CTTY 1 | ||
5594 | _ACEOF | ||
5595 | |||
5596 | external_path_file=/etc/default/login | ||
5597 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
5598 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
5599 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
5600 | ;; | ||
5601 | *-*-sysv4.2*) | ||
5602 | cat >>confdefs.h <<\_ACEOF | ||
5603 | #define USE_PIPES 1 | ||
5604 | _ACEOF | ||
5605 | |||
5606 | cat >>confdefs.h <<\_ACEOF | ||
5607 | #define SETEUID_BREAKS_SETUID 1 | ||
5608 | _ACEOF | ||
5609 | |||
5610 | cat >>confdefs.h <<\_ACEOF | ||
5611 | #define BROKEN_SETREUID 1 | ||
5612 | _ACEOF | ||
5613 | |||
5614 | cat >>confdefs.h <<\_ACEOF | ||
5615 | #define BROKEN_SETREGID 1 | ||
5616 | _ACEOF | ||
5617 | |||
5618 | ;; | ||
5619 | *-*-sysv5*) | ||
5620 | cat >>confdefs.h <<\_ACEOF | ||
5621 | #define USE_PIPES 1 | ||
5622 | _ACEOF | ||
5623 | |||
5624 | cat >>confdefs.h <<\_ACEOF | ||
5625 | #define SETEUID_BREAKS_SETUID 1 | ||
5626 | _ACEOF | ||
5627 | |||
5628 | cat >>confdefs.h <<\_ACEOF | ||
5629 | #define BROKEN_SETREUID 1 | ||
5630 | _ACEOF | ||
5631 | |||
5632 | cat >>confdefs.h <<\_ACEOF | ||
5633 | #define BROKEN_SETREGID 1 | ||
5634 | _ACEOF | ||
5635 | |||
5636 | ;; | ||
5637 | *-*-sysv*) | ||
5638 | ;; | ||
5639 | *-*-sco3.2v4*) | ||
5640 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize" | ||
5641 | LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm" | ||
5642 | RANLIB=true | ||
5643 | no_dev_ptmx=1 | ||
5644 | cat >>confdefs.h <<\_ACEOF | ||
5645 | #define BROKEN_SYS_TERMIO_H 1 | ||
5646 | _ACEOF | ||
5647 | |||
5648 | cat >>confdefs.h <<\_ACEOF | ||
5649 | #define USE_PIPES 1 | ||
5650 | _ACEOF | ||
5651 | |||
5652 | cat >>confdefs.h <<\_ACEOF | ||
5653 | #define HAVE_SECUREWARE 1 | ||
5654 | _ACEOF | ||
5655 | |||
5656 | cat >>confdefs.h <<\_ACEOF | ||
5657 | #define DISABLE_SHADOW 1 | ||
5658 | _ACEOF | ||
5659 | |||
5660 | cat >>confdefs.h <<\_ACEOF | ||
5661 | #define BROKEN_SAVED_UIDS 1 | ||
5662 | _ACEOF | ||
5663 | |||
5664 | cat >>confdefs.h <<\_ACEOF | ||
5665 | #define SETEUID_BREAKS_SETUID 1 | ||
5666 | _ACEOF | ||
5667 | |||
5668 | cat >>confdefs.h <<\_ACEOF | ||
5669 | #define BROKEN_SETREUID 1 | ||
5670 | _ACEOF | ||
5671 | |||
5672 | cat >>confdefs.h <<\_ACEOF | ||
5673 | #define BROKEN_SETREGID 1 | ||
5674 | _ACEOF | ||
5675 | |||
5676 | cat >>confdefs.h <<\_ACEOF | ||
5677 | #define WITH_ABBREV_NO_TTY 1 | ||
5678 | _ACEOF | ||
5679 | |||
5680 | |||
5681 | |||
5682 | for ac_func in getluid setluid | ||
5683 | do | ||
5684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5685 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5687 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5689 | else | ||
5690 | cat >conftest.$ac_ext <<_ACEOF | ||
5691 | /* confdefs.h. */ | ||
5692 | _ACEOF | ||
5693 | cat confdefs.h >>conftest.$ac_ext | ||
5694 | cat >>conftest.$ac_ext <<_ACEOF | ||
5695 | /* end confdefs.h. */ | ||
5696 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5697 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5698 | #define $ac_func innocuous_$ac_func | ||
5699 | |||
5700 | /* System header to define __stub macros and hopefully few prototypes, | ||
5701 | which can conflict with char $ac_func (); below. | ||
5702 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5703 | <limits.h> exists even on freestanding compilers. */ | ||
5704 | |||
5705 | #ifdef __STDC__ | ||
5706 | # include <limits.h> | ||
5707 | #else | ||
5708 | # include <assert.h> | ||
5709 | #endif | ||
5710 | |||
5711 | #undef $ac_func | ||
5712 | |||
5713 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5714 | #ifdef __cplusplus | ||
5715 | extern "C" | ||
5716 | { | ||
5717 | #endif | ||
5718 | /* We use char because int might match the return type of a gcc2 | ||
5719 | builtin and then its argument prototype would still apply. */ | ||
5720 | char $ac_func (); | ||
5721 | /* The GNU C library defines this for functions which it implements | ||
5722 | to always fail with ENOSYS. Some functions are actually named | ||
5723 | something starting with __ and the normal name is an alias. */ | ||
5724 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5725 | choke me | ||
5726 | #else | ||
5727 | char (*f) () = $ac_func; | ||
5728 | #endif | ||
5729 | #ifdef __cplusplus | ||
5730 | } | ||
5731 | #endif | ||
5732 | |||
5733 | int | ||
5734 | main () | ||
5735 | { | ||
5736 | return f != $ac_func; | ||
5737 | ; | ||
5738 | return 0; | ||
5739 | } | ||
5740 | _ACEOF | ||
5741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5743 | (eval $ac_link) 2>conftest.er1 | ||
5744 | ac_status=$? | ||
5745 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5746 | rm -f conftest.er1 | ||
5747 | cat conftest.err >&5 | ||
5748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5749 | (exit $ac_status); } && | ||
5750 | { ac_try='test -z "$ac_c_werror_flag" | ||
5751 | || test ! -s conftest.err' | ||
5752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5753 | (eval $ac_try) 2>&5 | ||
5754 | ac_status=$? | ||
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5756 | (exit $ac_status); }; } && | ||
5757 | { ac_try='test -s conftest$ac_exeext' | ||
5758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5759 | (eval $ac_try) 2>&5 | ||
5760 | ac_status=$? | ||
5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5762 | (exit $ac_status); }; }; then | ||
5763 | eval "$as_ac_var=yes" | ||
5764 | else | ||
5765 | echo "$as_me: failed program was:" >&5 | ||
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5767 | |||
5768 | eval "$as_ac_var=no" | ||
5769 | fi | ||
5770 | rm -f conftest.err conftest.$ac_objext \ | ||
5771 | conftest$ac_exeext conftest.$ac_ext | ||
5772 | fi | ||
5773 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5774 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5775 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5776 | cat >>confdefs.h <<_ACEOF | ||
5777 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5778 | _ACEOF | ||
5779 | |||
5780 | fi | ||
5781 | done | ||
5782 | |||
5783 | MANTYPE=man | ||
5784 | do_sco3_extra_lib_check=yes | ||
5785 | TEST_SHELL=ksh | ||
5786 | ;; | ||
5787 | *-*-sco3.2v5*) | ||
5788 | if test -z "$GCC"; then | ||
5789 | CFLAGS="$CFLAGS -belf" | ||
5790 | fi | ||
5791 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
5792 | no_dev_ptmx=1 | ||
5793 | cat >>confdefs.h <<\_ACEOF | ||
5794 | #define USE_PIPES 1 | ||
5795 | _ACEOF | ||
5796 | |||
5797 | cat >>confdefs.h <<\_ACEOF | ||
5798 | #define HAVE_SECUREWARE 1 | ||
5799 | _ACEOF | ||
5800 | |||
5801 | cat >>confdefs.h <<\_ACEOF | ||
5802 | #define DISABLE_SHADOW 1 | ||
5803 | _ACEOF | ||
5804 | |||
5805 | cat >>confdefs.h <<\_ACEOF | ||
5806 | #define DISABLE_FD_PASSING 1 | ||
5807 | _ACEOF | ||
5808 | |||
5809 | cat >>confdefs.h <<\_ACEOF | ||
5810 | #define SETEUID_BREAKS_SETUID 1 | ||
5811 | _ACEOF | ||
5812 | |||
5813 | cat >>confdefs.h <<\_ACEOF | ||
5814 | #define BROKEN_SETREUID 1 | ||
5815 | _ACEOF | ||
5816 | |||
5817 | cat >>confdefs.h <<\_ACEOF | ||
5818 | #define BROKEN_SETREGID 1 | ||
5819 | _ACEOF | ||
5820 | |||
5821 | cat >>confdefs.h <<\_ACEOF | ||
5822 | #define WITH_ABBREV_NO_TTY 1 | ||
5823 | _ACEOF | ||
5824 | |||
5825 | cat >>confdefs.h <<\_ACEOF | ||
5826 | #define BROKEN_UPDWTMPX 1 | ||
5827 | _ACEOF | ||
5828 | |||
5829 | |||
5830 | |||
5831 | for ac_func in getluid setluid | ||
5832 | do | ||
5833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
5834 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
5835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
5836 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5838 | else | ||
5839 | cat >conftest.$ac_ext <<_ACEOF | ||
5840 | /* confdefs.h. */ | ||
5841 | _ACEOF | ||
5842 | cat confdefs.h >>conftest.$ac_ext | ||
5843 | cat >>conftest.$ac_ext <<_ACEOF | ||
5844 | /* end confdefs.h. */ | ||
5845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
5846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5847 | #define $ac_func innocuous_$ac_func | ||
5848 | |||
5849 | /* System header to define __stub macros and hopefully few prototypes, | ||
5850 | which can conflict with char $ac_func (); below. | ||
5851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5852 | <limits.h> exists even on freestanding compilers. */ | ||
5853 | |||
5854 | #ifdef __STDC__ | ||
5855 | # include <limits.h> | ||
5856 | #else | ||
5857 | # include <assert.h> | ||
5858 | #endif | ||
5859 | |||
5860 | #undef $ac_func | ||
5861 | |||
5862 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
5863 | #ifdef __cplusplus | ||
5864 | extern "C" | ||
5865 | { | ||
5866 | #endif | ||
5867 | /* We use char because int might match the return type of a gcc2 | ||
5868 | builtin and then its argument prototype would still apply. */ | ||
5869 | char $ac_func (); | ||
5870 | /* The GNU C library defines this for functions which it implements | ||
5871 | to always fail with ENOSYS. Some functions are actually named | ||
5872 | something starting with __ and the normal name is an alias. */ | ||
5873 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
5874 | choke me | ||
5875 | #else | ||
5876 | char (*f) () = $ac_func; | ||
5877 | #endif | ||
5878 | #ifdef __cplusplus | ||
5879 | } | ||
5880 | #endif | ||
5881 | |||
5882 | int | ||
5883 | main () | ||
5884 | { | ||
5885 | return f != $ac_func; | ||
5886 | ; | ||
5887 | return 0; | ||
5888 | } | ||
5889 | _ACEOF | ||
5890 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
5892 | (eval $ac_link) 2>conftest.er1 | ||
5893 | ac_status=$? | ||
5894 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5895 | rm -f conftest.er1 | ||
5896 | cat conftest.err >&5 | ||
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5898 | (exit $ac_status); } && | ||
5899 | { ac_try='test -z "$ac_c_werror_flag" | ||
5900 | || test ! -s conftest.err' | ||
5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5902 | (eval $ac_try) 2>&5 | ||
5903 | ac_status=$? | ||
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5905 | (exit $ac_status); }; } && | ||
5906 | { ac_try='test -s conftest$ac_exeext' | ||
5907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5908 | (eval $ac_try) 2>&5 | ||
5909 | ac_status=$? | ||
5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5911 | (exit $ac_status); }; }; then | ||
5912 | eval "$as_ac_var=yes" | ||
5913 | else | ||
5914 | echo "$as_me: failed program was:" >&5 | ||
5915 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5916 | |||
5917 | eval "$as_ac_var=no" | ||
5918 | fi | ||
5919 | rm -f conftest.err conftest.$ac_objext \ | ||
5920 | conftest$ac_exeext conftest.$ac_ext | ||
5921 | fi | ||
5922 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
5923 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
5924 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
5925 | cat >>confdefs.h <<_ACEOF | ||
5926 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
5927 | _ACEOF | ||
5928 | |||
5929 | fi | ||
5930 | done | ||
5931 | |||
5932 | MANTYPE=man | ||
5933 | TEST_SHELL=ksh | ||
5934 | ;; | ||
5935 | *-*-unicosmk*) | ||
5936 | cat >>confdefs.h <<\_ACEOF | ||
5937 | #define NO_SSH_LASTLOG 1 | ||
5938 | _ACEOF | ||
5939 | |||
5940 | cat >>confdefs.h <<\_ACEOF | ||
5941 | #define SETEUID_BREAKS_SETUID 1 | ||
5942 | _ACEOF | ||
5943 | |||
5944 | cat >>confdefs.h <<\_ACEOF | ||
5945 | #define BROKEN_SETREUID 1 | ||
5946 | _ACEOF | ||
5947 | |||
5948 | cat >>confdefs.h <<\_ACEOF | ||
5949 | #define BROKEN_SETREGID 1 | ||
5950 | _ACEOF | ||
5951 | |||
5952 | cat >>confdefs.h <<\_ACEOF | ||
5953 | #define USE_PIPES 1 | ||
5954 | _ACEOF | ||
5955 | |||
5956 | cat >>confdefs.h <<\_ACEOF | ||
5957 | #define DISABLE_FD_PASSING 1 | ||
5958 | _ACEOF | ||
5959 | |||
5960 | LDFLAGS="$LDFLAGS" | ||
5961 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
5962 | MANTYPE=cat | ||
5963 | ;; | ||
5964 | *-*-unicosmp*) | ||
5965 | cat >>confdefs.h <<\_ACEOF | ||
5966 | #define SETEUID_BREAKS_SETUID 1 | ||
5967 | _ACEOF | ||
5968 | |||
5969 | cat >>confdefs.h <<\_ACEOF | ||
5970 | #define BROKEN_SETREUID 1 | ||
5971 | _ACEOF | ||
5972 | |||
5973 | cat >>confdefs.h <<\_ACEOF | ||
5974 | #define BROKEN_SETREGID 1 | ||
5975 | _ACEOF | ||
5976 | |||
5977 | cat >>confdefs.h <<\_ACEOF | ||
5978 | #define WITH_ABBREV_NO_TTY 1 | ||
5979 | _ACEOF | ||
5980 | |||
5981 | cat >>confdefs.h <<\_ACEOF | ||
5982 | #define USE_PIPES 1 | ||
5983 | _ACEOF | ||
5984 | |||
5985 | cat >>confdefs.h <<\_ACEOF | ||
5986 | #define DISABLE_FD_PASSING 1 | ||
5987 | _ACEOF | ||
5988 | |||
5989 | LDFLAGS="$LDFLAGS" | ||
5990 | LIBS="$LIBS -lgen -lacid -ldb" | ||
5991 | MANTYPE=cat | ||
5992 | ;; | ||
5993 | *-*-unicos*) | ||
5994 | cat >>confdefs.h <<\_ACEOF | ||
5995 | #define SETEUID_BREAKS_SETUID 1 | ||
5996 | _ACEOF | ||
5997 | |||
5998 | cat >>confdefs.h <<\_ACEOF | ||
5999 | #define BROKEN_SETREUID 1 | ||
6000 | _ACEOF | ||
6001 | |||
6002 | cat >>confdefs.h <<\_ACEOF | ||
6003 | #define BROKEN_SETREGID 1 | ||
6004 | _ACEOF | ||
6005 | |||
6006 | cat >>confdefs.h <<\_ACEOF | ||
6007 | #define USE_PIPES 1 | ||
6008 | _ACEOF | ||
6009 | |||
6010 | cat >>confdefs.h <<\_ACEOF | ||
6011 | #define DISABLE_FD_PASSING 1 | ||
6012 | _ACEOF | ||
6013 | |||
6014 | cat >>confdefs.h <<\_ACEOF | ||
6015 | #define NO_SSH_LASTLOG 1 | ||
6016 | _ACEOF | ||
6017 | |||
6018 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
6019 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
6020 | MANTYPE=cat | ||
6021 | ;; | ||
6022 | *-dec-osf*) | ||
6023 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
6024 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | ||
6025 | no_osfsia="" | ||
6026 | |||
6027 | # Check whether --with-osfsia or --without-osfsia was given. | ||
6028 | if test "${with_osfsia+set}" = set; then | ||
6029 | withval="$with_osfsia" | ||
6030 | |||
6031 | if test "x$withval" = "xno" ; then | ||
6032 | echo "$as_me:$LINENO: result: disabled" >&5 | ||
6033 | echo "${ECHO_T}disabled" >&6 | ||
6034 | no_osfsia=1 | ||
6035 | fi | ||
6036 | |||
6037 | fi; | ||
6038 | if test -z "$no_osfsia" ; then | ||
6039 | if test -f /etc/sia/matrix.conf; then | ||
6040 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6041 | echo "${ECHO_T}yes" >&6 | ||
6042 | cat >>confdefs.h <<\_ACEOF | ||
6043 | #define HAVE_OSF_SIA 1 | ||
6044 | _ACEOF | ||
6045 | |||
6046 | cat >>confdefs.h <<\_ACEOF | ||
6047 | #define DISABLE_LOGIN 1 | ||
6048 | _ACEOF | ||
6049 | |||
6050 | cat >>confdefs.h <<\_ACEOF | ||
6051 | #define DISABLE_FD_PASSING 1 | ||
6052 | _ACEOF | ||
6053 | |||
6054 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
6055 | else | ||
6056 | echo "$as_me:$LINENO: result: no" >&5 | ||
6057 | echo "${ECHO_T}no" >&6 | ||
6058 | cat >>confdefs.h <<\_ACEOF | ||
6059 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
6060 | _ACEOF | ||
6061 | |||
6062 | fi | ||
6063 | fi | ||
6064 | cat >>confdefs.h <<\_ACEOF | ||
6065 | #define BROKEN_GETADDRINFO 1 | ||
6066 | _ACEOF | ||
6067 | |||
6068 | cat >>confdefs.h <<\_ACEOF | ||
6069 | #define SETEUID_BREAKS_SETUID 1 | ||
6070 | _ACEOF | ||
6071 | |||
6072 | cat >>confdefs.h <<\_ACEOF | ||
6073 | #define BROKEN_SETREUID 1 | ||
6074 | _ACEOF | ||
6075 | |||
6076 | cat >>confdefs.h <<\_ACEOF | ||
6077 | #define BROKEN_SETREGID 1 | ||
6078 | _ACEOF | ||
6079 | |||
6080 | ;; | ||
6081 | |||
6082 | *-*-nto-qnx) | ||
6083 | cat >>confdefs.h <<\_ACEOF | ||
6084 | #define USE_PIPES 1 | ||
6085 | _ACEOF | ||
6086 | |||
6087 | cat >>confdefs.h <<\_ACEOF | ||
6088 | #define NO_X11_UNIX_SOCKETS 1 | ||
6089 | _ACEOF | ||
6090 | |||
6091 | cat >>confdefs.h <<\_ACEOF | ||
6092 | #define MISSING_NFDBITS 1 | ||
6093 | _ACEOF | ||
6094 | |||
6095 | cat >>confdefs.h <<\_ACEOF | ||
6096 | #define MISSING_HOWMANY 1 | ||
6097 | _ACEOF | ||
6098 | |||
6099 | cat >>confdefs.h <<\_ACEOF | ||
6100 | #define MISSING_FD_MASK 1 | ||
6101 | _ACEOF | ||
6102 | |||
6103 | ;; | ||
6104 | esac | ||
6105 | |||
6106 | # Allow user to specify flags | ||
6107 | |||
6108 | # Check whether --with-cflags or --without-cflags was given. | ||
6109 | if test "${with_cflags+set}" = set; then | ||
6110 | withval="$with_cflags" | ||
6111 | |||
6112 | if test "x$withval" != "xno" ; then | ||
6113 | CFLAGS="$CFLAGS $withval" | ||
6114 | fi | ||
6115 | |||
6116 | |||
6117 | fi; | ||
6118 | |||
6119 | # Check whether --with-cppflags or --without-cppflags was given. | ||
6120 | if test "${with_cppflags+set}" = set; then | ||
6121 | withval="$with_cppflags" | ||
6122 | |||
6123 | if test "x$withval" != "xno"; then | ||
6124 | CPPFLAGS="$CPPFLAGS $withval" | ||
6125 | fi | ||
6126 | |||
6127 | |||
6128 | fi; | ||
6129 | |||
6130 | # Check whether --with-ldflags or --without-ldflags was given. | ||
6131 | if test "${with_ldflags+set}" = set; then | ||
6132 | withval="$with_ldflags" | ||
6133 | |||
6134 | if test "x$withval" != "xno" ; then | ||
6135 | LDFLAGS="$LDFLAGS $withval" | ||
6136 | fi | ||
6137 | |||
6138 | |||
6139 | fi; | ||
6140 | |||
6141 | # Check whether --with-libs or --without-libs was given. | ||
6142 | if test "${with_libs+set}" = set; then | ||
6143 | withval="$with_libs" | ||
6144 | |||
6145 | if test "x$withval" != "xno" ; then | ||
6146 | LIBS="$LIBS $withval" | ||
6147 | fi | ||
6148 | |||
6149 | |||
6150 | fi; | ||
6151 | |||
6152 | echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
6153 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6 | ||
6154 | if test "$cross_compiling" = yes; then | ||
6155 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
6156 | See \`config.log' for more details." >&5 | ||
6157 | echo "$as_me: error: cannot run test program while cross compiling | ||
6158 | See \`config.log' for more details." >&2;} | ||
6159 | { (exit 1); exit 1; }; } | ||
6160 | else | ||
6161 | cat >conftest.$ac_ext <<_ACEOF | ||
6162 | /* confdefs.h. */ | ||
6163 | _ACEOF | ||
6164 | cat confdefs.h >>conftest.$ac_ext | ||
6165 | cat >>conftest.$ac_ext <<_ACEOF | ||
6166 | /* end confdefs.h. */ | ||
6167 | |||
6168 | #include <stdio.h> | ||
6169 | int main(){exit(0);} | ||
6170 | |||
6171 | _ACEOF | ||
6172 | rm -f conftest$ac_exeext | ||
6173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6174 | (eval $ac_link) 2>&5 | ||
6175 | ac_status=$? | ||
6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6177 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6179 | (eval $ac_try) 2>&5 | ||
6180 | ac_status=$? | ||
6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6182 | (exit $ac_status); }; }; then | ||
6183 | echo "$as_me:$LINENO: result: yes" >&5 | ||
6184 | echo "${ECHO_T}yes" >&6 | ||
6185 | else | ||
6186 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6187 | echo "$as_me: failed program was:" >&5 | ||
6188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6189 | |||
6190 | ( exit $ac_status ) | ||
6191 | |||
6192 | echo "$as_me:$LINENO: result: no" >&5 | ||
6193 | echo "${ECHO_T}no" >&6 | ||
6194 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
6195 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
6196 | { (exit 1); exit 1; }; } | ||
6197 | |||
6198 | |||
6199 | fi | ||
6200 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6201 | fi | ||
6202 | |||
6203 | # Checks for header files. | ||
6204 | |||
6205 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
6206 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
6207 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6209 | else | ||
6210 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
6211 | then ac_cv_prog_egrep='grep -E' | ||
6212 | else ac_cv_prog_egrep='egrep' | ||
6213 | fi | ||
6214 | fi | ||
6215 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
6216 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
6217 | EGREP=$ac_cv_prog_egrep | ||
6218 | |||
6219 | |||
6220 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
6221 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
6222 | if test "${ac_cv_header_stdc+set}" = set; then | ||
6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6224 | else | ||
6225 | cat >conftest.$ac_ext <<_ACEOF | ||
6226 | /* confdefs.h. */ | ||
6227 | _ACEOF | ||
6228 | cat confdefs.h >>conftest.$ac_ext | ||
6229 | cat >>conftest.$ac_ext <<_ACEOF | ||
6230 | /* end confdefs.h. */ | ||
6231 | #include <stdlib.h> | ||
6232 | #include <stdarg.h> | ||
6233 | #include <string.h> | ||
6234 | #include <float.h> | ||
6235 | |||
6236 | int | ||
6237 | main () | ||
6238 | { | ||
6239 | |||
6240 | ; | ||
6241 | return 0; | ||
6242 | } | ||
6243 | _ACEOF | ||
6244 | rm -f conftest.$ac_objext | ||
6245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6246 | (eval $ac_compile) 2>conftest.er1 | ||
6247 | ac_status=$? | ||
6248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6249 | rm -f conftest.er1 | ||
6250 | cat conftest.err >&5 | ||
6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6252 | (exit $ac_status); } && | ||
6253 | { ac_try='test -z "$ac_c_werror_flag" | ||
6254 | || test ! -s conftest.err' | ||
6255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6256 | (eval $ac_try) 2>&5 | ||
6257 | ac_status=$? | ||
6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6259 | (exit $ac_status); }; } && | ||
6260 | { ac_try='test -s conftest.$ac_objext' | ||
6261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6262 | (eval $ac_try) 2>&5 | ||
6263 | ac_status=$? | ||
6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6265 | (exit $ac_status); }; }; then | ||
6266 | ac_cv_header_stdc=yes | ||
6267 | else | ||
6268 | echo "$as_me: failed program was:" >&5 | ||
6269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6270 | |||
6271 | ac_cv_header_stdc=no | ||
6272 | fi | ||
6273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6274 | |||
6275 | if test $ac_cv_header_stdc = yes; then | ||
6276 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
6277 | cat >conftest.$ac_ext <<_ACEOF | ||
6278 | /* confdefs.h. */ | ||
6279 | _ACEOF | ||
6280 | cat confdefs.h >>conftest.$ac_ext | ||
6281 | cat >>conftest.$ac_ext <<_ACEOF | ||
6282 | /* end confdefs.h. */ | ||
6283 | #include <string.h> | ||
6284 | |||
6285 | _ACEOF | ||
6286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6287 | $EGREP "memchr" >/dev/null 2>&1; then | ||
6288 | : | ||
6289 | else | ||
6290 | ac_cv_header_stdc=no | ||
6291 | fi | ||
6292 | rm -f conftest* | ||
6293 | |||
6294 | fi | ||
6295 | |||
6296 | if test $ac_cv_header_stdc = yes; then | ||
6297 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
6298 | cat >conftest.$ac_ext <<_ACEOF | ||
6299 | /* confdefs.h. */ | ||
6300 | _ACEOF | ||
6301 | cat confdefs.h >>conftest.$ac_ext | ||
6302 | cat >>conftest.$ac_ext <<_ACEOF | ||
6303 | /* end confdefs.h. */ | ||
6304 | #include <stdlib.h> | ||
6305 | |||
6306 | _ACEOF | ||
6307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
6308 | $EGREP "free" >/dev/null 2>&1; then | ||
6309 | : | ||
6310 | else | ||
6311 | ac_cv_header_stdc=no | ||
6312 | fi | ||
6313 | rm -f conftest* | ||
6314 | |||
6315 | fi | ||
6316 | |||
6317 | if test $ac_cv_header_stdc = yes; then | ||
6318 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
6319 | if test "$cross_compiling" = yes; then | ||
6320 | : | ||
6321 | else | ||
6322 | cat >conftest.$ac_ext <<_ACEOF | ||
6323 | /* confdefs.h. */ | ||
6324 | _ACEOF | ||
6325 | cat confdefs.h >>conftest.$ac_ext | ||
6326 | cat >>conftest.$ac_ext <<_ACEOF | ||
6327 | /* end confdefs.h. */ | ||
6328 | #include <ctype.h> | ||
6329 | #if ((' ' & 0x0FF) == 0x020) | ||
6330 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
6331 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
6332 | #else | ||
6333 | # define ISLOWER(c) \ | ||
6334 | (('a' <= (c) && (c) <= 'i') \ | ||
6335 | || ('j' <= (c) && (c) <= 'r') \ | ||
6336 | || ('s' <= (c) && (c) <= 'z')) | ||
6337 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
6338 | #endif | ||
6339 | |||
6340 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
6341 | int | ||
6342 | main () | ||
6343 | { | ||
6344 | int i; | ||
6345 | for (i = 0; i < 256; i++) | ||
6346 | if (XOR (islower (i), ISLOWER (i)) | ||
6347 | || toupper (i) != TOUPPER (i)) | ||
6348 | exit(2); | ||
6349 | exit (0); | ||
6350 | } | ||
6351 | _ACEOF | ||
6352 | rm -f conftest$ac_exeext | ||
6353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6354 | (eval $ac_link) 2>&5 | ||
6355 | ac_status=$? | ||
6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6359 | (eval $ac_try) 2>&5 | ||
6360 | ac_status=$? | ||
6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6362 | (exit $ac_status); }; }; then | ||
6363 | : | ||
6364 | else | ||
6365 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6366 | echo "$as_me: failed program was:" >&5 | ||
6367 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6368 | |||
6369 | ( exit $ac_status ) | ||
6370 | ac_cv_header_stdc=no | ||
6371 | fi | ||
6372 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6373 | fi | ||
6374 | fi | ||
6375 | fi | ||
6376 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
6377 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
6378 | if test $ac_cv_header_stdc = yes; then | ||
6379 | |||
6380 | cat >>confdefs.h <<\_ACEOF | ||
6381 | #define STDC_HEADERS 1 | ||
6382 | _ACEOF | ||
6383 | |||
6384 | fi | ||
6385 | |||
6386 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
6387 | |||
6388 | |||
6389 | |||
6390 | |||
6391 | |||
6392 | |||
6393 | |||
6394 | |||
6395 | |||
6396 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
6397 | inttypes.h stdint.h unistd.h | ||
6398 | do | ||
6399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6404 | else | ||
6405 | cat >conftest.$ac_ext <<_ACEOF | ||
6406 | /* confdefs.h. */ | ||
6407 | _ACEOF | ||
6408 | cat confdefs.h >>conftest.$ac_ext | ||
6409 | cat >>conftest.$ac_ext <<_ACEOF | ||
6410 | /* end confdefs.h. */ | ||
6411 | $ac_includes_default | ||
6412 | |||
6413 | #include <$ac_header> | ||
6414 | _ACEOF | ||
6415 | rm -f conftest.$ac_objext | ||
6416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6417 | (eval $ac_compile) 2>conftest.er1 | ||
6418 | ac_status=$? | ||
6419 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6420 | rm -f conftest.er1 | ||
6421 | cat conftest.err >&5 | ||
6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6423 | (exit $ac_status); } && | ||
6424 | { ac_try='test -z "$ac_c_werror_flag" | ||
6425 | || test ! -s conftest.err' | ||
6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6427 | (eval $ac_try) 2>&5 | ||
6428 | ac_status=$? | ||
6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6430 | (exit $ac_status); }; } && | ||
6431 | { ac_try='test -s conftest.$ac_objext' | ||
6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6433 | (eval $ac_try) 2>&5 | ||
6434 | ac_status=$? | ||
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6436 | (exit $ac_status); }; }; then | ||
6437 | eval "$as_ac_Header=yes" | ||
6438 | else | ||
6439 | echo "$as_me: failed program was:" >&5 | ||
6440 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6441 | |||
6442 | eval "$as_ac_Header=no" | ||
6443 | fi | ||
6444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6445 | fi | ||
6446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6449 | cat >>confdefs.h <<_ACEOF | ||
6450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6451 | _ACEOF | ||
6452 | |||
6453 | fi | ||
6454 | |||
6455 | done | ||
6456 | |||
6457 | |||
6458 | |||
6459 | |||
6460 | |||
6461 | |||
6462 | |||
6463 | |||
6464 | |||
6465 | |||
6466 | |||
6467 | |||
6468 | |||
6469 | |||
6470 | |||
6471 | |||
6472 | |||
6473 | |||
6474 | |||
6475 | |||
6476 | |||
6477 | |||
6478 | |||
6479 | |||
6480 | |||
6481 | |||
6482 | |||
6483 | |||
6484 | |||
6485 | |||
6486 | |||
6487 | |||
6488 | |||
6489 | |||
6490 | |||
6491 | |||
6492 | |||
6493 | |||
6494 | |||
6495 | |||
6496 | |||
6497 | |||
6498 | |||
6499 | |||
6500 | |||
6501 | |||
6502 | |||
6503 | |||
6504 | |||
6505 | |||
6506 | |||
6507 | |||
6508 | |||
6509 | |||
6510 | |||
6511 | |||
6512 | |||
6513 | |||
6514 | for ac_header in bstring.h crypt.h dirent.h endian.h features.h \ | ||
6515 | floatingpoint.h getopt.h glob.h ia.h lastlog.h limits.h login.h \ | ||
6516 | login_cap.h maillock.h ndir.h netdb.h netgroup.h \ | ||
6517 | netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \ | ||
6518 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | ||
6519 | strings.h sys/dir.h sys/strtio.h sys/audit.h sys/bitypes.h \ | ||
6520 | sys/bsdtty.h sys/cdefs.h sys/mman.h sys/ndir.h sys/prctl.h \ | ||
6521 | sys/pstat.h sys/ptms.h sys/select.h sys/stat.h sys/stream.h \ | ||
6522 | sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h sys/un.h \ | ||
6523 | time.h tmpdir.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h | ||
6524 | do | ||
6525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6527 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6529 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6531 | fi | ||
6532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6534 | else | ||
6535 | # Is the header compilable? | ||
6536 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6537 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
6538 | cat >conftest.$ac_ext <<_ACEOF | ||
6539 | /* confdefs.h. */ | ||
6540 | _ACEOF | ||
6541 | cat confdefs.h >>conftest.$ac_ext | ||
6542 | cat >>conftest.$ac_ext <<_ACEOF | ||
6543 | /* end confdefs.h. */ | ||
6544 | $ac_includes_default | ||
6545 | #include <$ac_header> | ||
6546 | _ACEOF | ||
6547 | rm -f conftest.$ac_objext | ||
6548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6549 | (eval $ac_compile) 2>conftest.er1 | ||
6550 | ac_status=$? | ||
6551 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6552 | rm -f conftest.er1 | ||
6553 | cat conftest.err >&5 | ||
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6555 | (exit $ac_status); } && | ||
6556 | { ac_try='test -z "$ac_c_werror_flag" | ||
6557 | || test ! -s conftest.err' | ||
6558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6559 | (eval $ac_try) 2>&5 | ||
6560 | ac_status=$? | ||
6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6562 | (exit $ac_status); }; } && | ||
6563 | { ac_try='test -s conftest.$ac_objext' | ||
6564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6565 | (eval $ac_try) 2>&5 | ||
6566 | ac_status=$? | ||
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6568 | (exit $ac_status); }; }; then | ||
6569 | ac_header_compiler=yes | ||
6570 | else | ||
6571 | echo "$as_me: failed program was:" >&5 | ||
6572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6573 | |||
6574 | ac_header_compiler=no | ||
6575 | fi | ||
6576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6577 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6578 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
6579 | |||
6580 | # Is the header present? | ||
6581 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6582 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
6583 | cat >conftest.$ac_ext <<_ACEOF | ||
6584 | /* confdefs.h. */ | ||
6585 | _ACEOF | ||
6586 | cat confdefs.h >>conftest.$ac_ext | ||
6587 | cat >>conftest.$ac_ext <<_ACEOF | ||
6588 | /* end confdefs.h. */ | ||
6589 | #include <$ac_header> | ||
6590 | _ACEOF | ||
6591 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
6592 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
6593 | ac_status=$? | ||
6594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6595 | rm -f conftest.er1 | ||
6596 | cat conftest.err >&5 | ||
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6598 | (exit $ac_status); } >/dev/null; then | ||
6599 | if test -s conftest.err; then | ||
6600 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
6601 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
6602 | else | ||
6603 | ac_cpp_err= | ||
6604 | fi | ||
6605 | else | ||
6606 | ac_cpp_err=yes | ||
6607 | fi | ||
6608 | if test -z "$ac_cpp_err"; then | ||
6609 | ac_header_preproc=yes | ||
6610 | else | ||
6611 | echo "$as_me: failed program was:" >&5 | ||
6612 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6613 | |||
6614 | ac_header_preproc=no | ||
6615 | fi | ||
6616 | rm -f conftest.err conftest.$ac_ext | ||
6617 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6618 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
6619 | |||
6620 | # So? What about this header? | ||
6621 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6622 | yes:no: ) | ||
6623 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6624 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6626 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6627 | ac_header_preproc=yes | ||
6628 | ;; | ||
6629 | no:yes:* ) | ||
6630 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6631 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6632 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6633 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6634 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6635 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6636 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6637 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6640 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6641 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6642 | ( | ||
6643 | cat <<\_ASBOX | ||
6644 | ## ------------------------------------------ ## | ||
6645 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
6646 | ## ------------------------------------------ ## | ||
6647 | _ASBOX | ||
6648 | ) | | ||
6649 | sed "s/^/$as_me: WARNING: /" >&2 | ||
6650 | ;; | ||
6651 | esac | ||
6652 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
6654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6656 | else | ||
6657 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6658 | fi | ||
6659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
6660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
6661 | |||
6662 | fi | ||
6663 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6664 | cat >>confdefs.h <<_ACEOF | ||
6665 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6666 | _ACEOF | ||
6667 | |||
6668 | fi | ||
6669 | |||
6670 | done | ||
6671 | |||
6672 | |||
6673 | # Checks for libraries. | ||
6674 | echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
6675 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | ||
6676 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
6677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6678 | else | ||
6679 | cat >conftest.$ac_ext <<_ACEOF | ||
6680 | /* confdefs.h. */ | ||
6681 | _ACEOF | ||
6682 | cat confdefs.h >>conftest.$ac_ext | ||
6683 | cat >>conftest.$ac_ext <<_ACEOF | ||
6684 | /* end confdefs.h. */ | ||
6685 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
6686 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6687 | #define yp_match innocuous_yp_match | ||
6688 | |||
6689 | /* System header to define __stub macros and hopefully few prototypes, | ||
6690 | which can conflict with char yp_match (); below. | ||
6691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6692 | <limits.h> exists even on freestanding compilers. */ | ||
6693 | |||
6694 | #ifdef __STDC__ | ||
6695 | # include <limits.h> | ||
6696 | #else | ||
6697 | # include <assert.h> | ||
6698 | #endif | ||
6699 | |||
6700 | #undef yp_match | ||
6701 | |||
6702 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6703 | #ifdef __cplusplus | ||
6704 | extern "C" | ||
6705 | { | ||
6706 | #endif | ||
6707 | /* We use char because int might match the return type of a gcc2 | ||
6708 | builtin and then its argument prototype would still apply. */ | ||
6709 | char yp_match (); | ||
6710 | /* The GNU C library defines this for functions which it implements | ||
6711 | to always fail with ENOSYS. Some functions are actually named | ||
6712 | something starting with __ and the normal name is an alias. */ | ||
6713 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | ||
6714 | choke me | ||
6715 | #else | ||
6716 | char (*f) () = yp_match; | ||
6717 | #endif | ||
6718 | #ifdef __cplusplus | ||
6719 | } | ||
6720 | #endif | ||
6721 | |||
6722 | int | ||
6723 | main () | ||
6724 | { | ||
6725 | return f != yp_match; | ||
6726 | ; | ||
6727 | return 0; | ||
6728 | } | ||
6729 | _ACEOF | ||
6730 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6732 | (eval $ac_link) 2>conftest.er1 | ||
6733 | ac_status=$? | ||
6734 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6735 | rm -f conftest.er1 | ||
6736 | cat conftest.err >&5 | ||
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6738 | (exit $ac_status); } && | ||
6739 | { ac_try='test -z "$ac_c_werror_flag" | ||
6740 | || test ! -s conftest.err' | ||
6741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6742 | (eval $ac_try) 2>&5 | ||
6743 | ac_status=$? | ||
6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6745 | (exit $ac_status); }; } && | ||
6746 | { ac_try='test -s conftest$ac_exeext' | ||
6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6748 | (eval $ac_try) 2>&5 | ||
6749 | ac_status=$? | ||
6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6751 | (exit $ac_status); }; }; then | ||
6752 | ac_cv_func_yp_match=yes | ||
6753 | else | ||
6754 | echo "$as_me: failed program was:" >&5 | ||
6755 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6756 | |||
6757 | ac_cv_func_yp_match=no | ||
6758 | fi | ||
6759 | rm -f conftest.err conftest.$ac_objext \ | ||
6760 | conftest$ac_exeext conftest.$ac_ext | ||
6761 | fi | ||
6762 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
6763 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | ||
6764 | if test $ac_cv_func_yp_match = yes; then | ||
6765 | : | ||
6766 | else | ||
6767 | |||
6768 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
6769 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | ||
6770 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6772 | else | ||
6773 | ac_check_lib_save_LIBS=$LIBS | ||
6774 | LIBS="-lnsl $LIBS" | ||
6775 | cat >conftest.$ac_ext <<_ACEOF | ||
6776 | /* confdefs.h. */ | ||
6777 | _ACEOF | ||
6778 | cat confdefs.h >>conftest.$ac_ext | ||
6779 | cat >>conftest.$ac_ext <<_ACEOF | ||
6780 | /* end confdefs.h. */ | ||
6781 | |||
6782 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6783 | #ifdef __cplusplus | ||
6784 | extern "C" | ||
6785 | #endif | ||
6786 | /* We use char because int might match the return type of a gcc2 | ||
6787 | builtin and then its argument prototype would still apply. */ | ||
6788 | char yp_match (); | ||
6789 | int | ||
6790 | main () | ||
6791 | { | ||
6792 | yp_match (); | ||
6793 | ; | ||
6794 | return 0; | ||
6795 | } | ||
6796 | _ACEOF | ||
6797 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6799 | (eval $ac_link) 2>conftest.er1 | ||
6800 | ac_status=$? | ||
6801 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6802 | rm -f conftest.er1 | ||
6803 | cat conftest.err >&5 | ||
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6805 | (exit $ac_status); } && | ||
6806 | { ac_try='test -z "$ac_c_werror_flag" | ||
6807 | || test ! -s conftest.err' | ||
6808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6809 | (eval $ac_try) 2>&5 | ||
6810 | ac_status=$? | ||
6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6812 | (exit $ac_status); }; } && | ||
6813 | { ac_try='test -s conftest$ac_exeext' | ||
6814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6815 | (eval $ac_try) 2>&5 | ||
6816 | ac_status=$? | ||
6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6818 | (exit $ac_status); }; }; then | ||
6819 | ac_cv_lib_nsl_yp_match=yes | ||
6820 | else | ||
6821 | echo "$as_me: failed program was:" >&5 | ||
6822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6823 | |||
6824 | ac_cv_lib_nsl_yp_match=no | ||
6825 | fi | ||
6826 | rm -f conftest.err conftest.$ac_objext \ | ||
6827 | conftest$ac_exeext conftest.$ac_ext | ||
6828 | LIBS=$ac_check_lib_save_LIBS | ||
6829 | fi | ||
6830 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
6831 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | ||
6832 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
6833 | cat >>confdefs.h <<_ACEOF | ||
6834 | #define HAVE_LIBNSL 1 | ||
6835 | _ACEOF | ||
6836 | |||
6837 | LIBS="-lnsl $LIBS" | ||
6838 | |||
6839 | fi | ||
6840 | |||
6841 | fi | ||
6842 | |||
6843 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
6844 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | ||
6845 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6847 | else | ||
6848 | cat >conftest.$ac_ext <<_ACEOF | ||
6849 | /* confdefs.h. */ | ||
6850 | _ACEOF | ||
6851 | cat confdefs.h >>conftest.$ac_ext | ||
6852 | cat >>conftest.$ac_ext <<_ACEOF | ||
6853 | /* end confdefs.h. */ | ||
6854 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
6855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6856 | #define setsockopt innocuous_setsockopt | ||
6857 | |||
6858 | /* System header to define __stub macros and hopefully few prototypes, | ||
6859 | which can conflict with char setsockopt (); below. | ||
6860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6861 | <limits.h> exists even on freestanding compilers. */ | ||
6862 | |||
6863 | #ifdef __STDC__ | ||
6864 | # include <limits.h> | ||
6865 | #else | ||
6866 | # include <assert.h> | ||
6867 | #endif | ||
6868 | |||
6869 | #undef setsockopt | ||
6870 | |||
6871 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6872 | #ifdef __cplusplus | ||
6873 | extern "C" | ||
6874 | { | ||
6875 | #endif | ||
6876 | /* We use char because int might match the return type of a gcc2 | ||
6877 | builtin and then its argument prototype would still apply. */ | ||
6878 | char setsockopt (); | ||
6879 | /* The GNU C library defines this for functions which it implements | ||
6880 | to always fail with ENOSYS. Some functions are actually named | ||
6881 | something starting with __ and the normal name is an alias. */ | ||
6882 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | ||
6883 | choke me | ||
6884 | #else | ||
6885 | char (*f) () = setsockopt; | ||
6886 | #endif | ||
6887 | #ifdef __cplusplus | ||
6888 | } | ||
6889 | #endif | ||
6890 | |||
6891 | int | ||
6892 | main () | ||
6893 | { | ||
6894 | return f != setsockopt; | ||
6895 | ; | ||
6896 | return 0; | ||
6897 | } | ||
6898 | _ACEOF | ||
6899 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6901 | (eval $ac_link) 2>conftest.er1 | ||
6902 | ac_status=$? | ||
6903 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6904 | rm -f conftest.er1 | ||
6905 | cat conftest.err >&5 | ||
6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6907 | (exit $ac_status); } && | ||
6908 | { ac_try='test -z "$ac_c_werror_flag" | ||
6909 | || test ! -s conftest.err' | ||
6910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6911 | (eval $ac_try) 2>&5 | ||
6912 | ac_status=$? | ||
6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6914 | (exit $ac_status); }; } && | ||
6915 | { ac_try='test -s conftest$ac_exeext' | ||
6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6917 | (eval $ac_try) 2>&5 | ||
6918 | ac_status=$? | ||
6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6920 | (exit $ac_status); }; }; then | ||
6921 | ac_cv_func_setsockopt=yes | ||
6922 | else | ||
6923 | echo "$as_me: failed program was:" >&5 | ||
6924 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6925 | |||
6926 | ac_cv_func_setsockopt=no | ||
6927 | fi | ||
6928 | rm -f conftest.err conftest.$ac_objext \ | ||
6929 | conftest$ac_exeext conftest.$ac_ext | ||
6930 | fi | ||
6931 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
6932 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | ||
6933 | if test $ac_cv_func_setsockopt = yes; then | ||
6934 | : | ||
6935 | else | ||
6936 | |||
6937 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
6938 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | ||
6939 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6941 | else | ||
6942 | ac_check_lib_save_LIBS=$LIBS | ||
6943 | LIBS="-lsocket $LIBS" | ||
6944 | cat >conftest.$ac_ext <<_ACEOF | ||
6945 | /* confdefs.h. */ | ||
6946 | _ACEOF | ||
6947 | cat confdefs.h >>conftest.$ac_ext | ||
6948 | cat >>conftest.$ac_ext <<_ACEOF | ||
6949 | /* end confdefs.h. */ | ||
6950 | |||
6951 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
6952 | #ifdef __cplusplus | ||
6953 | extern "C" | ||
6954 | #endif | ||
6955 | /* We use char because int might match the return type of a gcc2 | ||
6956 | builtin and then its argument prototype would still apply. */ | ||
6957 | char setsockopt (); | ||
6958 | int | ||
6959 | main () | ||
6960 | { | ||
6961 | setsockopt (); | ||
6962 | ; | ||
6963 | return 0; | ||
6964 | } | ||
6965 | _ACEOF | ||
6966 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6968 | (eval $ac_link) 2>conftest.er1 | ||
6969 | ac_status=$? | ||
6970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6971 | rm -f conftest.er1 | ||
6972 | cat conftest.err >&5 | ||
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6974 | (exit $ac_status); } && | ||
6975 | { ac_try='test -z "$ac_c_werror_flag" | ||
6976 | || test ! -s conftest.err' | ||
6977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6978 | (eval $ac_try) 2>&5 | ||
6979 | ac_status=$? | ||
6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6981 | (exit $ac_status); }; } && | ||
6982 | { ac_try='test -s conftest$ac_exeext' | ||
6983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
6984 | (eval $ac_try) 2>&5 | ||
6985 | ac_status=$? | ||
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6987 | (exit $ac_status); }; }; then | ||
6988 | ac_cv_lib_socket_setsockopt=yes | ||
6989 | else | ||
6990 | echo "$as_me: failed program was:" >&5 | ||
6991 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6992 | |||
6993 | ac_cv_lib_socket_setsockopt=no | ||
6994 | fi | ||
6995 | rm -f conftest.err conftest.$ac_objext \ | ||
6996 | conftest$ac_exeext conftest.$ac_ext | ||
6997 | LIBS=$ac_check_lib_save_LIBS | ||
6998 | fi | ||
6999 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7000 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | ||
7001 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
7002 | cat >>confdefs.h <<_ACEOF | ||
7003 | #define HAVE_LIBSOCKET 1 | ||
7004 | _ACEOF | ||
7005 | |||
7006 | LIBS="-lsocket $LIBS" | ||
7007 | |||
7008 | fi | ||
7009 | |||
7010 | fi | ||
7011 | |||
7012 | |||
7013 | if test "x$with_tcp_wrappers" != "xno" ; then | ||
7014 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | ||
7015 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | ||
7016 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | ||
7017 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | ||
7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7019 | else | ||
7020 | ac_check_lib_save_LIBS=$LIBS | ||
7021 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
7022 | cat >conftest.$ac_ext <<_ACEOF | ||
7023 | /* confdefs.h. */ | ||
7024 | _ACEOF | ||
7025 | cat confdefs.h >>conftest.$ac_ext | ||
7026 | cat >>conftest.$ac_ext <<_ACEOF | ||
7027 | /* end confdefs.h. */ | ||
7028 | |||
7029 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7030 | #ifdef __cplusplus | ||
7031 | extern "C" | ||
7032 | #endif | ||
7033 | /* We use char because int might match the return type of a gcc2 | ||
7034 | builtin and then its argument prototype would still apply. */ | ||
7035 | char innetgr (); | ||
7036 | int | ||
7037 | main () | ||
7038 | { | ||
7039 | innetgr (); | ||
7040 | ; | ||
7041 | return 0; | ||
7042 | } | ||
7043 | _ACEOF | ||
7044 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7046 | (eval $ac_link) 2>conftest.er1 | ||
7047 | ac_status=$? | ||
7048 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7049 | rm -f conftest.er1 | ||
7050 | cat conftest.err >&5 | ||
7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7052 | (exit $ac_status); } && | ||
7053 | { ac_try='test -z "$ac_c_werror_flag" | ||
7054 | || test ! -s conftest.err' | ||
7055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7056 | (eval $ac_try) 2>&5 | ||
7057 | ac_status=$? | ||
7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7059 | (exit $ac_status); }; } && | ||
7060 | { ac_try='test -s conftest$ac_exeext' | ||
7061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7062 | (eval $ac_try) 2>&5 | ||
7063 | ac_status=$? | ||
7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7065 | (exit $ac_status); }; }; then | ||
7066 | ac_cv_lib_rpc_innetgr=yes | ||
7067 | else | ||
7068 | echo "$as_me: failed program was:" >&5 | ||
7069 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7070 | |||
7071 | ac_cv_lib_rpc_innetgr=no | ||
7072 | fi | ||
7073 | rm -f conftest.err conftest.$ac_objext \ | ||
7074 | conftest$ac_exeext conftest.$ac_ext | ||
7075 | LIBS=$ac_check_lib_save_LIBS | ||
7076 | fi | ||
7077 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | ||
7078 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | ||
7079 | if test $ac_cv_lib_rpc_innetgr = yes; then | ||
7080 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
7081 | fi | ||
7082 | |||
7083 | fi | ||
7084 | fi | ||
7085 | |||
7086 | |||
7087 | for ac_func in dirname | ||
7088 | do | ||
7089 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7090 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7091 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
7092 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
7093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7094 | else | ||
7095 | cat >conftest.$ac_ext <<_ACEOF | ||
7096 | /* confdefs.h. */ | ||
7097 | _ACEOF | ||
7098 | cat confdefs.h >>conftest.$ac_ext | ||
7099 | cat >>conftest.$ac_ext <<_ACEOF | ||
7100 | /* end confdefs.h. */ | ||
7101 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7102 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7103 | #define $ac_func innocuous_$ac_func | ||
7104 | |||
7105 | /* System header to define __stub macros and hopefully few prototypes, | ||
7106 | which can conflict with char $ac_func (); below. | ||
7107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7108 | <limits.h> exists even on freestanding compilers. */ | ||
7109 | |||
7110 | #ifdef __STDC__ | ||
7111 | # include <limits.h> | ||
7112 | #else | ||
7113 | # include <assert.h> | ||
7114 | #endif | ||
7115 | |||
7116 | #undef $ac_func | ||
7117 | |||
7118 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7119 | #ifdef __cplusplus | ||
7120 | extern "C" | ||
7121 | { | ||
7122 | #endif | ||
7123 | /* We use char because int might match the return type of a gcc2 | ||
7124 | builtin and then its argument prototype would still apply. */ | ||
7125 | char $ac_func (); | ||
7126 | /* The GNU C library defines this for functions which it implements | ||
7127 | to always fail with ENOSYS. Some functions are actually named | ||
7128 | something starting with __ and the normal name is an alias. */ | ||
7129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
7130 | choke me | ||
7131 | #else | ||
7132 | char (*f) () = $ac_func; | ||
7133 | #endif | ||
7134 | #ifdef __cplusplus | ||
7135 | } | ||
7136 | #endif | ||
7137 | |||
7138 | int | ||
7139 | main () | ||
7140 | { | ||
7141 | return f != $ac_func; | ||
7142 | ; | ||
7143 | return 0; | ||
7144 | } | ||
7145 | _ACEOF | ||
7146 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7148 | (eval $ac_link) 2>conftest.er1 | ||
7149 | ac_status=$? | ||
7150 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7151 | rm -f conftest.er1 | ||
7152 | cat conftest.err >&5 | ||
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7154 | (exit $ac_status); } && | ||
7155 | { ac_try='test -z "$ac_c_werror_flag" | ||
7156 | || test ! -s conftest.err' | ||
7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7158 | (eval $ac_try) 2>&5 | ||
7159 | ac_status=$? | ||
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7161 | (exit $ac_status); }; } && | ||
7162 | { ac_try='test -s conftest$ac_exeext' | ||
7163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7164 | (eval $ac_try) 2>&5 | ||
7165 | ac_status=$? | ||
7166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7167 | (exit $ac_status); }; }; then | ||
7168 | eval "$as_ac_var=yes" | ||
7169 | else | ||
7170 | echo "$as_me: failed program was:" >&5 | ||
7171 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7172 | |||
7173 | eval "$as_ac_var=no" | ||
7174 | fi | ||
7175 | rm -f conftest.err conftest.$ac_objext \ | ||
7176 | conftest$ac_exeext conftest.$ac_ext | ||
7177 | fi | ||
7178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
7179 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
7180 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7181 | cat >>confdefs.h <<_ACEOF | ||
7182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7183 | _ACEOF | ||
7184 | |||
7185 | for ac_header in libgen.h | ||
7186 | do | ||
7187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7193 | fi | ||
7194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7196 | else | ||
7197 | # Is the header compilable? | ||
7198 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7199 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
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 | $ac_includes_default | ||
7207 | #include <$ac_header> | ||
7208 | _ACEOF | ||
7209 | rm -f conftest.$ac_objext | ||
7210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7211 | (eval $ac_compile) 2>conftest.er1 | ||
7212 | ac_status=$? | ||
7213 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7214 | rm -f conftest.er1 | ||
7215 | cat conftest.err >&5 | ||
7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7217 | (exit $ac_status); } && | ||
7218 | { ac_try='test -z "$ac_c_werror_flag" | ||
7219 | || test ! -s conftest.err' | ||
7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7221 | (eval $ac_try) 2>&5 | ||
7222 | ac_status=$? | ||
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7224 | (exit $ac_status); }; } && | ||
7225 | { ac_try='test -s conftest.$ac_objext' | ||
7226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7227 | (eval $ac_try) 2>&5 | ||
7228 | ac_status=$? | ||
7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7230 | (exit $ac_status); }; }; then | ||
7231 | ac_header_compiler=yes | ||
7232 | else | ||
7233 | echo "$as_me: failed program was:" >&5 | ||
7234 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7235 | |||
7236 | ac_header_compiler=no | ||
7237 | fi | ||
7238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7239 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7240 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7241 | |||
7242 | # Is the header present? | ||
7243 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7244 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7245 | cat >conftest.$ac_ext <<_ACEOF | ||
7246 | /* confdefs.h. */ | ||
7247 | _ACEOF | ||
7248 | cat confdefs.h >>conftest.$ac_ext | ||
7249 | cat >>conftest.$ac_ext <<_ACEOF | ||
7250 | /* end confdefs.h. */ | ||
7251 | #include <$ac_header> | ||
7252 | _ACEOF | ||
7253 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7254 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7255 | ac_status=$? | ||
7256 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7257 | rm -f conftest.er1 | ||
7258 | cat conftest.err >&5 | ||
7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7260 | (exit $ac_status); } >/dev/null; then | ||
7261 | if test -s conftest.err; then | ||
7262 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7263 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7264 | else | ||
7265 | ac_cpp_err= | ||
7266 | fi | ||
7267 | else | ||
7268 | ac_cpp_err=yes | ||
7269 | fi | ||
7270 | if test -z "$ac_cpp_err"; then | ||
7271 | ac_header_preproc=yes | ||
7272 | else | ||
7273 | echo "$as_me: failed program was:" >&5 | ||
7274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7275 | |||
7276 | ac_header_preproc=no | ||
7277 | fi | ||
7278 | rm -f conftest.err conftest.$ac_ext | ||
7279 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7280 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7281 | |||
7282 | # So? What about this header? | ||
7283 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7284 | yes:no: ) | ||
7285 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7286 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7288 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7289 | ac_header_preproc=yes | ||
7290 | ;; | ||
7291 | no:yes:* ) | ||
7292 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7293 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7294 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7295 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7296 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7297 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7298 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7299 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7300 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7301 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7302 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7303 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7304 | ( | ||
7305 | cat <<\_ASBOX | ||
7306 | ## ------------------------------------------ ## | ||
7307 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
7308 | ## ------------------------------------------ ## | ||
7309 | _ASBOX | ||
7310 | ) | | ||
7311 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7312 | ;; | ||
7313 | esac | ||
7314 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7318 | else | ||
7319 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7320 | fi | ||
7321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7322 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7323 | |||
7324 | fi | ||
7325 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7326 | cat >>confdefs.h <<_ACEOF | ||
7327 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7328 | _ACEOF | ||
7329 | |||
7330 | fi | ||
7331 | |||
7332 | done | ||
7333 | |||
7334 | else | ||
7335 | |||
7336 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
7337 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | ||
7338 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
7339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7340 | else | ||
7341 | ac_check_lib_save_LIBS=$LIBS | ||
7342 | LIBS="-lgen $LIBS" | ||
7343 | cat >conftest.$ac_ext <<_ACEOF | ||
7344 | /* confdefs.h. */ | ||
7345 | _ACEOF | ||
7346 | cat confdefs.h >>conftest.$ac_ext | ||
7347 | cat >>conftest.$ac_ext <<_ACEOF | ||
7348 | /* end confdefs.h. */ | ||
7349 | |||
7350 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7351 | #ifdef __cplusplus | ||
7352 | extern "C" | ||
7353 | #endif | ||
7354 | /* We use char because int might match the return type of a gcc2 | ||
7355 | builtin and then its argument prototype would still apply. */ | ||
7356 | char dirname (); | ||
7357 | int | ||
7358 | main () | ||
7359 | { | ||
7360 | dirname (); | ||
7361 | ; | ||
7362 | return 0; | ||
7363 | } | ||
7364 | _ACEOF | ||
7365 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7367 | (eval $ac_link) 2>conftest.er1 | ||
7368 | ac_status=$? | ||
7369 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7370 | rm -f conftest.er1 | ||
7371 | cat conftest.err >&5 | ||
7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7373 | (exit $ac_status); } && | ||
7374 | { ac_try='test -z "$ac_c_werror_flag" | ||
7375 | || test ! -s conftest.err' | ||
7376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7377 | (eval $ac_try) 2>&5 | ||
7378 | ac_status=$? | ||
7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7380 | (exit $ac_status); }; } && | ||
7381 | { ac_try='test -s conftest$ac_exeext' | ||
7382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7383 | (eval $ac_try) 2>&5 | ||
7384 | ac_status=$? | ||
7385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7386 | (exit $ac_status); }; }; then | ||
7387 | ac_cv_lib_gen_dirname=yes | ||
7388 | else | ||
7389 | echo "$as_me: failed program was:" >&5 | ||
7390 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7391 | |||
7392 | ac_cv_lib_gen_dirname=no | ||
7393 | fi | ||
7394 | rm -f conftest.err conftest.$ac_objext \ | ||
7395 | conftest$ac_exeext conftest.$ac_ext | ||
7396 | LIBS=$ac_check_lib_save_LIBS | ||
7397 | fi | ||
7398 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
7399 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | ||
7400 | if test $ac_cv_lib_gen_dirname = yes; then | ||
7401 | |||
7402 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
7403 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | ||
7404 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
7405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7406 | else | ||
7407 | |||
7408 | save_LIBS="$LIBS" | ||
7409 | LIBS="$LIBS -lgen" | ||
7410 | if test "$cross_compiling" = yes; then | ||
7411 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7412 | See \`config.log' for more details." >&5 | ||
7413 | echo "$as_me: error: cannot run test program while cross compiling | ||
7414 | See \`config.log' for more details." >&2;} | ||
7415 | { (exit 1); exit 1; }; } | ||
7416 | else | ||
7417 | cat >conftest.$ac_ext <<_ACEOF | ||
7418 | /* confdefs.h. */ | ||
7419 | _ACEOF | ||
7420 | cat confdefs.h >>conftest.$ac_ext | ||
7421 | cat >>conftest.$ac_ext <<_ACEOF | ||
7422 | /* end confdefs.h. */ | ||
7423 | |||
7424 | #include <libgen.h> | ||
7425 | #include <string.h> | ||
7426 | |||
7427 | int main(int argc, char **argv) { | ||
7428 | char *s, buf[32]; | ||
7429 | |||
7430 | strncpy(buf,"/etc", 32); | ||
7431 | s = dirname(buf); | ||
7432 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7433 | exit(1); | ||
7434 | } else { | ||
7435 | exit(0); | ||
7436 | } | ||
7437 | } | ||
7438 | |||
7439 | _ACEOF | ||
7440 | rm -f conftest$ac_exeext | ||
7441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7442 | (eval $ac_link) 2>&5 | ||
7443 | ac_status=$? | ||
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7447 | (eval $ac_try) 2>&5 | ||
7448 | ac_status=$? | ||
7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7450 | (exit $ac_status); }; }; then | ||
7451 | ac_cv_have_broken_dirname="no" | ||
7452 | else | ||
7453 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7454 | echo "$as_me: failed program was:" >&5 | ||
7455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7456 | |||
7457 | ( exit $ac_status ) | ||
7458 | ac_cv_have_broken_dirname="yes" | ||
7459 | |||
7460 | fi | ||
7461 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7462 | fi | ||
7463 | LIBS="$save_LIBS" | ||
7464 | |||
7465 | fi | ||
7466 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
7467 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | ||
7468 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7469 | LIBS="$LIBS -lgen" | ||
7470 | cat >>confdefs.h <<\_ACEOF | ||
7471 | #define HAVE_DIRNAME 1 | ||
7472 | _ACEOF | ||
7473 | |||
7474 | |||
7475 | for ac_header in libgen.h | ||
7476 | do | ||
7477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7483 | fi | ||
7484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7486 | else | ||
7487 | # Is the header compilable? | ||
7488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
7490 | cat >conftest.$ac_ext <<_ACEOF | ||
7491 | /* confdefs.h. */ | ||
7492 | _ACEOF | ||
7493 | cat confdefs.h >>conftest.$ac_ext | ||
7494 | cat >>conftest.$ac_ext <<_ACEOF | ||
7495 | /* end confdefs.h. */ | ||
7496 | $ac_includes_default | ||
7497 | #include <$ac_header> | ||
7498 | _ACEOF | ||
7499 | rm -f conftest.$ac_objext | ||
7500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7501 | (eval $ac_compile) 2>conftest.er1 | ||
7502 | ac_status=$? | ||
7503 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7504 | rm -f conftest.er1 | ||
7505 | cat conftest.err >&5 | ||
7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7507 | (exit $ac_status); } && | ||
7508 | { ac_try='test -z "$ac_c_werror_flag" | ||
7509 | || test ! -s conftest.err' | ||
7510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7511 | (eval $ac_try) 2>&5 | ||
7512 | ac_status=$? | ||
7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7514 | (exit $ac_status); }; } && | ||
7515 | { ac_try='test -s conftest.$ac_objext' | ||
7516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7517 | (eval $ac_try) 2>&5 | ||
7518 | ac_status=$? | ||
7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7520 | (exit $ac_status); }; }; then | ||
7521 | ac_header_compiler=yes | ||
7522 | else | ||
7523 | echo "$as_me: failed program was:" >&5 | ||
7524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7525 | |||
7526 | ac_header_compiler=no | ||
7527 | fi | ||
7528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7530 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
7531 | |||
7532 | # Is the header present? | ||
7533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
7535 | cat >conftest.$ac_ext <<_ACEOF | ||
7536 | /* confdefs.h. */ | ||
7537 | _ACEOF | ||
7538 | cat confdefs.h >>conftest.$ac_ext | ||
7539 | cat >>conftest.$ac_ext <<_ACEOF | ||
7540 | /* end confdefs.h. */ | ||
7541 | #include <$ac_header> | ||
7542 | _ACEOF | ||
7543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
7544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
7545 | ac_status=$? | ||
7546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7547 | rm -f conftest.er1 | ||
7548 | cat conftest.err >&5 | ||
7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7550 | (exit $ac_status); } >/dev/null; then | ||
7551 | if test -s conftest.err; then | ||
7552 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
7553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
7554 | else | ||
7555 | ac_cpp_err= | ||
7556 | fi | ||
7557 | else | ||
7558 | ac_cpp_err=yes | ||
7559 | fi | ||
7560 | if test -z "$ac_cpp_err"; then | ||
7561 | ac_header_preproc=yes | ||
7562 | else | ||
7563 | echo "$as_me: failed program was:" >&5 | ||
7564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7565 | |||
7566 | ac_header_preproc=no | ||
7567 | fi | ||
7568 | rm -f conftest.err conftest.$ac_ext | ||
7569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7570 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
7571 | |||
7572 | # So? What about this header? | ||
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7574 | yes:no: ) | ||
7575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7579 | ac_header_preproc=yes | ||
7580 | ;; | ||
7581 | no:yes:* ) | ||
7582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7594 | ( | ||
7595 | cat <<\_ASBOX | ||
7596 | ## ------------------------------------------ ## | ||
7597 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
7598 | ## ------------------------------------------ ## | ||
7599 | _ASBOX | ||
7600 | ) | | ||
7601 | sed "s/^/$as_me: WARNING: /" >&2 | ||
7602 | ;; | ||
7603 | esac | ||
7604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
7606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
7607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7608 | else | ||
7609 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7610 | fi | ||
7611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
7612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
7613 | |||
7614 | fi | ||
7615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7616 | cat >>confdefs.h <<_ACEOF | ||
7617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7618 | _ACEOF | ||
7619 | |||
7620 | fi | ||
7621 | |||
7622 | done | ||
7623 | |||
7624 | fi | ||
7625 | |||
7626 | fi | ||
7627 | |||
7628 | |||
7629 | fi | ||
7630 | done | ||
7631 | |||
7632 | |||
7633 | echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
7634 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | ||
7635 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
7636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7637 | else | ||
7638 | cat >conftest.$ac_ext <<_ACEOF | ||
7639 | /* confdefs.h. */ | ||
7640 | _ACEOF | ||
7641 | cat confdefs.h >>conftest.$ac_ext | ||
7642 | cat >>conftest.$ac_ext <<_ACEOF | ||
7643 | /* end confdefs.h. */ | ||
7644 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
7645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7646 | #define getspnam innocuous_getspnam | ||
7647 | |||
7648 | /* System header to define __stub macros and hopefully few prototypes, | ||
7649 | which can conflict with char getspnam (); below. | ||
7650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7651 | <limits.h> exists even on freestanding compilers. */ | ||
7652 | |||
7653 | #ifdef __STDC__ | ||
7654 | # include <limits.h> | ||
7655 | #else | ||
7656 | # include <assert.h> | ||
7657 | #endif | ||
7658 | |||
7659 | #undef getspnam | ||
7660 | |||
7661 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7662 | #ifdef __cplusplus | ||
7663 | extern "C" | ||
7664 | { | ||
7665 | #endif | ||
7666 | /* We use char because int might match the return type of a gcc2 | ||
7667 | builtin and then its argument prototype would still apply. */ | ||
7668 | char getspnam (); | ||
7669 | /* The GNU C library defines this for functions which it implements | ||
7670 | to always fail with ENOSYS. Some functions are actually named | ||
7671 | something starting with __ and the normal name is an alias. */ | ||
7672 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | ||
7673 | choke me | ||
7674 | #else | ||
7675 | char (*f) () = getspnam; | ||
7676 | #endif | ||
7677 | #ifdef __cplusplus | ||
7678 | } | ||
7679 | #endif | ||
7680 | |||
7681 | int | ||
7682 | main () | ||
7683 | { | ||
7684 | return f != getspnam; | ||
7685 | ; | ||
7686 | return 0; | ||
7687 | } | ||
7688 | _ACEOF | ||
7689 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7691 | (eval $ac_link) 2>conftest.er1 | ||
7692 | ac_status=$? | ||
7693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7694 | rm -f conftest.er1 | ||
7695 | cat conftest.err >&5 | ||
7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7697 | (exit $ac_status); } && | ||
7698 | { ac_try='test -z "$ac_c_werror_flag" | ||
7699 | || test ! -s conftest.err' | ||
7700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7701 | (eval $ac_try) 2>&5 | ||
7702 | ac_status=$? | ||
7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7704 | (exit $ac_status); }; } && | ||
7705 | { ac_try='test -s conftest$ac_exeext' | ||
7706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7707 | (eval $ac_try) 2>&5 | ||
7708 | ac_status=$? | ||
7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7710 | (exit $ac_status); }; }; then | ||
7711 | ac_cv_func_getspnam=yes | ||
7712 | else | ||
7713 | echo "$as_me: failed program was:" >&5 | ||
7714 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7715 | |||
7716 | ac_cv_func_getspnam=no | ||
7717 | fi | ||
7718 | rm -f conftest.err conftest.$ac_objext \ | ||
7719 | conftest$ac_exeext conftest.$ac_ext | ||
7720 | fi | ||
7721 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
7722 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | ||
7723 | if test $ac_cv_func_getspnam = yes; then | ||
7724 | : | ||
7725 | else | ||
7726 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
7727 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | ||
7728 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7730 | else | ||
7731 | ac_check_lib_save_LIBS=$LIBS | ||
7732 | LIBS="-lgen $LIBS" | ||
7733 | cat >conftest.$ac_ext <<_ACEOF | ||
7734 | /* confdefs.h. */ | ||
7735 | _ACEOF | ||
7736 | cat confdefs.h >>conftest.$ac_ext | ||
7737 | cat >>conftest.$ac_ext <<_ACEOF | ||
7738 | /* end confdefs.h. */ | ||
7739 | |||
7740 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7741 | #ifdef __cplusplus | ||
7742 | extern "C" | ||
7743 | #endif | ||
7744 | /* We use char because int might match the return type of a gcc2 | ||
7745 | builtin and then its argument prototype would still apply. */ | ||
7746 | char getspnam (); | ||
7747 | int | ||
7748 | main () | ||
7749 | { | ||
7750 | getspnam (); | ||
7751 | ; | ||
7752 | return 0; | ||
7753 | } | ||
7754 | _ACEOF | ||
7755 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7757 | (eval $ac_link) 2>conftest.er1 | ||
7758 | ac_status=$? | ||
7759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7760 | rm -f conftest.er1 | ||
7761 | cat conftest.err >&5 | ||
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7763 | (exit $ac_status); } && | ||
7764 | { ac_try='test -z "$ac_c_werror_flag" | ||
7765 | || test ! -s conftest.err' | ||
7766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7767 | (eval $ac_try) 2>&5 | ||
7768 | ac_status=$? | ||
7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7770 | (exit $ac_status); }; } && | ||
7771 | { ac_try='test -s conftest$ac_exeext' | ||
7772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7773 | (eval $ac_try) 2>&5 | ||
7774 | ac_status=$? | ||
7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7776 | (exit $ac_status); }; }; then | ||
7777 | ac_cv_lib_gen_getspnam=yes | ||
7778 | else | ||
7779 | echo "$as_me: failed program was:" >&5 | ||
7780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7781 | |||
7782 | ac_cv_lib_gen_getspnam=no | ||
7783 | fi | ||
7784 | rm -f conftest.err conftest.$ac_objext \ | ||
7785 | conftest$ac_exeext conftest.$ac_ext | ||
7786 | LIBS=$ac_check_lib_save_LIBS | ||
7787 | fi | ||
7788 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
7789 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | ||
7790 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
7791 | LIBS="$LIBS -lgen" | ||
7792 | fi | ||
7793 | |||
7794 | fi | ||
7795 | |||
7796 | echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
7797 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6 | ||
7798 | if test "${ac_cv_search_basename+set}" = set; then | ||
7799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7800 | else | ||
7801 | ac_func_search_save_LIBS=$LIBS | ||
7802 | ac_cv_search_basename=no | ||
7803 | cat >conftest.$ac_ext <<_ACEOF | ||
7804 | /* confdefs.h. */ | ||
7805 | _ACEOF | ||
7806 | cat confdefs.h >>conftest.$ac_ext | ||
7807 | cat >>conftest.$ac_ext <<_ACEOF | ||
7808 | /* end confdefs.h. */ | ||
7809 | |||
7810 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7811 | #ifdef __cplusplus | ||
7812 | extern "C" | ||
7813 | #endif | ||
7814 | /* We use char because int might match the return type of a gcc2 | ||
7815 | builtin and then its argument prototype would still apply. */ | ||
7816 | char basename (); | ||
7817 | int | ||
7818 | main () | ||
7819 | { | ||
7820 | basename (); | ||
7821 | ; | ||
7822 | return 0; | ||
7823 | } | ||
7824 | _ACEOF | ||
7825 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7827 | (eval $ac_link) 2>conftest.er1 | ||
7828 | ac_status=$? | ||
7829 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7830 | rm -f conftest.er1 | ||
7831 | cat conftest.err >&5 | ||
7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7833 | (exit $ac_status); } && | ||
7834 | { ac_try='test -z "$ac_c_werror_flag" | ||
7835 | || test ! -s conftest.err' | ||
7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7837 | (eval $ac_try) 2>&5 | ||
7838 | ac_status=$? | ||
7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7840 | (exit $ac_status); }; } && | ||
7841 | { ac_try='test -s conftest$ac_exeext' | ||
7842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7843 | (eval $ac_try) 2>&5 | ||
7844 | ac_status=$? | ||
7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7846 | (exit $ac_status); }; }; then | ||
7847 | ac_cv_search_basename="none required" | ||
7848 | else | ||
7849 | echo "$as_me: failed program was:" >&5 | ||
7850 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7851 | |||
7852 | fi | ||
7853 | rm -f conftest.err conftest.$ac_objext \ | ||
7854 | conftest$ac_exeext conftest.$ac_ext | ||
7855 | if test "$ac_cv_search_basename" = no; then | ||
7856 | for ac_lib in gen; do | ||
7857 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
7858 | cat >conftest.$ac_ext <<_ACEOF | ||
7859 | /* confdefs.h. */ | ||
7860 | _ACEOF | ||
7861 | cat confdefs.h >>conftest.$ac_ext | ||
7862 | cat >>conftest.$ac_ext <<_ACEOF | ||
7863 | /* end confdefs.h. */ | ||
7864 | |||
7865 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7866 | #ifdef __cplusplus | ||
7867 | extern "C" | ||
7868 | #endif | ||
7869 | /* We use char because int might match the return type of a gcc2 | ||
7870 | builtin and then its argument prototype would still apply. */ | ||
7871 | char basename (); | ||
7872 | int | ||
7873 | main () | ||
7874 | { | ||
7875 | basename (); | ||
7876 | ; | ||
7877 | return 0; | ||
7878 | } | ||
7879 | _ACEOF | ||
7880 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7882 | (eval $ac_link) 2>conftest.er1 | ||
7883 | ac_status=$? | ||
7884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7885 | rm -f conftest.er1 | ||
7886 | cat conftest.err >&5 | ||
7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7888 | (exit $ac_status); } && | ||
7889 | { ac_try='test -z "$ac_c_werror_flag" | ||
7890 | || test ! -s conftest.err' | ||
7891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7892 | (eval $ac_try) 2>&5 | ||
7893 | ac_status=$? | ||
7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7895 | (exit $ac_status); }; } && | ||
7896 | { ac_try='test -s conftest$ac_exeext' | ||
7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7898 | (eval $ac_try) 2>&5 | ||
7899 | ac_status=$? | ||
7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7901 | (exit $ac_status); }; }; then | ||
7902 | ac_cv_search_basename="-l$ac_lib" | ||
7903 | break | ||
7904 | else | ||
7905 | echo "$as_me: failed program was:" >&5 | ||
7906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7907 | |||
7908 | fi | ||
7909 | rm -f conftest.err conftest.$ac_objext \ | ||
7910 | conftest$ac_exeext conftest.$ac_ext | ||
7911 | done | ||
7912 | fi | ||
7913 | LIBS=$ac_func_search_save_LIBS | ||
7914 | fi | ||
7915 | echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
7916 | echo "${ECHO_T}$ac_cv_search_basename" >&6 | ||
7917 | if test "$ac_cv_search_basename" != no; then | ||
7918 | test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS" | ||
7919 | cat >>confdefs.h <<\_ACEOF | ||
7920 | #define HAVE_BASENAME 1 | ||
7921 | _ACEOF | ||
7922 | |||
7923 | fi | ||
7924 | |||
7925 | |||
7926 | |||
7927 | # Check whether --with-zlib or --without-zlib was given. | ||
7928 | if test "${with_zlib+set}" = set; then | ||
7929 | withval="$with_zlib" | ||
7930 | |||
7931 | if test "x$withval" = "xno" ; then | ||
7932 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
7933 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
7934 | { (exit 1); exit 1; }; } | ||
7935 | fi | ||
7936 | if test -d "$withval/lib"; then | ||
7937 | if test -n "${need_dash_r}"; then | ||
7938 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
7939 | else | ||
7940 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
7941 | fi | ||
7942 | else | ||
7943 | if test -n "${need_dash_r}"; then | ||
7944 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
7945 | else | ||
7946 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
7947 | fi | ||
7948 | fi | ||
7949 | if test -d "$withval/include"; then | ||
7950 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
7951 | else | ||
7952 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
7953 | fi | ||
7954 | |||
7955 | |||
7956 | fi; | ||
7957 | |||
7958 | |||
7959 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
7960 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | ||
7961 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7963 | else | ||
7964 | ac_check_lib_save_LIBS=$LIBS | ||
7965 | LIBS="-lz $LIBS" | ||
7966 | cat >conftest.$ac_ext <<_ACEOF | ||
7967 | /* confdefs.h. */ | ||
7968 | _ACEOF | ||
7969 | cat confdefs.h >>conftest.$ac_ext | ||
7970 | cat >>conftest.$ac_ext <<_ACEOF | ||
7971 | /* end confdefs.h. */ | ||
7972 | |||
7973 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
7974 | #ifdef __cplusplus | ||
7975 | extern "C" | ||
7976 | #endif | ||
7977 | /* We use char because int might match the return type of a gcc2 | ||
7978 | builtin and then its argument prototype would still apply. */ | ||
7979 | char deflate (); | ||
7980 | int | ||
7981 | main () | ||
7982 | { | ||
7983 | deflate (); | ||
7984 | ; | ||
7985 | return 0; | ||
7986 | } | ||
7987 | _ACEOF | ||
7988 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7990 | (eval $ac_link) 2>conftest.er1 | ||
7991 | ac_status=$? | ||
7992 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7993 | rm -f conftest.er1 | ||
7994 | cat conftest.err >&5 | ||
7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7996 | (exit $ac_status); } && | ||
7997 | { ac_try='test -z "$ac_c_werror_flag" | ||
7998 | || test ! -s conftest.err' | ||
7999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8000 | (eval $ac_try) 2>&5 | ||
8001 | ac_status=$? | ||
8002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8003 | (exit $ac_status); }; } && | ||
8004 | { ac_try='test -s conftest$ac_exeext' | ||
8005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8006 | (eval $ac_try) 2>&5 | ||
8007 | ac_status=$? | ||
8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8009 | (exit $ac_status); }; }; then | ||
8010 | ac_cv_lib_z_deflate=yes | ||
8011 | else | ||
8012 | echo "$as_me: failed program was:" >&5 | ||
8013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8014 | |||
8015 | ac_cv_lib_z_deflate=no | ||
8016 | fi | ||
8017 | rm -f conftest.err conftest.$ac_objext \ | ||
8018 | conftest$ac_exeext conftest.$ac_ext | ||
8019 | LIBS=$ac_check_lib_save_LIBS | ||
8020 | fi | ||
8021 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
8022 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | ||
8023 | if test $ac_cv_lib_z_deflate = yes; then | ||
8024 | cat >>confdefs.h <<_ACEOF | ||
8025 | #define HAVE_LIBZ 1 | ||
8026 | _ACEOF | ||
8027 | |||
8028 | LIBS="-lz $LIBS" | ||
8029 | |||
8030 | else | ||
8031 | |||
8032 | saved_CPPFLAGS="$CPPFLAGS" | ||
8033 | saved_LDFLAGS="$LDFLAGS" | ||
8034 | save_LIBS="$LIBS" | ||
8035 | if test -n "${need_dash_r}"; then | ||
8036 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8037 | else | ||
8038 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8039 | fi | ||
8040 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8041 | LIBS="$LIBS -lz" | ||
8042 | cat >conftest.$ac_ext <<_ACEOF | ||
8043 | /* confdefs.h. */ | ||
8044 | _ACEOF | ||
8045 | cat confdefs.h >>conftest.$ac_ext | ||
8046 | cat >>conftest.$ac_ext <<_ACEOF | ||
8047 | /* end confdefs.h. */ | ||
8048 | |||
8049 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8050 | #ifdef __cplusplus | ||
8051 | extern "C" | ||
8052 | #endif | ||
8053 | /* We use char because int might match the return type of a gcc2 | ||
8054 | builtin and then its argument prototype would still apply. */ | ||
8055 | char deflate (); | ||
8056 | int | ||
8057 | main () | ||
8058 | { | ||
8059 | deflate (); | ||
8060 | ; | ||
8061 | return 0; | ||
8062 | } | ||
8063 | _ACEOF | ||
8064 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8066 | (eval $ac_link) 2>conftest.er1 | ||
8067 | ac_status=$? | ||
8068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8069 | rm -f conftest.er1 | ||
8070 | cat conftest.err >&5 | ||
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8072 | (exit $ac_status); } && | ||
8073 | { ac_try='test -z "$ac_c_werror_flag" | ||
8074 | || test ! -s conftest.err' | ||
8075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8076 | (eval $ac_try) 2>&5 | ||
8077 | ac_status=$? | ||
8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8079 | (exit $ac_status); }; } && | ||
8080 | { ac_try='test -s conftest$ac_exeext' | ||
8081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8082 | (eval $ac_try) 2>&5 | ||
8083 | ac_status=$? | ||
8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8085 | (exit $ac_status); }; }; then | ||
8086 | cat >>confdefs.h <<\_ACEOF | ||
8087 | #define HAVE_LIBZ 1 | ||
8088 | _ACEOF | ||
8089 | |||
8090 | else | ||
8091 | echo "$as_me: failed program was:" >&5 | ||
8092 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8093 | |||
8094 | |||
8095 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
8096 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
8097 | { (exit 1); exit 1; }; } | ||
8098 | |||
8099 | |||
8100 | fi | ||
8101 | rm -f conftest.err conftest.$ac_objext \ | ||
8102 | conftest$ac_exeext conftest.$ac_ext | ||
8103 | |||
8104 | |||
8105 | fi | ||
8106 | |||
8107 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8108 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8109 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8110 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8112 | fi | ||
8113 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8114 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8115 | else | ||
8116 | # Is the header compilable? | ||
8117 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
8118 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | ||
8119 | cat >conftest.$ac_ext <<_ACEOF | ||
8120 | /* confdefs.h. */ | ||
8121 | _ACEOF | ||
8122 | cat confdefs.h >>conftest.$ac_ext | ||
8123 | cat >>conftest.$ac_ext <<_ACEOF | ||
8124 | /* end confdefs.h. */ | ||
8125 | $ac_includes_default | ||
8126 | #include <zlib.h> | ||
8127 | _ACEOF | ||
8128 | rm -f conftest.$ac_objext | ||
8129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8130 | (eval $ac_compile) 2>conftest.er1 | ||
8131 | ac_status=$? | ||
8132 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8133 | rm -f conftest.er1 | ||
8134 | cat conftest.err >&5 | ||
8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8136 | (exit $ac_status); } && | ||
8137 | { ac_try='test -z "$ac_c_werror_flag" | ||
8138 | || test ! -s conftest.err' | ||
8139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8140 | (eval $ac_try) 2>&5 | ||
8141 | ac_status=$? | ||
8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8143 | (exit $ac_status); }; } && | ||
8144 | { ac_try='test -s conftest.$ac_objext' | ||
8145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8146 | (eval $ac_try) 2>&5 | ||
8147 | ac_status=$? | ||
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8149 | (exit $ac_status); }; }; then | ||
8150 | ac_header_compiler=yes | ||
8151 | else | ||
8152 | echo "$as_me: failed program was:" >&5 | ||
8153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8154 | |||
8155 | ac_header_compiler=no | ||
8156 | fi | ||
8157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8158 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8159 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8160 | |||
8161 | # Is the header present? | ||
8162 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
8163 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | ||
8164 | cat >conftest.$ac_ext <<_ACEOF | ||
8165 | /* confdefs.h. */ | ||
8166 | _ACEOF | ||
8167 | cat confdefs.h >>conftest.$ac_ext | ||
8168 | cat >>conftest.$ac_ext <<_ACEOF | ||
8169 | /* end confdefs.h. */ | ||
8170 | #include <zlib.h> | ||
8171 | _ACEOF | ||
8172 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8173 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8174 | ac_status=$? | ||
8175 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8176 | rm -f conftest.er1 | ||
8177 | cat conftest.err >&5 | ||
8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8179 | (exit $ac_status); } >/dev/null; then | ||
8180 | if test -s conftest.err; then | ||
8181 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8182 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8183 | else | ||
8184 | ac_cpp_err= | ||
8185 | fi | ||
8186 | else | ||
8187 | ac_cpp_err=yes | ||
8188 | fi | ||
8189 | if test -z "$ac_cpp_err"; then | ||
8190 | ac_header_preproc=yes | ||
8191 | else | ||
8192 | echo "$as_me: failed program was:" >&5 | ||
8193 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8194 | |||
8195 | ac_header_preproc=no | ||
8196 | fi | ||
8197 | rm -f conftest.err conftest.$ac_ext | ||
8198 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8199 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8200 | |||
8201 | # So? What about this header? | ||
8202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8203 | yes:no: ) | ||
8204 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8205 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8206 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
8207 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
8208 | ac_header_preproc=yes | ||
8209 | ;; | ||
8210 | no:yes:* ) | ||
8211 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
8212 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
8213 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
8214 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
8215 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
8216 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
8217 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8218 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8219 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
8220 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
8221 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
8222 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
8223 | ( | ||
8224 | cat <<\_ASBOX | ||
8225 | ## ------------------------------------------ ## | ||
8226 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
8227 | ## ------------------------------------------ ## | ||
8228 | _ASBOX | ||
8229 | ) | | ||
8230 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8231 | ;; | ||
8232 | esac | ||
8233 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
8234 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | ||
8235 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
8236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8237 | else | ||
8238 | ac_cv_header_zlib_h=$ac_header_preproc | ||
8239 | fi | ||
8240 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
8241 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | ||
8242 | |||
8243 | fi | ||
8244 | if test $ac_cv_header_zlib_h = yes; then | ||
8245 | : | ||
8246 | else | ||
8247 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
8248 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
8249 | { (exit 1); exit 1; }; } | ||
8250 | fi | ||
8251 | |||
8252 | |||
8253 | |||
8254 | |||
8255 | # Check whether --with-zlib-version-check or --without-zlib-version-check was given. | ||
8256 | if test "${with_zlib_version_check+set}" = set; then | ||
8257 | withval="$with_zlib_version_check" | ||
8258 | if test "x$withval" = "xno" ; then | ||
8259 | zlib_check_nonfatal=1 | ||
8260 | fi | ||
8261 | |||
8262 | |||
8263 | fi; | ||
8264 | |||
8265 | echo "$as_me:$LINENO: checking for zlib 1.1.4 or greater" >&5 | ||
8266 | echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6 | ||
8267 | if test "$cross_compiling" = yes; then | ||
8268 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
8269 | See \`config.log' for more details." >&5 | ||
8270 | echo "$as_me: error: cannot run test program while cross compiling | ||
8271 | See \`config.log' for more details." >&2;} | ||
8272 | { (exit 1); exit 1; }; } | ||
8273 | else | ||
8274 | cat >conftest.$ac_ext <<_ACEOF | ||
8275 | /* confdefs.h. */ | ||
8276 | _ACEOF | ||
8277 | cat confdefs.h >>conftest.$ac_ext | ||
8278 | cat >>conftest.$ac_ext <<_ACEOF | ||
8279 | /* end confdefs.h. */ | ||
8280 | |||
8281 | #include <zlib.h> | ||
8282 | int main() | ||
8283 | { | ||
8284 | int a, b, c, v; | ||
8285 | if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3) | ||
8286 | exit(1); | ||
8287 | v = a*1000000 + b*1000 + c; | ||
8288 | if (v >= 1001004) | ||
8289 | exit(0); | ||
8290 | exit(2); | ||
8291 | } | ||
8292 | |||
8293 | _ACEOF | ||
8294 | rm -f conftest$ac_exeext | ||
8295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8296 | (eval $ac_link) 2>&5 | ||
8297 | ac_status=$? | ||
8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8301 | (eval $ac_try) 2>&5 | ||
8302 | ac_status=$? | ||
8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8304 | (exit $ac_status); }; }; then | ||
8305 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8306 | echo "${ECHO_T}yes" >&6 | ||
8307 | else | ||
8308 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8309 | echo "$as_me: failed program was:" >&5 | ||
8310 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8311 | |||
8312 | ( exit $ac_status ) | ||
8313 | echo "$as_me:$LINENO: result: no" >&5 | ||
8314 | echo "${ECHO_T}no" >&6 | ||
8315 | if test -z "$zlib_check_nonfatal" ; then | ||
8316 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
8317 | Your reported zlib version has known security problems. It's possible your | ||
8318 | vendor has fixed these problems without changing the version number. If you | ||
8319 | are sure this is the case, you can disable the check by running | ||
8320 | \"./configure --without-zlib-version-check\". | ||
8321 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5 | ||
8322 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
8323 | Your reported zlib version has known security problems. It's possible your | ||
8324 | vendor has fixed these problems without changing the version number. If you | ||
8325 | are sure this is the case, you can disable the check by running | ||
8326 | \"./configure --without-zlib-version-check\". | ||
8327 | If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;} | ||
8328 | { (exit 1); exit 1; }; } | ||
8329 | else | ||
8330 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
8331 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8332 | fi | ||
8333 | |||
8334 | |||
8335 | fi | ||
8336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8337 | fi | ||
8338 | |||
8339 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
8340 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | ||
8341 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8343 | else | ||
8344 | cat >conftest.$ac_ext <<_ACEOF | ||
8345 | /* confdefs.h. */ | ||
8346 | _ACEOF | ||
8347 | cat confdefs.h >>conftest.$ac_ext | ||
8348 | cat >>conftest.$ac_ext <<_ACEOF | ||
8349 | /* end confdefs.h. */ | ||
8350 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
8351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8352 | #define strcasecmp innocuous_strcasecmp | ||
8353 | |||
8354 | /* System header to define __stub macros and hopefully few prototypes, | ||
8355 | which can conflict with char strcasecmp (); below. | ||
8356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8357 | <limits.h> exists even on freestanding compilers. */ | ||
8358 | |||
8359 | #ifdef __STDC__ | ||
8360 | # include <limits.h> | ||
8361 | #else | ||
8362 | # include <assert.h> | ||
8363 | #endif | ||
8364 | |||
8365 | #undef strcasecmp | ||
8366 | |||
8367 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8368 | #ifdef __cplusplus | ||
8369 | extern "C" | ||
8370 | { | ||
8371 | #endif | ||
8372 | /* We use char because int might match the return type of a gcc2 | ||
8373 | builtin and then its argument prototype would still apply. */ | ||
8374 | char strcasecmp (); | ||
8375 | /* The GNU C library defines this for functions which it implements | ||
8376 | to always fail with ENOSYS. Some functions are actually named | ||
8377 | something starting with __ and the normal name is an alias. */ | ||
8378 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
8379 | choke me | ||
8380 | #else | ||
8381 | char (*f) () = strcasecmp; | ||
8382 | #endif | ||
8383 | #ifdef __cplusplus | ||
8384 | } | ||
8385 | #endif | ||
8386 | |||
8387 | int | ||
8388 | main () | ||
8389 | { | ||
8390 | return f != strcasecmp; | ||
8391 | ; | ||
8392 | return 0; | ||
8393 | } | ||
8394 | _ACEOF | ||
8395 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8397 | (eval $ac_link) 2>conftest.er1 | ||
8398 | ac_status=$? | ||
8399 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8400 | rm -f conftest.er1 | ||
8401 | cat conftest.err >&5 | ||
8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8403 | (exit $ac_status); } && | ||
8404 | { ac_try='test -z "$ac_c_werror_flag" | ||
8405 | || test ! -s conftest.err' | ||
8406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8407 | (eval $ac_try) 2>&5 | ||
8408 | ac_status=$? | ||
8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8410 | (exit $ac_status); }; } && | ||
8411 | { ac_try='test -s conftest$ac_exeext' | ||
8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8413 | (eval $ac_try) 2>&5 | ||
8414 | ac_status=$? | ||
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8416 | (exit $ac_status); }; }; then | ||
8417 | ac_cv_func_strcasecmp=yes | ||
8418 | else | ||
8419 | echo "$as_me: failed program was:" >&5 | ||
8420 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8421 | |||
8422 | ac_cv_func_strcasecmp=no | ||
8423 | fi | ||
8424 | rm -f conftest.err conftest.$ac_objext \ | ||
8425 | conftest$ac_exeext conftest.$ac_ext | ||
8426 | fi | ||
8427 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
8428 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | ||
8429 | if test $ac_cv_func_strcasecmp = yes; then | ||
8430 | : | ||
8431 | else | ||
8432 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
8433 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | ||
8434 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
8435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8436 | else | ||
8437 | ac_check_lib_save_LIBS=$LIBS | ||
8438 | LIBS="-lresolv $LIBS" | ||
8439 | cat >conftest.$ac_ext <<_ACEOF | ||
8440 | /* confdefs.h. */ | ||
8441 | _ACEOF | ||
8442 | cat confdefs.h >>conftest.$ac_ext | ||
8443 | cat >>conftest.$ac_ext <<_ACEOF | ||
8444 | /* end confdefs.h. */ | ||
8445 | |||
8446 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8447 | #ifdef __cplusplus | ||
8448 | extern "C" | ||
8449 | #endif | ||
8450 | /* We use char because int might match the return type of a gcc2 | ||
8451 | builtin and then its argument prototype would still apply. */ | ||
8452 | char strcasecmp (); | ||
8453 | int | ||
8454 | main () | ||
8455 | { | ||
8456 | strcasecmp (); | ||
8457 | ; | ||
8458 | return 0; | ||
8459 | } | ||
8460 | _ACEOF | ||
8461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8463 | (eval $ac_link) 2>conftest.er1 | ||
8464 | ac_status=$? | ||
8465 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8466 | rm -f conftest.er1 | ||
8467 | cat conftest.err >&5 | ||
8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8469 | (exit $ac_status); } && | ||
8470 | { ac_try='test -z "$ac_c_werror_flag" | ||
8471 | || test ! -s conftest.err' | ||
8472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8473 | (eval $ac_try) 2>&5 | ||
8474 | ac_status=$? | ||
8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8476 | (exit $ac_status); }; } && | ||
8477 | { ac_try='test -s conftest$ac_exeext' | ||
8478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8479 | (eval $ac_try) 2>&5 | ||
8480 | ac_status=$? | ||
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8482 | (exit $ac_status); }; }; then | ||
8483 | ac_cv_lib_resolv_strcasecmp=yes | ||
8484 | else | ||
8485 | echo "$as_me: failed program was:" >&5 | ||
8486 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8487 | |||
8488 | ac_cv_lib_resolv_strcasecmp=no | ||
8489 | fi | ||
8490 | rm -f conftest.err conftest.$ac_objext \ | ||
8491 | conftest$ac_exeext conftest.$ac_ext | ||
8492 | LIBS=$ac_check_lib_save_LIBS | ||
8493 | fi | ||
8494 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8495 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | ||
8496 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
8497 | LIBS="$LIBS -lresolv" | ||
8498 | fi | ||
8499 | |||
8500 | |||
8501 | fi | ||
8502 | |||
8503 | echo "$as_me:$LINENO: checking for utimes" >&5 | ||
8504 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | ||
8505 | if test "${ac_cv_func_utimes+set}" = set; then | ||
8506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8507 | else | ||
8508 | cat >conftest.$ac_ext <<_ACEOF | ||
8509 | /* confdefs.h. */ | ||
8510 | _ACEOF | ||
8511 | cat confdefs.h >>conftest.$ac_ext | ||
8512 | cat >>conftest.$ac_ext <<_ACEOF | ||
8513 | /* end confdefs.h. */ | ||
8514 | /* Define utimes to an innocuous variant, in case <limits.h> declares utimes. | ||
8515 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8516 | #define utimes innocuous_utimes | ||
8517 | |||
8518 | /* System header to define __stub macros and hopefully few prototypes, | ||
8519 | which can conflict with char utimes (); below. | ||
8520 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8521 | <limits.h> exists even on freestanding compilers. */ | ||
8522 | |||
8523 | #ifdef __STDC__ | ||
8524 | # include <limits.h> | ||
8525 | #else | ||
8526 | # include <assert.h> | ||
8527 | #endif | ||
8528 | |||
8529 | #undef utimes | ||
8530 | |||
8531 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8532 | #ifdef __cplusplus | ||
8533 | extern "C" | ||
8534 | { | ||
8535 | #endif | ||
8536 | /* We use char because int might match the return type of a gcc2 | ||
8537 | builtin and then its argument prototype would still apply. */ | ||
8538 | char utimes (); | ||
8539 | /* The GNU C library defines this for functions which it implements | ||
8540 | to always fail with ENOSYS. Some functions are actually named | ||
8541 | something starting with __ and the normal name is an alias. */ | ||
8542 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
8543 | choke me | ||
8544 | #else | ||
8545 | char (*f) () = utimes; | ||
8546 | #endif | ||
8547 | #ifdef __cplusplus | ||
8548 | } | ||
8549 | #endif | ||
8550 | |||
8551 | int | ||
8552 | main () | ||
8553 | { | ||
8554 | return f != utimes; | ||
8555 | ; | ||
8556 | return 0; | ||
8557 | } | ||
8558 | _ACEOF | ||
8559 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8561 | (eval $ac_link) 2>conftest.er1 | ||
8562 | ac_status=$? | ||
8563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8564 | rm -f conftest.er1 | ||
8565 | cat conftest.err >&5 | ||
8566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8567 | (exit $ac_status); } && | ||
8568 | { ac_try='test -z "$ac_c_werror_flag" | ||
8569 | || test ! -s conftest.err' | ||
8570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8571 | (eval $ac_try) 2>&5 | ||
8572 | ac_status=$? | ||
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8574 | (exit $ac_status); }; } && | ||
8575 | { ac_try='test -s conftest$ac_exeext' | ||
8576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8577 | (eval $ac_try) 2>&5 | ||
8578 | ac_status=$? | ||
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8580 | (exit $ac_status); }; }; then | ||
8581 | ac_cv_func_utimes=yes | ||
8582 | else | ||
8583 | echo "$as_me: failed program was:" >&5 | ||
8584 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8585 | |||
8586 | ac_cv_func_utimes=no | ||
8587 | fi | ||
8588 | rm -f conftest.err conftest.$ac_objext \ | ||
8589 | conftest$ac_exeext conftest.$ac_ext | ||
8590 | fi | ||
8591 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | ||
8592 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | ||
8593 | if test $ac_cv_func_utimes = yes; then | ||
8594 | : | ||
8595 | else | ||
8596 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
8597 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | ||
8598 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
8599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8600 | else | ||
8601 | ac_check_lib_save_LIBS=$LIBS | ||
8602 | LIBS="-lc89 $LIBS" | ||
8603 | cat >conftest.$ac_ext <<_ACEOF | ||
8604 | /* confdefs.h. */ | ||
8605 | _ACEOF | ||
8606 | cat confdefs.h >>conftest.$ac_ext | ||
8607 | cat >>conftest.$ac_ext <<_ACEOF | ||
8608 | /* end confdefs.h. */ | ||
8609 | |||
8610 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8611 | #ifdef __cplusplus | ||
8612 | extern "C" | ||
8613 | #endif | ||
8614 | /* We use char because int might match the return type of a gcc2 | ||
8615 | builtin and then its argument prototype would still apply. */ | ||
8616 | char utimes (); | ||
8617 | int | ||
8618 | main () | ||
8619 | { | ||
8620 | utimes (); | ||
8621 | ; | ||
8622 | return 0; | ||
8623 | } | ||
8624 | _ACEOF | ||
8625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8627 | (eval $ac_link) 2>conftest.er1 | ||
8628 | ac_status=$? | ||
8629 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8630 | rm -f conftest.er1 | ||
8631 | cat conftest.err >&5 | ||
8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8633 | (exit $ac_status); } && | ||
8634 | { ac_try='test -z "$ac_c_werror_flag" | ||
8635 | || test ! -s conftest.err' | ||
8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8637 | (eval $ac_try) 2>&5 | ||
8638 | ac_status=$? | ||
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8640 | (exit $ac_status); }; } && | ||
8641 | { ac_try='test -s conftest$ac_exeext' | ||
8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8643 | (eval $ac_try) 2>&5 | ||
8644 | ac_status=$? | ||
8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8646 | (exit $ac_status); }; }; then | ||
8647 | ac_cv_lib_c89_utimes=yes | ||
8648 | else | ||
8649 | echo "$as_me: failed program was:" >&5 | ||
8650 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8651 | |||
8652 | ac_cv_lib_c89_utimes=no | ||
8653 | fi | ||
8654 | rm -f conftest.err conftest.$ac_objext \ | ||
8655 | conftest$ac_exeext conftest.$ac_ext | ||
8656 | LIBS=$ac_check_lib_save_LIBS | ||
8657 | fi | ||
8658 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
8659 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | ||
8660 | if test $ac_cv_lib_c89_utimes = yes; then | ||
8661 | cat >>confdefs.h <<\_ACEOF | ||
8662 | #define HAVE_UTIMES 1 | ||
8663 | _ACEOF | ||
8664 | |||
8665 | LIBS="$LIBS -lc89" | ||
8666 | fi | ||
8667 | |||
8668 | |||
8669 | fi | ||
8670 | |||
8671 | |||
8672 | |||
8673 | for ac_header in libutil.h | ||
8674 | do | ||
8675 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8681 | fi | ||
8682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8684 | else | ||
8685 | # Is the header compilable? | ||
8686 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8687 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
8688 | cat >conftest.$ac_ext <<_ACEOF | ||
8689 | /* confdefs.h. */ | ||
8690 | _ACEOF | ||
8691 | cat confdefs.h >>conftest.$ac_ext | ||
8692 | cat >>conftest.$ac_ext <<_ACEOF | ||
8693 | /* end confdefs.h. */ | ||
8694 | $ac_includes_default | ||
8695 | #include <$ac_header> | ||
8696 | _ACEOF | ||
8697 | rm -f conftest.$ac_objext | ||
8698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8699 | (eval $ac_compile) 2>conftest.er1 | ||
8700 | ac_status=$? | ||
8701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8702 | rm -f conftest.er1 | ||
8703 | cat conftest.err >&5 | ||
8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8705 | (exit $ac_status); } && | ||
8706 | { ac_try='test -z "$ac_c_werror_flag" | ||
8707 | || test ! -s conftest.err' | ||
8708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8709 | (eval $ac_try) 2>&5 | ||
8710 | ac_status=$? | ||
8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8712 | (exit $ac_status); }; } && | ||
8713 | { ac_try='test -s conftest.$ac_objext' | ||
8714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8715 | (eval $ac_try) 2>&5 | ||
8716 | ac_status=$? | ||
8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8718 | (exit $ac_status); }; }; then | ||
8719 | ac_header_compiler=yes | ||
8720 | else | ||
8721 | echo "$as_me: failed program was:" >&5 | ||
8722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8723 | |||
8724 | ac_header_compiler=no | ||
8725 | fi | ||
8726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8727 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8728 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
8729 | |||
8730 | # Is the header present? | ||
8731 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8732 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
8733 | cat >conftest.$ac_ext <<_ACEOF | ||
8734 | /* confdefs.h. */ | ||
8735 | _ACEOF | ||
8736 | cat confdefs.h >>conftest.$ac_ext | ||
8737 | cat >>conftest.$ac_ext <<_ACEOF | ||
8738 | /* end confdefs.h. */ | ||
8739 | #include <$ac_header> | ||
8740 | _ACEOF | ||
8741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
8742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
8743 | ac_status=$? | ||
8744 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8745 | rm -f conftest.er1 | ||
8746 | cat conftest.err >&5 | ||
8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8748 | (exit $ac_status); } >/dev/null; then | ||
8749 | if test -s conftest.err; then | ||
8750 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
8751 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
8752 | else | ||
8753 | ac_cpp_err= | ||
8754 | fi | ||
8755 | else | ||
8756 | ac_cpp_err=yes | ||
8757 | fi | ||
8758 | if test -z "$ac_cpp_err"; then | ||
8759 | ac_header_preproc=yes | ||
8760 | else | ||
8761 | echo "$as_me: failed program was:" >&5 | ||
8762 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8763 | |||
8764 | ac_header_preproc=no | ||
8765 | fi | ||
8766 | rm -f conftest.err conftest.$ac_ext | ||
8767 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8768 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
8769 | |||
8770 | # So? What about this header? | ||
8771 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8772 | yes:no: ) | ||
8773 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8774 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8776 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8777 | ac_header_preproc=yes | ||
8778 | ;; | ||
8779 | no:yes:* ) | ||
8780 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8781 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8782 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8783 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8784 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8785 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8786 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8787 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8788 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8789 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8790 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8791 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8792 | ( | ||
8793 | cat <<\_ASBOX | ||
8794 | ## ------------------------------------------ ## | ||
8795 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
8796 | ## ------------------------------------------ ## | ||
8797 | _ASBOX | ||
8798 | ) | | ||
8799 | sed "s/^/$as_me: WARNING: /" >&2 | ||
8800 | ;; | ||
8801 | esac | ||
8802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
8804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
8805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8806 | else | ||
8807 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8808 | fi | ||
8809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
8810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
8811 | |||
8812 | fi | ||
8813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8814 | cat >>confdefs.h <<_ACEOF | ||
8815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8816 | _ACEOF | ||
8817 | |||
8818 | fi | ||
8819 | |||
8820 | done | ||
8821 | |||
8822 | echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
8823 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | ||
8824 | if test "${ac_cv_search_login+set}" = set; then | ||
8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8826 | else | ||
8827 | ac_func_search_save_LIBS=$LIBS | ||
8828 | ac_cv_search_login=no | ||
8829 | cat >conftest.$ac_ext <<_ACEOF | ||
8830 | /* confdefs.h. */ | ||
8831 | _ACEOF | ||
8832 | cat confdefs.h >>conftest.$ac_ext | ||
8833 | cat >>conftest.$ac_ext <<_ACEOF | ||
8834 | /* end confdefs.h. */ | ||
8835 | |||
8836 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8837 | #ifdef __cplusplus | ||
8838 | extern "C" | ||
8839 | #endif | ||
8840 | /* We use char because int might match the return type of a gcc2 | ||
8841 | builtin and then its argument prototype would still apply. */ | ||
8842 | char login (); | ||
8843 | int | ||
8844 | main () | ||
8845 | { | ||
8846 | login (); | ||
8847 | ; | ||
8848 | return 0; | ||
8849 | } | ||
8850 | _ACEOF | ||
8851 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8853 | (eval $ac_link) 2>conftest.er1 | ||
8854 | ac_status=$? | ||
8855 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8856 | rm -f conftest.er1 | ||
8857 | cat conftest.err >&5 | ||
8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8859 | (exit $ac_status); } && | ||
8860 | { ac_try='test -z "$ac_c_werror_flag" | ||
8861 | || test ! -s conftest.err' | ||
8862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8863 | (eval $ac_try) 2>&5 | ||
8864 | ac_status=$? | ||
8865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8866 | (exit $ac_status); }; } && | ||
8867 | { ac_try='test -s conftest$ac_exeext' | ||
8868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8869 | (eval $ac_try) 2>&5 | ||
8870 | ac_status=$? | ||
8871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8872 | (exit $ac_status); }; }; then | ||
8873 | ac_cv_search_login="none required" | ||
8874 | else | ||
8875 | echo "$as_me: failed program was:" >&5 | ||
8876 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8877 | |||
8878 | fi | ||
8879 | rm -f conftest.err conftest.$ac_objext \ | ||
8880 | conftest$ac_exeext conftest.$ac_ext | ||
8881 | if test "$ac_cv_search_login" = no; then | ||
8882 | for ac_lib in util bsd; do | ||
8883 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8884 | cat >conftest.$ac_ext <<_ACEOF | ||
8885 | /* confdefs.h. */ | ||
8886 | _ACEOF | ||
8887 | cat confdefs.h >>conftest.$ac_ext | ||
8888 | cat >>conftest.$ac_ext <<_ACEOF | ||
8889 | /* end confdefs.h. */ | ||
8890 | |||
8891 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8892 | #ifdef __cplusplus | ||
8893 | extern "C" | ||
8894 | #endif | ||
8895 | /* We use char because int might match the return type of a gcc2 | ||
8896 | builtin and then its argument prototype would still apply. */ | ||
8897 | char login (); | ||
8898 | int | ||
8899 | main () | ||
8900 | { | ||
8901 | login (); | ||
8902 | ; | ||
8903 | return 0; | ||
8904 | } | ||
8905 | _ACEOF | ||
8906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8908 | (eval $ac_link) 2>conftest.er1 | ||
8909 | ac_status=$? | ||
8910 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8911 | rm -f conftest.er1 | ||
8912 | cat conftest.err >&5 | ||
8913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8914 | (exit $ac_status); } && | ||
8915 | { ac_try='test -z "$ac_c_werror_flag" | ||
8916 | || test ! -s conftest.err' | ||
8917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8918 | (eval $ac_try) 2>&5 | ||
8919 | ac_status=$? | ||
8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8921 | (exit $ac_status); }; } && | ||
8922 | { ac_try='test -s conftest$ac_exeext' | ||
8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8924 | (eval $ac_try) 2>&5 | ||
8925 | ac_status=$? | ||
8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8927 | (exit $ac_status); }; }; then | ||
8928 | ac_cv_search_login="-l$ac_lib" | ||
8929 | break | ||
8930 | else | ||
8931 | echo "$as_me: failed program was:" >&5 | ||
8932 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8933 | |||
8934 | fi | ||
8935 | rm -f conftest.err conftest.$ac_objext \ | ||
8936 | conftest$ac_exeext conftest.$ac_ext | ||
8937 | done | ||
8938 | fi | ||
8939 | LIBS=$ac_func_search_save_LIBS | ||
8940 | fi | ||
8941 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
8942 | echo "${ECHO_T}$ac_cv_search_login" >&6 | ||
8943 | if test "$ac_cv_search_login" != no; then | ||
8944 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | ||
8945 | cat >>confdefs.h <<\_ACEOF | ||
8946 | #define HAVE_LOGIN 1 | ||
8947 | _ACEOF | ||
8948 | |||
8949 | fi | ||
8950 | |||
8951 | |||
8952 | |||
8953 | |||
8954 | for ac_func in logout updwtmp logwtmp | ||
8955 | do | ||
8956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
8959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8961 | else | ||
8962 | cat >conftest.$ac_ext <<_ACEOF | ||
8963 | /* confdefs.h. */ | ||
8964 | _ACEOF | ||
8965 | cat confdefs.h >>conftest.$ac_ext | ||
8966 | cat >>conftest.$ac_ext <<_ACEOF | ||
8967 | /* end confdefs.h. */ | ||
8968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8970 | #define $ac_func innocuous_$ac_func | ||
8971 | |||
8972 | /* System header to define __stub macros and hopefully few prototypes, | ||
8973 | which can conflict with char $ac_func (); below. | ||
8974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8975 | <limits.h> exists even on freestanding compilers. */ | ||
8976 | |||
8977 | #ifdef __STDC__ | ||
8978 | # include <limits.h> | ||
8979 | #else | ||
8980 | # include <assert.h> | ||
8981 | #endif | ||
8982 | |||
8983 | #undef $ac_func | ||
8984 | |||
8985 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8986 | #ifdef __cplusplus | ||
8987 | extern "C" | ||
8988 | { | ||
8989 | #endif | ||
8990 | /* We use char because int might match the return type of a gcc2 | ||
8991 | builtin and then its argument prototype would still apply. */ | ||
8992 | char $ac_func (); | ||
8993 | /* The GNU C library defines this for functions which it implements | ||
8994 | to always fail with ENOSYS. Some functions are actually named | ||
8995 | something starting with __ and the normal name is an alias. */ | ||
8996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
8997 | choke me | ||
8998 | #else | ||
8999 | char (*f) () = $ac_func; | ||
9000 | #endif | ||
9001 | #ifdef __cplusplus | ||
9002 | } | ||
9003 | #endif | ||
9004 | |||
9005 | int | ||
9006 | main () | ||
9007 | { | ||
9008 | return f != $ac_func; | ||
9009 | ; | ||
9010 | return 0; | ||
9011 | } | ||
9012 | _ACEOF | ||
9013 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9015 | (eval $ac_link) 2>conftest.er1 | ||
9016 | ac_status=$? | ||
9017 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9018 | rm -f conftest.er1 | ||
9019 | cat conftest.err >&5 | ||
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9021 | (exit $ac_status); } && | ||
9022 | { ac_try='test -z "$ac_c_werror_flag" | ||
9023 | || test ! -s conftest.err' | ||
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9025 | (eval $ac_try) 2>&5 | ||
9026 | ac_status=$? | ||
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9028 | (exit $ac_status); }; } && | ||
9029 | { ac_try='test -s conftest$ac_exeext' | ||
9030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9031 | (eval $ac_try) 2>&5 | ||
9032 | ac_status=$? | ||
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9034 | (exit $ac_status); }; }; then | ||
9035 | eval "$as_ac_var=yes" | ||
9036 | else | ||
9037 | echo "$as_me: failed program was:" >&5 | ||
9038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9039 | |||
9040 | eval "$as_ac_var=no" | ||
9041 | fi | ||
9042 | rm -f conftest.err conftest.$ac_objext \ | ||
9043 | conftest$ac_exeext conftest.$ac_ext | ||
9044 | fi | ||
9045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9048 | cat >>confdefs.h <<_ACEOF | ||
9049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9050 | _ACEOF | ||
9051 | |||
9052 | fi | ||
9053 | done | ||
9054 | |||
9055 | |||
9056 | |||
9057 | for ac_func in strftime | ||
9058 | do | ||
9059 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9060 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9061 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9062 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9064 | else | ||
9065 | cat >conftest.$ac_ext <<_ACEOF | ||
9066 | /* confdefs.h. */ | ||
9067 | _ACEOF | ||
9068 | cat confdefs.h >>conftest.$ac_ext | ||
9069 | cat >>conftest.$ac_ext <<_ACEOF | ||
9070 | /* end confdefs.h. */ | ||
9071 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9073 | #define $ac_func innocuous_$ac_func | ||
9074 | |||
9075 | /* System header to define __stub macros and hopefully few prototypes, | ||
9076 | which can conflict with char $ac_func (); below. | ||
9077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9078 | <limits.h> exists even on freestanding compilers. */ | ||
9079 | |||
9080 | #ifdef __STDC__ | ||
9081 | # include <limits.h> | ||
9082 | #else | ||
9083 | # include <assert.h> | ||
9084 | #endif | ||
9085 | |||
9086 | #undef $ac_func | ||
9087 | |||
9088 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9089 | #ifdef __cplusplus | ||
9090 | extern "C" | ||
9091 | { | ||
9092 | #endif | ||
9093 | /* We use char because int might match the return type of a gcc2 | ||
9094 | builtin and then its argument prototype would still apply. */ | ||
9095 | char $ac_func (); | ||
9096 | /* The GNU C library defines this for functions which it implements | ||
9097 | to always fail with ENOSYS. Some functions are actually named | ||
9098 | something starting with __ and the normal name is an alias. */ | ||
9099 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9100 | choke me | ||
9101 | #else | ||
9102 | char (*f) () = $ac_func; | ||
9103 | #endif | ||
9104 | #ifdef __cplusplus | ||
9105 | } | ||
9106 | #endif | ||
9107 | |||
9108 | int | ||
9109 | main () | ||
9110 | { | ||
9111 | return f != $ac_func; | ||
9112 | ; | ||
9113 | return 0; | ||
9114 | } | ||
9115 | _ACEOF | ||
9116 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9118 | (eval $ac_link) 2>conftest.er1 | ||
9119 | ac_status=$? | ||
9120 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9121 | rm -f conftest.er1 | ||
9122 | cat conftest.err >&5 | ||
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9124 | (exit $ac_status); } && | ||
9125 | { ac_try='test -z "$ac_c_werror_flag" | ||
9126 | || test ! -s conftest.err' | ||
9127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9128 | (eval $ac_try) 2>&5 | ||
9129 | ac_status=$? | ||
9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9131 | (exit $ac_status); }; } && | ||
9132 | { ac_try='test -s conftest$ac_exeext' | ||
9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9134 | (eval $ac_try) 2>&5 | ||
9135 | ac_status=$? | ||
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9137 | (exit $ac_status); }; }; then | ||
9138 | eval "$as_ac_var=yes" | ||
9139 | else | ||
9140 | echo "$as_me: failed program was:" >&5 | ||
9141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9142 | |||
9143 | eval "$as_ac_var=no" | ||
9144 | fi | ||
9145 | rm -f conftest.err conftest.$ac_objext \ | ||
9146 | conftest$ac_exeext conftest.$ac_ext | ||
9147 | fi | ||
9148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9149 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9150 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9151 | cat >>confdefs.h <<_ACEOF | ||
9152 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9153 | _ACEOF | ||
9154 | |||
9155 | else | ||
9156 | # strftime is in -lintl on SCO UNIX. | ||
9157 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
9158 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | ||
9159 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
9160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9161 | else | ||
9162 | ac_check_lib_save_LIBS=$LIBS | ||
9163 | LIBS="-lintl $LIBS" | ||
9164 | cat >conftest.$ac_ext <<_ACEOF | ||
9165 | /* confdefs.h. */ | ||
9166 | _ACEOF | ||
9167 | cat confdefs.h >>conftest.$ac_ext | ||
9168 | cat >>conftest.$ac_ext <<_ACEOF | ||
9169 | /* end confdefs.h. */ | ||
9170 | |||
9171 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9172 | #ifdef __cplusplus | ||
9173 | extern "C" | ||
9174 | #endif | ||
9175 | /* We use char because int might match the return type of a gcc2 | ||
9176 | builtin and then its argument prototype would still apply. */ | ||
9177 | char strftime (); | ||
9178 | int | ||
9179 | main () | ||
9180 | { | ||
9181 | strftime (); | ||
9182 | ; | ||
9183 | return 0; | ||
9184 | } | ||
9185 | _ACEOF | ||
9186 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9188 | (eval $ac_link) 2>conftest.er1 | ||
9189 | ac_status=$? | ||
9190 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9191 | rm -f conftest.er1 | ||
9192 | cat conftest.err >&5 | ||
9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9194 | (exit $ac_status); } && | ||
9195 | { ac_try='test -z "$ac_c_werror_flag" | ||
9196 | || test ! -s conftest.err' | ||
9197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9198 | (eval $ac_try) 2>&5 | ||
9199 | ac_status=$? | ||
9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9201 | (exit $ac_status); }; } && | ||
9202 | { ac_try='test -s conftest$ac_exeext' | ||
9203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9204 | (eval $ac_try) 2>&5 | ||
9205 | ac_status=$? | ||
9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9207 | (exit $ac_status); }; }; then | ||
9208 | ac_cv_lib_intl_strftime=yes | ||
9209 | else | ||
9210 | echo "$as_me: failed program was:" >&5 | ||
9211 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9212 | |||
9213 | ac_cv_lib_intl_strftime=no | ||
9214 | fi | ||
9215 | rm -f conftest.err conftest.$ac_objext \ | ||
9216 | conftest$ac_exeext conftest.$ac_ext | ||
9217 | LIBS=$ac_check_lib_save_LIBS | ||
9218 | fi | ||
9219 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
9220 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | ||
9221 | if test $ac_cv_lib_intl_strftime = yes; then | ||
9222 | cat >>confdefs.h <<\_ACEOF | ||
9223 | #define HAVE_STRFTIME 1 | ||
9224 | _ACEOF | ||
9225 | |||
9226 | LIBS="-lintl $LIBS" | ||
9227 | fi | ||
9228 | |||
9229 | fi | ||
9230 | done | ||
9231 | |||
9232 | |||
9233 | # Check for ALTDIRFUNC glob() extension | ||
9234 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9235 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | ||
9236 | cat >conftest.$ac_ext <<_ACEOF | ||
9237 | /* confdefs.h. */ | ||
9238 | _ACEOF | ||
9239 | cat confdefs.h >>conftest.$ac_ext | ||
9240 | cat >>conftest.$ac_ext <<_ACEOF | ||
9241 | /* end confdefs.h. */ | ||
9242 | |||
9243 | #include <glob.h> | ||
9244 | #ifdef GLOB_ALTDIRFUNC | ||
9245 | FOUNDIT | ||
9246 | #endif | ||
9247 | |||
9248 | _ACEOF | ||
9249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9250 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9251 | |||
9252 | cat >>confdefs.h <<\_ACEOF | ||
9253 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
9254 | _ACEOF | ||
9255 | |||
9256 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9257 | echo "${ECHO_T}yes" >&6 | ||
9258 | |||
9259 | else | ||
9260 | |||
9261 | echo "$as_me:$LINENO: result: no" >&5 | ||
9262 | echo "${ECHO_T}no" >&6 | ||
9263 | |||
9264 | |||
9265 | fi | ||
9266 | rm -f conftest* | ||
9267 | |||
9268 | |||
9269 | # Check for g.gl_matchc glob() extension | ||
9270 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
9271 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | ||
9272 | cat >conftest.$ac_ext <<_ACEOF | ||
9273 | /* confdefs.h. */ | ||
9274 | _ACEOF | ||
9275 | cat confdefs.h >>conftest.$ac_ext | ||
9276 | cat >>conftest.$ac_ext <<_ACEOF | ||
9277 | /* end confdefs.h. */ | ||
9278 | |||
9279 | #include <glob.h> | ||
9280 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
9281 | |||
9282 | _ACEOF | ||
9283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9284 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
9285 | |||
9286 | cat >>confdefs.h <<\_ACEOF | ||
9287 | #define GLOB_HAS_GL_MATCHC 1 | ||
9288 | _ACEOF | ||
9289 | |||
9290 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9291 | echo "${ECHO_T}yes" >&6 | ||
9292 | |||
9293 | else | ||
9294 | |||
9295 | echo "$as_me:$LINENO: result: no" >&5 | ||
9296 | echo "${ECHO_T}no" >&6 | ||
9297 | |||
9298 | |||
9299 | fi | ||
9300 | rm -f conftest* | ||
9301 | |||
9302 | |||
9303 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
9304 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | ||
9305 | if test "$cross_compiling" = yes; then | ||
9306 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
9307 | See \`config.log' for more details." >&5 | ||
9308 | echo "$as_me: error: cannot run test program while cross compiling | ||
9309 | See \`config.log' for more details." >&2;} | ||
9310 | { (exit 1); exit 1; }; } | ||
9311 | else | ||
9312 | cat >conftest.$ac_ext <<_ACEOF | ||
9313 | /* confdefs.h. */ | ||
9314 | _ACEOF | ||
9315 | cat confdefs.h >>conftest.$ac_ext | ||
9316 | cat >>conftest.$ac_ext <<_ACEOF | ||
9317 | /* end confdefs.h. */ | ||
9318 | |||
9319 | #include <sys/types.h> | ||
9320 | #include <dirent.h> | ||
9321 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
9322 | |||
9323 | _ACEOF | ||
9324 | rm -f conftest$ac_exeext | ||
9325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9326 | (eval $ac_link) 2>&5 | ||
9327 | ac_status=$? | ||
9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9329 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9331 | (eval $ac_try) 2>&5 | ||
9332 | ac_status=$? | ||
9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9334 | (exit $ac_status); }; }; then | ||
9335 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9336 | echo "${ECHO_T}yes" >&6 | ||
9337 | else | ||
9338 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9339 | echo "$as_me: failed program was:" >&5 | ||
9340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9341 | |||
9342 | ( exit $ac_status ) | ||
9343 | |||
9344 | echo "$as_me:$LINENO: result: no" >&5 | ||
9345 | echo "${ECHO_T}no" >&6 | ||
9346 | cat >>confdefs.h <<\_ACEOF | ||
9347 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
9348 | _ACEOF | ||
9349 | |||
9350 | |||
9351 | |||
9352 | fi | ||
9353 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9354 | fi | ||
9355 | |||
9356 | echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
9357 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6 | ||
9358 | if test -d "/proc/$$/fd" ; then | ||
9359 | cat >>confdefs.h <<\_ACEOF | ||
9360 | #define HAVE_PROC_PID 1 | ||
9361 | _ACEOF | ||
9362 | |||
9363 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9364 | echo "${ECHO_T}yes" >&6 | ||
9365 | else | ||
9366 | echo "$as_me:$LINENO: result: no" >&5 | ||
9367 | echo "${ECHO_T}no" >&6 | ||
9368 | fi | ||
9369 | |||
9370 | # Check whether user wants S/Key support | ||
9371 | SKEY_MSG="no" | ||
9372 | |||
9373 | # Check whether --with-skey or --without-skey was given. | ||
9374 | if test "${with_skey+set}" = set; then | ||
9375 | withval="$with_skey" | ||
9376 | |||
9377 | if test "x$withval" != "xno" ; then | ||
9378 | |||
9379 | if test "x$withval" != "xyes" ; then | ||
9380 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9381 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9382 | fi | ||
9383 | |||
9384 | cat >>confdefs.h <<\_ACEOF | ||
9385 | #define SKEY 1 | ||
9386 | _ACEOF | ||
9387 | |||
9388 | LIBS="-lskey $LIBS" | ||
9389 | SKEY_MSG="yes" | ||
9390 | |||
9391 | echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
9392 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | ||
9393 | if test "$cross_compiling" = yes; then | ||
9394 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
9395 | See \`config.log' for more details." >&5 | ||
9396 | echo "$as_me: error: cannot run test program while cross compiling | ||
9397 | See \`config.log' for more details." >&2;} | ||
9398 | { (exit 1); exit 1; }; } | ||
9399 | else | ||
9400 | cat >conftest.$ac_ext <<_ACEOF | ||
9401 | /* confdefs.h. */ | ||
9402 | _ACEOF | ||
9403 | cat confdefs.h >>conftest.$ac_ext | ||
9404 | cat >>conftest.$ac_ext <<_ACEOF | ||
9405 | /* end confdefs.h. */ | ||
9406 | |||
9407 | #include <stdio.h> | ||
9408 | #include <skey.h> | ||
9409 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
9410 | |||
9411 | _ACEOF | ||
9412 | rm -f conftest$ac_exeext | ||
9413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9414 | (eval $ac_link) 2>&5 | ||
9415 | ac_status=$? | ||
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9419 | (eval $ac_try) 2>&5 | ||
9420 | ac_status=$? | ||
9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9422 | (exit $ac_status); }; }; then | ||
9423 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9424 | echo "${ECHO_T}yes" >&6 | ||
9425 | else | ||
9426 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9427 | echo "$as_me: failed program was:" >&5 | ||
9428 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9429 | |||
9430 | ( exit $ac_status ) | ||
9431 | |||
9432 | echo "$as_me:$LINENO: result: no" >&5 | ||
9433 | echo "${ECHO_T}no" >&6 | ||
9434 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
9435 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
9436 | { (exit 1); exit 1; }; } | ||
9437 | |||
9438 | fi | ||
9439 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9440 | fi | ||
9441 | echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
9442 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6 | ||
9443 | cat >conftest.$ac_ext <<_ACEOF | ||
9444 | /* confdefs.h. */ | ||
9445 | _ACEOF | ||
9446 | cat confdefs.h >>conftest.$ac_ext | ||
9447 | cat >>conftest.$ac_ext <<_ACEOF | ||
9448 | /* end confdefs.h. */ | ||
9449 | #include <stdio.h> | ||
9450 | #include <skey.h> | ||
9451 | int | ||
9452 | main () | ||
9453 | { | ||
9454 | (void)skeychallenge(NULL,"name","",0); | ||
9455 | ; | ||
9456 | return 0; | ||
9457 | } | ||
9458 | _ACEOF | ||
9459 | rm -f conftest.$ac_objext | ||
9460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9461 | (eval $ac_compile) 2>conftest.er1 | ||
9462 | ac_status=$? | ||
9463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9464 | rm -f conftest.er1 | ||
9465 | cat conftest.err >&5 | ||
9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9467 | (exit $ac_status); } && | ||
9468 | { ac_try='test -z "$ac_c_werror_flag" | ||
9469 | || test ! -s conftest.err' | ||
9470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9471 | (eval $ac_try) 2>&5 | ||
9472 | ac_status=$? | ||
9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9474 | (exit $ac_status); }; } && | ||
9475 | { ac_try='test -s conftest.$ac_objext' | ||
9476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9477 | (eval $ac_try) 2>&5 | ||
9478 | ac_status=$? | ||
9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9480 | (exit $ac_status); }; }; then | ||
9481 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9482 | echo "${ECHO_T}yes" >&6 | ||
9483 | cat >>confdefs.h <<\_ACEOF | ||
9484 | #define SKEYCHALLENGE_4ARG 1 | ||
9485 | _ACEOF | ||
9486 | |||
9487 | else | ||
9488 | echo "$as_me: failed program was:" >&5 | ||
9489 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9490 | |||
9491 | echo "$as_me:$LINENO: result: no" >&5 | ||
9492 | echo "${ECHO_T}no" >&6 | ||
9493 | |||
9494 | fi | ||
9495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9496 | fi | ||
9497 | |||
9498 | |||
9499 | fi; | ||
9500 | |||
9501 | # Check whether user wants TCP wrappers support | ||
9502 | TCPW_MSG="no" | ||
9503 | |||
9504 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
9505 | if test "${with_tcp_wrappers+set}" = set; then | ||
9506 | withval="$with_tcp_wrappers" | ||
9507 | |||
9508 | if test "x$withval" != "xno" ; then | ||
9509 | saved_LIBS="$LIBS" | ||
9510 | saved_LDFLAGS="$LDFLAGS" | ||
9511 | saved_CPPFLAGS="$CPPFLAGS" | ||
9512 | if test -n "${withval}" -a "${withval}" != "yes"; then | ||
9513 | if test -d "${withval}/lib"; then | ||
9514 | if test -n "${need_dash_r}"; then | ||
9515 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9516 | else | ||
9517 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9518 | fi | ||
9519 | else | ||
9520 | if test -n "${need_dash_r}"; then | ||
9521 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9522 | else | ||
9523 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9524 | fi | ||
9525 | fi | ||
9526 | if test -d "${withval}/include"; then | ||
9527 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9528 | else | ||
9529 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9530 | fi | ||
9531 | fi | ||
9532 | LIBWRAP="-lwrap" | ||
9533 | LIBS="$LIBWRAP $LIBS" | ||
9534 | echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
9535 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | ||
9536 | cat >conftest.$ac_ext <<_ACEOF | ||
9537 | /* confdefs.h. */ | ||
9538 | _ACEOF | ||
9539 | cat confdefs.h >>conftest.$ac_ext | ||
9540 | cat >>conftest.$ac_ext <<_ACEOF | ||
9541 | /* end confdefs.h. */ | ||
9542 | |||
9543 | #include <sys/types.h> | ||
9544 | #include <sys/socket.h> | ||
9545 | #include <netinet/in.h> | ||
9546 | #include <tcpd.h> | ||
9547 | int deny_severity = 0, allow_severity = 0; | ||
9548 | |||
9549 | int | ||
9550 | main () | ||
9551 | { | ||
9552 | hosts_access(0); | ||
9553 | ; | ||
9554 | return 0; | ||
9555 | } | ||
9556 | _ACEOF | ||
9557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9559 | (eval $ac_link) 2>conftest.er1 | ||
9560 | ac_status=$? | ||
9561 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9562 | rm -f conftest.er1 | ||
9563 | cat conftest.err >&5 | ||
9564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9565 | (exit $ac_status); } && | ||
9566 | { ac_try='test -z "$ac_c_werror_flag" | ||
9567 | || test ! -s conftest.err' | ||
9568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9569 | (eval $ac_try) 2>&5 | ||
9570 | ac_status=$? | ||
9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9572 | (exit $ac_status); }; } && | ||
9573 | { ac_try='test -s conftest$ac_exeext' | ||
9574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9575 | (eval $ac_try) 2>&5 | ||
9576 | ac_status=$? | ||
9577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9578 | (exit $ac_status); }; }; then | ||
9579 | |||
9580 | echo "$as_me:$LINENO: result: yes" >&5 | ||
9581 | echo "${ECHO_T}yes" >&6 | ||
9582 | cat >>confdefs.h <<\_ACEOF | ||
9583 | #define LIBWRAP 1 | ||
9584 | _ACEOF | ||
9585 | |||
9586 | |||
9587 | TCPW_MSG="yes" | ||
9588 | |||
9589 | else | ||
9590 | echo "$as_me: failed program was:" >&5 | ||
9591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9592 | |||
9593 | |||
9594 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
9595 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
9596 | { (exit 1); exit 1; }; } | ||
9597 | |||
9598 | |||
9599 | fi | ||
9600 | rm -f conftest.err conftest.$ac_objext \ | ||
9601 | conftest$ac_exeext conftest.$ac_ext | ||
9602 | LIBS="$saved_LIBS" | ||
9603 | fi | ||
9604 | |||
9605 | |||
9606 | fi; | ||
9607 | |||
9608 | |||
9609 | |||
9610 | |||
9611 | |||
9612 | |||
9613 | |||
9614 | |||
9615 | |||
9616 | |||
9617 | |||
9618 | |||
9619 | |||
9620 | |||
9621 | |||
9622 | |||
9623 | |||
9624 | |||
9625 | |||
9626 | |||
9627 | |||
9628 | |||
9629 | |||
9630 | |||
9631 | |||
9632 | |||
9633 | |||
9634 | |||
9635 | |||
9636 | |||
9637 | |||
9638 | |||
9639 | |||
9640 | |||
9641 | |||
9642 | |||
9643 | |||
9644 | |||
9645 | |||
9646 | |||
9647 | |||
9648 | |||
9649 | |||
9650 | |||
9651 | |||
9652 | |||
9653 | |||
9654 | |||
9655 | |||
9656 | |||
9657 | |||
9658 | |||
9659 | |||
9660 | |||
9661 | |||
9662 | |||
9663 | |||
9664 | |||
9665 | |||
9666 | |||
9667 | |||
9668 | |||
9669 | |||
9670 | |||
9671 | |||
9672 | |||
9673 | |||
9674 | |||
9675 | |||
9676 | |||
9677 | |||
9678 | |||
9679 | |||
9680 | |||
9681 | |||
9682 | |||
9683 | |||
9684 | |||
9685 | for ac_func in \ | ||
9686 | arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \ | ||
9687 | bindresvport_sa clock closefrom dirfd fchmod fchown freeaddrinfo \ | ||
9688 | futimes getaddrinfo getcwd getgrouplist getnameinfo getopt \ | ||
9689 | getpeereid _getpty getrlimit getttyent glob inet_aton \ | ||
9690 | inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ | ||
9691 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | ||
9692 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ | ||
9693 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | ||
9694 | setproctitle setregid setreuid setrlimit \ | ||
9695 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | ||
9696 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | ||
9697 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ | ||
9698 | |||
9699 | do | ||
9700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9705 | else | ||
9706 | cat >conftest.$ac_ext <<_ACEOF | ||
9707 | /* confdefs.h. */ | ||
9708 | _ACEOF | ||
9709 | cat confdefs.h >>conftest.$ac_ext | ||
9710 | cat >>conftest.$ac_ext <<_ACEOF | ||
9711 | /* end confdefs.h. */ | ||
9712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9714 | #define $ac_func innocuous_$ac_func | ||
9715 | |||
9716 | /* System header to define __stub macros and hopefully few prototypes, | ||
9717 | which can conflict with char $ac_func (); below. | ||
9718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9719 | <limits.h> exists even on freestanding compilers. */ | ||
9720 | |||
9721 | #ifdef __STDC__ | ||
9722 | # include <limits.h> | ||
9723 | #else | ||
9724 | # include <assert.h> | ||
9725 | #endif | ||
9726 | |||
9727 | #undef $ac_func | ||
9728 | |||
9729 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9730 | #ifdef __cplusplus | ||
9731 | extern "C" | ||
9732 | { | ||
9733 | #endif | ||
9734 | /* We use char because int might match the return type of a gcc2 | ||
9735 | builtin and then its argument prototype would still apply. */ | ||
9736 | char $ac_func (); | ||
9737 | /* The GNU C library defines this for functions which it implements | ||
9738 | to always fail with ENOSYS. Some functions are actually named | ||
9739 | something starting with __ and the normal name is an alias. */ | ||
9740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9741 | choke me | ||
9742 | #else | ||
9743 | char (*f) () = $ac_func; | ||
9744 | #endif | ||
9745 | #ifdef __cplusplus | ||
9746 | } | ||
9747 | #endif | ||
9748 | |||
9749 | int | ||
9750 | main () | ||
9751 | { | ||
9752 | return f != $ac_func; | ||
9753 | ; | ||
9754 | return 0; | ||
9755 | } | ||
9756 | _ACEOF | ||
9757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9759 | (eval $ac_link) 2>conftest.er1 | ||
9760 | ac_status=$? | ||
9761 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9762 | rm -f conftest.er1 | ||
9763 | cat conftest.err >&5 | ||
9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9765 | (exit $ac_status); } && | ||
9766 | { ac_try='test -z "$ac_c_werror_flag" | ||
9767 | || test ! -s conftest.err' | ||
9768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9769 | (eval $ac_try) 2>&5 | ||
9770 | ac_status=$? | ||
9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9772 | (exit $ac_status); }; } && | ||
9773 | { ac_try='test -s conftest$ac_exeext' | ||
9774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9775 | (eval $ac_try) 2>&5 | ||
9776 | ac_status=$? | ||
9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9778 | (exit $ac_status); }; }; then | ||
9779 | eval "$as_ac_var=yes" | ||
9780 | else | ||
9781 | echo "$as_me: failed program was:" >&5 | ||
9782 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9783 | |||
9784 | eval "$as_ac_var=no" | ||
9785 | fi | ||
9786 | rm -f conftest.err conftest.$ac_objext \ | ||
9787 | conftest$ac_exeext conftest.$ac_ext | ||
9788 | fi | ||
9789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9792 | cat >>confdefs.h <<_ACEOF | ||
9793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9794 | _ACEOF | ||
9795 | |||
9796 | fi | ||
9797 | done | ||
9798 | |||
9799 | |||
9800 | # IRIX has a const char return value for gai_strerror() | ||
9801 | |||
9802 | for ac_func in gai_strerror | ||
9803 | do | ||
9804 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9805 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9806 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
9807 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
9808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9809 | else | ||
9810 | cat >conftest.$ac_ext <<_ACEOF | ||
9811 | /* confdefs.h. */ | ||
9812 | _ACEOF | ||
9813 | cat confdefs.h >>conftest.$ac_ext | ||
9814 | cat >>conftest.$ac_ext <<_ACEOF | ||
9815 | /* end confdefs.h. */ | ||
9816 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9817 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9818 | #define $ac_func innocuous_$ac_func | ||
9819 | |||
9820 | /* System header to define __stub macros and hopefully few prototypes, | ||
9821 | which can conflict with char $ac_func (); below. | ||
9822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9823 | <limits.h> exists even on freestanding compilers. */ | ||
9824 | |||
9825 | #ifdef __STDC__ | ||
9826 | # include <limits.h> | ||
9827 | #else | ||
9828 | # include <assert.h> | ||
9829 | #endif | ||
9830 | |||
9831 | #undef $ac_func | ||
9832 | |||
9833 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9834 | #ifdef __cplusplus | ||
9835 | extern "C" | ||
9836 | { | ||
9837 | #endif | ||
9838 | /* We use char because int might match the return type of a gcc2 | ||
9839 | builtin and then its argument prototype would still apply. */ | ||
9840 | char $ac_func (); | ||
9841 | /* The GNU C library defines this for functions which it implements | ||
9842 | to always fail with ENOSYS. Some functions are actually named | ||
9843 | something starting with __ and the normal name is an alias. */ | ||
9844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
9845 | choke me | ||
9846 | #else | ||
9847 | char (*f) () = $ac_func; | ||
9848 | #endif | ||
9849 | #ifdef __cplusplus | ||
9850 | } | ||
9851 | #endif | ||
9852 | |||
9853 | int | ||
9854 | main () | ||
9855 | { | ||
9856 | return f != $ac_func; | ||
9857 | ; | ||
9858 | return 0; | ||
9859 | } | ||
9860 | _ACEOF | ||
9861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9863 | (eval $ac_link) 2>conftest.er1 | ||
9864 | ac_status=$? | ||
9865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9866 | rm -f conftest.er1 | ||
9867 | cat conftest.err >&5 | ||
9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9869 | (exit $ac_status); } && | ||
9870 | { ac_try='test -z "$ac_c_werror_flag" | ||
9871 | || test ! -s conftest.err' | ||
9872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9873 | (eval $ac_try) 2>&5 | ||
9874 | ac_status=$? | ||
9875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9876 | (exit $ac_status); }; } && | ||
9877 | { ac_try='test -s conftest$ac_exeext' | ||
9878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9879 | (eval $ac_try) 2>&5 | ||
9880 | ac_status=$? | ||
9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9882 | (exit $ac_status); }; }; then | ||
9883 | eval "$as_ac_var=yes" | ||
9884 | else | ||
9885 | echo "$as_me: failed program was:" >&5 | ||
9886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9887 | |||
9888 | eval "$as_ac_var=no" | ||
9889 | fi | ||
9890 | rm -f conftest.err conftest.$ac_objext \ | ||
9891 | conftest$ac_exeext conftest.$ac_ext | ||
9892 | fi | ||
9893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
9894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
9895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9896 | cat >>confdefs.h <<_ACEOF | ||
9897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9898 | _ACEOF | ||
9899 | |||
9900 | cat >>confdefs.h <<\_ACEOF | ||
9901 | #define HAVE_GAI_STRERROR 1 | ||
9902 | _ACEOF | ||
9903 | |||
9904 | cat >conftest.$ac_ext <<_ACEOF | ||
9905 | /* confdefs.h. */ | ||
9906 | _ACEOF | ||
9907 | cat confdefs.h >>conftest.$ac_ext | ||
9908 | cat >>conftest.$ac_ext <<_ACEOF | ||
9909 | /* end confdefs.h. */ | ||
9910 | |||
9911 | #include <sys/types.h> | ||
9912 | #include <sys/socket.h> | ||
9913 | #include <netdb.h> | ||
9914 | |||
9915 | const char *gai_strerror(int); | ||
9916 | int | ||
9917 | main () | ||
9918 | { | ||
9919 | |||
9920 | char *str; | ||
9921 | |||
9922 | str = gai_strerror(0); | ||
9923 | ; | ||
9924 | return 0; | ||
9925 | } | ||
9926 | _ACEOF | ||
9927 | rm -f conftest.$ac_objext | ||
9928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
9929 | (eval $ac_compile) 2>conftest.er1 | ||
9930 | ac_status=$? | ||
9931 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9932 | rm -f conftest.er1 | ||
9933 | cat conftest.err >&5 | ||
9934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9935 | (exit $ac_status); } && | ||
9936 | { ac_try='test -z "$ac_c_werror_flag" | ||
9937 | || test ! -s conftest.err' | ||
9938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9939 | (eval $ac_try) 2>&5 | ||
9940 | ac_status=$? | ||
9941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9942 | (exit $ac_status); }; } && | ||
9943 | { ac_try='test -s conftest.$ac_objext' | ||
9944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9945 | (eval $ac_try) 2>&5 | ||
9946 | ac_status=$? | ||
9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9948 | (exit $ac_status); }; }; then | ||
9949 | |||
9950 | |||
9951 | cat >>confdefs.h <<\_ACEOF | ||
9952 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
9953 | _ACEOF | ||
9954 | |||
9955 | else | ||
9956 | echo "$as_me: failed program was:" >&5 | ||
9957 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9958 | |||
9959 | fi | ||
9960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9961 | fi | ||
9962 | done | ||
9963 | |||
9964 | |||
9965 | echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
9966 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6 | ||
9967 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
9968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9969 | else | ||
9970 | ac_func_search_save_LIBS=$LIBS | ||
9971 | ac_cv_search_nanosleep=no | ||
9972 | cat >conftest.$ac_ext <<_ACEOF | ||
9973 | /* confdefs.h. */ | ||
9974 | _ACEOF | ||
9975 | cat confdefs.h >>conftest.$ac_ext | ||
9976 | cat >>conftest.$ac_ext <<_ACEOF | ||
9977 | /* end confdefs.h. */ | ||
9978 | |||
9979 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9980 | #ifdef __cplusplus | ||
9981 | extern "C" | ||
9982 | #endif | ||
9983 | /* We use char because int might match the return type of a gcc2 | ||
9984 | builtin and then its argument prototype would still apply. */ | ||
9985 | char nanosleep (); | ||
9986 | int | ||
9987 | main () | ||
9988 | { | ||
9989 | nanosleep (); | ||
9990 | ; | ||
9991 | return 0; | ||
9992 | } | ||
9993 | _ACEOF | ||
9994 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9996 | (eval $ac_link) 2>conftest.er1 | ||
9997 | ac_status=$? | ||
9998 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9999 | rm -f conftest.er1 | ||
10000 | cat conftest.err >&5 | ||
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10002 | (exit $ac_status); } && | ||
10003 | { ac_try='test -z "$ac_c_werror_flag" | ||
10004 | || test ! -s conftest.err' | ||
10005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10006 | (eval $ac_try) 2>&5 | ||
10007 | ac_status=$? | ||
10008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10009 | (exit $ac_status); }; } && | ||
10010 | { ac_try='test -s conftest$ac_exeext' | ||
10011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10012 | (eval $ac_try) 2>&5 | ||
10013 | ac_status=$? | ||
10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10015 | (exit $ac_status); }; }; then | ||
10016 | ac_cv_search_nanosleep="none required" | ||
10017 | else | ||
10018 | echo "$as_me: failed program was:" >&5 | ||
10019 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10020 | |||
10021 | fi | ||
10022 | rm -f conftest.err conftest.$ac_objext \ | ||
10023 | conftest$ac_exeext conftest.$ac_ext | ||
10024 | if test "$ac_cv_search_nanosleep" = no; then | ||
10025 | for ac_lib in rt posix4; do | ||
10026 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10027 | cat >conftest.$ac_ext <<_ACEOF | ||
10028 | /* confdefs.h. */ | ||
10029 | _ACEOF | ||
10030 | cat confdefs.h >>conftest.$ac_ext | ||
10031 | cat >>conftest.$ac_ext <<_ACEOF | ||
10032 | /* end confdefs.h. */ | ||
10033 | |||
10034 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10035 | #ifdef __cplusplus | ||
10036 | extern "C" | ||
10037 | #endif | ||
10038 | /* We use char because int might match the return type of a gcc2 | ||
10039 | builtin and then its argument prototype would still apply. */ | ||
10040 | char nanosleep (); | ||
10041 | int | ||
10042 | main () | ||
10043 | { | ||
10044 | nanosleep (); | ||
10045 | ; | ||
10046 | return 0; | ||
10047 | } | ||
10048 | _ACEOF | ||
10049 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10051 | (eval $ac_link) 2>conftest.er1 | ||
10052 | ac_status=$? | ||
10053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10054 | rm -f conftest.er1 | ||
10055 | cat conftest.err >&5 | ||
10056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10057 | (exit $ac_status); } && | ||
10058 | { ac_try='test -z "$ac_c_werror_flag" | ||
10059 | || test ! -s conftest.err' | ||
10060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10061 | (eval $ac_try) 2>&5 | ||
10062 | ac_status=$? | ||
10063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10064 | (exit $ac_status); }; } && | ||
10065 | { ac_try='test -s conftest$ac_exeext' | ||
10066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10067 | (eval $ac_try) 2>&5 | ||
10068 | ac_status=$? | ||
10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10070 | (exit $ac_status); }; }; then | ||
10071 | ac_cv_search_nanosleep="-l$ac_lib" | ||
10072 | break | ||
10073 | else | ||
10074 | echo "$as_me: failed program was:" >&5 | ||
10075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10076 | |||
10077 | fi | ||
10078 | rm -f conftest.err conftest.$ac_objext \ | ||
10079 | conftest$ac_exeext conftest.$ac_ext | ||
10080 | done | ||
10081 | fi | ||
10082 | LIBS=$ac_func_search_save_LIBS | ||
10083 | fi | ||
10084 | echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
10085 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6 | ||
10086 | if test "$ac_cv_search_nanosleep" != no; then | ||
10087 | test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" | ||
10088 | cat >>confdefs.h <<\_ACEOF | ||
10089 | #define HAVE_NANOSLEEP 1 | ||
10090 | _ACEOF | ||
10091 | |||
10092 | fi | ||
10093 | |||
10094 | |||
10095 | echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
10096 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6 | ||
10097 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10099 | else | ||
10100 | cat >conftest.$ac_ext <<_ACEOF | ||
10101 | /* confdefs.h. */ | ||
10102 | _ACEOF | ||
10103 | cat confdefs.h >>conftest.$ac_ext | ||
10104 | cat >>conftest.$ac_ext <<_ACEOF | ||
10105 | /* end confdefs.h. */ | ||
10106 | $ac_includes_default | ||
10107 | int | ||
10108 | main () | ||
10109 | { | ||
10110 | #ifndef strsep | ||
10111 | char *p = (char *) strsep; | ||
10112 | #endif | ||
10113 | |||
10114 | ; | ||
10115 | return 0; | ||
10116 | } | ||
10117 | _ACEOF | ||
10118 | rm -f conftest.$ac_objext | ||
10119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10120 | (eval $ac_compile) 2>conftest.er1 | ||
10121 | ac_status=$? | ||
10122 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10123 | rm -f conftest.er1 | ||
10124 | cat conftest.err >&5 | ||
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10126 | (exit $ac_status); } && | ||
10127 | { ac_try='test -z "$ac_c_werror_flag" | ||
10128 | || test ! -s conftest.err' | ||
10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10130 | (eval $ac_try) 2>&5 | ||
10131 | ac_status=$? | ||
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10133 | (exit $ac_status); }; } && | ||
10134 | { ac_try='test -s conftest.$ac_objext' | ||
10135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10136 | (eval $ac_try) 2>&5 | ||
10137 | ac_status=$? | ||
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10139 | (exit $ac_status); }; }; then | ||
10140 | ac_cv_have_decl_strsep=yes | ||
10141 | else | ||
10142 | echo "$as_me: failed program was:" >&5 | ||
10143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10144 | |||
10145 | ac_cv_have_decl_strsep=no | ||
10146 | fi | ||
10147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10148 | fi | ||
10149 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
10150 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6 | ||
10151 | if test $ac_cv_have_decl_strsep = yes; then | ||
10152 | |||
10153 | for ac_func in strsep | ||
10154 | do | ||
10155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10156 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10158 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10160 | else | ||
10161 | cat >conftest.$ac_ext <<_ACEOF | ||
10162 | /* confdefs.h. */ | ||
10163 | _ACEOF | ||
10164 | cat confdefs.h >>conftest.$ac_ext | ||
10165 | cat >>conftest.$ac_ext <<_ACEOF | ||
10166 | /* end confdefs.h. */ | ||
10167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10169 | #define $ac_func innocuous_$ac_func | ||
10170 | |||
10171 | /* System header to define __stub macros and hopefully few prototypes, | ||
10172 | which can conflict with char $ac_func (); below. | ||
10173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10174 | <limits.h> exists even on freestanding compilers. */ | ||
10175 | |||
10176 | #ifdef __STDC__ | ||
10177 | # include <limits.h> | ||
10178 | #else | ||
10179 | # include <assert.h> | ||
10180 | #endif | ||
10181 | |||
10182 | #undef $ac_func | ||
10183 | |||
10184 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10185 | #ifdef __cplusplus | ||
10186 | extern "C" | ||
10187 | { | ||
10188 | #endif | ||
10189 | /* We use char because int might match the return type of a gcc2 | ||
10190 | builtin and then its argument prototype would still apply. */ | ||
10191 | char $ac_func (); | ||
10192 | /* The GNU C library defines this for functions which it implements | ||
10193 | to always fail with ENOSYS. Some functions are actually named | ||
10194 | something starting with __ and the normal name is an alias. */ | ||
10195 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10196 | choke me | ||
10197 | #else | ||
10198 | char (*f) () = $ac_func; | ||
10199 | #endif | ||
10200 | #ifdef __cplusplus | ||
10201 | } | ||
10202 | #endif | ||
10203 | |||
10204 | int | ||
10205 | main () | ||
10206 | { | ||
10207 | return f != $ac_func; | ||
10208 | ; | ||
10209 | return 0; | ||
10210 | } | ||
10211 | _ACEOF | ||
10212 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10214 | (eval $ac_link) 2>conftest.er1 | ||
10215 | ac_status=$? | ||
10216 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10217 | rm -f conftest.er1 | ||
10218 | cat conftest.err >&5 | ||
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10220 | (exit $ac_status); } && | ||
10221 | { ac_try='test -z "$ac_c_werror_flag" | ||
10222 | || test ! -s conftest.err' | ||
10223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10224 | (eval $ac_try) 2>&5 | ||
10225 | ac_status=$? | ||
10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10227 | (exit $ac_status); }; } && | ||
10228 | { ac_try='test -s conftest$ac_exeext' | ||
10229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10230 | (eval $ac_try) 2>&5 | ||
10231 | ac_status=$? | ||
10232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10233 | (exit $ac_status); }; }; then | ||
10234 | eval "$as_ac_var=yes" | ||
10235 | else | ||
10236 | echo "$as_me: failed program was:" >&5 | ||
10237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10238 | |||
10239 | eval "$as_ac_var=no" | ||
10240 | fi | ||
10241 | rm -f conftest.err conftest.$ac_objext \ | ||
10242 | conftest$ac_exeext conftest.$ac_ext | ||
10243 | fi | ||
10244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10245 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10246 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10247 | cat >>confdefs.h <<_ACEOF | ||
10248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10249 | _ACEOF | ||
10250 | |||
10251 | fi | ||
10252 | done | ||
10253 | |||
10254 | fi | ||
10255 | |||
10256 | echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
10257 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6 | ||
10258 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
10259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10260 | else | ||
10261 | cat >conftest.$ac_ext <<_ACEOF | ||
10262 | /* confdefs.h. */ | ||
10263 | _ACEOF | ||
10264 | cat confdefs.h >>conftest.$ac_ext | ||
10265 | cat >>conftest.$ac_ext <<_ACEOF | ||
10266 | /* end confdefs.h. */ | ||
10267 | $ac_includes_default | ||
10268 | int | ||
10269 | main () | ||
10270 | { | ||
10271 | #ifndef getrusage | ||
10272 | char *p = (char *) getrusage; | ||
10273 | #endif | ||
10274 | |||
10275 | ; | ||
10276 | return 0; | ||
10277 | } | ||
10278 | _ACEOF | ||
10279 | rm -f conftest.$ac_objext | ||
10280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10281 | (eval $ac_compile) 2>conftest.er1 | ||
10282 | ac_status=$? | ||
10283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10284 | rm -f conftest.er1 | ||
10285 | cat conftest.err >&5 | ||
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10287 | (exit $ac_status); } && | ||
10288 | { ac_try='test -z "$ac_c_werror_flag" | ||
10289 | || test ! -s conftest.err' | ||
10290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10291 | (eval $ac_try) 2>&5 | ||
10292 | ac_status=$? | ||
10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10294 | (exit $ac_status); }; } && | ||
10295 | { ac_try='test -s conftest.$ac_objext' | ||
10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10297 | (eval $ac_try) 2>&5 | ||
10298 | ac_status=$? | ||
10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10300 | (exit $ac_status); }; }; then | ||
10301 | ac_cv_have_decl_getrusage=yes | ||
10302 | else | ||
10303 | echo "$as_me: failed program was:" >&5 | ||
10304 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10305 | |||
10306 | ac_cv_have_decl_getrusage=no | ||
10307 | fi | ||
10308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10309 | fi | ||
10310 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
10311 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6 | ||
10312 | if test $ac_cv_have_decl_getrusage = yes; then | ||
10313 | |||
10314 | for ac_func in getrusage | ||
10315 | do | ||
10316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10319 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10321 | else | ||
10322 | cat >conftest.$ac_ext <<_ACEOF | ||
10323 | /* confdefs.h. */ | ||
10324 | _ACEOF | ||
10325 | cat confdefs.h >>conftest.$ac_ext | ||
10326 | cat >>conftest.$ac_ext <<_ACEOF | ||
10327 | /* end confdefs.h. */ | ||
10328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10330 | #define $ac_func innocuous_$ac_func | ||
10331 | |||
10332 | /* System header to define __stub macros and hopefully few prototypes, | ||
10333 | which can conflict with char $ac_func (); below. | ||
10334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10335 | <limits.h> exists even on freestanding compilers. */ | ||
10336 | |||
10337 | #ifdef __STDC__ | ||
10338 | # include <limits.h> | ||
10339 | #else | ||
10340 | # include <assert.h> | ||
10341 | #endif | ||
10342 | |||
10343 | #undef $ac_func | ||
10344 | |||
10345 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10346 | #ifdef __cplusplus | ||
10347 | extern "C" | ||
10348 | { | ||
10349 | #endif | ||
10350 | /* We use char because int might match the return type of a gcc2 | ||
10351 | builtin and then its argument prototype would still apply. */ | ||
10352 | char $ac_func (); | ||
10353 | /* The GNU C library defines this for functions which it implements | ||
10354 | to always fail with ENOSYS. Some functions are actually named | ||
10355 | something starting with __ and the normal name is an alias. */ | ||
10356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10357 | choke me | ||
10358 | #else | ||
10359 | char (*f) () = $ac_func; | ||
10360 | #endif | ||
10361 | #ifdef __cplusplus | ||
10362 | } | ||
10363 | #endif | ||
10364 | |||
10365 | int | ||
10366 | main () | ||
10367 | { | ||
10368 | return f != $ac_func; | ||
10369 | ; | ||
10370 | return 0; | ||
10371 | } | ||
10372 | _ACEOF | ||
10373 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10375 | (eval $ac_link) 2>conftest.er1 | ||
10376 | ac_status=$? | ||
10377 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10378 | rm -f conftest.er1 | ||
10379 | cat conftest.err >&5 | ||
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10381 | (exit $ac_status); } && | ||
10382 | { ac_try='test -z "$ac_c_werror_flag" | ||
10383 | || test ! -s conftest.err' | ||
10384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10385 | (eval $ac_try) 2>&5 | ||
10386 | ac_status=$? | ||
10387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10388 | (exit $ac_status); }; } && | ||
10389 | { ac_try='test -s conftest$ac_exeext' | ||
10390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10391 | (eval $ac_try) 2>&5 | ||
10392 | ac_status=$? | ||
10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10394 | (exit $ac_status); }; }; then | ||
10395 | eval "$as_ac_var=yes" | ||
10396 | else | ||
10397 | echo "$as_me: failed program was:" >&5 | ||
10398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10399 | |||
10400 | eval "$as_ac_var=no" | ||
10401 | fi | ||
10402 | rm -f conftest.err conftest.$ac_objext \ | ||
10403 | conftest$ac_exeext conftest.$ac_ext | ||
10404 | fi | ||
10405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10406 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10407 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10408 | cat >>confdefs.h <<_ACEOF | ||
10409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10410 | _ACEOF | ||
10411 | |||
10412 | fi | ||
10413 | done | ||
10414 | |||
10415 | fi | ||
10416 | |||
10417 | |||
10418 | echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
10419 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6 | ||
10420 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
10421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10422 | else | ||
10423 | cat >conftest.$ac_ext <<_ACEOF | ||
10424 | /* confdefs.h. */ | ||
10425 | _ACEOF | ||
10426 | cat confdefs.h >>conftest.$ac_ext | ||
10427 | cat >>conftest.$ac_ext <<_ACEOF | ||
10428 | /* end confdefs.h. */ | ||
10429 | #include <termios.h> | ||
10430 | |||
10431 | |||
10432 | int | ||
10433 | main () | ||
10434 | { | ||
10435 | #ifndef tcsendbreak | ||
10436 | char *p = (char *) tcsendbreak; | ||
10437 | #endif | ||
10438 | |||
10439 | ; | ||
10440 | return 0; | ||
10441 | } | ||
10442 | _ACEOF | ||
10443 | rm -f conftest.$ac_objext | ||
10444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10445 | (eval $ac_compile) 2>conftest.er1 | ||
10446 | ac_status=$? | ||
10447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10448 | rm -f conftest.er1 | ||
10449 | cat conftest.err >&5 | ||
10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10451 | (exit $ac_status); } && | ||
10452 | { ac_try='test -z "$ac_c_werror_flag" | ||
10453 | || test ! -s conftest.err' | ||
10454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10455 | (eval $ac_try) 2>&5 | ||
10456 | ac_status=$? | ||
10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10458 | (exit $ac_status); }; } && | ||
10459 | { ac_try='test -s conftest.$ac_objext' | ||
10460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10461 | (eval $ac_try) 2>&5 | ||
10462 | ac_status=$? | ||
10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10464 | (exit $ac_status); }; }; then | ||
10465 | ac_cv_have_decl_tcsendbreak=yes | ||
10466 | else | ||
10467 | echo "$as_me: failed program was:" >&5 | ||
10468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10469 | |||
10470 | ac_cv_have_decl_tcsendbreak=no | ||
10471 | fi | ||
10472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10473 | fi | ||
10474 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
10475 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6 | ||
10476 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
10477 | cat >>confdefs.h <<\_ACEOF | ||
10478 | #define HAVE_TCSENDBREAK 1 | ||
10479 | _ACEOF | ||
10480 | |||
10481 | else | ||
10482 | |||
10483 | for ac_func in tcsendbreak | ||
10484 | do | ||
10485 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10486 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10487 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10488 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10490 | else | ||
10491 | cat >conftest.$ac_ext <<_ACEOF | ||
10492 | /* confdefs.h. */ | ||
10493 | _ACEOF | ||
10494 | cat confdefs.h >>conftest.$ac_ext | ||
10495 | cat >>conftest.$ac_ext <<_ACEOF | ||
10496 | /* end confdefs.h. */ | ||
10497 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10499 | #define $ac_func innocuous_$ac_func | ||
10500 | |||
10501 | /* System header to define __stub macros and hopefully few prototypes, | ||
10502 | which can conflict with char $ac_func (); below. | ||
10503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10504 | <limits.h> exists even on freestanding compilers. */ | ||
10505 | |||
10506 | #ifdef __STDC__ | ||
10507 | # include <limits.h> | ||
10508 | #else | ||
10509 | # include <assert.h> | ||
10510 | #endif | ||
10511 | |||
10512 | #undef $ac_func | ||
10513 | |||
10514 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10515 | #ifdef __cplusplus | ||
10516 | extern "C" | ||
10517 | { | ||
10518 | #endif | ||
10519 | /* We use char because int might match the return type of a gcc2 | ||
10520 | builtin and then its argument prototype would still apply. */ | ||
10521 | char $ac_func (); | ||
10522 | /* The GNU C library defines this for functions which it implements | ||
10523 | to always fail with ENOSYS. Some functions are actually named | ||
10524 | something starting with __ and the normal name is an alias. */ | ||
10525 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10526 | choke me | ||
10527 | #else | ||
10528 | char (*f) () = $ac_func; | ||
10529 | #endif | ||
10530 | #ifdef __cplusplus | ||
10531 | } | ||
10532 | #endif | ||
10533 | |||
10534 | int | ||
10535 | main () | ||
10536 | { | ||
10537 | return f != $ac_func; | ||
10538 | ; | ||
10539 | return 0; | ||
10540 | } | ||
10541 | _ACEOF | ||
10542 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10544 | (eval $ac_link) 2>conftest.er1 | ||
10545 | ac_status=$? | ||
10546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10547 | rm -f conftest.er1 | ||
10548 | cat conftest.err >&5 | ||
10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10550 | (exit $ac_status); } && | ||
10551 | { ac_try='test -z "$ac_c_werror_flag" | ||
10552 | || test ! -s conftest.err' | ||
10553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10554 | (eval $ac_try) 2>&5 | ||
10555 | ac_status=$? | ||
10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10557 | (exit $ac_status); }; } && | ||
10558 | { ac_try='test -s conftest$ac_exeext' | ||
10559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10560 | (eval $ac_try) 2>&5 | ||
10561 | ac_status=$? | ||
10562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10563 | (exit $ac_status); }; }; then | ||
10564 | eval "$as_ac_var=yes" | ||
10565 | else | ||
10566 | echo "$as_me: failed program was:" >&5 | ||
10567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10568 | |||
10569 | eval "$as_ac_var=no" | ||
10570 | fi | ||
10571 | rm -f conftest.err conftest.$ac_objext \ | ||
10572 | conftest$ac_exeext conftest.$ac_ext | ||
10573 | fi | ||
10574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10575 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10576 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10577 | cat >>confdefs.h <<_ACEOF | ||
10578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10579 | _ACEOF | ||
10580 | |||
10581 | fi | ||
10582 | done | ||
10583 | |||
10584 | fi | ||
10585 | |||
10586 | |||
10587 | echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
10588 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6 | ||
10589 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
10590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10591 | else | ||
10592 | cat >conftest.$ac_ext <<_ACEOF | ||
10593 | /* confdefs.h. */ | ||
10594 | _ACEOF | ||
10595 | cat confdefs.h >>conftest.$ac_ext | ||
10596 | cat >>conftest.$ac_ext <<_ACEOF | ||
10597 | /* end confdefs.h. */ | ||
10598 | #include <netdb.h> | ||
10599 | |||
10600 | int | ||
10601 | main () | ||
10602 | { | ||
10603 | #ifndef h_errno | ||
10604 | char *p = (char *) h_errno; | ||
10605 | #endif | ||
10606 | |||
10607 | ; | ||
10608 | return 0; | ||
10609 | } | ||
10610 | _ACEOF | ||
10611 | rm -f conftest.$ac_objext | ||
10612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
10613 | (eval $ac_compile) 2>conftest.er1 | ||
10614 | ac_status=$? | ||
10615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10616 | rm -f conftest.er1 | ||
10617 | cat conftest.err >&5 | ||
10618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10619 | (exit $ac_status); } && | ||
10620 | { ac_try='test -z "$ac_c_werror_flag" | ||
10621 | || test ! -s conftest.err' | ||
10622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10623 | (eval $ac_try) 2>&5 | ||
10624 | ac_status=$? | ||
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10626 | (exit $ac_status); }; } && | ||
10627 | { ac_try='test -s conftest.$ac_objext' | ||
10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10629 | (eval $ac_try) 2>&5 | ||
10630 | ac_status=$? | ||
10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10632 | (exit $ac_status); }; }; then | ||
10633 | ac_cv_have_decl_h_errno=yes | ||
10634 | else | ||
10635 | echo "$as_me: failed program was:" >&5 | ||
10636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10637 | |||
10638 | ac_cv_have_decl_h_errno=no | ||
10639 | fi | ||
10640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10641 | fi | ||
10642 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
10643 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6 | ||
10644 | if test $ac_cv_have_decl_h_errno = yes; then | ||
10645 | |||
10646 | cat >>confdefs.h <<_ACEOF | ||
10647 | #define HAVE_DECL_H_ERRNO 1 | ||
10648 | _ACEOF | ||
10649 | |||
10650 | |||
10651 | else | ||
10652 | cat >>confdefs.h <<_ACEOF | ||
10653 | #define HAVE_DECL_H_ERRNO 0 | ||
10654 | _ACEOF | ||
10655 | |||
10656 | |||
10657 | fi | ||
10658 | |||
10659 | |||
10660 | |||
10661 | |||
10662 | for ac_func in setresuid | ||
10663 | do | ||
10664 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10665 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10666 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10667 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10669 | else | ||
10670 | cat >conftest.$ac_ext <<_ACEOF | ||
10671 | /* confdefs.h. */ | ||
10672 | _ACEOF | ||
10673 | cat confdefs.h >>conftest.$ac_ext | ||
10674 | cat >>conftest.$ac_ext <<_ACEOF | ||
10675 | /* end confdefs.h. */ | ||
10676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10678 | #define $ac_func innocuous_$ac_func | ||
10679 | |||
10680 | /* System header to define __stub macros and hopefully few prototypes, | ||
10681 | which can conflict with char $ac_func (); below. | ||
10682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10683 | <limits.h> exists even on freestanding compilers. */ | ||
10684 | |||
10685 | #ifdef __STDC__ | ||
10686 | # include <limits.h> | ||
10687 | #else | ||
10688 | # include <assert.h> | ||
10689 | #endif | ||
10690 | |||
10691 | #undef $ac_func | ||
10692 | |||
10693 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10694 | #ifdef __cplusplus | ||
10695 | extern "C" | ||
10696 | { | ||
10697 | #endif | ||
10698 | /* We use char because int might match the return type of a gcc2 | ||
10699 | builtin and then its argument prototype would still apply. */ | ||
10700 | char $ac_func (); | ||
10701 | /* The GNU C library defines this for functions which it implements | ||
10702 | to always fail with ENOSYS. Some functions are actually named | ||
10703 | something starting with __ and the normal name is an alias. */ | ||
10704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10705 | choke me | ||
10706 | #else | ||
10707 | char (*f) () = $ac_func; | ||
10708 | #endif | ||
10709 | #ifdef __cplusplus | ||
10710 | } | ||
10711 | #endif | ||
10712 | |||
10713 | int | ||
10714 | main () | ||
10715 | { | ||
10716 | return f != $ac_func; | ||
10717 | ; | ||
10718 | return 0; | ||
10719 | } | ||
10720 | _ACEOF | ||
10721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10723 | (eval $ac_link) 2>conftest.er1 | ||
10724 | ac_status=$? | ||
10725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10726 | rm -f conftest.er1 | ||
10727 | cat conftest.err >&5 | ||
10728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10729 | (exit $ac_status); } && | ||
10730 | { ac_try='test -z "$ac_c_werror_flag" | ||
10731 | || test ! -s conftest.err' | ||
10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10733 | (eval $ac_try) 2>&5 | ||
10734 | ac_status=$? | ||
10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10736 | (exit $ac_status); }; } && | ||
10737 | { ac_try='test -s conftest$ac_exeext' | ||
10738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10739 | (eval $ac_try) 2>&5 | ||
10740 | ac_status=$? | ||
10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10742 | (exit $ac_status); }; }; then | ||
10743 | eval "$as_ac_var=yes" | ||
10744 | else | ||
10745 | echo "$as_me: failed program was:" >&5 | ||
10746 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10747 | |||
10748 | eval "$as_ac_var=no" | ||
10749 | fi | ||
10750 | rm -f conftest.err conftest.$ac_objext \ | ||
10751 | conftest$ac_exeext conftest.$ac_ext | ||
10752 | fi | ||
10753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10755 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10756 | cat >>confdefs.h <<_ACEOF | ||
10757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10758 | _ACEOF | ||
10759 | |||
10760 | echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
10761 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6 | ||
10762 | if test "$cross_compiling" = yes; then | ||
10763 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
10764 | See \`config.log' for more details." >&5 | ||
10765 | echo "$as_me: error: cannot run test program while cross compiling | ||
10766 | See \`config.log' for more details." >&2;} | ||
10767 | { (exit 1); exit 1; }; } | ||
10768 | else | ||
10769 | cat >conftest.$ac_ext <<_ACEOF | ||
10770 | /* confdefs.h. */ | ||
10771 | _ACEOF | ||
10772 | cat confdefs.h >>conftest.$ac_ext | ||
10773 | cat >>conftest.$ac_ext <<_ACEOF | ||
10774 | /* end confdefs.h. */ | ||
10775 | |||
10776 | #include <stdlib.h> | ||
10777 | #include <errno.h> | ||
10778 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
10779 | |||
10780 | _ACEOF | ||
10781 | rm -f conftest$ac_exeext | ||
10782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10783 | (eval $ac_link) 2>&5 | ||
10784 | ac_status=$? | ||
10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10788 | (eval $ac_try) 2>&5 | ||
10789 | ac_status=$? | ||
10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10791 | (exit $ac_status); }; }; then | ||
10792 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10793 | echo "${ECHO_T}yes" >&6 | ||
10794 | else | ||
10795 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10796 | echo "$as_me: failed program was:" >&5 | ||
10797 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10798 | |||
10799 | ( exit $ac_status ) | ||
10800 | cat >>confdefs.h <<\_ACEOF | ||
10801 | #define BROKEN_SETRESUID 1 | ||
10802 | _ACEOF | ||
10803 | |||
10804 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
10805 | echo "${ECHO_T}not implemented" >&6 | ||
10806 | |||
10807 | fi | ||
10808 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10809 | fi | ||
10810 | |||
10811 | fi | ||
10812 | done | ||
10813 | |||
10814 | |||
10815 | |||
10816 | for ac_func in setresgid | ||
10817 | do | ||
10818 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10819 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10820 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10821 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10823 | else | ||
10824 | cat >conftest.$ac_ext <<_ACEOF | ||
10825 | /* confdefs.h. */ | ||
10826 | _ACEOF | ||
10827 | cat confdefs.h >>conftest.$ac_ext | ||
10828 | cat >>conftest.$ac_ext <<_ACEOF | ||
10829 | /* end confdefs.h. */ | ||
10830 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10832 | #define $ac_func innocuous_$ac_func | ||
10833 | |||
10834 | /* System header to define __stub macros and hopefully few prototypes, | ||
10835 | which can conflict with char $ac_func (); below. | ||
10836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10837 | <limits.h> exists even on freestanding compilers. */ | ||
10838 | |||
10839 | #ifdef __STDC__ | ||
10840 | # include <limits.h> | ||
10841 | #else | ||
10842 | # include <assert.h> | ||
10843 | #endif | ||
10844 | |||
10845 | #undef $ac_func | ||
10846 | |||
10847 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
10848 | #ifdef __cplusplus | ||
10849 | extern "C" | ||
10850 | { | ||
10851 | #endif | ||
10852 | /* We use char because int might match the return type of a gcc2 | ||
10853 | builtin and then its argument prototype would still apply. */ | ||
10854 | char $ac_func (); | ||
10855 | /* The GNU C library defines this for functions which it implements | ||
10856 | to always fail with ENOSYS. Some functions are actually named | ||
10857 | something starting with __ and the normal name is an alias. */ | ||
10858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
10859 | choke me | ||
10860 | #else | ||
10861 | char (*f) () = $ac_func; | ||
10862 | #endif | ||
10863 | #ifdef __cplusplus | ||
10864 | } | ||
10865 | #endif | ||
10866 | |||
10867 | int | ||
10868 | main () | ||
10869 | { | ||
10870 | return f != $ac_func; | ||
10871 | ; | ||
10872 | return 0; | ||
10873 | } | ||
10874 | _ACEOF | ||
10875 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10877 | (eval $ac_link) 2>conftest.er1 | ||
10878 | ac_status=$? | ||
10879 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10880 | rm -f conftest.er1 | ||
10881 | cat conftest.err >&5 | ||
10882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10883 | (exit $ac_status); } && | ||
10884 | { ac_try='test -z "$ac_c_werror_flag" | ||
10885 | || test ! -s conftest.err' | ||
10886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10887 | (eval $ac_try) 2>&5 | ||
10888 | ac_status=$? | ||
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10890 | (exit $ac_status); }; } && | ||
10891 | { ac_try='test -s conftest$ac_exeext' | ||
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10893 | (eval $ac_try) 2>&5 | ||
10894 | ac_status=$? | ||
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10896 | (exit $ac_status); }; }; then | ||
10897 | eval "$as_ac_var=yes" | ||
10898 | else | ||
10899 | echo "$as_me: failed program was:" >&5 | ||
10900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10901 | |||
10902 | eval "$as_ac_var=no" | ||
10903 | fi | ||
10904 | rm -f conftest.err conftest.$ac_objext \ | ||
10905 | conftest$ac_exeext conftest.$ac_ext | ||
10906 | fi | ||
10907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
10908 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
10909 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10910 | cat >>confdefs.h <<_ACEOF | ||
10911 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10912 | _ACEOF | ||
10913 | |||
10914 | echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
10915 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6 | ||
10916 | if test "$cross_compiling" = yes; then | ||
10917 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
10918 | See \`config.log' for more details." >&5 | ||
10919 | echo "$as_me: error: cannot run test program while cross compiling | ||
10920 | See \`config.log' for more details." >&2;} | ||
10921 | { (exit 1); exit 1; }; } | ||
10922 | else | ||
10923 | cat >conftest.$ac_ext <<_ACEOF | ||
10924 | /* confdefs.h. */ | ||
10925 | _ACEOF | ||
10926 | cat confdefs.h >>conftest.$ac_ext | ||
10927 | cat >>conftest.$ac_ext <<_ACEOF | ||
10928 | /* end confdefs.h. */ | ||
10929 | |||
10930 | #include <stdlib.h> | ||
10931 | #include <errno.h> | ||
10932 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
10933 | |||
10934 | _ACEOF | ||
10935 | rm -f conftest$ac_exeext | ||
10936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10937 | (eval $ac_link) 2>&5 | ||
10938 | ac_status=$? | ||
10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10942 | (eval $ac_try) 2>&5 | ||
10943 | ac_status=$? | ||
10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10945 | (exit $ac_status); }; }; then | ||
10946 | echo "$as_me:$LINENO: result: yes" >&5 | ||
10947 | echo "${ECHO_T}yes" >&6 | ||
10948 | else | ||
10949 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10950 | echo "$as_me: failed program was:" >&5 | ||
10951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10952 | |||
10953 | ( exit $ac_status ) | ||
10954 | cat >>confdefs.h <<\_ACEOF | ||
10955 | #define BROKEN_SETRESGID 1 | ||
10956 | _ACEOF | ||
10957 | |||
10958 | echo "$as_me:$LINENO: result: not implemented" >&5 | ||
10959 | echo "${ECHO_T}not implemented" >&6 | ||
10960 | |||
10961 | fi | ||
10962 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10963 | fi | ||
10964 | |||
10965 | fi | ||
10966 | done | ||
10967 | |||
10968 | |||
10969 | |||
10970 | |||
10971 | for ac_func in gettimeofday time | ||
10972 | do | ||
10973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
10976 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
10977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10978 | else | ||
10979 | cat >conftest.$ac_ext <<_ACEOF | ||
10980 | /* confdefs.h. */ | ||
10981 | _ACEOF | ||
10982 | cat confdefs.h >>conftest.$ac_ext | ||
10983 | cat >>conftest.$ac_ext <<_ACEOF | ||
10984 | /* end confdefs.h. */ | ||
10985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10987 | #define $ac_func innocuous_$ac_func | ||
10988 | |||
10989 | /* System header to define __stub macros and hopefully few prototypes, | ||
10990 | which can conflict with char $ac_func (); below. | ||
10991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10992 | <limits.h> exists even on freestanding compilers. */ | ||
10993 | |||
10994 | #ifdef __STDC__ | ||
10995 | # include <limits.h> | ||
10996 | #else | ||
10997 | # include <assert.h> | ||
10998 | #endif | ||
10999 | |||
11000 | #undef $ac_func | ||
11001 | |||
11002 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11003 | #ifdef __cplusplus | ||
11004 | extern "C" | ||
11005 | { | ||
11006 | #endif | ||
11007 | /* We use char because int might match the return type of a gcc2 | ||
11008 | builtin and then its argument prototype would still apply. */ | ||
11009 | char $ac_func (); | ||
11010 | /* The GNU C library defines this for functions which it implements | ||
11011 | to always fail with ENOSYS. Some functions are actually named | ||
11012 | something starting with __ and the normal name is an alias. */ | ||
11013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11014 | choke me | ||
11015 | #else | ||
11016 | char (*f) () = $ac_func; | ||
11017 | #endif | ||
11018 | #ifdef __cplusplus | ||
11019 | } | ||
11020 | #endif | ||
11021 | |||
11022 | int | ||
11023 | main () | ||
11024 | { | ||
11025 | return f != $ac_func; | ||
11026 | ; | ||
11027 | return 0; | ||
11028 | } | ||
11029 | _ACEOF | ||
11030 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11032 | (eval $ac_link) 2>conftest.er1 | ||
11033 | ac_status=$? | ||
11034 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11035 | rm -f conftest.er1 | ||
11036 | cat conftest.err >&5 | ||
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11038 | (exit $ac_status); } && | ||
11039 | { ac_try='test -z "$ac_c_werror_flag" | ||
11040 | || test ! -s conftest.err' | ||
11041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11042 | (eval $ac_try) 2>&5 | ||
11043 | ac_status=$? | ||
11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11045 | (exit $ac_status); }; } && | ||
11046 | { ac_try='test -s conftest$ac_exeext' | ||
11047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11048 | (eval $ac_try) 2>&5 | ||
11049 | ac_status=$? | ||
11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11051 | (exit $ac_status); }; }; then | ||
11052 | eval "$as_ac_var=yes" | ||
11053 | else | ||
11054 | echo "$as_me: failed program was:" >&5 | ||
11055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11056 | |||
11057 | eval "$as_ac_var=no" | ||
11058 | fi | ||
11059 | rm -f conftest.err conftest.$ac_objext \ | ||
11060 | conftest$ac_exeext conftest.$ac_ext | ||
11061 | fi | ||
11062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11065 | cat >>confdefs.h <<_ACEOF | ||
11066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11067 | _ACEOF | ||
11068 | |||
11069 | fi | ||
11070 | done | ||
11071 | |||
11072 | |||
11073 | |||
11074 | |||
11075 | |||
11076 | |||
11077 | |||
11078 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11079 | do | ||
11080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11081 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11083 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11085 | else | ||
11086 | cat >conftest.$ac_ext <<_ACEOF | ||
11087 | /* confdefs.h. */ | ||
11088 | _ACEOF | ||
11089 | cat confdefs.h >>conftest.$ac_ext | ||
11090 | cat >>conftest.$ac_ext <<_ACEOF | ||
11091 | /* end confdefs.h. */ | ||
11092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11094 | #define $ac_func innocuous_$ac_func | ||
11095 | |||
11096 | /* System header to define __stub macros and hopefully few prototypes, | ||
11097 | which can conflict with char $ac_func (); below. | ||
11098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11099 | <limits.h> exists even on freestanding compilers. */ | ||
11100 | |||
11101 | #ifdef __STDC__ | ||
11102 | # include <limits.h> | ||
11103 | #else | ||
11104 | # include <assert.h> | ||
11105 | #endif | ||
11106 | |||
11107 | #undef $ac_func | ||
11108 | |||
11109 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11110 | #ifdef __cplusplus | ||
11111 | extern "C" | ||
11112 | { | ||
11113 | #endif | ||
11114 | /* We use char because int might match the return type of a gcc2 | ||
11115 | builtin and then its argument prototype would still apply. */ | ||
11116 | char $ac_func (); | ||
11117 | /* The GNU C library defines this for functions which it implements | ||
11118 | to always fail with ENOSYS. Some functions are actually named | ||
11119 | something starting with __ and the normal name is an alias. */ | ||
11120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11121 | choke me | ||
11122 | #else | ||
11123 | char (*f) () = $ac_func; | ||
11124 | #endif | ||
11125 | #ifdef __cplusplus | ||
11126 | } | ||
11127 | #endif | ||
11128 | |||
11129 | int | ||
11130 | main () | ||
11131 | { | ||
11132 | return f != $ac_func; | ||
11133 | ; | ||
11134 | return 0; | ||
11135 | } | ||
11136 | _ACEOF | ||
11137 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11139 | (eval $ac_link) 2>conftest.er1 | ||
11140 | ac_status=$? | ||
11141 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11142 | rm -f conftest.er1 | ||
11143 | cat conftest.err >&5 | ||
11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11145 | (exit $ac_status); } && | ||
11146 | { ac_try='test -z "$ac_c_werror_flag" | ||
11147 | || test ! -s conftest.err' | ||
11148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11149 | (eval $ac_try) 2>&5 | ||
11150 | ac_status=$? | ||
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11152 | (exit $ac_status); }; } && | ||
11153 | { ac_try='test -s conftest$ac_exeext' | ||
11154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11155 | (eval $ac_try) 2>&5 | ||
11156 | ac_status=$? | ||
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11158 | (exit $ac_status); }; }; then | ||
11159 | eval "$as_ac_var=yes" | ||
11160 | else | ||
11161 | echo "$as_me: failed program was:" >&5 | ||
11162 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11163 | |||
11164 | eval "$as_ac_var=no" | ||
11165 | fi | ||
11166 | rm -f conftest.err conftest.$ac_objext \ | ||
11167 | conftest$ac_exeext conftest.$ac_ext | ||
11168 | fi | ||
11169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11170 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11171 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11172 | cat >>confdefs.h <<_ACEOF | ||
11173 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11174 | _ACEOF | ||
11175 | |||
11176 | fi | ||
11177 | done | ||
11178 | |||
11179 | |||
11180 | for ac_func in utmpname | ||
11181 | do | ||
11182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11183 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11185 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11187 | else | ||
11188 | cat >conftest.$ac_ext <<_ACEOF | ||
11189 | /* confdefs.h. */ | ||
11190 | _ACEOF | ||
11191 | cat confdefs.h >>conftest.$ac_ext | ||
11192 | cat >>conftest.$ac_ext <<_ACEOF | ||
11193 | /* end confdefs.h. */ | ||
11194 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11195 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11196 | #define $ac_func innocuous_$ac_func | ||
11197 | |||
11198 | /* System header to define __stub macros and hopefully few prototypes, | ||
11199 | which can conflict with char $ac_func (); below. | ||
11200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11201 | <limits.h> exists even on freestanding compilers. */ | ||
11202 | |||
11203 | #ifdef __STDC__ | ||
11204 | # include <limits.h> | ||
11205 | #else | ||
11206 | # include <assert.h> | ||
11207 | #endif | ||
11208 | |||
11209 | #undef $ac_func | ||
11210 | |||
11211 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11212 | #ifdef __cplusplus | ||
11213 | extern "C" | ||
11214 | { | ||
11215 | #endif | ||
11216 | /* We use char because int might match the return type of a gcc2 | ||
11217 | builtin and then its argument prototype would still apply. */ | ||
11218 | char $ac_func (); | ||
11219 | /* The GNU C library defines this for functions which it implements | ||
11220 | to always fail with ENOSYS. Some functions are actually named | ||
11221 | something starting with __ and the normal name is an alias. */ | ||
11222 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11223 | choke me | ||
11224 | #else | ||
11225 | char (*f) () = $ac_func; | ||
11226 | #endif | ||
11227 | #ifdef __cplusplus | ||
11228 | } | ||
11229 | #endif | ||
11230 | |||
11231 | int | ||
11232 | main () | ||
11233 | { | ||
11234 | return f != $ac_func; | ||
11235 | ; | ||
11236 | return 0; | ||
11237 | } | ||
11238 | _ACEOF | ||
11239 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11241 | (eval $ac_link) 2>conftest.er1 | ||
11242 | ac_status=$? | ||
11243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11244 | rm -f conftest.er1 | ||
11245 | cat conftest.err >&5 | ||
11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11247 | (exit $ac_status); } && | ||
11248 | { ac_try='test -z "$ac_c_werror_flag" | ||
11249 | || test ! -s conftest.err' | ||
11250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11251 | (eval $ac_try) 2>&5 | ||
11252 | ac_status=$? | ||
11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11254 | (exit $ac_status); }; } && | ||
11255 | { ac_try='test -s conftest$ac_exeext' | ||
11256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11257 | (eval $ac_try) 2>&5 | ||
11258 | ac_status=$? | ||
11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11260 | (exit $ac_status); }; }; then | ||
11261 | eval "$as_ac_var=yes" | ||
11262 | else | ||
11263 | echo "$as_me: failed program was:" >&5 | ||
11264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11265 | |||
11266 | eval "$as_ac_var=no" | ||
11267 | fi | ||
11268 | rm -f conftest.err conftest.$ac_objext \ | ||
11269 | conftest$ac_exeext conftest.$ac_ext | ||
11270 | fi | ||
11271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11272 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11273 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11274 | cat >>confdefs.h <<_ACEOF | ||
11275 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11276 | _ACEOF | ||
11277 | |||
11278 | fi | ||
11279 | done | ||
11280 | |||
11281 | |||
11282 | |||
11283 | |||
11284 | |||
11285 | |||
11286 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
11287 | do | ||
11288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11289 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11291 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11293 | else | ||
11294 | cat >conftest.$ac_ext <<_ACEOF | ||
11295 | /* confdefs.h. */ | ||
11296 | _ACEOF | ||
11297 | cat confdefs.h >>conftest.$ac_ext | ||
11298 | cat >>conftest.$ac_ext <<_ACEOF | ||
11299 | /* end confdefs.h. */ | ||
11300 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11302 | #define $ac_func innocuous_$ac_func | ||
11303 | |||
11304 | /* System header to define __stub macros and hopefully few prototypes, | ||
11305 | which can conflict with char $ac_func (); below. | ||
11306 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11307 | <limits.h> exists even on freestanding compilers. */ | ||
11308 | |||
11309 | #ifdef __STDC__ | ||
11310 | # include <limits.h> | ||
11311 | #else | ||
11312 | # include <assert.h> | ||
11313 | #endif | ||
11314 | |||
11315 | #undef $ac_func | ||
11316 | |||
11317 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11318 | #ifdef __cplusplus | ||
11319 | extern "C" | ||
11320 | { | ||
11321 | #endif | ||
11322 | /* We use char because int might match the return type of a gcc2 | ||
11323 | builtin and then its argument prototype would still apply. */ | ||
11324 | char $ac_func (); | ||
11325 | /* The GNU C library defines this for functions which it implements | ||
11326 | to always fail with ENOSYS. Some functions are actually named | ||
11327 | something starting with __ and the normal name is an alias. */ | ||
11328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11329 | choke me | ||
11330 | #else | ||
11331 | char (*f) () = $ac_func; | ||
11332 | #endif | ||
11333 | #ifdef __cplusplus | ||
11334 | } | ||
11335 | #endif | ||
11336 | |||
11337 | int | ||
11338 | main () | ||
11339 | { | ||
11340 | return f != $ac_func; | ||
11341 | ; | ||
11342 | return 0; | ||
11343 | } | ||
11344 | _ACEOF | ||
11345 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11347 | (eval $ac_link) 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_exeext' | ||
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 | eval "$as_ac_var=yes" | ||
11368 | else | ||
11369 | echo "$as_me: failed program was:" >&5 | ||
11370 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11371 | |||
11372 | eval "$as_ac_var=no" | ||
11373 | fi | ||
11374 | rm -f conftest.err conftest.$ac_objext \ | ||
11375 | conftest$ac_exeext conftest.$ac_ext | ||
11376 | fi | ||
11377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11378 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11379 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11380 | cat >>confdefs.h <<_ACEOF | ||
11381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11382 | _ACEOF | ||
11383 | |||
11384 | fi | ||
11385 | done | ||
11386 | |||
11387 | |||
11388 | |||
11389 | for ac_func in setutxent utmpxname | ||
11390 | do | ||
11391 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11392 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11393 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
11394 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
11395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11396 | else | ||
11397 | cat >conftest.$ac_ext <<_ACEOF | ||
11398 | /* confdefs.h. */ | ||
11399 | _ACEOF | ||
11400 | cat confdefs.h >>conftest.$ac_ext | ||
11401 | cat >>conftest.$ac_ext <<_ACEOF | ||
11402 | /* end confdefs.h. */ | ||
11403 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11404 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11405 | #define $ac_func innocuous_$ac_func | ||
11406 | |||
11407 | /* System header to define __stub macros and hopefully few prototypes, | ||
11408 | which can conflict with char $ac_func (); below. | ||
11409 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11410 | <limits.h> exists even on freestanding compilers. */ | ||
11411 | |||
11412 | #ifdef __STDC__ | ||
11413 | # include <limits.h> | ||
11414 | #else | ||
11415 | # include <assert.h> | ||
11416 | #endif | ||
11417 | |||
11418 | #undef $ac_func | ||
11419 | |||
11420 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11421 | #ifdef __cplusplus | ||
11422 | extern "C" | ||
11423 | { | ||
11424 | #endif | ||
11425 | /* We use char because int might match the return type of a gcc2 | ||
11426 | builtin and then its argument prototype would still apply. */ | ||
11427 | char $ac_func (); | ||
11428 | /* The GNU C library defines this for functions which it implements | ||
11429 | to always fail with ENOSYS. Some functions are actually named | ||
11430 | something starting with __ and the normal name is an alias. */ | ||
11431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
11432 | choke me | ||
11433 | #else | ||
11434 | char (*f) () = $ac_func; | ||
11435 | #endif | ||
11436 | #ifdef __cplusplus | ||
11437 | } | ||
11438 | #endif | ||
11439 | |||
11440 | int | ||
11441 | main () | ||
11442 | { | ||
11443 | return f != $ac_func; | ||
11444 | ; | ||
11445 | return 0; | ||
11446 | } | ||
11447 | _ACEOF | ||
11448 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11450 | (eval $ac_link) 2>conftest.er1 | ||
11451 | ac_status=$? | ||
11452 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11453 | rm -f conftest.er1 | ||
11454 | cat conftest.err >&5 | ||
11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11456 | (exit $ac_status); } && | ||
11457 | { ac_try='test -z "$ac_c_werror_flag" | ||
11458 | || test ! -s conftest.err' | ||
11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11460 | (eval $ac_try) 2>&5 | ||
11461 | ac_status=$? | ||
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11463 | (exit $ac_status); }; } && | ||
11464 | { ac_try='test -s conftest$ac_exeext' | ||
11465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11466 | (eval $ac_try) 2>&5 | ||
11467 | ac_status=$? | ||
11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11469 | (exit $ac_status); }; }; then | ||
11470 | eval "$as_ac_var=yes" | ||
11471 | else | ||
11472 | echo "$as_me: failed program was:" >&5 | ||
11473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11474 | |||
11475 | eval "$as_ac_var=no" | ||
11476 | fi | ||
11477 | rm -f conftest.err conftest.$ac_objext \ | ||
11478 | conftest$ac_exeext conftest.$ac_ext | ||
11479 | fi | ||
11480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
11481 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
11482 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11483 | cat >>confdefs.h <<_ACEOF | ||
11484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11485 | _ACEOF | ||
11486 | |||
11487 | fi | ||
11488 | done | ||
11489 | |||
11490 | |||
11491 | echo "$as_me:$LINENO: checking for daemon" >&5 | ||
11492 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | ||
11493 | if test "${ac_cv_func_daemon+set}" = set; then | ||
11494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11495 | else | ||
11496 | cat >conftest.$ac_ext <<_ACEOF | ||
11497 | /* confdefs.h. */ | ||
11498 | _ACEOF | ||
11499 | cat confdefs.h >>conftest.$ac_ext | ||
11500 | cat >>conftest.$ac_ext <<_ACEOF | ||
11501 | /* end confdefs.h. */ | ||
11502 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
11503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11504 | #define daemon innocuous_daemon | ||
11505 | |||
11506 | /* System header to define __stub macros and hopefully few prototypes, | ||
11507 | which can conflict with char daemon (); below. | ||
11508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11509 | <limits.h> exists even on freestanding compilers. */ | ||
11510 | |||
11511 | #ifdef __STDC__ | ||
11512 | # include <limits.h> | ||
11513 | #else | ||
11514 | # include <assert.h> | ||
11515 | #endif | ||
11516 | |||
11517 | #undef daemon | ||
11518 | |||
11519 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11520 | #ifdef __cplusplus | ||
11521 | extern "C" | ||
11522 | { | ||
11523 | #endif | ||
11524 | /* We use char because int might match the return type of a gcc2 | ||
11525 | builtin and then its argument prototype would still apply. */ | ||
11526 | char daemon (); | ||
11527 | /* The GNU C library defines this for functions which it implements | ||
11528 | to always fail with ENOSYS. Some functions are actually named | ||
11529 | something starting with __ and the normal name is an alias. */ | ||
11530 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
11531 | choke me | ||
11532 | #else | ||
11533 | char (*f) () = daemon; | ||
11534 | #endif | ||
11535 | #ifdef __cplusplus | ||
11536 | } | ||
11537 | #endif | ||
11538 | |||
11539 | int | ||
11540 | main () | ||
11541 | { | ||
11542 | return f != daemon; | ||
11543 | ; | ||
11544 | return 0; | ||
11545 | } | ||
11546 | _ACEOF | ||
11547 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11549 | (eval $ac_link) 2>conftest.er1 | ||
11550 | ac_status=$? | ||
11551 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11552 | rm -f conftest.er1 | ||
11553 | cat conftest.err >&5 | ||
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11555 | (exit $ac_status); } && | ||
11556 | { ac_try='test -z "$ac_c_werror_flag" | ||
11557 | || test ! -s conftest.err' | ||
11558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11559 | (eval $ac_try) 2>&5 | ||
11560 | ac_status=$? | ||
11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11562 | (exit $ac_status); }; } && | ||
11563 | { ac_try='test -s conftest$ac_exeext' | ||
11564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11565 | (eval $ac_try) 2>&5 | ||
11566 | ac_status=$? | ||
11567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11568 | (exit $ac_status); }; }; then | ||
11569 | ac_cv_func_daemon=yes | ||
11570 | else | ||
11571 | echo "$as_me: failed program was:" >&5 | ||
11572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11573 | |||
11574 | ac_cv_func_daemon=no | ||
11575 | fi | ||
11576 | rm -f conftest.err conftest.$ac_objext \ | ||
11577 | conftest$ac_exeext conftest.$ac_ext | ||
11578 | fi | ||
11579 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
11580 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | ||
11581 | if test $ac_cv_func_daemon = yes; then | ||
11582 | cat >>confdefs.h <<\_ACEOF | ||
11583 | #define HAVE_DAEMON 1 | ||
11584 | _ACEOF | ||
11585 | |||
11586 | else | ||
11587 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
11588 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | ||
11589 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
11590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11591 | else | ||
11592 | ac_check_lib_save_LIBS=$LIBS | ||
11593 | LIBS="-lbsd $LIBS" | ||
11594 | cat >conftest.$ac_ext <<_ACEOF | ||
11595 | /* confdefs.h. */ | ||
11596 | _ACEOF | ||
11597 | cat confdefs.h >>conftest.$ac_ext | ||
11598 | cat >>conftest.$ac_ext <<_ACEOF | ||
11599 | /* end confdefs.h. */ | ||
11600 | |||
11601 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11602 | #ifdef __cplusplus | ||
11603 | extern "C" | ||
11604 | #endif | ||
11605 | /* We use char because int might match the return type of a gcc2 | ||
11606 | builtin and then its argument prototype would still apply. */ | ||
11607 | char daemon (); | ||
11608 | int | ||
11609 | main () | ||
11610 | { | ||
11611 | daemon (); | ||
11612 | ; | ||
11613 | return 0; | ||
11614 | } | ||
11615 | _ACEOF | ||
11616 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11618 | (eval $ac_link) 2>conftest.er1 | ||
11619 | ac_status=$? | ||
11620 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11621 | rm -f conftest.er1 | ||
11622 | cat conftest.err >&5 | ||
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11624 | (exit $ac_status); } && | ||
11625 | { ac_try='test -z "$ac_c_werror_flag" | ||
11626 | || test ! -s conftest.err' | ||
11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11628 | (eval $ac_try) 2>&5 | ||
11629 | ac_status=$? | ||
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11631 | (exit $ac_status); }; } && | ||
11632 | { ac_try='test -s conftest$ac_exeext' | ||
11633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11634 | (eval $ac_try) 2>&5 | ||
11635 | ac_status=$? | ||
11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11637 | (exit $ac_status); }; }; then | ||
11638 | ac_cv_lib_bsd_daemon=yes | ||
11639 | else | ||
11640 | echo "$as_me: failed program was:" >&5 | ||
11641 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11642 | |||
11643 | ac_cv_lib_bsd_daemon=no | ||
11644 | fi | ||
11645 | rm -f conftest.err conftest.$ac_objext \ | ||
11646 | conftest$ac_exeext conftest.$ac_ext | ||
11647 | LIBS=$ac_check_lib_save_LIBS | ||
11648 | fi | ||
11649 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
11650 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | ||
11651 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
11652 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
11653 | #define HAVE_DAEMON 1 | ||
11654 | _ACEOF | ||
11655 | |||
11656 | fi | ||
11657 | |||
11658 | |||
11659 | fi | ||
11660 | |||
11661 | |||
11662 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
11663 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | ||
11664 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
11665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11666 | else | ||
11667 | cat >conftest.$ac_ext <<_ACEOF | ||
11668 | /* confdefs.h. */ | ||
11669 | _ACEOF | ||
11670 | cat confdefs.h >>conftest.$ac_ext | ||
11671 | cat >>conftest.$ac_ext <<_ACEOF | ||
11672 | /* end confdefs.h. */ | ||
11673 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
11674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11675 | #define getpagesize innocuous_getpagesize | ||
11676 | |||
11677 | /* System header to define __stub macros and hopefully few prototypes, | ||
11678 | which can conflict with char getpagesize (); below. | ||
11679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11680 | <limits.h> exists even on freestanding compilers. */ | ||
11681 | |||
11682 | #ifdef __STDC__ | ||
11683 | # include <limits.h> | ||
11684 | #else | ||
11685 | # include <assert.h> | ||
11686 | #endif | ||
11687 | |||
11688 | #undef getpagesize | ||
11689 | |||
11690 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11691 | #ifdef __cplusplus | ||
11692 | extern "C" | ||
11693 | { | ||
11694 | #endif | ||
11695 | /* We use char because int might match the return type of a gcc2 | ||
11696 | builtin and then its argument prototype would still apply. */ | ||
11697 | char getpagesize (); | ||
11698 | /* The GNU C library defines this for functions which it implements | ||
11699 | to always fail with ENOSYS. Some functions are actually named | ||
11700 | something starting with __ and the normal name is an alias. */ | ||
11701 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
11702 | choke me | ||
11703 | #else | ||
11704 | char (*f) () = getpagesize; | ||
11705 | #endif | ||
11706 | #ifdef __cplusplus | ||
11707 | } | ||
11708 | #endif | ||
11709 | |||
11710 | int | ||
11711 | main () | ||
11712 | { | ||
11713 | return f != getpagesize; | ||
11714 | ; | ||
11715 | return 0; | ||
11716 | } | ||
11717 | _ACEOF | ||
11718 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11720 | (eval $ac_link) 2>conftest.er1 | ||
11721 | ac_status=$? | ||
11722 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11723 | rm -f conftest.er1 | ||
11724 | cat conftest.err >&5 | ||
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11726 | (exit $ac_status); } && | ||
11727 | { ac_try='test -z "$ac_c_werror_flag" | ||
11728 | || test ! -s conftest.err' | ||
11729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11730 | (eval $ac_try) 2>&5 | ||
11731 | ac_status=$? | ||
11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11733 | (exit $ac_status); }; } && | ||
11734 | { ac_try='test -s conftest$ac_exeext' | ||
11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11736 | (eval $ac_try) 2>&5 | ||
11737 | ac_status=$? | ||
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11739 | (exit $ac_status); }; }; then | ||
11740 | ac_cv_func_getpagesize=yes | ||
11741 | else | ||
11742 | echo "$as_me: failed program was:" >&5 | ||
11743 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11744 | |||
11745 | ac_cv_func_getpagesize=no | ||
11746 | fi | ||
11747 | rm -f conftest.err conftest.$ac_objext \ | ||
11748 | conftest$ac_exeext conftest.$ac_ext | ||
11749 | fi | ||
11750 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
11751 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | ||
11752 | if test $ac_cv_func_getpagesize = yes; then | ||
11753 | cat >>confdefs.h <<\_ACEOF | ||
11754 | #define HAVE_GETPAGESIZE 1 | ||
11755 | _ACEOF | ||
11756 | |||
11757 | else | ||
11758 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
11759 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | ||
11760 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
11761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11762 | else | ||
11763 | ac_check_lib_save_LIBS=$LIBS | ||
11764 | LIBS="-lucb $LIBS" | ||
11765 | cat >conftest.$ac_ext <<_ACEOF | ||
11766 | /* confdefs.h. */ | ||
11767 | _ACEOF | ||
11768 | cat confdefs.h >>conftest.$ac_ext | ||
11769 | cat >>conftest.$ac_ext <<_ACEOF | ||
11770 | /* end confdefs.h. */ | ||
11771 | |||
11772 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
11773 | #ifdef __cplusplus | ||
11774 | extern "C" | ||
11775 | #endif | ||
11776 | /* We use char because int might match the return type of a gcc2 | ||
11777 | builtin and then its argument prototype would still apply. */ | ||
11778 | char getpagesize (); | ||
11779 | int | ||
11780 | main () | ||
11781 | { | ||
11782 | getpagesize (); | ||
11783 | ; | ||
11784 | return 0; | ||
11785 | } | ||
11786 | _ACEOF | ||
11787 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11789 | (eval $ac_link) 2>conftest.er1 | ||
11790 | ac_status=$? | ||
11791 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11792 | rm -f conftest.er1 | ||
11793 | cat conftest.err >&5 | ||
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11795 | (exit $ac_status); } && | ||
11796 | { ac_try='test -z "$ac_c_werror_flag" | ||
11797 | || test ! -s conftest.err' | ||
11798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11799 | (eval $ac_try) 2>&5 | ||
11800 | ac_status=$? | ||
11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11802 | (exit $ac_status); }; } && | ||
11803 | { ac_try='test -s conftest$ac_exeext' | ||
11804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11805 | (eval $ac_try) 2>&5 | ||
11806 | ac_status=$? | ||
11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11808 | (exit $ac_status); }; }; then | ||
11809 | ac_cv_lib_ucb_getpagesize=yes | ||
11810 | else | ||
11811 | echo "$as_me: failed program was:" >&5 | ||
11812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11813 | |||
11814 | ac_cv_lib_ucb_getpagesize=no | ||
11815 | fi | ||
11816 | rm -f conftest.err conftest.$ac_objext \ | ||
11817 | conftest$ac_exeext conftest.$ac_ext | ||
11818 | LIBS=$ac_check_lib_save_LIBS | ||
11819 | fi | ||
11820 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
11821 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | ||
11822 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
11823 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
11824 | #define HAVE_GETPAGESIZE 1 | ||
11825 | _ACEOF | ||
11826 | |||
11827 | fi | ||
11828 | |||
11829 | |||
11830 | fi | ||
11831 | |||
11832 | |||
11833 | # Check for broken snprintf | ||
11834 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
11835 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
11836 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | ||
11837 | if test "$cross_compiling" = yes; then | ||
11838 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
11839 | See \`config.log' for more details." >&5 | ||
11840 | echo "$as_me: error: cannot run test program while cross compiling | ||
11841 | See \`config.log' for more details." >&2;} | ||
11842 | { (exit 1); exit 1; }; } | ||
11843 | else | ||
11844 | cat >conftest.$ac_ext <<_ACEOF | ||
11845 | /* confdefs.h. */ | ||
11846 | _ACEOF | ||
11847 | cat confdefs.h >>conftest.$ac_ext | ||
11848 | cat >>conftest.$ac_ext <<_ACEOF | ||
11849 | /* end confdefs.h. */ | ||
11850 | |||
11851 | #include <stdio.h> | ||
11852 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
11853 | |||
11854 | _ACEOF | ||
11855 | rm -f conftest$ac_exeext | ||
11856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11857 | (eval $ac_link) 2>&5 | ||
11858 | ac_status=$? | ||
11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11862 | (eval $ac_try) 2>&5 | ||
11863 | ac_status=$? | ||
11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11865 | (exit $ac_status); }; }; then | ||
11866 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11867 | echo "${ECHO_T}yes" >&6 | ||
11868 | else | ||
11869 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11870 | echo "$as_me: failed program was:" >&5 | ||
11871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11872 | |||
11873 | ( exit $ac_status ) | ||
11874 | |||
11875 | echo "$as_me:$LINENO: result: no" >&5 | ||
11876 | echo "${ECHO_T}no" >&6 | ||
11877 | cat >>confdefs.h <<\_ACEOF | ||
11878 | #define BROKEN_SNPRINTF 1 | ||
11879 | _ACEOF | ||
11880 | |||
11881 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
11882 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
11883 | |||
11884 | |||
11885 | fi | ||
11886 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11887 | fi | ||
11888 | fi | ||
11889 | |||
11890 | # Check for missing getpeereid (or equiv) support | ||
11891 | NO_PEERCHECK="" | ||
11892 | if test "x$ac_cv_func_getpeereid" != "xyes" ; then | ||
11893 | echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
11894 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6 | ||
11895 | cat >conftest.$ac_ext <<_ACEOF | ||
11896 | /* confdefs.h. */ | ||
11897 | _ACEOF | ||
11898 | cat confdefs.h >>conftest.$ac_ext | ||
11899 | cat >>conftest.$ac_ext <<_ACEOF | ||
11900 | /* end confdefs.h. */ | ||
11901 | #include <sys/types.h> | ||
11902 | #include <sys/socket.h> | ||
11903 | int | ||
11904 | main () | ||
11905 | { | ||
11906 | int i = SO_PEERCRED; | ||
11907 | ; | ||
11908 | return 0; | ||
11909 | } | ||
11910 | _ACEOF | ||
11911 | rm -f conftest.$ac_objext | ||
11912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11913 | (eval $ac_compile) 2>conftest.er1 | ||
11914 | ac_status=$? | ||
11915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11916 | rm -f conftest.er1 | ||
11917 | cat conftest.err >&5 | ||
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11919 | (exit $ac_status); } && | ||
11920 | { ac_try='test -z "$ac_c_werror_flag" | ||
11921 | || test ! -s conftest.err' | ||
11922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11923 | (eval $ac_try) 2>&5 | ||
11924 | ac_status=$? | ||
11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11926 | (exit $ac_status); }; } && | ||
11927 | { ac_try='test -s conftest.$ac_objext' | ||
11928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11929 | (eval $ac_try) 2>&5 | ||
11930 | ac_status=$? | ||
11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11932 | (exit $ac_status); }; }; then | ||
11933 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11934 | echo "${ECHO_T}yes" >&6 | ||
11935 | else | ||
11936 | echo "$as_me: failed program was:" >&5 | ||
11937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11938 | |||
11939 | echo "$as_me:$LINENO: result: no" >&5 | ||
11940 | echo "${ECHO_T}no" >&6 | ||
11941 | NO_PEERCHECK=1 | ||
11942 | |||
11943 | fi | ||
11944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11945 | fi | ||
11946 | |||
11947 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
11948 | echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
11949 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6 | ||
11950 | if test "$cross_compiling" = yes; then | ||
11951 | |||
11952 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11953 | echo "${ECHO_T}yes" >&6 | ||
11954 | cat >>confdefs.h <<\_ACEOF | ||
11955 | #define HAVE_STRICT_MKSTEMP 1 | ||
11956 | _ACEOF | ||
11957 | |||
11958 | |||
11959 | |||
11960 | else | ||
11961 | cat >conftest.$ac_ext <<_ACEOF | ||
11962 | /* confdefs.h. */ | ||
11963 | _ACEOF | ||
11964 | cat confdefs.h >>conftest.$ac_ext | ||
11965 | cat >>conftest.$ac_ext <<_ACEOF | ||
11966 | /* end confdefs.h. */ | ||
11967 | |||
11968 | #include <stdlib.h> | ||
11969 | main() { char template[]="conftest.mkstemp-test"; | ||
11970 | if (mkstemp(template) == -1) | ||
11971 | exit(1); | ||
11972 | unlink(template); exit(0); | ||
11973 | } | ||
11974 | |||
11975 | _ACEOF | ||
11976 | rm -f conftest$ac_exeext | ||
11977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
11978 | (eval $ac_link) 2>&5 | ||
11979 | ac_status=$? | ||
11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
11983 | (eval $ac_try) 2>&5 | ||
11984 | ac_status=$? | ||
11985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11986 | (exit $ac_status); }; }; then | ||
11987 | |||
11988 | echo "$as_me:$LINENO: result: no" >&5 | ||
11989 | echo "${ECHO_T}no" >&6 | ||
11990 | |||
11991 | else | ||
11992 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11993 | echo "$as_me: failed program was:" >&5 | ||
11994 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11995 | |||
11996 | ( exit $ac_status ) | ||
11997 | |||
11998 | echo "$as_me:$LINENO: result: yes" >&5 | ||
11999 | echo "${ECHO_T}yes" >&6 | ||
12000 | cat >>confdefs.h <<\_ACEOF | ||
12001 | #define HAVE_STRICT_MKSTEMP 1 | ||
12002 | _ACEOF | ||
12003 | |||
12004 | |||
12005 | fi | ||
12006 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12007 | fi | ||
12008 | fi | ||
12009 | |||
12010 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12011 | echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
12012 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6 | ||
12013 | if test "$cross_compiling" = yes; then | ||
12014 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12015 | See \`config.log' for more details." >&5 | ||
12016 | echo "$as_me: error: cannot run test program while cross compiling | ||
12017 | See \`config.log' for more details." >&2;} | ||
12018 | { (exit 1); exit 1; }; } | ||
12019 | else | ||
12020 | cat >conftest.$ac_ext <<_ACEOF | ||
12021 | /* confdefs.h. */ | ||
12022 | _ACEOF | ||
12023 | cat confdefs.h >>conftest.$ac_ext | ||
12024 | cat >>conftest.$ac_ext <<_ACEOF | ||
12025 | /* end confdefs.h. */ | ||
12026 | |||
12027 | #include <stdio.h> | ||
12028 | #include <sys/fcntl.h> | ||
12029 | #include <sys/types.h> | ||
12030 | #include <sys/wait.h> | ||
12031 | |||
12032 | int | ||
12033 | main() | ||
12034 | { | ||
12035 | pid_t pid; | ||
12036 | int fd, ptyfd, ttyfd, status; | ||
12037 | |||
12038 | pid = fork(); | ||
12039 | if (pid < 0) { /* failed */ | ||
12040 | exit(1); | ||
12041 | } else if (pid > 0) { /* parent */ | ||
12042 | waitpid(pid, &status, 0); | ||
12043 | if (WIFEXITED(status)) | ||
12044 | exit(WEXITSTATUS(status)); | ||
12045 | else | ||
12046 | exit(2); | ||
12047 | } else { /* child */ | ||
12048 | close(0); close(1); close(2); | ||
12049 | setsid(); | ||
12050 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12051 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12052 | if (fd >= 0) | ||
12053 | exit(3); /* Acquired ctty: broken */ | ||
12054 | else | ||
12055 | exit(0); /* Did not acquire ctty: OK */ | ||
12056 | } | ||
12057 | } | ||
12058 | |||
12059 | _ACEOF | ||
12060 | rm -f conftest$ac_exeext | ||
12061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12062 | (eval $ac_link) 2>&5 | ||
12063 | ac_status=$? | ||
12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12067 | (eval $ac_try) 2>&5 | ||
12068 | ac_status=$? | ||
12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12070 | (exit $ac_status); }; }; then | ||
12071 | |||
12072 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12073 | echo "${ECHO_T}yes" >&6 | ||
12074 | |||
12075 | else | ||
12076 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12077 | echo "$as_me: failed program was:" >&5 | ||
12078 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12079 | |||
12080 | ( exit $ac_status ) | ||
12081 | |||
12082 | echo "$as_me:$LINENO: result: no" >&5 | ||
12083 | echo "${ECHO_T}no" >&6 | ||
12084 | cat >>confdefs.h <<\_ACEOF | ||
12085 | #define SSHD_ACQUIRES_CTTY 1 | ||
12086 | _ACEOF | ||
12087 | |||
12088 | |||
12089 | |||
12090 | fi | ||
12091 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12092 | fi | ||
12093 | fi | ||
12094 | |||
12095 | if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
12096 | echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
12097 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6 | ||
12098 | if test "$cross_compiling" = yes; then | ||
12099 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12100 | See \`config.log' for more details." >&5 | ||
12101 | echo "$as_me: error: cannot run test program while cross compiling | ||
12102 | See \`config.log' for more details." >&2;} | ||
12103 | { (exit 1); exit 1; }; } | ||
12104 | else | ||
12105 | cat >conftest.$ac_ext <<_ACEOF | ||
12106 | /* confdefs.h. */ | ||
12107 | _ACEOF | ||
12108 | cat confdefs.h >>conftest.$ac_ext | ||
12109 | cat >>conftest.$ac_ext <<_ACEOF | ||
12110 | /* end confdefs.h. */ | ||
12111 | |||
12112 | #include <stdio.h> | ||
12113 | #include <sys/socket.h> | ||
12114 | #include <netdb.h> | ||
12115 | #include <errno.h> | ||
12116 | #include <netinet/in.h> | ||
12117 | |||
12118 | #define TEST_PORT "2222" | ||
12119 | |||
12120 | int | ||
12121 | main(void) | ||
12122 | { | ||
12123 | int err, sock; | ||
12124 | struct addrinfo *gai_ai, *ai, hints; | ||
12125 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12126 | |||
12127 | memset(&hints, 0, sizeof(hints)); | ||
12128 | hints.ai_family = PF_UNSPEC; | ||
12129 | hints.ai_socktype = SOCK_STREAM; | ||
12130 | hints.ai_flags = AI_PASSIVE; | ||
12131 | |||
12132 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12133 | if (err != 0) { | ||
12134 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12135 | exit(1); | ||
12136 | } | ||
12137 | |||
12138 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12139 | if (ai->ai_family != AF_INET6) | ||
12140 | continue; | ||
12141 | |||
12142 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12143 | sizeof(ntop), strport, sizeof(strport), | ||
12144 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12145 | |||
12146 | if (err != 0) { | ||
12147 | if (err == EAI_SYSTEM) | ||
12148 | perror("getnameinfo EAI_SYSTEM"); | ||
12149 | else | ||
12150 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
12151 | gai_strerror(err)); | ||
12152 | exit(2); | ||
12153 | } | ||
12154 | |||
12155 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
12156 | if (sock < 0) | ||
12157 | perror("socket"); | ||
12158 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
12159 | if (errno == EBADF) | ||
12160 | exit(3); | ||
12161 | } | ||
12162 | } | ||
12163 | exit(0); | ||
12164 | } | ||
12165 | |||
12166 | _ACEOF | ||
12167 | rm -f conftest$ac_exeext | ||
12168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12169 | (eval $ac_link) 2>&5 | ||
12170 | ac_status=$? | ||
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12174 | (eval $ac_try) 2>&5 | ||
12175 | ac_status=$? | ||
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12177 | (exit $ac_status); }; }; then | ||
12178 | |||
12179 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12180 | echo "${ECHO_T}yes" >&6 | ||
12181 | |||
12182 | else | ||
12183 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12184 | echo "$as_me: failed program was:" >&5 | ||
12185 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12186 | |||
12187 | ( exit $ac_status ) | ||
12188 | |||
12189 | echo "$as_me:$LINENO: result: no" >&5 | ||
12190 | echo "${ECHO_T}no" >&6 | ||
12191 | cat >>confdefs.h <<\_ACEOF | ||
12192 | #define BROKEN_GETADDRINFO 1 | ||
12193 | _ACEOF | ||
12194 | |||
12195 | |||
12196 | |||
12197 | fi | ||
12198 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12199 | fi | ||
12200 | fi | ||
12201 | |||
12202 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
12203 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | ||
12204 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
12205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12206 | else | ||
12207 | # Use it with a single arg. | ||
12208 | cat >conftest.$ac_ext <<_ACEOF | ||
12209 | /* confdefs.h. */ | ||
12210 | _ACEOF | ||
12211 | cat confdefs.h >>conftest.$ac_ext | ||
12212 | cat >>conftest.$ac_ext <<_ACEOF | ||
12213 | /* end confdefs.h. */ | ||
12214 | $ac_includes_default | ||
12215 | int | ||
12216 | main () | ||
12217 | { | ||
12218 | getpgrp (0); | ||
12219 | ; | ||
12220 | return 0; | ||
12221 | } | ||
12222 | _ACEOF | ||
12223 | rm -f conftest.$ac_objext | ||
12224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12225 | (eval $ac_compile) 2>conftest.er1 | ||
12226 | ac_status=$? | ||
12227 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12228 | rm -f conftest.er1 | ||
12229 | cat conftest.err >&5 | ||
12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12231 | (exit $ac_status); } && | ||
12232 | { ac_try='test -z "$ac_c_werror_flag" | ||
12233 | || test ! -s conftest.err' | ||
12234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12235 | (eval $ac_try) 2>&5 | ||
12236 | ac_status=$? | ||
12237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12238 | (exit $ac_status); }; } && | ||
12239 | { ac_try='test -s conftest.$ac_objext' | ||
12240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12241 | (eval $ac_try) 2>&5 | ||
12242 | ac_status=$? | ||
12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12244 | (exit $ac_status); }; }; then | ||
12245 | ac_cv_func_getpgrp_void=no | ||
12246 | else | ||
12247 | echo "$as_me: failed program was:" >&5 | ||
12248 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12249 | |||
12250 | ac_cv_func_getpgrp_void=yes | ||
12251 | fi | ||
12252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12253 | |||
12254 | fi | ||
12255 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
12256 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | ||
12257 | if test $ac_cv_func_getpgrp_void = yes; then | ||
12258 | |||
12259 | cat >>confdefs.h <<\_ACEOF | ||
12260 | #define GETPGRP_VOID 1 | ||
12261 | _ACEOF | ||
12262 | |||
12263 | fi | ||
12264 | |||
12265 | |||
12266 | # Check for PAM libs | ||
12267 | PAM_MSG="no" | ||
12268 | |||
12269 | # Check whether --with-pam or --without-pam was given. | ||
12270 | if test "${with_pam+set}" = set; then | ||
12271 | withval="$with_pam" | ||
12272 | |||
12273 | if test "x$withval" != "xno" ; then | ||
12274 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
12275 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
12276 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
12277 | echo "$as_me: error: PAM headers not found" >&2;} | ||
12278 | { (exit 1); exit 1; }; } | ||
12279 | fi | ||
12280 | |||
12281 | |||
12282 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12283 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12284 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12286 | else | ||
12287 | ac_check_lib_save_LIBS=$LIBS | ||
12288 | LIBS="-ldl $LIBS" | ||
12289 | cat >conftest.$ac_ext <<_ACEOF | ||
12290 | /* confdefs.h. */ | ||
12291 | _ACEOF | ||
12292 | cat confdefs.h >>conftest.$ac_ext | ||
12293 | cat >>conftest.$ac_ext <<_ACEOF | ||
12294 | /* end confdefs.h. */ | ||
12295 | |||
12296 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12297 | #ifdef __cplusplus | ||
12298 | extern "C" | ||
12299 | #endif | ||
12300 | /* We use char because int might match the return type of a gcc2 | ||
12301 | builtin and then its argument prototype would still apply. */ | ||
12302 | char dlopen (); | ||
12303 | int | ||
12304 | main () | ||
12305 | { | ||
12306 | dlopen (); | ||
12307 | ; | ||
12308 | return 0; | ||
12309 | } | ||
12310 | _ACEOF | ||
12311 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12313 | (eval $ac_link) 2>conftest.er1 | ||
12314 | ac_status=$? | ||
12315 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12316 | rm -f conftest.er1 | ||
12317 | cat conftest.err >&5 | ||
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12319 | (exit $ac_status); } && | ||
12320 | { ac_try='test -z "$ac_c_werror_flag" | ||
12321 | || test ! -s conftest.err' | ||
12322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12323 | (eval $ac_try) 2>&5 | ||
12324 | ac_status=$? | ||
12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12326 | (exit $ac_status); }; } && | ||
12327 | { ac_try='test -s conftest$ac_exeext' | ||
12328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12329 | (eval $ac_try) 2>&5 | ||
12330 | ac_status=$? | ||
12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12332 | (exit $ac_status); }; }; then | ||
12333 | ac_cv_lib_dl_dlopen=yes | ||
12334 | else | ||
12335 | echo "$as_me: failed program was:" >&5 | ||
12336 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12337 | |||
12338 | ac_cv_lib_dl_dlopen=no | ||
12339 | fi | ||
12340 | rm -f conftest.err conftest.$ac_objext \ | ||
12341 | conftest$ac_exeext conftest.$ac_ext | ||
12342 | LIBS=$ac_check_lib_save_LIBS | ||
12343 | fi | ||
12344 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12345 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12346 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12347 | cat >>confdefs.h <<_ACEOF | ||
12348 | #define HAVE_LIBDL 1 | ||
12349 | _ACEOF | ||
12350 | |||
12351 | LIBS="-ldl $LIBS" | ||
12352 | |||
12353 | fi | ||
12354 | |||
12355 | |||
12356 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
12357 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | ||
12358 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
12359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12360 | else | ||
12361 | ac_check_lib_save_LIBS=$LIBS | ||
12362 | LIBS="-lpam $LIBS" | ||
12363 | cat >conftest.$ac_ext <<_ACEOF | ||
12364 | /* confdefs.h. */ | ||
12365 | _ACEOF | ||
12366 | cat confdefs.h >>conftest.$ac_ext | ||
12367 | cat >>conftest.$ac_ext <<_ACEOF | ||
12368 | /* end confdefs.h. */ | ||
12369 | |||
12370 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12371 | #ifdef __cplusplus | ||
12372 | extern "C" | ||
12373 | #endif | ||
12374 | /* We use char because int might match the return type of a gcc2 | ||
12375 | builtin and then its argument prototype would still apply. */ | ||
12376 | char pam_set_item (); | ||
12377 | int | ||
12378 | main () | ||
12379 | { | ||
12380 | pam_set_item (); | ||
12381 | ; | ||
12382 | return 0; | ||
12383 | } | ||
12384 | _ACEOF | ||
12385 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12387 | (eval $ac_link) 2>conftest.er1 | ||
12388 | ac_status=$? | ||
12389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12390 | rm -f conftest.er1 | ||
12391 | cat conftest.err >&5 | ||
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12393 | (exit $ac_status); } && | ||
12394 | { ac_try='test -z "$ac_c_werror_flag" | ||
12395 | || test ! -s conftest.err' | ||
12396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12397 | (eval $ac_try) 2>&5 | ||
12398 | ac_status=$? | ||
12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12400 | (exit $ac_status); }; } && | ||
12401 | { ac_try='test -s conftest$ac_exeext' | ||
12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12403 | (eval $ac_try) 2>&5 | ||
12404 | ac_status=$? | ||
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12406 | (exit $ac_status); }; }; then | ||
12407 | ac_cv_lib_pam_pam_set_item=yes | ||
12408 | else | ||
12409 | echo "$as_me: failed program was:" >&5 | ||
12410 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12411 | |||
12412 | ac_cv_lib_pam_pam_set_item=no | ||
12413 | fi | ||
12414 | rm -f conftest.err conftest.$ac_objext \ | ||
12415 | conftest$ac_exeext conftest.$ac_ext | ||
12416 | LIBS=$ac_check_lib_save_LIBS | ||
12417 | fi | ||
12418 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
12419 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | ||
12420 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
12421 | cat >>confdefs.h <<_ACEOF | ||
12422 | #define HAVE_LIBPAM 1 | ||
12423 | _ACEOF | ||
12424 | |||
12425 | LIBS="-lpam $LIBS" | ||
12426 | |||
12427 | else | ||
12428 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
12429 | echo "$as_me: error: *** libpam missing" >&2;} | ||
12430 | { (exit 1); exit 1; }; } | ||
12431 | fi | ||
12432 | |||
12433 | |||
12434 | for ac_func in pam_getenvlist | ||
12435 | do | ||
12436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12437 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12439 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12441 | else | ||
12442 | cat >conftest.$ac_ext <<_ACEOF | ||
12443 | /* confdefs.h. */ | ||
12444 | _ACEOF | ||
12445 | cat confdefs.h >>conftest.$ac_ext | ||
12446 | cat >>conftest.$ac_ext <<_ACEOF | ||
12447 | /* end confdefs.h. */ | ||
12448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12450 | #define $ac_func innocuous_$ac_func | ||
12451 | |||
12452 | /* System header to define __stub macros and hopefully few prototypes, | ||
12453 | which can conflict with char $ac_func (); below. | ||
12454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12455 | <limits.h> exists even on freestanding compilers. */ | ||
12456 | |||
12457 | #ifdef __STDC__ | ||
12458 | # include <limits.h> | ||
12459 | #else | ||
12460 | # include <assert.h> | ||
12461 | #endif | ||
12462 | |||
12463 | #undef $ac_func | ||
12464 | |||
12465 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12466 | #ifdef __cplusplus | ||
12467 | extern "C" | ||
12468 | { | ||
12469 | #endif | ||
12470 | /* We use char because int might match the return type of a gcc2 | ||
12471 | builtin and then its argument prototype would still apply. */ | ||
12472 | char $ac_func (); | ||
12473 | /* The GNU C library defines this for functions which it implements | ||
12474 | to always fail with ENOSYS. Some functions are actually named | ||
12475 | something starting with __ and the normal name is an alias. */ | ||
12476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12477 | choke me | ||
12478 | #else | ||
12479 | char (*f) () = $ac_func; | ||
12480 | #endif | ||
12481 | #ifdef __cplusplus | ||
12482 | } | ||
12483 | #endif | ||
12484 | |||
12485 | int | ||
12486 | main () | ||
12487 | { | ||
12488 | return f != $ac_func; | ||
12489 | ; | ||
12490 | return 0; | ||
12491 | } | ||
12492 | _ACEOF | ||
12493 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12495 | (eval $ac_link) 2>conftest.er1 | ||
12496 | ac_status=$? | ||
12497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12498 | rm -f conftest.er1 | ||
12499 | cat conftest.err >&5 | ||
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12501 | (exit $ac_status); } && | ||
12502 | { ac_try='test -z "$ac_c_werror_flag" | ||
12503 | || test ! -s conftest.err' | ||
12504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12505 | (eval $ac_try) 2>&5 | ||
12506 | ac_status=$? | ||
12507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12508 | (exit $ac_status); }; } && | ||
12509 | { ac_try='test -s conftest$ac_exeext' | ||
12510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12511 | (eval $ac_try) 2>&5 | ||
12512 | ac_status=$? | ||
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12514 | (exit $ac_status); }; }; then | ||
12515 | eval "$as_ac_var=yes" | ||
12516 | else | ||
12517 | echo "$as_me: failed program was:" >&5 | ||
12518 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12519 | |||
12520 | eval "$as_ac_var=no" | ||
12521 | fi | ||
12522 | rm -f conftest.err conftest.$ac_objext \ | ||
12523 | conftest$ac_exeext conftest.$ac_ext | ||
12524 | fi | ||
12525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12526 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12527 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12528 | cat >>confdefs.h <<_ACEOF | ||
12529 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12530 | _ACEOF | ||
12531 | |||
12532 | fi | ||
12533 | done | ||
12534 | |||
12535 | |||
12536 | for ac_func in pam_putenv | ||
12537 | do | ||
12538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
12541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
12542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12543 | else | ||
12544 | cat >conftest.$ac_ext <<_ACEOF | ||
12545 | /* confdefs.h. */ | ||
12546 | _ACEOF | ||
12547 | cat confdefs.h >>conftest.$ac_ext | ||
12548 | cat >>conftest.$ac_ext <<_ACEOF | ||
12549 | /* end confdefs.h. */ | ||
12550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12552 | #define $ac_func innocuous_$ac_func | ||
12553 | |||
12554 | /* System header to define __stub macros and hopefully few prototypes, | ||
12555 | which can conflict with char $ac_func (); below. | ||
12556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12557 | <limits.h> exists even on freestanding compilers. */ | ||
12558 | |||
12559 | #ifdef __STDC__ | ||
12560 | # include <limits.h> | ||
12561 | #else | ||
12562 | # include <assert.h> | ||
12563 | #endif | ||
12564 | |||
12565 | #undef $ac_func | ||
12566 | |||
12567 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12568 | #ifdef __cplusplus | ||
12569 | extern "C" | ||
12570 | { | ||
12571 | #endif | ||
12572 | /* We use char because int might match the return type of a gcc2 | ||
12573 | builtin and then its argument prototype would still apply. */ | ||
12574 | char $ac_func (); | ||
12575 | /* The GNU C library defines this for functions which it implements | ||
12576 | to always fail with ENOSYS. Some functions are actually named | ||
12577 | something starting with __ and the normal name is an alias. */ | ||
12578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
12579 | choke me | ||
12580 | #else | ||
12581 | char (*f) () = $ac_func; | ||
12582 | #endif | ||
12583 | #ifdef __cplusplus | ||
12584 | } | ||
12585 | #endif | ||
12586 | |||
12587 | int | ||
12588 | main () | ||
12589 | { | ||
12590 | return f != $ac_func; | ||
12591 | ; | ||
12592 | return 0; | ||
12593 | } | ||
12594 | _ACEOF | ||
12595 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12597 | (eval $ac_link) 2>conftest.er1 | ||
12598 | ac_status=$? | ||
12599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12600 | rm -f conftest.er1 | ||
12601 | cat conftest.err >&5 | ||
12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12603 | (exit $ac_status); } && | ||
12604 | { ac_try='test -z "$ac_c_werror_flag" | ||
12605 | || test ! -s conftest.err' | ||
12606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12607 | (eval $ac_try) 2>&5 | ||
12608 | ac_status=$? | ||
12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12610 | (exit $ac_status); }; } && | ||
12611 | { ac_try='test -s conftest$ac_exeext' | ||
12612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12613 | (eval $ac_try) 2>&5 | ||
12614 | ac_status=$? | ||
12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12616 | (exit $ac_status); }; }; then | ||
12617 | eval "$as_ac_var=yes" | ||
12618 | else | ||
12619 | echo "$as_me: failed program was:" >&5 | ||
12620 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12621 | |||
12622 | eval "$as_ac_var=no" | ||
12623 | fi | ||
12624 | rm -f conftest.err conftest.$ac_objext \ | ||
12625 | conftest$ac_exeext conftest.$ac_ext | ||
12626 | fi | ||
12627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
12628 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
12629 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12630 | cat >>confdefs.h <<_ACEOF | ||
12631 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12632 | _ACEOF | ||
12633 | |||
12634 | fi | ||
12635 | done | ||
12636 | |||
12637 | |||
12638 | PAM_MSG="yes" | ||
12639 | |||
12640 | cat >>confdefs.h <<\_ACEOF | ||
12641 | #define USE_PAM 1 | ||
12642 | _ACEOF | ||
12643 | |||
12644 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12645 | LIBPAM="-lpam -ldl" | ||
12646 | else | ||
12647 | LIBPAM="-lpam" | ||
12648 | fi | ||
12649 | |||
12650 | fi | ||
12651 | |||
12652 | |||
12653 | fi; | ||
12654 | |||
12655 | # Check for older PAM | ||
12656 | if test "x$PAM_MSG" = "xyes" ; then | ||
12657 | # Check PAM strerror arguments (old PAM) | ||
12658 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
12659 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | ||
12660 | cat >conftest.$ac_ext <<_ACEOF | ||
12661 | /* confdefs.h. */ | ||
12662 | _ACEOF | ||
12663 | cat confdefs.h >>conftest.$ac_ext | ||
12664 | cat >>conftest.$ac_ext <<_ACEOF | ||
12665 | /* end confdefs.h. */ | ||
12666 | |||
12667 | #include <stdlib.h> | ||
12668 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
12669 | #include <security/pam_appl.h> | ||
12670 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
12671 | #include <pam/pam_appl.h> | ||
12672 | #endif | ||
12673 | |||
12674 | int | ||
12675 | main () | ||
12676 | { | ||
12677 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
12678 | ; | ||
12679 | return 0; | ||
12680 | } | ||
12681 | _ACEOF | ||
12682 | rm -f conftest.$ac_objext | ||
12683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12684 | (eval $ac_compile) 2>conftest.er1 | ||
12685 | ac_status=$? | ||
12686 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12687 | rm -f conftest.er1 | ||
12688 | cat conftest.err >&5 | ||
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12690 | (exit $ac_status); } && | ||
12691 | { ac_try='test -z "$ac_c_werror_flag" | ||
12692 | || test ! -s conftest.err' | ||
12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12694 | (eval $ac_try) 2>&5 | ||
12695 | ac_status=$? | ||
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12697 | (exit $ac_status); }; } && | ||
12698 | { ac_try='test -s conftest.$ac_objext' | ||
12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12700 | (eval $ac_try) 2>&5 | ||
12701 | ac_status=$? | ||
12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12703 | (exit $ac_status); }; }; then | ||
12704 | echo "$as_me:$LINENO: result: no" >&5 | ||
12705 | echo "${ECHO_T}no" >&6 | ||
12706 | else | ||
12707 | echo "$as_me: failed program was:" >&5 | ||
12708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12709 | |||
12710 | |||
12711 | cat >>confdefs.h <<\_ACEOF | ||
12712 | #define HAVE_OLD_PAM 1 | ||
12713 | _ACEOF | ||
12714 | |||
12715 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12716 | echo "${ECHO_T}yes" >&6 | ||
12717 | PAM_MSG="yes (old library)" | ||
12718 | |||
12719 | |||
12720 | fi | ||
12721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12722 | fi | ||
12723 | |||
12724 | # Search for OpenSSL | ||
12725 | saved_CPPFLAGS="$CPPFLAGS" | ||
12726 | saved_LDFLAGS="$LDFLAGS" | ||
12727 | |||
12728 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
12729 | if test "${with_ssl_dir+set}" = set; then | ||
12730 | withval="$with_ssl_dir" | ||
12731 | |||
12732 | if test "x$withval" != "xno" ; then | ||
12733 | if test -d "$withval/lib"; then | ||
12734 | if test -n "${need_dash_r}"; then | ||
12735 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12736 | else | ||
12737 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12738 | fi | ||
12739 | else | ||
12740 | if test -n "${need_dash_r}"; then | ||
12741 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12742 | else | ||
12743 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12744 | fi | ||
12745 | fi | ||
12746 | if test -d "$withval/include"; then | ||
12747 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12748 | else | ||
12749 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12750 | fi | ||
12751 | fi | ||
12752 | |||
12753 | |||
12754 | fi; | ||
12755 | LIBS="-lcrypto $LIBS" | ||
12756 | cat >conftest.$ac_ext <<_ACEOF | ||
12757 | /* confdefs.h. */ | ||
12758 | _ACEOF | ||
12759 | cat confdefs.h >>conftest.$ac_ext | ||
12760 | cat >>conftest.$ac_ext <<_ACEOF | ||
12761 | /* end confdefs.h. */ | ||
12762 | |||
12763 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12764 | #ifdef __cplusplus | ||
12765 | extern "C" | ||
12766 | #endif | ||
12767 | /* We use char because int might match the return type of a gcc2 | ||
12768 | builtin and then its argument prototype would still apply. */ | ||
12769 | char RAND_add (); | ||
12770 | int | ||
12771 | main () | ||
12772 | { | ||
12773 | RAND_add (); | ||
12774 | ; | ||
12775 | return 0; | ||
12776 | } | ||
12777 | _ACEOF | ||
12778 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12780 | (eval $ac_link) 2>conftest.er1 | ||
12781 | ac_status=$? | ||
12782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12783 | rm -f conftest.er1 | ||
12784 | cat conftest.err >&5 | ||
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12786 | (exit $ac_status); } && | ||
12787 | { ac_try='test -z "$ac_c_werror_flag" | ||
12788 | || test ! -s conftest.err' | ||
12789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12790 | (eval $ac_try) 2>&5 | ||
12791 | ac_status=$? | ||
12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12793 | (exit $ac_status); }; } && | ||
12794 | { ac_try='test -s conftest$ac_exeext' | ||
12795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12796 | (eval $ac_try) 2>&5 | ||
12797 | ac_status=$? | ||
12798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12799 | (exit $ac_status); }; }; then | ||
12800 | cat >>confdefs.h <<\_ACEOF | ||
12801 | #define HAVE_OPENSSL 1 | ||
12802 | _ACEOF | ||
12803 | |||
12804 | else | ||
12805 | echo "$as_me: failed program was:" >&5 | ||
12806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12807 | |||
12808 | |||
12809 | if test -n "${need_dash_r}"; then | ||
12810 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12811 | else | ||
12812 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12813 | fi | ||
12814 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
12815 | cat >conftest.$ac_ext <<_ACEOF | ||
12816 | /* confdefs.h. */ | ||
12817 | _ACEOF | ||
12818 | cat confdefs.h >>conftest.$ac_ext | ||
12819 | cat >>conftest.$ac_ext <<_ACEOF | ||
12820 | /* end confdefs.h. */ | ||
12821 | |||
12822 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12823 | #ifdef __cplusplus | ||
12824 | extern "C" | ||
12825 | #endif | ||
12826 | /* We use char because int might match the return type of a gcc2 | ||
12827 | builtin and then its argument prototype would still apply. */ | ||
12828 | char RAND_add (); | ||
12829 | int | ||
12830 | main () | ||
12831 | { | ||
12832 | RAND_add (); | ||
12833 | ; | ||
12834 | return 0; | ||
12835 | } | ||
12836 | _ACEOF | ||
12837 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12839 | (eval $ac_link) 2>conftest.er1 | ||
12840 | ac_status=$? | ||
12841 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12842 | rm -f conftest.er1 | ||
12843 | cat conftest.err >&5 | ||
12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12845 | (exit $ac_status); } && | ||
12846 | { ac_try='test -z "$ac_c_werror_flag" | ||
12847 | || test ! -s conftest.err' | ||
12848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12849 | (eval $ac_try) 2>&5 | ||
12850 | ac_status=$? | ||
12851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12852 | (exit $ac_status); }; } && | ||
12853 | { ac_try='test -s conftest$ac_exeext' | ||
12854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12855 | (eval $ac_try) 2>&5 | ||
12856 | ac_status=$? | ||
12857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12858 | (exit $ac_status); }; }; then | ||
12859 | cat >>confdefs.h <<\_ACEOF | ||
12860 | #define HAVE_OPENSSL 1 | ||
12861 | _ACEOF | ||
12862 | |||
12863 | else | ||
12864 | echo "$as_me: failed program was:" >&5 | ||
12865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12866 | |||
12867 | |||
12868 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
12869 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
12870 | { (exit 1); exit 1; }; } | ||
12871 | |||
12872 | |||
12873 | fi | ||
12874 | rm -f conftest.err conftest.$ac_objext \ | ||
12875 | conftest$ac_exeext conftest.$ac_ext | ||
12876 | |||
12877 | |||
12878 | fi | ||
12879 | rm -f conftest.err conftest.$ac_objext \ | ||
12880 | conftest$ac_exeext conftest.$ac_ext | ||
12881 | |||
12882 | # Determine OpenSSL header version | ||
12883 | echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
12884 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6 | ||
12885 | if test "$cross_compiling" = yes; then | ||
12886 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12887 | See \`config.log' for more details." >&5 | ||
12888 | echo "$as_me: error: cannot run test program while cross compiling | ||
12889 | See \`config.log' for more details." >&2;} | ||
12890 | { (exit 1); exit 1; }; } | ||
12891 | else | ||
12892 | cat >conftest.$ac_ext <<_ACEOF | ||
12893 | /* confdefs.h. */ | ||
12894 | _ACEOF | ||
12895 | cat confdefs.h >>conftest.$ac_ext | ||
12896 | cat >>conftest.$ac_ext <<_ACEOF | ||
12897 | /* end confdefs.h. */ | ||
12898 | |||
12899 | #include <stdio.h> | ||
12900 | #include <string.h> | ||
12901 | #include <openssl/opensslv.h> | ||
12902 | #define DATA "conftest.sslincver" | ||
12903 | int main(void) { | ||
12904 | FILE *fd; | ||
12905 | int rc; | ||
12906 | |||
12907 | fd = fopen(DATA,"w"); | ||
12908 | if(fd == NULL) | ||
12909 | exit(1); | ||
12910 | |||
12911 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
12912 | exit(1); | ||
12913 | |||
12914 | exit(0); | ||
12915 | } | ||
12916 | |||
12917 | _ACEOF | ||
12918 | rm -f conftest$ac_exeext | ||
12919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12920 | (eval $ac_link) 2>&5 | ||
12921 | ac_status=$? | ||
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12923 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12925 | (eval $ac_try) 2>&5 | ||
12926 | ac_status=$? | ||
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12928 | (exit $ac_status); }; }; then | ||
12929 | |||
12930 | ssl_header_ver=`cat conftest.sslincver` | ||
12931 | echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
12932 | echo "${ECHO_T}$ssl_header_ver" >&6 | ||
12933 | |||
12934 | else | ||
12935 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12936 | echo "$as_me: failed program was:" >&5 | ||
12937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12938 | |||
12939 | ( exit $ac_status ) | ||
12940 | |||
12941 | echo "$as_me:$LINENO: result: not found" >&5 | ||
12942 | echo "${ECHO_T}not found" >&6 | ||
12943 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
12944 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
12945 | { (exit 1); exit 1; }; } | ||
12946 | |||
12947 | |||
12948 | fi | ||
12949 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12950 | fi | ||
12951 | |||
12952 | # Determine OpenSSL library version | ||
12953 | echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
12954 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6 | ||
12955 | if test "$cross_compiling" = yes; then | ||
12956 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12957 | See \`config.log' for more details." >&5 | ||
12958 | echo "$as_me: error: cannot run test program while cross compiling | ||
12959 | See \`config.log' for more details." >&2;} | ||
12960 | { (exit 1); exit 1; }; } | ||
12961 | else | ||
12962 | cat >conftest.$ac_ext <<_ACEOF | ||
12963 | /* confdefs.h. */ | ||
12964 | _ACEOF | ||
12965 | cat confdefs.h >>conftest.$ac_ext | ||
12966 | cat >>conftest.$ac_ext <<_ACEOF | ||
12967 | /* end confdefs.h. */ | ||
12968 | |||
12969 | #include <stdio.h> | ||
12970 | #include <string.h> | ||
12971 | #include <openssl/opensslv.h> | ||
12972 | #include <openssl/crypto.h> | ||
12973 | #define DATA "conftest.ssllibver" | ||
12974 | int main(void) { | ||
12975 | FILE *fd; | ||
12976 | int rc; | ||
12977 | |||
12978 | fd = fopen(DATA,"w"); | ||
12979 | if(fd == NULL) | ||
12980 | exit(1); | ||
12981 | |||
12982 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
12983 | exit(1); | ||
12984 | |||
12985 | exit(0); | ||
12986 | } | ||
12987 | |||
12988 | _ACEOF | ||
12989 | rm -f conftest$ac_exeext | ||
12990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12991 | (eval $ac_link) 2>&5 | ||
12992 | ac_status=$? | ||
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12996 | (eval $ac_try) 2>&5 | ||
12997 | ac_status=$? | ||
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12999 | (exit $ac_status); }; }; then | ||
13000 | |||
13001 | ssl_library_ver=`cat conftest.ssllibver` | ||
13002 | echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
13003 | echo "${ECHO_T}$ssl_library_ver" >&6 | ||
13004 | |||
13005 | else | ||
13006 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13007 | echo "$as_me: failed program was:" >&5 | ||
13008 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13009 | |||
13010 | ( exit $ac_status ) | ||
13011 | |||
13012 | echo "$as_me:$LINENO: result: not found" >&5 | ||
13013 | echo "${ECHO_T}not found" >&6 | ||
13014 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
13015 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
13016 | { (exit 1); exit 1; }; } | ||
13017 | |||
13018 | |||
13019 | fi | ||
13020 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13021 | fi | ||
13022 | |||
13023 | # Sanity check OpenSSL headers | ||
13024 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
13025 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | ||
13026 | if test "$cross_compiling" = yes; then | ||
13027 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13028 | See \`config.log' for more details." >&5 | ||
13029 | echo "$as_me: error: cannot run test program while cross compiling | ||
13030 | See \`config.log' for more details." >&2;} | ||
13031 | { (exit 1); exit 1; }; } | ||
13032 | else | ||
13033 | cat >conftest.$ac_ext <<_ACEOF | ||
13034 | /* confdefs.h. */ | ||
13035 | _ACEOF | ||
13036 | cat confdefs.h >>conftest.$ac_ext | ||
13037 | cat >>conftest.$ac_ext <<_ACEOF | ||
13038 | /* end confdefs.h. */ | ||
13039 | |||
13040 | #include <string.h> | ||
13041 | #include <openssl/opensslv.h> | ||
13042 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
13043 | |||
13044 | _ACEOF | ||
13045 | rm -f conftest$ac_exeext | ||
13046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13047 | (eval $ac_link) 2>&5 | ||
13048 | ac_status=$? | ||
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13052 | (eval $ac_try) 2>&5 | ||
13053 | ac_status=$? | ||
13054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13055 | (exit $ac_status); }; }; then | ||
13056 | |||
13057 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13058 | echo "${ECHO_T}yes" >&6 | ||
13059 | |||
13060 | else | ||
13061 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13062 | echo "$as_me: failed program was:" >&5 | ||
13063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13064 | |||
13065 | ( exit $ac_status ) | ||
13066 | |||
13067 | echo "$as_me:$LINENO: result: no" >&5 | ||
13068 | echo "${ECHO_T}no" >&6 | ||
13069 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. | ||
13070 | Check config.log for details. | ||
13071 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
13072 | echo "$as_me: error: Your OpenSSL headers do not match your library. | ||
13073 | Check config.log for details. | ||
13074 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
13075 | { (exit 1); exit 1; }; } | ||
13076 | |||
13077 | |||
13078 | fi | ||
13079 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13080 | fi | ||
13081 | |||
13082 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
13083 | # because the system crypt() is more featureful. | ||
13084 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
13085 | |||
13086 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
13087 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
13088 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
13089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13090 | else | ||
13091 | ac_check_lib_save_LIBS=$LIBS | ||
13092 | LIBS="-lcrypt $LIBS" | ||
13093 | cat >conftest.$ac_ext <<_ACEOF | ||
13094 | /* confdefs.h. */ | ||
13095 | _ACEOF | ||
13096 | cat confdefs.h >>conftest.$ac_ext | ||
13097 | cat >>conftest.$ac_ext <<_ACEOF | ||
13098 | /* end confdefs.h. */ | ||
13099 | |||
13100 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13101 | #ifdef __cplusplus | ||
13102 | extern "C" | ||
13103 | #endif | ||
13104 | /* We use char because int might match the return type of a gcc2 | ||
13105 | builtin and then its argument prototype would still apply. */ | ||
13106 | char crypt (); | ||
13107 | int | ||
13108 | main () | ||
13109 | { | ||
13110 | crypt (); | ||
13111 | ; | ||
13112 | return 0; | ||
13113 | } | ||
13114 | _ACEOF | ||
13115 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13117 | (eval $ac_link) 2>conftest.er1 | ||
13118 | ac_status=$? | ||
13119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13120 | rm -f conftest.er1 | ||
13121 | cat conftest.err >&5 | ||
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13123 | (exit $ac_status); } && | ||
13124 | { ac_try='test -z "$ac_c_werror_flag" | ||
13125 | || test ! -s conftest.err' | ||
13126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13127 | (eval $ac_try) 2>&5 | ||
13128 | ac_status=$? | ||
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13130 | (exit $ac_status); }; } && | ||
13131 | { ac_try='test -s conftest$ac_exeext' | ||
13132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13133 | (eval $ac_try) 2>&5 | ||
13134 | ac_status=$? | ||
13135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13136 | (exit $ac_status); }; }; then | ||
13137 | ac_cv_lib_crypt_crypt=yes | ||
13138 | else | ||
13139 | echo "$as_me: failed program was:" >&5 | ||
13140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13141 | |||
13142 | ac_cv_lib_crypt_crypt=no | ||
13143 | fi | ||
13144 | rm -f conftest.err conftest.$ac_objext \ | ||
13145 | conftest$ac_exeext conftest.$ac_ext | ||
13146 | LIBS=$ac_check_lib_save_LIBS | ||
13147 | fi | ||
13148 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13149 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
13150 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
13151 | cat >>confdefs.h <<_ACEOF | ||
13152 | #define HAVE_LIBCRYPT 1 | ||
13153 | _ACEOF | ||
13154 | |||
13155 | LIBS="-lcrypt $LIBS" | ||
13156 | |||
13157 | fi | ||
13158 | |||
13159 | fi | ||
13160 | |||
13161 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
13162 | # version in OpenSSL. | ||
13163 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
13164 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
13165 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | ||
13166 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
13167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13168 | else | ||
13169 | ac_check_lib_save_LIBS=$LIBS | ||
13170 | LIBS="-lcrypt $LIBS" | ||
13171 | cat >conftest.$ac_ext <<_ACEOF | ||
13172 | /* confdefs.h. */ | ||
13173 | _ACEOF | ||
13174 | cat confdefs.h >>conftest.$ac_ext | ||
13175 | cat >>conftest.$ac_ext <<_ACEOF | ||
13176 | /* end confdefs.h. */ | ||
13177 | |||
13178 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13179 | #ifdef __cplusplus | ||
13180 | extern "C" | ||
13181 | #endif | ||
13182 | /* We use char because int might match the return type of a gcc2 | ||
13183 | builtin and then its argument prototype would still apply. */ | ||
13184 | char crypt (); | ||
13185 | int | ||
13186 | main () | ||
13187 | { | ||
13188 | crypt (); | ||
13189 | ; | ||
13190 | return 0; | ||
13191 | } | ||
13192 | _ACEOF | ||
13193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13195 | (eval $ac_link) 2>conftest.er1 | ||
13196 | ac_status=$? | ||
13197 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13198 | rm -f conftest.er1 | ||
13199 | cat conftest.err >&5 | ||
13200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13201 | (exit $ac_status); } && | ||
13202 | { ac_try='test -z "$ac_c_werror_flag" | ||
13203 | || test ! -s conftest.err' | ||
13204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13205 | (eval $ac_try) 2>&5 | ||
13206 | ac_status=$? | ||
13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13208 | (exit $ac_status); }; } && | ||
13209 | { ac_try='test -s conftest$ac_exeext' | ||
13210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13211 | (eval $ac_try) 2>&5 | ||
13212 | ac_status=$? | ||
13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13214 | (exit $ac_status); }; }; then | ||
13215 | ac_cv_lib_crypt_crypt=yes | ||
13216 | else | ||
13217 | echo "$as_me: failed program was:" >&5 | ||
13218 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13219 | |||
13220 | ac_cv_lib_crypt_crypt=no | ||
13221 | fi | ||
13222 | rm -f conftest.err conftest.$ac_objext \ | ||
13223 | conftest$ac_exeext conftest.$ac_ext | ||
13224 | LIBS=$ac_check_lib_save_LIBS | ||
13225 | fi | ||
13226 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13227 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | ||
13228 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
13229 | LIBS="$LIBS -lcrypt" | ||
13230 | fi | ||
13231 | |||
13232 | fi | ||
13233 | |||
13234 | |||
13235 | ### Configure cryptographic random number support | ||
13236 | |||
13237 | # Check wheter OpenSSL seeds itself | ||
13238 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
13239 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | ||
13240 | if test "$cross_compiling" = yes; then | ||
13241 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
13242 | See \`config.log' for more details." >&5 | ||
13243 | echo "$as_me: error: cannot run test program while cross compiling | ||
13244 | See \`config.log' for more details." >&2;} | ||
13245 | { (exit 1); exit 1; }; } | ||
13246 | else | ||
13247 | cat >conftest.$ac_ext <<_ACEOF | ||
13248 | /* confdefs.h. */ | ||
13249 | _ACEOF | ||
13250 | cat confdefs.h >>conftest.$ac_ext | ||
13251 | cat >>conftest.$ac_ext <<_ACEOF | ||
13252 | /* end confdefs.h. */ | ||
13253 | |||
13254 | #include <string.h> | ||
13255 | #include <openssl/rand.h> | ||
13256 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
13257 | |||
13258 | _ACEOF | ||
13259 | rm -f conftest$ac_exeext | ||
13260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13261 | (eval $ac_link) 2>&5 | ||
13262 | ac_status=$? | ||
13263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
13265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13266 | (eval $ac_try) 2>&5 | ||
13267 | ac_status=$? | ||
13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13269 | (exit $ac_status); }; }; then | ||
13270 | |||
13271 | OPENSSL_SEEDS_ITSELF=yes | ||
13272 | echo "$as_me:$LINENO: result: yes" >&5 | ||
13273 | echo "${ECHO_T}yes" >&6 | ||
13274 | |||
13275 | else | ||
13276 | echo "$as_me: program exited with status $ac_status" >&5 | ||
13277 | echo "$as_me: failed program was:" >&5 | ||
13278 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13279 | |||
13280 | ( exit $ac_status ) | ||
13281 | |||
13282 | echo "$as_me:$LINENO: result: no" >&5 | ||
13283 | echo "${ECHO_T}no" >&6 | ||
13284 | # Default to use of the rand helper if OpenSSL doesn't | ||
13285 | # seed itself | ||
13286 | USE_RAND_HELPER=yes | ||
13287 | |||
13288 | |||
13289 | fi | ||
13290 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
13291 | fi | ||
13292 | |||
13293 | |||
13294 | # Do we want to force the use of the rand helper? | ||
13295 | |||
13296 | # Check whether --with-rand-helper or --without-rand-helper was given. | ||
13297 | if test "${with_rand_helper+set}" = set; then | ||
13298 | withval="$with_rand_helper" | ||
13299 | |||
13300 | if test "x$withval" = "xno" ; then | ||
13301 | # Force use of OpenSSL's internal RNG, even if | ||
13302 | # the previous test showed it to be unseeded. | ||
13303 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
13304 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
13305 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
13306 | OPENSSL_SEEDS_ITSELF=yes | ||
13307 | USE_RAND_HELPER="" | ||
13308 | fi | ||
13309 | else | ||
13310 | USE_RAND_HELPER=yes | ||
13311 | fi | ||
13312 | |||
13313 | fi; | ||
13314 | |||
13315 | # Which randomness source do we use? | ||
13316 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | ||
13317 | # OpenSSL only | ||
13318 | cat >>confdefs.h <<\_ACEOF | ||
13319 | #define OPENSSL_PRNG_ONLY 1 | ||
13320 | _ACEOF | ||
13321 | |||
13322 | RAND_MSG="OpenSSL internal ONLY" | ||
13323 | INSTALL_SSH_RAND_HELPER="" | ||
13324 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
13325 | # install rand helper | ||
13326 | RAND_MSG="ssh-rand-helper" | ||
13327 | INSTALL_SSH_RAND_HELPER="yes" | ||
13328 | fi | ||
13329 | |||
13330 | |||
13331 | ### Configuration of ssh-rand-helper | ||
13332 | |||
13333 | # PRNGD TCP socket | ||
13334 | |||
13335 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
13336 | if test "${with_prngd_port+set}" = set; then | ||
13337 | withval="$with_prngd_port" | ||
13338 | |||
13339 | case "$withval" in | ||
13340 | no) | ||
13341 | withval="" | ||
13342 | ;; | ||
13343 | [0-9]*) | ||
13344 | ;; | ||
13345 | *) | ||
13346 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
13347 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
13348 | { (exit 1); exit 1; }; } | ||
13349 | ;; | ||
13350 | esac | ||
13351 | if test ! -z "$withval" ; then | ||
13352 | PRNGD_PORT="$withval" | ||
13353 | cat >>confdefs.h <<_ACEOF | ||
13354 | #define PRNGD_PORT $PRNGD_PORT | ||
13355 | _ACEOF | ||
13356 | |||
13357 | fi | ||
13358 | |||
13359 | |||
13360 | fi; | ||
13361 | |||
13362 | # PRNGD Unix domain socket | ||
13363 | |||
13364 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
13365 | if test "${with_prngd_socket+set}" = set; then | ||
13366 | withval="$with_prngd_socket" | ||
13367 | |||
13368 | case "$withval" in | ||
13369 | yes) | ||
13370 | withval="/var/run/egd-pool" | ||
13371 | ;; | ||
13372 | no) | ||
13373 | withval="" | ||
13374 | ;; | ||
13375 | /*) | ||
13376 | ;; | ||
13377 | *) | ||
13378 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
13379 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
13380 | { (exit 1); exit 1; }; } | ||
13381 | ;; | ||
13382 | esac | ||
13383 | |||
13384 | if test ! -z "$withval" ; then | ||
13385 | if test ! -z "$PRNGD_PORT" ; then | ||
13386 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
13387 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
13388 | { (exit 1); exit 1; }; } | ||
13389 | fi | ||
13390 | if test ! -r "$withval" ; then | ||
13391 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
13392 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
13393 | fi | ||
13394 | PRNGD_SOCKET="$withval" | ||
13395 | cat >>confdefs.h <<_ACEOF | ||
13396 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13397 | _ACEOF | ||
13398 | |||
13399 | fi | ||
13400 | |||
13401 | else | ||
13402 | |||
13403 | # Check for existing socket only if we don't have a random device already | ||
13404 | if test "$USE_RAND_HELPER" = yes ; then | ||
13405 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
13406 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | ||
13407 | # Insert other locations here | ||
13408 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
13409 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
13410 | PRNGD_SOCKET="$sock" | ||
13411 | cat >>confdefs.h <<_ACEOF | ||
13412 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13413 | _ACEOF | ||
13414 | |||
13415 | break; | ||
13416 | fi | ||
13417 | done | ||
13418 | if test ! -z "$PRNGD_SOCKET" ; then | ||
13419 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
13420 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | ||
13421 | else | ||
13422 | echo "$as_me:$LINENO: result: not found" >&5 | ||
13423 | echo "${ECHO_T}not found" >&6 | ||
13424 | fi | ||
13425 | fi | ||
13426 | |||
13427 | |||
13428 | fi; | ||
13429 | |||
13430 | # Change default command timeout for hashing entropy source | ||
13431 | entropy_timeout=200 | ||
13432 | |||
13433 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
13434 | if test "${with_entropy_timeout+set}" = set; then | ||
13435 | withval="$with_entropy_timeout" | ||
13436 | |||
13437 | if test "x$withval" != "xno" ; then | ||
13438 | entropy_timeout=$withval | ||
13439 | fi | ||
13440 | |||
13441 | |||
13442 | fi; | ||
13443 | cat >>confdefs.h <<_ACEOF | ||
13444 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
13445 | _ACEOF | ||
13446 | |||
13447 | |||
13448 | SSH_PRIVSEP_USER=sshd | ||
13449 | |||
13450 | # Check whether --with-privsep-user or --without-privsep-user was given. | ||
13451 | if test "${with_privsep_user+set}" = set; then | ||
13452 | withval="$with_privsep_user" | ||
13453 | |||
13454 | if test -n "$withval"; then | ||
13455 | SSH_PRIVSEP_USER=$withval | ||
13456 | fi | ||
13457 | |||
13458 | |||
13459 | fi; | ||
13460 | cat >>confdefs.h <<_ACEOF | ||
13461 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
13462 | _ACEOF | ||
13463 | |||
13464 | |||
13465 | |||
13466 | # We do this little dance with the search path to insure | ||
13467 | # that programs that we select for use by installed programs | ||
13468 | # (which may be run by the super-user) come from trusted | ||
13469 | # locations before they come from the user's private area. | ||
13470 | # This should help avoid accidentally configuring some | ||
13471 | # random version of a program in someone's personal bin. | ||
13472 | |||
13473 | OPATH=$PATH | ||
13474 | PATH=/bin:/usr/bin | ||
13475 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
13476 | test -d /sbin && PATH=$PATH:/sbin | ||
13477 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
13478 | PATH=$PATH:/etc:$OPATH | ||
13479 | |||
13480 | # These programs are used by the command hashing source to gather entropy | ||
13481 | |||
13482 | # Extract the first word of "ls", so it can be a program name with args. | ||
13483 | set dummy ls; ac_word=$2 | ||
13484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13486 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13488 | else | ||
13489 | case $PROG_LS in | ||
13490 | [\\/]* | ?:[\\/]*) | ||
13491 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
13492 | ;; | ||
13493 | *) | ||
13494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13495 | for as_dir in $PATH | ||
13496 | do | ||
13497 | IFS=$as_save_IFS | ||
13498 | test -z "$as_dir" && as_dir=. | ||
13499 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13501 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
13502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13503 | break 2 | ||
13504 | fi | ||
13505 | done | ||
13506 | done | ||
13507 | |||
13508 | ;; | ||
13509 | esac | ||
13510 | fi | ||
13511 | PROG_LS=$ac_cv_path_PROG_LS | ||
13512 | |||
13513 | if test -n "$PROG_LS"; then | ||
13514 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
13515 | echo "${ECHO_T}$PROG_LS" >&6 | ||
13516 | else | ||
13517 | echo "$as_me:$LINENO: result: no" >&5 | ||
13518 | echo "${ECHO_T}no" >&6 | ||
13519 | fi | ||
13520 | |||
13521 | if test -z "$PROG_LS" ; then | ||
13522 | PROG_LS="undef" | ||
13523 | fi | ||
13524 | |||
13525 | |||
13526 | |||
13527 | # Extract the first word of "netstat", so it can be a program name with args. | ||
13528 | set dummy netstat; ac_word=$2 | ||
13529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13531 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
13532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13533 | else | ||
13534 | case $PROG_NETSTAT in | ||
13535 | [\\/]* | ?:[\\/]*) | ||
13536 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
13537 | ;; | ||
13538 | *) | ||
13539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13540 | for as_dir in $PATH | ||
13541 | do | ||
13542 | IFS=$as_save_IFS | ||
13543 | test -z "$as_dir" && as_dir=. | ||
13544 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13546 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
13547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13548 | break 2 | ||
13549 | fi | ||
13550 | done | ||
13551 | done | ||
13552 | |||
13553 | ;; | ||
13554 | esac | ||
13555 | fi | ||
13556 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
13557 | |||
13558 | if test -n "$PROG_NETSTAT"; then | ||
13559 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
13560 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | ||
13561 | else | ||
13562 | echo "$as_me:$LINENO: result: no" >&5 | ||
13563 | echo "${ECHO_T}no" >&6 | ||
13564 | fi | ||
13565 | |||
13566 | if test -z "$PROG_NETSTAT" ; then | ||
13567 | PROG_NETSTAT="undef" | ||
13568 | fi | ||
13569 | |||
13570 | |||
13571 | |||
13572 | # Extract the first word of "arp", so it can be a program name with args. | ||
13573 | set dummy arp; ac_word=$2 | ||
13574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13576 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
13577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13578 | else | ||
13579 | case $PROG_ARP in | ||
13580 | [\\/]* | ?:[\\/]*) | ||
13581 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
13582 | ;; | ||
13583 | *) | ||
13584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13585 | for as_dir in $PATH | ||
13586 | do | ||
13587 | IFS=$as_save_IFS | ||
13588 | test -z "$as_dir" && as_dir=. | ||
13589 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13590 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13591 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
13592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13593 | break 2 | ||
13594 | fi | ||
13595 | done | ||
13596 | done | ||
13597 | |||
13598 | ;; | ||
13599 | esac | ||
13600 | fi | ||
13601 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
13602 | |||
13603 | if test -n "$PROG_ARP"; then | ||
13604 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
13605 | echo "${ECHO_T}$PROG_ARP" >&6 | ||
13606 | else | ||
13607 | echo "$as_me:$LINENO: result: no" >&5 | ||
13608 | echo "${ECHO_T}no" >&6 | ||
13609 | fi | ||
13610 | |||
13611 | if test -z "$PROG_ARP" ; then | ||
13612 | PROG_ARP="undef" | ||
13613 | fi | ||
13614 | |||
13615 | |||
13616 | |||
13617 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
13618 | set dummy ifconfig; ac_word=$2 | ||
13619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13621 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
13622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13623 | else | ||
13624 | case $PROG_IFCONFIG in | ||
13625 | [\\/]* | ?:[\\/]*) | ||
13626 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
13627 | ;; | ||
13628 | *) | ||
13629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13630 | for as_dir in $PATH | ||
13631 | do | ||
13632 | IFS=$as_save_IFS | ||
13633 | test -z "$as_dir" && as_dir=. | ||
13634 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13636 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
13637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13638 | break 2 | ||
13639 | fi | ||
13640 | done | ||
13641 | done | ||
13642 | |||
13643 | ;; | ||
13644 | esac | ||
13645 | fi | ||
13646 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
13647 | |||
13648 | if test -n "$PROG_IFCONFIG"; then | ||
13649 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
13650 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | ||
13651 | else | ||
13652 | echo "$as_me:$LINENO: result: no" >&5 | ||
13653 | echo "${ECHO_T}no" >&6 | ||
13654 | fi | ||
13655 | |||
13656 | if test -z "$PROG_IFCONFIG" ; then | ||
13657 | PROG_IFCONFIG="undef" | ||
13658 | fi | ||
13659 | |||
13660 | |||
13661 | |||
13662 | # Extract the first word of "jstat", so it can be a program name with args. | ||
13663 | set dummy jstat; ac_word=$2 | ||
13664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13666 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
13667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13668 | else | ||
13669 | case $PROG_JSTAT in | ||
13670 | [\\/]* | ?:[\\/]*) | ||
13671 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
13672 | ;; | ||
13673 | *) | ||
13674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13675 | for as_dir in $PATH | ||
13676 | do | ||
13677 | IFS=$as_save_IFS | ||
13678 | test -z "$as_dir" && as_dir=. | ||
13679 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13681 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
13682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13683 | break 2 | ||
13684 | fi | ||
13685 | done | ||
13686 | done | ||
13687 | |||
13688 | ;; | ||
13689 | esac | ||
13690 | fi | ||
13691 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
13692 | |||
13693 | if test -n "$PROG_JSTAT"; then | ||
13694 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
13695 | echo "${ECHO_T}$PROG_JSTAT" >&6 | ||
13696 | else | ||
13697 | echo "$as_me:$LINENO: result: no" >&5 | ||
13698 | echo "${ECHO_T}no" >&6 | ||
13699 | fi | ||
13700 | |||
13701 | if test -z "$PROG_JSTAT" ; then | ||
13702 | PROG_JSTAT="undef" | ||
13703 | fi | ||
13704 | |||
13705 | |||
13706 | |||
13707 | # Extract the first word of "ps", so it can be a program name with args. | ||
13708 | set dummy ps; ac_word=$2 | ||
13709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13711 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
13712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13713 | else | ||
13714 | case $PROG_PS in | ||
13715 | [\\/]* | ?:[\\/]*) | ||
13716 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
13717 | ;; | ||
13718 | *) | ||
13719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13720 | for as_dir in $PATH | ||
13721 | do | ||
13722 | IFS=$as_save_IFS | ||
13723 | test -z "$as_dir" && as_dir=. | ||
13724 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13726 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
13727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13728 | break 2 | ||
13729 | fi | ||
13730 | done | ||
13731 | done | ||
13732 | |||
13733 | ;; | ||
13734 | esac | ||
13735 | fi | ||
13736 | PROG_PS=$ac_cv_path_PROG_PS | ||
13737 | |||
13738 | if test -n "$PROG_PS"; then | ||
13739 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
13740 | echo "${ECHO_T}$PROG_PS" >&6 | ||
13741 | else | ||
13742 | echo "$as_me:$LINENO: result: no" >&5 | ||
13743 | echo "${ECHO_T}no" >&6 | ||
13744 | fi | ||
13745 | |||
13746 | if test -z "$PROG_PS" ; then | ||
13747 | PROG_PS="undef" | ||
13748 | fi | ||
13749 | |||
13750 | |||
13751 | |||
13752 | # Extract the first word of "sar", so it can be a program name with args. | ||
13753 | set dummy sar; ac_word=$2 | ||
13754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13756 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
13757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13758 | else | ||
13759 | case $PROG_SAR in | ||
13760 | [\\/]* | ?:[\\/]*) | ||
13761 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
13762 | ;; | ||
13763 | *) | ||
13764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13765 | for as_dir in $PATH | ||
13766 | do | ||
13767 | IFS=$as_save_IFS | ||
13768 | test -z "$as_dir" && as_dir=. | ||
13769 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13771 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
13772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13773 | break 2 | ||
13774 | fi | ||
13775 | done | ||
13776 | done | ||
13777 | |||
13778 | ;; | ||
13779 | esac | ||
13780 | fi | ||
13781 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
13782 | |||
13783 | if test -n "$PROG_SAR"; then | ||
13784 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
13785 | echo "${ECHO_T}$PROG_SAR" >&6 | ||
13786 | else | ||
13787 | echo "$as_me:$LINENO: result: no" >&5 | ||
13788 | echo "${ECHO_T}no" >&6 | ||
13789 | fi | ||
13790 | |||
13791 | if test -z "$PROG_SAR" ; then | ||
13792 | PROG_SAR="undef" | ||
13793 | fi | ||
13794 | |||
13795 | |||
13796 | |||
13797 | # Extract the first word of "w", so it can be a program name with args. | ||
13798 | set dummy w; ac_word=$2 | ||
13799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13801 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13803 | else | ||
13804 | case $PROG_W in | ||
13805 | [\\/]* | ?:[\\/]*) | ||
13806 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
13807 | ;; | ||
13808 | *) | ||
13809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13810 | for as_dir in $PATH | ||
13811 | do | ||
13812 | IFS=$as_save_IFS | ||
13813 | test -z "$as_dir" && as_dir=. | ||
13814 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13816 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
13817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13818 | break 2 | ||
13819 | fi | ||
13820 | done | ||
13821 | done | ||
13822 | |||
13823 | ;; | ||
13824 | esac | ||
13825 | fi | ||
13826 | PROG_W=$ac_cv_path_PROG_W | ||
13827 | |||
13828 | if test -n "$PROG_W"; then | ||
13829 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
13830 | echo "${ECHO_T}$PROG_W" >&6 | ||
13831 | else | ||
13832 | echo "$as_me:$LINENO: result: no" >&5 | ||
13833 | echo "${ECHO_T}no" >&6 | ||
13834 | fi | ||
13835 | |||
13836 | if test -z "$PROG_W" ; then | ||
13837 | PROG_W="undef" | ||
13838 | fi | ||
13839 | |||
13840 | |||
13841 | |||
13842 | # Extract the first word of "who", so it can be a program name with args. | ||
13843 | set dummy who; ac_word=$2 | ||
13844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13846 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13848 | else | ||
13849 | case $PROG_WHO in | ||
13850 | [\\/]* | ?:[\\/]*) | ||
13851 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
13852 | ;; | ||
13853 | *) | ||
13854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13855 | for as_dir in $PATH | ||
13856 | do | ||
13857 | IFS=$as_save_IFS | ||
13858 | test -z "$as_dir" && as_dir=. | ||
13859 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13861 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
13862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13863 | break 2 | ||
13864 | fi | ||
13865 | done | ||
13866 | done | ||
13867 | |||
13868 | ;; | ||
13869 | esac | ||
13870 | fi | ||
13871 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
13872 | |||
13873 | if test -n "$PROG_WHO"; then | ||
13874 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
13875 | echo "${ECHO_T}$PROG_WHO" >&6 | ||
13876 | else | ||
13877 | echo "$as_me:$LINENO: result: no" >&5 | ||
13878 | echo "${ECHO_T}no" >&6 | ||
13879 | fi | ||
13880 | |||
13881 | if test -z "$PROG_WHO" ; then | ||
13882 | PROG_WHO="undef" | ||
13883 | fi | ||
13884 | |||
13885 | |||
13886 | |||
13887 | # Extract the first word of "last", so it can be a program name with args. | ||
13888 | set dummy last; ac_word=$2 | ||
13889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13891 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13893 | else | ||
13894 | case $PROG_LAST in | ||
13895 | [\\/]* | ?:[\\/]*) | ||
13896 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
13897 | ;; | ||
13898 | *) | ||
13899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13900 | for as_dir in $PATH | ||
13901 | do | ||
13902 | IFS=$as_save_IFS | ||
13903 | test -z "$as_dir" && as_dir=. | ||
13904 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13906 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
13907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13908 | break 2 | ||
13909 | fi | ||
13910 | done | ||
13911 | done | ||
13912 | |||
13913 | ;; | ||
13914 | esac | ||
13915 | fi | ||
13916 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
13917 | |||
13918 | if test -n "$PROG_LAST"; then | ||
13919 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
13920 | echo "${ECHO_T}$PROG_LAST" >&6 | ||
13921 | else | ||
13922 | echo "$as_me:$LINENO: result: no" >&5 | ||
13923 | echo "${ECHO_T}no" >&6 | ||
13924 | fi | ||
13925 | |||
13926 | if test -z "$PROG_LAST" ; then | ||
13927 | PROG_LAST="undef" | ||
13928 | fi | ||
13929 | |||
13930 | |||
13931 | |||
13932 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
13933 | set dummy lastlog; ac_word=$2 | ||
13934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13936 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13938 | else | ||
13939 | case $PROG_LASTLOG in | ||
13940 | [\\/]* | ?:[\\/]*) | ||
13941 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
13942 | ;; | ||
13943 | *) | ||
13944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13945 | for as_dir in $PATH | ||
13946 | do | ||
13947 | IFS=$as_save_IFS | ||
13948 | test -z "$as_dir" && as_dir=. | ||
13949 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13951 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
13952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13953 | break 2 | ||
13954 | fi | ||
13955 | done | ||
13956 | done | ||
13957 | |||
13958 | ;; | ||
13959 | esac | ||
13960 | fi | ||
13961 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
13962 | |||
13963 | if test -n "$PROG_LASTLOG"; then | ||
13964 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
13965 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | ||
13966 | else | ||
13967 | echo "$as_me:$LINENO: result: no" >&5 | ||
13968 | echo "${ECHO_T}no" >&6 | ||
13969 | fi | ||
13970 | |||
13971 | if test -z "$PROG_LASTLOG" ; then | ||
13972 | PROG_LASTLOG="undef" | ||
13973 | fi | ||
13974 | |||
13975 | |||
13976 | |||
13977 | # Extract the first word of "df", so it can be a program name with args. | ||
13978 | set dummy df; ac_word=$2 | ||
13979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
13981 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
13982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13983 | else | ||
13984 | case $PROG_DF in | ||
13985 | [\\/]* | ?:[\\/]*) | ||
13986 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
13987 | ;; | ||
13988 | *) | ||
13989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13990 | for as_dir in $PATH | ||
13991 | do | ||
13992 | IFS=$as_save_IFS | ||
13993 | test -z "$as_dir" && as_dir=. | ||
13994 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13996 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
13997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13998 | break 2 | ||
13999 | fi | ||
14000 | done | ||
14001 | done | ||
14002 | |||
14003 | ;; | ||
14004 | esac | ||
14005 | fi | ||
14006 | PROG_DF=$ac_cv_path_PROG_DF | ||
14007 | |||
14008 | if test -n "$PROG_DF"; then | ||
14009 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
14010 | echo "${ECHO_T}$PROG_DF" >&6 | ||
14011 | else | ||
14012 | echo "$as_me:$LINENO: result: no" >&5 | ||
14013 | echo "${ECHO_T}no" >&6 | ||
14014 | fi | ||
14015 | |||
14016 | if test -z "$PROG_DF" ; then | ||
14017 | PROG_DF="undef" | ||
14018 | fi | ||
14019 | |||
14020 | |||
14021 | |||
14022 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
14023 | set dummy vmstat; ac_word=$2 | ||
14024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14026 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
14027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14028 | else | ||
14029 | case $PROG_VMSTAT in | ||
14030 | [\\/]* | ?:[\\/]*) | ||
14031 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
14032 | ;; | ||
14033 | *) | ||
14034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14035 | for as_dir in $PATH | ||
14036 | do | ||
14037 | IFS=$as_save_IFS | ||
14038 | test -z "$as_dir" && as_dir=. | ||
14039 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14040 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14041 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
14042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14043 | break 2 | ||
14044 | fi | ||
14045 | done | ||
14046 | done | ||
14047 | |||
14048 | ;; | ||
14049 | esac | ||
14050 | fi | ||
14051 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
14052 | |||
14053 | if test -n "$PROG_VMSTAT"; then | ||
14054 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
14055 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | ||
14056 | else | ||
14057 | echo "$as_me:$LINENO: result: no" >&5 | ||
14058 | echo "${ECHO_T}no" >&6 | ||
14059 | fi | ||
14060 | |||
14061 | if test -z "$PROG_VMSTAT" ; then | ||
14062 | PROG_VMSTAT="undef" | ||
14063 | fi | ||
14064 | |||
14065 | |||
14066 | |||
14067 | # Extract the first word of "uptime", so it can be a program name with args. | ||
14068 | set dummy uptime; ac_word=$2 | ||
14069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14071 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14073 | else | ||
14074 | case $PROG_UPTIME in | ||
14075 | [\\/]* | ?:[\\/]*) | ||
14076 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
14077 | ;; | ||
14078 | *) | ||
14079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14080 | for as_dir in $PATH | ||
14081 | do | ||
14082 | IFS=$as_save_IFS | ||
14083 | test -z "$as_dir" && as_dir=. | ||
14084 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14086 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
14087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14088 | break 2 | ||
14089 | fi | ||
14090 | done | ||
14091 | done | ||
14092 | |||
14093 | ;; | ||
14094 | esac | ||
14095 | fi | ||
14096 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
14097 | |||
14098 | if test -n "$PROG_UPTIME"; then | ||
14099 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
14100 | echo "${ECHO_T}$PROG_UPTIME" >&6 | ||
14101 | else | ||
14102 | echo "$as_me:$LINENO: result: no" >&5 | ||
14103 | echo "${ECHO_T}no" >&6 | ||
14104 | fi | ||
14105 | |||
14106 | if test -z "$PROG_UPTIME" ; then | ||
14107 | PROG_UPTIME="undef" | ||
14108 | fi | ||
14109 | |||
14110 | |||
14111 | |||
14112 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
14113 | set dummy ipcs; ac_word=$2 | ||
14114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14116 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14118 | else | ||
14119 | case $PROG_IPCS in | ||
14120 | [\\/]* | ?:[\\/]*) | ||
14121 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
14122 | ;; | ||
14123 | *) | ||
14124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14125 | for as_dir in $PATH | ||
14126 | do | ||
14127 | IFS=$as_save_IFS | ||
14128 | test -z "$as_dir" && as_dir=. | ||
14129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14131 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
14132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14133 | break 2 | ||
14134 | fi | ||
14135 | done | ||
14136 | done | ||
14137 | |||
14138 | ;; | ||
14139 | esac | ||
14140 | fi | ||
14141 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
14142 | |||
14143 | if test -n "$PROG_IPCS"; then | ||
14144 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
14145 | echo "${ECHO_T}$PROG_IPCS" >&6 | ||
14146 | else | ||
14147 | echo "$as_me:$LINENO: result: no" >&5 | ||
14148 | echo "${ECHO_T}no" >&6 | ||
14149 | fi | ||
14150 | |||
14151 | if test -z "$PROG_IPCS" ; then | ||
14152 | PROG_IPCS="undef" | ||
14153 | fi | ||
14154 | |||
14155 | |||
14156 | |||
14157 | # Extract the first word of "tail", so it can be a program name with args. | ||
14158 | set dummy tail; ac_word=$2 | ||
14159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
14161 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
14162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14163 | else | ||
14164 | case $PROG_TAIL in | ||
14165 | [\\/]* | ?:[\\/]*) | ||
14166 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
14167 | ;; | ||
14168 | *) | ||
14169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
14170 | for as_dir in $PATH | ||
14171 | do | ||
14172 | IFS=$as_save_IFS | ||
14173 | test -z "$as_dir" && as_dir=. | ||
14174 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
14175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
14176 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
14177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
14178 | break 2 | ||
14179 | fi | ||
14180 | done | ||
14181 | done | ||
14182 | |||
14183 | ;; | ||
14184 | esac | ||
14185 | fi | ||
14186 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
14187 | |||
14188 | if test -n "$PROG_TAIL"; then | ||
14189 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
14190 | echo "${ECHO_T}$PROG_TAIL" >&6 | ||
14191 | else | ||
14192 | echo "$as_me:$LINENO: result: no" >&5 | ||
14193 | echo "${ECHO_T}no" >&6 | ||
14194 | fi | ||
14195 | |||
14196 | if test -z "$PROG_TAIL" ; then | ||
14197 | PROG_TAIL="undef" | ||
14198 | fi | ||
14199 | |||
14200 | |||
14201 | # restore PATH | ||
14202 | PATH=$OPATH | ||
14203 | |||
14204 | # Where does ssh-rand-helper get its randomness from? | ||
14205 | INSTALL_SSH_PRNG_CMDS="" | ||
14206 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
14207 | if test ! -z "$PRNGD_PORT" ; then | ||
14208 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
14209 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
14210 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
14211 | else | ||
14212 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
14213 | RAND_HELPER_CMDHASH=yes | ||
14214 | INSTALL_SSH_PRNG_CMDS="yes" | ||
14215 | fi | ||
14216 | fi | ||
14217 | |||
14218 | |||
14219 | |||
14220 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
14221 | if test ! -z "$SONY" ; then | ||
14222 | LIBS="$LIBS -liberty"; | ||
14223 | fi | ||
14224 | |||
14225 | # Checks for data types | ||
14226 | echo "$as_me:$LINENO: checking for char" >&5 | ||
14227 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | ||
14228 | if test "${ac_cv_type_char+set}" = set; then | ||
14229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14230 | else | ||
14231 | cat >conftest.$ac_ext <<_ACEOF | ||
14232 | /* confdefs.h. */ | ||
14233 | _ACEOF | ||
14234 | cat confdefs.h >>conftest.$ac_ext | ||
14235 | cat >>conftest.$ac_ext <<_ACEOF | ||
14236 | /* end confdefs.h. */ | ||
14237 | $ac_includes_default | ||
14238 | int | ||
14239 | main () | ||
14240 | { | ||
14241 | if ((char *) 0) | ||
14242 | return 0; | ||
14243 | if (sizeof (char)) | ||
14244 | return 0; | ||
14245 | ; | ||
14246 | return 0; | ||
14247 | } | ||
14248 | _ACEOF | ||
14249 | rm -f conftest.$ac_objext | ||
14250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14251 | (eval $ac_compile) 2>conftest.er1 | ||
14252 | ac_status=$? | ||
14253 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14254 | rm -f conftest.er1 | ||
14255 | cat conftest.err >&5 | ||
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14257 | (exit $ac_status); } && | ||
14258 | { ac_try='test -z "$ac_c_werror_flag" | ||
14259 | || test ! -s conftest.err' | ||
14260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14261 | (eval $ac_try) 2>&5 | ||
14262 | ac_status=$? | ||
14263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14264 | (exit $ac_status); }; } && | ||
14265 | { ac_try='test -s conftest.$ac_objext' | ||
14266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14267 | (eval $ac_try) 2>&5 | ||
14268 | ac_status=$? | ||
14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14270 | (exit $ac_status); }; }; then | ||
14271 | ac_cv_type_char=yes | ||
14272 | else | ||
14273 | echo "$as_me: failed program was:" >&5 | ||
14274 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14275 | |||
14276 | ac_cv_type_char=no | ||
14277 | fi | ||
14278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14279 | fi | ||
14280 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
14281 | echo "${ECHO_T}$ac_cv_type_char" >&6 | ||
14282 | |||
14283 | echo "$as_me:$LINENO: checking size of char" >&5 | ||
14284 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | ||
14285 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
14286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14287 | else | ||
14288 | if test "$ac_cv_type_char" = yes; then | ||
14289 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
14290 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14291 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14292 | # This bug is HP SR number 8606223364. | ||
14293 | if test "$cross_compiling" = yes; then | ||
14294 | # Depending upon the size, compute the lo and hi bounds. | ||
14295 | cat >conftest.$ac_ext <<_ACEOF | ||
14296 | /* confdefs.h. */ | ||
14297 | _ACEOF | ||
14298 | cat confdefs.h >>conftest.$ac_ext | ||
14299 | cat >>conftest.$ac_ext <<_ACEOF | ||
14300 | /* end confdefs.h. */ | ||
14301 | $ac_includes_default | ||
14302 | int | ||
14303 | main () | ||
14304 | { | ||
14305 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | ||
14306 | test_array [0] = 0 | ||
14307 | |||
14308 | ; | ||
14309 | return 0; | ||
14310 | } | ||
14311 | _ACEOF | ||
14312 | rm -f conftest.$ac_objext | ||
14313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14314 | (eval $ac_compile) 2>conftest.er1 | ||
14315 | ac_status=$? | ||
14316 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14317 | rm -f conftest.er1 | ||
14318 | cat conftest.err >&5 | ||
14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14320 | (exit $ac_status); } && | ||
14321 | { ac_try='test -z "$ac_c_werror_flag" | ||
14322 | || test ! -s conftest.err' | ||
14323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14324 | (eval $ac_try) 2>&5 | ||
14325 | ac_status=$? | ||
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14327 | (exit $ac_status); }; } && | ||
14328 | { ac_try='test -s conftest.$ac_objext' | ||
14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14330 | (eval $ac_try) 2>&5 | ||
14331 | ac_status=$? | ||
14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14333 | (exit $ac_status); }; }; then | ||
14334 | ac_lo=0 ac_mid=0 | ||
14335 | while :; do | ||
14336 | cat >conftest.$ac_ext <<_ACEOF | ||
14337 | /* confdefs.h. */ | ||
14338 | _ACEOF | ||
14339 | cat confdefs.h >>conftest.$ac_ext | ||
14340 | cat >>conftest.$ac_ext <<_ACEOF | ||
14341 | /* end confdefs.h. */ | ||
14342 | $ac_includes_default | ||
14343 | int | ||
14344 | main () | ||
14345 | { | ||
14346 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
14347 | test_array [0] = 0 | ||
14348 | |||
14349 | ; | ||
14350 | return 0; | ||
14351 | } | ||
14352 | _ACEOF | ||
14353 | rm -f conftest.$ac_objext | ||
14354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14355 | (eval $ac_compile) 2>conftest.er1 | ||
14356 | ac_status=$? | ||
14357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14358 | rm -f conftest.er1 | ||
14359 | cat conftest.err >&5 | ||
14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14361 | (exit $ac_status); } && | ||
14362 | { ac_try='test -z "$ac_c_werror_flag" | ||
14363 | || test ! -s conftest.err' | ||
14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14365 | (eval $ac_try) 2>&5 | ||
14366 | ac_status=$? | ||
14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14368 | (exit $ac_status); }; } && | ||
14369 | { ac_try='test -s conftest.$ac_objext' | ||
14370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14371 | (eval $ac_try) 2>&5 | ||
14372 | ac_status=$? | ||
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14374 | (exit $ac_status); }; }; then | ||
14375 | ac_hi=$ac_mid; break | ||
14376 | else | ||
14377 | echo "$as_me: failed program was:" >&5 | ||
14378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14379 | |||
14380 | ac_lo=`expr $ac_mid + 1` | ||
14381 | if test $ac_lo -le $ac_mid; then | ||
14382 | ac_lo= ac_hi= | ||
14383 | break | ||
14384 | fi | ||
14385 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
14386 | fi | ||
14387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14388 | done | ||
14389 | else | ||
14390 | echo "$as_me: failed program was:" >&5 | ||
14391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14392 | |||
14393 | cat >conftest.$ac_ext <<_ACEOF | ||
14394 | /* confdefs.h. */ | ||
14395 | _ACEOF | ||
14396 | cat confdefs.h >>conftest.$ac_ext | ||
14397 | cat >>conftest.$ac_ext <<_ACEOF | ||
14398 | /* end confdefs.h. */ | ||
14399 | $ac_includes_default | ||
14400 | int | ||
14401 | main () | ||
14402 | { | ||
14403 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | ||
14404 | test_array [0] = 0 | ||
14405 | |||
14406 | ; | ||
14407 | return 0; | ||
14408 | } | ||
14409 | _ACEOF | ||
14410 | rm -f conftest.$ac_objext | ||
14411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14412 | (eval $ac_compile) 2>conftest.er1 | ||
14413 | ac_status=$? | ||
14414 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14415 | rm -f conftest.er1 | ||
14416 | cat conftest.err >&5 | ||
14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14418 | (exit $ac_status); } && | ||
14419 | { ac_try='test -z "$ac_c_werror_flag" | ||
14420 | || test ! -s conftest.err' | ||
14421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14422 | (eval $ac_try) 2>&5 | ||
14423 | ac_status=$? | ||
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14425 | (exit $ac_status); }; } && | ||
14426 | { ac_try='test -s conftest.$ac_objext' | ||
14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14428 | (eval $ac_try) 2>&5 | ||
14429 | ac_status=$? | ||
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14431 | (exit $ac_status); }; }; then | ||
14432 | ac_hi=-1 ac_mid=-1 | ||
14433 | while :; do | ||
14434 | cat >conftest.$ac_ext <<_ACEOF | ||
14435 | /* confdefs.h. */ | ||
14436 | _ACEOF | ||
14437 | cat confdefs.h >>conftest.$ac_ext | ||
14438 | cat >>conftest.$ac_ext <<_ACEOF | ||
14439 | /* end confdefs.h. */ | ||
14440 | $ac_includes_default | ||
14441 | int | ||
14442 | main () | ||
14443 | { | ||
14444 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | ||
14445 | test_array [0] = 0 | ||
14446 | |||
14447 | ; | ||
14448 | return 0; | ||
14449 | } | ||
14450 | _ACEOF | ||
14451 | rm -f conftest.$ac_objext | ||
14452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14453 | (eval $ac_compile) 2>conftest.er1 | ||
14454 | ac_status=$? | ||
14455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14456 | rm -f conftest.er1 | ||
14457 | cat conftest.err >&5 | ||
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14459 | (exit $ac_status); } && | ||
14460 | { ac_try='test -z "$ac_c_werror_flag" | ||
14461 | || test ! -s conftest.err' | ||
14462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14463 | (eval $ac_try) 2>&5 | ||
14464 | ac_status=$? | ||
14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14466 | (exit $ac_status); }; } && | ||
14467 | { ac_try='test -s conftest.$ac_objext' | ||
14468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14469 | (eval $ac_try) 2>&5 | ||
14470 | ac_status=$? | ||
14471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14472 | (exit $ac_status); }; }; then | ||
14473 | ac_lo=$ac_mid; break | ||
14474 | else | ||
14475 | echo "$as_me: failed program was:" >&5 | ||
14476 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14477 | |||
14478 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
14479 | if test $ac_mid -le $ac_hi; then | ||
14480 | ac_lo= ac_hi= | ||
14481 | break | ||
14482 | fi | ||
14483 | ac_mid=`expr 2 '*' $ac_mid` | ||
14484 | fi | ||
14485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14486 | done | ||
14487 | else | ||
14488 | echo "$as_me: failed program was:" >&5 | ||
14489 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14490 | |||
14491 | ac_lo= ac_hi= | ||
14492 | fi | ||
14493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14494 | fi | ||
14495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14496 | # Binary search between lo and hi bounds. | ||
14497 | while test "x$ac_lo" != "x$ac_hi"; do | ||
14498 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
14499 | cat >conftest.$ac_ext <<_ACEOF | ||
14500 | /* confdefs.h. */ | ||
14501 | _ACEOF | ||
14502 | cat confdefs.h >>conftest.$ac_ext | ||
14503 | cat >>conftest.$ac_ext <<_ACEOF | ||
14504 | /* end confdefs.h. */ | ||
14505 | $ac_includes_default | ||
14506 | int | ||
14507 | main () | ||
14508 | { | ||
14509 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | ||
14510 | test_array [0] = 0 | ||
14511 | |||
14512 | ; | ||
14513 | return 0; | ||
14514 | } | ||
14515 | _ACEOF | ||
14516 | rm -f conftest.$ac_objext | ||
14517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14518 | (eval $ac_compile) 2>conftest.er1 | ||
14519 | ac_status=$? | ||
14520 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14521 | rm -f conftest.er1 | ||
14522 | cat conftest.err >&5 | ||
14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14524 | (exit $ac_status); } && | ||
14525 | { ac_try='test -z "$ac_c_werror_flag" | ||
14526 | || test ! -s conftest.err' | ||
14527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14528 | (eval $ac_try) 2>&5 | ||
14529 | ac_status=$? | ||
14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14531 | (exit $ac_status); }; } && | ||
14532 | { ac_try='test -s conftest.$ac_objext' | ||
14533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14534 | (eval $ac_try) 2>&5 | ||
14535 | ac_status=$? | ||
14536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14537 | (exit $ac_status); }; }; then | ||
14538 | ac_hi=$ac_mid | ||
14539 | else | ||
14540 | echo "$as_me: failed program was:" >&5 | ||
14541 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14542 | |||
14543 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
14544 | fi | ||
14545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14546 | done | ||
14547 | case $ac_lo in | ||
14548 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
14549 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
14550 | See \`config.log' for more details." >&5 | ||
14551 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
14552 | See \`config.log' for more details." >&2;} | ||
14553 | { (exit 1); exit 1; }; } ;; | ||
14554 | esac | ||
14555 | else | ||
14556 | if test "$cross_compiling" = yes; then | ||
14557 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
14558 | See \`config.log' for more details." >&5 | ||
14559 | echo "$as_me: error: cannot run test program while cross compiling | ||
14560 | See \`config.log' for more details." >&2;} | ||
14561 | { (exit 1); exit 1; }; } | ||
14562 | else | ||
14563 | cat >conftest.$ac_ext <<_ACEOF | ||
14564 | /* confdefs.h. */ | ||
14565 | _ACEOF | ||
14566 | cat confdefs.h >>conftest.$ac_ext | ||
14567 | cat >>conftest.$ac_ext <<_ACEOF | ||
14568 | /* end confdefs.h. */ | ||
14569 | $ac_includes_default | ||
14570 | long longval () { return (long) (sizeof (char)); } | ||
14571 | unsigned long ulongval () { return (long) (sizeof (char)); } | ||
14572 | #include <stdio.h> | ||
14573 | #include <stdlib.h> | ||
14574 | int | ||
14575 | main () | ||
14576 | { | ||
14577 | |||
14578 | FILE *f = fopen ("conftest.val", "w"); | ||
14579 | if (! f) | ||
14580 | exit (1); | ||
14581 | if (((long) (sizeof (char))) < 0) | ||
14582 | { | ||
14583 | long i = longval (); | ||
14584 | if (i != ((long) (sizeof (char)))) | ||
14585 | exit (1); | ||
14586 | fprintf (f, "%ld\n", i); | ||
14587 | } | ||
14588 | else | ||
14589 | { | ||
14590 | unsigned long i = ulongval (); | ||
14591 | if (i != ((long) (sizeof (char)))) | ||
14592 | exit (1); | ||
14593 | fprintf (f, "%lu\n", i); | ||
14594 | } | ||
14595 | exit (ferror (f) || fclose (f) != 0); | ||
14596 | |||
14597 | ; | ||
14598 | return 0; | ||
14599 | } | ||
14600 | _ACEOF | ||
14601 | rm -f conftest$ac_exeext | ||
14602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14603 | (eval $ac_link) 2>&5 | ||
14604 | ac_status=$? | ||
14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14608 | (eval $ac_try) 2>&5 | ||
14609 | ac_status=$? | ||
14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14611 | (exit $ac_status); }; }; then | ||
14612 | ac_cv_sizeof_char=`cat conftest.val` | ||
14613 | else | ||
14614 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14615 | echo "$as_me: failed program was:" >&5 | ||
14616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14617 | |||
14618 | ( exit $ac_status ) | ||
14619 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | ||
14620 | See \`config.log' for more details." >&5 | ||
14621 | echo "$as_me: error: cannot compute sizeof (char), 77 | ||
14622 | See \`config.log' for more details." >&2;} | ||
14623 | { (exit 1); exit 1; }; } | ||
14624 | fi | ||
14625 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14626 | fi | ||
14627 | fi | ||
14628 | rm -f conftest.val | ||
14629 | else | ||
14630 | ac_cv_sizeof_char=0 | ||
14631 | fi | ||
14632 | fi | ||
14633 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
14634 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | ||
14635 | cat >>confdefs.h <<_ACEOF | ||
14636 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
14637 | _ACEOF | ||
14638 | |||
14639 | |||
14640 | echo "$as_me:$LINENO: checking for short int" >&5 | ||
14641 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | ||
14642 | if test "${ac_cv_type_short_int+set}" = set; then | ||
14643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14644 | else | ||
14645 | cat >conftest.$ac_ext <<_ACEOF | ||
14646 | /* confdefs.h. */ | ||
14647 | _ACEOF | ||
14648 | cat confdefs.h >>conftest.$ac_ext | ||
14649 | cat >>conftest.$ac_ext <<_ACEOF | ||
14650 | /* end confdefs.h. */ | ||
14651 | $ac_includes_default | ||
14652 | int | ||
14653 | main () | ||
14654 | { | ||
14655 | if ((short int *) 0) | ||
14656 | return 0; | ||
14657 | if (sizeof (short int)) | ||
14658 | return 0; | ||
14659 | ; | ||
14660 | return 0; | ||
14661 | } | ||
14662 | _ACEOF | ||
14663 | rm -f conftest.$ac_objext | ||
14664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14665 | (eval $ac_compile) 2>conftest.er1 | ||
14666 | ac_status=$? | ||
14667 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14668 | rm -f conftest.er1 | ||
14669 | cat conftest.err >&5 | ||
14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14671 | (exit $ac_status); } && | ||
14672 | { ac_try='test -z "$ac_c_werror_flag" | ||
14673 | || test ! -s conftest.err' | ||
14674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14675 | (eval $ac_try) 2>&5 | ||
14676 | ac_status=$? | ||
14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14678 | (exit $ac_status); }; } && | ||
14679 | { ac_try='test -s conftest.$ac_objext' | ||
14680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14681 | (eval $ac_try) 2>&5 | ||
14682 | ac_status=$? | ||
14683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14684 | (exit $ac_status); }; }; then | ||
14685 | ac_cv_type_short_int=yes | ||
14686 | else | ||
14687 | echo "$as_me: failed program was:" >&5 | ||
14688 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14689 | |||
14690 | ac_cv_type_short_int=no | ||
14691 | fi | ||
14692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14693 | fi | ||
14694 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
14695 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | ||
14696 | |||
14697 | echo "$as_me:$LINENO: checking size of short int" >&5 | ||
14698 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | ||
14699 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
14700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14701 | else | ||
14702 | if test "$ac_cv_type_short_int" = yes; then | ||
14703 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
14704 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14705 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14706 | # This bug is HP SR number 8606223364. | ||
14707 | if test "$cross_compiling" = yes; then | ||
14708 | # Depending upon the size, compute the lo and hi bounds. | ||
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 | $ac_includes_default | ||
14716 | int | ||
14717 | main () | ||
14718 | { | ||
14719 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)]; | ||
14720 | test_array [0] = 0 | ||
14721 | |||
14722 | ; | ||
14723 | return 0; | ||
14724 | } | ||
14725 | _ACEOF | ||
14726 | rm -f conftest.$ac_objext | ||
14727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14728 | (eval $ac_compile) 2>conftest.er1 | ||
14729 | ac_status=$? | ||
14730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14731 | rm -f conftest.er1 | ||
14732 | cat conftest.err >&5 | ||
14733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14734 | (exit $ac_status); } && | ||
14735 | { ac_try='test -z "$ac_c_werror_flag" | ||
14736 | || test ! -s conftest.err' | ||
14737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14738 | (eval $ac_try) 2>&5 | ||
14739 | ac_status=$? | ||
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14741 | (exit $ac_status); }; } && | ||
14742 | { ac_try='test -s conftest.$ac_objext' | ||
14743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14744 | (eval $ac_try) 2>&5 | ||
14745 | ac_status=$? | ||
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14747 | (exit $ac_status); }; }; then | ||
14748 | ac_lo=0 ac_mid=0 | ||
14749 | while :; do | ||
14750 | cat >conftest.$ac_ext <<_ACEOF | ||
14751 | /* confdefs.h. */ | ||
14752 | _ACEOF | ||
14753 | cat confdefs.h >>conftest.$ac_ext | ||
14754 | cat >>conftest.$ac_ext <<_ACEOF | ||
14755 | /* end confdefs.h. */ | ||
14756 | $ac_includes_default | ||
14757 | int | ||
14758 | main () | ||
14759 | { | ||
14760 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
14761 | test_array [0] = 0 | ||
14762 | |||
14763 | ; | ||
14764 | return 0; | ||
14765 | } | ||
14766 | _ACEOF | ||
14767 | rm -f conftest.$ac_objext | ||
14768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14769 | (eval $ac_compile) 2>conftest.er1 | ||
14770 | ac_status=$? | ||
14771 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14772 | rm -f conftest.er1 | ||
14773 | cat conftest.err >&5 | ||
14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14775 | (exit $ac_status); } && | ||
14776 | { ac_try='test -z "$ac_c_werror_flag" | ||
14777 | || test ! -s conftest.err' | ||
14778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14779 | (eval $ac_try) 2>&5 | ||
14780 | ac_status=$? | ||
14781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14782 | (exit $ac_status); }; } && | ||
14783 | { ac_try='test -s conftest.$ac_objext' | ||
14784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14785 | (eval $ac_try) 2>&5 | ||
14786 | ac_status=$? | ||
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14788 | (exit $ac_status); }; }; then | ||
14789 | ac_hi=$ac_mid; break | ||
14790 | else | ||
14791 | echo "$as_me: failed program was:" >&5 | ||
14792 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14793 | |||
14794 | ac_lo=`expr $ac_mid + 1` | ||
14795 | if test $ac_lo -le $ac_mid; then | ||
14796 | ac_lo= ac_hi= | ||
14797 | break | ||
14798 | fi | ||
14799 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
14800 | fi | ||
14801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14802 | done | ||
14803 | else | ||
14804 | echo "$as_me: failed program was:" >&5 | ||
14805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14806 | |||
14807 | cat >conftest.$ac_ext <<_ACEOF | ||
14808 | /* confdefs.h. */ | ||
14809 | _ACEOF | ||
14810 | cat confdefs.h >>conftest.$ac_ext | ||
14811 | cat >>conftest.$ac_ext <<_ACEOF | ||
14812 | /* end confdefs.h. */ | ||
14813 | $ac_includes_default | ||
14814 | int | ||
14815 | main () | ||
14816 | { | ||
14817 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)]; | ||
14818 | test_array [0] = 0 | ||
14819 | |||
14820 | ; | ||
14821 | return 0; | ||
14822 | } | ||
14823 | _ACEOF | ||
14824 | rm -f conftest.$ac_objext | ||
14825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14826 | (eval $ac_compile) 2>conftest.er1 | ||
14827 | ac_status=$? | ||
14828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14829 | rm -f conftest.er1 | ||
14830 | cat conftest.err >&5 | ||
14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14832 | (exit $ac_status); } && | ||
14833 | { ac_try='test -z "$ac_c_werror_flag" | ||
14834 | || test ! -s conftest.err' | ||
14835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14836 | (eval $ac_try) 2>&5 | ||
14837 | ac_status=$? | ||
14838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14839 | (exit $ac_status); }; } && | ||
14840 | { ac_try='test -s conftest.$ac_objext' | ||
14841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14842 | (eval $ac_try) 2>&5 | ||
14843 | ac_status=$? | ||
14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14845 | (exit $ac_status); }; }; then | ||
14846 | ac_hi=-1 ac_mid=-1 | ||
14847 | while :; do | ||
14848 | cat >conftest.$ac_ext <<_ACEOF | ||
14849 | /* confdefs.h. */ | ||
14850 | _ACEOF | ||
14851 | cat confdefs.h >>conftest.$ac_ext | ||
14852 | cat >>conftest.$ac_ext <<_ACEOF | ||
14853 | /* end confdefs.h. */ | ||
14854 | $ac_includes_default | ||
14855 | int | ||
14856 | main () | ||
14857 | { | ||
14858 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)]; | ||
14859 | test_array [0] = 0 | ||
14860 | |||
14861 | ; | ||
14862 | return 0; | ||
14863 | } | ||
14864 | _ACEOF | ||
14865 | rm -f conftest.$ac_objext | ||
14866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14867 | (eval $ac_compile) 2>conftest.er1 | ||
14868 | ac_status=$? | ||
14869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14870 | rm -f conftest.er1 | ||
14871 | cat conftest.err >&5 | ||
14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14873 | (exit $ac_status); } && | ||
14874 | { ac_try='test -z "$ac_c_werror_flag" | ||
14875 | || test ! -s conftest.err' | ||
14876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14877 | (eval $ac_try) 2>&5 | ||
14878 | ac_status=$? | ||
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14880 | (exit $ac_status); }; } && | ||
14881 | { ac_try='test -s conftest.$ac_objext' | ||
14882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14883 | (eval $ac_try) 2>&5 | ||
14884 | ac_status=$? | ||
14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14886 | (exit $ac_status); }; }; then | ||
14887 | ac_lo=$ac_mid; break | ||
14888 | else | ||
14889 | echo "$as_me: failed program was:" >&5 | ||
14890 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14891 | |||
14892 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
14893 | if test $ac_mid -le $ac_hi; then | ||
14894 | ac_lo= ac_hi= | ||
14895 | break | ||
14896 | fi | ||
14897 | ac_mid=`expr 2 '*' $ac_mid` | ||
14898 | fi | ||
14899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14900 | done | ||
14901 | else | ||
14902 | echo "$as_me: failed program was:" >&5 | ||
14903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14904 | |||
14905 | ac_lo= ac_hi= | ||
14906 | fi | ||
14907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14908 | fi | ||
14909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14910 | # Binary search between lo and hi bounds. | ||
14911 | while test "x$ac_lo" != "x$ac_hi"; do | ||
14912 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
14913 | cat >conftest.$ac_ext <<_ACEOF | ||
14914 | /* confdefs.h. */ | ||
14915 | _ACEOF | ||
14916 | cat confdefs.h >>conftest.$ac_ext | ||
14917 | cat >>conftest.$ac_ext <<_ACEOF | ||
14918 | /* end confdefs.h. */ | ||
14919 | $ac_includes_default | ||
14920 | int | ||
14921 | main () | ||
14922 | { | ||
14923 | static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)]; | ||
14924 | test_array [0] = 0 | ||
14925 | |||
14926 | ; | ||
14927 | return 0; | ||
14928 | } | ||
14929 | _ACEOF | ||
14930 | rm -f conftest.$ac_objext | ||
14931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14932 | (eval $ac_compile) 2>conftest.er1 | ||
14933 | ac_status=$? | ||
14934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14935 | rm -f conftest.er1 | ||
14936 | cat conftest.err >&5 | ||
14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14938 | (exit $ac_status); } && | ||
14939 | { ac_try='test -z "$ac_c_werror_flag" | ||
14940 | || test ! -s conftest.err' | ||
14941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14942 | (eval $ac_try) 2>&5 | ||
14943 | ac_status=$? | ||
14944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14945 | (exit $ac_status); }; } && | ||
14946 | { ac_try='test -s conftest.$ac_objext' | ||
14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14948 | (eval $ac_try) 2>&5 | ||
14949 | ac_status=$? | ||
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14951 | (exit $ac_status); }; }; then | ||
14952 | ac_hi=$ac_mid | ||
14953 | else | ||
14954 | echo "$as_me: failed program was:" >&5 | ||
14955 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14956 | |||
14957 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
14958 | fi | ||
14959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14960 | done | ||
14961 | case $ac_lo in | ||
14962 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
14963 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
14964 | See \`config.log' for more details." >&5 | ||
14965 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
14966 | See \`config.log' for more details." >&2;} | ||
14967 | { (exit 1); exit 1; }; } ;; | ||
14968 | esac | ||
14969 | else | ||
14970 | if test "$cross_compiling" = yes; then | ||
14971 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
14972 | See \`config.log' for more details." >&5 | ||
14973 | echo "$as_me: error: cannot run test program while cross compiling | ||
14974 | See \`config.log' for more details." >&2;} | ||
14975 | { (exit 1); exit 1; }; } | ||
14976 | else | ||
14977 | cat >conftest.$ac_ext <<_ACEOF | ||
14978 | /* confdefs.h. */ | ||
14979 | _ACEOF | ||
14980 | cat confdefs.h >>conftest.$ac_ext | ||
14981 | cat >>conftest.$ac_ext <<_ACEOF | ||
14982 | /* end confdefs.h. */ | ||
14983 | $ac_includes_default | ||
14984 | long longval () { return (long) (sizeof (short int)); } | ||
14985 | unsigned long ulongval () { return (long) (sizeof (short int)); } | ||
14986 | #include <stdio.h> | ||
14987 | #include <stdlib.h> | ||
14988 | int | ||
14989 | main () | ||
14990 | { | ||
14991 | |||
14992 | FILE *f = fopen ("conftest.val", "w"); | ||
14993 | if (! f) | ||
14994 | exit (1); | ||
14995 | if (((long) (sizeof (short int))) < 0) | ||
14996 | { | ||
14997 | long i = longval (); | ||
14998 | if (i != ((long) (sizeof (short int)))) | ||
14999 | exit (1); | ||
15000 | fprintf (f, "%ld\n", i); | ||
15001 | } | ||
15002 | else | ||
15003 | { | ||
15004 | unsigned long i = ulongval (); | ||
15005 | if (i != ((long) (sizeof (short int)))) | ||
15006 | exit (1); | ||
15007 | fprintf (f, "%lu\n", i); | ||
15008 | } | ||
15009 | exit (ferror (f) || fclose (f) != 0); | ||
15010 | |||
15011 | ; | ||
15012 | return 0; | ||
15013 | } | ||
15014 | _ACEOF | ||
15015 | rm -f conftest$ac_exeext | ||
15016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15017 | (eval $ac_link) 2>&5 | ||
15018 | ac_status=$? | ||
15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15020 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15022 | (eval $ac_try) 2>&5 | ||
15023 | ac_status=$? | ||
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15025 | (exit $ac_status); }; }; then | ||
15026 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
15027 | else | ||
15028 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15029 | echo "$as_me: failed program was:" >&5 | ||
15030 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15031 | |||
15032 | ( exit $ac_status ) | ||
15033 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77 | ||
15034 | See \`config.log' for more details." >&5 | ||
15035 | echo "$as_me: error: cannot compute sizeof (short int), 77 | ||
15036 | See \`config.log' for more details." >&2;} | ||
15037 | { (exit 1); exit 1; }; } | ||
15038 | fi | ||
15039 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15040 | fi | ||
15041 | fi | ||
15042 | rm -f conftest.val | ||
15043 | else | ||
15044 | ac_cv_sizeof_short_int=0 | ||
15045 | fi | ||
15046 | fi | ||
15047 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
15048 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | ||
15049 | cat >>confdefs.h <<_ACEOF | ||
15050 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
15051 | _ACEOF | ||
15052 | |||
15053 | |||
15054 | echo "$as_me:$LINENO: checking for int" >&5 | ||
15055 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | ||
15056 | if test "${ac_cv_type_int+set}" = set; then | ||
15057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15058 | else | ||
15059 | cat >conftest.$ac_ext <<_ACEOF | ||
15060 | /* confdefs.h. */ | ||
15061 | _ACEOF | ||
15062 | cat confdefs.h >>conftest.$ac_ext | ||
15063 | cat >>conftest.$ac_ext <<_ACEOF | ||
15064 | /* end confdefs.h. */ | ||
15065 | $ac_includes_default | ||
15066 | int | ||
15067 | main () | ||
15068 | { | ||
15069 | if ((int *) 0) | ||
15070 | return 0; | ||
15071 | if (sizeof (int)) | ||
15072 | return 0; | ||
15073 | ; | ||
15074 | return 0; | ||
15075 | } | ||
15076 | _ACEOF | ||
15077 | rm -f conftest.$ac_objext | ||
15078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15079 | (eval $ac_compile) 2>conftest.er1 | ||
15080 | ac_status=$? | ||
15081 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15082 | rm -f conftest.er1 | ||
15083 | cat conftest.err >&5 | ||
15084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15085 | (exit $ac_status); } && | ||
15086 | { ac_try='test -z "$ac_c_werror_flag" | ||
15087 | || test ! -s conftest.err' | ||
15088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15089 | (eval $ac_try) 2>&5 | ||
15090 | ac_status=$? | ||
15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15092 | (exit $ac_status); }; } && | ||
15093 | { ac_try='test -s conftest.$ac_objext' | ||
15094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15095 | (eval $ac_try) 2>&5 | ||
15096 | ac_status=$? | ||
15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15098 | (exit $ac_status); }; }; then | ||
15099 | ac_cv_type_int=yes | ||
15100 | else | ||
15101 | echo "$as_me: failed program was:" >&5 | ||
15102 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15103 | |||
15104 | ac_cv_type_int=no | ||
15105 | fi | ||
15106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15107 | fi | ||
15108 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
15109 | echo "${ECHO_T}$ac_cv_type_int" >&6 | ||
15110 | |||
15111 | echo "$as_me:$LINENO: checking size of int" >&5 | ||
15112 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | ||
15113 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
15114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15115 | else | ||
15116 | if test "$ac_cv_type_int" = yes; then | ||
15117 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15118 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15119 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15120 | # This bug is HP SR number 8606223364. | ||
15121 | if test "$cross_compiling" = yes; then | ||
15122 | # Depending upon the size, compute the lo and hi bounds. | ||
15123 | cat >conftest.$ac_ext <<_ACEOF | ||
15124 | /* confdefs.h. */ | ||
15125 | _ACEOF | ||
15126 | cat confdefs.h >>conftest.$ac_ext | ||
15127 | cat >>conftest.$ac_ext <<_ACEOF | ||
15128 | /* end confdefs.h. */ | ||
15129 | $ac_includes_default | ||
15130 | int | ||
15131 | main () | ||
15132 | { | ||
15133 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | ||
15134 | test_array [0] = 0 | ||
15135 | |||
15136 | ; | ||
15137 | return 0; | ||
15138 | } | ||
15139 | _ACEOF | ||
15140 | rm -f conftest.$ac_objext | ||
15141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15142 | (eval $ac_compile) 2>conftest.er1 | ||
15143 | ac_status=$? | ||
15144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15145 | rm -f conftest.er1 | ||
15146 | cat conftest.err >&5 | ||
15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15148 | (exit $ac_status); } && | ||
15149 | { ac_try='test -z "$ac_c_werror_flag" | ||
15150 | || test ! -s conftest.err' | ||
15151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15152 | (eval $ac_try) 2>&5 | ||
15153 | ac_status=$? | ||
15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15155 | (exit $ac_status); }; } && | ||
15156 | { ac_try='test -s conftest.$ac_objext' | ||
15157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15158 | (eval $ac_try) 2>&5 | ||
15159 | ac_status=$? | ||
15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15161 | (exit $ac_status); }; }; then | ||
15162 | ac_lo=0 ac_mid=0 | ||
15163 | while :; do | ||
15164 | cat >conftest.$ac_ext <<_ACEOF | ||
15165 | /* confdefs.h. */ | ||
15166 | _ACEOF | ||
15167 | cat confdefs.h >>conftest.$ac_ext | ||
15168 | cat >>conftest.$ac_ext <<_ACEOF | ||
15169 | /* end confdefs.h. */ | ||
15170 | $ac_includes_default | ||
15171 | int | ||
15172 | main () | ||
15173 | { | ||
15174 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
15175 | test_array [0] = 0 | ||
15176 | |||
15177 | ; | ||
15178 | return 0; | ||
15179 | } | ||
15180 | _ACEOF | ||
15181 | rm -f conftest.$ac_objext | ||
15182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15183 | (eval $ac_compile) 2>conftest.er1 | ||
15184 | ac_status=$? | ||
15185 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15186 | rm -f conftest.er1 | ||
15187 | cat conftest.err >&5 | ||
15188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15189 | (exit $ac_status); } && | ||
15190 | { ac_try='test -z "$ac_c_werror_flag" | ||
15191 | || test ! -s conftest.err' | ||
15192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15193 | (eval $ac_try) 2>&5 | ||
15194 | ac_status=$? | ||
15195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15196 | (exit $ac_status); }; } && | ||
15197 | { ac_try='test -s conftest.$ac_objext' | ||
15198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15199 | (eval $ac_try) 2>&5 | ||
15200 | ac_status=$? | ||
15201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15202 | (exit $ac_status); }; }; then | ||
15203 | ac_hi=$ac_mid; break | ||
15204 | else | ||
15205 | echo "$as_me: failed program was:" >&5 | ||
15206 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15207 | |||
15208 | ac_lo=`expr $ac_mid + 1` | ||
15209 | if test $ac_lo -le $ac_mid; then | ||
15210 | ac_lo= ac_hi= | ||
15211 | break | ||
15212 | fi | ||
15213 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15214 | fi | ||
15215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15216 | done | ||
15217 | else | ||
15218 | echo "$as_me: failed program was:" >&5 | ||
15219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15220 | |||
15221 | cat >conftest.$ac_ext <<_ACEOF | ||
15222 | /* confdefs.h. */ | ||
15223 | _ACEOF | ||
15224 | cat confdefs.h >>conftest.$ac_ext | ||
15225 | cat >>conftest.$ac_ext <<_ACEOF | ||
15226 | /* end confdefs.h. */ | ||
15227 | $ac_includes_default | ||
15228 | int | ||
15229 | main () | ||
15230 | { | ||
15231 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | ||
15232 | test_array [0] = 0 | ||
15233 | |||
15234 | ; | ||
15235 | return 0; | ||
15236 | } | ||
15237 | _ACEOF | ||
15238 | rm -f conftest.$ac_objext | ||
15239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15240 | (eval $ac_compile) 2>conftest.er1 | ||
15241 | ac_status=$? | ||
15242 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15243 | rm -f conftest.er1 | ||
15244 | cat conftest.err >&5 | ||
15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15246 | (exit $ac_status); } && | ||
15247 | { ac_try='test -z "$ac_c_werror_flag" | ||
15248 | || test ! -s conftest.err' | ||
15249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15250 | (eval $ac_try) 2>&5 | ||
15251 | ac_status=$? | ||
15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15253 | (exit $ac_status); }; } && | ||
15254 | { ac_try='test -s conftest.$ac_objext' | ||
15255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15256 | (eval $ac_try) 2>&5 | ||
15257 | ac_status=$? | ||
15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15259 | (exit $ac_status); }; }; then | ||
15260 | ac_hi=-1 ac_mid=-1 | ||
15261 | while :; do | ||
15262 | cat >conftest.$ac_ext <<_ACEOF | ||
15263 | /* confdefs.h. */ | ||
15264 | _ACEOF | ||
15265 | cat confdefs.h >>conftest.$ac_ext | ||
15266 | cat >>conftest.$ac_ext <<_ACEOF | ||
15267 | /* end confdefs.h. */ | ||
15268 | $ac_includes_default | ||
15269 | int | ||
15270 | main () | ||
15271 | { | ||
15272 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | ||
15273 | test_array [0] = 0 | ||
15274 | |||
15275 | ; | ||
15276 | return 0; | ||
15277 | } | ||
15278 | _ACEOF | ||
15279 | rm -f conftest.$ac_objext | ||
15280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15281 | (eval $ac_compile) 2>conftest.er1 | ||
15282 | ac_status=$? | ||
15283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15284 | rm -f conftest.er1 | ||
15285 | cat conftest.err >&5 | ||
15286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15287 | (exit $ac_status); } && | ||
15288 | { ac_try='test -z "$ac_c_werror_flag" | ||
15289 | || test ! -s conftest.err' | ||
15290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15291 | (eval $ac_try) 2>&5 | ||
15292 | ac_status=$? | ||
15293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15294 | (exit $ac_status); }; } && | ||
15295 | { ac_try='test -s conftest.$ac_objext' | ||
15296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15297 | (eval $ac_try) 2>&5 | ||
15298 | ac_status=$? | ||
15299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15300 | (exit $ac_status); }; }; then | ||
15301 | ac_lo=$ac_mid; break | ||
15302 | else | ||
15303 | echo "$as_me: failed program was:" >&5 | ||
15304 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15305 | |||
15306 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15307 | if test $ac_mid -le $ac_hi; then | ||
15308 | ac_lo= ac_hi= | ||
15309 | break | ||
15310 | fi | ||
15311 | ac_mid=`expr 2 '*' $ac_mid` | ||
15312 | fi | ||
15313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15314 | done | ||
15315 | else | ||
15316 | echo "$as_me: failed program was:" >&5 | ||
15317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15318 | |||
15319 | ac_lo= ac_hi= | ||
15320 | fi | ||
15321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15322 | fi | ||
15323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15324 | # Binary search between lo and hi bounds. | ||
15325 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15326 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15327 | cat >conftest.$ac_ext <<_ACEOF | ||
15328 | /* confdefs.h. */ | ||
15329 | _ACEOF | ||
15330 | cat confdefs.h >>conftest.$ac_ext | ||
15331 | cat >>conftest.$ac_ext <<_ACEOF | ||
15332 | /* end confdefs.h. */ | ||
15333 | $ac_includes_default | ||
15334 | int | ||
15335 | main () | ||
15336 | { | ||
15337 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | ||
15338 | test_array [0] = 0 | ||
15339 | |||
15340 | ; | ||
15341 | return 0; | ||
15342 | } | ||
15343 | _ACEOF | ||
15344 | rm -f conftest.$ac_objext | ||
15345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15346 | (eval $ac_compile) 2>conftest.er1 | ||
15347 | ac_status=$? | ||
15348 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15349 | rm -f conftest.er1 | ||
15350 | cat conftest.err >&5 | ||
15351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15352 | (exit $ac_status); } && | ||
15353 | { ac_try='test -z "$ac_c_werror_flag" | ||
15354 | || test ! -s conftest.err' | ||
15355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15356 | (eval $ac_try) 2>&5 | ||
15357 | ac_status=$? | ||
15358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15359 | (exit $ac_status); }; } && | ||
15360 | { ac_try='test -s conftest.$ac_objext' | ||
15361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15362 | (eval $ac_try) 2>&5 | ||
15363 | ac_status=$? | ||
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15365 | (exit $ac_status); }; }; then | ||
15366 | ac_hi=$ac_mid | ||
15367 | else | ||
15368 | echo "$as_me: failed program was:" >&5 | ||
15369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15370 | |||
15371 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
15372 | fi | ||
15373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15374 | done | ||
15375 | case $ac_lo in | ||
15376 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
15377 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
15378 | See \`config.log' for more details." >&5 | ||
15379 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
15380 | See \`config.log' for more details." >&2;} | ||
15381 | { (exit 1); exit 1; }; } ;; | ||
15382 | esac | ||
15383 | else | ||
15384 | if test "$cross_compiling" = yes; then | ||
15385 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
15386 | See \`config.log' for more details." >&5 | ||
15387 | echo "$as_me: error: cannot run test program while cross compiling | ||
15388 | See \`config.log' for more details." >&2;} | ||
15389 | { (exit 1); exit 1; }; } | ||
15390 | else | ||
15391 | cat >conftest.$ac_ext <<_ACEOF | ||
15392 | /* confdefs.h. */ | ||
15393 | _ACEOF | ||
15394 | cat confdefs.h >>conftest.$ac_ext | ||
15395 | cat >>conftest.$ac_ext <<_ACEOF | ||
15396 | /* end confdefs.h. */ | ||
15397 | $ac_includes_default | ||
15398 | long longval () { return (long) (sizeof (int)); } | ||
15399 | unsigned long ulongval () { return (long) (sizeof (int)); } | ||
15400 | #include <stdio.h> | ||
15401 | #include <stdlib.h> | ||
15402 | int | ||
15403 | main () | ||
15404 | { | ||
15405 | |||
15406 | FILE *f = fopen ("conftest.val", "w"); | ||
15407 | if (! f) | ||
15408 | exit (1); | ||
15409 | if (((long) (sizeof (int))) < 0) | ||
15410 | { | ||
15411 | long i = longval (); | ||
15412 | if (i != ((long) (sizeof (int)))) | ||
15413 | exit (1); | ||
15414 | fprintf (f, "%ld\n", i); | ||
15415 | } | ||
15416 | else | ||
15417 | { | ||
15418 | unsigned long i = ulongval (); | ||
15419 | if (i != ((long) (sizeof (int)))) | ||
15420 | exit (1); | ||
15421 | fprintf (f, "%lu\n", i); | ||
15422 | } | ||
15423 | exit (ferror (f) || fclose (f) != 0); | ||
15424 | |||
15425 | ; | ||
15426 | return 0; | ||
15427 | } | ||
15428 | _ACEOF | ||
15429 | rm -f conftest$ac_exeext | ||
15430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15431 | (eval $ac_link) 2>&5 | ||
15432 | ac_status=$? | ||
15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15436 | (eval $ac_try) 2>&5 | ||
15437 | ac_status=$? | ||
15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15439 | (exit $ac_status); }; }; then | ||
15440 | ac_cv_sizeof_int=`cat conftest.val` | ||
15441 | else | ||
15442 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15443 | echo "$as_me: failed program was:" >&5 | ||
15444 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15445 | |||
15446 | ( exit $ac_status ) | ||
15447 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | ||
15448 | See \`config.log' for more details." >&5 | ||
15449 | echo "$as_me: error: cannot compute sizeof (int), 77 | ||
15450 | See \`config.log' for more details." >&2;} | ||
15451 | { (exit 1); exit 1; }; } | ||
15452 | fi | ||
15453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15454 | fi | ||
15455 | fi | ||
15456 | rm -f conftest.val | ||
15457 | else | ||
15458 | ac_cv_sizeof_int=0 | ||
15459 | fi | ||
15460 | fi | ||
15461 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
15462 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | ||
15463 | cat >>confdefs.h <<_ACEOF | ||
15464 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
15465 | _ACEOF | ||
15466 | |||
15467 | |||
15468 | echo "$as_me:$LINENO: checking for long int" >&5 | ||
15469 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | ||
15470 | if test "${ac_cv_type_long_int+set}" = set; then | ||
15471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15472 | else | ||
15473 | cat >conftest.$ac_ext <<_ACEOF | ||
15474 | /* confdefs.h. */ | ||
15475 | _ACEOF | ||
15476 | cat confdefs.h >>conftest.$ac_ext | ||
15477 | cat >>conftest.$ac_ext <<_ACEOF | ||
15478 | /* end confdefs.h. */ | ||
15479 | $ac_includes_default | ||
15480 | int | ||
15481 | main () | ||
15482 | { | ||
15483 | if ((long int *) 0) | ||
15484 | return 0; | ||
15485 | if (sizeof (long int)) | ||
15486 | return 0; | ||
15487 | ; | ||
15488 | return 0; | ||
15489 | } | ||
15490 | _ACEOF | ||
15491 | rm -f conftest.$ac_objext | ||
15492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15493 | (eval $ac_compile) 2>conftest.er1 | ||
15494 | ac_status=$? | ||
15495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15496 | rm -f conftest.er1 | ||
15497 | cat conftest.err >&5 | ||
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15499 | (exit $ac_status); } && | ||
15500 | { ac_try='test -z "$ac_c_werror_flag" | ||
15501 | || test ! -s conftest.err' | ||
15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15503 | (eval $ac_try) 2>&5 | ||
15504 | ac_status=$? | ||
15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15506 | (exit $ac_status); }; } && | ||
15507 | { ac_try='test -s conftest.$ac_objext' | ||
15508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15509 | (eval $ac_try) 2>&5 | ||
15510 | ac_status=$? | ||
15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15512 | (exit $ac_status); }; }; then | ||
15513 | ac_cv_type_long_int=yes | ||
15514 | else | ||
15515 | echo "$as_me: failed program was:" >&5 | ||
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15517 | |||
15518 | ac_cv_type_long_int=no | ||
15519 | fi | ||
15520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15521 | fi | ||
15522 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
15523 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | ||
15524 | |||
15525 | echo "$as_me:$LINENO: checking size of long int" >&5 | ||
15526 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | ||
15527 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
15528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15529 | else | ||
15530 | if test "$ac_cv_type_long_int" = yes; then | ||
15531 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15532 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15533 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15534 | # This bug is HP SR number 8606223364. | ||
15535 | if test "$cross_compiling" = yes; then | ||
15536 | # Depending upon the size, compute the lo and hi bounds. | ||
15537 | cat >conftest.$ac_ext <<_ACEOF | ||
15538 | /* confdefs.h. */ | ||
15539 | _ACEOF | ||
15540 | cat confdefs.h >>conftest.$ac_ext | ||
15541 | cat >>conftest.$ac_ext <<_ACEOF | ||
15542 | /* end confdefs.h. */ | ||
15543 | $ac_includes_default | ||
15544 | int | ||
15545 | main () | ||
15546 | { | ||
15547 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)]; | ||
15548 | test_array [0] = 0 | ||
15549 | |||
15550 | ; | ||
15551 | return 0; | ||
15552 | } | ||
15553 | _ACEOF | ||
15554 | rm -f conftest.$ac_objext | ||
15555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15556 | (eval $ac_compile) 2>conftest.er1 | ||
15557 | ac_status=$? | ||
15558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15559 | rm -f conftest.er1 | ||
15560 | cat conftest.err >&5 | ||
15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15562 | (exit $ac_status); } && | ||
15563 | { ac_try='test -z "$ac_c_werror_flag" | ||
15564 | || test ! -s conftest.err' | ||
15565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15566 | (eval $ac_try) 2>&5 | ||
15567 | ac_status=$? | ||
15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15569 | (exit $ac_status); }; } && | ||
15570 | { ac_try='test -s conftest.$ac_objext' | ||
15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15572 | (eval $ac_try) 2>&5 | ||
15573 | ac_status=$? | ||
15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15575 | (exit $ac_status); }; }; then | ||
15576 | ac_lo=0 ac_mid=0 | ||
15577 | while :; do | ||
15578 | cat >conftest.$ac_ext <<_ACEOF | ||
15579 | /* confdefs.h. */ | ||
15580 | _ACEOF | ||
15581 | cat confdefs.h >>conftest.$ac_ext | ||
15582 | cat >>conftest.$ac_ext <<_ACEOF | ||
15583 | /* end confdefs.h. */ | ||
15584 | $ac_includes_default | ||
15585 | int | ||
15586 | main () | ||
15587 | { | ||
15588 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
15589 | test_array [0] = 0 | ||
15590 | |||
15591 | ; | ||
15592 | return 0; | ||
15593 | } | ||
15594 | _ACEOF | ||
15595 | rm -f conftest.$ac_objext | ||
15596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15597 | (eval $ac_compile) 2>conftest.er1 | ||
15598 | ac_status=$? | ||
15599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15600 | rm -f conftest.er1 | ||
15601 | cat conftest.err >&5 | ||
15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15603 | (exit $ac_status); } && | ||
15604 | { ac_try='test -z "$ac_c_werror_flag" | ||
15605 | || test ! -s conftest.err' | ||
15606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15607 | (eval $ac_try) 2>&5 | ||
15608 | ac_status=$? | ||
15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15610 | (exit $ac_status); }; } && | ||
15611 | { ac_try='test -s conftest.$ac_objext' | ||
15612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15613 | (eval $ac_try) 2>&5 | ||
15614 | ac_status=$? | ||
15615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15616 | (exit $ac_status); }; }; then | ||
15617 | ac_hi=$ac_mid; break | ||
15618 | else | ||
15619 | echo "$as_me: failed program was:" >&5 | ||
15620 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15621 | |||
15622 | ac_lo=`expr $ac_mid + 1` | ||
15623 | if test $ac_lo -le $ac_mid; then | ||
15624 | ac_lo= ac_hi= | ||
15625 | break | ||
15626 | fi | ||
15627 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
15628 | fi | ||
15629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15630 | done | ||
15631 | else | ||
15632 | echo "$as_me: failed program was:" >&5 | ||
15633 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15634 | |||
15635 | cat >conftest.$ac_ext <<_ACEOF | ||
15636 | /* confdefs.h. */ | ||
15637 | _ACEOF | ||
15638 | cat confdefs.h >>conftest.$ac_ext | ||
15639 | cat >>conftest.$ac_ext <<_ACEOF | ||
15640 | /* end confdefs.h. */ | ||
15641 | $ac_includes_default | ||
15642 | int | ||
15643 | main () | ||
15644 | { | ||
15645 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)]; | ||
15646 | test_array [0] = 0 | ||
15647 | |||
15648 | ; | ||
15649 | return 0; | ||
15650 | } | ||
15651 | _ACEOF | ||
15652 | rm -f conftest.$ac_objext | ||
15653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15654 | (eval $ac_compile) 2>conftest.er1 | ||
15655 | ac_status=$? | ||
15656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15657 | rm -f conftest.er1 | ||
15658 | cat conftest.err >&5 | ||
15659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15660 | (exit $ac_status); } && | ||
15661 | { ac_try='test -z "$ac_c_werror_flag" | ||
15662 | || test ! -s conftest.err' | ||
15663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15664 | (eval $ac_try) 2>&5 | ||
15665 | ac_status=$? | ||
15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15667 | (exit $ac_status); }; } && | ||
15668 | { ac_try='test -s conftest.$ac_objext' | ||
15669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15670 | (eval $ac_try) 2>&5 | ||
15671 | ac_status=$? | ||
15672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15673 | (exit $ac_status); }; }; then | ||
15674 | ac_hi=-1 ac_mid=-1 | ||
15675 | while :; do | ||
15676 | cat >conftest.$ac_ext <<_ACEOF | ||
15677 | /* confdefs.h. */ | ||
15678 | _ACEOF | ||
15679 | cat confdefs.h >>conftest.$ac_ext | ||
15680 | cat >>conftest.$ac_ext <<_ACEOF | ||
15681 | /* end confdefs.h. */ | ||
15682 | $ac_includes_default | ||
15683 | int | ||
15684 | main () | ||
15685 | { | ||
15686 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)]; | ||
15687 | test_array [0] = 0 | ||
15688 | |||
15689 | ; | ||
15690 | return 0; | ||
15691 | } | ||
15692 | _ACEOF | ||
15693 | rm -f conftest.$ac_objext | ||
15694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15695 | (eval $ac_compile) 2>conftest.er1 | ||
15696 | ac_status=$? | ||
15697 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15698 | rm -f conftest.er1 | ||
15699 | cat conftest.err >&5 | ||
15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15701 | (exit $ac_status); } && | ||
15702 | { ac_try='test -z "$ac_c_werror_flag" | ||
15703 | || test ! -s conftest.err' | ||
15704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15705 | (eval $ac_try) 2>&5 | ||
15706 | ac_status=$? | ||
15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15708 | (exit $ac_status); }; } && | ||
15709 | { ac_try='test -s conftest.$ac_objext' | ||
15710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15711 | (eval $ac_try) 2>&5 | ||
15712 | ac_status=$? | ||
15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15714 | (exit $ac_status); }; }; then | ||
15715 | ac_lo=$ac_mid; break | ||
15716 | else | ||
15717 | echo "$as_me: failed program was:" >&5 | ||
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15719 | |||
15720 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
15721 | if test $ac_mid -le $ac_hi; then | ||
15722 | ac_lo= ac_hi= | ||
15723 | break | ||
15724 | fi | ||
15725 | ac_mid=`expr 2 '*' $ac_mid` | ||
15726 | fi | ||
15727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15728 | done | ||
15729 | else | ||
15730 | echo "$as_me: failed program was:" >&5 | ||
15731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15732 | |||
15733 | ac_lo= ac_hi= | ||
15734 | fi | ||
15735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15736 | fi | ||
15737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15738 | # Binary search between lo and hi bounds. | ||
15739 | while test "x$ac_lo" != "x$ac_hi"; do | ||
15740 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
15741 | cat >conftest.$ac_ext <<_ACEOF | ||
15742 | /* confdefs.h. */ | ||
15743 | _ACEOF | ||
15744 | cat confdefs.h >>conftest.$ac_ext | ||
15745 | cat >>conftest.$ac_ext <<_ACEOF | ||
15746 | /* end confdefs.h. */ | ||
15747 | $ac_includes_default | ||
15748 | int | ||
15749 | main () | ||
15750 | { | ||
15751 | static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)]; | ||
15752 | test_array [0] = 0 | ||
15753 | |||
15754 | ; | ||
15755 | return 0; | ||
15756 | } | ||
15757 | _ACEOF | ||
15758 | rm -f conftest.$ac_objext | ||
15759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15760 | (eval $ac_compile) 2>conftest.er1 | ||
15761 | ac_status=$? | ||
15762 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15763 | rm -f conftest.er1 | ||
15764 | cat conftest.err >&5 | ||
15765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15766 | (exit $ac_status); } && | ||
15767 | { ac_try='test -z "$ac_c_werror_flag" | ||
15768 | || test ! -s conftest.err' | ||
15769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15770 | (eval $ac_try) 2>&5 | ||
15771 | ac_status=$? | ||
15772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15773 | (exit $ac_status); }; } && | ||
15774 | { ac_try='test -s conftest.$ac_objext' | ||
15775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15776 | (eval $ac_try) 2>&5 | ||
15777 | ac_status=$? | ||
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15779 | (exit $ac_status); }; }; then | ||
15780 | ac_hi=$ac_mid | ||
15781 | else | ||
15782 | echo "$as_me: failed program was:" >&5 | ||
15783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15784 | |||
15785 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
15786 | fi | ||
15787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15788 | done | ||
15789 | case $ac_lo in | ||
15790 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
15791 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
15792 | See \`config.log' for more details." >&5 | ||
15793 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
15794 | See \`config.log' for more details." >&2;} | ||
15795 | { (exit 1); exit 1; }; } ;; | ||
15796 | esac | ||
15797 | else | ||
15798 | if test "$cross_compiling" = yes; then | ||
15799 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
15800 | See \`config.log' for more details." >&5 | ||
15801 | echo "$as_me: error: cannot run test program while cross compiling | ||
15802 | See \`config.log' for more details." >&2;} | ||
15803 | { (exit 1); exit 1; }; } | ||
15804 | else | ||
15805 | cat >conftest.$ac_ext <<_ACEOF | ||
15806 | /* confdefs.h. */ | ||
15807 | _ACEOF | ||
15808 | cat confdefs.h >>conftest.$ac_ext | ||
15809 | cat >>conftest.$ac_ext <<_ACEOF | ||
15810 | /* end confdefs.h. */ | ||
15811 | $ac_includes_default | ||
15812 | long longval () { return (long) (sizeof (long int)); } | ||
15813 | unsigned long ulongval () { return (long) (sizeof (long int)); } | ||
15814 | #include <stdio.h> | ||
15815 | #include <stdlib.h> | ||
15816 | int | ||
15817 | main () | ||
15818 | { | ||
15819 | |||
15820 | FILE *f = fopen ("conftest.val", "w"); | ||
15821 | if (! f) | ||
15822 | exit (1); | ||
15823 | if (((long) (sizeof (long int))) < 0) | ||
15824 | { | ||
15825 | long i = longval (); | ||
15826 | if (i != ((long) (sizeof (long int)))) | ||
15827 | exit (1); | ||
15828 | fprintf (f, "%ld\n", i); | ||
15829 | } | ||
15830 | else | ||
15831 | { | ||
15832 | unsigned long i = ulongval (); | ||
15833 | if (i != ((long) (sizeof (long int)))) | ||
15834 | exit (1); | ||
15835 | fprintf (f, "%lu\n", i); | ||
15836 | } | ||
15837 | exit (ferror (f) || fclose (f) != 0); | ||
15838 | |||
15839 | ; | ||
15840 | return 0; | ||
15841 | } | ||
15842 | _ACEOF | ||
15843 | rm -f conftest$ac_exeext | ||
15844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
15845 | (eval $ac_link) 2>&5 | ||
15846 | ac_status=$? | ||
15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15848 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15850 | (eval $ac_try) 2>&5 | ||
15851 | ac_status=$? | ||
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15853 | (exit $ac_status); }; }; then | ||
15854 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
15855 | else | ||
15856 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15857 | echo "$as_me: failed program was:" >&5 | ||
15858 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15859 | |||
15860 | ( exit $ac_status ) | ||
15861 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77 | ||
15862 | See \`config.log' for more details." >&5 | ||
15863 | echo "$as_me: error: cannot compute sizeof (long int), 77 | ||
15864 | See \`config.log' for more details." >&2;} | ||
15865 | { (exit 1); exit 1; }; } | ||
15866 | fi | ||
15867 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15868 | fi | ||
15869 | fi | ||
15870 | rm -f conftest.val | ||
15871 | else | ||
15872 | ac_cv_sizeof_long_int=0 | ||
15873 | fi | ||
15874 | fi | ||
15875 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
15876 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | ||
15877 | cat >>confdefs.h <<_ACEOF | ||
15878 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
15879 | _ACEOF | ||
15880 | |||
15881 | |||
15882 | echo "$as_me:$LINENO: checking for long long int" >&5 | ||
15883 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | ||
15884 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
15885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15886 | else | ||
15887 | cat >conftest.$ac_ext <<_ACEOF | ||
15888 | /* confdefs.h. */ | ||
15889 | _ACEOF | ||
15890 | cat confdefs.h >>conftest.$ac_ext | ||
15891 | cat >>conftest.$ac_ext <<_ACEOF | ||
15892 | /* end confdefs.h. */ | ||
15893 | $ac_includes_default | ||
15894 | int | ||
15895 | main () | ||
15896 | { | ||
15897 | if ((long long int *) 0) | ||
15898 | return 0; | ||
15899 | if (sizeof (long long int)) | ||
15900 | return 0; | ||
15901 | ; | ||
15902 | return 0; | ||
15903 | } | ||
15904 | _ACEOF | ||
15905 | rm -f conftest.$ac_objext | ||
15906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15907 | (eval $ac_compile) 2>conftest.er1 | ||
15908 | ac_status=$? | ||
15909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15910 | rm -f conftest.er1 | ||
15911 | cat conftest.err >&5 | ||
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15913 | (exit $ac_status); } && | ||
15914 | { ac_try='test -z "$ac_c_werror_flag" | ||
15915 | || test ! -s conftest.err' | ||
15916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15917 | (eval $ac_try) 2>&5 | ||
15918 | ac_status=$? | ||
15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15920 | (exit $ac_status); }; } && | ||
15921 | { ac_try='test -s conftest.$ac_objext' | ||
15922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15923 | (eval $ac_try) 2>&5 | ||
15924 | ac_status=$? | ||
15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15926 | (exit $ac_status); }; }; then | ||
15927 | ac_cv_type_long_long_int=yes | ||
15928 | else | ||
15929 | echo "$as_me: failed program was:" >&5 | ||
15930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15931 | |||
15932 | ac_cv_type_long_long_int=no | ||
15933 | fi | ||
15934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15935 | fi | ||
15936 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
15937 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | ||
15938 | |||
15939 | echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
15940 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | ||
15941 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
15942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15943 | else | ||
15944 | if test "$ac_cv_type_long_long_int" = yes; then | ||
15945 | # The cast to unsigned long works around a bug in the HP C Compiler | ||
15946 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
15947 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
15948 | # This bug is HP SR number 8606223364. | ||
15949 | if test "$cross_compiling" = yes; then | ||
15950 | # Depending upon the size, compute the lo and hi bounds. | ||
15951 | cat >conftest.$ac_ext <<_ACEOF | ||
15952 | /* confdefs.h. */ | ||
15953 | _ACEOF | ||
15954 | cat confdefs.h >>conftest.$ac_ext | ||
15955 | cat >>conftest.$ac_ext <<_ACEOF | ||
15956 | /* end confdefs.h. */ | ||
15957 | $ac_includes_default | ||
15958 | int | ||
15959 | main () | ||
15960 | { | ||
15961 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)]; | ||
15962 | test_array [0] = 0 | ||
15963 | |||
15964 | ; | ||
15965 | return 0; | ||
15966 | } | ||
15967 | _ACEOF | ||
15968 | rm -f conftest.$ac_objext | ||
15969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15970 | (eval $ac_compile) 2>conftest.er1 | ||
15971 | ac_status=$? | ||
15972 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15973 | rm -f conftest.er1 | ||
15974 | cat conftest.err >&5 | ||
15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15976 | (exit $ac_status); } && | ||
15977 | { ac_try='test -z "$ac_c_werror_flag" | ||
15978 | || test ! -s conftest.err' | ||
15979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15980 | (eval $ac_try) 2>&5 | ||
15981 | ac_status=$? | ||
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15983 | (exit $ac_status); }; } && | ||
15984 | { ac_try='test -s conftest.$ac_objext' | ||
15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
15986 | (eval $ac_try) 2>&5 | ||
15987 | ac_status=$? | ||
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15989 | (exit $ac_status); }; }; then | ||
15990 | ac_lo=0 ac_mid=0 | ||
15991 | while :; do | ||
15992 | cat >conftest.$ac_ext <<_ACEOF | ||
15993 | /* confdefs.h. */ | ||
15994 | _ACEOF | ||
15995 | cat confdefs.h >>conftest.$ac_ext | ||
15996 | cat >>conftest.$ac_ext <<_ACEOF | ||
15997 | /* end confdefs.h. */ | ||
15998 | $ac_includes_default | ||
15999 | int | ||
16000 | main () | ||
16001 | { | ||
16002 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
16003 | test_array [0] = 0 | ||
16004 | |||
16005 | ; | ||
16006 | return 0; | ||
16007 | } | ||
16008 | _ACEOF | ||
16009 | rm -f conftest.$ac_objext | ||
16010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16011 | (eval $ac_compile) 2>conftest.er1 | ||
16012 | ac_status=$? | ||
16013 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16014 | rm -f conftest.er1 | ||
16015 | cat conftest.err >&5 | ||
16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16017 | (exit $ac_status); } && | ||
16018 | { ac_try='test -z "$ac_c_werror_flag" | ||
16019 | || test ! -s conftest.err' | ||
16020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16021 | (eval $ac_try) 2>&5 | ||
16022 | ac_status=$? | ||
16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16024 | (exit $ac_status); }; } && | ||
16025 | { ac_try='test -s conftest.$ac_objext' | ||
16026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16027 | (eval $ac_try) 2>&5 | ||
16028 | ac_status=$? | ||
16029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16030 | (exit $ac_status); }; }; then | ||
16031 | ac_hi=$ac_mid; break | ||
16032 | else | ||
16033 | echo "$as_me: failed program was:" >&5 | ||
16034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16035 | |||
16036 | ac_lo=`expr $ac_mid + 1` | ||
16037 | if test $ac_lo -le $ac_mid; then | ||
16038 | ac_lo= ac_hi= | ||
16039 | break | ||
16040 | fi | ||
16041 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
16042 | fi | ||
16043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16044 | done | ||
16045 | else | ||
16046 | echo "$as_me: failed program was:" >&5 | ||
16047 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16048 | |||
16049 | cat >conftest.$ac_ext <<_ACEOF | ||
16050 | /* confdefs.h. */ | ||
16051 | _ACEOF | ||
16052 | cat confdefs.h >>conftest.$ac_ext | ||
16053 | cat >>conftest.$ac_ext <<_ACEOF | ||
16054 | /* end confdefs.h. */ | ||
16055 | $ac_includes_default | ||
16056 | int | ||
16057 | main () | ||
16058 | { | ||
16059 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)]; | ||
16060 | test_array [0] = 0 | ||
16061 | |||
16062 | ; | ||
16063 | return 0; | ||
16064 | } | ||
16065 | _ACEOF | ||
16066 | rm -f conftest.$ac_objext | ||
16067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16068 | (eval $ac_compile) 2>conftest.er1 | ||
16069 | ac_status=$? | ||
16070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16071 | rm -f conftest.er1 | ||
16072 | cat conftest.err >&5 | ||
16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16074 | (exit $ac_status); } && | ||
16075 | { ac_try='test -z "$ac_c_werror_flag" | ||
16076 | || test ! -s conftest.err' | ||
16077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16078 | (eval $ac_try) 2>&5 | ||
16079 | ac_status=$? | ||
16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16081 | (exit $ac_status); }; } && | ||
16082 | { ac_try='test -s conftest.$ac_objext' | ||
16083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16084 | (eval $ac_try) 2>&5 | ||
16085 | ac_status=$? | ||
16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16087 | (exit $ac_status); }; }; then | ||
16088 | ac_hi=-1 ac_mid=-1 | ||
16089 | while :; do | ||
16090 | cat >conftest.$ac_ext <<_ACEOF | ||
16091 | /* confdefs.h. */ | ||
16092 | _ACEOF | ||
16093 | cat confdefs.h >>conftest.$ac_ext | ||
16094 | cat >>conftest.$ac_ext <<_ACEOF | ||
16095 | /* end confdefs.h. */ | ||
16096 | $ac_includes_default | ||
16097 | int | ||
16098 | main () | ||
16099 | { | ||
16100 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)]; | ||
16101 | test_array [0] = 0 | ||
16102 | |||
16103 | ; | ||
16104 | return 0; | ||
16105 | } | ||
16106 | _ACEOF | ||
16107 | rm -f conftest.$ac_objext | ||
16108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16109 | (eval $ac_compile) 2>conftest.er1 | ||
16110 | ac_status=$? | ||
16111 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16112 | rm -f conftest.er1 | ||
16113 | cat conftest.err >&5 | ||
16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16115 | (exit $ac_status); } && | ||
16116 | { ac_try='test -z "$ac_c_werror_flag" | ||
16117 | || test ! -s conftest.err' | ||
16118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16119 | (eval $ac_try) 2>&5 | ||
16120 | ac_status=$? | ||
16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16122 | (exit $ac_status); }; } && | ||
16123 | { ac_try='test -s conftest.$ac_objext' | ||
16124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16125 | (eval $ac_try) 2>&5 | ||
16126 | ac_status=$? | ||
16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16128 | (exit $ac_status); }; }; then | ||
16129 | ac_lo=$ac_mid; break | ||
16130 | else | ||
16131 | echo "$as_me: failed program was:" >&5 | ||
16132 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16133 | |||
16134 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
16135 | if test $ac_mid -le $ac_hi; then | ||
16136 | ac_lo= ac_hi= | ||
16137 | break | ||
16138 | fi | ||
16139 | ac_mid=`expr 2 '*' $ac_mid` | ||
16140 | fi | ||
16141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16142 | done | ||
16143 | else | ||
16144 | echo "$as_me: failed program was:" >&5 | ||
16145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16146 | |||
16147 | ac_lo= ac_hi= | ||
16148 | fi | ||
16149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16150 | fi | ||
16151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16152 | # Binary search between lo and hi bounds. | ||
16153 | while test "x$ac_lo" != "x$ac_hi"; do | ||
16154 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
16155 | cat >conftest.$ac_ext <<_ACEOF | ||
16156 | /* confdefs.h. */ | ||
16157 | _ACEOF | ||
16158 | cat confdefs.h >>conftest.$ac_ext | ||
16159 | cat >>conftest.$ac_ext <<_ACEOF | ||
16160 | /* end confdefs.h. */ | ||
16161 | $ac_includes_default | ||
16162 | int | ||
16163 | main () | ||
16164 | { | ||
16165 | static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)]; | ||
16166 | test_array [0] = 0 | ||
16167 | |||
16168 | ; | ||
16169 | return 0; | ||
16170 | } | ||
16171 | _ACEOF | ||
16172 | rm -f conftest.$ac_objext | ||
16173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16174 | (eval $ac_compile) 2>conftest.er1 | ||
16175 | ac_status=$? | ||
16176 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16177 | rm -f conftest.er1 | ||
16178 | cat conftest.err >&5 | ||
16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16180 | (exit $ac_status); } && | ||
16181 | { ac_try='test -z "$ac_c_werror_flag" | ||
16182 | || test ! -s conftest.err' | ||
16183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16184 | (eval $ac_try) 2>&5 | ||
16185 | ac_status=$? | ||
16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16187 | (exit $ac_status); }; } && | ||
16188 | { ac_try='test -s conftest.$ac_objext' | ||
16189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16190 | (eval $ac_try) 2>&5 | ||
16191 | ac_status=$? | ||
16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16193 | (exit $ac_status); }; }; then | ||
16194 | ac_hi=$ac_mid | ||
16195 | else | ||
16196 | echo "$as_me: failed program was:" >&5 | ||
16197 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16198 | |||
16199 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
16200 | fi | ||
16201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16202 | done | ||
16203 | case $ac_lo in | ||
16204 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
16205 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
16206 | See \`config.log' for more details." >&5 | ||
16207 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
16208 | See \`config.log' for more details." >&2;} | ||
16209 | { (exit 1); exit 1; }; } ;; | ||
16210 | esac | ||
16211 | else | ||
16212 | if test "$cross_compiling" = yes; then | ||
16213 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
16214 | See \`config.log' for more details." >&5 | ||
16215 | echo "$as_me: error: cannot run test program while cross compiling | ||
16216 | See \`config.log' for more details." >&2;} | ||
16217 | { (exit 1); exit 1; }; } | ||
16218 | else | ||
16219 | cat >conftest.$ac_ext <<_ACEOF | ||
16220 | /* confdefs.h. */ | ||
16221 | _ACEOF | ||
16222 | cat confdefs.h >>conftest.$ac_ext | ||
16223 | cat >>conftest.$ac_ext <<_ACEOF | ||
16224 | /* end confdefs.h. */ | ||
16225 | $ac_includes_default | ||
16226 | long longval () { return (long) (sizeof (long long int)); } | ||
16227 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | ||
16228 | #include <stdio.h> | ||
16229 | #include <stdlib.h> | ||
16230 | int | ||
16231 | main () | ||
16232 | { | ||
16233 | |||
16234 | FILE *f = fopen ("conftest.val", "w"); | ||
16235 | if (! f) | ||
16236 | exit (1); | ||
16237 | if (((long) (sizeof (long long int))) < 0) | ||
16238 | { | ||
16239 | long i = longval (); | ||
16240 | if (i != ((long) (sizeof (long long int)))) | ||
16241 | exit (1); | ||
16242 | fprintf (f, "%ld\n", i); | ||
16243 | } | ||
16244 | else | ||
16245 | { | ||
16246 | unsigned long i = ulongval (); | ||
16247 | if (i != ((long) (sizeof (long long int)))) | ||
16248 | exit (1); | ||
16249 | fprintf (f, "%lu\n", i); | ||
16250 | } | ||
16251 | exit (ferror (f) || fclose (f) != 0); | ||
16252 | |||
16253 | ; | ||
16254 | return 0; | ||
16255 | } | ||
16256 | _ACEOF | ||
16257 | rm -f conftest$ac_exeext | ||
16258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16259 | (eval $ac_link) 2>&5 | ||
16260 | ac_status=$? | ||
16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16264 | (eval $ac_try) 2>&5 | ||
16265 | ac_status=$? | ||
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16267 | (exit $ac_status); }; }; then | ||
16268 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
16269 | else | ||
16270 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16271 | echo "$as_me: failed program was:" >&5 | ||
16272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16273 | |||
16274 | ( exit $ac_status ) | ||
16275 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77 | ||
16276 | See \`config.log' for more details." >&5 | ||
16277 | echo "$as_me: error: cannot compute sizeof (long long int), 77 | ||
16278 | See \`config.log' for more details." >&2;} | ||
16279 | { (exit 1); exit 1; }; } | ||
16280 | fi | ||
16281 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16282 | fi | ||
16283 | fi | ||
16284 | rm -f conftest.val | ||
16285 | else | ||
16286 | ac_cv_sizeof_long_long_int=0 | ||
16287 | fi | ||
16288 | fi | ||
16289 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
16290 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | ||
16291 | cat >>confdefs.h <<_ACEOF | ||
16292 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
16293 | _ACEOF | ||
16294 | |||
16295 | |||
16296 | |||
16297 | # Sanity check long long for some platforms (AIX) | ||
16298 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
16299 | ac_cv_sizeof_long_long_int=0 | ||
16300 | fi | ||
16301 | |||
16302 | # More checks for data types | ||
16303 | echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
16304 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | ||
16305 | if test "${ac_cv_have_u_int+set}" = set; then | ||
16306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16307 | else | ||
16308 | |||
16309 | cat >conftest.$ac_ext <<_ACEOF | ||
16310 | /* confdefs.h. */ | ||
16311 | _ACEOF | ||
16312 | cat confdefs.h >>conftest.$ac_ext | ||
16313 | cat >>conftest.$ac_ext <<_ACEOF | ||
16314 | /* end confdefs.h. */ | ||
16315 | #include <sys/types.h> | ||
16316 | int | ||
16317 | main () | ||
16318 | { | ||
16319 | u_int a; a = 1; | ||
16320 | ; | ||
16321 | return 0; | ||
16322 | } | ||
16323 | _ACEOF | ||
16324 | rm -f conftest.$ac_objext | ||
16325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16326 | (eval $ac_compile) 2>conftest.er1 | ||
16327 | ac_status=$? | ||
16328 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16329 | rm -f conftest.er1 | ||
16330 | cat conftest.err >&5 | ||
16331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16332 | (exit $ac_status); } && | ||
16333 | { ac_try='test -z "$ac_c_werror_flag" | ||
16334 | || test ! -s conftest.err' | ||
16335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16336 | (eval $ac_try) 2>&5 | ||
16337 | ac_status=$? | ||
16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16339 | (exit $ac_status); }; } && | ||
16340 | { ac_try='test -s conftest.$ac_objext' | ||
16341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16342 | (eval $ac_try) 2>&5 | ||
16343 | ac_status=$? | ||
16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16345 | (exit $ac_status); }; }; then | ||
16346 | ac_cv_have_u_int="yes" | ||
16347 | else | ||
16348 | echo "$as_me: failed program was:" >&5 | ||
16349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16350 | |||
16351 | ac_cv_have_u_int="no" | ||
16352 | |||
16353 | fi | ||
16354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16355 | |||
16356 | fi | ||
16357 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
16358 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | ||
16359 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
16360 | cat >>confdefs.h <<\_ACEOF | ||
16361 | #define HAVE_U_INT 1 | ||
16362 | _ACEOF | ||
16363 | |||
16364 | have_u_int=1 | ||
16365 | fi | ||
16366 | |||
16367 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
16368 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | ||
16369 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
16370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16371 | else | ||
16372 | |||
16373 | cat >conftest.$ac_ext <<_ACEOF | ||
16374 | /* confdefs.h. */ | ||
16375 | _ACEOF | ||
16376 | cat confdefs.h >>conftest.$ac_ext | ||
16377 | cat >>conftest.$ac_ext <<_ACEOF | ||
16378 | /* end confdefs.h. */ | ||
16379 | #include <sys/types.h> | ||
16380 | int | ||
16381 | main () | ||
16382 | { | ||
16383 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
16384 | ; | ||
16385 | return 0; | ||
16386 | } | ||
16387 | _ACEOF | ||
16388 | rm -f conftest.$ac_objext | ||
16389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16390 | (eval $ac_compile) 2>conftest.er1 | ||
16391 | ac_status=$? | ||
16392 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16393 | rm -f conftest.er1 | ||
16394 | cat conftest.err >&5 | ||
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16396 | (exit $ac_status); } && | ||
16397 | { ac_try='test -z "$ac_c_werror_flag" | ||
16398 | || test ! -s conftest.err' | ||
16399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16400 | (eval $ac_try) 2>&5 | ||
16401 | ac_status=$? | ||
16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16403 | (exit $ac_status); }; } && | ||
16404 | { ac_try='test -s conftest.$ac_objext' | ||
16405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16406 | (eval $ac_try) 2>&5 | ||
16407 | ac_status=$? | ||
16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16409 | (exit $ac_status); }; }; then | ||
16410 | ac_cv_have_intxx_t="yes" | ||
16411 | else | ||
16412 | echo "$as_me: failed program was:" >&5 | ||
16413 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16414 | |||
16415 | ac_cv_have_intxx_t="no" | ||
16416 | |||
16417 | fi | ||
16418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16419 | |||
16420 | fi | ||
16421 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
16422 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | ||
16423 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
16424 | cat >>confdefs.h <<\_ACEOF | ||
16425 | #define HAVE_INTXX_T 1 | ||
16426 | _ACEOF | ||
16427 | |||
16428 | have_intxx_t=1 | ||
16429 | fi | ||
16430 | |||
16431 | if (test -z "$have_intxx_t" && \ | ||
16432 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
16433 | then | ||
16434 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
16435 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | ||
16436 | cat >conftest.$ac_ext <<_ACEOF | ||
16437 | /* confdefs.h. */ | ||
16438 | _ACEOF | ||
16439 | cat confdefs.h >>conftest.$ac_ext | ||
16440 | cat >>conftest.$ac_ext <<_ACEOF | ||
16441 | /* end confdefs.h. */ | ||
16442 | #include <stdint.h> | ||
16443 | int | ||
16444 | main () | ||
16445 | { | ||
16446 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
16447 | ; | ||
16448 | return 0; | ||
16449 | } | ||
16450 | _ACEOF | ||
16451 | rm -f conftest.$ac_objext | ||
16452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16453 | (eval $ac_compile) 2>conftest.er1 | ||
16454 | ac_status=$? | ||
16455 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16456 | rm -f conftest.er1 | ||
16457 | cat conftest.err >&5 | ||
16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16459 | (exit $ac_status); } && | ||
16460 | { ac_try='test -z "$ac_c_werror_flag" | ||
16461 | || test ! -s conftest.err' | ||
16462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16463 | (eval $ac_try) 2>&5 | ||
16464 | ac_status=$? | ||
16465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16466 | (exit $ac_status); }; } && | ||
16467 | { ac_try='test -s conftest.$ac_objext' | ||
16468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16469 | (eval $ac_try) 2>&5 | ||
16470 | ac_status=$? | ||
16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16472 | (exit $ac_status); }; }; then | ||
16473 | |||
16474 | cat >>confdefs.h <<\_ACEOF | ||
16475 | #define HAVE_INTXX_T 1 | ||
16476 | _ACEOF | ||
16477 | |||
16478 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16479 | echo "${ECHO_T}yes" >&6 | ||
16480 | |||
16481 | else | ||
16482 | echo "$as_me: failed program was:" >&5 | ||
16483 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16484 | |||
16485 | echo "$as_me:$LINENO: result: no" >&5 | ||
16486 | echo "${ECHO_T}no" >&6 | ||
16487 | |||
16488 | fi | ||
16489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16490 | fi | ||
16491 | |||
16492 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
16493 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | ||
16494 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
16495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16496 | else | ||
16497 | |||
16498 | cat >conftest.$ac_ext <<_ACEOF | ||
16499 | /* confdefs.h. */ | ||
16500 | _ACEOF | ||
16501 | cat confdefs.h >>conftest.$ac_ext | ||
16502 | cat >>conftest.$ac_ext <<_ACEOF | ||
16503 | /* end confdefs.h. */ | ||
16504 | |||
16505 | #include <sys/types.h> | ||
16506 | #ifdef HAVE_STDINT_H | ||
16507 | # include <stdint.h> | ||
16508 | #endif | ||
16509 | #include <sys/socket.h> | ||
16510 | #ifdef HAVE_SYS_BITYPES_H | ||
16511 | # include <sys/bitypes.h> | ||
16512 | #endif | ||
16513 | |||
16514 | int | ||
16515 | main () | ||
16516 | { | ||
16517 | int64_t a; a = 1; | ||
16518 | ; | ||
16519 | return 0; | ||
16520 | } | ||
16521 | _ACEOF | ||
16522 | rm -f conftest.$ac_objext | ||
16523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16524 | (eval $ac_compile) 2>conftest.er1 | ||
16525 | ac_status=$? | ||
16526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16527 | rm -f conftest.er1 | ||
16528 | cat conftest.err >&5 | ||
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16530 | (exit $ac_status); } && | ||
16531 | { ac_try='test -z "$ac_c_werror_flag" | ||
16532 | || test ! -s conftest.err' | ||
16533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16534 | (eval $ac_try) 2>&5 | ||
16535 | ac_status=$? | ||
16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16537 | (exit $ac_status); }; } && | ||
16538 | { ac_try='test -s conftest.$ac_objext' | ||
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16540 | (eval $ac_try) 2>&5 | ||
16541 | ac_status=$? | ||
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16543 | (exit $ac_status); }; }; then | ||
16544 | ac_cv_have_int64_t="yes" | ||
16545 | else | ||
16546 | echo "$as_me: failed program was:" >&5 | ||
16547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16548 | |||
16549 | ac_cv_have_int64_t="no" | ||
16550 | |||
16551 | fi | ||
16552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16553 | |||
16554 | fi | ||
16555 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
16556 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | ||
16557 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
16558 | cat >>confdefs.h <<\_ACEOF | ||
16559 | #define HAVE_INT64_T 1 | ||
16560 | _ACEOF | ||
16561 | |||
16562 | fi | ||
16563 | |||
16564 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
16565 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | ||
16566 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
16567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16568 | else | ||
16569 | |||
16570 | cat >conftest.$ac_ext <<_ACEOF | ||
16571 | /* confdefs.h. */ | ||
16572 | _ACEOF | ||
16573 | cat confdefs.h >>conftest.$ac_ext | ||
16574 | cat >>conftest.$ac_ext <<_ACEOF | ||
16575 | /* end confdefs.h. */ | ||
16576 | #include <sys/types.h> | ||
16577 | int | ||
16578 | main () | ||
16579 | { | ||
16580 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
16581 | ; | ||
16582 | return 0; | ||
16583 | } | ||
16584 | _ACEOF | ||
16585 | rm -f conftest.$ac_objext | ||
16586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16587 | (eval $ac_compile) 2>conftest.er1 | ||
16588 | ac_status=$? | ||
16589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16590 | rm -f conftest.er1 | ||
16591 | cat conftest.err >&5 | ||
16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16593 | (exit $ac_status); } && | ||
16594 | { ac_try='test -z "$ac_c_werror_flag" | ||
16595 | || test ! -s conftest.err' | ||
16596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16597 | (eval $ac_try) 2>&5 | ||
16598 | ac_status=$? | ||
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16600 | (exit $ac_status); }; } && | ||
16601 | { ac_try='test -s conftest.$ac_objext' | ||
16602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16603 | (eval $ac_try) 2>&5 | ||
16604 | ac_status=$? | ||
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16606 | (exit $ac_status); }; }; then | ||
16607 | ac_cv_have_u_intxx_t="yes" | ||
16608 | else | ||
16609 | echo "$as_me: failed program was:" >&5 | ||
16610 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16611 | |||
16612 | ac_cv_have_u_intxx_t="no" | ||
16613 | |||
16614 | fi | ||
16615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16616 | |||
16617 | fi | ||
16618 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
16619 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | ||
16620 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
16621 | cat >>confdefs.h <<\_ACEOF | ||
16622 | #define HAVE_U_INTXX_T 1 | ||
16623 | _ACEOF | ||
16624 | |||
16625 | have_u_intxx_t=1 | ||
16626 | fi | ||
16627 | |||
16628 | if test -z "$have_u_intxx_t" ; then | ||
16629 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
16630 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | ||
16631 | cat >conftest.$ac_ext <<_ACEOF | ||
16632 | /* confdefs.h. */ | ||
16633 | _ACEOF | ||
16634 | cat confdefs.h >>conftest.$ac_ext | ||
16635 | cat >>conftest.$ac_ext <<_ACEOF | ||
16636 | /* end confdefs.h. */ | ||
16637 | #include <sys/socket.h> | ||
16638 | int | ||
16639 | main () | ||
16640 | { | ||
16641 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
16642 | ; | ||
16643 | return 0; | ||
16644 | } | ||
16645 | _ACEOF | ||
16646 | rm -f conftest.$ac_objext | ||
16647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16648 | (eval $ac_compile) 2>conftest.er1 | ||
16649 | ac_status=$? | ||
16650 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16651 | rm -f conftest.er1 | ||
16652 | cat conftest.err >&5 | ||
16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16654 | (exit $ac_status); } && | ||
16655 | { ac_try='test -z "$ac_c_werror_flag" | ||
16656 | || test ! -s conftest.err' | ||
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16658 | (eval $ac_try) 2>&5 | ||
16659 | ac_status=$? | ||
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16661 | (exit $ac_status); }; } && | ||
16662 | { ac_try='test -s conftest.$ac_objext' | ||
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16664 | (eval $ac_try) 2>&5 | ||
16665 | ac_status=$? | ||
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16667 | (exit $ac_status); }; }; then | ||
16668 | |||
16669 | cat >>confdefs.h <<\_ACEOF | ||
16670 | #define HAVE_U_INTXX_T 1 | ||
16671 | _ACEOF | ||
16672 | |||
16673 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16674 | echo "${ECHO_T}yes" >&6 | ||
16675 | |||
16676 | else | ||
16677 | echo "$as_me: failed program was:" >&5 | ||
16678 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16679 | |||
16680 | echo "$as_me:$LINENO: result: no" >&5 | ||
16681 | echo "${ECHO_T}no" >&6 | ||
16682 | |||
16683 | fi | ||
16684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16685 | fi | ||
16686 | |||
16687 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
16688 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | ||
16689 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
16690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16691 | else | ||
16692 | |||
16693 | cat >conftest.$ac_ext <<_ACEOF | ||
16694 | /* confdefs.h. */ | ||
16695 | _ACEOF | ||
16696 | cat confdefs.h >>conftest.$ac_ext | ||
16697 | cat >>conftest.$ac_ext <<_ACEOF | ||
16698 | /* end confdefs.h. */ | ||
16699 | #include <sys/types.h> | ||
16700 | int | ||
16701 | main () | ||
16702 | { | ||
16703 | u_int64_t a; a = 1; | ||
16704 | ; | ||
16705 | return 0; | ||
16706 | } | ||
16707 | _ACEOF | ||
16708 | rm -f conftest.$ac_objext | ||
16709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16710 | (eval $ac_compile) 2>conftest.er1 | ||
16711 | ac_status=$? | ||
16712 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16713 | rm -f conftest.er1 | ||
16714 | cat conftest.err >&5 | ||
16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16716 | (exit $ac_status); } && | ||
16717 | { ac_try='test -z "$ac_c_werror_flag" | ||
16718 | || test ! -s conftest.err' | ||
16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16720 | (eval $ac_try) 2>&5 | ||
16721 | ac_status=$? | ||
16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16723 | (exit $ac_status); }; } && | ||
16724 | { ac_try='test -s conftest.$ac_objext' | ||
16725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16726 | (eval $ac_try) 2>&5 | ||
16727 | ac_status=$? | ||
16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16729 | (exit $ac_status); }; }; then | ||
16730 | ac_cv_have_u_int64_t="yes" | ||
16731 | else | ||
16732 | echo "$as_me: failed program was:" >&5 | ||
16733 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16734 | |||
16735 | ac_cv_have_u_int64_t="no" | ||
16736 | |||
16737 | fi | ||
16738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16739 | |||
16740 | fi | ||
16741 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
16742 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | ||
16743 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
16744 | cat >>confdefs.h <<\_ACEOF | ||
16745 | #define HAVE_U_INT64_T 1 | ||
16746 | _ACEOF | ||
16747 | |||
16748 | have_u_int64_t=1 | ||
16749 | fi | ||
16750 | |||
16751 | if test -z "$have_u_int64_t" ; then | ||
16752 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
16753 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | ||
16754 | cat >conftest.$ac_ext <<_ACEOF | ||
16755 | /* confdefs.h. */ | ||
16756 | _ACEOF | ||
16757 | cat confdefs.h >>conftest.$ac_ext | ||
16758 | cat >>conftest.$ac_ext <<_ACEOF | ||
16759 | /* end confdefs.h. */ | ||
16760 | #include <sys/bitypes.h> | ||
16761 | int | ||
16762 | main () | ||
16763 | { | ||
16764 | u_int64_t a; a = 1 | ||
16765 | ; | ||
16766 | return 0; | ||
16767 | } | ||
16768 | _ACEOF | ||
16769 | rm -f conftest.$ac_objext | ||
16770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16771 | (eval $ac_compile) 2>conftest.er1 | ||
16772 | ac_status=$? | ||
16773 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16774 | rm -f conftest.er1 | ||
16775 | cat conftest.err >&5 | ||
16776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16777 | (exit $ac_status); } && | ||
16778 | { ac_try='test -z "$ac_c_werror_flag" | ||
16779 | || test ! -s conftest.err' | ||
16780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16781 | (eval $ac_try) 2>&5 | ||
16782 | ac_status=$? | ||
16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16784 | (exit $ac_status); }; } && | ||
16785 | { ac_try='test -s conftest.$ac_objext' | ||
16786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16787 | (eval $ac_try) 2>&5 | ||
16788 | ac_status=$? | ||
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16790 | (exit $ac_status); }; }; then | ||
16791 | |||
16792 | cat >>confdefs.h <<\_ACEOF | ||
16793 | #define HAVE_U_INT64_T 1 | ||
16794 | _ACEOF | ||
16795 | |||
16796 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16797 | echo "${ECHO_T}yes" >&6 | ||
16798 | |||
16799 | else | ||
16800 | echo "$as_me: failed program was:" >&5 | ||
16801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16802 | |||
16803 | echo "$as_me:$LINENO: result: no" >&5 | ||
16804 | echo "${ECHO_T}no" >&6 | ||
16805 | |||
16806 | fi | ||
16807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16808 | fi | ||
16809 | |||
16810 | if test -z "$have_u_intxx_t" ; then | ||
16811 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
16812 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | ||
16813 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
16814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16815 | else | ||
16816 | |||
16817 | cat >conftest.$ac_ext <<_ACEOF | ||
16818 | /* confdefs.h. */ | ||
16819 | _ACEOF | ||
16820 | cat confdefs.h >>conftest.$ac_ext | ||
16821 | cat >>conftest.$ac_ext <<_ACEOF | ||
16822 | /* end confdefs.h. */ | ||
16823 | |||
16824 | #include <sys/types.h> | ||
16825 | |||
16826 | int | ||
16827 | main () | ||
16828 | { | ||
16829 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
16830 | ; | ||
16831 | return 0; | ||
16832 | } | ||
16833 | _ACEOF | ||
16834 | rm -f conftest.$ac_objext | ||
16835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16836 | (eval $ac_compile) 2>conftest.er1 | ||
16837 | ac_status=$? | ||
16838 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16839 | rm -f conftest.er1 | ||
16840 | cat conftest.err >&5 | ||
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16842 | (exit $ac_status); } && | ||
16843 | { ac_try='test -z "$ac_c_werror_flag" | ||
16844 | || test ! -s conftest.err' | ||
16845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16846 | (eval $ac_try) 2>&5 | ||
16847 | ac_status=$? | ||
16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16849 | (exit $ac_status); }; } && | ||
16850 | { ac_try='test -s conftest.$ac_objext' | ||
16851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16852 | (eval $ac_try) 2>&5 | ||
16853 | ac_status=$? | ||
16854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16855 | (exit $ac_status); }; }; then | ||
16856 | ac_cv_have_uintxx_t="yes" | ||
16857 | else | ||
16858 | echo "$as_me: failed program was:" >&5 | ||
16859 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16860 | |||
16861 | ac_cv_have_uintxx_t="no" | ||
16862 | |||
16863 | fi | ||
16864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16865 | |||
16866 | fi | ||
16867 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
16868 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | ||
16869 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
16870 | cat >>confdefs.h <<\_ACEOF | ||
16871 | #define HAVE_UINTXX_T 1 | ||
16872 | _ACEOF | ||
16873 | |||
16874 | fi | ||
16875 | fi | ||
16876 | |||
16877 | if test -z "$have_uintxx_t" ; then | ||
16878 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
16879 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | ||
16880 | cat >conftest.$ac_ext <<_ACEOF | ||
16881 | /* confdefs.h. */ | ||
16882 | _ACEOF | ||
16883 | cat confdefs.h >>conftest.$ac_ext | ||
16884 | cat >>conftest.$ac_ext <<_ACEOF | ||
16885 | /* end confdefs.h. */ | ||
16886 | #include <stdint.h> | ||
16887 | int | ||
16888 | main () | ||
16889 | { | ||
16890 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
16891 | ; | ||
16892 | return 0; | ||
16893 | } | ||
16894 | _ACEOF | ||
16895 | rm -f conftest.$ac_objext | ||
16896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16897 | (eval $ac_compile) 2>conftest.er1 | ||
16898 | ac_status=$? | ||
16899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16900 | rm -f conftest.er1 | ||
16901 | cat conftest.err >&5 | ||
16902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16903 | (exit $ac_status); } && | ||
16904 | { ac_try='test -z "$ac_c_werror_flag" | ||
16905 | || test ! -s conftest.err' | ||
16906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16907 | (eval $ac_try) 2>&5 | ||
16908 | ac_status=$? | ||
16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16910 | (exit $ac_status); }; } && | ||
16911 | { ac_try='test -s conftest.$ac_objext' | ||
16912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16913 | (eval $ac_try) 2>&5 | ||
16914 | ac_status=$? | ||
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16916 | (exit $ac_status); }; }; then | ||
16917 | |||
16918 | cat >>confdefs.h <<\_ACEOF | ||
16919 | #define HAVE_UINTXX_T 1 | ||
16920 | _ACEOF | ||
16921 | |||
16922 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16923 | echo "${ECHO_T}yes" >&6 | ||
16924 | |||
16925 | else | ||
16926 | echo "$as_me: failed program was:" >&5 | ||
16927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16928 | |||
16929 | echo "$as_me:$LINENO: result: no" >&5 | ||
16930 | echo "${ECHO_T}no" >&6 | ||
16931 | |||
16932 | fi | ||
16933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16934 | fi | ||
16935 | |||
16936 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
16937 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
16938 | then | ||
16939 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
16940 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | ||
16941 | cat >conftest.$ac_ext <<_ACEOF | ||
16942 | /* confdefs.h. */ | ||
16943 | _ACEOF | ||
16944 | cat confdefs.h >>conftest.$ac_ext | ||
16945 | cat >>conftest.$ac_ext <<_ACEOF | ||
16946 | /* end confdefs.h. */ | ||
16947 | |||
16948 | #include <sys/bitypes.h> | ||
16949 | |||
16950 | int | ||
16951 | main () | ||
16952 | { | ||
16953 | |||
16954 | int8_t a; int16_t b; int32_t c; | ||
16955 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
16956 | a = b = c = e = f = g = 1; | ||
16957 | |||
16958 | ; | ||
16959 | return 0; | ||
16960 | } | ||
16961 | _ACEOF | ||
16962 | rm -f conftest.$ac_objext | ||
16963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
16964 | (eval $ac_compile) 2>conftest.er1 | ||
16965 | ac_status=$? | ||
16966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16967 | rm -f conftest.er1 | ||
16968 | cat conftest.err >&5 | ||
16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16970 | (exit $ac_status); } && | ||
16971 | { ac_try='test -z "$ac_c_werror_flag" | ||
16972 | || test ! -s conftest.err' | ||
16973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16974 | (eval $ac_try) 2>&5 | ||
16975 | ac_status=$? | ||
16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16977 | (exit $ac_status); }; } && | ||
16978 | { ac_try='test -s conftest.$ac_objext' | ||
16979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16980 | (eval $ac_try) 2>&5 | ||
16981 | ac_status=$? | ||
16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16983 | (exit $ac_status); }; }; then | ||
16984 | |||
16985 | cat >>confdefs.h <<\_ACEOF | ||
16986 | #define HAVE_U_INTXX_T 1 | ||
16987 | _ACEOF | ||
16988 | |||
16989 | cat >>confdefs.h <<\_ACEOF | ||
16990 | #define HAVE_INTXX_T 1 | ||
16991 | _ACEOF | ||
16992 | |||
16993 | echo "$as_me:$LINENO: result: yes" >&5 | ||
16994 | echo "${ECHO_T}yes" >&6 | ||
16995 | |||
16996 | else | ||
16997 | echo "$as_me: failed program was:" >&5 | ||
16998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16999 | |||
17000 | echo "$as_me:$LINENO: result: no" >&5 | ||
17001 | echo "${ECHO_T}no" >&6 | ||
17002 | |||
17003 | fi | ||
17004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17005 | fi | ||
17006 | |||
17007 | |||
17008 | echo "$as_me:$LINENO: checking for u_char" >&5 | ||
17009 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | ||
17010 | if test "${ac_cv_have_u_char+set}" = set; then | ||
17011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17012 | else | ||
17013 | |||
17014 | cat >conftest.$ac_ext <<_ACEOF | ||
17015 | /* confdefs.h. */ | ||
17016 | _ACEOF | ||
17017 | cat confdefs.h >>conftest.$ac_ext | ||
17018 | cat >>conftest.$ac_ext <<_ACEOF | ||
17019 | /* end confdefs.h. */ | ||
17020 | |||
17021 | #include <sys/types.h> | ||
17022 | |||
17023 | int | ||
17024 | main () | ||
17025 | { | ||
17026 | u_char foo; foo = 125; | ||
17027 | ; | ||
17028 | return 0; | ||
17029 | } | ||
17030 | _ACEOF | ||
17031 | rm -f conftest.$ac_objext | ||
17032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17033 | (eval $ac_compile) 2>conftest.er1 | ||
17034 | ac_status=$? | ||
17035 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17036 | rm -f conftest.er1 | ||
17037 | cat conftest.err >&5 | ||
17038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17039 | (exit $ac_status); } && | ||
17040 | { ac_try='test -z "$ac_c_werror_flag" | ||
17041 | || test ! -s conftest.err' | ||
17042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17043 | (eval $ac_try) 2>&5 | ||
17044 | ac_status=$? | ||
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17046 | (exit $ac_status); }; } && | ||
17047 | { ac_try='test -s conftest.$ac_objext' | ||
17048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17049 | (eval $ac_try) 2>&5 | ||
17050 | ac_status=$? | ||
17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17052 | (exit $ac_status); }; }; then | ||
17053 | ac_cv_have_u_char="yes" | ||
17054 | else | ||
17055 | echo "$as_me: failed program was:" >&5 | ||
17056 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17057 | |||
17058 | ac_cv_have_u_char="no" | ||
17059 | |||
17060 | fi | ||
17061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17062 | |||
17063 | fi | ||
17064 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
17065 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | ||
17066 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
17067 | cat >>confdefs.h <<\_ACEOF | ||
17068 | #define HAVE_U_CHAR 1 | ||
17069 | _ACEOF | ||
17070 | |||
17071 | fi | ||
17072 | |||
17073 | |||
17074 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
17075 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | ||
17076 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
17077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17078 | else | ||
17079 | cat >conftest.$ac_ext <<_ACEOF | ||
17080 | /* confdefs.h. */ | ||
17081 | _ACEOF | ||
17082 | cat confdefs.h >>conftest.$ac_ext | ||
17083 | cat >>conftest.$ac_ext <<_ACEOF | ||
17084 | /* end confdefs.h. */ | ||
17085 | #include <sys/types.h> | ||
17086 | #include <sys/socket.h> | ||
17087 | |||
17088 | int | ||
17089 | main () | ||
17090 | { | ||
17091 | if ((socklen_t *) 0) | ||
17092 | return 0; | ||
17093 | if (sizeof (socklen_t)) | ||
17094 | return 0; | ||
17095 | ; | ||
17096 | return 0; | ||
17097 | } | ||
17098 | _ACEOF | ||
17099 | rm -f conftest.$ac_objext | ||
17100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17101 | (eval $ac_compile) 2>conftest.er1 | ||
17102 | ac_status=$? | ||
17103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17104 | rm -f conftest.er1 | ||
17105 | cat conftest.err >&5 | ||
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17107 | (exit $ac_status); } && | ||
17108 | { ac_try='test -z "$ac_c_werror_flag" | ||
17109 | || test ! -s conftest.err' | ||
17110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17111 | (eval $ac_try) 2>&5 | ||
17112 | ac_status=$? | ||
17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17114 | (exit $ac_status); }; } && | ||
17115 | { ac_try='test -s conftest.$ac_objext' | ||
17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17117 | (eval $ac_try) 2>&5 | ||
17118 | ac_status=$? | ||
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17120 | (exit $ac_status); }; }; then | ||
17121 | ac_cv_type_socklen_t=yes | ||
17122 | else | ||
17123 | echo "$as_me: failed program was:" >&5 | ||
17124 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17125 | |||
17126 | ac_cv_type_socklen_t=no | ||
17127 | fi | ||
17128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17129 | fi | ||
17130 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
17131 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | ||
17132 | if test $ac_cv_type_socklen_t = yes; then | ||
17133 | : | ||
17134 | else | ||
17135 | |||
17136 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
17137 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | ||
17138 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
17139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17140 | else | ||
17141 | |||
17142 | # Systems have either "struct sockaddr *" or | ||
17143 | # "void *" as the second argument to getpeername | ||
17144 | curl_cv_socklen_t_equiv= | ||
17145 | for arg2 in "struct sockaddr" void; do | ||
17146 | for t in int size_t unsigned long "unsigned long"; do | ||
17147 | cat >conftest.$ac_ext <<_ACEOF | ||
17148 | /* confdefs.h. */ | ||
17149 | _ACEOF | ||
17150 | cat confdefs.h >>conftest.$ac_ext | ||
17151 | cat >>conftest.$ac_ext <<_ACEOF | ||
17152 | /* end confdefs.h. */ | ||
17153 | |||
17154 | #include <sys/types.h> | ||
17155 | #include <sys/socket.h> | ||
17156 | |||
17157 | int getpeername (int, $arg2 *, $t *); | ||
17158 | |||
17159 | int | ||
17160 | main () | ||
17161 | { | ||
17162 | |||
17163 | $t len; | ||
17164 | getpeername(0,0,&len); | ||
17165 | |||
17166 | ; | ||
17167 | return 0; | ||
17168 | } | ||
17169 | _ACEOF | ||
17170 | rm -f conftest.$ac_objext | ||
17171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17172 | (eval $ac_compile) 2>conftest.er1 | ||
17173 | ac_status=$? | ||
17174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17175 | rm -f conftest.er1 | ||
17176 | cat conftest.err >&5 | ||
17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17178 | (exit $ac_status); } && | ||
17179 | { ac_try='test -z "$ac_c_werror_flag" | ||
17180 | || test ! -s conftest.err' | ||
17181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17182 | (eval $ac_try) 2>&5 | ||
17183 | ac_status=$? | ||
17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17185 | (exit $ac_status); }; } && | ||
17186 | { ac_try='test -s conftest.$ac_objext' | ||
17187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17188 | (eval $ac_try) 2>&5 | ||
17189 | ac_status=$? | ||
17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17191 | (exit $ac_status); }; }; then | ||
17192 | |||
17193 | curl_cv_socklen_t_equiv="$t" | ||
17194 | break | ||
17195 | |||
17196 | else | ||
17197 | echo "$as_me: failed program was:" >&5 | ||
17198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17199 | |||
17200 | fi | ||
17201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17202 | done | ||
17203 | done | ||
17204 | |||
17205 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
17206 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
17207 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
17208 | { (exit 1); exit 1; }; } | ||
17209 | fi | ||
17210 | |||
17211 | fi | ||
17212 | |||
17213 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
17214 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | ||
17215 | |||
17216 | cat >>confdefs.h <<_ACEOF | ||
17217 | #define socklen_t $curl_cv_socklen_t_equiv | ||
17218 | _ACEOF | ||
17219 | |||
17220 | fi | ||
17221 | |||
17222 | |||
17223 | |||
17224 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
17225 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | ||
17226 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
17227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17228 | else | ||
17229 | cat >conftest.$ac_ext <<_ACEOF | ||
17230 | /* confdefs.h. */ | ||
17231 | _ACEOF | ||
17232 | cat confdefs.h >>conftest.$ac_ext | ||
17233 | cat >>conftest.$ac_ext <<_ACEOF | ||
17234 | /* end confdefs.h. */ | ||
17235 | #include <signal.h> | ||
17236 | |||
17237 | int | ||
17238 | main () | ||
17239 | { | ||
17240 | if ((sig_atomic_t *) 0) | ||
17241 | return 0; | ||
17242 | if (sizeof (sig_atomic_t)) | ||
17243 | return 0; | ||
17244 | ; | ||
17245 | return 0; | ||
17246 | } | ||
17247 | _ACEOF | ||
17248 | rm -f conftest.$ac_objext | ||
17249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17250 | (eval $ac_compile) 2>conftest.er1 | ||
17251 | ac_status=$? | ||
17252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17253 | rm -f conftest.er1 | ||
17254 | cat conftest.err >&5 | ||
17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17256 | (exit $ac_status); } && | ||
17257 | { ac_try='test -z "$ac_c_werror_flag" | ||
17258 | || test ! -s conftest.err' | ||
17259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17260 | (eval $ac_try) 2>&5 | ||
17261 | ac_status=$? | ||
17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17263 | (exit $ac_status); }; } && | ||
17264 | { ac_try='test -s conftest.$ac_objext' | ||
17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17266 | (eval $ac_try) 2>&5 | ||
17267 | ac_status=$? | ||
17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17269 | (exit $ac_status); }; }; then | ||
17270 | ac_cv_type_sig_atomic_t=yes | ||
17271 | else | ||
17272 | echo "$as_me: failed program was:" >&5 | ||
17273 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17274 | |||
17275 | ac_cv_type_sig_atomic_t=no | ||
17276 | fi | ||
17277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17278 | fi | ||
17279 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
17280 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | ||
17281 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
17282 | |||
17283 | cat >>confdefs.h <<_ACEOF | ||
17284 | #define HAVE_SIG_ATOMIC_T 1 | ||
17285 | _ACEOF | ||
17286 | |||
17287 | |||
17288 | fi | ||
17289 | |||
17290 | |||
17291 | echo "$as_me:$LINENO: checking for size_t" >&5 | ||
17292 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | ||
17293 | if test "${ac_cv_have_size_t+set}" = set; then | ||
17294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17295 | else | ||
17296 | |||
17297 | cat >conftest.$ac_ext <<_ACEOF | ||
17298 | /* confdefs.h. */ | ||
17299 | _ACEOF | ||
17300 | cat confdefs.h >>conftest.$ac_ext | ||
17301 | cat >>conftest.$ac_ext <<_ACEOF | ||
17302 | /* end confdefs.h. */ | ||
17303 | |||
17304 | #include <sys/types.h> | ||
17305 | |||
17306 | int | ||
17307 | main () | ||
17308 | { | ||
17309 | size_t foo; foo = 1235; | ||
17310 | ; | ||
17311 | return 0; | ||
17312 | } | ||
17313 | _ACEOF | ||
17314 | rm -f conftest.$ac_objext | ||
17315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17316 | (eval $ac_compile) 2>conftest.er1 | ||
17317 | ac_status=$? | ||
17318 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17319 | rm -f conftest.er1 | ||
17320 | cat conftest.err >&5 | ||
17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17322 | (exit $ac_status); } && | ||
17323 | { ac_try='test -z "$ac_c_werror_flag" | ||
17324 | || test ! -s conftest.err' | ||
17325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17326 | (eval $ac_try) 2>&5 | ||
17327 | ac_status=$? | ||
17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17329 | (exit $ac_status); }; } && | ||
17330 | { ac_try='test -s conftest.$ac_objext' | ||
17331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17332 | (eval $ac_try) 2>&5 | ||
17333 | ac_status=$? | ||
17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17335 | (exit $ac_status); }; }; then | ||
17336 | ac_cv_have_size_t="yes" | ||
17337 | else | ||
17338 | echo "$as_me: failed program was:" >&5 | ||
17339 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17340 | |||
17341 | ac_cv_have_size_t="no" | ||
17342 | |||
17343 | fi | ||
17344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17345 | |||
17346 | fi | ||
17347 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
17348 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | ||
17349 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
17350 | cat >>confdefs.h <<\_ACEOF | ||
17351 | #define HAVE_SIZE_T 1 | ||
17352 | _ACEOF | ||
17353 | |||
17354 | fi | ||
17355 | |||
17356 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
17357 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | ||
17358 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
17359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17360 | else | ||
17361 | |||
17362 | cat >conftest.$ac_ext <<_ACEOF | ||
17363 | /* confdefs.h. */ | ||
17364 | _ACEOF | ||
17365 | cat confdefs.h >>conftest.$ac_ext | ||
17366 | cat >>conftest.$ac_ext <<_ACEOF | ||
17367 | /* end confdefs.h. */ | ||
17368 | |||
17369 | #include <sys/types.h> | ||
17370 | |||
17371 | int | ||
17372 | main () | ||
17373 | { | ||
17374 | ssize_t foo; foo = 1235; | ||
17375 | ; | ||
17376 | return 0; | ||
17377 | } | ||
17378 | _ACEOF | ||
17379 | rm -f conftest.$ac_objext | ||
17380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17381 | (eval $ac_compile) 2>conftest.er1 | ||
17382 | ac_status=$? | ||
17383 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17384 | rm -f conftest.er1 | ||
17385 | cat conftest.err >&5 | ||
17386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17387 | (exit $ac_status); } && | ||
17388 | { ac_try='test -z "$ac_c_werror_flag" | ||
17389 | || test ! -s conftest.err' | ||
17390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17391 | (eval $ac_try) 2>&5 | ||
17392 | ac_status=$? | ||
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17394 | (exit $ac_status); }; } && | ||
17395 | { ac_try='test -s conftest.$ac_objext' | ||
17396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17397 | (eval $ac_try) 2>&5 | ||
17398 | ac_status=$? | ||
17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17400 | (exit $ac_status); }; }; then | ||
17401 | ac_cv_have_ssize_t="yes" | ||
17402 | else | ||
17403 | echo "$as_me: failed program was:" >&5 | ||
17404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17405 | |||
17406 | ac_cv_have_ssize_t="no" | ||
17407 | |||
17408 | fi | ||
17409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17410 | |||
17411 | fi | ||
17412 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
17413 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | ||
17414 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
17415 | cat >>confdefs.h <<\_ACEOF | ||
17416 | #define HAVE_SSIZE_T 1 | ||
17417 | _ACEOF | ||
17418 | |||
17419 | fi | ||
17420 | |||
17421 | echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
17422 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | ||
17423 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
17424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17425 | else | ||
17426 | |||
17427 | cat >conftest.$ac_ext <<_ACEOF | ||
17428 | /* confdefs.h. */ | ||
17429 | _ACEOF | ||
17430 | cat confdefs.h >>conftest.$ac_ext | ||
17431 | cat >>conftest.$ac_ext <<_ACEOF | ||
17432 | /* end confdefs.h. */ | ||
17433 | |||
17434 | #include <time.h> | ||
17435 | |||
17436 | int | ||
17437 | main () | ||
17438 | { | ||
17439 | clock_t foo; foo = 1235; | ||
17440 | ; | ||
17441 | return 0; | ||
17442 | } | ||
17443 | _ACEOF | ||
17444 | rm -f conftest.$ac_objext | ||
17445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17446 | (eval $ac_compile) 2>conftest.er1 | ||
17447 | ac_status=$? | ||
17448 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17449 | rm -f conftest.er1 | ||
17450 | cat conftest.err >&5 | ||
17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17452 | (exit $ac_status); } && | ||
17453 | { ac_try='test -z "$ac_c_werror_flag" | ||
17454 | || test ! -s conftest.err' | ||
17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17456 | (eval $ac_try) 2>&5 | ||
17457 | ac_status=$? | ||
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17459 | (exit $ac_status); }; } && | ||
17460 | { ac_try='test -s conftest.$ac_objext' | ||
17461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17462 | (eval $ac_try) 2>&5 | ||
17463 | ac_status=$? | ||
17464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17465 | (exit $ac_status); }; }; then | ||
17466 | ac_cv_have_clock_t="yes" | ||
17467 | else | ||
17468 | echo "$as_me: failed program was:" >&5 | ||
17469 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17470 | |||
17471 | ac_cv_have_clock_t="no" | ||
17472 | |||
17473 | fi | ||
17474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17475 | |||
17476 | fi | ||
17477 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
17478 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | ||
17479 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
17480 | cat >>confdefs.h <<\_ACEOF | ||
17481 | #define HAVE_CLOCK_T 1 | ||
17482 | _ACEOF | ||
17483 | |||
17484 | fi | ||
17485 | |||
17486 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
17487 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | ||
17488 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
17489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17490 | else | ||
17491 | |||
17492 | cat >conftest.$ac_ext <<_ACEOF | ||
17493 | /* confdefs.h. */ | ||
17494 | _ACEOF | ||
17495 | cat confdefs.h >>conftest.$ac_ext | ||
17496 | cat >>conftest.$ac_ext <<_ACEOF | ||
17497 | /* end confdefs.h. */ | ||
17498 | |||
17499 | #include <sys/types.h> | ||
17500 | #include <sys/socket.h> | ||
17501 | |||
17502 | int | ||
17503 | main () | ||
17504 | { | ||
17505 | sa_family_t foo; foo = 1235; | ||
17506 | ; | ||
17507 | return 0; | ||
17508 | } | ||
17509 | _ACEOF | ||
17510 | rm -f conftest.$ac_objext | ||
17511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17512 | (eval $ac_compile) 2>conftest.er1 | ||
17513 | ac_status=$? | ||
17514 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17515 | rm -f conftest.er1 | ||
17516 | cat conftest.err >&5 | ||
17517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17518 | (exit $ac_status); } && | ||
17519 | { ac_try='test -z "$ac_c_werror_flag" | ||
17520 | || test ! -s conftest.err' | ||
17521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17522 | (eval $ac_try) 2>&5 | ||
17523 | ac_status=$? | ||
17524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17525 | (exit $ac_status); }; } && | ||
17526 | { ac_try='test -s conftest.$ac_objext' | ||
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17528 | (eval $ac_try) 2>&5 | ||
17529 | ac_status=$? | ||
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17531 | (exit $ac_status); }; }; then | ||
17532 | ac_cv_have_sa_family_t="yes" | ||
17533 | else | ||
17534 | echo "$as_me: failed program was:" >&5 | ||
17535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17536 | |||
17537 | cat >conftest.$ac_ext <<_ACEOF | ||
17538 | /* confdefs.h. */ | ||
17539 | _ACEOF | ||
17540 | cat confdefs.h >>conftest.$ac_ext | ||
17541 | cat >>conftest.$ac_ext <<_ACEOF | ||
17542 | /* end confdefs.h. */ | ||
17543 | |||
17544 | #include <sys/types.h> | ||
17545 | #include <sys/socket.h> | ||
17546 | #include <netinet/in.h> | ||
17547 | |||
17548 | int | ||
17549 | main () | ||
17550 | { | ||
17551 | sa_family_t foo; foo = 1235; | ||
17552 | ; | ||
17553 | return 0; | ||
17554 | } | ||
17555 | _ACEOF | ||
17556 | rm -f conftest.$ac_objext | ||
17557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17558 | (eval $ac_compile) 2>conftest.er1 | ||
17559 | ac_status=$? | ||
17560 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17561 | rm -f conftest.er1 | ||
17562 | cat conftest.err >&5 | ||
17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17564 | (exit $ac_status); } && | ||
17565 | { ac_try='test -z "$ac_c_werror_flag" | ||
17566 | || test ! -s conftest.err' | ||
17567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17568 | (eval $ac_try) 2>&5 | ||
17569 | ac_status=$? | ||
17570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17571 | (exit $ac_status); }; } && | ||
17572 | { ac_try='test -s conftest.$ac_objext' | ||
17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17574 | (eval $ac_try) 2>&5 | ||
17575 | ac_status=$? | ||
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17577 | (exit $ac_status); }; }; then | ||
17578 | ac_cv_have_sa_family_t="yes" | ||
17579 | else | ||
17580 | echo "$as_me: failed program was:" >&5 | ||
17581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17582 | |||
17583 | ac_cv_have_sa_family_t="no" | ||
17584 | |||
17585 | fi | ||
17586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17587 | |||
17588 | fi | ||
17589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17590 | |||
17591 | fi | ||
17592 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
17593 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | ||
17594 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
17595 | cat >>confdefs.h <<\_ACEOF | ||
17596 | #define HAVE_SA_FAMILY_T 1 | ||
17597 | _ACEOF | ||
17598 | |||
17599 | fi | ||
17600 | |||
17601 | echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
17602 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | ||
17603 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
17604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17605 | else | ||
17606 | |||
17607 | cat >conftest.$ac_ext <<_ACEOF | ||
17608 | /* confdefs.h. */ | ||
17609 | _ACEOF | ||
17610 | cat confdefs.h >>conftest.$ac_ext | ||
17611 | cat >>conftest.$ac_ext <<_ACEOF | ||
17612 | /* end confdefs.h. */ | ||
17613 | |||
17614 | #include <sys/types.h> | ||
17615 | |||
17616 | int | ||
17617 | main () | ||
17618 | { | ||
17619 | pid_t foo; foo = 1235; | ||
17620 | ; | ||
17621 | return 0; | ||
17622 | } | ||
17623 | _ACEOF | ||
17624 | rm -f conftest.$ac_objext | ||
17625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17626 | (eval $ac_compile) 2>conftest.er1 | ||
17627 | ac_status=$? | ||
17628 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17629 | rm -f conftest.er1 | ||
17630 | cat conftest.err >&5 | ||
17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17632 | (exit $ac_status); } && | ||
17633 | { ac_try='test -z "$ac_c_werror_flag" | ||
17634 | || test ! -s conftest.err' | ||
17635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17636 | (eval $ac_try) 2>&5 | ||
17637 | ac_status=$? | ||
17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17639 | (exit $ac_status); }; } && | ||
17640 | { ac_try='test -s conftest.$ac_objext' | ||
17641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17642 | (eval $ac_try) 2>&5 | ||
17643 | ac_status=$? | ||
17644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17645 | (exit $ac_status); }; }; then | ||
17646 | ac_cv_have_pid_t="yes" | ||
17647 | else | ||
17648 | echo "$as_me: failed program was:" >&5 | ||
17649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17650 | |||
17651 | ac_cv_have_pid_t="no" | ||
17652 | |||
17653 | fi | ||
17654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17655 | |||
17656 | fi | ||
17657 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
17658 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | ||
17659 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
17660 | cat >>confdefs.h <<\_ACEOF | ||
17661 | #define HAVE_PID_T 1 | ||
17662 | _ACEOF | ||
17663 | |||
17664 | fi | ||
17665 | |||
17666 | echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
17667 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | ||
17668 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
17669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17670 | else | ||
17671 | |||
17672 | cat >conftest.$ac_ext <<_ACEOF | ||
17673 | /* confdefs.h. */ | ||
17674 | _ACEOF | ||
17675 | cat confdefs.h >>conftest.$ac_ext | ||
17676 | cat >>conftest.$ac_ext <<_ACEOF | ||
17677 | /* end confdefs.h. */ | ||
17678 | |||
17679 | #include <sys/types.h> | ||
17680 | |||
17681 | int | ||
17682 | main () | ||
17683 | { | ||
17684 | mode_t foo; foo = 1235; | ||
17685 | ; | ||
17686 | return 0; | ||
17687 | } | ||
17688 | _ACEOF | ||
17689 | rm -f conftest.$ac_objext | ||
17690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17691 | (eval $ac_compile) 2>conftest.er1 | ||
17692 | ac_status=$? | ||
17693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17694 | rm -f conftest.er1 | ||
17695 | cat conftest.err >&5 | ||
17696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17697 | (exit $ac_status); } && | ||
17698 | { ac_try='test -z "$ac_c_werror_flag" | ||
17699 | || test ! -s conftest.err' | ||
17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17701 | (eval $ac_try) 2>&5 | ||
17702 | ac_status=$? | ||
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17704 | (exit $ac_status); }; } && | ||
17705 | { ac_try='test -s conftest.$ac_objext' | ||
17706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17707 | (eval $ac_try) 2>&5 | ||
17708 | ac_status=$? | ||
17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17710 | (exit $ac_status); }; }; then | ||
17711 | ac_cv_have_mode_t="yes" | ||
17712 | else | ||
17713 | echo "$as_me: failed program was:" >&5 | ||
17714 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17715 | |||
17716 | ac_cv_have_mode_t="no" | ||
17717 | |||
17718 | fi | ||
17719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17720 | |||
17721 | fi | ||
17722 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
17723 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | ||
17724 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
17725 | cat >>confdefs.h <<\_ACEOF | ||
17726 | #define HAVE_MODE_T 1 | ||
17727 | _ACEOF | ||
17728 | |||
17729 | fi | ||
17730 | |||
17731 | |||
17732 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
17733 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | ||
17734 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
17735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17736 | else | ||
17737 | |||
17738 | cat >conftest.$ac_ext <<_ACEOF | ||
17739 | /* confdefs.h. */ | ||
17740 | _ACEOF | ||
17741 | cat confdefs.h >>conftest.$ac_ext | ||
17742 | cat >>conftest.$ac_ext <<_ACEOF | ||
17743 | /* end confdefs.h. */ | ||
17744 | |||
17745 | #include <sys/types.h> | ||
17746 | #include <sys/socket.h> | ||
17747 | |||
17748 | int | ||
17749 | main () | ||
17750 | { | ||
17751 | struct sockaddr_storage s; | ||
17752 | ; | ||
17753 | return 0; | ||
17754 | } | ||
17755 | _ACEOF | ||
17756 | rm -f conftest.$ac_objext | ||
17757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17758 | (eval $ac_compile) 2>conftest.er1 | ||
17759 | ac_status=$? | ||
17760 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17761 | rm -f conftest.er1 | ||
17762 | cat conftest.err >&5 | ||
17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17764 | (exit $ac_status); } && | ||
17765 | { ac_try='test -z "$ac_c_werror_flag" | ||
17766 | || test ! -s conftest.err' | ||
17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17768 | (eval $ac_try) 2>&5 | ||
17769 | ac_status=$? | ||
17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17771 | (exit $ac_status); }; } && | ||
17772 | { ac_try='test -s conftest.$ac_objext' | ||
17773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17774 | (eval $ac_try) 2>&5 | ||
17775 | ac_status=$? | ||
17776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17777 | (exit $ac_status); }; }; then | ||
17778 | ac_cv_have_struct_sockaddr_storage="yes" | ||
17779 | else | ||
17780 | echo "$as_me: failed program was:" >&5 | ||
17781 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17782 | |||
17783 | ac_cv_have_struct_sockaddr_storage="no" | ||
17784 | |||
17785 | fi | ||
17786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17787 | |||
17788 | fi | ||
17789 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
17790 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | ||
17791 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
17792 | cat >>confdefs.h <<\_ACEOF | ||
17793 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
17794 | _ACEOF | ||
17795 | |||
17796 | fi | ||
17797 | |||
17798 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
17799 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | ||
17800 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
17801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17802 | else | ||
17803 | |||
17804 | cat >conftest.$ac_ext <<_ACEOF | ||
17805 | /* confdefs.h. */ | ||
17806 | _ACEOF | ||
17807 | cat confdefs.h >>conftest.$ac_ext | ||
17808 | cat >>conftest.$ac_ext <<_ACEOF | ||
17809 | /* end confdefs.h. */ | ||
17810 | |||
17811 | #include <sys/types.h> | ||
17812 | #include <netinet/in.h> | ||
17813 | |||
17814 | int | ||
17815 | main () | ||
17816 | { | ||
17817 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
17818 | ; | ||
17819 | return 0; | ||
17820 | } | ||
17821 | _ACEOF | ||
17822 | rm -f conftest.$ac_objext | ||
17823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17824 | (eval $ac_compile) 2>conftest.er1 | ||
17825 | ac_status=$? | ||
17826 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17827 | rm -f conftest.er1 | ||
17828 | cat conftest.err >&5 | ||
17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17830 | (exit $ac_status); } && | ||
17831 | { ac_try='test -z "$ac_c_werror_flag" | ||
17832 | || test ! -s conftest.err' | ||
17833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17834 | (eval $ac_try) 2>&5 | ||
17835 | ac_status=$? | ||
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17837 | (exit $ac_status); }; } && | ||
17838 | { ac_try='test -s conftest.$ac_objext' | ||
17839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17840 | (eval $ac_try) 2>&5 | ||
17841 | ac_status=$? | ||
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17843 | (exit $ac_status); }; }; then | ||
17844 | ac_cv_have_struct_sockaddr_in6="yes" | ||
17845 | else | ||
17846 | echo "$as_me: failed program was:" >&5 | ||
17847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17848 | |||
17849 | ac_cv_have_struct_sockaddr_in6="no" | ||
17850 | |||
17851 | fi | ||
17852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17853 | |||
17854 | fi | ||
17855 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
17856 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | ||
17857 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
17858 | cat >>confdefs.h <<\_ACEOF | ||
17859 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
17860 | _ACEOF | ||
17861 | |||
17862 | fi | ||
17863 | |||
17864 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
17865 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | ||
17866 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
17867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17868 | else | ||
17869 | |||
17870 | cat >conftest.$ac_ext <<_ACEOF | ||
17871 | /* confdefs.h. */ | ||
17872 | _ACEOF | ||
17873 | cat confdefs.h >>conftest.$ac_ext | ||
17874 | cat >>conftest.$ac_ext <<_ACEOF | ||
17875 | /* end confdefs.h. */ | ||
17876 | |||
17877 | #include <sys/types.h> | ||
17878 | #include <netinet/in.h> | ||
17879 | |||
17880 | int | ||
17881 | main () | ||
17882 | { | ||
17883 | struct in6_addr s; s.s6_addr[0] = 0; | ||
17884 | ; | ||
17885 | return 0; | ||
17886 | } | ||
17887 | _ACEOF | ||
17888 | rm -f conftest.$ac_objext | ||
17889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17890 | (eval $ac_compile) 2>conftest.er1 | ||
17891 | ac_status=$? | ||
17892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17893 | rm -f conftest.er1 | ||
17894 | cat conftest.err >&5 | ||
17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17896 | (exit $ac_status); } && | ||
17897 | { ac_try='test -z "$ac_c_werror_flag" | ||
17898 | || test ! -s conftest.err' | ||
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17900 | (eval $ac_try) 2>&5 | ||
17901 | ac_status=$? | ||
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17903 | (exit $ac_status); }; } && | ||
17904 | { ac_try='test -s conftest.$ac_objext' | ||
17905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17906 | (eval $ac_try) 2>&5 | ||
17907 | ac_status=$? | ||
17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17909 | (exit $ac_status); }; }; then | ||
17910 | ac_cv_have_struct_in6_addr="yes" | ||
17911 | else | ||
17912 | echo "$as_me: failed program was:" >&5 | ||
17913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17914 | |||
17915 | ac_cv_have_struct_in6_addr="no" | ||
17916 | |||
17917 | fi | ||
17918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17919 | |||
17920 | fi | ||
17921 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
17922 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | ||
17923 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
17924 | cat >>confdefs.h <<\_ACEOF | ||
17925 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
17926 | _ACEOF | ||
17927 | |||
17928 | fi | ||
17929 | |||
17930 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
17931 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | ||
17932 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
17933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17934 | else | ||
17935 | |||
17936 | cat >conftest.$ac_ext <<_ACEOF | ||
17937 | /* confdefs.h. */ | ||
17938 | _ACEOF | ||
17939 | cat confdefs.h >>conftest.$ac_ext | ||
17940 | cat >>conftest.$ac_ext <<_ACEOF | ||
17941 | /* end confdefs.h. */ | ||
17942 | |||
17943 | #include <sys/types.h> | ||
17944 | #include <sys/socket.h> | ||
17945 | #include <netdb.h> | ||
17946 | |||
17947 | int | ||
17948 | main () | ||
17949 | { | ||
17950 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
17951 | ; | ||
17952 | return 0; | ||
17953 | } | ||
17954 | _ACEOF | ||
17955 | rm -f conftest.$ac_objext | ||
17956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17957 | (eval $ac_compile) 2>conftest.er1 | ||
17958 | ac_status=$? | ||
17959 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17960 | rm -f conftest.er1 | ||
17961 | cat conftest.err >&5 | ||
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17963 | (exit $ac_status); } && | ||
17964 | { ac_try='test -z "$ac_c_werror_flag" | ||
17965 | || test ! -s conftest.err' | ||
17966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17967 | (eval $ac_try) 2>&5 | ||
17968 | ac_status=$? | ||
17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17970 | (exit $ac_status); }; } && | ||
17971 | { ac_try='test -s conftest.$ac_objext' | ||
17972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17973 | (eval $ac_try) 2>&5 | ||
17974 | ac_status=$? | ||
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17976 | (exit $ac_status); }; }; then | ||
17977 | ac_cv_have_struct_addrinfo="yes" | ||
17978 | else | ||
17979 | echo "$as_me: failed program was:" >&5 | ||
17980 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17981 | |||
17982 | ac_cv_have_struct_addrinfo="no" | ||
17983 | |||
17984 | fi | ||
17985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17986 | |||
17987 | fi | ||
17988 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
17989 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | ||
17990 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
17991 | cat >>confdefs.h <<\_ACEOF | ||
17992 | #define HAVE_STRUCT_ADDRINFO 1 | ||
17993 | _ACEOF | ||
17994 | |||
17995 | fi | ||
17996 | |||
17997 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
17998 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | ||
17999 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
18000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18001 | else | ||
18002 | |||
18003 | cat >conftest.$ac_ext <<_ACEOF | ||
18004 | /* confdefs.h. */ | ||
18005 | _ACEOF | ||
18006 | cat confdefs.h >>conftest.$ac_ext | ||
18007 | cat >>conftest.$ac_ext <<_ACEOF | ||
18008 | /* end confdefs.h. */ | ||
18009 | #include <sys/time.h> | ||
18010 | int | ||
18011 | main () | ||
18012 | { | ||
18013 | struct timeval tv; tv.tv_sec = 1; | ||
18014 | ; | ||
18015 | return 0; | ||
18016 | } | ||
18017 | _ACEOF | ||
18018 | rm -f conftest.$ac_objext | ||
18019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18020 | (eval $ac_compile) 2>conftest.er1 | ||
18021 | ac_status=$? | ||
18022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18023 | rm -f conftest.er1 | ||
18024 | cat conftest.err >&5 | ||
18025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18026 | (exit $ac_status); } && | ||
18027 | { ac_try='test -z "$ac_c_werror_flag" | ||
18028 | || test ! -s conftest.err' | ||
18029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18030 | (eval $ac_try) 2>&5 | ||
18031 | ac_status=$? | ||
18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18033 | (exit $ac_status); }; } && | ||
18034 | { ac_try='test -s conftest.$ac_objext' | ||
18035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18036 | (eval $ac_try) 2>&5 | ||
18037 | ac_status=$? | ||
18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18039 | (exit $ac_status); }; }; then | ||
18040 | ac_cv_have_struct_timeval="yes" | ||
18041 | else | ||
18042 | echo "$as_me: failed program was:" >&5 | ||
18043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18044 | |||
18045 | ac_cv_have_struct_timeval="no" | ||
18046 | |||
18047 | fi | ||
18048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18049 | |||
18050 | fi | ||
18051 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
18052 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | ||
18053 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
18054 | cat >>confdefs.h <<\_ACEOF | ||
18055 | #define HAVE_STRUCT_TIMEVAL 1 | ||
18056 | _ACEOF | ||
18057 | |||
18058 | have_struct_timeval=1 | ||
18059 | fi | ||
18060 | |||
18061 | echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
18062 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 | ||
18063 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
18064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18065 | else | ||
18066 | cat >conftest.$ac_ext <<_ACEOF | ||
18067 | /* confdefs.h. */ | ||
18068 | _ACEOF | ||
18069 | cat confdefs.h >>conftest.$ac_ext | ||
18070 | cat >>conftest.$ac_ext <<_ACEOF | ||
18071 | /* end confdefs.h. */ | ||
18072 | $ac_includes_default | ||
18073 | int | ||
18074 | main () | ||
18075 | { | ||
18076 | if ((struct timespec *) 0) | ||
18077 | return 0; | ||
18078 | if (sizeof (struct timespec)) | ||
18079 | return 0; | ||
18080 | ; | ||
18081 | return 0; | ||
18082 | } | ||
18083 | _ACEOF | ||
18084 | rm -f conftest.$ac_objext | ||
18085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18086 | (eval $ac_compile) 2>conftest.er1 | ||
18087 | ac_status=$? | ||
18088 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18089 | rm -f conftest.er1 | ||
18090 | cat conftest.err >&5 | ||
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18092 | (exit $ac_status); } && | ||
18093 | { ac_try='test -z "$ac_c_werror_flag" | ||
18094 | || test ! -s conftest.err' | ||
18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18096 | (eval $ac_try) 2>&5 | ||
18097 | ac_status=$? | ||
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18099 | (exit $ac_status); }; } && | ||
18100 | { ac_try='test -s conftest.$ac_objext' | ||
18101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18102 | (eval $ac_try) 2>&5 | ||
18103 | ac_status=$? | ||
18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18105 | (exit $ac_status); }; }; then | ||
18106 | ac_cv_type_struct_timespec=yes | ||
18107 | else | ||
18108 | echo "$as_me: failed program was:" >&5 | ||
18109 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18110 | |||
18111 | ac_cv_type_struct_timespec=no | ||
18112 | fi | ||
18113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18114 | fi | ||
18115 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
18116 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6 | ||
18117 | if test $ac_cv_type_struct_timespec = yes; then | ||
18118 | |||
18119 | cat >>confdefs.h <<_ACEOF | ||
18120 | #define HAVE_STRUCT_TIMESPEC 1 | ||
18121 | _ACEOF | ||
18122 | |||
18123 | |||
18124 | fi | ||
18125 | |||
18126 | |||
18127 | # We need int64_t or else certian parts of the compile will fail. | ||
18128 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
18129 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
18130 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
18131 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
18132 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
18133 | echo "" | ||
18134 | exit 1; | ||
18135 | else | ||
18136 | if test "$cross_compiling" = yes; then | ||
18137 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
18138 | See \`config.log' for more details." >&5 | ||
18139 | echo "$as_me: error: cannot run test program while cross compiling | ||
18140 | See \`config.log' for more details." >&2;} | ||
18141 | { (exit 1); exit 1; }; } | ||
18142 | else | ||
18143 | cat >conftest.$ac_ext <<_ACEOF | ||
18144 | /* confdefs.h. */ | ||
18145 | _ACEOF | ||
18146 | cat confdefs.h >>conftest.$ac_ext | ||
18147 | cat >>conftest.$ac_ext <<_ACEOF | ||
18148 | /* end confdefs.h. */ | ||
18149 | |||
18150 | #include <stdio.h> | ||
18151 | #include <string.h> | ||
18152 | #ifdef HAVE_SNPRINTF | ||
18153 | main() | ||
18154 | { | ||
18155 | char buf[50]; | ||
18156 | char expected_out[50]; | ||
18157 | int mazsize = 50 ; | ||
18158 | #if (SIZEOF_LONG_INT == 8) | ||
18159 | long int num = 0x7fffffffffffffff; | ||
18160 | #else | ||
18161 | long long num = 0x7fffffffffffffffll; | ||
18162 | #endif | ||
18163 | strcpy(expected_out, "9223372036854775807"); | ||
18164 | snprintf(buf, mazsize, "%lld", num); | ||
18165 | if(strcmp(buf, expected_out) != 0) | ||
18166 | exit(1); | ||
18167 | exit(0); | ||
18168 | } | ||
18169 | #else | ||
18170 | main() { exit(0); } | ||
18171 | #endif | ||
18172 | |||
18173 | _ACEOF | ||
18174 | rm -f conftest$ac_exeext | ||
18175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18176 | (eval $ac_link) 2>&5 | ||
18177 | ac_status=$? | ||
18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18181 | (eval $ac_try) 2>&5 | ||
18182 | ac_status=$? | ||
18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18184 | (exit $ac_status); }; }; then | ||
18185 | true | ||
18186 | else | ||
18187 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18188 | echo "$as_me: failed program was:" >&5 | ||
18189 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18190 | |||
18191 | ( exit $ac_status ) | ||
18192 | cat >>confdefs.h <<\_ACEOF | ||
18193 | #define BROKEN_SNPRINTF 1 | ||
18194 | _ACEOF | ||
18195 | |||
18196 | |||
18197 | fi | ||
18198 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18199 | fi | ||
18200 | fi | ||
18201 | |||
18202 | |||
18203 | # look for field 'ut_host' in header 'utmp.h' | ||
18204 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18205 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
18206 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
18207 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | ||
18208 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18210 | else | ||
18211 | |||
18212 | cat >conftest.$ac_ext <<_ACEOF | ||
18213 | /* confdefs.h. */ | ||
18214 | _ACEOF | ||
18215 | cat confdefs.h >>conftest.$ac_ext | ||
18216 | cat >>conftest.$ac_ext <<_ACEOF | ||
18217 | /* end confdefs.h. */ | ||
18218 | #include <utmp.h> | ||
18219 | |||
18220 | _ACEOF | ||
18221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18222 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
18223 | eval "$ossh_varname=yes" | ||
18224 | else | ||
18225 | eval "$ossh_varname=no" | ||
18226 | fi | ||
18227 | rm -f conftest* | ||
18228 | |||
18229 | fi | ||
18230 | |||
18231 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18232 | if test -n "`echo $ossh_varname`"; then | ||
18233 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18234 | echo "${ECHO_T}$ossh_result" >&6 | ||
18235 | if test "x$ossh_result" = "xyes"; then | ||
18236 | cat >>confdefs.h <<\_ACEOF | ||
18237 | #define HAVE_HOST_IN_UTMP 1 | ||
18238 | _ACEOF | ||
18239 | |||
18240 | fi | ||
18241 | else | ||
18242 | echo "$as_me:$LINENO: result: no" >&5 | ||
18243 | echo "${ECHO_T}no" >&6 | ||
18244 | fi | ||
18245 | |||
18246 | |||
18247 | # look for field 'ut_host' in header 'utmpx.h' | ||
18248 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18249 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
18250 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
18251 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | ||
18252 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18254 | else | ||
18255 | |||
18256 | cat >conftest.$ac_ext <<_ACEOF | ||
18257 | /* confdefs.h. */ | ||
18258 | _ACEOF | ||
18259 | cat confdefs.h >>conftest.$ac_ext | ||
18260 | cat >>conftest.$ac_ext <<_ACEOF | ||
18261 | /* end confdefs.h. */ | ||
18262 | #include <utmpx.h> | ||
18263 | |||
18264 | _ACEOF | ||
18265 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18266 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
18267 | eval "$ossh_varname=yes" | ||
18268 | else | ||
18269 | eval "$ossh_varname=no" | ||
18270 | fi | ||
18271 | rm -f conftest* | ||
18272 | |||
18273 | fi | ||
18274 | |||
18275 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18276 | if test -n "`echo $ossh_varname`"; then | ||
18277 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18278 | echo "${ECHO_T}$ossh_result" >&6 | ||
18279 | if test "x$ossh_result" = "xyes"; then | ||
18280 | cat >>confdefs.h <<\_ACEOF | ||
18281 | #define HAVE_HOST_IN_UTMPX 1 | ||
18282 | _ACEOF | ||
18283 | |||
18284 | fi | ||
18285 | else | ||
18286 | echo "$as_me:$LINENO: result: no" >&5 | ||
18287 | echo "${ECHO_T}no" >&6 | ||
18288 | fi | ||
18289 | |||
18290 | |||
18291 | # look for field 'syslen' in header 'utmpx.h' | ||
18292 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18293 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
18294 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
18295 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | ||
18296 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18298 | else | ||
18299 | |||
18300 | cat >conftest.$ac_ext <<_ACEOF | ||
18301 | /* confdefs.h. */ | ||
18302 | _ACEOF | ||
18303 | cat confdefs.h >>conftest.$ac_ext | ||
18304 | cat >>conftest.$ac_ext <<_ACEOF | ||
18305 | /* end confdefs.h. */ | ||
18306 | #include <utmpx.h> | ||
18307 | |||
18308 | _ACEOF | ||
18309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18310 | $EGREP "syslen" >/dev/null 2>&1; then | ||
18311 | eval "$ossh_varname=yes" | ||
18312 | else | ||
18313 | eval "$ossh_varname=no" | ||
18314 | fi | ||
18315 | rm -f conftest* | ||
18316 | |||
18317 | fi | ||
18318 | |||
18319 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18320 | if test -n "`echo $ossh_varname`"; then | ||
18321 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18322 | echo "${ECHO_T}$ossh_result" >&6 | ||
18323 | if test "x$ossh_result" = "xyes"; then | ||
18324 | cat >>confdefs.h <<\_ACEOF | ||
18325 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
18326 | _ACEOF | ||
18327 | |||
18328 | fi | ||
18329 | else | ||
18330 | echo "$as_me:$LINENO: result: no" >&5 | ||
18331 | echo "${ECHO_T}no" >&6 | ||
18332 | fi | ||
18333 | |||
18334 | |||
18335 | # look for field 'ut_pid' in header 'utmp.h' | ||
18336 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18337 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
18338 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
18339 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | ||
18340 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18342 | else | ||
18343 | |||
18344 | cat >conftest.$ac_ext <<_ACEOF | ||
18345 | /* confdefs.h. */ | ||
18346 | _ACEOF | ||
18347 | cat confdefs.h >>conftest.$ac_ext | ||
18348 | cat >>conftest.$ac_ext <<_ACEOF | ||
18349 | /* end confdefs.h. */ | ||
18350 | #include <utmp.h> | ||
18351 | |||
18352 | _ACEOF | ||
18353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18354 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
18355 | eval "$ossh_varname=yes" | ||
18356 | else | ||
18357 | eval "$ossh_varname=no" | ||
18358 | fi | ||
18359 | rm -f conftest* | ||
18360 | |||
18361 | fi | ||
18362 | |||
18363 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18364 | if test -n "`echo $ossh_varname`"; then | ||
18365 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18366 | echo "${ECHO_T}$ossh_result" >&6 | ||
18367 | if test "x$ossh_result" = "xyes"; then | ||
18368 | cat >>confdefs.h <<\_ACEOF | ||
18369 | #define HAVE_PID_IN_UTMP 1 | ||
18370 | _ACEOF | ||
18371 | |||
18372 | fi | ||
18373 | else | ||
18374 | echo "$as_me:$LINENO: result: no" >&5 | ||
18375 | echo "${ECHO_T}no" >&6 | ||
18376 | fi | ||
18377 | |||
18378 | |||
18379 | # look for field 'ut_type' in header 'utmp.h' | ||
18380 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18381 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
18382 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
18383 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | ||
18384 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18386 | else | ||
18387 | |||
18388 | cat >conftest.$ac_ext <<_ACEOF | ||
18389 | /* confdefs.h. */ | ||
18390 | _ACEOF | ||
18391 | cat confdefs.h >>conftest.$ac_ext | ||
18392 | cat >>conftest.$ac_ext <<_ACEOF | ||
18393 | /* end confdefs.h. */ | ||
18394 | #include <utmp.h> | ||
18395 | |||
18396 | _ACEOF | ||
18397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18398 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
18399 | eval "$ossh_varname=yes" | ||
18400 | else | ||
18401 | eval "$ossh_varname=no" | ||
18402 | fi | ||
18403 | rm -f conftest* | ||
18404 | |||
18405 | fi | ||
18406 | |||
18407 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18408 | if test -n "`echo $ossh_varname`"; then | ||
18409 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18410 | echo "${ECHO_T}$ossh_result" >&6 | ||
18411 | if test "x$ossh_result" = "xyes"; then | ||
18412 | cat >>confdefs.h <<\_ACEOF | ||
18413 | #define HAVE_TYPE_IN_UTMP 1 | ||
18414 | _ACEOF | ||
18415 | |||
18416 | fi | ||
18417 | else | ||
18418 | echo "$as_me:$LINENO: result: no" >&5 | ||
18419 | echo "${ECHO_T}no" >&6 | ||
18420 | fi | ||
18421 | |||
18422 | |||
18423 | # look for field 'ut_type' in header 'utmpx.h' | ||
18424 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18425 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
18426 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
18427 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | ||
18428 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18430 | else | ||
18431 | |||
18432 | cat >conftest.$ac_ext <<_ACEOF | ||
18433 | /* confdefs.h. */ | ||
18434 | _ACEOF | ||
18435 | cat confdefs.h >>conftest.$ac_ext | ||
18436 | cat >>conftest.$ac_ext <<_ACEOF | ||
18437 | /* end confdefs.h. */ | ||
18438 | #include <utmpx.h> | ||
18439 | |||
18440 | _ACEOF | ||
18441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18442 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
18443 | eval "$ossh_varname=yes" | ||
18444 | else | ||
18445 | eval "$ossh_varname=no" | ||
18446 | fi | ||
18447 | rm -f conftest* | ||
18448 | |||
18449 | fi | ||
18450 | |||
18451 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18452 | if test -n "`echo $ossh_varname`"; then | ||
18453 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18454 | echo "${ECHO_T}$ossh_result" >&6 | ||
18455 | if test "x$ossh_result" = "xyes"; then | ||
18456 | cat >>confdefs.h <<\_ACEOF | ||
18457 | #define HAVE_TYPE_IN_UTMPX 1 | ||
18458 | _ACEOF | ||
18459 | |||
18460 | fi | ||
18461 | else | ||
18462 | echo "$as_me:$LINENO: result: no" >&5 | ||
18463 | echo "${ECHO_T}no" >&6 | ||
18464 | fi | ||
18465 | |||
18466 | |||
18467 | # look for field 'ut_tv' in header 'utmp.h' | ||
18468 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18469 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
18470 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
18471 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | ||
18472 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18474 | else | ||
18475 | |||
18476 | cat >conftest.$ac_ext <<_ACEOF | ||
18477 | /* confdefs.h. */ | ||
18478 | _ACEOF | ||
18479 | cat confdefs.h >>conftest.$ac_ext | ||
18480 | cat >>conftest.$ac_ext <<_ACEOF | ||
18481 | /* end confdefs.h. */ | ||
18482 | #include <utmp.h> | ||
18483 | |||
18484 | _ACEOF | ||
18485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18486 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
18487 | eval "$ossh_varname=yes" | ||
18488 | else | ||
18489 | eval "$ossh_varname=no" | ||
18490 | fi | ||
18491 | rm -f conftest* | ||
18492 | |||
18493 | fi | ||
18494 | |||
18495 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18496 | if test -n "`echo $ossh_varname`"; then | ||
18497 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18498 | echo "${ECHO_T}$ossh_result" >&6 | ||
18499 | if test "x$ossh_result" = "xyes"; then | ||
18500 | cat >>confdefs.h <<\_ACEOF | ||
18501 | #define HAVE_TV_IN_UTMP 1 | ||
18502 | _ACEOF | ||
18503 | |||
18504 | fi | ||
18505 | else | ||
18506 | echo "$as_me:$LINENO: result: no" >&5 | ||
18507 | echo "${ECHO_T}no" >&6 | ||
18508 | fi | ||
18509 | |||
18510 | |||
18511 | # look for field 'ut_id' in header 'utmp.h' | ||
18512 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18513 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
18514 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
18515 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | ||
18516 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18518 | else | ||
18519 | |||
18520 | cat >conftest.$ac_ext <<_ACEOF | ||
18521 | /* confdefs.h. */ | ||
18522 | _ACEOF | ||
18523 | cat confdefs.h >>conftest.$ac_ext | ||
18524 | cat >>conftest.$ac_ext <<_ACEOF | ||
18525 | /* end confdefs.h. */ | ||
18526 | #include <utmp.h> | ||
18527 | |||
18528 | _ACEOF | ||
18529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18530 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
18531 | eval "$ossh_varname=yes" | ||
18532 | else | ||
18533 | eval "$ossh_varname=no" | ||
18534 | fi | ||
18535 | rm -f conftest* | ||
18536 | |||
18537 | fi | ||
18538 | |||
18539 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18540 | if test -n "`echo $ossh_varname`"; then | ||
18541 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18542 | echo "${ECHO_T}$ossh_result" >&6 | ||
18543 | if test "x$ossh_result" = "xyes"; then | ||
18544 | cat >>confdefs.h <<\_ACEOF | ||
18545 | #define HAVE_ID_IN_UTMP 1 | ||
18546 | _ACEOF | ||
18547 | |||
18548 | fi | ||
18549 | else | ||
18550 | echo "$as_me:$LINENO: result: no" >&5 | ||
18551 | echo "${ECHO_T}no" >&6 | ||
18552 | fi | ||
18553 | |||
18554 | |||
18555 | # look for field 'ut_id' in header 'utmpx.h' | ||
18556 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18557 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
18558 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
18559 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | ||
18560 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18562 | else | ||
18563 | |||
18564 | cat >conftest.$ac_ext <<_ACEOF | ||
18565 | /* confdefs.h. */ | ||
18566 | _ACEOF | ||
18567 | cat confdefs.h >>conftest.$ac_ext | ||
18568 | cat >>conftest.$ac_ext <<_ACEOF | ||
18569 | /* end confdefs.h. */ | ||
18570 | #include <utmpx.h> | ||
18571 | |||
18572 | _ACEOF | ||
18573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18574 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
18575 | eval "$ossh_varname=yes" | ||
18576 | else | ||
18577 | eval "$ossh_varname=no" | ||
18578 | fi | ||
18579 | rm -f conftest* | ||
18580 | |||
18581 | fi | ||
18582 | |||
18583 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18584 | if test -n "`echo $ossh_varname`"; then | ||
18585 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18586 | echo "${ECHO_T}$ossh_result" >&6 | ||
18587 | if test "x$ossh_result" = "xyes"; then | ||
18588 | cat >>confdefs.h <<\_ACEOF | ||
18589 | #define HAVE_ID_IN_UTMPX 1 | ||
18590 | _ACEOF | ||
18591 | |||
18592 | fi | ||
18593 | else | ||
18594 | echo "$as_me:$LINENO: result: no" >&5 | ||
18595 | echo "${ECHO_T}no" >&6 | ||
18596 | fi | ||
18597 | |||
18598 | |||
18599 | # look for field 'ut_addr' in header 'utmp.h' | ||
18600 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18601 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
18602 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
18603 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | ||
18604 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18606 | else | ||
18607 | |||
18608 | cat >conftest.$ac_ext <<_ACEOF | ||
18609 | /* confdefs.h. */ | ||
18610 | _ACEOF | ||
18611 | cat confdefs.h >>conftest.$ac_ext | ||
18612 | cat >>conftest.$ac_ext <<_ACEOF | ||
18613 | /* end confdefs.h. */ | ||
18614 | #include <utmp.h> | ||
18615 | |||
18616 | _ACEOF | ||
18617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18618 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
18619 | eval "$ossh_varname=yes" | ||
18620 | else | ||
18621 | eval "$ossh_varname=no" | ||
18622 | fi | ||
18623 | rm -f conftest* | ||
18624 | |||
18625 | fi | ||
18626 | |||
18627 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18628 | if test -n "`echo $ossh_varname`"; then | ||
18629 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18630 | echo "${ECHO_T}$ossh_result" >&6 | ||
18631 | if test "x$ossh_result" = "xyes"; then | ||
18632 | cat >>confdefs.h <<\_ACEOF | ||
18633 | #define HAVE_ADDR_IN_UTMP 1 | ||
18634 | _ACEOF | ||
18635 | |||
18636 | fi | ||
18637 | else | ||
18638 | echo "$as_me:$LINENO: result: no" >&5 | ||
18639 | echo "${ECHO_T}no" >&6 | ||
18640 | fi | ||
18641 | |||
18642 | |||
18643 | # look for field 'ut_addr' in header 'utmpx.h' | ||
18644 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18645 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
18646 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
18647 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | ||
18648 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18650 | else | ||
18651 | |||
18652 | cat >conftest.$ac_ext <<_ACEOF | ||
18653 | /* confdefs.h. */ | ||
18654 | _ACEOF | ||
18655 | cat confdefs.h >>conftest.$ac_ext | ||
18656 | cat >>conftest.$ac_ext <<_ACEOF | ||
18657 | /* end confdefs.h. */ | ||
18658 | #include <utmpx.h> | ||
18659 | |||
18660 | _ACEOF | ||
18661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18662 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
18663 | eval "$ossh_varname=yes" | ||
18664 | else | ||
18665 | eval "$ossh_varname=no" | ||
18666 | fi | ||
18667 | rm -f conftest* | ||
18668 | |||
18669 | fi | ||
18670 | |||
18671 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18672 | if test -n "`echo $ossh_varname`"; then | ||
18673 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18674 | echo "${ECHO_T}$ossh_result" >&6 | ||
18675 | if test "x$ossh_result" = "xyes"; then | ||
18676 | cat >>confdefs.h <<\_ACEOF | ||
18677 | #define HAVE_ADDR_IN_UTMPX 1 | ||
18678 | _ACEOF | ||
18679 | |||
18680 | fi | ||
18681 | else | ||
18682 | echo "$as_me:$LINENO: result: no" >&5 | ||
18683 | echo "${ECHO_T}no" >&6 | ||
18684 | fi | ||
18685 | |||
18686 | |||
18687 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
18688 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18689 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
18690 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
18691 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | ||
18692 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18694 | else | ||
18695 | |||
18696 | cat >conftest.$ac_ext <<_ACEOF | ||
18697 | /* confdefs.h. */ | ||
18698 | _ACEOF | ||
18699 | cat confdefs.h >>conftest.$ac_ext | ||
18700 | cat >>conftest.$ac_ext <<_ACEOF | ||
18701 | /* end confdefs.h. */ | ||
18702 | #include <utmp.h> | ||
18703 | |||
18704 | _ACEOF | ||
18705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18706 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
18707 | eval "$ossh_varname=yes" | ||
18708 | else | ||
18709 | eval "$ossh_varname=no" | ||
18710 | fi | ||
18711 | rm -f conftest* | ||
18712 | |||
18713 | fi | ||
18714 | |||
18715 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18716 | if test -n "`echo $ossh_varname`"; then | ||
18717 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18718 | echo "${ECHO_T}$ossh_result" >&6 | ||
18719 | if test "x$ossh_result" = "xyes"; then | ||
18720 | cat >>confdefs.h <<\_ACEOF | ||
18721 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
18722 | _ACEOF | ||
18723 | |||
18724 | fi | ||
18725 | else | ||
18726 | echo "$as_me:$LINENO: result: no" >&5 | ||
18727 | echo "${ECHO_T}no" >&6 | ||
18728 | fi | ||
18729 | |||
18730 | |||
18731 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
18732 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18733 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
18734 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
18735 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | ||
18736 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18738 | else | ||
18739 | |||
18740 | cat >conftest.$ac_ext <<_ACEOF | ||
18741 | /* confdefs.h. */ | ||
18742 | _ACEOF | ||
18743 | cat confdefs.h >>conftest.$ac_ext | ||
18744 | cat >>conftest.$ac_ext <<_ACEOF | ||
18745 | /* end confdefs.h. */ | ||
18746 | #include <utmpx.h> | ||
18747 | |||
18748 | _ACEOF | ||
18749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18750 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
18751 | eval "$ossh_varname=yes" | ||
18752 | else | ||
18753 | eval "$ossh_varname=no" | ||
18754 | fi | ||
18755 | rm -f conftest* | ||
18756 | |||
18757 | fi | ||
18758 | |||
18759 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18760 | if test -n "`echo $ossh_varname`"; then | ||
18761 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18762 | echo "${ECHO_T}$ossh_result" >&6 | ||
18763 | if test "x$ossh_result" = "xyes"; then | ||
18764 | cat >>confdefs.h <<\_ACEOF | ||
18765 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
18766 | _ACEOF | ||
18767 | |||
18768 | fi | ||
18769 | else | ||
18770 | echo "$as_me:$LINENO: result: no" >&5 | ||
18771 | echo "${ECHO_T}no" >&6 | ||
18772 | fi | ||
18773 | |||
18774 | |||
18775 | # look for field 'ut_exit' in header 'utmp.h' | ||
18776 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18777 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
18778 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
18779 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | ||
18780 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18782 | else | ||
18783 | |||
18784 | cat >conftest.$ac_ext <<_ACEOF | ||
18785 | /* confdefs.h. */ | ||
18786 | _ACEOF | ||
18787 | cat confdefs.h >>conftest.$ac_ext | ||
18788 | cat >>conftest.$ac_ext <<_ACEOF | ||
18789 | /* end confdefs.h. */ | ||
18790 | #include <utmp.h> | ||
18791 | |||
18792 | _ACEOF | ||
18793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18794 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
18795 | eval "$ossh_varname=yes" | ||
18796 | else | ||
18797 | eval "$ossh_varname=no" | ||
18798 | fi | ||
18799 | rm -f conftest* | ||
18800 | |||
18801 | fi | ||
18802 | |||
18803 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18804 | if test -n "`echo $ossh_varname`"; then | ||
18805 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18806 | echo "${ECHO_T}$ossh_result" >&6 | ||
18807 | if test "x$ossh_result" = "xyes"; then | ||
18808 | cat >>confdefs.h <<\_ACEOF | ||
18809 | #define HAVE_EXIT_IN_UTMP 1 | ||
18810 | _ACEOF | ||
18811 | |||
18812 | fi | ||
18813 | else | ||
18814 | echo "$as_me:$LINENO: result: no" >&5 | ||
18815 | echo "${ECHO_T}no" >&6 | ||
18816 | fi | ||
18817 | |||
18818 | |||
18819 | # look for field 'ut_time' in header 'utmp.h' | ||
18820 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
18821 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
18822 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
18823 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | ||
18824 | if eval "test \"\${$ossh_varname+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 | #include <utmp.h> | ||
18835 | |||
18836 | _ACEOF | ||
18837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18838 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
18839 | eval "$ossh_varname=yes" | ||
18840 | else | ||
18841 | eval "$ossh_varname=no" | ||
18842 | fi | ||
18843 | rm -f conftest* | ||
18844 | |||
18845 | fi | ||
18846 | |||
18847 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18848 | if test -n "`echo $ossh_varname`"; then | ||
18849 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18850 | echo "${ECHO_T}$ossh_result" >&6 | ||
18851 | if test "x$ossh_result" = "xyes"; then | ||
18852 | cat >>confdefs.h <<\_ACEOF | ||
18853 | #define HAVE_TIME_IN_UTMP 1 | ||
18854 | _ACEOF | ||
18855 | |||
18856 | fi | ||
18857 | else | ||
18858 | echo "$as_me:$LINENO: result: no" >&5 | ||
18859 | echo "${ECHO_T}no" >&6 | ||
18860 | fi | ||
18861 | |||
18862 | |||
18863 | # look for field 'ut_time' in header 'utmpx.h' | ||
18864 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18865 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
18866 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
18867 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | ||
18868 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18870 | else | ||
18871 | |||
18872 | cat >conftest.$ac_ext <<_ACEOF | ||
18873 | /* confdefs.h. */ | ||
18874 | _ACEOF | ||
18875 | cat confdefs.h >>conftest.$ac_ext | ||
18876 | cat >>conftest.$ac_ext <<_ACEOF | ||
18877 | /* end confdefs.h. */ | ||
18878 | #include <utmpx.h> | ||
18879 | |||
18880 | _ACEOF | ||
18881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18882 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
18883 | eval "$ossh_varname=yes" | ||
18884 | else | ||
18885 | eval "$ossh_varname=no" | ||
18886 | fi | ||
18887 | rm -f conftest* | ||
18888 | |||
18889 | fi | ||
18890 | |||
18891 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18892 | if test -n "`echo $ossh_varname`"; then | ||
18893 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18894 | echo "${ECHO_T}$ossh_result" >&6 | ||
18895 | if test "x$ossh_result" = "xyes"; then | ||
18896 | cat >>confdefs.h <<\_ACEOF | ||
18897 | #define HAVE_TIME_IN_UTMPX 1 | ||
18898 | _ACEOF | ||
18899 | |||
18900 | fi | ||
18901 | else | ||
18902 | echo "$as_me:$LINENO: result: no" >&5 | ||
18903 | echo "${ECHO_T}no" >&6 | ||
18904 | fi | ||
18905 | |||
18906 | |||
18907 | # look for field 'ut_tv' in header 'utmpx.h' | ||
18908 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
18909 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
18910 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
18911 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | ||
18912 | if eval "test \"\${$ossh_varname+set}\" = set"; then | ||
18913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18914 | else | ||
18915 | |||
18916 | cat >conftest.$ac_ext <<_ACEOF | ||
18917 | /* confdefs.h. */ | ||
18918 | _ACEOF | ||
18919 | cat confdefs.h >>conftest.$ac_ext | ||
18920 | cat >>conftest.$ac_ext <<_ACEOF | ||
18921 | /* end confdefs.h. */ | ||
18922 | #include <utmpx.h> | ||
18923 | |||
18924 | _ACEOF | ||
18925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18926 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
18927 | eval "$ossh_varname=yes" | ||
18928 | else | ||
18929 | eval "$ossh_varname=no" | ||
18930 | fi | ||
18931 | rm -f conftest* | ||
18932 | |||
18933 | fi | ||
18934 | |||
18935 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
18936 | if test -n "`echo $ossh_varname`"; then | ||
18937 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
18938 | echo "${ECHO_T}$ossh_result" >&6 | ||
18939 | if test "x$ossh_result" = "xyes"; then | ||
18940 | cat >>confdefs.h <<\_ACEOF | ||
18941 | #define HAVE_TV_IN_UTMPX 1 | ||
18942 | _ACEOF | ||
18943 | |||
18944 | fi | ||
18945 | else | ||
18946 | echo "$as_me:$LINENO: result: no" >&5 | ||
18947 | echo "${ECHO_T}no" >&6 | ||
18948 | fi | ||
18949 | |||
18950 | |||
18951 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
18952 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | ||
18953 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
18954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18955 | else | ||
18956 | cat >conftest.$ac_ext <<_ACEOF | ||
18957 | /* confdefs.h. */ | ||
18958 | _ACEOF | ||
18959 | cat confdefs.h >>conftest.$ac_ext | ||
18960 | cat >>conftest.$ac_ext <<_ACEOF | ||
18961 | /* end confdefs.h. */ | ||
18962 | $ac_includes_default | ||
18963 | int | ||
18964 | main () | ||
18965 | { | ||
18966 | static struct stat ac_aggr; | ||
18967 | if (ac_aggr.st_blksize) | ||
18968 | return 0; | ||
18969 | ; | ||
18970 | return 0; | ||
18971 | } | ||
18972 | _ACEOF | ||
18973 | rm -f conftest.$ac_objext | ||
18974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
18975 | (eval $ac_compile) 2>conftest.er1 | ||
18976 | ac_status=$? | ||
18977 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18978 | rm -f conftest.er1 | ||
18979 | cat conftest.err >&5 | ||
18980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18981 | (exit $ac_status); } && | ||
18982 | { ac_try='test -z "$ac_c_werror_flag" | ||
18983 | || test ! -s conftest.err' | ||
18984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18985 | (eval $ac_try) 2>&5 | ||
18986 | ac_status=$? | ||
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18988 | (exit $ac_status); }; } && | ||
18989 | { ac_try='test -s conftest.$ac_objext' | ||
18990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18991 | (eval $ac_try) 2>&5 | ||
18992 | ac_status=$? | ||
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18994 | (exit $ac_status); }; }; then | ||
18995 | ac_cv_member_struct_stat_st_blksize=yes | ||
18996 | else | ||
18997 | echo "$as_me: failed program was:" >&5 | ||
18998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18999 | |||
19000 | cat >conftest.$ac_ext <<_ACEOF | ||
19001 | /* confdefs.h. */ | ||
19002 | _ACEOF | ||
19003 | cat confdefs.h >>conftest.$ac_ext | ||
19004 | cat >>conftest.$ac_ext <<_ACEOF | ||
19005 | /* end confdefs.h. */ | ||
19006 | $ac_includes_default | ||
19007 | int | ||
19008 | main () | ||
19009 | { | ||
19010 | static struct stat ac_aggr; | ||
19011 | if (sizeof ac_aggr.st_blksize) | ||
19012 | return 0; | ||
19013 | ; | ||
19014 | return 0; | ||
19015 | } | ||
19016 | _ACEOF | ||
19017 | rm -f conftest.$ac_objext | ||
19018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19019 | (eval $ac_compile) 2>conftest.er1 | ||
19020 | ac_status=$? | ||
19021 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19022 | rm -f conftest.er1 | ||
19023 | cat conftest.err >&5 | ||
19024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19025 | (exit $ac_status); } && | ||
19026 | { ac_try='test -z "$ac_c_werror_flag" | ||
19027 | || test ! -s conftest.err' | ||
19028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19029 | (eval $ac_try) 2>&5 | ||
19030 | ac_status=$? | ||
19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19032 | (exit $ac_status); }; } && | ||
19033 | { ac_try='test -s conftest.$ac_objext' | ||
19034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19035 | (eval $ac_try) 2>&5 | ||
19036 | ac_status=$? | ||
19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19038 | (exit $ac_status); }; }; then | ||
19039 | ac_cv_member_struct_stat_st_blksize=yes | ||
19040 | else | ||
19041 | echo "$as_me: failed program was:" >&5 | ||
19042 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19043 | |||
19044 | ac_cv_member_struct_stat_st_blksize=no | ||
19045 | fi | ||
19046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19047 | fi | ||
19048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19049 | fi | ||
19050 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
19051 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | ||
19052 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
19053 | |||
19054 | cat >>confdefs.h <<_ACEOF | ||
19055 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
19056 | _ACEOF | ||
19057 | |||
19058 | |||
19059 | fi | ||
19060 | |||
19061 | |||
19062 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
19063 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
19064 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
19065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19066 | else | ||
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 | |||
19078 | int | ||
19079 | main () | ||
19080 | { | ||
19081 | struct sockaddr_storage s; s.ss_family = 1; | ||
19082 | ; | ||
19083 | return 0; | ||
19084 | } | ||
19085 | _ACEOF | ||
19086 | rm -f conftest.$ac_objext | ||
19087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19088 | (eval $ac_compile) 2>conftest.er1 | ||
19089 | ac_status=$? | ||
19090 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19091 | rm -f conftest.er1 | ||
19092 | cat conftest.err >&5 | ||
19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19094 | (exit $ac_status); } && | ||
19095 | { ac_try='test -z "$ac_c_werror_flag" | ||
19096 | || test ! -s conftest.err' | ||
19097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19098 | (eval $ac_try) 2>&5 | ||
19099 | ac_status=$? | ||
19100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19101 | (exit $ac_status); }; } && | ||
19102 | { ac_try='test -s conftest.$ac_objext' | ||
19103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19104 | (eval $ac_try) 2>&5 | ||
19105 | ac_status=$? | ||
19106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19107 | (exit $ac_status); }; }; then | ||
19108 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
19109 | else | ||
19110 | echo "$as_me: failed program was:" >&5 | ||
19111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19112 | |||
19113 | ac_cv_have_ss_family_in_struct_ss="no" | ||
19114 | fi | ||
19115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19116 | |||
19117 | fi | ||
19118 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
19119 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | ||
19120 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
19121 | cat >>confdefs.h <<\_ACEOF | ||
19122 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
19123 | _ACEOF | ||
19124 | |||
19125 | fi | ||
19126 | |||
19127 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
19128 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | ||
19129 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
19130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19131 | else | ||
19132 | |||
19133 | cat >conftest.$ac_ext <<_ACEOF | ||
19134 | /* confdefs.h. */ | ||
19135 | _ACEOF | ||
19136 | cat confdefs.h >>conftest.$ac_ext | ||
19137 | cat >>conftest.$ac_ext <<_ACEOF | ||
19138 | /* end confdefs.h. */ | ||
19139 | |||
19140 | #include <sys/types.h> | ||
19141 | #include <sys/socket.h> | ||
19142 | |||
19143 | int | ||
19144 | main () | ||
19145 | { | ||
19146 | struct sockaddr_storage s; s.__ss_family = 1; | ||
19147 | ; | ||
19148 | return 0; | ||
19149 | } | ||
19150 | _ACEOF | ||
19151 | rm -f conftest.$ac_objext | ||
19152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19153 | (eval $ac_compile) 2>conftest.er1 | ||
19154 | ac_status=$? | ||
19155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19156 | rm -f conftest.er1 | ||
19157 | cat conftest.err >&5 | ||
19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19159 | (exit $ac_status); } && | ||
19160 | { ac_try='test -z "$ac_c_werror_flag" | ||
19161 | || test ! -s conftest.err' | ||
19162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19163 | (eval $ac_try) 2>&5 | ||
19164 | ac_status=$? | ||
19165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19166 | (exit $ac_status); }; } && | ||
19167 | { ac_try='test -s conftest.$ac_objext' | ||
19168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19169 | (eval $ac_try) 2>&5 | ||
19170 | ac_status=$? | ||
19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19172 | (exit $ac_status); }; }; then | ||
19173 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
19174 | else | ||
19175 | echo "$as_me: failed program was:" >&5 | ||
19176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19177 | |||
19178 | ac_cv_have___ss_family_in_struct_ss="no" | ||
19179 | |||
19180 | fi | ||
19181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19182 | |||
19183 | fi | ||
19184 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
19185 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | ||
19186 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
19187 | cat >>confdefs.h <<\_ACEOF | ||
19188 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
19189 | _ACEOF | ||
19190 | |||
19191 | fi | ||
19192 | |||
19193 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
19194 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | ||
19195 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
19196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19197 | else | ||
19198 | |||
19199 | cat >conftest.$ac_ext <<_ACEOF | ||
19200 | /* confdefs.h. */ | ||
19201 | _ACEOF | ||
19202 | cat confdefs.h >>conftest.$ac_ext | ||
19203 | cat >>conftest.$ac_ext <<_ACEOF | ||
19204 | /* end confdefs.h. */ | ||
19205 | |||
19206 | #include <pwd.h> | ||
19207 | |||
19208 | int | ||
19209 | main () | ||
19210 | { | ||
19211 | struct passwd p; p.pw_class = 0; | ||
19212 | ; | ||
19213 | return 0; | ||
19214 | } | ||
19215 | _ACEOF | ||
19216 | rm -f conftest.$ac_objext | ||
19217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19218 | (eval $ac_compile) 2>conftest.er1 | ||
19219 | ac_status=$? | ||
19220 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19221 | rm -f conftest.er1 | ||
19222 | cat conftest.err >&5 | ||
19223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19224 | (exit $ac_status); } && | ||
19225 | { ac_try='test -z "$ac_c_werror_flag" | ||
19226 | || test ! -s conftest.err' | ||
19227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19228 | (eval $ac_try) 2>&5 | ||
19229 | ac_status=$? | ||
19230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19231 | (exit $ac_status); }; } && | ||
19232 | { ac_try='test -s conftest.$ac_objext' | ||
19233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19234 | (eval $ac_try) 2>&5 | ||
19235 | ac_status=$? | ||
19236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19237 | (exit $ac_status); }; }; then | ||
19238 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
19239 | else | ||
19240 | echo "$as_me: failed program was:" >&5 | ||
19241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19242 | |||
19243 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
19244 | |||
19245 | fi | ||
19246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19247 | |||
19248 | fi | ||
19249 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
19250 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | ||
19251 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
19252 | cat >>confdefs.h <<\_ACEOF | ||
19253 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
19254 | _ACEOF | ||
19255 | |||
19256 | fi | ||
19257 | |||
19258 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
19259 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | ||
19260 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
19261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19262 | else | ||
19263 | |||
19264 | cat >conftest.$ac_ext <<_ACEOF | ||
19265 | /* confdefs.h. */ | ||
19266 | _ACEOF | ||
19267 | cat confdefs.h >>conftest.$ac_ext | ||
19268 | cat >>conftest.$ac_ext <<_ACEOF | ||
19269 | /* end confdefs.h. */ | ||
19270 | |||
19271 | #include <pwd.h> | ||
19272 | |||
19273 | int | ||
19274 | main () | ||
19275 | { | ||
19276 | struct passwd p; p.pw_expire = 0; | ||
19277 | ; | ||
19278 | return 0; | ||
19279 | } | ||
19280 | _ACEOF | ||
19281 | rm -f conftest.$ac_objext | ||
19282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19283 | (eval $ac_compile) 2>conftest.er1 | ||
19284 | ac_status=$? | ||
19285 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19286 | rm -f conftest.er1 | ||
19287 | cat conftest.err >&5 | ||
19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19289 | (exit $ac_status); } && | ||
19290 | { ac_try='test -z "$ac_c_werror_flag" | ||
19291 | || test ! -s conftest.err' | ||
19292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19293 | (eval $ac_try) 2>&5 | ||
19294 | ac_status=$? | ||
19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19296 | (exit $ac_status); }; } && | ||
19297 | { ac_try='test -s conftest.$ac_objext' | ||
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); }; }; then | ||
19303 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
19304 | else | ||
19305 | echo "$as_me: failed program was:" >&5 | ||
19306 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19307 | |||
19308 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
19309 | |||
19310 | fi | ||
19311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19312 | |||
19313 | fi | ||
19314 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
19315 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | ||
19316 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
19317 | cat >>confdefs.h <<\_ACEOF | ||
19318 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
19319 | _ACEOF | ||
19320 | |||
19321 | fi | ||
19322 | |||
19323 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
19324 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | ||
19325 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
19326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19327 | else | ||
19328 | |||
19329 | cat >conftest.$ac_ext <<_ACEOF | ||
19330 | /* confdefs.h. */ | ||
19331 | _ACEOF | ||
19332 | cat confdefs.h >>conftest.$ac_ext | ||
19333 | cat >>conftest.$ac_ext <<_ACEOF | ||
19334 | /* end confdefs.h. */ | ||
19335 | |||
19336 | #include <pwd.h> | ||
19337 | |||
19338 | int | ||
19339 | main () | ||
19340 | { | ||
19341 | struct passwd p; p.pw_change = 0; | ||
19342 | ; | ||
19343 | return 0; | ||
19344 | } | ||
19345 | _ACEOF | ||
19346 | rm -f conftest.$ac_objext | ||
19347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19348 | (eval $ac_compile) 2>conftest.er1 | ||
19349 | ac_status=$? | ||
19350 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19351 | rm -f conftest.er1 | ||
19352 | cat conftest.err >&5 | ||
19353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19354 | (exit $ac_status); } && | ||
19355 | { ac_try='test -z "$ac_c_werror_flag" | ||
19356 | || test ! -s conftest.err' | ||
19357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19358 | (eval $ac_try) 2>&5 | ||
19359 | ac_status=$? | ||
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19361 | (exit $ac_status); }; } && | ||
19362 | { ac_try='test -s conftest.$ac_objext' | ||
19363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19364 | (eval $ac_try) 2>&5 | ||
19365 | ac_status=$? | ||
19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19367 | (exit $ac_status); }; }; then | ||
19368 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
19369 | else | ||
19370 | echo "$as_me: failed program was:" >&5 | ||
19371 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19372 | |||
19373 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
19374 | |||
19375 | fi | ||
19376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19377 | |||
19378 | fi | ||
19379 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
19380 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | ||
19381 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
19382 | cat >>confdefs.h <<\_ACEOF | ||
19383 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
19384 | _ACEOF | ||
19385 | |||
19386 | fi | ||
19387 | |||
19388 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
19389 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | ||
19390 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
19391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19392 | else | ||
19393 | |||
19394 | if test "$cross_compiling" = yes; then | ||
19395 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
19396 | See \`config.log' for more details." >&5 | ||
19397 | echo "$as_me: error: cannot run test program while cross compiling | ||
19398 | See \`config.log' for more details." >&2;} | ||
19399 | { (exit 1); exit 1; }; } | ||
19400 | else | ||
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 <sys/socket.h> | ||
19410 | #include <sys/uio.h> | ||
19411 | int main() { | ||
19412 | #ifdef msg_accrights | ||
19413 | exit(1); | ||
19414 | #endif | ||
19415 | struct msghdr m; | ||
19416 | m.msg_accrights = 0; | ||
19417 | exit(0); | ||
19418 | } | ||
19419 | |||
19420 | _ACEOF | ||
19421 | rm -f conftest$ac_exeext | ||
19422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19423 | (eval $ac_link) 2>&5 | ||
19424 | ac_status=$? | ||
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19426 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19428 | (eval $ac_try) 2>&5 | ||
19429 | ac_status=$? | ||
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19431 | (exit $ac_status); }; }; then | ||
19432 | ac_cv_have_accrights_in_msghdr="yes" | ||
19433 | else | ||
19434 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19435 | echo "$as_me: failed program was:" >&5 | ||
19436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19437 | |||
19438 | ( exit $ac_status ) | ||
19439 | ac_cv_have_accrights_in_msghdr="no" | ||
19440 | |||
19441 | fi | ||
19442 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19443 | fi | ||
19444 | |||
19445 | fi | ||
19446 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
19447 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | ||
19448 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
19449 | cat >>confdefs.h <<\_ACEOF | ||
19450 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
19451 | _ACEOF | ||
19452 | |||
19453 | fi | ||
19454 | |||
19455 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
19456 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | ||
19457 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
19458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19459 | else | ||
19460 | |||
19461 | if test "$cross_compiling" = yes; then | ||
19462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
19463 | See \`config.log' for more details." >&5 | ||
19464 | echo "$as_me: error: cannot run test program while cross compiling | ||
19465 | See \`config.log' for more details." >&2;} | ||
19466 | { (exit 1); exit 1; }; } | ||
19467 | else | ||
19468 | cat >conftest.$ac_ext <<_ACEOF | ||
19469 | /* confdefs.h. */ | ||
19470 | _ACEOF | ||
19471 | cat confdefs.h >>conftest.$ac_ext | ||
19472 | cat >>conftest.$ac_ext <<_ACEOF | ||
19473 | /* end confdefs.h. */ | ||
19474 | |||
19475 | #include <sys/types.h> | ||
19476 | #include <sys/socket.h> | ||
19477 | #include <sys/uio.h> | ||
19478 | int main() { | ||
19479 | #ifdef msg_control | ||
19480 | exit(1); | ||
19481 | #endif | ||
19482 | struct msghdr m; | ||
19483 | m.msg_control = 0; | ||
19484 | exit(0); | ||
19485 | } | ||
19486 | |||
19487 | _ACEOF | ||
19488 | rm -f conftest$ac_exeext | ||
19489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19490 | (eval $ac_link) 2>&5 | ||
19491 | ac_status=$? | ||
19492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19495 | (eval $ac_try) 2>&5 | ||
19496 | ac_status=$? | ||
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19498 | (exit $ac_status); }; }; then | ||
19499 | ac_cv_have_control_in_msghdr="yes" | ||
19500 | else | ||
19501 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19502 | echo "$as_me: failed program was:" >&5 | ||
19503 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19504 | |||
19505 | ( exit $ac_status ) | ||
19506 | ac_cv_have_control_in_msghdr="no" | ||
19507 | |||
19508 | fi | ||
19509 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19510 | fi | ||
19511 | |||
19512 | fi | ||
19513 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
19514 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | ||
19515 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
19516 | cat >>confdefs.h <<\_ACEOF | ||
19517 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
19518 | _ACEOF | ||
19519 | |||
19520 | fi | ||
19521 | |||
19522 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
19523 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | ||
19524 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
19525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19526 | else | ||
19527 | |||
19528 | cat >conftest.$ac_ext <<_ACEOF | ||
19529 | /* confdefs.h. */ | ||
19530 | _ACEOF | ||
19531 | cat confdefs.h >>conftest.$ac_ext | ||
19532 | cat >>conftest.$ac_ext <<_ACEOF | ||
19533 | /* end confdefs.h. */ | ||
19534 | |||
19535 | int | ||
19536 | main () | ||
19537 | { | ||
19538 | extern char *__progname; printf("%s", __progname); | ||
19539 | ; | ||
19540 | return 0; | ||
19541 | } | ||
19542 | _ACEOF | ||
19543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19545 | (eval $ac_link) 2>conftest.er1 | ||
19546 | ac_status=$? | ||
19547 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19548 | rm -f conftest.er1 | ||
19549 | cat conftest.err >&5 | ||
19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19551 | (exit $ac_status); } && | ||
19552 | { ac_try='test -z "$ac_c_werror_flag" | ||
19553 | || test ! -s conftest.err' | ||
19554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19555 | (eval $ac_try) 2>&5 | ||
19556 | ac_status=$? | ||
19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19558 | (exit $ac_status); }; } && | ||
19559 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
19565 | ac_cv_libc_defines___progname="yes" | ||
19566 | else | ||
19567 | echo "$as_me: failed program was:" >&5 | ||
19568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19569 | |||
19570 | ac_cv_libc_defines___progname="no" | ||
19571 | |||
19572 | fi | ||
19573 | rm -f conftest.err conftest.$ac_objext \ | ||
19574 | conftest$ac_exeext conftest.$ac_ext | ||
19575 | |||
19576 | fi | ||
19577 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
19578 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | ||
19579 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
19580 | cat >>confdefs.h <<\_ACEOF | ||
19581 | #define HAVE___PROGNAME 1 | ||
19582 | _ACEOF | ||
19583 | |||
19584 | fi | ||
19585 | |||
19586 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
19587 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | ||
19588 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
19589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19590 | else | ||
19591 | |||
19592 | cat >conftest.$ac_ext <<_ACEOF | ||
19593 | /* confdefs.h. */ | ||
19594 | _ACEOF | ||
19595 | cat confdefs.h >>conftest.$ac_ext | ||
19596 | cat >>conftest.$ac_ext <<_ACEOF | ||
19597 | /* end confdefs.h. */ | ||
19598 | |||
19599 | #include <stdio.h> | ||
19600 | |||
19601 | int | ||
19602 | main () | ||
19603 | { | ||
19604 | printf("%s", __FUNCTION__); | ||
19605 | ; | ||
19606 | return 0; | ||
19607 | } | ||
19608 | _ACEOF | ||
19609 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19611 | (eval $ac_link) 2>conftest.er1 | ||
19612 | ac_status=$? | ||
19613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19614 | rm -f conftest.er1 | ||
19615 | cat conftest.err >&5 | ||
19616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19617 | (exit $ac_status); } && | ||
19618 | { ac_try='test -z "$ac_c_werror_flag" | ||
19619 | || test ! -s conftest.err' | ||
19620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19621 | (eval $ac_try) 2>&5 | ||
19622 | ac_status=$? | ||
19623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19624 | (exit $ac_status); }; } && | ||
19625 | { ac_try='test -s conftest$ac_exeext' | ||
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); }; }; then | ||
19631 | ac_cv_cc_implements___FUNCTION__="yes" | ||
19632 | else | ||
19633 | echo "$as_me: failed program was:" >&5 | ||
19634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19635 | |||
19636 | ac_cv_cc_implements___FUNCTION__="no" | ||
19637 | |||
19638 | fi | ||
19639 | rm -f conftest.err conftest.$ac_objext \ | ||
19640 | conftest$ac_exeext conftest.$ac_ext | ||
19641 | |||
19642 | fi | ||
19643 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
19644 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | ||
19645 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
19646 | cat >>confdefs.h <<\_ACEOF | ||
19647 | #define HAVE___FUNCTION__ 1 | ||
19648 | _ACEOF | ||
19649 | |||
19650 | fi | ||
19651 | |||
19652 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
19653 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | ||
19654 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
19655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19656 | else | ||
19657 | |||
19658 | cat >conftest.$ac_ext <<_ACEOF | ||
19659 | /* confdefs.h. */ | ||
19660 | _ACEOF | ||
19661 | cat confdefs.h >>conftest.$ac_ext | ||
19662 | cat >>conftest.$ac_ext <<_ACEOF | ||
19663 | /* end confdefs.h. */ | ||
19664 | |||
19665 | #include <stdio.h> | ||
19666 | |||
19667 | int | ||
19668 | main () | ||
19669 | { | ||
19670 | printf("%s", __func__); | ||
19671 | ; | ||
19672 | return 0; | ||
19673 | } | ||
19674 | _ACEOF | ||
19675 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19677 | (eval $ac_link) 2>conftest.er1 | ||
19678 | ac_status=$? | ||
19679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19680 | rm -f conftest.er1 | ||
19681 | cat conftest.err >&5 | ||
19682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19683 | (exit $ac_status); } && | ||
19684 | { ac_try='test -z "$ac_c_werror_flag" | ||
19685 | || test ! -s conftest.err' | ||
19686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19687 | (eval $ac_try) 2>&5 | ||
19688 | ac_status=$? | ||
19689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19690 | (exit $ac_status); }; } && | ||
19691 | { ac_try='test -s conftest$ac_exeext' | ||
19692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19693 | (eval $ac_try) 2>&5 | ||
19694 | ac_status=$? | ||
19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19696 | (exit $ac_status); }; }; then | ||
19697 | ac_cv_cc_implements___func__="yes" | ||
19698 | else | ||
19699 | echo "$as_me: failed program was:" >&5 | ||
19700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19701 | |||
19702 | ac_cv_cc_implements___func__="no" | ||
19703 | |||
19704 | fi | ||
19705 | rm -f conftest.err conftest.$ac_objext \ | ||
19706 | conftest$ac_exeext conftest.$ac_ext | ||
19707 | |||
19708 | fi | ||
19709 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
19710 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | ||
19711 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
19712 | cat >>confdefs.h <<\_ACEOF | ||
19713 | #define HAVE___func__ 1 | ||
19714 | _ACEOF | ||
19715 | |||
19716 | fi | ||
19717 | |||
19718 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
19719 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | ||
19720 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
19721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19722 | else | ||
19723 | |||
19724 | cat >conftest.$ac_ext <<_ACEOF | ||
19725 | /* confdefs.h. */ | ||
19726 | _ACEOF | ||
19727 | cat confdefs.h >>conftest.$ac_ext | ||
19728 | cat >>conftest.$ac_ext <<_ACEOF | ||
19729 | /* end confdefs.h. */ | ||
19730 | |||
19731 | #include <getopt.h> | ||
19732 | |||
19733 | int | ||
19734 | main () | ||
19735 | { | ||
19736 | extern int optreset; optreset = 0; | ||
19737 | ; | ||
19738 | return 0; | ||
19739 | } | ||
19740 | _ACEOF | ||
19741 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19743 | (eval $ac_link) 2>conftest.er1 | ||
19744 | ac_status=$? | ||
19745 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19746 | rm -f conftest.er1 | ||
19747 | cat conftest.err >&5 | ||
19748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19749 | (exit $ac_status); } && | ||
19750 | { ac_try='test -z "$ac_c_werror_flag" | ||
19751 | || test ! -s conftest.err' | ||
19752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19753 | (eval $ac_try) 2>&5 | ||
19754 | ac_status=$? | ||
19755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19756 | (exit $ac_status); }; } && | ||
19757 | { ac_try='test -s conftest$ac_exeext' | ||
19758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19759 | (eval $ac_try) 2>&5 | ||
19760 | ac_status=$? | ||
19761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19762 | (exit $ac_status); }; }; then | ||
19763 | ac_cv_have_getopt_optreset="yes" | ||
19764 | else | ||
19765 | echo "$as_me: failed program was:" >&5 | ||
19766 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19767 | |||
19768 | ac_cv_have_getopt_optreset="no" | ||
19769 | |||
19770 | fi | ||
19771 | rm -f conftest.err conftest.$ac_objext \ | ||
19772 | conftest$ac_exeext conftest.$ac_ext | ||
19773 | |||
19774 | fi | ||
19775 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
19776 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | ||
19777 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
19778 | cat >>confdefs.h <<\_ACEOF | ||
19779 | #define HAVE_GETOPT_OPTRESET 1 | ||
19780 | _ACEOF | ||
19781 | |||
19782 | fi | ||
19783 | |||
19784 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
19785 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | ||
19786 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
19787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19788 | else | ||
19789 | |||
19790 | cat >conftest.$ac_ext <<_ACEOF | ||
19791 | /* confdefs.h. */ | ||
19792 | _ACEOF | ||
19793 | cat confdefs.h >>conftest.$ac_ext | ||
19794 | cat >>conftest.$ac_ext <<_ACEOF | ||
19795 | /* end confdefs.h. */ | ||
19796 | |||
19797 | int | ||
19798 | main () | ||
19799 | { | ||
19800 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
19801 | ; | ||
19802 | return 0; | ||
19803 | } | ||
19804 | _ACEOF | ||
19805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19807 | (eval $ac_link) 2>conftest.er1 | ||
19808 | ac_status=$? | ||
19809 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19810 | rm -f conftest.er1 | ||
19811 | cat conftest.err >&5 | ||
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19813 | (exit $ac_status); } && | ||
19814 | { ac_try='test -z "$ac_c_werror_flag" | ||
19815 | || test ! -s conftest.err' | ||
19816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19817 | (eval $ac_try) 2>&5 | ||
19818 | ac_status=$? | ||
19819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19820 | (exit $ac_status); }; } && | ||
19821 | { ac_try='test -s conftest$ac_exeext' | ||
19822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19823 | (eval $ac_try) 2>&5 | ||
19824 | ac_status=$? | ||
19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19826 | (exit $ac_status); }; }; then | ||
19827 | ac_cv_libc_defines_sys_errlist="yes" | ||
19828 | else | ||
19829 | echo "$as_me: failed program was:" >&5 | ||
19830 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19831 | |||
19832 | ac_cv_libc_defines_sys_errlist="no" | ||
19833 | |||
19834 | fi | ||
19835 | rm -f conftest.err conftest.$ac_objext \ | ||
19836 | conftest$ac_exeext conftest.$ac_ext | ||
19837 | |||
19838 | fi | ||
19839 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
19840 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | ||
19841 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
19842 | cat >>confdefs.h <<\_ACEOF | ||
19843 | #define HAVE_SYS_ERRLIST 1 | ||
19844 | _ACEOF | ||
19845 | |||
19846 | fi | ||
19847 | |||
19848 | |||
19849 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
19850 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | ||
19851 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19853 | else | ||
19854 | |||
19855 | cat >conftest.$ac_ext <<_ACEOF | ||
19856 | /* confdefs.h. */ | ||
19857 | _ACEOF | ||
19858 | cat confdefs.h >>conftest.$ac_ext | ||
19859 | cat >>conftest.$ac_ext <<_ACEOF | ||
19860 | /* end confdefs.h. */ | ||
19861 | |||
19862 | int | ||
19863 | main () | ||
19864 | { | ||
19865 | extern int sys_nerr; printf("%i", sys_nerr); | ||
19866 | ; | ||
19867 | return 0; | ||
19868 | } | ||
19869 | _ACEOF | ||
19870 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19872 | (eval $ac_link) 2>conftest.er1 | ||
19873 | ac_status=$? | ||
19874 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19875 | rm -f conftest.er1 | ||
19876 | cat conftest.err >&5 | ||
19877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19878 | (exit $ac_status); } && | ||
19879 | { ac_try='test -z "$ac_c_werror_flag" | ||
19880 | || test ! -s conftest.err' | ||
19881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19882 | (eval $ac_try) 2>&5 | ||
19883 | ac_status=$? | ||
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19885 | (exit $ac_status); }; } && | ||
19886 | { ac_try='test -s conftest$ac_exeext' | ||
19887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19888 | (eval $ac_try) 2>&5 | ||
19889 | ac_status=$? | ||
19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19891 | (exit $ac_status); }; }; then | ||
19892 | ac_cv_libc_defines_sys_nerr="yes" | ||
19893 | else | ||
19894 | echo "$as_me: failed program was:" >&5 | ||
19895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19896 | |||
19897 | ac_cv_libc_defines_sys_nerr="no" | ||
19898 | |||
19899 | fi | ||
19900 | rm -f conftest.err conftest.$ac_objext \ | ||
19901 | conftest$ac_exeext conftest.$ac_ext | ||
19902 | |||
19903 | fi | ||
19904 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
19905 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | ||
19906 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
19907 | cat >>confdefs.h <<\_ACEOF | ||
19908 | #define HAVE_SYS_NERR 1 | ||
19909 | _ACEOF | ||
19910 | |||
19911 | fi | ||
19912 | |||
19913 | SCARD_MSG="no" | ||
19914 | # Check whether user wants sectok support | ||
19915 | |||
19916 | # Check whether --with-sectok or --without-sectok was given. | ||
19917 | if test "${with_sectok+set}" = set; then | ||
19918 | withval="$with_sectok" | ||
19919 | |||
19920 | if test "x$withval" != "xno" ; then | ||
19921 | if test "x$withval" != "xyes" ; then | ||
19922 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
19923 | LDFLAGS="$LDFLAGS -L${withval}" | ||
19924 | if test ! -z "$need_dash_r" ; then | ||
19925 | LDFLAGS="$LDFLAGS -R${withval}" | ||
19926 | fi | ||
19927 | if test ! -z "$blibpath" ; then | ||
19928 | blibpath="$blibpath:${withval}" | ||
19929 | fi | ||
19930 | fi | ||
19931 | |||
19932 | for ac_header in sectok.h | ||
19933 | do | ||
19934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
19935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
19936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
19937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
19938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
19939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19940 | fi | ||
19941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
19942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
19943 | else | ||
19944 | # Is the header compilable? | ||
19945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
19946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
19947 | cat >conftest.$ac_ext <<_ACEOF | ||
19948 | /* confdefs.h. */ | ||
19949 | _ACEOF | ||
19950 | cat confdefs.h >>conftest.$ac_ext | ||
19951 | cat >>conftest.$ac_ext <<_ACEOF | ||
19952 | /* end confdefs.h. */ | ||
19953 | $ac_includes_default | ||
19954 | #include <$ac_header> | ||
19955 | _ACEOF | ||
19956 | rm -f conftest.$ac_objext | ||
19957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19958 | (eval $ac_compile) 2>conftest.er1 | ||
19959 | ac_status=$? | ||
19960 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19961 | rm -f conftest.er1 | ||
19962 | cat conftest.err >&5 | ||
19963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19964 | (exit $ac_status); } && | ||
19965 | { ac_try='test -z "$ac_c_werror_flag" | ||
19966 | || test ! -s conftest.err' | ||
19967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19968 | (eval $ac_try) 2>&5 | ||
19969 | ac_status=$? | ||
19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19971 | (exit $ac_status); }; } && | ||
19972 | { ac_try='test -s conftest.$ac_objext' | ||
19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19974 | (eval $ac_try) 2>&5 | ||
19975 | ac_status=$? | ||
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19977 | (exit $ac_status); }; }; then | ||
19978 | ac_header_compiler=yes | ||
19979 | else | ||
19980 | echo "$as_me: failed program was:" >&5 | ||
19981 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19982 | |||
19983 | ac_header_compiler=no | ||
19984 | fi | ||
19985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
19987 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
19988 | |||
19989 | # Is the header present? | ||
19990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
19991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
19992 | cat >conftest.$ac_ext <<_ACEOF | ||
19993 | /* confdefs.h. */ | ||
19994 | _ACEOF | ||
19995 | cat confdefs.h >>conftest.$ac_ext | ||
19996 | cat >>conftest.$ac_ext <<_ACEOF | ||
19997 | /* end confdefs.h. */ | ||
19998 | #include <$ac_header> | ||
19999 | _ACEOF | ||
20000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
20001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
20002 | ac_status=$? | ||
20003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20004 | rm -f conftest.er1 | ||
20005 | cat conftest.err >&5 | ||
20006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20007 | (exit $ac_status); } >/dev/null; then | ||
20008 | if test -s conftest.err; then | ||
20009 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
20010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
20011 | else | ||
20012 | ac_cpp_err= | ||
20013 | fi | ||
20014 | else | ||
20015 | ac_cpp_err=yes | ||
20016 | fi | ||
20017 | if test -z "$ac_cpp_err"; then | ||
20018 | ac_header_preproc=yes | ||
20019 | else | ||
20020 | echo "$as_me: failed program was:" >&5 | ||
20021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20022 | |||
20023 | ac_header_preproc=no | ||
20024 | fi | ||
20025 | rm -f conftest.err conftest.$ac_ext | ||
20026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
20027 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
20028 | |||
20029 | # So? What about this header? | ||
20030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
20031 | yes:no: ) | ||
20032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
20033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
20034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
20035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
20036 | ac_header_preproc=yes | ||
20037 | ;; | ||
20038 | no:yes:* ) | ||
20039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
20040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
20041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
20042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
20043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
20044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
20045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
20046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
20047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
20048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
20049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
20050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
20051 | ( | ||
20052 | cat <<\_ASBOX | ||
20053 | ## ------------------------------------------ ## | ||
20054 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
20055 | ## ------------------------------------------ ## | ||
20056 | _ASBOX | ||
20057 | ) | | ||
20058 | sed "s/^/$as_me: WARNING: /" >&2 | ||
20059 | ;; | ||
20060 | esac | ||
20061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
20062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
20063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
20064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20065 | else | ||
20066 | eval "$as_ac_Header=\$ac_header_preproc" | ||
20067 | fi | ||
20068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
20069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
20070 | |||
20071 | fi | ||
20072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
20073 | cat >>confdefs.h <<_ACEOF | ||
20074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
20075 | _ACEOF | ||
20076 | |||
20077 | fi | ||
20078 | |||
20079 | done | ||
20080 | |||
20081 | if test "$ac_cv_header_sectok_h" != yes; then | ||
20082 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
20083 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
20084 | { (exit 1); exit 1; }; } | ||
20085 | fi | ||
20086 | |||
20087 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
20088 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | ||
20089 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
20090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20091 | else | ||
20092 | ac_check_lib_save_LIBS=$LIBS | ||
20093 | LIBS="-lsectok $LIBS" | ||
20094 | cat >conftest.$ac_ext <<_ACEOF | ||
20095 | /* confdefs.h. */ | ||
20096 | _ACEOF | ||
20097 | cat confdefs.h >>conftest.$ac_ext | ||
20098 | cat >>conftest.$ac_ext <<_ACEOF | ||
20099 | /* end confdefs.h. */ | ||
20100 | |||
20101 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20102 | #ifdef __cplusplus | ||
20103 | extern "C" | ||
20104 | #endif | ||
20105 | /* We use char because int might match the return type of a gcc2 | ||
20106 | builtin and then its argument prototype would still apply. */ | ||
20107 | char sectok_open (); | ||
20108 | int | ||
20109 | main () | ||
20110 | { | ||
20111 | sectok_open (); | ||
20112 | ; | ||
20113 | return 0; | ||
20114 | } | ||
20115 | _ACEOF | ||
20116 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20118 | (eval $ac_link) 2>conftest.er1 | ||
20119 | ac_status=$? | ||
20120 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20121 | rm -f conftest.er1 | ||
20122 | cat conftest.err >&5 | ||
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20124 | (exit $ac_status); } && | ||
20125 | { ac_try='test -z "$ac_c_werror_flag" | ||
20126 | || test ! -s conftest.err' | ||
20127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20128 | (eval $ac_try) 2>&5 | ||
20129 | ac_status=$? | ||
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20131 | (exit $ac_status); }; } && | ||
20132 | { ac_try='test -s conftest$ac_exeext' | ||
20133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20134 | (eval $ac_try) 2>&5 | ||
20135 | ac_status=$? | ||
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20137 | (exit $ac_status); }; }; then | ||
20138 | ac_cv_lib_sectok_sectok_open=yes | ||
20139 | else | ||
20140 | echo "$as_me: failed program was:" >&5 | ||
20141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20142 | |||
20143 | ac_cv_lib_sectok_sectok_open=no | ||
20144 | fi | ||
20145 | rm -f conftest.err conftest.$ac_objext \ | ||
20146 | conftest$ac_exeext conftest.$ac_ext | ||
20147 | LIBS=$ac_check_lib_save_LIBS | ||
20148 | fi | ||
20149 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
20150 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | ||
20151 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
20152 | cat >>confdefs.h <<_ACEOF | ||
20153 | #define HAVE_LIBSECTOK 1 | ||
20154 | _ACEOF | ||
20155 | |||
20156 | LIBS="-lsectok $LIBS" | ||
20157 | |||
20158 | fi | ||
20159 | |||
20160 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
20161 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
20162 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
20163 | { (exit 1); exit 1; }; } | ||
20164 | fi | ||
20165 | cat >>confdefs.h <<\_ACEOF | ||
20166 | #define SMARTCARD 1 | ||
20167 | _ACEOF | ||
20168 | |||
20169 | cat >>confdefs.h <<\_ACEOF | ||
20170 | #define USE_SECTOK 1 | ||
20171 | _ACEOF | ||
20172 | |||
20173 | SCARD_MSG="yes, using sectok" | ||
20174 | fi | ||
20175 | |||
20176 | |||
20177 | fi; | ||
20178 | |||
20179 | # Check whether user wants OpenSC support | ||
20180 | |||
20181 | # Check whether --with-opensc or --without-opensc was given. | ||
20182 | if test "${with_opensc+set}" = set; then | ||
20183 | withval="$with_opensc" | ||
20184 | opensc_config_prefix="$withval" | ||
20185 | else | ||
20186 | opensc_config_prefix="" | ||
20187 | fi; | ||
20188 | if test x$opensc_config_prefix != x ; then | ||
20189 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | ||
20190 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
20191 | set dummy opensc-config; ac_word=$2 | ||
20192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
20194 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
20195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20196 | else | ||
20197 | case $OPENSC_CONFIG in | ||
20198 | [\\/]* | ?:[\\/]*) | ||
20199 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
20200 | ;; | ||
20201 | *) | ||
20202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20203 | for as_dir in $PATH | ||
20204 | do | ||
20205 | IFS=$as_save_IFS | ||
20206 | test -z "$as_dir" && as_dir=. | ||
20207 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
20209 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20211 | break 2 | ||
20212 | fi | ||
20213 | done | ||
20214 | done | ||
20215 | |||
20216 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
20217 | ;; | ||
20218 | esac | ||
20219 | fi | ||
20220 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
20221 | |||
20222 | if test -n "$OPENSC_CONFIG"; then | ||
20223 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
20224 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | ||
20225 | else | ||
20226 | echo "$as_me:$LINENO: result: no" >&5 | ||
20227 | echo "${ECHO_T}no" >&6 | ||
20228 | fi | ||
20229 | |||
20230 | if test "$OPENSC_CONFIG" != "no"; then | ||
20231 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
20232 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
20233 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
20234 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | ||
20235 | cat >>confdefs.h <<\_ACEOF | ||
20236 | #define SMARTCARD 1 | ||
20237 | _ACEOF | ||
20238 | |||
20239 | cat >>confdefs.h <<\_ACEOF | ||
20240 | #define USE_OPENSC 1 | ||
20241 | _ACEOF | ||
20242 | |||
20243 | SCARD_MSG="yes, using OpenSC" | ||
20244 | fi | ||
20245 | fi | ||
20246 | |||
20247 | # Check libraries needed by DNS fingerprint support | ||
20248 | echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
20249 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6 | ||
20250 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
20251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20252 | else | ||
20253 | ac_func_search_save_LIBS=$LIBS | ||
20254 | ac_cv_search_getrrsetbyname=no | ||
20255 | cat >conftest.$ac_ext <<_ACEOF | ||
20256 | /* confdefs.h. */ | ||
20257 | _ACEOF | ||
20258 | cat confdefs.h >>conftest.$ac_ext | ||
20259 | cat >>conftest.$ac_ext <<_ACEOF | ||
20260 | /* end confdefs.h. */ | ||
20261 | |||
20262 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20263 | #ifdef __cplusplus | ||
20264 | extern "C" | ||
20265 | #endif | ||
20266 | /* We use char because int might match the return type of a gcc2 | ||
20267 | builtin and then its argument prototype would still apply. */ | ||
20268 | char getrrsetbyname (); | ||
20269 | int | ||
20270 | main () | ||
20271 | { | ||
20272 | getrrsetbyname (); | ||
20273 | ; | ||
20274 | return 0; | ||
20275 | } | ||
20276 | _ACEOF | ||
20277 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20279 | (eval $ac_link) 2>conftest.er1 | ||
20280 | ac_status=$? | ||
20281 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20282 | rm -f conftest.er1 | ||
20283 | cat conftest.err >&5 | ||
20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20285 | (exit $ac_status); } && | ||
20286 | { ac_try='test -z "$ac_c_werror_flag" | ||
20287 | || test ! -s conftest.err' | ||
20288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20289 | (eval $ac_try) 2>&5 | ||
20290 | ac_status=$? | ||
20291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20292 | (exit $ac_status); }; } && | ||
20293 | { ac_try='test -s conftest$ac_exeext' | ||
20294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20295 | (eval $ac_try) 2>&5 | ||
20296 | ac_status=$? | ||
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20298 | (exit $ac_status); }; }; then | ||
20299 | ac_cv_search_getrrsetbyname="none required" | ||
20300 | else | ||
20301 | echo "$as_me: failed program was:" >&5 | ||
20302 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20303 | |||
20304 | fi | ||
20305 | rm -f conftest.err conftest.$ac_objext \ | ||
20306 | conftest$ac_exeext conftest.$ac_ext | ||
20307 | if test "$ac_cv_search_getrrsetbyname" = no; then | ||
20308 | for ac_lib in resolv; do | ||
20309 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
20310 | cat >conftest.$ac_ext <<_ACEOF | ||
20311 | /* confdefs.h. */ | ||
20312 | _ACEOF | ||
20313 | cat confdefs.h >>conftest.$ac_ext | ||
20314 | cat >>conftest.$ac_ext <<_ACEOF | ||
20315 | /* end confdefs.h. */ | ||
20316 | |||
20317 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20318 | #ifdef __cplusplus | ||
20319 | extern "C" | ||
20320 | #endif | ||
20321 | /* We use char because int might match the return type of a gcc2 | ||
20322 | builtin and then its argument prototype would still apply. */ | ||
20323 | char getrrsetbyname (); | ||
20324 | int | ||
20325 | main () | ||
20326 | { | ||
20327 | getrrsetbyname (); | ||
20328 | ; | ||
20329 | return 0; | ||
20330 | } | ||
20331 | _ACEOF | ||
20332 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20334 | (eval $ac_link) 2>conftest.er1 | ||
20335 | ac_status=$? | ||
20336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20337 | rm -f conftest.er1 | ||
20338 | cat conftest.err >&5 | ||
20339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20340 | (exit $ac_status); } && | ||
20341 | { ac_try='test -z "$ac_c_werror_flag" | ||
20342 | || test ! -s conftest.err' | ||
20343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20344 | (eval $ac_try) 2>&5 | ||
20345 | ac_status=$? | ||
20346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20347 | (exit $ac_status); }; } && | ||
20348 | { ac_try='test -s conftest$ac_exeext' | ||
20349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20350 | (eval $ac_try) 2>&5 | ||
20351 | ac_status=$? | ||
20352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20353 | (exit $ac_status); }; }; then | ||
20354 | ac_cv_search_getrrsetbyname="-l$ac_lib" | ||
20355 | break | ||
20356 | else | ||
20357 | echo "$as_me: failed program was:" >&5 | ||
20358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20359 | |||
20360 | fi | ||
20361 | rm -f conftest.err conftest.$ac_objext \ | ||
20362 | conftest$ac_exeext conftest.$ac_ext | ||
20363 | done | ||
20364 | fi | ||
20365 | LIBS=$ac_func_search_save_LIBS | ||
20366 | fi | ||
20367 | echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
20368 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6 | ||
20369 | if test "$ac_cv_search_getrrsetbyname" != no; then | ||
20370 | test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS" | ||
20371 | cat >>confdefs.h <<\_ACEOF | ||
20372 | #define HAVE_GETRRSETBYNAME 1 | ||
20373 | _ACEOF | ||
20374 | |||
20375 | else | ||
20376 | |||
20377 | # Needed by our getrrsetbyname() | ||
20378 | echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
20379 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6 | ||
20380 | if test "${ac_cv_search_res_query+set}" = set; then | ||
20381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20382 | else | ||
20383 | ac_func_search_save_LIBS=$LIBS | ||
20384 | ac_cv_search_res_query=no | ||
20385 | cat >conftest.$ac_ext <<_ACEOF | ||
20386 | /* confdefs.h. */ | ||
20387 | _ACEOF | ||
20388 | cat confdefs.h >>conftest.$ac_ext | ||
20389 | cat >>conftest.$ac_ext <<_ACEOF | ||
20390 | /* end confdefs.h. */ | ||
20391 | |||
20392 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20393 | #ifdef __cplusplus | ||
20394 | extern "C" | ||
20395 | #endif | ||
20396 | /* We use char because int might match the return type of a gcc2 | ||
20397 | builtin and then its argument prototype would still apply. */ | ||
20398 | char res_query (); | ||
20399 | int | ||
20400 | main () | ||
20401 | { | ||
20402 | res_query (); | ||
20403 | ; | ||
20404 | return 0; | ||
20405 | } | ||
20406 | _ACEOF | ||
20407 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20409 | (eval $ac_link) 2>conftest.er1 | ||
20410 | ac_status=$? | ||
20411 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20412 | rm -f conftest.er1 | ||
20413 | cat conftest.err >&5 | ||
20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20415 | (exit $ac_status); } && | ||
20416 | { ac_try='test -z "$ac_c_werror_flag" | ||
20417 | || test ! -s conftest.err' | ||
20418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20419 | (eval $ac_try) 2>&5 | ||
20420 | ac_status=$? | ||
20421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20422 | (exit $ac_status); }; } && | ||
20423 | { ac_try='test -s conftest$ac_exeext' | ||
20424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20425 | (eval $ac_try) 2>&5 | ||
20426 | ac_status=$? | ||
20427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20428 | (exit $ac_status); }; }; then | ||
20429 | ac_cv_search_res_query="none required" | ||
20430 | else | ||
20431 | echo "$as_me: failed program was:" >&5 | ||
20432 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20433 | |||
20434 | fi | ||
20435 | rm -f conftest.err conftest.$ac_objext \ | ||
20436 | conftest$ac_exeext conftest.$ac_ext | ||
20437 | if test "$ac_cv_search_res_query" = no; then | ||
20438 | for ac_lib in resolv; do | ||
20439 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
20440 | cat >conftest.$ac_ext <<_ACEOF | ||
20441 | /* confdefs.h. */ | ||
20442 | _ACEOF | ||
20443 | cat confdefs.h >>conftest.$ac_ext | ||
20444 | cat >>conftest.$ac_ext <<_ACEOF | ||
20445 | /* end confdefs.h. */ | ||
20446 | |||
20447 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20448 | #ifdef __cplusplus | ||
20449 | extern "C" | ||
20450 | #endif | ||
20451 | /* We use char because int might match the return type of a gcc2 | ||
20452 | builtin and then its argument prototype would still apply. */ | ||
20453 | char res_query (); | ||
20454 | int | ||
20455 | main () | ||
20456 | { | ||
20457 | res_query (); | ||
20458 | ; | ||
20459 | return 0; | ||
20460 | } | ||
20461 | _ACEOF | ||
20462 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20464 | (eval $ac_link) 2>conftest.er1 | ||
20465 | ac_status=$? | ||
20466 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20467 | rm -f conftest.er1 | ||
20468 | cat conftest.err >&5 | ||
20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20470 | (exit $ac_status); } && | ||
20471 | { ac_try='test -z "$ac_c_werror_flag" | ||
20472 | || test ! -s conftest.err' | ||
20473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20474 | (eval $ac_try) 2>&5 | ||
20475 | ac_status=$? | ||
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20477 | (exit $ac_status); }; } && | ||
20478 | { ac_try='test -s conftest$ac_exeext' | ||
20479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20480 | (eval $ac_try) 2>&5 | ||
20481 | ac_status=$? | ||
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20483 | (exit $ac_status); }; }; then | ||
20484 | ac_cv_search_res_query="-l$ac_lib" | ||
20485 | break | ||
20486 | else | ||
20487 | echo "$as_me: failed program was:" >&5 | ||
20488 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20489 | |||
20490 | fi | ||
20491 | rm -f conftest.err conftest.$ac_objext \ | ||
20492 | conftest$ac_exeext conftest.$ac_ext | ||
20493 | done | ||
20494 | fi | ||
20495 | LIBS=$ac_func_search_save_LIBS | ||
20496 | fi | ||
20497 | echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
20498 | echo "${ECHO_T}$ac_cv_search_res_query" >&6 | ||
20499 | if test "$ac_cv_search_res_query" != no; then | ||
20500 | test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS" | ||
20501 | |||
20502 | fi | ||
20503 | |||
20504 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
20505 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
20506 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
20507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20508 | else | ||
20509 | ac_func_search_save_LIBS=$LIBS | ||
20510 | ac_cv_search_dn_expand=no | ||
20511 | cat >conftest.$ac_ext <<_ACEOF | ||
20512 | /* confdefs.h. */ | ||
20513 | _ACEOF | ||
20514 | cat confdefs.h >>conftest.$ac_ext | ||
20515 | cat >>conftest.$ac_ext <<_ACEOF | ||
20516 | /* end confdefs.h. */ | ||
20517 | |||
20518 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20519 | #ifdef __cplusplus | ||
20520 | extern "C" | ||
20521 | #endif | ||
20522 | /* We use char because int might match the return type of a gcc2 | ||
20523 | builtin and then its argument prototype would still apply. */ | ||
20524 | char dn_expand (); | ||
20525 | int | ||
20526 | main () | ||
20527 | { | ||
20528 | dn_expand (); | ||
20529 | ; | ||
20530 | return 0; | ||
20531 | } | ||
20532 | _ACEOF | ||
20533 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20535 | (eval $ac_link) 2>conftest.er1 | ||
20536 | ac_status=$? | ||
20537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20538 | rm -f conftest.er1 | ||
20539 | cat conftest.err >&5 | ||
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20541 | (exit $ac_status); } && | ||
20542 | { ac_try='test -z "$ac_c_werror_flag" | ||
20543 | || test ! -s conftest.err' | ||
20544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20545 | (eval $ac_try) 2>&5 | ||
20546 | ac_status=$? | ||
20547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20548 | (exit $ac_status); }; } && | ||
20549 | { ac_try='test -s conftest$ac_exeext' | ||
20550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20551 | (eval $ac_try) 2>&5 | ||
20552 | ac_status=$? | ||
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20554 | (exit $ac_status); }; }; then | ||
20555 | ac_cv_search_dn_expand="none required" | ||
20556 | else | ||
20557 | echo "$as_me: failed program was:" >&5 | ||
20558 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20559 | |||
20560 | fi | ||
20561 | rm -f conftest.err conftest.$ac_objext \ | ||
20562 | conftest$ac_exeext conftest.$ac_ext | ||
20563 | if test "$ac_cv_search_dn_expand" = no; then | ||
20564 | for ac_lib in resolv; do | ||
20565 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
20566 | cat >conftest.$ac_ext <<_ACEOF | ||
20567 | /* confdefs.h. */ | ||
20568 | _ACEOF | ||
20569 | cat confdefs.h >>conftest.$ac_ext | ||
20570 | cat >>conftest.$ac_ext <<_ACEOF | ||
20571 | /* end confdefs.h. */ | ||
20572 | |||
20573 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20574 | #ifdef __cplusplus | ||
20575 | extern "C" | ||
20576 | #endif | ||
20577 | /* We use char because int might match the return type of a gcc2 | ||
20578 | builtin and then its argument prototype would still apply. */ | ||
20579 | char dn_expand (); | ||
20580 | int | ||
20581 | main () | ||
20582 | { | ||
20583 | dn_expand (); | ||
20584 | ; | ||
20585 | return 0; | ||
20586 | } | ||
20587 | _ACEOF | ||
20588 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20590 | (eval $ac_link) 2>conftest.er1 | ||
20591 | ac_status=$? | ||
20592 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20593 | rm -f conftest.er1 | ||
20594 | cat conftest.err >&5 | ||
20595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20596 | (exit $ac_status); } && | ||
20597 | { ac_try='test -z "$ac_c_werror_flag" | ||
20598 | || test ! -s conftest.err' | ||
20599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20600 | (eval $ac_try) 2>&5 | ||
20601 | ac_status=$? | ||
20602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20603 | (exit $ac_status); }; } && | ||
20604 | { ac_try='test -s conftest$ac_exeext' | ||
20605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20606 | (eval $ac_try) 2>&5 | ||
20607 | ac_status=$? | ||
20608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20609 | (exit $ac_status); }; }; then | ||
20610 | ac_cv_search_dn_expand="-l$ac_lib" | ||
20611 | break | ||
20612 | else | ||
20613 | echo "$as_me: failed program was:" >&5 | ||
20614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20615 | |||
20616 | fi | ||
20617 | rm -f conftest.err conftest.$ac_objext \ | ||
20618 | conftest$ac_exeext conftest.$ac_ext | ||
20619 | done | ||
20620 | fi | ||
20621 | LIBS=$ac_func_search_save_LIBS | ||
20622 | fi | ||
20623 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
20624 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
20625 | if test "$ac_cv_search_dn_expand" != no; then | ||
20626 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
20627 | |||
20628 | fi | ||
20629 | |||
20630 | echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
20631 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6 | ||
20632 | cat >conftest.$ac_ext <<_ACEOF | ||
20633 | /* confdefs.h. */ | ||
20634 | _ACEOF | ||
20635 | cat confdefs.h >>conftest.$ac_ext | ||
20636 | cat >>conftest.$ac_ext <<_ACEOF | ||
20637 | /* end confdefs.h. */ | ||
20638 | |||
20639 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20640 | #ifdef __cplusplus | ||
20641 | extern "C" | ||
20642 | #endif | ||
20643 | /* We use char because int might match the return type of a gcc2 | ||
20644 | builtin and then its argument prototype would still apply. */ | ||
20645 | char res_query (); | ||
20646 | int | ||
20647 | main () | ||
20648 | { | ||
20649 | res_query (); | ||
20650 | ; | ||
20651 | return 0; | ||
20652 | } | ||
20653 | _ACEOF | ||
20654 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20656 | (eval $ac_link) 2>conftest.er1 | ||
20657 | ac_status=$? | ||
20658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20659 | rm -f conftest.er1 | ||
20660 | cat conftest.err >&5 | ||
20661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20662 | (exit $ac_status); } && | ||
20663 | { ac_try='test -z "$ac_c_werror_flag" | ||
20664 | || test ! -s conftest.err' | ||
20665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20666 | (eval $ac_try) 2>&5 | ||
20667 | ac_status=$? | ||
20668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20669 | (exit $ac_status); }; } && | ||
20670 | { ac_try='test -s conftest$ac_exeext' | ||
20671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20672 | (eval $ac_try) 2>&5 | ||
20673 | ac_status=$? | ||
20674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20675 | (exit $ac_status); }; }; then | ||
20676 | echo "$as_me:$LINENO: result: yes" >&5 | ||
20677 | echo "${ECHO_T}yes" >&6 | ||
20678 | else | ||
20679 | echo "$as_me: failed program was:" >&5 | ||
20680 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20681 | |||
20682 | echo "$as_me:$LINENO: result: no" >&5 | ||
20683 | echo "${ECHO_T}no" >&6 | ||
20684 | saved_LIBS="$LIBS" | ||
20685 | LIBS="$LIBS -lresolv" | ||
20686 | echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
20687 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6 | ||
20688 | cat >conftest.$ac_ext <<_ACEOF | ||
20689 | |||
20690 | #include <resolv.h> | ||
20691 | int main() | ||
20692 | { | ||
20693 | res_query (0, 0, 0, 0, 0); | ||
20694 | return 0; | ||
20695 | } | ||
20696 | |||
20697 | _ACEOF | ||
20698 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20700 | (eval $ac_link) 2>conftest.er1 | ||
20701 | ac_status=$? | ||
20702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20703 | rm -f conftest.er1 | ||
20704 | cat conftest.err >&5 | ||
20705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20706 | (exit $ac_status); } && | ||
20707 | { ac_try='test -z "$ac_c_werror_flag" | ||
20708 | || test ! -s conftest.err' | ||
20709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20710 | (eval $ac_try) 2>&5 | ||
20711 | ac_status=$? | ||
20712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20713 | (exit $ac_status); }; } && | ||
20714 | { ac_try='test -s conftest$ac_exeext' | ||
20715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20716 | (eval $ac_try) 2>&5 | ||
20717 | ac_status=$? | ||
20718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20719 | (exit $ac_status); }; }; then | ||
20720 | LIBS="$LIBS -lresolv" | ||
20721 | echo "$as_me:$LINENO: result: yes" >&5 | ||
20722 | echo "${ECHO_T}yes" >&6 | ||
20723 | else | ||
20724 | echo "$as_me: failed program was:" >&5 | ||
20725 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20726 | |||
20727 | LIBS="$saved_LIBS" | ||
20728 | echo "$as_me:$LINENO: result: no" >&5 | ||
20729 | echo "${ECHO_T}no" >&6 | ||
20730 | fi | ||
20731 | rm -f conftest.err conftest.$ac_objext \ | ||
20732 | conftest$ac_exeext conftest.$ac_ext | ||
20733 | |||
20734 | fi | ||
20735 | rm -f conftest.err conftest.$ac_objext \ | ||
20736 | conftest$ac_exeext conftest.$ac_ext | ||
20737 | |||
20738 | |||
20739 | for ac_func in _getshort _getlong | ||
20740 | do | ||
20741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
20742 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
20743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
20744 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
20745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20746 | else | ||
20747 | cat >conftest.$ac_ext <<_ACEOF | ||
20748 | /* confdefs.h. */ | ||
20749 | _ACEOF | ||
20750 | cat confdefs.h >>conftest.$ac_ext | ||
20751 | cat >>conftest.$ac_ext <<_ACEOF | ||
20752 | /* end confdefs.h. */ | ||
20753 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
20754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20755 | #define $ac_func innocuous_$ac_func | ||
20756 | |||
20757 | /* System header to define __stub macros and hopefully few prototypes, | ||
20758 | which can conflict with char $ac_func (); below. | ||
20759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20760 | <limits.h> exists even on freestanding compilers. */ | ||
20761 | |||
20762 | #ifdef __STDC__ | ||
20763 | # include <limits.h> | ||
20764 | #else | ||
20765 | # include <assert.h> | ||
20766 | #endif | ||
20767 | |||
20768 | #undef $ac_func | ||
20769 | |||
20770 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20771 | #ifdef __cplusplus | ||
20772 | extern "C" | ||
20773 | { | ||
20774 | #endif | ||
20775 | /* We use char because int might match the return type of a gcc2 | ||
20776 | builtin and then its argument prototype would still apply. */ | ||
20777 | char $ac_func (); | ||
20778 | /* The GNU C library defines this for functions which it implements | ||
20779 | to always fail with ENOSYS. Some functions are actually named | ||
20780 | something starting with __ and the normal name is an alias. */ | ||
20781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
20782 | choke me | ||
20783 | #else | ||
20784 | char (*f) () = $ac_func; | ||
20785 | #endif | ||
20786 | #ifdef __cplusplus | ||
20787 | } | ||
20788 | #endif | ||
20789 | |||
20790 | int | ||
20791 | main () | ||
20792 | { | ||
20793 | return f != $ac_func; | ||
20794 | ; | ||
20795 | return 0; | ||
20796 | } | ||
20797 | _ACEOF | ||
20798 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20800 | (eval $ac_link) 2>conftest.er1 | ||
20801 | ac_status=$? | ||
20802 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20803 | rm -f conftest.er1 | ||
20804 | cat conftest.err >&5 | ||
20805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20806 | (exit $ac_status); } && | ||
20807 | { ac_try='test -z "$ac_c_werror_flag" | ||
20808 | || test ! -s conftest.err' | ||
20809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20810 | (eval $ac_try) 2>&5 | ||
20811 | ac_status=$? | ||
20812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20813 | (exit $ac_status); }; } && | ||
20814 | { ac_try='test -s conftest$ac_exeext' | ||
20815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20816 | (eval $ac_try) 2>&5 | ||
20817 | ac_status=$? | ||
20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20819 | (exit $ac_status); }; }; then | ||
20820 | eval "$as_ac_var=yes" | ||
20821 | else | ||
20822 | echo "$as_me: failed program was:" >&5 | ||
20823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20824 | |||
20825 | eval "$as_ac_var=no" | ||
20826 | fi | ||
20827 | rm -f conftest.err conftest.$ac_objext \ | ||
20828 | conftest$ac_exeext conftest.$ac_ext | ||
20829 | fi | ||
20830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
20831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
20832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
20833 | cat >>confdefs.h <<_ACEOF | ||
20834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
20835 | _ACEOF | ||
20836 | |||
20837 | fi | ||
20838 | done | ||
20839 | |||
20840 | echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
20841 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6 | ||
20842 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
20843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20844 | else | ||
20845 | cat >conftest.$ac_ext <<_ACEOF | ||
20846 | /* confdefs.h. */ | ||
20847 | _ACEOF | ||
20848 | cat confdefs.h >>conftest.$ac_ext | ||
20849 | cat >>conftest.$ac_ext <<_ACEOF | ||
20850 | /* end confdefs.h. */ | ||
20851 | #include <arpa/nameser.h> | ||
20852 | |||
20853 | int | ||
20854 | main () | ||
20855 | { | ||
20856 | static HEADER ac_aggr; | ||
20857 | if (ac_aggr.ad) | ||
20858 | return 0; | ||
20859 | ; | ||
20860 | return 0; | ||
20861 | } | ||
20862 | _ACEOF | ||
20863 | rm -f conftest.$ac_objext | ||
20864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20865 | (eval $ac_compile) 2>conftest.er1 | ||
20866 | ac_status=$? | ||
20867 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20868 | rm -f conftest.er1 | ||
20869 | cat conftest.err >&5 | ||
20870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20871 | (exit $ac_status); } && | ||
20872 | { ac_try='test -z "$ac_c_werror_flag" | ||
20873 | || test ! -s conftest.err' | ||
20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20875 | (eval $ac_try) 2>&5 | ||
20876 | ac_status=$? | ||
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20878 | (exit $ac_status); }; } && | ||
20879 | { ac_try='test -s conftest.$ac_objext' | ||
20880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20881 | (eval $ac_try) 2>&5 | ||
20882 | ac_status=$? | ||
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20884 | (exit $ac_status); }; }; then | ||
20885 | ac_cv_member_HEADER_ad=yes | ||
20886 | else | ||
20887 | echo "$as_me: failed program was:" >&5 | ||
20888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20889 | |||
20890 | cat >conftest.$ac_ext <<_ACEOF | ||
20891 | /* confdefs.h. */ | ||
20892 | _ACEOF | ||
20893 | cat confdefs.h >>conftest.$ac_ext | ||
20894 | cat >>conftest.$ac_ext <<_ACEOF | ||
20895 | /* end confdefs.h. */ | ||
20896 | #include <arpa/nameser.h> | ||
20897 | |||
20898 | int | ||
20899 | main () | ||
20900 | { | ||
20901 | static HEADER ac_aggr; | ||
20902 | if (sizeof ac_aggr.ad) | ||
20903 | return 0; | ||
20904 | ; | ||
20905 | return 0; | ||
20906 | } | ||
20907 | _ACEOF | ||
20908 | rm -f conftest.$ac_objext | ||
20909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20910 | (eval $ac_compile) 2>conftest.er1 | ||
20911 | ac_status=$? | ||
20912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20913 | rm -f conftest.er1 | ||
20914 | cat conftest.err >&5 | ||
20915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20916 | (exit $ac_status); } && | ||
20917 | { ac_try='test -z "$ac_c_werror_flag" | ||
20918 | || test ! -s conftest.err' | ||
20919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20920 | (eval $ac_try) 2>&5 | ||
20921 | ac_status=$? | ||
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20923 | (exit $ac_status); }; } && | ||
20924 | { ac_try='test -s conftest.$ac_objext' | ||
20925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20926 | (eval $ac_try) 2>&5 | ||
20927 | ac_status=$? | ||
20928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20929 | (exit $ac_status); }; }; then | ||
20930 | ac_cv_member_HEADER_ad=yes | ||
20931 | else | ||
20932 | echo "$as_me: failed program was:" >&5 | ||
20933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20934 | |||
20935 | ac_cv_member_HEADER_ad=no | ||
20936 | fi | ||
20937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20938 | fi | ||
20939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20940 | fi | ||
20941 | echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
20942 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6 | ||
20943 | if test $ac_cv_member_HEADER_ad = yes; then | ||
20944 | cat >>confdefs.h <<\_ACEOF | ||
20945 | #define HAVE_HEADER_AD 1 | ||
20946 | _ACEOF | ||
20947 | |||
20948 | fi | ||
20949 | |||
20950 | |||
20951 | fi | ||
20952 | |||
20953 | |||
20954 | # Check whether user wants Kerberos 5 support | ||
20955 | KRB5_MSG="no" | ||
20956 | |||
20957 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | ||
20958 | if test "${with_kerberos5+set}" = set; then | ||
20959 | withval="$with_kerberos5" | ||
20960 | if test "x$withval" != "xno" ; then | ||
20961 | if test "x$withval" = "xyes" ; then | ||
20962 | KRB5ROOT="/usr/local" | ||
20963 | else | ||
20964 | KRB5ROOT=${withval} | ||
20965 | fi | ||
20966 | |||
20967 | cat >>confdefs.h <<\_ACEOF | ||
20968 | #define KRB5 1 | ||
20969 | _ACEOF | ||
20970 | |||
20971 | KRB5_MSG="yes" | ||
20972 | |||
20973 | echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
20974 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6 | ||
20975 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
20976 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
20977 | echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
20978 | echo "${ECHO_T}$KRB5CONF" >&6 | ||
20979 | |||
20980 | echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
20981 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6 | ||
20982 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
20983 | echo "$as_me:$LINENO: result: yes" >&5 | ||
20984 | echo "${ECHO_T}yes" >&6 | ||
20985 | cat >>confdefs.h <<\_ACEOF | ||
20986 | #define GSSAPI 1 | ||
20987 | _ACEOF | ||
20988 | |||
20989 | k5confopts=gssapi | ||
20990 | else | ||
20991 | echo "$as_me:$LINENO: result: no" >&5 | ||
20992 | echo "${ECHO_T}no" >&6 | ||
20993 | k5confopts="" | ||
20994 | fi | ||
20995 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
20996 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
20997 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
20998 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
20999 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
21000 | cat >conftest.$ac_ext <<_ACEOF | ||
21001 | /* confdefs.h. */ | ||
21002 | _ACEOF | ||
21003 | cat confdefs.h >>conftest.$ac_ext | ||
21004 | cat >>conftest.$ac_ext <<_ACEOF | ||
21005 | /* end confdefs.h. */ | ||
21006 | #include <krb5.h> | ||
21007 | int | ||
21008 | main () | ||
21009 | { | ||
21010 | char *tmp = heimdal_version; | ||
21011 | ; | ||
21012 | return 0; | ||
21013 | } | ||
21014 | _ACEOF | ||
21015 | rm -f conftest.$ac_objext | ||
21016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21017 | (eval $ac_compile) 2>conftest.er1 | ||
21018 | ac_status=$? | ||
21019 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21020 | rm -f conftest.er1 | ||
21021 | cat conftest.err >&5 | ||
21022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21023 | (exit $ac_status); } && | ||
21024 | { ac_try='test -z "$ac_c_werror_flag" | ||
21025 | || test ! -s conftest.err' | ||
21026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21027 | (eval $ac_try) 2>&5 | ||
21028 | ac_status=$? | ||
21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21030 | (exit $ac_status); }; } && | ||
21031 | { ac_try='test -s conftest.$ac_objext' | ||
21032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21033 | (eval $ac_try) 2>&5 | ||
21034 | ac_status=$? | ||
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21036 | (exit $ac_status); }; }; then | ||
21037 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21038 | echo "${ECHO_T}yes" >&6 | ||
21039 | cat >>confdefs.h <<\_ACEOF | ||
21040 | #define HEIMDAL 1 | ||
21041 | _ACEOF | ||
21042 | |||
21043 | else | ||
21044 | echo "$as_me: failed program was:" >&5 | ||
21045 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21046 | |||
21047 | echo "$as_me:$LINENO: result: no" >&5 | ||
21048 | echo "${ECHO_T}no" >&6 | ||
21049 | |||
21050 | fi | ||
21051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21052 | else | ||
21053 | echo "$as_me:$LINENO: result: no" >&5 | ||
21054 | echo "${ECHO_T}no" >&6 | ||
21055 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
21056 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
21057 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
21058 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | ||
21059 | cat >conftest.$ac_ext <<_ACEOF | ||
21060 | /* confdefs.h. */ | ||
21061 | _ACEOF | ||
21062 | cat confdefs.h >>conftest.$ac_ext | ||
21063 | cat >>conftest.$ac_ext <<_ACEOF | ||
21064 | /* end confdefs.h. */ | ||
21065 | #include <krb5.h> | ||
21066 | int | ||
21067 | main () | ||
21068 | { | ||
21069 | char *tmp = heimdal_version; | ||
21070 | ; | ||
21071 | return 0; | ||
21072 | } | ||
21073 | _ACEOF | ||
21074 | rm -f conftest.$ac_objext | ||
21075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21076 | (eval $ac_compile) 2>conftest.er1 | ||
21077 | ac_status=$? | ||
21078 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21079 | rm -f conftest.er1 | ||
21080 | cat conftest.err >&5 | ||
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21082 | (exit $ac_status); } && | ||
21083 | { ac_try='test -z "$ac_c_werror_flag" | ||
21084 | || test ! -s conftest.err' | ||
21085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21086 | (eval $ac_try) 2>&5 | ||
21087 | ac_status=$? | ||
21088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21089 | (exit $ac_status); }; } && | ||
21090 | { ac_try='test -s conftest.$ac_objext' | ||
21091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21092 | (eval $ac_try) 2>&5 | ||
21093 | ac_status=$? | ||
21094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21095 | (exit $ac_status); }; }; then | ||
21096 | echo "$as_me:$LINENO: result: yes" >&5 | ||
21097 | echo "${ECHO_T}yes" >&6 | ||
21098 | cat >>confdefs.h <<\_ACEOF | ||
21099 | #define HEIMDAL 1 | ||
21100 | _ACEOF | ||
21101 | |||
21102 | K5LIBS="-lkrb5 -ldes" | ||
21103 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
21104 | echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
21105 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6 | ||
21106 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
21107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21108 | else | ||
21109 | ac_check_lib_save_LIBS=$LIBS | ||
21110 | LIBS="-lroken $LIBS" | ||
21111 | cat >conftest.$ac_ext <<_ACEOF | ||
21112 | /* confdefs.h. */ | ||
21113 | _ACEOF | ||
21114 | cat confdefs.h >>conftest.$ac_ext | ||
21115 | cat >>conftest.$ac_ext <<_ACEOF | ||
21116 | /* end confdefs.h. */ | ||
21117 | |||
21118 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21119 | #ifdef __cplusplus | ||
21120 | extern "C" | ||
21121 | #endif | ||
21122 | /* We use char because int might match the return type of a gcc2 | ||
21123 | builtin and then its argument prototype would still apply. */ | ||
21124 | char net_write (); | ||
21125 | int | ||
21126 | main () | ||
21127 | { | ||
21128 | net_write (); | ||
21129 | ; | ||
21130 | return 0; | ||
21131 | } | ||
21132 | _ACEOF | ||
21133 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21135 | (eval $ac_link) 2>conftest.er1 | ||
21136 | ac_status=$? | ||
21137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21138 | rm -f conftest.er1 | ||
21139 | cat conftest.err >&5 | ||
21140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21141 | (exit $ac_status); } && | ||
21142 | { ac_try='test -z "$ac_c_werror_flag" | ||
21143 | || test ! -s conftest.err' | ||
21144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21145 | (eval $ac_try) 2>&5 | ||
21146 | ac_status=$? | ||
21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21148 | (exit $ac_status); }; } && | ||
21149 | { ac_try='test -s conftest$ac_exeext' | ||
21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21151 | (eval $ac_try) 2>&5 | ||
21152 | ac_status=$? | ||
21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21154 | (exit $ac_status); }; }; then | ||
21155 | ac_cv_lib_roken_net_write=yes | ||
21156 | else | ||
21157 | echo "$as_me: failed program was:" >&5 | ||
21158 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21159 | |||
21160 | ac_cv_lib_roken_net_write=no | ||
21161 | fi | ||
21162 | rm -f conftest.err conftest.$ac_objext \ | ||
21163 | conftest$ac_exeext conftest.$ac_ext | ||
21164 | LIBS=$ac_check_lib_save_LIBS | ||
21165 | fi | ||
21166 | echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
21167 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6 | ||
21168 | if test $ac_cv_lib_roken_net_write = yes; then | ||
21169 | K5LIBS="$K5LIBS -lroken" | ||
21170 | fi | ||
21171 | |||
21172 | |||
21173 | else | ||
21174 | echo "$as_me: failed program was:" >&5 | ||
21175 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21176 | |||
21177 | echo "$as_me:$LINENO: result: no" >&5 | ||
21178 | echo "${ECHO_T}no" >&6 | ||
21179 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
21180 | |||
21181 | |||
21182 | fi | ||
21183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21184 | echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
21185 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6 | ||
21186 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
21187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21188 | else | ||
21189 | ac_func_search_save_LIBS=$LIBS | ||
21190 | ac_cv_search_dn_expand=no | ||
21191 | cat >conftest.$ac_ext <<_ACEOF | ||
21192 | /* confdefs.h. */ | ||
21193 | _ACEOF | ||
21194 | cat confdefs.h >>conftest.$ac_ext | ||
21195 | cat >>conftest.$ac_ext <<_ACEOF | ||
21196 | /* end confdefs.h. */ | ||
21197 | |||
21198 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21199 | #ifdef __cplusplus | ||
21200 | extern "C" | ||
21201 | #endif | ||
21202 | /* We use char because int might match the return type of a gcc2 | ||
21203 | builtin and then its argument prototype would still apply. */ | ||
21204 | char dn_expand (); | ||
21205 | int | ||
21206 | main () | ||
21207 | { | ||
21208 | dn_expand (); | ||
21209 | ; | ||
21210 | return 0; | ||
21211 | } | ||
21212 | _ACEOF | ||
21213 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21215 | (eval $ac_link) 2>conftest.er1 | ||
21216 | ac_status=$? | ||
21217 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21218 | rm -f conftest.er1 | ||
21219 | cat conftest.err >&5 | ||
21220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21221 | (exit $ac_status); } && | ||
21222 | { ac_try='test -z "$ac_c_werror_flag" | ||
21223 | || test ! -s conftest.err' | ||
21224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21225 | (eval $ac_try) 2>&5 | ||
21226 | ac_status=$? | ||
21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21228 | (exit $ac_status); }; } && | ||
21229 | { ac_try='test -s conftest$ac_exeext' | ||
21230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21231 | (eval $ac_try) 2>&5 | ||
21232 | ac_status=$? | ||
21233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21234 | (exit $ac_status); }; }; then | ||
21235 | ac_cv_search_dn_expand="none required" | ||
21236 | else | ||
21237 | echo "$as_me: failed program was:" >&5 | ||
21238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21239 | |||
21240 | fi | ||
21241 | rm -f conftest.err conftest.$ac_objext \ | ||
21242 | conftest$ac_exeext conftest.$ac_ext | ||
21243 | if test "$ac_cv_search_dn_expand" = no; then | ||
21244 | for ac_lib in resolv; do | ||
21245 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
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 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21254 | #ifdef __cplusplus | ||
21255 | extern "C" | ||
21256 | #endif | ||
21257 | /* We use char because int might match the return type of a gcc2 | ||
21258 | builtin and then its argument prototype would still apply. */ | ||
21259 | char dn_expand (); | ||
21260 | int | ||
21261 | main () | ||
21262 | { | ||
21263 | dn_expand (); | ||
21264 | ; | ||
21265 | return 0; | ||
21266 | } | ||
21267 | _ACEOF | ||
21268 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21270 | (eval $ac_link) 2>conftest.er1 | ||
21271 | ac_status=$? | ||
21272 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21273 | rm -f conftest.er1 | ||
21274 | cat conftest.err >&5 | ||
21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21276 | (exit $ac_status); } && | ||
21277 | { ac_try='test -z "$ac_c_werror_flag" | ||
21278 | || test ! -s conftest.err' | ||
21279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21280 | (eval $ac_try) 2>&5 | ||
21281 | ac_status=$? | ||
21282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21283 | (exit $ac_status); }; } && | ||
21284 | { ac_try='test -s conftest$ac_exeext' | ||
21285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21286 | (eval $ac_try) 2>&5 | ||
21287 | ac_status=$? | ||
21288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21289 | (exit $ac_status); }; }; then | ||
21290 | ac_cv_search_dn_expand="-l$ac_lib" | ||
21291 | break | ||
21292 | else | ||
21293 | echo "$as_me: failed program was:" >&5 | ||
21294 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21295 | |||
21296 | fi | ||
21297 | rm -f conftest.err conftest.$ac_objext \ | ||
21298 | conftest$ac_exeext conftest.$ac_ext | ||
21299 | done | ||
21300 | fi | ||
21301 | LIBS=$ac_func_search_save_LIBS | ||
21302 | fi | ||
21303 | echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
21304 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6 | ||
21305 | if test "$ac_cv_search_dn_expand" != no; then | ||
21306 | test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS" | ||
21307 | |||
21308 | fi | ||
21309 | |||
21310 | |||
21311 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
21312 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6 | ||
21313 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
21314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21315 | else | ||
21316 | ac_check_lib_save_LIBS=$LIBS | ||
21317 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
21318 | cat >conftest.$ac_ext <<_ACEOF | ||
21319 | /* confdefs.h. */ | ||
21320 | _ACEOF | ||
21321 | cat confdefs.h >>conftest.$ac_ext | ||
21322 | cat >>conftest.$ac_ext <<_ACEOF | ||
21323 | /* end confdefs.h. */ | ||
21324 | |||
21325 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21326 | #ifdef __cplusplus | ||
21327 | extern "C" | ||
21328 | #endif | ||
21329 | /* We use char because int might match the return type of a gcc2 | ||
21330 | builtin and then its argument prototype would still apply. */ | ||
21331 | char gss_init_sec_context (); | ||
21332 | int | ||
21333 | main () | ||
21334 | { | ||
21335 | gss_init_sec_context (); | ||
21336 | ; | ||
21337 | return 0; | ||
21338 | } | ||
21339 | _ACEOF | ||
21340 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21342 | (eval $ac_link) 2>conftest.er1 | ||
21343 | ac_status=$? | ||
21344 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21345 | rm -f conftest.er1 | ||
21346 | cat conftest.err >&5 | ||
21347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21348 | (exit $ac_status); } && | ||
21349 | { ac_try='test -z "$ac_c_werror_flag" | ||
21350 | || test ! -s conftest.err' | ||
21351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21352 | (eval $ac_try) 2>&5 | ||
21353 | ac_status=$? | ||
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21355 | (exit $ac_status); }; } && | ||
21356 | { ac_try='test -s conftest$ac_exeext' | ||
21357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21358 | (eval $ac_try) 2>&5 | ||
21359 | ac_status=$? | ||
21360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21361 | (exit $ac_status); }; }; then | ||
21362 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
21363 | else | ||
21364 | echo "$as_me: failed program was:" >&5 | ||
21365 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21366 | |||
21367 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
21368 | fi | ||
21369 | rm -f conftest.err conftest.$ac_objext \ | ||
21370 | conftest$ac_exeext conftest.$ac_ext | ||
21371 | LIBS=$ac_check_lib_save_LIBS | ||
21372 | fi | ||
21373 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
21374 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6 | ||
21375 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
21376 | cat >>confdefs.h <<\_ACEOF | ||
21377 | #define GSSAPI 1 | ||
21378 | _ACEOF | ||
21379 | |||
21380 | K5LIBS="-lgssapi $K5LIBS" | ||
21381 | else | ||
21382 | echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
21383 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6 | ||
21384 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
21385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21386 | else | ||
21387 | ac_check_lib_save_LIBS=$LIBS | ||
21388 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
21389 | cat >conftest.$ac_ext <<_ACEOF | ||
21390 | /* confdefs.h. */ | ||
21391 | _ACEOF | ||
21392 | cat confdefs.h >>conftest.$ac_ext | ||
21393 | cat >>conftest.$ac_ext <<_ACEOF | ||
21394 | /* end confdefs.h. */ | ||
21395 | |||
21396 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21397 | #ifdef __cplusplus | ||
21398 | extern "C" | ||
21399 | #endif | ||
21400 | /* We use char because int might match the return type of a gcc2 | ||
21401 | builtin and then its argument prototype would still apply. */ | ||
21402 | char gss_init_sec_context (); | ||
21403 | int | ||
21404 | main () | ||
21405 | { | ||
21406 | gss_init_sec_context (); | ||
21407 | ; | ||
21408 | return 0; | ||
21409 | } | ||
21410 | _ACEOF | ||
21411 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21413 | (eval $ac_link) 2>conftest.er1 | ||
21414 | ac_status=$? | ||
21415 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21416 | rm -f conftest.er1 | ||
21417 | cat conftest.err >&5 | ||
21418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21419 | (exit $ac_status); } && | ||
21420 | { ac_try='test -z "$ac_c_werror_flag" | ||
21421 | || test ! -s conftest.err' | ||
21422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21423 | (eval $ac_try) 2>&5 | ||
21424 | ac_status=$? | ||
21425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21426 | (exit $ac_status); }; } && | ||
21427 | { ac_try='test -s conftest$ac_exeext' | ||
21428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21429 | (eval $ac_try) 2>&5 | ||
21430 | ac_status=$? | ||
21431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21432 | (exit $ac_status); }; }; then | ||
21433 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
21434 | else | ||
21435 | echo "$as_me: failed program was:" >&5 | ||
21436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21437 | |||
21438 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
21439 | fi | ||
21440 | rm -f conftest.err conftest.$ac_objext \ | ||
21441 | conftest$ac_exeext conftest.$ac_ext | ||
21442 | LIBS=$ac_check_lib_save_LIBS | ||
21443 | fi | ||
21444 | echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
21445 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6 | ||
21446 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
21447 | cat >>confdefs.h <<\_ACEOF | ||
21448 | #define GSSAPI 1 | ||
21449 | _ACEOF | ||
21450 | |||
21451 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
21452 | else | ||
21453 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
21454 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
21455 | fi | ||
21456 | |||
21457 | |||
21458 | fi | ||
21459 | |||
21460 | |||
21461 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
21462 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
21463 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
21464 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
21465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21466 | fi | ||
21467 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
21468 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
21469 | else | ||
21470 | # Is the header compilable? | ||
21471 | echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
21472 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 | ||
21473 | cat >conftest.$ac_ext <<_ACEOF | ||
21474 | /* confdefs.h. */ | ||
21475 | _ACEOF | ||
21476 | cat confdefs.h >>conftest.$ac_ext | ||
21477 | cat >>conftest.$ac_ext <<_ACEOF | ||
21478 | /* end confdefs.h. */ | ||
21479 | $ac_includes_default | ||
21480 | #include <gssapi.h> | ||
21481 | _ACEOF | ||
21482 | rm -f conftest.$ac_objext | ||
21483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21484 | (eval $ac_compile) 2>conftest.er1 | ||
21485 | ac_status=$? | ||
21486 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21487 | rm -f conftest.er1 | ||
21488 | cat conftest.err >&5 | ||
21489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21490 | (exit $ac_status); } && | ||
21491 | { ac_try='test -z "$ac_c_werror_flag" | ||
21492 | || test ! -s conftest.err' | ||
21493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21494 | (eval $ac_try) 2>&5 | ||
21495 | ac_status=$? | ||
21496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21497 | (exit $ac_status); }; } && | ||
21498 | { ac_try='test -s conftest.$ac_objext' | ||
21499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21500 | (eval $ac_try) 2>&5 | ||
21501 | ac_status=$? | ||
21502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21503 | (exit $ac_status); }; }; then | ||
21504 | ac_header_compiler=yes | ||
21505 | else | ||
21506 | echo "$as_me: failed program was:" >&5 | ||
21507 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21508 | |||
21509 | ac_header_compiler=no | ||
21510 | fi | ||
21511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21512 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21513 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21514 | |||
21515 | # Is the header present? | ||
21516 | echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
21517 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 | ||
21518 | cat >conftest.$ac_ext <<_ACEOF | ||
21519 | /* confdefs.h. */ | ||
21520 | _ACEOF | ||
21521 | cat confdefs.h >>conftest.$ac_ext | ||
21522 | cat >>conftest.$ac_ext <<_ACEOF | ||
21523 | /* end confdefs.h. */ | ||
21524 | #include <gssapi.h> | ||
21525 | _ACEOF | ||
21526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21528 | ac_status=$? | ||
21529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21530 | rm -f conftest.er1 | ||
21531 | cat conftest.err >&5 | ||
21532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21533 | (exit $ac_status); } >/dev/null; then | ||
21534 | if test -s conftest.err; then | ||
21535 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21536 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21537 | else | ||
21538 | ac_cpp_err= | ||
21539 | fi | ||
21540 | else | ||
21541 | ac_cpp_err=yes | ||
21542 | fi | ||
21543 | if test -z "$ac_cpp_err"; then | ||
21544 | ac_header_preproc=yes | ||
21545 | else | ||
21546 | echo "$as_me: failed program was:" >&5 | ||
21547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21548 | |||
21549 | ac_header_preproc=no | ||
21550 | fi | ||
21551 | rm -f conftest.err conftest.$ac_ext | ||
21552 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21553 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21554 | |||
21555 | # So? What about this header? | ||
21556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21557 | yes:no: ) | ||
21558 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21559 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21560 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
21561 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
21562 | ac_header_preproc=yes | ||
21563 | ;; | ||
21564 | no:yes:* ) | ||
21565 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
21566 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
21567 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
21568 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
21569 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
21570 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
21571 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
21572 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21573 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
21574 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
21575 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
21576 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
21577 | ( | ||
21578 | cat <<\_ASBOX | ||
21579 | ## ------------------------------------------ ## | ||
21580 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
21581 | ## ------------------------------------------ ## | ||
21582 | _ASBOX | ||
21583 | ) | | ||
21584 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21585 | ;; | ||
21586 | esac | ||
21587 | echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
21588 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 | ||
21589 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
21590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21591 | else | ||
21592 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
21593 | fi | ||
21594 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
21595 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 | ||
21596 | |||
21597 | fi | ||
21598 | if test $ac_cv_header_gssapi_h = yes; then | ||
21599 | : | ||
21600 | else | ||
21601 | unset ac_cv_header_gssapi_h | ||
21602 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
21603 | |||
21604 | for ac_header in gssapi.h | ||
21605 | do | ||
21606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21612 | fi | ||
21613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21614 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21615 | else | ||
21616 | # Is the header compilable? | ||
21617 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21619 | cat >conftest.$ac_ext <<_ACEOF | ||
21620 | /* confdefs.h. */ | ||
21621 | _ACEOF | ||
21622 | cat confdefs.h >>conftest.$ac_ext | ||
21623 | cat >>conftest.$ac_ext <<_ACEOF | ||
21624 | /* end confdefs.h. */ | ||
21625 | $ac_includes_default | ||
21626 | #include <$ac_header> | ||
21627 | _ACEOF | ||
21628 | rm -f conftest.$ac_objext | ||
21629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21630 | (eval $ac_compile) 2>conftest.er1 | ||
21631 | ac_status=$? | ||
21632 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21633 | rm -f conftest.er1 | ||
21634 | cat conftest.err >&5 | ||
21635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21636 | (exit $ac_status); } && | ||
21637 | { ac_try='test -z "$ac_c_werror_flag" | ||
21638 | || test ! -s conftest.err' | ||
21639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21640 | (eval $ac_try) 2>&5 | ||
21641 | ac_status=$? | ||
21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21643 | (exit $ac_status); }; } && | ||
21644 | { ac_try='test -s conftest.$ac_objext' | ||
21645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21646 | (eval $ac_try) 2>&5 | ||
21647 | ac_status=$? | ||
21648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21649 | (exit $ac_status); }; }; then | ||
21650 | ac_header_compiler=yes | ||
21651 | else | ||
21652 | echo "$as_me: failed program was:" >&5 | ||
21653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21654 | |||
21655 | ac_header_compiler=no | ||
21656 | fi | ||
21657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21658 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21659 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21660 | |||
21661 | # Is the header present? | ||
21662 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21663 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21664 | cat >conftest.$ac_ext <<_ACEOF | ||
21665 | /* confdefs.h. */ | ||
21666 | _ACEOF | ||
21667 | cat confdefs.h >>conftest.$ac_ext | ||
21668 | cat >>conftest.$ac_ext <<_ACEOF | ||
21669 | /* end confdefs.h. */ | ||
21670 | #include <$ac_header> | ||
21671 | _ACEOF | ||
21672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21674 | ac_status=$? | ||
21675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21676 | rm -f conftest.er1 | ||
21677 | cat conftest.err >&5 | ||
21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21679 | (exit $ac_status); } >/dev/null; then | ||
21680 | if test -s conftest.err; then | ||
21681 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21683 | else | ||
21684 | ac_cpp_err= | ||
21685 | fi | ||
21686 | else | ||
21687 | ac_cpp_err=yes | ||
21688 | fi | ||
21689 | if test -z "$ac_cpp_err"; then | ||
21690 | ac_header_preproc=yes | ||
21691 | else | ||
21692 | echo "$as_me: failed program was:" >&5 | ||
21693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21694 | |||
21695 | ac_header_preproc=no | ||
21696 | fi | ||
21697 | rm -f conftest.err conftest.$ac_ext | ||
21698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21699 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21700 | |||
21701 | # So? What about this header? | ||
21702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21703 | yes:no: ) | ||
21704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21708 | ac_header_preproc=yes | ||
21709 | ;; | ||
21710 | no:yes:* ) | ||
21711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21723 | ( | ||
21724 | cat <<\_ASBOX | ||
21725 | ## ------------------------------------------ ## | ||
21726 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
21727 | ## ------------------------------------------ ## | ||
21728 | _ASBOX | ||
21729 | ) | | ||
21730 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21731 | ;; | ||
21732 | esac | ||
21733 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21737 | else | ||
21738 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21739 | fi | ||
21740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21742 | |||
21743 | fi | ||
21744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21745 | cat >>confdefs.h <<_ACEOF | ||
21746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21747 | _ACEOF | ||
21748 | |||
21749 | else | ||
21750 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
21751 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
21752 | |||
21753 | fi | ||
21754 | |||
21755 | done | ||
21756 | |||
21757 | |||
21758 | |||
21759 | fi | ||
21760 | |||
21761 | |||
21762 | |||
21763 | oldCPP="$CPPFLAGS" | ||
21764 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
21765 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
21766 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
21767 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
21768 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
21769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21770 | fi | ||
21771 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
21772 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
21773 | else | ||
21774 | # Is the header compilable? | ||
21775 | echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
21776 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6 | ||
21777 | cat >conftest.$ac_ext <<_ACEOF | ||
21778 | /* confdefs.h. */ | ||
21779 | _ACEOF | ||
21780 | cat confdefs.h >>conftest.$ac_ext | ||
21781 | cat >>conftest.$ac_ext <<_ACEOF | ||
21782 | /* end confdefs.h. */ | ||
21783 | $ac_includes_default | ||
21784 | #include <gssapi_krb5.h> | ||
21785 | _ACEOF | ||
21786 | rm -f conftest.$ac_objext | ||
21787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21788 | (eval $ac_compile) 2>conftest.er1 | ||
21789 | ac_status=$? | ||
21790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21791 | rm -f conftest.er1 | ||
21792 | cat conftest.err >&5 | ||
21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21794 | (exit $ac_status); } && | ||
21795 | { ac_try='test -z "$ac_c_werror_flag" | ||
21796 | || test ! -s conftest.err' | ||
21797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21798 | (eval $ac_try) 2>&5 | ||
21799 | ac_status=$? | ||
21800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21801 | (exit $ac_status); }; } && | ||
21802 | { ac_try='test -s conftest.$ac_objext' | ||
21803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21804 | (eval $ac_try) 2>&5 | ||
21805 | ac_status=$? | ||
21806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21807 | (exit $ac_status); }; }; then | ||
21808 | ac_header_compiler=yes | ||
21809 | else | ||
21810 | echo "$as_me: failed program was:" >&5 | ||
21811 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21812 | |||
21813 | ac_header_compiler=no | ||
21814 | fi | ||
21815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21817 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21818 | |||
21819 | # Is the header present? | ||
21820 | echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
21821 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6 | ||
21822 | cat >conftest.$ac_ext <<_ACEOF | ||
21823 | /* confdefs.h. */ | ||
21824 | _ACEOF | ||
21825 | cat confdefs.h >>conftest.$ac_ext | ||
21826 | cat >>conftest.$ac_ext <<_ACEOF | ||
21827 | /* end confdefs.h. */ | ||
21828 | #include <gssapi_krb5.h> | ||
21829 | _ACEOF | ||
21830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21832 | ac_status=$? | ||
21833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21834 | rm -f conftest.er1 | ||
21835 | cat conftest.err >&5 | ||
21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21837 | (exit $ac_status); } >/dev/null; then | ||
21838 | if test -s conftest.err; then | ||
21839 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21840 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21841 | else | ||
21842 | ac_cpp_err= | ||
21843 | fi | ||
21844 | else | ||
21845 | ac_cpp_err=yes | ||
21846 | fi | ||
21847 | if test -z "$ac_cpp_err"; then | ||
21848 | ac_header_preproc=yes | ||
21849 | else | ||
21850 | echo "$as_me: failed program was:" >&5 | ||
21851 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21852 | |||
21853 | ac_header_preproc=no | ||
21854 | fi | ||
21855 | rm -f conftest.err conftest.$ac_ext | ||
21856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21857 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21858 | |||
21859 | # So? What about this header? | ||
21860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21861 | yes:no: ) | ||
21862 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21863 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21864 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
21865 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
21866 | ac_header_preproc=yes | ||
21867 | ;; | ||
21868 | no:yes:* ) | ||
21869 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
21870 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
21871 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
21872 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
21873 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
21874 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
21875 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
21876 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21877 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
21878 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
21879 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
21880 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
21881 | ( | ||
21882 | cat <<\_ASBOX | ||
21883 | ## ------------------------------------------ ## | ||
21884 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
21885 | ## ------------------------------------------ ## | ||
21886 | _ASBOX | ||
21887 | ) | | ||
21888 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21889 | ;; | ||
21890 | esac | ||
21891 | echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
21892 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6 | ||
21893 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
21894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21895 | else | ||
21896 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
21897 | fi | ||
21898 | echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
21899 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6 | ||
21900 | |||
21901 | fi | ||
21902 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
21903 | : | ||
21904 | else | ||
21905 | CPPFLAGS="$oldCPP" | ||
21906 | fi | ||
21907 | |||
21908 | |||
21909 | |||
21910 | fi | ||
21911 | if test ! -z "$need_dash_r" ; then | ||
21912 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
21913 | fi | ||
21914 | if test ! -z "$blibpath" ; then | ||
21915 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
21916 | fi | ||
21917 | fi | ||
21918 | |||
21919 | |||
21920 | |||
21921 | for ac_header in gssapi.h gssapi/gssapi.h | ||
21922 | do | ||
21923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21929 | fi | ||
21930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21932 | else | ||
21933 | # Is the header compilable? | ||
21934 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21935 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21936 | cat >conftest.$ac_ext <<_ACEOF | ||
21937 | /* confdefs.h. */ | ||
21938 | _ACEOF | ||
21939 | cat confdefs.h >>conftest.$ac_ext | ||
21940 | cat >>conftest.$ac_ext <<_ACEOF | ||
21941 | /* end confdefs.h. */ | ||
21942 | $ac_includes_default | ||
21943 | #include <$ac_header> | ||
21944 | _ACEOF | ||
21945 | rm -f conftest.$ac_objext | ||
21946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21947 | (eval $ac_compile) 2>conftest.er1 | ||
21948 | ac_status=$? | ||
21949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21950 | rm -f conftest.er1 | ||
21951 | cat conftest.err >&5 | ||
21952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21953 | (exit $ac_status); } && | ||
21954 | { ac_try='test -z "$ac_c_werror_flag" | ||
21955 | || test ! -s conftest.err' | ||
21956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21957 | (eval $ac_try) 2>&5 | ||
21958 | ac_status=$? | ||
21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21960 | (exit $ac_status); }; } && | ||
21961 | { ac_try='test -s conftest.$ac_objext' | ||
21962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21963 | (eval $ac_try) 2>&5 | ||
21964 | ac_status=$? | ||
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21966 | (exit $ac_status); }; }; then | ||
21967 | ac_header_compiler=yes | ||
21968 | else | ||
21969 | echo "$as_me: failed program was:" >&5 | ||
21970 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21971 | |||
21972 | ac_header_compiler=no | ||
21973 | fi | ||
21974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21975 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21976 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21977 | |||
21978 | # Is the header present? | ||
21979 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21980 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21981 | cat >conftest.$ac_ext <<_ACEOF | ||
21982 | /* confdefs.h. */ | ||
21983 | _ACEOF | ||
21984 | cat confdefs.h >>conftest.$ac_ext | ||
21985 | cat >>conftest.$ac_ext <<_ACEOF | ||
21986 | /* end confdefs.h. */ | ||
21987 | #include <$ac_header> | ||
21988 | _ACEOF | ||
21989 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21990 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | ||
21997 | if test -s conftest.err; then | ||
21998 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21999 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22000 | else | ||
22001 | ac_cpp_err= | ||
22002 | fi | ||
22003 | else | ||
22004 | ac_cpp_err=yes | ||
22005 | fi | ||
22006 | if test -z "$ac_cpp_err"; then | ||
22007 | ac_header_preproc=yes | ||
22008 | else | ||
22009 | echo "$as_me: failed program was:" >&5 | ||
22010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22011 | |||
22012 | ac_header_preproc=no | ||
22013 | fi | ||
22014 | rm -f conftest.err conftest.$ac_ext | ||
22015 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22016 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22017 | |||
22018 | # So? What about this header? | ||
22019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22020 | yes:no: ) | ||
22021 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22022 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22023 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22024 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22025 | ac_header_preproc=yes | ||
22026 | ;; | ||
22027 | no:yes:* ) | ||
22028 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22029 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22030 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22031 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22032 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22033 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22034 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22035 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22036 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22037 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22038 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22039 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22040 | ( | ||
22041 | cat <<\_ASBOX | ||
22042 | ## ------------------------------------------ ## | ||
22043 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
22044 | ## ------------------------------------------ ## | ||
22045 | _ASBOX | ||
22046 | ) | | ||
22047 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22048 | ;; | ||
22049 | esac | ||
22050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22054 | else | ||
22055 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22056 | fi | ||
22057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22059 | |||
22060 | fi | ||
22061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22062 | cat >>confdefs.h <<_ACEOF | ||
22063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22064 | _ACEOF | ||
22065 | |||
22066 | fi | ||
22067 | |||
22068 | done | ||
22069 | |||
22070 | |||
22071 | |||
22072 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
22073 | do | ||
22074 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22076 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22080 | fi | ||
22081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22082 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22083 | else | ||
22084 | # Is the header compilable? | ||
22085 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22087 | cat >conftest.$ac_ext <<_ACEOF | ||
22088 | /* confdefs.h. */ | ||
22089 | _ACEOF | ||
22090 | cat confdefs.h >>conftest.$ac_ext | ||
22091 | cat >>conftest.$ac_ext <<_ACEOF | ||
22092 | /* end confdefs.h. */ | ||
22093 | $ac_includes_default | ||
22094 | #include <$ac_header> | ||
22095 | _ACEOF | ||
22096 | rm -f conftest.$ac_objext | ||
22097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22098 | (eval $ac_compile) 2>conftest.er1 | ||
22099 | ac_status=$? | ||
22100 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22101 | rm -f conftest.er1 | ||
22102 | cat conftest.err >&5 | ||
22103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22104 | (exit $ac_status); } && | ||
22105 | { ac_try='test -z "$ac_c_werror_flag" | ||
22106 | || test ! -s conftest.err' | ||
22107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22108 | (eval $ac_try) 2>&5 | ||
22109 | ac_status=$? | ||
22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22111 | (exit $ac_status); }; } && | ||
22112 | { ac_try='test -s conftest.$ac_objext' | ||
22113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22114 | (eval $ac_try) 2>&5 | ||
22115 | ac_status=$? | ||
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22117 | (exit $ac_status); }; }; then | ||
22118 | ac_header_compiler=yes | ||
22119 | else | ||
22120 | echo "$as_me: failed program was:" >&5 | ||
22121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22122 | |||
22123 | ac_header_compiler=no | ||
22124 | fi | ||
22125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22126 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22127 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22128 | |||
22129 | # Is the header present? | ||
22130 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22131 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22132 | cat >conftest.$ac_ext <<_ACEOF | ||
22133 | /* confdefs.h. */ | ||
22134 | _ACEOF | ||
22135 | cat confdefs.h >>conftest.$ac_ext | ||
22136 | cat >>conftest.$ac_ext <<_ACEOF | ||
22137 | /* end confdefs.h. */ | ||
22138 | #include <$ac_header> | ||
22139 | _ACEOF | ||
22140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22142 | ac_status=$? | ||
22143 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22144 | rm -f conftest.er1 | ||
22145 | cat conftest.err >&5 | ||
22146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22147 | (exit $ac_status); } >/dev/null; then | ||
22148 | if test -s conftest.err; then | ||
22149 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22151 | else | ||
22152 | ac_cpp_err= | ||
22153 | fi | ||
22154 | else | ||
22155 | ac_cpp_err=yes | ||
22156 | fi | ||
22157 | if test -z "$ac_cpp_err"; then | ||
22158 | ac_header_preproc=yes | ||
22159 | else | ||
22160 | echo "$as_me: failed program was:" >&5 | ||
22161 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22162 | |||
22163 | ac_header_preproc=no | ||
22164 | fi | ||
22165 | rm -f conftest.err conftest.$ac_ext | ||
22166 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22167 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22168 | |||
22169 | # So? What about this header? | ||
22170 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22171 | yes:no: ) | ||
22172 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22173 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22175 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22176 | ac_header_preproc=yes | ||
22177 | ;; | ||
22178 | no:yes:* ) | ||
22179 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22180 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22181 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22182 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22183 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22184 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22185 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22186 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22188 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22189 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22190 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22191 | ( | ||
22192 | cat <<\_ASBOX | ||
22193 | ## ------------------------------------------ ## | ||
22194 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
22195 | ## ------------------------------------------ ## | ||
22196 | _ASBOX | ||
22197 | ) | | ||
22198 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22199 | ;; | ||
22200 | esac | ||
22201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22205 | else | ||
22206 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22207 | fi | ||
22208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22209 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22210 | |||
22211 | fi | ||
22212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22213 | cat >>confdefs.h <<_ACEOF | ||
22214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22215 | _ACEOF | ||
22216 | |||
22217 | fi | ||
22218 | |||
22219 | done | ||
22220 | |||
22221 | |||
22222 | |||
22223 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
22224 | do | ||
22225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
22226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22231 | fi | ||
22232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22234 | else | ||
22235 | # Is the header compilable? | ||
22236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
22237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
22238 | cat >conftest.$ac_ext <<_ACEOF | ||
22239 | /* confdefs.h. */ | ||
22240 | _ACEOF | ||
22241 | cat confdefs.h >>conftest.$ac_ext | ||
22242 | cat >>conftest.$ac_ext <<_ACEOF | ||
22243 | /* end confdefs.h. */ | ||
22244 | $ac_includes_default | ||
22245 | #include <$ac_header> | ||
22246 | _ACEOF | ||
22247 | rm -f conftest.$ac_objext | ||
22248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22249 | (eval $ac_compile) 2>conftest.er1 | ||
22250 | ac_status=$? | ||
22251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22252 | rm -f conftest.er1 | ||
22253 | cat conftest.err >&5 | ||
22254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22255 | (exit $ac_status); } && | ||
22256 | { ac_try='test -z "$ac_c_werror_flag" | ||
22257 | || test ! -s conftest.err' | ||
22258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22259 | (eval $ac_try) 2>&5 | ||
22260 | ac_status=$? | ||
22261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22262 | (exit $ac_status); }; } && | ||
22263 | { ac_try='test -s conftest.$ac_objext' | ||
22264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22265 | (eval $ac_try) 2>&5 | ||
22266 | ac_status=$? | ||
22267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22268 | (exit $ac_status); }; }; then | ||
22269 | ac_header_compiler=yes | ||
22270 | else | ||
22271 | echo "$as_me: failed program was:" >&5 | ||
22272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22273 | |||
22274 | ac_header_compiler=no | ||
22275 | fi | ||
22276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22277 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
22278 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
22279 | |||
22280 | # Is the header present? | ||
22281 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
22282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
22283 | cat >conftest.$ac_ext <<_ACEOF | ||
22284 | /* confdefs.h. */ | ||
22285 | _ACEOF | ||
22286 | cat confdefs.h >>conftest.$ac_ext | ||
22287 | cat >>conftest.$ac_ext <<_ACEOF | ||
22288 | /* end confdefs.h. */ | ||
22289 | #include <$ac_header> | ||
22290 | _ACEOF | ||
22291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
22292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
22293 | ac_status=$? | ||
22294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22295 | rm -f conftest.er1 | ||
22296 | cat conftest.err >&5 | ||
22297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22298 | (exit $ac_status); } >/dev/null; then | ||
22299 | if test -s conftest.err; then | ||
22300 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
22301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
22302 | else | ||
22303 | ac_cpp_err= | ||
22304 | fi | ||
22305 | else | ||
22306 | ac_cpp_err=yes | ||
22307 | fi | ||
22308 | if test -z "$ac_cpp_err"; then | ||
22309 | ac_header_preproc=yes | ||
22310 | else | ||
22311 | echo "$as_me: failed program was:" >&5 | ||
22312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22313 | |||
22314 | ac_header_preproc=no | ||
22315 | fi | ||
22316 | rm -f conftest.err conftest.$ac_ext | ||
22317 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22318 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
22319 | |||
22320 | # So? What about this header? | ||
22321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22322 | yes:no: ) | ||
22323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
22326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
22327 | ac_header_preproc=yes | ||
22328 | ;; | ||
22329 | no:yes:* ) | ||
22330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
22331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
22332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
22333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
22334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
22335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
22336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
22337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
22339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
22340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
22341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
22342 | ( | ||
22343 | cat <<\_ASBOX | ||
22344 | ## ------------------------------------------ ## | ||
22345 | ## Report this to the AC_PACKAGE_NAME lists. ## | ||
22346 | ## ------------------------------------------ ## | ||
22347 | _ASBOX | ||
22348 | ) | | ||
22349 | sed "s/^/$as_me: WARNING: /" >&2 | ||
22350 | ;; | ||
22351 | esac | ||
22352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
22353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
22354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
22355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22356 | else | ||
22357 | eval "$as_ac_Header=\$ac_header_preproc" | ||
22358 | fi | ||
22359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
22360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
22361 | |||
22362 | fi | ||
22363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
22364 | cat >>confdefs.h <<_ACEOF | ||
22365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
22366 | _ACEOF | ||
22367 | |||
22368 | fi | ||
22369 | |||
22370 | done | ||
22371 | |||
22372 | |||
22373 | LIBS="$LIBS $K5LIBS" | ||
22374 | echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
22375 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6 | ||
22376 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
22377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22378 | else | ||
22379 | ac_func_search_save_LIBS=$LIBS | ||
22380 | ac_cv_search_k_hasafs=no | ||
22381 | cat >conftest.$ac_ext <<_ACEOF | ||
22382 | /* confdefs.h. */ | ||
22383 | _ACEOF | ||
22384 | cat confdefs.h >>conftest.$ac_ext | ||
22385 | cat >>conftest.$ac_ext <<_ACEOF | ||
22386 | /* end confdefs.h. */ | ||
22387 | |||
22388 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22389 | #ifdef __cplusplus | ||
22390 | extern "C" | ||
22391 | #endif | ||
22392 | /* We use char because int might match the return type of a gcc2 | ||
22393 | builtin and then its argument prototype would still apply. */ | ||
22394 | char k_hasafs (); | ||
22395 | int | ||
22396 | main () | ||
22397 | { | ||
22398 | k_hasafs (); | ||
22399 | ; | ||
22400 | return 0; | ||
22401 | } | ||
22402 | _ACEOF | ||
22403 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22405 | (eval $ac_link) 2>conftest.er1 | ||
22406 | ac_status=$? | ||
22407 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22408 | rm -f conftest.er1 | ||
22409 | cat conftest.err >&5 | ||
22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22411 | (exit $ac_status); } && | ||
22412 | { ac_try='test -z "$ac_c_werror_flag" | ||
22413 | || test ! -s conftest.err' | ||
22414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22415 | (eval $ac_try) 2>&5 | ||
22416 | ac_status=$? | ||
22417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22418 | (exit $ac_status); }; } && | ||
22419 | { ac_try='test -s conftest$ac_exeext' | ||
22420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22421 | (eval $ac_try) 2>&5 | ||
22422 | ac_status=$? | ||
22423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22424 | (exit $ac_status); }; }; then | ||
22425 | ac_cv_search_k_hasafs="none required" | ||
22426 | else | ||
22427 | echo "$as_me: failed program was:" >&5 | ||
22428 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22429 | |||
22430 | fi | ||
22431 | rm -f conftest.err conftest.$ac_objext \ | ||
22432 | conftest$ac_exeext conftest.$ac_ext | ||
22433 | if test "$ac_cv_search_k_hasafs" = no; then | ||
22434 | for ac_lib in kafs; do | ||
22435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22436 | cat >conftest.$ac_ext <<_ACEOF | ||
22437 | /* confdefs.h. */ | ||
22438 | _ACEOF | ||
22439 | cat confdefs.h >>conftest.$ac_ext | ||
22440 | cat >>conftest.$ac_ext <<_ACEOF | ||
22441 | /* end confdefs.h. */ | ||
22442 | |||
22443 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22444 | #ifdef __cplusplus | ||
22445 | extern "C" | ||
22446 | #endif | ||
22447 | /* We use char because int might match the return type of a gcc2 | ||
22448 | builtin and then its argument prototype would still apply. */ | ||
22449 | char k_hasafs (); | ||
22450 | int | ||
22451 | main () | ||
22452 | { | ||
22453 | k_hasafs (); | ||
22454 | ; | ||
22455 | return 0; | ||
22456 | } | ||
22457 | _ACEOF | ||
22458 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22460 | (eval $ac_link) 2>conftest.er1 | ||
22461 | ac_status=$? | ||
22462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22463 | rm -f conftest.er1 | ||
22464 | cat conftest.err >&5 | ||
22465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22466 | (exit $ac_status); } && | ||
22467 | { ac_try='test -z "$ac_c_werror_flag" | ||
22468 | || test ! -s conftest.err' | ||
22469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22470 | (eval $ac_try) 2>&5 | ||
22471 | ac_status=$? | ||
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22473 | (exit $ac_status); }; } && | ||
22474 | { ac_try='test -s conftest$ac_exeext' | ||
22475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22476 | (eval $ac_try) 2>&5 | ||
22477 | ac_status=$? | ||
22478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22479 | (exit $ac_status); }; }; then | ||
22480 | ac_cv_search_k_hasafs="-l$ac_lib" | ||
22481 | break | ||
22482 | else | ||
22483 | echo "$as_me: failed program was:" >&5 | ||
22484 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22485 | |||
22486 | fi | ||
22487 | rm -f conftest.err conftest.$ac_objext \ | ||
22488 | conftest$ac_exeext conftest.$ac_ext | ||
22489 | done | ||
22490 | fi | ||
22491 | LIBS=$ac_func_search_save_LIBS | ||
22492 | fi | ||
22493 | echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
22494 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6 | ||
22495 | if test "$ac_cv_search_k_hasafs" != no; then | ||
22496 | test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS" | ||
22497 | cat >>confdefs.h <<\_ACEOF | ||
22498 | #define USE_AFS 1 | ||
22499 | _ACEOF | ||
22500 | |||
22501 | fi | ||
22502 | |||
22503 | echo "$as_me:$LINENO: checking for library containing krb5_init_ets" >&5 | ||
22504 | echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6 | ||
22505 | if test "${ac_cv_search_krb5_init_ets+set}" = set; then | ||
22506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22507 | else | ||
22508 | ac_func_search_save_LIBS=$LIBS | ||
22509 | ac_cv_search_krb5_init_ets=no | ||
22510 | cat >conftest.$ac_ext <<_ACEOF | ||
22511 | /* confdefs.h. */ | ||
22512 | _ACEOF | ||
22513 | cat confdefs.h >>conftest.$ac_ext | ||
22514 | cat >>conftest.$ac_ext <<_ACEOF | ||
22515 | /* end confdefs.h. */ | ||
22516 | |||
22517 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22518 | #ifdef __cplusplus | ||
22519 | extern "C" | ||
22520 | #endif | ||
22521 | /* We use char because int might match the return type of a gcc2 | ||
22522 | builtin and then its argument prototype would still apply. */ | ||
22523 | char krb5_init_ets (); | ||
22524 | int | ||
22525 | main () | ||
22526 | { | ||
22527 | krb5_init_ets (); | ||
22528 | ; | ||
22529 | return 0; | ||
22530 | } | ||
22531 | _ACEOF | ||
22532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22534 | (eval $ac_link) 2>conftest.er1 | ||
22535 | ac_status=$? | ||
22536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22537 | rm -f conftest.er1 | ||
22538 | cat conftest.err >&5 | ||
22539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22540 | (exit $ac_status); } && | ||
22541 | { ac_try='test -z "$ac_c_werror_flag" | ||
22542 | || test ! -s conftest.err' | ||
22543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22544 | (eval $ac_try) 2>&5 | ||
22545 | ac_status=$? | ||
22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22547 | (exit $ac_status); }; } && | ||
22548 | { ac_try='test -s conftest$ac_exeext' | ||
22549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22550 | (eval $ac_try) 2>&5 | ||
22551 | ac_status=$? | ||
22552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22553 | (exit $ac_status); }; }; then | ||
22554 | ac_cv_search_krb5_init_ets="none required" | ||
22555 | else | ||
22556 | echo "$as_me: failed program was:" >&5 | ||
22557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22558 | |||
22559 | fi | ||
22560 | rm -f conftest.err conftest.$ac_objext \ | ||
22561 | conftest$ac_exeext conftest.$ac_ext | ||
22562 | if test "$ac_cv_search_krb5_init_ets" = no; then | ||
22563 | for ac_lib in $K5LIBS; do | ||
22564 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
22565 | cat >conftest.$ac_ext <<_ACEOF | ||
22566 | /* confdefs.h. */ | ||
22567 | _ACEOF | ||
22568 | cat confdefs.h >>conftest.$ac_ext | ||
22569 | cat >>conftest.$ac_ext <<_ACEOF | ||
22570 | /* end confdefs.h. */ | ||
22571 | |||
22572 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22573 | #ifdef __cplusplus | ||
22574 | extern "C" | ||
22575 | #endif | ||
22576 | /* We use char because int might match the return type of a gcc2 | ||
22577 | builtin and then its argument prototype would still apply. */ | ||
22578 | char krb5_init_ets (); | ||
22579 | int | ||
22580 | main () | ||
22581 | { | ||
22582 | krb5_init_ets (); | ||
22583 | ; | ||
22584 | return 0; | ||
22585 | } | ||
22586 | _ACEOF | ||
22587 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22589 | (eval $ac_link) 2>conftest.er1 | ||
22590 | ac_status=$? | ||
22591 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22592 | rm -f conftest.er1 | ||
22593 | cat conftest.err >&5 | ||
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22595 | (exit $ac_status); } && | ||
22596 | { ac_try='test -z "$ac_c_werror_flag" | ||
22597 | || test ! -s conftest.err' | ||
22598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22599 | (eval $ac_try) 2>&5 | ||
22600 | ac_status=$? | ||
22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22602 | (exit $ac_status); }; } && | ||
22603 | { ac_try='test -s conftest$ac_exeext' | ||
22604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22605 | (eval $ac_try) 2>&5 | ||
22606 | ac_status=$? | ||
22607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22608 | (exit $ac_status); }; }; then | ||
22609 | ac_cv_search_krb5_init_ets="-l$ac_lib" | ||
22610 | break | ||
22611 | else | ||
22612 | echo "$as_me: failed program was:" >&5 | ||
22613 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22614 | |||
22615 | fi | ||
22616 | rm -f conftest.err conftest.$ac_objext \ | ||
22617 | conftest$ac_exeext conftest.$ac_ext | ||
22618 | done | ||
22619 | fi | ||
22620 | LIBS=$ac_func_search_save_LIBS | ||
22621 | fi | ||
22622 | echo "$as_me:$LINENO: result: $ac_cv_search_krb5_init_ets" >&5 | ||
22623 | echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6 | ||
22624 | if test "$ac_cv_search_krb5_init_ets" != no; then | ||
22625 | test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS" | ||
22626 | cat >>confdefs.h <<\_ACEOF | ||
22627 | #define KRB5_INIT_ETS 1 | ||
22628 | _ACEOF | ||
22629 | |||
22630 | fi | ||
22631 | |||
22632 | |||
22633 | |||
22634 | fi; | ||
22635 | |||
22636 | # Looking for programs, paths and files | ||
22637 | |||
22638 | PRIVSEP_PATH=/var/empty | ||
22639 | |||
22640 | # Check whether --with-privsep-path or --without-privsep-path was given. | ||
22641 | if test "${with_privsep_path+set}" = set; then | ||
22642 | withval="$with_privsep_path" | ||
22643 | |||
22644 | if test "x$withval" != "$no" ; then | ||
22645 | PRIVSEP_PATH=$withval | ||
22646 | fi | ||
22647 | |||
22648 | |||
22649 | fi; | ||
22650 | |||
22651 | |||
22652 | |||
22653 | # Check whether --with-xauth or --without-xauth was given. | ||
22654 | if test "${with_xauth+set}" = set; then | ||
22655 | withval="$with_xauth" | ||
22656 | |||
22657 | if test "x$withval" != "xno" ; then | ||
22658 | xauth_path=$withval | ||
22659 | fi | ||
22660 | |||
22661 | else | ||
22662 | |||
22663 | TestPath="$PATH" | ||
22664 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
22665 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
22666 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
22667 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
22668 | # Extract the first word of "xauth", so it can be a program name with args. | ||
22669 | set dummy xauth; ac_word=$2 | ||
22670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
22671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
22672 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
22673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22674 | else | ||
22675 | case $xauth_path in | ||
22676 | [\\/]* | ?:[\\/]*) | ||
22677 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
22678 | ;; | ||
22679 | *) | ||
22680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22681 | for as_dir in $TestPath | ||
22682 | do | ||
22683 | IFS=$as_save_IFS | ||
22684 | test -z "$as_dir" && as_dir=. | ||
22685 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
22686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
22687 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
22688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
22689 | break 2 | ||
22690 | fi | ||
22691 | done | ||
22692 | done | ||
22693 | |||
22694 | ;; | ||
22695 | esac | ||
22696 | fi | ||
22697 | xauth_path=$ac_cv_path_xauth_path | ||
22698 | |||
22699 | if test -n "$xauth_path"; then | ||
22700 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
22701 | echo "${ECHO_T}$xauth_path" >&6 | ||
22702 | else | ||
22703 | echo "$as_me:$LINENO: result: no" >&5 | ||
22704 | echo "${ECHO_T}no" >&6 | ||
22705 | fi | ||
22706 | |||
22707 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
22708 | xauth_path="/usr/openwin/bin/xauth" | ||
22709 | fi | ||
22710 | |||
22711 | |||
22712 | fi; | ||
22713 | |||
22714 | STRIP_OPT=-s | ||
22715 | # Check whether --enable-strip or --disable-strip was given. | ||
22716 | if test "${enable_strip+set}" = set; then | ||
22717 | enableval="$enable_strip" | ||
22718 | |||
22719 | if test "x$enableval" = "xno" ; then | ||
22720 | STRIP_OPT= | ||
22721 | fi | ||
22722 | |||
22723 | |||
22724 | fi; | ||
22725 | |||
22726 | |||
22727 | if test -z "$xauth_path" ; then | ||
22728 | XAUTH_PATH="undefined" | ||
22729 | |||
22730 | else | ||
22731 | cat >>confdefs.h <<_ACEOF | ||
22732 | #define XAUTH_PATH "$xauth_path" | ||
22733 | _ACEOF | ||
22734 | |||
22735 | XAUTH_PATH=$xauth_path | ||
22736 | |||
22737 | fi | ||
22738 | |||
22739 | # Check for mail directory (last resort if we cannot get it from headers) | ||
22740 | if test ! -z "$MAIL" ; then | ||
22741 | maildir=`dirname $MAIL` | ||
22742 | cat >>confdefs.h <<_ACEOF | ||
22743 | #define MAIL_DIRECTORY "$maildir" | ||
22744 | _ACEOF | ||
22745 | |||
22746 | fi | ||
22747 | |||
22748 | if test -z "$no_dev_ptmx" ; then | ||
22749 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
22750 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
22751 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | ||
22752 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
22753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22754 | else | ||
22755 | test "$cross_compiling" = yes && | ||
22756 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
22757 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
22758 | { (exit 1); exit 1; }; } | ||
22759 | if test -r ""/dev/ptmx""; then | ||
22760 | ac_cv_file___dev_ptmx_=yes | ||
22761 | else | ||
22762 | ac_cv_file___dev_ptmx_=no | ||
22763 | fi | ||
22764 | fi | ||
22765 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
22766 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | ||
22767 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
22768 | |||
22769 | cat >>confdefs.h <<_ACEOF | ||
22770 | #define HAVE_DEV_PTMX 1 | ||
22771 | _ACEOF | ||
22772 | |||
22773 | have_dev_ptmx=1 | ||
22774 | |||
22775 | |||
22776 | fi | ||
22777 | |||
22778 | fi | ||
22779 | fi | ||
22780 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
22781 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | ||
22782 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
22783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22784 | else | ||
22785 | test "$cross_compiling" = yes && | ||
22786 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
22787 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
22788 | { (exit 1); exit 1; }; } | ||
22789 | if test -r ""/dev/ptc""; then | ||
22790 | ac_cv_file___dev_ptc_=yes | ||
22791 | else | ||
22792 | ac_cv_file___dev_ptc_=no | ||
22793 | fi | ||
22794 | fi | ||
22795 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
22796 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | ||
22797 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
22798 | |||
22799 | cat >>confdefs.h <<_ACEOF | ||
22800 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
22801 | _ACEOF | ||
22802 | |||
22803 | have_dev_ptc=1 | ||
22804 | |||
22805 | |||
22806 | fi | ||
22807 | |||
22808 | |||
22809 | # Options from here on. Some of these are preset by platform above | ||
22810 | |||
22811 | # Check whether --with-mantype or --without-mantype was given. | ||
22812 | if test "${with_mantype+set}" = set; then | ||
22813 | withval="$with_mantype" | ||
22814 | |||
22815 | case "$withval" in | ||
22816 | man|cat|doc) | ||
22817 | MANTYPE=$withval | ||
22818 | ;; | ||
22819 | *) | ||
22820 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
22821 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
22822 | { (exit 1); exit 1; }; } | ||
22823 | ;; | ||
22824 | esac | ||
22825 | |||
22826 | |||
22827 | fi; | ||
22828 | if test -z "$MANTYPE"; then | ||
22829 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
22830 | for ac_prog in nroff awf | ||
22831 | do | ||
22832 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
22833 | set dummy $ac_prog; ac_word=$2 | ||
22834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
22835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
22836 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
22837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22838 | else | ||
22839 | case $NROFF in | ||
22840 | [\\/]* | ?:[\\/]*) | ||
22841 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
22842 | ;; | ||
22843 | *) | ||
22844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22845 | for as_dir in $TestPath | ||
22846 | do | ||
22847 | IFS=$as_save_IFS | ||
22848 | test -z "$as_dir" && as_dir=. | ||
22849 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
22850 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
22851 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
22852 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
22853 | break 2 | ||
22854 | fi | ||
22855 | done | ||
22856 | done | ||
22857 | |||
22858 | ;; | ||
22859 | esac | ||
22860 | fi | ||
22861 | NROFF=$ac_cv_path_NROFF | ||
22862 | |||
22863 | if test -n "$NROFF"; then | ||
22864 | echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
22865 | echo "${ECHO_T}$NROFF" >&6 | ||
22866 | else | ||
22867 | echo "$as_me:$LINENO: result: no" >&5 | ||
22868 | echo "${ECHO_T}no" >&6 | ||
22869 | fi | ||
22870 | |||
22871 | test -n "$NROFF" && break | ||
22872 | done | ||
22873 | test -n "$NROFF" || NROFF="/bin/false" | ||
22874 | |||
22875 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
22876 | MANTYPE=doc | ||
22877 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
22878 | MANTYPE=man | ||
22879 | else | ||
22880 | MANTYPE=cat | ||
22881 | fi | ||
22882 | fi | ||
22883 | |||
22884 | if test "$MANTYPE" = "doc"; then | ||
22885 | mansubdir=man; | ||
22886 | else | ||
22887 | mansubdir=$MANTYPE; | ||
22888 | fi | ||
22889 | |||
22890 | |||
22891 | # Check whether to enable MD5 passwords | ||
22892 | MD5_MSG="no" | ||
22893 | |||
22894 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
22895 | if test "${with_md5_passwords+set}" = set; then | ||
22896 | withval="$with_md5_passwords" | ||
22897 | |||
22898 | if test "x$withval" != "xno" ; then | ||
22899 | cat >>confdefs.h <<\_ACEOF | ||
22900 | #define HAVE_MD5_PASSWORDS 1 | ||
22901 | _ACEOF | ||
22902 | |||
22903 | MD5_MSG="yes" | ||
22904 | fi | ||
22905 | |||
22906 | |||
22907 | fi; | ||
22908 | |||
22909 | # Whether to disable shadow password support | ||
22910 | |||
22911 | # Check whether --with-shadow or --without-shadow was given. | ||
22912 | if test "${with_shadow+set}" = set; then | ||
22913 | withval="$with_shadow" | ||
22914 | |||
22915 | if test "x$withval" = "xno" ; then | ||
22916 | cat >>confdefs.h <<\_ACEOF | ||
22917 | #define DISABLE_SHADOW 1 | ||
22918 | _ACEOF | ||
22919 | |||
22920 | disable_shadow=yes | ||
22921 | fi | ||
22922 | |||
22923 | |||
22924 | fi; | ||
22925 | |||
22926 | if test -z "$disable_shadow" ; then | ||
22927 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
22928 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | ||
22929 | cat >conftest.$ac_ext <<_ACEOF | ||
22930 | /* confdefs.h. */ | ||
22931 | _ACEOF | ||
22932 | cat confdefs.h >>conftest.$ac_ext | ||
22933 | cat >>conftest.$ac_ext <<_ACEOF | ||
22934 | /* end confdefs.h. */ | ||
22935 | |||
22936 | #include <sys/types.h> | ||
22937 | #include <shadow.h> | ||
22938 | struct spwd sp; | ||
22939 | |||
22940 | int | ||
22941 | main () | ||
22942 | { | ||
22943 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
22944 | ; | ||
22945 | return 0; | ||
22946 | } | ||
22947 | _ACEOF | ||
22948 | rm -f conftest.$ac_objext | ||
22949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
22950 | (eval $ac_compile) 2>conftest.er1 | ||
22951 | ac_status=$? | ||
22952 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22953 | rm -f conftest.er1 | ||
22954 | cat conftest.err >&5 | ||
22955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22956 | (exit $ac_status); } && | ||
22957 | { ac_try='test -z "$ac_c_werror_flag" | ||
22958 | || test ! -s conftest.err' | ||
22959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22960 | (eval $ac_try) 2>&5 | ||
22961 | ac_status=$? | ||
22962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22963 | (exit $ac_status); }; } && | ||
22964 | { ac_try='test -s conftest.$ac_objext' | ||
22965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22966 | (eval $ac_try) 2>&5 | ||
22967 | ac_status=$? | ||
22968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22969 | (exit $ac_status); }; }; then | ||
22970 | sp_expire_available=yes | ||
22971 | else | ||
22972 | echo "$as_me: failed program was:" >&5 | ||
22973 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22974 | |||
22975 | |||
22976 | |||
22977 | fi | ||
22978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22979 | |||
22980 | if test "x$sp_expire_available" = "xyes" ; then | ||
22981 | echo "$as_me:$LINENO: result: yes" >&5 | ||
22982 | echo "${ECHO_T}yes" >&6 | ||
22983 | cat >>confdefs.h <<\_ACEOF | ||
22984 | #define HAS_SHADOW_EXPIRE 1 | ||
22985 | _ACEOF | ||
22986 | |||
22987 | else | ||
22988 | echo "$as_me:$LINENO: result: no" >&5 | ||
22989 | echo "${ECHO_T}no" >&6 | ||
22990 | fi | ||
22991 | fi | ||
22992 | |||
22993 | # Use ip address instead of hostname in $DISPLAY | ||
22994 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
22995 | DISPLAY_HACK_MSG="yes" | ||
22996 | cat >>confdefs.h <<\_ACEOF | ||
22997 | #define IPADDR_IN_DISPLAY 1 | ||
22998 | _ACEOF | ||
22999 | |||
23000 | else | ||
23001 | DISPLAY_HACK_MSG="no" | ||
23002 | |||
23003 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
23004 | if test "${with_ipaddr_display+set}" = set; then | ||
23005 | withval="$with_ipaddr_display" | ||
23006 | |||
23007 | if test "x$withval" != "xno" ; then | ||
23008 | cat >>confdefs.h <<\_ACEOF | ||
23009 | #define IPADDR_IN_DISPLAY 1 | ||
23010 | _ACEOF | ||
23011 | |||
23012 | DISPLAY_HACK_MSG="yes" | ||
23013 | fi | ||
23014 | |||
23015 | |||
23016 | fi; | ||
23017 | fi | ||
23018 | |||
23019 | # check for /etc/default/login and use it if present. | ||
23020 | # Check whether --enable-etc-default-login or --disable-etc-default-login was given. | ||
23021 | if test "${enable_etc_default_login+set}" = set; then | ||
23022 | enableval="$enable_etc_default_login" | ||
23023 | |||
23024 | else | ||
23025 | |||
23026 | echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
23027 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6 | ||
23028 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
23029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23030 | else | ||
23031 | test "$cross_compiling" = yes && | ||
23032 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
23033 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
23034 | { (exit 1); exit 1; }; } | ||
23035 | if test -r ""/etc/default/login""; then | ||
23036 | ac_cv_file___etc_default_login_=yes | ||
23037 | else | ||
23038 | ac_cv_file___etc_default_login_=no | ||
23039 | fi | ||
23040 | fi | ||
23041 | echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
23042 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6 | ||
23043 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
23044 | external_path_file=/etc/default/login | ||
23045 | fi | ||
23046 | |||
23047 | |||
23048 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
23049 | cat >>confdefs.h <<\_ACEOF | ||
23050 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
23051 | _ACEOF | ||
23052 | |||
23053 | fi | ||
23054 | |||
23055 | fi; | ||
23056 | |||
23057 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | ||
23058 | $ac_cv_header_login_cap_h = "yes" ; then | ||
23059 | external_path_file=/etc/login.conf | ||
23060 | fi | ||
23061 | |||
23062 | # Whether to mess with the default path | ||
23063 | SERVER_PATH_MSG="(default)" | ||
23064 | |||
23065 | # Check whether --with-default-path or --without-default-path was given. | ||
23066 | if test "${with_default_path+set}" = set; then | ||
23067 | withval="$with_default_path" | ||
23068 | |||
23069 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
23070 | { echo "$as_me:$LINENO: WARNING: | ||
23071 | --with-default-path=PATH has no effect on this system. | ||
23072 | Edit /etc/login.conf instead." >&5 | ||
23073 | echo "$as_me: WARNING: | ||
23074 | --with-default-path=PATH has no effect on this system. | ||
23075 | Edit /etc/login.conf instead." >&2;} | ||
23076 | elif test "x$withval" != "xno" ; then | ||
23077 | if test ! -z "$external_path_file" ; then | ||
23078 | { echo "$as_me:$LINENO: WARNING: | ||
23079 | --with-default-path=PATH will only be used if PATH is not defined in | ||
23080 | $external_path_file ." >&5 | ||
23081 | echo "$as_me: WARNING: | ||
23082 | --with-default-path=PATH will only be used if PATH is not defined in | ||
23083 | $external_path_file ." >&2;} | ||
23084 | fi | ||
23085 | user_path="$withval" | ||
23086 | SERVER_PATH_MSG="$withval" | ||
23087 | fi | ||
23088 | |||
23089 | else | ||
23090 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
23091 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
23092 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
23093 | else | ||
23094 | if test ! -z "$external_path_file" ; then | ||
23095 | { echo "$as_me:$LINENO: WARNING: | ||
23096 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
23097 | otherwise scp will not work." >&5 | ||
23098 | echo "$as_me: WARNING: | ||
23099 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
23100 | otherwise scp will not work." >&2;} | ||
23101 | fi | ||
23102 | if test "$cross_compiling" = yes; then | ||
23103 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
23104 | |||
23105 | else | ||
23106 | cat >conftest.$ac_ext <<_ACEOF | ||
23107 | /* confdefs.h. */ | ||
23108 | _ACEOF | ||
23109 | cat confdefs.h >>conftest.$ac_ext | ||
23110 | cat >>conftest.$ac_ext <<_ACEOF | ||
23111 | /* end confdefs.h. */ | ||
23112 | |||
23113 | /* find out what STDPATH is */ | ||
23114 | #include <stdio.h> | ||
23115 | #ifdef HAVE_PATHS_H | ||
23116 | # include <paths.h> | ||
23117 | #endif | ||
23118 | #ifndef _PATH_STDPATH | ||
23119 | # ifdef _PATH_USERPATH /* Irix */ | ||
23120 | # define _PATH_STDPATH _PATH_USERPATH | ||
23121 | # else | ||
23122 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
23123 | # endif | ||
23124 | #endif | ||
23125 | #include <sys/types.h> | ||
23126 | #include <sys/stat.h> | ||
23127 | #include <fcntl.h> | ||
23128 | #define DATA "conftest.stdpath" | ||
23129 | |||
23130 | main() | ||
23131 | { | ||
23132 | FILE *fd; | ||
23133 | int rc; | ||
23134 | |||
23135 | fd = fopen(DATA,"w"); | ||
23136 | if(fd == NULL) | ||
23137 | exit(1); | ||
23138 | |||
23139 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
23140 | exit(1); | ||
23141 | |||
23142 | exit(0); | ||
23143 | } | ||
23144 | |||
23145 | _ACEOF | ||
23146 | rm -f conftest$ac_exeext | ||
23147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
23148 | (eval $ac_link) 2>&5 | ||
23149 | ac_status=$? | ||
23150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23153 | (eval $ac_try) 2>&5 | ||
23154 | ac_status=$? | ||
23155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23156 | (exit $ac_status); }; }; then | ||
23157 | user_path=`cat conftest.stdpath` | ||
23158 | else | ||
23159 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23160 | echo "$as_me: failed program was:" >&5 | ||
23161 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23162 | |||
23163 | ( exit $ac_status ) | ||
23164 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
23165 | fi | ||
23166 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23167 | fi | ||
23168 | # make sure $bindir is in USER_PATH so scp will work | ||
23169 | t_bindir=`eval echo ${bindir}` | ||
23170 | case $t_bindir in | ||
23171 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
23172 | esac | ||
23173 | case $t_bindir in | ||
23174 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
23175 | esac | ||
23176 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
23177 | if test $? -ne 0 ; then | ||
23178 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
23179 | if test $? -ne 0 ; then | ||
23180 | user_path=$user_path:$t_bindir | ||
23181 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
23182 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | ||
23183 | fi | ||
23184 | fi | ||
23185 | fi | ||
23186 | |||
23187 | fi; | ||
23188 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
23189 | cat >>confdefs.h <<_ACEOF | ||
23190 | #define USER_PATH "$user_path" | ||
23191 | _ACEOF | ||
23192 | |||
23193 | |||
23194 | fi | ||
23195 | |||
23196 | # Set superuser path separately to user path | ||
23197 | |||
23198 | # Check whether --with-superuser-path or --without-superuser-path was given. | ||
23199 | if test "${with_superuser_path+set}" = set; then | ||
23200 | withval="$with_superuser_path" | ||
23201 | |||
23202 | if test "x$withval" != "xno" ; then | ||
23203 | cat >>confdefs.h <<_ACEOF | ||
23204 | #define SUPERUSER_PATH "$withval" | ||
23205 | _ACEOF | ||
23206 | |||
23207 | superuser_path=$withval | ||
23208 | fi | ||
23209 | |||
23210 | |||
23211 | fi; | ||
23212 | |||
23213 | |||
23214 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
23215 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | ||
23216 | IPV4_IN6_HACK_MSG="no" | ||
23217 | |||
23218 | # Check whether --with-4in6 or --without-4in6 was given. | ||
23219 | if test "${with_4in6+set}" = set; then | ||
23220 | withval="$with_4in6" | ||
23221 | |||
23222 | if test "x$withval" != "xno" ; then | ||
23223 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23224 | echo "${ECHO_T}yes" >&6 | ||
23225 | cat >>confdefs.h <<\_ACEOF | ||
23226 | #define IPV4_IN_IPV6 1 | ||
23227 | _ACEOF | ||
23228 | |||
23229 | IPV4_IN6_HACK_MSG="yes" | ||
23230 | else | ||
23231 | echo "$as_me:$LINENO: result: no" >&5 | ||
23232 | echo "${ECHO_T}no" >&6 | ||
23233 | fi | ||
23234 | |||
23235 | else | ||
23236 | |||
23237 | if test "x$inet6_default_4in6" = "xyes"; then | ||
23238 | echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
23239 | echo "${ECHO_T}yes (default)" >&6 | ||
23240 | cat >>confdefs.h <<\_ACEOF | ||
23241 | #define IPV4_IN_IPV6 1 | ||
23242 | _ACEOF | ||
23243 | |||
23244 | IPV4_IN6_HACK_MSG="yes" | ||
23245 | else | ||
23246 | echo "$as_me:$LINENO: result: no (default)" >&5 | ||
23247 | echo "${ECHO_T}no (default)" >&6 | ||
23248 | fi | ||
23249 | |||
23250 | |||
23251 | fi; | ||
23252 | |||
23253 | # Whether to enable BSD auth support | ||
23254 | BSD_AUTH_MSG=no | ||
23255 | |||
23256 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
23257 | if test "${with_bsd_auth+set}" = set; then | ||
23258 | withval="$with_bsd_auth" | ||
23259 | |||
23260 | if test "x$withval" != "xno" ; then | ||
23261 | cat >>confdefs.h <<\_ACEOF | ||
23262 | #define BSD_AUTH 1 | ||
23263 | _ACEOF | ||
23264 | |||
23265 | BSD_AUTH_MSG=yes | ||
23266 | fi | ||
23267 | |||
23268 | |||
23269 | fi; | ||
23270 | |||
23271 | # Where to place sshd.pid | ||
23272 | piddir=/var/run | ||
23273 | # make sure the directory exists | ||
23274 | if test ! -d $piddir ; then | ||
23275 | piddir=`eval echo ${sysconfdir}` | ||
23276 | case $piddir in | ||
23277 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
23278 | esac | ||
23279 | fi | ||
23280 | |||
23281 | |||
23282 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
23283 | if test "${with_pid_dir+set}" = set; then | ||
23284 | withval="$with_pid_dir" | ||
23285 | |||
23286 | if test "x$withval" != "xno" ; then | ||
23287 | piddir=$withval | ||
23288 | if test ! -d $piddir ; then | ||
23289 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
23290 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
23291 | fi | ||
23292 | fi | ||
23293 | |||
23294 | |||
23295 | fi; | ||
23296 | |||
23297 | cat >>confdefs.h <<_ACEOF | ||
23298 | #define _PATH_SSH_PIDDIR "$piddir" | ||
23299 | _ACEOF | ||
23300 | |||
23301 | |||
23302 | |||
23303 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
23304 | if test "${enable_lastlog+set}" = set; then | ||
23305 | enableval="$enable_lastlog" | ||
23306 | |||
23307 | if test "x$enableval" = "xno" ; then | ||
23308 | cat >>confdefs.h <<\_ACEOF | ||
23309 | #define DISABLE_LASTLOG 1 | ||
23310 | _ACEOF | ||
23311 | |||
23312 | fi | ||
23313 | |||
23314 | |||
23315 | fi; | ||
23316 | # Check whether --enable-utmp or --disable-utmp was given. | ||
23317 | if test "${enable_utmp+set}" = set; then | ||
23318 | enableval="$enable_utmp" | ||
23319 | |||
23320 | if test "x$enableval" = "xno" ; then | ||
23321 | cat >>confdefs.h <<\_ACEOF | ||
23322 | #define DISABLE_UTMP 1 | ||
23323 | _ACEOF | ||
23324 | |||
23325 | fi | ||
23326 | |||
23327 | |||
23328 | fi; | ||
23329 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
23330 | if test "${enable_utmpx+set}" = set; then | ||
23331 | enableval="$enable_utmpx" | ||
23332 | |||
23333 | if test "x$enableval" = "xno" ; then | ||
23334 | cat >>confdefs.h <<\_ACEOF | ||
23335 | #define DISABLE_UTMPX 1 | ||
23336 | _ACEOF | ||
23337 | |||
23338 | fi | ||
23339 | |||
23340 | |||
23341 | fi; | ||
23342 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
23343 | if test "${enable_wtmp+set}" = set; then | ||
23344 | enableval="$enable_wtmp" | ||
23345 | |||
23346 | if test "x$enableval" = "xno" ; then | ||
23347 | cat >>confdefs.h <<\_ACEOF | ||
23348 | #define DISABLE_WTMP 1 | ||
23349 | _ACEOF | ||
23350 | |||
23351 | fi | ||
23352 | |||
23353 | |||
23354 | fi; | ||
23355 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
23356 | if test "${enable_wtmpx+set}" = set; then | ||
23357 | enableval="$enable_wtmpx" | ||
23358 | |||
23359 | if test "x$enableval" = "xno" ; then | ||
23360 | cat >>confdefs.h <<\_ACEOF | ||
23361 | #define DISABLE_WTMPX 1 | ||
23362 | _ACEOF | ||
23363 | |||
23364 | fi | ||
23365 | |||
23366 | |||
23367 | fi; | ||
23368 | # Check whether --enable-libutil or --disable-libutil was given. | ||
23369 | if test "${enable_libutil+set}" = set; then | ||
23370 | enableval="$enable_libutil" | ||
23371 | |||
23372 | if test "x$enableval" = "xno" ; then | ||
23373 | cat >>confdefs.h <<\_ACEOF | ||
23374 | #define DISABLE_LOGIN 1 | ||
23375 | _ACEOF | ||
23376 | |||
23377 | fi | ||
23378 | |||
23379 | |||
23380 | fi; | ||
23381 | # Check whether --enable-pututline or --disable-pututline was given. | ||
23382 | if test "${enable_pututline+set}" = set; then | ||
23383 | enableval="$enable_pututline" | ||
23384 | |||
23385 | if test "x$enableval" = "xno" ; then | ||
23386 | cat >>confdefs.h <<\_ACEOF | ||
23387 | #define DISABLE_PUTUTLINE 1 | ||
23388 | _ACEOF | ||
23389 | |||
23390 | fi | ||
23391 | |||
23392 | |||
23393 | fi; | ||
23394 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
23395 | if test "${enable_pututxline+set}" = set; then | ||
23396 | enableval="$enable_pututxline" | ||
23397 | |||
23398 | if test "x$enableval" = "xno" ; then | ||
23399 | cat >>confdefs.h <<\_ACEOF | ||
23400 | #define DISABLE_PUTUTXLINE 1 | ||
23401 | _ACEOF | ||
23402 | |||
23403 | fi | ||
23404 | |||
23405 | |||
23406 | fi; | ||
23407 | |||
23408 | # Check whether --with-lastlog or --without-lastlog was given. | ||
23409 | if test "${with_lastlog+set}" = set; then | ||
23410 | withval="$with_lastlog" | ||
23411 | |||
23412 | if test "x$withval" = "xno" ; then | ||
23413 | cat >>confdefs.h <<\_ACEOF | ||
23414 | #define DISABLE_LASTLOG 1 | ||
23415 | _ACEOF | ||
23416 | |||
23417 | else | ||
23418 | conf_lastlog_location=$withval | ||
23419 | fi | ||
23420 | |||
23421 | |||
23422 | fi; | ||
23423 | |||
23424 | |||
23425 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
23426 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | ||
23427 | cat >conftest.$ac_ext <<_ACEOF | ||
23428 | /* confdefs.h. */ | ||
23429 | _ACEOF | ||
23430 | cat confdefs.h >>conftest.$ac_ext | ||
23431 | cat >>conftest.$ac_ext <<_ACEOF | ||
23432 | /* end confdefs.h. */ | ||
23433 | |||
23434 | #include <sys/types.h> | ||
23435 | #include <utmp.h> | ||
23436 | #ifdef HAVE_LASTLOG_H | ||
23437 | # include <lastlog.h> | ||
23438 | #endif | ||
23439 | #ifdef HAVE_PATHS_H | ||
23440 | # include <paths.h> | ||
23441 | #endif | ||
23442 | #ifdef HAVE_LOGIN_H | ||
23443 | # include <login.h> | ||
23444 | #endif | ||
23445 | |||
23446 | int | ||
23447 | main () | ||
23448 | { | ||
23449 | char *lastlog = LASTLOG_FILE; | ||
23450 | ; | ||
23451 | return 0; | ||
23452 | } | ||
23453 | _ACEOF | ||
23454 | rm -f conftest.$ac_objext | ||
23455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23456 | (eval $ac_compile) 2>conftest.er1 | ||
23457 | ac_status=$? | ||
23458 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23459 | rm -f conftest.er1 | ||
23460 | cat conftest.err >&5 | ||
23461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23462 | (exit $ac_status); } && | ||
23463 | { ac_try='test -z "$ac_c_werror_flag" | ||
23464 | || test ! -s conftest.err' | ||
23465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23466 | (eval $ac_try) 2>&5 | ||
23467 | ac_status=$? | ||
23468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23469 | (exit $ac_status); }; } && | ||
23470 | { ac_try='test -s conftest.$ac_objext' | ||
23471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23472 | (eval $ac_try) 2>&5 | ||
23473 | ac_status=$? | ||
23474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23475 | (exit $ac_status); }; }; then | ||
23476 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23477 | echo "${ECHO_T}yes" >&6 | ||
23478 | else | ||
23479 | echo "$as_me: failed program was:" >&5 | ||
23480 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23481 | |||
23482 | |||
23483 | echo "$as_me:$LINENO: result: no" >&5 | ||
23484 | echo "${ECHO_T}no" >&6 | ||
23485 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
23486 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | ||
23487 | cat >conftest.$ac_ext <<_ACEOF | ||
23488 | /* confdefs.h. */ | ||
23489 | _ACEOF | ||
23490 | cat confdefs.h >>conftest.$ac_ext | ||
23491 | cat >>conftest.$ac_ext <<_ACEOF | ||
23492 | /* end confdefs.h. */ | ||
23493 | |||
23494 | #include <sys/types.h> | ||
23495 | #include <utmp.h> | ||
23496 | #ifdef HAVE_LASTLOG_H | ||
23497 | # include <lastlog.h> | ||
23498 | #endif | ||
23499 | #ifdef HAVE_PATHS_H | ||
23500 | # include <paths.h> | ||
23501 | #endif | ||
23502 | |||
23503 | int | ||
23504 | main () | ||
23505 | { | ||
23506 | char *lastlog = _PATH_LASTLOG; | ||
23507 | ; | ||
23508 | return 0; | ||
23509 | } | ||
23510 | _ACEOF | ||
23511 | rm -f conftest.$ac_objext | ||
23512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23513 | (eval $ac_compile) 2>conftest.er1 | ||
23514 | ac_status=$? | ||
23515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23516 | rm -f conftest.er1 | ||
23517 | cat conftest.err >&5 | ||
23518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23519 | (exit $ac_status); } && | ||
23520 | { ac_try='test -z "$ac_c_werror_flag" | ||
23521 | || test ! -s conftest.err' | ||
23522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23523 | (eval $ac_try) 2>&5 | ||
23524 | ac_status=$? | ||
23525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23526 | (exit $ac_status); }; } && | ||
23527 | { ac_try='test -s conftest.$ac_objext' | ||
23528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23529 | (eval $ac_try) 2>&5 | ||
23530 | ac_status=$? | ||
23531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23532 | (exit $ac_status); }; }; then | ||
23533 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23534 | echo "${ECHO_T}yes" >&6 | ||
23535 | else | ||
23536 | echo "$as_me: failed program was:" >&5 | ||
23537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23538 | |||
23539 | |||
23540 | echo "$as_me:$LINENO: result: no" >&5 | ||
23541 | echo "${ECHO_T}no" >&6 | ||
23542 | system_lastlog_path=no | ||
23543 | |||
23544 | fi | ||
23545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23546 | |||
23547 | |||
23548 | fi | ||
23549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23550 | |||
23551 | if test -z "$conf_lastlog_location"; then | ||
23552 | if test x"$system_lastlog_path" = x"no" ; then | ||
23553 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
23554 | if (test -d "$f" || test -f "$f") ; then | ||
23555 | conf_lastlog_location=$f | ||
23556 | fi | ||
23557 | done | ||
23558 | if test -z "$conf_lastlog_location"; then | ||
23559 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
23560 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
23561 | fi | ||
23562 | fi | ||
23563 | fi | ||
23564 | |||
23565 | if test -n "$conf_lastlog_location"; then | ||
23566 | cat >>confdefs.h <<_ACEOF | ||
23567 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
23568 | _ACEOF | ||
23569 | |||
23570 | fi | ||
23571 | |||
23572 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
23573 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | ||
23574 | cat >conftest.$ac_ext <<_ACEOF | ||
23575 | /* confdefs.h. */ | ||
23576 | _ACEOF | ||
23577 | cat confdefs.h >>conftest.$ac_ext | ||
23578 | cat >>conftest.$ac_ext <<_ACEOF | ||
23579 | /* end confdefs.h. */ | ||
23580 | |||
23581 | #include <sys/types.h> | ||
23582 | #include <utmp.h> | ||
23583 | #ifdef HAVE_PATHS_H | ||
23584 | # include <paths.h> | ||
23585 | #endif | ||
23586 | |||
23587 | int | ||
23588 | main () | ||
23589 | { | ||
23590 | char *utmp = UTMP_FILE; | ||
23591 | ; | ||
23592 | return 0; | ||
23593 | } | ||
23594 | _ACEOF | ||
23595 | rm -f conftest.$ac_objext | ||
23596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23597 | (eval $ac_compile) 2>conftest.er1 | ||
23598 | ac_status=$? | ||
23599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23600 | rm -f conftest.er1 | ||
23601 | cat conftest.err >&5 | ||
23602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23603 | (exit $ac_status); } && | ||
23604 | { ac_try='test -z "$ac_c_werror_flag" | ||
23605 | || test ! -s conftest.err' | ||
23606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23607 | (eval $ac_try) 2>&5 | ||
23608 | ac_status=$? | ||
23609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23610 | (exit $ac_status); }; } && | ||
23611 | { ac_try='test -s conftest.$ac_objext' | ||
23612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23613 | (eval $ac_try) 2>&5 | ||
23614 | ac_status=$? | ||
23615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23616 | (exit $ac_status); }; }; then | ||
23617 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23618 | echo "${ECHO_T}yes" >&6 | ||
23619 | else | ||
23620 | echo "$as_me: failed program was:" >&5 | ||
23621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23622 | |||
23623 | echo "$as_me:$LINENO: result: no" >&5 | ||
23624 | echo "${ECHO_T}no" >&6 | ||
23625 | system_utmp_path=no | ||
23626 | |||
23627 | fi | ||
23628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23629 | if test -z "$conf_utmp_location"; then | ||
23630 | if test x"$system_utmp_path" = x"no" ; then | ||
23631 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
23632 | if test -f $f ; then | ||
23633 | conf_utmp_location=$f | ||
23634 | fi | ||
23635 | done | ||
23636 | if test -z "$conf_utmp_location"; then | ||
23637 | cat >>confdefs.h <<\_ACEOF | ||
23638 | #define DISABLE_UTMP 1 | ||
23639 | _ACEOF | ||
23640 | |||
23641 | fi | ||
23642 | fi | ||
23643 | fi | ||
23644 | if test -n "$conf_utmp_location"; then | ||
23645 | cat >>confdefs.h <<_ACEOF | ||
23646 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
23647 | _ACEOF | ||
23648 | |||
23649 | fi | ||
23650 | |||
23651 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
23652 | echo $ECHO_N "checking if your system defines WTMP_FILE... $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 | |||
23660 | #include <sys/types.h> | ||
23661 | #include <utmp.h> | ||
23662 | #ifdef HAVE_PATHS_H | ||
23663 | # include <paths.h> | ||
23664 | #endif | ||
23665 | |||
23666 | int | ||
23667 | main () | ||
23668 | { | ||
23669 | char *wtmp = WTMP_FILE; | ||
23670 | ; | ||
23671 | return 0; | ||
23672 | } | ||
23673 | _ACEOF | ||
23674 | rm -f conftest.$ac_objext | ||
23675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23676 | (eval $ac_compile) 2>conftest.er1 | ||
23677 | ac_status=$? | ||
23678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23679 | rm -f conftest.er1 | ||
23680 | cat conftest.err >&5 | ||
23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23682 | (exit $ac_status); } && | ||
23683 | { ac_try='test -z "$ac_c_werror_flag" | ||
23684 | || test ! -s conftest.err' | ||
23685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23686 | (eval $ac_try) 2>&5 | ||
23687 | ac_status=$? | ||
23688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23689 | (exit $ac_status); }; } && | ||
23690 | { ac_try='test -s conftest.$ac_objext' | ||
23691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23692 | (eval $ac_try) 2>&5 | ||
23693 | ac_status=$? | ||
23694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23695 | (exit $ac_status); }; }; then | ||
23696 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23697 | echo "${ECHO_T}yes" >&6 | ||
23698 | else | ||
23699 | echo "$as_me: failed program was:" >&5 | ||
23700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23701 | |||
23702 | echo "$as_me:$LINENO: result: no" >&5 | ||
23703 | echo "${ECHO_T}no" >&6 | ||
23704 | system_wtmp_path=no | ||
23705 | |||
23706 | fi | ||
23707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23708 | if test -z "$conf_wtmp_location"; then | ||
23709 | if test x"$system_wtmp_path" = x"no" ; then | ||
23710 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
23711 | if test -f $f ; then | ||
23712 | conf_wtmp_location=$f | ||
23713 | fi | ||
23714 | done | ||
23715 | if test -z "$conf_wtmp_location"; then | ||
23716 | cat >>confdefs.h <<\_ACEOF | ||
23717 | #define DISABLE_WTMP 1 | ||
23718 | _ACEOF | ||
23719 | |||
23720 | fi | ||
23721 | fi | ||
23722 | fi | ||
23723 | if test -n "$conf_wtmp_location"; then | ||
23724 | cat >>confdefs.h <<_ACEOF | ||
23725 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
23726 | _ACEOF | ||
23727 | |||
23728 | fi | ||
23729 | |||
23730 | |||
23731 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
23732 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | ||
23733 | cat >conftest.$ac_ext <<_ACEOF | ||
23734 | /* confdefs.h. */ | ||
23735 | _ACEOF | ||
23736 | cat confdefs.h >>conftest.$ac_ext | ||
23737 | cat >>conftest.$ac_ext <<_ACEOF | ||
23738 | /* end confdefs.h. */ | ||
23739 | |||
23740 | #include <sys/types.h> | ||
23741 | #include <utmp.h> | ||
23742 | #ifdef HAVE_UTMPX_H | ||
23743 | #include <utmpx.h> | ||
23744 | #endif | ||
23745 | #ifdef HAVE_PATHS_H | ||
23746 | # include <paths.h> | ||
23747 | #endif | ||
23748 | |||
23749 | int | ||
23750 | main () | ||
23751 | { | ||
23752 | char *utmpx = UTMPX_FILE; | ||
23753 | ; | ||
23754 | return 0; | ||
23755 | } | ||
23756 | _ACEOF | ||
23757 | rm -f conftest.$ac_objext | ||
23758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23759 | (eval $ac_compile) 2>conftest.er1 | ||
23760 | ac_status=$? | ||
23761 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23762 | rm -f conftest.er1 | ||
23763 | cat conftest.err >&5 | ||
23764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23765 | (exit $ac_status); } && | ||
23766 | { ac_try='test -z "$ac_c_werror_flag" | ||
23767 | || test ! -s conftest.err' | ||
23768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23769 | (eval $ac_try) 2>&5 | ||
23770 | ac_status=$? | ||
23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23772 | (exit $ac_status); }; } && | ||
23773 | { ac_try='test -s conftest.$ac_objext' | ||
23774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23775 | (eval $ac_try) 2>&5 | ||
23776 | ac_status=$? | ||
23777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23778 | (exit $ac_status); }; }; then | ||
23779 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23780 | echo "${ECHO_T}yes" >&6 | ||
23781 | else | ||
23782 | echo "$as_me: failed program was:" >&5 | ||
23783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23784 | |||
23785 | echo "$as_me:$LINENO: result: no" >&5 | ||
23786 | echo "${ECHO_T}no" >&6 | ||
23787 | system_utmpx_path=no | ||
23788 | |||
23789 | fi | ||
23790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23791 | if test -z "$conf_utmpx_location"; then | ||
23792 | if test x"$system_utmpx_path" = x"no" ; then | ||
23793 | cat >>confdefs.h <<\_ACEOF | ||
23794 | #define DISABLE_UTMPX 1 | ||
23795 | _ACEOF | ||
23796 | |||
23797 | fi | ||
23798 | else | ||
23799 | cat >>confdefs.h <<_ACEOF | ||
23800 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
23801 | _ACEOF | ||
23802 | |||
23803 | fi | ||
23804 | |||
23805 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
23806 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | ||
23807 | cat >conftest.$ac_ext <<_ACEOF | ||
23808 | /* confdefs.h. */ | ||
23809 | _ACEOF | ||
23810 | cat confdefs.h >>conftest.$ac_ext | ||
23811 | cat >>conftest.$ac_ext <<_ACEOF | ||
23812 | /* end confdefs.h. */ | ||
23813 | |||
23814 | #include <sys/types.h> | ||
23815 | #include <utmp.h> | ||
23816 | #ifdef HAVE_UTMPX_H | ||
23817 | #include <utmpx.h> | ||
23818 | #endif | ||
23819 | #ifdef HAVE_PATHS_H | ||
23820 | # include <paths.h> | ||
23821 | #endif | ||
23822 | |||
23823 | int | ||
23824 | main () | ||
23825 | { | ||
23826 | char *wtmpx = WTMPX_FILE; | ||
23827 | ; | ||
23828 | return 0; | ||
23829 | } | ||
23830 | _ACEOF | ||
23831 | rm -f conftest.$ac_objext | ||
23832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
23833 | (eval $ac_compile) 2>conftest.er1 | ||
23834 | ac_status=$? | ||
23835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23836 | rm -f conftest.er1 | ||
23837 | cat conftest.err >&5 | ||
23838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23839 | (exit $ac_status); } && | ||
23840 | { ac_try='test -z "$ac_c_werror_flag" | ||
23841 | || test ! -s conftest.err' | ||
23842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23843 | (eval $ac_try) 2>&5 | ||
23844 | ac_status=$? | ||
23845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23846 | (exit $ac_status); }; } && | ||
23847 | { ac_try='test -s conftest.$ac_objext' | ||
23848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
23849 | (eval $ac_try) 2>&5 | ||
23850 | ac_status=$? | ||
23851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23852 | (exit $ac_status); }; }; then | ||
23853 | echo "$as_me:$LINENO: result: yes" >&5 | ||
23854 | echo "${ECHO_T}yes" >&6 | ||
23855 | else | ||
23856 | echo "$as_me: failed program was:" >&5 | ||
23857 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23858 | |||
23859 | echo "$as_me:$LINENO: result: no" >&5 | ||
23860 | echo "${ECHO_T}no" >&6 | ||
23861 | system_wtmpx_path=no | ||
23862 | |||
23863 | fi | ||
23864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23865 | if test -z "$conf_wtmpx_location"; then | ||
23866 | if test x"$system_wtmpx_path" = x"no" ; then | ||
23867 | cat >>confdefs.h <<\_ACEOF | ||
23868 | #define DISABLE_WTMPX 1 | ||
23869 | _ACEOF | ||
23870 | |||
23871 | fi | ||
23872 | else | ||
23873 | cat >>confdefs.h <<_ACEOF | ||
23874 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
23875 | _ACEOF | ||
23876 | |||
23877 | fi | ||
23878 | |||
23879 | |||
23880 | if test ! -z "$blibpath" ; then | ||
23881 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
23882 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
23883 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
23884 | fi | ||
23885 | |||
23886 | if test "$PAM_MSG" = yes ; then | ||
23887 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
23888 | fi | ||
23889 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
23890 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
23891 | fi | ||
23892 | |||
23893 | |||
23894 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | ||
23895 | |||
23896 | cat >confcache <<\_ACEOF | ||
23897 | # This file is a shell script that caches the results of configure | ||
23898 | # tests run on this system so they can be shared between configure | ||
23899 | # scripts and configure runs, see configure's option --config-cache. | ||
23900 | # It is not useful on other systems. If it contains results you don't | ||
23901 | # want to keep, you may remove or edit it. | ||
23902 | # | ||
23903 | # config.status only pays attention to the cache file if you give it | ||
23904 | # the --recheck option to rerun configure. | ||
23905 | # | ||
23906 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
23907 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
23908 | # following values. | ||
23909 | |||
23910 | _ACEOF | ||
23911 | |||
23912 | # The following way of writing the cache mishandles newlines in values, | ||
23913 | # but we know of no workaround that is simple, portable, and efficient. | ||
23914 | # So, don't put newlines in cache variables' values. | ||
23915 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
23916 | # and sets the high bit in the cache file unless we assign to the vars. | ||
23917 | { | ||
23918 | (set) 2>&1 | | ||
23919 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
23920 | *ac_space=\ *) | ||
23921 | # `set' does not quote correctly, so add quotes (double-quote | ||
23922 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
23923 | sed -n \ | ||
23924 | "s/'/'\\\\''/g; | ||
23925 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
23926 | ;; | ||
23927 | *) | ||
23928 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
23929 | sed -n \ | ||
23930 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
23931 | ;; | ||
23932 | esac; | ||
23933 | } | | ||
23934 | sed ' | ||
23935 | t clear | ||
23936 | : clear | ||
23937 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
23938 | t end | ||
23939 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
23940 | : end' >>confcache | ||
23941 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
23942 | if test -w $cache_file; then | ||
23943 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
23944 | cat confcache >$cache_file | ||
23945 | else | ||
23946 | echo "not updating unwritable cache $cache_file" | ||
23947 | fi | ||
23948 | fi | ||
23949 | rm -f confcache | ||
23950 | |||
23951 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
23952 | # Let make expand exec_prefix. | ||
23953 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
23954 | |||
23955 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
23956 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
23957 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
23958 | # (actually we leave an empty line to preserve line numbers). | ||
23959 | if test "x$srcdir" = x.; then | ||
23960 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
23961 | s/:*\$(srcdir):*/:/; | ||
23962 | s/:*\${srcdir}:*/:/; | ||
23963 | s/:*@srcdir@:*/:/; | ||
23964 | s/^\([^=]*=[ ]*\):*/\1/; | ||
23965 | s/:*$//; | ||
23966 | s/^[^=]*=[ ]*$//; | ||
23967 | }' | ||
23968 | fi | ||
23969 | |||
23970 | DEFS=-DHAVE_CONFIG_H | ||
23971 | |||
23972 | ac_libobjs= | ||
23973 | ac_ltlibobjs= | ||
23974 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
23975 | # 1. Remove the extension, and $U if already installed. | ||
23976 | ac_i=`echo "$ac_i" | | ||
23977 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
23978 | # 2. Add them. | ||
23979 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
23980 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
23981 | done | ||
23982 | LIBOBJS=$ac_libobjs | ||
23983 | |||
23984 | LTLIBOBJS=$ac_ltlibobjs | ||
23985 | |||
23986 | |||
23987 | |||
23988 | : ${CONFIG_STATUS=./config.status} | ||
23989 | ac_clean_files_save=$ac_clean_files | ||
23990 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
23991 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
23992 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
23993 | cat >$CONFIG_STATUS <<_ACEOF | ||
23994 | #! $SHELL | ||
23995 | # Generated by $as_me. | ||
23996 | # Run this file to recreate the current configuration. | ||
23997 | # Compiler output produced by configure, useful for debugging | ||
23998 | # configure, is in config.log if it exists. | ||
23999 | |||
24000 | debug=false | ||
24001 | ac_cs_recheck=false | ||
24002 | ac_cs_silent=false | ||
24003 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
24004 | _ACEOF | ||
24005 | |||
24006 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24007 | ## --------------------- ## | ||
24008 | ## M4sh Initialization. ## | ||
24009 | ## --------------------- ## | ||
24010 | |||
24011 | # Be Bourne compatible | ||
24012 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
24013 | emulate sh | ||
24014 | NULLCMD=: | ||
24015 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
24016 | # is contrary to our usage. Disable this feature. | ||
24017 | alias -g '${1+"$@"}'='"$@"' | ||
24018 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
24019 | set -o posix | ||
24020 | fi | ||
24021 | DUALCASE=1; export DUALCASE # for MKS sh | ||
24022 | |||
24023 | # Support unset when possible. | ||
24024 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
24025 | as_unset=unset | ||
24026 | else | ||
24027 | as_unset=false | ||
24028 | fi | ||
24029 | |||
24030 | |||
24031 | # Work around bugs in pre-3.0 UWIN ksh. | ||
24032 | $as_unset ENV MAIL MAILPATH | ||
24033 | PS1='$ ' | ||
24034 | PS2='> ' | ||
24035 | PS4='+ ' | ||
24036 | |||
24037 | # NLS nuisances. | ||
24038 | for as_var in \ | ||
24039 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
24040 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
24041 | LC_TELEPHONE LC_TIME | ||
24042 | do | ||
24043 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
24044 | eval $as_var=C; export $as_var | ||
24045 | else | ||
24046 | $as_unset $as_var | ||
24047 | fi | ||
24048 | done | ||
24049 | |||
24050 | # Required to use basename. | ||
24051 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
24052 | as_expr=expr | ||
24053 | else | ||
24054 | as_expr=false | ||
24055 | fi | ||
24056 | |||
24057 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
24058 | as_basename=basename | ||
24059 | else | ||
24060 | as_basename=false | ||
24061 | fi | ||
24062 | |||
24063 | |||
24064 | # Name of the executable. | ||
24065 | as_me=`$as_basename "$0" || | ||
24066 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
24067 | X"$0" : 'X\(//\)$' \| \ | ||
24068 | X"$0" : 'X\(/\)$' \| \ | ||
24069 | . : '\(.\)' 2>/dev/null || | ||
24070 | echo X/"$0" | | ||
24071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
24072 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
24073 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
24074 | s/.*/./; q'` | ||
24075 | |||
24076 | |||
24077 | # PATH needs CR, and LINENO needs CR and PATH. | ||
24078 | # Avoid depending upon Character Ranges. | ||
24079 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
24080 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
24081 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
24082 | as_cr_digits='0123456789' | ||
24083 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
24084 | |||
24085 | # The user is always right. | ||
24086 | if test "${PATH_SEPARATOR+set}" != set; then | ||
24087 | echo "#! /bin/sh" >conf$$.sh | ||
24088 | echo "exit 0" >>conf$$.sh | ||
24089 | chmod +x conf$$.sh | ||
24090 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
24091 | PATH_SEPARATOR=';' | ||
24092 | else | ||
24093 | PATH_SEPARATOR=: | ||
24094 | fi | ||
24095 | rm -f conf$$.sh | ||
24096 | fi | ||
24097 | |||
24098 | |||
24099 | as_lineno_1=$LINENO | ||
24100 | as_lineno_2=$LINENO | ||
24101 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
24102 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
24103 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
24104 | # Find who we are. Look in the path if we contain no path at all | ||
24105 | # relative or not. | ||
24106 | case $0 in | ||
24107 | *[\\/]* ) as_myself=$0 ;; | ||
24108 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24109 | for as_dir in $PATH | ||
24110 | do | ||
24111 | IFS=$as_save_IFS | ||
24112 | test -z "$as_dir" && as_dir=. | ||
24113 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
24114 | done | ||
24115 | |||
24116 | ;; | ||
24117 | esac | ||
24118 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
24119 | # in which case we are not to be found in the path. | ||
24120 | if test "x$as_myself" = x; then | ||
24121 | as_myself=$0 | ||
24122 | fi | ||
24123 | if test ! -f "$as_myself"; then | ||
24124 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
24125 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
24126 | { (exit 1); exit 1; }; } | ||
24127 | fi | ||
24128 | case $CONFIG_SHELL in | ||
24129 | '') | ||
24130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
24131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
24132 | do | ||
24133 | IFS=$as_save_IFS | ||
24134 | test -z "$as_dir" && as_dir=. | ||
24135 | for as_base in sh bash ksh sh5; do | ||
24136 | case $as_dir in | ||
24137 | /*) | ||
24138 | if ("$as_dir/$as_base" -c ' | ||
24139 | as_lineno_1=$LINENO | ||
24140 | as_lineno_2=$LINENO | ||
24141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
24142 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
24143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
24144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
24145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
24146 | CONFIG_SHELL=$as_dir/$as_base | ||
24147 | export CONFIG_SHELL | ||
24148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
24149 | fi;; | ||
24150 | esac | ||
24151 | done | ||
24152 | done | ||
24153 | ;; | ||
24154 | esac | ||
24155 | |||
24156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
24157 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
24158 | # line-number line before each line; the second 'sed' does the real | ||
24159 | # work. The second script uses 'N' to pair each line-number line | ||
24160 | # with the numbered line, and appends trailing '-' during | ||
24161 | # substitution so that $LINENO is not a special case at line end. | ||
24162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
24163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
24164 | sed '=' <$as_myself | | ||
24165 | sed ' | ||
24166 | N | ||
24167 | s,$,-, | ||
24168 | : loop | ||
24169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
24170 | t loop | ||
24171 | s,-$,, | ||
24172 | s,^['$as_cr_digits']*\n,, | ||
24173 | ' >$as_me.lineno && | ||
24174 | chmod +x $as_me.lineno || | ||
24175 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
24176 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
24177 | { (exit 1); exit 1; }; } | ||
24178 | |||
24179 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
24180 | # (the dirname of $[0] is not the place where we might find the | ||
24181 | # original and so on. Autoconf is especially sensible to this). | ||
24182 | . ./$as_me.lineno | ||
24183 | # Exit status is that of the last command. | ||
24184 | exit | ||
24185 | } | ||
24186 | |||
24187 | |||
24188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
24189 | *c*,-n*) ECHO_N= ECHO_C=' | ||
24190 | ' ECHO_T=' ' ;; | ||
24191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
24192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
24193 | esac | ||
24194 | |||
24195 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
24196 | as_expr=expr | ||
24197 | else | ||
24198 | as_expr=false | ||
24199 | fi | ||
24200 | |||
24201 | rm -f conf$$ conf$$.exe conf$$.file | ||
24202 | echo >conf$$.file | ||
24203 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
24204 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
24205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
24206 | if test -f conf$$.exe; then | ||
24207 | # Don't use ln at all; we don't have any links | ||
24208 | as_ln_s='cp -p' | ||
24209 | else | ||
24210 | as_ln_s='ln -s' | ||
24211 | fi | ||
24212 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
24213 | as_ln_s=ln | ||
24214 | else | ||
24215 | as_ln_s='cp -p' | ||
24216 | fi | ||
24217 | rm -f conf$$ conf$$.exe conf$$.file | ||
24218 | |||
24219 | if mkdir -p . 2>/dev/null; then | ||
24220 | as_mkdir_p=: | ||
24221 | else | ||
24222 | test -d ./-p && rmdir ./-p | ||
24223 | as_mkdir_p=false | ||
24224 | fi | ||
24225 | |||
24226 | as_executable_p="test -f" | ||
24227 | |||
24228 | # Sed expression to map a string onto a valid CPP name. | ||
24229 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
24230 | |||
24231 | # Sed expression to map a string onto a valid variable name. | ||
24232 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
24233 | |||
24234 | |||
24235 | # IFS | ||
24236 | # We need space, tab and new line, in precisely that order. | ||
24237 | as_nl=' | ||
24238 | ' | ||
24239 | IFS=" $as_nl" | ||
24240 | |||
24241 | # CDPATH. | ||
24242 | $as_unset CDPATH | ||
24243 | |||
24244 | exec 6>&1 | ||
24245 | |||
24246 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
24247 | # report actual input values of CONFIG_FILES etc. instead of their | ||
24248 | # values after options handling. Logging --version etc. is OK. | ||
24249 | exec 5>>config.log | ||
24250 | { | ||
24251 | echo | ||
24252 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF | ||
24253 | ## Running $as_me. ## | ||
24254 | BOXI_EOF | ||
24255 | } >&5 | ||
24256 | cat >&5 <<_CSEOF | ||
24257 | |||
24258 | This file was extended by $as_me, which was | ||
24259 | generated by GNU Autoconf 2.59. Invocation command line was | ||
24260 | |||
24261 | CONFIG_FILES = $CONFIG_FILES | ||
24262 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
24263 | CONFIG_LINKS = $CONFIG_LINKS | ||
24264 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
24265 | $ $0 $@ | ||
24266 | |||
24267 | _CSEOF | ||
24268 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
24269 | echo >&5 | ||
24270 | _ACEOF | ||
24271 | |||
24272 | # Files that config.status was made for. | ||
24273 | if test -n "$ac_config_files"; then | ||
24274 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
24275 | fi | ||
24276 | |||
24277 | if test -n "$ac_config_headers"; then | ||
24278 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
24279 | fi | ||
24280 | |||
24281 | if test -n "$ac_config_links"; then | ||
24282 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
24283 | fi | ||
24284 | |||
24285 | if test -n "$ac_config_commands"; then | ||
24286 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
24287 | fi | ||
24288 | |||
24289 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24290 | |||
24291 | ac_cs_usage="\ | ||
24292 | \`$as_me' instantiates files from templates according to the | ||
24293 | current configuration. | ||
24294 | |||
24295 | Usage: $0 [OPTIONS] [FILE]... | ||
24296 | |||
24297 | -h, --help print this help, then exit | ||
24298 | -V, --version print version number, then exit | ||
24299 | -q, --quiet do not print progress messages | ||
24300 | -d, --debug don't remove temporary files | ||
24301 | --recheck update $as_me by reconfiguring in the same conditions | ||
24302 | --file=FILE[:TEMPLATE] | ||
24303 | instantiate the configuration file FILE | ||
24304 | --header=FILE[:TEMPLATE] | ||
24305 | instantiate the configuration header FILE | ||
24306 | |||
24307 | Configuration files: | ||
24308 | $config_files | ||
24309 | |||
24310 | Configuration headers: | ||
24311 | $config_headers | ||
24312 | |||
24313 | Report bugs to <bug-autoconf@gnu.org>." | ||
24314 | _ACEOF | ||
24315 | |||
24316 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24317 | ac_cs_version="\\ | ||
24318 | config.status | ||
24319 | configured by $0, generated by GNU Autoconf 2.59, | ||
24320 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
24321 | |||
24322 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
24323 | This config.status script is free software; the Free Software Foundation | ||
24324 | gives unlimited permission to copy, distribute and modify it." | ||
24325 | srcdir=$srcdir | ||
24326 | INSTALL="$INSTALL" | ||
24327 | _ACEOF | ||
24328 | |||
24329 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24330 | # If no file are specified by the user, then we need to provide default | ||
24331 | # value. By we need to know if files were specified by the user. | ||
24332 | ac_need_defaults=: | ||
24333 | while test $# != 0 | ||
24334 | do | ||
24335 | case $1 in | ||
24336 | --*=*) | ||
24337 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
24338 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
24339 | ac_shift=: | ||
24340 | ;; | ||
24341 | -*) | ||
24342 | ac_option=$1 | ||
24343 | ac_optarg=$2 | ||
24344 | ac_shift=shift | ||
24345 | ;; | ||
24346 | *) # This is not an option, so the user has probably given explicit | ||
24347 | # arguments. | ||
24348 | ac_option=$1 | ||
24349 | ac_need_defaults=false;; | ||
24350 | esac | ||
24351 | |||
24352 | case $ac_option in | ||
24353 | # Handling of the options. | ||
24354 | _ACEOF | ||
24355 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24356 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
24357 | ac_cs_recheck=: ;; | ||
24358 | --version | --vers* | -V ) | ||
24359 | echo "$ac_cs_version"; exit 0 ;; | ||
24360 | --he | --h) | ||
24361 | # Conflict between --help and --header | ||
24362 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
24363 | Try \`$0 --help' for more information." >&5 | ||
24364 | echo "$as_me: error: ambiguous option: $1 | ||
24365 | Try \`$0 --help' for more information." >&2;} | ||
24366 | { (exit 1); exit 1; }; };; | ||
24367 | --help | --hel | -h ) | ||
24368 | echo "$ac_cs_usage"; exit 0 ;; | ||
24369 | --debug | --d* | -d ) | ||
24370 | debug=: ;; | ||
24371 | --file | --fil | --fi | --f ) | ||
24372 | $ac_shift | ||
24373 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
24374 | ac_need_defaults=false;; | ||
24375 | --header | --heade | --head | --hea ) | ||
24376 | $ac_shift | ||
24377 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
24378 | ac_need_defaults=false;; | ||
24379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
24380 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
24381 | ac_cs_silent=: ;; | ||
24382 | |||
24383 | # This is an error. | ||
24384 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
24385 | Try \`$0 --help' for more information." >&5 | ||
24386 | echo "$as_me: error: unrecognized option: $1 | ||
24387 | Try \`$0 --help' for more information." >&2;} | ||
24388 | { (exit 1); exit 1; }; } ;; | ||
24389 | |||
24390 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
24391 | |||
24392 | esac | ||
24393 | shift | ||
24394 | done | ||
24395 | |||
24396 | ac_configure_extra_args= | ||
24397 | |||
24398 | if $ac_cs_silent; then | ||
24399 | exec 6>/dev/null | ||
24400 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
24401 | fi | ||
24402 | |||
24403 | _ACEOF | ||
24404 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24405 | if \$ac_cs_recheck; then | ||
24406 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
24407 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
24408 | fi | ||
24409 | |||
24410 | _ACEOF | ||
24411 | |||
24412 | |||
24413 | |||
24414 | |||
24415 | |||
24416 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24417 | for ac_config_target in $ac_config_targets | ||
24418 | do | ||
24419 | case "$ac_config_target" in | ||
24420 | # Handling of arguments. | ||
24421 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
24422 | "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
24423 | "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
24424 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
24425 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
24426 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
24427 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
24428 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
24429 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
24430 | { (exit 1); exit 1; }; };; | ||
24431 | esac | ||
24432 | done | ||
24433 | |||
24434 | # If the user did not use the arguments to specify the items to instantiate, | ||
24435 | # then the envvar interface is used. Set only those that are not. | ||
24436 | # We use the long form for the default assignment because of an extremely | ||
24437 | # bizarre bug on SunOS 4.1.3. | ||
24438 | if $ac_need_defaults; then | ||
24439 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
24440 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
24441 | fi | ||
24442 | |||
24443 | # Have a temporary directory for convenience. Make it in the build tree | ||
24444 | # simply because there is no reason to put it here, and in addition, | ||
24445 | # creating and moving files from /tmp can sometimes cause problems. | ||
24446 | # Create a temporary directory, and hook for its removal unless debugging. | ||
24447 | $debug || | ||
24448 | { | ||
24449 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
24450 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
24451 | } | ||
24452 | |||
24453 | # Create a (secure) tmp directory for tmp files. | ||
24454 | |||
24455 | { | ||
24456 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
24457 | test -n "$tmp" && test -d "$tmp" | ||
24458 | } || | ||
24459 | { | ||
24460 | tmp=./confstat$$-$RANDOM | ||
24461 | (umask 077 && mkdir $tmp) | ||
24462 | } || | ||
24463 | { | ||
24464 | echo "$me: cannot create a temporary directory in ." >&2 | ||
24465 | { (exit 1); exit 1; } | ||
24466 | } | ||
24467 | |||
24468 | _ACEOF | ||
24469 | |||
24470 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24471 | |||
24472 | # | ||
24473 | # CONFIG_FILES section. | ||
24474 | # | ||
24475 | |||
24476 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
24477 | # This happens for instance when ./config.status config.h | ||
24478 | if test -n "\$CONFIG_FILES"; then | ||
24479 | # Protect against being on the right side of a sed subst in config.status. | ||
24480 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
24481 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
24482 | s,@SHELL@,$SHELL,;t t | ||
24483 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
24484 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
24485 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
24486 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
24487 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
24488 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
24489 | s,@exec_prefix@,$exec_prefix,;t t | ||
24490 | s,@prefix@,$prefix,;t t | ||
24491 | s,@program_transform_name@,$program_transform_name,;t t | ||
24492 | s,@bindir@,$bindir,;t t | ||
24493 | s,@sbindir@,$sbindir,;t t | ||
24494 | s,@libexecdir@,$libexecdir,;t t | ||
24495 | s,@datadir@,$datadir,;t t | ||
24496 | s,@sysconfdir@,$sysconfdir,;t t | ||
24497 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
24498 | s,@localstatedir@,$localstatedir,;t t | ||
24499 | s,@libdir@,$libdir,;t t | ||
24500 | s,@includedir@,$includedir,;t t | ||
24501 | s,@oldincludedir@,$oldincludedir,;t t | ||
24502 | s,@infodir@,$infodir,;t t | ||
24503 | s,@mandir@,$mandir,;t t | ||
24504 | s,@build_alias@,$build_alias,;t t | ||
24505 | s,@host_alias@,$host_alias,;t t | ||
24506 | s,@target_alias@,$target_alias,;t t | ||
24507 | s,@DEFS@,$DEFS,;t t | ||
24508 | s,@ECHO_C@,$ECHO_C,;t t | ||
24509 | s,@ECHO_N@,$ECHO_N,;t t | ||
24510 | s,@ECHO_T@,$ECHO_T,;t t | ||
24511 | s,@LIBS@,$LIBS,;t t | ||
24512 | s,@CC@,$CC,;t t | ||
24513 | s,@CFLAGS@,$CFLAGS,;t t | ||
24514 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
24515 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
24516 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
24517 | s,@EXEEXT@,$EXEEXT,;t t | ||
24518 | s,@OBJEXT@,$OBJEXT,;t t | ||
24519 | s,@build@,$build,;t t | ||
24520 | s,@build_cpu@,$build_cpu,;t t | ||
24521 | s,@build_vendor@,$build_vendor,;t t | ||
24522 | s,@build_os@,$build_os,;t t | ||
24523 | s,@host@,$host,;t t | ||
24524 | s,@host_cpu@,$host_cpu,;t t | ||
24525 | s,@host_vendor@,$host_vendor,;t t | ||
24526 | s,@host_os@,$host_os,;t t | ||
24527 | s,@AWK@,$AWK,;t t | ||
24528 | s,@CPP@,$CPP,;t t | ||
24529 | s,@RANLIB@,$RANLIB,;t t | ||
24530 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
24531 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
24532 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
24533 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
24534 | s,@AR@,$AR,;t t | ||
24535 | s,@CAT@,$CAT,;t t | ||
24536 | s,@KILL@,$KILL,;t t | ||
24537 | s,@PERL@,$PERL,;t t | ||
24538 | s,@SED@,$SED,;t t | ||
24539 | s,@ENT@,$ENT,;t t | ||
24540 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | ||
24541 | s,@SH@,$SH,;t t | ||
24542 | s,@TEST_SHELL@,$TEST_SHELL,;t t | ||
24543 | s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t | ||
24544 | s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t | ||
24545 | s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t | ||
24546 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | ||
24547 | s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t | ||
24548 | s,@LD@,$LD,;t t | ||
24549 | s,@EGREP@,$EGREP,;t t | ||
24550 | s,@LIBWRAP@,$LIBWRAP,;t t | ||
24551 | s,@LIBPAM@,$LIBPAM,;t t | ||
24552 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | ||
24553 | s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t | ||
24554 | s,@PROG_LS@,$PROG_LS,;t t | ||
24555 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | ||
24556 | s,@PROG_ARP@,$PROG_ARP,;t t | ||
24557 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | ||
24558 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | ||
24559 | s,@PROG_PS@,$PROG_PS,;t t | ||
24560 | s,@PROG_SAR@,$PROG_SAR,;t t | ||
24561 | s,@PROG_W@,$PROG_W,;t t | ||
24562 | s,@PROG_WHO@,$PROG_WHO,;t t | ||
24563 | s,@PROG_LAST@,$PROG_LAST,;t t | ||
24564 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | ||
24565 | s,@PROG_DF@,$PROG_DF,;t t | ||
24566 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | ||
24567 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | ||
24568 | s,@PROG_IPCS@,$PROG_IPCS,;t t | ||
24569 | s,@PROG_TAIL@,$PROG_TAIL,;t t | ||
24570 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | ||
24571 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | ||
24572 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | ||
24573 | s,@xauth_path@,$xauth_path,;t t | ||
24574 | s,@STRIP_OPT@,$STRIP_OPT,;t t | ||
24575 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | ||
24576 | s,@NROFF@,$NROFF,;t t | ||
24577 | s,@MANTYPE@,$MANTYPE,;t t | ||
24578 | s,@mansubdir@,$mansubdir,;t t | ||
24579 | s,@user_path@,$user_path,;t t | ||
24580 | s,@piddir@,$piddir,;t t | ||
24581 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
24582 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
24583 | CEOF | ||
24584 | |||
24585 | _ACEOF | ||
24586 | |||
24587 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24588 | # Split the substitutions into bite-sized pieces for seds with | ||
24589 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
24590 | ac_max_sed_lines=48 | ||
24591 | ac_sed_frag=1 # Number of current file. | ||
24592 | ac_beg=1 # First line for current file. | ||
24593 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
24594 | ac_more_lines=: | ||
24595 | ac_sed_cmds= | ||
24596 | while $ac_more_lines; do | ||
24597 | if test $ac_beg -gt 1; then | ||
24598 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
24599 | else | ||
24600 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
24601 | fi | ||
24602 | if test ! -s $tmp/subs.frag; then | ||
24603 | ac_more_lines=false | ||
24604 | else | ||
24605 | # The purpose of the label and of the branching condition is to | ||
24606 | # speed up the sed processing (if there are no `@' at all, there | ||
24607 | # is no need to browse any of the substitutions). | ||
24608 | # These are the two extra sed commands mentioned above. | ||
24609 | (echo ':t | ||
24610 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
24611 | if test -z "$ac_sed_cmds"; then | ||
24612 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
24613 | else | ||
24614 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
24615 | fi | ||
24616 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
24617 | ac_beg=$ac_end | ||
24618 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
24619 | fi | ||
24620 | done | ||
24621 | if test -z "$ac_sed_cmds"; then | ||
24622 | ac_sed_cmds=cat | ||
24623 | fi | ||
24624 | fi # test -n "$CONFIG_FILES" | ||
24625 | |||
24626 | _ACEOF | ||
24627 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24628 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
24629 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
24630 | case $ac_file in | ||
24631 | - | *:- | *:-:* ) # input from stdin | ||
24632 | cat >$tmp/stdin | ||
24633 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
24634 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
24635 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
24636 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
24637 | * ) ac_file_in=$ac_file.in ;; | ||
24638 | esac | ||
24639 | |||
24640 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
24641 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
24642 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24643 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
24644 | X"$ac_file" : 'X\(//\)$' \| \ | ||
24645 | X"$ac_file" : 'X\(/\)' \| \ | ||
24646 | . : '\(.\)' 2>/dev/null || | ||
24647 | echo X"$ac_file" | | ||
24648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
24649 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
24650 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
24651 | /^X\(\/\).*/{ s//\1/; q; } | ||
24652 | s/.*/./; q'` | ||
24653 | { if $as_mkdir_p; then | ||
24654 | mkdir -p "$ac_dir" | ||
24655 | else | ||
24656 | as_dir="$ac_dir" | ||
24657 | as_dirs= | ||
24658 | while test ! -d "$as_dir"; do | ||
24659 | as_dirs="$as_dir $as_dirs" | ||
24660 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
24661 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
24662 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
24663 | X"$as_dir" : 'X\(//\)$' \| \ | ||
24664 | X"$as_dir" : 'X\(/\)' \| \ | ||
24665 | . : '\(.\)' 2>/dev/null || | ||
24666 | echo X"$as_dir" | | ||
24667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
24668 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
24669 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
24670 | /^X\(\/\).*/{ s//\1/; q; } | ||
24671 | s/.*/./; q'` | ||
24672 | done | ||
24673 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
24674 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
24675 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
24676 | { (exit 1); exit 1; }; }; } | ||
24677 | |||
24678 | ac_builddir=. | ||
24679 | |||
24680 | if test "$ac_dir" != .; then | ||
24681 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
24682 | # A "../" for each directory in $ac_dir_suffix. | ||
24683 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
24684 | else | ||
24685 | ac_dir_suffix= ac_top_builddir= | ||
24686 | fi | ||
24687 | |||
24688 | case $srcdir in | ||
24689 | .) # No --srcdir option. We are building in place. | ||
24690 | ac_srcdir=. | ||
24691 | if test -z "$ac_top_builddir"; then | ||
24692 | ac_top_srcdir=. | ||
24693 | else | ||
24694 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
24695 | fi ;; | ||
24696 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
24697 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
24698 | ac_top_srcdir=$srcdir ;; | ||
24699 | *) # Relative path. | ||
24700 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
24701 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
24702 | esac | ||
24703 | |||
24704 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
24705 | # the directories may not exist. | ||
24706 | case `pwd` in | ||
24707 | .) ac_abs_builddir="$ac_dir";; | ||
24708 | *) | ||
24709 | case "$ac_dir" in | ||
24710 | .) ac_abs_builddir=`pwd`;; | ||
24711 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
24712 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
24713 | esac;; | ||
24714 | esac | ||
24715 | case $ac_abs_builddir in | ||
24716 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
24717 | *) | ||
24718 | case ${ac_top_builddir}. in | ||
24719 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
24720 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
24721 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
24722 | esac;; | ||
24723 | esac | ||
24724 | case $ac_abs_builddir in | ||
24725 | .) ac_abs_srcdir=$ac_srcdir;; | ||
24726 | *) | ||
24727 | case $ac_srcdir in | ||
24728 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
24729 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
24730 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
24731 | esac;; | ||
24732 | esac | ||
24733 | case $ac_abs_builddir in | ||
24734 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
24735 | *) | ||
24736 | case $ac_top_srcdir in | ||
24737 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
24738 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
24739 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
24740 | esac;; | ||
24741 | esac | ||
24742 | |||
24743 | |||
24744 | case $INSTALL in | ||
24745 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
24746 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
24747 | esac | ||
24748 | |||
24749 | if test x"$ac_file" != x-; then | ||
24750 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
24751 | echo "$as_me: creating $ac_file" >&6;} | ||
24752 | rm -f "$ac_file" | ||
24753 | fi | ||
24754 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
24755 | # use $as_me), people would be surprised to read: | ||
24756 | # /* config.h. Generated by config.status. */ | ||
24757 | if test x"$ac_file" = x-; then | ||
24758 | configure_input= | ||
24759 | else | ||
24760 | configure_input="$ac_file. " | ||
24761 | fi | ||
24762 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
24763 | sed 's,.*/,,'` by configure." | ||
24764 | |||
24765 | # First look for the input files in the build tree, otherwise in the | ||
24766 | # src tree. | ||
24767 | ac_file_inputs=`IFS=: | ||
24768 | for f in $ac_file_in; do | ||
24769 | case $f in | ||
24770 | -) echo $tmp/stdin ;; | ||
24771 | [\\/$]*) | ||
24772 | # Absolute (can't be DOS-style, as IFS=:) | ||
24773 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
24774 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
24775 | { (exit 1); exit 1; }; } | ||
24776 | echo "$f";; | ||
24777 | *) # Relative | ||
24778 | if test -f "$f"; then | ||
24779 | # Build tree | ||
24780 | echo "$f" | ||
24781 | elif test -f "$srcdir/$f"; then | ||
24782 | # Source tree | ||
24783 | echo "$srcdir/$f" | ||
24784 | else | ||
24785 | # /dev/null tree | ||
24786 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
24787 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
24788 | { (exit 1); exit 1; }; } | ||
24789 | fi;; | ||
24790 | esac | ||
24791 | done` || { (exit 1); exit 1; } | ||
24792 | _ACEOF | ||
24793 | cat >>$CONFIG_STATUS <<_ACEOF | ||
24794 | sed "$ac_vpsub | ||
24795 | $extrasub | ||
24796 | _ACEOF | ||
24797 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24798 | :t | ||
24799 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
24800 | s,@configure_input@,$configure_input,;t t | ||
24801 | s,@srcdir@,$ac_srcdir,;t t | ||
24802 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
24803 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
24804 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
24805 | s,@builddir@,$ac_builddir,;t t | ||
24806 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
24807 | s,@top_builddir@,$ac_top_builddir,;t t | ||
24808 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
24809 | s,@INSTALL@,$ac_INSTALL,;t t | ||
24810 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
24811 | rm -f $tmp/stdin | ||
24812 | if test x"$ac_file" != x-; then | ||
24813 | mv $tmp/out $ac_file | ||
24814 | else | ||
24815 | cat $tmp/out | ||
24816 | rm -f $tmp/out | ||
24817 | fi | ||
24818 | |||
24819 | done | ||
24820 | _ACEOF | ||
24821 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24822 | |||
24823 | # | ||
24824 | # CONFIG_HEADER section. | ||
24825 | # | ||
24826 | |||
24827 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
24828 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
24829 | # | ||
24830 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
24831 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
24832 | ac_dB='[ ].*$,\1#\2' | ||
24833 | ac_dC=' ' | ||
24834 | ac_dD=',;t' | ||
24835 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
24836 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
24837 | ac_uB='$,\1#\2define\3' | ||
24838 | ac_uC=' ' | ||
24839 | ac_uD=',;t' | ||
24840 | |||
24841 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
24842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
24843 | case $ac_file in | ||
24844 | - | *:- | *:-:* ) # input from stdin | ||
24845 | cat >$tmp/stdin | ||
24846 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
24847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
24848 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
24849 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
24850 | * ) ac_file_in=$ac_file.in ;; | ||
24851 | esac | ||
24852 | |||
24853 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
24854 | echo "$as_me: creating $ac_file" >&6;} | ||
24855 | |||
24856 | # First look for the input files in the build tree, otherwise in the | ||
24857 | # src tree. | ||
24858 | ac_file_inputs=`IFS=: | ||
24859 | for f in $ac_file_in; do | ||
24860 | case $f in | ||
24861 | -) echo $tmp/stdin ;; | ||
24862 | [\\/$]*) | ||
24863 | # Absolute (can't be DOS-style, as IFS=:) | ||
24864 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
24865 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
24866 | { (exit 1); exit 1; }; } | ||
24867 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
24868 | echo "$f";; | ||
24869 | *) # Relative | ||
24870 | if test -f "$f"; then | ||
24871 | # Build tree | ||
24872 | echo "$f" | ||
24873 | elif test -f "$srcdir/$f"; then | ||
24874 | # Source tree | ||
24875 | echo "$srcdir/$f" | ||
24876 | else | ||
24877 | # /dev/null tree | ||
24878 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
24879 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
24880 | { (exit 1); exit 1; }; } | ||
24881 | fi;; | ||
24882 | esac | ||
24883 | done` || { (exit 1); exit 1; } | ||
24884 | # Remove the trailing spaces. | ||
24885 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
24886 | |||
24887 | _ACEOF | ||
24888 | |||
24889 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
24890 | # `conftest.undefs', that substitutes the proper values into | ||
24891 | # config.h.in to produce config.h. The first handles `#define' | ||
24892 | # templates, and the second `#undef' templates. | ||
24893 | # And first: Protect against being on the right side of a sed subst in | ||
24894 | # config.status. Protect against being in an unquoted here document | ||
24895 | # in config.status. | ||
24896 | rm -f conftest.defines conftest.undefs | ||
24897 | # Using a here document instead of a string reduces the quoting nightmare. | ||
24898 | # Putting comments in sed scripts is not portable. | ||
24899 | # | ||
24900 | # `end' is used to avoid that the second main sed command (meant for | ||
24901 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
24902 | # See the Autoconf documentation for `clear'. | ||
24903 | cat >confdef2sed.sed <<\_ACEOF | ||
24904 | s/[\\&,]/\\&/g | ||
24905 | s,[\\$`],\\&,g | ||
24906 | t clear | ||
24907 | : clear | ||
24908 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
24909 | t end | ||
24910 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
24911 | : end | ||
24912 | _ACEOF | ||
24913 | # If some macros were called several times there might be several times | ||
24914 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
24915 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
24916 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
24917 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
24918 | rm -f confdef2sed.sed | ||
24919 | |||
24920 | # This sed command replaces #undef with comments. This is necessary, for | ||
24921 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
24922 | # on some systems where configure will not decide to define it. | ||
24923 | cat >>conftest.undefs <<\_ACEOF | ||
24924 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
24925 | _ACEOF | ||
24926 | |||
24927 | # Break up conftest.defines because some shells have a limit on the size | ||
24928 | # of here documents, and old seds have small limits too (100 cmds). | ||
24929 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
24930 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
24931 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
24932 | echo ' :' >>$CONFIG_STATUS | ||
24933 | rm -f conftest.tail | ||
24934 | while grep . conftest.defines >/dev/null | ||
24935 | do | ||
24936 | # Write a limited-size here document to $tmp/defines.sed. | ||
24937 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
24938 | # Speed up: don't consider the non `#define' lines. | ||
24939 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
24940 | # Work around the forget-to-reset-the-flag bug. | ||
24941 | echo 't clr' >>$CONFIG_STATUS | ||
24942 | echo ': clr' >>$CONFIG_STATUS | ||
24943 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
24944 | echo 'CEOF | ||
24945 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
24946 | rm -f $tmp/in | ||
24947 | mv $tmp/out $tmp/in | ||
24948 | ' >>$CONFIG_STATUS | ||
24949 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
24950 | rm -f conftest.defines | ||
24951 | mv conftest.tail conftest.defines | ||
24952 | done | ||
24953 | rm -f conftest.defines | ||
24954 | echo ' fi # grep' >>$CONFIG_STATUS | ||
24955 | echo >>$CONFIG_STATUS | ||
24956 | |||
24957 | # Break up conftest.undefs because some shells have a limit on the size | ||
24958 | # of here documents, and old seds have small limits too (100 cmds). | ||
24959 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
24960 | rm -f conftest.tail | ||
24961 | while grep . conftest.undefs >/dev/null | ||
24962 | do | ||
24963 | # Write a limited-size here document to $tmp/undefs.sed. | ||
24964 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
24965 | # Speed up: don't consider the non `#undef' | ||
24966 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
24967 | # Work around the forget-to-reset-the-flag bug. | ||
24968 | echo 't clr' >>$CONFIG_STATUS | ||
24969 | echo ': clr' >>$CONFIG_STATUS | ||
24970 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
24971 | echo 'CEOF | ||
24972 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
24973 | rm -f $tmp/in | ||
24974 | mv $tmp/out $tmp/in | ||
24975 | ' >>$CONFIG_STATUS | ||
24976 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
24977 | rm -f conftest.undefs | ||
24978 | mv conftest.tail conftest.undefs | ||
24979 | done | ||
24980 | rm -f conftest.undefs | ||
24981 | |||
24982 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
24983 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
24984 | # use $as_me), people would be surprised to read: | ||
24985 | # /* config.h. Generated by config.status. */ | ||
24986 | if test x"$ac_file" = x-; then | ||
24987 | echo "/* Generated by configure. */" >$tmp/config.h | ||
24988 | else | ||
24989 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
24990 | fi | ||
24991 | cat $tmp/in >>$tmp/config.h | ||
24992 | rm -f $tmp/in | ||
24993 | if test x"$ac_file" != x-; then | ||
24994 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
24995 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
24996 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
24997 | else | ||
24998 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
24999 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25000 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
25001 | X"$ac_file" : 'X\(//\)$' \| \ | ||
25002 | X"$ac_file" : 'X\(/\)' \| \ | ||
25003 | . : '\(.\)' 2>/dev/null || | ||
25004 | echo X"$ac_file" | | ||
25005 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25006 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25007 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25008 | /^X\(\/\).*/{ s//\1/; q; } | ||
25009 | s/.*/./; q'` | ||
25010 | { if $as_mkdir_p; then | ||
25011 | mkdir -p "$ac_dir" | ||
25012 | else | ||
25013 | as_dir="$ac_dir" | ||
25014 | as_dirs= | ||
25015 | while test ! -d "$as_dir"; do | ||
25016 | as_dirs="$as_dir $as_dirs" | ||
25017 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
25018 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
25019 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
25020 | X"$as_dir" : 'X\(//\)$' \| \ | ||
25021 | X"$as_dir" : 'X\(/\)' \| \ | ||
25022 | . : '\(.\)' 2>/dev/null || | ||
25023 | echo X"$as_dir" | | ||
25024 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
25025 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
25026 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
25027 | /^X\(\/\).*/{ s//\1/; q; } | ||
25028 | s/.*/./; q'` | ||
25029 | done | ||
25030 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
25031 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
25032 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
25033 | { (exit 1); exit 1; }; }; } | ||
25034 | |||
25035 | rm -f $ac_file | ||
25036 | mv $tmp/config.h $ac_file | ||
25037 | fi | ||
25038 | else | ||
25039 | cat $tmp/config.h | ||
25040 | rm -f $tmp/config.h | ||
25041 | fi | ||
25042 | done | ||
25043 | _ACEOF | ||
25044 | |||
25045 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
25046 | |||
25047 | { (exit 0); exit 0; } | ||
25048 | _ACEOF | ||
25049 | chmod +x $CONFIG_STATUS | ||
25050 | ac_clean_files=$ac_clean_files_save | ||
25051 | |||
25052 | |||
25053 | # configure is writing to config.log, and then calls config.status. | ||
25054 | # config.status does its own redirection, appending to config.log. | ||
25055 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
25056 | # by configure, so config.status won't be able to write to it; its | ||
25057 | # output is simply discarded. So we exec the FD to /dev/null, | ||
25058 | # effectively closing config.log, so it can be properly (re)opened and | ||
25059 | # appended to by config.status. When coming back to configure, we | ||
25060 | # need to make the FD available again. | ||
25061 | if test "$no_create" != yes; then | ||
25062 | ac_cs_success=: | ||
25063 | ac_config_status_args= | ||
25064 | test "$silent" = yes && | ||
25065 | ac_config_status_args="$ac_config_status_args --quiet" | ||
25066 | exec 5>/dev/null | ||
25067 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
25068 | exec 5>>config.log | ||
25069 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
25070 | # would make configure fail if this is the last instruction. | ||
25071 | $ac_cs_success || { (exit 1); exit 1; } | ||
25072 | fi | ||
25073 | |||
25074 | |||
25075 | # Print summary of options | ||
25076 | |||
25077 | # Someone please show me a better way :) | ||
25078 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
25079 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
25080 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
25081 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
25082 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
25083 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
25084 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
25085 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
25086 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
25087 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
25088 | |||
25089 | echo "" | ||
25090 | echo "OpenSSH has been configured with the following options:" | ||
25091 | echo " User binaries: $B" | ||
25092 | echo " System binaries: $C" | ||
25093 | echo " Configuration files: $D" | ||
25094 | echo " Askpass program: $E" | ||
25095 | echo " Manual pages: $F" | ||
25096 | echo " PID file: $G" | ||
25097 | echo " Privilege separation chroot path: $H" | ||
25098 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
25099 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
25100 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
25101 | else | ||
25102 | echo " sshd default user PATH: $I" | ||
25103 | if test ! -z "$external_path_file"; then | ||
25104 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
25105 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
25106 | fi | ||
25107 | fi | ||
25108 | if test ! -z "$superuser_path" ; then | ||
25109 | echo " sshd superuser user PATH: $J" | ||
25110 | fi | ||
25111 | echo " Manpage format: $MANTYPE" | ||
25112 | echo " PAM support: $PAM_MSG" | ||
25113 | echo " KerberosV support: $KRB5_MSG" | ||
25114 | echo " Smartcard support: $SCARD_MSG" | ||
25115 | echo " S/KEY support: $SKEY_MSG" | ||
25116 | echo " TCP Wrappers support: $TCPW_MSG" | ||
25117 | echo " MD5 password support: $MD5_MSG" | ||
25118 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
25119 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
25120 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
25121 | echo " Random number source: $RAND_MSG" | ||
25122 | if test ! -z "$USE_RAND_HELPER" ; then | ||
25123 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
25124 | fi | ||
25125 | |||
25126 | echo "" | ||
25127 | |||
25128 | echo " Host: ${host}" | ||
25129 | echo " Compiler: ${CC}" | ||
25130 | echo " Compiler flags: ${CFLAGS}" | ||
25131 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
25132 | echo " Linker flags: ${LDFLAGS}" | ||
25133 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | ||
25134 | |||
25135 | echo "" | ||
25136 | |||
25137 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
25138 | echo "SVR4 style packages are supported with \"make package\"\n" | ||
25139 | fi | ||
25140 | |||
25141 | if test "x$PAM_MSG" = "xyes" ; then | ||
25142 | echo "PAM is enabled. You may need to install a PAM control file " | ||
25143 | echo "for sshd, otherwise password authentication may fail. " | ||
25144 | echo "Example PAM control files can be found in the contrib/ " | ||
25145 | echo "subdirectory" | ||
25146 | echo "" | ||
25147 | fi | ||
25148 | |||
25149 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
25150 | echo "WARNING: you are using the builtin random number collection " | ||
25151 | echo "service. Please read WARNING.RNG and request that your OS " | ||
25152 | echo "vendor includes kernel-based random number collection in " | ||
25153 | echo "future versions of your OS." | ||
25154 | echo "" | ||
25155 | fi | ||
25156 | |||
25157 | if test ! -z "$NO_PEERCHECK" ; then | ||
25158 | echo "WARNING: the operating system that you are using does not " | ||
25159 | echo "appear to support either the getpeereid() API nor the " | ||
25160 | echo "SO_PEERCRED getsockopt() option. These facilities are used to " | ||
25161 | echo "enforce security checks to prevent unauthorised connections to " | ||
25162 | echo "ssh-agent. Their absence increases the risk that a malicious " | ||
25163 | echo "user can connect to your agent. " | ||
25164 | echo "" | ||
25165 | fi | ||
25166 | |||