diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21045 |
1 files changed, 21045 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..330fb9b1d --- /dev/null +++ b/configure | |||
@@ -0,0 +1,21045 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.583 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.69 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # | ||
9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | ||
10 | # | ||
11 | # | ||
12 | # This configure script is free software; the Free Software Foundation | ||
13 | # gives unlimited permission to copy, distribute and modify it. | ||
14 | ## -------------------- ## | ||
15 | ## M4sh Initialization. ## | ||
16 | ## -------------------- ## | ||
17 | |||
18 | # Be more Bourne compatible | ||
19 | DUALCASE=1; export DUALCASE # for MKS sh | ||
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
21 | emulate sh | ||
22 | NULLCMD=: | ||
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
24 | # is contrary to our usage. Disable this feature. | ||
25 | alias -g '${1+"$@"}'='"$@"' | ||
26 | setopt NO_GLOB_SUBST | ||
27 | else | ||
28 | case `(set -o) 2>/dev/null` in #( | ||
29 | *posix*) : | ||
30 | set -o posix ;; #( | ||
31 | *) : | ||
32 | ;; | ||
33 | esac | ||
34 | fi | ||
35 | |||
36 | |||
37 | as_nl=' | ||
38 | ' | ||
39 | export as_nl | ||
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
45 | # but without wasting forks for bash or zsh. | ||
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
48 | as_echo='print -r --' | ||
49 | as_echo_n='print -rn --' | ||
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
51 | as_echo='printf %s\n' | ||
52 | as_echo_n='printf %s' | ||
53 | else | ||
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
56 | as_echo_n='/usr/ucb/echo -n' | ||
57 | else | ||
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
59 | as_echo_n_body='eval | ||
60 | arg=$1; | ||
61 | case $arg in #( | ||
62 | *"$as_nl"*) | ||
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
65 | esac; | ||
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
67 | ' | ||
68 | export as_echo_n_body | ||
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
70 | fi | ||
71 | export as_echo_body | ||
72 | as_echo='sh -c $as_echo_body as_echo' | ||
73 | fi | ||
74 | |||
75 | # The user is always right. | ||
76 | if test "${PATH_SEPARATOR+set}" != set; then | ||
77 | PATH_SEPARATOR=: | ||
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
80 | PATH_SEPARATOR=';' | ||
81 | } | ||
82 | fi | ||
83 | |||
84 | |||
85 | # IFS | ||
86 | # We need space, tab and new line, in precisely that order. Quoting is | ||
87 | # there to prevent editors from complaining about space-tab. | ||
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
89 | # splitting by setting IFS to empty value.) | ||
90 | IFS=" "" $as_nl" | ||
91 | |||
92 | # Find who we are. Look in the path if we contain no directory separator. | ||
93 | as_myself= | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | # Use a proper internal environment variable to ensure we don't fall | ||
139 | # into an infinite loop, continuously re-executing ourselves. | ||
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | ||
141 | _as_can_reexec=no; export _as_can_reexec; | ||
142 | # We cannot yet assume a decent shell, so we have to provide a | ||
143 | # neutralization value for shells without unset; and this also | ||
144 | # works around shells that cannot unset nonexistent variables. | ||
145 | # Preserve -v and -x to the replacement shell. | ||
146 | BASH_ENV=/dev/null | ||
147 | ENV=/dev/null | ||
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
149 | case $- in # (((( | ||
150 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
151 | *v* ) as_opts=-v ;; | ||
152 | *x* ) as_opts=-x ;; | ||
153 | * ) as_opts= ;; | ||
154 | esac | ||
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
156 | # Admittedly, this is quite paranoid, since all the known shells bail | ||
157 | # out after a failed `exec'. | ||
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
159 | as_fn_exit 255 | ||
160 | fi | ||
161 | # We don't want this to propagate to other subprocesses. | ||
162 | { _as_can_reexec=; unset _as_can_reexec;} | ||
163 | if test "x$CONFIG_SHELL" = x; then | ||
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
165 | emulate sh | ||
166 | NULLCMD=: | ||
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
168 | # is contrary to our usage. Disable this feature. | ||
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
170 | setopt NO_GLOB_SUBST | ||
171 | else | ||
172 | case \`(set -o) 2>/dev/null\` in #( | ||
173 | *posix*) : | ||
174 | set -o posix ;; #( | ||
175 | *) : | ||
176 | ;; | ||
177 | esac | ||
178 | fi | ||
179 | " | ||
180 | as_required="as_fn_return () { (exit \$1); } | ||
181 | as_fn_success () { as_fn_return 0; } | ||
182 | as_fn_failure () { as_fn_return 1; } | ||
183 | as_fn_ret_success () { return 0; } | ||
184 | as_fn_ret_failure () { return 1; } | ||
185 | |||
186 | exitcode=0 | ||
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
192 | |||
193 | else | ||
194 | exitcode=1; echo positional parameters were not saved. | ||
195 | fi | ||
196 | test x\$exitcode = x0 || exit 1 | ||
197 | test -x / || exit 1" | ||
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
202 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
203 | if (eval "$as_required") 2>/dev/null; then : | ||
204 | as_have_required=yes | ||
205 | else | ||
206 | as_have_required=no | ||
207 | fi | ||
208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
209 | |||
210 | else | ||
211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
212 | as_found=false | ||
213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
214 | do | ||
215 | IFS=$as_save_IFS | ||
216 | test -z "$as_dir" && as_dir=. | ||
217 | as_found=: | ||
218 | case $as_dir in #( | ||
219 | /*) | ||
220 | for as_base in sh bash ksh sh5; do | ||
221 | # Try only shells that exist, to save several forks. | ||
222 | as_shell=$as_dir/$as_base | ||
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
225 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
227 | break 2 | ||
228 | fi | ||
229 | fi | ||
230 | done;; | ||
231 | esac | ||
232 | as_found=false | ||
233 | done | ||
234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
236 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
237 | fi; } | ||
238 | IFS=$as_save_IFS | ||
239 | |||
240 | |||
241 | if test "x$CONFIG_SHELL" != x; then : | ||
242 | export CONFIG_SHELL | ||
243 | # We cannot yet assume a decent shell, so we have to provide a | ||
244 | # neutralization value for shells without unset; and this also | ||
245 | # works around shells that cannot unset nonexistent variables. | ||
246 | # Preserve -v and -x to the replacement shell. | ||
247 | BASH_ENV=/dev/null | ||
248 | ENV=/dev/null | ||
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
250 | case $- in # (((( | ||
251 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
252 | *v* ) as_opts=-v ;; | ||
253 | *x* ) as_opts=-x ;; | ||
254 | * ) as_opts= ;; | ||
255 | esac | ||
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
257 | # Admittedly, this is quite paranoid, since all the known shells bail | ||
258 | # out after a failed `exec'. | ||
259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
260 | exit 255 | ||
261 | fi | ||
262 | |||
263 | if test x$as_have_required = xno; then : | ||
264 | $as_echo "$0: This script requires a shell more modern than all" | ||
265 | $as_echo "$0: the shells that I found on your system." | ||
266 | if test x${ZSH_VERSION+set} = xset ; then | ||
267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
269 | else | ||
270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
271 | $0: openssh-unix-dev@mindrot.org about your system, | ||
272 | $0: including any error possibly output before this | ||
273 | $0: message. Then install a modern shell, or manually run | ||
274 | $0: the script under such a shell if you do have one." | ||
275 | fi | ||
276 | exit 1 | ||
277 | fi | ||
278 | fi | ||
279 | fi | ||
280 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
281 | export SHELL | ||
282 | # Unset more variables known to interfere with behavior of common tools. | ||
283 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
284 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
285 | |||
286 | ## --------------------- ## | ||
287 | ## M4sh Shell Functions. ## | ||
288 | ## --------------------- ## | ||
289 | # as_fn_unset VAR | ||
290 | # --------------- | ||
291 | # Portably unset VAR. | ||
292 | as_fn_unset () | ||
293 | { | ||
294 | { eval $1=; unset $1;} | ||
295 | } | ||
296 | as_unset=as_fn_unset | ||
297 | |||
298 | # as_fn_set_status STATUS | ||
299 | # ----------------------- | ||
300 | # Set $? to STATUS, without forking. | ||
301 | as_fn_set_status () | ||
302 | { | ||
303 | return $1 | ||
304 | } # as_fn_set_status | ||
305 | |||
306 | # as_fn_exit STATUS | ||
307 | # ----------------- | ||
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
309 | as_fn_exit () | ||
310 | { | ||
311 | set +e | ||
312 | as_fn_set_status $1 | ||
313 | exit $1 | ||
314 | } # as_fn_exit | ||
315 | |||
316 | # as_fn_mkdir_p | ||
317 | # ------------- | ||
318 | # Create "$as_dir" as a directory, including parents if necessary. | ||
319 | as_fn_mkdir_p () | ||
320 | { | ||
321 | |||
322 | case $as_dir in #( | ||
323 | -*) as_dir=./$as_dir;; | ||
324 | esac | ||
325 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
326 | as_dirs= | ||
327 | while :; do | ||
328 | case $as_dir in #( | ||
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
330 | *) as_qdir=$as_dir;; | ||
331 | esac | ||
332 | as_dirs="'$as_qdir' $as_dirs" | ||
333 | as_dir=`$as_dirname -- "$as_dir" || | ||
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
336 | X"$as_dir" : 'X\(//\)$' \| \ | ||
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
338 | $as_echo X"$as_dir" | | ||
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
340 | s//\1/ | ||
341 | q | ||
342 | } | ||
343 | /^X\(\/\/\)[^/].*/{ | ||
344 | s//\1/ | ||
345 | q | ||
346 | } | ||
347 | /^X\(\/\/\)$/{ | ||
348 | s//\1/ | ||
349 | q | ||
350 | } | ||
351 | /^X\(\/\).*/{ | ||
352 | s//\1/ | ||
353 | q | ||
354 | } | ||
355 | s/.*/./; q'` | ||
356 | test -d "$as_dir" && break | ||
357 | done | ||
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
360 | |||
361 | |||
362 | } # as_fn_mkdir_p | ||
363 | |||
364 | # as_fn_executable_p FILE | ||
365 | # ----------------------- | ||
366 | # Test if FILE is an executable regular file. | ||
367 | as_fn_executable_p () | ||
368 | { | ||
369 | test -f "$1" && test -x "$1" | ||
370 | } # as_fn_executable_p | ||
371 | # as_fn_append VAR VALUE | ||
372 | # ---------------------- | ||
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
374 | # advantage of any shell optimizations that allow amortized linear growth over | ||
375 | # repeated appends, instead of the typical quadratic growth present in naive | ||
376 | # implementations. | ||
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
378 | eval 'as_fn_append () | ||
379 | { | ||
380 | eval $1+=\$2 | ||
381 | }' | ||
382 | else | ||
383 | as_fn_append () | ||
384 | { | ||
385 | eval $1=\$$1\$2 | ||
386 | } | ||
387 | fi # as_fn_append | ||
388 | |||
389 | # as_fn_arith ARG... | ||
390 | # ------------------ | ||
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
393 | # must be portable across $(()) and expr. | ||
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
395 | eval 'as_fn_arith () | ||
396 | { | ||
397 | as_val=$(( $* )) | ||
398 | }' | ||
399 | else | ||
400 | as_fn_arith () | ||
401 | { | ||
402 | as_val=`expr "$@" || test $? -eq 1` | ||
403 | } | ||
404 | fi # as_fn_arith | ||
405 | |||
406 | |||
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
408 | # ---------------------------------------- | ||
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
411 | # script with STATUS, using 1 if that was 0. | ||
412 | as_fn_error () | ||
413 | { | ||
414 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
415 | if test "$4"; then | ||
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
418 | fi | ||
419 | $as_echo "$as_me: error: $2" >&2 | ||
420 | as_fn_exit $as_status | ||
421 | } # as_fn_error | ||
422 | |||
423 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
425 | as_expr=expr | ||
426 | else | ||
427 | as_expr=false | ||
428 | fi | ||
429 | |||
430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
431 | as_basename=basename | ||
432 | else | ||
433 | as_basename=false | ||
434 | fi | ||
435 | |||
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
437 | as_dirname=dirname | ||
438 | else | ||
439 | as_dirname=false | ||
440 | fi | ||
441 | |||
442 | as_me=`$as_basename -- "$0" || | ||
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
444 | X"$0" : 'X\(//\)$' \| \ | ||
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
446 | $as_echo X/"$0" | | ||
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
448 | s//\1/ | ||
449 | q | ||
450 | } | ||
451 | /^X\/\(\/\/\)$/{ | ||
452 | s//\1/ | ||
453 | q | ||
454 | } | ||
455 | /^X\/\(\/\).*/{ | ||
456 | s//\1/ | ||
457 | q | ||
458 | } | ||
459 | s/.*/./; q'` | ||
460 | |||
461 | # Avoid depending upon Character Ranges. | ||
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
465 | as_cr_digits='0123456789' | ||
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
467 | |||
468 | |||
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
474 | sed -n ' | ||
475 | p | ||
476 | /[$]LINENO/= | ||
477 | ' <$as_myself | | ||
478 | sed ' | ||
479 | s/[$]LINENO.*/&-/ | ||
480 | t lineno | ||
481 | b | ||
482 | :lineno | ||
483 | N | ||
484 | :loop | ||
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
486 | t loop | ||
487 | s/-\n.*// | ||
488 | ' >$as_me.lineno && | ||
489 | chmod +x "$as_me.lineno" || | ||
490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
491 | |||
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | ||
493 | # already done that, so ensure we don't try to do so again and fall | ||
494 | # in an infinite loop. This has already happened in practice. | ||
495 | _as_can_reexec=no; export _as_can_reexec | ||
496 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
497 | # (the dirname of $[0] is not the place where we might find the | ||
498 | # original and so on. Autoconf is especially sensitive to this). | ||
499 | . "./$as_me.lineno" | ||
500 | # Exit status is that of the last command. | ||
501 | exit | ||
502 | } | ||
503 | |||
504 | ECHO_C= ECHO_N= ECHO_T= | ||
505 | case `echo -n x` in #((((( | ||
506 | -n*) | ||
507 | case `echo 'xy\c'` in | ||
508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
509 | xy) ECHO_C='\c';; | ||
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
511 | ECHO_T=' ';; | ||
512 | esac;; | ||
513 | *) | ||
514 | ECHO_N='-n';; | ||
515 | esac | ||
516 | |||
517 | rm -f conf$$ conf$$.exe conf$$.file | ||
518 | if test -d conf$$.dir; then | ||
519 | rm -f conf$$.dir/conf$$.file | ||
520 | else | ||
521 | rm -f conf$$.dir | ||
522 | mkdir conf$$.dir 2>/dev/null | ||
523 | fi | ||
524 | if (echo >conf$$.file) 2>/dev/null; then | ||
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
526 | as_ln_s='ln -s' | ||
527 | # ... but there are two gotchas: | ||
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
530 | # In both cases, we have to default to `cp -pR'. | ||
531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
532 | as_ln_s='cp -pR' | ||
533 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
534 | as_ln_s=ln | ||
535 | else | ||
536 | as_ln_s='cp -pR' | ||
537 | fi | ||
538 | else | ||
539 | as_ln_s='cp -pR' | ||
540 | fi | ||
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
542 | rmdir conf$$.dir 2>/dev/null | ||
543 | |||
544 | if mkdir -p . 2>/dev/null; then | ||
545 | as_mkdir_p='mkdir -p "$as_dir"' | ||
546 | else | ||
547 | test -d ./-p && rmdir ./-p | ||
548 | as_mkdir_p=false | ||
549 | fi | ||
550 | |||
551 | as_test_x='test -x' | ||
552 | as_executable_p=as_fn_executable_p | ||
553 | |||
554 | # Sed expression to map a string onto a valid CPP name. | ||
555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
556 | |||
557 | # Sed expression to map a string onto a valid variable name. | ||
558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
559 | |||
560 | |||
561 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
562 | exec 6>&1 | ||
563 | |||
564 | # Name of the host. | ||
565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
566 | # so uname gets run too. | ||
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
568 | |||
569 | # | ||
570 | # Initializations. | ||
571 | # | ||
572 | ac_default_prefix=/usr/local | ||
573 | ac_clean_files= | ||
574 | ac_config_libobj_dir=. | ||
575 | LIBOBJS= | ||
576 | cross_compiling=no | ||
577 | subdirs= | ||
578 | MFLAGS= | ||
579 | MAKEFLAGS= | ||
580 | |||
581 | # Identity of this package. | ||
582 | PACKAGE_NAME='OpenSSH' | ||
583 | PACKAGE_TARNAME='openssh' | ||
584 | PACKAGE_VERSION='Portable' | ||
585 | PACKAGE_STRING='OpenSSH Portable' | ||
586 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
587 | PACKAGE_URL='' | ||
588 | |||
589 | ac_unique_file="ssh.c" | ||
590 | # Factoring default headers for most tests. | ||
591 | ac_includes_default="\ | ||
592 | #include <stdio.h> | ||
593 | #ifdef HAVE_SYS_TYPES_H | ||
594 | # include <sys/types.h> | ||
595 | #endif | ||
596 | #ifdef HAVE_SYS_STAT_H | ||
597 | # include <sys/stat.h> | ||
598 | #endif | ||
599 | #ifdef STDC_HEADERS | ||
600 | # include <stdlib.h> | ||
601 | # include <stddef.h> | ||
602 | #else | ||
603 | # ifdef HAVE_STDLIB_H | ||
604 | # include <stdlib.h> | ||
605 | # endif | ||
606 | #endif | ||
607 | #ifdef HAVE_STRING_H | ||
608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
609 | # include <memory.h> | ||
610 | # endif | ||
611 | # include <string.h> | ||
612 | #endif | ||
613 | #ifdef HAVE_STRINGS_H | ||
614 | # include <strings.h> | ||
615 | #endif | ||
616 | #ifdef HAVE_INTTYPES_H | ||
617 | # include <inttypes.h> | ||
618 | #endif | ||
619 | #ifdef HAVE_STDINT_H | ||
620 | # include <stdint.h> | ||
621 | #endif | ||
622 | #ifdef HAVE_UNISTD_H | ||
623 | # include <unistd.h> | ||
624 | #endif" | ||
625 | |||
626 | ac_subst_vars='LTLIBOBJS | ||
627 | DEPEND | ||
628 | UNSUPPORTED_ALGORITHMS | ||
629 | TEST_MALLOC_OPTIONS | ||
630 | TEST_SSH_UTF8 | ||
631 | TEST_SSH_IPV6 | ||
632 | piddir | ||
633 | user_path | ||
634 | mansubdir | ||
635 | MANTYPE | ||
636 | XAUTH_PATH | ||
637 | STRIP_OPT | ||
638 | xauth_path | ||
639 | PRIVSEP_PATH | ||
640 | K5LIBS | ||
641 | GSSLIBS | ||
642 | KRB5CONF | ||
643 | SSHDLIBS | ||
644 | SSHLIBS | ||
645 | SSH_PRIVSEP_USER | ||
646 | COMMENT_OUT_ECC | ||
647 | TEST_SSH_ECC | ||
648 | LIBEDIT | ||
649 | PKGCONFIG | ||
650 | LDNSCONFIG | ||
651 | LIBOBJS | ||
652 | LD | ||
653 | PATH_PASSWD_PROG | ||
654 | STARTUP_SCRIPT_SHELL | ||
655 | MAKE_PACKAGE_SUPPORTED | ||
656 | PATH_USERADD_PROG | ||
657 | PATH_GROUPADD_PROG | ||
658 | MANFMT | ||
659 | TEST_SHELL | ||
660 | MANDOC | ||
661 | NROFF | ||
662 | GROFF | ||
663 | SH | ||
664 | TEST_MINUS_S_SH | ||
665 | ENT | ||
666 | SED | ||
667 | KILL | ||
668 | CAT | ||
669 | ac_ct_AR | ||
670 | AR | ||
671 | MKDIR_P | ||
672 | INSTALL_DATA | ||
673 | INSTALL_SCRIPT | ||
674 | INSTALL_PROGRAM | ||
675 | RANLIB | ||
676 | AWK | ||
677 | EGREP | ||
678 | GREP | ||
679 | CPP | ||
680 | host_os | ||
681 | host_vendor | ||
682 | host_cpu | ||
683 | host | ||
684 | build_os | ||
685 | build_vendor | ||
686 | build_cpu | ||
687 | build | ||
688 | OBJEXT | ||
689 | EXEEXT | ||
690 | ac_ct_CC | ||
691 | CPPFLAGS | ||
692 | LDFLAGS | ||
693 | CFLAGS | ||
694 | CC | ||
695 | target_alias | ||
696 | host_alias | ||
697 | build_alias | ||
698 | LIBS | ||
699 | ECHO_T | ||
700 | ECHO_N | ||
701 | ECHO_C | ||
702 | DEFS | ||
703 | mandir | ||
704 | localedir | ||
705 | libdir | ||
706 | psdir | ||
707 | pdfdir | ||
708 | dvidir | ||
709 | htmldir | ||
710 | infodir | ||
711 | docdir | ||
712 | oldincludedir | ||
713 | includedir | ||
714 | localstatedir | ||
715 | sharedstatedir | ||
716 | sysconfdir | ||
717 | datadir | ||
718 | datarootdir | ||
719 | libexecdir | ||
720 | sbindir | ||
721 | bindir | ||
722 | program_transform_name | ||
723 | prefix | ||
724 | exec_prefix | ||
725 | PACKAGE_URL | ||
726 | PACKAGE_BUGREPORT | ||
727 | PACKAGE_STRING | ||
728 | PACKAGE_VERSION | ||
729 | PACKAGE_TARNAME | ||
730 | PACKAGE_NAME | ||
731 | PATH_SEPARATOR | ||
732 | SHELL' | ||
733 | ac_subst_files='' | ||
734 | ac_user_opts=' | ||
735 | enable_option_checking | ||
736 | enable_largefile | ||
737 | with_openssl | ||
738 | with_stackprotect | ||
739 | with_hardening | ||
740 | with_rpath | ||
741 | with_cflags | ||
742 | with_cflags_after | ||
743 | with_cppflags | ||
744 | with_ldflags | ||
745 | with_ldflags_after | ||
746 | with_libs | ||
747 | with_Werror | ||
748 | with_solaris_contracts | ||
749 | with_solaris_projects | ||
750 | with_solaris_privs | ||
751 | with_osfsia | ||
752 | with_zlib | ||
753 | with_zlib_version_check | ||
754 | with_ldns | ||
755 | with_libedit | ||
756 | with_audit | ||
757 | with_pie | ||
758 | enable_pkcs11 | ||
759 | with_ssl_dir | ||
760 | with_openssl_header_check | ||
761 | with_ssl_engine | ||
762 | with_prngd_port | ||
763 | with_prngd_socket | ||
764 | with_pam | ||
765 | with_pam_service | ||
766 | with_privsep_user | ||
767 | with_sandbox | ||
768 | with_selinux | ||
769 | with_kerberos5 | ||
770 | with_privsep_path | ||
771 | with_xauth | ||
772 | enable_strip | ||
773 | with_maildir | ||
774 | with_mantype | ||
775 | with_md5_passwords | ||
776 | with_shadow | ||
777 | with_ipaddr_display | ||
778 | enable_etc_default_login | ||
779 | with_default_path | ||
780 | with_superuser_path | ||
781 | with_4in6 | ||
782 | with_bsd_auth | ||
783 | with_pid_dir | ||
784 | enable_lastlog | ||
785 | enable_utmp | ||
786 | enable_utmpx | ||
787 | enable_wtmp | ||
788 | enable_wtmpx | ||
789 | enable_libutil | ||
790 | enable_pututline | ||
791 | enable_pututxline | ||
792 | with_lastlog | ||
793 | ' | ||
794 | ac_precious_vars='build_alias | ||
795 | host_alias | ||
796 | target_alias | ||
797 | CC | ||
798 | CFLAGS | ||
799 | LDFLAGS | ||
800 | LIBS | ||
801 | CPPFLAGS | ||
802 | CPP' | ||
803 | |||
804 | |||
805 | # Initialize some variables set by options. | ||
806 | ac_init_help= | ||
807 | ac_init_version=false | ||
808 | ac_unrecognized_opts= | ||
809 | ac_unrecognized_sep= | ||
810 | # The variables have the same names as the options, with | ||
811 | # dashes changed to underlines. | ||
812 | cache_file=/dev/null | ||
813 | exec_prefix=NONE | ||
814 | no_create= | ||
815 | no_recursion= | ||
816 | prefix=NONE | ||
817 | program_prefix=NONE | ||
818 | program_suffix=NONE | ||
819 | program_transform_name=s,x,x, | ||
820 | silent= | ||
821 | site= | ||
822 | srcdir= | ||
823 | verbose= | ||
824 | x_includes=NONE | ||
825 | x_libraries=NONE | ||
826 | |||
827 | # Installation directory options. | ||
828 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
829 | # and all the variables that are supposed to be based on exec_prefix | ||
830 | # by default will actually change. | ||
831 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
832 | # (The list follows the same order as the GNU Coding Standards.) | ||
833 | bindir='${exec_prefix}/bin' | ||
834 | sbindir='${exec_prefix}/sbin' | ||
835 | libexecdir='${exec_prefix}/libexec' | ||
836 | datarootdir='${prefix}/share' | ||
837 | datadir='${datarootdir}' | ||
838 | sysconfdir='${prefix}/etc' | ||
839 | sharedstatedir='${prefix}/com' | ||
840 | localstatedir='${prefix}/var' | ||
841 | includedir='${prefix}/include' | ||
842 | oldincludedir='/usr/include' | ||
843 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
844 | infodir='${datarootdir}/info' | ||
845 | htmldir='${docdir}' | ||
846 | dvidir='${docdir}' | ||
847 | pdfdir='${docdir}' | ||
848 | psdir='${docdir}' | ||
849 | libdir='${exec_prefix}/lib' | ||
850 | localedir='${datarootdir}/locale' | ||
851 | mandir='${datarootdir}/man' | ||
852 | |||
853 | ac_prev= | ||
854 | ac_dashdash= | ||
855 | for ac_option | ||
856 | do | ||
857 | # If the previous option needs an argument, assign it. | ||
858 | if test -n "$ac_prev"; then | ||
859 | eval $ac_prev=\$ac_option | ||
860 | ac_prev= | ||
861 | continue | ||
862 | fi | ||
863 | |||
864 | case $ac_option in | ||
865 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
866 | *=) ac_optarg= ;; | ||
867 | *) ac_optarg=yes ;; | ||
868 | esac | ||
869 | |||
870 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
871 | |||
872 | case $ac_dashdash$ac_option in | ||
873 | --) | ||
874 | ac_dashdash=yes ;; | ||
875 | |||
876 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
877 | ac_prev=bindir ;; | ||
878 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
879 | bindir=$ac_optarg ;; | ||
880 | |||
881 | -build | --build | --buil | --bui | --bu) | ||
882 | ac_prev=build_alias ;; | ||
883 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
884 | build_alias=$ac_optarg ;; | ||
885 | |||
886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
888 | ac_prev=cache_file ;; | ||
889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
891 | cache_file=$ac_optarg ;; | ||
892 | |||
893 | --config-cache | -C) | ||
894 | cache_file=config.cache ;; | ||
895 | |||
896 | -datadir | --datadir | --datadi | --datad) | ||
897 | ac_prev=datadir ;; | ||
898 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
899 | datadir=$ac_optarg ;; | ||
900 | |||
901 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
902 | | --dataroo | --dataro | --datar) | ||
903 | ac_prev=datarootdir ;; | ||
904 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
905 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
906 | datarootdir=$ac_optarg ;; | ||
907 | |||
908 | -disable-* | --disable-*) | ||
909 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
910 | # Reject names that are not valid shell variable names. | ||
911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
912 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
913 | ac_useropt_orig=$ac_useropt | ||
914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
915 | case $ac_user_opts in | ||
916 | *" | ||
917 | "enable_$ac_useropt" | ||
918 | "*) ;; | ||
919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
920 | ac_unrecognized_sep=', ';; | ||
921 | esac | ||
922 | eval enable_$ac_useropt=no ;; | ||
923 | |||
924 | -docdir | --docdir | --docdi | --doc | --do) | ||
925 | ac_prev=docdir ;; | ||
926 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
927 | docdir=$ac_optarg ;; | ||
928 | |||
929 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
930 | ac_prev=dvidir ;; | ||
931 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
932 | dvidir=$ac_optarg ;; | ||
933 | |||
934 | -enable-* | --enable-*) | ||
935 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
936 | # Reject names that are not valid shell variable names. | ||
937 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
938 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
939 | ac_useropt_orig=$ac_useropt | ||
940 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
941 | case $ac_user_opts in | ||
942 | *" | ||
943 | "enable_$ac_useropt" | ||
944 | "*) ;; | ||
945 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
946 | ac_unrecognized_sep=', ';; | ||
947 | esac | ||
948 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
949 | |||
950 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
951 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
952 | | --exec | --exe | --ex) | ||
953 | ac_prev=exec_prefix ;; | ||
954 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
955 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
956 | | --exec=* | --exe=* | --ex=*) | ||
957 | exec_prefix=$ac_optarg ;; | ||
958 | |||
959 | -gas | --gas | --ga | --g) | ||
960 | # Obsolete; use --with-gas. | ||
961 | with_gas=yes ;; | ||
962 | |||
963 | -help | --help | --hel | --he | -h) | ||
964 | ac_init_help=long ;; | ||
965 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
966 | ac_init_help=recursive ;; | ||
967 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
968 | ac_init_help=short ;; | ||
969 | |||
970 | -host | --host | --hos | --ho) | ||
971 | ac_prev=host_alias ;; | ||
972 | -host=* | --host=* | --hos=* | --ho=*) | ||
973 | host_alias=$ac_optarg ;; | ||
974 | |||
975 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
976 | ac_prev=htmldir ;; | ||
977 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
978 | | --ht=*) | ||
979 | htmldir=$ac_optarg ;; | ||
980 | |||
981 | -includedir | --includedir | --includedi | --included | --include \ | ||
982 | | --includ | --inclu | --incl | --inc) | ||
983 | ac_prev=includedir ;; | ||
984 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
985 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
986 | includedir=$ac_optarg ;; | ||
987 | |||
988 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
989 | ac_prev=infodir ;; | ||
990 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
991 | infodir=$ac_optarg ;; | ||
992 | |||
993 | -libdir | --libdir | --libdi | --libd) | ||
994 | ac_prev=libdir ;; | ||
995 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
996 | libdir=$ac_optarg ;; | ||
997 | |||
998 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
999 | | --libexe | --libex | --libe) | ||
1000 | ac_prev=libexecdir ;; | ||
1001 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1002 | | --libexe=* | --libex=* | --libe=*) | ||
1003 | libexecdir=$ac_optarg ;; | ||
1004 | |||
1005 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1006 | ac_prev=localedir ;; | ||
1007 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1008 | localedir=$ac_optarg ;; | ||
1009 | |||
1010 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1011 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1012 | ac_prev=localstatedir ;; | ||
1013 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1014 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1015 | localstatedir=$ac_optarg ;; | ||
1016 | |||
1017 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1018 | ac_prev=mandir ;; | ||
1019 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1020 | mandir=$ac_optarg ;; | ||
1021 | |||
1022 | -nfp | --nfp | --nf) | ||
1023 | # Obsolete; use --without-fp. | ||
1024 | with_fp=no ;; | ||
1025 | |||
1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1027 | | --no-cr | --no-c | -n) | ||
1028 | no_create=yes ;; | ||
1029 | |||
1030 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1031 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1032 | no_recursion=yes ;; | ||
1033 | |||
1034 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1035 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1036 | | --oldin | --oldi | --old | --ol | --o) | ||
1037 | ac_prev=oldincludedir ;; | ||
1038 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1039 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1040 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1041 | oldincludedir=$ac_optarg ;; | ||
1042 | |||
1043 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1044 | ac_prev=prefix ;; | ||
1045 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1046 | prefix=$ac_optarg ;; | ||
1047 | |||
1048 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1049 | | --program-pre | --program-pr | --program-p) | ||
1050 | ac_prev=program_prefix ;; | ||
1051 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1052 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1053 | program_prefix=$ac_optarg ;; | ||
1054 | |||
1055 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1056 | | --program-suf | --program-su | --program-s) | ||
1057 | ac_prev=program_suffix ;; | ||
1058 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1059 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1060 | program_suffix=$ac_optarg ;; | ||
1061 | |||
1062 | -program-transform-name | --program-transform-name \ | ||
1063 | | --program-transform-nam | --program-transform-na \ | ||
1064 | | --program-transform-n | --program-transform- \ | ||
1065 | | --program-transform | --program-transfor \ | ||
1066 | | --program-transfo | --program-transf \ | ||
1067 | | --program-trans | --program-tran \ | ||
1068 | | --progr-tra | --program-tr | --program-t) | ||
1069 | ac_prev=program_transform_name ;; | ||
1070 | -program-transform-name=* | --program-transform-name=* \ | ||
1071 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1072 | | --program-transform-n=* | --program-transform-=* \ | ||
1073 | | --program-transform=* | --program-transfor=* \ | ||
1074 | | --program-transfo=* | --program-transf=* \ | ||
1075 | | --program-trans=* | --program-tran=* \ | ||
1076 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1077 | program_transform_name=$ac_optarg ;; | ||
1078 | |||
1079 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1080 | ac_prev=pdfdir ;; | ||
1081 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1082 | pdfdir=$ac_optarg ;; | ||
1083 | |||
1084 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1085 | ac_prev=psdir ;; | ||
1086 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1087 | psdir=$ac_optarg ;; | ||
1088 | |||
1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1090 | | -silent | --silent | --silen | --sile | --sil) | ||
1091 | silent=yes ;; | ||
1092 | |||
1093 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1094 | ac_prev=sbindir ;; | ||
1095 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1096 | | --sbi=* | --sb=*) | ||
1097 | sbindir=$ac_optarg ;; | ||
1098 | |||
1099 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1100 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1101 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1102 | | --sha | --sh) | ||
1103 | ac_prev=sharedstatedir ;; | ||
1104 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1105 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1106 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1107 | | --sha=* | --sh=*) | ||
1108 | sharedstatedir=$ac_optarg ;; | ||
1109 | |||
1110 | -site | --site | --sit) | ||
1111 | ac_prev=site ;; | ||
1112 | -site=* | --site=* | --sit=*) | ||
1113 | site=$ac_optarg ;; | ||
1114 | |||
1115 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1116 | ac_prev=srcdir ;; | ||
1117 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1118 | srcdir=$ac_optarg ;; | ||
1119 | |||
1120 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1121 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1122 | ac_prev=sysconfdir ;; | ||
1123 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1124 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1125 | sysconfdir=$ac_optarg ;; | ||
1126 | |||
1127 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1128 | ac_prev=target_alias ;; | ||
1129 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1130 | target_alias=$ac_optarg ;; | ||
1131 | |||
1132 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1133 | verbose=yes ;; | ||
1134 | |||
1135 | -version | --version | --versio | --versi | --vers | -V) | ||
1136 | ac_init_version=: ;; | ||
1137 | |||
1138 | -with-* | --with-*) | ||
1139 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1140 | # Reject names that are not valid shell variable names. | ||
1141 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1142 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1143 | ac_useropt_orig=$ac_useropt | ||
1144 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1145 | case $ac_user_opts in | ||
1146 | *" | ||
1147 | "with_$ac_useropt" | ||
1148 | "*) ;; | ||
1149 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1150 | ac_unrecognized_sep=', ';; | ||
1151 | esac | ||
1152 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1153 | |||
1154 | -without-* | --without-*) | ||
1155 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1156 | # Reject names that are not valid shell variable names. | ||
1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1158 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1159 | ac_useropt_orig=$ac_useropt | ||
1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1161 | case $ac_user_opts in | ||
1162 | *" | ||
1163 | "with_$ac_useropt" | ||
1164 | "*) ;; | ||
1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1166 | ac_unrecognized_sep=', ';; | ||
1167 | esac | ||
1168 | eval with_$ac_useropt=no ;; | ||
1169 | |||
1170 | --x) | ||
1171 | # Obsolete; use --with-x. | ||
1172 | with_x=yes ;; | ||
1173 | |||
1174 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1175 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1176 | ac_prev=x_includes ;; | ||
1177 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1178 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1179 | x_includes=$ac_optarg ;; | ||
1180 | |||
1181 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1182 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1183 | ac_prev=x_libraries ;; | ||
1184 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1185 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1186 | x_libraries=$ac_optarg ;; | ||
1187 | |||
1188 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1189 | Try \`$0 --help' for more information" | ||
1190 | ;; | ||
1191 | |||
1192 | *=*) | ||
1193 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1194 | # Reject names that are not valid shell variable names. | ||
1195 | case $ac_envvar in #( | ||
1196 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1197 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1198 | esac | ||
1199 | eval $ac_envvar=\$ac_optarg | ||
1200 | export $ac_envvar ;; | ||
1201 | |||
1202 | *) | ||
1203 | # FIXME: should be removed in autoconf 3.0. | ||
1204 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1205 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1206 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1207 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1208 | ;; | ||
1209 | |||
1210 | esac | ||
1211 | done | ||
1212 | |||
1213 | if test -n "$ac_prev"; then | ||
1214 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1215 | as_fn_error $? "missing argument to $ac_option" | ||
1216 | fi | ||
1217 | |||
1218 | if test -n "$ac_unrecognized_opts"; then | ||
1219 | case $enable_option_checking in | ||
1220 | no) ;; | ||
1221 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1222 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1223 | esac | ||
1224 | fi | ||
1225 | |||
1226 | # Check all directory arguments for consistency. | ||
1227 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1228 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1229 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1230 | libdir localedir mandir | ||
1231 | do | ||
1232 | eval ac_val=\$$ac_var | ||
1233 | # Remove trailing slashes. | ||
1234 | case $ac_val in | ||
1235 | */ ) | ||
1236 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1237 | eval $ac_var=\$ac_val;; | ||
1238 | esac | ||
1239 | # Be sure to have absolute directory names. | ||
1240 | case $ac_val in | ||
1241 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1242 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1243 | esac | ||
1244 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1245 | done | ||
1246 | |||
1247 | # There might be people who depend on the old broken behavior: `$host' | ||
1248 | # used to hold the argument of --host etc. | ||
1249 | # FIXME: To remove some day. | ||
1250 | build=$build_alias | ||
1251 | host=$host_alias | ||
1252 | target=$target_alias | ||
1253 | |||
1254 | # FIXME: To remove some day. | ||
1255 | if test "x$host_alias" != x; then | ||
1256 | if test "x$build_alias" = x; then | ||
1257 | cross_compiling=maybe | ||
1258 | elif test "x$build_alias" != "x$host_alias"; then | ||
1259 | cross_compiling=yes | ||
1260 | fi | ||
1261 | fi | ||
1262 | |||
1263 | ac_tool_prefix= | ||
1264 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1265 | |||
1266 | test "$silent" = yes && exec 6>/dev/null | ||
1267 | |||
1268 | |||
1269 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1270 | ac_ls_di=`ls -di .` && | ||
1271 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1272 | as_fn_error $? "working directory cannot be determined" | ||
1273 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1274 | as_fn_error $? "pwd does not report name of working directory" | ||
1275 | |||
1276 | |||
1277 | # Find the source files, if location was not specified. | ||
1278 | if test -z "$srcdir"; then | ||
1279 | ac_srcdir_defaulted=yes | ||
1280 | # Try the directory containing this script, then the parent directory. | ||
1281 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1282 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1283 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1284 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1285 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1286 | $as_echo X"$as_myself" | | ||
1287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1288 | s//\1/ | ||
1289 | q | ||
1290 | } | ||
1291 | /^X\(\/\/\)[^/].*/{ | ||
1292 | s//\1/ | ||
1293 | q | ||
1294 | } | ||
1295 | /^X\(\/\/\)$/{ | ||
1296 | s//\1/ | ||
1297 | q | ||
1298 | } | ||
1299 | /^X\(\/\).*/{ | ||
1300 | s//\1/ | ||
1301 | q | ||
1302 | } | ||
1303 | s/.*/./; q'` | ||
1304 | srcdir=$ac_confdir | ||
1305 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1306 | srcdir=.. | ||
1307 | fi | ||
1308 | else | ||
1309 | ac_srcdir_defaulted=no | ||
1310 | fi | ||
1311 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1312 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1313 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1314 | fi | ||
1315 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1316 | ac_abs_confdir=`( | ||
1317 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1318 | pwd)` | ||
1319 | # When building in place, set srcdir=. | ||
1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1321 | srcdir=. | ||
1322 | fi | ||
1323 | # Remove unnecessary trailing slashes from srcdir. | ||
1324 | # Double slashes in file names in object file debugging info | ||
1325 | # mess up M-x gdb in Emacs. | ||
1326 | case $srcdir in | ||
1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1328 | esac | ||
1329 | for ac_var in $ac_precious_vars; do | ||
1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1331 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1334 | done | ||
1335 | |||
1336 | # | ||
1337 | # Report the --help message. | ||
1338 | # | ||
1339 | if test "$ac_init_help" = "long"; then | ||
1340 | # Omit some internal or obsolete options to make the list less imposing. | ||
1341 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1342 | cat <<_ACEOF | ||
1343 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1344 | |||
1345 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1346 | |||
1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1348 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1349 | |||
1350 | Defaults for the options are specified in brackets. | ||
1351 | |||
1352 | Configuration: | ||
1353 | -h, --help display this help and exit | ||
1354 | --help=short display options specific to this package | ||
1355 | --help=recursive display the short help of all the included packages | ||
1356 | -V, --version display version information and exit | ||
1357 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1358 | --cache-file=FILE cache test results in FILE [disabled] | ||
1359 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1360 | -n, --no-create do not create output files | ||
1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1362 | |||
1363 | Installation directories: | ||
1364 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1365 | [$ac_default_prefix] | ||
1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1367 | [PREFIX] | ||
1368 | |||
1369 | By default, \`make install' will install all the files in | ||
1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1372 | for instance \`--prefix=\$HOME'. | ||
1373 | |||
1374 | For better control, use the options below. | ||
1375 | |||
1376 | Fine tuning of the installation directories: | ||
1377 | --bindir=DIR user executables [EPREFIX/bin] | ||
1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1379 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1383 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1384 | --includedir=DIR C header files [PREFIX/include] | ||
1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1388 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1390 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1392 | --htmldir=DIR html documentation [DOCDIR] | ||
1393 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1394 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1395 | --psdir=DIR ps documentation [DOCDIR] | ||
1396 | _ACEOF | ||
1397 | |||
1398 | cat <<\_ACEOF | ||
1399 | |||
1400 | System types: | ||
1401 | --build=BUILD configure for building on BUILD [guessed] | ||
1402 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1403 | _ACEOF | ||
1404 | fi | ||
1405 | |||
1406 | if test -n "$ac_init_help"; then | ||
1407 | case $ac_init_help in | ||
1408 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1409 | esac | ||
1410 | cat <<\_ACEOF | ||
1411 | |||
1412 | Optional Features: | ||
1413 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1414 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1415 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1416 | --disable-largefile omit support for large files | ||
1417 | --disable-pkcs11 disable PKCS#11 support code [no] | ||
1418 | --disable-strip Disable calling strip(1) on install | ||
1419 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1420 | --disable-lastlog disable use of lastlog even if detected no | ||
1421 | --disable-utmp disable use of utmp even if detected no | ||
1422 | --disable-utmpx disable use of utmpx even if detected no | ||
1423 | --disable-wtmp disable use of wtmp even if detected no | ||
1424 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1425 | --disable-libutil disable use of libutil (login() etc.) no | ||
1426 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1427 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1428 | |||
1429 | Optional Packages: | ||
1430 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1431 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1432 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1433 | --without-stackprotect Don't use compiler's stack protection | ||
1434 | --without-hardening Don't use toolchain hardening flags | ||
1435 | --without-rpath Disable auto-added -R linker paths | ||
1436 | --with-cflags Specify additional flags to pass to compiler | ||
1437 | --with-cflags-after Specify additional flags to pass to compiler after configure | ||
1438 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1439 | --with-ldflags Specify additional flags to pass to linker | ||
1440 | --with-ldflags-after Specify additional flags to pass to linker after configure | ||
1441 | --with-libs Specify additional libraries to link with | ||
1442 | --with-Werror Build main code with -Werror | ||
1443 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1444 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1445 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) | ||
1446 | --with-osfsia Enable Digital Unix SIA | ||
1447 | --with-zlib=PATH Use zlib in PATH | ||
1448 | --without-zlib-version-check Disable zlib version check | ||
1449 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1450 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1451 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1452 | --with-pie Build Position Independent Executables if possible | ||
1453 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1454 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1455 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1456 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1457 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1458 | --with-pam Enable PAM support | ||
1459 | --with-pam-service=name Specify PAM service name | ||
1460 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1461 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) | ||
1462 | --with-selinux Enable SELinux support | ||
1463 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1464 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1465 | --with-xauth=PATH Specify path to xauth program | ||
1466 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1467 | --with-mantype=man|cat|doc Set man page type | ||
1468 | --with-md5-passwords Enable use of MD5 passwords | ||
1469 | --without-shadow Disable shadow password support | ||
1470 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1471 | --with-default-path= Specify default $PATH environment for server | ||
1472 | --with-superuser-path= Specify different path for super-user | ||
1473 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1474 | --with-bsd-auth Enable BSD auth support | ||
1475 | --with-pid-dir=PATH Specify location of sshd.pid file | ||
1476 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1477 | |||
1478 | Some influential environment variables: | ||
1479 | CC C compiler command | ||
1480 | CFLAGS C compiler flags | ||
1481 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1482 | nonstandard directory <lib dir> | ||
1483 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1484 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1485 | you have headers in a nonstandard directory <include dir> | ||
1486 | CPP C preprocessor | ||
1487 | |||
1488 | Use these variables to override the choices made by `configure' or to help | ||
1489 | it to find libraries and programs with nonstandard names/locations. | ||
1490 | |||
1491 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1492 | _ACEOF | ||
1493 | ac_status=$? | ||
1494 | fi | ||
1495 | |||
1496 | if test "$ac_init_help" = "recursive"; then | ||
1497 | # If there are subdirs, report their specific --help. | ||
1498 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1499 | test -d "$ac_dir" || | ||
1500 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1501 | continue | ||
1502 | ac_builddir=. | ||
1503 | |||
1504 | case "$ac_dir" in | ||
1505 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1506 | *) | ||
1507 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1508 | # A ".." for each directory in $ac_dir_suffix. | ||
1509 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1510 | case $ac_top_builddir_sub in | ||
1511 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1512 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1513 | esac ;; | ||
1514 | esac | ||
1515 | ac_abs_top_builddir=$ac_pwd | ||
1516 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1517 | # for backward compatibility: | ||
1518 | ac_top_builddir=$ac_top_build_prefix | ||
1519 | |||
1520 | case $srcdir in | ||
1521 | .) # We are building in place. | ||
1522 | ac_srcdir=. | ||
1523 | ac_top_srcdir=$ac_top_builddir_sub | ||
1524 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1525 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1526 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1527 | ac_top_srcdir=$srcdir | ||
1528 | ac_abs_top_srcdir=$srcdir ;; | ||
1529 | *) # Relative name. | ||
1530 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1531 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1532 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1533 | esac | ||
1534 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1535 | |||
1536 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1537 | # Check for guested configure. | ||
1538 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1539 | echo && | ||
1540 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1541 | elif test -f "$ac_srcdir/configure"; then | ||
1542 | echo && | ||
1543 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1544 | else | ||
1545 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1546 | fi || ac_status=$? | ||
1547 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1548 | done | ||
1549 | fi | ||
1550 | |||
1551 | test -n "$ac_init_help" && exit $ac_status | ||
1552 | if $ac_init_version; then | ||
1553 | cat <<\_ACEOF | ||
1554 | OpenSSH configure Portable | ||
1555 | generated by GNU Autoconf 2.69 | ||
1556 | |||
1557 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
1558 | This configure script is free software; the Free Software Foundation | ||
1559 | gives unlimited permission to copy, distribute and modify it. | ||
1560 | _ACEOF | ||
1561 | exit | ||
1562 | fi | ||
1563 | |||
1564 | ## ------------------------ ## | ||
1565 | ## Autoconf initialization. ## | ||
1566 | ## ------------------------ ## | ||
1567 | |||
1568 | # ac_fn_c_try_compile LINENO | ||
1569 | # -------------------------- | ||
1570 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1571 | ac_fn_c_try_compile () | ||
1572 | { | ||
1573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1574 | rm -f conftest.$ac_objext | ||
1575 | if { { ac_try="$ac_compile" | ||
1576 | case "(($ac_try" in | ||
1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1578 | *) ac_try_echo=$ac_try;; | ||
1579 | esac | ||
1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1581 | $as_echo "$ac_try_echo"; } >&5 | ||
1582 | (eval "$ac_compile") 2>conftest.err | ||
1583 | ac_status=$? | ||
1584 | if test -s conftest.err; then | ||
1585 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1586 | cat conftest.er1 >&5 | ||
1587 | mv -f conftest.er1 conftest.err | ||
1588 | fi | ||
1589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1590 | test $ac_status = 0; } && { | ||
1591 | test -z "$ac_c_werror_flag" || | ||
1592 | test ! -s conftest.err | ||
1593 | } && test -s conftest.$ac_objext; then : | ||
1594 | ac_retval=0 | ||
1595 | else | ||
1596 | $as_echo "$as_me: failed program was:" >&5 | ||
1597 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1598 | |||
1599 | ac_retval=1 | ||
1600 | fi | ||
1601 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1602 | as_fn_set_status $ac_retval | ||
1603 | |||
1604 | } # ac_fn_c_try_compile | ||
1605 | |||
1606 | # ac_fn_c_try_run LINENO | ||
1607 | # ---------------------- | ||
1608 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1609 | # that executables *can* be run. | ||
1610 | ac_fn_c_try_run () | ||
1611 | { | ||
1612 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1613 | if { { ac_try="$ac_link" | ||
1614 | case "(($ac_try" in | ||
1615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1616 | *) ac_try_echo=$ac_try;; | ||
1617 | esac | ||
1618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1619 | $as_echo "$ac_try_echo"; } >&5 | ||
1620 | (eval "$ac_link") 2>&5 | ||
1621 | ac_status=$? | ||
1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1623 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1624 | { { case "(($ac_try" in | ||
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1626 | *) ac_try_echo=$ac_try;; | ||
1627 | esac | ||
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1629 | $as_echo "$ac_try_echo"; } >&5 | ||
1630 | (eval "$ac_try") 2>&5 | ||
1631 | ac_status=$? | ||
1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1633 | test $ac_status = 0; }; }; then : | ||
1634 | ac_retval=0 | ||
1635 | else | ||
1636 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1637 | $as_echo "$as_me: failed program was:" >&5 | ||
1638 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1639 | |||
1640 | ac_retval=$ac_status | ||
1641 | fi | ||
1642 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1644 | as_fn_set_status $ac_retval | ||
1645 | |||
1646 | } # ac_fn_c_try_run | ||
1647 | |||
1648 | # ac_fn_c_try_cpp LINENO | ||
1649 | # ---------------------- | ||
1650 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1651 | ac_fn_c_try_cpp () | ||
1652 | { | ||
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1654 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1655 | case "(($ac_try" in | ||
1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1657 | *) ac_try_echo=$ac_try;; | ||
1658 | esac | ||
1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1660 | $as_echo "$ac_try_echo"; } >&5 | ||
1661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1662 | ac_status=$? | ||
1663 | if test -s conftest.err; then | ||
1664 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1665 | cat conftest.er1 >&5 | ||
1666 | mv -f conftest.er1 conftest.err | ||
1667 | fi | ||
1668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1669 | test $ac_status = 0; } > conftest.i && { | ||
1670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1671 | test ! -s conftest.err | ||
1672 | }; then : | ||
1673 | ac_retval=0 | ||
1674 | else | ||
1675 | $as_echo "$as_me: failed program was:" >&5 | ||
1676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1677 | |||
1678 | ac_retval=1 | ||
1679 | fi | ||
1680 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1681 | as_fn_set_status $ac_retval | ||
1682 | |||
1683 | } # ac_fn_c_try_cpp | ||
1684 | |||
1685 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1686 | # ------------------------------------------------------- | ||
1687 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1688 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1689 | ac_fn_c_check_header_compile () | ||
1690 | { | ||
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1693 | $as_echo_n "checking for $2... " >&6; } | ||
1694 | if eval \${$3+:} false; then : | ||
1695 | $as_echo_n "(cached) " >&6 | ||
1696 | else | ||
1697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1698 | /* end confdefs.h. */ | ||
1699 | $4 | ||
1700 | #include <$2> | ||
1701 | _ACEOF | ||
1702 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1703 | eval "$3=yes" | ||
1704 | else | ||
1705 | eval "$3=no" | ||
1706 | fi | ||
1707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1708 | fi | ||
1709 | eval ac_res=\$$3 | ||
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1711 | $as_echo "$ac_res" >&6; } | ||
1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1713 | |||
1714 | } # ac_fn_c_check_header_compile | ||
1715 | |||
1716 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1717 | # --------------------------------------------- | ||
1718 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1719 | # accordingly. | ||
1720 | ac_fn_c_check_decl () | ||
1721 | { | ||
1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1723 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1724 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1726 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1727 | if eval \${$3+:} false; then : | ||
1728 | $as_echo_n "(cached) " >&6 | ||
1729 | else | ||
1730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1731 | /* end confdefs.h. */ | ||
1732 | $4 | ||
1733 | int | ||
1734 | main () | ||
1735 | { | ||
1736 | #ifndef $as_decl_name | ||
1737 | #ifdef __cplusplus | ||
1738 | (void) $as_decl_use; | ||
1739 | #else | ||
1740 | (void) $as_decl_name; | ||
1741 | #endif | ||
1742 | #endif | ||
1743 | |||
1744 | ; | ||
1745 | return 0; | ||
1746 | } | ||
1747 | _ACEOF | ||
1748 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1749 | eval "$3=yes" | ||
1750 | else | ||
1751 | eval "$3=no" | ||
1752 | fi | ||
1753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1754 | fi | ||
1755 | eval ac_res=\$$3 | ||
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1757 | $as_echo "$ac_res" >&6; } | ||
1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1759 | |||
1760 | } # ac_fn_c_check_decl | ||
1761 | |||
1762 | # ac_fn_c_try_link LINENO | ||
1763 | # ----------------------- | ||
1764 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1765 | ac_fn_c_try_link () | ||
1766 | { | ||
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1768 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1769 | if { { ac_try="$ac_link" | ||
1770 | case "(($ac_try" in | ||
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1772 | *) ac_try_echo=$ac_try;; | ||
1773 | esac | ||
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1775 | $as_echo "$ac_try_echo"; } >&5 | ||
1776 | (eval "$ac_link") 2>conftest.err | ||
1777 | ac_status=$? | ||
1778 | if test -s conftest.err; then | ||
1779 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1780 | cat conftest.er1 >&5 | ||
1781 | mv -f conftest.er1 conftest.err | ||
1782 | fi | ||
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1784 | test $ac_status = 0; } && { | ||
1785 | test -z "$ac_c_werror_flag" || | ||
1786 | test ! -s conftest.err | ||
1787 | } && test -s conftest$ac_exeext && { | ||
1788 | test "$cross_compiling" = yes || | ||
1789 | test -x conftest$ac_exeext | ||
1790 | }; then : | ||
1791 | ac_retval=0 | ||
1792 | else | ||
1793 | $as_echo "$as_me: failed program was:" >&5 | ||
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1795 | |||
1796 | ac_retval=1 | ||
1797 | fi | ||
1798 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1799 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1800 | # interfere with the next link command; also delete a directory that is | ||
1801 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1802 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1804 | as_fn_set_status $ac_retval | ||
1805 | |||
1806 | } # ac_fn_c_try_link | ||
1807 | |||
1808 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1809 | # ------------------------------------------------------- | ||
1810 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1811 | # the include files in INCLUDES and setting the cache variable VAR | ||
1812 | # accordingly. | ||
1813 | ac_fn_c_check_header_mongrel () | ||
1814 | { | ||
1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1816 | if eval \${$3+:} false; then : | ||
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1818 | $as_echo_n "checking for $2... " >&6; } | ||
1819 | if eval \${$3+:} false; then : | ||
1820 | $as_echo_n "(cached) " >&6 | ||
1821 | fi | ||
1822 | eval ac_res=\$$3 | ||
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1824 | $as_echo "$ac_res" >&6; } | ||
1825 | else | ||
1826 | # Is the header compilable? | ||
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1828 | $as_echo_n "checking $2 usability... " >&6; } | ||
1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1830 | /* end confdefs.h. */ | ||
1831 | $4 | ||
1832 | #include <$2> | ||
1833 | _ACEOF | ||
1834 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1835 | ac_header_compiler=yes | ||
1836 | else | ||
1837 | ac_header_compiler=no | ||
1838 | fi | ||
1839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1841 | $as_echo "$ac_header_compiler" >&6; } | ||
1842 | |||
1843 | # Is the header present? | ||
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1845 | $as_echo_n "checking $2 presence... " >&6; } | ||
1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1847 | /* end confdefs.h. */ | ||
1848 | #include <$2> | ||
1849 | _ACEOF | ||
1850 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1851 | ac_header_preproc=yes | ||
1852 | else | ||
1853 | ac_header_preproc=no | ||
1854 | fi | ||
1855 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1857 | $as_echo "$ac_header_preproc" >&6; } | ||
1858 | |||
1859 | # So? What about this header? | ||
1860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1861 | yes:no: ) | ||
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1863 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1866 | ;; | ||
1867 | no:yes:* ) | ||
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1869 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1871 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1873 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1875 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1877 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1878 | ( $as_echo "## ------------------------------------------- ## | ||
1879 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1880 | ## ------------------------------------------- ##" | ||
1881 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1882 | ;; | ||
1883 | esac | ||
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1885 | $as_echo_n "checking for $2... " >&6; } | ||
1886 | if eval \${$3+:} false; then : | ||
1887 | $as_echo_n "(cached) " >&6 | ||
1888 | else | ||
1889 | eval "$3=\$ac_header_compiler" | ||
1890 | fi | ||
1891 | eval ac_res=\$$3 | ||
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1893 | $as_echo "$ac_res" >&6; } | ||
1894 | fi | ||
1895 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1896 | |||
1897 | } # ac_fn_c_check_header_mongrel | ||
1898 | |||
1899 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1900 | # ---------------------------------- | ||
1901 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1902 | ac_fn_c_check_func () | ||
1903 | { | ||
1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1906 | $as_echo_n "checking for $2... " >&6; } | ||
1907 | if eval \${$3+:} false; then : | ||
1908 | $as_echo_n "(cached) " >&6 | ||
1909 | else | ||
1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1911 | /* end confdefs.h. */ | ||
1912 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1914 | #define $2 innocuous_$2 | ||
1915 | |||
1916 | /* System header to define __stub macros and hopefully few prototypes, | ||
1917 | which can conflict with char $2 (); below. | ||
1918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1919 | <limits.h> exists even on freestanding compilers. */ | ||
1920 | |||
1921 | #ifdef __STDC__ | ||
1922 | # include <limits.h> | ||
1923 | #else | ||
1924 | # include <assert.h> | ||
1925 | #endif | ||
1926 | |||
1927 | #undef $2 | ||
1928 | |||
1929 | /* Override any GCC internal prototype to avoid an error. | ||
1930 | Use char because int might match the return type of a GCC | ||
1931 | builtin and then its argument prototype would still apply. */ | ||
1932 | #ifdef __cplusplus | ||
1933 | extern "C" | ||
1934 | #endif | ||
1935 | char $2 (); | ||
1936 | /* The GNU C library defines this for functions which it implements | ||
1937 | to always fail with ENOSYS. Some functions are actually named | ||
1938 | something starting with __ and the normal name is an alias. */ | ||
1939 | #if defined __stub_$2 || defined __stub___$2 | ||
1940 | choke me | ||
1941 | #endif | ||
1942 | |||
1943 | int | ||
1944 | main () | ||
1945 | { | ||
1946 | return $2 (); | ||
1947 | ; | ||
1948 | return 0; | ||
1949 | } | ||
1950 | _ACEOF | ||
1951 | if ac_fn_c_try_link "$LINENO"; then : | ||
1952 | eval "$3=yes" | ||
1953 | else | ||
1954 | eval "$3=no" | ||
1955 | fi | ||
1956 | rm -f core conftest.err conftest.$ac_objext \ | ||
1957 | conftest$ac_exeext conftest.$ac_ext | ||
1958 | fi | ||
1959 | eval ac_res=\$$3 | ||
1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1961 | $as_echo "$ac_res" >&6; } | ||
1962 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1963 | |||
1964 | } # ac_fn_c_check_func | ||
1965 | |||
1966 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1967 | # ------------------------------------------- | ||
1968 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1969 | # variable VAR accordingly. | ||
1970 | ac_fn_c_check_type () | ||
1971 | { | ||
1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1974 | $as_echo_n "checking for $2... " >&6; } | ||
1975 | if eval \${$3+:} false; then : | ||
1976 | $as_echo_n "(cached) " >&6 | ||
1977 | else | ||
1978 | eval "$3=no" | ||
1979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1980 | /* end confdefs.h. */ | ||
1981 | $4 | ||
1982 | int | ||
1983 | main () | ||
1984 | { | ||
1985 | if (sizeof ($2)) | ||
1986 | return 0; | ||
1987 | ; | ||
1988 | return 0; | ||
1989 | } | ||
1990 | _ACEOF | ||
1991 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1993 | /* end confdefs.h. */ | ||
1994 | $4 | ||
1995 | int | ||
1996 | main () | ||
1997 | { | ||
1998 | if (sizeof (($2))) | ||
1999 | return 0; | ||
2000 | ; | ||
2001 | return 0; | ||
2002 | } | ||
2003 | _ACEOF | ||
2004 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2005 | |||
2006 | else | ||
2007 | eval "$3=yes" | ||
2008 | fi | ||
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2010 | fi | ||
2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2012 | fi | ||
2013 | eval ac_res=\$$3 | ||
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2015 | $as_echo "$ac_res" >&6; } | ||
2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2017 | |||
2018 | } # ac_fn_c_check_type | ||
2019 | |||
2020 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2021 | # -------------------------------------------- | ||
2022 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2023 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2024 | # computed | ||
2025 | ac_fn_c_compute_int () | ||
2026 | { | ||
2027 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2028 | if test "$cross_compiling" = yes; then | ||
2029 | # Depending upon the size, compute the lo and hi bounds. | ||
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2031 | /* end confdefs.h. */ | ||
2032 | $4 | ||
2033 | int | ||
2034 | main () | ||
2035 | { | ||
2036 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2037 | test_array [0] = 0; | ||
2038 | return test_array [0]; | ||
2039 | |||
2040 | ; | ||
2041 | return 0; | ||
2042 | } | ||
2043 | _ACEOF | ||
2044 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2045 | ac_lo=0 ac_mid=0 | ||
2046 | while :; do | ||
2047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2048 | /* end confdefs.h. */ | ||
2049 | $4 | ||
2050 | int | ||
2051 | main () | ||
2052 | { | ||
2053 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2054 | test_array [0] = 0; | ||
2055 | return test_array [0]; | ||
2056 | |||
2057 | ; | ||
2058 | return 0; | ||
2059 | } | ||
2060 | _ACEOF | ||
2061 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2062 | ac_hi=$ac_mid; break | ||
2063 | else | ||
2064 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2065 | if test $ac_lo -le $ac_mid; then | ||
2066 | ac_lo= ac_hi= | ||
2067 | break | ||
2068 | fi | ||
2069 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2070 | fi | ||
2071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2072 | done | ||
2073 | else | ||
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2075 | /* end confdefs.h. */ | ||
2076 | $4 | ||
2077 | int | ||
2078 | main () | ||
2079 | { | ||
2080 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2081 | test_array [0] = 0; | ||
2082 | return test_array [0]; | ||
2083 | |||
2084 | ; | ||
2085 | return 0; | ||
2086 | } | ||
2087 | _ACEOF | ||
2088 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2089 | ac_hi=-1 ac_mid=-1 | ||
2090 | while :; do | ||
2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2092 | /* end confdefs.h. */ | ||
2093 | $4 | ||
2094 | int | ||
2095 | main () | ||
2096 | { | ||
2097 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2098 | test_array [0] = 0; | ||
2099 | return test_array [0]; | ||
2100 | |||
2101 | ; | ||
2102 | return 0; | ||
2103 | } | ||
2104 | _ACEOF | ||
2105 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2106 | ac_lo=$ac_mid; break | ||
2107 | else | ||
2108 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2109 | if test $ac_mid -le $ac_hi; then | ||
2110 | ac_lo= ac_hi= | ||
2111 | break | ||
2112 | fi | ||
2113 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2114 | fi | ||
2115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2116 | done | ||
2117 | else | ||
2118 | ac_lo= ac_hi= | ||
2119 | fi | ||
2120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2121 | fi | ||
2122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2123 | # Binary search between lo and hi bounds. | ||
2124 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2125 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2127 | /* end confdefs.h. */ | ||
2128 | $4 | ||
2129 | int | ||
2130 | main () | ||
2131 | { | ||
2132 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2133 | test_array [0] = 0; | ||
2134 | return test_array [0]; | ||
2135 | |||
2136 | ; | ||
2137 | return 0; | ||
2138 | } | ||
2139 | _ACEOF | ||
2140 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2141 | ac_hi=$ac_mid | ||
2142 | else | ||
2143 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2144 | fi | ||
2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2146 | done | ||
2147 | case $ac_lo in #(( | ||
2148 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2149 | '') ac_retval=1 ;; | ||
2150 | esac | ||
2151 | else | ||
2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2153 | /* end confdefs.h. */ | ||
2154 | $4 | ||
2155 | static long int longval () { return $2; } | ||
2156 | static unsigned long int ulongval () { return $2; } | ||
2157 | #include <stdio.h> | ||
2158 | #include <stdlib.h> | ||
2159 | int | ||
2160 | main () | ||
2161 | { | ||
2162 | |||
2163 | FILE *f = fopen ("conftest.val", "w"); | ||
2164 | if (! f) | ||
2165 | return 1; | ||
2166 | if (($2) < 0) | ||
2167 | { | ||
2168 | long int i = longval (); | ||
2169 | if (i != ($2)) | ||
2170 | return 1; | ||
2171 | fprintf (f, "%ld", i); | ||
2172 | } | ||
2173 | else | ||
2174 | { | ||
2175 | unsigned long int i = ulongval (); | ||
2176 | if (i != ($2)) | ||
2177 | return 1; | ||
2178 | fprintf (f, "%lu", i); | ||
2179 | } | ||
2180 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2181 | on some platforms. */ | ||
2182 | return ferror (f) || fclose (f) != 0; | ||
2183 | |||
2184 | ; | ||
2185 | return 0; | ||
2186 | } | ||
2187 | _ACEOF | ||
2188 | if ac_fn_c_try_run "$LINENO"; then : | ||
2189 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2190 | else | ||
2191 | ac_retval=1 | ||
2192 | fi | ||
2193 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2194 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2195 | rm -f conftest.val | ||
2196 | |||
2197 | fi | ||
2198 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2199 | as_fn_set_status $ac_retval | ||
2200 | |||
2201 | } # ac_fn_c_compute_int | ||
2202 | |||
2203 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2204 | # ---------------------------------------------------- | ||
2205 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2206 | # INCLUDES, setting cache variable VAR accordingly. | ||
2207 | ac_fn_c_check_member () | ||
2208 | { | ||
2209 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2211 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2212 | if eval \${$4+:} false; then : | ||
2213 | $as_echo_n "(cached) " >&6 | ||
2214 | else | ||
2215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2216 | /* end confdefs.h. */ | ||
2217 | $5 | ||
2218 | int | ||
2219 | main () | ||
2220 | { | ||
2221 | static $2 ac_aggr; | ||
2222 | if (ac_aggr.$3) | ||
2223 | return 0; | ||
2224 | ; | ||
2225 | return 0; | ||
2226 | } | ||
2227 | _ACEOF | ||
2228 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2229 | eval "$4=yes" | ||
2230 | else | ||
2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2232 | /* end confdefs.h. */ | ||
2233 | $5 | ||
2234 | int | ||
2235 | main () | ||
2236 | { | ||
2237 | static $2 ac_aggr; | ||
2238 | if (sizeof ac_aggr.$3) | ||
2239 | return 0; | ||
2240 | ; | ||
2241 | return 0; | ||
2242 | } | ||
2243 | _ACEOF | ||
2244 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2245 | eval "$4=yes" | ||
2246 | else | ||
2247 | eval "$4=no" | ||
2248 | fi | ||
2249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2250 | fi | ||
2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2252 | fi | ||
2253 | eval ac_res=\$$4 | ||
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2255 | $as_echo "$ac_res" >&6; } | ||
2256 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2257 | |||
2258 | } # ac_fn_c_check_member | ||
2259 | cat >config.log <<_ACEOF | ||
2260 | This file contains any messages produced by compilers while | ||
2261 | running configure, to aid debugging if configure makes a mistake. | ||
2262 | |||
2263 | It was created by OpenSSH $as_me Portable, which was | ||
2264 | generated by GNU Autoconf 2.69. Invocation command line was | ||
2265 | |||
2266 | $ $0 $@ | ||
2267 | |||
2268 | _ACEOF | ||
2269 | exec 5>>config.log | ||
2270 | { | ||
2271 | cat <<_ASUNAME | ||
2272 | ## --------- ## | ||
2273 | ## Platform. ## | ||
2274 | ## --------- ## | ||
2275 | |||
2276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2281 | |||
2282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2284 | |||
2285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2288 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2292 | |||
2293 | _ASUNAME | ||
2294 | |||
2295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2296 | for as_dir in $PATH | ||
2297 | do | ||
2298 | IFS=$as_save_IFS | ||
2299 | test -z "$as_dir" && as_dir=. | ||
2300 | $as_echo "PATH: $as_dir" | ||
2301 | done | ||
2302 | IFS=$as_save_IFS | ||
2303 | |||
2304 | } >&5 | ||
2305 | |||
2306 | cat >&5 <<_ACEOF | ||
2307 | |||
2308 | |||
2309 | ## ----------- ## | ||
2310 | ## Core tests. ## | ||
2311 | ## ----------- ## | ||
2312 | |||
2313 | _ACEOF | ||
2314 | |||
2315 | |||
2316 | # Keep a trace of the command line. | ||
2317 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2318 | # Strip out --silent because we don't want to record it for future runs. | ||
2319 | # Also quote any args containing shell meta-characters. | ||
2320 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2321 | ac_configure_args= | ||
2322 | ac_configure_args0= | ||
2323 | ac_configure_args1= | ||
2324 | ac_must_keep_next=false | ||
2325 | for ac_pass in 1 2 | ||
2326 | do | ||
2327 | for ac_arg | ||
2328 | do | ||
2329 | case $ac_arg in | ||
2330 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2332 | | -silent | --silent | --silen | --sile | --sil) | ||
2333 | continue ;; | ||
2334 | *\'*) | ||
2335 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2336 | esac | ||
2337 | case $ac_pass in | ||
2338 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2339 | 2) | ||
2340 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2341 | if test $ac_must_keep_next = true; then | ||
2342 | ac_must_keep_next=false # Got value, back to normal. | ||
2343 | else | ||
2344 | case $ac_arg in | ||
2345 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2348 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2349 | case "$ac_configure_args0 " in | ||
2350 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2351 | esac | ||
2352 | ;; | ||
2353 | -* ) ac_must_keep_next=true ;; | ||
2354 | esac | ||
2355 | fi | ||
2356 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2357 | ;; | ||
2358 | esac | ||
2359 | done | ||
2360 | done | ||
2361 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2362 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2363 | |||
2364 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2365 | # config.log. We remove comments because anyway the quotes in there | ||
2366 | # would cause problems or look ugly. | ||
2367 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2368 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2369 | trap 'exit_status=$? | ||
2370 | # Save into config.log some information that might help in debugging. | ||
2371 | { | ||
2372 | echo | ||
2373 | |||
2374 | $as_echo "## ---------------- ## | ||
2375 | ## Cache variables. ## | ||
2376 | ## ---------------- ##" | ||
2377 | echo | ||
2378 | # The following way of writing the cache mishandles newlines in values, | ||
2379 | ( | ||
2380 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2381 | eval ac_val=\$$ac_var | ||
2382 | case $ac_val in #( | ||
2383 | *${as_nl}*) | ||
2384 | case $ac_var in #( | ||
2385 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2386 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2387 | esac | ||
2388 | case $ac_var in #( | ||
2389 | _ | IFS | as_nl) ;; #( | ||
2390 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2391 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2392 | esac ;; | ||
2393 | esac | ||
2394 | done | ||
2395 | (set) 2>&1 | | ||
2396 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2397 | *${as_nl}ac_space=\ *) | ||
2398 | sed -n \ | ||
2399 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2400 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2401 | ;; #( | ||
2402 | *) | ||
2403 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2404 | ;; | ||
2405 | esac | | ||
2406 | sort | ||
2407 | ) | ||
2408 | echo | ||
2409 | |||
2410 | $as_echo "## ----------------- ## | ||
2411 | ## Output variables. ## | ||
2412 | ## ----------------- ##" | ||
2413 | echo | ||
2414 | for ac_var in $ac_subst_vars | ||
2415 | do | ||
2416 | eval ac_val=\$$ac_var | ||
2417 | case $ac_val in | ||
2418 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2419 | esac | ||
2420 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2421 | done | sort | ||
2422 | echo | ||
2423 | |||
2424 | if test -n "$ac_subst_files"; then | ||
2425 | $as_echo "## ------------------- ## | ||
2426 | ## File substitutions. ## | ||
2427 | ## ------------------- ##" | ||
2428 | echo | ||
2429 | for ac_var in $ac_subst_files | ||
2430 | do | ||
2431 | eval ac_val=\$$ac_var | ||
2432 | case $ac_val in | ||
2433 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2434 | esac | ||
2435 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2436 | done | sort | ||
2437 | echo | ||
2438 | fi | ||
2439 | |||
2440 | if test -s confdefs.h; then | ||
2441 | $as_echo "## ----------- ## | ||
2442 | ## confdefs.h. ## | ||
2443 | ## ----------- ##" | ||
2444 | echo | ||
2445 | cat confdefs.h | ||
2446 | echo | ||
2447 | fi | ||
2448 | test "$ac_signal" != 0 && | ||
2449 | $as_echo "$as_me: caught signal $ac_signal" | ||
2450 | $as_echo "$as_me: exit $exit_status" | ||
2451 | } >&5 | ||
2452 | rm -f core *.core core.conftest.* && | ||
2453 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2454 | exit $exit_status | ||
2455 | ' 0 | ||
2456 | for ac_signal in 1 2 13 15; do | ||
2457 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2458 | done | ||
2459 | ac_signal=0 | ||
2460 | |||
2461 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2462 | rm -f -r conftest* confdefs.h | ||
2463 | |||
2464 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2465 | |||
2466 | # Predefined preprocessor variables. | ||
2467 | |||
2468 | cat >>confdefs.h <<_ACEOF | ||
2469 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2470 | _ACEOF | ||
2471 | |||
2472 | cat >>confdefs.h <<_ACEOF | ||
2473 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2474 | _ACEOF | ||
2475 | |||
2476 | cat >>confdefs.h <<_ACEOF | ||
2477 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2478 | _ACEOF | ||
2479 | |||
2480 | cat >>confdefs.h <<_ACEOF | ||
2481 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2482 | _ACEOF | ||
2483 | |||
2484 | cat >>confdefs.h <<_ACEOF | ||
2485 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2486 | _ACEOF | ||
2487 | |||
2488 | cat >>confdefs.h <<_ACEOF | ||
2489 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2490 | _ACEOF | ||
2491 | |||
2492 | |||
2493 | # Let the site file select an alternate cache file if it wants to. | ||
2494 | # Prefer an explicitly selected file to automatically selected ones. | ||
2495 | ac_site_file1=NONE | ||
2496 | ac_site_file2=NONE | ||
2497 | if test -n "$CONFIG_SITE"; then | ||
2498 | # We do not want a PATH search for config.site. | ||
2499 | case $CONFIG_SITE in #(( | ||
2500 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2501 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2502 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2503 | esac | ||
2504 | elif test "x$prefix" != xNONE; then | ||
2505 | ac_site_file1=$prefix/share/config.site | ||
2506 | ac_site_file2=$prefix/etc/config.site | ||
2507 | else | ||
2508 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2509 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2510 | fi | ||
2511 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2512 | do | ||
2513 | test "x$ac_site_file" = xNONE && continue | ||
2514 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2516 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2517 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2518 | . "$ac_site_file" \ | ||
2519 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2521 | as_fn_error $? "failed to load site script $ac_site_file | ||
2522 | See \`config.log' for more details" "$LINENO" 5; } | ||
2523 | fi | ||
2524 | done | ||
2525 | |||
2526 | if test -r "$cache_file"; then | ||
2527 | # Some versions of bash will fail to source /dev/null (special files | ||
2528 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2529 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2531 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2532 | case $cache_file in | ||
2533 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2534 | *) . "./$cache_file";; | ||
2535 | esac | ||
2536 | fi | ||
2537 | else | ||
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2539 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2540 | >$cache_file | ||
2541 | fi | ||
2542 | |||
2543 | # Check that the precious variables saved in the cache have kept the same | ||
2544 | # value. | ||
2545 | ac_cache_corrupted=false | ||
2546 | for ac_var in $ac_precious_vars; do | ||
2547 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2548 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2549 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2550 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2551 | case $ac_old_set,$ac_new_set in | ||
2552 | set,) | ||
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2554 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2555 | ac_cache_corrupted=: ;; | ||
2556 | ,set) | ||
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2558 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2559 | ac_cache_corrupted=: ;; | ||
2560 | ,);; | ||
2561 | *) | ||
2562 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2563 | # differences in whitespace do not lead to failure. | ||
2564 | ac_old_val_w=`echo x $ac_old_val` | ||
2565 | ac_new_val_w=`echo x $ac_new_val` | ||
2566 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2568 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2569 | ac_cache_corrupted=: | ||
2570 | else | ||
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2572 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2573 | eval $ac_var=\$ac_old_val | ||
2574 | fi | ||
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2576 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2578 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2579 | fi;; | ||
2580 | esac | ||
2581 | # Pass precious variables to config.status. | ||
2582 | if test "$ac_new_set" = set; then | ||
2583 | case $ac_new_val in | ||
2584 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2585 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2586 | esac | ||
2587 | case " $ac_configure_args " in | ||
2588 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2589 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2590 | esac | ||
2591 | fi | ||
2592 | done | ||
2593 | if $ac_cache_corrupted; then | ||
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2597 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2598 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2599 | fi | ||
2600 | ## -------------------- ## | ||
2601 | ## Main body of script. ## | ||
2602 | ## -------------------- ## | ||
2603 | |||
2604 | ac_ext=c | ||
2605 | ac_cpp='$CPP $CPPFLAGS' | ||
2606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2609 | |||
2610 | |||
2611 | |||
2612 | |||
2613 | ac_ext=c | ||
2614 | ac_cpp='$CPP $CPPFLAGS' | ||
2615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2618 | |||
2619 | |||
2620 | ac_config_headers="$ac_config_headers config.h" | ||
2621 | |||
2622 | ac_ext=c | ||
2623 | ac_cpp='$CPP $CPPFLAGS' | ||
2624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2627 | if test -n "$ac_tool_prefix"; then | ||
2628 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2629 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2631 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2632 | if ${ac_cv_prog_CC+:} false; then : | ||
2633 | $as_echo_n "(cached) " >&6 | ||
2634 | else | ||
2635 | if test -n "$CC"; then | ||
2636 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2637 | else | ||
2638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2639 | for as_dir in $PATH | ||
2640 | do | ||
2641 | IFS=$as_save_IFS | ||
2642 | test -z "$as_dir" && as_dir=. | ||
2643 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2645 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2647 | break 2 | ||
2648 | fi | ||
2649 | done | ||
2650 | done | ||
2651 | IFS=$as_save_IFS | ||
2652 | |||
2653 | fi | ||
2654 | fi | ||
2655 | CC=$ac_cv_prog_CC | ||
2656 | if test -n "$CC"; then | ||
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2658 | $as_echo "$CC" >&6; } | ||
2659 | else | ||
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2661 | $as_echo "no" >&6; } | ||
2662 | fi | ||
2663 | |||
2664 | |||
2665 | fi | ||
2666 | if test -z "$ac_cv_prog_CC"; then | ||
2667 | ac_ct_CC=$CC | ||
2668 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2669 | set dummy gcc; ac_word=$2 | ||
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2671 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2672 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2673 | $as_echo_n "(cached) " >&6 | ||
2674 | else | ||
2675 | if test -n "$ac_ct_CC"; then | ||
2676 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2677 | else | ||
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2679 | for as_dir in $PATH | ||
2680 | do | ||
2681 | IFS=$as_save_IFS | ||
2682 | test -z "$as_dir" && as_dir=. | ||
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2684 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2685 | ac_cv_prog_ac_ct_CC="gcc" | ||
2686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2687 | break 2 | ||
2688 | fi | ||
2689 | done | ||
2690 | done | ||
2691 | IFS=$as_save_IFS | ||
2692 | |||
2693 | fi | ||
2694 | fi | ||
2695 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2696 | if test -n "$ac_ct_CC"; then | ||
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2698 | $as_echo "$ac_ct_CC" >&6; } | ||
2699 | else | ||
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2701 | $as_echo "no" >&6; } | ||
2702 | fi | ||
2703 | |||
2704 | if test "x$ac_ct_CC" = x; then | ||
2705 | CC="" | ||
2706 | else | ||
2707 | case $cross_compiling:$ac_tool_warned in | ||
2708 | yes:) | ||
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2711 | ac_tool_warned=yes ;; | ||
2712 | esac | ||
2713 | CC=$ac_ct_CC | ||
2714 | fi | ||
2715 | else | ||
2716 | CC="$ac_cv_prog_CC" | ||
2717 | fi | ||
2718 | |||
2719 | if test -z "$CC"; then | ||
2720 | if test -n "$ac_tool_prefix"; then | ||
2721 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2722 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2724 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2725 | if ${ac_cv_prog_CC+:} false; then : | ||
2726 | $as_echo_n "(cached) " >&6 | ||
2727 | else | ||
2728 | if test -n "$CC"; then | ||
2729 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2730 | else | ||
2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2732 | for as_dir in $PATH | ||
2733 | do | ||
2734 | IFS=$as_save_IFS | ||
2735 | test -z "$as_dir" && as_dir=. | ||
2736 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2738 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2740 | break 2 | ||
2741 | fi | ||
2742 | done | ||
2743 | done | ||
2744 | IFS=$as_save_IFS | ||
2745 | |||
2746 | fi | ||
2747 | fi | ||
2748 | CC=$ac_cv_prog_CC | ||
2749 | if test -n "$CC"; then | ||
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2751 | $as_echo "$CC" >&6; } | ||
2752 | else | ||
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2754 | $as_echo "no" >&6; } | ||
2755 | fi | ||
2756 | |||
2757 | |||
2758 | fi | ||
2759 | fi | ||
2760 | if test -z "$CC"; then | ||
2761 | # Extract the first word of "cc", so it can be a program name with args. | ||
2762 | set dummy cc; ac_word=$2 | ||
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2764 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2765 | if ${ac_cv_prog_CC+:} false; then : | ||
2766 | $as_echo_n "(cached) " >&6 | ||
2767 | else | ||
2768 | if test -n "$CC"; then | ||
2769 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2770 | else | ||
2771 | ac_prog_rejected=no | ||
2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2773 | for as_dir in $PATH | ||
2774 | do | ||
2775 | IFS=$as_save_IFS | ||
2776 | test -z "$as_dir" && as_dir=. | ||
2777 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2779 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2780 | ac_prog_rejected=yes | ||
2781 | continue | ||
2782 | fi | ||
2783 | ac_cv_prog_CC="cc" | ||
2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2785 | break 2 | ||
2786 | fi | ||
2787 | done | ||
2788 | done | ||
2789 | IFS=$as_save_IFS | ||
2790 | |||
2791 | if test $ac_prog_rejected = yes; then | ||
2792 | # We found a bogon in the path, so make sure we never use it. | ||
2793 | set dummy $ac_cv_prog_CC | ||
2794 | shift | ||
2795 | if test $# != 0; then | ||
2796 | # We chose a different compiler from the bogus one. | ||
2797 | # However, it has the same basename, so the bogon will be chosen | ||
2798 | # first if we set CC to just the basename; use the full file name. | ||
2799 | shift | ||
2800 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2801 | fi | ||
2802 | fi | ||
2803 | fi | ||
2804 | fi | ||
2805 | CC=$ac_cv_prog_CC | ||
2806 | if test -n "$CC"; then | ||
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2808 | $as_echo "$CC" >&6; } | ||
2809 | else | ||
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2811 | $as_echo "no" >&6; } | ||
2812 | fi | ||
2813 | |||
2814 | |||
2815 | fi | ||
2816 | if test -z "$CC"; then | ||
2817 | if test -n "$ac_tool_prefix"; then | ||
2818 | for ac_prog in cl.exe | ||
2819 | do | ||
2820 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2821 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2823 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2824 | if ${ac_cv_prog_CC+:} false; then : | ||
2825 | $as_echo_n "(cached) " >&6 | ||
2826 | else | ||
2827 | if test -n "$CC"; then | ||
2828 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2829 | else | ||
2830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2831 | for as_dir in $PATH | ||
2832 | do | ||
2833 | IFS=$as_save_IFS | ||
2834 | test -z "$as_dir" && as_dir=. | ||
2835 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2837 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2839 | break 2 | ||
2840 | fi | ||
2841 | done | ||
2842 | done | ||
2843 | IFS=$as_save_IFS | ||
2844 | |||
2845 | fi | ||
2846 | fi | ||
2847 | CC=$ac_cv_prog_CC | ||
2848 | if test -n "$CC"; then | ||
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2850 | $as_echo "$CC" >&6; } | ||
2851 | else | ||
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2853 | $as_echo "no" >&6; } | ||
2854 | fi | ||
2855 | |||
2856 | |||
2857 | test -n "$CC" && break | ||
2858 | done | ||
2859 | fi | ||
2860 | if test -z "$CC"; then | ||
2861 | ac_ct_CC=$CC | ||
2862 | for ac_prog in cl.exe | ||
2863 | do | ||
2864 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2865 | set dummy $ac_prog; ac_word=$2 | ||
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2867 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2868 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2869 | $as_echo_n "(cached) " >&6 | ||
2870 | else | ||
2871 | if test -n "$ac_ct_CC"; then | ||
2872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2873 | else | ||
2874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2875 | for as_dir in $PATH | ||
2876 | do | ||
2877 | IFS=$as_save_IFS | ||
2878 | test -z "$as_dir" && as_dir=. | ||
2879 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2880 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2881 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2883 | break 2 | ||
2884 | fi | ||
2885 | done | ||
2886 | done | ||
2887 | IFS=$as_save_IFS | ||
2888 | |||
2889 | fi | ||
2890 | fi | ||
2891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2892 | if test -n "$ac_ct_CC"; then | ||
2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2894 | $as_echo "$ac_ct_CC" >&6; } | ||
2895 | else | ||
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2897 | $as_echo "no" >&6; } | ||
2898 | fi | ||
2899 | |||
2900 | |||
2901 | test -n "$ac_ct_CC" && break | ||
2902 | done | ||
2903 | |||
2904 | if test "x$ac_ct_CC" = x; then | ||
2905 | CC="" | ||
2906 | else | ||
2907 | case $cross_compiling:$ac_tool_warned in | ||
2908 | yes:) | ||
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2911 | ac_tool_warned=yes ;; | ||
2912 | esac | ||
2913 | CC=$ac_ct_CC | ||
2914 | fi | ||
2915 | fi | ||
2916 | |||
2917 | fi | ||
2918 | |||
2919 | |||
2920 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2922 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2923 | See \`config.log' for more details" "$LINENO" 5; } | ||
2924 | |||
2925 | # Provide some information about the compiler. | ||
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2927 | set X $ac_compile | ||
2928 | ac_compiler=$2 | ||
2929 | for ac_option in --version -v -V -qversion; do | ||
2930 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2931 | case "(($ac_try" in | ||
2932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2933 | *) ac_try_echo=$ac_try;; | ||
2934 | esac | ||
2935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2936 | $as_echo "$ac_try_echo"; } >&5 | ||
2937 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2938 | ac_status=$? | ||
2939 | if test -s conftest.err; then | ||
2940 | sed '10a\ | ||
2941 | ... rest of stderr output deleted ... | ||
2942 | 10q' conftest.err >conftest.er1 | ||
2943 | cat conftest.er1 >&5 | ||
2944 | fi | ||
2945 | rm -f conftest.er1 conftest.err | ||
2946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2947 | test $ac_status = 0; } | ||
2948 | done | ||
2949 | |||
2950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2951 | /* end confdefs.h. */ | ||
2952 | |||
2953 | int | ||
2954 | main () | ||
2955 | { | ||
2956 | |||
2957 | ; | ||
2958 | return 0; | ||
2959 | } | ||
2960 | _ACEOF | ||
2961 | ac_clean_files_save=$ac_clean_files | ||
2962 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2963 | # Try to create an executable without -o first, disregard a.out. | ||
2964 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2965 | # of exeext. | ||
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2967 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2968 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2969 | |||
2970 | # The possible output files: | ||
2971 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2972 | |||
2973 | ac_rmfiles= | ||
2974 | for ac_file in $ac_files | ||
2975 | do | ||
2976 | case $ac_file in | ||
2977 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2978 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2979 | esac | ||
2980 | done | ||
2981 | rm -f $ac_rmfiles | ||
2982 | |||
2983 | if { { ac_try="$ac_link_default" | ||
2984 | case "(($ac_try" in | ||
2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2986 | *) ac_try_echo=$ac_try;; | ||
2987 | esac | ||
2988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2989 | $as_echo "$ac_try_echo"; } >&5 | ||
2990 | (eval "$ac_link_default") 2>&5 | ||
2991 | ac_status=$? | ||
2992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2993 | test $ac_status = 0; }; then : | ||
2994 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2995 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2996 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2997 | # so that the user can short-circuit this test for compilers unknown to | ||
2998 | # Autoconf. | ||
2999 | for ac_file in $ac_files '' | ||
3000 | do | ||
3001 | test -f "$ac_file" || continue | ||
3002 | case $ac_file in | ||
3003 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3004 | ;; | ||
3005 | [ab].out ) | ||
3006 | # We found the default executable, but exeext='' is most | ||
3007 | # certainly right. | ||
3008 | break;; | ||
3009 | *.* ) | ||
3010 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3011 | then :; else | ||
3012 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3013 | fi | ||
3014 | # We set ac_cv_exeext here because the later test for it is not | ||
3015 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3016 | # argument, so we may need to know it at that point already. | ||
3017 | # Even if this section looks crufty: it has the advantage of | ||
3018 | # actually working. | ||
3019 | break;; | ||
3020 | * ) | ||
3021 | break;; | ||
3022 | esac | ||
3023 | done | ||
3024 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3025 | |||
3026 | else | ||
3027 | ac_file='' | ||
3028 | fi | ||
3029 | if test -z "$ac_file"; then : | ||
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3031 | $as_echo "no" >&6; } | ||
3032 | $as_echo "$as_me: failed program was:" >&5 | ||
3033 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3034 | |||
3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3037 | as_fn_error 77 "C compiler cannot create executables | ||
3038 | See \`config.log' for more details" "$LINENO" 5; } | ||
3039 | else | ||
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3041 | $as_echo "yes" >&6; } | ||
3042 | fi | ||
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3044 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3046 | $as_echo "$ac_file" >&6; } | ||
3047 | ac_exeext=$ac_cv_exeext | ||
3048 | |||
3049 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3050 | ac_clean_files=$ac_clean_files_save | ||
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3052 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3053 | if { { ac_try="$ac_link" | ||
3054 | case "(($ac_try" in | ||
3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3056 | *) ac_try_echo=$ac_try;; | ||
3057 | esac | ||
3058 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3059 | $as_echo "$ac_try_echo"; } >&5 | ||
3060 | (eval "$ac_link") 2>&5 | ||
3061 | ac_status=$? | ||
3062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3063 | test $ac_status = 0; }; then : | ||
3064 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3065 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3066 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3067 | # `rm'. | ||
3068 | for ac_file in conftest.exe conftest conftest.*; do | ||
3069 | test -f "$ac_file" || continue | ||
3070 | case $ac_file in | ||
3071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3072 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3073 | break;; | ||
3074 | * ) break;; | ||
3075 | esac | ||
3076 | done | ||
3077 | else | ||
3078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3080 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3081 | See \`config.log' for more details" "$LINENO" 5; } | ||
3082 | fi | ||
3083 | rm -f conftest conftest$ac_cv_exeext | ||
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3085 | $as_echo "$ac_cv_exeext" >&6; } | ||
3086 | |||
3087 | rm -f conftest.$ac_ext | ||
3088 | EXEEXT=$ac_cv_exeext | ||
3089 | ac_exeext=$EXEEXT | ||
3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3091 | /* end confdefs.h. */ | ||
3092 | #include <stdio.h> | ||
3093 | int | ||
3094 | main () | ||
3095 | { | ||
3096 | FILE *f = fopen ("conftest.out", "w"); | ||
3097 | return ferror (f) || fclose (f) != 0; | ||
3098 | |||
3099 | ; | ||
3100 | return 0; | ||
3101 | } | ||
3102 | _ACEOF | ||
3103 | ac_clean_files="$ac_clean_files conftest.out" | ||
3104 | # Check that the compiler produces executables we can run. If not, either | ||
3105 | # the compiler is broken, or we cross compile. | ||
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3107 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3108 | if test "$cross_compiling" != yes; then | ||
3109 | { { ac_try="$ac_link" | ||
3110 | case "(($ac_try" in | ||
3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3112 | *) ac_try_echo=$ac_try;; | ||
3113 | esac | ||
3114 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3115 | $as_echo "$ac_try_echo"; } >&5 | ||
3116 | (eval "$ac_link") 2>&5 | ||
3117 | ac_status=$? | ||
3118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3119 | test $ac_status = 0; } | ||
3120 | if { ac_try='./conftest$ac_cv_exeext' | ||
3121 | { { case "(($ac_try" in | ||
3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3123 | *) ac_try_echo=$ac_try;; | ||
3124 | esac | ||
3125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3126 | $as_echo "$ac_try_echo"; } >&5 | ||
3127 | (eval "$ac_try") 2>&5 | ||
3128 | ac_status=$? | ||
3129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3130 | test $ac_status = 0; }; }; then | ||
3131 | cross_compiling=no | ||
3132 | else | ||
3133 | if test "$cross_compiling" = maybe; then | ||
3134 | cross_compiling=yes | ||
3135 | else | ||
3136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3138 | as_fn_error $? "cannot run C compiled programs. | ||
3139 | If you meant to cross compile, use \`--host'. | ||
3140 | See \`config.log' for more details" "$LINENO" 5; } | ||
3141 | fi | ||
3142 | fi | ||
3143 | fi | ||
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3145 | $as_echo "$cross_compiling" >&6; } | ||
3146 | |||
3147 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3148 | ac_clean_files=$ac_clean_files_save | ||
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3150 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3151 | if ${ac_cv_objext+:} false; then : | ||
3152 | $as_echo_n "(cached) " >&6 | ||
3153 | else | ||
3154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3155 | /* end confdefs.h. */ | ||
3156 | |||
3157 | int | ||
3158 | main () | ||
3159 | { | ||
3160 | |||
3161 | ; | ||
3162 | return 0; | ||
3163 | } | ||
3164 | _ACEOF | ||
3165 | rm -f conftest.o conftest.obj | ||
3166 | if { { ac_try="$ac_compile" | ||
3167 | case "(($ac_try" in | ||
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3169 | *) ac_try_echo=$ac_try;; | ||
3170 | esac | ||
3171 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3172 | $as_echo "$ac_try_echo"; } >&5 | ||
3173 | (eval "$ac_compile") 2>&5 | ||
3174 | ac_status=$? | ||
3175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3176 | test $ac_status = 0; }; then : | ||
3177 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3178 | test -f "$ac_file" || continue; | ||
3179 | case $ac_file in | ||
3180 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3181 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3182 | break;; | ||
3183 | esac | ||
3184 | done | ||
3185 | else | ||
3186 | $as_echo "$as_me: failed program was:" >&5 | ||
3187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3188 | |||
3189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3191 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3192 | See \`config.log' for more details" "$LINENO" 5; } | ||
3193 | fi | ||
3194 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3195 | fi | ||
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3197 | $as_echo "$ac_cv_objext" >&6; } | ||
3198 | OBJEXT=$ac_cv_objext | ||
3199 | ac_objext=$OBJEXT | ||
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3201 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3202 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3203 | $as_echo_n "(cached) " >&6 | ||
3204 | else | ||
3205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3206 | /* end confdefs.h. */ | ||
3207 | |||
3208 | int | ||
3209 | main () | ||
3210 | { | ||
3211 | #ifndef __GNUC__ | ||
3212 | choke me | ||
3213 | #endif | ||
3214 | |||
3215 | ; | ||
3216 | return 0; | ||
3217 | } | ||
3218 | _ACEOF | ||
3219 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3220 | ac_compiler_gnu=yes | ||
3221 | else | ||
3222 | ac_compiler_gnu=no | ||
3223 | fi | ||
3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3225 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3226 | |||
3227 | fi | ||
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3229 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3230 | if test $ac_compiler_gnu = yes; then | ||
3231 | GCC=yes | ||
3232 | else | ||
3233 | GCC= | ||
3234 | fi | ||
3235 | ac_test_CFLAGS=${CFLAGS+set} | ||
3236 | ac_save_CFLAGS=$CFLAGS | ||
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3238 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3239 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3240 | $as_echo_n "(cached) " >&6 | ||
3241 | else | ||
3242 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3243 | ac_c_werror_flag=yes | ||
3244 | ac_cv_prog_cc_g=no | ||
3245 | CFLAGS="-g" | ||
3246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3247 | /* end confdefs.h. */ | ||
3248 | |||
3249 | int | ||
3250 | main () | ||
3251 | { | ||
3252 | |||
3253 | ; | ||
3254 | return 0; | ||
3255 | } | ||
3256 | _ACEOF | ||
3257 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3258 | ac_cv_prog_cc_g=yes | ||
3259 | else | ||
3260 | CFLAGS="" | ||
3261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3262 | /* end confdefs.h. */ | ||
3263 | |||
3264 | int | ||
3265 | main () | ||
3266 | { | ||
3267 | |||
3268 | ; | ||
3269 | return 0; | ||
3270 | } | ||
3271 | _ACEOF | ||
3272 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3273 | |||
3274 | else | ||
3275 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3276 | CFLAGS="-g" | ||
3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3278 | /* end confdefs.h. */ | ||
3279 | |||
3280 | int | ||
3281 | main () | ||
3282 | { | ||
3283 | |||
3284 | ; | ||
3285 | return 0; | ||
3286 | } | ||
3287 | _ACEOF | ||
3288 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3289 | ac_cv_prog_cc_g=yes | ||
3290 | fi | ||
3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3292 | fi | ||
3293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3294 | fi | ||
3295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3296 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3297 | fi | ||
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3299 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3300 | if test "$ac_test_CFLAGS" = set; then | ||
3301 | CFLAGS=$ac_save_CFLAGS | ||
3302 | elif test $ac_cv_prog_cc_g = yes; then | ||
3303 | if test "$GCC" = yes; then | ||
3304 | CFLAGS="-g -O2" | ||
3305 | else | ||
3306 | CFLAGS="-g" | ||
3307 | fi | ||
3308 | else | ||
3309 | if test "$GCC" = yes; then | ||
3310 | CFLAGS="-O2" | ||
3311 | else | ||
3312 | CFLAGS= | ||
3313 | fi | ||
3314 | fi | ||
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3316 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3317 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3318 | $as_echo_n "(cached) " >&6 | ||
3319 | else | ||
3320 | ac_cv_prog_cc_c89=no | ||
3321 | ac_save_CC=$CC | ||
3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3323 | /* end confdefs.h. */ | ||
3324 | #include <stdarg.h> | ||
3325 | #include <stdio.h> | ||
3326 | struct stat; | ||
3327 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3328 | struct buf { int x; }; | ||
3329 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3330 | static char *e (p, i) | ||
3331 | char **p; | ||
3332 | int i; | ||
3333 | { | ||
3334 | return p[i]; | ||
3335 | } | ||
3336 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3337 | { | ||
3338 | char *s; | ||
3339 | va_list v; | ||
3340 | va_start (v,p); | ||
3341 | s = g (p, va_arg (v,int)); | ||
3342 | va_end (v); | ||
3343 | return s; | ||
3344 | } | ||
3345 | |||
3346 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3347 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3348 | These don't provoke an error unfortunately, instead are silently treated | ||
3349 | as 'x'. The following induces an error, until -std is added to get | ||
3350 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3351 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3352 | that's true only with -std. */ | ||
3353 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3354 | |||
3355 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3356 | inside strings and character constants. */ | ||
3357 | #define FOO(x) 'x' | ||
3358 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3359 | |||
3360 | int test (int i, double x); | ||
3361 | struct s1 {int (*f) (int a);}; | ||
3362 | struct s2 {int (*f) (double a);}; | ||
3363 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3364 | int argc; | ||
3365 | char **argv; | ||
3366 | int | ||
3367 | main () | ||
3368 | { | ||
3369 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3370 | ; | ||
3371 | return 0; | ||
3372 | } | ||
3373 | _ACEOF | ||
3374 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3375 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3376 | do | ||
3377 | CC="$ac_save_CC $ac_arg" | ||
3378 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3379 | ac_cv_prog_cc_c89=$ac_arg | ||
3380 | fi | ||
3381 | rm -f core conftest.err conftest.$ac_objext | ||
3382 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3383 | done | ||
3384 | rm -f conftest.$ac_ext | ||
3385 | CC=$ac_save_CC | ||
3386 | |||
3387 | fi | ||
3388 | # AC_CACHE_VAL | ||
3389 | case "x$ac_cv_prog_cc_c89" in | ||
3390 | x) | ||
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3392 | $as_echo "none needed" >&6; } ;; | ||
3393 | xno) | ||
3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3395 | $as_echo "unsupported" >&6; } ;; | ||
3396 | *) | ||
3397 | CC="$CC $ac_cv_prog_cc_c89" | ||
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3399 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3400 | esac | ||
3401 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3402 | |||
3403 | fi | ||
3404 | |||
3405 | ac_ext=c | ||
3406 | ac_cpp='$CPP $CPPFLAGS' | ||
3407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3410 | |||
3411 | ac_aux_dir= | ||
3412 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3413 | if test -f "$ac_dir/install-sh"; then | ||
3414 | ac_aux_dir=$ac_dir | ||
3415 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3416 | break | ||
3417 | elif test -f "$ac_dir/install.sh"; then | ||
3418 | ac_aux_dir=$ac_dir | ||
3419 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3420 | break | ||
3421 | elif test -f "$ac_dir/shtool"; then | ||
3422 | ac_aux_dir=$ac_dir | ||
3423 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3424 | break | ||
3425 | fi | ||
3426 | done | ||
3427 | if test -z "$ac_aux_dir"; then | ||
3428 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3429 | fi | ||
3430 | |||
3431 | # These three variables are undocumented and unsupported, | ||
3432 | # and are intended to be withdrawn in a future Autoconf release. | ||
3433 | # They can cause serious problems if a builder's source tree is in a directory | ||
3434 | # whose full name contains unusual characters. | ||
3435 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3436 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3437 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3438 | |||
3439 | |||
3440 | # Make sure we can run config.sub. | ||
3441 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3442 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3443 | |||
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3445 | $as_echo_n "checking build system type... " >&6; } | ||
3446 | if ${ac_cv_build+:} false; then : | ||
3447 | $as_echo_n "(cached) " >&6 | ||
3448 | else | ||
3449 | ac_build_alias=$build_alias | ||
3450 | test "x$ac_build_alias" = x && | ||
3451 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3452 | test "x$ac_build_alias" = x && | ||
3453 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3454 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3455 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3456 | |||
3457 | fi | ||
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3459 | $as_echo "$ac_cv_build" >&6; } | ||
3460 | case $ac_cv_build in | ||
3461 | *-*-*) ;; | ||
3462 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3463 | esac | ||
3464 | build=$ac_cv_build | ||
3465 | ac_save_IFS=$IFS; IFS='-' | ||
3466 | set x $ac_cv_build | ||
3467 | shift | ||
3468 | build_cpu=$1 | ||
3469 | build_vendor=$2 | ||
3470 | shift; shift | ||
3471 | # Remember, the first character of IFS is used to create $*, | ||
3472 | # except with old shells: | ||
3473 | build_os=$* | ||
3474 | IFS=$ac_save_IFS | ||
3475 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3476 | |||
3477 | |||
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3479 | $as_echo_n "checking host system type... " >&6; } | ||
3480 | if ${ac_cv_host+:} false; then : | ||
3481 | $as_echo_n "(cached) " >&6 | ||
3482 | else | ||
3483 | if test "x$host_alias" = x; then | ||
3484 | ac_cv_host=$ac_cv_build | ||
3485 | else | ||
3486 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3487 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3488 | fi | ||
3489 | |||
3490 | fi | ||
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3492 | $as_echo "$ac_cv_host" >&6; } | ||
3493 | case $ac_cv_host in | ||
3494 | *-*-*) ;; | ||
3495 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3496 | esac | ||
3497 | host=$ac_cv_host | ||
3498 | ac_save_IFS=$IFS; IFS='-' | ||
3499 | set x $ac_cv_host | ||
3500 | shift | ||
3501 | host_cpu=$1 | ||
3502 | host_vendor=$2 | ||
3503 | shift; shift | ||
3504 | # Remember, the first character of IFS is used to create $*, | ||
3505 | # except with old shells: | ||
3506 | host_os=$* | ||
3507 | IFS=$ac_save_IFS | ||
3508 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3509 | |||
3510 | |||
3511 | |||
3512 | ac_ext=c | ||
3513 | ac_cpp='$CPP $CPPFLAGS' | ||
3514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3518 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3519 | # On Suns, sometimes $CPP names a directory. | ||
3520 | if test -n "$CPP" && test -d "$CPP"; then | ||
3521 | CPP= | ||
3522 | fi | ||
3523 | if test -z "$CPP"; then | ||
3524 | if ${ac_cv_prog_CPP+:} false; then : | ||
3525 | $as_echo_n "(cached) " >&6 | ||
3526 | else | ||
3527 | # Double quotes because CPP needs to be expanded | ||
3528 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3529 | do | ||
3530 | ac_preproc_ok=false | ||
3531 | for ac_c_preproc_warn_flag in '' yes | ||
3532 | do | ||
3533 | # Use a header file that comes with gcc, so configuring glibc | ||
3534 | # with a fresh cross-compiler works. | ||
3535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3536 | # <limits.h> exists even on freestanding compilers. | ||
3537 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3538 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3540 | /* end confdefs.h. */ | ||
3541 | #ifdef __STDC__ | ||
3542 | # include <limits.h> | ||
3543 | #else | ||
3544 | # include <assert.h> | ||
3545 | #endif | ||
3546 | Syntax error | ||
3547 | _ACEOF | ||
3548 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3549 | |||
3550 | else | ||
3551 | # Broken: fails on valid input. | ||
3552 | continue | ||
3553 | fi | ||
3554 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3555 | |||
3556 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3557 | # can be detected and how. | ||
3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3559 | /* end confdefs.h. */ | ||
3560 | #include <ac_nonexistent.h> | ||
3561 | _ACEOF | ||
3562 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3563 | # Broken: success on invalid input. | ||
3564 | continue | ||
3565 | else | ||
3566 | # Passes both tests. | ||
3567 | ac_preproc_ok=: | ||
3568 | break | ||
3569 | fi | ||
3570 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3571 | |||
3572 | done | ||
3573 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3574 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3575 | if $ac_preproc_ok; then : | ||
3576 | break | ||
3577 | fi | ||
3578 | |||
3579 | done | ||
3580 | ac_cv_prog_CPP=$CPP | ||
3581 | |||
3582 | fi | ||
3583 | CPP=$ac_cv_prog_CPP | ||
3584 | else | ||
3585 | ac_cv_prog_CPP=$CPP | ||
3586 | fi | ||
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3588 | $as_echo "$CPP" >&6; } | ||
3589 | ac_preproc_ok=false | ||
3590 | for ac_c_preproc_warn_flag in '' yes | ||
3591 | do | ||
3592 | # Use a header file that comes with gcc, so configuring glibc | ||
3593 | # with a fresh cross-compiler works. | ||
3594 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3595 | # <limits.h> exists even on freestanding compilers. | ||
3596 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3597 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3599 | /* end confdefs.h. */ | ||
3600 | #ifdef __STDC__ | ||
3601 | # include <limits.h> | ||
3602 | #else | ||
3603 | # include <assert.h> | ||
3604 | #endif | ||
3605 | Syntax error | ||
3606 | _ACEOF | ||
3607 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3608 | |||
3609 | else | ||
3610 | # Broken: fails on valid input. | ||
3611 | continue | ||
3612 | fi | ||
3613 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3614 | |||
3615 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3616 | # can be detected and how. | ||
3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3618 | /* end confdefs.h. */ | ||
3619 | #include <ac_nonexistent.h> | ||
3620 | _ACEOF | ||
3621 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3622 | # Broken: success on invalid input. | ||
3623 | continue | ||
3624 | else | ||
3625 | # Passes both tests. | ||
3626 | ac_preproc_ok=: | ||
3627 | break | ||
3628 | fi | ||
3629 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3630 | |||
3631 | done | ||
3632 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3633 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3634 | if $ac_preproc_ok; then : | ||
3635 | |||
3636 | else | ||
3637 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3639 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3640 | See \`config.log' for more details" "$LINENO" 5; } | ||
3641 | fi | ||
3642 | |||
3643 | ac_ext=c | ||
3644 | ac_cpp='$CPP $CPPFLAGS' | ||
3645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3648 | |||
3649 | |||
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3651 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3652 | if ${ac_cv_path_GREP+:} false; then : | ||
3653 | $as_echo_n "(cached) " >&6 | ||
3654 | else | ||
3655 | if test -z "$GREP"; then | ||
3656 | ac_path_GREP_found=false | ||
3657 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3659 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3660 | do | ||
3661 | IFS=$as_save_IFS | ||
3662 | test -z "$as_dir" && as_dir=. | ||
3663 | for ac_prog in grep ggrep; do | ||
3664 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3665 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3666 | as_fn_executable_p "$ac_path_GREP" || continue | ||
3667 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3668 | # Check for GNU $ac_path_GREP | ||
3669 | case `"$ac_path_GREP" --version 2>&1` in | ||
3670 | *GNU*) | ||
3671 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3672 | *) | ||
3673 | ac_count=0 | ||
3674 | $as_echo_n 0123456789 >"conftest.in" | ||
3675 | while : | ||
3676 | do | ||
3677 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3678 | mv "conftest.tmp" "conftest.in" | ||
3679 | cp "conftest.in" "conftest.nl" | ||
3680 | $as_echo 'GREP' >> "conftest.nl" | ||
3681 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3682 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3683 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3684 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3685 | # Best one so far, save it but keep looking for a better one | ||
3686 | ac_cv_path_GREP="$ac_path_GREP" | ||
3687 | ac_path_GREP_max=$ac_count | ||
3688 | fi | ||
3689 | # 10*(2^10) chars as input seems more than enough | ||
3690 | test $ac_count -gt 10 && break | ||
3691 | done | ||
3692 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3693 | esac | ||
3694 | |||
3695 | $ac_path_GREP_found && break 3 | ||
3696 | done | ||
3697 | done | ||
3698 | done | ||
3699 | IFS=$as_save_IFS | ||
3700 | if test -z "$ac_cv_path_GREP"; then | ||
3701 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3702 | fi | ||
3703 | else | ||
3704 | ac_cv_path_GREP=$GREP | ||
3705 | fi | ||
3706 | |||
3707 | fi | ||
3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3709 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3710 | GREP="$ac_cv_path_GREP" | ||
3711 | |||
3712 | |||
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3714 | $as_echo_n "checking for egrep... " >&6; } | ||
3715 | if ${ac_cv_path_EGREP+:} false; then : | ||
3716 | $as_echo_n "(cached) " >&6 | ||
3717 | else | ||
3718 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3719 | then ac_cv_path_EGREP="$GREP -E" | ||
3720 | else | ||
3721 | if test -z "$EGREP"; then | ||
3722 | ac_path_EGREP_found=false | ||
3723 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3726 | do | ||
3727 | IFS=$as_save_IFS | ||
3728 | test -z "$as_dir" && as_dir=. | ||
3729 | for ac_prog in egrep; do | ||
3730 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3731 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3732 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
3733 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3734 | # Check for GNU $ac_path_EGREP | ||
3735 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3736 | *GNU*) | ||
3737 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3738 | *) | ||
3739 | ac_count=0 | ||
3740 | $as_echo_n 0123456789 >"conftest.in" | ||
3741 | while : | ||
3742 | do | ||
3743 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3744 | mv "conftest.tmp" "conftest.in" | ||
3745 | cp "conftest.in" "conftest.nl" | ||
3746 | $as_echo 'EGREP' >> "conftest.nl" | ||
3747 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3749 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3750 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3751 | # Best one so far, save it but keep looking for a better one | ||
3752 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3753 | ac_path_EGREP_max=$ac_count | ||
3754 | fi | ||
3755 | # 10*(2^10) chars as input seems more than enough | ||
3756 | test $ac_count -gt 10 && break | ||
3757 | done | ||
3758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3759 | esac | ||
3760 | |||
3761 | $ac_path_EGREP_found && break 3 | ||
3762 | done | ||
3763 | done | ||
3764 | done | ||
3765 | IFS=$as_save_IFS | ||
3766 | if test -z "$ac_cv_path_EGREP"; then | ||
3767 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3768 | fi | ||
3769 | else | ||
3770 | ac_cv_path_EGREP=$EGREP | ||
3771 | fi | ||
3772 | |||
3773 | fi | ||
3774 | fi | ||
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3776 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3777 | EGREP="$ac_cv_path_EGREP" | ||
3778 | |||
3779 | |||
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3781 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3782 | if ${ac_cv_header_stdc+:} false; then : | ||
3783 | $as_echo_n "(cached) " >&6 | ||
3784 | else | ||
3785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3786 | /* end confdefs.h. */ | ||
3787 | #include <stdlib.h> | ||
3788 | #include <stdarg.h> | ||
3789 | #include <string.h> | ||
3790 | #include <float.h> | ||
3791 | |||
3792 | int | ||
3793 | main () | ||
3794 | { | ||
3795 | |||
3796 | ; | ||
3797 | return 0; | ||
3798 | } | ||
3799 | _ACEOF | ||
3800 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3801 | ac_cv_header_stdc=yes | ||
3802 | else | ||
3803 | ac_cv_header_stdc=no | ||
3804 | fi | ||
3805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3806 | |||
3807 | if test $ac_cv_header_stdc = yes; then | ||
3808 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3810 | /* end confdefs.h. */ | ||
3811 | #include <string.h> | ||
3812 | |||
3813 | _ACEOF | ||
3814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3815 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3816 | |||
3817 | else | ||
3818 | ac_cv_header_stdc=no | ||
3819 | fi | ||
3820 | rm -f conftest* | ||
3821 | |||
3822 | fi | ||
3823 | |||
3824 | if test $ac_cv_header_stdc = yes; then | ||
3825 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3827 | /* end confdefs.h. */ | ||
3828 | #include <stdlib.h> | ||
3829 | |||
3830 | _ACEOF | ||
3831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3832 | $EGREP "free" >/dev/null 2>&1; then : | ||
3833 | |||
3834 | else | ||
3835 | ac_cv_header_stdc=no | ||
3836 | fi | ||
3837 | rm -f conftest* | ||
3838 | |||
3839 | fi | ||
3840 | |||
3841 | if test $ac_cv_header_stdc = yes; then | ||
3842 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3843 | if test "$cross_compiling" = yes; then : | ||
3844 | : | ||
3845 | else | ||
3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3847 | /* end confdefs.h. */ | ||
3848 | #include <ctype.h> | ||
3849 | #include <stdlib.h> | ||
3850 | #if ((' ' & 0x0FF) == 0x020) | ||
3851 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3852 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3853 | #else | ||
3854 | # define ISLOWER(c) \ | ||
3855 | (('a' <= (c) && (c) <= 'i') \ | ||
3856 | || ('j' <= (c) && (c) <= 'r') \ | ||
3857 | || ('s' <= (c) && (c) <= 'z')) | ||
3858 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3859 | #endif | ||
3860 | |||
3861 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3862 | int | ||
3863 | main () | ||
3864 | { | ||
3865 | int i; | ||
3866 | for (i = 0; i < 256; i++) | ||
3867 | if (XOR (islower (i), ISLOWER (i)) | ||
3868 | || toupper (i) != TOUPPER (i)) | ||
3869 | return 2; | ||
3870 | return 0; | ||
3871 | } | ||
3872 | _ACEOF | ||
3873 | if ac_fn_c_try_run "$LINENO"; then : | ||
3874 | |||
3875 | else | ||
3876 | ac_cv_header_stdc=no | ||
3877 | fi | ||
3878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3879 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3880 | fi | ||
3881 | |||
3882 | fi | ||
3883 | fi | ||
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3885 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3886 | if test $ac_cv_header_stdc = yes; then | ||
3887 | |||
3888 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3889 | |||
3890 | fi | ||
3891 | |||
3892 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3893 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3894 | inttypes.h stdint.h unistd.h | ||
3895 | do : | ||
3896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3897 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3898 | " | ||
3899 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3900 | cat >>confdefs.h <<_ACEOF | ||
3901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3902 | _ACEOF | ||
3903 | |||
3904 | fi | ||
3905 | |||
3906 | done | ||
3907 | |||
3908 | |||
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3910 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3911 | if ${ac_cv_c_bigendian+:} false; then : | ||
3912 | $as_echo_n "(cached) " >&6 | ||
3913 | else | ||
3914 | ac_cv_c_bigendian=unknown | ||
3915 | # See if we're dealing with a universal compiler. | ||
3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3917 | /* end confdefs.h. */ | ||
3918 | #ifndef __APPLE_CC__ | ||
3919 | not a universal capable compiler | ||
3920 | #endif | ||
3921 | typedef int dummy; | ||
3922 | |||
3923 | _ACEOF | ||
3924 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3925 | |||
3926 | # Check for potential -arch flags. It is not universal unless | ||
3927 | # there are at least two -arch flags with different values. | ||
3928 | ac_arch= | ||
3929 | ac_prev= | ||
3930 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3931 | if test -n "$ac_prev"; then | ||
3932 | case $ac_word in | ||
3933 | i?86 | x86_64 | ppc | ppc64) | ||
3934 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3935 | ac_arch=$ac_word | ||
3936 | else | ||
3937 | ac_cv_c_bigendian=universal | ||
3938 | break | ||
3939 | fi | ||
3940 | ;; | ||
3941 | esac | ||
3942 | ac_prev= | ||
3943 | elif test "x$ac_word" = "x-arch"; then | ||
3944 | ac_prev=arch | ||
3945 | fi | ||
3946 | done | ||
3947 | fi | ||
3948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3949 | if test $ac_cv_c_bigendian = unknown; then | ||
3950 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3952 | /* end confdefs.h. */ | ||
3953 | #include <sys/types.h> | ||
3954 | #include <sys/param.h> | ||
3955 | |||
3956 | int | ||
3957 | main () | ||
3958 | { | ||
3959 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3960 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3961 | && LITTLE_ENDIAN) | ||
3962 | bogus endian macros | ||
3963 | #endif | ||
3964 | |||
3965 | ; | ||
3966 | return 0; | ||
3967 | } | ||
3968 | _ACEOF | ||
3969 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3970 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3972 | /* end confdefs.h. */ | ||
3973 | #include <sys/types.h> | ||
3974 | #include <sys/param.h> | ||
3975 | |||
3976 | int | ||
3977 | main () | ||
3978 | { | ||
3979 | #if BYTE_ORDER != BIG_ENDIAN | ||
3980 | not big endian | ||
3981 | #endif | ||
3982 | |||
3983 | ; | ||
3984 | return 0; | ||
3985 | } | ||
3986 | _ACEOF | ||
3987 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3988 | ac_cv_c_bigendian=yes | ||
3989 | else | ||
3990 | ac_cv_c_bigendian=no | ||
3991 | fi | ||
3992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3993 | fi | ||
3994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3995 | fi | ||
3996 | if test $ac_cv_c_bigendian = unknown; then | ||
3997 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3999 | /* end confdefs.h. */ | ||
4000 | #include <limits.h> | ||
4001 | |||
4002 | int | ||
4003 | main () | ||
4004 | { | ||
4005 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
4006 | bogus endian macros | ||
4007 | #endif | ||
4008 | |||
4009 | ; | ||
4010 | return 0; | ||
4011 | } | ||
4012 | _ACEOF | ||
4013 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4014 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
4015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4016 | /* end confdefs.h. */ | ||
4017 | #include <limits.h> | ||
4018 | |||
4019 | int | ||
4020 | main () | ||
4021 | { | ||
4022 | #ifndef _BIG_ENDIAN | ||
4023 | not big endian | ||
4024 | #endif | ||
4025 | |||
4026 | ; | ||
4027 | return 0; | ||
4028 | } | ||
4029 | _ACEOF | ||
4030 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4031 | ac_cv_c_bigendian=yes | ||
4032 | else | ||
4033 | ac_cv_c_bigendian=no | ||
4034 | fi | ||
4035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4036 | fi | ||
4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4038 | fi | ||
4039 | if test $ac_cv_c_bigendian = unknown; then | ||
4040 | # Compile a test program. | ||
4041 | if test "$cross_compiling" = yes; then : | ||
4042 | # Try to guess by grepping values from an object file. | ||
4043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4044 | /* end confdefs.h. */ | ||
4045 | short int ascii_mm[] = | ||
4046 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4047 | short int ascii_ii[] = | ||
4048 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4049 | int use_ascii (int i) { | ||
4050 | return ascii_mm[i] + ascii_ii[i]; | ||
4051 | } | ||
4052 | short int ebcdic_ii[] = | ||
4053 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4054 | short int ebcdic_mm[] = | ||
4055 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4056 | int use_ebcdic (int i) { | ||
4057 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4058 | } | ||
4059 | extern int foo; | ||
4060 | |||
4061 | int | ||
4062 | main () | ||
4063 | { | ||
4064 | return use_ascii (foo) == use_ebcdic (foo); | ||
4065 | ; | ||
4066 | return 0; | ||
4067 | } | ||
4068 | _ACEOF | ||
4069 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4070 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4071 | ac_cv_c_bigendian=yes | ||
4072 | fi | ||
4073 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4074 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4075 | ac_cv_c_bigendian=no | ||
4076 | else | ||
4077 | # finding both strings is unlikely to happen, but who knows? | ||
4078 | ac_cv_c_bigendian=unknown | ||
4079 | fi | ||
4080 | fi | ||
4081 | fi | ||
4082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4083 | else | ||
4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4085 | /* end confdefs.h. */ | ||
4086 | $ac_includes_default | ||
4087 | int | ||
4088 | main () | ||
4089 | { | ||
4090 | |||
4091 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4092 | union | ||
4093 | { | ||
4094 | long int l; | ||
4095 | char c[sizeof (long int)]; | ||
4096 | } u; | ||
4097 | u.l = 1; | ||
4098 | return u.c[sizeof (long int) - 1] == 1; | ||
4099 | |||
4100 | ; | ||
4101 | return 0; | ||
4102 | } | ||
4103 | _ACEOF | ||
4104 | if ac_fn_c_try_run "$LINENO"; then : | ||
4105 | ac_cv_c_bigendian=no | ||
4106 | else | ||
4107 | ac_cv_c_bigendian=yes | ||
4108 | fi | ||
4109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4110 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4111 | fi | ||
4112 | |||
4113 | fi | ||
4114 | fi | ||
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4116 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4117 | case $ac_cv_c_bigendian in #( | ||
4118 | yes) | ||
4119 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4120 | ;; #( | ||
4121 | no) | ||
4122 | ;; #( | ||
4123 | universal) | ||
4124 | |||
4125 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4126 | |||
4127 | ;; #( | ||
4128 | *) | ||
4129 | as_fn_error $? "unknown endianness | ||
4130 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4131 | esac | ||
4132 | |||
4133 | |||
4134 | # Checks for programs. | ||
4135 | for ac_prog in gawk mawk nawk awk | ||
4136 | do | ||
4137 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4138 | set dummy $ac_prog; ac_word=$2 | ||
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4140 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4141 | if ${ac_cv_prog_AWK+:} false; then : | ||
4142 | $as_echo_n "(cached) " >&6 | ||
4143 | else | ||
4144 | if test -n "$AWK"; then | ||
4145 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4146 | else | ||
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4148 | for as_dir in $PATH | ||
4149 | do | ||
4150 | IFS=$as_save_IFS | ||
4151 | test -z "$as_dir" && as_dir=. | ||
4152 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4154 | ac_cv_prog_AWK="$ac_prog" | ||
4155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4156 | break 2 | ||
4157 | fi | ||
4158 | done | ||
4159 | done | ||
4160 | IFS=$as_save_IFS | ||
4161 | |||
4162 | fi | ||
4163 | fi | ||
4164 | AWK=$ac_cv_prog_AWK | ||
4165 | if test -n "$AWK"; then | ||
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4167 | $as_echo "$AWK" >&6; } | ||
4168 | else | ||
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4170 | $as_echo "no" >&6; } | ||
4171 | fi | ||
4172 | |||
4173 | |||
4174 | test -n "$AWK" && break | ||
4175 | done | ||
4176 | |||
4177 | ac_ext=c | ||
4178 | ac_cpp='$CPP $CPPFLAGS' | ||
4179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4183 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4184 | # On Suns, sometimes $CPP names a directory. | ||
4185 | if test -n "$CPP" && test -d "$CPP"; then | ||
4186 | CPP= | ||
4187 | fi | ||
4188 | if test -z "$CPP"; then | ||
4189 | if ${ac_cv_prog_CPP+:} false; then : | ||
4190 | $as_echo_n "(cached) " >&6 | ||
4191 | else | ||
4192 | # Double quotes because CPP needs to be expanded | ||
4193 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4194 | do | ||
4195 | ac_preproc_ok=false | ||
4196 | for ac_c_preproc_warn_flag in '' yes | ||
4197 | do | ||
4198 | # Use a header file that comes with gcc, so configuring glibc | ||
4199 | # with a fresh cross-compiler works. | ||
4200 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4201 | # <limits.h> exists even on freestanding compilers. | ||
4202 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4203 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4205 | /* end confdefs.h. */ | ||
4206 | #ifdef __STDC__ | ||
4207 | # include <limits.h> | ||
4208 | #else | ||
4209 | # include <assert.h> | ||
4210 | #endif | ||
4211 | Syntax error | ||
4212 | _ACEOF | ||
4213 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4214 | |||
4215 | else | ||
4216 | # Broken: fails on valid input. | ||
4217 | continue | ||
4218 | fi | ||
4219 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4220 | |||
4221 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4222 | # can be detected and how. | ||
4223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4224 | /* end confdefs.h. */ | ||
4225 | #include <ac_nonexistent.h> | ||
4226 | _ACEOF | ||
4227 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4228 | # Broken: success on invalid input. | ||
4229 | continue | ||
4230 | else | ||
4231 | # Passes both tests. | ||
4232 | ac_preproc_ok=: | ||
4233 | break | ||
4234 | fi | ||
4235 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4236 | |||
4237 | done | ||
4238 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4239 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4240 | if $ac_preproc_ok; then : | ||
4241 | break | ||
4242 | fi | ||
4243 | |||
4244 | done | ||
4245 | ac_cv_prog_CPP=$CPP | ||
4246 | |||
4247 | fi | ||
4248 | CPP=$ac_cv_prog_CPP | ||
4249 | else | ||
4250 | ac_cv_prog_CPP=$CPP | ||
4251 | fi | ||
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4253 | $as_echo "$CPP" >&6; } | ||
4254 | ac_preproc_ok=false | ||
4255 | for ac_c_preproc_warn_flag in '' yes | ||
4256 | do | ||
4257 | # Use a header file that comes with gcc, so configuring glibc | ||
4258 | # with a fresh cross-compiler works. | ||
4259 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4260 | # <limits.h> exists even on freestanding compilers. | ||
4261 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4262 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4264 | /* end confdefs.h. */ | ||
4265 | #ifdef __STDC__ | ||
4266 | # include <limits.h> | ||
4267 | #else | ||
4268 | # include <assert.h> | ||
4269 | #endif | ||
4270 | Syntax error | ||
4271 | _ACEOF | ||
4272 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4273 | |||
4274 | else | ||
4275 | # Broken: fails on valid input. | ||
4276 | continue | ||
4277 | fi | ||
4278 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4279 | |||
4280 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4281 | # can be detected and how. | ||
4282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4283 | /* end confdefs.h. */ | ||
4284 | #include <ac_nonexistent.h> | ||
4285 | _ACEOF | ||
4286 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4287 | # Broken: success on invalid input. | ||
4288 | continue | ||
4289 | else | ||
4290 | # Passes both tests. | ||
4291 | ac_preproc_ok=: | ||
4292 | break | ||
4293 | fi | ||
4294 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4295 | |||
4296 | done | ||
4297 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4298 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4299 | if $ac_preproc_ok; then : | ||
4300 | |||
4301 | else | ||
4302 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4304 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4305 | See \`config.log' for more details" "$LINENO" 5; } | ||
4306 | fi | ||
4307 | |||
4308 | ac_ext=c | ||
4309 | ac_cpp='$CPP $CPPFLAGS' | ||
4310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4313 | |||
4314 | if test -n "$ac_tool_prefix"; then | ||
4315 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4316 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4318 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4319 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4320 | $as_echo_n "(cached) " >&6 | ||
4321 | else | ||
4322 | if test -n "$RANLIB"; then | ||
4323 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4324 | else | ||
4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4326 | for as_dir in $PATH | ||
4327 | do | ||
4328 | IFS=$as_save_IFS | ||
4329 | test -z "$as_dir" && as_dir=. | ||
4330 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4332 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4334 | break 2 | ||
4335 | fi | ||
4336 | done | ||
4337 | done | ||
4338 | IFS=$as_save_IFS | ||
4339 | |||
4340 | fi | ||
4341 | fi | ||
4342 | RANLIB=$ac_cv_prog_RANLIB | ||
4343 | if test -n "$RANLIB"; then | ||
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4345 | $as_echo "$RANLIB" >&6; } | ||
4346 | else | ||
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4348 | $as_echo "no" >&6; } | ||
4349 | fi | ||
4350 | |||
4351 | |||
4352 | fi | ||
4353 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4354 | ac_ct_RANLIB=$RANLIB | ||
4355 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4356 | set dummy ranlib; ac_word=$2 | ||
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4358 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4359 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4360 | $as_echo_n "(cached) " >&6 | ||
4361 | else | ||
4362 | if test -n "$ac_ct_RANLIB"; then | ||
4363 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4364 | else | ||
4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4366 | for as_dir in $PATH | ||
4367 | do | ||
4368 | IFS=$as_save_IFS | ||
4369 | test -z "$as_dir" && as_dir=. | ||
4370 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4372 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4374 | break 2 | ||
4375 | fi | ||
4376 | done | ||
4377 | done | ||
4378 | IFS=$as_save_IFS | ||
4379 | |||
4380 | fi | ||
4381 | fi | ||
4382 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4383 | if test -n "$ac_ct_RANLIB"; then | ||
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4385 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4386 | else | ||
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4388 | $as_echo "no" >&6; } | ||
4389 | fi | ||
4390 | |||
4391 | if test "x$ac_ct_RANLIB" = x; then | ||
4392 | RANLIB=":" | ||
4393 | else | ||
4394 | case $cross_compiling:$ac_tool_warned in | ||
4395 | yes:) | ||
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4398 | ac_tool_warned=yes ;; | ||
4399 | esac | ||
4400 | RANLIB=$ac_ct_RANLIB | ||
4401 | fi | ||
4402 | else | ||
4403 | RANLIB="$ac_cv_prog_RANLIB" | ||
4404 | fi | ||
4405 | |||
4406 | # Find a good install program. We prefer a C program (faster), | ||
4407 | # so one script is as good as another. But avoid the broken or | ||
4408 | # incompatible versions: | ||
4409 | # SysV /etc/install, /usr/sbin/install | ||
4410 | # SunOS /usr/etc/install | ||
4411 | # IRIX /sbin/install | ||
4412 | # AIX /bin/install | ||
4413 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4414 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4415 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4416 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4417 | # OS/2's system install, which has a completely different semantic | ||
4418 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4419 | # Reject install programs that cannot install multiple files. | ||
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4421 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4422 | if test -z "$INSTALL"; then | ||
4423 | if ${ac_cv_path_install+:} false; then : | ||
4424 | $as_echo_n "(cached) " >&6 | ||
4425 | else | ||
4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4427 | for as_dir in $PATH | ||
4428 | do | ||
4429 | IFS=$as_save_IFS | ||
4430 | test -z "$as_dir" && as_dir=. | ||
4431 | # Account for people who put trailing slashes in PATH elements. | ||
4432 | case $as_dir/ in #(( | ||
4433 | ./ | .// | /[cC]/* | \ | ||
4434 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4435 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4436 | /usr/ucb/* ) ;; | ||
4437 | *) | ||
4438 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4439 | # Don't use installbsd from OSF since it installs stuff as root | ||
4440 | # by default. | ||
4441 | for ac_prog in ginstall scoinst install; do | ||
4442 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4443 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
4444 | if test $ac_prog = install && | ||
4445 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4446 | # AIX install. It has an incompatible calling convention. | ||
4447 | : | ||
4448 | elif test $ac_prog = install && | ||
4449 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4450 | # program-specific install script used by HP pwplus--don't use. | ||
4451 | : | ||
4452 | else | ||
4453 | rm -rf conftest.one conftest.two conftest.dir | ||
4454 | echo one > conftest.one | ||
4455 | echo two > conftest.two | ||
4456 | mkdir conftest.dir | ||
4457 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4458 | test -s conftest.one && test -s conftest.two && | ||
4459 | test -s conftest.dir/conftest.one && | ||
4460 | test -s conftest.dir/conftest.two | ||
4461 | then | ||
4462 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4463 | break 3 | ||
4464 | fi | ||
4465 | fi | ||
4466 | fi | ||
4467 | done | ||
4468 | done | ||
4469 | ;; | ||
4470 | esac | ||
4471 | |||
4472 | done | ||
4473 | IFS=$as_save_IFS | ||
4474 | |||
4475 | rm -rf conftest.one conftest.two conftest.dir | ||
4476 | |||
4477 | fi | ||
4478 | if test "${ac_cv_path_install+set}" = set; then | ||
4479 | INSTALL=$ac_cv_path_install | ||
4480 | else | ||
4481 | # As a last resort, use the slow shell script. Don't cache a | ||
4482 | # value for INSTALL within a source directory, because that will | ||
4483 | # break other packages using the cache if that directory is | ||
4484 | # removed, or if the value is a relative name. | ||
4485 | INSTALL=$ac_install_sh | ||
4486 | fi | ||
4487 | fi | ||
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4489 | $as_echo "$INSTALL" >&6; } | ||
4490 | |||
4491 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4492 | # It thinks the first close brace ends the variable substitution. | ||
4493 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4494 | |||
4495 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4496 | |||
4497 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4498 | |||
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4500 | $as_echo_n "checking for egrep... " >&6; } | ||
4501 | if ${ac_cv_path_EGREP+:} false; then : | ||
4502 | $as_echo_n "(cached) " >&6 | ||
4503 | else | ||
4504 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4505 | then ac_cv_path_EGREP="$GREP -E" | ||
4506 | else | ||
4507 | if test -z "$EGREP"; then | ||
4508 | ac_path_EGREP_found=false | ||
4509 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4511 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4512 | do | ||
4513 | IFS=$as_save_IFS | ||
4514 | test -z "$as_dir" && as_dir=. | ||
4515 | for ac_prog in egrep; do | ||
4516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4517 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4518 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
4519 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4520 | # Check for GNU $ac_path_EGREP | ||
4521 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4522 | *GNU*) | ||
4523 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4524 | *) | ||
4525 | ac_count=0 | ||
4526 | $as_echo_n 0123456789 >"conftest.in" | ||
4527 | while : | ||
4528 | do | ||
4529 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4530 | mv "conftest.tmp" "conftest.in" | ||
4531 | cp "conftest.in" "conftest.nl" | ||
4532 | $as_echo 'EGREP' >> "conftest.nl" | ||
4533 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4534 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4535 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4536 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4537 | # Best one so far, save it but keep looking for a better one | ||
4538 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4539 | ac_path_EGREP_max=$ac_count | ||
4540 | fi | ||
4541 | # 10*(2^10) chars as input seems more than enough | ||
4542 | test $ac_count -gt 10 && break | ||
4543 | done | ||
4544 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4545 | esac | ||
4546 | |||
4547 | $ac_path_EGREP_found && break 3 | ||
4548 | done | ||
4549 | done | ||
4550 | done | ||
4551 | IFS=$as_save_IFS | ||
4552 | if test -z "$ac_cv_path_EGREP"; then | ||
4553 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4554 | fi | ||
4555 | else | ||
4556 | ac_cv_path_EGREP=$EGREP | ||
4557 | fi | ||
4558 | |||
4559 | fi | ||
4560 | fi | ||
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4562 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4563 | EGREP="$ac_cv_path_EGREP" | ||
4564 | |||
4565 | |||
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
4567 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
4568 | if test -z "$MKDIR_P"; then | ||
4569 | if ${ac_cv_path_mkdir+:} false; then : | ||
4570 | $as_echo_n "(cached) " >&6 | ||
4571 | else | ||
4572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4573 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
4574 | do | ||
4575 | IFS=$as_save_IFS | ||
4576 | test -z "$as_dir" && as_dir=. | ||
4577 | for ac_prog in mkdir gmkdir; do | ||
4578 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4579 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | ||
4580 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
4581 | 'mkdir (GNU coreutils) '* | \ | ||
4582 | 'mkdir (coreutils) '* | \ | ||
4583 | 'mkdir (fileutils) '4.1*) | ||
4584 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
4585 | break 3;; | ||
4586 | esac | ||
4587 | done | ||
4588 | done | ||
4589 | done | ||
4590 | IFS=$as_save_IFS | ||
4591 | |||
4592 | fi | ||
4593 | |||
4594 | test -d ./--version && rmdir ./--version | ||
4595 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
4596 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
4597 | else | ||
4598 | # As a last resort, use the slow shell script. Don't cache a | ||
4599 | # value for MKDIR_P within a source directory, because that will | ||
4600 | # break other packages using the cache if that directory is | ||
4601 | # removed, or if the value is a relative name. | ||
4602 | MKDIR_P="$ac_install_sh -d" | ||
4603 | fi | ||
4604 | fi | ||
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
4606 | $as_echo "$MKDIR_P" >&6; } | ||
4607 | |||
4608 | if test -n "$ac_tool_prefix"; then | ||
4609 | for ac_prog in ar | ||
4610 | do | ||
4611 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4612 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4614 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4615 | if ${ac_cv_prog_AR+:} false; then : | ||
4616 | $as_echo_n "(cached) " >&6 | ||
4617 | else | ||
4618 | if test -n "$AR"; then | ||
4619 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4620 | else | ||
4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4622 | for as_dir in $PATH | ||
4623 | do | ||
4624 | IFS=$as_save_IFS | ||
4625 | test -z "$as_dir" && as_dir=. | ||
4626 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4628 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4630 | break 2 | ||
4631 | fi | ||
4632 | done | ||
4633 | done | ||
4634 | IFS=$as_save_IFS | ||
4635 | |||
4636 | fi | ||
4637 | fi | ||
4638 | AR=$ac_cv_prog_AR | ||
4639 | if test -n "$AR"; then | ||
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4641 | $as_echo "$AR" >&6; } | ||
4642 | else | ||
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4644 | $as_echo "no" >&6; } | ||
4645 | fi | ||
4646 | |||
4647 | |||
4648 | test -n "$AR" && break | ||
4649 | done | ||
4650 | fi | ||
4651 | if test -z "$AR"; then | ||
4652 | ac_ct_AR=$AR | ||
4653 | for ac_prog in ar | ||
4654 | do | ||
4655 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4656 | set dummy $ac_prog; ac_word=$2 | ||
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4658 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4659 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
4660 | $as_echo_n "(cached) " >&6 | ||
4661 | else | ||
4662 | if test -n "$ac_ct_AR"; then | ||
4663 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4664 | else | ||
4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4666 | for as_dir in $PATH | ||
4667 | do | ||
4668 | IFS=$as_save_IFS | ||
4669 | test -z "$as_dir" && as_dir=. | ||
4670 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4672 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4674 | break 2 | ||
4675 | fi | ||
4676 | done | ||
4677 | done | ||
4678 | IFS=$as_save_IFS | ||
4679 | |||
4680 | fi | ||
4681 | fi | ||
4682 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4683 | if test -n "$ac_ct_AR"; then | ||
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
4685 | $as_echo "$ac_ct_AR" >&6; } | ||
4686 | else | ||
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4688 | $as_echo "no" >&6; } | ||
4689 | fi | ||
4690 | |||
4691 | |||
4692 | test -n "$ac_ct_AR" && break | ||
4693 | done | ||
4694 | |||
4695 | if test "x$ac_ct_AR" = x; then | ||
4696 | AR="" | ||
4697 | else | ||
4698 | case $cross_compiling:$ac_tool_warned in | ||
4699 | yes:) | ||
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4701 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4702 | ac_tool_warned=yes ;; | ||
4703 | esac | ||
4704 | AR=$ac_ct_AR | ||
4705 | fi | ||
4706 | fi | ||
4707 | |||
4708 | # Extract the first word of "cat", so it can be a program name with args. | ||
4709 | set dummy cat; ac_word=$2 | ||
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4711 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4712 | if ${ac_cv_path_CAT+:} false; then : | ||
4713 | $as_echo_n "(cached) " >&6 | ||
4714 | else | ||
4715 | case $CAT in | ||
4716 | [\\/]* | ?:[\\/]*) | ||
4717 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4718 | ;; | ||
4719 | *) | ||
4720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4721 | for as_dir in $PATH | ||
4722 | do | ||
4723 | IFS=$as_save_IFS | ||
4724 | test -z "$as_dir" && as_dir=. | ||
4725 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4727 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4729 | break 2 | ||
4730 | fi | ||
4731 | done | ||
4732 | done | ||
4733 | IFS=$as_save_IFS | ||
4734 | |||
4735 | ;; | ||
4736 | esac | ||
4737 | fi | ||
4738 | CAT=$ac_cv_path_CAT | ||
4739 | if test -n "$CAT"; then | ||
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4741 | $as_echo "$CAT" >&6; } | ||
4742 | else | ||
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4744 | $as_echo "no" >&6; } | ||
4745 | fi | ||
4746 | |||
4747 | |||
4748 | # Extract the first word of "kill", so it can be a program name with args. | ||
4749 | set dummy kill; ac_word=$2 | ||
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4751 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4752 | if ${ac_cv_path_KILL+:} false; then : | ||
4753 | $as_echo_n "(cached) " >&6 | ||
4754 | else | ||
4755 | case $KILL in | ||
4756 | [\\/]* | ?:[\\/]*) | ||
4757 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4758 | ;; | ||
4759 | *) | ||
4760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4761 | for as_dir in $PATH | ||
4762 | do | ||
4763 | IFS=$as_save_IFS | ||
4764 | test -z "$as_dir" && as_dir=. | ||
4765 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4767 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4769 | break 2 | ||
4770 | fi | ||
4771 | done | ||
4772 | done | ||
4773 | IFS=$as_save_IFS | ||
4774 | |||
4775 | ;; | ||
4776 | esac | ||
4777 | fi | ||
4778 | KILL=$ac_cv_path_KILL | ||
4779 | if test -n "$KILL"; then | ||
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4781 | $as_echo "$KILL" >&6; } | ||
4782 | else | ||
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4784 | $as_echo "no" >&6; } | ||
4785 | fi | ||
4786 | |||
4787 | |||
4788 | # Extract the first word of "sed", so it can be a program name with args. | ||
4789 | set dummy sed; ac_word=$2 | ||
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4791 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4792 | if ${ac_cv_path_SED+:} false; then : | ||
4793 | $as_echo_n "(cached) " >&6 | ||
4794 | else | ||
4795 | case $SED in | ||
4796 | [\\/]* | ?:[\\/]*) | ||
4797 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4798 | ;; | ||
4799 | *) | ||
4800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4801 | for as_dir in $PATH | ||
4802 | do | ||
4803 | IFS=$as_save_IFS | ||
4804 | test -z "$as_dir" && as_dir=. | ||
4805 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4807 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4809 | break 2 | ||
4810 | fi | ||
4811 | done | ||
4812 | done | ||
4813 | IFS=$as_save_IFS | ||
4814 | |||
4815 | ;; | ||
4816 | esac | ||
4817 | fi | ||
4818 | SED=$ac_cv_path_SED | ||
4819 | if test -n "$SED"; then | ||
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4821 | $as_echo "$SED" >&6; } | ||
4822 | else | ||
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4824 | $as_echo "no" >&6; } | ||
4825 | fi | ||
4826 | |||
4827 | |||
4828 | # Extract the first word of "ent", so it can be a program name with args. | ||
4829 | set dummy ent; ac_word=$2 | ||
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4831 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4832 | if ${ac_cv_path_ENT+:} false; then : | ||
4833 | $as_echo_n "(cached) " >&6 | ||
4834 | else | ||
4835 | case $ENT in | ||
4836 | [\\/]* | ?:[\\/]*) | ||
4837 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4838 | ;; | ||
4839 | *) | ||
4840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4841 | for as_dir in $PATH | ||
4842 | do | ||
4843 | IFS=$as_save_IFS | ||
4844 | test -z "$as_dir" && as_dir=. | ||
4845 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4847 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4849 | break 2 | ||
4850 | fi | ||
4851 | done | ||
4852 | done | ||
4853 | IFS=$as_save_IFS | ||
4854 | |||
4855 | ;; | ||
4856 | esac | ||
4857 | fi | ||
4858 | ENT=$ac_cv_path_ENT | ||
4859 | if test -n "$ENT"; then | ||
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4861 | $as_echo "$ENT" >&6; } | ||
4862 | else | ||
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4864 | $as_echo "no" >&6; } | ||
4865 | fi | ||
4866 | |||
4867 | |||
4868 | |||
4869 | # Extract the first word of "bash", so it can be a program name with args. | ||
4870 | set dummy bash; ac_word=$2 | ||
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4872 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4873 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4874 | $as_echo_n "(cached) " >&6 | ||
4875 | else | ||
4876 | case $TEST_MINUS_S_SH in | ||
4877 | [\\/]* | ?:[\\/]*) | ||
4878 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4879 | ;; | ||
4880 | *) | ||
4881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4882 | for as_dir in $PATH | ||
4883 | do | ||
4884 | IFS=$as_save_IFS | ||
4885 | test -z "$as_dir" && as_dir=. | ||
4886 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4888 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4890 | break 2 | ||
4891 | fi | ||
4892 | done | ||
4893 | done | ||
4894 | IFS=$as_save_IFS | ||
4895 | |||
4896 | ;; | ||
4897 | esac | ||
4898 | fi | ||
4899 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4900 | if test -n "$TEST_MINUS_S_SH"; then | ||
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4902 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4903 | else | ||
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4905 | $as_echo "no" >&6; } | ||
4906 | fi | ||
4907 | |||
4908 | |||
4909 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4910 | set dummy ksh; ac_word=$2 | ||
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4912 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4913 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4914 | $as_echo_n "(cached) " >&6 | ||
4915 | else | ||
4916 | case $TEST_MINUS_S_SH in | ||
4917 | [\\/]* | ?:[\\/]*) | ||
4918 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4919 | ;; | ||
4920 | *) | ||
4921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4922 | for as_dir in $PATH | ||
4923 | do | ||
4924 | IFS=$as_save_IFS | ||
4925 | test -z "$as_dir" && as_dir=. | ||
4926 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4928 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4930 | break 2 | ||
4931 | fi | ||
4932 | done | ||
4933 | done | ||
4934 | IFS=$as_save_IFS | ||
4935 | |||
4936 | ;; | ||
4937 | esac | ||
4938 | fi | ||
4939 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4940 | if test -n "$TEST_MINUS_S_SH"; then | ||
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4942 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4943 | else | ||
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4945 | $as_echo "no" >&6; } | ||
4946 | fi | ||
4947 | |||
4948 | |||
4949 | # Extract the first word of "sh", so it can be a program name with args. | ||
4950 | set dummy sh; ac_word=$2 | ||
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4952 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4953 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4954 | $as_echo_n "(cached) " >&6 | ||
4955 | else | ||
4956 | case $TEST_MINUS_S_SH in | ||
4957 | [\\/]* | ?:[\\/]*) | ||
4958 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4959 | ;; | ||
4960 | *) | ||
4961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4962 | for as_dir in $PATH | ||
4963 | do | ||
4964 | IFS=$as_save_IFS | ||
4965 | test -z "$as_dir" && as_dir=. | ||
4966 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4968 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4970 | break 2 | ||
4971 | fi | ||
4972 | done | ||
4973 | done | ||
4974 | IFS=$as_save_IFS | ||
4975 | |||
4976 | ;; | ||
4977 | esac | ||
4978 | fi | ||
4979 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4980 | if test -n "$TEST_MINUS_S_SH"; then | ||
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4982 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4983 | else | ||
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4985 | $as_echo "no" >&6; } | ||
4986 | fi | ||
4987 | |||
4988 | |||
4989 | # Extract the first word of "sh", so it can be a program name with args. | ||
4990 | set dummy sh; ac_word=$2 | ||
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4992 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4993 | if ${ac_cv_path_SH+:} false; then : | ||
4994 | $as_echo_n "(cached) " >&6 | ||
4995 | else | ||
4996 | case $SH in | ||
4997 | [\\/]* | ?:[\\/]*) | ||
4998 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4999 | ;; | ||
5000 | *) | ||
5001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5002 | for as_dir in $PATH | ||
5003 | do | ||
5004 | IFS=$as_save_IFS | ||
5005 | test -z "$as_dir" && as_dir=. | ||
5006 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5008 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
5009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5010 | break 2 | ||
5011 | fi | ||
5012 | done | ||
5013 | done | ||
5014 | IFS=$as_save_IFS | ||
5015 | |||
5016 | ;; | ||
5017 | esac | ||
5018 | fi | ||
5019 | SH=$ac_cv_path_SH | ||
5020 | if test -n "$SH"; then | ||
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
5022 | $as_echo "$SH" >&6; } | ||
5023 | else | ||
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5025 | $as_echo "no" >&6; } | ||
5026 | fi | ||
5027 | |||
5028 | |||
5029 | # Extract the first word of "groff", so it can be a program name with args. | ||
5030 | set dummy groff; ac_word=$2 | ||
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5032 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5033 | if ${ac_cv_path_GROFF+:} false; then : | ||
5034 | $as_echo_n "(cached) " >&6 | ||
5035 | else | ||
5036 | case $GROFF in | ||
5037 | [\\/]* | ?:[\\/]*) | ||
5038 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
5039 | ;; | ||
5040 | *) | ||
5041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5042 | for as_dir in $PATH | ||
5043 | do | ||
5044 | IFS=$as_save_IFS | ||
5045 | test -z "$as_dir" && as_dir=. | ||
5046 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5048 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5050 | break 2 | ||
5051 | fi | ||
5052 | done | ||
5053 | done | ||
5054 | IFS=$as_save_IFS | ||
5055 | |||
5056 | ;; | ||
5057 | esac | ||
5058 | fi | ||
5059 | GROFF=$ac_cv_path_GROFF | ||
5060 | if test -n "$GROFF"; then | ||
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
5062 | $as_echo "$GROFF" >&6; } | ||
5063 | else | ||
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5065 | $as_echo "no" >&6; } | ||
5066 | fi | ||
5067 | |||
5068 | |||
5069 | # Extract the first word of "nroff", so it can be a program name with args. | ||
5070 | set dummy nroff; ac_word=$2 | ||
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5072 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5073 | if ${ac_cv_path_NROFF+:} false; then : | ||
5074 | $as_echo_n "(cached) " >&6 | ||
5075 | else | ||
5076 | case $NROFF in | ||
5077 | [\\/]* | ?:[\\/]*) | ||
5078 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
5079 | ;; | ||
5080 | *) | ||
5081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5082 | for as_dir in $PATH | ||
5083 | do | ||
5084 | IFS=$as_save_IFS | ||
5085 | test -z "$as_dir" && as_dir=. | ||
5086 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5088 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5090 | break 2 | ||
5091 | fi | ||
5092 | done | ||
5093 | done | ||
5094 | IFS=$as_save_IFS | ||
5095 | |||
5096 | ;; | ||
5097 | esac | ||
5098 | fi | ||
5099 | NROFF=$ac_cv_path_NROFF | ||
5100 | if test -n "$NROFF"; then | ||
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5102 | $as_echo "$NROFF" >&6; } | ||
5103 | else | ||
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5105 | $as_echo "no" >&6; } | ||
5106 | fi | ||
5107 | |||
5108 | |||
5109 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5110 | set dummy mandoc; ac_word=$2 | ||
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5112 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5113 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5114 | $as_echo_n "(cached) " >&6 | ||
5115 | else | ||
5116 | case $MANDOC in | ||
5117 | [\\/]* | ?:[\\/]*) | ||
5118 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5119 | ;; | ||
5120 | *) | ||
5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5122 | for as_dir in $PATH | ||
5123 | do | ||
5124 | IFS=$as_save_IFS | ||
5125 | test -z "$as_dir" && as_dir=. | ||
5126 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5128 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5130 | break 2 | ||
5131 | fi | ||
5132 | done | ||
5133 | done | ||
5134 | IFS=$as_save_IFS | ||
5135 | |||
5136 | ;; | ||
5137 | esac | ||
5138 | fi | ||
5139 | MANDOC=$ac_cv_path_MANDOC | ||
5140 | if test -n "$MANDOC"; then | ||
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5142 | $as_echo "$MANDOC" >&6; } | ||
5143 | else | ||
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5145 | $as_echo "no" >&6; } | ||
5146 | fi | ||
5147 | |||
5148 | |||
5149 | TEST_SHELL=sh | ||
5150 | |||
5151 | |||
5152 | if test "x$MANDOC" != "x" ; then | ||
5153 | MANFMT="$MANDOC" | ||
5154 | elif test "x$NROFF" != "x" ; then | ||
5155 | MANFMT="$NROFF -mandoc" | ||
5156 | elif test "x$GROFF" != "x" ; then | ||
5157 | MANFMT="$GROFF -mandoc -Tascii" | ||
5158 | else | ||
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5160 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5161 | MANFMT="false" | ||
5162 | fi | ||
5163 | |||
5164 | |||
5165 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5166 | set dummy groupadd; ac_word=$2 | ||
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5168 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5169 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5170 | $as_echo_n "(cached) " >&6 | ||
5171 | else | ||
5172 | case $PATH_GROUPADD_PROG in | ||
5173 | [\\/]* | ?:[\\/]*) | ||
5174 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5175 | ;; | ||
5176 | *) | ||
5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5178 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5179 | do | ||
5180 | IFS=$as_save_IFS | ||
5181 | test -z "$as_dir" && as_dir=. | ||
5182 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5184 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5186 | break 2 | ||
5187 | fi | ||
5188 | done | ||
5189 | done | ||
5190 | IFS=$as_save_IFS | ||
5191 | |||
5192 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5193 | ;; | ||
5194 | esac | ||
5195 | fi | ||
5196 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5197 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5199 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5200 | else | ||
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5202 | $as_echo "no" >&6; } | ||
5203 | fi | ||
5204 | |||
5205 | |||
5206 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5207 | set dummy useradd; ac_word=$2 | ||
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5209 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5210 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5211 | $as_echo_n "(cached) " >&6 | ||
5212 | else | ||
5213 | case $PATH_USERADD_PROG in | ||
5214 | [\\/]* | ?:[\\/]*) | ||
5215 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5216 | ;; | ||
5217 | *) | ||
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5219 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5220 | do | ||
5221 | IFS=$as_save_IFS | ||
5222 | test -z "$as_dir" && as_dir=. | ||
5223 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5225 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5227 | break 2 | ||
5228 | fi | ||
5229 | done | ||
5230 | done | ||
5231 | IFS=$as_save_IFS | ||
5232 | |||
5233 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5234 | ;; | ||
5235 | esac | ||
5236 | fi | ||
5237 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5238 | if test -n "$PATH_USERADD_PROG"; then | ||
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5240 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5241 | else | ||
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5243 | $as_echo "no" >&6; } | ||
5244 | fi | ||
5245 | |||
5246 | |||
5247 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5248 | set dummy pkgmk; ac_word=$2 | ||
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5250 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5251 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5252 | $as_echo_n "(cached) " >&6 | ||
5253 | else | ||
5254 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5255 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5256 | else | ||
5257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5258 | for as_dir in $PATH | ||
5259 | do | ||
5260 | IFS=$as_save_IFS | ||
5261 | test -z "$as_dir" && as_dir=. | ||
5262 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5264 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5266 | break 2 | ||
5267 | fi | ||
5268 | done | ||
5269 | done | ||
5270 | IFS=$as_save_IFS | ||
5271 | |||
5272 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5273 | fi | ||
5274 | fi | ||
5275 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5276 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5278 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5279 | else | ||
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5281 | $as_echo "no" >&6; } | ||
5282 | fi | ||
5283 | |||
5284 | |||
5285 | if test -x /sbin/sh; then | ||
5286 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5287 | |||
5288 | else | ||
5289 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5290 | |||
5291 | fi | ||
5292 | |||
5293 | # System features | ||
5294 | # Check whether --enable-largefile was given. | ||
5295 | if test "${enable_largefile+set}" = set; then : | ||
5296 | enableval=$enable_largefile; | ||
5297 | fi | ||
5298 | |||
5299 | if test "$enable_largefile" != no; then | ||
5300 | |||
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5302 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5303 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5304 | $as_echo_n "(cached) " >&6 | ||
5305 | else | ||
5306 | ac_cv_sys_largefile_CC=no | ||
5307 | if test "$GCC" != yes; then | ||
5308 | ac_save_CC=$CC | ||
5309 | while :; do | ||
5310 | # IRIX 6.2 and later do not support large files by default, | ||
5311 | # so use the C compiler's -n32 option if that helps. | ||
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5313 | /* end confdefs.h. */ | ||
5314 | #include <sys/types.h> | ||
5315 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5316 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5317 | since some C++ compilers masquerading as C compilers | ||
5318 | incorrectly reject 9223372036854775807. */ | ||
5319 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5320 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5321 | && LARGE_OFF_T % 2147483647 == 1) | ||
5322 | ? 1 : -1]; | ||
5323 | int | ||
5324 | main () | ||
5325 | { | ||
5326 | |||
5327 | ; | ||
5328 | return 0; | ||
5329 | } | ||
5330 | _ACEOF | ||
5331 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5332 | break | ||
5333 | fi | ||
5334 | rm -f core conftest.err conftest.$ac_objext | ||
5335 | CC="$CC -n32" | ||
5336 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5337 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5338 | fi | ||
5339 | rm -f core conftest.err conftest.$ac_objext | ||
5340 | break | ||
5341 | done | ||
5342 | CC=$ac_save_CC | ||
5343 | rm -f conftest.$ac_ext | ||
5344 | fi | ||
5345 | fi | ||
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5347 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5348 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5349 | CC=$CC$ac_cv_sys_largefile_CC | ||
5350 | fi | ||
5351 | |||
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5353 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5354 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5355 | $as_echo_n "(cached) " >&6 | ||
5356 | else | ||
5357 | while :; do | ||
5358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5359 | /* end confdefs.h. */ | ||
5360 | #include <sys/types.h> | ||
5361 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5362 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5363 | since some C++ compilers masquerading as C compilers | ||
5364 | incorrectly reject 9223372036854775807. */ | ||
5365 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5366 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5367 | && LARGE_OFF_T % 2147483647 == 1) | ||
5368 | ? 1 : -1]; | ||
5369 | int | ||
5370 | main () | ||
5371 | { | ||
5372 | |||
5373 | ; | ||
5374 | return 0; | ||
5375 | } | ||
5376 | _ACEOF | ||
5377 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5378 | ac_cv_sys_file_offset_bits=no; break | ||
5379 | fi | ||
5380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5382 | /* end confdefs.h. */ | ||
5383 | #define _FILE_OFFSET_BITS 64 | ||
5384 | #include <sys/types.h> | ||
5385 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5386 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5387 | since some C++ compilers masquerading as C compilers | ||
5388 | incorrectly reject 9223372036854775807. */ | ||
5389 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5390 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5391 | && LARGE_OFF_T % 2147483647 == 1) | ||
5392 | ? 1 : -1]; | ||
5393 | int | ||
5394 | main () | ||
5395 | { | ||
5396 | |||
5397 | ; | ||
5398 | return 0; | ||
5399 | } | ||
5400 | _ACEOF | ||
5401 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5402 | ac_cv_sys_file_offset_bits=64; break | ||
5403 | fi | ||
5404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5405 | ac_cv_sys_file_offset_bits=unknown | ||
5406 | break | ||
5407 | done | ||
5408 | fi | ||
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5410 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5411 | case $ac_cv_sys_file_offset_bits in #( | ||
5412 | no | unknown) ;; | ||
5413 | *) | ||
5414 | cat >>confdefs.h <<_ACEOF | ||
5415 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5416 | _ACEOF | ||
5417 | ;; | ||
5418 | esac | ||
5419 | rm -rf conftest* | ||
5420 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5422 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5423 | if ${ac_cv_sys_large_files+:} false; then : | ||
5424 | $as_echo_n "(cached) " >&6 | ||
5425 | else | ||
5426 | while :; do | ||
5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5428 | /* end confdefs.h. */ | ||
5429 | #include <sys/types.h> | ||
5430 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5431 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5432 | since some C++ compilers masquerading as C compilers | ||
5433 | incorrectly reject 9223372036854775807. */ | ||
5434 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5435 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5436 | && LARGE_OFF_T % 2147483647 == 1) | ||
5437 | ? 1 : -1]; | ||
5438 | int | ||
5439 | main () | ||
5440 | { | ||
5441 | |||
5442 | ; | ||
5443 | return 0; | ||
5444 | } | ||
5445 | _ACEOF | ||
5446 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5447 | ac_cv_sys_large_files=no; break | ||
5448 | fi | ||
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5451 | /* end confdefs.h. */ | ||
5452 | #define _LARGE_FILES 1 | ||
5453 | #include <sys/types.h> | ||
5454 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5455 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5456 | since some C++ compilers masquerading as C compilers | ||
5457 | incorrectly reject 9223372036854775807. */ | ||
5458 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5459 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5460 | && LARGE_OFF_T % 2147483647 == 1) | ||
5461 | ? 1 : -1]; | ||
5462 | int | ||
5463 | main () | ||
5464 | { | ||
5465 | |||
5466 | ; | ||
5467 | return 0; | ||
5468 | } | ||
5469 | _ACEOF | ||
5470 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5471 | ac_cv_sys_large_files=1; break | ||
5472 | fi | ||
5473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5474 | ac_cv_sys_large_files=unknown | ||
5475 | break | ||
5476 | done | ||
5477 | fi | ||
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5479 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5480 | case $ac_cv_sys_large_files in #( | ||
5481 | no | unknown) ;; | ||
5482 | *) | ||
5483 | cat >>confdefs.h <<_ACEOF | ||
5484 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5485 | _ACEOF | ||
5486 | ;; | ||
5487 | esac | ||
5488 | rm -rf conftest* | ||
5489 | fi | ||
5490 | |||
5491 | |||
5492 | fi | ||
5493 | |||
5494 | |||
5495 | if test -z "$AR" ; then | ||
5496 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5497 | fi | ||
5498 | |||
5499 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5500 | set dummy passwd; ac_word=$2 | ||
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5502 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5503 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5504 | $as_echo_n "(cached) " >&6 | ||
5505 | else | ||
5506 | case $PATH_PASSWD_PROG in | ||
5507 | [\\/]* | ?:[\\/]*) | ||
5508 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5509 | ;; | ||
5510 | *) | ||
5511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5512 | for as_dir in $PATH | ||
5513 | do | ||
5514 | IFS=$as_save_IFS | ||
5515 | test -z "$as_dir" && as_dir=. | ||
5516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5518 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5520 | break 2 | ||
5521 | fi | ||
5522 | done | ||
5523 | done | ||
5524 | IFS=$as_save_IFS | ||
5525 | |||
5526 | ;; | ||
5527 | esac | ||
5528 | fi | ||
5529 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5530 | if test -n "$PATH_PASSWD_PROG"; then | ||
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5532 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5533 | else | ||
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5535 | $as_echo "no" >&6; } | ||
5536 | fi | ||
5537 | |||
5538 | |||
5539 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5540 | |||
5541 | cat >>confdefs.h <<_ACEOF | ||
5542 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5543 | _ACEOF | ||
5544 | |||
5545 | fi | ||
5546 | |||
5547 | LD="$CC" | ||
5548 | |||
5549 | |||
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5551 | $as_echo_n "checking for inline... " >&6; } | ||
5552 | if ${ac_cv_c_inline+:} false; then : | ||
5553 | $as_echo_n "(cached) " >&6 | ||
5554 | else | ||
5555 | ac_cv_c_inline=no | ||
5556 | for ac_kw in inline __inline__ __inline; do | ||
5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5558 | /* end confdefs.h. */ | ||
5559 | #ifndef __cplusplus | ||
5560 | typedef int foo_t; | ||
5561 | static $ac_kw foo_t static_foo () {return 0; } | ||
5562 | $ac_kw foo_t foo () {return 0; } | ||
5563 | #endif | ||
5564 | |||
5565 | _ACEOF | ||
5566 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5567 | ac_cv_c_inline=$ac_kw | ||
5568 | fi | ||
5569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5570 | test "$ac_cv_c_inline" != no && break | ||
5571 | done | ||
5572 | |||
5573 | fi | ||
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5575 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5576 | |||
5577 | case $ac_cv_c_inline in | ||
5578 | inline | yes) ;; | ||
5579 | *) | ||
5580 | case $ac_cv_c_inline in | ||
5581 | no) ac_val=;; | ||
5582 | *) ac_val=$ac_cv_c_inline;; | ||
5583 | esac | ||
5584 | cat >>confdefs.h <<_ACEOF | ||
5585 | #ifndef __cplusplus | ||
5586 | #define inline $ac_val | ||
5587 | #endif | ||
5588 | _ACEOF | ||
5589 | ;; | ||
5590 | esac | ||
5591 | |||
5592 | |||
5593 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5594 | " | ||
5595 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5596 | have_llong_max=1 | ||
5597 | fi | ||
5598 | |||
5599 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5600 | #include <sys/types.h> | ||
5601 | #include <sys/param.h> | ||
5602 | #include <dev/systrace.h> | ||
5603 | |||
5604 | " | ||
5605 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5606 | have_systr_policy_kill=1 | ||
5607 | fi | ||
5608 | |||
5609 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5610 | #include <sys/types.h> | ||
5611 | #include <sys/resource.h> | ||
5612 | |||
5613 | " | ||
5614 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5615 | |||
5616 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5617 | |||
5618 | fi | ||
5619 | |||
5620 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5621 | #include <sys/types.h> | ||
5622 | #include <linux/prctl.h> | ||
5623 | |||
5624 | " | ||
5625 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5626 | have_linux_no_new_privs=1 | ||
5627 | fi | ||
5628 | |||
5629 | |||
5630 | openssl=yes | ||
5631 | |||
5632 | # Check whether --with-openssl was given. | ||
5633 | if test "${with_openssl+set}" = set; then : | ||
5634 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5635 | openssl=no | ||
5636 | fi | ||
5637 | |||
5638 | |||
5639 | fi | ||
5640 | |||
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 | ||
5642 | $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } | ||
5643 | if test "x$openssl" = "xyes" ; then | ||
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5645 | $as_echo "yes" >&6; } | ||
5646 | |||
5647 | cat >>confdefs.h <<_ACEOF | ||
5648 | #define WITH_OPENSSL 1 | ||
5649 | _ACEOF | ||
5650 | |||
5651 | else | ||
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5653 | $as_echo "no" >&6; } | ||
5654 | fi | ||
5655 | |||
5656 | use_stack_protector=1 | ||
5657 | use_toolchain_hardening=1 | ||
5658 | |||
5659 | # Check whether --with-stackprotect was given. | ||
5660 | if test "${with_stackprotect+set}" = set; then : | ||
5661 | withval=$with_stackprotect; | ||
5662 | if test "x$withval" = "xno"; then | ||
5663 | use_stack_protector=0 | ||
5664 | fi | ||
5665 | fi | ||
5666 | |||
5667 | |||
5668 | # Check whether --with-hardening was given. | ||
5669 | if test "${with_hardening+set}" = set; then : | ||
5670 | withval=$with_hardening; | ||
5671 | if test "x$withval" = "xno"; then | ||
5672 | use_toolchain_hardening=0 | ||
5673 | fi | ||
5674 | fi | ||
5675 | |||
5676 | |||
5677 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5678 | # on by default" for things like -fPIE. | ||
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | ||
5680 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | ||
5681 | saved_CFLAGS="$CFLAGS" | ||
5682 | CFLAGS="$CFLAGS -Werror" | ||
5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5684 | /* end confdefs.h. */ | ||
5685 | int main(void) { return 0; } | ||
5686 | _ACEOF | ||
5687 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5689 | $as_echo "yes" >&6; } | ||
5690 | WERROR="-Werror" | ||
5691 | else | ||
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5693 | $as_echo "no" >&6; } | ||
5694 | WERROR="" | ||
5695 | |||
5696 | fi | ||
5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5698 | CFLAGS="$saved_CFLAGS" | ||
5699 | |||
5700 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5701 | { | ||
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5 | ||
5703 | $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; } | ||
5704 | saved_CFLAGS="$CFLAGS" | ||
5705 | CFLAGS="$CFLAGS $WERROR -pipe" | ||
5706 | _define_flag="" | ||
5707 | test "x$_define_flag" = "x" && _define_flag="-pipe" | ||
5708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5709 | /* end confdefs.h. */ | ||
5710 | |||
5711 | #include <stdlib.h> | ||
5712 | #include <stdio.h> | ||
5713 | int main(int argc, char **argv) { | ||
5714 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5715 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5716 | float l = i * 2.1; | ||
5717 | double m = l / 0.5; | ||
5718 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5719 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5720 | exit(0); | ||
5721 | } | ||
5722 | |||
5723 | _ACEOF | ||
5724 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5725 | |||
5726 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5727 | then | ||
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5729 | $as_echo "no" >&6; } | ||
5730 | CFLAGS="$saved_CFLAGS" | ||
5731 | else | ||
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5733 | $as_echo "yes" >&6; } | ||
5734 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5735 | fi | ||
5736 | else | ||
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5738 | $as_echo "no" >&6; } | ||
5739 | CFLAGS="$saved_CFLAGS" | ||
5740 | |||
5741 | fi | ||
5742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5743 | } | ||
5744 | { | ||
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5746 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | ||
5747 | saved_CFLAGS="$CFLAGS" | ||
5748 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5749 | _define_flag="" | ||
5750 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5752 | /* end confdefs.h. */ | ||
5753 | |||
5754 | #include <stdlib.h> | ||
5755 | #include <stdio.h> | ||
5756 | int main(int argc, char **argv) { | ||
5757 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5758 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5759 | float l = i * 2.1; | ||
5760 | double m = l / 0.5; | ||
5761 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5762 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5763 | exit(0); | ||
5764 | } | ||
5765 | |||
5766 | _ACEOF | ||
5767 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5768 | |||
5769 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5770 | then | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5772 | $as_echo "no" >&6; } | ||
5773 | CFLAGS="$saved_CFLAGS" | ||
5774 | else | ||
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5776 | $as_echo "yes" >&6; } | ||
5777 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5778 | fi | ||
5779 | else | ||
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5781 | $as_echo "no" >&6; } | ||
5782 | CFLAGS="$saved_CFLAGS" | ||
5783 | |||
5784 | fi | ||
5785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5786 | } | ||
5787 | { | ||
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5789 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } | ||
5790 | saved_CFLAGS="$CFLAGS" | ||
5791 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5792 | _define_flag="" | ||
5793 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5795 | /* end confdefs.h. */ | ||
5796 | |||
5797 | #include <stdlib.h> | ||
5798 | #include <stdio.h> | ||
5799 | int main(int argc, char **argv) { | ||
5800 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5801 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5802 | float l = i * 2.1; | ||
5803 | double m = l / 0.5; | ||
5804 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5805 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5806 | exit(0); | ||
5807 | } | ||
5808 | |||
5809 | _ACEOF | ||
5810 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5811 | |||
5812 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5813 | then | ||
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5815 | $as_echo "no" >&6; } | ||
5816 | CFLAGS="$saved_CFLAGS" | ||
5817 | else | ||
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5819 | $as_echo "yes" >&6; } | ||
5820 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5821 | fi | ||
5822 | else | ||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5824 | $as_echo "no" >&6; } | ||
5825 | CFLAGS="$saved_CFLAGS" | ||
5826 | |||
5827 | fi | ||
5828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5829 | } | ||
5830 | { | ||
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 | ||
5832 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | ||
5833 | saved_CFLAGS="$CFLAGS" | ||
5834 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
5835 | _define_flag="" | ||
5836 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5838 | /* end confdefs.h. */ | ||
5839 | |||
5840 | #include <stdlib.h> | ||
5841 | #include <stdio.h> | ||
5842 | int main(int argc, char **argv) { | ||
5843 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5844 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5845 | float l = i * 2.1; | ||
5846 | double m = l / 0.5; | ||
5847 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5848 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5849 | exit(0); | ||
5850 | } | ||
5851 | |||
5852 | _ACEOF | ||
5853 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5854 | |||
5855 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5856 | then | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5858 | $as_echo "no" >&6; } | ||
5859 | CFLAGS="$saved_CFLAGS" | ||
5860 | else | ||
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5862 | $as_echo "yes" >&6; } | ||
5863 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5864 | fi | ||
5865 | else | ||
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5867 | $as_echo "no" >&6; } | ||
5868 | CFLAGS="$saved_CFLAGS" | ||
5869 | |||
5870 | fi | ||
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5872 | } | ||
5873 | { | ||
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
5875 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | ||
5876 | saved_CFLAGS="$CFLAGS" | ||
5877 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
5878 | _define_flag="" | ||
5879 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5881 | /* end confdefs.h. */ | ||
5882 | |||
5883 | #include <stdlib.h> | ||
5884 | #include <stdio.h> | ||
5885 | int main(int argc, char **argv) { | ||
5886 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5887 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5888 | float l = i * 2.1; | ||
5889 | double m = l / 0.5; | ||
5890 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5891 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5892 | exit(0); | ||
5893 | } | ||
5894 | |||
5895 | _ACEOF | ||
5896 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5897 | |||
5898 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5899 | then | ||
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5901 | $as_echo "no" >&6; } | ||
5902 | CFLAGS="$saved_CFLAGS" | ||
5903 | else | ||
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5905 | $as_echo "yes" >&6; } | ||
5906 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5907 | fi | ||
5908 | else | ||
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5910 | $as_echo "no" >&6; } | ||
5911 | CFLAGS="$saved_CFLAGS" | ||
5912 | |||
5913 | fi | ||
5914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5915 | } | ||
5916 | { | ||
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
5918 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | ||
5919 | saved_CFLAGS="$CFLAGS" | ||
5920 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
5921 | _define_flag="" | ||
5922 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5924 | /* end confdefs.h. */ | ||
5925 | |||
5926 | #include <stdlib.h> | ||
5927 | #include <stdio.h> | ||
5928 | int main(int argc, char **argv) { | ||
5929 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5930 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5931 | float l = i * 2.1; | ||
5932 | double m = l / 0.5; | ||
5933 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5934 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5935 | exit(0); | ||
5936 | } | ||
5937 | |||
5938 | _ACEOF | ||
5939 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5940 | |||
5941 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5942 | then | ||
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5944 | $as_echo "no" >&6; } | ||
5945 | CFLAGS="$saved_CFLAGS" | ||
5946 | else | ||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5948 | $as_echo "yes" >&6; } | ||
5949 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5950 | fi | ||
5951 | else | ||
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5953 | $as_echo "no" >&6; } | ||
5954 | CFLAGS="$saved_CFLAGS" | ||
5955 | |||
5956 | fi | ||
5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5958 | } | ||
5959 | { | ||
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
5961 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | ||
5962 | saved_CFLAGS="$CFLAGS" | ||
5963 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
5964 | _define_flag="" | ||
5965 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5967 | /* end confdefs.h. */ | ||
5968 | |||
5969 | #include <stdlib.h> | ||
5970 | #include <stdio.h> | ||
5971 | int main(int argc, char **argv) { | ||
5972 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5973 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5974 | float l = i * 2.1; | ||
5975 | double m = l / 0.5; | ||
5976 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5977 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5978 | exit(0); | ||
5979 | } | ||
5980 | |||
5981 | _ACEOF | ||
5982 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5983 | |||
5984 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5985 | then | ||
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5987 | $as_echo "no" >&6; } | ||
5988 | CFLAGS="$saved_CFLAGS" | ||
5989 | else | ||
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5991 | $as_echo "yes" >&6; } | ||
5992 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5993 | fi | ||
5994 | else | ||
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5996 | $as_echo "no" >&6; } | ||
5997 | CFLAGS="$saved_CFLAGS" | ||
5998 | |||
5999 | fi | ||
6000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6001 | } | ||
6002 | { | ||
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6004 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | ||
6005 | saved_CFLAGS="$CFLAGS" | ||
6006 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6007 | _define_flag="" | ||
6008 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6010 | /* end confdefs.h. */ | ||
6011 | |||
6012 | #include <stdlib.h> | ||
6013 | #include <stdio.h> | ||
6014 | int main(int argc, char **argv) { | ||
6015 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6016 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6017 | float l = i * 2.1; | ||
6018 | double m = l / 0.5; | ||
6019 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6020 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6021 | exit(0); | ||
6022 | } | ||
6023 | |||
6024 | _ACEOF | ||
6025 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6026 | |||
6027 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6028 | then | ||
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6030 | $as_echo "no" >&6; } | ||
6031 | CFLAGS="$saved_CFLAGS" | ||
6032 | else | ||
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6034 | $as_echo "yes" >&6; } | ||
6035 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6036 | fi | ||
6037 | else | ||
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6039 | $as_echo "no" >&6; } | ||
6040 | CFLAGS="$saved_CFLAGS" | ||
6041 | |||
6042 | fi | ||
6043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6044 | } | ||
6045 | { | ||
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6047 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } | ||
6048 | saved_CFLAGS="$CFLAGS" | ||
6049 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6050 | _define_flag="" | ||
6051 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6053 | /* end confdefs.h. */ | ||
6054 | |||
6055 | #include <stdlib.h> | ||
6056 | #include <stdio.h> | ||
6057 | int main(int argc, char **argv) { | ||
6058 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6059 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6060 | float l = i * 2.1; | ||
6061 | double m = l / 0.5; | ||
6062 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6063 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6064 | exit(0); | ||
6065 | } | ||
6066 | |||
6067 | _ACEOF | ||
6068 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6069 | |||
6070 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6071 | then | ||
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6073 | $as_echo "no" >&6; } | ||
6074 | CFLAGS="$saved_CFLAGS" | ||
6075 | else | ||
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6077 | $as_echo "yes" >&6; } | ||
6078 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6079 | fi | ||
6080 | else | ||
6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6082 | $as_echo "no" >&6; } | ||
6083 | CFLAGS="$saved_CFLAGS" | ||
6084 | |||
6085 | fi | ||
6086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6087 | } | ||
6088 | { | ||
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6090 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | ||
6091 | saved_CFLAGS="$CFLAGS" | ||
6092 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6093 | _define_flag="-Wno-pointer-sign" | ||
6094 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6096 | /* end confdefs.h. */ | ||
6097 | |||
6098 | #include <stdlib.h> | ||
6099 | #include <stdio.h> | ||
6100 | int main(int argc, char **argv) { | ||
6101 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6102 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6103 | float l = i * 2.1; | ||
6104 | double m = l / 0.5; | ||
6105 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6106 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6107 | exit(0); | ||
6108 | } | ||
6109 | |||
6110 | _ACEOF | ||
6111 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6112 | |||
6113 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6114 | then | ||
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6116 | $as_echo "no" >&6; } | ||
6117 | CFLAGS="$saved_CFLAGS" | ||
6118 | else | ||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6120 | $as_echo "yes" >&6; } | ||
6121 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6122 | fi | ||
6123 | else | ||
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6125 | $as_echo "no" >&6; } | ||
6126 | CFLAGS="$saved_CFLAGS" | ||
6127 | |||
6128 | fi | ||
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6130 | } | ||
6131 | { | ||
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6133 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | ||
6134 | saved_CFLAGS="$CFLAGS" | ||
6135 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6136 | _define_flag="-Wno-unused-result" | ||
6137 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6139 | /* end confdefs.h. */ | ||
6140 | |||
6141 | #include <stdlib.h> | ||
6142 | #include <stdio.h> | ||
6143 | int main(int argc, char **argv) { | ||
6144 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6145 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6146 | float l = i * 2.1; | ||
6147 | double m = l / 0.5; | ||
6148 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6149 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6150 | exit(0); | ||
6151 | } | ||
6152 | |||
6153 | _ACEOF | ||
6154 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6155 | |||
6156 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6157 | then | ||
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6159 | $as_echo "no" >&6; } | ||
6160 | CFLAGS="$saved_CFLAGS" | ||
6161 | else | ||
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6163 | $as_echo "yes" >&6; } | ||
6164 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6165 | fi | ||
6166 | else | ||
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6168 | $as_echo "no" >&6; } | ||
6169 | CFLAGS="$saved_CFLAGS" | ||
6170 | |||
6171 | fi | ||
6172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6173 | } | ||
6174 | { | ||
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6176 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } | ||
6177 | saved_CFLAGS="$CFLAGS" | ||
6178 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6179 | _define_flag="" | ||
6180 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6182 | /* end confdefs.h. */ | ||
6183 | |||
6184 | #include <stdlib.h> | ||
6185 | #include <stdio.h> | ||
6186 | int main(int argc, char **argv) { | ||
6187 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6188 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6189 | float l = i * 2.1; | ||
6190 | double m = l / 0.5; | ||
6191 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6192 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6193 | exit(0); | ||
6194 | } | ||
6195 | |||
6196 | _ACEOF | ||
6197 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6198 | |||
6199 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6200 | then | ||
6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6202 | $as_echo "no" >&6; } | ||
6203 | CFLAGS="$saved_CFLAGS" | ||
6204 | else | ||
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6206 | $as_echo "yes" >&6; } | ||
6207 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6208 | fi | ||
6209 | else | ||
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6211 | $as_echo "no" >&6; } | ||
6212 | CFLAGS="$saved_CFLAGS" | ||
6213 | |||
6214 | fi | ||
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6216 | } | ||
6217 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6218 | # Cygwin GCC 7.x allows thunking on the CLI, but produces non-working | ||
6219 | # code. Unfortunately you only notice this at link time. | ||
6220 | case "$host" in | ||
6221 | *-*-cygwin*) ;; | ||
6222 | *) | ||
6223 | { | ||
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mfunction-return=thunk" >&5 | ||
6225 | $as_echo_n "checking if $CC supports compile flag -mfunction-return=thunk... " >&6; } | ||
6226 | saved_CFLAGS="$CFLAGS" | ||
6227 | CFLAGS="$CFLAGS $WERROR -mfunction-return=thunk" | ||
6228 | _define_flag="" | ||
6229 | test "x$_define_flag" = "x" && _define_flag="-mfunction-return=thunk" | ||
6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6231 | /* end confdefs.h. */ | ||
6232 | |||
6233 | #include <stdlib.h> | ||
6234 | #include <stdio.h> | ||
6235 | int main(int argc, char **argv) { | ||
6236 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6237 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6238 | float l = i * 2.1; | ||
6239 | double m = l / 0.5; | ||
6240 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6241 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6242 | exit(0); | ||
6243 | } | ||
6244 | |||
6245 | _ACEOF | ||
6246 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6247 | |||
6248 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6249 | then | ||
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6251 | $as_echo "no" >&6; } | ||
6252 | CFLAGS="$saved_CFLAGS" | ||
6253 | else | ||
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6255 | $as_echo "yes" >&6; } | ||
6256 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6257 | fi | ||
6258 | else | ||
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6260 | $as_echo "no" >&6; } | ||
6261 | CFLAGS="$saved_CFLAGS" | ||
6262 | |||
6263 | fi | ||
6264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6265 | } # gcc | ||
6266 | { | ||
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mindirect-branch=thunk" >&5 | ||
6268 | $as_echo_n "checking if $CC supports compile flag -mindirect-branch=thunk... " >&6; } | ||
6269 | saved_CFLAGS="$CFLAGS" | ||
6270 | CFLAGS="$CFLAGS $WERROR -mindirect-branch=thunk" | ||
6271 | _define_flag="" | ||
6272 | test "x$_define_flag" = "x" && _define_flag="-mindirect-branch=thunk" | ||
6273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6274 | /* end confdefs.h. */ | ||
6275 | |||
6276 | #include <stdlib.h> | ||
6277 | #include <stdio.h> | ||
6278 | int main(int argc, char **argv) { | ||
6279 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6280 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6281 | float l = i * 2.1; | ||
6282 | double m = l / 0.5; | ||
6283 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6284 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6285 | exit(0); | ||
6286 | } | ||
6287 | |||
6288 | _ACEOF | ||
6289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6290 | |||
6291 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6292 | then | ||
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6294 | $as_echo "no" >&6; } | ||
6295 | CFLAGS="$saved_CFLAGS" | ||
6296 | else | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6298 | $as_echo "yes" >&6; } | ||
6299 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6300 | fi | ||
6301 | else | ||
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6303 | $as_echo "no" >&6; } | ||
6304 | CFLAGS="$saved_CFLAGS" | ||
6305 | |||
6306 | fi | ||
6307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6308 | } # gcc | ||
6309 | ;; | ||
6310 | esac | ||
6311 | { | ||
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5 | ||
6313 | $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } | ||
6314 | saved_CFLAGS="$CFLAGS" | ||
6315 | CFLAGS="$CFLAGS $WERROR -mretpoline" | ||
6316 | _define_flag="" | ||
6317 | test "x$_define_flag" = "x" && _define_flag="-mretpoline" | ||
6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6319 | /* end confdefs.h. */ | ||
6320 | |||
6321 | #include <stdlib.h> | ||
6322 | #include <stdio.h> | ||
6323 | int main(int argc, char **argv) { | ||
6324 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6325 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6326 | float l = i * 2.1; | ||
6327 | double m = l / 0.5; | ||
6328 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6329 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6330 | exit(0); | ||
6331 | } | ||
6332 | |||
6333 | _ACEOF | ||
6334 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6335 | |||
6336 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6337 | then | ||
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6339 | $as_echo "no" >&6; } | ||
6340 | CFLAGS="$saved_CFLAGS" | ||
6341 | else | ||
6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6343 | $as_echo "yes" >&6; } | ||
6344 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6345 | fi | ||
6346 | else | ||
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6348 | $as_echo "no" >&6; } | ||
6349 | CFLAGS="$saved_CFLAGS" | ||
6350 | |||
6351 | fi | ||
6352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6353 | } # clang | ||
6354 | { | ||
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5 | ||
6356 | $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; } | ||
6357 | saved_LDFLAGS="$LDFLAGS" | ||
6358 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt" | ||
6359 | _define_flag="" | ||
6360 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt" | ||
6361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6362 | /* end confdefs.h. */ | ||
6363 | |||
6364 | #include <stdlib.h> | ||
6365 | #include <stdio.h> | ||
6366 | int main(int argc, char **argv) { | ||
6367 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6368 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6369 | float l = i * 2.1; | ||
6370 | double m = l / 0.5; | ||
6371 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6372 | long long p = n * o; | ||
6373 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6374 | exit(0); | ||
6375 | } | ||
6376 | |||
6377 | _ACEOF | ||
6378 | if ac_fn_c_try_link "$LINENO"; then : | ||
6379 | |||
6380 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6381 | then | ||
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6383 | $as_echo "no" >&6; } | ||
6384 | LDFLAGS="$saved_LDFLAGS" | ||
6385 | else | ||
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6387 | $as_echo "yes" >&6; } | ||
6388 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6389 | fi | ||
6390 | else | ||
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6392 | $as_echo "no" >&6; } | ||
6393 | LDFLAGS="$saved_LDFLAGS" | ||
6394 | |||
6395 | fi | ||
6396 | rm -f core conftest.err conftest.$ac_objext \ | ||
6397 | conftest$ac_exeext conftest.$ac_ext | ||
6398 | } | ||
6399 | { | ||
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6401 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | ||
6402 | saved_CFLAGS="$CFLAGS" | ||
6403 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6404 | _define_flag="" | ||
6405 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6407 | /* end confdefs.h. */ | ||
6408 | |||
6409 | #include <stdlib.h> | ||
6410 | #include <stdio.h> | ||
6411 | int main(int argc, char **argv) { | ||
6412 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6413 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6414 | float l = i * 2.1; | ||
6415 | double m = l / 0.5; | ||
6416 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6417 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6418 | exit(0); | ||
6419 | } | ||
6420 | |||
6421 | _ACEOF | ||
6422 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6423 | |||
6424 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6425 | then | ||
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6427 | $as_echo "no" >&6; } | ||
6428 | CFLAGS="$saved_CFLAGS" | ||
6429 | else | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6431 | $as_echo "yes" >&6; } | ||
6432 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6433 | fi | ||
6434 | else | ||
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6436 | $as_echo "no" >&6; } | ||
6437 | CFLAGS="$saved_CFLAGS" | ||
6438 | |||
6439 | fi | ||
6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6441 | } | ||
6442 | { | ||
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6444 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | ||
6445 | saved_LDFLAGS="$LDFLAGS" | ||
6446 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6447 | _define_flag="" | ||
6448 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6450 | /* end confdefs.h. */ | ||
6451 | |||
6452 | #include <stdlib.h> | ||
6453 | #include <stdio.h> | ||
6454 | int main(int argc, char **argv) { | ||
6455 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6456 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6457 | float l = i * 2.1; | ||
6458 | double m = l / 0.5; | ||
6459 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6460 | long long p = n * o; | ||
6461 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6462 | exit(0); | ||
6463 | } | ||
6464 | |||
6465 | _ACEOF | ||
6466 | if ac_fn_c_try_link "$LINENO"; then : | ||
6467 | |||
6468 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6469 | then | ||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6471 | $as_echo "no" >&6; } | ||
6472 | LDFLAGS="$saved_LDFLAGS" | ||
6473 | else | ||
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6475 | $as_echo "yes" >&6; } | ||
6476 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6477 | fi | ||
6478 | else | ||
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6480 | $as_echo "no" >&6; } | ||
6481 | LDFLAGS="$saved_LDFLAGS" | ||
6482 | |||
6483 | fi | ||
6484 | rm -f core conftest.err conftest.$ac_objext \ | ||
6485 | conftest$ac_exeext conftest.$ac_ext | ||
6486 | } | ||
6487 | { | ||
6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6489 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | ||
6490 | saved_LDFLAGS="$LDFLAGS" | ||
6491 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6492 | _define_flag="" | ||
6493 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6495 | /* end confdefs.h. */ | ||
6496 | |||
6497 | #include <stdlib.h> | ||
6498 | #include <stdio.h> | ||
6499 | int main(int argc, char **argv) { | ||
6500 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6501 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6502 | float l = i * 2.1; | ||
6503 | double m = l / 0.5; | ||
6504 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6505 | long long p = n * o; | ||
6506 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6507 | exit(0); | ||
6508 | } | ||
6509 | |||
6510 | _ACEOF | ||
6511 | if ac_fn_c_try_link "$LINENO"; then : | ||
6512 | |||
6513 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6514 | then | ||
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6516 | $as_echo "no" >&6; } | ||
6517 | LDFLAGS="$saved_LDFLAGS" | ||
6518 | else | ||
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6520 | $as_echo "yes" >&6; } | ||
6521 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6522 | fi | ||
6523 | else | ||
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6525 | $as_echo "no" >&6; } | ||
6526 | LDFLAGS="$saved_LDFLAGS" | ||
6527 | |||
6528 | fi | ||
6529 | rm -f core conftest.err conftest.$ac_objext \ | ||
6530 | conftest$ac_exeext conftest.$ac_ext | ||
6531 | } | ||
6532 | { | ||
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6534 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | ||
6535 | saved_LDFLAGS="$LDFLAGS" | ||
6536 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6537 | _define_flag="" | ||
6538 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6540 | /* end confdefs.h. */ | ||
6541 | |||
6542 | #include <stdlib.h> | ||
6543 | #include <stdio.h> | ||
6544 | int main(int argc, char **argv) { | ||
6545 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6546 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6547 | float l = i * 2.1; | ||
6548 | double m = l / 0.5; | ||
6549 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6550 | long long p = n * o; | ||
6551 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6552 | exit(0); | ||
6553 | } | ||
6554 | |||
6555 | _ACEOF | ||
6556 | if ac_fn_c_try_link "$LINENO"; then : | ||
6557 | |||
6558 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6559 | then | ||
6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6561 | $as_echo "no" >&6; } | ||
6562 | LDFLAGS="$saved_LDFLAGS" | ||
6563 | else | ||
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6565 | $as_echo "yes" >&6; } | ||
6566 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6567 | fi | ||
6568 | else | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6570 | $as_echo "no" >&6; } | ||
6571 | LDFLAGS="$saved_LDFLAGS" | ||
6572 | |||
6573 | fi | ||
6574 | rm -f core conftest.err conftest.$ac_objext \ | ||
6575 | conftest$ac_exeext conftest.$ac_ext | ||
6576 | } | ||
6577 | # NB. -ftrapv expects certain support functions to be present in | ||
6578 | # the compiler library (libgcc or similar) to detect integer operations | ||
6579 | # that can overflow. We must check that the result of enabling it | ||
6580 | # actually links. The test program compiled/linked includes a number | ||
6581 | # of integer operations that should exercise this. | ||
6582 | { | ||
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6584 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } | ||
6585 | saved_CFLAGS="$CFLAGS" | ||
6586 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6587 | _define_flag="" | ||
6588 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6590 | /* end confdefs.h. */ | ||
6591 | |||
6592 | #include <stdlib.h> | ||
6593 | #include <stdio.h> | ||
6594 | int main(int argc, char **argv) { | ||
6595 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6596 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6597 | float l = i * 2.1; | ||
6598 | double m = l / 0.5; | ||
6599 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6600 | long long int p = n * o; | ||
6601 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6602 | exit(0); | ||
6603 | } | ||
6604 | |||
6605 | _ACEOF | ||
6606 | if ac_fn_c_try_link "$LINENO"; then : | ||
6607 | |||
6608 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6609 | then | ||
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6611 | $as_echo "no" >&6; } | ||
6612 | CFLAGS="$saved_CFLAGS" | ||
6613 | else | ||
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6615 | $as_echo "yes" >&6; } | ||
6616 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6617 | fi | ||
6618 | else | ||
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6620 | $as_echo "no" >&6; } | ||
6621 | CFLAGS="$saved_CFLAGS" | ||
6622 | |||
6623 | fi | ||
6624 | rm -f core conftest.err conftest.$ac_objext \ | ||
6625 | conftest$ac_exeext conftest.$ac_ext | ||
6626 | } | ||
6627 | fi | ||
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
6629 | $as_echo_n "checking gcc version... " >&6; } | ||
6630 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6631 | case $GCC_VER in | ||
6632 | 1.*) no_attrib_nonnull=1 ;; | ||
6633 | 2.8* | 2.9*) | ||
6634 | no_attrib_nonnull=1 | ||
6635 | ;; | ||
6636 | 2.*) no_attrib_nonnull=1 ;; | ||
6637 | *) ;; | ||
6638 | esac | ||
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
6640 | $as_echo "$GCC_VER" >&6; } | ||
6641 | |||
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6643 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
6644 | saved_CFLAGS="$CFLAGS" | ||
6645 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6647 | /* end confdefs.h. */ | ||
6648 | #include <string.h> | ||
6649 | int | ||
6650 | main () | ||
6651 | { | ||
6652 | char b[10]; memset(b, 0, sizeof(b)); | ||
6653 | ; | ||
6654 | return 0; | ||
6655 | } | ||
6656 | _ACEOF | ||
6657 | if ac_fn_c_try_link "$LINENO"; then : | ||
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6659 | $as_echo "yes" >&6; } | ||
6660 | else | ||
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6662 | $as_echo "no" >&6; } | ||
6663 | CFLAGS="$saved_CFLAGS" | ||
6664 | |||
6665 | fi | ||
6666 | rm -f core conftest.err conftest.$ac_objext \ | ||
6667 | conftest$ac_exeext conftest.$ac_ext | ||
6668 | |||
6669 | # -fstack-protector-all doesn't always work for some GCC versions | ||
6670 | # and/or platforms, so we test if we can. If it's not supported | ||
6671 | # on a given platform gcc will emit a warning so we use -Werror. | ||
6672 | if test "x$use_stack_protector" = "x1"; then | ||
6673 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
6674 | -fstack-protector; do | ||
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
6676 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
6677 | saved_CFLAGS="$CFLAGS" | ||
6678 | saved_LDFLAGS="$LDFLAGS" | ||
6679 | CFLAGS="$CFLAGS $t -Werror" | ||
6680 | LDFLAGS="$LDFLAGS $t -Werror" | ||
6681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6682 | /* end confdefs.h. */ | ||
6683 | #include <stdio.h> | ||
6684 | int | ||
6685 | main () | ||
6686 | { | ||
6687 | |||
6688 | char x[256]; | ||
6689 | snprintf(x, sizeof(x), "XXX"); | ||
6690 | |||
6691 | ; | ||
6692 | return 0; | ||
6693 | } | ||
6694 | _ACEOF | ||
6695 | if ac_fn_c_try_link "$LINENO"; then : | ||
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6697 | $as_echo "yes" >&6; } | ||
6698 | CFLAGS="$saved_CFLAGS $t" | ||
6699 | LDFLAGS="$saved_LDFLAGS $t" | ||
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
6701 | $as_echo_n "checking if $t works... " >&6; } | ||
6702 | if test "$cross_compiling" = yes; then : | ||
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
6704 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
6705 | break | ||
6706 | |||
6707 | else | ||
6708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6709 | /* end confdefs.h. */ | ||
6710 | #include <stdio.h> | ||
6711 | int | ||
6712 | main () | ||
6713 | { | ||
6714 | |||
6715 | char x[256]; | ||
6716 | snprintf(x, sizeof(x), "XXX"); | ||
6717 | |||
6718 | ; | ||
6719 | return 0; | ||
6720 | } | ||
6721 | _ACEOF | ||
6722 | if ac_fn_c_try_run "$LINENO"; then : | ||
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6724 | $as_echo "yes" >&6; } | ||
6725 | break | ||
6726 | else | ||
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6728 | $as_echo "no" >&6; } | ||
6729 | fi | ||
6730 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6731 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6732 | fi | ||
6733 | |||
6734 | |||
6735 | else | ||
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6737 | $as_echo "no" >&6; } | ||
6738 | |||
6739 | fi | ||
6740 | rm -f core conftest.err conftest.$ac_objext \ | ||
6741 | conftest$ac_exeext conftest.$ac_ext | ||
6742 | CFLAGS="$saved_CFLAGS" | ||
6743 | LDFLAGS="$saved_LDFLAGS" | ||
6744 | done | ||
6745 | fi | ||
6746 | |||
6747 | if test -z "$have_llong_max"; then | ||
6748 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6749 | unset ac_cv_have_decl_LLONG_MAX | ||
6750 | saved_CFLAGS="$CFLAGS" | ||
6751 | CFLAGS="$CFLAGS -std=gnu99" | ||
6752 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
6753 | |||
6754 | " | ||
6755 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
6756 | have_llong_max=1 | ||
6757 | else | ||
6758 | CFLAGS="$saved_CFLAGS" | ||
6759 | fi | ||
6760 | |||
6761 | fi | ||
6762 | fi | ||
6763 | |||
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
6765 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
6766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6767 | /* end confdefs.h. */ | ||
6768 | |||
6769 | #include <stdlib.h> | ||
6770 | __attribute__((__unused__)) static void foo(void){return;} | ||
6771 | int | ||
6772 | main () | ||
6773 | { | ||
6774 | exit(0); | ||
6775 | ; | ||
6776 | return 0; | ||
6777 | } | ||
6778 | _ACEOF | ||
6779 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6781 | $as_echo "yes" >&6; } | ||
6782 | else | ||
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6784 | $as_echo "no" >&6; } | ||
6785 | |||
6786 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
6787 | |||
6788 | |||
6789 | fi | ||
6790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6791 | |||
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5 | ||
6793 | $as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; } | ||
6794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6795 | /* end confdefs.h. */ | ||
6796 | |||
6797 | #include <stdlib.h> | ||
6798 | typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2))); | ||
6799 | int | ||
6800 | main () | ||
6801 | { | ||
6802 | exit(0); | ||
6803 | ; | ||
6804 | return 0; | ||
6805 | } | ||
6806 | _ACEOF | ||
6807 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6809 | $as_echo "yes" >&6; } | ||
6810 | else | ||
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6812 | $as_echo "no" >&6; } | ||
6813 | |||
6814 | $as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h | ||
6815 | |||
6816 | |||
6817 | fi | ||
6818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6819 | |||
6820 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6821 | |||
6822 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6823 | |||
6824 | fi | ||
6825 | |||
6826 | |||
6827 | # Check whether --with-rpath was given. | ||
6828 | if test "${with_rpath+set}" = set; then : | ||
6829 | withval=$with_rpath; | ||
6830 | if test "x$withval" = "xno" ; then | ||
6831 | need_dash_r="" | ||
6832 | fi | ||
6833 | if test "x$withval" = "xyes" ; then | ||
6834 | need_dash_r=1 | ||
6835 | fi | ||
6836 | |||
6837 | |||
6838 | fi | ||
6839 | |||
6840 | |||
6841 | # Allow user to specify flags | ||
6842 | |||
6843 | # Check whether --with-cflags was given. | ||
6844 | if test "${with_cflags+set}" = set; then : | ||
6845 | withval=$with_cflags; | ||
6846 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6847 | test "x${withval}" != "xyes"; then | ||
6848 | CFLAGS="$CFLAGS $withval" | ||
6849 | fi | ||
6850 | |||
6851 | |||
6852 | fi | ||
6853 | |||
6854 | |||
6855 | |||
6856 | # Check whether --with-cflags-after was given. | ||
6857 | if test "${with_cflags_after+set}" = set; then : | ||
6858 | withval=$with_cflags_after; | ||
6859 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6860 | test "x${withval}" != "xyes"; then | ||
6861 | CFLAGS_AFTER="$withval" | ||
6862 | fi | ||
6863 | |||
6864 | |||
6865 | fi | ||
6866 | |||
6867 | |||
6868 | # Check whether --with-cppflags was given. | ||
6869 | if test "${with_cppflags+set}" = set; then : | ||
6870 | withval=$with_cppflags; | ||
6871 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6872 | test "x${withval}" != "xyes"; then | ||
6873 | CPPFLAGS="$CPPFLAGS $withval" | ||
6874 | fi | ||
6875 | |||
6876 | |||
6877 | fi | ||
6878 | |||
6879 | |||
6880 | # Check whether --with-ldflags was given. | ||
6881 | if test "${with_ldflags+set}" = set; then : | ||
6882 | withval=$with_ldflags; | ||
6883 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6884 | test "x${withval}" != "xyes"; then | ||
6885 | LDFLAGS="$LDFLAGS $withval" | ||
6886 | fi | ||
6887 | |||
6888 | |||
6889 | fi | ||
6890 | |||
6891 | |||
6892 | # Check whether --with-ldflags-after was given. | ||
6893 | if test "${with_ldflags_after+set}" = set; then : | ||
6894 | withval=$with_ldflags_after; | ||
6895 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6896 | test "x${withval}" != "xyes"; then | ||
6897 | LDFLAGS_AFTER="$withval" | ||
6898 | fi | ||
6899 | |||
6900 | |||
6901 | fi | ||
6902 | |||
6903 | |||
6904 | # Check whether --with-libs was given. | ||
6905 | if test "${with_libs+set}" = set; then : | ||
6906 | withval=$with_libs; | ||
6907 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6908 | test "x${withval}" != "xyes"; then | ||
6909 | LIBS="$LIBS $withval" | ||
6910 | fi | ||
6911 | |||
6912 | |||
6913 | fi | ||
6914 | |||
6915 | |||
6916 | # Check whether --with-Werror was given. | ||
6917 | if test "${with_Werror+set}" = set; then : | ||
6918 | withval=$with_Werror; | ||
6919 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6920 | werror_flags="-Werror" | ||
6921 | if test "x${withval}" != "xyes"; then | ||
6922 | werror_flags="$withval" | ||
6923 | fi | ||
6924 | fi | ||
6925 | |||
6926 | |||
6927 | fi | ||
6928 | |||
6929 | |||
6930 | for ac_header in \ | ||
6931 | blf.h \ | ||
6932 | bstring.h \ | ||
6933 | crypt.h \ | ||
6934 | crypto/sha2.h \ | ||
6935 | dirent.h \ | ||
6936 | endian.h \ | ||
6937 | elf.h \ | ||
6938 | err.h \ | ||
6939 | features.h \ | ||
6940 | fcntl.h \ | ||
6941 | floatingpoint.h \ | ||
6942 | getopt.h \ | ||
6943 | glob.h \ | ||
6944 | ia.h \ | ||
6945 | iaf.h \ | ||
6946 | ifaddrs.h \ | ||
6947 | inttypes.h \ | ||
6948 | langinfo.h \ | ||
6949 | limits.h \ | ||
6950 | locale.h \ | ||
6951 | login.h \ | ||
6952 | maillock.h \ | ||
6953 | ndir.h \ | ||
6954 | net/if_tun.h \ | ||
6955 | netdb.h \ | ||
6956 | netgroup.h \ | ||
6957 | pam/pam_appl.h \ | ||
6958 | paths.h \ | ||
6959 | poll.h \ | ||
6960 | pty.h \ | ||
6961 | readpassphrase.h \ | ||
6962 | rpc/types.h \ | ||
6963 | security/pam_appl.h \ | ||
6964 | sha2.h \ | ||
6965 | shadow.h \ | ||
6966 | stddef.h \ | ||
6967 | stdint.h \ | ||
6968 | string.h \ | ||
6969 | strings.h \ | ||
6970 | sys/bitypes.h \ | ||
6971 | sys/bsdtty.h \ | ||
6972 | sys/cdefs.h \ | ||
6973 | sys/dir.h \ | ||
6974 | sys/file.h \ | ||
6975 | sys/mman.h \ | ||
6976 | sys/label.h \ | ||
6977 | sys/ndir.h \ | ||
6978 | sys/poll.h \ | ||
6979 | sys/prctl.h \ | ||
6980 | sys/pstat.h \ | ||
6981 | sys/ptrace.h \ | ||
6982 | sys/random.h \ | ||
6983 | sys/select.h \ | ||
6984 | sys/stat.h \ | ||
6985 | sys/stream.h \ | ||
6986 | sys/stropts.h \ | ||
6987 | sys/strtio.h \ | ||
6988 | sys/statvfs.h \ | ||
6989 | sys/sysmacros.h \ | ||
6990 | sys/time.h \ | ||
6991 | sys/timers.h \ | ||
6992 | sys/vfs.h \ | ||
6993 | time.h \ | ||
6994 | tmpdir.h \ | ||
6995 | ttyent.h \ | ||
6996 | ucred.h \ | ||
6997 | unistd.h \ | ||
6998 | usersec.h \ | ||
6999 | util.h \ | ||
7000 | utime.h \ | ||
7001 | utmp.h \ | ||
7002 | utmpx.h \ | ||
7003 | vis.h \ | ||
7004 | wchar.h \ | ||
7005 | |||
7006 | do : | ||
7007 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7008 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
7009 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7010 | cat >>confdefs.h <<_ACEOF | ||
7011 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7012 | _ACEOF | ||
7013 | |||
7014 | fi | ||
7015 | |||
7016 | done | ||
7017 | |||
7018 | |||
7019 | # On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h] | ||
7020 | # to be included first. | ||
7021 | for ac_header in sys/audit.h | ||
7022 | do : | ||
7023 | ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" " | ||
7024 | #ifdef HAVE_SYS_TIME_H | ||
7025 | # include <sys/time.h> | ||
7026 | #endif | ||
7027 | #ifdef HAVE_SYS_TYPES_H | ||
7028 | # include <sys/types.h> | ||
7029 | #endif | ||
7030 | #ifdef HAVE_SYS_LABEL_H | ||
7031 | # include <sys/label.h> | ||
7032 | #endif | ||
7033 | |||
7034 | " | ||
7035 | if test "x$ac_cv_header_sys_audit_h" = xyes; then : | ||
7036 | cat >>confdefs.h <<_ACEOF | ||
7037 | #define HAVE_SYS_AUDIT_H 1 | ||
7038 | _ACEOF | ||
7039 | |||
7040 | fi | ||
7041 | |||
7042 | done | ||
7043 | |||
7044 | |||
7045 | # sys/capsicum.h requires sys/types.h | ||
7046 | for ac_header in sys/capsicum.h | ||
7047 | do : | ||
7048 | ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" " | ||
7049 | #ifdef HAVE_SYS_TYPES_H | ||
7050 | # include <sys/types.h> | ||
7051 | #endif | ||
7052 | |||
7053 | " | ||
7054 | if test "x$ac_cv_header_sys_capsicum_h" = xyes; then : | ||
7055 | cat >>confdefs.h <<_ACEOF | ||
7056 | #define HAVE_SYS_CAPSICUM_H 1 | ||
7057 | _ACEOF | ||
7058 | |||
7059 | fi | ||
7060 | |||
7061 | done | ||
7062 | |||
7063 | |||
7064 | # net/route.h requires sys/socket.h and sys/types.h. | ||
7065 | # sys/sysctl.h also requires sys/param.h | ||
7066 | for ac_header in net/route.h sys/sysctl.h | ||
7067 | do : | ||
7068 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7069 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||
7070 | #ifdef HAVE_SYS_TYPES_H | ||
7071 | # include <sys/types.h> | ||
7072 | #endif | ||
7073 | #include <sys/param.h> | ||
7074 | #include <sys/socket.h> | ||
7075 | |||
7076 | " | ||
7077 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7078 | cat >>confdefs.h <<_ACEOF | ||
7079 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7080 | _ACEOF | ||
7081 | |||
7082 | fi | ||
7083 | |||
7084 | done | ||
7085 | |||
7086 | |||
7087 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
7088 | for ac_header in lastlog.h | ||
7089 | do : | ||
7090 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
7091 | #ifdef HAVE_SYS_TIME_H | ||
7092 | # include <sys/time.h> | ||
7093 | #endif | ||
7094 | |||
7095 | " | ||
7096 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
7097 | cat >>confdefs.h <<_ACEOF | ||
7098 | #define HAVE_LASTLOG_H 1 | ||
7099 | _ACEOF | ||
7100 | |||
7101 | fi | ||
7102 | |||
7103 | done | ||
7104 | |||
7105 | |||
7106 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
7107 | for ac_header in sys/ptms.h | ||
7108 | do : | ||
7109 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
7110 | #ifdef HAVE_SYS_STREAM_H | ||
7111 | # include <sys/stream.h> | ||
7112 | #endif | ||
7113 | |||
7114 | " | ||
7115 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
7116 | cat >>confdefs.h <<_ACEOF | ||
7117 | #define HAVE_SYS_PTMS_H 1 | ||
7118 | _ACEOF | ||
7119 | |||
7120 | fi | ||
7121 | |||
7122 | done | ||
7123 | |||
7124 | |||
7125 | # login_cap.h requires sys/types.h on NetBSD | ||
7126 | for ac_header in login_cap.h | ||
7127 | do : | ||
7128 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
7129 | #include <sys/types.h> | ||
7130 | |||
7131 | " | ||
7132 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
7133 | cat >>confdefs.h <<_ACEOF | ||
7134 | #define HAVE_LOGIN_CAP_H 1 | ||
7135 | _ACEOF | ||
7136 | |||
7137 | fi | ||
7138 | |||
7139 | done | ||
7140 | |||
7141 | |||
7142 | # older BSDs need sys/param.h before sys/mount.h | ||
7143 | for ac_header in sys/mount.h | ||
7144 | do : | ||
7145 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
7146 | #include <sys/param.h> | ||
7147 | |||
7148 | " | ||
7149 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
7150 | cat >>confdefs.h <<_ACEOF | ||
7151 | #define HAVE_SYS_MOUNT_H 1 | ||
7152 | _ACEOF | ||
7153 | |||
7154 | fi | ||
7155 | |||
7156 | done | ||
7157 | |||
7158 | |||
7159 | # Android requires sys/socket.h to be included before sys/un.h | ||
7160 | for ac_header in sys/un.h | ||
7161 | do : | ||
7162 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " | ||
7163 | #include <sys/types.h> | ||
7164 | #include <sys/socket.h> | ||
7165 | |||
7166 | " | ||
7167 | if test "x$ac_cv_header_sys_un_h" = xyes; then : | ||
7168 | cat >>confdefs.h <<_ACEOF | ||
7169 | #define HAVE_SYS_UN_H 1 | ||
7170 | _ACEOF | ||
7171 | |||
7172 | fi | ||
7173 | |||
7174 | done | ||
7175 | |||
7176 | |||
7177 | # Messages for features tested for in target-specific section | ||
7178 | SIA_MSG="no" | ||
7179 | SPC_MSG="no" | ||
7180 | SP_MSG="no" | ||
7181 | SPP_MSG="no" | ||
7182 | |||
7183 | # Support for Solaris/Illumos privileges (this test is used by both | ||
7184 | # the --with-solaris-privs option and --with-sandbox=solaris). | ||
7185 | SOLARIS_PRIVS="no" | ||
7186 | |||
7187 | # Check for some target-specific stuff | ||
7188 | case "$host" in | ||
7189 | *-*-aix*) | ||
7190 | # Some versions of VAC won't allow macro redefinitions at | ||
7191 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
7192 | # particularly with older versions of vac or xlc. | ||
7193 | # It also throws errors about null macro arguments, but these are | ||
7194 | # not fatal. | ||
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
7196 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
7197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7198 | /* end confdefs.h. */ | ||
7199 | |||
7200 | #define testmacro foo | ||
7201 | #define testmacro bar | ||
7202 | int | ||
7203 | main () | ||
7204 | { | ||
7205 | exit(0); | ||
7206 | ; | ||
7207 | return 0; | ||
7208 | } | ||
7209 | _ACEOF | ||
7210 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7212 | $as_echo "yes" >&6; } | ||
7213 | else | ||
7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7215 | $as_echo "no" >&6; } | ||
7216 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
7217 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
7218 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
7219 | |||
7220 | |||
7221 | fi | ||
7222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7223 | |||
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
7225 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
7226 | if (test -z "$blibpath"); then | ||
7227 | blibpath="/usr/lib:/lib" | ||
7228 | fi | ||
7229 | saved_LDFLAGS="$LDFLAGS" | ||
7230 | if test "$GCC" = "yes"; then | ||
7231 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
7232 | else | ||
7233 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
7234 | fi | ||
7235 | for tryflags in $flags ;do | ||
7236 | if (test -z "$blibflags"); then | ||
7237 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
7238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7239 | /* end confdefs.h. */ | ||
7240 | |||
7241 | int | ||
7242 | main () | ||
7243 | { | ||
7244 | |||
7245 | ; | ||
7246 | return 0; | ||
7247 | } | ||
7248 | _ACEOF | ||
7249 | if ac_fn_c_try_link "$LINENO"; then : | ||
7250 | blibflags=$tryflags | ||
7251 | fi | ||
7252 | rm -f core conftest.err conftest.$ac_objext \ | ||
7253 | conftest$ac_exeext conftest.$ac_ext | ||
7254 | fi | ||
7255 | done | ||
7256 | if (test -z "$blibflags"); then | ||
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
7258 | $as_echo "not found" >&6; } | ||
7259 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
7260 | else | ||
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
7262 | $as_echo "$blibflags" >&6; } | ||
7263 | fi | ||
7264 | LDFLAGS="$saved_LDFLAGS" | ||
7265 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
7266 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
7267 | |||
7268 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
7269 | |||
7270 | else | ||
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
7272 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
7273 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
7274 | $as_echo_n "(cached) " >&6 | ||
7275 | else | ||
7276 | ac_check_lib_save_LIBS=$LIBS | ||
7277 | LIBS="-ls $LIBS" | ||
7278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7279 | /* end confdefs.h. */ | ||
7280 | |||
7281 | /* Override any GCC internal prototype to avoid an error. | ||
7282 | Use char because int might match the return type of a GCC | ||
7283 | builtin and then its argument prototype would still apply. */ | ||
7284 | #ifdef __cplusplus | ||
7285 | extern "C" | ||
7286 | #endif | ||
7287 | char authenticate (); | ||
7288 | int | ||
7289 | main () | ||
7290 | { | ||
7291 | return authenticate (); | ||
7292 | ; | ||
7293 | return 0; | ||
7294 | } | ||
7295 | _ACEOF | ||
7296 | if ac_fn_c_try_link "$LINENO"; then : | ||
7297 | ac_cv_lib_s_authenticate=yes | ||
7298 | else | ||
7299 | ac_cv_lib_s_authenticate=no | ||
7300 | fi | ||
7301 | rm -f core conftest.err conftest.$ac_objext \ | ||
7302 | conftest$ac_exeext conftest.$ac_ext | ||
7303 | LIBS=$ac_check_lib_save_LIBS | ||
7304 | fi | ||
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
7306 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
7307 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
7308 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
7309 | |||
7310 | LIBS="$LIBS -ls" | ||
7311 | |||
7312 | fi | ||
7313 | |||
7314 | |||
7315 | fi | ||
7316 | |||
7317 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
7318 | " | ||
7319 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
7320 | ac_have_decl=1 | ||
7321 | else | ||
7322 | ac_have_decl=0 | ||
7323 | fi | ||
7324 | |||
7325 | cat >>confdefs.h <<_ACEOF | ||
7326 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
7327 | _ACEOF | ||
7328 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
7329 | " | ||
7330 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
7331 | ac_have_decl=1 | ||
7332 | else | ||
7333 | ac_have_decl=0 | ||
7334 | fi | ||
7335 | |||
7336 | cat >>confdefs.h <<_ACEOF | ||
7337 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
7338 | _ACEOF | ||
7339 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
7340 | " | ||
7341 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
7342 | ac_have_decl=1 | ||
7343 | else | ||
7344 | ac_have_decl=0 | ||
7345 | fi | ||
7346 | |||
7347 | cat >>confdefs.h <<_ACEOF | ||
7348 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
7349 | _ACEOF | ||
7350 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
7351 | " | ||
7352 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
7353 | ac_have_decl=1 | ||
7354 | else | ||
7355 | ac_have_decl=0 | ||
7356 | fi | ||
7357 | |||
7358 | cat >>confdefs.h <<_ACEOF | ||
7359 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
7360 | _ACEOF | ||
7361 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
7362 | " | ||
7363 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
7364 | ac_have_decl=1 | ||
7365 | else | ||
7366 | ac_have_decl=0 | ||
7367 | fi | ||
7368 | |||
7369 | cat >>confdefs.h <<_ACEOF | ||
7370 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
7371 | _ACEOF | ||
7372 | |||
7373 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
7374 | |||
7375 | " | ||
7376 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
7377 | ac_have_decl=1 | ||
7378 | else | ||
7379 | ac_have_decl=0 | ||
7380 | fi | ||
7381 | |||
7382 | cat >>confdefs.h <<_ACEOF | ||
7383 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
7384 | _ACEOF | ||
7385 | if test $ac_have_decl = 1; then : | ||
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
7387 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7389 | /* end confdefs.h. */ | ||
7390 | #include <usersec.h> | ||
7391 | int | ||
7392 | main () | ||
7393 | { | ||
7394 | (void)loginfailed("user","host","tty",0); | ||
7395 | ; | ||
7396 | return 0; | ||
7397 | } | ||
7398 | _ACEOF | ||
7399 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7401 | $as_echo "yes" >&6; } | ||
7402 | |||
7403 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
7404 | |||
7405 | else | ||
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7407 | $as_echo "no" >&6; } | ||
7408 | |||
7409 | fi | ||
7410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7411 | fi | ||
7412 | |||
7413 | for ac_func in getgrset setauthdb | ||
7414 | do : | ||
7415 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7416 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7417 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7418 | cat >>confdefs.h <<_ACEOF | ||
7419 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7420 | _ACEOF | ||
7421 | |||
7422 | fi | ||
7423 | done | ||
7424 | |||
7425 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
7426 | #include <fcntl.h> | ||
7427 | |||
7428 | " | ||
7429 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
7430 | |||
7431 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
7432 | |||
7433 | fi | ||
7434 | |||
7435 | check_for_aix_broken_getaddrinfo=1 | ||
7436 | |||
7437 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7438 | |||
7439 | |||
7440 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7441 | |||
7442 | |||
7443 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7444 | |||
7445 | |||
7446 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7447 | |||
7448 | |||
7449 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7450 | |||
7451 | |||
7452 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7453 | |||
7454 | |||
7455 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7456 | |||
7457 | |||
7458 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7459 | |||
7460 | |||
7461 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
7462 | |||
7463 | |||
7464 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7465 | |||
7466 | |||
7467 | $as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h | ||
7468 | |||
7469 | |||
7470 | $as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h | ||
7471 | |||
7472 | ;; | ||
7473 | *-*-android*) | ||
7474 | |||
7475 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7476 | |||
7477 | |||
7478 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7479 | |||
7480 | ;; | ||
7481 | *-*-cygwin*) | ||
7482 | check_for_libcrypt_later=1 | ||
7483 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7484 | |||
7485 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
7486 | |||
7487 | |||
7488 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7489 | |||
7490 | |||
7491 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
7492 | |||
7493 | |||
7494 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7495 | |||
7496 | |||
7497 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7498 | |||
7499 | |||
7500 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7501 | |||
7502 | |||
7503 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
7504 | |||
7505 | |||
7506 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
7507 | |||
7508 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
7509 | # reasons which cause compile warnings, so we disable those warnings. | ||
7510 | { | ||
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
7512 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | ||
7513 | saved_CFLAGS="$CFLAGS" | ||
7514 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
7515 | _define_flag="" | ||
7516 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
7517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7518 | /* end confdefs.h. */ | ||
7519 | |||
7520 | #include <stdlib.h> | ||
7521 | #include <stdio.h> | ||
7522 | int main(int argc, char **argv) { | ||
7523 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
7524 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
7525 | float l = i * 2.1; | ||
7526 | double m = l / 0.5; | ||
7527 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
7528 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
7529 | exit(0); | ||
7530 | } | ||
7531 | |||
7532 | _ACEOF | ||
7533 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7534 | |||
7535 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
7536 | then | ||
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7538 | $as_echo "no" >&6; } | ||
7539 | CFLAGS="$saved_CFLAGS" | ||
7540 | else | ||
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7542 | $as_echo "yes" >&6; } | ||
7543 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
7544 | fi | ||
7545 | else | ||
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7547 | $as_echo "no" >&6; } | ||
7548 | CFLAGS="$saved_CFLAGS" | ||
7549 | |||
7550 | fi | ||
7551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7552 | } | ||
7553 | ;; | ||
7554 | *-*-dgux*) | ||
7555 | |||
7556 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7557 | |||
7558 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7559 | |||
7560 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7561 | |||
7562 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7563 | |||
7564 | ;; | ||
7565 | *-*-darwin*) | ||
7566 | use_pie=auto | ||
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
7568 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7569 | if test "$cross_compiling" = yes; then : | ||
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
7571 | $as_echo "assume it is working" >&6; } | ||
7572 | else | ||
7573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7574 | /* end confdefs.h. */ | ||
7575 | #include <mach-o/dyld.h> | ||
7576 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7577 | exit(0); | ||
7578 | else | ||
7579 | exit(1); | ||
7580 | } | ||
7581 | |||
7582 | _ACEOF | ||
7583 | if ac_fn_c_try_run "$LINENO"; then : | ||
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
7585 | $as_echo "working" >&6; } | ||
7586 | else | ||
7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
7588 | $as_echo "buggy" >&6; } | ||
7589 | |||
7590 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7591 | |||
7592 | |||
7593 | fi | ||
7594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7595 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7596 | fi | ||
7597 | |||
7598 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7599 | |||
7600 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7601 | |||
7602 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7603 | |||
7604 | |||
7605 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7606 | |||
7607 | |||
7608 | cat >>confdefs.h <<_ACEOF | ||
7609 | #define BIND_8_COMPAT 1 | ||
7610 | _ACEOF | ||
7611 | |||
7612 | |||
7613 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7614 | |||
7615 | |||
7616 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7617 | |||
7618 | |||
7619 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7620 | |||
7621 | |||
7622 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
7623 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
7624 | |||
7625 | else | ||
7626 | |||
7627 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
7628 | |||
7629 | #include <bsm/audit.h> | ||
7630 | |||
7631 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
7632 | |||
7633 | |||
7634 | fi | ||
7635 | |||
7636 | |||
7637 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7638 | |||
7639 | for ac_func in sandbox_init | ||
7640 | do : | ||
7641 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
7642 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
7643 | cat >>confdefs.h <<_ACEOF | ||
7644 | #define HAVE_SANDBOX_INIT 1 | ||
7645 | _ACEOF | ||
7646 | |||
7647 | fi | ||
7648 | done | ||
7649 | |||
7650 | for ac_header in sandbox.h | ||
7651 | do : | ||
7652 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
7653 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
7654 | cat >>confdefs.h <<_ACEOF | ||
7655 | #define HAVE_SANDBOX_H 1 | ||
7656 | _ACEOF | ||
7657 | |||
7658 | fi | ||
7659 | |||
7660 | done | ||
7661 | |||
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 | ||
7663 | $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } | ||
7664 | if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : | ||
7665 | $as_echo_n "(cached) " >&6 | ||
7666 | else | ||
7667 | ac_check_lib_save_LIBS=$LIBS | ||
7668 | LIBS="-lsandbox $LIBS" | ||
7669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7670 | /* end confdefs.h. */ | ||
7671 | |||
7672 | /* Override any GCC internal prototype to avoid an error. | ||
7673 | Use char because int might match the return type of a GCC | ||
7674 | builtin and then its argument prototype would still apply. */ | ||
7675 | #ifdef __cplusplus | ||
7676 | extern "C" | ||
7677 | #endif | ||
7678 | char sandbox_apply (); | ||
7679 | int | ||
7680 | main () | ||
7681 | { | ||
7682 | return sandbox_apply (); | ||
7683 | ; | ||
7684 | return 0; | ||
7685 | } | ||
7686 | _ACEOF | ||
7687 | if ac_fn_c_try_link "$LINENO"; then : | ||
7688 | ac_cv_lib_sandbox_sandbox_apply=yes | ||
7689 | else | ||
7690 | ac_cv_lib_sandbox_sandbox_apply=no | ||
7691 | fi | ||
7692 | rm -f core conftest.err conftest.$ac_objext \ | ||
7693 | conftest$ac_exeext conftest.$ac_ext | ||
7694 | LIBS=$ac_check_lib_save_LIBS | ||
7695 | fi | ||
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 | ||
7697 | $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } | ||
7698 | if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : | ||
7699 | |||
7700 | SSHDLIBS="$SSHDLIBS -lsandbox" | ||
7701 | |||
7702 | fi | ||
7703 | |||
7704 | ;; | ||
7705 | *-*-dragonfly*) | ||
7706 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7707 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7708 | ;; | ||
7709 | *-*-haiku*) | ||
7710 | LIBS="$LIBS -lbsd " | ||
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
7712 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
7713 | if ${ac_cv_lib_network_socket+:} false; then : | ||
7714 | $as_echo_n "(cached) " >&6 | ||
7715 | else | ||
7716 | ac_check_lib_save_LIBS=$LIBS | ||
7717 | LIBS="-lnetwork $LIBS" | ||
7718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7719 | /* end confdefs.h. */ | ||
7720 | |||
7721 | /* Override any GCC internal prototype to avoid an error. | ||
7722 | Use char because int might match the return type of a GCC | ||
7723 | builtin and then its argument prototype would still apply. */ | ||
7724 | #ifdef __cplusplus | ||
7725 | extern "C" | ||
7726 | #endif | ||
7727 | char socket (); | ||
7728 | int | ||
7729 | main () | ||
7730 | { | ||
7731 | return socket (); | ||
7732 | ; | ||
7733 | return 0; | ||
7734 | } | ||
7735 | _ACEOF | ||
7736 | if ac_fn_c_try_link "$LINENO"; then : | ||
7737 | ac_cv_lib_network_socket=yes | ||
7738 | else | ||
7739 | ac_cv_lib_network_socket=no | ||
7740 | fi | ||
7741 | rm -f core conftest.err conftest.$ac_objext \ | ||
7742 | conftest$ac_exeext conftest.$ac_ext | ||
7743 | LIBS=$ac_check_lib_save_LIBS | ||
7744 | fi | ||
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
7746 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
7747 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
7748 | cat >>confdefs.h <<_ACEOF | ||
7749 | #define HAVE_LIBNETWORK 1 | ||
7750 | _ACEOF | ||
7751 | |||
7752 | LIBS="-lnetwork $LIBS" | ||
7753 | |||
7754 | fi | ||
7755 | |||
7756 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
7757 | |||
7758 | MANTYPE=man | ||
7759 | ;; | ||
7760 | *-*-hpux*) | ||
7761 | # first we define all of the options common to all HP-UX releases | ||
7762 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7763 | IPADDR_IN_DISPLAY=yes | ||
7764 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7765 | |||
7766 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7767 | |||
7768 | |||
7769 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
7770 | |||
7771 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
7772 | |||
7773 | |||
7774 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7775 | |||
7776 | maildir="/var/mail" | ||
7777 | LIBS="$LIBS -lsec" | ||
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
7779 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7780 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
7781 | $as_echo_n "(cached) " >&6 | ||
7782 | else | ||
7783 | ac_check_lib_save_LIBS=$LIBS | ||
7784 | LIBS="-lxnet $LIBS" | ||
7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7786 | /* end confdefs.h. */ | ||
7787 | |||
7788 | /* Override any GCC internal prototype to avoid an error. | ||
7789 | Use char because int might match the return type of a GCC | ||
7790 | builtin and then its argument prototype would still apply. */ | ||
7791 | #ifdef __cplusplus | ||
7792 | extern "C" | ||
7793 | #endif | ||
7794 | char t_error (); | ||
7795 | int | ||
7796 | main () | ||
7797 | { | ||
7798 | return t_error (); | ||
7799 | ; | ||
7800 | return 0; | ||
7801 | } | ||
7802 | _ACEOF | ||
7803 | if ac_fn_c_try_link "$LINENO"; then : | ||
7804 | ac_cv_lib_xnet_t_error=yes | ||
7805 | else | ||
7806 | ac_cv_lib_xnet_t_error=no | ||
7807 | fi | ||
7808 | rm -f core conftest.err conftest.$ac_objext \ | ||
7809 | conftest$ac_exeext conftest.$ac_ext | ||
7810 | LIBS=$ac_check_lib_save_LIBS | ||
7811 | fi | ||
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7813 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7814 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
7815 | cat >>confdefs.h <<_ACEOF | ||
7816 | #define HAVE_LIBXNET 1 | ||
7817 | _ACEOF | ||
7818 | |||
7819 | LIBS="-lxnet $LIBS" | ||
7820 | |||
7821 | else | ||
7822 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
7823 | fi | ||
7824 | |||
7825 | |||
7826 | # next, we define all of the options specific to major releases | ||
7827 | case "$host" in | ||
7828 | *-*-hpux10*) | ||
7829 | if test -z "$GCC"; then | ||
7830 | CFLAGS="$CFLAGS -Ae" | ||
7831 | fi | ||
7832 | ;; | ||
7833 | *-*-hpux11*) | ||
7834 | |||
7835 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7836 | |||
7837 | |||
7838 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7839 | |||
7840 | |||
7841 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7842 | |||
7843 | check_for_hpux_broken_getaddrinfo=1 | ||
7844 | check_for_conflicting_getspnam=1 | ||
7845 | ;; | ||
7846 | esac | ||
7847 | |||
7848 | # lastly, we define options specific to minor releases | ||
7849 | case "$host" in | ||
7850 | *-*-hpux10.26) | ||
7851 | |||
7852 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7853 | |||
7854 | disable_ptmx_check=yes | ||
7855 | LIBS="$LIBS -lsecpw" | ||
7856 | ;; | ||
7857 | esac | ||
7858 | ;; | ||
7859 | *-*-irix5*) | ||
7860 | PATH="$PATH:/usr/etc" | ||
7861 | |||
7862 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7863 | |||
7864 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7865 | |||
7866 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7867 | |||
7868 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7869 | |||
7870 | |||
7871 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7872 | |||
7873 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7874 | |||
7875 | ;; | ||
7876 | *-*-irix6*) | ||
7877 | PATH="$PATH:/usr/etc" | ||
7878 | |||
7879 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
7880 | |||
7881 | |||
7882 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
7883 | |||
7884 | |||
7885 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
7886 | |||
7887 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
7888 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
7889 | |||
7890 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
7891 | |||
7892 | fi | ||
7893 | |||
7894 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7895 | |||
7896 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7897 | |||
7898 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7899 | |||
7900 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7901 | |||
7902 | |||
7903 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7904 | |||
7905 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7906 | |||
7907 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7908 | |||
7909 | ;; | ||
7910 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7911 | check_for_libcrypt_later=1 | ||
7912 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7913 | |||
7914 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7915 | |||
7916 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7917 | |||
7918 | |||
7919 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7920 | |||
7921 | |||
7922 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7923 | |||
7924 | ;; | ||
7925 | *-*-linux*) | ||
7926 | no_dev_ptmx=1 | ||
7927 | use_pie=auto | ||
7928 | check_for_libcrypt_later=1 | ||
7929 | check_for_openpty_ctty_bug=1 | ||
7930 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE" | ||
7931 | |||
7932 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7933 | |||
7934 | |||
7935 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7936 | |||
7937 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7938 | |||
7939 | |||
7940 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
7941 | |||
7942 | |||
7943 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7944 | |||
7945 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7946 | |||
7947 | |||
7948 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
7949 | |||
7950 | inet6_default_4in6=yes | ||
7951 | case `uname -r` in | ||
7952 | 1.*|2.0.*) | ||
7953 | |||
7954 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
7955 | |||
7956 | ;; | ||
7957 | esac | ||
7958 | # tun(4) forwarding compat code | ||
7959 | for ac_header in linux/if_tun.h | ||
7960 | do : | ||
7961 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
7962 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
7963 | cat >>confdefs.h <<_ACEOF | ||
7964 | #define HAVE_LINUX_IF_TUN_H 1 | ||
7965 | _ACEOF | ||
7966 | |||
7967 | fi | ||
7968 | |||
7969 | done | ||
7970 | |||
7971 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7972 | |||
7973 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
7974 | |||
7975 | |||
7976 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7977 | |||
7978 | |||
7979 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7980 | |||
7981 | fi | ||
7982 | ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" " | ||
7983 | #ifdef HAVE_SYS_TYPES_H | ||
7984 | # include <sys/types.H> | ||
7985 | #endif | ||
7986 | |||
7987 | " | ||
7988 | if test "x$ac_cv_header_linux_if_h" = xyes; then : | ||
7989 | |||
7990 | $as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h | ||
7991 | |||
7992 | fi | ||
7993 | |||
7994 | |||
7995 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
7996 | do : | ||
7997 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7998 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
7999 | " | ||
8000 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
8001 | cat >>confdefs.h <<_ACEOF | ||
8002 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8003 | _ACEOF | ||
8004 | |||
8005 | fi | ||
8006 | |||
8007 | done | ||
8008 | |||
8009 | # Obtain MIPS ABI | ||
8010 | case "$host" in | ||
8011 | mips*) | ||
8012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8013 | /* end confdefs.h. */ | ||
8014 | |||
8015 | #if _MIPS_SIM != _ABIO32 | ||
8016 | #error | ||
8017 | #endif | ||
8018 | |||
8019 | int | ||
8020 | main () | ||
8021 | { | ||
8022 | |||
8023 | ; | ||
8024 | return 0; | ||
8025 | } | ||
8026 | _ACEOF | ||
8027 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8028 | mips_abi="o32" | ||
8029 | else | ||
8030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8031 | /* end confdefs.h. */ | ||
8032 | |||
8033 | #if _MIPS_SIM != _ABIN32 | ||
8034 | #error | ||
8035 | #endif | ||
8036 | |||
8037 | int | ||
8038 | main () | ||
8039 | { | ||
8040 | |||
8041 | ; | ||
8042 | return 0; | ||
8043 | } | ||
8044 | _ACEOF | ||
8045 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8046 | mips_abi="n32" | ||
8047 | else | ||
8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8049 | /* end confdefs.h. */ | ||
8050 | |||
8051 | #if _MIPS_SIM != _ABI64 | ||
8052 | #error | ||
8053 | #endif | ||
8054 | |||
8055 | int | ||
8056 | main () | ||
8057 | { | ||
8058 | |||
8059 | ; | ||
8060 | return 0; | ||
8061 | } | ||
8062 | _ACEOF | ||
8063 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8064 | mips_abi="n64" | ||
8065 | else | ||
8066 | as_fn_error $? "unknown MIPS ABI" "$LINENO" 5 | ||
8067 | |||
8068 | fi | ||
8069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8070 | |||
8071 | fi | ||
8072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8073 | |||
8074 | fi | ||
8075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8076 | ;; | ||
8077 | esac | ||
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
8079 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
8080 | seccomp_audit_arch= | ||
8081 | case "$host" in | ||
8082 | x86_64-*) | ||
8083 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
8084 | ;; | ||
8085 | i*86-*) | ||
8086 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
8087 | ;; | ||
8088 | arm*-*) | ||
8089 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
8090 | ;; | ||
8091 | aarch64*-*) | ||
8092 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
8093 | ;; | ||
8094 | s390x-*) | ||
8095 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
8096 | ;; | ||
8097 | s390-*) | ||
8098 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
8099 | ;; | ||
8100 | powerpc64-*) | ||
8101 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
8102 | ;; | ||
8103 | powerpc64le-*) | ||
8104 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
8105 | ;; | ||
8106 | mips-*) | ||
8107 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
8108 | ;; | ||
8109 | mipsel-*) | ||
8110 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
8111 | ;; | ||
8112 | mips64-*) | ||
8113 | case "$mips_abi" in | ||
8114 | "n32") | ||
8115 | seccomp_audit_arch=AUDIT_ARCH_MIPS64N32 | ||
8116 | ;; | ||
8117 | "n64") | ||
8118 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
8119 | ;; | ||
8120 | esac | ||
8121 | ;; | ||
8122 | mips64el-*) | ||
8123 | case "$mips_abi" in | ||
8124 | "n32") | ||
8125 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32 | ||
8126 | ;; | ||
8127 | "n64") | ||
8128 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
8129 | ;; | ||
8130 | esac | ||
8131 | ;; | ||
8132 | esac | ||
8133 | if test "x$seccomp_audit_arch" != "x" ; then | ||
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
8135 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
8136 | |||
8137 | cat >>confdefs.h <<_ACEOF | ||
8138 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
8139 | _ACEOF | ||
8140 | |||
8141 | else | ||
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
8143 | $as_echo "architecture not supported" >&6; } | ||
8144 | fi | ||
8145 | ;; | ||
8146 | mips-sony-bsd|mips-sony-newsos4) | ||
8147 | |||
8148 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8149 | |||
8150 | SONY=1 | ||
8151 | ;; | ||
8152 | *-*-netbsd*) | ||
8153 | check_for_libcrypt_before=1 | ||
8154 | if test "x$withval" != "xno" ; then | ||
8155 | need_dash_r=1 | ||
8156 | fi | ||
8157 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
8158 | |||
8159 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
8160 | |||
8161 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
8162 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
8163 | |||
8164 | else | ||
8165 | |||
8166 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
8167 | |||
8168 | fi | ||
8169 | |||
8170 | |||
8171 | |||
8172 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
8173 | |||
8174 | TEST_MALLOC_OPTIONS="AJRX" | ||
8175 | |||
8176 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h | ||
8177 | |||
8178 | ;; | ||
8179 | *-*-freebsd*) | ||
8180 | check_for_libcrypt_later=1 | ||
8181 | |||
8182 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
8183 | |||
8184 | |||
8185 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
8186 | |||
8187 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
8188 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
8189 | |||
8190 | else | ||
8191 | |||
8192 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
8193 | |||
8194 | fi | ||
8195 | |||
8196 | |||
8197 | |||
8198 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
8199 | |||
8200 | TEST_MALLOC_OPTIONS="AJRX" | ||
8201 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
8202 | # and will crash if they cannot be opened. | ||
8203 | |||
8204 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h | ||
8205 | |||
8206 | ;; | ||
8207 | *-*-bsdi*) | ||
8208 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8209 | |||
8210 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8211 | |||
8212 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8213 | |||
8214 | ;; | ||
8215 | *-next-*) | ||
8216 | conf_lastlog_location="/usr/adm/lastlog" | ||
8217 | conf_utmp_location=/etc/utmp | ||
8218 | conf_wtmp_location=/usr/adm/wtmp | ||
8219 | maildir=/usr/spool/mail | ||
8220 | |||
8221 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
8222 | |||
8223 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
8224 | |||
8225 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8226 | |||
8227 | |||
8228 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
8229 | |||
8230 | ;; | ||
8231 | *-*-openbsd*) | ||
8232 | use_pie=auto | ||
8233 | |||
8234 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
8235 | |||
8236 | |||
8237 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
8238 | |||
8239 | |||
8240 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
8241 | |||
8242 | |||
8243 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
8244 | |||
8245 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
8246 | ;; | ||
8247 | *-*-solaris*) | ||
8248 | if test "x$withval" != "xno" ; then | ||
8249 | need_dash_r=1 | ||
8250 | fi | ||
8251 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8252 | |||
8253 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
8254 | |||
8255 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
8256 | |||
8257 | |||
8258 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
8259 | |||
8260 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8261 | |||
8262 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8263 | |||
8264 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8265 | |||
8266 | |||
8267 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8268 | |||
8269 | |||
8270 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
8271 | |||
8272 | external_path_file=/etc/default/login | ||
8273 | # hardwire lastlog location (can't detect it on some versions) | ||
8274 | conf_lastlog_location="/var/adm/lastlog" | ||
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8276 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
8277 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8278 | if test "$sol2ver" -ge 8; then | ||
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8280 | $as_echo "yes" >&6; } | ||
8281 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
8282 | |||
8283 | |||
8284 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
8285 | |||
8286 | else | ||
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8288 | $as_echo "no" >&6; } | ||
8289 | fi | ||
8290 | for ac_func in setpflags | ||
8291 | do : | ||
8292 | ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" | ||
8293 | if test "x$ac_cv_func_setpflags" = xyes; then : | ||
8294 | cat >>confdefs.h <<_ACEOF | ||
8295 | #define HAVE_SETPFLAGS 1 | ||
8296 | _ACEOF | ||
8297 | |||
8298 | fi | ||
8299 | done | ||
8300 | |||
8301 | for ac_func in setppriv | ||
8302 | do : | ||
8303 | ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" | ||
8304 | if test "x$ac_cv_func_setppriv" = xyes; then : | ||
8305 | cat >>confdefs.h <<_ACEOF | ||
8306 | #define HAVE_SETPPRIV 1 | ||
8307 | _ACEOF | ||
8308 | |||
8309 | fi | ||
8310 | done | ||
8311 | |||
8312 | for ac_func in priv_basicset | ||
8313 | do : | ||
8314 | ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" | ||
8315 | if test "x$ac_cv_func_priv_basicset" = xyes; then : | ||
8316 | cat >>confdefs.h <<_ACEOF | ||
8317 | #define HAVE_PRIV_BASICSET 1 | ||
8318 | _ACEOF | ||
8319 | |||
8320 | fi | ||
8321 | done | ||
8322 | |||
8323 | for ac_header in priv.h | ||
8324 | do : | ||
8325 | ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" | ||
8326 | if test "x$ac_cv_header_priv_h" = xyes; then : | ||
8327 | cat >>confdefs.h <<_ACEOF | ||
8328 | #define HAVE_PRIV_H 1 | ||
8329 | _ACEOF | ||
8330 | |||
8331 | fi | ||
8332 | |||
8333 | done | ||
8334 | |||
8335 | |||
8336 | # Check whether --with-solaris-contracts was given. | ||
8337 | if test "${with_solaris_contracts+set}" = set; then : | ||
8338 | withval=$with_solaris_contracts; | ||
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8340 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
8341 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
8342 | $as_echo_n "(cached) " >&6 | ||
8343 | else | ||
8344 | ac_check_lib_save_LIBS=$LIBS | ||
8345 | LIBS="-lcontract $LIBS" | ||
8346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8347 | /* end confdefs.h. */ | ||
8348 | |||
8349 | /* Override any GCC internal prototype to avoid an error. | ||
8350 | Use char because int might match the return type of a GCC | ||
8351 | builtin and then its argument prototype would still apply. */ | ||
8352 | #ifdef __cplusplus | ||
8353 | extern "C" | ||
8354 | #endif | ||
8355 | char ct_tmpl_activate (); | ||
8356 | int | ||
8357 | main () | ||
8358 | { | ||
8359 | return ct_tmpl_activate (); | ||
8360 | ; | ||
8361 | return 0; | ||
8362 | } | ||
8363 | _ACEOF | ||
8364 | if ac_fn_c_try_link "$LINENO"; then : | ||
8365 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8366 | else | ||
8367 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8368 | fi | ||
8369 | rm -f core conftest.err conftest.$ac_objext \ | ||
8370 | conftest$ac_exeext conftest.$ac_ext | ||
8371 | LIBS=$ac_check_lib_save_LIBS | ||
8372 | fi | ||
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8374 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8375 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
8376 | |||
8377 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
8378 | |||
8379 | LIBS="$LIBS -lcontract" | ||
8380 | SPC_MSG="yes" | ||
8381 | fi | ||
8382 | |||
8383 | |||
8384 | fi | ||
8385 | |||
8386 | |||
8387 | # Check whether --with-solaris-projects was given. | ||
8388 | if test "${with_solaris_projects+set}" = set; then : | ||
8389 | withval=$with_solaris_projects; | ||
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
8391 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
8392 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
8393 | $as_echo_n "(cached) " >&6 | ||
8394 | else | ||
8395 | ac_check_lib_save_LIBS=$LIBS | ||
8396 | LIBS="-lproject $LIBS" | ||
8397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8398 | /* end confdefs.h. */ | ||
8399 | |||
8400 | /* Override any GCC internal prototype to avoid an error. | ||
8401 | Use char because int might match the return type of a GCC | ||
8402 | builtin and then its argument prototype would still apply. */ | ||
8403 | #ifdef __cplusplus | ||
8404 | extern "C" | ||
8405 | #endif | ||
8406 | char setproject (); | ||
8407 | int | ||
8408 | main () | ||
8409 | { | ||
8410 | return setproject (); | ||
8411 | ; | ||
8412 | return 0; | ||
8413 | } | ||
8414 | _ACEOF | ||
8415 | if ac_fn_c_try_link "$LINENO"; then : | ||
8416 | ac_cv_lib_project_setproject=yes | ||
8417 | else | ||
8418 | ac_cv_lib_project_setproject=no | ||
8419 | fi | ||
8420 | rm -f core conftest.err conftest.$ac_objext \ | ||
8421 | conftest$ac_exeext conftest.$ac_ext | ||
8422 | LIBS=$ac_check_lib_save_LIBS | ||
8423 | fi | ||
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
8425 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
8426 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
8427 | |||
8428 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
8429 | |||
8430 | LIBS="$LIBS -lproject" | ||
8431 | SP_MSG="yes" | ||
8432 | fi | ||
8433 | |||
8434 | |||
8435 | fi | ||
8436 | |||
8437 | |||
8438 | # Check whether --with-solaris-privs was given. | ||
8439 | if test "${with_solaris_privs+set}" = set; then : | ||
8440 | withval=$with_solaris_privs; | ||
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 | ||
8442 | $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } | ||
8443 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ | ||
8444 | "x$ac_cv_header_priv_h" = "xyes" ; then | ||
8445 | SOLARIS_PRIVS=yes | ||
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | ||
8447 | $as_echo "found" >&6; } | ||
8448 | |||
8449 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
8450 | |||
8451 | |||
8452 | $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h | ||
8453 | |||
8454 | SPP_MSG="yes" | ||
8455 | else | ||
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
8457 | $as_echo "not found" >&6; } | ||
8458 | as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 | ||
8459 | fi | ||
8460 | |||
8461 | fi | ||
8462 | |||
8463 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8464 | ;; | ||
8465 | *-*-sunos4*) | ||
8466 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8467 | for ac_func in getpwanam | ||
8468 | do : | ||
8469 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
8470 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
8471 | cat >>confdefs.h <<_ACEOF | ||
8472 | #define HAVE_GETPWANAM 1 | ||
8473 | _ACEOF | ||
8474 | |||
8475 | fi | ||
8476 | done | ||
8477 | |||
8478 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8479 | |||
8480 | conf_utmp_location=/etc/utmp | ||
8481 | conf_wtmp_location=/var/adm/wtmp | ||
8482 | conf_lastlog_location=/var/adm/lastlog | ||
8483 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8484 | |||
8485 | |||
8486 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
8487 | |||
8488 | ;; | ||
8489 | *-ncr-sysv*) | ||
8490 | LIBS="$LIBS -lc89" | ||
8491 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8492 | |||
8493 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8494 | |||
8495 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8496 | |||
8497 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8498 | |||
8499 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8500 | |||
8501 | ;; | ||
8502 | *-sni-sysv*) | ||
8503 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
8505 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
8506 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
8507 | $as_echo_n "(cached) " >&6 | ||
8508 | else | ||
8509 | ac_check_lib_save_LIBS=$LIBS | ||
8510 | LIBS="-ldl $LIBS" | ||
8511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8512 | /* end confdefs.h. */ | ||
8513 | |||
8514 | /* Override any GCC internal prototype to avoid an error. | ||
8515 | Use char because int might match the return type of a GCC | ||
8516 | builtin and then its argument prototype would still apply. */ | ||
8517 | #ifdef __cplusplus | ||
8518 | extern "C" | ||
8519 | #endif | ||
8520 | char dlsym (); | ||
8521 | int | ||
8522 | main () | ||
8523 | { | ||
8524 | return dlsym (); | ||
8525 | ; | ||
8526 | return 0; | ||
8527 | } | ||
8528 | _ACEOF | ||
8529 | if ac_fn_c_try_link "$LINENO"; then : | ||
8530 | ac_cv_lib_dl_dlsym=yes | ||
8531 | else | ||
8532 | ac_cv_lib_dl_dlsym=no | ||
8533 | fi | ||
8534 | rm -f core conftest.err conftest.$ac_objext \ | ||
8535 | conftest$ac_exeext conftest.$ac_ext | ||
8536 | LIBS=$ac_check_lib_save_LIBS | ||
8537 | fi | ||
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8539 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
8540 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
8541 | cat >>confdefs.h <<_ACEOF | ||
8542 | #define HAVE_LIBDL 1 | ||
8543 | _ACEOF | ||
8544 | |||
8545 | LIBS="-ldl $LIBS" | ||
8546 | |||
8547 | fi | ||
8548 | |||
8549 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
8551 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
8552 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
8553 | $as_echo_n "(cached) " >&6 | ||
8554 | else | ||
8555 | ac_check_lib_save_LIBS=$LIBS | ||
8556 | LIBS="-lresolv $LIBS" | ||
8557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8558 | /* end confdefs.h. */ | ||
8559 | |||
8560 | /* Override any GCC internal prototype to avoid an error. | ||
8561 | Use char because int might match the return type of a GCC | ||
8562 | builtin and then its argument prototype would still apply. */ | ||
8563 | #ifdef __cplusplus | ||
8564 | extern "C" | ||
8565 | #endif | ||
8566 | char res_query (); | ||
8567 | int | ||
8568 | main () | ||
8569 | { | ||
8570 | return res_query (); | ||
8571 | ; | ||
8572 | return 0; | ||
8573 | } | ||
8574 | _ACEOF | ||
8575 | if ac_fn_c_try_link "$LINENO"; then : | ||
8576 | ac_cv_lib_resolv_res_query=yes | ||
8577 | else | ||
8578 | ac_cv_lib_resolv_res_query=no | ||
8579 | fi | ||
8580 | rm -f core conftest.err conftest.$ac_objext \ | ||
8581 | conftest$ac_exeext conftest.$ac_ext | ||
8582 | LIBS=$ac_check_lib_save_LIBS | ||
8583 | fi | ||
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8585 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
8586 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
8587 | LIBS="$LIBS -lresolv" | ||
8588 | fi | ||
8589 | |||
8590 | IPADDR_IN_DISPLAY=yes | ||
8591 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8592 | |||
8593 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
8594 | |||
8595 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8596 | |||
8597 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8598 | |||
8599 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8600 | |||
8601 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8602 | |||
8603 | external_path_file=/etc/default/login | ||
8604 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8605 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8606 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8607 | ;; | ||
8608 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8609 | *-*-sysv4.2*) | ||
8610 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8611 | |||
8612 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8613 | |||
8614 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8615 | |||
8616 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8617 | |||
8618 | |||
8619 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8620 | |||
8621 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8622 | |||
8623 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8624 | ;; | ||
8625 | # UnixWare 7.x, OpenUNIX 8 | ||
8626 | *-*-sysv5*) | ||
8627 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8628 | |||
8629 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
8630 | |||
8631 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8632 | |||
8633 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8634 | |||
8635 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8636 | |||
8637 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8638 | |||
8639 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8640 | |||
8641 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8642 | |||
8643 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
8644 | |||
8645 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8646 | check_for_libcrypt_later=1 | ||
8647 | case "$host" in | ||
8648 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8649 | maildir=/var/spool/mail | ||
8650 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8651 | |||
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
8653 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
8654 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
8655 | $as_echo_n "(cached) " >&6 | ||
8656 | else | ||
8657 | ac_check_lib_save_LIBS=$LIBS | ||
8658 | LIBS="-lprot $LIBS" | ||
8659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8660 | /* end confdefs.h. */ | ||
8661 | |||
8662 | /* Override any GCC internal prototype to avoid an error. | ||
8663 | Use char because int might match the return type of a GCC | ||
8664 | builtin and then its argument prototype would still apply. */ | ||
8665 | #ifdef __cplusplus | ||
8666 | extern "C" | ||
8667 | #endif | ||
8668 | char getluid (); | ||
8669 | int | ||
8670 | main () | ||
8671 | { | ||
8672 | return getluid (); | ||
8673 | ; | ||
8674 | return 0; | ||
8675 | } | ||
8676 | _ACEOF | ||
8677 | if ac_fn_c_try_link "$LINENO"; then : | ||
8678 | ac_cv_lib_prot_getluid=yes | ||
8679 | else | ||
8680 | ac_cv_lib_prot_getluid=no | ||
8681 | fi | ||
8682 | rm -f core conftest.err conftest.$ac_objext \ | ||
8683 | conftest$ac_exeext conftest.$ac_ext | ||
8684 | LIBS=$ac_check_lib_save_LIBS | ||
8685 | fi | ||
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
8687 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
8688 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
8689 | LIBS="$LIBS -lprot" | ||
8690 | for ac_func in getluid setluid | ||
8691 | do : | ||
8692 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8693 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8694 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8695 | cat >>confdefs.h <<_ACEOF | ||
8696 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8697 | _ACEOF | ||
8698 | |||
8699 | fi | ||
8700 | done | ||
8701 | |||
8702 | |||
8703 | fi | ||
8704 | |||
8705 | ;; | ||
8706 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8707 | |||
8708 | ;; | ||
8709 | esac | ||
8710 | ;; | ||
8711 | *-*-sysv*) | ||
8712 | ;; | ||
8713 | # SCO UNIX and OEM versions of SCO UNIX | ||
8714 | *-*-sco3.2v4*) | ||
8715 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
8716 | ;; | ||
8717 | # SCO OpenServer 5.x | ||
8718 | *-*-sco3.2v5*) | ||
8719 | if test -z "$GCC"; then | ||
8720 | CFLAGS="$CFLAGS -belf" | ||
8721 | fi | ||
8722 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8723 | no_dev_ptmx=1 | ||
8724 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8725 | |||
8726 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8727 | |||
8728 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8729 | |||
8730 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8731 | |||
8732 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8733 | |||
8734 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8735 | |||
8736 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8737 | |||
8738 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8739 | |||
8740 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8741 | |||
8742 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8743 | |||
8744 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8745 | |||
8746 | for ac_func in getluid setluid | ||
8747 | do : | ||
8748 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8749 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8750 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8751 | cat >>confdefs.h <<_ACEOF | ||
8752 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8753 | _ACEOF | ||
8754 | |||
8755 | fi | ||
8756 | done | ||
8757 | |||
8758 | MANTYPE=man | ||
8759 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8760 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
8761 | ;; | ||
8762 | *-dec-osf*) | ||
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
8764 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
8765 | no_osfsia="" | ||
8766 | |||
8767 | # Check whether --with-osfsia was given. | ||
8768 | if test "${with_osfsia+set}" = set; then : | ||
8769 | withval=$with_osfsia; | ||
8770 | if test "x$withval" = "xno" ; then | ||
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
8772 | $as_echo "disabled" >&6; } | ||
8773 | no_osfsia=1 | ||
8774 | fi | ||
8775 | |||
8776 | fi | ||
8777 | |||
8778 | if test -z "$no_osfsia" ; then | ||
8779 | if test -f /etc/sia/matrix.conf; then | ||
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8781 | $as_echo "yes" >&6; } | ||
8782 | |||
8783 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
8784 | |||
8785 | |||
8786 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
8787 | |||
8788 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8789 | |||
8790 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8791 | SIA_MSG="yes" | ||
8792 | else | ||
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8794 | $as_echo "no" >&6; } | ||
8795 | |||
8796 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
8797 | |||
8798 | fi | ||
8799 | fi | ||
8800 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8801 | |||
8802 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8803 | |||
8804 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8805 | |||
8806 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8807 | |||
8808 | |||
8809 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
8810 | |||
8811 | ;; | ||
8812 | |||
8813 | *-*-nto-qnx*) | ||
8814 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8815 | |||
8816 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
8817 | |||
8818 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
8819 | |||
8820 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8821 | |||
8822 | |||
8823 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
8824 | |||
8825 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8826 | case "$host" in | ||
8827 | *-*-nto-qnx6*) | ||
8828 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8829 | |||
8830 | ;; | ||
8831 | esac | ||
8832 | ;; | ||
8833 | |||
8834 | *-*-ultrix*) | ||
8835 | |||
8836 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
8837 | |||
8838 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8839 | |||
8840 | |||
8841 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
8842 | |||
8843 | ;; | ||
8844 | |||
8845 | *-*-lynxos) | ||
8846 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8847 | |||
8848 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
8849 | |||
8850 | ;; | ||
8851 | esac | ||
8852 | |||
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
8854 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
8855 | if test "$cross_compiling" = yes; then : | ||
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8857 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8858 | |||
8859 | else | ||
8860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8861 | /* end confdefs.h. */ | ||
8862 | #include <stdio.h> | ||
8863 | int | ||
8864 | main () | ||
8865 | { | ||
8866 | exit(0); | ||
8867 | ; | ||
8868 | return 0; | ||
8869 | } | ||
8870 | _ACEOF | ||
8871 | if ac_fn_c_try_run "$LINENO"; then : | ||
8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8873 | $as_echo "yes" >&6; } | ||
8874 | else | ||
8875 | |||
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8877 | $as_echo "no" >&6; } | ||
8878 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
8879 | |||
8880 | fi | ||
8881 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8882 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8883 | fi | ||
8884 | |||
8885 | |||
8886 | # Checks for libraries. | ||
8887 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
8888 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
8889 | |||
8890 | else | ||
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
8892 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
8893 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
8894 | $as_echo_n "(cached) " >&6 | ||
8895 | else | ||
8896 | ac_check_lib_save_LIBS=$LIBS | ||
8897 | LIBS="-lsocket $LIBS" | ||
8898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8899 | /* end confdefs.h. */ | ||
8900 | |||
8901 | /* Override any GCC internal prototype to avoid an error. | ||
8902 | Use char because int might match the return type of a GCC | ||
8903 | builtin and then its argument prototype would still apply. */ | ||
8904 | #ifdef __cplusplus | ||
8905 | extern "C" | ||
8906 | #endif | ||
8907 | char setsockopt (); | ||
8908 | int | ||
8909 | main () | ||
8910 | { | ||
8911 | return setsockopt (); | ||
8912 | ; | ||
8913 | return 0; | ||
8914 | } | ||
8915 | _ACEOF | ||
8916 | if ac_fn_c_try_link "$LINENO"; then : | ||
8917 | ac_cv_lib_socket_setsockopt=yes | ||
8918 | else | ||
8919 | ac_cv_lib_socket_setsockopt=no | ||
8920 | fi | ||
8921 | rm -f core conftest.err conftest.$ac_objext \ | ||
8922 | conftest$ac_exeext conftest.$ac_ext | ||
8923 | LIBS=$ac_check_lib_save_LIBS | ||
8924 | fi | ||
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8926 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
8927 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
8928 | cat >>confdefs.h <<_ACEOF | ||
8929 | #define HAVE_LIBSOCKET 1 | ||
8930 | _ACEOF | ||
8931 | |||
8932 | LIBS="-lsocket $LIBS" | ||
8933 | |||
8934 | fi | ||
8935 | |||
8936 | fi | ||
8937 | |||
8938 | |||
8939 | for ac_func in dirname | ||
8940 | do : | ||
8941 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
8942 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
8943 | cat >>confdefs.h <<_ACEOF | ||
8944 | #define HAVE_DIRNAME 1 | ||
8945 | _ACEOF | ||
8946 | for ac_header in libgen.h | ||
8947 | do : | ||
8948 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8949 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8950 | cat >>confdefs.h <<_ACEOF | ||
8951 | #define HAVE_LIBGEN_H 1 | ||
8952 | _ACEOF | ||
8953 | |||
8954 | fi | ||
8955 | |||
8956 | done | ||
8957 | |||
8958 | else | ||
8959 | |||
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
8961 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
8962 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
8963 | $as_echo_n "(cached) " >&6 | ||
8964 | else | ||
8965 | ac_check_lib_save_LIBS=$LIBS | ||
8966 | LIBS="-lgen $LIBS" | ||
8967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8968 | /* end confdefs.h. */ | ||
8969 | |||
8970 | /* Override any GCC internal prototype to avoid an error. | ||
8971 | Use char because int might match the return type of a GCC | ||
8972 | builtin and then its argument prototype would still apply. */ | ||
8973 | #ifdef __cplusplus | ||
8974 | extern "C" | ||
8975 | #endif | ||
8976 | char dirname (); | ||
8977 | int | ||
8978 | main () | ||
8979 | { | ||
8980 | return dirname (); | ||
8981 | ; | ||
8982 | return 0; | ||
8983 | } | ||
8984 | _ACEOF | ||
8985 | if ac_fn_c_try_link "$LINENO"; then : | ||
8986 | ac_cv_lib_gen_dirname=yes | ||
8987 | else | ||
8988 | ac_cv_lib_gen_dirname=no | ||
8989 | fi | ||
8990 | rm -f core conftest.err conftest.$ac_objext \ | ||
8991 | conftest$ac_exeext conftest.$ac_ext | ||
8992 | LIBS=$ac_check_lib_save_LIBS | ||
8993 | fi | ||
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
8995 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
8996 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
8997 | |||
8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
8999 | $as_echo_n "checking for broken dirname... " >&6; } | ||
9000 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
9001 | $as_echo_n "(cached) " >&6 | ||
9002 | else | ||
9003 | |||
9004 | save_LIBS="$LIBS" | ||
9005 | LIBS="$LIBS -lgen" | ||
9006 | if test "$cross_compiling" = yes; then : | ||
9007 | ac_cv_have_broken_dirname="no" | ||
9008 | else | ||
9009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9010 | /* end confdefs.h. */ | ||
9011 | |||
9012 | #include <libgen.h> | ||
9013 | #include <string.h> | ||
9014 | |||
9015 | int main(int argc, char **argv) { | ||
9016 | char *s, buf[32]; | ||
9017 | |||
9018 | strncpy(buf,"/etc", 32); | ||
9019 | s = dirname(buf); | ||
9020 | if (!s || strncmp(s, "/", 32) != 0) { | ||
9021 | exit(1); | ||
9022 | } else { | ||
9023 | exit(0); | ||
9024 | } | ||
9025 | } | ||
9026 | |||
9027 | _ACEOF | ||
9028 | if ac_fn_c_try_run "$LINENO"; then : | ||
9029 | ac_cv_have_broken_dirname="no" | ||
9030 | else | ||
9031 | ac_cv_have_broken_dirname="yes" | ||
9032 | fi | ||
9033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9034 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9035 | fi | ||
9036 | |||
9037 | LIBS="$save_LIBS" | ||
9038 | |||
9039 | fi | ||
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
9041 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
9042 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
9043 | LIBS="$LIBS -lgen" | ||
9044 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
9045 | |||
9046 | for ac_header in libgen.h | ||
9047 | do : | ||
9048 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
9049 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
9050 | cat >>confdefs.h <<_ACEOF | ||
9051 | #define HAVE_LIBGEN_H 1 | ||
9052 | _ACEOF | ||
9053 | |||
9054 | fi | ||
9055 | |||
9056 | done | ||
9057 | |||
9058 | fi | ||
9059 | |||
9060 | fi | ||
9061 | |||
9062 | |||
9063 | fi | ||
9064 | done | ||
9065 | |||
9066 | |||
9067 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
9068 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
9069 | |||
9070 | else | ||
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
9072 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
9073 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
9074 | $as_echo_n "(cached) " >&6 | ||
9075 | else | ||
9076 | ac_check_lib_save_LIBS=$LIBS | ||
9077 | LIBS="-lgen $LIBS" | ||
9078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9079 | /* end confdefs.h. */ | ||
9080 | |||
9081 | /* Override any GCC internal prototype to avoid an error. | ||
9082 | Use char because int might match the return type of a GCC | ||
9083 | builtin and then its argument prototype would still apply. */ | ||
9084 | #ifdef __cplusplus | ||
9085 | extern "C" | ||
9086 | #endif | ||
9087 | char getspnam (); | ||
9088 | int | ||
9089 | main () | ||
9090 | { | ||
9091 | return getspnam (); | ||
9092 | ; | ||
9093 | return 0; | ||
9094 | } | ||
9095 | _ACEOF | ||
9096 | if ac_fn_c_try_link "$LINENO"; then : | ||
9097 | ac_cv_lib_gen_getspnam=yes | ||
9098 | else | ||
9099 | ac_cv_lib_gen_getspnam=no | ||
9100 | fi | ||
9101 | rm -f core conftest.err conftest.$ac_objext \ | ||
9102 | conftest$ac_exeext conftest.$ac_ext | ||
9103 | LIBS=$ac_check_lib_save_LIBS | ||
9104 | fi | ||
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
9106 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
9107 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
9108 | LIBS="$LIBS -lgen" | ||
9109 | fi | ||
9110 | |||
9111 | fi | ||
9112 | |||
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
9114 | $as_echo_n "checking for library containing basename... " >&6; } | ||
9115 | if ${ac_cv_search_basename+:} false; then : | ||
9116 | $as_echo_n "(cached) " >&6 | ||
9117 | else | ||
9118 | ac_func_search_save_LIBS=$LIBS | ||
9119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9120 | /* end confdefs.h. */ | ||
9121 | |||
9122 | /* Override any GCC internal prototype to avoid an error. | ||
9123 | Use char because int might match the return type of a GCC | ||
9124 | builtin and then its argument prototype would still apply. */ | ||
9125 | #ifdef __cplusplus | ||
9126 | extern "C" | ||
9127 | #endif | ||
9128 | char basename (); | ||
9129 | int | ||
9130 | main () | ||
9131 | { | ||
9132 | return basename (); | ||
9133 | ; | ||
9134 | return 0; | ||
9135 | } | ||
9136 | _ACEOF | ||
9137 | for ac_lib in '' gen; do | ||
9138 | if test -z "$ac_lib"; then | ||
9139 | ac_res="none required" | ||
9140 | else | ||
9141 | ac_res=-l$ac_lib | ||
9142 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9143 | fi | ||
9144 | if ac_fn_c_try_link "$LINENO"; then : | ||
9145 | ac_cv_search_basename=$ac_res | ||
9146 | fi | ||
9147 | rm -f core conftest.err conftest.$ac_objext \ | ||
9148 | conftest$ac_exeext | ||
9149 | if ${ac_cv_search_basename+:} false; then : | ||
9150 | break | ||
9151 | fi | ||
9152 | done | ||
9153 | if ${ac_cv_search_basename+:} false; then : | ||
9154 | |||
9155 | else | ||
9156 | ac_cv_search_basename=no | ||
9157 | fi | ||
9158 | rm conftest.$ac_ext | ||
9159 | LIBS=$ac_func_search_save_LIBS | ||
9160 | fi | ||
9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
9162 | $as_echo "$ac_cv_search_basename" >&6; } | ||
9163 | ac_res=$ac_cv_search_basename | ||
9164 | if test "$ac_res" != no; then : | ||
9165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9166 | |||
9167 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
9168 | |||
9169 | fi | ||
9170 | |||
9171 | |||
9172 | |||
9173 | # Check whether --with-zlib was given. | ||
9174 | if test "${with_zlib+set}" = set; then : | ||
9175 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
9176 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
9177 | elif test "x$withval" != "xyes"; then | ||
9178 | if test -d "$withval/lib"; then | ||
9179 | if test -n "${need_dash_r}"; then | ||
9180 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9181 | else | ||
9182 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9183 | fi | ||
9184 | else | ||
9185 | if test -n "${need_dash_r}"; then | ||
9186 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9187 | else | ||
9188 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9189 | fi | ||
9190 | fi | ||
9191 | if test -d "$withval/include"; then | ||
9192 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9193 | else | ||
9194 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9195 | fi | ||
9196 | fi | ||
9197 | |||
9198 | fi | ||
9199 | |||
9200 | |||
9201 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
9202 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
9203 | |||
9204 | else | ||
9205 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
9206 | fi | ||
9207 | |||
9208 | |||
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
9210 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
9211 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
9212 | $as_echo_n "(cached) " >&6 | ||
9213 | else | ||
9214 | ac_check_lib_save_LIBS=$LIBS | ||
9215 | LIBS="-lz $LIBS" | ||
9216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9217 | /* end confdefs.h. */ | ||
9218 | |||
9219 | /* Override any GCC internal prototype to avoid an error. | ||
9220 | Use char because int might match the return type of a GCC | ||
9221 | builtin and then its argument prototype would still apply. */ | ||
9222 | #ifdef __cplusplus | ||
9223 | extern "C" | ||
9224 | #endif | ||
9225 | char deflate (); | ||
9226 | int | ||
9227 | main () | ||
9228 | { | ||
9229 | return deflate (); | ||
9230 | ; | ||
9231 | return 0; | ||
9232 | } | ||
9233 | _ACEOF | ||
9234 | if ac_fn_c_try_link "$LINENO"; then : | ||
9235 | ac_cv_lib_z_deflate=yes | ||
9236 | else | ||
9237 | ac_cv_lib_z_deflate=no | ||
9238 | fi | ||
9239 | rm -f core conftest.err conftest.$ac_objext \ | ||
9240 | conftest$ac_exeext conftest.$ac_ext | ||
9241 | LIBS=$ac_check_lib_save_LIBS | ||
9242 | fi | ||
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
9244 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
9245 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
9246 | cat >>confdefs.h <<_ACEOF | ||
9247 | #define HAVE_LIBZ 1 | ||
9248 | _ACEOF | ||
9249 | |||
9250 | LIBS="-lz $LIBS" | ||
9251 | |||
9252 | else | ||
9253 | |||
9254 | saved_CPPFLAGS="$CPPFLAGS" | ||
9255 | saved_LDFLAGS="$LDFLAGS" | ||
9256 | save_LIBS="$LIBS" | ||
9257 | if test -n "${need_dash_r}"; then | ||
9258 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
9259 | else | ||
9260 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
9261 | fi | ||
9262 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
9263 | LIBS="$LIBS -lz" | ||
9264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9265 | /* end confdefs.h. */ | ||
9266 | |||
9267 | /* Override any GCC internal prototype to avoid an error. | ||
9268 | Use char because int might match the return type of a GCC | ||
9269 | builtin and then its argument prototype would still apply. */ | ||
9270 | #ifdef __cplusplus | ||
9271 | extern "C" | ||
9272 | #endif | ||
9273 | char deflate (); | ||
9274 | int | ||
9275 | main () | ||
9276 | { | ||
9277 | return deflate (); | ||
9278 | ; | ||
9279 | return 0; | ||
9280 | } | ||
9281 | _ACEOF | ||
9282 | if ac_fn_c_try_link "$LINENO"; then : | ||
9283 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
9284 | |||
9285 | else | ||
9286 | |||
9287 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
9288 | |||
9289 | |||
9290 | fi | ||
9291 | rm -f core conftest.err conftest.$ac_objext \ | ||
9292 | conftest$ac_exeext conftest.$ac_ext | ||
9293 | |||
9294 | |||
9295 | fi | ||
9296 | |||
9297 | |||
9298 | |||
9299 | # Check whether --with-zlib-version-check was given. | ||
9300 | if test "${with_zlib_version_check+set}" = set; then : | ||
9301 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
9302 | zlib_check_nonfatal=1 | ||
9303 | fi | ||
9304 | |||
9305 | |||
9306 | fi | ||
9307 | |||
9308 | |||
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
9310 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
9311 | if test "$cross_compiling" = yes; then : | ||
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
9313 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
9314 | |||
9315 | else | ||
9316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9317 | /* end confdefs.h. */ | ||
9318 | |||
9319 | #include <stdio.h> | ||
9320 | #include <stdlib.h> | ||
9321 | #include <zlib.h> | ||
9322 | |||
9323 | int | ||
9324 | main () | ||
9325 | { | ||
9326 | |||
9327 | int a=0, b=0, c=0, d=0, n, v; | ||
9328 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
9329 | if (n != 3 && n != 4) | ||
9330 | exit(1); | ||
9331 | v = a*1000000 + b*10000 + c*100 + d; | ||
9332 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
9333 | |||
9334 | /* 1.1.4 is OK */ | ||
9335 | if (a == 1 && b == 1 && c >= 4) | ||
9336 | exit(0); | ||
9337 | |||
9338 | /* 1.2.3 and up are OK */ | ||
9339 | if (v >= 1020300) | ||
9340 | exit(0); | ||
9341 | |||
9342 | exit(2); | ||
9343 | |||
9344 | ; | ||
9345 | return 0; | ||
9346 | } | ||
9347 | _ACEOF | ||
9348 | if ac_fn_c_try_run "$LINENO"; then : | ||
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9350 | $as_echo "no" >&6; } | ||
9351 | else | ||
9352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9353 | $as_echo "yes" >&6; } | ||
9354 | if test -z "$zlib_check_nonfatal" ; then | ||
9355 | as_fn_error $? "*** zlib too old - check config.log *** | ||
9356 | Your reported zlib version has known security problems. It's possible your | ||
9357 | vendor has fixed these problems without changing the version number. If you | ||
9358 | are sure this is the case, you can disable the check by running | ||
9359 | \"./configure --without-zlib-version-check\". | ||
9360 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
9361 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
9362 | else | ||
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
9364 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
9365 | fi | ||
9366 | |||
9367 | fi | ||
9368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9369 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9370 | fi | ||
9371 | |||
9372 | |||
9373 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
9374 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
9375 | |||
9376 | else | ||
9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
9378 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
9379 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
9380 | $as_echo_n "(cached) " >&6 | ||
9381 | else | ||
9382 | ac_check_lib_save_LIBS=$LIBS | ||
9383 | LIBS="-lresolv $LIBS" | ||
9384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9385 | /* end confdefs.h. */ | ||
9386 | |||
9387 | /* Override any GCC internal prototype to avoid an error. | ||
9388 | Use char because int might match the return type of a GCC | ||
9389 | builtin and then its argument prototype would still apply. */ | ||
9390 | #ifdef __cplusplus | ||
9391 | extern "C" | ||
9392 | #endif | ||
9393 | char strcasecmp (); | ||
9394 | int | ||
9395 | main () | ||
9396 | { | ||
9397 | return strcasecmp (); | ||
9398 | ; | ||
9399 | return 0; | ||
9400 | } | ||
9401 | _ACEOF | ||
9402 | if ac_fn_c_try_link "$LINENO"; then : | ||
9403 | ac_cv_lib_resolv_strcasecmp=yes | ||
9404 | else | ||
9405 | ac_cv_lib_resolv_strcasecmp=no | ||
9406 | fi | ||
9407 | rm -f core conftest.err conftest.$ac_objext \ | ||
9408 | conftest$ac_exeext conftest.$ac_ext | ||
9409 | LIBS=$ac_check_lib_save_LIBS | ||
9410 | fi | ||
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9412 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
9413 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
9414 | LIBS="$LIBS -lresolv" | ||
9415 | fi | ||
9416 | |||
9417 | |||
9418 | fi | ||
9419 | |||
9420 | for ac_func in utimes | ||
9421 | do : | ||
9422 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
9423 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
9424 | cat >>confdefs.h <<_ACEOF | ||
9425 | #define HAVE_UTIMES 1 | ||
9426 | _ACEOF | ||
9427 | |||
9428 | else | ||
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
9430 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
9431 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
9432 | $as_echo_n "(cached) " >&6 | ||
9433 | else | ||
9434 | ac_check_lib_save_LIBS=$LIBS | ||
9435 | LIBS="-lc89 $LIBS" | ||
9436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9437 | /* end confdefs.h. */ | ||
9438 | |||
9439 | /* Override any GCC internal prototype to avoid an error. | ||
9440 | Use char because int might match the return type of a GCC | ||
9441 | builtin and then its argument prototype would still apply. */ | ||
9442 | #ifdef __cplusplus | ||
9443 | extern "C" | ||
9444 | #endif | ||
9445 | char utimes (); | ||
9446 | int | ||
9447 | main () | ||
9448 | { | ||
9449 | return utimes (); | ||
9450 | ; | ||
9451 | return 0; | ||
9452 | } | ||
9453 | _ACEOF | ||
9454 | if ac_fn_c_try_link "$LINENO"; then : | ||
9455 | ac_cv_lib_c89_utimes=yes | ||
9456 | else | ||
9457 | ac_cv_lib_c89_utimes=no | ||
9458 | fi | ||
9459 | rm -f core conftest.err conftest.$ac_objext \ | ||
9460 | conftest$ac_exeext conftest.$ac_ext | ||
9461 | LIBS=$ac_check_lib_save_LIBS | ||
9462 | fi | ||
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
9464 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
9465 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
9466 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
9467 | |||
9468 | LIBS="$LIBS -lc89" | ||
9469 | fi | ||
9470 | |||
9471 | |||
9472 | fi | ||
9473 | done | ||
9474 | |||
9475 | |||
9476 | for ac_header in bsd/libutil.h libutil.h | ||
9477 | do : | ||
9478 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9479 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
9480 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
9481 | cat >>confdefs.h <<_ACEOF | ||
9482 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9483 | _ACEOF | ||
9484 | |||
9485 | fi | ||
9486 | |||
9487 | done | ||
9488 | |||
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
9490 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
9491 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9492 | $as_echo_n "(cached) " >&6 | ||
9493 | else | ||
9494 | ac_func_search_save_LIBS=$LIBS | ||
9495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9496 | /* end confdefs.h. */ | ||
9497 | |||
9498 | /* Override any GCC internal prototype to avoid an error. | ||
9499 | Use char because int might match the return type of a GCC | ||
9500 | builtin and then its argument prototype would still apply. */ | ||
9501 | #ifdef __cplusplus | ||
9502 | extern "C" | ||
9503 | #endif | ||
9504 | char fmt_scaled (); | ||
9505 | int | ||
9506 | main () | ||
9507 | { | ||
9508 | return fmt_scaled (); | ||
9509 | ; | ||
9510 | return 0; | ||
9511 | } | ||
9512 | _ACEOF | ||
9513 | for ac_lib in '' util bsd; do | ||
9514 | if test -z "$ac_lib"; then | ||
9515 | ac_res="none required" | ||
9516 | else | ||
9517 | ac_res=-l$ac_lib | ||
9518 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9519 | fi | ||
9520 | if ac_fn_c_try_link "$LINENO"; then : | ||
9521 | ac_cv_search_fmt_scaled=$ac_res | ||
9522 | fi | ||
9523 | rm -f core conftest.err conftest.$ac_objext \ | ||
9524 | conftest$ac_exeext | ||
9525 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9526 | break | ||
9527 | fi | ||
9528 | done | ||
9529 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9530 | |||
9531 | else | ||
9532 | ac_cv_search_fmt_scaled=no | ||
9533 | fi | ||
9534 | rm conftest.$ac_ext | ||
9535 | LIBS=$ac_func_search_save_LIBS | ||
9536 | fi | ||
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
9538 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
9539 | ac_res=$ac_cv_search_fmt_scaled | ||
9540 | if test "$ac_res" != no; then : | ||
9541 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9542 | |||
9543 | fi | ||
9544 | |||
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 | ||
9546 | $as_echo_n "checking for library containing scan_scaled... " >&6; } | ||
9547 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9548 | $as_echo_n "(cached) " >&6 | ||
9549 | else | ||
9550 | ac_func_search_save_LIBS=$LIBS | ||
9551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9552 | /* end confdefs.h. */ | ||
9553 | |||
9554 | /* Override any GCC internal prototype to avoid an error. | ||
9555 | Use char because int might match the return type of a GCC | ||
9556 | builtin and then its argument prototype would still apply. */ | ||
9557 | #ifdef __cplusplus | ||
9558 | extern "C" | ||
9559 | #endif | ||
9560 | char scan_scaled (); | ||
9561 | int | ||
9562 | main () | ||
9563 | { | ||
9564 | return scan_scaled (); | ||
9565 | ; | ||
9566 | return 0; | ||
9567 | } | ||
9568 | _ACEOF | ||
9569 | for ac_lib in '' util bsd; do | ||
9570 | if test -z "$ac_lib"; then | ||
9571 | ac_res="none required" | ||
9572 | else | ||
9573 | ac_res=-l$ac_lib | ||
9574 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9575 | fi | ||
9576 | if ac_fn_c_try_link "$LINENO"; then : | ||
9577 | ac_cv_search_scan_scaled=$ac_res | ||
9578 | fi | ||
9579 | rm -f core conftest.err conftest.$ac_objext \ | ||
9580 | conftest$ac_exeext | ||
9581 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9582 | break | ||
9583 | fi | ||
9584 | done | ||
9585 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9586 | |||
9587 | else | ||
9588 | ac_cv_search_scan_scaled=no | ||
9589 | fi | ||
9590 | rm conftest.$ac_ext | ||
9591 | LIBS=$ac_func_search_save_LIBS | ||
9592 | fi | ||
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 | ||
9594 | $as_echo "$ac_cv_search_scan_scaled" >&6; } | ||
9595 | ac_res=$ac_cv_search_scan_scaled | ||
9596 | if test "$ac_res" != no; then : | ||
9597 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9598 | |||
9599 | fi | ||
9600 | |||
9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
9602 | $as_echo_n "checking for library containing login... " >&6; } | ||
9603 | if ${ac_cv_search_login+:} false; then : | ||
9604 | $as_echo_n "(cached) " >&6 | ||
9605 | else | ||
9606 | ac_func_search_save_LIBS=$LIBS | ||
9607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9608 | /* end confdefs.h. */ | ||
9609 | |||
9610 | /* Override any GCC internal prototype to avoid an error. | ||
9611 | Use char because int might match the return type of a GCC | ||
9612 | builtin and then its argument prototype would still apply. */ | ||
9613 | #ifdef __cplusplus | ||
9614 | extern "C" | ||
9615 | #endif | ||
9616 | char login (); | ||
9617 | int | ||
9618 | main () | ||
9619 | { | ||
9620 | return login (); | ||
9621 | ; | ||
9622 | return 0; | ||
9623 | } | ||
9624 | _ACEOF | ||
9625 | for ac_lib in '' util bsd; do | ||
9626 | if test -z "$ac_lib"; then | ||
9627 | ac_res="none required" | ||
9628 | else | ||
9629 | ac_res=-l$ac_lib | ||
9630 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9631 | fi | ||
9632 | if ac_fn_c_try_link "$LINENO"; then : | ||
9633 | ac_cv_search_login=$ac_res | ||
9634 | fi | ||
9635 | rm -f core conftest.err conftest.$ac_objext \ | ||
9636 | conftest$ac_exeext | ||
9637 | if ${ac_cv_search_login+:} false; then : | ||
9638 | break | ||
9639 | fi | ||
9640 | done | ||
9641 | if ${ac_cv_search_login+:} false; then : | ||
9642 | |||
9643 | else | ||
9644 | ac_cv_search_login=no | ||
9645 | fi | ||
9646 | rm conftest.$ac_ext | ||
9647 | LIBS=$ac_func_search_save_LIBS | ||
9648 | fi | ||
9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
9650 | $as_echo "$ac_cv_search_login" >&6; } | ||
9651 | ac_res=$ac_cv_search_login | ||
9652 | if test "$ac_res" != no; then : | ||
9653 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9654 | |||
9655 | fi | ||
9656 | |||
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
9658 | $as_echo_n "checking for library containing logout... " >&6; } | ||
9659 | if ${ac_cv_search_logout+:} false; then : | ||
9660 | $as_echo_n "(cached) " >&6 | ||
9661 | else | ||
9662 | ac_func_search_save_LIBS=$LIBS | ||
9663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9664 | /* end confdefs.h. */ | ||
9665 | |||
9666 | /* Override any GCC internal prototype to avoid an error. | ||
9667 | Use char because int might match the return type of a GCC | ||
9668 | builtin and then its argument prototype would still apply. */ | ||
9669 | #ifdef __cplusplus | ||
9670 | extern "C" | ||
9671 | #endif | ||
9672 | char logout (); | ||
9673 | int | ||
9674 | main () | ||
9675 | { | ||
9676 | return logout (); | ||
9677 | ; | ||
9678 | return 0; | ||
9679 | } | ||
9680 | _ACEOF | ||
9681 | for ac_lib in '' util bsd; do | ||
9682 | if test -z "$ac_lib"; then | ||
9683 | ac_res="none required" | ||
9684 | else | ||
9685 | ac_res=-l$ac_lib | ||
9686 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9687 | fi | ||
9688 | if ac_fn_c_try_link "$LINENO"; then : | ||
9689 | ac_cv_search_logout=$ac_res | ||
9690 | fi | ||
9691 | rm -f core conftest.err conftest.$ac_objext \ | ||
9692 | conftest$ac_exeext | ||
9693 | if ${ac_cv_search_logout+:} false; then : | ||
9694 | break | ||
9695 | fi | ||
9696 | done | ||
9697 | if ${ac_cv_search_logout+:} false; then : | ||
9698 | |||
9699 | else | ||
9700 | ac_cv_search_logout=no | ||
9701 | fi | ||
9702 | rm conftest.$ac_ext | ||
9703 | LIBS=$ac_func_search_save_LIBS | ||
9704 | fi | ||
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
9706 | $as_echo "$ac_cv_search_logout" >&6; } | ||
9707 | ac_res=$ac_cv_search_logout | ||
9708 | if test "$ac_res" != no; then : | ||
9709 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9710 | |||
9711 | fi | ||
9712 | |||
9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
9714 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
9715 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9716 | $as_echo_n "(cached) " >&6 | ||
9717 | else | ||
9718 | ac_func_search_save_LIBS=$LIBS | ||
9719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9720 | /* end confdefs.h. */ | ||
9721 | |||
9722 | /* Override any GCC internal prototype to avoid an error. | ||
9723 | Use char because int might match the return type of a GCC | ||
9724 | builtin and then its argument prototype would still apply. */ | ||
9725 | #ifdef __cplusplus | ||
9726 | extern "C" | ||
9727 | #endif | ||
9728 | char logwtmp (); | ||
9729 | int | ||
9730 | main () | ||
9731 | { | ||
9732 | return logwtmp (); | ||
9733 | ; | ||
9734 | return 0; | ||
9735 | } | ||
9736 | _ACEOF | ||
9737 | for ac_lib in '' util bsd; do | ||
9738 | if test -z "$ac_lib"; then | ||
9739 | ac_res="none required" | ||
9740 | else | ||
9741 | ac_res=-l$ac_lib | ||
9742 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9743 | fi | ||
9744 | if ac_fn_c_try_link "$LINENO"; then : | ||
9745 | ac_cv_search_logwtmp=$ac_res | ||
9746 | fi | ||
9747 | rm -f core conftest.err conftest.$ac_objext \ | ||
9748 | conftest$ac_exeext | ||
9749 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9750 | break | ||
9751 | fi | ||
9752 | done | ||
9753 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9754 | |||
9755 | else | ||
9756 | ac_cv_search_logwtmp=no | ||
9757 | fi | ||
9758 | rm conftest.$ac_ext | ||
9759 | LIBS=$ac_func_search_save_LIBS | ||
9760 | fi | ||
9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
9762 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
9763 | ac_res=$ac_cv_search_logwtmp | ||
9764 | if test "$ac_res" != no; then : | ||
9765 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9766 | |||
9767 | fi | ||
9768 | |||
9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
9770 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
9771 | if ${ac_cv_search_openpty+:} false; then : | ||
9772 | $as_echo_n "(cached) " >&6 | ||
9773 | else | ||
9774 | ac_func_search_save_LIBS=$LIBS | ||
9775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9776 | /* end confdefs.h. */ | ||
9777 | |||
9778 | /* Override any GCC internal prototype to avoid an error. | ||
9779 | Use char because int might match the return type of a GCC | ||
9780 | builtin and then its argument prototype would still apply. */ | ||
9781 | #ifdef __cplusplus | ||
9782 | extern "C" | ||
9783 | #endif | ||
9784 | char openpty (); | ||
9785 | int | ||
9786 | main () | ||
9787 | { | ||
9788 | return openpty (); | ||
9789 | ; | ||
9790 | return 0; | ||
9791 | } | ||
9792 | _ACEOF | ||
9793 | for ac_lib in '' util bsd; do | ||
9794 | if test -z "$ac_lib"; then | ||
9795 | ac_res="none required" | ||
9796 | else | ||
9797 | ac_res=-l$ac_lib | ||
9798 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9799 | fi | ||
9800 | if ac_fn_c_try_link "$LINENO"; then : | ||
9801 | ac_cv_search_openpty=$ac_res | ||
9802 | fi | ||
9803 | rm -f core conftest.err conftest.$ac_objext \ | ||
9804 | conftest$ac_exeext | ||
9805 | if ${ac_cv_search_openpty+:} false; then : | ||
9806 | break | ||
9807 | fi | ||
9808 | done | ||
9809 | if ${ac_cv_search_openpty+:} false; then : | ||
9810 | |||
9811 | else | ||
9812 | ac_cv_search_openpty=no | ||
9813 | fi | ||
9814 | rm conftest.$ac_ext | ||
9815 | LIBS=$ac_func_search_save_LIBS | ||
9816 | fi | ||
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
9818 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
9819 | ac_res=$ac_cv_search_openpty | ||
9820 | if test "$ac_res" != no; then : | ||
9821 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9822 | |||
9823 | fi | ||
9824 | |||
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
9826 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
9827 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9828 | $as_echo_n "(cached) " >&6 | ||
9829 | else | ||
9830 | ac_func_search_save_LIBS=$LIBS | ||
9831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9832 | /* end confdefs.h. */ | ||
9833 | |||
9834 | /* Override any GCC internal prototype to avoid an error. | ||
9835 | Use char because int might match the return type of a GCC | ||
9836 | builtin and then its argument prototype would still apply. */ | ||
9837 | #ifdef __cplusplus | ||
9838 | extern "C" | ||
9839 | #endif | ||
9840 | char updwtmp (); | ||
9841 | int | ||
9842 | main () | ||
9843 | { | ||
9844 | return updwtmp (); | ||
9845 | ; | ||
9846 | return 0; | ||
9847 | } | ||
9848 | _ACEOF | ||
9849 | for ac_lib in '' util bsd; do | ||
9850 | if test -z "$ac_lib"; then | ||
9851 | ac_res="none required" | ||
9852 | else | ||
9853 | ac_res=-l$ac_lib | ||
9854 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9855 | fi | ||
9856 | if ac_fn_c_try_link "$LINENO"; then : | ||
9857 | ac_cv_search_updwtmp=$ac_res | ||
9858 | fi | ||
9859 | rm -f core conftest.err conftest.$ac_objext \ | ||
9860 | conftest$ac_exeext | ||
9861 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9862 | break | ||
9863 | fi | ||
9864 | done | ||
9865 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9866 | |||
9867 | else | ||
9868 | ac_cv_search_updwtmp=no | ||
9869 | fi | ||
9870 | rm conftest.$ac_ext | ||
9871 | LIBS=$ac_func_search_save_LIBS | ||
9872 | fi | ||
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
9874 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
9875 | ac_res=$ac_cv_search_updwtmp | ||
9876 | if test "$ac_res" != no; then : | ||
9877 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9878 | |||
9879 | fi | ||
9880 | |||
9881 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
9882 | do : | ||
9883 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9884 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9885 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9886 | cat >>confdefs.h <<_ACEOF | ||
9887 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9888 | _ACEOF | ||
9889 | |||
9890 | fi | ||
9891 | done | ||
9892 | |||
9893 | |||
9894 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv | ||
9895 | # or libnsl. | ||
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 | ||
9897 | $as_echo_n "checking for library containing inet_ntop... " >&6; } | ||
9898 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9899 | $as_echo_n "(cached) " >&6 | ||
9900 | else | ||
9901 | ac_func_search_save_LIBS=$LIBS | ||
9902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9903 | /* end confdefs.h. */ | ||
9904 | |||
9905 | /* Override any GCC internal prototype to avoid an error. | ||
9906 | Use char because int might match the return type of a GCC | ||
9907 | builtin and then its argument prototype would still apply. */ | ||
9908 | #ifdef __cplusplus | ||
9909 | extern "C" | ||
9910 | #endif | ||
9911 | char inet_ntop (); | ||
9912 | int | ||
9913 | main () | ||
9914 | { | ||
9915 | return inet_ntop (); | ||
9916 | ; | ||
9917 | return 0; | ||
9918 | } | ||
9919 | _ACEOF | ||
9920 | for ac_lib in '' resolv nsl; do | ||
9921 | if test -z "$ac_lib"; then | ||
9922 | ac_res="none required" | ||
9923 | else | ||
9924 | ac_res=-l$ac_lib | ||
9925 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9926 | fi | ||
9927 | if ac_fn_c_try_link "$LINENO"; then : | ||
9928 | ac_cv_search_inet_ntop=$ac_res | ||
9929 | fi | ||
9930 | rm -f core conftest.err conftest.$ac_objext \ | ||
9931 | conftest$ac_exeext | ||
9932 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9933 | break | ||
9934 | fi | ||
9935 | done | ||
9936 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9937 | |||
9938 | else | ||
9939 | ac_cv_search_inet_ntop=no | ||
9940 | fi | ||
9941 | rm conftest.$ac_ext | ||
9942 | LIBS=$ac_func_search_save_LIBS | ||
9943 | fi | ||
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 | ||
9945 | $as_echo "$ac_cv_search_inet_ntop" >&6; } | ||
9946 | ac_res=$ac_cv_search_inet_ntop | ||
9947 | if test "$ac_res" != no; then : | ||
9948 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9949 | |||
9950 | fi | ||
9951 | |||
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | ||
9953 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | ||
9954 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9955 | $as_echo_n "(cached) " >&6 | ||
9956 | else | ||
9957 | ac_func_search_save_LIBS=$LIBS | ||
9958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9959 | /* end confdefs.h. */ | ||
9960 | |||
9961 | /* Override any GCC internal prototype to avoid an error. | ||
9962 | Use char because int might match the return type of a GCC | ||
9963 | builtin and then its argument prototype would still apply. */ | ||
9964 | #ifdef __cplusplus | ||
9965 | extern "C" | ||
9966 | #endif | ||
9967 | char gethostbyname (); | ||
9968 | int | ||
9969 | main () | ||
9970 | { | ||
9971 | return gethostbyname (); | ||
9972 | ; | ||
9973 | return 0; | ||
9974 | } | ||
9975 | _ACEOF | ||
9976 | for ac_lib in '' resolv nsl; do | ||
9977 | if test -z "$ac_lib"; then | ||
9978 | ac_res="none required" | ||
9979 | else | ||
9980 | ac_res=-l$ac_lib | ||
9981 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9982 | fi | ||
9983 | if ac_fn_c_try_link "$LINENO"; then : | ||
9984 | ac_cv_search_gethostbyname=$ac_res | ||
9985 | fi | ||
9986 | rm -f core conftest.err conftest.$ac_objext \ | ||
9987 | conftest$ac_exeext | ||
9988 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9989 | break | ||
9990 | fi | ||
9991 | done | ||
9992 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9993 | |||
9994 | else | ||
9995 | ac_cv_search_gethostbyname=no | ||
9996 | fi | ||
9997 | rm conftest.$ac_ext | ||
9998 | LIBS=$ac_func_search_save_LIBS | ||
9999 | fi | ||
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | ||
10001 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | ||
10002 | ac_res=$ac_cv_search_gethostbyname | ||
10003 | if test "$ac_res" != no; then : | ||
10004 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10005 | |||
10006 | fi | ||
10007 | |||
10008 | |||
10009 | # "Particular Function Checks" | ||
10010 | # see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html | ||
10011 | for ac_func in strftime | ||
10012 | do : | ||
10013 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
10014 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
10015 | cat >>confdefs.h <<_ACEOF | ||
10016 | #define HAVE_STRFTIME 1 | ||
10017 | _ACEOF | ||
10018 | |||
10019 | else | ||
10020 | # strftime is in -lintl on SCO UNIX. | ||
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
10022 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
10023 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
10024 | $as_echo_n "(cached) " >&6 | ||
10025 | else | ||
10026 | ac_check_lib_save_LIBS=$LIBS | ||
10027 | LIBS="-lintl $LIBS" | ||
10028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10029 | /* end confdefs.h. */ | ||
10030 | |||
10031 | /* Override any GCC internal prototype to avoid an error. | ||
10032 | Use char because int might match the return type of a GCC | ||
10033 | builtin and then its argument prototype would still apply. */ | ||
10034 | #ifdef __cplusplus | ||
10035 | extern "C" | ||
10036 | #endif | ||
10037 | char strftime (); | ||
10038 | int | ||
10039 | main () | ||
10040 | { | ||
10041 | return strftime (); | ||
10042 | ; | ||
10043 | return 0; | ||
10044 | } | ||
10045 | _ACEOF | ||
10046 | if ac_fn_c_try_link "$LINENO"; then : | ||
10047 | ac_cv_lib_intl_strftime=yes | ||
10048 | else | ||
10049 | ac_cv_lib_intl_strftime=no | ||
10050 | fi | ||
10051 | rm -f core conftest.err conftest.$ac_objext \ | ||
10052 | conftest$ac_exeext conftest.$ac_ext | ||
10053 | LIBS=$ac_check_lib_save_LIBS | ||
10054 | fi | ||
10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
10056 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
10057 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
10058 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
10059 | |||
10060 | LIBS="-lintl $LIBS" | ||
10061 | fi | ||
10062 | |||
10063 | fi | ||
10064 | done | ||
10065 | |||
10066 | for ac_header in stdlib.h | ||
10067 | do : | ||
10068 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
10069 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
10070 | cat >>confdefs.h <<_ACEOF | ||
10071 | #define HAVE_STDLIB_H 1 | ||
10072 | _ACEOF | ||
10073 | |||
10074 | fi | ||
10075 | |||
10076 | done | ||
10077 | |||
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 | ||
10079 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | ||
10080 | if ${ac_cv_func_malloc_0_nonnull+:} false; then : | ||
10081 | $as_echo_n "(cached) " >&6 | ||
10082 | else | ||
10083 | if test "$cross_compiling" = yes; then : | ||
10084 | ac_cv_func_malloc_0_nonnull=no | ||
10085 | else | ||
10086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10087 | /* end confdefs.h. */ | ||
10088 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
10089 | # include <stdlib.h> | ||
10090 | #else | ||
10091 | char *malloc (); | ||
10092 | #endif | ||
10093 | |||
10094 | int | ||
10095 | main () | ||
10096 | { | ||
10097 | return ! malloc (0); | ||
10098 | ; | ||
10099 | return 0; | ||
10100 | } | ||
10101 | _ACEOF | ||
10102 | if ac_fn_c_try_run "$LINENO"; then : | ||
10103 | ac_cv_func_malloc_0_nonnull=yes | ||
10104 | else | ||
10105 | ac_cv_func_malloc_0_nonnull=no | ||
10106 | fi | ||
10107 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10108 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10109 | fi | ||
10110 | |||
10111 | fi | ||
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 | ||
10113 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | ||
10114 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | ||
10115 | |||
10116 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h | ||
10117 | |||
10118 | else | ||
10119 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | ||
10120 | |||
10121 | case " $LIBOBJS " in | ||
10122 | *" malloc.$ac_objext "* ) ;; | ||
10123 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | ||
10124 | ;; | ||
10125 | esac | ||
10126 | |||
10127 | |||
10128 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | ||
10129 | |||
10130 | fi | ||
10131 | |||
10132 | |||
10133 | for ac_header in stdlib.h | ||
10134 | do : | ||
10135 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
10136 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
10137 | cat >>confdefs.h <<_ACEOF | ||
10138 | #define HAVE_STDLIB_H 1 | ||
10139 | _ACEOF | ||
10140 | |||
10141 | fi | ||
10142 | |||
10143 | done | ||
10144 | |||
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | ||
10146 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | ||
10147 | if ${ac_cv_func_realloc_0_nonnull+:} false; then : | ||
10148 | $as_echo_n "(cached) " >&6 | ||
10149 | else | ||
10150 | if test "$cross_compiling" = yes; then : | ||
10151 | ac_cv_func_realloc_0_nonnull=no | ||
10152 | else | ||
10153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10154 | /* end confdefs.h. */ | ||
10155 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
10156 | # include <stdlib.h> | ||
10157 | #else | ||
10158 | char *realloc (); | ||
10159 | #endif | ||
10160 | |||
10161 | int | ||
10162 | main () | ||
10163 | { | ||
10164 | return ! realloc (0, 0); | ||
10165 | ; | ||
10166 | return 0; | ||
10167 | } | ||
10168 | _ACEOF | ||
10169 | if ac_fn_c_try_run "$LINENO"; then : | ||
10170 | ac_cv_func_realloc_0_nonnull=yes | ||
10171 | else | ||
10172 | ac_cv_func_realloc_0_nonnull=no | ||
10173 | fi | ||
10174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10175 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10176 | fi | ||
10177 | |||
10178 | fi | ||
10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | ||
10180 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | ||
10181 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | ||
10182 | |||
10183 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h | ||
10184 | |||
10185 | else | ||
10186 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h | ||
10187 | |||
10188 | case " $LIBOBJS " in | ||
10189 | *" realloc.$ac_objext "* ) ;; | ||
10190 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | ||
10191 | ;; | ||
10192 | esac | ||
10193 | |||
10194 | |||
10195 | $as_echo "#define realloc rpl_realloc" >>confdefs.h | ||
10196 | |||
10197 | fi | ||
10198 | |||
10199 | |||
10200 | # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL; | ||
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5 | ||
10202 | $as_echo_n "checking if calloc(0, N) returns non-null... " >&6; } | ||
10203 | if test "$cross_compiling" = yes; then : | ||
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5 | ||
10205 | $as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;} | ||
10206 | func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull" | ||
10207 | |||
10208 | else | ||
10209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10210 | /* end confdefs.h. */ | ||
10211 | #include <stdlib.h> | ||
10212 | int | ||
10213 | main () | ||
10214 | { | ||
10215 | void *p = calloc(0, 1); exit(p == NULL); | ||
10216 | |||
10217 | ; | ||
10218 | return 0; | ||
10219 | } | ||
10220 | _ACEOF | ||
10221 | if ac_fn_c_try_run "$LINENO"; then : | ||
10222 | func_calloc_0_nonnull=yes | ||
10223 | else | ||
10224 | func_calloc_0_nonnull=no | ||
10225 | fi | ||
10226 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10227 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10228 | fi | ||
10229 | |||
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5 | ||
10231 | $as_echo "$func_calloc_0_nonnull" >&6; } | ||
10232 | |||
10233 | if test "x$func_calloc_0_nonnull" = "xyes"; then | ||
10234 | |||
10235 | $as_echo "#define HAVE_CALLOC 1" >>confdefs.h | ||
10236 | |||
10237 | else | ||
10238 | |||
10239 | $as_echo "#define HAVE_CALLOC 0" >>confdefs.h | ||
10240 | |||
10241 | |||
10242 | $as_echo "#define calloc rpl_calloc" >>confdefs.h | ||
10243 | |||
10244 | fi | ||
10245 | |||
10246 | # Check for ALTDIRFUNC glob() extension | ||
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
10248 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
10249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10250 | /* end confdefs.h. */ | ||
10251 | |||
10252 | #include <glob.h> | ||
10253 | #ifdef GLOB_ALTDIRFUNC | ||
10254 | FOUNDIT | ||
10255 | #endif | ||
10256 | |||
10257 | _ACEOF | ||
10258 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
10259 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
10260 | |||
10261 | |||
10262 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
10263 | |||
10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10265 | $as_echo "yes" >&6; } | ||
10266 | |||
10267 | else | ||
10268 | |||
10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10270 | $as_echo "no" >&6; } | ||
10271 | |||
10272 | |||
10273 | fi | ||
10274 | rm -f conftest* | ||
10275 | |||
10276 | |||
10277 | # Check for g.gl_matchc glob() extension | ||
10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
10279 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
10280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10281 | /* end confdefs.h. */ | ||
10282 | #include <glob.h> | ||
10283 | int | ||
10284 | main () | ||
10285 | { | ||
10286 | glob_t g; g.gl_matchc = 1; | ||
10287 | ; | ||
10288 | return 0; | ||
10289 | } | ||
10290 | _ACEOF | ||
10291 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10292 | |||
10293 | |||
10294 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
10295 | |||
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10297 | $as_echo "yes" >&6; } | ||
10298 | |||
10299 | else | ||
10300 | |||
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10302 | $as_echo "no" >&6; } | ||
10303 | |||
10304 | fi | ||
10305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10306 | |||
10307 | # Check for g.gl_statv glob() extension | ||
10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
10309 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
10310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10311 | /* end confdefs.h. */ | ||
10312 | #include <glob.h> | ||
10313 | int | ||
10314 | main () | ||
10315 | { | ||
10316 | |||
10317 | #ifndef GLOB_KEEPSTAT | ||
10318 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
10319 | #endif | ||
10320 | glob_t g; | ||
10321 | g.gl_statv = NULL; | ||
10322 | |||
10323 | ; | ||
10324 | return 0; | ||
10325 | } | ||
10326 | _ACEOF | ||
10327 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10328 | |||
10329 | |||
10330 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
10331 | |||
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10333 | $as_echo "yes" >&6; } | ||
10334 | |||
10335 | else | ||
10336 | |||
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10338 | $as_echo "no" >&6; } | ||
10339 | |||
10340 | |||
10341 | fi | ||
10342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10343 | |||
10344 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
10345 | " | ||
10346 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
10347 | ac_have_decl=1 | ||
10348 | else | ||
10349 | ac_have_decl=0 | ||
10350 | fi | ||
10351 | |||
10352 | cat >>confdefs.h <<_ACEOF | ||
10353 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
10354 | _ACEOF | ||
10355 | |||
10356 | |||
10357 | ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> | ||
10358 | " | ||
10359 | if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : | ||
10360 | |||
10361 | else | ||
10362 | |||
10363 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
10364 | |||
10365 | fi | ||
10366 | |||
10367 | |||
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
10369 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
10370 | if test "$cross_compiling" = yes; then : | ||
10371 | |||
10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
10373 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
10374 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10375 | |||
10376 | |||
10377 | |||
10378 | else | ||
10379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10380 | /* end confdefs.h. */ | ||
10381 | |||
10382 | #include <sys/types.h> | ||
10383 | #include <dirent.h> | ||
10384 | int | ||
10385 | main () | ||
10386 | { | ||
10387 | |||
10388 | struct dirent d; | ||
10389 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
10390 | |||
10391 | ; | ||
10392 | return 0; | ||
10393 | } | ||
10394 | _ACEOF | ||
10395 | if ac_fn_c_try_run "$LINENO"; then : | ||
10396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10397 | $as_echo "yes" >&6; } | ||
10398 | else | ||
10399 | |||
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10401 | $as_echo "no" >&6; } | ||
10402 | |||
10403 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10404 | |||
10405 | |||
10406 | fi | ||
10407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10408 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10409 | fi | ||
10410 | |||
10411 | |||
10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
10413 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
10414 | if test -d "/proc/$$/fd" ; then | ||
10415 | |||
10416 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
10417 | |||
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10419 | $as_echo "yes" >&6; } | ||
10420 | else | ||
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10422 | $as_echo "no" >&6; } | ||
10423 | fi | ||
10424 | |||
10425 | # Check whether user wants to use ldns | ||
10426 | LDNS_MSG="no" | ||
10427 | |||
10428 | # Check whether --with-ldns was given. | ||
10429 | if test "${with_ldns+set}" = set; then : | ||
10430 | withval=$with_ldns; | ||
10431 | ldns="" | ||
10432 | if test "x$withval" = "xyes" ; then | ||
10433 | if test -n "$ac_tool_prefix"; then | ||
10434 | # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args. | ||
10435 | set dummy ${ac_tool_prefix}ldns-config; ac_word=$2 | ||
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10437 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10438 | if ${ac_cv_path_LDNSCONFIG+:} false; then : | ||
10439 | $as_echo_n "(cached) " >&6 | ||
10440 | else | ||
10441 | case $LDNSCONFIG in | ||
10442 | [\\/]* | ?:[\\/]*) | ||
10443 | ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path. | ||
10444 | ;; | ||
10445 | *) | ||
10446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10447 | for as_dir in $PATH | ||
10448 | do | ||
10449 | IFS=$as_save_IFS | ||
10450 | test -z "$as_dir" && as_dir=. | ||
10451 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10453 | ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10455 | break 2 | ||
10456 | fi | ||
10457 | done | ||
10458 | done | ||
10459 | IFS=$as_save_IFS | ||
10460 | |||
10461 | ;; | ||
10462 | esac | ||
10463 | fi | ||
10464 | LDNSCONFIG=$ac_cv_path_LDNSCONFIG | ||
10465 | if test -n "$LDNSCONFIG"; then | ||
10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5 | ||
10467 | $as_echo "$LDNSCONFIG" >&6; } | ||
10468 | else | ||
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10470 | $as_echo "no" >&6; } | ||
10471 | fi | ||
10472 | |||
10473 | |||
10474 | fi | ||
10475 | if test -z "$ac_cv_path_LDNSCONFIG"; then | ||
10476 | ac_pt_LDNSCONFIG=$LDNSCONFIG | ||
10477 | # Extract the first word of "ldns-config", so it can be a program name with args. | ||
10478 | set dummy ldns-config; ac_word=$2 | ||
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10480 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10481 | if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then : | ||
10482 | $as_echo_n "(cached) " >&6 | ||
10483 | else | ||
10484 | case $ac_pt_LDNSCONFIG in | ||
10485 | [\\/]* | ?:[\\/]*) | ||
10486 | ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path. | ||
10487 | ;; | ||
10488 | *) | ||
10489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10490 | for as_dir in $PATH | ||
10491 | do | ||
10492 | IFS=$as_save_IFS | ||
10493 | test -z "$as_dir" && as_dir=. | ||
10494 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10496 | ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10498 | break 2 | ||
10499 | fi | ||
10500 | done | ||
10501 | done | ||
10502 | IFS=$as_save_IFS | ||
10503 | |||
10504 | ;; | ||
10505 | esac | ||
10506 | fi | ||
10507 | ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG | ||
10508 | if test -n "$ac_pt_LDNSCONFIG"; then | ||
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5 | ||
10510 | $as_echo "$ac_pt_LDNSCONFIG" >&6; } | ||
10511 | else | ||
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10513 | $as_echo "no" >&6; } | ||
10514 | fi | ||
10515 | |||
10516 | if test "x$ac_pt_LDNSCONFIG" = x; then | ||
10517 | LDNSCONFIG="no" | ||
10518 | else | ||
10519 | case $cross_compiling:$ac_tool_warned in | ||
10520 | yes:) | ||
10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10522 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10523 | ac_tool_warned=yes ;; | ||
10524 | esac | ||
10525 | LDNSCONFIG=$ac_pt_LDNSCONFIG | ||
10526 | fi | ||
10527 | else | ||
10528 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" | ||
10529 | fi | ||
10530 | |||
10531 | if test "x$LDNSCONFIG" = "xno"; then | ||
10532 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10533 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10534 | LIBS="-lldns $LIBS" | ||
10535 | ldns=yes | ||
10536 | else | ||
10537 | LIBS="$LIBS `$LDNSCONFIG --libs`" | ||
10538 | CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`" | ||
10539 | ldns=yes | ||
10540 | fi | ||
10541 | elif test "x$withval" != "xno" ; then | ||
10542 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10543 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10544 | LIBS="-lldns $LIBS" | ||
10545 | ldns=yes | ||
10546 | fi | ||
10547 | |||
10548 | # Verify that it works. | ||
10549 | if test "x$ldns" = "xyes" ; then | ||
10550 | |||
10551 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
10552 | |||
10553 | LDNS_MSG="yes" | ||
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
10555 | $as_echo_n "checking for ldns support... " >&6; } | ||
10556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10557 | /* end confdefs.h. */ | ||
10558 | |||
10559 | #include <stdio.h> | ||
10560 | #include <stdlib.h> | ||
10561 | #include <stdint.h> | ||
10562 | #include <ldns/ldns.h> | ||
10563 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
10564 | |||
10565 | |||
10566 | _ACEOF | ||
10567 | if ac_fn_c_try_link "$LINENO"; then : | ||
10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10569 | $as_echo "yes" >&6; } | ||
10570 | else | ||
10571 | |||
10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10573 | $as_echo "no" >&6; } | ||
10574 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
10575 | |||
10576 | fi | ||
10577 | rm -f core conftest.err conftest.$ac_objext \ | ||
10578 | conftest$ac_exeext conftest.$ac_ext | ||
10579 | fi | ||
10580 | |||
10581 | fi | ||
10582 | |||
10583 | |||
10584 | # Check whether user wants libedit support | ||
10585 | LIBEDIT_MSG="no" | ||
10586 | |||
10587 | # Check whether --with-libedit was given. | ||
10588 | if test "${with_libedit+set}" = set; then : | ||
10589 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
10590 | if test "x$withval" = "xyes" ; then | ||
10591 | if test -n "$ac_tool_prefix"; then | ||
10592 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
10593 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10595 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10596 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
10597 | $as_echo_n "(cached) " >&6 | ||
10598 | else | ||
10599 | case $PKGCONFIG in | ||
10600 | [\\/]* | ?:[\\/]*) | ||
10601 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
10602 | ;; | ||
10603 | *) | ||
10604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10605 | for as_dir in $PATH | ||
10606 | do | ||
10607 | IFS=$as_save_IFS | ||
10608 | test -z "$as_dir" && as_dir=. | ||
10609 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10611 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10613 | break 2 | ||
10614 | fi | ||
10615 | done | ||
10616 | done | ||
10617 | IFS=$as_save_IFS | ||
10618 | |||
10619 | ;; | ||
10620 | esac | ||
10621 | fi | ||
10622 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
10623 | if test -n "$PKGCONFIG"; then | ||
10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
10625 | $as_echo "$PKGCONFIG" >&6; } | ||
10626 | else | ||
10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10628 | $as_echo "no" >&6; } | ||
10629 | fi | ||
10630 | |||
10631 | |||
10632 | fi | ||
10633 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
10634 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
10635 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
10636 | set dummy pkg-config; ac_word=$2 | ||
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10638 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10639 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
10640 | $as_echo_n "(cached) " >&6 | ||
10641 | else | ||
10642 | case $ac_pt_PKGCONFIG in | ||
10643 | [\\/]* | ?:[\\/]*) | ||
10644 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
10645 | ;; | ||
10646 | *) | ||
10647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10648 | for as_dir in $PATH | ||
10649 | do | ||
10650 | IFS=$as_save_IFS | ||
10651 | test -z "$as_dir" && as_dir=. | ||
10652 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10654 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10656 | break 2 | ||
10657 | fi | ||
10658 | done | ||
10659 | done | ||
10660 | IFS=$as_save_IFS | ||
10661 | |||
10662 | ;; | ||
10663 | esac | ||
10664 | fi | ||
10665 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
10666 | if test -n "$ac_pt_PKGCONFIG"; then | ||
10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
10668 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
10669 | else | ||
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10671 | $as_echo "no" >&6; } | ||
10672 | fi | ||
10673 | |||
10674 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
10675 | PKGCONFIG="no" | ||
10676 | else | ||
10677 | case $cross_compiling:$ac_tool_warned in | ||
10678 | yes:) | ||
10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10681 | ac_tool_warned=yes ;; | ||
10682 | esac | ||
10683 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
10684 | fi | ||
10685 | else | ||
10686 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
10687 | fi | ||
10688 | |||
10689 | if test "x$PKGCONFIG" != "xno"; then | ||
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
10691 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
10692 | if "$PKGCONFIG" libedit; then | ||
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10694 | $as_echo "yes" >&6; } | ||
10695 | use_pkgconfig_for_libedit=yes | ||
10696 | else | ||
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10698 | $as_echo "no" >&6; } | ||
10699 | fi | ||
10700 | fi | ||
10701 | else | ||
10702 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10703 | if test -n "${need_dash_r}"; then | ||
10704 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10705 | else | ||
10706 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10707 | fi | ||
10708 | fi | ||
10709 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
10710 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
10711 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
10712 | else | ||
10713 | LIBEDIT="-ledit -lcurses" | ||
10714 | fi | ||
10715 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
10717 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
10718 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
10719 | $as_echo_n "(cached) " >&6 | ||
10720 | else | ||
10721 | ac_check_lib_save_LIBS=$LIBS | ||
10722 | LIBS="-ledit $OTHERLIBS | ||
10723 | $LIBS" | ||
10724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10725 | /* end confdefs.h. */ | ||
10726 | |||
10727 | /* Override any GCC internal prototype to avoid an error. | ||
10728 | Use char because int might match the return type of a GCC | ||
10729 | builtin and then its argument prototype would still apply. */ | ||
10730 | #ifdef __cplusplus | ||
10731 | extern "C" | ||
10732 | #endif | ||
10733 | char el_init (); | ||
10734 | int | ||
10735 | main () | ||
10736 | { | ||
10737 | return el_init (); | ||
10738 | ; | ||
10739 | return 0; | ||
10740 | } | ||
10741 | _ACEOF | ||
10742 | if ac_fn_c_try_link "$LINENO"; then : | ||
10743 | ac_cv_lib_edit_el_init=yes | ||
10744 | else | ||
10745 | ac_cv_lib_edit_el_init=no | ||
10746 | fi | ||
10747 | rm -f core conftest.err conftest.$ac_objext \ | ||
10748 | conftest$ac_exeext conftest.$ac_ext | ||
10749 | LIBS=$ac_check_lib_save_LIBS | ||
10750 | fi | ||
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
10752 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
10753 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
10754 | |||
10755 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
10756 | |||
10757 | LIBEDIT_MSG="yes" | ||
10758 | |||
10759 | |||
10760 | else | ||
10761 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
10762 | fi | ||
10763 | |||
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
10765 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
10766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10767 | /* end confdefs.h. */ | ||
10768 | #include <histedit.h> | ||
10769 | int | ||
10770 | main () | ||
10771 | { | ||
10772 | |||
10773 | int i = H_SETSIZE; | ||
10774 | el_init("", NULL, NULL, NULL); | ||
10775 | exit(0); | ||
10776 | |||
10777 | ; | ||
10778 | return 0; | ||
10779 | } | ||
10780 | _ACEOF | ||
10781 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10783 | $as_echo "yes" >&6; } | ||
10784 | else | ||
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10786 | $as_echo "no" >&6; } | ||
10787 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
10788 | |||
10789 | fi | ||
10790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10791 | fi | ||
10792 | |||
10793 | fi | ||
10794 | |||
10795 | |||
10796 | AUDIT_MODULE=none | ||
10797 | |||
10798 | # Check whether --with-audit was given. | ||
10799 | if test "${with_audit+set}" = set; then : | ||
10800 | withval=$with_audit; | ||
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
10802 | $as_echo_n "checking for supported audit module... " >&6; } | ||
10803 | case "$withval" in | ||
10804 | bsm) | ||
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
10806 | $as_echo "bsm" >&6; } | ||
10807 | AUDIT_MODULE=bsm | ||
10808 | for ac_header in bsm/audit.h | ||
10809 | do : | ||
10810 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
10811 | #ifdef HAVE_TIME_H | ||
10812 | # include <time.h> | ||
10813 | #endif | ||
10814 | |||
10815 | |||
10816 | " | ||
10817 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
10818 | cat >>confdefs.h <<_ACEOF | ||
10819 | #define HAVE_BSM_AUDIT_H 1 | ||
10820 | _ACEOF | ||
10821 | |||
10822 | else | ||
10823 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
10824 | fi | ||
10825 | |||
10826 | done | ||
10827 | |||
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
10829 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
10830 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
10831 | $as_echo_n "(cached) " >&6 | ||
10832 | else | ||
10833 | ac_check_lib_save_LIBS=$LIBS | ||
10834 | LIBS="-lbsm $LIBS" | ||
10835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10836 | /* end confdefs.h. */ | ||
10837 | |||
10838 | /* Override any GCC internal prototype to avoid an error. | ||
10839 | Use char because int might match the return type of a GCC | ||
10840 | builtin and then its argument prototype would still apply. */ | ||
10841 | #ifdef __cplusplus | ||
10842 | extern "C" | ||
10843 | #endif | ||
10844 | char getaudit (); | ||
10845 | int | ||
10846 | main () | ||
10847 | { | ||
10848 | return getaudit (); | ||
10849 | ; | ||
10850 | return 0; | ||
10851 | } | ||
10852 | _ACEOF | ||
10853 | if ac_fn_c_try_link "$LINENO"; then : | ||
10854 | ac_cv_lib_bsm_getaudit=yes | ||
10855 | else | ||
10856 | ac_cv_lib_bsm_getaudit=no | ||
10857 | fi | ||
10858 | rm -f core conftest.err conftest.$ac_objext \ | ||
10859 | conftest$ac_exeext conftest.$ac_ext | ||
10860 | LIBS=$ac_check_lib_save_LIBS | ||
10861 | fi | ||
10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10863 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
10864 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
10865 | cat >>confdefs.h <<_ACEOF | ||
10866 | #define HAVE_LIBBSM 1 | ||
10867 | _ACEOF | ||
10868 | |||
10869 | LIBS="-lbsm $LIBS" | ||
10870 | |||
10871 | else | ||
10872 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
10873 | fi | ||
10874 | |||
10875 | for ac_func in getaudit | ||
10876 | do : | ||
10877 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
10878 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
10879 | cat >>confdefs.h <<_ACEOF | ||
10880 | #define HAVE_GETAUDIT 1 | ||
10881 | _ACEOF | ||
10882 | |||
10883 | else | ||
10884 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
10885 | fi | ||
10886 | done | ||
10887 | |||
10888 | # These are optional | ||
10889 | for ac_func in getaudit_addr aug_get_machine | ||
10890 | do : | ||
10891 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10892 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10893 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10894 | cat >>confdefs.h <<_ACEOF | ||
10895 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10896 | _ACEOF | ||
10897 | |||
10898 | fi | ||
10899 | done | ||
10900 | |||
10901 | |||
10902 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
10903 | |||
10904 | if test "$sol2ver" -ge 11; then | ||
10905 | SSHDLIBS="$SSHDLIBS -lscf" | ||
10906 | |||
10907 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
10908 | |||
10909 | fi | ||
10910 | ;; | ||
10911 | linux) | ||
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
10913 | $as_echo "linux" >&6; } | ||
10914 | AUDIT_MODULE=linux | ||
10915 | for ac_header in libaudit.h | ||
10916 | do : | ||
10917 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
10918 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
10919 | cat >>confdefs.h <<_ACEOF | ||
10920 | #define HAVE_LIBAUDIT_H 1 | ||
10921 | _ACEOF | ||
10922 | |||
10923 | fi | ||
10924 | |||
10925 | done | ||
10926 | |||
10927 | SSHDLIBS="$SSHDLIBS -laudit" | ||
10928 | |||
10929 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
10930 | |||
10931 | ;; | ||
10932 | debug) | ||
10933 | AUDIT_MODULE=debug | ||
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
10935 | $as_echo "debug" >&6; } | ||
10936 | |||
10937 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
10938 | |||
10939 | ;; | ||
10940 | no) | ||
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10942 | $as_echo "no" >&6; } | ||
10943 | ;; | ||
10944 | *) | ||
10945 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
10946 | ;; | ||
10947 | esac | ||
10948 | |||
10949 | fi | ||
10950 | |||
10951 | |||
10952 | |||
10953 | # Check whether --with-pie was given. | ||
10954 | if test "${with_pie+set}" = set; then : | ||
10955 | withval=$with_pie; | ||
10956 | if test "x$withval" = "xno"; then | ||
10957 | use_pie=no | ||
10958 | fi | ||
10959 | if test "x$withval" = "xyes"; then | ||
10960 | use_pie=yes | ||
10961 | fi | ||
10962 | |||
10963 | |||
10964 | fi | ||
10965 | |||
10966 | if test "x$use_pie" = "x"; then | ||
10967 | use_pie=no | ||
10968 | fi | ||
10969 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
10970 | # Turn off automatic PIE when toolchain hardening is off. | ||
10971 | use_pie=no | ||
10972 | fi | ||
10973 | if test "x$use_pie" = "xauto"; then | ||
10974 | # Automatic PIE requires gcc >= 4.x | ||
10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 | ||
10976 | $as_echo_n "checking for gcc >= 4.x... " >&6; } | ||
10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10978 | /* end confdefs.h. */ | ||
10979 | |||
10980 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
10981 | #error gcc is too old | ||
10982 | #endif | ||
10983 | |||
10984 | _ACEOF | ||
10985 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10987 | $as_echo "yes" >&6; } | ||
10988 | else | ||
10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10990 | $as_echo "no" >&6; } | ||
10991 | use_pie=no | ||
10992 | |||
10993 | fi | ||
10994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10995 | fi | ||
10996 | if test "x$use_pie" != "xno"; then | ||
10997 | SAVED_CFLAGS="$CFLAGS" | ||
10998 | SAVED_LDFLAGS="$LDFLAGS" | ||
10999 | { | ||
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 | ||
11001 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | ||
11002 | saved_CFLAGS="$CFLAGS" | ||
11003 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
11004 | _define_flag="" | ||
11005 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
11006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11007 | /* end confdefs.h. */ | ||
11008 | |||
11009 | #include <stdlib.h> | ||
11010 | #include <stdio.h> | ||
11011 | int main(int argc, char **argv) { | ||
11012 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
11013 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
11014 | float l = i * 2.1; | ||
11015 | double m = l / 0.5; | ||
11016 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
11017 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
11018 | exit(0); | ||
11019 | } | ||
11020 | |||
11021 | _ACEOF | ||
11022 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11023 | |||
11024 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
11025 | then | ||
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11027 | $as_echo "no" >&6; } | ||
11028 | CFLAGS="$saved_CFLAGS" | ||
11029 | else | ||
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11031 | $as_echo "yes" >&6; } | ||
11032 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
11033 | fi | ||
11034 | else | ||
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11036 | $as_echo "no" >&6; } | ||
11037 | CFLAGS="$saved_CFLAGS" | ||
11038 | |||
11039 | fi | ||
11040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11041 | } | ||
11042 | { | ||
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 | ||
11044 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | ||
11045 | saved_LDFLAGS="$LDFLAGS" | ||
11046 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
11047 | _define_flag="" | ||
11048 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
11049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11050 | /* end confdefs.h. */ | ||
11051 | |||
11052 | #include <stdlib.h> | ||
11053 | #include <stdio.h> | ||
11054 | int main(int argc, char **argv) { | ||
11055 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
11056 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
11057 | float l = i * 2.1; | ||
11058 | double m = l / 0.5; | ||
11059 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
11060 | long long p = n * o; | ||
11061 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
11062 | exit(0); | ||
11063 | } | ||
11064 | |||
11065 | _ACEOF | ||
11066 | if ac_fn_c_try_link "$LINENO"; then : | ||
11067 | |||
11068 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
11069 | then | ||
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11071 | $as_echo "no" >&6; } | ||
11072 | LDFLAGS="$saved_LDFLAGS" | ||
11073 | else | ||
11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11075 | $as_echo "yes" >&6; } | ||
11076 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
11077 | fi | ||
11078 | else | ||
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11080 | $as_echo "no" >&6; } | ||
11081 | LDFLAGS="$saved_LDFLAGS" | ||
11082 | |||
11083 | fi | ||
11084 | rm -f core conftest.err conftest.$ac_objext \ | ||
11085 | conftest$ac_exeext conftest.$ac_ext | ||
11086 | } | ||
11087 | # We use both -fPIE and -pie or neither. | ||
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 | ||
11089 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } | ||
11090 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
11091 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11093 | $as_echo "yes" >&6; } | ||
11094 | else | ||
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11096 | $as_echo "no" >&6; } | ||
11097 | CFLAGS="$SAVED_CFLAGS" | ||
11098 | LDFLAGS="$SAVED_LDFLAGS" | ||
11099 | fi | ||
11100 | fi | ||
11101 | |||
11102 | for ac_func in \ | ||
11103 | Blowfish_initstate \ | ||
11104 | Blowfish_expandstate \ | ||
11105 | Blowfish_expand0state \ | ||
11106 | Blowfish_stream2word \ | ||
11107 | asprintf \ | ||
11108 | b64_ntop \ | ||
11109 | __b64_ntop \ | ||
11110 | b64_pton \ | ||
11111 | __b64_pton \ | ||
11112 | bcopy \ | ||
11113 | bcrypt_pbkdf \ | ||
11114 | bindresvport_sa \ | ||
11115 | blf_enc \ | ||
11116 | bzero \ | ||
11117 | cap_rights_limit \ | ||
11118 | clock \ | ||
11119 | closefrom \ | ||
11120 | dirfd \ | ||
11121 | endgrent \ | ||
11122 | err \ | ||
11123 | errx \ | ||
11124 | explicit_bzero \ | ||
11125 | fchmod \ | ||
11126 | fchown \ | ||
11127 | flock \ | ||
11128 | freeaddrinfo \ | ||
11129 | freezero \ | ||
11130 | fstatfs \ | ||
11131 | fstatvfs \ | ||
11132 | futimes \ | ||
11133 | getaddrinfo \ | ||
11134 | getcwd \ | ||
11135 | getgrouplist \ | ||
11136 | getline \ | ||
11137 | getnameinfo \ | ||
11138 | getopt \ | ||
11139 | getpagesize \ | ||
11140 | getpeereid \ | ||
11141 | getpeerucred \ | ||
11142 | getpgid \ | ||
11143 | _getpty \ | ||
11144 | getrlimit \ | ||
11145 | getrandom \ | ||
11146 | getsid \ | ||
11147 | getttyent \ | ||
11148 | glob \ | ||
11149 | group_from_gid \ | ||
11150 | inet_aton \ | ||
11151 | inet_ntoa \ | ||
11152 | inet_ntop \ | ||
11153 | innetgr \ | ||
11154 | llabs \ | ||
11155 | login_getcapbool \ | ||
11156 | md5_crypt \ | ||
11157 | memmove \ | ||
11158 | memset_s \ | ||
11159 | mkdtemp \ | ||
11160 | ngetaddrinfo \ | ||
11161 | nsleep \ | ||
11162 | ogetaddrinfo \ | ||
11163 | openlog_r \ | ||
11164 | pledge \ | ||
11165 | poll \ | ||
11166 | prctl \ | ||
11167 | pstat \ | ||
11168 | raise \ | ||
11169 | readpassphrase \ | ||
11170 | reallocarray \ | ||
11171 | recvmsg \ | ||
11172 | recallocarray \ | ||
11173 | rresvport_af \ | ||
11174 | sendmsg \ | ||
11175 | setdtablesize \ | ||
11176 | setegid \ | ||
11177 | setenv \ | ||
11178 | seteuid \ | ||
11179 | setgroupent \ | ||
11180 | setgroups \ | ||
11181 | setlinebuf \ | ||
11182 | setlogin \ | ||
11183 | setpassent\ | ||
11184 | setpcred \ | ||
11185 | setproctitle \ | ||
11186 | setregid \ | ||
11187 | setreuid \ | ||
11188 | setrlimit \ | ||
11189 | setsid \ | ||
11190 | setvbuf \ | ||
11191 | sigaction \ | ||
11192 | sigvec \ | ||
11193 | snprintf \ | ||
11194 | socketpair \ | ||
11195 | statfs \ | ||
11196 | statvfs \ | ||
11197 | strcasestr \ | ||
11198 | strdup \ | ||
11199 | strerror \ | ||
11200 | strlcat \ | ||
11201 | strlcpy \ | ||
11202 | strmode \ | ||
11203 | strndup \ | ||
11204 | strnlen \ | ||
11205 | strnvis \ | ||
11206 | strptime \ | ||
11207 | strsignal \ | ||
11208 | strtonum \ | ||
11209 | strtoll \ | ||
11210 | strtoul \ | ||
11211 | strtoull \ | ||
11212 | swap32 \ | ||
11213 | sysconf \ | ||
11214 | tcgetpgrp \ | ||
11215 | timingsafe_bcmp \ | ||
11216 | truncate \ | ||
11217 | unsetenv \ | ||
11218 | updwtmpx \ | ||
11219 | user_from_uid \ | ||
11220 | usleep \ | ||
11221 | vasprintf \ | ||
11222 | vsnprintf \ | ||
11223 | waitpid \ | ||
11224 | warn \ | ||
11225 | |||
11226 | do : | ||
11227 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11228 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11229 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11230 | cat >>confdefs.h <<_ACEOF | ||
11231 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11232 | _ACEOF | ||
11233 | |||
11234 | fi | ||
11235 | done | ||
11236 | |||
11237 | |||
11238 | ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default" | ||
11239 | if test "x$ac_cv_have_decl_bzero" = xyes; then : | ||
11240 | ac_have_decl=1 | ||
11241 | else | ||
11242 | ac_have_decl=0 | ||
11243 | fi | ||
11244 | |||
11245 | cat >>confdefs.h <<_ACEOF | ||
11246 | #define HAVE_DECL_BZERO $ac_have_decl | ||
11247 | _ACEOF | ||
11248 | |||
11249 | |||
11250 | for ac_func in mblen mbtowc nl_langinfo wcwidth | ||
11251 | do : | ||
11252 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11253 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11254 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11255 | cat >>confdefs.h <<_ACEOF | ||
11256 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11257 | _ACEOF | ||
11258 | |||
11259 | fi | ||
11260 | done | ||
11261 | |||
11262 | |||
11263 | TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} | ||
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 | ||
11265 | $as_echo_n "checking for utf8 locale support... " >&6; } | ||
11266 | if test "$cross_compiling" = yes; then : | ||
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11268 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11269 | |||
11270 | else | ||
11271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11272 | /* end confdefs.h. */ | ||
11273 | |||
11274 | #include <locale.h> | ||
11275 | #include <stdlib.h> | ||
11276 | |||
11277 | int | ||
11278 | main () | ||
11279 | { | ||
11280 | |||
11281 | char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); | ||
11282 | if (loc != NULL) | ||
11283 | exit(0); | ||
11284 | exit(1); | ||
11285 | |||
11286 | ; | ||
11287 | return 0; | ||
11288 | } | ||
11289 | _ACEOF | ||
11290 | if ac_fn_c_try_run "$LINENO"; then : | ||
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11292 | $as_echo "yes" >&6; } | ||
11293 | else | ||
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11295 | $as_echo "no" >&6; } | ||
11296 | TEST_SSH_UTF8=no | ||
11297 | fi | ||
11298 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11299 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11300 | fi | ||
11301 | |||
11302 | |||
11303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11304 | /* end confdefs.h. */ | ||
11305 | #include <ctype.h> | ||
11306 | int | ||
11307 | main () | ||
11308 | { | ||
11309 | return (isblank('a')); | ||
11310 | ; | ||
11311 | return 0; | ||
11312 | } | ||
11313 | _ACEOF | ||
11314 | if ac_fn_c_try_link "$LINENO"; then : | ||
11315 | |||
11316 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
11317 | |||
11318 | |||
11319 | fi | ||
11320 | rm -f core conftest.err conftest.$ac_objext \ | ||
11321 | conftest$ac_exeext conftest.$ac_ext | ||
11322 | |||
11323 | disable_pkcs11= | ||
11324 | # Check whether --enable-pkcs11 was given. | ||
11325 | if test "${enable_pkcs11+set}" = set; then : | ||
11326 | enableval=$enable_pkcs11; | ||
11327 | if test "x$enableval" = "xno" ; then | ||
11328 | disable_pkcs11=1 | ||
11329 | fi | ||
11330 | |||
11331 | |||
11332 | fi | ||
11333 | |||
11334 | |||
11335 | # PKCS11 depends on OpenSSL. | ||
11336 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then | ||
11337 | # PKCS#11 support requires dlopen() and co | ||
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
11339 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
11340 | if ${ac_cv_search_dlopen+:} false; then : | ||
11341 | $as_echo_n "(cached) " >&6 | ||
11342 | else | ||
11343 | ac_func_search_save_LIBS=$LIBS | ||
11344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11345 | /* end confdefs.h. */ | ||
11346 | |||
11347 | /* Override any GCC internal prototype to avoid an error. | ||
11348 | Use char because int might match the return type of a GCC | ||
11349 | builtin and then its argument prototype would still apply. */ | ||
11350 | #ifdef __cplusplus | ||
11351 | extern "C" | ||
11352 | #endif | ||
11353 | char dlopen (); | ||
11354 | int | ||
11355 | main () | ||
11356 | { | ||
11357 | return dlopen (); | ||
11358 | ; | ||
11359 | return 0; | ||
11360 | } | ||
11361 | _ACEOF | ||
11362 | for ac_lib in '' dl; do | ||
11363 | if test -z "$ac_lib"; then | ||
11364 | ac_res="none required" | ||
11365 | else | ||
11366 | ac_res=-l$ac_lib | ||
11367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11368 | fi | ||
11369 | if ac_fn_c_try_link "$LINENO"; then : | ||
11370 | ac_cv_search_dlopen=$ac_res | ||
11371 | fi | ||
11372 | rm -f core conftest.err conftest.$ac_objext \ | ||
11373 | conftest$ac_exeext | ||
11374 | if ${ac_cv_search_dlopen+:} false; then : | ||
11375 | break | ||
11376 | fi | ||
11377 | done | ||
11378 | if ${ac_cv_search_dlopen+:} false; then : | ||
11379 | |||
11380 | else | ||
11381 | ac_cv_search_dlopen=no | ||
11382 | fi | ||
11383 | rm conftest.$ac_ext | ||
11384 | LIBS=$ac_func_search_save_LIBS | ||
11385 | fi | ||
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
11387 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
11388 | ac_res=$ac_cv_search_dlopen | ||
11389 | if test "$ac_res" != no; then : | ||
11390 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11391 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||
11392 | |||
11393 | " | ||
11394 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||
11395 | |||
11396 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
11397 | |||
11398 | fi | ||
11399 | |||
11400 | |||
11401 | fi | ||
11402 | |||
11403 | fi | ||
11404 | |||
11405 | # IRIX has a const char return value for gai_strerror() | ||
11406 | for ac_func in gai_strerror | ||
11407 | do : | ||
11408 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
11409 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
11410 | cat >>confdefs.h <<_ACEOF | ||
11411 | #define HAVE_GAI_STRERROR 1 | ||
11412 | _ACEOF | ||
11413 | |||
11414 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
11415 | |||
11416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11417 | /* end confdefs.h. */ | ||
11418 | |||
11419 | #include <sys/types.h> | ||
11420 | #include <sys/socket.h> | ||
11421 | #include <netdb.h> | ||
11422 | |||
11423 | const char *gai_strerror(int); | ||
11424 | |||
11425 | int | ||
11426 | main () | ||
11427 | { | ||
11428 | |||
11429 | char *str; | ||
11430 | str = gai_strerror(0); | ||
11431 | |||
11432 | ; | ||
11433 | return 0; | ||
11434 | } | ||
11435 | _ACEOF | ||
11436 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11437 | |||
11438 | |||
11439 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
11440 | |||
11441 | fi | ||
11442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11443 | fi | ||
11444 | done | ||
11445 | |||
11446 | |||
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
11448 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
11449 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11450 | $as_echo_n "(cached) " >&6 | ||
11451 | else | ||
11452 | ac_func_search_save_LIBS=$LIBS | ||
11453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11454 | /* end confdefs.h. */ | ||
11455 | |||
11456 | /* Override any GCC internal prototype to avoid an error. | ||
11457 | Use char because int might match the return type of a GCC | ||
11458 | builtin and then its argument prototype would still apply. */ | ||
11459 | #ifdef __cplusplus | ||
11460 | extern "C" | ||
11461 | #endif | ||
11462 | char nanosleep (); | ||
11463 | int | ||
11464 | main () | ||
11465 | { | ||
11466 | return nanosleep (); | ||
11467 | ; | ||
11468 | return 0; | ||
11469 | } | ||
11470 | _ACEOF | ||
11471 | for ac_lib in '' rt posix4; do | ||
11472 | if test -z "$ac_lib"; then | ||
11473 | ac_res="none required" | ||
11474 | else | ||
11475 | ac_res=-l$ac_lib | ||
11476 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11477 | fi | ||
11478 | if ac_fn_c_try_link "$LINENO"; then : | ||
11479 | ac_cv_search_nanosleep=$ac_res | ||
11480 | fi | ||
11481 | rm -f core conftest.err conftest.$ac_objext \ | ||
11482 | conftest$ac_exeext | ||
11483 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11484 | break | ||
11485 | fi | ||
11486 | done | ||
11487 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11488 | |||
11489 | else | ||
11490 | ac_cv_search_nanosleep=no | ||
11491 | fi | ||
11492 | rm conftest.$ac_ext | ||
11493 | LIBS=$ac_func_search_save_LIBS | ||
11494 | fi | ||
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
11496 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
11497 | ac_res=$ac_cv_search_nanosleep | ||
11498 | if test "$ac_res" != no; then : | ||
11499 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11500 | |||
11501 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
11502 | |||
11503 | fi | ||
11504 | |||
11505 | |||
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | ||
11507 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | ||
11508 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11509 | $as_echo_n "(cached) " >&6 | ||
11510 | else | ||
11511 | ac_func_search_save_LIBS=$LIBS | ||
11512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11513 | /* end confdefs.h. */ | ||
11514 | |||
11515 | /* Override any GCC internal prototype to avoid an error. | ||
11516 | Use char because int might match the return type of a GCC | ||
11517 | builtin and then its argument prototype would still apply. */ | ||
11518 | #ifdef __cplusplus | ||
11519 | extern "C" | ||
11520 | #endif | ||
11521 | char clock_gettime (); | ||
11522 | int | ||
11523 | main () | ||
11524 | { | ||
11525 | return clock_gettime (); | ||
11526 | ; | ||
11527 | return 0; | ||
11528 | } | ||
11529 | _ACEOF | ||
11530 | for ac_lib in '' rt; do | ||
11531 | if test -z "$ac_lib"; then | ||
11532 | ac_res="none required" | ||
11533 | else | ||
11534 | ac_res=-l$ac_lib | ||
11535 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11536 | fi | ||
11537 | if ac_fn_c_try_link "$LINENO"; then : | ||
11538 | ac_cv_search_clock_gettime=$ac_res | ||
11539 | fi | ||
11540 | rm -f core conftest.err conftest.$ac_objext \ | ||
11541 | conftest$ac_exeext | ||
11542 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11543 | break | ||
11544 | fi | ||
11545 | done | ||
11546 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11547 | |||
11548 | else | ||
11549 | ac_cv_search_clock_gettime=no | ||
11550 | fi | ||
11551 | rm conftest.$ac_ext | ||
11552 | LIBS=$ac_func_search_save_LIBS | ||
11553 | fi | ||
11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | ||
11555 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | ||
11556 | ac_res=$ac_cv_search_clock_gettime | ||
11557 | if test "$ac_res" != no; then : | ||
11558 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11559 | |||
11560 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
11561 | |||
11562 | fi | ||
11563 | |||
11564 | |||
11565 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
11566 | #ifdef HAVE_STRING_H | ||
11567 | # include <string.h> | ||
11568 | #endif | ||
11569 | |||
11570 | " | ||
11571 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
11572 | for ac_func in strsep | ||
11573 | do : | ||
11574 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
11575 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
11576 | cat >>confdefs.h <<_ACEOF | ||
11577 | #define HAVE_STRSEP 1 | ||
11578 | _ACEOF | ||
11579 | |||
11580 | fi | ||
11581 | done | ||
11582 | |||
11583 | fi | ||
11584 | |||
11585 | |||
11586 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
11587 | |||
11588 | " | ||
11589 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
11590 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
11591 | |||
11592 | else | ||
11593 | for ac_func in tcsendbreak | ||
11594 | do : | ||
11595 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
11596 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
11597 | cat >>confdefs.h <<_ACEOF | ||
11598 | #define HAVE_TCSENDBREAK 1 | ||
11599 | _ACEOF | ||
11600 | |||
11601 | fi | ||
11602 | done | ||
11603 | |||
11604 | fi | ||
11605 | |||
11606 | |||
11607 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
11608 | " | ||
11609 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
11610 | ac_have_decl=1 | ||
11611 | else | ||
11612 | ac_have_decl=0 | ||
11613 | fi | ||
11614 | |||
11615 | cat >>confdefs.h <<_ACEOF | ||
11616 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
11617 | _ACEOF | ||
11618 | |||
11619 | |||
11620 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
11621 | #include <sys/types.h> | ||
11622 | #include <sys/socket.h> | ||
11623 | |||
11624 | " | ||
11625 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
11626 | ac_have_decl=1 | ||
11627 | else | ||
11628 | ac_have_decl=0 | ||
11629 | fi | ||
11630 | |||
11631 | cat >>confdefs.h <<_ACEOF | ||
11632 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
11633 | _ACEOF | ||
11634 | |||
11635 | |||
11636 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
11637 | #include <sys/types.h> | ||
11638 | #ifdef HAVE_SYS_STAT_H | ||
11639 | # include <sys/stat.h> | ||
11640 | #endif | ||
11641 | #ifdef HAVE_FCNTL_H | ||
11642 | # include <fcntl.h> | ||
11643 | #endif | ||
11644 | |||
11645 | " | ||
11646 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
11647 | ac_have_decl=1 | ||
11648 | else | ||
11649 | ac_have_decl=0 | ||
11650 | fi | ||
11651 | |||
11652 | cat >>confdefs.h <<_ACEOF | ||
11653 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
11654 | _ACEOF | ||
11655 | |||
11656 | |||
11657 | ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" " | ||
11658 | #include <sys/types.h> | ||
11659 | #include <sys/uio.h> | ||
11660 | #include <unistd.h> | ||
11661 | |||
11662 | " | ||
11663 | if test "x$ac_cv_have_decl_readv" = xyes; then : | ||
11664 | ac_have_decl=1 | ||
11665 | else | ||
11666 | ac_have_decl=0 | ||
11667 | fi | ||
11668 | |||
11669 | cat >>confdefs.h <<_ACEOF | ||
11670 | #define HAVE_DECL_READV $ac_have_decl | ||
11671 | _ACEOF | ||
11672 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
11673 | #include <sys/types.h> | ||
11674 | #include <sys/uio.h> | ||
11675 | #include <unistd.h> | ||
11676 | |||
11677 | " | ||
11678 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
11679 | ac_have_decl=1 | ||
11680 | else | ||
11681 | ac_have_decl=0 | ||
11682 | fi | ||
11683 | |||
11684 | cat >>confdefs.h <<_ACEOF | ||
11685 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
11686 | _ACEOF | ||
11687 | |||
11688 | |||
11689 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
11690 | #include <sys/param.h> | ||
11691 | |||
11692 | " | ||
11693 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
11694 | ac_have_decl=1 | ||
11695 | else | ||
11696 | ac_have_decl=0 | ||
11697 | fi | ||
11698 | |||
11699 | cat >>confdefs.h <<_ACEOF | ||
11700 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
11701 | _ACEOF | ||
11702 | |||
11703 | |||
11704 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
11705 | #include <stddef.h> | ||
11706 | |||
11707 | " | ||
11708 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
11709 | ac_have_decl=1 | ||
11710 | else | ||
11711 | ac_have_decl=0 | ||
11712 | fi | ||
11713 | |||
11714 | cat >>confdefs.h <<_ACEOF | ||
11715 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
11716 | _ACEOF | ||
11717 | |||
11718 | |||
11719 | # extra bits for select(2) | ||
11720 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " | ||
11721 | #include <sys/param.h> | ||
11722 | #include <sys/types.h> | ||
11723 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11724 | #include <sys/sysmacros.h> | ||
11725 | #endif | ||
11726 | #ifdef HAVE_SYS_SELECT_H | ||
11727 | #include <sys/select.h> | ||
11728 | #endif | ||
11729 | #ifdef HAVE_SYS_TIME_H | ||
11730 | #include <sys/time.h> | ||
11731 | #endif | ||
11732 | #ifdef HAVE_UNISTD_H | ||
11733 | #include <unistd.h> | ||
11734 | #endif | ||
11735 | |||
11736 | " | ||
11737 | if test "x$ac_cv_have_decl_howmany" = xyes; then : | ||
11738 | ac_have_decl=1 | ||
11739 | else | ||
11740 | ac_have_decl=0 | ||
11741 | fi | ||
11742 | |||
11743 | cat >>confdefs.h <<_ACEOF | ||
11744 | #define HAVE_DECL_HOWMANY $ac_have_decl | ||
11745 | _ACEOF | ||
11746 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " | ||
11747 | #include <sys/param.h> | ||
11748 | #include <sys/types.h> | ||
11749 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11750 | #include <sys/sysmacros.h> | ||
11751 | #endif | ||
11752 | #ifdef HAVE_SYS_SELECT_H | ||
11753 | #include <sys/select.h> | ||
11754 | #endif | ||
11755 | #ifdef HAVE_SYS_TIME_H | ||
11756 | #include <sys/time.h> | ||
11757 | #endif | ||
11758 | #ifdef HAVE_UNISTD_H | ||
11759 | #include <unistd.h> | ||
11760 | #endif | ||
11761 | |||
11762 | " | ||
11763 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : | ||
11764 | ac_have_decl=1 | ||
11765 | else | ||
11766 | ac_have_decl=0 | ||
11767 | fi | ||
11768 | |||
11769 | cat >>confdefs.h <<_ACEOF | ||
11770 | #define HAVE_DECL_NFDBITS $ac_have_decl | ||
11771 | _ACEOF | ||
11772 | |||
11773 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " | ||
11774 | #include <sys/param.h> | ||
11775 | #include <sys/types.h> | ||
11776 | #ifdef HAVE_SYS_SELECT_H | ||
11777 | #include <sys/select.h> | ||
11778 | #endif | ||
11779 | #ifdef HAVE_SYS_TIME_H | ||
11780 | #include <sys/time.h> | ||
11781 | #endif | ||
11782 | #ifdef HAVE_UNISTD_H | ||
11783 | #include <unistd.h> | ||
11784 | #endif | ||
11785 | |||
11786 | " | ||
11787 | if test "x$ac_cv_type_fd_mask" = xyes; then : | ||
11788 | |||
11789 | cat >>confdefs.h <<_ACEOF | ||
11790 | #define HAVE_FD_MASK 1 | ||
11791 | _ACEOF | ||
11792 | |||
11793 | |||
11794 | fi | ||
11795 | |||
11796 | |||
11797 | for ac_func in setresuid | ||
11798 | do : | ||
11799 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
11800 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
11801 | cat >>confdefs.h <<_ACEOF | ||
11802 | #define HAVE_SETRESUID 1 | ||
11803 | _ACEOF | ||
11804 | |||
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
11806 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
11807 | if test "$cross_compiling" = yes; then : | ||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11809 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11810 | |||
11811 | else | ||
11812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11813 | /* end confdefs.h. */ | ||
11814 | |||
11815 | #include <stdlib.h> | ||
11816 | #include <errno.h> | ||
11817 | |||
11818 | int | ||
11819 | main () | ||
11820 | { | ||
11821 | |||
11822 | errno=0; | ||
11823 | setresuid(0,0,0); | ||
11824 | if (errno==ENOSYS) | ||
11825 | exit(1); | ||
11826 | else | ||
11827 | exit(0); | ||
11828 | |||
11829 | ; | ||
11830 | return 0; | ||
11831 | } | ||
11832 | _ACEOF | ||
11833 | if ac_fn_c_try_run "$LINENO"; then : | ||
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11835 | $as_echo "yes" >&6; } | ||
11836 | else | ||
11837 | |||
11838 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
11839 | |||
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11841 | $as_echo "not implemented" >&6; } | ||
11842 | fi | ||
11843 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11844 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11845 | fi | ||
11846 | |||
11847 | |||
11848 | fi | ||
11849 | done | ||
11850 | |||
11851 | |||
11852 | for ac_func in setresgid | ||
11853 | do : | ||
11854 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
11855 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
11856 | cat >>confdefs.h <<_ACEOF | ||
11857 | #define HAVE_SETRESGID 1 | ||
11858 | _ACEOF | ||
11859 | |||
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
11861 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
11862 | if test "$cross_compiling" = yes; then : | ||
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11864 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11865 | |||
11866 | else | ||
11867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11868 | /* end confdefs.h. */ | ||
11869 | |||
11870 | #include <stdlib.h> | ||
11871 | #include <errno.h> | ||
11872 | |||
11873 | int | ||
11874 | main () | ||
11875 | { | ||
11876 | |||
11877 | errno=0; | ||
11878 | setresgid(0,0,0); | ||
11879 | if (errno==ENOSYS) | ||
11880 | exit(1); | ||
11881 | else | ||
11882 | exit(0); | ||
11883 | |||
11884 | ; | ||
11885 | return 0; | ||
11886 | } | ||
11887 | _ACEOF | ||
11888 | if ac_fn_c_try_run "$LINENO"; then : | ||
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11890 | $as_echo "yes" >&6; } | ||
11891 | else | ||
11892 | |||
11893 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
11894 | |||
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11896 | $as_echo "not implemented" >&6; } | ||
11897 | fi | ||
11898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11899 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11900 | fi | ||
11901 | |||
11902 | |||
11903 | fi | ||
11904 | done | ||
11905 | |||
11906 | |||
11907 | for ac_func in realpath | ||
11908 | do : | ||
11909 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" | ||
11910 | if test "x$ac_cv_func_realpath" = xyes; then : | ||
11911 | cat >>confdefs.h <<_ACEOF | ||
11912 | #define HAVE_REALPATH 1 | ||
11913 | _ACEOF | ||
11914 | |||
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 | ||
11916 | $as_echo_n "checking if realpath works with non-existent files... " >&6; } | ||
11917 | if test "$cross_compiling" = yes; then : | ||
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
11919 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
11920 | |||
11921 | else | ||
11922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11923 | /* end confdefs.h. */ | ||
11924 | |||
11925 | #include <limits.h> | ||
11926 | #include <stdlib.h> | ||
11927 | #include <errno.h> | ||
11928 | |||
11929 | int | ||
11930 | main () | ||
11931 | { | ||
11932 | |||
11933 | char buf[PATH_MAX]; | ||
11934 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) | ||
11935 | if (errno == ENOENT) | ||
11936 | exit(1); | ||
11937 | exit(0); | ||
11938 | |||
11939 | ; | ||
11940 | return 0; | ||
11941 | } | ||
11942 | _ACEOF | ||
11943 | if ac_fn_c_try_run "$LINENO"; then : | ||
11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11945 | $as_echo "yes" >&6; } | ||
11946 | else | ||
11947 | |||
11948 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
11949 | |||
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11951 | $as_echo "no" >&6; } | ||
11952 | fi | ||
11953 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11954 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11955 | fi | ||
11956 | |||
11957 | |||
11958 | fi | ||
11959 | done | ||
11960 | |||
11961 | |||
11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5 | ||
11963 | $as_echo_n "checking for working fflush(NULL)... " >&6; } | ||
11964 | if test "$cross_compiling" = yes; then : | ||
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
11966 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
11967 | |||
11968 | else | ||
11969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11970 | /* end confdefs.h. */ | ||
11971 | #include <stdio.h> | ||
11972 | int | ||
11973 | main () | ||
11974 | { | ||
11975 | fflush(NULL); exit(0); | ||
11976 | ; | ||
11977 | return 0; | ||
11978 | } | ||
11979 | _ACEOF | ||
11980 | if ac_fn_c_try_run "$LINENO"; then : | ||
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11982 | $as_echo "yes" >&6; } | ||
11983 | else | ||
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11985 | $as_echo "no" >&6; } | ||
11986 | |||
11987 | $as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h | ||
11988 | |||
11989 | fi | ||
11990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11991 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11992 | fi | ||
11993 | |||
11994 | |||
11995 | for ac_func in gettimeofday time | ||
11996 | do : | ||
11997 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11998 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11999 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12000 | cat >>confdefs.h <<_ACEOF | ||
12001 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12002 | _ACEOF | ||
12003 | |||
12004 | fi | ||
12005 | done | ||
12006 | |||
12007 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
12008 | do : | ||
12009 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12010 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12011 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12012 | cat >>confdefs.h <<_ACEOF | ||
12013 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12014 | _ACEOF | ||
12015 | |||
12016 | fi | ||
12017 | done | ||
12018 | |||
12019 | for ac_func in utmpname | ||
12020 | do : | ||
12021 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
12022 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
12023 | cat >>confdefs.h <<_ACEOF | ||
12024 | #define HAVE_UTMPNAME 1 | ||
12025 | _ACEOF | ||
12026 | |||
12027 | fi | ||
12028 | done | ||
12029 | |||
12030 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
12031 | do : | ||
12032 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12033 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12034 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12035 | cat >>confdefs.h <<_ACEOF | ||
12036 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12037 | _ACEOF | ||
12038 | |||
12039 | fi | ||
12040 | done | ||
12041 | |||
12042 | for ac_func in setutxdb setutxent utmpxname | ||
12043 | do : | ||
12044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12045 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12046 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12047 | cat >>confdefs.h <<_ACEOF | ||
12048 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12049 | _ACEOF | ||
12050 | |||
12051 | fi | ||
12052 | done | ||
12053 | |||
12054 | for ac_func in getlastlogxbyname | ||
12055 | do : | ||
12056 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
12057 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
12058 | cat >>confdefs.h <<_ACEOF | ||
12059 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
12060 | _ACEOF | ||
12061 | |||
12062 | fi | ||
12063 | done | ||
12064 | |||
12065 | |||
12066 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
12067 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
12068 | |||
12069 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
12070 | |||
12071 | else | ||
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
12073 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
12074 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
12075 | $as_echo_n "(cached) " >&6 | ||
12076 | else | ||
12077 | ac_check_lib_save_LIBS=$LIBS | ||
12078 | LIBS="-lbsd $LIBS" | ||
12079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12080 | /* end confdefs.h. */ | ||
12081 | |||
12082 | /* Override any GCC internal prototype to avoid an error. | ||
12083 | Use char because int might match the return type of a GCC | ||
12084 | builtin and then its argument prototype would still apply. */ | ||
12085 | #ifdef __cplusplus | ||
12086 | extern "C" | ||
12087 | #endif | ||
12088 | char daemon (); | ||
12089 | int | ||
12090 | main () | ||
12091 | { | ||
12092 | return daemon (); | ||
12093 | ; | ||
12094 | return 0; | ||
12095 | } | ||
12096 | _ACEOF | ||
12097 | if ac_fn_c_try_link "$LINENO"; then : | ||
12098 | ac_cv_lib_bsd_daemon=yes | ||
12099 | else | ||
12100 | ac_cv_lib_bsd_daemon=no | ||
12101 | fi | ||
12102 | rm -f core conftest.err conftest.$ac_objext \ | ||
12103 | conftest$ac_exeext conftest.$ac_ext | ||
12104 | LIBS=$ac_check_lib_save_LIBS | ||
12105 | fi | ||
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
12107 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
12108 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
12109 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
12110 | |||
12111 | fi | ||
12112 | |||
12113 | |||
12114 | fi | ||
12115 | |||
12116 | |||
12117 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
12118 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
12119 | |||
12120 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
12121 | |||
12122 | else | ||
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
12124 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
12125 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
12126 | $as_echo_n "(cached) " >&6 | ||
12127 | else | ||
12128 | ac_check_lib_save_LIBS=$LIBS | ||
12129 | LIBS="-lucb $LIBS" | ||
12130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12131 | /* end confdefs.h. */ | ||
12132 | |||
12133 | /* Override any GCC internal prototype to avoid an error. | ||
12134 | Use char because int might match the return type of a GCC | ||
12135 | builtin and then its argument prototype would still apply. */ | ||
12136 | #ifdef __cplusplus | ||
12137 | extern "C" | ||
12138 | #endif | ||
12139 | char getpagesize (); | ||
12140 | int | ||
12141 | main () | ||
12142 | { | ||
12143 | return getpagesize (); | ||
12144 | ; | ||
12145 | return 0; | ||
12146 | } | ||
12147 | _ACEOF | ||
12148 | if ac_fn_c_try_link "$LINENO"; then : | ||
12149 | ac_cv_lib_ucb_getpagesize=yes | ||
12150 | else | ||
12151 | ac_cv_lib_ucb_getpagesize=no | ||
12152 | fi | ||
12153 | rm -f core conftest.err conftest.$ac_objext \ | ||
12154 | conftest$ac_exeext conftest.$ac_ext | ||
12155 | LIBS=$ac_check_lib_save_LIBS | ||
12156 | fi | ||
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
12158 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
12159 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
12160 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
12161 | |||
12162 | fi | ||
12163 | |||
12164 | |||
12165 | fi | ||
12166 | |||
12167 | |||
12168 | # Check for broken snprintf | ||
12169 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
12171 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
12172 | if test "$cross_compiling" = yes; then : | ||
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12174 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12175 | |||
12176 | else | ||
12177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12178 | /* end confdefs.h. */ | ||
12179 | #include <stdio.h> | ||
12180 | int | ||
12181 | main () | ||
12182 | { | ||
12183 | |||
12184 | char b[5]; | ||
12185 | snprintf(b,5,"123456789"); | ||
12186 | exit(b[4]!='\0'); | ||
12187 | |||
12188 | ; | ||
12189 | return 0; | ||
12190 | } | ||
12191 | _ACEOF | ||
12192 | if ac_fn_c_try_run "$LINENO"; then : | ||
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12194 | $as_echo "yes" >&6; } | ||
12195 | else | ||
12196 | |||
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12198 | $as_echo "no" >&6; } | ||
12199 | |||
12200 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12201 | |||
12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
12203 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
12204 | |||
12205 | fi | ||
12206 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12207 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12208 | fi | ||
12209 | |||
12210 | fi | ||
12211 | |||
12212 | # We depend on vsnprintf returning the right thing on overflow: the | ||
12213 | # number of characters it tried to create (as per SUSv3) | ||
12214 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
12216 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
12217 | if test "$cross_compiling" = yes; then : | ||
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
12219 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
12220 | |||
12221 | else | ||
12222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12223 | /* end confdefs.h. */ | ||
12224 | |||
12225 | #include <sys/types.h> | ||
12226 | #include <stdio.h> | ||
12227 | #include <stdarg.h> | ||
12228 | |||
12229 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
12230 | { | ||
12231 | size_t ret; | ||
12232 | va_list ap; | ||
12233 | |||
12234 | va_start(ap, fmt); | ||
12235 | ret = vsnprintf(str, count, fmt, ap); | ||
12236 | va_end(ap); | ||
12237 | return ret; | ||
12238 | } | ||
12239 | |||
12240 | int | ||
12241 | main () | ||
12242 | { | ||
12243 | |||
12244 | char x[1]; | ||
12245 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
12246 | return 1; | ||
12247 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
12248 | return 1; | ||
12249 | return 0; | ||
12250 | |||
12251 | ; | ||
12252 | return 0; | ||
12253 | } | ||
12254 | _ACEOF | ||
12255 | if ac_fn_c_try_run "$LINENO"; then : | ||
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12257 | $as_echo "yes" >&6; } | ||
12258 | else | ||
12259 | |||
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12261 | $as_echo "no" >&6; } | ||
12262 | |||
12263 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12264 | |||
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
12266 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
12267 | |||
12268 | fi | ||
12269 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12270 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12271 | fi | ||
12272 | |||
12273 | fi | ||
12274 | |||
12275 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
12276 | # check that the fmt argument is const char * or just char *. | ||
12277 | # This is only useful for when BROKEN_SNPRINTF | ||
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
12279 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
12280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12281 | /* end confdefs.h. */ | ||
12282 | |||
12283 | #include <stdio.h> | ||
12284 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
12285 | |||
12286 | int | ||
12287 | main () | ||
12288 | { | ||
12289 | |||
12290 | snprintf(0, 0, 0); | ||
12291 | |||
12292 | ; | ||
12293 | return 0; | ||
12294 | } | ||
12295 | _ACEOF | ||
12296 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12298 | $as_echo "yes" >&6; } | ||
12299 | |||
12300 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
12301 | |||
12302 | else | ||
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12304 | $as_echo "no" >&6; } | ||
12305 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
12306 | |||
12307 | fi | ||
12308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12309 | |||
12310 | # Check for missing getpeereid (or equiv) support | ||
12311 | NO_PEERCHECK="" | ||
12312 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
12314 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12316 | /* end confdefs.h. */ | ||
12317 | |||
12318 | #include <sys/types.h> | ||
12319 | #include <sys/socket.h> | ||
12320 | int | ||
12321 | main () | ||
12322 | { | ||
12323 | int i = SO_PEERCRED; | ||
12324 | ; | ||
12325 | return 0; | ||
12326 | } | ||
12327 | _ACEOF | ||
12328 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12330 | $as_echo "yes" >&6; } | ||
12331 | |||
12332 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
12333 | |||
12334 | |||
12335 | else | ||
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12337 | $as_echo "no" >&6; } | ||
12338 | NO_PEERCHECK=1 | ||
12339 | |||
12340 | fi | ||
12341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12342 | fi | ||
12343 | |||
12344 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
12346 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
12347 | if test "$cross_compiling" = yes; then : | ||
12348 | |||
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12350 | $as_echo "yes" >&6; } | ||
12351 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12352 | |||
12353 | |||
12354 | |||
12355 | else | ||
12356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12357 | /* end confdefs.h. */ | ||
12358 | |||
12359 | #include <stdlib.h> | ||
12360 | |||
12361 | int | ||
12362 | main () | ||
12363 | { | ||
12364 | |||
12365 | char template[]="conftest.mkstemp-test"; | ||
12366 | if (mkstemp(template) == -1) | ||
12367 | exit(1); | ||
12368 | unlink(template); | ||
12369 | exit(0); | ||
12370 | |||
12371 | ; | ||
12372 | return 0; | ||
12373 | } | ||
12374 | _ACEOF | ||
12375 | if ac_fn_c_try_run "$LINENO"; then : | ||
12376 | |||
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12378 | $as_echo "no" >&6; } | ||
12379 | |||
12380 | else | ||
12381 | |||
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12383 | $as_echo "yes" >&6; } | ||
12384 | |||
12385 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12386 | |||
12387 | |||
12388 | fi | ||
12389 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12390 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12391 | fi | ||
12392 | |||
12393 | fi | ||
12394 | |||
12395 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
12397 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
12398 | if test "$cross_compiling" = yes; then : | ||
12399 | |||
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12401 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12402 | |||
12403 | |||
12404 | else | ||
12405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12406 | /* end confdefs.h. */ | ||
12407 | |||
12408 | #include <stdio.h> | ||
12409 | #include <sys/fcntl.h> | ||
12410 | #include <sys/types.h> | ||
12411 | #include <sys/wait.h> | ||
12412 | |||
12413 | int | ||
12414 | main () | ||
12415 | { | ||
12416 | |||
12417 | pid_t pid; | ||
12418 | int fd, ptyfd, ttyfd, status; | ||
12419 | |||
12420 | pid = fork(); | ||
12421 | if (pid < 0) { /* failed */ | ||
12422 | exit(1); | ||
12423 | } else if (pid > 0) { /* parent */ | ||
12424 | waitpid(pid, &status, 0); | ||
12425 | if (WIFEXITED(status)) | ||
12426 | exit(WEXITSTATUS(status)); | ||
12427 | else | ||
12428 | exit(2); | ||
12429 | } else { /* child */ | ||
12430 | close(0); close(1); close(2); | ||
12431 | setsid(); | ||
12432 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12433 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12434 | if (fd >= 0) | ||
12435 | exit(3); /* Acquired ctty: broken */ | ||
12436 | else | ||
12437 | exit(0); /* Did not acquire ctty: OK */ | ||
12438 | } | ||
12439 | |||
12440 | ; | ||
12441 | return 0; | ||
12442 | } | ||
12443 | _ACEOF | ||
12444 | if ac_fn_c_try_run "$LINENO"; then : | ||
12445 | |||
12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12447 | $as_echo "yes" >&6; } | ||
12448 | |||
12449 | else | ||
12450 | |||
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12452 | $as_echo "no" >&6; } | ||
12453 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
12454 | |||
12455 | |||
12456 | fi | ||
12457 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12458 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12459 | fi | ||
12460 | |||
12461 | fi | ||
12462 | |||
12463 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12464 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12466 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12467 | if test "$cross_compiling" = yes; then : | ||
12468 | |||
12469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12470 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12471 | |||
12472 | |||
12473 | else | ||
12474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12475 | /* end confdefs.h. */ | ||
12476 | |||
12477 | #include <stdio.h> | ||
12478 | #include <sys/socket.h> | ||
12479 | #include <netdb.h> | ||
12480 | #include <errno.h> | ||
12481 | #include <netinet/in.h> | ||
12482 | |||
12483 | #define TEST_PORT "2222" | ||
12484 | |||
12485 | int | ||
12486 | main () | ||
12487 | { | ||
12488 | |||
12489 | int err, sock; | ||
12490 | struct addrinfo *gai_ai, *ai, hints; | ||
12491 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12492 | |||
12493 | memset(&hints, 0, sizeof(hints)); | ||
12494 | hints.ai_family = PF_UNSPEC; | ||
12495 | hints.ai_socktype = SOCK_STREAM; | ||
12496 | hints.ai_flags = AI_PASSIVE; | ||
12497 | |||
12498 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12499 | if (err != 0) { | ||
12500 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12501 | exit(1); | ||
12502 | } | ||
12503 | |||
12504 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12505 | if (ai->ai_family != AF_INET6) | ||
12506 | continue; | ||
12507 | |||
12508 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12509 | sizeof(ntop), strport, sizeof(strport), | ||
12510 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12511 | |||
12512 | if (err != 0) { | ||
12513 | if (err == EAI_SYSTEM) | ||
12514 | perror("getnameinfo EAI_SYSTEM"); | ||
12515 | else | ||
12516 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
12517 | gai_strerror(err)); | ||
12518 | exit(2); | ||
12519 | } | ||
12520 | |||
12521 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
12522 | if (sock < 0) | ||
12523 | perror("socket"); | ||
12524 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
12525 | if (errno == EBADF) | ||
12526 | exit(3); | ||
12527 | } | ||
12528 | } | ||
12529 | exit(0); | ||
12530 | |||
12531 | ; | ||
12532 | return 0; | ||
12533 | } | ||
12534 | _ACEOF | ||
12535 | if ac_fn_c_try_run "$LINENO"; then : | ||
12536 | |||
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12538 | $as_echo "yes" >&6; } | ||
12539 | |||
12540 | else | ||
12541 | |||
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12543 | $as_echo "no" >&6; } | ||
12544 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12545 | |||
12546 | |||
12547 | fi | ||
12548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12550 | fi | ||
12551 | |||
12552 | fi | ||
12553 | |||
12554 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12555 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12557 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12558 | if test "$cross_compiling" = yes; then : | ||
12559 | |||
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
12561 | $as_echo "cross-compiling, assuming no" >&6; } | ||
12562 | |||
12563 | |||
12564 | else | ||
12565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12566 | /* end confdefs.h. */ | ||
12567 | |||
12568 | #include <stdio.h> | ||
12569 | #include <sys/socket.h> | ||
12570 | #include <netdb.h> | ||
12571 | #include <errno.h> | ||
12572 | #include <netinet/in.h> | ||
12573 | |||
12574 | #define TEST_PORT "2222" | ||
12575 | |||
12576 | int | ||
12577 | main () | ||
12578 | { | ||
12579 | |||
12580 | int err, sock; | ||
12581 | struct addrinfo *gai_ai, *ai, hints; | ||
12582 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12583 | |||
12584 | memset(&hints, 0, sizeof(hints)); | ||
12585 | hints.ai_family = PF_UNSPEC; | ||
12586 | hints.ai_socktype = SOCK_STREAM; | ||
12587 | hints.ai_flags = AI_PASSIVE; | ||
12588 | |||
12589 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12590 | if (err != 0) { | ||
12591 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12592 | exit(1); | ||
12593 | } | ||
12594 | |||
12595 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12596 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
12597 | continue; | ||
12598 | |||
12599 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12600 | sizeof(ntop), strport, sizeof(strport), | ||
12601 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12602 | |||
12603 | if (ai->ai_family == AF_INET && err != 0) { | ||
12604 | perror("getnameinfo"); | ||
12605 | exit(2); | ||
12606 | } | ||
12607 | } | ||
12608 | exit(0); | ||
12609 | |||
12610 | ; | ||
12611 | return 0; | ||
12612 | } | ||
12613 | _ACEOF | ||
12614 | if ac_fn_c_try_run "$LINENO"; then : | ||
12615 | |||
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12617 | $as_echo "yes" >&6; } | ||
12618 | |||
12619 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
12620 | |||
12621 | |||
12622 | else | ||
12623 | |||
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12625 | $as_echo "no" >&6; } | ||
12626 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12627 | |||
12628 | |||
12629 | fi | ||
12630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12631 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12632 | fi | ||
12633 | |||
12634 | fi | ||
12635 | |||
12636 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
12637 | ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> | ||
12638 | #include <sys/socket.h> | ||
12639 | #include <netdb.h> | ||
12640 | " | ||
12641 | if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : | ||
12642 | ac_have_decl=1 | ||
12643 | else | ||
12644 | ac_have_decl=0 | ||
12645 | fi | ||
12646 | |||
12647 | cat >>confdefs.h <<_ACEOF | ||
12648 | #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl | ||
12649 | _ACEOF | ||
12650 | |||
12651 | fi | ||
12652 | |||
12653 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
12655 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
12656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12657 | /* end confdefs.h. */ | ||
12658 | #include <shadow.h> | ||
12659 | int | ||
12660 | main () | ||
12661 | { | ||
12662 | exit(0); | ||
12663 | ; | ||
12664 | return 0; | ||
12665 | } | ||
12666 | _ACEOF | ||
12667 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12668 | |||
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12670 | $as_echo "no" >&6; } | ||
12671 | |||
12672 | else | ||
12673 | |||
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12675 | $as_echo "yes" >&6; } | ||
12676 | |||
12677 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
12678 | |||
12679 | |||
12680 | |||
12681 | fi | ||
12682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12683 | fi | ||
12684 | |||
12685 | if test "x$ac_cv_func_strnvis" = "xyes"; then | ||
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 | ||
12687 | $as_echo_n "checking for working strnvis... " >&6; } | ||
12688 | if test "$cross_compiling" = yes; then : | ||
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 | ||
12690 | $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} | ||
12691 | |||
12692 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12693 | |||
12694 | |||
12695 | else | ||
12696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12697 | /* end confdefs.h. */ | ||
12698 | |||
12699 | #include <signal.h> | ||
12700 | #include <stdlib.h> | ||
12701 | #include <string.h> | ||
12702 | #include <vis.h> | ||
12703 | static void sighandler(int sig) { _exit(1); } | ||
12704 | |||
12705 | int | ||
12706 | main () | ||
12707 | { | ||
12708 | |||
12709 | char dst[16]; | ||
12710 | |||
12711 | signal(SIGSEGV, sighandler); | ||
12712 | if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) | ||
12713 | exit(0); | ||
12714 | exit(1) | ||
12715 | |||
12716 | ; | ||
12717 | return 0; | ||
12718 | } | ||
12719 | _ACEOF | ||
12720 | if ac_fn_c_try_run "$LINENO"; then : | ||
12721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12722 | $as_echo "yes" >&6; } | ||
12723 | else | ||
12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12725 | $as_echo "no" >&6; } | ||
12726 | |||
12727 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12728 | |||
12729 | fi | ||
12730 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12731 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12732 | fi | ||
12733 | |||
12734 | fi | ||
12735 | |||
12736 | for ac_func in getpgrp | ||
12737 | do : | ||
12738 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||
12739 | if test "x$ac_cv_func_getpgrp" = xyes; then : | ||
12740 | cat >>confdefs.h <<_ACEOF | ||
12741 | #define HAVE_GETPGRP 1 | ||
12742 | _ACEOF | ||
12743 | |||
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5 | ||
12745 | $as_echo_n "checking if getpgrp accepts zero args... " >&6; } | ||
12746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12747 | /* end confdefs.h. */ | ||
12748 | $ac_includes_default | ||
12749 | int | ||
12750 | main () | ||
12751 | { | ||
12752 | getpgrp(); | ||
12753 | ; | ||
12754 | return 0; | ||
12755 | } | ||
12756 | _ACEOF | ||
12757 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12759 | $as_echo "yes" >&6; } | ||
12760 | |||
12761 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12762 | |||
12763 | else | ||
12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12765 | $as_echo "no" >&6; } | ||
12766 | |||
12767 | $as_echo "#define GETPGRP_VOID 0" >>confdefs.h | ||
12768 | |||
12769 | |||
12770 | fi | ||
12771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12772 | |||
12773 | fi | ||
12774 | done | ||
12775 | |||
12776 | |||
12777 | # Search for OpenSSL | ||
12778 | saved_CPPFLAGS="$CPPFLAGS" | ||
12779 | saved_LDFLAGS="$LDFLAGS" | ||
12780 | |||
12781 | # Check whether --with-ssl-dir was given. | ||
12782 | if test "${with_ssl_dir+set}" = set; then : | ||
12783 | withval=$with_ssl_dir; | ||
12784 | if test "x$openssl" = "xno" ; then | ||
12785 | as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 | ||
12786 | fi | ||
12787 | if test "x$withval" != "xno" ; then | ||
12788 | case "$withval" in | ||
12789 | # Relative paths | ||
12790 | ./*|../*) withval="`pwd`/$withval" | ||
12791 | esac | ||
12792 | if test -d "$withval/lib"; then | ||
12793 | if test -n "${need_dash_r}"; then | ||
12794 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12795 | else | ||
12796 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12797 | fi | ||
12798 | elif test -d "$withval/lib64"; then | ||
12799 | if test -n "${need_dash_r}"; then | ||
12800 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
12801 | else | ||
12802 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
12803 | fi | ||
12804 | else | ||
12805 | if test -n "${need_dash_r}"; then | ||
12806 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12807 | else | ||
12808 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12809 | fi | ||
12810 | fi | ||
12811 | if test -d "$withval/include"; then | ||
12812 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12813 | else | ||
12814 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12815 | fi | ||
12816 | fi | ||
12817 | |||
12818 | |||
12819 | fi | ||
12820 | |||
12821 | |||
12822 | |||
12823 | # Check whether --with-openssl-header-check was given. | ||
12824 | if test "${with_openssl_header_check+set}" = set; then : | ||
12825 | withval=$with_openssl_header_check; | ||
12826 | if test "x$withval" = "xno" ; then | ||
12827 | openssl_check_nonfatal=1 | ||
12828 | fi | ||
12829 | |||
12830 | |||
12831 | fi | ||
12832 | |||
12833 | |||
12834 | openssl_engine=no | ||
12835 | |||
12836 | # Check whether --with-ssl-engine was given. | ||
12837 | if test "${with_ssl_engine+set}" = set; then : | ||
12838 | withval=$with_ssl_engine; | ||
12839 | if test "x$withval" != "xno" ; then | ||
12840 | if test "x$openssl" = "xno" ; then | ||
12841 | as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 | ||
12842 | fi | ||
12843 | openssl_engine=yes | ||
12844 | fi | ||
12845 | |||
12846 | |||
12847 | fi | ||
12848 | |||
12849 | |||
12850 | if test "x$openssl" = "xyes" ; then | ||
12851 | LIBS="-lcrypto $LIBS" | ||
12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12853 | /* end confdefs.h. */ | ||
12854 | |||
12855 | /* Override any GCC internal prototype to avoid an error. | ||
12856 | Use char because int might match the return type of a GCC | ||
12857 | builtin and then its argument prototype would still apply. */ | ||
12858 | #ifdef __cplusplus | ||
12859 | extern "C" | ||
12860 | #endif | ||
12861 | char RAND_add (); | ||
12862 | int | ||
12863 | main () | ||
12864 | { | ||
12865 | return RAND_add (); | ||
12866 | ; | ||
12867 | return 0; | ||
12868 | } | ||
12869 | _ACEOF | ||
12870 | if ac_fn_c_try_link "$LINENO"; then : | ||
12871 | |||
12872 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12873 | |||
12874 | else | ||
12875 | |||
12876 | if test -n "${need_dash_r}"; then | ||
12877 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12878 | else | ||
12879 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12880 | fi | ||
12881 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
12882 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
12883 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
12884 | |||
12885 | else | ||
12886 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
12887 | fi | ||
12888 | |||
12889 | |||
12890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12891 | /* end confdefs.h. */ | ||
12892 | |||
12893 | /* Override any GCC internal prototype to avoid an error. | ||
12894 | Use char because int might match the return type of a GCC | ||
12895 | builtin and then its argument prototype would still apply. */ | ||
12896 | #ifdef __cplusplus | ||
12897 | extern "C" | ||
12898 | #endif | ||
12899 | char RAND_add (); | ||
12900 | int | ||
12901 | main () | ||
12902 | { | ||
12903 | return RAND_add (); | ||
12904 | ; | ||
12905 | return 0; | ||
12906 | } | ||
12907 | _ACEOF | ||
12908 | if ac_fn_c_try_link "$LINENO"; then : | ||
12909 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12910 | |||
12911 | else | ||
12912 | |||
12913 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
12914 | |||
12915 | |||
12916 | fi | ||
12917 | rm -f core conftest.err conftest.$ac_objext \ | ||
12918 | conftest$ac_exeext conftest.$ac_ext | ||
12919 | |||
12920 | |||
12921 | fi | ||
12922 | rm -f core conftest.err conftest.$ac_objext \ | ||
12923 | conftest$ac_exeext conftest.$ac_ext | ||
12924 | |||
12925 | # Determine OpenSSL header version | ||
12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
12927 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
12928 | if test "$cross_compiling" = yes; then : | ||
12929 | |||
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12931 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12932 | |||
12933 | |||
12934 | else | ||
12935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12936 | /* end confdefs.h. */ | ||
12937 | |||
12938 | #include <stdlib.h> | ||
12939 | #include <stdio.h> | ||
12940 | #include <string.h> | ||
12941 | #include <openssl/opensslv.h> | ||
12942 | #define DATA "conftest.sslincver" | ||
12943 | |||
12944 | int | ||
12945 | main () | ||
12946 | { | ||
12947 | |||
12948 | FILE *fd; | ||
12949 | int rc; | ||
12950 | |||
12951 | fd = fopen(DATA,"w"); | ||
12952 | if(fd == NULL) | ||
12953 | exit(1); | ||
12954 | |||
12955 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
12956 | (unsigned long)OPENSSL_VERSION_NUMBER, | ||
12957 | OPENSSL_VERSION_TEXT)) < 0) | ||
12958 | exit(1); | ||
12959 | |||
12960 | exit(0); | ||
12961 | |||
12962 | ; | ||
12963 | return 0; | ||
12964 | } | ||
12965 | _ACEOF | ||
12966 | if ac_fn_c_try_run "$LINENO"; then : | ||
12967 | |||
12968 | ssl_header_ver=`cat conftest.sslincver` | ||
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
12970 | $as_echo "$ssl_header_ver" >&6; } | ||
12971 | |||
12972 | else | ||
12973 | |||
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12975 | $as_echo "not found" >&6; } | ||
12976 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
12977 | |||
12978 | fi | ||
12979 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12980 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12981 | fi | ||
12982 | |||
12983 | |||
12984 | # Determine OpenSSL library version | ||
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
12986 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
12987 | if test "$cross_compiling" = yes; then : | ||
12988 | |||
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12990 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12991 | |||
12992 | |||
12993 | else | ||
12994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12995 | /* end confdefs.h. */ | ||
12996 | |||
12997 | #include <stdio.h> | ||
12998 | #include <string.h> | ||
12999 | #include <openssl/opensslv.h> | ||
13000 | #include <openssl/crypto.h> | ||
13001 | #define DATA "conftest.ssllibver" | ||
13002 | |||
13003 | int | ||
13004 | main () | ||
13005 | { | ||
13006 | |||
13007 | FILE *fd; | ||
13008 | int rc; | ||
13009 | |||
13010 | fd = fopen(DATA,"w"); | ||
13011 | if(fd == NULL) | ||
13012 | exit(1); | ||
13013 | |||
13014 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), | ||
13015 | SSLeay_version(SSLEAY_VERSION))) < 0) | ||
13016 | exit(1); | ||
13017 | |||
13018 | exit(0); | ||
13019 | |||
13020 | ; | ||
13021 | return 0; | ||
13022 | } | ||
13023 | _ACEOF | ||
13024 | if ac_fn_c_try_run "$LINENO"; then : | ||
13025 | |||
13026 | ssl_library_ver=`cat conftest.ssllibver` | ||
13027 | # Check version is supported. | ||
13028 | case "$ssl_library_ver" in | ||
13029 | 10000*|0*) | ||
13030 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
13031 | ;; | ||
13032 | 100*) ;; # 1.0.x | ||
13033 | 200*) ;; # LibreSSL | ||
13034 | *) | ||
13035 | as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
13036 | ;; | ||
13037 | esac | ||
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
13039 | $as_echo "$ssl_library_ver" >&6; } | ||
13040 | |||
13041 | else | ||
13042 | |||
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
13044 | $as_echo "not found" >&6; } | ||
13045 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
13046 | |||
13047 | fi | ||
13048 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13049 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13050 | fi | ||
13051 | |||
13052 | |||
13053 | # Sanity check OpenSSL headers | ||
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
13055 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
13056 | if test "$cross_compiling" = yes; then : | ||
13057 | |||
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
13059 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13060 | |||
13061 | |||
13062 | else | ||
13063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13064 | /* end confdefs.h. */ | ||
13065 | |||
13066 | #include <string.h> | ||
13067 | #include <openssl/opensslv.h> | ||
13068 | #include <openssl/crypto.h> | ||
13069 | |||
13070 | int | ||
13071 | main () | ||
13072 | { | ||
13073 | |||
13074 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
13075 | |||
13076 | ; | ||
13077 | return 0; | ||
13078 | } | ||
13079 | _ACEOF | ||
13080 | if ac_fn_c_try_run "$LINENO"; then : | ||
13081 | |||
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13083 | $as_echo "yes" >&6; } | ||
13084 | |||
13085 | else | ||
13086 | |||
13087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13088 | $as_echo "no" >&6; } | ||
13089 | if test "x$openssl_check_nonfatal" = "x"; then | ||
13090 | as_fn_error $? "Your OpenSSL headers do not match your | ||
13091 | library. Check config.log for details. | ||
13092 | If you are sure your installation is consistent, you can disable the check | ||
13093 | by running \"./configure --without-openssl-header-check\". | ||
13094 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
13095 | " "$LINENO" 5 | ||
13096 | else | ||
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
13098 | library. Check config.log for details. | ||
13099 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
13100 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
13101 | library. Check config.log for details. | ||
13102 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
13103 | fi | ||
13104 | |||
13105 | fi | ||
13106 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13107 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13108 | fi | ||
13109 | |||
13110 | |||
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
13112 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
13113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13114 | /* end confdefs.h. */ | ||
13115 | #include <openssl/evp.h> | ||
13116 | int | ||
13117 | main () | ||
13118 | { | ||
13119 | SSLeay_add_all_algorithms(); | ||
13120 | ; | ||
13121 | return 0; | ||
13122 | } | ||
13123 | _ACEOF | ||
13124 | if ac_fn_c_try_link "$LINENO"; then : | ||
13125 | |||
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13127 | $as_echo "yes" >&6; } | ||
13128 | |||
13129 | else | ||
13130 | |||
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13132 | $as_echo "no" >&6; } | ||
13133 | saved_LIBS="$LIBS" | ||
13134 | LIBS="$LIBS -ldl" | ||
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
13136 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
13137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13138 | /* end confdefs.h. */ | ||
13139 | #include <openssl/evp.h> | ||
13140 | int | ||
13141 | main () | ||
13142 | { | ||
13143 | SSLeay_add_all_algorithms(); | ||
13144 | ; | ||
13145 | return 0; | ||
13146 | } | ||
13147 | _ACEOF | ||
13148 | if ac_fn_c_try_link "$LINENO"; then : | ||
13149 | |||
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13151 | $as_echo "yes" >&6; } | ||
13152 | |||
13153 | else | ||
13154 | |||
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13156 | $as_echo "no" >&6; } | ||
13157 | LIBS="$saved_LIBS" | ||
13158 | |||
13159 | |||
13160 | fi | ||
13161 | rm -f core conftest.err conftest.$ac_objext \ | ||
13162 | conftest$ac_exeext conftest.$ac_ext | ||
13163 | |||
13164 | |||
13165 | fi | ||
13166 | rm -f core conftest.err conftest.$ac_objext \ | ||
13167 | conftest$ac_exeext conftest.$ac_ext | ||
13168 | |||
13169 | for ac_func in \ | ||
13170 | BN_is_prime_ex \ | ||
13171 | DSA_generate_parameters_ex \ | ||
13172 | EVP_DigestInit_ex \ | ||
13173 | EVP_DigestFinal_ex \ | ||
13174 | EVP_MD_CTX_init \ | ||
13175 | EVP_MD_CTX_cleanup \ | ||
13176 | EVP_MD_CTX_copy_ex \ | ||
13177 | HMAC_CTX_init \ | ||
13178 | RSA_generate_key_ex \ | ||
13179 | RSA_get_default_method \ | ||
13180 | |||
13181 | do : | ||
13182 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13183 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13184 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13185 | cat >>confdefs.h <<_ACEOF | ||
13186 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13187 | _ACEOF | ||
13188 | |||
13189 | fi | ||
13190 | done | ||
13191 | |||
13192 | |||
13193 | if test "x$openssl_engine" = "xyes" ; then | ||
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
13195 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
13196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13197 | /* end confdefs.h. */ | ||
13198 | |||
13199 | #include <openssl/engine.h> | ||
13200 | |||
13201 | int | ||
13202 | main () | ||
13203 | { | ||
13204 | |||
13205 | ENGINE_load_builtin_engines(); | ||
13206 | ENGINE_register_all_complete(); | ||
13207 | |||
13208 | ; | ||
13209 | return 0; | ||
13210 | } | ||
13211 | _ACEOF | ||
13212 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13214 | $as_echo "yes" >&6; } | ||
13215 | |||
13216 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
13217 | |||
13218 | |||
13219 | else | ||
13220 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
13221 | |||
13222 | fi | ||
13223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13224 | fi | ||
13225 | |||
13226 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
13228 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
13229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13230 | /* end confdefs.h. */ | ||
13231 | |||
13232 | #include <string.h> | ||
13233 | #include <openssl/evp.h> | ||
13234 | |||
13235 | int | ||
13236 | main () | ||
13237 | { | ||
13238 | |||
13239 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
13240 | |||
13241 | ; | ||
13242 | return 0; | ||
13243 | } | ||
13244 | _ACEOF | ||
13245 | if ac_fn_c_try_link "$LINENO"; then : | ||
13246 | |||
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13248 | $as_echo "no" >&6; } | ||
13249 | |||
13250 | else | ||
13251 | |||
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13253 | $as_echo "yes" >&6; } | ||
13254 | |||
13255 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
13256 | |||
13257 | |||
13258 | |||
13259 | fi | ||
13260 | rm -f core conftest.err conftest.$ac_objext \ | ||
13261 | conftest$ac_exeext conftest.$ac_ext | ||
13262 | |||
13263 | # Check for OpenSSL with EVP_aes_*ctr | ||
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
13265 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
13266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13267 | /* end confdefs.h. */ | ||
13268 | |||
13269 | #include <string.h> | ||
13270 | #include <openssl/evp.h> | ||
13271 | |||
13272 | int | ||
13273 | main () | ||
13274 | { | ||
13275 | |||
13276 | exit(EVP_aes_128_ctr() == NULL || | ||
13277 | EVP_aes_192_cbc() == NULL || | ||
13278 | EVP_aes_256_cbc() == NULL); | ||
13279 | |||
13280 | ; | ||
13281 | return 0; | ||
13282 | } | ||
13283 | _ACEOF | ||
13284 | if ac_fn_c_try_link "$LINENO"; then : | ||
13285 | |||
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13287 | $as_echo "yes" >&6; } | ||
13288 | |||
13289 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
13290 | |||
13291 | |||
13292 | else | ||
13293 | |||
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13295 | $as_echo "no" >&6; } | ||
13296 | |||
13297 | |||
13298 | fi | ||
13299 | rm -f core conftest.err conftest.$ac_objext \ | ||
13300 | conftest$ac_exeext conftest.$ac_ext | ||
13301 | |||
13302 | # Check for OpenSSL with EVP_aes_*gcm | ||
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
13304 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
13305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13306 | /* end confdefs.h. */ | ||
13307 | |||
13308 | #include <string.h> | ||
13309 | #include <openssl/evp.h> | ||
13310 | |||
13311 | int | ||
13312 | main () | ||
13313 | { | ||
13314 | |||
13315 | exit(EVP_aes_128_gcm() == NULL || | ||
13316 | EVP_aes_256_gcm() == NULL || | ||
13317 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
13318 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
13319 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
13320 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
13321 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
13322 | |||
13323 | ; | ||
13324 | return 0; | ||
13325 | } | ||
13326 | _ACEOF | ||
13327 | if ac_fn_c_try_link "$LINENO"; then : | ||
13328 | |||
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13330 | $as_echo "yes" >&6; } | ||
13331 | |||
13332 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
13333 | |||
13334 | |||
13335 | else | ||
13336 | |||
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13338 | $as_echo "no" >&6; } | ||
13339 | unsupported_algorithms="$unsupported_cipers \ | ||
13340 | aes128-gcm@openssh.com \ | ||
13341 | aes256-gcm@openssh.com" | ||
13342 | |||
13343 | |||
13344 | fi | ||
13345 | rm -f core conftest.err conftest.$ac_objext \ | ||
13346 | conftest$ac_exeext conftest.$ac_ext | ||
13347 | |||
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
13349 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } | ||
13350 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13351 | $as_echo_n "(cached) " >&6 | ||
13352 | else | ||
13353 | ac_func_search_save_LIBS=$LIBS | ||
13354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13355 | /* end confdefs.h. */ | ||
13356 | |||
13357 | /* Override any GCC internal prototype to avoid an error. | ||
13358 | Use char because int might match the return type of a GCC | ||
13359 | builtin and then its argument prototype would still apply. */ | ||
13360 | #ifdef __cplusplus | ||
13361 | extern "C" | ||
13362 | #endif | ||
13363 | char EVP_CIPHER_CTX_ctrl (); | ||
13364 | int | ||
13365 | main () | ||
13366 | { | ||
13367 | return EVP_CIPHER_CTX_ctrl (); | ||
13368 | ; | ||
13369 | return 0; | ||
13370 | } | ||
13371 | _ACEOF | ||
13372 | for ac_lib in '' crypto; do | ||
13373 | if test -z "$ac_lib"; then | ||
13374 | ac_res="none required" | ||
13375 | else | ||
13376 | ac_res=-l$ac_lib | ||
13377 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13378 | fi | ||
13379 | if ac_fn_c_try_link "$LINENO"; then : | ||
13380 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
13381 | fi | ||
13382 | rm -f core conftest.err conftest.$ac_objext \ | ||
13383 | conftest$ac_exeext | ||
13384 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13385 | break | ||
13386 | fi | ||
13387 | done | ||
13388 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13389 | |||
13390 | else | ||
13391 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
13392 | fi | ||
13393 | rm conftest.$ac_ext | ||
13394 | LIBS=$ac_func_search_save_LIBS | ||
13395 | fi | ||
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
13397 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
13398 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
13399 | if test "$ac_res" != no; then : | ||
13400 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13401 | |||
13402 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | ||
13403 | |||
13404 | fi | ||
13405 | |||
13406 | |||
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
13408 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
13409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13410 | /* end confdefs.h. */ | ||
13411 | |||
13412 | #include <string.h> | ||
13413 | #include <openssl/evp.h> | ||
13414 | |||
13415 | int | ||
13416 | main () | ||
13417 | { | ||
13418 | |||
13419 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
13420 | exit(0); | ||
13421 | |||
13422 | ; | ||
13423 | return 0; | ||
13424 | } | ||
13425 | _ACEOF | ||
13426 | if ac_fn_c_try_link "$LINENO"; then : | ||
13427 | |||
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13429 | $as_echo "yes" >&6; } | ||
13430 | |||
13431 | else | ||
13432 | |||
13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13434 | $as_echo "no" >&6; } | ||
13435 | |||
13436 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
13437 | |||
13438 | |||
13439 | |||
13440 | fi | ||
13441 | rm -f core conftest.err conftest.$ac_objext \ | ||
13442 | conftest$ac_exeext conftest.$ac_ext | ||
13443 | |||
13444 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
13445 | # because the system crypt() is more featureful. | ||
13446 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13448 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13449 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13450 | $as_echo_n "(cached) " >&6 | ||
13451 | else | ||
13452 | ac_check_lib_save_LIBS=$LIBS | ||
13453 | LIBS="-lcrypt $LIBS" | ||
13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13455 | /* end confdefs.h. */ | ||
13456 | |||
13457 | /* Override any GCC internal prototype to avoid an error. | ||
13458 | Use char because int might match the return type of a GCC | ||
13459 | builtin and then its argument prototype would still apply. */ | ||
13460 | #ifdef __cplusplus | ||
13461 | extern "C" | ||
13462 | #endif | ||
13463 | char crypt (); | ||
13464 | int | ||
13465 | main () | ||
13466 | { | ||
13467 | return crypt (); | ||
13468 | ; | ||
13469 | return 0; | ||
13470 | } | ||
13471 | _ACEOF | ||
13472 | if ac_fn_c_try_link "$LINENO"; then : | ||
13473 | ac_cv_lib_crypt_crypt=yes | ||
13474 | else | ||
13475 | ac_cv_lib_crypt_crypt=no | ||
13476 | fi | ||
13477 | rm -f core conftest.err conftest.$ac_objext \ | ||
13478 | conftest$ac_exeext conftest.$ac_ext | ||
13479 | LIBS=$ac_check_lib_save_LIBS | ||
13480 | fi | ||
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13482 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13483 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13484 | cat >>confdefs.h <<_ACEOF | ||
13485 | #define HAVE_LIBCRYPT 1 | ||
13486 | _ACEOF | ||
13487 | |||
13488 | LIBS="-lcrypt $LIBS" | ||
13489 | |||
13490 | fi | ||
13491 | |||
13492 | fi | ||
13493 | |||
13494 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
13495 | # version in OpenSSL. | ||
13496 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13498 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13499 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13500 | $as_echo_n "(cached) " >&6 | ||
13501 | else | ||
13502 | ac_check_lib_save_LIBS=$LIBS | ||
13503 | LIBS="-lcrypt $LIBS" | ||
13504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13505 | /* end confdefs.h. */ | ||
13506 | |||
13507 | /* Override any GCC internal prototype to avoid an error. | ||
13508 | Use char because int might match the return type of a GCC | ||
13509 | builtin and then its argument prototype would still apply. */ | ||
13510 | #ifdef __cplusplus | ||
13511 | extern "C" | ||
13512 | #endif | ||
13513 | char crypt (); | ||
13514 | int | ||
13515 | main () | ||
13516 | { | ||
13517 | return crypt (); | ||
13518 | ; | ||
13519 | return 0; | ||
13520 | } | ||
13521 | _ACEOF | ||
13522 | if ac_fn_c_try_link "$LINENO"; then : | ||
13523 | ac_cv_lib_crypt_crypt=yes | ||
13524 | else | ||
13525 | ac_cv_lib_crypt_crypt=no | ||
13526 | fi | ||
13527 | rm -f core conftest.err conftest.$ac_objext \ | ||
13528 | conftest$ac_exeext conftest.$ac_ext | ||
13529 | LIBS=$ac_check_lib_save_LIBS | ||
13530 | fi | ||
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13532 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13533 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13534 | LIBS="$LIBS -lcrypt" | ||
13535 | fi | ||
13536 | |||
13537 | fi | ||
13538 | for ac_func in crypt DES_crypt | ||
13539 | do : | ||
13540 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13541 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13542 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13543 | cat >>confdefs.h <<_ACEOF | ||
13544 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13545 | _ACEOF | ||
13546 | |||
13547 | fi | ||
13548 | done | ||
13549 | |||
13550 | |||
13551 | # Search for SHA256 support in libc and/or OpenSSL | ||
13552 | for ac_func in SHA256_Update EVP_sha256 | ||
13553 | do : | ||
13554 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13555 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13556 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13557 | cat >>confdefs.h <<_ACEOF | ||
13558 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13559 | _ACEOF | ||
13560 | |||
13561 | else | ||
13562 | unsupported_algorithms="$unsupported_algorithms \ | ||
13563 | hmac-sha2-256 \ | ||
13564 | hmac-sha2-512 \ | ||
13565 | diffie-hellman-group-exchange-sha256 \ | ||
13566 | hmac-sha2-256-etm@openssh.com \ | ||
13567 | hmac-sha2-512-etm@openssh.com" | ||
13568 | |||
13569 | |||
13570 | fi | ||
13571 | done | ||
13572 | |||
13573 | # Search for RIPE-MD support in OpenSSL | ||
13574 | for ac_func in EVP_ripemd160 | ||
13575 | do : | ||
13576 | ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" | ||
13577 | if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : | ||
13578 | cat >>confdefs.h <<_ACEOF | ||
13579 | #define HAVE_EVP_RIPEMD160 1 | ||
13580 | _ACEOF | ||
13581 | |||
13582 | else | ||
13583 | unsupported_algorithms="$unsupported_algorithms \ | ||
13584 | hmac-ripemd160 \ | ||
13585 | hmac-ripemd160@openssh.com \ | ||
13586 | hmac-ripemd160-etm@openssh.com" | ||
13587 | |||
13588 | |||
13589 | fi | ||
13590 | done | ||
13591 | |||
13592 | |||
13593 | # Check complete ECC support in OpenSSL | ||
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
13595 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } | ||
13596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13597 | /* end confdefs.h. */ | ||
13598 | |||
13599 | #include <openssl/ec.h> | ||
13600 | #include <openssl/ecdh.h> | ||
13601 | #include <openssl/ecdsa.h> | ||
13602 | #include <openssl/evp.h> | ||
13603 | #include <openssl/objects.h> | ||
13604 | #include <openssl/opensslv.h> | ||
13605 | |||
13606 | int | ||
13607 | main () | ||
13608 | { | ||
13609 | |||
13610 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
13611 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
13612 | |||
13613 | ; | ||
13614 | return 0; | ||
13615 | } | ||
13616 | _ACEOF | ||
13617 | if ac_fn_c_try_link "$LINENO"; then : | ||
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13619 | $as_echo "yes" >&6; } | ||
13620 | enable_nistp256=1 | ||
13621 | else | ||
13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13623 | $as_echo "no" >&6; } | ||
13624 | |||
13625 | fi | ||
13626 | rm -f core conftest.err conftest.$ac_objext \ | ||
13627 | conftest$ac_exeext conftest.$ac_ext | ||
13628 | |||
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 | ||
13630 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } | ||
13631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13632 | /* end confdefs.h. */ | ||
13633 | |||
13634 | #include <openssl/ec.h> | ||
13635 | #include <openssl/ecdh.h> | ||
13636 | #include <openssl/ecdsa.h> | ||
13637 | #include <openssl/evp.h> | ||
13638 | #include <openssl/objects.h> | ||
13639 | #include <openssl/opensslv.h> | ||
13640 | |||
13641 | int | ||
13642 | main () | ||
13643 | { | ||
13644 | |||
13645 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
13646 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
13647 | |||
13648 | ; | ||
13649 | return 0; | ||
13650 | } | ||
13651 | _ACEOF | ||
13652 | if ac_fn_c_try_link "$LINENO"; then : | ||
13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13654 | $as_echo "yes" >&6; } | ||
13655 | enable_nistp384=1 | ||
13656 | else | ||
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13658 | $as_echo "no" >&6; } | ||
13659 | |||
13660 | fi | ||
13661 | rm -f core conftest.err conftest.$ac_objext \ | ||
13662 | conftest$ac_exeext conftest.$ac_ext | ||
13663 | |||
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 | ||
13665 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } | ||
13666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13667 | /* end confdefs.h. */ | ||
13668 | |||
13669 | #include <openssl/ec.h> | ||
13670 | #include <openssl/ecdh.h> | ||
13671 | #include <openssl/ecdsa.h> | ||
13672 | #include <openssl/evp.h> | ||
13673 | #include <openssl/objects.h> | ||
13674 | #include <openssl/opensslv.h> | ||
13675 | |||
13676 | int | ||
13677 | main () | ||
13678 | { | ||
13679 | |||
13680 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13681 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13682 | |||
13683 | ; | ||
13684 | return 0; | ||
13685 | } | ||
13686 | _ACEOF | ||
13687 | if ac_fn_c_try_link "$LINENO"; then : | ||
13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13689 | $as_echo "yes" >&6; } | ||
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
13691 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } | ||
13692 | if test "$cross_compiling" = yes; then : | ||
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 | ||
13694 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
13695 | enable_nistp521=1 | ||
13696 | |||
13697 | else | ||
13698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13699 | /* end confdefs.h. */ | ||
13700 | |||
13701 | #include <openssl/ec.h> | ||
13702 | #include <openssl/ecdh.h> | ||
13703 | #include <openssl/ecdsa.h> | ||
13704 | #include <openssl/evp.h> | ||
13705 | #include <openssl/objects.h> | ||
13706 | #include <openssl/opensslv.h> | ||
13707 | |||
13708 | int | ||
13709 | main () | ||
13710 | { | ||
13711 | |||
13712 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13713 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13714 | exit(e == NULL || m == NULL); | ||
13715 | |||
13716 | ; | ||
13717 | return 0; | ||
13718 | } | ||
13719 | _ACEOF | ||
13720 | if ac_fn_c_try_run "$LINENO"; then : | ||
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13722 | $as_echo "yes" >&6; } | ||
13723 | enable_nistp521=1 | ||
13724 | else | ||
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13726 | $as_echo "no" >&6; } | ||
13727 | fi | ||
13728 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13729 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13730 | fi | ||
13731 | |||
13732 | else | ||
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13734 | $as_echo "no" >&6; } | ||
13735 | |||
13736 | fi | ||
13737 | rm -f core conftest.err conftest.$ac_objext \ | ||
13738 | conftest$ac_exeext conftest.$ac_ext | ||
13739 | |||
13740 | COMMENT_OUT_ECC="#no ecc#" | ||
13741 | TEST_SSH_ECC=no | ||
13742 | |||
13743 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
13744 | test x$enable_nistp521 = x1; then | ||
13745 | |||
13746 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
13747 | |||
13748 | fi | ||
13749 | if test x$enable_nistp256 = x1; then | ||
13750 | |||
13751 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h | ||
13752 | |||
13753 | TEST_SSH_ECC=yes | ||
13754 | COMMENT_OUT_ECC="" | ||
13755 | else | ||
13756 | unsupported_algorithms="$unsupported_algorithms \ | ||
13757 | ecdsa-sha2-nistp256 \ | ||
13758 | ecdh-sha2-nistp256 \ | ||
13759 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
13760 | fi | ||
13761 | if test x$enable_nistp384 = x1; then | ||
13762 | |||
13763 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h | ||
13764 | |||
13765 | TEST_SSH_ECC=yes | ||
13766 | COMMENT_OUT_ECC="" | ||
13767 | else | ||
13768 | unsupported_algorithms="$unsupported_algorithms \ | ||
13769 | ecdsa-sha2-nistp384 \ | ||
13770 | ecdh-sha2-nistp384 \ | ||
13771 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
13772 | fi | ||
13773 | if test x$enable_nistp521 = x1; then | ||
13774 | |||
13775 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h | ||
13776 | |||
13777 | TEST_SSH_ECC=yes | ||
13778 | COMMENT_OUT_ECC="" | ||
13779 | else | ||
13780 | unsupported_algorithms="$unsupported_algorithms \ | ||
13781 | ecdh-sha2-nistp521 \ | ||
13782 | ecdsa-sha2-nistp521 \ | ||
13783 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
13784 | fi | ||
13785 | |||
13786 | |||
13787 | |||
13788 | else | ||
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13790 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13791 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13792 | $as_echo_n "(cached) " >&6 | ||
13793 | else | ||
13794 | ac_check_lib_save_LIBS=$LIBS | ||
13795 | LIBS="-lcrypt $LIBS" | ||
13796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13797 | /* end confdefs.h. */ | ||
13798 | |||
13799 | /* Override any GCC internal prototype to avoid an error. | ||
13800 | Use char because int might match the return type of a GCC | ||
13801 | builtin and then its argument prototype would still apply. */ | ||
13802 | #ifdef __cplusplus | ||
13803 | extern "C" | ||
13804 | #endif | ||
13805 | char crypt (); | ||
13806 | int | ||
13807 | main () | ||
13808 | { | ||
13809 | return crypt (); | ||
13810 | ; | ||
13811 | return 0; | ||
13812 | } | ||
13813 | _ACEOF | ||
13814 | if ac_fn_c_try_link "$LINENO"; then : | ||
13815 | ac_cv_lib_crypt_crypt=yes | ||
13816 | else | ||
13817 | ac_cv_lib_crypt_crypt=no | ||
13818 | fi | ||
13819 | rm -f core conftest.err conftest.$ac_objext \ | ||
13820 | conftest$ac_exeext conftest.$ac_ext | ||
13821 | LIBS=$ac_check_lib_save_LIBS | ||
13822 | fi | ||
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13824 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13825 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13826 | LIBS="$LIBS -lcrypt" | ||
13827 | fi | ||
13828 | |||
13829 | for ac_func in crypt | ||
13830 | do : | ||
13831 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | ||
13832 | if test "x$ac_cv_func_crypt" = xyes; then : | ||
13833 | cat >>confdefs.h <<_ACEOF | ||
13834 | #define HAVE_CRYPT 1 | ||
13835 | _ACEOF | ||
13836 | |||
13837 | fi | ||
13838 | done | ||
13839 | |||
13840 | fi | ||
13841 | |||
13842 | for ac_func in \ | ||
13843 | arc4random \ | ||
13844 | arc4random_buf \ | ||
13845 | arc4random_stir \ | ||
13846 | arc4random_uniform \ | ||
13847 | |||
13848 | do : | ||
13849 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13850 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13851 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13852 | cat >>confdefs.h <<_ACEOF | ||
13853 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13854 | _ACEOF | ||
13855 | |||
13856 | fi | ||
13857 | done | ||
13858 | |||
13859 | |||
13860 | saved_LIBS="$LIBS" | ||
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
13862 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
13863 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
13864 | $as_echo_n "(cached) " >&6 | ||
13865 | else | ||
13866 | ac_check_lib_save_LIBS=$LIBS | ||
13867 | LIBS="-liaf $LIBS" | ||
13868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13869 | /* end confdefs.h. */ | ||
13870 | |||
13871 | /* Override any GCC internal prototype to avoid an error. | ||
13872 | Use char because int might match the return type of a GCC | ||
13873 | builtin and then its argument prototype would still apply. */ | ||
13874 | #ifdef __cplusplus | ||
13875 | extern "C" | ||
13876 | #endif | ||
13877 | char ia_openinfo (); | ||
13878 | int | ||
13879 | main () | ||
13880 | { | ||
13881 | return ia_openinfo (); | ||
13882 | ; | ||
13883 | return 0; | ||
13884 | } | ||
13885 | _ACEOF | ||
13886 | if ac_fn_c_try_link "$LINENO"; then : | ||
13887 | ac_cv_lib_iaf_ia_openinfo=yes | ||
13888 | else | ||
13889 | ac_cv_lib_iaf_ia_openinfo=no | ||
13890 | fi | ||
13891 | rm -f core conftest.err conftest.$ac_objext \ | ||
13892 | conftest$ac_exeext conftest.$ac_ext | ||
13893 | LIBS=$ac_check_lib_save_LIBS | ||
13894 | fi | ||
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
13896 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
13897 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
13898 | |||
13899 | LIBS="$LIBS -liaf" | ||
13900 | for ac_func in set_id | ||
13901 | do : | ||
13902 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
13903 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
13904 | cat >>confdefs.h <<_ACEOF | ||
13905 | #define HAVE_SET_ID 1 | ||
13906 | _ACEOF | ||
13907 | SSHDLIBS="$SSHDLIBS -liaf" | ||
13908 | |||
13909 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
13910 | |||
13911 | |||
13912 | fi | ||
13913 | done | ||
13914 | |||
13915 | |||
13916 | fi | ||
13917 | |||
13918 | LIBS="$saved_LIBS" | ||
13919 | |||
13920 | ### Configure cryptographic random number support | ||
13921 | |||
13922 | # Check whether OpenSSL seeds itself | ||
13923 | if test "x$openssl" = "xyes" ; then | ||
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
13925 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
13926 | if test "$cross_compiling" = yes; then : | ||
13927 | |||
13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13929 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13930 | # This is safe, since we will fatal() at runtime if | ||
13931 | # OpenSSL is not seeded correctly. | ||
13932 | OPENSSL_SEEDS_ITSELF=yes | ||
13933 | |||
13934 | |||
13935 | else | ||
13936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13937 | /* end confdefs.h. */ | ||
13938 | |||
13939 | #include <string.h> | ||
13940 | #include <openssl/rand.h> | ||
13941 | |||
13942 | int | ||
13943 | main () | ||
13944 | { | ||
13945 | |||
13946 | exit(RAND_status() == 1 ? 0 : 1); | ||
13947 | |||
13948 | ; | ||
13949 | return 0; | ||
13950 | } | ||
13951 | _ACEOF | ||
13952 | if ac_fn_c_try_run "$LINENO"; then : | ||
13953 | |||
13954 | OPENSSL_SEEDS_ITSELF=yes | ||
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13956 | $as_echo "yes" >&6; } | ||
13957 | |||
13958 | else | ||
13959 | |||
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13961 | $as_echo "no" >&6; } | ||
13962 | |||
13963 | fi | ||
13964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13966 | fi | ||
13967 | |||
13968 | fi | ||
13969 | |||
13970 | # PRNGD TCP socket | ||
13971 | |||
13972 | # Check whether --with-prngd-port was given. | ||
13973 | if test "${with_prngd_port+set}" = set; then : | ||
13974 | withval=$with_prngd_port; | ||
13975 | case "$withval" in | ||
13976 | no) | ||
13977 | withval="" | ||
13978 | ;; | ||
13979 | [0-9]*) | ||
13980 | ;; | ||
13981 | *) | ||
13982 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
13983 | ;; | ||
13984 | esac | ||
13985 | if test ! -z "$withval" ; then | ||
13986 | PRNGD_PORT="$withval" | ||
13987 | |||
13988 | cat >>confdefs.h <<_ACEOF | ||
13989 | #define PRNGD_PORT $PRNGD_PORT | ||
13990 | _ACEOF | ||
13991 | |||
13992 | fi | ||
13993 | |||
13994 | |||
13995 | fi | ||
13996 | |||
13997 | |||
13998 | # PRNGD Unix domain socket | ||
13999 | |||
14000 | # Check whether --with-prngd-socket was given. | ||
14001 | if test "${with_prngd_socket+set}" = set; then : | ||
14002 | withval=$with_prngd_socket; | ||
14003 | case "$withval" in | ||
14004 | yes) | ||
14005 | withval="/var/run/egd-pool" | ||
14006 | ;; | ||
14007 | no) | ||
14008 | withval="" | ||
14009 | ;; | ||
14010 | /*) | ||
14011 | ;; | ||
14012 | *) | ||
14013 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
14014 | ;; | ||
14015 | esac | ||
14016 | |||
14017 | if test ! -z "$withval" ; then | ||
14018 | if test ! -z "$PRNGD_PORT" ; then | ||
14019 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
14020 | fi | ||
14021 | if test ! -r "$withval" ; then | ||
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
14023 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
14024 | fi | ||
14025 | PRNGD_SOCKET="$withval" | ||
14026 | |||
14027 | cat >>confdefs.h <<_ACEOF | ||
14028 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14029 | _ACEOF | ||
14030 | |||
14031 | fi | ||
14032 | |||
14033 | else | ||
14034 | |||
14035 | # Check for existing socket only if we don't have a random device already | ||
14036 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
14038 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
14039 | # Insert other locations here | ||
14040 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
14041 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
14042 | PRNGD_SOCKET="$sock" | ||
14043 | cat >>confdefs.h <<_ACEOF | ||
14044 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14045 | _ACEOF | ||
14046 | |||
14047 | break; | ||
14048 | fi | ||
14049 | done | ||
14050 | if test ! -z "$PRNGD_SOCKET" ; then | ||
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
14052 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
14053 | else | ||
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
14055 | $as_echo "not found" >&6; } | ||
14056 | fi | ||
14057 | fi | ||
14058 | |||
14059 | |||
14060 | fi | ||
14061 | |||
14062 | |||
14063 | # Which randomness source do we use? | ||
14064 | if test ! -z "$PRNGD_PORT" ; then | ||
14065 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
14066 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
14067 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
14068 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
14069 | |||
14070 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
14071 | |||
14072 | RAND_MSG="OpenSSL internal ONLY" | ||
14073 | elif test "x$openssl" = "xno" ; then | ||
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 | ||
14075 | $as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} | ||
14076 | else | ||
14077 | as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5 | ||
14078 | fi | ||
14079 | |||
14080 | # Check for PAM libs | ||
14081 | PAM_MSG="no" | ||
14082 | |||
14083 | # Check whether --with-pam was given. | ||
14084 | if test "${with_pam+set}" = set; then : | ||
14085 | withval=$with_pam; | ||
14086 | if test "x$withval" != "xno" ; then | ||
14087 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
14088 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
14089 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
14090 | fi | ||
14091 | |||
14092 | saved_LIBS="$LIBS" | ||
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
14094 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
14095 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
14096 | $as_echo_n "(cached) " >&6 | ||
14097 | else | ||
14098 | ac_check_lib_save_LIBS=$LIBS | ||
14099 | LIBS="-ldl $LIBS" | ||
14100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14101 | /* end confdefs.h. */ | ||
14102 | |||
14103 | /* Override any GCC internal prototype to avoid an error. | ||
14104 | Use char because int might match the return type of a GCC | ||
14105 | builtin and then its argument prototype would still apply. */ | ||
14106 | #ifdef __cplusplus | ||
14107 | extern "C" | ||
14108 | #endif | ||
14109 | char dlopen (); | ||
14110 | int | ||
14111 | main () | ||
14112 | { | ||
14113 | return dlopen (); | ||
14114 | ; | ||
14115 | return 0; | ||
14116 | } | ||
14117 | _ACEOF | ||
14118 | if ac_fn_c_try_link "$LINENO"; then : | ||
14119 | ac_cv_lib_dl_dlopen=yes | ||
14120 | else | ||
14121 | ac_cv_lib_dl_dlopen=no | ||
14122 | fi | ||
14123 | rm -f core conftest.err conftest.$ac_objext \ | ||
14124 | conftest$ac_exeext conftest.$ac_ext | ||
14125 | LIBS=$ac_check_lib_save_LIBS | ||
14126 | fi | ||
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
14128 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
14129 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
14130 | cat >>confdefs.h <<_ACEOF | ||
14131 | #define HAVE_LIBDL 1 | ||
14132 | _ACEOF | ||
14133 | |||
14134 | LIBS="-ldl $LIBS" | ||
14135 | |||
14136 | fi | ||
14137 | |||
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
14139 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
14140 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
14141 | $as_echo_n "(cached) " >&6 | ||
14142 | else | ||
14143 | ac_check_lib_save_LIBS=$LIBS | ||
14144 | LIBS="-lpam $LIBS" | ||
14145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14146 | /* end confdefs.h. */ | ||
14147 | |||
14148 | /* Override any GCC internal prototype to avoid an error. | ||
14149 | Use char because int might match the return type of a GCC | ||
14150 | builtin and then its argument prototype would still apply. */ | ||
14151 | #ifdef __cplusplus | ||
14152 | extern "C" | ||
14153 | #endif | ||
14154 | char pam_set_item (); | ||
14155 | int | ||
14156 | main () | ||
14157 | { | ||
14158 | return pam_set_item (); | ||
14159 | ; | ||
14160 | return 0; | ||
14161 | } | ||
14162 | _ACEOF | ||
14163 | if ac_fn_c_try_link "$LINENO"; then : | ||
14164 | ac_cv_lib_pam_pam_set_item=yes | ||
14165 | else | ||
14166 | ac_cv_lib_pam_pam_set_item=no | ||
14167 | fi | ||
14168 | rm -f core conftest.err conftest.$ac_objext \ | ||
14169 | conftest$ac_exeext conftest.$ac_ext | ||
14170 | LIBS=$ac_check_lib_save_LIBS | ||
14171 | fi | ||
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
14173 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
14174 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
14175 | cat >>confdefs.h <<_ACEOF | ||
14176 | #define HAVE_LIBPAM 1 | ||
14177 | _ACEOF | ||
14178 | |||
14179 | LIBS="-lpam $LIBS" | ||
14180 | |||
14181 | else | ||
14182 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
14183 | fi | ||
14184 | |||
14185 | for ac_func in pam_getenvlist | ||
14186 | do : | ||
14187 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
14188 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
14189 | cat >>confdefs.h <<_ACEOF | ||
14190 | #define HAVE_PAM_GETENVLIST 1 | ||
14191 | _ACEOF | ||
14192 | |||
14193 | fi | ||
14194 | done | ||
14195 | |||
14196 | for ac_func in pam_putenv | ||
14197 | do : | ||
14198 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
14199 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
14200 | cat >>confdefs.h <<_ACEOF | ||
14201 | #define HAVE_PAM_PUTENV 1 | ||
14202 | _ACEOF | ||
14203 | |||
14204 | fi | ||
14205 | done | ||
14206 | |||
14207 | LIBS="$saved_LIBS" | ||
14208 | |||
14209 | PAM_MSG="yes" | ||
14210 | |||
14211 | SSHDLIBS="$SSHDLIBS -lpam" | ||
14212 | |||
14213 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
14214 | |||
14215 | |||
14216 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
14217 | case "$LIBS" in | ||
14218 | *-ldl*) | ||
14219 | # libdl already in LIBS | ||
14220 | ;; | ||
14221 | *) | ||
14222 | SSHDLIBS="$SSHDLIBS -ldl" | ||
14223 | ;; | ||
14224 | esac | ||
14225 | fi | ||
14226 | fi | ||
14227 | |||
14228 | |||
14229 | fi | ||
14230 | |||
14231 | |||
14232 | |||
14233 | # Check whether --with-pam-service was given. | ||
14234 | if test "${with_pam_service+set}" = set; then : | ||
14235 | withval=$with_pam_service; | ||
14236 | if test "x$withval" != "xno" && \ | ||
14237 | test "x$withval" != "xyes" ; then | ||
14238 | |||
14239 | cat >>confdefs.h <<_ACEOF | ||
14240 | #define SSHD_PAM_SERVICE "$withval" | ||
14241 | _ACEOF | ||
14242 | |||
14243 | fi | ||
14244 | |||
14245 | |||
14246 | fi | ||
14247 | |||
14248 | |||
14249 | # Check for older PAM | ||
14250 | if test "x$PAM_MSG" = "xyes" ; then | ||
14251 | # Check PAM strerror arguments (old PAM) | ||
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
14253 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
14254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14255 | /* end confdefs.h. */ | ||
14256 | |||
14257 | #include <stdlib.h> | ||
14258 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
14259 | #include <security/pam_appl.h> | ||
14260 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
14261 | #include <pam/pam_appl.h> | ||
14262 | #endif | ||
14263 | |||
14264 | int | ||
14265 | main () | ||
14266 | { | ||
14267 | |||
14268 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
14269 | |||
14270 | ; | ||
14271 | return 0; | ||
14272 | } | ||
14273 | _ACEOF | ||
14274 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14276 | $as_echo "no" >&6; } | ||
14277 | else | ||
14278 | |||
14279 | |||
14280 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
14281 | |||
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14283 | $as_echo "yes" >&6; } | ||
14284 | PAM_MSG="yes (old library)" | ||
14285 | |||
14286 | |||
14287 | fi | ||
14288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14289 | fi | ||
14290 | |||
14291 | case "$host" in | ||
14292 | *-*-cygwin*) | ||
14293 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
14294 | ;; | ||
14295 | *) | ||
14296 | SSH_PRIVSEP_USER=sshd | ||
14297 | ;; | ||
14298 | esac | ||
14299 | |||
14300 | # Check whether --with-privsep-user was given. | ||
14301 | if test "${with_privsep_user+set}" = set; then : | ||
14302 | withval=$with_privsep_user; | ||
14303 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14304 | test "x${withval}" != "xyes"; then | ||
14305 | SSH_PRIVSEP_USER=$withval | ||
14306 | fi | ||
14307 | |||
14308 | |||
14309 | fi | ||
14310 | |||
14311 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
14312 | |||
14313 | cat >>confdefs.h <<_ACEOF | ||
14314 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
14315 | _ACEOF | ||
14316 | |||
14317 | else | ||
14318 | |||
14319 | cat >>confdefs.h <<_ACEOF | ||
14320 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
14321 | _ACEOF | ||
14322 | |||
14323 | fi | ||
14324 | |||
14325 | |||
14326 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
14327 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
14328 | #include <sys/types.h> | ||
14329 | #include <linux/seccomp.h> | ||
14330 | |||
14331 | " | ||
14332 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
14333 | have_seccomp_filter=1 | ||
14334 | fi | ||
14335 | |||
14336 | fi | ||
14337 | if test "x$have_seccomp_filter" = "x1" ; then | ||
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
14339 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
14340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14341 | /* end confdefs.h. */ | ||
14342 | |||
14343 | #include <errno.h> | ||
14344 | #include <elf.h> | ||
14345 | #include <linux/audit.h> | ||
14346 | #include <linux/seccomp.h> | ||
14347 | #include <stdlib.h> | ||
14348 | #include <sys/prctl.h> | ||
14349 | |||
14350 | int | ||
14351 | main () | ||
14352 | { | ||
14353 | int i = $seccomp_audit_arch; | ||
14354 | errno = 0; | ||
14355 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
14356 | exit(errno == EFAULT ? 0 : 1); | ||
14357 | ; | ||
14358 | return 0; | ||
14359 | } | ||
14360 | _ACEOF | ||
14361 | if ac_fn_c_try_link "$LINENO"; then : | ||
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14363 | $as_echo "yes" >&6; } | ||
14364 | else | ||
14365 | |||
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14367 | $as_echo "no" >&6; } | ||
14368 | # Disable seccomp filter as a target | ||
14369 | have_seccomp_filter=0 | ||
14370 | |||
14371 | |||
14372 | fi | ||
14373 | rm -f core conftest.err conftest.$ac_objext \ | ||
14374 | conftest$ac_exeext conftest.$ac_ext | ||
14375 | fi | ||
14376 | |||
14377 | # Decide which sandbox style to use | ||
14378 | sandbox_arg="" | ||
14379 | |||
14380 | # Check whether --with-sandbox was given. | ||
14381 | if test "${with_sandbox+set}" = set; then : | ||
14382 | withval=$with_sandbox; | ||
14383 | if test "x$withval" = "xyes" ; then | ||
14384 | sandbox_arg="" | ||
14385 | else | ||
14386 | sandbox_arg="$withval" | ||
14387 | fi | ||
14388 | |||
14389 | |||
14390 | fi | ||
14391 | |||
14392 | |||
14393 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
14394 | # function with which they implement select(2)) use an extra file descriptor | ||
14395 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
14397 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
14398 | if test "$cross_compiling" = yes; then : | ||
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14400 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14401 | select_works_with_rlimit=yes | ||
14402 | |||
14403 | else | ||
14404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14405 | /* end confdefs.h. */ | ||
14406 | |||
14407 | #include <sys/types.h> | ||
14408 | #ifdef HAVE_SYS_TIME_H | ||
14409 | # include <sys/time.h> | ||
14410 | #endif | ||
14411 | #include <sys/resource.h> | ||
14412 | #ifdef HAVE_SYS_SELECT_H | ||
14413 | # include <sys/select.h> | ||
14414 | #endif | ||
14415 | #include <errno.h> | ||
14416 | #include <fcntl.h> | ||
14417 | #include <stdlib.h> | ||
14418 | |||
14419 | int | ||
14420 | main () | ||
14421 | { | ||
14422 | |||
14423 | struct rlimit rl_zero; | ||
14424 | int fd, r; | ||
14425 | fd_set fds; | ||
14426 | struct timeval tv; | ||
14427 | |||
14428 | fd = open("/dev/null", O_RDONLY); | ||
14429 | FD_ZERO(&fds); | ||
14430 | FD_SET(fd, &fds); | ||
14431 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14432 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
14433 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14434 | tv.tv_sec = 1; | ||
14435 | tv.tv_usec = 0; | ||
14436 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
14437 | exit (r == -1 ? 1 : 0); | ||
14438 | |||
14439 | ; | ||
14440 | return 0; | ||
14441 | } | ||
14442 | _ACEOF | ||
14443 | if ac_fn_c_try_run "$LINENO"; then : | ||
14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14445 | $as_echo "yes" >&6; } | ||
14446 | select_works_with_rlimit=yes | ||
14447 | else | ||
14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14449 | $as_echo "no" >&6; } | ||
14450 | select_works_with_rlimit=no | ||
14451 | fi | ||
14452 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14453 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14454 | fi | ||
14455 | |||
14456 | |||
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
14458 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
14459 | if test "$cross_compiling" = yes; then : | ||
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14461 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14462 | rlimit_nofile_zero_works=yes | ||
14463 | |||
14464 | else | ||
14465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14466 | /* end confdefs.h. */ | ||
14467 | |||
14468 | #include <sys/types.h> | ||
14469 | #ifdef HAVE_SYS_TIME_H | ||
14470 | # include <sys/time.h> | ||
14471 | #endif | ||
14472 | #include <sys/resource.h> | ||
14473 | #include <errno.h> | ||
14474 | #include <stdlib.h> | ||
14475 | |||
14476 | int | ||
14477 | main () | ||
14478 | { | ||
14479 | |||
14480 | struct rlimit rl_zero; | ||
14481 | int fd, r; | ||
14482 | fd_set fds; | ||
14483 | |||
14484 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14485 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14486 | exit (r == -1 ? 1 : 0); | ||
14487 | |||
14488 | ; | ||
14489 | return 0; | ||
14490 | } | ||
14491 | _ACEOF | ||
14492 | if ac_fn_c_try_run "$LINENO"; then : | ||
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14494 | $as_echo "yes" >&6; } | ||
14495 | rlimit_nofile_zero_works=yes | ||
14496 | else | ||
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14498 | $as_echo "no" >&6; } | ||
14499 | rlimit_nofile_zero_works=no | ||
14500 | fi | ||
14501 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14502 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14503 | fi | ||
14504 | |||
14505 | |||
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
14507 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
14508 | if test "$cross_compiling" = yes; then : | ||
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14510 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14511 | |||
14512 | else | ||
14513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14514 | /* end confdefs.h. */ | ||
14515 | |||
14516 | #include <sys/types.h> | ||
14517 | #include <sys/resource.h> | ||
14518 | #include <stdlib.h> | ||
14519 | |||
14520 | int | ||
14521 | main () | ||
14522 | { | ||
14523 | |||
14524 | struct rlimit rl_zero; | ||
14525 | |||
14526 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14527 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
14528 | |||
14529 | ; | ||
14530 | return 0; | ||
14531 | } | ||
14532 | _ACEOF | ||
14533 | if ac_fn_c_try_run "$LINENO"; then : | ||
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14535 | $as_echo "yes" >&6; } | ||
14536 | else | ||
14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14538 | $as_echo "no" >&6; } | ||
14539 | |||
14540 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
14541 | |||
14542 | fi | ||
14543 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14544 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14545 | fi | ||
14546 | |||
14547 | |||
14548 | if test "x$sandbox_arg" = "xpledge" || \ | ||
14549 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then | ||
14550 | test "x$ac_cv_func_pledge" != "xyes" && \ | ||
14551 | as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 | ||
14552 | SANDBOX_STYLE="pledge" | ||
14553 | |||
14554 | $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h | ||
14555 | |||
14556 | elif test "x$sandbox_arg" = "xsystrace" || \ | ||
14557 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
14558 | test "x$have_systr_policy_kill" != "x1" && \ | ||
14559 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
14560 | SANDBOX_STYLE="systrace" | ||
14561 | |||
14562 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
14563 | |||
14564 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
14565 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
14566 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
14567 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
14568 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
14569 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
14570 | SANDBOX_STYLE="darwin" | ||
14571 | |||
14572 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
14573 | |||
14574 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
14575 | ( test -z "$sandbox_arg" && \ | ||
14576 | test "x$have_seccomp_filter" = "x1" && \ | ||
14577 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
14578 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
14579 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
14580 | test "x$seccomp_audit_arch" != "x" && \ | ||
14581 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
14582 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
14583 | test "x$seccomp_audit_arch" = "x" && \ | ||
14584 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
14585 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
14586 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
14587 | test "x$have_seccomp_filter" != "x1" && \ | ||
14588 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
14589 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
14590 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
14591 | SANDBOX_STYLE="seccomp_filter" | ||
14592 | |||
14593 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
14594 | |||
14595 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
14596 | ( test -z "$sandbox_arg" && \ | ||
14597 | test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \ | ||
14598 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
14599 | test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \ | ||
14600 | as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5 | ||
14601 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
14602 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 | ||
14603 | SANDBOX_STYLE="capsicum" | ||
14604 | |||
14605 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h | ||
14606 | |||
14607 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
14608 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
14609 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
14610 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
14611 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
14612 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
14613 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
14614 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
14615 | SANDBOX_STYLE="rlimit" | ||
14616 | |||
14617 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
14618 | |||
14619 | elif test "x$sandbox_arg" = "xsolaris" || \ | ||
14620 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then | ||
14621 | SANDBOX_STYLE="solaris" | ||
14622 | |||
14623 | $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h | ||
14624 | |||
14625 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
14626 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
14627 | SANDBOX_STYLE="none" | ||
14628 | |||
14629 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
14630 | |||
14631 | else | ||
14632 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
14633 | fi | ||
14634 | |||
14635 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
14636 | if test ! -z "$SONY" ; then | ||
14637 | LIBS="$LIBS -liberty"; | ||
14638 | fi | ||
14639 | |||
14640 | # Check for long long datatypes | ||
14641 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
14642 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
14643 | |||
14644 | cat >>confdefs.h <<_ACEOF | ||
14645 | #define HAVE_LONG_LONG 1 | ||
14646 | _ACEOF | ||
14647 | |||
14648 | |||
14649 | fi | ||
14650 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
14651 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
14652 | |||
14653 | cat >>confdefs.h <<_ACEOF | ||
14654 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
14655 | _ACEOF | ||
14656 | |||
14657 | |||
14658 | fi | ||
14659 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
14660 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
14661 | |||
14662 | cat >>confdefs.h <<_ACEOF | ||
14663 | #define HAVE_LONG_DOUBLE 1 | ||
14664 | _ACEOF | ||
14665 | |||
14666 | |||
14667 | fi | ||
14668 | |||
14669 | |||
14670 | # Check datatype sizes | ||
14671 | # The cast to long int works around a bug in the HP C Compiler | ||
14672 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14673 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14674 | # This bug is HP SR number 8606223364. | ||
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
14676 | $as_echo_n "checking size of short int... " >&6; } | ||
14677 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
14678 | $as_echo_n "(cached) " >&6 | ||
14679 | else | ||
14680 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
14681 | |||
14682 | else | ||
14683 | if test "$ac_cv_type_short_int" = yes; then | ||
14684 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14685 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14686 | as_fn_error 77 "cannot compute sizeof (short int) | ||
14687 | See \`config.log' for more details" "$LINENO" 5; } | ||
14688 | else | ||
14689 | ac_cv_sizeof_short_int=0 | ||
14690 | fi | ||
14691 | fi | ||
14692 | |||
14693 | fi | ||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
14695 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
14696 | |||
14697 | |||
14698 | |||
14699 | cat >>confdefs.h <<_ACEOF | ||
14700 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
14701 | _ACEOF | ||
14702 | |||
14703 | |||
14704 | # The cast to long int works around a bug in the HP C Compiler | ||
14705 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14706 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14707 | # This bug is HP SR number 8606223364. | ||
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
14709 | $as_echo_n "checking size of int... " >&6; } | ||
14710 | if ${ac_cv_sizeof_int+:} false; then : | ||
14711 | $as_echo_n "(cached) " >&6 | ||
14712 | else | ||
14713 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
14714 | |||
14715 | else | ||
14716 | if test "$ac_cv_type_int" = yes; then | ||
14717 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14719 | as_fn_error 77 "cannot compute sizeof (int) | ||
14720 | See \`config.log' for more details" "$LINENO" 5; } | ||
14721 | else | ||
14722 | ac_cv_sizeof_int=0 | ||
14723 | fi | ||
14724 | fi | ||
14725 | |||
14726 | fi | ||
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
14728 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
14729 | |||
14730 | |||
14731 | |||
14732 | cat >>confdefs.h <<_ACEOF | ||
14733 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
14734 | _ACEOF | ||
14735 | |||
14736 | |||
14737 | # The cast to long int works around a bug in the HP C Compiler | ||
14738 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14739 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14740 | # This bug is HP SR number 8606223364. | ||
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
14742 | $as_echo_n "checking size of long int... " >&6; } | ||
14743 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
14744 | $as_echo_n "(cached) " >&6 | ||
14745 | else | ||
14746 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
14747 | |||
14748 | else | ||
14749 | if test "$ac_cv_type_long_int" = yes; then | ||
14750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14752 | as_fn_error 77 "cannot compute sizeof (long int) | ||
14753 | See \`config.log' for more details" "$LINENO" 5; } | ||
14754 | else | ||
14755 | ac_cv_sizeof_long_int=0 | ||
14756 | fi | ||
14757 | fi | ||
14758 | |||
14759 | fi | ||
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
14761 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
14762 | |||
14763 | |||
14764 | |||
14765 | cat >>confdefs.h <<_ACEOF | ||
14766 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
14767 | _ACEOF | ||
14768 | |||
14769 | |||
14770 | # The cast to long int works around a bug in the HP C Compiler | ||
14771 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14772 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14773 | # This bug is HP SR number 8606223364. | ||
14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
14775 | $as_echo_n "checking size of long long int... " >&6; } | ||
14776 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
14777 | $as_echo_n "(cached) " >&6 | ||
14778 | else | ||
14779 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
14780 | |||
14781 | else | ||
14782 | if test "$ac_cv_type_long_long_int" = yes; then | ||
14783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14784 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14785 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
14786 | See \`config.log' for more details" "$LINENO" 5; } | ||
14787 | else | ||
14788 | ac_cv_sizeof_long_long_int=0 | ||
14789 | fi | ||
14790 | fi | ||
14791 | |||
14792 | fi | ||
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
14794 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
14795 | |||
14796 | |||
14797 | |||
14798 | cat >>confdefs.h <<_ACEOF | ||
14799 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
14800 | _ACEOF | ||
14801 | |||
14802 | |||
14803 | |||
14804 | # Sanity check long long for some platforms (AIX) | ||
14805 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
14806 | ac_cv_sizeof_long_long_int=0 | ||
14807 | fi | ||
14808 | |||
14809 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
14810 | if test -z "$have_llong_max"; then | ||
14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
14812 | $as_echo_n "checking for max value of long long... " >&6; } | ||
14813 | if test "$cross_compiling" = yes; then : | ||
14814 | |||
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
14816 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14817 | |||
14818 | |||
14819 | else | ||
14820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14821 | /* end confdefs.h. */ | ||
14822 | |||
14823 | #include <stdio.h> | ||
14824 | /* Why is this so damn hard? */ | ||
14825 | #ifdef __GNUC__ | ||
14826 | # undef __GNUC__ | ||
14827 | #endif | ||
14828 | #define __USE_ISOC99 | ||
14829 | #include <limits.h> | ||
14830 | #define DATA "conftest.llminmax" | ||
14831 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
14832 | |||
14833 | /* | ||
14834 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
14835 | * we do this the hard way. | ||
14836 | */ | ||
14837 | static int | ||
14838 | fprint_ll(FILE *f, long long n) | ||
14839 | { | ||
14840 | unsigned int i; | ||
14841 | int l[sizeof(long long) * 8]; | ||
14842 | |||
14843 | if (n < 0) | ||
14844 | if (fprintf(f, "-") < 0) | ||
14845 | return -1; | ||
14846 | for (i = 0; n != 0; i++) { | ||
14847 | l[i] = my_abs(n % 10); | ||
14848 | n /= 10; | ||
14849 | } | ||
14850 | do { | ||
14851 | if (fprintf(f, "%d", l[--i]) < 0) | ||
14852 | return -1; | ||
14853 | } while (i != 0); | ||
14854 | if (fprintf(f, " ") < 0) | ||
14855 | return -1; | ||
14856 | return 0; | ||
14857 | } | ||
14858 | |||
14859 | int | ||
14860 | main () | ||
14861 | { | ||
14862 | |||
14863 | FILE *f; | ||
14864 | long long i, llmin, llmax = 0; | ||
14865 | |||
14866 | if((f = fopen(DATA,"w")) == NULL) | ||
14867 | exit(1); | ||
14868 | |||
14869 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
14870 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
14871 | llmin = LLONG_MIN; | ||
14872 | llmax = LLONG_MAX; | ||
14873 | #else | ||
14874 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
14875 | /* This will work on one's complement and two's complement */ | ||
14876 | for (i = 1; i > llmax; i <<= 1, i++) | ||
14877 | llmax = i; | ||
14878 | llmin = llmax + 1LL; /* wrap */ | ||
14879 | #endif | ||
14880 | |||
14881 | /* Sanity check */ | ||
14882 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
14883 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
14884 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
14885 | fprintf(f, "unknown unknown\n"); | ||
14886 | exit(2); | ||
14887 | } | ||
14888 | |||
14889 | if (fprint_ll(f, llmin) < 0) | ||
14890 | exit(3); | ||
14891 | if (fprint_ll(f, llmax) < 0) | ||
14892 | exit(4); | ||
14893 | if (fclose(f) < 0) | ||
14894 | exit(5); | ||
14895 | exit(0); | ||
14896 | |||
14897 | ; | ||
14898 | return 0; | ||
14899 | } | ||
14900 | _ACEOF | ||
14901 | if ac_fn_c_try_run "$LINENO"; then : | ||
14902 | |||
14903 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
14904 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
14905 | |||
14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
14907 | $as_echo "$llong_max" >&6; } | ||
14908 | |||
14909 | cat >>confdefs.h <<_ACEOF | ||
14910 | #define LLONG_MAX ${llong_max}LL | ||
14911 | _ACEOF | ||
14912 | |||
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
14914 | $as_echo_n "checking for min value of long long... " >&6; } | ||
14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
14916 | $as_echo "$llong_min" >&6; } | ||
14917 | |||
14918 | cat >>confdefs.h <<_ACEOF | ||
14919 | #define LLONG_MIN ${llong_min}LL | ||
14920 | _ACEOF | ||
14921 | |||
14922 | |||
14923 | else | ||
14924 | |||
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
14926 | $as_echo "not found" >&6; } | ||
14927 | |||
14928 | fi | ||
14929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14930 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14931 | fi | ||
14932 | |||
14933 | fi | ||
14934 | |||
14935 | |||
14936 | # More checks for data types | ||
14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
14938 | $as_echo_n "checking for u_int type... " >&6; } | ||
14939 | if ${ac_cv_have_u_int+:} false; then : | ||
14940 | $as_echo_n "(cached) " >&6 | ||
14941 | else | ||
14942 | |||
14943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14944 | /* end confdefs.h. */ | ||
14945 | #include <sys/types.h> | ||
14946 | int | ||
14947 | main () | ||
14948 | { | ||
14949 | u_int a; a = 1; | ||
14950 | ; | ||
14951 | return 0; | ||
14952 | } | ||
14953 | _ACEOF | ||
14954 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14955 | ac_cv_have_u_int="yes" | ||
14956 | else | ||
14957 | ac_cv_have_u_int="no" | ||
14958 | |||
14959 | fi | ||
14960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14961 | |||
14962 | fi | ||
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
14964 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
14965 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
14966 | |||
14967 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
14968 | |||
14969 | have_u_int=1 | ||
14970 | fi | ||
14971 | |||
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
14973 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
14974 | if ${ac_cv_have_intxx_t+:} false; then : | ||
14975 | $as_echo_n "(cached) " >&6 | ||
14976 | else | ||
14977 | |||
14978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14979 | /* end confdefs.h. */ | ||
14980 | #include <sys/types.h> | ||
14981 | int | ||
14982 | main () | ||
14983 | { | ||
14984 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
14985 | ; | ||
14986 | return 0; | ||
14987 | } | ||
14988 | _ACEOF | ||
14989 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14990 | ac_cv_have_intxx_t="yes" | ||
14991 | else | ||
14992 | ac_cv_have_intxx_t="no" | ||
14993 | |||
14994 | fi | ||
14995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14996 | |||
14997 | fi | ||
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
14999 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
15000 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
15001 | |||
15002 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15003 | |||
15004 | have_intxx_t=1 | ||
15005 | fi | ||
15006 | |||
15007 | if (test -z "$have_intxx_t" && \ | ||
15008 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
15009 | then | ||
15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
15011 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
15012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15013 | /* end confdefs.h. */ | ||
15014 | #include <stdint.h> | ||
15015 | int | ||
15016 | main () | ||
15017 | { | ||
15018 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
15019 | ; | ||
15020 | return 0; | ||
15021 | } | ||
15022 | _ACEOF | ||
15023 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15024 | |||
15025 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15026 | |||
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15028 | $as_echo "yes" >&6; } | ||
15029 | |||
15030 | else | ||
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15032 | $as_echo "no" >&6; } | ||
15033 | |||
15034 | fi | ||
15035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15036 | fi | ||
15037 | |||
15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
15039 | $as_echo_n "checking for int64_t type... " >&6; } | ||
15040 | if ${ac_cv_have_int64_t+:} false; then : | ||
15041 | $as_echo_n "(cached) " >&6 | ||
15042 | else | ||
15043 | |||
15044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15045 | /* end confdefs.h. */ | ||
15046 | |||
15047 | #include <sys/types.h> | ||
15048 | #ifdef HAVE_STDINT_H | ||
15049 | # include <stdint.h> | ||
15050 | #endif | ||
15051 | #include <sys/socket.h> | ||
15052 | #ifdef HAVE_SYS_BITYPES_H | ||
15053 | # include <sys/bitypes.h> | ||
15054 | #endif | ||
15055 | |||
15056 | int | ||
15057 | main () | ||
15058 | { | ||
15059 | |||
15060 | int64_t a; a = 1; | ||
15061 | |||
15062 | ; | ||
15063 | return 0; | ||
15064 | } | ||
15065 | _ACEOF | ||
15066 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15067 | ac_cv_have_int64_t="yes" | ||
15068 | else | ||
15069 | ac_cv_have_int64_t="no" | ||
15070 | |||
15071 | fi | ||
15072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15073 | |||
15074 | fi | ||
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
15076 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
15077 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
15078 | |||
15079 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
15080 | |||
15081 | fi | ||
15082 | |||
15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
15084 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
15085 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
15086 | $as_echo_n "(cached) " >&6 | ||
15087 | else | ||
15088 | |||
15089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15090 | /* end confdefs.h. */ | ||
15091 | #include <sys/types.h> | ||
15092 | int | ||
15093 | main () | ||
15094 | { | ||
15095 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
15096 | ; | ||
15097 | return 0; | ||
15098 | } | ||
15099 | _ACEOF | ||
15100 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15101 | ac_cv_have_u_intxx_t="yes" | ||
15102 | else | ||
15103 | ac_cv_have_u_intxx_t="no" | ||
15104 | |||
15105 | fi | ||
15106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15107 | |||
15108 | fi | ||
15109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
15110 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
15111 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
15112 | |||
15113 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15114 | |||
15115 | have_u_intxx_t=1 | ||
15116 | fi | ||
15117 | |||
15118 | if test -z "$have_u_intxx_t" ; then | ||
15119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
15120 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
15121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15122 | /* end confdefs.h. */ | ||
15123 | #include <sys/socket.h> | ||
15124 | int | ||
15125 | main () | ||
15126 | { | ||
15127 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
15128 | ; | ||
15129 | return 0; | ||
15130 | } | ||
15131 | _ACEOF | ||
15132 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15133 | |||
15134 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15135 | |||
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15137 | $as_echo "yes" >&6; } | ||
15138 | |||
15139 | else | ||
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15141 | $as_echo "no" >&6; } | ||
15142 | |||
15143 | fi | ||
15144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15145 | fi | ||
15146 | |||
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
15148 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
15149 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
15150 | $as_echo_n "(cached) " >&6 | ||
15151 | else | ||
15152 | |||
15153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15154 | /* end confdefs.h. */ | ||
15155 | #include <sys/types.h> | ||
15156 | int | ||
15157 | main () | ||
15158 | { | ||
15159 | u_int64_t a; a = 1; | ||
15160 | ; | ||
15161 | return 0; | ||
15162 | } | ||
15163 | _ACEOF | ||
15164 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15165 | ac_cv_have_u_int64_t="yes" | ||
15166 | else | ||
15167 | ac_cv_have_u_int64_t="no" | ||
15168 | |||
15169 | fi | ||
15170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15171 | |||
15172 | fi | ||
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
15174 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
15175 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
15176 | |||
15177 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
15178 | |||
15179 | have_u_int64_t=1 | ||
15180 | fi | ||
15181 | |||
15182 | if (test -z "$have_u_int64_t" && \ | ||
15183 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
15184 | then | ||
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
15186 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
15187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15188 | /* end confdefs.h. */ | ||
15189 | #include <sys/bitypes.h> | ||
15190 | int | ||
15191 | main () | ||
15192 | { | ||
15193 | u_int64_t a; a = 1 | ||
15194 | ; | ||
15195 | return 0; | ||
15196 | } | ||
15197 | _ACEOF | ||
15198 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15199 | |||
15200 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
15201 | |||
15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15203 | $as_echo "yes" >&6; } | ||
15204 | |||
15205 | else | ||
15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15207 | $as_echo "no" >&6; } | ||
15208 | |||
15209 | fi | ||
15210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15211 | fi | ||
15212 | |||
15213 | if test -z "$have_u_intxx_t" ; then | ||
15214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
15215 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
15216 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
15217 | $as_echo_n "(cached) " >&6 | ||
15218 | else | ||
15219 | |||
15220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15221 | /* end confdefs.h. */ | ||
15222 | |||
15223 | #include <sys/types.h> | ||
15224 | |||
15225 | int | ||
15226 | main () | ||
15227 | { | ||
15228 | |||
15229 | uint8_t a; | ||
15230 | uint16_t b; | ||
15231 | uint32_t c; | ||
15232 | a = b = c = 1; | ||
15233 | |||
15234 | ; | ||
15235 | return 0; | ||
15236 | } | ||
15237 | _ACEOF | ||
15238 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15239 | ac_cv_have_uintxx_t="yes" | ||
15240 | else | ||
15241 | ac_cv_have_uintxx_t="no" | ||
15242 | |||
15243 | fi | ||
15244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15245 | |||
15246 | fi | ||
15247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
15248 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
15249 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
15250 | |||
15251 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15252 | |||
15253 | fi | ||
15254 | fi | ||
15255 | |||
15256 | if (test -z "$have_uintxx_t" && \ | ||
15257 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
15258 | then | ||
15259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
15260 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
15261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15262 | /* end confdefs.h. */ | ||
15263 | #include <stdint.h> | ||
15264 | int | ||
15265 | main () | ||
15266 | { | ||
15267 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
15268 | ; | ||
15269 | return 0; | ||
15270 | } | ||
15271 | _ACEOF | ||
15272 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15273 | |||
15274 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15275 | |||
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15277 | $as_echo "yes" >&6; } | ||
15278 | |||
15279 | else | ||
15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15281 | $as_echo "no" >&6; } | ||
15282 | |||
15283 | fi | ||
15284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15285 | fi | ||
15286 | |||
15287 | if (test -z "$have_uintxx_t" && \ | ||
15288 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
15289 | then | ||
15290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 | ||
15291 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } | ||
15292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15293 | /* end confdefs.h. */ | ||
15294 | #include <inttypes.h> | ||
15295 | int | ||
15296 | main () | ||
15297 | { | ||
15298 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
15299 | ; | ||
15300 | return 0; | ||
15301 | } | ||
15302 | _ACEOF | ||
15303 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15304 | |||
15305 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15306 | |||
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15308 | $as_echo "yes" >&6; } | ||
15309 | |||
15310 | else | ||
15311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15312 | $as_echo "no" >&6; } | ||
15313 | |||
15314 | fi | ||
15315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15316 | fi | ||
15317 | |||
15318 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
15319 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
15320 | then | ||
15321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
15322 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
15323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15324 | /* end confdefs.h. */ | ||
15325 | |||
15326 | #include <sys/bitypes.h> | ||
15327 | |||
15328 | int | ||
15329 | main () | ||
15330 | { | ||
15331 | |||
15332 | int8_t a; int16_t b; int32_t c; | ||
15333 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
15334 | a = b = c = e = f = g = 1; | ||
15335 | |||
15336 | ; | ||
15337 | return 0; | ||
15338 | } | ||
15339 | _ACEOF | ||
15340 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15341 | |||
15342 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15343 | |||
15344 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15345 | |||
15346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15347 | $as_echo "yes" >&6; } | ||
15348 | |||
15349 | else | ||
15350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15351 | $as_echo "no" >&6; } | ||
15352 | |||
15353 | fi | ||
15354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15355 | fi | ||
15356 | |||
15357 | |||
15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
15359 | $as_echo_n "checking for u_char... " >&6; } | ||
15360 | if ${ac_cv_have_u_char+:} false; then : | ||
15361 | $as_echo_n "(cached) " >&6 | ||
15362 | else | ||
15363 | |||
15364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15365 | /* end confdefs.h. */ | ||
15366 | #include <sys/types.h> | ||
15367 | int | ||
15368 | main () | ||
15369 | { | ||
15370 | u_char foo; foo = 125; | ||
15371 | ; | ||
15372 | return 0; | ||
15373 | } | ||
15374 | _ACEOF | ||
15375 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15376 | ac_cv_have_u_char="yes" | ||
15377 | else | ||
15378 | ac_cv_have_u_char="no" | ||
15379 | |||
15380 | fi | ||
15381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15382 | |||
15383 | fi | ||
15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
15385 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
15386 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
15387 | |||
15388 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
15389 | |||
15390 | fi | ||
15391 | |||
15392 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " | ||
15393 | #include <sys/types.h> | ||
15394 | #include <stdint.h> | ||
15395 | |||
15396 | " | ||
15397 | if test "x$ac_cv_type_intmax_t" = xyes; then : | ||
15398 | |||
15399 | cat >>confdefs.h <<_ACEOF | ||
15400 | #define HAVE_INTMAX_T 1 | ||
15401 | _ACEOF | ||
15402 | |||
15403 | |||
15404 | fi | ||
15405 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " | ||
15406 | #include <sys/types.h> | ||
15407 | #include <stdint.h> | ||
15408 | |||
15409 | " | ||
15410 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | ||
15411 | |||
15412 | cat >>confdefs.h <<_ACEOF | ||
15413 | #define HAVE_UINTMAX_T 1 | ||
15414 | _ACEOF | ||
15415 | |||
15416 | |||
15417 | fi | ||
15418 | |||
15419 | |||
15420 | |||
15421 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
15422 | #include <sys/socket.h> | ||
15423 | " | ||
15424 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
15425 | |||
15426 | else | ||
15427 | |||
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
15429 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
15430 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
15431 | $as_echo_n "(cached) " >&6 | ||
15432 | else | ||
15433 | |||
15434 | # Systems have either "struct sockaddr *" or | ||
15435 | # "void *" as the second argument to getpeername | ||
15436 | curl_cv_socklen_t_equiv= | ||
15437 | for arg2 in "struct sockaddr" void; do | ||
15438 | for t in int size_t unsigned long "unsigned long"; do | ||
15439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15440 | /* end confdefs.h. */ | ||
15441 | |||
15442 | #include <sys/types.h> | ||
15443 | #include <sys/socket.h> | ||
15444 | |||
15445 | int getpeername (int, $arg2 *, $t *); | ||
15446 | |||
15447 | int | ||
15448 | main () | ||
15449 | { | ||
15450 | |||
15451 | $t len; | ||
15452 | getpeername(0,0,&len); | ||
15453 | |||
15454 | ; | ||
15455 | return 0; | ||
15456 | } | ||
15457 | _ACEOF | ||
15458 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15459 | |||
15460 | curl_cv_socklen_t_equiv="$t" | ||
15461 | break | ||
15462 | |||
15463 | fi | ||
15464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15465 | done | ||
15466 | done | ||
15467 | |||
15468 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
15469 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
15470 | fi | ||
15471 | |||
15472 | fi | ||
15473 | |||
15474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
15475 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
15476 | |||
15477 | cat >>confdefs.h <<_ACEOF | ||
15478 | #define socklen_t $curl_cv_socklen_t_equiv | ||
15479 | _ACEOF | ||
15480 | |||
15481 | fi | ||
15482 | |||
15483 | |||
15484 | |||
15485 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
15486 | " | ||
15487 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
15488 | |||
15489 | cat >>confdefs.h <<_ACEOF | ||
15490 | #define HAVE_SIG_ATOMIC_T 1 | ||
15491 | _ACEOF | ||
15492 | |||
15493 | |||
15494 | fi | ||
15495 | |||
15496 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
15497 | #include <sys/types.h> | ||
15498 | #ifdef HAVE_SYS_BITYPES_H | ||
15499 | #include <sys/bitypes.h> | ||
15500 | #endif | ||
15501 | #ifdef HAVE_SYS_STATFS_H | ||
15502 | #include <sys/statfs.h> | ||
15503 | #endif | ||
15504 | #ifdef HAVE_SYS_STATVFS_H | ||
15505 | #include <sys/statvfs.h> | ||
15506 | #endif | ||
15507 | |||
15508 | " | ||
15509 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
15510 | |||
15511 | cat >>confdefs.h <<_ACEOF | ||
15512 | #define HAVE_FSBLKCNT_T 1 | ||
15513 | _ACEOF | ||
15514 | |||
15515 | |||
15516 | fi | ||
15517 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
15518 | #include <sys/types.h> | ||
15519 | #ifdef HAVE_SYS_BITYPES_H | ||
15520 | #include <sys/bitypes.h> | ||
15521 | #endif | ||
15522 | #ifdef HAVE_SYS_STATFS_H | ||
15523 | #include <sys/statfs.h> | ||
15524 | #endif | ||
15525 | #ifdef HAVE_SYS_STATVFS_H | ||
15526 | #include <sys/statvfs.h> | ||
15527 | #endif | ||
15528 | |||
15529 | " | ||
15530 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
15531 | |||
15532 | cat >>confdefs.h <<_ACEOF | ||
15533 | #define HAVE_FSFILCNT_T 1 | ||
15534 | _ACEOF | ||
15535 | |||
15536 | |||
15537 | fi | ||
15538 | |||
15539 | |||
15540 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " | ||
15541 | #include <sys/types.h> | ||
15542 | #ifdef HAVE_SYS_BITYPES_H | ||
15543 | #include <sys/bitypes.h> | ||
15544 | #endif | ||
15545 | #ifdef HAVE_SYS_STATFS_H | ||
15546 | #include <sys/statfs.h> | ||
15547 | #endif | ||
15548 | #ifdef HAVE_SYS_STATVFS_H | ||
15549 | #include <sys/statvfs.h> | ||
15550 | #endif | ||
15551 | #ifdef HAVE_SYS_VFS_H | ||
15552 | #include <sys/vfs.h> | ||
15553 | #endif | ||
15554 | |||
15555 | " | ||
15556 | if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : | ||
15557 | |||
15558 | cat >>confdefs.h <<_ACEOF | ||
15559 | #define HAVE_STRUCT_STATFS_F_FLAGS 1 | ||
15560 | _ACEOF | ||
15561 | |||
15562 | |||
15563 | fi | ||
15564 | |||
15565 | |||
15566 | |||
15567 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
15568 | #include <netinet/in.h> | ||
15569 | " | ||
15570 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
15571 | |||
15572 | cat >>confdefs.h <<_ACEOF | ||
15573 | #define HAVE_IN_ADDR_T 1 | ||
15574 | _ACEOF | ||
15575 | |||
15576 | |||
15577 | fi | ||
15578 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
15579 | #include <netinet/in.h> | ||
15580 | " | ||
15581 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
15582 | |||
15583 | cat >>confdefs.h <<_ACEOF | ||
15584 | #define HAVE_IN_PORT_T 1 | ||
15585 | _ACEOF | ||
15586 | |||
15587 | |||
15588 | fi | ||
15589 | |||
15590 | |||
15591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
15592 | $as_echo_n "checking for size_t... " >&6; } | ||
15593 | if ${ac_cv_have_size_t+:} false; then : | ||
15594 | $as_echo_n "(cached) " >&6 | ||
15595 | else | ||
15596 | |||
15597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15598 | /* end confdefs.h. */ | ||
15599 | #include <sys/types.h> | ||
15600 | int | ||
15601 | main () | ||
15602 | { | ||
15603 | size_t foo; foo = 1235; | ||
15604 | ; | ||
15605 | return 0; | ||
15606 | } | ||
15607 | _ACEOF | ||
15608 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15609 | ac_cv_have_size_t="yes" | ||
15610 | else | ||
15611 | ac_cv_have_size_t="no" | ||
15612 | |||
15613 | fi | ||
15614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15615 | |||
15616 | fi | ||
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
15618 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
15619 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
15620 | |||
15621 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
15622 | |||
15623 | fi | ||
15624 | |||
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
15626 | $as_echo_n "checking for ssize_t... " >&6; } | ||
15627 | if ${ac_cv_have_ssize_t+:} false; then : | ||
15628 | $as_echo_n "(cached) " >&6 | ||
15629 | else | ||
15630 | |||
15631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15632 | /* end confdefs.h. */ | ||
15633 | #include <sys/types.h> | ||
15634 | int | ||
15635 | main () | ||
15636 | { | ||
15637 | ssize_t foo; foo = 1235; | ||
15638 | ; | ||
15639 | return 0; | ||
15640 | } | ||
15641 | _ACEOF | ||
15642 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15643 | ac_cv_have_ssize_t="yes" | ||
15644 | else | ||
15645 | ac_cv_have_ssize_t="no" | ||
15646 | |||
15647 | fi | ||
15648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15649 | |||
15650 | fi | ||
15651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
15652 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
15653 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
15654 | |||
15655 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
15656 | |||
15657 | fi | ||
15658 | |||
15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
15660 | $as_echo_n "checking for clock_t... " >&6; } | ||
15661 | if ${ac_cv_have_clock_t+:} false; then : | ||
15662 | $as_echo_n "(cached) " >&6 | ||
15663 | else | ||
15664 | |||
15665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15666 | /* end confdefs.h. */ | ||
15667 | #include <time.h> | ||
15668 | int | ||
15669 | main () | ||
15670 | { | ||
15671 | clock_t foo; foo = 1235; | ||
15672 | ; | ||
15673 | return 0; | ||
15674 | } | ||
15675 | _ACEOF | ||
15676 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15677 | ac_cv_have_clock_t="yes" | ||
15678 | else | ||
15679 | ac_cv_have_clock_t="no" | ||
15680 | |||
15681 | fi | ||
15682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15683 | |||
15684 | fi | ||
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
15686 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
15687 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
15688 | |||
15689 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
15690 | |||
15691 | fi | ||
15692 | |||
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
15694 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
15695 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
15696 | $as_echo_n "(cached) " >&6 | ||
15697 | else | ||
15698 | |||
15699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15700 | /* end confdefs.h. */ | ||
15701 | |||
15702 | #include <sys/types.h> | ||
15703 | #include <sys/socket.h> | ||
15704 | |||
15705 | int | ||
15706 | main () | ||
15707 | { | ||
15708 | sa_family_t foo; foo = 1235; | ||
15709 | ; | ||
15710 | return 0; | ||
15711 | } | ||
15712 | _ACEOF | ||
15713 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15714 | ac_cv_have_sa_family_t="yes" | ||
15715 | else | ||
15716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15717 | /* end confdefs.h. */ | ||
15718 | |||
15719 | #include <sys/types.h> | ||
15720 | #include <sys/socket.h> | ||
15721 | #include <netinet/in.h> | ||
15722 | |||
15723 | int | ||
15724 | main () | ||
15725 | { | ||
15726 | sa_family_t foo; foo = 1235; | ||
15727 | ; | ||
15728 | return 0; | ||
15729 | } | ||
15730 | _ACEOF | ||
15731 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15732 | ac_cv_have_sa_family_t="yes" | ||
15733 | else | ||
15734 | ac_cv_have_sa_family_t="no" | ||
15735 | |||
15736 | fi | ||
15737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15738 | |||
15739 | fi | ||
15740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15741 | |||
15742 | fi | ||
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
15744 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
15745 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
15746 | |||
15747 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
15748 | |||
15749 | fi | ||
15750 | |||
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
15752 | $as_echo_n "checking for pid_t... " >&6; } | ||
15753 | if ${ac_cv_have_pid_t+:} false; then : | ||
15754 | $as_echo_n "(cached) " >&6 | ||
15755 | else | ||
15756 | |||
15757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15758 | /* end confdefs.h. */ | ||
15759 | #include <sys/types.h> | ||
15760 | int | ||
15761 | main () | ||
15762 | { | ||
15763 | pid_t foo; foo = 1235; | ||
15764 | ; | ||
15765 | return 0; | ||
15766 | } | ||
15767 | _ACEOF | ||
15768 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15769 | ac_cv_have_pid_t="yes" | ||
15770 | else | ||
15771 | ac_cv_have_pid_t="no" | ||
15772 | |||
15773 | fi | ||
15774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15775 | |||
15776 | fi | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
15778 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
15779 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
15780 | |||
15781 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
15782 | |||
15783 | fi | ||
15784 | |||
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
15786 | $as_echo_n "checking for mode_t... " >&6; } | ||
15787 | if ${ac_cv_have_mode_t+:} false; then : | ||
15788 | $as_echo_n "(cached) " >&6 | ||
15789 | else | ||
15790 | |||
15791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15792 | /* end confdefs.h. */ | ||
15793 | #include <sys/types.h> | ||
15794 | int | ||
15795 | main () | ||
15796 | { | ||
15797 | mode_t foo; foo = 1235; | ||
15798 | ; | ||
15799 | return 0; | ||
15800 | } | ||
15801 | _ACEOF | ||
15802 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15803 | ac_cv_have_mode_t="yes" | ||
15804 | else | ||
15805 | ac_cv_have_mode_t="no" | ||
15806 | |||
15807 | fi | ||
15808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15809 | |||
15810 | fi | ||
15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
15812 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
15813 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
15814 | |||
15815 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
15816 | |||
15817 | fi | ||
15818 | |||
15819 | |||
15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
15821 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
15822 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
15823 | $as_echo_n "(cached) " >&6 | ||
15824 | else | ||
15825 | |||
15826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15827 | /* end confdefs.h. */ | ||
15828 | |||
15829 | #include <sys/types.h> | ||
15830 | #include <sys/socket.h> | ||
15831 | |||
15832 | int | ||
15833 | main () | ||
15834 | { | ||
15835 | struct sockaddr_storage s; | ||
15836 | ; | ||
15837 | return 0; | ||
15838 | } | ||
15839 | _ACEOF | ||
15840 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15841 | ac_cv_have_struct_sockaddr_storage="yes" | ||
15842 | else | ||
15843 | ac_cv_have_struct_sockaddr_storage="no" | ||
15844 | |||
15845 | fi | ||
15846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15847 | |||
15848 | fi | ||
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
15850 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
15851 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
15852 | |||
15853 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
15854 | |||
15855 | fi | ||
15856 | |||
15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
15858 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
15859 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
15860 | $as_echo_n "(cached) " >&6 | ||
15861 | else | ||
15862 | |||
15863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15864 | /* end confdefs.h. */ | ||
15865 | |||
15866 | #include <sys/types.h> | ||
15867 | #include <netinet/in.h> | ||
15868 | |||
15869 | int | ||
15870 | main () | ||
15871 | { | ||
15872 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
15873 | ; | ||
15874 | return 0; | ||
15875 | } | ||
15876 | _ACEOF | ||
15877 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15878 | ac_cv_have_struct_sockaddr_in6="yes" | ||
15879 | else | ||
15880 | ac_cv_have_struct_sockaddr_in6="no" | ||
15881 | |||
15882 | fi | ||
15883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15884 | |||
15885 | fi | ||
15886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
15887 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
15888 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
15889 | |||
15890 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
15891 | |||
15892 | fi | ||
15893 | |||
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
15895 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
15896 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
15897 | $as_echo_n "(cached) " >&6 | ||
15898 | else | ||
15899 | |||
15900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15901 | /* end confdefs.h. */ | ||
15902 | |||
15903 | #include <sys/types.h> | ||
15904 | #include <netinet/in.h> | ||
15905 | |||
15906 | int | ||
15907 | main () | ||
15908 | { | ||
15909 | struct in6_addr s; s.s6_addr[0] = 0; | ||
15910 | ; | ||
15911 | return 0; | ||
15912 | } | ||
15913 | _ACEOF | ||
15914 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15915 | ac_cv_have_struct_in6_addr="yes" | ||
15916 | else | ||
15917 | ac_cv_have_struct_in6_addr="no" | ||
15918 | |||
15919 | fi | ||
15920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15921 | |||
15922 | fi | ||
15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
15924 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
15925 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
15926 | |||
15927 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
15928 | |||
15929 | |||
15930 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
15931 | #ifdef HAVE_SYS_TYPES_H | ||
15932 | #include <sys/types.h> | ||
15933 | #endif | ||
15934 | #include <netinet/in.h> | ||
15935 | |||
15936 | " | ||
15937 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
15938 | |||
15939 | cat >>confdefs.h <<_ACEOF | ||
15940 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
15941 | _ACEOF | ||
15942 | |||
15943 | |||
15944 | fi | ||
15945 | |||
15946 | fi | ||
15947 | |||
15948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
15949 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
15950 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
15951 | $as_echo_n "(cached) " >&6 | ||
15952 | else | ||
15953 | |||
15954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15955 | /* end confdefs.h. */ | ||
15956 | |||
15957 | #include <sys/types.h> | ||
15958 | #include <sys/socket.h> | ||
15959 | #include <netdb.h> | ||
15960 | |||
15961 | int | ||
15962 | main () | ||
15963 | { | ||
15964 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
15965 | ; | ||
15966 | return 0; | ||
15967 | } | ||
15968 | _ACEOF | ||
15969 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15970 | ac_cv_have_struct_addrinfo="yes" | ||
15971 | else | ||
15972 | ac_cv_have_struct_addrinfo="no" | ||
15973 | |||
15974 | fi | ||
15975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15976 | |||
15977 | fi | ||
15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
15979 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
15980 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
15981 | |||
15982 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
15983 | |||
15984 | fi | ||
15985 | |||
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
15987 | $as_echo_n "checking for struct timeval... " >&6; } | ||
15988 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
15989 | $as_echo_n "(cached) " >&6 | ||
15990 | else | ||
15991 | |||
15992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15993 | /* end confdefs.h. */ | ||
15994 | #include <sys/time.h> | ||
15995 | int | ||
15996 | main () | ||
15997 | { | ||
15998 | struct timeval tv; tv.tv_sec = 1; | ||
15999 | ; | ||
16000 | return 0; | ||
16001 | } | ||
16002 | _ACEOF | ||
16003 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16004 | ac_cv_have_struct_timeval="yes" | ||
16005 | else | ||
16006 | ac_cv_have_struct_timeval="no" | ||
16007 | |||
16008 | fi | ||
16009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16010 | |||
16011 | fi | ||
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
16013 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
16014 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
16015 | |||
16016 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
16017 | |||
16018 | have_struct_timeval=1 | ||
16019 | fi | ||
16020 | |||
16021 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
16022 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
16023 | |||
16024 | cat >>confdefs.h <<_ACEOF | ||
16025 | #define HAVE_STRUCT_TIMESPEC 1 | ||
16026 | _ACEOF | ||
16027 | |||
16028 | |||
16029 | fi | ||
16030 | |||
16031 | |||
16032 | # We need int64_t or else certain parts of the compile will fail. | ||
16033 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
16034 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
16035 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
16036 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
16037 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
16038 | echo "" | ||
16039 | exit 1; | ||
16040 | else | ||
16041 | if test "$cross_compiling" = yes; then : | ||
16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
16043 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
16044 | |||
16045 | else | ||
16046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16047 | /* end confdefs.h. */ | ||
16048 | |||
16049 | #include <stdio.h> | ||
16050 | #include <string.h> | ||
16051 | #ifdef HAVE_SNPRINTF | ||
16052 | main() | ||
16053 | { | ||
16054 | char buf[50]; | ||
16055 | char expected_out[50]; | ||
16056 | int mazsize = 50 ; | ||
16057 | #if (SIZEOF_LONG_INT == 8) | ||
16058 | long int num = 0x7fffffffffffffff; | ||
16059 | #else | ||
16060 | long long num = 0x7fffffffffffffffll; | ||
16061 | #endif | ||
16062 | strcpy(expected_out, "9223372036854775807"); | ||
16063 | snprintf(buf, mazsize, "%lld", num); | ||
16064 | if(strcmp(buf, expected_out) != 0) | ||
16065 | exit(1); | ||
16066 | exit(0); | ||
16067 | } | ||
16068 | #else | ||
16069 | main() { exit(0); } | ||
16070 | #endif | ||
16071 | |||
16072 | _ACEOF | ||
16073 | if ac_fn_c_try_run "$LINENO"; then : | ||
16074 | true | ||
16075 | else | ||
16076 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
16077 | |||
16078 | fi | ||
16079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16080 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16081 | fi | ||
16082 | |||
16083 | fi | ||
16084 | |||
16085 | |||
16086 | # look for field 'ut_host' in header 'utmp.h' | ||
16087 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16088 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
16089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
16090 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
16091 | if eval \${$ossh_varname+:} false; then : | ||
16092 | $as_echo_n "(cached) " >&6 | ||
16093 | else | ||
16094 | |||
16095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16096 | /* end confdefs.h. */ | ||
16097 | #include <utmp.h> | ||
16098 | |||
16099 | _ACEOF | ||
16100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16101 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
16102 | eval "$ossh_varname=yes" | ||
16103 | else | ||
16104 | eval "$ossh_varname=no" | ||
16105 | fi | ||
16106 | rm -f conftest* | ||
16107 | |||
16108 | fi | ||
16109 | |||
16110 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16111 | if test -n "`echo $ossh_varname`"; then | ||
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16113 | $as_echo "$ossh_result" >&6; } | ||
16114 | if test "x$ossh_result" = "xyes"; then | ||
16115 | |||
16116 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
16117 | |||
16118 | fi | ||
16119 | else | ||
16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16121 | $as_echo "no" >&6; } | ||
16122 | fi | ||
16123 | |||
16124 | |||
16125 | # look for field 'ut_host' in header 'utmpx.h' | ||
16126 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16127 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
16128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
16129 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
16130 | if eval \${$ossh_varname+:} false; then : | ||
16131 | $as_echo_n "(cached) " >&6 | ||
16132 | else | ||
16133 | |||
16134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16135 | /* end confdefs.h. */ | ||
16136 | #include <utmpx.h> | ||
16137 | |||
16138 | _ACEOF | ||
16139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16140 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
16141 | eval "$ossh_varname=yes" | ||
16142 | else | ||
16143 | eval "$ossh_varname=no" | ||
16144 | fi | ||
16145 | rm -f conftest* | ||
16146 | |||
16147 | fi | ||
16148 | |||
16149 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16150 | if test -n "`echo $ossh_varname`"; then | ||
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16152 | $as_echo "$ossh_result" >&6; } | ||
16153 | if test "x$ossh_result" = "xyes"; then | ||
16154 | |||
16155 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
16156 | |||
16157 | fi | ||
16158 | else | ||
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16160 | $as_echo "no" >&6; } | ||
16161 | fi | ||
16162 | |||
16163 | |||
16164 | # look for field 'syslen' in header 'utmpx.h' | ||
16165 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16166 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
16168 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
16169 | if eval \${$ossh_varname+:} false; then : | ||
16170 | $as_echo_n "(cached) " >&6 | ||
16171 | else | ||
16172 | |||
16173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16174 | /* end confdefs.h. */ | ||
16175 | #include <utmpx.h> | ||
16176 | |||
16177 | _ACEOF | ||
16178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16179 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
16180 | eval "$ossh_varname=yes" | ||
16181 | else | ||
16182 | eval "$ossh_varname=no" | ||
16183 | fi | ||
16184 | rm -f conftest* | ||
16185 | |||
16186 | fi | ||
16187 | |||
16188 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16189 | if test -n "`echo $ossh_varname`"; then | ||
16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16191 | $as_echo "$ossh_result" >&6; } | ||
16192 | if test "x$ossh_result" = "xyes"; then | ||
16193 | |||
16194 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
16195 | |||
16196 | fi | ||
16197 | else | ||
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16199 | $as_echo "no" >&6; } | ||
16200 | fi | ||
16201 | |||
16202 | |||
16203 | # look for field 'ut_pid' in header 'utmp.h' | ||
16204 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16205 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
16206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
16207 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
16208 | if eval \${$ossh_varname+:} false; then : | ||
16209 | $as_echo_n "(cached) " >&6 | ||
16210 | else | ||
16211 | |||
16212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16213 | /* end confdefs.h. */ | ||
16214 | #include <utmp.h> | ||
16215 | |||
16216 | _ACEOF | ||
16217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16218 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
16219 | eval "$ossh_varname=yes" | ||
16220 | else | ||
16221 | eval "$ossh_varname=no" | ||
16222 | fi | ||
16223 | rm -f conftest* | ||
16224 | |||
16225 | fi | ||
16226 | |||
16227 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16228 | if test -n "`echo $ossh_varname`"; then | ||
16229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16230 | $as_echo "$ossh_result" >&6; } | ||
16231 | if test "x$ossh_result" = "xyes"; then | ||
16232 | |||
16233 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
16234 | |||
16235 | fi | ||
16236 | else | ||
16237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16238 | $as_echo "no" >&6; } | ||
16239 | fi | ||
16240 | |||
16241 | |||
16242 | # look for field 'ut_type' in header 'utmp.h' | ||
16243 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16244 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
16246 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
16247 | if eval \${$ossh_varname+:} false; then : | ||
16248 | $as_echo_n "(cached) " >&6 | ||
16249 | else | ||
16250 | |||
16251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16252 | /* end confdefs.h. */ | ||
16253 | #include <utmp.h> | ||
16254 | |||
16255 | _ACEOF | ||
16256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16257 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
16258 | eval "$ossh_varname=yes" | ||
16259 | else | ||
16260 | eval "$ossh_varname=no" | ||
16261 | fi | ||
16262 | rm -f conftest* | ||
16263 | |||
16264 | fi | ||
16265 | |||
16266 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16267 | if test -n "`echo $ossh_varname`"; then | ||
16268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16269 | $as_echo "$ossh_result" >&6; } | ||
16270 | if test "x$ossh_result" = "xyes"; then | ||
16271 | |||
16272 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
16273 | |||
16274 | fi | ||
16275 | else | ||
16276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16277 | $as_echo "no" >&6; } | ||
16278 | fi | ||
16279 | |||
16280 | |||
16281 | # look for field 'ut_type' in header 'utmpx.h' | ||
16282 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16283 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
16284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
16285 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
16286 | if eval \${$ossh_varname+:} false; then : | ||
16287 | $as_echo_n "(cached) " >&6 | ||
16288 | else | ||
16289 | |||
16290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16291 | /* end confdefs.h. */ | ||
16292 | #include <utmpx.h> | ||
16293 | |||
16294 | _ACEOF | ||
16295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16296 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
16297 | eval "$ossh_varname=yes" | ||
16298 | else | ||
16299 | eval "$ossh_varname=no" | ||
16300 | fi | ||
16301 | rm -f conftest* | ||
16302 | |||
16303 | fi | ||
16304 | |||
16305 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16306 | if test -n "`echo $ossh_varname`"; then | ||
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16308 | $as_echo "$ossh_result" >&6; } | ||
16309 | if test "x$ossh_result" = "xyes"; then | ||
16310 | |||
16311 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
16312 | |||
16313 | fi | ||
16314 | else | ||
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16316 | $as_echo "no" >&6; } | ||
16317 | fi | ||
16318 | |||
16319 | |||
16320 | # look for field 'ut_tv' in header 'utmp.h' | ||
16321 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16322 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
16324 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
16325 | if eval \${$ossh_varname+:} false; then : | ||
16326 | $as_echo_n "(cached) " >&6 | ||
16327 | else | ||
16328 | |||
16329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16330 | /* end confdefs.h. */ | ||
16331 | #include <utmp.h> | ||
16332 | |||
16333 | _ACEOF | ||
16334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16335 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
16336 | eval "$ossh_varname=yes" | ||
16337 | else | ||
16338 | eval "$ossh_varname=no" | ||
16339 | fi | ||
16340 | rm -f conftest* | ||
16341 | |||
16342 | fi | ||
16343 | |||
16344 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16345 | if test -n "`echo $ossh_varname`"; then | ||
16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16347 | $as_echo "$ossh_result" >&6; } | ||
16348 | if test "x$ossh_result" = "xyes"; then | ||
16349 | |||
16350 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
16351 | |||
16352 | fi | ||
16353 | else | ||
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16355 | $as_echo "no" >&6; } | ||
16356 | fi | ||
16357 | |||
16358 | |||
16359 | # look for field 'ut_id' in header 'utmp.h' | ||
16360 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16361 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
16363 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
16364 | if eval \${$ossh_varname+:} false; then : | ||
16365 | $as_echo_n "(cached) " >&6 | ||
16366 | else | ||
16367 | |||
16368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16369 | /* end confdefs.h. */ | ||
16370 | #include <utmp.h> | ||
16371 | |||
16372 | _ACEOF | ||
16373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16374 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16375 | eval "$ossh_varname=yes" | ||
16376 | else | ||
16377 | eval "$ossh_varname=no" | ||
16378 | fi | ||
16379 | rm -f conftest* | ||
16380 | |||
16381 | fi | ||
16382 | |||
16383 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16384 | if test -n "`echo $ossh_varname`"; then | ||
16385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16386 | $as_echo "$ossh_result" >&6; } | ||
16387 | if test "x$ossh_result" = "xyes"; then | ||
16388 | |||
16389 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
16390 | |||
16391 | fi | ||
16392 | else | ||
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16394 | $as_echo "no" >&6; } | ||
16395 | fi | ||
16396 | |||
16397 | |||
16398 | # look for field 'ut_id' in header 'utmpx.h' | ||
16399 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16400 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
16402 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
16403 | if eval \${$ossh_varname+:} false; then : | ||
16404 | $as_echo_n "(cached) " >&6 | ||
16405 | else | ||
16406 | |||
16407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16408 | /* end confdefs.h. */ | ||
16409 | #include <utmpx.h> | ||
16410 | |||
16411 | _ACEOF | ||
16412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16413 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16414 | eval "$ossh_varname=yes" | ||
16415 | else | ||
16416 | eval "$ossh_varname=no" | ||
16417 | fi | ||
16418 | rm -f conftest* | ||
16419 | |||
16420 | fi | ||
16421 | |||
16422 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16423 | if test -n "`echo $ossh_varname`"; then | ||
16424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16425 | $as_echo "$ossh_result" >&6; } | ||
16426 | if test "x$ossh_result" = "xyes"; then | ||
16427 | |||
16428 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
16429 | |||
16430 | fi | ||
16431 | else | ||
16432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16433 | $as_echo "no" >&6; } | ||
16434 | fi | ||
16435 | |||
16436 | |||
16437 | # look for field 'ut_addr' in header 'utmp.h' | ||
16438 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16439 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
16441 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
16442 | if eval \${$ossh_varname+:} false; then : | ||
16443 | $as_echo_n "(cached) " >&6 | ||
16444 | else | ||
16445 | |||
16446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16447 | /* end confdefs.h. */ | ||
16448 | #include <utmp.h> | ||
16449 | |||
16450 | _ACEOF | ||
16451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16452 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16453 | eval "$ossh_varname=yes" | ||
16454 | else | ||
16455 | eval "$ossh_varname=no" | ||
16456 | fi | ||
16457 | rm -f conftest* | ||
16458 | |||
16459 | fi | ||
16460 | |||
16461 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16462 | if test -n "`echo $ossh_varname`"; then | ||
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16464 | $as_echo "$ossh_result" >&6; } | ||
16465 | if test "x$ossh_result" = "xyes"; then | ||
16466 | |||
16467 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
16468 | |||
16469 | fi | ||
16470 | else | ||
16471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16472 | $as_echo "no" >&6; } | ||
16473 | fi | ||
16474 | |||
16475 | |||
16476 | # look for field 'ut_addr' in header 'utmpx.h' | ||
16477 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16478 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
16480 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
16481 | if eval \${$ossh_varname+:} false; then : | ||
16482 | $as_echo_n "(cached) " >&6 | ||
16483 | else | ||
16484 | |||
16485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16486 | /* end confdefs.h. */ | ||
16487 | #include <utmpx.h> | ||
16488 | |||
16489 | _ACEOF | ||
16490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16491 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16492 | eval "$ossh_varname=yes" | ||
16493 | else | ||
16494 | eval "$ossh_varname=no" | ||
16495 | fi | ||
16496 | rm -f conftest* | ||
16497 | |||
16498 | fi | ||
16499 | |||
16500 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16501 | if test -n "`echo $ossh_varname`"; then | ||
16502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16503 | $as_echo "$ossh_result" >&6; } | ||
16504 | if test "x$ossh_result" = "xyes"; then | ||
16505 | |||
16506 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
16507 | |||
16508 | fi | ||
16509 | else | ||
16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16511 | $as_echo "no" >&6; } | ||
16512 | fi | ||
16513 | |||
16514 | |||
16515 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
16516 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16517 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
16519 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
16520 | if eval \${$ossh_varname+:} false; then : | ||
16521 | $as_echo_n "(cached) " >&6 | ||
16522 | else | ||
16523 | |||
16524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16525 | /* end confdefs.h. */ | ||
16526 | #include <utmp.h> | ||
16527 | |||
16528 | _ACEOF | ||
16529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16530 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16531 | eval "$ossh_varname=yes" | ||
16532 | else | ||
16533 | eval "$ossh_varname=no" | ||
16534 | fi | ||
16535 | rm -f conftest* | ||
16536 | |||
16537 | fi | ||
16538 | |||
16539 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16540 | if test -n "`echo $ossh_varname`"; then | ||
16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16542 | $as_echo "$ossh_result" >&6; } | ||
16543 | if test "x$ossh_result" = "xyes"; then | ||
16544 | |||
16545 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
16546 | |||
16547 | fi | ||
16548 | else | ||
16549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16550 | $as_echo "no" >&6; } | ||
16551 | fi | ||
16552 | |||
16553 | |||
16554 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
16555 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16556 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
16558 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
16559 | if eval \${$ossh_varname+:} false; then : | ||
16560 | $as_echo_n "(cached) " >&6 | ||
16561 | else | ||
16562 | |||
16563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16564 | /* end confdefs.h. */ | ||
16565 | #include <utmpx.h> | ||
16566 | |||
16567 | _ACEOF | ||
16568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16569 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16570 | eval "$ossh_varname=yes" | ||
16571 | else | ||
16572 | eval "$ossh_varname=no" | ||
16573 | fi | ||
16574 | rm -f conftest* | ||
16575 | |||
16576 | fi | ||
16577 | |||
16578 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16579 | if test -n "`echo $ossh_varname`"; then | ||
16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16581 | $as_echo "$ossh_result" >&6; } | ||
16582 | if test "x$ossh_result" = "xyes"; then | ||
16583 | |||
16584 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
16585 | |||
16586 | fi | ||
16587 | else | ||
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16589 | $as_echo "no" >&6; } | ||
16590 | fi | ||
16591 | |||
16592 | |||
16593 | # look for field 'ut_exit' in header 'utmp.h' | ||
16594 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16595 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
16596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
16597 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
16598 | if eval \${$ossh_varname+:} false; then : | ||
16599 | $as_echo_n "(cached) " >&6 | ||
16600 | else | ||
16601 | |||
16602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16603 | /* end confdefs.h. */ | ||
16604 | #include <utmp.h> | ||
16605 | |||
16606 | _ACEOF | ||
16607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16608 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
16609 | eval "$ossh_varname=yes" | ||
16610 | else | ||
16611 | eval "$ossh_varname=no" | ||
16612 | fi | ||
16613 | rm -f conftest* | ||
16614 | |||
16615 | fi | ||
16616 | |||
16617 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16618 | if test -n "`echo $ossh_varname`"; then | ||
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16620 | $as_echo "$ossh_result" >&6; } | ||
16621 | if test "x$ossh_result" = "xyes"; then | ||
16622 | |||
16623 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
16624 | |||
16625 | fi | ||
16626 | else | ||
16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16628 | $as_echo "no" >&6; } | ||
16629 | fi | ||
16630 | |||
16631 | |||
16632 | # look for field 'ut_time' in header 'utmp.h' | ||
16633 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16634 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
16636 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
16637 | if eval \${$ossh_varname+:} false; then : | ||
16638 | $as_echo_n "(cached) " >&6 | ||
16639 | else | ||
16640 | |||
16641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16642 | /* end confdefs.h. */ | ||
16643 | #include <utmp.h> | ||
16644 | |||
16645 | _ACEOF | ||
16646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16647 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16648 | eval "$ossh_varname=yes" | ||
16649 | else | ||
16650 | eval "$ossh_varname=no" | ||
16651 | fi | ||
16652 | rm -f conftest* | ||
16653 | |||
16654 | fi | ||
16655 | |||
16656 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16657 | if test -n "`echo $ossh_varname`"; then | ||
16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16659 | $as_echo "$ossh_result" >&6; } | ||
16660 | if test "x$ossh_result" = "xyes"; then | ||
16661 | |||
16662 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
16663 | |||
16664 | fi | ||
16665 | else | ||
16666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16667 | $as_echo "no" >&6; } | ||
16668 | fi | ||
16669 | |||
16670 | |||
16671 | # look for field 'ut_time' in header 'utmpx.h' | ||
16672 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16673 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
16675 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
16676 | if eval \${$ossh_varname+:} false; then : | ||
16677 | $as_echo_n "(cached) " >&6 | ||
16678 | else | ||
16679 | |||
16680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16681 | /* end confdefs.h. */ | ||
16682 | #include <utmpx.h> | ||
16683 | |||
16684 | _ACEOF | ||
16685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16686 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16687 | eval "$ossh_varname=yes" | ||
16688 | else | ||
16689 | eval "$ossh_varname=no" | ||
16690 | fi | ||
16691 | rm -f conftest* | ||
16692 | |||
16693 | fi | ||
16694 | |||
16695 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16696 | if test -n "`echo $ossh_varname`"; then | ||
16697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16698 | $as_echo "$ossh_result" >&6; } | ||
16699 | if test "x$ossh_result" = "xyes"; then | ||
16700 | |||
16701 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
16702 | |||
16703 | fi | ||
16704 | else | ||
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16706 | $as_echo "no" >&6; } | ||
16707 | fi | ||
16708 | |||
16709 | |||
16710 | # look for field 'ut_tv' in header 'utmpx.h' | ||
16711 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16712 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
16714 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
16715 | if eval \${$ossh_varname+:} false; then : | ||
16716 | $as_echo_n "(cached) " >&6 | ||
16717 | else | ||
16718 | |||
16719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16720 | /* end confdefs.h. */ | ||
16721 | #include <utmpx.h> | ||
16722 | |||
16723 | _ACEOF | ||
16724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16725 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
16726 | eval "$ossh_varname=yes" | ||
16727 | else | ||
16728 | eval "$ossh_varname=no" | ||
16729 | fi | ||
16730 | rm -f conftest* | ||
16731 | |||
16732 | fi | ||
16733 | |||
16734 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16735 | if test -n "`echo $ossh_varname`"; then | ||
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16737 | $as_echo "$ossh_result" >&6; } | ||
16738 | if test "x$ossh_result" = "xyes"; then | ||
16739 | |||
16740 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
16741 | |||
16742 | fi | ||
16743 | else | ||
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16745 | $as_echo "no" >&6; } | ||
16746 | fi | ||
16747 | |||
16748 | |||
16749 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
16750 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
16751 | |||
16752 | cat >>confdefs.h <<_ACEOF | ||
16753 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
16754 | _ACEOF | ||
16755 | |||
16756 | |||
16757 | fi | ||
16758 | |||
16759 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" | ||
16760 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : | ||
16761 | |||
16762 | cat >>confdefs.h <<_ACEOF | ||
16763 | #define HAVE_STRUCT_STAT_ST_MTIM 1 | ||
16764 | _ACEOF | ||
16765 | |||
16766 | |||
16767 | fi | ||
16768 | |||
16769 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default" | ||
16770 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | ||
16771 | |||
16772 | cat >>confdefs.h <<_ACEOF | ||
16773 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | ||
16774 | _ACEOF | ||
16775 | |||
16776 | |||
16777 | fi | ||
16778 | |||
16779 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | ||
16780 | #include <sys/types.h> | ||
16781 | #include <pwd.h> | ||
16782 | |||
16783 | " | ||
16784 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||
16785 | |||
16786 | cat >>confdefs.h <<_ACEOF | ||
16787 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
16788 | _ACEOF | ||
16789 | |||
16790 | |||
16791 | fi | ||
16792 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " | ||
16793 | #include <sys/types.h> | ||
16794 | #include <pwd.h> | ||
16795 | |||
16796 | " | ||
16797 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : | ||
16798 | |||
16799 | cat >>confdefs.h <<_ACEOF | ||
16800 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
16801 | _ACEOF | ||
16802 | |||
16803 | |||
16804 | fi | ||
16805 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " | ||
16806 | #include <sys/types.h> | ||
16807 | #include <pwd.h> | ||
16808 | |||
16809 | " | ||
16810 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : | ||
16811 | |||
16812 | cat >>confdefs.h <<_ACEOF | ||
16813 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
16814 | _ACEOF | ||
16815 | |||
16816 | |||
16817 | fi | ||
16818 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " | ||
16819 | #include <sys/types.h> | ||
16820 | #include <pwd.h> | ||
16821 | |||
16822 | " | ||
16823 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : | ||
16824 | |||
16825 | cat >>confdefs.h <<_ACEOF | ||
16826 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
16827 | _ACEOF | ||
16828 | |||
16829 | |||
16830 | fi | ||
16831 | |||
16832 | |||
16833 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
16834 | #include <stdio.h> | ||
16835 | #if HAVE_SYS_TYPES_H | ||
16836 | # include <sys/types.h> | ||
16837 | #endif | ||
16838 | #include <netinet/in.h> | ||
16839 | #include <arpa/nameser.h> | ||
16840 | #include <resolv.h> | ||
16841 | |||
16842 | " | ||
16843 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
16844 | |||
16845 | else | ||
16846 | |||
16847 | $as_echo "#define __res_state state" >>confdefs.h | ||
16848 | |||
16849 | fi | ||
16850 | |||
16851 | |||
16852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
16853 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
16854 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
16855 | $as_echo_n "(cached) " >&6 | ||
16856 | else | ||
16857 | |||
16858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16859 | /* end confdefs.h. */ | ||
16860 | |||
16861 | #include <sys/types.h> | ||
16862 | #include <sys/socket.h> | ||
16863 | |||
16864 | int | ||
16865 | main () | ||
16866 | { | ||
16867 | struct sockaddr_storage s; s.ss_family = 1; | ||
16868 | ; | ||
16869 | return 0; | ||
16870 | } | ||
16871 | _ACEOF | ||
16872 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16873 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
16874 | else | ||
16875 | ac_cv_have_ss_family_in_struct_ss="no" | ||
16876 | fi | ||
16877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16878 | |||
16879 | fi | ||
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
16881 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
16882 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
16883 | |||
16884 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16885 | |||
16886 | fi | ||
16887 | |||
16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
16889 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
16890 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
16891 | $as_echo_n "(cached) " >&6 | ||
16892 | else | ||
16893 | |||
16894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16895 | /* end confdefs.h. */ | ||
16896 | |||
16897 | #include <sys/types.h> | ||
16898 | #include <sys/socket.h> | ||
16899 | |||
16900 | int | ||
16901 | main () | ||
16902 | { | ||
16903 | struct sockaddr_storage s; s.__ss_family = 1; | ||
16904 | ; | ||
16905 | return 0; | ||
16906 | } | ||
16907 | _ACEOF | ||
16908 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16909 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
16910 | else | ||
16911 | ac_cv_have___ss_family_in_struct_ss="no" | ||
16912 | |||
16913 | fi | ||
16914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16915 | |||
16916 | fi | ||
16917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
16918 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
16919 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
16920 | |||
16921 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16922 | |||
16923 | fi | ||
16924 | |||
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
16926 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
16927 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
16928 | $as_echo_n "(cached) " >&6 | ||
16929 | else | ||
16930 | |||
16931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16932 | /* end confdefs.h. */ | ||
16933 | |||
16934 | #include <sys/types.h> | ||
16935 | #include <sys/socket.h> | ||
16936 | #include <sys/uio.h> | ||
16937 | |||
16938 | int | ||
16939 | main () | ||
16940 | { | ||
16941 | |||
16942 | #ifdef msg_accrights | ||
16943 | #error "msg_accrights is a macro" | ||
16944 | exit(1); | ||
16945 | #endif | ||
16946 | struct msghdr m; | ||
16947 | m.msg_accrights = 0; | ||
16948 | exit(0); | ||
16949 | |||
16950 | ; | ||
16951 | return 0; | ||
16952 | } | ||
16953 | _ACEOF | ||
16954 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16955 | ac_cv_have_accrights_in_msghdr="yes" | ||
16956 | else | ||
16957 | ac_cv_have_accrights_in_msghdr="no" | ||
16958 | |||
16959 | fi | ||
16960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16961 | |||
16962 | fi | ||
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
16964 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
16965 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
16966 | |||
16967 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
16968 | |||
16969 | fi | ||
16970 | |||
16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
16972 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
16973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16974 | /* end confdefs.h. */ | ||
16975 | |||
16976 | #include <sys/param.h> | ||
16977 | #include <sys/stat.h> | ||
16978 | #ifdef HAVE_SYS_TIME_H | ||
16979 | # include <sys/time.h> | ||
16980 | #endif | ||
16981 | #ifdef HAVE_SYS_MOUNT_H | ||
16982 | #include <sys/mount.h> | ||
16983 | #endif | ||
16984 | #ifdef HAVE_SYS_STATVFS_H | ||
16985 | #include <sys/statvfs.h> | ||
16986 | #endif | ||
16987 | |||
16988 | int | ||
16989 | main () | ||
16990 | { | ||
16991 | struct statvfs s; s.f_fsid = 0; | ||
16992 | ; | ||
16993 | return 0; | ||
16994 | } | ||
16995 | _ACEOF | ||
16996 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16998 | $as_echo "yes" >&6; } | ||
16999 | else | ||
17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17001 | $as_echo "no" >&6; } | ||
17002 | |||
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
17004 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
17005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17006 | /* end confdefs.h. */ | ||
17007 | |||
17008 | #include <sys/types.h> | ||
17009 | #include <sys/statvfs.h> | ||
17010 | |||
17011 | int | ||
17012 | main () | ||
17013 | { | ||
17014 | fsid_t t; t.val[0] = 0; | ||
17015 | ; | ||
17016 | return 0; | ||
17017 | } | ||
17018 | _ACEOF | ||
17019 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17021 | $as_echo "yes" >&6; } | ||
17022 | |||
17023 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
17024 | |||
17025 | else | ||
17026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17027 | $as_echo "no" >&6; } | ||
17028 | fi | ||
17029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17030 | |||
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
17032 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
17033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17034 | /* end confdefs.h. */ | ||
17035 | |||
17036 | #include <sys/types.h> | ||
17037 | #include <sys/statvfs.h> | ||
17038 | |||
17039 | int | ||
17040 | main () | ||
17041 | { | ||
17042 | fsid_t t; t.__val[0] = 0; | ||
17043 | ; | ||
17044 | return 0; | ||
17045 | } | ||
17046 | _ACEOF | ||
17047 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17049 | $as_echo "yes" >&6; } | ||
17050 | |||
17051 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
17052 | |||
17053 | else | ||
17054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17055 | $as_echo "no" >&6; } | ||
17056 | fi | ||
17057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17058 | |||
17059 | fi | ||
17060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17061 | |||
17062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
17063 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
17064 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
17065 | $as_echo_n "(cached) " >&6 | ||
17066 | else | ||
17067 | |||
17068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17069 | /* end confdefs.h. */ | ||
17070 | |||
17071 | #include <sys/types.h> | ||
17072 | #include <sys/socket.h> | ||
17073 | #include <sys/uio.h> | ||
17074 | |||
17075 | int | ||
17076 | main () | ||
17077 | { | ||
17078 | |||
17079 | #ifdef msg_control | ||
17080 | #error "msg_control is a macro" | ||
17081 | exit(1); | ||
17082 | #endif | ||
17083 | struct msghdr m; | ||
17084 | m.msg_control = 0; | ||
17085 | exit(0); | ||
17086 | |||
17087 | ; | ||
17088 | return 0; | ||
17089 | } | ||
17090 | _ACEOF | ||
17091 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17092 | ac_cv_have_control_in_msghdr="yes" | ||
17093 | else | ||
17094 | ac_cv_have_control_in_msghdr="no" | ||
17095 | |||
17096 | fi | ||
17097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17098 | |||
17099 | fi | ||
17100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
17101 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
17102 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
17103 | |||
17104 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
17105 | |||
17106 | fi | ||
17107 | |||
17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
17109 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
17110 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
17111 | $as_echo_n "(cached) " >&6 | ||
17112 | else | ||
17113 | |||
17114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17115 | /* end confdefs.h. */ | ||
17116 | |||
17117 | int | ||
17118 | main () | ||
17119 | { | ||
17120 | extern char *__progname; printf("%s", __progname); | ||
17121 | ; | ||
17122 | return 0; | ||
17123 | } | ||
17124 | _ACEOF | ||
17125 | if ac_fn_c_try_link "$LINENO"; then : | ||
17126 | ac_cv_libc_defines___progname="yes" | ||
17127 | else | ||
17128 | ac_cv_libc_defines___progname="no" | ||
17129 | |||
17130 | fi | ||
17131 | rm -f core conftest.err conftest.$ac_objext \ | ||
17132 | conftest$ac_exeext conftest.$ac_ext | ||
17133 | |||
17134 | fi | ||
17135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
17136 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
17137 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
17138 | |||
17139 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
17140 | |||
17141 | fi | ||
17142 | |||
17143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
17144 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
17145 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
17146 | $as_echo_n "(cached) " >&6 | ||
17147 | else | ||
17148 | |||
17149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17150 | /* end confdefs.h. */ | ||
17151 | #include <stdio.h> | ||
17152 | int | ||
17153 | main () | ||
17154 | { | ||
17155 | printf("%s", __FUNCTION__); | ||
17156 | ; | ||
17157 | return 0; | ||
17158 | } | ||
17159 | _ACEOF | ||
17160 | if ac_fn_c_try_link "$LINENO"; then : | ||
17161 | ac_cv_cc_implements___FUNCTION__="yes" | ||
17162 | else | ||
17163 | ac_cv_cc_implements___FUNCTION__="no" | ||
17164 | |||
17165 | fi | ||
17166 | rm -f core conftest.err conftest.$ac_objext \ | ||
17167 | conftest$ac_exeext conftest.$ac_ext | ||
17168 | |||
17169 | fi | ||
17170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
17171 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
17172 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
17173 | |||
17174 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
17175 | |||
17176 | fi | ||
17177 | |||
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
17179 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
17180 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
17181 | $as_echo_n "(cached) " >&6 | ||
17182 | else | ||
17183 | |||
17184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17185 | /* end confdefs.h. */ | ||
17186 | #include <stdio.h> | ||
17187 | int | ||
17188 | main () | ||
17189 | { | ||
17190 | printf("%s", __func__); | ||
17191 | ; | ||
17192 | return 0; | ||
17193 | } | ||
17194 | _ACEOF | ||
17195 | if ac_fn_c_try_link "$LINENO"; then : | ||
17196 | ac_cv_cc_implements___func__="yes" | ||
17197 | else | ||
17198 | ac_cv_cc_implements___func__="no" | ||
17199 | |||
17200 | fi | ||
17201 | rm -f core conftest.err conftest.$ac_objext \ | ||
17202 | conftest$ac_exeext conftest.$ac_ext | ||
17203 | |||
17204 | fi | ||
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
17206 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
17207 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
17208 | |||
17209 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
17210 | |||
17211 | fi | ||
17212 | |||
17213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
17214 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
17215 | if ${ac_cv_have_va_copy+:} false; then : | ||
17216 | $as_echo_n "(cached) " >&6 | ||
17217 | else | ||
17218 | |||
17219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17220 | /* end confdefs.h. */ | ||
17221 | |||
17222 | #include <stdarg.h> | ||
17223 | va_list x,y; | ||
17224 | |||
17225 | int | ||
17226 | main () | ||
17227 | { | ||
17228 | va_copy(x,y); | ||
17229 | ; | ||
17230 | return 0; | ||
17231 | } | ||
17232 | _ACEOF | ||
17233 | if ac_fn_c_try_link "$LINENO"; then : | ||
17234 | ac_cv_have_va_copy="yes" | ||
17235 | else | ||
17236 | ac_cv_have_va_copy="no" | ||
17237 | |||
17238 | fi | ||
17239 | rm -f core conftest.err conftest.$ac_objext \ | ||
17240 | conftest$ac_exeext conftest.$ac_ext | ||
17241 | |||
17242 | fi | ||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
17244 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
17245 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
17246 | |||
17247 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
17248 | |||
17249 | fi | ||
17250 | |||
17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
17252 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
17253 | if ${ac_cv_have___va_copy+:} false; then : | ||
17254 | $as_echo_n "(cached) " >&6 | ||
17255 | else | ||
17256 | |||
17257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17258 | /* end confdefs.h. */ | ||
17259 | |||
17260 | #include <stdarg.h> | ||
17261 | va_list x,y; | ||
17262 | |||
17263 | int | ||
17264 | main () | ||
17265 | { | ||
17266 | __va_copy(x,y); | ||
17267 | ; | ||
17268 | return 0; | ||
17269 | } | ||
17270 | _ACEOF | ||
17271 | if ac_fn_c_try_link "$LINENO"; then : | ||
17272 | ac_cv_have___va_copy="yes" | ||
17273 | else | ||
17274 | ac_cv_have___va_copy="no" | ||
17275 | |||
17276 | fi | ||
17277 | rm -f core conftest.err conftest.$ac_objext \ | ||
17278 | conftest$ac_exeext conftest.$ac_ext | ||
17279 | |||
17280 | fi | ||
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
17282 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
17283 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
17284 | |||
17285 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
17286 | |||
17287 | fi | ||
17288 | |||
17289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
17290 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
17291 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
17292 | $as_echo_n "(cached) " >&6 | ||
17293 | else | ||
17294 | |||
17295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17296 | /* end confdefs.h. */ | ||
17297 | #include <getopt.h> | ||
17298 | int | ||
17299 | main () | ||
17300 | { | ||
17301 | extern int optreset; optreset = 0; | ||
17302 | ; | ||
17303 | return 0; | ||
17304 | } | ||
17305 | _ACEOF | ||
17306 | if ac_fn_c_try_link "$LINENO"; then : | ||
17307 | ac_cv_have_getopt_optreset="yes" | ||
17308 | else | ||
17309 | ac_cv_have_getopt_optreset="no" | ||
17310 | |||
17311 | fi | ||
17312 | rm -f core conftest.err conftest.$ac_objext \ | ||
17313 | conftest$ac_exeext conftest.$ac_ext | ||
17314 | |||
17315 | fi | ||
17316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
17317 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
17318 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
17319 | |||
17320 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
17321 | |||
17322 | fi | ||
17323 | |||
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
17325 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
17326 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
17327 | $as_echo_n "(cached) " >&6 | ||
17328 | else | ||
17329 | |||
17330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17331 | /* end confdefs.h. */ | ||
17332 | |||
17333 | int | ||
17334 | main () | ||
17335 | { | ||
17336 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
17337 | ; | ||
17338 | return 0; | ||
17339 | } | ||
17340 | _ACEOF | ||
17341 | if ac_fn_c_try_link "$LINENO"; then : | ||
17342 | ac_cv_libc_defines_sys_errlist="yes" | ||
17343 | else | ||
17344 | ac_cv_libc_defines_sys_errlist="no" | ||
17345 | |||
17346 | fi | ||
17347 | rm -f core conftest.err conftest.$ac_objext \ | ||
17348 | conftest$ac_exeext conftest.$ac_ext | ||
17349 | |||
17350 | fi | ||
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
17352 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
17353 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
17354 | |||
17355 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
17356 | |||
17357 | fi | ||
17358 | |||
17359 | |||
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
17361 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
17362 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
17363 | $as_echo_n "(cached) " >&6 | ||
17364 | else | ||
17365 | |||
17366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17367 | /* end confdefs.h. */ | ||
17368 | |||
17369 | int | ||
17370 | main () | ||
17371 | { | ||
17372 | extern int sys_nerr; printf("%i", sys_nerr); | ||
17373 | ; | ||
17374 | return 0; | ||
17375 | } | ||
17376 | _ACEOF | ||
17377 | if ac_fn_c_try_link "$LINENO"; then : | ||
17378 | ac_cv_libc_defines_sys_nerr="yes" | ||
17379 | else | ||
17380 | ac_cv_libc_defines_sys_nerr="no" | ||
17381 | |||
17382 | fi | ||
17383 | rm -f core conftest.err conftest.$ac_objext \ | ||
17384 | conftest$ac_exeext conftest.$ac_ext | ||
17385 | |||
17386 | fi | ||
17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
17388 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
17389 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
17390 | |||
17391 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
17392 | |||
17393 | fi | ||
17394 | |||
17395 | # Check libraries needed by DNS fingerprint support | ||
17396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
17397 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
17398 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17399 | $as_echo_n "(cached) " >&6 | ||
17400 | else | ||
17401 | ac_func_search_save_LIBS=$LIBS | ||
17402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17403 | /* end confdefs.h. */ | ||
17404 | |||
17405 | /* Override any GCC internal prototype to avoid an error. | ||
17406 | Use char because int might match the return type of a GCC | ||
17407 | builtin and then its argument prototype would still apply. */ | ||
17408 | #ifdef __cplusplus | ||
17409 | extern "C" | ||
17410 | #endif | ||
17411 | char getrrsetbyname (); | ||
17412 | int | ||
17413 | main () | ||
17414 | { | ||
17415 | return getrrsetbyname (); | ||
17416 | ; | ||
17417 | return 0; | ||
17418 | } | ||
17419 | _ACEOF | ||
17420 | for ac_lib in '' resolv; do | ||
17421 | if test -z "$ac_lib"; then | ||
17422 | ac_res="none required" | ||
17423 | else | ||
17424 | ac_res=-l$ac_lib | ||
17425 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17426 | fi | ||
17427 | if ac_fn_c_try_link "$LINENO"; then : | ||
17428 | ac_cv_search_getrrsetbyname=$ac_res | ||
17429 | fi | ||
17430 | rm -f core conftest.err conftest.$ac_objext \ | ||
17431 | conftest$ac_exeext | ||
17432 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17433 | break | ||
17434 | fi | ||
17435 | done | ||
17436 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17437 | |||
17438 | else | ||
17439 | ac_cv_search_getrrsetbyname=no | ||
17440 | fi | ||
17441 | rm conftest.$ac_ext | ||
17442 | LIBS=$ac_func_search_save_LIBS | ||
17443 | fi | ||
17444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
17445 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
17446 | ac_res=$ac_cv_search_getrrsetbyname | ||
17447 | if test "$ac_res" != no; then : | ||
17448 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17449 | |||
17450 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
17451 | |||
17452 | else | ||
17453 | |||
17454 | # Needed by our getrrsetbyname() | ||
17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
17456 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
17457 | if ${ac_cv_search_res_query+:} false; then : | ||
17458 | $as_echo_n "(cached) " >&6 | ||
17459 | else | ||
17460 | ac_func_search_save_LIBS=$LIBS | ||
17461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17462 | /* end confdefs.h. */ | ||
17463 | |||
17464 | /* Override any GCC internal prototype to avoid an error. | ||
17465 | Use char because int might match the return type of a GCC | ||
17466 | builtin and then its argument prototype would still apply. */ | ||
17467 | #ifdef __cplusplus | ||
17468 | extern "C" | ||
17469 | #endif | ||
17470 | char res_query (); | ||
17471 | int | ||
17472 | main () | ||
17473 | { | ||
17474 | return res_query (); | ||
17475 | ; | ||
17476 | return 0; | ||
17477 | } | ||
17478 | _ACEOF | ||
17479 | for ac_lib in '' resolv; do | ||
17480 | if test -z "$ac_lib"; then | ||
17481 | ac_res="none required" | ||
17482 | else | ||
17483 | ac_res=-l$ac_lib | ||
17484 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17485 | fi | ||
17486 | if ac_fn_c_try_link "$LINENO"; then : | ||
17487 | ac_cv_search_res_query=$ac_res | ||
17488 | fi | ||
17489 | rm -f core conftest.err conftest.$ac_objext \ | ||
17490 | conftest$ac_exeext | ||
17491 | if ${ac_cv_search_res_query+:} false; then : | ||
17492 | break | ||
17493 | fi | ||
17494 | done | ||
17495 | if ${ac_cv_search_res_query+:} false; then : | ||
17496 | |||
17497 | else | ||
17498 | ac_cv_search_res_query=no | ||
17499 | fi | ||
17500 | rm conftest.$ac_ext | ||
17501 | LIBS=$ac_func_search_save_LIBS | ||
17502 | fi | ||
17503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
17504 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
17505 | ac_res=$ac_cv_search_res_query | ||
17506 | if test "$ac_res" != no; then : | ||
17507 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17508 | |||
17509 | fi | ||
17510 | |||
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
17512 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
17513 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17514 | $as_echo_n "(cached) " >&6 | ||
17515 | else | ||
17516 | ac_func_search_save_LIBS=$LIBS | ||
17517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17518 | /* end confdefs.h. */ | ||
17519 | |||
17520 | /* Override any GCC internal prototype to avoid an error. | ||
17521 | Use char because int might match the return type of a GCC | ||
17522 | builtin and then its argument prototype would still apply. */ | ||
17523 | #ifdef __cplusplus | ||
17524 | extern "C" | ||
17525 | #endif | ||
17526 | char dn_expand (); | ||
17527 | int | ||
17528 | main () | ||
17529 | { | ||
17530 | return dn_expand (); | ||
17531 | ; | ||
17532 | return 0; | ||
17533 | } | ||
17534 | _ACEOF | ||
17535 | for ac_lib in '' resolv; do | ||
17536 | if test -z "$ac_lib"; then | ||
17537 | ac_res="none required" | ||
17538 | else | ||
17539 | ac_res=-l$ac_lib | ||
17540 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17541 | fi | ||
17542 | if ac_fn_c_try_link "$LINENO"; then : | ||
17543 | ac_cv_search_dn_expand=$ac_res | ||
17544 | fi | ||
17545 | rm -f core conftest.err conftest.$ac_objext \ | ||
17546 | conftest$ac_exeext | ||
17547 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17548 | break | ||
17549 | fi | ||
17550 | done | ||
17551 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17552 | |||
17553 | else | ||
17554 | ac_cv_search_dn_expand=no | ||
17555 | fi | ||
17556 | rm conftest.$ac_ext | ||
17557 | LIBS=$ac_func_search_save_LIBS | ||
17558 | fi | ||
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
17560 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
17561 | ac_res=$ac_cv_search_dn_expand | ||
17562 | if test "$ac_res" != no; then : | ||
17563 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17564 | |||
17565 | fi | ||
17566 | |||
17567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
17568 | $as_echo_n "checking if res_query will link... " >&6; } | ||
17569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17570 | /* end confdefs.h. */ | ||
17571 | |||
17572 | #include <sys/types.h> | ||
17573 | #include <netinet/in.h> | ||
17574 | #include <arpa/nameser.h> | ||
17575 | #include <netdb.h> | ||
17576 | #include <resolv.h> | ||
17577 | |||
17578 | int | ||
17579 | main () | ||
17580 | { | ||
17581 | |||
17582 | res_query (0, 0, 0, 0, 0); | ||
17583 | |||
17584 | ; | ||
17585 | return 0; | ||
17586 | } | ||
17587 | _ACEOF | ||
17588 | if ac_fn_c_try_link "$LINENO"; then : | ||
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17590 | $as_echo "yes" >&6; } | ||
17591 | else | ||
17592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17593 | $as_echo "no" >&6; } | ||
17594 | saved_LIBS="$LIBS" | ||
17595 | LIBS="$LIBS -lresolv" | ||
17596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
17597 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
17598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17599 | /* end confdefs.h. */ | ||
17600 | |||
17601 | #include <sys/types.h> | ||
17602 | #include <netinet/in.h> | ||
17603 | #include <arpa/nameser.h> | ||
17604 | #include <netdb.h> | ||
17605 | #include <resolv.h> | ||
17606 | |||
17607 | int | ||
17608 | main () | ||
17609 | { | ||
17610 | |||
17611 | res_query (0, 0, 0, 0, 0); | ||
17612 | |||
17613 | ; | ||
17614 | return 0; | ||
17615 | } | ||
17616 | _ACEOF | ||
17617 | if ac_fn_c_try_link "$LINENO"; then : | ||
17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17619 | $as_echo "yes" >&6; } | ||
17620 | else | ||
17621 | LIBS="$saved_LIBS" | ||
17622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17623 | $as_echo "no" >&6; } | ||
17624 | fi | ||
17625 | rm -f core conftest.err conftest.$ac_objext \ | ||
17626 | conftest$ac_exeext conftest.$ac_ext | ||
17627 | |||
17628 | fi | ||
17629 | rm -f core conftest.err conftest.$ac_objext \ | ||
17630 | conftest$ac_exeext conftest.$ac_ext | ||
17631 | for ac_func in _getshort _getlong | ||
17632 | do : | ||
17633 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17634 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17635 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17636 | cat >>confdefs.h <<_ACEOF | ||
17637 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17638 | _ACEOF | ||
17639 | |||
17640 | fi | ||
17641 | done | ||
17642 | |||
17643 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
17644 | #include <arpa/nameser.h> | ||
17645 | " | ||
17646 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
17647 | ac_have_decl=1 | ||
17648 | else | ||
17649 | ac_have_decl=0 | ||
17650 | fi | ||
17651 | |||
17652 | cat >>confdefs.h <<_ACEOF | ||
17653 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
17654 | _ACEOF | ||
17655 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
17656 | #include <arpa/nameser.h> | ||
17657 | " | ||
17658 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
17659 | ac_have_decl=1 | ||
17660 | else | ||
17661 | ac_have_decl=0 | ||
17662 | fi | ||
17663 | |||
17664 | cat >>confdefs.h <<_ACEOF | ||
17665 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
17666 | _ACEOF | ||
17667 | |||
17668 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
17669 | " | ||
17670 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
17671 | |||
17672 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
17673 | |||
17674 | fi | ||
17675 | |||
17676 | |||
17677 | fi | ||
17678 | |||
17679 | |||
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
17681 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
17682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17683 | /* end confdefs.h. */ | ||
17684 | |||
17685 | #include <stdio.h> | ||
17686 | #if HAVE_SYS_TYPES_H | ||
17687 | # include <sys/types.h> | ||
17688 | #endif | ||
17689 | #include <netinet/in.h> | ||
17690 | #include <arpa/nameser.h> | ||
17691 | #include <resolv.h> | ||
17692 | extern struct __res_state _res; | ||
17693 | |||
17694 | int | ||
17695 | main () | ||
17696 | { | ||
17697 | |||
17698 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
17699 | return 0; | ||
17700 | |||
17701 | ; | ||
17702 | return 0; | ||
17703 | } | ||
17704 | _ACEOF | ||
17705 | if ac_fn_c_try_link "$LINENO"; then : | ||
17706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17707 | $as_echo "yes" >&6; } | ||
17708 | |||
17709 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
17710 | |||
17711 | |||
17712 | else | ||
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17714 | $as_echo "no" >&6; } | ||
17715 | |||
17716 | fi | ||
17717 | rm -f core conftest.err conftest.$ac_objext \ | ||
17718 | conftest$ac_exeext conftest.$ac_ext | ||
17719 | |||
17720 | # Check whether user wants SELinux support | ||
17721 | SELINUX_MSG="no" | ||
17722 | LIBSELINUX="" | ||
17723 | |||
17724 | # Check whether --with-selinux was given. | ||
17725 | if test "${with_selinux+set}" = set; then : | ||
17726 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
17727 | save_LIBS="$LIBS" | ||
17728 | |||
17729 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
17730 | |||
17731 | SELINUX_MSG="yes" | ||
17732 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
17733 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
17734 | |||
17735 | else | ||
17736 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
17737 | fi | ||
17738 | |||
17739 | |||
17740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
17741 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
17742 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
17743 | $as_echo_n "(cached) " >&6 | ||
17744 | else | ||
17745 | ac_check_lib_save_LIBS=$LIBS | ||
17746 | LIBS="-lselinux $LIBS" | ||
17747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17748 | /* end confdefs.h. */ | ||
17749 | |||
17750 | /* Override any GCC internal prototype to avoid an error. | ||
17751 | Use char because int might match the return type of a GCC | ||
17752 | builtin and then its argument prototype would still apply. */ | ||
17753 | #ifdef __cplusplus | ||
17754 | extern "C" | ||
17755 | #endif | ||
17756 | char setexeccon (); | ||
17757 | int | ||
17758 | main () | ||
17759 | { | ||
17760 | return setexeccon (); | ||
17761 | ; | ||
17762 | return 0; | ||
17763 | } | ||
17764 | _ACEOF | ||
17765 | if ac_fn_c_try_link "$LINENO"; then : | ||
17766 | ac_cv_lib_selinux_setexeccon=yes | ||
17767 | else | ||
17768 | ac_cv_lib_selinux_setexeccon=no | ||
17769 | fi | ||
17770 | rm -f core conftest.err conftest.$ac_objext \ | ||
17771 | conftest$ac_exeext conftest.$ac_ext | ||
17772 | LIBS=$ac_check_lib_save_LIBS | ||
17773 | fi | ||
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
17775 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
17776 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
17777 | LIBSELINUX="-lselinux" | ||
17778 | LIBS="$LIBS -lselinux" | ||
17779 | |||
17780 | else | ||
17781 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
17782 | fi | ||
17783 | |||
17784 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
17785 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
17786 | for ac_func in getseuserbyname get_default_context_with_level | ||
17787 | do : | ||
17788 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17789 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17790 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17791 | cat >>confdefs.h <<_ACEOF | ||
17792 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17793 | _ACEOF | ||
17794 | |||
17795 | fi | ||
17796 | done | ||
17797 | |||
17798 | LIBS="$save_LIBS" | ||
17799 | fi | ||
17800 | |||
17801 | fi | ||
17802 | |||
17803 | |||
17804 | |||
17805 | |||
17806 | # Check whether user wants Kerberos 5 support | ||
17807 | KRB5_MSG="no" | ||
17808 | |||
17809 | # Check whether --with-kerberos5 was given. | ||
17810 | if test "${with_kerberos5+set}" = set; then : | ||
17811 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
17812 | if test "x$withval" = "xyes" ; then | ||
17813 | KRB5ROOT="/usr/local" | ||
17814 | else | ||
17815 | KRB5ROOT=${withval} | ||
17816 | fi | ||
17817 | |||
17818 | |||
17819 | $as_echo "#define KRB5 1" >>confdefs.h | ||
17820 | |||
17821 | KRB5_MSG="yes" | ||
17822 | |||
17823 | if test -n "$ac_tool_prefix"; then | ||
17824 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | ||
17825 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | ||
17826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17827 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17828 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
17829 | $as_echo_n "(cached) " >&6 | ||
17830 | else | ||
17831 | case $KRB5CONF in | ||
17832 | [\\/]* | ?:[\\/]*) | ||
17833 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
17834 | ;; | ||
17835 | *) | ||
17836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17837 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17838 | for as_dir in $as_dummy | ||
17839 | do | ||
17840 | IFS=$as_save_IFS | ||
17841 | test -z "$as_dir" && as_dir=. | ||
17842 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17844 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17846 | break 2 | ||
17847 | fi | ||
17848 | done | ||
17849 | done | ||
17850 | IFS=$as_save_IFS | ||
17851 | |||
17852 | ;; | ||
17853 | esac | ||
17854 | fi | ||
17855 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
17856 | if test -n "$KRB5CONF"; then | ||
17857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
17858 | $as_echo "$KRB5CONF" >&6; } | ||
17859 | else | ||
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17861 | $as_echo "no" >&6; } | ||
17862 | fi | ||
17863 | |||
17864 | |||
17865 | fi | ||
17866 | if test -z "$ac_cv_path_KRB5CONF"; then | ||
17867 | ac_pt_KRB5CONF=$KRB5CONF | ||
17868 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
17869 | set dummy krb5-config; ac_word=$2 | ||
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17871 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17872 | if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : | ||
17873 | $as_echo_n "(cached) " >&6 | ||
17874 | else | ||
17875 | case $ac_pt_KRB5CONF in | ||
17876 | [\\/]* | ?:[\\/]*) | ||
17877 | ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. | ||
17878 | ;; | ||
17879 | *) | ||
17880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17881 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17882 | for as_dir in $as_dummy | ||
17883 | do | ||
17884 | IFS=$as_save_IFS | ||
17885 | test -z "$as_dir" && as_dir=. | ||
17886 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17888 | ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17890 | break 2 | ||
17891 | fi | ||
17892 | done | ||
17893 | done | ||
17894 | IFS=$as_save_IFS | ||
17895 | |||
17896 | ;; | ||
17897 | esac | ||
17898 | fi | ||
17899 | ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF | ||
17900 | if test -n "$ac_pt_KRB5CONF"; then | ||
17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 | ||
17902 | $as_echo "$ac_pt_KRB5CONF" >&6; } | ||
17903 | else | ||
17904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17905 | $as_echo "no" >&6; } | ||
17906 | fi | ||
17907 | |||
17908 | if test "x$ac_pt_KRB5CONF" = x; then | ||
17909 | KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
17910 | else | ||
17911 | case $cross_compiling:$ac_tool_warned in | ||
17912 | yes:) | ||
17913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17915 | ac_tool_warned=yes ;; | ||
17916 | esac | ||
17917 | KRB5CONF=$ac_pt_KRB5CONF | ||
17918 | fi | ||
17919 | else | ||
17920 | KRB5CONF="$ac_cv_path_KRB5CONF" | ||
17921 | fi | ||
17922 | |||
17923 | if test -x $KRB5CONF ; then | ||
17924 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
17925 | K5LIBS="`$KRB5CONF --libs`" | ||
17926 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
17927 | |||
17928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
17929 | $as_echo_n "checking for gssapi support... " >&6; } | ||
17930 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17932 | $as_echo "yes" >&6; } | ||
17933 | |||
17934 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17935 | |||
17936 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
17937 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
17938 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
17939 | else | ||
17940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17941 | $as_echo "no" >&6; } | ||
17942 | fi | ||
17943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17944 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17946 | /* end confdefs.h. */ | ||
17947 | #include <krb5.h> | ||
17948 | |||
17949 | int | ||
17950 | main () | ||
17951 | { | ||
17952 | char *tmp = heimdal_version; | ||
17953 | ; | ||
17954 | return 0; | ||
17955 | } | ||
17956 | _ACEOF | ||
17957 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17959 | $as_echo "yes" >&6; } | ||
17960 | |||
17961 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17962 | |||
17963 | else | ||
17964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17965 | $as_echo "no" >&6; } | ||
17966 | |||
17967 | fi | ||
17968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17969 | else | ||
17970 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
17971 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17973 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17975 | /* end confdefs.h. */ | ||
17976 | #include <krb5.h> | ||
17977 | |||
17978 | int | ||
17979 | main () | ||
17980 | { | ||
17981 | char *tmp = heimdal_version; | ||
17982 | ; | ||
17983 | return 0; | ||
17984 | } | ||
17985 | _ACEOF | ||
17986 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17988 | $as_echo "yes" >&6; } | ||
17989 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17990 | |||
17991 | K5LIBS="-lkrb5" | ||
17992 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
17993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
17994 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
17995 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
17996 | $as_echo_n "(cached) " >&6 | ||
17997 | else | ||
17998 | ac_check_lib_save_LIBS=$LIBS | ||
17999 | LIBS="-lroken $LIBS" | ||
18000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18001 | /* end confdefs.h. */ | ||
18002 | |||
18003 | /* Override any GCC internal prototype to avoid an error. | ||
18004 | Use char because int might match the return type of a GCC | ||
18005 | builtin and then its argument prototype would still apply. */ | ||
18006 | #ifdef __cplusplus | ||
18007 | extern "C" | ||
18008 | #endif | ||
18009 | char net_write (); | ||
18010 | int | ||
18011 | main () | ||
18012 | { | ||
18013 | return net_write (); | ||
18014 | ; | ||
18015 | return 0; | ||
18016 | } | ||
18017 | _ACEOF | ||
18018 | if ac_fn_c_try_link "$LINENO"; then : | ||
18019 | ac_cv_lib_roken_net_write=yes | ||
18020 | else | ||
18021 | ac_cv_lib_roken_net_write=no | ||
18022 | fi | ||
18023 | rm -f core conftest.err conftest.$ac_objext \ | ||
18024 | conftest$ac_exeext conftest.$ac_ext | ||
18025 | LIBS=$ac_check_lib_save_LIBS | ||
18026 | fi | ||
18027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
18028 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
18029 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
18030 | K5LIBS="$K5LIBS -lroken" | ||
18031 | fi | ||
18032 | |||
18033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
18034 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
18035 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
18036 | $as_echo_n "(cached) " >&6 | ||
18037 | else | ||
18038 | ac_check_lib_save_LIBS=$LIBS | ||
18039 | LIBS="-ldes $LIBS" | ||
18040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18041 | /* end confdefs.h. */ | ||
18042 | |||
18043 | /* Override any GCC internal prototype to avoid an error. | ||
18044 | Use char because int might match the return type of a GCC | ||
18045 | builtin and then its argument prototype would still apply. */ | ||
18046 | #ifdef __cplusplus | ||
18047 | extern "C" | ||
18048 | #endif | ||
18049 | char des_cbc_encrypt (); | ||
18050 | int | ||
18051 | main () | ||
18052 | { | ||
18053 | return des_cbc_encrypt (); | ||
18054 | ; | ||
18055 | return 0; | ||
18056 | } | ||
18057 | _ACEOF | ||
18058 | if ac_fn_c_try_link "$LINENO"; then : | ||
18059 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
18060 | else | ||
18061 | ac_cv_lib_des_des_cbc_encrypt=no | ||
18062 | fi | ||
18063 | rm -f core conftest.err conftest.$ac_objext \ | ||
18064 | conftest$ac_exeext conftest.$ac_ext | ||
18065 | LIBS=$ac_check_lib_save_LIBS | ||
18066 | fi | ||
18067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
18068 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
18069 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
18070 | K5LIBS="$K5LIBS -ldes" | ||
18071 | fi | ||
18072 | |||
18073 | |||
18074 | else | ||
18075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18076 | $as_echo "no" >&6; } | ||
18077 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
18078 | |||
18079 | fi | ||
18080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
18082 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
18083 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18084 | $as_echo_n "(cached) " >&6 | ||
18085 | else | ||
18086 | ac_func_search_save_LIBS=$LIBS | ||
18087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18088 | /* end confdefs.h. */ | ||
18089 | |||
18090 | /* Override any GCC internal prototype to avoid an error. | ||
18091 | Use char because int might match the return type of a GCC | ||
18092 | builtin and then its argument prototype would still apply. */ | ||
18093 | #ifdef __cplusplus | ||
18094 | extern "C" | ||
18095 | #endif | ||
18096 | char dn_expand (); | ||
18097 | int | ||
18098 | main () | ||
18099 | { | ||
18100 | return dn_expand (); | ||
18101 | ; | ||
18102 | return 0; | ||
18103 | } | ||
18104 | _ACEOF | ||
18105 | for ac_lib in '' resolv; do | ||
18106 | if test -z "$ac_lib"; then | ||
18107 | ac_res="none required" | ||
18108 | else | ||
18109 | ac_res=-l$ac_lib | ||
18110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
18111 | fi | ||
18112 | if ac_fn_c_try_link "$LINENO"; then : | ||
18113 | ac_cv_search_dn_expand=$ac_res | ||
18114 | fi | ||
18115 | rm -f core conftest.err conftest.$ac_objext \ | ||
18116 | conftest$ac_exeext | ||
18117 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18118 | break | ||
18119 | fi | ||
18120 | done | ||
18121 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18122 | |||
18123 | else | ||
18124 | ac_cv_search_dn_expand=no | ||
18125 | fi | ||
18126 | rm conftest.$ac_ext | ||
18127 | LIBS=$ac_func_search_save_LIBS | ||
18128 | fi | ||
18129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
18130 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
18131 | ac_res=$ac_cv_search_dn_expand | ||
18132 | if test "$ac_res" != no; then : | ||
18133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
18134 | |||
18135 | fi | ||
18136 | |||
18137 | |||
18138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
18139 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
18140 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
18141 | $as_echo_n "(cached) " >&6 | ||
18142 | else | ||
18143 | ac_check_lib_save_LIBS=$LIBS | ||
18144 | LIBS="-lgssapi_krb5 $LIBS" | ||
18145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18146 | /* end confdefs.h. */ | ||
18147 | |||
18148 | /* Override any GCC internal prototype to avoid an error. | ||
18149 | Use char because int might match the return type of a GCC | ||
18150 | builtin and then its argument prototype would still apply. */ | ||
18151 | #ifdef __cplusplus | ||
18152 | extern "C" | ||
18153 | #endif | ||
18154 | char gss_init_sec_context (); | ||
18155 | int | ||
18156 | main () | ||
18157 | { | ||
18158 | return gss_init_sec_context (); | ||
18159 | ; | ||
18160 | return 0; | ||
18161 | } | ||
18162 | _ACEOF | ||
18163 | if ac_fn_c_try_link "$LINENO"; then : | ||
18164 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
18165 | else | ||
18166 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
18167 | fi | ||
18168 | rm -f core conftest.err conftest.$ac_objext \ | ||
18169 | conftest$ac_exeext conftest.$ac_ext | ||
18170 | LIBS=$ac_check_lib_save_LIBS | ||
18171 | fi | ||
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
18173 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
18174 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
18175 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18176 | |||
18177 | GSSLIBS="-lgssapi_krb5" | ||
18178 | else | ||
18179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
18180 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
18181 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
18182 | $as_echo_n "(cached) " >&6 | ||
18183 | else | ||
18184 | ac_check_lib_save_LIBS=$LIBS | ||
18185 | LIBS="-lgssapi $LIBS" | ||
18186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18187 | /* end confdefs.h. */ | ||
18188 | |||
18189 | /* Override any GCC internal prototype to avoid an error. | ||
18190 | Use char because int might match the return type of a GCC | ||
18191 | builtin and then its argument prototype would still apply. */ | ||
18192 | #ifdef __cplusplus | ||
18193 | extern "C" | ||
18194 | #endif | ||
18195 | char gss_init_sec_context (); | ||
18196 | int | ||
18197 | main () | ||
18198 | { | ||
18199 | return gss_init_sec_context (); | ||
18200 | ; | ||
18201 | return 0; | ||
18202 | } | ||
18203 | _ACEOF | ||
18204 | if ac_fn_c_try_link "$LINENO"; then : | ||
18205 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
18206 | else | ||
18207 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
18208 | fi | ||
18209 | rm -f core conftest.err conftest.$ac_objext \ | ||
18210 | conftest$ac_exeext conftest.$ac_ext | ||
18211 | LIBS=$ac_check_lib_save_LIBS | ||
18212 | fi | ||
18213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
18214 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
18215 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
18216 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18217 | |||
18218 | GSSLIBS="-lgssapi" | ||
18219 | else | ||
18220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
18221 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
18222 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
18223 | $as_echo_n "(cached) " >&6 | ||
18224 | else | ||
18225 | ac_check_lib_save_LIBS=$LIBS | ||
18226 | LIBS="-lgss $LIBS" | ||
18227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18228 | /* end confdefs.h. */ | ||
18229 | |||
18230 | /* Override any GCC internal prototype to avoid an error. | ||
18231 | Use char because int might match the return type of a GCC | ||
18232 | builtin and then its argument prototype would still apply. */ | ||
18233 | #ifdef __cplusplus | ||
18234 | extern "C" | ||
18235 | #endif | ||
18236 | char gss_init_sec_context (); | ||
18237 | int | ||
18238 | main () | ||
18239 | { | ||
18240 | return gss_init_sec_context (); | ||
18241 | ; | ||
18242 | return 0; | ||
18243 | } | ||
18244 | _ACEOF | ||
18245 | if ac_fn_c_try_link "$LINENO"; then : | ||
18246 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
18247 | else | ||
18248 | ac_cv_lib_gss_gss_init_sec_context=no | ||
18249 | fi | ||
18250 | rm -f core conftest.err conftest.$ac_objext \ | ||
18251 | conftest$ac_exeext conftest.$ac_ext | ||
18252 | LIBS=$ac_check_lib_save_LIBS | ||
18253 | fi | ||
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
18255 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
18256 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
18257 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18258 | |||
18259 | GSSLIBS="-lgss" | ||
18260 | else | ||
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
18262 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
18263 | fi | ||
18264 | |||
18265 | |||
18266 | fi | ||
18267 | |||
18268 | |||
18269 | fi | ||
18270 | |||
18271 | |||
18272 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
18273 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
18274 | |||
18275 | else | ||
18276 | unset ac_cv_header_gssapi_h | ||
18277 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
18278 | for ac_header in gssapi.h | ||
18279 | do : | ||
18280 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
18281 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
18282 | cat >>confdefs.h <<_ACEOF | ||
18283 | #define HAVE_GSSAPI_H 1 | ||
18284 | _ACEOF | ||
18285 | |||
18286 | else | ||
18287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
18288 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
18289 | |||
18290 | fi | ||
18291 | |||
18292 | done | ||
18293 | |||
18294 | |||
18295 | |||
18296 | fi | ||
18297 | |||
18298 | |||
18299 | |||
18300 | oldCPP="$CPPFLAGS" | ||
18301 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
18302 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
18303 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
18304 | |||
18305 | else | ||
18306 | CPPFLAGS="$oldCPP" | ||
18307 | fi | ||
18308 | |||
18309 | |||
18310 | |||
18311 | fi | ||
18312 | if test ! -z "$need_dash_r" ; then | ||
18313 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
18314 | fi | ||
18315 | if test ! -z "$blibpath" ; then | ||
18316 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
18317 | fi | ||
18318 | |||
18319 | for ac_header in gssapi.h gssapi/gssapi.h | ||
18320 | do : | ||
18321 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18322 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18323 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18324 | cat >>confdefs.h <<_ACEOF | ||
18325 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18326 | _ACEOF | ||
18327 | |||
18328 | fi | ||
18329 | |||
18330 | done | ||
18331 | |||
18332 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
18333 | do : | ||
18334 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18335 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18336 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18337 | cat >>confdefs.h <<_ACEOF | ||
18338 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18339 | _ACEOF | ||
18340 | |||
18341 | fi | ||
18342 | |||
18343 | done | ||
18344 | |||
18345 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
18346 | do : | ||
18347 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18348 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18349 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18350 | cat >>confdefs.h <<_ACEOF | ||
18351 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18352 | _ACEOF | ||
18353 | |||
18354 | fi | ||
18355 | |||
18356 | done | ||
18357 | |||
18358 | |||
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
18360 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
18361 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18362 | $as_echo_n "(cached) " >&6 | ||
18363 | else | ||
18364 | ac_func_search_save_LIBS=$LIBS | ||
18365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18366 | /* end confdefs.h. */ | ||
18367 | |||
18368 | /* Override any GCC internal prototype to avoid an error. | ||
18369 | Use char because int might match the return type of a GCC | ||
18370 | builtin and then its argument prototype would still apply. */ | ||
18371 | #ifdef __cplusplus | ||
18372 | extern "C" | ||
18373 | #endif | ||
18374 | char k_hasafs (); | ||
18375 | int | ||
18376 | main () | ||
18377 | { | ||
18378 | return k_hasafs (); | ||
18379 | ; | ||
18380 | return 0; | ||
18381 | } | ||
18382 | _ACEOF | ||
18383 | for ac_lib in '' kafs; do | ||
18384 | if test -z "$ac_lib"; then | ||
18385 | ac_res="none required" | ||
18386 | else | ||
18387 | ac_res=-l$ac_lib | ||
18388 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
18389 | fi | ||
18390 | if ac_fn_c_try_link "$LINENO"; then : | ||
18391 | ac_cv_search_k_hasafs=$ac_res | ||
18392 | fi | ||
18393 | rm -f core conftest.err conftest.$ac_objext \ | ||
18394 | conftest$ac_exeext | ||
18395 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18396 | break | ||
18397 | fi | ||
18398 | done | ||
18399 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18400 | |||
18401 | else | ||
18402 | ac_cv_search_k_hasafs=no | ||
18403 | fi | ||
18404 | rm conftest.$ac_ext | ||
18405 | LIBS=$ac_func_search_save_LIBS | ||
18406 | fi | ||
18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
18408 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
18409 | ac_res=$ac_cv_search_k_hasafs | ||
18410 | if test "$ac_res" != no; then : | ||
18411 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
18412 | |||
18413 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
18414 | |||
18415 | fi | ||
18416 | |||
18417 | |||
18418 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
18419 | #ifdef HAVE_GSSAPI_H | ||
18420 | # include <gssapi.h> | ||
18421 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
18422 | # include <gssapi/gssapi.h> | ||
18423 | #endif | ||
18424 | |||
18425 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
18426 | # include <gssapi_generic.h> | ||
18427 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
18428 | # include <gssapi/gssapi_generic.h> | ||
18429 | #endif | ||
18430 | |||
18431 | " | ||
18432 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
18433 | ac_have_decl=1 | ||
18434 | else | ||
18435 | ac_have_decl=0 | ||
18436 | fi | ||
18437 | |||
18438 | cat >>confdefs.h <<_ACEOF | ||
18439 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
18440 | _ACEOF | ||
18441 | |||
18442 | saved_LIBS="$LIBS" | ||
18443 | LIBS="$LIBS $K5LIBS" | ||
18444 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
18445 | do : | ||
18446 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18447 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
18448 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
18449 | cat >>confdefs.h <<_ACEOF | ||
18450 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18451 | _ACEOF | ||
18452 | |||
18453 | fi | ||
18454 | done | ||
18455 | |||
18456 | LIBS="$saved_LIBS" | ||
18457 | |||
18458 | fi | ||
18459 | |||
18460 | |||
18461 | fi | ||
18462 | |||
18463 | |||
18464 | |||
18465 | |||
18466 | # Looking for programs, paths and files | ||
18467 | |||
18468 | PRIVSEP_PATH=/var/empty | ||
18469 | |||
18470 | # Check whether --with-privsep-path was given. | ||
18471 | if test "${with_privsep_path+set}" = set; then : | ||
18472 | withval=$with_privsep_path; | ||
18473 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18474 | test "x${withval}" != "xyes"; then | ||
18475 | PRIVSEP_PATH=$withval | ||
18476 | fi | ||
18477 | |||
18478 | |||
18479 | fi | ||
18480 | |||
18481 | |||
18482 | |||
18483 | |||
18484 | # Check whether --with-xauth was given. | ||
18485 | if test "${with_xauth+set}" = set; then : | ||
18486 | withval=$with_xauth; | ||
18487 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18488 | test "x${withval}" != "xyes"; then | ||
18489 | xauth_path=$withval | ||
18490 | fi | ||
18491 | |||
18492 | else | ||
18493 | |||
18494 | TestPath="$PATH" | ||
18495 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
18496 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
18497 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
18498 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
18499 | # Extract the first word of "xauth", so it can be a program name with args. | ||
18500 | set dummy xauth; ac_word=$2 | ||
18501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18502 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18503 | if ${ac_cv_path_xauth_path+:} false; then : | ||
18504 | $as_echo_n "(cached) " >&6 | ||
18505 | else | ||
18506 | case $xauth_path in | ||
18507 | [\\/]* | ?:[\\/]*) | ||
18508 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
18509 | ;; | ||
18510 | *) | ||
18511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18512 | for as_dir in $TestPath | ||
18513 | do | ||
18514 | IFS=$as_save_IFS | ||
18515 | test -z "$as_dir" && as_dir=. | ||
18516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18518 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
18519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18520 | break 2 | ||
18521 | fi | ||
18522 | done | ||
18523 | done | ||
18524 | IFS=$as_save_IFS | ||
18525 | |||
18526 | ;; | ||
18527 | esac | ||
18528 | fi | ||
18529 | xauth_path=$ac_cv_path_xauth_path | ||
18530 | if test -n "$xauth_path"; then | ||
18531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
18532 | $as_echo "$xauth_path" >&6; } | ||
18533 | else | ||
18534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18535 | $as_echo "no" >&6; } | ||
18536 | fi | ||
18537 | |||
18538 | |||
18539 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
18540 | xauth_path="/usr/openwin/bin/xauth" | ||
18541 | fi | ||
18542 | |||
18543 | |||
18544 | fi | ||
18545 | |||
18546 | |||
18547 | STRIP_OPT=-s | ||
18548 | # Check whether --enable-strip was given. | ||
18549 | if test "${enable_strip+set}" = set; then : | ||
18550 | enableval=$enable_strip; | ||
18551 | if test "x$enableval" = "xno" ; then | ||
18552 | STRIP_OPT= | ||
18553 | fi | ||
18554 | |||
18555 | |||
18556 | fi | ||
18557 | |||
18558 | |||
18559 | |||
18560 | if test -z "$xauth_path" ; then | ||
18561 | XAUTH_PATH="undefined" | ||
18562 | |||
18563 | else | ||
18564 | |||
18565 | cat >>confdefs.h <<_ACEOF | ||
18566 | #define XAUTH_PATH "$xauth_path" | ||
18567 | _ACEOF | ||
18568 | |||
18569 | XAUTH_PATH=$xauth_path | ||
18570 | |||
18571 | fi | ||
18572 | |||
18573 | # Check for mail directory | ||
18574 | |||
18575 | # Check whether --with-maildir was given. | ||
18576 | if test "${with_maildir+set}" = set; then : | ||
18577 | withval=$with_maildir; | ||
18578 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
18579 | test "x${withval}" != xyes; then | ||
18580 | |||
18581 | cat >>confdefs.h <<_ACEOF | ||
18582 | #define MAIL_DIRECTORY "$withval" | ||
18583 | _ACEOF | ||
18584 | |||
18585 | fi | ||
18586 | |||
18587 | else | ||
18588 | |||
18589 | if test "X$maildir" != "X"; then | ||
18590 | cat >>confdefs.h <<_ACEOF | ||
18591 | #define MAIL_DIRECTORY "$maildir" | ||
18592 | _ACEOF | ||
18593 | |||
18594 | else | ||
18595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
18596 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
18597 | if test "$cross_compiling" = yes; then : | ||
18598 | |||
18599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
18600 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
18601 | |||
18602 | |||
18603 | else | ||
18604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18605 | /* end confdefs.h. */ | ||
18606 | |||
18607 | #include <stdio.h> | ||
18608 | #include <string.h> | ||
18609 | #ifdef HAVE_PATHS_H | ||
18610 | #include <paths.h> | ||
18611 | #endif | ||
18612 | #ifdef HAVE_MAILLOCK_H | ||
18613 | #include <maillock.h> | ||
18614 | #endif | ||
18615 | #define DATA "conftest.maildir" | ||
18616 | |||
18617 | int | ||
18618 | main () | ||
18619 | { | ||
18620 | |||
18621 | FILE *fd; | ||
18622 | int rc; | ||
18623 | |||
18624 | fd = fopen(DATA,"w"); | ||
18625 | if(fd == NULL) | ||
18626 | exit(1); | ||
18627 | |||
18628 | #if defined (_PATH_MAILDIR) | ||
18629 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
18630 | exit(1); | ||
18631 | #elif defined (MAILDIR) | ||
18632 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
18633 | exit(1); | ||
18634 | #elif defined (_PATH_MAIL) | ||
18635 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
18636 | exit(1); | ||
18637 | #else | ||
18638 | exit (2); | ||
18639 | #endif | ||
18640 | |||
18641 | exit(0); | ||
18642 | |||
18643 | ; | ||
18644 | return 0; | ||
18645 | } | ||
18646 | _ACEOF | ||
18647 | if ac_fn_c_try_run "$LINENO"; then : | ||
18648 | |||
18649 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
18650 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
18651 | | sed 's|/$||'` | ||
18652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
18653 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
18654 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
18655 | cat >>confdefs.h <<_ACEOF | ||
18656 | #define MAIL_DIRECTORY "$maildir" | ||
18657 | _ACEOF | ||
18658 | |||
18659 | fi | ||
18660 | |||
18661 | else | ||
18662 | |||
18663 | if test "X$ac_status" = "X2";then | ||
18664 | # our test program didn't find it. Default to /var/spool/mail | ||
18665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
18666 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
18667 | cat >>confdefs.h <<_ACEOF | ||
18668 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
18669 | _ACEOF | ||
18670 | |||
18671 | else | ||
18672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
18673 | $as_echo "*** not found ***" >&6; } | ||
18674 | fi | ||
18675 | |||
18676 | fi | ||
18677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18678 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18679 | fi | ||
18680 | |||
18681 | fi | ||
18682 | |||
18683 | |||
18684 | fi | ||
18685 | # maildir | ||
18686 | |||
18687 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
18688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
18689 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
18690 | disable_ptmx_check=yes | ||
18691 | fi | ||
18692 | if test -z "$no_dev_ptmx" ; then | ||
18693 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
18694 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
18695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
18696 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
18697 | if eval \${$as_ac_File+:} false; then : | ||
18698 | $as_echo_n "(cached) " >&6 | ||
18699 | else | ||
18700 | test "$cross_compiling" = yes && | ||
18701 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18702 | if test -r ""/dev/ptmx""; then | ||
18703 | eval "$as_ac_File=yes" | ||
18704 | else | ||
18705 | eval "$as_ac_File=no" | ||
18706 | fi | ||
18707 | fi | ||
18708 | eval ac_res=\$$as_ac_File | ||
18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18710 | $as_echo "$ac_res" >&6; } | ||
18711 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18712 | |||
18713 | |||
18714 | cat >>confdefs.h <<_ACEOF | ||
18715 | #define HAVE_DEV_PTMX 1 | ||
18716 | _ACEOF | ||
18717 | |||
18718 | have_dev_ptmx=1 | ||
18719 | |||
18720 | |||
18721 | fi | ||
18722 | |||
18723 | fi | ||
18724 | fi | ||
18725 | |||
18726 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
18727 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
18729 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
18730 | if eval \${$as_ac_File+:} false; then : | ||
18731 | $as_echo_n "(cached) " >&6 | ||
18732 | else | ||
18733 | test "$cross_compiling" = yes && | ||
18734 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18735 | if test -r ""/dev/ptc""; then | ||
18736 | eval "$as_ac_File=yes" | ||
18737 | else | ||
18738 | eval "$as_ac_File=no" | ||
18739 | fi | ||
18740 | fi | ||
18741 | eval ac_res=\$$as_ac_File | ||
18742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18743 | $as_echo "$ac_res" >&6; } | ||
18744 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18745 | |||
18746 | |||
18747 | cat >>confdefs.h <<_ACEOF | ||
18748 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
18749 | _ACEOF | ||
18750 | |||
18751 | have_dev_ptc=1 | ||
18752 | |||
18753 | |||
18754 | fi | ||
18755 | |||
18756 | else | ||
18757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
18758 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
18759 | fi | ||
18760 | |||
18761 | # Options from here on. Some of these are preset by platform above | ||
18762 | |||
18763 | # Check whether --with-mantype was given. | ||
18764 | if test "${with_mantype+set}" = set; then : | ||
18765 | withval=$with_mantype; | ||
18766 | case "$withval" in | ||
18767 | man|cat|doc) | ||
18768 | MANTYPE=$withval | ||
18769 | ;; | ||
18770 | *) | ||
18771 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
18772 | ;; | ||
18773 | esac | ||
18774 | |||
18775 | |||
18776 | fi | ||
18777 | |||
18778 | if test -z "$MANTYPE"; then | ||
18779 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
18780 | for ac_prog in nroff awf | ||
18781 | do | ||
18782 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
18783 | set dummy $ac_prog; ac_word=$2 | ||
18784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18785 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18786 | if ${ac_cv_path_NROFF+:} false; then : | ||
18787 | $as_echo_n "(cached) " >&6 | ||
18788 | else | ||
18789 | case $NROFF in | ||
18790 | [\\/]* | ?:[\\/]*) | ||
18791 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
18792 | ;; | ||
18793 | *) | ||
18794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18795 | for as_dir in $TestPath | ||
18796 | do | ||
18797 | IFS=$as_save_IFS | ||
18798 | test -z "$as_dir" && as_dir=. | ||
18799 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18801 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
18802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18803 | break 2 | ||
18804 | fi | ||
18805 | done | ||
18806 | done | ||
18807 | IFS=$as_save_IFS | ||
18808 | |||
18809 | ;; | ||
18810 | esac | ||
18811 | fi | ||
18812 | NROFF=$ac_cv_path_NROFF | ||
18813 | if test -n "$NROFF"; then | ||
18814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
18815 | $as_echo "$NROFF" >&6; } | ||
18816 | else | ||
18817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18818 | $as_echo "no" >&6; } | ||
18819 | fi | ||
18820 | |||
18821 | |||
18822 | test -n "$NROFF" && break | ||
18823 | done | ||
18824 | test -n "$NROFF" || NROFF="/bin/false" | ||
18825 | |||
18826 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18827 | MANTYPE=doc | ||
18828 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18829 | MANTYPE=man | ||
18830 | else | ||
18831 | MANTYPE=cat | ||
18832 | fi | ||
18833 | fi | ||
18834 | |||
18835 | if test "$MANTYPE" = "doc"; then | ||
18836 | mansubdir=man; | ||
18837 | else | ||
18838 | mansubdir=$MANTYPE; | ||
18839 | fi | ||
18840 | |||
18841 | |||
18842 | # Check whether to enable MD5 passwords | ||
18843 | MD5_MSG="no" | ||
18844 | |||
18845 | # Check whether --with-md5-passwords was given. | ||
18846 | if test "${with_md5_passwords+set}" = set; then : | ||
18847 | withval=$with_md5_passwords; | ||
18848 | if test "x$withval" != "xno" ; then | ||
18849 | |||
18850 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
18851 | |||
18852 | MD5_MSG="yes" | ||
18853 | fi | ||
18854 | |||
18855 | |||
18856 | fi | ||
18857 | |||
18858 | |||
18859 | # Whether to disable shadow password support | ||
18860 | |||
18861 | # Check whether --with-shadow was given. | ||
18862 | if test "${with_shadow+set}" = set; then : | ||
18863 | withval=$with_shadow; | ||
18864 | if test "x$withval" = "xno" ; then | ||
18865 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
18866 | |||
18867 | disable_shadow=yes | ||
18868 | fi | ||
18869 | |||
18870 | |||
18871 | fi | ||
18872 | |||
18873 | |||
18874 | if test -z "$disable_shadow" ; then | ||
18875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
18876 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
18877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18878 | /* end confdefs.h. */ | ||
18879 | |||
18880 | #include <sys/types.h> | ||
18881 | #include <shadow.h> | ||
18882 | struct spwd sp; | ||
18883 | |||
18884 | int | ||
18885 | main () | ||
18886 | { | ||
18887 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
18888 | ; | ||
18889 | return 0; | ||
18890 | } | ||
18891 | _ACEOF | ||
18892 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18893 | sp_expire_available=yes | ||
18894 | fi | ||
18895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18896 | |||
18897 | if test "x$sp_expire_available" = "xyes" ; then | ||
18898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18899 | $as_echo "yes" >&6; } | ||
18900 | |||
18901 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
18902 | |||
18903 | else | ||
18904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18905 | $as_echo "no" >&6; } | ||
18906 | fi | ||
18907 | fi | ||
18908 | |||
18909 | # Use ip address instead of hostname in $DISPLAY | ||
18910 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
18911 | DISPLAY_HACK_MSG="yes" | ||
18912 | |||
18913 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18914 | |||
18915 | else | ||
18916 | DISPLAY_HACK_MSG="no" | ||
18917 | |||
18918 | # Check whether --with-ipaddr-display was given. | ||
18919 | if test "${with_ipaddr_display+set}" = set; then : | ||
18920 | withval=$with_ipaddr_display; | ||
18921 | if test "x$withval" != "xno" ; then | ||
18922 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18923 | |||
18924 | DISPLAY_HACK_MSG="yes" | ||
18925 | fi | ||
18926 | |||
18927 | |||
18928 | fi | ||
18929 | |||
18930 | fi | ||
18931 | |||
18932 | # check for /etc/default/login and use it if present. | ||
18933 | # Check whether --enable-etc-default-login was given. | ||
18934 | if test "${enable_etc_default_login+set}" = set; then : | ||
18935 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
18936 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
18937 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
18938 | etc_default_login=no | ||
18939 | else | ||
18940 | etc_default_login=yes | ||
18941 | fi | ||
18942 | else | ||
18943 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
18944 | then | ||
18945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
18946 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
18947 | etc_default_login=no | ||
18948 | else | ||
18949 | etc_default_login=yes | ||
18950 | fi | ||
18951 | |||
18952 | fi | ||
18953 | |||
18954 | |||
18955 | if test "x$etc_default_login" != "xno"; then | ||
18956 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
18957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
18958 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
18959 | if eval \${$as_ac_File+:} false; then : | ||
18960 | $as_echo_n "(cached) " >&6 | ||
18961 | else | ||
18962 | test "$cross_compiling" = yes && | ||
18963 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18964 | if test -r ""/etc/default/login""; then | ||
18965 | eval "$as_ac_File=yes" | ||
18966 | else | ||
18967 | eval "$as_ac_File=no" | ||
18968 | fi | ||
18969 | fi | ||
18970 | eval ac_res=\$$as_ac_File | ||
18971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18972 | $as_echo "$ac_res" >&6; } | ||
18973 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18974 | external_path_file=/etc/default/login | ||
18975 | fi | ||
18976 | |||
18977 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
18978 | |||
18979 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
18980 | |||
18981 | fi | ||
18982 | fi | ||
18983 | |||
18984 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
18985 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
18986 | external_path_file=/etc/login.conf | ||
18987 | fi | ||
18988 | |||
18989 | # Whether to mess with the default path | ||
18990 | SERVER_PATH_MSG="(default)" | ||
18991 | |||
18992 | # Check whether --with-default-path was given. | ||
18993 | if test "${with_default_path+set}" = set; then : | ||
18994 | withval=$with_default_path; | ||
18995 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18997 | --with-default-path=PATH has no effect on this system. | ||
18998 | Edit /etc/login.conf instead." >&5 | ||
18999 | $as_echo "$as_me: WARNING: | ||
19000 | --with-default-path=PATH has no effect on this system. | ||
19001 | Edit /etc/login.conf instead." >&2;} | ||
19002 | elif test "x$withval" != "xno" ; then | ||
19003 | if test ! -z "$external_path_file" ; then | ||
19004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
19005 | --with-default-path=PATH will only be used if PATH is not defined in | ||
19006 | $external_path_file ." >&5 | ||
19007 | $as_echo "$as_me: WARNING: | ||
19008 | --with-default-path=PATH will only be used if PATH is not defined in | ||
19009 | $external_path_file ." >&2;} | ||
19010 | fi | ||
19011 | user_path="$withval" | ||
19012 | SERVER_PATH_MSG="$withval" | ||
19013 | fi | ||
19014 | |||
19015 | else | ||
19016 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
19017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
19018 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
19019 | else | ||
19020 | if test ! -z "$external_path_file" ; then | ||
19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
19022 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
19023 | otherwise scp will not work." >&5 | ||
19024 | $as_echo "$as_me: WARNING: | ||
19025 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
19026 | otherwise scp will not work." >&2;} | ||
19027 | fi | ||
19028 | if test "$cross_compiling" = yes; then : | ||
19029 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
19030 | |||
19031 | else | ||
19032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19033 | /* end confdefs.h. */ | ||
19034 | |||
19035 | /* find out what STDPATH is */ | ||
19036 | #include <stdio.h> | ||
19037 | #ifdef HAVE_PATHS_H | ||
19038 | # include <paths.h> | ||
19039 | #endif | ||
19040 | #ifndef _PATH_STDPATH | ||
19041 | # ifdef _PATH_USERPATH /* Irix */ | ||
19042 | # define _PATH_STDPATH _PATH_USERPATH | ||
19043 | # else | ||
19044 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
19045 | # endif | ||
19046 | #endif | ||
19047 | #include <sys/types.h> | ||
19048 | #include <sys/stat.h> | ||
19049 | #include <fcntl.h> | ||
19050 | #define DATA "conftest.stdpath" | ||
19051 | |||
19052 | int | ||
19053 | main () | ||
19054 | { | ||
19055 | |||
19056 | FILE *fd; | ||
19057 | int rc; | ||
19058 | |||
19059 | fd = fopen(DATA,"w"); | ||
19060 | if(fd == NULL) | ||
19061 | exit(1); | ||
19062 | |||
19063 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
19064 | exit(1); | ||
19065 | |||
19066 | exit(0); | ||
19067 | |||
19068 | ; | ||
19069 | return 0; | ||
19070 | } | ||
19071 | _ACEOF | ||
19072 | if ac_fn_c_try_run "$LINENO"; then : | ||
19073 | user_path=`cat conftest.stdpath` | ||
19074 | else | ||
19075 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
19076 | fi | ||
19077 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19078 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19079 | fi | ||
19080 | |||
19081 | # make sure $bindir is in USER_PATH so scp will work | ||
19082 | t_bindir="${bindir}" | ||
19083 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
19084 | t_bindir=`eval echo ${t_bindir}` | ||
19085 | case $t_bindir in | ||
19086 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
19087 | esac | ||
19088 | case $t_bindir in | ||
19089 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
19090 | esac | ||
19091 | done | ||
19092 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
19093 | if test $? -ne 0 ; then | ||
19094 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
19095 | if test $? -ne 0 ; then | ||
19096 | user_path=$user_path:$t_bindir | ||
19097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
19098 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
19099 | fi | ||
19100 | fi | ||
19101 | fi | ||
19102 | |||
19103 | fi | ||
19104 | |||
19105 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
19106 | |||
19107 | cat >>confdefs.h <<_ACEOF | ||
19108 | #define USER_PATH "$user_path" | ||
19109 | _ACEOF | ||
19110 | |||
19111 | |||
19112 | fi | ||
19113 | |||
19114 | # Set superuser path separately to user path | ||
19115 | |||
19116 | # Check whether --with-superuser-path was given. | ||
19117 | if test "${with_superuser_path+set}" = set; then : | ||
19118 | withval=$with_superuser_path; | ||
19119 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19120 | test "x${withval}" != "xyes"; then | ||
19121 | |||
19122 | cat >>confdefs.h <<_ACEOF | ||
19123 | #define SUPERUSER_PATH "$withval" | ||
19124 | _ACEOF | ||
19125 | |||
19126 | superuser_path=$withval | ||
19127 | fi | ||
19128 | |||
19129 | |||
19130 | fi | ||
19131 | |||
19132 | |||
19133 | |||
19134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
19135 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
19136 | IPV4_IN6_HACK_MSG="no" | ||
19137 | |||
19138 | # Check whether --with-4in6 was given. | ||
19139 | if test "${with_4in6+set}" = set; then : | ||
19140 | withval=$with_4in6; | ||
19141 | if test "x$withval" != "xno" ; then | ||
19142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19143 | $as_echo "yes" >&6; } | ||
19144 | |||
19145 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
19146 | |||
19147 | IPV4_IN6_HACK_MSG="yes" | ||
19148 | else | ||
19149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19150 | $as_echo "no" >&6; } | ||
19151 | fi | ||
19152 | |||
19153 | else | ||
19154 | |||
19155 | if test "x$inet6_default_4in6" = "xyes"; then | ||
19156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
19157 | $as_echo "yes (default)" >&6; } | ||
19158 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
19159 | |||
19160 | IPV4_IN6_HACK_MSG="yes" | ||
19161 | else | ||
19162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
19163 | $as_echo "no (default)" >&6; } | ||
19164 | fi | ||
19165 | |||
19166 | |||
19167 | fi | ||
19168 | |||
19169 | |||
19170 | # Whether to enable BSD auth support | ||
19171 | BSD_AUTH_MSG=no | ||
19172 | |||
19173 | # Check whether --with-bsd-auth was given. | ||
19174 | if test "${with_bsd_auth+set}" = set; then : | ||
19175 | withval=$with_bsd_auth; | ||
19176 | if test "x$withval" != "xno" ; then | ||
19177 | |||
19178 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
19179 | |||
19180 | BSD_AUTH_MSG=yes | ||
19181 | fi | ||
19182 | |||
19183 | |||
19184 | fi | ||
19185 | |||
19186 | |||
19187 | # Where to place sshd.pid | ||
19188 | piddir=/var/run | ||
19189 | # make sure the directory exists | ||
19190 | if test ! -d $piddir ; then | ||
19191 | piddir=`eval echo ${sysconfdir}` | ||
19192 | case $piddir in | ||
19193 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
19194 | esac | ||
19195 | fi | ||
19196 | |||
19197 | |||
19198 | # Check whether --with-pid-dir was given. | ||
19199 | if test "${with_pid_dir+set}" = set; then : | ||
19200 | withval=$with_pid_dir; | ||
19201 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19202 | test "x${withval}" != "xyes"; then | ||
19203 | piddir=$withval | ||
19204 | if test ! -d $piddir ; then | ||
19205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
19206 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
19207 | fi | ||
19208 | fi | ||
19209 | |||
19210 | |||
19211 | fi | ||
19212 | |||
19213 | |||
19214 | |||
19215 | cat >>confdefs.h <<_ACEOF | ||
19216 | #define _PATH_SSH_PIDDIR "$piddir" | ||
19217 | _ACEOF | ||
19218 | |||
19219 | |||
19220 | |||
19221 | # Check whether --enable-lastlog was given. | ||
19222 | if test "${enable_lastlog+set}" = set; then : | ||
19223 | enableval=$enable_lastlog; | ||
19224 | if test "x$enableval" = "xno" ; then | ||
19225 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19226 | |||
19227 | fi | ||
19228 | |||
19229 | |||
19230 | fi | ||
19231 | |||
19232 | # Check whether --enable-utmp was given. | ||
19233 | if test "${enable_utmp+set}" = set; then : | ||
19234 | enableval=$enable_utmp; | ||
19235 | if test "x$enableval" = "xno" ; then | ||
19236 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19237 | |||
19238 | fi | ||
19239 | |||
19240 | |||
19241 | fi | ||
19242 | |||
19243 | # Check whether --enable-utmpx was given. | ||
19244 | if test "${enable_utmpx+set}" = set; then : | ||
19245 | enableval=$enable_utmpx; | ||
19246 | if test "x$enableval" = "xno" ; then | ||
19247 | |||
19248 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
19249 | |||
19250 | fi | ||
19251 | |||
19252 | |||
19253 | fi | ||
19254 | |||
19255 | # Check whether --enable-wtmp was given. | ||
19256 | if test "${enable_wtmp+set}" = set; then : | ||
19257 | enableval=$enable_wtmp; | ||
19258 | if test "x$enableval" = "xno" ; then | ||
19259 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19260 | |||
19261 | fi | ||
19262 | |||
19263 | |||
19264 | fi | ||
19265 | |||
19266 | # Check whether --enable-wtmpx was given. | ||
19267 | if test "${enable_wtmpx+set}" = set; then : | ||
19268 | enableval=$enable_wtmpx; | ||
19269 | if test "x$enableval" = "xno" ; then | ||
19270 | |||
19271 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
19272 | |||
19273 | fi | ||
19274 | |||
19275 | |||
19276 | fi | ||
19277 | |||
19278 | # Check whether --enable-libutil was given. | ||
19279 | if test "${enable_libutil+set}" = set; then : | ||
19280 | enableval=$enable_libutil; | ||
19281 | if test "x$enableval" = "xno" ; then | ||
19282 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
19283 | |||
19284 | fi | ||
19285 | |||
19286 | |||
19287 | fi | ||
19288 | |||
19289 | # Check whether --enable-pututline was given. | ||
19290 | if test "${enable_pututline+set}" = set; then : | ||
19291 | enableval=$enable_pututline; | ||
19292 | if test "x$enableval" = "xno" ; then | ||
19293 | |||
19294 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
19295 | |||
19296 | fi | ||
19297 | |||
19298 | |||
19299 | fi | ||
19300 | |||
19301 | # Check whether --enable-pututxline was given. | ||
19302 | if test "${enable_pututxline+set}" = set; then : | ||
19303 | enableval=$enable_pututxline; | ||
19304 | if test "x$enableval" = "xno" ; then | ||
19305 | |||
19306 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
19307 | |||
19308 | fi | ||
19309 | |||
19310 | |||
19311 | fi | ||
19312 | |||
19313 | |||
19314 | # Check whether --with-lastlog was given. | ||
19315 | if test "${with_lastlog+set}" = set; then : | ||
19316 | withval=$with_lastlog; | ||
19317 | if test "x$withval" = "xno" ; then | ||
19318 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19319 | |||
19320 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
19321 | conf_lastlog_location=$withval | ||
19322 | fi | ||
19323 | |||
19324 | |||
19325 | fi | ||
19326 | |||
19327 | |||
19328 | |||
19329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
19330 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
19331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19332 | /* end confdefs.h. */ | ||
19333 | |||
19334 | #include <sys/types.h> | ||
19335 | #include <utmp.h> | ||
19336 | #ifdef HAVE_LASTLOG_H | ||
19337 | # include <lastlog.h> | ||
19338 | #endif | ||
19339 | #ifdef HAVE_PATHS_H | ||
19340 | # include <paths.h> | ||
19341 | #endif | ||
19342 | #ifdef HAVE_LOGIN_H | ||
19343 | # include <login.h> | ||
19344 | #endif | ||
19345 | |||
19346 | int | ||
19347 | main () | ||
19348 | { | ||
19349 | char *lastlog = LASTLOG_FILE; | ||
19350 | ; | ||
19351 | return 0; | ||
19352 | } | ||
19353 | _ACEOF | ||
19354 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19356 | $as_echo "yes" >&6; } | ||
19357 | else | ||
19358 | |||
19359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19360 | $as_echo "no" >&6; } | ||
19361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
19362 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
19363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19364 | /* end confdefs.h. */ | ||
19365 | |||
19366 | #include <sys/types.h> | ||
19367 | #include <utmp.h> | ||
19368 | #ifdef HAVE_LASTLOG_H | ||
19369 | # include <lastlog.h> | ||
19370 | #endif | ||
19371 | #ifdef HAVE_PATHS_H | ||
19372 | # include <paths.h> | ||
19373 | #endif | ||
19374 | |||
19375 | int | ||
19376 | main () | ||
19377 | { | ||
19378 | char *lastlog = _PATH_LASTLOG; | ||
19379 | ; | ||
19380 | return 0; | ||
19381 | } | ||
19382 | _ACEOF | ||
19383 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19385 | $as_echo "yes" >&6; } | ||
19386 | else | ||
19387 | |||
19388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19389 | $as_echo "no" >&6; } | ||
19390 | system_lastlog_path=no | ||
19391 | |||
19392 | fi | ||
19393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19394 | |||
19395 | fi | ||
19396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19397 | |||
19398 | if test -z "$conf_lastlog_location"; then | ||
19399 | if test x"$system_lastlog_path" = x"no" ; then | ||
19400 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
19401 | if (test -d "$f" || test -f "$f") ; then | ||
19402 | conf_lastlog_location=$f | ||
19403 | fi | ||
19404 | done | ||
19405 | if test -z "$conf_lastlog_location"; then | ||
19406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
19407 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
19408 | fi | ||
19409 | fi | ||
19410 | fi | ||
19411 | |||
19412 | if test -n "$conf_lastlog_location"; then | ||
19413 | |||
19414 | cat >>confdefs.h <<_ACEOF | ||
19415 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
19416 | _ACEOF | ||
19417 | |||
19418 | fi | ||
19419 | |||
19420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
19421 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
19422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19423 | /* end confdefs.h. */ | ||
19424 | |||
19425 | #include <sys/types.h> | ||
19426 | #include <utmp.h> | ||
19427 | #ifdef HAVE_PATHS_H | ||
19428 | # include <paths.h> | ||
19429 | #endif | ||
19430 | |||
19431 | int | ||
19432 | main () | ||
19433 | { | ||
19434 | char *utmp = UTMP_FILE; | ||
19435 | ; | ||
19436 | return 0; | ||
19437 | } | ||
19438 | _ACEOF | ||
19439 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19441 | $as_echo "yes" >&6; } | ||
19442 | else | ||
19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19444 | $as_echo "no" >&6; } | ||
19445 | system_utmp_path=no | ||
19446 | |||
19447 | fi | ||
19448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19449 | if test -z "$conf_utmp_location"; then | ||
19450 | if test x"$system_utmp_path" = x"no" ; then | ||
19451 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
19452 | if test -f $f ; then | ||
19453 | conf_utmp_location=$f | ||
19454 | fi | ||
19455 | done | ||
19456 | if test -z "$conf_utmp_location"; then | ||
19457 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19458 | |||
19459 | fi | ||
19460 | fi | ||
19461 | fi | ||
19462 | if test -n "$conf_utmp_location"; then | ||
19463 | |||
19464 | cat >>confdefs.h <<_ACEOF | ||
19465 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
19466 | _ACEOF | ||
19467 | |||
19468 | fi | ||
19469 | |||
19470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
19471 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
19472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19473 | /* end confdefs.h. */ | ||
19474 | |||
19475 | #include <sys/types.h> | ||
19476 | #include <utmp.h> | ||
19477 | #ifdef HAVE_PATHS_H | ||
19478 | # include <paths.h> | ||
19479 | #endif | ||
19480 | |||
19481 | int | ||
19482 | main () | ||
19483 | { | ||
19484 | char *wtmp = WTMP_FILE; | ||
19485 | ; | ||
19486 | return 0; | ||
19487 | } | ||
19488 | _ACEOF | ||
19489 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19491 | $as_echo "yes" >&6; } | ||
19492 | else | ||
19493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19494 | $as_echo "no" >&6; } | ||
19495 | system_wtmp_path=no | ||
19496 | |||
19497 | fi | ||
19498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19499 | if test -z "$conf_wtmp_location"; then | ||
19500 | if test x"$system_wtmp_path" = x"no" ; then | ||
19501 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
19502 | if test -f $f ; then | ||
19503 | conf_wtmp_location=$f | ||
19504 | fi | ||
19505 | done | ||
19506 | if test -z "$conf_wtmp_location"; then | ||
19507 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19508 | |||
19509 | fi | ||
19510 | fi | ||
19511 | fi | ||
19512 | if test -n "$conf_wtmp_location"; then | ||
19513 | |||
19514 | cat >>confdefs.h <<_ACEOF | ||
19515 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
19516 | _ACEOF | ||
19517 | |||
19518 | fi | ||
19519 | |||
19520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
19521 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
19522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19523 | /* end confdefs.h. */ | ||
19524 | |||
19525 | #include <sys/types.h> | ||
19526 | #include <utmp.h> | ||
19527 | #ifdef HAVE_UTMPX_H | ||
19528 | #include <utmpx.h> | ||
19529 | #endif | ||
19530 | #ifdef HAVE_PATHS_H | ||
19531 | # include <paths.h> | ||
19532 | #endif | ||
19533 | |||
19534 | int | ||
19535 | main () | ||
19536 | { | ||
19537 | char *wtmpx = WTMPX_FILE; | ||
19538 | ; | ||
19539 | return 0; | ||
19540 | } | ||
19541 | _ACEOF | ||
19542 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19544 | $as_echo "yes" >&6; } | ||
19545 | else | ||
19546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19547 | $as_echo "no" >&6; } | ||
19548 | system_wtmpx_path=no | ||
19549 | |||
19550 | fi | ||
19551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19552 | if test -z "$conf_wtmpx_location"; then | ||
19553 | if test x"$system_wtmpx_path" = x"no" ; then | ||
19554 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
19555 | |||
19556 | fi | ||
19557 | else | ||
19558 | |||
19559 | cat >>confdefs.h <<_ACEOF | ||
19560 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
19561 | _ACEOF | ||
19562 | |||
19563 | fi | ||
19564 | |||
19565 | |||
19566 | if test ! -z "$blibpath" ; then | ||
19567 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
19568 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
19569 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
19570 | fi | ||
19571 | |||
19572 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
19573 | #ifdef HAVE_SYS_TYPES_H | ||
19574 | #include <sys/types.h> | ||
19575 | #endif | ||
19576 | #ifdef HAVE_UTMP_H | ||
19577 | #include <utmp.h> | ||
19578 | #endif | ||
19579 | #ifdef HAVE_UTMPX_H | ||
19580 | #include <utmpx.h> | ||
19581 | #endif | ||
19582 | #ifdef HAVE_LASTLOG_H | ||
19583 | #include <lastlog.h> | ||
19584 | #endif | ||
19585 | |||
19586 | " | ||
19587 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
19588 | |||
19589 | else | ||
19590 | |||
19591 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
19592 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19593 | |||
19594 | fi | ||
19595 | |||
19596 | fi | ||
19597 | |||
19598 | |||
19599 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
19600 | #ifdef HAVE_SYS_TYPES_H | ||
19601 | #include <sys/types.h> | ||
19602 | #endif | ||
19603 | #ifdef HAVE_UTMP_H | ||
19604 | #include <utmp.h> | ||
19605 | #endif | ||
19606 | #ifdef HAVE_UTMPX_H | ||
19607 | #include <utmpx.h> | ||
19608 | #endif | ||
19609 | #ifdef HAVE_LASTLOG_H | ||
19610 | #include <lastlog.h> | ||
19611 | #endif | ||
19612 | |||
19613 | " | ||
19614 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
19615 | |||
19616 | else | ||
19617 | |||
19618 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19619 | |||
19620 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19621 | |||
19622 | |||
19623 | fi | ||
19624 | |||
19625 | |||
19626 | CFLAGS="$CFLAGS $werror_flags" | ||
19627 | |||
19628 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
19629 | TEST_SSH_IPV6=no | ||
19630 | else | ||
19631 | TEST_SSH_IPV6=yes | ||
19632 | fi | ||
19633 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
19634 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
19635 | TEST_SSH_IPV6=no | ||
19636 | fi | ||
19637 | |||
19638 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
19639 | |||
19640 | TEST_SSH_UTF8=$TEST_SSH_UTF8 | ||
19641 | |||
19642 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
19643 | |||
19644 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
19645 | |||
19646 | DEPEND=$(cat $srcdir/.depend) | ||
19647 | |||
19648 | |||
19649 | CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" | ||
19650 | LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" | ||
19651 | |||
19652 | |||
19653 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
19654 | |||
19655 | cat >confcache <<\_ACEOF | ||
19656 | # This file is a shell script that caches the results of configure | ||
19657 | # tests run on this system so they can be shared between configure | ||
19658 | # scripts and configure runs, see configure's option --config-cache. | ||
19659 | # It is not useful on other systems. If it contains results you don't | ||
19660 | # want to keep, you may remove or edit it. | ||
19661 | # | ||
19662 | # config.status only pays attention to the cache file if you give it | ||
19663 | # the --recheck option to rerun configure. | ||
19664 | # | ||
19665 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
19666 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
19667 | # following values. | ||
19668 | |||
19669 | _ACEOF | ||
19670 | |||
19671 | # The following way of writing the cache mishandles newlines in values, | ||
19672 | # but we know of no workaround that is simple, portable, and efficient. | ||
19673 | # So, we kill variables containing newlines. | ||
19674 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
19675 | # and sets the high bit in the cache file unless we assign to the vars. | ||
19676 | ( | ||
19677 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
19678 | eval ac_val=\$$ac_var | ||
19679 | case $ac_val in #( | ||
19680 | *${as_nl}*) | ||
19681 | case $ac_var in #( | ||
19682 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
19683 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
19684 | esac | ||
19685 | case $ac_var in #( | ||
19686 | _ | IFS | as_nl) ;; #( | ||
19687 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
19688 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
19689 | esac ;; | ||
19690 | esac | ||
19691 | done | ||
19692 | |||
19693 | (set) 2>&1 | | ||
19694 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
19695 | *${as_nl}ac_space=\ *) | ||
19696 | # `set' does not quote correctly, so add quotes: double-quote | ||
19697 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
19698 | sed -n \ | ||
19699 | "s/'/'\\\\''/g; | ||
19700 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
19701 | ;; #( | ||
19702 | *) | ||
19703 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
19704 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
19705 | ;; | ||
19706 | esac | | ||
19707 | sort | ||
19708 | ) | | ||
19709 | sed ' | ||
19710 | /^ac_cv_env_/b end | ||
19711 | t clear | ||
19712 | :clear | ||
19713 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
19714 | t end | ||
19715 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
19716 | :end' >>confcache | ||
19717 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
19718 | if test -w "$cache_file"; then | ||
19719 | if test "x$cache_file" != "x/dev/null"; then | ||
19720 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
19721 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
19722 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
19723 | cat confcache >"$cache_file" | ||
19724 | else | ||
19725 | case $cache_file in #( | ||
19726 | */* | ?:*) | ||
19727 | mv -f confcache "$cache_file"$$ && | ||
19728 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
19729 | *) | ||
19730 | mv -f confcache "$cache_file" ;; | ||
19731 | esac | ||
19732 | fi | ||
19733 | fi | ||
19734 | else | ||
19735 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
19736 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
19737 | fi | ||
19738 | fi | ||
19739 | rm -f confcache | ||
19740 | |||
19741 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
19742 | # Let make expand exec_prefix. | ||
19743 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
19744 | |||
19745 | DEFS=-DHAVE_CONFIG_H | ||
19746 | |||
19747 | ac_libobjs= | ||
19748 | ac_ltlibobjs= | ||
19749 | U= | ||
19750 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
19751 | # 1. Remove the extension, and $U if already installed. | ||
19752 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
19753 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
19754 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
19755 | # will be set to the directory where LIBOBJS objects are built. | ||
19756 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
19757 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
19758 | done | ||
19759 | LIBOBJS=$ac_libobjs | ||
19760 | |||
19761 | LTLIBOBJS=$ac_ltlibobjs | ||
19762 | |||
19763 | |||
19764 | |||
19765 | |||
19766 | : "${CONFIG_STATUS=./config.status}" | ||
19767 | ac_write_fail=0 | ||
19768 | ac_clean_files_save=$ac_clean_files | ||
19769 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
19770 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
19771 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
19772 | as_write_fail=0 | ||
19773 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
19774 | #! $SHELL | ||
19775 | # Generated by $as_me. | ||
19776 | # Run this file to recreate the current configuration. | ||
19777 | # Compiler output produced by configure, useful for debugging | ||
19778 | # configure, is in config.log if it exists. | ||
19779 | |||
19780 | debug=false | ||
19781 | ac_cs_recheck=false | ||
19782 | ac_cs_silent=false | ||
19783 | |||
19784 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
19785 | export SHELL | ||
19786 | _ASEOF | ||
19787 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
19788 | ## -------------------- ## | ||
19789 | ## M4sh Initialization. ## | ||
19790 | ## -------------------- ## | ||
19791 | |||
19792 | # Be more Bourne compatible | ||
19793 | DUALCASE=1; export DUALCASE # for MKS sh | ||
19794 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
19795 | emulate sh | ||
19796 | NULLCMD=: | ||
19797 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
19798 | # is contrary to our usage. Disable this feature. | ||
19799 | alias -g '${1+"$@"}'='"$@"' | ||
19800 | setopt NO_GLOB_SUBST | ||
19801 | else | ||
19802 | case `(set -o) 2>/dev/null` in #( | ||
19803 | *posix*) : | ||
19804 | set -o posix ;; #( | ||
19805 | *) : | ||
19806 | ;; | ||
19807 | esac | ||
19808 | fi | ||
19809 | |||
19810 | |||
19811 | as_nl=' | ||
19812 | ' | ||
19813 | export as_nl | ||
19814 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
19815 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
19816 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19817 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19818 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
19819 | # but without wasting forks for bash or zsh. | ||
19820 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
19821 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19822 | as_echo='print -r --' | ||
19823 | as_echo_n='print -rn --' | ||
19824 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19825 | as_echo='printf %s\n' | ||
19826 | as_echo_n='printf %s' | ||
19827 | else | ||
19828 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
19829 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
19830 | as_echo_n='/usr/ucb/echo -n' | ||
19831 | else | ||
19832 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
19833 | as_echo_n_body='eval | ||
19834 | arg=$1; | ||
19835 | case $arg in #( | ||
19836 | *"$as_nl"*) | ||
19837 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
19838 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
19839 | esac; | ||
19840 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
19841 | ' | ||
19842 | export as_echo_n_body | ||
19843 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
19844 | fi | ||
19845 | export as_echo_body | ||
19846 | as_echo='sh -c $as_echo_body as_echo' | ||
19847 | fi | ||
19848 | |||
19849 | # The user is always right. | ||
19850 | if test "${PATH_SEPARATOR+set}" != set; then | ||
19851 | PATH_SEPARATOR=: | ||
19852 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
19853 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
19854 | PATH_SEPARATOR=';' | ||
19855 | } | ||
19856 | fi | ||
19857 | |||
19858 | |||
19859 | # IFS | ||
19860 | # We need space, tab and new line, in precisely that order. Quoting is | ||
19861 | # there to prevent editors from complaining about space-tab. | ||
19862 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
19863 | # splitting by setting IFS to empty value.) | ||
19864 | IFS=" "" $as_nl" | ||
19865 | |||
19866 | # Find who we are. Look in the path if we contain no directory separator. | ||
19867 | as_myself= | ||
19868 | case $0 in #(( | ||
19869 | *[\\/]* ) as_myself=$0 ;; | ||
19870 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19871 | for as_dir in $PATH | ||
19872 | do | ||
19873 | IFS=$as_save_IFS | ||
19874 | test -z "$as_dir" && as_dir=. | ||
19875 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
19876 | done | ||
19877 | IFS=$as_save_IFS | ||
19878 | |||
19879 | ;; | ||
19880 | esac | ||
19881 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
19882 | # in which case we are not to be found in the path. | ||
19883 | if test "x$as_myself" = x; then | ||
19884 | as_myself=$0 | ||
19885 | fi | ||
19886 | if test ! -f "$as_myself"; then | ||
19887 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
19888 | exit 1 | ||
19889 | fi | ||
19890 | |||
19891 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
19892 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
19893 | # suppresses any "Segmentation fault" message there. '((' could | ||
19894 | # trigger a bug in pdksh 5.2.14. | ||
19895 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
19896 | do eval test x\${$as_var+set} = xset \ | ||
19897 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
19898 | done | ||
19899 | PS1='$ ' | ||
19900 | PS2='> ' | ||
19901 | PS4='+ ' | ||
19902 | |||
19903 | # NLS nuisances. | ||
19904 | LC_ALL=C | ||
19905 | export LC_ALL | ||
19906 | LANGUAGE=C | ||
19907 | export LANGUAGE | ||
19908 | |||
19909 | # CDPATH. | ||
19910 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
19911 | |||
19912 | |||
19913 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
19914 | # ---------------------------------------- | ||
19915 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
19916 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
19917 | # script with STATUS, using 1 if that was 0. | ||
19918 | as_fn_error () | ||
19919 | { | ||
19920 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
19921 | if test "$4"; then | ||
19922 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
19923 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
19924 | fi | ||
19925 | $as_echo "$as_me: error: $2" >&2 | ||
19926 | as_fn_exit $as_status | ||
19927 | } # as_fn_error | ||
19928 | |||
19929 | |||
19930 | # as_fn_set_status STATUS | ||
19931 | # ----------------------- | ||
19932 | # Set $? to STATUS, without forking. | ||
19933 | as_fn_set_status () | ||
19934 | { | ||
19935 | return $1 | ||
19936 | } # as_fn_set_status | ||
19937 | |||
19938 | # as_fn_exit STATUS | ||
19939 | # ----------------- | ||
19940 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
19941 | as_fn_exit () | ||
19942 | { | ||
19943 | set +e | ||
19944 | as_fn_set_status $1 | ||
19945 | exit $1 | ||
19946 | } # as_fn_exit | ||
19947 | |||
19948 | # as_fn_unset VAR | ||
19949 | # --------------- | ||
19950 | # Portably unset VAR. | ||
19951 | as_fn_unset () | ||
19952 | { | ||
19953 | { eval $1=; unset $1;} | ||
19954 | } | ||
19955 | as_unset=as_fn_unset | ||
19956 | # as_fn_append VAR VALUE | ||
19957 | # ---------------------- | ||
19958 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
19959 | # advantage of any shell optimizations that allow amortized linear growth over | ||
19960 | # repeated appends, instead of the typical quadratic growth present in naive | ||
19961 | # implementations. | ||
19962 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
19963 | eval 'as_fn_append () | ||
19964 | { | ||
19965 | eval $1+=\$2 | ||
19966 | }' | ||
19967 | else | ||
19968 | as_fn_append () | ||
19969 | { | ||
19970 | eval $1=\$$1\$2 | ||
19971 | } | ||
19972 | fi # as_fn_append | ||
19973 | |||
19974 | # as_fn_arith ARG... | ||
19975 | # ------------------ | ||
19976 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
19977 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
19978 | # must be portable across $(()) and expr. | ||
19979 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
19980 | eval 'as_fn_arith () | ||
19981 | { | ||
19982 | as_val=$(( $* )) | ||
19983 | }' | ||
19984 | else | ||
19985 | as_fn_arith () | ||
19986 | { | ||
19987 | as_val=`expr "$@" || test $? -eq 1` | ||
19988 | } | ||
19989 | fi # as_fn_arith | ||
19990 | |||
19991 | |||
19992 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
19993 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
19994 | as_expr=expr | ||
19995 | else | ||
19996 | as_expr=false | ||
19997 | fi | ||
19998 | |||
19999 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
20000 | as_basename=basename | ||
20001 | else | ||
20002 | as_basename=false | ||
20003 | fi | ||
20004 | |||
20005 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
20006 | as_dirname=dirname | ||
20007 | else | ||
20008 | as_dirname=false | ||
20009 | fi | ||
20010 | |||
20011 | as_me=`$as_basename -- "$0" || | ||
20012 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
20013 | X"$0" : 'X\(//\)$' \| \ | ||
20014 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
20015 | $as_echo X/"$0" | | ||
20016 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
20017 | s//\1/ | ||
20018 | q | ||
20019 | } | ||
20020 | /^X\/\(\/\/\)$/{ | ||
20021 | s//\1/ | ||
20022 | q | ||
20023 | } | ||
20024 | /^X\/\(\/\).*/{ | ||
20025 | s//\1/ | ||
20026 | q | ||
20027 | } | ||
20028 | s/.*/./; q'` | ||
20029 | |||
20030 | # Avoid depending upon Character Ranges. | ||
20031 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
20032 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
20033 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
20034 | as_cr_digits='0123456789' | ||
20035 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
20036 | |||
20037 | ECHO_C= ECHO_N= ECHO_T= | ||
20038 | case `echo -n x` in #((((( | ||
20039 | -n*) | ||
20040 | case `echo 'xy\c'` in | ||
20041 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
20042 | xy) ECHO_C='\c';; | ||
20043 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
20044 | ECHO_T=' ';; | ||
20045 | esac;; | ||
20046 | *) | ||
20047 | ECHO_N='-n';; | ||
20048 | esac | ||
20049 | |||
20050 | rm -f conf$$ conf$$.exe conf$$.file | ||
20051 | if test -d conf$$.dir; then | ||
20052 | rm -f conf$$.dir/conf$$.file | ||
20053 | else | ||
20054 | rm -f conf$$.dir | ||
20055 | mkdir conf$$.dir 2>/dev/null | ||
20056 | fi | ||
20057 | if (echo >conf$$.file) 2>/dev/null; then | ||
20058 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
20059 | as_ln_s='ln -s' | ||
20060 | # ... but there are two gotchas: | ||
20061 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
20062 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
20063 | # In both cases, we have to default to `cp -pR'. | ||
20064 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
20065 | as_ln_s='cp -pR' | ||
20066 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
20067 | as_ln_s=ln | ||
20068 | else | ||
20069 | as_ln_s='cp -pR' | ||
20070 | fi | ||
20071 | else | ||
20072 | as_ln_s='cp -pR' | ||
20073 | fi | ||
20074 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
20075 | rmdir conf$$.dir 2>/dev/null | ||
20076 | |||
20077 | |||
20078 | # as_fn_mkdir_p | ||
20079 | # ------------- | ||
20080 | # Create "$as_dir" as a directory, including parents if necessary. | ||
20081 | as_fn_mkdir_p () | ||
20082 | { | ||
20083 | |||
20084 | case $as_dir in #( | ||
20085 | -*) as_dir=./$as_dir;; | ||
20086 | esac | ||
20087 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
20088 | as_dirs= | ||
20089 | while :; do | ||
20090 | case $as_dir in #( | ||
20091 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
20092 | *) as_qdir=$as_dir;; | ||
20093 | esac | ||
20094 | as_dirs="'$as_qdir' $as_dirs" | ||
20095 | as_dir=`$as_dirname -- "$as_dir" || | ||
20096 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
20097 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
20098 | X"$as_dir" : 'X\(//\)$' \| \ | ||
20099 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
20100 | $as_echo X"$as_dir" | | ||
20101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
20102 | s//\1/ | ||
20103 | q | ||
20104 | } | ||
20105 | /^X\(\/\/\)[^/].*/{ | ||
20106 | s//\1/ | ||
20107 | q | ||
20108 | } | ||
20109 | /^X\(\/\/\)$/{ | ||
20110 | s//\1/ | ||
20111 | q | ||
20112 | } | ||
20113 | /^X\(\/\).*/{ | ||
20114 | s//\1/ | ||
20115 | q | ||
20116 | } | ||
20117 | s/.*/./; q'` | ||
20118 | test -d "$as_dir" && break | ||
20119 | done | ||
20120 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
20121 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
20122 | |||
20123 | |||
20124 | } # as_fn_mkdir_p | ||
20125 | if mkdir -p . 2>/dev/null; then | ||
20126 | as_mkdir_p='mkdir -p "$as_dir"' | ||
20127 | else | ||
20128 | test -d ./-p && rmdir ./-p | ||
20129 | as_mkdir_p=false | ||
20130 | fi | ||
20131 | |||
20132 | |||
20133 | # as_fn_executable_p FILE | ||
20134 | # ----------------------- | ||
20135 | # Test if FILE is an executable regular file. | ||
20136 | as_fn_executable_p () | ||
20137 | { | ||
20138 | test -f "$1" && test -x "$1" | ||
20139 | } # as_fn_executable_p | ||
20140 | as_test_x='test -x' | ||
20141 | as_executable_p=as_fn_executable_p | ||
20142 | |||
20143 | # Sed expression to map a string onto a valid CPP name. | ||
20144 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
20145 | |||
20146 | # Sed expression to map a string onto a valid variable name. | ||
20147 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
20148 | |||
20149 | |||
20150 | exec 6>&1 | ||
20151 | ## ----------------------------------- ## | ||
20152 | ## Main body of $CONFIG_STATUS script. ## | ||
20153 | ## ----------------------------------- ## | ||
20154 | _ASEOF | ||
20155 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
20156 | |||
20157 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20158 | # Save the log message, to keep $0 and so on meaningful, and to | ||
20159 | # report actual input values of CONFIG_FILES etc. instead of their | ||
20160 | # values after options handling. | ||
20161 | ac_log=" | ||
20162 | This file was extended by OpenSSH $as_me Portable, which was | ||
20163 | generated by GNU Autoconf 2.69. Invocation command line was | ||
20164 | |||
20165 | CONFIG_FILES = $CONFIG_FILES | ||
20166 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
20167 | CONFIG_LINKS = $CONFIG_LINKS | ||
20168 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
20169 | $ $0 $@ | ||
20170 | |||
20171 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
20172 | " | ||
20173 | |||
20174 | _ACEOF | ||
20175 | |||
20176 | case $ac_config_files in *" | ||
20177 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
20178 | esac | ||
20179 | |||
20180 | case $ac_config_headers in *" | ||
20181 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
20182 | esac | ||
20183 | |||
20184 | |||
20185 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20186 | # Files that config.status was made for. | ||
20187 | config_files="$ac_config_files" | ||
20188 | config_headers="$ac_config_headers" | ||
20189 | |||
20190 | _ACEOF | ||
20191 | |||
20192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20193 | ac_cs_usage="\ | ||
20194 | \`$as_me' instantiates files and other configuration actions | ||
20195 | from templates according to the current configuration. Unless the files | ||
20196 | and actions are specified as TAGs, all are instantiated by default. | ||
20197 | |||
20198 | Usage: $0 [OPTION]... [TAG]... | ||
20199 | |||
20200 | -h, --help print this help, then exit | ||
20201 | -V, --version print version number and configuration settings, then exit | ||
20202 | --config print configuration, then exit | ||
20203 | -q, --quiet, --silent | ||
20204 | do not print progress messages | ||
20205 | -d, --debug don't remove temporary files | ||
20206 | --recheck update $as_me by reconfiguring in the same conditions | ||
20207 | --file=FILE[:TEMPLATE] | ||
20208 | instantiate the configuration file FILE | ||
20209 | --header=FILE[:TEMPLATE] | ||
20210 | instantiate the configuration header FILE | ||
20211 | |||
20212 | Configuration files: | ||
20213 | $config_files | ||
20214 | |||
20215 | Configuration headers: | ||
20216 | $config_headers | ||
20217 | |||
20218 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
20219 | |||
20220 | _ACEOF | ||
20221 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20222 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
20223 | ac_cs_version="\\ | ||
20224 | OpenSSH config.status Portable | ||
20225 | configured by $0, generated by GNU Autoconf 2.69, | ||
20226 | with options \\"\$ac_cs_config\\" | ||
20227 | |||
20228 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
20229 | This config.status script is free software; the Free Software Foundation | ||
20230 | gives unlimited permission to copy, distribute and modify it." | ||
20231 | |||
20232 | ac_pwd='$ac_pwd' | ||
20233 | srcdir='$srcdir' | ||
20234 | INSTALL='$INSTALL' | ||
20235 | MKDIR_P='$MKDIR_P' | ||
20236 | AWK='$AWK' | ||
20237 | test -n "\$AWK" || AWK=awk | ||
20238 | _ACEOF | ||
20239 | |||
20240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20241 | # The default lists apply if the user does not specify any file. | ||
20242 | ac_need_defaults=: | ||
20243 | while test $# != 0 | ||
20244 | do | ||
20245 | case $1 in | ||
20246 | --*=?*) | ||
20247 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
20248 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
20249 | ac_shift=: | ||
20250 | ;; | ||
20251 | --*=) | ||
20252 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
20253 | ac_optarg= | ||
20254 | ac_shift=: | ||
20255 | ;; | ||
20256 | *) | ||
20257 | ac_option=$1 | ||
20258 | ac_optarg=$2 | ||
20259 | ac_shift=shift | ||
20260 | ;; | ||
20261 | esac | ||
20262 | |||
20263 | case $ac_option in | ||
20264 | # Handling of the options. | ||
20265 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
20266 | ac_cs_recheck=: ;; | ||
20267 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
20268 | $as_echo "$ac_cs_version"; exit ;; | ||
20269 | --config | --confi | --conf | --con | --co | --c ) | ||
20270 | $as_echo "$ac_cs_config"; exit ;; | ||
20271 | --debug | --debu | --deb | --de | --d | -d ) | ||
20272 | debug=: ;; | ||
20273 | --file | --fil | --fi | --f ) | ||
20274 | $ac_shift | ||
20275 | case $ac_optarg in | ||
20276 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
20277 | '') as_fn_error $? "missing file argument" ;; | ||
20278 | esac | ||
20279 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
20280 | ac_need_defaults=false;; | ||
20281 | --header | --heade | --head | --hea ) | ||
20282 | $ac_shift | ||
20283 | case $ac_optarg in | ||
20284 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
20285 | esac | ||
20286 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
20287 | ac_need_defaults=false;; | ||
20288 | --he | --h) | ||
20289 | # Conflict between --help and --header | ||
20290 | as_fn_error $? "ambiguous option: \`$1' | ||
20291 | Try \`$0 --help' for more information.";; | ||
20292 | --help | --hel | -h ) | ||
20293 | $as_echo "$ac_cs_usage"; exit ;; | ||
20294 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
20295 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
20296 | ac_cs_silent=: ;; | ||
20297 | |||
20298 | # This is an error. | ||
20299 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
20300 | Try \`$0 --help' for more information." ;; | ||
20301 | |||
20302 | *) as_fn_append ac_config_targets " $1" | ||
20303 | ac_need_defaults=false ;; | ||
20304 | |||
20305 | esac | ||
20306 | shift | ||
20307 | done | ||
20308 | |||
20309 | ac_configure_extra_args= | ||
20310 | |||
20311 | if $ac_cs_silent; then | ||
20312 | exec 6>/dev/null | ||
20313 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
20314 | fi | ||
20315 | |||
20316 | _ACEOF | ||
20317 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20318 | if \$ac_cs_recheck; then | ||
20319 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
20320 | shift | ||
20321 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
20322 | CONFIG_SHELL='$SHELL' | ||
20323 | export CONFIG_SHELL | ||
20324 | exec "\$@" | ||
20325 | fi | ||
20326 | |||
20327 | _ACEOF | ||
20328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20329 | exec 5>>config.log | ||
20330 | { | ||
20331 | echo | ||
20332 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
20333 | ## Running $as_me. ## | ||
20334 | _ASBOX | ||
20335 | $as_echo "$ac_log" | ||
20336 | } >&5 | ||
20337 | |||
20338 | _ACEOF | ||
20339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20340 | _ACEOF | ||
20341 | |||
20342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20343 | |||
20344 | # Handling of arguments. | ||
20345 | for ac_config_target in $ac_config_targets | ||
20346 | do | ||
20347 | case $ac_config_target in | ||
20348 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
20349 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
20350 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
20351 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
20352 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
20353 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
20354 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
20355 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
20356 | |||
20357 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
20358 | esac | ||
20359 | done | ||
20360 | |||
20361 | |||
20362 | # If the user did not use the arguments to specify the items to instantiate, | ||
20363 | # then the envvar interface is used. Set only those that are not. | ||
20364 | # We use the long form for the default assignment because of an extremely | ||
20365 | # bizarre bug on SunOS 4.1.3. | ||
20366 | if $ac_need_defaults; then | ||
20367 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
20368 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
20369 | fi | ||
20370 | |||
20371 | # Have a temporary directory for convenience. Make it in the build tree | ||
20372 | # simply because there is no reason against having it here, and in addition, | ||
20373 | # creating and moving files from /tmp can sometimes cause problems. | ||
20374 | # Hook for its removal unless debugging. | ||
20375 | # Note that there is a small window in which the directory will not be cleaned: | ||
20376 | # after its creation but before its name has been assigned to `$tmp'. | ||
20377 | $debug || | ||
20378 | { | ||
20379 | tmp= ac_tmp= | ||
20380 | trap 'exit_status=$? | ||
20381 | : "${ac_tmp:=$tmp}" | ||
20382 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
20383 | ' 0 | ||
20384 | trap 'as_fn_exit 1' 1 2 13 15 | ||
20385 | } | ||
20386 | # Create a (secure) tmp directory for tmp files. | ||
20387 | |||
20388 | { | ||
20389 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
20390 | test -d "$tmp" | ||
20391 | } || | ||
20392 | { | ||
20393 | tmp=./conf$$-$RANDOM | ||
20394 | (umask 077 && mkdir "$tmp") | ||
20395 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
20396 | ac_tmp=$tmp | ||
20397 | |||
20398 | # Set up the scripts for CONFIG_FILES section. | ||
20399 | # No need to generate them if there are no CONFIG_FILES. | ||
20400 | # This happens for instance with `./config.status config.h'. | ||
20401 | if test -n "$CONFIG_FILES"; then | ||
20402 | |||
20403 | |||
20404 | ac_cr=`echo X | tr X '\015'` | ||
20405 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
20406 | # But we know of no other shell where ac_cr would be empty at this | ||
20407 | # point, so we can use a bashism as a fallback. | ||
20408 | if test "x$ac_cr" = x; then | ||
20409 | eval ac_cr=\$\'\\r\' | ||
20410 | fi | ||
20411 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
20412 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
20413 | ac_cs_awk_cr='\\r' | ||
20414 | else | ||
20415 | ac_cs_awk_cr=$ac_cr | ||
20416 | fi | ||
20417 | |||
20418 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
20419 | _ACEOF | ||
20420 | |||
20421 | |||
20422 | { | ||
20423 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
20424 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
20425 | echo "_ACEOF" | ||
20426 | } >conf$$subs.sh || | ||
20427 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20428 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
20429 | ac_delim='%!_!# ' | ||
20430 | for ac_last_try in false false false false false :; do | ||
20431 | . ./conf$$subs.sh || | ||
20432 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20433 | |||
20434 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
20435 | if test $ac_delim_n = $ac_delim_num; then | ||
20436 | break | ||
20437 | elif $ac_last_try; then | ||
20438 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20439 | else | ||
20440 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20441 | fi | ||
20442 | done | ||
20443 | rm -f conf$$subs.sh | ||
20444 | |||
20445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20446 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
20447 | _ACEOF | ||
20448 | sed -n ' | ||
20449 | h | ||
20450 | s/^/S["/; s/!.*/"]=/ | ||
20451 | p | ||
20452 | g | ||
20453 | s/^[^!]*!// | ||
20454 | :repl | ||
20455 | t repl | ||
20456 | s/'"$ac_delim"'$// | ||
20457 | t delim | ||
20458 | :nl | ||
20459 | h | ||
20460 | s/\(.\{148\}\)..*/\1/ | ||
20461 | t more1 | ||
20462 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
20463 | p | ||
20464 | n | ||
20465 | b repl | ||
20466 | :more1 | ||
20467 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20468 | p | ||
20469 | g | ||
20470 | s/.\{148\}// | ||
20471 | t nl | ||
20472 | :delim | ||
20473 | h | ||
20474 | s/\(.\{148\}\)..*/\1/ | ||
20475 | t more2 | ||
20476 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
20477 | p | ||
20478 | b | ||
20479 | :more2 | ||
20480 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20481 | p | ||
20482 | g | ||
20483 | s/.\{148\}// | ||
20484 | t delim | ||
20485 | ' <conf$$subs.awk | sed ' | ||
20486 | /^[^""]/{ | ||
20487 | N | ||
20488 | s/\n// | ||
20489 | } | ||
20490 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20491 | rm -f conf$$subs.awk | ||
20492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20493 | _ACAWK | ||
20494 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
20495 | for (key in S) S_is_set[key] = 1 | ||
20496 | FS = "" | ||
20497 | |||
20498 | } | ||
20499 | { | ||
20500 | line = $ 0 | ||
20501 | nfields = split(line, field, "@") | ||
20502 | substed = 0 | ||
20503 | len = length(field[1]) | ||
20504 | for (i = 2; i < nfields; i++) { | ||
20505 | key = field[i] | ||
20506 | keylen = length(key) | ||
20507 | if (S_is_set[key]) { | ||
20508 | value = S[key] | ||
20509 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
20510 | len += length(value) + length(field[++i]) | ||
20511 | substed = 1 | ||
20512 | } else | ||
20513 | len += 1 + keylen | ||
20514 | } | ||
20515 | |||
20516 | print line | ||
20517 | } | ||
20518 | |||
20519 | _ACAWK | ||
20520 | _ACEOF | ||
20521 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20522 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
20523 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
20524 | else | ||
20525 | cat | ||
20526 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
20527 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
20528 | _ACEOF | ||
20529 | |||
20530 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
20531 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
20532 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
20533 | # (actually we leave an empty line to preserve line numbers). | ||
20534 | if test "x$srcdir" = x.; then | ||
20535 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
20536 | h | ||
20537 | s/// | ||
20538 | s/^/:/ | ||
20539 | s/[ ]*$/:/ | ||
20540 | s/:\$(srcdir):/:/g | ||
20541 | s/:\${srcdir}:/:/g | ||
20542 | s/:@srcdir@:/:/g | ||
20543 | s/^:*// | ||
20544 | s/:*$// | ||
20545 | x | ||
20546 | s/\(=[ ]*\).*/\1/ | ||
20547 | G | ||
20548 | s/\n// | ||
20549 | s/^[^=]*=[ ]*$// | ||
20550 | }' | ||
20551 | fi | ||
20552 | |||
20553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20554 | fi # test -n "$CONFIG_FILES" | ||
20555 | |||
20556 | # Set up the scripts for CONFIG_HEADERS section. | ||
20557 | # No need to generate them if there are no CONFIG_HEADERS. | ||
20558 | # This happens for instance with `./config.status Makefile'. | ||
20559 | if test -n "$CONFIG_HEADERS"; then | ||
20560 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
20561 | BEGIN { | ||
20562 | _ACEOF | ||
20563 | |||
20564 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
20565 | # here-document in config.status, that substitutes the proper values into | ||
20566 | # config.h.in to produce config.h. | ||
20567 | |||
20568 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
20569 | # handling of long lines. | ||
20570 | ac_delim='%!_!# ' | ||
20571 | for ac_last_try in false false :; do | ||
20572 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
20573 | if test -z "$ac_tt"; then | ||
20574 | break | ||
20575 | elif $ac_last_try; then | ||
20576 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
20577 | else | ||
20578 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20579 | fi | ||
20580 | done | ||
20581 | |||
20582 | # For the awk script, D is an array of macro values keyed by name, | ||
20583 | # likewise P contains macro parameters if any. Preserve backslash | ||
20584 | # newline sequences. | ||
20585 | |||
20586 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
20587 | sed -n ' | ||
20588 | s/.\{148\}/&'"$ac_delim"'/g | ||
20589 | t rset | ||
20590 | :rset | ||
20591 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
20592 | t def | ||
20593 | d | ||
20594 | :def | ||
20595 | s/\\$// | ||
20596 | t bsnl | ||
20597 | s/["\\]/\\&/g | ||
20598 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20599 | D["\1"]=" \3"/p | ||
20600 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
20601 | d | ||
20602 | :bsnl | ||
20603 | s/["\\]/\\&/g | ||
20604 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20605 | D["\1"]=" \3\\\\\\n"\\/p | ||
20606 | t cont | ||
20607 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
20608 | t cont | ||
20609 | d | ||
20610 | :cont | ||
20611 | n | ||
20612 | s/.\{148\}/&'"$ac_delim"'/g | ||
20613 | t clear | ||
20614 | :clear | ||
20615 | s/\\$// | ||
20616 | t bsnlc | ||
20617 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
20618 | d | ||
20619 | :bsnlc | ||
20620 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
20621 | b cont | ||
20622 | ' <confdefs.h | sed ' | ||
20623 | s/'"$ac_delim"'/"\\\ | ||
20624 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20625 | |||
20626 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20627 | for (key in D) D_is_set[key] = 1 | ||
20628 | FS = "" | ||
20629 | } | ||
20630 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
20631 | line = \$ 0 | ||
20632 | split(line, arg, " ") | ||
20633 | if (arg[1] == "#") { | ||
20634 | defundef = arg[2] | ||
20635 | mac1 = arg[3] | ||
20636 | } else { | ||
20637 | defundef = substr(arg[1], 2) | ||
20638 | mac1 = arg[2] | ||
20639 | } | ||
20640 | split(mac1, mac2, "(") #) | ||
20641 | macro = mac2[1] | ||
20642 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
20643 | if (D_is_set[macro]) { | ||
20644 | # Preserve the white space surrounding the "#". | ||
20645 | print prefix "define", macro P[macro] D[macro] | ||
20646 | next | ||
20647 | } else { | ||
20648 | # Replace #undef with comments. This is necessary, for example, | ||
20649 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
20650 | # on some systems where configure will not decide to define it. | ||
20651 | if (defundef == "undef") { | ||
20652 | print "/*", prefix defundef, macro, "*/" | ||
20653 | next | ||
20654 | } | ||
20655 | } | ||
20656 | } | ||
20657 | { print } | ||
20658 | _ACAWK | ||
20659 | _ACEOF | ||
20660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20661 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
20662 | fi # test -n "$CONFIG_HEADERS" | ||
20663 | |||
20664 | |||
20665 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
20666 | shift | ||
20667 | for ac_tag | ||
20668 | do | ||
20669 | case $ac_tag in | ||
20670 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
20671 | esac | ||
20672 | case $ac_mode$ac_tag in | ||
20673 | :[FHL]*:*);; | ||
20674 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
20675 | :[FH]-) ac_tag=-:-;; | ||
20676 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
20677 | esac | ||
20678 | ac_save_IFS=$IFS | ||
20679 | IFS=: | ||
20680 | set x $ac_tag | ||
20681 | IFS=$ac_save_IFS | ||
20682 | shift | ||
20683 | ac_file=$1 | ||
20684 | shift | ||
20685 | |||
20686 | case $ac_mode in | ||
20687 | :L) ac_source=$1;; | ||
20688 | :[FH]) | ||
20689 | ac_file_inputs= | ||
20690 | for ac_f | ||
20691 | do | ||
20692 | case $ac_f in | ||
20693 | -) ac_f="$ac_tmp/stdin";; | ||
20694 | *) # Look for the file first in the build tree, then in the source tree | ||
20695 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
20696 | # because $ac_f cannot contain `:'. | ||
20697 | test -f "$ac_f" || | ||
20698 | case $ac_f in | ||
20699 | [\\/$]*) false;; | ||
20700 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
20701 | esac || | ||
20702 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
20703 | esac | ||
20704 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
20705 | as_fn_append ac_file_inputs " '$ac_f'" | ||
20706 | done | ||
20707 | |||
20708 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
20709 | # use $as_me), people would be surprised to read: | ||
20710 | # /* config.h. Generated by config.status. */ | ||
20711 | configure_input='Generated from '` | ||
20712 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
20713 | `' by configure.' | ||
20714 | if test x"$ac_file" != x-; then | ||
20715 | configure_input="$ac_file. $configure_input" | ||
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
20717 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
20718 | fi | ||
20719 | # Neutralize special characters interpreted by sed in replacement strings. | ||
20720 | case $configure_input in #( | ||
20721 | *\&* | *\|* | *\\* ) | ||
20722 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
20723 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
20724 | *) ac_sed_conf_input=$configure_input;; | ||
20725 | esac | ||
20726 | |||
20727 | case $ac_tag in | ||
20728 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
20729 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
20730 | esac | ||
20731 | ;; | ||
20732 | esac | ||
20733 | |||
20734 | ac_dir=`$as_dirname -- "$ac_file" || | ||
20735 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
20736 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
20737 | X"$ac_file" : 'X\(//\)$' \| \ | ||
20738 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
20739 | $as_echo X"$ac_file" | | ||
20740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
20741 | s//\1/ | ||
20742 | q | ||
20743 | } | ||
20744 | /^X\(\/\/\)[^/].*/{ | ||
20745 | s//\1/ | ||
20746 | q | ||
20747 | } | ||
20748 | /^X\(\/\/\)$/{ | ||
20749 | s//\1/ | ||
20750 | q | ||
20751 | } | ||
20752 | /^X\(\/\).*/{ | ||
20753 | s//\1/ | ||
20754 | q | ||
20755 | } | ||
20756 | s/.*/./; q'` | ||
20757 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
20758 | ac_builddir=. | ||
20759 | |||
20760 | case "$ac_dir" in | ||
20761 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20762 | *) | ||
20763 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
20764 | # A ".." for each directory in $ac_dir_suffix. | ||
20765 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
20766 | case $ac_top_builddir_sub in | ||
20767 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20768 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
20769 | esac ;; | ||
20770 | esac | ||
20771 | ac_abs_top_builddir=$ac_pwd | ||
20772 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
20773 | # for backward compatibility: | ||
20774 | ac_top_builddir=$ac_top_build_prefix | ||
20775 | |||
20776 | case $srcdir in | ||
20777 | .) # We are building in place. | ||
20778 | ac_srcdir=. | ||
20779 | ac_top_srcdir=$ac_top_builddir_sub | ||
20780 | ac_abs_top_srcdir=$ac_pwd ;; | ||
20781 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
20782 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
20783 | ac_top_srcdir=$srcdir | ||
20784 | ac_abs_top_srcdir=$srcdir ;; | ||
20785 | *) # Relative name. | ||
20786 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
20787 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
20788 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
20789 | esac | ||
20790 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
20791 | |||
20792 | |||
20793 | case $ac_mode in | ||
20794 | :F) | ||
20795 | # | ||
20796 | # CONFIG_FILE | ||
20797 | # | ||
20798 | |||
20799 | case $INSTALL in | ||
20800 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
20801 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
20802 | esac | ||
20803 | ac_MKDIR_P=$MKDIR_P | ||
20804 | case $MKDIR_P in | ||
20805 | [\\/$]* | ?:[\\/]* ) ;; | ||
20806 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
20807 | esac | ||
20808 | _ACEOF | ||
20809 | |||
20810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20811 | # If the template does not know about datarootdir, expand it. | ||
20812 | # FIXME: This hack should be removed a few years after 2.60. | ||
20813 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
20814 | ac_sed_dataroot=' | ||
20815 | /datarootdir/ { | ||
20816 | p | ||
20817 | q | ||
20818 | } | ||
20819 | /@datadir@/p | ||
20820 | /@docdir@/p | ||
20821 | /@infodir@/p | ||
20822 | /@localedir@/p | ||
20823 | /@mandir@/p' | ||
20824 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
20825 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
20826 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
20827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
20828 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
20829 | _ACEOF | ||
20830 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20831 | ac_datarootdir_hack=' | ||
20832 | s&@datadir@&$datadir&g | ||
20833 | s&@docdir@&$docdir&g | ||
20834 | s&@infodir@&$infodir&g | ||
20835 | s&@localedir@&$localedir&g | ||
20836 | s&@mandir@&$mandir&g | ||
20837 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
20838 | esac | ||
20839 | _ACEOF | ||
20840 | |||
20841 | # Neutralize VPATH when `$srcdir' = `.'. | ||
20842 | # Shell code in configure.ac might set extrasub. | ||
20843 | # FIXME: do we really want to maintain this feature? | ||
20844 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20845 | ac_sed_extra="$ac_vpsub | ||
20846 | $extrasub | ||
20847 | _ACEOF | ||
20848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20849 | :t | ||
20850 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
20851 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
20852 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
20853 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
20854 | s&@srcdir@&$ac_srcdir&;t t | ||
20855 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
20856 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
20857 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
20858 | s&@builddir@&$ac_builddir&;t t | ||
20859 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
20860 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
20861 | s&@INSTALL@&$ac_INSTALL&;t t | ||
20862 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
20863 | $ac_datarootdir_hack | ||
20864 | " | ||
20865 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
20866 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20867 | |||
20868 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
20869 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
20870 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
20871 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
20872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20873 | which seems to be undefined. Please make sure it is defined" >&5 | ||
20874 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20875 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
20876 | |||
20877 | rm -f "$ac_tmp/stdin" | ||
20878 | case $ac_file in | ||
20879 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
20880 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
20881 | esac \ | ||
20882 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20883 | ;; | ||
20884 | :H) | ||
20885 | # | ||
20886 | # CONFIG_HEADER | ||
20887 | # | ||
20888 | if test x"$ac_file" != x-; then | ||
20889 | { | ||
20890 | $as_echo "/* $configure_input */" \ | ||
20891 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
20892 | } >"$ac_tmp/config.h" \ | ||
20893 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20894 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
20895 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
20896 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
20897 | else | ||
20898 | rm -f "$ac_file" | ||
20899 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
20900 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20901 | fi | ||
20902 | else | ||
20903 | $as_echo "/* $configure_input */" \ | ||
20904 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
20905 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
20906 | fi | ||
20907 | ;; | ||
20908 | |||
20909 | |||
20910 | esac | ||
20911 | |||
20912 | done # for ac_tag | ||
20913 | |||
20914 | |||
20915 | as_fn_exit 0 | ||
20916 | _ACEOF | ||
20917 | ac_clean_files=$ac_clean_files_save | ||
20918 | |||
20919 | test $ac_write_fail = 0 || | ||
20920 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
20921 | |||
20922 | |||
20923 | # configure is writing to config.log, and then calls config.status. | ||
20924 | # config.status does its own redirection, appending to config.log. | ||
20925 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
20926 | # by configure, so config.status won't be able to write to it; its | ||
20927 | # output is simply discarded. So we exec the FD to /dev/null, | ||
20928 | # effectively closing config.log, so it can be properly (re)opened and | ||
20929 | # appended to by config.status. When coming back to configure, we | ||
20930 | # need to make the FD available again. | ||
20931 | if test "$no_create" != yes; then | ||
20932 | ac_cs_success=: | ||
20933 | ac_config_status_args= | ||
20934 | test "$silent" = yes && | ||
20935 | ac_config_status_args="$ac_config_status_args --quiet" | ||
20936 | exec 5>/dev/null | ||
20937 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
20938 | exec 5>>config.log | ||
20939 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
20940 | # would make configure fail if this is the last instruction. | ||
20941 | $ac_cs_success || as_fn_exit 1 | ||
20942 | fi | ||
20943 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
20944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
20945 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
20946 | fi | ||
20947 | |||
20948 | |||
20949 | # Print summary of options | ||
20950 | |||
20951 | # Someone please show me a better way :) | ||
20952 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
20953 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
20954 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
20955 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
20956 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
20957 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
20958 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
20959 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
20960 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
20961 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
20962 | |||
20963 | echo "" | ||
20964 | echo "OpenSSH has been configured with the following options:" | ||
20965 | echo " User binaries: $B" | ||
20966 | echo " System binaries: $C" | ||
20967 | echo " Configuration files: $D" | ||
20968 | echo " Askpass program: $E" | ||
20969 | echo " Manual pages: $F" | ||
20970 | echo " PID file: $G" | ||
20971 | echo " Privilege separation chroot path: $H" | ||
20972 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
20973 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
20974 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
20975 | else | ||
20976 | echo " sshd default user PATH: $I" | ||
20977 | if test ! -z "$external_path_file"; then | ||
20978 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
20979 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
20980 | fi | ||
20981 | fi | ||
20982 | if test ! -z "$superuser_path" ; then | ||
20983 | echo " sshd superuser user PATH: $J" | ||
20984 | fi | ||
20985 | echo " Manpage format: $MANTYPE" | ||
20986 | echo " PAM support: $PAM_MSG" | ||
20987 | echo " OSF SIA support: $SIA_MSG" | ||
20988 | echo " KerberosV support: $KRB5_MSG" | ||
20989 | echo " SELinux support: $SELINUX_MSG" | ||
20990 | echo " MD5 password support: $MD5_MSG" | ||
20991 | echo " libedit support: $LIBEDIT_MSG" | ||
20992 | echo " libldns support: $LDNS_MSG" | ||
20993 | echo " Solaris process contract support: $SPC_MSG" | ||
20994 | echo " Solaris project support: $SP_MSG" | ||
20995 | echo " Solaris privilege support: $SPP_MSG" | ||
20996 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
20997 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
20998 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
20999 | echo " Random number source: $RAND_MSG" | ||
21000 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
21001 | |||
21002 | echo "" | ||
21003 | |||
21004 | echo " Host: ${host}" | ||
21005 | echo " Compiler: ${CC}" | ||
21006 | echo " Compiler flags: ${CFLAGS}" | ||
21007 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
21008 | echo " Linker flags: ${LDFLAGS}" | ||
21009 | echo " Libraries: ${LIBS}" | ||
21010 | if test ! -z "${SSHDLIBS}"; then | ||
21011 | echo " +for sshd: ${SSHDLIBS}" | ||
21012 | fi | ||
21013 | if test ! -z "${SSHLIBS}"; then | ||
21014 | echo " +for ssh: ${SSHLIBS}" | ||
21015 | fi | ||
21016 | |||
21017 | echo "" | ||
21018 | |||
21019 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
21020 | echo "SVR4 style packages are supported with \"make package\"" | ||
21021 | echo "" | ||
21022 | fi | ||
21023 | |||
21024 | if test "x$PAM_MSG" = "xyes" ; then | ||
21025 | echo "PAM is enabled. You may need to install a PAM control file " | ||
21026 | echo "for sshd, otherwise password authentication may fail. " | ||
21027 | echo "Example PAM control files can be found in the contrib/ " | ||
21028 | echo "subdirectory" | ||
21029 | echo "" | ||
21030 | fi | ||
21031 | |||
21032 | if test ! -z "$NO_PEERCHECK" ; then | ||
21033 | echo "WARNING: the operating system that you are using does not" | ||
21034 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
21035 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
21036 | echo "enforce security checks to prevent unauthorised connections to" | ||
21037 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
21038 | echo "user can connect to your agent." | ||
21039 | echo "" | ||
21040 | fi | ||
21041 | |||
21042 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
21043 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
21044 | echo "See the Solaris section in README.platform for details." | ||
21045 | fi | ||