diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21326 |
1 files changed, 21326 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..09db0a335 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,21326 @@ | |||
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 | CFLAGS_NOPIE | ||
628 | LDFLAGS_NOPIE | ||
629 | DEPEND | ||
630 | UNSUPPORTED_ALGORITHMS | ||
631 | TEST_MALLOC_OPTIONS | ||
632 | TEST_SSH_UTF8 | ||
633 | TEST_SSH_IPV6 | ||
634 | piddir | ||
635 | user_path | ||
636 | mansubdir | ||
637 | MANTYPE | ||
638 | XAUTH_PATH | ||
639 | STRIP_OPT | ||
640 | xauth_path | ||
641 | PRIVSEP_PATH | ||
642 | K5LIBS | ||
643 | GSSLIBS | ||
644 | KRB5CONF | ||
645 | SSHDLIBS | ||
646 | SSHLIBS | ||
647 | SSH_PRIVSEP_USER | ||
648 | LIBFIDO2 | ||
649 | COMMENT_OUT_ECC | ||
650 | TEST_SSH_ECC | ||
651 | PICFLAG | ||
652 | LIBEDIT | ||
653 | PKGCONFIG | ||
654 | LDNSCONFIG | ||
655 | LIBOBJS | ||
656 | LD | ||
657 | PATH_PASSWD_PROG | ||
658 | STARTUP_SCRIPT_SHELL | ||
659 | MAKE_PACKAGE_SUPPORTED | ||
660 | PATH_USERADD_PROG | ||
661 | PATH_GROUPADD_PROG | ||
662 | MANFMT | ||
663 | TEST_SHELL | ||
664 | MANDOC | ||
665 | NROFF | ||
666 | GROFF | ||
667 | SH | ||
668 | TEST_MINUS_S_SH | ||
669 | ENT | ||
670 | SED | ||
671 | KILL | ||
672 | CAT | ||
673 | ac_ct_AR | ||
674 | AR | ||
675 | MKDIR_P | ||
676 | INSTALL_DATA | ||
677 | INSTALL_SCRIPT | ||
678 | INSTALL_PROGRAM | ||
679 | RANLIB | ||
680 | AWK | ||
681 | EGREP | ||
682 | GREP | ||
683 | CPP | ||
684 | host_os | ||
685 | host_vendor | ||
686 | host_cpu | ||
687 | host | ||
688 | build_os | ||
689 | build_vendor | ||
690 | build_cpu | ||
691 | build | ||
692 | OBJEXT | ||
693 | EXEEXT | ||
694 | ac_ct_CC | ||
695 | CPPFLAGS | ||
696 | LDFLAGS | ||
697 | CFLAGS | ||
698 | CC | ||
699 | target_alias | ||
700 | host_alias | ||
701 | build_alias | ||
702 | LIBS | ||
703 | ECHO_T | ||
704 | ECHO_N | ||
705 | ECHO_C | ||
706 | DEFS | ||
707 | mandir | ||
708 | localedir | ||
709 | libdir | ||
710 | psdir | ||
711 | pdfdir | ||
712 | dvidir | ||
713 | htmldir | ||
714 | infodir | ||
715 | docdir | ||
716 | oldincludedir | ||
717 | includedir | ||
718 | localstatedir | ||
719 | sharedstatedir | ||
720 | sysconfdir | ||
721 | datadir | ||
722 | datarootdir | ||
723 | libexecdir | ||
724 | sbindir | ||
725 | bindir | ||
726 | program_transform_name | ||
727 | prefix | ||
728 | exec_prefix | ||
729 | PACKAGE_URL | ||
730 | PACKAGE_BUGREPORT | ||
731 | PACKAGE_STRING | ||
732 | PACKAGE_VERSION | ||
733 | PACKAGE_TARNAME | ||
734 | PACKAGE_NAME | ||
735 | PATH_SEPARATOR | ||
736 | SHELL' | ||
737 | ac_subst_files='' | ||
738 | ac_user_opts=' | ||
739 | enable_option_checking | ||
740 | enable_largefile | ||
741 | with_openssl | ||
742 | with_stackprotect | ||
743 | with_hardening | ||
744 | with_rpath | ||
745 | with_cflags | ||
746 | with_cflags_after | ||
747 | with_cppflags | ||
748 | with_ldflags | ||
749 | with_ldflags_after | ||
750 | with_libs | ||
751 | with_Werror | ||
752 | with_solaris_contracts | ||
753 | with_solaris_projects | ||
754 | with_solaris_privs | ||
755 | with_osfsia | ||
756 | with_zlib | ||
757 | with_zlib_version_check | ||
758 | with_ldns | ||
759 | with_libedit | ||
760 | with_audit | ||
761 | with_pie | ||
762 | enable_pkcs11 | ||
763 | enable_security_key | ||
764 | with_security_key_builtin | ||
765 | with_ssl_dir | ||
766 | with_openssl_header_check | ||
767 | with_ssl_engine | ||
768 | with_prngd_port | ||
769 | with_prngd_socket | ||
770 | with_pam | ||
771 | with_pam_service | ||
772 | with_privsep_user | ||
773 | with_sandbox | ||
774 | with_selinux | ||
775 | with_kerberos5 | ||
776 | with_privsep_path | ||
777 | with_xauth | ||
778 | enable_strip | ||
779 | with_maildir | ||
780 | with_mantype | ||
781 | with_md5_passwords | ||
782 | with_shadow | ||
783 | with_ipaddr_display | ||
784 | enable_etc_default_login | ||
785 | with_default_path | ||
786 | with_superuser_path | ||
787 | with_4in6 | ||
788 | with_bsd_auth | ||
789 | with_pid_dir | ||
790 | enable_lastlog | ||
791 | enable_utmp | ||
792 | enable_utmpx | ||
793 | enable_wtmp | ||
794 | enable_wtmpx | ||
795 | enable_libutil | ||
796 | enable_pututline | ||
797 | enable_pututxline | ||
798 | with_lastlog | ||
799 | ' | ||
800 | ac_precious_vars='build_alias | ||
801 | host_alias | ||
802 | target_alias | ||
803 | CC | ||
804 | CFLAGS | ||
805 | LDFLAGS | ||
806 | LIBS | ||
807 | CPPFLAGS | ||
808 | CPP' | ||
809 | |||
810 | |||
811 | # Initialize some variables set by options. | ||
812 | ac_init_help= | ||
813 | ac_init_version=false | ||
814 | ac_unrecognized_opts= | ||
815 | ac_unrecognized_sep= | ||
816 | # The variables have the same names as the options, with | ||
817 | # dashes changed to underlines. | ||
818 | cache_file=/dev/null | ||
819 | exec_prefix=NONE | ||
820 | no_create= | ||
821 | no_recursion= | ||
822 | prefix=NONE | ||
823 | program_prefix=NONE | ||
824 | program_suffix=NONE | ||
825 | program_transform_name=s,x,x, | ||
826 | silent= | ||
827 | site= | ||
828 | srcdir= | ||
829 | verbose= | ||
830 | x_includes=NONE | ||
831 | x_libraries=NONE | ||
832 | |||
833 | # Installation directory options. | ||
834 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
835 | # and all the variables that are supposed to be based on exec_prefix | ||
836 | # by default will actually change. | ||
837 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
838 | # (The list follows the same order as the GNU Coding Standards.) | ||
839 | bindir='${exec_prefix}/bin' | ||
840 | sbindir='${exec_prefix}/sbin' | ||
841 | libexecdir='${exec_prefix}/libexec' | ||
842 | datarootdir='${prefix}/share' | ||
843 | datadir='${datarootdir}' | ||
844 | sysconfdir='${prefix}/etc' | ||
845 | sharedstatedir='${prefix}/com' | ||
846 | localstatedir='${prefix}/var' | ||
847 | includedir='${prefix}/include' | ||
848 | oldincludedir='/usr/include' | ||
849 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
850 | infodir='${datarootdir}/info' | ||
851 | htmldir='${docdir}' | ||
852 | dvidir='${docdir}' | ||
853 | pdfdir='${docdir}' | ||
854 | psdir='${docdir}' | ||
855 | libdir='${exec_prefix}/lib' | ||
856 | localedir='${datarootdir}/locale' | ||
857 | mandir='${datarootdir}/man' | ||
858 | |||
859 | ac_prev= | ||
860 | ac_dashdash= | ||
861 | for ac_option | ||
862 | do | ||
863 | # If the previous option needs an argument, assign it. | ||
864 | if test -n "$ac_prev"; then | ||
865 | eval $ac_prev=\$ac_option | ||
866 | ac_prev= | ||
867 | continue | ||
868 | fi | ||
869 | |||
870 | case $ac_option in | ||
871 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
872 | *=) ac_optarg= ;; | ||
873 | *) ac_optarg=yes ;; | ||
874 | esac | ||
875 | |||
876 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
877 | |||
878 | case $ac_dashdash$ac_option in | ||
879 | --) | ||
880 | ac_dashdash=yes ;; | ||
881 | |||
882 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
883 | ac_prev=bindir ;; | ||
884 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
885 | bindir=$ac_optarg ;; | ||
886 | |||
887 | -build | --build | --buil | --bui | --bu) | ||
888 | ac_prev=build_alias ;; | ||
889 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
890 | build_alias=$ac_optarg ;; | ||
891 | |||
892 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
893 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
894 | ac_prev=cache_file ;; | ||
895 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
896 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
897 | cache_file=$ac_optarg ;; | ||
898 | |||
899 | --config-cache | -C) | ||
900 | cache_file=config.cache ;; | ||
901 | |||
902 | -datadir | --datadir | --datadi | --datad) | ||
903 | ac_prev=datadir ;; | ||
904 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
905 | datadir=$ac_optarg ;; | ||
906 | |||
907 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
908 | | --dataroo | --dataro | --datar) | ||
909 | ac_prev=datarootdir ;; | ||
910 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
911 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
912 | datarootdir=$ac_optarg ;; | ||
913 | |||
914 | -disable-* | --disable-*) | ||
915 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
916 | # Reject names that are not valid shell variable names. | ||
917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
918 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
919 | ac_useropt_orig=$ac_useropt | ||
920 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
921 | case $ac_user_opts in | ||
922 | *" | ||
923 | "enable_$ac_useropt" | ||
924 | "*) ;; | ||
925 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
926 | ac_unrecognized_sep=', ';; | ||
927 | esac | ||
928 | eval enable_$ac_useropt=no ;; | ||
929 | |||
930 | -docdir | --docdir | --docdi | --doc | --do) | ||
931 | ac_prev=docdir ;; | ||
932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
933 | docdir=$ac_optarg ;; | ||
934 | |||
935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
936 | ac_prev=dvidir ;; | ||
937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
938 | dvidir=$ac_optarg ;; | ||
939 | |||
940 | -enable-* | --enable-*) | ||
941 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
942 | # Reject names that are not valid shell variable names. | ||
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
944 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
945 | ac_useropt_orig=$ac_useropt | ||
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
947 | case $ac_user_opts in | ||
948 | *" | ||
949 | "enable_$ac_useropt" | ||
950 | "*) ;; | ||
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
952 | ac_unrecognized_sep=', ';; | ||
953 | esac | ||
954 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
955 | |||
956 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
957 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
958 | | --exec | --exe | --ex) | ||
959 | ac_prev=exec_prefix ;; | ||
960 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
961 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
962 | | --exec=* | --exe=* | --ex=*) | ||
963 | exec_prefix=$ac_optarg ;; | ||
964 | |||
965 | -gas | --gas | --ga | --g) | ||
966 | # Obsolete; use --with-gas. | ||
967 | with_gas=yes ;; | ||
968 | |||
969 | -help | --help | --hel | --he | -h) | ||
970 | ac_init_help=long ;; | ||
971 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
972 | ac_init_help=recursive ;; | ||
973 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
974 | ac_init_help=short ;; | ||
975 | |||
976 | -host | --host | --hos | --ho) | ||
977 | ac_prev=host_alias ;; | ||
978 | -host=* | --host=* | --hos=* | --ho=*) | ||
979 | host_alias=$ac_optarg ;; | ||
980 | |||
981 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
982 | ac_prev=htmldir ;; | ||
983 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
984 | | --ht=*) | ||
985 | htmldir=$ac_optarg ;; | ||
986 | |||
987 | -includedir | --includedir | --includedi | --included | --include \ | ||
988 | | --includ | --inclu | --incl | --inc) | ||
989 | ac_prev=includedir ;; | ||
990 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
991 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
992 | includedir=$ac_optarg ;; | ||
993 | |||
994 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
995 | ac_prev=infodir ;; | ||
996 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
997 | infodir=$ac_optarg ;; | ||
998 | |||
999 | -libdir | --libdir | --libdi | --libd) | ||
1000 | ac_prev=libdir ;; | ||
1001 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1002 | libdir=$ac_optarg ;; | ||
1003 | |||
1004 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1005 | | --libexe | --libex | --libe) | ||
1006 | ac_prev=libexecdir ;; | ||
1007 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1008 | | --libexe=* | --libex=* | --libe=*) | ||
1009 | libexecdir=$ac_optarg ;; | ||
1010 | |||
1011 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1012 | ac_prev=localedir ;; | ||
1013 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1014 | localedir=$ac_optarg ;; | ||
1015 | |||
1016 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1017 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1018 | ac_prev=localstatedir ;; | ||
1019 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1020 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1021 | localstatedir=$ac_optarg ;; | ||
1022 | |||
1023 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1024 | ac_prev=mandir ;; | ||
1025 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1026 | mandir=$ac_optarg ;; | ||
1027 | |||
1028 | -nfp | --nfp | --nf) | ||
1029 | # Obsolete; use --without-fp. | ||
1030 | with_fp=no ;; | ||
1031 | |||
1032 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1033 | | --no-cr | --no-c | -n) | ||
1034 | no_create=yes ;; | ||
1035 | |||
1036 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1037 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1038 | no_recursion=yes ;; | ||
1039 | |||
1040 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1041 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1042 | | --oldin | --oldi | --old | --ol | --o) | ||
1043 | ac_prev=oldincludedir ;; | ||
1044 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1045 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1046 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1047 | oldincludedir=$ac_optarg ;; | ||
1048 | |||
1049 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1050 | ac_prev=prefix ;; | ||
1051 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1052 | prefix=$ac_optarg ;; | ||
1053 | |||
1054 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1055 | | --program-pre | --program-pr | --program-p) | ||
1056 | ac_prev=program_prefix ;; | ||
1057 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1058 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1059 | program_prefix=$ac_optarg ;; | ||
1060 | |||
1061 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1062 | | --program-suf | --program-su | --program-s) | ||
1063 | ac_prev=program_suffix ;; | ||
1064 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1065 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1066 | program_suffix=$ac_optarg ;; | ||
1067 | |||
1068 | -program-transform-name | --program-transform-name \ | ||
1069 | | --program-transform-nam | --program-transform-na \ | ||
1070 | | --program-transform-n | --program-transform- \ | ||
1071 | | --program-transform | --program-transfor \ | ||
1072 | | --program-transfo | --program-transf \ | ||
1073 | | --program-trans | --program-tran \ | ||
1074 | | --progr-tra | --program-tr | --program-t) | ||
1075 | ac_prev=program_transform_name ;; | ||
1076 | -program-transform-name=* | --program-transform-name=* \ | ||
1077 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1078 | | --program-transform-n=* | --program-transform-=* \ | ||
1079 | | --program-transform=* | --program-transfor=* \ | ||
1080 | | --program-transfo=* | --program-transf=* \ | ||
1081 | | --program-trans=* | --program-tran=* \ | ||
1082 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1083 | program_transform_name=$ac_optarg ;; | ||
1084 | |||
1085 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1086 | ac_prev=pdfdir ;; | ||
1087 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1088 | pdfdir=$ac_optarg ;; | ||
1089 | |||
1090 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1091 | ac_prev=psdir ;; | ||
1092 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1093 | psdir=$ac_optarg ;; | ||
1094 | |||
1095 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1096 | | -silent | --silent | --silen | --sile | --sil) | ||
1097 | silent=yes ;; | ||
1098 | |||
1099 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1100 | ac_prev=sbindir ;; | ||
1101 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1102 | | --sbi=* | --sb=*) | ||
1103 | sbindir=$ac_optarg ;; | ||
1104 | |||
1105 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1106 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1107 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1108 | | --sha | --sh) | ||
1109 | ac_prev=sharedstatedir ;; | ||
1110 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1111 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1112 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1113 | | --sha=* | --sh=*) | ||
1114 | sharedstatedir=$ac_optarg ;; | ||
1115 | |||
1116 | -site | --site | --sit) | ||
1117 | ac_prev=site ;; | ||
1118 | -site=* | --site=* | --sit=*) | ||
1119 | site=$ac_optarg ;; | ||
1120 | |||
1121 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1122 | ac_prev=srcdir ;; | ||
1123 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1124 | srcdir=$ac_optarg ;; | ||
1125 | |||
1126 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1127 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1128 | ac_prev=sysconfdir ;; | ||
1129 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1130 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1131 | sysconfdir=$ac_optarg ;; | ||
1132 | |||
1133 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1134 | ac_prev=target_alias ;; | ||
1135 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1136 | target_alias=$ac_optarg ;; | ||
1137 | |||
1138 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1139 | verbose=yes ;; | ||
1140 | |||
1141 | -version | --version | --versio | --versi | --vers | -V) | ||
1142 | ac_init_version=: ;; | ||
1143 | |||
1144 | -with-* | --with-*) | ||
1145 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1146 | # Reject names that are not valid shell variable names. | ||
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1148 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1149 | ac_useropt_orig=$ac_useropt | ||
1150 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1151 | case $ac_user_opts in | ||
1152 | *" | ||
1153 | "with_$ac_useropt" | ||
1154 | "*) ;; | ||
1155 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1156 | ac_unrecognized_sep=', ';; | ||
1157 | esac | ||
1158 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1159 | |||
1160 | -without-* | --without-*) | ||
1161 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1162 | # Reject names that are not valid shell variable names. | ||
1163 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1164 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1165 | ac_useropt_orig=$ac_useropt | ||
1166 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1167 | case $ac_user_opts in | ||
1168 | *" | ||
1169 | "with_$ac_useropt" | ||
1170 | "*) ;; | ||
1171 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1172 | ac_unrecognized_sep=', ';; | ||
1173 | esac | ||
1174 | eval with_$ac_useropt=no ;; | ||
1175 | |||
1176 | --x) | ||
1177 | # Obsolete; use --with-x. | ||
1178 | with_x=yes ;; | ||
1179 | |||
1180 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1181 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1182 | ac_prev=x_includes ;; | ||
1183 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1184 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1185 | x_includes=$ac_optarg ;; | ||
1186 | |||
1187 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1188 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1189 | ac_prev=x_libraries ;; | ||
1190 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1191 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1192 | x_libraries=$ac_optarg ;; | ||
1193 | |||
1194 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1195 | Try \`$0 --help' for more information" | ||
1196 | ;; | ||
1197 | |||
1198 | *=*) | ||
1199 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1200 | # Reject names that are not valid shell variable names. | ||
1201 | case $ac_envvar in #( | ||
1202 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1203 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1204 | esac | ||
1205 | eval $ac_envvar=\$ac_optarg | ||
1206 | export $ac_envvar ;; | ||
1207 | |||
1208 | *) | ||
1209 | # FIXME: should be removed in autoconf 3.0. | ||
1210 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1211 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1212 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1213 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1214 | ;; | ||
1215 | |||
1216 | esac | ||
1217 | done | ||
1218 | |||
1219 | if test -n "$ac_prev"; then | ||
1220 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1221 | as_fn_error $? "missing argument to $ac_option" | ||
1222 | fi | ||
1223 | |||
1224 | if test -n "$ac_unrecognized_opts"; then | ||
1225 | case $enable_option_checking in | ||
1226 | no) ;; | ||
1227 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1228 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1229 | esac | ||
1230 | fi | ||
1231 | |||
1232 | # Check all directory arguments for consistency. | ||
1233 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1234 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1235 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1236 | libdir localedir mandir | ||
1237 | do | ||
1238 | eval ac_val=\$$ac_var | ||
1239 | # Remove trailing slashes. | ||
1240 | case $ac_val in | ||
1241 | */ ) | ||
1242 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1243 | eval $ac_var=\$ac_val;; | ||
1244 | esac | ||
1245 | # Be sure to have absolute directory names. | ||
1246 | case $ac_val in | ||
1247 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1248 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1249 | esac | ||
1250 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1251 | done | ||
1252 | |||
1253 | # There might be people who depend on the old broken behavior: `$host' | ||
1254 | # used to hold the argument of --host etc. | ||
1255 | # FIXME: To remove some day. | ||
1256 | build=$build_alias | ||
1257 | host=$host_alias | ||
1258 | target=$target_alias | ||
1259 | |||
1260 | # FIXME: To remove some day. | ||
1261 | if test "x$host_alias" != x; then | ||
1262 | if test "x$build_alias" = x; then | ||
1263 | cross_compiling=maybe | ||
1264 | elif test "x$build_alias" != "x$host_alias"; then | ||
1265 | cross_compiling=yes | ||
1266 | fi | ||
1267 | fi | ||
1268 | |||
1269 | ac_tool_prefix= | ||
1270 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1271 | |||
1272 | test "$silent" = yes && exec 6>/dev/null | ||
1273 | |||
1274 | |||
1275 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1276 | ac_ls_di=`ls -di .` && | ||
1277 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1278 | as_fn_error $? "working directory cannot be determined" | ||
1279 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1280 | as_fn_error $? "pwd does not report name of working directory" | ||
1281 | |||
1282 | |||
1283 | # Find the source files, if location was not specified. | ||
1284 | if test -z "$srcdir"; then | ||
1285 | ac_srcdir_defaulted=yes | ||
1286 | # Try the directory containing this script, then the parent directory. | ||
1287 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1288 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1289 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1290 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1291 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1292 | $as_echo X"$as_myself" | | ||
1293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1294 | s//\1/ | ||
1295 | q | ||
1296 | } | ||
1297 | /^X\(\/\/\)[^/].*/{ | ||
1298 | s//\1/ | ||
1299 | q | ||
1300 | } | ||
1301 | /^X\(\/\/\)$/{ | ||
1302 | s//\1/ | ||
1303 | q | ||
1304 | } | ||
1305 | /^X\(\/\).*/{ | ||
1306 | s//\1/ | ||
1307 | q | ||
1308 | } | ||
1309 | s/.*/./; q'` | ||
1310 | srcdir=$ac_confdir | ||
1311 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1312 | srcdir=.. | ||
1313 | fi | ||
1314 | else | ||
1315 | ac_srcdir_defaulted=no | ||
1316 | fi | ||
1317 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1318 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1319 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1320 | fi | ||
1321 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1322 | ac_abs_confdir=`( | ||
1323 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1324 | pwd)` | ||
1325 | # When building in place, set srcdir=. | ||
1326 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1327 | srcdir=. | ||
1328 | fi | ||
1329 | # Remove unnecessary trailing slashes from srcdir. | ||
1330 | # Double slashes in file names in object file debugging info | ||
1331 | # mess up M-x gdb in Emacs. | ||
1332 | case $srcdir in | ||
1333 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1334 | esac | ||
1335 | for ac_var in $ac_precious_vars; do | ||
1336 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1337 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1338 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1339 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1340 | done | ||
1341 | |||
1342 | # | ||
1343 | # Report the --help message. | ||
1344 | # | ||
1345 | if test "$ac_init_help" = "long"; then | ||
1346 | # Omit some internal or obsolete options to make the list less imposing. | ||
1347 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1348 | cat <<_ACEOF | ||
1349 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1350 | |||
1351 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1352 | |||
1353 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1354 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1355 | |||
1356 | Defaults for the options are specified in brackets. | ||
1357 | |||
1358 | Configuration: | ||
1359 | -h, --help display this help and exit | ||
1360 | --help=short display options specific to this package | ||
1361 | --help=recursive display the short help of all the included packages | ||
1362 | -V, --version display version information and exit | ||
1363 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1364 | --cache-file=FILE cache test results in FILE [disabled] | ||
1365 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1366 | -n, --no-create do not create output files | ||
1367 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1368 | |||
1369 | Installation directories: | ||
1370 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1371 | [$ac_default_prefix] | ||
1372 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1373 | [PREFIX] | ||
1374 | |||
1375 | By default, \`make install' will install all the files in | ||
1376 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1377 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1378 | for instance \`--prefix=\$HOME'. | ||
1379 | |||
1380 | For better control, use the options below. | ||
1381 | |||
1382 | Fine tuning of the installation directories: | ||
1383 | --bindir=DIR user executables [EPREFIX/bin] | ||
1384 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1385 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1386 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1387 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1388 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1389 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1390 | --includedir=DIR C header files [PREFIX/include] | ||
1391 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1392 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1393 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1394 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1395 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1396 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1397 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1398 | --htmldir=DIR html documentation [DOCDIR] | ||
1399 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1400 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1401 | --psdir=DIR ps documentation [DOCDIR] | ||
1402 | _ACEOF | ||
1403 | |||
1404 | cat <<\_ACEOF | ||
1405 | |||
1406 | System types: | ||
1407 | --build=BUILD configure for building on BUILD [guessed] | ||
1408 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1409 | _ACEOF | ||
1410 | fi | ||
1411 | |||
1412 | if test -n "$ac_init_help"; then | ||
1413 | case $ac_init_help in | ||
1414 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1415 | esac | ||
1416 | cat <<\_ACEOF | ||
1417 | |||
1418 | Optional Features: | ||
1419 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1420 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1421 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1422 | --disable-largefile omit support for large files | ||
1423 | --disable-pkcs11 disable PKCS#11 support code [no] | ||
1424 | --disable-security-key disable U2F/FIDO support code no | ||
1425 | --disable-strip Disable calling strip(1) on install | ||
1426 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1427 | --disable-lastlog disable use of lastlog even if detected no | ||
1428 | --disable-utmp disable use of utmp even if detected no | ||
1429 | --disable-utmpx disable use of utmpx even if detected no | ||
1430 | --disable-wtmp disable use of wtmp even if detected no | ||
1431 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1432 | --disable-libutil disable use of libutil (login() etc.) no | ||
1433 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1434 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1435 | |||
1436 | Optional Packages: | ||
1437 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1438 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1439 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1440 | --without-stackprotect Don't use compiler's stack protection | ||
1441 | --without-hardening Don't use toolchain hardening flags | ||
1442 | --without-rpath Disable auto-added -R linker paths | ||
1443 | --with-cflags Specify additional flags to pass to compiler | ||
1444 | --with-cflags-after Specify additional flags to pass to compiler after configure | ||
1445 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1446 | --with-ldflags Specify additional flags to pass to linker | ||
1447 | --with-ldflags-after Specify additional flags to pass to linker after configure | ||
1448 | --with-libs Specify additional libraries to link with | ||
1449 | --with-Werror Build main code with -Werror | ||
1450 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1451 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1452 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) | ||
1453 | --with-osfsia Enable Digital Unix SIA | ||
1454 | --with-zlib=PATH Use zlib in PATH | ||
1455 | --without-zlib-version-check Disable zlib version check | ||
1456 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1457 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1458 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1459 | --with-pie Build Position Independent Executables if possible | ||
1460 | --with-security-key-builtin include builtin U2F/FIDO support | ||
1461 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1462 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1463 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1464 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1465 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1466 | --with-pam Enable PAM support | ||
1467 | --with-pam-service=name Specify PAM service name | ||
1468 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1469 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) | ||
1470 | --with-selinux Enable SELinux support | ||
1471 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1472 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1473 | --with-xauth=PATH Specify path to xauth program | ||
1474 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1475 | --with-mantype=man|cat|doc Set man page type | ||
1476 | --with-md5-passwords Enable use of MD5 passwords | ||
1477 | --without-shadow Disable shadow password support | ||
1478 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1479 | --with-default-path= Specify default $PATH environment for server | ||
1480 | --with-superuser-path= Specify different path for super-user | ||
1481 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1482 | --with-bsd-auth Enable BSD auth support | ||
1483 | --with-pid-dir=PATH Specify location of sshd.pid file | ||
1484 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1485 | |||
1486 | Some influential environment variables: | ||
1487 | CC C compiler command | ||
1488 | CFLAGS C compiler flags | ||
1489 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1490 | nonstandard directory <lib dir> | ||
1491 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1492 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1493 | you have headers in a nonstandard directory <include dir> | ||
1494 | CPP C preprocessor | ||
1495 | |||
1496 | Use these variables to override the choices made by `configure' or to help | ||
1497 | it to find libraries and programs with nonstandard names/locations. | ||
1498 | |||
1499 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1500 | _ACEOF | ||
1501 | ac_status=$? | ||
1502 | fi | ||
1503 | |||
1504 | if test "$ac_init_help" = "recursive"; then | ||
1505 | # If there are subdirs, report their specific --help. | ||
1506 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1507 | test -d "$ac_dir" || | ||
1508 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1509 | continue | ||
1510 | ac_builddir=. | ||
1511 | |||
1512 | case "$ac_dir" in | ||
1513 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1514 | *) | ||
1515 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1516 | # A ".." for each directory in $ac_dir_suffix. | ||
1517 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1518 | case $ac_top_builddir_sub in | ||
1519 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1520 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1521 | esac ;; | ||
1522 | esac | ||
1523 | ac_abs_top_builddir=$ac_pwd | ||
1524 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1525 | # for backward compatibility: | ||
1526 | ac_top_builddir=$ac_top_build_prefix | ||
1527 | |||
1528 | case $srcdir in | ||
1529 | .) # We are building in place. | ||
1530 | ac_srcdir=. | ||
1531 | ac_top_srcdir=$ac_top_builddir_sub | ||
1532 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1533 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1534 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1535 | ac_top_srcdir=$srcdir | ||
1536 | ac_abs_top_srcdir=$srcdir ;; | ||
1537 | *) # Relative name. | ||
1538 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1539 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1540 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1541 | esac | ||
1542 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1543 | |||
1544 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1545 | # Check for guested configure. | ||
1546 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1547 | echo && | ||
1548 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1549 | elif test -f "$ac_srcdir/configure"; then | ||
1550 | echo && | ||
1551 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1552 | else | ||
1553 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1554 | fi || ac_status=$? | ||
1555 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1556 | done | ||
1557 | fi | ||
1558 | |||
1559 | test -n "$ac_init_help" && exit $ac_status | ||
1560 | if $ac_init_version; then | ||
1561 | cat <<\_ACEOF | ||
1562 | OpenSSH configure Portable | ||
1563 | generated by GNU Autoconf 2.69 | ||
1564 | |||
1565 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
1566 | This configure script is free software; the Free Software Foundation | ||
1567 | gives unlimited permission to copy, distribute and modify it. | ||
1568 | _ACEOF | ||
1569 | exit | ||
1570 | fi | ||
1571 | |||
1572 | ## ------------------------ ## | ||
1573 | ## Autoconf initialization. ## | ||
1574 | ## ------------------------ ## | ||
1575 | |||
1576 | # ac_fn_c_try_compile LINENO | ||
1577 | # -------------------------- | ||
1578 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1579 | ac_fn_c_try_compile () | ||
1580 | { | ||
1581 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1582 | rm -f conftest.$ac_objext | ||
1583 | if { { ac_try="$ac_compile" | ||
1584 | case "(($ac_try" in | ||
1585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1586 | *) ac_try_echo=$ac_try;; | ||
1587 | esac | ||
1588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1589 | $as_echo "$ac_try_echo"; } >&5 | ||
1590 | (eval "$ac_compile") 2>conftest.err | ||
1591 | ac_status=$? | ||
1592 | if test -s conftest.err; then | ||
1593 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1594 | cat conftest.er1 >&5 | ||
1595 | mv -f conftest.er1 conftest.err | ||
1596 | fi | ||
1597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1598 | test $ac_status = 0; } && { | ||
1599 | test -z "$ac_c_werror_flag" || | ||
1600 | test ! -s conftest.err | ||
1601 | } && test -s conftest.$ac_objext; then : | ||
1602 | ac_retval=0 | ||
1603 | else | ||
1604 | $as_echo "$as_me: failed program was:" >&5 | ||
1605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1606 | |||
1607 | ac_retval=1 | ||
1608 | fi | ||
1609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1610 | as_fn_set_status $ac_retval | ||
1611 | |||
1612 | } # ac_fn_c_try_compile | ||
1613 | |||
1614 | # ac_fn_c_try_run LINENO | ||
1615 | # ---------------------- | ||
1616 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1617 | # that executables *can* be run. | ||
1618 | ac_fn_c_try_run () | ||
1619 | { | ||
1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1621 | if { { ac_try="$ac_link" | ||
1622 | case "(($ac_try" in | ||
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1624 | *) ac_try_echo=$ac_try;; | ||
1625 | esac | ||
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1627 | $as_echo "$ac_try_echo"; } >&5 | ||
1628 | (eval "$ac_link") 2>&5 | ||
1629 | ac_status=$? | ||
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1631 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1632 | { { case "(($ac_try" in | ||
1633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1634 | *) ac_try_echo=$ac_try;; | ||
1635 | esac | ||
1636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1637 | $as_echo "$ac_try_echo"; } >&5 | ||
1638 | (eval "$ac_try") 2>&5 | ||
1639 | ac_status=$? | ||
1640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1641 | test $ac_status = 0; }; }; then : | ||
1642 | ac_retval=0 | ||
1643 | else | ||
1644 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1645 | $as_echo "$as_me: failed program was:" >&5 | ||
1646 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1647 | |||
1648 | ac_retval=$ac_status | ||
1649 | fi | ||
1650 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1651 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1652 | as_fn_set_status $ac_retval | ||
1653 | |||
1654 | } # ac_fn_c_try_run | ||
1655 | |||
1656 | # ac_fn_c_try_cpp LINENO | ||
1657 | # ---------------------- | ||
1658 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1659 | ac_fn_c_try_cpp () | ||
1660 | { | ||
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1662 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1663 | case "(($ac_try" in | ||
1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1665 | *) ac_try_echo=$ac_try;; | ||
1666 | esac | ||
1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1668 | $as_echo "$ac_try_echo"; } >&5 | ||
1669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1670 | ac_status=$? | ||
1671 | if test -s conftest.err; then | ||
1672 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1673 | cat conftest.er1 >&5 | ||
1674 | mv -f conftest.er1 conftest.err | ||
1675 | fi | ||
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1677 | test $ac_status = 0; } > conftest.i && { | ||
1678 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1679 | test ! -s conftest.err | ||
1680 | }; then : | ||
1681 | ac_retval=0 | ||
1682 | else | ||
1683 | $as_echo "$as_me: failed program was:" >&5 | ||
1684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1685 | |||
1686 | ac_retval=1 | ||
1687 | fi | ||
1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1689 | as_fn_set_status $ac_retval | ||
1690 | |||
1691 | } # ac_fn_c_try_cpp | ||
1692 | |||
1693 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1694 | # ------------------------------------------------------- | ||
1695 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1696 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1697 | ac_fn_c_check_header_compile () | ||
1698 | { | ||
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1701 | $as_echo_n "checking for $2... " >&6; } | ||
1702 | if eval \${$3+:} false; then : | ||
1703 | $as_echo_n "(cached) " >&6 | ||
1704 | else | ||
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1706 | /* end confdefs.h. */ | ||
1707 | $4 | ||
1708 | #include <$2> | ||
1709 | _ACEOF | ||
1710 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1711 | eval "$3=yes" | ||
1712 | else | ||
1713 | eval "$3=no" | ||
1714 | fi | ||
1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1716 | fi | ||
1717 | eval ac_res=\$$3 | ||
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1719 | $as_echo "$ac_res" >&6; } | ||
1720 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1721 | |||
1722 | } # ac_fn_c_check_header_compile | ||
1723 | |||
1724 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1725 | # --------------------------------------------- | ||
1726 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1727 | # accordingly. | ||
1728 | ac_fn_c_check_decl () | ||
1729 | { | ||
1730 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1731 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1732 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1734 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1735 | if eval \${$3+:} false; then : | ||
1736 | $as_echo_n "(cached) " >&6 | ||
1737 | else | ||
1738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1739 | /* end confdefs.h. */ | ||
1740 | $4 | ||
1741 | int | ||
1742 | main () | ||
1743 | { | ||
1744 | #ifndef $as_decl_name | ||
1745 | #ifdef __cplusplus | ||
1746 | (void) $as_decl_use; | ||
1747 | #else | ||
1748 | (void) $as_decl_name; | ||
1749 | #endif | ||
1750 | #endif | ||
1751 | |||
1752 | ; | ||
1753 | return 0; | ||
1754 | } | ||
1755 | _ACEOF | ||
1756 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1757 | eval "$3=yes" | ||
1758 | else | ||
1759 | eval "$3=no" | ||
1760 | fi | ||
1761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1762 | fi | ||
1763 | eval ac_res=\$$3 | ||
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1765 | $as_echo "$ac_res" >&6; } | ||
1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1767 | |||
1768 | } # ac_fn_c_check_decl | ||
1769 | |||
1770 | # ac_fn_c_try_link LINENO | ||
1771 | # ----------------------- | ||
1772 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1773 | ac_fn_c_try_link () | ||
1774 | { | ||
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1776 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1777 | if { { ac_try="$ac_link" | ||
1778 | case "(($ac_try" in | ||
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1780 | *) ac_try_echo=$ac_try;; | ||
1781 | esac | ||
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1783 | $as_echo "$ac_try_echo"; } >&5 | ||
1784 | (eval "$ac_link") 2>conftest.err | ||
1785 | ac_status=$? | ||
1786 | if test -s conftest.err; then | ||
1787 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1788 | cat conftest.er1 >&5 | ||
1789 | mv -f conftest.er1 conftest.err | ||
1790 | fi | ||
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1792 | test $ac_status = 0; } && { | ||
1793 | test -z "$ac_c_werror_flag" || | ||
1794 | test ! -s conftest.err | ||
1795 | } && test -s conftest$ac_exeext && { | ||
1796 | test "$cross_compiling" = yes || | ||
1797 | test -x conftest$ac_exeext | ||
1798 | }; then : | ||
1799 | ac_retval=0 | ||
1800 | else | ||
1801 | $as_echo "$as_me: failed program was:" >&5 | ||
1802 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1803 | |||
1804 | ac_retval=1 | ||
1805 | fi | ||
1806 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1807 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1808 | # interfere with the next link command; also delete a directory that is | ||
1809 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1812 | as_fn_set_status $ac_retval | ||
1813 | |||
1814 | } # ac_fn_c_try_link | ||
1815 | |||
1816 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1817 | # ------------------------------------------------------- | ||
1818 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1819 | # the include files in INCLUDES and setting the cache variable VAR | ||
1820 | # accordingly. | ||
1821 | ac_fn_c_check_header_mongrel () | ||
1822 | { | ||
1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1824 | if eval \${$3+:} false; then : | ||
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1826 | $as_echo_n "checking for $2... " >&6; } | ||
1827 | if eval \${$3+:} false; then : | ||
1828 | $as_echo_n "(cached) " >&6 | ||
1829 | fi | ||
1830 | eval ac_res=\$$3 | ||
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1832 | $as_echo "$ac_res" >&6; } | ||
1833 | else | ||
1834 | # Is the header compilable? | ||
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1836 | $as_echo_n "checking $2 usability... " >&6; } | ||
1837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1838 | /* end confdefs.h. */ | ||
1839 | $4 | ||
1840 | #include <$2> | ||
1841 | _ACEOF | ||
1842 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1843 | ac_header_compiler=yes | ||
1844 | else | ||
1845 | ac_header_compiler=no | ||
1846 | fi | ||
1847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1849 | $as_echo "$ac_header_compiler" >&6; } | ||
1850 | |||
1851 | # Is the header present? | ||
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1853 | $as_echo_n "checking $2 presence... " >&6; } | ||
1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1855 | /* end confdefs.h. */ | ||
1856 | #include <$2> | ||
1857 | _ACEOF | ||
1858 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1859 | ac_header_preproc=yes | ||
1860 | else | ||
1861 | ac_header_preproc=no | ||
1862 | fi | ||
1863 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1865 | $as_echo "$ac_header_preproc" >&6; } | ||
1866 | |||
1867 | # So? What about this header? | ||
1868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1869 | yes:no: ) | ||
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1871 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1873 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1874 | ;; | ||
1875 | no:yes:* ) | ||
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1877 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1879 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1881 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1883 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1885 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1886 | ( $as_echo "## ------------------------------------------- ## | ||
1887 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1888 | ## ------------------------------------------- ##" | ||
1889 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1890 | ;; | ||
1891 | esac | ||
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1893 | $as_echo_n "checking for $2... " >&6; } | ||
1894 | if eval \${$3+:} false; then : | ||
1895 | $as_echo_n "(cached) " >&6 | ||
1896 | else | ||
1897 | eval "$3=\$ac_header_compiler" | ||
1898 | fi | ||
1899 | eval ac_res=\$$3 | ||
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1901 | $as_echo "$ac_res" >&6; } | ||
1902 | fi | ||
1903 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1904 | |||
1905 | } # ac_fn_c_check_header_mongrel | ||
1906 | |||
1907 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1908 | # ---------------------------------- | ||
1909 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1910 | ac_fn_c_check_func () | ||
1911 | { | ||
1912 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1914 | $as_echo_n "checking for $2... " >&6; } | ||
1915 | if eval \${$3+:} false; then : | ||
1916 | $as_echo_n "(cached) " >&6 | ||
1917 | else | ||
1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1919 | /* end confdefs.h. */ | ||
1920 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1922 | #define $2 innocuous_$2 | ||
1923 | |||
1924 | /* System header to define __stub macros and hopefully few prototypes, | ||
1925 | which can conflict with char $2 (); below. | ||
1926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1927 | <limits.h> exists even on freestanding compilers. */ | ||
1928 | |||
1929 | #ifdef __STDC__ | ||
1930 | # include <limits.h> | ||
1931 | #else | ||
1932 | # include <assert.h> | ||
1933 | #endif | ||
1934 | |||
1935 | #undef $2 | ||
1936 | |||
1937 | /* Override any GCC internal prototype to avoid an error. | ||
1938 | Use char because int might match the return type of a GCC | ||
1939 | builtin and then its argument prototype would still apply. */ | ||
1940 | #ifdef __cplusplus | ||
1941 | extern "C" | ||
1942 | #endif | ||
1943 | char $2 (); | ||
1944 | /* The GNU C library defines this for functions which it implements | ||
1945 | to always fail with ENOSYS. Some functions are actually named | ||
1946 | something starting with __ and the normal name is an alias. */ | ||
1947 | #if defined __stub_$2 || defined __stub___$2 | ||
1948 | choke me | ||
1949 | #endif | ||
1950 | |||
1951 | int | ||
1952 | main () | ||
1953 | { | ||
1954 | return $2 (); | ||
1955 | ; | ||
1956 | return 0; | ||
1957 | } | ||
1958 | _ACEOF | ||
1959 | if ac_fn_c_try_link "$LINENO"; then : | ||
1960 | eval "$3=yes" | ||
1961 | else | ||
1962 | eval "$3=no" | ||
1963 | fi | ||
1964 | rm -f core conftest.err conftest.$ac_objext \ | ||
1965 | conftest$ac_exeext conftest.$ac_ext | ||
1966 | fi | ||
1967 | eval ac_res=\$$3 | ||
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1969 | $as_echo "$ac_res" >&6; } | ||
1970 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1971 | |||
1972 | } # ac_fn_c_check_func | ||
1973 | |||
1974 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1975 | # ------------------------------------------- | ||
1976 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1977 | # variable VAR accordingly. | ||
1978 | ac_fn_c_check_type () | ||
1979 | { | ||
1980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1982 | $as_echo_n "checking for $2... " >&6; } | ||
1983 | if eval \${$3+:} false; then : | ||
1984 | $as_echo_n "(cached) " >&6 | ||
1985 | else | ||
1986 | eval "$3=no" | ||
1987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1988 | /* end confdefs.h. */ | ||
1989 | $4 | ||
1990 | int | ||
1991 | main () | ||
1992 | { | ||
1993 | if (sizeof ($2)) | ||
1994 | return 0; | ||
1995 | ; | ||
1996 | return 0; | ||
1997 | } | ||
1998 | _ACEOF | ||
1999 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2001 | /* end confdefs.h. */ | ||
2002 | $4 | ||
2003 | int | ||
2004 | main () | ||
2005 | { | ||
2006 | if (sizeof (($2))) | ||
2007 | return 0; | ||
2008 | ; | ||
2009 | return 0; | ||
2010 | } | ||
2011 | _ACEOF | ||
2012 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2013 | |||
2014 | else | ||
2015 | eval "$3=yes" | ||
2016 | fi | ||
2017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2018 | fi | ||
2019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2020 | fi | ||
2021 | eval ac_res=\$$3 | ||
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2023 | $as_echo "$ac_res" >&6; } | ||
2024 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2025 | |||
2026 | } # ac_fn_c_check_type | ||
2027 | |||
2028 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2029 | # -------------------------------------------- | ||
2030 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2031 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2032 | # computed | ||
2033 | ac_fn_c_compute_int () | ||
2034 | { | ||
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2036 | if test "$cross_compiling" = yes; then | ||
2037 | # Depending upon the size, compute the lo and hi bounds. | ||
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2039 | /* end confdefs.h. */ | ||
2040 | $4 | ||
2041 | int | ||
2042 | main () | ||
2043 | { | ||
2044 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2045 | test_array [0] = 0; | ||
2046 | return test_array [0]; | ||
2047 | |||
2048 | ; | ||
2049 | return 0; | ||
2050 | } | ||
2051 | _ACEOF | ||
2052 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2053 | ac_lo=0 ac_mid=0 | ||
2054 | while :; do | ||
2055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2056 | /* end confdefs.h. */ | ||
2057 | $4 | ||
2058 | int | ||
2059 | main () | ||
2060 | { | ||
2061 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2062 | test_array [0] = 0; | ||
2063 | return test_array [0]; | ||
2064 | |||
2065 | ; | ||
2066 | return 0; | ||
2067 | } | ||
2068 | _ACEOF | ||
2069 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2070 | ac_hi=$ac_mid; break | ||
2071 | else | ||
2072 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2073 | if test $ac_lo -le $ac_mid; then | ||
2074 | ac_lo= ac_hi= | ||
2075 | break | ||
2076 | fi | ||
2077 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2078 | fi | ||
2079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2080 | done | ||
2081 | else | ||
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2083 | /* end confdefs.h. */ | ||
2084 | $4 | ||
2085 | int | ||
2086 | main () | ||
2087 | { | ||
2088 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2089 | test_array [0] = 0; | ||
2090 | return test_array [0]; | ||
2091 | |||
2092 | ; | ||
2093 | return 0; | ||
2094 | } | ||
2095 | _ACEOF | ||
2096 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2097 | ac_hi=-1 ac_mid=-1 | ||
2098 | while :; do | ||
2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2100 | /* end confdefs.h. */ | ||
2101 | $4 | ||
2102 | int | ||
2103 | main () | ||
2104 | { | ||
2105 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2106 | test_array [0] = 0; | ||
2107 | return test_array [0]; | ||
2108 | |||
2109 | ; | ||
2110 | return 0; | ||
2111 | } | ||
2112 | _ACEOF | ||
2113 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2114 | ac_lo=$ac_mid; break | ||
2115 | else | ||
2116 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2117 | if test $ac_mid -le $ac_hi; then | ||
2118 | ac_lo= ac_hi= | ||
2119 | break | ||
2120 | fi | ||
2121 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2122 | fi | ||
2123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2124 | done | ||
2125 | else | ||
2126 | ac_lo= ac_hi= | ||
2127 | fi | ||
2128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2129 | fi | ||
2130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2131 | # Binary search between lo and hi bounds. | ||
2132 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2133 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2135 | /* end confdefs.h. */ | ||
2136 | $4 | ||
2137 | int | ||
2138 | main () | ||
2139 | { | ||
2140 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2141 | test_array [0] = 0; | ||
2142 | return test_array [0]; | ||
2143 | |||
2144 | ; | ||
2145 | return 0; | ||
2146 | } | ||
2147 | _ACEOF | ||
2148 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2149 | ac_hi=$ac_mid | ||
2150 | else | ||
2151 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2152 | fi | ||
2153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2154 | done | ||
2155 | case $ac_lo in #(( | ||
2156 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2157 | '') ac_retval=1 ;; | ||
2158 | esac | ||
2159 | else | ||
2160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2161 | /* end confdefs.h. */ | ||
2162 | $4 | ||
2163 | static long int longval () { return $2; } | ||
2164 | static unsigned long int ulongval () { return $2; } | ||
2165 | #include <stdio.h> | ||
2166 | #include <stdlib.h> | ||
2167 | int | ||
2168 | main () | ||
2169 | { | ||
2170 | |||
2171 | FILE *f = fopen ("conftest.val", "w"); | ||
2172 | if (! f) | ||
2173 | return 1; | ||
2174 | if (($2) < 0) | ||
2175 | { | ||
2176 | long int i = longval (); | ||
2177 | if (i != ($2)) | ||
2178 | return 1; | ||
2179 | fprintf (f, "%ld", i); | ||
2180 | } | ||
2181 | else | ||
2182 | { | ||
2183 | unsigned long int i = ulongval (); | ||
2184 | if (i != ($2)) | ||
2185 | return 1; | ||
2186 | fprintf (f, "%lu", i); | ||
2187 | } | ||
2188 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2189 | on some platforms. */ | ||
2190 | return ferror (f) || fclose (f) != 0; | ||
2191 | |||
2192 | ; | ||
2193 | return 0; | ||
2194 | } | ||
2195 | _ACEOF | ||
2196 | if ac_fn_c_try_run "$LINENO"; then : | ||
2197 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2198 | else | ||
2199 | ac_retval=1 | ||
2200 | fi | ||
2201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2202 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2203 | rm -f conftest.val | ||
2204 | |||
2205 | fi | ||
2206 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2207 | as_fn_set_status $ac_retval | ||
2208 | |||
2209 | } # ac_fn_c_compute_int | ||
2210 | |||
2211 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2212 | # ---------------------------------------------------- | ||
2213 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2214 | # INCLUDES, setting cache variable VAR accordingly. | ||
2215 | ac_fn_c_check_member () | ||
2216 | { | ||
2217 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2219 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2220 | if eval \${$4+:} false; then : | ||
2221 | $as_echo_n "(cached) " >&6 | ||
2222 | else | ||
2223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2224 | /* end confdefs.h. */ | ||
2225 | $5 | ||
2226 | int | ||
2227 | main () | ||
2228 | { | ||
2229 | static $2 ac_aggr; | ||
2230 | if (ac_aggr.$3) | ||
2231 | return 0; | ||
2232 | ; | ||
2233 | return 0; | ||
2234 | } | ||
2235 | _ACEOF | ||
2236 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2237 | eval "$4=yes" | ||
2238 | else | ||
2239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2240 | /* end confdefs.h. */ | ||
2241 | $5 | ||
2242 | int | ||
2243 | main () | ||
2244 | { | ||
2245 | static $2 ac_aggr; | ||
2246 | if (sizeof ac_aggr.$3) | ||
2247 | return 0; | ||
2248 | ; | ||
2249 | return 0; | ||
2250 | } | ||
2251 | _ACEOF | ||
2252 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2253 | eval "$4=yes" | ||
2254 | else | ||
2255 | eval "$4=no" | ||
2256 | fi | ||
2257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2258 | fi | ||
2259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2260 | fi | ||
2261 | eval ac_res=\$$4 | ||
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2263 | $as_echo "$ac_res" >&6; } | ||
2264 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2265 | |||
2266 | } # ac_fn_c_check_member | ||
2267 | cat >config.log <<_ACEOF | ||
2268 | This file contains any messages produced by compilers while | ||
2269 | running configure, to aid debugging if configure makes a mistake. | ||
2270 | |||
2271 | It was created by OpenSSH $as_me Portable, which was | ||
2272 | generated by GNU Autoconf 2.69. Invocation command line was | ||
2273 | |||
2274 | $ $0 $@ | ||
2275 | |||
2276 | _ACEOF | ||
2277 | exec 5>>config.log | ||
2278 | { | ||
2279 | cat <<_ASUNAME | ||
2280 | ## --------- ## | ||
2281 | ## Platform. ## | ||
2282 | ## --------- ## | ||
2283 | |||
2284 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2285 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2286 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2287 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2288 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2289 | |||
2290 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2291 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2292 | |||
2293 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2294 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2295 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2296 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2297 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2298 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2299 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2300 | |||
2301 | _ASUNAME | ||
2302 | |||
2303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2304 | for as_dir in $PATH | ||
2305 | do | ||
2306 | IFS=$as_save_IFS | ||
2307 | test -z "$as_dir" && as_dir=. | ||
2308 | $as_echo "PATH: $as_dir" | ||
2309 | done | ||
2310 | IFS=$as_save_IFS | ||
2311 | |||
2312 | } >&5 | ||
2313 | |||
2314 | cat >&5 <<_ACEOF | ||
2315 | |||
2316 | |||
2317 | ## ----------- ## | ||
2318 | ## Core tests. ## | ||
2319 | ## ----------- ## | ||
2320 | |||
2321 | _ACEOF | ||
2322 | |||
2323 | |||
2324 | # Keep a trace of the command line. | ||
2325 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2326 | # Strip out --silent because we don't want to record it for future runs. | ||
2327 | # Also quote any args containing shell meta-characters. | ||
2328 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2329 | ac_configure_args= | ||
2330 | ac_configure_args0= | ||
2331 | ac_configure_args1= | ||
2332 | ac_must_keep_next=false | ||
2333 | for ac_pass in 1 2 | ||
2334 | do | ||
2335 | for ac_arg | ||
2336 | do | ||
2337 | case $ac_arg in | ||
2338 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2339 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2340 | | -silent | --silent | --silen | --sile | --sil) | ||
2341 | continue ;; | ||
2342 | *\'*) | ||
2343 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2344 | esac | ||
2345 | case $ac_pass in | ||
2346 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2347 | 2) | ||
2348 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2349 | if test $ac_must_keep_next = true; then | ||
2350 | ac_must_keep_next=false # Got value, back to normal. | ||
2351 | else | ||
2352 | case $ac_arg in | ||
2353 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2354 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2355 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2356 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2357 | case "$ac_configure_args0 " in | ||
2358 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2359 | esac | ||
2360 | ;; | ||
2361 | -* ) ac_must_keep_next=true ;; | ||
2362 | esac | ||
2363 | fi | ||
2364 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2365 | ;; | ||
2366 | esac | ||
2367 | done | ||
2368 | done | ||
2369 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2370 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2371 | |||
2372 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2373 | # config.log. We remove comments because anyway the quotes in there | ||
2374 | # would cause problems or look ugly. | ||
2375 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2376 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2377 | trap 'exit_status=$? | ||
2378 | # Save into config.log some information that might help in debugging. | ||
2379 | { | ||
2380 | echo | ||
2381 | |||
2382 | $as_echo "## ---------------- ## | ||
2383 | ## Cache variables. ## | ||
2384 | ## ---------------- ##" | ||
2385 | echo | ||
2386 | # The following way of writing the cache mishandles newlines in values, | ||
2387 | ( | ||
2388 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2389 | eval ac_val=\$$ac_var | ||
2390 | case $ac_val in #( | ||
2391 | *${as_nl}*) | ||
2392 | case $ac_var in #( | ||
2393 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2394 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2395 | esac | ||
2396 | case $ac_var in #( | ||
2397 | _ | IFS | as_nl) ;; #( | ||
2398 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2399 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2400 | esac ;; | ||
2401 | esac | ||
2402 | done | ||
2403 | (set) 2>&1 | | ||
2404 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2405 | *${as_nl}ac_space=\ *) | ||
2406 | sed -n \ | ||
2407 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2408 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2409 | ;; #( | ||
2410 | *) | ||
2411 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2412 | ;; | ||
2413 | esac | | ||
2414 | sort | ||
2415 | ) | ||
2416 | echo | ||
2417 | |||
2418 | $as_echo "## ----------------- ## | ||
2419 | ## Output variables. ## | ||
2420 | ## ----------------- ##" | ||
2421 | echo | ||
2422 | for ac_var in $ac_subst_vars | ||
2423 | do | ||
2424 | eval ac_val=\$$ac_var | ||
2425 | case $ac_val in | ||
2426 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2427 | esac | ||
2428 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2429 | done | sort | ||
2430 | echo | ||
2431 | |||
2432 | if test -n "$ac_subst_files"; then | ||
2433 | $as_echo "## ------------------- ## | ||
2434 | ## File substitutions. ## | ||
2435 | ## ------------------- ##" | ||
2436 | echo | ||
2437 | for ac_var in $ac_subst_files | ||
2438 | do | ||
2439 | eval ac_val=\$$ac_var | ||
2440 | case $ac_val in | ||
2441 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2442 | esac | ||
2443 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2444 | done | sort | ||
2445 | echo | ||
2446 | fi | ||
2447 | |||
2448 | if test -s confdefs.h; then | ||
2449 | $as_echo "## ----------- ## | ||
2450 | ## confdefs.h. ## | ||
2451 | ## ----------- ##" | ||
2452 | echo | ||
2453 | cat confdefs.h | ||
2454 | echo | ||
2455 | fi | ||
2456 | test "$ac_signal" != 0 && | ||
2457 | $as_echo "$as_me: caught signal $ac_signal" | ||
2458 | $as_echo "$as_me: exit $exit_status" | ||
2459 | } >&5 | ||
2460 | rm -f core *.core core.conftest.* && | ||
2461 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2462 | exit $exit_status | ||
2463 | ' 0 | ||
2464 | for ac_signal in 1 2 13 15; do | ||
2465 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2466 | done | ||
2467 | ac_signal=0 | ||
2468 | |||
2469 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2470 | rm -f -r conftest* confdefs.h | ||
2471 | |||
2472 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2473 | |||
2474 | # Predefined preprocessor variables. | ||
2475 | |||
2476 | cat >>confdefs.h <<_ACEOF | ||
2477 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2478 | _ACEOF | ||
2479 | |||
2480 | cat >>confdefs.h <<_ACEOF | ||
2481 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2482 | _ACEOF | ||
2483 | |||
2484 | cat >>confdefs.h <<_ACEOF | ||
2485 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2486 | _ACEOF | ||
2487 | |||
2488 | cat >>confdefs.h <<_ACEOF | ||
2489 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2490 | _ACEOF | ||
2491 | |||
2492 | cat >>confdefs.h <<_ACEOF | ||
2493 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2494 | _ACEOF | ||
2495 | |||
2496 | cat >>confdefs.h <<_ACEOF | ||
2497 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2498 | _ACEOF | ||
2499 | |||
2500 | |||
2501 | # Let the site file select an alternate cache file if it wants to. | ||
2502 | # Prefer an explicitly selected file to automatically selected ones. | ||
2503 | ac_site_file1=NONE | ||
2504 | ac_site_file2=NONE | ||
2505 | if test -n "$CONFIG_SITE"; then | ||
2506 | # We do not want a PATH search for config.site. | ||
2507 | case $CONFIG_SITE in #(( | ||
2508 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2509 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2510 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2511 | esac | ||
2512 | elif test "x$prefix" != xNONE; then | ||
2513 | ac_site_file1=$prefix/share/config.site | ||
2514 | ac_site_file2=$prefix/etc/config.site | ||
2515 | else | ||
2516 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2517 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2518 | fi | ||
2519 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2520 | do | ||
2521 | test "x$ac_site_file" = xNONE && continue | ||
2522 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2524 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2525 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2526 | . "$ac_site_file" \ | ||
2527 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2529 | as_fn_error $? "failed to load site script $ac_site_file | ||
2530 | See \`config.log' for more details" "$LINENO" 5; } | ||
2531 | fi | ||
2532 | done | ||
2533 | |||
2534 | if test -r "$cache_file"; then | ||
2535 | # Some versions of bash will fail to source /dev/null (special files | ||
2536 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2537 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2539 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2540 | case $cache_file in | ||
2541 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2542 | *) . "./$cache_file";; | ||
2543 | esac | ||
2544 | fi | ||
2545 | else | ||
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2547 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2548 | >$cache_file | ||
2549 | fi | ||
2550 | |||
2551 | # Check that the precious variables saved in the cache have kept the same | ||
2552 | # value. | ||
2553 | ac_cache_corrupted=false | ||
2554 | for ac_var in $ac_precious_vars; do | ||
2555 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2556 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2557 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2558 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2559 | case $ac_old_set,$ac_new_set in | ||
2560 | set,) | ||
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2562 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2563 | ac_cache_corrupted=: ;; | ||
2564 | ,set) | ||
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2566 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2567 | ac_cache_corrupted=: ;; | ||
2568 | ,);; | ||
2569 | *) | ||
2570 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2571 | # differences in whitespace do not lead to failure. | ||
2572 | ac_old_val_w=`echo x $ac_old_val` | ||
2573 | ac_new_val_w=`echo x $ac_new_val` | ||
2574 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2576 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2577 | ac_cache_corrupted=: | ||
2578 | else | ||
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2580 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2581 | eval $ac_var=\$ac_old_val | ||
2582 | fi | ||
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2584 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2586 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2587 | fi;; | ||
2588 | esac | ||
2589 | # Pass precious variables to config.status. | ||
2590 | if test "$ac_new_set" = set; then | ||
2591 | case $ac_new_val in | ||
2592 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2593 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2594 | esac | ||
2595 | case " $ac_configure_args " in | ||
2596 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2597 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2598 | esac | ||
2599 | fi | ||
2600 | done | ||
2601 | if $ac_cache_corrupted; then | ||
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2605 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2606 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2607 | fi | ||
2608 | ## -------------------- ## | ||
2609 | ## Main body of script. ## | ||
2610 | ## -------------------- ## | ||
2611 | |||
2612 | ac_ext=c | ||
2613 | ac_cpp='$CPP $CPPFLAGS' | ||
2614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2617 | |||
2618 | |||
2619 | |||
2620 | |||
2621 | ac_ext=c | ||
2622 | ac_cpp='$CPP $CPPFLAGS' | ||
2623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2626 | |||
2627 | |||
2628 | ac_config_headers="$ac_config_headers config.h" | ||
2629 | |||
2630 | ac_ext=c | ||
2631 | ac_cpp='$CPP $CPPFLAGS' | ||
2632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2635 | if test -n "$ac_tool_prefix"; then | ||
2636 | for ac_prog in cc gcc | ||
2637 | do | ||
2638 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2639 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2641 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2642 | if ${ac_cv_prog_CC+:} false; then : | ||
2643 | $as_echo_n "(cached) " >&6 | ||
2644 | else | ||
2645 | if test -n "$CC"; then | ||
2646 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2647 | else | ||
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2649 | for as_dir in $PATH | ||
2650 | do | ||
2651 | IFS=$as_save_IFS | ||
2652 | test -z "$as_dir" && as_dir=. | ||
2653 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2655 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2657 | break 2 | ||
2658 | fi | ||
2659 | done | ||
2660 | done | ||
2661 | IFS=$as_save_IFS | ||
2662 | |||
2663 | fi | ||
2664 | fi | ||
2665 | CC=$ac_cv_prog_CC | ||
2666 | if test -n "$CC"; then | ||
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2668 | $as_echo "$CC" >&6; } | ||
2669 | else | ||
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2671 | $as_echo "no" >&6; } | ||
2672 | fi | ||
2673 | |||
2674 | |||
2675 | test -n "$CC" && break | ||
2676 | done | ||
2677 | fi | ||
2678 | if test -z "$CC"; then | ||
2679 | ac_ct_CC=$CC | ||
2680 | for ac_prog in cc gcc | ||
2681 | do | ||
2682 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2683 | set dummy $ac_prog; ac_word=$2 | ||
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2685 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2686 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2687 | $as_echo_n "(cached) " >&6 | ||
2688 | else | ||
2689 | if test -n "$ac_ct_CC"; then | ||
2690 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2691 | else | ||
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2693 | for as_dir in $PATH | ||
2694 | do | ||
2695 | IFS=$as_save_IFS | ||
2696 | test -z "$as_dir" && as_dir=. | ||
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2699 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2701 | break 2 | ||
2702 | fi | ||
2703 | done | ||
2704 | done | ||
2705 | IFS=$as_save_IFS | ||
2706 | |||
2707 | fi | ||
2708 | fi | ||
2709 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2710 | if test -n "$ac_ct_CC"; then | ||
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2712 | $as_echo "$ac_ct_CC" >&6; } | ||
2713 | else | ||
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2715 | $as_echo "no" >&6; } | ||
2716 | fi | ||
2717 | |||
2718 | |||
2719 | test -n "$ac_ct_CC" && break | ||
2720 | done | ||
2721 | |||
2722 | if test "x$ac_ct_CC" = x; then | ||
2723 | CC="" | ||
2724 | else | ||
2725 | case $cross_compiling:$ac_tool_warned in | ||
2726 | yes:) | ||
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2728 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2729 | ac_tool_warned=yes ;; | ||
2730 | esac | ||
2731 | CC=$ac_ct_CC | ||
2732 | fi | ||
2733 | fi | ||
2734 | |||
2735 | |||
2736 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2738 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2739 | See \`config.log' for more details" "$LINENO" 5; } | ||
2740 | |||
2741 | # Provide some information about the compiler. | ||
2742 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2743 | set X $ac_compile | ||
2744 | ac_compiler=$2 | ||
2745 | for ac_option in --version -v -V -qversion; do | ||
2746 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2747 | case "(($ac_try" in | ||
2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2749 | *) ac_try_echo=$ac_try;; | ||
2750 | esac | ||
2751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2752 | $as_echo "$ac_try_echo"; } >&5 | ||
2753 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2754 | ac_status=$? | ||
2755 | if test -s conftest.err; then | ||
2756 | sed '10a\ | ||
2757 | ... rest of stderr output deleted ... | ||
2758 | 10q' conftest.err >conftest.er1 | ||
2759 | cat conftest.er1 >&5 | ||
2760 | fi | ||
2761 | rm -f conftest.er1 conftest.err | ||
2762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2763 | test $ac_status = 0; } | ||
2764 | done | ||
2765 | |||
2766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2767 | /* end confdefs.h. */ | ||
2768 | |||
2769 | int | ||
2770 | main () | ||
2771 | { | ||
2772 | |||
2773 | ; | ||
2774 | return 0; | ||
2775 | } | ||
2776 | _ACEOF | ||
2777 | ac_clean_files_save=$ac_clean_files | ||
2778 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2779 | # Try to create an executable without -o first, disregard a.out. | ||
2780 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2781 | # of exeext. | ||
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2783 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2784 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2785 | |||
2786 | # The possible output files: | ||
2787 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2788 | |||
2789 | ac_rmfiles= | ||
2790 | for ac_file in $ac_files | ||
2791 | do | ||
2792 | case $ac_file in | ||
2793 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2794 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2795 | esac | ||
2796 | done | ||
2797 | rm -f $ac_rmfiles | ||
2798 | |||
2799 | if { { ac_try="$ac_link_default" | ||
2800 | case "(($ac_try" in | ||
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2802 | *) ac_try_echo=$ac_try;; | ||
2803 | esac | ||
2804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2805 | $as_echo "$ac_try_echo"; } >&5 | ||
2806 | (eval "$ac_link_default") 2>&5 | ||
2807 | ac_status=$? | ||
2808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2809 | test $ac_status = 0; }; then : | ||
2810 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2811 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2812 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2813 | # so that the user can short-circuit this test for compilers unknown to | ||
2814 | # Autoconf. | ||
2815 | for ac_file in $ac_files '' | ||
2816 | do | ||
2817 | test -f "$ac_file" || continue | ||
2818 | case $ac_file in | ||
2819 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2820 | ;; | ||
2821 | [ab].out ) | ||
2822 | # We found the default executable, but exeext='' is most | ||
2823 | # certainly right. | ||
2824 | break;; | ||
2825 | *.* ) | ||
2826 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2827 | then :; else | ||
2828 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2829 | fi | ||
2830 | # We set ac_cv_exeext here because the later test for it is not | ||
2831 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2832 | # argument, so we may need to know it at that point already. | ||
2833 | # Even if this section looks crufty: it has the advantage of | ||
2834 | # actually working. | ||
2835 | break;; | ||
2836 | * ) | ||
2837 | break;; | ||
2838 | esac | ||
2839 | done | ||
2840 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2841 | |||
2842 | else | ||
2843 | ac_file='' | ||
2844 | fi | ||
2845 | if test -z "$ac_file"; then : | ||
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2847 | $as_echo "no" >&6; } | ||
2848 | $as_echo "$as_me: failed program was:" >&5 | ||
2849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2850 | |||
2851 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2852 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2853 | as_fn_error 77 "C compiler cannot create executables | ||
2854 | See \`config.log' for more details" "$LINENO" 5; } | ||
2855 | else | ||
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2857 | $as_echo "yes" >&6; } | ||
2858 | fi | ||
2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
2860 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
2862 | $as_echo "$ac_file" >&6; } | ||
2863 | ac_exeext=$ac_cv_exeext | ||
2864 | |||
2865 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
2866 | ac_clean_files=$ac_clean_files_save | ||
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
2868 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
2869 | if { { ac_try="$ac_link" | ||
2870 | case "(($ac_try" in | ||
2871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2872 | *) ac_try_echo=$ac_try;; | ||
2873 | esac | ||
2874 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2875 | $as_echo "$ac_try_echo"; } >&5 | ||
2876 | (eval "$ac_link") 2>&5 | ||
2877 | ac_status=$? | ||
2878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2879 | test $ac_status = 0; }; then : | ||
2880 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2881 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2882 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2883 | # `rm'. | ||
2884 | for ac_file in conftest.exe conftest conftest.*; do | ||
2885 | test -f "$ac_file" || continue | ||
2886 | case $ac_file in | ||
2887 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2888 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2889 | break;; | ||
2890 | * ) break;; | ||
2891 | esac | ||
2892 | done | ||
2893 | else | ||
2894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2896 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
2897 | See \`config.log' for more details" "$LINENO" 5; } | ||
2898 | fi | ||
2899 | rm -f conftest conftest$ac_cv_exeext | ||
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
2901 | $as_echo "$ac_cv_exeext" >&6; } | ||
2902 | |||
2903 | rm -f conftest.$ac_ext | ||
2904 | EXEEXT=$ac_cv_exeext | ||
2905 | ac_exeext=$EXEEXT | ||
2906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2907 | /* end confdefs.h. */ | ||
2908 | #include <stdio.h> | ||
2909 | int | ||
2910 | main () | ||
2911 | { | ||
2912 | FILE *f = fopen ("conftest.out", "w"); | ||
2913 | return ferror (f) || fclose (f) != 0; | ||
2914 | |||
2915 | ; | ||
2916 | return 0; | ||
2917 | } | ||
2918 | _ACEOF | ||
2919 | ac_clean_files="$ac_clean_files conftest.out" | ||
2920 | # Check that the compiler produces executables we can run. If not, either | ||
2921 | # the compiler is broken, or we cross compile. | ||
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
2923 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
2924 | if test "$cross_compiling" != yes; then | ||
2925 | { { ac_try="$ac_link" | ||
2926 | case "(($ac_try" in | ||
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2928 | *) ac_try_echo=$ac_try;; | ||
2929 | esac | ||
2930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2931 | $as_echo "$ac_try_echo"; } >&5 | ||
2932 | (eval "$ac_link") 2>&5 | ||
2933 | ac_status=$? | ||
2934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2935 | test $ac_status = 0; } | ||
2936 | if { ac_try='./conftest$ac_cv_exeext' | ||
2937 | { { case "(($ac_try" in | ||
2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2939 | *) ac_try_echo=$ac_try;; | ||
2940 | esac | ||
2941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2942 | $as_echo "$ac_try_echo"; } >&5 | ||
2943 | (eval "$ac_try") 2>&5 | ||
2944 | ac_status=$? | ||
2945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2946 | test $ac_status = 0; }; }; then | ||
2947 | cross_compiling=no | ||
2948 | else | ||
2949 | if test "$cross_compiling" = maybe; then | ||
2950 | cross_compiling=yes | ||
2951 | else | ||
2952 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2953 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2954 | as_fn_error $? "cannot run C compiled programs. | ||
2955 | If you meant to cross compile, use \`--host'. | ||
2956 | See \`config.log' for more details" "$LINENO" 5; } | ||
2957 | fi | ||
2958 | fi | ||
2959 | fi | ||
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
2961 | $as_echo "$cross_compiling" >&6; } | ||
2962 | |||
2963 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
2964 | ac_clean_files=$ac_clean_files_save | ||
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
2966 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
2967 | if ${ac_cv_objext+:} false; then : | ||
2968 | $as_echo_n "(cached) " >&6 | ||
2969 | else | ||
2970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2971 | /* end confdefs.h. */ | ||
2972 | |||
2973 | int | ||
2974 | main () | ||
2975 | { | ||
2976 | |||
2977 | ; | ||
2978 | return 0; | ||
2979 | } | ||
2980 | _ACEOF | ||
2981 | rm -f conftest.o conftest.obj | ||
2982 | if { { ac_try="$ac_compile" | ||
2983 | case "(($ac_try" in | ||
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2988 | $as_echo "$ac_try_echo"; } >&5 | ||
2989 | (eval "$ac_compile") 2>&5 | ||
2990 | ac_status=$? | ||
2991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2992 | test $ac_status = 0; }; then : | ||
2993 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2994 | test -f "$ac_file" || continue; | ||
2995 | case $ac_file in | ||
2996 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
2997 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2998 | break;; | ||
2999 | esac | ||
3000 | done | ||
3001 | else | ||
3002 | $as_echo "$as_me: failed program was:" >&5 | ||
3003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3004 | |||
3005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3007 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3008 | See \`config.log' for more details" "$LINENO" 5; } | ||
3009 | fi | ||
3010 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3011 | fi | ||
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3013 | $as_echo "$ac_cv_objext" >&6; } | ||
3014 | OBJEXT=$ac_cv_objext | ||
3015 | ac_objext=$OBJEXT | ||
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3017 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3018 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3019 | $as_echo_n "(cached) " >&6 | ||
3020 | else | ||
3021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3022 | /* end confdefs.h. */ | ||
3023 | |||
3024 | int | ||
3025 | main () | ||
3026 | { | ||
3027 | #ifndef __GNUC__ | ||
3028 | choke me | ||
3029 | #endif | ||
3030 | |||
3031 | ; | ||
3032 | return 0; | ||
3033 | } | ||
3034 | _ACEOF | ||
3035 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3036 | ac_compiler_gnu=yes | ||
3037 | else | ||
3038 | ac_compiler_gnu=no | ||
3039 | fi | ||
3040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3041 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3042 | |||
3043 | fi | ||
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3045 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3046 | if test $ac_compiler_gnu = yes; then | ||
3047 | GCC=yes | ||
3048 | else | ||
3049 | GCC= | ||
3050 | fi | ||
3051 | ac_test_CFLAGS=${CFLAGS+set} | ||
3052 | ac_save_CFLAGS=$CFLAGS | ||
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3054 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3055 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3056 | $as_echo_n "(cached) " >&6 | ||
3057 | else | ||
3058 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3059 | ac_c_werror_flag=yes | ||
3060 | ac_cv_prog_cc_g=no | ||
3061 | CFLAGS="-g" | ||
3062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3063 | /* end confdefs.h. */ | ||
3064 | |||
3065 | int | ||
3066 | main () | ||
3067 | { | ||
3068 | |||
3069 | ; | ||
3070 | return 0; | ||
3071 | } | ||
3072 | _ACEOF | ||
3073 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3074 | ac_cv_prog_cc_g=yes | ||
3075 | else | ||
3076 | CFLAGS="" | ||
3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3078 | /* end confdefs.h. */ | ||
3079 | |||
3080 | int | ||
3081 | main () | ||
3082 | { | ||
3083 | |||
3084 | ; | ||
3085 | return 0; | ||
3086 | } | ||
3087 | _ACEOF | ||
3088 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3089 | |||
3090 | else | ||
3091 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3092 | CFLAGS="-g" | ||
3093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3094 | /* end confdefs.h. */ | ||
3095 | |||
3096 | int | ||
3097 | main () | ||
3098 | { | ||
3099 | |||
3100 | ; | ||
3101 | return 0; | ||
3102 | } | ||
3103 | _ACEOF | ||
3104 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3105 | ac_cv_prog_cc_g=yes | ||
3106 | fi | ||
3107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3108 | fi | ||
3109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3110 | fi | ||
3111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3112 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3113 | fi | ||
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3115 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3116 | if test "$ac_test_CFLAGS" = set; then | ||
3117 | CFLAGS=$ac_save_CFLAGS | ||
3118 | elif test $ac_cv_prog_cc_g = yes; then | ||
3119 | if test "$GCC" = yes; then | ||
3120 | CFLAGS="-g -O2" | ||
3121 | else | ||
3122 | CFLAGS="-g" | ||
3123 | fi | ||
3124 | else | ||
3125 | if test "$GCC" = yes; then | ||
3126 | CFLAGS="-O2" | ||
3127 | else | ||
3128 | CFLAGS= | ||
3129 | fi | ||
3130 | fi | ||
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3132 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3133 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3134 | $as_echo_n "(cached) " >&6 | ||
3135 | else | ||
3136 | ac_cv_prog_cc_c89=no | ||
3137 | ac_save_CC=$CC | ||
3138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3139 | /* end confdefs.h. */ | ||
3140 | #include <stdarg.h> | ||
3141 | #include <stdio.h> | ||
3142 | struct stat; | ||
3143 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3144 | struct buf { int x; }; | ||
3145 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3146 | static char *e (p, i) | ||
3147 | char **p; | ||
3148 | int i; | ||
3149 | { | ||
3150 | return p[i]; | ||
3151 | } | ||
3152 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3153 | { | ||
3154 | char *s; | ||
3155 | va_list v; | ||
3156 | va_start (v,p); | ||
3157 | s = g (p, va_arg (v,int)); | ||
3158 | va_end (v); | ||
3159 | return s; | ||
3160 | } | ||
3161 | |||
3162 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3163 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3164 | These don't provoke an error unfortunately, instead are silently treated | ||
3165 | as 'x'. The following induces an error, until -std is added to get | ||
3166 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3167 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3168 | that's true only with -std. */ | ||
3169 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3170 | |||
3171 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3172 | inside strings and character constants. */ | ||
3173 | #define FOO(x) 'x' | ||
3174 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3175 | |||
3176 | int test (int i, double x); | ||
3177 | struct s1 {int (*f) (int a);}; | ||
3178 | struct s2 {int (*f) (double a);}; | ||
3179 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3180 | int argc; | ||
3181 | char **argv; | ||
3182 | int | ||
3183 | main () | ||
3184 | { | ||
3185 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3186 | ; | ||
3187 | return 0; | ||
3188 | } | ||
3189 | _ACEOF | ||
3190 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3191 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3192 | do | ||
3193 | CC="$ac_save_CC $ac_arg" | ||
3194 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3195 | ac_cv_prog_cc_c89=$ac_arg | ||
3196 | fi | ||
3197 | rm -f core conftest.err conftest.$ac_objext | ||
3198 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3199 | done | ||
3200 | rm -f conftest.$ac_ext | ||
3201 | CC=$ac_save_CC | ||
3202 | |||
3203 | fi | ||
3204 | # AC_CACHE_VAL | ||
3205 | case "x$ac_cv_prog_cc_c89" in | ||
3206 | x) | ||
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3208 | $as_echo "none needed" >&6; } ;; | ||
3209 | xno) | ||
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3211 | $as_echo "unsupported" >&6; } ;; | ||
3212 | *) | ||
3213 | CC="$CC $ac_cv_prog_cc_c89" | ||
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3215 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3216 | esac | ||
3217 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3218 | |||
3219 | fi | ||
3220 | |||
3221 | ac_ext=c | ||
3222 | ac_cpp='$CPP $CPPFLAGS' | ||
3223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3226 | |||
3227 | ac_aux_dir= | ||
3228 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3229 | if test -f "$ac_dir/install-sh"; then | ||
3230 | ac_aux_dir=$ac_dir | ||
3231 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3232 | break | ||
3233 | elif test -f "$ac_dir/install.sh"; then | ||
3234 | ac_aux_dir=$ac_dir | ||
3235 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3236 | break | ||
3237 | elif test -f "$ac_dir/shtool"; then | ||
3238 | ac_aux_dir=$ac_dir | ||
3239 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3240 | break | ||
3241 | fi | ||
3242 | done | ||
3243 | if test -z "$ac_aux_dir"; then | ||
3244 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3245 | fi | ||
3246 | |||
3247 | # These three variables are undocumented and unsupported, | ||
3248 | # and are intended to be withdrawn in a future Autoconf release. | ||
3249 | # They can cause serious problems if a builder's source tree is in a directory | ||
3250 | # whose full name contains unusual characters. | ||
3251 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3252 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3253 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3254 | |||
3255 | |||
3256 | # Make sure we can run config.sub. | ||
3257 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3258 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3259 | |||
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3261 | $as_echo_n "checking build system type... " >&6; } | ||
3262 | if ${ac_cv_build+:} false; then : | ||
3263 | $as_echo_n "(cached) " >&6 | ||
3264 | else | ||
3265 | ac_build_alias=$build_alias | ||
3266 | test "x$ac_build_alias" = x && | ||
3267 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3268 | test "x$ac_build_alias" = x && | ||
3269 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3270 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3271 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3272 | |||
3273 | fi | ||
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3275 | $as_echo "$ac_cv_build" >&6; } | ||
3276 | case $ac_cv_build in | ||
3277 | *-*-*) ;; | ||
3278 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3279 | esac | ||
3280 | build=$ac_cv_build | ||
3281 | ac_save_IFS=$IFS; IFS='-' | ||
3282 | set x $ac_cv_build | ||
3283 | shift | ||
3284 | build_cpu=$1 | ||
3285 | build_vendor=$2 | ||
3286 | shift; shift | ||
3287 | # Remember, the first character of IFS is used to create $*, | ||
3288 | # except with old shells: | ||
3289 | build_os=$* | ||
3290 | IFS=$ac_save_IFS | ||
3291 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3292 | |||
3293 | |||
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3295 | $as_echo_n "checking host system type... " >&6; } | ||
3296 | if ${ac_cv_host+:} false; then : | ||
3297 | $as_echo_n "(cached) " >&6 | ||
3298 | else | ||
3299 | if test "x$host_alias" = x; then | ||
3300 | ac_cv_host=$ac_cv_build | ||
3301 | else | ||
3302 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3303 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3304 | fi | ||
3305 | |||
3306 | fi | ||
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3308 | $as_echo "$ac_cv_host" >&6; } | ||
3309 | case $ac_cv_host in | ||
3310 | *-*-*) ;; | ||
3311 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3312 | esac | ||
3313 | host=$ac_cv_host | ||
3314 | ac_save_IFS=$IFS; IFS='-' | ||
3315 | set x $ac_cv_host | ||
3316 | shift | ||
3317 | host_cpu=$1 | ||
3318 | host_vendor=$2 | ||
3319 | shift; shift | ||
3320 | # Remember, the first character of IFS is used to create $*, | ||
3321 | # except with old shells: | ||
3322 | host_os=$* | ||
3323 | IFS=$ac_save_IFS | ||
3324 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3325 | |||
3326 | |||
3327 | |||
3328 | ac_ext=c | ||
3329 | ac_cpp='$CPP $CPPFLAGS' | ||
3330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3334 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3335 | # On Suns, sometimes $CPP names a directory. | ||
3336 | if test -n "$CPP" && test -d "$CPP"; then | ||
3337 | CPP= | ||
3338 | fi | ||
3339 | if test -z "$CPP"; then | ||
3340 | if ${ac_cv_prog_CPP+:} false; then : | ||
3341 | $as_echo_n "(cached) " >&6 | ||
3342 | else | ||
3343 | # Double quotes because CPP needs to be expanded | ||
3344 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3345 | do | ||
3346 | ac_preproc_ok=false | ||
3347 | for ac_c_preproc_warn_flag in '' yes | ||
3348 | do | ||
3349 | # Use a header file that comes with gcc, so configuring glibc | ||
3350 | # with a fresh cross-compiler works. | ||
3351 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3352 | # <limits.h> exists even on freestanding compilers. | ||
3353 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3354 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3356 | /* end confdefs.h. */ | ||
3357 | #ifdef __STDC__ | ||
3358 | # include <limits.h> | ||
3359 | #else | ||
3360 | # include <assert.h> | ||
3361 | #endif | ||
3362 | Syntax error | ||
3363 | _ACEOF | ||
3364 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3365 | |||
3366 | else | ||
3367 | # Broken: fails on valid input. | ||
3368 | continue | ||
3369 | fi | ||
3370 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3371 | |||
3372 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3373 | # can be detected and how. | ||
3374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3375 | /* end confdefs.h. */ | ||
3376 | #include <ac_nonexistent.h> | ||
3377 | _ACEOF | ||
3378 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3379 | # Broken: success on invalid input. | ||
3380 | continue | ||
3381 | else | ||
3382 | # Passes both tests. | ||
3383 | ac_preproc_ok=: | ||
3384 | break | ||
3385 | fi | ||
3386 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3387 | |||
3388 | done | ||
3389 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3390 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3391 | if $ac_preproc_ok; then : | ||
3392 | break | ||
3393 | fi | ||
3394 | |||
3395 | done | ||
3396 | ac_cv_prog_CPP=$CPP | ||
3397 | |||
3398 | fi | ||
3399 | CPP=$ac_cv_prog_CPP | ||
3400 | else | ||
3401 | ac_cv_prog_CPP=$CPP | ||
3402 | fi | ||
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3404 | $as_echo "$CPP" >&6; } | ||
3405 | ac_preproc_ok=false | ||
3406 | for ac_c_preproc_warn_flag in '' yes | ||
3407 | do | ||
3408 | # Use a header file that comes with gcc, so configuring glibc | ||
3409 | # with a fresh cross-compiler works. | ||
3410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3411 | # <limits.h> exists even on freestanding compilers. | ||
3412 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3413 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3415 | /* end confdefs.h. */ | ||
3416 | #ifdef __STDC__ | ||
3417 | # include <limits.h> | ||
3418 | #else | ||
3419 | # include <assert.h> | ||
3420 | #endif | ||
3421 | Syntax error | ||
3422 | _ACEOF | ||
3423 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3424 | |||
3425 | else | ||
3426 | # Broken: fails on valid input. | ||
3427 | continue | ||
3428 | fi | ||
3429 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3430 | |||
3431 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3432 | # can be detected and how. | ||
3433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3434 | /* end confdefs.h. */ | ||
3435 | #include <ac_nonexistent.h> | ||
3436 | _ACEOF | ||
3437 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3438 | # Broken: success on invalid input. | ||
3439 | continue | ||
3440 | else | ||
3441 | # Passes both tests. | ||
3442 | ac_preproc_ok=: | ||
3443 | break | ||
3444 | fi | ||
3445 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3446 | |||
3447 | done | ||
3448 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3449 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3450 | if $ac_preproc_ok; then : | ||
3451 | |||
3452 | else | ||
3453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3455 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3456 | See \`config.log' for more details" "$LINENO" 5; } | ||
3457 | fi | ||
3458 | |||
3459 | ac_ext=c | ||
3460 | ac_cpp='$CPP $CPPFLAGS' | ||
3461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3464 | |||
3465 | |||
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3467 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3468 | if ${ac_cv_path_GREP+:} false; then : | ||
3469 | $as_echo_n "(cached) " >&6 | ||
3470 | else | ||
3471 | if test -z "$GREP"; then | ||
3472 | ac_path_GREP_found=false | ||
3473 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3475 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3476 | do | ||
3477 | IFS=$as_save_IFS | ||
3478 | test -z "$as_dir" && as_dir=. | ||
3479 | for ac_prog in grep ggrep; do | ||
3480 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3481 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3482 | as_fn_executable_p "$ac_path_GREP" || continue | ||
3483 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3484 | # Check for GNU $ac_path_GREP | ||
3485 | case `"$ac_path_GREP" --version 2>&1` in | ||
3486 | *GNU*) | ||
3487 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3488 | *) | ||
3489 | ac_count=0 | ||
3490 | $as_echo_n 0123456789 >"conftest.in" | ||
3491 | while : | ||
3492 | do | ||
3493 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3494 | mv "conftest.tmp" "conftest.in" | ||
3495 | cp "conftest.in" "conftest.nl" | ||
3496 | $as_echo 'GREP' >> "conftest.nl" | ||
3497 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3498 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3499 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3500 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3501 | # Best one so far, save it but keep looking for a better one | ||
3502 | ac_cv_path_GREP="$ac_path_GREP" | ||
3503 | ac_path_GREP_max=$ac_count | ||
3504 | fi | ||
3505 | # 10*(2^10) chars as input seems more than enough | ||
3506 | test $ac_count -gt 10 && break | ||
3507 | done | ||
3508 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3509 | esac | ||
3510 | |||
3511 | $ac_path_GREP_found && break 3 | ||
3512 | done | ||
3513 | done | ||
3514 | done | ||
3515 | IFS=$as_save_IFS | ||
3516 | if test -z "$ac_cv_path_GREP"; then | ||
3517 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3518 | fi | ||
3519 | else | ||
3520 | ac_cv_path_GREP=$GREP | ||
3521 | fi | ||
3522 | |||
3523 | fi | ||
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3525 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3526 | GREP="$ac_cv_path_GREP" | ||
3527 | |||
3528 | |||
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3530 | $as_echo_n "checking for egrep... " >&6; } | ||
3531 | if ${ac_cv_path_EGREP+:} false; then : | ||
3532 | $as_echo_n "(cached) " >&6 | ||
3533 | else | ||
3534 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3535 | then ac_cv_path_EGREP="$GREP -E" | ||
3536 | else | ||
3537 | if test -z "$EGREP"; then | ||
3538 | ac_path_EGREP_found=false | ||
3539 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3541 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3542 | do | ||
3543 | IFS=$as_save_IFS | ||
3544 | test -z "$as_dir" && as_dir=. | ||
3545 | for ac_prog in egrep; do | ||
3546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3547 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3548 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
3549 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3550 | # Check for GNU $ac_path_EGREP | ||
3551 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3552 | *GNU*) | ||
3553 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3554 | *) | ||
3555 | ac_count=0 | ||
3556 | $as_echo_n 0123456789 >"conftest.in" | ||
3557 | while : | ||
3558 | do | ||
3559 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3560 | mv "conftest.tmp" "conftest.in" | ||
3561 | cp "conftest.in" "conftest.nl" | ||
3562 | $as_echo 'EGREP' >> "conftest.nl" | ||
3563 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3564 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3565 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3566 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3567 | # Best one so far, save it but keep looking for a better one | ||
3568 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3569 | ac_path_EGREP_max=$ac_count | ||
3570 | fi | ||
3571 | # 10*(2^10) chars as input seems more than enough | ||
3572 | test $ac_count -gt 10 && break | ||
3573 | done | ||
3574 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3575 | esac | ||
3576 | |||
3577 | $ac_path_EGREP_found && break 3 | ||
3578 | done | ||
3579 | done | ||
3580 | done | ||
3581 | IFS=$as_save_IFS | ||
3582 | if test -z "$ac_cv_path_EGREP"; then | ||
3583 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3584 | fi | ||
3585 | else | ||
3586 | ac_cv_path_EGREP=$EGREP | ||
3587 | fi | ||
3588 | |||
3589 | fi | ||
3590 | fi | ||
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3592 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3593 | EGREP="$ac_cv_path_EGREP" | ||
3594 | |||
3595 | |||
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3597 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3598 | if ${ac_cv_header_stdc+:} false; then : | ||
3599 | $as_echo_n "(cached) " >&6 | ||
3600 | else | ||
3601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3602 | /* end confdefs.h. */ | ||
3603 | #include <stdlib.h> | ||
3604 | #include <stdarg.h> | ||
3605 | #include <string.h> | ||
3606 | #include <float.h> | ||
3607 | |||
3608 | int | ||
3609 | main () | ||
3610 | { | ||
3611 | |||
3612 | ; | ||
3613 | return 0; | ||
3614 | } | ||
3615 | _ACEOF | ||
3616 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3617 | ac_cv_header_stdc=yes | ||
3618 | else | ||
3619 | ac_cv_header_stdc=no | ||
3620 | fi | ||
3621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3622 | |||
3623 | if test $ac_cv_header_stdc = yes; then | ||
3624 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3626 | /* end confdefs.h. */ | ||
3627 | #include <string.h> | ||
3628 | |||
3629 | _ACEOF | ||
3630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3631 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3632 | |||
3633 | else | ||
3634 | ac_cv_header_stdc=no | ||
3635 | fi | ||
3636 | rm -f conftest* | ||
3637 | |||
3638 | fi | ||
3639 | |||
3640 | if test $ac_cv_header_stdc = yes; then | ||
3641 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3643 | /* end confdefs.h. */ | ||
3644 | #include <stdlib.h> | ||
3645 | |||
3646 | _ACEOF | ||
3647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3648 | $EGREP "free" >/dev/null 2>&1; then : | ||
3649 | |||
3650 | else | ||
3651 | ac_cv_header_stdc=no | ||
3652 | fi | ||
3653 | rm -f conftest* | ||
3654 | |||
3655 | fi | ||
3656 | |||
3657 | if test $ac_cv_header_stdc = yes; then | ||
3658 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3659 | if test "$cross_compiling" = yes; then : | ||
3660 | : | ||
3661 | else | ||
3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3663 | /* end confdefs.h. */ | ||
3664 | #include <ctype.h> | ||
3665 | #include <stdlib.h> | ||
3666 | #if ((' ' & 0x0FF) == 0x020) | ||
3667 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3668 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3669 | #else | ||
3670 | # define ISLOWER(c) \ | ||
3671 | (('a' <= (c) && (c) <= 'i') \ | ||
3672 | || ('j' <= (c) && (c) <= 'r') \ | ||
3673 | || ('s' <= (c) && (c) <= 'z')) | ||
3674 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3675 | #endif | ||
3676 | |||
3677 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3678 | int | ||
3679 | main () | ||
3680 | { | ||
3681 | int i; | ||
3682 | for (i = 0; i < 256; i++) | ||
3683 | if (XOR (islower (i), ISLOWER (i)) | ||
3684 | || toupper (i) != TOUPPER (i)) | ||
3685 | return 2; | ||
3686 | return 0; | ||
3687 | } | ||
3688 | _ACEOF | ||
3689 | if ac_fn_c_try_run "$LINENO"; then : | ||
3690 | |||
3691 | else | ||
3692 | ac_cv_header_stdc=no | ||
3693 | fi | ||
3694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3695 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3696 | fi | ||
3697 | |||
3698 | fi | ||
3699 | fi | ||
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3701 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3702 | if test $ac_cv_header_stdc = yes; then | ||
3703 | |||
3704 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3705 | |||
3706 | fi | ||
3707 | |||
3708 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3709 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3710 | inttypes.h stdint.h unistd.h | ||
3711 | do : | ||
3712 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3713 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3714 | " | ||
3715 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3716 | cat >>confdefs.h <<_ACEOF | ||
3717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3718 | _ACEOF | ||
3719 | |||
3720 | fi | ||
3721 | |||
3722 | done | ||
3723 | |||
3724 | |||
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3726 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3727 | if ${ac_cv_c_bigendian+:} false; then : | ||
3728 | $as_echo_n "(cached) " >&6 | ||
3729 | else | ||
3730 | ac_cv_c_bigendian=unknown | ||
3731 | # See if we're dealing with a universal compiler. | ||
3732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3733 | /* end confdefs.h. */ | ||
3734 | #ifndef __APPLE_CC__ | ||
3735 | not a universal capable compiler | ||
3736 | #endif | ||
3737 | typedef int dummy; | ||
3738 | |||
3739 | _ACEOF | ||
3740 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3741 | |||
3742 | # Check for potential -arch flags. It is not universal unless | ||
3743 | # there are at least two -arch flags with different values. | ||
3744 | ac_arch= | ||
3745 | ac_prev= | ||
3746 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3747 | if test -n "$ac_prev"; then | ||
3748 | case $ac_word in | ||
3749 | i?86 | x86_64 | ppc | ppc64) | ||
3750 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3751 | ac_arch=$ac_word | ||
3752 | else | ||
3753 | ac_cv_c_bigendian=universal | ||
3754 | break | ||
3755 | fi | ||
3756 | ;; | ||
3757 | esac | ||
3758 | ac_prev= | ||
3759 | elif test "x$ac_word" = "x-arch"; then | ||
3760 | ac_prev=arch | ||
3761 | fi | ||
3762 | done | ||
3763 | fi | ||
3764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3765 | if test $ac_cv_c_bigendian = unknown; then | ||
3766 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3768 | /* end confdefs.h. */ | ||
3769 | #include <sys/types.h> | ||
3770 | #include <sys/param.h> | ||
3771 | |||
3772 | int | ||
3773 | main () | ||
3774 | { | ||
3775 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3776 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3777 | && LITTLE_ENDIAN) | ||
3778 | bogus endian macros | ||
3779 | #endif | ||
3780 | |||
3781 | ; | ||
3782 | return 0; | ||
3783 | } | ||
3784 | _ACEOF | ||
3785 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3786 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3788 | /* end confdefs.h. */ | ||
3789 | #include <sys/types.h> | ||
3790 | #include <sys/param.h> | ||
3791 | |||
3792 | int | ||
3793 | main () | ||
3794 | { | ||
3795 | #if BYTE_ORDER != BIG_ENDIAN | ||
3796 | not big endian | ||
3797 | #endif | ||
3798 | |||
3799 | ; | ||
3800 | return 0; | ||
3801 | } | ||
3802 | _ACEOF | ||
3803 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3804 | ac_cv_c_bigendian=yes | ||
3805 | else | ||
3806 | ac_cv_c_bigendian=no | ||
3807 | fi | ||
3808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3809 | fi | ||
3810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3811 | fi | ||
3812 | if test $ac_cv_c_bigendian = unknown; then | ||
3813 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3815 | /* end confdefs.h. */ | ||
3816 | #include <limits.h> | ||
3817 | |||
3818 | int | ||
3819 | main () | ||
3820 | { | ||
3821 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
3822 | bogus endian macros | ||
3823 | #endif | ||
3824 | |||
3825 | ; | ||
3826 | return 0; | ||
3827 | } | ||
3828 | _ACEOF | ||
3829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3830 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
3831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3832 | /* end confdefs.h. */ | ||
3833 | #include <limits.h> | ||
3834 | |||
3835 | int | ||
3836 | main () | ||
3837 | { | ||
3838 | #ifndef _BIG_ENDIAN | ||
3839 | not big endian | ||
3840 | #endif | ||
3841 | |||
3842 | ; | ||
3843 | return 0; | ||
3844 | } | ||
3845 | _ACEOF | ||
3846 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3847 | ac_cv_c_bigendian=yes | ||
3848 | else | ||
3849 | ac_cv_c_bigendian=no | ||
3850 | fi | ||
3851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3852 | fi | ||
3853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3854 | fi | ||
3855 | if test $ac_cv_c_bigendian = unknown; then | ||
3856 | # Compile a test program. | ||
3857 | if test "$cross_compiling" = yes; then : | ||
3858 | # Try to guess by grepping values from an object file. | ||
3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3860 | /* end confdefs.h. */ | ||
3861 | short int ascii_mm[] = | ||
3862 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3863 | short int ascii_ii[] = | ||
3864 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3865 | int use_ascii (int i) { | ||
3866 | return ascii_mm[i] + ascii_ii[i]; | ||
3867 | } | ||
3868 | short int ebcdic_ii[] = | ||
3869 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3870 | short int ebcdic_mm[] = | ||
3871 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3872 | int use_ebcdic (int i) { | ||
3873 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
3874 | } | ||
3875 | extern int foo; | ||
3876 | |||
3877 | int | ||
3878 | main () | ||
3879 | { | ||
3880 | return use_ascii (foo) == use_ebcdic (foo); | ||
3881 | ; | ||
3882 | return 0; | ||
3883 | } | ||
3884 | _ACEOF | ||
3885 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3886 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
3887 | ac_cv_c_bigendian=yes | ||
3888 | fi | ||
3889 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3890 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3891 | ac_cv_c_bigendian=no | ||
3892 | else | ||
3893 | # finding both strings is unlikely to happen, but who knows? | ||
3894 | ac_cv_c_bigendian=unknown | ||
3895 | fi | ||
3896 | fi | ||
3897 | fi | ||
3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3899 | else | ||
3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3901 | /* end confdefs.h. */ | ||
3902 | $ac_includes_default | ||
3903 | int | ||
3904 | main () | ||
3905 | { | ||
3906 | |||
3907 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3908 | union | ||
3909 | { | ||
3910 | long int l; | ||
3911 | char c[sizeof (long int)]; | ||
3912 | } u; | ||
3913 | u.l = 1; | ||
3914 | return u.c[sizeof (long int) - 1] == 1; | ||
3915 | |||
3916 | ; | ||
3917 | return 0; | ||
3918 | } | ||
3919 | _ACEOF | ||
3920 | if ac_fn_c_try_run "$LINENO"; then : | ||
3921 | ac_cv_c_bigendian=no | ||
3922 | else | ||
3923 | ac_cv_c_bigendian=yes | ||
3924 | fi | ||
3925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3926 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3927 | fi | ||
3928 | |||
3929 | fi | ||
3930 | fi | ||
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
3932 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
3933 | case $ac_cv_c_bigendian in #( | ||
3934 | yes) | ||
3935 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
3936 | ;; #( | ||
3937 | no) | ||
3938 | ;; #( | ||
3939 | universal) | ||
3940 | |||
3941 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
3942 | |||
3943 | ;; #( | ||
3944 | *) | ||
3945 | as_fn_error $? "unknown endianness | ||
3946 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
3947 | esac | ||
3948 | |||
3949 | |||
3950 | # Checks for programs. | ||
3951 | for ac_prog in gawk mawk nawk awk | ||
3952 | do | ||
3953 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3954 | set dummy $ac_prog; ac_word=$2 | ||
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3956 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3957 | if ${ac_cv_prog_AWK+:} false; then : | ||
3958 | $as_echo_n "(cached) " >&6 | ||
3959 | else | ||
3960 | if test -n "$AWK"; then | ||
3961 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3962 | else | ||
3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3964 | for as_dir in $PATH | ||
3965 | do | ||
3966 | IFS=$as_save_IFS | ||
3967 | test -z "$as_dir" && as_dir=. | ||
3968 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
3970 | ac_cv_prog_AWK="$ac_prog" | ||
3971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3972 | break 2 | ||
3973 | fi | ||
3974 | done | ||
3975 | done | ||
3976 | IFS=$as_save_IFS | ||
3977 | |||
3978 | fi | ||
3979 | fi | ||
3980 | AWK=$ac_cv_prog_AWK | ||
3981 | if test -n "$AWK"; then | ||
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3983 | $as_echo "$AWK" >&6; } | ||
3984 | else | ||
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3986 | $as_echo "no" >&6; } | ||
3987 | fi | ||
3988 | |||
3989 | |||
3990 | test -n "$AWK" && break | ||
3991 | done | ||
3992 | |||
3993 | ac_ext=c | ||
3994 | ac_cpp='$CPP $CPPFLAGS' | ||
3995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3999 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4000 | # On Suns, sometimes $CPP names a directory. | ||
4001 | if test -n "$CPP" && test -d "$CPP"; then | ||
4002 | CPP= | ||
4003 | fi | ||
4004 | if test -z "$CPP"; then | ||
4005 | if ${ac_cv_prog_CPP+:} false; then : | ||
4006 | $as_echo_n "(cached) " >&6 | ||
4007 | else | ||
4008 | # Double quotes because CPP needs to be expanded | ||
4009 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4010 | do | ||
4011 | ac_preproc_ok=false | ||
4012 | for ac_c_preproc_warn_flag in '' yes | ||
4013 | do | ||
4014 | # Use a header file that comes with gcc, so configuring glibc | ||
4015 | # with a fresh cross-compiler works. | ||
4016 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4017 | # <limits.h> exists even on freestanding compilers. | ||
4018 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4019 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4021 | /* end confdefs.h. */ | ||
4022 | #ifdef __STDC__ | ||
4023 | # include <limits.h> | ||
4024 | #else | ||
4025 | # include <assert.h> | ||
4026 | #endif | ||
4027 | Syntax error | ||
4028 | _ACEOF | ||
4029 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4030 | |||
4031 | else | ||
4032 | # Broken: fails on valid input. | ||
4033 | continue | ||
4034 | fi | ||
4035 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4036 | |||
4037 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4038 | # can be detected and how. | ||
4039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4040 | /* end confdefs.h. */ | ||
4041 | #include <ac_nonexistent.h> | ||
4042 | _ACEOF | ||
4043 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4044 | # Broken: success on invalid input. | ||
4045 | continue | ||
4046 | else | ||
4047 | # Passes both tests. | ||
4048 | ac_preproc_ok=: | ||
4049 | break | ||
4050 | fi | ||
4051 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4052 | |||
4053 | done | ||
4054 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4055 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4056 | if $ac_preproc_ok; then : | ||
4057 | break | ||
4058 | fi | ||
4059 | |||
4060 | done | ||
4061 | ac_cv_prog_CPP=$CPP | ||
4062 | |||
4063 | fi | ||
4064 | CPP=$ac_cv_prog_CPP | ||
4065 | else | ||
4066 | ac_cv_prog_CPP=$CPP | ||
4067 | fi | ||
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4069 | $as_echo "$CPP" >&6; } | ||
4070 | ac_preproc_ok=false | ||
4071 | for ac_c_preproc_warn_flag in '' yes | ||
4072 | do | ||
4073 | # Use a header file that comes with gcc, so configuring glibc | ||
4074 | # with a fresh cross-compiler works. | ||
4075 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4076 | # <limits.h> exists even on freestanding compilers. | ||
4077 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4078 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4080 | /* end confdefs.h. */ | ||
4081 | #ifdef __STDC__ | ||
4082 | # include <limits.h> | ||
4083 | #else | ||
4084 | # include <assert.h> | ||
4085 | #endif | ||
4086 | Syntax error | ||
4087 | _ACEOF | ||
4088 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4089 | |||
4090 | else | ||
4091 | # Broken: fails on valid input. | ||
4092 | continue | ||
4093 | fi | ||
4094 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4095 | |||
4096 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4097 | # can be detected and how. | ||
4098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4099 | /* end confdefs.h. */ | ||
4100 | #include <ac_nonexistent.h> | ||
4101 | _ACEOF | ||
4102 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4103 | # Broken: success on invalid input. | ||
4104 | continue | ||
4105 | else | ||
4106 | # Passes both tests. | ||
4107 | ac_preproc_ok=: | ||
4108 | break | ||
4109 | fi | ||
4110 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4111 | |||
4112 | done | ||
4113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4114 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4115 | if $ac_preproc_ok; then : | ||
4116 | |||
4117 | else | ||
4118 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4120 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4121 | See \`config.log' for more details" "$LINENO" 5; } | ||
4122 | fi | ||
4123 | |||
4124 | ac_ext=c | ||
4125 | ac_cpp='$CPP $CPPFLAGS' | ||
4126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4129 | |||
4130 | if test -n "$ac_tool_prefix"; then | ||
4131 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4132 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4134 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4135 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4136 | $as_echo_n "(cached) " >&6 | ||
4137 | else | ||
4138 | if test -n "$RANLIB"; then | ||
4139 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4140 | else | ||
4141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4142 | for as_dir in $PATH | ||
4143 | do | ||
4144 | IFS=$as_save_IFS | ||
4145 | test -z "$as_dir" && as_dir=. | ||
4146 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4147 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4148 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4150 | break 2 | ||
4151 | fi | ||
4152 | done | ||
4153 | done | ||
4154 | IFS=$as_save_IFS | ||
4155 | |||
4156 | fi | ||
4157 | fi | ||
4158 | RANLIB=$ac_cv_prog_RANLIB | ||
4159 | if test -n "$RANLIB"; then | ||
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4161 | $as_echo "$RANLIB" >&6; } | ||
4162 | else | ||
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4164 | $as_echo "no" >&6; } | ||
4165 | fi | ||
4166 | |||
4167 | |||
4168 | fi | ||
4169 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4170 | ac_ct_RANLIB=$RANLIB | ||
4171 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4172 | set dummy ranlib; ac_word=$2 | ||
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4174 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4175 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4176 | $as_echo_n "(cached) " >&6 | ||
4177 | else | ||
4178 | if test -n "$ac_ct_RANLIB"; then | ||
4179 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4180 | else | ||
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4182 | for as_dir in $PATH | ||
4183 | do | ||
4184 | IFS=$as_save_IFS | ||
4185 | test -z "$as_dir" && as_dir=. | ||
4186 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4188 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4190 | break 2 | ||
4191 | fi | ||
4192 | done | ||
4193 | done | ||
4194 | IFS=$as_save_IFS | ||
4195 | |||
4196 | fi | ||
4197 | fi | ||
4198 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4199 | if test -n "$ac_ct_RANLIB"; then | ||
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4201 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4202 | else | ||
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4204 | $as_echo "no" >&6; } | ||
4205 | fi | ||
4206 | |||
4207 | if test "x$ac_ct_RANLIB" = x; then | ||
4208 | RANLIB=":" | ||
4209 | else | ||
4210 | case $cross_compiling:$ac_tool_warned in | ||
4211 | yes:) | ||
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4213 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4214 | ac_tool_warned=yes ;; | ||
4215 | esac | ||
4216 | RANLIB=$ac_ct_RANLIB | ||
4217 | fi | ||
4218 | else | ||
4219 | RANLIB="$ac_cv_prog_RANLIB" | ||
4220 | fi | ||
4221 | |||
4222 | # Find a good install program. We prefer a C program (faster), | ||
4223 | # so one script is as good as another. But avoid the broken or | ||
4224 | # incompatible versions: | ||
4225 | # SysV /etc/install, /usr/sbin/install | ||
4226 | # SunOS /usr/etc/install | ||
4227 | # IRIX /sbin/install | ||
4228 | # AIX /bin/install | ||
4229 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4230 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4231 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4232 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4233 | # OS/2's system install, which has a completely different semantic | ||
4234 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4235 | # Reject install programs that cannot install multiple files. | ||
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4237 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4238 | if test -z "$INSTALL"; then | ||
4239 | if ${ac_cv_path_install+:} false; then : | ||
4240 | $as_echo_n "(cached) " >&6 | ||
4241 | else | ||
4242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4243 | for as_dir in $PATH | ||
4244 | do | ||
4245 | IFS=$as_save_IFS | ||
4246 | test -z "$as_dir" && as_dir=. | ||
4247 | # Account for people who put trailing slashes in PATH elements. | ||
4248 | case $as_dir/ in #(( | ||
4249 | ./ | .// | /[cC]/* | \ | ||
4250 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4251 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4252 | /usr/ucb/* ) ;; | ||
4253 | *) | ||
4254 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4255 | # Don't use installbsd from OSF since it installs stuff as root | ||
4256 | # by default. | ||
4257 | for ac_prog in ginstall scoinst install; do | ||
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4259 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
4260 | if test $ac_prog = install && | ||
4261 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4262 | # AIX install. It has an incompatible calling convention. | ||
4263 | : | ||
4264 | elif test $ac_prog = install && | ||
4265 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4266 | # program-specific install script used by HP pwplus--don't use. | ||
4267 | : | ||
4268 | else | ||
4269 | rm -rf conftest.one conftest.two conftest.dir | ||
4270 | echo one > conftest.one | ||
4271 | echo two > conftest.two | ||
4272 | mkdir conftest.dir | ||
4273 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4274 | test -s conftest.one && test -s conftest.two && | ||
4275 | test -s conftest.dir/conftest.one && | ||
4276 | test -s conftest.dir/conftest.two | ||
4277 | then | ||
4278 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4279 | break 3 | ||
4280 | fi | ||
4281 | fi | ||
4282 | fi | ||
4283 | done | ||
4284 | done | ||
4285 | ;; | ||
4286 | esac | ||
4287 | |||
4288 | done | ||
4289 | IFS=$as_save_IFS | ||
4290 | |||
4291 | rm -rf conftest.one conftest.two conftest.dir | ||
4292 | |||
4293 | fi | ||
4294 | if test "${ac_cv_path_install+set}" = set; then | ||
4295 | INSTALL=$ac_cv_path_install | ||
4296 | else | ||
4297 | # As a last resort, use the slow shell script. Don't cache a | ||
4298 | # value for INSTALL within a source directory, because that will | ||
4299 | # break other packages using the cache if that directory is | ||
4300 | # removed, or if the value is a relative name. | ||
4301 | INSTALL=$ac_install_sh | ||
4302 | fi | ||
4303 | fi | ||
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4305 | $as_echo "$INSTALL" >&6; } | ||
4306 | |||
4307 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4308 | # It thinks the first close brace ends the variable substitution. | ||
4309 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4310 | |||
4311 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4312 | |||
4313 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4314 | |||
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4316 | $as_echo_n "checking for egrep... " >&6; } | ||
4317 | if ${ac_cv_path_EGREP+:} false; then : | ||
4318 | $as_echo_n "(cached) " >&6 | ||
4319 | else | ||
4320 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4321 | then ac_cv_path_EGREP="$GREP -E" | ||
4322 | else | ||
4323 | if test -z "$EGREP"; then | ||
4324 | ac_path_EGREP_found=false | ||
4325 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4327 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4328 | do | ||
4329 | IFS=$as_save_IFS | ||
4330 | test -z "$as_dir" && as_dir=. | ||
4331 | for ac_prog in egrep; do | ||
4332 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4333 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4334 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
4335 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4336 | # Check for GNU $ac_path_EGREP | ||
4337 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4338 | *GNU*) | ||
4339 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4340 | *) | ||
4341 | ac_count=0 | ||
4342 | $as_echo_n 0123456789 >"conftest.in" | ||
4343 | while : | ||
4344 | do | ||
4345 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4346 | mv "conftest.tmp" "conftest.in" | ||
4347 | cp "conftest.in" "conftest.nl" | ||
4348 | $as_echo 'EGREP' >> "conftest.nl" | ||
4349 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4351 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4352 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4353 | # Best one so far, save it but keep looking for a better one | ||
4354 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4355 | ac_path_EGREP_max=$ac_count | ||
4356 | fi | ||
4357 | # 10*(2^10) chars as input seems more than enough | ||
4358 | test $ac_count -gt 10 && break | ||
4359 | done | ||
4360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4361 | esac | ||
4362 | |||
4363 | $ac_path_EGREP_found && break 3 | ||
4364 | done | ||
4365 | done | ||
4366 | done | ||
4367 | IFS=$as_save_IFS | ||
4368 | if test -z "$ac_cv_path_EGREP"; then | ||
4369 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4370 | fi | ||
4371 | else | ||
4372 | ac_cv_path_EGREP=$EGREP | ||
4373 | fi | ||
4374 | |||
4375 | fi | ||
4376 | fi | ||
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4378 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4379 | EGREP="$ac_cv_path_EGREP" | ||
4380 | |||
4381 | |||
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
4383 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
4384 | if test -z "$MKDIR_P"; then | ||
4385 | if ${ac_cv_path_mkdir+:} false; then : | ||
4386 | $as_echo_n "(cached) " >&6 | ||
4387 | else | ||
4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4389 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
4390 | do | ||
4391 | IFS=$as_save_IFS | ||
4392 | test -z "$as_dir" && as_dir=. | ||
4393 | for ac_prog in mkdir gmkdir; do | ||
4394 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4395 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | ||
4396 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
4397 | 'mkdir (GNU coreutils) '* | \ | ||
4398 | 'mkdir (coreutils) '* | \ | ||
4399 | 'mkdir (fileutils) '4.1*) | ||
4400 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
4401 | break 3;; | ||
4402 | esac | ||
4403 | done | ||
4404 | done | ||
4405 | done | ||
4406 | IFS=$as_save_IFS | ||
4407 | |||
4408 | fi | ||
4409 | |||
4410 | test -d ./--version && rmdir ./--version | ||
4411 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
4412 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
4413 | else | ||
4414 | # As a last resort, use the slow shell script. Don't cache a | ||
4415 | # value for MKDIR_P within a source directory, because that will | ||
4416 | # break other packages using the cache if that directory is | ||
4417 | # removed, or if the value is a relative name. | ||
4418 | MKDIR_P="$ac_install_sh -d" | ||
4419 | fi | ||
4420 | fi | ||
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
4422 | $as_echo "$MKDIR_P" >&6; } | ||
4423 | |||
4424 | if test -n "$ac_tool_prefix"; then | ||
4425 | for ac_prog in ar | ||
4426 | do | ||
4427 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4428 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4430 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4431 | if ${ac_cv_prog_AR+:} false; then : | ||
4432 | $as_echo_n "(cached) " >&6 | ||
4433 | else | ||
4434 | if test -n "$AR"; then | ||
4435 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4436 | else | ||
4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4438 | for as_dir in $PATH | ||
4439 | do | ||
4440 | IFS=$as_save_IFS | ||
4441 | test -z "$as_dir" && as_dir=. | ||
4442 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4444 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4446 | break 2 | ||
4447 | fi | ||
4448 | done | ||
4449 | done | ||
4450 | IFS=$as_save_IFS | ||
4451 | |||
4452 | fi | ||
4453 | fi | ||
4454 | AR=$ac_cv_prog_AR | ||
4455 | if test -n "$AR"; then | ||
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4457 | $as_echo "$AR" >&6; } | ||
4458 | else | ||
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4460 | $as_echo "no" >&6; } | ||
4461 | fi | ||
4462 | |||
4463 | |||
4464 | test -n "$AR" && break | ||
4465 | done | ||
4466 | fi | ||
4467 | if test -z "$AR"; then | ||
4468 | ac_ct_AR=$AR | ||
4469 | for ac_prog in ar | ||
4470 | do | ||
4471 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4472 | set dummy $ac_prog; ac_word=$2 | ||
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4474 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4475 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
4476 | $as_echo_n "(cached) " >&6 | ||
4477 | else | ||
4478 | if test -n "$ac_ct_AR"; then | ||
4479 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4480 | else | ||
4481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4482 | for as_dir in $PATH | ||
4483 | do | ||
4484 | IFS=$as_save_IFS | ||
4485 | test -z "$as_dir" && as_dir=. | ||
4486 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4488 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4490 | break 2 | ||
4491 | fi | ||
4492 | done | ||
4493 | done | ||
4494 | IFS=$as_save_IFS | ||
4495 | |||
4496 | fi | ||
4497 | fi | ||
4498 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4499 | if test -n "$ac_ct_AR"; then | ||
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
4501 | $as_echo "$ac_ct_AR" >&6; } | ||
4502 | else | ||
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4504 | $as_echo "no" >&6; } | ||
4505 | fi | ||
4506 | |||
4507 | |||
4508 | test -n "$ac_ct_AR" && break | ||
4509 | done | ||
4510 | |||
4511 | if test "x$ac_ct_AR" = x; then | ||
4512 | AR="" | ||
4513 | else | ||
4514 | case $cross_compiling:$ac_tool_warned in | ||
4515 | yes:) | ||
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4517 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4518 | ac_tool_warned=yes ;; | ||
4519 | esac | ||
4520 | AR=$ac_ct_AR | ||
4521 | fi | ||
4522 | fi | ||
4523 | |||
4524 | # Extract the first word of "cat", so it can be a program name with args. | ||
4525 | set dummy cat; ac_word=$2 | ||
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4527 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4528 | if ${ac_cv_path_CAT+:} false; then : | ||
4529 | $as_echo_n "(cached) " >&6 | ||
4530 | else | ||
4531 | case $CAT in | ||
4532 | [\\/]* | ?:[\\/]*) | ||
4533 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4534 | ;; | ||
4535 | *) | ||
4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4537 | for as_dir in $PATH | ||
4538 | do | ||
4539 | IFS=$as_save_IFS | ||
4540 | test -z "$as_dir" && as_dir=. | ||
4541 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4543 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4545 | break 2 | ||
4546 | fi | ||
4547 | done | ||
4548 | done | ||
4549 | IFS=$as_save_IFS | ||
4550 | |||
4551 | ;; | ||
4552 | esac | ||
4553 | fi | ||
4554 | CAT=$ac_cv_path_CAT | ||
4555 | if test -n "$CAT"; then | ||
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4557 | $as_echo "$CAT" >&6; } | ||
4558 | else | ||
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4560 | $as_echo "no" >&6; } | ||
4561 | fi | ||
4562 | |||
4563 | |||
4564 | # Extract the first word of "kill", so it can be a program name with args. | ||
4565 | set dummy kill; ac_word=$2 | ||
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4567 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4568 | if ${ac_cv_path_KILL+:} false; then : | ||
4569 | $as_echo_n "(cached) " >&6 | ||
4570 | else | ||
4571 | case $KILL in | ||
4572 | [\\/]* | ?:[\\/]*) | ||
4573 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4574 | ;; | ||
4575 | *) | ||
4576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4577 | for as_dir in $PATH | ||
4578 | do | ||
4579 | IFS=$as_save_IFS | ||
4580 | test -z "$as_dir" && as_dir=. | ||
4581 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4583 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4585 | break 2 | ||
4586 | fi | ||
4587 | done | ||
4588 | done | ||
4589 | IFS=$as_save_IFS | ||
4590 | |||
4591 | ;; | ||
4592 | esac | ||
4593 | fi | ||
4594 | KILL=$ac_cv_path_KILL | ||
4595 | if test -n "$KILL"; then | ||
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4597 | $as_echo "$KILL" >&6; } | ||
4598 | else | ||
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4600 | $as_echo "no" >&6; } | ||
4601 | fi | ||
4602 | |||
4603 | |||
4604 | # Extract the first word of "sed", so it can be a program name with args. | ||
4605 | set dummy sed; ac_word=$2 | ||
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4607 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4608 | if ${ac_cv_path_SED+:} false; then : | ||
4609 | $as_echo_n "(cached) " >&6 | ||
4610 | else | ||
4611 | case $SED in | ||
4612 | [\\/]* | ?:[\\/]*) | ||
4613 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4614 | ;; | ||
4615 | *) | ||
4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4617 | for as_dir in $PATH | ||
4618 | do | ||
4619 | IFS=$as_save_IFS | ||
4620 | test -z "$as_dir" && as_dir=. | ||
4621 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4623 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4625 | break 2 | ||
4626 | fi | ||
4627 | done | ||
4628 | done | ||
4629 | IFS=$as_save_IFS | ||
4630 | |||
4631 | ;; | ||
4632 | esac | ||
4633 | fi | ||
4634 | SED=$ac_cv_path_SED | ||
4635 | if test -n "$SED"; then | ||
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4637 | $as_echo "$SED" >&6; } | ||
4638 | else | ||
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4640 | $as_echo "no" >&6; } | ||
4641 | fi | ||
4642 | |||
4643 | |||
4644 | # Extract the first word of "ent", so it can be a program name with args. | ||
4645 | set dummy ent; ac_word=$2 | ||
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4647 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4648 | if ${ac_cv_path_ENT+:} false; then : | ||
4649 | $as_echo_n "(cached) " >&6 | ||
4650 | else | ||
4651 | case $ENT in | ||
4652 | [\\/]* | ?:[\\/]*) | ||
4653 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4654 | ;; | ||
4655 | *) | ||
4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4657 | for as_dir in $PATH | ||
4658 | do | ||
4659 | IFS=$as_save_IFS | ||
4660 | test -z "$as_dir" && as_dir=. | ||
4661 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4663 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4665 | break 2 | ||
4666 | fi | ||
4667 | done | ||
4668 | done | ||
4669 | IFS=$as_save_IFS | ||
4670 | |||
4671 | ;; | ||
4672 | esac | ||
4673 | fi | ||
4674 | ENT=$ac_cv_path_ENT | ||
4675 | if test -n "$ENT"; then | ||
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4677 | $as_echo "$ENT" >&6; } | ||
4678 | else | ||
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4680 | $as_echo "no" >&6; } | ||
4681 | fi | ||
4682 | |||
4683 | |||
4684 | |||
4685 | # Extract the first word of "bash", so it can be a program name with args. | ||
4686 | set dummy bash; ac_word=$2 | ||
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4688 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4689 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4690 | $as_echo_n "(cached) " >&6 | ||
4691 | else | ||
4692 | case $TEST_MINUS_S_SH in | ||
4693 | [\\/]* | ?:[\\/]*) | ||
4694 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4695 | ;; | ||
4696 | *) | ||
4697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4698 | for as_dir in $PATH | ||
4699 | do | ||
4700 | IFS=$as_save_IFS | ||
4701 | test -z "$as_dir" && as_dir=. | ||
4702 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4704 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4706 | break 2 | ||
4707 | fi | ||
4708 | done | ||
4709 | done | ||
4710 | IFS=$as_save_IFS | ||
4711 | |||
4712 | ;; | ||
4713 | esac | ||
4714 | fi | ||
4715 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4716 | if test -n "$TEST_MINUS_S_SH"; then | ||
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4718 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4719 | else | ||
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4721 | $as_echo "no" >&6; } | ||
4722 | fi | ||
4723 | |||
4724 | |||
4725 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4726 | set dummy ksh; ac_word=$2 | ||
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4728 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4729 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4730 | $as_echo_n "(cached) " >&6 | ||
4731 | else | ||
4732 | case $TEST_MINUS_S_SH in | ||
4733 | [\\/]* | ?:[\\/]*) | ||
4734 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4735 | ;; | ||
4736 | *) | ||
4737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4738 | for as_dir in $PATH | ||
4739 | do | ||
4740 | IFS=$as_save_IFS | ||
4741 | test -z "$as_dir" && as_dir=. | ||
4742 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4744 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4746 | break 2 | ||
4747 | fi | ||
4748 | done | ||
4749 | done | ||
4750 | IFS=$as_save_IFS | ||
4751 | |||
4752 | ;; | ||
4753 | esac | ||
4754 | fi | ||
4755 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4756 | if test -n "$TEST_MINUS_S_SH"; then | ||
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4758 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4759 | else | ||
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4761 | $as_echo "no" >&6; } | ||
4762 | fi | ||
4763 | |||
4764 | |||
4765 | # Extract the first word of "sh", so it can be a program name with args. | ||
4766 | set dummy sh; ac_word=$2 | ||
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4768 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4769 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4770 | $as_echo_n "(cached) " >&6 | ||
4771 | else | ||
4772 | case $TEST_MINUS_S_SH in | ||
4773 | [\\/]* | ?:[\\/]*) | ||
4774 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4775 | ;; | ||
4776 | *) | ||
4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4778 | for as_dir in $PATH | ||
4779 | do | ||
4780 | IFS=$as_save_IFS | ||
4781 | test -z "$as_dir" && as_dir=. | ||
4782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4784 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4786 | break 2 | ||
4787 | fi | ||
4788 | done | ||
4789 | done | ||
4790 | IFS=$as_save_IFS | ||
4791 | |||
4792 | ;; | ||
4793 | esac | ||
4794 | fi | ||
4795 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4796 | if test -n "$TEST_MINUS_S_SH"; then | ||
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4798 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4799 | else | ||
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4801 | $as_echo "no" >&6; } | ||
4802 | fi | ||
4803 | |||
4804 | |||
4805 | # Extract the first word of "sh", so it can be a program name with args. | ||
4806 | set dummy sh; ac_word=$2 | ||
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4808 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4809 | if ${ac_cv_path_SH+:} false; then : | ||
4810 | $as_echo_n "(cached) " >&6 | ||
4811 | else | ||
4812 | case $SH in | ||
4813 | [\\/]* | ?:[\\/]*) | ||
4814 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4815 | ;; | ||
4816 | *) | ||
4817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4818 | for as_dir in $PATH | ||
4819 | do | ||
4820 | IFS=$as_save_IFS | ||
4821 | test -z "$as_dir" && as_dir=. | ||
4822 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4824 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4826 | break 2 | ||
4827 | fi | ||
4828 | done | ||
4829 | done | ||
4830 | IFS=$as_save_IFS | ||
4831 | |||
4832 | ;; | ||
4833 | esac | ||
4834 | fi | ||
4835 | SH=$ac_cv_path_SH | ||
4836 | if test -n "$SH"; then | ||
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
4838 | $as_echo "$SH" >&6; } | ||
4839 | else | ||
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4841 | $as_echo "no" >&6; } | ||
4842 | fi | ||
4843 | |||
4844 | |||
4845 | # Extract the first word of "groff", so it can be a program name with args. | ||
4846 | set dummy groff; ac_word=$2 | ||
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4848 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4849 | if ${ac_cv_path_GROFF+:} false; then : | ||
4850 | $as_echo_n "(cached) " >&6 | ||
4851 | else | ||
4852 | case $GROFF in | ||
4853 | [\\/]* | ?:[\\/]*) | ||
4854 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4855 | ;; | ||
4856 | *) | ||
4857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4858 | for as_dir in $PATH | ||
4859 | do | ||
4860 | IFS=$as_save_IFS | ||
4861 | test -z "$as_dir" && as_dir=. | ||
4862 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4864 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4866 | break 2 | ||
4867 | fi | ||
4868 | done | ||
4869 | done | ||
4870 | IFS=$as_save_IFS | ||
4871 | |||
4872 | ;; | ||
4873 | esac | ||
4874 | fi | ||
4875 | GROFF=$ac_cv_path_GROFF | ||
4876 | if test -n "$GROFF"; then | ||
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
4878 | $as_echo "$GROFF" >&6; } | ||
4879 | else | ||
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4881 | $as_echo "no" >&6; } | ||
4882 | fi | ||
4883 | |||
4884 | |||
4885 | # Extract the first word of "nroff awf", so it can be a program name with args. | ||
4886 | set dummy nroff awf; ac_word=$2 | ||
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4888 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4889 | if ${ac_cv_path_NROFF+:} false; then : | ||
4890 | $as_echo_n "(cached) " >&6 | ||
4891 | else | ||
4892 | case $NROFF in | ||
4893 | [\\/]* | ?:[\\/]*) | ||
4894 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4895 | ;; | ||
4896 | *) | ||
4897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4898 | for as_dir in $PATH | ||
4899 | do | ||
4900 | IFS=$as_save_IFS | ||
4901 | test -z "$as_dir" && as_dir=. | ||
4902 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4904 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4906 | break 2 | ||
4907 | fi | ||
4908 | done | ||
4909 | done | ||
4910 | IFS=$as_save_IFS | ||
4911 | |||
4912 | ;; | ||
4913 | esac | ||
4914 | fi | ||
4915 | NROFF=$ac_cv_path_NROFF | ||
4916 | if test -n "$NROFF"; then | ||
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
4918 | $as_echo "$NROFF" >&6; } | ||
4919 | else | ||
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4921 | $as_echo "no" >&6; } | ||
4922 | fi | ||
4923 | |||
4924 | |||
4925 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
4926 | set dummy mandoc; ac_word=$2 | ||
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4928 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4929 | if ${ac_cv_path_MANDOC+:} false; then : | ||
4930 | $as_echo_n "(cached) " >&6 | ||
4931 | else | ||
4932 | case $MANDOC in | ||
4933 | [\\/]* | ?:[\\/]*) | ||
4934 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
4935 | ;; | ||
4936 | *) | ||
4937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4938 | for as_dir in $PATH | ||
4939 | do | ||
4940 | IFS=$as_save_IFS | ||
4941 | test -z "$as_dir" && as_dir=. | ||
4942 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4944 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
4945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4946 | break 2 | ||
4947 | fi | ||
4948 | done | ||
4949 | done | ||
4950 | IFS=$as_save_IFS | ||
4951 | |||
4952 | ;; | ||
4953 | esac | ||
4954 | fi | ||
4955 | MANDOC=$ac_cv_path_MANDOC | ||
4956 | if test -n "$MANDOC"; then | ||
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
4958 | $as_echo "$MANDOC" >&6; } | ||
4959 | else | ||
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4961 | $as_echo "no" >&6; } | ||
4962 | fi | ||
4963 | |||
4964 | |||
4965 | TEST_SHELL=sh | ||
4966 | |||
4967 | |||
4968 | if test "x$MANDOC" != "x" ; then | ||
4969 | MANFMT="$MANDOC" | ||
4970 | elif test "x$NROFF" != "x" ; then | ||
4971 | MANFMT="$NROFF -mandoc" | ||
4972 | elif test "x$GROFF" != "x" ; then | ||
4973 | MANFMT="$GROFF -mandoc -Tascii" | ||
4974 | else | ||
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatter found" >&5 | ||
4976 | $as_echo "$as_me: WARNING: no manpage formatter found" >&2;} | ||
4977 | MANFMT="false" | ||
4978 | fi | ||
4979 | |||
4980 | |||
4981 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4982 | set dummy groupadd; ac_word=$2 | ||
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4984 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4985 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
4986 | $as_echo_n "(cached) " >&6 | ||
4987 | else | ||
4988 | case $PATH_GROUPADD_PROG in | ||
4989 | [\\/]* | ?:[\\/]*) | ||
4990 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4991 | ;; | ||
4992 | *) | ||
4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4994 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4995 | do | ||
4996 | IFS=$as_save_IFS | ||
4997 | test -z "$as_dir" && as_dir=. | ||
4998 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5000 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5002 | break 2 | ||
5003 | fi | ||
5004 | done | ||
5005 | done | ||
5006 | IFS=$as_save_IFS | ||
5007 | |||
5008 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5009 | ;; | ||
5010 | esac | ||
5011 | fi | ||
5012 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5013 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5015 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5016 | else | ||
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5018 | $as_echo "no" >&6; } | ||
5019 | fi | ||
5020 | |||
5021 | |||
5022 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5023 | set dummy useradd; ac_word=$2 | ||
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5025 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5026 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5027 | $as_echo_n "(cached) " >&6 | ||
5028 | else | ||
5029 | case $PATH_USERADD_PROG in | ||
5030 | [\\/]* | ?:[\\/]*) | ||
5031 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5032 | ;; | ||
5033 | *) | ||
5034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5035 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5036 | do | ||
5037 | IFS=$as_save_IFS | ||
5038 | test -z "$as_dir" && as_dir=. | ||
5039 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5041 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5043 | break 2 | ||
5044 | fi | ||
5045 | done | ||
5046 | done | ||
5047 | IFS=$as_save_IFS | ||
5048 | |||
5049 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5050 | ;; | ||
5051 | esac | ||
5052 | fi | ||
5053 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5054 | if test -n "$PATH_USERADD_PROG"; then | ||
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5056 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5057 | else | ||
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5059 | $as_echo "no" >&6; } | ||
5060 | fi | ||
5061 | |||
5062 | |||
5063 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5064 | set dummy pkgmk; ac_word=$2 | ||
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5066 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5067 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5068 | $as_echo_n "(cached) " >&6 | ||
5069 | else | ||
5070 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5071 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5072 | else | ||
5073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5074 | for as_dir in $PATH | ||
5075 | do | ||
5076 | IFS=$as_save_IFS | ||
5077 | test -z "$as_dir" && as_dir=. | ||
5078 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5080 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5082 | break 2 | ||
5083 | fi | ||
5084 | done | ||
5085 | done | ||
5086 | IFS=$as_save_IFS | ||
5087 | |||
5088 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5089 | fi | ||
5090 | fi | ||
5091 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5092 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5094 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5095 | else | ||
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5097 | $as_echo "no" >&6; } | ||
5098 | fi | ||
5099 | |||
5100 | |||
5101 | if test -x /sbin/sh; then | ||
5102 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5103 | |||
5104 | else | ||
5105 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5106 | |||
5107 | fi | ||
5108 | |||
5109 | # System features | ||
5110 | # Check whether --enable-largefile was given. | ||
5111 | if test "${enable_largefile+set}" = set; then : | ||
5112 | enableval=$enable_largefile; | ||
5113 | fi | ||
5114 | |||
5115 | if test "$enable_largefile" != no; then | ||
5116 | |||
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5118 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5119 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5120 | $as_echo_n "(cached) " >&6 | ||
5121 | else | ||
5122 | ac_cv_sys_largefile_CC=no | ||
5123 | if test "$GCC" != yes; then | ||
5124 | ac_save_CC=$CC | ||
5125 | while :; do | ||
5126 | # IRIX 6.2 and later do not support large files by default, | ||
5127 | # so use the C compiler's -n32 option if that helps. | ||
5128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5129 | /* end confdefs.h. */ | ||
5130 | #include <sys/types.h> | ||
5131 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5132 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5133 | since some C++ compilers masquerading as C compilers | ||
5134 | incorrectly reject 9223372036854775807. */ | ||
5135 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5136 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5137 | && LARGE_OFF_T % 2147483647 == 1) | ||
5138 | ? 1 : -1]; | ||
5139 | int | ||
5140 | main () | ||
5141 | { | ||
5142 | |||
5143 | ; | ||
5144 | return 0; | ||
5145 | } | ||
5146 | _ACEOF | ||
5147 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5148 | break | ||
5149 | fi | ||
5150 | rm -f core conftest.err conftest.$ac_objext | ||
5151 | CC="$CC -n32" | ||
5152 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5153 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5154 | fi | ||
5155 | rm -f core conftest.err conftest.$ac_objext | ||
5156 | break | ||
5157 | done | ||
5158 | CC=$ac_save_CC | ||
5159 | rm -f conftest.$ac_ext | ||
5160 | fi | ||
5161 | fi | ||
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5163 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5164 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5165 | CC=$CC$ac_cv_sys_largefile_CC | ||
5166 | fi | ||
5167 | |||
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5169 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5170 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5171 | $as_echo_n "(cached) " >&6 | ||
5172 | else | ||
5173 | while :; do | ||
5174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5175 | /* end confdefs.h. */ | ||
5176 | #include <sys/types.h> | ||
5177 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5178 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5179 | since some C++ compilers masquerading as C compilers | ||
5180 | incorrectly reject 9223372036854775807. */ | ||
5181 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5182 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5183 | && LARGE_OFF_T % 2147483647 == 1) | ||
5184 | ? 1 : -1]; | ||
5185 | int | ||
5186 | main () | ||
5187 | { | ||
5188 | |||
5189 | ; | ||
5190 | return 0; | ||
5191 | } | ||
5192 | _ACEOF | ||
5193 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5194 | ac_cv_sys_file_offset_bits=no; break | ||
5195 | fi | ||
5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5198 | /* end confdefs.h. */ | ||
5199 | #define _FILE_OFFSET_BITS 64 | ||
5200 | #include <sys/types.h> | ||
5201 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5202 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5203 | since some C++ compilers masquerading as C compilers | ||
5204 | incorrectly reject 9223372036854775807. */ | ||
5205 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5206 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5207 | && LARGE_OFF_T % 2147483647 == 1) | ||
5208 | ? 1 : -1]; | ||
5209 | int | ||
5210 | main () | ||
5211 | { | ||
5212 | |||
5213 | ; | ||
5214 | return 0; | ||
5215 | } | ||
5216 | _ACEOF | ||
5217 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5218 | ac_cv_sys_file_offset_bits=64; break | ||
5219 | fi | ||
5220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5221 | ac_cv_sys_file_offset_bits=unknown | ||
5222 | break | ||
5223 | done | ||
5224 | fi | ||
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5226 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5227 | case $ac_cv_sys_file_offset_bits in #( | ||
5228 | no | unknown) ;; | ||
5229 | *) | ||
5230 | cat >>confdefs.h <<_ACEOF | ||
5231 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5232 | _ACEOF | ||
5233 | ;; | ||
5234 | esac | ||
5235 | rm -rf conftest* | ||
5236 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5238 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5239 | if ${ac_cv_sys_large_files+:} false; then : | ||
5240 | $as_echo_n "(cached) " >&6 | ||
5241 | else | ||
5242 | while :; do | ||
5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5244 | /* end confdefs.h. */ | ||
5245 | #include <sys/types.h> | ||
5246 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5247 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5248 | since some C++ compilers masquerading as C compilers | ||
5249 | incorrectly reject 9223372036854775807. */ | ||
5250 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5251 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5252 | && LARGE_OFF_T % 2147483647 == 1) | ||
5253 | ? 1 : -1]; | ||
5254 | int | ||
5255 | main () | ||
5256 | { | ||
5257 | |||
5258 | ; | ||
5259 | return 0; | ||
5260 | } | ||
5261 | _ACEOF | ||
5262 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5263 | ac_cv_sys_large_files=no; break | ||
5264 | fi | ||
5265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5267 | /* end confdefs.h. */ | ||
5268 | #define _LARGE_FILES 1 | ||
5269 | #include <sys/types.h> | ||
5270 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5271 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5272 | since some C++ compilers masquerading as C compilers | ||
5273 | incorrectly reject 9223372036854775807. */ | ||
5274 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5275 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5276 | && LARGE_OFF_T % 2147483647 == 1) | ||
5277 | ? 1 : -1]; | ||
5278 | int | ||
5279 | main () | ||
5280 | { | ||
5281 | |||
5282 | ; | ||
5283 | return 0; | ||
5284 | } | ||
5285 | _ACEOF | ||
5286 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5287 | ac_cv_sys_large_files=1; break | ||
5288 | fi | ||
5289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5290 | ac_cv_sys_large_files=unknown | ||
5291 | break | ||
5292 | done | ||
5293 | fi | ||
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5295 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5296 | case $ac_cv_sys_large_files in #( | ||
5297 | no | unknown) ;; | ||
5298 | *) | ||
5299 | cat >>confdefs.h <<_ACEOF | ||
5300 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5301 | _ACEOF | ||
5302 | ;; | ||
5303 | esac | ||
5304 | rm -rf conftest* | ||
5305 | fi | ||
5306 | |||
5307 | |||
5308 | fi | ||
5309 | |||
5310 | |||
5311 | if test -z "$AR" ; then | ||
5312 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5313 | fi | ||
5314 | |||
5315 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5316 | set dummy passwd; ac_word=$2 | ||
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5318 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5319 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5320 | $as_echo_n "(cached) " >&6 | ||
5321 | else | ||
5322 | case $PATH_PASSWD_PROG in | ||
5323 | [\\/]* | ?:[\\/]*) | ||
5324 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5325 | ;; | ||
5326 | *) | ||
5327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5328 | for as_dir in $PATH | ||
5329 | do | ||
5330 | IFS=$as_save_IFS | ||
5331 | test -z "$as_dir" && as_dir=. | ||
5332 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5334 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5336 | break 2 | ||
5337 | fi | ||
5338 | done | ||
5339 | done | ||
5340 | IFS=$as_save_IFS | ||
5341 | |||
5342 | ;; | ||
5343 | esac | ||
5344 | fi | ||
5345 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5346 | if test -n "$PATH_PASSWD_PROG"; then | ||
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5348 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5349 | else | ||
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5351 | $as_echo "no" >&6; } | ||
5352 | fi | ||
5353 | |||
5354 | |||
5355 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5356 | |||
5357 | cat >>confdefs.h <<_ACEOF | ||
5358 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5359 | _ACEOF | ||
5360 | |||
5361 | fi | ||
5362 | |||
5363 | LD="$CC" | ||
5364 | |||
5365 | |||
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5367 | $as_echo_n "checking for inline... " >&6; } | ||
5368 | if ${ac_cv_c_inline+:} false; then : | ||
5369 | $as_echo_n "(cached) " >&6 | ||
5370 | else | ||
5371 | ac_cv_c_inline=no | ||
5372 | for ac_kw in inline __inline__ __inline; do | ||
5373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5374 | /* end confdefs.h. */ | ||
5375 | #ifndef __cplusplus | ||
5376 | typedef int foo_t; | ||
5377 | static $ac_kw foo_t static_foo () {return 0; } | ||
5378 | $ac_kw foo_t foo () {return 0; } | ||
5379 | #endif | ||
5380 | |||
5381 | _ACEOF | ||
5382 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5383 | ac_cv_c_inline=$ac_kw | ||
5384 | fi | ||
5385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5386 | test "$ac_cv_c_inline" != no && break | ||
5387 | done | ||
5388 | |||
5389 | fi | ||
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5391 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5392 | |||
5393 | case $ac_cv_c_inline in | ||
5394 | inline | yes) ;; | ||
5395 | *) | ||
5396 | case $ac_cv_c_inline in | ||
5397 | no) ac_val=;; | ||
5398 | *) ac_val=$ac_cv_c_inline;; | ||
5399 | esac | ||
5400 | cat >>confdefs.h <<_ACEOF | ||
5401 | #ifndef __cplusplus | ||
5402 | #define inline $ac_val | ||
5403 | #endif | ||
5404 | _ACEOF | ||
5405 | ;; | ||
5406 | esac | ||
5407 | |||
5408 | |||
5409 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5410 | " | ||
5411 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5412 | have_llong_max=1 | ||
5413 | fi | ||
5414 | |||
5415 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5416 | #include <sys/types.h> | ||
5417 | #include <sys/param.h> | ||
5418 | #include <dev/systrace.h> | ||
5419 | |||
5420 | " | ||
5421 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5422 | have_systr_policy_kill=1 | ||
5423 | fi | ||
5424 | |||
5425 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5426 | #include <sys/types.h> | ||
5427 | #include <sys/resource.h> | ||
5428 | |||
5429 | " | ||
5430 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5431 | |||
5432 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5433 | |||
5434 | fi | ||
5435 | |||
5436 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5437 | #include <sys/types.h> | ||
5438 | #include <linux/prctl.h> | ||
5439 | |||
5440 | " | ||
5441 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5442 | have_linux_no_new_privs=1 | ||
5443 | fi | ||
5444 | |||
5445 | |||
5446 | openssl=yes | ||
5447 | |||
5448 | # Check whether --with-openssl was given. | ||
5449 | if test "${with_openssl+set}" = set; then : | ||
5450 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5451 | openssl=no | ||
5452 | fi | ||
5453 | |||
5454 | |||
5455 | fi | ||
5456 | |||
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 | ||
5458 | $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } | ||
5459 | if test "x$openssl" = "xyes" ; then | ||
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5461 | $as_echo "yes" >&6; } | ||
5462 | |||
5463 | cat >>confdefs.h <<_ACEOF | ||
5464 | #define WITH_OPENSSL 1 | ||
5465 | _ACEOF | ||
5466 | |||
5467 | else | ||
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5469 | $as_echo "no" >&6; } | ||
5470 | fi | ||
5471 | |||
5472 | use_stack_protector=1 | ||
5473 | use_toolchain_hardening=1 | ||
5474 | |||
5475 | # Check whether --with-stackprotect was given. | ||
5476 | if test "${with_stackprotect+set}" = set; then : | ||
5477 | withval=$with_stackprotect; | ||
5478 | if test "x$withval" = "xno"; then | ||
5479 | use_stack_protector=0 | ||
5480 | fi | ||
5481 | fi | ||
5482 | |||
5483 | |||
5484 | # Check whether --with-hardening was given. | ||
5485 | if test "${with_hardening+set}" = set; then : | ||
5486 | withval=$with_hardening; | ||
5487 | if test "x$withval" = "xno"; then | ||
5488 | use_toolchain_hardening=0 | ||
5489 | fi | ||
5490 | fi | ||
5491 | |||
5492 | |||
5493 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5494 | # on by default" for things like -fPIE. | ||
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | ||
5496 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | ||
5497 | saved_CFLAGS="$CFLAGS" | ||
5498 | CFLAGS="$CFLAGS -Werror" | ||
5499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5500 | /* end confdefs.h. */ | ||
5501 | int main(void) { return 0; } | ||
5502 | _ACEOF | ||
5503 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5505 | $as_echo "yes" >&6; } | ||
5506 | WERROR="-Werror" | ||
5507 | else | ||
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5509 | $as_echo "no" >&6; } | ||
5510 | WERROR="" | ||
5511 | |||
5512 | fi | ||
5513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5514 | CFLAGS="$saved_CFLAGS" | ||
5515 | |||
5516 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5517 | { | ||
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5 | ||
5519 | $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; } | ||
5520 | saved_CFLAGS="$CFLAGS" | ||
5521 | CFLAGS="$CFLAGS $WERROR -pipe" | ||
5522 | _define_flag="" | ||
5523 | test "x$_define_flag" = "x" && _define_flag="-pipe" | ||
5524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5525 | /* end confdefs.h. */ | ||
5526 | |||
5527 | #include <stdlib.h> | ||
5528 | #include <stdio.h> | ||
5529 | int main(int argc, char **argv) { | ||
5530 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5531 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5532 | float l = i * 2.1; | ||
5533 | double m = l / 0.5; | ||
5534 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5535 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5536 | exit(0); | ||
5537 | } | ||
5538 | |||
5539 | _ACEOF | ||
5540 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5541 | |||
5542 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5543 | then | ||
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5545 | $as_echo "no" >&6; } | ||
5546 | CFLAGS="$saved_CFLAGS" | ||
5547 | else | ||
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5549 | $as_echo "yes" >&6; } | ||
5550 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5551 | fi | ||
5552 | else | ||
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5554 | $as_echo "no" >&6; } | ||
5555 | CFLAGS="$saved_CFLAGS" | ||
5556 | |||
5557 | fi | ||
5558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5559 | } | ||
5560 | { | ||
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5562 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } | ||
5563 | saved_CFLAGS="$CFLAGS" | ||
5564 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5565 | _define_flag="" | ||
5566 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5568 | /* end confdefs.h. */ | ||
5569 | |||
5570 | #include <stdlib.h> | ||
5571 | #include <stdio.h> | ||
5572 | int main(int argc, char **argv) { | ||
5573 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5574 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5575 | float l = i * 2.1; | ||
5576 | double m = l / 0.5; | ||
5577 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5578 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5579 | exit(0); | ||
5580 | } | ||
5581 | |||
5582 | _ACEOF | ||
5583 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5584 | |||
5585 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5586 | then | ||
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5588 | $as_echo "no" >&6; } | ||
5589 | CFLAGS="$saved_CFLAGS" | ||
5590 | else | ||
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5592 | $as_echo "yes" >&6; } | ||
5593 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5594 | fi | ||
5595 | else | ||
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5597 | $as_echo "no" >&6; } | ||
5598 | CFLAGS="$saved_CFLAGS" | ||
5599 | |||
5600 | fi | ||
5601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5602 | } | ||
5603 | { | ||
5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-error=format-truncation" >&5 | ||
5605 | $as_echo_n "checking if $CC supports compile flag -Wno-error=format-truncation... " >&6; } | ||
5606 | saved_CFLAGS="$CFLAGS" | ||
5607 | CFLAGS="$CFLAGS $WERROR -Wno-error=format-truncation" | ||
5608 | _define_flag="" | ||
5609 | test "x$_define_flag" = "x" && _define_flag="-Wno-error=format-truncation" | ||
5610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5611 | /* end confdefs.h. */ | ||
5612 | |||
5613 | #include <stdlib.h> | ||
5614 | #include <stdio.h> | ||
5615 | int main(int argc, char **argv) { | ||
5616 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5617 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5618 | float l = i * 2.1; | ||
5619 | double m = l / 0.5; | ||
5620 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5621 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5622 | exit(0); | ||
5623 | } | ||
5624 | |||
5625 | _ACEOF | ||
5626 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5627 | |||
5628 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5629 | then | ||
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5631 | $as_echo "no" >&6; } | ||
5632 | CFLAGS="$saved_CFLAGS" | ||
5633 | else | ||
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5635 | $as_echo "yes" >&6; } | ||
5636 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5637 | fi | ||
5638 | else | ||
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5640 | $as_echo "no" >&6; } | ||
5641 | CFLAGS="$saved_CFLAGS" | ||
5642 | |||
5643 | fi | ||
5644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5645 | } | ||
5646 | { | ||
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5648 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | ||
5649 | saved_CFLAGS="$CFLAGS" | ||
5650 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5651 | _define_flag="" | ||
5652 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5654 | /* end confdefs.h. */ | ||
5655 | |||
5656 | #include <stdlib.h> | ||
5657 | #include <stdio.h> | ||
5658 | int main(int argc, char **argv) { | ||
5659 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5660 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5661 | float l = i * 2.1; | ||
5662 | double m = l / 0.5; | ||
5663 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5664 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5665 | exit(0); | ||
5666 | } | ||
5667 | |||
5668 | _ACEOF | ||
5669 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5670 | |||
5671 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5672 | then | ||
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5674 | $as_echo "no" >&6; } | ||
5675 | CFLAGS="$saved_CFLAGS" | ||
5676 | else | ||
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5678 | $as_echo "yes" >&6; } | ||
5679 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5680 | fi | ||
5681 | else | ||
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5683 | $as_echo "no" >&6; } | ||
5684 | CFLAGS="$saved_CFLAGS" | ||
5685 | |||
5686 | fi | ||
5687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5688 | } | ||
5689 | { | ||
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 | ||
5691 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | ||
5692 | saved_CFLAGS="$CFLAGS" | ||
5693 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
5694 | _define_flag="" | ||
5695 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5697 | /* end confdefs.h. */ | ||
5698 | |||
5699 | #include <stdlib.h> | ||
5700 | #include <stdio.h> | ||
5701 | int main(int argc, char **argv) { | ||
5702 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5703 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5704 | float l = i * 2.1; | ||
5705 | double m = l / 0.5; | ||
5706 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5707 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5708 | exit(0); | ||
5709 | } | ||
5710 | |||
5711 | _ACEOF | ||
5712 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5713 | |||
5714 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5715 | then | ||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5717 | $as_echo "no" >&6; } | ||
5718 | CFLAGS="$saved_CFLAGS" | ||
5719 | else | ||
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5721 | $as_echo "yes" >&6; } | ||
5722 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5723 | fi | ||
5724 | else | ||
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5726 | $as_echo "no" >&6; } | ||
5727 | CFLAGS="$saved_CFLAGS" | ||
5728 | |||
5729 | fi | ||
5730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5731 | } | ||
5732 | { | ||
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wextra" >&5 | ||
5734 | $as_echo_n "checking if $CC supports compile flag -Wextra... " >&6; } | ||
5735 | saved_CFLAGS="$CFLAGS" | ||
5736 | CFLAGS="$CFLAGS $WERROR -Wextra" | ||
5737 | _define_flag="" | ||
5738 | test "x$_define_flag" = "x" && _define_flag="-Wextra" | ||
5739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5740 | /* end confdefs.h. */ | ||
5741 | |||
5742 | #include <stdlib.h> | ||
5743 | #include <stdio.h> | ||
5744 | int main(int argc, char **argv) { | ||
5745 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5746 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5747 | float l = i * 2.1; | ||
5748 | double m = l / 0.5; | ||
5749 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5750 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5751 | exit(0); | ||
5752 | } | ||
5753 | |||
5754 | _ACEOF | ||
5755 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5756 | |||
5757 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5758 | then | ||
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5760 | $as_echo "no" >&6; } | ||
5761 | CFLAGS="$saved_CFLAGS" | ||
5762 | else | ||
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5764 | $as_echo "yes" >&6; } | ||
5765 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5766 | fi | ||
5767 | else | ||
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5769 | $as_echo "no" >&6; } | ||
5770 | CFLAGS="$saved_CFLAGS" | ||
5771 | |||
5772 | fi | ||
5773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5774 | } | ||
5775 | { | ||
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
5777 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | ||
5778 | saved_CFLAGS="$CFLAGS" | ||
5779 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
5780 | _define_flag="" | ||
5781 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5783 | /* end confdefs.h. */ | ||
5784 | |||
5785 | #include <stdlib.h> | ||
5786 | #include <stdio.h> | ||
5787 | int main(int argc, char **argv) { | ||
5788 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5789 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5790 | float l = i * 2.1; | ||
5791 | double m = l / 0.5; | ||
5792 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5793 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5794 | exit(0); | ||
5795 | } | ||
5796 | |||
5797 | _ACEOF | ||
5798 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5799 | |||
5800 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5801 | then | ||
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5803 | $as_echo "no" >&6; } | ||
5804 | CFLAGS="$saved_CFLAGS" | ||
5805 | else | ||
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5807 | $as_echo "yes" >&6; } | ||
5808 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5809 | fi | ||
5810 | else | ||
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5812 | $as_echo "no" >&6; } | ||
5813 | CFLAGS="$saved_CFLAGS" | ||
5814 | |||
5815 | fi | ||
5816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5817 | } | ||
5818 | { | ||
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
5820 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | ||
5821 | saved_CFLAGS="$CFLAGS" | ||
5822 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
5823 | _define_flag="" | ||
5824 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5826 | /* end confdefs.h. */ | ||
5827 | |||
5828 | #include <stdlib.h> | ||
5829 | #include <stdio.h> | ||
5830 | int main(int argc, char **argv) { | ||
5831 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5832 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5833 | float l = i * 2.1; | ||
5834 | double m = l / 0.5; | ||
5835 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5836 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5837 | exit(0); | ||
5838 | } | ||
5839 | |||
5840 | _ACEOF | ||
5841 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5842 | |||
5843 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5844 | then | ||
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5846 | $as_echo "no" >&6; } | ||
5847 | CFLAGS="$saved_CFLAGS" | ||
5848 | else | ||
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5850 | $as_echo "yes" >&6; } | ||
5851 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5852 | fi | ||
5853 | else | ||
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5855 | $as_echo "no" >&6; } | ||
5856 | CFLAGS="$saved_CFLAGS" | ||
5857 | |||
5858 | fi | ||
5859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5860 | } | ||
5861 | { | ||
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
5863 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | ||
5864 | saved_CFLAGS="$CFLAGS" | ||
5865 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
5866 | _define_flag="" | ||
5867 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5869 | /* end confdefs.h. */ | ||
5870 | |||
5871 | #include <stdlib.h> | ||
5872 | #include <stdio.h> | ||
5873 | int main(int argc, char **argv) { | ||
5874 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5875 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5876 | float l = i * 2.1; | ||
5877 | double m = l / 0.5; | ||
5878 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5879 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5880 | exit(0); | ||
5881 | } | ||
5882 | |||
5883 | _ACEOF | ||
5884 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5885 | |||
5886 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5887 | then | ||
5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5889 | $as_echo "no" >&6; } | ||
5890 | CFLAGS="$saved_CFLAGS" | ||
5891 | else | ||
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5893 | $as_echo "yes" >&6; } | ||
5894 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5895 | fi | ||
5896 | else | ||
5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5898 | $as_echo "no" >&6; } | ||
5899 | CFLAGS="$saved_CFLAGS" | ||
5900 | |||
5901 | fi | ||
5902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5903 | } | ||
5904 | { | ||
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 | ||
5906 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | ||
5907 | saved_CFLAGS="$CFLAGS" | ||
5908 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
5909 | _define_flag="" | ||
5910 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
5911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5912 | /* end confdefs.h. */ | ||
5913 | |||
5914 | #include <stdlib.h> | ||
5915 | #include <stdio.h> | ||
5916 | int main(int argc, char **argv) { | ||
5917 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5918 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5919 | float l = i * 2.1; | ||
5920 | double m = l / 0.5; | ||
5921 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5922 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5923 | exit(0); | ||
5924 | } | ||
5925 | |||
5926 | _ACEOF | ||
5927 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5928 | |||
5929 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5930 | then | ||
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5932 | $as_echo "no" >&6; } | ||
5933 | CFLAGS="$saved_CFLAGS" | ||
5934 | else | ||
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5936 | $as_echo "yes" >&6; } | ||
5937 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5938 | fi | ||
5939 | else | ||
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5941 | $as_echo "no" >&6; } | ||
5942 | CFLAGS="$saved_CFLAGS" | ||
5943 | |||
5944 | fi | ||
5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5946 | } | ||
5947 | { | ||
5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
5949 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } | ||
5950 | saved_CFLAGS="$CFLAGS" | ||
5951 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
5952 | _define_flag="" | ||
5953 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
5954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5955 | /* end confdefs.h. */ | ||
5956 | |||
5957 | #include <stdlib.h> | ||
5958 | #include <stdio.h> | ||
5959 | int main(int argc, char **argv) { | ||
5960 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5961 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5962 | float l = i * 2.1; | ||
5963 | double m = l / 0.5; | ||
5964 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5965 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5966 | exit(0); | ||
5967 | } | ||
5968 | |||
5969 | _ACEOF | ||
5970 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5971 | |||
5972 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
5973 | then | ||
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5975 | $as_echo "no" >&6; } | ||
5976 | CFLAGS="$saved_CFLAGS" | ||
5977 | else | ||
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5979 | $as_echo "yes" >&6; } | ||
5980 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5981 | fi | ||
5982 | else | ||
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5984 | $as_echo "no" >&6; } | ||
5985 | CFLAGS="$saved_CFLAGS" | ||
5986 | |||
5987 | fi | ||
5988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5989 | } | ||
5990 | { | ||
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
5992 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | ||
5993 | saved_CFLAGS="$CFLAGS" | ||
5994 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
5995 | _define_flag="-Wno-pointer-sign" | ||
5996 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
5997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5998 | /* end confdefs.h. */ | ||
5999 | |||
6000 | #include <stdlib.h> | ||
6001 | #include <stdio.h> | ||
6002 | int main(int argc, char **argv) { | ||
6003 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6004 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6005 | float l = i * 2.1; | ||
6006 | double m = l / 0.5; | ||
6007 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6008 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6009 | exit(0); | ||
6010 | } | ||
6011 | |||
6012 | _ACEOF | ||
6013 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6014 | |||
6015 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6016 | then | ||
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6018 | $as_echo "no" >&6; } | ||
6019 | CFLAGS="$saved_CFLAGS" | ||
6020 | else | ||
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6022 | $as_echo "yes" >&6; } | ||
6023 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6024 | fi | ||
6025 | else | ||
6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6027 | $as_echo "no" >&6; } | ||
6028 | CFLAGS="$saved_CFLAGS" | ||
6029 | |||
6030 | fi | ||
6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6032 | } | ||
6033 | { | ||
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6035 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | ||
6036 | saved_CFLAGS="$CFLAGS" | ||
6037 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6038 | _define_flag="-Wno-unused-result" | ||
6039 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6041 | /* end confdefs.h. */ | ||
6042 | |||
6043 | #include <stdlib.h> | ||
6044 | #include <stdio.h> | ||
6045 | int main(int argc, char **argv) { | ||
6046 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6047 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6048 | float l = i * 2.1; | ||
6049 | double m = l / 0.5; | ||
6050 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6051 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6052 | exit(0); | ||
6053 | } | ||
6054 | |||
6055 | _ACEOF | ||
6056 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6057 | |||
6058 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6059 | then | ||
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6061 | $as_echo "no" >&6; } | ||
6062 | CFLAGS="$saved_CFLAGS" | ||
6063 | else | ||
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6065 | $as_echo "yes" >&6; } | ||
6066 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6067 | fi | ||
6068 | else | ||
6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6070 | $as_echo "no" >&6; } | ||
6071 | CFLAGS="$saved_CFLAGS" | ||
6072 | |||
6073 | fi | ||
6074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6075 | } | ||
6076 | { | ||
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wimplicit-fallthrough" >&5 | ||
6078 | $as_echo_n "checking if $CC supports compile flag -Wimplicit-fallthrough... " >&6; } | ||
6079 | saved_CFLAGS="$CFLAGS" | ||
6080 | CFLAGS="$CFLAGS $WERROR -Wimplicit-fallthrough" | ||
6081 | _define_flag="" | ||
6082 | test "x$_define_flag" = "x" && _define_flag="-Wimplicit-fallthrough" | ||
6083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6084 | /* end confdefs.h. */ | ||
6085 | |||
6086 | #include <stdlib.h> | ||
6087 | #include <stdio.h> | ||
6088 | int main(int argc, char **argv) { | ||
6089 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6090 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6091 | float l = i * 2.1; | ||
6092 | double m = l / 0.5; | ||
6093 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6094 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6095 | exit(0); | ||
6096 | } | ||
6097 | |||
6098 | _ACEOF | ||
6099 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6100 | |||
6101 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6102 | then | ||
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6104 | $as_echo "no" >&6; } | ||
6105 | CFLAGS="$saved_CFLAGS" | ||
6106 | else | ||
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6108 | $as_echo "yes" >&6; } | ||
6109 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6110 | fi | ||
6111 | else | ||
6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6113 | $as_echo "no" >&6; } | ||
6114 | CFLAGS="$saved_CFLAGS" | ||
6115 | |||
6116 | fi | ||
6117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6118 | } | ||
6119 | { | ||
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6121 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } | ||
6122 | saved_CFLAGS="$CFLAGS" | ||
6123 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6124 | _define_flag="" | ||
6125 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6127 | /* end confdefs.h. */ | ||
6128 | |||
6129 | #include <stdlib.h> | ||
6130 | #include <stdio.h> | ||
6131 | int main(int argc, char **argv) { | ||
6132 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6133 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6134 | float l = i * 2.1; | ||
6135 | double m = l / 0.5; | ||
6136 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6137 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6138 | exit(0); | ||
6139 | } | ||
6140 | |||
6141 | _ACEOF | ||
6142 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6143 | |||
6144 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6145 | then | ||
6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6147 | $as_echo "no" >&6; } | ||
6148 | CFLAGS="$saved_CFLAGS" | ||
6149 | else | ||
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6151 | $as_echo "yes" >&6; } | ||
6152 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6153 | fi | ||
6154 | else | ||
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6156 | $as_echo "no" >&6; } | ||
6157 | CFLAGS="$saved_CFLAGS" | ||
6158 | |||
6159 | fi | ||
6160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6161 | } | ||
6162 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6163 | { | ||
6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5 | ||
6165 | $as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; } | ||
6166 | saved_CFLAGS="$CFLAGS" | ||
6167 | CFLAGS="$CFLAGS $WERROR -mretpoline" | ||
6168 | _define_flag="" | ||
6169 | test "x$_define_flag" = "x" && _define_flag="-mretpoline" | ||
6170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6171 | /* end confdefs.h. */ | ||
6172 | |||
6173 | #include <stdlib.h> | ||
6174 | #include <stdio.h> | ||
6175 | int main(int argc, char **argv) { | ||
6176 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6177 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6178 | float l = i * 2.1; | ||
6179 | double m = l / 0.5; | ||
6180 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6181 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6182 | exit(0); | ||
6183 | } | ||
6184 | |||
6185 | _ACEOF | ||
6186 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6187 | |||
6188 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6189 | then | ||
6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6191 | $as_echo "no" >&6; } | ||
6192 | CFLAGS="$saved_CFLAGS" | ||
6193 | else | ||
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6195 | $as_echo "yes" >&6; } | ||
6196 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6197 | fi | ||
6198 | else | ||
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6200 | $as_echo "no" >&6; } | ||
6201 | CFLAGS="$saved_CFLAGS" | ||
6202 | |||
6203 | fi | ||
6204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6205 | } # clang | ||
6206 | { | ||
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5 | ||
6208 | $as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; } | ||
6209 | saved_LDFLAGS="$LDFLAGS" | ||
6210 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt" | ||
6211 | _define_flag="" | ||
6212 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt" | ||
6213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6214 | /* end confdefs.h. */ | ||
6215 | |||
6216 | #include <stdlib.h> | ||
6217 | #include <stdio.h> | ||
6218 | int main(int argc, char **argv) { | ||
6219 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6220 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6221 | float l = i * 2.1; | ||
6222 | double m = l / 0.5; | ||
6223 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6224 | long long p = n * o; | ||
6225 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6226 | exit(0); | ||
6227 | } | ||
6228 | |||
6229 | _ACEOF | ||
6230 | if ac_fn_c_try_link "$LINENO"; then : | ||
6231 | |||
6232 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6233 | then | ||
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6235 | $as_echo "no" >&6; } | ||
6236 | LDFLAGS="$saved_LDFLAGS" | ||
6237 | else | ||
6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6239 | $as_echo "yes" >&6; } | ||
6240 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6241 | fi | ||
6242 | else | ||
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6244 | $as_echo "no" >&6; } | ||
6245 | LDFLAGS="$saved_LDFLAGS" | ||
6246 | |||
6247 | fi | ||
6248 | rm -f core conftest.err conftest.$ac_objext \ | ||
6249 | conftest$ac_exeext conftest.$ac_ext | ||
6250 | } | ||
6251 | { | ||
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6253 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | ||
6254 | saved_CFLAGS="$CFLAGS" | ||
6255 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6256 | _define_flag="" | ||
6257 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6259 | /* end confdefs.h. */ | ||
6260 | |||
6261 | #include <stdlib.h> | ||
6262 | #include <stdio.h> | ||
6263 | int main(int argc, char **argv) { | ||
6264 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6265 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6266 | float l = i * 2.1; | ||
6267 | double m = l / 0.5; | ||
6268 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6269 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6270 | exit(0); | ||
6271 | } | ||
6272 | |||
6273 | _ACEOF | ||
6274 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6275 | |||
6276 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6277 | then | ||
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6279 | $as_echo "no" >&6; } | ||
6280 | CFLAGS="$saved_CFLAGS" | ||
6281 | else | ||
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6283 | $as_echo "yes" >&6; } | ||
6284 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6285 | fi | ||
6286 | else | ||
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6288 | $as_echo "no" >&6; } | ||
6289 | CFLAGS="$saved_CFLAGS" | ||
6290 | |||
6291 | fi | ||
6292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6293 | } | ||
6294 | { | ||
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6296 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | ||
6297 | saved_LDFLAGS="$LDFLAGS" | ||
6298 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6299 | _define_flag="" | ||
6300 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6302 | /* end confdefs.h. */ | ||
6303 | |||
6304 | #include <stdlib.h> | ||
6305 | #include <stdio.h> | ||
6306 | int main(int argc, char **argv) { | ||
6307 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6308 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6309 | float l = i * 2.1; | ||
6310 | double m = l / 0.5; | ||
6311 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6312 | long long p = n * o; | ||
6313 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6314 | exit(0); | ||
6315 | } | ||
6316 | |||
6317 | _ACEOF | ||
6318 | if ac_fn_c_try_link "$LINENO"; then : | ||
6319 | |||
6320 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6321 | then | ||
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6323 | $as_echo "no" >&6; } | ||
6324 | LDFLAGS="$saved_LDFLAGS" | ||
6325 | else | ||
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6327 | $as_echo "yes" >&6; } | ||
6328 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6329 | fi | ||
6330 | else | ||
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6332 | $as_echo "no" >&6; } | ||
6333 | LDFLAGS="$saved_LDFLAGS" | ||
6334 | |||
6335 | fi | ||
6336 | rm -f core conftest.err conftest.$ac_objext \ | ||
6337 | conftest$ac_exeext conftest.$ac_ext | ||
6338 | } | ||
6339 | { | ||
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6341 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | ||
6342 | saved_LDFLAGS="$LDFLAGS" | ||
6343 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6344 | _define_flag="" | ||
6345 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6347 | /* end confdefs.h. */ | ||
6348 | |||
6349 | #include <stdlib.h> | ||
6350 | #include <stdio.h> | ||
6351 | int main(int argc, char **argv) { | ||
6352 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6353 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6354 | float l = i * 2.1; | ||
6355 | double m = l / 0.5; | ||
6356 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6357 | long long p = n * o; | ||
6358 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6359 | exit(0); | ||
6360 | } | ||
6361 | |||
6362 | _ACEOF | ||
6363 | if ac_fn_c_try_link "$LINENO"; then : | ||
6364 | |||
6365 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6366 | then | ||
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6368 | $as_echo "no" >&6; } | ||
6369 | LDFLAGS="$saved_LDFLAGS" | ||
6370 | else | ||
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6372 | $as_echo "yes" >&6; } | ||
6373 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6374 | fi | ||
6375 | else | ||
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6377 | $as_echo "no" >&6; } | ||
6378 | LDFLAGS="$saved_LDFLAGS" | ||
6379 | |||
6380 | fi | ||
6381 | rm -f core conftest.err conftest.$ac_objext \ | ||
6382 | conftest$ac_exeext conftest.$ac_ext | ||
6383 | } | ||
6384 | { | ||
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6386 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | ||
6387 | saved_LDFLAGS="$LDFLAGS" | ||
6388 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6389 | _define_flag="" | ||
6390 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6392 | /* end confdefs.h. */ | ||
6393 | |||
6394 | #include <stdlib.h> | ||
6395 | #include <stdio.h> | ||
6396 | int main(int argc, char **argv) { | ||
6397 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6398 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6399 | float l = i * 2.1; | ||
6400 | double m = l / 0.5; | ||
6401 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6402 | long long p = n * o; | ||
6403 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6404 | exit(0); | ||
6405 | } | ||
6406 | |||
6407 | _ACEOF | ||
6408 | if ac_fn_c_try_link "$LINENO"; then : | ||
6409 | |||
6410 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6411 | then | ||
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6413 | $as_echo "no" >&6; } | ||
6414 | LDFLAGS="$saved_LDFLAGS" | ||
6415 | else | ||
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6417 | $as_echo "yes" >&6; } | ||
6418 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6419 | fi | ||
6420 | else | ||
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6422 | $as_echo "no" >&6; } | ||
6423 | LDFLAGS="$saved_LDFLAGS" | ||
6424 | |||
6425 | fi | ||
6426 | rm -f core conftest.err conftest.$ac_objext \ | ||
6427 | conftest$ac_exeext conftest.$ac_ext | ||
6428 | } | ||
6429 | # NB. -ftrapv expects certain support functions to be present in | ||
6430 | # the compiler library (libgcc or similar) to detect integer operations | ||
6431 | # that can overflow. We must check that the result of enabling it | ||
6432 | # actually links. The test program compiled/linked includes a number | ||
6433 | # of integer operations that should exercise this. | ||
6434 | { | ||
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6436 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } | ||
6437 | saved_CFLAGS="$CFLAGS" | ||
6438 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6439 | _define_flag="" | ||
6440 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6442 | /* end confdefs.h. */ | ||
6443 | |||
6444 | #include <stdlib.h> | ||
6445 | #include <stdio.h> | ||
6446 | int main(int argc, char **argv) { | ||
6447 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6448 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6449 | float l = i * 2.1; | ||
6450 | double m = l / 0.5; | ||
6451 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6452 | long long int p = n * o; | ||
6453 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6454 | exit(0); | ||
6455 | } | ||
6456 | |||
6457 | _ACEOF | ||
6458 | if ac_fn_c_try_link "$LINENO"; then : | ||
6459 | |||
6460 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
6461 | then | ||
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6463 | $as_echo "no" >&6; } | ||
6464 | CFLAGS="$saved_CFLAGS" | ||
6465 | else | ||
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6467 | $as_echo "yes" >&6; } | ||
6468 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6469 | fi | ||
6470 | else | ||
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6472 | $as_echo "no" >&6; } | ||
6473 | CFLAGS="$saved_CFLAGS" | ||
6474 | |||
6475 | fi | ||
6476 | rm -f core conftest.err conftest.$ac_objext \ | ||
6477 | conftest$ac_exeext conftest.$ac_ext | ||
6478 | } | ||
6479 | fi | ||
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
6481 | $as_echo_n "checking gcc version... " >&6; } | ||
6482 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6483 | case $GCC_VER in | ||
6484 | 1.*) no_attrib_nonnull=1 ;; | ||
6485 | 2.8* | 2.9*) | ||
6486 | no_attrib_nonnull=1 | ||
6487 | ;; | ||
6488 | 2.*) no_attrib_nonnull=1 ;; | ||
6489 | *) ;; | ||
6490 | esac | ||
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
6492 | $as_echo "$GCC_VER" >&6; } | ||
6493 | |||
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6495 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
6496 | saved_CFLAGS="$CFLAGS" | ||
6497 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6499 | /* end confdefs.h. */ | ||
6500 | #include <string.h> | ||
6501 | int | ||
6502 | main () | ||
6503 | { | ||
6504 | char b[10]; memset(b, 0, sizeof(b)); | ||
6505 | ; | ||
6506 | return 0; | ||
6507 | } | ||
6508 | _ACEOF | ||
6509 | if ac_fn_c_try_link "$LINENO"; then : | ||
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6511 | $as_echo "yes" >&6; } | ||
6512 | else | ||
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6514 | $as_echo "no" >&6; } | ||
6515 | CFLAGS="$saved_CFLAGS" | ||
6516 | |||
6517 | fi | ||
6518 | rm -f core conftest.err conftest.$ac_objext \ | ||
6519 | conftest$ac_exeext conftest.$ac_ext | ||
6520 | |||
6521 | # -fstack-protector-all doesn't always work for some GCC versions | ||
6522 | # and/or platforms, so we test if we can. If it's not supported | ||
6523 | # on a given platform gcc will emit a warning so we use -Werror. | ||
6524 | if test "x$use_stack_protector" = "x1"; then | ||
6525 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
6526 | -fstack-protector; do | ||
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
6528 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
6529 | saved_CFLAGS="$CFLAGS" | ||
6530 | saved_LDFLAGS="$LDFLAGS" | ||
6531 | CFLAGS="$CFLAGS $t -Werror" | ||
6532 | LDFLAGS="$LDFLAGS $t -Werror" | ||
6533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6534 | /* end confdefs.h. */ | ||
6535 | |||
6536 | #include <stdio.h> | ||
6537 | int func (int t) {char b[100]; snprintf(b,sizeof b,"%d",t); return t;} | ||
6538 | |||
6539 | int | ||
6540 | main () | ||
6541 | { | ||
6542 | |||
6543 | char x[256]; | ||
6544 | snprintf(x, sizeof(x), "XXX%d", func(1)); | ||
6545 | |||
6546 | ; | ||
6547 | return 0; | ||
6548 | } | ||
6549 | _ACEOF | ||
6550 | if ac_fn_c_try_link "$LINENO"; then : | ||
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6552 | $as_echo "yes" >&6; } | ||
6553 | CFLAGS="$saved_CFLAGS $t" | ||
6554 | LDFLAGS="$saved_LDFLAGS $t" | ||
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
6556 | $as_echo_n "checking if $t works... " >&6; } | ||
6557 | if test "$cross_compiling" = yes; then : | ||
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
6559 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
6560 | break | ||
6561 | |||
6562 | else | ||
6563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6564 | /* end confdefs.h. */ | ||
6565 | |||
6566 | #include <stdio.h> | ||
6567 | int func (int t) {char b[100]; snprintf(b,sizeof b,"%d",t); return t;} | ||
6568 | |||
6569 | int | ||
6570 | main () | ||
6571 | { | ||
6572 | |||
6573 | char x[256]; | ||
6574 | snprintf(x, sizeof(x), "XXX%d", func(1)); | ||
6575 | |||
6576 | ; | ||
6577 | return 0; | ||
6578 | } | ||
6579 | _ACEOF | ||
6580 | if ac_fn_c_try_run "$LINENO"; then : | ||
6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6582 | $as_echo "yes" >&6; } | ||
6583 | break | ||
6584 | else | ||
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6586 | $as_echo "no" >&6; } | ||
6587 | fi | ||
6588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6589 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6590 | fi | ||
6591 | |||
6592 | |||
6593 | else | ||
6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6595 | $as_echo "no" >&6; } | ||
6596 | |||
6597 | fi | ||
6598 | rm -f core conftest.err conftest.$ac_objext \ | ||
6599 | conftest$ac_exeext conftest.$ac_ext | ||
6600 | CFLAGS="$saved_CFLAGS" | ||
6601 | LDFLAGS="$saved_LDFLAGS" | ||
6602 | done | ||
6603 | fi | ||
6604 | |||
6605 | if test -z "$have_llong_max"; then | ||
6606 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6607 | unset ac_cv_have_decl_LLONG_MAX | ||
6608 | saved_CFLAGS="$CFLAGS" | ||
6609 | CFLAGS="$CFLAGS -std=gnu99" | ||
6610 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
6611 | |||
6612 | " | ||
6613 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
6614 | have_llong_max=1 | ||
6615 | else | ||
6616 | CFLAGS="$saved_CFLAGS" | ||
6617 | fi | ||
6618 | |||
6619 | fi | ||
6620 | fi | ||
6621 | |||
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
6623 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
6624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6625 | /* end confdefs.h. */ | ||
6626 | |||
6627 | #include <stdlib.h> | ||
6628 | __attribute__((__unused__)) static void foo(void){return;} | ||
6629 | int | ||
6630 | main () | ||
6631 | { | ||
6632 | exit(0); | ||
6633 | ; | ||
6634 | return 0; | ||
6635 | } | ||
6636 | _ACEOF | ||
6637 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6639 | $as_echo "yes" >&6; } | ||
6640 | else | ||
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6642 | $as_echo "no" >&6; } | ||
6643 | |||
6644 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
6645 | |||
6646 | |||
6647 | fi | ||
6648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6649 | |||
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5 | ||
6651 | $as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; } | ||
6652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6653 | /* end confdefs.h. */ | ||
6654 | |||
6655 | #include <stdlib.h> | ||
6656 | typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2))); | ||
6657 | int | ||
6658 | main () | ||
6659 | { | ||
6660 | exit(0); | ||
6661 | ; | ||
6662 | return 0; | ||
6663 | } | ||
6664 | _ACEOF | ||
6665 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6667 | $as_echo "yes" >&6; } | ||
6668 | else | ||
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6670 | $as_echo "no" >&6; } | ||
6671 | |||
6672 | $as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h | ||
6673 | |||
6674 | |||
6675 | fi | ||
6676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6677 | |||
6678 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6679 | |||
6680 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6681 | |||
6682 | fi | ||
6683 | |||
6684 | |||
6685 | # Check whether --with-rpath was given. | ||
6686 | if test "${with_rpath+set}" = set; then : | ||
6687 | withval=$with_rpath; | ||
6688 | if test "x$withval" = "xno" ; then | ||
6689 | rpath_opt="" | ||
6690 | elif test "x$withval" = "xyes" ; then | ||
6691 | rpath_opt="-R" | ||
6692 | else | ||
6693 | rpath_opt="$withval" | ||
6694 | fi | ||
6695 | |||
6696 | |||
6697 | fi | ||
6698 | |||
6699 | |||
6700 | # Allow user to specify flags | ||
6701 | |||
6702 | # Check whether --with-cflags was given. | ||
6703 | if test "${with_cflags+set}" = set; then : | ||
6704 | withval=$with_cflags; | ||
6705 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6706 | test "x${withval}" != "xyes"; then | ||
6707 | CFLAGS="$CFLAGS $withval" | ||
6708 | fi | ||
6709 | |||
6710 | |||
6711 | fi | ||
6712 | |||
6713 | |||
6714 | |||
6715 | # Check whether --with-cflags-after was given. | ||
6716 | if test "${with_cflags_after+set}" = set; then : | ||
6717 | withval=$with_cflags_after; | ||
6718 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6719 | test "x${withval}" != "xyes"; then | ||
6720 | CFLAGS_AFTER="$withval" | ||
6721 | fi | ||
6722 | |||
6723 | |||
6724 | fi | ||
6725 | |||
6726 | |||
6727 | # Check whether --with-cppflags was given. | ||
6728 | if test "${with_cppflags+set}" = set; then : | ||
6729 | withval=$with_cppflags; | ||
6730 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6731 | test "x${withval}" != "xyes"; then | ||
6732 | CPPFLAGS="$CPPFLAGS $withval" | ||
6733 | fi | ||
6734 | |||
6735 | |||
6736 | fi | ||
6737 | |||
6738 | |||
6739 | # Check whether --with-ldflags was given. | ||
6740 | if test "${with_ldflags+set}" = set; then : | ||
6741 | withval=$with_ldflags; | ||
6742 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6743 | test "x${withval}" != "xyes"; then | ||
6744 | LDFLAGS="$LDFLAGS $withval" | ||
6745 | fi | ||
6746 | |||
6747 | |||
6748 | fi | ||
6749 | |||
6750 | |||
6751 | # Check whether --with-ldflags-after was given. | ||
6752 | if test "${with_ldflags_after+set}" = set; then : | ||
6753 | withval=$with_ldflags_after; | ||
6754 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6755 | test "x${withval}" != "xyes"; then | ||
6756 | LDFLAGS_AFTER="$withval" | ||
6757 | fi | ||
6758 | |||
6759 | |||
6760 | fi | ||
6761 | |||
6762 | |||
6763 | # Check whether --with-libs was given. | ||
6764 | if test "${with_libs+set}" = set; then : | ||
6765 | withval=$with_libs; | ||
6766 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6767 | test "x${withval}" != "xyes"; then | ||
6768 | LIBS="$LIBS $withval" | ||
6769 | fi | ||
6770 | |||
6771 | |||
6772 | fi | ||
6773 | |||
6774 | |||
6775 | # Check whether --with-Werror was given. | ||
6776 | if test "${with_Werror+set}" = set; then : | ||
6777 | withval=$with_Werror; | ||
6778 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6779 | werror_flags="-Werror" | ||
6780 | if test "x${withval}" != "xyes"; then | ||
6781 | werror_flags="$withval" | ||
6782 | fi | ||
6783 | fi | ||
6784 | |||
6785 | |||
6786 | fi | ||
6787 | |||
6788 | |||
6789 | for ac_header in \ | ||
6790 | blf.h \ | ||
6791 | bstring.h \ | ||
6792 | crypt.h \ | ||
6793 | crypto/sha2.h \ | ||
6794 | dirent.h \ | ||
6795 | endian.h \ | ||
6796 | elf.h \ | ||
6797 | err.h \ | ||
6798 | features.h \ | ||
6799 | fcntl.h \ | ||
6800 | floatingpoint.h \ | ||
6801 | fnmatch.h \ | ||
6802 | getopt.h \ | ||
6803 | glob.h \ | ||
6804 | ia.h \ | ||
6805 | iaf.h \ | ||
6806 | ifaddrs.h \ | ||
6807 | inttypes.h \ | ||
6808 | langinfo.h \ | ||
6809 | limits.h \ | ||
6810 | locale.h \ | ||
6811 | login.h \ | ||
6812 | maillock.h \ | ||
6813 | ndir.h \ | ||
6814 | net/if_tun.h \ | ||
6815 | netdb.h \ | ||
6816 | netgroup.h \ | ||
6817 | pam/pam_appl.h \ | ||
6818 | paths.h \ | ||
6819 | poll.h \ | ||
6820 | pty.h \ | ||
6821 | readpassphrase.h \ | ||
6822 | rpc/types.h \ | ||
6823 | security/pam_appl.h \ | ||
6824 | sha2.h \ | ||
6825 | shadow.h \ | ||
6826 | stddef.h \ | ||
6827 | stdint.h \ | ||
6828 | string.h \ | ||
6829 | strings.h \ | ||
6830 | sys/bitypes.h \ | ||
6831 | sys/bsdtty.h \ | ||
6832 | sys/cdefs.h \ | ||
6833 | sys/dir.h \ | ||
6834 | sys/file.h \ | ||
6835 | sys/mman.h \ | ||
6836 | sys/label.h \ | ||
6837 | sys/ndir.h \ | ||
6838 | sys/poll.h \ | ||
6839 | sys/prctl.h \ | ||
6840 | sys/pstat.h \ | ||
6841 | sys/ptrace.h \ | ||
6842 | sys/random.h \ | ||
6843 | sys/select.h \ | ||
6844 | sys/stat.h \ | ||
6845 | sys/stream.h \ | ||
6846 | sys/stropts.h \ | ||
6847 | sys/strtio.h \ | ||
6848 | sys/statvfs.h \ | ||
6849 | sys/sysmacros.h \ | ||
6850 | sys/time.h \ | ||
6851 | sys/timers.h \ | ||
6852 | sys/vfs.h \ | ||
6853 | time.h \ | ||
6854 | tmpdir.h \ | ||
6855 | ttyent.h \ | ||
6856 | ucred.h \ | ||
6857 | unistd.h \ | ||
6858 | usersec.h \ | ||
6859 | util.h \ | ||
6860 | utime.h \ | ||
6861 | utmp.h \ | ||
6862 | utmpx.h \ | ||
6863 | vis.h \ | ||
6864 | wchar.h \ | ||
6865 | |||
6866 | do : | ||
6867 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6868 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6869 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6870 | cat >>confdefs.h <<_ACEOF | ||
6871 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6872 | _ACEOF | ||
6873 | |||
6874 | fi | ||
6875 | |||
6876 | done | ||
6877 | |||
6878 | |||
6879 | # On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h] | ||
6880 | # to be included first. | ||
6881 | for ac_header in sys/audit.h | ||
6882 | do : | ||
6883 | ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" " | ||
6884 | #ifdef HAVE_SYS_TIME_H | ||
6885 | # include <sys/time.h> | ||
6886 | #endif | ||
6887 | #ifdef HAVE_SYS_TYPES_H | ||
6888 | # include <sys/types.h> | ||
6889 | #endif | ||
6890 | #ifdef HAVE_SYS_LABEL_H | ||
6891 | # include <sys/label.h> | ||
6892 | #endif | ||
6893 | |||
6894 | " | ||
6895 | if test "x$ac_cv_header_sys_audit_h" = xyes; then : | ||
6896 | cat >>confdefs.h <<_ACEOF | ||
6897 | #define HAVE_SYS_AUDIT_H 1 | ||
6898 | _ACEOF | ||
6899 | |||
6900 | fi | ||
6901 | |||
6902 | done | ||
6903 | |||
6904 | |||
6905 | # sys/capsicum.h requires sys/types.h | ||
6906 | for ac_header in sys/capsicum.h | ||
6907 | do : | ||
6908 | ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" " | ||
6909 | #ifdef HAVE_SYS_TYPES_H | ||
6910 | # include <sys/types.h> | ||
6911 | #endif | ||
6912 | |||
6913 | " | ||
6914 | if test "x$ac_cv_header_sys_capsicum_h" = xyes; then : | ||
6915 | cat >>confdefs.h <<_ACEOF | ||
6916 | #define HAVE_SYS_CAPSICUM_H 1 | ||
6917 | _ACEOF | ||
6918 | |||
6919 | fi | ||
6920 | |||
6921 | done | ||
6922 | |||
6923 | |||
6924 | # net/route.h requires sys/socket.h and sys/types.h. | ||
6925 | # sys/sysctl.h also requires sys/param.h | ||
6926 | for ac_header in net/route.h sys/sysctl.h | ||
6927 | do : | ||
6928 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6929 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " | ||
6930 | #ifdef HAVE_SYS_TYPES_H | ||
6931 | # include <sys/types.h> | ||
6932 | #endif | ||
6933 | #include <sys/param.h> | ||
6934 | #include <sys/socket.h> | ||
6935 | |||
6936 | " | ||
6937 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6938 | cat >>confdefs.h <<_ACEOF | ||
6939 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6940 | _ACEOF | ||
6941 | |||
6942 | fi | ||
6943 | |||
6944 | done | ||
6945 | |||
6946 | |||
6947 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6948 | for ac_header in lastlog.h | ||
6949 | do : | ||
6950 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6951 | #ifdef HAVE_SYS_TIME_H | ||
6952 | # include <sys/time.h> | ||
6953 | #endif | ||
6954 | |||
6955 | " | ||
6956 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6957 | cat >>confdefs.h <<_ACEOF | ||
6958 | #define HAVE_LASTLOG_H 1 | ||
6959 | _ACEOF | ||
6960 | |||
6961 | fi | ||
6962 | |||
6963 | done | ||
6964 | |||
6965 | |||
6966 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6967 | for ac_header in sys/ptms.h | ||
6968 | do : | ||
6969 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6970 | #ifdef HAVE_SYS_STREAM_H | ||
6971 | # include <sys/stream.h> | ||
6972 | #endif | ||
6973 | |||
6974 | " | ||
6975 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6976 | cat >>confdefs.h <<_ACEOF | ||
6977 | #define HAVE_SYS_PTMS_H 1 | ||
6978 | _ACEOF | ||
6979 | |||
6980 | fi | ||
6981 | |||
6982 | done | ||
6983 | |||
6984 | |||
6985 | # login_cap.h requires sys/types.h on NetBSD | ||
6986 | for ac_header in login_cap.h | ||
6987 | do : | ||
6988 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6989 | #include <sys/types.h> | ||
6990 | |||
6991 | " | ||
6992 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6993 | cat >>confdefs.h <<_ACEOF | ||
6994 | #define HAVE_LOGIN_CAP_H 1 | ||
6995 | _ACEOF | ||
6996 | |||
6997 | fi | ||
6998 | |||
6999 | done | ||
7000 | |||
7001 | |||
7002 | # older BSDs need sys/param.h before sys/mount.h | ||
7003 | for ac_header in sys/mount.h | ||
7004 | do : | ||
7005 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
7006 | #include <sys/param.h> | ||
7007 | |||
7008 | " | ||
7009 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
7010 | cat >>confdefs.h <<_ACEOF | ||
7011 | #define HAVE_SYS_MOUNT_H 1 | ||
7012 | _ACEOF | ||
7013 | |||
7014 | fi | ||
7015 | |||
7016 | done | ||
7017 | |||
7018 | |||
7019 | # Android requires sys/socket.h to be included before sys/un.h | ||
7020 | for ac_header in sys/un.h | ||
7021 | do : | ||
7022 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " | ||
7023 | #include <sys/types.h> | ||
7024 | #include <sys/socket.h> | ||
7025 | |||
7026 | " | ||
7027 | if test "x$ac_cv_header_sys_un_h" = xyes; then : | ||
7028 | cat >>confdefs.h <<_ACEOF | ||
7029 | #define HAVE_SYS_UN_H 1 | ||
7030 | _ACEOF | ||
7031 | |||
7032 | fi | ||
7033 | |||
7034 | done | ||
7035 | |||
7036 | |||
7037 | # Messages for features tested for in target-specific section | ||
7038 | SIA_MSG="no" | ||
7039 | SPC_MSG="no" | ||
7040 | SP_MSG="no" | ||
7041 | SPP_MSG="no" | ||
7042 | |||
7043 | # Support for Solaris/Illumos privileges (this test is used by both | ||
7044 | # the --with-solaris-privs option and --with-sandbox=solaris). | ||
7045 | SOLARIS_PRIVS="no" | ||
7046 | |||
7047 | # Check for some target-specific stuff | ||
7048 | case "$host" in | ||
7049 | *-*-aix*) | ||
7050 | # Some versions of VAC won't allow macro redefinitions at | ||
7051 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
7052 | # particularly with older versions of vac or xlc. | ||
7053 | # It also throws errors about null macro arguments, but these are | ||
7054 | # not fatal. | ||
7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
7056 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7058 | /* end confdefs.h. */ | ||
7059 | |||
7060 | #define testmacro foo | ||
7061 | #define testmacro bar | ||
7062 | int | ||
7063 | main () | ||
7064 | { | ||
7065 | exit(0); | ||
7066 | ; | ||
7067 | return 0; | ||
7068 | } | ||
7069 | _ACEOF | ||
7070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7072 | $as_echo "yes" >&6; } | ||
7073 | else | ||
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7075 | $as_echo "no" >&6; } | ||
7076 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
7077 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
7078 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
7079 | |||
7080 | |||
7081 | fi | ||
7082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7083 | |||
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
7085 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
7086 | if (test -z "$blibpath"); then | ||
7087 | blibpath="/usr/lib:/lib" | ||
7088 | fi | ||
7089 | saved_LDFLAGS="$LDFLAGS" | ||
7090 | if test "$GCC" = "yes"; then | ||
7091 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
7092 | else | ||
7093 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
7094 | fi | ||
7095 | for tryflags in $flags ;do | ||
7096 | if (test -z "$blibflags"); then | ||
7097 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
7098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7099 | /* end confdefs.h. */ | ||
7100 | |||
7101 | int | ||
7102 | main () | ||
7103 | { | ||
7104 | |||
7105 | ; | ||
7106 | return 0; | ||
7107 | } | ||
7108 | _ACEOF | ||
7109 | if ac_fn_c_try_link "$LINENO"; then : | ||
7110 | blibflags=$tryflags | ||
7111 | fi | ||
7112 | rm -f core conftest.err conftest.$ac_objext \ | ||
7113 | conftest$ac_exeext conftest.$ac_ext | ||
7114 | fi | ||
7115 | done | ||
7116 | if (test -z "$blibflags"); then | ||
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
7118 | $as_echo "not found" >&6; } | ||
7119 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
7120 | else | ||
7121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
7122 | $as_echo "$blibflags" >&6; } | ||
7123 | fi | ||
7124 | LDFLAGS="$saved_LDFLAGS" | ||
7125 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
7126 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
7127 | |||
7128 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
7129 | |||
7130 | else | ||
7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
7132 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
7133 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
7134 | $as_echo_n "(cached) " >&6 | ||
7135 | else | ||
7136 | ac_check_lib_save_LIBS=$LIBS | ||
7137 | LIBS="-ls $LIBS" | ||
7138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7139 | /* end confdefs.h. */ | ||
7140 | |||
7141 | /* Override any GCC internal prototype to avoid an error. | ||
7142 | Use char because int might match the return type of a GCC | ||
7143 | builtin and then its argument prototype would still apply. */ | ||
7144 | #ifdef __cplusplus | ||
7145 | extern "C" | ||
7146 | #endif | ||
7147 | char authenticate (); | ||
7148 | int | ||
7149 | main () | ||
7150 | { | ||
7151 | return authenticate (); | ||
7152 | ; | ||
7153 | return 0; | ||
7154 | } | ||
7155 | _ACEOF | ||
7156 | if ac_fn_c_try_link "$LINENO"; then : | ||
7157 | ac_cv_lib_s_authenticate=yes | ||
7158 | else | ||
7159 | ac_cv_lib_s_authenticate=no | ||
7160 | fi | ||
7161 | rm -f core conftest.err conftest.$ac_objext \ | ||
7162 | conftest$ac_exeext conftest.$ac_ext | ||
7163 | LIBS=$ac_check_lib_save_LIBS | ||
7164 | fi | ||
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
7166 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
7167 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
7168 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
7169 | |||
7170 | LIBS="$LIBS -ls" | ||
7171 | |||
7172 | fi | ||
7173 | |||
7174 | |||
7175 | fi | ||
7176 | |||
7177 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
7178 | " | ||
7179 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
7180 | ac_have_decl=1 | ||
7181 | else | ||
7182 | ac_have_decl=0 | ||
7183 | fi | ||
7184 | |||
7185 | cat >>confdefs.h <<_ACEOF | ||
7186 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
7187 | _ACEOF | ||
7188 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
7189 | " | ||
7190 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
7191 | ac_have_decl=1 | ||
7192 | else | ||
7193 | ac_have_decl=0 | ||
7194 | fi | ||
7195 | |||
7196 | cat >>confdefs.h <<_ACEOF | ||
7197 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
7198 | _ACEOF | ||
7199 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
7200 | " | ||
7201 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
7202 | ac_have_decl=1 | ||
7203 | else | ||
7204 | ac_have_decl=0 | ||
7205 | fi | ||
7206 | |||
7207 | cat >>confdefs.h <<_ACEOF | ||
7208 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
7209 | _ACEOF | ||
7210 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
7211 | " | ||
7212 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
7213 | ac_have_decl=1 | ||
7214 | else | ||
7215 | ac_have_decl=0 | ||
7216 | fi | ||
7217 | |||
7218 | cat >>confdefs.h <<_ACEOF | ||
7219 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
7220 | _ACEOF | ||
7221 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
7222 | " | ||
7223 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
7224 | ac_have_decl=1 | ||
7225 | else | ||
7226 | ac_have_decl=0 | ||
7227 | fi | ||
7228 | |||
7229 | cat >>confdefs.h <<_ACEOF | ||
7230 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
7231 | _ACEOF | ||
7232 | |||
7233 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
7234 | |||
7235 | " | ||
7236 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
7237 | ac_have_decl=1 | ||
7238 | else | ||
7239 | ac_have_decl=0 | ||
7240 | fi | ||
7241 | |||
7242 | cat >>confdefs.h <<_ACEOF | ||
7243 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
7244 | _ACEOF | ||
7245 | if test $ac_have_decl = 1; then : | ||
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
7247 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
7248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7249 | /* end confdefs.h. */ | ||
7250 | #include <usersec.h> | ||
7251 | int | ||
7252 | main () | ||
7253 | { | ||
7254 | (void)loginfailed("user","host","tty",0); | ||
7255 | ; | ||
7256 | return 0; | ||
7257 | } | ||
7258 | _ACEOF | ||
7259 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7261 | $as_echo "yes" >&6; } | ||
7262 | |||
7263 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
7264 | |||
7265 | else | ||
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7267 | $as_echo "no" >&6; } | ||
7268 | |||
7269 | fi | ||
7270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7271 | fi | ||
7272 | |||
7273 | for ac_func in getgrset setauthdb | ||
7274 | do : | ||
7275 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7276 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7277 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7278 | cat >>confdefs.h <<_ACEOF | ||
7279 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7280 | _ACEOF | ||
7281 | |||
7282 | fi | ||
7283 | done | ||
7284 | |||
7285 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
7286 | #include <fcntl.h> | ||
7287 | |||
7288 | " | ||
7289 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
7290 | |||
7291 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
7292 | |||
7293 | fi | ||
7294 | |||
7295 | check_for_aix_broken_getaddrinfo=1 | ||
7296 | |||
7297 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7298 | |||
7299 | |||
7300 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7301 | |||
7302 | |||
7303 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7304 | |||
7305 | |||
7306 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7307 | |||
7308 | |||
7309 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7310 | |||
7311 | |||
7312 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7313 | |||
7314 | |||
7315 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7316 | |||
7317 | |||
7318 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
7319 | |||
7320 | |||
7321 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7322 | |||
7323 | |||
7324 | $as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h | ||
7325 | |||
7326 | |||
7327 | $as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h | ||
7328 | |||
7329 | ;; | ||
7330 | *-*-android*) | ||
7331 | |||
7332 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7333 | |||
7334 | |||
7335 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7336 | |||
7337 | ;; | ||
7338 | *-*-cygwin*) | ||
7339 | check_for_libcrypt_later=1 | ||
7340 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7341 | |||
7342 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
7343 | |||
7344 | |||
7345 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7346 | |||
7347 | |||
7348 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
7349 | |||
7350 | |||
7351 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7352 | |||
7353 | |||
7354 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7355 | |||
7356 | |||
7357 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7358 | |||
7359 | |||
7360 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
7361 | |||
7362 | |||
7363 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
7364 | |||
7365 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
7366 | # reasons which cause compile warnings, so we disable those warnings. | ||
7367 | { | ||
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
7369 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | ||
7370 | saved_CFLAGS="$CFLAGS" | ||
7371 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
7372 | _define_flag="" | ||
7373 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
7374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7375 | /* end confdefs.h. */ | ||
7376 | |||
7377 | #include <stdlib.h> | ||
7378 | #include <stdio.h> | ||
7379 | int main(int argc, char **argv) { | ||
7380 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
7381 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
7382 | float l = i * 2.1; | ||
7383 | double m = l / 0.5; | ||
7384 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
7385 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
7386 | exit(0); | ||
7387 | } | ||
7388 | |||
7389 | _ACEOF | ||
7390 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7391 | |||
7392 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
7393 | then | ||
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7395 | $as_echo "no" >&6; } | ||
7396 | CFLAGS="$saved_CFLAGS" | ||
7397 | else | ||
7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7399 | $as_echo "yes" >&6; } | ||
7400 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
7401 | fi | ||
7402 | else | ||
7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7404 | $as_echo "no" >&6; } | ||
7405 | CFLAGS="$saved_CFLAGS" | ||
7406 | |||
7407 | fi | ||
7408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7409 | } | ||
7410 | ;; | ||
7411 | *-*-dgux*) | ||
7412 | |||
7413 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7414 | |||
7415 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7416 | |||
7417 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7418 | |||
7419 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7420 | |||
7421 | ;; | ||
7422 | *-*-darwin*) | ||
7423 | use_pie=auto | ||
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
7425 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7426 | if test "$cross_compiling" = yes; then : | ||
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
7428 | $as_echo "assume it is working" >&6; } | ||
7429 | else | ||
7430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7431 | /* end confdefs.h. */ | ||
7432 | #include <mach-o/dyld.h> | ||
7433 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7434 | exit(0); | ||
7435 | else | ||
7436 | exit(1); | ||
7437 | } | ||
7438 | |||
7439 | _ACEOF | ||
7440 | if ac_fn_c_try_run "$LINENO"; then : | ||
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
7442 | $as_echo "working" >&6; } | ||
7443 | else | ||
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
7445 | $as_echo "buggy" >&6; } | ||
7446 | |||
7447 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7448 | |||
7449 | |||
7450 | fi | ||
7451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7452 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7453 | fi | ||
7454 | |||
7455 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7456 | |||
7457 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7458 | |||
7459 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7460 | |||
7461 | |||
7462 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7463 | |||
7464 | |||
7465 | cat >>confdefs.h <<_ACEOF | ||
7466 | #define BIND_8_COMPAT 1 | ||
7467 | _ACEOF | ||
7468 | |||
7469 | |||
7470 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7471 | |||
7472 | |||
7473 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7474 | |||
7475 | |||
7476 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7477 | |||
7478 | |||
7479 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
7480 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
7481 | |||
7482 | else | ||
7483 | |||
7484 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
7485 | |||
7486 | #include <bsm/audit.h> | ||
7487 | |||
7488 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
7489 | |||
7490 | |||
7491 | fi | ||
7492 | |||
7493 | |||
7494 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7495 | |||
7496 | for ac_func in sandbox_init | ||
7497 | do : | ||
7498 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
7499 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
7500 | cat >>confdefs.h <<_ACEOF | ||
7501 | #define HAVE_SANDBOX_INIT 1 | ||
7502 | _ACEOF | ||
7503 | |||
7504 | fi | ||
7505 | done | ||
7506 | |||
7507 | for ac_header in sandbox.h | ||
7508 | do : | ||
7509 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
7510 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
7511 | cat >>confdefs.h <<_ACEOF | ||
7512 | #define HAVE_SANDBOX_H 1 | ||
7513 | _ACEOF | ||
7514 | |||
7515 | fi | ||
7516 | |||
7517 | done | ||
7518 | |||
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 | ||
7520 | $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } | ||
7521 | if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : | ||
7522 | $as_echo_n "(cached) " >&6 | ||
7523 | else | ||
7524 | ac_check_lib_save_LIBS=$LIBS | ||
7525 | LIBS="-lsandbox $LIBS" | ||
7526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7527 | /* end confdefs.h. */ | ||
7528 | |||
7529 | /* Override any GCC internal prototype to avoid an error. | ||
7530 | Use char because int might match the return type of a GCC | ||
7531 | builtin and then its argument prototype would still apply. */ | ||
7532 | #ifdef __cplusplus | ||
7533 | extern "C" | ||
7534 | #endif | ||
7535 | char sandbox_apply (); | ||
7536 | int | ||
7537 | main () | ||
7538 | { | ||
7539 | return sandbox_apply (); | ||
7540 | ; | ||
7541 | return 0; | ||
7542 | } | ||
7543 | _ACEOF | ||
7544 | if ac_fn_c_try_link "$LINENO"; then : | ||
7545 | ac_cv_lib_sandbox_sandbox_apply=yes | ||
7546 | else | ||
7547 | ac_cv_lib_sandbox_sandbox_apply=no | ||
7548 | fi | ||
7549 | rm -f core conftest.err conftest.$ac_objext \ | ||
7550 | conftest$ac_exeext conftest.$ac_ext | ||
7551 | LIBS=$ac_check_lib_save_LIBS | ||
7552 | fi | ||
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 | ||
7554 | $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } | ||
7555 | if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : | ||
7556 | |||
7557 | SSHDLIBS="$SSHDLIBS -lsandbox" | ||
7558 | |||
7559 | fi | ||
7560 | |||
7561 | # proc_pidinfo()-based closefrom() replacement. | ||
7562 | for ac_header in libproc.h | ||
7563 | do : | ||
7564 | ac_fn_c_check_header_mongrel "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default" | ||
7565 | if test "x$ac_cv_header_libproc_h" = xyes; then : | ||
7566 | cat >>confdefs.h <<_ACEOF | ||
7567 | #define HAVE_LIBPROC_H 1 | ||
7568 | _ACEOF | ||
7569 | |||
7570 | fi | ||
7571 | |||
7572 | done | ||
7573 | |||
7574 | for ac_func in proc_pidinfo | ||
7575 | do : | ||
7576 | ac_fn_c_check_func "$LINENO" "proc_pidinfo" "ac_cv_func_proc_pidinfo" | ||
7577 | if test "x$ac_cv_func_proc_pidinfo" = xyes; then : | ||
7578 | cat >>confdefs.h <<_ACEOF | ||
7579 | #define HAVE_PROC_PIDINFO 1 | ||
7580 | _ACEOF | ||
7581 | |||
7582 | fi | ||
7583 | done | ||
7584 | |||
7585 | ;; | ||
7586 | *-*-dragonfly*) | ||
7587 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7588 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7589 | ;; | ||
7590 | *-*-haiku*) | ||
7591 | LIBS="$LIBS -lbsd " | ||
7592 | CFLAGS="$CFLAGS -D_BSD_SOURCE" | ||
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
7594 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
7595 | if ${ac_cv_lib_network_socket+:} false; then : | ||
7596 | $as_echo_n "(cached) " >&6 | ||
7597 | else | ||
7598 | ac_check_lib_save_LIBS=$LIBS | ||
7599 | LIBS="-lnetwork $LIBS" | ||
7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7601 | /* end confdefs.h. */ | ||
7602 | |||
7603 | /* Override any GCC internal prototype to avoid an error. | ||
7604 | Use char because int might match the return type of a GCC | ||
7605 | builtin and then its argument prototype would still apply. */ | ||
7606 | #ifdef __cplusplus | ||
7607 | extern "C" | ||
7608 | #endif | ||
7609 | char socket (); | ||
7610 | int | ||
7611 | main () | ||
7612 | { | ||
7613 | return socket (); | ||
7614 | ; | ||
7615 | return 0; | ||
7616 | } | ||
7617 | _ACEOF | ||
7618 | if ac_fn_c_try_link "$LINENO"; then : | ||
7619 | ac_cv_lib_network_socket=yes | ||
7620 | else | ||
7621 | ac_cv_lib_network_socket=no | ||
7622 | fi | ||
7623 | rm -f core conftest.err conftest.$ac_objext \ | ||
7624 | conftest$ac_exeext conftest.$ac_ext | ||
7625 | LIBS=$ac_check_lib_save_LIBS | ||
7626 | fi | ||
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
7628 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
7629 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
7630 | cat >>confdefs.h <<_ACEOF | ||
7631 | #define HAVE_LIBNETWORK 1 | ||
7632 | _ACEOF | ||
7633 | |||
7634 | LIBS="-lnetwork $LIBS" | ||
7635 | |||
7636 | fi | ||
7637 | |||
7638 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
7639 | |||
7640 | |||
7641 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
7642 | |||
7643 | MANTYPE=man | ||
7644 | ;; | ||
7645 | *-*-hpux*) | ||
7646 | # first we define all of the options common to all HP-UX releases | ||
7647 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7648 | IPADDR_IN_DISPLAY=yes | ||
7649 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7650 | |||
7651 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7652 | |||
7653 | |||
7654 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
7655 | |||
7656 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
7657 | |||
7658 | |||
7659 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7660 | |||
7661 | maildir="/var/mail" | ||
7662 | LIBS="$LIBS -lsec" | ||
7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
7664 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7665 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
7666 | $as_echo_n "(cached) " >&6 | ||
7667 | else | ||
7668 | ac_check_lib_save_LIBS=$LIBS | ||
7669 | LIBS="-lxnet $LIBS" | ||
7670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7671 | /* end confdefs.h. */ | ||
7672 | |||
7673 | /* Override any GCC internal prototype to avoid an error. | ||
7674 | Use char because int might match the return type of a GCC | ||
7675 | builtin and then its argument prototype would still apply. */ | ||
7676 | #ifdef __cplusplus | ||
7677 | extern "C" | ||
7678 | #endif | ||
7679 | char t_error (); | ||
7680 | int | ||
7681 | main () | ||
7682 | { | ||
7683 | return t_error (); | ||
7684 | ; | ||
7685 | return 0; | ||
7686 | } | ||
7687 | _ACEOF | ||
7688 | if ac_fn_c_try_link "$LINENO"; then : | ||
7689 | ac_cv_lib_xnet_t_error=yes | ||
7690 | else | ||
7691 | ac_cv_lib_xnet_t_error=no | ||
7692 | fi | ||
7693 | rm -f core conftest.err conftest.$ac_objext \ | ||
7694 | conftest$ac_exeext conftest.$ac_ext | ||
7695 | LIBS=$ac_check_lib_save_LIBS | ||
7696 | fi | ||
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7698 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7699 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
7700 | cat >>confdefs.h <<_ACEOF | ||
7701 | #define HAVE_LIBXNET 1 | ||
7702 | _ACEOF | ||
7703 | |||
7704 | LIBS="-lxnet $LIBS" | ||
7705 | |||
7706 | else | ||
7707 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
7708 | fi | ||
7709 | |||
7710 | |||
7711 | # next, we define all of the options specific to major releases | ||
7712 | case "$host" in | ||
7713 | *-*-hpux10*) | ||
7714 | if test -z "$GCC"; then | ||
7715 | CFLAGS="$CFLAGS -Ae" | ||
7716 | fi | ||
7717 | ;; | ||
7718 | *-*-hpux11*) | ||
7719 | |||
7720 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7721 | |||
7722 | |||
7723 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7724 | |||
7725 | |||
7726 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7727 | |||
7728 | check_for_hpux_broken_getaddrinfo=1 | ||
7729 | check_for_conflicting_getspnam=1 | ||
7730 | ;; | ||
7731 | esac | ||
7732 | |||
7733 | # lastly, we define options specific to minor releases | ||
7734 | case "$host" in | ||
7735 | *-*-hpux10.26) | ||
7736 | |||
7737 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7738 | |||
7739 | disable_ptmx_check=yes | ||
7740 | LIBS="$LIBS -lsecpw" | ||
7741 | ;; | ||
7742 | esac | ||
7743 | ;; | ||
7744 | *-*-irix5*) | ||
7745 | PATH="$PATH:/usr/etc" | ||
7746 | |||
7747 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7748 | |||
7749 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7750 | |||
7751 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7752 | |||
7753 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7754 | |||
7755 | |||
7756 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7757 | |||
7758 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7759 | |||
7760 | ;; | ||
7761 | *-*-irix6*) | ||
7762 | PATH="$PATH:/usr/etc" | ||
7763 | |||
7764 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
7765 | |||
7766 | |||
7767 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
7768 | |||
7769 | |||
7770 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
7771 | |||
7772 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
7773 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
7774 | |||
7775 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
7776 | |||
7777 | fi | ||
7778 | |||
7779 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7780 | |||
7781 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7782 | |||
7783 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7784 | |||
7785 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7786 | |||
7787 | |||
7788 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7789 | |||
7790 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7791 | |||
7792 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7793 | |||
7794 | ;; | ||
7795 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7796 | check_for_libcrypt_later=1 | ||
7797 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7798 | |||
7799 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7800 | |||
7801 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7802 | |||
7803 | |||
7804 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7805 | |||
7806 | |||
7807 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7808 | |||
7809 | ;; | ||
7810 | *-*-linux*) | ||
7811 | no_dev_ptmx=1 | ||
7812 | use_pie=auto | ||
7813 | check_for_libcrypt_later=1 | ||
7814 | check_for_openpty_ctty_bug=1 | ||
7815 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE" | ||
7816 | |||
7817 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7818 | |||
7819 | |||
7820 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7821 | |||
7822 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7823 | |||
7824 | |||
7825 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
7826 | |||
7827 | |||
7828 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7829 | |||
7830 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7831 | |||
7832 | |||
7833 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
7834 | |||
7835 | inet6_default_4in6=yes | ||
7836 | case `uname -r` in | ||
7837 | 1.*|2.0.*) | ||
7838 | |||
7839 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
7840 | |||
7841 | ;; | ||
7842 | esac | ||
7843 | # tun(4) forwarding compat code | ||
7844 | for ac_header in linux/if_tun.h | ||
7845 | do : | ||
7846 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
7847 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
7848 | cat >>confdefs.h <<_ACEOF | ||
7849 | #define HAVE_LINUX_IF_TUN_H 1 | ||
7850 | _ACEOF | ||
7851 | |||
7852 | fi | ||
7853 | |||
7854 | done | ||
7855 | |||
7856 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7857 | |||
7858 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
7859 | |||
7860 | |||
7861 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7862 | |||
7863 | |||
7864 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7865 | |||
7866 | fi | ||
7867 | ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" " | ||
7868 | #ifdef HAVE_SYS_TYPES_H | ||
7869 | # include <sys/types.h> | ||
7870 | #endif | ||
7871 | |||
7872 | " | ||
7873 | if test "x$ac_cv_header_linux_if_h" = xyes; then : | ||
7874 | |||
7875 | $as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h | ||
7876 | |||
7877 | fi | ||
7878 | |||
7879 | |||
7880 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
7881 | do : | ||
7882 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7883 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
7884 | " | ||
7885 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7886 | cat >>confdefs.h <<_ACEOF | ||
7887 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7888 | _ACEOF | ||
7889 | |||
7890 | fi | ||
7891 | |||
7892 | done | ||
7893 | |||
7894 | # Obtain MIPS ABI | ||
7895 | case "$host" in | ||
7896 | mips*) | ||
7897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7898 | /* end confdefs.h. */ | ||
7899 | |||
7900 | #if _MIPS_SIM != _ABIO32 | ||
7901 | #error | ||
7902 | #endif | ||
7903 | |||
7904 | int | ||
7905 | main () | ||
7906 | { | ||
7907 | |||
7908 | ; | ||
7909 | return 0; | ||
7910 | } | ||
7911 | _ACEOF | ||
7912 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7913 | mips_abi="o32" | ||
7914 | else | ||
7915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7916 | /* end confdefs.h. */ | ||
7917 | |||
7918 | #if _MIPS_SIM != _ABIN32 | ||
7919 | #error | ||
7920 | #endif | ||
7921 | |||
7922 | int | ||
7923 | main () | ||
7924 | { | ||
7925 | |||
7926 | ; | ||
7927 | return 0; | ||
7928 | } | ||
7929 | _ACEOF | ||
7930 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7931 | mips_abi="n32" | ||
7932 | else | ||
7933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7934 | /* end confdefs.h. */ | ||
7935 | |||
7936 | #if _MIPS_SIM != _ABI64 | ||
7937 | #error | ||
7938 | #endif | ||
7939 | |||
7940 | int | ||
7941 | main () | ||
7942 | { | ||
7943 | |||
7944 | ; | ||
7945 | return 0; | ||
7946 | } | ||
7947 | _ACEOF | ||
7948 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7949 | mips_abi="n64" | ||
7950 | else | ||
7951 | as_fn_error $? "unknown MIPS ABI" "$LINENO" 5 | ||
7952 | |||
7953 | fi | ||
7954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7955 | |||
7956 | fi | ||
7957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7958 | |||
7959 | fi | ||
7960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7961 | ;; | ||
7962 | esac | ||
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
7964 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
7965 | seccomp_audit_arch= | ||
7966 | case "$host" in | ||
7967 | x86_64-*) | ||
7968 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
7969 | ;; | ||
7970 | i*86-*) | ||
7971 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
7972 | ;; | ||
7973 | arm*-*) | ||
7974 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
7975 | ;; | ||
7976 | aarch64*-*) | ||
7977 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
7978 | ;; | ||
7979 | s390x-*) | ||
7980 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
7981 | ;; | ||
7982 | s390-*) | ||
7983 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
7984 | ;; | ||
7985 | powerpc64-*) | ||
7986 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
7987 | ;; | ||
7988 | powerpc64le-*) | ||
7989 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
7990 | ;; | ||
7991 | mips-*) | ||
7992 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
7993 | ;; | ||
7994 | mipsel-*) | ||
7995 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
7996 | ;; | ||
7997 | mips64-*) | ||
7998 | case "$mips_abi" in | ||
7999 | "n32") | ||
8000 | seccomp_audit_arch=AUDIT_ARCH_MIPS64N32 | ||
8001 | ;; | ||
8002 | "n64") | ||
8003 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
8004 | ;; | ||
8005 | esac | ||
8006 | ;; | ||
8007 | mips64el-*) | ||
8008 | case "$mips_abi" in | ||
8009 | "n32") | ||
8010 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32 | ||
8011 | ;; | ||
8012 | "n64") | ||
8013 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
8014 | ;; | ||
8015 | esac | ||
8016 | ;; | ||
8017 | esac | ||
8018 | if test "x$seccomp_audit_arch" != "x" ; then | ||
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
8020 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
8021 | |||
8022 | cat >>confdefs.h <<_ACEOF | ||
8023 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
8024 | _ACEOF | ||
8025 | |||
8026 | else | ||
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
8028 | $as_echo "architecture not supported" >&6; } | ||
8029 | fi | ||
8030 | ;; | ||
8031 | mips-sony-bsd|mips-sony-newsos4) | ||
8032 | |||
8033 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8034 | |||
8035 | SONY=1 | ||
8036 | ;; | ||
8037 | *-*-netbsd*) | ||
8038 | check_for_libcrypt_before=1 | ||
8039 | if test "x$withval" != "xno" ; then | ||
8040 | rpath_opt="-R" | ||
8041 | fi | ||
8042 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
8043 | |||
8044 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
8045 | |||
8046 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
8047 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
8048 | |||
8049 | else | ||
8050 | |||
8051 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
8052 | |||
8053 | fi | ||
8054 | |||
8055 | |||
8056 | |||
8057 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
8058 | |||
8059 | TEST_MALLOC_OPTIONS="AJRX" | ||
8060 | |||
8061 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h | ||
8062 | |||
8063 | ;; | ||
8064 | *-*-freebsd*) | ||
8065 | check_for_libcrypt_later=1 | ||
8066 | |||
8067 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
8068 | |||
8069 | |||
8070 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
8071 | |||
8072 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
8073 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
8074 | |||
8075 | else | ||
8076 | |||
8077 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
8078 | |||
8079 | fi | ||
8080 | |||
8081 | |||
8082 | |||
8083 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
8084 | |||
8085 | TEST_MALLOC_OPTIONS="AJRX" | ||
8086 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
8087 | # and will crash if they cannot be opened. | ||
8088 | |||
8089 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h | ||
8090 | |||
8091 | ;; | ||
8092 | *-*-bsdi*) | ||
8093 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8094 | |||
8095 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8096 | |||
8097 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8098 | |||
8099 | ;; | ||
8100 | *-next-*) | ||
8101 | conf_lastlog_location="/usr/adm/lastlog" | ||
8102 | conf_utmp_location=/etc/utmp | ||
8103 | conf_wtmp_location=/usr/adm/wtmp | ||
8104 | maildir=/usr/spool/mail | ||
8105 | |||
8106 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
8107 | |||
8108 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8109 | |||
8110 | |||
8111 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
8112 | |||
8113 | ;; | ||
8114 | *-*-openbsd*) | ||
8115 | use_pie=auto | ||
8116 | |||
8117 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
8118 | |||
8119 | |||
8120 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
8121 | |||
8122 | |||
8123 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
8124 | |||
8125 | |||
8126 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
8127 | |||
8128 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
8129 | ;; | ||
8130 | *-*-solaris*) | ||
8131 | if test "x$withval" != "xno" ; then | ||
8132 | rpath_opt="-R" | ||
8133 | fi | ||
8134 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8135 | |||
8136 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
8137 | |||
8138 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
8139 | |||
8140 | |||
8141 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
8142 | |||
8143 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8144 | |||
8145 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8146 | |||
8147 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8148 | |||
8149 | |||
8150 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8151 | |||
8152 | |||
8153 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
8154 | |||
8155 | external_path_file=/etc/default/login | ||
8156 | # hardwire lastlog location (can't detect it on some versions) | ||
8157 | conf_lastlog_location="/var/adm/lastlog" | ||
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8159 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
8160 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8161 | if test "$sol2ver" -ge 8; then | ||
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8163 | $as_echo "yes" >&6; } | ||
8164 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
8165 | |||
8166 | |||
8167 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
8168 | |||
8169 | else | ||
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8171 | $as_echo "no" >&6; } | ||
8172 | fi | ||
8173 | for ac_func in setpflags | ||
8174 | do : | ||
8175 | ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" | ||
8176 | if test "x$ac_cv_func_setpflags" = xyes; then : | ||
8177 | cat >>confdefs.h <<_ACEOF | ||
8178 | #define HAVE_SETPFLAGS 1 | ||
8179 | _ACEOF | ||
8180 | |||
8181 | fi | ||
8182 | done | ||
8183 | |||
8184 | for ac_func in setppriv | ||
8185 | do : | ||
8186 | ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" | ||
8187 | if test "x$ac_cv_func_setppriv" = xyes; then : | ||
8188 | cat >>confdefs.h <<_ACEOF | ||
8189 | #define HAVE_SETPPRIV 1 | ||
8190 | _ACEOF | ||
8191 | |||
8192 | fi | ||
8193 | done | ||
8194 | |||
8195 | for ac_func in priv_basicset | ||
8196 | do : | ||
8197 | ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" | ||
8198 | if test "x$ac_cv_func_priv_basicset" = xyes; then : | ||
8199 | cat >>confdefs.h <<_ACEOF | ||
8200 | #define HAVE_PRIV_BASICSET 1 | ||
8201 | _ACEOF | ||
8202 | |||
8203 | fi | ||
8204 | done | ||
8205 | |||
8206 | for ac_header in priv.h | ||
8207 | do : | ||
8208 | ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" | ||
8209 | if test "x$ac_cv_header_priv_h" = xyes; then : | ||
8210 | cat >>confdefs.h <<_ACEOF | ||
8211 | #define HAVE_PRIV_H 1 | ||
8212 | _ACEOF | ||
8213 | |||
8214 | fi | ||
8215 | |||
8216 | done | ||
8217 | |||
8218 | |||
8219 | # Check whether --with-solaris-contracts was given. | ||
8220 | if test "${with_solaris_contracts+set}" = set; then : | ||
8221 | withval=$with_solaris_contracts; | ||
8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8223 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
8224 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
8225 | $as_echo_n "(cached) " >&6 | ||
8226 | else | ||
8227 | ac_check_lib_save_LIBS=$LIBS | ||
8228 | LIBS="-lcontract $LIBS" | ||
8229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8230 | /* end confdefs.h. */ | ||
8231 | |||
8232 | /* Override any GCC internal prototype to avoid an error. | ||
8233 | Use char because int might match the return type of a GCC | ||
8234 | builtin and then its argument prototype would still apply. */ | ||
8235 | #ifdef __cplusplus | ||
8236 | extern "C" | ||
8237 | #endif | ||
8238 | char ct_tmpl_activate (); | ||
8239 | int | ||
8240 | main () | ||
8241 | { | ||
8242 | return ct_tmpl_activate (); | ||
8243 | ; | ||
8244 | return 0; | ||
8245 | } | ||
8246 | _ACEOF | ||
8247 | if ac_fn_c_try_link "$LINENO"; then : | ||
8248 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8249 | else | ||
8250 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8251 | fi | ||
8252 | rm -f core conftest.err conftest.$ac_objext \ | ||
8253 | conftest$ac_exeext conftest.$ac_ext | ||
8254 | LIBS=$ac_check_lib_save_LIBS | ||
8255 | fi | ||
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8257 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8258 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
8259 | |||
8260 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
8261 | |||
8262 | LIBS="$LIBS -lcontract" | ||
8263 | SPC_MSG="yes" | ||
8264 | fi | ||
8265 | |||
8266 | |||
8267 | fi | ||
8268 | |||
8269 | |||
8270 | # Check whether --with-solaris-projects was given. | ||
8271 | if test "${with_solaris_projects+set}" = set; then : | ||
8272 | withval=$with_solaris_projects; | ||
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
8274 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
8275 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
8276 | $as_echo_n "(cached) " >&6 | ||
8277 | else | ||
8278 | ac_check_lib_save_LIBS=$LIBS | ||
8279 | LIBS="-lproject $LIBS" | ||
8280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8281 | /* end confdefs.h. */ | ||
8282 | |||
8283 | /* Override any GCC internal prototype to avoid an error. | ||
8284 | Use char because int might match the return type of a GCC | ||
8285 | builtin and then its argument prototype would still apply. */ | ||
8286 | #ifdef __cplusplus | ||
8287 | extern "C" | ||
8288 | #endif | ||
8289 | char setproject (); | ||
8290 | int | ||
8291 | main () | ||
8292 | { | ||
8293 | return setproject (); | ||
8294 | ; | ||
8295 | return 0; | ||
8296 | } | ||
8297 | _ACEOF | ||
8298 | if ac_fn_c_try_link "$LINENO"; then : | ||
8299 | ac_cv_lib_project_setproject=yes | ||
8300 | else | ||
8301 | ac_cv_lib_project_setproject=no | ||
8302 | fi | ||
8303 | rm -f core conftest.err conftest.$ac_objext \ | ||
8304 | conftest$ac_exeext conftest.$ac_ext | ||
8305 | LIBS=$ac_check_lib_save_LIBS | ||
8306 | fi | ||
8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
8308 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
8309 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
8310 | |||
8311 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
8312 | |||
8313 | LIBS="$LIBS -lproject" | ||
8314 | SP_MSG="yes" | ||
8315 | fi | ||
8316 | |||
8317 | |||
8318 | fi | ||
8319 | |||
8320 | |||
8321 | # Check whether --with-solaris-privs was given. | ||
8322 | if test "${with_solaris_privs+set}" = set; then : | ||
8323 | withval=$with_solaris_privs; | ||
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 | ||
8325 | $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } | ||
8326 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ | ||
8327 | "x$ac_cv_header_priv_h" = "xyes" ; then | ||
8328 | SOLARIS_PRIVS=yes | ||
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | ||
8330 | $as_echo "found" >&6; } | ||
8331 | |||
8332 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
8333 | |||
8334 | |||
8335 | $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h | ||
8336 | |||
8337 | SPP_MSG="yes" | ||
8338 | else | ||
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
8340 | $as_echo "not found" >&6; } | ||
8341 | as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 | ||
8342 | fi | ||
8343 | |||
8344 | fi | ||
8345 | |||
8346 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8347 | ;; | ||
8348 | *-*-sunos4*) | ||
8349 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8350 | for ac_func in getpwanam | ||
8351 | do : | ||
8352 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
8353 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
8354 | cat >>confdefs.h <<_ACEOF | ||
8355 | #define HAVE_GETPWANAM 1 | ||
8356 | _ACEOF | ||
8357 | |||
8358 | fi | ||
8359 | done | ||
8360 | |||
8361 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8362 | |||
8363 | conf_utmp_location=/etc/utmp | ||
8364 | conf_wtmp_location=/var/adm/wtmp | ||
8365 | conf_lastlog_location=/var/adm/lastlog | ||
8366 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8367 | |||
8368 | |||
8369 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
8370 | |||
8371 | ;; | ||
8372 | *-ncr-sysv*) | ||
8373 | LIBS="$LIBS -lc89" | ||
8374 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8375 | |||
8376 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8377 | |||
8378 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8379 | |||
8380 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8381 | |||
8382 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8383 | |||
8384 | ;; | ||
8385 | *-sni-sysv*) | ||
8386 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
8388 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
8389 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
8390 | $as_echo_n "(cached) " >&6 | ||
8391 | else | ||
8392 | ac_check_lib_save_LIBS=$LIBS | ||
8393 | LIBS="-ldl $LIBS" | ||
8394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8395 | /* end confdefs.h. */ | ||
8396 | |||
8397 | /* Override any GCC internal prototype to avoid an error. | ||
8398 | Use char because int might match the return type of a GCC | ||
8399 | builtin and then its argument prototype would still apply. */ | ||
8400 | #ifdef __cplusplus | ||
8401 | extern "C" | ||
8402 | #endif | ||
8403 | char dlsym (); | ||
8404 | int | ||
8405 | main () | ||
8406 | { | ||
8407 | return dlsym (); | ||
8408 | ; | ||
8409 | return 0; | ||
8410 | } | ||
8411 | _ACEOF | ||
8412 | if ac_fn_c_try_link "$LINENO"; then : | ||
8413 | ac_cv_lib_dl_dlsym=yes | ||
8414 | else | ||
8415 | ac_cv_lib_dl_dlsym=no | ||
8416 | fi | ||
8417 | rm -f core conftest.err conftest.$ac_objext \ | ||
8418 | conftest$ac_exeext conftest.$ac_ext | ||
8419 | LIBS=$ac_check_lib_save_LIBS | ||
8420 | fi | ||
8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8422 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
8423 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
8424 | cat >>confdefs.h <<_ACEOF | ||
8425 | #define HAVE_LIBDL 1 | ||
8426 | _ACEOF | ||
8427 | |||
8428 | LIBS="-ldl $LIBS" | ||
8429 | |||
8430 | fi | ||
8431 | |||
8432 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
8434 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
8435 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
8436 | $as_echo_n "(cached) " >&6 | ||
8437 | else | ||
8438 | ac_check_lib_save_LIBS=$LIBS | ||
8439 | LIBS="-lresolv $LIBS" | ||
8440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8441 | /* end confdefs.h. */ | ||
8442 | |||
8443 | /* Override any GCC internal prototype to avoid an error. | ||
8444 | Use char because int might match the return type of a GCC | ||
8445 | builtin and then its argument prototype would still apply. */ | ||
8446 | #ifdef __cplusplus | ||
8447 | extern "C" | ||
8448 | #endif | ||
8449 | char res_query (); | ||
8450 | int | ||
8451 | main () | ||
8452 | { | ||
8453 | return res_query (); | ||
8454 | ; | ||
8455 | return 0; | ||
8456 | } | ||
8457 | _ACEOF | ||
8458 | if ac_fn_c_try_link "$LINENO"; then : | ||
8459 | ac_cv_lib_resolv_res_query=yes | ||
8460 | else | ||
8461 | ac_cv_lib_resolv_res_query=no | ||
8462 | fi | ||
8463 | rm -f core conftest.err conftest.$ac_objext \ | ||
8464 | conftest$ac_exeext conftest.$ac_ext | ||
8465 | LIBS=$ac_check_lib_save_LIBS | ||
8466 | fi | ||
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8468 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
8469 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
8470 | LIBS="$LIBS -lresolv" | ||
8471 | fi | ||
8472 | |||
8473 | IPADDR_IN_DISPLAY=yes | ||
8474 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8475 | |||
8476 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
8477 | |||
8478 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8479 | |||
8480 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8481 | |||
8482 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8483 | |||
8484 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8485 | |||
8486 | external_path_file=/etc/default/login | ||
8487 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8488 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8489 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8490 | ;; | ||
8491 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8492 | *-*-sysv4.2*) | ||
8493 | $as_echo "#define USE_PIPES 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 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8503 | |||
8504 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8505 | |||
8506 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8507 | ;; | ||
8508 | # UnixWare 7.x, OpenUNIX 8 | ||
8509 | *-*-sysv5*) | ||
8510 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8511 | |||
8512 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
8513 | |||
8514 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8515 | |||
8516 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8517 | |||
8518 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8519 | |||
8520 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8521 | |||
8522 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8523 | |||
8524 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8525 | |||
8526 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
8527 | |||
8528 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8529 | check_for_libcrypt_later=1 | ||
8530 | case "$host" in | ||
8531 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8532 | maildir=/var/spool/mail | ||
8533 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8534 | |||
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
8536 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
8537 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
8538 | $as_echo_n "(cached) " >&6 | ||
8539 | else | ||
8540 | ac_check_lib_save_LIBS=$LIBS | ||
8541 | LIBS="-lprot $LIBS" | ||
8542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8543 | /* end confdefs.h. */ | ||
8544 | |||
8545 | /* Override any GCC internal prototype to avoid an error. | ||
8546 | Use char because int might match the return type of a GCC | ||
8547 | builtin and then its argument prototype would still apply. */ | ||
8548 | #ifdef __cplusplus | ||
8549 | extern "C" | ||
8550 | #endif | ||
8551 | char getluid (); | ||
8552 | int | ||
8553 | main () | ||
8554 | { | ||
8555 | return getluid (); | ||
8556 | ; | ||
8557 | return 0; | ||
8558 | } | ||
8559 | _ACEOF | ||
8560 | if ac_fn_c_try_link "$LINENO"; then : | ||
8561 | ac_cv_lib_prot_getluid=yes | ||
8562 | else | ||
8563 | ac_cv_lib_prot_getluid=no | ||
8564 | fi | ||
8565 | rm -f core conftest.err conftest.$ac_objext \ | ||
8566 | conftest$ac_exeext conftest.$ac_ext | ||
8567 | LIBS=$ac_check_lib_save_LIBS | ||
8568 | fi | ||
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
8570 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
8571 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
8572 | LIBS="$LIBS -lprot" | ||
8573 | for ac_func in getluid setluid | ||
8574 | do : | ||
8575 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8576 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8577 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8578 | cat >>confdefs.h <<_ACEOF | ||
8579 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8580 | _ACEOF | ||
8581 | |||
8582 | fi | ||
8583 | done | ||
8584 | |||
8585 | |||
8586 | fi | ||
8587 | |||
8588 | ;; | ||
8589 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8590 | |||
8591 | ;; | ||
8592 | esac | ||
8593 | ;; | ||
8594 | *-*-sysv*) | ||
8595 | ;; | ||
8596 | # SCO UNIX and OEM versions of SCO UNIX | ||
8597 | *-*-sco3.2v4*) | ||
8598 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
8599 | ;; | ||
8600 | # SCO OpenServer 5.x | ||
8601 | *-*-sco3.2v5*) | ||
8602 | if test -z "$GCC"; then | ||
8603 | CFLAGS="$CFLAGS -belf" | ||
8604 | fi | ||
8605 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8606 | no_dev_ptmx=1 | ||
8607 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8608 | |||
8609 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8610 | |||
8611 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8612 | |||
8613 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8614 | |||
8615 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8616 | |||
8617 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8618 | |||
8619 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8620 | |||
8621 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8622 | |||
8623 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8624 | |||
8625 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8626 | |||
8627 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8628 | |||
8629 | for ac_func in getluid setluid | ||
8630 | do : | ||
8631 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8632 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8633 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8634 | cat >>confdefs.h <<_ACEOF | ||
8635 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8636 | _ACEOF | ||
8637 | |||
8638 | fi | ||
8639 | done | ||
8640 | |||
8641 | MANTYPE=man | ||
8642 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8643 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
8644 | ;; | ||
8645 | *-dec-osf*) | ||
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
8647 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
8648 | no_osfsia="" | ||
8649 | |||
8650 | # Check whether --with-osfsia was given. | ||
8651 | if test "${with_osfsia+set}" = set; then : | ||
8652 | withval=$with_osfsia; | ||
8653 | if test "x$withval" = "xno" ; then | ||
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
8655 | $as_echo "disabled" >&6; } | ||
8656 | no_osfsia=1 | ||
8657 | fi | ||
8658 | |||
8659 | fi | ||
8660 | |||
8661 | if test -z "$no_osfsia" ; then | ||
8662 | if test -f /etc/sia/matrix.conf; then | ||
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8664 | $as_echo "yes" >&6; } | ||
8665 | |||
8666 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
8667 | |||
8668 | |||
8669 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
8670 | |||
8671 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8672 | |||
8673 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8674 | SIA_MSG="yes" | ||
8675 | else | ||
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8677 | $as_echo "no" >&6; } | ||
8678 | |||
8679 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
8680 | |||
8681 | fi | ||
8682 | fi | ||
8683 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8684 | |||
8685 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8686 | |||
8687 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8688 | |||
8689 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8690 | |||
8691 | |||
8692 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
8693 | |||
8694 | ;; | ||
8695 | |||
8696 | *-*-nto-qnx*) | ||
8697 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8698 | |||
8699 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
8700 | |||
8701 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
8702 | |||
8703 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8704 | |||
8705 | |||
8706 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
8707 | |||
8708 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8709 | case "$host" in | ||
8710 | *-*-nto-qnx6*) | ||
8711 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8712 | |||
8713 | ;; | ||
8714 | esac | ||
8715 | ;; | ||
8716 | |||
8717 | *-*-ultrix*) | ||
8718 | |||
8719 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
8720 | |||
8721 | |||
8722 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8723 | |||
8724 | |||
8725 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
8726 | |||
8727 | |||
8728 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
8729 | |||
8730 | # DISABLE_FD_PASSING so that we call setpgrp as root, otherwise we | ||
8731 | # don't get a controlling tty. | ||
8732 | |||
8733 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8734 | |||
8735 | # On Ultrix some headers are not protected against multiple includes, | ||
8736 | # so we create wrappers and put it where the compiler will find it. | ||
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: creating compat wrappers for headers" >&5 | ||
8738 | $as_echo "$as_me: WARNING: creating compat wrappers for headers" >&2;} | ||
8739 | mkdir -p netinet | ||
8740 | for header in netinet/ip.h netdb.h resolv.h; do | ||
8741 | name=`echo $header | tr 'a-z/.' 'A-Z__'` | ||
8742 | cat >$header <<EOD | ||
8743 | #ifndef _SSH_COMPAT_${name} | ||
8744 | #define _SSH_COMPAT_${name} | ||
8745 | #include "/usr/include/${header}" | ||
8746 | #endif | ||
8747 | EOD | ||
8748 | done | ||
8749 | ;; | ||
8750 | |||
8751 | *-*-lynxos) | ||
8752 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8753 | |||
8754 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
8755 | |||
8756 | ;; | ||
8757 | esac | ||
8758 | |||
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
8760 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
8761 | if test "$cross_compiling" = yes; then : | ||
8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8763 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8764 | |||
8765 | else | ||
8766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8767 | /* end confdefs.h. */ | ||
8768 | #include <stdio.h> | ||
8769 | int | ||
8770 | main () | ||
8771 | { | ||
8772 | exit(0); | ||
8773 | ; | ||
8774 | return 0; | ||
8775 | } | ||
8776 | _ACEOF | ||
8777 | if ac_fn_c_try_run "$LINENO"; then : | ||
8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8779 | $as_echo "yes" >&6; } | ||
8780 | else | ||
8781 | |||
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8783 | $as_echo "no" >&6; } | ||
8784 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
8785 | |||
8786 | fi | ||
8787 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8788 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8789 | fi | ||
8790 | |||
8791 | |||
8792 | # Checks for libraries. | ||
8793 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
8794 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
8795 | |||
8796 | else | ||
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
8798 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
8799 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
8800 | $as_echo_n "(cached) " >&6 | ||
8801 | else | ||
8802 | ac_check_lib_save_LIBS=$LIBS | ||
8803 | LIBS="-lsocket $LIBS" | ||
8804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8805 | /* end confdefs.h. */ | ||
8806 | |||
8807 | /* Override any GCC internal prototype to avoid an error. | ||
8808 | Use char because int might match the return type of a GCC | ||
8809 | builtin and then its argument prototype would still apply. */ | ||
8810 | #ifdef __cplusplus | ||
8811 | extern "C" | ||
8812 | #endif | ||
8813 | char setsockopt (); | ||
8814 | int | ||
8815 | main () | ||
8816 | { | ||
8817 | return setsockopt (); | ||
8818 | ; | ||
8819 | return 0; | ||
8820 | } | ||
8821 | _ACEOF | ||
8822 | if ac_fn_c_try_link "$LINENO"; then : | ||
8823 | ac_cv_lib_socket_setsockopt=yes | ||
8824 | else | ||
8825 | ac_cv_lib_socket_setsockopt=no | ||
8826 | fi | ||
8827 | rm -f core conftest.err conftest.$ac_objext \ | ||
8828 | conftest$ac_exeext conftest.$ac_ext | ||
8829 | LIBS=$ac_check_lib_save_LIBS | ||
8830 | fi | ||
8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8832 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
8833 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
8834 | cat >>confdefs.h <<_ACEOF | ||
8835 | #define HAVE_LIBSOCKET 1 | ||
8836 | _ACEOF | ||
8837 | |||
8838 | LIBS="-lsocket $LIBS" | ||
8839 | |||
8840 | fi | ||
8841 | |||
8842 | fi | ||
8843 | |||
8844 | |||
8845 | for ac_func in dirname | ||
8846 | do : | ||
8847 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
8848 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
8849 | cat >>confdefs.h <<_ACEOF | ||
8850 | #define HAVE_DIRNAME 1 | ||
8851 | _ACEOF | ||
8852 | for ac_header in libgen.h | ||
8853 | do : | ||
8854 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8855 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8856 | cat >>confdefs.h <<_ACEOF | ||
8857 | #define HAVE_LIBGEN_H 1 | ||
8858 | _ACEOF | ||
8859 | |||
8860 | fi | ||
8861 | |||
8862 | done | ||
8863 | |||
8864 | else | ||
8865 | |||
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
8867 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
8868 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
8869 | $as_echo_n "(cached) " >&6 | ||
8870 | else | ||
8871 | ac_check_lib_save_LIBS=$LIBS | ||
8872 | LIBS="-lgen $LIBS" | ||
8873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8874 | /* end confdefs.h. */ | ||
8875 | |||
8876 | /* Override any GCC internal prototype to avoid an error. | ||
8877 | Use char because int might match the return type of a GCC | ||
8878 | builtin and then its argument prototype would still apply. */ | ||
8879 | #ifdef __cplusplus | ||
8880 | extern "C" | ||
8881 | #endif | ||
8882 | char dirname (); | ||
8883 | int | ||
8884 | main () | ||
8885 | { | ||
8886 | return dirname (); | ||
8887 | ; | ||
8888 | return 0; | ||
8889 | } | ||
8890 | _ACEOF | ||
8891 | if ac_fn_c_try_link "$LINENO"; then : | ||
8892 | ac_cv_lib_gen_dirname=yes | ||
8893 | else | ||
8894 | ac_cv_lib_gen_dirname=no | ||
8895 | fi | ||
8896 | rm -f core conftest.err conftest.$ac_objext \ | ||
8897 | conftest$ac_exeext conftest.$ac_ext | ||
8898 | LIBS=$ac_check_lib_save_LIBS | ||
8899 | fi | ||
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
8901 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
8902 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
8903 | |||
8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
8905 | $as_echo_n "checking for broken dirname... " >&6; } | ||
8906 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
8907 | $as_echo_n "(cached) " >&6 | ||
8908 | else | ||
8909 | |||
8910 | save_LIBS="$LIBS" | ||
8911 | LIBS="$LIBS -lgen" | ||
8912 | if test "$cross_compiling" = yes; then : | ||
8913 | ac_cv_have_broken_dirname="no" | ||
8914 | else | ||
8915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8916 | /* end confdefs.h. */ | ||
8917 | |||
8918 | #include <libgen.h> | ||
8919 | #include <string.h> | ||
8920 | |||
8921 | int main(int argc, char **argv) { | ||
8922 | char *s, buf[32]; | ||
8923 | |||
8924 | strncpy(buf,"/etc", 32); | ||
8925 | s = dirname(buf); | ||
8926 | if (!s || strncmp(s, "/", 32) != 0) { | ||
8927 | exit(1); | ||
8928 | } else { | ||
8929 | exit(0); | ||
8930 | } | ||
8931 | } | ||
8932 | |||
8933 | _ACEOF | ||
8934 | if ac_fn_c_try_run "$LINENO"; then : | ||
8935 | ac_cv_have_broken_dirname="no" | ||
8936 | else | ||
8937 | ac_cv_have_broken_dirname="yes" | ||
8938 | fi | ||
8939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8940 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8941 | fi | ||
8942 | |||
8943 | LIBS="$save_LIBS" | ||
8944 | |||
8945 | fi | ||
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
8947 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
8948 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
8949 | LIBS="$LIBS -lgen" | ||
8950 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
8951 | |||
8952 | for ac_header in libgen.h | ||
8953 | do : | ||
8954 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8955 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8956 | cat >>confdefs.h <<_ACEOF | ||
8957 | #define HAVE_LIBGEN_H 1 | ||
8958 | _ACEOF | ||
8959 | |||
8960 | fi | ||
8961 | |||
8962 | done | ||
8963 | |||
8964 | fi | ||
8965 | |||
8966 | fi | ||
8967 | |||
8968 | |||
8969 | fi | ||
8970 | done | ||
8971 | |||
8972 | |||
8973 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
8974 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
8975 | |||
8976 | else | ||
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
8978 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
8979 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
8980 | $as_echo_n "(cached) " >&6 | ||
8981 | else | ||
8982 | ac_check_lib_save_LIBS=$LIBS | ||
8983 | LIBS="-lgen $LIBS" | ||
8984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8985 | /* end confdefs.h. */ | ||
8986 | |||
8987 | /* Override any GCC internal prototype to avoid an error. | ||
8988 | Use char because int might match the return type of a GCC | ||
8989 | builtin and then its argument prototype would still apply. */ | ||
8990 | #ifdef __cplusplus | ||
8991 | extern "C" | ||
8992 | #endif | ||
8993 | char getspnam (); | ||
8994 | int | ||
8995 | main () | ||
8996 | { | ||
8997 | return getspnam (); | ||
8998 | ; | ||
8999 | return 0; | ||
9000 | } | ||
9001 | _ACEOF | ||
9002 | if ac_fn_c_try_link "$LINENO"; then : | ||
9003 | ac_cv_lib_gen_getspnam=yes | ||
9004 | else | ||
9005 | ac_cv_lib_gen_getspnam=no | ||
9006 | fi | ||
9007 | rm -f core conftest.err conftest.$ac_objext \ | ||
9008 | conftest$ac_exeext conftest.$ac_ext | ||
9009 | LIBS=$ac_check_lib_save_LIBS | ||
9010 | fi | ||
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
9012 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
9013 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
9014 | LIBS="$LIBS -lgen" | ||
9015 | fi | ||
9016 | |||
9017 | fi | ||
9018 | |||
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
9020 | $as_echo_n "checking for library containing basename... " >&6; } | ||
9021 | if ${ac_cv_search_basename+:} false; then : | ||
9022 | $as_echo_n "(cached) " >&6 | ||
9023 | else | ||
9024 | ac_func_search_save_LIBS=$LIBS | ||
9025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9026 | /* end confdefs.h. */ | ||
9027 | |||
9028 | /* Override any GCC internal prototype to avoid an error. | ||
9029 | Use char because int might match the return type of a GCC | ||
9030 | builtin and then its argument prototype would still apply. */ | ||
9031 | #ifdef __cplusplus | ||
9032 | extern "C" | ||
9033 | #endif | ||
9034 | char basename (); | ||
9035 | int | ||
9036 | main () | ||
9037 | { | ||
9038 | return basename (); | ||
9039 | ; | ||
9040 | return 0; | ||
9041 | } | ||
9042 | _ACEOF | ||
9043 | for ac_lib in '' gen; do | ||
9044 | if test -z "$ac_lib"; then | ||
9045 | ac_res="none required" | ||
9046 | else | ||
9047 | ac_res=-l$ac_lib | ||
9048 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9049 | fi | ||
9050 | if ac_fn_c_try_link "$LINENO"; then : | ||
9051 | ac_cv_search_basename=$ac_res | ||
9052 | fi | ||
9053 | rm -f core conftest.err conftest.$ac_objext \ | ||
9054 | conftest$ac_exeext | ||
9055 | if ${ac_cv_search_basename+:} false; then : | ||
9056 | break | ||
9057 | fi | ||
9058 | done | ||
9059 | if ${ac_cv_search_basename+:} false; then : | ||
9060 | |||
9061 | else | ||
9062 | ac_cv_search_basename=no | ||
9063 | fi | ||
9064 | rm conftest.$ac_ext | ||
9065 | LIBS=$ac_func_search_save_LIBS | ||
9066 | fi | ||
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
9068 | $as_echo "$ac_cv_search_basename" >&6; } | ||
9069 | ac_res=$ac_cv_search_basename | ||
9070 | if test "$ac_res" != no; then : | ||
9071 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9072 | |||
9073 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
9074 | |||
9075 | fi | ||
9076 | |||
9077 | |||
9078 | zlib=yes | ||
9079 | |||
9080 | # Check whether --with-zlib was given. | ||
9081 | if test "${with_zlib+set}" = set; then : | ||
9082 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
9083 | zlib=no | ||
9084 | elif test "x$withval" != "xyes"; then | ||
9085 | if test -d "$withval/lib"; then | ||
9086 | if test -n "${rpath_opt}"; then | ||
9087 | LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}" | ||
9088 | else | ||
9089 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9090 | fi | ||
9091 | else | ||
9092 | if test -n "${rpath_opt}"; then | ||
9093 | LDFLAGS="-L${withval} ${rpath_opt}${withval} ${LDFLAGS}" | ||
9094 | else | ||
9095 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9096 | fi | ||
9097 | fi | ||
9098 | if test -d "$withval/include"; then | ||
9099 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9100 | else | ||
9101 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9102 | fi | ||
9103 | fi | ||
9104 | |||
9105 | fi | ||
9106 | |||
9107 | |||
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 | ||
9109 | $as_echo_n "checking for zlib... " >&6; } | ||
9110 | if test "x${zlib}" = "xno"; then | ||
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9112 | $as_echo "no" >&6; } | ||
9113 | else | ||
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9115 | $as_echo "yes" >&6; } | ||
9116 | |||
9117 | $as_echo "#define WITH_ZLIB 1" >>confdefs.h | ||
9118 | |||
9119 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
9120 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
9121 | |||
9122 | else | ||
9123 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
9124 | fi | ||
9125 | |||
9126 | |||
9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
9128 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
9129 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
9130 | $as_echo_n "(cached) " >&6 | ||
9131 | else | ||
9132 | ac_check_lib_save_LIBS=$LIBS | ||
9133 | LIBS="-lz $LIBS" | ||
9134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9135 | /* end confdefs.h. */ | ||
9136 | |||
9137 | /* Override any GCC internal prototype to avoid an error. | ||
9138 | Use char because int might match the return type of a GCC | ||
9139 | builtin and then its argument prototype would still apply. */ | ||
9140 | #ifdef __cplusplus | ||
9141 | extern "C" | ||
9142 | #endif | ||
9143 | char deflate (); | ||
9144 | int | ||
9145 | main () | ||
9146 | { | ||
9147 | return deflate (); | ||
9148 | ; | ||
9149 | return 0; | ||
9150 | } | ||
9151 | _ACEOF | ||
9152 | if ac_fn_c_try_link "$LINENO"; then : | ||
9153 | ac_cv_lib_z_deflate=yes | ||
9154 | else | ||
9155 | ac_cv_lib_z_deflate=no | ||
9156 | fi | ||
9157 | rm -f core conftest.err conftest.$ac_objext \ | ||
9158 | conftest$ac_exeext conftest.$ac_ext | ||
9159 | LIBS=$ac_check_lib_save_LIBS | ||
9160 | fi | ||
9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
9162 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
9163 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
9164 | cat >>confdefs.h <<_ACEOF | ||
9165 | #define HAVE_LIBZ 1 | ||
9166 | _ACEOF | ||
9167 | |||
9168 | LIBS="-lz $LIBS" | ||
9169 | |||
9170 | else | ||
9171 | |||
9172 | saved_CPPFLAGS="$CPPFLAGS" | ||
9173 | saved_LDFLAGS="$LDFLAGS" | ||
9174 | save_LIBS="$LIBS" | ||
9175 | if test -n "${rpath_opt}"; then | ||
9176 | LDFLAGS="-L/usr/local/lib ${rpath_opt}/usr/local/lib ${saved_LDFLAGS}" | ||
9177 | else | ||
9178 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
9179 | fi | ||
9180 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
9181 | LIBS="$LIBS -lz" | ||
9182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9183 | /* end confdefs.h. */ | ||
9184 | |||
9185 | /* Override any GCC internal prototype to avoid an error. | ||
9186 | Use char because int might match the return type of a GCC | ||
9187 | builtin and then its argument prototype would still apply. */ | ||
9188 | #ifdef __cplusplus | ||
9189 | extern "C" | ||
9190 | #endif | ||
9191 | char deflate (); | ||
9192 | int | ||
9193 | main () | ||
9194 | { | ||
9195 | return deflate (); | ||
9196 | ; | ||
9197 | return 0; | ||
9198 | } | ||
9199 | _ACEOF | ||
9200 | if ac_fn_c_try_link "$LINENO"; then : | ||
9201 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
9202 | |||
9203 | else | ||
9204 | |||
9205 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
9206 | |||
9207 | |||
9208 | fi | ||
9209 | rm -f core conftest.err conftest.$ac_objext \ | ||
9210 | conftest$ac_exeext conftest.$ac_ext | ||
9211 | |||
9212 | |||
9213 | fi | ||
9214 | |||
9215 | |||
9216 | |||
9217 | # Check whether --with-zlib-version-check was given. | ||
9218 | if test "${with_zlib_version_check+set}" = set; then : | ||
9219 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
9220 | zlib_check_nonfatal=1 | ||
9221 | fi | ||
9222 | |||
9223 | |||
9224 | fi | ||
9225 | |||
9226 | |||
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
9228 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
9229 | if test "$cross_compiling" = yes; then : | ||
9230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
9231 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
9232 | |||
9233 | else | ||
9234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9235 | /* end confdefs.h. */ | ||
9236 | |||
9237 | #include <stdio.h> | ||
9238 | #include <stdlib.h> | ||
9239 | #include <zlib.h> | ||
9240 | |||
9241 | int | ||
9242 | main () | ||
9243 | { | ||
9244 | |||
9245 | int a=0, b=0, c=0, d=0, n, v; | ||
9246 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
9247 | if (n != 3 && n != 4) | ||
9248 | exit(1); | ||
9249 | v = a*1000000 + b*10000 + c*100 + d; | ||
9250 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
9251 | |||
9252 | /* 1.1.4 is OK */ | ||
9253 | if (a == 1 && b == 1 && c >= 4) | ||
9254 | exit(0); | ||
9255 | |||
9256 | /* 1.2.3 and up are OK */ | ||
9257 | if (v >= 1020300) | ||
9258 | exit(0); | ||
9259 | |||
9260 | exit(2); | ||
9261 | |||
9262 | ; | ||
9263 | return 0; | ||
9264 | } | ||
9265 | _ACEOF | ||
9266 | if ac_fn_c_try_run "$LINENO"; then : | ||
9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9268 | $as_echo "no" >&6; } | ||
9269 | else | ||
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9271 | $as_echo "yes" >&6; } | ||
9272 | if test -z "$zlib_check_nonfatal" ; then | ||
9273 | as_fn_error $? "*** zlib too old - check config.log *** | ||
9274 | Your reported zlib version has known security problems. It's possible your | ||
9275 | vendor has fixed these problems without changing the version number. If you | ||
9276 | are sure this is the case, you can disable the check by running | ||
9277 | \"./configure --without-zlib-version-check\". | ||
9278 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
9279 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
9280 | else | ||
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
9282 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
9283 | fi | ||
9284 | |||
9285 | fi | ||
9286 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9287 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9288 | fi | ||
9289 | |||
9290 | fi | ||
9291 | |||
9292 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
9293 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
9294 | |||
9295 | else | ||
9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
9297 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
9298 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
9299 | $as_echo_n "(cached) " >&6 | ||
9300 | else | ||
9301 | ac_check_lib_save_LIBS=$LIBS | ||
9302 | LIBS="-lresolv $LIBS" | ||
9303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9304 | /* end confdefs.h. */ | ||
9305 | |||
9306 | /* Override any GCC internal prototype to avoid an error. | ||
9307 | Use char because int might match the return type of a GCC | ||
9308 | builtin and then its argument prototype would still apply. */ | ||
9309 | #ifdef __cplusplus | ||
9310 | extern "C" | ||
9311 | #endif | ||
9312 | char strcasecmp (); | ||
9313 | int | ||
9314 | main () | ||
9315 | { | ||
9316 | return strcasecmp (); | ||
9317 | ; | ||
9318 | return 0; | ||
9319 | } | ||
9320 | _ACEOF | ||
9321 | if ac_fn_c_try_link "$LINENO"; then : | ||
9322 | ac_cv_lib_resolv_strcasecmp=yes | ||
9323 | else | ||
9324 | ac_cv_lib_resolv_strcasecmp=no | ||
9325 | fi | ||
9326 | rm -f core conftest.err conftest.$ac_objext \ | ||
9327 | conftest$ac_exeext conftest.$ac_ext | ||
9328 | LIBS=$ac_check_lib_save_LIBS | ||
9329 | fi | ||
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9331 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
9332 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
9333 | LIBS="$LIBS -lresolv" | ||
9334 | fi | ||
9335 | |||
9336 | |||
9337 | fi | ||
9338 | |||
9339 | for ac_func in utimes | ||
9340 | do : | ||
9341 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
9342 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
9343 | cat >>confdefs.h <<_ACEOF | ||
9344 | #define HAVE_UTIMES 1 | ||
9345 | _ACEOF | ||
9346 | |||
9347 | else | ||
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
9349 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
9350 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
9351 | $as_echo_n "(cached) " >&6 | ||
9352 | else | ||
9353 | ac_check_lib_save_LIBS=$LIBS | ||
9354 | LIBS="-lc89 $LIBS" | ||
9355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9356 | /* end confdefs.h. */ | ||
9357 | |||
9358 | /* Override any GCC internal prototype to avoid an error. | ||
9359 | Use char because int might match the return type of a GCC | ||
9360 | builtin and then its argument prototype would still apply. */ | ||
9361 | #ifdef __cplusplus | ||
9362 | extern "C" | ||
9363 | #endif | ||
9364 | char utimes (); | ||
9365 | int | ||
9366 | main () | ||
9367 | { | ||
9368 | return utimes (); | ||
9369 | ; | ||
9370 | return 0; | ||
9371 | } | ||
9372 | _ACEOF | ||
9373 | if ac_fn_c_try_link "$LINENO"; then : | ||
9374 | ac_cv_lib_c89_utimes=yes | ||
9375 | else | ||
9376 | ac_cv_lib_c89_utimes=no | ||
9377 | fi | ||
9378 | rm -f core conftest.err conftest.$ac_objext \ | ||
9379 | conftest$ac_exeext conftest.$ac_ext | ||
9380 | LIBS=$ac_check_lib_save_LIBS | ||
9381 | fi | ||
9382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
9383 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
9384 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
9385 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
9386 | |||
9387 | LIBS="$LIBS -lc89" | ||
9388 | fi | ||
9389 | |||
9390 | |||
9391 | fi | ||
9392 | done | ||
9393 | |||
9394 | |||
9395 | for ac_header in bsd/libutil.h libutil.h | ||
9396 | do : | ||
9397 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9398 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
9399 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
9400 | cat >>confdefs.h <<_ACEOF | ||
9401 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9402 | _ACEOF | ||
9403 | |||
9404 | fi | ||
9405 | |||
9406 | done | ||
9407 | |||
9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
9409 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
9410 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9411 | $as_echo_n "(cached) " >&6 | ||
9412 | else | ||
9413 | ac_func_search_save_LIBS=$LIBS | ||
9414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9415 | /* end confdefs.h. */ | ||
9416 | |||
9417 | /* Override any GCC internal prototype to avoid an error. | ||
9418 | Use char because int might match the return type of a GCC | ||
9419 | builtin and then its argument prototype would still apply. */ | ||
9420 | #ifdef __cplusplus | ||
9421 | extern "C" | ||
9422 | #endif | ||
9423 | char fmt_scaled (); | ||
9424 | int | ||
9425 | main () | ||
9426 | { | ||
9427 | return fmt_scaled (); | ||
9428 | ; | ||
9429 | return 0; | ||
9430 | } | ||
9431 | _ACEOF | ||
9432 | for ac_lib in '' util bsd; do | ||
9433 | if test -z "$ac_lib"; then | ||
9434 | ac_res="none required" | ||
9435 | else | ||
9436 | ac_res=-l$ac_lib | ||
9437 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9438 | fi | ||
9439 | if ac_fn_c_try_link "$LINENO"; then : | ||
9440 | ac_cv_search_fmt_scaled=$ac_res | ||
9441 | fi | ||
9442 | rm -f core conftest.err conftest.$ac_objext \ | ||
9443 | conftest$ac_exeext | ||
9444 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9445 | break | ||
9446 | fi | ||
9447 | done | ||
9448 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9449 | |||
9450 | else | ||
9451 | ac_cv_search_fmt_scaled=no | ||
9452 | fi | ||
9453 | rm conftest.$ac_ext | ||
9454 | LIBS=$ac_func_search_save_LIBS | ||
9455 | fi | ||
9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
9457 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
9458 | ac_res=$ac_cv_search_fmt_scaled | ||
9459 | if test "$ac_res" != no; then : | ||
9460 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9461 | |||
9462 | fi | ||
9463 | |||
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 | ||
9465 | $as_echo_n "checking for library containing scan_scaled... " >&6; } | ||
9466 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9467 | $as_echo_n "(cached) " >&6 | ||
9468 | else | ||
9469 | ac_func_search_save_LIBS=$LIBS | ||
9470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9471 | /* end confdefs.h. */ | ||
9472 | |||
9473 | /* Override any GCC internal prototype to avoid an error. | ||
9474 | Use char because int might match the return type of a GCC | ||
9475 | builtin and then its argument prototype would still apply. */ | ||
9476 | #ifdef __cplusplus | ||
9477 | extern "C" | ||
9478 | #endif | ||
9479 | char scan_scaled (); | ||
9480 | int | ||
9481 | main () | ||
9482 | { | ||
9483 | return scan_scaled (); | ||
9484 | ; | ||
9485 | return 0; | ||
9486 | } | ||
9487 | _ACEOF | ||
9488 | for ac_lib in '' util bsd; do | ||
9489 | if test -z "$ac_lib"; then | ||
9490 | ac_res="none required" | ||
9491 | else | ||
9492 | ac_res=-l$ac_lib | ||
9493 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9494 | fi | ||
9495 | if ac_fn_c_try_link "$LINENO"; then : | ||
9496 | ac_cv_search_scan_scaled=$ac_res | ||
9497 | fi | ||
9498 | rm -f core conftest.err conftest.$ac_objext \ | ||
9499 | conftest$ac_exeext | ||
9500 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9501 | break | ||
9502 | fi | ||
9503 | done | ||
9504 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9505 | |||
9506 | else | ||
9507 | ac_cv_search_scan_scaled=no | ||
9508 | fi | ||
9509 | rm conftest.$ac_ext | ||
9510 | LIBS=$ac_func_search_save_LIBS | ||
9511 | fi | ||
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 | ||
9513 | $as_echo "$ac_cv_search_scan_scaled" >&6; } | ||
9514 | ac_res=$ac_cv_search_scan_scaled | ||
9515 | if test "$ac_res" != no; then : | ||
9516 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9517 | |||
9518 | fi | ||
9519 | |||
9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
9521 | $as_echo_n "checking for library containing login... " >&6; } | ||
9522 | if ${ac_cv_search_login+:} false; then : | ||
9523 | $as_echo_n "(cached) " >&6 | ||
9524 | else | ||
9525 | ac_func_search_save_LIBS=$LIBS | ||
9526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9527 | /* end confdefs.h. */ | ||
9528 | |||
9529 | /* Override any GCC internal prototype to avoid an error. | ||
9530 | Use char because int might match the return type of a GCC | ||
9531 | builtin and then its argument prototype would still apply. */ | ||
9532 | #ifdef __cplusplus | ||
9533 | extern "C" | ||
9534 | #endif | ||
9535 | char login (); | ||
9536 | int | ||
9537 | main () | ||
9538 | { | ||
9539 | return login (); | ||
9540 | ; | ||
9541 | return 0; | ||
9542 | } | ||
9543 | _ACEOF | ||
9544 | for ac_lib in '' util bsd; do | ||
9545 | if test -z "$ac_lib"; then | ||
9546 | ac_res="none required" | ||
9547 | else | ||
9548 | ac_res=-l$ac_lib | ||
9549 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9550 | fi | ||
9551 | if ac_fn_c_try_link "$LINENO"; then : | ||
9552 | ac_cv_search_login=$ac_res | ||
9553 | fi | ||
9554 | rm -f core conftest.err conftest.$ac_objext \ | ||
9555 | conftest$ac_exeext | ||
9556 | if ${ac_cv_search_login+:} false; then : | ||
9557 | break | ||
9558 | fi | ||
9559 | done | ||
9560 | if ${ac_cv_search_login+:} false; then : | ||
9561 | |||
9562 | else | ||
9563 | ac_cv_search_login=no | ||
9564 | fi | ||
9565 | rm conftest.$ac_ext | ||
9566 | LIBS=$ac_func_search_save_LIBS | ||
9567 | fi | ||
9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
9569 | $as_echo "$ac_cv_search_login" >&6; } | ||
9570 | ac_res=$ac_cv_search_login | ||
9571 | if test "$ac_res" != no; then : | ||
9572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9573 | |||
9574 | fi | ||
9575 | |||
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
9577 | $as_echo_n "checking for library containing logout... " >&6; } | ||
9578 | if ${ac_cv_search_logout+:} false; then : | ||
9579 | $as_echo_n "(cached) " >&6 | ||
9580 | else | ||
9581 | ac_func_search_save_LIBS=$LIBS | ||
9582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9583 | /* end confdefs.h. */ | ||
9584 | |||
9585 | /* Override any GCC internal prototype to avoid an error. | ||
9586 | Use char because int might match the return type of a GCC | ||
9587 | builtin and then its argument prototype would still apply. */ | ||
9588 | #ifdef __cplusplus | ||
9589 | extern "C" | ||
9590 | #endif | ||
9591 | char logout (); | ||
9592 | int | ||
9593 | main () | ||
9594 | { | ||
9595 | return logout (); | ||
9596 | ; | ||
9597 | return 0; | ||
9598 | } | ||
9599 | _ACEOF | ||
9600 | for ac_lib in '' util bsd; do | ||
9601 | if test -z "$ac_lib"; then | ||
9602 | ac_res="none required" | ||
9603 | else | ||
9604 | ac_res=-l$ac_lib | ||
9605 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9606 | fi | ||
9607 | if ac_fn_c_try_link "$LINENO"; then : | ||
9608 | ac_cv_search_logout=$ac_res | ||
9609 | fi | ||
9610 | rm -f core conftest.err conftest.$ac_objext \ | ||
9611 | conftest$ac_exeext | ||
9612 | if ${ac_cv_search_logout+:} false; then : | ||
9613 | break | ||
9614 | fi | ||
9615 | done | ||
9616 | if ${ac_cv_search_logout+:} false; then : | ||
9617 | |||
9618 | else | ||
9619 | ac_cv_search_logout=no | ||
9620 | fi | ||
9621 | rm conftest.$ac_ext | ||
9622 | LIBS=$ac_func_search_save_LIBS | ||
9623 | fi | ||
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
9625 | $as_echo "$ac_cv_search_logout" >&6; } | ||
9626 | ac_res=$ac_cv_search_logout | ||
9627 | if test "$ac_res" != no; then : | ||
9628 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9629 | |||
9630 | fi | ||
9631 | |||
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
9633 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
9634 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9635 | $as_echo_n "(cached) " >&6 | ||
9636 | else | ||
9637 | ac_func_search_save_LIBS=$LIBS | ||
9638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9639 | /* end confdefs.h. */ | ||
9640 | |||
9641 | /* Override any GCC internal prototype to avoid an error. | ||
9642 | Use char because int might match the return type of a GCC | ||
9643 | builtin and then its argument prototype would still apply. */ | ||
9644 | #ifdef __cplusplus | ||
9645 | extern "C" | ||
9646 | #endif | ||
9647 | char logwtmp (); | ||
9648 | int | ||
9649 | main () | ||
9650 | { | ||
9651 | return logwtmp (); | ||
9652 | ; | ||
9653 | return 0; | ||
9654 | } | ||
9655 | _ACEOF | ||
9656 | for ac_lib in '' util bsd; do | ||
9657 | if test -z "$ac_lib"; then | ||
9658 | ac_res="none required" | ||
9659 | else | ||
9660 | ac_res=-l$ac_lib | ||
9661 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9662 | fi | ||
9663 | if ac_fn_c_try_link "$LINENO"; then : | ||
9664 | ac_cv_search_logwtmp=$ac_res | ||
9665 | fi | ||
9666 | rm -f core conftest.err conftest.$ac_objext \ | ||
9667 | conftest$ac_exeext | ||
9668 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9669 | break | ||
9670 | fi | ||
9671 | done | ||
9672 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9673 | |||
9674 | else | ||
9675 | ac_cv_search_logwtmp=no | ||
9676 | fi | ||
9677 | rm conftest.$ac_ext | ||
9678 | LIBS=$ac_func_search_save_LIBS | ||
9679 | fi | ||
9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
9681 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
9682 | ac_res=$ac_cv_search_logwtmp | ||
9683 | if test "$ac_res" != no; then : | ||
9684 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9685 | |||
9686 | fi | ||
9687 | |||
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
9689 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
9690 | if ${ac_cv_search_openpty+:} false; then : | ||
9691 | $as_echo_n "(cached) " >&6 | ||
9692 | else | ||
9693 | ac_func_search_save_LIBS=$LIBS | ||
9694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9695 | /* end confdefs.h. */ | ||
9696 | |||
9697 | /* Override any GCC internal prototype to avoid an error. | ||
9698 | Use char because int might match the return type of a GCC | ||
9699 | builtin and then its argument prototype would still apply. */ | ||
9700 | #ifdef __cplusplus | ||
9701 | extern "C" | ||
9702 | #endif | ||
9703 | char openpty (); | ||
9704 | int | ||
9705 | main () | ||
9706 | { | ||
9707 | return openpty (); | ||
9708 | ; | ||
9709 | return 0; | ||
9710 | } | ||
9711 | _ACEOF | ||
9712 | for ac_lib in '' util bsd; do | ||
9713 | if test -z "$ac_lib"; then | ||
9714 | ac_res="none required" | ||
9715 | else | ||
9716 | ac_res=-l$ac_lib | ||
9717 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9718 | fi | ||
9719 | if ac_fn_c_try_link "$LINENO"; then : | ||
9720 | ac_cv_search_openpty=$ac_res | ||
9721 | fi | ||
9722 | rm -f core conftest.err conftest.$ac_objext \ | ||
9723 | conftest$ac_exeext | ||
9724 | if ${ac_cv_search_openpty+:} false; then : | ||
9725 | break | ||
9726 | fi | ||
9727 | done | ||
9728 | if ${ac_cv_search_openpty+:} false; then : | ||
9729 | |||
9730 | else | ||
9731 | ac_cv_search_openpty=no | ||
9732 | fi | ||
9733 | rm conftest.$ac_ext | ||
9734 | LIBS=$ac_func_search_save_LIBS | ||
9735 | fi | ||
9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
9737 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
9738 | ac_res=$ac_cv_search_openpty | ||
9739 | if test "$ac_res" != no; then : | ||
9740 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9741 | |||
9742 | fi | ||
9743 | |||
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
9745 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
9746 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9747 | $as_echo_n "(cached) " >&6 | ||
9748 | else | ||
9749 | ac_func_search_save_LIBS=$LIBS | ||
9750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9751 | /* end confdefs.h. */ | ||
9752 | |||
9753 | /* Override any GCC internal prototype to avoid an error. | ||
9754 | Use char because int might match the return type of a GCC | ||
9755 | builtin and then its argument prototype would still apply. */ | ||
9756 | #ifdef __cplusplus | ||
9757 | extern "C" | ||
9758 | #endif | ||
9759 | char updwtmp (); | ||
9760 | int | ||
9761 | main () | ||
9762 | { | ||
9763 | return updwtmp (); | ||
9764 | ; | ||
9765 | return 0; | ||
9766 | } | ||
9767 | _ACEOF | ||
9768 | for ac_lib in '' util bsd; do | ||
9769 | if test -z "$ac_lib"; then | ||
9770 | ac_res="none required" | ||
9771 | else | ||
9772 | ac_res=-l$ac_lib | ||
9773 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9774 | fi | ||
9775 | if ac_fn_c_try_link "$LINENO"; then : | ||
9776 | ac_cv_search_updwtmp=$ac_res | ||
9777 | fi | ||
9778 | rm -f core conftest.err conftest.$ac_objext \ | ||
9779 | conftest$ac_exeext | ||
9780 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9781 | break | ||
9782 | fi | ||
9783 | done | ||
9784 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9785 | |||
9786 | else | ||
9787 | ac_cv_search_updwtmp=no | ||
9788 | fi | ||
9789 | rm conftest.$ac_ext | ||
9790 | LIBS=$ac_func_search_save_LIBS | ||
9791 | fi | ||
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
9793 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
9794 | ac_res=$ac_cv_search_updwtmp | ||
9795 | if test "$ac_res" != no; then : | ||
9796 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9797 | |||
9798 | fi | ||
9799 | |||
9800 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
9801 | do : | ||
9802 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9803 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9804 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9805 | cat >>confdefs.h <<_ACEOF | ||
9806 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9807 | _ACEOF | ||
9808 | |||
9809 | fi | ||
9810 | done | ||
9811 | |||
9812 | |||
9813 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv | ||
9814 | # or libnsl. | ||
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 | ||
9816 | $as_echo_n "checking for library containing inet_ntop... " >&6; } | ||
9817 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9818 | $as_echo_n "(cached) " >&6 | ||
9819 | else | ||
9820 | ac_func_search_save_LIBS=$LIBS | ||
9821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9822 | /* end confdefs.h. */ | ||
9823 | |||
9824 | /* Override any GCC internal prototype to avoid an error. | ||
9825 | Use char because int might match the return type of a GCC | ||
9826 | builtin and then its argument prototype would still apply. */ | ||
9827 | #ifdef __cplusplus | ||
9828 | extern "C" | ||
9829 | #endif | ||
9830 | char inet_ntop (); | ||
9831 | int | ||
9832 | main () | ||
9833 | { | ||
9834 | return inet_ntop (); | ||
9835 | ; | ||
9836 | return 0; | ||
9837 | } | ||
9838 | _ACEOF | ||
9839 | for ac_lib in '' resolv nsl; do | ||
9840 | if test -z "$ac_lib"; then | ||
9841 | ac_res="none required" | ||
9842 | else | ||
9843 | ac_res=-l$ac_lib | ||
9844 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9845 | fi | ||
9846 | if ac_fn_c_try_link "$LINENO"; then : | ||
9847 | ac_cv_search_inet_ntop=$ac_res | ||
9848 | fi | ||
9849 | rm -f core conftest.err conftest.$ac_objext \ | ||
9850 | conftest$ac_exeext | ||
9851 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9852 | break | ||
9853 | fi | ||
9854 | done | ||
9855 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9856 | |||
9857 | else | ||
9858 | ac_cv_search_inet_ntop=no | ||
9859 | fi | ||
9860 | rm conftest.$ac_ext | ||
9861 | LIBS=$ac_func_search_save_LIBS | ||
9862 | fi | ||
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 | ||
9864 | $as_echo "$ac_cv_search_inet_ntop" >&6; } | ||
9865 | ac_res=$ac_cv_search_inet_ntop | ||
9866 | if test "$ac_res" != no; then : | ||
9867 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9868 | |||
9869 | fi | ||
9870 | |||
9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | ||
9872 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | ||
9873 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9874 | $as_echo_n "(cached) " >&6 | ||
9875 | else | ||
9876 | ac_func_search_save_LIBS=$LIBS | ||
9877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9878 | /* end confdefs.h. */ | ||
9879 | |||
9880 | /* Override any GCC internal prototype to avoid an error. | ||
9881 | Use char because int might match the return type of a GCC | ||
9882 | builtin and then its argument prototype would still apply. */ | ||
9883 | #ifdef __cplusplus | ||
9884 | extern "C" | ||
9885 | #endif | ||
9886 | char gethostbyname (); | ||
9887 | int | ||
9888 | main () | ||
9889 | { | ||
9890 | return gethostbyname (); | ||
9891 | ; | ||
9892 | return 0; | ||
9893 | } | ||
9894 | _ACEOF | ||
9895 | for ac_lib in '' resolv nsl; do | ||
9896 | if test -z "$ac_lib"; then | ||
9897 | ac_res="none required" | ||
9898 | else | ||
9899 | ac_res=-l$ac_lib | ||
9900 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9901 | fi | ||
9902 | if ac_fn_c_try_link "$LINENO"; then : | ||
9903 | ac_cv_search_gethostbyname=$ac_res | ||
9904 | fi | ||
9905 | rm -f core conftest.err conftest.$ac_objext \ | ||
9906 | conftest$ac_exeext | ||
9907 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9908 | break | ||
9909 | fi | ||
9910 | done | ||
9911 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9912 | |||
9913 | else | ||
9914 | ac_cv_search_gethostbyname=no | ||
9915 | fi | ||
9916 | rm conftest.$ac_ext | ||
9917 | LIBS=$ac_func_search_save_LIBS | ||
9918 | fi | ||
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | ||
9920 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | ||
9921 | ac_res=$ac_cv_search_gethostbyname | ||
9922 | if test "$ac_res" != no; then : | ||
9923 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9924 | |||
9925 | fi | ||
9926 | |||
9927 | |||
9928 | # "Particular Function Checks" | ||
9929 | # see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html | ||
9930 | for ac_func in strftime | ||
9931 | do : | ||
9932 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
9933 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
9934 | cat >>confdefs.h <<_ACEOF | ||
9935 | #define HAVE_STRFTIME 1 | ||
9936 | _ACEOF | ||
9937 | |||
9938 | else | ||
9939 | # strftime is in -lintl on SCO UNIX. | ||
9940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
9941 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
9942 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
9943 | $as_echo_n "(cached) " >&6 | ||
9944 | else | ||
9945 | ac_check_lib_save_LIBS=$LIBS | ||
9946 | LIBS="-lintl $LIBS" | ||
9947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9948 | /* end confdefs.h. */ | ||
9949 | |||
9950 | /* Override any GCC internal prototype to avoid an error. | ||
9951 | Use char because int might match the return type of a GCC | ||
9952 | builtin and then its argument prototype would still apply. */ | ||
9953 | #ifdef __cplusplus | ||
9954 | extern "C" | ||
9955 | #endif | ||
9956 | char strftime (); | ||
9957 | int | ||
9958 | main () | ||
9959 | { | ||
9960 | return strftime (); | ||
9961 | ; | ||
9962 | return 0; | ||
9963 | } | ||
9964 | _ACEOF | ||
9965 | if ac_fn_c_try_link "$LINENO"; then : | ||
9966 | ac_cv_lib_intl_strftime=yes | ||
9967 | else | ||
9968 | ac_cv_lib_intl_strftime=no | ||
9969 | fi | ||
9970 | rm -f core conftest.err conftest.$ac_objext \ | ||
9971 | conftest$ac_exeext conftest.$ac_ext | ||
9972 | LIBS=$ac_check_lib_save_LIBS | ||
9973 | fi | ||
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
9975 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
9976 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
9977 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
9978 | |||
9979 | LIBS="-lintl $LIBS" | ||
9980 | fi | ||
9981 | |||
9982 | fi | ||
9983 | done | ||
9984 | |||
9985 | for ac_header in stdlib.h | ||
9986 | do : | ||
9987 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
9988 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
9989 | cat >>confdefs.h <<_ACEOF | ||
9990 | #define HAVE_STDLIB_H 1 | ||
9991 | _ACEOF | ||
9992 | |||
9993 | fi | ||
9994 | |||
9995 | done | ||
9996 | |||
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 | ||
9998 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | ||
9999 | if ${ac_cv_func_malloc_0_nonnull+:} false; then : | ||
10000 | $as_echo_n "(cached) " >&6 | ||
10001 | else | ||
10002 | if test "$cross_compiling" = yes; then : | ||
10003 | ac_cv_func_malloc_0_nonnull=no | ||
10004 | else | ||
10005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10006 | /* end confdefs.h. */ | ||
10007 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
10008 | # include <stdlib.h> | ||
10009 | #else | ||
10010 | char *malloc (); | ||
10011 | #endif | ||
10012 | |||
10013 | int | ||
10014 | main () | ||
10015 | { | ||
10016 | return ! malloc (0); | ||
10017 | ; | ||
10018 | return 0; | ||
10019 | } | ||
10020 | _ACEOF | ||
10021 | if ac_fn_c_try_run "$LINENO"; then : | ||
10022 | ac_cv_func_malloc_0_nonnull=yes | ||
10023 | else | ||
10024 | ac_cv_func_malloc_0_nonnull=no | ||
10025 | fi | ||
10026 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10027 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10028 | fi | ||
10029 | |||
10030 | fi | ||
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 | ||
10032 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | ||
10033 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | ||
10034 | |||
10035 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h | ||
10036 | |||
10037 | else | ||
10038 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | ||
10039 | |||
10040 | case " $LIBOBJS " in | ||
10041 | *" malloc.$ac_objext "* ) ;; | ||
10042 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | ||
10043 | ;; | ||
10044 | esac | ||
10045 | |||
10046 | |||
10047 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | ||
10048 | |||
10049 | fi | ||
10050 | |||
10051 | |||
10052 | for ac_header in stdlib.h | ||
10053 | do : | ||
10054 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
10055 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
10056 | cat >>confdefs.h <<_ACEOF | ||
10057 | #define HAVE_STDLIB_H 1 | ||
10058 | _ACEOF | ||
10059 | |||
10060 | fi | ||
10061 | |||
10062 | done | ||
10063 | |||
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | ||
10065 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | ||
10066 | if ${ac_cv_func_realloc_0_nonnull+:} false; then : | ||
10067 | $as_echo_n "(cached) " >&6 | ||
10068 | else | ||
10069 | if test "$cross_compiling" = yes; then : | ||
10070 | ac_cv_func_realloc_0_nonnull=no | ||
10071 | else | ||
10072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10073 | /* end confdefs.h. */ | ||
10074 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
10075 | # include <stdlib.h> | ||
10076 | #else | ||
10077 | char *realloc (); | ||
10078 | #endif | ||
10079 | |||
10080 | int | ||
10081 | main () | ||
10082 | { | ||
10083 | return ! realloc (0, 0); | ||
10084 | ; | ||
10085 | return 0; | ||
10086 | } | ||
10087 | _ACEOF | ||
10088 | if ac_fn_c_try_run "$LINENO"; then : | ||
10089 | ac_cv_func_realloc_0_nonnull=yes | ||
10090 | else | ||
10091 | ac_cv_func_realloc_0_nonnull=no | ||
10092 | fi | ||
10093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10094 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10095 | fi | ||
10096 | |||
10097 | fi | ||
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | ||
10099 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | ||
10100 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | ||
10101 | |||
10102 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h | ||
10103 | |||
10104 | else | ||
10105 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h | ||
10106 | |||
10107 | case " $LIBOBJS " in | ||
10108 | *" realloc.$ac_objext "* ) ;; | ||
10109 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | ||
10110 | ;; | ||
10111 | esac | ||
10112 | |||
10113 | |||
10114 | $as_echo "#define realloc rpl_realloc" >>confdefs.h | ||
10115 | |||
10116 | fi | ||
10117 | |||
10118 | |||
10119 | # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL; | ||
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5 | ||
10121 | $as_echo_n "checking if calloc(0, N) returns non-null... " >&6; } | ||
10122 | if test "$cross_compiling" = yes; then : | ||
10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5 | ||
10124 | $as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;} | ||
10125 | func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull" | ||
10126 | |||
10127 | else | ||
10128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10129 | /* end confdefs.h. */ | ||
10130 | #include <stdlib.h> | ||
10131 | int | ||
10132 | main () | ||
10133 | { | ||
10134 | void *p = calloc(0, 1); exit(p == NULL); | ||
10135 | |||
10136 | ; | ||
10137 | return 0; | ||
10138 | } | ||
10139 | _ACEOF | ||
10140 | if ac_fn_c_try_run "$LINENO"; then : | ||
10141 | func_calloc_0_nonnull=yes | ||
10142 | else | ||
10143 | func_calloc_0_nonnull=no | ||
10144 | fi | ||
10145 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10146 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10147 | fi | ||
10148 | |||
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5 | ||
10150 | $as_echo "$func_calloc_0_nonnull" >&6; } | ||
10151 | |||
10152 | if test "x$func_calloc_0_nonnull" = "xyes"; then | ||
10153 | |||
10154 | $as_echo "#define HAVE_CALLOC 1" >>confdefs.h | ||
10155 | |||
10156 | else | ||
10157 | |||
10158 | $as_echo "#define HAVE_CALLOC 0" >>confdefs.h | ||
10159 | |||
10160 | |||
10161 | $as_echo "#define calloc rpl_calloc" >>confdefs.h | ||
10162 | |||
10163 | fi | ||
10164 | |||
10165 | # Check for ALTDIRFUNC glob() extension | ||
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
10167 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
10168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10169 | /* end confdefs.h. */ | ||
10170 | |||
10171 | #include <glob.h> | ||
10172 | #ifdef GLOB_ALTDIRFUNC | ||
10173 | FOUNDIT | ||
10174 | #endif | ||
10175 | |||
10176 | _ACEOF | ||
10177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
10178 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
10179 | |||
10180 | |||
10181 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
10182 | |||
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10184 | $as_echo "yes" >&6; } | ||
10185 | |||
10186 | else | ||
10187 | |||
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10189 | $as_echo "no" >&6; } | ||
10190 | |||
10191 | |||
10192 | fi | ||
10193 | rm -f conftest* | ||
10194 | |||
10195 | |||
10196 | # Check for g.gl_matchc glob() extension | ||
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
10198 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
10199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10200 | /* end confdefs.h. */ | ||
10201 | #include <glob.h> | ||
10202 | int | ||
10203 | main () | ||
10204 | { | ||
10205 | glob_t g; g.gl_matchc = 1; | ||
10206 | ; | ||
10207 | return 0; | ||
10208 | } | ||
10209 | _ACEOF | ||
10210 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10211 | |||
10212 | |||
10213 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
10214 | |||
10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10216 | $as_echo "yes" >&6; } | ||
10217 | |||
10218 | else | ||
10219 | |||
10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10221 | $as_echo "no" >&6; } | ||
10222 | |||
10223 | fi | ||
10224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10225 | |||
10226 | # Check for g.gl_statv glob() extension | ||
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
10228 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
10229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10230 | /* end confdefs.h. */ | ||
10231 | #include <glob.h> | ||
10232 | int | ||
10233 | main () | ||
10234 | { | ||
10235 | |||
10236 | #ifndef GLOB_KEEPSTAT | ||
10237 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
10238 | #endif | ||
10239 | glob_t g; | ||
10240 | g.gl_statv = NULL; | ||
10241 | |||
10242 | ; | ||
10243 | return 0; | ||
10244 | } | ||
10245 | _ACEOF | ||
10246 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10247 | |||
10248 | |||
10249 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
10250 | |||
10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10252 | $as_echo "yes" >&6; } | ||
10253 | |||
10254 | else | ||
10255 | |||
10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10257 | $as_echo "no" >&6; } | ||
10258 | |||
10259 | |||
10260 | fi | ||
10261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10262 | |||
10263 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
10264 | " | ||
10265 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
10266 | ac_have_decl=1 | ||
10267 | else | ||
10268 | ac_have_decl=0 | ||
10269 | fi | ||
10270 | |||
10271 | cat >>confdefs.h <<_ACEOF | ||
10272 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
10273 | _ACEOF | ||
10274 | |||
10275 | |||
10276 | ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> | ||
10277 | " | ||
10278 | if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : | ||
10279 | |||
10280 | else | ||
10281 | |||
10282 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
10283 | |||
10284 | fi | ||
10285 | |||
10286 | |||
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
10288 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
10289 | if test "$cross_compiling" = yes; then : | ||
10290 | |||
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
10292 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
10293 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10294 | |||
10295 | |||
10296 | |||
10297 | else | ||
10298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10299 | /* end confdefs.h. */ | ||
10300 | |||
10301 | #include <sys/types.h> | ||
10302 | #include <dirent.h> | ||
10303 | int | ||
10304 | main () | ||
10305 | { | ||
10306 | |||
10307 | struct dirent d; | ||
10308 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
10309 | |||
10310 | ; | ||
10311 | return 0; | ||
10312 | } | ||
10313 | _ACEOF | ||
10314 | if ac_fn_c_try_run "$LINENO"; then : | ||
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10316 | $as_echo "yes" >&6; } | ||
10317 | else | ||
10318 | |||
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10320 | $as_echo "no" >&6; } | ||
10321 | |||
10322 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10323 | |||
10324 | |||
10325 | fi | ||
10326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10327 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10328 | fi | ||
10329 | |||
10330 | |||
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
10332 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
10333 | if test -d "/proc/$$/fd" ; then | ||
10334 | |||
10335 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
10336 | |||
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10338 | $as_echo "yes" >&6; } | ||
10339 | else | ||
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10341 | $as_echo "no" >&6; } | ||
10342 | fi | ||
10343 | |||
10344 | # Check whether user wants to use ldns | ||
10345 | LDNS_MSG="no" | ||
10346 | |||
10347 | # Check whether --with-ldns was given. | ||
10348 | if test "${with_ldns+set}" = set; then : | ||
10349 | withval=$with_ldns; | ||
10350 | ldns="" | ||
10351 | if test "x$withval" = "xyes" ; then | ||
10352 | if test -n "$ac_tool_prefix"; then | ||
10353 | # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args. | ||
10354 | set dummy ${ac_tool_prefix}ldns-config; ac_word=$2 | ||
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10356 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10357 | if ${ac_cv_path_LDNSCONFIG+:} false; then : | ||
10358 | $as_echo_n "(cached) " >&6 | ||
10359 | else | ||
10360 | case $LDNSCONFIG in | ||
10361 | [\\/]* | ?:[\\/]*) | ||
10362 | ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path. | ||
10363 | ;; | ||
10364 | *) | ||
10365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10366 | for as_dir in $PATH | ||
10367 | do | ||
10368 | IFS=$as_save_IFS | ||
10369 | test -z "$as_dir" && as_dir=. | ||
10370 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10372 | ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10374 | break 2 | ||
10375 | fi | ||
10376 | done | ||
10377 | done | ||
10378 | IFS=$as_save_IFS | ||
10379 | |||
10380 | ;; | ||
10381 | esac | ||
10382 | fi | ||
10383 | LDNSCONFIG=$ac_cv_path_LDNSCONFIG | ||
10384 | if test -n "$LDNSCONFIG"; then | ||
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5 | ||
10386 | $as_echo "$LDNSCONFIG" >&6; } | ||
10387 | else | ||
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10389 | $as_echo "no" >&6; } | ||
10390 | fi | ||
10391 | |||
10392 | |||
10393 | fi | ||
10394 | if test -z "$ac_cv_path_LDNSCONFIG"; then | ||
10395 | ac_pt_LDNSCONFIG=$LDNSCONFIG | ||
10396 | # Extract the first word of "ldns-config", so it can be a program name with args. | ||
10397 | set dummy ldns-config; ac_word=$2 | ||
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10399 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10400 | if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then : | ||
10401 | $as_echo_n "(cached) " >&6 | ||
10402 | else | ||
10403 | case $ac_pt_LDNSCONFIG in | ||
10404 | [\\/]* | ?:[\\/]*) | ||
10405 | ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path. | ||
10406 | ;; | ||
10407 | *) | ||
10408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10409 | for as_dir in $PATH | ||
10410 | do | ||
10411 | IFS=$as_save_IFS | ||
10412 | test -z "$as_dir" && as_dir=. | ||
10413 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10415 | ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10417 | break 2 | ||
10418 | fi | ||
10419 | done | ||
10420 | done | ||
10421 | IFS=$as_save_IFS | ||
10422 | |||
10423 | ;; | ||
10424 | esac | ||
10425 | fi | ||
10426 | ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG | ||
10427 | if test -n "$ac_pt_LDNSCONFIG"; then | ||
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5 | ||
10429 | $as_echo "$ac_pt_LDNSCONFIG" >&6; } | ||
10430 | else | ||
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10432 | $as_echo "no" >&6; } | ||
10433 | fi | ||
10434 | |||
10435 | if test "x$ac_pt_LDNSCONFIG" = x; then | ||
10436 | LDNSCONFIG="no" | ||
10437 | else | ||
10438 | case $cross_compiling:$ac_tool_warned in | ||
10439 | yes:) | ||
10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10442 | ac_tool_warned=yes ;; | ||
10443 | esac | ||
10444 | LDNSCONFIG=$ac_pt_LDNSCONFIG | ||
10445 | fi | ||
10446 | else | ||
10447 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" | ||
10448 | fi | ||
10449 | |||
10450 | if test "x$LDNSCONFIG" = "xno"; then | ||
10451 | LIBS="-lldns $LIBS" | ||
10452 | ldns=yes | ||
10453 | else | ||
10454 | LIBS="$LIBS `$LDNSCONFIG --libs`" | ||
10455 | CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`" | ||
10456 | ldns=yes | ||
10457 | fi | ||
10458 | elif test "x$withval" != "xno" ; then | ||
10459 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10460 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10461 | LIBS="-lldns $LIBS" | ||
10462 | ldns=yes | ||
10463 | fi | ||
10464 | |||
10465 | # Verify that it works. | ||
10466 | if test "x$ldns" = "xyes" ; then | ||
10467 | |||
10468 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
10469 | |||
10470 | LDNS_MSG="yes" | ||
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
10472 | $as_echo_n "checking for ldns support... " >&6; } | ||
10473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10474 | /* end confdefs.h. */ | ||
10475 | |||
10476 | #include <stdio.h> | ||
10477 | #include <stdlib.h> | ||
10478 | #ifdef HAVE_STDINT_H | ||
10479 | # include <stdint.h> | ||
10480 | #endif | ||
10481 | #include <ldns/ldns.h> | ||
10482 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
10483 | |||
10484 | |||
10485 | _ACEOF | ||
10486 | if ac_fn_c_try_link "$LINENO"; then : | ||
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10488 | $as_echo "yes" >&6; } | ||
10489 | else | ||
10490 | |||
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10492 | $as_echo "no" >&6; } | ||
10493 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
10494 | |||
10495 | fi | ||
10496 | rm -f core conftest.err conftest.$ac_objext \ | ||
10497 | conftest$ac_exeext conftest.$ac_ext | ||
10498 | fi | ||
10499 | |||
10500 | fi | ||
10501 | |||
10502 | |||
10503 | # Check whether user wants libedit support | ||
10504 | LIBEDIT_MSG="no" | ||
10505 | |||
10506 | # Check whether --with-libedit was given. | ||
10507 | if test "${with_libedit+set}" = set; then : | ||
10508 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
10509 | if test "x$withval" = "xyes" ; then | ||
10510 | if test -n "$ac_tool_prefix"; then | ||
10511 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
10512 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10514 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10515 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
10516 | $as_echo_n "(cached) " >&6 | ||
10517 | else | ||
10518 | case $PKGCONFIG in | ||
10519 | [\\/]* | ?:[\\/]*) | ||
10520 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
10521 | ;; | ||
10522 | *) | ||
10523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10524 | for as_dir in $PATH | ||
10525 | do | ||
10526 | IFS=$as_save_IFS | ||
10527 | test -z "$as_dir" && as_dir=. | ||
10528 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10530 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10532 | break 2 | ||
10533 | fi | ||
10534 | done | ||
10535 | done | ||
10536 | IFS=$as_save_IFS | ||
10537 | |||
10538 | ;; | ||
10539 | esac | ||
10540 | fi | ||
10541 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
10542 | if test -n "$PKGCONFIG"; then | ||
10543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
10544 | $as_echo "$PKGCONFIG" >&6; } | ||
10545 | else | ||
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10547 | $as_echo "no" >&6; } | ||
10548 | fi | ||
10549 | |||
10550 | |||
10551 | fi | ||
10552 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
10553 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
10554 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
10555 | set dummy pkg-config; ac_word=$2 | ||
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10557 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10558 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
10559 | $as_echo_n "(cached) " >&6 | ||
10560 | else | ||
10561 | case $ac_pt_PKGCONFIG in | ||
10562 | [\\/]* | ?:[\\/]*) | ||
10563 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
10564 | ;; | ||
10565 | *) | ||
10566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10567 | for as_dir in $PATH | ||
10568 | do | ||
10569 | IFS=$as_save_IFS | ||
10570 | test -z "$as_dir" && as_dir=. | ||
10571 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10573 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10575 | break 2 | ||
10576 | fi | ||
10577 | done | ||
10578 | done | ||
10579 | IFS=$as_save_IFS | ||
10580 | |||
10581 | ;; | ||
10582 | esac | ||
10583 | fi | ||
10584 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
10585 | if test -n "$ac_pt_PKGCONFIG"; then | ||
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
10587 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
10588 | else | ||
10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10590 | $as_echo "no" >&6; } | ||
10591 | fi | ||
10592 | |||
10593 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
10594 | PKGCONFIG="no" | ||
10595 | else | ||
10596 | case $cross_compiling:$ac_tool_warned in | ||
10597 | yes:) | ||
10598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10599 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10600 | ac_tool_warned=yes ;; | ||
10601 | esac | ||
10602 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
10603 | fi | ||
10604 | else | ||
10605 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
10606 | fi | ||
10607 | |||
10608 | if test "x$PKGCONFIG" != "xno"; then | ||
10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
10610 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
10611 | if "$PKGCONFIG" libedit; then | ||
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10613 | $as_echo "yes" >&6; } | ||
10614 | use_pkgconfig_for_libedit=yes | ||
10615 | else | ||
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10617 | $as_echo "no" >&6; } | ||
10618 | fi | ||
10619 | fi | ||
10620 | else | ||
10621 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10622 | if test -n "${rpath_opt}"; then | ||
10623 | LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}" | ||
10624 | else | ||
10625 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10626 | fi | ||
10627 | fi | ||
10628 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
10629 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
10630 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
10631 | else | ||
10632 | LIBEDIT="-ledit -lcurses" | ||
10633 | fi | ||
10634 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
10636 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
10637 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
10638 | $as_echo_n "(cached) " >&6 | ||
10639 | else | ||
10640 | ac_check_lib_save_LIBS=$LIBS | ||
10641 | LIBS="-ledit $OTHERLIBS | ||
10642 | $LIBS" | ||
10643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10644 | /* end confdefs.h. */ | ||
10645 | |||
10646 | /* Override any GCC internal prototype to avoid an error. | ||
10647 | Use char because int might match the return type of a GCC | ||
10648 | builtin and then its argument prototype would still apply. */ | ||
10649 | #ifdef __cplusplus | ||
10650 | extern "C" | ||
10651 | #endif | ||
10652 | char el_init (); | ||
10653 | int | ||
10654 | main () | ||
10655 | { | ||
10656 | return el_init (); | ||
10657 | ; | ||
10658 | return 0; | ||
10659 | } | ||
10660 | _ACEOF | ||
10661 | if ac_fn_c_try_link "$LINENO"; then : | ||
10662 | ac_cv_lib_edit_el_init=yes | ||
10663 | else | ||
10664 | ac_cv_lib_edit_el_init=no | ||
10665 | fi | ||
10666 | rm -f core conftest.err conftest.$ac_objext \ | ||
10667 | conftest$ac_exeext conftest.$ac_ext | ||
10668 | LIBS=$ac_check_lib_save_LIBS | ||
10669 | fi | ||
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
10671 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
10672 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
10673 | |||
10674 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
10675 | |||
10676 | LIBEDIT_MSG="yes" | ||
10677 | |||
10678 | |||
10679 | else | ||
10680 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
10681 | fi | ||
10682 | |||
10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
10684 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
10685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10686 | /* end confdefs.h. */ | ||
10687 | #include <histedit.h> | ||
10688 | int | ||
10689 | main () | ||
10690 | { | ||
10691 | |||
10692 | int i = H_SETSIZE; | ||
10693 | el_init("", NULL, NULL, NULL); | ||
10694 | exit(0); | ||
10695 | |||
10696 | ; | ||
10697 | return 0; | ||
10698 | } | ||
10699 | _ACEOF | ||
10700 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10702 | $as_echo "yes" >&6; } | ||
10703 | else | ||
10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10705 | $as_echo "no" >&6; } | ||
10706 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
10707 | |||
10708 | fi | ||
10709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10710 | fi | ||
10711 | |||
10712 | fi | ||
10713 | |||
10714 | |||
10715 | AUDIT_MODULE=none | ||
10716 | |||
10717 | # Check whether --with-audit was given. | ||
10718 | if test "${with_audit+set}" = set; then : | ||
10719 | withval=$with_audit; | ||
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
10721 | $as_echo_n "checking for supported audit module... " >&6; } | ||
10722 | case "$withval" in | ||
10723 | bsm) | ||
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
10725 | $as_echo "bsm" >&6; } | ||
10726 | AUDIT_MODULE=bsm | ||
10727 | for ac_header in bsm/audit.h | ||
10728 | do : | ||
10729 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
10730 | #ifdef HAVE_TIME_H | ||
10731 | # include <time.h> | ||
10732 | #endif | ||
10733 | |||
10734 | |||
10735 | " | ||
10736 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
10737 | cat >>confdefs.h <<_ACEOF | ||
10738 | #define HAVE_BSM_AUDIT_H 1 | ||
10739 | _ACEOF | ||
10740 | |||
10741 | else | ||
10742 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
10743 | fi | ||
10744 | |||
10745 | done | ||
10746 | |||
10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
10748 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
10749 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
10750 | $as_echo_n "(cached) " >&6 | ||
10751 | else | ||
10752 | ac_check_lib_save_LIBS=$LIBS | ||
10753 | LIBS="-lbsm $LIBS" | ||
10754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10755 | /* end confdefs.h. */ | ||
10756 | |||
10757 | /* Override any GCC internal prototype to avoid an error. | ||
10758 | Use char because int might match the return type of a GCC | ||
10759 | builtin and then its argument prototype would still apply. */ | ||
10760 | #ifdef __cplusplus | ||
10761 | extern "C" | ||
10762 | #endif | ||
10763 | char getaudit (); | ||
10764 | int | ||
10765 | main () | ||
10766 | { | ||
10767 | return getaudit (); | ||
10768 | ; | ||
10769 | return 0; | ||
10770 | } | ||
10771 | _ACEOF | ||
10772 | if ac_fn_c_try_link "$LINENO"; then : | ||
10773 | ac_cv_lib_bsm_getaudit=yes | ||
10774 | else | ||
10775 | ac_cv_lib_bsm_getaudit=no | ||
10776 | fi | ||
10777 | rm -f core conftest.err conftest.$ac_objext \ | ||
10778 | conftest$ac_exeext conftest.$ac_ext | ||
10779 | LIBS=$ac_check_lib_save_LIBS | ||
10780 | fi | ||
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10782 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
10783 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
10784 | cat >>confdefs.h <<_ACEOF | ||
10785 | #define HAVE_LIBBSM 1 | ||
10786 | _ACEOF | ||
10787 | |||
10788 | LIBS="-lbsm $LIBS" | ||
10789 | |||
10790 | else | ||
10791 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
10792 | fi | ||
10793 | |||
10794 | for ac_func in getaudit | ||
10795 | do : | ||
10796 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
10797 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
10798 | cat >>confdefs.h <<_ACEOF | ||
10799 | #define HAVE_GETAUDIT 1 | ||
10800 | _ACEOF | ||
10801 | |||
10802 | else | ||
10803 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
10804 | fi | ||
10805 | done | ||
10806 | |||
10807 | # These are optional | ||
10808 | for ac_func in getaudit_addr aug_get_machine | ||
10809 | do : | ||
10810 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10811 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10812 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10813 | cat >>confdefs.h <<_ACEOF | ||
10814 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10815 | _ACEOF | ||
10816 | |||
10817 | fi | ||
10818 | done | ||
10819 | |||
10820 | |||
10821 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
10822 | |||
10823 | if test "$sol2ver" -ge 11; then | ||
10824 | SSHDLIBS="$SSHDLIBS -lscf" | ||
10825 | |||
10826 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
10827 | |||
10828 | fi | ||
10829 | ;; | ||
10830 | linux) | ||
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
10832 | $as_echo "linux" >&6; } | ||
10833 | AUDIT_MODULE=linux | ||
10834 | for ac_header in libaudit.h | ||
10835 | do : | ||
10836 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
10837 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
10838 | cat >>confdefs.h <<_ACEOF | ||
10839 | #define HAVE_LIBAUDIT_H 1 | ||
10840 | _ACEOF | ||
10841 | |||
10842 | fi | ||
10843 | |||
10844 | done | ||
10845 | |||
10846 | SSHDLIBS="$SSHDLIBS -laudit" | ||
10847 | |||
10848 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
10849 | |||
10850 | ;; | ||
10851 | debug) | ||
10852 | AUDIT_MODULE=debug | ||
10853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
10854 | $as_echo "debug" >&6; } | ||
10855 | |||
10856 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
10857 | |||
10858 | ;; | ||
10859 | no) | ||
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10861 | $as_echo "no" >&6; } | ||
10862 | ;; | ||
10863 | *) | ||
10864 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
10865 | ;; | ||
10866 | esac | ||
10867 | |||
10868 | fi | ||
10869 | |||
10870 | |||
10871 | |||
10872 | # Check whether --with-pie was given. | ||
10873 | if test "${with_pie+set}" = set; then : | ||
10874 | withval=$with_pie; | ||
10875 | if test "x$withval" = "xno"; then | ||
10876 | use_pie=no | ||
10877 | fi | ||
10878 | if test "x$withval" = "xyes"; then | ||
10879 | use_pie=yes | ||
10880 | fi | ||
10881 | |||
10882 | |||
10883 | fi | ||
10884 | |||
10885 | if test "x$use_pie" = "x"; then | ||
10886 | use_pie=no | ||
10887 | fi | ||
10888 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
10889 | # Turn off automatic PIE when toolchain hardening is off. | ||
10890 | use_pie=no | ||
10891 | fi | ||
10892 | if test "x$use_pie" = "xauto"; then | ||
10893 | # Automatic PIE requires gcc >= 4.x | ||
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 | ||
10895 | $as_echo_n "checking for gcc >= 4.x... " >&6; } | ||
10896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10897 | /* end confdefs.h. */ | ||
10898 | |||
10899 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
10900 | #error gcc is too old | ||
10901 | #endif | ||
10902 | |||
10903 | _ACEOF | ||
10904 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10906 | $as_echo "yes" >&6; } | ||
10907 | else | ||
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10909 | $as_echo "no" >&6; } | ||
10910 | use_pie=no | ||
10911 | |||
10912 | fi | ||
10913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10914 | fi | ||
10915 | if test "x$use_pie" != "xno"; then | ||
10916 | SAVED_CFLAGS="$CFLAGS" | ||
10917 | SAVED_LDFLAGS="$LDFLAGS" | ||
10918 | { | ||
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 | ||
10920 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | ||
10921 | saved_CFLAGS="$CFLAGS" | ||
10922 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
10923 | _define_flag="" | ||
10924 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
10925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10926 | /* end confdefs.h. */ | ||
10927 | |||
10928 | #include <stdlib.h> | ||
10929 | #include <stdio.h> | ||
10930 | int main(int argc, char **argv) { | ||
10931 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10932 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10933 | float l = i * 2.1; | ||
10934 | double m = l / 0.5; | ||
10935 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10936 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
10937 | exit(0); | ||
10938 | } | ||
10939 | |||
10940 | _ACEOF | ||
10941 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10942 | |||
10943 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
10944 | then | ||
10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10946 | $as_echo "no" >&6; } | ||
10947 | CFLAGS="$saved_CFLAGS" | ||
10948 | else | ||
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10950 | $as_echo "yes" >&6; } | ||
10951 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
10952 | fi | ||
10953 | else | ||
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10955 | $as_echo "no" >&6; } | ||
10956 | CFLAGS="$saved_CFLAGS" | ||
10957 | |||
10958 | fi | ||
10959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10960 | } | ||
10961 | { | ||
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 | ||
10963 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | ||
10964 | saved_LDFLAGS="$LDFLAGS" | ||
10965 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
10966 | _define_flag="" | ||
10967 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
10968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10969 | /* end confdefs.h. */ | ||
10970 | |||
10971 | #include <stdlib.h> | ||
10972 | #include <stdio.h> | ||
10973 | int main(int argc, char **argv) { | ||
10974 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10975 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10976 | float l = i * 2.1; | ||
10977 | double m = l / 0.5; | ||
10978 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10979 | long long p = n * o; | ||
10980 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
10981 | exit(0); | ||
10982 | } | ||
10983 | |||
10984 | _ACEOF | ||
10985 | if ac_fn_c_try_link "$LINENO"; then : | ||
10986 | |||
10987 | if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null | ||
10988 | then | ||
10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10990 | $as_echo "no" >&6; } | ||
10991 | LDFLAGS="$saved_LDFLAGS" | ||
10992 | else | ||
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10994 | $as_echo "yes" >&6; } | ||
10995 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
10996 | fi | ||
10997 | else | ||
10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10999 | $as_echo "no" >&6; } | ||
11000 | LDFLAGS="$saved_LDFLAGS" | ||
11001 | |||
11002 | fi | ||
11003 | rm -f core conftest.err conftest.$ac_objext \ | ||
11004 | conftest$ac_exeext conftest.$ac_ext | ||
11005 | } | ||
11006 | # We use both -fPIE and -pie or neither. | ||
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 | ||
11008 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } | ||
11009 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
11010 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11012 | $as_echo "yes" >&6; } | ||
11013 | else | ||
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11015 | $as_echo "no" >&6; } | ||
11016 | CFLAGS="$SAVED_CFLAGS" | ||
11017 | LDFLAGS="$SAVED_LDFLAGS" | ||
11018 | fi | ||
11019 | fi | ||
11020 | |||
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is accepted" >&5 | ||
11022 | $as_echo_n "checking whether -fPIC is accepted... " >&6; } | ||
11023 | SAVED_CFLAGS="$CFLAGS" | ||
11024 | CFLAGS="$CFLAGS -fPIC" | ||
11025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11026 | /* end confdefs.h. */ | ||
11027 | #include <stdlib.h> | ||
11028 | int | ||
11029 | main () | ||
11030 | { | ||
11031 | exit(0); | ||
11032 | ; | ||
11033 | return 0; | ||
11034 | } | ||
11035 | _ACEOF | ||
11036 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11038 | $as_echo "yes" >&6; } | ||
11039 | PICFLAG="-fPIC"; | ||
11040 | else | ||
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11042 | $as_echo "no" >&6; } | ||
11043 | PICFLAG=""; | ||
11044 | fi | ||
11045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11046 | CFLAGS="$SAVED_CFLAGS" | ||
11047 | |||
11048 | |||
11049 | for ac_func in \ | ||
11050 | Blowfish_initstate \ | ||
11051 | Blowfish_expandstate \ | ||
11052 | Blowfish_expand0state \ | ||
11053 | Blowfish_stream2word \ | ||
11054 | SHA256Update \ | ||
11055 | SHA384Update \ | ||
11056 | SHA512Update \ | ||
11057 | asprintf \ | ||
11058 | b64_ntop \ | ||
11059 | __b64_ntop \ | ||
11060 | b64_pton \ | ||
11061 | __b64_pton \ | ||
11062 | bcopy \ | ||
11063 | bcrypt_pbkdf \ | ||
11064 | bindresvport_sa \ | ||
11065 | blf_enc \ | ||
11066 | bzero \ | ||
11067 | cap_rights_limit \ | ||
11068 | clock \ | ||
11069 | closefrom \ | ||
11070 | dirfd \ | ||
11071 | endgrent \ | ||
11072 | err \ | ||
11073 | errx \ | ||
11074 | explicit_bzero \ | ||
11075 | fchmod \ | ||
11076 | fchmodat \ | ||
11077 | fchown \ | ||
11078 | fchownat \ | ||
11079 | flock \ | ||
11080 | fnmatch \ | ||
11081 | freeaddrinfo \ | ||
11082 | freezero \ | ||
11083 | fstatfs \ | ||
11084 | fstatvfs \ | ||
11085 | futimes \ | ||
11086 | getaddrinfo \ | ||
11087 | getcwd \ | ||
11088 | getgrouplist \ | ||
11089 | getline \ | ||
11090 | getnameinfo \ | ||
11091 | getopt \ | ||
11092 | getpagesize \ | ||
11093 | getpeereid \ | ||
11094 | getpeerucred \ | ||
11095 | getpgid \ | ||
11096 | _getpty \ | ||
11097 | getrlimit \ | ||
11098 | getrandom \ | ||
11099 | getsid \ | ||
11100 | getttyent \ | ||
11101 | glob \ | ||
11102 | group_from_gid \ | ||
11103 | inet_aton \ | ||
11104 | inet_ntoa \ | ||
11105 | inet_ntop \ | ||
11106 | innetgr \ | ||
11107 | llabs \ | ||
11108 | localtime_r \ | ||
11109 | login_getcapbool \ | ||
11110 | md5_crypt \ | ||
11111 | memmem \ | ||
11112 | memmove \ | ||
11113 | memset_s \ | ||
11114 | mkdtemp \ | ||
11115 | ngetaddrinfo \ | ||
11116 | nsleep \ | ||
11117 | ogetaddrinfo \ | ||
11118 | openlog_r \ | ||
11119 | pledge \ | ||
11120 | poll \ | ||
11121 | prctl \ | ||
11122 | pstat \ | ||
11123 | raise \ | ||
11124 | readpassphrase \ | ||
11125 | reallocarray \ | ||
11126 | realpath \ | ||
11127 | recvmsg \ | ||
11128 | recallocarray \ | ||
11129 | rresvport_af \ | ||
11130 | sendmsg \ | ||
11131 | setdtablesize \ | ||
11132 | setegid \ | ||
11133 | setenv \ | ||
11134 | seteuid \ | ||
11135 | setgroupent \ | ||
11136 | setgroups \ | ||
11137 | setlinebuf \ | ||
11138 | setlogin \ | ||
11139 | setpassent\ | ||
11140 | setpcred \ | ||
11141 | setproctitle \ | ||
11142 | setregid \ | ||
11143 | setreuid \ | ||
11144 | setrlimit \ | ||
11145 | setsid \ | ||
11146 | setvbuf \ | ||
11147 | sigaction \ | ||
11148 | sigvec \ | ||
11149 | snprintf \ | ||
11150 | socketpair \ | ||
11151 | statfs \ | ||
11152 | statvfs \ | ||
11153 | strcasestr \ | ||
11154 | strdup \ | ||
11155 | strerror \ | ||
11156 | strlcat \ | ||
11157 | strlcpy \ | ||
11158 | strmode \ | ||
11159 | strndup \ | ||
11160 | strnlen \ | ||
11161 | strnvis \ | ||
11162 | strptime \ | ||
11163 | strsignal \ | ||
11164 | strtonum \ | ||
11165 | strtoll \ | ||
11166 | strtoul \ | ||
11167 | strtoull \ | ||
11168 | swap32 \ | ||
11169 | sysconf \ | ||
11170 | tcgetpgrp \ | ||
11171 | timingsafe_bcmp \ | ||
11172 | truncate \ | ||
11173 | unsetenv \ | ||
11174 | updwtmpx \ | ||
11175 | utimensat \ | ||
11176 | user_from_uid \ | ||
11177 | usleep \ | ||
11178 | vasprintf \ | ||
11179 | vsnprintf \ | ||
11180 | waitpid \ | ||
11181 | warn \ | ||
11182 | |||
11183 | do : | ||
11184 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11185 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11186 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11187 | cat >>confdefs.h <<_ACEOF | ||
11188 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11189 | _ACEOF | ||
11190 | |||
11191 | fi | ||
11192 | done | ||
11193 | |||
11194 | |||
11195 | ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default" | ||
11196 | if test "x$ac_cv_have_decl_bzero" = xyes; then : | ||
11197 | ac_have_decl=1 | ||
11198 | else | ||
11199 | ac_have_decl=0 | ||
11200 | fi | ||
11201 | |||
11202 | cat >>confdefs.h <<_ACEOF | ||
11203 | #define HAVE_DECL_BZERO $ac_have_decl | ||
11204 | _ACEOF | ||
11205 | ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | ||
11206 | if test "x$ac_cv_have_decl_memmem" = xyes; then : | ||
11207 | ac_have_decl=1 | ||
11208 | else | ||
11209 | ac_have_decl=0 | ||
11210 | fi | ||
11211 | |||
11212 | cat >>confdefs.h <<_ACEOF | ||
11213 | #define HAVE_DECL_MEMMEM $ac_have_decl | ||
11214 | _ACEOF | ||
11215 | |||
11216 | |||
11217 | for ac_func in mblen mbtowc nl_langinfo wcwidth | ||
11218 | do : | ||
11219 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11220 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11221 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11222 | cat >>confdefs.h <<_ACEOF | ||
11223 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11224 | _ACEOF | ||
11225 | |||
11226 | fi | ||
11227 | done | ||
11228 | |||
11229 | |||
11230 | TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} | ||
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 | ||
11232 | $as_echo_n "checking for utf8 locale support... " >&6; } | ||
11233 | if test "$cross_compiling" = yes; then : | ||
11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11235 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11236 | |||
11237 | else | ||
11238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11239 | /* end confdefs.h. */ | ||
11240 | |||
11241 | #include <locale.h> | ||
11242 | #include <stdlib.h> | ||
11243 | |||
11244 | int | ||
11245 | main () | ||
11246 | { | ||
11247 | |||
11248 | char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); | ||
11249 | if (loc != NULL) | ||
11250 | exit(0); | ||
11251 | exit(1); | ||
11252 | |||
11253 | ; | ||
11254 | return 0; | ||
11255 | } | ||
11256 | _ACEOF | ||
11257 | if ac_fn_c_try_run "$LINENO"; then : | ||
11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11259 | $as_echo "yes" >&6; } | ||
11260 | else | ||
11261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11262 | $as_echo "no" >&6; } | ||
11263 | TEST_SSH_UTF8=no | ||
11264 | fi | ||
11265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11266 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11267 | fi | ||
11268 | |||
11269 | |||
11270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11271 | /* end confdefs.h. */ | ||
11272 | #include <ctype.h> | ||
11273 | int | ||
11274 | main () | ||
11275 | { | ||
11276 | return (isblank('a')); | ||
11277 | ; | ||
11278 | return 0; | ||
11279 | } | ||
11280 | _ACEOF | ||
11281 | if ac_fn_c_try_link "$LINENO"; then : | ||
11282 | |||
11283 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
11284 | |||
11285 | |||
11286 | fi | ||
11287 | rm -f core conftest.err conftest.$ac_objext \ | ||
11288 | conftest$ac_exeext conftest.$ac_ext | ||
11289 | |||
11290 | disable_pkcs11= | ||
11291 | # Check whether --enable-pkcs11 was given. | ||
11292 | if test "${enable_pkcs11+set}" = set; then : | ||
11293 | enableval=$enable_pkcs11; | ||
11294 | if test "x$enableval" = "xno" ; then | ||
11295 | disable_pkcs11=1 | ||
11296 | fi | ||
11297 | |||
11298 | |||
11299 | fi | ||
11300 | |||
11301 | |||
11302 | disable_sk= | ||
11303 | # Check whether --enable-security-key was given. | ||
11304 | if test "${enable_security_key+set}" = set; then : | ||
11305 | enableval=$enable_security_key; | ||
11306 | if test "x$enableval" = "xno" ; then | ||
11307 | disable_sk=1 | ||
11308 | fi | ||
11309 | |||
11310 | |||
11311 | fi | ||
11312 | |||
11313 | enable_sk_internal= | ||
11314 | |||
11315 | # Check whether --with-security-key-builtin was given. | ||
11316 | if test "${with_security_key_builtin+set}" = set; then : | ||
11317 | withval=$with_security_key_builtin; | ||
11318 | if test "x$withval" != "xno" ; then | ||
11319 | enable_sk_internal=yes | ||
11320 | fi | ||
11321 | |||
11322 | |||
11323 | fi | ||
11324 | |||
11325 | test "x$disable_sk" != "x" && enable_sk_internal="" | ||
11326 | |||
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
11328 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
11329 | if ${ac_cv_search_dlopen+:} false; then : | ||
11330 | $as_echo_n "(cached) " >&6 | ||
11331 | else | ||
11332 | ac_func_search_save_LIBS=$LIBS | ||
11333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11334 | /* end confdefs.h. */ | ||
11335 | |||
11336 | /* Override any GCC internal prototype to avoid an error. | ||
11337 | Use char because int might match the return type of a GCC | ||
11338 | builtin and then its argument prototype would still apply. */ | ||
11339 | #ifdef __cplusplus | ||
11340 | extern "C" | ||
11341 | #endif | ||
11342 | char dlopen (); | ||
11343 | int | ||
11344 | main () | ||
11345 | { | ||
11346 | return dlopen (); | ||
11347 | ; | ||
11348 | return 0; | ||
11349 | } | ||
11350 | _ACEOF | ||
11351 | for ac_lib in '' dl; do | ||
11352 | if test -z "$ac_lib"; then | ||
11353 | ac_res="none required" | ||
11354 | else | ||
11355 | ac_res=-l$ac_lib | ||
11356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11357 | fi | ||
11358 | if ac_fn_c_try_link "$LINENO"; then : | ||
11359 | ac_cv_search_dlopen=$ac_res | ||
11360 | fi | ||
11361 | rm -f core conftest.err conftest.$ac_objext \ | ||
11362 | conftest$ac_exeext | ||
11363 | if ${ac_cv_search_dlopen+:} false; then : | ||
11364 | break | ||
11365 | fi | ||
11366 | done | ||
11367 | if ${ac_cv_search_dlopen+:} false; then : | ||
11368 | |||
11369 | else | ||
11370 | ac_cv_search_dlopen=no | ||
11371 | fi | ||
11372 | rm conftest.$ac_ext | ||
11373 | LIBS=$ac_func_search_save_LIBS | ||
11374 | fi | ||
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
11376 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
11377 | ac_res=$ac_cv_search_dlopen | ||
11378 | if test "$ac_res" != no; then : | ||
11379 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11380 | |||
11381 | fi | ||
11382 | |||
11383 | for ac_func in dlopen | ||
11384 | do : | ||
11385 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11386 | if test "x$ac_cv_func_dlopen" = xyes; then : | ||
11387 | cat >>confdefs.h <<_ACEOF | ||
11388 | #define HAVE_DLOPEN 1 | ||
11389 | _ACEOF | ||
11390 | |||
11391 | fi | ||
11392 | done | ||
11393 | |||
11394 | ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> | ||
11395 | " | ||
11396 | if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : | ||
11397 | |||
11398 | fi | ||
11399 | |||
11400 | |||
11401 | # IRIX has a const char return value for gai_strerror() | ||
11402 | for ac_func in gai_strerror | ||
11403 | do : | ||
11404 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
11405 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
11406 | cat >>confdefs.h <<_ACEOF | ||
11407 | #define HAVE_GAI_STRERROR 1 | ||
11408 | _ACEOF | ||
11409 | |||
11410 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
11411 | |||
11412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11413 | /* end confdefs.h. */ | ||
11414 | |||
11415 | #include <sys/types.h> | ||
11416 | #include <sys/socket.h> | ||
11417 | #include <netdb.h> | ||
11418 | |||
11419 | const char *gai_strerror(int); | ||
11420 | |||
11421 | int | ||
11422 | main () | ||
11423 | { | ||
11424 | |||
11425 | char *str; | ||
11426 | str = gai_strerror(0); | ||
11427 | |||
11428 | ; | ||
11429 | return 0; | ||
11430 | } | ||
11431 | _ACEOF | ||
11432 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11433 | |||
11434 | |||
11435 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
11436 | |||
11437 | fi | ||
11438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11439 | fi | ||
11440 | done | ||
11441 | |||
11442 | |||
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
11444 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
11445 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11446 | $as_echo_n "(cached) " >&6 | ||
11447 | else | ||
11448 | ac_func_search_save_LIBS=$LIBS | ||
11449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11450 | /* end confdefs.h. */ | ||
11451 | |||
11452 | /* Override any GCC internal prototype to avoid an error. | ||
11453 | Use char because int might match the return type of a GCC | ||
11454 | builtin and then its argument prototype would still apply. */ | ||
11455 | #ifdef __cplusplus | ||
11456 | extern "C" | ||
11457 | #endif | ||
11458 | char nanosleep (); | ||
11459 | int | ||
11460 | main () | ||
11461 | { | ||
11462 | return nanosleep (); | ||
11463 | ; | ||
11464 | return 0; | ||
11465 | } | ||
11466 | _ACEOF | ||
11467 | for ac_lib in '' rt posix4; do | ||
11468 | if test -z "$ac_lib"; then | ||
11469 | ac_res="none required" | ||
11470 | else | ||
11471 | ac_res=-l$ac_lib | ||
11472 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11473 | fi | ||
11474 | if ac_fn_c_try_link "$LINENO"; then : | ||
11475 | ac_cv_search_nanosleep=$ac_res | ||
11476 | fi | ||
11477 | rm -f core conftest.err conftest.$ac_objext \ | ||
11478 | conftest$ac_exeext | ||
11479 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11480 | break | ||
11481 | fi | ||
11482 | done | ||
11483 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11484 | |||
11485 | else | ||
11486 | ac_cv_search_nanosleep=no | ||
11487 | fi | ||
11488 | rm conftest.$ac_ext | ||
11489 | LIBS=$ac_func_search_save_LIBS | ||
11490 | fi | ||
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
11492 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
11493 | ac_res=$ac_cv_search_nanosleep | ||
11494 | if test "$ac_res" != no; then : | ||
11495 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11496 | |||
11497 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
11498 | |||
11499 | fi | ||
11500 | |||
11501 | |||
11502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | ||
11503 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | ||
11504 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11505 | $as_echo_n "(cached) " >&6 | ||
11506 | else | ||
11507 | ac_func_search_save_LIBS=$LIBS | ||
11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11509 | /* end confdefs.h. */ | ||
11510 | |||
11511 | /* Override any GCC internal prototype to avoid an error. | ||
11512 | Use char because int might match the return type of a GCC | ||
11513 | builtin and then its argument prototype would still apply. */ | ||
11514 | #ifdef __cplusplus | ||
11515 | extern "C" | ||
11516 | #endif | ||
11517 | char clock_gettime (); | ||
11518 | int | ||
11519 | main () | ||
11520 | { | ||
11521 | return clock_gettime (); | ||
11522 | ; | ||
11523 | return 0; | ||
11524 | } | ||
11525 | _ACEOF | ||
11526 | for ac_lib in '' rt; do | ||
11527 | if test -z "$ac_lib"; then | ||
11528 | ac_res="none required" | ||
11529 | else | ||
11530 | ac_res=-l$ac_lib | ||
11531 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11532 | fi | ||
11533 | if ac_fn_c_try_link "$LINENO"; then : | ||
11534 | ac_cv_search_clock_gettime=$ac_res | ||
11535 | fi | ||
11536 | rm -f core conftest.err conftest.$ac_objext \ | ||
11537 | conftest$ac_exeext | ||
11538 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11539 | break | ||
11540 | fi | ||
11541 | done | ||
11542 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11543 | |||
11544 | else | ||
11545 | ac_cv_search_clock_gettime=no | ||
11546 | fi | ||
11547 | rm conftest.$ac_ext | ||
11548 | LIBS=$ac_func_search_save_LIBS | ||
11549 | fi | ||
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | ||
11551 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | ||
11552 | ac_res=$ac_cv_search_clock_gettime | ||
11553 | if test "$ac_res" != no; then : | ||
11554 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11555 | |||
11556 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
11557 | |||
11558 | fi | ||
11559 | |||
11560 | |||
11561 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
11562 | #ifdef HAVE_STRING_H | ||
11563 | # include <string.h> | ||
11564 | #endif | ||
11565 | |||
11566 | " | ||
11567 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
11568 | for ac_func in strsep | ||
11569 | do : | ||
11570 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
11571 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
11572 | cat >>confdefs.h <<_ACEOF | ||
11573 | #define HAVE_STRSEP 1 | ||
11574 | _ACEOF | ||
11575 | |||
11576 | fi | ||
11577 | done | ||
11578 | |||
11579 | fi | ||
11580 | |||
11581 | |||
11582 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
11583 | |||
11584 | " | ||
11585 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
11586 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
11587 | |||
11588 | else | ||
11589 | for ac_func in tcsendbreak | ||
11590 | do : | ||
11591 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
11592 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
11593 | cat >>confdefs.h <<_ACEOF | ||
11594 | #define HAVE_TCSENDBREAK 1 | ||
11595 | _ACEOF | ||
11596 | |||
11597 | fi | ||
11598 | done | ||
11599 | |||
11600 | fi | ||
11601 | |||
11602 | |||
11603 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
11604 | " | ||
11605 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
11606 | ac_have_decl=1 | ||
11607 | else | ||
11608 | ac_have_decl=0 | ||
11609 | fi | ||
11610 | |||
11611 | cat >>confdefs.h <<_ACEOF | ||
11612 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
11613 | _ACEOF | ||
11614 | |||
11615 | |||
11616 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
11617 | #include <sys/types.h> | ||
11618 | #include <sys/socket.h> | ||
11619 | |||
11620 | " | ||
11621 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
11622 | ac_have_decl=1 | ||
11623 | else | ||
11624 | ac_have_decl=0 | ||
11625 | fi | ||
11626 | |||
11627 | cat >>confdefs.h <<_ACEOF | ||
11628 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
11629 | _ACEOF | ||
11630 | |||
11631 | |||
11632 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
11633 | #include <sys/types.h> | ||
11634 | #ifdef HAVE_SYS_STAT_H | ||
11635 | # include <sys/stat.h> | ||
11636 | #endif | ||
11637 | #ifdef HAVE_FCNTL_H | ||
11638 | # include <fcntl.h> | ||
11639 | #endif | ||
11640 | |||
11641 | " | ||
11642 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
11643 | ac_have_decl=1 | ||
11644 | else | ||
11645 | ac_have_decl=0 | ||
11646 | fi | ||
11647 | |||
11648 | cat >>confdefs.h <<_ACEOF | ||
11649 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
11650 | _ACEOF | ||
11651 | |||
11652 | |||
11653 | ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" " | ||
11654 | #include <sys/types.h> | ||
11655 | #include <sys/uio.h> | ||
11656 | #include <unistd.h> | ||
11657 | |||
11658 | " | ||
11659 | if test "x$ac_cv_have_decl_readv" = xyes; then : | ||
11660 | ac_have_decl=1 | ||
11661 | else | ||
11662 | ac_have_decl=0 | ||
11663 | fi | ||
11664 | |||
11665 | cat >>confdefs.h <<_ACEOF | ||
11666 | #define HAVE_DECL_READV $ac_have_decl | ||
11667 | _ACEOF | ||
11668 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
11669 | #include <sys/types.h> | ||
11670 | #include <sys/uio.h> | ||
11671 | #include <unistd.h> | ||
11672 | |||
11673 | " | ||
11674 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
11675 | ac_have_decl=1 | ||
11676 | else | ||
11677 | ac_have_decl=0 | ||
11678 | fi | ||
11679 | |||
11680 | cat >>confdefs.h <<_ACEOF | ||
11681 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
11682 | _ACEOF | ||
11683 | |||
11684 | |||
11685 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
11686 | #include <sys/param.h> | ||
11687 | |||
11688 | " | ||
11689 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
11690 | ac_have_decl=1 | ||
11691 | else | ||
11692 | ac_have_decl=0 | ||
11693 | fi | ||
11694 | |||
11695 | cat >>confdefs.h <<_ACEOF | ||
11696 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
11697 | _ACEOF | ||
11698 | |||
11699 | |||
11700 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
11701 | #include <stddef.h> | ||
11702 | |||
11703 | " | ||
11704 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
11705 | ac_have_decl=1 | ||
11706 | else | ||
11707 | ac_have_decl=0 | ||
11708 | fi | ||
11709 | |||
11710 | cat >>confdefs.h <<_ACEOF | ||
11711 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
11712 | _ACEOF | ||
11713 | |||
11714 | |||
11715 | # extra bits for select(2) | ||
11716 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " | ||
11717 | #include <sys/param.h> | ||
11718 | #include <sys/types.h> | ||
11719 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11720 | #include <sys/sysmacros.h> | ||
11721 | #endif | ||
11722 | #ifdef HAVE_SYS_SELECT_H | ||
11723 | #include <sys/select.h> | ||
11724 | #endif | ||
11725 | #ifdef HAVE_SYS_TIME_H | ||
11726 | #include <sys/time.h> | ||
11727 | #endif | ||
11728 | #ifdef HAVE_UNISTD_H | ||
11729 | #include <unistd.h> | ||
11730 | #endif | ||
11731 | |||
11732 | " | ||
11733 | if test "x$ac_cv_have_decl_howmany" = xyes; then : | ||
11734 | ac_have_decl=1 | ||
11735 | else | ||
11736 | ac_have_decl=0 | ||
11737 | fi | ||
11738 | |||
11739 | cat >>confdefs.h <<_ACEOF | ||
11740 | #define HAVE_DECL_HOWMANY $ac_have_decl | ||
11741 | _ACEOF | ||
11742 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " | ||
11743 | #include <sys/param.h> | ||
11744 | #include <sys/types.h> | ||
11745 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11746 | #include <sys/sysmacros.h> | ||
11747 | #endif | ||
11748 | #ifdef HAVE_SYS_SELECT_H | ||
11749 | #include <sys/select.h> | ||
11750 | #endif | ||
11751 | #ifdef HAVE_SYS_TIME_H | ||
11752 | #include <sys/time.h> | ||
11753 | #endif | ||
11754 | #ifdef HAVE_UNISTD_H | ||
11755 | #include <unistd.h> | ||
11756 | #endif | ||
11757 | |||
11758 | " | ||
11759 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : | ||
11760 | ac_have_decl=1 | ||
11761 | else | ||
11762 | ac_have_decl=0 | ||
11763 | fi | ||
11764 | |||
11765 | cat >>confdefs.h <<_ACEOF | ||
11766 | #define HAVE_DECL_NFDBITS $ac_have_decl | ||
11767 | _ACEOF | ||
11768 | |||
11769 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " | ||
11770 | #include <sys/param.h> | ||
11771 | #include <sys/types.h> | ||
11772 | #ifdef HAVE_SYS_SELECT_H | ||
11773 | #include <sys/select.h> | ||
11774 | #endif | ||
11775 | #ifdef HAVE_SYS_TIME_H | ||
11776 | #include <sys/time.h> | ||
11777 | #endif | ||
11778 | #ifdef HAVE_UNISTD_H | ||
11779 | #include <unistd.h> | ||
11780 | #endif | ||
11781 | |||
11782 | " | ||
11783 | if test "x$ac_cv_type_fd_mask" = xyes; then : | ||
11784 | |||
11785 | cat >>confdefs.h <<_ACEOF | ||
11786 | #define HAVE_FD_MASK 1 | ||
11787 | _ACEOF | ||
11788 | |||
11789 | |||
11790 | fi | ||
11791 | |||
11792 | |||
11793 | for ac_func in setresuid | ||
11794 | do : | ||
11795 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
11796 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
11797 | cat >>confdefs.h <<_ACEOF | ||
11798 | #define HAVE_SETRESUID 1 | ||
11799 | _ACEOF | ||
11800 | |||
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
11802 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
11803 | if test "$cross_compiling" = yes; then : | ||
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11805 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11806 | |||
11807 | else | ||
11808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11809 | /* end confdefs.h. */ | ||
11810 | |||
11811 | #include <stdlib.h> | ||
11812 | #include <errno.h> | ||
11813 | |||
11814 | int | ||
11815 | main () | ||
11816 | { | ||
11817 | |||
11818 | errno=0; | ||
11819 | setresuid(0,0,0); | ||
11820 | if (errno==ENOSYS) | ||
11821 | exit(1); | ||
11822 | else | ||
11823 | exit(0); | ||
11824 | |||
11825 | ; | ||
11826 | return 0; | ||
11827 | } | ||
11828 | _ACEOF | ||
11829 | if ac_fn_c_try_run "$LINENO"; then : | ||
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11831 | $as_echo "yes" >&6; } | ||
11832 | else | ||
11833 | |||
11834 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
11835 | |||
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11837 | $as_echo "not implemented" >&6; } | ||
11838 | fi | ||
11839 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11840 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11841 | fi | ||
11842 | |||
11843 | |||
11844 | fi | ||
11845 | done | ||
11846 | |||
11847 | |||
11848 | for ac_func in setresgid | ||
11849 | do : | ||
11850 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
11851 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
11852 | cat >>confdefs.h <<_ACEOF | ||
11853 | #define HAVE_SETRESGID 1 | ||
11854 | _ACEOF | ||
11855 | |||
11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
11857 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
11858 | if test "$cross_compiling" = yes; then : | ||
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11860 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11861 | |||
11862 | else | ||
11863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11864 | /* end confdefs.h. */ | ||
11865 | |||
11866 | #include <stdlib.h> | ||
11867 | #include <errno.h> | ||
11868 | |||
11869 | int | ||
11870 | main () | ||
11871 | { | ||
11872 | |||
11873 | errno=0; | ||
11874 | setresgid(0,0,0); | ||
11875 | if (errno==ENOSYS) | ||
11876 | exit(1); | ||
11877 | else | ||
11878 | exit(0); | ||
11879 | |||
11880 | ; | ||
11881 | return 0; | ||
11882 | } | ||
11883 | _ACEOF | ||
11884 | if ac_fn_c_try_run "$LINENO"; then : | ||
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11886 | $as_echo "yes" >&6; } | ||
11887 | else | ||
11888 | |||
11889 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
11890 | |||
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11892 | $as_echo "not implemented" >&6; } | ||
11893 | fi | ||
11894 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11895 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11896 | fi | ||
11897 | |||
11898 | |||
11899 | fi | ||
11900 | done | ||
11901 | |||
11902 | |||
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5 | ||
11904 | $as_echo_n "checking for working fflush(NULL)... " >&6; } | ||
11905 | if test "$cross_compiling" = yes; then : | ||
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
11907 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
11908 | |||
11909 | else | ||
11910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11911 | /* end confdefs.h. */ | ||
11912 | #include <stdio.h> | ||
11913 | int | ||
11914 | main () | ||
11915 | { | ||
11916 | fflush(NULL); exit(0); | ||
11917 | ; | ||
11918 | return 0; | ||
11919 | } | ||
11920 | _ACEOF | ||
11921 | if ac_fn_c_try_run "$LINENO"; then : | ||
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11923 | $as_echo "yes" >&6; } | ||
11924 | else | ||
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11926 | $as_echo "no" >&6; } | ||
11927 | |||
11928 | $as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h | ||
11929 | |||
11930 | fi | ||
11931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11932 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11933 | fi | ||
11934 | |||
11935 | |||
11936 | for ac_func in gettimeofday time | ||
11937 | do : | ||
11938 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11939 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11940 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11941 | cat >>confdefs.h <<_ACEOF | ||
11942 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11943 | _ACEOF | ||
11944 | |||
11945 | fi | ||
11946 | done | ||
11947 | |||
11948 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11949 | do : | ||
11950 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11951 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11952 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11953 | cat >>confdefs.h <<_ACEOF | ||
11954 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11955 | _ACEOF | ||
11956 | |||
11957 | fi | ||
11958 | done | ||
11959 | |||
11960 | for ac_func in utmpname | ||
11961 | do : | ||
11962 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
11963 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
11964 | cat >>confdefs.h <<_ACEOF | ||
11965 | #define HAVE_UTMPNAME 1 | ||
11966 | _ACEOF | ||
11967 | |||
11968 | fi | ||
11969 | done | ||
11970 | |||
11971 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
11972 | do : | ||
11973 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11974 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11975 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11976 | cat >>confdefs.h <<_ACEOF | ||
11977 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11978 | _ACEOF | ||
11979 | |||
11980 | fi | ||
11981 | done | ||
11982 | |||
11983 | for ac_func in setutxdb setutxent utmpxname | ||
11984 | do : | ||
11985 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11986 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11987 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11988 | cat >>confdefs.h <<_ACEOF | ||
11989 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11990 | _ACEOF | ||
11991 | |||
11992 | fi | ||
11993 | done | ||
11994 | |||
11995 | for ac_func in getlastlogxbyname | ||
11996 | do : | ||
11997 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
11998 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
11999 | cat >>confdefs.h <<_ACEOF | ||
12000 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
12001 | _ACEOF | ||
12002 | |||
12003 | fi | ||
12004 | done | ||
12005 | |||
12006 | |||
12007 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
12008 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
12009 | |||
12010 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
12011 | |||
12012 | else | ||
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
12014 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
12015 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
12016 | $as_echo_n "(cached) " >&6 | ||
12017 | else | ||
12018 | ac_check_lib_save_LIBS=$LIBS | ||
12019 | LIBS="-lbsd $LIBS" | ||
12020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12021 | /* end confdefs.h. */ | ||
12022 | |||
12023 | /* Override any GCC internal prototype to avoid an error. | ||
12024 | Use char because int might match the return type of a GCC | ||
12025 | builtin and then its argument prototype would still apply. */ | ||
12026 | #ifdef __cplusplus | ||
12027 | extern "C" | ||
12028 | #endif | ||
12029 | char daemon (); | ||
12030 | int | ||
12031 | main () | ||
12032 | { | ||
12033 | return daemon (); | ||
12034 | ; | ||
12035 | return 0; | ||
12036 | } | ||
12037 | _ACEOF | ||
12038 | if ac_fn_c_try_link "$LINENO"; then : | ||
12039 | ac_cv_lib_bsd_daemon=yes | ||
12040 | else | ||
12041 | ac_cv_lib_bsd_daemon=no | ||
12042 | fi | ||
12043 | rm -f core conftest.err conftest.$ac_objext \ | ||
12044 | conftest$ac_exeext conftest.$ac_ext | ||
12045 | LIBS=$ac_check_lib_save_LIBS | ||
12046 | fi | ||
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
12048 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
12049 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
12050 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
12051 | |||
12052 | fi | ||
12053 | |||
12054 | |||
12055 | fi | ||
12056 | |||
12057 | |||
12058 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
12059 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
12060 | |||
12061 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
12062 | |||
12063 | else | ||
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
12065 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
12066 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
12067 | $as_echo_n "(cached) " >&6 | ||
12068 | else | ||
12069 | ac_check_lib_save_LIBS=$LIBS | ||
12070 | LIBS="-lucb $LIBS" | ||
12071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12072 | /* end confdefs.h. */ | ||
12073 | |||
12074 | /* Override any GCC internal prototype to avoid an error. | ||
12075 | Use char because int might match the return type of a GCC | ||
12076 | builtin and then its argument prototype would still apply. */ | ||
12077 | #ifdef __cplusplus | ||
12078 | extern "C" | ||
12079 | #endif | ||
12080 | char getpagesize (); | ||
12081 | int | ||
12082 | main () | ||
12083 | { | ||
12084 | return getpagesize (); | ||
12085 | ; | ||
12086 | return 0; | ||
12087 | } | ||
12088 | _ACEOF | ||
12089 | if ac_fn_c_try_link "$LINENO"; then : | ||
12090 | ac_cv_lib_ucb_getpagesize=yes | ||
12091 | else | ||
12092 | ac_cv_lib_ucb_getpagesize=no | ||
12093 | fi | ||
12094 | rm -f core conftest.err conftest.$ac_objext \ | ||
12095 | conftest$ac_exeext conftest.$ac_ext | ||
12096 | LIBS=$ac_check_lib_save_LIBS | ||
12097 | fi | ||
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
12099 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
12100 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
12101 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
12102 | |||
12103 | fi | ||
12104 | |||
12105 | |||
12106 | fi | ||
12107 | |||
12108 | |||
12109 | # Check for broken snprintf | ||
12110 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
12112 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
12113 | if test "$cross_compiling" = yes; then : | ||
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12115 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12116 | |||
12117 | else | ||
12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12119 | /* end confdefs.h. */ | ||
12120 | #include <stdio.h> | ||
12121 | int | ||
12122 | main () | ||
12123 | { | ||
12124 | |||
12125 | char b[5]; | ||
12126 | snprintf(b,5,"123456789"); | ||
12127 | exit(b[4]!='\0'); | ||
12128 | |||
12129 | ; | ||
12130 | return 0; | ||
12131 | } | ||
12132 | _ACEOF | ||
12133 | if ac_fn_c_try_run "$LINENO"; then : | ||
12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12135 | $as_echo "yes" >&6; } | ||
12136 | else | ||
12137 | |||
12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12139 | $as_echo "no" >&6; } | ||
12140 | |||
12141 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12142 | |||
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
12144 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
12145 | |||
12146 | fi | ||
12147 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12148 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12149 | fi | ||
12150 | |||
12151 | fi | ||
12152 | |||
12153 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf understands %zu" >&5 | ||
12155 | $as_echo_n "checking whether snprintf understands %zu... " >&6; } | ||
12156 | if test "$cross_compiling" = yes; then : | ||
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
12158 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
12159 | |||
12160 | else | ||
12161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12162 | /* end confdefs.h. */ | ||
12163 | |||
12164 | #include <sys/types.h> | ||
12165 | #include <stdio.h> | ||
12166 | |||
12167 | int | ||
12168 | main () | ||
12169 | { | ||
12170 | |||
12171 | size_t a = 1, b = 2; | ||
12172 | char z[128]; | ||
12173 | snprintf(z, sizeof z, "%zu%zu", a, b); | ||
12174 | exit(strcmp(z, "12")); | ||
12175 | |||
12176 | ; | ||
12177 | return 0; | ||
12178 | } | ||
12179 | _ACEOF | ||
12180 | if ac_fn_c_try_run "$LINENO"; then : | ||
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12182 | $as_echo "yes" >&6; } | ||
12183 | else | ||
12184 | |||
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12186 | $as_echo "no" >&6; } | ||
12187 | |||
12188 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12189 | |||
12190 | |||
12191 | fi | ||
12192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12193 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12194 | fi | ||
12195 | |||
12196 | fi | ||
12197 | |||
12198 | # We depend on vsnprintf returning the right thing on overflow: the | ||
12199 | # number of characters it tried to create (as per SUSv3) | ||
12200 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
12202 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
12203 | if test "$cross_compiling" = yes; then : | ||
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
12205 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
12206 | |||
12207 | else | ||
12208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12209 | /* end confdefs.h. */ | ||
12210 | |||
12211 | #include <sys/types.h> | ||
12212 | #include <stdio.h> | ||
12213 | #include <stdarg.h> | ||
12214 | |||
12215 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
12216 | { | ||
12217 | size_t ret; | ||
12218 | va_list ap; | ||
12219 | |||
12220 | va_start(ap, fmt); | ||
12221 | ret = vsnprintf(str, count, fmt, ap); | ||
12222 | va_end(ap); | ||
12223 | return ret; | ||
12224 | } | ||
12225 | |||
12226 | int | ||
12227 | main () | ||
12228 | { | ||
12229 | |||
12230 | char x[1]; | ||
12231 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
12232 | return 1; | ||
12233 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
12234 | return 1; | ||
12235 | return 0; | ||
12236 | |||
12237 | ; | ||
12238 | return 0; | ||
12239 | } | ||
12240 | _ACEOF | ||
12241 | if ac_fn_c_try_run "$LINENO"; then : | ||
12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12243 | $as_echo "yes" >&6; } | ||
12244 | else | ||
12245 | |||
12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12247 | $as_echo "no" >&6; } | ||
12248 | |||
12249 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
12250 | |||
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
12252 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
12253 | |||
12254 | fi | ||
12255 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12256 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12257 | fi | ||
12258 | |||
12259 | fi | ||
12260 | |||
12261 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
12262 | # check that the fmt argument is const char * or just char *. | ||
12263 | # This is only useful for when BROKEN_SNPRINTF | ||
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
12265 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
12266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12267 | /* end confdefs.h. */ | ||
12268 | |||
12269 | #include <stdio.h> | ||
12270 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
12271 | |||
12272 | int | ||
12273 | main () | ||
12274 | { | ||
12275 | |||
12276 | snprintf(0, 0, 0); | ||
12277 | |||
12278 | ; | ||
12279 | return 0; | ||
12280 | } | ||
12281 | _ACEOF | ||
12282 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12284 | $as_echo "yes" >&6; } | ||
12285 | |||
12286 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
12287 | |||
12288 | else | ||
12289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12290 | $as_echo "no" >&6; } | ||
12291 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
12292 | |||
12293 | fi | ||
12294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12295 | |||
12296 | # Check for missing getpeereid (or equiv) support | ||
12297 | NO_PEERCHECK="" | ||
12298 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
12300 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
12301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12302 | /* end confdefs.h. */ | ||
12303 | |||
12304 | #include <sys/types.h> | ||
12305 | #include <sys/socket.h> | ||
12306 | int | ||
12307 | main () | ||
12308 | { | ||
12309 | int i = SO_PEERCRED; | ||
12310 | ; | ||
12311 | return 0; | ||
12312 | } | ||
12313 | _ACEOF | ||
12314 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12316 | $as_echo "yes" >&6; } | ||
12317 | |||
12318 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
12319 | |||
12320 | |||
12321 | else | ||
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12323 | $as_echo "no" >&6; } | ||
12324 | NO_PEERCHECK=1 | ||
12325 | |||
12326 | fi | ||
12327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12328 | fi | ||
12329 | |||
12330 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
12332 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
12333 | if test "$cross_compiling" = yes; then : | ||
12334 | |||
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12336 | $as_echo "yes" >&6; } | ||
12337 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12338 | |||
12339 | |||
12340 | |||
12341 | else | ||
12342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12343 | /* end confdefs.h. */ | ||
12344 | |||
12345 | #include <stdlib.h> | ||
12346 | |||
12347 | int | ||
12348 | main () | ||
12349 | { | ||
12350 | |||
12351 | char template[]="conftest.mkstemp-test"; | ||
12352 | if (mkstemp(template) == -1) | ||
12353 | exit(1); | ||
12354 | unlink(template); | ||
12355 | exit(0); | ||
12356 | |||
12357 | ; | ||
12358 | return 0; | ||
12359 | } | ||
12360 | _ACEOF | ||
12361 | if ac_fn_c_try_run "$LINENO"; then : | ||
12362 | |||
12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12364 | $as_echo "no" >&6; } | ||
12365 | |||
12366 | else | ||
12367 | |||
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12369 | $as_echo "yes" >&6; } | ||
12370 | |||
12371 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12372 | |||
12373 | |||
12374 | fi | ||
12375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12376 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12377 | fi | ||
12378 | |||
12379 | fi | ||
12380 | |||
12381 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
12383 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
12384 | if test "$cross_compiling" = yes; then : | ||
12385 | |||
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12387 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12388 | |||
12389 | |||
12390 | else | ||
12391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12392 | /* end confdefs.h. */ | ||
12393 | |||
12394 | #include <stdio.h> | ||
12395 | #include <sys/fcntl.h> | ||
12396 | #include <sys/types.h> | ||
12397 | #include <sys/wait.h> | ||
12398 | |||
12399 | int | ||
12400 | main () | ||
12401 | { | ||
12402 | |||
12403 | pid_t pid; | ||
12404 | int fd, ptyfd, ttyfd, status; | ||
12405 | |||
12406 | pid = fork(); | ||
12407 | if (pid < 0) { /* failed */ | ||
12408 | exit(1); | ||
12409 | } else if (pid > 0) { /* parent */ | ||
12410 | waitpid(pid, &status, 0); | ||
12411 | if (WIFEXITED(status)) | ||
12412 | exit(WEXITSTATUS(status)); | ||
12413 | else | ||
12414 | exit(2); | ||
12415 | } else { /* child */ | ||
12416 | close(0); close(1); close(2); | ||
12417 | setsid(); | ||
12418 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12419 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12420 | if (fd >= 0) | ||
12421 | exit(3); /* Acquired ctty: broken */ | ||
12422 | else | ||
12423 | exit(0); /* Did not acquire ctty: OK */ | ||
12424 | } | ||
12425 | |||
12426 | ; | ||
12427 | return 0; | ||
12428 | } | ||
12429 | _ACEOF | ||
12430 | if ac_fn_c_try_run "$LINENO"; then : | ||
12431 | |||
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12433 | $as_echo "yes" >&6; } | ||
12434 | |||
12435 | else | ||
12436 | |||
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12438 | $as_echo "no" >&6; } | ||
12439 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
12440 | |||
12441 | |||
12442 | fi | ||
12443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12444 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12445 | fi | ||
12446 | |||
12447 | fi | ||
12448 | |||
12449 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12450 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12452 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12453 | if test "$cross_compiling" = yes; then : | ||
12454 | |||
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12456 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12457 | |||
12458 | |||
12459 | else | ||
12460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12461 | /* end confdefs.h. */ | ||
12462 | |||
12463 | #include <stdio.h> | ||
12464 | #include <sys/socket.h> | ||
12465 | #include <netdb.h> | ||
12466 | #include <errno.h> | ||
12467 | #include <netinet/in.h> | ||
12468 | |||
12469 | #define TEST_PORT "2222" | ||
12470 | |||
12471 | int | ||
12472 | main () | ||
12473 | { | ||
12474 | |||
12475 | int err, sock; | ||
12476 | struct addrinfo *gai_ai, *ai, hints; | ||
12477 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12478 | |||
12479 | memset(&hints, 0, sizeof(hints)); | ||
12480 | hints.ai_family = PF_UNSPEC; | ||
12481 | hints.ai_socktype = SOCK_STREAM; | ||
12482 | hints.ai_flags = AI_PASSIVE; | ||
12483 | |||
12484 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12485 | if (err != 0) { | ||
12486 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12487 | exit(1); | ||
12488 | } | ||
12489 | |||
12490 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12491 | if (ai->ai_family != AF_INET6) | ||
12492 | continue; | ||
12493 | |||
12494 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12495 | sizeof(ntop), strport, sizeof(strport), | ||
12496 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12497 | |||
12498 | if (err != 0) { | ||
12499 | if (err == EAI_SYSTEM) | ||
12500 | perror("getnameinfo EAI_SYSTEM"); | ||
12501 | else | ||
12502 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
12503 | gai_strerror(err)); | ||
12504 | exit(2); | ||
12505 | } | ||
12506 | |||
12507 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
12508 | if (sock < 0) | ||
12509 | perror("socket"); | ||
12510 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
12511 | if (errno == EBADF) | ||
12512 | exit(3); | ||
12513 | } | ||
12514 | } | ||
12515 | exit(0); | ||
12516 | |||
12517 | ; | ||
12518 | return 0; | ||
12519 | } | ||
12520 | _ACEOF | ||
12521 | if ac_fn_c_try_run "$LINENO"; then : | ||
12522 | |||
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12524 | $as_echo "yes" >&6; } | ||
12525 | |||
12526 | else | ||
12527 | |||
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12529 | $as_echo "no" >&6; } | ||
12530 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12531 | |||
12532 | |||
12533 | fi | ||
12534 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12535 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12536 | fi | ||
12537 | |||
12538 | fi | ||
12539 | |||
12540 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12541 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12543 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12544 | if test "$cross_compiling" = yes; then : | ||
12545 | |||
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
12547 | $as_echo "cross-compiling, assuming no" >&6; } | ||
12548 | |||
12549 | |||
12550 | else | ||
12551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12552 | /* end confdefs.h. */ | ||
12553 | |||
12554 | #include <stdio.h> | ||
12555 | #include <sys/socket.h> | ||
12556 | #include <netdb.h> | ||
12557 | #include <errno.h> | ||
12558 | #include <netinet/in.h> | ||
12559 | |||
12560 | #define TEST_PORT "2222" | ||
12561 | |||
12562 | int | ||
12563 | main () | ||
12564 | { | ||
12565 | |||
12566 | int err, sock; | ||
12567 | struct addrinfo *gai_ai, *ai, hints; | ||
12568 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12569 | |||
12570 | memset(&hints, 0, sizeof(hints)); | ||
12571 | hints.ai_family = PF_UNSPEC; | ||
12572 | hints.ai_socktype = SOCK_STREAM; | ||
12573 | hints.ai_flags = AI_PASSIVE; | ||
12574 | |||
12575 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12576 | if (err != 0) { | ||
12577 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12578 | exit(1); | ||
12579 | } | ||
12580 | |||
12581 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12582 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
12583 | continue; | ||
12584 | |||
12585 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12586 | sizeof(ntop), strport, sizeof(strport), | ||
12587 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12588 | |||
12589 | if (ai->ai_family == AF_INET && err != 0) { | ||
12590 | perror("getnameinfo"); | ||
12591 | exit(2); | ||
12592 | } | ||
12593 | } | ||
12594 | exit(0); | ||
12595 | |||
12596 | ; | ||
12597 | return 0; | ||
12598 | } | ||
12599 | _ACEOF | ||
12600 | if ac_fn_c_try_run "$LINENO"; then : | ||
12601 | |||
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12603 | $as_echo "yes" >&6; } | ||
12604 | |||
12605 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
12606 | |||
12607 | |||
12608 | else | ||
12609 | |||
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12611 | $as_echo "no" >&6; } | ||
12612 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12613 | |||
12614 | |||
12615 | fi | ||
12616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12617 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12618 | fi | ||
12619 | |||
12620 | fi | ||
12621 | |||
12622 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
12623 | ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> | ||
12624 | #include <sys/socket.h> | ||
12625 | #include <netdb.h> | ||
12626 | " | ||
12627 | if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : | ||
12628 | ac_have_decl=1 | ||
12629 | else | ||
12630 | ac_have_decl=0 | ||
12631 | fi | ||
12632 | |||
12633 | cat >>confdefs.h <<_ACEOF | ||
12634 | #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl | ||
12635 | _ACEOF | ||
12636 | |||
12637 | fi | ||
12638 | |||
12639 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
12641 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12643 | /* end confdefs.h. */ | ||
12644 | #include <shadow.h> | ||
12645 | int | ||
12646 | main () | ||
12647 | { | ||
12648 | exit(0); | ||
12649 | ; | ||
12650 | return 0; | ||
12651 | } | ||
12652 | _ACEOF | ||
12653 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12654 | |||
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12656 | $as_echo "no" >&6; } | ||
12657 | |||
12658 | else | ||
12659 | |||
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12661 | $as_echo "yes" >&6; } | ||
12662 | |||
12663 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
12664 | |||
12665 | |||
12666 | |||
12667 | fi | ||
12668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12669 | fi | ||
12670 | |||
12671 | if test "x$ac_cv_func_strnvis" = "xyes"; then | ||
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 | ||
12673 | $as_echo_n "checking for working strnvis... " >&6; } | ||
12674 | if test "$cross_compiling" = yes; then : | ||
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 | ||
12676 | $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} | ||
12677 | |||
12678 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12679 | |||
12680 | |||
12681 | else | ||
12682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12683 | /* end confdefs.h. */ | ||
12684 | |||
12685 | #include <signal.h> | ||
12686 | #include <stdlib.h> | ||
12687 | #include <string.h> | ||
12688 | #include <vis.h> | ||
12689 | static void sighandler(int sig) { _exit(1); } | ||
12690 | |||
12691 | int | ||
12692 | main () | ||
12693 | { | ||
12694 | |||
12695 | char dst[16]; | ||
12696 | |||
12697 | signal(SIGSEGV, sighandler); | ||
12698 | if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) | ||
12699 | exit(0); | ||
12700 | exit(1) | ||
12701 | |||
12702 | ; | ||
12703 | return 0; | ||
12704 | } | ||
12705 | _ACEOF | ||
12706 | if ac_fn_c_try_run "$LINENO"; then : | ||
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12708 | $as_echo "yes" >&6; } | ||
12709 | else | ||
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12711 | $as_echo "no" >&6; } | ||
12712 | |||
12713 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12714 | |||
12715 | fi | ||
12716 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12717 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12718 | fi | ||
12719 | |||
12720 | fi | ||
12721 | |||
12722 | for ac_func in getpgrp | ||
12723 | do : | ||
12724 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | ||
12725 | if test "x$ac_cv_func_getpgrp" = xyes; then : | ||
12726 | cat >>confdefs.h <<_ACEOF | ||
12727 | #define HAVE_GETPGRP 1 | ||
12728 | _ACEOF | ||
12729 | |||
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5 | ||
12731 | $as_echo_n "checking if getpgrp accepts zero args... " >&6; } | ||
12732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12733 | /* end confdefs.h. */ | ||
12734 | $ac_includes_default | ||
12735 | int | ||
12736 | main () | ||
12737 | { | ||
12738 | getpgrp(); | ||
12739 | ; | ||
12740 | return 0; | ||
12741 | } | ||
12742 | _ACEOF | ||
12743 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12745 | $as_echo "yes" >&6; } | ||
12746 | |||
12747 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12748 | |||
12749 | else | ||
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12751 | $as_echo "no" >&6; } | ||
12752 | |||
12753 | $as_echo "#define GETPGRP_VOID 0" >>confdefs.h | ||
12754 | |||
12755 | |||
12756 | fi | ||
12757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12758 | |||
12759 | fi | ||
12760 | done | ||
12761 | |||
12762 | |||
12763 | # Search for OpenSSL | ||
12764 | saved_CPPFLAGS="$CPPFLAGS" | ||
12765 | saved_LDFLAGS="$LDFLAGS" | ||
12766 | |||
12767 | # Check whether --with-ssl-dir was given. | ||
12768 | if test "${with_ssl_dir+set}" = set; then : | ||
12769 | withval=$with_ssl_dir; | ||
12770 | if test "x$openssl" = "xno" ; then | ||
12771 | as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 | ||
12772 | fi | ||
12773 | if test "x$withval" != "xno" ; then | ||
12774 | case "$withval" in | ||
12775 | # Relative paths | ||
12776 | ./*|../*) withval="`pwd`/$withval" | ||
12777 | esac | ||
12778 | if test -d "$withval/lib"; then | ||
12779 | if test -n "${rpath_opt}"; then | ||
12780 | LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}" | ||
12781 | else | ||
12782 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12783 | fi | ||
12784 | elif test -d "$withval/lib64"; then | ||
12785 | if test -n "${rpath_opt}"; then | ||
12786 | LDFLAGS="-L${withval}/lib64 ${rpath_opt}${withval}/lib64 ${LDFLAGS}" | ||
12787 | else | ||
12788 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
12789 | fi | ||
12790 | else | ||
12791 | if test -n "${rpath_opt}"; then | ||
12792 | LDFLAGS="-L${withval} ${rpath_opt}${withval} ${LDFLAGS}" | ||
12793 | else | ||
12794 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12795 | fi | ||
12796 | fi | ||
12797 | if test -d "$withval/include"; then | ||
12798 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12799 | else | ||
12800 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12801 | fi | ||
12802 | fi | ||
12803 | |||
12804 | |||
12805 | fi | ||
12806 | |||
12807 | |||
12808 | |||
12809 | # Check whether --with-openssl-header-check was given. | ||
12810 | if test "${with_openssl_header_check+set}" = set; then : | ||
12811 | withval=$with_openssl_header_check; | ||
12812 | if test "x$withval" = "xno" ; then | ||
12813 | openssl_check_nonfatal=1 | ||
12814 | fi | ||
12815 | |||
12816 | |||
12817 | fi | ||
12818 | |||
12819 | |||
12820 | openssl_engine=no | ||
12821 | |||
12822 | # Check whether --with-ssl-engine was given. | ||
12823 | if test "${with_ssl_engine+set}" = set; then : | ||
12824 | withval=$with_ssl_engine; | ||
12825 | if test "x$withval" != "xno" ; then | ||
12826 | if test "x$openssl" = "xno" ; then | ||
12827 | as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 | ||
12828 | fi | ||
12829 | openssl_engine=yes | ||
12830 | fi | ||
12831 | |||
12832 | |||
12833 | fi | ||
12834 | |||
12835 | |||
12836 | if test "x$openssl" = "xyes" ; then | ||
12837 | LIBS="-lcrypto $LIBS" | ||
12838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12839 | /* end confdefs.h. */ | ||
12840 | |||
12841 | /* Override any GCC internal prototype to avoid an error. | ||
12842 | Use char because int might match the return type of a GCC | ||
12843 | builtin and then its argument prototype would still apply. */ | ||
12844 | #ifdef __cplusplus | ||
12845 | extern "C" | ||
12846 | #endif | ||
12847 | char RAND_add (); | ||
12848 | int | ||
12849 | main () | ||
12850 | { | ||
12851 | return RAND_add (); | ||
12852 | ; | ||
12853 | return 0; | ||
12854 | } | ||
12855 | _ACEOF | ||
12856 | if ac_fn_c_try_link "$LINENO"; then : | ||
12857 | |||
12858 | else | ||
12859 | as_fn_error $? "*** working libcrypto not found, check config.log" "$LINENO" 5 | ||
12860 | fi | ||
12861 | rm -f core conftest.err conftest.$ac_objext \ | ||
12862 | conftest$ac_exeext conftest.$ac_ext | ||
12863 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
12864 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
12865 | |||
12866 | else | ||
12867 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
12868 | fi | ||
12869 | |||
12870 | |||
12871 | |||
12872 | # Determine OpenSSL header version | ||
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
12874 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
12875 | if test "$cross_compiling" = yes; then : | ||
12876 | |||
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12878 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12879 | |||
12880 | |||
12881 | else | ||
12882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12883 | /* end confdefs.h. */ | ||
12884 | |||
12885 | #include <stdlib.h> | ||
12886 | #include <stdio.h> | ||
12887 | #include <string.h> | ||
12888 | #include <openssl/opensslv.h> | ||
12889 | #define DATA "conftest.sslincver" | ||
12890 | |||
12891 | int | ||
12892 | main () | ||
12893 | { | ||
12894 | |||
12895 | FILE *fd; | ||
12896 | int rc; | ||
12897 | |||
12898 | fd = fopen(DATA,"w"); | ||
12899 | if(fd == NULL) | ||
12900 | exit(1); | ||
12901 | |||
12902 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
12903 | (unsigned long)OPENSSL_VERSION_NUMBER, | ||
12904 | OPENSSL_VERSION_TEXT)) < 0) | ||
12905 | exit(1); | ||
12906 | |||
12907 | exit(0); | ||
12908 | |||
12909 | ; | ||
12910 | return 0; | ||
12911 | } | ||
12912 | _ACEOF | ||
12913 | if ac_fn_c_try_run "$LINENO"; then : | ||
12914 | |||
12915 | ssl_header_ver=`cat conftest.sslincver` | ||
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
12917 | $as_echo "$ssl_header_ver" >&6; } | ||
12918 | |||
12919 | else | ||
12920 | |||
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12922 | $as_echo "not found" >&6; } | ||
12923 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
12924 | |||
12925 | fi | ||
12926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12927 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12928 | fi | ||
12929 | |||
12930 | |||
12931 | # Determining OpenSSL library version is version dependent. | ||
12932 | for ac_func in OpenSSL_version OpenSSL_version_num | ||
12933 | do : | ||
12934 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12935 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12936 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12937 | cat >>confdefs.h <<_ACEOF | ||
12938 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12939 | _ACEOF | ||
12940 | |||
12941 | fi | ||
12942 | done | ||
12943 | |||
12944 | |||
12945 | # Determine OpenSSL library version | ||
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
12947 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
12948 | if test "$cross_compiling" = yes; then : | ||
12949 | |||
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12951 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12952 | |||
12953 | |||
12954 | else | ||
12955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12956 | /* end confdefs.h. */ | ||
12957 | |||
12958 | #include <stdio.h> | ||
12959 | #include <string.h> | ||
12960 | #include <openssl/opensslv.h> | ||
12961 | #include <openssl/crypto.h> | ||
12962 | #define DATA "conftest.ssllibver" | ||
12963 | |||
12964 | int | ||
12965 | main () | ||
12966 | { | ||
12967 | |||
12968 | FILE *fd; | ||
12969 | int rc; | ||
12970 | |||
12971 | fd = fopen(DATA,"w"); | ||
12972 | if(fd == NULL) | ||
12973 | exit(1); | ||
12974 | #ifndef OPENSSL_VERSION | ||
12975 | # define OPENSSL_VERSION SSLEAY_VERSION | ||
12976 | #endif | ||
12977 | #ifndef HAVE_OPENSSL_VERSION | ||
12978 | # define OpenSSL_version SSLeay_version | ||
12979 | #endif | ||
12980 | #ifndef HAVE_OPENSSL_VERSION_NUM | ||
12981 | # define OpenSSL_version_num SSLeay | ||
12982 | #endif | ||
12983 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
12984 | (unsigned long)OpenSSL_version_num(), | ||
12985 | OpenSSL_version(OPENSSL_VERSION))) < 0) | ||
12986 | exit(1); | ||
12987 | |||
12988 | exit(0); | ||
12989 | |||
12990 | ; | ||
12991 | return 0; | ||
12992 | } | ||
12993 | _ACEOF | ||
12994 | if ac_fn_c_try_run "$LINENO"; then : | ||
12995 | |||
12996 | ssl_library_ver=`cat conftest.ssllibver` | ||
12997 | # Check version is supported. | ||
12998 | case "$ssl_library_ver" in | ||
12999 | 10000*|0*) | ||
13000 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
13001 | ;; | ||
13002 | 100*) ;; # 1.0.x | ||
13003 | 101000[0123456]*) | ||
13004 | # https://github.com/openssl/openssl/pull/4613 | ||
13005 | as_fn_error $? "OpenSSL 1.1.x versions prior to 1.1.0g have a bug that breaks their use with OpenSSH (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
13006 | ;; | ||
13007 | 101*) ;; # 1.1.x | ||
13008 | 200*) ;; # LibreSSL | ||
13009 | 300*) ;; # OpenSSL development branch. | ||
13010 | *) | ||
13011 | as_fn_error $? "Unknown/unsupported OpenSSL version (\"$ssl_library_ver\")" "$LINENO" 5 | ||
13012 | ;; | ||
13013 | esac | ||
13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
13015 | $as_echo "$ssl_library_ver" >&6; } | ||
13016 | |||
13017 | else | ||
13018 | |||
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
13020 | $as_echo "not found" >&6; } | ||
13021 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
13022 | |||
13023 | fi | ||
13024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13025 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13026 | fi | ||
13027 | |||
13028 | |||
13029 | # Sanity check OpenSSL headers | ||
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
13031 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
13032 | if test "$cross_compiling" = yes; then : | ||
13033 | |||
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
13035 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13036 | |||
13037 | |||
13038 | else | ||
13039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13040 | /* end confdefs.h. */ | ||
13041 | |||
13042 | #include <string.h> | ||
13043 | #include <openssl/opensslv.h> | ||
13044 | #include <openssl/crypto.h> | ||
13045 | |||
13046 | int | ||
13047 | main () | ||
13048 | { | ||
13049 | |||
13050 | #ifndef HAVE_OPENSSL_VERSION_NUM | ||
13051 | # define OpenSSL_version_num SSLeay | ||
13052 | #endif | ||
13053 | exit(OpenSSL_version_num() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
13054 | |||
13055 | ; | ||
13056 | return 0; | ||
13057 | } | ||
13058 | _ACEOF | ||
13059 | if ac_fn_c_try_run "$LINENO"; then : | ||
13060 | |||
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13062 | $as_echo "yes" >&6; } | ||
13063 | |||
13064 | else | ||
13065 | |||
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13067 | $as_echo "no" >&6; } | ||
13068 | if test "x$openssl_check_nonfatal" = "x"; then | ||
13069 | as_fn_error $? "Your OpenSSL headers do not match your | ||
13070 | library. Check config.log for details. | ||
13071 | If you are sure your installation is consistent, you can disable the check | ||
13072 | by running \"./configure --without-openssl-header-check\". | ||
13073 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
13074 | " "$LINENO" 5 | ||
13075 | else | ||
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
13077 | library. Check config.log for details. | ||
13078 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
13079 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
13080 | library. Check config.log for details. | ||
13081 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
13082 | fi | ||
13083 | |||
13084 | fi | ||
13085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13086 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13087 | fi | ||
13088 | |||
13089 | |||
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
13091 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
13092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13093 | /* end confdefs.h. */ | ||
13094 | #include <openssl/err.h> | ||
13095 | int | ||
13096 | main () | ||
13097 | { | ||
13098 | ERR_load_crypto_strings(); | ||
13099 | ; | ||
13100 | return 0; | ||
13101 | } | ||
13102 | _ACEOF | ||
13103 | if ac_fn_c_try_link "$LINENO"; then : | ||
13104 | |||
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13106 | $as_echo "yes" >&6; } | ||
13107 | |||
13108 | else | ||
13109 | |||
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13111 | $as_echo "no" >&6; } | ||
13112 | saved_LIBS="$LIBS" | ||
13113 | LIBS="$LIBS -ldl" | ||
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
13115 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13117 | /* end confdefs.h. */ | ||
13118 | #include <openssl/err.h> | ||
13119 | int | ||
13120 | main () | ||
13121 | { | ||
13122 | ERR_load_crypto_strings(); | ||
13123 | ; | ||
13124 | return 0; | ||
13125 | } | ||
13126 | _ACEOF | ||
13127 | if ac_fn_c_try_link "$LINENO"; then : | ||
13128 | |||
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13130 | $as_echo "yes" >&6; } | ||
13131 | |||
13132 | else | ||
13133 | |||
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13135 | $as_echo "no" >&6; } | ||
13136 | LIBS="$saved_LIBS" | ||
13137 | |||
13138 | |||
13139 | fi | ||
13140 | rm -f core conftest.err conftest.$ac_objext \ | ||
13141 | conftest$ac_exeext conftest.$ac_ext | ||
13142 | |||
13143 | |||
13144 | fi | ||
13145 | rm -f core conftest.err conftest.$ac_objext \ | ||
13146 | conftest$ac_exeext conftest.$ac_ext | ||
13147 | |||
13148 | for ac_func in \ | ||
13149 | BN_is_prime_ex \ | ||
13150 | DSA_generate_parameters_ex \ | ||
13151 | EVP_CIPHER_CTX_ctrl \ | ||
13152 | EVP_DigestFinal_ex \ | ||
13153 | EVP_DigestInit_ex \ | ||
13154 | EVP_MD_CTX_cleanup \ | ||
13155 | EVP_MD_CTX_copy_ex \ | ||
13156 | EVP_MD_CTX_init \ | ||
13157 | HMAC_CTX_init \ | ||
13158 | RSA_generate_key_ex \ | ||
13159 | RSA_get_default_method \ | ||
13160 | |||
13161 | do : | ||
13162 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13163 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13164 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13165 | cat >>confdefs.h <<_ACEOF | ||
13166 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13167 | _ACEOF | ||
13168 | |||
13169 | fi | ||
13170 | done | ||
13171 | |||
13172 | |||
13173 | # OpenSSL_add_all_algorithms may be a macro. | ||
13174 | ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_algorithms" "ac_cv_func_OpenSSL_add_all_algorithms" | ||
13175 | if test "x$ac_cv_func_OpenSSL_add_all_algorithms" = xyes; then : | ||
13176 | |||
13177 | $as_echo "#define HAVE_OPENSSL_ADD_ALL_ALGORITHMS 1" >>confdefs.h | ||
13178 | |||
13179 | else | ||
13180 | ac_fn_c_check_decl "$LINENO" "OpenSSL_add_all_algorithms" "ac_cv_have_decl_OpenSSL_add_all_algorithms" "#include <openssl/evp.h> | ||
13181 | |||
13182 | " | ||
13183 | if test "x$ac_cv_have_decl_OpenSSL_add_all_algorithms" = xyes; then : | ||
13184 | |||
13185 | $as_echo "#define HAVE_OPENSSL_ADD_ALL_ALGORITHMS 1" >>confdefs.h | ||
13186 | |||
13187 | fi | ||
13188 | |||
13189 | |||
13190 | fi | ||
13191 | |||
13192 | |||
13193 | # LibreSSL/OpenSSL 1.1x API | ||
13194 | for ac_func in \ | ||
13195 | OPENSSL_init_crypto \ | ||
13196 | DH_get0_key \ | ||
13197 | DH_get0_pqg \ | ||
13198 | DH_set0_key \ | ||
13199 | DH_set_length \ | ||
13200 | DH_set0_pqg \ | ||
13201 | DSA_get0_key \ | ||
13202 | DSA_get0_pqg \ | ||
13203 | DSA_set0_key \ | ||
13204 | DSA_set0_pqg \ | ||
13205 | DSA_SIG_get0 \ | ||
13206 | DSA_SIG_set0 \ | ||
13207 | ECDSA_SIG_get0 \ | ||
13208 | ECDSA_SIG_set0 \ | ||
13209 | EVP_CIPHER_CTX_iv \ | ||
13210 | EVP_CIPHER_CTX_iv_noconst \ | ||
13211 | EVP_CIPHER_CTX_get_iv \ | ||
13212 | EVP_CIPHER_CTX_set_iv \ | ||
13213 | RSA_get0_crt_params \ | ||
13214 | RSA_get0_factors \ | ||
13215 | RSA_get0_key \ | ||
13216 | RSA_set0_crt_params \ | ||
13217 | RSA_set0_factors \ | ||
13218 | RSA_set0_key \ | ||
13219 | RSA_meth_free \ | ||
13220 | RSA_meth_dup \ | ||
13221 | RSA_meth_set1_name \ | ||
13222 | RSA_meth_get_finish \ | ||
13223 | RSA_meth_set_priv_enc \ | ||
13224 | RSA_meth_set_priv_dec \ | ||
13225 | RSA_meth_set_finish \ | ||
13226 | EVP_PKEY_get0_RSA \ | ||
13227 | EVP_MD_CTX_new \ | ||
13228 | EVP_MD_CTX_free \ | ||
13229 | |||
13230 | do : | ||
13231 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13232 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13233 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13234 | cat >>confdefs.h <<_ACEOF | ||
13235 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13236 | _ACEOF | ||
13237 | |||
13238 | fi | ||
13239 | done | ||
13240 | |||
13241 | |||
13242 | if test "x$openssl_engine" = "xyes" ; then | ||
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
13244 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
13245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13246 | /* end confdefs.h. */ | ||
13247 | |||
13248 | #include <openssl/engine.h> | ||
13249 | |||
13250 | int | ||
13251 | main () | ||
13252 | { | ||
13253 | |||
13254 | ENGINE_load_builtin_engines(); | ||
13255 | ENGINE_register_all_complete(); | ||
13256 | |||
13257 | ; | ||
13258 | return 0; | ||
13259 | } | ||
13260 | _ACEOF | ||
13261 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13263 | $as_echo "yes" >&6; } | ||
13264 | |||
13265 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
13266 | |||
13267 | |||
13268 | else | ||
13269 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
13270 | |||
13271 | fi | ||
13272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13273 | fi | ||
13274 | |||
13275 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
13277 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
13278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13279 | /* end confdefs.h. */ | ||
13280 | |||
13281 | #include <string.h> | ||
13282 | #include <openssl/evp.h> | ||
13283 | |||
13284 | int | ||
13285 | main () | ||
13286 | { | ||
13287 | |||
13288 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
13289 | |||
13290 | ; | ||
13291 | return 0; | ||
13292 | } | ||
13293 | _ACEOF | ||
13294 | if ac_fn_c_try_link "$LINENO"; then : | ||
13295 | |||
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13297 | $as_echo "no" >&6; } | ||
13298 | |||
13299 | else | ||
13300 | |||
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13302 | $as_echo "yes" >&6; } | ||
13303 | |||
13304 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
13305 | |||
13306 | |||
13307 | |||
13308 | fi | ||
13309 | rm -f core conftest.err conftest.$ac_objext \ | ||
13310 | conftest$ac_exeext conftest.$ac_ext | ||
13311 | |||
13312 | # Check for OpenSSL with EVP_aes_*ctr | ||
13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
13314 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
13315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13316 | /* end confdefs.h. */ | ||
13317 | |||
13318 | #include <string.h> | ||
13319 | #include <openssl/evp.h> | ||
13320 | |||
13321 | int | ||
13322 | main () | ||
13323 | { | ||
13324 | |||
13325 | exit(EVP_aes_128_ctr() == NULL || | ||
13326 | EVP_aes_192_cbc() == NULL || | ||
13327 | EVP_aes_256_cbc() == NULL); | ||
13328 | |||
13329 | ; | ||
13330 | return 0; | ||
13331 | } | ||
13332 | _ACEOF | ||
13333 | if ac_fn_c_try_link "$LINENO"; then : | ||
13334 | |||
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13336 | $as_echo "yes" >&6; } | ||
13337 | |||
13338 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
13339 | |||
13340 | |||
13341 | else | ||
13342 | |||
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13344 | $as_echo "no" >&6; } | ||
13345 | |||
13346 | |||
13347 | fi | ||
13348 | rm -f core conftest.err conftest.$ac_objext \ | ||
13349 | conftest$ac_exeext conftest.$ac_ext | ||
13350 | |||
13351 | # Check for OpenSSL with EVP_aes_*gcm | ||
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
13353 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
13354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13355 | /* end confdefs.h. */ | ||
13356 | |||
13357 | #include <string.h> | ||
13358 | #include <openssl/evp.h> | ||
13359 | |||
13360 | int | ||
13361 | main () | ||
13362 | { | ||
13363 | |||
13364 | exit(EVP_aes_128_gcm() == NULL || | ||
13365 | EVP_aes_256_gcm() == NULL || | ||
13366 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
13367 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
13368 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
13369 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
13370 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
13371 | |||
13372 | ; | ||
13373 | return 0; | ||
13374 | } | ||
13375 | _ACEOF | ||
13376 | if ac_fn_c_try_link "$LINENO"; then : | ||
13377 | |||
13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13379 | $as_echo "yes" >&6; } | ||
13380 | |||
13381 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
13382 | |||
13383 | |||
13384 | else | ||
13385 | |||
13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13387 | $as_echo "no" >&6; } | ||
13388 | unsupported_algorithms="$unsupported_cipers \ | ||
13389 | aes128-gcm@openssh.com \ | ||
13390 | aes256-gcm@openssh.com" | ||
13391 | |||
13392 | |||
13393 | fi | ||
13394 | rm -f core conftest.err conftest.$ac_objext \ | ||
13395 | conftest$ac_exeext conftest.$ac_ext | ||
13396 | |||
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
13398 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
13399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13400 | /* end confdefs.h. */ | ||
13401 | |||
13402 | #include <string.h> | ||
13403 | #include <openssl/evp.h> | ||
13404 | |||
13405 | int | ||
13406 | main () | ||
13407 | { | ||
13408 | |||
13409 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
13410 | exit(0); | ||
13411 | |||
13412 | ; | ||
13413 | return 0; | ||
13414 | } | ||
13415 | _ACEOF | ||
13416 | if ac_fn_c_try_link "$LINENO"; then : | ||
13417 | |||
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13419 | $as_echo "yes" >&6; } | ||
13420 | |||
13421 | else | ||
13422 | |||
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13424 | $as_echo "no" >&6; } | ||
13425 | |||
13426 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
13427 | |||
13428 | |||
13429 | |||
13430 | fi | ||
13431 | rm -f core conftest.err conftest.$ac_objext \ | ||
13432 | conftest$ac_exeext conftest.$ac_ext | ||
13433 | |||
13434 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
13435 | # because the system crypt() is more featureful. | ||
13436 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13438 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13439 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13440 | $as_echo_n "(cached) " >&6 | ||
13441 | else | ||
13442 | ac_check_lib_save_LIBS=$LIBS | ||
13443 | LIBS="-lcrypt $LIBS" | ||
13444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13445 | /* end confdefs.h. */ | ||
13446 | |||
13447 | /* Override any GCC internal prototype to avoid an error. | ||
13448 | Use char because int might match the return type of a GCC | ||
13449 | builtin and then its argument prototype would still apply. */ | ||
13450 | #ifdef __cplusplus | ||
13451 | extern "C" | ||
13452 | #endif | ||
13453 | char crypt (); | ||
13454 | int | ||
13455 | main () | ||
13456 | { | ||
13457 | return crypt (); | ||
13458 | ; | ||
13459 | return 0; | ||
13460 | } | ||
13461 | _ACEOF | ||
13462 | if ac_fn_c_try_link "$LINENO"; then : | ||
13463 | ac_cv_lib_crypt_crypt=yes | ||
13464 | else | ||
13465 | ac_cv_lib_crypt_crypt=no | ||
13466 | fi | ||
13467 | rm -f core conftest.err conftest.$ac_objext \ | ||
13468 | conftest$ac_exeext conftest.$ac_ext | ||
13469 | LIBS=$ac_check_lib_save_LIBS | ||
13470 | fi | ||
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13472 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13473 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13474 | cat >>confdefs.h <<_ACEOF | ||
13475 | #define HAVE_LIBCRYPT 1 | ||
13476 | _ACEOF | ||
13477 | |||
13478 | LIBS="-lcrypt $LIBS" | ||
13479 | |||
13480 | fi | ||
13481 | |||
13482 | fi | ||
13483 | |||
13484 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
13485 | # version in OpenSSL. | ||
13486 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13488 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13489 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13490 | $as_echo_n "(cached) " >&6 | ||
13491 | else | ||
13492 | ac_check_lib_save_LIBS=$LIBS | ||
13493 | LIBS="-lcrypt $LIBS" | ||
13494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13495 | /* end confdefs.h. */ | ||
13496 | |||
13497 | /* Override any GCC internal prototype to avoid an error. | ||
13498 | Use char because int might match the return type of a GCC | ||
13499 | builtin and then its argument prototype would still apply. */ | ||
13500 | #ifdef __cplusplus | ||
13501 | extern "C" | ||
13502 | #endif | ||
13503 | char crypt (); | ||
13504 | int | ||
13505 | main () | ||
13506 | { | ||
13507 | return crypt (); | ||
13508 | ; | ||
13509 | return 0; | ||
13510 | } | ||
13511 | _ACEOF | ||
13512 | if ac_fn_c_try_link "$LINENO"; then : | ||
13513 | ac_cv_lib_crypt_crypt=yes | ||
13514 | else | ||
13515 | ac_cv_lib_crypt_crypt=no | ||
13516 | fi | ||
13517 | rm -f core conftest.err conftest.$ac_objext \ | ||
13518 | conftest$ac_exeext conftest.$ac_ext | ||
13519 | LIBS=$ac_check_lib_save_LIBS | ||
13520 | fi | ||
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13522 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13523 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13524 | LIBS="$LIBS -lcrypt" | ||
13525 | fi | ||
13526 | |||
13527 | fi | ||
13528 | for ac_func in crypt DES_crypt | ||
13529 | do : | ||
13530 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13531 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13532 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13533 | cat >>confdefs.h <<_ACEOF | ||
13534 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13535 | _ACEOF | ||
13536 | |||
13537 | fi | ||
13538 | done | ||
13539 | |||
13540 | |||
13541 | # Check for SHA256, SHA384 and SHA512 support in OpenSSL | ||
13542 | for ac_func in EVP_sha256 EVP_sha384 EVP_sha512 | ||
13543 | do : | ||
13544 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13545 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13546 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13547 | cat >>confdefs.h <<_ACEOF | ||
13548 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13549 | _ACEOF | ||
13550 | |||
13551 | fi | ||
13552 | done | ||
13553 | |||
13554 | |||
13555 | # Check complete ECC support in OpenSSL | ||
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
13557 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } | ||
13558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13559 | /* end confdefs.h. */ | ||
13560 | |||
13561 | #include <openssl/ec.h> | ||
13562 | #include <openssl/ecdh.h> | ||
13563 | #include <openssl/ecdsa.h> | ||
13564 | #include <openssl/evp.h> | ||
13565 | #include <openssl/objects.h> | ||
13566 | #include <openssl/opensslv.h> | ||
13567 | |||
13568 | int | ||
13569 | main () | ||
13570 | { | ||
13571 | |||
13572 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
13573 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
13574 | |||
13575 | ; | ||
13576 | return 0; | ||
13577 | } | ||
13578 | _ACEOF | ||
13579 | if ac_fn_c_try_link "$LINENO"; then : | ||
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13581 | $as_echo "yes" >&6; } | ||
13582 | enable_nistp256=1 | ||
13583 | else | ||
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13585 | $as_echo "no" >&6; } | ||
13586 | |||
13587 | fi | ||
13588 | rm -f core conftest.err conftest.$ac_objext \ | ||
13589 | conftest$ac_exeext conftest.$ac_ext | ||
13590 | |||
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 | ||
13592 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } | ||
13593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13594 | /* end confdefs.h. */ | ||
13595 | |||
13596 | #include <openssl/ec.h> | ||
13597 | #include <openssl/ecdh.h> | ||
13598 | #include <openssl/ecdsa.h> | ||
13599 | #include <openssl/evp.h> | ||
13600 | #include <openssl/objects.h> | ||
13601 | #include <openssl/opensslv.h> | ||
13602 | |||
13603 | int | ||
13604 | main () | ||
13605 | { | ||
13606 | |||
13607 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
13608 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
13609 | |||
13610 | ; | ||
13611 | return 0; | ||
13612 | } | ||
13613 | _ACEOF | ||
13614 | if ac_fn_c_try_link "$LINENO"; then : | ||
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13616 | $as_echo "yes" >&6; } | ||
13617 | enable_nistp384=1 | ||
13618 | else | ||
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13620 | $as_echo "no" >&6; } | ||
13621 | |||
13622 | fi | ||
13623 | rm -f core conftest.err conftest.$ac_objext \ | ||
13624 | conftest$ac_exeext conftest.$ac_ext | ||
13625 | |||
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 | ||
13627 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } | ||
13628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13629 | /* end confdefs.h. */ | ||
13630 | |||
13631 | #include <openssl/ec.h> | ||
13632 | #include <openssl/ecdh.h> | ||
13633 | #include <openssl/ecdsa.h> | ||
13634 | #include <openssl/evp.h> | ||
13635 | #include <openssl/objects.h> | ||
13636 | #include <openssl/opensslv.h> | ||
13637 | |||
13638 | int | ||
13639 | main () | ||
13640 | { | ||
13641 | |||
13642 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13643 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13644 | |||
13645 | ; | ||
13646 | return 0; | ||
13647 | } | ||
13648 | _ACEOF | ||
13649 | if ac_fn_c_try_link "$LINENO"; then : | ||
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13651 | $as_echo "yes" >&6; } | ||
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
13653 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } | ||
13654 | if test "$cross_compiling" = yes; then : | ||
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 | ||
13656 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
13657 | enable_nistp521=1 | ||
13658 | |||
13659 | else | ||
13660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13661 | /* end confdefs.h. */ | ||
13662 | |||
13663 | #include <openssl/ec.h> | ||
13664 | #include <openssl/ecdh.h> | ||
13665 | #include <openssl/ecdsa.h> | ||
13666 | #include <openssl/evp.h> | ||
13667 | #include <openssl/objects.h> | ||
13668 | #include <openssl/opensslv.h> | ||
13669 | |||
13670 | int | ||
13671 | main () | ||
13672 | { | ||
13673 | |||
13674 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13675 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13676 | exit(e == NULL || m == NULL); | ||
13677 | |||
13678 | ; | ||
13679 | return 0; | ||
13680 | } | ||
13681 | _ACEOF | ||
13682 | if ac_fn_c_try_run "$LINENO"; then : | ||
13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13684 | $as_echo "yes" >&6; } | ||
13685 | enable_nistp521=1 | ||
13686 | else | ||
13687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13688 | $as_echo "no" >&6; } | ||
13689 | fi | ||
13690 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13691 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13692 | fi | ||
13693 | |||
13694 | else | ||
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13696 | $as_echo "no" >&6; } | ||
13697 | |||
13698 | fi | ||
13699 | rm -f core conftest.err conftest.$ac_objext \ | ||
13700 | conftest$ac_exeext conftest.$ac_ext | ||
13701 | |||
13702 | COMMENT_OUT_ECC="#no ecc#" | ||
13703 | TEST_SSH_ECC=no | ||
13704 | |||
13705 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
13706 | test x$enable_nistp521 = x1; then | ||
13707 | |||
13708 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
13709 | |||
13710 | for ac_func in EC_KEY_METHOD_new | ||
13711 | do : | ||
13712 | ac_fn_c_check_func "$LINENO" "EC_KEY_METHOD_new" "ac_cv_func_EC_KEY_METHOD_new" | ||
13713 | if test "x$ac_cv_func_EC_KEY_METHOD_new" = xyes; then : | ||
13714 | cat >>confdefs.h <<_ACEOF | ||
13715 | #define HAVE_EC_KEY_METHOD_NEW 1 | ||
13716 | _ACEOF | ||
13717 | |||
13718 | fi | ||
13719 | done | ||
13720 | |||
13721 | openssl_ecc=yes | ||
13722 | else | ||
13723 | openssl_ecc=no | ||
13724 | fi | ||
13725 | if test x$enable_nistp256 = x1; then | ||
13726 | |||
13727 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h | ||
13728 | |||
13729 | TEST_SSH_ECC=yes | ||
13730 | COMMENT_OUT_ECC="" | ||
13731 | else | ||
13732 | unsupported_algorithms="$unsupported_algorithms \ | ||
13733 | ecdsa-sha2-nistp256 \ | ||
13734 | ecdh-sha2-nistp256 \ | ||
13735 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
13736 | fi | ||
13737 | if test x$enable_nistp384 = x1; then | ||
13738 | |||
13739 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h | ||
13740 | |||
13741 | TEST_SSH_ECC=yes | ||
13742 | COMMENT_OUT_ECC="" | ||
13743 | else | ||
13744 | unsupported_algorithms="$unsupported_algorithms \ | ||
13745 | ecdsa-sha2-nistp384 \ | ||
13746 | ecdh-sha2-nistp384 \ | ||
13747 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
13748 | fi | ||
13749 | if test x$enable_nistp521 = x1; then | ||
13750 | |||
13751 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h | ||
13752 | |||
13753 | TEST_SSH_ECC=yes | ||
13754 | COMMENT_OUT_ECC="" | ||
13755 | else | ||
13756 | unsupported_algorithms="$unsupported_algorithms \ | ||
13757 | ecdh-sha2-nistp521 \ | ||
13758 | ecdsa-sha2-nistp521 \ | ||
13759 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
13760 | fi | ||
13761 | |||
13762 | |||
13763 | |||
13764 | else | ||
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13766 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13767 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13768 | $as_echo_n "(cached) " >&6 | ||
13769 | else | ||
13770 | ac_check_lib_save_LIBS=$LIBS | ||
13771 | LIBS="-lcrypt $LIBS" | ||
13772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13773 | /* end confdefs.h. */ | ||
13774 | |||
13775 | /* Override any GCC internal prototype to avoid an error. | ||
13776 | Use char because int might match the return type of a GCC | ||
13777 | builtin and then its argument prototype would still apply. */ | ||
13778 | #ifdef __cplusplus | ||
13779 | extern "C" | ||
13780 | #endif | ||
13781 | char crypt (); | ||
13782 | int | ||
13783 | main () | ||
13784 | { | ||
13785 | return crypt (); | ||
13786 | ; | ||
13787 | return 0; | ||
13788 | } | ||
13789 | _ACEOF | ||
13790 | if ac_fn_c_try_link "$LINENO"; then : | ||
13791 | ac_cv_lib_crypt_crypt=yes | ||
13792 | else | ||
13793 | ac_cv_lib_crypt_crypt=no | ||
13794 | fi | ||
13795 | rm -f core conftest.err conftest.$ac_objext \ | ||
13796 | conftest$ac_exeext conftest.$ac_ext | ||
13797 | LIBS=$ac_check_lib_save_LIBS | ||
13798 | fi | ||
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13800 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13801 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13802 | LIBS="$LIBS -lcrypt" | ||
13803 | fi | ||
13804 | |||
13805 | for ac_func in crypt | ||
13806 | do : | ||
13807 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | ||
13808 | if test "x$ac_cv_func_crypt" = xyes; then : | ||
13809 | cat >>confdefs.h <<_ACEOF | ||
13810 | #define HAVE_CRYPT 1 | ||
13811 | _ACEOF | ||
13812 | |||
13813 | fi | ||
13814 | done | ||
13815 | |||
13816 | fi | ||
13817 | |||
13818 | # PKCS11/U2F depend on OpenSSL and dlopen(). | ||
13819 | enable_pkcs11=yes | ||
13820 | enable_sk=yes | ||
13821 | if test "x$openssl" != "xyes" ; then | ||
13822 | enable_pkcs11="disabled; missing libcrypto" | ||
13823 | enable_sk="disabled; missing libcrypto" | ||
13824 | fi | ||
13825 | if test "x$openssl_ecc" != "xyes" ; then | ||
13826 | enable_sk="disabled; OpenSSL has no ECC support" | ||
13827 | fi | ||
13828 | if test "x$ac_cv_func_dlopen" != "xyes" ; then | ||
13829 | enable_pkcs11="disabled; missing dlopen(3)" | ||
13830 | enable_sk="disabled; missing dlopen(3)" | ||
13831 | fi | ||
13832 | if test "x$ac_cv_have_decl_RTLD_NOW" != "xyes" ; then | ||
13833 | enable_pkcs11="disabled; missing RTLD_NOW" | ||
13834 | enable_sk="disabled; missing RTLD_NOW" | ||
13835 | fi | ||
13836 | if test ! -z "$disable_pkcs11" ; then | ||
13837 | enable_pkcs11="disabled by user" | ||
13838 | fi | ||
13839 | if test ! -z "$disable_sk" ; then | ||
13840 | enable_sk="disabled by user" | ||
13841 | fi | ||
13842 | |||
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PKCS11" >&5 | ||
13844 | $as_echo_n "checking whether to enable PKCS11... " >&6; } | ||
13845 | if test "x$enable_pkcs11" = "xyes" ; then | ||
13846 | |||
13847 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
13848 | |||
13849 | fi | ||
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pkcs11" >&5 | ||
13851 | $as_echo "$enable_pkcs11" >&6; } | ||
13852 | |||
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable U2F" >&5 | ||
13854 | $as_echo_n "checking whether to enable U2F... " >&6; } | ||
13855 | if test "x$enable_sk" = "xyes" ; then | ||
13856 | |||
13857 | $as_echo "#define ENABLE_SK /**/" >>confdefs.h | ||
13858 | |||
13859 | fi | ||
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5 | ||
13861 | $as_echo "$enable_sk" >&6; } | ||
13862 | |||
13863 | # Now check for built-in security key support. | ||
13864 | if test "x$enable_sk" = "xyes" -a "x$enable_sk_internal" = "xyes" ; then | ||
13865 | if test -n "$ac_tool_prefix"; then | ||
13866 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
13867 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13869 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13870 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
13871 | $as_echo_n "(cached) " >&6 | ||
13872 | else | ||
13873 | case $PKGCONFIG in | ||
13874 | [\\/]* | ?:[\\/]*) | ||
13875 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
13876 | ;; | ||
13877 | *) | ||
13878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13879 | for as_dir in $PATH | ||
13880 | do | ||
13881 | IFS=$as_save_IFS | ||
13882 | test -z "$as_dir" && as_dir=. | ||
13883 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13885 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
13886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13887 | break 2 | ||
13888 | fi | ||
13889 | done | ||
13890 | done | ||
13891 | IFS=$as_save_IFS | ||
13892 | |||
13893 | ;; | ||
13894 | esac | ||
13895 | fi | ||
13896 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
13897 | if test -n "$PKGCONFIG"; then | ||
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
13899 | $as_echo "$PKGCONFIG" >&6; } | ||
13900 | else | ||
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13902 | $as_echo "no" >&6; } | ||
13903 | fi | ||
13904 | |||
13905 | |||
13906 | fi | ||
13907 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
13908 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
13909 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
13910 | set dummy pkg-config; ac_word=$2 | ||
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13912 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13913 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
13914 | $as_echo_n "(cached) " >&6 | ||
13915 | else | ||
13916 | case $ac_pt_PKGCONFIG in | ||
13917 | [\\/]* | ?:[\\/]*) | ||
13918 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
13919 | ;; | ||
13920 | *) | ||
13921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13922 | for as_dir in $PATH | ||
13923 | do | ||
13924 | IFS=$as_save_IFS | ||
13925 | test -z "$as_dir" && as_dir=. | ||
13926 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
13928 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
13929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13930 | break 2 | ||
13931 | fi | ||
13932 | done | ||
13933 | done | ||
13934 | IFS=$as_save_IFS | ||
13935 | |||
13936 | ;; | ||
13937 | esac | ||
13938 | fi | ||
13939 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
13940 | if test -n "$ac_pt_PKGCONFIG"; then | ||
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
13942 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
13943 | else | ||
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13945 | $as_echo "no" >&6; } | ||
13946 | fi | ||
13947 | |||
13948 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
13949 | PKGCONFIG="no" | ||
13950 | else | ||
13951 | case $cross_compiling:$ac_tool_warned in | ||
13952 | yes:) | ||
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13954 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13955 | ac_tool_warned=yes ;; | ||
13956 | esac | ||
13957 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
13958 | fi | ||
13959 | else | ||
13960 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
13961 | fi | ||
13962 | |||
13963 | use_pkgconfig_for_libfido2= | ||
13964 | if test "x$PKGCONFIG" != "xno"; then | ||
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libfido2" >&5 | ||
13966 | $as_echo_n "checking if $PKGCONFIG knows about libfido2... " >&6; } | ||
13967 | if "$PKGCONFIG" libfido2; then | ||
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13969 | $as_echo "yes" >&6; } | ||
13970 | use_pkgconfig_for_libfido2=yes | ||
13971 | else | ||
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13973 | $as_echo "no" >&6; } | ||
13974 | fi | ||
13975 | fi | ||
13976 | if test "x$use_pkgconfig_for_libfido2" = "xyes"; then | ||
13977 | LIBFIDO2=`$PKGCONFIG --libs libfido2` | ||
13978 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libfido2`" | ||
13979 | else | ||
13980 | LIBFIDO2="-lfido2 -lcbor" | ||
13981 | fi | ||
13982 | OTHERLIBS=`echo $LIBFIDO2 | sed 's/-lfido2//'` | ||
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fido_init in -lfido2" >&5 | ||
13984 | $as_echo_n "checking for fido_init in -lfido2... " >&6; } | ||
13985 | if ${ac_cv_lib_fido2_fido_init+:} false; then : | ||
13986 | $as_echo_n "(cached) " >&6 | ||
13987 | else | ||
13988 | ac_check_lib_save_LIBS=$LIBS | ||
13989 | LIBS="-lfido2 $OTHERLIBS | ||
13990 | $LIBS" | ||
13991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13992 | /* end confdefs.h. */ | ||
13993 | |||
13994 | /* Override any GCC internal prototype to avoid an error. | ||
13995 | Use char because int might match the return type of a GCC | ||
13996 | builtin and then its argument prototype would still apply. */ | ||
13997 | #ifdef __cplusplus | ||
13998 | extern "C" | ||
13999 | #endif | ||
14000 | char fido_init (); | ||
14001 | int | ||
14002 | main () | ||
14003 | { | ||
14004 | return fido_init (); | ||
14005 | ; | ||
14006 | return 0; | ||
14007 | } | ||
14008 | _ACEOF | ||
14009 | if ac_fn_c_try_link "$LINENO"; then : | ||
14010 | ac_cv_lib_fido2_fido_init=yes | ||
14011 | else | ||
14012 | ac_cv_lib_fido2_fido_init=no | ||
14013 | fi | ||
14014 | rm -f core conftest.err conftest.$ac_objext \ | ||
14015 | conftest$ac_exeext conftest.$ac_ext | ||
14016 | LIBS=$ac_check_lib_save_LIBS | ||
14017 | fi | ||
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fido2_fido_init" >&5 | ||
14019 | $as_echo "$ac_cv_lib_fido2_fido_init" >&6; } | ||
14020 | if test "x$ac_cv_lib_fido2_fido_init" = xyes; then : | ||
14021 | |||
14022 | |||
14023 | |||
14024 | $as_echo "#define ENABLE_SK_INTERNAL /**/" >>confdefs.h | ||
14025 | |||
14026 | enable_sk="built-in" | ||
14027 | |||
14028 | fi | ||
14029 | |||
14030 | fi | ||
14031 | |||
14032 | for ac_func in \ | ||
14033 | arc4random \ | ||
14034 | arc4random_buf \ | ||
14035 | arc4random_stir \ | ||
14036 | arc4random_uniform \ | ||
14037 | |||
14038 | do : | ||
14039 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14040 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
14041 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
14042 | cat >>confdefs.h <<_ACEOF | ||
14043 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14044 | _ACEOF | ||
14045 | |||
14046 | fi | ||
14047 | done | ||
14048 | |||
14049 | |||
14050 | saved_LIBS="$LIBS" | ||
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
14052 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
14053 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
14054 | $as_echo_n "(cached) " >&6 | ||
14055 | else | ||
14056 | ac_check_lib_save_LIBS=$LIBS | ||
14057 | LIBS="-liaf $LIBS" | ||
14058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14059 | /* end confdefs.h. */ | ||
14060 | |||
14061 | /* Override any GCC internal prototype to avoid an error. | ||
14062 | Use char because int might match the return type of a GCC | ||
14063 | builtin and then its argument prototype would still apply. */ | ||
14064 | #ifdef __cplusplus | ||
14065 | extern "C" | ||
14066 | #endif | ||
14067 | char ia_openinfo (); | ||
14068 | int | ||
14069 | main () | ||
14070 | { | ||
14071 | return ia_openinfo (); | ||
14072 | ; | ||
14073 | return 0; | ||
14074 | } | ||
14075 | _ACEOF | ||
14076 | if ac_fn_c_try_link "$LINENO"; then : | ||
14077 | ac_cv_lib_iaf_ia_openinfo=yes | ||
14078 | else | ||
14079 | ac_cv_lib_iaf_ia_openinfo=no | ||
14080 | fi | ||
14081 | rm -f core conftest.err conftest.$ac_objext \ | ||
14082 | conftest$ac_exeext conftest.$ac_ext | ||
14083 | LIBS=$ac_check_lib_save_LIBS | ||
14084 | fi | ||
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
14086 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
14087 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
14088 | |||
14089 | LIBS="$LIBS -liaf" | ||
14090 | for ac_func in set_id | ||
14091 | do : | ||
14092 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
14093 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
14094 | cat >>confdefs.h <<_ACEOF | ||
14095 | #define HAVE_SET_ID 1 | ||
14096 | _ACEOF | ||
14097 | SSHDLIBS="$SSHDLIBS -liaf" | ||
14098 | |||
14099 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
14100 | |||
14101 | |||
14102 | fi | ||
14103 | done | ||
14104 | |||
14105 | |||
14106 | fi | ||
14107 | |||
14108 | LIBS="$saved_LIBS" | ||
14109 | |||
14110 | ### Configure cryptographic random number support | ||
14111 | |||
14112 | # Check whether OpenSSL seeds itself | ||
14113 | if test "x$openssl" = "xyes" ; then | ||
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
14115 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
14116 | if test "$cross_compiling" = yes; then : | ||
14117 | |||
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14119 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14120 | # This is safe, since we will fatal() at runtime if | ||
14121 | # OpenSSL is not seeded correctly. | ||
14122 | OPENSSL_SEEDS_ITSELF=yes | ||
14123 | |||
14124 | |||
14125 | else | ||
14126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14127 | /* end confdefs.h. */ | ||
14128 | |||
14129 | #include <string.h> | ||
14130 | #include <openssl/rand.h> | ||
14131 | |||
14132 | int | ||
14133 | main () | ||
14134 | { | ||
14135 | |||
14136 | exit(RAND_status() == 1 ? 0 : 1); | ||
14137 | |||
14138 | ; | ||
14139 | return 0; | ||
14140 | } | ||
14141 | _ACEOF | ||
14142 | if ac_fn_c_try_run "$LINENO"; then : | ||
14143 | |||
14144 | OPENSSL_SEEDS_ITSELF=yes | ||
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14146 | $as_echo "yes" >&6; } | ||
14147 | |||
14148 | else | ||
14149 | |||
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14151 | $as_echo "no" >&6; } | ||
14152 | |||
14153 | fi | ||
14154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14155 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14156 | fi | ||
14157 | |||
14158 | fi | ||
14159 | |||
14160 | # PRNGD TCP socket | ||
14161 | |||
14162 | # Check whether --with-prngd-port was given. | ||
14163 | if test "${with_prngd_port+set}" = set; then : | ||
14164 | withval=$with_prngd_port; | ||
14165 | case "$withval" in | ||
14166 | no) | ||
14167 | withval="" | ||
14168 | ;; | ||
14169 | [0-9]*) | ||
14170 | ;; | ||
14171 | *) | ||
14172 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
14173 | ;; | ||
14174 | esac | ||
14175 | if test ! -z "$withval" ; then | ||
14176 | PRNGD_PORT="$withval" | ||
14177 | |||
14178 | cat >>confdefs.h <<_ACEOF | ||
14179 | #define PRNGD_PORT $PRNGD_PORT | ||
14180 | _ACEOF | ||
14181 | |||
14182 | fi | ||
14183 | |||
14184 | |||
14185 | fi | ||
14186 | |||
14187 | |||
14188 | # PRNGD Unix domain socket | ||
14189 | |||
14190 | # Check whether --with-prngd-socket was given. | ||
14191 | if test "${with_prngd_socket+set}" = set; then : | ||
14192 | withval=$with_prngd_socket; | ||
14193 | case "$withval" in | ||
14194 | yes) | ||
14195 | withval="/var/run/egd-pool" | ||
14196 | ;; | ||
14197 | no) | ||
14198 | withval="" | ||
14199 | ;; | ||
14200 | /*) | ||
14201 | ;; | ||
14202 | *) | ||
14203 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
14204 | ;; | ||
14205 | esac | ||
14206 | |||
14207 | if test ! -z "$withval" ; then | ||
14208 | if test ! -z "$PRNGD_PORT" ; then | ||
14209 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
14210 | fi | ||
14211 | if test ! -r "$withval" ; then | ||
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
14213 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
14214 | fi | ||
14215 | PRNGD_SOCKET="$withval" | ||
14216 | |||
14217 | cat >>confdefs.h <<_ACEOF | ||
14218 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14219 | _ACEOF | ||
14220 | |||
14221 | fi | ||
14222 | |||
14223 | else | ||
14224 | |||
14225 | # Check for existing socket only if we don't have a random device already | ||
14226 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
14228 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
14229 | # Insert other locations here | ||
14230 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
14231 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
14232 | PRNGD_SOCKET="$sock" | ||
14233 | cat >>confdefs.h <<_ACEOF | ||
14234 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
14235 | _ACEOF | ||
14236 | |||
14237 | break; | ||
14238 | fi | ||
14239 | done | ||
14240 | if test ! -z "$PRNGD_SOCKET" ; then | ||
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
14242 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
14243 | else | ||
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
14245 | $as_echo "not found" >&6; } | ||
14246 | fi | ||
14247 | fi | ||
14248 | |||
14249 | |||
14250 | fi | ||
14251 | |||
14252 | |||
14253 | # Which randomness source do we use? | ||
14254 | if test ! -z "$PRNGD_PORT" ; then | ||
14255 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
14256 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
14257 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
14258 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
14259 | |||
14260 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
14261 | |||
14262 | RAND_MSG="OpenSSL internal ONLY" | ||
14263 | elif test "x$openssl" = "xno" ; then | ||
14264 | { $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 | ||
14265 | $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;} | ||
14266 | else | ||
14267 | 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 | ||
14268 | fi | ||
14269 | |||
14270 | # Check for PAM libs | ||
14271 | PAM_MSG="no" | ||
14272 | |||
14273 | # Check whether --with-pam was given. | ||
14274 | if test "${with_pam+set}" = set; then : | ||
14275 | withval=$with_pam; | ||
14276 | if test "x$withval" != "xno" ; then | ||
14277 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
14278 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
14279 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
14280 | fi | ||
14281 | |||
14282 | saved_LIBS="$LIBS" | ||
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
14284 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
14285 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
14286 | $as_echo_n "(cached) " >&6 | ||
14287 | else | ||
14288 | ac_check_lib_save_LIBS=$LIBS | ||
14289 | LIBS="-ldl $LIBS" | ||
14290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14291 | /* end confdefs.h. */ | ||
14292 | |||
14293 | /* Override any GCC internal prototype to avoid an error. | ||
14294 | Use char because int might match the return type of a GCC | ||
14295 | builtin and then its argument prototype would still apply. */ | ||
14296 | #ifdef __cplusplus | ||
14297 | extern "C" | ||
14298 | #endif | ||
14299 | char dlopen (); | ||
14300 | int | ||
14301 | main () | ||
14302 | { | ||
14303 | return dlopen (); | ||
14304 | ; | ||
14305 | return 0; | ||
14306 | } | ||
14307 | _ACEOF | ||
14308 | if ac_fn_c_try_link "$LINENO"; then : | ||
14309 | ac_cv_lib_dl_dlopen=yes | ||
14310 | else | ||
14311 | ac_cv_lib_dl_dlopen=no | ||
14312 | fi | ||
14313 | rm -f core conftest.err conftest.$ac_objext \ | ||
14314 | conftest$ac_exeext conftest.$ac_ext | ||
14315 | LIBS=$ac_check_lib_save_LIBS | ||
14316 | fi | ||
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
14318 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
14319 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
14320 | cat >>confdefs.h <<_ACEOF | ||
14321 | #define HAVE_LIBDL 1 | ||
14322 | _ACEOF | ||
14323 | |||
14324 | LIBS="-ldl $LIBS" | ||
14325 | |||
14326 | fi | ||
14327 | |||
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
14329 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
14330 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
14331 | $as_echo_n "(cached) " >&6 | ||
14332 | else | ||
14333 | ac_check_lib_save_LIBS=$LIBS | ||
14334 | LIBS="-lpam $LIBS" | ||
14335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14336 | /* end confdefs.h. */ | ||
14337 | |||
14338 | /* Override any GCC internal prototype to avoid an error. | ||
14339 | Use char because int might match the return type of a GCC | ||
14340 | builtin and then its argument prototype would still apply. */ | ||
14341 | #ifdef __cplusplus | ||
14342 | extern "C" | ||
14343 | #endif | ||
14344 | char pam_set_item (); | ||
14345 | int | ||
14346 | main () | ||
14347 | { | ||
14348 | return pam_set_item (); | ||
14349 | ; | ||
14350 | return 0; | ||
14351 | } | ||
14352 | _ACEOF | ||
14353 | if ac_fn_c_try_link "$LINENO"; then : | ||
14354 | ac_cv_lib_pam_pam_set_item=yes | ||
14355 | else | ||
14356 | ac_cv_lib_pam_pam_set_item=no | ||
14357 | fi | ||
14358 | rm -f core conftest.err conftest.$ac_objext \ | ||
14359 | conftest$ac_exeext conftest.$ac_ext | ||
14360 | LIBS=$ac_check_lib_save_LIBS | ||
14361 | fi | ||
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
14363 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
14364 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
14365 | cat >>confdefs.h <<_ACEOF | ||
14366 | #define HAVE_LIBPAM 1 | ||
14367 | _ACEOF | ||
14368 | |||
14369 | LIBS="-lpam $LIBS" | ||
14370 | |||
14371 | else | ||
14372 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
14373 | fi | ||
14374 | |||
14375 | for ac_func in pam_getenvlist | ||
14376 | do : | ||
14377 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
14378 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
14379 | cat >>confdefs.h <<_ACEOF | ||
14380 | #define HAVE_PAM_GETENVLIST 1 | ||
14381 | _ACEOF | ||
14382 | |||
14383 | fi | ||
14384 | done | ||
14385 | |||
14386 | for ac_func in pam_putenv | ||
14387 | do : | ||
14388 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
14389 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
14390 | cat >>confdefs.h <<_ACEOF | ||
14391 | #define HAVE_PAM_PUTENV 1 | ||
14392 | _ACEOF | ||
14393 | |||
14394 | fi | ||
14395 | done | ||
14396 | |||
14397 | LIBS="$saved_LIBS" | ||
14398 | |||
14399 | PAM_MSG="yes" | ||
14400 | |||
14401 | SSHDLIBS="$SSHDLIBS -lpam" | ||
14402 | |||
14403 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
14404 | |||
14405 | |||
14406 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
14407 | case "$LIBS" in | ||
14408 | *-ldl*) | ||
14409 | # libdl already in LIBS | ||
14410 | ;; | ||
14411 | *) | ||
14412 | SSHDLIBS="$SSHDLIBS -ldl" | ||
14413 | ;; | ||
14414 | esac | ||
14415 | fi | ||
14416 | fi | ||
14417 | |||
14418 | |||
14419 | fi | ||
14420 | |||
14421 | |||
14422 | |||
14423 | # Check whether --with-pam-service was given. | ||
14424 | if test "${with_pam_service+set}" = set; then : | ||
14425 | withval=$with_pam_service; | ||
14426 | if test "x$withval" != "xno" && \ | ||
14427 | test "x$withval" != "xyes" ; then | ||
14428 | |||
14429 | cat >>confdefs.h <<_ACEOF | ||
14430 | #define SSHD_PAM_SERVICE "$withval" | ||
14431 | _ACEOF | ||
14432 | |||
14433 | fi | ||
14434 | |||
14435 | |||
14436 | fi | ||
14437 | |||
14438 | |||
14439 | # Check for older PAM | ||
14440 | if test "x$PAM_MSG" = "xyes" ; then | ||
14441 | # Check PAM strerror arguments (old PAM) | ||
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
14443 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
14444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14445 | /* end confdefs.h. */ | ||
14446 | |||
14447 | #include <stdlib.h> | ||
14448 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
14449 | #include <security/pam_appl.h> | ||
14450 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
14451 | #include <pam/pam_appl.h> | ||
14452 | #endif | ||
14453 | |||
14454 | int | ||
14455 | main () | ||
14456 | { | ||
14457 | |||
14458 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
14459 | |||
14460 | ; | ||
14461 | return 0; | ||
14462 | } | ||
14463 | _ACEOF | ||
14464 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14466 | $as_echo "no" >&6; } | ||
14467 | else | ||
14468 | |||
14469 | |||
14470 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
14471 | |||
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14473 | $as_echo "yes" >&6; } | ||
14474 | PAM_MSG="yes (old library)" | ||
14475 | |||
14476 | |||
14477 | fi | ||
14478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14479 | fi | ||
14480 | |||
14481 | case "$host" in | ||
14482 | *-*-cygwin*) | ||
14483 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
14484 | ;; | ||
14485 | *) | ||
14486 | SSH_PRIVSEP_USER=sshd | ||
14487 | ;; | ||
14488 | esac | ||
14489 | |||
14490 | # Check whether --with-privsep-user was given. | ||
14491 | if test "${with_privsep_user+set}" = set; then : | ||
14492 | withval=$with_privsep_user; | ||
14493 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
14494 | test "x${withval}" != "xyes"; then | ||
14495 | SSH_PRIVSEP_USER=$withval | ||
14496 | fi | ||
14497 | |||
14498 | |||
14499 | fi | ||
14500 | |||
14501 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
14502 | |||
14503 | cat >>confdefs.h <<_ACEOF | ||
14504 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
14505 | _ACEOF | ||
14506 | |||
14507 | else | ||
14508 | |||
14509 | cat >>confdefs.h <<_ACEOF | ||
14510 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
14511 | _ACEOF | ||
14512 | |||
14513 | fi | ||
14514 | |||
14515 | |||
14516 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
14517 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
14518 | #include <sys/types.h> | ||
14519 | #include <linux/seccomp.h> | ||
14520 | |||
14521 | " | ||
14522 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
14523 | have_seccomp_filter=1 | ||
14524 | fi | ||
14525 | |||
14526 | fi | ||
14527 | if test "x$have_seccomp_filter" = "x1" ; then | ||
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
14529 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
14530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14531 | /* end confdefs.h. */ | ||
14532 | |||
14533 | #include <errno.h> | ||
14534 | #include <elf.h> | ||
14535 | #include <linux/audit.h> | ||
14536 | #include <linux/seccomp.h> | ||
14537 | #include <stdlib.h> | ||
14538 | #include <sys/prctl.h> | ||
14539 | |||
14540 | int | ||
14541 | main () | ||
14542 | { | ||
14543 | int i = $seccomp_audit_arch; | ||
14544 | errno = 0; | ||
14545 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
14546 | exit(errno == EFAULT ? 0 : 1); | ||
14547 | ; | ||
14548 | return 0; | ||
14549 | } | ||
14550 | _ACEOF | ||
14551 | if ac_fn_c_try_link "$LINENO"; then : | ||
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14553 | $as_echo "yes" >&6; } | ||
14554 | else | ||
14555 | |||
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14557 | $as_echo "no" >&6; } | ||
14558 | # Disable seccomp filter as a target | ||
14559 | have_seccomp_filter=0 | ||
14560 | |||
14561 | |||
14562 | fi | ||
14563 | rm -f core conftest.err conftest.$ac_objext \ | ||
14564 | conftest$ac_exeext conftest.$ac_ext | ||
14565 | fi | ||
14566 | |||
14567 | # Decide which sandbox style to use | ||
14568 | sandbox_arg="" | ||
14569 | |||
14570 | # Check whether --with-sandbox was given. | ||
14571 | if test "${with_sandbox+set}" = set; then : | ||
14572 | withval=$with_sandbox; | ||
14573 | if test "x$withval" = "xyes" ; then | ||
14574 | sandbox_arg="" | ||
14575 | else | ||
14576 | sandbox_arg="$withval" | ||
14577 | fi | ||
14578 | |||
14579 | |||
14580 | fi | ||
14581 | |||
14582 | |||
14583 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
14584 | # function with which they implement select(2)) use an extra file descriptor | ||
14585 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
14587 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
14588 | if test "$cross_compiling" = yes; then : | ||
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14590 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14591 | select_works_with_rlimit=yes | ||
14592 | |||
14593 | else | ||
14594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14595 | /* end confdefs.h. */ | ||
14596 | |||
14597 | #include <sys/types.h> | ||
14598 | #ifdef HAVE_SYS_TIME_H | ||
14599 | # include <sys/time.h> | ||
14600 | #endif | ||
14601 | #include <sys/resource.h> | ||
14602 | #ifdef HAVE_SYS_SELECT_H | ||
14603 | # include <sys/select.h> | ||
14604 | #endif | ||
14605 | #include <errno.h> | ||
14606 | #include <fcntl.h> | ||
14607 | #include <stdlib.h> | ||
14608 | |||
14609 | int | ||
14610 | main () | ||
14611 | { | ||
14612 | |||
14613 | struct rlimit rl_zero; | ||
14614 | int fd, r; | ||
14615 | fd_set fds; | ||
14616 | struct timeval tv; | ||
14617 | |||
14618 | fd = open("/dev/null", O_RDONLY); | ||
14619 | FD_ZERO(&fds); | ||
14620 | FD_SET(fd, &fds); | ||
14621 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14622 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
14623 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14624 | tv.tv_sec = 1; | ||
14625 | tv.tv_usec = 0; | ||
14626 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
14627 | exit (r == -1 ? 1 : 0); | ||
14628 | |||
14629 | ; | ||
14630 | return 0; | ||
14631 | } | ||
14632 | _ACEOF | ||
14633 | if ac_fn_c_try_run "$LINENO"; then : | ||
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14635 | $as_echo "yes" >&6; } | ||
14636 | select_works_with_rlimit=yes | ||
14637 | else | ||
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14639 | $as_echo "no" >&6; } | ||
14640 | select_works_with_rlimit=no | ||
14641 | fi | ||
14642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14643 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14644 | fi | ||
14645 | |||
14646 | |||
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
14648 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
14649 | if test "$cross_compiling" = yes; then : | ||
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14651 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14652 | rlimit_nofile_zero_works=yes | ||
14653 | |||
14654 | else | ||
14655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14656 | /* end confdefs.h. */ | ||
14657 | |||
14658 | #include <sys/types.h> | ||
14659 | #ifdef HAVE_SYS_TIME_H | ||
14660 | # include <sys/time.h> | ||
14661 | #endif | ||
14662 | #include <sys/resource.h> | ||
14663 | #include <errno.h> | ||
14664 | #include <stdlib.h> | ||
14665 | |||
14666 | int | ||
14667 | main () | ||
14668 | { | ||
14669 | |||
14670 | struct rlimit rl_zero; | ||
14671 | int r; | ||
14672 | |||
14673 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14674 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14675 | exit (r == -1 ? 1 : 0); | ||
14676 | |||
14677 | ; | ||
14678 | return 0; | ||
14679 | } | ||
14680 | _ACEOF | ||
14681 | if ac_fn_c_try_run "$LINENO"; then : | ||
14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14683 | $as_echo "yes" >&6; } | ||
14684 | rlimit_nofile_zero_works=yes | ||
14685 | else | ||
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14687 | $as_echo "no" >&6; } | ||
14688 | rlimit_nofile_zero_works=no | ||
14689 | fi | ||
14690 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14691 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14692 | fi | ||
14693 | |||
14694 | |||
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
14696 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
14697 | if test "$cross_compiling" = yes; then : | ||
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14699 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14700 | |||
14701 | else | ||
14702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14703 | /* end confdefs.h. */ | ||
14704 | |||
14705 | #include <sys/types.h> | ||
14706 | #include <sys/resource.h> | ||
14707 | #include <stdlib.h> | ||
14708 | |||
14709 | int | ||
14710 | main () | ||
14711 | { | ||
14712 | |||
14713 | struct rlimit rl_zero; | ||
14714 | |||
14715 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14716 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
14717 | |||
14718 | ; | ||
14719 | return 0; | ||
14720 | } | ||
14721 | _ACEOF | ||
14722 | if ac_fn_c_try_run "$LINENO"; then : | ||
14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14724 | $as_echo "yes" >&6; } | ||
14725 | else | ||
14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14727 | $as_echo "no" >&6; } | ||
14728 | |||
14729 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
14730 | |||
14731 | fi | ||
14732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14733 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14734 | fi | ||
14735 | |||
14736 | |||
14737 | if test "x$sandbox_arg" = "xpledge" || \ | ||
14738 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then | ||
14739 | test "x$ac_cv_func_pledge" != "xyes" && \ | ||
14740 | as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 | ||
14741 | SANDBOX_STYLE="pledge" | ||
14742 | |||
14743 | $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h | ||
14744 | |||
14745 | elif test "x$sandbox_arg" = "xsystrace" || \ | ||
14746 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
14747 | test "x$have_systr_policy_kill" != "x1" && \ | ||
14748 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
14749 | SANDBOX_STYLE="systrace" | ||
14750 | |||
14751 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
14752 | |||
14753 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
14754 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
14755 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
14756 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
14757 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
14758 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
14759 | SANDBOX_STYLE="darwin" | ||
14760 | |||
14761 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
14762 | |||
14763 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
14764 | ( test -z "$sandbox_arg" && \ | ||
14765 | test "x$have_seccomp_filter" = "x1" && \ | ||
14766 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
14767 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
14768 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
14769 | test "x$seccomp_audit_arch" != "x" && \ | ||
14770 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
14771 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
14772 | test "x$seccomp_audit_arch" = "x" && \ | ||
14773 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
14774 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
14775 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
14776 | test "x$have_seccomp_filter" != "x1" && \ | ||
14777 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
14778 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
14779 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
14780 | SANDBOX_STYLE="seccomp_filter" | ||
14781 | |||
14782 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
14783 | |||
14784 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
14785 | ( test -z "$sandbox_arg" && \ | ||
14786 | test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \ | ||
14787 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
14788 | test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \ | ||
14789 | as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5 | ||
14790 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
14791 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 | ||
14792 | SANDBOX_STYLE="capsicum" | ||
14793 | |||
14794 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h | ||
14795 | |||
14796 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
14797 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
14798 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
14799 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
14800 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
14801 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
14802 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
14803 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
14804 | SANDBOX_STYLE="rlimit" | ||
14805 | |||
14806 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
14807 | |||
14808 | elif test "x$sandbox_arg" = "xsolaris" || \ | ||
14809 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then | ||
14810 | SANDBOX_STYLE="solaris" | ||
14811 | |||
14812 | $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h | ||
14813 | |||
14814 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
14815 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
14816 | SANDBOX_STYLE="none" | ||
14817 | |||
14818 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
14819 | |||
14820 | else | ||
14821 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
14822 | fi | ||
14823 | |||
14824 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
14825 | if test ! -z "$SONY" ; then | ||
14826 | LIBS="$LIBS -liberty"; | ||
14827 | fi | ||
14828 | |||
14829 | # Check for long long datatypes | ||
14830 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
14831 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
14832 | |||
14833 | cat >>confdefs.h <<_ACEOF | ||
14834 | #define HAVE_LONG_LONG 1 | ||
14835 | _ACEOF | ||
14836 | |||
14837 | |||
14838 | fi | ||
14839 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
14840 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
14841 | |||
14842 | cat >>confdefs.h <<_ACEOF | ||
14843 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
14844 | _ACEOF | ||
14845 | |||
14846 | |||
14847 | fi | ||
14848 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
14849 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
14850 | |||
14851 | cat >>confdefs.h <<_ACEOF | ||
14852 | #define HAVE_LONG_DOUBLE 1 | ||
14853 | _ACEOF | ||
14854 | |||
14855 | |||
14856 | fi | ||
14857 | |||
14858 | |||
14859 | # Check datatype sizes | ||
14860 | # The cast to long int works around a bug in the HP C Compiler | ||
14861 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14862 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14863 | # This bug is HP SR number 8606223364. | ||
14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
14865 | $as_echo_n "checking size of short int... " >&6; } | ||
14866 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
14867 | $as_echo_n "(cached) " >&6 | ||
14868 | else | ||
14869 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
14870 | |||
14871 | else | ||
14872 | if test "$ac_cv_type_short_int" = yes; then | ||
14873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14875 | as_fn_error 77 "cannot compute sizeof (short int) | ||
14876 | See \`config.log' for more details" "$LINENO" 5; } | ||
14877 | else | ||
14878 | ac_cv_sizeof_short_int=0 | ||
14879 | fi | ||
14880 | fi | ||
14881 | |||
14882 | fi | ||
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
14884 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
14885 | |||
14886 | |||
14887 | |||
14888 | cat >>confdefs.h <<_ACEOF | ||
14889 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
14890 | _ACEOF | ||
14891 | |||
14892 | |||
14893 | # The cast to long int works around a bug in the HP C Compiler | ||
14894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14896 | # This bug is HP SR number 8606223364. | ||
14897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
14898 | $as_echo_n "checking size of int... " >&6; } | ||
14899 | if ${ac_cv_sizeof_int+:} false; then : | ||
14900 | $as_echo_n "(cached) " >&6 | ||
14901 | else | ||
14902 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
14903 | |||
14904 | else | ||
14905 | if test "$ac_cv_type_int" = yes; then | ||
14906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14908 | as_fn_error 77 "cannot compute sizeof (int) | ||
14909 | See \`config.log' for more details" "$LINENO" 5; } | ||
14910 | else | ||
14911 | ac_cv_sizeof_int=0 | ||
14912 | fi | ||
14913 | fi | ||
14914 | |||
14915 | fi | ||
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
14917 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
14918 | |||
14919 | |||
14920 | |||
14921 | cat >>confdefs.h <<_ACEOF | ||
14922 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
14923 | _ACEOF | ||
14924 | |||
14925 | |||
14926 | # The cast to long int works around a bug in the HP C Compiler | ||
14927 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14928 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14929 | # This bug is HP SR number 8606223364. | ||
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
14931 | $as_echo_n "checking size of long int... " >&6; } | ||
14932 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
14933 | $as_echo_n "(cached) " >&6 | ||
14934 | else | ||
14935 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
14936 | |||
14937 | else | ||
14938 | if test "$ac_cv_type_long_int" = yes; then | ||
14939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14941 | as_fn_error 77 "cannot compute sizeof (long int) | ||
14942 | See \`config.log' for more details" "$LINENO" 5; } | ||
14943 | else | ||
14944 | ac_cv_sizeof_long_int=0 | ||
14945 | fi | ||
14946 | fi | ||
14947 | |||
14948 | fi | ||
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
14950 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
14951 | |||
14952 | |||
14953 | |||
14954 | cat >>confdefs.h <<_ACEOF | ||
14955 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
14956 | _ACEOF | ||
14957 | |||
14958 | |||
14959 | # The cast to long int works around a bug in the HP C Compiler | ||
14960 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14961 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14962 | # This bug is HP SR number 8606223364. | ||
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
14964 | $as_echo_n "checking size of long long int... " >&6; } | ||
14965 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
14966 | $as_echo_n "(cached) " >&6 | ||
14967 | else | ||
14968 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
14969 | |||
14970 | else | ||
14971 | if test "$ac_cv_type_long_long_int" = yes; then | ||
14972 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14973 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14974 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
14975 | See \`config.log' for more details" "$LINENO" 5; } | ||
14976 | else | ||
14977 | ac_cv_sizeof_long_long_int=0 | ||
14978 | fi | ||
14979 | fi | ||
14980 | |||
14981 | fi | ||
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
14983 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
14984 | |||
14985 | |||
14986 | |||
14987 | cat >>confdefs.h <<_ACEOF | ||
14988 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
14989 | _ACEOF | ||
14990 | |||
14991 | |||
14992 | |||
14993 | # Sanity check long long for some platforms (AIX) | ||
14994 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
14995 | ac_cv_sizeof_long_long_int=0 | ||
14996 | fi | ||
14997 | |||
14998 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
14999 | if test -z "$have_llong_max"; then | ||
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
15001 | $as_echo_n "checking for max value of long long... " >&6; } | ||
15002 | if test "$cross_compiling" = yes; then : | ||
15003 | |||
15004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
15005 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
15006 | |||
15007 | |||
15008 | else | ||
15009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15010 | /* end confdefs.h. */ | ||
15011 | |||
15012 | #include <stdio.h> | ||
15013 | /* Why is this so damn hard? */ | ||
15014 | #ifdef __GNUC__ | ||
15015 | # undef __GNUC__ | ||
15016 | #endif | ||
15017 | #define __USE_ISOC99 | ||
15018 | #include <limits.h> | ||
15019 | #define DATA "conftest.llminmax" | ||
15020 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
15021 | |||
15022 | /* | ||
15023 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
15024 | * we do this the hard way. | ||
15025 | */ | ||
15026 | static int | ||
15027 | fprint_ll(FILE *f, long long n) | ||
15028 | { | ||
15029 | unsigned int i; | ||
15030 | int l[sizeof(long long) * 8]; | ||
15031 | |||
15032 | if (n < 0) | ||
15033 | if (fprintf(f, "-") < 0) | ||
15034 | return -1; | ||
15035 | for (i = 0; n != 0; i++) { | ||
15036 | l[i] = my_abs(n % 10); | ||
15037 | n /= 10; | ||
15038 | } | ||
15039 | do { | ||
15040 | if (fprintf(f, "%d", l[--i]) < 0) | ||
15041 | return -1; | ||
15042 | } while (i != 0); | ||
15043 | if (fprintf(f, " ") < 0) | ||
15044 | return -1; | ||
15045 | return 0; | ||
15046 | } | ||
15047 | |||
15048 | int | ||
15049 | main () | ||
15050 | { | ||
15051 | |||
15052 | FILE *f; | ||
15053 | long long i, llmin, llmax = 0; | ||
15054 | |||
15055 | if((f = fopen(DATA,"w")) == NULL) | ||
15056 | exit(1); | ||
15057 | |||
15058 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
15059 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
15060 | llmin = LLONG_MIN; | ||
15061 | llmax = LLONG_MAX; | ||
15062 | #else | ||
15063 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
15064 | /* This will work on one's complement and two's complement */ | ||
15065 | for (i = 1; i > llmax; i <<= 1, i++) | ||
15066 | llmax = i; | ||
15067 | llmin = llmax + 1LL; /* wrap */ | ||
15068 | #endif | ||
15069 | |||
15070 | /* Sanity check */ | ||
15071 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
15072 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
15073 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
15074 | fprintf(f, "unknown unknown\n"); | ||
15075 | exit(2); | ||
15076 | } | ||
15077 | |||
15078 | if (fprint_ll(f, llmin) < 0) | ||
15079 | exit(3); | ||
15080 | if (fprint_ll(f, llmax) < 0) | ||
15081 | exit(4); | ||
15082 | if (fclose(f) < 0) | ||
15083 | exit(5); | ||
15084 | exit(0); | ||
15085 | |||
15086 | ; | ||
15087 | return 0; | ||
15088 | } | ||
15089 | _ACEOF | ||
15090 | if ac_fn_c_try_run "$LINENO"; then : | ||
15091 | |||
15092 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
15093 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
15094 | |||
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
15096 | $as_echo "$llong_max" >&6; } | ||
15097 | |||
15098 | cat >>confdefs.h <<_ACEOF | ||
15099 | #define LLONG_MAX ${llong_max}LL | ||
15100 | _ACEOF | ||
15101 | |||
15102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
15103 | $as_echo_n "checking for min value of long long... " >&6; } | ||
15104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
15105 | $as_echo "$llong_min" >&6; } | ||
15106 | |||
15107 | cat >>confdefs.h <<_ACEOF | ||
15108 | #define LLONG_MIN ${llong_min}LL | ||
15109 | _ACEOF | ||
15110 | |||
15111 | |||
15112 | else | ||
15113 | |||
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
15115 | $as_echo "not found" >&6; } | ||
15116 | |||
15117 | fi | ||
15118 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
15119 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
15120 | fi | ||
15121 | |||
15122 | fi | ||
15123 | |||
15124 | ac_fn_c_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" " | ||
15125 | #ifdef HAVE_SYS_LIMITS_H | ||
15126 | # include <sys/limits.h> | ||
15127 | #endif | ||
15128 | #ifdef HAVE_LIMITS_H | ||
15129 | # include <limits.h> | ||
15130 | #endif | ||
15131 | #ifdef HAVE_STDINT_H | ||
15132 | # include <stdint.h> | ||
15133 | #endif | ||
15134 | |||
15135 | " | ||
15136 | if test "x$ac_cv_have_decl_UINT32_MAX" = xyes; then : | ||
15137 | ac_have_decl=1 | ||
15138 | else | ||
15139 | ac_have_decl=0 | ||
15140 | fi | ||
15141 | |||
15142 | cat >>confdefs.h <<_ACEOF | ||
15143 | #define HAVE_DECL_UINT32_MAX $ac_have_decl | ||
15144 | _ACEOF | ||
15145 | |||
15146 | |||
15147 | # More checks for data types | ||
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
15149 | $as_echo_n "checking for u_int type... " >&6; } | ||
15150 | if ${ac_cv_have_u_int+:} false; then : | ||
15151 | $as_echo_n "(cached) " >&6 | ||
15152 | else | ||
15153 | |||
15154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15155 | /* end confdefs.h. */ | ||
15156 | #include <sys/types.h> | ||
15157 | int | ||
15158 | main () | ||
15159 | { | ||
15160 | u_int a; a = 1; | ||
15161 | ; | ||
15162 | return 0; | ||
15163 | } | ||
15164 | _ACEOF | ||
15165 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15166 | ac_cv_have_u_int="yes" | ||
15167 | else | ||
15168 | ac_cv_have_u_int="no" | ||
15169 | |||
15170 | fi | ||
15171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15172 | |||
15173 | fi | ||
15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
15175 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
15176 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
15177 | |||
15178 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
15179 | |||
15180 | have_u_int=1 | ||
15181 | fi | ||
15182 | |||
15183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
15184 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
15185 | if ${ac_cv_have_intxx_t+:} false; then : | ||
15186 | $as_echo_n "(cached) " >&6 | ||
15187 | else | ||
15188 | |||
15189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15190 | /* end confdefs.h. */ | ||
15191 | #include <sys/types.h> | ||
15192 | int | ||
15193 | main () | ||
15194 | { | ||
15195 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
15196 | ; | ||
15197 | return 0; | ||
15198 | } | ||
15199 | _ACEOF | ||
15200 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15201 | ac_cv_have_intxx_t="yes" | ||
15202 | else | ||
15203 | ac_cv_have_intxx_t="no" | ||
15204 | |||
15205 | fi | ||
15206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15207 | |||
15208 | fi | ||
15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
15210 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
15211 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
15212 | |||
15213 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15214 | |||
15215 | have_intxx_t=1 | ||
15216 | fi | ||
15217 | |||
15218 | if (test -z "$have_intxx_t" && \ | ||
15219 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
15220 | then | ||
15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
15222 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
15223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15224 | /* end confdefs.h. */ | ||
15225 | #include <stdint.h> | ||
15226 | int | ||
15227 | main () | ||
15228 | { | ||
15229 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
15230 | ; | ||
15231 | return 0; | ||
15232 | } | ||
15233 | _ACEOF | ||
15234 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15235 | |||
15236 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15237 | |||
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15239 | $as_echo "yes" >&6; } | ||
15240 | |||
15241 | else | ||
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15243 | $as_echo "no" >&6; } | ||
15244 | |||
15245 | fi | ||
15246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15247 | fi | ||
15248 | |||
15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
15250 | $as_echo_n "checking for int64_t type... " >&6; } | ||
15251 | if ${ac_cv_have_int64_t+:} false; then : | ||
15252 | $as_echo_n "(cached) " >&6 | ||
15253 | else | ||
15254 | |||
15255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15256 | /* end confdefs.h. */ | ||
15257 | |||
15258 | #include <sys/types.h> | ||
15259 | #ifdef HAVE_STDINT_H | ||
15260 | # include <stdint.h> | ||
15261 | #endif | ||
15262 | #include <sys/socket.h> | ||
15263 | #ifdef HAVE_SYS_BITYPES_H | ||
15264 | # include <sys/bitypes.h> | ||
15265 | #endif | ||
15266 | |||
15267 | int | ||
15268 | main () | ||
15269 | { | ||
15270 | |||
15271 | int64_t a; a = 1; | ||
15272 | |||
15273 | ; | ||
15274 | return 0; | ||
15275 | } | ||
15276 | _ACEOF | ||
15277 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15278 | ac_cv_have_int64_t="yes" | ||
15279 | else | ||
15280 | ac_cv_have_int64_t="no" | ||
15281 | |||
15282 | fi | ||
15283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15284 | |||
15285 | fi | ||
15286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
15287 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
15288 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
15289 | |||
15290 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
15291 | |||
15292 | fi | ||
15293 | |||
15294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
15295 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
15296 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
15297 | $as_echo_n "(cached) " >&6 | ||
15298 | else | ||
15299 | |||
15300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15301 | /* end confdefs.h. */ | ||
15302 | #include <sys/types.h> | ||
15303 | int | ||
15304 | main () | ||
15305 | { | ||
15306 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
15307 | ; | ||
15308 | return 0; | ||
15309 | } | ||
15310 | _ACEOF | ||
15311 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15312 | ac_cv_have_u_intxx_t="yes" | ||
15313 | else | ||
15314 | ac_cv_have_u_intxx_t="no" | ||
15315 | |||
15316 | fi | ||
15317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15318 | |||
15319 | fi | ||
15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
15321 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
15322 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
15323 | |||
15324 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15325 | |||
15326 | have_u_intxx_t=1 | ||
15327 | fi | ||
15328 | |||
15329 | if test -z "$have_u_intxx_t" ; then | ||
15330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
15331 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
15332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15333 | /* end confdefs.h. */ | ||
15334 | #include <sys/socket.h> | ||
15335 | int | ||
15336 | main () | ||
15337 | { | ||
15338 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
15339 | ; | ||
15340 | return 0; | ||
15341 | } | ||
15342 | _ACEOF | ||
15343 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15344 | |||
15345 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15346 | |||
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15348 | $as_echo "yes" >&6; } | ||
15349 | |||
15350 | else | ||
15351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15352 | $as_echo "no" >&6; } | ||
15353 | |||
15354 | fi | ||
15355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15356 | fi | ||
15357 | |||
15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
15359 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
15360 | if ${ac_cv_have_u_int64_t+:} 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_int64_t a; a = 1; | ||
15371 | ; | ||
15372 | return 0; | ||
15373 | } | ||
15374 | _ACEOF | ||
15375 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15376 | ac_cv_have_u_int64_t="yes" | ||
15377 | else | ||
15378 | ac_cv_have_u_int64_t="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_int64_t" >&5 | ||
15385 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
15386 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
15387 | |||
15388 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
15389 | |||
15390 | have_u_int64_t=1 | ||
15391 | fi | ||
15392 | |||
15393 | if (test -z "$have_u_int64_t" && \ | ||
15394 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
15395 | then | ||
15396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
15397 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
15398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15399 | /* end confdefs.h. */ | ||
15400 | #include <sys/bitypes.h> | ||
15401 | int | ||
15402 | main () | ||
15403 | { | ||
15404 | u_int64_t a; a = 1 | ||
15405 | ; | ||
15406 | return 0; | ||
15407 | } | ||
15408 | _ACEOF | ||
15409 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15410 | |||
15411 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
15412 | |||
15413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15414 | $as_echo "yes" >&6; } | ||
15415 | |||
15416 | else | ||
15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15418 | $as_echo "no" >&6; } | ||
15419 | |||
15420 | fi | ||
15421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15422 | fi | ||
15423 | |||
15424 | if test -z "$have_u_intxx_t" ; then | ||
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
15426 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
15427 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
15428 | $as_echo_n "(cached) " >&6 | ||
15429 | else | ||
15430 | |||
15431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15432 | /* end confdefs.h. */ | ||
15433 | |||
15434 | #include <sys/types.h> | ||
15435 | |||
15436 | int | ||
15437 | main () | ||
15438 | { | ||
15439 | |||
15440 | uint8_t a; | ||
15441 | uint16_t b; | ||
15442 | uint32_t c; | ||
15443 | a = b = c = 1; | ||
15444 | |||
15445 | ; | ||
15446 | return 0; | ||
15447 | } | ||
15448 | _ACEOF | ||
15449 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15450 | ac_cv_have_uintxx_t="yes" | ||
15451 | else | ||
15452 | ac_cv_have_uintxx_t="no" | ||
15453 | |||
15454 | fi | ||
15455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15456 | |||
15457 | fi | ||
15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
15459 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
15460 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
15461 | |||
15462 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15463 | |||
15464 | fi | ||
15465 | fi | ||
15466 | |||
15467 | if (test -z "$have_uintxx_t" && \ | ||
15468 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
15469 | then | ||
15470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
15471 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
15472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15473 | /* end confdefs.h. */ | ||
15474 | #include <stdint.h> | ||
15475 | int | ||
15476 | main () | ||
15477 | { | ||
15478 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
15479 | ; | ||
15480 | return 0; | ||
15481 | } | ||
15482 | _ACEOF | ||
15483 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15484 | |||
15485 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15486 | |||
15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15488 | $as_echo "yes" >&6; } | ||
15489 | |||
15490 | else | ||
15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15492 | $as_echo "no" >&6; } | ||
15493 | |||
15494 | fi | ||
15495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15496 | fi | ||
15497 | |||
15498 | if (test -z "$have_uintxx_t" && \ | ||
15499 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
15500 | then | ||
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 | ||
15502 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } | ||
15503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15504 | /* end confdefs.h. */ | ||
15505 | #include <inttypes.h> | ||
15506 | int | ||
15507 | main () | ||
15508 | { | ||
15509 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
15510 | ; | ||
15511 | return 0; | ||
15512 | } | ||
15513 | _ACEOF | ||
15514 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15515 | |||
15516 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
15517 | |||
15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15519 | $as_echo "yes" >&6; } | ||
15520 | |||
15521 | else | ||
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15523 | $as_echo "no" >&6; } | ||
15524 | |||
15525 | fi | ||
15526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15527 | fi | ||
15528 | |||
15529 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
15530 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
15531 | then | ||
15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
15533 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
15534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15535 | /* end confdefs.h. */ | ||
15536 | |||
15537 | #include <sys/bitypes.h> | ||
15538 | |||
15539 | int | ||
15540 | main () | ||
15541 | { | ||
15542 | |||
15543 | int8_t a; int16_t b; int32_t c; | ||
15544 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
15545 | a = b = c = e = f = g = 1; | ||
15546 | |||
15547 | ; | ||
15548 | return 0; | ||
15549 | } | ||
15550 | _ACEOF | ||
15551 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15552 | |||
15553 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
15554 | |||
15555 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15556 | |||
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15558 | $as_echo "yes" >&6; } | ||
15559 | |||
15560 | else | ||
15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15562 | $as_echo "no" >&6; } | ||
15563 | |||
15564 | fi | ||
15565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15566 | fi | ||
15567 | |||
15568 | |||
15569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
15570 | $as_echo_n "checking for u_char... " >&6; } | ||
15571 | if ${ac_cv_have_u_char+:} false; then : | ||
15572 | $as_echo_n "(cached) " >&6 | ||
15573 | else | ||
15574 | |||
15575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15576 | /* end confdefs.h. */ | ||
15577 | #include <sys/types.h> | ||
15578 | int | ||
15579 | main () | ||
15580 | { | ||
15581 | u_char foo; foo = 125; | ||
15582 | ; | ||
15583 | return 0; | ||
15584 | } | ||
15585 | _ACEOF | ||
15586 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15587 | ac_cv_have_u_char="yes" | ||
15588 | else | ||
15589 | ac_cv_have_u_char="no" | ||
15590 | |||
15591 | fi | ||
15592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15593 | |||
15594 | fi | ||
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
15596 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
15597 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
15598 | |||
15599 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
15600 | |||
15601 | fi | ||
15602 | |||
15603 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " | ||
15604 | #include <sys/types.h> | ||
15605 | #ifdef HAVE_STDINT_H | ||
15606 | # include <stdint.h> | ||
15607 | #endif | ||
15608 | |||
15609 | " | ||
15610 | if test "x$ac_cv_type_intmax_t" = xyes; then : | ||
15611 | |||
15612 | cat >>confdefs.h <<_ACEOF | ||
15613 | #define HAVE_INTMAX_T 1 | ||
15614 | _ACEOF | ||
15615 | |||
15616 | |||
15617 | fi | ||
15618 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " | ||
15619 | #include <sys/types.h> | ||
15620 | #ifdef HAVE_STDINT_H | ||
15621 | # include <stdint.h> | ||
15622 | #endif | ||
15623 | |||
15624 | " | ||
15625 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | ||
15626 | |||
15627 | cat >>confdefs.h <<_ACEOF | ||
15628 | #define HAVE_UINTMAX_T 1 | ||
15629 | _ACEOF | ||
15630 | |||
15631 | |||
15632 | fi | ||
15633 | |||
15634 | |||
15635 | |||
15636 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
15637 | #include <sys/socket.h> | ||
15638 | " | ||
15639 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
15640 | |||
15641 | else | ||
15642 | |||
15643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
15644 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
15645 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
15646 | $as_echo_n "(cached) " >&6 | ||
15647 | else | ||
15648 | |||
15649 | # Systems have either "struct sockaddr *" or | ||
15650 | # "void *" as the second argument to getpeername | ||
15651 | curl_cv_socklen_t_equiv= | ||
15652 | for arg2 in "struct sockaddr" void; do | ||
15653 | for t in int size_t unsigned long "unsigned long"; do | ||
15654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15655 | /* end confdefs.h. */ | ||
15656 | |||
15657 | #include <sys/types.h> | ||
15658 | #include <sys/socket.h> | ||
15659 | |||
15660 | int getpeername (int, $arg2 *, $t *); | ||
15661 | |||
15662 | int | ||
15663 | main () | ||
15664 | { | ||
15665 | |||
15666 | $t len; | ||
15667 | getpeername(0,0,&len); | ||
15668 | |||
15669 | ; | ||
15670 | return 0; | ||
15671 | } | ||
15672 | _ACEOF | ||
15673 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15674 | |||
15675 | curl_cv_socklen_t_equiv="$t" | ||
15676 | break | ||
15677 | |||
15678 | fi | ||
15679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15680 | done | ||
15681 | done | ||
15682 | |||
15683 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
15684 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
15685 | fi | ||
15686 | |||
15687 | fi | ||
15688 | |||
15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
15690 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
15691 | |||
15692 | cat >>confdefs.h <<_ACEOF | ||
15693 | #define socklen_t $curl_cv_socklen_t_equiv | ||
15694 | _ACEOF | ||
15695 | |||
15696 | fi | ||
15697 | |||
15698 | |||
15699 | |||
15700 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
15701 | " | ||
15702 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
15703 | |||
15704 | cat >>confdefs.h <<_ACEOF | ||
15705 | #define HAVE_SIG_ATOMIC_T 1 | ||
15706 | _ACEOF | ||
15707 | |||
15708 | |||
15709 | fi | ||
15710 | |||
15711 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
15712 | #include <sys/types.h> | ||
15713 | #ifdef HAVE_SYS_BITYPES_H | ||
15714 | #include <sys/bitypes.h> | ||
15715 | #endif | ||
15716 | #ifdef HAVE_SYS_STATFS_H | ||
15717 | #include <sys/statfs.h> | ||
15718 | #endif | ||
15719 | #ifdef HAVE_SYS_STATVFS_H | ||
15720 | #include <sys/statvfs.h> | ||
15721 | #endif | ||
15722 | |||
15723 | " | ||
15724 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
15725 | |||
15726 | cat >>confdefs.h <<_ACEOF | ||
15727 | #define HAVE_FSBLKCNT_T 1 | ||
15728 | _ACEOF | ||
15729 | |||
15730 | |||
15731 | fi | ||
15732 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
15733 | #include <sys/types.h> | ||
15734 | #ifdef HAVE_SYS_BITYPES_H | ||
15735 | #include <sys/bitypes.h> | ||
15736 | #endif | ||
15737 | #ifdef HAVE_SYS_STATFS_H | ||
15738 | #include <sys/statfs.h> | ||
15739 | #endif | ||
15740 | #ifdef HAVE_SYS_STATVFS_H | ||
15741 | #include <sys/statvfs.h> | ||
15742 | #endif | ||
15743 | |||
15744 | " | ||
15745 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
15746 | |||
15747 | cat >>confdefs.h <<_ACEOF | ||
15748 | #define HAVE_FSFILCNT_T 1 | ||
15749 | _ACEOF | ||
15750 | |||
15751 | |||
15752 | fi | ||
15753 | |||
15754 | |||
15755 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_files" "ac_cv_member_struct_statfs_f_files" " | ||
15756 | #include <sys/param.h> | ||
15757 | #include <sys/types.h> | ||
15758 | #ifdef HAVE_SYS_BITYPES_H | ||
15759 | #include <sys/bitypes.h> | ||
15760 | #endif | ||
15761 | #ifdef HAVE_SYS_STATFS_H | ||
15762 | #include <sys/statfs.h> | ||
15763 | #endif | ||
15764 | #ifdef HAVE_SYS_STATVFS_H | ||
15765 | #include <sys/statvfs.h> | ||
15766 | #endif | ||
15767 | #ifdef HAVE_SYS_VFS_H | ||
15768 | #include <sys/vfs.h> | ||
15769 | #endif | ||
15770 | #ifdef HAVE_SYS_MOUNT_H | ||
15771 | #include <sys/mount.h> | ||
15772 | #endif | ||
15773 | |||
15774 | " | ||
15775 | if test "x$ac_cv_member_struct_statfs_f_files" = xyes; then : | ||
15776 | |||
15777 | cat >>confdefs.h <<_ACEOF | ||
15778 | #define HAVE_STRUCT_STATFS_F_FILES 1 | ||
15779 | _ACEOF | ||
15780 | |||
15781 | |||
15782 | fi | ||
15783 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " | ||
15784 | #include <sys/param.h> | ||
15785 | #include <sys/types.h> | ||
15786 | #ifdef HAVE_SYS_BITYPES_H | ||
15787 | #include <sys/bitypes.h> | ||
15788 | #endif | ||
15789 | #ifdef HAVE_SYS_STATFS_H | ||
15790 | #include <sys/statfs.h> | ||
15791 | #endif | ||
15792 | #ifdef HAVE_SYS_STATVFS_H | ||
15793 | #include <sys/statvfs.h> | ||
15794 | #endif | ||
15795 | #ifdef HAVE_SYS_VFS_H | ||
15796 | #include <sys/vfs.h> | ||
15797 | #endif | ||
15798 | #ifdef HAVE_SYS_MOUNT_H | ||
15799 | #include <sys/mount.h> | ||
15800 | #endif | ||
15801 | |||
15802 | " | ||
15803 | if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : | ||
15804 | |||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define HAVE_STRUCT_STATFS_F_FLAGS 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | |||
15810 | fi | ||
15811 | |||
15812 | |||
15813 | |||
15814 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
15815 | #include <netinet/in.h> | ||
15816 | " | ||
15817 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
15818 | |||
15819 | cat >>confdefs.h <<_ACEOF | ||
15820 | #define HAVE_IN_ADDR_T 1 | ||
15821 | _ACEOF | ||
15822 | |||
15823 | |||
15824 | fi | ||
15825 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
15826 | #include <netinet/in.h> | ||
15827 | " | ||
15828 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
15829 | |||
15830 | cat >>confdefs.h <<_ACEOF | ||
15831 | #define HAVE_IN_PORT_T 1 | ||
15832 | _ACEOF | ||
15833 | |||
15834 | |||
15835 | fi | ||
15836 | |||
15837 | |||
15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
15839 | $as_echo_n "checking for size_t... " >&6; } | ||
15840 | if ${ac_cv_have_size_t+:} false; then : | ||
15841 | $as_echo_n "(cached) " >&6 | ||
15842 | else | ||
15843 | |||
15844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15845 | /* end confdefs.h. */ | ||
15846 | #include <sys/types.h> | ||
15847 | int | ||
15848 | main () | ||
15849 | { | ||
15850 | size_t foo; foo = 1235; | ||
15851 | ; | ||
15852 | return 0; | ||
15853 | } | ||
15854 | _ACEOF | ||
15855 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15856 | ac_cv_have_size_t="yes" | ||
15857 | else | ||
15858 | ac_cv_have_size_t="no" | ||
15859 | |||
15860 | fi | ||
15861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15862 | |||
15863 | fi | ||
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
15865 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
15866 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
15867 | |||
15868 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
15869 | |||
15870 | fi | ||
15871 | |||
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
15873 | $as_echo_n "checking for ssize_t... " >&6; } | ||
15874 | if ${ac_cv_have_ssize_t+:} false; then : | ||
15875 | $as_echo_n "(cached) " >&6 | ||
15876 | else | ||
15877 | |||
15878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15879 | /* end confdefs.h. */ | ||
15880 | #include <sys/types.h> | ||
15881 | int | ||
15882 | main () | ||
15883 | { | ||
15884 | ssize_t foo; foo = 1235; | ||
15885 | ; | ||
15886 | return 0; | ||
15887 | } | ||
15888 | _ACEOF | ||
15889 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15890 | ac_cv_have_ssize_t="yes" | ||
15891 | else | ||
15892 | ac_cv_have_ssize_t="no" | ||
15893 | |||
15894 | fi | ||
15895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15896 | |||
15897 | fi | ||
15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
15899 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
15900 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
15901 | |||
15902 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
15903 | |||
15904 | fi | ||
15905 | |||
15906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
15907 | $as_echo_n "checking for clock_t... " >&6; } | ||
15908 | if ${ac_cv_have_clock_t+:} false; then : | ||
15909 | $as_echo_n "(cached) " >&6 | ||
15910 | else | ||
15911 | |||
15912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15913 | /* end confdefs.h. */ | ||
15914 | #include <time.h> | ||
15915 | int | ||
15916 | main () | ||
15917 | { | ||
15918 | clock_t foo; foo = 1235; | ||
15919 | ; | ||
15920 | return 0; | ||
15921 | } | ||
15922 | _ACEOF | ||
15923 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15924 | ac_cv_have_clock_t="yes" | ||
15925 | else | ||
15926 | ac_cv_have_clock_t="no" | ||
15927 | |||
15928 | fi | ||
15929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15930 | |||
15931 | fi | ||
15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
15933 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
15934 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
15935 | |||
15936 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
15937 | |||
15938 | fi | ||
15939 | |||
15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
15941 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
15942 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
15943 | $as_echo_n "(cached) " >&6 | ||
15944 | else | ||
15945 | |||
15946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15947 | /* end confdefs.h. */ | ||
15948 | |||
15949 | #include <sys/types.h> | ||
15950 | #include <sys/socket.h> | ||
15951 | |||
15952 | int | ||
15953 | main () | ||
15954 | { | ||
15955 | sa_family_t foo; foo = 1235; | ||
15956 | ; | ||
15957 | return 0; | ||
15958 | } | ||
15959 | _ACEOF | ||
15960 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15961 | ac_cv_have_sa_family_t="yes" | ||
15962 | else | ||
15963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15964 | /* end confdefs.h. */ | ||
15965 | |||
15966 | #include <sys/types.h> | ||
15967 | #include <sys/socket.h> | ||
15968 | #include <netinet/in.h> | ||
15969 | |||
15970 | int | ||
15971 | main () | ||
15972 | { | ||
15973 | sa_family_t foo; foo = 1235; | ||
15974 | ; | ||
15975 | return 0; | ||
15976 | } | ||
15977 | _ACEOF | ||
15978 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15979 | ac_cv_have_sa_family_t="yes" | ||
15980 | else | ||
15981 | ac_cv_have_sa_family_t="no" | ||
15982 | |||
15983 | fi | ||
15984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15985 | |||
15986 | fi | ||
15987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15988 | |||
15989 | fi | ||
15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
15991 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
15992 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
15993 | |||
15994 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
15995 | |||
15996 | fi | ||
15997 | |||
15998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
15999 | $as_echo_n "checking for pid_t... " >&6; } | ||
16000 | if ${ac_cv_have_pid_t+:} false; then : | ||
16001 | $as_echo_n "(cached) " >&6 | ||
16002 | else | ||
16003 | |||
16004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16005 | /* end confdefs.h. */ | ||
16006 | #include <sys/types.h> | ||
16007 | int | ||
16008 | main () | ||
16009 | { | ||
16010 | pid_t foo; foo = 1235; | ||
16011 | ; | ||
16012 | return 0; | ||
16013 | } | ||
16014 | _ACEOF | ||
16015 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16016 | ac_cv_have_pid_t="yes" | ||
16017 | else | ||
16018 | ac_cv_have_pid_t="no" | ||
16019 | |||
16020 | fi | ||
16021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16022 | |||
16023 | fi | ||
16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
16025 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
16026 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
16027 | |||
16028 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
16029 | |||
16030 | fi | ||
16031 | |||
16032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
16033 | $as_echo_n "checking for mode_t... " >&6; } | ||
16034 | if ${ac_cv_have_mode_t+:} false; then : | ||
16035 | $as_echo_n "(cached) " >&6 | ||
16036 | else | ||
16037 | |||
16038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16039 | /* end confdefs.h. */ | ||
16040 | #include <sys/types.h> | ||
16041 | int | ||
16042 | main () | ||
16043 | { | ||
16044 | mode_t foo; foo = 1235; | ||
16045 | ; | ||
16046 | return 0; | ||
16047 | } | ||
16048 | _ACEOF | ||
16049 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16050 | ac_cv_have_mode_t="yes" | ||
16051 | else | ||
16052 | ac_cv_have_mode_t="no" | ||
16053 | |||
16054 | fi | ||
16055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16056 | |||
16057 | fi | ||
16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
16059 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
16060 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
16061 | |||
16062 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
16063 | |||
16064 | fi | ||
16065 | |||
16066 | |||
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
16068 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
16069 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
16070 | $as_echo_n "(cached) " >&6 | ||
16071 | else | ||
16072 | |||
16073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16074 | /* end confdefs.h. */ | ||
16075 | |||
16076 | #include <sys/types.h> | ||
16077 | #include <sys/socket.h> | ||
16078 | |||
16079 | int | ||
16080 | main () | ||
16081 | { | ||
16082 | struct sockaddr_storage s; | ||
16083 | ; | ||
16084 | return 0; | ||
16085 | } | ||
16086 | _ACEOF | ||
16087 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16088 | ac_cv_have_struct_sockaddr_storage="yes" | ||
16089 | else | ||
16090 | ac_cv_have_struct_sockaddr_storage="no" | ||
16091 | |||
16092 | fi | ||
16093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16094 | |||
16095 | fi | ||
16096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
16097 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
16098 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
16099 | |||
16100 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
16101 | |||
16102 | fi | ||
16103 | |||
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
16105 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
16106 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
16107 | $as_echo_n "(cached) " >&6 | ||
16108 | else | ||
16109 | |||
16110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16111 | /* end confdefs.h. */ | ||
16112 | |||
16113 | #include <sys/types.h> | ||
16114 | #include <netinet/in.h> | ||
16115 | |||
16116 | int | ||
16117 | main () | ||
16118 | { | ||
16119 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
16120 | ; | ||
16121 | return 0; | ||
16122 | } | ||
16123 | _ACEOF | ||
16124 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16125 | ac_cv_have_struct_sockaddr_in6="yes" | ||
16126 | else | ||
16127 | ac_cv_have_struct_sockaddr_in6="no" | ||
16128 | |||
16129 | fi | ||
16130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16131 | |||
16132 | fi | ||
16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
16134 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
16135 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
16136 | |||
16137 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
16138 | |||
16139 | fi | ||
16140 | |||
16141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
16142 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
16143 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
16144 | $as_echo_n "(cached) " >&6 | ||
16145 | else | ||
16146 | |||
16147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16148 | /* end confdefs.h. */ | ||
16149 | |||
16150 | #include <sys/types.h> | ||
16151 | #include <netinet/in.h> | ||
16152 | |||
16153 | int | ||
16154 | main () | ||
16155 | { | ||
16156 | struct in6_addr s; s.s6_addr[0] = 0; | ||
16157 | ; | ||
16158 | return 0; | ||
16159 | } | ||
16160 | _ACEOF | ||
16161 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16162 | ac_cv_have_struct_in6_addr="yes" | ||
16163 | else | ||
16164 | ac_cv_have_struct_in6_addr="no" | ||
16165 | |||
16166 | fi | ||
16167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16168 | |||
16169 | fi | ||
16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
16171 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
16172 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
16173 | |||
16174 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
16175 | |||
16176 | |||
16177 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
16178 | #ifdef HAVE_SYS_TYPES_H | ||
16179 | #include <sys/types.h> | ||
16180 | #endif | ||
16181 | #include <netinet/in.h> | ||
16182 | |||
16183 | " | ||
16184 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
16185 | |||
16186 | cat >>confdefs.h <<_ACEOF | ||
16187 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
16188 | _ACEOF | ||
16189 | |||
16190 | |||
16191 | fi | ||
16192 | |||
16193 | fi | ||
16194 | |||
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
16196 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
16197 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
16198 | $as_echo_n "(cached) " >&6 | ||
16199 | else | ||
16200 | |||
16201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16202 | /* end confdefs.h. */ | ||
16203 | |||
16204 | #include <sys/types.h> | ||
16205 | #include <sys/socket.h> | ||
16206 | #include <netdb.h> | ||
16207 | |||
16208 | int | ||
16209 | main () | ||
16210 | { | ||
16211 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
16212 | ; | ||
16213 | return 0; | ||
16214 | } | ||
16215 | _ACEOF | ||
16216 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16217 | ac_cv_have_struct_addrinfo="yes" | ||
16218 | else | ||
16219 | ac_cv_have_struct_addrinfo="no" | ||
16220 | |||
16221 | fi | ||
16222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16223 | |||
16224 | fi | ||
16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
16226 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
16227 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
16228 | |||
16229 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
16230 | |||
16231 | fi | ||
16232 | |||
16233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | ||
16234 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||
16235 | if ${ac_cv_header_time+:} false; then : | ||
16236 | $as_echo_n "(cached) " >&6 | ||
16237 | else | ||
16238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16239 | /* end confdefs.h. */ | ||
16240 | #include <sys/types.h> | ||
16241 | #include <sys/time.h> | ||
16242 | #include <time.h> | ||
16243 | |||
16244 | int | ||
16245 | main () | ||
16246 | { | ||
16247 | if ((struct tm *) 0) | ||
16248 | return 0; | ||
16249 | ; | ||
16250 | return 0; | ||
16251 | } | ||
16252 | _ACEOF | ||
16253 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16254 | ac_cv_header_time=yes | ||
16255 | else | ||
16256 | ac_cv_header_time=no | ||
16257 | fi | ||
16258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16259 | fi | ||
16260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||
16261 | $as_echo "$ac_cv_header_time" >&6; } | ||
16262 | if test $ac_cv_header_time = yes; then | ||
16263 | |||
16264 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | ||
16265 | |||
16266 | fi | ||
16267 | |||
16268 | |||
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
16270 | $as_echo_n "checking for struct timeval... " >&6; } | ||
16271 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
16272 | $as_echo_n "(cached) " >&6 | ||
16273 | else | ||
16274 | |||
16275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16276 | /* end confdefs.h. */ | ||
16277 | #include <sys/time.h> | ||
16278 | int | ||
16279 | main () | ||
16280 | { | ||
16281 | struct timeval tv; tv.tv_sec = 1; | ||
16282 | ; | ||
16283 | return 0; | ||
16284 | } | ||
16285 | _ACEOF | ||
16286 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16287 | ac_cv_have_struct_timeval="yes" | ||
16288 | else | ||
16289 | ac_cv_have_struct_timeval="no" | ||
16290 | |||
16291 | fi | ||
16292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16293 | |||
16294 | fi | ||
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
16296 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
16297 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
16298 | |||
16299 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
16300 | |||
16301 | have_struct_timeval=1 | ||
16302 | fi | ||
16303 | |||
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 | ||
16305 | $as_echo_n "checking for struct timespec... " >&6; } | ||
16306 | if ${ac_cv_have_struct_timespec+:} false; then : | ||
16307 | $as_echo_n "(cached) " >&6 | ||
16308 | else | ||
16309 | |||
16310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16311 | /* end confdefs.h. */ | ||
16312 | |||
16313 | #ifdef TIME_WITH_SYS_TIME | ||
16314 | # include <sys/time.h> | ||
16315 | # include <time.h> | ||
16316 | #else | ||
16317 | # ifdef HAVE_SYS_TIME_H | ||
16318 | # include <sys/time.h> | ||
16319 | # else | ||
16320 | # include <time.h> | ||
16321 | # endif | ||
16322 | #endif | ||
16323 | |||
16324 | int | ||
16325 | main () | ||
16326 | { | ||
16327 | struct timespec ts; ts.tv_sec = 1; | ||
16328 | ; | ||
16329 | return 0; | ||
16330 | } | ||
16331 | _ACEOF | ||
16332 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16333 | ac_cv_have_struct_timespec="yes" | ||
16334 | else | ||
16335 | ac_cv_have_struct_timespec="no" | ||
16336 | |||
16337 | fi | ||
16338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16339 | |||
16340 | fi | ||
16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timespec" >&5 | ||
16342 | $as_echo "$ac_cv_have_struct_timespec" >&6; } | ||
16343 | if test "x$ac_cv_have_struct_timespec" = "xyes" ; then | ||
16344 | |||
16345 | $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h | ||
16346 | |||
16347 | have_struct_timespec=1 | ||
16348 | fi | ||
16349 | |||
16350 | # We need int64_t or else certain parts of the compile will fail. | ||
16351 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
16352 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
16353 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
16354 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
16355 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
16356 | echo "" | ||
16357 | exit 1; | ||
16358 | else | ||
16359 | if test "$cross_compiling" = yes; then : | ||
16360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
16361 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
16362 | |||
16363 | else | ||
16364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16365 | /* end confdefs.h. */ | ||
16366 | |||
16367 | #include <stdio.h> | ||
16368 | #include <string.h> | ||
16369 | #ifdef HAVE_SNPRINTF | ||
16370 | main() | ||
16371 | { | ||
16372 | char buf[50]; | ||
16373 | char expected_out[50]; | ||
16374 | int mazsize = 50 ; | ||
16375 | #if (SIZEOF_LONG_INT == 8) | ||
16376 | long int num = 0x7fffffffffffffff; | ||
16377 | #else | ||
16378 | long long num = 0x7fffffffffffffffll; | ||
16379 | #endif | ||
16380 | strcpy(expected_out, "9223372036854775807"); | ||
16381 | snprintf(buf, mazsize, "%lld", num); | ||
16382 | if(strcmp(buf, expected_out) != 0) | ||
16383 | exit(1); | ||
16384 | exit(0); | ||
16385 | } | ||
16386 | #else | ||
16387 | main() { exit(0); } | ||
16388 | #endif | ||
16389 | |||
16390 | _ACEOF | ||
16391 | if ac_fn_c_try_run "$LINENO"; then : | ||
16392 | true | ||
16393 | else | ||
16394 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
16395 | |||
16396 | fi | ||
16397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16398 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16399 | fi | ||
16400 | |||
16401 | fi | ||
16402 | |||
16403 | |||
16404 | # look for field 'ut_host' in header 'utmp.h' | ||
16405 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16406 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
16408 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
16409 | if eval \${$ossh_varname+:} false; then : | ||
16410 | $as_echo_n "(cached) " >&6 | ||
16411 | else | ||
16412 | |||
16413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16414 | /* end confdefs.h. */ | ||
16415 | #include <utmp.h> | ||
16416 | |||
16417 | _ACEOF | ||
16418 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16419 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
16420 | eval "$ossh_varname=yes" | ||
16421 | else | ||
16422 | eval "$ossh_varname=no" | ||
16423 | fi | ||
16424 | rm -f conftest* | ||
16425 | |||
16426 | fi | ||
16427 | |||
16428 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16429 | if test -n "`echo $ossh_varname`"; then | ||
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16431 | $as_echo "$ossh_result" >&6; } | ||
16432 | if test "x$ossh_result" = "xyes"; then | ||
16433 | |||
16434 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
16435 | |||
16436 | fi | ||
16437 | else | ||
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16439 | $as_echo "no" >&6; } | ||
16440 | fi | ||
16441 | |||
16442 | |||
16443 | # look for field 'ut_host' in header 'utmpx.h' | ||
16444 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16445 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
16447 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
16448 | if eval \${$ossh_varname+:} false; then : | ||
16449 | $as_echo_n "(cached) " >&6 | ||
16450 | else | ||
16451 | |||
16452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16453 | /* end confdefs.h. */ | ||
16454 | #include <utmpx.h> | ||
16455 | |||
16456 | _ACEOF | ||
16457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16458 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
16459 | eval "$ossh_varname=yes" | ||
16460 | else | ||
16461 | eval "$ossh_varname=no" | ||
16462 | fi | ||
16463 | rm -f conftest* | ||
16464 | |||
16465 | fi | ||
16466 | |||
16467 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16468 | if test -n "`echo $ossh_varname`"; then | ||
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16470 | $as_echo "$ossh_result" >&6; } | ||
16471 | if test "x$ossh_result" = "xyes"; then | ||
16472 | |||
16473 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
16474 | |||
16475 | fi | ||
16476 | else | ||
16477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16478 | $as_echo "no" >&6; } | ||
16479 | fi | ||
16480 | |||
16481 | |||
16482 | # look for field 'syslen' in header 'utmpx.h' | ||
16483 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16484 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
16486 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
16487 | if eval \${$ossh_varname+:} false; then : | ||
16488 | $as_echo_n "(cached) " >&6 | ||
16489 | else | ||
16490 | |||
16491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16492 | /* end confdefs.h. */ | ||
16493 | #include <utmpx.h> | ||
16494 | |||
16495 | _ACEOF | ||
16496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16497 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
16498 | eval "$ossh_varname=yes" | ||
16499 | else | ||
16500 | eval "$ossh_varname=no" | ||
16501 | fi | ||
16502 | rm -f conftest* | ||
16503 | |||
16504 | fi | ||
16505 | |||
16506 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16507 | if test -n "`echo $ossh_varname`"; then | ||
16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16509 | $as_echo "$ossh_result" >&6; } | ||
16510 | if test "x$ossh_result" = "xyes"; then | ||
16511 | |||
16512 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
16513 | |||
16514 | fi | ||
16515 | else | ||
16516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16517 | $as_echo "no" >&6; } | ||
16518 | fi | ||
16519 | |||
16520 | |||
16521 | # look for field 'ut_pid' in header 'utmp.h' | ||
16522 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16523 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
16524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
16525 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
16526 | if eval \${$ossh_varname+:} false; then : | ||
16527 | $as_echo_n "(cached) " >&6 | ||
16528 | else | ||
16529 | |||
16530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16531 | /* end confdefs.h. */ | ||
16532 | #include <utmp.h> | ||
16533 | |||
16534 | _ACEOF | ||
16535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16536 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
16537 | eval "$ossh_varname=yes" | ||
16538 | else | ||
16539 | eval "$ossh_varname=no" | ||
16540 | fi | ||
16541 | rm -f conftest* | ||
16542 | |||
16543 | fi | ||
16544 | |||
16545 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16546 | if test -n "`echo $ossh_varname`"; then | ||
16547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16548 | $as_echo "$ossh_result" >&6; } | ||
16549 | if test "x$ossh_result" = "xyes"; then | ||
16550 | |||
16551 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
16552 | |||
16553 | fi | ||
16554 | else | ||
16555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16556 | $as_echo "no" >&6; } | ||
16557 | fi | ||
16558 | |||
16559 | |||
16560 | # look for field 'ut_type' in header 'utmp.h' | ||
16561 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16562 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
16563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
16564 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
16565 | if eval \${$ossh_varname+:} false; then : | ||
16566 | $as_echo_n "(cached) " >&6 | ||
16567 | else | ||
16568 | |||
16569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16570 | /* end confdefs.h. */ | ||
16571 | #include <utmp.h> | ||
16572 | |||
16573 | _ACEOF | ||
16574 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16575 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
16576 | eval "$ossh_varname=yes" | ||
16577 | else | ||
16578 | eval "$ossh_varname=no" | ||
16579 | fi | ||
16580 | rm -f conftest* | ||
16581 | |||
16582 | fi | ||
16583 | |||
16584 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16585 | if test -n "`echo $ossh_varname`"; then | ||
16586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16587 | $as_echo "$ossh_result" >&6; } | ||
16588 | if test "x$ossh_result" = "xyes"; then | ||
16589 | |||
16590 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
16591 | |||
16592 | fi | ||
16593 | else | ||
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16595 | $as_echo "no" >&6; } | ||
16596 | fi | ||
16597 | |||
16598 | |||
16599 | # look for field 'ut_type' in header 'utmpx.h' | ||
16600 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16601 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
16603 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
16604 | if eval \${$ossh_varname+:} false; then : | ||
16605 | $as_echo_n "(cached) " >&6 | ||
16606 | else | ||
16607 | |||
16608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16609 | /* end confdefs.h. */ | ||
16610 | #include <utmpx.h> | ||
16611 | |||
16612 | _ACEOF | ||
16613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16614 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
16615 | eval "$ossh_varname=yes" | ||
16616 | else | ||
16617 | eval "$ossh_varname=no" | ||
16618 | fi | ||
16619 | rm -f conftest* | ||
16620 | |||
16621 | fi | ||
16622 | |||
16623 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16624 | if test -n "`echo $ossh_varname`"; then | ||
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16626 | $as_echo "$ossh_result" >&6; } | ||
16627 | if test "x$ossh_result" = "xyes"; then | ||
16628 | |||
16629 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
16630 | |||
16631 | fi | ||
16632 | else | ||
16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16634 | $as_echo "no" >&6; } | ||
16635 | fi | ||
16636 | |||
16637 | |||
16638 | # look for field 'ut_tv' in header 'utmp.h' | ||
16639 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16640 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
16642 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
16643 | if eval \${$ossh_varname+:} false; then : | ||
16644 | $as_echo_n "(cached) " >&6 | ||
16645 | else | ||
16646 | |||
16647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16648 | /* end confdefs.h. */ | ||
16649 | #include <utmp.h> | ||
16650 | |||
16651 | _ACEOF | ||
16652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16653 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
16654 | eval "$ossh_varname=yes" | ||
16655 | else | ||
16656 | eval "$ossh_varname=no" | ||
16657 | fi | ||
16658 | rm -f conftest* | ||
16659 | |||
16660 | fi | ||
16661 | |||
16662 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16663 | if test -n "`echo $ossh_varname`"; then | ||
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16665 | $as_echo "$ossh_result" >&6; } | ||
16666 | if test "x$ossh_result" = "xyes"; then | ||
16667 | |||
16668 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
16669 | |||
16670 | fi | ||
16671 | else | ||
16672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16673 | $as_echo "no" >&6; } | ||
16674 | fi | ||
16675 | |||
16676 | |||
16677 | # look for field 'ut_id' in header 'utmp.h' | ||
16678 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16679 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
16680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
16681 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
16682 | if eval \${$ossh_varname+:} false; then : | ||
16683 | $as_echo_n "(cached) " >&6 | ||
16684 | else | ||
16685 | |||
16686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16687 | /* end confdefs.h. */ | ||
16688 | #include <utmp.h> | ||
16689 | |||
16690 | _ACEOF | ||
16691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16692 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16693 | eval "$ossh_varname=yes" | ||
16694 | else | ||
16695 | eval "$ossh_varname=no" | ||
16696 | fi | ||
16697 | rm -f conftest* | ||
16698 | |||
16699 | fi | ||
16700 | |||
16701 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16702 | if test -n "`echo $ossh_varname`"; then | ||
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16704 | $as_echo "$ossh_result" >&6; } | ||
16705 | if test "x$ossh_result" = "xyes"; then | ||
16706 | |||
16707 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
16708 | |||
16709 | fi | ||
16710 | else | ||
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16712 | $as_echo "no" >&6; } | ||
16713 | fi | ||
16714 | |||
16715 | |||
16716 | # look for field 'ut_id' in header 'utmpx.h' | ||
16717 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16718 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
16720 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
16721 | if eval \${$ossh_varname+:} false; then : | ||
16722 | $as_echo_n "(cached) " >&6 | ||
16723 | else | ||
16724 | |||
16725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16726 | /* end confdefs.h. */ | ||
16727 | #include <utmpx.h> | ||
16728 | |||
16729 | _ACEOF | ||
16730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16731 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16732 | eval "$ossh_varname=yes" | ||
16733 | else | ||
16734 | eval "$ossh_varname=no" | ||
16735 | fi | ||
16736 | rm -f conftest* | ||
16737 | |||
16738 | fi | ||
16739 | |||
16740 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16741 | if test -n "`echo $ossh_varname`"; then | ||
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16743 | $as_echo "$ossh_result" >&6; } | ||
16744 | if test "x$ossh_result" = "xyes"; then | ||
16745 | |||
16746 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
16747 | |||
16748 | fi | ||
16749 | else | ||
16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16751 | $as_echo "no" >&6; } | ||
16752 | fi | ||
16753 | |||
16754 | |||
16755 | # look for field 'ut_addr' in header 'utmp.h' | ||
16756 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16757 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
16759 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
16760 | if eval \${$ossh_varname+:} false; then : | ||
16761 | $as_echo_n "(cached) " >&6 | ||
16762 | else | ||
16763 | |||
16764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16765 | /* end confdefs.h. */ | ||
16766 | #include <utmp.h> | ||
16767 | |||
16768 | _ACEOF | ||
16769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16770 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16771 | eval "$ossh_varname=yes" | ||
16772 | else | ||
16773 | eval "$ossh_varname=no" | ||
16774 | fi | ||
16775 | rm -f conftest* | ||
16776 | |||
16777 | fi | ||
16778 | |||
16779 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16780 | if test -n "`echo $ossh_varname`"; then | ||
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16782 | $as_echo "$ossh_result" >&6; } | ||
16783 | if test "x$ossh_result" = "xyes"; then | ||
16784 | |||
16785 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
16786 | |||
16787 | fi | ||
16788 | else | ||
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16790 | $as_echo "no" >&6; } | ||
16791 | fi | ||
16792 | |||
16793 | |||
16794 | # look for field 'ut_addr' in header 'utmpx.h' | ||
16795 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16796 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
16798 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
16799 | if eval \${$ossh_varname+:} false; then : | ||
16800 | $as_echo_n "(cached) " >&6 | ||
16801 | else | ||
16802 | |||
16803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16804 | /* end confdefs.h. */ | ||
16805 | #include <utmpx.h> | ||
16806 | |||
16807 | _ACEOF | ||
16808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16809 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16810 | eval "$ossh_varname=yes" | ||
16811 | else | ||
16812 | eval "$ossh_varname=no" | ||
16813 | fi | ||
16814 | rm -f conftest* | ||
16815 | |||
16816 | fi | ||
16817 | |||
16818 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16819 | if test -n "`echo $ossh_varname`"; then | ||
16820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16821 | $as_echo "$ossh_result" >&6; } | ||
16822 | if test "x$ossh_result" = "xyes"; then | ||
16823 | |||
16824 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
16825 | |||
16826 | fi | ||
16827 | else | ||
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16829 | $as_echo "no" >&6; } | ||
16830 | fi | ||
16831 | |||
16832 | |||
16833 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
16834 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16835 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
16837 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
16838 | if eval \${$ossh_varname+:} false; then : | ||
16839 | $as_echo_n "(cached) " >&6 | ||
16840 | else | ||
16841 | |||
16842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16843 | /* end confdefs.h. */ | ||
16844 | #include <utmp.h> | ||
16845 | |||
16846 | _ACEOF | ||
16847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16848 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16849 | eval "$ossh_varname=yes" | ||
16850 | else | ||
16851 | eval "$ossh_varname=no" | ||
16852 | fi | ||
16853 | rm -f conftest* | ||
16854 | |||
16855 | fi | ||
16856 | |||
16857 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16858 | if test -n "`echo $ossh_varname`"; then | ||
16859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16860 | $as_echo "$ossh_result" >&6; } | ||
16861 | if test "x$ossh_result" = "xyes"; then | ||
16862 | |||
16863 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
16864 | |||
16865 | fi | ||
16866 | else | ||
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16868 | $as_echo "no" >&6; } | ||
16869 | fi | ||
16870 | |||
16871 | |||
16872 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
16873 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16874 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
16876 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
16877 | if eval \${$ossh_varname+:} false; then : | ||
16878 | $as_echo_n "(cached) " >&6 | ||
16879 | else | ||
16880 | |||
16881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16882 | /* end confdefs.h. */ | ||
16883 | #include <utmpx.h> | ||
16884 | |||
16885 | _ACEOF | ||
16886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16887 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16888 | eval "$ossh_varname=yes" | ||
16889 | else | ||
16890 | eval "$ossh_varname=no" | ||
16891 | fi | ||
16892 | rm -f conftest* | ||
16893 | |||
16894 | fi | ||
16895 | |||
16896 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16897 | if test -n "`echo $ossh_varname`"; then | ||
16898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16899 | $as_echo "$ossh_result" >&6; } | ||
16900 | if test "x$ossh_result" = "xyes"; then | ||
16901 | |||
16902 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
16903 | |||
16904 | fi | ||
16905 | else | ||
16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16907 | $as_echo "no" >&6; } | ||
16908 | fi | ||
16909 | |||
16910 | |||
16911 | # look for field 'ut_exit' in header 'utmp.h' | ||
16912 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16913 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
16915 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
16916 | if eval \${$ossh_varname+:} false; then : | ||
16917 | $as_echo_n "(cached) " >&6 | ||
16918 | else | ||
16919 | |||
16920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16921 | /* end confdefs.h. */ | ||
16922 | #include <utmp.h> | ||
16923 | |||
16924 | _ACEOF | ||
16925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16926 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
16927 | eval "$ossh_varname=yes" | ||
16928 | else | ||
16929 | eval "$ossh_varname=no" | ||
16930 | fi | ||
16931 | rm -f conftest* | ||
16932 | |||
16933 | fi | ||
16934 | |||
16935 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16936 | if test -n "`echo $ossh_varname`"; then | ||
16937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16938 | $as_echo "$ossh_result" >&6; } | ||
16939 | if test "x$ossh_result" = "xyes"; then | ||
16940 | |||
16941 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
16942 | |||
16943 | fi | ||
16944 | else | ||
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16946 | $as_echo "no" >&6; } | ||
16947 | fi | ||
16948 | |||
16949 | |||
16950 | # look for field 'ut_time' in header 'utmp.h' | ||
16951 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16952 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
16954 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
16955 | if eval \${$ossh_varname+:} false; then : | ||
16956 | $as_echo_n "(cached) " >&6 | ||
16957 | else | ||
16958 | |||
16959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16960 | /* end confdefs.h. */ | ||
16961 | #include <utmp.h> | ||
16962 | |||
16963 | _ACEOF | ||
16964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16965 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16966 | eval "$ossh_varname=yes" | ||
16967 | else | ||
16968 | eval "$ossh_varname=no" | ||
16969 | fi | ||
16970 | rm -f conftest* | ||
16971 | |||
16972 | fi | ||
16973 | |||
16974 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16975 | if test -n "`echo $ossh_varname`"; then | ||
16976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16977 | $as_echo "$ossh_result" >&6; } | ||
16978 | if test "x$ossh_result" = "xyes"; then | ||
16979 | |||
16980 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
16981 | |||
16982 | fi | ||
16983 | else | ||
16984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16985 | $as_echo "no" >&6; } | ||
16986 | fi | ||
16987 | |||
16988 | |||
16989 | # look for field 'ut_time' in header 'utmpx.h' | ||
16990 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16991 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
16993 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
16994 | if eval \${$ossh_varname+:} false; then : | ||
16995 | $as_echo_n "(cached) " >&6 | ||
16996 | else | ||
16997 | |||
16998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16999 | /* end confdefs.h. */ | ||
17000 | #include <utmpx.h> | ||
17001 | |||
17002 | _ACEOF | ||
17003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
17004 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
17005 | eval "$ossh_varname=yes" | ||
17006 | else | ||
17007 | eval "$ossh_varname=no" | ||
17008 | fi | ||
17009 | rm -f conftest* | ||
17010 | |||
17011 | fi | ||
17012 | |||
17013 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
17014 | if test -n "`echo $ossh_varname`"; then | ||
17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
17016 | $as_echo "$ossh_result" >&6; } | ||
17017 | if test "x$ossh_result" = "xyes"; then | ||
17018 | |||
17019 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
17020 | |||
17021 | fi | ||
17022 | else | ||
17023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17024 | $as_echo "no" >&6; } | ||
17025 | fi | ||
17026 | |||
17027 | |||
17028 | # look for field 'ut_tv' in header 'utmpx.h' | ||
17029 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
17030 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
17032 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
17033 | if eval \${$ossh_varname+:} false; then : | ||
17034 | $as_echo_n "(cached) " >&6 | ||
17035 | else | ||
17036 | |||
17037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17038 | /* end confdefs.h. */ | ||
17039 | #include <utmpx.h> | ||
17040 | |||
17041 | _ACEOF | ||
17042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
17043 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
17044 | eval "$ossh_varname=yes" | ||
17045 | else | ||
17046 | eval "$ossh_varname=no" | ||
17047 | fi | ||
17048 | rm -f conftest* | ||
17049 | |||
17050 | fi | ||
17051 | |||
17052 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
17053 | if test -n "`echo $ossh_varname`"; then | ||
17054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
17055 | $as_echo "$ossh_result" >&6; } | ||
17056 | if test "x$ossh_result" = "xyes"; then | ||
17057 | |||
17058 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
17059 | |||
17060 | fi | ||
17061 | else | ||
17062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17063 | $as_echo "no" >&6; } | ||
17064 | fi | ||
17065 | |||
17066 | |||
17067 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
17068 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
17069 | |||
17070 | cat >>confdefs.h <<_ACEOF | ||
17071 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
17072 | _ACEOF | ||
17073 | |||
17074 | |||
17075 | fi | ||
17076 | |||
17077 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" | ||
17078 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : | ||
17079 | |||
17080 | cat >>confdefs.h <<_ACEOF | ||
17081 | #define HAVE_STRUCT_STAT_ST_MTIM 1 | ||
17082 | _ACEOF | ||
17083 | |||
17084 | |||
17085 | fi | ||
17086 | |||
17087 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default" | ||
17088 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | ||
17089 | |||
17090 | cat >>confdefs.h <<_ACEOF | ||
17091 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | ||
17092 | _ACEOF | ||
17093 | |||
17094 | |||
17095 | fi | ||
17096 | |||
17097 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | ||
17098 | #include <sys/types.h> | ||
17099 | #include <pwd.h> | ||
17100 | |||
17101 | " | ||
17102 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||
17103 | |||
17104 | cat >>confdefs.h <<_ACEOF | ||
17105 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
17106 | _ACEOF | ||
17107 | |||
17108 | |||
17109 | fi | ||
17110 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " | ||
17111 | #include <sys/types.h> | ||
17112 | #include <pwd.h> | ||
17113 | |||
17114 | " | ||
17115 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : | ||
17116 | |||
17117 | cat >>confdefs.h <<_ACEOF | ||
17118 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
17119 | _ACEOF | ||
17120 | |||
17121 | |||
17122 | fi | ||
17123 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " | ||
17124 | #include <sys/types.h> | ||
17125 | #include <pwd.h> | ||
17126 | |||
17127 | " | ||
17128 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : | ||
17129 | |||
17130 | cat >>confdefs.h <<_ACEOF | ||
17131 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
17132 | _ACEOF | ||
17133 | |||
17134 | |||
17135 | fi | ||
17136 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " | ||
17137 | #include <sys/types.h> | ||
17138 | #include <pwd.h> | ||
17139 | |||
17140 | " | ||
17141 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : | ||
17142 | |||
17143 | cat >>confdefs.h <<_ACEOF | ||
17144 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
17145 | _ACEOF | ||
17146 | |||
17147 | |||
17148 | fi | ||
17149 | |||
17150 | |||
17151 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
17152 | #include <stdio.h> | ||
17153 | #if HAVE_SYS_TYPES_H | ||
17154 | # include <sys/types.h> | ||
17155 | #endif | ||
17156 | #include <netinet/in.h> | ||
17157 | #include <arpa/nameser.h> | ||
17158 | #include <resolv.h> | ||
17159 | |||
17160 | " | ||
17161 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
17162 | |||
17163 | else | ||
17164 | |||
17165 | $as_echo "#define __res_state state" >>confdefs.h | ||
17166 | |||
17167 | fi | ||
17168 | |||
17169 | |||
17170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
17171 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
17172 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
17173 | $as_echo_n "(cached) " >&6 | ||
17174 | else | ||
17175 | |||
17176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17177 | /* end confdefs.h. */ | ||
17178 | |||
17179 | #include <sys/types.h> | ||
17180 | #include <sys/socket.h> | ||
17181 | |||
17182 | int | ||
17183 | main () | ||
17184 | { | ||
17185 | struct sockaddr_storage s; s.ss_family = 1; | ||
17186 | ; | ||
17187 | return 0; | ||
17188 | } | ||
17189 | _ACEOF | ||
17190 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17191 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
17192 | else | ||
17193 | ac_cv_have_ss_family_in_struct_ss="no" | ||
17194 | fi | ||
17195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17196 | |||
17197 | fi | ||
17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
17199 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
17200 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
17201 | |||
17202 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
17203 | |||
17204 | fi | ||
17205 | |||
17206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
17207 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
17208 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
17209 | $as_echo_n "(cached) " >&6 | ||
17210 | else | ||
17211 | |||
17212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17213 | /* end confdefs.h. */ | ||
17214 | |||
17215 | #include <sys/types.h> | ||
17216 | #include <sys/socket.h> | ||
17217 | |||
17218 | int | ||
17219 | main () | ||
17220 | { | ||
17221 | struct sockaddr_storage s; s.__ss_family = 1; | ||
17222 | ; | ||
17223 | return 0; | ||
17224 | } | ||
17225 | _ACEOF | ||
17226 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17227 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
17228 | else | ||
17229 | ac_cv_have___ss_family_in_struct_ss="no" | ||
17230 | |||
17231 | fi | ||
17232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17233 | |||
17234 | fi | ||
17235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
17236 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
17237 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
17238 | |||
17239 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
17240 | |||
17241 | fi | ||
17242 | |||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
17244 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
17245 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
17246 | $as_echo_n "(cached) " >&6 | ||
17247 | else | ||
17248 | |||
17249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17250 | /* end confdefs.h. */ | ||
17251 | |||
17252 | #include <sys/types.h> | ||
17253 | #include <sys/socket.h> | ||
17254 | #include <sys/uio.h> | ||
17255 | |||
17256 | int | ||
17257 | main () | ||
17258 | { | ||
17259 | |||
17260 | #ifdef msg_accrights | ||
17261 | #error "msg_accrights is a macro" | ||
17262 | exit(1); | ||
17263 | #endif | ||
17264 | struct msghdr m; | ||
17265 | m.msg_accrights = 0; | ||
17266 | exit(0); | ||
17267 | |||
17268 | ; | ||
17269 | return 0; | ||
17270 | } | ||
17271 | _ACEOF | ||
17272 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17273 | ac_cv_have_accrights_in_msghdr="yes" | ||
17274 | else | ||
17275 | ac_cv_have_accrights_in_msghdr="no" | ||
17276 | |||
17277 | fi | ||
17278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17279 | |||
17280 | fi | ||
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
17282 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
17283 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
17284 | |||
17285 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
17286 | |||
17287 | fi | ||
17288 | |||
17289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
17290 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
17291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17292 | /* end confdefs.h. */ | ||
17293 | |||
17294 | #include <sys/param.h> | ||
17295 | #include <sys/stat.h> | ||
17296 | #ifdef HAVE_SYS_TIME_H | ||
17297 | # include <sys/time.h> | ||
17298 | #endif | ||
17299 | #ifdef HAVE_SYS_MOUNT_H | ||
17300 | #include <sys/mount.h> | ||
17301 | #endif | ||
17302 | #ifdef HAVE_SYS_STATVFS_H | ||
17303 | #include <sys/statvfs.h> | ||
17304 | #endif | ||
17305 | |||
17306 | int | ||
17307 | main () | ||
17308 | { | ||
17309 | struct statvfs s; s.f_fsid = 0; | ||
17310 | ; | ||
17311 | return 0; | ||
17312 | } | ||
17313 | _ACEOF | ||
17314 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17316 | $as_echo "yes" >&6; } | ||
17317 | else | ||
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17319 | $as_echo "no" >&6; } | ||
17320 | |||
17321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
17322 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
17323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17324 | /* end confdefs.h. */ | ||
17325 | |||
17326 | #include <sys/types.h> | ||
17327 | #include <sys/statvfs.h> | ||
17328 | |||
17329 | int | ||
17330 | main () | ||
17331 | { | ||
17332 | fsid_t t; t.val[0] = 0; | ||
17333 | ; | ||
17334 | return 0; | ||
17335 | } | ||
17336 | _ACEOF | ||
17337 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17339 | $as_echo "yes" >&6; } | ||
17340 | |||
17341 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
17342 | |||
17343 | else | ||
17344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17345 | $as_echo "no" >&6; } | ||
17346 | fi | ||
17347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17348 | |||
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
17350 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
17351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17352 | /* end confdefs.h. */ | ||
17353 | |||
17354 | #include <sys/types.h> | ||
17355 | #include <sys/statvfs.h> | ||
17356 | |||
17357 | int | ||
17358 | main () | ||
17359 | { | ||
17360 | fsid_t t; t.__val[0] = 0; | ||
17361 | ; | ||
17362 | return 0; | ||
17363 | } | ||
17364 | _ACEOF | ||
17365 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17367 | $as_echo "yes" >&6; } | ||
17368 | |||
17369 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
17370 | |||
17371 | else | ||
17372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17373 | $as_echo "no" >&6; } | ||
17374 | fi | ||
17375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17376 | |||
17377 | fi | ||
17378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17379 | |||
17380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
17381 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
17382 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
17383 | $as_echo_n "(cached) " >&6 | ||
17384 | else | ||
17385 | |||
17386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17387 | /* end confdefs.h. */ | ||
17388 | |||
17389 | #include <sys/types.h> | ||
17390 | #include <sys/socket.h> | ||
17391 | #include <sys/uio.h> | ||
17392 | |||
17393 | int | ||
17394 | main () | ||
17395 | { | ||
17396 | |||
17397 | #ifdef msg_control | ||
17398 | #error "msg_control is a macro" | ||
17399 | exit(1); | ||
17400 | #endif | ||
17401 | struct msghdr m; | ||
17402 | m.msg_control = 0; | ||
17403 | exit(0); | ||
17404 | |||
17405 | ; | ||
17406 | return 0; | ||
17407 | } | ||
17408 | _ACEOF | ||
17409 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17410 | ac_cv_have_control_in_msghdr="yes" | ||
17411 | else | ||
17412 | ac_cv_have_control_in_msghdr="no" | ||
17413 | |||
17414 | fi | ||
17415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17416 | |||
17417 | fi | ||
17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
17419 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
17420 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
17421 | |||
17422 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
17423 | |||
17424 | fi | ||
17425 | |||
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
17427 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
17428 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
17429 | $as_echo_n "(cached) " >&6 | ||
17430 | else | ||
17431 | |||
17432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17433 | /* end confdefs.h. */ | ||
17434 | |||
17435 | int | ||
17436 | main () | ||
17437 | { | ||
17438 | extern char *__progname; printf("%s", __progname); | ||
17439 | ; | ||
17440 | return 0; | ||
17441 | } | ||
17442 | _ACEOF | ||
17443 | if ac_fn_c_try_link "$LINENO"; then : | ||
17444 | ac_cv_libc_defines___progname="yes" | ||
17445 | else | ||
17446 | ac_cv_libc_defines___progname="no" | ||
17447 | |||
17448 | fi | ||
17449 | rm -f core conftest.err conftest.$ac_objext \ | ||
17450 | conftest$ac_exeext conftest.$ac_ext | ||
17451 | |||
17452 | fi | ||
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
17454 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
17455 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
17456 | |||
17457 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
17458 | |||
17459 | fi | ||
17460 | |||
17461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
17462 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
17463 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
17464 | $as_echo_n "(cached) " >&6 | ||
17465 | else | ||
17466 | |||
17467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17468 | /* end confdefs.h. */ | ||
17469 | #include <stdio.h> | ||
17470 | int | ||
17471 | main () | ||
17472 | { | ||
17473 | printf("%s", __FUNCTION__); | ||
17474 | ; | ||
17475 | return 0; | ||
17476 | } | ||
17477 | _ACEOF | ||
17478 | if ac_fn_c_try_link "$LINENO"; then : | ||
17479 | ac_cv_cc_implements___FUNCTION__="yes" | ||
17480 | else | ||
17481 | ac_cv_cc_implements___FUNCTION__="no" | ||
17482 | |||
17483 | fi | ||
17484 | rm -f core conftest.err conftest.$ac_objext \ | ||
17485 | conftest$ac_exeext conftest.$ac_ext | ||
17486 | |||
17487 | fi | ||
17488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
17489 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
17490 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
17491 | |||
17492 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
17493 | |||
17494 | fi | ||
17495 | |||
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
17497 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
17498 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
17499 | $as_echo_n "(cached) " >&6 | ||
17500 | else | ||
17501 | |||
17502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17503 | /* end confdefs.h. */ | ||
17504 | #include <stdio.h> | ||
17505 | int | ||
17506 | main () | ||
17507 | { | ||
17508 | printf("%s", __func__); | ||
17509 | ; | ||
17510 | return 0; | ||
17511 | } | ||
17512 | _ACEOF | ||
17513 | if ac_fn_c_try_link "$LINENO"; then : | ||
17514 | ac_cv_cc_implements___func__="yes" | ||
17515 | else | ||
17516 | ac_cv_cc_implements___func__="no" | ||
17517 | |||
17518 | fi | ||
17519 | rm -f core conftest.err conftest.$ac_objext \ | ||
17520 | conftest$ac_exeext conftest.$ac_ext | ||
17521 | |||
17522 | fi | ||
17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
17524 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
17525 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
17526 | |||
17527 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
17528 | |||
17529 | fi | ||
17530 | |||
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
17532 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
17533 | if ${ac_cv_have_va_copy+:} false; then : | ||
17534 | $as_echo_n "(cached) " >&6 | ||
17535 | else | ||
17536 | |||
17537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17538 | /* end confdefs.h. */ | ||
17539 | |||
17540 | #include <stdarg.h> | ||
17541 | va_list x,y; | ||
17542 | |||
17543 | int | ||
17544 | main () | ||
17545 | { | ||
17546 | va_copy(x,y); | ||
17547 | ; | ||
17548 | return 0; | ||
17549 | } | ||
17550 | _ACEOF | ||
17551 | if ac_fn_c_try_link "$LINENO"; then : | ||
17552 | ac_cv_have_va_copy="yes" | ||
17553 | else | ||
17554 | ac_cv_have_va_copy="no" | ||
17555 | |||
17556 | fi | ||
17557 | rm -f core conftest.err conftest.$ac_objext \ | ||
17558 | conftest$ac_exeext conftest.$ac_ext | ||
17559 | |||
17560 | fi | ||
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
17562 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
17563 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
17564 | |||
17565 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
17566 | |||
17567 | fi | ||
17568 | |||
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
17570 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
17571 | if ${ac_cv_have___va_copy+:} false; then : | ||
17572 | $as_echo_n "(cached) " >&6 | ||
17573 | else | ||
17574 | |||
17575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17576 | /* end confdefs.h. */ | ||
17577 | |||
17578 | #include <stdarg.h> | ||
17579 | va_list x,y; | ||
17580 | |||
17581 | int | ||
17582 | main () | ||
17583 | { | ||
17584 | __va_copy(x,y); | ||
17585 | ; | ||
17586 | return 0; | ||
17587 | } | ||
17588 | _ACEOF | ||
17589 | if ac_fn_c_try_link "$LINENO"; then : | ||
17590 | ac_cv_have___va_copy="yes" | ||
17591 | else | ||
17592 | ac_cv_have___va_copy="no" | ||
17593 | |||
17594 | fi | ||
17595 | rm -f core conftest.err conftest.$ac_objext \ | ||
17596 | conftest$ac_exeext conftest.$ac_ext | ||
17597 | |||
17598 | fi | ||
17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
17600 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
17601 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
17602 | |||
17603 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
17604 | |||
17605 | fi | ||
17606 | |||
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
17608 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
17609 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
17610 | $as_echo_n "(cached) " >&6 | ||
17611 | else | ||
17612 | |||
17613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17614 | /* end confdefs.h. */ | ||
17615 | #include <getopt.h> | ||
17616 | int | ||
17617 | main () | ||
17618 | { | ||
17619 | extern int optreset; optreset = 0; | ||
17620 | ; | ||
17621 | return 0; | ||
17622 | } | ||
17623 | _ACEOF | ||
17624 | if ac_fn_c_try_link "$LINENO"; then : | ||
17625 | ac_cv_have_getopt_optreset="yes" | ||
17626 | else | ||
17627 | ac_cv_have_getopt_optreset="no" | ||
17628 | |||
17629 | fi | ||
17630 | rm -f core conftest.err conftest.$ac_objext \ | ||
17631 | conftest$ac_exeext conftest.$ac_ext | ||
17632 | |||
17633 | fi | ||
17634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
17635 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
17636 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
17637 | |||
17638 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
17639 | |||
17640 | fi | ||
17641 | |||
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
17643 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
17644 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
17645 | $as_echo_n "(cached) " >&6 | ||
17646 | else | ||
17647 | |||
17648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17649 | /* end confdefs.h. */ | ||
17650 | |||
17651 | int | ||
17652 | main () | ||
17653 | { | ||
17654 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
17655 | ; | ||
17656 | return 0; | ||
17657 | } | ||
17658 | _ACEOF | ||
17659 | if ac_fn_c_try_link "$LINENO"; then : | ||
17660 | ac_cv_libc_defines_sys_errlist="yes" | ||
17661 | else | ||
17662 | ac_cv_libc_defines_sys_errlist="no" | ||
17663 | |||
17664 | fi | ||
17665 | rm -f core conftest.err conftest.$ac_objext \ | ||
17666 | conftest$ac_exeext conftest.$ac_ext | ||
17667 | |||
17668 | fi | ||
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
17670 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
17671 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
17672 | |||
17673 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
17674 | |||
17675 | fi | ||
17676 | |||
17677 | |||
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
17679 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
17680 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
17681 | $as_echo_n "(cached) " >&6 | ||
17682 | else | ||
17683 | |||
17684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17685 | /* end confdefs.h. */ | ||
17686 | |||
17687 | int | ||
17688 | main () | ||
17689 | { | ||
17690 | extern int sys_nerr; printf("%i", sys_nerr); | ||
17691 | ; | ||
17692 | return 0; | ||
17693 | } | ||
17694 | _ACEOF | ||
17695 | if ac_fn_c_try_link "$LINENO"; then : | ||
17696 | ac_cv_libc_defines_sys_nerr="yes" | ||
17697 | else | ||
17698 | ac_cv_libc_defines_sys_nerr="no" | ||
17699 | |||
17700 | fi | ||
17701 | rm -f core conftest.err conftest.$ac_objext \ | ||
17702 | conftest$ac_exeext conftest.$ac_ext | ||
17703 | |||
17704 | fi | ||
17705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
17706 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
17707 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
17708 | |||
17709 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
17710 | |||
17711 | fi | ||
17712 | |||
17713 | # Check libraries needed by DNS fingerprint support | ||
17714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
17715 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
17716 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17717 | $as_echo_n "(cached) " >&6 | ||
17718 | else | ||
17719 | ac_func_search_save_LIBS=$LIBS | ||
17720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17721 | /* end confdefs.h. */ | ||
17722 | |||
17723 | /* Override any GCC internal prototype to avoid an error. | ||
17724 | Use char because int might match the return type of a GCC | ||
17725 | builtin and then its argument prototype would still apply. */ | ||
17726 | #ifdef __cplusplus | ||
17727 | extern "C" | ||
17728 | #endif | ||
17729 | char getrrsetbyname (); | ||
17730 | int | ||
17731 | main () | ||
17732 | { | ||
17733 | return getrrsetbyname (); | ||
17734 | ; | ||
17735 | return 0; | ||
17736 | } | ||
17737 | _ACEOF | ||
17738 | for ac_lib in '' resolv; do | ||
17739 | if test -z "$ac_lib"; then | ||
17740 | ac_res="none required" | ||
17741 | else | ||
17742 | ac_res=-l$ac_lib | ||
17743 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17744 | fi | ||
17745 | if ac_fn_c_try_link "$LINENO"; then : | ||
17746 | ac_cv_search_getrrsetbyname=$ac_res | ||
17747 | fi | ||
17748 | rm -f core conftest.err conftest.$ac_objext \ | ||
17749 | conftest$ac_exeext | ||
17750 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17751 | break | ||
17752 | fi | ||
17753 | done | ||
17754 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17755 | |||
17756 | else | ||
17757 | ac_cv_search_getrrsetbyname=no | ||
17758 | fi | ||
17759 | rm conftest.$ac_ext | ||
17760 | LIBS=$ac_func_search_save_LIBS | ||
17761 | fi | ||
17762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
17763 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
17764 | ac_res=$ac_cv_search_getrrsetbyname | ||
17765 | if test "$ac_res" != no; then : | ||
17766 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17767 | |||
17768 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
17769 | |||
17770 | else | ||
17771 | |||
17772 | # Needed by our getrrsetbyname() | ||
17773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
17774 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
17775 | if ${ac_cv_search_res_query+:} false; then : | ||
17776 | $as_echo_n "(cached) " >&6 | ||
17777 | else | ||
17778 | ac_func_search_save_LIBS=$LIBS | ||
17779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17780 | /* end confdefs.h. */ | ||
17781 | |||
17782 | /* Override any GCC internal prototype to avoid an error. | ||
17783 | Use char because int might match the return type of a GCC | ||
17784 | builtin and then its argument prototype would still apply. */ | ||
17785 | #ifdef __cplusplus | ||
17786 | extern "C" | ||
17787 | #endif | ||
17788 | char res_query (); | ||
17789 | int | ||
17790 | main () | ||
17791 | { | ||
17792 | return res_query (); | ||
17793 | ; | ||
17794 | return 0; | ||
17795 | } | ||
17796 | _ACEOF | ||
17797 | for ac_lib in '' resolv; do | ||
17798 | if test -z "$ac_lib"; then | ||
17799 | ac_res="none required" | ||
17800 | else | ||
17801 | ac_res=-l$ac_lib | ||
17802 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17803 | fi | ||
17804 | if ac_fn_c_try_link "$LINENO"; then : | ||
17805 | ac_cv_search_res_query=$ac_res | ||
17806 | fi | ||
17807 | rm -f core conftest.err conftest.$ac_objext \ | ||
17808 | conftest$ac_exeext | ||
17809 | if ${ac_cv_search_res_query+:} false; then : | ||
17810 | break | ||
17811 | fi | ||
17812 | done | ||
17813 | if ${ac_cv_search_res_query+:} false; then : | ||
17814 | |||
17815 | else | ||
17816 | ac_cv_search_res_query=no | ||
17817 | fi | ||
17818 | rm conftest.$ac_ext | ||
17819 | LIBS=$ac_func_search_save_LIBS | ||
17820 | fi | ||
17821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
17822 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
17823 | ac_res=$ac_cv_search_res_query | ||
17824 | if test "$ac_res" != no; then : | ||
17825 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17826 | |||
17827 | fi | ||
17828 | |||
17829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
17830 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
17831 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17832 | $as_echo_n "(cached) " >&6 | ||
17833 | else | ||
17834 | ac_func_search_save_LIBS=$LIBS | ||
17835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17836 | /* end confdefs.h. */ | ||
17837 | |||
17838 | /* Override any GCC internal prototype to avoid an error. | ||
17839 | Use char because int might match the return type of a GCC | ||
17840 | builtin and then its argument prototype would still apply. */ | ||
17841 | #ifdef __cplusplus | ||
17842 | extern "C" | ||
17843 | #endif | ||
17844 | char dn_expand (); | ||
17845 | int | ||
17846 | main () | ||
17847 | { | ||
17848 | return dn_expand (); | ||
17849 | ; | ||
17850 | return 0; | ||
17851 | } | ||
17852 | _ACEOF | ||
17853 | for ac_lib in '' resolv; do | ||
17854 | if test -z "$ac_lib"; then | ||
17855 | ac_res="none required" | ||
17856 | else | ||
17857 | ac_res=-l$ac_lib | ||
17858 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17859 | fi | ||
17860 | if ac_fn_c_try_link "$LINENO"; then : | ||
17861 | ac_cv_search_dn_expand=$ac_res | ||
17862 | fi | ||
17863 | rm -f core conftest.err conftest.$ac_objext \ | ||
17864 | conftest$ac_exeext | ||
17865 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17866 | break | ||
17867 | fi | ||
17868 | done | ||
17869 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17870 | |||
17871 | else | ||
17872 | ac_cv_search_dn_expand=no | ||
17873 | fi | ||
17874 | rm conftest.$ac_ext | ||
17875 | LIBS=$ac_func_search_save_LIBS | ||
17876 | fi | ||
17877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
17878 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
17879 | ac_res=$ac_cv_search_dn_expand | ||
17880 | if test "$ac_res" != no; then : | ||
17881 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17882 | |||
17883 | fi | ||
17884 | |||
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
17886 | $as_echo_n "checking if res_query will link... " >&6; } | ||
17887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17888 | /* end confdefs.h. */ | ||
17889 | |||
17890 | #include <sys/types.h> | ||
17891 | #include <netinet/in.h> | ||
17892 | #include <arpa/nameser.h> | ||
17893 | #include <netdb.h> | ||
17894 | #include <resolv.h> | ||
17895 | |||
17896 | int | ||
17897 | main () | ||
17898 | { | ||
17899 | |||
17900 | res_query (0, 0, 0, 0, 0); | ||
17901 | |||
17902 | ; | ||
17903 | return 0; | ||
17904 | } | ||
17905 | _ACEOF | ||
17906 | if ac_fn_c_try_link "$LINENO"; then : | ||
17907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17908 | $as_echo "yes" >&6; } | ||
17909 | else | ||
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17911 | $as_echo "no" >&6; } | ||
17912 | saved_LIBS="$LIBS" | ||
17913 | LIBS="$LIBS -lresolv" | ||
17914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
17915 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
17916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17917 | /* end confdefs.h. */ | ||
17918 | |||
17919 | #include <sys/types.h> | ||
17920 | #include <netinet/in.h> | ||
17921 | #include <arpa/nameser.h> | ||
17922 | #include <netdb.h> | ||
17923 | #include <resolv.h> | ||
17924 | |||
17925 | int | ||
17926 | main () | ||
17927 | { | ||
17928 | |||
17929 | res_query (0, 0, 0, 0, 0); | ||
17930 | |||
17931 | ; | ||
17932 | return 0; | ||
17933 | } | ||
17934 | _ACEOF | ||
17935 | if ac_fn_c_try_link "$LINENO"; then : | ||
17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17937 | $as_echo "yes" >&6; } | ||
17938 | else | ||
17939 | LIBS="$saved_LIBS" | ||
17940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17941 | $as_echo "no" >&6; } | ||
17942 | fi | ||
17943 | rm -f core conftest.err conftest.$ac_objext \ | ||
17944 | conftest$ac_exeext conftest.$ac_ext | ||
17945 | |||
17946 | fi | ||
17947 | rm -f core conftest.err conftest.$ac_objext \ | ||
17948 | conftest$ac_exeext conftest.$ac_ext | ||
17949 | for ac_func in _getshort _getlong | ||
17950 | do : | ||
17951 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17952 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17953 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17954 | cat >>confdefs.h <<_ACEOF | ||
17955 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17956 | _ACEOF | ||
17957 | |||
17958 | fi | ||
17959 | done | ||
17960 | |||
17961 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
17962 | #include <arpa/nameser.h> | ||
17963 | " | ||
17964 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
17965 | ac_have_decl=1 | ||
17966 | else | ||
17967 | ac_have_decl=0 | ||
17968 | fi | ||
17969 | |||
17970 | cat >>confdefs.h <<_ACEOF | ||
17971 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
17972 | _ACEOF | ||
17973 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
17974 | #include <arpa/nameser.h> | ||
17975 | " | ||
17976 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
17977 | ac_have_decl=1 | ||
17978 | else | ||
17979 | ac_have_decl=0 | ||
17980 | fi | ||
17981 | |||
17982 | cat >>confdefs.h <<_ACEOF | ||
17983 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
17984 | _ACEOF | ||
17985 | |||
17986 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
17987 | " | ||
17988 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
17989 | |||
17990 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
17991 | |||
17992 | fi | ||
17993 | |||
17994 | |||
17995 | fi | ||
17996 | |||
17997 | |||
17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
17999 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
18000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18001 | /* end confdefs.h. */ | ||
18002 | |||
18003 | #include <stdio.h> | ||
18004 | #if HAVE_SYS_TYPES_H | ||
18005 | # include <sys/types.h> | ||
18006 | #endif | ||
18007 | #include <netinet/in.h> | ||
18008 | #include <arpa/nameser.h> | ||
18009 | #include <resolv.h> | ||
18010 | extern struct __res_state _res; | ||
18011 | |||
18012 | int | ||
18013 | main () | ||
18014 | { | ||
18015 | |||
18016 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
18017 | return 0; | ||
18018 | |||
18019 | ; | ||
18020 | return 0; | ||
18021 | } | ||
18022 | _ACEOF | ||
18023 | if ac_fn_c_try_link "$LINENO"; then : | ||
18024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18025 | $as_echo "yes" >&6; } | ||
18026 | |||
18027 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
18028 | |||
18029 | |||
18030 | else | ||
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18032 | $as_echo "no" >&6; } | ||
18033 | |||
18034 | fi | ||
18035 | rm -f core conftest.err conftest.$ac_objext \ | ||
18036 | conftest$ac_exeext conftest.$ac_ext | ||
18037 | |||
18038 | # Check whether user wants SELinux support | ||
18039 | SELINUX_MSG="no" | ||
18040 | LIBSELINUX="" | ||
18041 | |||
18042 | # Check whether --with-selinux was given. | ||
18043 | if test "${with_selinux+set}" = set; then : | ||
18044 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
18045 | save_LIBS="$LIBS" | ||
18046 | |||
18047 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
18048 | |||
18049 | SELINUX_MSG="yes" | ||
18050 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
18051 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
18052 | |||
18053 | else | ||
18054 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
18055 | fi | ||
18056 | |||
18057 | |||
18058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
18059 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
18060 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
18061 | $as_echo_n "(cached) " >&6 | ||
18062 | else | ||
18063 | ac_check_lib_save_LIBS=$LIBS | ||
18064 | LIBS="-lselinux $LIBS" | ||
18065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18066 | /* end confdefs.h. */ | ||
18067 | |||
18068 | /* Override any GCC internal prototype to avoid an error. | ||
18069 | Use char because int might match the return type of a GCC | ||
18070 | builtin and then its argument prototype would still apply. */ | ||
18071 | #ifdef __cplusplus | ||
18072 | extern "C" | ||
18073 | #endif | ||
18074 | char setexeccon (); | ||
18075 | int | ||
18076 | main () | ||
18077 | { | ||
18078 | return setexeccon (); | ||
18079 | ; | ||
18080 | return 0; | ||
18081 | } | ||
18082 | _ACEOF | ||
18083 | if ac_fn_c_try_link "$LINENO"; then : | ||
18084 | ac_cv_lib_selinux_setexeccon=yes | ||
18085 | else | ||
18086 | ac_cv_lib_selinux_setexeccon=no | ||
18087 | fi | ||
18088 | rm -f core conftest.err conftest.$ac_objext \ | ||
18089 | conftest$ac_exeext conftest.$ac_ext | ||
18090 | LIBS=$ac_check_lib_save_LIBS | ||
18091 | fi | ||
18092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
18093 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
18094 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
18095 | LIBSELINUX="-lselinux" | ||
18096 | LIBS="$LIBS -lselinux" | ||
18097 | |||
18098 | else | ||
18099 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
18100 | fi | ||
18101 | |||
18102 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
18103 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
18104 | for ac_func in getseuserbyname get_default_context_with_level | ||
18105 | do : | ||
18106 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18107 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
18108 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
18109 | cat >>confdefs.h <<_ACEOF | ||
18110 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18111 | _ACEOF | ||
18112 | |||
18113 | fi | ||
18114 | done | ||
18115 | |||
18116 | LIBS="$save_LIBS" | ||
18117 | fi | ||
18118 | |||
18119 | fi | ||
18120 | |||
18121 | |||
18122 | |||
18123 | |||
18124 | # Check whether user wants Kerberos 5 support | ||
18125 | KRB5_MSG="no" | ||
18126 | |||
18127 | # Check whether --with-kerberos5 was given. | ||
18128 | if test "${with_kerberos5+set}" = set; then : | ||
18129 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
18130 | if test "x$withval" = "xyes" ; then | ||
18131 | KRB5ROOT="/usr/local" | ||
18132 | else | ||
18133 | KRB5ROOT=${withval} | ||
18134 | fi | ||
18135 | |||
18136 | |||
18137 | $as_echo "#define KRB5 1" >>confdefs.h | ||
18138 | |||
18139 | KRB5_MSG="yes" | ||
18140 | |||
18141 | if test -n "$ac_tool_prefix"; then | ||
18142 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | ||
18143 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | ||
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18145 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18146 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
18147 | $as_echo_n "(cached) " >&6 | ||
18148 | else | ||
18149 | case $KRB5CONF in | ||
18150 | [\\/]* | ?:[\\/]*) | ||
18151 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
18152 | ;; | ||
18153 | *) | ||
18154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18155 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
18156 | for as_dir in $as_dummy | ||
18157 | do | ||
18158 | IFS=$as_save_IFS | ||
18159 | test -z "$as_dir" && as_dir=. | ||
18160 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18162 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
18163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18164 | break 2 | ||
18165 | fi | ||
18166 | done | ||
18167 | done | ||
18168 | IFS=$as_save_IFS | ||
18169 | |||
18170 | ;; | ||
18171 | esac | ||
18172 | fi | ||
18173 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
18174 | if test -n "$KRB5CONF"; then | ||
18175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
18176 | $as_echo "$KRB5CONF" >&6; } | ||
18177 | else | ||
18178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18179 | $as_echo "no" >&6; } | ||
18180 | fi | ||
18181 | |||
18182 | |||
18183 | fi | ||
18184 | if test -z "$ac_cv_path_KRB5CONF"; then | ||
18185 | ac_pt_KRB5CONF=$KRB5CONF | ||
18186 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
18187 | set dummy krb5-config; ac_word=$2 | ||
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18189 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18190 | if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : | ||
18191 | $as_echo_n "(cached) " >&6 | ||
18192 | else | ||
18193 | case $ac_pt_KRB5CONF in | ||
18194 | [\\/]* | ?:[\\/]*) | ||
18195 | ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. | ||
18196 | ;; | ||
18197 | *) | ||
18198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18199 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
18200 | for as_dir in $as_dummy | ||
18201 | do | ||
18202 | IFS=$as_save_IFS | ||
18203 | test -z "$as_dir" && as_dir=. | ||
18204 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18206 | ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
18207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18208 | break 2 | ||
18209 | fi | ||
18210 | done | ||
18211 | done | ||
18212 | IFS=$as_save_IFS | ||
18213 | |||
18214 | ;; | ||
18215 | esac | ||
18216 | fi | ||
18217 | ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF | ||
18218 | if test -n "$ac_pt_KRB5CONF"; then | ||
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 | ||
18220 | $as_echo "$ac_pt_KRB5CONF" >&6; } | ||
18221 | else | ||
18222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18223 | $as_echo "no" >&6; } | ||
18224 | fi | ||
18225 | |||
18226 | if test "x$ac_pt_KRB5CONF" = x; then | ||
18227 | KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
18228 | else | ||
18229 | case $cross_compiling:$ac_tool_warned in | ||
18230 | yes:) | ||
18231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
18232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
18233 | ac_tool_warned=yes ;; | ||
18234 | esac | ||
18235 | KRB5CONF=$ac_pt_KRB5CONF | ||
18236 | fi | ||
18237 | else | ||
18238 | KRB5CONF="$ac_cv_path_KRB5CONF" | ||
18239 | fi | ||
18240 | |||
18241 | if test -x $KRB5CONF ; then | ||
18242 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
18243 | K5LIBS="`$KRB5CONF --libs`" | ||
18244 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
18245 | |||
18246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
18247 | $as_echo_n "checking for gssapi support... " >&6; } | ||
18248 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
18249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18250 | $as_echo "yes" >&6; } | ||
18251 | |||
18252 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18253 | |||
18254 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
18255 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
18256 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
18257 | else | ||
18258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18259 | $as_echo "no" >&6; } | ||
18260 | fi | ||
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
18262 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
18263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18264 | /* end confdefs.h. */ | ||
18265 | #include <krb5.h> | ||
18266 | |||
18267 | int | ||
18268 | main () | ||
18269 | { | ||
18270 | char *tmp = heimdal_version; | ||
18271 | ; | ||
18272 | return 0; | ||
18273 | } | ||
18274 | _ACEOF | ||
18275 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18277 | $as_echo "yes" >&6; } | ||
18278 | |||
18279 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
18280 | |||
18281 | else | ||
18282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18283 | $as_echo "no" >&6; } | ||
18284 | |||
18285 | fi | ||
18286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18287 | else | ||
18288 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
18289 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
18290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
18291 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
18292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18293 | /* end confdefs.h. */ | ||
18294 | #include <krb5.h> | ||
18295 | |||
18296 | int | ||
18297 | main () | ||
18298 | { | ||
18299 | char *tmp = heimdal_version; | ||
18300 | ; | ||
18301 | return 0; | ||
18302 | } | ||
18303 | _ACEOF | ||
18304 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18306 | $as_echo "yes" >&6; } | ||
18307 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
18308 | |||
18309 | K5LIBS="-lkrb5" | ||
18310 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
18312 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
18313 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
18314 | $as_echo_n "(cached) " >&6 | ||
18315 | else | ||
18316 | ac_check_lib_save_LIBS=$LIBS | ||
18317 | LIBS="-lroken $LIBS" | ||
18318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18319 | /* end confdefs.h. */ | ||
18320 | |||
18321 | /* Override any GCC internal prototype to avoid an error. | ||
18322 | Use char because int might match the return type of a GCC | ||
18323 | builtin and then its argument prototype would still apply. */ | ||
18324 | #ifdef __cplusplus | ||
18325 | extern "C" | ||
18326 | #endif | ||
18327 | char net_write (); | ||
18328 | int | ||
18329 | main () | ||
18330 | { | ||
18331 | return net_write (); | ||
18332 | ; | ||
18333 | return 0; | ||
18334 | } | ||
18335 | _ACEOF | ||
18336 | if ac_fn_c_try_link "$LINENO"; then : | ||
18337 | ac_cv_lib_roken_net_write=yes | ||
18338 | else | ||
18339 | ac_cv_lib_roken_net_write=no | ||
18340 | fi | ||
18341 | rm -f core conftest.err conftest.$ac_objext \ | ||
18342 | conftest$ac_exeext conftest.$ac_ext | ||
18343 | LIBS=$ac_check_lib_save_LIBS | ||
18344 | fi | ||
18345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
18346 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
18347 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
18348 | K5LIBS="$K5LIBS -lroken" | ||
18349 | fi | ||
18350 | |||
18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
18352 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
18353 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
18354 | $as_echo_n "(cached) " >&6 | ||
18355 | else | ||
18356 | ac_check_lib_save_LIBS=$LIBS | ||
18357 | LIBS="-ldes $LIBS" | ||
18358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18359 | /* end confdefs.h. */ | ||
18360 | |||
18361 | /* Override any GCC internal prototype to avoid an error. | ||
18362 | Use char because int might match the return type of a GCC | ||
18363 | builtin and then its argument prototype would still apply. */ | ||
18364 | #ifdef __cplusplus | ||
18365 | extern "C" | ||
18366 | #endif | ||
18367 | char des_cbc_encrypt (); | ||
18368 | int | ||
18369 | main () | ||
18370 | { | ||
18371 | return des_cbc_encrypt (); | ||
18372 | ; | ||
18373 | return 0; | ||
18374 | } | ||
18375 | _ACEOF | ||
18376 | if ac_fn_c_try_link "$LINENO"; then : | ||
18377 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
18378 | else | ||
18379 | ac_cv_lib_des_des_cbc_encrypt=no | ||
18380 | fi | ||
18381 | rm -f core conftest.err conftest.$ac_objext \ | ||
18382 | conftest$ac_exeext conftest.$ac_ext | ||
18383 | LIBS=$ac_check_lib_save_LIBS | ||
18384 | fi | ||
18385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
18386 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
18387 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
18388 | K5LIBS="$K5LIBS -ldes" | ||
18389 | fi | ||
18390 | |||
18391 | |||
18392 | else | ||
18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18394 | $as_echo "no" >&6; } | ||
18395 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
18396 | |||
18397 | fi | ||
18398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
18400 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
18401 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18402 | $as_echo_n "(cached) " >&6 | ||
18403 | else | ||
18404 | ac_func_search_save_LIBS=$LIBS | ||
18405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18406 | /* end confdefs.h. */ | ||
18407 | |||
18408 | /* Override any GCC internal prototype to avoid an error. | ||
18409 | Use char because int might match the return type of a GCC | ||
18410 | builtin and then its argument prototype would still apply. */ | ||
18411 | #ifdef __cplusplus | ||
18412 | extern "C" | ||
18413 | #endif | ||
18414 | char dn_expand (); | ||
18415 | int | ||
18416 | main () | ||
18417 | { | ||
18418 | return dn_expand (); | ||
18419 | ; | ||
18420 | return 0; | ||
18421 | } | ||
18422 | _ACEOF | ||
18423 | for ac_lib in '' resolv; do | ||
18424 | if test -z "$ac_lib"; then | ||
18425 | ac_res="none required" | ||
18426 | else | ||
18427 | ac_res=-l$ac_lib | ||
18428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
18429 | fi | ||
18430 | if ac_fn_c_try_link "$LINENO"; then : | ||
18431 | ac_cv_search_dn_expand=$ac_res | ||
18432 | fi | ||
18433 | rm -f core conftest.err conftest.$ac_objext \ | ||
18434 | conftest$ac_exeext | ||
18435 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18436 | break | ||
18437 | fi | ||
18438 | done | ||
18439 | if ${ac_cv_search_dn_expand+:} false; then : | ||
18440 | |||
18441 | else | ||
18442 | ac_cv_search_dn_expand=no | ||
18443 | fi | ||
18444 | rm conftest.$ac_ext | ||
18445 | LIBS=$ac_func_search_save_LIBS | ||
18446 | fi | ||
18447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
18448 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
18449 | ac_res=$ac_cv_search_dn_expand | ||
18450 | if test "$ac_res" != no; then : | ||
18451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
18452 | |||
18453 | fi | ||
18454 | |||
18455 | |||
18456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
18457 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
18458 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
18459 | $as_echo_n "(cached) " >&6 | ||
18460 | else | ||
18461 | ac_check_lib_save_LIBS=$LIBS | ||
18462 | LIBS="-lgssapi_krb5 $LIBS" | ||
18463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18464 | /* end confdefs.h. */ | ||
18465 | |||
18466 | /* Override any GCC internal prototype to avoid an error. | ||
18467 | Use char because int might match the return type of a GCC | ||
18468 | builtin and then its argument prototype would still apply. */ | ||
18469 | #ifdef __cplusplus | ||
18470 | extern "C" | ||
18471 | #endif | ||
18472 | char gss_init_sec_context (); | ||
18473 | int | ||
18474 | main () | ||
18475 | { | ||
18476 | return gss_init_sec_context (); | ||
18477 | ; | ||
18478 | return 0; | ||
18479 | } | ||
18480 | _ACEOF | ||
18481 | if ac_fn_c_try_link "$LINENO"; then : | ||
18482 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
18483 | else | ||
18484 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
18485 | fi | ||
18486 | rm -f core conftest.err conftest.$ac_objext \ | ||
18487 | conftest$ac_exeext conftest.$ac_ext | ||
18488 | LIBS=$ac_check_lib_save_LIBS | ||
18489 | fi | ||
18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
18491 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
18492 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
18493 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18494 | |||
18495 | GSSLIBS="-lgssapi_krb5" | ||
18496 | else | ||
18497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
18498 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
18499 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
18500 | $as_echo_n "(cached) " >&6 | ||
18501 | else | ||
18502 | ac_check_lib_save_LIBS=$LIBS | ||
18503 | LIBS="-lgssapi $LIBS" | ||
18504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18505 | /* end confdefs.h. */ | ||
18506 | |||
18507 | /* Override any GCC internal prototype to avoid an error. | ||
18508 | Use char because int might match the return type of a GCC | ||
18509 | builtin and then its argument prototype would still apply. */ | ||
18510 | #ifdef __cplusplus | ||
18511 | extern "C" | ||
18512 | #endif | ||
18513 | char gss_init_sec_context (); | ||
18514 | int | ||
18515 | main () | ||
18516 | { | ||
18517 | return gss_init_sec_context (); | ||
18518 | ; | ||
18519 | return 0; | ||
18520 | } | ||
18521 | _ACEOF | ||
18522 | if ac_fn_c_try_link "$LINENO"; then : | ||
18523 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
18524 | else | ||
18525 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
18526 | fi | ||
18527 | rm -f core conftest.err conftest.$ac_objext \ | ||
18528 | conftest$ac_exeext conftest.$ac_ext | ||
18529 | LIBS=$ac_check_lib_save_LIBS | ||
18530 | fi | ||
18531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
18532 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
18533 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
18534 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18535 | |||
18536 | GSSLIBS="-lgssapi" | ||
18537 | else | ||
18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
18539 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
18540 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
18541 | $as_echo_n "(cached) " >&6 | ||
18542 | else | ||
18543 | ac_check_lib_save_LIBS=$LIBS | ||
18544 | LIBS="-lgss $LIBS" | ||
18545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18546 | /* end confdefs.h. */ | ||
18547 | |||
18548 | /* Override any GCC internal prototype to avoid an error. | ||
18549 | Use char because int might match the return type of a GCC | ||
18550 | builtin and then its argument prototype would still apply. */ | ||
18551 | #ifdef __cplusplus | ||
18552 | extern "C" | ||
18553 | #endif | ||
18554 | char gss_init_sec_context (); | ||
18555 | int | ||
18556 | main () | ||
18557 | { | ||
18558 | return gss_init_sec_context (); | ||
18559 | ; | ||
18560 | return 0; | ||
18561 | } | ||
18562 | _ACEOF | ||
18563 | if ac_fn_c_try_link "$LINENO"; then : | ||
18564 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
18565 | else | ||
18566 | ac_cv_lib_gss_gss_init_sec_context=no | ||
18567 | fi | ||
18568 | rm -f core conftest.err conftest.$ac_objext \ | ||
18569 | conftest$ac_exeext conftest.$ac_ext | ||
18570 | LIBS=$ac_check_lib_save_LIBS | ||
18571 | fi | ||
18572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
18573 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
18574 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
18575 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
18576 | |||
18577 | GSSLIBS="-lgss" | ||
18578 | else | ||
18579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
18580 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
18581 | fi | ||
18582 | |||
18583 | |||
18584 | fi | ||
18585 | |||
18586 | |||
18587 | fi | ||
18588 | |||
18589 | |||
18590 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
18591 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
18592 | |||
18593 | else | ||
18594 | unset ac_cv_header_gssapi_h | ||
18595 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
18596 | for ac_header in gssapi.h | ||
18597 | do : | ||
18598 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
18599 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
18600 | cat >>confdefs.h <<_ACEOF | ||
18601 | #define HAVE_GSSAPI_H 1 | ||
18602 | _ACEOF | ||
18603 | |||
18604 | else | ||
18605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
18606 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
18607 | |||
18608 | fi | ||
18609 | |||
18610 | done | ||
18611 | |||
18612 | |||
18613 | |||
18614 | fi | ||
18615 | |||
18616 | |||
18617 | |||
18618 | oldCPP="$CPPFLAGS" | ||
18619 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
18620 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
18621 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
18622 | |||
18623 | else | ||
18624 | CPPFLAGS="$oldCPP" | ||
18625 | fi | ||
18626 | |||
18627 | |||
18628 | |||
18629 | fi | ||
18630 | if test -n "${rpath_opt}" ; then | ||
18631 | LDFLAGS="$LDFLAGS ${rpath_opt}${KRB5ROOT}/lib" | ||
18632 | fi | ||
18633 | if test ! -z "$blibpath" ; then | ||
18634 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
18635 | fi | ||
18636 | |||
18637 | for ac_header in gssapi.h gssapi/gssapi.h | ||
18638 | do : | ||
18639 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18640 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18641 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18642 | cat >>confdefs.h <<_ACEOF | ||
18643 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18644 | _ACEOF | ||
18645 | |||
18646 | fi | ||
18647 | |||
18648 | done | ||
18649 | |||
18650 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
18651 | do : | ||
18652 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18653 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18654 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18655 | cat >>confdefs.h <<_ACEOF | ||
18656 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18657 | _ACEOF | ||
18658 | |||
18659 | fi | ||
18660 | |||
18661 | done | ||
18662 | |||
18663 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
18664 | do : | ||
18665 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18666 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18667 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18668 | cat >>confdefs.h <<_ACEOF | ||
18669 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18670 | _ACEOF | ||
18671 | |||
18672 | fi | ||
18673 | |||
18674 | done | ||
18675 | |||
18676 | |||
18677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
18678 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
18679 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18680 | $as_echo_n "(cached) " >&6 | ||
18681 | else | ||
18682 | ac_func_search_save_LIBS=$LIBS | ||
18683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18684 | /* end confdefs.h. */ | ||
18685 | |||
18686 | /* Override any GCC internal prototype to avoid an error. | ||
18687 | Use char because int might match the return type of a GCC | ||
18688 | builtin and then its argument prototype would still apply. */ | ||
18689 | #ifdef __cplusplus | ||
18690 | extern "C" | ||
18691 | #endif | ||
18692 | char k_hasafs (); | ||
18693 | int | ||
18694 | main () | ||
18695 | { | ||
18696 | return k_hasafs (); | ||
18697 | ; | ||
18698 | return 0; | ||
18699 | } | ||
18700 | _ACEOF | ||
18701 | for ac_lib in '' kafs; do | ||
18702 | if test -z "$ac_lib"; then | ||
18703 | ac_res="none required" | ||
18704 | else | ||
18705 | ac_res=-l$ac_lib | ||
18706 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
18707 | fi | ||
18708 | if ac_fn_c_try_link "$LINENO"; then : | ||
18709 | ac_cv_search_k_hasafs=$ac_res | ||
18710 | fi | ||
18711 | rm -f core conftest.err conftest.$ac_objext \ | ||
18712 | conftest$ac_exeext | ||
18713 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18714 | break | ||
18715 | fi | ||
18716 | done | ||
18717 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18718 | |||
18719 | else | ||
18720 | ac_cv_search_k_hasafs=no | ||
18721 | fi | ||
18722 | rm conftest.$ac_ext | ||
18723 | LIBS=$ac_func_search_save_LIBS | ||
18724 | fi | ||
18725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
18726 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
18727 | ac_res=$ac_cv_search_k_hasafs | ||
18728 | if test "$ac_res" != no; then : | ||
18729 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
18730 | |||
18731 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
18732 | |||
18733 | fi | ||
18734 | |||
18735 | |||
18736 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
18737 | #ifdef HAVE_GSSAPI_H | ||
18738 | # include <gssapi.h> | ||
18739 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
18740 | # include <gssapi/gssapi.h> | ||
18741 | #endif | ||
18742 | |||
18743 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
18744 | # include <gssapi_generic.h> | ||
18745 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
18746 | # include <gssapi/gssapi_generic.h> | ||
18747 | #endif | ||
18748 | |||
18749 | " | ||
18750 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
18751 | ac_have_decl=1 | ||
18752 | else | ||
18753 | ac_have_decl=0 | ||
18754 | fi | ||
18755 | |||
18756 | cat >>confdefs.h <<_ACEOF | ||
18757 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
18758 | _ACEOF | ||
18759 | |||
18760 | saved_LIBS="$LIBS" | ||
18761 | LIBS="$LIBS $K5LIBS" | ||
18762 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
18763 | do : | ||
18764 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18765 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
18766 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
18767 | cat >>confdefs.h <<_ACEOF | ||
18768 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18769 | _ACEOF | ||
18770 | |||
18771 | fi | ||
18772 | done | ||
18773 | |||
18774 | LIBS="$saved_LIBS" | ||
18775 | |||
18776 | fi | ||
18777 | |||
18778 | |||
18779 | fi | ||
18780 | |||
18781 | |||
18782 | |||
18783 | |||
18784 | # Looking for programs, paths and files | ||
18785 | |||
18786 | PRIVSEP_PATH=/var/empty | ||
18787 | |||
18788 | # Check whether --with-privsep-path was given. | ||
18789 | if test "${with_privsep_path+set}" = set; then : | ||
18790 | withval=$with_privsep_path; | ||
18791 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18792 | test "x${withval}" != "xyes"; then | ||
18793 | PRIVSEP_PATH=$withval | ||
18794 | fi | ||
18795 | |||
18796 | |||
18797 | fi | ||
18798 | |||
18799 | |||
18800 | |||
18801 | |||
18802 | # Check whether --with-xauth was given. | ||
18803 | if test "${with_xauth+set}" = set; then : | ||
18804 | withval=$with_xauth; | ||
18805 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18806 | test "x${withval}" != "xyes"; then | ||
18807 | xauth_path=$withval | ||
18808 | fi | ||
18809 | |||
18810 | else | ||
18811 | |||
18812 | TestPath="$PATH" | ||
18813 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
18814 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
18815 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
18816 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
18817 | # Extract the first word of "xauth", so it can be a program name with args. | ||
18818 | set dummy xauth; ac_word=$2 | ||
18819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18820 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18821 | if ${ac_cv_path_xauth_path+:} false; then : | ||
18822 | $as_echo_n "(cached) " >&6 | ||
18823 | else | ||
18824 | case $xauth_path in | ||
18825 | [\\/]* | ?:[\\/]*) | ||
18826 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
18827 | ;; | ||
18828 | *) | ||
18829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18830 | for as_dir in $TestPath | ||
18831 | do | ||
18832 | IFS=$as_save_IFS | ||
18833 | test -z "$as_dir" && as_dir=. | ||
18834 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18836 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
18837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18838 | break 2 | ||
18839 | fi | ||
18840 | done | ||
18841 | done | ||
18842 | IFS=$as_save_IFS | ||
18843 | |||
18844 | ;; | ||
18845 | esac | ||
18846 | fi | ||
18847 | xauth_path=$ac_cv_path_xauth_path | ||
18848 | if test -n "$xauth_path"; then | ||
18849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
18850 | $as_echo "$xauth_path" >&6; } | ||
18851 | else | ||
18852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18853 | $as_echo "no" >&6; } | ||
18854 | fi | ||
18855 | |||
18856 | |||
18857 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
18858 | xauth_path="/usr/openwin/bin/xauth" | ||
18859 | fi | ||
18860 | |||
18861 | |||
18862 | fi | ||
18863 | |||
18864 | |||
18865 | STRIP_OPT=-s | ||
18866 | # Check whether --enable-strip was given. | ||
18867 | if test "${enable_strip+set}" = set; then : | ||
18868 | enableval=$enable_strip; | ||
18869 | if test "x$enableval" = "xno" ; then | ||
18870 | STRIP_OPT= | ||
18871 | fi | ||
18872 | |||
18873 | |||
18874 | fi | ||
18875 | |||
18876 | |||
18877 | |||
18878 | if test -z "$xauth_path" ; then | ||
18879 | XAUTH_PATH="undefined" | ||
18880 | |||
18881 | else | ||
18882 | |||
18883 | cat >>confdefs.h <<_ACEOF | ||
18884 | #define XAUTH_PATH "$xauth_path" | ||
18885 | _ACEOF | ||
18886 | |||
18887 | XAUTH_PATH=$xauth_path | ||
18888 | |||
18889 | fi | ||
18890 | |||
18891 | # Check for mail directory | ||
18892 | |||
18893 | # Check whether --with-maildir was given. | ||
18894 | if test "${with_maildir+set}" = set; then : | ||
18895 | withval=$with_maildir; | ||
18896 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
18897 | test "x${withval}" != xyes; then | ||
18898 | |||
18899 | cat >>confdefs.h <<_ACEOF | ||
18900 | #define MAIL_DIRECTORY "$withval" | ||
18901 | _ACEOF | ||
18902 | |||
18903 | fi | ||
18904 | |||
18905 | else | ||
18906 | |||
18907 | if test "X$maildir" != "X"; then | ||
18908 | cat >>confdefs.h <<_ACEOF | ||
18909 | #define MAIL_DIRECTORY "$maildir" | ||
18910 | _ACEOF | ||
18911 | |||
18912 | else | ||
18913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
18914 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
18915 | if test "$cross_compiling" = yes; then : | ||
18916 | |||
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
18918 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
18919 | |||
18920 | |||
18921 | else | ||
18922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18923 | /* end confdefs.h. */ | ||
18924 | |||
18925 | #include <stdio.h> | ||
18926 | #include <string.h> | ||
18927 | #ifdef HAVE_PATHS_H | ||
18928 | #include <paths.h> | ||
18929 | #endif | ||
18930 | #ifdef HAVE_MAILLOCK_H | ||
18931 | #include <maillock.h> | ||
18932 | #endif | ||
18933 | #define DATA "conftest.maildir" | ||
18934 | |||
18935 | int | ||
18936 | main () | ||
18937 | { | ||
18938 | |||
18939 | FILE *fd; | ||
18940 | int rc; | ||
18941 | |||
18942 | fd = fopen(DATA,"w"); | ||
18943 | if(fd == NULL) | ||
18944 | exit(1); | ||
18945 | |||
18946 | #if defined (_PATH_MAILDIR) | ||
18947 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
18948 | exit(1); | ||
18949 | #elif defined (MAILDIR) | ||
18950 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
18951 | exit(1); | ||
18952 | #elif defined (_PATH_MAIL) | ||
18953 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
18954 | exit(1); | ||
18955 | #else | ||
18956 | exit (2); | ||
18957 | #endif | ||
18958 | |||
18959 | exit(0); | ||
18960 | |||
18961 | ; | ||
18962 | return 0; | ||
18963 | } | ||
18964 | _ACEOF | ||
18965 | if ac_fn_c_try_run "$LINENO"; then : | ||
18966 | |||
18967 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
18968 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
18969 | | sed 's|/$||'` | ||
18970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
18971 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
18972 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
18973 | cat >>confdefs.h <<_ACEOF | ||
18974 | #define MAIL_DIRECTORY "$maildir" | ||
18975 | _ACEOF | ||
18976 | |||
18977 | fi | ||
18978 | |||
18979 | else | ||
18980 | |||
18981 | if test "X$ac_status" = "X2";then | ||
18982 | # our test program didn't find it. Default to /var/spool/mail | ||
18983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
18984 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
18985 | cat >>confdefs.h <<_ACEOF | ||
18986 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
18987 | _ACEOF | ||
18988 | |||
18989 | else | ||
18990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
18991 | $as_echo "*** not found ***" >&6; } | ||
18992 | fi | ||
18993 | |||
18994 | fi | ||
18995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18996 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18997 | fi | ||
18998 | |||
18999 | fi | ||
19000 | |||
19001 | |||
19002 | fi | ||
19003 | # maildir | ||
19004 | |||
19005 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
19006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
19007 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
19008 | disable_ptmx_check=yes | ||
19009 | fi | ||
19010 | if test -z "$no_dev_ptmx" ; then | ||
19011 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
19012 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
19013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
19014 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
19015 | if eval \${$as_ac_File+:} false; then : | ||
19016 | $as_echo_n "(cached) " >&6 | ||
19017 | else | ||
19018 | test "$cross_compiling" = yes && | ||
19019 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
19020 | if test -r ""/dev/ptmx""; then | ||
19021 | eval "$as_ac_File=yes" | ||
19022 | else | ||
19023 | eval "$as_ac_File=no" | ||
19024 | fi | ||
19025 | fi | ||
19026 | eval ac_res=\$$as_ac_File | ||
19027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
19028 | $as_echo "$ac_res" >&6; } | ||
19029 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
19030 | |||
19031 | |||
19032 | cat >>confdefs.h <<_ACEOF | ||
19033 | #define HAVE_DEV_PTMX 1 | ||
19034 | _ACEOF | ||
19035 | |||
19036 | have_dev_ptmx=1 | ||
19037 | |||
19038 | |||
19039 | fi | ||
19040 | |||
19041 | fi | ||
19042 | fi | ||
19043 | |||
19044 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
19045 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
19046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
19047 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
19048 | if eval \${$as_ac_File+:} false; then : | ||
19049 | $as_echo_n "(cached) " >&6 | ||
19050 | else | ||
19051 | test "$cross_compiling" = yes && | ||
19052 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
19053 | if test -r ""/dev/ptc""; then | ||
19054 | eval "$as_ac_File=yes" | ||
19055 | else | ||
19056 | eval "$as_ac_File=no" | ||
19057 | fi | ||
19058 | fi | ||
19059 | eval ac_res=\$$as_ac_File | ||
19060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
19061 | $as_echo "$ac_res" >&6; } | ||
19062 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
19063 | |||
19064 | |||
19065 | cat >>confdefs.h <<_ACEOF | ||
19066 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
19067 | _ACEOF | ||
19068 | |||
19069 | have_dev_ptc=1 | ||
19070 | |||
19071 | |||
19072 | fi | ||
19073 | |||
19074 | else | ||
19075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
19076 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
19077 | fi | ||
19078 | |||
19079 | # Options from here on. Some of these are preset by platform above | ||
19080 | |||
19081 | # Check whether --with-mantype was given. | ||
19082 | if test "${with_mantype+set}" = set; then : | ||
19083 | withval=$with_mantype; | ||
19084 | case "$withval" in | ||
19085 | man|cat|doc) | ||
19086 | MANTYPE=$withval | ||
19087 | ;; | ||
19088 | *) | ||
19089 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
19090 | ;; | ||
19091 | esac | ||
19092 | |||
19093 | |||
19094 | fi | ||
19095 | |||
19096 | if test -z "$MANTYPE"; then | ||
19097 | if ${MANDOC} ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
19098 | MANTYPE=doc | ||
19099 | elif ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
19100 | MANTYPE=doc | ||
19101 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
19102 | MANTYPE=man | ||
19103 | else | ||
19104 | MANTYPE=cat | ||
19105 | fi | ||
19106 | fi | ||
19107 | |||
19108 | if test "$MANTYPE" = "doc"; then | ||
19109 | mansubdir=man; | ||
19110 | else | ||
19111 | mansubdir=$MANTYPE; | ||
19112 | fi | ||
19113 | |||
19114 | |||
19115 | # Check whether to enable MD5 passwords | ||
19116 | MD5_MSG="no" | ||
19117 | |||
19118 | # Check whether --with-md5-passwords was given. | ||
19119 | if test "${with_md5_passwords+set}" = set; then : | ||
19120 | withval=$with_md5_passwords; | ||
19121 | if test "x$withval" != "xno" ; then | ||
19122 | |||
19123 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
19124 | |||
19125 | MD5_MSG="yes" | ||
19126 | fi | ||
19127 | |||
19128 | |||
19129 | fi | ||
19130 | |||
19131 | |||
19132 | # Whether to disable shadow password support | ||
19133 | |||
19134 | # Check whether --with-shadow was given. | ||
19135 | if test "${with_shadow+set}" = set; then : | ||
19136 | withval=$with_shadow; | ||
19137 | if test "x$withval" = "xno" ; then | ||
19138 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
19139 | |||
19140 | disable_shadow=yes | ||
19141 | fi | ||
19142 | |||
19143 | |||
19144 | fi | ||
19145 | |||
19146 | |||
19147 | if test -z "$disable_shadow" ; then | ||
19148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
19149 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
19150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19151 | /* end confdefs.h. */ | ||
19152 | |||
19153 | #include <sys/types.h> | ||
19154 | #include <shadow.h> | ||
19155 | struct spwd sp; | ||
19156 | |||
19157 | int | ||
19158 | main () | ||
19159 | { | ||
19160 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
19161 | ; | ||
19162 | return 0; | ||
19163 | } | ||
19164 | _ACEOF | ||
19165 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19166 | sp_expire_available=yes | ||
19167 | fi | ||
19168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19169 | |||
19170 | if test "x$sp_expire_available" = "xyes" ; then | ||
19171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19172 | $as_echo "yes" >&6; } | ||
19173 | |||
19174 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
19175 | |||
19176 | else | ||
19177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19178 | $as_echo "no" >&6; } | ||
19179 | fi | ||
19180 | fi | ||
19181 | |||
19182 | # Use ip address instead of hostname in $DISPLAY | ||
19183 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
19184 | DISPLAY_HACK_MSG="yes" | ||
19185 | |||
19186 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
19187 | |||
19188 | else | ||
19189 | DISPLAY_HACK_MSG="no" | ||
19190 | |||
19191 | # Check whether --with-ipaddr-display was given. | ||
19192 | if test "${with_ipaddr_display+set}" = set; then : | ||
19193 | withval=$with_ipaddr_display; | ||
19194 | if test "x$withval" != "xno" ; then | ||
19195 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
19196 | |||
19197 | DISPLAY_HACK_MSG="yes" | ||
19198 | fi | ||
19199 | |||
19200 | |||
19201 | fi | ||
19202 | |||
19203 | fi | ||
19204 | |||
19205 | # check for /etc/default/login and use it if present. | ||
19206 | # Check whether --enable-etc-default-login was given. | ||
19207 | if test "${enable_etc_default_login+set}" = set; then : | ||
19208 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
19209 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
19210 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
19211 | etc_default_login=no | ||
19212 | else | ||
19213 | etc_default_login=yes | ||
19214 | fi | ||
19215 | else | ||
19216 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
19217 | then | ||
19218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
19219 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
19220 | etc_default_login=no | ||
19221 | else | ||
19222 | etc_default_login=yes | ||
19223 | fi | ||
19224 | |||
19225 | fi | ||
19226 | |||
19227 | |||
19228 | if test "x$etc_default_login" != "xno"; then | ||
19229 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
19230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
19231 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
19232 | if eval \${$as_ac_File+:} false; then : | ||
19233 | $as_echo_n "(cached) " >&6 | ||
19234 | else | ||
19235 | test "$cross_compiling" = yes && | ||
19236 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
19237 | if test -r ""/etc/default/login""; then | ||
19238 | eval "$as_ac_File=yes" | ||
19239 | else | ||
19240 | eval "$as_ac_File=no" | ||
19241 | fi | ||
19242 | fi | ||
19243 | eval ac_res=\$$as_ac_File | ||
19244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
19245 | $as_echo "$ac_res" >&6; } | ||
19246 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
19247 | external_path_file=/etc/default/login | ||
19248 | fi | ||
19249 | |||
19250 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
19251 | |||
19252 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
19253 | |||
19254 | fi | ||
19255 | fi | ||
19256 | |||
19257 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
19258 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
19259 | external_path_file=/etc/login.conf | ||
19260 | fi | ||
19261 | |||
19262 | # Whether to mess with the default path | ||
19263 | SERVER_PATH_MSG="(default)" | ||
19264 | |||
19265 | # Check whether --with-default-path was given. | ||
19266 | if test "${with_default_path+set}" = set; then : | ||
19267 | withval=$with_default_path; | ||
19268 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
19270 | --with-default-path=PATH has no effect on this system. | ||
19271 | Edit /etc/login.conf instead." >&5 | ||
19272 | $as_echo "$as_me: WARNING: | ||
19273 | --with-default-path=PATH has no effect on this system. | ||
19274 | Edit /etc/login.conf instead." >&2;} | ||
19275 | elif test "x$withval" != "xno" ; then | ||
19276 | if test ! -z "$external_path_file" ; then | ||
19277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
19278 | --with-default-path=PATH will only be used if PATH is not defined in | ||
19279 | $external_path_file ." >&5 | ||
19280 | $as_echo "$as_me: WARNING: | ||
19281 | --with-default-path=PATH will only be used if PATH is not defined in | ||
19282 | $external_path_file ." >&2;} | ||
19283 | fi | ||
19284 | user_path="$withval" | ||
19285 | SERVER_PATH_MSG="$withval" | ||
19286 | fi | ||
19287 | |||
19288 | else | ||
19289 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
19290 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
19291 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
19292 | else | ||
19293 | if test ! -z "$external_path_file" ; then | ||
19294 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
19295 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
19296 | otherwise scp will not work." >&5 | ||
19297 | $as_echo "$as_me: WARNING: | ||
19298 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
19299 | otherwise scp will not work." >&2;} | ||
19300 | fi | ||
19301 | if test "$cross_compiling" = yes; then : | ||
19302 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
19303 | |||
19304 | else | ||
19305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19306 | /* end confdefs.h. */ | ||
19307 | |||
19308 | /* find out what STDPATH is */ | ||
19309 | #include <stdio.h> | ||
19310 | #ifdef HAVE_PATHS_H | ||
19311 | # include <paths.h> | ||
19312 | #endif | ||
19313 | #ifndef _PATH_STDPATH | ||
19314 | # ifdef _PATH_USERPATH /* Irix */ | ||
19315 | # define _PATH_STDPATH _PATH_USERPATH | ||
19316 | # else | ||
19317 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
19318 | # endif | ||
19319 | #endif | ||
19320 | #include <sys/types.h> | ||
19321 | #include <sys/stat.h> | ||
19322 | #include <fcntl.h> | ||
19323 | #define DATA "conftest.stdpath" | ||
19324 | |||
19325 | int | ||
19326 | main () | ||
19327 | { | ||
19328 | |||
19329 | FILE *fd; | ||
19330 | int rc; | ||
19331 | |||
19332 | fd = fopen(DATA,"w"); | ||
19333 | if(fd == NULL) | ||
19334 | exit(1); | ||
19335 | |||
19336 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
19337 | exit(1); | ||
19338 | |||
19339 | exit(0); | ||
19340 | |||
19341 | ; | ||
19342 | return 0; | ||
19343 | } | ||
19344 | _ACEOF | ||
19345 | if ac_fn_c_try_run "$LINENO"; then : | ||
19346 | user_path=`cat conftest.stdpath` | ||
19347 | else | ||
19348 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
19349 | fi | ||
19350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19351 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19352 | fi | ||
19353 | |||
19354 | # make sure $bindir is in USER_PATH so scp will work | ||
19355 | t_bindir="${bindir}" | ||
19356 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
19357 | t_bindir=`eval echo ${t_bindir}` | ||
19358 | case $t_bindir in | ||
19359 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
19360 | esac | ||
19361 | case $t_bindir in | ||
19362 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
19363 | esac | ||
19364 | done | ||
19365 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
19366 | if test $? -ne 0 ; then | ||
19367 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
19368 | if test $? -ne 0 ; then | ||
19369 | user_path=$user_path:$t_bindir | ||
19370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
19371 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
19372 | fi | ||
19373 | fi | ||
19374 | fi | ||
19375 | |||
19376 | fi | ||
19377 | |||
19378 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
19379 | |||
19380 | cat >>confdefs.h <<_ACEOF | ||
19381 | #define USER_PATH "$user_path" | ||
19382 | _ACEOF | ||
19383 | |||
19384 | |||
19385 | fi | ||
19386 | |||
19387 | # Set superuser path separately to user path | ||
19388 | |||
19389 | # Check whether --with-superuser-path was given. | ||
19390 | if test "${with_superuser_path+set}" = set; then : | ||
19391 | withval=$with_superuser_path; | ||
19392 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19393 | test "x${withval}" != "xyes"; then | ||
19394 | |||
19395 | cat >>confdefs.h <<_ACEOF | ||
19396 | #define SUPERUSER_PATH "$withval" | ||
19397 | _ACEOF | ||
19398 | |||
19399 | superuser_path=$withval | ||
19400 | fi | ||
19401 | |||
19402 | |||
19403 | fi | ||
19404 | |||
19405 | |||
19406 | |||
19407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
19408 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
19409 | IPV4_IN6_HACK_MSG="no" | ||
19410 | |||
19411 | # Check whether --with-4in6 was given. | ||
19412 | if test "${with_4in6+set}" = set; then : | ||
19413 | withval=$with_4in6; | ||
19414 | if test "x$withval" != "xno" ; then | ||
19415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19416 | $as_echo "yes" >&6; } | ||
19417 | |||
19418 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
19419 | |||
19420 | IPV4_IN6_HACK_MSG="yes" | ||
19421 | else | ||
19422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19423 | $as_echo "no" >&6; } | ||
19424 | fi | ||
19425 | |||
19426 | else | ||
19427 | |||
19428 | if test "x$inet6_default_4in6" = "xyes"; then | ||
19429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
19430 | $as_echo "yes (default)" >&6; } | ||
19431 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
19432 | |||
19433 | IPV4_IN6_HACK_MSG="yes" | ||
19434 | else | ||
19435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
19436 | $as_echo "no (default)" >&6; } | ||
19437 | fi | ||
19438 | |||
19439 | |||
19440 | fi | ||
19441 | |||
19442 | |||
19443 | # Whether to enable BSD auth support | ||
19444 | BSD_AUTH_MSG=no | ||
19445 | |||
19446 | # Check whether --with-bsd-auth was given. | ||
19447 | if test "${with_bsd_auth+set}" = set; then : | ||
19448 | withval=$with_bsd_auth; | ||
19449 | if test "x$withval" != "xno" ; then | ||
19450 | |||
19451 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
19452 | |||
19453 | BSD_AUTH_MSG=yes | ||
19454 | fi | ||
19455 | |||
19456 | |||
19457 | fi | ||
19458 | |||
19459 | |||
19460 | # Where to place sshd.pid | ||
19461 | piddir=/var/run | ||
19462 | # make sure the directory exists | ||
19463 | if test ! -d $piddir ; then | ||
19464 | piddir=`eval echo ${sysconfdir}` | ||
19465 | case $piddir in | ||
19466 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
19467 | esac | ||
19468 | fi | ||
19469 | |||
19470 | |||
19471 | # Check whether --with-pid-dir was given. | ||
19472 | if test "${with_pid_dir+set}" = set; then : | ||
19473 | withval=$with_pid_dir; | ||
19474 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19475 | test "x${withval}" != "xyes"; then | ||
19476 | piddir=$withval | ||
19477 | if test ! -d $piddir ; then | ||
19478 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
19479 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
19480 | fi | ||
19481 | fi | ||
19482 | |||
19483 | |||
19484 | fi | ||
19485 | |||
19486 | |||
19487 | |||
19488 | cat >>confdefs.h <<_ACEOF | ||
19489 | #define _PATH_SSH_PIDDIR "$piddir" | ||
19490 | _ACEOF | ||
19491 | |||
19492 | |||
19493 | |||
19494 | # Check whether --enable-lastlog was given. | ||
19495 | if test "${enable_lastlog+set}" = set; then : | ||
19496 | enableval=$enable_lastlog; | ||
19497 | if test "x$enableval" = "xno" ; then | ||
19498 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19499 | |||
19500 | fi | ||
19501 | |||
19502 | |||
19503 | fi | ||
19504 | |||
19505 | # Check whether --enable-utmp was given. | ||
19506 | if test "${enable_utmp+set}" = set; then : | ||
19507 | enableval=$enable_utmp; | ||
19508 | if test "x$enableval" = "xno" ; then | ||
19509 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19510 | |||
19511 | fi | ||
19512 | |||
19513 | |||
19514 | fi | ||
19515 | |||
19516 | # Check whether --enable-utmpx was given. | ||
19517 | if test "${enable_utmpx+set}" = set; then : | ||
19518 | enableval=$enable_utmpx; | ||
19519 | if test "x$enableval" = "xno" ; then | ||
19520 | |||
19521 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
19522 | |||
19523 | fi | ||
19524 | |||
19525 | |||
19526 | fi | ||
19527 | |||
19528 | # Check whether --enable-wtmp was given. | ||
19529 | if test "${enable_wtmp+set}" = set; then : | ||
19530 | enableval=$enable_wtmp; | ||
19531 | if test "x$enableval" = "xno" ; then | ||
19532 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19533 | |||
19534 | fi | ||
19535 | |||
19536 | |||
19537 | fi | ||
19538 | |||
19539 | # Check whether --enable-wtmpx was given. | ||
19540 | if test "${enable_wtmpx+set}" = set; then : | ||
19541 | enableval=$enable_wtmpx; | ||
19542 | if test "x$enableval" = "xno" ; then | ||
19543 | |||
19544 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
19545 | |||
19546 | fi | ||
19547 | |||
19548 | |||
19549 | fi | ||
19550 | |||
19551 | # Check whether --enable-libutil was given. | ||
19552 | if test "${enable_libutil+set}" = set; then : | ||
19553 | enableval=$enable_libutil; | ||
19554 | if test "x$enableval" = "xno" ; then | ||
19555 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
19556 | |||
19557 | fi | ||
19558 | |||
19559 | |||
19560 | fi | ||
19561 | |||
19562 | # Check whether --enable-pututline was given. | ||
19563 | if test "${enable_pututline+set}" = set; then : | ||
19564 | enableval=$enable_pututline; | ||
19565 | if test "x$enableval" = "xno" ; then | ||
19566 | |||
19567 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
19568 | |||
19569 | fi | ||
19570 | |||
19571 | |||
19572 | fi | ||
19573 | |||
19574 | # Check whether --enable-pututxline was given. | ||
19575 | if test "${enable_pututxline+set}" = set; then : | ||
19576 | enableval=$enable_pututxline; | ||
19577 | if test "x$enableval" = "xno" ; then | ||
19578 | |||
19579 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
19580 | |||
19581 | fi | ||
19582 | |||
19583 | |||
19584 | fi | ||
19585 | |||
19586 | |||
19587 | # Check whether --with-lastlog was given. | ||
19588 | if test "${with_lastlog+set}" = set; then : | ||
19589 | withval=$with_lastlog; | ||
19590 | if test "x$withval" = "xno" ; then | ||
19591 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19592 | |||
19593 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
19594 | conf_lastlog_location=$withval | ||
19595 | fi | ||
19596 | |||
19597 | |||
19598 | fi | ||
19599 | |||
19600 | |||
19601 | |||
19602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
19603 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
19604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19605 | /* end confdefs.h. */ | ||
19606 | |||
19607 | #include <sys/types.h> | ||
19608 | #include <utmp.h> | ||
19609 | #ifdef HAVE_LASTLOG_H | ||
19610 | # include <lastlog.h> | ||
19611 | #endif | ||
19612 | #ifdef HAVE_PATHS_H | ||
19613 | # include <paths.h> | ||
19614 | #endif | ||
19615 | #ifdef HAVE_LOGIN_H | ||
19616 | # include <login.h> | ||
19617 | #endif | ||
19618 | |||
19619 | int | ||
19620 | main () | ||
19621 | { | ||
19622 | char *lastlog = LASTLOG_FILE; | ||
19623 | ; | ||
19624 | return 0; | ||
19625 | } | ||
19626 | _ACEOF | ||
19627 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19629 | $as_echo "yes" >&6; } | ||
19630 | else | ||
19631 | |||
19632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19633 | $as_echo "no" >&6; } | ||
19634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
19635 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
19636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19637 | /* end confdefs.h. */ | ||
19638 | |||
19639 | #include <sys/types.h> | ||
19640 | #include <utmp.h> | ||
19641 | #ifdef HAVE_LASTLOG_H | ||
19642 | # include <lastlog.h> | ||
19643 | #endif | ||
19644 | #ifdef HAVE_PATHS_H | ||
19645 | # include <paths.h> | ||
19646 | #endif | ||
19647 | |||
19648 | int | ||
19649 | main () | ||
19650 | { | ||
19651 | char *lastlog = _PATH_LASTLOG; | ||
19652 | ; | ||
19653 | return 0; | ||
19654 | } | ||
19655 | _ACEOF | ||
19656 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19658 | $as_echo "yes" >&6; } | ||
19659 | else | ||
19660 | |||
19661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19662 | $as_echo "no" >&6; } | ||
19663 | system_lastlog_path=no | ||
19664 | |||
19665 | fi | ||
19666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19667 | |||
19668 | fi | ||
19669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19670 | |||
19671 | if test -z "$conf_lastlog_location"; then | ||
19672 | if test x"$system_lastlog_path" = x"no" ; then | ||
19673 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
19674 | if (test -d "$f" || test -f "$f") ; then | ||
19675 | conf_lastlog_location=$f | ||
19676 | fi | ||
19677 | done | ||
19678 | if test -z "$conf_lastlog_location"; then | ||
19679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
19680 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
19681 | fi | ||
19682 | fi | ||
19683 | fi | ||
19684 | |||
19685 | if test -n "$conf_lastlog_location"; then | ||
19686 | |||
19687 | cat >>confdefs.h <<_ACEOF | ||
19688 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
19689 | _ACEOF | ||
19690 | |||
19691 | fi | ||
19692 | |||
19693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
19694 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
19695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19696 | /* end confdefs.h. */ | ||
19697 | |||
19698 | #include <sys/types.h> | ||
19699 | #include <utmp.h> | ||
19700 | #ifdef HAVE_PATHS_H | ||
19701 | # include <paths.h> | ||
19702 | #endif | ||
19703 | |||
19704 | int | ||
19705 | main () | ||
19706 | { | ||
19707 | char *utmp = UTMP_FILE; | ||
19708 | ; | ||
19709 | return 0; | ||
19710 | } | ||
19711 | _ACEOF | ||
19712 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19714 | $as_echo "yes" >&6; } | ||
19715 | else | ||
19716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19717 | $as_echo "no" >&6; } | ||
19718 | system_utmp_path=no | ||
19719 | |||
19720 | fi | ||
19721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19722 | if test -z "$conf_utmp_location"; then | ||
19723 | if test x"$system_utmp_path" = x"no" ; then | ||
19724 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
19725 | if test -f $f ; then | ||
19726 | conf_utmp_location=$f | ||
19727 | fi | ||
19728 | done | ||
19729 | if test -z "$conf_utmp_location"; then | ||
19730 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19731 | |||
19732 | fi | ||
19733 | fi | ||
19734 | fi | ||
19735 | if test -n "$conf_utmp_location"; then | ||
19736 | |||
19737 | cat >>confdefs.h <<_ACEOF | ||
19738 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
19739 | _ACEOF | ||
19740 | |||
19741 | fi | ||
19742 | |||
19743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
19744 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
19745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19746 | /* end confdefs.h. */ | ||
19747 | |||
19748 | #include <sys/types.h> | ||
19749 | #include <utmp.h> | ||
19750 | #ifdef HAVE_PATHS_H | ||
19751 | # include <paths.h> | ||
19752 | #endif | ||
19753 | |||
19754 | int | ||
19755 | main () | ||
19756 | { | ||
19757 | char *wtmp = WTMP_FILE; | ||
19758 | ; | ||
19759 | return 0; | ||
19760 | } | ||
19761 | _ACEOF | ||
19762 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19764 | $as_echo "yes" >&6; } | ||
19765 | else | ||
19766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19767 | $as_echo "no" >&6; } | ||
19768 | system_wtmp_path=no | ||
19769 | |||
19770 | fi | ||
19771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19772 | if test -z "$conf_wtmp_location"; then | ||
19773 | if test x"$system_wtmp_path" = x"no" ; then | ||
19774 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
19775 | if test -f $f ; then | ||
19776 | conf_wtmp_location=$f | ||
19777 | fi | ||
19778 | done | ||
19779 | if test -z "$conf_wtmp_location"; then | ||
19780 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19781 | |||
19782 | fi | ||
19783 | fi | ||
19784 | fi | ||
19785 | if test -n "$conf_wtmp_location"; then | ||
19786 | |||
19787 | cat >>confdefs.h <<_ACEOF | ||
19788 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
19789 | _ACEOF | ||
19790 | |||
19791 | fi | ||
19792 | |||
19793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
19794 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
19795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19796 | /* end confdefs.h. */ | ||
19797 | |||
19798 | #include <sys/types.h> | ||
19799 | #include <utmp.h> | ||
19800 | #ifdef HAVE_UTMPX_H | ||
19801 | #include <utmpx.h> | ||
19802 | #endif | ||
19803 | #ifdef HAVE_PATHS_H | ||
19804 | # include <paths.h> | ||
19805 | #endif | ||
19806 | |||
19807 | int | ||
19808 | main () | ||
19809 | { | ||
19810 | char *wtmpx = WTMPX_FILE; | ||
19811 | ; | ||
19812 | return 0; | ||
19813 | } | ||
19814 | _ACEOF | ||
19815 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19817 | $as_echo "yes" >&6; } | ||
19818 | else | ||
19819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19820 | $as_echo "no" >&6; } | ||
19821 | system_wtmpx_path=no | ||
19822 | |||
19823 | fi | ||
19824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19825 | if test -z "$conf_wtmpx_location"; then | ||
19826 | if test x"$system_wtmpx_path" = x"no" ; then | ||
19827 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
19828 | |||
19829 | fi | ||
19830 | else | ||
19831 | |||
19832 | cat >>confdefs.h <<_ACEOF | ||
19833 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
19834 | _ACEOF | ||
19835 | |||
19836 | fi | ||
19837 | |||
19838 | |||
19839 | if test ! -z "$blibpath" ; then | ||
19840 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
19841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
19842 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
19843 | fi | ||
19844 | |||
19845 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
19846 | #ifdef HAVE_SYS_TYPES_H | ||
19847 | #include <sys/types.h> | ||
19848 | #endif | ||
19849 | #ifdef HAVE_UTMP_H | ||
19850 | #include <utmp.h> | ||
19851 | #endif | ||
19852 | #ifdef HAVE_UTMPX_H | ||
19853 | #include <utmpx.h> | ||
19854 | #endif | ||
19855 | #ifdef HAVE_LASTLOG_H | ||
19856 | #include <lastlog.h> | ||
19857 | #endif | ||
19858 | |||
19859 | " | ||
19860 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
19861 | |||
19862 | else | ||
19863 | |||
19864 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
19865 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19866 | |||
19867 | fi | ||
19868 | |||
19869 | fi | ||
19870 | |||
19871 | |||
19872 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
19873 | #ifdef HAVE_SYS_TYPES_H | ||
19874 | #include <sys/types.h> | ||
19875 | #endif | ||
19876 | #ifdef HAVE_UTMP_H | ||
19877 | #include <utmp.h> | ||
19878 | #endif | ||
19879 | #ifdef HAVE_UTMPX_H | ||
19880 | #include <utmpx.h> | ||
19881 | #endif | ||
19882 | #ifdef HAVE_LASTLOG_H | ||
19883 | #include <lastlog.h> | ||
19884 | #endif | ||
19885 | |||
19886 | " | ||
19887 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
19888 | |||
19889 | else | ||
19890 | |||
19891 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19892 | |||
19893 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19894 | |||
19895 | |||
19896 | fi | ||
19897 | |||
19898 | |||
19899 | CFLAGS="$CFLAGS $werror_flags" | ||
19900 | |||
19901 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
19902 | TEST_SSH_IPV6=no | ||
19903 | else | ||
19904 | TEST_SSH_IPV6=yes | ||
19905 | fi | ||
19906 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
19907 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
19908 | TEST_SSH_IPV6=no | ||
19909 | fi | ||
19910 | |||
19911 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
19912 | |||
19913 | TEST_SSH_UTF8=$TEST_SSH_UTF8 | ||
19914 | |||
19915 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
19916 | |||
19917 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
19918 | |||
19919 | DEPEND=$(cat $srcdir/.depend) | ||
19920 | |||
19921 | |||
19922 | CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" | ||
19923 | LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" | ||
19924 | |||
19925 | # Make a copy of CFLAGS/LDFLAGS without PIE options. | ||
19926 | LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/ -pie//'` | ||
19927 | CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/ -fPIE//'` | ||
19928 | |||
19929 | |||
19930 | |||
19931 | |||
19932 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
19933 | |||
19934 | cat >confcache <<\_ACEOF | ||
19935 | # This file is a shell script that caches the results of configure | ||
19936 | # tests run on this system so they can be shared between configure | ||
19937 | # scripts and configure runs, see configure's option --config-cache. | ||
19938 | # It is not useful on other systems. If it contains results you don't | ||
19939 | # want to keep, you may remove or edit it. | ||
19940 | # | ||
19941 | # config.status only pays attention to the cache file if you give it | ||
19942 | # the --recheck option to rerun configure. | ||
19943 | # | ||
19944 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
19945 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
19946 | # following values. | ||
19947 | |||
19948 | _ACEOF | ||
19949 | |||
19950 | # The following way of writing the cache mishandles newlines in values, | ||
19951 | # but we know of no workaround that is simple, portable, and efficient. | ||
19952 | # So, we kill variables containing newlines. | ||
19953 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
19954 | # and sets the high bit in the cache file unless we assign to the vars. | ||
19955 | ( | ||
19956 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
19957 | eval ac_val=\$$ac_var | ||
19958 | case $ac_val in #( | ||
19959 | *${as_nl}*) | ||
19960 | case $ac_var in #( | ||
19961 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
19962 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
19963 | esac | ||
19964 | case $ac_var in #( | ||
19965 | _ | IFS | as_nl) ;; #( | ||
19966 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
19967 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
19968 | esac ;; | ||
19969 | esac | ||
19970 | done | ||
19971 | |||
19972 | (set) 2>&1 | | ||
19973 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
19974 | *${as_nl}ac_space=\ *) | ||
19975 | # `set' does not quote correctly, so add quotes: double-quote | ||
19976 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
19977 | sed -n \ | ||
19978 | "s/'/'\\\\''/g; | ||
19979 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
19980 | ;; #( | ||
19981 | *) | ||
19982 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
19983 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
19984 | ;; | ||
19985 | esac | | ||
19986 | sort | ||
19987 | ) | | ||
19988 | sed ' | ||
19989 | /^ac_cv_env_/b end | ||
19990 | t clear | ||
19991 | :clear | ||
19992 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
19993 | t end | ||
19994 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
19995 | :end' >>confcache | ||
19996 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
19997 | if test -w "$cache_file"; then | ||
19998 | if test "x$cache_file" != "x/dev/null"; then | ||
19999 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
20000 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
20001 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
20002 | cat confcache >"$cache_file" | ||
20003 | else | ||
20004 | case $cache_file in #( | ||
20005 | */* | ?:*) | ||
20006 | mv -f confcache "$cache_file"$$ && | ||
20007 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
20008 | *) | ||
20009 | mv -f confcache "$cache_file" ;; | ||
20010 | esac | ||
20011 | fi | ||
20012 | fi | ||
20013 | else | ||
20014 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
20015 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
20016 | fi | ||
20017 | fi | ||
20018 | rm -f confcache | ||
20019 | |||
20020 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
20021 | # Let make expand exec_prefix. | ||
20022 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
20023 | |||
20024 | DEFS=-DHAVE_CONFIG_H | ||
20025 | |||
20026 | ac_libobjs= | ||
20027 | ac_ltlibobjs= | ||
20028 | U= | ||
20029 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
20030 | # 1. Remove the extension, and $U if already installed. | ||
20031 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
20032 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
20033 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
20034 | # will be set to the directory where LIBOBJS objects are built. | ||
20035 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
20036 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
20037 | done | ||
20038 | LIBOBJS=$ac_libobjs | ||
20039 | |||
20040 | LTLIBOBJS=$ac_ltlibobjs | ||
20041 | |||
20042 | |||
20043 | |||
20044 | |||
20045 | : "${CONFIG_STATUS=./config.status}" | ||
20046 | ac_write_fail=0 | ||
20047 | ac_clean_files_save=$ac_clean_files | ||
20048 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
20049 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
20050 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
20051 | as_write_fail=0 | ||
20052 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
20053 | #! $SHELL | ||
20054 | # Generated by $as_me. | ||
20055 | # Run this file to recreate the current configuration. | ||
20056 | # Compiler output produced by configure, useful for debugging | ||
20057 | # configure, is in config.log if it exists. | ||
20058 | |||
20059 | debug=false | ||
20060 | ac_cs_recheck=false | ||
20061 | ac_cs_silent=false | ||
20062 | |||
20063 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
20064 | export SHELL | ||
20065 | _ASEOF | ||
20066 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
20067 | ## -------------------- ## | ||
20068 | ## M4sh Initialization. ## | ||
20069 | ## -------------------- ## | ||
20070 | |||
20071 | # Be more Bourne compatible | ||
20072 | DUALCASE=1; export DUALCASE # for MKS sh | ||
20073 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
20074 | emulate sh | ||
20075 | NULLCMD=: | ||
20076 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
20077 | # is contrary to our usage. Disable this feature. | ||
20078 | alias -g '${1+"$@"}'='"$@"' | ||
20079 | setopt NO_GLOB_SUBST | ||
20080 | else | ||
20081 | case `(set -o) 2>/dev/null` in #( | ||
20082 | *posix*) : | ||
20083 | set -o posix ;; #( | ||
20084 | *) : | ||
20085 | ;; | ||
20086 | esac | ||
20087 | fi | ||
20088 | |||
20089 | |||
20090 | as_nl=' | ||
20091 | ' | ||
20092 | export as_nl | ||
20093 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
20094 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
20095 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
20096 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
20097 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
20098 | # but without wasting forks for bash or zsh. | ||
20099 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
20100 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
20101 | as_echo='print -r --' | ||
20102 | as_echo_n='print -rn --' | ||
20103 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
20104 | as_echo='printf %s\n' | ||
20105 | as_echo_n='printf %s' | ||
20106 | else | ||
20107 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
20108 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
20109 | as_echo_n='/usr/ucb/echo -n' | ||
20110 | else | ||
20111 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
20112 | as_echo_n_body='eval | ||
20113 | arg=$1; | ||
20114 | case $arg in #( | ||
20115 | *"$as_nl"*) | ||
20116 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
20117 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
20118 | esac; | ||
20119 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
20120 | ' | ||
20121 | export as_echo_n_body | ||
20122 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
20123 | fi | ||
20124 | export as_echo_body | ||
20125 | as_echo='sh -c $as_echo_body as_echo' | ||
20126 | fi | ||
20127 | |||
20128 | # The user is always right. | ||
20129 | if test "${PATH_SEPARATOR+set}" != set; then | ||
20130 | PATH_SEPARATOR=: | ||
20131 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
20132 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
20133 | PATH_SEPARATOR=';' | ||
20134 | } | ||
20135 | fi | ||
20136 | |||
20137 | |||
20138 | # IFS | ||
20139 | # We need space, tab and new line, in precisely that order. Quoting is | ||
20140 | # there to prevent editors from complaining about space-tab. | ||
20141 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
20142 | # splitting by setting IFS to empty value.) | ||
20143 | IFS=" "" $as_nl" | ||
20144 | |||
20145 | # Find who we are. Look in the path if we contain no directory separator. | ||
20146 | as_myself= | ||
20147 | case $0 in #(( | ||
20148 | *[\\/]* ) as_myself=$0 ;; | ||
20149 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20150 | for as_dir in $PATH | ||
20151 | do | ||
20152 | IFS=$as_save_IFS | ||
20153 | test -z "$as_dir" && as_dir=. | ||
20154 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
20155 | done | ||
20156 | IFS=$as_save_IFS | ||
20157 | |||
20158 | ;; | ||
20159 | esac | ||
20160 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
20161 | # in which case we are not to be found in the path. | ||
20162 | if test "x$as_myself" = x; then | ||
20163 | as_myself=$0 | ||
20164 | fi | ||
20165 | if test ! -f "$as_myself"; then | ||
20166 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
20167 | exit 1 | ||
20168 | fi | ||
20169 | |||
20170 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
20171 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
20172 | # suppresses any "Segmentation fault" message there. '((' could | ||
20173 | # trigger a bug in pdksh 5.2.14. | ||
20174 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
20175 | do eval test x\${$as_var+set} = xset \ | ||
20176 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
20177 | done | ||
20178 | PS1='$ ' | ||
20179 | PS2='> ' | ||
20180 | PS4='+ ' | ||
20181 | |||
20182 | # NLS nuisances. | ||
20183 | LC_ALL=C | ||
20184 | export LC_ALL | ||
20185 | LANGUAGE=C | ||
20186 | export LANGUAGE | ||
20187 | |||
20188 | # CDPATH. | ||
20189 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
20190 | |||
20191 | |||
20192 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
20193 | # ---------------------------------------- | ||
20194 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
20195 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
20196 | # script with STATUS, using 1 if that was 0. | ||
20197 | as_fn_error () | ||
20198 | { | ||
20199 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
20200 | if test "$4"; then | ||
20201 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
20202 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
20203 | fi | ||
20204 | $as_echo "$as_me: error: $2" >&2 | ||
20205 | as_fn_exit $as_status | ||
20206 | } # as_fn_error | ||
20207 | |||
20208 | |||
20209 | # as_fn_set_status STATUS | ||
20210 | # ----------------------- | ||
20211 | # Set $? to STATUS, without forking. | ||
20212 | as_fn_set_status () | ||
20213 | { | ||
20214 | return $1 | ||
20215 | } # as_fn_set_status | ||
20216 | |||
20217 | # as_fn_exit STATUS | ||
20218 | # ----------------- | ||
20219 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
20220 | as_fn_exit () | ||
20221 | { | ||
20222 | set +e | ||
20223 | as_fn_set_status $1 | ||
20224 | exit $1 | ||
20225 | } # as_fn_exit | ||
20226 | |||
20227 | # as_fn_unset VAR | ||
20228 | # --------------- | ||
20229 | # Portably unset VAR. | ||
20230 | as_fn_unset () | ||
20231 | { | ||
20232 | { eval $1=; unset $1;} | ||
20233 | } | ||
20234 | as_unset=as_fn_unset | ||
20235 | # as_fn_append VAR VALUE | ||
20236 | # ---------------------- | ||
20237 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
20238 | # advantage of any shell optimizations that allow amortized linear growth over | ||
20239 | # repeated appends, instead of the typical quadratic growth present in naive | ||
20240 | # implementations. | ||
20241 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
20242 | eval 'as_fn_append () | ||
20243 | { | ||
20244 | eval $1+=\$2 | ||
20245 | }' | ||
20246 | else | ||
20247 | as_fn_append () | ||
20248 | { | ||
20249 | eval $1=\$$1\$2 | ||
20250 | } | ||
20251 | fi # as_fn_append | ||
20252 | |||
20253 | # as_fn_arith ARG... | ||
20254 | # ------------------ | ||
20255 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
20256 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
20257 | # must be portable across $(()) and expr. | ||
20258 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
20259 | eval 'as_fn_arith () | ||
20260 | { | ||
20261 | as_val=$(( $* )) | ||
20262 | }' | ||
20263 | else | ||
20264 | as_fn_arith () | ||
20265 | { | ||
20266 | as_val=`expr "$@" || test $? -eq 1` | ||
20267 | } | ||
20268 | fi # as_fn_arith | ||
20269 | |||
20270 | |||
20271 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
20272 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
20273 | as_expr=expr | ||
20274 | else | ||
20275 | as_expr=false | ||
20276 | fi | ||
20277 | |||
20278 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
20279 | as_basename=basename | ||
20280 | else | ||
20281 | as_basename=false | ||
20282 | fi | ||
20283 | |||
20284 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
20285 | as_dirname=dirname | ||
20286 | else | ||
20287 | as_dirname=false | ||
20288 | fi | ||
20289 | |||
20290 | as_me=`$as_basename -- "$0" || | ||
20291 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
20292 | X"$0" : 'X\(//\)$' \| \ | ||
20293 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
20294 | $as_echo X/"$0" | | ||
20295 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
20296 | s//\1/ | ||
20297 | q | ||
20298 | } | ||
20299 | /^X\/\(\/\/\)$/{ | ||
20300 | s//\1/ | ||
20301 | q | ||
20302 | } | ||
20303 | /^X\/\(\/\).*/{ | ||
20304 | s//\1/ | ||
20305 | q | ||
20306 | } | ||
20307 | s/.*/./; q'` | ||
20308 | |||
20309 | # Avoid depending upon Character Ranges. | ||
20310 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
20311 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
20312 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
20313 | as_cr_digits='0123456789' | ||
20314 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
20315 | |||
20316 | ECHO_C= ECHO_N= ECHO_T= | ||
20317 | case `echo -n x` in #((((( | ||
20318 | -n*) | ||
20319 | case `echo 'xy\c'` in | ||
20320 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
20321 | xy) ECHO_C='\c';; | ||
20322 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
20323 | ECHO_T=' ';; | ||
20324 | esac;; | ||
20325 | *) | ||
20326 | ECHO_N='-n';; | ||
20327 | esac | ||
20328 | |||
20329 | rm -f conf$$ conf$$.exe conf$$.file | ||
20330 | if test -d conf$$.dir; then | ||
20331 | rm -f conf$$.dir/conf$$.file | ||
20332 | else | ||
20333 | rm -f conf$$.dir | ||
20334 | mkdir conf$$.dir 2>/dev/null | ||
20335 | fi | ||
20336 | if (echo >conf$$.file) 2>/dev/null; then | ||
20337 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
20338 | as_ln_s='ln -s' | ||
20339 | # ... but there are two gotchas: | ||
20340 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
20341 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
20342 | # In both cases, we have to default to `cp -pR'. | ||
20343 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
20344 | as_ln_s='cp -pR' | ||
20345 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
20346 | as_ln_s=ln | ||
20347 | else | ||
20348 | as_ln_s='cp -pR' | ||
20349 | fi | ||
20350 | else | ||
20351 | as_ln_s='cp -pR' | ||
20352 | fi | ||
20353 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
20354 | rmdir conf$$.dir 2>/dev/null | ||
20355 | |||
20356 | |||
20357 | # as_fn_mkdir_p | ||
20358 | # ------------- | ||
20359 | # Create "$as_dir" as a directory, including parents if necessary. | ||
20360 | as_fn_mkdir_p () | ||
20361 | { | ||
20362 | |||
20363 | case $as_dir in #( | ||
20364 | -*) as_dir=./$as_dir;; | ||
20365 | esac | ||
20366 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
20367 | as_dirs= | ||
20368 | while :; do | ||
20369 | case $as_dir in #( | ||
20370 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
20371 | *) as_qdir=$as_dir;; | ||
20372 | esac | ||
20373 | as_dirs="'$as_qdir' $as_dirs" | ||
20374 | as_dir=`$as_dirname -- "$as_dir" || | ||
20375 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
20376 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
20377 | X"$as_dir" : 'X\(//\)$' \| \ | ||
20378 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
20379 | $as_echo X"$as_dir" | | ||
20380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
20381 | s//\1/ | ||
20382 | q | ||
20383 | } | ||
20384 | /^X\(\/\/\)[^/].*/{ | ||
20385 | s//\1/ | ||
20386 | q | ||
20387 | } | ||
20388 | /^X\(\/\/\)$/{ | ||
20389 | s//\1/ | ||
20390 | q | ||
20391 | } | ||
20392 | /^X\(\/\).*/{ | ||
20393 | s//\1/ | ||
20394 | q | ||
20395 | } | ||
20396 | s/.*/./; q'` | ||
20397 | test -d "$as_dir" && break | ||
20398 | done | ||
20399 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
20400 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
20401 | |||
20402 | |||
20403 | } # as_fn_mkdir_p | ||
20404 | if mkdir -p . 2>/dev/null; then | ||
20405 | as_mkdir_p='mkdir -p "$as_dir"' | ||
20406 | else | ||
20407 | test -d ./-p && rmdir ./-p | ||
20408 | as_mkdir_p=false | ||
20409 | fi | ||
20410 | |||
20411 | |||
20412 | # as_fn_executable_p FILE | ||
20413 | # ----------------------- | ||
20414 | # Test if FILE is an executable regular file. | ||
20415 | as_fn_executable_p () | ||
20416 | { | ||
20417 | test -f "$1" && test -x "$1" | ||
20418 | } # as_fn_executable_p | ||
20419 | as_test_x='test -x' | ||
20420 | as_executable_p=as_fn_executable_p | ||
20421 | |||
20422 | # Sed expression to map a string onto a valid CPP name. | ||
20423 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
20424 | |||
20425 | # Sed expression to map a string onto a valid variable name. | ||
20426 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
20427 | |||
20428 | |||
20429 | exec 6>&1 | ||
20430 | ## ----------------------------------- ## | ||
20431 | ## Main body of $CONFIG_STATUS script. ## | ||
20432 | ## ----------------------------------- ## | ||
20433 | _ASEOF | ||
20434 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
20435 | |||
20436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20437 | # Save the log message, to keep $0 and so on meaningful, and to | ||
20438 | # report actual input values of CONFIG_FILES etc. instead of their | ||
20439 | # values after options handling. | ||
20440 | ac_log=" | ||
20441 | This file was extended by OpenSSH $as_me Portable, which was | ||
20442 | generated by GNU Autoconf 2.69. Invocation command line was | ||
20443 | |||
20444 | CONFIG_FILES = $CONFIG_FILES | ||
20445 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
20446 | CONFIG_LINKS = $CONFIG_LINKS | ||
20447 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
20448 | $ $0 $@ | ||
20449 | |||
20450 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
20451 | " | ||
20452 | |||
20453 | _ACEOF | ||
20454 | |||
20455 | case $ac_config_files in *" | ||
20456 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
20457 | esac | ||
20458 | |||
20459 | case $ac_config_headers in *" | ||
20460 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
20461 | esac | ||
20462 | |||
20463 | |||
20464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20465 | # Files that config.status was made for. | ||
20466 | config_files="$ac_config_files" | ||
20467 | config_headers="$ac_config_headers" | ||
20468 | |||
20469 | _ACEOF | ||
20470 | |||
20471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20472 | ac_cs_usage="\ | ||
20473 | \`$as_me' instantiates files and other configuration actions | ||
20474 | from templates according to the current configuration. Unless the files | ||
20475 | and actions are specified as TAGs, all are instantiated by default. | ||
20476 | |||
20477 | Usage: $0 [OPTION]... [TAG]... | ||
20478 | |||
20479 | -h, --help print this help, then exit | ||
20480 | -V, --version print version number and configuration settings, then exit | ||
20481 | --config print configuration, then exit | ||
20482 | -q, --quiet, --silent | ||
20483 | do not print progress messages | ||
20484 | -d, --debug don't remove temporary files | ||
20485 | --recheck update $as_me by reconfiguring in the same conditions | ||
20486 | --file=FILE[:TEMPLATE] | ||
20487 | instantiate the configuration file FILE | ||
20488 | --header=FILE[:TEMPLATE] | ||
20489 | instantiate the configuration header FILE | ||
20490 | |||
20491 | Configuration files: | ||
20492 | $config_files | ||
20493 | |||
20494 | Configuration headers: | ||
20495 | $config_headers | ||
20496 | |||
20497 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
20498 | |||
20499 | _ACEOF | ||
20500 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20501 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
20502 | ac_cs_version="\\ | ||
20503 | OpenSSH config.status Portable | ||
20504 | configured by $0, generated by GNU Autoconf 2.69, | ||
20505 | with options \\"\$ac_cs_config\\" | ||
20506 | |||
20507 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
20508 | This config.status script is free software; the Free Software Foundation | ||
20509 | gives unlimited permission to copy, distribute and modify it." | ||
20510 | |||
20511 | ac_pwd='$ac_pwd' | ||
20512 | srcdir='$srcdir' | ||
20513 | INSTALL='$INSTALL' | ||
20514 | MKDIR_P='$MKDIR_P' | ||
20515 | AWK='$AWK' | ||
20516 | test -n "\$AWK" || AWK=awk | ||
20517 | _ACEOF | ||
20518 | |||
20519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20520 | # The default lists apply if the user does not specify any file. | ||
20521 | ac_need_defaults=: | ||
20522 | while test $# != 0 | ||
20523 | do | ||
20524 | case $1 in | ||
20525 | --*=?*) | ||
20526 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
20527 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
20528 | ac_shift=: | ||
20529 | ;; | ||
20530 | --*=) | ||
20531 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
20532 | ac_optarg= | ||
20533 | ac_shift=: | ||
20534 | ;; | ||
20535 | *) | ||
20536 | ac_option=$1 | ||
20537 | ac_optarg=$2 | ||
20538 | ac_shift=shift | ||
20539 | ;; | ||
20540 | esac | ||
20541 | |||
20542 | case $ac_option in | ||
20543 | # Handling of the options. | ||
20544 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
20545 | ac_cs_recheck=: ;; | ||
20546 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
20547 | $as_echo "$ac_cs_version"; exit ;; | ||
20548 | --config | --confi | --conf | --con | --co | --c ) | ||
20549 | $as_echo "$ac_cs_config"; exit ;; | ||
20550 | --debug | --debu | --deb | --de | --d | -d ) | ||
20551 | debug=: ;; | ||
20552 | --file | --fil | --fi | --f ) | ||
20553 | $ac_shift | ||
20554 | case $ac_optarg in | ||
20555 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
20556 | '') as_fn_error $? "missing file argument" ;; | ||
20557 | esac | ||
20558 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
20559 | ac_need_defaults=false;; | ||
20560 | --header | --heade | --head | --hea ) | ||
20561 | $ac_shift | ||
20562 | case $ac_optarg in | ||
20563 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
20564 | esac | ||
20565 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
20566 | ac_need_defaults=false;; | ||
20567 | --he | --h) | ||
20568 | # Conflict between --help and --header | ||
20569 | as_fn_error $? "ambiguous option: \`$1' | ||
20570 | Try \`$0 --help' for more information.";; | ||
20571 | --help | --hel | -h ) | ||
20572 | $as_echo "$ac_cs_usage"; exit ;; | ||
20573 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
20574 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
20575 | ac_cs_silent=: ;; | ||
20576 | |||
20577 | # This is an error. | ||
20578 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
20579 | Try \`$0 --help' for more information." ;; | ||
20580 | |||
20581 | *) as_fn_append ac_config_targets " $1" | ||
20582 | ac_need_defaults=false ;; | ||
20583 | |||
20584 | esac | ||
20585 | shift | ||
20586 | done | ||
20587 | |||
20588 | ac_configure_extra_args= | ||
20589 | |||
20590 | if $ac_cs_silent; then | ||
20591 | exec 6>/dev/null | ||
20592 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
20593 | fi | ||
20594 | |||
20595 | _ACEOF | ||
20596 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20597 | if \$ac_cs_recheck; then | ||
20598 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
20599 | shift | ||
20600 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
20601 | CONFIG_SHELL='$SHELL' | ||
20602 | export CONFIG_SHELL | ||
20603 | exec "\$@" | ||
20604 | fi | ||
20605 | |||
20606 | _ACEOF | ||
20607 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20608 | exec 5>>config.log | ||
20609 | { | ||
20610 | echo | ||
20611 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
20612 | ## Running $as_me. ## | ||
20613 | _ASBOX | ||
20614 | $as_echo "$ac_log" | ||
20615 | } >&5 | ||
20616 | |||
20617 | _ACEOF | ||
20618 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20619 | _ACEOF | ||
20620 | |||
20621 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20622 | |||
20623 | # Handling of arguments. | ||
20624 | for ac_config_target in $ac_config_targets | ||
20625 | do | ||
20626 | case $ac_config_target in | ||
20627 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
20628 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
20629 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
20630 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
20631 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
20632 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
20633 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
20634 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
20635 | |||
20636 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
20637 | esac | ||
20638 | done | ||
20639 | |||
20640 | |||
20641 | # If the user did not use the arguments to specify the items to instantiate, | ||
20642 | # then the envvar interface is used. Set only those that are not. | ||
20643 | # We use the long form for the default assignment because of an extremely | ||
20644 | # bizarre bug on SunOS 4.1.3. | ||
20645 | if $ac_need_defaults; then | ||
20646 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
20647 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
20648 | fi | ||
20649 | |||
20650 | # Have a temporary directory for convenience. Make it in the build tree | ||
20651 | # simply because there is no reason against having it here, and in addition, | ||
20652 | # creating and moving files from /tmp can sometimes cause problems. | ||
20653 | # Hook for its removal unless debugging. | ||
20654 | # Note that there is a small window in which the directory will not be cleaned: | ||
20655 | # after its creation but before its name has been assigned to `$tmp'. | ||
20656 | $debug || | ||
20657 | { | ||
20658 | tmp= ac_tmp= | ||
20659 | trap 'exit_status=$? | ||
20660 | : "${ac_tmp:=$tmp}" | ||
20661 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
20662 | ' 0 | ||
20663 | trap 'as_fn_exit 1' 1 2 13 15 | ||
20664 | } | ||
20665 | # Create a (secure) tmp directory for tmp files. | ||
20666 | |||
20667 | { | ||
20668 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
20669 | test -d "$tmp" | ||
20670 | } || | ||
20671 | { | ||
20672 | tmp=./conf$$-$RANDOM | ||
20673 | (umask 077 && mkdir "$tmp") | ||
20674 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
20675 | ac_tmp=$tmp | ||
20676 | |||
20677 | # Set up the scripts for CONFIG_FILES section. | ||
20678 | # No need to generate them if there are no CONFIG_FILES. | ||
20679 | # This happens for instance with `./config.status config.h'. | ||
20680 | if test -n "$CONFIG_FILES"; then | ||
20681 | |||
20682 | |||
20683 | ac_cr=`echo X | tr X '\015'` | ||
20684 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
20685 | # But we know of no other shell where ac_cr would be empty at this | ||
20686 | # point, so we can use a bashism as a fallback. | ||
20687 | if test "x$ac_cr" = x; then | ||
20688 | eval ac_cr=\$\'\\r\' | ||
20689 | fi | ||
20690 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
20691 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
20692 | ac_cs_awk_cr='\\r' | ||
20693 | else | ||
20694 | ac_cs_awk_cr=$ac_cr | ||
20695 | fi | ||
20696 | |||
20697 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
20698 | _ACEOF | ||
20699 | |||
20700 | |||
20701 | { | ||
20702 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
20703 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
20704 | echo "_ACEOF" | ||
20705 | } >conf$$subs.sh || | ||
20706 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20707 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
20708 | ac_delim='%!_!# ' | ||
20709 | for ac_last_try in false false false false false :; do | ||
20710 | . ./conf$$subs.sh || | ||
20711 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20712 | |||
20713 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
20714 | if test $ac_delim_n = $ac_delim_num; then | ||
20715 | break | ||
20716 | elif $ac_last_try; then | ||
20717 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20718 | else | ||
20719 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20720 | fi | ||
20721 | done | ||
20722 | rm -f conf$$subs.sh | ||
20723 | |||
20724 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20725 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
20726 | _ACEOF | ||
20727 | sed -n ' | ||
20728 | h | ||
20729 | s/^/S["/; s/!.*/"]=/ | ||
20730 | p | ||
20731 | g | ||
20732 | s/^[^!]*!// | ||
20733 | :repl | ||
20734 | t repl | ||
20735 | s/'"$ac_delim"'$// | ||
20736 | t delim | ||
20737 | :nl | ||
20738 | h | ||
20739 | s/\(.\{148\}\)..*/\1/ | ||
20740 | t more1 | ||
20741 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
20742 | p | ||
20743 | n | ||
20744 | b repl | ||
20745 | :more1 | ||
20746 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20747 | p | ||
20748 | g | ||
20749 | s/.\{148\}// | ||
20750 | t nl | ||
20751 | :delim | ||
20752 | h | ||
20753 | s/\(.\{148\}\)..*/\1/ | ||
20754 | t more2 | ||
20755 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
20756 | p | ||
20757 | b | ||
20758 | :more2 | ||
20759 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20760 | p | ||
20761 | g | ||
20762 | s/.\{148\}// | ||
20763 | t delim | ||
20764 | ' <conf$$subs.awk | sed ' | ||
20765 | /^[^""]/{ | ||
20766 | N | ||
20767 | s/\n// | ||
20768 | } | ||
20769 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20770 | rm -f conf$$subs.awk | ||
20771 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20772 | _ACAWK | ||
20773 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
20774 | for (key in S) S_is_set[key] = 1 | ||
20775 | FS = "" | ||
20776 | |||
20777 | } | ||
20778 | { | ||
20779 | line = $ 0 | ||
20780 | nfields = split(line, field, "@") | ||
20781 | substed = 0 | ||
20782 | len = length(field[1]) | ||
20783 | for (i = 2; i < nfields; i++) { | ||
20784 | key = field[i] | ||
20785 | keylen = length(key) | ||
20786 | if (S_is_set[key]) { | ||
20787 | value = S[key] | ||
20788 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
20789 | len += length(value) + length(field[++i]) | ||
20790 | substed = 1 | ||
20791 | } else | ||
20792 | len += 1 + keylen | ||
20793 | } | ||
20794 | |||
20795 | print line | ||
20796 | } | ||
20797 | |||
20798 | _ACAWK | ||
20799 | _ACEOF | ||
20800 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20801 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
20802 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
20803 | else | ||
20804 | cat | ||
20805 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
20806 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
20807 | _ACEOF | ||
20808 | |||
20809 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
20810 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
20811 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
20812 | # (actually we leave an empty line to preserve line numbers). | ||
20813 | if test "x$srcdir" = x.; then | ||
20814 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
20815 | h | ||
20816 | s/// | ||
20817 | s/^/:/ | ||
20818 | s/[ ]*$/:/ | ||
20819 | s/:\$(srcdir):/:/g | ||
20820 | s/:\${srcdir}:/:/g | ||
20821 | s/:@srcdir@:/:/g | ||
20822 | s/^:*// | ||
20823 | s/:*$// | ||
20824 | x | ||
20825 | s/\(=[ ]*\).*/\1/ | ||
20826 | G | ||
20827 | s/\n// | ||
20828 | s/^[^=]*=[ ]*$// | ||
20829 | }' | ||
20830 | fi | ||
20831 | |||
20832 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20833 | fi # test -n "$CONFIG_FILES" | ||
20834 | |||
20835 | # Set up the scripts for CONFIG_HEADERS section. | ||
20836 | # No need to generate them if there are no CONFIG_HEADERS. | ||
20837 | # This happens for instance with `./config.status Makefile'. | ||
20838 | if test -n "$CONFIG_HEADERS"; then | ||
20839 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
20840 | BEGIN { | ||
20841 | _ACEOF | ||
20842 | |||
20843 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
20844 | # here-document in config.status, that substitutes the proper values into | ||
20845 | # config.h.in to produce config.h. | ||
20846 | |||
20847 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
20848 | # handling of long lines. | ||
20849 | ac_delim='%!_!# ' | ||
20850 | for ac_last_try in false false :; do | ||
20851 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
20852 | if test -z "$ac_tt"; then | ||
20853 | break | ||
20854 | elif $ac_last_try; then | ||
20855 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
20856 | else | ||
20857 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20858 | fi | ||
20859 | done | ||
20860 | |||
20861 | # For the awk script, D is an array of macro values keyed by name, | ||
20862 | # likewise P contains macro parameters if any. Preserve backslash | ||
20863 | # newline sequences. | ||
20864 | |||
20865 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
20866 | sed -n ' | ||
20867 | s/.\{148\}/&'"$ac_delim"'/g | ||
20868 | t rset | ||
20869 | :rset | ||
20870 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
20871 | t def | ||
20872 | d | ||
20873 | :def | ||
20874 | s/\\$// | ||
20875 | t bsnl | ||
20876 | s/["\\]/\\&/g | ||
20877 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20878 | D["\1"]=" \3"/p | ||
20879 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
20880 | d | ||
20881 | :bsnl | ||
20882 | s/["\\]/\\&/g | ||
20883 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20884 | D["\1"]=" \3\\\\\\n"\\/p | ||
20885 | t cont | ||
20886 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
20887 | t cont | ||
20888 | d | ||
20889 | :cont | ||
20890 | n | ||
20891 | s/.\{148\}/&'"$ac_delim"'/g | ||
20892 | t clear | ||
20893 | :clear | ||
20894 | s/\\$// | ||
20895 | t bsnlc | ||
20896 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
20897 | d | ||
20898 | :bsnlc | ||
20899 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
20900 | b cont | ||
20901 | ' <confdefs.h | sed ' | ||
20902 | s/'"$ac_delim"'/"\\\ | ||
20903 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20904 | |||
20905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20906 | for (key in D) D_is_set[key] = 1 | ||
20907 | FS = "" | ||
20908 | } | ||
20909 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
20910 | line = \$ 0 | ||
20911 | split(line, arg, " ") | ||
20912 | if (arg[1] == "#") { | ||
20913 | defundef = arg[2] | ||
20914 | mac1 = arg[3] | ||
20915 | } else { | ||
20916 | defundef = substr(arg[1], 2) | ||
20917 | mac1 = arg[2] | ||
20918 | } | ||
20919 | split(mac1, mac2, "(") #) | ||
20920 | macro = mac2[1] | ||
20921 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
20922 | if (D_is_set[macro]) { | ||
20923 | # Preserve the white space surrounding the "#". | ||
20924 | print prefix "define", macro P[macro] D[macro] | ||
20925 | next | ||
20926 | } else { | ||
20927 | # Replace #undef with comments. This is necessary, for example, | ||
20928 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
20929 | # on some systems where configure will not decide to define it. | ||
20930 | if (defundef == "undef") { | ||
20931 | print "/*", prefix defundef, macro, "*/" | ||
20932 | next | ||
20933 | } | ||
20934 | } | ||
20935 | } | ||
20936 | { print } | ||
20937 | _ACAWK | ||
20938 | _ACEOF | ||
20939 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20940 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
20941 | fi # test -n "$CONFIG_HEADERS" | ||
20942 | |||
20943 | |||
20944 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
20945 | shift | ||
20946 | for ac_tag | ||
20947 | do | ||
20948 | case $ac_tag in | ||
20949 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
20950 | esac | ||
20951 | case $ac_mode$ac_tag in | ||
20952 | :[FHL]*:*);; | ||
20953 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
20954 | :[FH]-) ac_tag=-:-;; | ||
20955 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
20956 | esac | ||
20957 | ac_save_IFS=$IFS | ||
20958 | IFS=: | ||
20959 | set x $ac_tag | ||
20960 | IFS=$ac_save_IFS | ||
20961 | shift | ||
20962 | ac_file=$1 | ||
20963 | shift | ||
20964 | |||
20965 | case $ac_mode in | ||
20966 | :L) ac_source=$1;; | ||
20967 | :[FH]) | ||
20968 | ac_file_inputs= | ||
20969 | for ac_f | ||
20970 | do | ||
20971 | case $ac_f in | ||
20972 | -) ac_f="$ac_tmp/stdin";; | ||
20973 | *) # Look for the file first in the build tree, then in the source tree | ||
20974 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
20975 | # because $ac_f cannot contain `:'. | ||
20976 | test -f "$ac_f" || | ||
20977 | case $ac_f in | ||
20978 | [\\/$]*) false;; | ||
20979 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
20980 | esac || | ||
20981 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
20982 | esac | ||
20983 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
20984 | as_fn_append ac_file_inputs " '$ac_f'" | ||
20985 | done | ||
20986 | |||
20987 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
20988 | # use $as_me), people would be surprised to read: | ||
20989 | # /* config.h. Generated by config.status. */ | ||
20990 | configure_input='Generated from '` | ||
20991 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
20992 | `' by configure.' | ||
20993 | if test x"$ac_file" != x-; then | ||
20994 | configure_input="$ac_file. $configure_input" | ||
20995 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
20996 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
20997 | fi | ||
20998 | # Neutralize special characters interpreted by sed in replacement strings. | ||
20999 | case $configure_input in #( | ||
21000 | *\&* | *\|* | *\\* ) | ||
21001 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
21002 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
21003 | *) ac_sed_conf_input=$configure_input;; | ||
21004 | esac | ||
21005 | |||
21006 | case $ac_tag in | ||
21007 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
21008 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
21009 | esac | ||
21010 | ;; | ||
21011 | esac | ||
21012 | |||
21013 | ac_dir=`$as_dirname -- "$ac_file" || | ||
21014 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
21015 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
21016 | X"$ac_file" : 'X\(//\)$' \| \ | ||
21017 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
21018 | $as_echo X"$ac_file" | | ||
21019 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
21020 | s//\1/ | ||
21021 | q | ||
21022 | } | ||
21023 | /^X\(\/\/\)[^/].*/{ | ||
21024 | s//\1/ | ||
21025 | q | ||
21026 | } | ||
21027 | /^X\(\/\/\)$/{ | ||
21028 | s//\1/ | ||
21029 | q | ||
21030 | } | ||
21031 | /^X\(\/\).*/{ | ||
21032 | s//\1/ | ||
21033 | q | ||
21034 | } | ||
21035 | s/.*/./; q'` | ||
21036 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
21037 | ac_builddir=. | ||
21038 | |||
21039 | case "$ac_dir" in | ||
21040 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
21041 | *) | ||
21042 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
21043 | # A ".." for each directory in $ac_dir_suffix. | ||
21044 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
21045 | case $ac_top_builddir_sub in | ||
21046 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
21047 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
21048 | esac ;; | ||
21049 | esac | ||
21050 | ac_abs_top_builddir=$ac_pwd | ||
21051 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
21052 | # for backward compatibility: | ||
21053 | ac_top_builddir=$ac_top_build_prefix | ||
21054 | |||
21055 | case $srcdir in | ||
21056 | .) # We are building in place. | ||
21057 | ac_srcdir=. | ||
21058 | ac_top_srcdir=$ac_top_builddir_sub | ||
21059 | ac_abs_top_srcdir=$ac_pwd ;; | ||
21060 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
21061 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
21062 | ac_top_srcdir=$srcdir | ||
21063 | ac_abs_top_srcdir=$srcdir ;; | ||
21064 | *) # Relative name. | ||
21065 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
21066 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
21067 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
21068 | esac | ||
21069 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
21070 | |||
21071 | |||
21072 | case $ac_mode in | ||
21073 | :F) | ||
21074 | # | ||
21075 | # CONFIG_FILE | ||
21076 | # | ||
21077 | |||
21078 | case $INSTALL in | ||
21079 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
21080 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
21081 | esac | ||
21082 | ac_MKDIR_P=$MKDIR_P | ||
21083 | case $MKDIR_P in | ||
21084 | [\\/$]* | ?:[\\/]* ) ;; | ||
21085 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
21086 | esac | ||
21087 | _ACEOF | ||
21088 | |||
21089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21090 | # If the template does not know about datarootdir, expand it. | ||
21091 | # FIXME: This hack should be removed a few years after 2.60. | ||
21092 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
21093 | ac_sed_dataroot=' | ||
21094 | /datarootdir/ { | ||
21095 | p | ||
21096 | q | ||
21097 | } | ||
21098 | /@datadir@/p | ||
21099 | /@docdir@/p | ||
21100 | /@infodir@/p | ||
21101 | /@localedir@/p | ||
21102 | /@mandir@/p' | ||
21103 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
21104 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
21105 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
21106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
21107 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
21108 | _ACEOF | ||
21109 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21110 | ac_datarootdir_hack=' | ||
21111 | s&@datadir@&$datadir&g | ||
21112 | s&@docdir@&$docdir&g | ||
21113 | s&@infodir@&$infodir&g | ||
21114 | s&@localedir@&$localedir&g | ||
21115 | s&@mandir@&$mandir&g | ||
21116 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
21117 | esac | ||
21118 | _ACEOF | ||
21119 | |||
21120 | # Neutralize VPATH when `$srcdir' = `.'. | ||
21121 | # Shell code in configure.ac might set extrasub. | ||
21122 | # FIXME: do we really want to maintain this feature? | ||
21123 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21124 | ac_sed_extra="$ac_vpsub | ||
21125 | $extrasub | ||
21126 | _ACEOF | ||
21127 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21128 | :t | ||
21129 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
21130 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
21131 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
21132 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
21133 | s&@srcdir@&$ac_srcdir&;t t | ||
21134 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
21135 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
21136 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
21137 | s&@builddir@&$ac_builddir&;t t | ||
21138 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
21139 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
21140 | s&@INSTALL@&$ac_INSTALL&;t t | ||
21141 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
21142 | $ac_datarootdir_hack | ||
21143 | " | ||
21144 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
21145 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
21146 | |||
21147 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
21148 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
21149 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
21150 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
21151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
21152 | which seems to be undefined. Please make sure it is defined" >&5 | ||
21153 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
21154 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
21155 | |||
21156 | rm -f "$ac_tmp/stdin" | ||
21157 | case $ac_file in | ||
21158 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
21159 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
21160 | esac \ | ||
21161 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
21162 | ;; | ||
21163 | :H) | ||
21164 | # | ||
21165 | # CONFIG_HEADER | ||
21166 | # | ||
21167 | if test x"$ac_file" != x-; then | ||
21168 | { | ||
21169 | $as_echo "/* $configure_input */" \ | ||
21170 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
21171 | } >"$ac_tmp/config.h" \ | ||
21172 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
21173 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
21174 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
21175 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
21176 | else | ||
21177 | rm -f "$ac_file" | ||
21178 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
21179 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
21180 | fi | ||
21181 | else | ||
21182 | $as_echo "/* $configure_input */" \ | ||
21183 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
21184 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
21185 | fi | ||
21186 | ;; | ||
21187 | |||
21188 | |||
21189 | esac | ||
21190 | |||
21191 | done # for ac_tag | ||
21192 | |||
21193 | |||
21194 | as_fn_exit 0 | ||
21195 | _ACEOF | ||
21196 | ac_clean_files=$ac_clean_files_save | ||
21197 | |||
21198 | test $ac_write_fail = 0 || | ||
21199 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
21200 | |||
21201 | |||
21202 | # configure is writing to config.log, and then calls config.status. | ||
21203 | # config.status does its own redirection, appending to config.log. | ||
21204 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
21205 | # by configure, so config.status won't be able to write to it; its | ||
21206 | # output is simply discarded. So we exec the FD to /dev/null, | ||
21207 | # effectively closing config.log, so it can be properly (re)opened and | ||
21208 | # appended to by config.status. When coming back to configure, we | ||
21209 | # need to make the FD available again. | ||
21210 | if test "$no_create" != yes; then | ||
21211 | ac_cs_success=: | ||
21212 | ac_config_status_args= | ||
21213 | test "$silent" = yes && | ||
21214 | ac_config_status_args="$ac_config_status_args --quiet" | ||
21215 | exec 5>/dev/null | ||
21216 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
21217 | exec 5>>config.log | ||
21218 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
21219 | # would make configure fail if this is the last instruction. | ||
21220 | $ac_cs_success || as_fn_exit 1 | ||
21221 | fi | ||
21222 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
21223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
21224 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
21225 | fi | ||
21226 | |||
21227 | |||
21228 | # Print summary of options | ||
21229 | |||
21230 | # Someone please show me a better way :) | ||
21231 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
21232 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
21233 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
21234 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
21235 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
21236 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
21237 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
21238 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
21239 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
21240 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
21241 | |||
21242 | echo "" | ||
21243 | echo "OpenSSH has been configured with the following options:" | ||
21244 | echo " User binaries: $B" | ||
21245 | echo " System binaries: $C" | ||
21246 | echo " Configuration files: $D" | ||
21247 | echo " Askpass program: $E" | ||
21248 | echo " Manual pages: $F" | ||
21249 | echo " PID file: $G" | ||
21250 | echo " Privilege separation chroot path: $H" | ||
21251 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
21252 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
21253 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
21254 | else | ||
21255 | echo " sshd default user PATH: $I" | ||
21256 | if test ! -z "$external_path_file"; then | ||
21257 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
21258 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
21259 | fi | ||
21260 | fi | ||
21261 | if test ! -z "$superuser_path" ; then | ||
21262 | echo " sshd superuser user PATH: $J" | ||
21263 | fi | ||
21264 | echo " Manpage format: $MANTYPE" | ||
21265 | echo " PAM support: $PAM_MSG" | ||
21266 | echo " OSF SIA support: $SIA_MSG" | ||
21267 | echo " KerberosV support: $KRB5_MSG" | ||
21268 | echo " SELinux support: $SELINUX_MSG" | ||
21269 | echo " MD5 password support: $MD5_MSG" | ||
21270 | echo " libedit support: $LIBEDIT_MSG" | ||
21271 | echo " libldns support: $LDNS_MSG" | ||
21272 | echo " Solaris process contract support: $SPC_MSG" | ||
21273 | echo " Solaris project support: $SP_MSG" | ||
21274 | echo " Solaris privilege support: $SPP_MSG" | ||
21275 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
21276 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
21277 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
21278 | echo " Random number source: $RAND_MSG" | ||
21279 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
21280 | echo " PKCS#11 support: $enable_pkcs11" | ||
21281 | echo " U2F/FIDO support: $enable_sk" | ||
21282 | |||
21283 | echo "" | ||
21284 | |||
21285 | echo " Host: ${host}" | ||
21286 | echo " Compiler: ${CC}" | ||
21287 | echo " Compiler flags: ${CFLAGS}" | ||
21288 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
21289 | echo " Linker flags: ${LDFLAGS}" | ||
21290 | echo " Libraries: ${LIBS}" | ||
21291 | if test ! -z "${SSHDLIBS}"; then | ||
21292 | echo " +for sshd: ${SSHDLIBS}" | ||
21293 | fi | ||
21294 | if test ! -z "${SSHLIBS}"; then | ||
21295 | echo " +for ssh: ${SSHLIBS}" | ||
21296 | fi | ||
21297 | |||
21298 | echo "" | ||
21299 | |||
21300 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
21301 | echo "SVR4 style packages are supported with \"make package\"" | ||
21302 | echo "" | ||
21303 | fi | ||
21304 | |||
21305 | if test "x$PAM_MSG" = "xyes" ; then | ||
21306 | echo "PAM is enabled. You may need to install a PAM control file " | ||
21307 | echo "for sshd, otherwise password authentication may fail. " | ||
21308 | echo "Example PAM control files can be found in the contrib/ " | ||
21309 | echo "subdirectory" | ||
21310 | echo "" | ||
21311 | fi | ||
21312 | |||
21313 | if test ! -z "$NO_PEERCHECK" ; then | ||
21314 | echo "WARNING: the operating system that you are using does not" | ||
21315 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
21316 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
21317 | echo "enforce security checks to prevent unauthorised connections to" | ||
21318 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
21319 | echo "user can connect to your agent." | ||
21320 | echo "" | ||
21321 | fi | ||
21322 | |||
21323 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
21324 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
21325 | echo "See the Solaris section in README.platform for details." | ||
21326 | fi | ||