Greg Hartman | bd77cf7 | 2015-02-25 13:21:06 -0800 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # From configure.ac Revision: 1.480 . |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated by GNU Autoconf 2.68 for OpenSSH Portable. |
| 5 | # |
| 6 | # Report bugs to <openssh-unix-dev@mindrot.org>. |
| 7 | # |
| 8 | # |
| 9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 11 | # Foundation, Inc. |
| 12 | # |
| 13 | # |
| 14 | # This configure script is free software; the Free Software Foundation |
| 15 | # gives unlimited permission to copy, distribute and modify it. |
| 16 | ## -------------------- ## |
| 17 | ## M4sh Initialization. ## |
| 18 | ## -------------------- ## |
| 19 | |
| 20 | # Be more Bourne compatible |
| 21 | DUALCASE=1; export DUALCASE # for MKS sh |
| 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
| 28 | setopt NO_GLOB_SUBST |
| 29 | else |
| 30 | case `(set -o) 2>/dev/null` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
| 35 | esac |
| 36 | fi |
| 37 | |
| 38 | |
| 39 | as_nl=' |
| 40 | ' |
| 41 | export as_nl |
| 42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 47 | # but without wasting forks for bash or zsh. |
| 48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='print -r --' |
| 51 | as_echo_n='print -rn --' |
| 52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 53 | as_echo='printf %s\n' |
| 54 | as_echo_n='printf %s' |
| 55 | else |
| 56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 58 | as_echo_n='/usr/ucb/echo -n' |
| 59 | else |
| 60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 61 | as_echo_n_body='eval |
| 62 | arg=$1; |
| 63 | case $arg in #( |
| 64 | *"$as_nl"*) |
| 65 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 67 | esac; |
| 68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 69 | ' |
| 70 | export as_echo_n_body |
| 71 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 72 | fi |
| 73 | export as_echo_body |
| 74 | as_echo='sh -c $as_echo_body as_echo' |
| 75 | fi |
| 76 | |
| 77 | # The user is always right. |
| 78 | if test "${PATH_SEPARATOR+set}" != set; then |
| 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 | PATH_SEPARATOR=';' |
| 83 | } |
| 84 | fi |
| 85 | |
| 86 | |
| 87 | # IFS |
| 88 | # We need space, tab and new line, in precisely that order. Quoting is |
| 89 | # there to prevent editors from complaining about space-tab. |
| 90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 91 | # splitting by setting IFS to empty value.) |
| 92 | IFS=" "" $as_nl" |
| 93 | |
| 94 | # Find who we are. Look in the path if we contain no directory separator. |
| 95 | as_myself= |
| 96 | case $0 in #(( |
| 97 | *[\\/]* ) as_myself=$0 ;; |
| 98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 99 | for as_dir in $PATH |
| 100 | do |
| 101 | IFS=$as_save_IFS |
| 102 | test -z "$as_dir" && as_dir=. |
| 103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 104 | done |
| 105 | IFS=$as_save_IFS |
| 106 | |
| 107 | ;; |
| 108 | esac |
| 109 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 110 | # in which case we are not to be found in the path. |
| 111 | if test "x$as_myself" = x; then |
| 112 | as_myself=$0 |
| 113 | fi |
| 114 | if test ! -f "$as_myself"; then |
| 115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 116 | exit 1 |
| 117 | fi |
| 118 | |
| 119 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 121 | # suppresses any "Segmentation fault" message there. '((' could |
| 122 | # trigger a bug in pdksh 5.2.14. |
| 123 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 124 | do eval test x\${$as_var+set} = xset \ |
| 125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 126 | done |
| 127 | PS1='$ ' |
| 128 | PS2='> ' |
| 129 | PS4='+ ' |
| 130 | |
| 131 | # NLS nuisances. |
| 132 | LC_ALL=C |
| 133 | export LC_ALL |
| 134 | LANGUAGE=C |
| 135 | export LANGUAGE |
| 136 | |
| 137 | # CDPATH. |
| 138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 139 | |
| 140 | if test "x$CONFIG_SHELL" = x; then |
| 141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 142 | emulate sh |
| 143 | NULLCMD=: |
| 144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 145 | # is contrary to our usage. Disable this feature. |
| 146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 147 | setopt NO_GLOB_SUBST |
| 148 | else |
| 149 | case \`(set -o) 2>/dev/null\` in #( |
| 150 | *posix*) : |
| 151 | set -o posix ;; #( |
| 152 | *) : |
| 153 | ;; |
| 154 | esac |
| 155 | fi |
| 156 | " |
| 157 | as_required="as_fn_return () { (exit \$1); } |
| 158 | as_fn_success () { as_fn_return 0; } |
| 159 | as_fn_failure () { as_fn_return 1; } |
| 160 | as_fn_ret_success () { return 0; } |
| 161 | as_fn_ret_failure () { return 1; } |
| 162 | |
| 163 | exitcode=0 |
| 164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 169 | |
| 170 | else |
| 171 | exitcode=1; echo positional parameters were not saved. |
| 172 | fi |
| 173 | test x\$exitcode = x0 || exit 1" |
| 174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 178 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 179 | if (eval "$as_required") 2>/dev/null; then : |
| 180 | as_have_required=yes |
| 181 | else |
| 182 | as_have_required=no |
| 183 | fi |
| 184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 185 | |
| 186 | else |
| 187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 188 | as_found=false |
| 189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 190 | do |
| 191 | IFS=$as_save_IFS |
| 192 | test -z "$as_dir" && as_dir=. |
| 193 | as_found=: |
| 194 | case $as_dir in #( |
| 195 | /*) |
| 196 | for as_base in sh bash ksh sh5; do |
| 197 | # Try only shells that exist, to save several forks. |
| 198 | as_shell=$as_dir/$as_base |
| 199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 203 | break 2 |
| 204 | fi |
| 205 | fi |
| 206 | done;; |
| 207 | esac |
| 208 | as_found=false |
| 209 | done |
| 210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 212 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 213 | fi; } |
| 214 | IFS=$as_save_IFS |
| 215 | |
| 216 | |
| 217 | if test "x$CONFIG_SHELL" != x; then : |
| 218 | # We cannot yet assume a decent shell, so we have to provide a |
| 219 | # neutralization value for shells without unset; and this also |
| 220 | # works around shells that cannot unset nonexistent variables. |
| 221 | # Preserve -v and -x to the replacement shell. |
| 222 | BASH_ENV=/dev/null |
| 223 | ENV=/dev/null |
| 224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 225 | export CONFIG_SHELL |
| 226 | case $- in # (((( |
| 227 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 228 | *v* ) as_opts=-v ;; |
| 229 | *x* ) as_opts=-x ;; |
| 230 | * ) as_opts= ;; |
| 231 | esac |
| 232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
| 233 | fi |
| 234 | |
| 235 | if test x$as_have_required = xno; then : |
| 236 | $as_echo "$0: This script requires a shell more modern than all" |
| 237 | $as_echo "$0: the shells that I found on your system." |
| 238 | if test x${ZSH_VERSION+set} = xset ; then |
| 239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 241 | else |
| 242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 243 | $0: openssh-unix-dev@mindrot.org about your system, |
| 244 | $0: including any error possibly output before this |
| 245 | $0: message. Then install a modern shell, or manually run |
| 246 | $0: the script under such a shell if you do have one." |
| 247 | fi |
| 248 | exit 1 |
| 249 | fi |
| 250 | fi |
| 251 | fi |
| 252 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 253 | export SHELL |
| 254 | # Unset more variables known to interfere with behavior of common tools. |
| 255 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 256 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 257 | |
| 258 | ## --------------------- ## |
| 259 | ## M4sh Shell Functions. ## |
| 260 | ## --------------------- ## |
| 261 | # as_fn_unset VAR |
| 262 | # --------------- |
| 263 | # Portably unset VAR. |
| 264 | as_fn_unset () |
| 265 | { |
| 266 | { eval $1=; unset $1;} |
| 267 | } |
| 268 | as_unset=as_fn_unset |
| 269 | |
| 270 | # as_fn_set_status STATUS |
| 271 | # ----------------------- |
| 272 | # Set $? to STATUS, without forking. |
| 273 | as_fn_set_status () |
| 274 | { |
| 275 | return $1 |
| 276 | } # as_fn_set_status |
| 277 | |
| 278 | # as_fn_exit STATUS |
| 279 | # ----------------- |
| 280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 281 | as_fn_exit () |
| 282 | { |
| 283 | set +e |
| 284 | as_fn_set_status $1 |
| 285 | exit $1 |
| 286 | } # as_fn_exit |
| 287 | |
| 288 | # as_fn_mkdir_p |
| 289 | # ------------- |
| 290 | # Create "$as_dir" as a directory, including parents if necessary. |
| 291 | as_fn_mkdir_p () |
| 292 | { |
| 293 | |
| 294 | case $as_dir in #( |
| 295 | -*) as_dir=./$as_dir;; |
| 296 | esac |
| 297 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 298 | as_dirs= |
| 299 | while :; do |
| 300 | case $as_dir in #( |
| 301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 302 | *) as_qdir=$as_dir;; |
| 303 | esac |
| 304 | as_dirs="'$as_qdir' $as_dirs" |
| 305 | as_dir=`$as_dirname -- "$as_dir" || |
| 306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 307 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 308 | X"$as_dir" : 'X\(//\)$' \| \ |
| 309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 310 | $as_echo X"$as_dir" | |
| 311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | /^X\(\/\/\)[^/].*/{ |
| 316 | s//\1/ |
| 317 | q |
| 318 | } |
| 319 | /^X\(\/\/\)$/{ |
| 320 | s//\1/ |
| 321 | q |
| 322 | } |
| 323 | /^X\(\/\).*/{ |
| 324 | s//\1/ |
| 325 | q |
| 326 | } |
| 327 | s/.*/./; q'` |
| 328 | test -d "$as_dir" && break |
| 329 | done |
| 330 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 332 | |
| 333 | |
| 334 | } # as_fn_mkdir_p |
| 335 | # as_fn_append VAR VALUE |
| 336 | # ---------------------- |
| 337 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 338 | # advantage of any shell optimizations that allow amortized linear growth over |
| 339 | # repeated appends, instead of the typical quadratic growth present in naive |
| 340 | # implementations. |
| 341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 342 | eval 'as_fn_append () |
| 343 | { |
| 344 | eval $1+=\$2 |
| 345 | }' |
| 346 | else |
| 347 | as_fn_append () |
| 348 | { |
| 349 | eval $1=\$$1\$2 |
| 350 | } |
| 351 | fi # as_fn_append |
| 352 | |
| 353 | # as_fn_arith ARG... |
| 354 | # ------------------ |
| 355 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 357 | # must be portable across $(()) and expr. |
| 358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 359 | eval 'as_fn_arith () |
| 360 | { |
| 361 | as_val=$(( $* )) |
| 362 | }' |
| 363 | else |
| 364 | as_fn_arith () |
| 365 | { |
| 366 | as_val=`expr "$@" || test $? -eq 1` |
| 367 | } |
| 368 | fi # as_fn_arith |
| 369 | |
| 370 | |
| 371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 372 | # ---------------------------------------- |
| 373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 375 | # script with STATUS, using 1 if that was 0. |
| 376 | as_fn_error () |
| 377 | { |
| 378 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 379 | if test "$4"; then |
| 380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 382 | fi |
| 383 | $as_echo "$as_me: error: $2" >&2 |
| 384 | as_fn_exit $as_status |
| 385 | } # as_fn_error |
| 386 | |
| 387 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 389 | as_expr=expr |
| 390 | else |
| 391 | as_expr=false |
| 392 | fi |
| 393 | |
| 394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 395 | as_basename=basename |
| 396 | else |
| 397 | as_basename=false |
| 398 | fi |
| 399 | |
| 400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 401 | as_dirname=dirname |
| 402 | else |
| 403 | as_dirname=false |
| 404 | fi |
| 405 | |
| 406 | as_me=`$as_basename -- "$0" || |
| 407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 408 | X"$0" : 'X\(//\)$' \| \ |
| 409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 410 | $as_echo X/"$0" | |
| 411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 412 | s//\1/ |
| 413 | q |
| 414 | } |
| 415 | /^X\/\(\/\/\)$/{ |
| 416 | s//\1/ |
| 417 | q |
| 418 | } |
| 419 | /^X\/\(\/\).*/{ |
| 420 | s//\1/ |
| 421 | q |
| 422 | } |
| 423 | s/.*/./; q'` |
| 424 | |
| 425 | # Avoid depending upon Character Ranges. |
| 426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 429 | as_cr_digits='0123456789' |
| 430 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 431 | |
| 432 | |
| 433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
| 442 | sed ' |
| 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
| 447 | N |
| 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 450 | t loop |
| 451 | s/-\n.*// |
| 452 | ' >$as_me.lineno && |
| 453 | chmod +x "$as_me.lineno" || |
| 454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 455 | |
| 456 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 457 | # (the dirname of $[0] is not the place where we might find the |
| 458 | # original and so on. Autoconf is especially sensitive to this). |
| 459 | . "./$as_me.lineno" |
| 460 | # Exit status is that of the last command. |
| 461 | exit |
| 462 | } |
| 463 | |
| 464 | ECHO_C= ECHO_N= ECHO_T= |
| 465 | case `echo -n x` in #((((( |
| 466 | -n*) |
| 467 | case `echo 'xy\c'` in |
| 468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 469 | xy) ECHO_C='\c';; |
| 470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 471 | ECHO_T=' ';; |
| 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
| 475 | esac |
| 476 | |
| 477 | rm -f conf$$ conf$$.exe conf$$.file |
| 478 | if test -d conf$$.dir; then |
| 479 | rm -f conf$$.dir/conf$$.file |
| 480 | else |
| 481 | rm -f conf$$.dir |
| 482 | mkdir conf$$.dir 2>/dev/null |
| 483 | fi |
| 484 | if (echo >conf$$.file) 2>/dev/null; then |
| 485 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 486 | as_ln_s='ln -s' |
| 487 | # ... but there are two gotchas: |
| 488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 490 | # In both cases, we have to default to `cp -p'. |
| 491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 492 | as_ln_s='cp -p' |
| 493 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 494 | as_ln_s=ln |
| 495 | else |
| 496 | as_ln_s='cp -p' |
| 497 | fi |
| 498 | else |
| 499 | as_ln_s='cp -p' |
| 500 | fi |
| 501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 502 | rmdir conf$$.dir 2>/dev/null |
| 503 | |
| 504 | if mkdir -p . 2>/dev/null; then |
| 505 | as_mkdir_p='mkdir -p "$as_dir"' |
| 506 | else |
| 507 | test -d ./-p && rmdir ./-p |
| 508 | as_mkdir_p=false |
| 509 | fi |
| 510 | |
| 511 | if test -x / >/dev/null 2>&1; then |
| 512 | as_test_x='test -x' |
| 513 | else |
| 514 | if ls -dL / >/dev/null 2>&1; then |
| 515 | as_ls_L_option=L |
| 516 | else |
| 517 | as_ls_L_option= |
| 518 | fi |
| 519 | as_test_x=' |
| 520 | eval sh -c '\'' |
| 521 | if test -d "$1"; then |
| 522 | test -d "$1/."; |
| 523 | else |
| 524 | case $1 in #( |
| 525 | -*)set "./$1";; |
| 526 | esac; |
| 527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 528 | ???[sx]*):;;*)false;;esac;fi |
| 529 | '\'' sh |
| 530 | ' |
| 531 | fi |
| 532 | as_executable_p=$as_test_x |
| 533 | |
| 534 | # Sed expression to map a string onto a valid CPP name. |
| 535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 536 | |
| 537 | # Sed expression to map a string onto a valid variable name. |
| 538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 539 | |
| 540 | |
| 541 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 542 | exec 6>&1 |
| 543 | |
| 544 | # Name of the host. |
| 545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 546 | # so uname gets run too. |
| 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 548 | |
| 549 | # |
| 550 | # Initializations. |
| 551 | # |
| 552 | ac_default_prefix=/usr/local |
| 553 | ac_clean_files= |
| 554 | ac_config_libobj_dir=. |
| 555 | LIBOBJS= |
| 556 | cross_compiling=no |
| 557 | subdirs= |
| 558 | MFLAGS= |
| 559 | MAKEFLAGS= |
| 560 | |
| 561 | # Identity of this package. |
| 562 | PACKAGE_NAME='OpenSSH' |
| 563 | PACKAGE_TARNAME='openssh' |
| 564 | PACKAGE_VERSION='Portable' |
| 565 | PACKAGE_STRING='OpenSSH Portable' |
| 566 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' |
| 567 | PACKAGE_URL='' |
| 568 | |
| 569 | ac_unique_file="ssh.c" |
| 570 | # Factoring default headers for most tests. |
| 571 | ac_includes_default="\ |
| 572 | #include <stdio.h> |
| 573 | #ifdef HAVE_SYS_TYPES_H |
| 574 | # include <sys/types.h> |
| 575 | #endif |
| 576 | #ifdef HAVE_SYS_STAT_H |
| 577 | # include <sys/stat.h> |
| 578 | #endif |
| 579 | #ifdef STDC_HEADERS |
| 580 | # include <stdlib.h> |
| 581 | # include <stddef.h> |
| 582 | #else |
| 583 | # ifdef HAVE_STDLIB_H |
| 584 | # include <stdlib.h> |
| 585 | # endif |
| 586 | #endif |
| 587 | #ifdef HAVE_STRING_H |
| 588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 589 | # include <memory.h> |
| 590 | # endif |
| 591 | # include <string.h> |
| 592 | #endif |
| 593 | #ifdef HAVE_STRINGS_H |
| 594 | # include <strings.h> |
| 595 | #endif |
| 596 | #ifdef HAVE_INTTYPES_H |
| 597 | # include <inttypes.h> |
| 598 | #endif |
| 599 | #ifdef HAVE_STDINT_H |
| 600 | # include <stdint.h> |
| 601 | #endif |
| 602 | #ifdef HAVE_UNISTD_H |
| 603 | # include <unistd.h> |
| 604 | #endif" |
| 605 | |
| 606 | ac_subst_vars='LTLIBOBJS |
| 607 | LIBOBJS |
| 608 | TEST_SSH_IPV6 |
| 609 | piddir |
| 610 | user_path |
| 611 | mansubdir |
| 612 | MANTYPE |
| 613 | XAUTH_PATH |
| 614 | STRIP_OPT |
| 615 | xauth_path |
| 616 | PRIVSEP_PATH |
| 617 | KRB5CONF |
| 618 | SSHDLIBS |
| 619 | SSHLIBS |
| 620 | SSH_PRIVSEP_USER |
| 621 | COMMENT_OUT_ECC |
| 622 | TEST_SSH_ECC |
| 623 | TEST_SSH_SHA256 |
| 624 | LIBEDIT |
| 625 | PKGCONFIG |
| 626 | LD |
| 627 | PATH_PASSWD_PROG |
| 628 | LOGIN_PROGRAM_FALLBACK |
| 629 | STARTUP_SCRIPT_SHELL |
| 630 | MAKE_PACKAGE_SUPPORTED |
| 631 | PATH_USERADD_PROG |
| 632 | PATH_GROUPADD_PROG |
| 633 | MANFMT |
| 634 | TEST_SHELL |
| 635 | MANDOC |
| 636 | NROFF |
| 637 | GROFF |
| 638 | SH |
| 639 | TEST_MINUS_S_SH |
| 640 | ENT |
| 641 | SED |
| 642 | PERL |
| 643 | KILL |
| 644 | CAT |
| 645 | AR |
| 646 | INSTALL_DATA |
| 647 | INSTALL_SCRIPT |
| 648 | INSTALL_PROGRAM |
| 649 | RANLIB |
| 650 | AWK |
| 651 | EGREP |
| 652 | GREP |
| 653 | CPP |
| 654 | host_os |
| 655 | host_vendor |
| 656 | host_cpu |
| 657 | host |
| 658 | build_os |
| 659 | build_vendor |
| 660 | build_cpu |
| 661 | build |
| 662 | OBJEXT |
| 663 | EXEEXT |
| 664 | ac_ct_CC |
| 665 | CPPFLAGS |
| 666 | LDFLAGS |
| 667 | CFLAGS |
| 668 | CC |
| 669 | target_alias |
| 670 | host_alias |
| 671 | build_alias |
| 672 | LIBS |
| 673 | ECHO_T |
| 674 | ECHO_N |
| 675 | ECHO_C |
| 676 | DEFS |
| 677 | mandir |
| 678 | localedir |
| 679 | libdir |
| 680 | psdir |
| 681 | pdfdir |
| 682 | dvidir |
| 683 | htmldir |
| 684 | infodir |
| 685 | docdir |
| 686 | oldincludedir |
| 687 | includedir |
| 688 | localstatedir |
| 689 | sharedstatedir |
| 690 | sysconfdir |
| 691 | datadir |
| 692 | datarootdir |
| 693 | libexecdir |
| 694 | sbindir |
| 695 | bindir |
| 696 | program_transform_name |
| 697 | prefix |
| 698 | exec_prefix |
| 699 | PACKAGE_URL |
| 700 | PACKAGE_BUGREPORT |
| 701 | PACKAGE_STRING |
| 702 | PACKAGE_VERSION |
| 703 | PACKAGE_TARNAME |
| 704 | PACKAGE_NAME |
| 705 | PATH_SEPARATOR |
| 706 | SHELL' |
| 707 | ac_subst_files='' |
| 708 | ac_user_opts=' |
| 709 | enable_option_checking |
| 710 | enable_largefile |
| 711 | with_stackprotect |
| 712 | with_rpath |
| 713 | with_cflags |
| 714 | with_cppflags |
| 715 | with_ldflags |
| 716 | with_libs |
| 717 | with_Werror |
| 718 | with_solaris_contracts |
| 719 | with_solaris_projects |
| 720 | with_osfsia |
| 721 | with_zlib |
| 722 | with_zlib_version_check |
| 723 | with_skey |
| 724 | with_tcp_wrappers |
| 725 | with_libedit |
| 726 | with_audit |
| 727 | with_ssl_dir |
| 728 | with_openssl_header_check |
| 729 | with_ssl_engine |
| 730 | with_prngd_port |
| 731 | with_prngd_socket |
| 732 | with_pam |
| 733 | with_privsep_user |
| 734 | with_sandbox |
| 735 | with_selinux |
| 736 | with_kerberos5 |
| 737 | with_privsep_path |
| 738 | with_xauth |
| 739 | enable_strip |
| 740 | with_maildir |
| 741 | with_mantype |
| 742 | with_md5_passwords |
| 743 | with_shadow |
| 744 | with_ipaddr_display |
| 745 | enable_etc_default_login |
| 746 | with_default_path |
| 747 | with_superuser_path |
| 748 | with_4in6 |
| 749 | with_bsd_auth |
| 750 | with_pid_dir |
| 751 | enable_lastlog |
| 752 | enable_utmp |
| 753 | enable_utmpx |
| 754 | enable_wtmp |
| 755 | enable_wtmpx |
| 756 | enable_libutil |
| 757 | enable_pututline |
| 758 | enable_pututxline |
| 759 | with_lastlog |
| 760 | ' |
| 761 | ac_precious_vars='build_alias |
| 762 | host_alias |
| 763 | target_alias |
| 764 | CC |
| 765 | CFLAGS |
| 766 | LDFLAGS |
| 767 | LIBS |
| 768 | CPPFLAGS |
| 769 | CPP' |
| 770 | |
| 771 | |
| 772 | # Initialize some variables set by options. |
| 773 | ac_init_help= |
| 774 | ac_init_version=false |
| 775 | ac_unrecognized_opts= |
| 776 | ac_unrecognized_sep= |
| 777 | # The variables have the same names as the options, with |
| 778 | # dashes changed to underlines. |
| 779 | cache_file=/dev/null |
| 780 | exec_prefix=NONE |
| 781 | no_create= |
| 782 | no_recursion= |
| 783 | prefix=NONE |
| 784 | program_prefix=NONE |
| 785 | program_suffix=NONE |
| 786 | program_transform_name=s,x,x, |
| 787 | silent= |
| 788 | site= |
| 789 | srcdir= |
| 790 | verbose= |
| 791 | x_includes=NONE |
| 792 | x_libraries=NONE |
| 793 | |
| 794 | # Installation directory options. |
| 795 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 796 | # and all the variables that are supposed to be based on exec_prefix |
| 797 | # by default will actually change. |
| 798 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 799 | # (The list follows the same order as the GNU Coding Standards.) |
| 800 | bindir='${exec_prefix}/bin' |
| 801 | sbindir='${exec_prefix}/sbin' |
| 802 | libexecdir='${exec_prefix}/libexec' |
| 803 | datarootdir='${prefix}/share' |
| 804 | datadir='${datarootdir}' |
| 805 | sysconfdir='${prefix}/etc' |
| 806 | sharedstatedir='${prefix}/com' |
| 807 | localstatedir='${prefix}/var' |
| 808 | includedir='${prefix}/include' |
| 809 | oldincludedir='/usr/include' |
| 810 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 811 | infodir='${datarootdir}/info' |
| 812 | htmldir='${docdir}' |
| 813 | dvidir='${docdir}' |
| 814 | pdfdir='${docdir}' |
| 815 | psdir='${docdir}' |
| 816 | libdir='${exec_prefix}/lib' |
| 817 | localedir='${datarootdir}/locale' |
| 818 | mandir='${datarootdir}/man' |
| 819 | |
| 820 | ac_prev= |
| 821 | ac_dashdash= |
| 822 | for ac_option |
| 823 | do |
| 824 | # If the previous option needs an argument, assign it. |
| 825 | if test -n "$ac_prev"; then |
| 826 | eval $ac_prev=\$ac_option |
| 827 | ac_prev= |
| 828 | continue |
| 829 | fi |
| 830 | |
| 831 | case $ac_option in |
| 832 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 833 | *=) ac_optarg= ;; |
| 834 | *) ac_optarg=yes ;; |
| 835 | esac |
| 836 | |
| 837 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 838 | |
| 839 | case $ac_dashdash$ac_option in |
| 840 | --) |
| 841 | ac_dashdash=yes ;; |
| 842 | |
| 843 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 844 | ac_prev=bindir ;; |
| 845 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 846 | bindir=$ac_optarg ;; |
| 847 | |
| 848 | -build | --build | --buil | --bui | --bu) |
| 849 | ac_prev=build_alias ;; |
| 850 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 851 | build_alias=$ac_optarg ;; |
| 852 | |
| 853 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 854 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 855 | ac_prev=cache_file ;; |
| 856 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 857 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 858 | cache_file=$ac_optarg ;; |
| 859 | |
| 860 | --config-cache | -C) |
| 861 | cache_file=config.cache ;; |
| 862 | |
| 863 | -datadir | --datadir | --datadi | --datad) |
| 864 | ac_prev=datadir ;; |
| 865 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 866 | datadir=$ac_optarg ;; |
| 867 | |
| 868 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 869 | | --dataroo | --dataro | --datar) |
| 870 | ac_prev=datarootdir ;; |
| 871 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 872 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 873 | datarootdir=$ac_optarg ;; |
| 874 | |
| 875 | -disable-* | --disable-*) |
| 876 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 877 | # Reject names that are not valid shell variable names. |
| 878 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 879 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 880 | ac_useropt_orig=$ac_useropt |
| 881 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 882 | case $ac_user_opts in |
| 883 | *" |
| 884 | "enable_$ac_useropt" |
| 885 | "*) ;; |
| 886 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 887 | ac_unrecognized_sep=', ';; |
| 888 | esac |
| 889 | eval enable_$ac_useropt=no ;; |
| 890 | |
| 891 | -docdir | --docdir | --docdi | --doc | --do) |
| 892 | ac_prev=docdir ;; |
| 893 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 894 | docdir=$ac_optarg ;; |
| 895 | |
| 896 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 897 | ac_prev=dvidir ;; |
| 898 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 899 | dvidir=$ac_optarg ;; |
| 900 | |
| 901 | -enable-* | --enable-*) |
| 902 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 903 | # Reject names that are not valid shell variable names. |
| 904 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 905 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 906 | ac_useropt_orig=$ac_useropt |
| 907 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 908 | case $ac_user_opts in |
| 909 | *" |
| 910 | "enable_$ac_useropt" |
| 911 | "*) ;; |
| 912 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 913 | ac_unrecognized_sep=', ';; |
| 914 | esac |
| 915 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 916 | |
| 917 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 918 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 919 | | --exec | --exe | --ex) |
| 920 | ac_prev=exec_prefix ;; |
| 921 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 922 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 923 | | --exec=* | --exe=* | --ex=*) |
| 924 | exec_prefix=$ac_optarg ;; |
| 925 | |
| 926 | -gas | --gas | --ga | --g) |
| 927 | # Obsolete; use --with-gas. |
| 928 | with_gas=yes ;; |
| 929 | |
| 930 | -help | --help | --hel | --he | -h) |
| 931 | ac_init_help=long ;; |
| 932 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 933 | ac_init_help=recursive ;; |
| 934 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 935 | ac_init_help=short ;; |
| 936 | |
| 937 | -host | --host | --hos | --ho) |
| 938 | ac_prev=host_alias ;; |
| 939 | -host=* | --host=* | --hos=* | --ho=*) |
| 940 | host_alias=$ac_optarg ;; |
| 941 | |
| 942 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 943 | ac_prev=htmldir ;; |
| 944 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 945 | | --ht=*) |
| 946 | htmldir=$ac_optarg ;; |
| 947 | |
| 948 | -includedir | --includedir | --includedi | --included | --include \ |
| 949 | | --includ | --inclu | --incl | --inc) |
| 950 | ac_prev=includedir ;; |
| 951 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 952 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 953 | includedir=$ac_optarg ;; |
| 954 | |
| 955 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 956 | ac_prev=infodir ;; |
| 957 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 958 | infodir=$ac_optarg ;; |
| 959 | |
| 960 | -libdir | --libdir | --libdi | --libd) |
| 961 | ac_prev=libdir ;; |
| 962 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 963 | libdir=$ac_optarg ;; |
| 964 | |
| 965 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 966 | | --libexe | --libex | --libe) |
| 967 | ac_prev=libexecdir ;; |
| 968 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 969 | | --libexe=* | --libex=* | --libe=*) |
| 970 | libexecdir=$ac_optarg ;; |
| 971 | |
| 972 | -localedir | --localedir | --localedi | --localed | --locale) |
| 973 | ac_prev=localedir ;; |
| 974 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 975 | localedir=$ac_optarg ;; |
| 976 | |
| 977 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 978 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 979 | ac_prev=localstatedir ;; |
| 980 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 981 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 982 | localstatedir=$ac_optarg ;; |
| 983 | |
| 984 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 985 | ac_prev=mandir ;; |
| 986 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 987 | mandir=$ac_optarg ;; |
| 988 | |
| 989 | -nfp | --nfp | --nf) |
| 990 | # Obsolete; use --without-fp. |
| 991 | with_fp=no ;; |
| 992 | |
| 993 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 994 | | --no-cr | --no-c | -n) |
| 995 | no_create=yes ;; |
| 996 | |
| 997 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 998 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 999 | no_recursion=yes ;; |
| 1000 | |
| 1001 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1002 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1003 | | --oldin | --oldi | --old | --ol | --o) |
| 1004 | ac_prev=oldincludedir ;; |
| 1005 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1006 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1007 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1008 | oldincludedir=$ac_optarg ;; |
| 1009 | |
| 1010 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1011 | ac_prev=prefix ;; |
| 1012 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1013 | prefix=$ac_optarg ;; |
| 1014 | |
| 1015 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1016 | | --program-pre | --program-pr | --program-p) |
| 1017 | ac_prev=program_prefix ;; |
| 1018 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1019 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1020 | program_prefix=$ac_optarg ;; |
| 1021 | |
| 1022 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1023 | | --program-suf | --program-su | --program-s) |
| 1024 | ac_prev=program_suffix ;; |
| 1025 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1026 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1027 | program_suffix=$ac_optarg ;; |
| 1028 | |
| 1029 | -program-transform-name | --program-transform-name \ |
| 1030 | | --program-transform-nam | --program-transform-na \ |
| 1031 | | --program-transform-n | --program-transform- \ |
| 1032 | | --program-transform | --program-transfor \ |
| 1033 | | --program-transfo | --program-transf \ |
| 1034 | | --program-trans | --program-tran \ |
| 1035 | | --progr-tra | --program-tr | --program-t) |
| 1036 | ac_prev=program_transform_name ;; |
| 1037 | -program-transform-name=* | --program-transform-name=* \ |
| 1038 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1039 | | --program-transform-n=* | --program-transform-=* \ |
| 1040 | | --program-transform=* | --program-transfor=* \ |
| 1041 | | --program-transfo=* | --program-transf=* \ |
| 1042 | | --program-trans=* | --program-tran=* \ |
| 1043 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1044 | program_transform_name=$ac_optarg ;; |
| 1045 | |
| 1046 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1047 | ac_prev=pdfdir ;; |
| 1048 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1049 | pdfdir=$ac_optarg ;; |
| 1050 | |
| 1051 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1052 | ac_prev=psdir ;; |
| 1053 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1054 | psdir=$ac_optarg ;; |
| 1055 | |
| 1056 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1057 | | -silent | --silent | --silen | --sile | --sil) |
| 1058 | silent=yes ;; |
| 1059 | |
| 1060 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1061 | ac_prev=sbindir ;; |
| 1062 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1063 | | --sbi=* | --sb=*) |
| 1064 | sbindir=$ac_optarg ;; |
| 1065 | |
| 1066 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1067 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1068 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1069 | | --sha | --sh) |
| 1070 | ac_prev=sharedstatedir ;; |
| 1071 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1072 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1073 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1074 | | --sha=* | --sh=*) |
| 1075 | sharedstatedir=$ac_optarg ;; |
| 1076 | |
| 1077 | -site | --site | --sit) |
| 1078 | ac_prev=site ;; |
| 1079 | -site=* | --site=* | --sit=*) |
| 1080 | site=$ac_optarg ;; |
| 1081 | |
| 1082 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1083 | ac_prev=srcdir ;; |
| 1084 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1085 | srcdir=$ac_optarg ;; |
| 1086 | |
| 1087 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1088 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1089 | ac_prev=sysconfdir ;; |
| 1090 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1091 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1092 | sysconfdir=$ac_optarg ;; |
| 1093 | |
| 1094 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1095 | ac_prev=target_alias ;; |
| 1096 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1097 | target_alias=$ac_optarg ;; |
| 1098 | |
| 1099 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1100 | verbose=yes ;; |
| 1101 | |
| 1102 | -version | --version | --versio | --versi | --vers | -V) |
| 1103 | ac_init_version=: ;; |
| 1104 | |
| 1105 | -with-* | --with-*) |
| 1106 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1107 | # Reject names that are not valid shell variable names. |
| 1108 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1109 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1110 | ac_useropt_orig=$ac_useropt |
| 1111 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1112 | case $ac_user_opts in |
| 1113 | *" |
| 1114 | "with_$ac_useropt" |
| 1115 | "*) ;; |
| 1116 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1117 | ac_unrecognized_sep=', ';; |
| 1118 | esac |
| 1119 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1120 | |
| 1121 | -without-* | --without-*) |
| 1122 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1123 | # Reject names that are not valid shell variable names. |
| 1124 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1125 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1126 | ac_useropt_orig=$ac_useropt |
| 1127 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1128 | case $ac_user_opts in |
| 1129 | *" |
| 1130 | "with_$ac_useropt" |
| 1131 | "*) ;; |
| 1132 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1133 | ac_unrecognized_sep=', ';; |
| 1134 | esac |
| 1135 | eval with_$ac_useropt=no ;; |
| 1136 | |
| 1137 | --x) |
| 1138 | # Obsolete; use --with-x. |
| 1139 | with_x=yes ;; |
| 1140 | |
| 1141 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1142 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1143 | ac_prev=x_includes ;; |
| 1144 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1145 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1146 | x_includes=$ac_optarg ;; |
| 1147 | |
| 1148 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1149 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1150 | ac_prev=x_libraries ;; |
| 1151 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1152 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1153 | x_libraries=$ac_optarg ;; |
| 1154 | |
| 1155 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1156 | Try \`$0 --help' for more information" |
| 1157 | ;; |
| 1158 | |
| 1159 | *=*) |
| 1160 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1161 | # Reject names that are not valid shell variable names. |
| 1162 | case $ac_envvar in #( |
| 1163 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1164 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1165 | esac |
| 1166 | eval $ac_envvar=\$ac_optarg |
| 1167 | export $ac_envvar ;; |
| 1168 | |
| 1169 | *) |
| 1170 | # FIXME: should be removed in autoconf 3.0. |
| 1171 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1172 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1173 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1174 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1175 | ;; |
| 1176 | |
| 1177 | esac |
| 1178 | done |
| 1179 | |
| 1180 | if test -n "$ac_prev"; then |
| 1181 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1182 | as_fn_error $? "missing argument to $ac_option" |
| 1183 | fi |
| 1184 | |
| 1185 | if test -n "$ac_unrecognized_opts"; then |
| 1186 | case $enable_option_checking in |
| 1187 | no) ;; |
| 1188 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1189 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1190 | esac |
| 1191 | fi |
| 1192 | |
| 1193 | # Check all directory arguments for consistency. |
| 1194 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1195 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1196 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1197 | libdir localedir mandir |
| 1198 | do |
| 1199 | eval ac_val=\$$ac_var |
| 1200 | # Remove trailing slashes. |
| 1201 | case $ac_val in |
| 1202 | */ ) |
| 1203 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1204 | eval $ac_var=\$ac_val;; |
| 1205 | esac |
| 1206 | # Be sure to have absolute directory names. |
| 1207 | case $ac_val in |
| 1208 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1209 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1210 | esac |
| 1211 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1212 | done |
| 1213 | |
| 1214 | # There might be people who depend on the old broken behavior: `$host' |
| 1215 | # used to hold the argument of --host etc. |
| 1216 | # FIXME: To remove some day. |
| 1217 | build=$build_alias |
| 1218 | host=$host_alias |
| 1219 | target=$target_alias |
| 1220 | |
| 1221 | # FIXME: To remove some day. |
| 1222 | if test "x$host_alias" != x; then |
| 1223 | if test "x$build_alias" = x; then |
| 1224 | cross_compiling=maybe |
| 1225 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1226 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| 1227 | elif test "x$build_alias" != "x$host_alias"; then |
| 1228 | cross_compiling=yes |
| 1229 | fi |
| 1230 | fi |
| 1231 | |
| 1232 | ac_tool_prefix= |
| 1233 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1234 | |
| 1235 | test "$silent" = yes && exec 6>/dev/null |
| 1236 | |
| 1237 | |
| 1238 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1239 | ac_ls_di=`ls -di .` && |
| 1240 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1241 | as_fn_error $? "working directory cannot be determined" |
| 1242 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1243 | as_fn_error $? "pwd does not report name of working directory" |
| 1244 | |
| 1245 | |
| 1246 | # Find the source files, if location was not specified. |
| 1247 | if test -z "$srcdir"; then |
| 1248 | ac_srcdir_defaulted=yes |
| 1249 | # Try the directory containing this script, then the parent directory. |
| 1250 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1251 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1252 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1253 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1254 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1255 | $as_echo X"$as_myself" | |
| 1256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1257 | s//\1/ |
| 1258 | q |
| 1259 | } |
| 1260 | /^X\(\/\/\)[^/].*/{ |
| 1261 | s//\1/ |
| 1262 | q |
| 1263 | } |
| 1264 | /^X\(\/\/\)$/{ |
| 1265 | s//\1/ |
| 1266 | q |
| 1267 | } |
| 1268 | /^X\(\/\).*/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | s/.*/./; q'` |
| 1273 | srcdir=$ac_confdir |
| 1274 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1275 | srcdir=.. |
| 1276 | fi |
| 1277 | else |
| 1278 | ac_srcdir_defaulted=no |
| 1279 | fi |
| 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1281 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1282 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1283 | fi |
| 1284 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1285 | ac_abs_confdir=`( |
| 1286 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1287 | pwd)` |
| 1288 | # When building in place, set srcdir=. |
| 1289 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1290 | srcdir=. |
| 1291 | fi |
| 1292 | # Remove unnecessary trailing slashes from srcdir. |
| 1293 | # Double slashes in file names in object file debugging info |
| 1294 | # mess up M-x gdb in Emacs. |
| 1295 | case $srcdir in |
| 1296 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1297 | esac |
| 1298 | for ac_var in $ac_precious_vars; do |
| 1299 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1300 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1301 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1302 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1303 | done |
| 1304 | |
| 1305 | # |
| 1306 | # Report the --help message. |
| 1307 | # |
| 1308 | if test "$ac_init_help" = "long"; then |
| 1309 | # Omit some internal or obsolete options to make the list less imposing. |
| 1310 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1311 | cat <<_ACEOF |
| 1312 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. |
| 1313 | |
| 1314 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1315 | |
| 1316 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1317 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1318 | |
| 1319 | Defaults for the options are specified in brackets. |
| 1320 | |
| 1321 | Configuration: |
| 1322 | -h, --help display this help and exit |
| 1323 | --help=short display options specific to this package |
| 1324 | --help=recursive display the short help of all the included packages |
| 1325 | -V, --version display version information and exit |
| 1326 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1327 | --cache-file=FILE cache test results in FILE [disabled] |
| 1328 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1329 | -n, --no-create do not create output files |
| 1330 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1331 | |
| 1332 | Installation directories: |
| 1333 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1334 | [$ac_default_prefix] |
| 1335 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1336 | [PREFIX] |
| 1337 | |
| 1338 | By default, \`make install' will install all the files in |
| 1339 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1340 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1341 | for instance \`--prefix=\$HOME'. |
| 1342 | |
| 1343 | For better control, use the options below. |
| 1344 | |
| 1345 | Fine tuning of the installation directories: |
| 1346 | --bindir=DIR user executables [EPREFIX/bin] |
| 1347 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1348 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1349 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1350 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1351 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1352 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1353 | --includedir=DIR C header files [PREFIX/include] |
| 1354 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1355 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1356 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1357 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1358 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1359 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1360 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] |
| 1361 | --htmldir=DIR html documentation [DOCDIR] |
| 1362 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1363 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1364 | --psdir=DIR ps documentation [DOCDIR] |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | cat <<\_ACEOF |
| 1368 | |
| 1369 | System types: |
| 1370 | --build=BUILD configure for building on BUILD [guessed] |
| 1371 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1372 | _ACEOF |
| 1373 | fi |
| 1374 | |
| 1375 | if test -n "$ac_init_help"; then |
| 1376 | case $ac_init_help in |
| 1377 | short | recursive ) echo "Configuration of OpenSSH Portable:";; |
| 1378 | esac |
| 1379 | cat <<\_ACEOF |
| 1380 | |
| 1381 | Optional Features: |
| 1382 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1383 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1384 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1385 | --disable-largefile omit support for large files |
| 1386 | --disable-strip Disable calling strip(1) on install |
| 1387 | --disable-etc-default-login Disable using PATH from /etc/default/login no |
| 1388 | --disable-lastlog disable use of lastlog even if detected no |
| 1389 | --disable-utmp disable use of utmp even if detected no |
| 1390 | --disable-utmpx disable use of utmpx even if detected no |
| 1391 | --disable-wtmp disable use of wtmp even if detected no |
| 1392 | --disable-wtmpx disable use of wtmpx even if detected no |
| 1393 | --disable-libutil disable use of libutil (login() etc.) no |
| 1394 | --disable-pututline disable use of pututline() etc. (uwtmp) no |
| 1395 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no |
| 1396 | |
| 1397 | Optional Packages: |
| 1398 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1399 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1400 | --without-stackprotect Don't use compiler's stack protection |
| 1401 | --without-rpath Disable auto-added -R linker paths |
| 1402 | --with-cflags Specify additional flags to pass to compiler |
| 1403 | --with-cppflags Specify additional flags to pass to preprocessor |
| 1404 | --with-ldflags Specify additional flags to pass to linker |
| 1405 | --with-libs Specify additional libraries to link with |
| 1406 | --with-Werror Build main code with -Werror |
| 1407 | --with-solaris-contracts Enable Solaris process contracts (experimental) |
| 1408 | --with-solaris-projects Enable Solaris projects (experimental) |
| 1409 | --with-osfsia Enable Digital Unix SIA |
| 1410 | --with-zlib=PATH Use zlib in PATH |
| 1411 | --without-zlib-version-check Disable zlib version check |
| 1412 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) |
| 1413 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) |
| 1414 | --with-libedit[=PATH] Enable libedit support for sftp |
| 1415 | --with-audit=module Enable audit support (modules=debug,bsm,linux) |
| 1416 | --with-ssl-dir=PATH Specify path to OpenSSL installation |
| 1417 | --without-openssl-header-check Disable OpenSSL version consistency check |
| 1418 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support |
| 1419 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT |
| 1420 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) |
| 1421 | --with-pam Enable PAM support |
| 1422 | --with-privsep-user=user Specify non-privileged user for privilege separation |
| 1423 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace) |
| 1424 | --with-selinux Enable SELinux support |
| 1425 | --with-kerberos5=PATH Enable Kerberos 5 support |
| 1426 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
| 1427 | --with-xauth=PATH Specify path to xauth program |
| 1428 | --with-maildir=/path/to/mail Specify your system mail directory |
| 1429 | --with-mantype=man|cat|doc Set man page type |
| 1430 | --with-md5-passwords Enable use of MD5 passwords |
| 1431 | --without-shadow Disable shadow password support |
| 1432 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY |
| 1433 | --with-default-path= Specify default \$PATH environment for server |
| 1434 | --with-superuser-path= Specify different path for super-user |
| 1435 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses |
| 1436 | --with-bsd-auth Enable BSD auth support |
| 1437 | --with-pid-dir=PATH Specify location of ssh.pid file |
| 1438 | --with-lastlog=FILE|DIR specify lastlog location common locations |
| 1439 | |
| 1440 | Some influential environment variables: |
| 1441 | CC C compiler command |
| 1442 | CFLAGS C compiler flags |
| 1443 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1444 | nonstandard directory <lib dir> |
| 1445 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1446 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1447 | you have headers in a nonstandard directory <include dir> |
| 1448 | CPP C preprocessor |
| 1449 | |
| 1450 | Use these variables to override the choices made by `configure' or to help |
| 1451 | it to find libraries and programs with nonstandard names/locations. |
| 1452 | |
| 1453 | Report bugs to <openssh-unix-dev@mindrot.org>. |
| 1454 | _ACEOF |
| 1455 | ac_status=$? |
| 1456 | fi |
| 1457 | |
| 1458 | if test "$ac_init_help" = "recursive"; then |
| 1459 | # If there are subdirs, report their specific --help. |
| 1460 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1461 | test -d "$ac_dir" || |
| 1462 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1463 | continue |
| 1464 | ac_builddir=. |
| 1465 | |
| 1466 | case "$ac_dir" in |
| 1467 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1468 | *) |
| 1469 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1470 | # A ".." for each directory in $ac_dir_suffix. |
| 1471 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1472 | case $ac_top_builddir_sub in |
| 1473 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1474 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1475 | esac ;; |
| 1476 | esac |
| 1477 | ac_abs_top_builddir=$ac_pwd |
| 1478 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1479 | # for backward compatibility: |
| 1480 | ac_top_builddir=$ac_top_build_prefix |
| 1481 | |
| 1482 | case $srcdir in |
| 1483 | .) # We are building in place. |
| 1484 | ac_srcdir=. |
| 1485 | ac_top_srcdir=$ac_top_builddir_sub |
| 1486 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1487 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1488 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1489 | ac_top_srcdir=$srcdir |
| 1490 | ac_abs_top_srcdir=$srcdir ;; |
| 1491 | *) # Relative name. |
| 1492 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1493 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1494 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1495 | esac |
| 1496 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1497 | |
| 1498 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1499 | # Check for guested configure. |
| 1500 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1501 | echo && |
| 1502 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1503 | elif test -f "$ac_srcdir/configure"; then |
| 1504 | echo && |
| 1505 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1506 | else |
| 1507 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1508 | fi || ac_status=$? |
| 1509 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1510 | done |
| 1511 | fi |
| 1512 | |
| 1513 | test -n "$ac_init_help" && exit $ac_status |
| 1514 | if $ac_init_version; then |
| 1515 | cat <<\_ACEOF |
| 1516 | OpenSSH configure Portable |
| 1517 | generated by GNU Autoconf 2.68 |
| 1518 | |
| 1519 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 1520 | This configure script is free software; the Free Software Foundation |
| 1521 | gives unlimited permission to copy, distribute and modify it. |
| 1522 | _ACEOF |
| 1523 | exit |
| 1524 | fi |
| 1525 | |
| 1526 | ## ------------------------ ## |
| 1527 | ## Autoconf initialization. ## |
| 1528 | ## ------------------------ ## |
| 1529 | |
| 1530 | # ac_fn_c_try_compile LINENO |
| 1531 | # -------------------------- |
| 1532 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1533 | ac_fn_c_try_compile () |
| 1534 | { |
| 1535 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1536 | rm -f conftest.$ac_objext |
| 1537 | if { { ac_try="$ac_compile" |
| 1538 | case "(($ac_try" in |
| 1539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1540 | *) ac_try_echo=$ac_try;; |
| 1541 | esac |
| 1542 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1543 | $as_echo "$ac_try_echo"; } >&5 |
| 1544 | (eval "$ac_compile") 2>conftest.err |
| 1545 | ac_status=$? |
| 1546 | if test -s conftest.err; then |
| 1547 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1548 | cat conftest.er1 >&5 |
| 1549 | mv -f conftest.er1 conftest.err |
| 1550 | fi |
| 1551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1552 | test $ac_status = 0; } && { |
| 1553 | test -z "$ac_c_werror_flag" || |
| 1554 | test ! -s conftest.err |
| 1555 | } && test -s conftest.$ac_objext; then : |
| 1556 | ac_retval=0 |
| 1557 | else |
| 1558 | $as_echo "$as_me: failed program was:" >&5 |
| 1559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1560 | |
| 1561 | ac_retval=1 |
| 1562 | fi |
| 1563 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1564 | as_fn_set_status $ac_retval |
| 1565 | |
| 1566 | } # ac_fn_c_try_compile |
| 1567 | |
| 1568 | # ac_fn_c_try_run LINENO |
| 1569 | # ---------------------- |
| 1570 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1571 | # that executables *can* be run. |
| 1572 | ac_fn_c_try_run () |
| 1573 | { |
| 1574 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1575 | if { { ac_try="$ac_link" |
| 1576 | case "(($ac_try" in |
| 1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1578 | *) ac_try_echo=$ac_try;; |
| 1579 | esac |
| 1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1581 | $as_echo "$ac_try_echo"; } >&5 |
| 1582 | (eval "$ac_link") 2>&5 |
| 1583 | ac_status=$? |
| 1584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1585 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1586 | { { case "(($ac_try" in |
| 1587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1588 | *) ac_try_echo=$ac_try;; |
| 1589 | esac |
| 1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1591 | $as_echo "$ac_try_echo"; } >&5 |
| 1592 | (eval "$ac_try") 2>&5 |
| 1593 | ac_status=$? |
| 1594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1595 | test $ac_status = 0; }; }; then : |
| 1596 | ac_retval=0 |
| 1597 | else |
| 1598 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1599 | $as_echo "$as_me: failed program was:" >&5 |
| 1600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1601 | |
| 1602 | ac_retval=$ac_status |
| 1603 | fi |
| 1604 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1606 | as_fn_set_status $ac_retval |
| 1607 | |
| 1608 | } # ac_fn_c_try_run |
| 1609 | |
| 1610 | # ac_fn_c_try_cpp LINENO |
| 1611 | # ---------------------- |
| 1612 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1613 | ac_fn_c_try_cpp () |
| 1614 | { |
| 1615 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1616 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1617 | case "(($ac_try" in |
| 1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1619 | *) ac_try_echo=$ac_try;; |
| 1620 | esac |
| 1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1622 | $as_echo "$ac_try_echo"; } >&5 |
| 1623 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1624 | ac_status=$? |
| 1625 | if test -s conftest.err; then |
| 1626 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1627 | cat conftest.er1 >&5 |
| 1628 | mv -f conftest.er1 conftest.err |
| 1629 | fi |
| 1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1631 | test $ac_status = 0; } > conftest.i && { |
| 1632 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1633 | test ! -s conftest.err |
| 1634 | }; then : |
| 1635 | ac_retval=0 |
| 1636 | else |
| 1637 | $as_echo "$as_me: failed program was:" >&5 |
| 1638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1639 | |
| 1640 | ac_retval=1 |
| 1641 | fi |
| 1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1643 | as_fn_set_status $ac_retval |
| 1644 | |
| 1645 | } # ac_fn_c_try_cpp |
| 1646 | |
| 1647 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1648 | # ------------------------------------------------------- |
| 1649 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1650 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1651 | ac_fn_c_check_header_compile () |
| 1652 | { |
| 1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1655 | $as_echo_n "checking for $2... " >&6; } |
| 1656 | if eval \${$3+:} false; then : |
| 1657 | $as_echo_n "(cached) " >&6 |
| 1658 | else |
| 1659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1660 | /* end confdefs.h. */ |
| 1661 | $4 |
| 1662 | #include <$2> |
| 1663 | _ACEOF |
| 1664 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1665 | eval "$3=yes" |
| 1666 | else |
| 1667 | eval "$3=no" |
| 1668 | fi |
| 1669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1670 | fi |
| 1671 | eval ac_res=\$$3 |
| 1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1673 | $as_echo "$ac_res" >&6; } |
| 1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1675 | |
| 1676 | } # ac_fn_c_check_header_compile |
| 1677 | |
| 1678 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1679 | # --------------------------------------------- |
| 1680 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1681 | # accordingly. |
| 1682 | ac_fn_c_check_decl () |
| 1683 | { |
| 1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1685 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1686 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1688 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1689 | if eval \${$3+:} false; then : |
| 1690 | $as_echo_n "(cached) " >&6 |
| 1691 | else |
| 1692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1693 | /* end confdefs.h. */ |
| 1694 | $4 |
| 1695 | int |
| 1696 | main () |
| 1697 | { |
| 1698 | #ifndef $as_decl_name |
| 1699 | #ifdef __cplusplus |
| 1700 | (void) $as_decl_use; |
| 1701 | #else |
| 1702 | (void) $as_decl_name; |
| 1703 | #endif |
| 1704 | #endif |
| 1705 | |
| 1706 | ; |
| 1707 | return 0; |
| 1708 | } |
| 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_decl |
| 1723 | |
| 1724 | # ac_fn_c_try_link LINENO |
| 1725 | # ----------------------- |
| 1726 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1727 | ac_fn_c_try_link () |
| 1728 | { |
| 1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1731 | if { { ac_try="$ac_link" |
| 1732 | case "(($ac_try" in |
| 1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1734 | *) ac_try_echo=$ac_try;; |
| 1735 | esac |
| 1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1737 | $as_echo "$ac_try_echo"; } >&5 |
| 1738 | (eval "$ac_link") 2>conftest.err |
| 1739 | ac_status=$? |
| 1740 | if test -s conftest.err; then |
| 1741 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1742 | cat conftest.er1 >&5 |
| 1743 | mv -f conftest.er1 conftest.err |
| 1744 | fi |
| 1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1746 | test $ac_status = 0; } && { |
| 1747 | test -z "$ac_c_werror_flag" || |
| 1748 | test ! -s conftest.err |
| 1749 | } && test -s conftest$ac_exeext && { |
| 1750 | test "$cross_compiling" = yes || |
| 1751 | $as_test_x conftest$ac_exeext |
| 1752 | }; then : |
| 1753 | ac_retval=0 |
| 1754 | else |
| 1755 | $as_echo "$as_me: failed program was:" >&5 |
| 1756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1757 | |
| 1758 | ac_retval=1 |
| 1759 | fi |
| 1760 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1761 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1762 | # interfere with the next link command; also delete a directory that is |
| 1763 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1764 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1766 | as_fn_set_status $ac_retval |
| 1767 | |
| 1768 | } # ac_fn_c_try_link |
| 1769 | |
| 1770 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1771 | # ------------------------------------------------------- |
| 1772 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1773 | # the include files in INCLUDES and setting the cache variable VAR |
| 1774 | # accordingly. |
| 1775 | ac_fn_c_check_header_mongrel () |
| 1776 | { |
| 1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1778 | if eval \${$3+:} false; then : |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1780 | $as_echo_n "checking for $2... " >&6; } |
| 1781 | if eval \${$3+:} false; then : |
| 1782 | $as_echo_n "(cached) " >&6 |
| 1783 | fi |
| 1784 | eval ac_res=\$$3 |
| 1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1786 | $as_echo "$ac_res" >&6; } |
| 1787 | else |
| 1788 | # Is the header compilable? |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1790 | $as_echo_n "checking $2 usability... " >&6; } |
| 1791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1792 | /* end confdefs.h. */ |
| 1793 | $4 |
| 1794 | #include <$2> |
| 1795 | _ACEOF |
| 1796 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1797 | ac_header_compiler=yes |
| 1798 | else |
| 1799 | ac_header_compiler=no |
| 1800 | fi |
| 1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1803 | $as_echo "$ac_header_compiler" >&6; } |
| 1804 | |
| 1805 | # Is the header present? |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1807 | $as_echo_n "checking $2 presence... " >&6; } |
| 1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1809 | /* end confdefs.h. */ |
| 1810 | #include <$2> |
| 1811 | _ACEOF |
| 1812 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1813 | ac_header_preproc=yes |
| 1814 | else |
| 1815 | ac_header_preproc=no |
| 1816 | fi |
| 1817 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1819 | $as_echo "$ac_header_preproc" >&6; } |
| 1820 | |
| 1821 | # So? What about this header? |
| 1822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1823 | yes:no: ) |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1825 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1827 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1828 | ;; |
| 1829 | no:yes:* ) |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1831 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1833 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1835 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1837 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1839 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1840 | ( $as_echo "## ------------------------------------------- ## |
| 1841 | ## Report this to openssh-unix-dev@mindrot.org ## |
| 1842 | ## ------------------------------------------- ##" |
| 1843 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1844 | ;; |
| 1845 | esac |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1847 | $as_echo_n "checking for $2... " >&6; } |
| 1848 | if eval \${$3+:} false; then : |
| 1849 | $as_echo_n "(cached) " >&6 |
| 1850 | else |
| 1851 | eval "$3=\$ac_header_compiler" |
| 1852 | fi |
| 1853 | eval ac_res=\$$3 |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1855 | $as_echo "$ac_res" >&6; } |
| 1856 | fi |
| 1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1858 | |
| 1859 | } # ac_fn_c_check_header_mongrel |
| 1860 | |
| 1861 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1862 | # ---------------------------------- |
| 1863 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1864 | ac_fn_c_check_func () |
| 1865 | { |
| 1866 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1868 | $as_echo_n "checking for $2... " >&6; } |
| 1869 | if eval \${$3+:} false; then : |
| 1870 | $as_echo_n "(cached) " >&6 |
| 1871 | else |
| 1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1873 | /* end confdefs.h. */ |
| 1874 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1876 | #define $2 innocuous_$2 |
| 1877 | |
| 1878 | /* System header to define __stub macros and hopefully few prototypes, |
| 1879 | which can conflict with char $2 (); below. |
| 1880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1881 | <limits.h> exists even on freestanding compilers. */ |
| 1882 | |
| 1883 | #ifdef __STDC__ |
| 1884 | # include <limits.h> |
| 1885 | #else |
| 1886 | # include <assert.h> |
| 1887 | #endif |
| 1888 | |
| 1889 | #undef $2 |
| 1890 | |
| 1891 | /* Override any GCC internal prototype to avoid an error. |
| 1892 | Use char because int might match the return type of a GCC |
| 1893 | builtin and then its argument prototype would still apply. */ |
| 1894 | #ifdef __cplusplus |
| 1895 | extern "C" |
| 1896 | #endif |
| 1897 | char $2 (); |
| 1898 | /* The GNU C library defines this for functions which it implements |
| 1899 | to always fail with ENOSYS. Some functions are actually named |
| 1900 | something starting with __ and the normal name is an alias. */ |
| 1901 | #if defined __stub_$2 || defined __stub___$2 |
| 1902 | choke me |
| 1903 | #endif |
| 1904 | |
| 1905 | int |
| 1906 | main () |
| 1907 | { |
| 1908 | return $2 (); |
| 1909 | ; |
| 1910 | return 0; |
| 1911 | } |
| 1912 | _ACEOF |
| 1913 | if ac_fn_c_try_link "$LINENO"; then : |
| 1914 | eval "$3=yes" |
| 1915 | else |
| 1916 | eval "$3=no" |
| 1917 | fi |
| 1918 | rm -f core conftest.err conftest.$ac_objext \ |
| 1919 | conftest$ac_exeext conftest.$ac_ext |
| 1920 | fi |
| 1921 | eval ac_res=\$$3 |
| 1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1923 | $as_echo "$ac_res" >&6; } |
| 1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1925 | |
| 1926 | } # ac_fn_c_check_func |
| 1927 | |
| 1928 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1929 | # ------------------------------------------- |
| 1930 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1931 | # variable VAR accordingly. |
| 1932 | ac_fn_c_check_type () |
| 1933 | { |
| 1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1936 | $as_echo_n "checking for $2... " >&6; } |
| 1937 | if eval \${$3+:} false; then : |
| 1938 | $as_echo_n "(cached) " >&6 |
| 1939 | else |
| 1940 | eval "$3=no" |
| 1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1942 | /* end confdefs.h. */ |
| 1943 | $4 |
| 1944 | int |
| 1945 | main () |
| 1946 | { |
| 1947 | if (sizeof ($2)) |
| 1948 | return 0; |
| 1949 | ; |
| 1950 | return 0; |
| 1951 | } |
| 1952 | _ACEOF |
| 1953 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1955 | /* end confdefs.h. */ |
| 1956 | $4 |
| 1957 | int |
| 1958 | main () |
| 1959 | { |
| 1960 | if (sizeof (($2))) |
| 1961 | return 0; |
| 1962 | ; |
| 1963 | return 0; |
| 1964 | } |
| 1965 | _ACEOF |
| 1966 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1967 | |
| 1968 | else |
| 1969 | eval "$3=yes" |
| 1970 | fi |
| 1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1972 | fi |
| 1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1974 | fi |
| 1975 | eval ac_res=\$$3 |
| 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1977 | $as_echo "$ac_res" >&6; } |
| 1978 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1979 | |
| 1980 | } # ac_fn_c_check_type |
| 1981 | |
| 1982 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1983 | # -------------------------------------------- |
| 1984 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1985 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1986 | # computed |
| 1987 | ac_fn_c_compute_int () |
| 1988 | { |
| 1989 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1990 | if test "$cross_compiling" = yes; then |
| 1991 | # Depending upon the size, compute the lo and hi bounds. |
| 1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1993 | /* end confdefs.h. */ |
| 1994 | $4 |
| 1995 | int |
| 1996 | main () |
| 1997 | { |
| 1998 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 1999 | test_array [0] = 0 |
| 2000 | |
| 2001 | ; |
| 2002 | return 0; |
| 2003 | } |
| 2004 | _ACEOF |
| 2005 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2006 | ac_lo=0 ac_mid=0 |
| 2007 | while :; do |
| 2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2009 | /* end confdefs.h. */ |
| 2010 | $4 |
| 2011 | int |
| 2012 | main () |
| 2013 | { |
| 2014 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2015 | test_array [0] = 0 |
| 2016 | |
| 2017 | ; |
| 2018 | return 0; |
| 2019 | } |
| 2020 | _ACEOF |
| 2021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2022 | ac_hi=$ac_mid; break |
| 2023 | else |
| 2024 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2025 | if test $ac_lo -le $ac_mid; then |
| 2026 | ac_lo= ac_hi= |
| 2027 | break |
| 2028 | fi |
| 2029 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2030 | fi |
| 2031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2032 | done |
| 2033 | else |
| 2034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2035 | /* end confdefs.h. */ |
| 2036 | $4 |
| 2037 | int |
| 2038 | main () |
| 2039 | { |
| 2040 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2041 | test_array [0] = 0 |
| 2042 | |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
| 2047 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2048 | ac_hi=-1 ac_mid=-1 |
| 2049 | while :; do |
| 2050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2051 | /* end confdefs.h. */ |
| 2052 | $4 |
| 2053 | int |
| 2054 | main () |
| 2055 | { |
| 2056 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2057 | test_array [0] = 0 |
| 2058 | |
| 2059 | ; |
| 2060 | return 0; |
| 2061 | } |
| 2062 | _ACEOF |
| 2063 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2064 | ac_lo=$ac_mid; break |
| 2065 | else |
| 2066 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2067 | if test $ac_mid -le $ac_hi; then |
| 2068 | ac_lo= ac_hi= |
| 2069 | break |
| 2070 | fi |
| 2071 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2072 | fi |
| 2073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2074 | done |
| 2075 | else |
| 2076 | ac_lo= ac_hi= |
| 2077 | fi |
| 2078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2079 | fi |
| 2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2081 | # Binary search between lo and hi bounds. |
| 2082 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2083 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2085 | /* end confdefs.h. */ |
| 2086 | $4 |
| 2087 | int |
| 2088 | main () |
| 2089 | { |
| 2090 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2091 | test_array [0] = 0 |
| 2092 | |
| 2093 | ; |
| 2094 | return 0; |
| 2095 | } |
| 2096 | _ACEOF |
| 2097 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2098 | ac_hi=$ac_mid |
| 2099 | else |
| 2100 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2101 | fi |
| 2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2103 | done |
| 2104 | case $ac_lo in #(( |
| 2105 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2106 | '') ac_retval=1 ;; |
| 2107 | esac |
| 2108 | else |
| 2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2110 | /* end confdefs.h. */ |
| 2111 | $4 |
| 2112 | static long int longval () { return $2; } |
| 2113 | static unsigned long int ulongval () { return $2; } |
| 2114 | #include <stdio.h> |
| 2115 | #include <stdlib.h> |
| 2116 | int |
| 2117 | main () |
| 2118 | { |
| 2119 | |
| 2120 | FILE *f = fopen ("conftest.val", "w"); |
| 2121 | if (! f) |
| 2122 | return 1; |
| 2123 | if (($2) < 0) |
| 2124 | { |
| 2125 | long int i = longval (); |
| 2126 | if (i != ($2)) |
| 2127 | return 1; |
| 2128 | fprintf (f, "%ld", i); |
| 2129 | } |
| 2130 | else |
| 2131 | { |
| 2132 | unsigned long int i = ulongval (); |
| 2133 | if (i != ($2)) |
| 2134 | return 1; |
| 2135 | fprintf (f, "%lu", i); |
| 2136 | } |
| 2137 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2138 | on some platforms. */ |
| 2139 | return ferror (f) || fclose (f) != 0; |
| 2140 | |
| 2141 | ; |
| 2142 | return 0; |
| 2143 | } |
| 2144 | _ACEOF |
| 2145 | if ac_fn_c_try_run "$LINENO"; then : |
| 2146 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2147 | else |
| 2148 | ac_retval=1 |
| 2149 | fi |
| 2150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2151 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2152 | rm -f conftest.val |
| 2153 | |
| 2154 | fi |
| 2155 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2156 | as_fn_set_status $ac_retval |
| 2157 | |
| 2158 | } # ac_fn_c_compute_int |
| 2159 | |
| 2160 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2161 | # ---------------------------------------------------- |
| 2162 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2163 | # INCLUDES, setting cache variable VAR accordingly. |
| 2164 | ac_fn_c_check_member () |
| 2165 | { |
| 2166 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2168 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2169 | if eval \${$4+:} false; then : |
| 2170 | $as_echo_n "(cached) " >&6 |
| 2171 | else |
| 2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2173 | /* end confdefs.h. */ |
| 2174 | $5 |
| 2175 | int |
| 2176 | main () |
| 2177 | { |
| 2178 | static $2 ac_aggr; |
| 2179 | if (ac_aggr.$3) |
| 2180 | return 0; |
| 2181 | ; |
| 2182 | return 0; |
| 2183 | } |
| 2184 | _ACEOF |
| 2185 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2186 | eval "$4=yes" |
| 2187 | else |
| 2188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2189 | /* end confdefs.h. */ |
| 2190 | $5 |
| 2191 | int |
| 2192 | main () |
| 2193 | { |
| 2194 | static $2 ac_aggr; |
| 2195 | if (sizeof ac_aggr.$3) |
| 2196 | return 0; |
| 2197 | ; |
| 2198 | return 0; |
| 2199 | } |
| 2200 | _ACEOF |
| 2201 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2202 | eval "$4=yes" |
| 2203 | else |
| 2204 | eval "$4=no" |
| 2205 | fi |
| 2206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2207 | fi |
| 2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2209 | fi |
| 2210 | eval ac_res=\$$4 |
| 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2212 | $as_echo "$ac_res" >&6; } |
| 2213 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2214 | |
| 2215 | } # ac_fn_c_check_member |
| 2216 | cat >config.log <<_ACEOF |
| 2217 | This file contains any messages produced by compilers while |
| 2218 | running configure, to aid debugging if configure makes a mistake. |
| 2219 | |
| 2220 | It was created by OpenSSH $as_me Portable, which was |
| 2221 | generated by GNU Autoconf 2.68. Invocation command line was |
| 2222 | |
| 2223 | $ $0 $@ |
| 2224 | |
| 2225 | _ACEOF |
| 2226 | exec 5>>config.log |
| 2227 | { |
| 2228 | cat <<_ASUNAME |
| 2229 | ## --------- ## |
| 2230 | ## Platform. ## |
| 2231 | ## --------- ## |
| 2232 | |
| 2233 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2234 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2235 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2236 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2237 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2238 | |
| 2239 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2240 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2241 | |
| 2242 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2243 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2244 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2245 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2246 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2247 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2248 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2249 | |
| 2250 | _ASUNAME |
| 2251 | |
| 2252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2253 | for as_dir in $PATH |
| 2254 | do |
| 2255 | IFS=$as_save_IFS |
| 2256 | test -z "$as_dir" && as_dir=. |
| 2257 | $as_echo "PATH: $as_dir" |
| 2258 | done |
| 2259 | IFS=$as_save_IFS |
| 2260 | |
| 2261 | } >&5 |
| 2262 | |
| 2263 | cat >&5 <<_ACEOF |
| 2264 | |
| 2265 | |
| 2266 | ## ----------- ## |
| 2267 | ## Core tests. ## |
| 2268 | ## ----------- ## |
| 2269 | |
| 2270 | _ACEOF |
| 2271 | |
| 2272 | |
| 2273 | # Keep a trace of the command line. |
| 2274 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2275 | # Strip out --silent because we don't want to record it for future runs. |
| 2276 | # Also quote any args containing shell meta-characters. |
| 2277 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2278 | ac_configure_args= |
| 2279 | ac_configure_args0= |
| 2280 | ac_configure_args1= |
| 2281 | ac_must_keep_next=false |
| 2282 | for ac_pass in 1 2 |
| 2283 | do |
| 2284 | for ac_arg |
| 2285 | do |
| 2286 | case $ac_arg in |
| 2287 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2288 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2289 | | -silent | --silent | --silen | --sile | --sil) |
| 2290 | continue ;; |
| 2291 | *\'*) |
| 2292 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2293 | esac |
| 2294 | case $ac_pass in |
| 2295 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2296 | 2) |
| 2297 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2298 | if test $ac_must_keep_next = true; then |
| 2299 | ac_must_keep_next=false # Got value, back to normal. |
| 2300 | else |
| 2301 | case $ac_arg in |
| 2302 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2303 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2304 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2305 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2306 | case "$ac_configure_args0 " in |
| 2307 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2308 | esac |
| 2309 | ;; |
| 2310 | -* ) ac_must_keep_next=true ;; |
| 2311 | esac |
| 2312 | fi |
| 2313 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2314 | ;; |
| 2315 | esac |
| 2316 | done |
| 2317 | done |
| 2318 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2319 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2320 | |
| 2321 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2322 | # config.log. We remove comments because anyway the quotes in there |
| 2323 | # would cause problems or look ugly. |
| 2324 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2325 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2326 | trap 'exit_status=$? |
| 2327 | # Save into config.log some information that might help in debugging. |
| 2328 | { |
| 2329 | echo |
| 2330 | |
| 2331 | $as_echo "## ---------------- ## |
| 2332 | ## Cache variables. ## |
| 2333 | ## ---------------- ##" |
| 2334 | echo |
| 2335 | # The following way of writing the cache mishandles newlines in values, |
| 2336 | ( |
| 2337 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2338 | eval ac_val=\$$ac_var |
| 2339 | case $ac_val in #( |
| 2340 | *${as_nl}*) |
| 2341 | case $ac_var in #( |
| 2342 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2343 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2344 | esac |
| 2345 | case $ac_var in #( |
| 2346 | _ | IFS | as_nl) ;; #( |
| 2347 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2348 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2349 | esac ;; |
| 2350 | esac |
| 2351 | done |
| 2352 | (set) 2>&1 | |
| 2353 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2354 | *${as_nl}ac_space=\ *) |
| 2355 | sed -n \ |
| 2356 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2357 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2358 | ;; #( |
| 2359 | *) |
| 2360 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2361 | ;; |
| 2362 | esac | |
| 2363 | sort |
| 2364 | ) |
| 2365 | echo |
| 2366 | |
| 2367 | $as_echo "## ----------------- ## |
| 2368 | ## Output variables. ## |
| 2369 | ## ----------------- ##" |
| 2370 | echo |
| 2371 | for ac_var in $ac_subst_vars |
| 2372 | do |
| 2373 | eval ac_val=\$$ac_var |
| 2374 | case $ac_val in |
| 2375 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2376 | esac |
| 2377 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2378 | done | sort |
| 2379 | echo |
| 2380 | |
| 2381 | if test -n "$ac_subst_files"; then |
| 2382 | $as_echo "## ------------------- ## |
| 2383 | ## File substitutions. ## |
| 2384 | ## ------------------- ##" |
| 2385 | echo |
| 2386 | for ac_var in $ac_subst_files |
| 2387 | do |
| 2388 | eval ac_val=\$$ac_var |
| 2389 | case $ac_val in |
| 2390 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2391 | esac |
| 2392 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2393 | done | sort |
| 2394 | echo |
| 2395 | fi |
| 2396 | |
| 2397 | if test -s confdefs.h; then |
| 2398 | $as_echo "## ----------- ## |
| 2399 | ## confdefs.h. ## |
| 2400 | ## ----------- ##" |
| 2401 | echo |
| 2402 | cat confdefs.h |
| 2403 | echo |
| 2404 | fi |
| 2405 | test "$ac_signal" != 0 && |
| 2406 | $as_echo "$as_me: caught signal $ac_signal" |
| 2407 | $as_echo "$as_me: exit $exit_status" |
| 2408 | } >&5 |
| 2409 | rm -f core *.core core.conftest.* && |
| 2410 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2411 | exit $exit_status |
| 2412 | ' 0 |
| 2413 | for ac_signal in 1 2 13 15; do |
| 2414 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2415 | done |
| 2416 | ac_signal=0 |
| 2417 | |
| 2418 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2419 | rm -f -r conftest* confdefs.h |
| 2420 | |
| 2421 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2422 | |
| 2423 | # Predefined preprocessor variables. |
| 2424 | |
| 2425 | cat >>confdefs.h <<_ACEOF |
| 2426 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2427 | _ACEOF |
| 2428 | |
| 2429 | cat >>confdefs.h <<_ACEOF |
| 2430 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2431 | _ACEOF |
| 2432 | |
| 2433 | cat >>confdefs.h <<_ACEOF |
| 2434 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2435 | _ACEOF |
| 2436 | |
| 2437 | cat >>confdefs.h <<_ACEOF |
| 2438 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2439 | _ACEOF |
| 2440 | |
| 2441 | cat >>confdefs.h <<_ACEOF |
| 2442 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2443 | _ACEOF |
| 2444 | |
| 2445 | cat >>confdefs.h <<_ACEOF |
| 2446 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2447 | _ACEOF |
| 2448 | |
| 2449 | |
| 2450 | # Let the site file select an alternate cache file if it wants to. |
| 2451 | # Prefer an explicitly selected file to automatically selected ones. |
| 2452 | ac_site_file1=NONE |
| 2453 | ac_site_file2=NONE |
| 2454 | if test -n "$CONFIG_SITE"; then |
| 2455 | # We do not want a PATH search for config.site. |
| 2456 | case $CONFIG_SITE in #(( |
| 2457 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2458 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2459 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2460 | esac |
| 2461 | elif test "x$prefix" != xNONE; then |
| 2462 | ac_site_file1=$prefix/share/config.site |
| 2463 | ac_site_file2=$prefix/etc/config.site |
| 2464 | else |
| 2465 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2466 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2467 | fi |
| 2468 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2469 | do |
| 2470 | test "x$ac_site_file" = xNONE && continue |
| 2471 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2473 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2474 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2475 | . "$ac_site_file" \ |
| 2476 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2478 | as_fn_error $? "failed to load site script $ac_site_file |
| 2479 | See \`config.log' for more details" "$LINENO" 5; } |
| 2480 | fi |
| 2481 | done |
| 2482 | |
| 2483 | if test -r "$cache_file"; then |
| 2484 | # Some versions of bash will fail to source /dev/null (special files |
| 2485 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2486 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2488 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2489 | case $cache_file in |
| 2490 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2491 | *) . "./$cache_file";; |
| 2492 | esac |
| 2493 | fi |
| 2494 | else |
| 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2496 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2497 | >$cache_file |
| 2498 | fi |
| 2499 | |
| 2500 | # Check that the precious variables saved in the cache have kept the same |
| 2501 | # value. |
| 2502 | ac_cache_corrupted=false |
| 2503 | for ac_var in $ac_precious_vars; do |
| 2504 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2505 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2506 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2507 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2508 | case $ac_old_set,$ac_new_set in |
| 2509 | set,) |
| 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2511 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2512 | ac_cache_corrupted=: ;; |
| 2513 | ,set) |
| 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2515 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2516 | ac_cache_corrupted=: ;; |
| 2517 | ,);; |
| 2518 | *) |
| 2519 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2520 | # differences in whitespace do not lead to failure. |
| 2521 | ac_old_val_w=`echo x $ac_old_val` |
| 2522 | ac_new_val_w=`echo x $ac_new_val` |
| 2523 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2525 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2526 | ac_cache_corrupted=: |
| 2527 | else |
| 2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2529 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2530 | eval $ac_var=\$ac_old_val |
| 2531 | fi |
| 2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2533 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2535 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2536 | fi;; |
| 2537 | esac |
| 2538 | # Pass precious variables to config.status. |
| 2539 | if test "$ac_new_set" = set; then |
| 2540 | case $ac_new_val in |
| 2541 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2542 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2543 | esac |
| 2544 | case " $ac_configure_args " in |
| 2545 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2546 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2547 | esac |
| 2548 | fi |
| 2549 | done |
| 2550 | if $ac_cache_corrupted; then |
| 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2552 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2554 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2555 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2556 | fi |
| 2557 | ## -------------------- ## |
| 2558 | ## Main body of script. ## |
| 2559 | ## -------------------- ## |
| 2560 | |
| 2561 | ac_ext=c |
| 2562 | ac_cpp='$CPP $CPPFLAGS' |
| 2563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2566 | |
| 2567 | |
| 2568 | |
| 2569 | |
| 2570 | ac_ext=c |
| 2571 | ac_cpp='$CPP $CPPFLAGS' |
| 2572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2575 | |
| 2576 | |
| 2577 | ac_config_headers="$ac_config_headers config.h" |
| 2578 | |
| 2579 | ac_ext=c |
| 2580 | ac_cpp='$CPP $CPPFLAGS' |
| 2581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2584 | if test -n "$ac_tool_prefix"; then |
| 2585 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2586 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2588 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2589 | if ${ac_cv_prog_CC+:} false; then : |
| 2590 | $as_echo_n "(cached) " >&6 |
| 2591 | else |
| 2592 | if test -n "$CC"; then |
| 2593 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2594 | else |
| 2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2596 | for as_dir in $PATH |
| 2597 | do |
| 2598 | IFS=$as_save_IFS |
| 2599 | test -z "$as_dir" && as_dir=. |
| 2600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2602 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2604 | break 2 |
| 2605 | fi |
| 2606 | done |
| 2607 | done |
| 2608 | IFS=$as_save_IFS |
| 2609 | |
| 2610 | fi |
| 2611 | fi |
| 2612 | CC=$ac_cv_prog_CC |
| 2613 | if test -n "$CC"; then |
| 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2615 | $as_echo "$CC" >&6; } |
| 2616 | else |
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2618 | $as_echo "no" >&6; } |
| 2619 | fi |
| 2620 | |
| 2621 | |
| 2622 | fi |
| 2623 | if test -z "$ac_cv_prog_CC"; then |
| 2624 | ac_ct_CC=$CC |
| 2625 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2626 | set dummy gcc; ac_word=$2 |
| 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2628 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2629 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2630 | $as_echo_n "(cached) " >&6 |
| 2631 | else |
| 2632 | if test -n "$ac_ct_CC"; then |
| 2633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2634 | else |
| 2635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2636 | for as_dir in $PATH |
| 2637 | do |
| 2638 | IFS=$as_save_IFS |
| 2639 | test -z "$as_dir" && as_dir=. |
| 2640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2642 | ac_cv_prog_ac_ct_CC="gcc" |
| 2643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2644 | break 2 |
| 2645 | fi |
| 2646 | done |
| 2647 | done |
| 2648 | IFS=$as_save_IFS |
| 2649 | |
| 2650 | fi |
| 2651 | fi |
| 2652 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2653 | if test -n "$ac_ct_CC"; then |
| 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2655 | $as_echo "$ac_ct_CC" >&6; } |
| 2656 | else |
| 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2658 | $as_echo "no" >&6; } |
| 2659 | fi |
| 2660 | |
| 2661 | if test "x$ac_ct_CC" = x; then |
| 2662 | CC="" |
| 2663 | else |
| 2664 | case $cross_compiling:$ac_tool_warned in |
| 2665 | yes:) |
| 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2667 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2668 | ac_tool_warned=yes ;; |
| 2669 | esac |
| 2670 | CC=$ac_ct_CC |
| 2671 | fi |
| 2672 | else |
| 2673 | CC="$ac_cv_prog_CC" |
| 2674 | fi |
| 2675 | |
| 2676 | if test -z "$CC"; then |
| 2677 | if test -n "$ac_tool_prefix"; then |
| 2678 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2679 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2681 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2682 | if ${ac_cv_prog_CC+:} false; then : |
| 2683 | $as_echo_n "(cached) " >&6 |
| 2684 | else |
| 2685 | if test -n "$CC"; then |
| 2686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2687 | else |
| 2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2689 | for as_dir in $PATH |
| 2690 | do |
| 2691 | IFS=$as_save_IFS |
| 2692 | test -z "$as_dir" && as_dir=. |
| 2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2695 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2697 | break 2 |
| 2698 | fi |
| 2699 | done |
| 2700 | done |
| 2701 | IFS=$as_save_IFS |
| 2702 | |
| 2703 | fi |
| 2704 | fi |
| 2705 | CC=$ac_cv_prog_CC |
| 2706 | if test -n "$CC"; then |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2708 | $as_echo "$CC" >&6; } |
| 2709 | else |
| 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2711 | $as_echo "no" >&6; } |
| 2712 | fi |
| 2713 | |
| 2714 | |
| 2715 | fi |
| 2716 | fi |
| 2717 | if test -z "$CC"; then |
| 2718 | # Extract the first word of "cc", so it can be a program name with args. |
| 2719 | set dummy cc; ac_word=$2 |
| 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2721 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2722 | if ${ac_cv_prog_CC+:} false; then : |
| 2723 | $as_echo_n "(cached) " >&6 |
| 2724 | else |
| 2725 | if test -n "$CC"; then |
| 2726 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2727 | else |
| 2728 | ac_prog_rejected=no |
| 2729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2730 | for as_dir in $PATH |
| 2731 | do |
| 2732 | IFS=$as_save_IFS |
| 2733 | test -z "$as_dir" && as_dir=. |
| 2734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2736 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2737 | ac_prog_rejected=yes |
| 2738 | continue |
| 2739 | fi |
| 2740 | ac_cv_prog_CC="cc" |
| 2741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2742 | break 2 |
| 2743 | fi |
| 2744 | done |
| 2745 | done |
| 2746 | IFS=$as_save_IFS |
| 2747 | |
| 2748 | if test $ac_prog_rejected = yes; then |
| 2749 | # We found a bogon in the path, so make sure we never use it. |
| 2750 | set dummy $ac_cv_prog_CC |
| 2751 | shift |
| 2752 | if test $# != 0; then |
| 2753 | # We chose a different compiler from the bogus one. |
| 2754 | # However, it has the same basename, so the bogon will be chosen |
| 2755 | # first if we set CC to just the basename; use the full file name. |
| 2756 | shift |
| 2757 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2758 | fi |
| 2759 | fi |
| 2760 | fi |
| 2761 | fi |
| 2762 | CC=$ac_cv_prog_CC |
| 2763 | if test -n "$CC"; then |
| 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2765 | $as_echo "$CC" >&6; } |
| 2766 | else |
| 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2768 | $as_echo "no" >&6; } |
| 2769 | fi |
| 2770 | |
| 2771 | |
| 2772 | fi |
| 2773 | if test -z "$CC"; then |
| 2774 | if test -n "$ac_tool_prefix"; then |
| 2775 | for ac_prog in cl.exe |
| 2776 | do |
| 2777 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2778 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2780 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2781 | if ${ac_cv_prog_CC+:} false; then : |
| 2782 | $as_echo_n "(cached) " >&6 |
| 2783 | else |
| 2784 | if test -n "$CC"; then |
| 2785 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2786 | else |
| 2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2788 | for as_dir in $PATH |
| 2789 | do |
| 2790 | IFS=$as_save_IFS |
| 2791 | test -z "$as_dir" && as_dir=. |
| 2792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2794 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2796 | break 2 |
| 2797 | fi |
| 2798 | done |
| 2799 | done |
| 2800 | IFS=$as_save_IFS |
| 2801 | |
| 2802 | fi |
| 2803 | fi |
| 2804 | CC=$ac_cv_prog_CC |
| 2805 | if test -n "$CC"; then |
| 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2807 | $as_echo "$CC" >&6; } |
| 2808 | else |
| 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2810 | $as_echo "no" >&6; } |
| 2811 | fi |
| 2812 | |
| 2813 | |
| 2814 | test -n "$CC" && break |
| 2815 | done |
| 2816 | fi |
| 2817 | if test -z "$CC"; then |
| 2818 | ac_ct_CC=$CC |
| 2819 | for ac_prog in cl.exe |
| 2820 | do |
| 2821 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2822 | set dummy $ac_prog; ac_word=$2 |
| 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2824 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2825 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2826 | $as_echo_n "(cached) " >&6 |
| 2827 | else |
| 2828 | if test -n "$ac_ct_CC"; then |
| 2829 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2830 | else |
| 2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2832 | for as_dir in $PATH |
| 2833 | do |
| 2834 | IFS=$as_save_IFS |
| 2835 | test -z "$as_dir" && as_dir=. |
| 2836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2838 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2840 | break 2 |
| 2841 | fi |
| 2842 | done |
| 2843 | done |
| 2844 | IFS=$as_save_IFS |
| 2845 | |
| 2846 | fi |
| 2847 | fi |
| 2848 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2849 | if test -n "$ac_ct_CC"; then |
| 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2851 | $as_echo "$ac_ct_CC" >&6; } |
| 2852 | else |
| 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2854 | $as_echo "no" >&6; } |
| 2855 | fi |
| 2856 | |
| 2857 | |
| 2858 | test -n "$ac_ct_CC" && break |
| 2859 | done |
| 2860 | |
| 2861 | if test "x$ac_ct_CC" = x; then |
| 2862 | CC="" |
| 2863 | else |
| 2864 | case $cross_compiling:$ac_tool_warned in |
| 2865 | yes:) |
| 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2868 | ac_tool_warned=yes ;; |
| 2869 | esac |
| 2870 | CC=$ac_ct_CC |
| 2871 | fi |
| 2872 | fi |
| 2873 | |
| 2874 | fi |
| 2875 | |
| 2876 | |
| 2877 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2878 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2879 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2880 | See \`config.log' for more details" "$LINENO" 5; } |
| 2881 | |
| 2882 | # Provide some information about the compiler. |
| 2883 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2884 | set X $ac_compile |
| 2885 | ac_compiler=$2 |
| 2886 | for ac_option in --version -v -V -qversion; do |
| 2887 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2888 | case "(($ac_try" in |
| 2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2890 | *) ac_try_echo=$ac_try;; |
| 2891 | esac |
| 2892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2893 | $as_echo "$ac_try_echo"; } >&5 |
| 2894 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2895 | ac_status=$? |
| 2896 | if test -s conftest.err; then |
| 2897 | sed '10a\ |
| 2898 | ... rest of stderr output deleted ... |
| 2899 | 10q' conftest.err >conftest.er1 |
| 2900 | cat conftest.er1 >&5 |
| 2901 | fi |
| 2902 | rm -f conftest.er1 conftest.err |
| 2903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2904 | test $ac_status = 0; } |
| 2905 | done |
| 2906 | |
| 2907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2908 | /* end confdefs.h. */ |
| 2909 | |
| 2910 | int |
| 2911 | main () |
| 2912 | { |
| 2913 | |
| 2914 | ; |
| 2915 | return 0; |
| 2916 | } |
| 2917 | _ACEOF |
| 2918 | ac_clean_files_save=$ac_clean_files |
| 2919 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2920 | # Try to create an executable without -o first, disregard a.out. |
| 2921 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2922 | # of exeext. |
| 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2924 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2925 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2926 | |
| 2927 | # The possible output files: |
| 2928 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2929 | |
| 2930 | ac_rmfiles= |
| 2931 | for ac_file in $ac_files |
| 2932 | do |
| 2933 | case $ac_file in |
| 2934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2935 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2936 | esac |
| 2937 | done |
| 2938 | rm -f $ac_rmfiles |
| 2939 | |
| 2940 | if { { ac_try="$ac_link_default" |
| 2941 | case "(($ac_try" in |
| 2942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2943 | *) ac_try_echo=$ac_try;; |
| 2944 | esac |
| 2945 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2946 | $as_echo "$ac_try_echo"; } >&5 |
| 2947 | (eval "$ac_link_default") 2>&5 |
| 2948 | ac_status=$? |
| 2949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2950 | test $ac_status = 0; }; then : |
| 2951 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2952 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2953 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2954 | # so that the user can short-circuit this test for compilers unknown to |
| 2955 | # Autoconf. |
| 2956 | for ac_file in $ac_files '' |
| 2957 | do |
| 2958 | test -f "$ac_file" || continue |
| 2959 | case $ac_file in |
| 2960 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2961 | ;; |
| 2962 | [ab].out ) |
| 2963 | # We found the default executable, but exeext='' is most |
| 2964 | # certainly right. |
| 2965 | break;; |
| 2966 | *.* ) |
| 2967 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2968 | then :; else |
| 2969 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2970 | fi |
| 2971 | # We set ac_cv_exeext here because the later test for it is not |
| 2972 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2973 | # argument, so we may need to know it at that point already. |
| 2974 | # Even if this section looks crufty: it has the advantage of |
| 2975 | # actually working. |
| 2976 | break;; |
| 2977 | * ) |
| 2978 | break;; |
| 2979 | esac |
| 2980 | done |
| 2981 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2982 | |
| 2983 | else |
| 2984 | ac_file='' |
| 2985 | fi |
| 2986 | if test -z "$ac_file"; then : |
| 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2988 | $as_echo "no" >&6; } |
| 2989 | $as_echo "$as_me: failed program was:" >&5 |
| 2990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2991 | |
| 2992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2994 | as_fn_error 77 "C compiler cannot create executables |
| 2995 | See \`config.log' for more details" "$LINENO" 5; } |
| 2996 | else |
| 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2998 | $as_echo "yes" >&6; } |
| 2999 | fi |
| 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3001 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3003 | $as_echo "$ac_file" >&6; } |
| 3004 | ac_exeext=$ac_cv_exeext |
| 3005 | |
| 3006 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3007 | ac_clean_files=$ac_clean_files_save |
| 3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3009 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3010 | if { { ac_try="$ac_link" |
| 3011 | case "(($ac_try" in |
| 3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3013 | *) ac_try_echo=$ac_try;; |
| 3014 | esac |
| 3015 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3016 | $as_echo "$ac_try_echo"; } >&5 |
| 3017 | (eval "$ac_link") 2>&5 |
| 3018 | ac_status=$? |
| 3019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3020 | test $ac_status = 0; }; then : |
| 3021 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3022 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3023 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3024 | # `rm'. |
| 3025 | for ac_file in conftest.exe conftest conftest.*; do |
| 3026 | test -f "$ac_file" || continue |
| 3027 | case $ac_file in |
| 3028 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3029 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3030 | break;; |
| 3031 | * ) break;; |
| 3032 | esac |
| 3033 | done |
| 3034 | else |
| 3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3037 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3038 | See \`config.log' for more details" "$LINENO" 5; } |
| 3039 | fi |
| 3040 | rm -f conftest conftest$ac_cv_exeext |
| 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3042 | $as_echo "$ac_cv_exeext" >&6; } |
| 3043 | |
| 3044 | rm -f conftest.$ac_ext |
| 3045 | EXEEXT=$ac_cv_exeext |
| 3046 | ac_exeext=$EXEEXT |
| 3047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3048 | /* end confdefs.h. */ |
| 3049 | #include <stdio.h> |
| 3050 | int |
| 3051 | main () |
| 3052 | { |
| 3053 | FILE *f = fopen ("conftest.out", "w"); |
| 3054 | return ferror (f) || fclose (f) != 0; |
| 3055 | |
| 3056 | ; |
| 3057 | return 0; |
| 3058 | } |
| 3059 | _ACEOF |
| 3060 | ac_clean_files="$ac_clean_files conftest.out" |
| 3061 | # Check that the compiler produces executables we can run. If not, either |
| 3062 | # the compiler is broken, or we cross compile. |
| 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3064 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3065 | if test "$cross_compiling" != yes; then |
| 3066 | { { ac_try="$ac_link" |
| 3067 | case "(($ac_try" in |
| 3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3069 | *) ac_try_echo=$ac_try;; |
| 3070 | esac |
| 3071 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3072 | $as_echo "$ac_try_echo"; } >&5 |
| 3073 | (eval "$ac_link") 2>&5 |
| 3074 | ac_status=$? |
| 3075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3076 | test $ac_status = 0; } |
| 3077 | if { ac_try='./conftest$ac_cv_exeext' |
| 3078 | { { case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
| 3082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3083 | $as_echo "$ac_try_echo"; } >&5 |
| 3084 | (eval "$ac_try") 2>&5 |
| 3085 | ac_status=$? |
| 3086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3087 | test $ac_status = 0; }; }; then |
| 3088 | cross_compiling=no |
| 3089 | else |
| 3090 | if test "$cross_compiling" = maybe; then |
| 3091 | cross_compiling=yes |
| 3092 | else |
| 3093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3094 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3095 | as_fn_error $? "cannot run C compiled programs. |
| 3096 | If you meant to cross compile, use \`--host'. |
| 3097 | See \`config.log' for more details" "$LINENO" 5; } |
| 3098 | fi |
| 3099 | fi |
| 3100 | fi |
| 3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3102 | $as_echo "$cross_compiling" >&6; } |
| 3103 | |
| 3104 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3105 | ac_clean_files=$ac_clean_files_save |
| 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3107 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3108 | if ${ac_cv_objext+:} false; then : |
| 3109 | $as_echo_n "(cached) " >&6 |
| 3110 | else |
| 3111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3112 | /* end confdefs.h. */ |
| 3113 | |
| 3114 | int |
| 3115 | main () |
| 3116 | { |
| 3117 | |
| 3118 | ; |
| 3119 | return 0; |
| 3120 | } |
| 3121 | _ACEOF |
| 3122 | rm -f conftest.o conftest.obj |
| 3123 | if { { ac_try="$ac_compile" |
| 3124 | case "(($ac_try" in |
| 3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3126 | *) ac_try_echo=$ac_try;; |
| 3127 | esac |
| 3128 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3129 | $as_echo "$ac_try_echo"; } >&5 |
| 3130 | (eval "$ac_compile") 2>&5 |
| 3131 | ac_status=$? |
| 3132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3133 | test $ac_status = 0; }; then : |
| 3134 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3135 | test -f "$ac_file" || continue; |
| 3136 | case $ac_file in |
| 3137 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3138 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3139 | break;; |
| 3140 | esac |
| 3141 | done |
| 3142 | else |
| 3143 | $as_echo "$as_me: failed program was:" >&5 |
| 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3145 | |
| 3146 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3148 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3149 | See \`config.log' for more details" "$LINENO" 5; } |
| 3150 | fi |
| 3151 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3152 | fi |
| 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3154 | $as_echo "$ac_cv_objext" >&6; } |
| 3155 | OBJEXT=$ac_cv_objext |
| 3156 | ac_objext=$OBJEXT |
| 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3158 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3159 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3160 | $as_echo_n "(cached) " >&6 |
| 3161 | else |
| 3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3163 | /* end confdefs.h. */ |
| 3164 | |
| 3165 | int |
| 3166 | main () |
| 3167 | { |
| 3168 | #ifndef __GNUC__ |
| 3169 | choke me |
| 3170 | #endif |
| 3171 | |
| 3172 | ; |
| 3173 | return 0; |
| 3174 | } |
| 3175 | _ACEOF |
| 3176 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3177 | ac_compiler_gnu=yes |
| 3178 | else |
| 3179 | ac_compiler_gnu=no |
| 3180 | fi |
| 3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3182 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3183 | |
| 3184 | fi |
| 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3186 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3187 | if test $ac_compiler_gnu = yes; then |
| 3188 | GCC=yes |
| 3189 | else |
| 3190 | GCC= |
| 3191 | fi |
| 3192 | ac_test_CFLAGS=${CFLAGS+set} |
| 3193 | ac_save_CFLAGS=$CFLAGS |
| 3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3195 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3196 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3197 | $as_echo_n "(cached) " >&6 |
| 3198 | else |
| 3199 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3200 | ac_c_werror_flag=yes |
| 3201 | ac_cv_prog_cc_g=no |
| 3202 | CFLAGS="-g" |
| 3203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3204 | /* end confdefs.h. */ |
| 3205 | |
| 3206 | int |
| 3207 | main () |
| 3208 | { |
| 3209 | |
| 3210 | ; |
| 3211 | return 0; |
| 3212 | } |
| 3213 | _ACEOF |
| 3214 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3215 | ac_cv_prog_cc_g=yes |
| 3216 | else |
| 3217 | CFLAGS="" |
| 3218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3219 | /* end confdefs.h. */ |
| 3220 | |
| 3221 | int |
| 3222 | main () |
| 3223 | { |
| 3224 | |
| 3225 | ; |
| 3226 | return 0; |
| 3227 | } |
| 3228 | _ACEOF |
| 3229 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3230 | |
| 3231 | else |
| 3232 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3233 | CFLAGS="-g" |
| 3234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3235 | /* end confdefs.h. */ |
| 3236 | |
| 3237 | int |
| 3238 | main () |
| 3239 | { |
| 3240 | |
| 3241 | ; |
| 3242 | return 0; |
| 3243 | } |
| 3244 | _ACEOF |
| 3245 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3246 | ac_cv_prog_cc_g=yes |
| 3247 | fi |
| 3248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3249 | fi |
| 3250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3251 | fi |
| 3252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3253 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3254 | fi |
| 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3256 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3257 | if test "$ac_test_CFLAGS" = set; then |
| 3258 | CFLAGS=$ac_save_CFLAGS |
| 3259 | elif test $ac_cv_prog_cc_g = yes; then |
| 3260 | if test "$GCC" = yes; then |
| 3261 | CFLAGS="-g -O2" |
| 3262 | else |
| 3263 | CFLAGS="-g" |
| 3264 | fi |
| 3265 | else |
| 3266 | if test "$GCC" = yes; then |
| 3267 | CFLAGS="-O2" |
| 3268 | else |
| 3269 | CFLAGS= |
| 3270 | fi |
| 3271 | fi |
| 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3273 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3274 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3275 | $as_echo_n "(cached) " >&6 |
| 3276 | else |
| 3277 | ac_cv_prog_cc_c89=no |
| 3278 | ac_save_CC=$CC |
| 3279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3280 | /* end confdefs.h. */ |
| 3281 | #include <stdarg.h> |
| 3282 | #include <stdio.h> |
| 3283 | #include <sys/types.h> |
| 3284 | #include <sys/stat.h> |
| 3285 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3286 | struct buf { int x; }; |
| 3287 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3288 | static char *e (p, i) |
| 3289 | char **p; |
| 3290 | int i; |
| 3291 | { |
| 3292 | return p[i]; |
| 3293 | } |
| 3294 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3295 | { |
| 3296 | char *s; |
| 3297 | va_list v; |
| 3298 | va_start (v,p); |
| 3299 | s = g (p, va_arg (v,int)); |
| 3300 | va_end (v); |
| 3301 | return s; |
| 3302 | } |
| 3303 | |
| 3304 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3305 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3306 | These don't provoke an error unfortunately, instead are silently treated |
| 3307 | as 'x'. The following induces an error, until -std is added to get |
| 3308 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3309 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3310 | that's true only with -std. */ |
| 3311 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3312 | |
| 3313 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3314 | inside strings and character constants. */ |
| 3315 | #define FOO(x) 'x' |
| 3316 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3317 | |
| 3318 | int test (int i, double x); |
| 3319 | struct s1 {int (*f) (int a);}; |
| 3320 | struct s2 {int (*f) (double a);}; |
| 3321 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3322 | int argc; |
| 3323 | char **argv; |
| 3324 | int |
| 3325 | main () |
| 3326 | { |
| 3327 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3328 | ; |
| 3329 | return 0; |
| 3330 | } |
| 3331 | _ACEOF |
| 3332 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3333 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3334 | do |
| 3335 | CC="$ac_save_CC $ac_arg" |
| 3336 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3337 | ac_cv_prog_cc_c89=$ac_arg |
| 3338 | fi |
| 3339 | rm -f core conftest.err conftest.$ac_objext |
| 3340 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3341 | done |
| 3342 | rm -f conftest.$ac_ext |
| 3343 | CC=$ac_save_CC |
| 3344 | |
| 3345 | fi |
| 3346 | # AC_CACHE_VAL |
| 3347 | case "x$ac_cv_prog_cc_c89" in |
| 3348 | x) |
| 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3350 | $as_echo "none needed" >&6; } ;; |
| 3351 | xno) |
| 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3353 | $as_echo "unsupported" >&6; } ;; |
| 3354 | *) |
| 3355 | CC="$CC $ac_cv_prog_cc_c89" |
| 3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3357 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3358 | esac |
| 3359 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3360 | |
| 3361 | fi |
| 3362 | |
| 3363 | ac_ext=c |
| 3364 | ac_cpp='$CPP $CPPFLAGS' |
| 3365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3368 | |
| 3369 | ac_aux_dir= |
| 3370 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3371 | if test -f "$ac_dir/install-sh"; then |
| 3372 | ac_aux_dir=$ac_dir |
| 3373 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3374 | break |
| 3375 | elif test -f "$ac_dir/install.sh"; then |
| 3376 | ac_aux_dir=$ac_dir |
| 3377 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3378 | break |
| 3379 | elif test -f "$ac_dir/shtool"; then |
| 3380 | ac_aux_dir=$ac_dir |
| 3381 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3382 | break |
| 3383 | fi |
| 3384 | done |
| 3385 | if test -z "$ac_aux_dir"; then |
| 3386 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3387 | fi |
| 3388 | |
| 3389 | # These three variables are undocumented and unsupported, |
| 3390 | # and are intended to be withdrawn in a future Autoconf release. |
| 3391 | # They can cause serious problems if a builder's source tree is in a directory |
| 3392 | # whose full name contains unusual characters. |
| 3393 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3394 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3395 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3396 | |
| 3397 | |
| 3398 | # Make sure we can run config.sub. |
| 3399 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3400 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3401 | |
| 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3403 | $as_echo_n "checking build system type... " >&6; } |
| 3404 | if ${ac_cv_build+:} false; then : |
| 3405 | $as_echo_n "(cached) " >&6 |
| 3406 | else |
| 3407 | ac_build_alias=$build_alias |
| 3408 | test "x$ac_build_alias" = x && |
| 3409 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3410 | test "x$ac_build_alias" = x && |
| 3411 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3412 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3413 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3414 | |
| 3415 | fi |
| 3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3417 | $as_echo "$ac_cv_build" >&6; } |
| 3418 | case $ac_cv_build in |
| 3419 | *-*-*) ;; |
| 3420 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3421 | esac |
| 3422 | build=$ac_cv_build |
| 3423 | ac_save_IFS=$IFS; IFS='-' |
| 3424 | set x $ac_cv_build |
| 3425 | shift |
| 3426 | build_cpu=$1 |
| 3427 | build_vendor=$2 |
| 3428 | shift; shift |
| 3429 | # Remember, the first character of IFS is used to create $*, |
| 3430 | # except with old shells: |
| 3431 | build_os=$* |
| 3432 | IFS=$ac_save_IFS |
| 3433 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3434 | |
| 3435 | |
| 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3437 | $as_echo_n "checking host system type... " >&6; } |
| 3438 | if ${ac_cv_host+:} false; then : |
| 3439 | $as_echo_n "(cached) " >&6 |
| 3440 | else |
| 3441 | if test "x$host_alias" = x; then |
| 3442 | ac_cv_host=$ac_cv_build |
| 3443 | else |
| 3444 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3445 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3446 | fi |
| 3447 | |
| 3448 | fi |
| 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3450 | $as_echo "$ac_cv_host" >&6; } |
| 3451 | case $ac_cv_host in |
| 3452 | *-*-*) ;; |
| 3453 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3454 | esac |
| 3455 | host=$ac_cv_host |
| 3456 | ac_save_IFS=$IFS; IFS='-' |
| 3457 | set x $ac_cv_host |
| 3458 | shift |
| 3459 | host_cpu=$1 |
| 3460 | host_vendor=$2 |
| 3461 | shift; shift |
| 3462 | # Remember, the first character of IFS is used to create $*, |
| 3463 | # except with old shells: |
| 3464 | host_os=$* |
| 3465 | IFS=$ac_save_IFS |
| 3466 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | ac_ext=c |
| 3471 | ac_cpp='$CPP $CPPFLAGS' |
| 3472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3476 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3477 | # On Suns, sometimes $CPP names a directory. |
| 3478 | if test -n "$CPP" && test -d "$CPP"; then |
| 3479 | CPP= |
| 3480 | fi |
| 3481 | if test -z "$CPP"; then |
| 3482 | if ${ac_cv_prog_CPP+:} false; then : |
| 3483 | $as_echo_n "(cached) " >&6 |
| 3484 | else |
| 3485 | # Double quotes because CPP needs to be expanded |
| 3486 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3487 | do |
| 3488 | ac_preproc_ok=false |
| 3489 | for ac_c_preproc_warn_flag in '' yes |
| 3490 | do |
| 3491 | # Use a header file that comes with gcc, so configuring glibc |
| 3492 | # with a fresh cross-compiler works. |
| 3493 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3494 | # <limits.h> exists even on freestanding compilers. |
| 3495 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3496 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3498 | /* end confdefs.h. */ |
| 3499 | #ifdef __STDC__ |
| 3500 | # include <limits.h> |
| 3501 | #else |
| 3502 | # include <assert.h> |
| 3503 | #endif |
| 3504 | Syntax error |
| 3505 | _ACEOF |
| 3506 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3507 | |
| 3508 | else |
| 3509 | # Broken: fails on valid input. |
| 3510 | continue |
| 3511 | fi |
| 3512 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3513 | |
| 3514 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3515 | # can be detected and how. |
| 3516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3517 | /* end confdefs.h. */ |
| 3518 | #include <ac_nonexistent.h> |
| 3519 | _ACEOF |
| 3520 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3521 | # Broken: success on invalid input. |
| 3522 | continue |
| 3523 | else |
| 3524 | # Passes both tests. |
| 3525 | ac_preproc_ok=: |
| 3526 | break |
| 3527 | fi |
| 3528 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3529 | |
| 3530 | done |
| 3531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3532 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3533 | if $ac_preproc_ok; then : |
| 3534 | break |
| 3535 | fi |
| 3536 | |
| 3537 | done |
| 3538 | ac_cv_prog_CPP=$CPP |
| 3539 | |
| 3540 | fi |
| 3541 | CPP=$ac_cv_prog_CPP |
| 3542 | else |
| 3543 | ac_cv_prog_CPP=$CPP |
| 3544 | fi |
| 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3546 | $as_echo "$CPP" >&6; } |
| 3547 | ac_preproc_ok=false |
| 3548 | for ac_c_preproc_warn_flag in '' yes |
| 3549 | do |
| 3550 | # Use a header file that comes with gcc, so configuring glibc |
| 3551 | # with a fresh cross-compiler works. |
| 3552 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3553 | # <limits.h> exists even on freestanding compilers. |
| 3554 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3555 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3557 | /* end confdefs.h. */ |
| 3558 | #ifdef __STDC__ |
| 3559 | # include <limits.h> |
| 3560 | #else |
| 3561 | # include <assert.h> |
| 3562 | #endif |
| 3563 | Syntax error |
| 3564 | _ACEOF |
| 3565 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3566 | |
| 3567 | else |
| 3568 | # Broken: fails on valid input. |
| 3569 | continue |
| 3570 | fi |
| 3571 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3572 | |
| 3573 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3574 | # can be detected and how. |
| 3575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3576 | /* end confdefs.h. */ |
| 3577 | #include <ac_nonexistent.h> |
| 3578 | _ACEOF |
| 3579 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3580 | # Broken: success on invalid input. |
| 3581 | continue |
| 3582 | else |
| 3583 | # Passes both tests. |
| 3584 | ac_preproc_ok=: |
| 3585 | break |
| 3586 | fi |
| 3587 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3588 | |
| 3589 | done |
| 3590 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3591 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3592 | if $ac_preproc_ok; then : |
| 3593 | |
| 3594 | else |
| 3595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3597 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3598 | See \`config.log' for more details" "$LINENO" 5; } |
| 3599 | fi |
| 3600 | |
| 3601 | ac_ext=c |
| 3602 | ac_cpp='$CPP $CPPFLAGS' |
| 3603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3606 | |
| 3607 | |
| 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3609 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3610 | if ${ac_cv_path_GREP+:} false; then : |
| 3611 | $as_echo_n "(cached) " >&6 |
| 3612 | else |
| 3613 | if test -z "$GREP"; then |
| 3614 | ac_path_GREP_found=false |
| 3615 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3618 | do |
| 3619 | IFS=$as_save_IFS |
| 3620 | test -z "$as_dir" && as_dir=. |
| 3621 | for ac_prog in grep ggrep; do |
| 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3623 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3624 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3625 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3626 | # Check for GNU $ac_path_GREP |
| 3627 | case `"$ac_path_GREP" --version 2>&1` in |
| 3628 | *GNU*) |
| 3629 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3630 | *) |
| 3631 | ac_count=0 |
| 3632 | $as_echo_n 0123456789 >"conftest.in" |
| 3633 | while : |
| 3634 | do |
| 3635 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3636 | mv "conftest.tmp" "conftest.in" |
| 3637 | cp "conftest.in" "conftest.nl" |
| 3638 | $as_echo 'GREP' >> "conftest.nl" |
| 3639 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3641 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3642 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3643 | # Best one so far, save it but keep looking for a better one |
| 3644 | ac_cv_path_GREP="$ac_path_GREP" |
| 3645 | ac_path_GREP_max=$ac_count |
| 3646 | fi |
| 3647 | # 10*(2^10) chars as input seems more than enough |
| 3648 | test $ac_count -gt 10 && break |
| 3649 | done |
| 3650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3651 | esac |
| 3652 | |
| 3653 | $ac_path_GREP_found && break 3 |
| 3654 | done |
| 3655 | done |
| 3656 | done |
| 3657 | IFS=$as_save_IFS |
| 3658 | if test -z "$ac_cv_path_GREP"; then |
| 3659 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3660 | fi |
| 3661 | else |
| 3662 | ac_cv_path_GREP=$GREP |
| 3663 | fi |
| 3664 | |
| 3665 | fi |
| 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3667 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3668 | GREP="$ac_cv_path_GREP" |
| 3669 | |
| 3670 | |
| 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3672 | $as_echo_n "checking for egrep... " >&6; } |
| 3673 | if ${ac_cv_path_EGREP+:} false; then : |
| 3674 | $as_echo_n "(cached) " >&6 |
| 3675 | else |
| 3676 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3677 | then ac_cv_path_EGREP="$GREP -E" |
| 3678 | else |
| 3679 | if test -z "$EGREP"; then |
| 3680 | ac_path_EGREP_found=false |
| 3681 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3683 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3684 | do |
| 3685 | IFS=$as_save_IFS |
| 3686 | test -z "$as_dir" && as_dir=. |
| 3687 | for ac_prog in egrep; do |
| 3688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3689 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3690 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3691 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3692 | # Check for GNU $ac_path_EGREP |
| 3693 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3694 | *GNU*) |
| 3695 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3696 | *) |
| 3697 | ac_count=0 |
| 3698 | $as_echo_n 0123456789 >"conftest.in" |
| 3699 | while : |
| 3700 | do |
| 3701 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3702 | mv "conftest.tmp" "conftest.in" |
| 3703 | cp "conftest.in" "conftest.nl" |
| 3704 | $as_echo 'EGREP' >> "conftest.nl" |
| 3705 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3706 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3707 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3708 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3709 | # Best one so far, save it but keep looking for a better one |
| 3710 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3711 | ac_path_EGREP_max=$ac_count |
| 3712 | fi |
| 3713 | # 10*(2^10) chars as input seems more than enough |
| 3714 | test $ac_count -gt 10 && break |
| 3715 | done |
| 3716 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3717 | esac |
| 3718 | |
| 3719 | $ac_path_EGREP_found && break 3 |
| 3720 | done |
| 3721 | done |
| 3722 | done |
| 3723 | IFS=$as_save_IFS |
| 3724 | if test -z "$ac_cv_path_EGREP"; then |
| 3725 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3726 | fi |
| 3727 | else |
| 3728 | ac_cv_path_EGREP=$EGREP |
| 3729 | fi |
| 3730 | |
| 3731 | fi |
| 3732 | fi |
| 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3734 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3735 | EGREP="$ac_cv_path_EGREP" |
| 3736 | |
| 3737 | |
| 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3739 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3740 | if ${ac_cv_header_stdc+:} false; then : |
| 3741 | $as_echo_n "(cached) " >&6 |
| 3742 | else |
| 3743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3744 | /* end confdefs.h. */ |
| 3745 | #include <stdlib.h> |
| 3746 | #include <stdarg.h> |
| 3747 | #include <string.h> |
| 3748 | #include <float.h> |
| 3749 | |
| 3750 | int |
| 3751 | main () |
| 3752 | { |
| 3753 | |
| 3754 | ; |
| 3755 | return 0; |
| 3756 | } |
| 3757 | _ACEOF |
| 3758 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3759 | ac_cv_header_stdc=yes |
| 3760 | else |
| 3761 | ac_cv_header_stdc=no |
| 3762 | fi |
| 3763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3764 | |
| 3765 | if test $ac_cv_header_stdc = yes; then |
| 3766 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3768 | /* end confdefs.h. */ |
| 3769 | #include <string.h> |
| 3770 | |
| 3771 | _ACEOF |
| 3772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3773 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3774 | |
| 3775 | else |
| 3776 | ac_cv_header_stdc=no |
| 3777 | fi |
| 3778 | rm -f conftest* |
| 3779 | |
| 3780 | fi |
| 3781 | |
| 3782 | if test $ac_cv_header_stdc = yes; then |
| 3783 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3785 | /* end confdefs.h. */ |
| 3786 | #include <stdlib.h> |
| 3787 | |
| 3788 | _ACEOF |
| 3789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3790 | $EGREP "free" >/dev/null 2>&1; then : |
| 3791 | |
| 3792 | else |
| 3793 | ac_cv_header_stdc=no |
| 3794 | fi |
| 3795 | rm -f conftest* |
| 3796 | |
| 3797 | fi |
| 3798 | |
| 3799 | if test $ac_cv_header_stdc = yes; then |
| 3800 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3801 | if test "$cross_compiling" = yes; then : |
| 3802 | : |
| 3803 | else |
| 3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3805 | /* end confdefs.h. */ |
| 3806 | #include <ctype.h> |
| 3807 | #include <stdlib.h> |
| 3808 | #if ((' ' & 0x0FF) == 0x020) |
| 3809 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3810 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3811 | #else |
| 3812 | # define ISLOWER(c) \ |
| 3813 | (('a' <= (c) && (c) <= 'i') \ |
| 3814 | || ('j' <= (c) && (c) <= 'r') \ |
| 3815 | || ('s' <= (c) && (c) <= 'z')) |
| 3816 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3817 | #endif |
| 3818 | |
| 3819 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3820 | int |
| 3821 | main () |
| 3822 | { |
| 3823 | int i; |
| 3824 | for (i = 0; i < 256; i++) |
| 3825 | if (XOR (islower (i), ISLOWER (i)) |
| 3826 | || toupper (i) != TOUPPER (i)) |
| 3827 | return 2; |
| 3828 | return 0; |
| 3829 | } |
| 3830 | _ACEOF |
| 3831 | if ac_fn_c_try_run "$LINENO"; then : |
| 3832 | |
| 3833 | else |
| 3834 | ac_cv_header_stdc=no |
| 3835 | fi |
| 3836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3837 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3838 | fi |
| 3839 | |
| 3840 | fi |
| 3841 | fi |
| 3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3843 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3844 | if test $ac_cv_header_stdc = yes; then |
| 3845 | |
| 3846 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3847 | |
| 3848 | fi |
| 3849 | |
| 3850 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3851 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3852 | inttypes.h stdint.h unistd.h |
| 3853 | do : |
| 3854 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3855 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3856 | " |
| 3857 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3858 | cat >>confdefs.h <<_ACEOF |
| 3859 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3860 | _ACEOF |
| 3861 | |
| 3862 | fi |
| 3863 | |
| 3864 | done |
| 3865 | |
| 3866 | |
| 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3868 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3869 | if ${ac_cv_c_bigendian+:} false; then : |
| 3870 | $as_echo_n "(cached) " >&6 |
| 3871 | else |
| 3872 | ac_cv_c_bigendian=unknown |
| 3873 | # See if we're dealing with a universal compiler. |
| 3874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3875 | /* end confdefs.h. */ |
| 3876 | #ifndef __APPLE_CC__ |
| 3877 | not a universal capable compiler |
| 3878 | #endif |
| 3879 | typedef int dummy; |
| 3880 | |
| 3881 | _ACEOF |
| 3882 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3883 | |
| 3884 | # Check for potential -arch flags. It is not universal unless |
| 3885 | # there are at least two -arch flags with different values. |
| 3886 | ac_arch= |
| 3887 | ac_prev= |
| 3888 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3889 | if test -n "$ac_prev"; then |
| 3890 | case $ac_word in |
| 3891 | i?86 | x86_64 | ppc | ppc64) |
| 3892 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3893 | ac_arch=$ac_word |
| 3894 | else |
| 3895 | ac_cv_c_bigendian=universal |
| 3896 | break |
| 3897 | fi |
| 3898 | ;; |
| 3899 | esac |
| 3900 | ac_prev= |
| 3901 | elif test "x$ac_word" = "x-arch"; then |
| 3902 | ac_prev=arch |
| 3903 | fi |
| 3904 | done |
| 3905 | fi |
| 3906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3907 | if test $ac_cv_c_bigendian = unknown; then |
| 3908 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3910 | /* end confdefs.h. */ |
| 3911 | #include <sys/types.h> |
| 3912 | #include <sys/param.h> |
| 3913 | |
| 3914 | int |
| 3915 | main () |
| 3916 | { |
| 3917 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3918 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3919 | && LITTLE_ENDIAN) |
| 3920 | bogus endian macros |
| 3921 | #endif |
| 3922 | |
| 3923 | ; |
| 3924 | return 0; |
| 3925 | } |
| 3926 | _ACEOF |
| 3927 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3928 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3930 | /* end confdefs.h. */ |
| 3931 | #include <sys/types.h> |
| 3932 | #include <sys/param.h> |
| 3933 | |
| 3934 | int |
| 3935 | main () |
| 3936 | { |
| 3937 | #if BYTE_ORDER != BIG_ENDIAN |
| 3938 | not big endian |
| 3939 | #endif |
| 3940 | |
| 3941 | ; |
| 3942 | return 0; |
| 3943 | } |
| 3944 | _ACEOF |
| 3945 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3946 | ac_cv_c_bigendian=yes |
| 3947 | else |
| 3948 | ac_cv_c_bigendian=no |
| 3949 | fi |
| 3950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3951 | fi |
| 3952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3953 | fi |
| 3954 | if test $ac_cv_c_bigendian = unknown; then |
| 3955 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3957 | /* end confdefs.h. */ |
| 3958 | #include <limits.h> |
| 3959 | |
| 3960 | int |
| 3961 | main () |
| 3962 | { |
| 3963 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 3964 | bogus endian macros |
| 3965 | #endif |
| 3966 | |
| 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
| 3970 | _ACEOF |
| 3971 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3972 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 3973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3974 | /* end confdefs.h. */ |
| 3975 | #include <limits.h> |
| 3976 | |
| 3977 | int |
| 3978 | main () |
| 3979 | { |
| 3980 | #ifndef _BIG_ENDIAN |
| 3981 | not big endian |
| 3982 | #endif |
| 3983 | |
| 3984 | ; |
| 3985 | return 0; |
| 3986 | } |
| 3987 | _ACEOF |
| 3988 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3989 | ac_cv_c_bigendian=yes |
| 3990 | else |
| 3991 | ac_cv_c_bigendian=no |
| 3992 | fi |
| 3993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3994 | fi |
| 3995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3996 | fi |
| 3997 | if test $ac_cv_c_bigendian = unknown; then |
| 3998 | # Compile a test program. |
| 3999 | if test "$cross_compiling" = yes; then : |
| 4000 | # Try to guess by grepping values from an object file. |
| 4001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4002 | /* end confdefs.h. */ |
| 4003 | short int ascii_mm[] = |
| 4004 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4005 | short int ascii_ii[] = |
| 4006 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4007 | int use_ascii (int i) { |
| 4008 | return ascii_mm[i] + ascii_ii[i]; |
| 4009 | } |
| 4010 | short int ebcdic_ii[] = |
| 4011 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4012 | short int ebcdic_mm[] = |
| 4013 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4014 | int use_ebcdic (int i) { |
| 4015 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4016 | } |
| 4017 | extern int foo; |
| 4018 | |
| 4019 | int |
| 4020 | main () |
| 4021 | { |
| 4022 | return use_ascii (foo) == use_ebcdic (foo); |
| 4023 | ; |
| 4024 | return 0; |
| 4025 | } |
| 4026 | _ACEOF |
| 4027 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4028 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4029 | ac_cv_c_bigendian=yes |
| 4030 | fi |
| 4031 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4032 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4033 | ac_cv_c_bigendian=no |
| 4034 | else |
| 4035 | # finding both strings is unlikely to happen, but who knows? |
| 4036 | ac_cv_c_bigendian=unknown |
| 4037 | fi |
| 4038 | fi |
| 4039 | fi |
| 4040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4041 | else |
| 4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4043 | /* end confdefs.h. */ |
| 4044 | $ac_includes_default |
| 4045 | int |
| 4046 | main () |
| 4047 | { |
| 4048 | |
| 4049 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4050 | union |
| 4051 | { |
| 4052 | long int l; |
| 4053 | char c[sizeof (long int)]; |
| 4054 | } u; |
| 4055 | u.l = 1; |
| 4056 | return u.c[sizeof (long int) - 1] == 1; |
| 4057 | |
| 4058 | ; |
| 4059 | return 0; |
| 4060 | } |
| 4061 | _ACEOF |
| 4062 | if ac_fn_c_try_run "$LINENO"; then : |
| 4063 | ac_cv_c_bigendian=no |
| 4064 | else |
| 4065 | ac_cv_c_bigendian=yes |
| 4066 | fi |
| 4067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4068 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4069 | fi |
| 4070 | |
| 4071 | fi |
| 4072 | fi |
| 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4074 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4075 | case $ac_cv_c_bigendian in #( |
| 4076 | yes) |
| 4077 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4078 | ;; #( |
| 4079 | no) |
| 4080 | ;; #( |
| 4081 | universal) |
| 4082 | |
| 4083 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 4084 | |
| 4085 | ;; #( |
| 4086 | *) |
| 4087 | as_fn_error $? "unknown endianness |
| 4088 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4089 | esac |
| 4090 | |
| 4091 | |
| 4092 | # Checks for programs. |
| 4093 | for ac_prog in gawk mawk nawk awk |
| 4094 | do |
| 4095 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4096 | set dummy $ac_prog; ac_word=$2 |
| 4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4098 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4099 | if ${ac_cv_prog_AWK+:} false; then : |
| 4100 | $as_echo_n "(cached) " >&6 |
| 4101 | else |
| 4102 | if test -n "$AWK"; then |
| 4103 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4104 | else |
| 4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4106 | for as_dir in $PATH |
| 4107 | do |
| 4108 | IFS=$as_save_IFS |
| 4109 | test -z "$as_dir" && as_dir=. |
| 4110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4112 | ac_cv_prog_AWK="$ac_prog" |
| 4113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4114 | break 2 |
| 4115 | fi |
| 4116 | done |
| 4117 | done |
| 4118 | IFS=$as_save_IFS |
| 4119 | |
| 4120 | fi |
| 4121 | fi |
| 4122 | AWK=$ac_cv_prog_AWK |
| 4123 | if test -n "$AWK"; then |
| 4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4125 | $as_echo "$AWK" >&6; } |
| 4126 | else |
| 4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4128 | $as_echo "no" >&6; } |
| 4129 | fi |
| 4130 | |
| 4131 | |
| 4132 | test -n "$AWK" && break |
| 4133 | done |
| 4134 | |
| 4135 | ac_ext=c |
| 4136 | ac_cpp='$CPP $CPPFLAGS' |
| 4137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4141 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4142 | # On Suns, sometimes $CPP names a directory. |
| 4143 | if test -n "$CPP" && test -d "$CPP"; then |
| 4144 | CPP= |
| 4145 | fi |
| 4146 | if test -z "$CPP"; then |
| 4147 | if ${ac_cv_prog_CPP+:} false; then : |
| 4148 | $as_echo_n "(cached) " >&6 |
| 4149 | else |
| 4150 | # Double quotes because CPP needs to be expanded |
| 4151 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4152 | do |
| 4153 | ac_preproc_ok=false |
| 4154 | for ac_c_preproc_warn_flag in '' yes |
| 4155 | do |
| 4156 | # Use a header file that comes with gcc, so configuring glibc |
| 4157 | # with a fresh cross-compiler works. |
| 4158 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4159 | # <limits.h> exists even on freestanding compilers. |
| 4160 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4161 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4163 | /* end confdefs.h. */ |
| 4164 | #ifdef __STDC__ |
| 4165 | # include <limits.h> |
| 4166 | #else |
| 4167 | # include <assert.h> |
| 4168 | #endif |
| 4169 | Syntax error |
| 4170 | _ACEOF |
| 4171 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4172 | |
| 4173 | else |
| 4174 | # Broken: fails on valid input. |
| 4175 | continue |
| 4176 | fi |
| 4177 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4178 | |
| 4179 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4180 | # can be detected and how. |
| 4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4182 | /* end confdefs.h. */ |
| 4183 | #include <ac_nonexistent.h> |
| 4184 | _ACEOF |
| 4185 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4186 | # Broken: success on invalid input. |
| 4187 | continue |
| 4188 | else |
| 4189 | # Passes both tests. |
| 4190 | ac_preproc_ok=: |
| 4191 | break |
| 4192 | fi |
| 4193 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4194 | |
| 4195 | done |
| 4196 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4197 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4198 | if $ac_preproc_ok; then : |
| 4199 | break |
| 4200 | fi |
| 4201 | |
| 4202 | done |
| 4203 | ac_cv_prog_CPP=$CPP |
| 4204 | |
| 4205 | fi |
| 4206 | CPP=$ac_cv_prog_CPP |
| 4207 | else |
| 4208 | ac_cv_prog_CPP=$CPP |
| 4209 | fi |
| 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4211 | $as_echo "$CPP" >&6; } |
| 4212 | ac_preproc_ok=false |
| 4213 | for ac_c_preproc_warn_flag in '' yes |
| 4214 | do |
| 4215 | # Use a header file that comes with gcc, so configuring glibc |
| 4216 | # with a fresh cross-compiler works. |
| 4217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4218 | # <limits.h> exists even on freestanding compilers. |
| 4219 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4220 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4222 | /* end confdefs.h. */ |
| 4223 | #ifdef __STDC__ |
| 4224 | # include <limits.h> |
| 4225 | #else |
| 4226 | # include <assert.h> |
| 4227 | #endif |
| 4228 | Syntax error |
| 4229 | _ACEOF |
| 4230 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4231 | |
| 4232 | else |
| 4233 | # Broken: fails on valid input. |
| 4234 | continue |
| 4235 | fi |
| 4236 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4237 | |
| 4238 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4239 | # can be detected and how. |
| 4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4241 | /* end confdefs.h. */ |
| 4242 | #include <ac_nonexistent.h> |
| 4243 | _ACEOF |
| 4244 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4245 | # Broken: success on invalid input. |
| 4246 | continue |
| 4247 | else |
| 4248 | # Passes both tests. |
| 4249 | ac_preproc_ok=: |
| 4250 | break |
| 4251 | fi |
| 4252 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4253 | |
| 4254 | done |
| 4255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4256 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4257 | if $ac_preproc_ok; then : |
| 4258 | |
| 4259 | else |
| 4260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4262 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4263 | See \`config.log' for more details" "$LINENO" 5; } |
| 4264 | fi |
| 4265 | |
| 4266 | ac_ext=c |
| 4267 | ac_cpp='$CPP $CPPFLAGS' |
| 4268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4271 | |
| 4272 | if test -n "$ac_tool_prefix"; then |
| 4273 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4274 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4276 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4277 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 4278 | $as_echo_n "(cached) " >&6 |
| 4279 | else |
| 4280 | if test -n "$RANLIB"; then |
| 4281 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4282 | else |
| 4283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4284 | for as_dir in $PATH |
| 4285 | do |
| 4286 | IFS=$as_save_IFS |
| 4287 | test -z "$as_dir" && as_dir=. |
| 4288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4290 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4292 | break 2 |
| 4293 | fi |
| 4294 | done |
| 4295 | done |
| 4296 | IFS=$as_save_IFS |
| 4297 | |
| 4298 | fi |
| 4299 | fi |
| 4300 | RANLIB=$ac_cv_prog_RANLIB |
| 4301 | if test -n "$RANLIB"; then |
| 4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4303 | $as_echo "$RANLIB" >&6; } |
| 4304 | else |
| 4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4306 | $as_echo "no" >&6; } |
| 4307 | fi |
| 4308 | |
| 4309 | |
| 4310 | fi |
| 4311 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4312 | ac_ct_RANLIB=$RANLIB |
| 4313 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4314 | set dummy ranlib; ac_word=$2 |
| 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4316 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4317 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 4318 | $as_echo_n "(cached) " >&6 |
| 4319 | else |
| 4320 | if test -n "$ac_ct_RANLIB"; then |
| 4321 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4322 | else |
| 4323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4324 | for as_dir in $PATH |
| 4325 | do |
| 4326 | IFS=$as_save_IFS |
| 4327 | test -z "$as_dir" && as_dir=. |
| 4328 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4330 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4332 | break 2 |
| 4333 | fi |
| 4334 | done |
| 4335 | done |
| 4336 | IFS=$as_save_IFS |
| 4337 | |
| 4338 | fi |
| 4339 | fi |
| 4340 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4341 | if test -n "$ac_ct_RANLIB"; then |
| 4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4343 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 4344 | else |
| 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4346 | $as_echo "no" >&6; } |
| 4347 | fi |
| 4348 | |
| 4349 | if test "x$ac_ct_RANLIB" = x; then |
| 4350 | RANLIB=":" |
| 4351 | else |
| 4352 | case $cross_compiling:$ac_tool_warned in |
| 4353 | yes:) |
| 4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4355 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4356 | ac_tool_warned=yes ;; |
| 4357 | esac |
| 4358 | RANLIB=$ac_ct_RANLIB |
| 4359 | fi |
| 4360 | else |
| 4361 | RANLIB="$ac_cv_prog_RANLIB" |
| 4362 | fi |
| 4363 | |
| 4364 | # Find a good install program. We prefer a C program (faster), |
| 4365 | # so one script is as good as another. But avoid the broken or |
| 4366 | # incompatible versions: |
| 4367 | # SysV /etc/install, /usr/sbin/install |
| 4368 | # SunOS /usr/etc/install |
| 4369 | # IRIX /sbin/install |
| 4370 | # AIX /bin/install |
| 4371 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4372 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4373 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4374 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4375 | # OS/2's system install, which has a completely different semantic |
| 4376 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4377 | # Reject install programs that cannot install multiple files. |
| 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4379 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 4380 | if test -z "$INSTALL"; then |
| 4381 | if ${ac_cv_path_install+:} false; then : |
| 4382 | $as_echo_n "(cached) " >&6 |
| 4383 | else |
| 4384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4385 | for as_dir in $PATH |
| 4386 | do |
| 4387 | IFS=$as_save_IFS |
| 4388 | test -z "$as_dir" && as_dir=. |
| 4389 | # Account for people who put trailing slashes in PATH elements. |
| 4390 | case $as_dir/ in #(( |
| 4391 | ./ | .// | /[cC]/* | \ |
| 4392 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4393 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 4394 | /usr/ucb/* ) ;; |
| 4395 | *) |
| 4396 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4397 | # Don't use installbsd from OSF since it installs stuff as root |
| 4398 | # by default. |
| 4399 | for ac_prog in ginstall scoinst install; do |
| 4400 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4401 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4402 | if test $ac_prog = install && |
| 4403 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4404 | # AIX install. It has an incompatible calling convention. |
| 4405 | : |
| 4406 | elif test $ac_prog = install && |
| 4407 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4408 | # program-specific install script used by HP pwplus--don't use. |
| 4409 | : |
| 4410 | else |
| 4411 | rm -rf conftest.one conftest.two conftest.dir |
| 4412 | echo one > conftest.one |
| 4413 | echo two > conftest.two |
| 4414 | mkdir conftest.dir |
| 4415 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4416 | test -s conftest.one && test -s conftest.two && |
| 4417 | test -s conftest.dir/conftest.one && |
| 4418 | test -s conftest.dir/conftest.two |
| 4419 | then |
| 4420 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4421 | break 3 |
| 4422 | fi |
| 4423 | fi |
| 4424 | fi |
| 4425 | done |
| 4426 | done |
| 4427 | ;; |
| 4428 | esac |
| 4429 | |
| 4430 | done |
| 4431 | IFS=$as_save_IFS |
| 4432 | |
| 4433 | rm -rf conftest.one conftest.two conftest.dir |
| 4434 | |
| 4435 | fi |
| 4436 | if test "${ac_cv_path_install+set}" = set; then |
| 4437 | INSTALL=$ac_cv_path_install |
| 4438 | else |
| 4439 | # As a last resort, use the slow shell script. Don't cache a |
| 4440 | # value for INSTALL within a source directory, because that will |
| 4441 | # break other packages using the cache if that directory is |
| 4442 | # removed, or if the value is a relative name. |
| 4443 | INSTALL=$ac_install_sh |
| 4444 | fi |
| 4445 | fi |
| 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4447 | $as_echo "$INSTALL" >&6; } |
| 4448 | |
| 4449 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4450 | # It thinks the first close brace ends the variable substitution. |
| 4451 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4452 | |
| 4453 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4454 | |
| 4455 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4456 | |
| 4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4458 | $as_echo_n "checking for egrep... " >&6; } |
| 4459 | if ${ac_cv_path_EGREP+:} false; then : |
| 4460 | $as_echo_n "(cached) " >&6 |
| 4461 | else |
| 4462 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4463 | then ac_cv_path_EGREP="$GREP -E" |
| 4464 | else |
| 4465 | if test -z "$EGREP"; then |
| 4466 | ac_path_EGREP_found=false |
| 4467 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4469 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4470 | do |
| 4471 | IFS=$as_save_IFS |
| 4472 | test -z "$as_dir" && as_dir=. |
| 4473 | for ac_prog in egrep; do |
| 4474 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4475 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4476 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4477 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4478 | # Check for GNU $ac_path_EGREP |
| 4479 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4480 | *GNU*) |
| 4481 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4482 | *) |
| 4483 | ac_count=0 |
| 4484 | $as_echo_n 0123456789 >"conftest.in" |
| 4485 | while : |
| 4486 | do |
| 4487 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4488 | mv "conftest.tmp" "conftest.in" |
| 4489 | cp "conftest.in" "conftest.nl" |
| 4490 | $as_echo 'EGREP' >> "conftest.nl" |
| 4491 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4492 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4493 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4494 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4495 | # Best one so far, save it but keep looking for a better one |
| 4496 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4497 | ac_path_EGREP_max=$ac_count |
| 4498 | fi |
| 4499 | # 10*(2^10) chars as input seems more than enough |
| 4500 | test $ac_count -gt 10 && break |
| 4501 | done |
| 4502 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4503 | esac |
| 4504 | |
| 4505 | $ac_path_EGREP_found && break 3 |
| 4506 | done |
| 4507 | done |
| 4508 | done |
| 4509 | IFS=$as_save_IFS |
| 4510 | if test -z "$ac_cv_path_EGREP"; then |
| 4511 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4512 | fi |
| 4513 | else |
| 4514 | ac_cv_path_EGREP=$EGREP |
| 4515 | fi |
| 4516 | |
| 4517 | fi |
| 4518 | fi |
| 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4520 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4521 | EGREP="$ac_cv_path_EGREP" |
| 4522 | |
| 4523 | |
| 4524 | # Extract the first word of "ar", so it can be a program name with args. |
| 4525 | set dummy ar; 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_AR+:} false; then : |
| 4529 | $as_echo_n "(cached) " >&6 |
| 4530 | else |
| 4531 | case $AR in |
| 4532 | [\\/]* | ?:[\\/]*) |
| 4533 | ac_cv_path_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4543 | ac_cv_path_AR="$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 | AR=$ac_cv_path_AR |
| 4555 | if test -n "$AR"; then |
| 4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4557 | $as_echo "$AR" >&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 "cat", so it can be a program name with args. |
| 4565 | set dummy cat; 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_CAT+:} false; then : |
| 4569 | $as_echo_n "(cached) " >&6 |
| 4570 | else |
| 4571 | case $CAT in |
| 4572 | [\\/]* | ?:[\\/]*) |
| 4573 | ac_cv_path_CAT="$CAT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4583 | ac_cv_path_CAT="$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 | CAT=$ac_cv_path_CAT |
| 4595 | if test -n "$CAT"; then |
| 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 |
| 4597 | $as_echo "$CAT" >&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 "kill", so it can be a program name with args. |
| 4605 | set dummy kill; 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_KILL+:} false; then : |
| 4609 | $as_echo_n "(cached) " >&6 |
| 4610 | else |
| 4611 | case $KILL in |
| 4612 | [\\/]* | ?:[\\/]*) |
| 4613 | ac_cv_path_KILL="$KILL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4623 | ac_cv_path_KILL="$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 | KILL=$ac_cv_path_KILL |
| 4635 | if test -n "$KILL"; then |
| 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 |
| 4637 | $as_echo "$KILL" >&6; } |
| 4638 | else |
| 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4640 | $as_echo "no" >&6; } |
| 4641 | fi |
| 4642 | |
| 4643 | |
| 4644 | for ac_prog in perl5 perl |
| 4645 | do |
| 4646 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4647 | set dummy $ac_prog; ac_word=$2 |
| 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4649 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4650 | if ${ac_cv_path_PERL+:} false; then : |
| 4651 | $as_echo_n "(cached) " >&6 |
| 4652 | else |
| 4653 | case $PERL in |
| 4654 | [\\/]* | ?:[\\/]*) |
| 4655 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4656 | ;; |
| 4657 | *) |
| 4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4659 | for as_dir in $PATH |
| 4660 | do |
| 4661 | IFS=$as_save_IFS |
| 4662 | test -z "$as_dir" && as_dir=. |
| 4663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4665 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 4666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4667 | break 2 |
| 4668 | fi |
| 4669 | done |
| 4670 | done |
| 4671 | IFS=$as_save_IFS |
| 4672 | |
| 4673 | ;; |
| 4674 | esac |
| 4675 | fi |
| 4676 | PERL=$ac_cv_path_PERL |
| 4677 | if test -n "$PERL"; then |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| 4679 | $as_echo "$PERL" >&6; } |
| 4680 | else |
| 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4682 | $as_echo "no" >&6; } |
| 4683 | fi |
| 4684 | |
| 4685 | |
| 4686 | test -n "$PERL" && break |
| 4687 | done |
| 4688 | |
| 4689 | # Extract the first word of "sed", so it can be a program name with args. |
| 4690 | set dummy sed; ac_word=$2 |
| 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4692 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4693 | if ${ac_cv_path_SED+:} false; then : |
| 4694 | $as_echo_n "(cached) " >&6 |
| 4695 | else |
| 4696 | case $SED in |
| 4697 | [\\/]* | ?:[\\/]*) |
| 4698 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4699 | ;; |
| 4700 | *) |
| 4701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4702 | for as_dir in $PATH |
| 4703 | do |
| 4704 | IFS=$as_save_IFS |
| 4705 | test -z "$as_dir" && as_dir=. |
| 4706 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4708 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 4709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4710 | break 2 |
| 4711 | fi |
| 4712 | done |
| 4713 | done |
| 4714 | IFS=$as_save_IFS |
| 4715 | |
| 4716 | ;; |
| 4717 | esac |
| 4718 | fi |
| 4719 | SED=$ac_cv_path_SED |
| 4720 | if test -n "$SED"; then |
| 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
| 4722 | $as_echo "$SED" >&6; } |
| 4723 | else |
| 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4725 | $as_echo "no" >&6; } |
| 4726 | fi |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | # Extract the first word of "ent", so it can be a program name with args. |
| 4731 | set dummy ent; ac_word=$2 |
| 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4733 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4734 | if ${ac_cv_path_ENT+:} false; then : |
| 4735 | $as_echo_n "(cached) " >&6 |
| 4736 | else |
| 4737 | case $ENT in |
| 4738 | [\\/]* | ?:[\\/]*) |
| 4739 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. |
| 4740 | ;; |
| 4741 | *) |
| 4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4743 | for as_dir in $PATH |
| 4744 | do |
| 4745 | IFS=$as_save_IFS |
| 4746 | test -z "$as_dir" && as_dir=. |
| 4747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4749 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" |
| 4750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4751 | break 2 |
| 4752 | fi |
| 4753 | done |
| 4754 | done |
| 4755 | IFS=$as_save_IFS |
| 4756 | |
| 4757 | ;; |
| 4758 | esac |
| 4759 | fi |
| 4760 | ENT=$ac_cv_path_ENT |
| 4761 | if test -n "$ENT"; then |
| 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 |
| 4763 | $as_echo "$ENT" >&6; } |
| 4764 | else |
| 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4766 | $as_echo "no" >&6; } |
| 4767 | fi |
| 4768 | |
| 4769 | |
| 4770 | |
| 4771 | # Extract the first word of "bash", so it can be a program name with args. |
| 4772 | set dummy bash; ac_word=$2 |
| 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4774 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4775 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4776 | $as_echo_n "(cached) " >&6 |
| 4777 | else |
| 4778 | case $TEST_MINUS_S_SH in |
| 4779 | [\\/]* | ?:[\\/]*) |
| 4780 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4781 | ;; |
| 4782 | *) |
| 4783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4784 | for as_dir in $PATH |
| 4785 | do |
| 4786 | IFS=$as_save_IFS |
| 4787 | test -z "$as_dir" && as_dir=. |
| 4788 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4790 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4792 | break 2 |
| 4793 | fi |
| 4794 | done |
| 4795 | done |
| 4796 | IFS=$as_save_IFS |
| 4797 | |
| 4798 | ;; |
| 4799 | esac |
| 4800 | fi |
| 4801 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4802 | if test -n "$TEST_MINUS_S_SH"; then |
| 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4804 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4805 | else |
| 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4807 | $as_echo "no" >&6; } |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | # Extract the first word of "ksh", so it can be a program name with args. |
| 4812 | set dummy ksh; ac_word=$2 |
| 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4814 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4815 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4816 | $as_echo_n "(cached) " >&6 |
| 4817 | else |
| 4818 | case $TEST_MINUS_S_SH in |
| 4819 | [\\/]* | ?:[\\/]*) |
| 4820 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4821 | ;; |
| 4822 | *) |
| 4823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4824 | for as_dir in $PATH |
| 4825 | do |
| 4826 | IFS=$as_save_IFS |
| 4827 | test -z "$as_dir" && as_dir=. |
| 4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4830 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4832 | break 2 |
| 4833 | fi |
| 4834 | done |
| 4835 | done |
| 4836 | IFS=$as_save_IFS |
| 4837 | |
| 4838 | ;; |
| 4839 | esac |
| 4840 | fi |
| 4841 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4842 | if test -n "$TEST_MINUS_S_SH"; then |
| 4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4844 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4845 | else |
| 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4847 | $as_echo "no" >&6; } |
| 4848 | fi |
| 4849 | |
| 4850 | |
| 4851 | # Extract the first word of "sh", so it can be a program name with args. |
| 4852 | set dummy sh; ac_word=$2 |
| 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4854 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4855 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4856 | $as_echo_n "(cached) " >&6 |
| 4857 | else |
| 4858 | case $TEST_MINUS_S_SH in |
| 4859 | [\\/]* | ?:[\\/]*) |
| 4860 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4861 | ;; |
| 4862 | *) |
| 4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4864 | for as_dir in $PATH |
| 4865 | do |
| 4866 | IFS=$as_save_IFS |
| 4867 | test -z "$as_dir" && as_dir=. |
| 4868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4870 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4872 | break 2 |
| 4873 | fi |
| 4874 | done |
| 4875 | done |
| 4876 | IFS=$as_save_IFS |
| 4877 | |
| 4878 | ;; |
| 4879 | esac |
| 4880 | fi |
| 4881 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4882 | if test -n "$TEST_MINUS_S_SH"; then |
| 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4884 | $as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4885 | else |
| 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4887 | $as_echo "no" >&6; } |
| 4888 | fi |
| 4889 | |
| 4890 | |
| 4891 | # Extract the first word of "sh", so it can be a program name with args. |
| 4892 | set dummy sh; ac_word=$2 |
| 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4894 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4895 | if ${ac_cv_path_SH+:} false; then : |
| 4896 | $as_echo_n "(cached) " >&6 |
| 4897 | else |
| 4898 | case $SH in |
| 4899 | [\\/]* | ?:[\\/]*) |
| 4900 | ac_cv_path_SH="$SH" # Let the user override the test with a path. |
| 4901 | ;; |
| 4902 | *) |
| 4903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4904 | for as_dir in $PATH |
| 4905 | do |
| 4906 | IFS=$as_save_IFS |
| 4907 | test -z "$as_dir" && as_dir=. |
| 4908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4910 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4912 | break 2 |
| 4913 | fi |
| 4914 | done |
| 4915 | done |
| 4916 | IFS=$as_save_IFS |
| 4917 | |
| 4918 | ;; |
| 4919 | esac |
| 4920 | fi |
| 4921 | SH=$ac_cv_path_SH |
| 4922 | if test -n "$SH"; then |
| 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 |
| 4924 | $as_echo "$SH" >&6; } |
| 4925 | else |
| 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4927 | $as_echo "no" >&6; } |
| 4928 | fi |
| 4929 | |
| 4930 | |
| 4931 | # Extract the first word of "groff", so it can be a program name with args. |
| 4932 | set dummy groff; ac_word=$2 |
| 4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4934 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4935 | if ${ac_cv_path_GROFF+:} false; then : |
| 4936 | $as_echo_n "(cached) " >&6 |
| 4937 | else |
| 4938 | case $GROFF in |
| 4939 | [\\/]* | ?:[\\/]*) |
| 4940 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 4941 | ;; |
| 4942 | *) |
| 4943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4944 | for as_dir in $PATH |
| 4945 | do |
| 4946 | IFS=$as_save_IFS |
| 4947 | test -z "$as_dir" && as_dir=. |
| 4948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4950 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 4951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4952 | break 2 |
| 4953 | fi |
| 4954 | done |
| 4955 | done |
| 4956 | IFS=$as_save_IFS |
| 4957 | |
| 4958 | ;; |
| 4959 | esac |
| 4960 | fi |
| 4961 | GROFF=$ac_cv_path_GROFF |
| 4962 | if test -n "$GROFF"; then |
| 4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 |
| 4964 | $as_echo "$GROFF" >&6; } |
| 4965 | else |
| 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4967 | $as_echo "no" >&6; } |
| 4968 | fi |
| 4969 | |
| 4970 | |
| 4971 | # Extract the first word of "nroff", so it can be a program name with args. |
| 4972 | set dummy nroff; ac_word=$2 |
| 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4974 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4975 | if ${ac_cv_path_NROFF+:} false; then : |
| 4976 | $as_echo_n "(cached) " >&6 |
| 4977 | else |
| 4978 | case $NROFF in |
| 4979 | [\\/]* | ?:[\\/]*) |
| 4980 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 4981 | ;; |
| 4982 | *) |
| 4983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4984 | for as_dir in $PATH |
| 4985 | do |
| 4986 | IFS=$as_save_IFS |
| 4987 | test -z "$as_dir" && as_dir=. |
| 4988 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4990 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
| 4991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4992 | break 2 |
| 4993 | fi |
| 4994 | done |
| 4995 | done |
| 4996 | IFS=$as_save_IFS |
| 4997 | |
| 4998 | ;; |
| 4999 | esac |
| 5000 | fi |
| 5001 | NROFF=$ac_cv_path_NROFF |
| 5002 | if test -n "$NROFF"; then |
| 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 5004 | $as_echo "$NROFF" >&6; } |
| 5005 | else |
| 5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5007 | $as_echo "no" >&6; } |
| 5008 | fi |
| 5009 | |
| 5010 | |
| 5011 | # Extract the first word of "mandoc", so it can be a program name with args. |
| 5012 | set dummy mandoc; ac_word=$2 |
| 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5014 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5015 | if ${ac_cv_path_MANDOC+:} false; then : |
| 5016 | $as_echo_n "(cached) " >&6 |
| 5017 | else |
| 5018 | case $MANDOC in |
| 5019 | [\\/]* | ?:[\\/]*) |
| 5020 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. |
| 5021 | ;; |
| 5022 | *) |
| 5023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5024 | for as_dir in $PATH |
| 5025 | do |
| 5026 | IFS=$as_save_IFS |
| 5027 | test -z "$as_dir" && as_dir=. |
| 5028 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5030 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" |
| 5031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5032 | break 2 |
| 5033 | fi |
| 5034 | done |
| 5035 | done |
| 5036 | IFS=$as_save_IFS |
| 5037 | |
| 5038 | ;; |
| 5039 | esac |
| 5040 | fi |
| 5041 | MANDOC=$ac_cv_path_MANDOC |
| 5042 | if test -n "$MANDOC"; then |
| 5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 |
| 5044 | $as_echo "$MANDOC" >&6; } |
| 5045 | else |
| 5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5047 | $as_echo "no" >&6; } |
| 5048 | fi |
| 5049 | |
| 5050 | |
| 5051 | TEST_SHELL=sh |
| 5052 | |
| 5053 | |
| 5054 | if test "x$MANDOC" != "x" ; then |
| 5055 | MANFMT="$MANDOC" |
| 5056 | elif test "x$NROFF" != "x" ; then |
| 5057 | MANFMT="$NROFF -mandoc" |
| 5058 | elif test "x$GROFF" != "x" ; then |
| 5059 | MANFMT="$GROFF -mandoc -Tascii" |
| 5060 | else |
| 5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 |
| 5062 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} |
| 5063 | MANFMT="false" |
| 5064 | fi |
| 5065 | |
| 5066 | |
| 5067 | # Extract the first word of "groupadd", so it can be a program name with args. |
| 5068 | set dummy groupadd; ac_word=$2 |
| 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5071 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : |
| 5072 | $as_echo_n "(cached) " >&6 |
| 5073 | else |
| 5074 | case $PATH_GROUPADD_PROG in |
| 5075 | [\\/]* | ?:[\\/]*) |
| 5076 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. |
| 5077 | ;; |
| 5078 | *) |
| 5079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5080 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5081 | do |
| 5082 | IFS=$as_save_IFS |
| 5083 | test -z "$as_dir" && as_dir=. |
| 5084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5086 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5088 | break 2 |
| 5089 | fi |
| 5090 | done |
| 5091 | done |
| 5092 | IFS=$as_save_IFS |
| 5093 | |
| 5094 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" |
| 5095 | ;; |
| 5096 | esac |
| 5097 | fi |
| 5098 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG |
| 5099 | if test -n "$PATH_GROUPADD_PROG"; then |
| 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 |
| 5101 | $as_echo "$PATH_GROUPADD_PROG" >&6; } |
| 5102 | else |
| 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5104 | $as_echo "no" >&6; } |
| 5105 | fi |
| 5106 | |
| 5107 | |
| 5108 | # Extract the first word of "useradd", so it can be a program name with args. |
| 5109 | set dummy useradd; ac_word=$2 |
| 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5111 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5112 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : |
| 5113 | $as_echo_n "(cached) " >&6 |
| 5114 | else |
| 5115 | case $PATH_USERADD_PROG in |
| 5116 | [\\/]* | ?:[\\/]*) |
| 5117 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. |
| 5118 | ;; |
| 5119 | *) |
| 5120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5121 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5122 | do |
| 5123 | IFS=$as_save_IFS |
| 5124 | test -z "$as_dir" && as_dir=. |
| 5125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5127 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5129 | break 2 |
| 5130 | fi |
| 5131 | done |
| 5132 | done |
| 5133 | IFS=$as_save_IFS |
| 5134 | |
| 5135 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" |
| 5136 | ;; |
| 5137 | esac |
| 5138 | fi |
| 5139 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG |
| 5140 | if test -n "$PATH_USERADD_PROG"; then |
| 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 |
| 5142 | $as_echo "$PATH_USERADD_PROG" >&6; } |
| 5143 | else |
| 5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5145 | $as_echo "no" >&6; } |
| 5146 | fi |
| 5147 | |
| 5148 | |
| 5149 | # Extract the first word of "pkgmk", so it can be a program name with args. |
| 5150 | set dummy pkgmk; ac_word=$2 |
| 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5152 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5153 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : |
| 5154 | $as_echo_n "(cached) " >&6 |
| 5155 | else |
| 5156 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
| 5157 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. |
| 5158 | else |
| 5159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5160 | for as_dir in $PATH |
| 5161 | do |
| 5162 | IFS=$as_save_IFS |
| 5163 | test -z "$as_dir" && as_dir=. |
| 5164 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5166 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" |
| 5167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5168 | break 2 |
| 5169 | fi |
| 5170 | done |
| 5171 | done |
| 5172 | IFS=$as_save_IFS |
| 5173 | |
| 5174 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" |
| 5175 | fi |
| 5176 | fi |
| 5177 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED |
| 5178 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
| 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 |
| 5180 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } |
| 5181 | else |
| 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5183 | $as_echo "no" >&6; } |
| 5184 | fi |
| 5185 | |
| 5186 | |
| 5187 | if test -x /sbin/sh; then |
| 5188 | STARTUP_SCRIPT_SHELL=/sbin/sh |
| 5189 | |
| 5190 | else |
| 5191 | STARTUP_SCRIPT_SHELL=/bin/sh |
| 5192 | |
| 5193 | fi |
| 5194 | |
| 5195 | # System features |
| 5196 | # Check whether --enable-largefile was given. |
| 5197 | if test "${enable_largefile+set}" = set; then : |
| 5198 | enableval=$enable_largefile; |
| 5199 | fi |
| 5200 | |
| 5201 | if test "$enable_largefile" != no; then |
| 5202 | |
| 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5204 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5205 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 5206 | $as_echo_n "(cached) " >&6 |
| 5207 | else |
| 5208 | ac_cv_sys_largefile_CC=no |
| 5209 | if test "$GCC" != yes; then |
| 5210 | ac_save_CC=$CC |
| 5211 | while :; do |
| 5212 | # IRIX 6.2 and later do not support large files by default, |
| 5213 | # so use the C compiler's -n32 option if that helps. |
| 5214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5215 | /* end confdefs.h. */ |
| 5216 | #include <sys/types.h> |
| 5217 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5218 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5219 | since some C++ compilers masquerading as C compilers |
| 5220 | incorrectly reject 9223372036854775807. */ |
| 5221 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5222 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5223 | && LARGE_OFF_T % 2147483647 == 1) |
| 5224 | ? 1 : -1]; |
| 5225 | int |
| 5226 | main () |
| 5227 | { |
| 5228 | |
| 5229 | ; |
| 5230 | return 0; |
| 5231 | } |
| 5232 | _ACEOF |
| 5233 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5234 | break |
| 5235 | fi |
| 5236 | rm -f core conftest.err conftest.$ac_objext |
| 5237 | CC="$CC -n32" |
| 5238 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5239 | ac_cv_sys_largefile_CC=' -n32'; break |
| 5240 | fi |
| 5241 | rm -f core conftest.err conftest.$ac_objext |
| 5242 | break |
| 5243 | done |
| 5244 | CC=$ac_save_CC |
| 5245 | rm -f conftest.$ac_ext |
| 5246 | fi |
| 5247 | fi |
| 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5249 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5250 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 5251 | CC=$CC$ac_cv_sys_largefile_CC |
| 5252 | fi |
| 5253 | |
| 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5255 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5256 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 5257 | $as_echo_n "(cached) " >&6 |
| 5258 | else |
| 5259 | while :; do |
| 5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5261 | /* end confdefs.h. */ |
| 5262 | #include <sys/types.h> |
| 5263 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5264 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5265 | since some C++ compilers masquerading as C compilers |
| 5266 | incorrectly reject 9223372036854775807. */ |
| 5267 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5268 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5269 | && LARGE_OFF_T % 2147483647 == 1) |
| 5270 | ? 1 : -1]; |
| 5271 | int |
| 5272 | main () |
| 5273 | { |
| 5274 | |
| 5275 | ; |
| 5276 | return 0; |
| 5277 | } |
| 5278 | _ACEOF |
| 5279 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5280 | ac_cv_sys_file_offset_bits=no; break |
| 5281 | fi |
| 5282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5284 | /* end confdefs.h. */ |
| 5285 | #define _FILE_OFFSET_BITS 64 |
| 5286 | #include <sys/types.h> |
| 5287 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5288 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5289 | since some C++ compilers masquerading as C compilers |
| 5290 | incorrectly reject 9223372036854775807. */ |
| 5291 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5292 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5293 | && LARGE_OFF_T % 2147483647 == 1) |
| 5294 | ? 1 : -1]; |
| 5295 | int |
| 5296 | main () |
| 5297 | { |
| 5298 | |
| 5299 | ; |
| 5300 | return 0; |
| 5301 | } |
| 5302 | _ACEOF |
| 5303 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5304 | ac_cv_sys_file_offset_bits=64; break |
| 5305 | fi |
| 5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5307 | ac_cv_sys_file_offset_bits=unknown |
| 5308 | break |
| 5309 | done |
| 5310 | fi |
| 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5312 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5313 | case $ac_cv_sys_file_offset_bits in #( |
| 5314 | no | unknown) ;; |
| 5315 | *) |
| 5316 | cat >>confdefs.h <<_ACEOF |
| 5317 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5318 | _ACEOF |
| 5319 | ;; |
| 5320 | esac |
| 5321 | rm -rf conftest* |
| 5322 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5324 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5325 | if ${ac_cv_sys_large_files+:} false; then : |
| 5326 | $as_echo_n "(cached) " >&6 |
| 5327 | else |
| 5328 | while :; do |
| 5329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5330 | /* end confdefs.h. */ |
| 5331 | #include <sys/types.h> |
| 5332 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5333 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5334 | since some C++ compilers masquerading as C compilers |
| 5335 | incorrectly reject 9223372036854775807. */ |
| 5336 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5337 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5338 | && LARGE_OFF_T % 2147483647 == 1) |
| 5339 | ? 1 : -1]; |
| 5340 | int |
| 5341 | main () |
| 5342 | { |
| 5343 | |
| 5344 | ; |
| 5345 | return 0; |
| 5346 | } |
| 5347 | _ACEOF |
| 5348 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5349 | ac_cv_sys_large_files=no; break |
| 5350 | fi |
| 5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5353 | /* end confdefs.h. */ |
| 5354 | #define _LARGE_FILES 1 |
| 5355 | #include <sys/types.h> |
| 5356 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 5357 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5358 | since some C++ compilers masquerading as C compilers |
| 5359 | incorrectly reject 9223372036854775807. */ |
| 5360 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5361 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5362 | && LARGE_OFF_T % 2147483647 == 1) |
| 5363 | ? 1 : -1]; |
| 5364 | int |
| 5365 | main () |
| 5366 | { |
| 5367 | |
| 5368 | ; |
| 5369 | return 0; |
| 5370 | } |
| 5371 | _ACEOF |
| 5372 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5373 | ac_cv_sys_large_files=1; break |
| 5374 | fi |
| 5375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5376 | ac_cv_sys_large_files=unknown |
| 5377 | break |
| 5378 | done |
| 5379 | fi |
| 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5381 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 5382 | case $ac_cv_sys_large_files in #( |
| 5383 | no | unknown) ;; |
| 5384 | *) |
| 5385 | cat >>confdefs.h <<_ACEOF |
| 5386 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 5387 | _ACEOF |
| 5388 | ;; |
| 5389 | esac |
| 5390 | rm -rf conftest* |
| 5391 | fi |
| 5392 | fi |
| 5393 | |
| 5394 | |
| 5395 | if test -z "$AR" ; then |
| 5396 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 |
| 5397 | fi |
| 5398 | |
| 5399 | # Use LOGIN_PROGRAM from environment if possible |
| 5400 | if test ! -z "$LOGIN_PROGRAM" ; then |
| 5401 | |
| 5402 | cat >>confdefs.h <<_ACEOF |
| 5403 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" |
| 5404 | _ACEOF |
| 5405 | |
| 5406 | else |
| 5407 | # Search for login |
| 5408 | # Extract the first word of "login", so it can be a program name with args. |
| 5409 | set dummy login; ac_word=$2 |
| 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5411 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5412 | if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : |
| 5413 | $as_echo_n "(cached) " >&6 |
| 5414 | else |
| 5415 | case $LOGIN_PROGRAM_FALLBACK in |
| 5416 | [\\/]* | ?:[\\/]*) |
| 5417 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. |
| 5418 | ;; |
| 5419 | *) |
| 5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5421 | for as_dir in $PATH |
| 5422 | do |
| 5423 | IFS=$as_save_IFS |
| 5424 | test -z "$as_dir" && as_dir=. |
| 5425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5427 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" |
| 5428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5429 | break 2 |
| 5430 | fi |
| 5431 | done |
| 5432 | done |
| 5433 | IFS=$as_save_IFS |
| 5434 | |
| 5435 | ;; |
| 5436 | esac |
| 5437 | fi |
| 5438 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK |
| 5439 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then |
| 5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 |
| 5441 | $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } |
| 5442 | else |
| 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5444 | $as_echo "no" >&6; } |
| 5445 | fi |
| 5446 | |
| 5447 | |
| 5448 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then |
| 5449 | cat >>confdefs.h <<_ACEOF |
| 5450 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" |
| 5451 | _ACEOF |
| 5452 | |
| 5453 | fi |
| 5454 | fi |
| 5455 | |
| 5456 | # Extract the first word of "passwd", so it can be a program name with args. |
| 5457 | set dummy passwd; ac_word=$2 |
| 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5459 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5460 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : |
| 5461 | $as_echo_n "(cached) " >&6 |
| 5462 | else |
| 5463 | case $PATH_PASSWD_PROG in |
| 5464 | [\\/]* | ?:[\\/]*) |
| 5465 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. |
| 5466 | ;; |
| 5467 | *) |
| 5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5469 | for as_dir in $PATH |
| 5470 | do |
| 5471 | IFS=$as_save_IFS |
| 5472 | test -z "$as_dir" && as_dir=. |
| 5473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5475 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5477 | break 2 |
| 5478 | fi |
| 5479 | done |
| 5480 | done |
| 5481 | IFS=$as_save_IFS |
| 5482 | |
| 5483 | ;; |
| 5484 | esac |
| 5485 | fi |
| 5486 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG |
| 5487 | if test -n "$PATH_PASSWD_PROG"; then |
| 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 |
| 5489 | $as_echo "$PATH_PASSWD_PROG" >&6; } |
| 5490 | else |
| 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5492 | $as_echo "no" >&6; } |
| 5493 | fi |
| 5494 | |
| 5495 | |
| 5496 | if test ! -z "$PATH_PASSWD_PROG" ; then |
| 5497 | |
| 5498 | cat >>confdefs.h <<_ACEOF |
| 5499 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" |
| 5500 | _ACEOF |
| 5501 | |
| 5502 | fi |
| 5503 | |
| 5504 | if test -z "$LD" ; then |
| 5505 | LD=$CC |
| 5506 | fi |
| 5507 | |
| 5508 | |
| 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5510 | $as_echo_n "checking for inline... " >&6; } |
| 5511 | if ${ac_cv_c_inline+:} false; then : |
| 5512 | $as_echo_n "(cached) " >&6 |
| 5513 | else |
| 5514 | ac_cv_c_inline=no |
| 5515 | for ac_kw in inline __inline__ __inline; do |
| 5516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5517 | /* end confdefs.h. */ |
| 5518 | #ifndef __cplusplus |
| 5519 | typedef int foo_t; |
| 5520 | static $ac_kw foo_t static_foo () {return 0; } |
| 5521 | $ac_kw foo_t foo () {return 0; } |
| 5522 | #endif |
| 5523 | |
| 5524 | _ACEOF |
| 5525 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5526 | ac_cv_c_inline=$ac_kw |
| 5527 | fi |
| 5528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5529 | test "$ac_cv_c_inline" != no && break |
| 5530 | done |
| 5531 | |
| 5532 | fi |
| 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5534 | $as_echo "$ac_cv_c_inline" >&6; } |
| 5535 | |
| 5536 | case $ac_cv_c_inline in |
| 5537 | inline | yes) ;; |
| 5538 | *) |
| 5539 | case $ac_cv_c_inline in |
| 5540 | no) ac_val=;; |
| 5541 | *) ac_val=$ac_cv_c_inline;; |
| 5542 | esac |
| 5543 | cat >>confdefs.h <<_ACEOF |
| 5544 | #ifndef __cplusplus |
| 5545 | #define inline $ac_val |
| 5546 | #endif |
| 5547 | _ACEOF |
| 5548 | ;; |
| 5549 | esac |
| 5550 | |
| 5551 | |
| 5552 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
| 5553 | " |
| 5554 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
| 5555 | have_llong_max=1 |
| 5556 | fi |
| 5557 | |
| 5558 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " |
| 5559 | #include <sys/types.h> |
| 5560 | #include <sys/param.h> |
| 5561 | #include <dev/systrace.h> |
| 5562 | |
| 5563 | " |
| 5564 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : |
| 5565 | have_systr_policy_kill=1 |
| 5566 | fi |
| 5567 | |
| 5568 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " |
| 5569 | #include <sys/types.h> |
| 5570 | #include <sys/resource.h> |
| 5571 | |
| 5572 | " |
| 5573 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : |
| 5574 | |
| 5575 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h |
| 5576 | |
| 5577 | fi |
| 5578 | |
| 5579 | |
| 5580 | use_stack_protector=1 |
| 5581 | |
| 5582 | # Check whether --with-stackprotect was given. |
| 5583 | if test "${with_stackprotect+set}" = set; then : |
| 5584 | withval=$with_stackprotect; |
| 5585 | if test "x$withval" = "xno"; then |
| 5586 | use_stack_protector=0 |
| 5587 | fi |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then |
| 5593 | { |
| 5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 |
| 5595 | $as_echo_n "checking if $CC supports -Wall... " >&6; } |
| 5596 | saved_CFLAGS="$CFLAGS" |
| 5597 | CFLAGS="$CFLAGS -Wall" |
| 5598 | _define_flag="" |
| 5599 | test "x$_define_flag" = "x" && _define_flag="-Wall" |
| 5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5601 | /* end confdefs.h. */ |
| 5602 | int main(void) { return 0; } |
| 5603 | _ACEOF |
| 5604 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5606 | $as_echo "yes" >&6; } |
| 5607 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5608 | else |
| 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5610 | $as_echo "no" >&6; } |
| 5611 | CFLAGS="$saved_CFLAGS" |
| 5612 | |
| 5613 | fi |
| 5614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5615 | } |
| 5616 | { |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 |
| 5618 | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } |
| 5619 | saved_CFLAGS="$CFLAGS" |
| 5620 | CFLAGS="$CFLAGS -Wpointer-arith" |
| 5621 | _define_flag="" |
| 5622 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" |
| 5623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5624 | /* end confdefs.h. */ |
| 5625 | int main(void) { return 0; } |
| 5626 | _ACEOF |
| 5627 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5629 | $as_echo "yes" >&6; } |
| 5630 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5631 | else |
| 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5633 | $as_echo "no" >&6; } |
| 5634 | CFLAGS="$saved_CFLAGS" |
| 5635 | |
| 5636 | fi |
| 5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5638 | } |
| 5639 | { |
| 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 |
| 5641 | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } |
| 5642 | saved_CFLAGS="$CFLAGS" |
| 5643 | CFLAGS="$CFLAGS -Wuninitialized" |
| 5644 | _define_flag="" |
| 5645 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" |
| 5646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5647 | /* end confdefs.h. */ |
| 5648 | int main(void) { return 0; } |
| 5649 | _ACEOF |
| 5650 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5652 | $as_echo "yes" >&6; } |
| 5653 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5654 | else |
| 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5656 | $as_echo "no" >&6; } |
| 5657 | CFLAGS="$saved_CFLAGS" |
| 5658 | |
| 5659 | fi |
| 5660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5661 | } |
| 5662 | { |
| 5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5 |
| 5664 | $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; } |
| 5665 | saved_CFLAGS="$CFLAGS" |
| 5666 | CFLAGS="$CFLAGS -Wsign-compare" |
| 5667 | _define_flag="" |
| 5668 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" |
| 5669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5670 | /* end confdefs.h. */ |
| 5671 | int main(void) { return 0; } |
| 5672 | _ACEOF |
| 5673 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5675 | $as_echo "yes" >&6; } |
| 5676 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5677 | else |
| 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5679 | $as_echo "no" >&6; } |
| 5680 | CFLAGS="$saved_CFLAGS" |
| 5681 | |
| 5682 | fi |
| 5683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5684 | } |
| 5685 | { |
| 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5 |
| 5687 | $as_echo_n "checking if $CC supports -Wformat-security... " >&6; } |
| 5688 | saved_CFLAGS="$CFLAGS" |
| 5689 | CFLAGS="$CFLAGS -Wformat-security" |
| 5690 | _define_flag="" |
| 5691 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" |
| 5692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5693 | /* end confdefs.h. */ |
| 5694 | int main(void) { return 0; } |
| 5695 | _ACEOF |
| 5696 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5698 | $as_echo "yes" >&6; } |
| 5699 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5700 | else |
| 5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5702 | $as_echo "no" >&6; } |
| 5703 | CFLAGS="$saved_CFLAGS" |
| 5704 | |
| 5705 | fi |
| 5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5707 | } |
| 5708 | { |
| 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5 |
| 5710 | $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; } |
| 5711 | saved_CFLAGS="$CFLAGS" |
| 5712 | CFLAGS="$CFLAGS -Wpointer-sign" |
| 5713 | _define_flag="-Wno-pointer-sign" |
| 5714 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" |
| 5715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5716 | /* end confdefs.h. */ |
| 5717 | int main(void) { return 0; } |
| 5718 | _ACEOF |
| 5719 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5721 | $as_echo "yes" >&6; } |
| 5722 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5723 | else |
| 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5725 | $as_echo "no" >&6; } |
| 5726 | CFLAGS="$saved_CFLAGS" |
| 5727 | |
| 5728 | fi |
| 5729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5730 | } |
| 5731 | { |
| 5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5 |
| 5733 | $as_echo_n "checking if $CC supports -Wunused-result... " >&6; } |
| 5734 | saved_CFLAGS="$CFLAGS" |
| 5735 | CFLAGS="$CFLAGS -Wunused-result" |
| 5736 | _define_flag="-Wno-unused-result" |
| 5737 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" |
| 5738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5739 | /* end confdefs.h. */ |
| 5740 | int main(void) { return 0; } |
| 5741 | _ACEOF |
| 5742 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5744 | $as_echo "yes" >&6; } |
| 5745 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5746 | else |
| 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5748 | $as_echo "no" >&6; } |
| 5749 | CFLAGS="$saved_CFLAGS" |
| 5750 | |
| 5751 | fi |
| 5752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5753 | } |
| 5754 | { |
| 5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 |
| 5756 | $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } |
| 5757 | saved_CFLAGS="$CFLAGS" |
| 5758 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 5759 | _define_flag="" |
| 5760 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" |
| 5761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5762 | /* end confdefs.h. */ |
| 5763 | int main(void) { return 0; } |
| 5764 | _ACEOF |
| 5765 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5767 | $as_echo "yes" >&6; } |
| 5768 | CFLAGS="$saved_CFLAGS $_define_flag" |
| 5769 | else |
| 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5771 | $as_echo "no" >&6; } |
| 5772 | CFLAGS="$saved_CFLAGS" |
| 5773 | |
| 5774 | fi |
| 5775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5776 | } |
| 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 |
| 5778 | $as_echo_n "checking gcc version... " >&6; } |
| 5779 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` |
| 5780 | case $GCC_VER in |
| 5781 | 1.*) no_attrib_nonnull=1 ;; |
| 5782 | 2.8* | 2.9*) |
| 5783 | no_attrib_nonnull=1 |
| 5784 | ;; |
| 5785 | 2.*) no_attrib_nonnull=1 ;; |
| 5786 | *) ;; |
| 5787 | esac |
| 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 |
| 5789 | $as_echo "$GCC_VER" >&6; } |
| 5790 | |
| 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 |
| 5792 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } |
| 5793 | saved_CFLAGS="$CFLAGS" |
| 5794 | CFLAGS="$CFLAGS -fno-builtin-memset" |
| 5795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5796 | /* end confdefs.h. */ |
| 5797 | #include <string.h> |
| 5798 | int |
| 5799 | main () |
| 5800 | { |
| 5801 | char b[10]; memset(b, 0, sizeof(b)); |
| 5802 | ; |
| 5803 | return 0; |
| 5804 | } |
| 5805 | _ACEOF |
| 5806 | if ac_fn_c_try_link "$LINENO"; then : |
| 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5808 | $as_echo "yes" >&6; } |
| 5809 | else |
| 5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5811 | $as_echo "no" >&6; } |
| 5812 | CFLAGS="$saved_CFLAGS" |
| 5813 | |
| 5814 | fi |
| 5815 | rm -f core conftest.err conftest.$ac_objext \ |
| 5816 | conftest$ac_exeext conftest.$ac_ext |
| 5817 | |
| 5818 | # -fstack-protector-all doesn't always work for some GCC versions |
| 5819 | # and/or platforms, so we test if we can. If it's not supported |
| 5820 | # on a given platform gcc will emit a warning so we use -Werror. |
| 5821 | if test "x$use_stack_protector" = "x1"; then |
| 5822 | for t in -fstack-protector-all -fstack-protector; do |
| 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 |
| 5824 | $as_echo_n "checking if $CC supports $t... " >&6; } |
| 5825 | saved_CFLAGS="$CFLAGS" |
| 5826 | saved_LDFLAGS="$LDFLAGS" |
| 5827 | CFLAGS="$CFLAGS $t -Werror" |
| 5828 | LDFLAGS="$LDFLAGS $t -Werror" |
| 5829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5830 | /* end confdefs.h. */ |
| 5831 | #include <stdio.h> |
| 5832 | int |
| 5833 | main () |
| 5834 | { |
| 5835 | |
| 5836 | char x[256]; |
| 5837 | snprintf(x, sizeof(x), "XXX"); |
| 5838 | |
| 5839 | ; |
| 5840 | return 0; |
| 5841 | } |
| 5842 | _ACEOF |
| 5843 | if ac_fn_c_try_link "$LINENO"; then : |
| 5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5845 | $as_echo "yes" >&6; } |
| 5846 | CFLAGS="$saved_CFLAGS $t" |
| 5847 | LDFLAGS="$saved_LDFLAGS $t" |
| 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 |
| 5849 | $as_echo_n "checking if $t works... " >&6; } |
| 5850 | if test "$cross_compiling" = yes; then : |
| 5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 |
| 5852 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} |
| 5853 | break |
| 5854 | |
| 5855 | else |
| 5856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5857 | /* end confdefs.h. */ |
| 5858 | #include <stdio.h> |
| 5859 | int |
| 5860 | main () |
| 5861 | { |
| 5862 | |
| 5863 | char x[256]; |
| 5864 | snprintf(x, sizeof(x), "XXX"); |
| 5865 | |
| 5866 | ; |
| 5867 | return 0; |
| 5868 | } |
| 5869 | _ACEOF |
| 5870 | if ac_fn_c_try_run "$LINENO"; then : |
| 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5872 | $as_echo "yes" >&6; } |
| 5873 | break |
| 5874 | else |
| 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5876 | $as_echo "no" >&6; } |
| 5877 | fi |
| 5878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5879 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5880 | fi |
| 5881 | |
| 5882 | |
| 5883 | else |
| 5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5885 | $as_echo "no" >&6; } |
| 5886 | |
| 5887 | fi |
| 5888 | rm -f core conftest.err conftest.$ac_objext \ |
| 5889 | conftest$ac_exeext conftest.$ac_ext |
| 5890 | CFLAGS="$saved_CFLAGS" |
| 5891 | LDFLAGS="$saved_LDFLAGS" |
| 5892 | done |
| 5893 | fi |
| 5894 | |
| 5895 | if test -z "$have_llong_max"; then |
| 5896 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes |
| 5897 | unset ac_cv_have_decl_LLONG_MAX |
| 5898 | saved_CFLAGS="$CFLAGS" |
| 5899 | CFLAGS="$CFLAGS -std=gnu99" |
| 5900 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
| 5901 | |
| 5902 | " |
| 5903 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
| 5904 | have_llong_max=1 |
| 5905 | else |
| 5906 | CFLAGS="$saved_CFLAGS" |
| 5907 | fi |
| 5908 | |
| 5909 | fi |
| 5910 | fi |
| 5911 | |
| 5912 | if test "x$no_attrib_nonnull" != "x1" ; then |
| 5913 | |
| 5914 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h |
| 5915 | |
| 5916 | fi |
| 5917 | |
| 5918 | |
| 5919 | # Check whether --with-rpath was given. |
| 5920 | if test "${with_rpath+set}" = set; then : |
| 5921 | withval=$with_rpath; |
| 5922 | if test "x$withval" = "xno" ; then |
| 5923 | need_dash_r="" |
| 5924 | fi |
| 5925 | if test "x$withval" = "xyes" ; then |
| 5926 | need_dash_r=1 |
| 5927 | fi |
| 5928 | |
| 5929 | |
| 5930 | fi |
| 5931 | |
| 5932 | |
| 5933 | # Allow user to specify flags |
| 5934 | |
| 5935 | # Check whether --with-cflags was given. |
| 5936 | if test "${with_cflags+set}" = set; then : |
| 5937 | withval=$with_cflags; |
| 5938 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 5939 | test "x${withval}" != "xyes"; then |
| 5940 | CFLAGS="$CFLAGS $withval" |
| 5941 | fi |
| 5942 | |
| 5943 | |
| 5944 | fi |
| 5945 | |
| 5946 | |
| 5947 | # Check whether --with-cppflags was given. |
| 5948 | if test "${with_cppflags+set}" = set; then : |
| 5949 | withval=$with_cppflags; |
| 5950 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 5951 | test "x${withval}" != "xyes"; then |
| 5952 | CPPFLAGS="$CPPFLAGS $withval" |
| 5953 | fi |
| 5954 | |
| 5955 | |
| 5956 | fi |
| 5957 | |
| 5958 | |
| 5959 | # Check whether --with-ldflags was given. |
| 5960 | if test "${with_ldflags+set}" = set; then : |
| 5961 | withval=$with_ldflags; |
| 5962 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 5963 | test "x${withval}" != "xyes"; then |
| 5964 | LDFLAGS="$LDFLAGS $withval" |
| 5965 | fi |
| 5966 | |
| 5967 | |
| 5968 | fi |
| 5969 | |
| 5970 | |
| 5971 | # Check whether --with-libs was given. |
| 5972 | if test "${with_libs+set}" = set; then : |
| 5973 | withval=$with_libs; |
| 5974 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 5975 | test "x${withval}" != "xyes"; then |
| 5976 | LIBS="$LIBS $withval" |
| 5977 | fi |
| 5978 | |
| 5979 | |
| 5980 | fi |
| 5981 | |
| 5982 | |
| 5983 | # Check whether --with-Werror was given. |
| 5984 | if test "${with_Werror+set}" = set; then : |
| 5985 | withval=$with_Werror; |
| 5986 | if test -n "$withval" && test "x$withval" != "xno"; then |
| 5987 | werror_flags="-Werror" |
| 5988 | if test "x${withval}" != "xyes"; then |
| 5989 | werror_flags="$withval" |
| 5990 | fi |
| 5991 | fi |
| 5992 | |
| 5993 | |
| 5994 | fi |
| 5995 | |
| 5996 | |
| 5997 | for ac_header in \ |
| 5998 | bstring.h \ |
| 5999 | crypt.h \ |
| 6000 | crypto/sha2.h \ |
| 6001 | dirent.h \ |
| 6002 | endian.h \ |
| 6003 | features.h \ |
| 6004 | fcntl.h \ |
| 6005 | floatingpoint.h \ |
| 6006 | getopt.h \ |
| 6007 | glob.h \ |
| 6008 | ia.h \ |
| 6009 | iaf.h \ |
| 6010 | limits.h \ |
| 6011 | login.h \ |
| 6012 | maillock.h \ |
| 6013 | ndir.h \ |
| 6014 | net/if_tun.h \ |
| 6015 | netdb.h \ |
| 6016 | netgroup.h \ |
| 6017 | pam/pam_appl.h \ |
| 6018 | paths.h \ |
| 6019 | poll.h \ |
| 6020 | pty.h \ |
| 6021 | readpassphrase.h \ |
| 6022 | rpc/types.h \ |
| 6023 | security/pam_appl.h \ |
| 6024 | sha2.h \ |
| 6025 | shadow.h \ |
| 6026 | stddef.h \ |
| 6027 | stdint.h \ |
| 6028 | string.h \ |
| 6029 | strings.h \ |
| 6030 | sys/audit.h \ |
| 6031 | sys/bitypes.h \ |
| 6032 | sys/bsdtty.h \ |
| 6033 | sys/cdefs.h \ |
| 6034 | sys/dir.h \ |
| 6035 | sys/mman.h \ |
| 6036 | sys/ndir.h \ |
| 6037 | sys/poll.h \ |
| 6038 | sys/prctl.h \ |
| 6039 | sys/pstat.h \ |
| 6040 | sys/select.h \ |
| 6041 | sys/stat.h \ |
| 6042 | sys/stream.h \ |
| 6043 | sys/stropts.h \ |
| 6044 | sys/strtio.h \ |
| 6045 | sys/statvfs.h \ |
| 6046 | sys/sysmacros.h \ |
| 6047 | sys/time.h \ |
| 6048 | sys/timers.h \ |
| 6049 | sys/un.h \ |
| 6050 | time.h \ |
| 6051 | tmpdir.h \ |
| 6052 | ttyent.h \ |
| 6053 | ucred.h \ |
| 6054 | unistd.h \ |
| 6055 | usersec.h \ |
| 6056 | util.h \ |
| 6057 | utime.h \ |
| 6058 | utmp.h \ |
| 6059 | utmpx.h \ |
| 6060 | vis.h \ |
| 6061 | |
| 6062 | do : |
| 6063 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6064 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6065 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6066 | cat >>confdefs.h <<_ACEOF |
| 6067 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6068 | _ACEOF |
| 6069 | |
| 6070 | fi |
| 6071 | |
| 6072 | done |
| 6073 | |
| 6074 | |
| 6075 | # lastlog.h requires sys/time.h to be included first on Solaris |
| 6076 | for ac_header in lastlog.h |
| 6077 | do : |
| 6078 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " |
| 6079 | #ifdef HAVE_SYS_TIME_H |
| 6080 | # include <sys/time.h> |
| 6081 | #endif |
| 6082 | |
| 6083 | " |
| 6084 | if test "x$ac_cv_header_lastlog_h" = xyes; then : |
| 6085 | cat >>confdefs.h <<_ACEOF |
| 6086 | #define HAVE_LASTLOG_H 1 |
| 6087 | _ACEOF |
| 6088 | |
| 6089 | fi |
| 6090 | |
| 6091 | done |
| 6092 | |
| 6093 | |
| 6094 | # sys/ptms.h requires sys/stream.h to be included first on Solaris |
| 6095 | for ac_header in sys/ptms.h |
| 6096 | do : |
| 6097 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " |
| 6098 | #ifdef HAVE_SYS_STREAM_H |
| 6099 | # include <sys/stream.h> |
| 6100 | #endif |
| 6101 | |
| 6102 | " |
| 6103 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : |
| 6104 | cat >>confdefs.h <<_ACEOF |
| 6105 | #define HAVE_SYS_PTMS_H 1 |
| 6106 | _ACEOF |
| 6107 | |
| 6108 | fi |
| 6109 | |
| 6110 | done |
| 6111 | |
| 6112 | |
| 6113 | # login_cap.h requires sys/types.h on NetBSD |
| 6114 | for ac_header in login_cap.h |
| 6115 | do : |
| 6116 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " |
| 6117 | #include <sys/types.h> |
| 6118 | |
| 6119 | " |
| 6120 | if test "x$ac_cv_header_login_cap_h" = xyes; then : |
| 6121 | cat >>confdefs.h <<_ACEOF |
| 6122 | #define HAVE_LOGIN_CAP_H 1 |
| 6123 | _ACEOF |
| 6124 | |
| 6125 | fi |
| 6126 | |
| 6127 | done |
| 6128 | |
| 6129 | |
| 6130 | # older BSDs need sys/param.h before sys/mount.h |
| 6131 | for ac_header in sys/mount.h |
| 6132 | do : |
| 6133 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " |
| 6134 | #include <sys/param.h> |
| 6135 | |
| 6136 | " |
| 6137 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : |
| 6138 | cat >>confdefs.h <<_ACEOF |
| 6139 | #define HAVE_SYS_MOUNT_H 1 |
| 6140 | _ACEOF |
| 6141 | |
| 6142 | fi |
| 6143 | |
| 6144 | done |
| 6145 | |
| 6146 | |
| 6147 | # Messages for features tested for in target-specific section |
| 6148 | SIA_MSG="no" |
| 6149 | SPC_MSG="no" |
| 6150 | SP_MSG="no" |
| 6151 | |
| 6152 | # Check for some target-specific stuff |
| 6153 | case "$host" in |
| 6154 | *-*-aix*) |
| 6155 | # Some versions of VAC won't allow macro redefinitions at |
| 6156 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that |
| 6157 | # particularly with older versions of vac or xlc. |
| 6158 | # It also throws errors about null macro argments, but these are |
| 6159 | # not fatal. |
| 6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 |
| 6161 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } |
| 6162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6163 | /* end confdefs.h. */ |
| 6164 | |
| 6165 | #define testmacro foo |
| 6166 | #define testmacro bar |
| 6167 | int |
| 6168 | main () |
| 6169 | { |
| 6170 | exit(0); |
| 6171 | ; |
| 6172 | return 0; |
| 6173 | } |
| 6174 | _ACEOF |
| 6175 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6177 | $as_echo "yes" >&6; } |
| 6178 | else |
| 6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6180 | $as_echo "no" >&6; } |
| 6181 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" |
| 6182 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" |
| 6183 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6184 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6185 | |
| 6186 | |
| 6187 | fi |
| 6188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6189 | |
| 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 |
| 6191 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } |
| 6192 | if (test -z "$blibpath"); then |
| 6193 | blibpath="/usr/lib:/lib" |
| 6194 | fi |
| 6195 | saved_LDFLAGS="$LDFLAGS" |
| 6196 | if test "$GCC" = "yes"; then |
| 6197 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" |
| 6198 | else |
| 6199 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," |
| 6200 | fi |
| 6201 | for tryflags in $flags ;do |
| 6202 | if (test -z "$blibflags"); then |
| 6203 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" |
| 6204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6205 | /* end confdefs.h. */ |
| 6206 | |
| 6207 | int |
| 6208 | main () |
| 6209 | { |
| 6210 | |
| 6211 | ; |
| 6212 | return 0; |
| 6213 | } |
| 6214 | _ACEOF |
| 6215 | if ac_fn_c_try_link "$LINENO"; then : |
| 6216 | blibflags=$tryflags |
| 6217 | fi |
| 6218 | rm -f core conftest.err conftest.$ac_objext \ |
| 6219 | conftest$ac_exeext conftest.$ac_ext |
| 6220 | fi |
| 6221 | done |
| 6222 | if (test -z "$blibflags"); then |
| 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6224 | $as_echo "not found" >&6; } |
| 6225 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 |
| 6226 | else |
| 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 |
| 6228 | $as_echo "$blibflags" >&6; } |
| 6229 | fi |
| 6230 | LDFLAGS="$saved_LDFLAGS" |
| 6231 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" |
| 6232 | if test "x$ac_cv_func_authenticate" = xyes; then : |
| 6233 | |
| 6234 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
| 6235 | |
| 6236 | else |
| 6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 |
| 6238 | $as_echo_n "checking for authenticate in -ls... " >&6; } |
| 6239 | if ${ac_cv_lib_s_authenticate+:} false; then : |
| 6240 | $as_echo_n "(cached) " >&6 |
| 6241 | else |
| 6242 | ac_check_lib_save_LIBS=$LIBS |
| 6243 | LIBS="-ls $LIBS" |
| 6244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6245 | /* end confdefs.h. */ |
| 6246 | |
| 6247 | /* Override any GCC internal prototype to avoid an error. |
| 6248 | Use char because int might match the return type of a GCC |
| 6249 | builtin and then its argument prototype would still apply. */ |
| 6250 | #ifdef __cplusplus |
| 6251 | extern "C" |
| 6252 | #endif |
| 6253 | char authenticate (); |
| 6254 | int |
| 6255 | main () |
| 6256 | { |
| 6257 | return authenticate (); |
| 6258 | ; |
| 6259 | return 0; |
| 6260 | } |
| 6261 | _ACEOF |
| 6262 | if ac_fn_c_try_link "$LINENO"; then : |
| 6263 | ac_cv_lib_s_authenticate=yes |
| 6264 | else |
| 6265 | ac_cv_lib_s_authenticate=no |
| 6266 | fi |
| 6267 | rm -f core conftest.err conftest.$ac_objext \ |
| 6268 | conftest$ac_exeext conftest.$ac_ext |
| 6269 | LIBS=$ac_check_lib_save_LIBS |
| 6270 | fi |
| 6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 |
| 6272 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } |
| 6273 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : |
| 6274 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
| 6275 | |
| 6276 | LIBS="$LIBS -ls" |
| 6277 | |
| 6278 | fi |
| 6279 | |
| 6280 | |
| 6281 | fi |
| 6282 | |
| 6283 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> |
| 6284 | " |
| 6285 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : |
| 6286 | ac_have_decl=1 |
| 6287 | else |
| 6288 | ac_have_decl=0 |
| 6289 | fi |
| 6290 | |
| 6291 | cat >>confdefs.h <<_ACEOF |
| 6292 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl |
| 6293 | _ACEOF |
| 6294 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> |
| 6295 | " |
| 6296 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : |
| 6297 | ac_have_decl=1 |
| 6298 | else |
| 6299 | ac_have_decl=0 |
| 6300 | fi |
| 6301 | |
| 6302 | cat >>confdefs.h <<_ACEOF |
| 6303 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl |
| 6304 | _ACEOF |
| 6305 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> |
| 6306 | " |
| 6307 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : |
| 6308 | ac_have_decl=1 |
| 6309 | else |
| 6310 | ac_have_decl=0 |
| 6311 | fi |
| 6312 | |
| 6313 | cat >>confdefs.h <<_ACEOF |
| 6314 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl |
| 6315 | _ACEOF |
| 6316 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> |
| 6317 | " |
| 6318 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : |
| 6319 | ac_have_decl=1 |
| 6320 | else |
| 6321 | ac_have_decl=0 |
| 6322 | fi |
| 6323 | |
| 6324 | cat >>confdefs.h <<_ACEOF |
| 6325 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl |
| 6326 | _ACEOF |
| 6327 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> |
| 6328 | " |
| 6329 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : |
| 6330 | ac_have_decl=1 |
| 6331 | else |
| 6332 | ac_have_decl=0 |
| 6333 | fi |
| 6334 | |
| 6335 | cat >>confdefs.h <<_ACEOF |
| 6336 | #define HAVE_DECL_SETAUTHDB $ac_have_decl |
| 6337 | _ACEOF |
| 6338 | |
| 6339 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> |
| 6340 | |
| 6341 | " |
| 6342 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : |
| 6343 | ac_have_decl=1 |
| 6344 | else |
| 6345 | ac_have_decl=0 |
| 6346 | fi |
| 6347 | |
| 6348 | cat >>confdefs.h <<_ACEOF |
| 6349 | #define HAVE_DECL_LOGINFAILED $ac_have_decl |
| 6350 | _ACEOF |
| 6351 | if test $ac_have_decl = 1; then : |
| 6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 |
| 6353 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } |
| 6354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6355 | /* end confdefs.h. */ |
| 6356 | #include <usersec.h> |
| 6357 | int |
| 6358 | main () |
| 6359 | { |
| 6360 | (void)loginfailed("user","host","tty",0); |
| 6361 | ; |
| 6362 | return 0; |
| 6363 | } |
| 6364 | _ACEOF |
| 6365 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6367 | $as_echo "yes" >&6; } |
| 6368 | |
| 6369 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h |
| 6370 | |
| 6371 | else |
| 6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6373 | $as_echo "no" >&6; } |
| 6374 | |
| 6375 | fi |
| 6376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6377 | fi |
| 6378 | |
| 6379 | for ac_func in getgrset setauthdb |
| 6380 | do : |
| 6381 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6382 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6383 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 6384 | cat >>confdefs.h <<_ACEOF |
| 6385 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6386 | _ACEOF |
| 6387 | |
| 6388 | fi |
| 6389 | done |
| 6390 | |
| 6391 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> |
| 6392 | #include <fcntl.h> |
| 6393 | |
| 6394 | " |
| 6395 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : |
| 6396 | |
| 6397 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h |
| 6398 | |
| 6399 | fi |
| 6400 | |
| 6401 | check_for_aix_broken_getaddrinfo=1 |
| 6402 | |
| 6403 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
| 6404 | |
| 6405 | |
| 6406 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6407 | |
| 6408 | |
| 6409 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6410 | |
| 6411 | |
| 6412 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6413 | |
| 6414 | |
| 6415 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 6416 | |
| 6417 | |
| 6418 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 6419 | |
| 6420 | |
| 6421 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 6422 | |
| 6423 | |
| 6424 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
| 6425 | |
| 6426 | |
| 6427 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h |
| 6428 | |
| 6429 | ;; |
| 6430 | *-*-cygwin*) |
| 6431 | check_for_libcrypt_later=1 |
| 6432 | LIBS="$LIBS /usr/lib/textreadmode.o" |
| 6433 | |
| 6434 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h |
| 6435 | |
| 6436 | |
| 6437 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 6438 | |
| 6439 | |
| 6440 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 6441 | |
| 6442 | |
| 6443 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
| 6444 | |
| 6445 | |
| 6446 | $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h |
| 6447 | |
| 6448 | |
| 6449 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 6450 | |
| 6451 | |
| 6452 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h |
| 6453 | |
| 6454 | |
| 6455 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h |
| 6456 | |
| 6457 | ;; |
| 6458 | *-*-dgux*) |
| 6459 | |
| 6460 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
| 6461 | |
| 6462 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6463 | |
| 6464 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6465 | |
| 6466 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6467 | |
| 6468 | ;; |
| 6469 | *-*-darwin*) |
| 6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 |
| 6471 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } |
| 6472 | if test "$cross_compiling" = yes; then : |
| 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 |
| 6474 | $as_echo "assume it is working" >&6; } |
| 6475 | else |
| 6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6477 | /* end confdefs.h. */ |
| 6478 | #include <mach-o/dyld.h> |
| 6479 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
| 6480 | exit(0); |
| 6481 | else |
| 6482 | exit(1); |
| 6483 | } |
| 6484 | |
| 6485 | _ACEOF |
| 6486 | if ac_fn_c_try_run "$LINENO"; then : |
| 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 |
| 6488 | $as_echo "working" >&6; } |
| 6489 | else |
| 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
| 6491 | $as_echo "buggy" >&6; } |
| 6492 | |
| 6493 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 6494 | |
| 6495 | |
| 6496 | fi |
| 6497 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6498 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6499 | fi |
| 6500 | |
| 6501 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6502 | |
| 6503 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6504 | |
| 6505 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6506 | |
| 6507 | |
| 6508 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
| 6509 | |
| 6510 | |
| 6511 | cat >>confdefs.h <<_ACEOF |
| 6512 | #define BIND_8_COMPAT 1 |
| 6513 | _ACEOF |
| 6514 | |
| 6515 | |
| 6516 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 6517 | |
| 6518 | |
| 6519 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
| 6520 | |
| 6521 | |
| 6522 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 6523 | |
| 6524 | |
| 6525 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" |
| 6526 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : |
| 6527 | |
| 6528 | else |
| 6529 | |
| 6530 | $as_echo "#define AU_IPv4 0" >>confdefs.h |
| 6531 | |
| 6532 | #include <bsm/audit.h> |
| 6533 | |
| 6534 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h |
| 6535 | |
| 6536 | |
| 6537 | fi |
| 6538 | |
| 6539 | |
| 6540 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 6541 | |
| 6542 | for ac_func in sandbox_init |
| 6543 | do : |
| 6544 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" |
| 6545 | if test "x$ac_cv_func_sandbox_init" = xyes; then : |
| 6546 | cat >>confdefs.h <<_ACEOF |
| 6547 | #define HAVE_SANDBOX_INIT 1 |
| 6548 | _ACEOF |
| 6549 | |
| 6550 | fi |
| 6551 | done |
| 6552 | |
| 6553 | for ac_header in sandbox.h |
| 6554 | do : |
| 6555 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
| 6556 | if test "x$ac_cv_header_sandbox_h" = xyes; then : |
| 6557 | cat >>confdefs.h <<_ACEOF |
| 6558 | #define HAVE_SANDBOX_H 1 |
| 6559 | _ACEOF |
| 6560 | |
| 6561 | fi |
| 6562 | |
| 6563 | done |
| 6564 | |
| 6565 | ;; |
| 6566 | *-*-dragonfly*) |
| 6567 | SSHDLIBS="$SSHDLIBS -lcrypt" |
| 6568 | ;; |
| 6569 | *-*-haiku*) |
| 6570 | LIBS="$LIBS -lbsd " |
| 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
| 6572 | $as_echo_n "checking for socket in -lnetwork... " >&6; } |
| 6573 | if ${ac_cv_lib_network_socket+:} false; then : |
| 6574 | $as_echo_n "(cached) " >&6 |
| 6575 | else |
| 6576 | ac_check_lib_save_LIBS=$LIBS |
| 6577 | LIBS="-lnetwork $LIBS" |
| 6578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6579 | /* end confdefs.h. */ |
| 6580 | |
| 6581 | /* Override any GCC internal prototype to avoid an error. |
| 6582 | Use char because int might match the return type of a GCC |
| 6583 | builtin and then its argument prototype would still apply. */ |
| 6584 | #ifdef __cplusplus |
| 6585 | extern "C" |
| 6586 | #endif |
| 6587 | char socket (); |
| 6588 | int |
| 6589 | main () |
| 6590 | { |
| 6591 | return socket (); |
| 6592 | ; |
| 6593 | return 0; |
| 6594 | } |
| 6595 | _ACEOF |
| 6596 | if ac_fn_c_try_link "$LINENO"; then : |
| 6597 | ac_cv_lib_network_socket=yes |
| 6598 | else |
| 6599 | ac_cv_lib_network_socket=no |
| 6600 | fi |
| 6601 | rm -f core conftest.err conftest.$ac_objext \ |
| 6602 | conftest$ac_exeext conftest.$ac_ext |
| 6603 | LIBS=$ac_check_lib_save_LIBS |
| 6604 | fi |
| 6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
| 6606 | $as_echo "$ac_cv_lib_network_socket" >&6; } |
| 6607 | if test "x$ac_cv_lib_network_socket" = xyes; then : |
| 6608 | cat >>confdefs.h <<_ACEOF |
| 6609 | #define HAVE_LIBNETWORK 1 |
| 6610 | _ACEOF |
| 6611 | |
| 6612 | LIBS="-lnetwork $LIBS" |
| 6613 | |
| 6614 | fi |
| 6615 | |
| 6616 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 6617 | |
| 6618 | MANTYPE=man |
| 6619 | ;; |
| 6620 | *-*-hpux*) |
| 6621 | # first we define all of the options common to all HP-UX releases |
| 6622 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" |
| 6623 | IPADDR_IN_DISPLAY=yes |
| 6624 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 6625 | |
| 6626 | |
| 6627 | $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h |
| 6628 | |
| 6629 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 6630 | |
| 6631 | |
| 6632 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h |
| 6633 | |
| 6634 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h |
| 6635 | |
| 6636 | maildir="/var/mail" |
| 6637 | LIBS="$LIBS -lsec" |
| 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 |
| 6639 | $as_echo_n "checking for t_error in -lxnet... " >&6; } |
| 6640 | if ${ac_cv_lib_xnet_t_error+:} false; then : |
| 6641 | $as_echo_n "(cached) " >&6 |
| 6642 | else |
| 6643 | ac_check_lib_save_LIBS=$LIBS |
| 6644 | LIBS="-lxnet $LIBS" |
| 6645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6646 | /* end confdefs.h. */ |
| 6647 | |
| 6648 | /* Override any GCC internal prototype to avoid an error. |
| 6649 | Use char because int might match the return type of a GCC |
| 6650 | builtin and then its argument prototype would still apply. */ |
| 6651 | #ifdef __cplusplus |
| 6652 | extern "C" |
| 6653 | #endif |
| 6654 | char t_error (); |
| 6655 | int |
| 6656 | main () |
| 6657 | { |
| 6658 | return t_error (); |
| 6659 | ; |
| 6660 | return 0; |
| 6661 | } |
| 6662 | _ACEOF |
| 6663 | if ac_fn_c_try_link "$LINENO"; then : |
| 6664 | ac_cv_lib_xnet_t_error=yes |
| 6665 | else |
| 6666 | ac_cv_lib_xnet_t_error=no |
| 6667 | fi |
| 6668 | rm -f core conftest.err conftest.$ac_objext \ |
| 6669 | conftest$ac_exeext conftest.$ac_ext |
| 6670 | LIBS=$ac_check_lib_save_LIBS |
| 6671 | fi |
| 6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 |
| 6673 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } |
| 6674 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : |
| 6675 | cat >>confdefs.h <<_ACEOF |
| 6676 | #define HAVE_LIBXNET 1 |
| 6677 | _ACEOF |
| 6678 | |
| 6679 | LIBS="-lxnet $LIBS" |
| 6680 | |
| 6681 | else |
| 6682 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 |
| 6683 | fi |
| 6684 | |
| 6685 | |
| 6686 | # next, we define all of the options specific to major releases |
| 6687 | case "$host" in |
| 6688 | *-*-hpux10*) |
| 6689 | if test -z "$GCC"; then |
| 6690 | CFLAGS="$CFLAGS -Ae" |
| 6691 | fi |
| 6692 | ;; |
| 6693 | *-*-hpux11*) |
| 6694 | |
| 6695 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 6696 | |
| 6697 | |
| 6698 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 6699 | |
| 6700 | |
| 6701 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
| 6702 | |
| 6703 | check_for_hpux_broken_getaddrinfo=1 |
| 6704 | check_for_conflicting_getspnam=1 |
| 6705 | ;; |
| 6706 | esac |
| 6707 | |
| 6708 | # lastly, we define options specific to minor releases |
| 6709 | case "$host" in |
| 6710 | *-*-hpux10.26) |
| 6711 | |
| 6712 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 6713 | |
| 6714 | disable_ptmx_check=yes |
| 6715 | LIBS="$LIBS -lsecpw" |
| 6716 | ;; |
| 6717 | esac |
| 6718 | ;; |
| 6719 | *-*-irix5*) |
| 6720 | PATH="$PATH:/usr/etc" |
| 6721 | |
| 6722 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
| 6723 | |
| 6724 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6725 | |
| 6726 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6727 | |
| 6728 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6729 | |
| 6730 | |
| 6731 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 6732 | |
| 6733 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 6734 | |
| 6735 | ;; |
| 6736 | *-*-irix6*) |
| 6737 | PATH="$PATH:/usr/etc" |
| 6738 | |
| 6739 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h |
| 6740 | |
| 6741 | |
| 6742 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h |
| 6743 | |
| 6744 | |
| 6745 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h |
| 6746 | |
| 6747 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" |
| 6748 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : |
| 6749 | |
| 6750 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h |
| 6751 | |
| 6752 | fi |
| 6753 | |
| 6754 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
| 6755 | |
| 6756 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6757 | |
| 6758 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6759 | |
| 6760 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6761 | |
| 6762 | |
| 6763 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 6764 | |
| 6765 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 6766 | |
| 6767 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 6768 | |
| 6769 | ;; |
| 6770 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 6771 | check_for_libcrypt_later=1 |
| 6772 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 6773 | |
| 6774 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
| 6775 | |
| 6776 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 6777 | |
| 6778 | |
| 6779 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
| 6780 | |
| 6781 | |
| 6782 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
| 6783 | |
| 6784 | ;; |
| 6785 | *-*-linux*) |
| 6786 | no_dev_ptmx=1 |
| 6787 | check_for_libcrypt_later=1 |
| 6788 | check_for_openpty_ctty_bug=1 |
| 6789 | |
| 6790 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 6791 | |
| 6792 | |
| 6793 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
| 6794 | |
| 6795 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 6796 | |
| 6797 | |
| 6798 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h |
| 6799 | |
| 6800 | |
| 6801 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
| 6802 | |
| 6803 | $as_echo "#define USE_BTMP 1" >>confdefs.h |
| 6804 | |
| 6805 | |
| 6806 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h |
| 6807 | |
| 6808 | inet6_default_4in6=yes |
| 6809 | case `uname -r` in |
| 6810 | 1.*|2.0.*) |
| 6811 | |
| 6812 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h |
| 6813 | |
| 6814 | ;; |
| 6815 | esac |
| 6816 | # tun(4) forwarding compat code |
| 6817 | for ac_header in linux/if_tun.h |
| 6818 | do : |
| 6819 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" |
| 6820 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : |
| 6821 | cat >>confdefs.h <<_ACEOF |
| 6822 | #define HAVE_LINUX_IF_TUN_H 1 |
| 6823 | _ACEOF |
| 6824 | |
| 6825 | fi |
| 6826 | |
| 6827 | done |
| 6828 | |
| 6829 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then |
| 6830 | |
| 6831 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h |
| 6832 | |
| 6833 | |
| 6834 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
| 6835 | |
| 6836 | |
| 6837 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 6838 | |
| 6839 | fi |
| 6840 | ;; |
| 6841 | mips-sony-bsd|mips-sony-newsos4) |
| 6842 | |
| 6843 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
| 6844 | |
| 6845 | SONY=1 |
| 6846 | ;; |
| 6847 | *-*-netbsd*) |
| 6848 | check_for_libcrypt_before=1 |
| 6849 | if test "x$withval" != "xno" ; then |
| 6850 | need_dash_r=1 |
| 6851 | fi |
| 6852 | |
| 6853 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 6854 | |
| 6855 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 6856 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
| 6857 | |
| 6858 | else |
| 6859 | |
| 6860 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
| 6861 | |
| 6862 | fi |
| 6863 | |
| 6864 | |
| 6865 | |
| 6866 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 6867 | |
| 6868 | ;; |
| 6869 | *-*-freebsd*) |
| 6870 | check_for_libcrypt_later=1 |
| 6871 | |
| 6872 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h |
| 6873 | |
| 6874 | |
| 6875 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 6876 | |
| 6877 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 6878 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
| 6879 | |
| 6880 | else |
| 6881 | |
| 6882 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
| 6883 | |
| 6884 | fi |
| 6885 | |
| 6886 | |
| 6887 | |
| 6888 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
| 6889 | |
| 6890 | ;; |
| 6891 | *-*-bsdi*) |
| 6892 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 6893 | |
| 6894 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 6895 | |
| 6896 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 6897 | |
| 6898 | ;; |
| 6899 | *-next-*) |
| 6900 | conf_lastlog_location="/usr/adm/lastlog" |
| 6901 | conf_utmp_location=/etc/utmp |
| 6902 | conf_wtmp_location=/usr/adm/wtmp |
| 6903 | maildir=/usr/spool/mail |
| 6904 | |
| 6905 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h |
| 6906 | |
| 6907 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
| 6908 | |
| 6909 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 6910 | |
| 6911 | |
| 6912 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h |
| 6913 | |
| 6914 | ;; |
| 6915 | *-*-openbsd*) |
| 6916 | |
| 6917 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h |
| 6918 | |
| 6919 | |
| 6920 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h |
| 6921 | |
| 6922 | |
| 6923 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h |
| 6924 | |
| 6925 | |
| 6926 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h |
| 6927 | |
| 6928 | ;; |
| 6929 | *-*-solaris*) |
| 6930 | if test "x$withval" != "xno" ; then |
| 6931 | need_dash_r=1 |
| 6932 | fi |
| 6933 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 6934 | |
| 6935 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 6936 | |
| 6937 | |
| 6938 | $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h |
| 6939 | |
| 6940 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 6941 | |
| 6942 | |
| 6943 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
| 6944 | |
| 6945 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 6946 | |
| 6947 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. |
| 6948 | |
| 6949 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 6950 | |
| 6951 | |
| 6952 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 6953 | |
| 6954 | |
| 6955 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h |
| 6956 | |
| 6957 | external_path_file=/etc/default/login |
| 6958 | # hardwire lastlog location (can't detect it on some versions) |
| 6959 | conf_lastlog_location="/var/adm/lastlog" |
| 6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 |
| 6961 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } |
| 6962 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` |
| 6963 | if test "$sol2ver" -ge 8; then |
| 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6965 | $as_echo "yes" >&6; } |
| 6966 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 6967 | |
| 6968 | |
| 6969 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 6970 | |
| 6971 | else |
| 6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6973 | $as_echo "no" >&6; } |
| 6974 | fi |
| 6975 | |
| 6976 | # Check whether --with-solaris-contracts was given. |
| 6977 | if test "${with_solaris_contracts+set}" = set; then : |
| 6978 | withval=$with_solaris_contracts; |
| 6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 |
| 6980 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } |
| 6981 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : |
| 6982 | $as_echo_n "(cached) " >&6 |
| 6983 | else |
| 6984 | ac_check_lib_save_LIBS=$LIBS |
| 6985 | LIBS="-lcontract $LIBS" |
| 6986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6987 | /* end confdefs.h. */ |
| 6988 | |
| 6989 | /* Override any GCC internal prototype to avoid an error. |
| 6990 | Use char because int might match the return type of a GCC |
| 6991 | builtin and then its argument prototype would still apply. */ |
| 6992 | #ifdef __cplusplus |
| 6993 | extern "C" |
| 6994 | #endif |
| 6995 | char ct_tmpl_activate (); |
| 6996 | int |
| 6997 | main () |
| 6998 | { |
| 6999 | return ct_tmpl_activate (); |
| 7000 | ; |
| 7001 | return 0; |
| 7002 | } |
| 7003 | _ACEOF |
| 7004 | if ac_fn_c_try_link "$LINENO"; then : |
| 7005 | ac_cv_lib_contract_ct_tmpl_activate=yes |
| 7006 | else |
| 7007 | ac_cv_lib_contract_ct_tmpl_activate=no |
| 7008 | fi |
| 7009 | rm -f core conftest.err conftest.$ac_objext \ |
| 7010 | conftest$ac_exeext conftest.$ac_ext |
| 7011 | LIBS=$ac_check_lib_save_LIBS |
| 7012 | fi |
| 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 |
| 7014 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } |
| 7015 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : |
| 7016 | |
| 7017 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h |
| 7018 | |
| 7019 | SSHDLIBS="$SSHDLIBS -lcontract" |
| 7020 | SPC_MSG="yes" |
| 7021 | fi |
| 7022 | |
| 7023 | |
| 7024 | fi |
| 7025 | |
| 7026 | |
| 7027 | # Check whether --with-solaris-projects was given. |
| 7028 | if test "${with_solaris_projects+set}" = set; then : |
| 7029 | withval=$with_solaris_projects; |
| 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 |
| 7031 | $as_echo_n "checking for setproject in -lproject... " >&6; } |
| 7032 | if ${ac_cv_lib_project_setproject+:} false; then : |
| 7033 | $as_echo_n "(cached) " >&6 |
| 7034 | else |
| 7035 | ac_check_lib_save_LIBS=$LIBS |
| 7036 | LIBS="-lproject $LIBS" |
| 7037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7038 | /* end confdefs.h. */ |
| 7039 | |
| 7040 | /* Override any GCC internal prototype to avoid an error. |
| 7041 | Use char because int might match the return type of a GCC |
| 7042 | builtin and then its argument prototype would still apply. */ |
| 7043 | #ifdef __cplusplus |
| 7044 | extern "C" |
| 7045 | #endif |
| 7046 | char setproject (); |
| 7047 | int |
| 7048 | main () |
| 7049 | { |
| 7050 | return setproject (); |
| 7051 | ; |
| 7052 | return 0; |
| 7053 | } |
| 7054 | _ACEOF |
| 7055 | if ac_fn_c_try_link "$LINENO"; then : |
| 7056 | ac_cv_lib_project_setproject=yes |
| 7057 | else |
| 7058 | ac_cv_lib_project_setproject=no |
| 7059 | fi |
| 7060 | rm -f core conftest.err conftest.$ac_objext \ |
| 7061 | conftest$ac_exeext conftest.$ac_ext |
| 7062 | LIBS=$ac_check_lib_save_LIBS |
| 7063 | fi |
| 7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 |
| 7065 | $as_echo "$ac_cv_lib_project_setproject" >&6; } |
| 7066 | if test "x$ac_cv_lib_project_setproject" = xyes; then : |
| 7067 | |
| 7068 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h |
| 7069 | |
| 7070 | SSHDLIBS="$SSHDLIBS -lproject" |
| 7071 | SP_MSG="yes" |
| 7072 | fi |
| 7073 | |
| 7074 | |
| 7075 | fi |
| 7076 | |
| 7077 | ;; |
| 7078 | *-*-sunos4*) |
| 7079 | CPPFLAGS="$CPPFLAGS -DSUNOS4" |
| 7080 | for ac_func in getpwanam |
| 7081 | do : |
| 7082 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" |
| 7083 | if test "x$ac_cv_func_getpwanam" = xyes; then : |
| 7084 | cat >>confdefs.h <<_ACEOF |
| 7085 | #define HAVE_GETPWANAM 1 |
| 7086 | _ACEOF |
| 7087 | |
| 7088 | fi |
| 7089 | done |
| 7090 | |
| 7091 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 7092 | |
| 7093 | conf_utmp_location=/etc/utmp |
| 7094 | conf_wtmp_location=/var/adm/wtmp |
| 7095 | conf_lastlog_location=/var/adm/lastlog |
| 7096 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7097 | |
| 7098 | ;; |
| 7099 | *-ncr-sysv*) |
| 7100 | LIBS="$LIBS -lc89" |
| 7101 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7102 | |
| 7103 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 7104 | |
| 7105 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7106 | |
| 7107 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7108 | |
| 7109 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7110 | |
| 7111 | ;; |
| 7112 | *-sni-sysv*) |
| 7113 | # /usr/ucblib MUST NOT be searched on ReliantUNIX |
| 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 7115 | $as_echo_n "checking for dlsym in -ldl... " >&6; } |
| 7116 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
| 7117 | $as_echo_n "(cached) " >&6 |
| 7118 | else |
| 7119 | ac_check_lib_save_LIBS=$LIBS |
| 7120 | LIBS="-ldl $LIBS" |
| 7121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7122 | /* end confdefs.h. */ |
| 7123 | |
| 7124 | /* Override any GCC internal prototype to avoid an error. |
| 7125 | Use char because int might match the return type of a GCC |
| 7126 | builtin and then its argument prototype would still apply. */ |
| 7127 | #ifdef __cplusplus |
| 7128 | extern "C" |
| 7129 | #endif |
| 7130 | char dlsym (); |
| 7131 | int |
| 7132 | main () |
| 7133 | { |
| 7134 | return dlsym (); |
| 7135 | ; |
| 7136 | return 0; |
| 7137 | } |
| 7138 | _ACEOF |
| 7139 | if ac_fn_c_try_link "$LINENO"; then : |
| 7140 | ac_cv_lib_dl_dlsym=yes |
| 7141 | else |
| 7142 | ac_cv_lib_dl_dlsym=no |
| 7143 | fi |
| 7144 | rm -f core conftest.err conftest.$ac_objext \ |
| 7145 | conftest$ac_exeext conftest.$ac_ext |
| 7146 | LIBS=$ac_check_lib_save_LIBS |
| 7147 | fi |
| 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 7149 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
| 7150 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
| 7151 | cat >>confdefs.h <<_ACEOF |
| 7152 | #define HAVE_LIBDL 1 |
| 7153 | _ACEOF |
| 7154 | |
| 7155 | LIBS="-ldl $LIBS" |
| 7156 | |
| 7157 | fi |
| 7158 | |
| 7159 | # -lresolv needs to be at the end of LIBS or DNS lookups break |
| 7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 7161 | $as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 7162 | if ${ac_cv_lib_resolv_res_query+:} false; then : |
| 7163 | $as_echo_n "(cached) " >&6 |
| 7164 | else |
| 7165 | ac_check_lib_save_LIBS=$LIBS |
| 7166 | LIBS="-lresolv $LIBS" |
| 7167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7168 | /* end confdefs.h. */ |
| 7169 | |
| 7170 | /* Override any GCC internal prototype to avoid an error. |
| 7171 | Use char because int might match the return type of a GCC |
| 7172 | builtin and then its argument prototype would still apply. */ |
| 7173 | #ifdef __cplusplus |
| 7174 | extern "C" |
| 7175 | #endif |
| 7176 | char res_query (); |
| 7177 | int |
| 7178 | main () |
| 7179 | { |
| 7180 | return res_query (); |
| 7181 | ; |
| 7182 | return 0; |
| 7183 | } |
| 7184 | _ACEOF |
| 7185 | if ac_fn_c_try_link "$LINENO"; then : |
| 7186 | ac_cv_lib_resolv_res_query=yes |
| 7187 | else |
| 7188 | ac_cv_lib_resolv_res_query=no |
| 7189 | fi |
| 7190 | rm -f core conftest.err conftest.$ac_objext \ |
| 7191 | conftest$ac_exeext conftest.$ac_ext |
| 7192 | LIBS=$ac_check_lib_save_LIBS |
| 7193 | fi |
| 7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 |
| 7195 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } |
| 7196 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : |
| 7197 | LIBS="$LIBS -lresolv" |
| 7198 | fi |
| 7199 | |
| 7200 | IPADDR_IN_DISPLAY=yes |
| 7201 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7202 | |
| 7203 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
| 7204 | |
| 7205 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7206 | |
| 7207 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7208 | |
| 7209 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7210 | |
| 7211 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 7212 | |
| 7213 | external_path_file=/etc/default/login |
| 7214 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX |
| 7215 | # Attention: always take care to bind libsocket and libnsl before libc, |
| 7216 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog |
| 7217 | ;; |
| 7218 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. |
| 7219 | *-*-sysv4.2*) |
| 7220 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7221 | |
| 7222 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7223 | |
| 7224 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7225 | |
| 7226 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7227 | |
| 7228 | |
| 7229 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 7230 | |
| 7231 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 7232 | |
| 7233 | ;; |
| 7234 | # UnixWare 7.x, OpenUNIX 8 |
| 7235 | *-*-sysv5*) |
| 7236 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" |
| 7237 | |
| 7238 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h |
| 7239 | |
| 7240 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7241 | |
| 7242 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7243 | |
| 7244 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 7245 | |
| 7246 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7247 | |
| 7248 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7249 | |
| 7250 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 7251 | |
| 7252 | case "$host" in |
| 7253 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x |
| 7254 | maildir=/var/spool/mail |
| 7255 | TEST_SHELL=/u95/bin/sh |
| 7256 | |
| 7257 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h |
| 7258 | |
| 7259 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 7260 | |
| 7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 |
| 7262 | $as_echo_n "checking for getluid in -lprot... " >&6; } |
| 7263 | if ${ac_cv_lib_prot_getluid+:} false; then : |
| 7264 | $as_echo_n "(cached) " >&6 |
| 7265 | else |
| 7266 | ac_check_lib_save_LIBS=$LIBS |
| 7267 | LIBS="-lprot $LIBS" |
| 7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7269 | /* end confdefs.h. */ |
| 7270 | |
| 7271 | /* Override any GCC internal prototype to avoid an error. |
| 7272 | Use char because int might match the return type of a GCC |
| 7273 | builtin and then its argument prototype would still apply. */ |
| 7274 | #ifdef __cplusplus |
| 7275 | extern "C" |
| 7276 | #endif |
| 7277 | char getluid (); |
| 7278 | int |
| 7279 | main () |
| 7280 | { |
| 7281 | return getluid (); |
| 7282 | ; |
| 7283 | return 0; |
| 7284 | } |
| 7285 | _ACEOF |
| 7286 | if ac_fn_c_try_link "$LINENO"; then : |
| 7287 | ac_cv_lib_prot_getluid=yes |
| 7288 | else |
| 7289 | ac_cv_lib_prot_getluid=no |
| 7290 | fi |
| 7291 | rm -f core conftest.err conftest.$ac_objext \ |
| 7292 | conftest$ac_exeext conftest.$ac_ext |
| 7293 | LIBS=$ac_check_lib_save_LIBS |
| 7294 | fi |
| 7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 |
| 7296 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } |
| 7297 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : |
| 7298 | LIBS="$LIBS -lprot" |
| 7299 | for ac_func in getluid setluid |
| 7300 | do : |
| 7301 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7302 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7303 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 7304 | cat >>confdefs.h <<_ACEOF |
| 7305 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7306 | _ACEOF |
| 7307 | |
| 7308 | fi |
| 7309 | done |
| 7310 | |
| 7311 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 7312 | |
| 7313 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 7314 | |
| 7315 | |
| 7316 | fi |
| 7317 | |
| 7318 | ;; |
| 7319 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 7320 | |
| 7321 | check_for_libcrypt_later=1 |
| 7322 | ;; |
| 7323 | esac |
| 7324 | ;; |
| 7325 | *-*-sysv*) |
| 7326 | ;; |
| 7327 | # SCO UNIX and OEM versions of SCO UNIX |
| 7328 | *-*-sco3.2v4*) |
| 7329 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 |
| 7330 | ;; |
| 7331 | # SCO OpenServer 5.x |
| 7332 | *-*-sco3.2v5*) |
| 7333 | if test -z "$GCC"; then |
| 7334 | CFLAGS="$CFLAGS -belf" |
| 7335 | fi |
| 7336 | LIBS="$LIBS -lprot -lx -ltinfo -lm" |
| 7337 | no_dev_ptmx=1 |
| 7338 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7339 | |
| 7340 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 7341 | |
| 7342 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 7343 | |
| 7344 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7345 | |
| 7346 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7347 | |
| 7348 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 7349 | |
| 7350 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7351 | |
| 7352 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7353 | |
| 7354 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 7355 | |
| 7356 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 7357 | |
| 7358 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 7359 | |
| 7360 | for ac_func in getluid setluid |
| 7361 | do : |
| 7362 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7363 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7364 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 7365 | cat >>confdefs.h <<_ACEOF |
| 7366 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7367 | _ACEOF |
| 7368 | |
| 7369 | fi |
| 7370 | done |
| 7371 | |
| 7372 | MANTYPE=man |
| 7373 | TEST_SHELL=ksh |
| 7374 | ;; |
| 7375 | *-*-unicosmk*) |
| 7376 | |
| 7377 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
| 7378 | |
| 7379 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7380 | |
| 7381 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7382 | |
| 7383 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7384 | |
| 7385 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7386 | |
| 7387 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7388 | |
| 7389 | LDFLAGS="$LDFLAGS" |
| 7390 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 7391 | MANTYPE=cat |
| 7392 | ;; |
| 7393 | *-*-unicosmp*) |
| 7394 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7395 | |
| 7396 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7397 | |
| 7398 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7399 | |
| 7400 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 7401 | |
| 7402 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7403 | |
| 7404 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7405 | |
| 7406 | LDFLAGS="$LDFLAGS" |
| 7407 | LIBS="$LIBS -lgen -lacid -ldb" |
| 7408 | MANTYPE=cat |
| 7409 | ;; |
| 7410 | *-*-unicos*) |
| 7411 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7412 | |
| 7413 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7414 | |
| 7415 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7416 | |
| 7417 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7418 | |
| 7419 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7420 | |
| 7421 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
| 7422 | |
| 7423 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" |
| 7424 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 7425 | MANTYPE=cat |
| 7426 | ;; |
| 7427 | *-dec-osf*) |
| 7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 |
| 7429 | $as_echo_n "checking for Digital Unix SIA... " >&6; } |
| 7430 | no_osfsia="" |
| 7431 | |
| 7432 | # Check whether --with-osfsia was given. |
| 7433 | if test "${with_osfsia+set}" = set; then : |
| 7434 | withval=$with_osfsia; |
| 7435 | if test "x$withval" = "xno" ; then |
| 7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 7437 | $as_echo "disabled" >&6; } |
| 7438 | no_osfsia=1 |
| 7439 | fi |
| 7440 | |
| 7441 | fi |
| 7442 | |
| 7443 | if test -z "$no_osfsia" ; then |
| 7444 | if test -f /etc/sia/matrix.conf; then |
| 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7446 | $as_echo "yes" >&6; } |
| 7447 | |
| 7448 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h |
| 7449 | |
| 7450 | |
| 7451 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
| 7452 | |
| 7453 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7454 | |
| 7455 | LIBS="$LIBS -lsecurity -ldb -lm -laud" |
| 7456 | SIA_MSG="yes" |
| 7457 | else |
| 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7459 | $as_echo "no" >&6; } |
| 7460 | |
| 7461 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h |
| 7462 | |
| 7463 | fi |
| 7464 | fi |
| 7465 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 7466 | |
| 7467 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7468 | |
| 7469 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7470 | |
| 7471 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7472 | |
| 7473 | |
| 7474 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h |
| 7475 | |
| 7476 | ;; |
| 7477 | |
| 7478 | *-*-nto-qnx*) |
| 7479 | $as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7480 | |
| 7481 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
| 7482 | |
| 7483 | |
| 7484 | $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h |
| 7485 | |
| 7486 | |
| 7487 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h |
| 7488 | |
| 7489 | |
| 7490 | $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h |
| 7491 | |
| 7492 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 7493 | |
| 7494 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 7495 | |
| 7496 | |
| 7497 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h |
| 7498 | |
| 7499 | enable_etc_default_login=no # has incompatible /etc/default/login |
| 7500 | case "$host" in |
| 7501 | *-*-nto-qnx6*) |
| 7502 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7503 | |
| 7504 | ;; |
| 7505 | esac |
| 7506 | ;; |
| 7507 | |
| 7508 | *-*-ultrix*) |
| 7509 | |
| 7510 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h |
| 7511 | |
| 7512 | |
| 7513 | $as_echo "#define BROKEN_MMAP 1" >>confdefs.h |
| 7514 | |
| 7515 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
| 7516 | |
| 7517 | |
| 7518 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h |
| 7519 | |
| 7520 | ;; |
| 7521 | |
| 7522 | *-*-lynxos) |
| 7523 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" |
| 7524 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h |
| 7525 | |
| 7526 | |
| 7527 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h |
| 7528 | |
| 7529 | ;; |
| 7530 | esac |
| 7531 | |
| 7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 |
| 7533 | $as_echo_n "checking compiler and flags for sanity... " >&6; } |
| 7534 | if test "$cross_compiling" = yes; then : |
| 7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 |
| 7536 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} |
| 7537 | |
| 7538 | else |
| 7539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7540 | /* end confdefs.h. */ |
| 7541 | #include <stdio.h> |
| 7542 | int |
| 7543 | main () |
| 7544 | { |
| 7545 | exit(0); |
| 7546 | ; |
| 7547 | return 0; |
| 7548 | } |
| 7549 | _ACEOF |
| 7550 | if ac_fn_c_try_run "$LINENO"; then : |
| 7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7552 | $as_echo "yes" >&6; } |
| 7553 | else |
| 7554 | |
| 7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7556 | $as_echo "no" >&6; } |
| 7557 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 |
| 7558 | |
| 7559 | fi |
| 7560 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7561 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7562 | fi |
| 7563 | |
| 7564 | |
| 7565 | # Checks for libraries. |
| 7566 | ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" |
| 7567 | if test "x$ac_cv_func_yp_match" = xyes; then : |
| 7568 | |
| 7569 | else |
| 7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 |
| 7571 | $as_echo_n "checking for yp_match in -lnsl... " >&6; } |
| 7572 | if ${ac_cv_lib_nsl_yp_match+:} false; then : |
| 7573 | $as_echo_n "(cached) " >&6 |
| 7574 | else |
| 7575 | ac_check_lib_save_LIBS=$LIBS |
| 7576 | LIBS="-lnsl $LIBS" |
| 7577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7578 | /* end confdefs.h. */ |
| 7579 | |
| 7580 | /* Override any GCC internal prototype to avoid an error. |
| 7581 | Use char because int might match the return type of a GCC |
| 7582 | builtin and then its argument prototype would still apply. */ |
| 7583 | #ifdef __cplusplus |
| 7584 | extern "C" |
| 7585 | #endif |
| 7586 | char yp_match (); |
| 7587 | int |
| 7588 | main () |
| 7589 | { |
| 7590 | return yp_match (); |
| 7591 | ; |
| 7592 | return 0; |
| 7593 | } |
| 7594 | _ACEOF |
| 7595 | if ac_fn_c_try_link "$LINENO"; then : |
| 7596 | ac_cv_lib_nsl_yp_match=yes |
| 7597 | else |
| 7598 | ac_cv_lib_nsl_yp_match=no |
| 7599 | fi |
| 7600 | rm -f core conftest.err conftest.$ac_objext \ |
| 7601 | conftest$ac_exeext conftest.$ac_ext |
| 7602 | LIBS=$ac_check_lib_save_LIBS |
| 7603 | fi |
| 7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 |
| 7605 | $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } |
| 7606 | if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : |
| 7607 | cat >>confdefs.h <<_ACEOF |
| 7608 | #define HAVE_LIBNSL 1 |
| 7609 | _ACEOF |
| 7610 | |
| 7611 | LIBS="-lnsl $LIBS" |
| 7612 | |
| 7613 | fi |
| 7614 | |
| 7615 | fi |
| 7616 | |
| 7617 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" |
| 7618 | if test "x$ac_cv_func_setsockopt" = xyes; then : |
| 7619 | |
| 7620 | else |
| 7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 |
| 7622 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } |
| 7623 | if ${ac_cv_lib_socket_setsockopt+:} false; then : |
| 7624 | $as_echo_n "(cached) " >&6 |
| 7625 | else |
| 7626 | ac_check_lib_save_LIBS=$LIBS |
| 7627 | LIBS="-lsocket $LIBS" |
| 7628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7629 | /* end confdefs.h. */ |
| 7630 | |
| 7631 | /* Override any GCC internal prototype to avoid an error. |
| 7632 | Use char because int might match the return type of a GCC |
| 7633 | builtin and then its argument prototype would still apply. */ |
| 7634 | #ifdef __cplusplus |
| 7635 | extern "C" |
| 7636 | #endif |
| 7637 | char setsockopt (); |
| 7638 | int |
| 7639 | main () |
| 7640 | { |
| 7641 | return setsockopt (); |
| 7642 | ; |
| 7643 | return 0; |
| 7644 | } |
| 7645 | _ACEOF |
| 7646 | if ac_fn_c_try_link "$LINENO"; then : |
| 7647 | ac_cv_lib_socket_setsockopt=yes |
| 7648 | else |
| 7649 | ac_cv_lib_socket_setsockopt=no |
| 7650 | fi |
| 7651 | rm -f core conftest.err conftest.$ac_objext \ |
| 7652 | conftest$ac_exeext conftest.$ac_ext |
| 7653 | LIBS=$ac_check_lib_save_LIBS |
| 7654 | fi |
| 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 |
| 7656 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } |
| 7657 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : |
| 7658 | cat >>confdefs.h <<_ACEOF |
| 7659 | #define HAVE_LIBSOCKET 1 |
| 7660 | _ACEOF |
| 7661 | |
| 7662 | LIBS="-lsocket $LIBS" |
| 7663 | |
| 7664 | fi |
| 7665 | |
| 7666 | fi |
| 7667 | |
| 7668 | |
| 7669 | for ac_func in dirname |
| 7670 | do : |
| 7671 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" |
| 7672 | if test "x$ac_cv_func_dirname" = xyes; then : |
| 7673 | cat >>confdefs.h <<_ACEOF |
| 7674 | #define HAVE_DIRNAME 1 |
| 7675 | _ACEOF |
| 7676 | for ac_header in libgen.h |
| 7677 | do : |
| 7678 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 7679 | if test "x$ac_cv_header_libgen_h" = xyes; then : |
| 7680 | cat >>confdefs.h <<_ACEOF |
| 7681 | #define HAVE_LIBGEN_H 1 |
| 7682 | _ACEOF |
| 7683 | |
| 7684 | fi |
| 7685 | |
| 7686 | done |
| 7687 | |
| 7688 | else |
| 7689 | |
| 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 |
| 7691 | $as_echo_n "checking for dirname in -lgen... " >&6; } |
| 7692 | if ${ac_cv_lib_gen_dirname+:} false; then : |
| 7693 | $as_echo_n "(cached) " >&6 |
| 7694 | else |
| 7695 | ac_check_lib_save_LIBS=$LIBS |
| 7696 | LIBS="-lgen $LIBS" |
| 7697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7698 | /* end confdefs.h. */ |
| 7699 | |
| 7700 | /* Override any GCC internal prototype to avoid an error. |
| 7701 | Use char because int might match the return type of a GCC |
| 7702 | builtin and then its argument prototype would still apply. */ |
| 7703 | #ifdef __cplusplus |
| 7704 | extern "C" |
| 7705 | #endif |
| 7706 | char dirname (); |
| 7707 | int |
| 7708 | main () |
| 7709 | { |
| 7710 | return dirname (); |
| 7711 | ; |
| 7712 | return 0; |
| 7713 | } |
| 7714 | _ACEOF |
| 7715 | if ac_fn_c_try_link "$LINENO"; then : |
| 7716 | ac_cv_lib_gen_dirname=yes |
| 7717 | else |
| 7718 | ac_cv_lib_gen_dirname=no |
| 7719 | fi |
| 7720 | rm -f core conftest.err conftest.$ac_objext \ |
| 7721 | conftest$ac_exeext conftest.$ac_ext |
| 7722 | LIBS=$ac_check_lib_save_LIBS |
| 7723 | fi |
| 7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 |
| 7725 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } |
| 7726 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : |
| 7727 | |
| 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 |
| 7729 | $as_echo_n "checking for broken dirname... " >&6; } |
| 7730 | if ${ac_cv_have_broken_dirname+:} false; then : |
| 7731 | $as_echo_n "(cached) " >&6 |
| 7732 | else |
| 7733 | |
| 7734 | save_LIBS="$LIBS" |
| 7735 | LIBS="$LIBS -lgen" |
| 7736 | if test "$cross_compiling" = yes; then : |
| 7737 | ac_cv_have_broken_dirname="no" |
| 7738 | else |
| 7739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7740 | /* end confdefs.h. */ |
| 7741 | |
| 7742 | #include <libgen.h> |
| 7743 | #include <string.h> |
| 7744 | |
| 7745 | int main(int argc, char **argv) { |
| 7746 | char *s, buf[32]; |
| 7747 | |
| 7748 | strncpy(buf,"/etc", 32); |
| 7749 | s = dirname(buf); |
| 7750 | if (!s || strncmp(s, "/", 32) != 0) { |
| 7751 | exit(1); |
| 7752 | } else { |
| 7753 | exit(0); |
| 7754 | } |
| 7755 | } |
| 7756 | |
| 7757 | _ACEOF |
| 7758 | if ac_fn_c_try_run "$LINENO"; then : |
| 7759 | ac_cv_have_broken_dirname="no" |
| 7760 | else |
| 7761 | ac_cv_have_broken_dirname="yes" |
| 7762 | fi |
| 7763 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7764 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7765 | fi |
| 7766 | |
| 7767 | LIBS="$save_LIBS" |
| 7768 | |
| 7769 | fi |
| 7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 |
| 7771 | $as_echo "$ac_cv_have_broken_dirname" >&6; } |
| 7772 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then |
| 7773 | LIBS="$LIBS -lgen" |
| 7774 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h |
| 7775 | |
| 7776 | for ac_header in libgen.h |
| 7777 | do : |
| 7778 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 7779 | if test "x$ac_cv_header_libgen_h" = xyes; then : |
| 7780 | cat >>confdefs.h <<_ACEOF |
| 7781 | #define HAVE_LIBGEN_H 1 |
| 7782 | _ACEOF |
| 7783 | |
| 7784 | fi |
| 7785 | |
| 7786 | done |
| 7787 | |
| 7788 | fi |
| 7789 | |
| 7790 | fi |
| 7791 | |
| 7792 | |
| 7793 | fi |
| 7794 | done |
| 7795 | |
| 7796 | |
| 7797 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" |
| 7798 | if test "x$ac_cv_func_getspnam" = xyes; then : |
| 7799 | |
| 7800 | else |
| 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 |
| 7802 | $as_echo_n "checking for getspnam in -lgen... " >&6; } |
| 7803 | if ${ac_cv_lib_gen_getspnam+:} false; then : |
| 7804 | $as_echo_n "(cached) " >&6 |
| 7805 | else |
| 7806 | ac_check_lib_save_LIBS=$LIBS |
| 7807 | LIBS="-lgen $LIBS" |
| 7808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7809 | /* end confdefs.h. */ |
| 7810 | |
| 7811 | /* Override any GCC internal prototype to avoid an error. |
| 7812 | Use char because int might match the return type of a GCC |
| 7813 | builtin and then its argument prototype would still apply. */ |
| 7814 | #ifdef __cplusplus |
| 7815 | extern "C" |
| 7816 | #endif |
| 7817 | char getspnam (); |
| 7818 | int |
| 7819 | main () |
| 7820 | { |
| 7821 | return getspnam (); |
| 7822 | ; |
| 7823 | return 0; |
| 7824 | } |
| 7825 | _ACEOF |
| 7826 | if ac_fn_c_try_link "$LINENO"; then : |
| 7827 | ac_cv_lib_gen_getspnam=yes |
| 7828 | else |
| 7829 | ac_cv_lib_gen_getspnam=no |
| 7830 | fi |
| 7831 | rm -f core conftest.err conftest.$ac_objext \ |
| 7832 | conftest$ac_exeext conftest.$ac_ext |
| 7833 | LIBS=$ac_check_lib_save_LIBS |
| 7834 | fi |
| 7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 |
| 7836 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } |
| 7837 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : |
| 7838 | LIBS="$LIBS -lgen" |
| 7839 | fi |
| 7840 | |
| 7841 | fi |
| 7842 | |
| 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 |
| 7844 | $as_echo_n "checking for library containing basename... " >&6; } |
| 7845 | if ${ac_cv_search_basename+:} false; then : |
| 7846 | $as_echo_n "(cached) " >&6 |
| 7847 | else |
| 7848 | ac_func_search_save_LIBS=$LIBS |
| 7849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7850 | /* end confdefs.h. */ |
| 7851 | |
| 7852 | /* Override any GCC internal prototype to avoid an error. |
| 7853 | Use char because int might match the return type of a GCC |
| 7854 | builtin and then its argument prototype would still apply. */ |
| 7855 | #ifdef __cplusplus |
| 7856 | extern "C" |
| 7857 | #endif |
| 7858 | char basename (); |
| 7859 | int |
| 7860 | main () |
| 7861 | { |
| 7862 | return basename (); |
| 7863 | ; |
| 7864 | return 0; |
| 7865 | } |
| 7866 | _ACEOF |
| 7867 | for ac_lib in '' gen; do |
| 7868 | if test -z "$ac_lib"; then |
| 7869 | ac_res="none required" |
| 7870 | else |
| 7871 | ac_res=-l$ac_lib |
| 7872 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7873 | fi |
| 7874 | if ac_fn_c_try_link "$LINENO"; then : |
| 7875 | ac_cv_search_basename=$ac_res |
| 7876 | fi |
| 7877 | rm -f core conftest.err conftest.$ac_objext \ |
| 7878 | conftest$ac_exeext |
| 7879 | if ${ac_cv_search_basename+:} false; then : |
| 7880 | break |
| 7881 | fi |
| 7882 | done |
| 7883 | if ${ac_cv_search_basename+:} false; then : |
| 7884 | |
| 7885 | else |
| 7886 | ac_cv_search_basename=no |
| 7887 | fi |
| 7888 | rm conftest.$ac_ext |
| 7889 | LIBS=$ac_func_search_save_LIBS |
| 7890 | fi |
| 7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 |
| 7892 | $as_echo "$ac_cv_search_basename" >&6; } |
| 7893 | ac_res=$ac_cv_search_basename |
| 7894 | if test "$ac_res" != no; then : |
| 7895 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7896 | |
| 7897 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h |
| 7898 | |
| 7899 | fi |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | # Check whether --with-zlib was given. |
| 7904 | if test "${with_zlib+set}" = set; then : |
| 7905 | withval=$with_zlib; if test "x$withval" = "xno" ; then |
| 7906 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 |
| 7907 | elif test "x$withval" != "xyes"; then |
| 7908 | if test -d "$withval/lib"; then |
| 7909 | if test -n "${need_dash_r}"; then |
| 7910 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 7911 | else |
| 7912 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 7913 | fi |
| 7914 | else |
| 7915 | if test -n "${need_dash_r}"; then |
| 7916 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 7917 | else |
| 7918 | LDFLAGS="-L${withval} ${LDFLAGS}" |
| 7919 | fi |
| 7920 | fi |
| 7921 | if test -d "$withval/include"; then |
| 7922 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 7923 | else |
| 7924 | CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 7925 | fi |
| 7926 | fi |
| 7927 | |
| 7928 | fi |
| 7929 | |
| 7930 | |
| 7931 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 7932 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 7933 | |
| 7934 | else |
| 7935 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 |
| 7936 | fi |
| 7937 | |
| 7938 | |
| 7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 7940 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| 7941 | if ${ac_cv_lib_z_deflate+:} false; then : |
| 7942 | $as_echo_n "(cached) " >&6 |
| 7943 | else |
| 7944 | ac_check_lib_save_LIBS=$LIBS |
| 7945 | LIBS="-lz $LIBS" |
| 7946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7947 | /* end confdefs.h. */ |
| 7948 | |
| 7949 | /* Override any GCC internal prototype to avoid an error. |
| 7950 | Use char because int might match the return type of a GCC |
| 7951 | builtin and then its argument prototype would still apply. */ |
| 7952 | #ifdef __cplusplus |
| 7953 | extern "C" |
| 7954 | #endif |
| 7955 | char deflate (); |
| 7956 | int |
| 7957 | main () |
| 7958 | { |
| 7959 | return deflate (); |
| 7960 | ; |
| 7961 | return 0; |
| 7962 | } |
| 7963 | _ACEOF |
| 7964 | if ac_fn_c_try_link "$LINENO"; then : |
| 7965 | ac_cv_lib_z_deflate=yes |
| 7966 | else |
| 7967 | ac_cv_lib_z_deflate=no |
| 7968 | fi |
| 7969 | rm -f core conftest.err conftest.$ac_objext \ |
| 7970 | conftest$ac_exeext conftest.$ac_ext |
| 7971 | LIBS=$ac_check_lib_save_LIBS |
| 7972 | fi |
| 7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 7974 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 7975 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
| 7976 | cat >>confdefs.h <<_ACEOF |
| 7977 | #define HAVE_LIBZ 1 |
| 7978 | _ACEOF |
| 7979 | |
| 7980 | LIBS="-lz $LIBS" |
| 7981 | |
| 7982 | else |
| 7983 | |
| 7984 | saved_CPPFLAGS="$CPPFLAGS" |
| 7985 | saved_LDFLAGS="$LDFLAGS" |
| 7986 | save_LIBS="$LIBS" |
| 7987 | if test -n "${need_dash_r}"; then |
| 7988 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" |
| 7989 | else |
| 7990 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" |
| 7991 | fi |
| 7992 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" |
| 7993 | LIBS="$LIBS -lz" |
| 7994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7995 | /* end confdefs.h. */ |
| 7996 | |
| 7997 | /* Override any GCC internal prototype to avoid an error. |
| 7998 | Use char because int might match the return type of a GCC |
| 7999 | builtin and then its argument prototype would still apply. */ |
| 8000 | #ifdef __cplusplus |
| 8001 | extern "C" |
| 8002 | #endif |
| 8003 | char deflate (); |
| 8004 | int |
| 8005 | main () |
| 8006 | { |
| 8007 | return deflate (); |
| 8008 | ; |
| 8009 | return 0; |
| 8010 | } |
| 8011 | _ACEOF |
| 8012 | if ac_fn_c_try_link "$LINENO"; then : |
| 8013 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
| 8014 | |
| 8015 | else |
| 8016 | |
| 8017 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 |
| 8018 | |
| 8019 | |
| 8020 | fi |
| 8021 | rm -f core conftest.err conftest.$ac_objext \ |
| 8022 | conftest$ac_exeext conftest.$ac_ext |
| 8023 | |
| 8024 | |
| 8025 | fi |
| 8026 | |
| 8027 | |
| 8028 | |
| 8029 | # Check whether --with-zlib-version-check was given. |
| 8030 | if test "${with_zlib_version_check+set}" = set; then : |
| 8031 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then |
| 8032 | zlib_check_nonfatal=1 |
| 8033 | fi |
| 8034 | |
| 8035 | |
| 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 |
| 8040 | $as_echo_n "checking for possibly buggy zlib... " >&6; } |
| 8041 | if test "$cross_compiling" = yes; then : |
| 8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 |
| 8043 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} |
| 8044 | |
| 8045 | else |
| 8046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8047 | /* end confdefs.h. */ |
| 8048 | |
| 8049 | #include <stdio.h> |
| 8050 | #include <zlib.h> |
| 8051 | |
| 8052 | int |
| 8053 | main () |
| 8054 | { |
| 8055 | |
| 8056 | int a=0, b=0, c=0, d=0, n, v; |
| 8057 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); |
| 8058 | if (n != 3 && n != 4) |
| 8059 | exit(1); |
| 8060 | v = a*1000000 + b*10000 + c*100 + d; |
| 8061 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); |
| 8062 | |
| 8063 | /* 1.1.4 is OK */ |
| 8064 | if (a == 1 && b == 1 && c >= 4) |
| 8065 | exit(0); |
| 8066 | |
| 8067 | /* 1.2.3 and up are OK */ |
| 8068 | if (v >= 1020300) |
| 8069 | exit(0); |
| 8070 | |
| 8071 | exit(2); |
| 8072 | |
| 8073 | ; |
| 8074 | return 0; |
| 8075 | } |
| 8076 | _ACEOF |
| 8077 | if ac_fn_c_try_run "$LINENO"; then : |
| 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8079 | $as_echo "no" >&6; } |
| 8080 | else |
| 8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8082 | $as_echo "yes" >&6; } |
| 8083 | if test -z "$zlib_check_nonfatal" ; then |
| 8084 | as_fn_error $? "*** zlib too old - check config.log *** |
| 8085 | Your reported zlib version has known security problems. It's possible your |
| 8086 | vendor has fixed these problems without changing the version number. If you |
| 8087 | are sure this is the case, you can disable the check by running |
| 8088 | \"./configure --without-zlib-version-check\". |
| 8089 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. |
| 8090 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 |
| 8091 | else |
| 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 |
| 8093 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} |
| 8094 | fi |
| 8095 | |
| 8096 | fi |
| 8097 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8098 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8099 | fi |
| 8100 | |
| 8101 | |
| 8102 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 8103 | if test "x$ac_cv_func_strcasecmp" = xyes; then : |
| 8104 | |
| 8105 | else |
| 8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 |
| 8107 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } |
| 8108 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : |
| 8109 | $as_echo_n "(cached) " >&6 |
| 8110 | else |
| 8111 | ac_check_lib_save_LIBS=$LIBS |
| 8112 | LIBS="-lresolv $LIBS" |
| 8113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8114 | /* end confdefs.h. */ |
| 8115 | |
| 8116 | /* Override any GCC internal prototype to avoid an error. |
| 8117 | Use char because int might match the return type of a GCC |
| 8118 | builtin and then its argument prototype would still apply. */ |
| 8119 | #ifdef __cplusplus |
| 8120 | extern "C" |
| 8121 | #endif |
| 8122 | char strcasecmp (); |
| 8123 | int |
| 8124 | main () |
| 8125 | { |
| 8126 | return strcasecmp (); |
| 8127 | ; |
| 8128 | return 0; |
| 8129 | } |
| 8130 | _ACEOF |
| 8131 | if ac_fn_c_try_link "$LINENO"; then : |
| 8132 | ac_cv_lib_resolv_strcasecmp=yes |
| 8133 | else |
| 8134 | ac_cv_lib_resolv_strcasecmp=no |
| 8135 | fi |
| 8136 | rm -f core conftest.err conftest.$ac_objext \ |
| 8137 | conftest$ac_exeext conftest.$ac_ext |
| 8138 | LIBS=$ac_check_lib_save_LIBS |
| 8139 | fi |
| 8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 |
| 8141 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } |
| 8142 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : |
| 8143 | LIBS="$LIBS -lresolv" |
| 8144 | fi |
| 8145 | |
| 8146 | |
| 8147 | fi |
| 8148 | |
| 8149 | for ac_func in utimes |
| 8150 | do : |
| 8151 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 8152 | if test "x$ac_cv_func_utimes" = xyes; then : |
| 8153 | cat >>confdefs.h <<_ACEOF |
| 8154 | #define HAVE_UTIMES 1 |
| 8155 | _ACEOF |
| 8156 | |
| 8157 | else |
| 8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 |
| 8159 | $as_echo_n "checking for utimes in -lc89... " >&6; } |
| 8160 | if ${ac_cv_lib_c89_utimes+:} false; then : |
| 8161 | $as_echo_n "(cached) " >&6 |
| 8162 | else |
| 8163 | ac_check_lib_save_LIBS=$LIBS |
| 8164 | LIBS="-lc89 $LIBS" |
| 8165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8166 | /* end confdefs.h. */ |
| 8167 | |
| 8168 | /* Override any GCC internal prototype to avoid an error. |
| 8169 | Use char because int might match the return type of a GCC |
| 8170 | builtin and then its argument prototype would still apply. */ |
| 8171 | #ifdef __cplusplus |
| 8172 | extern "C" |
| 8173 | #endif |
| 8174 | char utimes (); |
| 8175 | int |
| 8176 | main () |
| 8177 | { |
| 8178 | return utimes (); |
| 8179 | ; |
| 8180 | return 0; |
| 8181 | } |
| 8182 | _ACEOF |
| 8183 | if ac_fn_c_try_link "$LINENO"; then : |
| 8184 | ac_cv_lib_c89_utimes=yes |
| 8185 | else |
| 8186 | ac_cv_lib_c89_utimes=no |
| 8187 | fi |
| 8188 | rm -f core conftest.err conftest.$ac_objext \ |
| 8189 | conftest$ac_exeext conftest.$ac_ext |
| 8190 | LIBS=$ac_check_lib_save_LIBS |
| 8191 | fi |
| 8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 |
| 8193 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } |
| 8194 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : |
| 8195 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
| 8196 | |
| 8197 | LIBS="$LIBS -lc89" |
| 8198 | fi |
| 8199 | |
| 8200 | |
| 8201 | fi |
| 8202 | done |
| 8203 | |
| 8204 | |
| 8205 | for ac_header in libutil.h |
| 8206 | do : |
| 8207 | ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
| 8208 | if test "x$ac_cv_header_libutil_h" = xyes; then : |
| 8209 | cat >>confdefs.h <<_ACEOF |
| 8210 | #define HAVE_LIBUTIL_H 1 |
| 8211 | _ACEOF |
| 8212 | |
| 8213 | fi |
| 8214 | |
| 8215 | done |
| 8216 | |
| 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 |
| 8218 | $as_echo_n "checking for library containing login... " >&6; } |
| 8219 | if ${ac_cv_search_login+:} false; then : |
| 8220 | $as_echo_n "(cached) " >&6 |
| 8221 | else |
| 8222 | ac_func_search_save_LIBS=$LIBS |
| 8223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8224 | /* end confdefs.h. */ |
| 8225 | |
| 8226 | /* Override any GCC internal prototype to avoid an error. |
| 8227 | Use char because int might match the return type of a GCC |
| 8228 | builtin and then its argument prototype would still apply. */ |
| 8229 | #ifdef __cplusplus |
| 8230 | extern "C" |
| 8231 | #endif |
| 8232 | char login (); |
| 8233 | int |
| 8234 | main () |
| 8235 | { |
| 8236 | return login (); |
| 8237 | ; |
| 8238 | return 0; |
| 8239 | } |
| 8240 | _ACEOF |
| 8241 | for ac_lib in '' util bsd; do |
| 8242 | if test -z "$ac_lib"; then |
| 8243 | ac_res="none required" |
| 8244 | else |
| 8245 | ac_res=-l$ac_lib |
| 8246 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8247 | fi |
| 8248 | if ac_fn_c_try_link "$LINENO"; then : |
| 8249 | ac_cv_search_login=$ac_res |
| 8250 | fi |
| 8251 | rm -f core conftest.err conftest.$ac_objext \ |
| 8252 | conftest$ac_exeext |
| 8253 | if ${ac_cv_search_login+:} false; then : |
| 8254 | break |
| 8255 | fi |
| 8256 | done |
| 8257 | if ${ac_cv_search_login+:} false; then : |
| 8258 | |
| 8259 | else |
| 8260 | ac_cv_search_login=no |
| 8261 | fi |
| 8262 | rm conftest.$ac_ext |
| 8263 | LIBS=$ac_func_search_save_LIBS |
| 8264 | fi |
| 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 |
| 8266 | $as_echo "$ac_cv_search_login" >&6; } |
| 8267 | ac_res=$ac_cv_search_login |
| 8268 | if test "$ac_res" != no; then : |
| 8269 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8270 | |
| 8271 | $as_echo "#define HAVE_LOGIN 1" >>confdefs.h |
| 8272 | |
| 8273 | fi |
| 8274 | |
| 8275 | for ac_func in fmt_scaled logout updwtmp logwtmp |
| 8276 | do : |
| 8277 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8278 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8279 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 8280 | cat >>confdefs.h <<_ACEOF |
| 8281 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8282 | _ACEOF |
| 8283 | |
| 8284 | fi |
| 8285 | done |
| 8286 | |
| 8287 | |
| 8288 | for ac_func in strftime |
| 8289 | do : |
| 8290 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 8291 | if test "x$ac_cv_func_strftime" = xyes; then : |
| 8292 | cat >>confdefs.h <<_ACEOF |
| 8293 | #define HAVE_STRFTIME 1 |
| 8294 | _ACEOF |
| 8295 | |
| 8296 | else |
| 8297 | # strftime is in -lintl on SCO UNIX. |
| 8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
| 8299 | $as_echo_n "checking for strftime in -lintl... " >&6; } |
| 8300 | if ${ac_cv_lib_intl_strftime+:} false; then : |
| 8301 | $as_echo_n "(cached) " >&6 |
| 8302 | else |
| 8303 | ac_check_lib_save_LIBS=$LIBS |
| 8304 | LIBS="-lintl $LIBS" |
| 8305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8306 | /* end confdefs.h. */ |
| 8307 | |
| 8308 | /* Override any GCC internal prototype to avoid an error. |
| 8309 | Use char because int might match the return type of a GCC |
| 8310 | builtin and then its argument prototype would still apply. */ |
| 8311 | #ifdef __cplusplus |
| 8312 | extern "C" |
| 8313 | #endif |
| 8314 | char strftime (); |
| 8315 | int |
| 8316 | main () |
| 8317 | { |
| 8318 | return strftime (); |
| 8319 | ; |
| 8320 | return 0; |
| 8321 | } |
| 8322 | _ACEOF |
| 8323 | if ac_fn_c_try_link "$LINENO"; then : |
| 8324 | ac_cv_lib_intl_strftime=yes |
| 8325 | else |
| 8326 | ac_cv_lib_intl_strftime=no |
| 8327 | fi |
| 8328 | rm -f core conftest.err conftest.$ac_objext \ |
| 8329 | conftest$ac_exeext conftest.$ac_ext |
| 8330 | LIBS=$ac_check_lib_save_LIBS |
| 8331 | fi |
| 8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
| 8333 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } |
| 8334 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : |
| 8335 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
| 8336 | |
| 8337 | LIBS="-lintl $LIBS" |
| 8338 | fi |
| 8339 | |
| 8340 | fi |
| 8341 | done |
| 8342 | |
| 8343 | |
| 8344 | # Check for ALTDIRFUNC glob() extension |
| 8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 |
| 8346 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } |
| 8347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8348 | /* end confdefs.h. */ |
| 8349 | |
| 8350 | #include <glob.h> |
| 8351 | #ifdef GLOB_ALTDIRFUNC |
| 8352 | FOUNDIT |
| 8353 | #endif |
| 8354 | |
| 8355 | _ACEOF |
| 8356 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8357 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : |
| 8358 | |
| 8359 | |
| 8360 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h |
| 8361 | |
| 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8363 | $as_echo "yes" >&6; } |
| 8364 | |
| 8365 | else |
| 8366 | |
| 8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8368 | $as_echo "no" >&6; } |
| 8369 | |
| 8370 | |
| 8371 | fi |
| 8372 | rm -f conftest* |
| 8373 | |
| 8374 | |
| 8375 | # Check for g.gl_matchc glob() extension |
| 8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 |
| 8377 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } |
| 8378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8379 | /* end confdefs.h. */ |
| 8380 | #include <glob.h> |
| 8381 | int |
| 8382 | main () |
| 8383 | { |
| 8384 | glob_t g; g.gl_matchc = 1; |
| 8385 | ; |
| 8386 | return 0; |
| 8387 | } |
| 8388 | _ACEOF |
| 8389 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8390 | |
| 8391 | |
| 8392 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h |
| 8393 | |
| 8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8395 | $as_echo "yes" >&6; } |
| 8396 | |
| 8397 | else |
| 8398 | |
| 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8400 | $as_echo "no" >&6; } |
| 8401 | |
| 8402 | fi |
| 8403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8404 | |
| 8405 | # Check for g.gl_statv glob() extension |
| 8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 |
| 8407 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } |
| 8408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8409 | /* end confdefs.h. */ |
| 8410 | #include <glob.h> |
| 8411 | int |
| 8412 | main () |
| 8413 | { |
| 8414 | |
| 8415 | #ifndef GLOB_KEEPSTAT |
| 8416 | #error "glob does not support GLOB_KEEPSTAT extension" |
| 8417 | #endif |
| 8418 | glob_t g; |
| 8419 | g.gl_statv = NULL; |
| 8420 | |
| 8421 | ; |
| 8422 | return 0; |
| 8423 | } |
| 8424 | _ACEOF |
| 8425 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8426 | |
| 8427 | |
| 8428 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h |
| 8429 | |
| 8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8431 | $as_echo "yes" >&6; } |
| 8432 | |
| 8433 | else |
| 8434 | |
| 8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8436 | $as_echo "no" >&6; } |
| 8437 | |
| 8438 | |
| 8439 | fi |
| 8440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8441 | |
| 8442 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> |
| 8443 | " |
| 8444 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : |
| 8445 | ac_have_decl=1 |
| 8446 | else |
| 8447 | ac_have_decl=0 |
| 8448 | fi |
| 8449 | |
| 8450 | cat >>confdefs.h <<_ACEOF |
| 8451 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl |
| 8452 | _ACEOF |
| 8453 | |
| 8454 | |
| 8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 |
| 8456 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } |
| 8457 | if test "$cross_compiling" = yes; then : |
| 8458 | |
| 8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 |
| 8460 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} |
| 8461 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
| 8462 | |
| 8463 | |
| 8464 | |
| 8465 | else |
| 8466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8467 | /* end confdefs.h. */ |
| 8468 | |
| 8469 | #include <sys/types.h> |
| 8470 | #include <dirent.h> |
| 8471 | int |
| 8472 | main () |
| 8473 | { |
| 8474 | |
| 8475 | struct dirent d; |
| 8476 | exit(sizeof(d.d_name)<=sizeof(char)); |
| 8477 | |
| 8478 | ; |
| 8479 | return 0; |
| 8480 | } |
| 8481 | _ACEOF |
| 8482 | if ac_fn_c_try_run "$LINENO"; then : |
| 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8484 | $as_echo "yes" >&6; } |
| 8485 | else |
| 8486 | |
| 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8488 | $as_echo "no" >&6; } |
| 8489 | |
| 8490 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
| 8491 | |
| 8492 | |
| 8493 | fi |
| 8494 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8495 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8496 | fi |
| 8497 | |
| 8498 | |
| 8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 |
| 8500 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } |
| 8501 | if test -d "/proc/$$/fd" ; then |
| 8502 | |
| 8503 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h |
| 8504 | |
| 8505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8506 | $as_echo "yes" >&6; } |
| 8507 | else |
| 8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8509 | $as_echo "no" >&6; } |
| 8510 | fi |
| 8511 | |
| 8512 | # Check whether user wants S/Key support |
| 8513 | SKEY_MSG="no" |
| 8514 | |
| 8515 | # Check whether --with-skey was given. |
| 8516 | if test "${with_skey+set}" = set; then : |
| 8517 | withval=$with_skey; |
| 8518 | if test "x$withval" != "xno" ; then |
| 8519 | |
| 8520 | if test "x$withval" != "xyes" ; then |
| 8521 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 8522 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 8523 | fi |
| 8524 | |
| 8525 | |
| 8526 | $as_echo "#define SKEY 1" >>confdefs.h |
| 8527 | |
| 8528 | LIBS="-lskey $LIBS" |
| 8529 | SKEY_MSG="yes" |
| 8530 | |
| 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 |
| 8532 | $as_echo_n "checking for s/key support... " >&6; } |
| 8533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8534 | /* end confdefs.h. */ |
| 8535 | |
| 8536 | #include <stdio.h> |
| 8537 | #include <skey.h> |
| 8538 | |
| 8539 | int |
| 8540 | main () |
| 8541 | { |
| 8542 | |
| 8543 | char *ff = skey_keyinfo(""); ff=""; |
| 8544 | exit(0); |
| 8545 | |
| 8546 | ; |
| 8547 | return 0; |
| 8548 | } |
| 8549 | _ACEOF |
| 8550 | if ac_fn_c_try_link "$LINENO"; then : |
| 8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8552 | $as_echo "yes" >&6; } |
| 8553 | else |
| 8554 | |
| 8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8556 | $as_echo "no" >&6; } |
| 8557 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 |
| 8558 | |
| 8559 | fi |
| 8560 | rm -f core conftest.err conftest.$ac_objext \ |
| 8561 | conftest$ac_exeext conftest.$ac_ext |
| 8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 |
| 8563 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } |
| 8564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8565 | /* end confdefs.h. */ |
| 8566 | |
| 8567 | #include <stdio.h> |
| 8568 | #include <skey.h> |
| 8569 | |
| 8570 | int |
| 8571 | main () |
| 8572 | { |
| 8573 | |
| 8574 | (void)skeychallenge(NULL,"name","",0); |
| 8575 | |
| 8576 | ; |
| 8577 | return 0; |
| 8578 | } |
| 8579 | _ACEOF |
| 8580 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8581 | |
| 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8583 | $as_echo "yes" >&6; } |
| 8584 | |
| 8585 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h |
| 8586 | |
| 8587 | else |
| 8588 | |
| 8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8590 | $as_echo "no" >&6; } |
| 8591 | |
| 8592 | fi |
| 8593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8594 | fi |
| 8595 | |
| 8596 | |
| 8597 | fi |
| 8598 | |
| 8599 | |
| 8600 | # Check whether user wants TCP wrappers support |
| 8601 | TCPW_MSG="no" |
| 8602 | |
| 8603 | # Check whether --with-tcp-wrappers was given. |
| 8604 | if test "${with_tcp_wrappers+set}" = set; then : |
| 8605 | withval=$with_tcp_wrappers; |
| 8606 | if test "x$withval" != "xno" ; then |
| 8607 | saved_LIBS="$LIBS" |
| 8608 | saved_LDFLAGS="$LDFLAGS" |
| 8609 | saved_CPPFLAGS="$CPPFLAGS" |
| 8610 | if test -n "${withval}" && \ |
| 8611 | test "x${withval}" != "xyes"; then |
| 8612 | if test -d "${withval}/lib"; then |
| 8613 | if test -n "${need_dash_r}"; then |
| 8614 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 8615 | else |
| 8616 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 8617 | fi |
| 8618 | else |
| 8619 | if test -n "${need_dash_r}"; then |
| 8620 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 8621 | else |
| 8622 | LDFLAGS="-L${withval} ${LDFLAGS}" |
| 8623 | fi |
| 8624 | fi |
| 8625 | if test -d "${withval}/include"; then |
| 8626 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 8627 | else |
| 8628 | CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 8629 | fi |
| 8630 | fi |
| 8631 | LIBS="-lwrap $LIBS" |
| 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5 |
| 8633 | $as_echo_n "checking for libwrap... " >&6; } |
| 8634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8635 | /* end confdefs.h. */ |
| 8636 | |
| 8637 | #include <sys/types.h> |
| 8638 | #include <sys/socket.h> |
| 8639 | #include <netinet/in.h> |
| 8640 | #include <tcpd.h> |
| 8641 | int deny_severity = 0, allow_severity = 0; |
| 8642 | |
| 8643 | int |
| 8644 | main () |
| 8645 | { |
| 8646 | |
| 8647 | hosts_access(0); |
| 8648 | |
| 8649 | ; |
| 8650 | return 0; |
| 8651 | } |
| 8652 | _ACEOF |
| 8653 | if ac_fn_c_try_link "$LINENO"; then : |
| 8654 | |
| 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8656 | $as_echo "yes" >&6; } |
| 8657 | |
| 8658 | $as_echo "#define LIBWRAP 1" >>confdefs.h |
| 8659 | |
| 8660 | SSHDLIBS="$SSHDLIBS -lwrap" |
| 8661 | TCPW_MSG="yes" |
| 8662 | |
| 8663 | else |
| 8664 | |
| 8665 | as_fn_error $? "*** libwrap missing" "$LINENO" 5 |
| 8666 | |
| 8667 | |
| 8668 | fi |
| 8669 | rm -f core conftest.err conftest.$ac_objext \ |
| 8670 | conftest$ac_exeext conftest.$ac_ext |
| 8671 | LIBS="$saved_LIBS" |
| 8672 | fi |
| 8673 | |
| 8674 | |
| 8675 | fi |
| 8676 | |
| 8677 | |
| 8678 | # Check whether user wants libedit support |
| 8679 | LIBEDIT_MSG="no" |
| 8680 | |
| 8681 | # Check whether --with-libedit was given. |
| 8682 | if test "${with_libedit+set}" = set; then : |
| 8683 | withval=$with_libedit; if test "x$withval" != "xno" ; then |
| 8684 | if test "x$withval" = "xyes" ; then |
| 8685 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8686 | set dummy pkg-config; ac_word=$2 |
| 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8688 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8689 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 8690 | $as_echo_n "(cached) " >&6 |
| 8691 | else |
| 8692 | case $PKGCONFIG in |
| 8693 | [\\/]* | ?:[\\/]*) |
| 8694 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 8695 | ;; |
| 8696 | *) |
| 8697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8698 | for as_dir in $PATH |
| 8699 | do |
| 8700 | IFS=$as_save_IFS |
| 8701 | test -z "$as_dir" && as_dir=. |
| 8702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8704 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8706 | break 2 |
| 8707 | fi |
| 8708 | done |
| 8709 | done |
| 8710 | IFS=$as_save_IFS |
| 8711 | |
| 8712 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" |
| 8713 | ;; |
| 8714 | esac |
| 8715 | fi |
| 8716 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 8717 | if test -n "$PKGCONFIG"; then |
| 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 8719 | $as_echo "$PKGCONFIG" >&6; } |
| 8720 | else |
| 8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8722 | $as_echo "no" >&6; } |
| 8723 | fi |
| 8724 | |
| 8725 | |
| 8726 | if test "x$PKGCONFIG" != "xno"; then |
| 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 |
| 8728 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } |
| 8729 | if "$PKGCONFIG" libedit; then |
| 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8731 | $as_echo "yes" >&6; } |
| 8732 | use_pkgconfig_for_libedit=yes |
| 8733 | else |
| 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8735 | $as_echo "no" >&6; } |
| 8736 | fi |
| 8737 | fi |
| 8738 | else |
| 8739 | CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 8740 | if test -n "${need_dash_r}"; then |
| 8741 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 8742 | else |
| 8743 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 8744 | fi |
| 8745 | fi |
| 8746 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then |
| 8747 | LIBEDIT=`$PKGCONFIG --libs-only-l libedit` |
| 8748 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" |
| 8749 | else |
| 8750 | LIBEDIT="-ledit -lcurses" |
| 8751 | fi |
| 8752 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` |
| 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 |
| 8754 | $as_echo_n "checking for el_init in -ledit... " >&6; } |
| 8755 | if ${ac_cv_lib_edit_el_init+:} false; then : |
| 8756 | $as_echo_n "(cached) " >&6 |
| 8757 | else |
| 8758 | ac_check_lib_save_LIBS=$LIBS |
| 8759 | LIBS="-ledit $OTHERLIBS |
| 8760 | $LIBS" |
| 8761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8762 | /* end confdefs.h. */ |
| 8763 | |
| 8764 | /* Override any GCC internal prototype to avoid an error. |
| 8765 | Use char because int might match the return type of a GCC |
| 8766 | builtin and then its argument prototype would still apply. */ |
| 8767 | #ifdef __cplusplus |
| 8768 | extern "C" |
| 8769 | #endif |
| 8770 | char el_init (); |
| 8771 | int |
| 8772 | main () |
| 8773 | { |
| 8774 | return el_init (); |
| 8775 | ; |
| 8776 | return 0; |
| 8777 | } |
| 8778 | _ACEOF |
| 8779 | if ac_fn_c_try_link "$LINENO"; then : |
| 8780 | ac_cv_lib_edit_el_init=yes |
| 8781 | else |
| 8782 | ac_cv_lib_edit_el_init=no |
| 8783 | fi |
| 8784 | rm -f core conftest.err conftest.$ac_objext \ |
| 8785 | conftest$ac_exeext conftest.$ac_ext |
| 8786 | LIBS=$ac_check_lib_save_LIBS |
| 8787 | fi |
| 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 |
| 8789 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } |
| 8790 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : |
| 8791 | |
| 8792 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h |
| 8793 | |
| 8794 | LIBEDIT_MSG="yes" |
| 8795 | |
| 8796 | |
| 8797 | else |
| 8798 | as_fn_error $? "libedit not found" "$LINENO" 5 |
| 8799 | fi |
| 8800 | |
| 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 |
| 8802 | $as_echo_n "checking if libedit version is compatible... " >&6; } |
| 8803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8804 | /* end confdefs.h. */ |
| 8805 | #include <histedit.h> |
| 8806 | int |
| 8807 | main () |
| 8808 | { |
| 8809 | |
| 8810 | int i = H_SETSIZE; |
| 8811 | el_init("", NULL, NULL, NULL); |
| 8812 | exit(0); |
| 8813 | |
| 8814 | ; |
| 8815 | return 0; |
| 8816 | } |
| 8817 | _ACEOF |
| 8818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8820 | $as_echo "yes" >&6; } |
| 8821 | else |
| 8822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8823 | $as_echo "no" >&6; } |
| 8824 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 |
| 8825 | |
| 8826 | fi |
| 8827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8828 | fi |
| 8829 | |
| 8830 | fi |
| 8831 | |
| 8832 | |
| 8833 | AUDIT_MODULE=none |
| 8834 | |
| 8835 | # Check whether --with-audit was given. |
| 8836 | if test "${with_audit+set}" = set; then : |
| 8837 | withval=$with_audit; |
| 8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 |
| 8839 | $as_echo_n "checking for supported audit module... " >&6; } |
| 8840 | case "$withval" in |
| 8841 | bsm) |
| 8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 |
| 8843 | $as_echo "bsm" >&6; } |
| 8844 | AUDIT_MODULE=bsm |
| 8845 | for ac_header in bsm/audit.h |
| 8846 | do : |
| 8847 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " |
| 8848 | #ifdef HAVE_TIME_H |
| 8849 | # include <time.h> |
| 8850 | #endif |
| 8851 | |
| 8852 | |
| 8853 | " |
| 8854 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : |
| 8855 | cat >>confdefs.h <<_ACEOF |
| 8856 | #define HAVE_BSM_AUDIT_H 1 |
| 8857 | _ACEOF |
| 8858 | |
| 8859 | else |
| 8860 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 |
| 8861 | fi |
| 8862 | |
| 8863 | done |
| 8864 | |
| 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 |
| 8866 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } |
| 8867 | if ${ac_cv_lib_bsm_getaudit+:} false; then : |
| 8868 | $as_echo_n "(cached) " >&6 |
| 8869 | else |
| 8870 | ac_check_lib_save_LIBS=$LIBS |
| 8871 | LIBS="-lbsm $LIBS" |
| 8872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8873 | /* end confdefs.h. */ |
| 8874 | |
| 8875 | /* Override any GCC internal prototype to avoid an error. |
| 8876 | Use char because int might match the return type of a GCC |
| 8877 | builtin and then its argument prototype would still apply. */ |
| 8878 | #ifdef __cplusplus |
| 8879 | extern "C" |
| 8880 | #endif |
| 8881 | char getaudit (); |
| 8882 | int |
| 8883 | main () |
| 8884 | { |
| 8885 | return getaudit (); |
| 8886 | ; |
| 8887 | return 0; |
| 8888 | } |
| 8889 | _ACEOF |
| 8890 | if ac_fn_c_try_link "$LINENO"; then : |
| 8891 | ac_cv_lib_bsm_getaudit=yes |
| 8892 | else |
| 8893 | ac_cv_lib_bsm_getaudit=no |
| 8894 | fi |
| 8895 | rm -f core conftest.err conftest.$ac_objext \ |
| 8896 | conftest$ac_exeext conftest.$ac_ext |
| 8897 | LIBS=$ac_check_lib_save_LIBS |
| 8898 | fi |
| 8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 |
| 8900 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } |
| 8901 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : |
| 8902 | cat >>confdefs.h <<_ACEOF |
| 8903 | #define HAVE_LIBBSM 1 |
| 8904 | _ACEOF |
| 8905 | |
| 8906 | LIBS="-lbsm $LIBS" |
| 8907 | |
| 8908 | else |
| 8909 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 |
| 8910 | fi |
| 8911 | |
| 8912 | for ac_func in getaudit |
| 8913 | do : |
| 8914 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" |
| 8915 | if test "x$ac_cv_func_getaudit" = xyes; then : |
| 8916 | cat >>confdefs.h <<_ACEOF |
| 8917 | #define HAVE_GETAUDIT 1 |
| 8918 | _ACEOF |
| 8919 | |
| 8920 | else |
| 8921 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 |
| 8922 | fi |
| 8923 | done |
| 8924 | |
| 8925 | # These are optional |
| 8926 | for ac_func in getaudit_addr aug_get_machine |
| 8927 | do : |
| 8928 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8929 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8930 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 8931 | cat >>confdefs.h <<_ACEOF |
| 8932 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8933 | _ACEOF |
| 8934 | |
| 8935 | fi |
| 8936 | done |
| 8937 | |
| 8938 | |
| 8939 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h |
| 8940 | |
| 8941 | ;; |
| 8942 | linux) |
| 8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 |
| 8944 | $as_echo "linux" >&6; } |
| 8945 | AUDIT_MODULE=linux |
| 8946 | for ac_header in libaudit.h |
| 8947 | do : |
| 8948 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" |
| 8949 | if test "x$ac_cv_header_libaudit_h" = xyes; then : |
| 8950 | cat >>confdefs.h <<_ACEOF |
| 8951 | #define HAVE_LIBAUDIT_H 1 |
| 8952 | _ACEOF |
| 8953 | |
| 8954 | fi |
| 8955 | |
| 8956 | done |
| 8957 | |
| 8958 | SSHDLIBS="$SSHDLIBS -laudit" |
| 8959 | |
| 8960 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h |
| 8961 | |
| 8962 | ;; |
| 8963 | debug) |
| 8964 | AUDIT_MODULE=debug |
| 8965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 |
| 8966 | $as_echo "debug" >&6; } |
| 8967 | |
| 8968 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h |
| 8969 | |
| 8970 | ;; |
| 8971 | no) |
| 8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8973 | $as_echo "no" >&6; } |
| 8974 | ;; |
| 8975 | *) |
| 8976 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 |
| 8977 | ;; |
| 8978 | esac |
| 8979 | |
| 8980 | fi |
| 8981 | |
| 8982 | |
| 8983 | for ac_func in \ |
| 8984 | arc4random \ |
| 8985 | arc4random_buf \ |
| 8986 | arc4random_uniform \ |
| 8987 | asprintf \ |
| 8988 | b64_ntop \ |
| 8989 | __b64_ntop \ |
| 8990 | b64_pton \ |
| 8991 | __b64_pton \ |
| 8992 | bcopy \ |
| 8993 | bindresvport_sa \ |
| 8994 | clock \ |
| 8995 | closefrom \ |
| 8996 | dirfd \ |
| 8997 | fchmod \ |
| 8998 | fchown \ |
| 8999 | freeaddrinfo \ |
| 9000 | fstatvfs \ |
| 9001 | futimes \ |
| 9002 | getaddrinfo \ |
| 9003 | getcwd \ |
| 9004 | getgrouplist \ |
| 9005 | getnameinfo \ |
| 9006 | getopt \ |
| 9007 | getpeereid \ |
| 9008 | getpeerucred \ |
| 9009 | _getpty \ |
| 9010 | getrlimit \ |
| 9011 | getttyent \ |
| 9012 | glob \ |
| 9013 | group_from_gid \ |
| 9014 | inet_aton \ |
| 9015 | inet_ntoa \ |
| 9016 | inet_ntop \ |
| 9017 | innetgr \ |
| 9018 | login_getcapbool \ |
| 9019 | md5_crypt \ |
| 9020 | memmove \ |
| 9021 | mkdtemp \ |
| 9022 | mmap \ |
| 9023 | ngetaddrinfo \ |
| 9024 | nsleep \ |
| 9025 | ogetaddrinfo \ |
| 9026 | openlog_r \ |
| 9027 | openpty \ |
| 9028 | poll \ |
| 9029 | prctl \ |
| 9030 | pstat \ |
| 9031 | readpassphrase \ |
| 9032 | realpath \ |
| 9033 | recvmsg \ |
| 9034 | rresvport_af \ |
| 9035 | sendmsg \ |
| 9036 | setdtablesize \ |
| 9037 | setegid \ |
| 9038 | setenv \ |
| 9039 | seteuid \ |
| 9040 | setgroupent \ |
| 9041 | setgroups \ |
| 9042 | setlogin \ |
| 9043 | setpassent\ |
| 9044 | setpcred \ |
| 9045 | setproctitle \ |
| 9046 | setregid \ |
| 9047 | setreuid \ |
| 9048 | setrlimit \ |
| 9049 | setsid \ |
| 9050 | setvbuf \ |
| 9051 | sigaction \ |
| 9052 | sigvec \ |
| 9053 | snprintf \ |
| 9054 | socketpair \ |
| 9055 | statfs \ |
| 9056 | statvfs \ |
| 9057 | strdup \ |
| 9058 | strerror \ |
| 9059 | strlcat \ |
| 9060 | strlcpy \ |
| 9061 | strmode \ |
| 9062 | strnvis \ |
| 9063 | strptime \ |
| 9064 | strtonum \ |
| 9065 | strtoll \ |
| 9066 | strtoul \ |
| 9067 | swap32 \ |
| 9068 | sysconf \ |
| 9069 | tcgetpgrp \ |
| 9070 | timingsafe_bcmp \ |
| 9071 | truncate \ |
| 9072 | unsetenv \ |
| 9073 | updwtmpx \ |
| 9074 | user_from_uid \ |
| 9075 | vasprintf \ |
| 9076 | vhangup \ |
| 9077 | vsnprintf \ |
| 9078 | waitpid \ |
| 9079 | |
| 9080 | do : |
| 9081 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9082 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9083 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9084 | cat >>confdefs.h <<_ACEOF |
| 9085 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9086 | _ACEOF |
| 9087 | |
| 9088 | fi |
| 9089 | done |
| 9090 | |
| 9091 | |
| 9092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9093 | /* end confdefs.h. */ |
| 9094 | #include <ctype.h> |
| 9095 | int |
| 9096 | main () |
| 9097 | { |
| 9098 | return (isblank('a')); |
| 9099 | ; |
| 9100 | return 0; |
| 9101 | } |
| 9102 | _ACEOF |
| 9103 | if ac_fn_c_try_link "$LINENO"; then : |
| 9104 | |
| 9105 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h |
| 9106 | |
| 9107 | |
| 9108 | fi |
| 9109 | rm -f core conftest.err conftest.$ac_objext \ |
| 9110 | conftest$ac_exeext conftest.$ac_ext |
| 9111 | |
| 9112 | # PKCS#11 support requires dlopen() and co |
| 9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 9114 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| 9115 | if ${ac_cv_search_dlopen+:} false; then : |
| 9116 | $as_echo_n "(cached) " >&6 |
| 9117 | else |
| 9118 | ac_func_search_save_LIBS=$LIBS |
| 9119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9120 | /* end confdefs.h. */ |
| 9121 | |
| 9122 | /* Override any GCC internal prototype to avoid an error. |
| 9123 | Use char because int might match the return type of a GCC |
| 9124 | builtin and then its argument prototype would still apply. */ |
| 9125 | #ifdef __cplusplus |
| 9126 | extern "C" |
| 9127 | #endif |
| 9128 | char dlopen (); |
| 9129 | int |
| 9130 | main () |
| 9131 | { |
| 9132 | return dlopen (); |
| 9133 | ; |
| 9134 | return 0; |
| 9135 | } |
| 9136 | _ACEOF |
| 9137 | for ac_lib in '' dl; do |
| 9138 | if test -z "$ac_lib"; then |
| 9139 | ac_res="none required" |
| 9140 | else |
| 9141 | ac_res=-l$ac_lib |
| 9142 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9143 | fi |
| 9144 | if ac_fn_c_try_link "$LINENO"; then : |
| 9145 | ac_cv_search_dlopen=$ac_res |
| 9146 | fi |
| 9147 | rm -f core conftest.err conftest.$ac_objext \ |
| 9148 | conftest$ac_exeext |
| 9149 | if ${ac_cv_search_dlopen+:} false; then : |
| 9150 | break |
| 9151 | fi |
| 9152 | done |
| 9153 | if ${ac_cv_search_dlopen+:} false; then : |
| 9154 | |
| 9155 | else |
| 9156 | ac_cv_search_dlopen=no |
| 9157 | fi |
| 9158 | rm conftest.$ac_ext |
| 9159 | LIBS=$ac_func_search_save_LIBS |
| 9160 | fi |
| 9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 9162 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 9163 | ac_res=$ac_cv_search_dlopen |
| 9164 | if test "$ac_res" != no; then : |
| 9165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9166 | |
| 9167 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h |
| 9168 | |
| 9169 | |
| 9170 | fi |
| 9171 | |
| 9172 | |
| 9173 | # IRIX has a const char return value for gai_strerror() |
| 9174 | for ac_func in gai_strerror |
| 9175 | do : |
| 9176 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
| 9177 | if test "x$ac_cv_func_gai_strerror" = xyes; then : |
| 9178 | cat >>confdefs.h <<_ACEOF |
| 9179 | #define HAVE_GAI_STRERROR 1 |
| 9180 | _ACEOF |
| 9181 | |
| 9182 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h |
| 9183 | |
| 9184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9185 | /* end confdefs.h. */ |
| 9186 | |
| 9187 | #include <sys/types.h> |
| 9188 | #include <sys/socket.h> |
| 9189 | #include <netdb.h> |
| 9190 | |
| 9191 | const char *gai_strerror(int); |
| 9192 | |
| 9193 | int |
| 9194 | main () |
| 9195 | { |
| 9196 | |
| 9197 | char *str; |
| 9198 | str = gai_strerror(0); |
| 9199 | |
| 9200 | ; |
| 9201 | return 0; |
| 9202 | } |
| 9203 | _ACEOF |
| 9204 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9205 | |
| 9206 | |
| 9207 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h |
| 9208 | |
| 9209 | fi |
| 9210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9211 | fi |
| 9212 | done |
| 9213 | |
| 9214 | |
| 9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
| 9216 | $as_echo_n "checking for library containing nanosleep... " >&6; } |
| 9217 | if ${ac_cv_search_nanosleep+:} false; then : |
| 9218 | $as_echo_n "(cached) " >&6 |
| 9219 | else |
| 9220 | ac_func_search_save_LIBS=$LIBS |
| 9221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9222 | /* end confdefs.h. */ |
| 9223 | |
| 9224 | /* Override any GCC internal prototype to avoid an error. |
| 9225 | Use char because int might match the return type of a GCC |
| 9226 | builtin and then its argument prototype would still apply. */ |
| 9227 | #ifdef __cplusplus |
| 9228 | extern "C" |
| 9229 | #endif |
| 9230 | char nanosleep (); |
| 9231 | int |
| 9232 | main () |
| 9233 | { |
| 9234 | return nanosleep (); |
| 9235 | ; |
| 9236 | return 0; |
| 9237 | } |
| 9238 | _ACEOF |
| 9239 | for ac_lib in '' rt posix4; do |
| 9240 | if test -z "$ac_lib"; then |
| 9241 | ac_res="none required" |
| 9242 | else |
| 9243 | ac_res=-l$ac_lib |
| 9244 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9245 | fi |
| 9246 | if ac_fn_c_try_link "$LINENO"; then : |
| 9247 | ac_cv_search_nanosleep=$ac_res |
| 9248 | fi |
| 9249 | rm -f core conftest.err conftest.$ac_objext \ |
| 9250 | conftest$ac_exeext |
| 9251 | if ${ac_cv_search_nanosleep+:} false; then : |
| 9252 | break |
| 9253 | fi |
| 9254 | done |
| 9255 | if ${ac_cv_search_nanosleep+:} false; then : |
| 9256 | |
| 9257 | else |
| 9258 | ac_cv_search_nanosleep=no |
| 9259 | fi |
| 9260 | rm conftest.$ac_ext |
| 9261 | LIBS=$ac_func_search_save_LIBS |
| 9262 | fi |
| 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 |
| 9264 | $as_echo "$ac_cv_search_nanosleep" >&6; } |
| 9265 | ac_res=$ac_cv_search_nanosleep |
| 9266 | if test "$ac_res" != no; then : |
| 9267 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9268 | |
| 9269 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 9270 | |
| 9271 | fi |
| 9272 | |
| 9273 | |
| 9274 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" |
| 9275 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : |
| 9276 | for ac_func in getrusage |
| 9277 | do : |
| 9278 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" |
| 9279 | if test "x$ac_cv_func_getrusage" = xyes; then : |
| 9280 | cat >>confdefs.h <<_ACEOF |
| 9281 | #define HAVE_GETRUSAGE 1 |
| 9282 | _ACEOF |
| 9283 | |
| 9284 | fi |
| 9285 | done |
| 9286 | |
| 9287 | fi |
| 9288 | |
| 9289 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " |
| 9290 | #ifdef HAVE_STRING_H |
| 9291 | # include <string.h> |
| 9292 | #endif |
| 9293 | |
| 9294 | " |
| 9295 | if test "x$ac_cv_have_decl_strsep" = xyes; then : |
| 9296 | for ac_func in strsep |
| 9297 | do : |
| 9298 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
| 9299 | if test "x$ac_cv_func_strsep" = xyes; then : |
| 9300 | cat >>confdefs.h <<_ACEOF |
| 9301 | #define HAVE_STRSEP 1 |
| 9302 | _ACEOF |
| 9303 | |
| 9304 | fi |
| 9305 | done |
| 9306 | |
| 9307 | fi |
| 9308 | |
| 9309 | |
| 9310 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> |
| 9311 | |
| 9312 | " |
| 9313 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : |
| 9314 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h |
| 9315 | |
| 9316 | else |
| 9317 | for ac_func in tcsendbreak |
| 9318 | do : |
| 9319 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" |
| 9320 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : |
| 9321 | cat >>confdefs.h <<_ACEOF |
| 9322 | #define HAVE_TCSENDBREAK 1 |
| 9323 | _ACEOF |
| 9324 | |
| 9325 | fi |
| 9326 | done |
| 9327 | |
| 9328 | fi |
| 9329 | |
| 9330 | |
| 9331 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> |
| 9332 | " |
| 9333 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : |
| 9334 | ac_have_decl=1 |
| 9335 | else |
| 9336 | ac_have_decl=0 |
| 9337 | fi |
| 9338 | |
| 9339 | cat >>confdefs.h <<_ACEOF |
| 9340 | #define HAVE_DECL_H_ERRNO $ac_have_decl |
| 9341 | _ACEOF |
| 9342 | |
| 9343 | |
| 9344 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " |
| 9345 | #include <sys/types.h> |
| 9346 | #include <sys/socket.h> |
| 9347 | |
| 9348 | " |
| 9349 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : |
| 9350 | ac_have_decl=1 |
| 9351 | else |
| 9352 | ac_have_decl=0 |
| 9353 | fi |
| 9354 | |
| 9355 | cat >>confdefs.h <<_ACEOF |
| 9356 | #define HAVE_DECL_SHUT_RD $ac_have_decl |
| 9357 | _ACEOF |
| 9358 | |
| 9359 | |
| 9360 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " |
| 9361 | #include <sys/types.h> |
| 9362 | #ifdef HAVE_SYS_STAT_H |
| 9363 | # include <sys/stat.h> |
| 9364 | #endif |
| 9365 | #ifdef HAVE_FCNTL_H |
| 9366 | # include <fcntl.h> |
| 9367 | #endif |
| 9368 | |
| 9369 | " |
| 9370 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : |
| 9371 | ac_have_decl=1 |
| 9372 | else |
| 9373 | ac_have_decl=0 |
| 9374 | fi |
| 9375 | |
| 9376 | cat >>confdefs.h <<_ACEOF |
| 9377 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl |
| 9378 | _ACEOF |
| 9379 | |
| 9380 | |
| 9381 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " |
| 9382 | #include <sys/types.h> |
| 9383 | #include <sys/uio.h> |
| 9384 | #include <unistd.h> |
| 9385 | |
| 9386 | " |
| 9387 | if test "x$ac_cv_have_decl_writev" = xyes; then : |
| 9388 | ac_have_decl=1 |
| 9389 | else |
| 9390 | ac_have_decl=0 |
| 9391 | fi |
| 9392 | |
| 9393 | cat >>confdefs.h <<_ACEOF |
| 9394 | #define HAVE_DECL_WRITEV $ac_have_decl |
| 9395 | _ACEOF |
| 9396 | |
| 9397 | |
| 9398 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " |
| 9399 | #include <sys/param.h> |
| 9400 | |
| 9401 | " |
| 9402 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : |
| 9403 | ac_have_decl=1 |
| 9404 | else |
| 9405 | ac_have_decl=0 |
| 9406 | fi |
| 9407 | |
| 9408 | cat >>confdefs.h <<_ACEOF |
| 9409 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl |
| 9410 | _ACEOF |
| 9411 | |
| 9412 | |
| 9413 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " |
| 9414 | #include <stddef.h> |
| 9415 | |
| 9416 | " |
| 9417 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : |
| 9418 | ac_have_decl=1 |
| 9419 | else |
| 9420 | ac_have_decl=0 |
| 9421 | fi |
| 9422 | |
| 9423 | cat >>confdefs.h <<_ACEOF |
| 9424 | #define HAVE_DECL_OFFSETOF $ac_have_decl |
| 9425 | _ACEOF |
| 9426 | |
| 9427 | |
| 9428 | for ac_func in setresuid |
| 9429 | do : |
| 9430 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 9431 | if test "x$ac_cv_func_setresuid" = xyes; then : |
| 9432 | cat >>confdefs.h <<_ACEOF |
| 9433 | #define HAVE_SETRESUID 1 |
| 9434 | _ACEOF |
| 9435 | |
| 9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 |
| 9437 | $as_echo_n "checking if setresuid seems to work... " >&6; } |
| 9438 | if test "$cross_compiling" = yes; then : |
| 9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 9440 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
| 9441 | |
| 9442 | else |
| 9443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9444 | /* end confdefs.h. */ |
| 9445 | |
| 9446 | #include <stdlib.h> |
| 9447 | #include <errno.h> |
| 9448 | |
| 9449 | int |
| 9450 | main () |
| 9451 | { |
| 9452 | |
| 9453 | errno=0; |
| 9454 | setresuid(0,0,0); |
| 9455 | if (errno==ENOSYS) |
| 9456 | exit(1); |
| 9457 | else |
| 9458 | exit(0); |
| 9459 | |
| 9460 | ; |
| 9461 | return 0; |
| 9462 | } |
| 9463 | _ACEOF |
| 9464 | if ac_fn_c_try_run "$LINENO"; then : |
| 9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9466 | $as_echo "yes" >&6; } |
| 9467 | else |
| 9468 | |
| 9469 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h |
| 9470 | |
| 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 9472 | $as_echo "not implemented" >&6; } |
| 9473 | fi |
| 9474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9475 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9476 | fi |
| 9477 | |
| 9478 | |
| 9479 | fi |
| 9480 | done |
| 9481 | |
| 9482 | |
| 9483 | for ac_func in setresgid |
| 9484 | do : |
| 9485 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 9486 | if test "x$ac_cv_func_setresgid" = xyes; then : |
| 9487 | cat >>confdefs.h <<_ACEOF |
| 9488 | #define HAVE_SETRESGID 1 |
| 9489 | _ACEOF |
| 9490 | |
| 9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 |
| 9492 | $as_echo_n "checking if setresgid seems to work... " >&6; } |
| 9493 | if test "$cross_compiling" = yes; then : |
| 9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 9495 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
| 9496 | |
| 9497 | else |
| 9498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9499 | /* end confdefs.h. */ |
| 9500 | |
| 9501 | #include <stdlib.h> |
| 9502 | #include <errno.h> |
| 9503 | |
| 9504 | int |
| 9505 | main () |
| 9506 | { |
| 9507 | |
| 9508 | errno=0; |
| 9509 | setresgid(0,0,0); |
| 9510 | if (errno==ENOSYS) |
| 9511 | exit(1); |
| 9512 | else |
| 9513 | exit(0); |
| 9514 | |
| 9515 | ; |
| 9516 | return 0; |
| 9517 | } |
| 9518 | _ACEOF |
| 9519 | if ac_fn_c_try_run "$LINENO"; then : |
| 9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9521 | $as_echo "yes" >&6; } |
| 9522 | else |
| 9523 | |
| 9524 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h |
| 9525 | |
| 9526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 9527 | $as_echo "not implemented" >&6; } |
| 9528 | fi |
| 9529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9530 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9531 | fi |
| 9532 | |
| 9533 | |
| 9534 | fi |
| 9535 | done |
| 9536 | |
| 9537 | |
| 9538 | for ac_func in gettimeofday time |
| 9539 | do : |
| 9540 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9541 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9542 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9543 | cat >>confdefs.h <<_ACEOF |
| 9544 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9545 | _ACEOF |
| 9546 | |
| 9547 | fi |
| 9548 | done |
| 9549 | |
| 9550 | for ac_func in endutent getutent getutid getutline pututline setutent |
| 9551 | do : |
| 9552 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9553 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9554 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9555 | cat >>confdefs.h <<_ACEOF |
| 9556 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9557 | _ACEOF |
| 9558 | |
| 9559 | fi |
| 9560 | done |
| 9561 | |
| 9562 | for ac_func in utmpname |
| 9563 | do : |
| 9564 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" |
| 9565 | if test "x$ac_cv_func_utmpname" = xyes; then : |
| 9566 | cat >>confdefs.h <<_ACEOF |
| 9567 | #define HAVE_UTMPNAME 1 |
| 9568 | _ACEOF |
| 9569 | |
| 9570 | fi |
| 9571 | done |
| 9572 | |
| 9573 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline |
| 9574 | do : |
| 9575 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9576 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9577 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9578 | cat >>confdefs.h <<_ACEOF |
| 9579 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9580 | _ACEOF |
| 9581 | |
| 9582 | fi |
| 9583 | done |
| 9584 | |
| 9585 | for ac_func in setutxdb setutxent utmpxname |
| 9586 | do : |
| 9587 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9588 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9589 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9590 | cat >>confdefs.h <<_ACEOF |
| 9591 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9592 | _ACEOF |
| 9593 | |
| 9594 | fi |
| 9595 | done |
| 9596 | |
| 9597 | for ac_func in getlastlogxbyname |
| 9598 | do : |
| 9599 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" |
| 9600 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : |
| 9601 | cat >>confdefs.h <<_ACEOF |
| 9602 | #define HAVE_GETLASTLOGXBYNAME 1 |
| 9603 | _ACEOF |
| 9604 | |
| 9605 | fi |
| 9606 | done |
| 9607 | |
| 9608 | |
| 9609 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
| 9610 | if test "x$ac_cv_func_daemon" = xyes; then : |
| 9611 | |
| 9612 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
| 9613 | |
| 9614 | else |
| 9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 |
| 9616 | $as_echo_n "checking for daemon in -lbsd... " >&6; } |
| 9617 | if ${ac_cv_lib_bsd_daemon+:} false; then : |
| 9618 | $as_echo_n "(cached) " >&6 |
| 9619 | else |
| 9620 | ac_check_lib_save_LIBS=$LIBS |
| 9621 | LIBS="-lbsd $LIBS" |
| 9622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9623 | /* end confdefs.h. */ |
| 9624 | |
| 9625 | /* Override any GCC internal prototype to avoid an error. |
| 9626 | Use char because int might match the return type of a GCC |
| 9627 | builtin and then its argument prototype would still apply. */ |
| 9628 | #ifdef __cplusplus |
| 9629 | extern "C" |
| 9630 | #endif |
| 9631 | char daemon (); |
| 9632 | int |
| 9633 | main () |
| 9634 | { |
| 9635 | return daemon (); |
| 9636 | ; |
| 9637 | return 0; |
| 9638 | } |
| 9639 | _ACEOF |
| 9640 | if ac_fn_c_try_link "$LINENO"; then : |
| 9641 | ac_cv_lib_bsd_daemon=yes |
| 9642 | else |
| 9643 | ac_cv_lib_bsd_daemon=no |
| 9644 | fi |
| 9645 | rm -f core conftest.err conftest.$ac_objext \ |
| 9646 | conftest$ac_exeext conftest.$ac_ext |
| 9647 | LIBS=$ac_check_lib_save_LIBS |
| 9648 | fi |
| 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 |
| 9650 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } |
| 9651 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : |
| 9652 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
| 9653 | |
| 9654 | fi |
| 9655 | |
| 9656 | |
| 9657 | fi |
| 9658 | |
| 9659 | |
| 9660 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 9661 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| 9662 | |
| 9663 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
| 9664 | |
| 9665 | else |
| 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 |
| 9667 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } |
| 9668 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : |
| 9669 | $as_echo_n "(cached) " >&6 |
| 9670 | else |
| 9671 | ac_check_lib_save_LIBS=$LIBS |
| 9672 | LIBS="-lucb $LIBS" |
| 9673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9674 | /* end confdefs.h. */ |
| 9675 | |
| 9676 | /* Override any GCC internal prototype to avoid an error. |
| 9677 | Use char because int might match the return type of a GCC |
| 9678 | builtin and then its argument prototype would still apply. */ |
| 9679 | #ifdef __cplusplus |
| 9680 | extern "C" |
| 9681 | #endif |
| 9682 | char getpagesize (); |
| 9683 | int |
| 9684 | main () |
| 9685 | { |
| 9686 | return getpagesize (); |
| 9687 | ; |
| 9688 | return 0; |
| 9689 | } |
| 9690 | _ACEOF |
| 9691 | if ac_fn_c_try_link "$LINENO"; then : |
| 9692 | ac_cv_lib_ucb_getpagesize=yes |
| 9693 | else |
| 9694 | ac_cv_lib_ucb_getpagesize=no |
| 9695 | fi |
| 9696 | rm -f core conftest.err conftest.$ac_objext \ |
| 9697 | conftest$ac_exeext conftest.$ac_ext |
| 9698 | LIBS=$ac_check_lib_save_LIBS |
| 9699 | fi |
| 9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 |
| 9701 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } |
| 9702 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : |
| 9703 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
| 9704 | |
| 9705 | fi |
| 9706 | |
| 9707 | |
| 9708 | fi |
| 9709 | |
| 9710 | |
| 9711 | # Check for broken snprintf |
| 9712 | if test "x$ac_cv_func_snprintf" = "xyes" ; then |
| 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 |
| 9714 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } |
| 9715 | if test "$cross_compiling" = yes; then : |
| 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 9717 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
| 9718 | |
| 9719 | else |
| 9720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9721 | /* end confdefs.h. */ |
| 9722 | #include <stdio.h> |
| 9723 | int |
| 9724 | main () |
| 9725 | { |
| 9726 | |
| 9727 | char b[5]; |
| 9728 | snprintf(b,5,"123456789"); |
| 9729 | exit(b[4]!='\0'); |
| 9730 | |
| 9731 | ; |
| 9732 | return 0; |
| 9733 | } |
| 9734 | _ACEOF |
| 9735 | if ac_fn_c_try_run "$LINENO"; then : |
| 9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9737 | $as_echo "yes" >&6; } |
| 9738 | else |
| 9739 | |
| 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9741 | $as_echo "no" >&6; } |
| 9742 | |
| 9743 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 9744 | |
| 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 |
| 9746 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} |
| 9747 | |
| 9748 | fi |
| 9749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9750 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9751 | fi |
| 9752 | |
| 9753 | fi |
| 9754 | |
| 9755 | # If we don't have a working asprintf, then we strongly depend on vsnprintf |
| 9756 | # returning the right thing on overflow: the number of characters it tried to |
| 9757 | # create (as per SUSv3) |
| 9758 | if test "x$ac_cv_func_asprintf" != "xyes" && \ |
| 9759 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then |
| 9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 |
| 9761 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } |
| 9762 | if test "$cross_compiling" = yes; then : |
| 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 |
| 9764 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} |
| 9765 | |
| 9766 | else |
| 9767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9768 | /* end confdefs.h. */ |
| 9769 | |
| 9770 | #include <sys/types.h> |
| 9771 | #include <stdio.h> |
| 9772 | #include <stdarg.h> |
| 9773 | |
| 9774 | int x_snprintf(char *str,size_t count,const char *fmt,...) |
| 9775 | { |
| 9776 | size_t ret; va_list ap; |
| 9777 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); |
| 9778 | return ret; |
| 9779 | } |
| 9780 | |
| 9781 | int |
| 9782 | main () |
| 9783 | { |
| 9784 | |
| 9785 | char x[1]; |
| 9786 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); |
| 9787 | |
| 9788 | ; |
| 9789 | return 0; |
| 9790 | } |
| 9791 | _ACEOF |
| 9792 | if ac_fn_c_try_run "$LINENO"; then : |
| 9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9794 | $as_echo "yes" >&6; } |
| 9795 | else |
| 9796 | |
| 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9798 | $as_echo "no" >&6; } |
| 9799 | |
| 9800 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 9801 | |
| 9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 |
| 9803 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} |
| 9804 | |
| 9805 | fi |
| 9806 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9807 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9808 | fi |
| 9809 | |
| 9810 | fi |
| 9811 | |
| 9812 | # On systems where [v]snprintf is broken, but is declared in stdio, |
| 9813 | # check that the fmt argument is const char * or just char *. |
| 9814 | # This is only useful for when BROKEN_SNPRINTF |
| 9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 |
| 9816 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } |
| 9817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9818 | /* end confdefs.h. */ |
| 9819 | |
| 9820 | #include <stdio.h> |
| 9821 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } |
| 9822 | |
| 9823 | int |
| 9824 | main () |
| 9825 | { |
| 9826 | |
| 9827 | snprintf(0, 0, 0); |
| 9828 | |
| 9829 | ; |
| 9830 | return 0; |
| 9831 | } |
| 9832 | _ACEOF |
| 9833 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9835 | $as_echo "yes" >&6; } |
| 9836 | |
| 9837 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h |
| 9838 | |
| 9839 | else |
| 9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9841 | $as_echo "no" >&6; } |
| 9842 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h |
| 9843 | |
| 9844 | fi |
| 9845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9846 | |
| 9847 | # Check for missing getpeereid (or equiv) support |
| 9848 | NO_PEERCHECK="" |
| 9849 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then |
| 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 |
| 9851 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } |
| 9852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9853 | /* end confdefs.h. */ |
| 9854 | |
| 9855 | #include <sys/types.h> |
| 9856 | #include <sys/socket.h> |
| 9857 | int |
| 9858 | main () |
| 9859 | { |
| 9860 | int i = SO_PEERCRED; |
| 9861 | ; |
| 9862 | return 0; |
| 9863 | } |
| 9864 | _ACEOF |
| 9865 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9867 | $as_echo "yes" >&6; } |
| 9868 | |
| 9869 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h |
| 9870 | |
| 9871 | |
| 9872 | else |
| 9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9874 | $as_echo "no" >&6; } |
| 9875 | NO_PEERCHECK=1 |
| 9876 | |
| 9877 | fi |
| 9878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9879 | fi |
| 9880 | |
| 9881 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then |
| 9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 |
| 9883 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } |
| 9884 | if test "$cross_compiling" = yes; then : |
| 9885 | |
| 9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9887 | $as_echo "yes" >&6; } |
| 9888 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | else |
| 9893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9894 | /* end confdefs.h. */ |
| 9895 | |
| 9896 | #include <stdlib.h> |
| 9897 | |
| 9898 | int |
| 9899 | main () |
| 9900 | { |
| 9901 | |
| 9902 | char template[]="conftest.mkstemp-test"; |
| 9903 | if (mkstemp(template) == -1) |
| 9904 | exit(1); |
| 9905 | unlink(template); |
| 9906 | exit(0); |
| 9907 | |
| 9908 | ; |
| 9909 | return 0; |
| 9910 | } |
| 9911 | _ACEOF |
| 9912 | if ac_fn_c_try_run "$LINENO"; then : |
| 9913 | |
| 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9915 | $as_echo "no" >&6; } |
| 9916 | |
| 9917 | else |
| 9918 | |
| 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9920 | $as_echo "yes" >&6; } |
| 9921 | |
| 9922 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
| 9923 | |
| 9924 | |
| 9925 | fi |
| 9926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9928 | fi |
| 9929 | |
| 9930 | fi |
| 9931 | |
| 9932 | if test ! -z "$check_for_openpty_ctty_bug"; then |
| 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 |
| 9934 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } |
| 9935 | if test "$cross_compiling" = yes; then : |
| 9936 | |
| 9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 9938 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 9939 | |
| 9940 | |
| 9941 | else |
| 9942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9943 | /* end confdefs.h. */ |
| 9944 | |
| 9945 | #include <stdio.h> |
| 9946 | #include <sys/fcntl.h> |
| 9947 | #include <sys/types.h> |
| 9948 | #include <sys/wait.h> |
| 9949 | |
| 9950 | int |
| 9951 | main () |
| 9952 | { |
| 9953 | |
| 9954 | pid_t pid; |
| 9955 | int fd, ptyfd, ttyfd, status; |
| 9956 | |
| 9957 | pid = fork(); |
| 9958 | if (pid < 0) { /* failed */ |
| 9959 | exit(1); |
| 9960 | } else if (pid > 0) { /* parent */ |
| 9961 | waitpid(pid, &status, 0); |
| 9962 | if (WIFEXITED(status)) |
| 9963 | exit(WEXITSTATUS(status)); |
| 9964 | else |
| 9965 | exit(2); |
| 9966 | } else { /* child */ |
| 9967 | close(0); close(1); close(2); |
| 9968 | setsid(); |
| 9969 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); |
| 9970 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); |
| 9971 | if (fd >= 0) |
| 9972 | exit(3); /* Acquired ctty: broken */ |
| 9973 | else |
| 9974 | exit(0); /* Did not acquire ctty: OK */ |
| 9975 | } |
| 9976 | |
| 9977 | ; |
| 9978 | return 0; |
| 9979 | } |
| 9980 | _ACEOF |
| 9981 | if ac_fn_c_try_run "$LINENO"; then : |
| 9982 | |
| 9983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9984 | $as_echo "yes" >&6; } |
| 9985 | |
| 9986 | else |
| 9987 | |
| 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9989 | $as_echo "no" >&6; } |
| 9990 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 9991 | |
| 9992 | |
| 9993 | fi |
| 9994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9995 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9996 | fi |
| 9997 | |
| 9998 | fi |
| 9999 | |
| 10000 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 10001 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then |
| 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 10003 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 10004 | if test "$cross_compiling" = yes; then : |
| 10005 | |
| 10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 10007 | $as_echo "cross-compiling, assuming yes" >&6; } |
| 10008 | |
| 10009 | |
| 10010 | else |
| 10011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10012 | /* end confdefs.h. */ |
| 10013 | |
| 10014 | #include <stdio.h> |
| 10015 | #include <sys/socket.h> |
| 10016 | #include <netdb.h> |
| 10017 | #include <errno.h> |
| 10018 | #include <netinet/in.h> |
| 10019 | |
| 10020 | #define TEST_PORT "2222" |
| 10021 | |
| 10022 | int |
| 10023 | main () |
| 10024 | { |
| 10025 | |
| 10026 | int err, sock; |
| 10027 | struct addrinfo *gai_ai, *ai, hints; |
| 10028 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 10029 | |
| 10030 | memset(&hints, 0, sizeof(hints)); |
| 10031 | hints.ai_family = PF_UNSPEC; |
| 10032 | hints.ai_socktype = SOCK_STREAM; |
| 10033 | hints.ai_flags = AI_PASSIVE; |
| 10034 | |
| 10035 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 10036 | if (err != 0) { |
| 10037 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 10038 | exit(1); |
| 10039 | } |
| 10040 | |
| 10041 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 10042 | if (ai->ai_family != AF_INET6) |
| 10043 | continue; |
| 10044 | |
| 10045 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 10046 | sizeof(ntop), strport, sizeof(strport), |
| 10047 | NI_NUMERICHOST|NI_NUMERICSERV); |
| 10048 | |
| 10049 | if (err != 0) { |
| 10050 | if (err == EAI_SYSTEM) |
| 10051 | perror("getnameinfo EAI_SYSTEM"); |
| 10052 | else |
| 10053 | fprintf(stderr, "getnameinfo failed: %s\n", |
| 10054 | gai_strerror(err)); |
| 10055 | exit(2); |
| 10056 | } |
| 10057 | |
| 10058 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); |
| 10059 | if (sock < 0) |
| 10060 | perror("socket"); |
| 10061 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
| 10062 | if (errno == EBADF) |
| 10063 | exit(3); |
| 10064 | } |
| 10065 | } |
| 10066 | exit(0); |
| 10067 | |
| 10068 | ; |
| 10069 | return 0; |
| 10070 | } |
| 10071 | _ACEOF |
| 10072 | if ac_fn_c_try_run "$LINENO"; then : |
| 10073 | |
| 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10075 | $as_echo "yes" >&6; } |
| 10076 | |
| 10077 | else |
| 10078 | |
| 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10080 | $as_echo "no" >&6; } |
| 10081 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 10082 | |
| 10083 | |
| 10084 | fi |
| 10085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10086 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10087 | fi |
| 10088 | |
| 10089 | fi |
| 10090 | |
| 10091 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 10092 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then |
| 10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 10094 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 10095 | if test "$cross_compiling" = yes; then : |
| 10096 | |
| 10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 |
| 10098 | $as_echo "cross-compiling, assuming no" >&6; } |
| 10099 | |
| 10100 | |
| 10101 | else |
| 10102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10103 | /* end confdefs.h. */ |
| 10104 | |
| 10105 | #include <stdio.h> |
| 10106 | #include <sys/socket.h> |
| 10107 | #include <netdb.h> |
| 10108 | #include <errno.h> |
| 10109 | #include <netinet/in.h> |
| 10110 | |
| 10111 | #define TEST_PORT "2222" |
| 10112 | |
| 10113 | int |
| 10114 | main () |
| 10115 | { |
| 10116 | |
| 10117 | int err, sock; |
| 10118 | struct addrinfo *gai_ai, *ai, hints; |
| 10119 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 10120 | |
| 10121 | memset(&hints, 0, sizeof(hints)); |
| 10122 | hints.ai_family = PF_UNSPEC; |
| 10123 | hints.ai_socktype = SOCK_STREAM; |
| 10124 | hints.ai_flags = AI_PASSIVE; |
| 10125 | |
| 10126 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 10127 | if (err != 0) { |
| 10128 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 10129 | exit(1); |
| 10130 | } |
| 10131 | |
| 10132 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 10133 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) |
| 10134 | continue; |
| 10135 | |
| 10136 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 10137 | sizeof(ntop), strport, sizeof(strport), |
| 10138 | NI_NUMERICHOST|NI_NUMERICSERV); |
| 10139 | |
| 10140 | if (ai->ai_family == AF_INET && err != 0) { |
| 10141 | perror("getnameinfo"); |
| 10142 | exit(2); |
| 10143 | } |
| 10144 | } |
| 10145 | exit(0); |
| 10146 | |
| 10147 | ; |
| 10148 | return 0; |
| 10149 | } |
| 10150 | _ACEOF |
| 10151 | if ac_fn_c_try_run "$LINENO"; then : |
| 10152 | |
| 10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10154 | $as_echo "yes" >&6; } |
| 10155 | |
| 10156 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h |
| 10157 | |
| 10158 | |
| 10159 | else |
| 10160 | |
| 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10162 | $as_echo "no" >&6; } |
| 10163 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 10164 | |
| 10165 | |
| 10166 | fi |
| 10167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10168 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10169 | fi |
| 10170 | |
| 10171 | fi |
| 10172 | |
| 10173 | if test "x$check_for_conflicting_getspnam" = "x1"; then |
| 10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 |
| 10175 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } |
| 10176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10177 | /* end confdefs.h. */ |
| 10178 | #include <shadow.h> |
| 10179 | int |
| 10180 | main () |
| 10181 | { |
| 10182 | exit(0); |
| 10183 | ; |
| 10184 | return 0; |
| 10185 | } |
| 10186 | _ACEOF |
| 10187 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10188 | |
| 10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10190 | $as_echo "no" >&6; } |
| 10191 | |
| 10192 | else |
| 10193 | |
| 10194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10195 | $as_echo "yes" >&6; } |
| 10196 | |
| 10197 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | fi |
| 10202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10203 | fi |
| 10204 | |
| 10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
| 10206 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
| 10207 | if ${ac_cv_func_getpgrp_void+:} false; then : |
| 10208 | $as_echo_n "(cached) " >&6 |
| 10209 | else |
| 10210 | # Use it with a single arg. |
| 10211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10212 | /* end confdefs.h. */ |
| 10213 | $ac_includes_default |
| 10214 | int |
| 10215 | main () |
| 10216 | { |
| 10217 | getpgrp (0); |
| 10218 | ; |
| 10219 | return 0; |
| 10220 | } |
| 10221 | _ACEOF |
| 10222 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10223 | ac_cv_func_getpgrp_void=no |
| 10224 | else |
| 10225 | ac_cv_func_getpgrp_void=yes |
| 10226 | fi |
| 10227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10228 | |
| 10229 | fi |
| 10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
| 10231 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
| 10232 | if test $ac_cv_func_getpgrp_void = yes; then |
| 10233 | |
| 10234 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
| 10235 | |
| 10236 | fi |
| 10237 | |
| 10238 | |
| 10239 | # Search for OpenSSL |
| 10240 | saved_CPPFLAGS="$CPPFLAGS" |
| 10241 | saved_LDFLAGS="$LDFLAGS" |
| 10242 | |
| 10243 | # Check whether --with-ssl-dir was given. |
| 10244 | if test "${with_ssl_dir+set}" = set; then : |
| 10245 | withval=$with_ssl_dir; |
| 10246 | if test "x$withval" != "xno" ; then |
| 10247 | case "$withval" in |
| 10248 | # Relative paths |
| 10249 | ./*|../*) withval="`pwd`/$withval" |
| 10250 | esac |
| 10251 | if test -d "$withval/lib"; then |
| 10252 | if test -n "${need_dash_r}"; then |
| 10253 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 10254 | else |
| 10255 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 10256 | fi |
| 10257 | elif test -d "$withval/lib64"; then |
| 10258 | if test -n "${need_dash_r}"; then |
| 10259 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" |
| 10260 | else |
| 10261 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" |
| 10262 | fi |
| 10263 | else |
| 10264 | if test -n "${need_dash_r}"; then |
| 10265 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 10266 | else |
| 10267 | LDFLAGS="-L${withval} ${LDFLAGS}" |
| 10268 | fi |
| 10269 | fi |
| 10270 | if test -d "$withval/include"; then |
| 10271 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 10272 | else |
| 10273 | CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 10274 | fi |
| 10275 | fi |
| 10276 | |
| 10277 | |
| 10278 | fi |
| 10279 | |
| 10280 | LIBS="-lcrypto $LIBS" |
| 10281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10282 | /* end confdefs.h. */ |
| 10283 | |
| 10284 | /* Override any GCC internal prototype to avoid an error. |
| 10285 | Use char because int might match the return type of a GCC |
| 10286 | builtin and then its argument prototype would still apply. */ |
| 10287 | #ifdef __cplusplus |
| 10288 | extern "C" |
| 10289 | #endif |
| 10290 | char RAND_add (); |
| 10291 | int |
| 10292 | main () |
| 10293 | { |
| 10294 | return RAND_add (); |
| 10295 | ; |
| 10296 | return 0; |
| 10297 | } |
| 10298 | _ACEOF |
| 10299 | if ac_fn_c_try_link "$LINENO"; then : |
| 10300 | |
| 10301 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
| 10302 | |
| 10303 | else |
| 10304 | |
| 10305 | if test -n "${need_dash_r}"; then |
| 10306 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 10307 | else |
| 10308 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 10309 | fi |
| 10310 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" |
| 10311 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" |
| 10312 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : |
| 10313 | |
| 10314 | else |
| 10315 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 |
| 10316 | fi |
| 10317 | |
| 10318 | |
| 10319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10320 | /* end confdefs.h. */ |
| 10321 | |
| 10322 | /* Override any GCC internal prototype to avoid an error. |
| 10323 | Use char because int might match the return type of a GCC |
| 10324 | builtin and then its argument prototype would still apply. */ |
| 10325 | #ifdef __cplusplus |
| 10326 | extern "C" |
| 10327 | #endif |
| 10328 | char RAND_add (); |
| 10329 | int |
| 10330 | main () |
| 10331 | { |
| 10332 | return RAND_add (); |
| 10333 | ; |
| 10334 | return 0; |
| 10335 | } |
| 10336 | _ACEOF |
| 10337 | if ac_fn_c_try_link "$LINENO"; then : |
| 10338 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
| 10339 | |
| 10340 | else |
| 10341 | |
| 10342 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 |
| 10343 | |
| 10344 | |
| 10345 | fi |
| 10346 | rm -f core conftest.err conftest.$ac_objext \ |
| 10347 | conftest$ac_exeext conftest.$ac_ext |
| 10348 | |
| 10349 | |
| 10350 | fi |
| 10351 | rm -f core conftest.err conftest.$ac_objext \ |
| 10352 | conftest$ac_exeext conftest.$ac_ext |
| 10353 | |
| 10354 | # Determine OpenSSL header version |
| 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 |
| 10356 | $as_echo_n "checking OpenSSL header version... " >&6; } |
| 10357 | if test "$cross_compiling" = yes; then : |
| 10358 | |
| 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 10360 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 10361 | |
| 10362 | |
| 10363 | else |
| 10364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10365 | /* end confdefs.h. */ |
| 10366 | |
| 10367 | #include <stdio.h> |
| 10368 | #include <string.h> |
| 10369 | #include <openssl/opensslv.h> |
| 10370 | #define DATA "conftest.sslincver" |
| 10371 | |
| 10372 | int |
| 10373 | main () |
| 10374 | { |
| 10375 | |
| 10376 | FILE *fd; |
| 10377 | int rc; |
| 10378 | |
| 10379 | fd = fopen(DATA,"w"); |
| 10380 | if(fd == NULL) |
| 10381 | exit(1); |
| 10382 | |
| 10383 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) |
| 10384 | exit(1); |
| 10385 | |
| 10386 | exit(0); |
| 10387 | |
| 10388 | ; |
| 10389 | return 0; |
| 10390 | } |
| 10391 | _ACEOF |
| 10392 | if ac_fn_c_try_run "$LINENO"; then : |
| 10393 | |
| 10394 | ssl_header_ver=`cat conftest.sslincver` |
| 10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 |
| 10396 | $as_echo "$ssl_header_ver" >&6; } |
| 10397 | |
| 10398 | else |
| 10399 | |
| 10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10401 | $as_echo "not found" >&6; } |
| 10402 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 |
| 10403 | |
| 10404 | fi |
| 10405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10406 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10407 | fi |
| 10408 | |
| 10409 | |
| 10410 | # Determine OpenSSL library version |
| 10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 |
| 10412 | $as_echo_n "checking OpenSSL library version... " >&6; } |
| 10413 | if test "$cross_compiling" = yes; then : |
| 10414 | |
| 10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 10416 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 10417 | |
| 10418 | |
| 10419 | else |
| 10420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10421 | /* end confdefs.h. */ |
| 10422 | |
| 10423 | #include <stdio.h> |
| 10424 | #include <string.h> |
| 10425 | #include <openssl/opensslv.h> |
| 10426 | #include <openssl/crypto.h> |
| 10427 | #define DATA "conftest.ssllibver" |
| 10428 | |
| 10429 | int |
| 10430 | main () |
| 10431 | { |
| 10432 | |
| 10433 | FILE *fd; |
| 10434 | int rc; |
| 10435 | |
| 10436 | fd = fopen(DATA,"w"); |
| 10437 | if(fd == NULL) |
| 10438 | exit(1); |
| 10439 | |
| 10440 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) |
| 10441 | exit(1); |
| 10442 | |
| 10443 | exit(0); |
| 10444 | |
| 10445 | ; |
| 10446 | return 0; |
| 10447 | } |
| 10448 | _ACEOF |
| 10449 | if ac_fn_c_try_run "$LINENO"; then : |
| 10450 | |
| 10451 | ssl_library_ver=`cat conftest.ssllibver` |
| 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 |
| 10453 | $as_echo "$ssl_library_ver" >&6; } |
| 10454 | |
| 10455 | else |
| 10456 | |
| 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 10458 | $as_echo "not found" >&6; } |
| 10459 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 |
| 10460 | |
| 10461 | fi |
| 10462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10463 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10464 | fi |
| 10465 | |
| 10466 | |
| 10467 | |
| 10468 | # Check whether --with-openssl-header-check was given. |
| 10469 | if test "${with_openssl_header_check+set}" = set; then : |
| 10470 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then |
| 10471 | openssl_check_nonfatal=1 |
| 10472 | fi |
| 10473 | |
| 10474 | |
| 10475 | fi |
| 10476 | |
| 10477 | |
| 10478 | # Sanity check OpenSSL headers |
| 10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 |
| 10480 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } |
| 10481 | if test "$cross_compiling" = yes; then : |
| 10482 | |
| 10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 10484 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 10485 | |
| 10486 | |
| 10487 | else |
| 10488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10489 | /* end confdefs.h. */ |
| 10490 | |
| 10491 | #include <string.h> |
| 10492 | #include <openssl/opensslv.h> |
| 10493 | |
| 10494 | int |
| 10495 | main () |
| 10496 | { |
| 10497 | |
| 10498 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); |
| 10499 | |
| 10500 | ; |
| 10501 | return 0; |
| 10502 | } |
| 10503 | _ACEOF |
| 10504 | if ac_fn_c_try_run "$LINENO"; then : |
| 10505 | |
| 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10507 | $as_echo "yes" >&6; } |
| 10508 | |
| 10509 | else |
| 10510 | |
| 10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10512 | $as_echo "no" >&6; } |
| 10513 | if test "x$openssl_check_nonfatal" = "x"; then |
| 10514 | as_fn_error $? "Your OpenSSL headers do not match your |
| 10515 | library. Check config.log for details. |
| 10516 | If you are sure your installation is consistent, you can disable the check |
| 10517 | by running \"./configure --without-openssl-header-check\". |
| 10518 | Also see contrib/findssl.sh for help identifying header/library mismatches. |
| 10519 | " "$LINENO" 5 |
| 10520 | else |
| 10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your |
| 10522 | library. Check config.log for details. |
| 10523 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 |
| 10524 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your |
| 10525 | library. Check config.log for details. |
| 10526 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} |
| 10527 | fi |
| 10528 | |
| 10529 | fi |
| 10530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10531 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10532 | fi |
| 10533 | |
| 10534 | |
| 10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 |
| 10536 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } |
| 10537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10538 | /* end confdefs.h. */ |
| 10539 | #include <openssl/evp.h> |
| 10540 | int |
| 10541 | main () |
| 10542 | { |
| 10543 | SSLeay_add_all_algorithms(); |
| 10544 | ; |
| 10545 | return 0; |
| 10546 | } |
| 10547 | _ACEOF |
| 10548 | if ac_fn_c_try_link "$LINENO"; then : |
| 10549 | |
| 10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10551 | $as_echo "yes" >&6; } |
| 10552 | |
| 10553 | else |
| 10554 | |
| 10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10556 | $as_echo "no" >&6; } |
| 10557 | saved_LIBS="$LIBS" |
| 10558 | LIBS="$LIBS -ldl" |
| 10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 |
| 10560 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } |
| 10561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10562 | /* end confdefs.h. */ |
| 10563 | #include <openssl/evp.h> |
| 10564 | int |
| 10565 | main () |
| 10566 | { |
| 10567 | SSLeay_add_all_algorithms(); |
| 10568 | ; |
| 10569 | return 0; |
| 10570 | } |
| 10571 | _ACEOF |
| 10572 | if ac_fn_c_try_link "$LINENO"; then : |
| 10573 | |
| 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10575 | $as_echo "yes" >&6; } |
| 10576 | |
| 10577 | else |
| 10578 | |
| 10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10580 | $as_echo "no" >&6; } |
| 10581 | LIBS="$saved_LIBS" |
| 10582 | |
| 10583 | |
| 10584 | fi |
| 10585 | rm -f core conftest.err conftest.$ac_objext \ |
| 10586 | conftest$ac_exeext conftest.$ac_ext |
| 10587 | |
| 10588 | |
| 10589 | fi |
| 10590 | rm -f core conftest.err conftest.$ac_objext \ |
| 10591 | conftest$ac_exeext conftest.$ac_ext |
| 10592 | |
| 10593 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method |
| 10594 | do : |
| 10595 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10596 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10597 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10598 | cat >>confdefs.h <<_ACEOF |
| 10599 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10600 | _ACEOF |
| 10601 | |
| 10602 | fi |
| 10603 | done |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | # Check whether --with-ssl-engine was given. |
| 10608 | if test "${with_ssl_engine+set}" = set; then : |
| 10609 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then |
| 10610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 |
| 10611 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } |
| 10612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10613 | /* end confdefs.h. */ |
| 10614 | |
| 10615 | #include <openssl/engine.h> |
| 10616 | |
| 10617 | int |
| 10618 | main () |
| 10619 | { |
| 10620 | |
| 10621 | ENGINE_load_builtin_engines(); |
| 10622 | ENGINE_register_all_complete(); |
| 10623 | |
| 10624 | ; |
| 10625 | return 0; |
| 10626 | } |
| 10627 | _ACEOF |
| 10628 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10630 | $as_echo "yes" >&6; } |
| 10631 | |
| 10632 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h |
| 10633 | |
| 10634 | |
| 10635 | else |
| 10636 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 |
| 10637 | |
| 10638 | fi |
| 10639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10640 | fi |
| 10641 | |
| 10642 | fi |
| 10643 | |
| 10644 | |
| 10645 | # Check for OpenSSL without EVP_aes_{192,256}_cbc |
| 10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 |
| 10647 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } |
| 10648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10649 | /* end confdefs.h. */ |
| 10650 | |
| 10651 | #include <string.h> |
| 10652 | #include <openssl/evp.h> |
| 10653 | |
| 10654 | int |
| 10655 | main () |
| 10656 | { |
| 10657 | |
| 10658 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); |
| 10659 | |
| 10660 | ; |
| 10661 | return 0; |
| 10662 | } |
| 10663 | _ACEOF |
| 10664 | if ac_fn_c_try_link "$LINENO"; then : |
| 10665 | |
| 10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10667 | $as_echo "no" >&6; } |
| 10668 | |
| 10669 | else |
| 10670 | |
| 10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10672 | $as_echo "yes" >&6; } |
| 10673 | |
| 10674 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h |
| 10675 | |
| 10676 | |
| 10677 | |
| 10678 | fi |
| 10679 | rm -f core conftest.err conftest.$ac_objext \ |
| 10680 | conftest$ac_exeext conftest.$ac_ext |
| 10681 | |
| 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 |
| 10683 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } |
| 10684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10685 | /* end confdefs.h. */ |
| 10686 | |
| 10687 | #include <string.h> |
| 10688 | #include <openssl/evp.h> |
| 10689 | |
| 10690 | int |
| 10691 | main () |
| 10692 | { |
| 10693 | |
| 10694 | if(EVP_DigestUpdate(NULL, NULL,0)) |
| 10695 | exit(0); |
| 10696 | |
| 10697 | ; |
| 10698 | return 0; |
| 10699 | } |
| 10700 | _ACEOF |
| 10701 | if ac_fn_c_try_link "$LINENO"; then : |
| 10702 | |
| 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10704 | $as_echo "yes" >&6; } |
| 10705 | |
| 10706 | else |
| 10707 | |
| 10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10709 | $as_echo "no" >&6; } |
| 10710 | |
| 10711 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | fi |
| 10716 | rm -f core conftest.err conftest.$ac_objext \ |
| 10717 | conftest$ac_exeext conftest.$ac_ext |
| 10718 | |
| 10719 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, |
| 10720 | # because the system crypt() is more featureful. |
| 10721 | if test "x$check_for_libcrypt_before" = "x1"; then |
| 10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 10723 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 10724 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 10725 | $as_echo_n "(cached) " >&6 |
| 10726 | else |
| 10727 | ac_check_lib_save_LIBS=$LIBS |
| 10728 | LIBS="-lcrypt $LIBS" |
| 10729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10730 | /* end confdefs.h. */ |
| 10731 | |
| 10732 | /* Override any GCC internal prototype to avoid an error. |
| 10733 | Use char because int might match the return type of a GCC |
| 10734 | builtin and then its argument prototype would still apply. */ |
| 10735 | #ifdef __cplusplus |
| 10736 | extern "C" |
| 10737 | #endif |
| 10738 | char crypt (); |
| 10739 | int |
| 10740 | main () |
| 10741 | { |
| 10742 | return crypt (); |
| 10743 | ; |
| 10744 | return 0; |
| 10745 | } |
| 10746 | _ACEOF |
| 10747 | if ac_fn_c_try_link "$LINENO"; then : |
| 10748 | ac_cv_lib_crypt_crypt=yes |
| 10749 | else |
| 10750 | ac_cv_lib_crypt_crypt=no |
| 10751 | fi |
| 10752 | rm -f core conftest.err conftest.$ac_objext \ |
| 10753 | conftest$ac_exeext conftest.$ac_ext |
| 10754 | LIBS=$ac_check_lib_save_LIBS |
| 10755 | fi |
| 10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 10757 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 10758 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
| 10759 | cat >>confdefs.h <<_ACEOF |
| 10760 | #define HAVE_LIBCRYPT 1 |
| 10761 | _ACEOF |
| 10762 | |
| 10763 | LIBS="-lcrypt $LIBS" |
| 10764 | |
| 10765 | fi |
| 10766 | |
| 10767 | fi |
| 10768 | |
| 10769 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the |
| 10770 | # version in OpenSSL. |
| 10771 | if test "x$check_for_libcrypt_later" = "x1"; then |
| 10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 10773 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 10774 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 10775 | $as_echo_n "(cached) " >&6 |
| 10776 | else |
| 10777 | ac_check_lib_save_LIBS=$LIBS |
| 10778 | LIBS="-lcrypt $LIBS" |
| 10779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10780 | /* end confdefs.h. */ |
| 10781 | |
| 10782 | /* Override any GCC internal prototype to avoid an error. |
| 10783 | Use char because int might match the return type of a GCC |
| 10784 | builtin and then its argument prototype would still apply. */ |
| 10785 | #ifdef __cplusplus |
| 10786 | extern "C" |
| 10787 | #endif |
| 10788 | char crypt (); |
| 10789 | int |
| 10790 | main () |
| 10791 | { |
| 10792 | return crypt (); |
| 10793 | ; |
| 10794 | return 0; |
| 10795 | } |
| 10796 | _ACEOF |
| 10797 | if ac_fn_c_try_link "$LINENO"; then : |
| 10798 | ac_cv_lib_crypt_crypt=yes |
| 10799 | else |
| 10800 | ac_cv_lib_crypt_crypt=no |
| 10801 | fi |
| 10802 | rm -f core conftest.err conftest.$ac_objext \ |
| 10803 | conftest$ac_exeext conftest.$ac_ext |
| 10804 | LIBS=$ac_check_lib_save_LIBS |
| 10805 | fi |
| 10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 10807 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 10808 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
| 10809 | LIBS="$LIBS -lcrypt" |
| 10810 | fi |
| 10811 | |
| 10812 | fi |
| 10813 | |
| 10814 | # Search for SHA256 support in libc and/or OpenSSL |
| 10815 | for ac_func in SHA256_Update EVP_sha256 |
| 10816 | do : |
| 10817 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10818 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10819 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10820 | cat >>confdefs.h <<_ACEOF |
| 10821 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10822 | _ACEOF |
| 10823 | TEST_SSH_SHA256=yes |
| 10824 | else |
| 10825 | TEST_SSH_SHA256=no |
| 10826 | fi |
| 10827 | done |
| 10828 | |
| 10829 | |
| 10830 | |
| 10831 | # Check complete ECC support in OpenSSL |
| 10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5 |
| 10833 | $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; } |
| 10834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10835 | /* end confdefs.h. */ |
| 10836 | |
| 10837 | #include <openssl/ec.h> |
| 10838 | #include <openssl/ecdh.h> |
| 10839 | #include <openssl/ecdsa.h> |
| 10840 | #include <openssl/evp.h> |
| 10841 | #include <openssl/objects.h> |
| 10842 | #include <openssl/opensslv.h> |
| 10843 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 10844 | # error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 10845 | #endif |
| 10846 | |
| 10847 | int |
| 10848 | main () |
| 10849 | { |
| 10850 | |
| 10851 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); |
| 10852 | const EVP_MD *m = EVP_sha512(); /* We need this too */ |
| 10853 | |
| 10854 | ; |
| 10855 | return 0; |
| 10856 | } |
| 10857 | _ACEOF |
| 10858 | if ac_fn_c_try_link "$LINENO"; then : |
| 10859 | |
| 10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10861 | $as_echo "yes" >&6; } |
| 10862 | |
| 10863 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h |
| 10864 | |
| 10865 | TEST_SSH_ECC=yes |
| 10866 | COMMENT_OUT_ECC="" |
| 10867 | |
| 10868 | else |
| 10869 | |
| 10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10871 | $as_echo "no" >&6; } |
| 10872 | TEST_SSH_ECC=no |
| 10873 | COMMENT_OUT_ECC="#no ecc#" |
| 10874 | |
| 10875 | |
| 10876 | fi |
| 10877 | rm -f core conftest.err conftest.$ac_objext \ |
| 10878 | conftest$ac_exeext conftest.$ac_ext |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | saved_LIBS="$LIBS" |
| 10883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 |
| 10884 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } |
| 10885 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : |
| 10886 | $as_echo_n "(cached) " >&6 |
| 10887 | else |
| 10888 | ac_check_lib_save_LIBS=$LIBS |
| 10889 | LIBS="-liaf $LIBS" |
| 10890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10891 | /* end confdefs.h. */ |
| 10892 | |
| 10893 | /* Override any GCC internal prototype to avoid an error. |
| 10894 | Use char because int might match the return type of a GCC |
| 10895 | builtin and then its argument prototype would still apply. */ |
| 10896 | #ifdef __cplusplus |
| 10897 | extern "C" |
| 10898 | #endif |
| 10899 | char ia_openinfo (); |
| 10900 | int |
| 10901 | main () |
| 10902 | { |
| 10903 | return ia_openinfo (); |
| 10904 | ; |
| 10905 | return 0; |
| 10906 | } |
| 10907 | _ACEOF |
| 10908 | if ac_fn_c_try_link "$LINENO"; then : |
| 10909 | ac_cv_lib_iaf_ia_openinfo=yes |
| 10910 | else |
| 10911 | ac_cv_lib_iaf_ia_openinfo=no |
| 10912 | fi |
| 10913 | rm -f core conftest.err conftest.$ac_objext \ |
| 10914 | conftest$ac_exeext conftest.$ac_ext |
| 10915 | LIBS=$ac_check_lib_save_LIBS |
| 10916 | fi |
| 10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 |
| 10918 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } |
| 10919 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : |
| 10920 | |
| 10921 | LIBS="$LIBS -liaf" |
| 10922 | for ac_func in set_id |
| 10923 | do : |
| 10924 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" |
| 10925 | if test "x$ac_cv_func_set_id" = xyes; then : |
| 10926 | cat >>confdefs.h <<_ACEOF |
| 10927 | #define HAVE_SET_ID 1 |
| 10928 | _ACEOF |
| 10929 | SSHDLIBS="$SSHDLIBS -liaf" |
| 10930 | |
| 10931 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h |
| 10932 | |
| 10933 | |
| 10934 | fi |
| 10935 | done |
| 10936 | |
| 10937 | |
| 10938 | fi |
| 10939 | |
| 10940 | LIBS="$saved_LIBS" |
| 10941 | |
| 10942 | ### Configure cryptographic random number support |
| 10943 | |
| 10944 | # Check wheter OpenSSL seeds itself |
| 10945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 |
| 10946 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } |
| 10947 | if test "$cross_compiling" = yes; then : |
| 10948 | |
| 10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 10950 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 10951 | # This is safe, since we will fatal() at runtime if |
| 10952 | # OpenSSL is not seeded correctly. |
| 10953 | OPENSSL_SEEDS_ITSELF=yes |
| 10954 | |
| 10955 | |
| 10956 | else |
| 10957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10958 | /* end confdefs.h. */ |
| 10959 | |
| 10960 | #include <string.h> |
| 10961 | #include <openssl/rand.h> |
| 10962 | |
| 10963 | int |
| 10964 | main () |
| 10965 | { |
| 10966 | |
| 10967 | exit(RAND_status() == 1 ? 0 : 1); |
| 10968 | |
| 10969 | ; |
| 10970 | return 0; |
| 10971 | } |
| 10972 | _ACEOF |
| 10973 | if ac_fn_c_try_run "$LINENO"; then : |
| 10974 | |
| 10975 | OPENSSL_SEEDS_ITSELF=yes |
| 10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10977 | $as_echo "yes" >&6; } |
| 10978 | |
| 10979 | else |
| 10980 | |
| 10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10982 | $as_echo "no" >&6; } |
| 10983 | |
| 10984 | fi |
| 10985 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10986 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10987 | fi |
| 10988 | |
| 10989 | |
| 10990 | # PRNGD TCP socket |
| 10991 | |
| 10992 | # Check whether --with-prngd-port was given. |
| 10993 | if test "${with_prngd_port+set}" = set; then : |
| 10994 | withval=$with_prngd_port; |
| 10995 | case "$withval" in |
| 10996 | no) |
| 10997 | withval="" |
| 10998 | ;; |
| 10999 | [0-9]*) |
| 11000 | ;; |
| 11001 | *) |
| 11002 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 |
| 11003 | ;; |
| 11004 | esac |
| 11005 | if test ! -z "$withval" ; then |
| 11006 | PRNGD_PORT="$withval" |
| 11007 | |
| 11008 | cat >>confdefs.h <<_ACEOF |
| 11009 | #define PRNGD_PORT $PRNGD_PORT |
| 11010 | _ACEOF |
| 11011 | |
| 11012 | fi |
| 11013 | |
| 11014 | |
| 11015 | fi |
| 11016 | |
| 11017 | |
| 11018 | # PRNGD Unix domain socket |
| 11019 | |
| 11020 | # Check whether --with-prngd-socket was given. |
| 11021 | if test "${with_prngd_socket+set}" = set; then : |
| 11022 | withval=$with_prngd_socket; |
| 11023 | case "$withval" in |
| 11024 | yes) |
| 11025 | withval="/var/run/egd-pool" |
| 11026 | ;; |
| 11027 | no) |
| 11028 | withval="" |
| 11029 | ;; |
| 11030 | /*) |
| 11031 | ;; |
| 11032 | *) |
| 11033 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 |
| 11034 | ;; |
| 11035 | esac |
| 11036 | |
| 11037 | if test ! -z "$withval" ; then |
| 11038 | if test ! -z "$PRNGD_PORT" ; then |
| 11039 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 |
| 11040 | fi |
| 11041 | if test ! -r "$withval" ; then |
| 11042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 |
| 11043 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} |
| 11044 | fi |
| 11045 | PRNGD_SOCKET="$withval" |
| 11046 | |
| 11047 | cat >>confdefs.h <<_ACEOF |
| 11048 | #define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 11049 | _ACEOF |
| 11050 | |
| 11051 | fi |
| 11052 | |
| 11053 | else |
| 11054 | |
| 11055 | # Check for existing socket only if we don't have a random device already |
| 11056 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then |
| 11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 |
| 11058 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } |
| 11059 | # Insert other locations here |
| 11060 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do |
| 11061 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then |
| 11062 | PRNGD_SOCKET="$sock" |
| 11063 | cat >>confdefs.h <<_ACEOF |
| 11064 | #define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 11065 | _ACEOF |
| 11066 | |
| 11067 | break; |
| 11068 | fi |
| 11069 | done |
| 11070 | if test ! -z "$PRNGD_SOCKET" ; then |
| 11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 |
| 11072 | $as_echo "$PRNGD_SOCKET" >&6; } |
| 11073 | else |
| 11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11075 | $as_echo "not found" >&6; } |
| 11076 | fi |
| 11077 | fi |
| 11078 | |
| 11079 | |
| 11080 | fi |
| 11081 | |
| 11082 | |
| 11083 | # Which randomness source do we use? |
| 11084 | if test ! -z "$PRNGD_PORT" ; then |
| 11085 | RAND_MSG="PRNGd port $PRNGD_PORT" |
| 11086 | elif test ! -z "$PRNGD_SOCKET" ; then |
| 11087 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" |
| 11088 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then |
| 11089 | |
| 11090 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h |
| 11091 | |
| 11092 | RAND_MSG="OpenSSL internal ONLY" |
| 11093 | else |
| 11094 | 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 |
| 11095 | fi |
| 11096 | |
| 11097 | # Check for PAM libs |
| 11098 | PAM_MSG="no" |
| 11099 | |
| 11100 | # Check whether --with-pam was given. |
| 11101 | if test "${with_pam+set}" = set; then : |
| 11102 | withval=$with_pam; |
| 11103 | if test "x$withval" != "xno" ; then |
| 11104 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ |
| 11105 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then |
| 11106 | as_fn_error $? "PAM headers not found" "$LINENO" 5 |
| 11107 | fi |
| 11108 | |
| 11109 | saved_LIBS="$LIBS" |
| 11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11111 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11112 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11113 | $as_echo_n "(cached) " >&6 |
| 11114 | else |
| 11115 | ac_check_lib_save_LIBS=$LIBS |
| 11116 | LIBS="-ldl $LIBS" |
| 11117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11118 | /* end confdefs.h. */ |
| 11119 | |
| 11120 | /* Override any GCC internal prototype to avoid an error. |
| 11121 | Use char because int might match the return type of a GCC |
| 11122 | builtin and then its argument prototype would still apply. */ |
| 11123 | #ifdef __cplusplus |
| 11124 | extern "C" |
| 11125 | #endif |
| 11126 | char dlopen (); |
| 11127 | int |
| 11128 | main () |
| 11129 | { |
| 11130 | return dlopen (); |
| 11131 | ; |
| 11132 | return 0; |
| 11133 | } |
| 11134 | _ACEOF |
| 11135 | if ac_fn_c_try_link "$LINENO"; then : |
| 11136 | ac_cv_lib_dl_dlopen=yes |
| 11137 | else |
| 11138 | ac_cv_lib_dl_dlopen=no |
| 11139 | fi |
| 11140 | rm -f core conftest.err conftest.$ac_objext \ |
| 11141 | conftest$ac_exeext conftest.$ac_ext |
| 11142 | LIBS=$ac_check_lib_save_LIBS |
| 11143 | fi |
| 11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11145 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11146 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11147 | cat >>confdefs.h <<_ACEOF |
| 11148 | #define HAVE_LIBDL 1 |
| 11149 | _ACEOF |
| 11150 | |
| 11151 | LIBS="-ldl $LIBS" |
| 11152 | |
| 11153 | fi |
| 11154 | |
| 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 |
| 11156 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } |
| 11157 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : |
| 11158 | $as_echo_n "(cached) " >&6 |
| 11159 | else |
| 11160 | ac_check_lib_save_LIBS=$LIBS |
| 11161 | LIBS="-lpam $LIBS" |
| 11162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11163 | /* end confdefs.h. */ |
| 11164 | |
| 11165 | /* Override any GCC internal prototype to avoid an error. |
| 11166 | Use char because int might match the return type of a GCC |
| 11167 | builtin and then its argument prototype would still apply. */ |
| 11168 | #ifdef __cplusplus |
| 11169 | extern "C" |
| 11170 | #endif |
| 11171 | char pam_set_item (); |
| 11172 | int |
| 11173 | main () |
| 11174 | { |
| 11175 | return pam_set_item (); |
| 11176 | ; |
| 11177 | return 0; |
| 11178 | } |
| 11179 | _ACEOF |
| 11180 | if ac_fn_c_try_link "$LINENO"; then : |
| 11181 | ac_cv_lib_pam_pam_set_item=yes |
| 11182 | else |
| 11183 | ac_cv_lib_pam_pam_set_item=no |
| 11184 | fi |
| 11185 | rm -f core conftest.err conftest.$ac_objext \ |
| 11186 | conftest$ac_exeext conftest.$ac_ext |
| 11187 | LIBS=$ac_check_lib_save_LIBS |
| 11188 | fi |
| 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 |
| 11190 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } |
| 11191 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : |
| 11192 | cat >>confdefs.h <<_ACEOF |
| 11193 | #define HAVE_LIBPAM 1 |
| 11194 | _ACEOF |
| 11195 | |
| 11196 | LIBS="-lpam $LIBS" |
| 11197 | |
| 11198 | else |
| 11199 | as_fn_error $? "*** libpam missing" "$LINENO" 5 |
| 11200 | fi |
| 11201 | |
| 11202 | for ac_func in pam_getenvlist |
| 11203 | do : |
| 11204 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" |
| 11205 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : |
| 11206 | cat >>confdefs.h <<_ACEOF |
| 11207 | #define HAVE_PAM_GETENVLIST 1 |
| 11208 | _ACEOF |
| 11209 | |
| 11210 | fi |
| 11211 | done |
| 11212 | |
| 11213 | for ac_func in pam_putenv |
| 11214 | do : |
| 11215 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" |
| 11216 | if test "x$ac_cv_func_pam_putenv" = xyes; then : |
| 11217 | cat >>confdefs.h <<_ACEOF |
| 11218 | #define HAVE_PAM_PUTENV 1 |
| 11219 | _ACEOF |
| 11220 | |
| 11221 | fi |
| 11222 | done |
| 11223 | |
| 11224 | LIBS="$saved_LIBS" |
| 11225 | |
| 11226 | PAM_MSG="yes" |
| 11227 | |
| 11228 | SSHDLIBS="$SSHDLIBS -lpam" |
| 11229 | |
| 11230 | $as_echo "#define USE_PAM 1" >>confdefs.h |
| 11231 | |
| 11232 | |
| 11233 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11234 | case "$LIBS" in |
| 11235 | *-ldl*) |
| 11236 | # libdl already in LIBS |
| 11237 | ;; |
| 11238 | *) |
| 11239 | SSHDLIBS="$SSHDLIBS -ldl" |
| 11240 | ;; |
| 11241 | esac |
| 11242 | fi |
| 11243 | fi |
| 11244 | |
| 11245 | |
| 11246 | fi |
| 11247 | |
| 11248 | |
| 11249 | # Check for older PAM |
| 11250 | if test "x$PAM_MSG" = "xyes" ; then |
| 11251 | # Check PAM strerror arguments (old PAM) |
| 11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 |
| 11253 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } |
| 11254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11255 | /* end confdefs.h. */ |
| 11256 | |
| 11257 | #include <stdlib.h> |
| 11258 | #if defined(HAVE_SECURITY_PAM_APPL_H) |
| 11259 | #include <security/pam_appl.h> |
| 11260 | #elif defined (HAVE_PAM_PAM_APPL_H) |
| 11261 | #include <pam/pam_appl.h> |
| 11262 | #endif |
| 11263 | |
| 11264 | int |
| 11265 | main () |
| 11266 | { |
| 11267 | |
| 11268 | (void)pam_strerror((pam_handle_t *)NULL, -1); |
| 11269 | |
| 11270 | ; |
| 11271 | return 0; |
| 11272 | } |
| 11273 | _ACEOF |
| 11274 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11276 | $as_echo "no" >&6; } |
| 11277 | else |
| 11278 | |
| 11279 | |
| 11280 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h |
| 11281 | |
| 11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11283 | $as_echo "yes" >&6; } |
| 11284 | PAM_MSG="yes (old library)" |
| 11285 | |
| 11286 | |
| 11287 | fi |
| 11288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11289 | fi |
| 11290 | |
| 11291 | SSH_PRIVSEP_USER=sshd |
| 11292 | |
| 11293 | # Check whether --with-privsep-user was given. |
| 11294 | if test "${with_privsep_user+set}" = set; then : |
| 11295 | withval=$with_privsep_user; |
| 11296 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 11297 | test "x${withval}" != "xyes"; then |
| 11298 | SSH_PRIVSEP_USER=$withval |
| 11299 | fi |
| 11300 | |
| 11301 | |
| 11302 | fi |
| 11303 | |
| 11304 | |
| 11305 | cat >>confdefs.h <<_ACEOF |
| 11306 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" |
| 11307 | _ACEOF |
| 11308 | |
| 11309 | |
| 11310 | |
| 11311 | # Decide which sandbox style to use |
| 11312 | sandbox_arg="" |
| 11313 | |
| 11314 | # Check whether --with-sandbox was given. |
| 11315 | if test "${with_sandbox+set}" = set; then : |
| 11316 | withval=$with_sandbox; |
| 11317 | if test "x$withval" = "xyes" ; then |
| 11318 | sandbox_arg="" |
| 11319 | else |
| 11320 | sandbox_arg="$withval" |
| 11321 | fi |
| 11322 | |
| 11323 | |
| 11324 | fi |
| 11325 | |
| 11326 | if test "x$sandbox_arg" = "xsystrace" || \ |
| 11327 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then |
| 11328 | test "x$have_systr_policy_kill" != "x1" && \ |
| 11329 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 |
| 11330 | SANDBOX_STYLE="systrace" |
| 11331 | |
| 11332 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h |
| 11333 | |
| 11334 | elif test "x$sandbox_arg" = "xdarwin" || \ |
| 11335 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ |
| 11336 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then |
| 11337 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ |
| 11338 | "x$ac_cv_header_sandbox_h" != "xyes" && \ |
| 11339 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 |
| 11340 | SANDBOX_STYLE="darwin" |
| 11341 | |
| 11342 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h |
| 11343 | |
| 11344 | elif test "x$sandbox_arg" = "xrlimit" || \ |
| 11345 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then |
| 11346 | test "x$ac_cv_func_setrlimit" != "xyes" && \ |
| 11347 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 |
| 11348 | SANDBOX_STYLE="rlimit" |
| 11349 | |
| 11350 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h |
| 11351 | |
| 11352 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ |
| 11353 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then |
| 11354 | SANDBOX_STYLE="none" |
| 11355 | |
| 11356 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h |
| 11357 | |
| 11358 | else |
| 11359 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 |
| 11360 | fi |
| 11361 | |
| 11362 | # Cheap hack to ensure NEWS-OS libraries are arranged right. |
| 11363 | if test ! -z "$SONY" ; then |
| 11364 | LIBS="$LIBS -liberty"; |
| 11365 | fi |
| 11366 | |
| 11367 | # Check for long long datatypes |
| 11368 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 11369 | if test "x$ac_cv_type_long_long" = xyes; then : |
| 11370 | |
| 11371 | cat >>confdefs.h <<_ACEOF |
| 11372 | #define HAVE_LONG_LONG 1 |
| 11373 | _ACEOF |
| 11374 | |
| 11375 | |
| 11376 | fi |
| 11377 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" |
| 11378 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : |
| 11379 | |
| 11380 | cat >>confdefs.h <<_ACEOF |
| 11381 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 11382 | _ACEOF |
| 11383 | |
| 11384 | |
| 11385 | fi |
| 11386 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" |
| 11387 | if test "x$ac_cv_type_long_double" = xyes; then : |
| 11388 | |
| 11389 | cat >>confdefs.h <<_ACEOF |
| 11390 | #define HAVE_LONG_DOUBLE 1 |
| 11391 | _ACEOF |
| 11392 | |
| 11393 | |
| 11394 | fi |
| 11395 | |
| 11396 | |
| 11397 | # Check datatype sizes |
| 11398 | # The cast to long int works around a bug in the HP C Compiler |
| 11399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11401 | # This bug is HP SR number 8606223364. |
| 11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
| 11403 | $as_echo_n "checking size of char... " >&6; } |
| 11404 | if ${ac_cv_sizeof_char+:} false; then : |
| 11405 | $as_echo_n "(cached) " >&6 |
| 11406 | else |
| 11407 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
| 11408 | |
| 11409 | else |
| 11410 | if test "$ac_cv_type_char" = yes; then |
| 11411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11413 | as_fn_error 77 "cannot compute sizeof (char) |
| 11414 | See \`config.log' for more details" "$LINENO" 5; } |
| 11415 | else |
| 11416 | ac_cv_sizeof_char=0 |
| 11417 | fi |
| 11418 | fi |
| 11419 | |
| 11420 | fi |
| 11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
| 11422 | $as_echo "$ac_cv_sizeof_char" >&6; } |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | cat >>confdefs.h <<_ACEOF |
| 11427 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 11428 | _ACEOF |
| 11429 | |
| 11430 | |
| 11431 | # The cast to long int works around a bug in the HP C Compiler |
| 11432 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11433 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11434 | # This bug is HP SR number 8606223364. |
| 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 |
| 11436 | $as_echo_n "checking size of short int... " >&6; } |
| 11437 | if ${ac_cv_sizeof_short_int+:} false; then : |
| 11438 | $as_echo_n "(cached) " >&6 |
| 11439 | else |
| 11440 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : |
| 11441 | |
| 11442 | else |
| 11443 | if test "$ac_cv_type_short_int" = yes; then |
| 11444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11446 | as_fn_error 77 "cannot compute sizeof (short int) |
| 11447 | See \`config.log' for more details" "$LINENO" 5; } |
| 11448 | else |
| 11449 | ac_cv_sizeof_short_int=0 |
| 11450 | fi |
| 11451 | fi |
| 11452 | |
| 11453 | fi |
| 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 |
| 11455 | $as_echo "$ac_cv_sizeof_short_int" >&6; } |
| 11456 | |
| 11457 | |
| 11458 | |
| 11459 | cat >>confdefs.h <<_ACEOF |
| 11460 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int |
| 11461 | _ACEOF |
| 11462 | |
| 11463 | |
| 11464 | # The cast to long int works around a bug in the HP C Compiler |
| 11465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11467 | # This bug is HP SR number 8606223364. |
| 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 11469 | $as_echo_n "checking size of int... " >&6; } |
| 11470 | if ${ac_cv_sizeof_int+:} false; then : |
| 11471 | $as_echo_n "(cached) " >&6 |
| 11472 | else |
| 11473 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
| 11474 | |
| 11475 | else |
| 11476 | if test "$ac_cv_type_int" = yes; then |
| 11477 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11478 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11479 | as_fn_error 77 "cannot compute sizeof (int) |
| 11480 | See \`config.log' for more details" "$LINENO" 5; } |
| 11481 | else |
| 11482 | ac_cv_sizeof_int=0 |
| 11483 | fi |
| 11484 | fi |
| 11485 | |
| 11486 | fi |
| 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 11488 | $as_echo "$ac_cv_sizeof_int" >&6; } |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | cat >>confdefs.h <<_ACEOF |
| 11493 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 11494 | _ACEOF |
| 11495 | |
| 11496 | |
| 11497 | # The cast to long int works around a bug in the HP C Compiler |
| 11498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11500 | # This bug is HP SR number 8606223364. |
| 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 |
| 11502 | $as_echo_n "checking size of long int... " >&6; } |
| 11503 | if ${ac_cv_sizeof_long_int+:} false; then : |
| 11504 | $as_echo_n "(cached) " >&6 |
| 11505 | else |
| 11506 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : |
| 11507 | |
| 11508 | else |
| 11509 | if test "$ac_cv_type_long_int" = yes; then |
| 11510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11512 | as_fn_error 77 "cannot compute sizeof (long int) |
| 11513 | See \`config.log' for more details" "$LINENO" 5; } |
| 11514 | else |
| 11515 | ac_cv_sizeof_long_int=0 |
| 11516 | fi |
| 11517 | fi |
| 11518 | |
| 11519 | fi |
| 11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 |
| 11521 | $as_echo "$ac_cv_sizeof_long_int" >&6; } |
| 11522 | |
| 11523 | |
| 11524 | |
| 11525 | cat >>confdefs.h <<_ACEOF |
| 11526 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int |
| 11527 | _ACEOF |
| 11528 | |
| 11529 | |
| 11530 | # The cast to long int works around a bug in the HP C Compiler |
| 11531 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11532 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11533 | # This bug is HP SR number 8606223364. |
| 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 |
| 11535 | $as_echo_n "checking size of long long int... " >&6; } |
| 11536 | if ${ac_cv_sizeof_long_long_int+:} false; then : |
| 11537 | $as_echo_n "(cached) " >&6 |
| 11538 | else |
| 11539 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : |
| 11540 | |
| 11541 | else |
| 11542 | if test "$ac_cv_type_long_long_int" = yes; then |
| 11543 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11545 | as_fn_error 77 "cannot compute sizeof (long long int) |
| 11546 | See \`config.log' for more details" "$LINENO" 5; } |
| 11547 | else |
| 11548 | ac_cv_sizeof_long_long_int=0 |
| 11549 | fi |
| 11550 | fi |
| 11551 | |
| 11552 | fi |
| 11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 |
| 11554 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } |
| 11555 | |
| 11556 | |
| 11557 | |
| 11558 | cat >>confdefs.h <<_ACEOF |
| 11559 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int |
| 11560 | _ACEOF |
| 11561 | |
| 11562 | |
| 11563 | |
| 11564 | # Sanity check long long for some platforms (AIX) |
| 11565 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then |
| 11566 | ac_cv_sizeof_long_long_int=0 |
| 11567 | fi |
| 11568 | |
| 11569 | # compute LLONG_MIN and LLONG_MAX if we don't know them. |
| 11570 | if test -z "$have_llong_max"; then |
| 11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 |
| 11572 | $as_echo_n "checking for max value of long long... " >&6; } |
| 11573 | if test "$cross_compiling" = yes; then : |
| 11574 | |
| 11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 11576 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 11577 | |
| 11578 | |
| 11579 | else |
| 11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11581 | /* end confdefs.h. */ |
| 11582 | |
| 11583 | #include <stdio.h> |
| 11584 | /* Why is this so damn hard? */ |
| 11585 | #ifdef __GNUC__ |
| 11586 | # undef __GNUC__ |
| 11587 | #endif |
| 11588 | #define __USE_ISOC99 |
| 11589 | #include <limits.h> |
| 11590 | #define DATA "conftest.llminmax" |
| 11591 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) |
| 11592 | |
| 11593 | /* |
| 11594 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so |
| 11595 | * we do this the hard way. |
| 11596 | */ |
| 11597 | static int |
| 11598 | fprint_ll(FILE *f, long long n) |
| 11599 | { |
| 11600 | unsigned int i; |
| 11601 | int l[sizeof(long long) * 8]; |
| 11602 | |
| 11603 | if (n < 0) |
| 11604 | if (fprintf(f, "-") < 0) |
| 11605 | return -1; |
| 11606 | for (i = 0; n != 0; i++) { |
| 11607 | l[i] = my_abs(n % 10); |
| 11608 | n /= 10; |
| 11609 | } |
| 11610 | do { |
| 11611 | if (fprintf(f, "%d", l[--i]) < 0) |
| 11612 | return -1; |
| 11613 | } while (i != 0); |
| 11614 | if (fprintf(f, " ") < 0) |
| 11615 | return -1; |
| 11616 | return 0; |
| 11617 | } |
| 11618 | |
| 11619 | int |
| 11620 | main () |
| 11621 | { |
| 11622 | |
| 11623 | FILE *f; |
| 11624 | long long i, llmin, llmax = 0; |
| 11625 | |
| 11626 | if((f = fopen(DATA,"w")) == NULL) |
| 11627 | exit(1); |
| 11628 | |
| 11629 | #if defined(LLONG_MIN) && defined(LLONG_MAX) |
| 11630 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); |
| 11631 | llmin = LLONG_MIN; |
| 11632 | llmax = LLONG_MAX; |
| 11633 | #else |
| 11634 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); |
| 11635 | /* This will work on one's complement and two's complement */ |
| 11636 | for (i = 1; i > llmax; i <<= 1, i++) |
| 11637 | llmax = i; |
| 11638 | llmin = llmax + 1LL; /* wrap */ |
| 11639 | #endif |
| 11640 | |
| 11641 | /* Sanity check */ |
| 11642 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax |
| 11643 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 |
| 11644 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { |
| 11645 | fprintf(f, "unknown unknown\n"); |
| 11646 | exit(2); |
| 11647 | } |
| 11648 | |
| 11649 | if (fprint_ll(f, llmin) < 0) |
| 11650 | exit(3); |
| 11651 | if (fprint_ll(f, llmax) < 0) |
| 11652 | exit(4); |
| 11653 | if (fclose(f) < 0) |
| 11654 | exit(5); |
| 11655 | exit(0); |
| 11656 | |
| 11657 | ; |
| 11658 | return 0; |
| 11659 | } |
| 11660 | _ACEOF |
| 11661 | if ac_fn_c_try_run "$LINENO"; then : |
| 11662 | |
| 11663 | llong_min=`$AWK '{print $1}' conftest.llminmax` |
| 11664 | llong_max=`$AWK '{print $2}' conftest.llminmax` |
| 11665 | |
| 11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 |
| 11667 | $as_echo "$llong_max" >&6; } |
| 11668 | |
| 11669 | cat >>confdefs.h <<_ACEOF |
| 11670 | #define LLONG_MAX ${llong_max}LL |
| 11671 | _ACEOF |
| 11672 | |
| 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 |
| 11674 | $as_echo_n "checking for min value of long long... " >&6; } |
| 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 |
| 11676 | $as_echo "$llong_min" >&6; } |
| 11677 | |
| 11678 | cat >>confdefs.h <<_ACEOF |
| 11679 | #define LLONG_MIN ${llong_min}LL |
| 11680 | _ACEOF |
| 11681 | |
| 11682 | |
| 11683 | else |
| 11684 | |
| 11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11686 | $as_echo "not found" >&6; } |
| 11687 | |
| 11688 | fi |
| 11689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11690 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11691 | fi |
| 11692 | |
| 11693 | fi |
| 11694 | |
| 11695 | |
| 11696 | # More checks for data types |
| 11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 |
| 11698 | $as_echo_n "checking for u_int type... " >&6; } |
| 11699 | if ${ac_cv_have_u_int+:} false; then : |
| 11700 | $as_echo_n "(cached) " >&6 |
| 11701 | else |
| 11702 | |
| 11703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11704 | /* end confdefs.h. */ |
| 11705 | #include <sys/types.h> |
| 11706 | int |
| 11707 | main () |
| 11708 | { |
| 11709 | u_int a; a = 1; |
| 11710 | ; |
| 11711 | return 0; |
| 11712 | } |
| 11713 | _ACEOF |
| 11714 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11715 | ac_cv_have_u_int="yes" |
| 11716 | else |
| 11717 | ac_cv_have_u_int="no" |
| 11718 | |
| 11719 | fi |
| 11720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11721 | |
| 11722 | fi |
| 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 |
| 11724 | $as_echo "$ac_cv_have_u_int" >&6; } |
| 11725 | if test "x$ac_cv_have_u_int" = "xyes" ; then |
| 11726 | |
| 11727 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h |
| 11728 | |
| 11729 | have_u_int=1 |
| 11730 | fi |
| 11731 | |
| 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 |
| 11733 | $as_echo_n "checking for intXX_t types... " >&6; } |
| 11734 | if ${ac_cv_have_intxx_t+:} false; then : |
| 11735 | $as_echo_n "(cached) " >&6 |
| 11736 | else |
| 11737 | |
| 11738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11739 | /* end confdefs.h. */ |
| 11740 | #include <sys/types.h> |
| 11741 | int |
| 11742 | main () |
| 11743 | { |
| 11744 | int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 11745 | ; |
| 11746 | return 0; |
| 11747 | } |
| 11748 | _ACEOF |
| 11749 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11750 | ac_cv_have_intxx_t="yes" |
| 11751 | else |
| 11752 | ac_cv_have_intxx_t="no" |
| 11753 | |
| 11754 | fi |
| 11755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11756 | |
| 11757 | fi |
| 11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 |
| 11759 | $as_echo "$ac_cv_have_intxx_t" >&6; } |
| 11760 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then |
| 11761 | |
| 11762 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 11763 | |
| 11764 | have_intxx_t=1 |
| 11765 | fi |
| 11766 | |
| 11767 | if (test -z "$have_intxx_t" && \ |
| 11768 | test "x$ac_cv_header_stdint_h" = "xyes") |
| 11769 | then |
| 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 |
| 11771 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } |
| 11772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11773 | /* end confdefs.h. */ |
| 11774 | #include <stdint.h> |
| 11775 | int |
| 11776 | main () |
| 11777 | { |
| 11778 | int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 11779 | ; |
| 11780 | return 0; |
| 11781 | } |
| 11782 | _ACEOF |
| 11783 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11784 | |
| 11785 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 11786 | |
| 11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11788 | $as_echo "yes" >&6; } |
| 11789 | |
| 11790 | else |
| 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11792 | $as_echo "no" >&6; } |
| 11793 | |
| 11794 | fi |
| 11795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11796 | fi |
| 11797 | |
| 11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 |
| 11799 | $as_echo_n "checking for int64_t type... " >&6; } |
| 11800 | if ${ac_cv_have_int64_t+:} false; then : |
| 11801 | $as_echo_n "(cached) " >&6 |
| 11802 | else |
| 11803 | |
| 11804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11805 | /* end confdefs.h. */ |
| 11806 | |
| 11807 | #include <sys/types.h> |
| 11808 | #ifdef HAVE_STDINT_H |
| 11809 | # include <stdint.h> |
| 11810 | #endif |
| 11811 | #include <sys/socket.h> |
| 11812 | #ifdef HAVE_SYS_BITYPES_H |
| 11813 | # include <sys/bitypes.h> |
| 11814 | #endif |
| 11815 | |
| 11816 | int |
| 11817 | main () |
| 11818 | { |
| 11819 | |
| 11820 | int64_t a; a = 1; |
| 11821 | |
| 11822 | ; |
| 11823 | return 0; |
| 11824 | } |
| 11825 | _ACEOF |
| 11826 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11827 | ac_cv_have_int64_t="yes" |
| 11828 | else |
| 11829 | ac_cv_have_int64_t="no" |
| 11830 | |
| 11831 | fi |
| 11832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11833 | |
| 11834 | fi |
| 11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 |
| 11836 | $as_echo "$ac_cv_have_int64_t" >&6; } |
| 11837 | if test "x$ac_cv_have_int64_t" = "xyes" ; then |
| 11838 | |
| 11839 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 11840 | |
| 11841 | fi |
| 11842 | |
| 11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 |
| 11844 | $as_echo_n "checking for u_intXX_t types... " >&6; } |
| 11845 | if ${ac_cv_have_u_intxx_t+:} false; then : |
| 11846 | $as_echo_n "(cached) " >&6 |
| 11847 | else |
| 11848 | |
| 11849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11850 | /* end confdefs.h. */ |
| 11851 | #include <sys/types.h> |
| 11852 | int |
| 11853 | main () |
| 11854 | { |
| 11855 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 11856 | ; |
| 11857 | return 0; |
| 11858 | } |
| 11859 | _ACEOF |
| 11860 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11861 | ac_cv_have_u_intxx_t="yes" |
| 11862 | else |
| 11863 | ac_cv_have_u_intxx_t="no" |
| 11864 | |
| 11865 | fi |
| 11866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11867 | |
| 11868 | fi |
| 11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 |
| 11870 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } |
| 11871 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then |
| 11872 | |
| 11873 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 11874 | |
| 11875 | have_u_intxx_t=1 |
| 11876 | fi |
| 11877 | |
| 11878 | if test -z "$have_u_intxx_t" ; then |
| 11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 |
| 11880 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } |
| 11881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11882 | /* end confdefs.h. */ |
| 11883 | #include <sys/socket.h> |
| 11884 | int |
| 11885 | main () |
| 11886 | { |
| 11887 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 11888 | ; |
| 11889 | return 0; |
| 11890 | } |
| 11891 | _ACEOF |
| 11892 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11893 | |
| 11894 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 11895 | |
| 11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11897 | $as_echo "yes" >&6; } |
| 11898 | |
| 11899 | else |
| 11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11901 | $as_echo "no" >&6; } |
| 11902 | |
| 11903 | fi |
| 11904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11905 | fi |
| 11906 | |
| 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 |
| 11908 | $as_echo_n "checking for u_int64_t types... " >&6; } |
| 11909 | if ${ac_cv_have_u_int64_t+:} false; then : |
| 11910 | $as_echo_n "(cached) " >&6 |
| 11911 | else |
| 11912 | |
| 11913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11914 | /* end confdefs.h. */ |
| 11915 | #include <sys/types.h> |
| 11916 | int |
| 11917 | main () |
| 11918 | { |
| 11919 | u_int64_t a; a = 1; |
| 11920 | ; |
| 11921 | return 0; |
| 11922 | } |
| 11923 | _ACEOF |
| 11924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11925 | ac_cv_have_u_int64_t="yes" |
| 11926 | else |
| 11927 | ac_cv_have_u_int64_t="no" |
| 11928 | |
| 11929 | fi |
| 11930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11931 | |
| 11932 | fi |
| 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 |
| 11934 | $as_echo "$ac_cv_have_u_int64_t" >&6; } |
| 11935 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then |
| 11936 | |
| 11937 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 11938 | |
| 11939 | have_u_int64_t=1 |
| 11940 | fi |
| 11941 | |
| 11942 | if test -z "$have_u_int64_t" ; then |
| 11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 |
| 11944 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } |
| 11945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11946 | /* end confdefs.h. */ |
| 11947 | #include <sys/bitypes.h> |
| 11948 | int |
| 11949 | main () |
| 11950 | { |
| 11951 | u_int64_t a; a = 1 |
| 11952 | ; |
| 11953 | return 0; |
| 11954 | } |
| 11955 | _ACEOF |
| 11956 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11957 | |
| 11958 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 11959 | |
| 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11961 | $as_echo "yes" >&6; } |
| 11962 | |
| 11963 | else |
| 11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11965 | $as_echo "no" >&6; } |
| 11966 | |
| 11967 | fi |
| 11968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11969 | fi |
| 11970 | |
| 11971 | if test -z "$have_u_intxx_t" ; then |
| 11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 |
| 11973 | $as_echo_n "checking for uintXX_t types... " >&6; } |
| 11974 | if ${ac_cv_have_uintxx_t+:} false; then : |
| 11975 | $as_echo_n "(cached) " >&6 |
| 11976 | else |
| 11977 | |
| 11978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11979 | /* end confdefs.h. */ |
| 11980 | |
| 11981 | #include <sys/types.h> |
| 11982 | |
| 11983 | int |
| 11984 | main () |
| 11985 | { |
| 11986 | |
| 11987 | uint8_t a; |
| 11988 | uint16_t b; |
| 11989 | uint32_t c; |
| 11990 | a = b = c = 1; |
| 11991 | |
| 11992 | ; |
| 11993 | return 0; |
| 11994 | } |
| 11995 | _ACEOF |
| 11996 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11997 | ac_cv_have_uintxx_t="yes" |
| 11998 | else |
| 11999 | ac_cv_have_uintxx_t="no" |
| 12000 | |
| 12001 | fi |
| 12002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12003 | |
| 12004 | fi |
| 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 |
| 12006 | $as_echo "$ac_cv_have_uintxx_t" >&6; } |
| 12007 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then |
| 12008 | |
| 12009 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
| 12010 | |
| 12011 | fi |
| 12012 | fi |
| 12013 | |
| 12014 | if test -z "$have_uintxx_t" ; then |
| 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 |
| 12016 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } |
| 12017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12018 | /* end confdefs.h. */ |
| 12019 | #include <stdint.h> |
| 12020 | int |
| 12021 | main () |
| 12022 | { |
| 12023 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; |
| 12024 | ; |
| 12025 | return 0; |
| 12026 | } |
| 12027 | _ACEOF |
| 12028 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12029 | |
| 12030 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
| 12031 | |
| 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12033 | $as_echo "yes" >&6; } |
| 12034 | |
| 12035 | else |
| 12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12037 | $as_echo "no" >&6; } |
| 12038 | |
| 12039 | fi |
| 12040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12041 | fi |
| 12042 | |
| 12043 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ |
| 12044 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") |
| 12045 | then |
| 12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 |
| 12047 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } |
| 12048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12049 | /* end confdefs.h. */ |
| 12050 | |
| 12051 | #include <sys/bitypes.h> |
| 12052 | |
| 12053 | int |
| 12054 | main () |
| 12055 | { |
| 12056 | |
| 12057 | int8_t a; int16_t b; int32_t c; |
| 12058 | u_int8_t e; u_int16_t f; u_int32_t g; |
| 12059 | a = b = c = e = f = g = 1; |
| 12060 | |
| 12061 | ; |
| 12062 | return 0; |
| 12063 | } |
| 12064 | _ACEOF |
| 12065 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12066 | |
| 12067 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 12068 | |
| 12069 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 12070 | |
| 12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12072 | $as_echo "yes" >&6; } |
| 12073 | |
| 12074 | else |
| 12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12076 | $as_echo "no" >&6; } |
| 12077 | |
| 12078 | fi |
| 12079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12080 | fi |
| 12081 | |
| 12082 | |
| 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 |
| 12084 | $as_echo_n "checking for u_char... " >&6; } |
| 12085 | if ${ac_cv_have_u_char+:} false; then : |
| 12086 | $as_echo_n "(cached) " >&6 |
| 12087 | else |
| 12088 | |
| 12089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12090 | /* end confdefs.h. */ |
| 12091 | #include <sys/types.h> |
| 12092 | int |
| 12093 | main () |
| 12094 | { |
| 12095 | u_char foo; foo = 125; |
| 12096 | ; |
| 12097 | return 0; |
| 12098 | } |
| 12099 | _ACEOF |
| 12100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12101 | ac_cv_have_u_char="yes" |
| 12102 | else |
| 12103 | ac_cv_have_u_char="no" |
| 12104 | |
| 12105 | fi |
| 12106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12107 | |
| 12108 | fi |
| 12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 |
| 12110 | $as_echo "$ac_cv_have_u_char" >&6; } |
| 12111 | if test "x$ac_cv_have_u_char" = "xyes" ; then |
| 12112 | |
| 12113 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h |
| 12114 | |
| 12115 | fi |
| 12116 | |
| 12117 | |
| 12118 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
| 12119 | #include <sys/socket.h> |
| 12120 | " |
| 12121 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
| 12122 | |
| 12123 | else |
| 12124 | |
| 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
| 12126 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
| 12127 | if ${curl_cv_socklen_t_equiv+:} false; then : |
| 12128 | $as_echo_n "(cached) " >&6 |
| 12129 | else |
| 12130 | |
| 12131 | # Systems have either "struct sockaddr *" or |
| 12132 | # "void *" as the second argument to getpeername |
| 12133 | curl_cv_socklen_t_equiv= |
| 12134 | for arg2 in "struct sockaddr" void; do |
| 12135 | for t in int size_t unsigned long "unsigned long"; do |
| 12136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12137 | /* end confdefs.h. */ |
| 12138 | |
| 12139 | #include <sys/types.h> |
| 12140 | #include <sys/socket.h> |
| 12141 | |
| 12142 | int getpeername (int, $arg2 *, $t *); |
| 12143 | |
| 12144 | int |
| 12145 | main () |
| 12146 | { |
| 12147 | |
| 12148 | $t len; |
| 12149 | getpeername(0,0,&len); |
| 12150 | |
| 12151 | ; |
| 12152 | return 0; |
| 12153 | } |
| 12154 | _ACEOF |
| 12155 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12156 | |
| 12157 | curl_cv_socklen_t_equiv="$t" |
| 12158 | break |
| 12159 | |
| 12160 | fi |
| 12161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12162 | done |
| 12163 | done |
| 12164 | |
| 12165 | if test "x$curl_cv_socklen_t_equiv" = x; then |
| 12166 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
| 12167 | fi |
| 12168 | |
| 12169 | fi |
| 12170 | |
| 12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 |
| 12172 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } |
| 12173 | |
| 12174 | cat >>confdefs.h <<_ACEOF |
| 12175 | #define socklen_t $curl_cv_socklen_t_equiv |
| 12176 | _ACEOF |
| 12177 | |
| 12178 | fi |
| 12179 | |
| 12180 | |
| 12181 | |
| 12182 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> |
| 12183 | " |
| 12184 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
| 12185 | |
| 12186 | cat >>confdefs.h <<_ACEOF |
| 12187 | #define HAVE_SIG_ATOMIC_T 1 |
| 12188 | _ACEOF |
| 12189 | |
| 12190 | |
| 12191 | fi |
| 12192 | |
| 12193 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " |
| 12194 | #include <sys/types.h> |
| 12195 | #ifdef HAVE_SYS_BITYPES_H |
| 12196 | #include <sys/bitypes.h> |
| 12197 | #endif |
| 12198 | #ifdef HAVE_SYS_STATFS_H |
| 12199 | #include <sys/statfs.h> |
| 12200 | #endif |
| 12201 | #ifdef HAVE_SYS_STATVFS_H |
| 12202 | #include <sys/statvfs.h> |
| 12203 | #endif |
| 12204 | |
| 12205 | " |
| 12206 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
| 12207 | |
| 12208 | cat >>confdefs.h <<_ACEOF |
| 12209 | #define HAVE_FSBLKCNT_T 1 |
| 12210 | _ACEOF |
| 12211 | |
| 12212 | |
| 12213 | fi |
| 12214 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " |
| 12215 | #include <sys/types.h> |
| 12216 | #ifdef HAVE_SYS_BITYPES_H |
| 12217 | #include <sys/bitypes.h> |
| 12218 | #endif |
| 12219 | #ifdef HAVE_SYS_STATFS_H |
| 12220 | #include <sys/statfs.h> |
| 12221 | #endif |
| 12222 | #ifdef HAVE_SYS_STATVFS_H |
| 12223 | #include <sys/statvfs.h> |
| 12224 | #endif |
| 12225 | |
| 12226 | " |
| 12227 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
| 12228 | |
| 12229 | cat >>confdefs.h <<_ACEOF |
| 12230 | #define HAVE_FSFILCNT_T 1 |
| 12231 | _ACEOF |
| 12232 | |
| 12233 | |
| 12234 | fi |
| 12235 | |
| 12236 | |
| 12237 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> |
| 12238 | #include <netinet/in.h> |
| 12239 | " |
| 12240 | if test "x$ac_cv_type_in_addr_t" = xyes; then : |
| 12241 | |
| 12242 | cat >>confdefs.h <<_ACEOF |
| 12243 | #define HAVE_IN_ADDR_T 1 |
| 12244 | _ACEOF |
| 12245 | |
| 12246 | |
| 12247 | fi |
| 12248 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
| 12249 | #include <netinet/in.h> |
| 12250 | " |
| 12251 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
| 12252 | |
| 12253 | cat >>confdefs.h <<_ACEOF |
| 12254 | #define HAVE_IN_PORT_T 1 |
| 12255 | _ACEOF |
| 12256 | |
| 12257 | |
| 12258 | fi |
| 12259 | |
| 12260 | |
| 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 |
| 12262 | $as_echo_n "checking for size_t... " >&6; } |
| 12263 | if ${ac_cv_have_size_t+:} false; then : |
| 12264 | $as_echo_n "(cached) " >&6 |
| 12265 | else |
| 12266 | |
| 12267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12268 | /* end confdefs.h. */ |
| 12269 | #include <sys/types.h> |
| 12270 | int |
| 12271 | main () |
| 12272 | { |
| 12273 | size_t foo; foo = 1235; |
| 12274 | ; |
| 12275 | return 0; |
| 12276 | } |
| 12277 | _ACEOF |
| 12278 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12279 | ac_cv_have_size_t="yes" |
| 12280 | else |
| 12281 | ac_cv_have_size_t="no" |
| 12282 | |
| 12283 | fi |
| 12284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12285 | |
| 12286 | fi |
| 12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 |
| 12288 | $as_echo "$ac_cv_have_size_t" >&6; } |
| 12289 | if test "x$ac_cv_have_size_t" = "xyes" ; then |
| 12290 | |
| 12291 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h |
| 12292 | |
| 12293 | fi |
| 12294 | |
| 12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 12296 | $as_echo_n "checking for ssize_t... " >&6; } |
| 12297 | if ${ac_cv_have_ssize_t+:} false; then : |
| 12298 | $as_echo_n "(cached) " >&6 |
| 12299 | else |
| 12300 | |
| 12301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12302 | /* end confdefs.h. */ |
| 12303 | #include <sys/types.h> |
| 12304 | int |
| 12305 | main () |
| 12306 | { |
| 12307 | ssize_t foo; foo = 1235; |
| 12308 | ; |
| 12309 | return 0; |
| 12310 | } |
| 12311 | _ACEOF |
| 12312 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12313 | ac_cv_have_ssize_t="yes" |
| 12314 | else |
| 12315 | ac_cv_have_ssize_t="no" |
| 12316 | |
| 12317 | fi |
| 12318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12319 | |
| 12320 | fi |
| 12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 |
| 12322 | $as_echo "$ac_cv_have_ssize_t" >&6; } |
| 12323 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then |
| 12324 | |
| 12325 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
| 12326 | |
| 12327 | fi |
| 12328 | |
| 12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 |
| 12330 | $as_echo_n "checking for clock_t... " >&6; } |
| 12331 | if ${ac_cv_have_clock_t+:} false; then : |
| 12332 | $as_echo_n "(cached) " >&6 |
| 12333 | else |
| 12334 | |
| 12335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12336 | /* end confdefs.h. */ |
| 12337 | #include <time.h> |
| 12338 | int |
| 12339 | main () |
| 12340 | { |
| 12341 | clock_t foo; foo = 1235; |
| 12342 | ; |
| 12343 | return 0; |
| 12344 | } |
| 12345 | _ACEOF |
| 12346 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12347 | ac_cv_have_clock_t="yes" |
| 12348 | else |
| 12349 | ac_cv_have_clock_t="no" |
| 12350 | |
| 12351 | fi |
| 12352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12353 | |
| 12354 | fi |
| 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 |
| 12356 | $as_echo "$ac_cv_have_clock_t" >&6; } |
| 12357 | if test "x$ac_cv_have_clock_t" = "xyes" ; then |
| 12358 | |
| 12359 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h |
| 12360 | |
| 12361 | fi |
| 12362 | |
| 12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 |
| 12364 | $as_echo_n "checking for sa_family_t... " >&6; } |
| 12365 | if ${ac_cv_have_sa_family_t+:} false; then : |
| 12366 | $as_echo_n "(cached) " >&6 |
| 12367 | else |
| 12368 | |
| 12369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12370 | /* end confdefs.h. */ |
| 12371 | |
| 12372 | #include <sys/types.h> |
| 12373 | #include <sys/socket.h> |
| 12374 | |
| 12375 | int |
| 12376 | main () |
| 12377 | { |
| 12378 | sa_family_t foo; foo = 1235; |
| 12379 | ; |
| 12380 | return 0; |
| 12381 | } |
| 12382 | _ACEOF |
| 12383 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12384 | ac_cv_have_sa_family_t="yes" |
| 12385 | else |
| 12386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12387 | /* end confdefs.h. */ |
| 12388 | |
| 12389 | #include <sys/types.h> |
| 12390 | #include <sys/socket.h> |
| 12391 | #include <netinet/in.h> |
| 12392 | |
| 12393 | int |
| 12394 | main () |
| 12395 | { |
| 12396 | sa_family_t foo; foo = 1235; |
| 12397 | ; |
| 12398 | return 0; |
| 12399 | } |
| 12400 | _ACEOF |
| 12401 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12402 | ac_cv_have_sa_family_t="yes" |
| 12403 | else |
| 12404 | ac_cv_have_sa_family_t="no" |
| 12405 | |
| 12406 | fi |
| 12407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12408 | |
| 12409 | fi |
| 12410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12411 | |
| 12412 | fi |
| 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 |
| 12414 | $as_echo "$ac_cv_have_sa_family_t" >&6; } |
| 12415 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then |
| 12416 | |
| 12417 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h |
| 12418 | |
| 12419 | fi |
| 12420 | |
| 12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 |
| 12422 | $as_echo_n "checking for pid_t... " >&6; } |
| 12423 | if ${ac_cv_have_pid_t+:} false; then : |
| 12424 | $as_echo_n "(cached) " >&6 |
| 12425 | else |
| 12426 | |
| 12427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12428 | /* end confdefs.h. */ |
| 12429 | #include <sys/types.h> |
| 12430 | int |
| 12431 | main () |
| 12432 | { |
| 12433 | pid_t foo; foo = 1235; |
| 12434 | ; |
| 12435 | return 0; |
| 12436 | } |
| 12437 | _ACEOF |
| 12438 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12439 | ac_cv_have_pid_t="yes" |
| 12440 | else |
| 12441 | ac_cv_have_pid_t="no" |
| 12442 | |
| 12443 | fi |
| 12444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12445 | |
| 12446 | fi |
| 12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 |
| 12448 | $as_echo "$ac_cv_have_pid_t" >&6; } |
| 12449 | if test "x$ac_cv_have_pid_t" = "xyes" ; then |
| 12450 | |
| 12451 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h |
| 12452 | |
| 12453 | fi |
| 12454 | |
| 12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 |
| 12456 | $as_echo_n "checking for mode_t... " >&6; } |
| 12457 | if ${ac_cv_have_mode_t+:} false; then : |
| 12458 | $as_echo_n "(cached) " >&6 |
| 12459 | else |
| 12460 | |
| 12461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12462 | /* end confdefs.h. */ |
| 12463 | #include <sys/types.h> |
| 12464 | int |
| 12465 | main () |
| 12466 | { |
| 12467 | mode_t foo; foo = 1235; |
| 12468 | ; |
| 12469 | return 0; |
| 12470 | } |
| 12471 | _ACEOF |
| 12472 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12473 | ac_cv_have_mode_t="yes" |
| 12474 | else |
| 12475 | ac_cv_have_mode_t="no" |
| 12476 | |
| 12477 | fi |
| 12478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12479 | |
| 12480 | fi |
| 12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 |
| 12482 | $as_echo "$ac_cv_have_mode_t" >&6; } |
| 12483 | if test "x$ac_cv_have_mode_t" = "xyes" ; then |
| 12484 | |
| 12485 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h |
| 12486 | |
| 12487 | fi |
| 12488 | |
| 12489 | |
| 12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 |
| 12491 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } |
| 12492 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : |
| 12493 | $as_echo_n "(cached) " >&6 |
| 12494 | else |
| 12495 | |
| 12496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12497 | /* end confdefs.h. */ |
| 12498 | |
| 12499 | #include <sys/types.h> |
| 12500 | #include <sys/socket.h> |
| 12501 | |
| 12502 | int |
| 12503 | main () |
| 12504 | { |
| 12505 | struct sockaddr_storage s; |
| 12506 | ; |
| 12507 | return 0; |
| 12508 | } |
| 12509 | _ACEOF |
| 12510 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12511 | ac_cv_have_struct_sockaddr_storage="yes" |
| 12512 | else |
| 12513 | ac_cv_have_struct_sockaddr_storage="no" |
| 12514 | |
| 12515 | fi |
| 12516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12517 | |
| 12518 | fi |
| 12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 |
| 12520 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } |
| 12521 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
| 12522 | |
| 12523 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
| 12524 | |
| 12525 | fi |
| 12526 | |
| 12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 |
| 12528 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } |
| 12529 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : |
| 12530 | $as_echo_n "(cached) " >&6 |
| 12531 | else |
| 12532 | |
| 12533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12534 | /* end confdefs.h. */ |
| 12535 | |
| 12536 | #include <sys/types.h> |
| 12537 | #include <netinet/in.h> |
| 12538 | |
| 12539 | int |
| 12540 | main () |
| 12541 | { |
| 12542 | struct sockaddr_in6 s; s.sin6_family = 0; |
| 12543 | ; |
| 12544 | return 0; |
| 12545 | } |
| 12546 | _ACEOF |
| 12547 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12548 | ac_cv_have_struct_sockaddr_in6="yes" |
| 12549 | else |
| 12550 | ac_cv_have_struct_sockaddr_in6="no" |
| 12551 | |
| 12552 | fi |
| 12553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12554 | |
| 12555 | fi |
| 12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 |
| 12557 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } |
| 12558 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
| 12559 | |
| 12560 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
| 12561 | |
| 12562 | fi |
| 12563 | |
| 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 |
| 12565 | $as_echo_n "checking for struct in6_addr... " >&6; } |
| 12566 | if ${ac_cv_have_struct_in6_addr+:} false; then : |
| 12567 | $as_echo_n "(cached) " >&6 |
| 12568 | else |
| 12569 | |
| 12570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12571 | /* end confdefs.h. */ |
| 12572 | |
| 12573 | #include <sys/types.h> |
| 12574 | #include <netinet/in.h> |
| 12575 | |
| 12576 | int |
| 12577 | main () |
| 12578 | { |
| 12579 | struct in6_addr s; s.s6_addr[0] = 0; |
| 12580 | ; |
| 12581 | return 0; |
| 12582 | } |
| 12583 | _ACEOF |
| 12584 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12585 | ac_cv_have_struct_in6_addr="yes" |
| 12586 | else |
| 12587 | ac_cv_have_struct_in6_addr="no" |
| 12588 | |
| 12589 | fi |
| 12590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12591 | |
| 12592 | fi |
| 12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 |
| 12594 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } |
| 12595 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
| 12596 | |
| 12597 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
| 12598 | |
| 12599 | |
| 12600 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " |
| 12601 | #ifdef HAVE_SYS_TYPES_H |
| 12602 | #include <sys/types.h> |
| 12603 | #endif |
| 12604 | #include <netinet/in.h> |
| 12605 | |
| 12606 | " |
| 12607 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : |
| 12608 | |
| 12609 | cat >>confdefs.h <<_ACEOF |
| 12610 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 12611 | _ACEOF |
| 12612 | |
| 12613 | |
| 12614 | fi |
| 12615 | |
| 12616 | fi |
| 12617 | |
| 12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
| 12619 | $as_echo_n "checking for struct addrinfo... " >&6; } |
| 12620 | if ${ac_cv_have_struct_addrinfo+:} false; then : |
| 12621 | $as_echo_n "(cached) " >&6 |
| 12622 | else |
| 12623 | |
| 12624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12625 | /* end confdefs.h. */ |
| 12626 | |
| 12627 | #include <sys/types.h> |
| 12628 | #include <sys/socket.h> |
| 12629 | #include <netdb.h> |
| 12630 | |
| 12631 | int |
| 12632 | main () |
| 12633 | { |
| 12634 | struct addrinfo s; s.ai_flags = AI_PASSIVE; |
| 12635 | ; |
| 12636 | return 0; |
| 12637 | } |
| 12638 | _ACEOF |
| 12639 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12640 | ac_cv_have_struct_addrinfo="yes" |
| 12641 | else |
| 12642 | ac_cv_have_struct_addrinfo="no" |
| 12643 | |
| 12644 | fi |
| 12645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12646 | |
| 12647 | fi |
| 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 |
| 12649 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } |
| 12650 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
| 12651 | |
| 12652 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
| 12653 | |
| 12654 | fi |
| 12655 | |
| 12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 12657 | $as_echo_n "checking for struct timeval... " >&6; } |
| 12658 | if ${ac_cv_have_struct_timeval+:} false; then : |
| 12659 | $as_echo_n "(cached) " >&6 |
| 12660 | else |
| 12661 | |
| 12662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12663 | /* end confdefs.h. */ |
| 12664 | #include <sys/time.h> |
| 12665 | int |
| 12666 | main () |
| 12667 | { |
| 12668 | struct timeval tv; tv.tv_sec = 1; |
| 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12674 | ac_cv_have_struct_timeval="yes" |
| 12675 | else |
| 12676 | ac_cv_have_struct_timeval="no" |
| 12677 | |
| 12678 | fi |
| 12679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12680 | |
| 12681 | fi |
| 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 |
| 12683 | $as_echo "$ac_cv_have_struct_timeval" >&6; } |
| 12684 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then |
| 12685 | |
| 12686 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h |
| 12687 | |
| 12688 | have_struct_timeval=1 |
| 12689 | fi |
| 12690 | |
| 12691 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" |
| 12692 | if test "x$ac_cv_type_struct_timespec" = xyes; then : |
| 12693 | |
| 12694 | cat >>confdefs.h <<_ACEOF |
| 12695 | #define HAVE_STRUCT_TIMESPEC 1 |
| 12696 | _ACEOF |
| 12697 | |
| 12698 | |
| 12699 | fi |
| 12700 | |
| 12701 | |
| 12702 | # We need int64_t or else certian parts of the compile will fail. |
| 12703 | if test "x$ac_cv_have_int64_t" = "xno" && \ |
| 12704 | test "x$ac_cv_sizeof_long_int" != "x8" && \ |
| 12705 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then |
| 12706 | echo "OpenSSH requires int64_t support. Contact your vendor or install" |
| 12707 | echo "an alternative compiler (I.E., GCC) before continuing." |
| 12708 | echo "" |
| 12709 | exit 1; |
| 12710 | else |
| 12711 | if test "$cross_compiling" = yes; then : |
| 12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 12713 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
| 12714 | |
| 12715 | else |
| 12716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12717 | /* end confdefs.h. */ |
| 12718 | |
| 12719 | #include <stdio.h> |
| 12720 | #include <string.h> |
| 12721 | #ifdef HAVE_SNPRINTF |
| 12722 | main() |
| 12723 | { |
| 12724 | char buf[50]; |
| 12725 | char expected_out[50]; |
| 12726 | int mazsize = 50 ; |
| 12727 | #if (SIZEOF_LONG_INT == 8) |
| 12728 | long int num = 0x7fffffffffffffff; |
| 12729 | #else |
| 12730 | long long num = 0x7fffffffffffffffll; |
| 12731 | #endif |
| 12732 | strcpy(expected_out, "9223372036854775807"); |
| 12733 | snprintf(buf, mazsize, "%lld", num); |
| 12734 | if(strcmp(buf, expected_out) != 0) |
| 12735 | exit(1); |
| 12736 | exit(0); |
| 12737 | } |
| 12738 | #else |
| 12739 | main() { exit(0); } |
| 12740 | #endif |
| 12741 | |
| 12742 | _ACEOF |
| 12743 | if ac_fn_c_try_run "$LINENO"; then : |
| 12744 | true |
| 12745 | else |
| 12746 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 12747 | |
| 12748 | fi |
| 12749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12750 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12751 | fi |
| 12752 | |
| 12753 | fi |
| 12754 | |
| 12755 | |
| 12756 | # look for field 'ut_host' in header 'utmp.h' |
| 12757 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 12758 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
| 12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 |
| 12760 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } |
| 12761 | if eval \${$ossh_varname+:} false; then : |
| 12762 | $as_echo_n "(cached) " >&6 |
| 12763 | else |
| 12764 | |
| 12765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12766 | /* end confdefs.h. */ |
| 12767 | #include <utmp.h> |
| 12768 | |
| 12769 | _ACEOF |
| 12770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12771 | $EGREP "ut_host" >/dev/null 2>&1; then : |
| 12772 | eval "$ossh_varname=yes" |
| 12773 | else |
| 12774 | eval "$ossh_varname=no" |
| 12775 | fi |
| 12776 | rm -f conftest* |
| 12777 | |
| 12778 | fi |
| 12779 | |
| 12780 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12781 | if test -n "`echo $ossh_varname`"; then |
| 12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12783 | $as_echo "$ossh_result" >&6; } |
| 12784 | if test "x$ossh_result" = "xyes"; then |
| 12785 | |
| 12786 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h |
| 12787 | |
| 12788 | fi |
| 12789 | else |
| 12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12791 | $as_echo "no" >&6; } |
| 12792 | fi |
| 12793 | |
| 12794 | |
| 12795 | # look for field 'ut_host' in header 'utmpx.h' |
| 12796 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 12797 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
| 12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 |
| 12799 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } |
| 12800 | if eval \${$ossh_varname+:} false; then : |
| 12801 | $as_echo_n "(cached) " >&6 |
| 12802 | else |
| 12803 | |
| 12804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12805 | /* end confdefs.h. */ |
| 12806 | #include <utmpx.h> |
| 12807 | |
| 12808 | _ACEOF |
| 12809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12810 | $EGREP "ut_host" >/dev/null 2>&1; then : |
| 12811 | eval "$ossh_varname=yes" |
| 12812 | else |
| 12813 | eval "$ossh_varname=no" |
| 12814 | fi |
| 12815 | rm -f conftest* |
| 12816 | |
| 12817 | fi |
| 12818 | |
| 12819 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12820 | if test -n "`echo $ossh_varname`"; then |
| 12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12822 | $as_echo "$ossh_result" >&6; } |
| 12823 | if test "x$ossh_result" = "xyes"; then |
| 12824 | |
| 12825 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h |
| 12826 | |
| 12827 | fi |
| 12828 | else |
| 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12830 | $as_echo "no" >&6; } |
| 12831 | fi |
| 12832 | |
| 12833 | |
| 12834 | # look for field 'syslen' in header 'utmpx.h' |
| 12835 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 12836 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen |
| 12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 |
| 12838 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } |
| 12839 | if eval \${$ossh_varname+:} false; then : |
| 12840 | $as_echo_n "(cached) " >&6 |
| 12841 | else |
| 12842 | |
| 12843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12844 | /* end confdefs.h. */ |
| 12845 | #include <utmpx.h> |
| 12846 | |
| 12847 | _ACEOF |
| 12848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12849 | $EGREP "syslen" >/dev/null 2>&1; then : |
| 12850 | eval "$ossh_varname=yes" |
| 12851 | else |
| 12852 | eval "$ossh_varname=no" |
| 12853 | fi |
| 12854 | rm -f conftest* |
| 12855 | |
| 12856 | fi |
| 12857 | |
| 12858 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12859 | if test -n "`echo $ossh_varname`"; then |
| 12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12861 | $as_echo "$ossh_result" >&6; } |
| 12862 | if test "x$ossh_result" = "xyes"; then |
| 12863 | |
| 12864 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h |
| 12865 | |
| 12866 | fi |
| 12867 | else |
| 12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12869 | $as_echo "no" >&6; } |
| 12870 | fi |
| 12871 | |
| 12872 | |
| 12873 | # look for field 'ut_pid' in header 'utmp.h' |
| 12874 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 12875 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid |
| 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 |
| 12877 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } |
| 12878 | if eval \${$ossh_varname+:} false; then : |
| 12879 | $as_echo_n "(cached) " >&6 |
| 12880 | else |
| 12881 | |
| 12882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12883 | /* end confdefs.h. */ |
| 12884 | #include <utmp.h> |
| 12885 | |
| 12886 | _ACEOF |
| 12887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12888 | $EGREP "ut_pid" >/dev/null 2>&1; then : |
| 12889 | eval "$ossh_varname=yes" |
| 12890 | else |
| 12891 | eval "$ossh_varname=no" |
| 12892 | fi |
| 12893 | rm -f conftest* |
| 12894 | |
| 12895 | fi |
| 12896 | |
| 12897 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12898 | if test -n "`echo $ossh_varname`"; then |
| 12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12900 | $as_echo "$ossh_result" >&6; } |
| 12901 | if test "x$ossh_result" = "xyes"; then |
| 12902 | |
| 12903 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h |
| 12904 | |
| 12905 | fi |
| 12906 | else |
| 12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12908 | $as_echo "no" >&6; } |
| 12909 | fi |
| 12910 | |
| 12911 | |
| 12912 | # look for field 'ut_type' in header 'utmp.h' |
| 12913 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 12914 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
| 12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 |
| 12916 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } |
| 12917 | if eval \${$ossh_varname+:} false; then : |
| 12918 | $as_echo_n "(cached) " >&6 |
| 12919 | else |
| 12920 | |
| 12921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12922 | /* end confdefs.h. */ |
| 12923 | #include <utmp.h> |
| 12924 | |
| 12925 | _ACEOF |
| 12926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12927 | $EGREP "ut_type" >/dev/null 2>&1; then : |
| 12928 | eval "$ossh_varname=yes" |
| 12929 | else |
| 12930 | eval "$ossh_varname=no" |
| 12931 | fi |
| 12932 | rm -f conftest* |
| 12933 | |
| 12934 | fi |
| 12935 | |
| 12936 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12937 | if test -n "`echo $ossh_varname`"; then |
| 12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12939 | $as_echo "$ossh_result" >&6; } |
| 12940 | if test "x$ossh_result" = "xyes"; then |
| 12941 | |
| 12942 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h |
| 12943 | |
| 12944 | fi |
| 12945 | else |
| 12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12947 | $as_echo "no" >&6; } |
| 12948 | fi |
| 12949 | |
| 12950 | |
| 12951 | # look for field 'ut_type' in header 'utmpx.h' |
| 12952 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 12953 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
| 12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 |
| 12955 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } |
| 12956 | if eval \${$ossh_varname+:} false; then : |
| 12957 | $as_echo_n "(cached) " >&6 |
| 12958 | else |
| 12959 | |
| 12960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12961 | /* end confdefs.h. */ |
| 12962 | #include <utmpx.h> |
| 12963 | |
| 12964 | _ACEOF |
| 12965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12966 | $EGREP "ut_type" >/dev/null 2>&1; then : |
| 12967 | eval "$ossh_varname=yes" |
| 12968 | else |
| 12969 | eval "$ossh_varname=no" |
| 12970 | fi |
| 12971 | rm -f conftest* |
| 12972 | |
| 12973 | fi |
| 12974 | |
| 12975 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 12976 | if test -n "`echo $ossh_varname`"; then |
| 12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 12978 | $as_echo "$ossh_result" >&6; } |
| 12979 | if test "x$ossh_result" = "xyes"; then |
| 12980 | |
| 12981 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h |
| 12982 | |
| 12983 | fi |
| 12984 | else |
| 12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12986 | $as_echo "no" >&6; } |
| 12987 | fi |
| 12988 | |
| 12989 | |
| 12990 | # look for field 'ut_tv' in header 'utmp.h' |
| 12991 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 12992 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
| 12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 |
| 12994 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } |
| 12995 | if eval \${$ossh_varname+:} false; then : |
| 12996 | $as_echo_n "(cached) " >&6 |
| 12997 | else |
| 12998 | |
| 12999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13000 | /* end confdefs.h. */ |
| 13001 | #include <utmp.h> |
| 13002 | |
| 13003 | _ACEOF |
| 13004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13005 | $EGREP "ut_tv" >/dev/null 2>&1; then : |
| 13006 | eval "$ossh_varname=yes" |
| 13007 | else |
| 13008 | eval "$ossh_varname=no" |
| 13009 | fi |
| 13010 | rm -f conftest* |
| 13011 | |
| 13012 | fi |
| 13013 | |
| 13014 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13015 | if test -n "`echo $ossh_varname`"; then |
| 13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13017 | $as_echo "$ossh_result" >&6; } |
| 13018 | if test "x$ossh_result" = "xyes"; then |
| 13019 | |
| 13020 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h |
| 13021 | |
| 13022 | fi |
| 13023 | else |
| 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13025 | $as_echo "no" >&6; } |
| 13026 | fi |
| 13027 | |
| 13028 | |
| 13029 | # look for field 'ut_id' in header 'utmp.h' |
| 13030 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 13031 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
| 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 |
| 13033 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } |
| 13034 | if eval \${$ossh_varname+:} false; then : |
| 13035 | $as_echo_n "(cached) " >&6 |
| 13036 | else |
| 13037 | |
| 13038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13039 | /* end confdefs.h. */ |
| 13040 | #include <utmp.h> |
| 13041 | |
| 13042 | _ACEOF |
| 13043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13044 | $EGREP "ut_id" >/dev/null 2>&1; then : |
| 13045 | eval "$ossh_varname=yes" |
| 13046 | else |
| 13047 | eval "$ossh_varname=no" |
| 13048 | fi |
| 13049 | rm -f conftest* |
| 13050 | |
| 13051 | fi |
| 13052 | |
| 13053 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13054 | if test -n "`echo $ossh_varname`"; then |
| 13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13056 | $as_echo "$ossh_result" >&6; } |
| 13057 | if test "x$ossh_result" = "xyes"; then |
| 13058 | |
| 13059 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h |
| 13060 | |
| 13061 | fi |
| 13062 | else |
| 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13064 | $as_echo "no" >&6; } |
| 13065 | fi |
| 13066 | |
| 13067 | |
| 13068 | # look for field 'ut_id' in header 'utmpx.h' |
| 13069 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 13070 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
| 13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 |
| 13072 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } |
| 13073 | if eval \${$ossh_varname+:} false; then : |
| 13074 | $as_echo_n "(cached) " >&6 |
| 13075 | else |
| 13076 | |
| 13077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13078 | /* end confdefs.h. */ |
| 13079 | #include <utmpx.h> |
| 13080 | |
| 13081 | _ACEOF |
| 13082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13083 | $EGREP "ut_id" >/dev/null 2>&1; then : |
| 13084 | eval "$ossh_varname=yes" |
| 13085 | else |
| 13086 | eval "$ossh_varname=no" |
| 13087 | fi |
| 13088 | rm -f conftest* |
| 13089 | |
| 13090 | fi |
| 13091 | |
| 13092 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13093 | if test -n "`echo $ossh_varname`"; then |
| 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13095 | $as_echo "$ossh_result" >&6; } |
| 13096 | if test "x$ossh_result" = "xyes"; then |
| 13097 | |
| 13098 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h |
| 13099 | |
| 13100 | fi |
| 13101 | else |
| 13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13103 | $as_echo "no" >&6; } |
| 13104 | fi |
| 13105 | |
| 13106 | |
| 13107 | # look for field 'ut_addr' in header 'utmp.h' |
| 13108 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 13109 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
| 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 |
| 13111 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } |
| 13112 | if eval \${$ossh_varname+:} false; then : |
| 13113 | $as_echo_n "(cached) " >&6 |
| 13114 | else |
| 13115 | |
| 13116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13117 | /* end confdefs.h. */ |
| 13118 | #include <utmp.h> |
| 13119 | |
| 13120 | _ACEOF |
| 13121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13122 | $EGREP "ut_addr" >/dev/null 2>&1; then : |
| 13123 | eval "$ossh_varname=yes" |
| 13124 | else |
| 13125 | eval "$ossh_varname=no" |
| 13126 | fi |
| 13127 | rm -f conftest* |
| 13128 | |
| 13129 | fi |
| 13130 | |
| 13131 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13132 | if test -n "`echo $ossh_varname`"; then |
| 13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13134 | $as_echo "$ossh_result" >&6; } |
| 13135 | if test "x$ossh_result" = "xyes"; then |
| 13136 | |
| 13137 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h |
| 13138 | |
| 13139 | fi |
| 13140 | else |
| 13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13142 | $as_echo "no" >&6; } |
| 13143 | fi |
| 13144 | |
| 13145 | |
| 13146 | # look for field 'ut_addr' in header 'utmpx.h' |
| 13147 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 13148 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
| 13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 |
| 13150 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } |
| 13151 | if eval \${$ossh_varname+:} false; then : |
| 13152 | $as_echo_n "(cached) " >&6 |
| 13153 | else |
| 13154 | |
| 13155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13156 | /* end confdefs.h. */ |
| 13157 | #include <utmpx.h> |
| 13158 | |
| 13159 | _ACEOF |
| 13160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13161 | $EGREP "ut_addr" >/dev/null 2>&1; then : |
| 13162 | eval "$ossh_varname=yes" |
| 13163 | else |
| 13164 | eval "$ossh_varname=no" |
| 13165 | fi |
| 13166 | rm -f conftest* |
| 13167 | |
| 13168 | fi |
| 13169 | |
| 13170 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13171 | if test -n "`echo $ossh_varname`"; then |
| 13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13173 | $as_echo "$ossh_result" >&6; } |
| 13174 | if test "x$ossh_result" = "xyes"; then |
| 13175 | |
| 13176 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h |
| 13177 | |
| 13178 | fi |
| 13179 | else |
| 13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13181 | $as_echo "no" >&6; } |
| 13182 | fi |
| 13183 | |
| 13184 | |
| 13185 | # look for field 'ut_addr_v6' in header 'utmp.h' |
| 13186 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 13187 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
| 13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 |
| 13189 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } |
| 13190 | if eval \${$ossh_varname+:} false; then : |
| 13191 | $as_echo_n "(cached) " >&6 |
| 13192 | else |
| 13193 | |
| 13194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13195 | /* end confdefs.h. */ |
| 13196 | #include <utmp.h> |
| 13197 | |
| 13198 | _ACEOF |
| 13199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13200 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
| 13201 | eval "$ossh_varname=yes" |
| 13202 | else |
| 13203 | eval "$ossh_varname=no" |
| 13204 | fi |
| 13205 | rm -f conftest* |
| 13206 | |
| 13207 | fi |
| 13208 | |
| 13209 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13210 | if test -n "`echo $ossh_varname`"; then |
| 13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13212 | $as_echo "$ossh_result" >&6; } |
| 13213 | if test "x$ossh_result" = "xyes"; then |
| 13214 | |
| 13215 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h |
| 13216 | |
| 13217 | fi |
| 13218 | else |
| 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13220 | $as_echo "no" >&6; } |
| 13221 | fi |
| 13222 | |
| 13223 | |
| 13224 | # look for field 'ut_addr_v6' in header 'utmpx.h' |
| 13225 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 13226 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
| 13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 |
| 13228 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } |
| 13229 | if eval \${$ossh_varname+:} false; then : |
| 13230 | $as_echo_n "(cached) " >&6 |
| 13231 | else |
| 13232 | |
| 13233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13234 | /* end confdefs.h. */ |
| 13235 | #include <utmpx.h> |
| 13236 | |
| 13237 | _ACEOF |
| 13238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13239 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
| 13240 | eval "$ossh_varname=yes" |
| 13241 | else |
| 13242 | eval "$ossh_varname=no" |
| 13243 | fi |
| 13244 | rm -f conftest* |
| 13245 | |
| 13246 | fi |
| 13247 | |
| 13248 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13249 | if test -n "`echo $ossh_varname`"; then |
| 13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13251 | $as_echo "$ossh_result" >&6; } |
| 13252 | if test "x$ossh_result" = "xyes"; then |
| 13253 | |
| 13254 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h |
| 13255 | |
| 13256 | fi |
| 13257 | else |
| 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13259 | $as_echo "no" >&6; } |
| 13260 | fi |
| 13261 | |
| 13262 | |
| 13263 | # look for field 'ut_exit' in header 'utmp.h' |
| 13264 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 13265 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit |
| 13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 |
| 13267 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } |
| 13268 | if eval \${$ossh_varname+:} false; then : |
| 13269 | $as_echo_n "(cached) " >&6 |
| 13270 | else |
| 13271 | |
| 13272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13273 | /* end confdefs.h. */ |
| 13274 | #include <utmp.h> |
| 13275 | |
| 13276 | _ACEOF |
| 13277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13278 | $EGREP "ut_exit" >/dev/null 2>&1; then : |
| 13279 | eval "$ossh_varname=yes" |
| 13280 | else |
| 13281 | eval "$ossh_varname=no" |
| 13282 | fi |
| 13283 | rm -f conftest* |
| 13284 | |
| 13285 | fi |
| 13286 | |
| 13287 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13288 | if test -n "`echo $ossh_varname`"; then |
| 13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13290 | $as_echo "$ossh_result" >&6; } |
| 13291 | if test "x$ossh_result" = "xyes"; then |
| 13292 | |
| 13293 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h |
| 13294 | |
| 13295 | fi |
| 13296 | else |
| 13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13298 | $as_echo "no" >&6; } |
| 13299 | fi |
| 13300 | |
| 13301 | |
| 13302 | # look for field 'ut_time' in header 'utmp.h' |
| 13303 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 13304 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
| 13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 |
| 13306 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } |
| 13307 | if eval \${$ossh_varname+:} false; then : |
| 13308 | $as_echo_n "(cached) " >&6 |
| 13309 | else |
| 13310 | |
| 13311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13312 | /* end confdefs.h. */ |
| 13313 | #include <utmp.h> |
| 13314 | |
| 13315 | _ACEOF |
| 13316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13317 | $EGREP "ut_time" >/dev/null 2>&1; then : |
| 13318 | eval "$ossh_varname=yes" |
| 13319 | else |
| 13320 | eval "$ossh_varname=no" |
| 13321 | fi |
| 13322 | rm -f conftest* |
| 13323 | |
| 13324 | fi |
| 13325 | |
| 13326 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13327 | if test -n "`echo $ossh_varname`"; then |
| 13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13329 | $as_echo "$ossh_result" >&6; } |
| 13330 | if test "x$ossh_result" = "xyes"; then |
| 13331 | |
| 13332 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h |
| 13333 | |
| 13334 | fi |
| 13335 | else |
| 13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13337 | $as_echo "no" >&6; } |
| 13338 | fi |
| 13339 | |
| 13340 | |
| 13341 | # look for field 'ut_time' in header 'utmpx.h' |
| 13342 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 13343 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
| 13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 |
| 13345 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } |
| 13346 | if eval \${$ossh_varname+:} false; then : |
| 13347 | $as_echo_n "(cached) " >&6 |
| 13348 | else |
| 13349 | |
| 13350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13351 | /* end confdefs.h. */ |
| 13352 | #include <utmpx.h> |
| 13353 | |
| 13354 | _ACEOF |
| 13355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13356 | $EGREP "ut_time" >/dev/null 2>&1; then : |
| 13357 | eval "$ossh_varname=yes" |
| 13358 | else |
| 13359 | eval "$ossh_varname=no" |
| 13360 | fi |
| 13361 | rm -f conftest* |
| 13362 | |
| 13363 | fi |
| 13364 | |
| 13365 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13366 | if test -n "`echo $ossh_varname`"; then |
| 13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13368 | $as_echo "$ossh_result" >&6; } |
| 13369 | if test "x$ossh_result" = "xyes"; then |
| 13370 | |
| 13371 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h |
| 13372 | |
| 13373 | fi |
| 13374 | else |
| 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13376 | $as_echo "no" >&6; } |
| 13377 | fi |
| 13378 | |
| 13379 | |
| 13380 | # look for field 'ut_tv' in header 'utmpx.h' |
| 13381 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 13382 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
| 13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 |
| 13384 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } |
| 13385 | if eval \${$ossh_varname+:} false; then : |
| 13386 | $as_echo_n "(cached) " >&6 |
| 13387 | else |
| 13388 | |
| 13389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13390 | /* end confdefs.h. */ |
| 13391 | #include <utmpx.h> |
| 13392 | |
| 13393 | _ACEOF |
| 13394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13395 | $EGREP "ut_tv" >/dev/null 2>&1; then : |
| 13396 | eval "$ossh_varname=yes" |
| 13397 | else |
| 13398 | eval "$ossh_varname=no" |
| 13399 | fi |
| 13400 | rm -f conftest* |
| 13401 | |
| 13402 | fi |
| 13403 | |
| 13404 | ossh_result=`eval 'echo $'"$ossh_varname"` |
| 13405 | if test -n "`echo $ossh_varname`"; then |
| 13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 13407 | $as_echo "$ossh_result" >&6; } |
| 13408 | if test "x$ossh_result" = "xyes"; then |
| 13409 | |
| 13410 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h |
| 13411 | |
| 13412 | fi |
| 13413 | else |
| 13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13415 | $as_echo "no" >&6; } |
| 13416 | fi |
| 13417 | |
| 13418 | |
| 13419 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 13420 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
| 13421 | |
| 13422 | cat >>confdefs.h <<_ACEOF |
| 13423 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13424 | _ACEOF |
| 13425 | |
| 13426 | |
| 13427 | fi |
| 13428 | |
| 13429 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " |
| 13430 | #include <stdio.h> |
| 13431 | #if HAVE_SYS_TYPES_H |
| 13432 | # include <sys/types.h> |
| 13433 | #endif |
| 13434 | #include <netinet/in.h> |
| 13435 | #include <arpa/nameser.h> |
| 13436 | #include <resolv.h> |
| 13437 | |
| 13438 | " |
| 13439 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : |
| 13440 | |
| 13441 | else |
| 13442 | |
| 13443 | $as_echo "#define __res_state state" >>confdefs.h |
| 13444 | |
| 13445 | fi |
| 13446 | |
| 13447 | |
| 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 |
| 13449 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } |
| 13450 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : |
| 13451 | $as_echo_n "(cached) " >&6 |
| 13452 | else |
| 13453 | |
| 13454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13455 | /* end confdefs.h. */ |
| 13456 | |
| 13457 | #include <sys/types.h> |
| 13458 | #include <sys/socket.h> |
| 13459 | |
| 13460 | int |
| 13461 | main () |
| 13462 | { |
| 13463 | struct sockaddr_storage s; s.ss_family = 1; |
| 13464 | ; |
| 13465 | return 0; |
| 13466 | } |
| 13467 | _ACEOF |
| 13468 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13469 | ac_cv_have_ss_family_in_struct_ss="yes" |
| 13470 | else |
| 13471 | ac_cv_have_ss_family_in_struct_ss="no" |
| 13472 | fi |
| 13473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13474 | |
| 13475 | fi |
| 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 |
| 13477 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } |
| 13478 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then |
| 13479 | |
| 13480 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h |
| 13481 | |
| 13482 | fi |
| 13483 | |
| 13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 |
| 13485 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } |
| 13486 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : |
| 13487 | $as_echo_n "(cached) " >&6 |
| 13488 | else |
| 13489 | |
| 13490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13491 | /* end confdefs.h. */ |
| 13492 | |
| 13493 | #include <sys/types.h> |
| 13494 | #include <sys/socket.h> |
| 13495 | |
| 13496 | int |
| 13497 | main () |
| 13498 | { |
| 13499 | struct sockaddr_storage s; s.__ss_family = 1; |
| 13500 | ; |
| 13501 | return 0; |
| 13502 | } |
| 13503 | _ACEOF |
| 13504 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13505 | ac_cv_have___ss_family_in_struct_ss="yes" |
| 13506 | else |
| 13507 | ac_cv_have___ss_family_in_struct_ss="no" |
| 13508 | |
| 13509 | fi |
| 13510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13511 | |
| 13512 | fi |
| 13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 |
| 13514 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } |
| 13515 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
| 13516 | |
| 13517 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h |
| 13518 | |
| 13519 | fi |
| 13520 | |
| 13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5 |
| 13522 | $as_echo_n "checking for pw_class field in struct passwd... " >&6; } |
| 13523 | if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then : |
| 13524 | $as_echo_n "(cached) " >&6 |
| 13525 | else |
| 13526 | |
| 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13528 | /* end confdefs.h. */ |
| 13529 | #include <pwd.h> |
| 13530 | int |
| 13531 | main () |
| 13532 | { |
| 13533 | struct passwd p; p.pw_class = 0; |
| 13534 | ; |
| 13535 | return 0; |
| 13536 | } |
| 13537 | _ACEOF |
| 13538 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13539 | ac_cv_have_pw_class_in_struct_passwd="yes" |
| 13540 | else |
| 13541 | ac_cv_have_pw_class_in_struct_passwd="no" |
| 13542 | |
| 13543 | fi |
| 13544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13545 | |
| 13546 | fi |
| 13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 |
| 13548 | $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; } |
| 13549 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then |
| 13550 | |
| 13551 | $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h |
| 13552 | |
| 13553 | fi |
| 13554 | |
| 13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5 |
| 13556 | $as_echo_n "checking for pw_expire field in struct passwd... " >&6; } |
| 13557 | if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then : |
| 13558 | $as_echo_n "(cached) " >&6 |
| 13559 | else |
| 13560 | |
| 13561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13562 | /* end confdefs.h. */ |
| 13563 | #include <pwd.h> |
| 13564 | int |
| 13565 | main () |
| 13566 | { |
| 13567 | struct passwd p; p.pw_expire = 0; |
| 13568 | ; |
| 13569 | return 0; |
| 13570 | } |
| 13571 | _ACEOF |
| 13572 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13573 | ac_cv_have_pw_expire_in_struct_passwd="yes" |
| 13574 | else |
| 13575 | ac_cv_have_pw_expire_in_struct_passwd="no" |
| 13576 | |
| 13577 | fi |
| 13578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13579 | |
| 13580 | fi |
| 13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 |
| 13582 | $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; } |
| 13583 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then |
| 13584 | |
| 13585 | $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h |
| 13586 | |
| 13587 | fi |
| 13588 | |
| 13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5 |
| 13590 | $as_echo_n "checking for pw_change field in struct passwd... " >&6; } |
| 13591 | if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then : |
| 13592 | $as_echo_n "(cached) " >&6 |
| 13593 | else |
| 13594 | |
| 13595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13596 | /* end confdefs.h. */ |
| 13597 | #include <pwd.h> |
| 13598 | int |
| 13599 | main () |
| 13600 | { |
| 13601 | struct passwd p; p.pw_change = 0; |
| 13602 | ; |
| 13603 | return 0; |
| 13604 | } |
| 13605 | _ACEOF |
| 13606 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13607 | ac_cv_have_pw_change_in_struct_passwd="yes" |
| 13608 | else |
| 13609 | ac_cv_have_pw_change_in_struct_passwd="no" |
| 13610 | |
| 13611 | fi |
| 13612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13613 | |
| 13614 | fi |
| 13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 |
| 13616 | $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; } |
| 13617 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then |
| 13618 | |
| 13619 | $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h |
| 13620 | |
| 13621 | fi |
| 13622 | |
| 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_gecos field in struct passwd" >&5 |
| 13624 | $as_echo_n "checking for pw_gecos field in struct passwd... " >&6; } |
| 13625 | if ${ac_cv_have_pw_gecos_in_struct_passwd+:} false; then : |
| 13626 | $as_echo_n "(cached) " >&6 |
| 13627 | else |
| 13628 | |
| 13629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13630 | /* end confdefs.h. */ |
| 13631 | #include <pwd.h> |
| 13632 | int |
| 13633 | main () |
| 13634 | { |
| 13635 | struct passwd p; p.pw_gecos = 0; |
| 13636 | ; |
| 13637 | return 0; |
| 13638 | } |
| 13639 | _ACEOF |
| 13640 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13641 | ac_cv_have_pw_gecos_in_struct_passwd="yes" |
| 13642 | else |
| 13643 | ac_cv_have_pw_gecos_in_struct_passwd="no" |
| 13644 | |
| 13645 | fi |
| 13646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13647 | |
| 13648 | fi |
| 13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_gecos_in_struct_passwd" >&5 |
| 13650 | $as_echo "$ac_cv_have_pw_gecos_in_struct_passwd" >&6; } |
| 13651 | if test "x$ac_cv_have_pw_gecos_in_struct_passwd" = "xyes" ; then |
| 13652 | |
| 13653 | $as_echo "#define HAVE_PW_GECOS_IN_PASSWD 1" >>confdefs.h |
| 13654 | |
| 13655 | fi |
| 13656 | |
| 13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 |
| 13658 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } |
| 13659 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : |
| 13660 | $as_echo_n "(cached) " >&6 |
| 13661 | else |
| 13662 | |
| 13663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13664 | /* end confdefs.h. */ |
| 13665 | |
| 13666 | #include <sys/types.h> |
| 13667 | #include <sys/socket.h> |
| 13668 | #include <sys/uio.h> |
| 13669 | |
| 13670 | int |
| 13671 | main () |
| 13672 | { |
| 13673 | |
| 13674 | #ifdef msg_accrights |
| 13675 | #error "msg_accrights is a macro" |
| 13676 | exit(1); |
| 13677 | #endif |
| 13678 | struct msghdr m; |
| 13679 | m.msg_accrights = 0; |
| 13680 | exit(0); |
| 13681 | |
| 13682 | ; |
| 13683 | return 0; |
| 13684 | } |
| 13685 | _ACEOF |
| 13686 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13687 | ac_cv_have_accrights_in_msghdr="yes" |
| 13688 | else |
| 13689 | ac_cv_have_accrights_in_msghdr="no" |
| 13690 | |
| 13691 | fi |
| 13692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13693 | |
| 13694 | fi |
| 13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 |
| 13696 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } |
| 13697 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then |
| 13698 | |
| 13699 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h |
| 13700 | |
| 13701 | fi |
| 13702 | |
| 13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 |
| 13704 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } |
| 13705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13706 | /* end confdefs.h. */ |
| 13707 | |
| 13708 | #include <sys/types.h> |
| 13709 | #include <sys/stat.h> |
| 13710 | #ifdef HAVE_SYS_TIME_H |
| 13711 | # include <sys/time.h> |
| 13712 | #endif |
| 13713 | #ifdef HAVE_SYS_MOUNT_H |
| 13714 | #include <sys/mount.h> |
| 13715 | #endif |
| 13716 | #ifdef HAVE_SYS_STATVFS_H |
| 13717 | #include <sys/statvfs.h> |
| 13718 | #endif |
| 13719 | |
| 13720 | int |
| 13721 | main () |
| 13722 | { |
| 13723 | struct statvfs s; s.f_fsid = 0; |
| 13724 | ; |
| 13725 | return 0; |
| 13726 | } |
| 13727 | _ACEOF |
| 13728 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13730 | $as_echo "yes" >&6; } |
| 13731 | else |
| 13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13733 | $as_echo "no" >&6; } |
| 13734 | |
| 13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 |
| 13736 | $as_echo_n "checking if fsid_t has member val... " >&6; } |
| 13737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13738 | /* end confdefs.h. */ |
| 13739 | |
| 13740 | #include <sys/types.h> |
| 13741 | #include <sys/statvfs.h> |
| 13742 | |
| 13743 | int |
| 13744 | main () |
| 13745 | { |
| 13746 | fsid_t t; t.val[0] = 0; |
| 13747 | ; |
| 13748 | return 0; |
| 13749 | } |
| 13750 | _ACEOF |
| 13751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13753 | $as_echo "yes" >&6; } |
| 13754 | |
| 13755 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h |
| 13756 | |
| 13757 | else |
| 13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13759 | $as_echo "no" >&6; } |
| 13760 | fi |
| 13761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13762 | |
| 13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 |
| 13764 | $as_echo_n "checking if f_fsid has member __val... " >&6; } |
| 13765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13766 | /* end confdefs.h. */ |
| 13767 | |
| 13768 | #include <sys/types.h> |
| 13769 | #include <sys/statvfs.h> |
| 13770 | |
| 13771 | int |
| 13772 | main () |
| 13773 | { |
| 13774 | fsid_t t; t.__val[0] = 0; |
| 13775 | ; |
| 13776 | return 0; |
| 13777 | } |
| 13778 | _ACEOF |
| 13779 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13781 | $as_echo "yes" >&6; } |
| 13782 | |
| 13783 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h |
| 13784 | |
| 13785 | else |
| 13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13787 | $as_echo "no" >&6; } |
| 13788 | fi |
| 13789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13790 | |
| 13791 | fi |
| 13792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13793 | |
| 13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 |
| 13795 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } |
| 13796 | if ${ac_cv_have_control_in_msghdr+:} false; then : |
| 13797 | $as_echo_n "(cached) " >&6 |
| 13798 | else |
| 13799 | |
| 13800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13801 | /* end confdefs.h. */ |
| 13802 | |
| 13803 | #include <sys/types.h> |
| 13804 | #include <sys/socket.h> |
| 13805 | #include <sys/uio.h> |
| 13806 | |
| 13807 | int |
| 13808 | main () |
| 13809 | { |
| 13810 | |
| 13811 | #ifdef msg_control |
| 13812 | #error "msg_control is a macro" |
| 13813 | exit(1); |
| 13814 | #endif |
| 13815 | struct msghdr m; |
| 13816 | m.msg_control = 0; |
| 13817 | exit(0); |
| 13818 | |
| 13819 | ; |
| 13820 | return 0; |
| 13821 | } |
| 13822 | _ACEOF |
| 13823 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13824 | ac_cv_have_control_in_msghdr="yes" |
| 13825 | else |
| 13826 | ac_cv_have_control_in_msghdr="no" |
| 13827 | |
| 13828 | fi |
| 13829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13830 | |
| 13831 | fi |
| 13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 |
| 13833 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } |
| 13834 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then |
| 13835 | |
| 13836 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h |
| 13837 | |
| 13838 | fi |
| 13839 | |
| 13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 |
| 13841 | $as_echo_n "checking if libc defines __progname... " >&6; } |
| 13842 | if ${ac_cv_libc_defines___progname+:} false; then : |
| 13843 | $as_echo_n "(cached) " >&6 |
| 13844 | else |
| 13845 | |
| 13846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13847 | /* end confdefs.h. */ |
| 13848 | |
| 13849 | int |
| 13850 | main () |
| 13851 | { |
| 13852 | extern char *__progname; printf("%s", __progname); |
| 13853 | ; |
| 13854 | return 0; |
| 13855 | } |
| 13856 | _ACEOF |
| 13857 | if ac_fn_c_try_link "$LINENO"; then : |
| 13858 | ac_cv_libc_defines___progname="yes" |
| 13859 | else |
| 13860 | ac_cv_libc_defines___progname="no" |
| 13861 | |
| 13862 | fi |
| 13863 | rm -f core conftest.err conftest.$ac_objext \ |
| 13864 | conftest$ac_exeext conftest.$ac_ext |
| 13865 | |
| 13866 | fi |
| 13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 |
| 13868 | $as_echo "$ac_cv_libc_defines___progname" >&6; } |
| 13869 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then |
| 13870 | |
| 13871 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h |
| 13872 | |
| 13873 | fi |
| 13874 | |
| 13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 |
| 13876 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } |
| 13877 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : |
| 13878 | $as_echo_n "(cached) " >&6 |
| 13879 | else |
| 13880 | |
| 13881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13882 | /* end confdefs.h. */ |
| 13883 | #include <stdio.h> |
| 13884 | int |
| 13885 | main () |
| 13886 | { |
| 13887 | printf("%s", __FUNCTION__); |
| 13888 | ; |
| 13889 | return 0; |
| 13890 | } |
| 13891 | _ACEOF |
| 13892 | if ac_fn_c_try_link "$LINENO"; then : |
| 13893 | ac_cv_cc_implements___FUNCTION__="yes" |
| 13894 | else |
| 13895 | ac_cv_cc_implements___FUNCTION__="no" |
| 13896 | |
| 13897 | fi |
| 13898 | rm -f core conftest.err conftest.$ac_objext \ |
| 13899 | conftest$ac_exeext conftest.$ac_ext |
| 13900 | |
| 13901 | fi |
| 13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 |
| 13903 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } |
| 13904 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then |
| 13905 | |
| 13906 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h |
| 13907 | |
| 13908 | fi |
| 13909 | |
| 13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 |
| 13911 | $as_echo_n "checking whether $CC implements __func__... " >&6; } |
| 13912 | if ${ac_cv_cc_implements___func__+:} false; then : |
| 13913 | $as_echo_n "(cached) " >&6 |
| 13914 | else |
| 13915 | |
| 13916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13917 | /* end confdefs.h. */ |
| 13918 | #include <stdio.h> |
| 13919 | int |
| 13920 | main () |
| 13921 | { |
| 13922 | printf("%s", __func__); |
| 13923 | ; |
| 13924 | return 0; |
| 13925 | } |
| 13926 | _ACEOF |
| 13927 | if ac_fn_c_try_link "$LINENO"; then : |
| 13928 | ac_cv_cc_implements___func__="yes" |
| 13929 | else |
| 13930 | ac_cv_cc_implements___func__="no" |
| 13931 | |
| 13932 | fi |
| 13933 | rm -f core conftest.err conftest.$ac_objext \ |
| 13934 | conftest$ac_exeext conftest.$ac_ext |
| 13935 | |
| 13936 | fi |
| 13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 |
| 13938 | $as_echo "$ac_cv_cc_implements___func__" >&6; } |
| 13939 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then |
| 13940 | |
| 13941 | $as_echo "#define HAVE___func__ 1" >>confdefs.h |
| 13942 | |
| 13943 | fi |
| 13944 | |
| 13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 |
| 13946 | $as_echo_n "checking whether va_copy exists... " >&6; } |
| 13947 | if ${ac_cv_have_va_copy+:} false; then : |
| 13948 | $as_echo_n "(cached) " >&6 |
| 13949 | else |
| 13950 | |
| 13951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13952 | /* end confdefs.h. */ |
| 13953 | |
| 13954 | #include <stdarg.h> |
| 13955 | va_list x,y; |
| 13956 | |
| 13957 | int |
| 13958 | main () |
| 13959 | { |
| 13960 | va_copy(x,y); |
| 13961 | ; |
| 13962 | return 0; |
| 13963 | } |
| 13964 | _ACEOF |
| 13965 | if ac_fn_c_try_link "$LINENO"; then : |
| 13966 | ac_cv_have_va_copy="yes" |
| 13967 | else |
| 13968 | ac_cv_have_va_copy="no" |
| 13969 | |
| 13970 | fi |
| 13971 | rm -f core conftest.err conftest.$ac_objext \ |
| 13972 | conftest$ac_exeext conftest.$ac_ext |
| 13973 | |
| 13974 | fi |
| 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 |
| 13976 | $as_echo "$ac_cv_have_va_copy" >&6; } |
| 13977 | if test "x$ac_cv_have_va_copy" = "xyes" ; then |
| 13978 | |
| 13979 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h |
| 13980 | |
| 13981 | fi |
| 13982 | |
| 13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 |
| 13984 | $as_echo_n "checking whether __va_copy exists... " >&6; } |
| 13985 | if ${ac_cv_have___va_copy+:} false; then : |
| 13986 | $as_echo_n "(cached) " >&6 |
| 13987 | else |
| 13988 | |
| 13989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13990 | /* end confdefs.h. */ |
| 13991 | |
| 13992 | #include <stdarg.h> |
| 13993 | va_list x,y; |
| 13994 | |
| 13995 | int |
| 13996 | main () |
| 13997 | { |
| 13998 | __va_copy(x,y); |
| 13999 | ; |
| 14000 | return 0; |
| 14001 | } |
| 14002 | _ACEOF |
| 14003 | if ac_fn_c_try_link "$LINENO"; then : |
| 14004 | ac_cv_have___va_copy="yes" |
| 14005 | else |
| 14006 | ac_cv_have___va_copy="no" |
| 14007 | |
| 14008 | fi |
| 14009 | rm -f core conftest.err conftest.$ac_objext \ |
| 14010 | conftest$ac_exeext conftest.$ac_ext |
| 14011 | |
| 14012 | fi |
| 14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 |
| 14014 | $as_echo "$ac_cv_have___va_copy" >&6; } |
| 14015 | if test "x$ac_cv_have___va_copy" = "xyes" ; then |
| 14016 | |
| 14017 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h |
| 14018 | |
| 14019 | fi |
| 14020 | |
| 14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 |
| 14022 | $as_echo_n "checking whether getopt has optreset support... " >&6; } |
| 14023 | if ${ac_cv_have_getopt_optreset+:} false; then : |
| 14024 | $as_echo_n "(cached) " >&6 |
| 14025 | else |
| 14026 | |
| 14027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14028 | /* end confdefs.h. */ |
| 14029 | #include <getopt.h> |
| 14030 | int |
| 14031 | main () |
| 14032 | { |
| 14033 | extern int optreset; optreset = 0; |
| 14034 | ; |
| 14035 | return 0; |
| 14036 | } |
| 14037 | _ACEOF |
| 14038 | if ac_fn_c_try_link "$LINENO"; then : |
| 14039 | ac_cv_have_getopt_optreset="yes" |
| 14040 | else |
| 14041 | ac_cv_have_getopt_optreset="no" |
| 14042 | |
| 14043 | fi |
| 14044 | rm -f core conftest.err conftest.$ac_objext \ |
| 14045 | conftest$ac_exeext conftest.$ac_ext |
| 14046 | |
| 14047 | fi |
| 14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 |
| 14049 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } |
| 14050 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then |
| 14051 | |
| 14052 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h |
| 14053 | |
| 14054 | fi |
| 14055 | |
| 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 |
| 14057 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } |
| 14058 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : |
| 14059 | $as_echo_n "(cached) " >&6 |
| 14060 | else |
| 14061 | |
| 14062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14063 | /* end confdefs.h. */ |
| 14064 | |
| 14065 | int |
| 14066 | main () |
| 14067 | { |
| 14068 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); |
| 14069 | ; |
| 14070 | return 0; |
| 14071 | } |
| 14072 | _ACEOF |
| 14073 | if ac_fn_c_try_link "$LINENO"; then : |
| 14074 | ac_cv_libc_defines_sys_errlist="yes" |
| 14075 | else |
| 14076 | ac_cv_libc_defines_sys_errlist="no" |
| 14077 | |
| 14078 | fi |
| 14079 | rm -f core conftest.err conftest.$ac_objext \ |
| 14080 | conftest$ac_exeext conftest.$ac_ext |
| 14081 | |
| 14082 | fi |
| 14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 |
| 14084 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } |
| 14085 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then |
| 14086 | |
| 14087 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h |
| 14088 | |
| 14089 | fi |
| 14090 | |
| 14091 | |
| 14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 |
| 14093 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } |
| 14094 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : |
| 14095 | $as_echo_n "(cached) " >&6 |
| 14096 | else |
| 14097 | |
| 14098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14099 | /* end confdefs.h. */ |
| 14100 | |
| 14101 | int |
| 14102 | main () |
| 14103 | { |
| 14104 | extern int sys_nerr; printf("%i", sys_nerr); |
| 14105 | ; |
| 14106 | return 0; |
| 14107 | } |
| 14108 | _ACEOF |
| 14109 | if ac_fn_c_try_link "$LINENO"; then : |
| 14110 | ac_cv_libc_defines_sys_nerr="yes" |
| 14111 | else |
| 14112 | ac_cv_libc_defines_sys_nerr="no" |
| 14113 | |
| 14114 | fi |
| 14115 | rm -f core conftest.err conftest.$ac_objext \ |
| 14116 | conftest$ac_exeext conftest.$ac_ext |
| 14117 | |
| 14118 | fi |
| 14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 |
| 14120 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } |
| 14121 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then |
| 14122 | |
| 14123 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h |
| 14124 | |
| 14125 | fi |
| 14126 | |
| 14127 | # Check libraries needed by DNS fingerprint support |
| 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 |
| 14129 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } |
| 14130 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 14131 | $as_echo_n "(cached) " >&6 |
| 14132 | else |
| 14133 | ac_func_search_save_LIBS=$LIBS |
| 14134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14135 | /* end confdefs.h. */ |
| 14136 | |
| 14137 | /* Override any GCC internal prototype to avoid an error. |
| 14138 | Use char because int might match the return type of a GCC |
| 14139 | builtin and then its argument prototype would still apply. */ |
| 14140 | #ifdef __cplusplus |
| 14141 | extern "C" |
| 14142 | #endif |
| 14143 | char getrrsetbyname (); |
| 14144 | int |
| 14145 | main () |
| 14146 | { |
| 14147 | return getrrsetbyname (); |
| 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | for ac_lib in '' resolv; do |
| 14153 | if test -z "$ac_lib"; then |
| 14154 | ac_res="none required" |
| 14155 | else |
| 14156 | ac_res=-l$ac_lib |
| 14157 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14158 | fi |
| 14159 | if ac_fn_c_try_link "$LINENO"; then : |
| 14160 | ac_cv_search_getrrsetbyname=$ac_res |
| 14161 | fi |
| 14162 | rm -f core conftest.err conftest.$ac_objext \ |
| 14163 | conftest$ac_exeext |
| 14164 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 14165 | break |
| 14166 | fi |
| 14167 | done |
| 14168 | if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 14169 | |
| 14170 | else |
| 14171 | ac_cv_search_getrrsetbyname=no |
| 14172 | fi |
| 14173 | rm conftest.$ac_ext |
| 14174 | LIBS=$ac_func_search_save_LIBS |
| 14175 | fi |
| 14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 |
| 14177 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } |
| 14178 | ac_res=$ac_cv_search_getrrsetbyname |
| 14179 | if test "$ac_res" != no; then : |
| 14180 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14181 | |
| 14182 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h |
| 14183 | |
| 14184 | else |
| 14185 | |
| 14186 | # Needed by our getrrsetbyname() |
| 14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 |
| 14188 | $as_echo_n "checking for library containing res_query... " >&6; } |
| 14189 | if ${ac_cv_search_res_query+:} false; then : |
| 14190 | $as_echo_n "(cached) " >&6 |
| 14191 | else |
| 14192 | ac_func_search_save_LIBS=$LIBS |
| 14193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14194 | /* end confdefs.h. */ |
| 14195 | |
| 14196 | /* Override any GCC internal prototype to avoid an error. |
| 14197 | Use char because int might match the return type of a GCC |
| 14198 | builtin and then its argument prototype would still apply. */ |
| 14199 | #ifdef __cplusplus |
| 14200 | extern "C" |
| 14201 | #endif |
| 14202 | char res_query (); |
| 14203 | int |
| 14204 | main () |
| 14205 | { |
| 14206 | return res_query (); |
| 14207 | ; |
| 14208 | return 0; |
| 14209 | } |
| 14210 | _ACEOF |
| 14211 | for ac_lib in '' resolv; do |
| 14212 | if test -z "$ac_lib"; then |
| 14213 | ac_res="none required" |
| 14214 | else |
| 14215 | ac_res=-l$ac_lib |
| 14216 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14217 | fi |
| 14218 | if ac_fn_c_try_link "$LINENO"; then : |
| 14219 | ac_cv_search_res_query=$ac_res |
| 14220 | fi |
| 14221 | rm -f core conftest.err conftest.$ac_objext \ |
| 14222 | conftest$ac_exeext |
| 14223 | if ${ac_cv_search_res_query+:} false; then : |
| 14224 | break |
| 14225 | fi |
| 14226 | done |
| 14227 | if ${ac_cv_search_res_query+:} false; then : |
| 14228 | |
| 14229 | else |
| 14230 | ac_cv_search_res_query=no |
| 14231 | fi |
| 14232 | rm conftest.$ac_ext |
| 14233 | LIBS=$ac_func_search_save_LIBS |
| 14234 | fi |
| 14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 |
| 14236 | $as_echo "$ac_cv_search_res_query" >&6; } |
| 14237 | ac_res=$ac_cv_search_res_query |
| 14238 | if test "$ac_res" != no; then : |
| 14239 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14240 | |
| 14241 | fi |
| 14242 | |
| 14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 14244 | $as_echo_n "checking for library containing dn_expand... " >&6; } |
| 14245 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14246 | $as_echo_n "(cached) " >&6 |
| 14247 | else |
| 14248 | ac_func_search_save_LIBS=$LIBS |
| 14249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14250 | /* end confdefs.h. */ |
| 14251 | |
| 14252 | /* Override any GCC internal prototype to avoid an error. |
| 14253 | Use char because int might match the return type of a GCC |
| 14254 | builtin and then its argument prototype would still apply. */ |
| 14255 | #ifdef __cplusplus |
| 14256 | extern "C" |
| 14257 | #endif |
| 14258 | char dn_expand (); |
| 14259 | int |
| 14260 | main () |
| 14261 | { |
| 14262 | return dn_expand (); |
| 14263 | ; |
| 14264 | return 0; |
| 14265 | } |
| 14266 | _ACEOF |
| 14267 | for ac_lib in '' resolv; do |
| 14268 | if test -z "$ac_lib"; then |
| 14269 | ac_res="none required" |
| 14270 | else |
| 14271 | ac_res=-l$ac_lib |
| 14272 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14273 | fi |
| 14274 | if ac_fn_c_try_link "$LINENO"; then : |
| 14275 | ac_cv_search_dn_expand=$ac_res |
| 14276 | fi |
| 14277 | rm -f core conftest.err conftest.$ac_objext \ |
| 14278 | conftest$ac_exeext |
| 14279 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14280 | break |
| 14281 | fi |
| 14282 | done |
| 14283 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14284 | |
| 14285 | else |
| 14286 | ac_cv_search_dn_expand=no |
| 14287 | fi |
| 14288 | rm conftest.$ac_ext |
| 14289 | LIBS=$ac_func_search_save_LIBS |
| 14290 | fi |
| 14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 14292 | $as_echo "$ac_cv_search_dn_expand" >&6; } |
| 14293 | ac_res=$ac_cv_search_dn_expand |
| 14294 | if test "$ac_res" != no; then : |
| 14295 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14296 | |
| 14297 | fi |
| 14298 | |
| 14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 |
| 14300 | $as_echo_n "checking if res_query will link... " >&6; } |
| 14301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14302 | /* end confdefs.h. */ |
| 14303 | |
| 14304 | #include <sys/types.h> |
| 14305 | #include <netinet/in.h> |
| 14306 | #include <arpa/nameser.h> |
| 14307 | #include <netdb.h> |
| 14308 | #include <resolv.h> |
| 14309 | |
| 14310 | int |
| 14311 | main () |
| 14312 | { |
| 14313 | |
| 14314 | res_query (0, 0, 0, 0, 0); |
| 14315 | |
| 14316 | ; |
| 14317 | return 0; |
| 14318 | } |
| 14319 | _ACEOF |
| 14320 | if ac_fn_c_try_link "$LINENO"; then : |
| 14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14322 | $as_echo "yes" >&6; } |
| 14323 | else |
| 14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14325 | $as_echo "no" >&6; } |
| 14326 | saved_LIBS="$LIBS" |
| 14327 | LIBS="$LIBS -lresolv" |
| 14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 14329 | $as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 14330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14331 | /* end confdefs.h. */ |
| 14332 | |
| 14333 | #include <sys/types.h> |
| 14334 | #include <netinet/in.h> |
| 14335 | #include <arpa/nameser.h> |
| 14336 | #include <netdb.h> |
| 14337 | #include <resolv.h> |
| 14338 | |
| 14339 | int |
| 14340 | main () |
| 14341 | { |
| 14342 | |
| 14343 | res_query (0, 0, 0, 0, 0); |
| 14344 | |
| 14345 | ; |
| 14346 | return 0; |
| 14347 | } |
| 14348 | _ACEOF |
| 14349 | if ac_fn_c_try_link "$LINENO"; then : |
| 14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14351 | $as_echo "yes" >&6; } |
| 14352 | else |
| 14353 | LIBS="$saved_LIBS" |
| 14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14355 | $as_echo "no" >&6; } |
| 14356 | fi |
| 14357 | rm -f core conftest.err conftest.$ac_objext \ |
| 14358 | conftest$ac_exeext conftest.$ac_ext |
| 14359 | |
| 14360 | fi |
| 14361 | rm -f core conftest.err conftest.$ac_objext \ |
| 14362 | conftest$ac_exeext conftest.$ac_ext |
| 14363 | for ac_func in _getshort _getlong |
| 14364 | do : |
| 14365 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14366 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14367 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 14368 | cat >>confdefs.h <<_ACEOF |
| 14369 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14370 | _ACEOF |
| 14371 | |
| 14372 | fi |
| 14373 | done |
| 14374 | |
| 14375 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> |
| 14376 | #include <arpa/nameser.h> |
| 14377 | " |
| 14378 | if test "x$ac_cv_have_decl__getshort" = xyes; then : |
| 14379 | ac_have_decl=1 |
| 14380 | else |
| 14381 | ac_have_decl=0 |
| 14382 | fi |
| 14383 | |
| 14384 | cat >>confdefs.h <<_ACEOF |
| 14385 | #define HAVE_DECL__GETSHORT $ac_have_decl |
| 14386 | _ACEOF |
| 14387 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> |
| 14388 | #include <arpa/nameser.h> |
| 14389 | " |
| 14390 | if test "x$ac_cv_have_decl__getlong" = xyes; then : |
| 14391 | ac_have_decl=1 |
| 14392 | else |
| 14393 | ac_have_decl=0 |
| 14394 | fi |
| 14395 | |
| 14396 | cat >>confdefs.h <<_ACEOF |
| 14397 | #define HAVE_DECL__GETLONG $ac_have_decl |
| 14398 | _ACEOF |
| 14399 | |
| 14400 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> |
| 14401 | " |
| 14402 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : |
| 14403 | |
| 14404 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h |
| 14405 | |
| 14406 | fi |
| 14407 | |
| 14408 | |
| 14409 | fi |
| 14410 | |
| 14411 | |
| 14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 |
| 14413 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } |
| 14414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14415 | /* end confdefs.h. */ |
| 14416 | |
| 14417 | #include <stdio.h> |
| 14418 | #if HAVE_SYS_TYPES_H |
| 14419 | # include <sys/types.h> |
| 14420 | #endif |
| 14421 | #include <netinet/in.h> |
| 14422 | #include <arpa/nameser.h> |
| 14423 | #include <resolv.h> |
| 14424 | extern struct __res_state _res; |
| 14425 | |
| 14426 | int |
| 14427 | main () |
| 14428 | { |
| 14429 | |
| 14430 | ; |
| 14431 | return 0; |
| 14432 | } |
| 14433 | _ACEOF |
| 14434 | if ac_fn_c_try_link "$LINENO"; then : |
| 14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14436 | $as_echo "yes" >&6; } |
| 14437 | |
| 14438 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h |
| 14439 | |
| 14440 | |
| 14441 | else |
| 14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14443 | $as_echo "no" >&6; } |
| 14444 | |
| 14445 | fi |
| 14446 | rm -f core conftest.err conftest.$ac_objext \ |
| 14447 | conftest$ac_exeext conftest.$ac_ext |
| 14448 | |
| 14449 | # Check whether user wants SELinux support |
| 14450 | SELINUX_MSG="no" |
| 14451 | LIBSELINUX="" |
| 14452 | |
| 14453 | # Check whether --with-selinux was given. |
| 14454 | if test "${with_selinux+set}" = set; then : |
| 14455 | withval=$with_selinux; if test "x$withval" != "xno" ; then |
| 14456 | save_LIBS="$LIBS" |
| 14457 | |
| 14458 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h |
| 14459 | |
| 14460 | SELINUX_MSG="yes" |
| 14461 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
| 14462 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : |
| 14463 | |
| 14464 | else |
| 14465 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 |
| 14466 | fi |
| 14467 | |
| 14468 | |
| 14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 |
| 14470 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } |
| 14471 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : |
| 14472 | $as_echo_n "(cached) " >&6 |
| 14473 | else |
| 14474 | ac_check_lib_save_LIBS=$LIBS |
| 14475 | LIBS="-lselinux $LIBS" |
| 14476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14477 | /* end confdefs.h. */ |
| 14478 | |
| 14479 | /* Override any GCC internal prototype to avoid an error. |
| 14480 | Use char because int might match the return type of a GCC |
| 14481 | builtin and then its argument prototype would still apply. */ |
| 14482 | #ifdef __cplusplus |
| 14483 | extern "C" |
| 14484 | #endif |
| 14485 | char setexeccon (); |
| 14486 | int |
| 14487 | main () |
| 14488 | { |
| 14489 | return setexeccon (); |
| 14490 | ; |
| 14491 | return 0; |
| 14492 | } |
| 14493 | _ACEOF |
| 14494 | if ac_fn_c_try_link "$LINENO"; then : |
| 14495 | ac_cv_lib_selinux_setexeccon=yes |
| 14496 | else |
| 14497 | ac_cv_lib_selinux_setexeccon=no |
| 14498 | fi |
| 14499 | rm -f core conftest.err conftest.$ac_objext \ |
| 14500 | conftest$ac_exeext conftest.$ac_ext |
| 14501 | LIBS=$ac_check_lib_save_LIBS |
| 14502 | fi |
| 14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 |
| 14504 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } |
| 14505 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : |
| 14506 | LIBSELINUX="-lselinux" |
| 14507 | LIBS="$LIBS -lselinux" |
| 14508 | |
| 14509 | else |
| 14510 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 |
| 14511 | fi |
| 14512 | |
| 14513 | SSHLIBS="$SSHLIBS $LIBSELINUX" |
| 14514 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
| 14515 | for ac_func in getseuserbyname get_default_context_with_level |
| 14516 | do : |
| 14517 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14518 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14519 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 14520 | cat >>confdefs.h <<_ACEOF |
| 14521 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14522 | _ACEOF |
| 14523 | |
| 14524 | fi |
| 14525 | done |
| 14526 | |
| 14527 | LIBS="$save_LIBS" |
| 14528 | fi |
| 14529 | |
| 14530 | fi |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | # Check whether user wants Kerberos 5 support |
| 14536 | KRB5_MSG="no" |
| 14537 | |
| 14538 | # Check whether --with-kerberos5 was given. |
| 14539 | if test "${with_kerberos5+set}" = set; then : |
| 14540 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then |
| 14541 | if test "x$withval" = "xyes" ; then |
| 14542 | KRB5ROOT="/usr/local" |
| 14543 | else |
| 14544 | KRB5ROOT=${withval} |
| 14545 | fi |
| 14546 | |
| 14547 | |
| 14548 | $as_echo "#define KRB5 1" >>confdefs.h |
| 14549 | |
| 14550 | KRB5_MSG="yes" |
| 14551 | |
| 14552 | # Extract the first word of "krb5-config", so it can be a program name with args. |
| 14553 | set dummy krb5-config; ac_word=$2 |
| 14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14555 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14556 | if ${ac_cv_path_KRB5CONF+:} false; then : |
| 14557 | $as_echo_n "(cached) " >&6 |
| 14558 | else |
| 14559 | case $KRB5CONF in |
| 14560 | [\\/]* | ?:[\\/]*) |
| 14561 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. |
| 14562 | ;; |
| 14563 | *) |
| 14564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14565 | as_dummy="$KRB5ROOT/bin:$PATH" |
| 14566 | for as_dir in $as_dummy |
| 14567 | do |
| 14568 | IFS=$as_save_IFS |
| 14569 | test -z "$as_dir" && as_dir=. |
| 14570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14572 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" |
| 14573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14574 | break 2 |
| 14575 | fi |
| 14576 | done |
| 14577 | done |
| 14578 | IFS=$as_save_IFS |
| 14579 | |
| 14580 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" |
| 14581 | ;; |
| 14582 | esac |
| 14583 | fi |
| 14584 | KRB5CONF=$ac_cv_path_KRB5CONF |
| 14585 | if test -n "$KRB5CONF"; then |
| 14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 |
| 14587 | $as_echo "$KRB5CONF" >&6; } |
| 14588 | else |
| 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14590 | $as_echo "no" >&6; } |
| 14591 | fi |
| 14592 | |
| 14593 | |
| 14594 | if test -x $KRB5CONF ; then |
| 14595 | |
| 14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 |
| 14597 | $as_echo_n "checking for gssapi support... " >&6; } |
| 14598 | if $KRB5CONF | grep gssapi >/dev/null ; then |
| 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14600 | $as_echo "yes" >&6; } |
| 14601 | |
| 14602 | $as_echo "#define GSSAPI 1" >>confdefs.h |
| 14603 | |
| 14604 | k5confopts=gssapi |
| 14605 | else |
| 14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14607 | $as_echo "no" >&6; } |
| 14608 | k5confopts="" |
| 14609 | fi |
| 14610 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" |
| 14611 | K5LIBS="`$KRB5CONF --libs $k5confopts`" |
| 14612 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" |
| 14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 14614 | $as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 14615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14616 | /* end confdefs.h. */ |
| 14617 | #include <krb5.h> |
| 14618 | |
| 14619 | int |
| 14620 | main () |
| 14621 | { |
| 14622 | char *tmp = heimdal_version; |
| 14623 | ; |
| 14624 | return 0; |
| 14625 | } |
| 14626 | _ACEOF |
| 14627 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14629 | $as_echo "yes" >&6; } |
| 14630 | |
| 14631 | $as_echo "#define HEIMDAL 1" >>confdefs.h |
| 14632 | |
| 14633 | else |
| 14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14635 | $as_echo "no" >&6; } |
| 14636 | |
| 14637 | fi |
| 14638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14639 | else |
| 14640 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" |
| 14641 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" |
| 14642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 14643 | $as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 14644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14645 | /* end confdefs.h. */ |
| 14646 | #include <krb5.h> |
| 14647 | |
| 14648 | int |
| 14649 | main () |
| 14650 | { |
| 14651 | char *tmp = heimdal_version; |
| 14652 | ; |
| 14653 | return 0; |
| 14654 | } |
| 14655 | _ACEOF |
| 14656 | if ac_fn_c_try_compile "$LINENO"; then : |
| 14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14658 | $as_echo "yes" >&6; } |
| 14659 | $as_echo "#define HEIMDAL 1" >>confdefs.h |
| 14660 | |
| 14661 | K5LIBS="-lkrb5" |
| 14662 | K5LIBS="$K5LIBS -lcom_err -lasn1" |
| 14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 |
| 14664 | $as_echo_n "checking for net_write in -lroken... " >&6; } |
| 14665 | if ${ac_cv_lib_roken_net_write+:} false; then : |
| 14666 | $as_echo_n "(cached) " >&6 |
| 14667 | else |
| 14668 | ac_check_lib_save_LIBS=$LIBS |
| 14669 | LIBS="-lroken $LIBS" |
| 14670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14671 | /* end confdefs.h. */ |
| 14672 | |
| 14673 | /* Override any GCC internal prototype to avoid an error. |
| 14674 | Use char because int might match the return type of a GCC |
| 14675 | builtin and then its argument prototype would still apply. */ |
| 14676 | #ifdef __cplusplus |
| 14677 | extern "C" |
| 14678 | #endif |
| 14679 | char net_write (); |
| 14680 | int |
| 14681 | main () |
| 14682 | { |
| 14683 | return net_write (); |
| 14684 | ; |
| 14685 | return 0; |
| 14686 | } |
| 14687 | _ACEOF |
| 14688 | if ac_fn_c_try_link "$LINENO"; then : |
| 14689 | ac_cv_lib_roken_net_write=yes |
| 14690 | else |
| 14691 | ac_cv_lib_roken_net_write=no |
| 14692 | fi |
| 14693 | rm -f core conftest.err conftest.$ac_objext \ |
| 14694 | conftest$ac_exeext conftest.$ac_ext |
| 14695 | LIBS=$ac_check_lib_save_LIBS |
| 14696 | fi |
| 14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 |
| 14698 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } |
| 14699 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : |
| 14700 | K5LIBS="$K5LIBS -lroken" |
| 14701 | fi |
| 14702 | |
| 14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
| 14704 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
| 14705 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : |
| 14706 | $as_echo_n "(cached) " >&6 |
| 14707 | else |
| 14708 | ac_check_lib_save_LIBS=$LIBS |
| 14709 | LIBS="-ldes $LIBS" |
| 14710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14711 | /* end confdefs.h. */ |
| 14712 | |
| 14713 | /* Override any GCC internal prototype to avoid an error. |
| 14714 | Use char because int might match the return type of a GCC |
| 14715 | builtin and then its argument prototype would still apply. */ |
| 14716 | #ifdef __cplusplus |
| 14717 | extern "C" |
| 14718 | #endif |
| 14719 | char des_cbc_encrypt (); |
| 14720 | int |
| 14721 | main () |
| 14722 | { |
| 14723 | return des_cbc_encrypt (); |
| 14724 | ; |
| 14725 | return 0; |
| 14726 | } |
| 14727 | _ACEOF |
| 14728 | if ac_fn_c_try_link "$LINENO"; then : |
| 14729 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 14730 | else |
| 14731 | ac_cv_lib_des_des_cbc_encrypt=no |
| 14732 | fi |
| 14733 | rm -f core conftest.err conftest.$ac_objext \ |
| 14734 | conftest$ac_exeext conftest.$ac_ext |
| 14735 | LIBS=$ac_check_lib_save_LIBS |
| 14736 | fi |
| 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 14738 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
| 14739 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : |
| 14740 | K5LIBS="$K5LIBS -ldes" |
| 14741 | fi |
| 14742 | |
| 14743 | |
| 14744 | else |
| 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14746 | $as_echo "no" >&6; } |
| 14747 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" |
| 14748 | |
| 14749 | |
| 14750 | fi |
| 14751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 14753 | $as_echo_n "checking for library containing dn_expand... " >&6; } |
| 14754 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14755 | $as_echo_n "(cached) " >&6 |
| 14756 | else |
| 14757 | ac_func_search_save_LIBS=$LIBS |
| 14758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14759 | /* end confdefs.h. */ |
| 14760 | |
| 14761 | /* Override any GCC internal prototype to avoid an error. |
| 14762 | Use char because int might match the return type of a GCC |
| 14763 | builtin and then its argument prototype would still apply. */ |
| 14764 | #ifdef __cplusplus |
| 14765 | extern "C" |
| 14766 | #endif |
| 14767 | char dn_expand (); |
| 14768 | int |
| 14769 | main () |
| 14770 | { |
| 14771 | return dn_expand (); |
| 14772 | ; |
| 14773 | return 0; |
| 14774 | } |
| 14775 | _ACEOF |
| 14776 | for ac_lib in '' resolv; do |
| 14777 | if test -z "$ac_lib"; then |
| 14778 | ac_res="none required" |
| 14779 | else |
| 14780 | ac_res=-l$ac_lib |
| 14781 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14782 | fi |
| 14783 | if ac_fn_c_try_link "$LINENO"; then : |
| 14784 | ac_cv_search_dn_expand=$ac_res |
| 14785 | fi |
| 14786 | rm -f core conftest.err conftest.$ac_objext \ |
| 14787 | conftest$ac_exeext |
| 14788 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14789 | break |
| 14790 | fi |
| 14791 | done |
| 14792 | if ${ac_cv_search_dn_expand+:} false; then : |
| 14793 | |
| 14794 | else |
| 14795 | ac_cv_search_dn_expand=no |
| 14796 | fi |
| 14797 | rm conftest.$ac_ext |
| 14798 | LIBS=$ac_func_search_save_LIBS |
| 14799 | fi |
| 14800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 14801 | $as_echo "$ac_cv_search_dn_expand" >&6; } |
| 14802 | ac_res=$ac_cv_search_dn_expand |
| 14803 | if test "$ac_res" != no; then : |
| 14804 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14805 | |
| 14806 | fi |
| 14807 | |
| 14808 | |
| 14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 |
| 14810 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } |
| 14811 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : |
| 14812 | $as_echo_n "(cached) " >&6 |
| 14813 | else |
| 14814 | ac_check_lib_save_LIBS=$LIBS |
| 14815 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" |
| 14816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14817 | /* end confdefs.h. */ |
| 14818 | |
| 14819 | /* Override any GCC internal prototype to avoid an error. |
| 14820 | Use char because int might match the return type of a GCC |
| 14821 | builtin and then its argument prototype would still apply. */ |
| 14822 | #ifdef __cplusplus |
| 14823 | extern "C" |
| 14824 | #endif |
| 14825 | char gss_init_sec_context (); |
| 14826 | int |
| 14827 | main () |
| 14828 | { |
| 14829 | return gss_init_sec_context (); |
| 14830 | ; |
| 14831 | return 0; |
| 14832 | } |
| 14833 | _ACEOF |
| 14834 | if ac_fn_c_try_link "$LINENO"; then : |
| 14835 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes |
| 14836 | else |
| 14837 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no |
| 14838 | fi |
| 14839 | rm -f core conftest.err conftest.$ac_objext \ |
| 14840 | conftest$ac_exeext conftest.$ac_ext |
| 14841 | LIBS=$ac_check_lib_save_LIBS |
| 14842 | fi |
| 14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 |
| 14844 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } |
| 14845 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : |
| 14846 | $as_echo "#define GSSAPI 1" >>confdefs.h |
| 14847 | |
| 14848 | K5LIBS="-lgssapi_krb5 $K5LIBS" |
| 14849 | else |
| 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 |
| 14851 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } |
| 14852 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : |
| 14853 | $as_echo_n "(cached) " >&6 |
| 14854 | else |
| 14855 | ac_check_lib_save_LIBS=$LIBS |
| 14856 | LIBS="-lgssapi $K5LIBS $LIBS" |
| 14857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14858 | /* end confdefs.h. */ |
| 14859 | |
| 14860 | /* Override any GCC internal prototype to avoid an error. |
| 14861 | Use char because int might match the return type of a GCC |
| 14862 | builtin and then its argument prototype would still apply. */ |
| 14863 | #ifdef __cplusplus |
| 14864 | extern "C" |
| 14865 | #endif |
| 14866 | char gss_init_sec_context (); |
| 14867 | int |
| 14868 | main () |
| 14869 | { |
| 14870 | return gss_init_sec_context (); |
| 14871 | ; |
| 14872 | return 0; |
| 14873 | } |
| 14874 | _ACEOF |
| 14875 | if ac_fn_c_try_link "$LINENO"; then : |
| 14876 | ac_cv_lib_gssapi_gss_init_sec_context=yes |
| 14877 | else |
| 14878 | ac_cv_lib_gssapi_gss_init_sec_context=no |
| 14879 | fi |
| 14880 | rm -f core conftest.err conftest.$ac_objext \ |
| 14881 | conftest$ac_exeext conftest.$ac_ext |
| 14882 | LIBS=$ac_check_lib_save_LIBS |
| 14883 | fi |
| 14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 |
| 14885 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } |
| 14886 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : |
| 14887 | $as_echo "#define GSSAPI 1" >>confdefs.h |
| 14888 | |
| 14889 | K5LIBS="-lgssapi $K5LIBS" |
| 14890 | else |
| 14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 |
| 14892 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} |
| 14893 | fi |
| 14894 | |
| 14895 | |
| 14896 | fi |
| 14897 | |
| 14898 | |
| 14899 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 14900 | if test "x$ac_cv_header_gssapi_h" = xyes; then : |
| 14901 | |
| 14902 | else |
| 14903 | unset ac_cv_header_gssapi_h |
| 14904 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
| 14905 | for ac_header in gssapi.h |
| 14906 | do : |
| 14907 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 14908 | if test "x$ac_cv_header_gssapi_h" = xyes; then : |
| 14909 | cat >>confdefs.h <<_ACEOF |
| 14910 | #define HAVE_GSSAPI_H 1 |
| 14911 | _ACEOF |
| 14912 | |
| 14913 | else |
| 14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 |
| 14915 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} |
| 14916 | |
| 14917 | fi |
| 14918 | |
| 14919 | done |
| 14920 | |
| 14921 | |
| 14922 | |
| 14923 | fi |
| 14924 | |
| 14925 | |
| 14926 | |
| 14927 | oldCPP="$CPPFLAGS" |
| 14928 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
| 14929 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" |
| 14930 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : |
| 14931 | |
| 14932 | else |
| 14933 | CPPFLAGS="$oldCPP" |
| 14934 | fi |
| 14935 | |
| 14936 | |
| 14937 | |
| 14938 | fi |
| 14939 | if test ! -z "$need_dash_r" ; then |
| 14940 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" |
| 14941 | fi |
| 14942 | if test ! -z "$blibpath" ; then |
| 14943 | blibpath="$blibpath:${KRB5ROOT}/lib" |
| 14944 | fi |
| 14945 | |
| 14946 | for ac_header in gssapi.h gssapi/gssapi.h |
| 14947 | do : |
| 14948 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14949 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 14950 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 14951 | cat >>confdefs.h <<_ACEOF |
| 14952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14953 | _ACEOF |
| 14954 | |
| 14955 | fi |
| 14956 | |
| 14957 | done |
| 14958 | |
| 14959 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h |
| 14960 | do : |
| 14961 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14962 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 14963 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 14964 | cat >>confdefs.h <<_ACEOF |
| 14965 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14966 | _ACEOF |
| 14967 | |
| 14968 | fi |
| 14969 | |
| 14970 | done |
| 14971 | |
| 14972 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h |
| 14973 | do : |
| 14974 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14975 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 14976 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 14977 | cat >>confdefs.h <<_ACEOF |
| 14978 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14979 | _ACEOF |
| 14980 | |
| 14981 | fi |
| 14982 | |
| 14983 | done |
| 14984 | |
| 14985 | |
| 14986 | LIBS="$LIBS $K5LIBS" |
| 14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 |
| 14988 | $as_echo_n "checking for library containing k_hasafs... " >&6; } |
| 14989 | if ${ac_cv_search_k_hasafs+:} false; then : |
| 14990 | $as_echo_n "(cached) " >&6 |
| 14991 | else |
| 14992 | ac_func_search_save_LIBS=$LIBS |
| 14993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14994 | /* end confdefs.h. */ |
| 14995 | |
| 14996 | /* Override any GCC internal prototype to avoid an error. |
| 14997 | Use char because int might match the return type of a GCC |
| 14998 | builtin and then its argument prototype would still apply. */ |
| 14999 | #ifdef __cplusplus |
| 15000 | extern "C" |
| 15001 | #endif |
| 15002 | char k_hasafs (); |
| 15003 | int |
| 15004 | main () |
| 15005 | { |
| 15006 | return k_hasafs (); |
| 15007 | ; |
| 15008 | return 0; |
| 15009 | } |
| 15010 | _ACEOF |
| 15011 | for ac_lib in '' kafs; do |
| 15012 | if test -z "$ac_lib"; then |
| 15013 | ac_res="none required" |
| 15014 | else |
| 15015 | ac_res=-l$ac_lib |
| 15016 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 15017 | fi |
| 15018 | if ac_fn_c_try_link "$LINENO"; then : |
| 15019 | ac_cv_search_k_hasafs=$ac_res |
| 15020 | fi |
| 15021 | rm -f core conftest.err conftest.$ac_objext \ |
| 15022 | conftest$ac_exeext |
| 15023 | if ${ac_cv_search_k_hasafs+:} false; then : |
| 15024 | break |
| 15025 | fi |
| 15026 | done |
| 15027 | if ${ac_cv_search_k_hasafs+:} false; then : |
| 15028 | |
| 15029 | else |
| 15030 | ac_cv_search_k_hasafs=no |
| 15031 | fi |
| 15032 | rm conftest.$ac_ext |
| 15033 | LIBS=$ac_func_search_save_LIBS |
| 15034 | fi |
| 15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 |
| 15036 | $as_echo "$ac_cv_search_k_hasafs" >&6; } |
| 15037 | ac_res=$ac_cv_search_k_hasafs |
| 15038 | if test "$ac_res" != no; then : |
| 15039 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15040 | |
| 15041 | $as_echo "#define USE_AFS 1" >>confdefs.h |
| 15042 | |
| 15043 | fi |
| 15044 | |
| 15045 | fi |
| 15046 | |
| 15047 | |
| 15048 | fi |
| 15049 | |
| 15050 | |
| 15051 | # Looking for programs, paths and files |
| 15052 | |
| 15053 | PRIVSEP_PATH=/var/empty |
| 15054 | |
| 15055 | # Check whether --with-privsep-path was given. |
| 15056 | if test "${with_privsep_path+set}" = set; then : |
| 15057 | withval=$with_privsep_path; |
| 15058 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 15059 | test "x${withval}" != "xyes"; then |
| 15060 | PRIVSEP_PATH=$withval |
| 15061 | fi |
| 15062 | |
| 15063 | |
| 15064 | fi |
| 15065 | |
| 15066 | |
| 15067 | |
| 15068 | |
| 15069 | # Check whether --with-xauth was given. |
| 15070 | if test "${with_xauth+set}" = set; then : |
| 15071 | withval=$with_xauth; |
| 15072 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 15073 | test "x${withval}" != "xyes"; then |
| 15074 | xauth_path=$withval |
| 15075 | fi |
| 15076 | |
| 15077 | else |
| 15078 | |
| 15079 | TestPath="$PATH" |
| 15080 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" |
| 15081 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" |
| 15082 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" |
| 15083 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" |
| 15084 | # Extract the first word of "xauth", so it can be a program name with args. |
| 15085 | set dummy xauth; ac_word=$2 |
| 15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15087 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15088 | if ${ac_cv_path_xauth_path+:} false; then : |
| 15089 | $as_echo_n "(cached) " >&6 |
| 15090 | else |
| 15091 | case $xauth_path in |
| 15092 | [\\/]* | ?:[\\/]*) |
| 15093 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. |
| 15094 | ;; |
| 15095 | *) |
| 15096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15097 | for as_dir in $TestPath |
| 15098 | do |
| 15099 | IFS=$as_save_IFS |
| 15100 | test -z "$as_dir" && as_dir=. |
| 15101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15103 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" |
| 15104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15105 | break 2 |
| 15106 | fi |
| 15107 | done |
| 15108 | done |
| 15109 | IFS=$as_save_IFS |
| 15110 | |
| 15111 | ;; |
| 15112 | esac |
| 15113 | fi |
| 15114 | xauth_path=$ac_cv_path_xauth_path |
| 15115 | if test -n "$xauth_path"; then |
| 15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 |
| 15117 | $as_echo "$xauth_path" >&6; } |
| 15118 | else |
| 15119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15120 | $as_echo "no" >&6; } |
| 15121 | fi |
| 15122 | |
| 15123 | |
| 15124 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then |
| 15125 | xauth_path="/usr/openwin/bin/xauth" |
| 15126 | fi |
| 15127 | |
| 15128 | |
| 15129 | fi |
| 15130 | |
| 15131 | |
| 15132 | STRIP_OPT=-s |
| 15133 | # Check whether --enable-strip was given. |
| 15134 | if test "${enable_strip+set}" = set; then : |
| 15135 | enableval=$enable_strip; |
| 15136 | if test "x$enableval" = "xno" ; then |
| 15137 | STRIP_OPT= |
| 15138 | fi |
| 15139 | |
| 15140 | |
| 15141 | fi |
| 15142 | |
| 15143 | |
| 15144 | |
| 15145 | if test -z "$xauth_path" ; then |
| 15146 | XAUTH_PATH="undefined" |
| 15147 | |
| 15148 | else |
| 15149 | |
| 15150 | cat >>confdefs.h <<_ACEOF |
| 15151 | #define XAUTH_PATH "$xauth_path" |
| 15152 | _ACEOF |
| 15153 | |
| 15154 | XAUTH_PATH=$xauth_path |
| 15155 | |
| 15156 | fi |
| 15157 | |
| 15158 | # Check for mail directory |
| 15159 | |
| 15160 | # Check whether --with-maildir was given. |
| 15161 | if test "${with_maildir+set}" = set; then : |
| 15162 | withval=$with_maildir; |
| 15163 | if test "X$withval" != X && test "x$withval" != xno && \ |
| 15164 | test "x${withval}" != xyes; then |
| 15165 | |
| 15166 | cat >>confdefs.h <<_ACEOF |
| 15167 | #define MAIL_DIRECTORY "$withval" |
| 15168 | _ACEOF |
| 15169 | |
| 15170 | fi |
| 15171 | |
| 15172 | else |
| 15173 | |
| 15174 | if test "X$maildir" != "X"; then |
| 15175 | cat >>confdefs.h <<_ACEOF |
| 15176 | #define MAIL_DIRECTORY "$maildir" |
| 15177 | _ACEOF |
| 15178 | |
| 15179 | else |
| 15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 |
| 15181 | $as_echo_n "checking Discovering system mail directory... " >&6; } |
| 15182 | if test "$cross_compiling" = yes; then : |
| 15183 | |
| 15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 |
| 15185 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} |
| 15186 | |
| 15187 | |
| 15188 | else |
| 15189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15190 | /* end confdefs.h. */ |
| 15191 | |
| 15192 | #include <stdio.h> |
| 15193 | #include <string.h> |
| 15194 | #ifdef HAVE_PATHS_H |
| 15195 | #include <paths.h> |
| 15196 | #endif |
| 15197 | #ifdef HAVE_MAILLOCK_H |
| 15198 | #include <maillock.h> |
| 15199 | #endif |
| 15200 | #define DATA "conftest.maildir" |
| 15201 | |
| 15202 | int |
| 15203 | main () |
| 15204 | { |
| 15205 | |
| 15206 | FILE *fd; |
| 15207 | int rc; |
| 15208 | |
| 15209 | fd = fopen(DATA,"w"); |
| 15210 | if(fd == NULL) |
| 15211 | exit(1); |
| 15212 | |
| 15213 | #if defined (_PATH_MAILDIR) |
| 15214 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) |
| 15215 | exit(1); |
| 15216 | #elif defined (MAILDIR) |
| 15217 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) |
| 15218 | exit(1); |
| 15219 | #elif defined (_PATH_MAIL) |
| 15220 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) |
| 15221 | exit(1); |
| 15222 | #else |
| 15223 | exit (2); |
| 15224 | #endif |
| 15225 | |
| 15226 | exit(0); |
| 15227 | |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
| 15231 | _ACEOF |
| 15232 | if ac_fn_c_try_run "$LINENO"; then : |
| 15233 | |
| 15234 | maildir_what=`awk -F: '{print $1}' conftest.maildir` |
| 15235 | maildir=`awk -F: '{print $2}' conftest.maildir \ |
| 15236 | | sed 's|/$||'` |
| 15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 |
| 15238 | $as_echo "Using: $maildir from $maildir_what" >&6; } |
| 15239 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then |
| 15240 | cat >>confdefs.h <<_ACEOF |
| 15241 | #define MAIL_DIRECTORY "$maildir" |
| 15242 | _ACEOF |
| 15243 | |
| 15244 | fi |
| 15245 | |
| 15246 | else |
| 15247 | |
| 15248 | if test "X$ac_status" = "X2";then |
| 15249 | # our test program didn't find it. Default to /var/spool/mail |
| 15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 |
| 15251 | $as_echo "Using: default value of /var/spool/mail" >&6; } |
| 15252 | cat >>confdefs.h <<_ACEOF |
| 15253 | #define MAIL_DIRECTORY "/var/spool/mail" |
| 15254 | _ACEOF |
| 15255 | |
| 15256 | else |
| 15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 |
| 15258 | $as_echo "*** not found ***" >&6; } |
| 15259 | fi |
| 15260 | |
| 15261 | fi |
| 15262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15263 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15264 | fi |
| 15265 | |
| 15266 | fi |
| 15267 | |
| 15268 | |
| 15269 | fi |
| 15270 | # maildir |
| 15271 | |
| 15272 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then |
| 15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 |
| 15274 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} |
| 15275 | disable_ptmx_check=yes |
| 15276 | fi |
| 15277 | if test -z "$no_dev_ptmx" ; then |
| 15278 | if test "x$disable_ptmx_check" != "xyes" ; then |
| 15279 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` |
| 15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 |
| 15281 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } |
| 15282 | if eval \${$as_ac_File+:} false; then : |
| 15283 | $as_echo_n "(cached) " >&6 |
| 15284 | else |
| 15285 | test "$cross_compiling" = yes && |
| 15286 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15287 | if test -r ""/dev/ptmx""; then |
| 15288 | eval "$as_ac_File=yes" |
| 15289 | else |
| 15290 | eval "$as_ac_File=no" |
| 15291 | fi |
| 15292 | fi |
| 15293 | eval ac_res=\$$as_ac_File |
| 15294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15295 | $as_echo "$ac_res" >&6; } |
| 15296 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 15297 | |
| 15298 | |
| 15299 | cat >>confdefs.h <<_ACEOF |
| 15300 | #define HAVE_DEV_PTMX 1 |
| 15301 | _ACEOF |
| 15302 | |
| 15303 | have_dev_ptmx=1 |
| 15304 | |
| 15305 | |
| 15306 | fi |
| 15307 | |
| 15308 | fi |
| 15309 | fi |
| 15310 | |
| 15311 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then |
| 15312 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` |
| 15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 |
| 15314 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } |
| 15315 | if eval \${$as_ac_File+:} false; then : |
| 15316 | $as_echo_n "(cached) " >&6 |
| 15317 | else |
| 15318 | test "$cross_compiling" = yes && |
| 15319 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15320 | if test -r ""/dev/ptc""; then |
| 15321 | eval "$as_ac_File=yes" |
| 15322 | else |
| 15323 | eval "$as_ac_File=no" |
| 15324 | fi |
| 15325 | fi |
| 15326 | eval ac_res=\$$as_ac_File |
| 15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15328 | $as_echo "$ac_res" >&6; } |
| 15329 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 15330 | |
| 15331 | |
| 15332 | cat >>confdefs.h <<_ACEOF |
| 15333 | #define HAVE_DEV_PTS_AND_PTC 1 |
| 15334 | _ACEOF |
| 15335 | |
| 15336 | have_dev_ptc=1 |
| 15337 | |
| 15338 | |
| 15339 | fi |
| 15340 | |
| 15341 | else |
| 15342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 |
| 15343 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} |
| 15344 | fi |
| 15345 | |
| 15346 | # Options from here on. Some of these are preset by platform above |
| 15347 | |
| 15348 | # Check whether --with-mantype was given. |
| 15349 | if test "${with_mantype+set}" = set; then : |
| 15350 | withval=$with_mantype; |
| 15351 | case "$withval" in |
| 15352 | man|cat|doc) |
| 15353 | MANTYPE=$withval |
| 15354 | ;; |
| 15355 | *) |
| 15356 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 |
| 15357 | ;; |
| 15358 | esac |
| 15359 | |
| 15360 | |
| 15361 | fi |
| 15362 | |
| 15363 | if test -z "$MANTYPE"; then |
| 15364 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" |
| 15365 | for ac_prog in nroff awf |
| 15366 | do |
| 15367 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15368 | set dummy $ac_prog; ac_word=$2 |
| 15369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15370 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15371 | if ${ac_cv_path_NROFF+:} false; then : |
| 15372 | $as_echo_n "(cached) " >&6 |
| 15373 | else |
| 15374 | case $NROFF in |
| 15375 | [\\/]* | ?:[\\/]*) |
| 15376 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 15377 | ;; |
| 15378 | *) |
| 15379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15380 | for as_dir in $TestPath |
| 15381 | do |
| 15382 | IFS=$as_save_IFS |
| 15383 | test -z "$as_dir" && as_dir=. |
| 15384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15386 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
| 15387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15388 | break 2 |
| 15389 | fi |
| 15390 | done |
| 15391 | done |
| 15392 | IFS=$as_save_IFS |
| 15393 | |
| 15394 | ;; |
| 15395 | esac |
| 15396 | fi |
| 15397 | NROFF=$ac_cv_path_NROFF |
| 15398 | if test -n "$NROFF"; then |
| 15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 15400 | $as_echo "$NROFF" >&6; } |
| 15401 | else |
| 15402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15403 | $as_echo "no" >&6; } |
| 15404 | fi |
| 15405 | |
| 15406 | |
| 15407 | test -n "$NROFF" && break |
| 15408 | done |
| 15409 | test -n "$NROFF" || NROFF="/bin/false" |
| 15410 | |
| 15411 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 15412 | MANTYPE=doc |
| 15413 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 15414 | MANTYPE=man |
| 15415 | else |
| 15416 | MANTYPE=cat |
| 15417 | fi |
| 15418 | fi |
| 15419 | |
| 15420 | if test "$MANTYPE" = "doc"; then |
| 15421 | mansubdir=man; |
| 15422 | else |
| 15423 | mansubdir=$MANTYPE; |
| 15424 | fi |
| 15425 | |
| 15426 | |
| 15427 | # Check whether to enable MD5 passwords |
| 15428 | MD5_MSG="no" |
| 15429 | |
| 15430 | # Check whether --with-md5-passwords was given. |
| 15431 | if test "${with_md5_passwords+set}" = set; then : |
| 15432 | withval=$with_md5_passwords; |
| 15433 | if test "x$withval" != "xno" ; then |
| 15434 | |
| 15435 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h |
| 15436 | |
| 15437 | MD5_MSG="yes" |
| 15438 | fi |
| 15439 | |
| 15440 | |
| 15441 | fi |
| 15442 | |
| 15443 | |
| 15444 | # Whether to disable shadow password support |
| 15445 | |
| 15446 | # Check whether --with-shadow was given. |
| 15447 | if test "${with_shadow+set}" = set; then : |
| 15448 | withval=$with_shadow; |
| 15449 | if test "x$withval" = "xno" ; then |
| 15450 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 15451 | |
| 15452 | disable_shadow=yes |
| 15453 | fi |
| 15454 | |
| 15455 | |
| 15456 | fi |
| 15457 | |
| 15458 | |
| 15459 | if test -z "$disable_shadow" ; then |
| 15460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 |
| 15461 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } |
| 15462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15463 | /* end confdefs.h. */ |
| 15464 | |
| 15465 | #include <sys/types.h> |
| 15466 | #include <shadow.h> |
| 15467 | struct spwd sp; |
| 15468 | |
| 15469 | int |
| 15470 | main () |
| 15471 | { |
| 15472 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; |
| 15473 | ; |
| 15474 | return 0; |
| 15475 | } |
| 15476 | _ACEOF |
| 15477 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15478 | sp_expire_available=yes |
| 15479 | fi |
| 15480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15481 | |
| 15482 | if test "x$sp_expire_available" = "xyes" ; then |
| 15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15484 | $as_echo "yes" >&6; } |
| 15485 | |
| 15486 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h |
| 15487 | |
| 15488 | else |
| 15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15490 | $as_echo "no" >&6; } |
| 15491 | fi |
| 15492 | fi |
| 15493 | |
| 15494 | # Use ip address instead of hostname in $DISPLAY |
| 15495 | if test ! -z "$IPADDR_IN_DISPLAY" ; then |
| 15496 | DISPLAY_HACK_MSG="yes" |
| 15497 | |
| 15498 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
| 15499 | |
| 15500 | else |
| 15501 | DISPLAY_HACK_MSG="no" |
| 15502 | |
| 15503 | # Check whether --with-ipaddr-display was given. |
| 15504 | if test "${with_ipaddr_display+set}" = set; then : |
| 15505 | withval=$with_ipaddr_display; |
| 15506 | if test "x$withval" != "xno" ; then |
| 15507 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
| 15508 | |
| 15509 | DISPLAY_HACK_MSG="yes" |
| 15510 | fi |
| 15511 | |
| 15512 | |
| 15513 | fi |
| 15514 | |
| 15515 | fi |
| 15516 | |
| 15517 | # check for /etc/default/login and use it if present. |
| 15518 | # Check whether --enable-etc-default-login was given. |
| 15519 | if test "${enable_etc_default_login+set}" = set; then : |
| 15520 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then |
| 15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 |
| 15522 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} |
| 15523 | etc_default_login=no |
| 15524 | else |
| 15525 | etc_default_login=yes |
| 15526 | fi |
| 15527 | else |
| 15528 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; |
| 15529 | then |
| 15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 |
| 15531 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} |
| 15532 | etc_default_login=no |
| 15533 | else |
| 15534 | etc_default_login=yes |
| 15535 | fi |
| 15536 | |
| 15537 | fi |
| 15538 | |
| 15539 | |
| 15540 | if test "x$etc_default_login" != "xno"; then |
| 15541 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` |
| 15542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 |
| 15543 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } |
| 15544 | if eval \${$as_ac_File+:} false; then : |
| 15545 | $as_echo_n "(cached) " >&6 |
| 15546 | else |
| 15547 | test "$cross_compiling" = yes && |
| 15548 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 15549 | if test -r ""/etc/default/login""; then |
| 15550 | eval "$as_ac_File=yes" |
| 15551 | else |
| 15552 | eval "$as_ac_File=no" |
| 15553 | fi |
| 15554 | fi |
| 15555 | eval ac_res=\$$as_ac_File |
| 15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15557 | $as_echo "$ac_res" >&6; } |
| 15558 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 15559 | external_path_file=/etc/default/login |
| 15560 | fi |
| 15561 | |
| 15562 | if test "x$external_path_file" = "x/etc/default/login"; then |
| 15563 | |
| 15564 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h |
| 15565 | |
| 15566 | fi |
| 15567 | fi |
| 15568 | |
| 15569 | if test $ac_cv_func_login_getcapbool = "yes" && \ |
| 15570 | test $ac_cv_header_login_cap_h = "yes" ; then |
| 15571 | external_path_file=/etc/login.conf |
| 15572 | fi |
| 15573 | |
| 15574 | # Whether to mess with the default path |
| 15575 | SERVER_PATH_MSG="(default)" |
| 15576 | |
| 15577 | # Check whether --with-default-path was given. |
| 15578 | if test "${with_default_path+set}" = set; then : |
| 15579 | withval=$with_default_path; |
| 15580 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 15581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 15582 | --with-default-path=PATH has no effect on this system. |
| 15583 | Edit /etc/login.conf instead." >&5 |
| 15584 | $as_echo "$as_me: WARNING: |
| 15585 | --with-default-path=PATH has no effect on this system. |
| 15586 | Edit /etc/login.conf instead." >&2;} |
| 15587 | elif test "x$withval" != "xno" ; then |
| 15588 | if test ! -z "$external_path_file" ; then |
| 15589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 15590 | --with-default-path=PATH will only be used if PATH is not defined in |
| 15591 | $external_path_file ." >&5 |
| 15592 | $as_echo "$as_me: WARNING: |
| 15593 | --with-default-path=PATH will only be used if PATH is not defined in |
| 15594 | $external_path_file ." >&2;} |
| 15595 | fi |
| 15596 | user_path="$withval" |
| 15597 | SERVER_PATH_MSG="$withval" |
| 15598 | fi |
| 15599 | |
| 15600 | else |
| 15601 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 15602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 |
| 15603 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} |
| 15604 | else |
| 15605 | if test ! -z "$external_path_file" ; then |
| 15606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 15607 | If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 15608 | otherwise scp will not work." >&5 |
| 15609 | $as_echo "$as_me: WARNING: |
| 15610 | If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 15611 | otherwise scp will not work." >&2;} |
| 15612 | fi |
| 15613 | if test "$cross_compiling" = yes; then : |
| 15614 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
| 15615 | |
| 15616 | else |
| 15617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15618 | /* end confdefs.h. */ |
| 15619 | |
| 15620 | /* find out what STDPATH is */ |
| 15621 | #include <stdio.h> |
| 15622 | #ifdef HAVE_PATHS_H |
| 15623 | # include <paths.h> |
| 15624 | #endif |
| 15625 | #ifndef _PATH_STDPATH |
| 15626 | # ifdef _PATH_USERPATH /* Irix */ |
| 15627 | # define _PATH_STDPATH _PATH_USERPATH |
| 15628 | # else |
| 15629 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" |
| 15630 | # endif |
| 15631 | #endif |
| 15632 | #include <sys/types.h> |
| 15633 | #include <sys/stat.h> |
| 15634 | #include <fcntl.h> |
| 15635 | #define DATA "conftest.stdpath" |
| 15636 | |
| 15637 | int |
| 15638 | main () |
| 15639 | { |
| 15640 | |
| 15641 | FILE *fd; |
| 15642 | int rc; |
| 15643 | |
| 15644 | fd = fopen(DATA,"w"); |
| 15645 | if(fd == NULL) |
| 15646 | exit(1); |
| 15647 | |
| 15648 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) |
| 15649 | exit(1); |
| 15650 | |
| 15651 | exit(0); |
| 15652 | |
| 15653 | ; |
| 15654 | return 0; |
| 15655 | } |
| 15656 | _ACEOF |
| 15657 | if ac_fn_c_try_run "$LINENO"; then : |
| 15658 | user_path=`cat conftest.stdpath` |
| 15659 | else |
| 15660 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
| 15661 | fi |
| 15662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15663 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15664 | fi |
| 15665 | |
| 15666 | # make sure $bindir is in USER_PATH so scp will work |
| 15667 | t_bindir=`eval echo ${bindir}` |
| 15668 | case $t_bindir in |
| 15669 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; |
| 15670 | esac |
| 15671 | case $t_bindir in |
| 15672 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 15673 | esac |
| 15674 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 |
| 15675 | if test $? -ne 0 ; then |
| 15676 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 |
| 15677 | if test $? -ne 0 ; then |
| 15678 | user_path=$user_path:$t_bindir |
| 15679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 |
| 15680 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } |
| 15681 | fi |
| 15682 | fi |
| 15683 | fi |
| 15684 | |
| 15685 | fi |
| 15686 | |
| 15687 | if test "x$external_path_file" != "x/etc/login.conf" ; then |
| 15688 | |
| 15689 | cat >>confdefs.h <<_ACEOF |
| 15690 | #define USER_PATH "$user_path" |
| 15691 | _ACEOF |
| 15692 | |
| 15693 | |
| 15694 | fi |
| 15695 | |
| 15696 | # Set superuser path separately to user path |
| 15697 | |
| 15698 | # Check whether --with-superuser-path was given. |
| 15699 | if test "${with_superuser_path+set}" = set; then : |
| 15700 | withval=$with_superuser_path; |
| 15701 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 15702 | test "x${withval}" != "xyes"; then |
| 15703 | |
| 15704 | cat >>confdefs.h <<_ACEOF |
| 15705 | #define SUPERUSER_PATH "$withval" |
| 15706 | _ACEOF |
| 15707 | |
| 15708 | superuser_path=$withval |
| 15709 | fi |
| 15710 | |
| 15711 | |
| 15712 | fi |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 |
| 15717 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } |
| 15718 | IPV4_IN6_HACK_MSG="no" |
| 15719 | |
| 15720 | # Check whether --with-4in6 was given. |
| 15721 | if test "${with_4in6+set}" = set; then : |
| 15722 | withval=$with_4in6; |
| 15723 | if test "x$withval" != "xno" ; then |
| 15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15725 | $as_echo "yes" >&6; } |
| 15726 | |
| 15727 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
| 15728 | |
| 15729 | IPV4_IN6_HACK_MSG="yes" |
| 15730 | else |
| 15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15732 | $as_echo "no" >&6; } |
| 15733 | fi |
| 15734 | |
| 15735 | else |
| 15736 | |
| 15737 | if test "x$inet6_default_4in6" = "xyes"; then |
| 15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 |
| 15739 | $as_echo "yes (default)" >&6; } |
| 15740 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
| 15741 | |
| 15742 | IPV4_IN6_HACK_MSG="yes" |
| 15743 | else |
| 15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 15745 | $as_echo "no (default)" >&6; } |
| 15746 | fi |
| 15747 | |
| 15748 | |
| 15749 | fi |
| 15750 | |
| 15751 | |
| 15752 | # Whether to enable BSD auth support |
| 15753 | BSD_AUTH_MSG=no |
| 15754 | |
| 15755 | # Check whether --with-bsd-auth was given. |
| 15756 | if test "${with_bsd_auth+set}" = set; then : |
| 15757 | withval=$with_bsd_auth; |
| 15758 | if test "x$withval" != "xno" ; then |
| 15759 | |
| 15760 | $as_echo "#define BSD_AUTH 1" >>confdefs.h |
| 15761 | |
| 15762 | BSD_AUTH_MSG=yes |
| 15763 | fi |
| 15764 | |
| 15765 | |
| 15766 | fi |
| 15767 | |
| 15768 | |
| 15769 | # Where to place sshd.pid |
| 15770 | piddir=/var/run |
| 15771 | # make sure the directory exists |
| 15772 | if test ! -d $piddir ; then |
| 15773 | piddir=`eval echo ${sysconfdir}` |
| 15774 | case $piddir in |
| 15775 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 15776 | esac |
| 15777 | fi |
| 15778 | |
| 15779 | |
| 15780 | # Check whether --with-pid-dir was given. |
| 15781 | if test "${with_pid_dir+set}" = set; then : |
| 15782 | withval=$with_pid_dir; |
| 15783 | if test -n "$withval" && test "x$withval" != "xno" && \ |
| 15784 | test "x${withval}" != "xyes"; then |
| 15785 | piddir=$withval |
| 15786 | if test ! -d $piddir ; then |
| 15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 |
| 15788 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} |
| 15789 | fi |
| 15790 | fi |
| 15791 | |
| 15792 | |
| 15793 | fi |
| 15794 | |
| 15795 | |
| 15796 | |
| 15797 | cat >>confdefs.h <<_ACEOF |
| 15798 | #define _PATH_SSH_PIDDIR "$piddir" |
| 15799 | _ACEOF |
| 15800 | |
| 15801 | |
| 15802 | |
| 15803 | # Check whether --enable-lastlog was given. |
| 15804 | if test "${enable_lastlog+set}" = set; then : |
| 15805 | enableval=$enable_lastlog; |
| 15806 | if test "x$enableval" = "xno" ; then |
| 15807 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 15808 | |
| 15809 | fi |
| 15810 | |
| 15811 | |
| 15812 | fi |
| 15813 | |
| 15814 | # Check whether --enable-utmp was given. |
| 15815 | if test "${enable_utmp+set}" = set; then : |
| 15816 | enableval=$enable_utmp; |
| 15817 | if test "x$enableval" = "xno" ; then |
| 15818 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 15819 | |
| 15820 | fi |
| 15821 | |
| 15822 | |
| 15823 | fi |
| 15824 | |
| 15825 | # Check whether --enable-utmpx was given. |
| 15826 | if test "${enable_utmpx+set}" = set; then : |
| 15827 | enableval=$enable_utmpx; |
| 15828 | if test "x$enableval" = "xno" ; then |
| 15829 | |
| 15830 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h |
| 15831 | |
| 15832 | fi |
| 15833 | |
| 15834 | |
| 15835 | fi |
| 15836 | |
| 15837 | # Check whether --enable-wtmp was given. |
| 15838 | if test "${enable_wtmp+set}" = set; then : |
| 15839 | enableval=$enable_wtmp; |
| 15840 | if test "x$enableval" = "xno" ; then |
| 15841 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 15842 | |
| 15843 | fi |
| 15844 | |
| 15845 | |
| 15846 | fi |
| 15847 | |
| 15848 | # Check whether --enable-wtmpx was given. |
| 15849 | if test "${enable_wtmpx+set}" = set; then : |
| 15850 | enableval=$enable_wtmpx; |
| 15851 | if test "x$enableval" = "xno" ; then |
| 15852 | |
| 15853 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
| 15854 | |
| 15855 | fi |
| 15856 | |
| 15857 | |
| 15858 | fi |
| 15859 | |
| 15860 | # Check whether --enable-libutil was given. |
| 15861 | if test "${enable_libutil+set}" = set; then : |
| 15862 | enableval=$enable_libutil; |
| 15863 | if test "x$enableval" = "xno" ; then |
| 15864 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
| 15865 | |
| 15866 | fi |
| 15867 | |
| 15868 | |
| 15869 | fi |
| 15870 | |
| 15871 | # Check whether --enable-pututline was given. |
| 15872 | if test "${enable_pututline+set}" = set; then : |
| 15873 | enableval=$enable_pututline; |
| 15874 | if test "x$enableval" = "xno" ; then |
| 15875 | |
| 15876 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h |
| 15877 | |
| 15878 | fi |
| 15879 | |
| 15880 | |
| 15881 | fi |
| 15882 | |
| 15883 | # Check whether --enable-pututxline was given. |
| 15884 | if test "${enable_pututxline+set}" = set; then : |
| 15885 | enableval=$enable_pututxline; |
| 15886 | if test "x$enableval" = "xno" ; then |
| 15887 | |
| 15888 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h |
| 15889 | |
| 15890 | fi |
| 15891 | |
| 15892 | |
| 15893 | fi |
| 15894 | |
| 15895 | |
| 15896 | # Check whether --with-lastlog was given. |
| 15897 | if test "${with_lastlog+set}" = set; then : |
| 15898 | withval=$with_lastlog; |
| 15899 | if test "x$withval" = "xno" ; then |
| 15900 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 15901 | |
| 15902 | elif test -n "$withval" && test "x${withval}" != "xyes"; then |
| 15903 | conf_lastlog_location=$withval |
| 15904 | fi |
| 15905 | |
| 15906 | |
| 15907 | fi |
| 15908 | |
| 15909 | |
| 15910 | |
| 15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 |
| 15912 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } |
| 15913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15914 | /* end confdefs.h. */ |
| 15915 | |
| 15916 | #include <sys/types.h> |
| 15917 | #include <utmp.h> |
| 15918 | #ifdef HAVE_LASTLOG_H |
| 15919 | # include <lastlog.h> |
| 15920 | #endif |
| 15921 | #ifdef HAVE_PATHS_H |
| 15922 | # include <paths.h> |
| 15923 | #endif |
| 15924 | #ifdef HAVE_LOGIN_H |
| 15925 | # include <login.h> |
| 15926 | #endif |
| 15927 | |
| 15928 | int |
| 15929 | main () |
| 15930 | { |
| 15931 | char *lastlog = LASTLOG_FILE; |
| 15932 | ; |
| 15933 | return 0; |
| 15934 | } |
| 15935 | _ACEOF |
| 15936 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15938 | $as_echo "yes" >&6; } |
| 15939 | else |
| 15940 | |
| 15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15942 | $as_echo "no" >&6; } |
| 15943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 |
| 15944 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } |
| 15945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15946 | /* end confdefs.h. */ |
| 15947 | |
| 15948 | #include <sys/types.h> |
| 15949 | #include <utmp.h> |
| 15950 | #ifdef HAVE_LASTLOG_H |
| 15951 | # include <lastlog.h> |
| 15952 | #endif |
| 15953 | #ifdef HAVE_PATHS_H |
| 15954 | # include <paths.h> |
| 15955 | #endif |
| 15956 | |
| 15957 | int |
| 15958 | main () |
| 15959 | { |
| 15960 | char *lastlog = _PATH_LASTLOG; |
| 15961 | ; |
| 15962 | return 0; |
| 15963 | } |
| 15964 | _ACEOF |
| 15965 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15967 | $as_echo "yes" >&6; } |
| 15968 | else |
| 15969 | |
| 15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15971 | $as_echo "no" >&6; } |
| 15972 | system_lastlog_path=no |
| 15973 | |
| 15974 | fi |
| 15975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15976 | |
| 15977 | fi |
| 15978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15979 | |
| 15980 | if test -z "$conf_lastlog_location"; then |
| 15981 | if test x"$system_lastlog_path" = x"no" ; then |
| 15982 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
| 15983 | if (test -d "$f" || test -f "$f") ; then |
| 15984 | conf_lastlog_location=$f |
| 15985 | fi |
| 15986 | done |
| 15987 | if test -z "$conf_lastlog_location"; then |
| 15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 |
| 15989 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} |
| 15990 | fi |
| 15991 | fi |
| 15992 | fi |
| 15993 | |
| 15994 | if test -n "$conf_lastlog_location"; then |
| 15995 | |
| 15996 | cat >>confdefs.h <<_ACEOF |
| 15997 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" |
| 15998 | _ACEOF |
| 15999 | |
| 16000 | fi |
| 16001 | |
| 16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 |
| 16003 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } |
| 16004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16005 | /* end confdefs.h. */ |
| 16006 | |
| 16007 | #include <sys/types.h> |
| 16008 | #include <utmp.h> |
| 16009 | #ifdef HAVE_PATHS_H |
| 16010 | # include <paths.h> |
| 16011 | #endif |
| 16012 | |
| 16013 | int |
| 16014 | main () |
| 16015 | { |
| 16016 | char *utmp = UTMP_FILE; |
| 16017 | ; |
| 16018 | return 0; |
| 16019 | } |
| 16020 | _ACEOF |
| 16021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16023 | $as_echo "yes" >&6; } |
| 16024 | else |
| 16025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16026 | $as_echo "no" >&6; } |
| 16027 | system_utmp_path=no |
| 16028 | |
| 16029 | fi |
| 16030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16031 | if test -z "$conf_utmp_location"; then |
| 16032 | if test x"$system_utmp_path" = x"no" ; then |
| 16033 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do |
| 16034 | if test -f $f ; then |
| 16035 | conf_utmp_location=$f |
| 16036 | fi |
| 16037 | done |
| 16038 | if test -z "$conf_utmp_location"; then |
| 16039 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 16040 | |
| 16041 | fi |
| 16042 | fi |
| 16043 | fi |
| 16044 | if test -n "$conf_utmp_location"; then |
| 16045 | |
| 16046 | cat >>confdefs.h <<_ACEOF |
| 16047 | #define CONF_UTMP_FILE "$conf_utmp_location" |
| 16048 | _ACEOF |
| 16049 | |
| 16050 | fi |
| 16051 | |
| 16052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 |
| 16053 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } |
| 16054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16055 | /* end confdefs.h. */ |
| 16056 | |
| 16057 | #include <sys/types.h> |
| 16058 | #include <utmp.h> |
| 16059 | #ifdef HAVE_PATHS_H |
| 16060 | # include <paths.h> |
| 16061 | #endif |
| 16062 | |
| 16063 | int |
| 16064 | main () |
| 16065 | { |
| 16066 | char *wtmp = WTMP_FILE; |
| 16067 | ; |
| 16068 | return 0; |
| 16069 | } |
| 16070 | _ACEOF |
| 16071 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16073 | $as_echo "yes" >&6; } |
| 16074 | else |
| 16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16076 | $as_echo "no" >&6; } |
| 16077 | system_wtmp_path=no |
| 16078 | |
| 16079 | fi |
| 16080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16081 | if test -z "$conf_wtmp_location"; then |
| 16082 | if test x"$system_wtmp_path" = x"no" ; then |
| 16083 | for f in /usr/adm/wtmp /var/log/wtmp; do |
| 16084 | if test -f $f ; then |
| 16085 | conf_wtmp_location=$f |
| 16086 | fi |
| 16087 | done |
| 16088 | if test -z "$conf_wtmp_location"; then |
| 16089 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 16090 | |
| 16091 | fi |
| 16092 | fi |
| 16093 | fi |
| 16094 | if test -n "$conf_wtmp_location"; then |
| 16095 | |
| 16096 | cat >>confdefs.h <<_ACEOF |
| 16097 | #define CONF_WTMP_FILE "$conf_wtmp_location" |
| 16098 | _ACEOF |
| 16099 | |
| 16100 | fi |
| 16101 | |
| 16102 | |
| 16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 |
| 16104 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } |
| 16105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16106 | /* end confdefs.h. */ |
| 16107 | |
| 16108 | #include <sys/types.h> |
| 16109 | #include <utmp.h> |
| 16110 | #ifdef HAVE_UTMPX_H |
| 16111 | #include <utmpx.h> |
| 16112 | #endif |
| 16113 | #ifdef HAVE_PATHS_H |
| 16114 | # include <paths.h> |
| 16115 | #endif |
| 16116 | |
| 16117 | int |
| 16118 | main () |
| 16119 | { |
| 16120 | char *wtmpx = WTMPX_FILE; |
| 16121 | ; |
| 16122 | return 0; |
| 16123 | } |
| 16124 | _ACEOF |
| 16125 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16127 | $as_echo "yes" >&6; } |
| 16128 | else |
| 16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16130 | $as_echo "no" >&6; } |
| 16131 | system_wtmpx_path=no |
| 16132 | |
| 16133 | fi |
| 16134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16135 | if test -z "$conf_wtmpx_location"; then |
| 16136 | if test x"$system_wtmpx_path" = x"no" ; then |
| 16137 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
| 16138 | |
| 16139 | fi |
| 16140 | else |
| 16141 | |
| 16142 | cat >>confdefs.h <<_ACEOF |
| 16143 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" |
| 16144 | _ACEOF |
| 16145 | |
| 16146 | fi |
| 16147 | |
| 16148 | |
| 16149 | if test ! -z "$blibpath" ; then |
| 16150 | LDFLAGS="$LDFLAGS $blibflags$blibpath" |
| 16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 |
| 16152 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} |
| 16153 | fi |
| 16154 | |
| 16155 | CFLAGS="$CFLAGS $werror_flags" |
| 16156 | |
| 16157 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then |
| 16158 | TEST_SSH_IPV6=no |
| 16159 | else |
| 16160 | TEST_SSH_IPV6=yes |
| 16161 | fi |
| 16162 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" |
| 16163 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : |
| 16164 | TEST_SSH_IPV6=no |
| 16165 | fi |
| 16166 | |
| 16167 | TEST_SSH_IPV6=$TEST_SSH_IPV6 |
| 16168 | |
| 16169 | |
| 16170 | |
| 16171 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" |
| 16172 | |
| 16173 | cat >confcache <<\_ACEOF |
| 16174 | # This file is a shell script that caches the results of configure |
| 16175 | # tests run on this system so they can be shared between configure |
| 16176 | # scripts and configure runs, see configure's option --config-cache. |
| 16177 | # It is not useful on other systems. If it contains results you don't |
| 16178 | # want to keep, you may remove or edit it. |
| 16179 | # |
| 16180 | # config.status only pays attention to the cache file if you give it |
| 16181 | # the --recheck option to rerun configure. |
| 16182 | # |
| 16183 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16184 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16185 | # following values. |
| 16186 | |
| 16187 | _ACEOF |
| 16188 | |
| 16189 | # The following way of writing the cache mishandles newlines in values, |
| 16190 | # but we know of no workaround that is simple, portable, and efficient. |
| 16191 | # So, we kill variables containing newlines. |
| 16192 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16193 | # and sets the high bit in the cache file unless we assign to the vars. |
| 16194 | ( |
| 16195 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16196 | eval ac_val=\$$ac_var |
| 16197 | case $ac_val in #( |
| 16198 | *${as_nl}*) |
| 16199 | case $ac_var in #( |
| 16200 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16201 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 16202 | esac |
| 16203 | case $ac_var in #( |
| 16204 | _ | IFS | as_nl) ;; #( |
| 16205 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16206 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 16207 | esac ;; |
| 16208 | esac |
| 16209 | done |
| 16210 | |
| 16211 | (set) 2>&1 | |
| 16212 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16213 | *${as_nl}ac_space=\ *) |
| 16214 | # `set' does not quote correctly, so add quotes: double-quote |
| 16215 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 16216 | sed -n \ |
| 16217 | "s/'/'\\\\''/g; |
| 16218 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16219 | ;; #( |
| 16220 | *) |
| 16221 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16222 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 16223 | ;; |
| 16224 | esac | |
| 16225 | sort |
| 16226 | ) | |
| 16227 | sed ' |
| 16228 | /^ac_cv_env_/b end |
| 16229 | t clear |
| 16230 | :clear |
| 16231 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16232 | t end |
| 16233 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16234 | :end' >>confcache |
| 16235 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16236 | if test -w "$cache_file"; then |
| 16237 | if test "x$cache_file" != "x/dev/null"; then |
| 16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 16239 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 16240 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16241 | cat confcache >"$cache_file" |
| 16242 | else |
| 16243 | case $cache_file in #( |
| 16244 | */* | ?:*) |
| 16245 | mv -f confcache "$cache_file"$$ && |
| 16246 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16247 | *) |
| 16248 | mv -f confcache "$cache_file" ;; |
| 16249 | esac |
| 16250 | fi |
| 16251 | fi |
| 16252 | else |
| 16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 16254 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 16255 | fi |
| 16256 | fi |
| 16257 | rm -f confcache |
| 16258 | |
| 16259 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16260 | # Let make expand exec_prefix. |
| 16261 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16262 | |
| 16263 | DEFS=-DHAVE_CONFIG_H |
| 16264 | |
| 16265 | ac_libobjs= |
| 16266 | ac_ltlibobjs= |
| 16267 | U= |
| 16268 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16269 | # 1. Remove the extension, and $U if already installed. |
| 16270 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16271 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16272 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16273 | # will be set to the directory where LIBOBJS objects are built. |
| 16274 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16275 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 16276 | done |
| 16277 | LIBOBJS=$ac_libobjs |
| 16278 | |
| 16279 | LTLIBOBJS=$ac_ltlibobjs |
| 16280 | |
| 16281 | |
| 16282 | |
| 16283 | |
| 16284 | : "${CONFIG_STATUS=./config.status}" |
| 16285 | ac_write_fail=0 |
| 16286 | ac_clean_files_save=$ac_clean_files |
| 16287 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16288 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16289 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16290 | as_write_fail=0 |
| 16291 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 16292 | #! $SHELL |
| 16293 | # Generated by $as_me. |
| 16294 | # Run this file to recreate the current configuration. |
| 16295 | # Compiler output produced by configure, useful for debugging |
| 16296 | # configure, is in config.log if it exists. |
| 16297 | |
| 16298 | debug=false |
| 16299 | ac_cs_recheck=false |
| 16300 | ac_cs_silent=false |
| 16301 | |
| 16302 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16303 | export SHELL |
| 16304 | _ASEOF |
| 16305 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16306 | ## -------------------- ## |
| 16307 | ## M4sh Initialization. ## |
| 16308 | ## -------------------- ## |
| 16309 | |
| 16310 | # Be more Bourne compatible |
| 16311 | DUALCASE=1; export DUALCASE # for MKS sh |
| 16312 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 16313 | emulate sh |
| 16314 | NULLCMD=: |
| 16315 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 16316 | # is contrary to our usage. Disable this feature. |
| 16317 | alias -g '${1+"$@"}'='"$@"' |
| 16318 | setopt NO_GLOB_SUBST |
| 16319 | else |
| 16320 | case `(set -o) 2>/dev/null` in #( |
| 16321 | *posix*) : |
| 16322 | set -o posix ;; #( |
| 16323 | *) : |
| 16324 | ;; |
| 16325 | esac |
| 16326 | fi |
| 16327 | |
| 16328 | |
| 16329 | as_nl=' |
| 16330 | ' |
| 16331 | export as_nl |
| 16332 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16333 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16334 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16335 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16336 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16337 | # but without wasting forks for bash or zsh. |
| 16338 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16339 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16340 | as_echo='print -r --' |
| 16341 | as_echo_n='print -rn --' |
| 16342 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16343 | as_echo='printf %s\n' |
| 16344 | as_echo_n='printf %s' |
| 16345 | else |
| 16346 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16347 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16348 | as_echo_n='/usr/ucb/echo -n' |
| 16349 | else |
| 16350 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16351 | as_echo_n_body='eval |
| 16352 | arg=$1; |
| 16353 | case $arg in #( |
| 16354 | *"$as_nl"*) |
| 16355 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16356 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16357 | esac; |
| 16358 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16359 | ' |
| 16360 | export as_echo_n_body |
| 16361 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16362 | fi |
| 16363 | export as_echo_body |
| 16364 | as_echo='sh -c $as_echo_body as_echo' |
| 16365 | fi |
| 16366 | |
| 16367 | # The user is always right. |
| 16368 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16369 | PATH_SEPARATOR=: |
| 16370 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16371 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16372 | PATH_SEPARATOR=';' |
| 16373 | } |
| 16374 | fi |
| 16375 | |
| 16376 | |
| 16377 | # IFS |
| 16378 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16379 | # there to prevent editors from complaining about space-tab. |
| 16380 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16381 | # splitting by setting IFS to empty value.) |
| 16382 | IFS=" "" $as_nl" |
| 16383 | |
| 16384 | # Find who we are. Look in the path if we contain no directory separator. |
| 16385 | as_myself= |
| 16386 | case $0 in #(( |
| 16387 | *[\\/]* ) as_myself=$0 ;; |
| 16388 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16389 | for as_dir in $PATH |
| 16390 | do |
| 16391 | IFS=$as_save_IFS |
| 16392 | test -z "$as_dir" && as_dir=. |
| 16393 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16394 | done |
| 16395 | IFS=$as_save_IFS |
| 16396 | |
| 16397 | ;; |
| 16398 | esac |
| 16399 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16400 | # in which case we are not to be found in the path. |
| 16401 | if test "x$as_myself" = x; then |
| 16402 | as_myself=$0 |
| 16403 | fi |
| 16404 | if test ! -f "$as_myself"; then |
| 16405 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16406 | exit 1 |
| 16407 | fi |
| 16408 | |
| 16409 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16410 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16411 | # suppresses any "Segmentation fault" message there. '((' could |
| 16412 | # trigger a bug in pdksh 5.2.14. |
| 16413 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16414 | do eval test x\${$as_var+set} = xset \ |
| 16415 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 16416 | done |
| 16417 | PS1='$ ' |
| 16418 | PS2='> ' |
| 16419 | PS4='+ ' |
| 16420 | |
| 16421 | # NLS nuisances. |
| 16422 | LC_ALL=C |
| 16423 | export LC_ALL |
| 16424 | LANGUAGE=C |
| 16425 | export LANGUAGE |
| 16426 | |
| 16427 | # CDPATH. |
| 16428 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16429 | |
| 16430 | |
| 16431 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16432 | # ---------------------------------------- |
| 16433 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16434 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 16435 | # script with STATUS, using 1 if that was 0. |
| 16436 | as_fn_error () |
| 16437 | { |
| 16438 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16439 | if test "$4"; then |
| 16440 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16441 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 16442 | fi |
| 16443 | $as_echo "$as_me: error: $2" >&2 |
| 16444 | as_fn_exit $as_status |
| 16445 | } # as_fn_error |
| 16446 | |
| 16447 | |
| 16448 | # as_fn_set_status STATUS |
| 16449 | # ----------------------- |
| 16450 | # Set $? to STATUS, without forking. |
| 16451 | as_fn_set_status () |
| 16452 | { |
| 16453 | return $1 |
| 16454 | } # as_fn_set_status |
| 16455 | |
| 16456 | # as_fn_exit STATUS |
| 16457 | # ----------------- |
| 16458 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16459 | as_fn_exit () |
| 16460 | { |
| 16461 | set +e |
| 16462 | as_fn_set_status $1 |
| 16463 | exit $1 |
| 16464 | } # as_fn_exit |
| 16465 | |
| 16466 | # as_fn_unset VAR |
| 16467 | # --------------- |
| 16468 | # Portably unset VAR. |
| 16469 | as_fn_unset () |
| 16470 | { |
| 16471 | { eval $1=; unset $1;} |
| 16472 | } |
| 16473 | as_unset=as_fn_unset |
| 16474 | # as_fn_append VAR VALUE |
| 16475 | # ---------------------- |
| 16476 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16477 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16478 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16479 | # implementations. |
| 16480 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16481 | eval 'as_fn_append () |
| 16482 | { |
| 16483 | eval $1+=\$2 |
| 16484 | }' |
| 16485 | else |
| 16486 | as_fn_append () |
| 16487 | { |
| 16488 | eval $1=\$$1\$2 |
| 16489 | } |
| 16490 | fi # as_fn_append |
| 16491 | |
| 16492 | # as_fn_arith ARG... |
| 16493 | # ------------------ |
| 16494 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16495 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16496 | # must be portable across $(()) and expr. |
| 16497 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16498 | eval 'as_fn_arith () |
| 16499 | { |
| 16500 | as_val=$(( $* )) |
| 16501 | }' |
| 16502 | else |
| 16503 | as_fn_arith () |
| 16504 | { |
| 16505 | as_val=`expr "$@" || test $? -eq 1` |
| 16506 | } |
| 16507 | fi # as_fn_arith |
| 16508 | |
| 16509 | |
| 16510 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16511 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16512 | as_expr=expr |
| 16513 | else |
| 16514 | as_expr=false |
| 16515 | fi |
| 16516 | |
| 16517 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16518 | as_basename=basename |
| 16519 | else |
| 16520 | as_basename=false |
| 16521 | fi |
| 16522 | |
| 16523 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16524 | as_dirname=dirname |
| 16525 | else |
| 16526 | as_dirname=false |
| 16527 | fi |
| 16528 | |
| 16529 | as_me=`$as_basename -- "$0" || |
| 16530 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16531 | X"$0" : 'X\(//\)$' \| \ |
| 16532 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 16533 | $as_echo X/"$0" | |
| 16534 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16535 | s//\1/ |
| 16536 | q |
| 16537 | } |
| 16538 | /^X\/\(\/\/\)$/{ |
| 16539 | s//\1/ |
| 16540 | q |
| 16541 | } |
| 16542 | /^X\/\(\/\).*/{ |
| 16543 | s//\1/ |
| 16544 | q |
| 16545 | } |
| 16546 | s/.*/./; q'` |
| 16547 | |
| 16548 | # Avoid depending upon Character Ranges. |
| 16549 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16550 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16551 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16552 | as_cr_digits='0123456789' |
| 16553 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16554 | |
| 16555 | ECHO_C= ECHO_N= ECHO_T= |
| 16556 | case `echo -n x` in #((((( |
| 16557 | -n*) |
| 16558 | case `echo 'xy\c'` in |
| 16559 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16560 | xy) ECHO_C='\c';; |
| 16561 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16562 | ECHO_T=' ';; |
| 16563 | esac;; |
| 16564 | *) |
| 16565 | ECHO_N='-n';; |
| 16566 | esac |
| 16567 | |
| 16568 | rm -f conf$$ conf$$.exe conf$$.file |
| 16569 | if test -d conf$$.dir; then |
| 16570 | rm -f conf$$.dir/conf$$.file |
| 16571 | else |
| 16572 | rm -f conf$$.dir |
| 16573 | mkdir conf$$.dir 2>/dev/null |
| 16574 | fi |
| 16575 | if (echo >conf$$.file) 2>/dev/null; then |
| 16576 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16577 | as_ln_s='ln -s' |
| 16578 | # ... but there are two gotchas: |
| 16579 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16580 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16581 | # In both cases, we have to default to `cp -p'. |
| 16582 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16583 | as_ln_s='cp -p' |
| 16584 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16585 | as_ln_s=ln |
| 16586 | else |
| 16587 | as_ln_s='cp -p' |
| 16588 | fi |
| 16589 | else |
| 16590 | as_ln_s='cp -p' |
| 16591 | fi |
| 16592 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16593 | rmdir conf$$.dir 2>/dev/null |
| 16594 | |
| 16595 | |
| 16596 | # as_fn_mkdir_p |
| 16597 | # ------------- |
| 16598 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16599 | as_fn_mkdir_p () |
| 16600 | { |
| 16601 | |
| 16602 | case $as_dir in #( |
| 16603 | -*) as_dir=./$as_dir;; |
| 16604 | esac |
| 16605 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16606 | as_dirs= |
| 16607 | while :; do |
| 16608 | case $as_dir in #( |
| 16609 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16610 | *) as_qdir=$as_dir;; |
| 16611 | esac |
| 16612 | as_dirs="'$as_qdir' $as_dirs" |
| 16613 | as_dir=`$as_dirname -- "$as_dir" || |
| 16614 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16615 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16616 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16617 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16618 | $as_echo X"$as_dir" | |
| 16619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16620 | s//\1/ |
| 16621 | q |
| 16622 | } |
| 16623 | /^X\(\/\/\)[^/].*/{ |
| 16624 | s//\1/ |
| 16625 | q |
| 16626 | } |
| 16627 | /^X\(\/\/\)$/{ |
| 16628 | s//\1/ |
| 16629 | q |
| 16630 | } |
| 16631 | /^X\(\/\).*/{ |
| 16632 | s//\1/ |
| 16633 | q |
| 16634 | } |
| 16635 | s/.*/./; q'` |
| 16636 | test -d "$as_dir" && break |
| 16637 | done |
| 16638 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16639 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 16640 | |
| 16641 | |
| 16642 | } # as_fn_mkdir_p |
| 16643 | if mkdir -p . 2>/dev/null; then |
| 16644 | as_mkdir_p='mkdir -p "$as_dir"' |
| 16645 | else |
| 16646 | test -d ./-p && rmdir ./-p |
| 16647 | as_mkdir_p=false |
| 16648 | fi |
| 16649 | |
| 16650 | if test -x / >/dev/null 2>&1; then |
| 16651 | as_test_x='test -x' |
| 16652 | else |
| 16653 | if ls -dL / >/dev/null 2>&1; then |
| 16654 | as_ls_L_option=L |
| 16655 | else |
| 16656 | as_ls_L_option= |
| 16657 | fi |
| 16658 | as_test_x=' |
| 16659 | eval sh -c '\'' |
| 16660 | if test -d "$1"; then |
| 16661 | test -d "$1/."; |
| 16662 | else |
| 16663 | case $1 in #( |
| 16664 | -*)set "./$1";; |
| 16665 | esac; |
| 16666 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 16667 | ???[sx]*):;;*)false;;esac;fi |
| 16668 | '\'' sh |
| 16669 | ' |
| 16670 | fi |
| 16671 | as_executable_p=$as_test_x |
| 16672 | |
| 16673 | # Sed expression to map a string onto a valid CPP name. |
| 16674 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16675 | |
| 16676 | # Sed expression to map a string onto a valid variable name. |
| 16677 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16678 | |
| 16679 | |
| 16680 | exec 6>&1 |
| 16681 | ## ----------------------------------- ## |
| 16682 | ## Main body of $CONFIG_STATUS script. ## |
| 16683 | ## ----------------------------------- ## |
| 16684 | _ASEOF |
| 16685 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 16686 | |
| 16687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16688 | # Save the log message, to keep $0 and so on meaningful, and to |
| 16689 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16690 | # values after options handling. |
| 16691 | ac_log=" |
| 16692 | This file was extended by OpenSSH $as_me Portable, which was |
| 16693 | generated by GNU Autoconf 2.68. Invocation command line was |
| 16694 | |
| 16695 | CONFIG_FILES = $CONFIG_FILES |
| 16696 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16697 | CONFIG_LINKS = $CONFIG_LINKS |
| 16698 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16699 | $ $0 $@ |
| 16700 | |
| 16701 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16702 | " |
| 16703 | |
| 16704 | _ACEOF |
| 16705 | |
| 16706 | case $ac_config_files in *" |
| 16707 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16708 | esac |
| 16709 | |
| 16710 | case $ac_config_headers in *" |
| 16711 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 16712 | esac |
| 16713 | |
| 16714 | |
| 16715 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16716 | # Files that config.status was made for. |
| 16717 | config_files="$ac_config_files" |
| 16718 | config_headers="$ac_config_headers" |
| 16719 | |
| 16720 | _ACEOF |
| 16721 | |
| 16722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16723 | ac_cs_usage="\ |
| 16724 | \`$as_me' instantiates files and other configuration actions |
| 16725 | from templates according to the current configuration. Unless the files |
| 16726 | and actions are specified as TAGs, all are instantiated by default. |
| 16727 | |
| 16728 | Usage: $0 [OPTION]... [TAG]... |
| 16729 | |
| 16730 | -h, --help print this help, then exit |
| 16731 | -V, --version print version number and configuration settings, then exit |
| 16732 | --config print configuration, then exit |
| 16733 | -q, --quiet, --silent |
| 16734 | do not print progress messages |
| 16735 | -d, --debug don't remove temporary files |
| 16736 | --recheck update $as_me by reconfiguring in the same conditions |
| 16737 | --file=FILE[:TEMPLATE] |
| 16738 | instantiate the configuration file FILE |
| 16739 | --header=FILE[:TEMPLATE] |
| 16740 | instantiate the configuration header FILE |
| 16741 | |
| 16742 | Configuration files: |
| 16743 | $config_files |
| 16744 | |
| 16745 | Configuration headers: |
| 16746 | $config_headers |
| 16747 | |
| 16748 | Report bugs to <openssh-unix-dev@mindrot.org>." |
| 16749 | |
| 16750 | _ACEOF |
| 16751 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16752 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 16753 | ac_cs_version="\\ |
| 16754 | OpenSSH config.status Portable |
| 16755 | configured by $0, generated by GNU Autoconf 2.68, |
| 16756 | with options \\"\$ac_cs_config\\" |
| 16757 | |
| 16758 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 16759 | This config.status script is free software; the Free Software Foundation |
| 16760 | gives unlimited permission to copy, distribute and modify it." |
| 16761 | |
| 16762 | ac_pwd='$ac_pwd' |
| 16763 | srcdir='$srcdir' |
| 16764 | INSTALL='$INSTALL' |
| 16765 | AWK='$AWK' |
| 16766 | test -n "\$AWK" || AWK=awk |
| 16767 | _ACEOF |
| 16768 | |
| 16769 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16770 | # The default lists apply if the user does not specify any file. |
| 16771 | ac_need_defaults=: |
| 16772 | while test $# != 0 |
| 16773 | do |
| 16774 | case $1 in |
| 16775 | --*=?*) |
| 16776 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16777 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 16778 | ac_shift=: |
| 16779 | ;; |
| 16780 | --*=) |
| 16781 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16782 | ac_optarg= |
| 16783 | ac_shift=: |
| 16784 | ;; |
| 16785 | *) |
| 16786 | ac_option=$1 |
| 16787 | ac_optarg=$2 |
| 16788 | ac_shift=shift |
| 16789 | ;; |
| 16790 | esac |
| 16791 | |
| 16792 | case $ac_option in |
| 16793 | # Handling of the options. |
| 16794 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16795 | ac_cs_recheck=: ;; |
| 16796 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 16797 | $as_echo "$ac_cs_version"; exit ;; |
| 16798 | --config | --confi | --conf | --con | --co | --c ) |
| 16799 | $as_echo "$ac_cs_config"; exit ;; |
| 16800 | --debug | --debu | --deb | --de | --d | -d ) |
| 16801 | debug=: ;; |
| 16802 | --file | --fil | --fi | --f ) |
| 16803 | $ac_shift |
| 16804 | case $ac_optarg in |
| 16805 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16806 | '') as_fn_error $? "missing file argument" ;; |
| 16807 | esac |
| 16808 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 16809 | ac_need_defaults=false;; |
| 16810 | --header | --heade | --head | --hea ) |
| 16811 | $ac_shift |
| 16812 | case $ac_optarg in |
| 16813 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16814 | esac |
| 16815 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 16816 | ac_need_defaults=false;; |
| 16817 | --he | --h) |
| 16818 | # Conflict between --help and --header |
| 16819 | as_fn_error $? "ambiguous option: \`$1' |
| 16820 | Try \`$0 --help' for more information.";; |
| 16821 | --help | --hel | -h ) |
| 16822 | $as_echo "$ac_cs_usage"; exit ;; |
| 16823 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16824 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16825 | ac_cs_silent=: ;; |
| 16826 | |
| 16827 | # This is an error. |
| 16828 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 16829 | Try \`$0 --help' for more information." ;; |
| 16830 | |
| 16831 | *) as_fn_append ac_config_targets " $1" |
| 16832 | ac_need_defaults=false ;; |
| 16833 | |
| 16834 | esac |
| 16835 | shift |
| 16836 | done |
| 16837 | |
| 16838 | ac_configure_extra_args= |
| 16839 | |
| 16840 | if $ac_cs_silent; then |
| 16841 | exec 6>/dev/null |
| 16842 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16843 | fi |
| 16844 | |
| 16845 | _ACEOF |
| 16846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16847 | if \$ac_cs_recheck; then |
| 16848 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16849 | shift |
| 16850 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16851 | CONFIG_SHELL='$SHELL' |
| 16852 | export CONFIG_SHELL |
| 16853 | exec "\$@" |
| 16854 | fi |
| 16855 | |
| 16856 | _ACEOF |
| 16857 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16858 | exec 5>>config.log |
| 16859 | { |
| 16860 | echo |
| 16861 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16862 | ## Running $as_me. ## |
| 16863 | _ASBOX |
| 16864 | $as_echo "$ac_log" |
| 16865 | } >&5 |
| 16866 | |
| 16867 | _ACEOF |
| 16868 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16869 | _ACEOF |
| 16870 | |
| 16871 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16872 | |
| 16873 | # Handling of arguments. |
| 16874 | for ac_config_target in $ac_config_targets |
| 16875 | do |
| 16876 | case $ac_config_target in |
| 16877 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 16878 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16879 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; |
| 16880 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; |
| 16881 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; |
| 16882 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; |
| 16883 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; |
| 16884 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; |
| 16885 | |
| 16886 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 16887 | esac |
| 16888 | done |
| 16889 | |
| 16890 | |
| 16891 | # If the user did not use the arguments to specify the items to instantiate, |
| 16892 | # then the envvar interface is used. Set only those that are not. |
| 16893 | # We use the long form for the default assignment because of an extremely |
| 16894 | # bizarre bug on SunOS 4.1.3. |
| 16895 | if $ac_need_defaults; then |
| 16896 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16897 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16898 | fi |
| 16899 | |
| 16900 | # Have a temporary directory for convenience. Make it in the build tree |
| 16901 | # simply because there is no reason against having it here, and in addition, |
| 16902 | # creating and moving files from /tmp can sometimes cause problems. |
| 16903 | # Hook for its removal unless debugging. |
| 16904 | # Note that there is a small window in which the directory will not be cleaned: |
| 16905 | # after its creation but before its name has been assigned to `$tmp'. |
| 16906 | $debug || |
| 16907 | { |
| 16908 | tmp= ac_tmp= |
| 16909 | trap 'exit_status=$? |
| 16910 | : "${ac_tmp:=$tmp}" |
| 16911 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 16912 | ' 0 |
| 16913 | trap 'as_fn_exit 1' 1 2 13 15 |
| 16914 | } |
| 16915 | # Create a (secure) tmp directory for tmp files. |
| 16916 | |
| 16917 | { |
| 16918 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 16919 | test -d "$tmp" |
| 16920 | } || |
| 16921 | { |
| 16922 | tmp=./conf$$-$RANDOM |
| 16923 | (umask 077 && mkdir "$tmp") |
| 16924 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 16925 | ac_tmp=$tmp |
| 16926 | |
| 16927 | # Set up the scripts for CONFIG_FILES section. |
| 16928 | # No need to generate them if there are no CONFIG_FILES. |
| 16929 | # This happens for instance with `./config.status config.h'. |
| 16930 | if test -n "$CONFIG_FILES"; then |
| 16931 | |
| 16932 | |
| 16933 | ac_cr=`echo X | tr X '\015'` |
| 16934 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16935 | # But we know of no other shell where ac_cr would be empty at this |
| 16936 | # point, so we can use a bashism as a fallback. |
| 16937 | if test "x$ac_cr" = x; then |
| 16938 | eval ac_cr=\$\'\\r\' |
| 16939 | fi |
| 16940 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16941 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16942 | ac_cs_awk_cr='\\r' |
| 16943 | else |
| 16944 | ac_cs_awk_cr=$ac_cr |
| 16945 | fi |
| 16946 | |
| 16947 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 16948 | _ACEOF |
| 16949 | |
| 16950 | |
| 16951 | { |
| 16952 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16953 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16954 | echo "_ACEOF" |
| 16955 | } >conf$$subs.sh || |
| 16956 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16957 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 16958 | ac_delim='%!_!# ' |
| 16959 | for ac_last_try in false false false false false :; do |
| 16960 | . ./conf$$subs.sh || |
| 16961 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16962 | |
| 16963 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16964 | if test $ac_delim_n = $ac_delim_num; then |
| 16965 | break |
| 16966 | elif $ac_last_try; then |
| 16967 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16968 | else |
| 16969 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16970 | fi |
| 16971 | done |
| 16972 | rm -f conf$$subs.sh |
| 16973 | |
| 16974 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16975 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 16976 | _ACEOF |
| 16977 | sed -n ' |
| 16978 | h |
| 16979 | s/^/S["/; s/!.*/"]=/ |
| 16980 | p |
| 16981 | g |
| 16982 | s/^[^!]*!// |
| 16983 | :repl |
| 16984 | t repl |
| 16985 | s/'"$ac_delim"'$// |
| 16986 | t delim |
| 16987 | :nl |
| 16988 | h |
| 16989 | s/\(.\{148\}\)..*/\1/ |
| 16990 | t more1 |
| 16991 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16992 | p |
| 16993 | n |
| 16994 | b repl |
| 16995 | :more1 |
| 16996 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16997 | p |
| 16998 | g |
| 16999 | s/.\{148\}// |
| 17000 | t nl |
| 17001 | :delim |
| 17002 | h |
| 17003 | s/\(.\{148\}\)..*/\1/ |
| 17004 | t more2 |
| 17005 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17006 | p |
| 17007 | b |
| 17008 | :more2 |
| 17009 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17010 | p |
| 17011 | g |
| 17012 | s/.\{148\}// |
| 17013 | t delim |
| 17014 | ' <conf$$subs.awk | sed ' |
| 17015 | /^[^""]/{ |
| 17016 | N |
| 17017 | s/\n// |
| 17018 | } |
| 17019 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17020 | rm -f conf$$subs.awk |
| 17021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17022 | _ACAWK |
| 17023 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 17024 | for (key in S) S_is_set[key] = 1 |
| 17025 | FS = "" |
| 17026 | |
| 17027 | } |
| 17028 | { |
| 17029 | line = $ 0 |
| 17030 | nfields = split(line, field, "@") |
| 17031 | substed = 0 |
| 17032 | len = length(field[1]) |
| 17033 | for (i = 2; i < nfields; i++) { |
| 17034 | key = field[i] |
| 17035 | keylen = length(key) |
| 17036 | if (S_is_set[key]) { |
| 17037 | value = S[key] |
| 17038 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17039 | len += length(value) + length(field[++i]) |
| 17040 | substed = 1 |
| 17041 | } else |
| 17042 | len += 1 + keylen |
| 17043 | } |
| 17044 | |
| 17045 | print line |
| 17046 | } |
| 17047 | |
| 17048 | _ACAWK |
| 17049 | _ACEOF |
| 17050 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17051 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17052 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17053 | else |
| 17054 | cat |
| 17055 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 17056 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 17057 | _ACEOF |
| 17058 | |
| 17059 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17060 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 17061 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17062 | # (actually we leave an empty line to preserve line numbers). |
| 17063 | if test "x$srcdir" = x.; then |
| 17064 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17065 | h |
| 17066 | s/// |
| 17067 | s/^/:/ |
| 17068 | s/[ ]*$/:/ |
| 17069 | s/:\$(srcdir):/:/g |
| 17070 | s/:\${srcdir}:/:/g |
| 17071 | s/:@srcdir@:/:/g |
| 17072 | s/^:*// |
| 17073 | s/:*$// |
| 17074 | x |
| 17075 | s/\(=[ ]*\).*/\1/ |
| 17076 | G |
| 17077 | s/\n// |
| 17078 | s/^[^=]*=[ ]*$// |
| 17079 | }' |
| 17080 | fi |
| 17081 | |
| 17082 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17083 | fi # test -n "$CONFIG_FILES" |
| 17084 | |
| 17085 | # Set up the scripts for CONFIG_HEADERS section. |
| 17086 | # No need to generate them if there are no CONFIG_HEADERS. |
| 17087 | # This happens for instance with `./config.status Makefile'. |
| 17088 | if test -n "$CONFIG_HEADERS"; then |
| 17089 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 17090 | BEGIN { |
| 17091 | _ACEOF |
| 17092 | |
| 17093 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 17094 | # here-document in config.status, that substitutes the proper values into |
| 17095 | # config.h.in to produce config.h. |
| 17096 | |
| 17097 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 17098 | # handling of long lines. |
| 17099 | ac_delim='%!_!# ' |
| 17100 | for ac_last_try in false false :; do |
| 17101 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 17102 | if test -z "$ac_tt"; then |
| 17103 | break |
| 17104 | elif $ac_last_try; then |
| 17105 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 17106 | else |
| 17107 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17108 | fi |
| 17109 | done |
| 17110 | |
| 17111 | # For the awk script, D is an array of macro values keyed by name, |
| 17112 | # likewise P contains macro parameters if any. Preserve backslash |
| 17113 | # newline sequences. |
| 17114 | |
| 17115 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 17116 | sed -n ' |
| 17117 | s/.\{148\}/&'"$ac_delim"'/g |
| 17118 | t rset |
| 17119 | :rset |
| 17120 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 17121 | t def |
| 17122 | d |
| 17123 | :def |
| 17124 | s/\\$// |
| 17125 | t bsnl |
| 17126 | s/["\\]/\\&/g |
| 17127 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17128 | D["\1"]=" \3"/p |
| 17129 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 17130 | d |
| 17131 | :bsnl |
| 17132 | s/["\\]/\\&/g |
| 17133 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 17134 | D["\1"]=" \3\\\\\\n"\\/p |
| 17135 | t cont |
| 17136 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 17137 | t cont |
| 17138 | d |
| 17139 | :cont |
| 17140 | n |
| 17141 | s/.\{148\}/&'"$ac_delim"'/g |
| 17142 | t clear |
| 17143 | :clear |
| 17144 | s/\\$// |
| 17145 | t bsnlc |
| 17146 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 17147 | d |
| 17148 | :bsnlc |
| 17149 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 17150 | b cont |
| 17151 | ' <confdefs.h | sed ' |
| 17152 | s/'"$ac_delim"'/"\\\ |
| 17153 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17154 | |
| 17155 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17156 | for (key in D) D_is_set[key] = 1 |
| 17157 | FS = "" |
| 17158 | } |
| 17159 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 17160 | line = \$ 0 |
| 17161 | split(line, arg, " ") |
| 17162 | if (arg[1] == "#") { |
| 17163 | defundef = arg[2] |
| 17164 | mac1 = arg[3] |
| 17165 | } else { |
| 17166 | defundef = substr(arg[1], 2) |
| 17167 | mac1 = arg[2] |
| 17168 | } |
| 17169 | split(mac1, mac2, "(") #) |
| 17170 | macro = mac2[1] |
| 17171 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 17172 | if (D_is_set[macro]) { |
| 17173 | # Preserve the white space surrounding the "#". |
| 17174 | print prefix "define", macro P[macro] D[macro] |
| 17175 | next |
| 17176 | } else { |
| 17177 | # Replace #undef with comments. This is necessary, for example, |
| 17178 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 17179 | # on some systems where configure will not decide to define it. |
| 17180 | if (defundef == "undef") { |
| 17181 | print "/*", prefix defundef, macro, "*/" |
| 17182 | next |
| 17183 | } |
| 17184 | } |
| 17185 | } |
| 17186 | { print } |
| 17187 | _ACAWK |
| 17188 | _ACEOF |
| 17189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17190 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 17191 | fi # test -n "$CONFIG_HEADERS" |
| 17192 | |
| 17193 | |
| 17194 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 17195 | shift |
| 17196 | for ac_tag |
| 17197 | do |
| 17198 | case $ac_tag in |
| 17199 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17200 | esac |
| 17201 | case $ac_mode$ac_tag in |
| 17202 | :[FHL]*:*);; |
| 17203 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 17204 | :[FH]-) ac_tag=-:-;; |
| 17205 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17206 | esac |
| 17207 | ac_save_IFS=$IFS |
| 17208 | IFS=: |
| 17209 | set x $ac_tag |
| 17210 | IFS=$ac_save_IFS |
| 17211 | shift |
| 17212 | ac_file=$1 |
| 17213 | shift |
| 17214 | |
| 17215 | case $ac_mode in |
| 17216 | :L) ac_source=$1;; |
| 17217 | :[FH]) |
| 17218 | ac_file_inputs= |
| 17219 | for ac_f |
| 17220 | do |
| 17221 | case $ac_f in |
| 17222 | -) ac_f="$ac_tmp/stdin";; |
| 17223 | *) # Look for the file first in the build tree, then in the source tree |
| 17224 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17225 | # because $ac_f cannot contain `:'. |
| 17226 | test -f "$ac_f" || |
| 17227 | case $ac_f in |
| 17228 | [\\/$]*) false;; |
| 17229 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17230 | esac || |
| 17231 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 17232 | esac |
| 17233 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17234 | as_fn_append ac_file_inputs " '$ac_f'" |
| 17235 | done |
| 17236 | |
| 17237 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17238 | # use $as_me), people would be surprised to read: |
| 17239 | # /* config.h. Generated by config.status. */ |
| 17240 | configure_input='Generated from '` |
| 17241 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17242 | `' by configure.' |
| 17243 | if test x"$ac_file" != x-; then |
| 17244 | configure_input="$ac_file. $configure_input" |
| 17245 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 17246 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17247 | fi |
| 17248 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17249 | case $configure_input in #( |
| 17250 | *\&* | *\|* | *\\* ) |
| 17251 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17252 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17253 | *) ac_sed_conf_input=$configure_input;; |
| 17254 | esac |
| 17255 | |
| 17256 | case $ac_tag in |
| 17257 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17258 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 17259 | esac |
| 17260 | ;; |
| 17261 | esac |
| 17262 | |
| 17263 | ac_dir=`$as_dirname -- "$ac_file" || |
| 17264 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17265 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17266 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17267 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17268 | $as_echo X"$ac_file" | |
| 17269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17270 | s//\1/ |
| 17271 | q |
| 17272 | } |
| 17273 | /^X\(\/\/\)[^/].*/{ |
| 17274 | s//\1/ |
| 17275 | q |
| 17276 | } |
| 17277 | /^X\(\/\/\)$/{ |
| 17278 | s//\1/ |
| 17279 | q |
| 17280 | } |
| 17281 | /^X\(\/\).*/{ |
| 17282 | s//\1/ |
| 17283 | q |
| 17284 | } |
| 17285 | s/.*/./; q'` |
| 17286 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 17287 | ac_builddir=. |
| 17288 | |
| 17289 | case "$ac_dir" in |
| 17290 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17291 | *) |
| 17292 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17293 | # A ".." for each directory in $ac_dir_suffix. |
| 17294 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17295 | case $ac_top_builddir_sub in |
| 17296 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17297 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17298 | esac ;; |
| 17299 | esac |
| 17300 | ac_abs_top_builddir=$ac_pwd |
| 17301 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17302 | # for backward compatibility: |
| 17303 | ac_top_builddir=$ac_top_build_prefix |
| 17304 | |
| 17305 | case $srcdir in |
| 17306 | .) # We are building in place. |
| 17307 | ac_srcdir=. |
| 17308 | ac_top_srcdir=$ac_top_builddir_sub |
| 17309 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17310 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 17311 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17312 | ac_top_srcdir=$srcdir |
| 17313 | ac_abs_top_srcdir=$srcdir ;; |
| 17314 | *) # Relative name. |
| 17315 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17316 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17317 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 17318 | esac |
| 17319 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 17320 | |
| 17321 | |
| 17322 | case $ac_mode in |
| 17323 | :F) |
| 17324 | # |
| 17325 | # CONFIG_FILE |
| 17326 | # |
| 17327 | |
| 17328 | case $INSTALL in |
| 17329 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17330 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 17331 | esac |
| 17332 | _ACEOF |
| 17333 | |
| 17334 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17335 | # If the template does not know about datarootdir, expand it. |
| 17336 | # FIXME: This hack should be removed a few years after 2.60. |
| 17337 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17338 | ac_sed_dataroot=' |
| 17339 | /datarootdir/ { |
| 17340 | p |
| 17341 | q |
| 17342 | } |
| 17343 | /@datadir@/p |
| 17344 | /@docdir@/p |
| 17345 | /@infodir@/p |
| 17346 | /@localedir@/p |
| 17347 | /@mandir@/p' |
| 17348 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17349 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17350 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17352 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17353 | _ACEOF |
| 17354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17355 | ac_datarootdir_hack=' |
| 17356 | s&@datadir@&$datadir&g |
| 17357 | s&@docdir@&$docdir&g |
| 17358 | s&@infodir@&$infodir&g |
| 17359 | s&@localedir@&$localedir&g |
| 17360 | s&@mandir@&$mandir&g |
| 17361 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17362 | esac |
| 17363 | _ACEOF |
| 17364 | |
| 17365 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17366 | # Shell code in configure.ac might set extrasub. |
| 17367 | # FIXME: do we really want to maintain this feature? |
| 17368 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17369 | ac_sed_extra="$ac_vpsub |
| 17370 | $extrasub |
| 17371 | _ACEOF |
| 17372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17373 | :t |
| 17374 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17375 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17376 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17377 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17378 | s&@srcdir@&$ac_srcdir&;t t |
| 17379 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17380 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17381 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17382 | s&@builddir@&$ac_builddir&;t t |
| 17383 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17384 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17385 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17386 | $ac_datarootdir_hack |
| 17387 | " |
| 17388 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17389 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17390 | |
| 17391 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17392 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17393 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17394 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17396 | which seems to be undefined. Please make sure it is defined" >&5 |
| 17397 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17398 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 17399 | |
| 17400 | rm -f "$ac_tmp/stdin" |
| 17401 | case $ac_file in |
| 17402 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17403 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 17404 | esac \ |
| 17405 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17406 | ;; |
| 17407 | :H) |
| 17408 | # |
| 17409 | # CONFIG_HEADER |
| 17410 | # |
| 17411 | if test x"$ac_file" != x-; then |
| 17412 | { |
| 17413 | $as_echo "/* $configure_input */" \ |
| 17414 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 17415 | } >"$ac_tmp/config.h" \ |
| 17416 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17417 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 17419 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 17420 | else |
| 17421 | rm -f "$ac_file" |
| 17422 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 17423 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17424 | fi |
| 17425 | else |
| 17426 | $as_echo "/* $configure_input */" \ |
| 17427 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 17428 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 17429 | fi |
| 17430 | ;; |
| 17431 | |
| 17432 | |
| 17433 | esac |
| 17434 | |
| 17435 | done # for ac_tag |
| 17436 | |
| 17437 | |
| 17438 | as_fn_exit 0 |
| 17439 | _ACEOF |
| 17440 | ac_clean_files=$ac_clean_files_save |
| 17441 | |
| 17442 | test $ac_write_fail = 0 || |
| 17443 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17444 | |
| 17445 | |
| 17446 | # configure is writing to config.log, and then calls config.status. |
| 17447 | # config.status does its own redirection, appending to config.log. |
| 17448 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17449 | # by configure, so config.status won't be able to write to it; its |
| 17450 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17451 | # effectively closing config.log, so it can be properly (re)opened and |
| 17452 | # appended to by config.status. When coming back to configure, we |
| 17453 | # need to make the FD available again. |
| 17454 | if test "$no_create" != yes; then |
| 17455 | ac_cs_success=: |
| 17456 | ac_config_status_args= |
| 17457 | test "$silent" = yes && |
| 17458 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17459 | exec 5>/dev/null |
| 17460 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17461 | exec 5>>config.log |
| 17462 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17463 | # would make configure fail if this is the last instruction. |
| 17464 | $ac_cs_success || as_fn_exit 1 |
| 17465 | fi |
| 17466 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17468 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17469 | fi |
| 17470 | |
| 17471 | |
| 17472 | # Print summary of options |
| 17473 | |
| 17474 | # Someone please show me a better way :) |
| 17475 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` |
| 17476 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` |
| 17477 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` |
| 17478 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` |
| 17479 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` |
| 17480 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` |
| 17481 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` |
| 17482 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` |
| 17483 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` |
| 17484 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` |
| 17485 | |
| 17486 | echo "" |
| 17487 | echo "OpenSSH has been configured with the following options:" |
| 17488 | echo " User binaries: $B" |
| 17489 | echo " System binaries: $C" |
| 17490 | echo " Configuration files: $D" |
| 17491 | echo " Askpass program: $E" |
| 17492 | echo " Manual pages: $F" |
| 17493 | echo " PID file: $G" |
| 17494 | echo " Privilege separation chroot path: $H" |
| 17495 | if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 17496 | echo " At runtime, sshd will use the path defined in $external_path_file" |
| 17497 | echo " Make sure the path to scp is present, otherwise scp will not work" |
| 17498 | else |
| 17499 | echo " sshd default user PATH: $I" |
| 17500 | if test ! -z "$external_path_file"; then |
| 17501 | echo " (If PATH is set in $external_path_file it will be used instead. If" |
| 17502 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" |
| 17503 | fi |
| 17504 | fi |
| 17505 | if test ! -z "$superuser_path" ; then |
| 17506 | echo " sshd superuser user PATH: $J" |
| 17507 | fi |
| 17508 | echo " Manpage format: $MANTYPE" |
| 17509 | echo " PAM support: $PAM_MSG" |
| 17510 | echo " OSF SIA support: $SIA_MSG" |
| 17511 | echo " KerberosV support: $KRB5_MSG" |
| 17512 | echo " SELinux support: $SELINUX_MSG" |
| 17513 | echo " Smartcard support: $SCARD_MSG" |
| 17514 | echo " S/KEY support: $SKEY_MSG" |
| 17515 | echo " TCP Wrappers support: $TCPW_MSG" |
| 17516 | echo " MD5 password support: $MD5_MSG" |
| 17517 | echo " libedit support: $LIBEDIT_MSG" |
| 17518 | echo " Solaris process contract support: $SPC_MSG" |
| 17519 | echo " Solaris project support: $SP_MSG" |
| 17520 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
| 17521 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
| 17522 | echo " BSD Auth support: $BSD_AUTH_MSG" |
| 17523 | echo " Random number source: $RAND_MSG" |
| 17524 | echo " Privsep sandbox style: $SANDBOX_STYLE" |
| 17525 | |
| 17526 | echo "" |
| 17527 | |
| 17528 | echo " Host: ${host}" |
| 17529 | echo " Compiler: ${CC}" |
| 17530 | echo " Compiler flags: ${CFLAGS}" |
| 17531 | echo "Preprocessor flags: ${CPPFLAGS}" |
| 17532 | echo " Linker flags: ${LDFLAGS}" |
| 17533 | echo " Libraries: ${LIBS}" |
| 17534 | if test ! -z "${SSHDLIBS}"; then |
| 17535 | echo " +for sshd: ${SSHDLIBS}" |
| 17536 | fi |
| 17537 | if test ! -z "${SSHLIBS}"; then |
| 17538 | echo " +for ssh: ${SSHLIBS}" |
| 17539 | fi |
| 17540 | |
| 17541 | echo "" |
| 17542 | |
| 17543 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then |
| 17544 | echo "SVR4 style packages are supported with \"make package\"" |
| 17545 | echo "" |
| 17546 | fi |
| 17547 | |
| 17548 | if test "x$PAM_MSG" = "xyes" ; then |
| 17549 | echo "PAM is enabled. You may need to install a PAM control file " |
| 17550 | echo "for sshd, otherwise password authentication may fail. " |
| 17551 | echo "Example PAM control files can be found in the contrib/ " |
| 17552 | echo "subdirectory" |
| 17553 | echo "" |
| 17554 | fi |
| 17555 | |
| 17556 | if test ! -z "$NO_PEERCHECK" ; then |
| 17557 | echo "WARNING: the operating system that you are using does not" |
| 17558 | echo "appear to support getpeereid(), getpeerucred() or the" |
| 17559 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" |
| 17560 | echo "enforce security checks to prevent unauthorised connections to" |
| 17561 | echo "ssh-agent. Their absence increases the risk that a malicious" |
| 17562 | echo "user can connect to your agent." |
| 17563 | echo "" |
| 17564 | fi |
| 17565 | |
| 17566 | if test "$AUDIT_MODULE" = "bsm" ; then |
| 17567 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." |
| 17568 | echo "See the Solaris section in README.platform for details." |
| 17569 | fi |